@spacefast/common 0.0.3 → 0.0.6

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 (159) hide show
  1. package/dist/agents/connect-targets.d.ts +133 -0
  2. package/dist/agents/connect-targets.js +224 -0
  3. package/dist/brand.d.ts +1 -0
  4. package/dist/brand.js +5 -0
  5. package/dist/config/domains.d.ts +12 -6
  6. package/dist/config/domains.js +30 -38
  7. package/dist/contracts/access.d.ts +829 -129
  8. package/dist/contracts/access.js +771 -148
  9. package/dist/contracts/activity.d.ts +5 -5
  10. package/dist/contracts/activity.js +28 -2
  11. package/dist/contracts/annotations.d.ts +3 -5
  12. package/dist/contracts/api-keys.d.ts +9 -10
  13. package/dist/contracts/api-keys.js +9 -6
  14. package/dist/contracts/archives.d.ts +22 -16
  15. package/dist/contracts/archives.js +11 -4
  16. package/dist/contracts/billing.d.ts +21 -30
  17. package/dist/contracts/builds.d.ts +21 -17
  18. package/dist/contracts/builds.js +12 -0
  19. package/dist/contracts/channels.d.ts +2 -2
  20. package/dist/contracts/common.d.ts +7 -5
  21. package/dist/contracts/common.js +4 -0
  22. package/dist/contracts/continuation.d.ts +63 -0
  23. package/dist/contracts/continuation.js +91 -0
  24. package/dist/contracts/countries.d.ts +2 -0
  25. package/dist/contracts/countries.js +261 -0
  26. package/dist/contracts/deployments.d.ts +34 -34
  27. package/dist/contracts/device-auth.d.ts +4 -11
  28. package/dist/contracts/device-auth.js +4 -0
  29. package/dist/contracts/docs.d.ts +119 -0
  30. package/dist/contracts/docs.js +51 -0
  31. package/dist/contracts/domains.d.ts +295 -253
  32. package/dist/contracts/domains.js +26 -4
  33. package/dist/contracts/enums.d.ts +17 -18
  34. package/dist/contracts/enums.js +25 -14
  35. package/dist/contracts/error-code-meta.d.ts +84 -0
  36. package/dist/contracts/error-code-meta.js +99 -10
  37. package/dist/contracts/error-codes.d.ts +1 -1
  38. package/dist/contracts/error-codes.js +17 -0
  39. package/dist/contracts/events.d.ts +13 -13
  40. package/dist/contracts/features.d.ts +93 -23
  41. package/dist/contracts/features.js +178 -13
  42. package/dist/contracts/git.d.ts +3 -9
  43. package/dist/contracts/ids.d.ts +5 -0
  44. package/dist/contracts/ids.js +5 -0
  45. package/dist/contracts/internal.d.ts +3 -3
  46. package/dist/contracts/mcp.d.ts +34 -36
  47. package/dist/contracts/me.d.ts +8 -8
  48. package/dist/contracts/me.js +1 -1
  49. package/dist/contracts/oauth-resources.d.ts +19 -8
  50. package/dist/contracts/oauth-resources.js +44 -13
  51. package/dist/contracts/operations.d.ts +2 -2
  52. package/dist/contracts/plan-policy.d.ts +4 -4
  53. package/dist/contracts/platform.d.ts +3 -105
  54. package/dist/contracts/platform.js +0 -50
  55. package/dist/contracts/push-new.d.ts +4 -4
  56. package/dist/contracts/quotas.d.ts +2 -0
  57. package/dist/contracts/quotas.js +8 -0
  58. package/dist/contracts/repository-connections.d.ts +1 -3
  59. package/dist/contracts/resources.d.ts +112 -28
  60. package/dist/contracts/resources.js +26 -2
  61. package/dist/contracts/routes.d.ts +0 -2
  62. package/dist/contracts/runtime-api.d.ts +365 -43
  63. package/dist/contracts/runtime-api.js +275 -6
  64. package/dist/contracts/sites.d.ts +45 -28
  65. package/dist/contracts/sites.js +21 -0
  66. package/dist/contracts/space-config.d.ts +201 -2
  67. package/dist/contracts/space-config.js +135 -5
  68. package/dist/contracts/spaces.d.ts +423 -162
  69. package/dist/contracts/spaces.js +94 -8
  70. package/dist/contracts/superadmin-emails.d.ts +7 -5
  71. package/dist/contracts/superadmin-emails.js +8 -0
  72. package/dist/contracts/superadmin-queues.d.ts +32 -32
  73. package/dist/contracts/superadmin-spaces.d.ts +418 -24
  74. package/dist/contracts/superadmin-spaces.js +24 -0
  75. package/dist/contracts/superadmin-tenants.d.ts +8 -8
  76. package/dist/contracts/superadmin.d.ts +17 -104
  77. package/dist/contracts/superadmin.js +6 -14
  78. package/dist/contracts/tags.d.ts +42 -41
  79. package/dist/contracts/tags.js +2 -1
  80. package/dist/contracts/teams.d.ts +40 -23
  81. package/dist/contracts/teams.js +20 -1
  82. package/dist/contracts/theme-json.d.ts +30 -0
  83. package/dist/contracts/theme-json.js +48 -0
  84. package/dist/contracts/transfers.d.ts +9 -9
  85. package/dist/contracts/variables.d.ts +14 -16
  86. package/dist/contracts/variables.js +0 -5
  87. package/dist/contracts/webhooks.d.ts +6 -4
  88. package/dist/contracts/webhooks.js +1 -1
  89. package/dist/contracts/zero.d.ts +13 -18
  90. package/dist/docs/agent-prose.d.ts +43 -3
  91. package/dist/docs/agent-prose.js +153 -10
  92. package/dist/docs/agent-setup.js +48 -15
  93. package/dist/docs/agent-solutions.d.ts +5 -5
  94. package/dist/docs/agent-solutions.js +2 -2
  95. package/dist/docs/catalog.d.ts +650 -0
  96. package/dist/docs/catalog.js +758 -0
  97. package/dist/docs/error-docs.d.ts +0 -2
  98. package/dist/docs/error-docs.js +89 -35
  99. package/dist/docs/index-build.d.ts +17 -0
  100. package/dist/docs/index-build.js +24 -0
  101. package/dist/docs/search.d.ts +54 -0
  102. package/dist/docs/search.js +96 -0
  103. package/dist/docs/skill-distribution.d.ts +5 -3
  104. package/dist/docs/skill-distribution.js +8 -8
  105. package/dist/utils/access-match.d.ts +39 -0
  106. package/dist/utils/access-match.js +296 -0
  107. package/dist/utils/auth-redirect.d.ts +3 -1
  108. package/dist/utils/auth-redirect.js +21 -1
  109. package/dist/utils/build-settings.d.ts +6 -0
  110. package/dist/utils/build-settings.js +429 -46
  111. package/dist/utils/claim-token.d.ts +8 -0
  112. package/dist/utils/claim-token.js +23 -2
  113. package/dist/utils/content-type.d.ts +1 -0
  114. package/dist/utils/content-type.js +1 -1
  115. package/dist/utils/credential-policy.d.ts +54 -0
  116. package/dist/utils/{access-policy.js → credential-policy.js} +28 -2
  117. package/dist/utils/gate-theme.d.ts +61 -0
  118. package/dist/utils/gate-theme.js +217 -0
  119. package/dist/utils/git-repository.d.ts +0 -1
  120. package/dist/utils/git-repository.js +0 -3
  121. package/dist/utils/id-hints.d.ts +8 -0
  122. package/dist/utils/id-hints.js +61 -0
  123. package/dist/utils/local-space-state.d.ts +91 -0
  124. package/dist/utils/local-space-state.js +251 -0
  125. package/dist/utils/oauth-signed-query.d.ts +8 -0
  126. package/dist/utils/oauth-signed-query.js +26 -0
  127. package/dist/utils/publish-detection.d.ts +0 -8
  128. package/dist/utils/publish-detection.js +0 -93
  129. package/dist/utils/publish-policy.d.ts +6 -5
  130. package/dist/utils/publish-policy.js +71 -7
  131. package/dist/utils/query-keys.d.ts +17 -6
  132. package/dist/utils/query-keys.js +27 -4
  133. package/dist/utils/runtime-paths.d.ts +0 -1
  134. package/dist/utils/runtime-paths.js +0 -1
  135. package/dist/utils/runtime-upload-batch.d.ts +18 -0
  136. package/dist/utils/runtime-upload-batch.js +90 -0
  137. package/dist/utils/runtime-upload.d.ts +2 -0
  138. package/dist/utils/runtime-upload.js +5 -0
  139. package/dist/utils/space-config.d.ts +4 -0
  140. package/dist/utils/space-config.js +10 -1
  141. package/dist/utils/space-theme.d.ts +2 -0
  142. package/dist/utils/space-theme.js +9 -0
  143. package/dist/utils/static-runtime-policy.d.ts +1 -1
  144. package/dist/utils/static-runtime-policy.js +47 -15
  145. package/dist/utils/upload-session.d.ts +1 -1
  146. package/dist/utils/wpcom-auth-redirects.d.ts +32 -2
  147. package/dist/utils/wpcom-auth-redirects.js +26 -10
  148. package/dist/vocabulary.d.ts +130 -30
  149. package/dist/vocabulary.js +77 -36
  150. package/package.json +16 -1
  151. package/dist/contracts/account.d.ts +0 -28
  152. package/dist/contracts/account.js +0 -54
  153. package/dist/contracts/intercom.d.ts +0 -6
  154. package/dist/contracts/intercom.js +0 -5
  155. package/dist/contracts/telemetry.d.ts +0 -2
  156. package/dist/contracts/telemetry.js +0 -1
  157. package/dist/utils/access-policy.d.ts +0 -39
  158. package/dist/utils/error-display.d.ts +0 -7
  159. package/dist/utils/error-display.js +0 -42
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
2
  import { policyDocSchema } from "./access.js";
