@spacefast/common 0.0.11 → 0.0.13

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 (160) hide show
  1. package/dist/agents/connect-targets.d.ts +4 -4
  2. package/dist/agents/connect-targets.js +3 -3
  3. package/dist/agents/private-key-oauth.d.ts +37 -0
  4. package/dist/agents/private-key-oauth.js +158 -0
  5. package/dist/config/domains.js +1 -1
  6. package/dist/config/index.d.ts +1 -0
  7. package/dist/config/index.js +1 -0
  8. package/dist/config/postgres-budget.d.ts +126 -0
  9. package/dist/config/postgres-budget.js +135 -0
  10. package/dist/config/postgres-budget.json +50 -0
  11. package/dist/contracts/access.d.ts +386 -1183
  12. package/dist/contracts/access.js +240 -1018
  13. package/dist/contracts/activity.d.ts +1 -1
  14. package/dist/contracts/activity.js +11 -19
  15. package/dist/contracts/api-keys.d.ts +69 -45
  16. package/dist/contracts/api-keys.js +3 -0
  17. package/dist/contracts/archives.d.ts +9 -10
  18. package/dist/contracts/archives.js +4 -6
  19. package/dist/contracts/builds.d.ts +8 -8
  20. package/dist/contracts/builds.js +28 -48
  21. package/dist/contracts/channels.js +1 -2
  22. package/dist/contracts/comments.d.ts +102 -93
  23. package/dist/contracts/comments.js +121 -63
  24. package/dist/contracts/common.d.ts +4 -3
  25. package/dist/contracts/common.js +2 -0
  26. package/dist/contracts/countries.js +2 -7
  27. package/dist/contracts/data-source-routes.d.ts +20 -0
  28. package/dist/contracts/data-source-routes.js +15 -0
  29. package/dist/contracts/deployments.d.ts +3 -3
  30. package/dist/contracts/device-auth.d.ts +21 -15
  31. package/dist/contracts/docs.d.ts +5 -5
  32. package/dist/contracts/domains.d.ts +261 -1330
  33. package/dist/contracts/domains.js +39 -301
  34. package/dist/contracts/email-preferences.d.ts +50 -0
  35. package/dist/contracts/email-preferences.js +44 -0
  36. package/dist/contracts/enums.d.ts +3 -5
  37. package/dist/contracts/enums.js +3 -8
  38. package/dist/contracts/error-code-meta.d.ts +99 -33
  39. package/dist/contracts/error-code-meta.js +36 -9
  40. package/dist/contracts/error-codes.d.ts +1 -1
  41. package/dist/contracts/error-codes.js +28 -11
  42. package/dist/contracts/execution.d.ts +212 -0
  43. package/dist/contracts/execution.js +288 -0
  44. package/dist/contracts/feature-lifecycle.d.ts +498 -2
  45. package/dist/contracts/feature-lifecycle.js +539 -2
  46. package/dist/contracts/features.d.ts +184 -74
  47. package/dist/contracts/features.js +4 -303
  48. package/dist/contracts/functions.d.ts +729 -0
  49. package/dist/contracts/functions.js +485 -0
  50. package/dist/contracts/git.d.ts +1 -1
  51. package/dist/contracts/grants.d.ts +1158 -0
  52. package/dist/contracts/grants.js +696 -0
  53. package/dist/contracts/ids.d.ts +6 -5
  54. package/dist/contracts/ids.js +6 -5
  55. package/dist/contracts/internal.d.ts +3 -3
  56. package/dist/contracts/mcp.d.ts +12 -12
  57. package/dist/contracts/me.js +1 -1
  58. package/dist/contracts/mounts.d.ts +142 -0
  59. package/dist/contracts/mounts.js +56 -0
  60. package/dist/contracts/oauth-resources.d.ts +5 -5
  61. package/dist/contracts/oauth-resources.js +2 -0
  62. package/dist/contracts/operations.d.ts +4 -4
  63. package/dist/contracts/pages.d.ts +6 -14
  64. package/dist/contracts/pages.js +11 -23
  65. package/dist/contracts/plan-policy.d.ts +2 -9
  66. package/dist/contracts/plan-policy.js +1 -4
  67. package/dist/contracts/platform.d.ts +80 -32
  68. package/dist/contracts/platform.js +59 -12
  69. package/dist/contracts/push-new.d.ts +26 -2
  70. package/dist/contracts/push-new.js +8 -0
  71. package/dist/contracts/quotas.d.ts +0 -1
  72. package/dist/contracts/quotas.js +0 -5
  73. package/dist/contracts/repository-connections.d.ts +1 -1
  74. package/dist/contracts/resources.d.ts +21 -85
  75. package/dist/contracts/resources.js +17 -47
  76. package/dist/contracts/runtime-api.d.ts +799 -192
  77. package/dist/contracts/runtime-api.js +231 -100
  78. package/dist/contracts/runtime-app.d.ts +138 -0
  79. package/dist/contracts/runtime-app.js +21 -0
  80. package/dist/contracts/sf-config-v1.d.ts +5 -0
  81. package/dist/contracts/sf-config-v1.js +1 -1
  82. package/dist/contracts/sites.d.ts +17 -12
  83. package/dist/contracts/sites.js +30 -12
  84. package/dist/contracts/space-config.d.ts +46 -117
  85. package/dist/contracts/space-config.js +323 -25
  86. package/dist/contracts/spaces.d.ts +392 -256
  87. package/dist/contracts/spaces.js +163 -83
  88. package/dist/contracts/superadmin-emails.d.ts +27 -3
  89. package/dist/contracts/superadmin-emails.js +10 -15
  90. package/dist/contracts/superadmin-runtime.d.ts +2 -2
  91. package/dist/contracts/superadmin-spaces.d.ts +19 -142
  92. package/dist/contracts/superadmin-spaces.js +7 -0
  93. package/dist/contracts/tags.d.ts +66 -36
  94. package/dist/contracts/tags.js +195 -11
  95. package/dist/contracts/teams.d.ts +9 -9
  96. package/dist/contracts/transfers.d.ts +1 -2
  97. package/dist/contracts/variables.d.ts +4 -4
  98. package/dist/contracts/variables.js +4 -3
  99. package/dist/contracts/webhooks.d.ts +2 -2
  100. package/dist/contracts/zero.d.ts +437 -193
  101. package/dist/contracts/zero.js +149 -158
  102. package/dist/dashboard-paths/index.d.ts +3 -3
  103. package/dist/dashboard-paths/index.js +1 -0
  104. package/dist/docs/agent-prose.js +10 -8
  105. package/dist/docs/agent-setup.d.ts +6 -4
  106. package/dist/docs/agent-setup.js +26 -16
  107. package/dist/docs/agent-solutions.js +1 -1
  108. package/dist/docs/catalog.d.ts +35 -37
  109. package/dist/docs/catalog.js +36 -38
  110. package/dist/docs/error-docs.js +108 -44
  111. package/dist/utils/asset-fingerprint.d.ts +11 -0
  112. package/dist/utils/asset-fingerprint.js +46 -0
  113. package/dist/utils/auth-redirect.d.ts +1 -3
  114. package/dist/utils/auth-redirect.js +1 -21
  115. package/dist/utils/build-settings.d.ts +2 -0
  116. package/dist/utils/build-settings.js +61 -9
  117. package/dist/utils/credential-policy.d.ts +1 -1
  118. package/dist/utils/credential-policy.js +4 -0
  119. package/dist/utils/dns-instructions.d.ts +29 -0
  120. package/dist/utils/dns-instructions.js +78 -0
  121. package/dist/utils/domain-diagnostics.d.ts +29 -0
  122. package/dist/utils/domain-diagnostics.js +63 -0
  123. package/dist/utils/egress-policy.fixtures.json +51 -0
  124. package/dist/utils/grants.d.ts +53 -0
  125. package/dist/utils/grants.js +160 -0
  126. package/dist/utils/id-hints.d.ts +1 -0
  127. package/dist/utils/id-hints.js +55 -13
  128. package/dist/utils/local-space-state.js +1 -0
  129. package/dist/utils/page-colors.d.ts +50 -0
  130. package/dist/utils/page-colors.js +167 -0
  131. package/dist/utils/page-fonts.d.ts +2 -0
  132. package/dist/utils/page-fonts.js +4 -0
  133. package/dist/utils/pages.d.ts +19 -6
  134. package/dist/utils/pages.js +122 -49
  135. package/dist/utils/production-runtime.d.ts +18 -0
  136. package/dist/utils/production-runtime.js +28 -0
  137. package/dist/utils/publish-policy.d.ts +34 -4
  138. package/dist/utils/publish-policy.js +132 -61
  139. package/dist/utils/query-keys.d.ts +7 -13
  140. package/dist/utils/query-keys.js +12 -18
  141. package/dist/utils/source-archive-policy.d.ts +2 -0
  142. package/dist/utils/source-archive-policy.js +2 -0
  143. package/dist/utils/space-config.d.ts +5 -1
  144. package/dist/utils/space-config.js +35 -0
  145. package/dist/utils/static-runtime-policy.d.ts +5 -0
  146. package/dist/utils/static-runtime-policy.fixtures.json +57 -0
  147. package/dist/utils/static-runtime-policy.js +54 -10
  148. package/dist/utils/upload-session.d.ts +3 -0
  149. package/dist/utils/upload-session.js +31 -0
  150. package/package.json +6 -4
  151. package/dist/contracts/annotations.d.ts +0 -327
  152. package/dist/contracts/annotations.js +0 -235
  153. package/dist/contracts/generated-feature-launch-entries.d.ts +0 -2
  154. package/dist/contracts/generated-feature-launch-entries.js +0 -518
  155. package/dist/contracts/publishes.d.ts +0 -135
  156. package/dist/contracts/publishes.js +0 -162
  157. package/dist/utils/access-match.d.ts +0 -39
  158. package/dist/utils/access-match.js +0 -296
  159. package/dist/utils/sf-config-v1.d.ts +0 -2
  160. package/dist/utils/sf-config-v1.js +0 -542
