api

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package api provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.

Index

Constants

View Source
const (
	SecureSessionCookieScopes = "secureSessionCookie.Scopes"
	SessionCookieScopes       = "sessionCookie.Scopes"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	// Balance Canonical base-10 decimal string. Never parse financial values as a binary float.
	Balance Decimal `json:"balance"`

	// Currency Uppercase ISO 4217 currency code supported by Julius.
	Currency Currency           `json:"currency"`
	Id       openapi_types.UUID `json:"id"`
	Kind     AccountKind        `json:"kind"`
	Name     string             `json:"name"`
}

Account defines model for Account.

type AccountKind

type AccountKind string

AccountKind defines model for Account.Kind.

const (
	AccountKindBank       AccountKind = "bank"
	AccountKindBrokerage  AccountKind = "brokerage"
	AccountKindCash       AccountKind = "cash"
	AccountKindCreditCard AccountKind = "credit_card"
	AccountKindOther      AccountKind = "other"
)

Defines values for AccountKind.

type AccountList

type AccountList struct {
	Accounts []Account `json:"accounts"`

	// Totals One balance total per currency; currencies are never combined.
	Totals []AccountTotal `json:"totals"`
}

AccountList defines model for AccountList.

type AccountTotal

type AccountTotal struct {
	// Amount Canonical base-10 decimal string. Never parse financial values as a binary float.
	Amount Decimal `json:"amount"`

	// Currency Uppercase ISO 4217 currency code supported by Julius.
	Currency Currency `json:"currency"`
}

AccountTotal defines model for AccountTotal.

type AnonymousRequest

type AnonymousRequest string

AnonymousRequest defines model for AnonymousRequest.

const (
	AnonymousRequestN1 AnonymousRequest = "1"
)

Defines values for AnonymousRequest.

type AnonymousSession

type AnonymousSession struct {
	Authenticated AnonymousSessionAuthenticated `json:"authenticated"`
}

AnonymousSession defines model for AnonymousSession.

type AnonymousSessionAuthenticated

type AnonymousSessionAuthenticated bool

AnonymousSessionAuthenticated defines model for AnonymousSession.Authenticated.

Defines values for AnonymousSessionAuthenticated.

type AuthenticatedSession

type AuthenticatedSession struct {
	Authenticated AuthenticatedSessionAuthenticated `json:"authenticated"`
	CsrfToken     string                            `json:"csrf_token"`
	Owner         Owner                             `json:"owner"`
	Preferences   Preferences                       `json:"preferences"`
}

AuthenticatedSession defines model for AuthenticatedSession.

type AuthenticatedSessionAuthenticated

type AuthenticatedSessionAuthenticated bool

AuthenticatedSessionAuthenticated defines model for AuthenticatedSession.Authenticated.

Defines values for AuthenticatedSessionAuthenticated.

type CreateAccountJSONRequestBody

type CreateAccountJSONRequestBody = CreateAccountRequest

CreateAccountJSONRequestBody defines body for CreateAccount for application/json ContentType.

type CreateAccountParams

type CreateAccountParams struct {
	// Origin Browser origin; the server validates it against its configured origin.
	Origin Origin `json:"Origin"`

	// XJuliusCSRF Token returned by setup, login, or the authenticated session response.
	XJuliusCSRF CsrfToken `json:"X-Julius-CSRF"`
}

CreateAccountParams defines parameters for CreateAccount.

type CreateAccountRequest

type CreateAccountRequest struct {
	// Balance Canonical base-10 decimal string. Never parse financial values as a binary float.
	Balance Decimal `json:"balance"`

	// Currency Uppercase ISO 4217 currency code supported by Julius.
	Currency Currency                  `json:"currency"`
	Kind     *CreateAccountRequestKind `json:"kind,omitempty"`
	Name     string                    `json:"name"`
}

CreateAccountRequest defines model for CreateAccountRequest.

type CreateAccountRequestKind

type CreateAccountRequestKind string