3
3
  import { AsyncOperationSchema, baseDiagnosticSchema } from "./common.js";
4
- import { publishSourceKind, versionStatus, spaceDisabledReasonCode, spaceStatus } from "./enums.js";
4
+ import { normalizedSiteClass, publishSourceKind, versionStatus, spaceDisabledReasonCode, spaceStatus, } from "./enums.js";
5
5
  import { pendingUploadSchema } from "./internal.js";
6
6
  import { spaceConfigSchema } from "./space-config.js";
7
7
  export const DiagnosticSchema = baseDiagnosticSchema.extend({
@@ -89,9 +89,33 @@ export const SpaceSchema = z.object({
89
89
  liveUrl: z
90
90
  .string()
91
91
  .describe("Live space URL: the primary bound domain when one exists, else the default hostname. Always present on non-deleted spaces."),
92
+ thumbnail: z
93
+ .object({
94
+ kind: z.enum(["screenshot", "image"]),
95
+ provider: z.enum(["wpcom-mshots", "wpcom-site-accelerator"]),
96
+ url: z.string().url(),
97
+ sourceUrl: z.string().url(),
98
+ })
99
+ .nullable()
100
+ .describe("Server-selected dashboard thumbnail. Screenshots use WordPress.com mShots; image thumbnails use WordPress.com Site Accelerator."),
92
101
  dataLocation: z
93
102
  .string()
94
- .describe('Resolved data-location region; immutable after ownership exists. "auto" only while no concrete region is known yet.'),
103
+ .describe('Resolved data-location region. PATCH may queue a move to change it; "auto" only while no concrete region is known yet.'),
104
+ region: z
105
+ .string()
106
+ .describe('Alias of dataLocation for placement dashboards; "auto" only while no concrete region is known yet.'),
107
+ placementMode: normalizedSiteClass.describe("Requested placement mode for this space."),
108
+ burstable: z
109
+ .boolean()
110
+ .nullable()
111
+ .describe("Whether a dedicated placement may burst provider PHP workers."),
112
+ archivedBytes: z
113
+ .number()
114
+ .int()
115
+ .nonnegative()
116
+ .describe("Bytes currently archived out of the hot runtime store."),
117
+ tierPolicy: z.enum(["auto", "always_hot"]).describe("Storage tiering policy for this space."),
118
+ moving: z.boolean().describe("True while a placement or transfer move is queued or running."),
95
119
  channels: z
96
120
  .record(z.string(), ChannelPointerSchema)
97
121
  .describe('Channel pointers by name; "live" is present once a version has been promoted.'),
@@ -41,5 +41,3 @@ export declare const websiteRoutesConfigSchema: z.ZodObject<{
41
41
  }, z.core.$strip>>;
42
42
  }, z.core.$strict>>>;
43
43
  }, z.core.$strict>;
44
- export type WebsiteRoute = z.infer<typeof websiteRouteSchema>;
45
- export type WebsiteRoutesConfig = z.infer<typeof websiteRoutesConfigSchema>;
@@ -57,8 +57,17 @@ export declare const runtimeUploadSessionResponseSchema: z.ZodObject<{
57
57
  pending_paths: z.ZodArray<z.ZodString>;
58
58
  chunks: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>;
59
59
  }, z.core.$strip>;
60
+ export declare const runtimeZeroModeSchema: z.ZodEnum<{
61
+ active: "active";
62
+ activating: "activating";
63
+ }>;
64
+ export type RuntimeZeroMode = z.infer<typeof runtimeZeroModeSchema>;
60
65
  export declare const runtimeVersionFinalizeRequestSchema: z.ZodObject<{
61
66
  upload_id: z.ZodString;
67
+ zero_mode: z.ZodOptional<z.ZodEnum<{
68
+ active: "active";
69
+ activating: "activating";
70
+ }>>;
62
71
  ready_at: z.ZodOptional<z.ZodNumber>;
63
72
  convention_files: z.ZodOptional<z.ZodObject<{
64
73
  redirects: z.ZodOptional<z.ZodString>;
@@ -66,6 +75,11 @@ export declare const runtimeVersionFinalizeRequestSchema: z.ZodObject<{
66
75
  }, z.core.$strict>>;
67
76
  template_files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
68
77
  template_variants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
78
+ access_pages: z.ZodOptional<z.ZodObject<{
79
+ challenge: z.ZodOptional<z.ZodString>;
80
+ deny: z.ZodOptional<z.ZodString>;
81
+ }, z.core.$strip>>;
82
+ layout_template: z.ZodOptional<z.ZodString>;
69
83
  serving: z.ZodOptional<z.ZodObject<{
70
84
  headers_exact: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
71
85
  headers_pattern: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -77,6 +91,7 @@ export declare const runtimeVersionFinalizeRequestSchema: z.ZodObject<{
77
91
  path: z.ZodString;
78
92
  status: z.ZodUnion<readonly [z.ZodLiteral<200>, z.ZodLiteral<404>]>;
79
93
  }, z.core.$strip>>>;
94
+ clean_urls: z.ZodOptional<z.ZodBoolean>;
80
95
  listing: z.ZodOptional<z.ZodBoolean>;
81
96
  viewer: z.ZodOptional<z.ZodBoolean>;
82
97
  meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -84,6 +99,17 @@ export declare const runtimeVersionFinalizeRequestSchema: z.ZodObject<{
84
99
  description: z.ZodOptional<z.ZodString>;
85
100
  image: z.ZodOptional<z.ZodString>;
86
101
  }, z.core.$strip>>>;
102
+ pages: z.ZodOptional<z.ZodObject<{
103
+ theme: z.ZodOptional<z.ZodObject<{
104
+ accent: z.ZodOptional<z.ZodString>;
105
+ background: z.ZodOptional<z.ZodString>;
106
+ logo: z.ZodOptional<z.ZodString>;
107
+ name: z.ZodOptional<z.ZodString>;
108
+ fontFamily: z.ZodOptional<z.ZodString>;
109
+ }, z.core.$strip>>;
110
+ theme_vars: z.ZodOptional<z.ZodString>;
111
+ white_label: z.ZodOptional<z.ZodBoolean>;
112
+ }, z.core.$strip>>;
87
113
  experimental_gutenberg: z.ZodOptional<z.ZodBoolean>;
88
114
  platform_meta: z.ZodOptional<z.ZodBoolean>;
89
115
  spacefast_sdk: z.ZodOptional<z.ZodObject<{
@@ -140,8 +166,11 @@ export declare const runtimeVersionFinalizeRequestSchema: z.ZodObject<{
140
166
  config: z.ZodOptional<z.ZodObject<{
141
167
  policy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
142
168
  rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
169
+ id: z.ZodOptional<z.ZodString>;
143
170
  match: z.ZodDefault<z.ZodObject<{
144
171
  host: z.ZodOptional<z.ZodString>;
172
+ hostPattern: z.ZodOptional<z.ZodString>;
173
+ hostTemplate: z.ZodOptional<z.ZodString>;
145
174
  pathPattern: z.ZodOptional<z.ZodString>;
146
175
  channel: z.ZodOptional<z.ZodString>;
147
176
  ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -158,32 +187,60 @@ export declare const runtimeVersionFinalizeRequestSchema: z.ZodObject<{
158
187
  challenge: "challenge";
159
188
  }>;
160
189
  auth: z.ZodOptional<z.ZodObject<{
161
- password: z.ZodOptional<z.ZodObject<{
190
+ requiredGrants: z.ZodArray<z.ZodString>;
191
+ issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
192
+ kid: z.ZodString;
193
+ alg: z.ZodLiteral<"EdDSA">;
194
+ publicKey: z.ZodString;
195
+ grantNamespaces: z.ZodArray<z.ZodString>;
196
+ }, z.core.$strip>>>;
197
+ acquire: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
198
+ type: z.ZodLiteral<"password">;
162
199
  ref: z.ZodString;
163
200
  transport: z.ZodEnum<{
164
201
  basic: "basic";
165
202
  form: "form";
166
203
  }>;
167
204
  username: z.ZodOptional<z.ZodString>;
168
- }, z.core.$strip>>;
169
- token: z.ZodOptional<z.ZodObject<{
170
- requiredGrants: z.ZodArray<z.ZodString>;
171
- issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
172
- kid: z.ZodString;
173
- alg: z.ZodLiteral<"EdDSA">;
174
- publicKey: z.ZodString;
175
- grantNamespaces: z.ZodArray<z.ZodString>;
176
- }, z.core.$strip>>>;
177
- loginUrl: z.ZodOptional<z.ZodString>;
178
- cookieName: z.ZodOptional<z.ZodString>;
179
- }, z.core.$strip>>;
205
+ }, z.core.$strip>, z.ZodObject<{
206
+ type: z.ZodLiteral<"login">;
207
+ url: z.ZodString;
208
+ label: z.ZodOptional<z.ZodString>;
209
+ }, z.core.$strip>], "type">>>;
180
210
  }, z.core.$strip>>;
211
+ managedBy: z.ZodOptional<z.ZodEnum<{
212
+ sharing: "sharing";
213
+ firewall: "firewall";
214
+ file_share: "file_share";
215
+ cast_reviewer: "cast_reviewer";
216
+ team_default: "team_default";
217
+ }>>;
218
+ expiresAt: z.ZodOptional<z.ZodNumber>;
181
219
  reasonCode: z.ZodOptional<z.ZodString>;
182
220
  message: z.ZodOptional<z.ZodString>;
183
221
  }, z.core.$strip>>>;
222
+ issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
223
+ kid: z.ZodString;
224
+ alg: z.ZodLiteral<"EdDSA">;
225
+ publicKey: z.ZodString;
226
+ grantNamespaces: z.ZodArray<z.ZodString>;
227
+ }, z.core.$strip>>>;
228
+ sessionVersion: z.ZodOptional<z.ZodNumber>;
184
229
  }, z.core.$strip>>>;
185
230
  secrets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
231
+ session_version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
186
232
  anonymous_expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
233
+ content_types: z.ZodOptional<z.ZodNullable<z.ZodObject<{
234
+ allowed: z.ZodArray<z.ZodString>;
235
+ blocked_message: z.ZodOptional<z.ZodString>;
236
+ }, z.core.$strip>>>;
237
+ admission: z.ZodOptional<z.ZodObject<{
238
+ concurrency: z.ZodNumber;
239
+ }, z.core.$strip>>;
240
+ revocations: z.ZodOptional<z.ZodArray<z.ZodString>>;
241
+ entitlements: z.ZodOptional<z.ZodNullable<z.ZodObject<{
242
+ externalProxy: z.ZodBoolean;
243
+ }, z.core.$strip>>>;
187
244
  }, z.core.$strip>>;
188
245
  changed_paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
189
246
  previous_version_id: z.ZodOptional<z.ZodString>;
@@ -210,6 +267,7 @@ export declare const runtimeVersionFinalizeResponseSchema: z.ZodObject<{
210
267
  space_id: z.ZodString;
211
268
  version_id: z.ZodString;
212
269
  status: z.ZodLiteral<"ready">;
270
+ zero_endpoint_count: z.ZodOptional<z.ZodNumber>;
213
271
  manifest: z.ZodOptional<z.ZodArray<z.ZodObject<{
214
272
  path: z.ZodString;
215
273
  size: z.ZodNumber;
@@ -223,8 +281,11 @@ export declare const runtimeRouteUpdateRequestSchema: z.ZodObject<{
223
281
  config: z.ZodOptional<z.ZodObject<{
224
282
  policy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
225
283
  rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
284
+ id: z.ZodOptional<z.ZodString>;
226
285
  match: z.ZodDefault<z.ZodObject<{
227
286
  host: z.ZodOptional<z.ZodString>;
287
+ hostPattern: z.ZodOptional<z.ZodString>;
288
+ hostTemplate: z.ZodOptional<z.ZodString>;
228
289
  pathPattern: z.ZodOptional<z.ZodString>;
229
290
  channel: z.ZodOptional<z.ZodString>;
230
291
  ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -241,32 +302,60 @@ export declare const runtimeRouteUpdateRequestSchema: z.ZodObject<{
241
302
  challenge: "challenge";
242
303
  }>;
243
304
  auth: z.ZodOptional<z.ZodObject<{
244
- password: z.ZodOptional<z.ZodObject<{
305
+ requiredGrants: z.ZodArray<z.ZodString>;
306
+ issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
307
+ kid: z.ZodString;
308
+ alg: z.ZodLiteral<"EdDSA">;
309
+ publicKey: z.ZodString;
310
+ grantNamespaces: z.ZodArray<z.ZodString>;
311
+ }, z.core.$strip>>>;
312
+ acquire: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
313
+ type: z.ZodLiteral<"password">;
245
314
  ref: z.ZodString;
246
315
  transport: z.ZodEnum<{
247
316
  basic: "basic";
248
317
  form: "form";
249
318
  }>;
250
319
  username: z.ZodOptional<z.ZodString>;
251
- }, z.core.$strip>>;
252
- token: z.ZodOptional<z.ZodObject<{
253
- requiredGrants: z.ZodArray<z.ZodString>;
254
- issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
255
- kid: z.ZodString;
256
- alg: z.ZodLiteral<"EdDSA">;
257
- publicKey: z.ZodString;
258
- grantNamespaces: z.ZodArray<z.ZodString>;
259
- }, z.core.$strip>>>;
260
- loginUrl: z.ZodOptional<z.ZodString>;
261
- cookieName: z.ZodOptional<z.ZodString>;
262
- }, z.core.$strip>>;
320
+ }, z.core.$strip>, z.ZodObject<{
321
+ type: z.ZodLiteral<"login">;
322
+ url: z.ZodString;
323
+ label: z.ZodOptional<z.ZodString>;
324
+ }, z.core.$strip>], "type">>>;
263
325
  }, z.core.$strip>>;
326
+ managedBy: z.ZodOptional<z.ZodEnum<{
327
+ sharing: "sharing";
328
+ firewall: "firewall";
329
+ file_share: "file_share";
330
+ cast_reviewer: "cast_reviewer";
331
+ team_default: "team_default";
332
+ }>>;
333
+ expiresAt: z.ZodOptional<z.ZodNumber>;
264
334
  reasonCode: z.ZodOptional<z.ZodString>;
265
335
  message: z.ZodOptional<z.ZodString>;
266
336
  }, z.core.$strip>>>;
337
+ issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
338
+ kid: z.ZodString;
339
+ alg: z.ZodLiteral<"EdDSA">;
340
+ publicKey: z.ZodString;
341
+ grantNamespaces: z.ZodArray<z.ZodString>;
342
+ }, z.core.$strip>>>;
343
+ sessionVersion: z.ZodOptional<z.ZodNumber>;
267
344
  }, z.core.$strip>>>;
