@leaflow/sdk 0.0.0-dev.355.g42152f5 → 0.0.0-dev.358.gbb34078

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 (119) hide show
  1. package/dist/account/v1/generated/functions.d.ts +92 -1
  2. package/dist/account/v1/generated/functions.js +70 -0
  3. package/dist/account/v1/generated/models.d.ts +33 -1
  4. package/dist/account/v1/generated/models.js +5 -0
  5. package/dist/account/v1/generated/schemas.zod.d.ts +52 -0
  6. package/dist/account/v1/generated/schemas.zod.js +52 -1
  7. package/dist/account/v1/generated/validators/acceptConsentsRequestBody.zod.d.ts +6 -0
  8. package/dist/account/v1/generated/validators/acceptConsentsRequestBody.zod.js +6 -0
  9. package/dist/account/v1/generated/validators/acceptInvitationByTokenRequestBody.zod.d.ts +6 -0
  10. package/dist/account/v1/generated/validators/acceptInvitationByTokenRequestBody.zod.js +6 -0
  11. package/dist/account/v1/generated/validators/acceptedInvitationResponseBody.zod.d.ts +7 -0
  12. package/dist/account/v1/generated/validators/acceptedInvitationResponseBody.zod.js +6 -0
  13. package/dist/account/v1/generated/validators/accountResource.zod.d.ts +6 -0
  14. package/dist/account/v1/generated/validators/accountResource.zod.js +6 -0
  15. package/dist/account/v1/generated/validators/agreementListResponseBody.zod.d.ts +6 -0
  16. package/dist/account/v1/generated/validators/agreementListResponseBody.zod.js +6 -0
  17. package/dist/account/v1/generated/validators/agreementResource.zod.d.ts +6 -0
  18. package/dist/account/v1/generated/validators/agreementResource.zod.js +6 -0
  19. package/dist/account/v1/generated/validators/consentBody.zod.d.ts +6 -0
  20. package/dist/account/v1/generated/validators/consentBody.zod.js +6 -0
  21. package/dist/account/v1/generated/validators/consentListResponseBody.zod.d.ts +6 -0
  22. package/dist/account/v1/generated/validators/consentListResponseBody.zod.js +6 -0
  23. package/dist/account/v1/generated/validators/consentResource.zod.d.ts +6 -0
  24. package/dist/account/v1/generated/validators/consentResource.zod.js +6 -0
  25. package/dist/account/v1/generated/validators/countryOption.zod.d.ts +6 -0
  26. package/dist/account/v1/generated/validators/countryOption.zod.js +6 -0
  27. package/dist/account/v1/generated/validators/createProjectRequestBody.zod.d.ts +8 -0
  28. package/dist/account/v1/generated/validators/createProjectRequestBody.zod.js +12 -0
  29. package/dist/account/v1/generated/validators/cursorPagination.zod.d.ts +6 -0
  30. package/dist/account/v1/generated/validators/cursorPagination.zod.js +6 -0
  31. package/dist/account/v1/generated/validators/error.zod.d.ts +6 -0
  32. package/dist/account/v1/generated/validators/error.zod.js +6 -0
  33. package/dist/account/v1/generated/validators/grantResource.zod.d.ts +6 -0
  34. package/dist/account/v1/generated/validators/grantResource.zod.js +6 -0
  35. package/dist/account/v1/generated/validators/identityVerificationResource.zod.d.ts +6 -0
  36. package/dist/account/v1/generated/validators/identityVerificationResource.zod.js +6 -0
  37. package/dist/account/v1/generated/validators/invitationPreviewResource.zod.d.ts +6 -0
  38. package/dist/account/v1/generated/validators/invitationPreviewResource.zod.js +6 -0
  39. package/dist/account/v1/generated/validators/invitationResource.zod.d.ts +6 -0
  40. package/dist/account/v1/generated/validators/invitationResource.zod.js +6 -0
  41. package/dist/account/v1/generated/validators/languageOption.zod.d.ts +6 -0
  42. package/dist/account/v1/generated/validators/languageOption.zod.js +6 -0
  43. package/dist/account/v1/generated/validators/lengthAwarePageInvitationResource.zod.d.ts +6 -0
  44. package/dist/account/v1/generated/validators/lengthAwarePageInvitationResource.zod.js +6 -0
  45. package/dist/account/v1/generated/validators/lengthAwarePageProjectAccessResource.zod.d.ts +7 -0
  46. package/dist/account/v1/generated/validators/lengthAwarePageProjectAccessResource.zod.js +6 -0
  47. package/dist/account/v1/generated/validators/listMyInvitationsParams.zod.d.ts +6 -0
  48. package/dist/account/v1/generated/validators/listMyInvitationsParams.zod.js +6 -0
  49. package/dist/account/v1/generated/validators/listProjectsParams.zod.d.ts +6 -0
  50. package/dist/account/v1/generated/validators/listProjectsParams.zod.js +7 -1
  51. package/dist/account/v1/generated/validators/locale.zod.d.ts +6 -0
  52. package/dist/account/v1/generated/validators/locale.zod.js +6 -0
  53. package/dist/account/v1/generated/validators/localeOptionsResource.zod.d.ts +6 -0
  54. package/dist/account/v1/generated/validators/localeOptionsResource.zod.js +6 -0
  55. package/dist/account/v1/generated/validators/offsetPagination.zod.d.ts +6 -0
  56. package/dist/account/v1/generated/validators/offsetPagination.zod.js +6 -0
  57. package/dist/account/v1/generated/validators/previewInvitationByTokenParams.zod.d.ts +6 -0
  58. package/dist/account/v1/generated/validators/previewInvitationByTokenParams.zod.js +6 -0
  59. package/dist/account/v1/generated/validators/projectAccessResource.zod.d.ts +7 -0
  60. package/dist/account/v1/generated/validators/projectAccessResource.zod.js +6 -0
  61. package/dist/account/v1/generated/validators/projectResource.zod.d.ts +8 -0
  62. package/dist/account/v1/generated/validators/projectResource.zod.js +12 -0
  63. package/dist/account/v1/generated/validators/projectSlugAvailabilityResource.zod.d.ts +36 -0
  64. package/dist/account/v1/generated/validators/projectSlugAvailabilityResource.zod.js +32 -0
  65. package/dist/account/v1/generated/validators/projectTraitResource.zod.d.ts +6 -0
  66. package/dist/account/v1/generated/validators/projectTraitResource.zod.js +6 -0
  67. package/dist/account/v1/generated/validators/registerRequestBody.zod.d.ts +6 -0
  68. package/dist/account/v1/generated/validators/registerRequestBody.zod.js +6 -0
  69. package/dist/account/v1/generated/validators/resourceRefResource.zod.d.ts +6 -0
  70. package/dist/account/v1/generated/validators/resourceRefResource.zod.js +6 -0
  71. package/dist/account/v1/generated/validators/ruleResource.zod.d.ts +6 -0
  72. package/dist/account/v1/generated/validators/ruleResource.zod.js +6 -0
  73. package/dist/account/v1/generated/validators/scopedTokenResponseBody.zod.d.ts +7 -0
  74. package/dist/account/v1/generated/validators/scopedTokenResponseBody.zod.js +6 -0
  75. package/dist/account/v1/generated/validators/settingsResource.zod.d.ts +6 -0
  76. package/dist/account/v1/generated/validators/settingsResource.zod.js +6 -0
  77. package/dist/account/v1/generated/validators/submitIdentityVerificationRequestBody.zod.d.ts +6 -0
  78. package/dist/account/v1/generated/validators/submitIdentityVerificationRequestBody.zod.js +6 -0
  79. package/dist/account/v1/generated/validators/updateAccountRequestBody.zod.d.ts +6 -0
  80. package/dist/account/v1/generated/validators/updateAccountRequestBody.zod.js +6 -0
  81. package/dist/compute/v1/generated/validators/allocateFloatingIPResponseBody.zod.d.ts +1 -1
  82. package/dist/compute/v1/generated/validators/backupListResponseBody.zod.d.ts +1 -1
  83. package/dist/compute/v1/generated/validators/backupResource.zod.d.ts +1 -1
  84. package/dist/compute/v1/generated/validators/createDiskResponseBody.zod.d.ts +2 -2
  85. package/dist/compute/v1/generated/validators/createImageResponseBody.zod.d.ts +1 -1
  86. package/dist/compute/v1/generated/validators/diskAttachment.zod.d.ts +1 -1
  87. package/dist/compute/v1/generated/validators/diskAttachmentList.zod.d.ts +1 -1
  88. package/dist/compute/v1/generated/validators/diskListResponseBody.zod.d.ts +2 -2
  89. package/dist/compute/v1/generated/validators/diskResource.zod.d.ts +2 -2
  90. package/dist/compute/v1/generated/validators/floatingIPListResponseBody.zod.d.ts +1 -1
  91. package/dist/compute/v1/generated/validators/floatingIPResource.zod.d.ts +1 -1
  92. package/dist/compute/v1/generated/validators/imageListResponseBody.zod.d.ts +1 -1
  93. package/dist/compute/v1/generated/validators/imageResource.zod.d.ts +1 -1
  94. package/dist/compute/v1/generated/validators/portAddress.zod.d.ts +1 -1
  95. package/dist/compute/v1/generated/validators/portAttachment.zod.d.ts +1 -1
  96. package/dist/compute/v1/generated/validators/portAttachmentList.zod.d.ts +1 -1
  97. package/dist/compute/v1/generated/validators/portListResponseBody.zod.d.ts +3 -3
  98. package/dist/compute/v1/generated/validators/portResource.zod.d.ts +3 -3
  99. package/dist/compute/v1/generated/validators/resizeDiskResponseBody.zod.d.ts +2 -2
  100. package/dist/compute/v1/generated/validators/setFloatingIPBandwidthResponseBody.zod.d.ts +1 -1
  101. package/dist/compute/v1/generated/validators/snapshotListResponseBody.zod.d.ts +1 -1
  102. package/dist/compute/v1/generated/validators/snapshotResource.zod.d.ts +1 -1
  103. package/dist/iam/v1/generated/functions.d.ts +32 -1
  104. package/dist/iam/v1/generated/functions.js +43 -0
  105. package/dist/iam/v1/generated/models.d.ts +14 -0
  106. package/dist/iam/v1/generated/schemas.zod.d.ts +17 -0
  107. package/dist/iam/v1/generated/schemas.zod.js +16 -0
  108. package/dist/iam/v1/generated/validators/projectAccessResource.zod.d.ts +1 -0
  109. package/dist/iam/v1/generated/validators/projectResource.zod.d.ts +2 -0
  110. package/dist/iam/v1/generated/validators/projectResource.zod.js +6 -0
  111. package/dist/iam/v1/generated/validators/setProjectSlugRequestBody.zod.d.ts +22 -0
  112. package/dist/iam/v1/generated/validators/setProjectSlugRequestBody.zod.js +24 -0
  113. package/dist/routes.d.ts +32 -0
  114. package/dist/routes.js +36 -0
  115. package/dist/type/resource/v1/generated/validators/attachment.zod.d.ts +1 -1
  116. package/dist/type/resource/v1/generated/validators/attachmentList.zod.d.ts +1 -1
  117. package/dist/type/resource/v1/generated/validators/resourceUsage.zod.d.ts +1 -1
  118. package/dist/type/resource/v1/generated/validators/resourceUsageList.zod.d.ts +1 -1
  119. package/package.json +1 -1
