@leaflow/sdk 0.117.1 → 0.119.0
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/generated/functions.d.ts +27 -7
- package/dist/billing/v1/generated/functions.js +33 -13
- package/dist/billing/v1/generated/schemas.zod.d.ts +24 -1
- package/dist/billing/v1/generated/schemas.zod.js +24 -1
- package/dist/iam/v1/generated/functions.d.ts +22 -1
- package/dist/iam/v1/generated/functions.js +16 -0
- package/dist/iam/v1/generated/models.d.ts +11 -0
- package/dist/iam/v1/generated/validators/quotaListResponseBody.zod.d.ts +25 -0
- package/dist/iam/v1/generated/validators/quotaListResponseBody.zod.js +19 -0
- package/dist/iam/v1/generated/validators/quotaResource.zod.d.ts +23 -0
- package/dist/iam/v1/generated/validators/quotaResource.zod.js +21 -0
- package/dist/routes.d.ts +11 -3
- package/dist/routes.js +12 -3
- package/package.json +1 -1
|
@@ -29,6 +29,7 @@ export type listContactsResponseError = listContactsResponseDefault & {
|
|
|
29
29
|
export type listContactsResponse = listContactsResponseSuccess | listContactsResponseError;
|
|
30
30
|
export declare const getListContactsUrl: (accountId: number, params?: ListContactsParams) => string;
|
|
31
31
|
/**
|
|
32
|
+
* Paginated contact profiles belonging to the billing account in the path, including inactive contacts. Returns 404 if the account does not exist.
|
|
32
33
|
* @summary List contacts
|
|
33
34
|
*/
|
|
34
35
|
export declare const listContacts: (accountId: number, params?: ListContactsParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<listContactsResponse>;
|
|
@@ -49,6 +50,7 @@ export type createContactResponseError = createContactResponseDefault & {
|
|
|
49
50
|
export type createContactResponse = createContactResponseSuccess | createContactResponseError;
|
|
50
51
|
export declare const getCreateContactUrl: (accountId: number) => string;
|
|
51
52
|
/**
|
|
53
|
+
* Creates a contact profile for the billing account in the path. Creating a contact does not select it for invoicing; set the account invoice_contact_id separately.
|
|
52
54
|
* @summary Create contact
|
|
53
55
|
*/
|
|
54
56
|
export declare const createContact: (accountId: number, contactCreate: ContactCreate, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<createContactResponse>;
|
|
@@ -67,11 +69,12 @@ export type getContactResponseError = getContactResponseDefault & {
|
|
|
67
69
|
headers: Headers;
|
|
68
70
|
};
|
|
69
71
|
export type getContactResponse = getContactResponseSuccess | getContactResponseError;
|
|
70
|
-
export declare const getGetContactUrl: (contactId: string) => string;
|
|
72
|
+
export declare const getGetContactUrl: (accountId: number, contactId: string) => string;
|
|
71
73
|
/**
|
|
74
|
+
* Returns a contact belonging to this billing account. Returns 404 if the contact does not exist in this account.
|
|
72
75
|
* @summary Get contact
|
|
73
76
|
*/
|
|
74
|
-
export declare const getContact: (contactId: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<getContactResponse>;
|
|
77
|
+
export declare const getContact: (accountId: number, contactId: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<getContactResponse>;
|
|
75
78
|
export type updateContactResponse200 = {
|
|
76
79
|
data: Contact;
|
|
77
80
|
status: 200;
|
|
@@ -87,11 +90,12 @@ export type updateContactResponseError = updateContactResponseDefault & {
|
|
|
87
90
|
headers: Headers;
|
|
88
91
|
};
|
|
89
92
|
export type updateContactResponse = updateContactResponseSuccess | updateContactResponseError;
|
|
90
|
-
export declare const getUpdateContactUrl: (contactId: string) => string;
|
|
93
|
+
export declare const getUpdateContactUrl: (accountId: number, contactId: string) => string;
|
|
91
94
|
/**
|
|
95
|
+
* Updates a contact belonging to this billing account. Returns 404 if the contact does not exist in this account.
|
|
92
96
|
* @summary Update contact
|
|
93
97
|
*/
|
|
94
|
-
export declare const updateContact: (contactId: string, contactUpdate: ContactUpdate, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<updateContactResponse>;
|
|
98
|
+
export declare const updateContact: (accountId: number, contactId: string, contactUpdate: ContactUpdate, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<updateContactResponse>;
|
|
95
99
|
export type deleteContactResponse204 = {
|
|
96
100
|
data: void;
|
|
97
101
|
status: 204;
|
|
@@ -107,12 +111,12 @@ export type deleteContactResponseError = deleteContactResponseDefault & {
|
|
|
107
111
|
headers: Headers;
|
|
108
112
|
};
|
|
109
113
|
export type deleteContactResponse = deleteContactResponseSuccess | deleteContactResponseError;
|
|
110
|
-
export declare const getDeleteContactUrl: (contactId: string) => string;
|
|
114
|
+
export declare const getDeleteContactUrl: (accountId: number, contactId: string) => string;
|
|
111
115
|
/**
|
|
112
|
-
* The selected invoice contact must be cleared or replaced before deletion. Issued invoice snapshots are retained.
|
|
116
|
+
* Deletes a contact belonging to this billing account. Returns 404 if the contact does not exist in this account. The selected invoice contact must be cleared or replaced before deletion. Issued invoice snapshots are retained.
|
|
113
117
|
* @summary Delete contact
|
|
114
118
|
*/
|
|
115
|
-
export declare const deleteContact: (contactId: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<deleteContactResponse>;
|
|
119
|
+
export declare const deleteContact: (accountId: number, contactId: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<deleteContactResponse>;
|
|
116
120
|
export type listCurrenciesResponse200 = {
|
|
117
121
|
data: CurrencyList;
|
|
118
122
|
status: 200;
|
|
@@ -152,6 +156,7 @@ export type listBillingAccountsResponseError = listBillingAccountsResponseDefaul
|
|
|
152
156
|
export type listBillingAccountsResponse = listBillingAccountsResponseSuccess | listBillingAccountsResponseError;
|
|
153
157
|
export declare const getListBillingAccountsUrl: (params?: ListBillingAccountsParams) => string;
|
|
154
158
|
/**
|
|
159
|
+
* Paginated billing accounts owned by the authenticated user. Accounts owned by other users are excluded; the result is empty when the user owns none.
|
|
155
160
|
* @summary List billing accounts
|
|
156
161
|
*/
|
|
157
162
|
export declare const listBillingAccounts: (params?: ListBillingAccountsParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<listBillingAccountsResponse>;
|
|
@@ -196,6 +201,7 @@ export type getBillingAccountResponseError = getBillingAccountResponseDefault &
|
|
|
196
201
|
export type getBillingAccountResponse = getBillingAccountResponseSuccess | getBillingAccountResponseError;
|
|
197
202
|
export declare const getGetBillingAccountUrl: (accountId: number) => string;
|
|
198
203
|
/**
|
|
204
|
+
* Returns an owned account settlement currency, lifecycle state and selected invoice contact. Returns 404 if the account does not exist and 403 if it belongs to another user.
|
|
199
205
|
* @summary Get billing account
|
|
200
206
|
*/
|
|
201
207
|
export declare const getBillingAccount: (accountId: number, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<getBillingAccountResponse>;
|
|
@@ -239,6 +245,7 @@ export type getAccountBalanceResponseError = getAccountBalanceResponseDefault &
|
|
|
239
245
|
export type getAccountBalanceResponse = getAccountBalanceResponseSuccess | getAccountBalanceResponseError;
|
|
240
246
|
export declare const getGetAccountBalanceUrl: (accountId: number) => string;
|
|
241
247
|
/**
|
|
248
|
+
* Returns the owned account balance, applicable credit groups, unpaid invoice amounts, unbilled estimates and pending returns separately. Returns 404 for a missing account and 403 for an account owned by another user.
|
|
242
249
|
* @summary Get account balance
|
|
243
250
|
*/
|
|
244
251
|
export declare const getAccountBalance: (accountId: number, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<getAccountBalanceResponse>;
|
|
@@ -283,6 +290,7 @@ export type listProjectAssignmentsResponseError = listProjectAssignmentsResponse
|
|
|
283
290
|
export type listProjectAssignmentsResponse = listProjectAssignmentsResponseSuccess | listProjectAssignmentsResponseError;
|
|
284
291
|
export declare const getListProjectAssignmentsUrl: (params?: ListProjectAssignmentsParams) => string;
|
|
285
292
|
/**
|
|
293
|
+
* Paginated current project assignments to accounts owned by the authenticated user. Filter by billing_account_id or project_ids; historical financial records keep their original account assignment.
|
|
286
294
|
* @summary List project assignments
|
|
287
295
|
*/
|
|
288
296
|
export declare const listProjectAssignments: (params?: ListProjectAssignmentsParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<listProjectAssignmentsResponse>;
|
|
@@ -493,6 +501,7 @@ export type listPaymentMethodsResponseError = listPaymentMethodsResponseDefault
|
|
|
493
501
|
export type listPaymentMethodsResponse = listPaymentMethodsResponseSuccess | listPaymentMethodsResponseError;
|
|
494
502
|
export declare const getListPaymentMethodsUrl: (params?: ListPaymentMethodsParams) => string;
|
|
495
503
|
/**
|
|
504
|
+
* Paginated saved payment methods for owned billing accounts, optionally restricted to billing_account_id. Removed methods are excluded; they do not disappear from historical payment records.
|
|
496
505
|
* @summary List payment methods
|
|
497
506
|
*/
|
|
498
507
|
export declare const listPaymentMethods: (params?: ListPaymentMethodsParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<listPaymentMethodsResponse>;
|
|
@@ -538,6 +547,7 @@ export type setDefaultPaymentMethodResponseError = setDefaultPaymentMethodRespon
|
|
|
538
547
|
export type setDefaultPaymentMethodResponse = setDefaultPaymentMethodResponseSuccess | setDefaultPaymentMethodResponseError;
|
|
539
548
|
export declare const getSetDefaultPaymentMethodUrl: (paymentMethodId: string) => string;
|
|
540
549
|
/**
|
|
550
|
+
* Selects an active saved payment method as the default for its owned billing account and returns it. Expired or removed methods cannot be selected; selecting the current default is idempotent.
|
|
541
551
|
* @summary Set default payment method
|
|
542
552
|
*/
|
|
543
553
|
export declare const setDefaultPaymentMethod: (paymentMethodId: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<setDefaultPaymentMethodResponse>;
|
|
@@ -699,6 +709,7 @@ export type listInvoicesResponseError = listInvoicesResponseDefault & {
|
|
|
699
709
|
export type listInvoicesResponse = listInvoicesResponseSuccess | listInvoicesResponseError;
|
|
700
710
|
export declare const getListInvoicesUrl: (params?: ListInvoicesParams) => string;
|
|
701
711
|
/**
|
|
712
|
+
* Paginated issued invoices belonging to owned billing accounts, filtered by billing_account_id, status and creation interval. Drafts are excluded; top-ups do not create invoices.
|
|
702
713
|
* @summary List invoices
|
|
703
714
|
*/
|
|
704
715
|
export declare const listInvoices: (params?: ListInvoicesParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<listInvoicesResponse>;
|
|
@@ -719,6 +730,7 @@ export type getInvoiceResponseError = getInvoiceResponseDefault & {
|
|
|
719
730
|
export type getInvoiceResponse = getInvoiceResponseSuccess | getInvoiceResponseError;
|
|
720
731
|
export declare const getGetInvoiceUrl: (invoiceId: string) => string;
|
|
721
732
|
/**
|
|
733
|
+
* Returns an issued invoice for an owned billing account with its amounts, tax lines and payment state. Returns 404 for a missing or unissued invoice and 403 when its account belongs to another user.
|
|
722
734
|
* @summary Get invoice
|
|
723
735
|
*/
|
|
724
736
|
export declare const getInvoice: (invoiceId: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<getInvoiceResponse>;
|
|
@@ -739,6 +751,7 @@ export type listInvoiceItemsResponseError = listInvoiceItemsResponseDefault & {
|
|
|
739
751
|
export type listInvoiceItemsResponse = listInvoiceItemsResponseSuccess | listInvoiceItemsResponseError;
|
|
740
752
|
export declare const getListInvoiceItemsUrl: (invoiceId: string, params?: ListInvoiceItemsParams) => string;
|
|
741
753
|
/**
|
|
754
|
+
* Paginated lines of an issued invoice belonging to an owned billing account, including their service periods and project references. A missing or unissued invoice returns 404; another user account returns 403.
|
|
742
755
|
* @summary List invoice items
|
|
743
756
|
*/
|
|
744
757
|
export declare const listInvoiceItems: (invoiceId: string, params?: ListInvoiceItemsParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<listInvoiceItemsResponse>;
|
|
@@ -759,6 +772,7 @@ export type listTransactionsResponseError = listTransactionsResponseDefault & {
|
|
|
759
772
|
export type listTransactionsResponse = listTransactionsResponseSuccess | listTransactionsResponseError;
|
|
760
773
|
export declare const getListTransactionsUrl: (params?: ListTransactionsParams) => string;
|
|
761
774
|
/**
|
|
775
|
+
* Paginated ledger entries for owned billing accounts, optionally filtered by billing_account_id and creation interval. Each entry retains its amount, currency and any referenced credit grant.
|
|
762
776
|
* @summary List transactions
|
|
763
777
|
*/
|
|
764
778
|
export declare const listTransactions: (params?: ListTransactionsParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<listTransactionsResponse>;
|
|
@@ -1143,6 +1157,7 @@ export type getCancellationResponseError = getCancellationResponseDefault & {
|
|
|
1143
1157
|
export type getCancellationResponse = getCancellationResponseSuccess | getCancellationResponseError;
|
|
1144
1158
|
export declare const getGetCancellationUrl: (cancellationId: string) => string;
|
|
1145
1159
|
/**
|
|
1160
|
+
* Returns a cancellation request for an authorized billing account with its schedule, expected refundable amount and individual subscription outcomes. Read individual item states for per-subscription outcomes, including partial success.
|
|
1146
1161
|
* @summary Get a cancellation
|
|
1147
1162
|
*/
|
|
1148
1163
|
export declare const getCancellation: (cancellationId: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<getCancellationResponse>;
|
|
@@ -1354,6 +1369,7 @@ export type getOrderResponseError = getOrderResponseDefault & {
|
|
|
1354
1369
|
export type getOrderResponse = getOrderResponseSuccess | getOrderResponseError;
|
|
1355
1370
|
export declare const getGetOrderUrl: (orderId: string) => string;
|
|
1356
1371
|
/**
|
|
1372
|
+
* Returns an order charged to an owned billing account with its commercial state and invoice reference. An unknown order returns 404; an order on another user account is forbidden.
|
|
1357
1373
|
* @summary Get order
|
|
1358
1374
|
*/
|
|
1359
1375
|
export declare const getOrder: (orderId: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<getOrderResponse>;
|
|
@@ -1550,6 +1566,7 @@ export type listProductsResponseError = (listProductsResponse304 | listProductsR
|
|
|
1550
1566
|
export type listProductsResponse = listProductsResponseSuccess | listProductsResponseError;
|
|
1551
1567
|
export declare const getListProductsUrl: (params?: ListProductsParams) => string;
|
|
1552
1568
|
/**
|
|
1569
|
+
* Paginated registered catalog products with their service identities and descriptions. Supports If- None-Match and returns 304 when the selected page has not changed.
|
|
1553
1570
|
* @summary List catalog products
|
|
1554
1571
|
*/
|
|
1555
1572
|
export declare const listProducts: (params?: ListProductsParams, headers?: ListProductsHeaders, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<listProductsResponse>;
|
|
@@ -1651,6 +1668,7 @@ export type listPlansResponseError = (listPlansResponse304 | listPlansResponseDe
|
|
|
1651
1668
|
export type listPlansResponse = listPlansResponseSuccess | listPlansResponseError;
|
|
1652
1669
|
export declare const getListPlansUrl: (params: ListPlansParams) => string;
|
|
1653
1670
|
/**
|
|
1671
|
+
* Paginated active plans for the required product_id, with their feature allocations. An unknown product returns 404; If-None-Match can return 304 for an unchanged page.
|
|
1654
1672
|
* @summary List catalog plans
|
|
1655
1673
|
*/
|
|
1656
1674
|
export declare const listPlans: (params: ListPlansParams, headers?: ListPlansHeaders, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<listPlansResponse>;
|
|
@@ -1771,6 +1789,7 @@ export type listStatementsResponseError = listStatementsResponseDefault & {
|
|
|
1771
1789
|
export type listStatementsResponse = listStatementsResponseSuccess | listStatementsResponseError;
|
|
1772
1790
|
export declare const getListStatementsUrl: (params?: ListStatementsParams) => string;
|
|
1773
1791
|
/**
|
|
1792
|
+
* Paginated consumption statement batches for owned billing accounts, filtered by billing_account_id, open or closed state and period-start interval. A closed batch is not proof that the whole month has finished.
|
|
1774
1793
|
* @summary List statements
|
|
1775
1794
|
*/
|
|
1776
1795
|
export declare const listStatements: (params?: ListStatementsParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<listStatementsResponse>;
|
|
@@ -1791,6 +1810,7 @@ export type getStatementResponseError = getStatementResponseDefault & {
|
|
|
1791
1810
|
export type getStatementResponse = getStatementResponseSuccess | getStatementResponseError;
|
|
1792
1811
|
export declare const getGetStatementUrl: (statementId: string) => string;
|
|
1793
1812
|
/**
|
|
1813
|
+
* Returns an owned-account consumption batch with its period, estimated or closed amounts and invoice reference. Returns 404 for a missing batch and 403 when the billing account belongs to another user.
|
|
1794
1814
|
* @summary Get statement
|
|
1795
1815
|
*/
|
|
1796
1816
|
export declare const getStatement: (statementId: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<getStatementResponse>;
|
|
@@ -11,6 +11,7 @@ export const getListContactsUrl = (accountId, params) => {
|
|
|
11
11
|
: `https://billing.leaflow.cloud/api/v1/billing-accounts/${encodeURIComponent(String(accountId))}/contacts`;
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
|
+
* Paginated contact profiles belonging to the billing account in the path, including inactive contacts. Returns 404 if the account does not exist.
|
|
14
15
|
* @summary List contacts
|
|
15
16
|
*/
|
|
16
17
|
export const listContacts = async (accountId, params, options, fetchFn) => {
|
|
@@ -26,6 +27,7 @@ export const getCreateContactUrl = (accountId) => {
|
|
|
26
27
|
return `https://billing.leaflow.cloud/api/v1/billing-accounts/${encodeURIComponent(String(accountId))}/contacts`;
|
|
27
28
|
};
|
|
28
29
|
/**
|
|
30
|
+
* Creates a contact profile for the billing account in the path. Creating a contact does not select it for invoicing; set the account invoice_contact_id separately.
|
|
29
31
|
* @summary Create contact
|
|
30
32
|
*/
|
|
31
33
|
export const createContact = async (accountId, contactCreate, options, fetchFn) => {
|
|
@@ -54,14 +56,15 @@ export const createContact = async (accountId, contactCreate, options, fetchFn)
|
|
|
54
56
|
const data = body ? JSON.parse(body) : {};
|
|
55
57
|
return { data, status: res.status, headers: res.headers };
|
|
56
58
|
};
|
|
57
|
-
export const getGetContactUrl = (contactId) => {
|
|
58
|
-
return `https://billing.leaflow.cloud/api/v1/contacts/${encodeURIComponent(String(contactId))}`;
|
|
59
|
+
export const getGetContactUrl = (accountId, contactId) => {
|
|
60
|
+
return `https://billing.leaflow.cloud/api/v1/billing-accounts/${encodeURIComponent(String(accountId))}/contacts/${encodeURIComponent(String(contactId))}`;
|
|
59
61
|
};
|
|
60
62
|
/**
|
|
63
|
+
* Returns a contact belonging to this billing account. Returns 404 if the contact does not exist in this account.
|
|
61
64
|
* @summary Get contact
|
|
62
65
|
*/
|
|
63
|
-
export const getContact = async (contactId, options, fetchFn) => {
|
|
64
|
-
const res = await (fetchFn ?? fetch)(getGetContactUrl(contactId), {
|
|
66
|
+
export const getContact = async (accountId, contactId, options, fetchFn) => {
|
|
67
|
+
const res = await (fetchFn ?? fetch)(getGetContactUrl(accountId, contactId), {
|
|
65
68
|
...options,
|
|
66
69
|
method: "GET",
|
|
67
70
|
});
|
|
@@ -69,13 +72,14 @@ export const getContact = async (contactId, options, fetchFn) => {
|
|
|
69
72
|
const data = body ? JSON.parse(body) : {};
|
|
70
73
|
return { data, status: res.status, headers: res.headers };
|
|
71
74
|
};
|
|
72
|
-
export const getUpdateContactUrl = (contactId) => {
|
|
73
|
-
return `https://billing.leaflow.cloud/api/v1/contacts/${encodeURIComponent(String(contactId))}`;
|
|
75
|
+
export const getUpdateContactUrl = (accountId, contactId) => {
|
|
76
|
+
return `https://billing.leaflow.cloud/api/v1/billing-accounts/${encodeURIComponent(String(accountId))}/contacts/${encodeURIComponent(String(contactId))}`;
|
|
74
77
|
};
|
|
75
78
|
/**
|
|
79
|
+
* Updates a contact belonging to this billing account. Returns 404 if the contact does not exist in this account.
|
|
76
80
|
* @summary Update contact
|
|
77
81
|
*/
|
|
78
|
-
export const updateContact = async (contactId, contactUpdate, options, fetchFn) => {
|
|
82
|
+
export const updateContact = async (accountId, contactId, contactUpdate, options, fetchFn) => {
|
|
79
83
|
const getHeaders = (h) => {
|
|
80
84
|
if (!h)
|
|
81
85
|
return {};
|
|
@@ -91,7 +95,7 @@ export const updateContact = async (contactId, contactUpdate, options, fetchFn)
|
|
|
91
95
|
}
|
|
92
96
|
return headers;
|
|
93
97
|
};
|
|
94
|
-
const res = await (fetchFn ?? fetch)(getUpdateContactUrl(contactId), {
|
|
98
|
+
const res = await (fetchFn ?? fetch)(getUpdateContactUrl(accountId, contactId), {
|
|
95
99
|
...options,
|
|
96
100
|
method: "PATCH",
|
|
97
101
|
headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
|
|
@@ -101,15 +105,15 @@ export const updateContact = async (contactId, contactUpdate, options, fetchFn)
|
|
|
101
105
|
const data = body ? JSON.parse(body) : {};
|
|
102
106
|
return { data, status: res.status, headers: res.headers };
|
|
103
107
|
};
|
|
104
|
-
export const getDeleteContactUrl = (contactId) => {
|
|
105
|
-
return `https://billing.leaflow.cloud/api/v1/contacts/${encodeURIComponent(String(contactId))}`;
|
|
108
|
+
export const getDeleteContactUrl = (accountId, contactId) => {
|
|
109
|
+
return `https://billing.leaflow.cloud/api/v1/billing-accounts/${encodeURIComponent(String(accountId))}/contacts/${encodeURIComponent(String(contactId))}`;
|
|
106
110
|
};
|
|
107
111
|
/**
|
|
108
|
-
* The selected invoice contact must be cleared or replaced before deletion. Issued invoice snapshots are retained.
|
|
112
|
+
* Deletes a contact belonging to this billing account. Returns 404 if the contact does not exist in this account. The selected invoice contact must be cleared or replaced before deletion. Issued invoice snapshots are retained.
|
|
109
113
|
* @summary Delete contact
|
|
110
114
|
*/
|
|
111
|
-
export const deleteContact = async (contactId, options, fetchFn) => {
|
|
112
|
-
const res = await (fetchFn ?? fetch)(getDeleteContactUrl(contactId), {
|
|
115
|
+
export const deleteContact = async (accountId, contactId, options, fetchFn) => {
|
|
116
|
+
const res = await (fetchFn ?? fetch)(getDeleteContactUrl(accountId, contactId), {
|
|
113
117
|
...options,
|
|
114
118
|
method: "DELETE",
|
|
115
119
|
});
|
|
@@ -156,6 +160,7 @@ export const getListBillingAccountsUrl = (params) => {
|
|
|
156
160
|
: `https://billing.leaflow.cloud/api/v1/billing-accounts`;
|
|
157
161
|
};
|
|
158
162
|
/**
|
|
163
|
+
* Paginated billing accounts owned by the authenticated user. Accounts owned by other users are excluded; the result is empty when the user owns none.
|
|
159
164
|
* @summary List billing accounts
|
|
160
165
|
*/
|
|
161
166
|
export const listBillingAccounts = async (params, options, fetchFn) => {
|
|
@@ -207,6 +212,7 @@ export const getGetBillingAccountUrl = (accountId) => {
|
|
|
207
212
|
return `https://billing.leaflow.cloud/api/v1/billing-accounts/${encodeURIComponent(String(accountId))}`;
|
|
208
213
|
};
|
|
209
214
|
/**
|
|
215
|
+
* Returns an owned account settlement currency, lifecycle state and selected invoice contact. Returns 404 if the account does not exist and 403 if it belongs to another user.
|
|
210
216
|
* @summary Get billing account
|
|
211
217
|
*/
|
|
212
218
|
export const getBillingAccount = async (accountId, options, fetchFn) => {
|
|
@@ -257,6 +263,7 @@ export const getGetAccountBalanceUrl = (accountId) => {
|
|
|
257
263
|
return `https://billing.leaflow.cloud/api/v1/billing-accounts/${encodeURIComponent(String(accountId))}/balance`;
|
|
258
264
|
};
|
|
259
265
|
/**
|
|
266
|
+
* Returns the owned account balance, applicable credit groups, unpaid invoice amounts, unbilled estimates and pending returns separately. Returns 404 for a missing account and 403 for an account owned by another user.
|
|
260
267
|
* @summary Get account balance
|
|
261
268
|
*/
|
|
262
269
|
export const getAccountBalance = async (accountId, options, fetchFn) => {
|
|
@@ -309,6 +316,7 @@ export const getListProjectAssignmentsUrl = (params) => {
|
|
|
309
316
|
: `https://billing.leaflow.cloud/api/v1/assignments`;
|
|
310
317
|
};
|
|
311
318
|
/**
|
|
319
|
+
* Paginated current project assignments to accounts owned by the authenticated user. Filter by billing_account_id or project_ids; historical financial records keep their original account assignment.
|
|
312
320
|
* @summary List project assignments
|
|
313
321
|
*/
|
|
314
322
|
export const listProjectAssignments = async (params, options, fetchFn) => {
|
|
@@ -527,6 +535,7 @@ export const getListPaymentMethodsUrl = (params) => {
|
|
|
527
535
|
: `https://billing.leaflow.cloud/api/v1/payment-methods`;
|
|
528
536
|
};
|
|
529
537
|
/**
|
|
538
|
+
* Paginated saved payment methods for owned billing accounts, optionally restricted to billing_account_id. Removed methods are excluded; they do not disappear from historical payment records.
|
|
530
539
|
* @summary List payment methods
|
|
531
540
|
*/
|
|
532
541
|
export const listPaymentMethods = async (params, options, fetchFn) => {
|
|
@@ -579,6 +588,7 @@ export const getSetDefaultPaymentMethodUrl = (paymentMethodId) => {
|
|
|
579
588
|
return `https://billing.leaflow.cloud/api/v1/payment-methods/${encodeURIComponent(String(paymentMethodId))}/default`;
|
|
580
589
|
};
|
|
581
590
|
/**
|
|
591
|
+
* Selects an active saved payment method as the default for its owned billing account and returns it. Expired or removed methods cannot be selected; selecting the current default is idempotent.
|
|
582
592
|
* @summary Set default payment method
|
|
583
593
|
*/
|
|
584
594
|
export const setDefaultPaymentMethod = async (paymentMethodId, options, fetchFn) => {
|
|
@@ -779,6 +789,7 @@ export const getListInvoicesUrl = (params) => {
|
|
|
779
789
|
: `https://billing.leaflow.cloud/api/v1/invoices`;
|
|
780
790
|
};
|
|
781
791
|
/**
|
|
792
|
+
* Paginated issued invoices belonging to owned billing accounts, filtered by billing_account_id, status and creation interval. Drafts are excluded; top-ups do not create invoices.
|
|
782
793
|
* @summary List invoices
|
|
783
794
|
*/
|
|
784
795
|
export const listInvoices = async (params, options, fetchFn) => {
|
|
@@ -794,6 +805,7 @@ export const getGetInvoiceUrl = (invoiceId) => {
|
|
|
794
805
|
return `https://billing.leaflow.cloud/api/v1/invoices/${encodeURIComponent(String(invoiceId))}`;
|
|
795
806
|
};
|
|
796
807
|
/**
|
|
808
|
+
* Returns an issued invoice for an owned billing account with its amounts, tax lines and payment state. Returns 404 for a missing or unissued invoice and 403 when its account belongs to another user.
|
|
797
809
|
* @summary Get invoice
|
|
798
810
|
*/
|
|
799
811
|
export const getInvoice = async (invoiceId, options, fetchFn) => {
|
|
@@ -818,6 +830,7 @@ export const getListInvoiceItemsUrl = (invoiceId, params) => {
|
|
|
818
830
|
: `https://billing.leaflow.cloud/api/v1/invoices/${encodeURIComponent(String(invoiceId))}/items`;
|
|
819
831
|
};
|
|
820
832
|
/**
|
|
833
|
+
* Paginated lines of an issued invoice belonging to an owned billing account, including their service periods and project references. A missing or unissued invoice returns 404; another user account returns 403.
|
|
821
834
|
* @summary List invoice items
|
|
822
835
|
*/
|
|
823
836
|
export const listInvoiceItems = async (invoiceId, params, options, fetchFn) => {
|
|
@@ -842,6 +855,7 @@ export const getListTransactionsUrl = (params) => {
|
|
|
842
855
|
: `https://billing.leaflow.cloud/api/v1/transactions`;
|
|
843
856
|
};
|
|
844
857
|
/**
|
|
858
|
+
* Paginated ledger entries for owned billing accounts, optionally filtered by billing_account_id and creation interval. Each entry retains its amount, currency and any referenced credit grant.
|
|
845
859
|
* @summary List transactions
|
|
846
860
|
*/
|
|
847
861
|
export const listTransactions = async (params, options, fetchFn) => {
|
|
@@ -1270,6 +1284,7 @@ export const getGetCancellationUrl = (cancellationId) => {
|
|
|
1270
1284
|
return `https://billing.leaflow.cloud/api/v1/cancellations/${encodeURIComponent(String(cancellationId))}`;
|
|
1271
1285
|
};
|
|
1272
1286
|
/**
|
|
1287
|
+
* Returns a cancellation request for an authorized billing account with its schedule, expected refundable amount and individual subscription outcomes. Read individual item states for per-subscription outcomes, including partial success.
|
|
1273
1288
|
* @summary Get a cancellation
|
|
1274
1289
|
*/
|
|
1275
1290
|
export const getCancellation = async (cancellationId, options, fetchFn) => {
|
|
@@ -1511,6 +1526,7 @@ export const getGetOrderUrl = (orderId) => {
|
|
|
1511
1526
|
return `https://billing.leaflow.cloud/api/v1/orders/${encodeURIComponent(String(orderId))}`;
|
|
1512
1527
|
};
|
|
1513
1528
|
/**
|
|
1529
|
+
* Returns an order charged to an owned billing account with its commercial state and invoice reference. An unknown order returns 404; an order on another user account is forbidden.
|
|
1514
1530
|
* @summary Get order
|
|
1515
1531
|
*/
|
|
1516
1532
|
export const getOrder = async (orderId, options, fetchFn) => {
|
|
@@ -1747,6 +1763,7 @@ export const getListProductsUrl = (params) => {
|
|
|
1747
1763
|
: `https://billing.leaflow.cloud/api/v1/products`;
|
|
1748
1764
|
};
|
|
1749
1765
|
/**
|
|
1766
|
+
* Paginated registered catalog products with their service identities and descriptions. Supports If- None-Match and returns 304 when the selected page has not changed.
|
|
1750
1767
|
* @summary List catalog products
|
|
1751
1768
|
*/
|
|
1752
1769
|
export const listProducts = async (params, headers, options, fetchFn) => {
|
|
@@ -1885,6 +1902,7 @@ export const getListPlansUrl = (params) => {
|
|
|
1885
1902
|
: `https://billing.leaflow.cloud/api/v1/plans`;
|
|
1886
1903
|
};
|
|
1887
1904
|
/**
|
|
1905
|
+
* Paginated active plans for the required product_id, with their feature allocations. An unknown product returns 404; If-None-Match can return 304 for an unchanged page.
|
|
1888
1906
|
* @summary List catalog plans
|
|
1889
1907
|
*/
|
|
1890
1908
|
export const listPlans = async (params, headers, options, fetchFn) => {
|
|
@@ -2065,6 +2083,7 @@ export const getListStatementsUrl = (params) => {
|
|
|
2065
2083
|
: `https://billing.leaflow.cloud/api/v1/statements`;
|
|
2066
2084
|
};
|
|
2067
2085
|
/**
|
|
2086
|
+
* Paginated consumption statement batches for owned billing accounts, filtered by billing_account_id, open or closed state and period-start interval. A closed batch is not proof that the whole month has finished.
|
|
2068
2087
|
* @summary List statements
|
|
2069
2088
|
*/
|
|
2070
2089
|
export const listStatements = async (params, options, fetchFn) => {
|
|
@@ -2080,6 +2099,7 @@ export const getGetStatementUrl = (statementId) => {
|
|
|
2080
2099
|
return `https://billing.leaflow.cloud/api/v1/statements/${encodeURIComponent(String(statementId))}`;
|
|
2081
2100
|
};
|
|
2082
2101
|
/**
|
|
2102
|
+
* Returns an owned-account consumption batch with its period, estimated or closed amounts and invoice reference. Returns 404 for a missing batch and 403 when the billing account belongs to another user.
|
|
2083
2103
|
* @summary Get statement
|
|
2084
2104
|
*/
|
|
2085
2105
|
export const getStatement = async (statementId, options, fetchFn) => {
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
/**
|
|
10
|
+
* Paginated contact profiles belonging to the billing account in the path, including inactive contacts. Returns 404 if the account does not exist.
|
|
10
11
|
* @summary List contacts
|
|
11
12
|
*/
|
|
12
13
|
export declare const ListContactsParams: zod.ZodObject<{
|
|
@@ -21,6 +22,7 @@ export declare const ListContactsQueryParams: zod.ZodObject<{
|
|
|
21
22
|
page_size: zod.ZodDefault<zod.ZodInt>;
|
|
22
23
|
}, zod.z.core.$strict>;
|
|
23
24
|
/**
|
|
25
|
+
* Creates a contact profile for the billing account in the path. Creating a contact does not select it for invoicing; set the account invoice_contact_id separately.
|
|
24
26
|
* @summary Create contact
|
|
25
27
|
*/
|
|
26
28
|
export declare const CreateContactParams: zod.ZodObject<{
|
|
@@ -39,15 +41,19 @@ export declare const CreateContactBody: zod.ZodObject<{
|
|
|
39
41
|
address_country: zod.ZodOptional<zod.ZodString>;
|
|
40
42
|
}, zod.z.core.$strict>;
|
|
41
43
|
/**
|
|
44
|
+
* Returns a contact belonging to this billing account. Returns 404 if the contact does not exist in this account.
|
|
42
45
|
* @summary Get contact
|
|
43
46
|
*/
|
|
44
47
|
export declare const GetContactParams: zod.ZodObject<{
|
|
48
|
+
accountId: zod.ZodInt;
|
|
45
49
|
contactId: zod.ZodUUID;
|
|
46
50
|
}, zod.z.core.$strict>;
|
|
47
51
|
/**
|
|
52
|
+
* Updates a contact belonging to this billing account. Returns 404 if the contact does not exist in this account.
|
|
48
53
|
* @summary Update contact
|
|
49
54
|
*/
|
|
50
55
|
export declare const UpdateContactParams: zod.ZodObject<{
|
|
56
|
+
accountId: zod.ZodInt;
|
|
51
57
|
contactId: zod.ZodUUID;
|
|
52
58
|
}, zod.z.core.$strict>;
|
|
53
59
|
export declare const UpdateContactBody: zod.ZodObject<{
|
|
@@ -64,10 +70,11 @@ export declare const UpdateContactBody: zod.ZodObject<{
|
|
|
64
70
|
active: zod.ZodOptional<zod.ZodBoolean>;
|
|
65
71
|
}, zod.z.core.$strict>;
|
|
66
72
|
/**
|
|
67
|
-
* The selected invoice contact must be cleared or replaced before deletion. Issued invoice snapshots are retained.
|
|
73
|
+
* Deletes a contact belonging to this billing account. Returns 404 if the contact does not exist in this account. The selected invoice contact must be cleared or replaced before deletion. Issued invoice snapshots are retained.
|
|
68
74
|
* @summary Delete contact
|
|
69
75
|
*/
|
|
70
76
|
export declare const DeleteContactParams: zod.ZodObject<{
|
|
77
|
+
accountId: zod.ZodInt;
|
|
71
78
|
contactId: zod.ZodUUID;
|
|
72
79
|
}, zod.z.core.$strict>;
|
|
73
80
|
/**
|
|
@@ -84,6 +91,7 @@ export declare const ListCurrenciesQueryParams: zod.ZodObject<{
|
|
|
84
91
|
page_size: zod.ZodDefault<zod.ZodInt>;
|
|
85
92
|
}, zod.z.core.$strict>;
|
|
86
93
|
/**
|
|
94
|
+
* Paginated billing accounts owned by the authenticated user. Accounts owned by other users are excluded; the result is empty when the user owns none.
|
|
87
95
|
* @summary List billing accounts
|
|
88
96
|
*/
|
|
89
97
|
export declare const listBillingAccountsQueryPageDefault = 1;
|
|
@@ -106,6 +114,7 @@ export declare const CreateBillingAccountBody: zod.ZodObject<{
|
|
|
106
114
|
name: zod.ZodOptional<zod.ZodString>;
|
|
107
115
|
}, zod.z.core.$strict>;
|
|
108
116
|
/**
|
|
117
|
+
* Returns an owned account settlement currency, lifecycle state and selected invoice contact. Returns 404 if the account does not exist and 403 if it belongs to another user.
|
|
109
118
|
* @summary Get billing account
|
|
110
119
|
*/
|
|
111
120
|
export declare const GetBillingAccountParams: zod.ZodObject<{
|
|
@@ -125,6 +134,7 @@ export declare const UpdateBillingAccountBody: zod.ZodObject<{
|
|
|
125
134
|
name: zod.ZodOptional<zod.ZodString>;
|
|
126
135
|
}, zod.z.core.$strict>;
|
|
127
136
|
/**
|
|
137
|
+
* Returns the owned account balance, applicable credit groups, unpaid invoice amounts, unbilled estimates and pending returns separately. Returns 404 for a missing account and 403 for an account owned by another user.
|
|
128
138
|
* @summary Get account balance
|
|
129
139
|
*/
|
|
130
140
|
export declare const GetAccountBalanceParams: zod.ZodObject<{
|
|
@@ -149,6 +159,7 @@ export declare const ListPaymentOptionsQueryParams: zod.ZodObject<{
|
|
|
149
159
|
page_size: zod.ZodDefault<zod.ZodInt>;
|
|
150
160
|
}, zod.z.core.$strict>;
|
|
151
161
|
/**
|
|
162
|
+
* Paginated current project assignments to accounts owned by the authenticated user. Filter by billing_account_id or project_ids; historical financial records keep their original account assignment.
|
|
152
163
|
* @summary List project assignments
|
|
153
164
|
*/
|
|
154
165
|
export declare const listProjectAssignmentsQueryPageDefault = 1;
|
|
@@ -266,6 +277,7 @@ export declare const CancelTopUpParams: zod.ZodObject<{
|
|
|
266
277
|
topUpId: zod.ZodUUID;
|
|
267
278
|
}, zod.z.core.$strict>;
|
|
268
279
|
/**
|
|
280
|
+
* Paginated saved payment methods for owned billing accounts, optionally restricted to billing_account_id. Removed methods are excluded; they do not disappear from historical payment records.
|
|
269
281
|
* @summary List payment methods
|
|
270
282
|
*/
|
|
271
283
|
export declare const listPaymentMethodsQueryPageDefault = 1;
|
|
@@ -290,6 +302,7 @@ export declare const CreatePaymentMethodSetupBody: zod.ZodObject<{
|
|
|
290
302
|
billing_account_id: zod.ZodInt;
|
|
291
303
|
}, zod.z.core.$strict>;
|
|
292
304
|
/**
|
|
305
|
+
* Selects an active saved payment method as the default for its owned billing account and returns it. Expired or removed methods cannot be selected; selecting the current default is idempotent.
|
|
293
306
|
* @summary Set default payment method
|
|
294
307
|
*/
|
|
295
308
|
export declare const SetDefaultPaymentMethodParams: zod.ZodObject<{
|
|
@@ -383,6 +396,7 @@ export declare const PreviewPayTogetherBody: zod.ZodObject<{
|
|
|
383
396
|
order_ids: zod.ZodOptional<zod.ZodArray<zod.ZodUUID>>;
|
|
384
397
|
}, zod.z.core.$strict>;
|
|
385
398
|
/**
|
|
399
|
+
* Paginated issued invoices belonging to owned billing accounts, filtered by billing_account_id, status and creation interval. Drafts are excluded; top-ups do not create invoices.
|
|
386
400
|
* @summary List invoices
|
|
387
401
|
*/
|
|
388
402
|
export declare const listInvoicesQueryPageDefault = 1;
|
|
@@ -405,12 +419,14 @@ export declare const ListInvoicesQueryParams: zod.ZodObject<{
|
|
|
405
419
|
to: zod.ZodOptional<zod.z.ZodISODateTime>;
|
|
406
420
|
}, zod.z.core.$strict>;
|
|
407
421
|
/**
|
|
422
|
+
* Returns an issued invoice for an owned billing account with its amounts, tax lines and payment state. Returns 404 for a missing or unissued invoice and 403 when its account belongs to another user.
|
|
408
423
|
* @summary Get invoice
|
|
409
424
|
*/
|
|
410
425
|
export declare const GetInvoiceParams: zod.ZodObject<{
|
|
411
426
|
invoiceId: zod.ZodUUID;
|
|
412
427
|
}, zod.z.core.$strict>;
|
|
413
428
|
/**
|
|
429
|
+
* Paginated lines of an issued invoice belonging to an owned billing account, including their service periods and project references. A missing or unissued invoice returns 404; another user account returns 403.
|
|
414
430
|
* @summary List invoice items
|
|
415
431
|
*/
|
|
416
432
|
export declare const ListInvoiceItemsParams: zod.ZodObject<{
|
|
@@ -425,6 +441,7 @@ export declare const ListInvoiceItemsQueryParams: zod.ZodObject<{
|
|
|
425
441
|
page_size: zod.ZodDefault<zod.ZodInt>;
|
|
426
442
|
}, zod.z.core.$strict>;
|
|
427
443
|
/**
|
|
444
|
+
* Paginated ledger entries for owned billing accounts, optionally filtered by billing_account_id and creation interval. Each entry retains its amount, currency and any referenced credit grant.
|
|
428
445
|
* @summary List transactions
|
|
429
446
|
*/
|
|
430
447
|
export declare const listTransactionsQueryPageDefault = 1;
|
|
@@ -760,6 +777,7 @@ export declare const CreateCancellationBody: zod.ZodObject<{
|
|
|
760
777
|
reason: zod.ZodOptional<zod.ZodString>;
|
|
761
778
|
}, zod.z.core.$strict>;
|
|
762
779
|
/**
|
|
780
|
+
* Returns a cancellation request for an authorized billing account with its schedule, expected refundable amount and individual subscription outcomes. Read individual item states for per-subscription outcomes, including partial success.
|
|
763
781
|
* @summary Get a cancellation
|
|
764
782
|
*/
|
|
765
783
|
export declare const GetCancellationParams: zod.ZodObject<{
|
|
@@ -927,6 +945,7 @@ export declare const ListOrdersQueryParams: zod.ZodObject<{
|
|
|
927
945
|
project_ids: zod.ZodOptional<zod.ZodArray<zod.ZodUUID>>;
|
|
928
946
|
}, zod.z.core.$strict>;
|
|
929
947
|
/**
|
|
948
|
+
* Returns an order charged to an owned billing account with its commercial state and invoice reference. An unknown order returns 404; an order on another user account is forbidden.
|
|
930
949
|
* @summary Get order
|
|
931
950
|
*/
|
|
932
951
|
export declare const GetOrderParams: zod.ZodObject<{
|
|
@@ -1068,6 +1087,7 @@ export declare const ListPricesHeader: zod.ZodObject<{
|
|
|
1068
1087
|
"If-None-Match": zod.ZodOptional<zod.ZodString>;
|
|
1069
1088
|
}, zod.z.core.$strict>;
|
|
1070
1089
|
/**
|
|
1090
|
+
* Paginated registered catalog products with their service identities and descriptions. Supports If- None-Match and returns 304 when the selected page has not changed.
|
|
1071
1091
|
* @summary List catalog products
|
|
1072
1092
|
*/
|
|
1073
1093
|
export declare const listProductsQueryPageDefault = 1;
|
|
@@ -1116,6 +1136,7 @@ export declare const GetPriceHeader: zod.ZodObject<{
|
|
|
1116
1136
|
"If-None-Match": zod.ZodOptional<zod.ZodString>;
|
|
1117
1137
|
}, zod.z.core.$strict>;
|
|
1118
1138
|
/**
|
|
1139
|
+
* Paginated active plans for the required product_id, with their feature allocations. An unknown product returns 404; If-None-Match can return 304 for an unchanged page.
|
|
1119
1140
|
* @summary List catalog plans
|
|
1120
1141
|
*/
|
|
1121
1142
|
export declare const listPlansQueryProductIdMax = 64;
|
|
@@ -1232,6 +1253,7 @@ export declare const ListSpendQueryParams: zod.ZodObject<{
|
|
|
1232
1253
|
project_ids: zod.ZodOptional<zod.ZodArray<zod.ZodUUID>>;
|
|
1233
1254
|
}, zod.z.core.$strict>;
|
|
1234
1255
|
/**
|
|
1256
|
+
* Paginated consumption statement batches for owned billing accounts, filtered by billing_account_id, open or closed state and period-start interval. A closed batch is not proof that the whole month has finished.
|
|
1235
1257
|
* @summary List statements
|
|
1236
1258
|
*/
|
|
1237
1259
|
export declare const listStatementsQueryPageDefault = 1;
|
|
@@ -1250,6 +1272,7 @@ export declare const ListStatementsQueryParams: zod.ZodObject<{
|
|
|
1250
1272
|
page_size: zod.ZodDefault<zod.ZodInt>;
|
|
1251
1273
|
}, zod.z.core.$strict>;
|
|
1252
1274
|
/**
|
|
1275
|
+
* Returns an owned-account consumption batch with its period, estimated or closed amounts and invoice reference. Returns 404 for a missing batch and 403 when the billing account belongs to another user.
|
|
1253
1276
|
* @summary Get statement
|
|
1254
1277
|
*/
|
|
1255
1278
|
export declare const GetStatementParams: zod.ZodObject<{
|
|
@@ -24,6 +24,7 @@ import { RenewalOrderRequest } from "./validators/renewalOrderRequest.zod.js";
|
|
|
24
24
|
import { SetProjectAssignmentRequest } from "./validators/setProjectAssignmentRequest.zod.js";
|
|
25
25
|
import { TopUpCreate } from "./validators/topUpCreate.zod.js";
|
|
26
26
|
/**
|
|
27
|
+
* Paginated contact profiles belonging to the billing account in the path, including inactive contacts. Returns 404 if the account does not exist.
|
|
27
28
|
* @summary List contacts
|
|
28
29
|
*/
|
|
29
30
|
export const ListContactsParams = zod.strictObject({
|
|
@@ -48,6 +49,7 @@ export const ListContactsQueryParams = zod.strictObject({
|
|
|
48
49
|
.describe("Items per page. Defaults to 50; at most 200."),
|
|
49
50
|
});
|
|
50
51
|
/**
|
|
52
|
+
* Creates a contact profile for the billing account in the path. Creating a contact does not select it for invoicing; set the account invoice_contact_id separately.
|
|
51
53
|
* @summary Create contact
|
|
52
54
|
*/
|
|
53
55
|
export const CreateContactParams = zod.strictObject({
|
|
@@ -55,23 +57,28 @@ export const CreateContactParams = zod.strictObject({
|
|
|
55
57
|
});
|
|
56
58
|
export const CreateContactBody = ContactCreate;
|
|
57
59
|
/**
|
|
60
|
+
* Returns a contact belonging to this billing account. Returns 404 if the contact does not exist in this account.
|
|
58
61
|
* @summary Get contact
|
|
59
62
|
*/
|
|
60
63
|
export const GetContactParams = zod.strictObject({
|
|
64
|
+
accountId: zod.int(),
|
|
61
65
|
contactId: zod.uuid(),
|
|
62
66
|
});
|
|
63
67
|
/**
|
|
68
|
+
* Updates a contact belonging to this billing account. Returns 404 if the contact does not exist in this account.
|
|
64
69
|
* @summary Update contact
|
|
65
70
|
*/
|
|
66
71
|
export const UpdateContactParams = zod.strictObject({
|
|
72
|
+
accountId: zod.int(),
|
|
67
73
|
contactId: zod.uuid(),
|
|
68
74
|
});
|
|
69
75
|
export const UpdateContactBody = ContactUpdate;
|
|
70
76
|
/**
|
|
71
|
-
* The selected invoice contact must be cleared or replaced before deletion. Issued invoice snapshots are retained.
|
|
77
|
+
* Deletes a contact belonging to this billing account. Returns 404 if the contact does not exist in this account. The selected invoice contact must be cleared or replaced before deletion. Issued invoice snapshots are retained.
|
|
72
78
|
* @summary Delete contact
|
|
73
79
|
*/
|
|
74
80
|
export const DeleteContactParams = zod.strictObject({
|
|
81
|
+
accountId: zod.int(),
|
|
75
82
|
contactId: zod.uuid(),
|
|
76
83
|
});
|
|
77
84
|
/**
|
|
@@ -98,6 +105,7 @@ export const ListCurrenciesQueryParams = zod.strictObject({
|
|
|
98
105
|
.describe("Items per page. Defaults to 50; at most 200."),
|
|
99
106
|
});
|
|
100
107
|
/**
|
|
108
|
+
* Paginated billing accounts owned by the authenticated user. Accounts owned by other users are excluded; the result is empty when the user owns none.
|
|
101
109
|
* @summary List billing accounts
|
|
102
110
|
*/
|
|
103
111
|
export const listBillingAccountsQueryPageDefault = 1;
|
|
@@ -127,6 +135,7 @@ export const ListBillingAccountsQueryParams = zod.strictObject({
|
|
|
127
135
|
*/
|
|
128
136
|
export const CreateBillingAccountBody = BillingAccountCreate;
|
|
129
137
|
/**
|
|
138
|
+
* Returns an owned account settlement currency, lifecycle state and selected invoice contact. Returns 404 if the account does not exist and 403 if it belongs to another user.
|
|
130
139
|
* @summary Get billing account
|
|
131
140
|
*/
|
|
132
141
|
export const GetBillingAccountParams = zod.strictObject({
|
|
@@ -143,6 +152,7 @@ export const UpdateBillingAccountParams = zod.strictObject({
|
|
|
143
152
|
});
|
|
144
153
|
export const UpdateBillingAccountBody = BillingAccountUpdate;
|
|
145
154
|
/**
|
|
155
|
+
* Returns the owned account balance, applicable credit groups, unpaid invoice amounts, unbilled estimates and pending returns separately. Returns 404 for a missing account and 403 for an account owned by another user.
|
|
146
156
|
* @summary Get account balance
|
|
147
157
|
*/
|
|
148
158
|
export const GetAccountBalanceParams = zod.strictObject({
|
|
@@ -177,6 +187,7 @@ export const ListPaymentOptionsQueryParams = zod.strictObject({
|
|
|
177
187
|
.describe("Items per page. Defaults to 50; at most 200."),
|
|
178
188
|
});
|
|
179
189
|
/**
|
|
190
|
+
* Paginated current project assignments to accounts owned by the authenticated user. Filter by billing_account_id or project_ids; historical financial records keep their original account assignment.
|
|
180
191
|
* @summary List project assignments
|
|
181
192
|
*/
|
|
182
193
|
export const listProjectAssignmentsQueryPageDefault = 1;
|
|
@@ -312,6 +323,7 @@ export const CancelTopUpParams = zod.strictObject({
|
|
|
312
323
|
topUpId: zod.uuid(),
|
|
313
324
|
});
|
|
314
325
|
/**
|
|
326
|
+
* Paginated saved payment methods for owned billing accounts, optionally restricted to billing_account_id. Removed methods are excluded; they do not disappear from historical payment records.
|
|
315
327
|
* @summary List payment methods
|
|
316
328
|
*/
|
|
317
329
|
export const listPaymentMethodsQueryPageDefault = 1;
|
|
@@ -346,6 +358,7 @@ export const ListPaymentMethodsQueryParams = zod.strictObject({
|
|
|
346
358
|
*/
|
|
347
359
|
export const CreatePaymentMethodSetupBody = PaymentMethodSetup;
|
|
348
360
|
/**
|
|
361
|
+
* Selects an active saved payment method as the default for its owned billing account and returns it. Expired or removed methods cannot be selected; selecting the current default is idempotent.
|
|
349
362
|
* @summary Set default payment method
|
|
350
363
|
*/
|
|
351
364
|
export const SetDefaultPaymentMethodParams = zod.strictObject({
|
|
@@ -432,6 +445,7 @@ export const PayTogetherBody = PayTogetherRequest;
|
|
|
432
445
|
*/
|
|
433
446
|
export const PreviewPayTogetherBody = PayTogetherRequest;
|
|
434
447
|
/**
|
|
448
|
+
* Paginated issued invoices belonging to owned billing accounts, filtered by billing_account_id, status and creation interval. Drafts are excluded; top-ups do not create invoices.
|
|
435
449
|
* @summary List invoices
|
|
436
450
|
*/
|
|
437
451
|
export const listInvoicesQueryPageDefault = 1;
|
|
@@ -463,12 +477,14 @@ export const ListInvoicesQueryParams = zod.strictObject({
|
|
|
463
477
|
to: zod.iso.datetime({ offset: true }).optional().describe("Exclusive."),
|
|
464
478
|
});
|
|
465
479
|
/**
|
|
480
|
+
* Returns an issued invoice for an owned billing account with its amounts, tax lines and payment state. Returns 404 for a missing or unissued invoice and 403 when its account belongs to another user.
|
|
466
481
|
* @summary Get invoice
|
|
467
482
|
*/
|
|
468
483
|
export const GetInvoiceParams = zod.strictObject({
|
|
469
484
|
invoiceId: zod.uuid(),
|
|
470
485
|
});
|
|
471
486
|
/**
|
|
487
|
+
* Paginated lines of an issued invoice belonging to an owned billing account, including their service periods and project references. A missing or unissued invoice returns 404; another user account returns 403.
|
|
472
488
|
* @summary List invoice items
|
|
473
489
|
*/
|
|
474
490
|
export const ListInvoiceItemsParams = zod.strictObject({
|
|
@@ -493,6 +509,7 @@ export const ListInvoiceItemsQueryParams = zod.strictObject({
|
|
|
493
509
|
.describe("Items per page. Defaults to 50; at most 200."),
|
|
494
510
|
});
|
|
495
511
|
/**
|
|
512
|
+
* Paginated ledger entries for owned billing accounts, optionally filtered by billing_account_id and creation interval. Each entry retains its amount, currency and any referenced credit grant.
|
|
496
513
|
* @summary List transactions
|
|
497
514
|
*/
|
|
498
515
|
export const listTransactionsQueryPageDefault = 1;
|
|
@@ -887,6 +904,7 @@ export const ListCancellationsQueryParams = zod.strictObject({
|
|
|
887
904
|
*/
|
|
888
905
|
export const CreateCancellationBody = CancellationCreate;
|
|
889
906
|
/**
|
|
907
|
+
* Returns a cancellation request for an authorized billing account with its schedule, expected refundable amount and individual subscription outcomes. Read individual item states for per-subscription outcomes, including partial success.
|
|
890
908
|
* @summary Get a cancellation
|
|
891
909
|
*/
|
|
892
910
|
export const GetCancellationParams = zod.strictObject({
|
|
@@ -1076,6 +1094,7 @@ export const ListOrdersQueryParams = zod.strictObject({
|
|
|
1076
1094
|
.describe("Restrict the account-authorized results to these projects. Omit for all projects and account-level records. This filter does not grant access to another billing account."),
|
|
1077
1095
|
});
|
|
1078
1096
|
/**
|
|
1097
|
+
* Returns an order charged to an owned billing account with its commercial state and invoice reference. An unknown order returns 404; an order on another user account is forbidden.
|
|
1079
1098
|
* @summary Get order
|
|
1080
1099
|
*/
|
|
1081
1100
|
export const GetOrderParams = zod.strictObject({
|
|
@@ -1268,6 +1287,7 @@ export const ListPricesHeader = zod.strictObject({
|
|
|
1268
1287
|
.describe("The `ETag` from an earlier reply. When the catalogue has not changed since, the\nanswer is `304` with no body.\n\nSend it on every catalogue read. An unchanged catalogue is answered without a body."),
|
|
1269
1288
|
});
|
|
1270
1289
|
/**
|
|
1290
|
+
* Paginated registered catalog products with their service identities and descriptions. Supports If- None-Match and returns 304 when the selected page has not changed.
|
|
1271
1291
|
* @summary List catalog products
|
|
1272
1292
|
*/
|
|
1273
1293
|
export const listProductsQueryPageDefault = 1;
|
|
@@ -1343,6 +1363,7 @@ export const GetPriceHeader = zod.strictObject({
|
|
|
1343
1363
|
.describe("The `ETag` from an earlier reply. When the catalogue has not changed since, the\nanswer is `304` with no body.\n\nSend it on every catalogue read. An unchanged catalogue is answered without a body."),
|
|
1344
1364
|
});
|
|
1345
1365
|
/**
|
|
1366
|
+
* Paginated active plans for the required product_id, with their feature allocations. An unknown product returns 404; If-None-Match can return 304 for an unchanged page.
|
|
1346
1367
|
* @summary List catalog plans
|
|
1347
1368
|
*/
|
|
1348
1369
|
export const listPlansQueryProductIdMax = 64;
|
|
@@ -1549,6 +1570,7 @@ export const ListSpendQueryParams = zod.strictObject({
|
|
|
1549
1570
|
.describe("Restrict the account-authorized results to these projects. Omit for all projects and account-level records. This filter does not grant access to another billing account."),
|
|
1550
1571
|
});
|
|
1551
1572
|
/**
|
|
1573
|
+
* Paginated consumption statement batches for owned billing accounts, filtered by billing_account_id, open or closed state and period-start interval. A closed batch is not proof that the whole month has finished.
|
|
1552
1574
|
* @summary List statements
|
|
1553
1575
|
*/
|
|
1554
1576
|
export const listStatementsQueryPageDefault = 1;
|
|
@@ -1574,6 +1596,7 @@ export const ListStatementsQueryParams = zod.strictObject({
|
|
|
1574
1596
|
.describe("Items per page. Defaults to 50; at most 200."),
|
|
1575
1597
|
});
|
|
1576
1598
|
/**
|
|
1599
|
+
* Returns an owned-account consumption batch with its period, estimated or closed amounts and invoice reference. Returns 404 for a missing batch and 403 when the billing account belongs to another user.
|
|
1577
1600
|
* @summary Get statement
|
|
1578
1601
|
*/
|
|
1579
1602
|
export const GetStatementParams = zod.strictObject({
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
|
|
13
13
|
* OpenAPI spec version: 1.0.0
|
|
14
14
|
*/
|
|
15
|
-
import type { AttachPolicyRequestBody, BatchGetMembersRequestBody, BatchGetMembersResponseBody, CatalogListResponseBody, CreateRoleRequestBody, CreateSSHKeyRequestBody, Error, IssueInvitationRequestBody, IssuedInvitationResponseBody, LengthAwarePageInvitationResource, LengthAwarePageMemberResource, LengthAwarePageSSHKeyResource, ListMembersParams, ListPoliciesParams, ListProjectInvitationsParams, ListSshKeysParams, MemberResource, MembershipResource, OwnershipTransferResponseBody, PolicyListResponseBody, PolicyResource, ProjectAccessResource, RenameSSHKeyRequestBody, RoleListResponseBody, RoleResource, SSHKeyResource, SetMemberPermissionsRequestBody, SetMemberRolesRequestBody, TransferOwnershipRequestBody, UpdatePolicyRequestBody, UpdateProjectRequestBody, UpdateRoleRequestBody } from "./models.js";
|
|
15
|
+
import type { AttachPolicyRequestBody, BatchGetMembersRequestBody, BatchGetMembersResponseBody, CatalogListResponseBody, CreateRoleRequestBody, CreateSSHKeyRequestBody, Error, IssueInvitationRequestBody, IssuedInvitationResponseBody, LengthAwarePageInvitationResource, LengthAwarePageMemberResource, LengthAwarePageSSHKeyResource, ListMembersParams, ListPoliciesParams, ListProjectInvitationsParams, ListSshKeysParams, MemberResource, MembershipResource, OwnershipTransferResponseBody, PolicyListResponseBody, PolicyResource, ProjectAccessResource, QuotaListResponseBody, RenameSSHKeyRequestBody, RoleListResponseBody, RoleResource, SSHKeyResource, SetMemberPermissionsRequestBody, SetMemberRolesRequestBody, TransferOwnershipRequestBody, UpdatePolicyRequestBody, UpdateProjectRequestBody, UpdateRoleRequestBody } from "./models.js";
|
|
16
16
|
export type HTTPStatusCode1xx = 100 | 101 | 102 | 103;
|
|
17
17
|
export type HTTPStatusCode2xx = 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207;
|
|
18
18
|
export type HTTPStatusCode3xx = 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308;
|
|
@@ -123,6 +123,27 @@ export declare const getGetProjectMembershipUrl: () => string;
|
|
|
123
123
|
* @summary Get the caller's standing in this project
|
|
124
124
|
*/
|
|
125
125
|
export declare const getProjectMembership: (options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<getProjectMembershipResponse>;
|
|
126
|
+
export type listQuotasResponse200 = {
|
|
127
|
+
data: QuotaListResponseBody;
|
|
128
|
+
status: 200;
|
|
129
|
+
};
|
|
130
|
+
export type listQuotasResponseDefault = {
|
|
131
|
+
data: Error;
|
|
132
|
+
status: Exclude<HTTPStatusCodes, 200>;
|
|
133
|
+
};
|
|
134
|
+
export type listQuotasResponseSuccess = listQuotasResponse200 & {
|
|
135
|
+
headers: Headers;
|
|
136
|
+
};
|
|
137
|
+
export type listQuotasResponseError = listQuotasResponseDefault & {
|
|
138
|
+
headers: Headers;
|
|
139
|
+
};
|
|
140
|
+
export type listQuotasResponse = listQuotasResponseSuccess | listQuotasResponseError;
|
|
141
|
+
export declare const getListQuotasUrl: () => string;
|
|
142
|
+
/**
|
|
143
|
+
* How much of something this project may have in each service, such as instances or VPCs, with the limit in effect for it. A request that would exceed a limit is refused by the service concerned. Each service shows what the project currently has.
|
|
144
|
+
* @summary List this project's quotas
|
|
145
|
+
*/
|
|
146
|
+
export declare const listQuotas: (options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<listQuotasResponse>;
|
|
126
147
|
export type listProjectInvitationsResponse200 = {
|
|
127
148
|
data: LengthAwarePageInvitationResource;
|
|
128
149
|
status: 200;
|
|
@@ -94,6 +94,22 @@ export const getProjectMembership = async (options, fetchFn) => {
|
|
|
94
94
|
const data = body ? JSON.parse(body) : {};
|
|
95
95
|
return { data, status: res.status, headers: res.headers };
|
|
96
96
|
};
|
|
97
|
+
export const getListQuotasUrl = () => {
|
|
98
|
+
return `https://iam.leaflow.cloud/api/v1/quotas`;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* How much of something this project may have in each service, such as instances or VPCs, with the limit in effect for it. A request that would exceed a limit is refused by the service concerned. Each service shows what the project currently has.
|
|
102
|
+
* @summary List this project's quotas
|
|
103
|
+
*/
|
|
104
|
+
export const listQuotas = async (options, fetchFn) => {
|
|
105
|
+
const res = await (fetchFn ?? fetch)(getListQuotasUrl(), {
|
|
106
|
+
...options,
|
|
107
|
+
method: "GET",
|
|
108
|
+
});
|
|
109
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
110
|
+
const data = body ? JSON.parse(body) : {};
|
|
111
|
+
return { data, status: res.status, headers: res.headers };
|
|
112
|
+
};
|
|
97
113
|
export const getListProjectInvitationsUrl = (params) => {
|
|
98
114
|
const normalizedParams = new URLSearchParams();
|
|
99
115
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -130,6 +130,17 @@ export interface UpdateProjectRequestBody {
|
|
|
130
130
|
/** @maxLength 128 */
|
|
131
131
|
name?: string;
|
|
132
132
|
}
|
|
133
|
+
export interface QuotaResource {
|
|
134
|
+
/** The service enforcing the quota. */
|
|
135
|
+
service: string;
|
|
136
|
+
name: string;
|
|
137
|
+
description: string;
|
|
138
|
+
/** The most this project may have. */
|
|
139
|
+
limit: number;
|
|
140
|
+
}
|
|
141
|
+
export interface QuotaListResponseBody {
|
|
142
|
+
items: QuotaResource[];
|
|
143
|
+
}
|
|
133
144
|
export interface MembershipResource {
|
|
134
145
|
traits: ProjectTraitResource[];
|
|
135
146
|
/** @nullable */
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow IAM API
|
|
5
|
+
* What happens inside a project: members, roles, invitations and SSH keys.
|
|
6
|
+
*
|
|
7
|
+
* Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
|
|
8
|
+
* `projectId`, and the current project is the one the token states. Tokens are obtained from the
|
|
9
|
+
* account API.
|
|
10
|
+
*
|
|
11
|
+
* `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
|
|
12
|
+
* project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
|
|
13
|
+
* OpenAPI spec version: 1.0.0
|
|
14
|
+
*/
|
|
15
|
+
import * as zod from "zod";
|
|
16
|
+
export declare const QuotaListResponseBody: zod.ZodObject<{
|
|
17
|
+
items: zod.ZodArray<zod.ZodObject<{
|
|
18
|
+
service: zod.ZodString;
|
|
19
|
+
name: zod.ZodString;
|
|
20
|
+
description: zod.ZodString;
|
|
21
|
+
limit: zod.ZodInt;
|
|
22
|
+
}, zod.z.core.$strict>>;
|
|
23
|
+
}, zod.z.core.$strict>;
|
|
24
|
+
export type QuotaListResponseBody = zod.input<typeof QuotaListResponseBody>;
|
|
25
|
+
export type QuotaListResponseBodyOutput = zod.output<typeof QuotaListResponseBody>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow IAM API
|
|
5
|
+
* What happens inside a project: members, roles, invitations and SSH keys.
|
|
6
|
+
*
|
|
7
|
+
* Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
|
|
8
|
+
* `projectId`, and the current project is the one the token states. Tokens are obtained from the
|
|
9
|
+
* account API.
|
|
10
|
+
*
|
|
11
|
+
* `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
|
|
12
|
+
* project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
|
|
13
|
+
* OpenAPI spec version: 1.0.0
|
|
14
|
+
*/
|
|
15
|
+
import * as zod from "zod";
|
|
16
|
+
import { QuotaResource } from "./quotaResource.zod.js";
|
|
17
|
+
export const QuotaListResponseBody = zod.strictObject({
|
|
18
|
+
items: zod.array(QuotaResource),
|
|
19
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow IAM API
|
|
5
|
+
* What happens inside a project: members, roles, invitations and SSH keys.
|
|
6
|
+
*
|
|
7
|
+
* Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
|
|
8
|
+
* `projectId`, and the current project is the one the token states. Tokens are obtained from the
|
|
9
|
+
* account API.
|
|
10
|
+
*
|
|
11
|
+
* `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
|
|
12
|
+
* project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
|
|
13
|
+
* OpenAPI spec version: 1.0.0
|
|
14
|
+
*/
|
|
15
|
+
import * as zod from "zod";
|
|
16
|
+
export declare const QuotaResource: zod.ZodObject<{
|
|
17
|
+
service: zod.ZodString;
|
|
18
|
+
name: zod.ZodString;
|
|
19
|
+
description: zod.ZodString;
|
|
20
|
+
limit: zod.ZodInt;
|
|
21
|
+
}, zod.z.core.$strict>;
|
|
22
|
+
export type QuotaResource = zod.input<typeof QuotaResource>;
|
|
23
|
+
export type QuotaResourceOutput = zod.output<typeof QuotaResource>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow IAM API
|
|
5
|
+
* What happens inside a project: members, roles, invitations and SSH keys.
|
|
6
|
+
*
|
|
7
|
+
* Every request carries a scoped token; see the `bearerAuth` security scheme. No path carries a
|
|
8
|
+
* `projectId`, and the current project is the one the token states. Tokens are obtained from the
|
|
9
|
+
* account API.
|
|
10
|
+
*
|
|
11
|
+
* `GET /api/v1/membership` returns the roles and permissions the caller holds in the current
|
|
12
|
+
* project. It does not state whether a given operation is allowed; each service declares which permission its own operations require.
|
|
13
|
+
* OpenAPI spec version: 1.0.0
|
|
14
|
+
*/
|
|
15
|
+
import * as zod from "zod";
|
|
16
|
+
export const QuotaResource = zod.strictObject({
|
|
17
|
+
service: zod.string().describe("The service enforcing the quota."),
|
|
18
|
+
name: zod.string(),
|
|
19
|
+
description: zod.string(),
|
|
20
|
+
limit: zod.int().describe("The most this project may have."),
|
|
21
|
+
});
|
package/dist/routes.d.ts
CHANGED
|
@@ -506,7 +506,7 @@ export declare const routes: readonly [{
|
|
|
506
506
|
readonly service: "billing";
|
|
507
507
|
readonly contract: "billing";
|
|
508
508
|
readonly method: "GET";
|
|
509
|
-
readonly path: "/api/v1/contacts/{contactId}";
|
|
509
|
+
readonly path: "/api/v1/billing-accounts/{accountId}/contacts/{contactId}";
|
|
510
510
|
readonly operationId: "get-contact";
|
|
511
511
|
readonly securityScheme: "AccessToken";
|
|
512
512
|
readonly upstreamUrl: "https://billing.leaflow.cloud";
|
|
@@ -514,7 +514,7 @@ export declare const routes: readonly [{
|
|
|
514
514
|
readonly service: "billing";
|
|
515
515
|
readonly contract: "billing";
|
|
516
516
|
readonly method: "PATCH";
|
|
517
|
-
readonly path: "/api/v1/contacts/{contactId}";
|
|
517
|
+
readonly path: "/api/v1/billing-accounts/{accountId}/contacts/{contactId}";
|
|
518
518
|
readonly operationId: "update-contact";
|
|
519
519
|
readonly securityScheme: "AccessToken";
|
|
520
520
|
readonly upstreamUrl: "https://billing.leaflow.cloud";
|
|
@@ -522,7 +522,7 @@ export declare const routes: readonly [{
|
|
|
522
522
|
readonly service: "billing";
|
|
523
523
|
readonly contract: "billing";
|
|
524
524
|
readonly method: "DELETE";
|
|
525
|
-
readonly path: "/api/v1/contacts/{contactId}";
|
|
525
|
+
readonly path: "/api/v1/billing-accounts/{accountId}/contacts/{contactId}";
|
|
526
526
|
readonly operationId: "delete-contact";
|
|
527
527
|
readonly securityScheme: "AccessToken";
|
|
528
528
|
readonly upstreamUrl: "https://billing.leaflow.cloud";
|
|
@@ -2222,6 +2222,14 @@ export declare const routes: readonly [{
|
|
|
2222
2222
|
readonly operationId: "get-project-membership";
|
|
2223
2223
|
readonly securityScheme: "ScopedToken";
|
|
2224
2224
|
readonly upstreamUrl: "https://iam.leaflow.cloud";
|
|
2225
|
+
}, {
|
|
2226
|
+
readonly service: "iam";
|
|
2227
|
+
readonly contract: "iam";
|
|
2228
|
+
readonly method: "GET";
|
|
2229
|
+
readonly path: "/api/v1/quotas";
|
|
2230
|
+
readonly operationId: "list-quotas";
|
|
2231
|
+
readonly securityScheme: "ScopedToken";
|
|
2232
|
+
readonly upstreamUrl: "https://iam.leaflow.cloud";
|
|
2225
2233
|
}, {
|
|
2226
2234
|
readonly service: "iam";
|
|
2227
2235
|
readonly contract: "iam";
|
package/dist/routes.js
CHANGED
|
@@ -571,7 +571,7 @@ export const routes = [
|
|
|
571
571
|
service: "billing",
|
|
572
572
|
contract: "billing",
|
|
573
573
|
method: "GET",
|
|
574
|
-
path: "/api/v1/contacts/{contactId}",
|
|
574
|
+
path: "/api/v1/billing-accounts/{accountId}/contacts/{contactId}",
|
|
575
575
|
operationId: "get-contact",
|
|
576
576
|
securityScheme: "AccessToken",
|
|
577
577
|
upstreamUrl: "https://billing.leaflow.cloud",
|
|
@@ -580,7 +580,7 @@ export const routes = [
|
|
|
580
580
|
service: "billing",
|
|
581
581
|
contract: "billing",
|
|
582
582
|
method: "PATCH",
|
|
583
|
-
path: "/api/v1/contacts/{contactId}",
|
|
583
|
+
path: "/api/v1/billing-accounts/{accountId}/contacts/{contactId}",
|
|
584
584
|
operationId: "update-contact",
|
|
585
585
|
securityScheme: "AccessToken",
|
|
586
586
|
upstreamUrl: "https://billing.leaflow.cloud",
|
|
@@ -589,7 +589,7 @@ export const routes = [
|
|
|
589
589
|
service: "billing",
|
|
590
590
|
contract: "billing",
|
|
591
591
|
method: "DELETE",
|
|
592
|
-
path: "/api/v1/contacts/{contactId}",
|
|
592
|
+
path: "/api/v1/billing-accounts/{accountId}/contacts/{contactId}",
|
|
593
593
|
operationId: "delete-contact",
|
|
594
594
|
securityScheme: "AccessToken",
|
|
595
595
|
upstreamUrl: "https://billing.leaflow.cloud",
|
|
@@ -2502,6 +2502,15 @@ export const routes = [
|
|
|
2502
2502
|
securityScheme: "ScopedToken",
|
|
2503
2503
|
upstreamUrl: "https://iam.leaflow.cloud",
|
|
2504
2504
|
},
|
|
2505
|
+
{
|
|
2506
|
+
service: "iam",
|
|
2507
|
+
contract: "iam",
|
|
2508
|
+
method: "GET",
|
|
2509
|
+
path: "/api/v1/quotas",
|
|
2510
|
+
operationId: "list-quotas",
|
|
2511
|
+
securityScheme: "ScopedToken",
|
|
2512
|
+
upstreamUrl: "https://iam.leaflow.cloud",
|
|
2513
|
+
},
|
|
2505
2514
|
{
|
|
2506
2515
|
service: "iam",
|
|
2507
2516
|
contract: "iam",
|