268
345
  secrets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
346
+ session_version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
269
347
  anonymous_expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
348
+ content_types: z.ZodOptional<z.ZodNullable<z.ZodObject<{
349
+ allowed: z.ZodArray<z.ZodString>;
350
+ blocked_message: z.ZodOptional<z.ZodString>;
351
+ }, z.core.$strip>>>;
352
+ admission: z.ZodOptional<z.ZodObject<{
353
+ concurrency: z.ZodNumber;
354
+ }, z.core.$strip>>;
355
+ revocations: z.ZodOptional<z.ZodArray<z.ZodString>>;
356
+ entitlements: z.ZodOptional<z.ZodNullable<z.ZodObject<{
357
+ externalProxy: z.ZodBoolean;
358
+ }, z.core.$strip>>>;
270
359
  }, z.core.$strip>>;
271
360
  changed_paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
272
361
  previous_version_id: z.ZodOptional<z.ZodString>;
@@ -288,17 +377,40 @@ export declare const runtimeRouteUpdateRequestSchema: z.ZodObject<{
288
377
  noindex: z.ZodDefault<z.ZodBoolean>;
289
378
  }, z.core.$strip>>>;
290
379
  }, z.core.$strip>;
380
+ export declare const runtimeHostnameIntentUpdateRequestSchema: z.ZodObject<{
381
+ production_hostnames: z.ZodDefault<z.ZodArray<z.ZodString>>;
382
+ noindex_production_hostnames: z.ZodDefault<z.ZodArray<z.ZodString>>;
383
+ version_hostnames: z.ZodDefault<z.ZodArray<z.ZodObject<{
384
+ hostname: z.ZodString;
385
+ version_id: z.ZodString;
386
+ }, z.core.$strip>>>;
387
+ host_canonical_redirects: z.ZodDefault<z.ZodArray<z.ZodObject<{
388
+ from: z.ZodString;
389
+ to: z.ZodString;
390
+ status: z.ZodDefault<z.ZodLiteral<308>>;
391
+ }, z.core.$strip>>>;
392
+ proxy_host_routes: z.ZodDefault<z.ZodArray<z.ZodObject<{
393
+ hostname: z.ZodString;
394
+ path_prefix: z.ZodDefault<z.ZodString>;
395
+ upstream: z.ZodString;
396
+ noindex: z.ZodDefault<z.ZodBoolean>;
397
+ }, z.core.$strip>>>;
398
+ }, z.core.$strip>;
291
399
  export declare const runtimeRouteUpdateResponseSchema: z.ZodObject<{
292
400
  space_id: z.ZodString;
293
401
  route_name: z.ZodString;
294
402
  version_id: z.ZodString;
295
403
  }, z.core.$strip>;
