@spacefast/common 0.0.23 → 0.0.24

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 (176) hide show
  1. package/dist/config/domains.d.ts +1 -1
  2. package/dist/config/domains.js +1 -0
  3. package/dist/config/index.d.ts +0 -1
  4. package/dist/config/index.js +0 -1
  5. package/dist/contracts/abuse.d.ts +2 -0
  6. package/dist/contracts/abuse.js +12 -0
  7. package/dist/contracts/access.d.ts +121 -9
  8. package/dist/contracts/access.js +73 -9
  9. package/dist/contracts/activity.d.ts +1 -1
  10. package/dist/contracts/activity.js +0 -9
  11. package/dist/contracts/api-keys.d.ts +21 -21
  12. package/dist/contracts/beta.js +1 -1
  13. package/dist/contracts/billing.d.ts +1 -34
  14. package/dist/contracts/billing.js +4 -53
  15. package/dist/contracts/builds.d.ts +8 -8
  16. package/dist/contracts/builds.js +10 -3
  17. package/dist/contracts/cli.d.ts +10 -0
  18. package/dist/contracts/cli.js +10 -0
  19. package/dist/contracts/collab-public.d.ts +63 -0
  20. package/dist/contracts/collab-public.js +46 -0
  21. package/dist/contracts/comments.d.ts +283 -54
  22. package/dist/contracts/comments.js +173 -52
  23. package/dist/contracts/common.d.ts +3 -3
  24. package/dist/contracts/device-auth.d.ts +6 -6
  25. package/dist/contracts/device-auth.js +1 -1
  26. package/dist/contracts/docs.d.ts +5 -5
  27. package/dist/contracts/domains.d.ts +36 -36
  28. package/dist/contracts/enums.d.ts +33 -30
  29. package/dist/contracts/enums.js +52 -38
  30. package/dist/contracts/error-code-meta.d.ts +37 -126
  31. package/dist/contracts/error-code-meta.js +12 -41
  32. package/dist/contracts/error-codes.d.ts +1 -1
  33. package/dist/contracts/error-codes.js +10 -32
  34. package/dist/contracts/execution.d.ts +35 -57
  35. package/dist/contracts/execution.js +41 -40
  36. package/dist/contracts/feature-lifecycle-core.d.ts +0 -6
  37. package/dist/contracts/feature-lifecycle-core.js +2 -31
  38. package/dist/contracts/feature-lifecycle.d.ts +8 -38
  39. package/dist/contracts/feature-lifecycle.js +16 -48
  40. package/dist/contracts/features.d.ts +15 -13
  41. package/dist/contracts/features.js +39 -38
  42. package/dist/contracts/functions.d.ts +97 -70
  43. package/dist/contracts/functions.js +101 -34
  44. package/dist/contracts/git.d.ts +1 -1
  45. package/dist/contracts/grants.d.ts +7 -3
  46. package/dist/contracts/grants.js +18 -9
  47. package/dist/contracts/internal.d.ts +14 -1
  48. package/dist/contracts/internal.js +17 -7
  49. package/dist/contracts/oauth-resources.d.ts +4 -3
  50. package/dist/contracts/oauth-resources.js +12 -3
  51. package/dist/contracts/operations.d.ts +90 -5
  52. package/dist/contracts/operations.js +75 -1
  53. package/dist/contracts/pages.d.ts +6 -1
  54. package/dist/contracts/pages.js +24 -1
  55. package/dist/contracts/plan-policy.d.ts +1 -3
  56. package/dist/contracts/plan-policy.js +1 -2
  57. package/dist/contracts/platform.d.ts +61 -148
  58. package/dist/contracts/platform.js +70 -126
  59. package/dist/contracts/publish-archive.d.ts +498 -0
  60. package/dist/contracts/publish-archive.js +25 -0
  61. package/dist/contracts/resources.d.ts +12 -24
  62. package/dist/contracts/resources.js +32 -12
  63. package/dist/contracts/runtime-api.d.ts +369 -175
  64. package/dist/contracts/runtime-api.js +372 -348
  65. package/dist/contracts/runtime-app.d.ts +127 -120
  66. package/dist/contracts/runtime-app.js +19 -10
  67. package/dist/contracts/runtime-db.d.ts +1 -1
  68. package/dist/contracts/runtime-services.d.ts +219 -0
  69. package/dist/contracts/runtime-services.js +437 -0
  70. package/dist/contracts/runtime-storage.d.ts +45 -32
  71. package/dist/contracts/runtime-storage.js +30 -8
  72. package/dist/contracts/space-config.d.ts +10 -16
  73. package/dist/contracts/space-config.js +14 -10
  74. package/dist/contracts/spaces.d.ts +241 -436
  75. package/dist/contracts/spaces.js +128 -145
  76. package/dist/contracts/superadmin-activity.d.ts +57 -4
  77. package/dist/contracts/superadmin-activity.js +48 -2
  78. package/dist/contracts/superadmin-search.d.ts +126 -0
  79. package/dist/contracts/superadmin-search.js +61 -0
  80. package/dist/contracts/superadmin-spaces.d.ts +358 -89
  81. package/dist/contracts/superadmin-spaces.js +97 -24
  82. package/dist/contracts/superadmin-teams.d.ts +28 -10
  83. package/dist/contracts/superadmin-teams.js +5 -8
  84. package/dist/contracts/superadmin.d.ts +0 -32
  85. package/dist/contracts/superadmin.js +3 -11
  86. package/dist/contracts/tags.d.ts +9 -9
  87. package/dist/contracts/teams.d.ts +38 -0
  88. package/dist/contracts/teams.js +34 -16
  89. package/dist/contracts/transfers.d.ts +0 -49
  90. package/dist/contracts/transfers.js +2 -6
  91. package/dist/contracts/usage.d.ts +61 -0
  92. package/dist/contracts/usage.js +64 -0
  93. package/dist/contracts/variables.d.ts +2 -7
  94. package/dist/contracts/variables.js +6 -5
  95. package/dist/contracts/webhooks.d.ts +2 -2
  96. package/dist/contracts/zero.d.ts +87 -56
  97. package/dist/contracts/zero.js +82 -20
  98. package/dist/dashboard-paths/index.d.ts +1 -1
  99. package/dist/dashboard-paths/index.js +1 -0
  100. package/dist/docs/agent-prose.d.ts +1 -1
  101. package/dist/docs/agent-prose.js +57 -61
  102. package/dist/docs/agent-setup.js +40 -13
  103. package/dist/docs/catalog.d.ts +19 -19
  104. package/dist/docs/catalog.js +30 -19
  105. package/dist/docs/error-docs.js +63 -151
  106. package/dist/test-helpers/fetch-stub.d.ts +16 -0
  107. package/dist/test-helpers/fetch-stub.js +24 -0
  108. package/dist/utils/build-settings.js +9 -3
  109. package/dist/utils/canonical-json.d.ts +10 -0
  110. package/dist/utils/canonical-json.js +21 -0
  111. package/dist/utils/cast-transport.d.ts +28 -0
  112. package/dist/utils/cast-transport.js +52 -0
  113. package/dist/utils/claim-token.d.ts +0 -8
  114. package/dist/utils/claim-token.js +3 -15
  115. package/dist/utils/credential-policy.d.ts +1 -1
  116. package/dist/utils/env-file.d.ts +17 -0
  117. package/dist/utils/env-file.js +96 -0
  118. package/dist/utils/error-code.d.ts +2 -0
  119. package/dist/utils/error-code.js +7 -0
  120. package/dist/utils/generate-space-name.d.ts +8 -10
  121. package/dist/utils/generate-space-name.js +206 -21
  122. package/dist/utils/grant-decision.fixtures.json +2938 -0
  123. package/dist/utils/grants.d.ts +2 -0
  124. package/dist/utils/grants.js +25 -2
  125. package/dist/utils/gravatar.d.ts +9 -0
  126. package/dist/utils/gravatar.js +31 -0
  127. package/dist/utils/idempotency.d.ts +6 -0
  128. package/dist/utils/idempotency.js +28 -0
  129. package/dist/utils/local-space-state.d.ts +1 -5
  130. package/dist/utils/local-space-state.js +7 -26
  131. package/dist/utils/page-fonts.d.ts +2 -2
  132. package/dist/utils/page-fonts.js +22 -4
  133. package/dist/utils/pages.d.ts +1 -2
  134. package/dist/utils/pages.js +21 -5
  135. package/dist/utils/publish-form-data.d.ts +12 -0
  136. package/dist/utils/publish-form-data.js +10 -0
  137. package/dist/utils/publish-policy.d.ts +20 -0
  138. package/dist/utils/publish-policy.fixtures.json +397 -0
  139. package/dist/utils/publish-policy.js +36 -19
  140. package/dist/utils/push-new.d.ts +7 -0
  141. package/dist/utils/push-new.js +7 -0
  142. package/dist/utils/query-keys.d.ts +0 -1
  143. package/dist/utils/query-keys.js +0 -1
  144. package/dist/utils/runtime-paths.d.ts +5 -0
  145. package/dist/utils/runtime-paths.js +5 -0
  146. package/dist/utils/runtime-upload-batch.d.ts +0 -5
  147. package/dist/utils/runtime-upload-batch.js +1 -27
  148. package/dist/utils/runtime-upload.d.ts +3 -13
  149. package/dist/utils/runtime-upload.js +4 -14
  150. package/dist/utils/space-config.d.ts +0 -33
  151. package/dist/utils/space-config.js +5 -326
  152. package/dist/utils/storage-policy.d.ts +1 -1
  153. package/dist/utils/storage-policy.js +3 -1
  154. package/dist/utils/structured-error.d.ts +14 -0
  155. package/dist/utils/structured-error.js +22 -0
  156. package/dist/utils/version-path.js +12 -3
  157. package/dist/vocabulary.d.ts +5 -3
  158. package/dist/vocabulary.js +13 -10
  159. package/package.json +10 -5
  160. package/dist/config/postgres-budget.d.ts +0 -129
  161. package/dist/config/postgres-budget.js +0 -140
  162. package/dist/config/postgres-budget.json +0 -51
  163. package/dist/contracts/archives.d.ts +0 -331
  164. package/dist/contracts/archives.js +0 -120
  165. package/dist/contracts/deployments.d.ts +0 -574
  166. package/dist/contracts/deployments.js +0 -97
  167. package/dist/contracts/sites.d.ts +0 -416
  168. package/dist/contracts/sites.js +0 -168
  169. package/dist/contracts/superadmin-queues.d.ts +0 -414
  170. package/dist/contracts/superadmin-queues.js +0 -202
  171. package/dist/contracts/superadmin-runtime.d.ts +0 -27
  172. package/dist/contracts/superadmin-runtime.js +0 -38
  173. package/dist/index.d.ts +0 -1
  174. package/dist/index.js +0 -1
  175. package/dist/utils/api.d.ts +0 -4
  176. package/dist/utils/api.js +0 -13
