@leaflow/sdk 0.0.0-dev.391.g0aed14e → 0.0.0-dev.393.g846cd9d
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/type/cancellation/v1/generated/functions.d.ts +8 -0
- package/dist/billing/type/cancellation/v1/generated/functions.js +8 -0
- package/dist/billing/type/cancellation/v1/generated/models.d.ts +19 -0
- package/dist/billing/type/cancellation/v1/generated/models.js +4 -0
- package/dist/billing/type/cancellation/v1/generated/schemas.zod.d.ts +8 -0
- package/dist/billing/type/cancellation/v1/generated/schemas.zod.js +8 -0
- package/dist/billing/type/cancellation/v1/generated/validators/cancellationMode.zod.d.ts +14 -0
- package/dist/billing/type/cancellation/v1/generated/validators/cancellationMode.zod.js +11 -0
- package/dist/billing/v1/generated/models.d.ts +18 -11
- package/dist/billing/v1/generated/models.js +4 -4
- package/dist/billing/v1/generated/validators/cancelSubscriptionRequest.zod.js +2 -2
- package/dist/billing/v1/generated/validators/cancellation.zod.js +2 -2
- package/dist/billing/v1/generated/validators/cancellationCreate.zod.js +2 -2
- package/dist/billing/v1/generated/validators/cancellationMode.zod.d.ts +14 -0
- package/dist/billing/v1/generated/validators/cancellationMode.zod.js +11 -0
- package/dist/billing/v1/generated/validators/cancellationPreviewRequest.zod.js +2 -2
- package/dist/billing/v1/generated/validators/cancellationRefundPreview.zod.js +2 -2
- package/dist/billing/v1/generated/validators/subscriptionCancellation.zod.js +2 -1
- package/dist/compute/v1/generated/functions.d.ts +25 -25
- package/dist/compute/v1/generated/functions.js +101 -38
- package/dist/compute/v1/generated/models.d.ts +85 -10
- package/dist/compute/v1/generated/models.js +4 -4
- package/dist/compute/v1/generated/schemas.zod.d.ts +52 -10
- package/dist/compute/v1/generated/schemas.zod.js +52 -10
- package/dist/compute/v1/generated/validators/cancellationMode.zod.d.ts +30 -0
- package/dist/compute/v1/generated/validators/cancellationMode.zod.js +27 -0
- package/dist/compute/v1/generated/validators/deleteBackupCapacityPackParams.zod.d.ts +32 -0
- package/dist/compute/v1/generated/validators/deleteBackupCapacityPackParams.zod.js +30 -0
- package/dist/compute/v1/generated/validators/deleteBackupServiceParams.zod.d.ts +32 -0
- package/dist/compute/v1/generated/validators/deleteBackupServiceParams.zod.js +30 -0
- package/dist/compute/v1/generated/validators/deleteDiskParams.zod.d.ts +32 -0
- package/dist/compute/v1/generated/validators/deleteDiskParams.zod.js +30 -0
- package/dist/compute/v1/generated/validators/deleteImageParams.zod.d.ts +32 -0
- package/dist/compute/v1/generated/validators/deleteImageParams.zod.js +30 -0
- package/dist/compute/v1/generated/validators/deleteInstanceParams.zod.d.ts +32 -0
- package/dist/compute/v1/generated/validators/deleteInstanceParams.zod.js +30 -0
- package/dist/compute/v1/generated/validators/deleteSnapshotQuotaParams.zod.d.ts +32 -0
- package/dist/compute/v1/generated/validators/deleteSnapshotQuotaParams.zod.js +30 -0
- package/dist/compute/v1/generated/validators/releaseFloatingIpParams.zod.d.ts +32 -0
- package/dist/compute/v1/generated/validators/releaseFloatingIpParams.zod.js +30 -0
- package/dist/compute/v1/generated/validators/resourceCancellation.zod.js +2 -3
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Billing Cancellation Types
|
|
6
|
+
* Shared cancellation choices for services that end subscriptions through Billing. Types only; this document declares no operations.
|
|
7
|
+
* OpenAPI spec version: v1
|
|
8
|
+
*/
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Billing Cancellation Types
|
|
6
|
+
* Shared cancellation choices for services that end subscriptions through Billing. Types only; this document declares no operations.
|
|
7
|
+
* OpenAPI spec version: v1
|
|
8
|
+
*/
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Billing Cancellation Types
|
|
5
|
+
* Shared cancellation choices for services that end subscriptions through Billing. Types only; this document declares no operations.
|
|
6
|
+
* OpenAPI spec version: v1
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* When subscriptions end. immediate ends them now and refunds the unused value under their refund terms; period_end
|
|
10
|
+
* ends them at the end of their paid period. The cancellation terms fixed when a subscription was bought decide which
|
|
11
|
+
* modes it allows: a pay-as-you-go subscription ends only immediately, and a prepaid one whose terms allow only the
|
|
12
|
+
* end of its paid period ends only then. Billing refuses a mode the terms do not allow with HTTP 422
|
|
13
|
+
* BILLING_CANCELLATION_MODE_FIXED.
|
|
14
|
+
*/
|
|
15
|
+
export type CancellationMode = (typeof CancellationMode)[keyof typeof CancellationMode];
|
|
16
|
+
export declare const CancellationMode: {
|
|
17
|
+
readonly immediate: "immediate";
|
|
18
|
+
readonly period_end: "period_end";
|
|
19
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Billing Cancellation Types
|
|
6
|
+
* Shared cancellation choices for services that end subscriptions through Billing. Types only; this document declares no operations.
|
|
7
|
+
* OpenAPI spec version: v1
|
|
8
|
+
*/
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Billing Cancellation Types
|
|
6
|
+
* Shared cancellation choices for services that end subscriptions through Billing. Types only; this document declares no operations.
|
|
7
|
+
* OpenAPI spec version: v1
|
|
8
|
+
*/
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Billing Cancellation Types
|
|
5
|
+
* Shared cancellation choices for services that end subscriptions through Billing. Types only; this document declares no operations.
|
|
6
|
+
* OpenAPI spec version: v1
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const CancellationMode: zod.ZodEnum<{
|
|
10
|
+
immediate: "immediate";
|
|
11
|
+
period_end: "period_end";
|
|
12
|
+
}>;
|
|
13
|
+
export type CancellationMode = zod.input<typeof CancellationMode>;
|
|
14
|
+
export type CancellationModeOutput = zod.output<typeof CancellationMode>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Billing Cancellation Types
|
|
5
|
+
* Shared cancellation choices for services that end subscriptions through Billing. Types only; this document declares no operations.
|
|
6
|
+
* OpenAPI spec version: v1
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export const CancellationMode = zod
|
|
10
|
+
.enum(["immediate", "period_end"])
|
|
11
|
+
.describe("When subscriptions end. immediate ends them now and refunds the unused value under their refund terms; period_end\nends them at the end of their paid period. The cancellation terms fixed when a subscription was bought decide which\nmodes it allows: a pay-as-you-go subscription ends only immediately, and a prepaid one whose terms allow only the\nend of its paid period ends only then. Billing refuses a mode the terms do not allow with HTTP 422\nBILLING_CANCELLATION_MODE_FIXED.");
|
|
@@ -313,6 +313,18 @@ export interface Quote {
|
|
|
313
313
|
/** `complete`: tax is calculated for the billing account's invoice contact, or for `address` without an account. `requires_location_inputs`: a quote without an account or `address`, which leaves out tax that would be added; tax already contained in a price is included. */
|
|
314
314
|
tax_status: QuoteTaxStatus;
|
|
315
315
|
}
|
|
316
|
+
/**
|
|
317
|
+
* When subscriptions end. immediate ends them now and refunds the unused value under their refund terms; period_end
|
|
318
|
+
* ends them at the end of their paid period. The cancellation terms fixed when a subscription was bought decide which
|
|
319
|
+
* modes it allows: a pay-as-you-go subscription ends only immediately, and a prepaid one whose terms allow only the
|
|
320
|
+
* end of its paid period ends only then. Billing refuses a mode the terms do not allow with HTTP 422
|
|
321
|
+
* BILLING_CANCELLATION_MODE_FIXED.
|
|
322
|
+
*/
|
|
323
|
+
export type CancellationMode = (typeof CancellationMode)[keyof typeof CancellationMode];
|
|
324
|
+
export declare const CancellationMode: {
|
|
325
|
+
readonly immediate: "immediate";
|
|
326
|
+
readonly period_end: "period_end";
|
|
327
|
+
};
|
|
316
328
|
/**
|
|
317
329
|
* What ending these subscriptions together would return, for one mode; preview `immediate` and `period_end` separately to compare. Refused with 409 `BILLING_SUBSCRIPTION_OPERATION_PENDING` when a subscription is already being canceled (`meta.cancellation_id`), is being reclaimed (`meta.reason` `reclaim_requested`) or has a paid change waiting to switch (`meta.order_id`).
|
|
318
330
|
*/
|
|
@@ -328,7 +340,7 @@ export interface CancellationPreviewRequest {
|
|
|
328
340
|
* @maxItems 50
|
|
329
341
|
*/
|
|
330
342
|
subscription_ids: string[];
|
|
331
|
-
mode:
|
|
343
|
+
mode: CancellationMode;
|
|
332
344
|
}
|
|
333
345
|
/**
|
|
334
346
|
* Which object this is, together with what a person currently calls it.
|
|
@@ -383,7 +395,7 @@ export interface CancellationRefundPreviewItem {
|
|
|
383
395
|
* Metered and one-time subscriptions show zero; their usage until release is charged as usual.
|
|
384
396
|
*/
|
|
385
397
|
export interface CancellationRefundPreview {
|
|
386
|
-
mode:
|
|
398
|
+
mode: CancellationMode;
|
|
387
399
|
/** For `period_end`, when release begins, the end of the paid terms. */
|
|
388
400
|
scheduled_at?: string;
|
|
389
401
|
/** For `immediate`, the second the refund is computed as of. Give it when creating the cancellation. */
|
|
@@ -405,7 +417,7 @@ export interface CancellationCreate {
|
|
|
405
417
|
* @maxItems 50
|
|
406
418
|
*/
|
|
407
419
|
subscription_ids: string[];
|
|
408
|
-
mode:
|
|
420
|
+
mode: CancellationMode;
|
|
409
421
|
/** For `immediate`, the quote's `proration_date`: a whole second, not in the future and at most ten minutes old; the refund is computed as of it. Now when omitted. */
|
|
410
422
|
proration_date?: string;
|
|
411
423
|
/** The quote's `refundable_amount`; the cancellation is refused when the refund differs. */
|
|
@@ -485,7 +497,7 @@ export interface CancellationItem {
|
|
|
485
497
|
export interface Cancellation {
|
|
486
498
|
id: string;
|
|
487
499
|
status: CancellationStatus;
|
|
488
|
-
mode:
|
|
500
|
+
mode: CancellationMode;
|
|
489
501
|
scheduled_at?: string;
|
|
490
502
|
/** For `immediate`, the second the refund is computed as of. */
|
|
491
503
|
proration_date?: string;
|
|
@@ -527,11 +539,6 @@ export declare const SubscriptionCancellationStatus: {
|
|
|
527
539
|
readonly completed: "completed";
|
|
528
540
|
readonly canceled: "canceled";
|
|
529
541
|
};
|
|
530
|
-
export type SubscriptionCancellationMode = (typeof SubscriptionCancellationMode)[keyof typeof SubscriptionCancellationMode];
|
|
531
|
-
export declare const SubscriptionCancellationMode: {
|
|
532
|
-
readonly immediate: "immediate";
|
|
533
|
-
readonly period_end: "period_end";
|
|
534
|
-
};
|
|
535
542
|
/**
|
|
536
543
|
* The latest cancellation including the subscription, with this subscription's item: `id` is the item and `cancellation_id` the cancellation. scheduled_at is the intended time and effective_at the confirmed end of service.
|
|
537
544
|
*/
|
|
@@ -542,7 +549,7 @@ export interface SubscriptionCancellation {
|
|
|
542
549
|
id: string;
|
|
543
550
|
subscription_id: string;
|
|
544
551
|
status: SubscriptionCancellationStatus;
|
|
545
|
-
mode:
|
|
552
|
+
mode: CancellationMode;
|
|
546
553
|
requested_at: string;
|
|
547
554
|
scheduled_at?: string;
|
|
548
555
|
effective_at?: string;
|
|
@@ -3218,7 +3225,7 @@ export interface RateSearch {
|
|
|
3218
3225
|
page_size?: number;
|
|
3219
3226
|
}
|
|
3220
3227
|
export interface CancelSubscriptionRequest {
|
|
3221
|
-
mode:
|
|
3228
|
+
mode: CancellationMode;
|
|
3222
3229
|
/** For immediate cancellation, the quoted whole-second refund basis. Now when omitted. */
|
|
3223
3230
|
proration_date?: string;
|
|
3224
3231
|
/** The cancellation quote's refundable amount, including an explicit zero. */
|
|
@@ -48,6 +48,10 @@ export const QuotedDiscountEligibility = {
|
|
|
48
48
|
confirmed: "confirmed",
|
|
49
49
|
unverified: "unverified",
|
|
50
50
|
};
|
|
51
|
+
export const CancellationMode = {
|
|
52
|
+
immediate: "immediate",
|
|
53
|
+
period_end: "period_end",
|
|
54
|
+
};
|
|
51
55
|
export const CancellationStatus = {
|
|
52
56
|
requested: "requested",
|
|
53
57
|
scheduled: "scheduled",
|
|
@@ -77,10 +81,6 @@ export const SubscriptionCancellationStatus = {
|
|
|
77
81
|
completed: "completed",
|
|
78
82
|
canceled: "canceled",
|
|
79
83
|
};
|
|
80
|
-
export const SubscriptionCancellationMode = {
|
|
81
|
-
immediate: "immediate",
|
|
82
|
-
period_end: "period_end",
|
|
83
|
-
};
|
|
84
84
|
export const BillingAccountStatus = {
|
|
85
85
|
active: "active",
|
|
86
86
|
suspended: "suspended",
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
|
-
import {
|
|
9
|
+
import { CancellationMode } from "./cancellationMode.zod.js";
|
|
10
10
|
import { Money } from "./money.zod.js";
|
|
11
11
|
export const cancelSubscriptionRequestExpectedRefundableAmountTwoRegExp = new RegExp("^[0-9]{1,15}([.][0-9]{1,10})?$");
|
|
12
12
|
export const cancelSubscriptionRequestReasonMax = 1024;
|
|
13
13
|
export const CancelSubscriptionRequest = zod.strictObject({
|
|
14
|
-
mode:
|
|
14
|
+
mode: CancellationMode,
|
|
15
15
|
proration_date: zod.iso
|
|
16
16
|
.datetime({ offset: true })
|
|
17
17
|
.optional()
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
import { CancellationItem } from "./cancellationItem.zod.js";
|
|
10
|
-
import {
|
|
10
|
+
import { CancellationMode } from "./cancellationMode.zod.js";
|
|
11
11
|
import { Money } from "./money.zod.js";
|
|
12
12
|
export const Cancellation = zod
|
|
13
13
|
.strictObject({
|
|
14
14
|
id: zod.uuid(),
|
|
15
15
|
status: zod.enum(["requested", "scheduled", "releasing", "completed", "canceled", "failed"]),
|
|
16
|
-
mode:
|
|
16
|
+
mode: CancellationMode,
|
|
17
17
|
scheduled_at: zod.iso.datetime({ offset: true }).optional(),
|
|
18
18
|
proration_date: zod.iso
|
|
19
19
|
.datetime({ offset: true })
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
|
-
import {
|
|
9
|
+
import { CancellationMode } from "./cancellationMode.zod.js";
|
|
10
10
|
import { Money } from "./money.zod.js";
|
|
11
11
|
export const cancellationCreateSubscriptionIdsMax = 50;
|
|
12
12
|
export const cancellationCreateExpectedRefundableAmountTwoRegExp = new RegExp("^[0-9]{1,15}([.][0-9]{1,10})?$");
|
|
@@ -17,7 +17,7 @@ export const CancellationCreate = zod.strictObject({
|
|
|
17
17
|
.min(1)
|
|
18
18
|
.max(cancellationCreateSubscriptionIdsMax)
|
|
19
19
|
.describe("As in the quote."),
|
|
20
|
-
mode:
|
|
20
|
+
mode: CancellationMode,
|
|
21
21
|
proration_date: zod.iso
|
|
22
22
|
.datetime({ offset: true })
|
|
23
23
|
.optional()
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Billing API
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes, renewals and cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
|
+
* OpenAPI spec version: v1
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const CancellationMode: zod.ZodEnum<{
|
|
10
|
+
immediate: "immediate";
|
|
11
|
+
period_end: "period_end";
|
|
12
|
+
}>;
|
|
13
|
+
export type CancellationMode = zod.input<typeof CancellationMode>;
|
|
14
|
+
export type CancellationModeOutput = zod.output<typeof CancellationMode>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Billing API
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes, renewals and cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
|
+
* OpenAPI spec version: v1
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export const CancellationMode = zod
|
|
10
|
+
.enum(["immediate", "period_end"])
|
|
11
|
+
.describe("When subscriptions end. immediate ends them now and refunds the unused value under their refund terms; period_end\nends them at the end of their paid period. The cancellation terms fixed when a subscription was bought decide which\nmodes it allows: a pay-as-you-go subscription ends only immediately, and a prepaid one whose terms allow only the\nend of its paid period ends only then. Billing refuses a mode the terms do not allow with HTTP 422\nBILLING_CANCELLATION_MODE_FIXED.");
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
|
-
import {
|
|
9
|
+
import { CancellationMode } from "./cancellationMode.zod.js";
|
|
10
10
|
export const cancellationPreviewRequestSubscriptionIdsMax = 50;
|
|
11
11
|
export const CancellationPreviewRequest = zod
|
|
12
12
|
.strictObject({
|
|
@@ -19,6 +19,6 @@ export const CancellationPreviewRequest = zod
|
|
|
19
19
|
.min(1)
|
|
20
20
|
.max(cancellationPreviewRequestSubscriptionIdsMax)
|
|
21
21
|
.describe("The subscriptions to end together, all of one service, including every subscription released with a resource."),
|
|
22
|
-
mode:
|
|
22
|
+
mode: CancellationMode,
|
|
23
23
|
})
|
|
24
24
|
.describe("What ending these subscriptions together would return, for one mode; preview `immediate` and `period_end` separately to compare. Refused with 409 `BILLING_SUBSCRIPTION_OPERATION_PENDING` when a subscription is already being canceled (`meta.cancellation_id`), is being reclaimed (`meta.reason` `reclaim_requested`) or has a paid change waiting to switch (`meta.order_id`).");
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
|
-
import {
|
|
9
|
+
import { CancellationMode } from "./cancellationMode.zod.js";
|
|
10
10
|
import { CancellationRefundPreviewItem } from "./cancellationRefundPreviewItem.zod.js";
|
|
11
11
|
import { Money } from "./money.zod.js";
|
|
12
12
|
export const CancellationRefundPreview = zod
|
|
13
13
|
.strictObject({
|
|
14
|
-
mode:
|
|
14
|
+
mode: CancellationMode,
|
|
15
15
|
scheduled_at: zod.iso
|
|
16
16
|
.datetime({ offset: true })
|
|
17
17
|
.optional()
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
|
+
import { CancellationMode } from "./cancellationMode.zod.js";
|
|
9
10
|
export const SubscriptionCancellation = zod
|
|
10
11
|
.strictObject({
|
|
11
12
|
reason: zod.string().optional(),
|
|
@@ -16,7 +17,7 @@ export const SubscriptionCancellation = zod
|
|
|
16
17
|
id: zod.uuid(),
|
|
17
18
|
subscription_id: zod.uuid(),
|
|
18
19
|
status: zod.enum(["requested", "scheduled", "releasing", "failed", "completed", "canceled"]),
|
|
19
|
-
mode:
|
|
20
|
+
mode: CancellationMode,
|
|
20
21
|
requested_at: zod.iso.datetime({ offset: true }),
|
|
21
22
|
scheduled_at: zod.iso.datetime({ offset: true }).optional(),
|
|
22
23
|
effective_at: zod.iso.datetime({ offset: true }).optional(),
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* - **Passwords are returned once.** A password generated by the platform during creation or rebuild appears only in that response. Store it immediately.
|
|
22
22
|
* OpenAPI spec version: 1.0.0
|
|
23
23
|
*/
|
|
24
|
-
import type { AllocateFloatingIPRequestBody, AllocateFloatingIPResponseBody, AttachDiskRequestBody, AttachFloatingIPRequestBody, AttachPortRequestBody, BackupCapacityPackListResponseBody, BackupListResponseBody, BackupResource, BackupService, BindFloatingIPRequestBody, CommandResultResponseBody, ConflictResponse, ConsoleOutputResponseBody, ConsoleResponseBody, CreateBackupCapacityPackRequestBody, CreateBackupCapacityPackResponseBody, CreateBackupRequestBody, CreateBackupServiceRequestBody, CreateBackupServiceResponseBody, CreateDiskRequestBody, CreateDiskResponseBody, CreateImageRequestBody, CreateImageResponseBody, CreatePeeringRequestBody, CreatePortRequestBody, CreatePrivateNetworkRequestBody, CreateRouteRequestBody, CreateSecurityGroupRequestBody, CreateSecurityRuleRequestBody, CreateSnapshotRequestBody, CreateSubnetRequestBody, DeleteDiskResponseBody, DeleteImageResponseBody, DeleteInstanceResponseBody, DiskAttachmentList, DiskListResponseBody, DiskResource, DiskTypeListResponseBody, DiskTypeResource, Error, FloatingIPListResponseBody, FloatingIPResource, GetInstanceConsoleOutputParams, IPv4PoolListResponseBody, IPv6ResponseBody, ImageListResponseBody, ImageResource, InstanceListResponseBody, InstanceResource, InstanceTypeListResponseBody, LaunchInstanceRequestBody, LaunchInstanceResponseBody, ListAvailabilityZonesParams, ListBackupCapacityPacksParams, ListBackupsParams, ListDiskTypesParams, ListDisksParams, ListFloatingIpsParams, ListImagesParams, ListInstanceDisksParams, ListInstancePortsParams, ListInstanceTypesParams, ListInstancesParams, ListIpv4PoolsParams, ListOperationLogsParams, ListPeeringsParams, ListPortsParams, ListPrivateNetworksParams, ListRegionsParams, ListRoutesParams, ListSecurityGroupRulesParams, ListSecurityGroupsParams, ListSnapshotsParams, ListSubnetsParams, NextFreeCidrResponseBody, OperationLogListResponseBody, PeeringListResponseBody, PeeringResource, PortAttachmentList, PortListResponseBody, PortResource, PowerRequest, PrivateNetworkListResponseBody, PrivateNetworkResource, RebootInstanceRequestBody, RebuildInstanceRequestBody, RebuildInstanceResponseBody, RegionListResponseBody, ReleaseFloatingIPResponseBody, RenameBackupRequestBody, RenameDiskRequestBody, RenameImageRequestBody, RenameInstanceRequestBody, RenamePrivateNetworkRequestBody, RenameSecurityGroupRequestBody, RenameSnapshotRequestBody, ResetPasswordRequestBody, ResetPasswordResponseBody, ResizeDiskRequestBody, ResizeDiskResponseBody, ResizeInstanceRequestBody, ResizeInstanceResponseBody, ResourceCancellation, RestoreBackupRequestBody, RevertDiskRequestBody, RouteListResponseBody, RouteResource, RunCommandRequestBody, SecurityGroupListResponseBody, SecurityGroupResource, SecurityRuleListResponseBody, SecurityRuleResource, SetFloatingIPBandwidthRequestBody, SetFloatingIPBandwidthResponseBody, SetInstanceLabelsRequestBody, SetInstanceNotesRequestBody, SetSnapshotQuotaRequestBody, SetSnapshotQuotaResponseBody, SnapshotListResponseBody, SnapshotQuota, SnapshotResource, SubnetListResponseBody, SubnetResource, SuggestSubnetCidrParams, ZoneListResponseBody } from "./models.js";
|
|
24
|
+
import type { AllocateFloatingIPRequestBody, AllocateFloatingIPResponseBody, AttachDiskRequestBody, AttachFloatingIPRequestBody, AttachPortRequestBody, BackupCapacityPackListResponseBody, BackupListResponseBody, BackupResource, BackupService, BindFloatingIPRequestBody, CommandResultResponseBody, ConflictResponse, ConsoleOutputResponseBody, ConsoleResponseBody, CreateBackupCapacityPackRequestBody, CreateBackupCapacityPackResponseBody, CreateBackupRequestBody, CreateBackupServiceRequestBody, CreateBackupServiceResponseBody, CreateDiskRequestBody, CreateDiskResponseBody, CreateImageRequestBody, CreateImageResponseBody, CreatePeeringRequestBody, CreatePortRequestBody, CreatePrivateNetworkRequestBody, CreateRouteRequestBody, CreateSecurityGroupRequestBody, CreateSecurityRuleRequestBody, CreateSnapshotRequestBody, CreateSubnetRequestBody, DeleteBackupCapacityPackParams, DeleteBackupServiceParams, DeleteDiskParams, DeleteDiskResponseBody, DeleteImageParams, DeleteImageResponseBody, DeleteInstanceParams, DeleteInstanceResponseBody, DeleteSnapshotQuotaParams, DiskAttachmentList, DiskListResponseBody, DiskResource, DiskTypeListResponseBody, DiskTypeResource, Error, FloatingIPListResponseBody, FloatingIPResource, GetInstanceConsoleOutputParams, IPv4PoolListResponseBody, IPv6ResponseBody, ImageListResponseBody, ImageResource, InstanceListResponseBody, InstanceResource, InstanceTypeListResponseBody, LaunchInstanceRequestBody, LaunchInstanceResponseBody, ListAvailabilityZonesParams, ListBackupCapacityPacksParams, ListBackupsParams, ListDiskTypesParams, ListDisksParams, ListFloatingIpsParams, ListImagesParams, ListInstanceDisksParams, ListInstancePortsParams, ListInstanceTypesParams, ListInstancesParams, ListIpv4PoolsParams, ListOperationLogsParams, ListPeeringsParams, ListPortsParams, ListPrivateNetworksParams, ListRegionsParams, ListRoutesParams, ListSecurityGroupRulesParams, ListSecurityGroupsParams, ListSnapshotsParams, ListSubnetsParams, NextFreeCidrResponseBody, OperationLogListResponseBody, PeeringListResponseBody, PeeringResource, PortAttachmentList, PortListResponseBody, PortResource, PowerRequest, PrivateNetworkListResponseBody, PrivateNetworkResource, RebootInstanceRequestBody, RebuildInstanceRequestBody, RebuildInstanceResponseBody, RegionListResponseBody, ReleaseFloatingIPResponseBody, ReleaseFloatingIpParams, RenameBackupRequestBody, RenameDiskRequestBody, RenameImageRequestBody, RenameInstanceRequestBody, RenamePrivateNetworkRequestBody, RenameSecurityGroupRequestBody, RenameSnapshotRequestBody, ResetPasswordRequestBody, ResetPasswordResponseBody, ResizeDiskRequestBody, ResizeDiskResponseBody, ResizeInstanceRequestBody, ResizeInstanceResponseBody, ResourceCancellation, RestoreBackupRequestBody, RevertDiskRequestBody, RouteListResponseBody, RouteResource, RunCommandRequestBody, SecurityGroupListResponseBody, SecurityGroupResource, SecurityRuleListResponseBody, SecurityRuleResource, SetFloatingIPBandwidthRequestBody, SetFloatingIPBandwidthResponseBody, SetInstanceLabelsRequestBody, SetInstanceNotesRequestBody, SetSnapshotQuotaRequestBody, SetSnapshotQuotaResponseBody, SnapshotListResponseBody, SnapshotQuota, SnapshotResource, SubnetListResponseBody, SubnetResource, SuggestSubnetCidrParams, ZoneListResponseBody } from "./models.js";
|
|
25
25
|
export type HTTPStatusCode1xx = 100 | 101 | 102 | 103;
|
|
26
26
|
export type HTTPStatusCode2xx = 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207;
|
|
27
27
|
export type HTTPStatusCode3xx = 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308;
|
|
@@ -340,7 +340,7 @@ export type deleteImageResponseError = (deleteImageResponse409 | deleteImageResp
|
|
|
340
340
|
headers: Headers;
|
|
341
341
|
};
|
|
342
342
|
export type deleteImageResponse = deleteImageResponseSuccess | deleteImageResponseError;
|
|
343
|
-
export declare const getDeleteImageUrl: (imageId: string) => string;
|
|
343
|
+
export declare const getDeleteImageUrl: (imageId: string, params?: DeleteImageParams) => string;
|
|
344
344
|
/**
|
|
345
345
|
* Only a private image of this project can be deleted; any other image is reported as not found.
|
|
346
346
|
*
|
|
@@ -348,10 +348,10 @@ export declare const getDeleteImageUrl: (imageId: string) => string;
|
|
|
348
348
|
*
|
|
349
349
|
* An image whose capture has not finished can be deleted; the capture is aborted. This is the one operation accepted while the `create` operation is in progress.
|
|
350
350
|
*
|
|
351
|
-
* When subscriptions pay for the image, its `release_subscription_ids`, this request cancels them in Billing, and the response carries that cancellation.
|
|
351
|
+
* When subscriptions pay for the image, its `release_subscription_ids`, this request cancels them in Billing as `cancellation_mode` says, and the response carries that cancellation. Canceled now, they are refunded under their terms and release begins when Billing begins the cancellation; canceled at the end of their paid period, the image is kept until `scheduled_at`. Deleting again while the cancellation is open returns it. Without subscriptions, deletion begins at once and `cancellation` is null.
|
|
352
352
|
* @summary Delete a private image
|
|
353
353
|
*/
|
|
354
|
-
export declare const deleteImage: (imageId: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<deleteImageResponse>;
|
|
354
|
+
export declare const deleteImage: (imageId: string, params?: DeleteImageParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<deleteImageResponse>;
|
|
355
355
|
export type listInstanceTypesResponse200 = {
|
|
356
356
|
data: InstanceTypeListResponseBody;
|
|
357
357
|
status: 200;
|
|
@@ -523,14 +523,14 @@ export type deleteDiskResponseError = (deleteDiskResponse409 | deleteDiskRespons
|
|
|
523
523
|
headers: Headers;
|
|
524
524
|
};
|
|
525
525
|
export type deleteDiskResponse = deleteDiskResponseSuccess | deleteDiskResponseError;
|
|
526
|
-
export declare const getDeleteDiskUrl: (diskId: string) => string;
|
|
526
|
+
export declare const getDeleteDiskUrl: (diskId: string, params?: DeleteDiskParams) => string;
|
|
527
527
|
/**
|
|
528
528
|
* Deletion is rejected while the disk is attached, or while snapshots created from it still exist.
|
|
529
529
|
*
|
|
530
|
-
* When subscriptions pay for the disk, its `release_subscription_ids`, this request cancels them in Billing, and the response carries that cancellation.
|
|
530
|
+
* When subscriptions pay for the disk, its `release_subscription_ids`, this request cancels them in Billing as `cancellation_mode` says, and the response carries that cancellation. Canceled now, they are refunded under their terms and release begins when Billing begins the cancellation; canceled at the end of their paid period, the disk is kept until `scheduled_at`. Deleting again while the cancellation is open returns it. Without subscriptions, deletion begins at once and `cancellation` is null.
|
|
531
531
|
* @summary Delete a disk
|
|
532
532
|
*/
|
|
533
|
-
export declare const deleteDisk: (diskId: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<deleteDiskResponse>;
|
|
533
|
+
export declare const deleteDisk: (diskId: string, params?: DeleteDiskParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<deleteDiskResponse>;
|
|
534
534
|
export type resizeDiskResponse202 = {
|
|
535
535
|
data: ResizeDiskResponseBody;
|
|
536
536
|
status: 202;
|
|
@@ -681,14 +681,14 @@ export type releaseFloatingIpResponseError = (releaseFloatingIpResponse409 | rel
|
|
|
681
681
|
headers: Headers;
|
|
682
682
|
};
|
|
683
683
|
export type releaseFloatingIpResponse = releaseFloatingIpResponseSuccess | releaseFloatingIpResponseError;
|
|
684
|
-
export declare const getReleaseFloatingIpUrl: (floatingIpId: string) => string;
|
|
684
|
+
export declare const getReleaseFloatingIpUrl: (floatingIpId: string, params?: ReleaseFloatingIpParams) => string;
|
|
685
685
|
/**
|
|
686
686
|
* Releases the floating IP after unbinding it. The floating IP shows the `delete` operation until it is released.
|
|
687
687
|
*
|
|
688
|
-
* When subscriptions pay for the address, its `release_subscription_ids`, this request cancels them in Billing, and the response carries that cancellation.
|
|
688
|
+
* When subscriptions pay for the address, its `release_subscription_ids`, this request cancels them in Billing as `cancellation_mode` says, and the response carries that cancellation. Canceled now, they are refunded under their terms and release begins when Billing begins the cancellation; canceled at the end of their paid period, the floating IP is kept until `scheduled_at`. Deleting again while the cancellation is open returns it. Without subscriptions, release begins at once and `cancellation` is null.
|
|
689
689
|
* @summary Release a floating IP
|
|
690
690
|
*/
|
|
691
|
-
export declare const releaseFloatingIp: (floatingIpId: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<releaseFloatingIpResponse>;
|
|
691
|
+
export declare const releaseFloatingIp: (floatingIpId: string, params?: ReleaseFloatingIpParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<releaseFloatingIpResponse>;
|
|
692
692
|
export type setFloatingIpBandwidthResponse202 = {
|
|
693
693
|
data: SetFloatingIPBandwidthResponseBody;
|
|
694
694
|
status: 202;
|
|
@@ -881,16 +881,16 @@ export type deleteInstanceResponseError = (deleteInstanceResponse409 | deleteIns
|
|
|
881
881
|
headers: Headers;
|
|
882
882
|
};
|
|
883
883
|
export type deleteInstanceResponse = deleteInstanceResponseSuccess | deleteInstanceResponseError;
|
|
884
|
-
export declare const getDeleteInstanceUrl: (instanceId: string) => string;
|
|
884
|
+
export declare const getDeleteInstanceUrl: (instanceId: string, params?: DeleteInstanceParams) => string;
|
|
885
885
|
/**
|
|
886
886
|
* The system disk is deleted with the instance, and **snapshots created from the system disk are deleted with it**. Data disks are detached and kept, and their snapshots and backups are unaffected. The primary network interface is released with the instance.
|
|
887
887
|
*
|
|
888
888
|
* An instance being captured as a private image cannot be released. Wait for the capture to finish, or delete that image first.
|
|
889
889
|
*
|
|
890
|
-
* When subscriptions pay for the instance, or for a disk deleted with it, its `release_subscription_ids`, this request cancels them in Billing, and the response carries that cancellation.
|
|
890
|
+
* When subscriptions pay for the instance, or for a disk deleted with it, its `release_subscription_ids`, this request cancels them in Billing as `cancellation_mode` says, and the response carries that cancellation. Canceled now, they are refunded under their terms and release begins when Billing begins the cancellation; canceled at the end of their paid period, the instance is kept until `scheduled_at`. Deleting again while the cancellation is open returns it. Without subscriptions, release begins at once and `cancellation` is null.
|
|
891
891
|
* @summary Release an instance
|
|
892
892
|
*/
|
|
893
|
-
export declare const deleteInstance: (instanceId: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<deleteInstanceResponse>;
|
|
893
|
+
export declare const deleteInstance: (instanceId: string, params?: DeleteInstanceParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<deleteInstanceResponse>;
|
|
894
894
|
export type runInstanceCommandResponse200 = {
|
|
895
895
|
data: CommandResultResponseBody;
|
|
896
896
|
status: 200;
|
|
@@ -2057,14 +2057,14 @@ export type deleteSnapshotQuotaResponseError = (deleteSnapshotQuotaResponse409 |
|
|
|
2057
2057
|
headers: Headers;
|
|
2058
2058
|
};
|
|
2059
2059
|
export type deleteSnapshotQuotaResponse = deleteSnapshotQuotaResponseSuccess | deleteSnapshotQuotaResponseError;
|
|
2060
|
-
export declare const getDeleteSnapshotQuotaUrl: (regionId: string) => string;
|
|
2060
|
+
export declare const getDeleteSnapshotQuotaUrl: (regionId: string, params?: DeleteSnapshotQuotaParams) => string;
|
|
2061
2061
|
/**
|
|
2062
|
-
* Cancels the quota's subscription in Billing and returns the cancellation. Refused with 409 `SNAPSHOT_QUOTA_IN_USE` while any snapshot exists in the region; delete the snapshots first. Refused with 409 `SNAPSHOT_QUOTA_NOT_ACTIVE` when no subscription pays for a quota in the region.
|
|
2062
|
+
* Cancels the quota's subscription in Billing as `cancellation_mode` says and returns the cancellation. Refused with 409 `SNAPSHOT_QUOTA_IN_USE` while any snapshot exists in the region; delete the snapshots first. Refused with 409 `SNAPSHOT_QUOTA_NOT_ACTIVE` when no subscription pays for a quota in the region.
|
|
2063
2063
|
*
|
|
2064
|
-
*
|
|
2064
|
+
* Canceled now, it is refunded under its terms; canceled at the end of its paid period, the quota stays in force until `scheduled_at`. Deleting again while the cancellation is open returns it.
|
|
2065
2065
|
* @summary Delete regional snapshot quota
|
|
2066
2066
|
*/
|
|
2067
|
-
export declare const deleteSnapshotQuota: (regionId: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<deleteSnapshotQuotaResponse>;
|
|
2067
|
+
export declare const deleteSnapshotQuota: (regionId: string, params?: DeleteSnapshotQuotaParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<deleteSnapshotQuotaResponse>;
|
|
2068
2068
|
export type getBackupServiceResponse200 = {
|
|
2069
2069
|
data: BackupService;
|
|
2070
2070
|
status: 200;
|
|
@@ -2134,14 +2134,14 @@ export type deleteBackupServiceResponseError = (deleteBackupServiceResponse409 |
|
|
|
2134
2134
|
headers: Headers;
|
|
2135
2135
|
};
|
|
2136
2136
|
export type deleteBackupServiceResponse = deleteBackupServiceResponseSuccess | deleteBackupServiceResponseError;
|
|
2137
|
-
export declare const getDeleteBackupServiceUrl: (regionId: string) => string;
|
|
2137
|
+
export declare const getDeleteBackupServiceUrl: (regionId: string, params?: DeleteBackupServiceParams) => string;
|
|
2138
2138
|
/**
|
|
2139
|
-
* Cancels the service's subscription in Billing and returns the cancellation. Refused with 409 `BACKUP_SERVICE_IN_USE` while any backup is retained in the region; delete the backups first. Capacity packs are deleted separately. Refused with 409 `BACKUP_SERVICE_NOT_ACTIVE` when no subscription pays for a service in the region.
|
|
2139
|
+
* Cancels the service's subscription in Billing as `cancellation_mode` says and returns the cancellation. Refused with 409 `BACKUP_SERVICE_IN_USE` while any backup is retained in the region; delete the backups first. Capacity packs are deleted separately. Refused with 409 `BACKUP_SERVICE_NOT_ACTIVE` when no subscription pays for a service in the region.
|
|
2140
2140
|
*
|
|
2141
|
-
*
|
|
2141
|
+
* Canceled now, it is refunded under its terms; canceled at the end of its paid period, the service stays in force until `scheduled_at`. Deleting again while the cancellation is open returns it.
|
|
2142
2142
|
* @summary Delete the backup service of a region
|
|
2143
2143
|
*/
|
|
2144
|
-
export declare const deleteBackupService: (regionId: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<deleteBackupServiceResponse>;
|
|
2144
|
+
export declare const deleteBackupService: (regionId: string, params?: DeleteBackupServiceParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<deleteBackupServiceResponse>;
|
|
2145
2145
|
export type listBackupCapacityPacksResponse200 = {
|
|
2146
2146
|
data: BackupCapacityPackListResponseBody;
|
|
2147
2147
|
status: 200;
|
|
@@ -2209,14 +2209,14 @@ export type deleteBackupCapacityPackResponseError = (deleteBackupCapacityPackRes
|
|
|
2209
2209
|
headers: Headers;
|
|
2210
2210
|
};
|
|
2211
2211
|
export type deleteBackupCapacityPackResponse = deleteBackupCapacityPackResponseSuccess | deleteBackupCapacityPackResponseError;
|
|
2212
|
-
export declare const getDeleteBackupCapacityPackUrl: (regionId: string, packId: string) => string;
|
|
2212
|
+
export declare const getDeleteBackupCapacityPackUrl: (regionId: string, packId: string, params?: DeleteBackupCapacityPackParams) => string;
|
|
2213
2213
|
/**
|
|
2214
|
-
* Cancels the pack's subscription in Billing and returns the cancellation. Refused with 404 `BACKUP_CAPACITY_PACK_NOT_FOUND` when the project has no pack of this ID in the region, and with 409 `BACKUP_CAPACITY_PACK_ENDED` when the pack has ended.
|
|
2214
|
+
* Cancels the pack's subscription in Billing as `cancellation_mode` says and returns the cancellation. Refused with 404 `BACKUP_CAPACITY_PACK_NOT_FOUND` when the project has no pack of this ID in the region, and with 409 `BACKUP_CAPACITY_PACK_ENDED` when the pack has ended.
|
|
2215
2215
|
*
|
|
2216
|
-
*
|
|
2216
|
+
* Canceled now, it is refunded under its terms; canceled at the end of its paid period, its coverage stays in force until `scheduled_at`. Deleting again while the cancellation is open returns it.
|
|
2217
2217
|
* @summary Delete a backup capacity pack
|
|
2218
2218
|
*/
|
|
2219
|
-
export declare const deleteBackupCapacityPack: (regionId: string, packId: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<deleteBackupCapacityPackResponse>;
|
|
2219
|
+
export declare const deleteBackupCapacityPack: (regionId: string, packId: string, params?: DeleteBackupCapacityPackParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<deleteBackupCapacityPackResponse>;
|
|
2220
2220
|
export type listSnapshotsResponse200 = {
|
|
2221
2221
|
data: SnapshotListResponseBody;
|
|
2222
2222
|
status: 200;
|