@leaflow/sdk 0.207.0 → 0.208.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.
Files changed (162) hide show
  1. package/dist/account/v1/generated/functions.d.ts +117 -1
  2. package/dist/account/v1/generated/functions.js +104 -0
  3. package/dist/account/v1/generated/models.d.ts +85 -0
  4. package/dist/account/v1/generated/models.js +9 -0
  5. package/dist/account/v1/generated/schemas.zod.d.ts +68 -0
  6. package/dist/account/v1/generated/schemas.zod.js +76 -0
  7. package/dist/account/v1/generated/validators/acceptConsentsRequestBody.zod.d.ts +18 -0
  8. package/dist/account/v1/generated/validators/acceptConsentsRequestBody.zod.js +18 -0
  9. package/dist/account/v1/generated/validators/acceptInvitationByTokenRequestBody.zod.d.ts +18 -0
  10. package/dist/account/v1/generated/validators/acceptInvitationByTokenRequestBody.zod.js +18 -0
  11. package/dist/account/v1/generated/validators/acceptedInvitationResponseBody.zod.d.ts +18 -0
  12. package/dist/account/v1/generated/validators/acceptedInvitationResponseBody.zod.js +18 -0
  13. package/dist/account/v1/generated/validators/accountDeletionObjectionResource.zod.d.ts +18 -0
  14. package/dist/account/v1/generated/validators/accountDeletionObjectionResource.zod.js +18 -0
  15. package/dist/account/v1/generated/validators/accountDeletionResource.zod.d.ts +18 -0
  16. package/dist/account/v1/generated/validators/accountDeletionResource.zod.js +18 -0
  17. package/dist/account/v1/generated/validators/accountDeletionState.zod.d.ts +18 -0
  18. package/dist/account/v1/generated/validators/accountDeletionState.zod.js +18 -0
  19. package/dist/account/v1/generated/validators/accountResource.zod.d.ts +18 -0
  20. package/dist/account/v1/generated/validators/accountResource.zod.js +18 -0
  21. package/dist/account/v1/generated/validators/agreementListResponseBody.zod.d.ts +18 -0
  22. package/dist/account/v1/generated/validators/agreementListResponseBody.zod.js +18 -0
  23. package/dist/account/v1/generated/validators/agreementResource.zod.d.ts +18 -0
  24. package/dist/account/v1/generated/validators/agreementResource.zod.js +18 -0
  25. package/dist/account/v1/generated/validators/applicationResource.zod.d.ts +60 -0
  26. package/dist/account/v1/generated/validators/applicationResource.zod.js +60 -0
  27. package/dist/account/v1/generated/validators/authorizeApplicationRequestBody.zod.d.ts +55 -0
  28. package/dist/account/v1/generated/validators/authorizeApplicationRequestBody.zod.js +53 -0
  29. package/dist/account/v1/generated/validators/authorizedApplicationResource.zod.d.ts +93 -0
  30. package/dist/account/v1/generated/validators/authorizedApplicationResource.zod.js +59 -0
  31. package/dist/account/v1/generated/validators/consentBody.zod.d.ts +18 -0
  32. package/dist/account/v1/generated/validators/consentBody.zod.js +18 -0
  33. package/dist/account/v1/generated/validators/consentListResponseBody.zod.d.ts +18 -0
  34. package/dist/account/v1/generated/validators/consentListResponseBody.zod.js +18 -0
  35. package/dist/account/v1/generated/validators/consentResource.zod.d.ts +18 -0
  36. package/dist/account/v1/generated/validators/consentResource.zod.js +18 -0
  37. package/dist/account/v1/generated/validators/countryOption.zod.d.ts +18 -0
  38. package/dist/account/v1/generated/validators/countryOption.zod.js +18 -0
  39. package/dist/account/v1/generated/validators/createProjectRequestBody.zod.d.ts +18 -0
  40. package/dist/account/v1/generated/validators/createProjectRequestBody.zod.js +18 -0
  41. package/dist/account/v1/generated/validators/createSSHKeyRequestBody.zod.d.ts +18 -0
  42. package/dist/account/v1/generated/validators/createSSHKeyRequestBody.zod.js +18 -0
  43. package/dist/account/v1/generated/validators/cursorPagination.zod.d.ts +18 -0
  44. package/dist/account/v1/generated/validators/cursorPagination.zod.js +18 -0
  45. package/dist/account/v1/generated/validators/error.zod.d.ts +18 -0
  46. package/dist/account/v1/generated/validators/error.zod.js +18 -0
  47. package/dist/account/v1/generated/validators/errorStatus.zod.d.ts +18 -0
  48. package/dist/account/v1/generated/validators/errorStatus.zod.js +18 -0
  49. package/dist/account/v1/generated/validators/fieldViolation.zod.d.ts +18 -0
  50. package/dist/account/v1/generated/validators/fieldViolation.zod.js +18 -0
  51. package/dist/account/v1/generated/validators/grantResource.zod.d.ts +18 -0
  52. package/dist/account/v1/generated/validators/grantResource.zod.js +18 -0
  53. package/dist/account/v1/generated/validators/identityVerificationResource.zod.d.ts +18 -0
  54. package/dist/account/v1/generated/validators/identityVerificationResource.zod.js +18 -0
  55. package/dist/account/v1/generated/validators/invitationPreviewResource.zod.d.ts +18 -0
  56. package/dist/account/v1/generated/validators/invitationPreviewResource.zod.js +18 -0
  57. package/dist/account/v1/generated/validators/invitationResource.zod.d.ts +18 -0
  58. package/dist/account/v1/generated/validators/invitationResource.zod.js +18 -0
  59. package/dist/account/v1/generated/validators/languageOption.zod.d.ts +18 -0
  60. package/dist/account/v1/generated/validators/languageOption.zod.js +18 -0
  61. package/dist/account/v1/generated/validators/lengthAwarePageAuthorizedApplicationResource.zod.d.ts +98 -0
  62. package/dist/account/v1/generated/validators/lengthAwarePageAuthorizedApplicationResource.zod.js +55 -0
  63. package/dist/account/v1/generated/validators/lengthAwarePageInvitationResource.zod.d.ts +18 -0
  64. package/dist/account/v1/generated/validators/lengthAwarePageInvitationResource.zod.js +18 -0
  65. package/dist/account/v1/generated/validators/lengthAwarePageProjectAccessResource.zod.d.ts +18 -0
  66. package/dist/account/v1/generated/validators/lengthAwarePageProjectAccessResource.zod.js +18 -0
  67. package/dist/account/v1/generated/validators/lengthAwarePageSSHKeyResource.zod.d.ts +18 -0
  68. package/dist/account/v1/generated/validators/lengthAwarePageSSHKeyResource.zod.js +18 -0
  69. package/dist/account/v1/generated/validators/listAuthorizedApplicationsParams.zod.d.ts +59 -0
  70. package/dist/account/v1/generated/validators/listAuthorizedApplicationsParams.zod.js +65 -0
  71. package/dist/account/v1/generated/validators/listMyInvitationsParams.zod.d.ts +18 -0
  72. package/dist/account/v1/generated/validators/listMyInvitationsParams.zod.js +18 -0
  73. package/dist/account/v1/generated/validators/listProjectsParams.zod.d.ts +18 -0
  74. package/dist/account/v1/generated/validators/listProjectsParams.zod.js +18 -0
  75. package/dist/account/v1/generated/validators/listSshKeysParams.zod.d.ts +18 -0
  76. package/dist/account/v1/generated/validators/listSshKeysParams.zod.js +18 -0
  77. package/dist/account/v1/generated/validators/locale.zod.d.ts +18 -0
  78. package/dist/account/v1/generated/validators/locale.zod.js +18 -0
  79. package/dist/account/v1/generated/validators/localeOptionsResource.zod.d.ts +18 -0
  80. package/dist/account/v1/generated/validators/localeOptionsResource.zod.js +18 -0
  81. package/dist/account/v1/generated/validators/offsetPagination.zod.d.ts +18 -0
  82. package/dist/account/v1/generated/validators/offsetPagination.zod.js +18 -0
  83. package/dist/account/v1/generated/validators/previewInvitationByTokenParams.zod.d.ts +18 -0
  84. package/dist/account/v1/generated/validators/previewInvitationByTokenParams.zod.js +18 -0
  85. package/dist/account/v1/generated/validators/projectAccessList.zod.d.ts +18 -0
  86. package/dist/account/v1/generated/validators/projectAccessList.zod.js +18 -0
  87. package/dist/account/v1/generated/validators/projectAccessResource.zod.d.ts +18 -0
  88. package/dist/account/v1/generated/validators/projectAccessResource.zod.js +18 -0
  89. package/dist/account/v1/generated/validators/projectResource.zod.d.ts +18 -0
  90. package/dist/account/v1/generated/validators/projectResource.zod.js +18 -0
  91. package/dist/account/v1/generated/validators/projectSlugAvailabilityResource.zod.d.ts +18 -0
  92. package/dist/account/v1/generated/validators/projectSlugAvailabilityResource.zod.js +18 -0
  93. package/dist/account/v1/generated/validators/projectStatus.zod.d.ts +18 -0
  94. package/dist/account/v1/generated/validators/projectStatus.zod.js +18 -0
  95. package/dist/account/v1/generated/validators/projectTraitResource.zod.d.ts +18 -0
  96. package/dist/account/v1/generated/validators/projectTraitResource.zod.js +18 -0
  97. package/dist/account/v1/generated/validators/registerRequestBody.zod.d.ts +18 -0
  98. package/dist/account/v1/generated/validators/registerRequestBody.zod.js +18 -0
  99. package/dist/account/v1/generated/validators/renameSSHKeyRequestBody.zod.d.ts +18 -0
  100. package/dist/account/v1/generated/validators/renameSSHKeyRequestBody.zod.js +18 -0
  101. package/dist/account/v1/generated/validators/requestAccountDeletionParams.zod.d.ts +18 -0
  102. package/dist/account/v1/generated/validators/requestAccountDeletionParams.zod.js +18 -0
  103. package/dist/account/v1/generated/validators/resourceRefResource.zod.d.ts +18 -0
  104. package/dist/account/v1/generated/validators/resourceRefResource.zod.js +18 -0
  105. package/dist/account/v1/generated/validators/ruleResource.zod.d.ts +18 -0
  106. package/dist/account/v1/generated/validators/ruleResource.zod.js +18 -0
  107. package/dist/account/v1/generated/validators/sSHKeyResource.zod.d.ts +18 -0
  108. package/dist/account/v1/generated/validators/sSHKeyResource.zod.js +18 -0
  109. package/dist/account/v1/generated/validators/scopedTokenResponseBody.zod.d.ts +18 -0
  110. package/dist/account/v1/generated/validators/scopedTokenResponseBody.zod.js +18 -0
  111. package/dist/account/v1/generated/validators/searchProjectsRequestBody.zod.d.ts +18 -0
  112. package/dist/account/v1/generated/validators/searchProjectsRequestBody.zod.js +18 -0
  113. package/dist/account/v1/generated/validators/settingsResource.zod.d.ts +18 -0
  114. package/dist/account/v1/generated/validators/settingsResource.zod.js +18 -0
  115. package/dist/account/v1/generated/validators/submitIdentityVerificationRequestBody.zod.d.ts +18 -0
  116. package/dist/account/v1/generated/validators/submitIdentityVerificationRequestBody.zod.js +18 -0
  117. package/dist/account/v1/generated/validators/updateAccountRequestBody.zod.d.ts +18 -0
  118. package/dist/account/v1/generated/validators/updateAccountRequestBody.zod.js +18 -0
  119. package/dist/compute/v2/generated/functions.d.ts +4 -2
  120. package/dist/compute/v2/generated/functions.js +3 -18
  121. package/dist/compute/v2/generated/models.d.ts +28 -8
  122. package/dist/compute/v2/generated/schemas.zod.d.ts +6 -3
  123. package/dist/compute/v2/generated/schemas.zod.js +2 -2
  124. package/dist/compute/v2/generated/validators/createInstanceRequestBody.zod.d.ts +1 -0
  125. package/dist/compute/v2/generated/validators/createInstanceRequestBody.zod.js +4 -0
  126. package/dist/compute/v2/generated/validators/createInstanceResponseBody.zod.d.ts +3 -0
  127. package/dist/compute/v2/generated/validators/createLaunchTemplateRequestBody.zod.d.ts +1 -0
  128. package/dist/compute/v2/generated/validators/createLaunchTemplateResponseBody.zod.d.ts +1 -0
  129. package/dist/compute/v2/generated/validators/createPrivateImageResponseBody.zod.d.ts +1 -0
  130. package/dist/compute/v2/generated/validators/deleteInstanceResponseBody.zod.d.ts +3 -0
  131. package/dist/compute/v2/generated/validators/deletePrivateImageResponseBody.zod.d.ts +1 -0
  132. package/dist/compute/v2/generated/validators/instance.zod.d.ts +3 -0
  133. package/dist/compute/v2/generated/validators/instance.zod.js +10 -0
  134. package/dist/compute/v2/generated/validators/instanceListResponseBody.zod.d.ts +3 -0
  135. package/dist/compute/v2/generated/validators/launchTemplateVersion.zod.d.ts +1 -0
  136. package/dist/compute/v2/generated/validators/launchTemplateVersion.zod.js +4 -0
  137. package/dist/compute/v2/generated/validators/launchTemplateVersionListResponseBody.zod.d.ts +1 -0
  138. package/dist/compute/v2/generated/validators/newLaunchTemplateVersion.zod.d.ts +1 -0
  139. package/dist/compute/v2/generated/validators/newLaunchTemplateVersion.zod.js +4 -0
  140. package/dist/compute/v2/generated/validators/privateImageListResponseBody.zod.d.ts +1 -0
  141. package/dist/compute/v2/generated/validators/privateImageResource.zod.d.ts +1 -0
  142. package/dist/compute/v2/generated/validators/privateImageResource.zod.js +3 -0
  143. package/dist/compute/v2/generated/validators/publicImageListResponseBody.zod.d.ts +1 -0
  144. package/dist/compute/v2/generated/validators/publicImageResource.zod.d.ts +1 -0
  145. package/dist/compute/v2/generated/validators/publicImageResource.zod.js +3 -0
  146. package/dist/compute/v2/generated/validators/rebuildInstanceRequestBody.zod.d.ts +1 -0
  147. package/dist/compute/v2/generated/validators/rebuildInstanceRequestBody.zod.js +4 -0
  148. package/dist/compute/v2/generated/validators/rebuildInstanceResponseBody.zod.d.ts +3 -0
  149. package/dist/compute/v2/generated/validators/rescueInstanceResponseBody.zod.d.ts +3 -0
  150. package/dist/compute/v2/generated/validators/updateInstanceResponseBody.zod.d.ts +3 -0
  151. package/dist/iam/v1/generated/functions.d.ts +9 -2
  152. package/dist/iam/v1/generated/functions.js +9 -2
  153. package/dist/iam/v1/generated/models.d.ts +1 -1
  154. package/dist/iam/v1/generated/schemas.zod.d.ts +9 -2
  155. package/dist/iam/v1/generated/schemas.zod.js +9 -2
  156. package/dist/iam/v1/generated/validators/createApplicationRequestBody.zod.js +1 -1
  157. package/dist/proto/leaflow/fleet/virtualdesktop/datatransfer/v1/datatransfer_pb.d.ts +38 -1
  158. package/dist/routes.d.ts +32 -0
  159. package/dist/routes.js +36 -0
  160. package/package.json +1 -1
  161. package/dist/compute/v2/generated/validators/rescueInstanceRequestBody.zod.d.ts +0 -42
  162. 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. Membership of this project
