@spacefast/common 0.0.5 → 0.0.7

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 (183) hide show
  1. package/brand-assets/spacefast-favicon.svg +16 -0
  2. package/brand-assets/spacefast-sf-full-bleed.svg +13 -0
  3. package/brand-assets/spacefast-wordmark.svg +5 -0
  4. package/dist/agents/connect-targets.d.ts +138 -0
  5. package/dist/agents/connect-targets.js +243 -0
  6. package/dist/brand-assets-build.d.ts +26 -0
  7. package/dist/brand-assets-build.js +81 -0
  8. package/dist/brand-assets.d.ts +42 -0
  9. package/dist/brand-assets.js +30 -0
  10. package/dist/brand.d.ts +1 -0
  11. package/dist/brand.js +5 -0
  12. package/dist/config/domains.d.ts +12 -6
  13. package/dist/config/domains.js +30 -38
  14. package/dist/contracts/access.d.ts +967 -124
  15. package/dist/contracts/access.js +804 -148
  16. package/dist/contracts/activity.d.ts +1 -1
  17. package/dist/contracts/activity.js +28 -2
  18. package/dist/contracts/annotations.d.ts +2 -4
  19. package/dist/contracts/api-keys.d.ts +126 -4
  20. package/dist/contracts/api-keys.js +74 -6
  21. package/dist/contracts/archives.d.ts +8 -2
  22. package/dist/contracts/archives.js +11 -4
  23. package/dist/contracts/billing.d.ts +0 -9
  24. package/dist/contracts/builds.d.ts +65 -21
  25. package/dist/contracts/builds.js +29 -0
  26. package/dist/contracts/common.d.ts +2 -0
  27. package/dist/contracts/common.js +4 -0
  28. package/dist/contracts/continuation.d.ts +0 -3
  29. package/dist/contracts/countries.d.ts +2 -0
  30. package/dist/contracts/countries.js +261 -0
  31. package/dist/contracts/deployments.d.ts +34 -34
  32. package/dist/contracts/device-auth.d.ts +4 -11
  33. package/dist/contracts/device-auth.js +4 -0
  34. package/dist/contracts/docs.d.ts +119 -0
  35. package/dist/contracts/docs.js +51 -0
  36. package/dist/contracts/domains.d.ts +96 -54
  37. package/dist/contracts/domains.js +26 -4
  38. package/dist/contracts/enums.d.ts +15 -16
  39. package/dist/contracts/enums.js +26 -14
  40. package/dist/contracts/error-code-meta.d.ts +184 -0
  41. package/dist/contracts/error-code-meta.js +124 -10
  42. package/dist/contracts/error-codes.d.ts +1 -1
  43. package/dist/contracts/error-codes.js +42 -0
  44. package/dist/contracts/events.d.ts +1 -1
  45. package/dist/contracts/feature-lifecycle-core.d.ts +36 -0
  46. package/dist/contracts/feature-lifecycle-core.js +220 -0
  47. package/dist/contracts/feature-lifecycle.d.ts +7 -0
  48. package/dist/contracts/feature-lifecycle.js +31 -0
  49. package/dist/contracts/features.d.ts +76 -6
  50. package/dist/contracts/features.js +178 -13
  51. package/dist/contracts/generated-feature-launch-entries.d.ts +2 -0
  52. package/dist/contracts/generated-feature-launch-entries.js +518 -0
  53. package/dist/contracts/git.d.ts +2 -8
  54. package/dist/contracts/ids.d.ts +9 -0
  55. package/dist/contracts/ids.js +13 -0
  56. package/dist/contracts/mcp.d.ts +8 -10
  57. package/dist/contracts/me.js +1 -1
  58. package/dist/contracts/oauth-resources.d.ts +19 -8
  59. package/dist/contracts/oauth-resources.js +44 -13
  60. package/dist/contracts/operations.d.ts +161 -1
  61. package/dist/contracts/operations.js +49 -1
  62. package/dist/contracts/platform.d.ts +6 -102
  63. package/dist/contracts/platform.js +6 -50
  64. package/dist/contracts/publishes.d.ts +130 -0
  65. package/dist/contracts/publishes.js +145 -0
  66. package/dist/contracts/push-new.d.ts +4 -4
  67. package/dist/contracts/quotas.d.ts +2 -0
  68. package/dist/contracts/quotas.js +8 -0
  69. package/dist/contracts/repository-connections.d.ts +9 -8
  70. package/dist/contracts/repository-connections.js +13 -0
  71. package/dist/contracts/resources.d.ts +99 -13
  72. package/dist/contracts/resources.js +36 -4
  73. package/dist/contracts/routes.d.ts +0 -2
  74. package/dist/contracts/runtime-api.d.ts +363 -39
  75. package/dist/contracts/runtime-api.js +276 -6
  76. package/dist/contracts/sf-config-v1.d.ts +75 -0
  77. package/dist/contracts/sf-config-v1.js +6 -0
  78. package/dist/contracts/sites.d.ts +19 -2
  79. package/dist/contracts/sites.js +21 -0
  80. package/dist/contracts/space-config.d.ts +201 -2
  81. package/dist/contracts/space-config.js +135 -5
  82. package/dist/contracts/spaces.d.ts +376 -196
  83. package/dist/contracts/spaces.js +62 -10
  84. package/dist/contracts/superadmin-emails.d.ts +4 -2
  85. package/dist/contracts/superadmin-emails.js +8 -0
  86. package/dist/contracts/superadmin-queues.d.ts +26 -26
  87. package/dist/contracts/superadmin-spaces.d.ts +172 -42
  88. package/dist/contracts/superadmin-tenants.d.ts +6 -6
  89. package/dist/contracts/superadmin-tenants.js +6 -11
  90. package/dist/contracts/superadmin.d.ts +6 -93
  91. package/dist/contracts/superadmin.js +6 -14
  92. package/dist/contracts/tags.d.ts +10 -9
  93. package/dist/contracts/tags.js +2 -1
  94. package/dist/contracts/teams.d.ts +26 -30
  95. package/dist/contracts/teams.js +11 -17
  96. package/dist/contracts/theme-json.d.ts +30 -0
  97. package/dist/contracts/theme-json.js +48 -0
  98. package/dist/contracts/variables.d.ts +0 -2
  99. package/dist/contracts/variables.js +0 -5
  100. package/dist/contracts/webhooks.d.ts +2 -0
  101. package/dist/contracts/webhooks.js +1 -1
  102. package/dist/contracts/zero.d.ts +5 -10
  103. package/dist/docs/agent-prose.d.ts +43 -3
  104. package/dist/docs/agent-prose.js +146 -7
  105. package/dist/docs/agent-setup.d.ts +51 -0
  106. package/dist/docs/agent-setup.js +211 -14
  107. package/dist/docs/agent-solutions.d.ts +5 -5
  108. package/dist/docs/agent-solutions.js +2 -2
  109. package/dist/docs/catalog.d.ts +650 -0
  110. package/dist/docs/catalog.js +758 -0
  111. package/dist/docs/error-docs.d.ts +0 -2
  112. package/dist/docs/error-docs.js +189 -35
  113. package/dist/docs/index-build.d.ts +17 -0
  114. package/dist/docs/index-build.js +24 -0
  115. package/dist/docs/search.d.ts +54 -0
  116. package/dist/docs/search.js +96 -0
  117. package/dist/docs/skill-distribution.d.ts +5 -3
  118. package/dist/docs/skill-distribution.js +8 -8
  119. package/dist/slug-policy/blocklist.d.ts +4 -0
  120. package/dist/slug-policy/blocklist.js +122 -0
  121. package/dist/slug-policy/index.d.ts +17 -0
  122. package/dist/slug-policy/index.js +86 -0
  123. package/dist/utils/access-match.d.ts +39 -0
  124. package/dist/utils/access-match.js +296 -0
  125. package/dist/utils/auth-redirect.d.ts +3 -1
  126. package/dist/utils/auth-redirect.js +21 -1
  127. package/dist/utils/build-settings.d.ts +6 -0
  128. package/dist/utils/build-settings.js +429 -46
  129. package/dist/utils/claim-token.d.ts +8 -0
  130. package/dist/utils/claim-token.js +23 -2
  131. package/dist/utils/concurrency.d.ts +1 -0
  132. package/dist/utils/concurrency.js +22 -0
  133. package/dist/utils/content-type.d.ts +1 -0
  134. package/dist/utils/content-type.js +1 -1
  135. package/dist/utils/credential-policy.d.ts +54 -0
  136. package/dist/utils/{access-policy.js → credential-policy.js} +28 -2
  137. package/dist/utils/email.d.ts +1 -0
  138. package/dist/utils/email.js +3 -0
  139. package/dist/utils/gate-theme.d.ts +61 -0
  140. package/dist/utils/gate-theme.js +217 -0
  141. package/dist/utils/git-repository.d.ts +0 -1
  142. package/dist/utils/git-repository.js +0 -3
  143. package/dist/utils/id-hints.d.ts +8 -0
  144. package/dist/utils/id-hints.js +61 -0
  145. package/dist/utils/local-space-state.d.ts +91 -0
  146. package/dist/utils/local-space-state.js +251 -0
  147. package/dist/utils/oauth-signed-query.d.ts +8 -0
  148. package/dist/utils/oauth-signed-query.js +26 -0
  149. package/dist/utils/publish-detection.d.ts +0 -8
  150. package/dist/utils/publish-detection.js +0 -93
  151. package/dist/utils/publish-policy.d.ts +6 -5
  152. package/dist/utils/publish-policy.js +71 -7
  153. package/dist/utils/query-keys.d.ts +16 -4
  154. package/dist/utils/query-keys.js +31 -4
  155. package/dist/utils/runtime-paths.d.ts +0 -1
  156. package/dist/utils/runtime-paths.js +0 -1
  157. package/dist/utils/runtime-upload-batch.d.ts +18 -0
  158. package/dist/utils/runtime-upload-batch.js +90 -0
  159. package/dist/utils/runtime-upload.d.ts +2 -0
  160. package/dist/utils/runtime-upload.js +5 -0
  161. package/dist/utils/sf-config-v1.d.ts +2 -0
  162. package/dist/utils/sf-config-v1.js +542 -0
  163. package/dist/utils/space-config.d.ts +4 -0
  164. package/dist/utils/space-config.js +10 -1
  165. package/dist/utils/space-theme.d.ts +2 -0
  166. package/dist/utils/space-theme.js +9 -0
  167. package/dist/utils/static-runtime-policy.d.ts +0 -21
  168. package/dist/utils/static-runtime-policy.js +19 -103
  169. package/dist/utils/upload-session.d.ts +1 -1
  170. package/dist/utils/wpcom-auth-redirects.d.ts +32 -2
  171. package/dist/utils/wpcom-auth-redirects.js +26 -10
  172. package/dist/vocabulary.d.ts +130 -30
  173. package/dist/vocabulary.js +77 -36
  174. package/package.json +35 -1
  175. package/dist/contracts/account.d.ts +0 -28
  176. package/dist/contracts/account.js +0 -54
  177. package/dist/contracts/intercom.d.ts +0 -6
  178. package/dist/contracts/intercom.js +0 -5
  179. package/dist/contracts/telemetry.d.ts +0 -2
  180. package/dist/contracts/telemetry.js +0 -1
  181. package/dist/utils/access-policy.d.ts +0 -39
  182. package/dist/utils/error-display.d.ts +0 -7
  183. package/dist/utils/error-display.js +0 -42