@@ -15,10 +15,17 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
21
27
  import { ProjectTraitResource } from "./projectTraitResource.zod.js";
28
+ export const projectResourceSlugMax = 36;
22
29
  export const ProjectResource = zod.strictObject({
23
30
  traits: zod.array(ProjectTraitResource),
24
31
  deletion_requested_at: zod.iso.datetime({ offset: true }).nullable(),
@@ -30,6 +37,11 @@ export const ProjectResource = zod.strictObject({
30
37
  .describe("When the project was deleted"),
31
38
  description: zod.string(),
32
39
  id: zod.uuid(),
40
+ slug: zod
41
+ .string()
42
+ .min(1)
43
+ .max(projectResourceSlugMax)
44
+ .describe("The label naming the project in its address. It equals `id` until a custom slug is chosen. A custom slug does not change once set, and stays with the project after deletion"),
33
45
  name: zod.string(),
34
46
  updated_at: zod.iso.datetime({ offset: true }),
35
47
  });
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Leaflow Account API
5
+ * Everything that comes before a project is chosen: registration, the account itself, the projects the caller belongs to, and entry into one of them.
6
+ *
7
+ * ## Authentication
8
+ *
9
+ * Every request carries `Authorization: Bearer <access token>`, obtained by signing in at auth.leaflow.net. The endpoints that need no token say so.
10
+ *
11
+ * ## Entering a project
12
+ *
13
+ * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
+ * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
+ * 3. Every other service is called with that scoped token.
16
+ *
17
+ * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
24
+ * OpenAPI spec version: 1.0.0
25
+ */
26
+ import * as zod from "zod";
27
+ export declare const ProjectSlugAvailabilityResource: zod.ZodObject<{
28
+ slug: zod.ZodString;
29
+ status: zod.ZodEnum<{
30
+ available: "available";
31
+ reserved: "reserved";
32
+ taken: "taken";
33
+ }>;
34
+ }, zod.z.core.$strict>;
35
+ export type ProjectSlugAvailabilityResource = zod.input<typeof ProjectSlugAvailabilityResource>;
36
+ export type ProjectSlugAvailabilityResourceOutput = zod.output<typeof ProjectSlugAvailabilityResource>;
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Leaflow Account API
5
+ * Everything that comes before a project is chosen: registration, the account itself, the projects the caller belongs to, and entry into one of them.
6
+ *
7
+ * ## Authentication
8
+ *
9
+ * Every request carries `Authorization: Bearer <access token>`, obtained by signing in at auth.leaflow.net. The endpoints that need no token say so.
10
+ *
11
+ * ## Entering a project
12
+ *
13
+ * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
+ * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
+ * 3. Every other service is called with that scoped token.
16
+ *
17
+ * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
24
+ * OpenAPI spec version: 1.0.0
25
+ */
26
+ import * as zod from "zod";
27
+ export const ProjectSlugAvailabilityResource = zod.strictObject({
28
+ slug: zod.string().describe("The slug asked about"),
29
+ status: zod
30
+ .enum(["available", "reserved", "taken"])
31
+ .describe("`available` when the slug can be chosen now, `reserved` when the name is reserved, and `taken` when a project, including a deleted one, holds it"),
32
+ });
@@ -15,6 +15,12 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
@@ -15,6 +15,12 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
@@ -15,6 +15,12 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
@@ -15,6 +15,12 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
@@ -15,6 +15,12 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
@@ -15,6 +15,12 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
@@ -15,6 +15,12 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
@@ -15,6 +15,12 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
@@ -15,6 +15,12 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
@@ -53,6 +59,7 @@ export declare const ScopedTokenResponseBody: zod.ZodObject<{
53
59
  deleted_at: zod.ZodNullable<zod.z.ZodISODateTime>;
54
60
  description: zod.ZodString;
55
61
  id: zod.ZodUUID;
62
+ slug: zod.ZodString;
56
63
  name: zod.ZodString;
57
64
  updated_at: zod.z.ZodISODateTime;
58
65
  }, zod.z.core.$strict>;
@@ -15,6 +15,12 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
@@ -15,6 +15,12 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
@@ -15,6 +15,12 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
@@ -15,6 +15,12 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
@@ -15,6 +15,12 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
@@ -15,6 +15,12 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
@@ -15,6 +15,12 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
@@ -30,13 +30,13 @@ export declare const AllocateFloatingIPResponseBody: zod.ZodObject<{
30
30
  id: zod.ZodUUID;
31
31
  region_id: zod.ZodUUID;
32
32
  status: zod.ZodEnum<{
33
+ available: "available";
33
34
  error: "error";
34
35
  unknown: "unknown";
35
36
  pending: "pending";
36
37
  failed: "failed";
37
38
  deleted: "deleted";
38
39
  provisioning: "provisioning";
39
- available: "available";
40
40
  missing: "missing";
41
41
  }>;
42
42
  order_id: zod.ZodNullable<zod.ZodUUID>;
@@ -32,11 +32,11 @@ export declare const BackupListResponseBody: zod.ZodObject<{
32
32
  capacity_gib: zod.ZodInt;
33
33
  source_disk_id: zod.ZodUUID;
34
34
  status: zod.ZodEnum<{
35
+ available: "available";
35
36
  error: "error";
36
37
  failed: "failed";
37
38
  deleted: "deleted";
38
39
  provisioning: "provisioning";
39
- available: "available";
40
40
  missing: "missing";
41
41
  }>;
42
42
  operation: zod.ZodUnion<readonly [zod.ZodObject<{
@@ -31,11 +31,11 @@ export declare const BackupResource: zod.ZodObject<{
31
31
  capacity_gib: zod.ZodInt;
32
32
  source_disk_id: zod.ZodUUID;
33
33
  status: zod.ZodEnum<{
34
+ available: "available";
34
35
  error: "error";
35
36
  failed: "failed";
36
37
  deleted: "deleted";
37
38
  provisioning: "provisioning";
38
- available: "available";
39
39
  missing: "missing";
40
40
  }>;
41
41
  operation: zod.ZodUnion<readonly [zod.ZodObject<{
@@ -34,12 +34,12 @@ export declare const CreateDiskResponseBody: zod.ZodObject<{
34
34
  iops: zod.ZodNullable<zod.ZodInt>;
35
35
  throughput_bytes_per_sec: zod.ZodNullable<zod.ZodInt>;
36
36
  status: zod.ZodEnum<{
37
+ available: "available";
37
38
  error: "error";
38
39
  pending: "pending";
39
40
  failed: "failed";
40
41
  deleted: "deleted";
41
42
  provisioning: "provisioning";
42
- available: "available";
43
43
  missing: "missing";
44
44
  in_use: "in_use";
45
45
  }>;
@@ -88,8 +88,8 @@ export declare const CreateDiskResponseBody: zod.ZodObject<{
88
88
  }>;
89
89
  delete_with_instance: zod.ZodBoolean;
90
90
  state: zod.ZodEnum<{
91
- unknown: "unknown";
92
91
  reserved: "reserved";
92
+ unknown: "unknown";
93
93
  attached: "attached";
94
94
  released: "released";
95
95
  }>;
@@ -39,12 +39,12 @@ export declare const CreateImageResponseBody: zod.ZodObject<{
39
39
  min_ram_mb: zod.ZodInt;
40
40
  supports_password_reset: zod.ZodBoolean;
41
41
  status: zod.ZodEnum<{
42
+ available: "available";
42
43
  error: "error";
43
44
  pending: "pending";
44
45
  failed: "failed";
45
46
  deleted: "deleted";
46
47
  provisioning: "provisioning";
47
- available: "available";
48
48
  missing: "missing";
49
49
  uploading: "uploading";
50
50
  }>;
@@ -32,8 +32,8 @@ export declare const DiskAttachment: zod.ZodObject<{
32
32
  }>;
33
33
  delete_with_instance: zod.ZodBoolean;
34
34
  state: zod.ZodEnum<{
35
- unknown: "unknown";
36
35
  reserved: "reserved";
36
+ unknown: "unknown";
37
37
  attached: "attached";
38
38
  released: "released";
39
39
  }>;
@@ -33,8 +33,8 @@ export declare const DiskAttachmentList: zod.ZodObject<{
33
33
  }>;
34
34
  delete_with_instance: zod.ZodBoolean;
35
35
  state: zod.ZodEnum<{
36
- unknown: "unknown";
37
36
  reserved: "reserved";
37
+ unknown: "unknown";
38
38
  attached: "attached";
39
39
  released: "released";
40
40
  }>;
@@ -34,12 +34,12 @@ export declare const DiskListResponseBody: zod.ZodObject<{
34
34
  iops: zod.ZodNullable<zod.ZodInt>;
35
35
  throughput_bytes_per_sec: zod.ZodNullable<zod.ZodInt>;
36
36
  status: zod.ZodEnum<{
37
+ available: "available";
37
38
  error: "error";
38
39
  pending: "pending";
39
40
  failed: "failed";
40
41
  deleted: "deleted";
41
42
  provisioning: "provisioning";
42
- available: "available";
43
43
  missing: "missing";
44
44
  in_use: "in_use";
45
45
  }>;
@@ -88,8 +88,8 @@ export declare const DiskListResponseBody: zod.ZodObject<{
88
88
  }>;
89
89
  delete_with_instance: zod.ZodBoolean;
90
90
  state: zod.ZodEnum<{
91
- unknown: "unknown";
92
91
  reserved: "reserved";
92
+ unknown: "unknown";
93
93
  attached: "attached";
94
94
  released: "released";
95
95
  }>;
@@ -33,12 +33,12 @@ export declare const DiskResource: zod.ZodObject<{
33
33
  iops: zod.ZodNullable<zod.ZodInt>;
34
34
  throughput_bytes_per_sec: zod.ZodNullable<zod.ZodInt>;
35
35
  status: zod.ZodEnum<{
36
+ available: "available";
36
37
  error: "error";
37
38
  pending: "pending";
38
39
  failed: "failed";
39
40
  deleted: "deleted";
40
41
  provisioning: "provisioning";
41
- available: "available";
42
42
  missing: "missing";
43
43
  in_use: "in_use";
44
44
  }>;
@@ -87,8 +87,8 @@ export declare const DiskResource: zod.ZodObject<{
87
87
  }>;
88
88
  delete_with_instance: zod.ZodBoolean;
89
89
  state: zod.ZodEnum<{
90
- unknown: "unknown";
91
90
  reserved: "reserved";
91
+ unknown: "unknown";
92
92
  attached: "attached";
93
93
  released: "released";
94
94
  }>;
@@ -30,13 +30,13 @@ export declare const FloatingIPListResponseBody: zod.ZodObject<{
30
30
  id: zod.ZodUUID;
31
31
  region_id: zod.ZodUUID;
32
32
  status: zod.ZodEnum<{
33
+ available: "available";
33
34
  error: "error";
34
35
  unknown: "unknown";
35
36
  pending: "pending";
36
37
  failed: "failed";
37
38
  deleted: "deleted";
38
39
  provisioning: "provisioning";
39
- available: "available";
40
40
  missing: "missing";
41
41
  }>;
42
42
  order_id: zod.ZodNullable<zod.ZodUUID>;
@@ -29,13 +29,13 @@ export declare const FloatingIPResource: zod.ZodObject<{
29
29
  id: zod.ZodUUID;
30
30
  region_id: zod.ZodUUID;
31
31
  status: zod.ZodEnum<{
32
+ available: "available";
32
33
  error: "error";
33
34
  unknown: "unknown";
34
35
  pending: "pending";
35
36
  failed: "failed";
36
37
  deleted: "deleted";
37
38
  provisioning: "provisioning";
38
- available: "available";
39
39
  missing: "missing";
40
40
  }>;
41
41
  order_id: zod.ZodNullable<zod.ZodUUID>;
@@ -39,12 +39,12 @@ export declare const ImageListResponseBody: zod.ZodObject<{
39
39
  min_ram_mb: zod.ZodInt;
40
40
  supports_password_reset: zod.ZodBoolean;
41
41
  status: zod.ZodEnum<{
42
+ available: "available";
42
43
  error: "error";
43
44
  pending: "pending";
44
45
  failed: "failed";
45
46
  deleted: "deleted";
46
47
  provisioning: "provisioning";
47
- available: "available";
48
48
  missing: "missing";
49
49
  uploading: "uploading";
50
50
  }>;
@@ -39,12 +39,12 @@ export declare const ImageResource: zod.ZodObject<{
39
39
  min_ram_mb: zod.ZodInt;
40
40
  supports_password_reset: zod.ZodBoolean;
41
41
  status: zod.ZodEnum<{
42
+ available: "available";
42
43
  error: "error";
43
44
  pending: "pending";
44
45
  failed: "failed";
45
46
  deleted: "deleted";
46
47
  provisioning: "provisioning";
47
- available: "available";
48
48
  missing: "missing";
49
49
  uploading: "uploading";
50
50
  }>;
@@ -29,8 +29,8 @@ export declare const PortAddress: zod.ZodObject<{
29
29
  address: zod.ZodString;
30
30
  is_primary: zod.ZodBoolean;
31
31
  state: zod.ZodEnum<{
32
- unknown: "unknown";
33
32
  reserved: "reserved";
33
+ unknown: "unknown";
34
34
  released: "released";
35
35
  assigned: "assigned";
36
36
  }>;
@@ -32,8 +32,8 @@ export declare const PortAttachment: zod.ZodObject<{
32
32
  }>;
33
33
  delete_with_instance: zod.ZodBoolean;
34
34
  state: zod.ZodEnum<{
35
- unknown: "unknown";
36
35
  reserved: "reserved";
36
+ unknown: "unknown";
37
37
  attached: "attached";
38
38
  released: "released";
39
39
  }>;
@@ -33,8 +33,8 @@ export declare const PortAttachmentList: zod.ZodObject<{
33
33
  }>;
34
34
  delete_with_instance: zod.ZodBoolean;
35
35
  state: zod.ZodEnum<{
36
- unknown: "unknown";
37
36
  reserved: "reserved";
37
+ unknown: "unknown";
38
38
  attached: "attached";
39
39
  released: "released";
40
40
  }>;
@@ -35,8 +35,8 @@ export declare const PortListResponseBody: zod.ZodObject<{
35
35
  address: zod.ZodString;
36
36
  is_primary: zod.ZodBoolean;
37
37
  state: zod.ZodEnum<{
38
- unknown: "unknown";
39
38
  reserved: "reserved";
39
+ unknown: "unknown";
40
40
  released: "released";
41
41
  assigned: "assigned";
42
42
  }>;
@@ -53,8 +53,8 @@ export declare const PortListResponseBody: zod.ZodObject<{
53
53
  }>;
54
54
  delete_with_instance: zod.ZodBoolean;
55
55
  state: zod.ZodEnum<{
56
- unknown: "unknown";
57
56
  reserved: "reserved";
57
+ unknown: "unknown";
58
58
  attached: "attached";
59
59
  released: "released";
60
60
  }>;
@@ -63,10 +63,10 @@ export declare const PortListResponseBody: zod.ZodObject<{
63
63
  released_at: zod.ZodNullable<zod.z.ZodISODateTime>;
64
64
  }, zod.z.core.$strict>, zod.ZodNull]>>;
65
65
  status: zod.ZodEnum<{
66
+ available: "available";
66
67
  error: "error";
67
68
  unknown: "unknown";
68
69
  pending: "pending";
69
- available: "available";
70
70
  missing: "missing";
71
71
  }>;
72
72
  generation: zod.ZodInt;