@@ -5,9 +5,7 @@ import { planCodeSchema, planLimitValueSchema } from "./features.js";
5
5
  // plan does not include them (internal-docs/platform.md "Plans And Limits").
6
6
  export const PLAN_DISABLED_BEHAVIOR_CODES = [
7
7
  "free_external_proxy_disabled",
8
- "free_headers_basic_auth_disabled",
9
8
  "routing_rules_over_plan",
10
- "immutable_version_requires_login",
11
9
  ];
12
10
  export const planDisabledBehaviorSchema = z.object({
13
11
  code: z
@@ -15,7 +13,7 @@ export const planDisabledBehaviorSchema = z.object({
15
13
  .describe("Stable code identifying the disabled behavior."),
16
14
  behavior: z.string().describe("What the platform does instead of honoring the behavior."),
17
15
  renderedAs: z
18
- .enum(["warning", "platform_page", "login_redirect", "ignored"])
16
+ .enum(["warning", "platform_page", "ignored"])
19
17
  .describe("How the disablement surfaces to users."),
20
18
  });
21
19
  export const PlanPolicyResponseSchema = z.object({
@@ -40,7 +38,6 @@ export const PlanPolicyResponseSchema = z.object({
40
38
  boughtDomains: z
41
39
  .literal("unlimited")
42
40
  .describe("Domains bought through Spacefast never count against external domain limits."),
43
- publicImmutableVersionWindowDays: planLimitValueSchema,
44
41
  maxFileBytes: planLimitValueSchema,
45
42
  maxVersionFiles: planLimitValueSchema.describe("Files per version; plan policy may lower the 100,000-file contract ceiling, never raise it."),
46
43
  routingRules: planLimitValueSchema,
@@ -28,15 +28,51 @@ export declare const accessLogEntrySchema: z.ZodObject<{
28
28
  status: z.ZodNumber;
29
29
  bytes: z.ZodNumber;
30
30
  }, z.core.$strip>;
31
+ /**
32
+ * One line a space's own code wrote, from whichever execution tier serves it.
33
+ *
34
+ * This is `executionLogEntrySchema` verbatim rather than a platform-shaped
35
+ * restatement of it: both tiers already emit that shape, and re-declaring it
36
+ * here would be a second definition to keep in sync with the runtimes that
37
+ * produce the records.
38
+ *
39
+ * Unlike its access-log sibling there is no `ts` alongside `timestamp`. That
40
+ * duplication is a compatibility alias the access log carries for callers that
41
+ * predate the rename; runtime logs have never been served to anyone, so there
42
+ * is no caller to keep and no reason to inherit the wart.
43
+ */
31
44
  export declare const runtimeLogEntrySchema: z.ZodObject<{
32
- ts: z.ZodString;
45
+ id: z.ZodString;
33
46
  timestamp: z.ZodString;
34
- level: z.ZodString;
35
- code: z.ZodString;
47
+ level: z.ZodEnum<{
48
+ info: "info";
49
+ error: "error";
50
+ debug: "debug";
51
+ warn: "warn";
52
+ }>;
53
+ requestId: z.ZodNullable<z.ZodString>;
54
+ versionId: z.ZodNullable<z.ZodString>;
55
+ handlerName: z.ZodNullable<z.ZodString>;
36
56
  message: z.ZodString;
37
- file: z.ZodNullable<z.ZodString>;
38
- line: z.ZodNullable<z.ZodString>;
57
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
58
+ }, z.core.$strict>;
59
+ export type RuntimeLogEntry = z.infer<typeof runtimeLogEntrySchema>;
60
+ /**
61
+ * Handler logs are filtered, not windowed.
62
+ *
63
+ * The access log takes `since`/`until` because the provider indexes by time.
64
+ * Neither execution tier does: Zero pages a local append-only store by cursor,
65
+ * and the origin walks day files backwards from newest. Accepting a `since`
66
+ * here would mean ignoring it, so it is absent — the filters below are the ones
67
+ * both tiers actually honour.
68
+ */
69
+ export declare const runtimeLogListQuerySchema: z.ZodObject<{
70
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
71
+ cursor: z.ZodOptional<z.ZodString>;
72
+ requestId: z.ZodOptional<z.ZodString>;
73
+ handlerName: z.ZodOptional<z.ZodString>;
39
74
  }, z.core.$strip>;
75
+ export type RuntimeLogListQuery = z.infer<typeof runtimeLogListQuerySchema>;
40
76
  export declare const accessLogListResponseSchema: z.ZodObject<{
41
77
  data: z.ZodArray<z.ZodObject<{
42
78
  ts: z.ZodString;
@@ -56,8 +92,8 @@ export declare const accessLogListResponseSchema: z.ZodObject<{
56
92
  code: z.ZodString;
57
93
  severity: z.ZodEnum<{
58
94
  info: "info";
59
- warning: "warning";
60
95
  error: "error";
96
+ warning: "warning";
61
97
  }>;
62
98
  message: z.ZodString;
63
99
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -72,40 +108,52 @@ export declare const accessLogListResponseSchema: z.ZodObject<{
72
108
  retryable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
73
109
  }, z.core.$strip>>>;
74
110
  }, z.core.$strip>;
111
+ /**
112
+ * Paged handler logs.
113
+ *
114
+ * The pagination block is deliberately the same `CursorPaginationSchema` the
115
+ * access log uses — the two kinds sit side by side under one command, and a
116
+ * caller should not have to learn a second paging idiom to read the other half
117
+ * of its own space.
118
+ *
119
+ * One thing about that cursor is worth stating rather than discovering: **an
120
+ * empty page does not mean the end.** `hasMore` is true whenever the server
121
+ * stopped before reaching the oldest retained line, and the origin reader stops
122
+ * on its own per-page bounds — day count, line count, bytes scanned — which it
123
+ * can hit while a `requestId` or `handlerName` filter matched nothing in the
124
+ * stretch it read. Both tiers satisfy the same rule: **`hasMore: false` means
125
+ * you have seen everything; `hasMore: true` means keep paging, whatever `data`
126
+ * held.** A client that stops on the first empty page will silently truncate a
127
+ * filtered search.
128
+ *
129
+ * No `warnings` array, unlike the access log. Its one diagnostic is
130
+ * `log_retention_clamped`, which reports a requested window being cut back to
131
+ * the plan's retention — and there is no window to clamp here. An empty
132
+ * diagnostics channel would be a field every caller must handle and no server
133
+ * ever fills.
134
+ */
75
135
  export declare const runtimeLogListResponseSchema: z.ZodObject<{
76
136
  data: z.ZodArray<z.ZodObject<{
77
- ts: z.ZodString;
137
+ id: z.ZodString;
78
138
  timestamp: z.ZodString;
79
- level: z.ZodString;
80
- code: z.ZodString;
139
+ level: z.ZodEnum<{
140
+ info: "info";
141
+ error: "error";
142
+ debug: "debug";
143
+ warn: "warn";
144
+ }>;
145
+ requestId: z.ZodNullable<z.ZodString>;
146
+ versionId: z.ZodNullable<z.ZodString>;
147
+ handlerName: z.ZodNullable<z.ZodString>;
81
148
  message: z.ZodString;
82
- file: z.ZodNullable<z.ZodString>;
83
- line: z.ZodNullable<z.ZodString>;
84
- }, z.core.$strip>>;
149
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
150
+ }, z.core.$strict>>;
85
151
  pagination: z.ZodObject<{
86
152
  nextCursor: z.ZodNullable<z.ZodString>;
87
153
  hasMore: z.ZodBoolean;
88
154
  }, z.core.$strip>;
89
- warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
90
- code: z.ZodString;
91
- severity: z.ZodEnum<{
92
- info: "info";
93
- warning: "warning";
94
- error: "error";
95
- }>;
96
- message: z.ZodString;
97
- path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
98
- provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
99
- registrar: "registrar";
100
- wpcloud: "wpcloud";
101
- dns: "dns";
102
- runtime: "runtime";
103
- }>>>;
104
- details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
105
- fix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
106
- retryable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
107
- }, z.core.$strip>>>;
108
155
  }, z.core.$strip>;
156
+ export type RuntimeLogListResponse = z.infer<typeof runtimeLogListResponseSchema>;
109
157
  export declare const analyticsQuerySchema: z.ZodObject<{
110
158
  window: z.ZodOptional<z.ZodEnum<{
111
159
  custom: "custom";
@@ -161,8 +209,8 @@ export declare const analyticsResponseSchema: z.ZodObject<{
161
209
  code: z.ZodString;
162
210
  severity: z.ZodEnum<{
163
211
  info: "info";
164
- warning: "warning";
165
212
  error: "error";
213
+ warning: "warning";
166
214
  }>;
167
215
  message: z.ZodString;
168
216
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1,5 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { CursorPaginationSchema, baseDiagnosticSchema, cursorListQuerySchema } from "./common.js";
3
+ import { executionLogEntrySchema } from "./execution.js";
3
4
  export const domainPurchaseContactSchema = z.object({
4
5
  firstName: z.string().trim().min(1).max(80),
5
6
  lastName: z.string().trim().min(1).max(80),
@@ -27,14 +28,40 @@ export const accessLogEntrySchema = z.object({
27
28
  status: z.number().int(),
28
29
  bytes: z.number().int().nonnegative(),
29
30
  });
30
- export const runtimeLogEntrySchema = z.object({
31
- ts: z.string().datetime(),
32
- timestamp: z.string().datetime(),
33
- level: z.string(),
34
- code: z.string(),
35
- message: z.string(),
36
- file: z.string().nullable(),
37
- line: z.string().nullable(),
31
+ /**
32
+ * One line a space's own code wrote, from whichever execution tier serves it.
33
+ *
34
+ * This is `executionLogEntrySchema` verbatim rather than a platform-shaped
35
+ * restatement of it: both tiers already emit that shape, and re-declaring it
36
+ * here would be a second definition to keep in sync with the runtimes that
37
+ * produce the records.
38
+ *
39
+ * Unlike its access-log sibling there is no `ts` alongside `timestamp`. That
40
+ * duplication is a compatibility alias the access log carries for callers that
41
+ * predate the rename; runtime logs have never been served to anyone, so there
42
+ * is no caller to keep and no reason to inherit the wart.
43
+ */
44
+ export const runtimeLogEntrySchema = executionLogEntrySchema;
45
+ /**
46
+ * Handler logs are filtered, not windowed.
47
+ *
48
+ * The access log takes `since`/`until` because the provider indexes by time.
49
+ * Neither execution tier does: Zero pages a local append-only store by cursor,
50
+ * and the origin walks day files backwards from newest. Accepting a `since`
51
+ * here would mean ignoring it, so it is absent — the filters below are the ones
52
+ * both tiers actually honour.
53
+ */
54
+ export const runtimeLogListQuerySchema = cursorListQuerySchema.extend({
55
+ requestId: z
56
+ .string()
57
+ .min(1)
58
+ .optional()
59
+ .describe("Return only lines emitted while serving this request."),
60
+ handlerName: z
61
+ .string()
62
+ .min(1)
63
+ .optional()
64
+ .describe("Return only lines from this handler — a Zero mutation or a Functions handler."),
38
65
  });
39
66
  export const accessLogListResponseSchema = z.object({
40
67
  data: z.array(accessLogEntrySchema),
@@ -44,13 +71,33 @@ export const accessLogListResponseSchema = z.object({
44
71
  .optional()
45
72
  .describe("List-level diagnostics; log_retention_clamped names the effective `since` when the requested window exceeds the plan's log retention."),
46
73
  });
74
+ /**
75
+ * Paged handler logs.
76
+ *
77
+ * The pagination block is deliberately the same `CursorPaginationSchema` the
78
+ * access log uses — the two kinds sit side by side under one command, and a
79
+ * caller should not have to learn a second paging idiom to read the other half
80
+ * of its own space.
81
+ *
82
+ * One thing about that cursor is worth stating rather than discovering: **an
83
+ * empty page does not mean the end.** `hasMore` is true whenever the server
84
+ * stopped before reaching the oldest retained line, and the origin reader stops
85
+ * on its own per-page bounds — day count, line count, bytes scanned — which it
86
+ * can hit while a `requestId` or `handlerName` filter matched nothing in the
87
+ * stretch it read. Both tiers satisfy the same rule: **`hasMore: false` means
88
+ * you have seen everything; `hasMore: true` means keep paging, whatever `data`
89
+ * held.** A client that stops on the first empty page will silently truncate a
90
+ * filtered search.
91
+ *
92
+ * No `warnings` array, unlike the access log. Its one diagnostic is
93
+ * `log_retention_clamped`, which reports a requested window being cut back to
94
+ * the plan's retention — and there is no window to clamp here. An empty
95
+ * diagnostics channel would be a field every caller must handle and no server
96
+ * ever fills.
97
+ */
47
98
  export const runtimeLogListResponseSchema = z.object({
48
99
  data: z.array(runtimeLogEntrySchema),
49
100
  pagination: CursorPaginationSchema,
50
- warnings: z
51
- .array(baseDiagnosticSchema)
52
- .optional()
53
- .describe("List-level diagnostics; log_retention_clamped names the effective `since` when the requested window exceeds the plan's log retention."),
54
101
  });
55
102
  export const analyticsQuerySchema = z.object({
56
103
  window: z
@@ -50,6 +50,14 @@ export declare const PushNewSessionSchema: z.ZodObject<{
50
50
  reusedVersionId: z.ZodNullable<z.ZodString>;
51
51
  webhookDeliveryId: z.ZodNullable<z.ZodString>;
52
52
  liveUrl: z.ZodString;
53
+ open: z.ZodNullable<z.ZodObject<{
54
+ url: z.ZodString;
55
+ expiresAt: z.ZodString;
56
+ kind: z.ZodEnum<{
57
+ management: "management";
58
+ claim_preview: "claim_preview";
59
+ }>;
60
+ }, z.core.$strip>>;
53
61
  sessionUrl: z.ZodString;
54
62
  logsUrl: z.ZodNullable<z.ZodString>;
55
63
  claimUrl: z.ZodString;
@@ -95,6 +103,14 @@ export declare const PushNewCreateSessionResponseSchema: z.ZodObject<{
95
103
  reusedVersionId: z.ZodNullable<z.ZodString>;
96
104
  webhookDeliveryId: z.ZodNullable<z.ZodString>;
97
105
  liveUrl: z.ZodString;
106
+ open: z.ZodNullable<z.ZodObject<{
107
+ url: z.ZodString;
108
+ expiresAt: z.ZodString;
109
+ kind: z.ZodEnum<{
110
+ management: "management";
111
+ claim_preview: "claim_preview";
112
+ }>;
113
+ }, z.core.$strip>>;
98
114
  sessionUrl: z.ZodString;
99
115
  logsUrl: z.ZodNullable<z.ZodString>;
100
116
  claimUrl: z.ZodString;
@@ -108,6 +124,14 @@ export declare const PushNewCreateSessionResponseSchema: z.ZodObject<{
108
124
  }, z.core.$strip>;
109
125
  export declare const PushNewStatusResponseSchema: z.ZodObject<{
110
126
  id: z.ZodString;
127
+ open: z.ZodNullable<z.ZodObject<{
128
+ url: z.ZodString;
129
+ expiresAt: z.ZodString;
130
+ kind: z.ZodEnum<{
131
+ management: "management";
132
+ claim_preview: "claim_preview";
133
+ }>;
134
+ }, z.core.$strip>>;
111
135
  status: z.ZodEnum<{
112
136
  live: "live";
113
137
  failed: "failed";
@@ -121,10 +145,10 @@ export declare const PushNewStatusResponseSchema: z.ZodObject<{
121
145
  createdAt: z.ZodString;
122
146
  spaceId: z.ZodString;
123
147
  updatedAt: z.ZodString;
124
- ref: z.ZodNullable<z.ZodString>;
148
+ branch: z.ZodString;
125
149
  versionId: z.ZodNullable<z.ZodString>;
150
+ ref: z.ZodNullable<z.ZodString>;
126
151
  spaceSlug: z.ZodString;
127
- branch: z.ZodString;
128
152
  commitSha: z.ZodNullable<z.ZodString>;
129
153
  repositoryFullName: z.ZodNullable<z.ZodString>;
130
154
  slug: z.ZodString;
@@ -31,6 +31,14 @@ export const PushNewSessionSchema = z.object({
31
31
  reusedVersionId: z.string().nullable(),
32
32
  webhookDeliveryId: z.string().nullable(),
33
33
  liveUrl: z.string().url(),
34
+ open: z
35
+ .object({
36
+ url: z.string().url(),
37
+ expiresAt: z.string().datetime(),
38
+ kind: z.enum(["management", "claim_preview"]),
39
+ })
40
+ .nullable()
41
+ .describe("A short-lived, one-use private Open handoff. It is not a stable URL and clients must not persist it as Space state."),
34
42
  sessionUrl: z.string().url(),
35
43
  logsUrl: z.string().url().nullable(),
36
44
  claimUrl: z.string().url(),
@@ -14,5 +14,4 @@ export declare const ANONYMOUS_PUBLISH_CAPS: {
14
14
  readonly maxInlineBodyBytes: number;
15
15
  readonly maxFilesPerVersion: 1000;
16
16
  readonly maxPublishesPerIpPerHour: 20;
17
- readonly maxLifetimeViews: 100;
18
17
  };
@@ -36,9 +36,4 @@ export const ANONYMOUS_PUBLISH_CAPS = {
36
36
  maxFilesPerVersion: 1000,
37
37
  // Anonymous publish/space-create attempts per IP per hour.
38
38
  maxPublishesPerIpPerHour: WORST_CASE_QUOTAS.maxPublishesPerIpPerHour,
39
- // Views (non-crawler, status<400 requests) an unclaimed space may serve over
40
- // its whole claim window before it goes dark behind the claim-nudge
41
- // tombstone. Enforced by the periodic visit-quota sweep, so it is
42
- // deliberately approximate — claiming the space lifts it entirely.
43
- maxLifetimeViews: 100,
44
39
  };
@@ -124,8 +124,8 @@ export declare const repositoryImportRemoteSchema: z.ZodObject<{
124
124
  bitbucket: "bitbucket";
125
125
  generic: "generic";
126
126
  }>>;
127
- repositoryFullName: z.ZodString;
128
127
  credential: z.ZodOptional<z.ZodNullable<z.ZodString>>;
128
+ repositoryFullName: z.ZodString;
129
129
  repositoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
130
130
  repositoryName: z.ZodOptional<z.ZodString>;
131
131
  defaultBranch: z.ZodDefault<z.ZodString>;
@@ -3,8 +3,8 @@ export declare const DiagnosticSchema: z.ZodObject<{
3
3
  code: z.ZodString;
4
4
  severity: z.ZodEnum<{
5
5
  info: "info";
6
- warning: "warning";
7
6
  error: "error";
7
+ warning: "warning";
8
8
  }>;
9
9
  message: z.ZodString;
10
10
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -30,11 +30,7 @@ export declare const PrincipalRefSchema: z.ZodObject<{
30
30
  principalId: z.ZodString;
31
31
  }, z.core.$strip>;
32
32
  export declare const ChannelPointerSchema: z.ZodObject<{
33
- versionId: z.ZodOptional<z.ZodString>;
34
- weighted: z.ZodOptional<z.ZodArray<z.ZodObject<{
35
- versionId: z.ZodString;
36
- percentage: z.ZodNumber;
37
- }, z.core.$strip>>>;
33
+ versionId: z.ZodString;
38
34
  updatedAt: z.ZodString;
39
35
  }, z.core.$strip>;
40
36
  export type ChannelPointer = z.infer<typeof ChannelPointerSchema>;
@@ -71,7 +67,6 @@ export declare const SpaceSchema: z.ZodObject<{
71
67
  abuse_takedown: "abuse_takedown";
72
68
  tenant_suspended: "tenant_suspended";
73
69
  site_suspended: "site_suspended";
74
- visit_cap_exceeded: "visit_cap_exceeded";
75
70
  }>;
76
71
  }, z.core.$strip>>;
77
72
  claimState: z.ZodNullable<z.ZodObject<{
@@ -111,11 +106,7 @@ export declare const SpaceSchema: z.ZodObject<{
111
106
  }>;
112
107
  moving: z.ZodBoolean;
113
108
  channels: z.ZodRecord<z.ZodString, z.ZodObject<{
114
- versionId: z.ZodOptional<z.ZodString>;
115
- weighted: z.ZodOptional<z.ZodArray<z.ZodObject<{
116
- versionId: z.ZodString;
117
- percentage: z.ZodNumber;
118
- }, z.core.$strip>>>;
109
+ versionId: z.ZodString;
119
110
  updatedAt: z.ZodString;
120
111
  }, z.core.$strip>>;
121
112
  config: z.ZodNullable<z.ZodObject<{
@@ -182,7 +173,6 @@ export declare const SpaceSchema: z.ZodObject<{
182
173
  timeoutSeconds: z.ZodOptional<z.ZodNumber>;
183
174
  }, z.core.$strict>>;
184
175
  placement: z.ZodOptional<z.ZodObject<{
185
- region: z.ZodOptional<z.ZodString>;
186
176
  mode: z.ZodOptional<z.ZodEnum<{
187
177
  shared: "shared";
188
178
  dedicated: "dedicated";
@@ -197,72 +187,14 @@ export declare const SpaceSchema: z.ZodObject<{
197
187
  bodyEnd: z.ZodOptional<z.ZodArray<z.ZodString>>;
198
188
  noscript: z.ZodOptional<z.ZodArray<z.ZodString>>;
199
189
  }, z.core.$strip>>;
190
+ dataSources: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodObject<{
191
+ kind: z.ZodLiteral<"wordpress">;
192
+ url: z.ZodString;
193
+ }, z.core.$strict>>>>;
194
+ defaultDataSource: z.ZodOptional<z.ZodString>;
200
195
  }, z.core.$strip>>;
201
196
  settingsDigest: z.ZodString;
202
197
  noindex: z.ZodBoolean;
203
- policy: z.ZodNullable<z.ZodObject<{
204
- rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
205
- id: z.ZodOptional<z.ZodString>;
206
- match: z.ZodDefault<z.ZodObject<{
207
- host: z.ZodOptional<z.ZodString>;
208
- hostPattern: z.ZodOptional<z.ZodString>;
209
- hostTemplate: z.ZodOptional<z.ZodString>;
210
- pathPattern: z.ZodOptional<z.ZodString>;
211
- channel: z.ZodOptional<z.ZodString>;
212
- ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
213
- agent: z.ZodOptional<z.ZodString>;
214
- country: z.ZodOptional<z.ZodString>;
215
- header: z.ZodOptional<z.ZodObject<{
216
- name: z.ZodString;
217
- value: z.ZodString;
218
- }, z.core.$strip>>;
219
- }, z.core.$strip>>;
220
- effect: z.ZodEnum<{
221
- allow: "allow";
222
- deny: "deny";
223
- challenge: "challenge";
224
- }>;
225
- auth: z.ZodOptional<z.ZodObject<{
226
- requiredGrants: z.ZodArray<z.ZodString>;
227
- issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
228
- kid: z.ZodString;
229
- alg: z.ZodLiteral<"EdDSA">;
230
- publicKey: z.ZodString;
231
- grantNamespaces: z.ZodArray<z.ZodString>;
232
- }, z.core.$strip>>>;
233
- acquire: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
234
- type: z.ZodLiteral<"password">;
235
- ref: z.ZodString;
236
- transport: z.ZodEnum<{
237
- basic: "basic";
238
- form: "form";
239
- }>;
240
- username: z.ZodOptional<z.ZodString>;
241
- }, z.core.$strip>, z.ZodObject<{
242
- type: z.ZodLiteral<"login">;
243
- url: z.ZodString;
244
- label: z.ZodOptional<z.ZodString>;
245
- }, z.core.$strip>], "type">>>;
246
- }, z.core.$strip>>;
247
- managedBy: z.ZodOptional<z.ZodEnum<{
248
- sharing: "sharing";
249
- firewall: "firewall";
250
- file_share: "file_share";
251
- cast_reviewer: "cast_reviewer";
252
- team_default: "team_default";
253
- }>>;
254
- expiresAt: z.ZodOptional<z.ZodNumber>;
255
- reasonCode: z.ZodOptional<z.ZodString>;
256
- message: z.ZodOptional<z.ZodString>;
257
- }, z.core.$strip>>>;
258
- issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
259
- kid: z.ZodString;
260
- alg: z.ZodLiteral<"EdDSA">;
261
- publicKey: z.ZodString;
262
- grantNamespaces: z.ZodArray<z.ZodString>;
263
- }, z.core.$strip>>>;
264
- sessionVersion: z.ZodOptional<z.ZodNumber>;
265
- }, z.core.$strip>>;
266
198
  operation: z.ZodNullable<z.ZodObject<{
267
199
  id: z.ZodString;
268
200
  kind: z.ZodString;
@@ -286,8 +218,8 @@ export declare const SpaceSchema: z.ZodObject<{
286
218
  code: z.ZodString;
287
219
  severity: z.ZodEnum<{
288
220
  info: "info";
289
- warning: "warning";
290
221
  error: "error";
222
+ warning: "warning";
291
223
  }>;
292
224
  message: z.ZodString;
293
225
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -393,10 +325,7 @@ export declare const VersionSchema: z.ZodObject<{
393
325
  manifestHash: z.ZodNullable<z.ZodString>;
394
326
  buildId: z.ZodNullable<z.ZodString>;
395
327
  importedFromVersionId: z.ZodNullable<z.ZodString>;
396
- variables: z.ZodNullable<z.ZodArray<z.ZodObject<{
397
- name: z.ZodString;
398
- valueHash: z.ZodString;
399
- }, z.core.$strip>>>;
328
+ variables: z.ZodNull;
400
329
  fileCount: z.ZodNullable<z.ZodNumber>;
401
330
  totalBytes: z.ZodNullable<z.ZodNumber>;
402
331
  pendingUploads: z.ZodArray<z.ZodObject<{
@@ -407,6 +336,10 @@ export declare const VersionSchema: z.ZodObject<{
407
336
  }, z.core.$strip>>;
408
337
  skippedPaths: z.ZodArray<z.ZodString>;
409
338
  immutableUrl: z.ZodNullable<z.ZodString>;
339
+ immutableUrlStatus: z.ZodNullable<z.ZodEnum<{
340
+ ready: "ready";
341
+ converging: "converging";
342
+ }>>;
410
343
  isCurrentProduction: z.ZodBoolean;
411
344
  siteTitle: z.ZodString;
412
345
  config: z.ZodNullable<z.ZodObject<{
@@ -473,7 +406,6 @@ export declare const VersionSchema: z.ZodObject<{
473
406
  timeoutSeconds: z.ZodOptional<z.ZodNumber>;
474
407
  }, z.core.$strict>>;
475
408
  placement: z.ZodOptional<z.ZodObject<{
476
- region: z.ZodOptional<z.ZodString>;
477
409
  mode: z.ZodOptional<z.ZodEnum<{
478
410
  shared: "shared";
479
411
  dedicated: "dedicated";
@@ -488,6 +420,11 @@ export declare const VersionSchema: z.ZodObject<{
488
420
  bodyEnd: z.ZodOptional<z.ZodArray<z.ZodString>>;
489
421
  noscript: z.ZodOptional<z.ZodArray<z.ZodString>>;
490
422
  }, z.core.$strip>>;
423
+ dataSources: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodObject<{
424
+ kind: z.ZodLiteral<"wordpress">;
425
+ url: z.ZodString;
426
+ }, z.core.$strict>>>>;
427
+ defaultDataSource: z.ZodOptional<z.ZodString>;
491
428
  }, z.core.$strip>>;
492
429
  operation: z.ZodNullable<z.ZodObject<{
493
430
  id: z.ZodString;
@@ -512,8 +449,8 @@ export declare const VersionSchema: z.ZodObject<{
512
449
  code: z.ZodString;
513
450
  severity: z.ZodEnum<{
514
451
  info: "info";
515
- warning: "warning";
516
452
  error: "error";
453
+ warning: "warning";
517
454
  }>;
518
455
  message: z.ZodString;
519
456
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -539,8 +476,8 @@ export declare const VersionSchema: z.ZodObject<{
539
476
  code: z.ZodString;
540
477
  severity: z.ZodEnum<{
541
478
  info: "info";
542
- warning: "warning";
543
479
  error: "error";
480
+ warning: "warning";
544
481
  }>;
545
482
  message: z.ZodString;
546
483
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -559,7 +496,6 @@ export declare const VersionSchema: z.ZodObject<{
559
496
  }, z.core.$strip>>>;
560
497
  createdAt: z.ZodString;
561
498
  readyAt: z.ZodNullable<z.ZodString>;
562
- accessibleUntil: z.ZodNullable<z.ZodString>;
563
499
  retainedUntil: z.ZodNullable<z.ZodString>;
564
500
  updatedAt: z.ZodString;
565
501
  }, z.core.$strip>;