@leaflow/sdk 0.0.0-dev.193.g3597f73 → 0.0.0-dev.197.g085a7a9
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.
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
export type { paths, components, operations, webhooks } from "./schema.js";
|
|
2
2
|
export { client } from "./client.js";
|
|
3
3
|
import type { operations } from "./schema.js";
|
|
4
|
-
/** The success response body of `GET /api/v1/projects/{projectId}/closure-preview`. */
|
|
5
|
-
export type GetProjectClosurePreviewResult = operations["get-project-closure-preview"]["responses"][200]["content"]["application/json"];
|
|
6
|
-
/** The query parameters of `GET /api/v1/projects/{projectId}/closure-preview`. */
|
|
7
|
-
export type GetProjectClosurePreviewQuery = operations["get-project-closure-preview"]["parameters"]["query"];
|
|
8
4
|
/** The success response body of `GET /api/v1/projects/{projectId}/billing-account`. */
|
|
9
5
|
export type GetProjectBillingAccountResult = operations["get-project-billing-account"]["responses"][200]["content"]["application/json"];
|
|
10
6
|
/** The success response body of `GET /api/v1/projects/{projectId}/spend`. */
|
|
@@ -3,26 +3,6 @@
|
|
|
3
3
|
* Do not make direct changes to the file.
|
|
4
4
|
*/
|
|
5
5
|
export interface paths {
|
|
6
|
-
"/api/v1/projects/{projectId}/closure-preview": {
|
|
7
|
-
parameters: {
|
|
8
|
-
query?: never;
|
|
9
|
-
header?: never;
|
|
10
|
-
path?: never;
|
|
11
|
-
cookie?: never;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Preview project closure
|
|
15
|
-
* @description Lists outstanding orders, subscriptions, metering and unfinished operations. Reports the next action and timing for each item. This read never performs cleanup or creates a closure request. Charges already incurred remain owed by the billing account that was linked when they occurred and do not prevent closure. Historical invoices and account-level purchases are retained. Billing approval alone does not prove that technical resources are absent.
|
|
16
|
-
*/
|
|
17
|
-
get: operations["get-project-closure-preview"];
|
|
18
|
-
put?: never;
|
|
19
|
-
post?: never;
|
|
20
|
-
delete?: never;
|
|
21
|
-
options?: never;
|
|
22
|
-
head?: never;
|
|
23
|
-
patch?: never;
|
|
24
|
-
trace?: never;
|
|
25
|
-
};
|
|
26
6
|
"/api/v1/projects/{projectId}/billing-account": {
|
|
27
7
|
parameters: {
|
|
28
8
|
query?: never;
|
|
@@ -350,37 +330,6 @@ export interface components {
|
|
|
350
330
|
failure_code?: string;
|
|
351
331
|
failure_reason?: string;
|
|
352
332
|
};
|
|
353
|
-
/** @description One purchase, metered resource or resource operation that has not finished. action_required identifies a supported next step, not authorization to destroy a resource. Items for the same resource must be considered together. */
|
|
354
|
-
ProjectClosureItem: {
|
|
355
|
-
/** @enum {string} */
|
|
356
|
-
type: "order" | "subscription" | "active_resource" | "job" | "cancellation_request";
|
|
357
|
-
/** Format: uuid */
|
|
358
|
-
id: string;
|
|
359
|
-
product_id?: components["schemas"]["ProductID"];
|
|
360
|
-
resource_id?: string;
|
|
361
|
-
/** @enum {string} */
|
|
362
|
-
disposition: "action_required" | "waiting" | "blocked";
|
|
363
|
-
reason_code: string;
|
|
364
|
-
actions: ("cancel_order" | "wait" | "release_resource" | "cancel_subscription" | "disable_auto_renew" | "configure_terms" | "resolve_failure")[];
|
|
365
|
-
/** Format: date-time */
|
|
366
|
-
earliest_termination_at?: string;
|
|
367
|
-
/** @description Known refund amount as a decimal string. Absent means a separate quote is required, not zero. */
|
|
368
|
-
refund_amount?: string;
|
|
369
|
-
currency?: string;
|
|
370
|
-
cancellation?: components["schemas"]["CancellationRequest"];
|
|
371
|
-
};
|
|
372
|
-
/** @description Read-only, paginated assessment. Does not cancel orders, stop renewals, refund payments or release resources. Concurrent orders or callbacks may change the result; execution must close admission and recheck. */
|
|
373
|
-
ProjectClosurePreview: {
|
|
374
|
-
/** Format: uuid */
|
|
375
|
-
project_id: string;
|
|
376
|
-
/** Format: date-time */
|
|
377
|
-
evaluated_at: string;
|
|
378
|
-
/** @description True only when the full Billing result, across all pages, has no outstanding items. Technical services must independently confirm that all resources are gone. */
|
|
379
|
-
can_close: boolean;
|
|
380
|
-
items: components["schemas"]["ProjectClosureItem"][];
|
|
381
|
-
/** Format: int64 */
|
|
382
|
-
total_count: number;
|
|
383
|
-
};
|
|
384
333
|
Error: {
|
|
385
334
|
code?: string;
|
|
386
335
|
message: string;
|
|
@@ -1081,32 +1030,6 @@ export interface components {
|
|
|
1081
1030
|
}
|
|
1082
1031
|
export type $defs = Record<string, never>;
|
|
1083
1032
|
export interface operations {
|
|
1084
|
-
"get-project-closure-preview": {
|
|
1085
|
-
parameters: {
|
|
1086
|
-
query?: {
|
|
1087
|
-
page?: number;
|
|
1088
|
-
page_size?: number;
|
|
1089
|
-
};
|
|
1090
|
-
header?: never;
|
|
1091
|
-
path: {
|
|
1092
|
-
projectId: string;
|
|
1093
|
-
};
|
|
1094
|
-
cookie?: never;
|
|
1095
|
-
};
|
|
1096
|
-
requestBody?: never;
|
|
1097
|
-
responses: {
|
|
1098
|
-
/** @description Closure assessment */
|
|
1099
|
-
200: {
|
|
1100
|
-
headers: {
|
|
1101
|
-
[name: string]: unknown;
|
|
1102
|
-
};
|
|
1103
|
-
content: {
|
|
1104
|
-
"application/json": components["schemas"]["ProjectClosurePreview"];
|
|
1105
|
-
};
|
|
1106
|
-
};
|
|
1107
|
-
default: components["responses"]["Error"];
|
|
1108
|
-
};
|
|
1109
|
-
};
|
|
1110
1033
|
"get-project-billing-account": {
|
|
1111
1034
|
parameters: {
|
|
1112
1035
|
query?: never;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
export type { paths, components, operations, webhooks } from "./schema.js";
|
|
2
2
|
export { client } from "./client.js";
|
|
3
3
|
import type { operations } from "./schema.js";
|
|
4
|
-
/** The success response body of `GET /account/v1/projects/{projectId}/closure-preview`. */
|
|
5
|
-
export type GetAccountProjectClosurePreviewResult = operations["get-account-project-closure-preview"]["responses"][200]["content"]["application/json"];
|
|
6
|
-
/** The query parameters of `GET /account/v1/projects/{projectId}/closure-preview`. */
|
|
7
|
-
export type GetAccountProjectClosurePreviewQuery = operations["get-account-project-closure-preview"]["parameters"]["query"];
|
|
8
4
|
/** The success response body of `GET /api/v1/prices`. */
|
|
9
5
|
export type ListPricesResult = operations["list-prices"]["responses"][200]["content"]["application/json"];
|
|
10
6
|
/** The query parameters of `GET /api/v1/prices`. */
|
|
@@ -3,26 +3,6 @@
|
|
|
3
3
|
* Do not make direct changes to the file.
|
|
4
4
|
*/
|
|
5
5
|
export interface paths {
|
|
6
|
-
"/account/v1/projects/{projectId}/closure-preview": {
|
|
7
|
-
parameters: {
|
|
8
|
-
query?: never;
|
|
9
|
-
header?: never;
|
|
10
|
-
path?: never;
|
|
11
|
-
cookie?: never;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Preview project closure
|
|
15
|
-
* @description Lists outstanding orders, subscriptions, metering and unfinished operations. Reports the next action and timing for each item. This read never performs cleanup or creates a closure request. Charges already incurred remain owed by the billing account that was linked when they occurred and do not prevent closure. Historical invoices and account-level purchases are retained. Billing approval alone does not prove that technical resources are absent.
|
|
16
|
-
*/
|
|
17
|
-
get: operations["get-account-project-closure-preview"];
|
|
18
|
-
put?: never;
|
|
19
|
-
post?: never;
|
|
20
|
-
delete?: never;
|
|
21
|
-
options?: never;
|
|
22
|
-
head?: never;
|
|
23
|
-
patch?: never;
|
|
24
|
-
trace?: never;
|
|
25
|
-
};
|
|
26
6
|
"/api/v1/prices": {
|
|
27
7
|
parameters: {
|
|
28
8
|
query?: never;
|
|
@@ -1068,37 +1048,6 @@ export interface components {
|
|
|
1068
1048
|
failure_code?: string;
|
|
1069
1049
|
failure_reason?: string;
|
|
1070
1050
|
};
|
|
1071
|
-
/** @description One purchase, metered resource or resource operation that has not finished. action_required identifies a supported next step, not authorization to destroy a resource. Items for the same resource must be considered together. */
|
|
1072
|
-
ProjectClosureItem: {
|
|
1073
|
-
/** @enum {string} */
|
|
1074
|
-
type: "order" | "subscription" | "active_resource" | "job" | "cancellation_request";
|
|
1075
|
-
/** Format: uuid */
|
|
1076
|
-
id: string;
|
|
1077
|
-
product_id?: components["schemas"]["ProductID"];
|
|
1078
|
-
resource_id?: string;
|
|
1079
|
-
/** @enum {string} */
|
|
1080
|
-
disposition: "action_required" | "waiting" | "blocked";
|
|
1081
|
-
reason_code: string;
|
|
1082
|
-
actions: ("cancel_order" | "wait" | "release_resource" | "cancel_subscription" | "disable_auto_renew" | "configure_terms" | "resolve_failure")[];
|
|
1083
|
-
/** Format: date-time */
|
|
1084
|
-
earliest_termination_at?: string;
|
|
1085
|
-
/** @description Known refund amount as a decimal string. Absent means a separate quote is required, not zero. */
|
|
1086
|
-
refund_amount?: string;
|
|
1087
|
-
currency?: string;
|
|
1088
|
-
cancellation?: components["schemas"]["CancellationRequest"];
|
|
1089
|
-
};
|
|
1090
|
-
/** @description Read-only, paginated assessment. Does not cancel orders, stop renewals, refund payments or release resources. Concurrent orders or callbacks may change the result; execution must close admission and recheck. */
|
|
1091
|
-
ProjectClosurePreview: {
|
|
1092
|
-
/** Format: uuid */
|
|
1093
|
-
project_id: string;
|
|
1094
|
-
/** Format: date-time */
|
|
1095
|
-
evaluated_at: string;
|
|
1096
|
-
/** @description True only when the full Billing result, across all pages, has no outstanding items. Technical services must independently confirm that all resources are gone. */
|
|
1097
|
-
can_close: boolean;
|
|
1098
|
-
items: components["schemas"]["ProjectClosureItem"][];
|
|
1099
|
-
/** Format: int64 */
|
|
1100
|
-
total_count: number;
|
|
1101
|
-
};
|
|
1102
1051
|
Error: {
|
|
1103
1052
|
code?: string;
|
|
1104
1053
|
message: string;
|
|
@@ -2590,32 +2539,6 @@ export interface components {
|
|
|
2590
2539
|
}
|
|
2591
2540
|
export type $defs = Record<string, never>;
|
|
2592
2541
|
export interface operations {
|
|
2593
|
-
"get-account-project-closure-preview": {
|
|
2594
|
-
parameters: {
|
|
2595
|
-
query?: {
|
|
2596
|
-
page?: number;
|
|
2597
|
-
page_size?: number;
|
|
2598
|
-
};
|
|
2599
|
-
header?: never;
|
|
2600
|
-
path: {
|
|
2601
|
-
projectId: string;
|
|
2602
|
-
};
|
|
2603
|
-
cookie?: never;
|
|
2604
|
-
};
|
|
2605
|
-
requestBody?: never;
|
|
2606
|
-
responses: {
|
|
2607
|
-
/** @description Closure assessment */
|
|
2608
|
-
200: {
|
|
2609
|
-
headers: {
|
|
2610
|
-
[name: string]: unknown;
|
|
2611
|
-
};
|
|
2612
|
-
content: {
|
|
2613
|
-
"application/json": components["schemas"]["ProjectClosurePreview"];
|
|
2614
|
-
};
|
|
2615
|
-
};
|
|
2616
|
-
default: components["responses"]["Error"];
|
|
2617
|
-
};
|
|
2618
|
-
};
|
|
2619
2542
|
"list-prices": {
|
|
2620
2543
|
parameters: {
|
|
2621
2544
|
query: {
|
|
@@ -217,7 +217,7 @@ export interface paths {
|
|
|
217
217
|
* Create a disk
|
|
218
218
|
* @description The disk is created in the availability zone of the selected disk type, and an instance must reside in the same zone to attach it. Choosing the disk type therefore determines the zone.
|
|
219
219
|
*
|
|
220
|
-
* A disk type that
|
|
220
|
+
* A disk type that is off sale is rejected with `DISK_TYPE_OFF_SALE`, even though its identifier still resolves. Types that are off sale do not appear in the disk type listing; disks already bought on one keep working and can still be resized.
|
|
221
221
|
*
|
|
222
222
|
* Replays return HTTP 201 for the original operation. See the idempotency conventions for conflicts and terminal outcomes.
|
|
223
223
|
*/
|