@leaflow/sdk 0.98.0 → 0.100.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,8 +3,12 @@ export { client } from "./client.js";
3
3
  import type { operations } from "./schema.js";
4
4
  /** The success response body of `GET /account/v1/currencies`. */
5
5
  export type ListCurrenciesResult = operations["list-currencies"]["responses"][200]["content"]["application/json"];
6
+ /** The query parameters of `GET /account/v1/currencies`. */
7
+ export type ListCurrenciesQuery = operations["list-currencies"]["parameters"]["query"];
6
8
  /** The success response body of `GET /account/v1/billing-accounts`. */
7
9
  export type ListBillingAccountsResult = operations["list-billing-accounts"]["responses"][200]["content"]["application/json"];
10
+ /** The query parameters of `GET /account/v1/billing-accounts`. */
11
+ export type ListBillingAccountsQuery = operations["list-billing-accounts"]["parameters"]["query"];
8
12
  /** The success response body of `POST /account/v1/billing-accounts`. */
9
13
  export type CreateBillingAccountResult = operations["create-billing-account"]["responses"][201]["content"]["application/json"];
10
14
  /** The request body of `POST /account/v1/billing-accounts`. */
@@ -21,6 +25,8 @@ export type GetAccountBalanceResult = operations["get-account-balance"]["respons
21
25
  export type GetAccountMeteredUsageResult = operations["get-account-metered-usage"]["responses"][200]["content"]["application/json"];
22
26
  /** The success response body of `GET /account/v1/billing-accounts/{accountId}/payment-options`. */
23
27
  export type ListPaymentOptionsResult = operations["list-payment-options"]["responses"][200]["content"]["application/json"];
28
+ /** The query parameters of `GET /account/v1/billing-accounts/{accountId}/payment-options`. */
29
+ export type ListPaymentOptionsQuery = operations["list-payment-options"]["parameters"]["query"];
24
30
  /** The success response body of `GET /account/v1/projects`. */
25
31
  export type ListBillingAccountProjectsResult = operations["list-billing-account-projects"]["responses"][200]["content"]["application/json"];
26
32
  /** The query parameters of `GET /account/v1/projects`. */
@@ -33,6 +39,8 @@ export type SetProjectBillingAccountResult = operations["set-project-billing-acc
33
39
  export type SetProjectBillingAccountBody = NonNullable<operations["set-project-billing-account"]["requestBody"]>["content"]["application/json"];
34
40
  /** The success response body of `GET /account/v1/top-ups`. */
35
41
  export type ListTopUpsResult = operations["list-top-ups"]["responses"][200]["content"]["application/json"];
42
+ /** The query parameters of `GET /account/v1/top-ups`. */
43
+ export type ListTopUpsQuery = operations["list-top-ups"]["parameters"]["query"];
36
44
  /** The success response body of `POST /account/v1/top-ups`. */
37
45
  export type CreateTopUpResult = operations["create-top-up"]["responses"][201]["content"]["application/json"];
38
46
  /** The request body of `POST /account/v1/top-ups`. */
@@ -43,6 +51,8 @@ export type GetTopUpResult = operations["get-top-up"]["responses"][200]["content
43
51
  export type CancelTopUpResult = operations["cancel-top-up"]["responses"][200]["content"]["application/json"];
44
52
  /** The success response body of `GET /account/v1/payment-methods`. */
45
53
  export type ListPaymentMethodsResult = operations["list-payment-methods"]["responses"][200]["content"]["application/json"];
54
+ /** The query parameters of `GET /account/v1/payment-methods`. */
55
+ export type ListPaymentMethodsQuery = operations["list-payment-methods"]["parameters"]["query"];
46
56
  /** The success response body of `POST /account/v1/payment-methods/setup`. */
47
57
  export type CreatePaymentMethodSetupResult = operations["create-payment-method-setup"]["responses"][201]["content"]["application/json"];
48
58
  /** The request body of `POST /account/v1/payment-methods/setup`. */
@@ -73,10 +83,16 @@ export type ListInvoicesQuery = operations["list-invoices"]["parameters"]["query
73
83
  export type GetInvoiceResult = operations["get-invoice"]["responses"][200]["content"]["application/json"];
74
84
  /** The success response body of `GET /account/v1/invoices/{invoiceId}/items`. */
75
85
  export type ListInvoiceItemsResult = operations["list-invoice-items"]["responses"][200]["content"]["application/json"];
86
+ /** The query parameters of `GET /account/v1/invoices/{invoiceId}/items`. */
87
+ export type ListInvoiceItemsQuery = operations["list-invoice-items"]["parameters"]["query"];
76
88
  /** The success response body of `GET /account/v1/transactions`. */
77
89
  export type ListTransactionsResult = operations["list-transactions"]["responses"][200]["content"]["application/json"];
90
+ /** The query parameters of `GET /account/v1/transactions`. */
91
+ export type ListTransactionsQuery = operations["list-transactions"]["parameters"]["query"];
78
92
  /** The success response body of `GET /account/v1/discounts`. */
79
93
  export type ListAccountDiscountsResult = operations["list-account-discounts"]["responses"][200]["content"]["application/json"];
94
+ /** The query parameters of `GET /account/v1/discounts`. */
95
+ export type ListAccountDiscountsQuery = operations["list-account-discounts"]["parameters"]["query"];
80
96
  /** The success response body of `GET /account/v1/credit-grants`. */
81
97
  export type ListCreditGrantsResult = operations["list-credit-grants"]["responses"][200]["content"]["application/json"];
82
98
  /** The query parameters of `GET /account/v1/credit-grants`. */
@@ -113,6 +129,8 @@ export type GetCancellationResult = operations["get-cancellation"]["responses"][
113
129
  export type WithdrawCancellationResult = operations["withdraw-cancellation"]["responses"][200]["content"]["application/json"];
114
130
  /** The success response body of `GET /account/v1/subscriptions/{subscriptionId}/renewal-prices`. */
115
131
  export type ListRenewalPricesResult = operations["list-renewal-prices"]["responses"][200]["content"]["application/json"];
132
+ /** The query parameters of `GET /account/v1/subscriptions/{subscriptionId}/renewal-prices`. */
133
+ export type ListRenewalPricesQuery = operations["list-renewal-prices"]["parameters"]["query"];
116
134
  /** The success response body of `POST /account/v1/subscriptions/{subscriptionId}/renew`. */
117
135
  export type RenewSubscriptionResult = operations["renew-subscription"]["responses"][200]["content"]["application/json"];
118
136
  /** The request body of `POST /account/v1/subscriptions/{subscriptionId}/renew`. */
@@ -143,6 +161,8 @@ export type GetOrderResult = operations["get-order"]["responses"][200]["content"
143
161
  export type CancelOrderResult = operations["cancel-order"]["responses"][200]["content"]["application/json"];
144
162
  /** The success response body of `GET /account/v1/orders/{orderId}/items`. */
145
163
  export type ListOrderItemsResult = operations["list-order-items"]["responses"][200]["content"]["application/json"];
164
+ /** The query parameters of `GET /account/v1/orders/{orderId}/items`. */
165
+ export type ListOrderItemsQuery = operations["list-order-items"]["parameters"]["query"];
146
166
  /** The success response body of `GET /account/v1/entitlements`. */
147
167
  export type ListEntitlementsResult = operations["list-entitlements"]["responses"][200]["content"]["application/json"];
148
168
  /** The query parameters of `GET /account/v1/entitlements`. */
@@ -13,7 +13,7 @@ export interface paths {
13
13
  /**
14
14
  * List currencies accounts can be opened in
15
15
  * @description The currencies a new billing account can be opened in. A retired currency is not listed,
16
- * although accounts already opened in it keep working. Not paged: the set is a few rows.
16
+ * although accounts already opened in it keep working. Results are paginated.
17
17
  */
18
18
  get: operations["list-currencies"];
19
19
  put?: never;
@@ -130,8 +130,8 @@ export interface paths {
130
130
  * List payment options
131
131
  * @description Lists the payment gateways and methods that currently accept payment in this account's currency, the
132
132
  * preferred gateway first. Top-ups and invoice payments must name a gateway and method listed here;
133
- * others are refused. An empty list means no online payment is available for this account. Not paged: the
134
- * set is a few rows.
133
+ * others are refused. An empty result means no online payment is available for this account.
134
+ * Results are paginated.
135
135
  */
136
136
  get: operations["list-payment-options"];
137
137
  put?: never;
@@ -1361,8 +1361,7 @@ export interface components {
1361
1361
  };
1362
1362
  CancellationList: {
1363
1363
  items: components["schemas"]["Cancellation"][];
1364
- /** Format: int64 */
1365
- total_count?: number;
1364
+ pagination: components["schemas"]["OffsetPagination"];
1366
1365
  };
1367
1366
  /** @description A cancellation request for the original purchase. scheduled_at is the intended time; effective_at is the confirmed end of service. The request alone does not stop metering or issue a refund. */
1368
1367
  CancellationRequest: {
@@ -1517,6 +1516,7 @@ export interface components {
1517
1516
  };
1518
1517
  CurrencyList: {
1519
1518
  items: components["schemas"]["Currency"][];
1519
+ pagination: components["schemas"]["OffsetPagination"];
1520
1520
  };
1521
1521
  BillingAccountCreate: {
1522
1522
  currency: string;
@@ -1538,8 +1538,7 @@ export interface components {
1538
1538
  };
1539
1539
  BillingAccountList: {
1540
1540
  items: components["schemas"]["BillingAccount"][];
1541
- /** Format: int64 */
1542
- total_count?: number;
1541
+ pagination: components["schemas"]["OffsetPagination"];
1543
1542
  };
1544
1543
  /** @description Account balance, credits, and unpaid charges are reported separately. */
1545
1544
  AccountBalance: {
@@ -1632,8 +1631,7 @@ export interface components {
1632
1631
  };
1633
1632
  ProjectBillingInfoList: {
1634
1633
  items: components["schemas"]["ProjectBillingInfo"][];
1635
- /** Format: int64 */
1636
- total_count?: number;
1634
+ pagination: components["schemas"]["OffsetPagination"];
1637
1635
  };
1638
1636
  ProjectBillingInfoSet: {
1639
1637
  /** Format: int64 */
@@ -1747,8 +1745,7 @@ export interface components {
1747
1745
  };
1748
1746
  TopUpList: {
1749
1747
  items: components["schemas"]["TopUp"][];
1750
- /** Format: int64 */
1751
- total_count?: number;
1748
+ pagination: components["schemas"]["OffsetPagination"];
1752
1749
  };
1753
1750
  /**
1754
1751
  * @description Why a gateway payment was withdrawn. `abandoned` means the customer did not complete it within the time
@@ -1773,6 +1770,7 @@ export interface components {
1773
1770
  };
1774
1771
  PaymentOptionList: {
1775
1772
  items: components["schemas"]["PaymentOption"][];
1773
+ pagination: components["schemas"]["OffsetPagination"];
1776
1774
  };
1777
1775
  PaymentMethod: {
1778
1776
  /** Format: uuid */
@@ -1790,8 +1788,7 @@ export interface components {
1790
1788
  };
1791
1789
  PaymentMethodList: {
1792
1790
  items: components["schemas"]["PaymentMethod"][];
1793
- /** Format: int64 */
1794
- total_count?: number;
1791
+ pagination: components["schemas"]["OffsetPagination"];
1795
1792
  };
1796
1793
  PaymentMethodSetup: {
1797
1794
  /** @description The selected gateway supporting saved payment methods. */
@@ -2032,8 +2029,7 @@ export interface components {
2032
2029
  };
2033
2030
  InvoiceList: {
2034
2031
  items: components["schemas"]["Invoice"][];
2035
- /** Format: int64 */
2036
- total_count?: number;
2032
+ pagination: components["schemas"]["OffsetPagination"];
2037
2033
  };
2038
2034
  InvoiceItem: {
2039
2035
  recurring_amount?: string;
@@ -2081,8 +2077,7 @@ export interface components {
2081
2077
  };
2082
2078
  InvoiceItemList: {
2083
2079
  items: components["schemas"]["InvoiceItem"][];
2084
- /** Format: int64 */
2085
- total_count?: number;
2080
+ pagination: components["schemas"]["OffsetPagination"];
2086
2081
  };
2087
2082
  /**
2088
2083
  * @description topup adds to the balance; payment settles an invoice; refund returns original funds; payout withdraws from the balance; adjustment changes the balance with an audit reason.
@@ -2158,8 +2153,7 @@ export interface components {
2158
2153
  };
2159
2154
  TransactionList: {
2160
2155
  items: components["schemas"]["Transaction"][];
2161
- /** Format: int64 */
2162
- total_count?: number;
2156
+ pagination: components["schemas"]["OffsetPagination"];
2163
2157
  };
2164
2158
  CreditGrant: {
2165
2159
  min_amount?: string;
@@ -2182,8 +2176,7 @@ export interface components {
2182
2176
  };
2183
2177
  CreditGrantList: {
2184
2178
  items: components["schemas"]["CreditGrant"][];
2185
- /** Format: int64 */
2186
- total_count?: number;
2179
+ pagination: components["schemas"]["OffsetPagination"];
2187
2180
  };
2188
2181
  Refund: {
2189
2182
  /** Format: uuid */
@@ -2265,8 +2258,7 @@ export interface components {
2265
2258
  RefundReason: "provisioning_failed" | "order_expired" | "order_canceled" | "change_canceled" | "change_expired" | "subscription_canceled" | "future_period_canceled" | "downgrade_difference" | "usage_true_up" | "payment_not_applied" | "operator";
2266
2259
  RefundList: {
2267
2260
  items: components["schemas"]["Refund"][];
2268
- /** Format: int64 */
2269
- total_count?: number;
2261
+ pagination: components["schemas"]["OffsetPagination"];
2270
2262
  };
2271
2263
  UsageCharge: {
2272
2264
  /** Format: uuid */
@@ -2318,13 +2310,11 @@ export interface components {
2318
2310
  };
2319
2311
  UsageChargeList: {
2320
2312
  items: components["schemas"]["UsageCharge"][];
2321
- /** Format: int64 */
2322
- total_count?: number;
2313
+ pagination: components["schemas"]["OffsetPagination"];
2323
2314
  };
2324
2315
  SubscriptionList: {
2325
2316
  items: components["schemas"]["Subscription"][];
2326
- /** Format: int64 */
2327
- total_count?: number;
2317
+ pagination: components["schemas"]["OffsetPagination"];
2328
2318
  };
2329
2319
  /** @description An independently billed purchase. Fixed renewals use the agreed recurring_amount and interval; already paid periods retain their original value. Technical state belongs to the owning service. */
2330
2320
  Subscription: {
@@ -2419,6 +2409,7 @@ export interface components {
2419
2409
  };
2420
2410
  RenewalPriceList: {
2421
2411
  items: components["schemas"]["RenewalPrice"][];
2412
+ pagination: components["schemas"]["OffsetPagination"];
2422
2413
  };
2423
2414
  RenewRequest: {
2424
2415
  /**
@@ -2576,8 +2567,7 @@ export interface components {
2576
2567
  };
2577
2568
  OrderList: {
2578
2569
  items: components["schemas"]["Order"][];
2579
- /** Format: int64 */
2580
- total_count?: number;
2570
+ pagination: components["schemas"]["OffsetPagination"];
2581
2571
  };
2582
2572
  /**
2583
2573
  * @description How it was paid, as recorded at the time. It is kept as it was: removing the card afterwards
@@ -2717,8 +2707,7 @@ export interface components {
2717
2707
  };
2718
2708
  DiscountList: {
2719
2709
  items: components["schemas"]["Discount"][];
2720
- /** Format: int64 */
2721
- total_count?: number;
2710
+ pagination: components["schemas"]["OffsetPagination"];
2722
2711
  };
2723
2712
  /** @description A price's display terms, including retired prices referenced by an applicability list. */
2724
2713
  PriceOption: {
@@ -2840,8 +2829,7 @@ export interface components {
2840
2829
  };
2841
2830
  OrderItemList: {
2842
2831
  items: components["schemas"]["OrderItem"][];
2843
- /** Format: int64 */
2844
- total_count?: number;
2832
+ pagination: components["schemas"]["OffsetPagination"];
2845
2833
  };
2846
2834
  Allowance: {
2847
2835
  /** @description Optional issuance key, unique within this billing account. */
@@ -2885,8 +2873,7 @@ export interface components {
2885
2873
  };
2886
2874
  AllowanceList: {
2887
2875
  items: components["schemas"]["Allowance"][];
2888
- /** Format: int64 */
2889
- total_count?: number;
2876
+ pagination: components["schemas"]["OffsetPagination"];
2890
2877
  };
2891
2878
  Entitlement: {
2892
2879
  product: components["schemas"]["Product"];
@@ -2902,8 +2889,7 @@ export interface components {
2902
2889
  };
2903
2890
  EntitlementList: {
2904
2891
  items: components["schemas"]["Entitlement"][];
2905
- /** Format: int64 */
2906
- total_count?: number;
2892
+ pagination: components["schemas"]["OffsetPagination"];
2907
2893
  };
2908
2894
  /** @description Purchase-related invoice amounts, without account contact details or payment methods. Absent on an order with no immediate invoice. */
2909
2895
  InvoiceSummary: {
@@ -2961,6 +2947,15 @@ export interface components {
2961
2947
  * @example 10.2500000000
2962
2948
  */
2963
2949
  Money: string;
2950
+ /** @description Pagination metadata for stable numbered pages. total_count is returned only when the operation can determine it without an unbounded scan. */
2951
+ OffsetPagination: {
2952
+ /** Format: int64 */
2953
+ page: number;
2954
+ /** Format: int64 */
2955
+ page_size: number;
2956
+ /** Format: int64 */
2957
+ total_count?: number;
2958
+ };
2964
2959
  /**
2965
2960
  * @description Which object this is, together with what a person currently calls it.
2966
2961
  *
@@ -3014,7 +3009,12 @@ export type $defs = Record<string, never>;
3014
3009
  export interface operations {
3015
3010
  "list-currencies": {
3016
3011
  parameters: {
3017
- query?: never;
3012
+ query?: {
3013
+ /** @description 1-based page number; the first page when omitted. */
3014
+ page?: components["parameters"]["Page"];
3015
+ /** @description How many per page, 100 at most. */
3016
+ page_size?: components["parameters"]["PageSize"];
3017
+ };
3018
3018
  header?: never;
3019
3019
  path?: never;
3020
3020
  cookie?: never;
@@ -3182,7 +3182,12 @@ export interface operations {
3182
3182
  };
3183
3183
  "list-payment-options": {
3184
3184
  parameters: {
3185
- query?: never;
3185
+ query?: {
3186
+ /** @description 1-based page number; the first page when omitted. */
3187
+ page?: components["parameters"]["Page"];
3188
+ /** @description How many per page, 100 at most. */
3189
+ page_size?: components["parameters"]["PageSize"];
3190
+ };
3186
3191
  header?: never;
3187
3192
  path: {
3188
3193
  accountId: components["parameters"]["AccountId"];
@@ -4046,7 +4051,12 @@ export interface operations {
4046
4051
  };
4047
4052
  "list-renewal-prices": {
4048
4053
  parameters: {
4049
- query?: never;
4054
+ query?: {
4055
+ /** @description 1-based page number; the first page when omitted. */
4056
+ page?: components["parameters"]["Page"];
4057
+ /** @description How many per page, 100 at most. */
4058
+ page_size?: components["parameters"]["PageSize"];
4059
+ };
4050
4060
  header?: never;
4051
4061
  path: {
4052
4062
  subscriptionId: string;
@@ -7,6 +7,8 @@ export type ListPricesResult = operations["list-prices"]["responses"][200]["cont
7
7
  export type ListPricesQuery = operations["list-prices"]["parameters"]["query"];
8
8
  /** The success response body of `GET /catalog/v1/products`. */
9
9
  export type ListProductsResult = operations["list-products"]["responses"][200]["content"]["application/json"];
10
+ /** The query parameters of `GET /catalog/v1/products`. */
11
+ export type ListProductsQuery = operations["list-products"]["parameters"]["query"];
10
12
  /** The success response body of `GET /catalog/v1/products/{productId}`. */
11
13
  export type GetProductResult = operations["get-product"]["responses"][200]["content"]["application/json"];
12
14
  /** The success response body of `GET /catalog/v1/plans/{planId}`. */
@@ -15,6 +17,8 @@ export type GetPlanResult = operations["get-plan"]["responses"][200]["content"][
15
17
  export type GetPriceResult = operations["get-price"]["responses"][200]["content"]["application/json"];
16
18
  /** The success response body of `GET /catalog/v1/plans`. */
17
19
  export type ListPlansResult = operations["list-plans"]["responses"][200]["content"]["application/json"];
20
+ /** The query parameters of `GET /catalog/v1/plans`. */
21
+ export type ListPlansQuery = operations["list-plans"]["parameters"]["query"];
18
22
  /** The success response body of `GET /catalog/v1/plans/{planId}/prices`. */
19
23
  export type ListPricesByPlanResult = operations["list-prices-by-plan"]["responses"][200]["content"]["application/json"];
20
24
  /** The query parameters of `GET /catalog/v1/plans/{planId}/prices`. */
@@ -242,8 +242,7 @@ export interface components {
242
242
  ProductID: string;
243
243
  ProductList: {
244
244
  items: components["schemas"]["Product"][];
245
- /** Format: int64 */
246
- total_count?: number;
245
+ pagination: components["schemas"]["OffsetPagination"];
247
246
  };
248
247
  Plan: {
249
248
  enabled: boolean;
@@ -258,8 +257,7 @@ export interface components {
258
257
  };
259
258
  PlanList: {
260
259
  items: components["schemas"]["Plan"][];
261
- /** Format: int64 */
262
- total_count?: number;
260
+ pagination: components["schemas"]["OffsetPagination"];
263
261
  };
264
262
  Price: {
265
263
  rate_card?: components["schemas"]["ObjectIdentity"];
@@ -325,8 +323,7 @@ export interface components {
325
323
  };
326
324
  PriceList: {
327
325
  items: components["schemas"]["Price"][];
328
- /** Format: int64 */
329
- total_count?: number;
326
+ pagination: components["schemas"]["OffsetPagination"];
330
327
  };
331
328
  Rate: {
332
329
  meter: components["schemas"]["ObjectIdentity"];
@@ -355,8 +352,7 @@ export interface components {
355
352
  };
356
353
  RateList: {
357
354
  items: components["schemas"]["Rate"][];
358
- /** Format: int64 */
359
- total_count?: number;
355
+ pagination: components["schemas"]["OffsetPagination"];
360
356
  };
361
357
  /**
362
358
  * @description Identify a price directly, or select a price for a plan. For each resource give its ID or lookup key, never both. Lookup keys require product_id.
@@ -502,6 +498,15 @@ export interface components {
502
498
  * @example 10.2500000000
503
499
  */
504
500
  Money: string;
501
+ /** @description Pagination metadata for stable numbered pages. total_count is returned only when the operation can determine it without an unbounded scan. */
502
+ OffsetPagination: {
503
+ /** Format: int64 */
504
+ page: number;
505
+ /** Format: int64 */
506
+ page_size: number;
507
+ /** Format: int64 */
508
+ total_count?: number;
509
+ };
505
510
  };
506
511
  responses: {
507
512
  /** @description Unchanged since the `ETag` that was sent. No body. */
@@ -47,6 +47,8 @@ export type CreateProjectQuoteResult = operations["create-project-quote"]["respo
47
47
  export type CreateProjectQuoteBody = NonNullable<operations["create-project-quote"]["requestBody"]>["content"]["application/json"];
48
48
  /** The success response body of `GET /api/v1/projects/{projectId}/orders/{orderId}/items`. */
49
49
  export type ListProjectOrderItemsResult = operations["list-project-order-items"]["responses"][200]["content"]["application/json"];
50
+ /** The query parameters of `GET /api/v1/projects/{projectId}/orders/{orderId}/items`. */
51
+ export type ListProjectOrderItemsQuery = operations["list-project-order-items"]["parameters"]["query"];
50
52
  /** The success response body of `GET /api/v1/projects/{projectId}/allowances`. */
51
53
  export type ListProjectAllowancesResult = operations["list-project-allowances"]["responses"][200]["content"]["application/json"];
52
54
  /** The query parameters of `GET /api/v1/projects/{projectId}/allowances`. */
@@ -596,8 +596,7 @@ export interface components {
596
596
  };
597
597
  CancellationList: {
598
598
  items: components["schemas"]["Cancellation"][];
599
- /** Format: int64 */
600
- total_count?: number;
599
+ pagination: components["schemas"]["OffsetPagination"];
601
600
  };
602
601
  /** @description A cancellation request for the original purchase. scheduled_at is the intended time; effective_at is the confirmed end of service. The request alone does not stop metering or issue a refund. */
603
602
  CancellationRequest: {
@@ -924,8 +923,7 @@ export interface components {
924
923
  };
925
924
  UsageChargeList: {
926
925
  items: components["schemas"]["UsageCharge"][];
927
- /** Format: int64 */
928
- total_count?: number;
926
+ pagination: components["schemas"]["OffsetPagination"];
929
927
  };
930
928
  SpendRow: {
931
929
  product?: components["schemas"]["Product"];
@@ -942,13 +940,11 @@ export interface components {
942
940
  /** @description The sum over the whole period, not only the page returned. */
943
941
  total: components["schemas"]["Money"];
944
942
  currency: string;
945
- /** Format: int64 */
946
- total_count?: number;
943
+ pagination: components["schemas"]["OffsetPagination"];
947
944
  };
948
945
  SubscriptionList: {
949
946
  items: components["schemas"]["Subscription"][];
950
- /** Format: int64 */
951
- total_count?: number;
947
+ pagination: components["schemas"]["OffsetPagination"];
952
948
  };
953
949
  /** @description An independently billed purchase. Fixed renewals use the agreed recurring_amount and interval; already paid periods retain their original value. Technical state belongs to the owning service. */
954
950
  Subscription: {
@@ -1064,8 +1060,7 @@ export interface components {
1064
1060
  };
1065
1061
  ActiveResourceList: {
1066
1062
  items: components["schemas"]["ActiveResource"][];
1067
- /** Format: int64 */
1068
- total_count?: number;
1063
+ pagination: components["schemas"]["OffsetPagination"];
1069
1064
  };
1070
1065
  /**
1071
1066
  * @description Follows the items. `pending` is not yet accepted and may be paid or unpaid. `active` is
@@ -1155,8 +1150,7 @@ export interface components {
1155
1150
  };
1156
1151
  OrderList: {
1157
1152
  items: components["schemas"]["Order"][];
1158
- /** Format: int64 */
1159
- total_count?: number;
1153
+ pagination: components["schemas"]["OffsetPagination"];
1160
1154
  };
1161
1155
  /**
1162
1156
  * @description How it was paid, as recorded at the time. It is kept as it was: removing the card afterwards
@@ -1260,8 +1254,7 @@ export interface components {
1260
1254
  };
1261
1255
  OrderItemList: {
1262
1256
  items: components["schemas"]["OrderItem"][];
1263
- /** Format: int64 */
1264
- total_count?: number;
1257
+ pagination: components["schemas"]["OffsetPagination"];
1265
1258
  };
1266
1259
  Allowance: {
1267
1260
  /** @description Optional issuance key, unique within this billing account. */
@@ -1305,8 +1298,7 @@ export interface components {
1305
1298
  };
1306
1299
  AllowanceList: {
1307
1300
  items: components["schemas"]["Allowance"][];
1308
- /** Format: int64 */
1309
- total_count?: number;
1301
+ pagination: components["schemas"]["OffsetPagination"];
1310
1302
  };
1311
1303
  Entitlement: {
1312
1304
  product: components["schemas"]["Product"];
@@ -1322,8 +1314,7 @@ export interface components {
1322
1314
  };
1323
1315
  EntitlementList: {
1324
1316
  items: components["schemas"]["Entitlement"][];
1325
- /** Format: int64 */
1326
- total_count?: number;
1317
+ pagination: components["schemas"]["OffsetPagination"];
1327
1318
  };
1328
1319
  /** @description Purchase-related invoice amounts, without account contact details or payment methods. Absent on an order with no immediate invoice. */
1329
1320
  InvoiceSummary: {
@@ -1367,6 +1358,15 @@ export interface components {
1367
1358
  * @example 10.2500000000
1368
1359
  */
1369
1360
  Money: string;
1361
+ /** @description Pagination metadata for stable numbered pages. total_count is returned only when the operation can determine it without an unbounded scan. */
1362
+ OffsetPagination: {
1363
+ /** Format: int64 */
1364
+ page: number;
1365
+ /** Format: int64 */
1366
+ page_size: number;
1367
+ /** Format: int64 */
1368
+ total_count?: number;
1369
+ };
1370
1370
  /**
1371
1371
  * @description Which object this is, together with what a person currently calls it.
1372
1372
  *
@@ -57,8 +57,12 @@ export type ListInstanceTypesResult = operations["list-instance-types"]["respons
57
57
  export type ListInstanceTypesQuery = operations["list-instance-types"]["parameters"]["query"];
58
58
  /** The success response body of `GET /api/v1/regions`. */
59
59
  export type ListRegionsResult = operations["list-regions"]["responses"][200]["content"]["application/json"];
60
+ /** The query parameters of `GET /api/v1/regions`. */
61
+ export type ListRegionsQuery = operations["list-regions"]["parameters"]["query"];
60
62
  /** The success response body of `GET /api/v1/regions/{regionId}/availability-zones`. */
61
63
  export type ListAvailabilityZonesResult = operations["list-availability-zones"]["responses"][200]["content"]["application/json"];
64
+ /** The query parameters of `GET /api/v1/regions/{regionId}/availability-zones`. */
65
+ export type ListAvailabilityZonesQuery = operations["list-availability-zones"]["parameters"]["query"];
62
66
  /** The success response body of `GET /api/v1/disks`. */
63
67
  export type ListDisksResult = operations["list-disks"]["responses"][200]["content"]["application/json"];
64
68
  /** The query parameters of `GET /api/v1/disks`. */
@@ -85,6 +89,8 @@ export type RevertDiskResult = operations["revert-disk"]["responses"][202]["cont
85
89
  export type RevertDiskBody = NonNullable<operations["revert-disk"]["requestBody"]>["content"]["application/json"];
86
90
  /** The success response body of `GET /api/v1/floating-ips`. */
87
91
  export type ListFloatingIpsResult = operations["list-floating-ips"]["responses"][200]["content"]["application/json"];
92
+ /** The query parameters of `GET /api/v1/floating-ips`. */
93
+ export type ListFloatingIpsQuery = operations["list-floating-ips"]["parameters"]["query"];
88
94
  /** The success response body of `POST /api/v1/floating-ips`. */
89
95
  export type AllocateFloatingIpResult = operations["allocate-floating-ip"]["responses"][201]["content"]["application/json"];
90
96
  /** The request body of `POST /api/v1/floating-ips`. */
@@ -193,6 +199,8 @@ export type ListOperationLogsResult = operations["list-operation-logs"]["respons
193
199
  export type ListOperationLogsQuery = operations["list-operation-logs"]["parameters"]["query"];
194
200
  /** The success response body of `GET /api/v1/ports`. */
195
201
  export type ListPortsResult = operations["list-ports"]["responses"][200]["content"]["application/json"];
202
+ /** The query parameters of `GET /api/v1/ports`. */
203
+ export type ListPortsQuery = operations["list-ports"]["parameters"]["query"];
196
204
  /** The success response body of `POST /api/v1/ports`. */
197
205
  export type CreatePortResult = operations["create-port"]["responses"][201]["content"]["application/json"];
198
206
  /** The request body of `POST /api/v1/ports`. */
@@ -217,12 +225,16 @@ export type GetPrivateNetworkIpv6Result = operations["get-private-network-ipv6"]
217
225
  export type EnablePrivateNetworkIpv6Result = operations["enable-private-network-ipv6"]["responses"][200]["content"]["application/json"];
218
226
  /** The success response body of `GET /api/v1/private-networks/{privateNetworkId}/routes`. */
219
227
  export type ListRoutesResult = operations["list-routes"]["responses"][200]["content"]["application/json"];
228
+ /** The query parameters of `GET /api/v1/private-networks/{privateNetworkId}/routes`. */
229
+ export type ListRoutesQuery = operations["list-routes"]["parameters"]["query"];
220
230
  /** The success response body of `POST /api/v1/private-networks/{privateNetworkId}/routes`. */
221
231
  export type CreateRouteResult = operations["create-route"]["responses"][201]["content"]["application/json"];
222
232
  /** The request body of `POST /api/v1/private-networks/{privateNetworkId}/routes`. */
223
233
  export type CreateRouteBody = NonNullable<operations["create-route"]["requestBody"]>["content"]["application/json"];
224
234
  /** The success response body of `GET /api/v1/private-networks/{privateNetworkId}/subnets`. */
225
235
  export type ListSubnetsResult = operations["list-subnets"]["responses"][200]["content"]["application/json"];
236
+ /** The query parameters of `GET /api/v1/private-networks/{privateNetworkId}/subnets`. */
237
+ export type ListSubnetsQuery = operations["list-subnets"]["parameters"]["query"];
226
238
  /** The success response body of `POST /api/v1/private-networks/{privateNetworkId}/subnets`. */
227
239
  export type CreateSubnetResult = operations["create-subnet"]["responses"][201]["content"]["application/json"];
228
240
  /** The request body of `POST /api/v1/private-networks/{privateNetworkId}/subnets`. */
@@ -247,6 +259,8 @@ export type RenameSecurityGroupResult = operations["rename-security-group"]["res
247
259
  export type RenameSecurityGroupBody = NonNullable<operations["rename-security-group"]["requestBody"]>["content"]["application/json"];
248
260
  /** The success response body of `GET /api/v1/security-groups/{securityGroupId}/rules`. */
249
261
  export type ListSecurityGroupRulesResult = operations["list-security-group-rules"]["responses"][200]["content"]["application/json"];
262
+ /** The query parameters of `GET /api/v1/security-groups/{securityGroupId}/rules`. */
263
+ export type ListSecurityGroupRulesQuery = operations["list-security-group-rules"]["parameters"]["query"];
250
264
  /** The success response body of `POST /api/v1/security-groups/{securityGroupId}/rules`. */
251
265
  export type CreateSecurityGroupRuleResult = operations["create-security-group-rule"]["responses"][201]["content"]["application/json"];
252
266
  /** The request body of `POST /api/v1/security-groups/{securityGroupId}/rules`. */