@leaflow/sdk 0.0.0-dev.510.g8eb7f2e → 0.0.0-dev.516.g28eeab9
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/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 +28 -8
- 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/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/filetransfer/v1/filetransfer_pb.d.ts +12 -3
- package/dist/proto/leaflow/fleet/filetransfer/v1/filetransfer_pb.js +1 -1
- package/dist/proto/leaflow/fleet/virtualdesktop/datatransfer/v1/datatransfer_pb.d.ts +38 -1
- 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
|
@@ -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;
|
|
@@ -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`.");
|
|
@@ -153,6 +153,9 @@ export declare const CreateInstanceResponseBody: zod.ZodObject<{
|
|
|
153
153
|
}>;
|
|
154
154
|
started_at: zod.z.ZodISODateTime;
|
|
155
155
|
}, zod.z.core.$strict>, zod.ZodNull]>;
|
|
156
|
+
join_fleet: zod.ZodBoolean;
|
|
157
|
+
supports_fleet: zod.ZodBoolean;
|
|
158
|
+
fleet_machine_id: zod.ZodNullable<zod.ZodUUID>;
|
|
156
159
|
}, zod.z.core.$strict>>;
|
|
157
160
|
checkout_session_id: zod.ZodUUID;
|
|
158
161
|
order_id: zod.ZodNullable<zod.ZodUUID>;
|
|
@@ -73,6 +73,7 @@ export declare const CreateLaunchTemplateRequestBody: zod.ZodObject<{
|
|
|
73
73
|
}, zod.z.core.$strict>>;
|
|
74
74
|
labels: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
75
75
|
description: zod.ZodOptional<zod.ZodString>;
|
|
76
|
+
join_fleet: zod.ZodOptional<zod.ZodBoolean>;
|
|
76
77
|
}, zod.z.core.$strict>;
|
|
77
78
|
}, zod.z.core.$strict>;
|
|
78
79
|
export type CreateLaunchTemplateRequestBody = zod.input<typeof CreateLaunchTemplateRequestBody>;
|
|
@@ -80,6 +80,7 @@ export declare const CreateLaunchTemplateResponseBody: zod.ZodObject<{
|
|
|
80
80
|
}, zod.z.core.$strict>, zod.ZodNull]>;
|
|
81
81
|
labels: zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
82
82
|
description: zod.ZodNullable<zod.ZodString>;
|
|
83
|
+
join_fleet: zod.ZodNullable<zod.ZodBoolean>;
|
|
83
84
|
created_at: zod.z.ZodISODateTime;
|
|
84
85
|
}, zod.z.core.$strict>;
|
|
85
86
|
}, zod.z.core.$strict>;
|
|
@@ -45,6 +45,7 @@ export declare const CreatePrivateImageResponseBody: zod.ZodObject<{
|
|
|
45
45
|
min_volume_size_gib: zod.ZodInt;
|
|
46
46
|
min_memory_mib: zod.ZodInt;
|
|
47
47
|
supports_password_reset: zod.ZodBoolean;
|
|
48
|
+
supports_fleet: zod.ZodBoolean;
|
|
48
49
|
status: zod.ZodEnum<{
|
|
49
50
|
deleting: "deleting";
|
|
50
51
|
deleted: "deleted";
|
|
@@ -152,6 +152,9 @@ export declare const DeleteInstanceResponseBody: zod.ZodObject<{
|
|
|
152
152
|
}>;
|
|
153
153
|
started_at: zod.z.ZodISODateTime;
|
|
154
154
|
}, zod.z.core.$strict>, zod.ZodNull]>;
|
|
155
|
+
join_fleet: zod.ZodBoolean;
|
|
156
|
+
supports_fleet: zod.ZodBoolean;
|
|
157
|
+
fleet_machine_id: zod.ZodNullable<zod.ZodUUID>;
|
|
155
158
|
}, zod.z.core.$strict>;
|
|
156
159
|
cancellation: zod.ZodUnion<readonly [zod.ZodNull, zod.ZodObject<{
|
|
157
160
|
id: zod.ZodUUID;
|
|
@@ -45,6 +45,7 @@ export declare const DeletePrivateImageResponseBody: zod.ZodObject<{
|
|
|
45
45
|
min_volume_size_gib: zod.ZodInt;
|
|
46
46
|
min_memory_mib: zod.ZodInt;
|
|
47
47
|
supports_password_reset: zod.ZodBoolean;
|
|
48
|
+
supports_fleet: zod.ZodBoolean;
|
|
48
49
|
status: zod.ZodEnum<{
|
|
49
50
|
deleting: "deleting";
|
|
50
51
|
deleted: "deleted";
|
|
@@ -154,6 +154,9 @@ export declare const Instance: zod.ZodObject<{
|
|
|
154
154
|
}>;
|
|
155
155
|
started_at: zod.z.ZodISODateTime;
|
|
156
156
|
}, zod.z.core.$strict>, zod.ZodNull]>;
|
|
157
|
+
join_fleet: zod.ZodBoolean;
|
|
158
|
+
supports_fleet: zod.ZodBoolean;
|
|
159
|
+
fleet_machine_id: zod.ZodNullable<zod.ZodUUID>;
|
|
157
160
|
}, zod.z.core.$strict>;
|
|
158
161
|
export type Instance = zod.input<typeof Instance>;
|
|
159
162
|
export type InstanceOutput = zod.output<typeof Instance>;
|
|
@@ -164,4 +164,14 @@ export const Instance = zod.strictObject({
|
|
|
164
164
|
latest_operation: zod
|
|
165
165
|
.union([LatestOperation, zod.null()])
|
|
166
166
|
.describe("The most recent operation started on the instance; null when none has been recorded."),
|
|
167
|
+
join_fleet: zod
|
|
168
|
+
.boolean()
|
|
169
|
+
.describe("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."),
|
|
170
|
+
supports_fleet: zod
|
|
171
|
+
.boolean()
|
|
172
|
+
.describe("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."),
|
|
173
|
+
fleet_machine_id: zod
|
|
174
|
+
.uuid()
|
|
175
|
+
.nullable()
|
|
176
|
+
.describe("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."),
|
|
167
177
|
});
|
|
@@ -152,6 +152,9 @@ export declare const InstanceListResponseBody: zod.ZodObject<{
|
|
|
152
152
|
}>;
|
|
153
153
|
started_at: zod.z.ZodISODateTime;
|
|
154
154
|
}, zod.z.core.$strict>, zod.ZodNull]>;
|
|
155
|
+
join_fleet: zod.ZodBoolean;
|
|
156
|
+
supports_fleet: zod.ZodBoolean;
|
|
157
|
+
fleet_machine_id: zod.ZodNullable<zod.ZodUUID>;
|
|
155
158
|
}, zod.z.core.$strict>>;
|
|
156
159
|
pagination: zod.ZodObject<{
|
|
157
160
|
page: zod.ZodInt;
|
|
@@ -69,6 +69,7 @@ export declare const LaunchTemplateVersion: zod.ZodObject<{
|
|
|
69
69
|
}, zod.z.core.$strict>, zod.ZodNull]>;
|
|
70
70
|
labels: zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
71
71
|
description: zod.ZodNullable<zod.ZodString>;
|
|
72
|
+
join_fleet: zod.ZodNullable<zod.ZodBoolean>;
|
|
72
73
|
created_at: zod.z.ZodISODateTime;
|
|
73
74
|
}, zod.z.core.$strict>;
|
|
74
75
|
export type LaunchTemplateVersion = zod.input<typeof LaunchTemplateVersion>;
|
|
@@ -53,5 +53,9 @@ export const LaunchTemplateVersion = zod.strictObject({
|
|
|
53
53
|
.nullable()
|
|
54
54
|
.describe("Null when the version describes no labels."),
|
|
55
55
|
description: zod.string().nullable().describe("Null when the version describes no note."),
|
|
56
|
+
join_fleet: zod
|
|
57
|
+
.boolean()
|
|
58
|
+
.nullable()
|
|
59
|
+
.describe("Null if the version does not specify a value, in which case the image determines it."),
|
|
56
60
|
created_at: zod.iso.datetime({ offset: true }),
|
|
57
61
|
});
|
|
@@ -70,6 +70,7 @@ export declare const LaunchTemplateVersionListResponseBody: zod.ZodObject<{
|
|
|
70
70
|
}, zod.z.core.$strict>, zod.ZodNull]>;
|
|
71
71
|
labels: zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
72
72
|
description: zod.ZodNullable<zod.ZodString>;
|
|
73
|
+
join_fleet: zod.ZodNullable<zod.ZodBoolean>;
|
|
73
74
|
created_at: zod.z.ZodISODateTime;
|
|
74
75
|
}, zod.z.core.$strict>>;
|
|
75
76
|
pagination: zod.ZodObject<{
|
|
@@ -71,6 +71,7 @@ export declare const NewLaunchTemplateVersion: zod.ZodObject<{
|
|
|
71
71
|
}, zod.z.core.$strict>>;
|
|
72
72
|
labels: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
73
73
|
description: zod.ZodOptional<zod.ZodString>;
|
|
74
|
+
join_fleet: zod.ZodOptional<zod.ZodBoolean>;
|
|
74
75
|
}, zod.z.core.$strict>;
|
|
75
76
|
export type NewLaunchTemplateVersion = zod.input<typeof NewLaunchTemplateVersion>;
|
|
76
77
|
export type NewLaunchTemplateVersionOutput = zod.output<typeof NewLaunchTemplateVersion>;
|
|
@@ -58,5 +58,9 @@ export const NewLaunchTemplateVersion = zod
|
|
|
58
58
|
.optional()
|
|
59
59
|
.describe("A key may not contain a colon, whitespace or control characters."),
|
|
60
60
|
description: zod.string().max(newLaunchTemplateVersionDescriptionMax).optional(),
|
|
61
|
+
join_fleet: zod
|
|
62
|
+
.boolean()
|
|
63
|
+
.optional()
|
|
64
|
+
.describe("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."),
|
|
61
65
|
})
|
|
62
66
|
.describe("What a version describes. Every part is optional; an instance created from the version supplies what is left out and may override what is given.");
|
|
@@ -45,6 +45,7 @@ export declare const PrivateImageListResponseBody: zod.ZodObject<{
|
|
|
45
45
|
min_volume_size_gib: zod.ZodInt;
|
|
46
46
|
min_memory_mib: zod.ZodInt;
|
|
47
47
|
supports_password_reset: zod.ZodBoolean;
|
|
48
|
+
supports_fleet: zod.ZodBoolean;
|
|
48
49
|
status: zod.ZodEnum<{
|
|
49
50
|
deleting: "deleting";
|
|
50
51
|
deleted: "deleted";
|
|
@@ -45,6 +45,7 @@ export declare const PrivateImageResource: zod.ZodObject<{
|
|
|
45
45
|
min_volume_size_gib: zod.ZodInt;
|
|
46
46
|
min_memory_mib: zod.ZodInt;
|
|
47
47
|
supports_password_reset: zod.ZodBoolean;
|
|
48
|
+
supports_fleet: zod.ZodBoolean;
|
|
48
49
|
status: zod.ZodEnum<{
|
|
49
50
|
deleting: "deleting";
|
|
50
51
|
deleted: "deleted";
|
|
@@ -60,6 +60,9 @@ export const PrivateImageResource = zod
|
|
|
60
60
|
supports_password_reset: zod
|
|
61
61
|
.boolean()
|
|
62
62
|
.describe("False means a new password can only be set by rebuilding an instance created from this image"),
|
|
63
|
+
supports_fleet: zod
|
|
64
|
+
.boolean()
|
|
65
|
+
.describe("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"),
|
|
63
66
|
status: zod
|
|
64
67
|
.enum([
|
|
65
68
|
"pending",
|
|
@@ -45,6 +45,7 @@ export declare const PublicImageListResponseBody: zod.ZodObject<{
|
|
|
45
45
|
min_volume_size_gib: zod.ZodInt;
|
|
46
46
|
min_memory_mib: zod.ZodInt;
|
|
47
47
|
supports_password_reset: zod.ZodBoolean;
|
|
48
|
+
supports_fleet: zod.ZodBoolean;
|
|
48
49
|
sale_status: zod.ZodEnum<{
|
|
49
50
|
on_sale: "on_sale";
|
|
50
51
|
off_sale: "off_sale";
|
|
@@ -45,6 +45,7 @@ export declare const PublicImageResource: zod.ZodObject<{
|
|
|
45
45
|
min_volume_size_gib: zod.ZodInt;
|
|
46
46
|
min_memory_mib: zod.ZodInt;
|
|
47
47
|
supports_password_reset: zod.ZodBoolean;
|
|
48
|
+
supports_fleet: zod.ZodBoolean;
|
|
48
49
|
sale_status: zod.ZodEnum<{
|
|
49
50
|
on_sale: "on_sale";
|
|
50
51
|
off_sale: "off_sale";
|
|
@@ -57,6 +57,9 @@ export const PublicImageResource = zod
|
|
|
57
57
|
supports_password_reset: zod
|
|
58
58
|
.boolean()
|
|
59
59
|
.describe("False means a new password can only be set by rebuilding an instance created from this image"),
|
|
60
|
+
supports_fleet: zod
|
|
61
|
+
.boolean()
|
|
62
|
+
.describe("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"),
|
|
60
63
|
sale_status: zod
|
|
61
64
|
.enum(["on_sale", "off_sale"])
|
|
62
65
|
.describe("`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."),
|
|
@@ -45,6 +45,7 @@ export declare const RebuildInstanceRequestBody: zod.ZodObject<{
|
|
|
45
45
|
}>;
|
|
46
46
|
value: zod.ZodString;
|
|
47
47
|
}, zod.z.core.$strict>], "type">>;
|
|
48
|
+
join_fleet: zod.ZodOptional<zod.ZodBoolean>;
|
|
48
49
|
}, zod.z.core.$strict>;
|
|
49
50
|
export type RebuildInstanceRequestBody = zod.input<typeof RebuildInstanceRequestBody>;
|
|
50
51
|
export type RebuildInstanceRequestBodyOutput = zod.output<typeof RebuildInstanceRequestBody>;
|
|
@@ -38,4 +38,8 @@ import { PasswordChoice } from "./passwordChoice.zod.js";
|
|
|
38
38
|
export const RebuildInstanceRequestBody = zod.strictObject({
|
|
39
39
|
image_id: ImageID,
|
|
40
40
|
password: PasswordChoice.optional(),
|
|
41
|
+
join_fleet: zod
|
|
42
|
+
.boolean()
|
|
43
|
+
.optional()
|
|
44
|
+
.describe("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`."),
|
|
41
45
|
});
|
|
@@ -152,6 +152,9 @@ export declare const RebuildInstanceResponseBody: zod.ZodObject<{
|
|
|
152
152
|
}>;
|
|
153
153
|
started_at: zod.z.ZodISODateTime;
|
|
154
154
|
}, zod.z.core.$strict>, zod.ZodNull]>;
|
|
155
|
+
join_fleet: zod.ZodBoolean;
|
|
156
|
+
supports_fleet: zod.ZodBoolean;
|
|
157
|
+
fleet_machine_id: zod.ZodNullable<zod.ZodUUID>;
|
|
155
158
|
}, zod.z.core.$strict>;
|
|
156
159
|
password: zod.ZodNullable<zod.ZodString>;
|
|
157
160
|
}, zod.z.core.$strict>;
|
|
@@ -153,6 +153,9 @@ export declare const RescueInstanceResponseBody: zod.ZodObject<{
|
|
|
153
153
|
}>;
|
|
154
154
|
started_at: zod.z.ZodISODateTime;
|
|
155
155
|
}, zod.z.core.$strict>, zod.ZodNull]>;
|
|
156
|
+
join_fleet: zod.ZodBoolean;
|
|
157
|
+
supports_fleet: zod.ZodBoolean;
|
|
158
|
+
fleet_machine_id: zod.ZodNullable<zod.ZodUUID>;
|
|
156
159
|
}, zod.z.core.$strict>;
|
|
157
160
|
}, zod.z.core.$strict>;
|
|
158
161
|
export type RescueInstanceResponseBody = zod.input<typeof RescueInstanceResponseBody>;
|
|
@@ -152,6 +152,9 @@ export declare const UpdateInstanceResponseBody: zod.ZodObject<{
|
|
|
152
152
|
}>;
|
|
153
153
|
started_at: zod.z.ZodISODateTime;
|
|
154
154
|
}, zod.z.core.$strict>, zod.ZodNull]>;
|
|
155
|
+
join_fleet: zod.ZodBoolean;
|
|
156
|
+
supports_fleet: zod.ZodBoolean;
|
|
157
|
+
fleet_machine_id: zod.ZodNullable<zod.ZodUUID>;
|
|
155
158
|
}, zod.z.core.$strict>;
|
|
156
159
|
checkout_session_id: zod.ZodNullable<zod.ZodUUID>;
|
|
157
160
|
order_id: zod.ZodNullable<zod.ZodUUID>;
|
|
@@ -667,8 +667,15 @@ export declare const getCreateApplicationUrl: () => string;
|
|
|
667
667
|
* The `secret` is present only for a confidential application, and only in this response.
|
|
668
668
|
* It is not stored and cannot be read again; use `:rotateSecret` to obtain a new one.
|
|
669
669
|
*
|
|
670
|
-
* Any account of this platform may sign in to the application
|
|
671
|
-
*
|
|
670
|
+
* Any account of this platform may sign in to the application and is always asked for
|
|
671
|
+
* consent. `profile` and `email` are granted at every sign-in; any other scope selected here
|
|
672
|
+
* is granted only when the authorization request names it explicitly.
|
|
673
|
+
*
|
|
674
|
+
* To call the Leaflow API on behalf of a user, the application requests `iam`, and the user
|
|
675
|
+
* must then authorize the application for each project in which it is to act, as described
|
|
676
|
+
* in the Account API. Within an authorized project, the application holds exactly the
|
|
677
|
+
* permissions of the user and none beyond them. Members of this project must authorize the
|
|
678
|
+
* application in the same way as any other user.
|
|
672
679
|
* @summary Create an application
|
|
673
680
|
*/
|
|
674
681
|
export declare const createApplication: (createApplicationRequestBody: CreateApplicationRequestBody, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<createApplicationResponse>;
|
|
@@ -711,8 +711,15 @@ export const getCreateApplicationUrl = () => {
|
|
|
711
711
|
* The `secret` is present only for a confidential application, and only in this response.
|
|
712
712
|
* It is not stored and cannot be read again; use `:rotateSecret` to obtain a new one.
|
|
713
713
|
*
|
|
714
|
-
* Any account of this platform may sign in to the application
|
|
715
|
-
*
|
|
714
|
+
* Any account of this platform may sign in to the application and is always asked for
|
|
715
|
+
* consent. `profile` and `email` are granted at every sign-in; any other scope selected here
|
|
716
|
+
* is granted only when the authorization request names it explicitly.
|
|
717
|
+
*
|
|
718
|
+
* To call the Leaflow API on behalf of a user, the application requests `iam`, and the user
|
|
719
|
+
* must then authorize the application for each project in which it is to act, as described
|
|
720
|
+
* in the Account API. Within an authorized project, the application holds exactly the
|
|
721
|
+
* permissions of the user and none beyond them. Members of this project must authorize the
|
|
722
|
+
* application in the same way as any other user.
|
|
716
723
|
* @summary Create an application
|
|
717
724
|
*/
|
|
718
725
|
export const createApplication = async (createApplicationRequestBody, options, fetchFn) => {
|
|
@@ -522,7 +522,7 @@ export interface CreateApplicationRequestBody {
|
|
|
522
522
|
* @items.maxLength 2048
|
|
523
523
|
*/
|
|
524
524
|
redirect_uris: string[];
|
|
525
|
-
/** The scopes the application may request. Omitted means the defaults, `profile` and `email`; a scope not in the platform's list is refused */
|
|
525
|
+
/** The scopes the application may request. Omitted means the defaults, `profile` and `email`; a scope not in the platform's list is refused. `profile` and `email` are granted at every sign-in, and any other scope only when the authorization request names it explicitly */
|
|
526
526
|
scopes?: string[];
|
|
527
527
|
}
|
|
528
528
|
export interface CreateApplicationResponseBody {
|
|
@@ -268,8 +268,15 @@ export declare const ListApplicationsQueryParams: zod.ZodObject<{
|
|
|
268
268
|
* The `secret` is present only for a confidential application, and only in this response.
|
|
269
269
|
* It is not stored and cannot be read again; use `:rotateSecret` to obtain a new one.
|
|
270
270
|
*
|
|
271
|
-
* Any account of this platform may sign in to the application
|
|
272
|
-
*
|
|
271
|
+
* Any account of this platform may sign in to the application and is always asked for
|
|
272
|
+
* consent. `profile` and `email` are granted at every sign-in; any other scope selected here
|
|
273
|
+
* is granted only when the authorization request names it explicitly.
|
|
274
|
+
*
|
|
275
|
+
* To call the Leaflow API on behalf of a user, the application requests `iam`, and the user
|
|
276
|
+
* must then authorize the application for each project in which it is to act, as described
|
|
277
|
+
* in the Account API. Within an authorized project, the application holds exactly the
|
|
278
|
+
* permissions of the user and none beyond them. Members of this project must authorize the
|
|
279
|
+
* application in the same way as any other user.
|
|
273
280
|
* @summary Create an application
|
|
274
281
|
*/
|
|
275
282
|
export declare const CreateApplicationBody: zod.ZodObject<{
|
|
@@ -295,8 +295,15 @@ export const ListApplicationsQueryParams = zod.strictObject({
|
|
|
295
295
|
* The `secret` is present only for a confidential application, and only in this response.
|
|
296
296
|
* It is not stored and cannot be read again; use `:rotateSecret` to obtain a new one.
|
|
297
297
|
*
|
|
298
|
-
* Any account of this platform may sign in to the application
|
|
299
|
-
*
|
|
298
|
+
* Any account of this platform may sign in to the application and is always asked for
|
|
299
|
+
* consent. `profile` and `email` are granted at every sign-in; any other scope selected here
|
|
300
|
+
* is granted only when the authorization request names it explicitly.
|
|
301
|
+
*
|
|
302
|
+
* To call the Leaflow API on behalf of a user, the application requests `iam`, and the user
|
|
303
|
+
* must then authorize the application for each project in which it is to act, as described
|
|
304
|
+
* in the Account API. Within an authorized project, the application holds exactly the
|
|
305
|
+
* permissions of the user and none beyond them. Members of this project must authorize the
|
|
306
|
+
* application in the same way as any other user.
|
|
300
307
|
* @summary Create an application
|
|
301
308
|
*/
|
|
302
309
|
export const CreateApplicationBody = CreateApplicationRequestBody;
|
|
@@ -26,5 +26,5 @@ export const CreateApplicationRequestBody = zod.strictObject({
|
|
|
26
26
|
scopes: zod
|
|
27
27
|
.array(zod.string())
|
|
28
28
|
.optional()
|
|
29
|
-
.describe("The scopes the application may request. Omitted means the defaults, `profile` and `email`; a scope not in the platform's list is refused"),
|
|
29
|
+
.describe("The scopes the application may request. Omitted means the defaults, `profile` and `email`; a scope not in the platform's list is refused. `profile` and `email` are granted at every sign-in, and any other scope only when the authorization request names it explicitly"),
|
|
30
30
|
});
|
|
@@ -272,8 +272,10 @@ export type FileTransferCancel = Message<"leaflow.fleet.filetransfer.v1.FileTran
|
|
|
272
272
|
*/
|
|
273
273
|
export declare const FileTransferCancelSchema: GenMessage<FileTransferCancel>;
|
|
274
274
|
/**
|
|
275
|
-
*
|
|
276
|
-
*
|
|
275
|
+
* 接收方交付的文件。选择的条目均已保存或明确跳过,或发生失败时发送一个逻辑结果,
|
|
276
|
+
* 可由多个分片组成。只有最后一片到齐后才能发布终态并释放整项传输的来源。
|
|
277
|
+
* 无错误时,已保存与已跳过条目的并集必须等于已确认的选择;两者不能重复或相交。
|
|
278
|
+
* 跳过不表示传输或校验成功,也不属于失败。
|
|
277
279
|
*
|
|
278
280
|
* @generated from message leaflow.fleet.filetransfer.v1.FileTransferResult
|
|
279
281
|
*/
|
|
@@ -291,7 +293,7 @@ export type FileTransferResult = Message<"leaflow.fleet.filetransfer.v1.FileTran
|
|
|
291
293
|
*/
|
|
292
294
|
fileIds: string[];
|
|
293
295
|
/**
|
|
294
|
-
*
|
|
296
|
+
* 未完成条目的失败原因,仅最后一片可携带。正常结束(包括跳过)时不设置。
|
|
295
297
|
*
|
|
296
298
|
* @generated from field: google.rpc.Status error = 3;
|
|
297
299
|
*/
|
|
@@ -308,6 +310,13 @@ export type FileTransferResult = Message<"leaflow.fleet.filetransfer.v1.FileTran
|
|
|
308
310
|
* @generated from field: bool last_part = 5;
|
|
309
311
|
*/
|
|
310
312
|
lastPart: boolean;
|
|
313
|
+
/**
|
|
314
|
+
* 接收端明确跳过的条目。只可包含已确认选择的 id;不计为已传输、已校验或已保存。
|
|
315
|
+
* 可在任意结果分片中携带,必须与 file_ids 一起等末片到齐后再结算。
|
|
316
|
+
*
|
|
317
|
+
* @generated from field: repeated string skipped_file_ids = 6;
|
|
318
|
+
*/
|
|
319
|
+
skippedFileIds: string[];
|
|
311
320
|
};
|
|
312
321
|
/**
|
|
313
322
|
* Describes the message leaflow.fleet.filetransfer.v1.FileTransferResult.
|
|
@@ -7,7 +7,7 @@ import { file_google_rpc_status } from "../../../../google/rpc/status_pb.js";
|
|
|
7
7
|
/**
|
|
8
8
|
* Describes the file leaflow/fleet/filetransfer/v1/filetransfer.proto.
|
|
9
9
|
*/
|
|
10
|
-
export const file_leaflow_fleet_filetransfer_v1_filetransfer = /*@__PURE__*/ fileDesc("
|
|
10
|
+
export const file_leaflow_fleet_filetransfer_v1_filetransfer = /*@__PURE__*/ fileDesc("CjBsZWFmbG93L2ZsZWV0L2ZpbGV0cmFuc2Zlci92MS9maWxldHJhbnNmZXIucHJvdG8SHWxlYWZsb3cuZmxlZXQuZmlsZXRyYW5zZmVyLnYxIv0CChNGaWxlVHJhbnNmZXJNZXNzYWdlEkEKBW9mZmVyGAEgASgLMjAubGVhZmxvdy5mbGVldC5maWxldHJhbnNmZXIudjEuRmlsZVRyYW5zZmVyT2ZmZXJIABJFCgdyZXF1ZXN0GAIgASgLMjIubGVhZmxvdy5mbGVldC5maWxldHJhbnNmZXIudjEuRmlsZVRyYW5zZmVyUmVxdWVzdEgAEkcKCHJlc3BvbnNlGAMgASgLMjMubGVhZmxvdy5mbGVldC5maWxldHJhbnNmZXIudjEuRmlsZVRyYW5zZmVyUmVzcG9uc2VIABJDCgZjYW5jZWwYBCABKAsyMS5sZWFmbG93LmZsZWV0LmZpbGV0cmFuc2Zlci52MS5GaWxlVHJhbnNmZXJDYW5jZWxIABJDCgZyZXN1bHQYBSABKAsyMS5sZWFmbG93LmZsZWV0LmZpbGV0cmFuc2Zlci52MS5GaWxlVHJhbnNmZXJSZXN1bHRIAEIJCgdtZXNzYWdlIoUBChFGaWxlVHJhbnNmZXJPZmZlchITCgt0cmFuc2Zlcl9pZBgBIAEoCRIYChB0b3RhbF9zaXplX2J5dGVzGAMgASgEEh0KFWRlc3RpbmF0aW9uX2RpcmVjdG9yeRgEIAEoCRITCgtlbnRyeV9jb3VudBgFIAEoBEoECAIQA1IHZW50cmllcyKbAQoJRmlsZUVudHJ5Eg8KB2ZpbGVfaWQYASABKAkSEQoJcGFyZW50X2lkGAIgASgJEgwKBG5hbWUYAyABKAkSNQoEdHlwZRgEIAEoDjInLmxlYWZsb3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YxLlJlbW92ZUZpbGVSZXF1ZXN0GjEubGVhZmxvdy5mbGVldC5maWxldHJhbnNmZXIudjEuUmVtb3ZlRmlsZVJlc3BvbnNlEmsKCENvcHlGaWxlEi4ubGVhZmxvdy5mbGVldC5maWxldHJhbnNmZXIudjEuQ29weUZpbGVSZXF1ZXN0Gi8ubGVhZmxvdy5mbGVldC5maWxldHJhbnNmZXIudjEuQ29weUZpbGVSZXNwb25zZRJuCglUcmFzaEZpbGUSLy5sZWFmbG93LmZsZWV0LmZpbGV0cmFuc2Zlci52MS5UcmFzaEZpbGVSZXF1ZXN0GjAubGVhZmxvdy5mbGVldC5maWxldHJhbnNmZXIudjEuVHJhc2hGaWxlUmVzcG9uc2USgAEKD0NyZWF0ZUZpbGVPZmZlchI1LmxlYWZsb3cuZmxlZXQuZmlsZXRyYW5zZmVyLnYxLkNyZWF0ZUZpbGVPZmZlclJlcXVlc3QaNi5sZWFmbG93LmZsZWV0LmZpbGV0cmFuc2Zlci52MS5DcmVhdGVGaWxlT2ZmZXJSZXNwb25zZUJIWkZnaXRodWIuY29tL2xlYWZsb3dhcGlzL2xlYWZsb3ctZ28vZmxlZXQvZmlsZXRyYW5zZmVyL3YxO2ZpbGV0cmFuc2ZlcnYxYgZwcm90bzM", [file_google_protobuf_timestamp, file_google_rpc_status]);
|
|
11
11
|
/**
|
|
12
12
|
* Describes the message leaflow.fleet.filetransfer.v1.FileTransferMessage.
|
|
13
13
|
* Use `create(FileTransferMessageSchema)` to create a new message.
|