671
- * is confirmed only when a token is exchanged for a scoped token.
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. Membership of this project
715
- * is confirmed only when a token is exchanged for a scoped token.
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. Membership of this project
272
- * is confirmed only when a token is exchanged for a scoped token.
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. Membership of this project
299
- * is confirmed only when a token is exchanged for a scoped token.
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
  });
@@ -8,6 +8,42 @@ import type { Message } from "@bufbuild/protobuf";
8
8
  */
9
9
  export declare const file_leaflow_fleet_virtualdesktop_datatransfer_v1_datatransfer: GenFile;
10
10
  /**
11
+ * Windows 原生表示不能仅按格式名合并:同一格式的 aspect、index 和介质各自独立。
12
+ * 无法用标准媒体类型完整表达的可序列化表示使用下列媒体类型(参数均为 ASCII):
13
+ * application/x-leaflow-windows-format;name=<utf16hex>;aspect=<u32>;index=<i32>;medium=<kind>
14
+ * name 为格式名每个 UTF-16 单元的四位十六进制串,不含终止 NUL;接收端以名称重新
15
+ * 注册格式,不得跨机复用来源的注册号。非注册格式改用 id=<1..49151>,不得同时带 name。
16
+ * aspect、index、medium 必须显式存在,不得丢失、重复或以未知参数降级为其它格式。
17
+ * medium=bytes 为 HGLOBAL/IStream 的可序列化字节,medium=storage 为完整 Compound File
18
+ * Binary 表示,medium=emf 为 TYMED_ENHMF 的完整增强型图元文件记录,不得降为位图。
19
+ * 普通 CF_ENHMETAFILE 的内容表示使用 image/emf;其它 aspect/index 保留显式选择器。
20
+ * medium=file 为 TYMED_FILE 承载的某种格式的完整正文,不是 lpszFileName 或文件引用。
21
+ * 仅在读取该表示时打开来源本机介质,按块取得正文;空正文有效,读取失败不改用其它格式。
22
+ * 接收端按需创建独立的本机临时介质文件,文件名仅交给本机 OLE 目标,绝不跨机发送。
23
+ * 已交出的介质由自己的 STGMEDIUM/pUnkForRelease 持有,不随原声明或读取期结束提前删除;
24
+ * 最后一个介质引用释放时删除自己创建的临时文件。来源介质仍按原 STGMEDIUM 的规则释放。
25
+ * medium=metafile-picture 为 TYMED_MFPICT:先依次编码 mm、xExt、yExt 三个 i32 小端数,
26
+ * 随后是完整 WMF 记录;不得发送 METAFILEPICT 的本机结构、对齐填充或 hMF 句柄。
27
+ * medium=gdi 为 TYMED_GDI:先编码对象种类 u32 小端数,7 为位图,5 为调色板。
28
+ * 位图随后为 40 字节 BITMAPINFOHEADER、BI_BITFIELDS 所需的三个颜色掩码、声明的
29
+ * RGBQUAD 颜色表及 DWORD 对齐的完整像素行;仅使用 BI_RGB 或 BI_BITFIELDS,保留
30
+ * 有效色深和像素,biSizeImage 精确等于像素长度,不含 BMP 文件头或本机指针。
31
+ * 调色板随后为 LOGPALETTE:version=0x300、条目数两个 u16 小端数,再依次编码每个
32
+ * PALETTEENTRY 的 red、green、blue、flags 四字节,接收端创建新的本机 GDI 对象。
33
+ * FORMATETC 的非空 ptd 另以可选 device=<bytehex> 参数声明整个 DVTARGETDEVICE;
34
+ * 每字节两个十六进制字符,包含 tdSize 指定的完整描述、DEVMODE 和驱动私有尾部。
35
+ * 省略 device 表示空 ptd;长度和内部偏移必须有效,不得把畸形或重复参数降级为普通
36
+ * 注册格式。设备描述也是表示身份,枚举、读取、缓存和重建不得合并不同 device。
37
+ * 各次原生枚举交出独立、可由 COM 分配器释放的副本;不得预读正文来取得该声明。
38
+ * 设备描述仅供保留和匹配,不得据此加载来源驱动或创建来源设备,也不进入日志。
39
+ * 本机介质与以完整媒体类型名提供的原始 HGLOBAL/IStream 字节表示可同时存在;
40
+ * 两者声明同一跨机格式时优先读取原始序列化字节,不得先经过本机 GDI 编组而改变
41
+ * 像素、色表、掩码或其它记录。两种本机表示共用同一媒体类型、读取期和数据通道。
42
+ * 接收端从记录重建介质,绝不把原生句柄、指针、COM 接口或源文件路径当正文。
43
+ * CF_HDROP(id=15)、FileContents、FileGroupDescriptor、PIDL、FileName 等文件/路径格式及
44
+ * 拖放控制格式仍归 filetransfer 或拖放适配,不得用此媒体类型绕过文件引用和权限。
45
+ * 原生声明和取得流引用不能预读正文;各表示继续独立按需读取、校验和取消。
46
+ *
11
47
  * Data of one format.
12
48
  *
13
49
  * @generated from message leaflow.fleet.virtualdesktop.datatransfer.v1.DataTransferItem
@@ -1364,7 +1400,8 @@ export type DragPolicy = Message<"leaflow.fleet.virtualdesktop.datatransfer.v1.D
1364
1400
  */
1365
1401
  allowedMimeTypes: string[];
1366
1402
  /**
1367
- * The longest a drag may last, at most 5 minutes. Unset or 0: no drags.
1403
+ * DragDrop 之前物理手势的最长时间,至多 5 分钟;未设置或 0 表示不能拖拽。
1404
+ * 已受理的原生确认、格式读取及文件交付不受旧手势时限约束,不代表放宽当前权限。
1368
1405
  *
1369
1406
  * @generated from field: google.protobuf.Duration max_duration = 4;
1370
1407
  */