@leaflow/sdk 0.54.0 → 0.54.2
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.
- package/dist/billing/v1/index.d.ts +169 -75
- package/dist/billing/v1/schema.d.ts +2845 -2279
- package/dist/compute/v1/schema.d.ts +72 -3
- package/package.json +1 -1
|
@@ -1,88 +1,182 @@
|
|
|
1
1
|
export type { paths, components, operations, webhooks } from "./schema.js";
|
|
2
2
|
import type { operations } from "./schema.js";
|
|
3
|
+
/** `GET /catalog/v1/products` 成功时的响应体。 */
|
|
4
|
+
export type ListCatalogProductsResult = operations["list-catalog-products"]["responses"][200]["content"]["application/json"];
|
|
5
|
+
/** `GET /catalog/v1/products/{productId}/plans` 成功时的响应体。 */
|
|
6
|
+
export type ListCatalogPlansResult = operations["list-catalog-plans"]["responses"][200]["content"]["application/json"];
|
|
7
|
+
/** `GET /catalog/v1/plans/{planId}/prices` 成功时的响应体。 */
|
|
8
|
+
export type ListCatalogPricesResult = operations["list-catalog-prices"]["responses"][200]["content"]["application/json"];
|
|
9
|
+
/** `GET /catalog/v1/plans/{planId}/prices` 的查询参数。 */
|
|
10
|
+
export type ListCatalogPricesQuery = operations["list-catalog-prices"]["parameters"]["query"];
|
|
11
|
+
/** `GET /catalog/v1/rate-cards/{rateCardId}/rules` 成功时的响应体。 */
|
|
12
|
+
export type ListCatalogRatesResult = operations["list-catalog-rates"]["responses"][200]["content"]["application/json"];
|
|
13
|
+
/** `GET /catalog/v1/rate-cards/{rateCardId}/rules` 的查询参数。 */
|
|
14
|
+
export type ListCatalogRatesQuery = operations["list-catalog-rates"]["parameters"]["query"];
|
|
15
|
+
/** `POST /catalog/v1/estimates` 成功时的响应体。 */
|
|
16
|
+
export type CreateEstimateResult = operations["create-estimate"]["responses"][200]["content"]["application/json"];
|
|
17
|
+
/** `POST /catalog/v1/estimates` 的请求体。 */
|
|
18
|
+
export type CreateEstimateBody = NonNullable<operations["create-estimate"]["requestBody"]>["content"]["application/json"];
|
|
3
19
|
/** `GET /account/v1/billing-accounts` 成功时的响应体。 */
|
|
4
20
|
export type ListBillingAccountsResult = operations["list-billing-accounts"]["responses"][200]["content"]["application/json"];
|
|
5
21
|
/** `POST /account/v1/billing-accounts` 成功时的响应体。 */
|
|
6
|
-
export type CreateBillingAccountResult = operations["create-billing-account"]["responses"][
|
|
22
|
+
export type CreateBillingAccountResult = operations["create-billing-account"]["responses"][201]["content"]["application/json"];
|
|
7
23
|
/** `POST /account/v1/billing-accounts` 的请求体。 */
|
|
8
24
|
export type CreateBillingAccountBody = NonNullable<operations["create-billing-account"]["requestBody"]>["content"]["application/json"];
|
|
9
|
-
/** `GET /account/v1/billing-accounts/{
|
|
25
|
+
/** `GET /account/v1/billing-accounts/{accountId}` 成功时的响应体。 */
|
|
10
26
|
export type GetBillingAccountResult = operations["get-billing-account"]["responses"][200]["content"]["application/json"];
|
|
11
|
-
/** `
|
|
27
|
+
/** `PATCH /account/v1/billing-accounts/{accountId}` 成功时的响应体。 */
|
|
12
28
|
export type UpdateBillingAccountResult = operations["update-billing-account"]["responses"][200]["content"]["application/json"];
|
|
13
|
-
/** `
|
|
29
|
+
/** `PATCH /account/v1/billing-accounts/{accountId}` 的请求体。 */
|
|
14
30
|
export type UpdateBillingAccountBody = NonNullable<operations["update-billing-account"]["requestBody"]>["content"]["application/json"];
|
|
15
|
-
/** `GET /account/v1/billing-accounts/{
|
|
16
|
-
export type
|
|
17
|
-
/** `GET /account/v1/
|
|
18
|
-
export type
|
|
19
|
-
/** `GET /account/v1/
|
|
20
|
-
export type
|
|
21
|
-
/** `
|
|
22
|
-
export type
|
|
23
|
-
/** `
|
|
24
|
-
export type
|
|
25
|
-
/** `
|
|
26
|
-
export type
|
|
27
|
-
/** `
|
|
31
|
+
/** `GET /account/v1/billing-accounts/{accountId}/balance` 成功时的响应体。 */
|
|
32
|
+
export type GetAccountBalanceResult = operations["get-account-balance"]["responses"][200]["content"]["application/json"];
|
|
33
|
+
/** `GET /account/v1/projects` 成功时的响应体。 */
|
|
34
|
+
export type ListPaidProjectsResult = operations["list-paid-projects"]["responses"][200]["content"]["application/json"];
|
|
35
|
+
/** `GET /account/v1/projects` 的查询参数。 */
|
|
36
|
+
export type ListPaidProjectsQuery = operations["list-paid-projects"]["parameters"]["query"];
|
|
37
|
+
/** `GET /account/v1/projects/{projectId}/billing-account` 成功时的响应体。 */
|
|
38
|
+
export type FindProjectPayerResult = operations["find-project-payer"]["responses"][200]["content"]["application/json"];
|
|
39
|
+
/** `PUT /account/v1/projects/{projectId}/billing-account` 成功时的响应体。 */
|
|
40
|
+
export type SetProjectPayerResult = operations["set-project-payer"]["responses"][200]["content"]["application/json"];
|
|
41
|
+
/** `PUT /account/v1/projects/{projectId}/billing-account` 的请求体。 */
|
|
42
|
+
export type SetProjectPayerBody = NonNullable<operations["set-project-payer"]["requestBody"]>["content"]["application/json"];
|
|
43
|
+
/** `POST /account/v1/projects/{projectId}/billing-account/settle` 成功时的响应体。 */
|
|
44
|
+
export type SettleProjectUsageResult = operations["settle-project-usage"]["responses"][200]["content"]["application/json"];
|
|
45
|
+
/** `GET /account/v1/top-ups` 成功时的响应体。 */
|
|
28
46
|
export type ListTopUpsResult = operations["list-top-ups"]["responses"][200]["content"]["application/json"];
|
|
29
|
-
/** `POST /account/v1/
|
|
30
|
-
export type
|
|
31
|
-
/** `POST /account/v1/
|
|
32
|
-
export type
|
|
33
|
-
/** `GET /account/v1/
|
|
34
|
-
export type
|
|
35
|
-
/** `GET /account/v1/
|
|
36
|
-
export type
|
|
37
|
-
/** `
|
|
47
|
+
/** `POST /account/v1/top-ups` 成功时的响应体。 */
|
|
48
|
+
export type CreateTopUpResult = operations["create-top-up"]["responses"][201]["content"]["application/json"];
|
|
49
|
+
/** `POST /account/v1/top-ups` 的请求体。 */
|
|
50
|
+
export type CreateTopUpBody = NonNullable<operations["create-top-up"]["requestBody"]>["content"]["application/json"];
|
|
51
|
+
/** `GET /account/v1/top-ups/{topUpId}` 成功时的响应体。 */
|
|
52
|
+
export type GetTopUpResult = operations["get-top-up"]["responses"][200]["content"]["application/json"];
|
|
53
|
+
/** `GET /account/v1/payment-methods` 成功时的响应体。 */
|
|
54
|
+
export type ListPaymentMethodsResult = operations["list-payment-methods"]["responses"][200]["content"]["application/json"];
|
|
55
|
+
/** `POST /account/v1/payment-methods/setup` 成功时的响应体。 */
|
|
56
|
+
export type CreatePaymentMethodSetupResult = operations["create-payment-method-setup"]["responses"][201]["content"]["application/json"];
|
|
57
|
+
/** `POST /account/v1/payment-methods/setup` 的请求体。 */
|
|
58
|
+
export type CreatePaymentMethodSetupBody = NonNullable<operations["create-payment-method-setup"]["requestBody"]>["content"]["application/json"];
|
|
59
|
+
/** `PUT /account/v1/payment-methods/{paymentMethodId}/default` 成功时的响应体。 */
|
|
60
|
+
export type SetDefaultPaymentMethodResult = operations["set-default-payment-method"]["responses"][200]["content"]["application/json"];
|
|
61
|
+
/** `POST /account/v1/invoices/{invoiceId}/pay` 成功时的响应体。 */
|
|
62
|
+
export type PayInvoiceResult = operations["pay-invoice"]["responses"][200]["content"]["application/json"];
|
|
63
|
+
/** `POST /account/v1/invoices/{invoiceId}/pay` 的请求体。 */
|
|
64
|
+
export type PayInvoiceBody = NonNullable<operations["pay-invoice"]["requestBody"]>["content"]["application/json"];
|
|
65
|
+
/** `POST /account/v1/orders/{orderId}/pay` 成功时的响应体。 */
|
|
66
|
+
export type PayOrderResult = operations["pay-order"]["responses"][200]["content"]["application/json"];
|
|
67
|
+
/** `POST /account/v1/orders/{orderId}/pay` 的请求体。 */
|
|
68
|
+
export type PayOrderBody = NonNullable<operations["pay-order"]["requestBody"]>["content"]["application/json"];
|
|
69
|
+
/** `GET /account/v1/invoices` 成功时的响应体。 */
|
|
38
70
|
export type ListInvoicesResult = operations["list-invoices"]["responses"][200]["content"]["application/json"];
|
|
39
|
-
/** `GET /account/v1/
|
|
71
|
+
/** `GET /account/v1/invoices` 的查询参数。 */
|
|
72
|
+
export type ListInvoicesQuery = operations["list-invoices"]["parameters"]["query"];
|
|
73
|
+
/** `GET /account/v1/invoices/{invoiceId}` 成功时的响应体。 */
|
|
40
74
|
export type GetInvoiceResult = operations["get-invoice"]["responses"][200]["content"]["application/json"];
|
|
41
|
-
/** `GET /account/v1/
|
|
42
|
-
export type
|
|
43
|
-
/** `
|
|
44
|
-
export type
|
|
45
|
-
/** `
|
|
46
|
-
export type
|
|
47
|
-
/** `
|
|
48
|
-
export type
|
|
49
|
-
/** `
|
|
50
|
-
export type
|
|
51
|
-
/** `GET /account/v1/
|
|
52
|
-
export type
|
|
53
|
-
/** `POST /account/v1/
|
|
54
|
-
export type
|
|
55
|
-
/** `POST /account/v1/
|
|
56
|
-
export type
|
|
57
|
-
/** `
|
|
58
|
-
export type
|
|
59
|
-
/** `GET /account/v1/
|
|
60
|
-
export type
|
|
61
|
-
/** `GET /account/v1/
|
|
62
|
-
export type
|
|
63
|
-
/** `
|
|
64
|
-
export type
|
|
65
|
-
/** `GET /account/v1/
|
|
66
|
-
export type
|
|
67
|
-
/** `
|
|
68
|
-
export type
|
|
69
|
-
/** `
|
|
70
|
-
export type
|
|
71
|
-
/** `
|
|
72
|
-
export type
|
|
73
|
-
/** `POST /account/v1/
|
|
74
|
-
export type
|
|
75
|
-
/** `
|
|
76
|
-
export type
|
|
77
|
-
/** `PUT /account/v1/
|
|
78
|
-
export type
|
|
79
|
-
/** `
|
|
80
|
-
export type
|
|
81
|
-
/** `POST /account/v1/
|
|
82
|
-
export type
|
|
83
|
-
/** `POST /account/v1/
|
|
84
|
-
export type
|
|
85
|
-
/** `
|
|
86
|
-
export type
|
|
87
|
-
/** `GET /
|
|
88
|
-
export type
|
|
75
|
+
/** `GET /account/v1/invoices/{invoiceId}/items` 成功时的响应体。 */
|
|
76
|
+
export type ListInvoiceItemsResult = operations["list-invoice-items"]["responses"][200]["content"]["application/json"];
|
|
77
|
+
/** `GET /account/v1/transactions` 成功时的响应体。 */
|
|
78
|
+
export type ListTransactionsResult = operations["list-transactions"]["responses"][200]["content"]["application/json"];
|
|
79
|
+
/** `GET /account/v1/credit-grants` 成功时的响应体。 */
|
|
80
|
+
export type ListCreditGrantsResult = operations["list-credit-grants"]["responses"][200]["content"]["application/json"];
|
|
81
|
+
/** `GET /account/v1/credit-grants` 的查询参数。 */
|
|
82
|
+
export type ListCreditGrantsQuery = operations["list-credit-grants"]["parameters"]["query"];
|
|
83
|
+
/** `GET /account/v1/allocations` 成功时的响应体。 */
|
|
84
|
+
export type ListAllocationsResult = operations["list-allocations"]["responses"][200]["content"]["application/json"];
|
|
85
|
+
/** `GET /account/v1/allocations` 的查询参数。 */
|
|
86
|
+
export type ListAllocationsQuery = operations["list-allocations"]["parameters"]["query"];
|
|
87
|
+
/** `POST /account/v1/refunds` 成功时的响应体。 */
|
|
88
|
+
export type RequestRefundResult = operations["request-refund"]["responses"][201]["content"]["application/json"];
|
|
89
|
+
/** `POST /account/v1/refunds` 的请求体。 */
|
|
90
|
+
export type RequestRefundBody = NonNullable<operations["request-refund"]["requestBody"]>["content"]["application/json"];
|
|
91
|
+
/** `GET /account/v1/refunds` 成功时的响应体。 */
|
|
92
|
+
export type ListRefundsResult = operations["list-refunds"]["responses"][200]["content"]["application/json"];
|
|
93
|
+
/** `GET /account/v1/usage-charges` 成功时的响应体。 */
|
|
94
|
+
export type ListUsageChargesResult = operations["list-usage-charges"]["responses"][200]["content"]["application/json"];
|
|
95
|
+
/** `GET /account/v1/usage-charges` 的查询参数。 */
|
|
96
|
+
export type ListUsageChargesQuery = operations["list-usage-charges"]["parameters"]["query"];
|
|
97
|
+
/** `GET /account/v1/subscriptions` 成功时的响应体。 */
|
|
98
|
+
export type ListSubscriptionsResult = operations["list-subscriptions"]["responses"][200]["content"]["application/json"];
|
|
99
|
+
/** `GET /account/v1/subscriptions` 的查询参数。 */
|
|
100
|
+
export type ListSubscriptionsQuery = operations["list-subscriptions"]["parameters"]["query"];
|
|
101
|
+
/** `GET /account/v1/subscription-items` 成功时的响应体。 */
|
|
102
|
+
export type ListSubscriptionItemsResult = operations["list-subscription-items"]["responses"][200]["content"]["application/json"];
|
|
103
|
+
/** `GET /account/v1/subscription-items` 的查询参数。 */
|
|
104
|
+
export type ListSubscriptionItemsQuery = operations["list-subscription-items"]["parameters"]["query"];
|
|
105
|
+
/** `POST /account/v1/subscription-items/{itemId}/renew` 成功时的响应体。 */
|
|
106
|
+
export type RenewSubscriptionItemResult = operations["renew-subscription-item"]["responses"][200]["content"]["application/json"];
|
|
107
|
+
/** `POST /account/v1/subscription-items/{itemId}/renew` 的请求体。 */
|
|
108
|
+
export type RenewSubscriptionItemBody = NonNullable<operations["renew-subscription-item"]["requestBody"]>["content"]["application/json"];
|
|
109
|
+
/** `PUT /account/v1/subscription-items/{itemId}/auto-renew` 成功时的响应体。 */
|
|
110
|
+
export type SetAutoRenewResult = operations["set-auto-renew"]["responses"][200]["content"]["application/json"];
|
|
111
|
+
/** `PUT /account/v1/subscription-items/{itemId}/auto-renew` 的请求体。 */
|
|
112
|
+
export type SetAutoRenewBody = NonNullable<operations["set-auto-renew"]["requestBody"]>["content"]["application/json"];
|
|
113
|
+
/** `POST /account/v1/codes/preview` 成功时的响应体。 */
|
|
114
|
+
export type PreviewCodeResult = operations["preview-code"]["responses"][200]["content"]["application/json"];
|
|
115
|
+
/** `POST /account/v1/codes/preview` 的请求体。 */
|
|
116
|
+
export type PreviewCodeBody = NonNullable<operations["preview-code"]["requestBody"]>["content"]["application/json"];
|
|
117
|
+
/** `POST /account/v1/codes/redeem` 成功时的响应体。 */
|
|
118
|
+
export type RedeemCodeResult = operations["redeem-code"]["responses"][200]["content"]["application/json"];
|
|
119
|
+
/** `POST /account/v1/codes/redeem` 的请求体。 */
|
|
120
|
+
export type RedeemCodeBody = NonNullable<operations["redeem-code"]["requestBody"]>["content"]["application/json"];
|
|
121
|
+
/** `GET /api/v1/projects/{projectId}/billing-account` 成功时的响应体。 */
|
|
122
|
+
export type GetProjectBillingAccountResult = operations["get-project-billing-account"]["responses"][200]["content"]["application/json"];
|
|
123
|
+
/** `GET /api/v1/projects/{projectId}/spend` 成功时的响应体。 */
|
|
124
|
+
export type ListProjectSpendResult = operations["list-project-spend"]["responses"][200]["content"]["application/json"];
|
|
125
|
+
/** `GET /api/v1/projects/{projectId}/spend` 的查询参数。 */
|
|
126
|
+
export type ListProjectSpendQuery = operations["list-project-spend"]["parameters"]["query"];
|
|
127
|
+
/** `GET /api/v1/projects/{projectId}/usage-charges` 成功时的响应体。 */
|
|
128
|
+
export type ListProjectUsageChargesResult = operations["list-project-usage-charges"]["responses"][200]["content"]["application/json"];
|
|
129
|
+
/** `GET /api/v1/projects/{projectId}/usage-charges` 的查询参数。 */
|
|
130
|
+
export type ListProjectUsageChargesQuery = operations["list-project-usage-charges"]["parameters"]["query"];
|
|
131
|
+
/** `GET /api/v1/projects/{projectId}/subscriptions` 成功时的响应体。 */
|
|
132
|
+
export type ListProjectSubscriptionsResult = operations["list-project-subscriptions"]["responses"][200]["content"]["application/json"];
|
|
133
|
+
/** `GET /api/v1/projects/{projectId}/subscription-items` 成功时的响应体。 */
|
|
134
|
+
export type ListProjectSubscriptionItemsResult = operations["list-project-subscription-items"]["responses"][200]["content"]["application/json"];
|
|
135
|
+
/** `GET /api/v1/projects/{projectId}/subscription-items` 的查询参数。 */
|
|
136
|
+
export type ListProjectSubscriptionItemsQuery = operations["list-project-subscription-items"]["parameters"]["query"];
|
|
137
|
+
/** `PUT /api/v1/projects/{projectId}/subscription-items/{itemId}/auto-renew` 成功时的响应体。 */
|
|
138
|
+
export type SetProjectAutoRenewResult = operations["set-project-auto-renew"]["responses"][200]["content"]["application/json"];
|
|
139
|
+
/** `PUT /api/v1/projects/{projectId}/subscription-items/{itemId}/auto-renew` 的请求体。 */
|
|
140
|
+
export type SetProjectAutoRenewBody = NonNullable<operations["set-project-auto-renew"]["requestBody"]>["content"]["application/json"];
|
|
141
|
+
/** `GET /api/v1/projects/{projectId}/orders` 成功时的响应体。 */
|
|
142
|
+
export type ListProjectOrdersResult = operations["list-project-orders"]["responses"][200]["content"]["application/json"];
|
|
143
|
+
/** `GET /api/v1/projects/{projectId}/orders` 的查询参数。 */
|
|
144
|
+
export type ListProjectOrdersQuery = operations["list-project-orders"]["parameters"]["query"];
|
|
145
|
+
/** `GET /api/v1/projects/{projectId}/orders/{orderId}` 成功时的响应体。 */
|
|
146
|
+
export type GetProjectOrderResult = operations["get-project-order"]["responses"][200]["content"]["application/json"];
|
|
147
|
+
/** `GET /api/v1/projects/{projectId}/active-resources` 成功时的响应体。 */
|
|
148
|
+
export type ListProjectActiveResourcesResult = operations["list-project-active-resources"]["responses"][200]["content"]["application/json"];
|
|
149
|
+
/** `GET /api/v1/projects/{projectId}/active-resources` 的查询参数。 */
|
|
150
|
+
export type ListProjectActiveResourcesQuery = operations["list-project-active-resources"]["parameters"]["query"];
|
|
151
|
+
/** `POST /api/v1/projects/{projectId}/quotes` 成功时的响应体。 */
|
|
152
|
+
export type CreateProjectQuoteResult = operations["create-project-quote"]["responses"][200]["content"]["application/json"];
|
|
153
|
+
/** `POST /api/v1/projects/{projectId}/quotes` 的请求体。 */
|
|
154
|
+
export type CreateProjectQuoteBody = NonNullable<operations["create-project-quote"]["requestBody"]>["content"]["application/json"];
|
|
155
|
+
/** `GET /account/v1/allowances` 成功时的响应体。 */
|
|
156
|
+
export type ListAllowancesResult = operations["list-allowances"]["responses"][200]["content"]["application/json"];
|
|
157
|
+
/** `GET /account/v1/allowances` 的查询参数。 */
|
|
158
|
+
export type ListAllowancesQuery = operations["list-allowances"]["parameters"]["query"];
|
|
159
|
+
/** `GET /account/v1/allowances/{allowanceId}/consumptions` 成功时的响应体。 */
|
|
160
|
+
export type ListAllowanceConsumptionsResult = operations["list-allowance-consumptions"]["responses"][200]["content"]["application/json"];
|
|
161
|
+
/** `GET /account/v1/orders` 成功时的响应体。 */
|
|
162
|
+
export type ListOrdersResult = operations["list-orders"]["responses"][200]["content"]["application/json"];
|
|
163
|
+
/** `GET /account/v1/orders` 的查询参数。 */
|
|
164
|
+
export type ListOrdersQuery = operations["list-orders"]["parameters"]["query"];
|
|
165
|
+
/** `GET /account/v1/orders/{orderId}` 成功时的响应体。 */
|
|
166
|
+
export type GetOrderResult = operations["get-order"]["responses"][200]["content"]["application/json"];
|
|
167
|
+
/** `GET /account/v1/orders/{orderId}/items` 成功时的响应体。 */
|
|
168
|
+
export type ListOrderItemsResult = operations["list-order-items"]["responses"][200]["content"]["application/json"];
|
|
169
|
+
/** `GET /api/v1/projects/{projectId}/orders/{orderId}/items` 成功时的响应体。 */
|
|
170
|
+
export type ListProjectOrderItemsResult = operations["list-project-order-items"]["responses"][200]["content"]["application/json"];
|
|
171
|
+
/** `GET /api/v1/projects/{projectId}/allowances` 成功时的响应体。 */
|
|
172
|
+
export type ListProjectAllowancesResult = operations["list-project-allowances"]["responses"][200]["content"]["application/json"];
|
|
173
|
+
/** `GET /api/v1/projects/{projectId}/allowances` 的查询参数。 */
|
|
174
|
+
export type ListProjectAllowancesQuery = operations["list-project-allowances"]["parameters"]["query"];
|
|
175
|
+
/** `GET /account/v1/entitlements` 成功时的响应体。 */
|
|
176
|
+
export type ListEntitlementsResult = operations["list-entitlements"]["responses"][200]["content"]["application/json"];
|
|
177
|
+
/** `GET /account/v1/entitlements` 的查询参数。 */
|
|
178
|
+
export type ListEntitlementsQuery = operations["list-entitlements"]["parameters"]["query"];
|
|
179
|
+
/** `GET /api/v1/projects/{projectId}/entitlements` 成功时的响应体。 */
|
|
180
|
+
export type ListProjectEntitlementsResult = operations["list-project-entitlements"]["responses"][200]["content"]["application/json"];
|
|
181
|
+
/** `GET /api/v1/projects/{projectId}/entitlements` 的查询参数。 */
|
|
182
|
+
export type ListProjectEntitlementsQuery = operations["list-project-entitlements"]["parameters"]["query"];
|