CreateAccountRequestKind defines model for CreateAccountRequest.Kind.

const (
	CreateAccountRequestKindBank       CreateAccountRequestKind = "bank"
	CreateAccountRequestKindBrokerage  CreateAccountRequestKind = "brokerage"
	CreateAccountRequestKindCash       CreateAccountRequestKind = "cash"
	CreateAccountRequestKindCreditCard CreateAccountRequestKind = "credit_card"
	CreateAccountRequestKindOther      CreateAccountRequestKind = "other"
)

Defines values for CreateAccountRequestKind.

type CreateOwnerJSONRequestBody

type CreateOwnerJSONRequestBody = SetupRequest

CreateOwnerJSONRequestBody defines body for CreateOwner for application/json ContentType.

type CreateOwnerParams

type CreateOwnerParams struct {
	// Origin Browser origin; the server validates it against its configured origin.
	Origin Origin `json:"Origin"`

	// XJuliusRequest Same-origin browser request marker required for anonymous mutations.
	XJuliusRequest CreateOwnerParamsXJuliusRequest `json:"X-Julius-Request"`
}

CreateOwnerParams defines parameters for CreateOwner.

type CreateOwnerParamsXJuliusRequest

type CreateOwnerParamsXJuliusRequest string

CreateOwnerParamsXJuliusRequest defines parameters for CreateOwner.

const (
	N1 CreateOwnerParamsXJuliusRequest = "1"
)

Defines values for CreateOwnerParamsXJuliusRequest.

type CsrfToken

type CsrfToken = string

CsrfToken defines model for CsrfToken.

type Currency

type Currency string

Currency Uppercase ISO 4217 currency code supported by Julius.

const (
	CurrencyBRL Currency = "BRL"
	CurrencyEUR Currency = "EUR"
	CurrencyUSD Currency = "USD"
)

Defines values for Currency.

type Decimal

type Decimal = string

Decimal Canonical base-10 decimal string. Never parse financial values as a binary float.

type DemoLoadResult

type DemoLoadResult struct {
	Accounts     int `json:"accounts"`
	Transactions int `json:"transactions"`
}

DemoLoadResult defines model for DemoLoadResult.

type Health

type Health struct {
	Status HealthStatus `json:"status"`
}

Health defines model for Health.

type HealthStatus

type HealthStatus string

HealthStatus defines model for Health.Status.

const (
	Ok HealthStatus = "ok"
)

Defines values for HealthStatus.

type Language

type Language string

Language defines model for Language.

const (
	En   Language = "en"
	PtBR Language = "pt-BR"
)

Defines values for Language.

type LoadDemoParams

type LoadDemoParams struct {
	// Origin Browser origin; the server validates it against its configured origin.
	Origin Origin `json:"Origin"`

	// XJuliusCSRF Token returned by setup, login, or the authenticated session response.
	XJuliusCSRF CsrfToken `json:"X-Julius-CSRF"`
}

LoadDemoParams defines parameters for LoadDemo.

type LoginJSONRequestBody

type LoginJSONRequestBody = LoginRequest

LoginJSONRequestBody defines body for Login for application/json ContentType.

type LoginParams

type LoginParams struct {
	// Origin Browser origin; the server validates it against its configured origin.
	Origin Origin `json:"Origin"`

	// XJuliusRequest Same-origin browser request marker required for anonymous mutations.
	XJuliusRequest LoginParamsXJuliusRequest `json:"X-Julius-Request"`
}

LoginParams defines parameters for Login.

type LoginParamsXJuliusRequest

type LoginParamsXJuliusRequest string

LoginParamsXJuliusRequest defines parameters for Login.

const (
	LoginParamsXJuliusRequestN1 LoginParamsXJuliusRequest = "1"
)

Defines values for LoginParamsXJuliusRequest.

type LoginRequest

type LoginRequest struct {
	Login    string `json:"login"`
	Password string `json:"password"`
}

LoginRequest defines model for LoginRequest.

type LogoutParams

