@leaflow/sdk 0.0.0-dev.25.g6c5751f → 0.0.0-dev.250.g6df166c
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/README.md +22 -1
- package/dist/account/v1/client.d.ts +4 -0
- package/dist/account/v1/client.js +7 -0
- package/dist/account/v1/index.d.ts +33 -22
- package/dist/account/v1/index.js +4 -4
- package/dist/account/v1/schema.d.ts +307 -89
- package/dist/assistant/v1/client.d.ts +4 -0
- package/dist/assistant/v1/client.js +7 -0
- package/dist/assistant/v1/index.d.ts +71 -40
- package/dist/assistant/v1/index.js +4 -4
- package/dist/assistant/v1/schema.d.ts +1204 -139
- package/dist/billing/account/v1/client.d.ts +4 -0
- package/dist/billing/account/v1/client.js +7 -0
- package/dist/billing/account/v1/index.d.ts +169 -0
- package/dist/billing/account/v1/index.js +5 -0
- package/dist/billing/account/v1/schema.d.ts +4385 -0
- package/dist/billing/account/v1/schema.js +5 -0
- package/dist/billing/catalog/v1/client.d.ts +4 -0
- package/dist/billing/catalog/v1/client.js +7 -0
- package/dist/billing/catalog/v1/index.d.ts +33 -0
- package/dist/billing/catalog/v1/index.js +5 -0
- package/dist/billing/catalog/v1/schema.d.ts +915 -0
- package/dist/billing/catalog/v1/schema.js +5 -0
- package/dist/billing/index.d.ts +3 -0
- package/dist/billing/index.js +6 -0
- package/dist/billing/project/v1/client.d.ts +4 -0
- package/dist/billing/project/v1/client.js +7 -0
- package/dist/billing/project/v1/index.d.ts +59 -0
- package/dist/billing/project/v1/index.js +5 -0
- package/dist/billing/project/v1/schema.d.ts +1892 -0
- package/dist/billing/project/v1/schema.js +5 -0
- package/dist/canopy/v1/client.d.ts +4 -0
- package/dist/canopy/v1/client.js +7 -0
- package/dist/canopy/v1/index.d.ts +24 -23
- package/dist/canopy/v1/index.js +4 -4
- package/dist/canopy/v1/schema.d.ts +113 -109
- package/dist/compute/v1/client.d.ts +4 -0
- package/dist/compute/v1/client.js +7 -0
- package/dist/compute/v1/index.d.ts +207 -134
- package/dist/compute/v1/index.js +4 -4
- package/dist/compute/v1/schema.d.ts +1945 -553
- package/dist/dns/v1/client.d.ts +4 -0
- package/dist/dns/v1/client.js +7 -0
- package/dist/dns/v1/index.d.ts +43 -0
- package/dist/dns/v1/index.js +5 -0
- package/dist/dns/v1/schema.d.ts +887 -0
- package/dist/dns/v1/schema.js +5 -0
- package/dist/iam/v1/client.d.ts +4 -0
- package/dist/iam/v1/client.js +7 -0
- package/dist/iam/v1/index.d.ts +55 -32
- package/dist/iam/v1/index.js +4 -4
- package/dist/iam/v1/schema.d.ts +521 -88
- package/dist/index.d.ts +11 -7
- package/dist/index.js +19 -5
- package/dist/monitoring/v1/client.d.ts +4 -0
- package/dist/monitoring/v1/client.js +7 -0
- package/dist/monitoring/v1/index.d.ts +130 -49
- package/dist/monitoring/v1/index.js +4 -4
- package/dist/monitoring/v1/schema.d.ts +2420 -527
- package/dist/notification/v1/client.d.ts +4 -0
- package/dist/notification/v1/client.js +7 -0
- package/dist/notification/v1/index.d.ts +81 -0
- package/dist/notification/v1/index.js +5 -0
- package/dist/notification/v1/schema.d.ts +2048 -0
- package/dist/notification/v1/schema.js +5 -0
- package/dist/routes.d.ts +3234 -0
- package/dist/routes.js +3639 -0
- package/dist/support/v1/client.d.ts +4 -0
- package/dist/support/v1/client.js +7 -0
- package/dist/support/v1/index.d.ts +51 -0
- package/dist/support/v1/index.js +5 -0
- package/dist/support/v1/schema.d.ts +1082 -0
- package/dist/support/v1/schema.js +5 -0
- package/dist/tunnel/v1/client.d.ts +4 -0
- package/dist/tunnel/v1/client.js +7 -0
- package/dist/tunnel/v1/index.d.ts +8 -7
- package/dist/tunnel/v1/index.js +4 -4
- package/dist/tunnel/v1/schema.d.ts +40 -34
- package/package.json +34 -10
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ClientOptions } from "openapi-fetch";
|
|
2
|
+
import type { paths } from "./schema.js";
|
|
3
|
+
/** A client for the billing account service. Pass baseUrl to override the address. */
|
|
4
|
+
export declare function client(options?: ClientOptions): import("openapi-fetch").Client<paths, `${string}/${string}`>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Code generated from the contract's servers[0]. DO NOT EDIT.
|
|
2
|
+
import createClient, {} from "openapi-fetch";
|
|
3
|
+
const defaultBaseUrl = "https://billing.leaflow.cloud";
|
|
4
|
+
/** A client for the billing account service. Pass baseUrl to override the address. */
|
|
5
|
+
export function client(options = {}) {
|
|
6
|
+
return createClient({ baseUrl: defaultBaseUrl, ...options });
|
|
7
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
export type { paths, components, operations, webhooks } from "./schema.js";
|
|
2
|
+
export { client } from "./client.js";
|
|
3
|
+
import type { operations } from "./schema.js";
|
|
4
|
+
/** The success response body of `GET /account/v1/currencies`. */
|
|
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"];
|
|
8
|
+
/** The success response body of `GET /account/v1/billing-accounts`. */
|
|
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"];
|
|
12
|
+
/** The success response body of `POST /account/v1/billing-accounts`. */
|
|
13
|
+
export type CreateBillingAccountResult = operations["create-billing-account"]["responses"][201]["content"]["application/json"];
|
|
14
|
+
/** The request body of `POST /account/v1/billing-accounts`. */
|
|
15
|
+
export type CreateBillingAccountBody = NonNullable<operations["create-billing-account"]["requestBody"]>["content"]["application/json"];
|
|
16
|
+
/** The success response body of `GET /account/v1/billing-accounts/{accountId}`. */
|
|
17
|
+
export type GetBillingAccountResult = operations["get-billing-account"]["responses"][200]["content"]["application/json"];
|
|
18
|
+
/** The success response body of `PATCH /account/v1/billing-accounts/{accountId}`. */
|
|
19
|
+
export type UpdateBillingAccountResult = operations["update-billing-account"]["responses"][200]["content"]["application/json"];
|
|
20
|
+
/** The request body of `PATCH /account/v1/billing-accounts/{accountId}`. */
|
|
21
|
+
export type UpdateBillingAccountBody = NonNullable<operations["update-billing-account"]["requestBody"]>["content"]["application/json"];
|
|
22
|
+
/** The success response body of `GET /account/v1/billing-accounts/{accountId}/balance`. */
|
|
23
|
+
export type GetAccountBalanceResult = operations["get-account-balance"]["responses"][200]["content"]["application/json"];
|
|
24
|
+
/** The success response body of `GET /account/v1/billing-accounts/{accountId}/metered-usage`. */
|
|
25
|
+
export type GetAccountMeteredUsageResult = operations["get-account-metered-usage"]["responses"][200]["content"]["application/json"];
|
|
26
|
+
/** The success response body of `GET /account/v1/billing-accounts/{accountId}/payment-options`. */
|
|
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"];
|
|
30
|
+
/** The success response body of `GET /account/v1/projects`. */
|
|
31
|
+
export type ListBillingAccountProjectsResult = operations["list-billing-account-projects"]["responses"][200]["content"]["application/json"];
|
|
32
|
+
/** The query parameters of `GET /account/v1/projects`. */
|
|
33
|
+
export type ListBillingAccountProjectsQuery = operations["list-billing-account-projects"]["parameters"]["query"];
|
|
34
|
+
/** The success response body of `GET /account/v1/projects/{projectId}/billing-account`. */
|
|
35
|
+
export type GetProjectBillingAccountResult = operations["get-project-billing-account"]["responses"][200]["content"]["application/json"];
|
|
36
|
+
/** The success response body of `PUT /account/v1/projects/{projectId}/billing-account`. */
|
|
37
|
+
export type SetProjectBillingAccountResult = operations["set-project-billing-account"]["responses"][200]["content"]["application/json"];
|
|
38
|
+
/** The request body of `PUT /account/v1/projects/{projectId}/billing-account`. */
|
|
39
|
+
export type SetProjectBillingAccountBody = NonNullable<operations["set-project-billing-account"]["requestBody"]>["content"]["application/json"];
|
|
40
|
+
/** The success response body of `GET /account/v1/top-ups`. */
|
|
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"];
|
|
44
|
+
/** The success response body of `POST /account/v1/top-ups`. */
|
|
45
|
+
export type CreateTopUpResult = operations["create-top-up"]["responses"][201]["content"]["application/json"];
|
|
46
|
+
/** The request body of `POST /account/v1/top-ups`. */
|
|
47
|
+
export type CreateTopUpBody = NonNullable<operations["create-top-up"]["requestBody"]>["content"]["application/json"];
|
|
48
|
+
/** The success response body of `GET /account/v1/top-ups/{topUpId}`. */
|
|
49
|
+
export type GetTopUpResult = operations["get-top-up"]["responses"][200]["content"]["application/json"];
|
|
50
|
+
/** The success response body of `POST /account/v1/top-ups/{topUpId}/cancel`. */
|
|
51
|
+
export type CancelTopUpResult = operations["cancel-top-up"]["responses"][200]["content"]["application/json"];
|
|
52
|
+
/** The success response body of `GET /account/v1/payment-methods`. */
|
|
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"];
|
|
56
|
+
/** The success response body of `POST /account/v1/payment-methods/setup`. */
|
|
57
|
+
export type CreatePaymentMethodSetupResult = operations["create-payment-method-setup"]["responses"][201]["content"]["application/json"];
|
|
58
|
+
/** The request body of `POST /account/v1/payment-methods/setup`. */
|
|
59
|
+
export type CreatePaymentMethodSetupBody = NonNullable<operations["create-payment-method-setup"]["requestBody"]>["content"]["application/json"];
|
|
60
|
+
/** The success response body of `PUT /account/v1/payment-methods/{paymentMethodId}/default`. */
|
|
61
|
+
export type SetDefaultPaymentMethodResult = operations["set-default-payment-method"]["responses"][200]["content"]["application/json"];
|
|
62
|
+
/** The success response body of `POST /account/v1/invoices/{invoiceId}/pay`. */
|
|
63
|
+
export type PayInvoiceResult = operations["pay-invoice"]["responses"][200]["content"]["application/json"];
|
|
64
|
+
/** The request body of `POST /account/v1/invoices/{invoiceId}/pay`. */
|
|
65
|
+
export type PayInvoiceBody = NonNullable<operations["pay-invoice"]["requestBody"]>["content"]["application/json"];
|
|
66
|
+
/** The success response body of `GET /account/v1/invoices/{invoiceId}/payment-preview`. */
|
|
67
|
+
export type PreviewInvoicePaymentResult = operations["preview-invoice-payment"]["responses"][200]["content"]["application/json"];
|
|
68
|
+
/** The query parameters of `GET /account/v1/invoices/{invoiceId}/payment-preview`. */
|
|
69
|
+
export type PreviewInvoicePaymentQuery = operations["preview-invoice-payment"]["parameters"]["query"];
|
|
70
|
+
/** The success response body of `POST /account/v1/payments`. */
|
|
71
|
+
export type PayTogetherResult = operations["pay-together"]["responses"][200]["content"]["application/json"];
|
|
72
|
+
/** The request body of `POST /account/v1/payments`. */
|
|
73
|
+
export type PayTogetherBody = NonNullable<operations["pay-together"]["requestBody"]>["content"]["application/json"];
|
|
74
|
+
/** The success response body of `POST /account/v1/payments/preview`. */
|
|
75
|
+
export type PreviewPayTogetherResult = operations["preview-pay-together"]["responses"][200]["content"]["application/json"];
|
|
76
|
+
/** The request body of `POST /account/v1/payments/preview`. */
|
|
77
|
+
export type PreviewPayTogetherBody = NonNullable<operations["preview-pay-together"]["requestBody"]>["content"]["application/json"];
|
|
78
|
+
/** The success response body of `GET /account/v1/invoices`. */
|
|
79
|
+
export type ListInvoicesResult = operations["list-invoices"]["responses"][200]["content"]["application/json"];
|
|
80
|
+
/** The query parameters of `GET /account/v1/invoices`. */
|
|
81
|
+
export type ListInvoicesQuery = operations["list-invoices"]["parameters"]["query"];
|
|
82
|
+
/** The success response body of `GET /account/v1/invoices/{invoiceId}`. */
|
|
83
|
+
export type GetInvoiceResult = operations["get-invoice"]["responses"][200]["content"]["application/json"];
|
|
84
|
+
/** The success response body of `GET /account/v1/invoices/{invoiceId}/items`. */
|
|
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"];
|
|
88
|
+
/** The success response body of `GET /account/v1/transactions`. */
|
|
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"];
|
|
92
|
+
/** The success response body of `GET /account/v1/discounts`. */
|
|
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"];
|
|
96
|
+
/** The success response body of `GET /account/v1/credit-grants`. */
|
|
97
|
+
export type ListCreditGrantsResult = operations["list-credit-grants"]["responses"][200]["content"]["application/json"];
|
|
98
|
+
/** The query parameters of `GET /account/v1/credit-grants`. */
|
|
99
|
+
export type ListCreditGrantsQuery = operations["list-credit-grants"]["parameters"]["query"];
|
|
100
|
+
/** The success response body of `GET /account/v1/refunds`. */
|
|
101
|
+
export type ListRefundsResult = operations["list-refunds"]["responses"][200]["content"]["application/json"];
|
|
102
|
+
/** The query parameters of `GET /account/v1/refunds`. */
|
|
103
|
+
export type ListRefundsQuery = operations["list-refunds"]["parameters"]["query"];
|
|
104
|
+
/** The success response body of `GET /account/v1/usage-charges`. */
|
|
105
|
+
export type ListUsageChargesResult = operations["list-usage-charges"]["responses"][200]["content"]["application/json"];
|
|
106
|
+
/** The query parameters of `GET /account/v1/usage-charges`. */
|
|
107
|
+
export type ListUsageChargesQuery = operations["list-usage-charges"]["parameters"]["query"];
|
|
108
|
+
/** The success response body of `GET /account/v1/subscriptions`. */
|
|
109
|
+
export type ListSubscriptionsResult = operations["list-subscriptions"]["responses"][200]["content"]["application/json"];
|
|
110
|
+
/** The query parameters of `GET /account/v1/subscriptions`. */
|
|
111
|
+
export type ListSubscriptionsQuery = operations["list-subscriptions"]["parameters"]["query"];
|
|
112
|
+
/** The success response body of `GET /account/v1/subscriptions/{subscriptionId}`. */
|
|
113
|
+
export type GetSubscriptionResult = operations["get-subscription"]["responses"][200]["content"]["application/json"];
|
|
114
|
+
/** The success response body of `POST /account/v1/quotes`. */
|
|
115
|
+
export type CreateQuoteResult = operations["create-quote"]["responses"][200]["content"]["application/json"];
|
|
116
|
+
/** The request body of `POST /account/v1/quotes`. */
|
|
117
|
+
export type CreateQuoteBody = NonNullable<operations["create-quote"]["requestBody"]>["content"]["application/json"];
|
|
118
|
+
/** The success response body of `POST /account/v1/cancellations`. */
|
|
119
|
+
export type CreateCancellationResult = operations["create-cancellation"]["responses"][200]["content"]["application/json"];
|
|
120
|
+
/** The request body of `POST /account/v1/cancellations`. */
|
|
121
|
+
export type CreateCancellationBody = NonNullable<operations["create-cancellation"]["requestBody"]>["content"]["application/json"];
|
|
122
|
+
/** The success response body of `GET /account/v1/cancellations`. */
|
|
123
|
+
export type ListCancellationsResult = operations["list-cancellations"]["responses"][200]["content"]["application/json"];
|
|
124
|
+
/** The query parameters of `GET /account/v1/cancellations`. */
|
|
125
|
+
export type ListCancellationsQuery = operations["list-cancellations"]["parameters"]["query"];
|
|
126
|
+
/** The success response body of `GET /account/v1/cancellations/{cancellationId}`. */
|
|
127
|
+
export type GetCancellationResult = operations["get-cancellation"]["responses"][200]["content"]["application/json"];
|
|
128
|
+
/** The success response body of `POST /account/v1/cancellations/{cancellationId}/withdraw`. */
|
|
129
|
+
export type WithdrawCancellationResult = operations["withdraw-cancellation"]["responses"][200]["content"]["application/json"];
|
|
130
|
+
/** The success response body of `GET /account/v1/subscriptions/{subscriptionId}/renewal-prices`. */
|
|
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"];
|
|
134
|
+
/** The success response body of `POST /account/v1/subscriptions/{subscriptionId}/renew`. */
|
|
135
|
+
export type RenewSubscriptionResult = operations["renew-subscription"]["responses"][200]["content"]["application/json"];
|
|
136
|
+
/** The request body of `POST /account/v1/subscriptions/{subscriptionId}/renew`. */
|
|
137
|
+
export type RenewSubscriptionBody = NonNullable<operations["renew-subscription"]["requestBody"]>["content"]["application/json"];
|
|
138
|
+
/** The success response body of `POST /account/v1/subscriptions/{subscriptionId}/renewal-orders`. */
|
|
139
|
+
export type CreateRenewalOrderResult = operations["create-renewal-order"]["responses"][200]["content"]["application/json"];
|
|
140
|
+
/** The request body of `POST /account/v1/subscriptions/{subscriptionId}/renewal-orders`. */
|
|
141
|
+
export type CreateRenewalOrderBody = NonNullable<operations["create-renewal-order"]["requestBody"]>["content"]["application/json"];
|
|
142
|
+
/** The success response body of `PUT /account/v1/subscriptions/{subscriptionId}/auto-renew`. */
|
|
143
|
+
export type SetAutoRenewResult = operations["set-auto-renew"]["responses"][200]["content"]["application/json"];
|
|
144
|
+
/** The request body of `PUT /account/v1/subscriptions/{subscriptionId}/auto-renew`. */
|
|
145
|
+
export type SetAutoRenewBody = NonNullable<operations["set-auto-renew"]["requestBody"]>["content"]["application/json"];
|
|
146
|
+
/** The success response body of `POST /account/v1/promotion-codes/preview`. */
|
|
147
|
+
export type PreviewPromotionCodeResult = operations["preview-promotion-code"]["responses"][200]["content"]["application/json"];
|
|
148
|
+
/** The request body of `POST /account/v1/promotion-codes/preview`. */
|
|
149
|
+
export type PreviewPromotionCodeBody = NonNullable<operations["preview-promotion-code"]["requestBody"]>["content"]["application/json"];
|
|
150
|
+
/** The success response body of `GET /account/v1/allowances`. */
|
|
151
|
+
export type ListAllowancesResult = operations["list-allowances"]["responses"][200]["content"]["application/json"];
|
|
152
|
+
/** The query parameters of `GET /account/v1/allowances`. */
|
|
153
|
+
export type ListAllowancesQuery = operations["list-allowances"]["parameters"]["query"];
|
|
154
|
+
/** The success response body of `GET /account/v1/orders`. */
|
|
155
|
+
export type ListOrdersResult = operations["list-orders"]["responses"][200]["content"]["application/json"];
|
|
156
|
+
/** The query parameters of `GET /account/v1/orders`. */
|
|
157
|
+
export type ListOrdersQuery = operations["list-orders"]["parameters"]["query"];
|
|
158
|
+
/** The success response body of `GET /account/v1/orders/{orderId}`. */
|
|
159
|
+
export type GetOrderResult = operations["get-order"]["responses"][200]["content"]["application/json"];
|
|
160
|
+
/** The success response body of `POST /account/v1/orders/{orderId}/cancel`. */
|
|
161
|
+
export type CancelOrderResult = operations["cancel-order"]["responses"][200]["content"]["application/json"];
|
|
162
|
+
/** The success response body of `GET /account/v1/orders/{orderId}/items`. */
|
|
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"];
|
|
166
|
+
/** The success response body of `GET /account/v1/entitlements`. */
|
|
167
|
+
export type ListEntitlementsResult = operations["list-entitlements"]["responses"][200]["content"]["application/json"];
|
|
168
|
+
/** The query parameters of `GET /account/v1/entitlements`. */
|
|
169
|
+
export type ListEntitlementsQuery = operations["list-entitlements"]["parameters"]["query"];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// Code generated by scripts/generate.mjs. DO NOT EDIT.
|
|
2
|
+
//
|
|
3
|
+
// The aliases replace the operations[...] subscript chain with a name. The raw paths /
|
|
4
|
+
// components / operations are exported as well: paths is what createClient<paths>() takes.
|
|
5
|
+
export { client } from "./client.js";
|