@leaflow/sdk 0.0.0-dev.191.g39f21ec → 0.0.0-dev.195.gffa7069

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.
@@ -0,0 +1,4 @@
1
+ import { type ClientOptions } from "openapi-fetch";
2
+ import type { paths } from "./schema.js";
3
+ /** A client for the billingaccount 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 billingaccount service. Pass baseUrl to override the address. */
5
+ export function client(options = {}) {
6
+ return createClient({ baseUrl: defaultBaseUrl, ...options });
7
+ }
@@ -0,0 +1,145 @@
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 /api/v1/prices`. */
5
+ export type ListPricesResult = operations["list-prices"]["responses"][200]["content"]["application/json"];
6
+ /** The query parameters of `GET /api/v1/prices`. */
7
+ export type ListPricesQuery = operations["list-prices"]["parameters"]["query"];
8
+ /** The success response body of `GET /api/v1/products`. */
9
+ export type ListProductsResult = operations["list-products"]["responses"][200]["content"]["application/json"];
10
+ /** The success response body of `GET /api/v1/products/{productId}`. */
11
+ export type GetProductResult = operations["get-product"]["responses"][200]["content"]["application/json"];
12
+ /** The success response body of `GET /api/v1/plans/{planId}`. */
13
+ export type GetPlanResult = operations["get-plan"]["responses"][200]["content"]["application/json"];
14
+ /** The success response body of `GET /api/v1/prices/{priceId}`. */
15
+ export type GetPriceResult = operations["get-price"]["responses"][200]["content"]["application/json"];
16
+ /** The success response body of `GET /api/v1/plans`. */
17
+ export type ListPlansResult = operations["list-plans"]["responses"][200]["content"]["application/json"];
18
+ /** The success response body of `GET /api/v1/plans/{planId}/prices`. */
19
+ export type ListPricesByPlanResult = operations["list-prices-by-plan"]["responses"][200]["content"]["application/json"];
20
+ /** The query parameters of `GET /api/v1/plans/{planId}/prices`. */
21
+ export type ListPricesByPlanQuery = operations["list-prices-by-plan"]["parameters"]["query"];
22
+ /** The success response body of `GET /api/v1/rate-cards/{rateCardId}/rules`. */
23
+ export type ListRatesResult = operations["list-rates"]["responses"][200]["content"]["application/json"];
24
+ /** The query parameters of `GET /api/v1/rate-cards/{rateCardId}/rules`. */
25
+ export type ListRatesQuery = operations["list-rates"]["parameters"]["query"];
26
+ /** The success response body of `POST /api/v1/estimates`. */
27
+ export type CreateEstimateResult = operations["create-estimate"]["responses"][200]["content"]["application/json"];
28
+ /** The request body of `POST /api/v1/estimates`. */
29
+ export type CreateEstimateBody = NonNullable<operations["create-estimate"]["requestBody"]>["content"]["application/json"];
30
+ /** The success response body of `GET /account/v1/billing-accounts`. */
31
+ export type ListBillingAccountsResult = operations["list-billing-accounts"]["responses"][200]["content"]["application/json"];
32
+ /** The success response body of `POST /account/v1/billing-accounts`. */
33
+ export type CreateBillingAccountResult = operations["create-billing-account"]["responses"][201]["content"]["application/json"];
34
+ /** The request body of `POST /account/v1/billing-accounts`. */
35
+ export type CreateBillingAccountBody = NonNullable<operations["create-billing-account"]["requestBody"]>["content"]["application/json"];
36
+ /** The success response body of `GET /account/v1/billing-accounts/{accountId}`. */
37
+ export type GetBillingAccountResult = operations["get-billing-account"]["responses"][200]["content"]["application/json"];
38
+ /** The success response body of `PATCH /account/v1/billing-accounts/{accountId}`. */
39
+ export type UpdateBillingAccountResult = operations["update-billing-account"]["responses"][200]["content"]["application/json"];
40
+ /** The request body of `PATCH /account/v1/billing-accounts/{accountId}`. */
41
+ export type UpdateBillingAccountBody = NonNullable<operations["update-billing-account"]["requestBody"]>["content"]["application/json"];
42
+ /** The success response body of `GET /account/v1/billing-accounts/{accountId}/balance`. */
43
+ export type GetAccountBalanceResult = operations["get-account-balance"]["responses"][200]["content"]["application/json"];
44
+ /** The success response body of `GET /account/v1/projects`. */
45
+ export type ListBillingAccountProjectsResult = operations["list-billing-account-projects"]["responses"][200]["content"]["application/json"];
46
+ /** The query parameters of `GET /account/v1/projects`. */
47
+ export type ListBillingAccountProjectsQuery = operations["list-billing-account-projects"]["parameters"]["query"];
48
+ /** The success response body of `GET /account/v1/projects/{projectId}/billing-account`. */
49
+ export type GetProjectBillingAccountResult = operations["get-project-billing-account"]["responses"][200]["content"]["application/json"];
50
+ /** The success response body of `PUT /account/v1/projects/{projectId}/billing-account`. */
51
+ export type SetProjectBillingAccountResult = operations["set-project-billing-account"]["responses"][200]["content"]["application/json"];
52
+ /** The request body of `PUT /account/v1/projects/{projectId}/billing-account`. */
53
+ export type SetProjectBillingAccountBody = NonNullable<operations["set-project-billing-account"]["requestBody"]>["content"]["application/json"];
54
+ /** The success response body of `GET /account/v1/top-ups`. */
55
+ export type ListTopUpsResult = operations["list-top-ups"]["responses"][200]["content"]["application/json"];
56
+ /** The success response body of `POST /account/v1/top-ups`. */
57
+ export type CreateTopUpResult = operations["create-top-up"]["responses"][201]["content"]["application/json"];
58
+ /** The request body of `POST /account/v1/top-ups`. */
59
+ export type CreateTopUpBody = NonNullable<operations["create-top-up"]["requestBody"]>["content"]["application/json"];
60
+ /** The success response body of `GET /account/v1/top-ups/{topUpId}`. */
61
+ export type GetTopUpResult = operations["get-top-up"]["responses"][200]["content"]["application/json"];
62
+ /** The success response body of `GET /account/v1/payment-methods`. */
63
+ export type ListPaymentMethodsResult = operations["list-payment-methods"]["responses"][200]["content"]["application/json"];
64
+ /** The success response body of `POST /account/v1/payment-methods/setup`. */
65
+ export type CreatePaymentMethodSetupResult = operations["create-payment-method-setup"]["responses"][201]["content"]["application/json"];
66
+ /** The request body of `POST /account/v1/payment-methods/setup`. */
67
+ export type CreatePaymentMethodSetupBody = NonNullable<operations["create-payment-method-setup"]["requestBody"]>["content"]["application/json"];
68
+ /** The success response body of `PUT /account/v1/payment-methods/{paymentMethodId}/default`. */
69
+ export type SetDefaultPaymentMethodResult = operations["set-default-payment-method"]["responses"][200]["content"]["application/json"];
70
+ /** The success response body of `POST /account/v1/invoices/{invoiceId}/pay`. */
71
+ export type PayInvoiceResult = operations["pay-invoice"]["responses"][200]["content"]["application/json"];
72
+ /** The request body of `POST /account/v1/invoices/{invoiceId}/pay`. */
73
+ export type PayInvoiceBody = NonNullable<operations["pay-invoice"]["requestBody"]>["content"]["application/json"];
74
+ /** The success response body of `POST /account/v1/payments`. */
75
+ export type PayTogetherResult = operations["pay-together"]["responses"][200]["content"]["application/json"];
76
+ /** The request body of `POST /account/v1/payments`. */
77
+ export type PayTogetherBody = NonNullable<operations["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 success response body of `GET /account/v1/transactions`. */
87
+ export type ListTransactionsResult = operations["list-transactions"]["responses"][200]["content"]["application/json"];
88
+ /** The success response body of `GET /account/v1/discounts`. */
89
+ export type ListAccountDiscountsResult = operations["list-account-discounts"]["responses"][200]["content"]["application/json"];
90
+ /** The success response body of `GET /account/v1/credit-grants`. */
91
+ export type ListCreditGrantsResult = operations["list-credit-grants"]["responses"][200]["content"]["application/json"];
92
+ /** The query parameters of `GET /account/v1/credit-grants`. */
93
+ export type ListCreditGrantsQuery = operations["list-credit-grants"]["parameters"]["query"];
94
+ /** The success response body of `GET /account/v1/refunds`. */
95
+ export type ListRefundsResult = operations["list-refunds"]["responses"][200]["content"]["application/json"];
96
+ /** The success response body of `GET /account/v1/usage-charges`. */
97
+ export type ListUsageChargesResult = operations["list-usage-charges"]["responses"][200]["content"]["application/json"];
98
+ /** The query parameters of `GET /account/v1/usage-charges`. */
99
+ export type ListUsageChargesQuery = operations["list-usage-charges"]["parameters"]["query"];
100
+ /** The success response body of `GET /account/v1/subscriptions`. */
101
+ export type ListSubscriptionsResult = operations["list-subscriptions"]["responses"][200]["content"]["application/json"];
102
+ /** The query parameters of `GET /account/v1/subscriptions`. */
103
+ export type ListSubscriptionsQuery = operations["list-subscriptions"]["parameters"]["query"];
104
+ /** The success response body of `GET /account/v1/subscriptions/{subscriptionId}`. */
105
+ export type GetSubscriptionResult = operations["get-subscription"]["responses"][200]["content"]["application/json"];
106
+ /** The success response body of `GET /account/v1/subscriptions/{subscriptionId}/cancellation-preview`. */
107
+ export type PreviewCancellationResult = operations["preview-cancellation"]["responses"][200]["content"]["application/json"];
108
+ /** The success response body of `POST /account/v1/subscriptions/{subscriptionId}/cancellation-requests`. */
109
+ export type CreateCancellationRequestResult = operations["create-cancellation-request"]["responses"][201]["content"]["application/json"];
110
+ /** The request body of `POST /account/v1/subscriptions/{subscriptionId}/cancellation-requests`. */
111
+ export type CreateCancellationRequestBody = NonNullable<operations["create-cancellation-request"]["requestBody"]>["content"]["application/json"];
112
+ /** The success response body of `GET /account/v1/cancellation-requests/{cancellationRequestId}`. */
113
+ export type GetCancellationRequestResult = operations["get-cancellation-request"]["responses"][200]["content"]["application/json"];
114
+ /** The success response body of `POST /account/v1/cancellation-requests/{cancellationRequestId}/cancel`. */
115
+ export type CancelCancellationRequestResult = operations["cancel-cancellation-request"]["responses"][200]["content"]["application/json"];
116
+ /** The success response body of `GET /account/v1/subscriptions/{subscriptionId}/renewal-prices`. */
117
+ export type ListRenewalPricesResult = operations["list-renewal-prices"]["responses"][200]["content"]["application/json"];
118
+ /** The success response body of `POST /account/v1/subscriptions/{subscriptionId}/renew`. */
119
+ export type RenewSubscriptionResult = operations["renew-subscription"]["responses"][200]["content"]["application/json"];
120
+ /** The request body of `POST /account/v1/subscriptions/{subscriptionId}/renew`. */
121
+ export type RenewSubscriptionBody = NonNullable<operations["renew-subscription"]["requestBody"]>["content"]["application/json"];
122
+ /** The success response body of `PUT /account/v1/subscriptions/{subscriptionId}/auto-renew`. */
123
+ export type SetAutoRenewResult = operations["set-auto-renew"]["responses"][200]["content"]["application/json"];
124
+ /** The request body of `PUT /account/v1/subscriptions/{subscriptionId}/auto-renew`. */
125
+ export type SetAutoRenewBody = NonNullable<operations["set-auto-renew"]["requestBody"]>["content"]["application/json"];
126
+ /** The success response body of `POST /account/v1/promotion-codes/preview`. */
127
+ export type PreviewPromotionCodeResult = operations["preview-promotion-code"]["responses"][200]["content"]["application/json"];
128
+ /** The request body of `POST /account/v1/promotion-codes/preview`. */
129
+ export type PreviewPromotionCodeBody = NonNullable<operations["preview-promotion-code"]["requestBody"]>["content"]["application/json"];
130
+ /** The success response body of `GET /account/v1/allowances`. */
131
+ export type ListAllowancesResult = operations["list-allowances"]["responses"][200]["content"]["application/json"];
132
+ /** The query parameters of `GET /account/v1/allowances`. */
133
+ export type ListAllowancesQuery = operations["list-allowances"]["parameters"]["query"];
134
+ /** The success response body of `GET /account/v1/orders`. */
135
+ export type ListOrdersResult = operations["list-orders"]["responses"][200]["content"]["application/json"];
136
+ /** The query parameters of `GET /account/v1/orders`. */
137
+ export type ListOrdersQuery = operations["list-orders"]["parameters"]["query"];
138
+ /** The success response body of `GET /account/v1/orders/{orderId}`. */
139
+ export type GetOrderResult = operations["get-order"]["responses"][200]["content"]["application/json"];
140
+ /** The success response body of `GET /account/v1/orders/{orderId}/items`. */
141
+ export type ListOrderItemsResult = operations["list-order-items"]["responses"][200]["content"]["application/json"];
142
+ /** The success response body of `GET /account/v1/entitlements`. */
143
+ export type ListEntitlementsResult = operations["list-entitlements"]["responses"][200]["content"]["application/json"];
144
+ /** The query parameters of `GET /account/v1/entitlements`. */
145
+ 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";