type LogoutParams struct {
	// Origin Browser origin; the server validates it against its configured origin.
	Origin Origin `json:"Origin"`

	// XJuliusCSRF Token returned by setup, login, or the authenticated session response.
	XJuliusCSRF CsrfToken `json:"X-Julius-CSRF"`
}

LogoutParams defines parameters for Logout.

type Origin

type Origin = string

Origin defines model for Origin.

type Owner

type Owner struct {
	Login string `json:"login"`
}

Owner defines model for Owner.

type Preferences

type Preferences struct {
	Language          Language          `json:"language"`
	ReportingCurrency ReportingCurrency `json:"reporting_currency"`
	Theme             Theme             `json:"theme"`

	// Timezone IANA timezone identifier, for example America/Sao_Paulo.
	Timezone Timezone `json:"timezone"`
}

Preferences defines model for Preferences.

type Problem

type Problem struct {
	// Code Stable machine-readable error code translated by the UI.
	Code      string `json:"code"`
	Detail    string `json:"detail"`
	RequestId string `json:"request_id"`
	Status    int    `json:"status"`
	Title     string `json:"title"`
	Type      string `json:"type"`
}

Problem defines model for Problem.

type ReportingCurrency

type ReportingCurrency string

ReportingCurrency defines model for ReportingCurrency.

const (
	ReportingCurrencyBRL ReportingCurrency = "BRL"
	ReportingCurrencyEUR ReportingCurrency = "EUR"
	ReportingCurrencyUSD ReportingCurrency = "USD"
)

Defines values for ReportingCurrency.

type SetupRequest

type SetupRequest struct {
	Language          Language          `json:"language"`
	Login             string            `json:"login"`
	Password          string            `json:"password"`
	ReportingCurrency ReportingCurrency `json:"reporting_currency"`

	// Timezone IANA timezone identifier, for example America/Sao_Paulo.
	Timezone Timezone `json:"timezone"`
	Token    string   `json:"token"`
}

SetupRequest defines model for SetupRequest.

type SetupStatus

type SetupStatus struct {
	NeedsSetup bool `json:"needs_setup"`
}

SetupStatus defines model for SetupStatus.

type Theme

type Theme string

Theme defines model for Theme.

const (
	Dark   Theme = "dark"
	Light  Theme = "light"
	System Theme = "system"
)

Defines values for Theme.

type Timezone

type Timezone = string

Timezone IANA timezone identifier, for example America/Sao_Paulo.

type Transaction

type Transaction struct {
	AccountId openapi_types.UUID `json:"account_id"`

	// Amount Canonical base-10 decimal string. Never parse financial values as a binary float.
	Amount Decimal `json:"amount"`

	// Currency Uppercase ISO 4217 currency code supported by Julius.
	Currency    Currency           `json:"currency"`
	Date        openapi_types.Date `json:"date"`
	Description string             `json:"description"`
	Id          openapi_types.UUID `json:"id"`

	// OriginalAmount Source amount when it differs from the normalized amount.
	OriginalAmount *Decimal `json:"original_amount,omitempty"`

	// OriginalCurrency Source currency when it differs from the normalized currency.
	OriginalCurrency *Currency `json:"original_currency,omitempty"`
}

Transaction defines model for Transaction.

type TransactionList

type TransactionList struct {
	Transactions []Transaction `json:"transactions"`
}

TransactionList defines model for TransactionList.

type UpdatePreferencesJSONRequestBody

type UpdatePreferencesJSONRequestBody = Preferences

UpdatePreferencesJSONRequestBody defines body for UpdatePreferences for application/json ContentType.

type UpdatePreferencesParams

type UpdatePreferencesParams struct {
	// Origin Browser origin; the server validates it against its configured origin.
	Origin Origin `json:"Origin"`

	// XJuliusCSRF Token returned by setup, login, or the authenticated session response.
	XJuliusCSRF CsrfToken `json:"X-Julius-CSRF"`
}

UpdatePreferencesParams defines parameters for UpdatePreferences.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL