From c50aed63efb6a88934457eedf92a2fa4a7d7c668 Mon Sep 17 00:00:00 2001 From: ascandone Date: Wed, 9 Oct 2024 15:45:03 +0200 Subject: [PATCH] generated stuff --- docs/api/README.md | 2 + internal/README.md | 209 +++++++++--------- openapi.yaml | 2 + pkg/client/.speakeasy/gen.lock | 6 +- pkg/client/.speakeasy/gen.yaml | 2 +- .../docs/models/components/v2errorsenum.md | 30 +-- pkg/client/formance.go | 4 +- pkg/client/models/components/v2errorsenum.go | 30 ++- 8 files changed, 153 insertions(+), 132 deletions(-) diff --git a/docs/api/README.md b/docs/api/README.md index e74cd8e4a..4ede5d3ce 100644 --- a/docs/api/README.md +++ b/docs/api/README.md @@ -3185,6 +3185,8 @@ Authorization ( Scopes: ledger:write ) |*anonymous*|NO_POSTINGS| |*anonymous*|LEDGER_NOT_FOUND| |*anonymous*|IMPORT| +|*anonymous*|INTERPRETER_PARSE| +|*anonymous*|INTERPRETER_RUNTIME|

V2LedgerInfoResponse

diff --git a/internal/README.md b/internal/README.md index eaa32e484..8bd858142 100644 --- a/internal/README.md +++ b/internal/README.md @@ -32,6 +32,7 @@ import "github.com/formancehq/ledger/internal" - [func \(e ErrInvalidLedgerName\) Error\(\) string](<#ErrInvalidLedgerName.Error>) - [func \(e ErrInvalidLedgerName\) Is\(err error\) bool](<#ErrInvalidLedgerName.Is>) - [type FeatureSet](<#FeatureSet>) + - [func \(f FeatureSet\) String\(\) string](<#FeatureSet.String>) - [func \(f FeatureSet\) With\(feature, value string\) FeatureSet](<#FeatureSet.With>) - [type Ledger](<#Ledger>) - [func MustNewWithDefault\(name string\) Ledger](<#MustNewWithDefault>) @@ -112,7 +113,7 @@ import "github.com/formancehq/ledger/internal" ## Constants -Current set of features: | Name | Default value | Possible configuration | Description | |\-|\-|\-|\-| | ACCOUNT\_METADATA\_HISTORY | + ```go const ( @@ -200,7 +201,7 @@ var Zero = big.NewInt(0) ``` -## func [ComputeIdempotencyHash]() +## func ComputeIdempotencyHash ```go func ComputeIdempotencyHash(inputs any) string @@ -209,7 +210,7 @@ func ComputeIdempotencyHash(inputs any) string -## type [Account]() +## type Account @@ -228,7 +229,7 @@ type Account struct { ``` -## type [AccountMetadata]() +## type AccountMetadata @@ -237,7 +238,7 @@ type AccountMetadata map[string]metadata.Metadata ``` -## type [AccountsVolumes]() +## type AccountsVolumes @@ -253,7 +254,7 @@ type AccountsVolumes struct { ``` -## type [BalancesByAssets]() +## type BalancesByAssets @@ -262,7 +263,7 @@ type BalancesByAssets map[string]*big.Int ``` -## type [BalancesByAssetsByAccounts]() +## type BalancesByAssetsByAccounts @@ -271,7 +272,7 @@ type BalancesByAssetsByAccounts map[string]BalancesByAssets ``` -## type [Configuration]() +## type Configuration @@ -284,7 +285,7 @@ type Configuration struct { ``` -### func [NewDefaultConfiguration]() +### func NewDefaultConfiguration ```go func NewDefaultConfiguration() Configuration @@ -293,7 +294,7 @@ func NewDefaultConfiguration() Configuration -### func \(\*Configuration\) [SetDefaults]() +### func \(\*Configuration\) SetDefaults ```go func (c *Configuration) SetDefaults() @@ -302,7 +303,7 @@ func (c *Configuration) SetDefaults() -### func \(\*Configuration\) [Validate]() +### func \(\*Configuration\) Validate ```go func (c *Configuration) Validate() error @@ -311,7 +312,7 @@ func (c *Configuration) Validate() error -## type [CreatedTransaction]() +## type CreatedTransaction @@ -323,7 +324,7 @@ type CreatedTransaction struct { ``` -### func \(CreatedTransaction\) [Type]() +### func \(CreatedTransaction\) Type ```go func (p CreatedTransaction) Type() LogType @@ -332,7 +333,7 @@ func (p CreatedTransaction) Type() LogType -## type [DeletedMetadata]() +## type DeletedMetadata @@ -345,7 +346,7 @@ type DeletedMetadata struct { ``` -### func \(DeletedMetadata\) [Type]() +### func \(DeletedMetadata\) Type ```go func (s DeletedMetadata) Type() LogType @@ -354,7 +355,7 @@ func (s DeletedMetadata) Type() LogType -### func \(\*DeletedMetadata\) [UnmarshalJSON]() +### func \(\*DeletedMetadata\) UnmarshalJSON ```go func (s *DeletedMetadata) UnmarshalJSON(data []byte) error @@ -363,7 +364,7 @@ func (s *DeletedMetadata) UnmarshalJSON(data []byte) error -## type [ErrInvalidBucketName]() +## type ErrInvalidBucketName @@ -374,7 +375,7 @@ type ErrInvalidBucketName struct { ``` -### func \(ErrInvalidBucketName\) [Error]() +### func \(ErrInvalidBucketName\) Error ```go func (e ErrInvalidBucketName) Error() string @@ -383,7 +384,7 @@ func (e ErrInvalidBucketName) Error() string -### func \(ErrInvalidBucketName\) [Is]() +### func \(ErrInvalidBucketName\) Is ```go func (e ErrInvalidBucketName) Is(err error) bool @@ -392,7 +393,7 @@ func (e ErrInvalidBucketName) Is(err error) bool -## type [ErrInvalidLedgerName]() +## type ErrInvalidLedgerName @@ -403,7 +404,7 @@ type ErrInvalidLedgerName struct { ``` -### func \(ErrInvalidLedgerName\) [Error]() +### func \(ErrInvalidLedgerName\) Error ```go func (e ErrInvalidLedgerName) Error() string @@ -412,7 +413,7 @@ func (e ErrInvalidLedgerName) Error() string -### func \(ErrInvalidLedgerName\) [Is]() +### func \(ErrInvalidLedgerName\) Is ```go func (e ErrInvalidLedgerName) Is(err error) bool @@ -421,7 +422,7 @@ func (e ErrInvalidLedgerName) Is(err error) bool -## type [FeatureSet]() +## type FeatureSet @@ -429,8 +430,17 @@ func (e ErrInvalidLedgerName) Is(err error) bool type FeatureSet map[string]string ``` + +### func \(FeatureSet\) String + +```go +func (f FeatureSet) String() string +``` + + + -### func \(FeatureSet\) [With]() +### func \(FeatureSet\) With ```go func (f FeatureSet) With(feature, value string) FeatureSet @@ -439,7 +449,7 @@ func (f FeatureSet) With(feature, value string) FeatureSet -## type [Ledger]() +## type Ledger @@ -455,7 +465,7 @@ type Ledger struct { ``` -### func [MustNewWithDefault]() +### func MustNewWithDefault ```go func MustNewWithDefault(name string) Ledger @@ -464,7 +474,7 @@ func MustNewWithDefault(name string) Ledger -### func [New]() +### func New ```go func New(name string, configuration Configuration) (*Ledger, error) @@ -473,7 +483,7 @@ func New(name string, configuration Configuration) (*Ledger, error) -### func [NewWithDefaults]() +### func NewWithDefaults ```go func NewWithDefaults(name string) (*Ledger, error) @@ -482,7 +492,7 @@ func NewWithDefaults(name string) (*Ledger, error) -### func \(Ledger\) [HasFeature]() +### func \(Ledger\) HasFeature ```go func (l Ledger) HasFeature(feature, value string) bool @@ -491,7 +501,7 @@ func (l Ledger) HasFeature(feature, value string) bool -### func \(Ledger\) [WithMetadata]() +### func \(Ledger\) WithMetadata ```go func (l Ledger) WithMetadata(m metadata.Metadata) Ledger @@ -500,7 +510,7 @@ func (l Ledger) WithMetadata(m metadata.Metadata) Ledger -## type [Log]() +## type Log Log represents atomic actions made on the ledger. @@ -521,7 +531,7 @@ type Log struct { ``` -### func [NewLog]() +### func NewLog ```go func NewLog(payload LogPayload) Log @@ -530,7 +540,7 @@ func NewLog(payload LogPayload) Log -### func \(Log\) [ChainLog]() +### func \(Log\) ChainLog ```go func (l Log) ChainLog(previous *Log) Log @@ -539,7 +549,7 @@ func (l Log) ChainLog(previous *Log) Log -### func \(\*Log\) [ComputeHash]() +### func \(\*Log\) ComputeHash ```go func (l *Log) ComputeHash(previous *Log) @@ -548,7 +558,7 @@ func (l *Log) ComputeHash(previous *Log) -### func \(\*Log\) [UnmarshalJSON]() +### func \(\*Log\) UnmarshalJSON ```go func (l *Log) UnmarshalJSON(data []byte) error @@ -557,7 +567,7 @@ func (l *Log) UnmarshalJSON(data []byte) error -### func \(Log\) [WithIdempotencyKey]() +### func \(Log\) WithIdempotencyKey ```go func (l Log) WithIdempotencyKey(key string) Log @@ -566,7 +576,7 @@ func (l Log) WithIdempotencyKey(key string) Log -## type [LogPayload]() +## type LogPayload @@ -577,7 +587,7 @@ type LogPayload interface { ``` -### func [HydrateLog]() +### func HydrateLog ```go func HydrateLog(_type LogType, data []byte) (LogPayload, error) @@ -586,7 +596,7 @@ func HydrateLog(_type LogType, data []byte) (LogPayload, error) -## type [LogType]() +## type LogType @@ -606,7 +616,7 @@ const ( ``` -### func [LogTypeFromString]() +### func LogTypeFromString ```go func LogTypeFromString(logType string) LogType @@ -615,7 +625,7 @@ func LogTypeFromString(logType string) LogType -### func \(LogType\) [MarshalJSON]() +### func \(LogType\) MarshalJSON ```go func (lt LogType) MarshalJSON() ([]byte, error) @@ -624,7 +634,7 @@ func (lt LogType) MarshalJSON() ([]byte, error) -### func \(\*LogType\) [Scan]() +### func \(\*LogType\) Scan ```go func (lt *LogType) Scan(src interface{}) error @@ -633,7 +643,7 @@ func (lt *LogType) Scan(src interface{}) error -### func \(LogType\) [String]() +### func \(LogType\) String ```go func (l LogType) String() string @@ -642,7 +652,7 @@ func (l LogType) String() string -### func \(\*LogType\) [UnmarshalJSON]() +### func \(\*LogType\) UnmarshalJSON ```go func (lt *LogType) UnmarshalJSON(data []byte) error @@ -651,7 +661,7 @@ func (lt *LogType) UnmarshalJSON(data []byte) error -### func \(LogType\) [Value]() +### func \(LogType\) Value ```go func (lt LogType) Value() (driver.Value, error) @@ -660,7 +670,7 @@ func (lt LogType) Value() (driver.Value, error) -## type [Move]() +## type Move @@ -668,7 +678,6 @@ func (lt LogType) Value() (driver.Value, error) type Move struct { bun.BaseModel `bun:"table:moves"` - Ledger string `bun:"ledger,type:varchar"` TransactionID int `bun:"transactions_id,type:bigint"` IsSource bool `bun:"is_source,type:bool"` Account string `bun:"accounts_address,type:varchar"` @@ -682,7 +691,7 @@ type Move struct { ``` -## type [Moves]() +## type Moves @@ -691,7 +700,7 @@ type Moves []*Move ``` -### func \(Moves\) [ComputePostCommitEffectiveVolumes]() +### func \(Moves\) ComputePostCommitEffectiveVolumes ```go func (m Moves) ComputePostCommitEffectiveVolumes() PostCommitVolumes @@ -700,7 +709,7 @@ func (m Moves) ComputePostCommitEffectiveVolumes() PostCommitVolumes -## type [PostCommitVolumes]() +## type PostCommitVolumes @@ -709,7 +718,7 @@ type PostCommitVolumes map[string]VolumesByAssets ``` -### func \(PostCommitVolumes\) [AddInput]() +### func \(PostCommitVolumes\) AddInput ```go func (a PostCommitVolumes) AddInput(account, asset string, input *big.Int) @@ -718,7 +727,7 @@ func (a PostCommitVolumes) AddInput(account, asset string, input *big.Int) -### func \(PostCommitVolumes\) [AddOutput]() +### func \(PostCommitVolumes\) AddOutput ```go func (a PostCommitVolumes) AddOutput(account, asset string, output *big.Int) @@ -727,7 +736,7 @@ func (a PostCommitVolumes) AddOutput(account, asset string, output *big.Int) -### func \(PostCommitVolumes\) [Copy]() +### func \(PostCommitVolumes\) Copy ```go func (a PostCommitVolumes) Copy() PostCommitVolumes @@ -736,7 +745,7 @@ func (a PostCommitVolumes) Copy() PostCommitVolumes -### func \(PostCommitVolumes\) [Merge]() +### func \(PostCommitVolumes\) Merge ```go func (a PostCommitVolumes) Merge(volumes PostCommitVolumes) PostCommitVolumes @@ -745,7 +754,7 @@ func (a PostCommitVolumes) Merge(volumes PostCommitVolumes) PostCommitVolumes -## type [Posting]() +## type Posting @@ -759,7 +768,7 @@ type Posting struct { ``` -### func [NewPosting]() +### func NewPosting ```go func NewPosting(source string, destination string, asset string, amount *big.Int) Posting @@ -768,7 +777,7 @@ func NewPosting(source string, destination string, asset string, amount *big.Int -### func \(Posting\) [GetDestination]() +### func \(Posting\) GetDestination ```go func (p Posting) GetDestination() string @@ -777,7 +786,7 @@ func (p Posting) GetDestination() string -### func \(Posting\) [GetSource]() +### func \(Posting\) GetSource ```go func (p Posting) GetSource() string @@ -786,7 +795,7 @@ func (p Posting) GetSource() string -## type [Postings]() +## type Postings @@ -795,7 +804,7 @@ type Postings []Posting ``` -### func \(Postings\) [Reverse]() +### func \(Postings\) Reverse ```go func (p Postings) Reverse() Postings @@ -804,7 +813,7 @@ func (p Postings) Reverse() Postings -### func \(Postings\) [Validate]() +### func \(Postings\) Validate ```go func (p Postings) Validate() (int, error) @@ -813,7 +822,7 @@ func (p Postings) Validate() (int, error) -## type [RevertedTransaction]() +## type RevertedTransaction @@ -825,7 +834,7 @@ type RevertedTransaction struct { ``` -### func \(RevertedTransaction\) [Type]() +### func \(RevertedTransaction\) Type ```go func (r RevertedTransaction) Type() LogType @@ -834,7 +843,7 @@ func (r RevertedTransaction) Type() LogType -## type [SavedMetadata]() +## type SavedMetadata @@ -847,7 +856,7 @@ type SavedMetadata struct { ``` -### func \(SavedMetadata\) [Type]() +### func \(SavedMetadata\) Type ```go func (s SavedMetadata) Type() LogType @@ -856,7 +865,7 @@ func (s SavedMetadata) Type() LogType -### func \(\*SavedMetadata\) [UnmarshalJSON]() +### func \(\*SavedMetadata\) UnmarshalJSON ```go func (s *SavedMetadata) UnmarshalJSON(data []byte) error @@ -865,7 +874,7 @@ func (s *SavedMetadata) UnmarshalJSON(data []byte) error -## type [Transaction]() +## type Transaction @@ -886,7 +895,7 @@ type Transaction struct { ``` -### func [NewTransaction]() +### func NewTransaction ```go func NewTransaction() Transaction @@ -895,7 +904,7 @@ func NewTransaction() Transaction -### func \(Transaction\) [InvolvedAccountAndAssets]() +### func \(Transaction\) InvolvedAccountAndAssets ```go func (tx Transaction) InvolvedAccountAndAssets() map[string][]string @@ -904,7 +913,7 @@ func (tx Transaction) InvolvedAccountAndAssets() map[string][]string -### func \(Transaction\) [InvolvedAccounts]() +### func \(Transaction\) InvolvedAccounts ```go func (tx Transaction) InvolvedAccounts() []string @@ -913,7 +922,7 @@ func (tx Transaction) InvolvedAccounts() []string -### func \(Transaction\) [IsReverted]() +### func \(Transaction\) IsReverted ```go func (tx Transaction) IsReverted() bool @@ -922,7 +931,7 @@ func (tx Transaction) IsReverted() bool -### func \(Transaction\) [JSONSchemaExtend]() +### func \(Transaction\) JSONSchemaExtend ```go func (Transaction) JSONSchemaExtend(schema *jsonschema.Schema) @@ -931,7 +940,7 @@ func (Transaction) JSONSchemaExtend(schema *jsonschema.Schema) -### func \(Transaction\) [MarshalJSON]() +### func \(Transaction\) MarshalJSON ```go func (tx Transaction) MarshalJSON() ([]byte, error) @@ -940,7 +949,7 @@ func (tx Transaction) MarshalJSON() ([]byte, error) -### func \(Transaction\) [Reverse]() +### func \(Transaction\) Reverse ```go func (tx Transaction) Reverse() Transaction @@ -949,7 +958,7 @@ func (tx Transaction) Reverse() Transaction -### func \(Transaction\) [VolumeUpdates]() +### func \(Transaction\) VolumeUpdates ```go func (tx Transaction) VolumeUpdates() []AccountsVolumes @@ -958,7 +967,7 @@ func (tx Transaction) VolumeUpdates() []AccountsVolumes -### func \(Transaction\) [WithInsertedAt]() +### func \(Transaction\) WithInsertedAt ```go func (tx Transaction) WithInsertedAt(date time.Time) Transaction @@ -967,7 +976,7 @@ func (tx Transaction) WithInsertedAt(date time.Time) Transaction -### func \(Transaction\) [WithMetadata]() +### func \(Transaction\) WithMetadata ```go func (tx Transaction) WithMetadata(m metadata.Metadata) Transaction @@ -976,7 +985,7 @@ func (tx Transaction) WithMetadata(m metadata.Metadata) Transaction -### func \(Transaction\) [WithPostCommitEffectiveVolumes]() +### func \(Transaction\) WithPostCommitEffectiveVolumes ```go func (tx Transaction) WithPostCommitEffectiveVolumes(volumes PostCommitVolumes) Transaction @@ -985,7 +994,7 @@ func (tx Transaction) WithPostCommitEffectiveVolumes(volumes PostCommitVolumes) -### func \(Transaction\) [WithPostings]() +### func \(Transaction\) WithPostings ```go func (tx Transaction) WithPostings(postings ...Posting) Transaction @@ -994,7 +1003,7 @@ func (tx Transaction) WithPostings(postings ...Posting) Transaction -### func \(Transaction\) [WithReference]() +### func \(Transaction\) WithReference ```go func (tx Transaction) WithReference(ref string) Transaction @@ -1003,7 +1012,7 @@ func (tx Transaction) WithReference(ref string) Transaction -### func \(Transaction\) [WithRevertedAt]() +### func \(Transaction\) WithRevertedAt ```go func (tx Transaction) WithRevertedAt(timestamp time.Time) Transaction @@ -1012,7 +1021,7 @@ func (tx Transaction) WithRevertedAt(timestamp time.Time) Transaction -### func \(Transaction\) [WithTimestamp]() +### func \(Transaction\) WithTimestamp ```go func (tx Transaction) WithTimestamp(ts time.Time) Transaction @@ -1021,7 +1030,7 @@ func (tx Transaction) WithTimestamp(ts time.Time) Transaction -## type [TransactionData]() +## type TransactionData @@ -1036,7 +1045,7 @@ type TransactionData struct { ``` -### func [NewTransactionData]() +### func NewTransactionData ```go func NewTransactionData() TransactionData @@ -1045,7 +1054,7 @@ func NewTransactionData() TransactionData -### func \(TransactionData\) [WithPostings]() +### func \(TransactionData\) WithPostings ```go func (data TransactionData) WithPostings(postings ...Posting) TransactionData @@ -1054,7 +1063,7 @@ func (data TransactionData) WithPostings(postings ...Posting) TransactionData -## type [Transactions]() +## type Transactions @@ -1065,7 +1074,7 @@ type Transactions struct { ``` -## type [Volumes]() +## type Volumes @@ -1077,7 +1086,7 @@ type Volumes struct { ``` -### func [NewEmptyVolumes]() +### func NewEmptyVolumes ```go func NewEmptyVolumes() Volumes @@ -1086,7 +1095,7 @@ func NewEmptyVolumes() Volumes -### func [NewVolumesInt64]() +### func NewVolumesInt64 ```go func NewVolumesInt64(input, output int64) Volumes @@ -1095,7 +1104,7 @@ func NewVolumesInt64(input, output int64) Volumes -### func \(Volumes\) [Balance]() +### func \(Volumes\) Balance ```go func (v Volumes) Balance() *big.Int @@ -1104,7 +1113,7 @@ func (v Volumes) Balance() *big.Int -### func \(Volumes\) [Copy]() +### func \(Volumes\) Copy ```go func (v Volumes) Copy() Volumes @@ -1113,7 +1122,7 @@ func (v Volumes) Copy() Volumes -### func \(Volumes\) [JSONSchemaExtend]() +### func \(Volumes\) JSONSchemaExtend ```go func (Volumes) JSONSchemaExtend(schema *jsonschema.Schema) @@ -1122,7 +1131,7 @@ func (Volumes) JSONSchemaExtend(schema *jsonschema.Schema) -### func \(Volumes\) [MarshalJSON]() +### func \(Volumes\) MarshalJSON ```go func (v Volumes) MarshalJSON() ([]byte, error) @@ -1131,7 +1140,7 @@ func (v Volumes) MarshalJSON() ([]byte, error) -### func \(Volumes\) [WithInput]() +### func \(Volumes\) WithInput ```go func (v Volumes) WithInput(input *big.Int) Volumes @@ -1140,7 +1149,7 @@ func (v Volumes) WithInput(input *big.Int) Volumes -### func \(Volumes\) [WithOutput]() +### func \(Volumes\) WithOutput ```go func (v Volumes) WithOutput(output *big.Int) Volumes @@ -1149,7 +1158,7 @@ func (v Volumes) WithOutput(output *big.Int) Volumes -## type [VolumesByAssets]() +## type VolumesByAssets @@ -1158,7 +1167,7 @@ type VolumesByAssets map[string]Volumes ``` -### func \(VolumesByAssets\) [Balances]() +### func \(VolumesByAssets\) Balances ```go func (v VolumesByAssets) Balances() BalancesByAssets @@ -1167,7 +1176,7 @@ func (v VolumesByAssets) Balances() BalancesByAssets -## type [VolumesWithBalance]() +## type VolumesWithBalance @@ -1180,7 +1189,7 @@ type VolumesWithBalance struct { ``` -## type [VolumesWithBalanceByAssetByAccount]() +## type VolumesWithBalanceByAssetByAccount @@ -1193,7 +1202,7 @@ type VolumesWithBalanceByAssetByAccount struct { ``` -## type [VolumesWithBalanceByAssets]() +## type VolumesWithBalanceByAssets diff --git a/openapi.yaml b/openapi.yaml index 44b14252f..44096e866 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -3450,6 +3450,8 @@ components: - NO_POSTINGS - LEDGER_NOT_FOUND - IMPORT + - INTERPRETER_PARSE + - INTERPRETER_RUNTIME example: VALIDATION V2LedgerInfoResponse: type: object diff --git a/pkg/client/.speakeasy/gen.lock b/pkg/client/.speakeasy/gen.lock index 31fe3c481..e3774b38f 100644 --- a/pkg/client/.speakeasy/gen.lock +++ b/pkg/client/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: a9ac79e1-e429-4ee3-96c4-ec973f19bec3 management: - docChecksum: 46b920c97720c2cf24009a8029141b0e + docChecksum: 1708b60b71bd7dbe961267eb3fdf5738 docVersion: v1 speakeasyVersion: 1.351.0 generationVersion: 2.384.1 - releaseVersion: 0.4.10 - configChecksum: 80adc8750c319f7d5486bd5211882798 + releaseVersion: 0.4.11 + configChecksum: 38c0cdbdcbb13b59719f19b9ec2fcdaf features: go: additionalDependencies: 0.1.0 diff --git a/pkg/client/.speakeasy/gen.yaml b/pkg/client/.speakeasy/gen.yaml index df23cf750..a7630b3d1 100644 --- a/pkg/client/.speakeasy/gen.yaml +++ b/pkg/client/.speakeasy/gen.yaml @@ -15,7 +15,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: true go: - version: 0.4.10 + version: 0.4.11 additionalDependencies: {} allowUnknownFieldsInWeakUnions: false clientServerStatusCodesAsErrors: true diff --git a/pkg/client/docs/models/components/v2errorsenum.md b/pkg/client/docs/models/components/v2errorsenum.md index 088a86b2a..903acc087 100644 --- a/pkg/client/docs/models/components/v2errorsenum.md +++ b/pkg/client/docs/models/components/v2errorsenum.md @@ -3,17 +3,19 @@ ## Values -| Name | Value | -| ------------------------------- | ------------------------------- | -| `V2ErrorsEnumInternal` | INTERNAL | -| `V2ErrorsEnumInsufficientFund` | INSUFFICIENT_FUND | -| `V2ErrorsEnumValidation` | VALIDATION | -| `V2ErrorsEnumConflict` | CONFLICT | -| `V2ErrorsEnumCompilationFailed` | COMPILATION_FAILED | -| `V2ErrorsEnumMetadataOverride` | METADATA_OVERRIDE | -| `V2ErrorsEnumNotFound` | NOT_FOUND | -| `V2ErrorsEnumRevertOccurring` | REVERT_OCCURRING | -| `V2ErrorsEnumAlreadyRevert` | ALREADY_REVERT | -| `V2ErrorsEnumNoPostings` | NO_POSTINGS | -| `V2ErrorsEnumLedgerNotFound` | LEDGER_NOT_FOUND | -| `V2ErrorsEnumImport` | IMPORT | \ No newline at end of file +| Name | Value | +| -------------------------------- | -------------------------------- | +| `V2ErrorsEnumInternal` | INTERNAL | +| `V2ErrorsEnumInsufficientFund` | INSUFFICIENT_FUND | +| `V2ErrorsEnumValidation` | VALIDATION | +| `V2ErrorsEnumConflict` | CONFLICT | +| `V2ErrorsEnumCompilationFailed` | COMPILATION_FAILED | +| `V2ErrorsEnumMetadataOverride` | METADATA_OVERRIDE | +| `V2ErrorsEnumNotFound` | NOT_FOUND | +| `V2ErrorsEnumRevertOccurring` | REVERT_OCCURRING | +| `V2ErrorsEnumAlreadyRevert` | ALREADY_REVERT | +| `V2ErrorsEnumNoPostings` | NO_POSTINGS | +| `V2ErrorsEnumLedgerNotFound` | LEDGER_NOT_FOUND | +| `V2ErrorsEnumImport` | IMPORT | +| `V2ErrorsEnumInterpreterParse` | INTERPRETER_PARSE | +| `V2ErrorsEnumInterpreterRuntime` | INTERPRETER_RUNTIME | \ No newline at end of file diff --git a/pkg/client/formance.go b/pkg/client/formance.go index a5acc0edc..d7b20f33b 100644 --- a/pkg/client/formance.go +++ b/pkg/client/formance.go @@ -143,9 +143,9 @@ func New(opts ...SDKOption) *Formance { sdkConfiguration: sdkConfiguration{ Language: "go", OpenAPIDocVersion: "v1", - SDKVersion: "0.4.10", + SDKVersion: "0.4.11", GenVersion: "2.384.1", - UserAgent: "speakeasy-sdk/go 0.4.10 2.384.1 v1 github.com/formancehq/stack/ledger/client", + UserAgent: "speakeasy-sdk/go 0.4.11 2.384.1 v1 github.com/formancehq/stack/ledger/client", Hooks: hooks.New(), }, } diff --git a/pkg/client/models/components/v2errorsenum.go b/pkg/client/models/components/v2errorsenum.go index defc9c108..7211d8b8f 100644 --- a/pkg/client/models/components/v2errorsenum.go +++ b/pkg/client/models/components/v2errorsenum.go @@ -10,18 +10,20 @@ import ( type V2ErrorsEnum string const ( - V2ErrorsEnumInternal V2ErrorsEnum = "INTERNAL" - V2ErrorsEnumInsufficientFund V2ErrorsEnum = "INSUFFICIENT_FUND" - V2ErrorsEnumValidation V2ErrorsEnum = "VALIDATION" - V2ErrorsEnumConflict V2ErrorsEnum = "CONFLICT" - V2ErrorsEnumCompilationFailed V2ErrorsEnum = "COMPILATION_FAILED" - V2ErrorsEnumMetadataOverride V2ErrorsEnum = "METADATA_OVERRIDE" - V2ErrorsEnumNotFound V2ErrorsEnum = "NOT_FOUND" - V2ErrorsEnumRevertOccurring V2ErrorsEnum = "REVERT_OCCURRING" - V2ErrorsEnumAlreadyRevert V2ErrorsEnum = "ALREADY_REVERT" - V2ErrorsEnumNoPostings V2ErrorsEnum = "NO_POSTINGS" - V2ErrorsEnumLedgerNotFound V2ErrorsEnum = "LEDGER_NOT_FOUND" - V2ErrorsEnumImport V2ErrorsEnum = "IMPORT" + V2ErrorsEnumInternal V2ErrorsEnum = "INTERNAL" + V2ErrorsEnumInsufficientFund V2ErrorsEnum = "INSUFFICIENT_FUND" + V2ErrorsEnumValidation V2ErrorsEnum = "VALIDATION" + V2ErrorsEnumConflict V2ErrorsEnum = "CONFLICT" + V2ErrorsEnumCompilationFailed V2ErrorsEnum = "COMPILATION_FAILED" + V2ErrorsEnumMetadataOverride V2ErrorsEnum = "METADATA_OVERRIDE" + V2ErrorsEnumNotFound V2ErrorsEnum = "NOT_FOUND" + V2ErrorsEnumRevertOccurring V2ErrorsEnum = "REVERT_OCCURRING" + V2ErrorsEnumAlreadyRevert V2ErrorsEnum = "ALREADY_REVERT" + V2ErrorsEnumNoPostings V2ErrorsEnum = "NO_POSTINGS" + V2ErrorsEnumLedgerNotFound V2ErrorsEnum = "LEDGER_NOT_FOUND" + V2ErrorsEnumImport V2ErrorsEnum = "IMPORT" + V2ErrorsEnumInterpreterParse V2ErrorsEnum = "INTERPRETER_PARSE" + V2ErrorsEnumInterpreterRuntime V2ErrorsEnum = "INTERPRETER_RUNTIME" ) func (e V2ErrorsEnum) ToPointer() *V2ErrorsEnum { @@ -56,6 +58,10 @@ func (e *V2ErrorsEnum) UnmarshalJSON(data []byte) error { case "LEDGER_NOT_FOUND": fallthrough case "IMPORT": + fallthrough + case "INTERPRETER_PARSE": + fallthrough + case "INTERPRETER_RUNTIME": *e = V2ErrorsEnum(v) return nil default: