@leaflow/sdk 0.0.0-dev.23.g7fcf334 → 0.0.0-dev.232.g18ca775
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 +143 -0
- package/dist/billing/account/v1/index.js +5 -0
- package/dist/billing/account/v1/schema.d.ts +4009 -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 +29 -0
- package/dist/billing/catalog/v1/index.js +5 -0
- package/dist/billing/catalog/v1/schema.d.ts +910 -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 +45 -0
- package/dist/billing/project/v1/index.js +5 -0
- package/dist/billing/project/v1/schema.d.ts +1443 -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 +182 -127
- package/dist/compute/v1/index.js +4 -4
- package/dist/compute/v1/schema.d.ts +1501 -286
- 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 +77 -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/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 +30 -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,143 @@
|
|
|
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 success response body of `GET /account/v1/billing-accounts`. */
|
|
7
|
+
export type ListBillingAccountsResult = operations["list-billing-accounts"]["responses"][200]["content"]["application/json"];
|
|
8
|
+
/** The success response body of `POST /account/v1/billing-accounts`. */
|
|
9
|
+
export type CreateBillingAccountResult = operations["create-billing-account"]["responses"][201]["content"]["application/json"];
|
|
10
|
+
/** The request body of `POST /account/v1/billing-accounts`. */
|
|
11
|
+
export type CreateBillingAccountBody = NonNullable<operations["create-billing-account"]["requestBody"]>["content"]["application/json"];
|
|
12
|
+
/** The success response body of `GET /account/v1/billing-accounts/{accountId}`. */
|
|
13
|
+
export type GetBillingAccountResult = operations["get-billing-account"]["responses"][200]["content"]["application/json"];
|
|
14
|
+
/** The success response body of `PATCH /account/v1/billing-accounts/{accountId}`. */
|
|
15
|
+
export type UpdateBillingAccountResult = operations["update-billing-account"]["responses"][200]["content"]["application/json"];
|
|
16
|
+
/** The request body of `PATCH /account/v1/billing-accounts/{accountId}`. */
|
|
17
|
+
export type UpdateBillingAccountBody = NonNullable<operations["update-billing-account"]["requestBody"]>["content"]["application/json"];
|
|
18
|
+
/** The success response body of `GET /account/v1/billing-accounts/{accountId}/balance`. */
|
|
19
|
+
export type GetAccountBalanceResult = operations["get-account-balance"]["responses"][200]["content"]["application/json"];
|
|
20
|
+
/** The success response body of `GET /account/v1/billing-accounts/{accountId}/metered-usage`. */
|
|
21
|
+
export type GetAccountMeteredUsageResult = operations["get-account-metered-usage"]["responses"][200]["content"]["application/json"];
|
|
22
|
+
/** The success response body of `GET /account/v1/billing-accounts/{accountId}/payment-options`. */
|
|
23
|
+
export type ListPaymentOptionsResult = operations["list-payment-options"]["responses"][200]["content"]["application/json"];
|
|
24
|
+
/** The success response body of `GET /account/v1/projects`. */
|
|
25
|
+
export type ListBillingAccountProjectsResult = operations["list-billing-account-projects"]["responses"][200]["content"]["application/json"];
|
|
26
|
+
/** The query parameters of `GET /account/v1/projects`. */
|
|
27
|
+
export type ListBillingAccountProjectsQuery = operations["list-billing-account-projects"]["parameters"]["query"];
|
|
28
|
+
/** The success response body of `GET /account/v1/projects/{projectId}/billing-account`. */
|
|
29
|
+
export type GetProjectBillingAccountResult = operations["get-project-billing-account"]["responses"][200]["content"]["application/json"];
|
|
30
|
+
/** The success response body of `PUT /account/v1/projects/{projectId}/billing-account`. */
|
|
31
|
+
export type SetProjectBillingAccountResult = operations["set-project-billing-account"]["responses"][200]["content"]["application/json"];
|
|
32
|
+
/** The request body of `PUT /account/v1/projects/{projectId}/billing-account`. */
|
|
33
|
+
export type SetProjectBillingAccountBody = NonNullable<operations["set-project-billing-account"]["requestBody"]>["content"]["application/json"];
|
|
34
|
+
/** The success response body of `GET /account/v1/top-ups`. */
|
|
35
|
+
export type ListTopUpsResult = operations["list-top-ups"]["responses"][200]["content"]["application/json"];
|
|
36
|
+
/** The success response body of `POST /account/v1/top-ups`. */
|
|
37
|
+
export type CreateTopUpResult = operations["create-top-up"]["responses"][201]["content"]["application/json"];
|
|
38
|
+
/** The request body of `POST /account/v1/top-ups`. */
|
|
39
|
+
export type CreateTopUpBody = NonNullable<operations["create-top-up"]["requestBody"]>["content"]["application/json"];
|
|
40
|
+
/** The success response body of `GET /account/v1/top-ups/{topUpId}`. */
|
|
41
|
+
export type GetTopUpResult = operations["get-top-up"]["responses"][200]["content"]["application/json"];
|
|
42
|
+
/** The success response body of `POST /account/v1/top-ups/{topUpId}/cancel`. */
|
|
43
|
+
export type CancelTopUpResult = operations["cancel-top-up"]["responses"][200]["content"]["application/json"];
|
|
44
|
+
/** The success response body of `GET /account/v1/payment-methods`. */
|
|
45
|
+
export type ListPaymentMethodsResult = operations["list-payment-methods"]["responses"][200]["content"]["application/json"];
|
|
46
|
+
/** The success response body of `POST /account/v1/payment-methods/setup`. */
|
|
47
|
+
export type CreatePaymentMethodSetupResult = operations["create-payment-method-setup"]["responses"][201]["content"]["application/json"];
|
|
48
|
+
/** The request body of `POST /account/v1/payment-methods/setup`. */
|
|
49
|
+
export type CreatePaymentMethodSetupBody = NonNullable<operations["create-payment-method-setup"]["requestBody"]>["content"]["application/json"];
|
|
50
|
+
/** The success response body of `PUT /account/v1/payment-methods/{paymentMethodId}/default`. */
|
|
51
|
+
export type SetDefaultPaymentMethodResult = operations["set-default-payment-method"]["responses"][200]["content"]["application/json"];
|
|
52
|
+
/** The success response body of `POST /account/v1/invoices/{invoiceId}/pay`. */
|
|
53
|
+
export type PayInvoiceResult = operations["pay-invoice"]["responses"][200]["content"]["application/json"];
|
|
54
|
+
/** The request body of `POST /account/v1/invoices/{invoiceId}/pay`. */
|
|
55
|
+
export type PayInvoiceBody = NonNullable<operations["pay-invoice"]["requestBody"]>["content"]["application/json"];
|
|
56
|
+
/** The success response body of `GET /account/v1/invoices/{invoiceId}/payment-preview`. */
|
|
57
|
+
export type PreviewInvoicePaymentResult = operations["preview-invoice-payment"]["responses"][200]["content"]["application/json"];
|
|
58
|
+
/** The query parameters of `GET /account/v1/invoices/{invoiceId}/payment-preview`. */
|
|
59
|
+
export type PreviewInvoicePaymentQuery = operations["preview-invoice-payment"]["parameters"]["query"];
|
|
60
|
+
/** The success response body of `POST /account/v1/payments`. */
|
|
61
|
+
export type PayTogetherResult = operations["pay-together"]["responses"][200]["content"]["application/json"];
|
|
62
|
+
/** The request body of `POST /account/v1/payments`. */
|
|
63
|
+
export type PayTogetherBody = NonNullable<operations["pay-together"]["requestBody"]>["content"]["application/json"];
|
|
64
|
+
/** The success response body of `POST /account/v1/payments/preview`. */
|
|
65
|
+
export type PreviewPayTogetherResult = operations["preview-pay-together"]["responses"][200]["content"]["application/json"];
|
|
66
|
+
/** The request body of `POST /account/v1/payments/preview`. */
|
|
67
|
+
export type PreviewPayTogetherBody = NonNullable<operations["preview-pay-together"]["requestBody"]>["content"]["application/json"];
|
|
68
|
+
/** The success response body of `GET /account/v1/invoices`. */
|
|
69
|
+
export type ListInvoicesResult = operations["list-invoices"]["responses"][200]["content"]["application/json"];
|
|
70
|
+
/** The query parameters of `GET /account/v1/invoices`. */
|
|
71
|
+
export type ListInvoicesQuery = operations["list-invoices"]["parameters"]["query"];
|
|
72
|
+
/** The success response body of `GET /account/v1/invoices/{invoiceId}`. */
|
|
73
|
+
export type GetInvoiceResult = operations["get-invoice"]["responses"][200]["content"]["application/json"];
|
|
74
|
+
/** The success response body of `GET /account/v1/invoices/{invoiceId}/items`. */
|
|
75
|
+
export type ListInvoiceItemsResult = operations["list-invoice-items"]["responses"][200]["content"]["application/json"];
|
|
76
|
+
/** The success response body of `GET /account/v1/transactions`. */
|
|
77
|
+
export type ListTransactionsResult = operations["list-transactions"]["responses"][200]["content"]["application/json"];
|
|
78
|
+
/** The success response body of `GET /account/v1/discounts`. */
|
|
79
|
+
export type ListAccountDiscountsResult = operations["list-account-discounts"]["responses"][200]["content"]["application/json"];
|
|
80
|
+
/** The success response body of `GET /account/v1/credit-grants`. */
|
|
81
|
+
export type ListCreditGrantsResult = operations["list-credit-grants"]["responses"][200]["content"]["application/json"];
|
|
82
|
+
/** The query parameters of `GET /account/v1/credit-grants`. */
|
|
83
|
+
export type ListCreditGrantsQuery = operations["list-credit-grants"]["parameters"]["query"];
|
|
84
|
+
/** The success response body of `GET /account/v1/refunds`. */
|
|
85
|
+
export type ListRefundsResult = operations["list-refunds"]["responses"][200]["content"]["application/json"];
|
|
86
|
+
/** The query parameters of `GET /account/v1/refunds`. */
|
|
87
|
+
export type ListRefundsQuery = operations["list-refunds"]["parameters"]["query"];
|
|
88
|
+
/** The success response body of `GET /account/v1/usage-charges`. */
|
|
89
|
+
export type ListUsageChargesResult = operations["list-usage-charges"]["responses"][200]["content"]["application/json"];
|
|
90
|
+
/** The query parameters of `GET /account/v1/usage-charges`. */
|
|
91
|
+
export type ListUsageChargesQuery = operations["list-usage-charges"]["parameters"]["query"];
|
|
92
|
+
/** The success response body of `GET /account/v1/subscriptions`. */
|
|
93
|
+
export type ListSubscriptionsResult = operations["list-subscriptions"]["responses"][200]["content"]["application/json"];
|
|
94
|
+
/** The query parameters of `GET /account/v1/subscriptions`. */
|
|
95
|
+
export type ListSubscriptionsQuery = operations["list-subscriptions"]["parameters"]["query"];
|
|
96
|
+
/** The success response body of `GET /account/v1/subscriptions/{subscriptionId}`. */
|
|
97
|
+
export type GetSubscriptionResult = operations["get-subscription"]["responses"][200]["content"]["application/json"];
|
|
98
|
+
/** The success response body of `GET /account/v1/subscriptions/{subscriptionId}/cancellation-preview`. */
|
|
99
|
+
export type PreviewCancellationResult = operations["preview-cancellation"]["responses"][200]["content"]["application/json"];
|
|
100
|
+
/** The success response body of `POST /account/v1/subscriptions/{subscriptionId}/cancellation-requests`. */
|
|
101
|
+
export type CreateCancellationRequestResult = operations["create-cancellation-request"]["responses"][201]["content"]["application/json"];
|
|
102
|
+
/** The request body of `POST /account/v1/subscriptions/{subscriptionId}/cancellation-requests`. */
|
|
103
|
+
export type CreateCancellationRequestBody = NonNullable<operations["create-cancellation-request"]["requestBody"]>["content"]["application/json"];
|
|
104
|
+
/** The success response body of `GET /account/v1/cancellation-requests/{cancellationRequestId}`. */
|
|
105
|
+
export type GetCancellationRequestResult = operations["get-cancellation-request"]["responses"][200]["content"]["application/json"];
|
|
106
|
+
/** The success response body of `POST /account/v1/cancellation-requests/{cancellationRequestId}/cancel`. */
|
|
107
|
+
export type CancelCancellationRequestResult = operations["cancel-cancellation-request"]["responses"][200]["content"]["application/json"];
|
|
108
|
+
/** The success response body of `GET /account/v1/subscriptions/{subscriptionId}/renewal-prices`. */
|
|
109
|
+
export type ListRenewalPricesResult = operations["list-renewal-prices"]["responses"][200]["content"]["application/json"];
|
|
110
|
+
/** The success response body of `POST /account/v1/subscriptions/{subscriptionId}/renew`. */
|
|
111
|
+
export type RenewSubscriptionResult = operations["renew-subscription"]["responses"][200]["content"]["application/json"];
|
|
112
|
+
/** The request body of `POST /account/v1/subscriptions/{subscriptionId}/renew`. */
|
|
113
|
+
export type RenewSubscriptionBody = NonNullable<operations["renew-subscription"]["requestBody"]>["content"]["application/json"];
|
|
114
|
+
/** The success response body of `POST /account/v1/subscriptions/{subscriptionId}/renewal-orders`. */
|
|
115
|
+
export type CreateRenewalOrderResult = operations["create-renewal-order"]["responses"][200]["content"]["application/json"];
|
|
116
|
+
/** The request body of `POST /account/v1/subscriptions/{subscriptionId}/renewal-orders`. */
|
|
117
|
+
export type CreateRenewalOrderBody = NonNullable<operations["create-renewal-order"]["requestBody"]>["content"]["application/json"];
|
|
118
|
+
/** The success response body of `PUT /account/v1/subscriptions/{subscriptionId}/auto-renew`. */
|
|
119
|
+
export type SetAutoRenewResult = operations["set-auto-renew"]["responses"][200]["content"]["application/json"];
|
|
120
|
+
/** The request body of `PUT /account/v1/subscriptions/{subscriptionId}/auto-renew`. */
|
|
121
|
+
export type SetAutoRenewBody = NonNullable<operations["set-auto-renew"]["requestBody"]>["content"]["application/json"];
|
|
122
|
+
/** The success response body of `POST /account/v1/promotion-codes/preview`. */
|
|
123
|
+
export type PreviewPromotionCodeResult = operations["preview-promotion-code"]["responses"][200]["content"]["application/json"];
|
|
124
|
+
/** The request body of `POST /account/v1/promotion-codes/preview`. */
|
|
125
|
+
export type PreviewPromotionCodeBody = NonNullable<operations["preview-promotion-code"]["requestBody"]>["content"]["application/json"];
|
|
126
|
+
/** The success response body of `GET /account/v1/allowances`. */
|
|
127
|
+
export type ListAllowancesResult = operations["list-allowances"]["responses"][200]["content"]["application/json"];
|
|
128
|
+
/** The query parameters of `GET /account/v1/allowances`. */
|
|
129
|
+
export type ListAllowancesQuery = operations["list-allowances"]["parameters"]["query"];
|
|
130
|
+
/** The success response body of `GET /account/v1/orders`. */
|
|
131
|
+
export type ListOrdersResult = operations["list-orders"]["responses"][200]["content"]["application/json"];
|
|
132
|
+
/** The query parameters of `GET /account/v1/orders`. */
|
|
133
|
+
export type ListOrdersQuery = operations["list-orders"]["parameters"]["query"];
|
|
134
|
+
/** The success response body of `GET /account/v1/orders/{orderId}`. */
|
|
135
|
+
export type GetOrderResult = operations["get-order"]["responses"][200]["content"]["application/json"];
|
|
136
|
+
/** The success response body of `POST /account/v1/orders/{orderId}/cancel`. */
|
|
137
|
+
export type CancelOrderResult = operations["cancel-order"]["responses"][200]["content"]["application/json"];
|
|
138
|
+
/** The success response body of `GET /account/v1/orders/{orderId}/items`. */
|
|
139
|
+
export type ListOrderItemsResult = operations["list-order-items"]["responses"][200]["content"]["application/json"];
|
|
140
|
+
/** The success response body of `GET /account/v1/entitlements`. */
|
|
141
|
+
export type ListEntitlementsResult = operations["list-entitlements"]["responses"][200]["content"]["application/json"];
|
|
142
|
+
/** The query parameters of `GET /account/v1/entitlements`. */
|
|
143
|
+
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";
|