@@ -209,12 +209,12 @@ export const spaceCustomDomainSchema = DomainSchema.extend({
209
209
  });
210
210
  export const spaceManagedDomainSchema = z.object({
211
211
  id: z.string().describe("Stable managed row id derived from the default hostname row."),
212
- source: z.literal("managed_view_fast").describe("System-managed view.fast hostname row."),
212
+ source: z.literal("managed_view_fast").describe("System-managed hostname row."),
213
213
  managed: z.literal(true),
214
214
  deletable: z.literal(false),
215
215
  assignable: z.literal(false),
216
216
  primary: z.boolean().describe("True when no custom primary domain overrides the managed URL."),
217
- name: z.string().describe("Managed view.fast hostname."),
217
+ name: z.string().describe("Managed hostname."),
218
218
  unicodeName: z.string().optional(),
219
219
  kind: z.literal("hostname"),
220
220
  publicName: z.string().describe("Left-hand public project label for the managed hostname."),
@@ -1027,7 +1027,7 @@ export const domainProviderConnectionCreateSchema = z
1027
1027
  });
1028
1028
  export const domainProviderConnectionOAuthCompleteSchema = z.object({
1029
1029
  teamId: z.string().min(1).optional(),
1030
- provider: z.literal("cloudflare"),
1030
+ provider: z.enum(["cloudflare", "wpcom"]),
1031
1031
  label: z.string().trim().min(1).max(255).optional(),
1032
1032
  });
