@leaflow/sdk 0.99.0 → 0.100.1

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`. */
@@ -1447,7 +1447,7 @@ export interface components {
1447
1447
  };
1448
1448
  PeeringListResponseBody: {
1449
1449
  items: components["schemas"]["PeeringResource"][];
1450
- total: number;
1450
+ pagination: components["schemas"]["OffsetPagination"];
1451
1451
  };
1452
1452
  CreatePeeringRequestBody: {
1453
1453
  name: string;
@@ -1516,6 +1516,7 @@ export interface components {
1516
1516
  };
1517
1517
  BackupListResponseBody: {
1518
1518
  items: components["schemas"]["BackupResource"][] | null;
1519
+ pagination: components["schemas"]["OffsetPagination"];
1519
1520
  };
1520
1521
  CreateBackupRequestBody: {
1521
1522
  /** Format: uuid */
@@ -1664,6 +1665,7 @@ export interface components {
1664
1665
  };
1665
1666
  DiskTypeListResponseBody: {
1666
1667
  items: components["schemas"]["DiskTypeResource"][] | null;
1668
+ pagination: components["schemas"]["OffsetPagination"];
1667
1669
  };
1668
1670
  /**
1669
1671
  * @description Who can see and use an image. `public` — offered to every project by the platform. `private` — usable only by the project that owns it.
@@ -1734,12 +1736,7 @@ export interface components {
1734
1736
  };
1735
1737
  ImageListResponseBody: {
1736
1738
  items: components["schemas"]["ImageResource"][];
1737
- /** Format: int64 */
1738
- page: number;
1739
- /** Format: int64 */
1740
- page_size: number;
1741
- /** Format: int64 */
1742
- total_count?: number;
1739
+ pagination: components["schemas"]["OffsetPagination"];
1743
1740
  };
1744
1741
  InstanceTypeResource: {
1745
1742
  /** Format: uuid */
@@ -1787,12 +1784,7 @@ export interface components {
1787
1784
  };
1788
1785
  InstanceTypeListResponseBody: {
1789
1786
  items: components["schemas"]["InstanceTypeResource"][];
1790
- /** Format: int64 */
1791
- page: number;
1792
- /** Format: int64 */
1793
- page_size: number;
1794
- /** Format: int64 */
1795
- total_count?: number;
1787
+ pagination: components["schemas"]["OffsetPagination"];
1796
1788
  };
1797
1789
  RegionResource: {
1798
1790
  /** @description ISO 3166-1 alpha-2 country this region sits in. Two letters, uppercase. */
@@ -1806,6 +1798,7 @@ export interface components {
1806
1798
  };
1807
1799
  RegionListResponseBody: {
1808
1800
  items: components["schemas"]["RegionResource"][] | null;
1801
+ pagination: components["schemas"]["OffsetPagination"];
1809
1802
  };
1810
1803
  ZoneResource: {
1811
1804
  /** @description Display name for this zone, shown to tenants (Hong Kong A). The stable handle is code. */
@@ -1817,9 +1810,11 @@ export interface components {
1817
1810
  };
1818
1811
  ZoneListResponseBody: {
1819
1812
  items: components["schemas"]["ZoneResource"][] | null;
1813
+ pagination: components["schemas"]["OffsetPagination"];
1820
1814
  };
1821
1815
  DiskListResponseBody: {
1822
1816
  items: components["schemas"]["DiskResource"][] | null;
1817
+ pagination: components["schemas"]["OffsetPagination"];
1823
1818
  };
1824
1819
  CreateDiskRequestBody: {
1825
1820
  /**
@@ -1900,6 +1895,7 @@ export interface components {
1900
1895
  };
1901
1896
  FloatingIPListResponseBody: {
1902
1897
  items: components["schemas"]["FloatingIPResource"][] | null;
1898
+ pagination: components["schemas"]["OffsetPagination"];
1903
1899
  };
1904
1900
  AllocateFloatingIPRequestBody: {
1905
1901
  /** @description The address to allocate. Allocated by the platform when omitted */
@@ -2016,12 +2012,7 @@ export interface components {
2016
2012
  };
2017
2013
  InstanceListResponseBody: {
2018
2014
  items: components["schemas"]["InstanceResource"][];
2019
- /** Format: int64 */
2020
- page: number;
2021
- /** Format: int64 */
2022
- page_size: number;
2023
- /** Format: int64 */
2024
- total_count?: number;
2015
+ pagination: components["schemas"]["OffsetPagination"];
2025
2016
  };
2026
2017
  LaunchInstanceRequestBody: {
2027
2018
  /**
@@ -2194,6 +2185,7 @@ export interface components {
2194
2185
  };
2195
2186
  PortListResponseBody: {
2196
2187
  items: components["schemas"]["PortResource"][] | null;
2188
+ pagination: components["schemas"]["OffsetPagination"];
2197
2189
  };
2198
2190
  AttachPortRequestBody: {
2199
2191
  /** Format: uuid */
@@ -2231,12 +2223,7 @@ export interface components {
2231
2223
  };
2232
2224
  OperationLogListResponseBody: {
2233
2225
  items: components["schemas"]["OperationLogResource"][];
2234
- /** Format: int64 */
2235
- page: number;
2236
- /** Format: int64 */
2237
- page_size: number;
2238
- /** Format: int64 */
2239
- total_count?: number;
2226
+ pagination: components["schemas"]["OffsetPagination"];
2240
2227
  };
2241
2228
  CreatePortRequestBody: {
2242
2229
  name?: string;
@@ -2294,6 +2281,7 @@ export interface components {
2294
2281
  };
2295
2282
  PrivateNetworkListResponseBody: {
2296
2283
  items: components["schemas"]["PrivateNetworkResource"][] | null;
2284
+ pagination: components["schemas"]["OffsetPagination"];
2297
2285
  };
2298
2286
  CreatePrivateNetworkRequestBody: {
2299
2287
  /** @description Must be an RFC 1918 private CIDR with a prefix length between /8 and /24, for example `10.0.0.0/16` */
@@ -2332,6 +2320,7 @@ export interface components {
2332
2320
  };
2333
2321
  RouteListResponseBody: {
2334
2322
  items: components["schemas"]["RouteResource"][] | null;
2323
+ pagination: components["schemas"]["OffsetPagination"];
2335
2324
  };
2336
2325
  CreateRouteRequestBody: {
2337
2326
  description?: string;
@@ -2356,6 +2345,7 @@ export interface components {
2356
2345
  };
2357
2346
  SubnetListResponseBody: {
2358
2347
  items: components["schemas"]["SubnetResource"][] | null;
2348
+ pagination: components["schemas"]["OffsetPagination"];
2359
2349
  };
2360
2350
  CreateSubnetRequestBody: {
2361
2351
  /** @description Must fall inside the CIDR of the private network and must not overlap an existing subnet */
@@ -2380,6 +2370,7 @@ export interface components {
2380
2370
  };
2381
2371
  SecurityGroupListResponseBody: {
2382
2372
  items: components["schemas"]["SecurityGroupResource"][] | null;
2373
+ pagination: components["schemas"]["OffsetPagination"];
2383
2374
  };
2384
2375
  CreateSecurityGroupRequestBody: {
2385
2376
  description?: string;
@@ -2412,6 +2403,7 @@ export interface components {
2412
2403
  };
2413
2404
  SecurityRuleListResponseBody: {
2414
2405
  items: components["schemas"]["SecurityRuleResource"][] | null;
2406
+ pagination: components["schemas"]["OffsetPagination"];
2415
2407
  };
2416
2408
  CreateSecurityRuleRequestBody: {
2417
2409
  description?: string;
@@ -2476,6 +2468,7 @@ export interface components {
2476
2468
  };
2477
2469
  SnapshotListResponseBody: {
2478
2470
  items: components["schemas"]["SnapshotResource"][] | null;
2471
+ pagination: components["schemas"]["OffsetPagination"];
2479
2472
  };
2480
2473
  CreateSnapshotRequestBody: {
2481
2474
  /** Format: uuid */
@@ -2624,12 +2617,7 @@ export interface components {
2624
2617
  };
2625
2618
  DiskAttachmentList: {
2626
2619
  items: components["schemas"]["DiskAttachment"][];
2627
- /** Format: int64 */
2628
- page: number;
2629
- /** Format: int64 */
2630
- page_size: number;
2631
- /** Format: int64 */
2632
- total_count: number;
2620
+ pagination: components["schemas"]["OffsetPagination"];
2633
2621
  };
2634
2622
  PortAttachment: {
2635
2623
  /** Format: uuid */
@@ -2652,12 +2640,7 @@ export interface components {
2652
2640
  };
2653
2641
  PortAttachmentList: {
2654
2642
  items: components["schemas"]["PortAttachment"][];
2655
- /** Format: int64 */
2656
- page: number;
2657
- /** Format: int64 */
2658
- page_size: number;
2659
- /** Format: int64 */
2660
- total_count: number;
2643
+ pagination: components["schemas"]["OffsetPagination"];
2661
2644
  };
2662
2645
  LaunchInstanceResponseBody: {
2663
2646
  /** @description Instances created by this operation. Empty before resource creation starts. */
@@ -2684,12 +2667,7 @@ export interface components {
2684
2667
  };
2685
2668
  IPv4PoolListResponseBody: {
2686
2669
  items: components["schemas"]["IPv4PoolResource"][];
2687
- /** Format: int64 */
2688
- page: number;
2689
- /** Format: int64 */
2690
- page_size: number;
2691
- /** Format: int64 */
2692
- total_count?: number;
2670
+ pagination: components["schemas"]["OffsetPagination"];
2693
2671
  };
2694
2672
  IPv4Binding: {
2695
2673
  /** Format: uuid */
@@ -2724,6 +2702,15 @@ export interface components {
2724
2702
  /** @description The resource's name. A floating IP is named by its address. */
2725
2703
  name: string;
2726
2704
  };
2705
+ /** @description Pagination metadata for stable numbered pages. total_count is returned only when the operation can determine it without an unbounded scan. */
2706
+ OffsetPagination: {
2707
+ /** Format: int64 */
2708
+ page: number;
2709
+ /** Format: int64 */
2710
+ page_size: number;
2711
+ /** Format: int64 */
2712
+ total_count?: number;
2713
+ };
2727
2714
  /**
2728
2715
  * @description A decimal string, in the currency stated alongside it.
2729
2716
  *
@@ -2761,7 +2748,10 @@ export interface components {
2761
2748
  };
2762
2749
  };
2763
2750
  responses: never;
2764
- parameters: never;
2751
+ parameters: {
2752
+ Page: number;
2753
+ PageSize: number;
2754
+ };
2765
2755
  requestBodies: never;
2766
2756
  headers: never;
2767
2757
  pathItems: never;
@@ -2773,6 +2763,8 @@ export interface operations {
2773
2763
  query?: {
2774
2764
  /** @description Return only the backups of this disk */
2775
2765
  disk_id?: string;
2766
+ page?: components["parameters"]["Page"];
2767
+ page_size?: components["parameters"]["PageSize"];
2776
2768
  };
2777
2769
  header?: never;
2778
2770
  path?: never;
@@ -3009,10 +3001,12 @@ export interface operations {
3009
3001
  };
3010
3002
  "list-disk-types": {
3011
3003
  parameters: {
3012
- query: {
3013
- region_id: string;
3004
+ query?: {
3005
+ region_id?: string;
3014
3006
  /** @description `true` lists only system disk types and `false` only data disk types. Both are listed when omitted. */
3015
3007
  for_system?: boolean;
3008
+ page?: components["parameters"]["Page"];
3009
+ page_size?: components["parameters"]["PageSize"];
3016
3010
  };
3017
3011
  header?: never;
3018
3012
  path?: never;
@@ -3078,8 +3072,8 @@ export interface operations {
3078
3072
  region_id?: string;
3079
3073
  /** @description Return only public or only private images. Both are returned when omitted */
3080
3074
  visibility?: components["schemas"]["ImageVisibility"];
3081
- page?: number;
3082
- page_size?: number;
3075
+ page?: components["parameters"]["Page"];
3076
+ page_size?: components["parameters"]["PageSize"];
3083
3077
  };
3084
3078
  header?: never;
3085
3079
  path?: never;
@@ -3281,10 +3275,10 @@ export interface operations {
3281
3275
  };
3282
3276
  "list-instance-types": {
3283
3277
  parameters: {
3284
- query: {
3285
- region_id: string;
3286
- page?: number;
3287
- page_size?: number;
3278
+ query?: {
3279
+ region_id?: string;
3280
+ page?: components["parameters"]["Page"];
3281
+ page_size?: components["parameters"]["PageSize"];
3288
3282
  };
3289
3283
  header?: never;
3290
3284
  path?: never;
@@ -3314,7 +3308,10 @@ export interface operations {
3314
3308
  };
3315
3309
  "list-regions": {
3316
3310
  parameters: {
3317
- query?: never;
3311
+ query?: {
3312
+ page?: components["parameters"]["Page"];
3313
+ page_size?: components["parameters"]["PageSize"];
3314
+ };
3318
3315
  header?: never;
3319
3316
  path?: never;
3320
3317
  cookie?: never;
@@ -3343,7 +3340,10 @@ export interface operations {
3343
3340
  };
3344
3341
  "list-availability-zones": {
3345
3342
  parameters: {
3346
- query?: never;
3343
+ query?: {
3344
+ page?: components["parameters"]["Page"];
3345
+ page_size?: components["parameters"]["PageSize"];
3346
+ };
3347
3347
  header?: never;
3348
3348
  path: {
3349
3349
  regionId: string;
@@ -3378,6 +3378,8 @@ export interface operations {
3378
3378
  region_id?: string;
3379
3379
  /** @description Supplied together with `region_code` to filter attachable disks */
3380
3380
  availability_zone_id?: string;
3381
+ page?: components["parameters"]["Page"];
3382
+ page_size?: components["parameters"]["PageSize"];
3381
3383
  };
3382
3384
  header?: never;
3383
3385
  path?: never;
@@ -3616,7 +3618,10 @@ export interface operations {
3616
3618
  };
3617
3619
  "list-floating-ips": {
3618
3620
  parameters: {
3619
- query?: never;
3621
+ query?: {
3622
+ page?: components["parameters"]["Page"];
3623
+ page_size?: components["parameters"]["PageSize"];
3624
+ };
3620
3625
  header?: never;
3621
3626
  path?: never;
3622
3627
  cookie?: never;
@@ -3853,8 +3858,8 @@ export interface operations {
3853
3858
  query?: {
3854
3859
  /** @description Only instances carrying this label, written as `key:value` — for example `env:prod`. Both halves are matched exactly */
3855
3860
  label?: string;
3856
- page?: number;
3857
- page_size?: number;
3861
+ page?: components["parameters"]["Page"];
3862
+ page_size?: components["parameters"]["PageSize"];
3858
3863
  };
3859
3864
  header?: never;
3860
3865
  path?: never;
@@ -4404,8 +4409,8 @@ export interface operations {
4404
4409
  "list-instance-disks": {
4405
4410
  parameters: {
4406
4411
  query?: {
4407
- page?: number;
4408
- page_size?: number;
4412
+ page?: components["parameters"]["Page"];
4413
+ page_size?: components["parameters"]["PageSize"];
4409
4414
  };
4410
4415
  header?: never;
4411
4416
  path: {
@@ -4572,8 +4577,8 @@ export interface operations {
4572
4577
  "list-instance-ports": {
4573
4578
  parameters: {
4574
4579
  query?: {
4575
- page?: number;
4576
- page_size?: number;
4580
+ page?: components["parameters"]["Page"];
4581
+ page_size?: components["parameters"]["PageSize"];
4577
4582
  };
4578
4583
  header?: never;
4579
4584
  path: {
@@ -4675,8 +4680,8 @@ export interface operations {
4675
4680
  query?: {
4676
4681
  /** @description Return a single kind of operation; the value matches the operation id of the endpoint */
4677
4682
  action?: string;
4678
- page?: number;
4679
- page_size?: number;
4683
+ page?: components["parameters"]["Page"];
4684
+ page_size?: components["parameters"]["PageSize"];
4680
4685
  };
4681
4686
  header?: never;
4682
4687
  path?: never;
@@ -4706,7 +4711,10 @@ export interface operations {
4706
4711
  };
4707
4712
  "list-ports": {
4708
4713
  parameters: {
4709
- query?: never;
4714
+ query?: {
4715
+ page?: components["parameters"]["Page"];
4716
+ page_size?: components["parameters"]["PageSize"];
4717
+ };
4710
4718
  header?: never;
4711
4719
  path?: never;
4712
4720
  cookie?: never;
@@ -4800,6 +4808,8 @@ export interface operations {
4800
4808
  query?: {
4801
4809
  /** @description Returns every region when omitted */
4802
4810
  region_id?: string;
4811
+ page?: components["parameters"]["Page"];
4812
+ page_size?: components["parameters"]["PageSize"];
4803
4813
  };
4804
4814
  header?: never;
4805
4815
  path?: never;
@@ -5048,7 +5058,10 @@ export interface operations {
5048
5058
  };
5049
5059
  "list-routes": {
5050
5060
  parameters: {
5051
- query?: never;
5061
+ query?: {
5062
+ page?: components["parameters"]["Page"];
5063
+ page_size?: components["parameters"]["PageSize"];
5064
+ };
5052
5065
  header?: never;
5053
5066
  path: {
5054
5067
  privateNetworkId: string;
@@ -5144,7 +5157,10 @@ export interface operations {
5144
5157
  };
5145
5158
  "list-subnets": {
5146
5159
  parameters: {
5147
- query?: never;
5160
+ query?: {
5161
+ page?: components["parameters"]["Page"];
5162
+ page_size?: components["parameters"]["PageSize"];
5163
+ };
5148
5164
  header?: never;
5149
5165
  path: {
5150
5166
  privateNetworkId: string;
@@ -5277,6 +5293,8 @@ export interface operations {
5277
5293
  region_id?: string;
5278
5294
  /** @description Return only the security groups of this private network */
5279
5295
  private_network_id?: string;
5296
+ page?: components["parameters"]["Page"];
5297
+ page_size?: components["parameters"]["PageSize"];
5280
5298
  };
5281
5299
  header?: never;
5282
5300
  path?: never;
@@ -5434,7 +5452,10 @@ export interface operations {
5434
5452
  };
5435
5453
  "list-security-group-rules": {
5436
5454
  parameters: {
5437
- query?: never;
5455
+ query?: {
5456
+ page?: components["parameters"]["Page"];
5457
+ page_size?: components["parameters"]["PageSize"];
5458
+ };
5438
5459
  header?: never;
5439
5460
  path: {
5440
5461
  securityGroupId: string;
@@ -5533,6 +5554,8 @@ export interface operations {
5533
5554
  query?: {
5534
5555
  /** @description Return only the snapshots of this disk */
5535
5556
  disk_id?: string;
5557
+ page?: components["parameters"]["Page"];
5558
+ page_size?: components["parameters"]["PageSize"];
5536
5559
  };
5537
5560
  header?: never;
5538
5561
  path?: never;
@@ -5732,10 +5755,10 @@ export interface operations {
5732
5755
  };
5733
5756
  "list-ipv4-pools": {
5734
5757
  parameters: {
5735
- query: {
5736
- region_id: string;
5737
- page?: number;
5738
- page_size?: number;
5758
+ query?: {
5759
+ region_id?: string;
5760
+ page?: components["parameters"]["Page"];
5761
+ page_size?: components["parameters"]["PageSize"];
5739
5762
  };
5740
5763
  header?: never;
5741
5764
  path?: never;
@@ -5766,8 +5789,8 @@ export interface operations {
5766
5789
  "list-peerings": {
5767
5790
  parameters: {
5768
5791
  query?: {
5769
- limit?: number;
5770
- offset?: number;
5792
+ page?: components["parameters"]["Page"];
5793
+ page_size?: components["parameters"]["PageSize"];
5771
5794
  };
5772
5795
  header?: never;
5773
5796
  path?: never;
@@ -49,8 +49,12 @@ export type ListTypePreferencesResult = operations["list-type-preferences"]["res
49
49
  export type ListTypePreferencesQuery = operations["list-type-preferences"]["parameters"]["query"];
50
50
  /** The success response body of `PUT /api/v1/preferences/types/{type}`. */
51
51
  export type UpdateTypePreferenceResult = operations["update-type-preference"]["responses"][200]["content"]["application/json"];
52
+ /** The query parameters of `PUT /api/v1/preferences/types/{type}`. */
53
+ export type UpdateTypePreferenceQuery = operations["update-type-preference"]["parameters"]["query"];
52
54
  /** The request body of `PUT /api/v1/preferences/types/{type}`. */
53
55
  export type UpdateTypePreferenceBody = NonNullable<operations["update-type-preference"]["requestBody"]>["content"]["application/json"];
56
+ /** The query parameters of `DELETE /api/v1/preferences/types/{type}`. */
57
+ export type DeleteTypePreferenceQuery = operations["delete-type-preference"]["parameters"]["query"];
54
58
  /** The success response body of `GET /api/v1/channels`. */
55
59
  export type ListUserChannelsResult = operations["list-user-channels"]["responses"][200]["content"]["application/json"];
56
60
  /** The query parameters of `GET /api/v1/channels`. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leaflow/sdk",
3
- "version": "0.99.0",
3
+ "version": "0.100.1",
4
4
  "description": "Leaflow 平台 API 的 TypeScript SDK",
5
5
  "license": "MIT",
6
6
  "repository": {