diff --git a/docs/database/_default/diagrams/summary/relationships.real.compact.dot b/docs/database/_default/diagrams/summary/relationships.real.compact.dot index 68003186a..269fdddcb 100644 --- a/docs/database/_default/diagrams/summary/relationships.real.compact.dot +++ b/docs/database/_default/diagrams/summary/relationships.real.compact.dot @@ -12,6 +12,7 @@ digraph "compactRelationshipsDiagram" {
accounts_address_array
asset
effective_date
+
transactions_id
... < 2 > diff --git a/docs/database/_default/diagrams/summary/relationships.real.compact.png b/docs/database/_default/diagrams/summary/relationships.real.compact.png index cedb77457..b6db6af89 100644 Binary files a/docs/database/_default/diagrams/summary/relationships.real.compact.png and b/docs/database/_default/diagrams/summary/relationships.real.compact.png differ diff --git a/docs/database/_default/diagrams/summary/relationships.real.large.dot b/docs/database/_default/diagrams/summary/relationships.real.large.dot index b59384fe6..e38ded97d 100644 --- a/docs/database/_default/diagrams/summary/relationships.real.large.dot +++ b/docs/database/_default/diagrams/summary/relationships.real.large.dot @@ -17,7 +17,7 @@ digraph "largeRelationshipsDiagram" {
post_commit_volumes
post_commit_effective_volumes
is_source
-
transactions_id
+
transactions_id
< 2 > URL="tables/moves.html" diff --git a/docs/database/_default/diagrams/summary/relationships.real.large.png b/docs/database/_default/diagrams/summary/relationships.real.large.png index 5d72e87da..bdda4e138 100644 Binary files a/docs/database/_default/diagrams/summary/relationships.real.large.png and b/docs/database/_default/diagrams/summary/relationships.real.large.png differ diff --git a/docs/database/_default/diagrams/tables/accounts.1degree.dot b/docs/database/_default/diagrams/tables/accounts.1degree.dot index 3130804ef..c7dc9093a 100644 --- a/docs/database/_default/diagrams/tables/accounts.1degree.dot +++ b/docs/database/_default/diagrams/tables/accounts.1degree.dot @@ -49,6 +49,7 @@ digraph "oneDegreeRelationshipsDiagram" {
accounts_address_array
asset
effective_date
+
transactions_id
... < 2 > diff --git a/docs/database/_default/diagrams/tables/accounts.1degree.png b/docs/database/_default/diagrams/tables/accounts.1degree.png index 15a6958d4..c212dfcfc 100644 Binary files a/docs/database/_default/diagrams/tables/accounts.1degree.png and b/docs/database/_default/diagrams/tables/accounts.1degree.png differ diff --git a/docs/database/_default/diagrams/tables/accounts.2degrees.dot b/docs/database/_default/diagrams/tables/accounts.2degrees.dot index 874a104ba..10f0e9499 100644 --- a/docs/database/_default/diagrams/tables/accounts.2degrees.dot +++ b/docs/database/_default/diagrams/tables/accounts.2degrees.dot @@ -50,6 +50,7 @@ digraph "twoDegreesRelationshipsDiagram" {
accounts_address_array
asset
effective_date
+
transactions_id
... < 2 > diff --git a/docs/database/_default/diagrams/tables/accounts.2degrees.png b/docs/database/_default/diagrams/tables/accounts.2degrees.png index 886c587f4..79ab8c675 100644 Binary files a/docs/database/_default/diagrams/tables/accounts.2degrees.png and b/docs/database/_default/diagrams/tables/accounts.2degrees.png differ diff --git a/docs/database/_default/diagrams/tables/moves.1degree.dot b/docs/database/_default/diagrams/tables/moves.1degree.dot index 4eecec0aa..3f1e4b504 100644 --- a/docs/database/_default/diagrams/tables/moves.1degree.dot +++ b/docs/database/_default/diagrams/tables/moves.1degree.dot @@ -35,7 +35,7 @@ digraph "oneDegreeRelationshipsDiagram" {
post_commit_volumes
"_default"."volumes"[2147483647]
post_commit_effective_volumes
"_default"."volumes"[2147483647]
is_source
bool[1] -
transactions_id
int8[19] +
transactions_id
int8[19] < 2 0 > > URL="moves.html" diff --git a/docs/database/_default/diagrams/tables/moves.1degree.png b/docs/database/_default/diagrams/tables/moves.1degree.png index c4d89080b..f1a8d1c93 100644 Binary files a/docs/database/_default/diagrams/tables/moves.1degree.png and b/docs/database/_default/diagrams/tables/moves.1degree.png differ diff --git a/docs/database/_default/diagrams/tables/moves.2degrees.dot b/docs/database/_default/diagrams/tables/moves.2degrees.dot index 522901764..79bbc3fe8 100644 --- a/docs/database/_default/diagrams/tables/moves.2degrees.dot +++ b/docs/database/_default/diagrams/tables/moves.2degrees.dot @@ -48,7 +48,7 @@ digraph "twoDegreesRelationshipsDiagram" {
post_commit_volumes
"_default"."volumes"[2147483647]
post_commit_effective_volumes
"_default"."volumes"[2147483647]
is_source
bool[1] -
transactions_id
int8[19] +
transactions_id
int8[19] < 2 0 > > URL="moves.html" diff --git a/docs/database/_default/diagrams/tables/transactions.1degree.dot b/docs/database/_default/diagrams/tables/transactions.1degree.dot index 5fbecf18b..475911a66 100644 --- a/docs/database/_default/diagrams/tables/transactions.1degree.dot +++ b/docs/database/_default/diagrams/tables/transactions.1degree.dot @@ -14,6 +14,7 @@ digraph "oneDegreeRelationshipsDiagram" {
accounts_address_array
asset
effective_date
+
transactions_id
... < 2 > diff --git a/docs/database/_default/diagrams/tables/transactions.1degree.png b/docs/database/_default/diagrams/tables/transactions.1degree.png index 5dbb51b85..b7e0537d3 100644 Binary files a/docs/database/_default/diagrams/tables/transactions.1degree.png and b/docs/database/_default/diagrams/tables/transactions.1degree.png differ diff --git a/docs/database/_default/diagrams/tables/transactions.2degrees.dot b/docs/database/_default/diagrams/tables/transactions.2degrees.dot index 1303d9cd3..5c7dfa2b7 100644 --- a/docs/database/_default/diagrams/tables/transactions.2degrees.dot +++ b/docs/database/_default/diagrams/tables/transactions.2degrees.dot @@ -26,6 +26,7 @@ digraph "twoDegreesRelationshipsDiagram" {
accounts_address_array
asset
effective_date
+
transactions_id
... < 2 > diff --git a/docs/database/_default/diagrams/tables/transactions.2degrees.png b/docs/database/_default/diagrams/tables/transactions.2degrees.png index 010febb8c..752460a43 100644 Binary files a/docs/database/_default/diagrams/tables/transactions.2degrees.png and b/docs/database/_default/diagrams/tables/transactions.2degrees.png differ diff --git a/internal/storage/bucket/migrations/15-create-ledger-indexes/up.sql b/internal/storage/bucket/migrations/15-create-ledger-indexes/up.sql index 5fa90936e..14d95d96a 100644 --- a/internal/storage/bucket/migrations/15-create-ledger-indexes/up.sql +++ b/internal/storage/bucket/migrations/15-create-ledger-indexes/up.sql @@ -4,36 +4,4 @@ drop trigger enforce_reference_uniqueness on transactions; drop function enforce_reference_uniqueness(); drop index transactions_reference; -alter index transactions_reference2 rename to transactions_reference; - -DO -$do$ - declare - ledger record; - vsql text; - BEGIN - for ledger in select * from _system.ledgers where bucket = current_schema loop - -- enable post commit effective volumes synchronously - vsql = 'create index "pcev_' || ledger.id || '" on moves (accounts_address, asset, effective_date desc) where ledger = ''' || ledger.name || ''''; - execute vsql; - - vsql = 'create index "transactions_sources_' || ledger.id || '" on transactions using gin (sources jsonb_path_ops) where ledger = ''' || ledger.name || ''''; - execute vsql; - - vsql = 'create index "transactions_destinations_' || ledger.id || '" on transactions using gin (destinations jsonb_path_ops) where ledger = ''' || ledger.name || ''''; - execute vsql; - - vsql = 'create index "accounts_address_array_' || ledger.id || '" on accounts using gin (address_array jsonb_ops) where ledger = ''' || ledger.name || ''''; - execute vsql; - - vsql = 'create index "accounts_address_array_length_' || ledger.id || '" on accounts (jsonb_array_length(address_array)) where ledger = ''' || ledger.name || ''''; - execute vsql; - - vsql = 'create index "transactions_sources_arrays_' || ledger.id || '" on transactions using gin (sources_arrays jsonb_path_ops) where ledger = ''' || ledger.name || ''''; - execute vsql; - - vsql = 'create index "transactions_destinations_arrays_' || ledger.id || '" on transactions using gin (destinations_arrays jsonb_path_ops) where ledger = ''' || ledger.name || ''''; - execute vsql; - end loop; - END -$do$; +alter index transactions_reference2 rename to transactions_reference; \ No newline at end of file diff --git a/internal/storage/bucket/migrations/23-delete-orphan-indices/notes.yaml b/internal/storage/bucket/migrations/23-delete-orphan-indices/notes.yaml deleted file mode 100644 index 236c85141..000000000 --- a/internal/storage/bucket/migrations/23-delete-orphan-indices/notes.yaml +++ /dev/null @@ -1 +0,0 @@ -name: Delete duplicated indexes diff --git a/internal/storage/bucket/migrations/23-delete-orphan-indices/up.sql b/internal/storage/bucket/migrations/23-delete-orphan-indices/up.sql deleted file mode 100644 index d638dd429..000000000 --- a/internal/storage/bucket/migrations/23-delete-orphan-indices/up.sql +++ /dev/null @@ -1,2 +0,0 @@ -drop index "{{ .Schema }}".accounts_address_array; -drop index "{{ .Schema }}".accounts_address_array_length; diff --git a/internal/storage/bucket/migrations/23-delete-orphan-indices/up_tests_before.sql b/internal/storage/bucket/migrations/23-delete-orphan-indices/up_tests_before.sql deleted file mode 100644 index e69de29bb..000000000 diff --git a/internal/storage/bucket/migrations/23-noop-keep-for-compatibility/notes.yaml b/internal/storage/bucket/migrations/23-noop-keep-for-compatibility/notes.yaml new file mode 100644 index 000000000..ab4b7e1a2 --- /dev/null +++ b/internal/storage/bucket/migrations/23-noop-keep-for-compatibility/notes.yaml @@ -0,0 +1 @@ +name: Noop, keep for compatibility diff --git a/internal/storage/bucket/migrations/23-delete-orphan-indices/up_tests_after.sql b/internal/storage/bucket/migrations/23-noop-keep-for-compatibility/up.sql similarity index 100% rename from internal/storage/bucket/migrations/23-delete-orphan-indices/up_tests_after.sql rename to internal/storage/bucket/migrations/23-noop-keep-for-compatibility/up.sql diff --git a/internal/storage/ledger/main_test.go b/internal/storage/ledger/main_test.go index 9ea1cc84a..668451e64 100644 --- a/internal/storage/ledger/main_test.go +++ b/internal/storage/ledger/main_test.go @@ -74,12 +74,15 @@ type T interface { func newLedgerStore(t T) *ledgerstore.Store { t.Helper() + <-defaultBunDB.Done() <-defaultDriver.Done() ledgerName := uuid.NewString()[:8] ctx := logging.TestingContext() l := ledger.MustNewWithDefault(ledgerName) + err := bucket.GetMigrator(defaultBunDB.GetValue(), "_default").Up(ctx) + require.NoError(t, err) store, err := defaultDriver.GetValue().CreateLedger(ctx, &l) require.NoError(t, err) diff --git a/pkg/client/.speakeasy/gen.lock b/pkg/client/.speakeasy/gen.lock index 0bd31125e..69d84c282 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: 2624238aba49e6a33f19ef1d62f0b568 + docChecksum: 1596e540a51d2b443378a8de0698b2f4 docVersion: v1 speakeasyVersion: 1.351.0 generationVersion: 2.384.1 - releaseVersion: 0.4.34 - configChecksum: 44b98e4f6380b040c4360085974a2b3f + releaseVersion: 0.5.0 + configChecksum: 598ba44ea6e4a0fa32d0a3e02d870ace features: go: additionalDependencies: 0.1.0 diff --git a/pkg/client/docs/models/components/v2errorsenum.md b/pkg/client/docs/models/components/v2errorsenum.md index f1757ffab..e6959db96 100644 --- a/pkg/client/docs/models/components/v2errorsenum.md +++ b/pkg/client/docs/models/components/v2errorsenum.md @@ -21,4 +21,5 @@ | `V2ErrorsEnumBulkSizeExceeded` | BULK_SIZE_EXCEEDED | | `V2ErrorsEnumInterpreterParse` | INTERPRETER_PARSE | | `V2ErrorsEnumInterpreterRuntime` | INTERPRETER_RUNTIME | -| `V2ErrorsEnumLedgerAlreadyExists` | LEDGER_ALREADY_EXISTS | \ No newline at end of file +| `V2ErrorsEnumLedgerAlreadyExists` | LEDGER_ALREADY_EXISTS | +| `V2ErrorsEnumBucketOutdated` | BUCKET_OUTDATED | \ No newline at end of file diff --git a/pkg/client/docs/models/operations/v2countaccountsrequest.md b/pkg/client/docs/models/operations/v2countaccountsrequest.md index dc139fe4e..fdc614bbe 100644 --- a/pkg/client/docs/models/operations/v2countaccountsrequest.md +++ b/pkg/client/docs/models/operations/v2countaccountsrequest.md @@ -3,9 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `Ledger` | *string* | :heavy_check_mark: | Name of the ledger. | ledger001 | -| `Pit` | [*time.Time](https://pkg.go.dev/time#Time) | :heavy_minus_sign: | N/A | | -| `Query` | **string* | :heavy_minus_sign: | Query string to filter accounts. The query string must be a valid JSON object. | {
"$match": {
"address": "users:001"
}
} | -| `RequestBody` | map[string]*any* | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `Ledger` | *string* | :heavy_check_mark: | Name of the ledger. | ledger001 | +| `Pit` | [*time.Time](https://pkg.go.dev/time#Time) | :heavy_minus_sign: | N/A | | +| `RequestBody` | map[string]*any* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/pkg/client/docs/models/operations/v2counttransactionsrequest.md b/pkg/client/docs/models/operations/v2counttransactionsrequest.md index 17625a992..9e4c5cd88 100644 --- a/pkg/client/docs/models/operations/v2counttransactionsrequest.md +++ b/pkg/client/docs/models/operations/v2counttransactionsrequest.md @@ -3,9 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `Ledger` | *string* | :heavy_check_mark: | Name of the ledger. | ledger001 | -| `Pit` | [*time.Time](https://pkg.go.dev/time#Time) | :heavy_minus_sign: | N/A | | -| `Query` | **string* | :heavy_minus_sign: | Query string to filter transactions. The query string must be a valid JSON object. | {
"$match": {
"account": "users:001"
}
} | -| `RequestBody` | map[string]*any* | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `Ledger` | *string* | :heavy_check_mark: | Name of the ledger. | ledger001 | +| `Pit` | [*time.Time](https://pkg.go.dev/time#Time) | :heavy_minus_sign: | N/A | | +| `RequestBody` | map[string]*any* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/pkg/client/docs/models/operations/v2listaccountsrequest.md b/pkg/client/docs/models/operations/v2listaccountsrequest.md index b2c76f3ab..a55a6bf00 100644 --- a/pkg/client/docs/models/operations/v2listaccountsrequest.md +++ b/pkg/client/docs/models/operations/v2listaccountsrequest.md @@ -10,5 +10,4 @@ | `Cursor` | **string* | :heavy_minus_sign: | Parameter used in pagination requests. Maximum page size is set to 15.
Set to the value of next for the next page of results.
Set to the value of previous for the previous page of results.
No other parameters can be set when this parameter is set.
| aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== | | `Expand` | **string* | :heavy_minus_sign: | N/A | | | `Pit` | [*time.Time](https://pkg.go.dev/time#Time) | :heavy_minus_sign: | N/A | | -| `Query` | **string* | :heavy_minus_sign: | Query string to filter accounts. The query string must be a valid JSON object. | {
"$match": {
"address": "users:001"
}
} | | `RequestBody` | map[string]*any* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/pkg/client/docs/models/operations/v2listtransactionsrequest.md b/pkg/client/docs/models/operations/v2listtransactionsrequest.md index 1ad961552..eb6f8c5ea 100644 --- a/pkg/client/docs/models/operations/v2listtransactionsrequest.md +++ b/pkg/client/docs/models/operations/v2listtransactionsrequest.md @@ -6,7 +6,6 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Ledger` | *string* | :heavy_check_mark: | Name of the ledger. | ledger001 | -| `Query` | **string* | :heavy_minus_sign: | Query string to filter transactions. The query string must be a valid JSON object. | {
"$match": {
"account": "users:001"
}
} | | `PageSize` | **int64* | :heavy_minus_sign: | The maximum number of results to return per page.
| 100 | | `Cursor` | **string* | :heavy_minus_sign: | Parameter used in pagination requests. Maximum page size is set to 15.
Set to the value of next for the next page of results.
Set to the value of previous for the previous page of results.
No other parameters can be set when this parameter is set.
| aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== | | `Expand` | **string* | :heavy_minus_sign: | N/A | | diff --git a/pkg/client/docs/sdks/v2/README.md b/pkg/client/docs/sdks/v2/README.md index 3788cf758..5791b00c1 100644 --- a/pkg/client/docs/sdks/v2/README.md +++ b/pkg/client/docs/sdks/v2/README.md @@ -488,7 +488,6 @@ func main() { ) request := operations.V2CountAccountsRequest{ Ledger: "ledger001", - Query: client.String("{\"$match\":{\"address\":\"users:001\"}}"), } ctx := context.Background() res, err := s.Ledger.V2.CountAccounts(ctx, request) @@ -546,7 +545,6 @@ func main() { Ledger: "ledger001", PageSize: client.Int64(100), Cursor: client.String("aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ=="), - Query: client.String("{\"$match\":{\"address\":\"users:001\"}}"), } ctx := context.Background() res, err := s.Ledger.V2.ListAccounts(ctx, request) @@ -831,7 +829,6 @@ func main() { ) request := operations.V2CountTransactionsRequest{ Ledger: "ledger001", - Query: client.String("{\"$match\":{\"account\":\"users:001\"}}"), } ctx := context.Background() res, err := s.Ledger.V2.CountTransactions(ctx, request) @@ -887,7 +884,6 @@ func main() { ) request := operations.V2ListTransactionsRequest{ Ledger: "ledger001", - Query: client.String("{\"$match\":{\"account\":\"users:001\"}}"), PageSize: client.Int64(100), Cursor: client.String("aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ=="), } diff --git a/pkg/client/models/components/v2errorsenum.go b/pkg/client/models/components/v2errorsenum.go index 8bbc25e7a..be953b76e 100644 --- a/pkg/client/models/components/v2errorsenum.go +++ b/pkg/client/models/components/v2errorsenum.go @@ -27,6 +27,7 @@ const ( V2ErrorsEnumInterpreterParse V2ErrorsEnum = "INTERPRETER_PARSE" V2ErrorsEnumInterpreterRuntime V2ErrorsEnum = "INTERPRETER_RUNTIME" V2ErrorsEnumLedgerAlreadyExists V2ErrorsEnum = "LEDGER_ALREADY_EXISTS" + V2ErrorsEnumBucketOutdated V2ErrorsEnum = "BUCKET_OUTDATED" ) func (e V2ErrorsEnum) ToPointer() *V2ErrorsEnum { @@ -71,6 +72,8 @@ func (e *V2ErrorsEnum) UnmarshalJSON(data []byte) error { case "INTERPRETER_RUNTIME": fallthrough case "LEDGER_ALREADY_EXISTS": + fallthrough + case "BUCKET_OUTDATED": *e = V2ErrorsEnum(v) return nil default: diff --git a/pkg/client/models/operations/v2countaccounts.go b/pkg/client/models/operations/v2countaccounts.go index a350b8c91..d5aa0588d 100644 --- a/pkg/client/models/operations/v2countaccounts.go +++ b/pkg/client/models/operations/v2countaccounts.go @@ -10,10 +10,8 @@ import ( type V2CountAccountsRequest struct { // Name of the ledger. - Ledger string `pathParam:"style=simple,explode=false,name=ledger"` - Pit *time.Time `queryParam:"style=form,explode=true,name=pit"` - // Query string to filter accounts. The query string must be a valid JSON object. - Query *string `queryParam:"style=form,explode=true,name=query"` + Ledger string `pathParam:"style=simple,explode=false,name=ledger"` + Pit *time.Time `queryParam:"style=form,explode=true,name=pit"` RequestBody map[string]any `request:"mediaType=application/json"` } @@ -42,13 +40,6 @@ func (o *V2CountAccountsRequest) GetPit() *time.Time { return o.Pit } -func (o *V2CountAccountsRequest) GetQuery() *string { - if o == nil { - return nil - } - return o.Query -} - func (o *V2CountAccountsRequest) GetRequestBody() map[string]any { if o == nil { return nil diff --git a/pkg/client/models/operations/v2counttransactions.go b/pkg/client/models/operations/v2counttransactions.go index c37ed0a65..f6dfc324f 100644 --- a/pkg/client/models/operations/v2counttransactions.go +++ b/pkg/client/models/operations/v2counttransactions.go @@ -10,10 +10,8 @@ import ( type V2CountTransactionsRequest struct { // Name of the ledger. - Ledger string `pathParam:"style=simple,explode=false,name=ledger"` - Pit *time.Time `queryParam:"style=form,explode=true,name=pit"` - // Query string to filter transactions. The query string must be a valid JSON object. - Query *string `queryParam:"style=form,explode=true,name=query"` + Ledger string `pathParam:"style=simple,explode=false,name=ledger"` + Pit *time.Time `queryParam:"style=form,explode=true,name=pit"` RequestBody map[string]any `request:"mediaType=application/json"` } @@ -42,13 +40,6 @@ func (o *V2CountTransactionsRequest) GetPit() *time.Time { return o.Pit } -func (o *V2CountTransactionsRequest) GetQuery() *string { - if o == nil { - return nil - } - return o.Query -} - func (o *V2CountTransactionsRequest) GetRequestBody() map[string]any { if o == nil { return nil diff --git a/pkg/client/models/operations/v2listaccounts.go b/pkg/client/models/operations/v2listaccounts.go index 85dd6ec8a..899d40a7b 100644 --- a/pkg/client/models/operations/v2listaccounts.go +++ b/pkg/client/models/operations/v2listaccounts.go @@ -19,11 +19,9 @@ type V2ListAccountsRequest struct { // Set to the value of previous for the previous page of results. // No other parameters can be set when this parameter is set. // - Cursor *string `queryParam:"style=form,explode=true,name=cursor"` - Expand *string `queryParam:"style=form,explode=true,name=expand"` - Pit *time.Time `queryParam:"style=form,explode=true,name=pit"` - // Query string to filter accounts. The query string must be a valid JSON object. - Query *string `queryParam:"style=form,explode=true,name=query"` + Cursor *string `queryParam:"style=form,explode=true,name=cursor"` + Expand *string `queryParam:"style=form,explode=true,name=expand"` + Pit *time.Time `queryParam:"style=form,explode=true,name=pit"` RequestBody map[string]any `request:"mediaType=application/json"` } @@ -73,13 +71,6 @@ func (o *V2ListAccountsRequest) GetPit() *time.Time { return o.Pit } -func (o *V2ListAccountsRequest) GetQuery() *string { - if o == nil { - return nil - } - return o.Query -} - func (o *V2ListAccountsRequest) GetRequestBody() map[string]any { if o == nil { return nil diff --git a/pkg/client/models/operations/v2listtransactions.go b/pkg/client/models/operations/v2listtransactions.go index 4030fdab9..88a233ac3 100644 --- a/pkg/client/models/operations/v2listtransactions.go +++ b/pkg/client/models/operations/v2listtransactions.go @@ -36,8 +36,6 @@ func (e *Order) UnmarshalJSON(data []byte) error { type V2ListTransactionsRequest struct { // Name of the ledger. Ledger string `pathParam:"style=simple,explode=false,name=ledger"` - // Query string to filter transactions. The query string must be a valid JSON object. - Query *string `queryParam:"style=form,explode=true,name=query"` // The maximum number of results to return per page. // PageSize *int64 `queryParam:"style=form,explode=true,name=pageSize"` @@ -72,13 +70,6 @@ func (o *V2ListTransactionsRequest) GetLedger() string { return o.Ledger } -func (o *V2ListTransactionsRequest) GetQuery() *string { - if o == nil { - return nil - } - return o.Query -} - func (o *V2ListTransactionsRequest) GetPageSize() *int64 { if o == nil { return nil