@@ -1,120 +0,0 @@
1
- import { z } from "zod";
2
- import { baseDiagnosticSchema, CursorPaginationSchema, cursorListQuerySchema } from "./common.js";
3
- import { uploadInstructionsSchema } from "./internal.js";
4
- export const archiveListQuerySchema = cursorListQuerySchema;
5
- export const spaceExportRequestSchema = z
6
- .object({
7
- versionIds: z
8
- .array(z.string().min(1))
9
- .min(1)
10
- .optional()
11
- .describe("Version ids (ver_…) to export. Every id must belong to the space; omit to export all versions."),
12
- includeFiles: z
13
- .boolean()
14
- .default(true)
15
- .describe("Pass `true` to include version file trees and compiled serving artifacts. Pass `false` for a config-only archive that is not self-servable and cannot be re-imported."),
16
- })
17
- .strict();
18
- export const spaceExportArchiveSchema = z.object({
19
- // Zip-only contract: spacefast_export_v1 archives are always zip (the spec
20
- // allows "zip or tar"; one format keeps the enum honest).
21
- contentType: z.literal("application/zip").describe("Archive media type. Always zip."),
22
- downloadUrl: z
23
- .string()
24
- .describe("API-relative URL streaming the archive while it has not expired."),
25
- expiresAt: z
26
- .string()
27
- .datetime()
28
- .describe("When the archive download expires; the export flips to `expired` afterwards."),
29
- sizeBytes: z.number().int().nonnegative().optional().describe("Archive size in bytes."),
30
- sha256: z
31
- .string()
32
- .optional()
33
- .describe("SHA-256 of the archive bytes (64 lowercase hex characters), for verification."),
34
- });
35
- export const spaceExportSchema = z.object({
36
- id: z.string().describe("The export handle id (`exp_…`)."),
37
- spaceId: z.string().describe("The source space id (`spc_…`)."),
38
- status: z
39
- .enum(["queued", "running", "ready", "failed", "expired"])
40
- .describe("Export lifecycle. `expired` means the archive download window has passed."),
41
- format: z
42
- .literal("spacefast_export_v1")
43
- .describe("Archive format identifier. Always `spacefast_export_v1`."),
44
- diagnostics: z
45
- .array(baseDiagnosticSchema)
46
- .default([])
47
- .describe("Diagnostics collected while producing the export."),
48
- archive: spaceExportArchiveSchema
49
- .optional()
50
- .describe("Archive download details; present only while status is `ready`."),
51
- operationId: z
52
- .string()
53
- .nullable()
54
- .describe("Operation (op_…) tracking the asynchronous export work."),
55
- createdAt: z.string().datetime().describe("Instant when the export handle was created."),
56
- updatedAt: z.string().datetime().describe("Instant when the export handle last changed."),
57
- });
58
- export const spaceExportListResponseSchema = z.object({
59
- data: z.array(spaceExportSchema),
60
- pagination: CursorPaginationSchema,
61
- });
62
- export const spaceImportSourceSchema = z
63
- .discriminatedUnion("kind", [
64
- z.object({
65
- kind: z
66
- .literal("upload")
67
- .describe("Upload an archive; the response carries `archiveUpload` instructions."),
68
- }),
69
- z.object({
70
- kind: z.literal("url").describe("Fetch the archive from a public HTTPS URL."),
71
- url: z.string().url().describe("Public HTTPS URL of a spacefast_export_v1 archive."),
72
- }),
73
- z.object({
74
- kind: z.literal("export").describe("Import directly from an export on this control plane."),
75
- exportId: z.string().min(1).describe("Source export id (exp_…) accessible to the caller."),
76
- }),
77
- ])
78
- .describe("Where the spacefast_export_v1 archive comes from.");
79
- export const spaceImportRequestSchema = z.object({
80
- source: spaceImportSourceSchema,
81
- publish: z
82
- .boolean()
83
- .default(false)
84
- .describe("Pass `true` to promote the newest imported version to the live channel after it materializes. Imported versions never go public implicitly."),
85
- });
86
- export const spaceImportSchema = z.object({
87
- id: z.string().describe("The import handle id (`imp_…`)."),
88
- targetSpaceId: z.string().describe("The target space id (`spc_…`) the import materializes into."),
89
- status: z
90
- .enum([
91
- "created",
92
- "waiting_for_archive",
93
- "validating",
94
- "materializing",
95
- "ready",
96
- "failed",
97
- "canceled",
98
- ])
99
- .describe("Import lifecycle. Upload-kind imports wait in `waiting_for_archive` until the archive is uploaded and the import is finalized."),
100
- archiveUpload: uploadInstructionsSchema
101
- .optional()
102
- .describe("Archive upload instructions. This is the same upload contract as publish. Present while status is `waiting_for_archive`: PUT the archive to `{baseUrl}/{files[0]}` with the session token, then POST `links.finalize`. Each fetch of the import mints a fresh token."),
103
- draftVersionIds: z
104
- .array(z.string())
105
- .describe("Version ids (ver_…) minted and owned by this import."),
106
- diagnostics: z
107
- .array(baseDiagnosticSchema)
108
- .default([])
109
- .describe("Diagnostics collected during validation and materialization, including warnings for imported config overridden by the target space/parent policy."),
110
- operationId: z
111
- .string()
112
- .nullable()
113
- .describe("Operation (op_…) tracking the asynchronous import work."),
114
- createdAt: z.string().datetime().describe("Instant when the import handle was created."),
115
- updatedAt: z.string().datetime().describe("Instant when the import handle last changed."),
116
- });
117
- export const spaceImportListResponseSchema = z.object({
118
- data: z.array(spaceImportSchema),
119
- pagination: CursorPaginationSchema,
120
- });
@@ -1,574 +0,0 @@
1
- import { z } from "zod";
2
- export declare const deploymentStatusSchema: z.ZodEnum<{
3
- failed: "failed";
4
- canceled: "canceled";
5
- building: "building";
6
- ready: "ready";
7
- waiting_for_source: "waiting_for_source";
8
- queued: "queued";
9
- skipped: "skipped";
10
- }>;
11
- export declare const DeploymentSourceSchema: z.ZodObject<{
12
- kind: z.ZodNullable<z.ZodString>;
13
- provider: z.ZodNullable<z.ZodEnum<{
14
- github: "github";
15
- gitlab: "gitlab";
16
- bitbucket: "bitbucket";
17
- generic: "generic";
18
- }>>;
19
- repositoryId: z.ZodNullable<z.ZodString>;
20
- repositoryName: z.ZodNullable<z.ZodString>;
21
- repositoryFullName: z.ZodNullable<z.ZodString>;
22
- repositoryUrl: z.ZodNullable<z.ZodString>;
23
- ref: z.ZodNullable<z.ZodString>;
24
- branch: z.ZodNullable<z.ZodString>;
25
- commitSha: z.ZodNullable<z.ZodString>;
26
- commitUrl: z.ZodNullable<z.ZodString>;
27
- commitMessage: z.ZodNullable<z.ZodString>;
28
- commitAuthorName: z.ZodNullable<z.ZodString>;
29
- commitAuthorLogin: z.ZodNullable<z.ZodString>;
30
- pullRequestNumber: z.ZodNullable<z.ZodNumber>;
31
- actorType: z.ZodNullable<z.ZodEnum<{
32
- system: "system";
33
- user: "user";
34
- api_key: "api_key";
35
- oauth_client: "oauth_client";
36
- anonymous_claim: "anonymous_claim";
37
- }>>;
38
- actorId: z.ZodNullable<z.ZodString>;
39
- }, z.core.$strip>;
40
- export declare const DeploymentUrlsSchema: z.ZodObject<{
41
- deployment: z.ZodNullable<z.ZodString>;
42
- immutable: z.ZodNullable<z.ZodString>;
43
- preview: z.ZodNullable<z.ZodString>;
44
- external: z.ZodNullable<z.ZodString>;
45
- }, z.core.$strip>;
46
- export declare const DeploymentExternalSchema: z.ZodObject<{
47
- provider: z.ZodNullable<z.ZodEnum<{
48
- github: "github";
49
- }>>;
50
- deploymentId: z.ZodNullable<z.ZodString>;
51
- deploymentUrl: z.ZodNullable<z.ZodString>;
52
- environment: z.ZodNullable<z.ZodString>;
53
- status: z.ZodNullable<z.ZodString>;
54
- }, z.core.$strip>;
55
- export declare const DeploymentChannelVersionSchema: z.ZodObject<{
56
- versionId: z.ZodString;
57
- deploymentId: z.ZodString;
58
- url: z.ZodNullable<z.ZodString>;
59
- }, z.core.$strip>;
60
- export declare const DeploymentChannelStateSchema: z.ZodObject<{
61
- name: z.ZodString;
62
- current: z.ZodNullable<z.ZodObject<{
63
- versionId: z.ZodString;
64
- deploymentId: z.ZodString;
65
- url: z.ZodNullable<z.ZodString>;
66
- }, z.core.$strip>>;
67
- previous: z.ZodNullable<z.ZodObject<{
68
- versionId: z.ZodString;
69
- deploymentId: z.ZodString;
70
- url: z.ZodNullable<z.ZodString>;
71
- }, z.core.$strip>>;
72
- updatedAt: z.ZodString;
73
- }, z.core.$strip>;
74
- export declare const DeploymentActivityGroupSchema: z.ZodObject<{
75
- kind: z.ZodEnum<{
76
- channel: "channel";
77
- source: "source";
78
- version: "version";
79
- branch: "branch";
80
- pull_request: "pull_request";
81
- }>;
82
- key: z.ZodString;
83
- label: z.ZodString;
84
- }, z.core.$strip>;
85
- export declare const DeploymentSchema: z.ZodObject<{
86
- id: z.ZodString;
87
- spaceId: z.ZodString;
88
- versionId: z.ZodNullable<z.ZodString>;
89
- buildId: z.ZodNullable<z.ZodString>;
90
- channel: z.ZodNullable<z.ZodString>;
91
- channelState: z.ZodNullable<z.ZodObject<{
92
- name: z.ZodString;
93
- current: z.ZodNullable<z.ZodObject<{
94
- versionId: z.ZodString;
95
- deploymentId: z.ZodString;
96
- url: z.ZodNullable<z.ZodString>;
97
- }, z.core.$strip>>;
98
- previous: z.ZodNullable<z.ZodObject<{
99
- versionId: z.ZodString;
100
- deploymentId: z.ZodString;
101
- url: z.ZodNullable<z.ZodString>;
102
- }, z.core.$strip>>;
103
- updatedAt: z.ZodString;
104
- }, z.core.$strip>>;
105
- activityGroup: z.ZodObject<{
106
- kind: z.ZodEnum<{
107
- channel: "channel";
108
- source: "source";
109
- version: "version";
110
- branch: "branch";
111
- pull_request: "pull_request";
112
- }>;
113
- key: z.ZodString;
114
- label: z.ZodString;
115
- }, z.core.$strip>;
116
- status: z.ZodEnum<{
117
- failed: "failed";
118
- canceled: "canceled";
119
- building: "building";
120
- ready: "ready";
121
- waiting_for_source: "waiting_for_source";
122
- queued: "queued";
123
- skipped: "skipped";
124
- }>;
125
- versionStatus: z.ZodNullable<z.ZodEnum<{
126
- failed: "failed";
127
- canceled: "canceled";
128
- expired: "expired";
129
- building: "building";
130
- prepared: "prepared";
131
- created: "created";
132
- uploading: "uploading";
133
- uploaded: "uploaded";
134
- finalizing: "finalizing";
135
- ready: "ready";
136
- }>>;
137
- buildStatus: z.ZodNullable<z.ZodEnum<{
138
- failed: "failed";
139
- canceled: "canceled";
140
- waiting_for_source: "waiting_for_source";
141
- uploading_source: "uploading_source";
142
- queued: "queued";
143
- running: "running";
144
- succeeded: "succeeded";
145
- skipped: "skipped";
146
- }>>;
147
- input: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
148
- kind: z.ZodLiteral<"archive">;
149
- }, z.core.$strict>, z.ZodObject<{
150
- kind: z.ZodLiteral<"repository">;
151
- ref: z.ZodString;
152
- commit: z.ZodOptional<z.ZodString>;
153
- branch: z.ZodOptional<z.ZodString>;
154
- pullRequestNumber: z.ZodOptional<z.ZodNumber>;
155
- }, z.core.$strict>], "kind">>;
156
- settingsSnapshot: z.ZodNullable<z.ZodObject<{
157
- rootDirectory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
158
- installDirectory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
159
- installCommand: z.ZodDefault<z.ZodNullable<z.ZodString>>;
160
- buildCommand: z.ZodDefault<z.ZodNullable<z.ZodString>>;
161
- outputDirectory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
162
- ignoredBuildCommand: z.ZodDefault<z.ZodNullable<z.ZodString>>;
163
- frameworkPreset: z.ZodDefault<z.ZodNullable<z.ZodString>>;
164
- platformPreset: z.ZodDefault<z.ZodNullable<z.ZodString>>;
165
- allowUnsupportedPlatformFeatures: z.ZodDefault<z.ZodBoolean>;
166
- timeoutSeconds: z.ZodDefault<z.ZodNumber>;
167
- }, z.core.$strip>>;
168
- target: z.ZodNullable<z.ZodObject<{
169
- channel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
170
- preview: z.ZodDefault<z.ZodBoolean>;
171
- }, z.core.$strip>>;
172
- source: z.ZodObject<{
173
- kind: z.ZodNullable<z.ZodString>;
174
- provider: z.ZodNullable<z.ZodEnum<{
175
- github: "github";
176
- gitlab: "gitlab";
177
- bitbucket: "bitbucket";
178
- generic: "generic";
179
- }>>;
180
- repositoryId: z.ZodNullable<z.ZodString>;
181
- repositoryName: z.ZodNullable<z.ZodString>;
182
- repositoryFullName: z.ZodNullable<z.ZodString>;
183
- repositoryUrl: z.ZodNullable<z.ZodString>;
184
- ref: z.ZodNullable<z.ZodString>;
185
- branch: z.ZodNullable<z.ZodString>;
186
- commitSha: z.ZodNullable<z.ZodString>;
187
- commitUrl: z.ZodNullable<z.ZodString>;
188
- commitMessage: z.ZodNullable<z.ZodString>;
189
- commitAuthorName: z.ZodNullable<z.ZodString>;
190
- commitAuthorLogin: z.ZodNullable<z.ZodString>;
191
- pullRequestNumber: z.ZodNullable<z.ZodNumber>;
192
- actorType: z.ZodNullable<z.ZodEnum<{
193
- system: "system";
194
- user: "user";
195
- api_key: "api_key";
196
- oauth_client: "oauth_client";
197
- anonymous_claim: "anonymous_claim";
198
- }>>;
199
- actorId: z.ZodNullable<z.ZodString>;
200
- }, z.core.$strip>;
201
- urls: z.ZodObject<{
202
- deployment: z.ZodNullable<z.ZodString>;
203
- immutable: z.ZodNullable<z.ZodString>;
204
- preview: z.ZodNullable<z.ZodString>;
205
- external: z.ZodNullable<z.ZodString>;
206
- }, z.core.$strip>;
207
- external: z.ZodObject<{
208
- provider: z.ZodNullable<z.ZodEnum<{
209
- github: "github";
210
- }>>;
211
- deploymentId: z.ZodNullable<z.ZodString>;
212
- deploymentUrl: z.ZodNullable<z.ZodString>;
213
- environment: z.ZodNullable<z.ZodString>;
214
- status: z.ZodNullable<z.ZodString>;
215
- }, z.core.$strip>;
216
- diagnostics: z.ZodArray<z.ZodObject<{
217
- code: z.ZodString;
218
- severity: z.ZodEnum<{
219
- info: "info";
220
- error: "error";
221
- warning: "warning";
222
- }>;
223
- message: z.ZodString;
224
- path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
225
- provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
226
- registrar: "registrar";
227
- wpcloud: "wpcloud";
228
- dns: "dns";
229
- runtime: "runtime";
230
- }>>>;
231
- details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
232
- fix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
233
- retryable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
234
- }, z.core.$strip>>;
235
- failureCode: z.ZodNullable<z.ZodString>;
236
- failureMessage: z.ZodNullable<z.ZodString>;
237
- failedStage: z.ZodNullable<z.ZodString>;
238
- url: z.ZodNullable<z.ZodString>;
239
- createdAt: z.ZodString;
240
- startedAt: z.ZodNullable<z.ZodString>;
241
- readyAt: z.ZodNullable<z.ZodString>;
242
- finishedAt: z.ZodNullable<z.ZodString>;
243
- }, z.core.$strip>;
244
- export declare const deploymentListQuerySchema: z.ZodObject<{
245
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
246
- cursor: z.ZodOptional<z.ZodString>;
247
- }, z.core.$strip>;
248
- export declare const deploymentListResponseSchema: z.ZodObject<{
249
- data: z.ZodArray<z.ZodObject<{
250
- id: z.ZodString;
251
- spaceId: z.ZodString;
252
- versionId: z.ZodNullable<z.ZodString>;
253
- buildId: z.ZodNullable<z.ZodString>;
254
- channel: z.ZodNullable<z.ZodString>;
255
- channelState: z.ZodNullable<z.ZodObject<{
256
- name: z.ZodString;
257
- current: z.ZodNullable<z.ZodObject<{
258
- versionId: z.ZodString;
259
- deploymentId: z.ZodString;
260
- url: z.ZodNullable<z.ZodString>;
261
- }, z.core.$strip>>;
262
- previous: z.ZodNullable<z.ZodObject<{
263
- versionId: z.ZodString;
264
- deploymentId: z.ZodString;
265
- url: z.ZodNullable<z.ZodString>;
266
- }, z.core.$strip>>;
267
- updatedAt: z.ZodString;
268
- }, z.core.$strip>>;
269
- activityGroup: z.ZodObject<{
270
- kind: z.ZodEnum<{
271
- channel: "channel";
272
- source: "source";
273
- version: "version";
274
- branch: "branch";
275
- pull_request: "pull_request";
276
- }>;
277
- key: z.ZodString;
278
- label: z.ZodString;
279
- }, z.core.$strip>;
280
- status: z.ZodEnum<{
281
- failed: "failed";
282
- canceled: "canceled";
283
- building: "building";
284
- ready: "ready";
285
- waiting_for_source: "waiting_for_source";
286
- queued: "queued";
287
- skipped: "skipped";
288
- }>;
289
- versionStatus: z.ZodNullable<z.ZodEnum<{
290
- failed: "failed";
291
- canceled: "canceled";
292
- expired: "expired";
293
- building: "building";
294
- prepared: "prepared";
295
- created: "created";
296
- uploading: "uploading";
297
- uploaded: "uploaded";
298
- finalizing: "finalizing";
299
- ready: "ready";
300
- }>>;
301
- buildStatus: z.ZodNullable<z.ZodEnum<{
302
- failed: "failed";
303
- canceled: "canceled";
304
- waiting_for_source: "waiting_for_source";
305
- uploading_source: "uploading_source";
306
- queued: "queued";
307
- running: "running";
308
- succeeded: "succeeded";
309
- skipped: "skipped";
310
- }>>;
311
- input: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
312
- kind: z.ZodLiteral<"archive">;
313
- }, z.core.$strict>, z.ZodObject<{
314
- kind: z.ZodLiteral<"repository">;
315
- ref: z.ZodString;
316
- commit: z.ZodOptional<z.ZodString>;
317
- branch: z.ZodOptional<z.ZodString>;
318
- pullRequestNumber: z.ZodOptional<z.ZodNumber>;
319
- }, z.core.$strict>], "kind">>;
320
- settingsSnapshot: z.ZodNullable<z.ZodObject<{
321
- rootDirectory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
322
- installDirectory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
323
- installCommand: z.ZodDefault<z.ZodNullable<z.ZodString>>;
324
- buildCommand: z.ZodDefault<z.ZodNullable<z.ZodString>>;
325
- outputDirectory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
326
- ignoredBuildCommand: z.ZodDefault<z.ZodNullable<z.ZodString>>;
327
- frameworkPreset: z.ZodDefault<z.ZodNullable<z.ZodString>>;
328
- platformPreset: z.ZodDefault<z.ZodNullable<z.ZodString>>;
329
- allowUnsupportedPlatformFeatures: z.ZodDefault<z.ZodBoolean>;
330
- timeoutSeconds: z.ZodDefault<z.ZodNumber>;
331
- }, z.core.$strip>>;
332
- target: z.ZodNullable<z.ZodObject<{
333
- channel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
334
- preview: z.ZodDefault<z.ZodBoolean>;
335
- }, z.core.$strip>>;
336
- source: z.ZodObject<{
337
- kind: z.ZodNullable<z.ZodString>;
338
- provider: z.ZodNullable<z.ZodEnum<{
339
- github: "github";
340
- gitlab: "gitlab";
341
- bitbucket: "bitbucket";
342
- generic: "generic";
343
- }>>;
344
- repositoryId: z.ZodNullable<z.ZodString>;
345
- repositoryName: z.ZodNullable<z.ZodString>;
346
- repositoryFullName: z.ZodNullable<z.ZodString>;
347
- repositoryUrl: z.ZodNullable<z.ZodString>;
348
- ref: z.ZodNullable<z.ZodString>;
349
- branch: z.ZodNullable<z.ZodString>;
350
- commitSha: z.ZodNullable<z.ZodString>;
351
- commitUrl: z.ZodNullable<z.ZodString>;
352
- commitMessage: z.ZodNullable<z.ZodString>;
353
- commitAuthorName: z.ZodNullable<z.ZodString>;
354
- commitAuthorLogin: z.ZodNullable<z.ZodString>;
355
- pullRequestNumber: z.ZodNullable<z.ZodNumber>;
356
- actorType: z.ZodNullable<z.ZodEnum<{
357
- system: "system";
358
- user: "user";
359
- api_key: "api_key";
360
- oauth_client: "oauth_client";
361
- anonymous_claim: "anonymous_claim";
362
- }>>;
363
- actorId: z.ZodNullable<z.ZodString>;
364
- }, z.core.$strip>;
365
- urls: z.ZodObject<{
366
- deployment: z.ZodNullable<z.ZodString>;
367
- immutable: z.ZodNullable<z.ZodString>;
368
- preview: z.ZodNullable<z.ZodString>;
369
- external: z.ZodNullable<z.ZodString>;
370
- }, z.core.$strip>;
371
- external: z.ZodObject<{
372
- provider: z.ZodNullable<z.ZodEnum<{
373
- github: "github";
374
- }>>;
375
- deploymentId: z.ZodNullable<z.ZodString>;
376
- deploymentUrl: z.ZodNullable<z.ZodString>;
377
- environment: z.ZodNullable<z.ZodString>;
378
- status: z.ZodNullable<z.ZodString>;
379
- }, z.core.$strip>;
380
- diagnostics: z.ZodArray<z.ZodObject<{
381
- code: z.ZodString;
382
- severity: z.ZodEnum<{
383
- info: "info";
384
- error: "error";
385
- warning: "warning";
386
- }>;
387
- message: z.ZodString;
388
- path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
389
- provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
390
- registrar: "registrar";
391
- wpcloud: "wpcloud";
392
- dns: "dns";
393
- runtime: "runtime";
394
- }>>>;
395
- details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
396
- fix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
397
- retryable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
398
- }, z.core.$strip>>;
399
- failureCode: z.ZodNullable<z.ZodString>;
400
- failureMessage: z.ZodNullable<z.ZodString>;
401
- failedStage: z.ZodNullable<z.ZodString>;
402
- url: z.ZodNullable<z.ZodString>;
403
- createdAt: z.ZodString;
404
- startedAt: z.ZodNullable<z.ZodString>;
405
- readyAt: z.ZodNullable<z.ZodString>;
406
- finishedAt: z.ZodNullable<z.ZodString>;
407
- }, z.core.$strip>>;
408
- pagination: z.ZodObject<{
409
- nextCursor: z.ZodNullable<z.ZodString>;
410
- hasMore: z.ZodBoolean;
411
- }, z.core.$strip>;
412
- }, z.core.$strip>;
413
- export declare const deploymentGetResponseSchema: z.ZodObject<{
414
- data: z.ZodObject<{
415
- id: z.ZodString;
416
- spaceId: z.ZodString;
417
- versionId: z.ZodNullable<z.ZodString>;
418
- buildId: z.ZodNullable<z.ZodString>;
419
- channel: z.ZodNullable<z.ZodString>;
420
- channelState: z.ZodNullable<z.ZodObject<{
421
- name: z.ZodString;
422
- current: z.ZodNullable<z.ZodObject<{
423
- versionId: z.ZodString;
424
- deploymentId: z.ZodString;
425
- url: z.ZodNullable<z.ZodString>;
426
- }, z.core.$strip>>;
427
- previous: z.ZodNullable<z.ZodObject<{
428
- versionId: z.ZodString;
429
- deploymentId: z.ZodString;
430
- url: z.ZodNullable<z.ZodString>;
431
- }, z.core.$strip>>;
432
- updatedAt: z.ZodString;
433
- }, z.core.$strip>>;
434
- activityGroup: z.ZodObject<{
435
- kind: z.ZodEnum<{
436
- channel: "channel";
437
- source: "source";
438
- version: "version";
439
- branch: "branch";
440
- pull_request: "pull_request";
441
- }>;
442
- key: z.ZodString;
443
- label: z.ZodString;
444
- }, z.core.$strip>;
445
- status: z.ZodEnum<{
446
- failed: "failed";
447
- canceled: "canceled";
448
- building: "building";
449
- ready: "ready";
450
- waiting_for_source: "waiting_for_source";
451
- queued: "queued";
452
- skipped: "skipped";
453
- }>;
454
- versionStatus: z.ZodNullable<z.ZodEnum<{
455
- failed: "failed";
456
- canceled: "canceled";
457
- expired: "expired";
458
- building: "building";
459
- prepared: "prepared";
460
- created: "created";
461
- uploading: "uploading";
462
- uploaded: "uploaded";
463
- finalizing: "finalizing";
464
- ready: "ready";
465
- }>>;
466
- buildStatus: z.ZodNullable<z.ZodEnum<{
467
- failed: "failed";
468
- canceled: "canceled";
469
- waiting_for_source: "waiting_for_source";
470
- uploading_source: "uploading_source";
471
- queued: "queued";
472
- running: "running";
473
- succeeded: "succeeded";
474
- skipped: "skipped";
475
- }>>;
476
- input: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
477
- kind: z.ZodLiteral<"archive">;
478
- }, z.core.$strict>, z.ZodObject<{
479
- kind: z.ZodLiteral<"repository">;
480
- ref: z.ZodString;
481
- commit: z.ZodOptional<z.ZodString>;
482
- branch: z.ZodOptional<z.ZodString>;
483
- pullRequestNumber: z.ZodOptional<z.ZodNumber>;
484
- }, z.core.$strict>], "kind">>;
485
- settingsSnapshot: z.ZodNullable<z.ZodObject<{
486
- rootDirectory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
487
- installDirectory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
488
- installCommand: z.ZodDefault<z.ZodNullable<z.ZodString>>;
489
- buildCommand: z.ZodDefault<z.ZodNullable<z.ZodString>>;
490
- outputDirectory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
491
- ignoredBuildCommand: z.ZodDefault<z.ZodNullable<z.ZodString>>;
492
- frameworkPreset: z.ZodDefault<z.ZodNullable<z.ZodString>>;
493
- platformPreset: z.ZodDefault<z.ZodNullable<z.ZodString>>;
494
- allowUnsupportedPlatformFeatures: z.ZodDefault<z.ZodBoolean>;
495
- timeoutSeconds: z.ZodDefault<z.ZodNumber>;
496
- }, z.core.$strip>>;
497
- target: z.ZodNullable<z.ZodObject<{
498
- channel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
499
- preview: z.ZodDefault<z.ZodBoolean>;
500
- }, z.core.$strip>>;
501
- source: z.ZodObject<{
502
- kind: z.ZodNullable<z.ZodString>;
503
- provider: z.ZodNullable<z.ZodEnum<{
504
- github: "github";
505
- gitlab: "gitlab";
506
- bitbucket: "bitbucket";
507
- generic: "generic";
508
- }>>;
509
- repositoryId: z.ZodNullable<z.ZodString>;
510
- repositoryName: z.ZodNullable<z.ZodString>;
511
- repositoryFullName: z.ZodNullable<z.ZodString>;
512
- repositoryUrl: z.ZodNullable<z.ZodString>;
513
- ref: z.ZodNullable<z.ZodString>;
514
- branch: z.ZodNullable<z.ZodString>;
515
- commitSha: z.ZodNullable<z.ZodString>;
516
- commitUrl: z.ZodNullable<z.ZodString>;
517
- commitMessage: z.ZodNullable<z.ZodString>;
518
- commitAuthorName: z.ZodNullable<z.ZodString>;
519
- commitAuthorLogin: z.ZodNullable<z.ZodString>;
520
- pullRequestNumber: z.ZodNullable<z.ZodNumber>;
521
- actorType: z.ZodNullable<z.ZodEnum<{
522
- system: "system";
523
- user: "user";
524
- api_key: "api_key";
525
- oauth_client: "oauth_client";
526
- anonymous_claim: "anonymous_claim";
527
- }>>;
528
- actorId: z.ZodNullable<z.ZodString>;
529
- }, z.core.$strip>;
530
- urls: z.ZodObject<{
531
- deployment: z.ZodNullable<z.ZodString>;
532
- immutable: z.ZodNullable<z.ZodString>;
533
- preview: z.ZodNullable<z.ZodString>;
534
- external: z.ZodNullable<z.ZodString>;
535
- }, z.core.$strip>;
536
- external: z.ZodObject<{
537
- provider: z.ZodNullable<z.ZodEnum<{
538
- github: "github";
539
- }>>;
540
- deploymentId: z.ZodNullable<z.ZodString>;
541
- deploymentUrl: z.ZodNullable<z.ZodString>;
542
- environment: z.ZodNullable<z.ZodString>;
543
- status: z.ZodNullable<z.ZodString>;
544
- }, z.core.$strip>;
545
- diagnostics: z.ZodArray<z.ZodObject<{
546
- code: z.ZodString;
547
- severity: z.ZodEnum<{
548
- info: "info";
549
- error: "error";
550
- warning: "warning";
551
- }>;
552
- message: z.ZodString;
553
- path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
554
- provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
555
- registrar: "registrar";
556
- wpcloud: "wpcloud";
557
- dns: "dns";
558
- runtime: "runtime";
559
- }>>>;
560
- details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
561
- fix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
562
- retryable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
563
- }, z.core.$strip>>;
564
- failureCode: z.ZodNullable<z.ZodString>;
565
- failureMessage: z.ZodNullable<z.ZodString>;
566
- failedStage: z.ZodNullable<z.ZodString>;
567
- url: z.ZodNullable<z.ZodString>;
568
- createdAt: z.ZodString;
569
- startedAt: z.ZodNullable<z.ZodString>;
570
- readyAt: z.ZodNullable<z.ZodString>;
571
- finishedAt: z.ZodNullable<z.ZodString>;
572
- }, z.core.$strip>;
573
- }, z.core.$strip>;
574
- export type Deployment = z.infer<typeof DeploymentSchema>;