1033
1033
  export const domainProviderZoneSchema = z.object({
@@ -1047,6 +1047,22 @@ export const domainProviderZoneAttachSchema = z.object({
1047
1047
  providerZoneId: z.string().min(1).max(255),
1048
1048
  providerZoneName: z.string().trim().min(1).max(255).optional(),
1049
1049
  });
1050
+ export const domainConnectDiscoverySchema = z.object({
1051
+ supported: z.boolean(),
1052
+ gated: z.boolean().optional(),
1053
+ provider: z
1054
+ .object({
1055
+ urlSyncUX: z.string().url().optional(),
1056
+ urlAPI: z.string().url().optional(),
1057
+ urlControlPanel: z.string().url().optional(),
1058
+ providerName: z.string().optional(),
1059
+ })
1060
+ .optional(),
1061
+ checkedAt: z.string().datetime(),
1062
+ });
1063
+ export const domainConnectDiscoveryResponseSchema = z.object({
1064
+ data: domainConnectDiscoverySchema,
1065
+ });
1050
1066
  export const domainProviderSnapshotRefreshResponseSchema = mutationEnvelope(z.object({
1051
1067
  operationId: z.string(),
1052
1068
  snapshot: z.object({
@@ -1361,7 +1377,7 @@ export const domainDnsRecordBatchSchema = z
1361
1377
  puts: z
1362
1378
  .array(domainDnsRecordFields.extend({ id: z.string() }).superRefine(requireMxSrvPriority))
1363
1379
  .default([])
1364
- .describe("Full record upserts by id, applied third."),
1380
+ .describe("Full replacements for existing records by id, applied third."),
1365
1381
  posts: z
1366
1382
  .array(domainDnsRecordFields.superRefine(requireMxSrvPriority))
1367
1383
  .default([])
@@ -1376,6 +1392,8 @@ export const domainHostnameDnsSnapshotSchema = z.object({
1376
1392
  a: z.array(z.string()).default([]),
1377
1393
  aaaa: z.array(z.string()).default([]),
1378
1394
  caa: z.array(z.string()).default([]),
1395
+ cname: z.array(z.string()).default([]),
1396
+ mx: z.array(z.string()).default([]),
1379
1397
  txt: z.array(z.string()).default([]),
1380
1398
  });
1381
1399
  export const domainHostnameSslBrokenRecordSchema = z.object({
@@ -1400,8 +1418,10 @@ export const domainHostnameDiagnosticsSchema = z.object({
1400
1418
  .default([])
1401
1419
  .describe("DNS records required for this hostname."),
1402
1420
  dns: z.object({
1421
+ observedAt: z.string().datetime(),
1403
1422
  expectedTxtValue: z.string().nullable(),
1404
1423
  pointsToProvider: z.boolean().describe("Whether observed A records point at the provider."),
1424
+ proxyDetected: z.boolean().nullable().describe("Whether observed A records look proxied."),
1405
1425
  txtVerified: z.boolean().nullable().describe("Whether the verification TXT is observed."),
1406
1426
  hasAaaaRecords: z.boolean(),
1407
1427
  hasCaaRecords: z.boolean(),
@@ -1409,6 +1429,8 @@ export const domainHostnameDiagnosticsSchema = z.object({
1409
1429
  a: z.array(z.string()).default([]),
1410
1430
  aaaa: z.array(z.string()).default([]),
1411
1431
  caa: z.array(z.string()).default([]),
1432
+ cname: z.array(z.string()).default([]),
1433
+ mx: z.array(z.string()).default([]),
1412
1434
  txt: z.array(z.string()).default([]),
1413
1435
  }),
1414
1436
  byResolver: z.array(domainHostnameDnsSnapshotSchema).default([]),
@@ -8,12 +8,13 @@ export declare const spaceStatus: z.ZodEnum<{
8
8
  deleting: "deleting";
9
9
  failed: "failed";
10
10
  }>;
11
- export declare const spaceDisabledReasonCodeValues: readonly ["anonymous_expired", "abuse_takedown", "tenant_suspended", "site_suspended"];
11
+ export declare const spaceDisabledReasonCodeValues: readonly ["anonymous_expired", "abuse_takedown", "tenant_suspended", "site_suspended", "visit_cap_exceeded"];
12
12
  export declare const spaceDisabledReasonCode: z.ZodEnum<{
13
13
  anonymous_expired: "anonymous_expired";
14
14
  abuse_takedown: "abuse_takedown";
15
15
  tenant_suspended: "tenant_suspended";
16
16
  site_suspended: "site_suspended";
17
+ visit_cap_exceeded: "visit_cap_exceeded";
17
18
  }>;
18
19
  export declare const spaceTransferStatusValues: readonly ["pending_confirmation", "confirming_domains", "moving", "completed", "canceled", "expired"];
19
20
  export declare const spaceTransferStatus: z.ZodEnum<{
@@ -61,12 +62,22 @@ export declare const siteStatus: z.ZodEnum<{
61
62
  ready_pool: "ready_pool";
62
63
  degraded: "degraded";
63
64
  }>;
64
- export declare const siteClassValues: readonly ["anonymous_pool", "shared_org", "dedicated_space"];
65
+ export declare const siteClassValues: readonly ["shared", "dedicated", "shared_org", "anonymous_pool", "dedicated_space"];
65
66
  export declare const siteClass: z.ZodEnum<{
66
- anonymous_pool: "anonymous_pool";
67
+ shared: "shared";
68
+ dedicated: "dedicated";
67
69
  shared_org: "shared_org";
70
+ anonymous_pool: "anonymous_pool";
68
71
  dedicated_space: "dedicated_space";
69
72
  }>;
73
+ export declare const normalizedSiteClassValues: readonly ["shared", "dedicated"];
74
+ export declare const normalizedSiteClass: z.ZodEnum<{
75
+ shared: "shared";
76
+ dedicated: "dedicated";
77
+ }>;
78
+ export declare function normalizeSiteClass(value: SiteClass): NormalizedSiteClass;
79
+ export declare function siteClassIsShared(value: SiteClass): boolean;
80
+ export declare function siteClassIsDedicated(value: SiteClass): boolean;
70
81
  export declare const publishSourceKindValues: readonly ["direct_upload", "cli", "dashboard", "api", "git", "import", "agent", "build", "variable_update", "config_update"];
71
82
  export declare const publishSourceKind: z.ZodEnum<{
72
83
  api: "api";
@@ -165,15 +176,6 @@ export declare const cachePurgeTarget: z.ZodEnum<{
165
176
  domain: "domain";
166
177
  path: "path";
167
178
  }>;
168
- export declare const bullJobStatus: z.ZodEnum<{
169
- active: "active";
170
- failed: "failed";
171
- completed: "completed";
172
- delayed: "delayed";
173
- prioritized: "prioritized";
174
- waiting: "waiting";
175
- "waiting-children": "waiting-children";
176
- }>;
177
179
  export declare const operationStatus: z.ZodEnum<{
178
180
  failed: "failed";
179
181
  canceled: "canceled";
@@ -181,16 +183,13 @@ export declare const operationStatus: z.ZodEnum<{
181
183
  running: "running";
182
184
  succeeded: "succeeded";
183
185
  }>;
184
- export type VersionStatus = z.infer<typeof versionStatus>;
185
186
  export type GitProvider = z.infer<typeof gitProvider>;
186
187
  export type PublishSourceKind = z.infer<typeof publishSourceKind>;
187
188
  export type SiteIsolation = z.infer<typeof siteIsolation>;
188
- export type TenantKind = z.infer<typeof tenantKind>;
189
189
  export type TenantStatus = z.infer<typeof tenantStatus>;
190
- export type ProviderClientStatus = z.infer<typeof providerClientStatus>;
191
190
  export type SiteKind = z.infer<typeof siteKind>;
192
- export type SiteStatus = z.infer<typeof siteStatus>;
193
191
  export type SiteClass = z.infer<typeof siteClass>;
192
+ export type NormalizedSiteClass = z.infer<typeof normalizedSiteClass>;
194
193
  export type OperationStatus = z.infer<typeof operationStatus>;
195
194
  export type SafetyCategory = z.infer<typeof safetyCategory>;
196
195
  export type EnforcementTier = z.infer<typeof enforcementTier>;
@@ -12,13 +12,17 @@ export const spaceStatusValues = [
12
12
  ];
13
13
  export const spaceStatus = z.enum(spaceStatusValues);
14
14
  // Serving-axis disable reasons (internal-docs/platform.md "Space"): exactly
15
- // these four. Malware takedowns are `abuse_takedown` with
16
- // `details.source = "malware_scan"`.
15
+ // these five. Confirmed scan takedowns use `abuse_takedown`; infected state and
16
+ // claim invalidation are explicit enforcement effects, not reason metadata.
17
+ // `visit_cap_exceeded` is the anonymous visit-quota pause
18
+ // (ANONYMOUS_PUBLISH_CAPS.maxLifetimeViews): recoverable, the claim token stays
19
+ // intact, and claiming the space restores serving.
17
20
  export const spaceDisabledReasonCodeValues = [
18
21
  "anonymous_expired",
19
22
  "abuse_takedown",
20
23
  "tenant_suspended",
21
24
  "site_suspended",
25
+ "visit_cap_exceeded",
22
26
  ];
23
27
  export const spaceDisabledReasonCode = z.enum(spaceDisabledReasonCodeValues);
24
28
  // SpaceTransfer status machine (internal-docs/platform.md "Transfer
@@ -72,10 +76,27 @@ export const siteStatusValues = [
72
76
  "deleted",
73
77
  ];
74
78
  export const siteStatus = z.enum(siteStatusValues);
75
- // Placement class for shared-pool sites: anonymous pool partition, one shared
76
- // site per team, or a site dedicated to a single space / tenant-created site.
77
- export const siteClassValues = ["anonymous_pool", "shared_org", "dedicated_space"];
79
+ // Placement class for a WP.Cloud site. Deploy T accepts the legacy class
80
+ // strings while new code writes the normalized shared/dedicated vocabulary.
81
+ export const siteClassValues = [
82
+ "shared",
83
+ "dedicated",
84
+ "shared_org",
85
+ "anonymous_pool",
86
+ "dedicated_space",
87
+ ];
78
88
  export const siteClass = z.enum(siteClassValues);
89
+ export const normalizedSiteClassValues = ["shared", "dedicated"];
90
+ export const normalizedSiteClass = z.enum(normalizedSiteClassValues);
91
+ export function normalizeSiteClass(value) {
92
+ return value === "dedicated" || value === "dedicated_space" ? "dedicated" : "shared";
93
+ }
94
+ export function siteClassIsShared(value) {
95
+ return normalizeSiteClass(value) === "shared";
96
+ }
97
+ export function siteClassIsDedicated(value) {
98
+ return normalizeSiteClass(value) === "dedicated";
99
+ }
79
100
  // PublishSource.kind (internal-docs/platform.md "PublishSource"): the single
80
101
  // provenance axis for how a version came to exist. `variable_update` and
81
102
  // `config_update` versions are minted by cascades/config regeneration.
@@ -199,13 +220,4 @@ export const enforcementTierValues = ["record", "space_takedown", "account_suspe
199
220
  export const enforcementTier = z.enum(enforcementTierValues);
200
221
  export const cachePurgeAction = z.enum(["invalidate"]);
201
222
  export const cachePurgeTarget = z.enum(["space", "domain", "path"]);
202
- export const bullJobStatus = z.enum([
203
- "active",
204
- "completed",
205
- "delayed",
206
- "failed",
207
- "prioritized",
208
- "waiting",
209
- "waiting-children",
210
- ]);
211
223
  export const operationStatus = z.enum(["queued", "running", "succeeded", "failed", "canceled"]);
@@ -4,6 +4,8 @@ export interface ErrorCodeMeta {
4
4
  retryable: boolean;
5
5
  /** The single actionable recovery hint for this code. */
6
6
  recovery: ErrorRecovery;
7
+ /** Copy-pasteable commands or requests an agent can run next. */
8
+ next?: readonly string[];
7
9
  }
8
10
  /** Safe default for codes outside the table (provider passthrough, future codes). */
9
11
  export declare const DEFAULT_ERROR_CODE_META: ErrorCodeMeta;
@@ -15,6 +17,7 @@ export declare const ERROR_CODE_META: {
15
17
  readonly abuse_report_rate_limited: {
16
18
  readonly retryable: true;
17
19
  readonly recovery: "wait";
20
+ readonly next: readonly ["Retry after the Retry-After seconds"];
18
21
  };
19
22
  readonly abuse_takedown: {
20
23
  readonly retryable: false;
@@ -35,6 +38,7 @@ export declare const ERROR_CODE_META: {
35
38
  readonly anonymous_expired: {
36
39
  readonly retryable: false;
37
40
  readonly recovery: "re_auth";
41
+ readonly next: readonly ["sf publish", "MCP: call publish", "curl -sS -F archive=@site.zip https://api.spacefast.com/v1/publish"];
38
42
  };
39
43
  readonly anonymous_pool_unavailable: {
40
44
  readonly retryable: true;
@@ -43,6 +47,16 @@ export declare const ERROR_CODE_META: {
43
47
  readonly anonymous_publish_rate_limited: {
44
48
  readonly retryable: true;
45
49
  readonly recovery: "wait";
50
+ readonly next: readonly ["Retry after the Retry-After seconds", "sf login", "sf publish"];
51
+ };
52
+ readonly anonymous_space_limit_reached: {
53
+ readonly retryable: false;
54
+ readonly recovery: "re_auth";
55
+ readonly next: readonly ["sf login", "Claim or delete an existing anonymous space"];
56
+ };
57
+ readonly api_key_scope_underivable: {
58
+ readonly retryable: false;
59
+ readonly recovery: "fix_input";
46
60
  };
47
61
  readonly archive_body_required: {
48
62
  readonly retryable: false;
@@ -168,6 +182,16 @@ export declare const ERROR_CODE_META: {
168
182
  readonly retryable: false;
169
183
  readonly recovery: "fix_input";
170
184
  };
185
+ readonly continuation_unavailable: {
186
+ readonly retryable: false;
187
+ readonly recovery: "re_auth";
188
+ readonly next: readonly ["Ask the owner to create an access token", "sf login", "sf publish --token <access-token>"];
189
+ };
190
+ readonly continuation_used: {
191
+ readonly retryable: false;
192
+ readonly recovery: "re_auth";
193
+ readonly next: readonly ["Use the saved access token", "sf publish --token <access-token>", "Ask the owner to create an access token"];
194
+ };
171
195
  readonly credential_expired: {
172
196
  readonly retryable: false;
173
197
  readonly recovery: "re_auth";
@@ -192,6 +216,10 @@ export declare const ERROR_CODE_META: {
192
216
  readonly retryable: false;
193
217
  readonly recovery: "contact_support";
194
218
  };
219
+ readonly datacenters_unavailable: {
220
+ readonly retryable: true;
221
+ readonly recovery: "retry";
222
+ };
195
223
  readonly data_location_immutable: {
196
224
  readonly retryable: false;
197
225
  readonly recovery: "fix_input";
@@ -203,6 +231,7 @@ export declare const ERROR_CODE_META: {
203
231
  readonly device_verification_rate_limited: {
204
232
  readonly retryable: true;
205
233
  readonly recovery: "wait";
234
+ readonly next: readonly ["Retry after the Retry-After seconds"];
206
235
  };
207
236
  readonly dns_export_required: {
208
237
  readonly retryable: false;
@@ -287,6 +316,7 @@ export declare const ERROR_CODE_META: {
287
316
  readonly dns_provider_rate_limited: {
288
317
  readonly retryable: true;
289
318
  readonly recovery: "wait";
319
+ readonly next: readonly ["Retry after the Retry-After seconds", "sf domains check"];
290
320
  };
291
321
  readonly dns_provider_replace_all_requires_fresh_plan: {
292
322
  readonly retryable: false;
@@ -367,6 +397,7 @@ export declare const ERROR_CODE_META: {
367
397
  readonly domain_lookup_rate_limited: {
368
398
  readonly retryable: true;
369
399
  readonly recovery: "wait";
400
+ readonly next: readonly ["Retry after the Retry-After seconds"];
370
401
  };
371
402
  readonly domain_not_bound: {
372
403
  readonly retryable: false;
@@ -408,6 +439,10 @@ export declare const ERROR_CODE_META: {
408
439
  readonly retryable: false;
409
440
  readonly recovery: "fix_input";
410
441
  };
442
+ readonly enforcement_policy_overlap: {
443
+ readonly retryable: false;
444
+ readonly recovery: "fix_input";
445
+ };
411
446
  readonly event_payload_too_large: {
412
447
  readonly retryable: false;
413
448
  readonly recovery: "fix_input";
@@ -415,6 +450,7 @@ export declare const ERROR_CODE_META: {
415
450
  readonly event_rate_limited: {
416
451
  readonly retryable: true;
417
452
  readonly recovery: "wait";
453
+ readonly next: readonly ["Retry after the Retry-After seconds"];
418
454
  };
419
455
  readonly expired_token: {
420
456
  readonly retryable: false;
@@ -632,6 +668,10 @@ export declare const ERROR_CODE_META: {
632
668
  readonly retryable: false;
633
669
  readonly recovery: "contact_support";
634
670
  };
671
+ readonly move_target_capacity_lost: {
672
+ readonly retryable: true;
673
+ readonly recovery: "retry";
674
+ };
635
675
  readonly managed_domain_protected: {
636
676
  readonly retryable: false;
637
677
  readonly recovery: "fix_input";
@@ -692,6 +732,14 @@ export declare const ERROR_CODE_META: {
692
732
  readonly retryable: false;
693
733
  readonly recovery: "fix_input";
694
734
  };
735
+ readonly placement_invalid_burstable: {
736
+ readonly retryable: false;
737
+ readonly recovery: "fix_input";
738
+ };
739
+ readonly placement_mode_requires_plan: {
740
+ readonly retryable: false;
741
+ readonly recovery: "fix_input";
742
+ };
695
743
  readonly platform_tenant_immutable_client: {
696
744
  readonly retryable: false;
697
745
  readonly recovery: "fix_input";
@@ -748,6 +796,10 @@ export declare const ERROR_CODE_META: {
748
796
  readonly retryable: false;
749
797
  readonly recovery: "fix_input";
750
798
  };
799
+ readonly publish_base_changed: {
800
+ readonly retryable: false;
801
+ readonly recovery: "fix_input";
802
+ };
751
803
  readonly publish_config_unsupported: {
752
804
  readonly retryable: false;
753
805
  readonly recovery: "fix_input";
@@ -779,6 +831,7 @@ export declare const ERROR_CODE_META: {
779
831
  readonly rate_limited: {
780
832
  readonly retryable: true;
781
833
  readonly recovery: "wait";
834
+ readonly next: readonly ["Retry after the Retry-After seconds"];
782
835
  };
783
836
  readonly registration_expired: {
784
837
  readonly retryable: false;
@@ -907,15 +960,34 @@ export declare const ERROR_CODE_META: {
907
960
  readonly slow_down: {
908
961
  readonly retryable: true;
909
962
  readonly recovery: "wait";
963
+ readonly next: readonly ["Retry after the Retry-After seconds"];
964
+ };
965
+ readonly slug_invalid: {
966
+ readonly retryable: false;
967
+ readonly recovery: "fix_input";
968
+ };
969
+ readonly slug_reserved: {
970
+ readonly retryable: false;
971
+ readonly recovery: "fix_input";
972
+ };
973
+ readonly slug_unavailable: {
974
+ readonly retryable: false;
975
+ readonly recovery: "fix_input";
910
976
  };
911
977
  readonly space_already_claimed: {
912
978
  readonly retryable: false;
913
979
  readonly recovery: "fix_input";
980
+ readonly next: readonly ["sf login", "sf publish --space <space-id>", "Ask the owner to create an access token"];
914
981
  };
915
982
  readonly space_claim_unavailable: {
916
983
  readonly retryable: false;
917
984
  readonly recovery: "fix_input";
918
985
  };
986
+ readonly space_claimed_credential_available: {
987
+ readonly retryable: false;
988
+ readonly recovery: "re_auth";
989
+ readonly next: readonly ["bash scripts/continue.sh", "MCP: call continue_space", "curl -sS -X POST -H 'Authorization: Bearer <claim-token>' https://api.spacefast.com/v1/anonymous-claim/exchange"];
990
+ };
919
991
  readonly space_disabled: {
920
992
  readonly retryable: false;
921
993
  readonly recovery: "fix_input";
@@ -928,6 +1000,10 @@ export declare const ERROR_CODE_META: {
928
1000
  readonly retryable: false;
929
1001
  readonly recovery: "fix_input";
930
1002
  };
1003
+ readonly space_hostname_identity_missing: {
1004
+ readonly retryable: false;
1005
+ readonly recovery: "contact_support";
1006
+ };
931
1007
  readonly space_import_archive_invalid: {
932
1008
  readonly retryable: false;
933
1009
  readonly recovery: "fix_input";
@@ -992,6 +1068,10 @@ export declare const ERROR_CODE_META: {
992
1068
  readonly retryable: false;
993
1069
  readonly recovery: "fix_input";
994
1070
  };
1071
+ readonly storage_bucket_unavailable: {
1072
+ readonly retryable: true;
1073
+ readonly recovery: "retry";
1074
+ };
995
1075
  readonly storage_quota_exceeded: {
996
1076
  readonly retryable: false;
997
1077
  readonly recovery: "fix_input";
@@ -1012,6 +1092,10 @@ export declare const ERROR_CODE_META: {
1012
1092
  readonly retryable: true;
1013
1093
  readonly recovery: "wait";
1014
1094
  };
1095
+ readonly team_member_quota_exceeded: {
1096
+ readonly retryable: false;
1097
+ readonly recovery: "fix_input";
1098
+ };
1015
1099
  readonly team_ref_required: {
1016
1100
  readonly retryable: false;
1017
1101
  readonly recovery: "fix_input";
@@ -1076,6 +1160,10 @@ export declare const ERROR_CODE_META: {
1076
1160
  readonly retryable: false;
1077
1161
  readonly recovery: "fix_input";
1078
1162
  };
1163
+ readonly transfer_push_failed: {
1164
+ readonly retryable: true;
1165
+ readonly recovery: "retry";
1166
+ };
1079
1167
  readonly transfer_source_changed: {
1080
1168
  readonly retryable: false;
1081
1169
  readonly recovery: "fix_input";
@@ -1084,6 +1172,10 @@ export declare const ERROR_CODE_META: {
1084
1172
  readonly retryable: false;
1085
1173
  readonly recovery: "fix_input";
1086
1174
  };
1175
+ readonly transfer_verify_failed: {
1176
+ readonly retryable: true;
1177
+ readonly recovery: "retry";
1178
+ };
1087
1179
  readonly unauthorized: {
1088
1180
  readonly retryable: false;
1089
1181
  readonly recovery: "re_auth";
@@ -1256,6 +1348,14 @@ export declare const ERROR_CODE_META: {
1256
1348
  readonly retryable: false;
1257
1349
  readonly recovery: "contact_support";
1258
1350
  };
1351
+ readonly zero_activating: {
1352
+ readonly retryable: true;
1353
+ readonly recovery: "wait";
1354
+ };
1355
+ readonly zero_ai_unavailable: {
1356
+ readonly retryable: false;
1357
+ readonly recovery: "fix_input";
1358
+ };
1259
1359
  readonly zero_artifact_abi_mismatch: {
1260
1360
  readonly retryable: false;
1261
1361
  readonly recovery: "fix_input";
@@ -1268,6 +1368,10 @@ export declare const ERROR_CODE_META: {
1268
1368
  readonly retryable: false;
1269
1369
  readonly recovery: "fix_input";
1270
1370
  };
1371
+ readonly zero_artifact_missing: {
1372
+ readonly retryable: false;
1373
+ readonly recovery: "fix_input";
1374
+ };
1271
1375
  readonly zero_artifact_path_invalid: {
1272
1376
  readonly retryable: false;
1273
1377
  readonly recovery: "fix_input";
@@ -1276,6 +1380,10 @@ export declare const ERROR_CODE_META: {
1276
1380
  readonly retryable: false;
1277
1381
  readonly recovery: "fix_input";
1278
1382
  };
1383
+ readonly zero_artifact_untrusted: {
1384
+ readonly retryable: false;
1385
+ readonly recovery: "fix_input";
1386
+ };
1279
1387
  readonly zero_auth_unavailable: {
1280
1388
  readonly retryable: false;
1281
1389
  readonly recovery: "fix_input";
@@ -1316,6 +1424,10 @@ export declare const ERROR_CODE_META: {
1316
1424
  readonly retryable: false;
1317
1425
  readonly recovery: "fix_input";
1318
1426
  };
1427
+ readonly zero_capabilities_encode_failed: {
1428
+ readonly retryable: false;
1429
+ readonly recovery: "fix_input";
1430
+ };
1319
1431
  readonly zero_client_bundle_not_loaded: {
1320
1432
  readonly retryable: false;
1321
1433
  readonly recovery: "fix_input";
@@ -1388,6 +1500,22 @@ export declare const ERROR_CODE_META: {
1388
1500
  readonly retryable: false;
1389
1501
  readonly recovery: "fix_input";
1390
1502
  };
1503
+ readonly zero_endpoint_compile_failed: {
1504
+ readonly retryable: false;
1505
+ readonly recovery: "fix_input";
1506
+ };
1507
+ readonly zero_endpoint_conflict: {
1508
+ readonly retryable: false;
1509
+ readonly recovery: "fix_input";
1510
+ };
1511
+ readonly zero_endpoint_duplicate: {
1512
+ readonly retryable: false;
1513
+ readonly recovery: "fix_input";
1514
+ };
1515
+ readonly zero_endpoint_id_duplicate: {
1516
+ readonly retryable: false;
1517
+ readonly recovery: "fix_input";
1518
+ };
1391
1519
  readonly zero_endpoint_index_invalid: {
1392
1520
  readonly retryable: false;
1393
1521
  readonly recovery: "fix_input";
@@ -1404,6 +1532,10 @@ export declare const ERROR_CODE_META: {
1404
1532
  readonly retryable: false;
1405
1533
  readonly recovery: "fix_input";
1406
1534
  };
1535
+ readonly zero_endpoint_invalid: {
1536
+ readonly retryable: false;
1537
+ readonly recovery: "fix_input";
1538
+ };
1407
1539
  readonly zero_endpoint_mismatch: {
1408
1540
  readonly retryable: false;
1409
1541
  readonly recovery: "fix_input";
@@ -1412,6 +1544,14 @@ export declare const ERROR_CODE_META: {
1412
1544
  readonly retryable: false;
1413
1545
  readonly recovery: "fix_input";
1414
1546
  };
1547
+ readonly zero_endpoints_invalid: {
1548
+ readonly retryable: false;
1549
+ readonly recovery: "fix_input";
1550
+ };
1551
+ readonly zero_endpoints_too_many: {
1552
+ readonly retryable: false;
1553
+ readonly recovery: "fix_input";
1554
+ };
1415
1555
  readonly zero_envelope_encode_failed: {
1416
1556
  readonly retryable: true;
1417
1557
  readonly recovery: "retry";
@@ -1444,10 +1584,18 @@ export declare const ERROR_CODE_META: {
1444
1584
  readonly retryable: false;
1445
1585
  readonly recovery: "fix_input";
1446
1586
  };
1587
+ readonly zero_lookup_invalid: {
1588
+ readonly retryable: false;
1589
+ readonly recovery: "fix_input";
1590
+ };
1447
1591
  readonly zero_method_not_allowed: {
1448
1592
  readonly retryable: false;
1449
1593
  readonly recovery: "fix_input";
1450
1594
  };
1595
+ readonly zero_migration_failed: {
1596
+ readonly retryable: false;
1597
+ readonly recovery: "fix_input";
1598
+ };
1451
1599
  readonly zero_query_name_missing: {
1452
1600
  readonly retryable: false;
1453
1601
  readonly recovery: "fix_input";
@@ -1500,6 +1648,26 @@ export declare const ERROR_CODE_META: {
1500
1648
  readonly retryable: false;
1501
1649
  readonly recovery: "fix_input";
1502
1650
  };
1651
+ readonly zero_requires_dedicated_plan: {
1652
+ readonly retryable: false;
1653
+ readonly recovery: "fix_input";
1654
+ };
1655
+ readonly zero_routes_invalid: {
1656
+ readonly retryable: false;
1657
+ readonly recovery: "fix_input";
1658
+ };
1659
+ readonly zero_run_compile_failed: {
1660
+ readonly retryable: false;
1661
+ readonly recovery: "fix_input";
1662
+ };
1663
+ readonly zero_run_duplicate: {
1664
+ readonly retryable: false;
1665
+ readonly recovery: "fix_input";
1666
+ };
1667
+ readonly zero_run_invalid: {
1668
+ readonly retryable: false;
1669
+ readonly recovery: "fix_input";
1670
+ };
1503
1671
  readonly zero_run_operation_unsupported: {
1504
1672
  readonly retryable: false;
1505
1673
  readonly recovery: "fix_input";
@@ -1544,6 +1712,22 @@ export declare const ERROR_CODE_META: {
1544
1712
  readonly retryable: false;
1545
1713
  readonly recovery: "fix_input";
1546
1714
  };
1715
+ readonly zero_runs_invalid: {
1716
+ readonly retryable: false;
1717
+ readonly recovery: "fix_input";
1718
+ };
1719
+ readonly zero_runs_require_runtime_compiler: {
1720
+ readonly retryable: false;
1721
+ readonly recovery: "fix_input";
1722
+ };
1723
+ readonly zero_runs_too_many: {
1724
+ readonly retryable: false;
1725
+ readonly recovery: "fix_input";
1726
+ };
1727
+ readonly zero_shopify_unavailable: {
1728
+ readonly retryable: false;
1729
+ readonly recovery: "fix_input";
1730
+ };
1547
1731
  readonly zero_source_compile_failed: {
1548
1732
  readonly retryable: false;
1549
1733
  readonly recovery: "fix_input";