@leaflow/sdk 0.207.0 → 0.209.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/account/v1/generated/functions.d.ts +117 -1
- package/dist/account/v1/generated/functions.js +104 -0
- package/dist/account/v1/generated/models.d.ts +85 -0
- package/dist/account/v1/generated/models.js +9 -0
- package/dist/account/v1/generated/schemas.zod.d.ts +68 -0
- package/dist/account/v1/generated/schemas.zod.js +76 -0
- package/dist/account/v1/generated/validators/acceptConsentsRequestBody.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/acceptConsentsRequestBody.zod.js +18 -0
- package/dist/account/v1/generated/validators/acceptInvitationByTokenRequestBody.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/acceptInvitationByTokenRequestBody.zod.js +18 -0
- package/dist/account/v1/generated/validators/acceptedInvitationResponseBody.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/acceptedInvitationResponseBody.zod.js +18 -0
- package/dist/account/v1/generated/validators/accountDeletionObjectionResource.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/accountDeletionObjectionResource.zod.js +18 -0
- package/dist/account/v1/generated/validators/accountDeletionResource.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/accountDeletionResource.zod.js +18 -0
- package/dist/account/v1/generated/validators/accountDeletionState.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/accountDeletionState.zod.js +18 -0
- package/dist/account/v1/generated/validators/accountResource.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/accountResource.zod.js +18 -0
- package/dist/account/v1/generated/validators/agreementListResponseBody.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/agreementListResponseBody.zod.js +18 -0
- package/dist/account/v1/generated/validators/agreementResource.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/agreementResource.zod.js +18 -0
- package/dist/account/v1/generated/validators/applicationResource.zod.d.ts +60 -0
- package/dist/account/v1/generated/validators/applicationResource.zod.js +60 -0
- package/dist/account/v1/generated/validators/authorizeApplicationRequestBody.zod.d.ts +55 -0
- package/dist/account/v1/generated/validators/authorizeApplicationRequestBody.zod.js +53 -0
- package/dist/account/v1/generated/validators/authorizedApplicationResource.zod.d.ts +93 -0
- package/dist/account/v1/generated/validators/authorizedApplicationResource.zod.js +59 -0
- package/dist/account/v1/generated/validators/consentBody.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/consentBody.zod.js +18 -0
- package/dist/account/v1/generated/validators/consentListResponseBody.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/consentListResponseBody.zod.js +18 -0
- package/dist/account/v1/generated/validators/consentResource.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/consentResource.zod.js +18 -0
- package/dist/account/v1/generated/validators/countryOption.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/countryOption.zod.js +18 -0
- package/dist/account/v1/generated/validators/createProjectRequestBody.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/createProjectRequestBody.zod.js +18 -0
- package/dist/account/v1/generated/validators/createSSHKeyRequestBody.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/createSSHKeyRequestBody.zod.js +18 -0
- package/dist/account/v1/generated/validators/cursorPagination.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/cursorPagination.zod.js +18 -0
- package/dist/account/v1/generated/validators/error.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/error.zod.js +18 -0
- package/dist/account/v1/generated/validators/errorStatus.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/errorStatus.zod.js +18 -0
- package/dist/account/v1/generated/validators/fieldViolation.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/fieldViolation.zod.js +18 -0
- package/dist/account/v1/generated/validators/grantResource.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/grantResource.zod.js +18 -0
- package/dist/account/v1/generated/validators/identityVerificationResource.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/identityVerificationResource.zod.js +18 -0
- package/dist/account/v1/generated/validators/invitationPreviewResource.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/invitationPreviewResource.zod.js +18 -0
- package/dist/account/v1/generated/validators/invitationResource.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/invitationResource.zod.js +18 -0
- package/dist/account/v1/generated/validators/languageOption.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/languageOption.zod.js +18 -0
- package/dist/account/v1/generated/validators/lengthAwarePageAuthorizedApplicationResource.zod.d.ts +98 -0
- package/dist/account/v1/generated/validators/lengthAwarePageAuthorizedApplicationResource.zod.js +55 -0
- package/dist/account/v1/generated/validators/lengthAwarePageInvitationResource.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/lengthAwarePageInvitationResource.zod.js +18 -0
- package/dist/account/v1/generated/validators/lengthAwarePageProjectAccessResource.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/lengthAwarePageProjectAccessResource.zod.js +18 -0
- package/dist/account/v1/generated/validators/lengthAwarePageSSHKeyResource.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/lengthAwarePageSSHKeyResource.zod.js +18 -0
- package/dist/account/v1/generated/validators/listAuthorizedApplicationsParams.zod.d.ts +59 -0
- package/dist/account/v1/generated/validators/listAuthorizedApplicationsParams.zod.js +65 -0
- package/dist/account/v1/generated/validators/listMyInvitationsParams.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/listMyInvitationsParams.zod.js +18 -0
- package/dist/account/v1/generated/validators/listProjectsParams.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/listProjectsParams.zod.js +18 -0
- package/dist/account/v1/generated/validators/listSshKeysParams.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/listSshKeysParams.zod.js +18 -0
- package/dist/account/v1/generated/validators/locale.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/locale.zod.js +18 -0
- package/dist/account/v1/generated/validators/localeOptionsResource.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/localeOptionsResource.zod.js +18 -0
- package/dist/account/v1/generated/validators/offsetPagination.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/offsetPagination.zod.js +18 -0
- package/dist/account/v1/generated/validators/previewInvitationByTokenParams.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/previewInvitationByTokenParams.zod.js +18 -0
- package/dist/account/v1/generated/validators/projectAccessList.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/projectAccessList.zod.js +18 -0
- package/dist/account/v1/generated/validators/projectAccessResource.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/projectAccessResource.zod.js +18 -0
- package/dist/account/v1/generated/validators/projectResource.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/projectResource.zod.js +18 -0
- package/dist/account/v1/generated/validators/projectSlugAvailabilityResource.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/projectSlugAvailabilityResource.zod.js +18 -0
- package/dist/account/v1/generated/validators/projectStatus.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/projectStatus.zod.js +18 -0
- package/dist/account/v1/generated/validators/projectTraitResource.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/projectTraitResource.zod.js +18 -0
- package/dist/account/v1/generated/validators/registerRequestBody.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/registerRequestBody.zod.js +18 -0
- package/dist/account/v1/generated/validators/renameSSHKeyRequestBody.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/renameSSHKeyRequestBody.zod.js +18 -0
- package/dist/account/v1/generated/validators/requestAccountDeletionParams.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/requestAccountDeletionParams.zod.js +18 -0
- package/dist/account/v1/generated/validators/resourceRefResource.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/resourceRefResource.zod.js +18 -0
- package/dist/account/v1/generated/validators/ruleResource.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/ruleResource.zod.js +18 -0
- package/dist/account/v1/generated/validators/sSHKeyResource.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/sSHKeyResource.zod.js +18 -0
- package/dist/account/v1/generated/validators/scopedTokenResponseBody.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/scopedTokenResponseBody.zod.js +18 -0
- package/dist/account/v1/generated/validators/searchProjectsRequestBody.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/searchProjectsRequestBody.zod.js +18 -0
- package/dist/account/v1/generated/validators/settingsResource.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/settingsResource.zod.js +18 -0
- package/dist/account/v1/generated/validators/submitIdentityVerificationRequestBody.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/submitIdentityVerificationRequestBody.zod.js +18 -0
- package/dist/account/v1/generated/validators/updateAccountRequestBody.zod.d.ts +18 -0
- package/dist/account/v1/generated/validators/updateAccountRequestBody.zod.js +18 -0
- package/dist/billing/v1/generated/models.d.ts +133 -69
- package/dist/billing/v1/generated/models.js +12 -26
- package/dist/billing/v1/generated/schemas.zod.d.ts +91 -18
- package/dist/billing/v1/generated/schemas.zod.js +132 -14
- package/dist/billing/v1/generated/validators/activeResource.zod.js +2 -1
- package/dist/billing/v1/generated/validators/activeResourceStatus.zod.d.ts +16 -0
- package/dist/billing/v1/generated/validators/activeResourceStatus.zod.js +9 -0
- package/dist/billing/v1/generated/validators/allowance.zod.js +2 -1
- package/dist/billing/v1/generated/validators/allowanceStatus.zod.d.ts +16 -0
- package/dist/billing/v1/generated/validators/allowanceStatus.zod.js +9 -0
- package/dist/billing/v1/generated/validators/creditGrant.zod.js +2 -1
- package/dist/billing/v1/generated/validators/creditGrantStatus.zod.d.ts +16 -0
- package/dist/billing/v1/generated/validators/creditGrantStatus.zod.js +9 -0
- package/dist/billing/v1/generated/validators/creditNote.zod.js +2 -1
- package/dist/billing/v1/generated/validators/creditNoteStatus.zod.d.ts +14 -0
- package/dist/billing/v1/generated/validators/creditNoteStatus.zod.js +9 -0
- package/dist/billing/v1/generated/validators/discount.zod.js +2 -3
- package/dist/billing/v1/generated/validators/discountStatus.zod.d.ts +16 -0
- package/dist/billing/v1/generated/validators/discountStatus.zod.js +11 -0
- package/dist/billing/v1/generated/validators/listAccountDiscountsParams.zod.d.ts +7 -0
- package/dist/billing/v1/generated/validators/listAccountDiscountsParams.zod.js +3 -0
- package/dist/billing/v1/generated/validators/listActiveResourcesParams.zod.d.ts +3 -2
- package/dist/billing/v1/generated/validators/listActiveResourcesParams.zod.js +3 -1
- package/dist/billing/v1/generated/validators/listAllowancesParams.zod.d.ts +3 -2
- package/dist/billing/v1/generated/validators/listAllowancesParams.zod.js +3 -1
- package/dist/billing/v1/generated/validators/listCancellationsParams.zod.d.ts +3 -2
- package/dist/billing/v1/generated/validators/listCancellationsParams.zod.js +4 -1
- package/dist/billing/v1/generated/validators/listCheckoutSessionsParams.zod.d.ts +3 -2
- package/dist/billing/v1/generated/validators/listCheckoutSessionsParams.zod.js +6 -1
- package/dist/billing/v1/generated/validators/listCreditGrantsParams.zod.d.ts +3 -2
- package/dist/billing/v1/generated/validators/listCreditGrantsParams.zod.js +3 -1
- package/dist/billing/v1/generated/validators/listCreditNotesParams.zod.d.ts +5 -0
- package/dist/billing/v1/generated/validators/listCreditNotesParams.zod.js +3 -0
- package/dist/billing/v1/generated/validators/listFeatureGrantsParams.zod.d.ts +3 -2
- package/dist/billing/v1/generated/validators/listFeatureGrantsParams.zod.js +2 -1
- package/dist/billing/v1/generated/validators/listInvoicesParams.zod.d.ts +3 -2
- package/dist/billing/v1/generated/validators/listInvoicesParams.zod.js +2 -1
- package/dist/billing/v1/generated/validators/listOrdersParams.zod.d.ts +3 -2
- package/dist/billing/v1/generated/validators/listOrdersParams.zod.js +2 -1
- package/dist/billing/v1/generated/validators/listPaymentMethodsParams.zod.d.ts +5 -0
- package/dist/billing/v1/generated/validators/listPaymentMethodsParams.zod.js +6 -0
- package/dist/billing/v1/generated/validators/listRefundsParams.zod.d.ts +7 -0
- package/dist/billing/v1/generated/validators/listRefundsParams.zod.js +3 -0
- package/dist/billing/v1/generated/validators/listStatementsParams.zod.d.ts +3 -2
- package/dist/billing/v1/generated/validators/listStatementsParams.zod.js +2 -1
- package/dist/billing/v1/generated/validators/listSubscriptionsParams.zod.d.ts +9 -0
- package/dist/billing/v1/generated/validators/listSubscriptionsParams.zod.js +3 -0
- package/dist/billing/v1/generated/validators/listTopUpsParams.zod.d.ts +7 -0
- package/dist/billing/v1/generated/validators/listTopUpsParams.zod.js +3 -0
- package/dist/billing/v1/generated/validators/listTransactionsParams.zod.d.ts +15 -0
- package/dist/billing/v1/generated/validators/listTransactionsParams.zod.js +6 -0
- package/dist/billing/v1/generated/validators/listWithdrawalsParams.zod.d.ts +9 -0
- package/dist/billing/v1/generated/validators/listWithdrawalsParams.zod.js +3 -0
- package/dist/billing/v1/generated/validators/refund.zod.js +2 -3
- package/dist/billing/v1/generated/validators/refundStatus.zod.d.ts +16 -0
- package/dist/billing/v1/generated/validators/refundStatus.zod.js +11 -0
- package/dist/billing/v1/generated/validators/subscription.zod.js +2 -3
- package/dist/billing/v1/generated/validators/subscriptionStatus.zod.d.ts +18 -0
- package/dist/billing/v1/generated/validators/subscriptionStatus.zod.js +11 -0
- package/dist/billing/v1/generated/validators/topUp.zod.js +2 -3
- package/dist/billing/v1/generated/validators/topUpStatus.zod.d.ts +16 -0
- package/dist/billing/v1/generated/validators/topUpStatus.zod.js +11 -0
- package/dist/billing/v1/generated/validators/transaction.zod.js +2 -4
- package/dist/billing/v1/generated/validators/transactionStatus.zod.d.ts +16 -0
- package/dist/billing/v1/generated/validators/transactionStatus.zod.js +11 -0
- package/dist/billing/v1/generated/validators/withdrawal.zod.js +2 -8
- package/dist/billing/v1/generated/validators/withdrawalStatus.zod.d.ts +18 -0
- package/dist/billing/v1/generated/validators/withdrawalStatus.zod.js +16 -0
- package/dist/compute/v2/generated/functions.d.ts +4 -2
- package/dist/compute/v2/generated/functions.js +3 -18
- package/dist/compute/v2/generated/models.d.ts +29 -9
- package/dist/compute/v2/generated/schemas.zod.d.ts +6 -3
- package/dist/compute/v2/generated/schemas.zod.js +2 -2
- package/dist/compute/v2/generated/validators/createInstanceRequestBody.zod.d.ts +1 -0
- package/dist/compute/v2/generated/validators/createInstanceRequestBody.zod.js +4 -0
- package/dist/compute/v2/generated/validators/createInstanceResponseBody.zod.d.ts +3 -0
- package/dist/compute/v2/generated/validators/createLaunchTemplateRequestBody.zod.d.ts +1 -0
- package/dist/compute/v2/generated/validators/createLaunchTemplateResponseBody.zod.d.ts +1 -0
- package/dist/compute/v2/generated/validators/createPrivateImageResponseBody.zod.d.ts +1 -0
- package/dist/compute/v2/generated/validators/createSecurityGroupRuleRequestBody.zod.js +1 -1
- package/dist/compute/v2/generated/validators/deleteInstanceResponseBody.zod.d.ts +3 -0
- package/dist/compute/v2/generated/validators/deletePrivateImageResponseBody.zod.d.ts +1 -0
- package/dist/compute/v2/generated/validators/instance.zod.d.ts +3 -0
- package/dist/compute/v2/generated/validators/instance.zod.js +10 -0
- package/dist/compute/v2/generated/validators/instanceListResponseBody.zod.d.ts +3 -0
- package/dist/compute/v2/generated/validators/launchTemplateVersion.zod.d.ts +1 -0
- package/dist/compute/v2/generated/validators/launchTemplateVersion.zod.js +4 -0
- package/dist/compute/v2/generated/validators/launchTemplateVersionListResponseBody.zod.d.ts +1 -0
- package/dist/compute/v2/generated/validators/newLaunchTemplateVersion.zod.d.ts +1 -0
- package/dist/compute/v2/generated/validators/newLaunchTemplateVersion.zod.js +4 -0
- package/dist/compute/v2/generated/validators/privateImageListResponseBody.zod.d.ts +1 -0
- package/dist/compute/v2/generated/validators/privateImageResource.zod.d.ts +1 -0
- package/dist/compute/v2/generated/validators/privateImageResource.zod.js +3 -0
- package/dist/compute/v2/generated/validators/publicImageListResponseBody.zod.d.ts +1 -0
- package/dist/compute/v2/generated/validators/publicImageResource.zod.d.ts +1 -0
- package/dist/compute/v2/generated/validators/publicImageResource.zod.js +3 -0
- package/dist/compute/v2/generated/validators/rebuildInstanceRequestBody.zod.d.ts +1 -0
- package/dist/compute/v2/generated/validators/rebuildInstanceRequestBody.zod.js +4 -0
- package/dist/compute/v2/generated/validators/rebuildInstanceResponseBody.zod.d.ts +3 -0
- package/dist/compute/v2/generated/validators/rescueInstanceResponseBody.zod.d.ts +3 -0
- package/dist/compute/v2/generated/validators/updateInstanceResponseBody.zod.d.ts +3 -0
- package/dist/iam/v1/generated/functions.d.ts +9 -2
- package/dist/iam/v1/generated/functions.js +9 -2
- package/dist/iam/v1/generated/models.d.ts +1 -1
- package/dist/iam/v1/generated/schemas.zod.d.ts +9 -2
- package/dist/iam/v1/generated/schemas.zod.js +9 -2
- package/dist/iam/v1/generated/validators/createApplicationRequestBody.zod.js +1 -1
- package/dist/proto/leaflow/fleet/virtualdesktop/datatransfer/v1/datatransfer_pb.d.ts +48 -6
- package/dist/routes.d.ts +32 -0
- package/dist/routes.js +36 -0
- package/package.json +1 -1
- package/dist/compute/v2/generated/validators/rescueInstanceRequestBody.zod.d.ts +0 -42
- package/dist/compute/v2/generated/validators/rescueInstanceRequestBody.zod.js +0 -44
|
@@ -6,10 +6,14 @@
|
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
|
+
import { TransactionStatus } from "./transactionStatus.zod.js";
|
|
10
|
+
import { TransactionType } from "./transactionType.zod.js";
|
|
9
11
|
export const listTransactionsParamsPageDefault = 1;
|
|
10
12
|
export const listTransactionsParamsPageMax = 2147483647;
|
|
11
13
|
export const listTransactionsParamsPageSizeDefault = 50;
|
|
12
14
|
export const listTransactionsParamsPageSizeMax = 200;
|
|
15
|
+
export const listTransactionsParamsTypeMax = 5;
|
|
16
|
+
export const listTransactionsParamsStatusMax = 4;
|
|
13
17
|
export const ListTransactionsParams = zod.strictObject({
|
|
14
18
|
page: zod
|
|
15
19
|
.int()
|
|
@@ -24,4 +28,6 @@ export const ListTransactionsParams = zod.strictObject({
|
|
|
24
28
|
billing_account_id: zod.int().optional(),
|
|
25
29
|
from: zod.iso.datetime({ offset: true }).optional(),
|
|
26
30
|
to: zod.iso.datetime({ offset: true }).optional(),
|
|
31
|
+
type: zod.array(TransactionType).min(1).max(listTransactionsParamsTypeMax).optional(),
|
|
32
|
+
status: zod.array(TransactionStatus).min(1).max(listTransactionsParamsStatusMax).optional(),
|
|
27
33
|
});
|
|
@@ -10,10 +10,19 @@ export declare const listWithdrawalsParamsPageDefault = 1;
|
|
|
10
10
|
export declare const listWithdrawalsParamsPageMax = 2147483647;
|
|
11
11
|
export declare const listWithdrawalsParamsPageSizeDefault = 50;
|
|
12
12
|
export declare const listWithdrawalsParamsPageSizeMax = 200;
|
|
13
|
+
export declare const listWithdrawalsParamsStatusMax = 6;
|
|
13
14
|
export declare const ListWithdrawalsParams: zod.ZodObject<{
|
|
14
15
|
page: zod.ZodDefault<zod.ZodInt>;
|
|
15
16
|
page_size: zod.ZodDefault<zod.ZodInt>;
|
|
16
17
|
billing_account_id: zod.ZodOptional<zod.ZodInt>;
|
|
18
|
+
status: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
|
|
19
|
+
failed: "failed";
|
|
20
|
+
pending: "pending";
|
|
21
|
+
succeeded: "succeeded";
|
|
22
|
+
processing: "processing";
|
|
23
|
+
partially_completed: "partially_completed";
|
|
24
|
+
reversed: "reversed";
|
|
25
|
+
}>>>;
|
|
17
26
|
}, zod.z.core.$strict>;
|
|
18
27
|
export type ListWithdrawalsParams = zod.input<typeof ListWithdrawalsParams>;
|
|
19
28
|
export type ListWithdrawalsParamsOutput = zod.output<typeof ListWithdrawalsParams>;
|
|
@@ -6,10 +6,12 @@
|
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
|
+
import { WithdrawalStatus } from "./withdrawalStatus.zod.js";
|
|
9
10
|
export const listWithdrawalsParamsPageDefault = 1;
|
|
10
11
|
export const listWithdrawalsParamsPageMax = 2147483647;
|
|
11
12
|
export const listWithdrawalsParamsPageSizeDefault = 50;
|
|
12
13
|
export const listWithdrawalsParamsPageSizeMax = 200;
|
|
14
|
+
export const listWithdrawalsParamsStatusMax = 6;
|
|
13
15
|
export const ListWithdrawalsParams = zod.strictObject({
|
|
14
16
|
page: zod
|
|
15
17
|
.int()
|
|
@@ -22,4 +24,5 @@ export const ListWithdrawalsParams = zod.strictObject({
|
|
|
22
24
|
.max(listWithdrawalsParamsPageSizeMax)
|
|
23
25
|
.default(listWithdrawalsParamsPageSizeDefault),
|
|
24
26
|
billing_account_id: zod.int().optional(),
|
|
27
|
+
status: zod.array(WithdrawalStatus).min(1).max(listWithdrawalsParamsStatusMax).optional(),
|
|
25
28
|
});
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
import { Money } from "./money.zod.js";
|
|
10
10
|
import { RefundReason } from "./refundReason.zod.js";
|
|
11
|
+
import { RefundStatus } from "./refundStatus.zod.js";
|
|
11
12
|
import { Transaction } from "./transaction.zod.js";
|
|
12
13
|
export const Refund = zod.strictObject({
|
|
13
14
|
transaction_id: zod.uuid().optional(),
|
|
@@ -32,9 +33,7 @@ export const Refund = zod.strictObject({
|
|
|
32
33
|
.enum(["balance", "gateway"])
|
|
33
34
|
.optional()
|
|
34
35
|
.describe("Use balance_amount, credit_amount and gateway_amount, which also show a refund split between destinations."),
|
|
35
|
-
status:
|
|
36
|
-
.enum(["pending", "processing", "succeeded", "failed"])
|
|
37
|
-
.describe("Summary of the parts in `transactions`.\n\n- `pending`: nothing has been returned yet, and at least one part is in progress.\n- `processing`: some parts have been returned, and at least one is still in progress.\n- `succeeded`: every part has been returned.\n- `failed`: no part is in progress and at least one has failed. What was returned is in\n settled_amount.\n\nReturns to the balance and to credit grants complete shortly after the refund is made; a\nreturn to a payment method completes when the gateway confirms it."),
|
|
36
|
+
status: RefundStatus,
|
|
38
37
|
settled_at: zod.iso
|
|
39
38
|
.datetime({ offset: true })
|
|
40
39
|
.optional()
|
|
@@ -0,0 +1,16 @@
|
|
|
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 and renewals, preview 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 RefundStatus: zod.ZodEnum<{
|
|
10
|
+
failed: "failed";
|
|
11
|
+
pending: "pending";
|
|
12
|
+
succeeded: "succeeded";
|
|
13
|
+
processing: "processing";
|
|
14
|
+
}>;
|
|
15
|
+
export type RefundStatus = zod.input<typeof RefundStatus>;
|
|
16
|
+
export type RefundStatusOutput = zod.output<typeof RefundStatus>;
|
|
@@ -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 and renewals, preview 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 RefundStatus = zod
|
|
10
|
+
.enum(["pending", "processing", "succeeded", "failed"])
|
|
11
|
+
.describe("Summary of the parts in `transactions`.\n\n- `pending`: nothing has been returned yet, and at least one part is in progress.\n- `processing`: some parts have been returned, and at least one is still in progress.\n- `succeeded`: every part has been returned.\n- `failed`: no part is in progress and at least one has failed. What was returned is in\n settled_amount.\n\nReturns to the balance and to credit grants complete shortly after the refund is made; a\nreturn to a payment method completes when the gateway confirms it.");
|
|
@@ -17,6 +17,7 @@ import { RefundPolicy } from "./refundPolicy.zod.js";
|
|
|
17
17
|
import { ScheduledChange } from "./scheduledChange.zod.js";
|
|
18
18
|
import { SubscriptionCancellation } from "./subscriptionCancellation.zod.js";
|
|
19
19
|
import { SubscriptionRestriction } from "./subscriptionRestriction.zod.js";
|
|
20
|
+
import { SubscriptionStatus } from "./subscriptionStatus.zod.js";
|
|
20
21
|
import { UsageType } from "./usageType.zod.js";
|
|
21
22
|
export const subscriptionDiscountedRenewalsRemainingMin = 0;
|
|
22
23
|
export const Subscription = zod
|
|
@@ -107,9 +108,7 @@ export const Subscription = zod
|
|
|
107
108
|
auto_renew: zod
|
|
108
109
|
.boolean()
|
|
109
110
|
.describe("Whether a licensed subscription renews automatically. A metered subscription continues until it is canceled; for it this is true until a cancellation is requested, and cannot be set."),
|
|
110
|
-
status:
|
|
111
|
-
.enum(["pending", "provisioning", "active", "suspended", "canceled", "terminated"])
|
|
112
|
-
.describe("`pending`: the order has not been accepted. `provisioning`: the owning service accepted the order and is delivering. `active`: delivery was confirmed; payment alone does not make a subscription active. `suspended`: service is stopped while a lien restricts its use. `canceled`: cancellation completed, or an undelivered purchase was canceled or failed. `terminated`: an operator or the owning service ended it immediately."),
|
|
111
|
+
status: SubscriptionStatus,
|
|
113
112
|
started_at: zod.iso
|
|
114
113
|
.datetime({ offset: true })
|
|
115
114
|
.nullish()
|
|
@@ -0,0 +1,18 @@
|
|
|
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 and renewals, preview 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 SubscriptionStatus: zod.ZodEnum<{
|
|
10
|
+
active: "active";
|
|
11
|
+
pending: "pending";
|
|
12
|
+
suspended: "suspended";
|
|
13
|
+
canceled: "canceled";
|
|
14
|
+
provisioning: "provisioning";
|
|
15
|
+
terminated: "terminated";
|
|
16
|
+
}>;
|
|
17
|
+
export type SubscriptionStatus = zod.input<typeof SubscriptionStatus>;
|
|
18
|
+
export type SubscriptionStatusOutput = zod.output<typeof SubscriptionStatus>;
|
|
@@ -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 and renewals, preview 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 SubscriptionStatus = zod
|
|
10
|
+
.enum(["pending", "provisioning", "active", "suspended", "canceled", "terminated"])
|
|
11
|
+
.describe("`pending`: the order has not been accepted. `provisioning`: the owning service accepted the order and is delivering. `active`: delivery was confirmed; payment alone does not make a subscription active. `suspended`: service is stopped while a lien restricts its use. `canceled`: cancellation completed, or an undelivered purchase was canceled or failed. `terminated`: an operator or the owning service ended it immediately.");
|
|
@@ -10,6 +10,7 @@ import { AccountIdentity } from "./accountIdentity.zod.js";
|
|
|
10
10
|
import { Money } from "./money.zod.js";
|
|
11
11
|
import { PaymentAction } from "./paymentAction.zod.js";
|
|
12
12
|
import { PaymentCancellationReason } from "./paymentCancellationReason.zod.js";
|
|
13
|
+
import { TopUpStatus } from "./topUpStatus.zod.js";
|
|
13
14
|
export const TopUp = zod
|
|
14
15
|
.strictObject({
|
|
15
16
|
id: zod.uuid(),
|
|
@@ -18,9 +19,7 @@ export const TopUp = zod
|
|
|
18
19
|
amount: Money.describe("What is credited to the account, in its currency."),
|
|
19
20
|
currency: zod.string(),
|
|
20
21
|
remaining_amount: Money.optional().describe("The part of this top-up still in the balance. Pending refunds may hold part of it, so not all of it is necessarily withdrawable."),
|
|
21
|
-
status:
|
|
22
|
-
.enum(["pending", "succeeded", "failed", "canceled"])
|
|
23
|
-
.describe("`pending` until the payment gateway reaches a result; the balance increases on `succeeded`. `failed`: the gateway declined the payment, which is withdrawn at the gateway; create a new top-up to pay another way. `canceled`: withdrawn without collecting money, for the reason in `cancellation_reason`. Unknown gateway outcomes stay `pending`; a browser redirect is not proof of payment. `failed` and `canceled` are final; a payment the gateway collects afterwards is credited as a separate `succeeded` top-up."),
|
|
22
|
+
status: TopUpStatus,
|
|
24
23
|
cancellation_reason: PaymentCancellationReason.optional(),
|
|
25
24
|
payment_gateway: zod.string().optional().describe("Which payment gateway collected it."),
|
|
26
25
|
method_type: zod
|
|
@@ -0,0 +1,16 @@
|
|
|
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 and renewals, preview 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 TopUpStatus: zod.ZodEnum<{
|
|
10
|
+
failed: "failed";
|
|
11
|
+
pending: "pending";
|
|
12
|
+
canceled: "canceled";
|
|
13
|
+
succeeded: "succeeded";
|
|
14
|
+
}>;
|
|
15
|
+
export type TopUpStatus = zod.input<typeof TopUpStatus>;
|
|
16
|
+
export type TopUpStatusOutput = zod.output<typeof TopUpStatus>;
|
|
@@ -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 and renewals, preview 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 TopUpStatus = zod
|
|
10
|
+
.enum(["pending", "succeeded", "failed", "canceled"])
|
|
11
|
+
.describe("`pending` until the payment gateway reaches a result; the balance increases on `succeeded`. `failed`: the gateway declined the payment, which is withdrawn at the gateway; create a new top-up to pay another way. `canceled`: withdrawn without collecting money, for the reason in `cancellation_reason`. Unknown gateway outcomes stay `pending`; a browser redirect is not proof of payment. `failed` and `canceled` are final; a payment the gateway collects afterwards is credited as a separate `succeeded` top-up.");
|
|
@@ -9,6 +9,7 @@ import * as zod from "zod";
|
|
|
9
9
|
import { Money } from "./money.zod.js";
|
|
10
10
|
import { ObjectIdentity } from "./objectIdentity.zod.js";
|
|
11
11
|
import { PaymentCancellationReason } from "./paymentCancellationReason.zod.js";
|
|
12
|
+
import { TransactionStatus } from "./transactionStatus.zod.js";
|
|
12
13
|
import { TransactionType } from "./transactionType.zod.js";
|
|
13
14
|
export const Transaction = zod
|
|
14
15
|
.strictObject({
|
|
@@ -24,10 +25,7 @@ export const Transaction = zod
|
|
|
24
25
|
.enum(["balance", "credit", "gateway"])
|
|
25
26
|
.optional()
|
|
26
27
|
.describe("Present on refunds: where this part goes. `balance`: the account balance. `credit`: the credit grant that paid, keeping its original expiry. `gateway`: the payment method it was paid with."),
|
|
27
|
-
status:
|
|
28
|
-
.enum(["pending", "succeeded", "failed", "canceled"])
|
|
29
|
-
.optional()
|
|
30
|
-
.describe("`failed`: the operation did not succeed; for a gateway payment, the gateway declined it. `canceled`: a gateway payment was withdrawn without collecting money. Either way, the invoice it was for stays open."),
|
|
28
|
+
status: TransactionStatus.optional(),
|
|
31
29
|
cancellation_reason: PaymentCancellationReason.optional(),
|
|
32
30
|
payment_gateway: zod.string().optional(),
|
|
33
31
|
method_type: zod.string().optional(),
|
|
@@ -0,0 +1,16 @@
|
|
|
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 and renewals, preview 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 TransactionStatus: zod.ZodEnum<{
|
|
10
|
+
failed: "failed";
|
|
11
|
+
pending: "pending";
|
|
12
|
+
canceled: "canceled";
|
|
13
|
+
succeeded: "succeeded";
|
|
14
|
+
}>;
|
|
15
|
+
export type TransactionStatus = zod.input<typeof TransactionStatus>;
|
|
16
|
+
export type TransactionStatusOutput = zod.output<typeof TransactionStatus>;
|
|
@@ -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 and renewals, preview 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 TransactionStatus = zod
|
|
10
|
+
.enum(["pending", "succeeded", "failed", "canceled"])
|
|
11
|
+
.describe("`failed`: the operation did not succeed; for a gateway payment, the gateway declined it. `canceled`: a gateway payment was withdrawn without collecting money. Either way, the invoice it was for stays open.");
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
|
+
import { WithdrawalStatus } from "./withdrawalStatus.zod.js";
|
|
9
10
|
export const withdrawalCurrencyMin = 3;
|
|
10
11
|
export const withdrawalCurrencyMax = 3;
|
|
11
12
|
export const withdrawalAmountRegExp = new RegExp("^[0-9]{1,15}([.][0-9]{1,10})?$");
|
|
@@ -25,14 +26,7 @@ export const Withdrawal = zod
|
|
|
25
26
|
deducted_amount: zod.string().regex(withdrawalDeductedAmountRegExp),
|
|
26
27
|
settled_amount: zod.string().regex(withdrawalSettledAmountRegExp),
|
|
27
28
|
charged_fee_amount: zod.string().regex(withdrawalChargedFeeAmountRegExp),
|
|
28
|
-
status:
|
|
29
|
-
"pending",
|
|
30
|
-
"processing",
|
|
31
|
-
"succeeded",
|
|
32
|
-
"partially_completed",
|
|
33
|
-
"failed",
|
|
34
|
-
"reversed",
|
|
35
|
-
]),
|
|
29
|
+
status: WithdrawalStatus,
|
|
36
30
|
created_at: zod.iso.datetime({ offset: true }),
|
|
37
31
|
completed_at: zod.iso.datetime({ offset: true }).optional(),
|
|
38
32
|
created_by: zod
|
|
@@ -0,0 +1,18 @@
|
|
|
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 and renewals, preview 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 WithdrawalStatus: zod.ZodEnum<{
|
|
10
|
+
failed: "failed";
|
|
11
|
+
pending: "pending";
|
|
12
|
+
succeeded: "succeeded";
|
|
13
|
+
processing: "processing";
|
|
14
|
+
partially_completed: "partially_completed";
|
|
15
|
+
reversed: "reversed";
|
|
16
|
+
}>;
|
|
17
|
+
export type WithdrawalStatus = zod.input<typeof WithdrawalStatus>;
|
|
18
|
+
export type WithdrawalStatusOutput = zod.output<typeof WithdrawalStatus>;
|
|
@@ -0,0 +1,16 @@
|
|
|
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 and renewals, preview 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 WithdrawalStatus = zod.enum([
|
|
10
|
+
"pending",
|
|
11
|
+
"processing",
|
|
12
|
+
"succeeded",
|
|
13
|
+
"partially_completed",
|
|
14
|
+
"failed",
|
|
15
|
+
"reversed",
|
|
16
|
+
]);
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
* Resource identifiers in an error's `meta` (`resource_id`, `volume_id`, `network_interface_id` and the like) are TypeIDs, in the same form as the identifiers in resources. `meta.resource_type` is the resource's name as written in paths, with underscores: `instance`, `volume`, `elastic_ip`, `network_interface`, `virtual_private_cloud`, `private_image`, `volume_backup`, and so on.
|
|
33
33
|
* OpenAPI spec version: 2.0.0
|
|
34
34
|
*/
|
|
35
|
-
import type { AssociateElasticIPRequestBody, AttachNetworkInterfaceRequestBody, AttachVolumeRequestBody, AvailabilityZoneID, AvailabilityZoneListResponseBody, AvailabilityZoneResource, ConflictResponse, ConsoleResponseBody, CreateElasticIPRequestBody, CreateElasticIPResponseBody, CreateInstanceRequestBody, CreateInstanceResponseBody, CreateLaunchTemplateRequestBody, CreateLaunchTemplateResponseBody, CreateNetworkInterfaceAddressRequestBody, CreateNetworkInterfaceRequestBody, CreatePrivateImageRequestBody, CreatePrivateImageResponseBody, CreateSecurityGroupRequestBody, CreateSecurityGroupRuleRequestBody, CreateVirtualPrivateCloudPeeringRequestBody, CreateVirtualPrivateCloudRequestBody, CreateVirtualPrivateCloudRouteRequestBody, CreateVirtualPrivateCloudSubnetRequestBody, CreateVolumeBackupRequestBody, CreateVolumeBackupResponseBody, CreateVolumeRequestBody, CreateVolumeResponseBody, CreateVolumeSnapshotRequestBody, CreateVolumeSnapshotResponseBody, DeleteElasticIPResponseBody, DeleteElasticIpParams, DeleteInstanceParams, DeleteInstanceResponseBody, DeletePrivateImageParams, DeletePrivateImageResponseBody, DeleteVolumeBackupParams, DeleteVolumeBackupResponseBody, DeleteVolumeParams, DeleteVolumeResponseBody, DeleteVolumeSnapshotParams, DeleteVolumeSnapshotResponseBody, ElasticIP, ElasticIPAssociation, ElasticIPID, ElasticIPLine, ElasticIPLineID, ElasticIPLineListResponseBody, ElasticIPListResponseBody, Error, FreeSubnetCidr, GetVirtualPrivateCloudFreeSubnetCidrParams, ImageID, Instance, InstanceFamily, InstanceFamilyID, InstanceFamilyListResponseBody, InstanceID, InstanceListResponseBody, InstanceType, InstanceTypeID, InstanceTypeListResponseBody, LaunchTemplate, LaunchTemplateID, LaunchTemplateListResponseBody, LaunchTemplateVersion, LaunchTemplateVersionListResponseBody, ListAvailabilityZonesParams, ListElasticIpLinesParams, ListElasticIpTrafficUsageParams, ListElasticIpsParams, ListInstanceFamiliesParams, ListInstanceNetworkInterfacesParams, ListInstanceTypesParams, ListInstanceVolumesParams, ListInstancesParams, ListLaunchTemplateVersionsParams, ListLaunchTemplatesParams, ListNetworkInterfacesParams, ListOperationLogsParams, ListPrivateImagesParams, ListPublicImagesParams, ListQuotasParams, ListRegionsParams, ListSecurityGroupRulesParams, ListSecurityGroupsParams, ListVirtualPrivateCloudPeeringsParams, ListVirtualPrivateCloudRoutesParams, ListVirtualPrivateCloudSubnetsParams, ListVirtualPrivateCloudsParams, ListVolumeBackupsParams, ListVolumeSnapshotsParams, ListVolumeTypesParams, ListVolumesParams, NetworkInterface, NetworkInterfaceAddressID, NetworkInterfaceAttachmentList, NetworkInterfaceID, NetworkInterfaceListResponseBody, NewLaunchTemplateVersion, OperationLogID, OperationLogListResponseBody, OperationLogResource, PasswordChoice, PrivateImageListResponseBody, PrivateImageResource, ProjectQuota, ProjectQuotaListResponseBody, PublicImageListResponseBody, PublicImageResource, QuotaResourceType, RebootInstanceRequestBody, RebuildInstanceRequestBody, RebuildInstanceResponseBody, RegionID, RegionListResponseBody, RegionResource,
|
|
35
|
+
import type { AssociateElasticIPRequestBody, AttachNetworkInterfaceRequestBody, AttachVolumeRequestBody, AvailabilityZoneID, AvailabilityZoneListResponseBody, AvailabilityZoneResource, ConflictResponse, ConsoleResponseBody, CreateElasticIPRequestBody, CreateElasticIPResponseBody, CreateInstanceRequestBody, CreateInstanceResponseBody, CreateLaunchTemplateRequestBody, CreateLaunchTemplateResponseBody, CreateNetworkInterfaceAddressRequestBody, CreateNetworkInterfaceRequestBody, CreatePrivateImageRequestBody, CreatePrivateImageResponseBody, CreateSecurityGroupRequestBody, CreateSecurityGroupRuleRequestBody, CreateVirtualPrivateCloudPeeringRequestBody, CreateVirtualPrivateCloudRequestBody, CreateVirtualPrivateCloudRouteRequestBody, CreateVirtualPrivateCloudSubnetRequestBody, CreateVolumeBackupRequestBody, CreateVolumeBackupResponseBody, CreateVolumeRequestBody, CreateVolumeResponseBody, CreateVolumeSnapshotRequestBody, CreateVolumeSnapshotResponseBody, DeleteElasticIPResponseBody, DeleteElasticIpParams, DeleteInstanceParams, DeleteInstanceResponseBody, DeletePrivateImageParams, DeletePrivateImageResponseBody, DeleteVolumeBackupParams, DeleteVolumeBackupResponseBody, DeleteVolumeParams, DeleteVolumeResponseBody, DeleteVolumeSnapshotParams, DeleteVolumeSnapshotResponseBody, ElasticIP, ElasticIPAssociation, ElasticIPID, ElasticIPLine, ElasticIPLineID, ElasticIPLineListResponseBody, ElasticIPListResponseBody, Error, FreeSubnetCidr, GetVirtualPrivateCloudFreeSubnetCidrParams, ImageID, Instance, InstanceFamily, InstanceFamilyID, InstanceFamilyListResponseBody, InstanceID, InstanceListResponseBody, InstanceType, InstanceTypeID, InstanceTypeListResponseBody, LaunchTemplate, LaunchTemplateID, LaunchTemplateListResponseBody, LaunchTemplateVersion, LaunchTemplateVersionListResponseBody, ListAvailabilityZonesParams, ListElasticIpLinesParams, ListElasticIpTrafficUsageParams, ListElasticIpsParams, ListInstanceFamiliesParams, ListInstanceNetworkInterfacesParams, ListInstanceTypesParams, ListInstanceVolumesParams, ListInstancesParams, ListLaunchTemplateVersionsParams, ListLaunchTemplatesParams, ListNetworkInterfacesParams, ListOperationLogsParams, ListPrivateImagesParams, ListPublicImagesParams, ListQuotasParams, ListRegionsParams, ListSecurityGroupRulesParams, ListSecurityGroupsParams, ListVirtualPrivateCloudPeeringsParams, ListVirtualPrivateCloudRoutesParams, ListVirtualPrivateCloudSubnetsParams, ListVirtualPrivateCloudsParams, ListVolumeBackupsParams, ListVolumeSnapshotsParams, ListVolumeTypesParams, ListVolumesParams, NetworkInterface, NetworkInterfaceAddressID, NetworkInterfaceAttachmentList, NetworkInterfaceID, NetworkInterfaceListResponseBody, NewLaunchTemplateVersion, OperationLogID, OperationLogListResponseBody, OperationLogResource, PasswordChoice, PrivateImageListResponseBody, PrivateImageResource, ProjectQuota, ProjectQuotaListResponseBody, PublicImageListResponseBody, PublicImageResource, QuotaResourceType, RebootInstanceRequestBody, RebuildInstanceRequestBody, RebuildInstanceResponseBody, RegionID, RegionListResponseBody, RegionResource, RescueInstanceResponseBody, ResetInstancePasswordResponseBody, RevertVolumeRequestBody, RunInstanceCommandRequestBody, RunInstanceCommandResponseBody, SecurityGroup, SecurityGroupID, SecurityGroupIDOrWildcard, SecurityGroupListResponseBody, SecurityGroupRule, SecurityGroupRuleID, SecurityGroupRuleListResponseBody, SubnetID, TrafficUsageListResponseBody, UpdateElasticIPRequestBody, UpdateElasticIPResponseBody, UpdateInstanceRequestBody, UpdateInstanceResponseBody, UpdateLaunchTemplateRequestBody, UpdateNetworkInterfaceRequestBody, UpdatePrivateImageRequestBody, UpdateSecurityGroupRequestBody, UpdateVirtualPrivateCloudRequestBody, UpdateVirtualPrivateCloudSubnetRequestBody, UpdateVolumeBackupRequestBody, UpdateVolumeRequestBody, UpdateVolumeResponseBody, UpdateVolumeSnapshotRequestBody, VirtualPrivateCloud, VirtualPrivateCloudID, VirtualPrivateCloudIDOrWildcard, VirtualPrivateCloudListResponseBody, VirtualPrivateCloudPeeringID, VirtualPrivateCloudPeeringListResponseBody, VirtualPrivateCloudPeeringResource, VirtualPrivateCloudRouteID, VirtualPrivateCloudRouteListResponseBody, VirtualPrivateCloudRouteResource, VirtualPrivateCloudSubnet, VirtualPrivateCloudSubnetListResponseBody, VolumeAttachmentList, VolumeBackupID, VolumeBackupListResponseBody, VolumeBackupResource, VolumeID, VolumeListResponseBody, VolumeResource, VolumeSnapshotID, VolumeSnapshotListResponseBody, VolumeSnapshotResource, VolumeTypeID, VolumeTypeListResponseBody, VolumeTypeResource } from "./models.js";
|
|
36
36
|
export type HTTPStatusCode1xx = 100 | 101 | 102 | 103;
|
|
37
37
|
export type HTTPStatusCode2xx = 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207;
|
|
38
38
|
export type HTTPStatusCode3xx = 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308;
|
|
@@ -980,12 +980,14 @@ export declare const getRescueInstanceUrl: (instanceId: InstanceID) => string;
|
|
|
980
980
|
*
|
|
981
981
|
* In rescue mode, everything only the instance's own system can take is refused with 409 `INSTANCE_UNRESCUE_REQUIRED`: starting, stopping, rebooting, rebuilding, resetting the password, changing `instance_type_id`, attaching or detaching volumes and network interfaces, capturing a private image and running commands. Leave rescue mode with `:unrescue` first. The console stays available, releasing the instance works as usual, and the instance is charged as when running. A suspension that begins in rescue mode takes the instance out of rescue before stopping it, and starting it again once the suspension ends boots its own system.
|
|
982
982
|
*
|
|
983
|
+
* The rescue environment does not accept passwords. The remote console signs in as `login_username` automatically, and SSH accepts `login_username` with the public keys the instance was created or last rebuilt with.
|
|
984
|
+
*
|
|
983
985
|
* A rescue the compute service could not boot leaves the instance as it was, or in `error`; request it again or reboot the instance.
|
|
984
986
|
*
|
|
985
987
|
* The request does not name an image. The rescue image is the region's enabled rescue image for the architecture of the instance's boot volume. A region and architecture with no enabled rescue image is refused with `RESCUE_IMAGE_NOT_CONFIGURED` (409).
|
|
986
988
|
* @summary Put an instance into rescue mode
|
|
987
989
|
*/
|
|
988
|
-
export declare const rescueInstance: (instanceId: InstanceID,
|
|
990
|
+
export declare const rescueInstance: (instanceId: InstanceID, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<rescueInstanceResponse>;
|
|
989
991
|
export type unrescueInstanceResponse202 = {
|
|
990
992
|
data: Instance;
|
|
991
993
|
status: 202;
|
|
@@ -969,32 +969,17 @@ export const getRescueInstanceUrl = (instanceId) => {
|
|
|
969
969
|
*
|
|
970
970
|
* In rescue mode, everything only the instance's own system can take is refused with 409 `INSTANCE_UNRESCUE_REQUIRED`: starting, stopping, rebooting, rebuilding, resetting the password, changing `instance_type_id`, attaching or detaching volumes and network interfaces, capturing a private image and running commands. Leave rescue mode with `:unrescue` first. The console stays available, releasing the instance works as usual, and the instance is charged as when running. A suspension that begins in rescue mode takes the instance out of rescue before stopping it, and starting it again once the suspension ends boots its own system.
|
|
971
971
|
*
|
|
972
|
+
* The rescue environment does not accept passwords. The remote console signs in as `login_username` automatically, and SSH accepts `login_username` with the public keys the instance was created or last rebuilt with.
|
|
973
|
+
*
|
|
972
974
|
* A rescue the compute service could not boot leaves the instance as it was, or in `error`; request it again or reboot the instance.
|
|
973
975
|
*
|
|
974
976
|
* The request does not name an image. The rescue image is the region's enabled rescue image for the architecture of the instance's boot volume. A region and architecture with no enabled rescue image is refused with `RESCUE_IMAGE_NOT_CONFIGURED` (409).
|
|
975
977
|
* @summary Put an instance into rescue mode
|
|
976
978
|
*/
|
|
977
|
-
export const rescueInstance = async (instanceId,
|
|
978
|
-
const getHeaders = (h) => {
|
|
979
|
-
if (!h)
|
|
980
|
-
return {};
|
|
981
|
-
if (h instanceof Headers)
|
|
982
|
-
return Object.fromEntries(h.entries());
|
|
983
|
-
if (Symbol.iterator in h) {
|
|
984
|
-
return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
985
|
-
}
|
|
986
|
-
const headers = {};
|
|
987
|
-
for (const [name, value] of Object.entries(h)) {
|
|
988
|
-
if (value !== undefined)
|
|
989
|
-
headers[name] = value;
|
|
990
|
-
}
|
|
991
|
-
return headers;
|
|
992
|
-
};
|
|
979
|
+
export const rescueInstance = async (instanceId, options, fetchFn) => {
|
|
993
980
|
const res = await (fetchFn ?? fetch)(getRescueInstanceUrl(instanceId), {
|
|
994
981
|
...options,
|
|
995
982
|
method: "POST",
|
|
996
|
-
headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
|
|
997
|
-
body: JSON.stringify(rescueInstanceRequestBody),
|
|
998
983
|
});
|
|
999
984
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
1000
985
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -1105,6 +1105,15 @@ export interface Instance {
|
|
|
1105
1105
|
launch_template_version_number: number | null;
|
|
1106
1106
|
/** The most recent operation started on the instance; null when none has been recorded. */
|
|
1107
1107
|
latest_operation: LatestOperation | null;
|
|
1108
|
+
/** Whether the instance is configured to join Leaflow Fleet. The value is set at creation and retained across rebuilds unless a rebuild specifies a new value. */
|
|
1109
|
+
join_fleet: boolean;
|
|
1110
|
+
/** Whether the operating system with which the instance was created or last rebuilt supports Leaflow Fleet. The value reflects that specific image build; other builds of the same operating system may differ. */
|
|
1111
|
+
supports_fleet: boolean;
|
|
1112
|
+
/**
|
|
1113
|
+
* The identifier of the Leaflow Fleet machine reserved for this instance. The instance enrolls as this machine on its first boot after creation or a rebuild, and its enrollment status is available from Fleet. Null if the instance is not configured to join Fleet, if its operating system does not support Fleet, or if Fleet was unavailable when the instance was created or last rebuilt.
|
|
1114
|
+
* @nullable
|
|
1115
|
+
*/
|
|
1116
|
+
fleet_machine_id: string | null;
|
|
1108
1117
|
}
|
|
1109
1118
|
/**
|
|
1110
1119
|
* The instance as it is when the deletion is accepted, and the Billing cancellation that releases it when subscriptions pay for it.
|
|
@@ -1326,6 +1335,12 @@ export interface CreateInstanceRequestBody {
|
|
|
1326
1335
|
* @maxLength 4096
|
|
1327
1336
|
*/
|
|
1328
1337
|
description?: string;
|
|
1338
|
+
/**
|
|
1339
|
+
* Whether each instance joins Leaflow Fleet. An instance that joins enrolls automatically on its first boot, without a pairing code, and project members can then access it through Fleet using their own accounts. If omitted, the value from the launch template is used; if the template does not specify one, each instance joins when its image supports Fleet (`supports_fleet`).
|
|
1340
|
+
*
|
|
1341
|
+
* Setting the value to `true` for an image that does not support Fleet, or when booting from an existing volume, is rejected with 422 `INSTANCE_FLEET_UNSUPPORTED` before an order is placed. If Fleet is unavailable when an instance is created, the instance is still created and its `fleet_machine_id` is null.
|
|
1342
|
+
*/
|
|
1343
|
+
join_fleet?: boolean;
|
|
1329
1344
|
checkout?: CheckoutOptions;
|
|
1330
1345
|
}
|
|
1331
1346
|
/**
|
|
@@ -1402,6 +1417,8 @@ export interface ResetInstancePasswordResponseBody {
|
|
|
1402
1417
|
export interface RebuildInstanceRequestBody {
|
|
1403
1418
|
image_id: ImageID;
|
|
1404
1419
|
password?: PasswordChoice;
|
|
1420
|
+
/** Whether the rebuilt instance joins Leaflow Fleet. If omitted, the instance's current value is retained. Because a rebuild replaces the operating system, the instance enrolls as a new Fleet machine and the previous machine is removed from Fleet. Setting the value to `true` for an image that does not support Fleet is rejected with 422 `INSTANCE_FLEET_UNSUPPORTED`. */
|
|
1421
|
+
join_fleet?: boolean;
|
|
1405
1422
|
}
|
|
1406
1423
|
export interface RebuildInstanceResponseBody {
|
|
1407
1424
|
instance: Instance;
|
|
@@ -1453,14 +1470,6 @@ export interface CreateInstanceResponseBody {
|
|
|
1453
1470
|
*/
|
|
1454
1471
|
password: string | null;
|
|
1455
1472
|
}
|
|
1456
|
-
export interface RescueInstanceRequestBody {
|
|
1457
|
-
/**
|
|
1458
|
-
* Password for the rescue environment. Generate and retain a strong password before calling.
|
|
1459
|
-
* @minLength 12
|
|
1460
|
-
* @maxLength 128
|
|
1461
|
-
*/
|
|
1462
|
-
password: string;
|
|
1463
|
-
}
|
|
1464
1473
|
export interface RescueInstanceResponseBody {
|
|
1465
1474
|
/** Login account in the temporary rescue environment. */
|
|
1466
1475
|
login_username: string;
|
|
@@ -1556,6 +1565,8 @@ export interface NewLaunchTemplateVersion {
|
|
|
1556
1565
|
labels?: NewLaunchTemplateVersionLabels;
|
|
1557
1566
|
/** @maxLength 4096 */
|
|
1558
1567
|
description?: string;
|
|
1568
|
+
/** Whether instances created from this version join Leaflow Fleet, as described for `join_fleet` on instance creation. If omitted, instances join when their image supports Fleet. */
|
|
1569
|
+
join_fleet?: boolean;
|
|
1559
1570
|
}
|
|
1560
1571
|
export interface CreateLaunchTemplateRequestBody {
|
|
1561
1572
|
region_id: RegionID;
|
|
@@ -1594,6 +1605,11 @@ export interface LaunchTemplateVersion {
|
|
|
1594
1605
|
* @nullable
|
|
1595
1606
|
*/
|
|
1596
1607
|
description: string | null;
|
|
1608
|
+
/**
|
|
1609
|
+
* Null if the version does not specify a value, in which case the image determines it.
|
|
1610
|
+
* @nullable
|
|
1611
|
+
*/
|
|
1612
|
+
join_fleet: boolean | null;
|
|
1597
1613
|
created_at: string;
|
|
1598
1614
|
}
|
|
1599
1615
|
export interface CreateLaunchTemplateResponseBody {
|
|
@@ -1876,6 +1892,8 @@ export interface PrivateImageResource {
|
|
|
1876
1892
|
min_memory_mib: number;
|
|
1877
1893
|
/** False means a new password can only be set by rebuilding an instance created from this image */
|
|
1878
1894
|
supports_password_reset: boolean;
|
|
1895
|
+
/** Whether instances created from this image can join Leaflow Fleet (`join_fleet`). The value is true when the operating system captured from the source instance supports Fleet */
|
|
1896
|
+
supports_fleet: boolean;
|
|
1879
1897
|
/** Only available images can install instances. A capture is pending until it finishes, then becomes available. Failed means no usable image was produced; failure describes the outcome. Error means the image service broke the image or no longer holds it, and nothing can be installed from it. A value naming an operation in progress (`suspending`, `resuming`, `deleting`) is shown while that operation runs. */
|
|
1880
1898
|
status: PrivateImageResourceStatus;
|
|
1881
1899
|
/**
|
|
@@ -1995,6 +2013,8 @@ export interface PublicImageResource {
|
|
|
1995
2013
|
min_memory_mib: number;
|
|
1996
2014
|
/** False means a new password can only be set by rebuilding an instance created from this image */
|
|
1997
2015
|
supports_password_reset: boolean;
|
|
2016
|
+
/** Whether instances created from this image can join Leaflow Fleet (`join_fleet`). The value applies to this specific image build; other builds of the same operating system may differ */
|
|
2017
|
+
supports_fleet: boolean;
|
|
1998
2018
|
/** `on_sale` images can install new instances. `off_sale` means the platform withdrew the image: it stops new purchases only, and instances already running it keep running and can still be rebuilt onto it. */
|
|
1999
2019
|
sale_status: PublicImageResourceSaleStatus;
|
|
2000
2020
|
created_at: string;
|
|
@@ -2126,7 +2146,7 @@ export interface CreateSecurityGroupRuleRequestBody {
|
|
|
2126
2146
|
/** The last port, or the ICMP code (0–255) when the protocol is ICMP. */
|
|
2127
2147
|
port_range_max?: number;
|
|
2128
2148
|
/**
|
|
2129
|
-
*
|
|
2149
|
+
* An IP address or CIDR block of the rule's IP version. A single address admits only itself, and a block is recorded with its host bits cleared. Every address when omitted.
|
|
2130
2150
|
* @maxLength 64
|
|
2131
2151
|
*/
|
|
2132
2152
|
remote_cidr?: string;
|
|
@@ -514,6 +514,7 @@ export declare const CreateInstanceBody: zod.ZodObject<{
|
|
|
514
514
|
}, zod.z.core.$strict>], "type">>;
|
|
515
515
|
labels: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
516
516
|
description: zod.ZodOptional<zod.ZodString>;
|
|
517
|
+
join_fleet: zod.ZodOptional<zod.ZodBoolean>;
|
|
517
518
|
checkout: zod.ZodOptional<zod.ZodObject<{
|
|
518
519
|
mode: zod.ZodDefault<zod.ZodEnum<{
|
|
519
520
|
automatic: "automatic";
|
|
@@ -731,6 +732,7 @@ export declare const RebuildInstanceBody: zod.ZodObject<{
|
|
|
731
732
|
}>;
|
|
732
733
|
value: zod.ZodString;
|
|
733
734
|
}, zod.z.core.$strict>], "type">>;
|
|
735
|
+
join_fleet: zod.ZodOptional<zod.ZodBoolean>;
|
|
734
736
|
}, zod.z.core.$strict>;
|
|
735
737
|
/**
|
|
736
738
|
* @summary List the volumes attached to an instance
|
|
@@ -831,6 +833,8 @@ export declare const DetachInstanceNetworkInterfaceParams: zod.ZodObject<{
|
|
|
831
833
|
*
|
|
832
834
|
* In rescue mode, everything only the instance's own system can take is refused with 409 `INSTANCE_UNRESCUE_REQUIRED`: starting, stopping, rebooting, rebuilding, resetting the password, changing `instance_type_id`, attaching or detaching volumes and network interfaces, capturing a private image and running commands. Leave rescue mode with `:unrescue` first. The console stays available, releasing the instance works as usual, and the instance is charged as when running. A suspension that begins in rescue mode takes the instance out of rescue before stopping it, and starting it again once the suspension ends boots its own system.
|
|
833
835
|
*
|
|
836
|
+
* The rescue environment does not accept passwords. The remote console signs in as `login_username` automatically, and SSH accepts `login_username` with the public keys the instance was created or last rebuilt with.
|
|
837
|
+
*
|
|
834
838
|
* A rescue the compute service could not boot leaves the instance as it was, or in `error`; request it again or reboot the instance.
|
|
835
839
|
*
|
|
836
840
|
* The request does not name an image. The rescue image is the region's enabled rescue image for the architecture of the instance's boot volume. A region and architecture with no enabled rescue image is refused with `RESCUE_IMAGE_NOT_CONFIGURED` (409).
|
|
@@ -842,9 +846,6 @@ export declare const rescueInstancePathInstanceIdRegExp: RegExp;
|
|
|
842
846
|
export declare const RescueInstanceParams: zod.ZodObject<{
|
|
843
847
|
instanceId: zod.ZodString;
|
|
844
848
|
}, zod.z.core.$strict>;
|
|
845
|
-
export declare const RescueInstanceBody: zod.ZodObject<{
|
|
846
|
-
password: zod.ZodString;
|
|
847
|
-
}, zod.z.core.$strict>;
|
|
848
849
|
/**
|
|
849
850
|
* Restores boot from the original boot volume. Completion is shown by the instance state, and the instance is `unrescuing` until then.
|
|
850
851
|
* @summary Take an instance out of rescue mode
|
|
@@ -916,6 +917,7 @@ export declare const CreateLaunchTemplateBody: zod.ZodObject<{
|
|
|
916
917
|
}, zod.z.core.$strict>>;
|
|
917
918
|
labels: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
918
919
|
description: zod.ZodOptional<zod.ZodString>;
|
|
920
|
+
join_fleet: zod.ZodOptional<zod.ZodBoolean>;
|
|
919
921
|
}, zod.z.core.$strict>;
|
|
920
922
|
}, zod.z.core.$strict>;
|
|
921
923
|
/**
|
|
@@ -1014,6 +1016,7 @@ export declare const CreateLaunchTemplateVersionBody: zod.ZodObject<{
|
|
|
1014
1016
|
}, zod.z.core.$strict>>;
|
|
1015
1017
|
labels: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
1016
1018
|
description: zod.ZodOptional<zod.ZodString>;
|
|
1019
|
+
join_fleet: zod.ZodOptional<zod.ZodBoolean>;
|
|
1017
1020
|
}, zod.z.core.$strict>;
|
|
1018
1021
|
/**
|
|
1019
1022
|
* @summary Get a launch template version
|
|
@@ -55,7 +55,6 @@ import { NewLaunchTemplateVersion } from "./validators/newLaunchTemplateVersion.
|
|
|
55
55
|
import { PasswordChoice } from "./validators/passwordChoice.zod.js";
|
|
56
56
|
import { RebootInstanceRequestBody } from "./validators/rebootInstanceRequestBody.zod.js";
|
|
57
57
|
import { RebuildInstanceRequestBody } from "./validators/rebuildInstanceRequestBody.zod.js";
|
|
58
|
-
import { RescueInstanceRequestBody } from "./validators/rescueInstanceRequestBody.zod.js";
|
|
59
58
|
import { RevertVolumeRequestBody } from "./validators/revertVolumeRequestBody.zod.js";
|
|
60
59
|
import { RunInstanceCommandRequestBody } from "./validators/runInstanceCommandRequestBody.zod.js";
|
|
61
60
|
import { UpdateElasticIPRequestBody } from "./validators/updateElasticIPRequestBody.zod.js";
|
|
@@ -896,6 +895,8 @@ export const DetachInstanceNetworkInterfaceParams = zod.strictObject({
|
|
|
896
895
|
*
|
|
897
896
|
* In rescue mode, everything only the instance's own system can take is refused with 409 `INSTANCE_UNRESCUE_REQUIRED`: starting, stopping, rebooting, rebuilding, resetting the password, changing `instance_type_id`, attaching or detaching volumes and network interfaces, capturing a private image and running commands. Leave rescue mode with `:unrescue` first. The console stays available, releasing the instance works as usual, and the instance is charged as when running. A suspension that begins in rescue mode takes the instance out of rescue before stopping it, and starting it again once the suspension ends boots its own system.
|
|
898
897
|
*
|
|
898
|
+
* The rescue environment does not accept passwords. The remote console signs in as `login_username` automatically, and SSH accepts `login_username` with the public keys the instance was created or last rebuilt with.
|
|
899
|
+
*
|
|
899
900
|
* A rescue the compute service could not boot leaves the instance as it was, or in `error`; request it again or reboot the instance.
|
|
900
901
|
*
|
|
901
902
|
* The request does not name an image. The rescue image is the region's enabled rescue image for the architecture of the instance's boot volume. A region and architecture with no enabled rescue image is refused with `RESCUE_IMAGE_NOT_CONFIGURED` (409).
|
|
@@ -912,7 +913,6 @@ export const RescueInstanceParams = zod.strictObject({
|
|
|
912
913
|
.regex(rescueInstancePathInstanceIdRegExp)
|
|
913
914
|
.describe("The public ins resource identifier. Only this fixed TypeID prefix is accepted; UUID text is not an alternative representation."),
|
|
914
915
|
});
|
|
915
|
-
export const RescueInstanceBody = RescueInstanceRequestBody;
|
|
916
916
|
/**
|
|
917
917
|
* Restores boot from the original boot volume. Completion is shown by the instance state, and the instance is `unrescuing` until then.
|
|
918
918
|
* @summary Take an instance out of rescue mode
|
|
@@ -183,6 +183,7 @@ export declare const CreateInstanceRequestBody: zod.ZodObject<{
|
|
|
183
183
|
}, zod.z.core.$strict>], "type">>;
|
|
184
184
|
labels: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
185
185
|
description: zod.ZodOptional<zod.ZodString>;
|
|
186
|
+
join_fleet: zod.ZodOptional<zod.ZodBoolean>;
|
|
186
187
|
checkout: zod.ZodOptional<zod.ZodObject<{
|
|
187
188
|
mode: zod.ZodDefault<zod.ZodEnum<{
|
|
188
189
|
automatic: "automatic";
|
|
@@ -76,6 +76,10 @@ export const CreateInstanceRequestBody = zod
|
|
|
76
76
|
.max(createInstanceRequestBodyDescriptionMax)
|
|
77
77
|
.optional()
|
|
78
78
|
.describe("A free-text note about each instance. Do not put credentials here"),
|
|
79
|
+
join_fleet: zod
|
|
80
|
+
.boolean()
|
|
81
|
+
.optional()
|
|
82
|
+
.describe("Whether each instance joins Leaflow Fleet. An instance that joins enrolls automatically on its first boot, without a pairing code, and project members can then access it through Fleet using their own accounts. If omitted, the value from the launch template is used; if the template does not specify one, each instance joins when its image supports Fleet (`supports_fleet`).\n\nSetting the value to `true` for an image that does not support Fleet, or when booting from an existing volume, is rejected with 422 `INSTANCE_FLEET_UNSUPPORTED` before an order is placed. If Fleet is unavailable when an instance is created, the instance is still created and its `fleet_machine_id` is null."),
|
|
79
83
|
checkout: CheckoutOptions.optional(),
|
|
80
84
|
})
|
|
81
85
|
.describe("Every part a launch template can describe may come from `launch_template` instead: a part given here overrides the template's, and `data_volumes`, when given, replaces the template's list. After that the instance type, the boot volume and the network interface are required, each refused with 422 `INSTANCE_CREATE_INVALID` naming the field when neither gives it.\n\nEvery component bought with the instance (its boot volume, data volumes and elastic IP) shares the usage type and period of `compute.billing`; a component's own `billing` exists to choose a different termination policy, and when omitted it is `compute.billing`.");
|