404
+ export declare const runtimeHostnameIntentUpdateResponseSchema: z.ZodObject<{
405
+ space_id: z.ZodString;
406
+ route_count: z.ZodNumber;
407
+ }, z.core.$strip>;
296
408
  export declare const runtimeTombstonesUpdateRequestSchema: z.ZodObject<{
297
409
  hostnames: z.ZodDefault<z.ZodArray<z.ZodString>>;
298
410
  mode: z.ZodDefault<z.ZodEnum<{
299
- replace: "replace";
300
- add: "add";
301
411
  remove: "remove";
412
+ add: "add";
413
+ replace: "replace";
302
414
  }>>;
303
415
  reason: z.ZodOptional<z.ZodString>;
304
416
  category: z.ZodOptional<z.ZodString>;
@@ -307,6 +419,22 @@ export declare const runtimeTombstonesUpdateResponseSchema: z.ZodObject<{
307
419
  space_id: z.ZodString;
308
420
  tombstone_count: z.ZodNumber;
309
421
  }, z.core.$strip>;
422
+ export declare const runtimeRetentionPolicyUpdateRequestSchema: z.ZodObject<{
423
+ prunable_version_ids: z.ZodArray<z.ZodString>;
424
+ }, z.core.$strip>;
425
+ export declare const runtimeRetentionPolicyUpdateResponseSchema: z.ZodObject<{
426
+ space_id: z.ZodString;
427
+ prunable_count: z.ZodNumber;
428
+ }, z.core.$strip>;
429
+ export declare const runtimeGrantRevocationRequestSchema: z.ZodObject<{
430
+ grant: z.ZodString;
431
+ }, z.core.$strip>;
432
+ export declare const runtimeGrantRevocationResponseSchema: z.ZodObject<{
433
+ space_id: z.ZodString;
434
+ target_type: z.ZodLiteral<"grant">;
435
+ grant: z.ZodString;
436
+ revoked: z.ZodBoolean;
437
+ }, z.core.$strip>;
310
438
  export declare const runtimeSpaceDeleteResponseSchema: z.ZodObject<{
311
439
  space_id: z.ZodString;
312
440
  status: z.ZodLiteral<"deleted">;
@@ -331,8 +459,8 @@ export declare const runtimeSpaceExportResponseSchema: z.ZodObject<{
331
459
  space_id: z.ZodString;
332
460
  status: z.ZodEnum<{
333
461
  running: "running";
334
- waiting_for_archive: "waiting_for_archive";
335
462
  pending: "pending";
463
+ waiting_for_archive: "waiting_for_archive";
336
464
  complete: "complete";
337
465
  }>;
338
466
  cursor: z.ZodNumber;
@@ -347,9 +475,17 @@ export declare const runtimeSpaceExportResponseSchema: z.ZodObject<{
347
475
  }, z.core.$strip>;
348
476
  export declare const runtimeSpaceImportStartRequestSchema: z.ZodObject<{
349
477
  version_id_map: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
478
+ zero_mode: z.ZodOptional<z.ZodEnum<{
479
+ active: "active";
480
+ activating: "activating";
481
+ }>>;
350
482
  }, z.core.$strict>;
351
483
  export declare const runtimeSpaceImportMapRequestSchema: z.ZodObject<{
352
484
  version_id_map: z.ZodRecord<z.ZodString, z.ZodString>;
485
+ zero_mode: z.ZodOptional<z.ZodEnum<{
486
+ active: "active";
487
+ activating: "activating";
488
+ }>>;
353
489
  }, z.core.$strict>;
354
490
  export declare const runtimeSpaceImportResponseSchema: z.ZodObject<{
355
491
  type: z.ZodLiteral<"space_import">;
@@ -357,8 +493,8 @@ export declare const runtimeSpaceImportResponseSchema: z.ZodObject<{
357
493
  space_id: z.ZodString;
358
494
  status: z.ZodEnum<{
359
495
  running: "running";
360
- waiting_for_archive: "waiting_for_archive";
361
496
  pending: "pending";
497
+ waiting_for_archive: "waiting_for_archive";
362
498
  complete: "complete";
363
499
  }>;
364
500
  cursor: z.ZodNumber;
@@ -369,6 +505,46 @@ export declare const runtimeSpaceImportResponseSchema: z.ZodObject<{
369
505
  updated_at: z.ZodString;
370
506
  completed_at: z.ZodOptional<z.ZodString>;
371
507
  }, z.core.$strip>;
508
+ export declare const runtimeTransferBundleSourceRequestSchema: z.ZodObject<{
509
+ space_id: z.ZodString;
510
+ version_ids: z.ZodArray<z.ZodString>;
511
+ cursor: z.ZodNullable<z.ZodString>;
512
+ }, z.core.$strip>;
513
+ export declare const runtimeTransferBundleTargetRequestSchema: z.ZodObject<{
514
+ space_id: z.ZodString;
515
+ store: z.ZodLiteral<true>;
516
+ files: z.ZodArray<z.ZodObject<{
517
+ path: z.ZodString;
518
+ content_b64: z.ZodString;
519
+ }, z.core.$strip>>;
520
+ done: z.ZodBoolean;
521
+ }, z.core.$strip>;
522
+ export declare const runtimeTransferBundleResponseSchema: z.ZodObject<{
523
+ chunk: z.ZodObject<{
524
+ files: z.ZodArray<z.ZodObject<{
525
+ path: z.ZodString;
526
+ content_b64: z.ZodString;
527
+ }, z.core.$strip>>;
528
+ }, z.core.$strip>;
529
+ next_cursor: z.ZodNullable<z.ZodString>;
530
+ }, z.core.$strip>;
531
+ export declare const runtimeTransferBundleStoredResponseSchema: z.ZodObject<{
532
+ stored: z.ZodLiteral<true>;
533
+ }, z.core.$strip>;
534
+ export declare const runtimeTransferCommitRequestSchema: z.ZodObject<{
535
+ space_id: z.ZodString;
536
+ version_ids: z.ZodArray<z.ZodString>;
537
+ live_version_id: z.ZodNullable<z.ZodString>;
538
+ }, z.core.$strip>;
539
+ export declare const runtimeTransferCommitResponseSchema: z.ZodObject<{
540
+ installed: z.ZodLiteral<true>;
541
+ }, z.core.$strip>;
542
+ export declare const runtimeTransferAbortRequestSchema: z.ZodObject<{
543
+ space_id: z.ZodString;
544
+ }, z.core.$strip>;
545
+ export declare const runtimeTransferAbortResponseSchema: z.ZodObject<{
546
+ aborted: z.ZodOptional<z.ZodBoolean>;
547
+ }, z.core.$strip>;
372
548
  export declare const runtimeSpaceStateSchema: z.ZodObject<{
373
549
  space_id: z.ZodString;
374
550
  routes: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -425,25 +601,171 @@ export declare const runtimeEventsDrainResponseSchema: z.ZodObject<{
425
601
  }, z.core.$loose>;
426
602
  }, z.core.$strip>>>;
427
603
  }, z.core.$strip>;
604
+ export declare const runtimeEngineJobLaneSchema: z.ZodEnum<{
605
+ interactive: "interactive";
606
+ bulk: "bulk";
607
+ }>;
608
+ export declare const runtimeEngineJobStatusSchema: z.ZodEnum<{
609
+ failed: "failed";
610
+ running: "running";
611
+ pending: "pending";
612
+ complete: "complete";
613
+ }>;
614
+ export declare const runtimeEngineJobErrorSchema: z.ZodObject<{
615
+ code: z.ZodString;
616
+ message: z.ZodString;
617
+ }, z.core.$strip>;
618
+ export declare const runtimeEngineJobRecordSchema: z.ZodObject<{
619
+ id: z.ZodString;
620
+ type: z.ZodString;
621
+ lane: z.ZodEnum<{
622
+ interactive: "interactive";
623
+ bulk: "bulk";
624
+ }>;
625
+ space_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
626
+ operation_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
627
+ status: z.ZodEnum<{
628
+ failed: "failed";
629
+ running: "running";
630
+ pending: "pending";
631
+ complete: "complete";
632
+ }>;
633
+ attempt: z.ZodDefault<z.ZodNumber>;
634
+ max_attempts: z.ZodOptional<z.ZodNumber>;
635
+ progress: z.ZodOptional<z.ZodObject<{
636
+ done: z.ZodDefault<z.ZodNumber>;
637
+ total: z.ZodDefault<z.ZodNumber>;
638
+ }, z.core.$strip>>;
639
+ result: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
640
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
641
+ code: z.ZodString;
642
+ message: z.ZodString;
643
+ }, z.core.$strip>>>;
644
+ created_at: z.ZodOptional<z.ZodString>;
645
+ updated_at: z.ZodOptional<z.ZodString>;
646
+ }, z.core.$strip>;
647
+ export declare const runtimeEngineJobCreateRequestSchema: z.ZodObject<{
648
+ type: z.ZodString;
649
+ payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
650
+ idempotency_key: z.ZodString;
651
+ }, z.core.$strip>;
652
+ export declare const runtimeEngineJobResponseSchema: z.ZodObject<{
653
+ job: z.ZodObject<{
654
+ id: z.ZodString;
655
+ type: z.ZodString;
656
+ lane: z.ZodEnum<{
657
+ interactive: "interactive";
658
+ bulk: "bulk";
659
+ }>;
660
+ space_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
661
+ operation_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
662
+ status: z.ZodEnum<{
663
+ failed: "failed";
664
+ running: "running";
665
+ pending: "pending";
666
+ complete: "complete";
667
+ }>;
668
+ attempt: z.ZodDefault<z.ZodNumber>;
669
+ max_attempts: z.ZodOptional<z.ZodNumber>;
670
+ progress: z.ZodOptional<z.ZodObject<{
671
+ done: z.ZodDefault<z.ZodNumber>;
672
+ total: z.ZodDefault<z.ZodNumber>;
673
+ }, z.core.$strip>>;
674
+ result: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
675
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
676
+ code: z.ZodString;
677
+ message: z.ZodString;
678
+ }, z.core.$strip>>>;
679
+ created_at: z.ZodOptional<z.ZodString>;
680
+ updated_at: z.ZodOptional<z.ZodString>;
681
+ }, z.core.$strip>;
682
+ }, z.core.$strip>;
683
+ export declare const runtimeEngineJobTickResponseSchema: z.ZodObject<{
684
+ lane: z.ZodEnum<{
685
+ interactive: "interactive";
686
+ bulk: "bulk";
687
+ }>;
688
+ job: z.ZodOptional<z.ZodNullable<z.ZodObject<{
689
+ id: z.ZodString;
690
+ type: z.ZodString;
691
+ lane: z.ZodEnum<{
692
+ interactive: "interactive";
693
+ bulk: "bulk";
694
+ }>;
695
+ space_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
696
+ operation_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
697
+ status: z.ZodEnum<{
698
+ failed: "failed";
699
+ running: "running";
700
+ pending: "pending";
701
+ complete: "complete";
702
+ }>;
703
+ attempt: z.ZodDefault<z.ZodNumber>;
704
+ max_attempts: z.ZodOptional<z.ZodNumber>;
705
+ progress: z.ZodOptional<z.ZodObject<{
706
+ done: z.ZodDefault<z.ZodNumber>;
707
+ total: z.ZodDefault<z.ZodNumber>;
708
+ }, z.core.$strip>>;
709
+ result: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
710
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
711
+ code: z.ZodString;
712
+ message: z.ZodString;
713
+ }, z.core.$strip>>>;
714
+ created_at: z.ZodOptional<z.ZodString>;
715
+ updated_at: z.ZodOptional<z.ZodString>;
716
+ }, z.core.$strip>>>;
717
+ drained: z.ZodOptional<z.ZodBoolean>;
718
+ }, z.core.$strip>;
719
+ export declare const runtimeAccessEventsCursorSchema: z.ZodObject<{
720
+ file: z.ZodNullable<z.ZodString>;
721
+ offset: z.ZodNumber;
722
+ }, z.core.$strip>;
723
+ export declare const runtimeAccessEventsResponseSchema: z.ZodObject<{
724
+ events: z.ZodDefault<z.ZodArray<z.ZodObject<{
725
+ sub: z.ZodDefault<z.ZodNullable<z.ZodString>>;
726
+ grantsHash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
727
+ ruleId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
728
+ effect: z.ZodEnum<{
729
+ allow: "allow";
730
+ deny: "deny";
731
+ challenge: "challenge";
732
+ }>;
733
+ reasonCode: z.ZodDefault<z.ZodNullable<z.ZodString>>;
734
+ host: z.ZodString;
735
+ path: z.ZodString;
736
+ ts: z.ZodNumber;
737
+ }, z.core.$strip>>>;
738
+ cursor: z.ZodObject<{
739
+ file: z.ZodNullable<z.ZodString>;
740
+ offset: z.ZodNumber;
741
+ }, z.core.$strip>;
742
+ done: z.ZodBoolean;
743
+ dropped: z.ZodDefault<z.ZodNumber>;
744
+ }, z.core.$strip>;
428
745
  export type RuntimeVersionCreateRequest = z.infer<typeof runtimeVersionCreateRequestSchema>;
429
- export type RuntimeVersionCreateResponse = z.infer<typeof runtimeVersionCreateResponseSchema>;
430
- export type RuntimeUploadSessionResponse = z.infer<typeof runtimeUploadSessionResponseSchema>;
431
746
  export type RuntimeVersionFinalizeRequest = z.infer<typeof runtimeVersionFinalizeRequestSchema>;
432
- export type RuntimeVersionFinalizeResponse = z.infer<typeof runtimeVersionFinalizeResponseSchema>;
747
+ export type RuntimeHostnameIntentUpdateRequest = z.infer<typeof runtimeHostnameIntentUpdateRequestSchema>;
433
748
  export type RuntimeRouteUpdateRequest = z.infer<typeof runtimeRouteUpdateRequestSchema>;
434
- export type RuntimeRouteUpdateResponse = z.infer<typeof runtimeRouteUpdateResponseSchema>;
435
749
  export type RuntimeTombstonesUpdateRequest = z.infer<typeof runtimeTombstonesUpdateRequestSchema>;
436
- export type RuntimeTombstonesUpdateResponse = z.infer<typeof runtimeTombstonesUpdateResponseSchema>;
437
- export type RuntimeSpaceDeleteResponse = z.infer<typeof runtimeSpaceDeleteResponseSchema>;
438
- export type RuntimeVersionDeleteResponse = z.infer<typeof runtimeVersionDeleteResponseSchema>;
439
- export type RuntimeSpaceRepairResponse = z.infer<typeof runtimeSpaceRepairResponseSchema>;
750
+ export type RuntimeRetentionPolicyUpdateRequest = z.infer<typeof runtimeRetentionPolicyUpdateRequestSchema>;
751
+ export type RuntimeRetentionPolicyUpdateResponse = z.infer<typeof runtimeRetentionPolicyUpdateResponseSchema>;
752
+ export type RuntimeGrantRevocationRequest = z.infer<typeof runtimeGrantRevocationRequestSchema>;
753
+ export type RuntimeTransferBundleSourceRequest = z.infer<typeof runtimeTransferBundleSourceRequestSchema>;
754
+ export type RuntimeTransferBundleTargetRequest = z.infer<typeof runtimeTransferBundleTargetRequestSchema>;
755
+ export type RuntimeTransferBundleResponse = z.infer<typeof runtimeTransferBundleResponseSchema>;
756
+ export type RuntimeTransferBundleStoredResponse = z.infer<typeof runtimeTransferBundleStoredResponseSchema>;
757
+ export type RuntimeTransferCommitRequest = z.infer<typeof runtimeTransferCommitRequestSchema>;
758
+ export type RuntimeTransferCommitResponse = z.infer<typeof runtimeTransferCommitResponseSchema>;
759
+ export type RuntimeTransferAbortRequest = z.infer<typeof runtimeTransferAbortRequestSchema>;
760
+ export type RuntimeTransferAbortResponse = z.infer<typeof runtimeTransferAbortResponseSchema>;
440
761
  export type RuntimeSpaceExportStartRequest = z.infer<typeof runtimeSpaceExportStartRequestSchema>;
441
- export type RuntimeSpaceExportResponse = z.infer<typeof runtimeSpaceExportResponseSchema>;
442
762
  export type RuntimeSpaceImportStartRequest = z.infer<typeof runtimeSpaceImportStartRequestSchema>;
443
763
  export type RuntimeSpaceImportMapRequest = z.infer<typeof runtimeSpaceImportMapRequestSchema>;
444
- export type RuntimeSpaceImportResponse = z.infer<typeof runtimeSpaceImportResponseSchema>;
445
- export type RuntimeHealthResponse = z.infer<typeof runtimeHealthResponseSchema>;
446
- export type RuntimeStateResponse = z.infer<typeof runtimeStateResponseSchema>;
447
764
  export type RuntimeSpaceState = z.infer<typeof runtimeSpaceStateSchema>;
448
- export type RuntimeEventsDrainResponse = z.infer<typeof runtimeEventsDrainResponseSchema>;
449
765
  export type RuntimeCallbackEvent = z.infer<typeof runtimeCallbackEventSchema>;
766
+ export type RuntimeEngineJobLane = z.infer<typeof runtimeEngineJobLaneSchema>;
767
+ export type RuntimeEngineJobStatus = z.infer<typeof runtimeEngineJobStatusSchema>;
768
+ export type RuntimeEngineJobRecord = z.infer<typeof runtimeEngineJobRecordSchema>;
769
+ export type RuntimeEngineJobCreateRequest = z.infer<typeof runtimeEngineJobCreateRequestSchema>;
770
+ export type RuntimeEngineJobResponse = z.infer<typeof runtimeEngineJobResponseSchema>;
771
+ export type RuntimeEngineJobTickResponse = z.infer<typeof runtimeEngineJobTickResponseSchema>;