@leaflow/sdk 0.105.0 → 0.106.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.
|
@@ -28,15 +28,15 @@ export type ListPaymentOptionsResult = operations["list-payment-options"]["respo
|
|
|
28
28
|
/** The query parameters of `GET /account/v1/billing-accounts/{accountId}/payment-options`. */
|
|
29
29
|
export type ListPaymentOptionsQuery = operations["list-payment-options"]["parameters"]["query"];
|
|
30
30
|
/** The success response body of `GET /account/v1/projects`. */
|
|
31
|
-
export type
|
|
31
|
+
export type ListProjectAssignmentsResult = operations["list-project-assignments"]["responses"][200]["content"]["application/json"];
|
|
32
32
|
/** The query parameters of `GET /account/v1/projects`. */
|
|
33
|
-
export type
|
|
33
|
+
export type ListProjectAssignmentsQuery = operations["list-project-assignments"]["parameters"]["query"];
|
|
34
34
|
/** The success response body of `GET /account/v1/projects/{projectId}/billing-account`. */
|
|
35
|
-
export type
|
|
35
|
+
export type GetProjectAssignmentResult = operations["get-project-assignment"]["responses"][200]["content"]["application/json"];
|
|
36
36
|
/** The success response body of `PUT /account/v1/projects/{projectId}/billing-account`. */
|
|
37
|
-
export type
|
|
37
|
+
export type SetProjectAssignmentResult = operations["set-project-assignment"]["responses"][200]["content"]["application/json"];
|
|
38
38
|
/** The request body of `PUT /account/v1/projects/{projectId}/billing-account`. */
|
|
39
|
-
export type
|
|
39
|
+
export type SetProjectAssignmentBody = NonNullable<operations["set-project-assignment"]["requestBody"]>["content"]["application/json"];
|
|
40
40
|
/** The success response body of `GET /account/v1/top-ups`. */
|
|
41
41
|
export type ListTopUpsResult = operations["list-top-ups"]["responses"][200]["content"]["application/json"];
|
|
42
42
|
/** The query parameters of `GET /account/v1/top-ups`. */
|
|
@@ -149,8 +149,8 @@ export interface paths {
|
|
|
149
149
|
path?: never;
|
|
150
150
|
cookie?: never;
|
|
151
151
|
};
|
|
152
|
-
/** List
|
|
153
|
-
get: operations["list-
|
|
152
|
+
/** List project assignments */
|
|
153
|
+
get: operations["list-project-assignments"];
|
|
154
154
|
put?: never;
|
|
155
155
|
post?: never;
|
|
156
156
|
delete?: never;
|
|
@@ -169,12 +169,12 @@ export interface paths {
|
|
|
169
169
|
cookie?: never;
|
|
170
170
|
};
|
|
171
171
|
/**
|
|
172
|
-
* Get project
|
|
172
|
+
* Get project assignment
|
|
173
173
|
* @description Returns 404 when the project has no billing account. No resources can be created until one is linked.
|
|
174
174
|
*/
|
|
175
|
-
get: operations["get-project-
|
|
175
|
+
get: operations["get-project-assignment"];
|
|
176
176
|
/**
|
|
177
|
-
* Set project
|
|
177
|
+
* Set project assignment
|
|
178
178
|
* @description Charges already incurred remain with the billing account that was linked when they
|
|
179
179
|
* occurred, and are still invoiced to it. Metered resources are settled up to the moment of
|
|
180
180
|
* the change. Amounts owed by the previous billing account remain owed by it and do not
|
|
@@ -187,7 +187,7 @@ export interface paths {
|
|
|
187
187
|
* deleted, and while a subscription or an order in progress in the project uses a currency
|
|
188
188
|
* other than that of the new billing account.
|
|
189
189
|
*/
|
|
190
|
-
put: operations["set-project-
|
|
190
|
+
put: operations["set-project-assignment"];
|
|
191
191
|
post?: never;
|
|
192
192
|
/**
|
|
193
193
|
* Unlink project billing account
|
|
@@ -1200,9 +1200,11 @@ export interface components {
|
|
|
1200
1200
|
promotion_code?: string;
|
|
1201
1201
|
/**
|
|
1202
1202
|
* @description Quote.total in the order's currency, after discounts and tax but before applying credit
|
|
1203
|
-
* grants or balance.
|
|
1203
|
+
* grants or balance. Omit to skip the amount comparison; an explicit zero is compared.
|
|
1204
|
+
* A different total fails with BILLING_AMOUNT_CHANGED. Must be a non-negative decimal
|
|
1205
|
+
* string; empty strings, null, JSON numbers, signs and exponent notation are rejected.
|
|
1204
1206
|
*/
|
|
1205
|
-
expected_amount
|
|
1207
|
+
expected_amount?: components["schemas"]["Money"];
|
|
1206
1208
|
};
|
|
1207
1209
|
/**
|
|
1208
1210
|
* @description Price renewing a prepaid subscription. Give `price_id`, or `interval` with
|
|
@@ -1741,7 +1743,8 @@ export interface components {
|
|
|
1741
1743
|
first_purchase_only?: boolean;
|
|
1742
1744
|
amount: components["schemas"]["Money"];
|
|
1743
1745
|
};
|
|
1744
|
-
|
|
1746
|
+
/** @description A project's assignment to a billing account for the interval from effective_from to effective_to. An open-ended assignment has no end time. */
|
|
1747
|
+
ProjectAssignment: {
|
|
1745
1748
|
/** Format: uuid */
|
|
1746
1749
|
project_id: string;
|
|
1747
1750
|
/**
|
|
@@ -1758,11 +1761,11 @@ export interface components {
|
|
|
1758
1761
|
/** Format: date-time */
|
|
1759
1762
|
effective_to?: string | null;
|
|
1760
1763
|
};
|
|
1761
|
-
|
|
1762
|
-
items: components["schemas"]["
|
|
1764
|
+
ProjectAssignmentList: {
|
|
1765
|
+
items: components["schemas"]["ProjectAssignment"][];
|
|
1763
1766
|
pagination: components["schemas"]["OffsetPagination"];
|
|
1764
1767
|
};
|
|
1765
|
-
|
|
1768
|
+
SetProjectAssignmentRequest: {
|
|
1766
1769
|
/** Format: int64 */
|
|
1767
1770
|
billing_account_id: number;
|
|
1768
1771
|
};
|
|
@@ -3374,7 +3377,7 @@ export interface operations {
|
|
|
3374
3377
|
default: components["responses"]["Error"];
|
|
3375
3378
|
};
|
|
3376
3379
|
};
|
|
3377
|
-
"list-
|
|
3380
|
+
"list-project-assignments": {
|
|
3378
3381
|
parameters: {
|
|
3379
3382
|
query?: {
|
|
3380
3383
|
/** @description 1-based page number; the first page when omitted. */
|
|
@@ -3395,13 +3398,13 @@ export interface operations {
|
|
|
3395
3398
|
[name: string]: unknown;
|
|
3396
3399
|
};
|
|
3397
3400
|
content: {
|
|
3398
|
-
"application/json": components["schemas"]["
|
|
3401
|
+
"application/json": components["schemas"]["ProjectAssignmentList"];
|
|
3399
3402
|
};
|
|
3400
3403
|
};
|
|
3401
3404
|
default: components["responses"]["Error"];
|
|
3402
3405
|
};
|
|
3403
3406
|
};
|
|
3404
|
-
"get-project-
|
|
3407
|
+
"get-project-assignment": {
|
|
3405
3408
|
parameters: {
|
|
3406
3409
|
query?: never;
|
|
3407
3410
|
header?: never;
|
|
@@ -3418,13 +3421,13 @@ export interface operations {
|
|
|
3418
3421
|
[name: string]: unknown;
|
|
3419
3422
|
};
|
|
3420
3423
|
content: {
|
|
3421
|
-
"application/json": components["schemas"]["
|
|
3424
|
+
"application/json": components["schemas"]["ProjectAssignment"];
|
|
3422
3425
|
};
|
|
3423
3426
|
};
|
|
3424
3427
|
default: components["responses"]["Error"];
|
|
3425
3428
|
};
|
|
3426
3429
|
};
|
|
3427
|
-
"set-project-
|
|
3430
|
+
"set-project-assignment": {
|
|
3428
3431
|
parameters: {
|
|
3429
3432
|
query?: never;
|
|
3430
3433
|
header?: never;
|
|
@@ -3435,7 +3438,7 @@ export interface operations {
|
|
|
3435
3438
|
};
|
|
3436
3439
|
requestBody: {
|
|
3437
3440
|
content: {
|
|
3438
|
-
"application/json": components["schemas"]["
|
|
3441
|
+
"application/json": components["schemas"]["SetProjectAssignmentRequest"];
|
|
3439
3442
|
};
|
|
3440
3443
|
};
|
|
3441
3444
|
responses: {
|
|
@@ -3445,7 +3448,7 @@ export interface operations {
|
|
|
3445
3448
|
[name: string]: unknown;
|
|
3446
3449
|
};
|
|
3447
3450
|
content: {
|
|
3448
|
-
"application/json": components["schemas"]["
|
|
3451
|
+
"application/json": components["schemas"]["ProjectAssignment"];
|
|
3449
3452
|
};
|
|
3450
3453
|
};
|
|
3451
3454
|
default: components["responses"]["Error"];
|
|
@@ -108,7 +108,7 @@ export interface paths {
|
|
|
108
108
|
};
|
|
109
109
|
/**
|
|
110
110
|
* List disk types on sale
|
|
111
|
-
* @description Only disk types currently on sale are listed, both system disk types and data disk types; `
|
|
111
|
+
* @description Only disk types currently on sale are listed, both system disk types and data disk types; `purpose` narrows the list to one of the two. A withdrawn one disappears from here and can no longer be bought, while the disks already on it keep working and can still be resized.
|
|
112
112
|
*/
|
|
113
113
|
get: operations["list-disk-types"];
|
|
114
114
|
put?: never;
|
|
@@ -1905,13 +1905,17 @@ export interface components {
|
|
|
1905
1905
|
/** Format: date-time */
|
|
1906
1906
|
observed_at: string | null;
|
|
1907
1907
|
};
|
|
1908
|
+
/**
|
|
1909
|
+
* @description The intended purchase use of a disk type, not the current boot role or deletion policy of an individual disk.
|
|
1910
|
+
* @enum {string}
|
|
1911
|
+
*/
|
|
1912
|
+
DiskTypePurpose: "system" | "data";
|
|
1908
1913
|
DiskTypeResource: {
|
|
1909
1914
|
/** Format: uuid */
|
|
1910
1915
|
availability_zone_id: string;
|
|
1911
1916
|
/** Format: uuid */
|
|
1912
1917
|
id: string;
|
|
1913
|
-
|
|
1914
|
-
for_system: boolean;
|
|
1918
|
+
purpose: components["schemas"]["DiskTypePurpose"];
|
|
1915
1919
|
/**
|
|
1916
1920
|
* Format: int64
|
|
1917
1921
|
* @description IOPS a disk of `min_size_gb` gets. Null when this type is not rate-limited.
|
|
@@ -2123,7 +2127,7 @@ export interface components {
|
|
|
2123
2127
|
CreateDiskRequestBody: {
|
|
2124
2128
|
/**
|
|
2125
2129
|
* Format: uuid
|
|
2126
|
-
* @description A data disk type currently on sale, one whose `
|
|
2130
|
+
* @description A data disk type currently on sale, one whose `purpose` is `data`. A withdrawn one is rejected even though its identifier still resolves
|
|
2127
2131
|
*/
|
|
2128
2132
|
disk_type_id: string;
|
|
2129
2133
|
name: string;
|
|
@@ -3107,7 +3111,7 @@ export interface components {
|
|
|
3107
3111
|
CreateDiskQuoteRequestBody: {
|
|
3108
3112
|
/**
|
|
3109
3113
|
* Format: uuid
|
|
3110
|
-
* @description A data disk type currently on sale, one whose `
|
|
3114
|
+
* @description A data disk type currently on sale, one whose `purpose` is `data`. A withdrawn one is rejected even though its identifier still resolves
|
|
3111
3115
|
*/
|
|
3112
3116
|
disk_type_id: string;
|
|
3113
3117
|
name: string;
|
|
@@ -3312,7 +3316,7 @@ export interface components {
|
|
|
3312
3316
|
NewBootDisk: {
|
|
3313
3317
|
/**
|
|
3314
3318
|
* Format: uuid
|
|
3315
|
-
* @description A system disk type on sale in the availability zone of the instance, one whose `
|
|
3319
|
+
* @description A system disk type on sale in the availability zone of the instance, one whose `purpose` is `system`
|
|
3316
3320
|
*/
|
|
3317
3321
|
disk_type_id: string;
|
|
3318
3322
|
/** Format: int64 */
|
|
@@ -3888,8 +3892,8 @@ export interface operations {
|
|
|
3888
3892
|
parameters: {
|
|
3889
3893
|
query?: {
|
|
3890
3894
|
region_id?: string;
|
|
3891
|
-
/** @description
|
|
3892
|
-
|
|
3895
|
+
/** @description Filter by intended purchase use. Omit to include both system and data disk types. */
|
|
3896
|
+
purpose?: components["schemas"]["DiskTypePurpose"];
|
|
3893
3897
|
page?: components["parameters"]["Page"];
|
|
3894
3898
|
page_size?: components["parameters"]["PageSize"];
|
|
3895
3899
|
};
|
package/dist/routes.d.ts
CHANGED
|
@@ -667,7 +667,7 @@ export declare const routes: readonly [{
|
|
|
667
667
|
readonly contract: "billing/account";
|
|
668
668
|
readonly method: "GET";
|
|
669
669
|
readonly path: "/account/v1/projects";
|
|
670
|
-
readonly operationId: "list-
|
|
670
|
+
readonly operationId: "list-project-assignments";
|
|
671
671
|
readonly securityScheme: "AccessToken";
|
|
672
672
|
readonly upstreamUrl: "https://billing.leaflow.cloud";
|
|
673
673
|
}, {
|
|
@@ -675,7 +675,7 @@ export declare const routes: readonly [{
|
|
|
675
675
|
readonly contract: "billing/account";
|
|
676
676
|
readonly method: "GET";
|
|
677
677
|
readonly path: "/account/v1/projects/{projectId}/billing-account";
|
|
678
|
-
readonly operationId: "get-project-
|
|
678
|
+
readonly operationId: "get-project-assignment";
|
|
679
679
|
readonly securityScheme: "AccessToken";
|
|
680
680
|
readonly upstreamUrl: "https://billing.leaflow.cloud";
|
|
681
681
|
}, {
|
|
@@ -1067,7 +1067,7 @@ export declare const routes: readonly [{
|
|
|
1067
1067
|
readonly contract: "billing/account";
|
|
1068
1068
|
readonly method: "PUT";
|
|
1069
1069
|
readonly path: "/account/v1/projects/{projectId}/billing-account";
|
|
1070
|
-
readonly operationId: "set-project-
|
|
1070
|
+
readonly operationId: "set-project-assignment";
|
|
1071
1071
|
readonly securityScheme: "AccessToken";
|
|
1072
1072
|
readonly upstreamUrl: "https://billing.leaflow.cloud";
|
|
1073
1073
|
}, {
|
package/dist/routes.js
CHANGED
|
@@ -752,7 +752,7 @@ export const routes = [
|
|
|
752
752
|
contract: "billing/account",
|
|
753
753
|
method: "GET",
|
|
754
754
|
path: "/account/v1/projects",
|
|
755
|
-
operationId: "list-
|
|
755
|
+
operationId: "list-project-assignments",
|
|
756
756
|
securityScheme: "AccessToken",
|
|
757
757
|
upstreamUrl: "https://billing.leaflow.cloud",
|
|
758
758
|
},
|
|
@@ -761,7 +761,7 @@ export const routes = [
|
|
|
761
761
|
contract: "billing/account",
|
|
762
762
|
method: "GET",
|
|
763
763
|
path: "/account/v1/projects/{projectId}/billing-account",
|
|
764
|
-
operationId: "get-project-
|
|
764
|
+
operationId: "get-project-assignment",
|
|
765
765
|
securityScheme: "AccessToken",
|
|
766
766
|
upstreamUrl: "https://billing.leaflow.cloud",
|
|
767
767
|
},
|
|
@@ -1202,7 +1202,7 @@ export const routes = [
|
|
|
1202
1202
|
contract: "billing/account",
|
|
1203
1203
|
method: "PUT",
|
|
1204
1204
|
path: "/account/v1/projects/{projectId}/billing-account",
|
|
1205
|
-
operationId: "set-project-
|
|
1205
|
+
operationId: "set-project-assignment",
|
|
1206
1206
|
securityScheme: "AccessToken",
|
|
1207
1207
|
upstreamUrl: "https://billing.leaflow.cloud",
|
|
1208
1208
|
},
|