@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.
- package/brand-assets/spacefast-favicon.svg +16 -0
- package/brand-assets/spacefast-sf-full-bleed.svg +13 -0
- package/brand-assets/spacefast-wordmark.svg +5 -0
- package/dist/agents/connect-targets.d.ts +138 -0
- package/dist/agents/connect-targets.js +243 -0
- package/dist/brand-assets-build.d.ts +26 -0
- package/dist/brand-assets-build.js +81 -0
- package/dist/brand-assets.d.ts +42 -0
- package/dist/brand-assets.js +30 -0
- package/dist/brand.d.ts +1 -0
- package/dist/brand.js +5 -0
- package/dist/config/domains.d.ts +12 -6
- package/dist/config/domains.js +30 -38
- package/dist/contracts/access.d.ts +967 -124
- package/dist/contracts/access.js +804 -148
- package/dist/contracts/activity.d.ts +1 -1
- package/dist/contracts/activity.js +28 -2
- package/dist/contracts/annotations.d.ts +2 -4
- package/dist/contracts/api-keys.d.ts +126 -4
- package/dist/contracts/api-keys.js +74 -6
- package/dist/contracts/archives.d.ts +8 -2
- package/dist/contracts/archives.js +11 -4
- package/dist/contracts/billing.d.ts +0 -9
- package/dist/contracts/builds.d.ts +65 -21
- package/dist/contracts/builds.js +29 -0
- package/dist/contracts/common.d.ts +2 -0
- package/dist/contracts/common.js +4 -0
- package/dist/contracts/continuation.d.ts +0 -3
- package/dist/contracts/countries.d.ts +2 -0
- package/dist/contracts/countries.js +261 -0
- package/dist/contracts/deployments.d.ts +34 -34
- package/dist/contracts/device-auth.d.ts +4 -11
- package/dist/contracts/device-auth.js +4 -0
- package/dist/contracts/docs.d.ts +119 -0
- package/dist/contracts/docs.js +51 -0
- package/dist/contracts/domains.d.ts +96 -54
- package/dist/contracts/domains.js +26 -4
- package/dist/contracts/enums.d.ts +15 -16
- package/dist/contracts/enums.js +26 -14
- package/dist/contracts/error-code-meta.d.ts +184 -0
- package/dist/contracts/error-code-meta.js +124 -10
- package/dist/contracts/error-codes.d.ts +1 -1
- package/dist/contracts/error-codes.js +42 -0
- package/dist/contracts/events.d.ts +1 -1
- package/dist/contracts/feature-lifecycle-core.d.ts +36 -0
- package/dist/contracts/feature-lifecycle-core.js +220 -0
- package/dist/contracts/feature-lifecycle.d.ts +7 -0
- package/dist/contracts/feature-lifecycle.js +31 -0
- package/dist/contracts/features.d.ts +76 -6
- package/dist/contracts/features.js +178 -13
- package/dist/contracts/generated-feature-launch-entries.d.ts +2 -0
- package/dist/contracts/generated-feature-launch-entries.js +518 -0
- package/dist/contracts/git.d.ts +2 -8
- package/dist/contracts/ids.d.ts +9 -0
- package/dist/contracts/ids.js +13 -0
- package/dist/contracts/mcp.d.ts +8 -10
- package/dist/contracts/me.js +1 -1
- package/dist/contracts/oauth-resources.d.ts +19 -8
- package/dist/contracts/oauth-resources.js +44 -13
- package/dist/contracts/operations.d.ts +161 -1
- package/dist/contracts/operations.js +49 -1
- package/dist/contracts/platform.d.ts +6 -102
- package/dist/contracts/platform.js +6 -50
- package/dist/contracts/publishes.d.ts +130 -0
- package/dist/contracts/publishes.js +145 -0
- package/dist/contracts/push-new.d.ts +4 -4
- package/dist/contracts/quotas.d.ts +2 -0
- package/dist/contracts/quotas.js +8 -0
- package/dist/contracts/repository-connections.d.ts +9 -8
- package/dist/contracts/repository-connections.js +13 -0
- package/dist/contracts/resources.d.ts +99 -13
- package/dist/contracts/resources.js +36 -4
- package/dist/contracts/routes.d.ts +0 -2
- package/dist/contracts/runtime-api.d.ts +363 -39
- package/dist/contracts/runtime-api.js +276 -6
- package/dist/contracts/sf-config-v1.d.ts +75 -0
- package/dist/contracts/sf-config-v1.js +6 -0
- package/dist/contracts/sites.d.ts +19 -2
- package/dist/contracts/sites.js +21 -0
- package/dist/contracts/space-config.d.ts +201 -2
- package/dist/contracts/space-config.js +135 -5
- package/dist/contracts/spaces.d.ts +376 -196
- package/dist/contracts/spaces.js +62 -10
- package/dist/contracts/superadmin-emails.d.ts +4 -2
- package/dist/contracts/superadmin-emails.js +8 -0
- package/dist/contracts/superadmin-queues.d.ts +26 -26
- package/dist/contracts/superadmin-spaces.d.ts +172 -42
- package/dist/contracts/superadmin-tenants.d.ts +6 -6
- package/dist/contracts/superadmin-tenants.js +6 -11
- package/dist/contracts/superadmin.d.ts +6 -93
- package/dist/contracts/superadmin.js +6 -14
- package/dist/contracts/tags.d.ts +10 -9
- package/dist/contracts/tags.js +2 -1
- package/dist/contracts/teams.d.ts +26 -30
- package/dist/contracts/teams.js +11 -17
- package/dist/contracts/theme-json.d.ts +30 -0
- package/dist/contracts/theme-json.js +48 -0
- package/dist/contracts/variables.d.ts +0 -2
- package/dist/contracts/variables.js +0 -5
- package/dist/contracts/webhooks.d.ts +2 -0
- package/dist/contracts/webhooks.js +1 -1
- package/dist/contracts/zero.d.ts +5 -10
- package/dist/docs/agent-prose.d.ts +43 -3
- package/dist/docs/agent-prose.js +146 -7
- package/dist/docs/agent-setup.d.ts +51 -0
- package/dist/docs/agent-setup.js +211 -14
- package/dist/docs/agent-solutions.d.ts +5 -5
- package/dist/docs/agent-solutions.js +2 -2
- package/dist/docs/catalog.d.ts +650 -0
- package/dist/docs/catalog.js +758 -0
- package/dist/docs/error-docs.d.ts +0 -2
- package/dist/docs/error-docs.js +189 -35
- package/dist/docs/index-build.d.ts +17 -0
- package/dist/docs/index-build.js +24 -0
- package/dist/docs/search.d.ts +54 -0
- package/dist/docs/search.js +96 -0
- package/dist/docs/skill-distribution.d.ts +5 -3
- package/dist/docs/skill-distribution.js +8 -8
- package/dist/slug-policy/blocklist.d.ts +4 -0
- package/dist/slug-policy/blocklist.js +122 -0
- package/dist/slug-policy/index.d.ts +17 -0
- package/dist/slug-policy/index.js +86 -0
- package/dist/utils/access-match.d.ts +39 -0
- package/dist/utils/access-match.js +296 -0
- package/dist/utils/auth-redirect.d.ts +3 -1
- package/dist/utils/auth-redirect.js +21 -1
- package/dist/utils/build-settings.d.ts +6 -0
- package/dist/utils/build-settings.js +429 -46
- package/dist/utils/claim-token.d.ts +8 -0
- package/dist/utils/claim-token.js +23 -2
- package/dist/utils/concurrency.d.ts +1 -0
- package/dist/utils/concurrency.js +22 -0
- package/dist/utils/content-type.d.ts +1 -0
- package/dist/utils/content-type.js +1 -1
- package/dist/utils/credential-policy.d.ts +54 -0
- package/dist/utils/{access-policy.js → credential-policy.js} +28 -2
- package/dist/utils/email.d.ts +1 -0
- package/dist/utils/email.js +3 -0
- package/dist/utils/gate-theme.d.ts +61 -0
- package/dist/utils/gate-theme.js +217 -0
- package/dist/utils/git-repository.d.ts +0 -1
- package/dist/utils/git-repository.js +0 -3
- package/dist/utils/id-hints.d.ts +8 -0
- package/dist/utils/id-hints.js +61 -0
- package/dist/utils/local-space-state.d.ts +91 -0
- package/dist/utils/local-space-state.js +251 -0
- package/dist/utils/oauth-signed-query.d.ts +8 -0
- package/dist/utils/oauth-signed-query.js +26 -0
- package/dist/utils/publish-detection.d.ts +0 -8
- package/dist/utils/publish-detection.js +0 -93
- package/dist/utils/publish-policy.d.ts +6 -5
- package/dist/utils/publish-policy.js +71 -7
- package/dist/utils/query-keys.d.ts +16 -4
- package/dist/utils/query-keys.js +31 -4
- package/dist/utils/runtime-paths.d.ts +0 -1
- package/dist/utils/runtime-paths.js +0 -1
- package/dist/utils/runtime-upload-batch.d.ts +18 -0
- package/dist/utils/runtime-upload-batch.js +90 -0
- package/dist/utils/runtime-upload.d.ts +2 -0
- package/dist/utils/runtime-upload.js +5 -0
- package/dist/utils/sf-config-v1.d.ts +2 -0
- package/dist/utils/sf-config-v1.js +542 -0
- package/dist/utils/space-config.d.ts +4 -0
- package/dist/utils/space-config.js +10 -1
- package/dist/utils/space-theme.d.ts +2 -0
- package/dist/utils/space-theme.js +9 -0
- package/dist/utils/static-runtime-policy.d.ts +0 -21
- package/dist/utils/static-runtime-policy.js +19 -103
- package/dist/utils/upload-session.d.ts +1 -1
- package/dist/utils/wpcom-auth-redirects.d.ts +32 -2
- package/dist/utils/wpcom-auth-redirects.js +26 -10
- package/dist/vocabulary.d.ts +130 -30
- package/dist/vocabulary.js +77 -36
- package/package.json +35 -1
- package/dist/contracts/account.d.ts +0 -28
- package/dist/contracts/account.js +0 -54
- package/dist/contracts/intercom.d.ts +0 -6
- package/dist/contracts/intercom.js +0 -5
- package/dist/contracts/telemetry.d.ts +0 -2
- package/dist/contracts/telemetry.js +0 -1
- package/dist/utils/access-policy.d.ts +0 -39
- package/dist/utils/error-display.d.ts +0 -7
- package/dist/utils/error-display.js +0 -42
|
@@ -5,14 +5,36 @@ export const DEFAULT_ERROR_CODE_META = {
|
|
|
5
5
|
};
|
|
6
6
|
export const ERROR_CODE_META = {
|
|
7
7
|
abuse_report_invalid_transition: { retryable: false, recovery: "fix_input" },
|
|
8
|
-
abuse_report_rate_limited: {
|
|
8
|
+
abuse_report_rate_limited: {
|
|
9
|
+
retryable: true,
|
|
10
|
+
recovery: "wait",
|
|
11
|
+
next: ["Retry after the Retry-After seconds"],
|
|
12
|
+
},
|
|
9
13
|
abuse_takedown: { retryable: false, recovery: "contact_support" },
|
|
10
14
|
access_denied: { retryable: false, recovery: "re_auth" },
|
|
11
15
|
account_suspended: { retryable: false, recovery: "contact_support" },
|
|
12
16
|
ambiguous_space_slug: { retryable: false, recovery: "fix_input" },
|
|
13
|
-
anonymous_expired: {
|
|
17
|
+
anonymous_expired: {
|
|
18
|
+
retryable: false,
|
|
19
|
+
recovery: "re_auth",
|
|
20
|
+
next: [
|
|
21
|
+
"sf publish",
|
|
22
|
+
"MCP: call publish",
|
|
23
|
+
"curl -sS -F archive=@site.zip https://api.spacefast.com/v1/publish",
|
|
24
|
+
],
|
|
25
|
+
},
|
|
14
26
|
anonymous_pool_unavailable: { retryable: true, recovery: "retry" },
|
|
15
|
-
anonymous_publish_rate_limited: {
|
|
27
|
+
anonymous_publish_rate_limited: {
|
|
28
|
+
retryable: true,
|
|
29
|
+
recovery: "wait",
|
|
30
|
+
next: ["Retry after the Retry-After seconds", "sf login", "sf publish"],
|
|
31
|
+
},
|
|
32
|
+
anonymous_space_limit_reached: {
|
|
33
|
+
retryable: false,
|
|
34
|
+
recovery: "re_auth",
|
|
35
|
+
next: ["sf login", "Claim or delete an existing anonymous space"],
|
|
36
|
+
},
|
|
37
|
+
api_key_scope_underivable: { retryable: false, recovery: "fix_input" },
|
|
16
38
|
archive_body_required: { retryable: false, recovery: "fix_input" },
|
|
17
39
|
archive_too_large: { retryable: false, recovery: "fix_input" },
|
|
18
40
|
auth_code_required: { retryable: false, recovery: "re_auth" },
|
|
@@ -44,15 +66,38 @@ export const ERROR_CODE_META = {
|
|
|
44
66
|
config_invalid: { retryable: false, recovery: "fix_input" },
|
|
45
67
|
config_meta_too_long: { retryable: false, recovery: "fix_input" },
|
|
46
68
|
config_templates_over_limit: { retryable: false, recovery: "fix_input" },
|
|
69
|
+
continuation_unavailable: {
|
|
70
|
+
retryable: false,
|
|
71
|
+
recovery: "re_auth",
|
|
72
|
+
next: [
|
|
73
|
+
"Ask the owner to create an access token",
|
|
74
|
+
"sf login",
|
|
75
|
+
"sf publish --token <access-token>",
|
|
76
|
+
],
|
|
77
|
+
},
|
|
78
|
+
continuation_used: {
|
|
79
|
+
retryable: false,
|
|
80
|
+
recovery: "re_auth",
|
|
81
|
+
next: [
|
|
82
|
+
"Use the saved access token",
|
|
83
|
+
"sf publish --token <access-token>",
|
|
84
|
+
"Ask the owner to create an access token",
|
|
85
|
+
],
|
|
86
|
+
},
|
|
47
87
|
credential_expired: { retryable: false, recovery: "re_auth" },
|
|
48
88
|
credential_not_yet_valid: { retryable: true, recovery: "wait" },
|
|
49
89
|
credential_retired: { retryable: false, recovery: "re_auth" },
|
|
50
90
|
credential_revoked: { retryable: false, recovery: "re_auth" },
|
|
51
91
|
csam_blocked: { retryable: false, recovery: "contact_support" },
|
|
52
92
|
csam_policy_floor: { retryable: false, recovery: "contact_support" },
|
|
93
|
+
datacenters_unavailable: { retryable: true, recovery: "retry" },
|
|
53
94
|
data_location_immutable: { retryable: false, recovery: "fix_input" },
|
|
54
95
|
device_authorization_failed: { retryable: false, recovery: "re_auth" },
|
|
55
|
-
device_verification_rate_limited: {
|
|
96
|
+
device_verification_rate_limited: {
|
|
97
|
+
retryable: true,
|
|
98
|
+
recovery: "wait",
|
|
99
|
+
next: ["Retry after the Retry-After seconds"],
|
|
100
|
+
},
|
|
56
101
|
dns_export_required: { retryable: false, recovery: "fix_input" },
|
|
57
102
|
dns_field_conflict: { retryable: false, recovery: "fix_input" },
|
|
58
103
|
dns_field_not_applicable: { retryable: false, recovery: "fix_input" },
|
|
@@ -73,7 +118,11 @@ export const ERROR_CODE_META = {
|
|
|
73
118
|
dns_provider_not_connected: { retryable: false, recovery: "re_auth" },
|
|
74
119
|
dns_provider_operation_failed: { retryable: true, recovery: "retry" },
|
|
75
120
|
dns_provider_permission_denied: { retryable: false, recovery: "re_auth" },
|
|
76
|
-
dns_provider_rate_limited: {
|
|
121
|
+
dns_provider_rate_limited: {
|
|
122
|
+
retryable: true,
|
|
123
|
+
recovery: "wait",
|
|
124
|
+
next: ["Retry after the Retry-After seconds", "sf domains check"],
|
|
125
|
+
},
|
|
77
126
|
dns_provider_replace_all_requires_fresh_plan: { retryable: false, recovery: "fix_input" },
|
|
78
127
|
dns_provider_replace_all_write_strategy: { retryable: false, recovery: "fix_input" },
|
|
79
128
|
dns_provider_snapshot_stale: { retryable: false, recovery: "fix_input" },
|
|
@@ -93,7 +142,11 @@ export const ERROR_CODE_META = {
|
|
|
93
142
|
domain_facet_not_applicable: { retryable: false, recovery: "fix_input" },
|
|
94
143
|
domain_hostname_site_mismatch: { retryable: false, recovery: "fix_input" },
|
|
95
144
|
domain_in_use: { retryable: false, recovery: "fix_input" },
|
|
96
|
-
domain_lookup_rate_limited: {
|
|
145
|
+
domain_lookup_rate_limited: {
|
|
146
|
+
retryable: true,
|
|
147
|
+
recovery: "wait",
|
|
148
|
+
next: ["Retry after the Retry-After seconds"],
|
|
149
|
+
},
|
|
97
150
|
domain_not_bound: { retryable: false, recovery: "fix_input" },
|
|
98
151
|
domain_quota_exceeded: { retryable: false, recovery: "fix_input" },
|
|
99
152
|
domain_registration_active: { retryable: false, recovery: "fix_input" },
|
|
@@ -104,8 +157,13 @@ export const ERROR_CODE_META = {
|
|
|
104
157
|
domain_wildcard_not_enabled: { retryable: false, recovery: "fix_input" },
|
|
105
158
|
download_required: { retryable: false, recovery: "fix_input" },
|
|
106
159
|
duplicate_version_path: { retryable: false, recovery: "fix_input" },
|
|
160
|
+
enforcement_policy_overlap: { retryable: false, recovery: "fix_input" },
|
|
107
161
|
event_payload_too_large: { retryable: false, recovery: "fix_input" },
|
|
108
|
-
event_rate_limited: {
|
|
162
|
+
event_rate_limited: {
|
|
163
|
+
retryable: true,
|
|
164
|
+
recovery: "wait",
|
|
165
|
+
next: ["Retry after the Retry-After seconds"],
|
|
166
|
+
},
|
|
109
167
|
expired_token: { retryable: false, recovery: "re_auth" },
|
|
110
168
|
export_archive_not_ready: { retryable: true, recovery: "wait" },
|
|
111
169
|
export_version_not_found: { retryable: false, recovery: "fix_input" },
|
|
@@ -160,6 +218,7 @@ export const ERROR_CODE_META = {
|
|
|
160
218
|
log_retention_clamped: { retryable: false, recovery: "fix_input" },
|
|
161
219
|
lost_domain_control: { retryable: false, recovery: "fix_input" },
|
|
162
220
|
malware_detected: { retryable: false, recovery: "contact_support" },
|
|
221
|
+
move_target_capacity_lost: { retryable: true, recovery: "retry" },
|
|
163
222
|
managed_domain_protected: { retryable: false, recovery: "fix_input" },
|
|
164
223
|
manifest_body_too_large: { retryable: false, recovery: "fix_input" },
|
|
165
224
|
manifest_duplicate_path: { retryable: false, recovery: "fix_input" },
|
|
@@ -175,6 +234,8 @@ export const ERROR_CODE_META = {
|
|
|
175
234
|
path_too_long: { retryable: false, recovery: "fix_input" },
|
|
176
235
|
plan_grant_already_active: { retryable: false, recovery: "fix_input" },
|
|
177
236
|
plan_grant_already_revoked: { retryable: false, recovery: "fix_input" },
|
|
237
|
+
placement_invalid_burstable: { retryable: false, recovery: "fix_input" },
|
|
238
|
+
placement_mode_requires_plan: { retryable: false, recovery: "fix_input" },
|
|
178
239
|
platform_tenant_immutable_client: { retryable: false, recovery: "fix_input" },
|
|
179
240
|
policy_exceeds_grantor: { retryable: false, recovery: "fix_input" },
|
|
180
241
|
principal_space_mismatch: { retryable: false, recovery: "fix_input" },
|
|
@@ -189,6 +250,7 @@ export const ERROR_CODE_META = {
|
|
|
189
250
|
publish_archive_expanded_size_exceeded: { retryable: false, recovery: "fix_input" },
|
|
190
251
|
publish_archive_file_count_exceeded: { retryable: false, recovery: "fix_input" },
|
|
191
252
|
publish_archive_too_large: { retryable: false, recovery: "fix_input" },
|
|
253
|
+
publish_base_changed: { retryable: false, recovery: "fix_input" },
|
|
192
254
|
publish_config_unsupported: { retryable: false, recovery: "fix_input" },
|
|
193
255
|
publish_failed: { retryable: false, recovery: "fix_input" },
|
|
194
256
|
publish_file_missing: { retryable: false, recovery: "fix_input" },
|
|
@@ -196,7 +258,11 @@ export const ERROR_CODE_META = {
|
|
|
196
258
|
publish_upload_failed: { retryable: true, recovery: "retry" },
|
|
197
259
|
publish_verification_failed: { retryable: true, recovery: "retry" },
|
|
198
260
|
queue_not_found: { retryable: false, recovery: "fix_input" },
|
|
199
|
-
rate_limited: {
|
|
261
|
+
rate_limited: {
|
|
262
|
+
retryable: true,
|
|
263
|
+
recovery: "wait",
|
|
264
|
+
next: ["Retry after the Retry-After seconds"],
|
|
265
|
+
},
|
|
200
266
|
registration_expired: { retryable: false, recovery: "fix_input" },
|
|
201
267
|
registration_expiring: { retryable: false, recovery: "fix_input" },
|
|
202
268
|
routing_rules_over_plan: { retryable: false, recovery: "fix_input" },
|
|
@@ -228,12 +294,33 @@ export const ERROR_CODE_META = {
|
|
|
228
294
|
site_not_static: { retryable: false, recovery: "fix_input" },
|
|
229
295
|
site_required: { retryable: false, recovery: "fix_input" },
|
|
230
296
|
site_suspended: { retryable: false, recovery: "contact_support" },
|
|
231
|
-
slow_down: {
|
|
232
|
-
|
|
297
|
+
slow_down: {
|
|
298
|
+
retryable: true,
|
|
299
|
+
recovery: "wait",
|
|
300
|
+
next: ["Retry after the Retry-After seconds"],
|
|
301
|
+
},
|
|
302
|
+
slug_invalid: { retryable: false, recovery: "fix_input" },
|
|
303
|
+
slug_reserved: { retryable: false, recovery: "fix_input" },
|
|
304
|
+
slug_unavailable: { retryable: false, recovery: "fix_input" },
|
|
305
|
+
space_already_claimed: {
|
|
306
|
+
retryable: false,
|
|
307
|
+
recovery: "fix_input",
|
|
308
|
+
next: ["sf login", "sf publish --space <space-id>", "Ask the owner to create an access token"],
|
|
309
|
+
},
|
|
233
310
|
space_claim_unavailable: { retryable: false, recovery: "fix_input" },
|
|
311
|
+
space_claimed_credential_available: {
|
|
312
|
+
retryable: false,
|
|
313
|
+
recovery: "re_auth",
|
|
314
|
+
next: [
|
|
315
|
+
"bash scripts/continue.sh",
|
|
316
|
+
"MCP: call continue_space",
|
|
317
|
+
"curl -sS -X POST -H 'Authorization: Bearer <claim-token>' https://api.spacefast.com/v1/anonymous-claim/exchange",
|
|
318
|
+
],
|
|
319
|
+
},
|
|
234
320
|
space_disabled: { retryable: false, recovery: "fix_input" },
|
|
235
321
|
space_expired: { retryable: false, recovery: "fix_input" },
|
|
236
322
|
space_has_active_version: { retryable: false, recovery: "fix_input" },
|
|
323
|
+
space_hostname_identity_missing: { retryable: false, recovery: "contact_support" },
|
|
237
324
|
space_import_archive_invalid: { retryable: false, recovery: "fix_input" },
|
|
238
325
|
space_import_archive_too_large: { retryable: false, recovery: "fix_input" },
|
|
239
326
|
space_import_config_only_archive: { retryable: false, recovery: "fix_input" },
|
|
@@ -250,11 +337,13 @@ export const ERROR_CODE_META = {
|
|
|
250
337
|
static_control_file_not_supported: { retryable: false, recovery: "fix_input" },
|
|
251
338
|
static_runtime_control_path_not_supported: { retryable: false, recovery: "fix_input" },
|
|
252
339
|
static_runtime_required: { retryable: false, recovery: "fix_input" },
|
|
340
|
+
storage_bucket_unavailable: { retryable: true, recovery: "retry" },
|
|
253
341
|
storage_quota_exceeded: { retryable: false, recovery: "fix_input" },
|
|
254
342
|
storage_usage_unavailable: { retryable: true, recovery: "retry" },
|
|
255
343
|
stripe_error: { retryable: true, recovery: "retry" },
|
|
256
344
|
superseded_by_publish: { retryable: false, recovery: "fix_input" },
|
|
257
345
|
takeover_notice_window: { retryable: true, recovery: "wait" },
|
|
346
|
+
team_member_quota_exceeded: { retryable: false, recovery: "fix_input" },
|
|
258
347
|
team_ref_required: { retryable: false, recovery: "fix_input" },
|
|
259
348
|
team_required: { retryable: false, recovery: "fix_input" },
|
|
260
349
|
team_slug_conflict: { retryable: false, recovery: "fix_input" },
|
|
@@ -271,8 +360,10 @@ export const ERROR_CODE_META = {
|
|
|
271
360
|
transfer_cross_tenant_unsupported: { retryable: false, recovery: "fix_input" },
|
|
272
361
|
transfer_move_failed: { retryable: true, recovery: "retry" },
|
|
273
362
|
transfer_not_cancelable: { retryable: false, recovery: "fix_input" },
|
|
363
|
+
transfer_push_failed: { retryable: true, recovery: "retry" },
|
|
274
364
|
transfer_source_changed: { retryable: false, recovery: "fix_input" },
|
|
275
365
|
transfer_target_same_as_source: { retryable: false, recovery: "fix_input" },
|
|
366
|
+
transfer_verify_failed: { retryable: true, recovery: "retry" },
|
|
276
367
|
unauthorized: { retryable: false, recovery: "re_auth" },
|
|
277
368
|
unsupported_publish_media_type: { retryable: false, recovery: "fix_input" },
|
|
278
369
|
upload_hash_mismatch: { retryable: false, recovery: "fix_input" },
|
|
@@ -316,11 +407,15 @@ export const ERROR_CODE_META = {
|
|
|
316
407
|
wp_cloud_site_still_assigned: { retryable: false, recovery: "fix_input" },
|
|
317
408
|
wp_cloud_team_shared_site_exists: { retryable: false, recovery: "fix_input" },
|
|
318
409
|
wp_cloud_webhook_secret_not_configured: { retryable: false, recovery: "contact_support" },
|
|
410
|
+
zero_activating: { retryable: true, recovery: "wait" },
|
|
411
|
+
zero_ai_unavailable: { retryable: false, recovery: "fix_input" },
|
|
319
412
|
zero_artifact_abi_mismatch: { retryable: false, recovery: "fix_input" },
|
|
320
413
|
zero_artifact_invalid: { retryable: false, recovery: "fix_input" },
|
|
321
414
|
zero_artifact_malformed: { retryable: false, recovery: "fix_input" },
|
|
415
|
+
zero_artifact_missing: { retryable: false, recovery: "fix_input" },
|
|
322
416
|
zero_artifact_path_invalid: { retryable: false, recovery: "fix_input" },
|
|
323
417
|
zero_artifact_unreadable: { retryable: false, recovery: "fix_input" },
|
|
418
|
+
zero_artifact_untrusted: { retryable: false, recovery: "fix_input" },
|
|
324
419
|
zero_auth_unavailable: { retryable: false, recovery: "fix_input" },
|
|
325
420
|
zero_blob_key_invalid: { retryable: false, recovery: "fix_input" },
|
|
326
421
|
zero_blob_store_full: { retryable: false, recovery: "fix_input" },
|
|
@@ -331,6 +426,7 @@ export const ERROR_CODE_META = {
|
|
|
331
426
|
zero_bytecode_invalid: { retryable: false, recovery: "fix_input" },
|
|
332
427
|
zero_bytecode_path_invalid: { retryable: false, recovery: "fix_input" },
|
|
333
428
|
zero_bytecode_unreadable: { retryable: false, recovery: "fix_input" },
|
|
429
|
+
zero_capabilities_encode_failed: { retryable: false, recovery: "fix_input" },
|
|
334
430
|
zero_client_bundle_not_loaded: { retryable: false, recovery: "fix_input" },
|
|
335
431
|
zero_db_connect_failed: { retryable: true, recovery: "retry" },
|
|
336
432
|
zero_db_execute_failed: { retryable: false, recovery: "fix_input" },
|
|
@@ -349,12 +445,19 @@ export const ERROR_CODE_META = {
|
|
|
349
445
|
zero_db_url_missing: { retryable: false, recovery: "fix_input" },
|
|
350
446
|
zero_dev_endpoint_failed: { retryable: false, recovery: "fix_input" },
|
|
351
447
|
zero_dump_query_invalid: { retryable: false, recovery: "fix_input" },
|
|
448
|
+
zero_endpoint_compile_failed: { retryable: false, recovery: "fix_input" },
|
|
449
|
+
zero_endpoint_conflict: { retryable: false, recovery: "fix_input" },
|
|
450
|
+
zero_endpoint_duplicate: { retryable: false, recovery: "fix_input" },
|
|
451
|
+
zero_endpoint_id_duplicate: { retryable: false, recovery: "fix_input" },
|
|
352
452
|
zero_endpoint_index_invalid: { retryable: false, recovery: "fix_input" },
|
|
353
453
|
zero_endpoint_index_malformed: { retryable: false, recovery: "fix_input" },
|
|
354
454
|
zero_endpoint_index_path_invalid: { retryable: false, recovery: "fix_input" },
|
|
355
455
|
zero_endpoint_index_unreadable: { retryable: false, recovery: "fix_input" },
|
|
456
|
+
zero_endpoint_invalid: { retryable: false, recovery: "fix_input" },
|
|
356
457
|
zero_endpoint_mismatch: { retryable: false, recovery: "fix_input" },
|
|
357
458
|
zero_endpoint_not_found: { retryable: false, recovery: "fix_input" },
|
|
459
|
+
zero_endpoints_invalid: { retryable: false, recovery: "fix_input" },
|
|
460
|
+
zero_endpoints_too_many: { retryable: false, recovery: "fix_input" },
|
|
358
461
|
zero_envelope_encode_failed: { retryable: true, recovery: "retry" },
|
|
359
462
|
zero_js_context_init_failed: { retryable: true, recovery: "retry" },
|
|
360
463
|
zero_js_execution_failed: { retryable: false, recovery: "fix_input" },
|
|
@@ -363,7 +466,9 @@ export const ERROR_CODE_META = {
|
|
|
363
466
|
zero_js_response_malformed: { retryable: false, recovery: "fix_input" },
|
|
364
467
|
zero_js_runtime_init_failed: { retryable: true, recovery: "retry" },
|
|
365
468
|
zero_log_query_invalid: { retryable: false, recovery: "fix_input" },
|
|
469
|
+
zero_lookup_invalid: { retryable: false, recovery: "fix_input" },
|
|
366
470
|
zero_method_not_allowed: { retryable: false, recovery: "fix_input" },
|
|
471
|
+
zero_migration_failed: { retryable: false, recovery: "fix_input" },
|
|
367
472
|
zero_query_name_missing: { retryable: false, recovery: "fix_input" },
|
|
368
473
|
zero_realtime_forbidden: { retryable: false, recovery: "re_auth" },
|
|
369
474
|
zero_realtime_message_invalid: { retryable: false, recovery: "fix_input" },
|
|
@@ -377,6 +482,11 @@ export const ERROR_CODE_META = {
|
|
|
377
482
|
zero_replay_unavailable: { retryable: false, recovery: "fix_input" },
|
|
378
483
|
zero_request_body_too_large: { retryable: false, recovery: "fix_input" },
|
|
379
484
|
zero_response_too_large: { retryable: false, recovery: "fix_input" },
|
|
485
|
+
zero_requires_dedicated_plan: { retryable: false, recovery: "fix_input" },
|
|
486
|
+
zero_routes_invalid: { retryable: false, recovery: "fix_input" },
|
|
487
|
+
zero_run_compile_failed: { retryable: false, recovery: "fix_input" },
|
|
488
|
+
zero_run_duplicate: { retryable: false, recovery: "fix_input" },
|
|
489
|
+
zero_run_invalid: { retryable: false, recovery: "fix_input" },
|
|
380
490
|
zero_run_operation_unsupported: { retryable: false, recovery: "fix_input" },
|
|
381
491
|
zero_runner_envelope_invalid: { retryable: false, recovery: "fix_input" },
|
|
382
492
|
zero_runner_failed: { retryable: false, recovery: "fix_input" },
|
|
@@ -388,6 +498,10 @@ export const ERROR_CODE_META = {
|
|
|
388
498
|
zero_runner_stdin_invalid: { retryable: true, recovery: "retry" },
|
|
389
499
|
zero_runner_stdin_too_large: { retryable: false, recovery: "fix_input" },
|
|
390
500
|
zero_runner_unavailable: { retryable: false, recovery: "fix_input" },
|
|
501
|
+
zero_runs_invalid: { retryable: false, recovery: "fix_input" },
|
|
502
|
+
zero_runs_require_runtime_compiler: { retryable: false, recovery: "fix_input" },
|
|
503
|
+
zero_runs_too_many: { retryable: false, recovery: "fix_input" },
|
|
504
|
+
zero_shopify_unavailable: { retryable: false, recovery: "fix_input" },
|
|
391
505
|
zero_source_compile_failed: { retryable: false, recovery: "fix_input" },
|
|
392
506
|
zero_source_hash_mismatch: { retryable: false, recovery: "fix_input" },
|
|
393
507
|
zero_source_invalid: { retryable: false, recovery: "fix_input" },
|
|
@@ -2,7 +2,7 @@ import { ERROR_DOCS_BASE_URL } from "../brand.js";
|
|
|
2
2
|
export { ERROR_DOCS_BASE_URL };
|
|
3
3
|
/** `docsUrl` derivation rule: docs origin + `/{code}`. Asserted by the conformance suite. */
|
|
4
4
|
export declare function errorDocsUrl(code: string): string;
|
|
5
|
-
export declare const ERROR_CODES: readonly ["abuse_report_invalid_transition", "abuse_report_rate_limited", "abuse_takedown", "access_denied", "account_suspended", "ambiguous_space_slug", "anonymous_expired", "anonymous_pool_unavailable", "anonymous_publish_rate_limited", "archive_body_required", "archive_too_large", "auth_code_required", "authorization_pending", "billing_receipt_invalid", "billing_receipt_not_bound_to_team", "billing_store_not_configured", "billing_subscription_conflict", "billing_unknown_product", "build_command_missing", "build_execution_unavailable", "build_failed", "build_install_failed", "build_no_index_html", "build_not_created", "build_oom", "build_output_dir_missing", "build_timeout", "cache_purge_domain_required", "cache_purge_path_required", "channel_name_reserved", "channel_pointer_moved", "channel_unsupported", "claim_blocked_takedown", "claim_target_not_found", "claimed_space_quota_exceeded", "cli_upgrade_required", "config_file_too_large", "config_invalid", "config_meta_too_long", "config_templates_over_limit", "credential_expired", "credential_not_yet_valid", "credential_retired", "credential_revoked", "csam_blocked", "csam_policy_floor", "data_location_immutable", "device_authorization_failed", "device_verification_rate_limited", "dns_export_required", "dns_field_conflict", "dns_field_not_applicable", "dns_import_partial_visibility", "dns_provider_auth_expired", "dns_provider_batch_unsupported", "dns_provider_change_pending", "dns_provider_conflict", "dns_provider_connection_in_use", "dns_provider_connection_unavailable", "dns_provider_controlled_desired_state", "dns_provider_credentials_expired", "dns_provider_feature_descriptors", "dns_provider_feature_unavailable", "dns_provider_field_unsupported", "dns_provider_future_authoritative_backend", "dns_provider_missing_permission", "dns_provider_not_connected", "dns_provider_operation_failed", "dns_provider_permission_denied", "dns_provider_rate_limited", "dns_provider_replace_all_requires_fresh_plan", "dns_provider_replace_all_write_strategy", "dns_provider_snapshot_stale", "dns_provider_snapshot_unavailable", "dns_provider_temporarily_unavailable", "dns_provider_timeout", "dns_provider_validation_failed", "dns_provider_workflow_templates", "dns_provider_zone_not_found", "dns_record_conflicts_with_managed", "dns_record_managed", "dns_record_not_found", "domain_already_exists", "domain_bound", "domain_facet_already_managed", "domain_facet_external", "domain_facet_not_applicable", "domain_hostname_site_mismatch", "domain_in_use", "domain_lookup_rate_limited", "domain_not_bound", "domain_quota_exceeded", "domain_registration_active", "domain_registration_not_renewable", "domain_reserved_suffix", "domain_transfer_active", "domain_wildcard_label", "domain_wildcard_not_enabled", "download_required", "duplicate_version_path", "event_payload_too_large", "event_rate_limited", "expired_token", "export_archive_not_ready", "export_version_not_found", "feature_unavailable", "files_mode_does_not_support_spa", "forbidden", "free_external_proxy_disabled", "free_headers_basic_auth_disabled", "idempotency_conflict_in_progress", "idempotency_key_reused", "immutable_version_requires_login", "import_archive_not_uploaded", "import_not_cancelable", "import_not_waiting_for_archive", "incumbent_controls_dns", "inject_invalid", "inject_snippet_too_large", "internal_error", "invalid_claim_token", "invalid_continuation_token", "invalid_data_location", "invalid_device_code", "invalid_domain", "invalid_domain_name", "invalid_file_path", "invalid_grant", "invalid_publish_archive", "invalid_publish_path", "invalid_publish_payload", "invalid_request", "invalid_runtime_event", "invalid_space", "invalid_space_mode", "invalid_user_code", "invalid_version_path", "invalid_webhook_events", "invalid_webhook_payload", "invalid_webhook_signature", "invalid_webhook_url", "invalid_zero_realtime_event", "invalid_zero_realtime_replay_query", "invitation_already_exists", "invitation_email_mismatch", "invitation_expired", "invitation_not_pending", "ip_blocked", "job_not_found", "job_not_promotable", "job_not_removable", "job_not_retryable", "last_owner", "log_retention_clamped", "lost_domain_control", "malware_detected", "managed_domain_protected", "manifest_body_too_large", "manifest_duplicate_path", "manifest_too_many_files", "member_already_exists", "missing_route_param", "nameserver_delegation_required", "nameserver_divergence", "noop_publish", "not_enrolled", "not_found", "path_case_collision", "path_too_long", "plan_grant_already_active", "plan_grant_already_revoked", "platform_tenant_immutable_client", "policy_exceeds_grantor", "principal_space_mismatch", "provider_error", "provider_job_failed", "provider_job_timeout", "provider_runtime_feature_unsupported", "provider_site_id_required", "proxy_upstream_denied", "proxy_upstream_unresolved", "publish_archive_compression_ratio_exceeded", "publish_archive_expanded_size_exceeded", "publish_archive_file_count_exceeded", "publish_archive_too_large", "publish_config_unsupported", "publish_failed", "publish_file_missing", "publish_setup_failed", "publish_upload_failed", "publish_verification_failed", "queue_not_found", "rate_limited", "registration_expired", "registration_expiring", "routing_rules_over_plan", "runtime_action_forbidden", "runtime_api_not_found", "runtime_callback_forbidden", "runtime_engine_zip_missing", "runtime_hostname_unassigned", "runtime_instance_mismatch", "runtime_jti_missing", "runtime_jti_replayed", "runtime_jwks_key_missing", "runtime_logs_unavailable", "runtime_management_unavailable", "runtime_not_provisioned", "runtime_operation_missing", "runtime_scope_forbidden", "runtime_token_bad_signature", "runtime_token_expired", "runtime_token_invalid", "runtime_unauthorized", "runtime_upload_operation_not_supported", "runtime_upload_required", "scan_pending", "secret_variable_in_template", "site_already_deleted", "site_capacity_exceeded", "site_has_live_spaces", "site_not_static", "site_required", "site_suspended", "slow_down", "space_already_claimed", "space_claim_unavailable", "space_disabled", "space_expired", "space_has_active_version", "space_import_archive_invalid", "space_import_archive_too_large", "space_import_config_only_archive", "space_import_runtime_schema_unsupported", "space_moving", "space_no_live_version", "space_not_disabled", "space_not_restorable", "space_ref_ambiguous", "space_ref_required", "space_transferring", "space_unclaimed", "ssl_renewal_blocked", "static_control_file_not_supported", "static_runtime_control_path_not_supported", "static_runtime_required", "storage_quota_exceeded", "storage_usage_unavailable", "stripe_error", "superseded_by_publish", "takeover_notice_window", "team_ref_required", "team_required", "team_slug_conflict", "template_file_too_large", "template_not_in_version", "template_variable_unresolved", "tenant_id_mismatch", "tenant_not_found", "tenant_not_granted", "tenant_past_due", "tenant_selection_required", "tenant_suspended", "theme_value_invalid", "transfer_cross_tenant_unsupported", "transfer_move_failed", "transfer_not_cancelable", "transfer_source_changed", "transfer_target_same_as_source", "unauthorized", "unsupported_publish_media_type", "upload_hash_mismatch", "upload_path_not_canonical", "upload_path_not_declared", "upload_session_cap_exceeded", "upload_size_mismatch", "user_banned", "validation_error", "variable_cascade_failed", "verification_required", "version_already_live", "version_artifact_not_found", "version_busy", "version_canceled", "version_closed", "version_expired", "version_failed", "version_file_count_exceeded", "version_file_not_found", "version_file_too_large", "version_files_missing", "version_in_use", "version_live", "version_no_publishable_files", "version_not_finalizable", "version_not_found", "version_not_prepared", "version_not_promotable", "version_not_ready", "version_quota_exceeded", "version_total_bytes_exceeded", "webhook_delivery_budget_exceeded", "whois_unavailable", "wp_cloud_anonymous_pool_required", "wp_cloud_assignment_kind_mismatch", "wp_cloud_assignment_space_mismatch", "wp_cloud_assignment_team_mismatch", "wp_cloud_client_in_use", "wp_cloud_client_not_found", "wp_cloud_site_still_assigned", "wp_cloud_team_shared_site_exists", "wp_cloud_webhook_secret_not_configured", "zero_artifact_abi_mismatch", "zero_artifact_invalid", "zero_artifact_malformed", "zero_artifact_path_invalid", "zero_artifact_unreadable", "zero_auth_unavailable", "zero_blob_key_invalid", "zero_blob_store_full", "zero_blob_too_large", "zero_blob_value_invalid", "zero_bootstrap_encode_failed", "zero_bytecode_hash_mismatch", "zero_bytecode_invalid", "zero_bytecode_path_invalid", "zero_bytecode_unreadable", "zero_client_bundle_not_loaded", "zero_db_connect_failed", "zero_db_execute_failed", "zero_db_host_install_failed", "zero_db_operation_invalid", "zero_db_operation_too_large", "zero_db_param_invalid", "zero_db_query_failed", "zero_db_row_invalid", "zero_db_sql_invalid", "zero_db_too_many_params", "zero_db_transaction_commit_failed", "zero_db_transaction_invalid", "zero_db_transaction_start_failed", "zero_db_url_invalid", "zero_db_url_missing", "zero_dev_endpoint_failed", "zero_dump_query_invalid", "zero_endpoint_index_invalid", "zero_endpoint_index_malformed", "zero_endpoint_index_path_invalid", "zero_endpoint_index_unreadable", "zero_endpoint_mismatch", "zero_endpoint_not_found", "zero_envelope_encode_failed", "zero_js_context_init_failed", "zero_js_execution_failed", "zero_js_execution_timeout", "zero_js_globals_failed", "zero_js_response_malformed", "zero_js_runtime_init_failed", "zero_log_query_invalid", "zero_method_not_allowed", "zero_query_name_missing", "zero_realtime_forbidden", "zero_realtime_message_invalid", "zero_realtime_operation_unsupported", "zero_realtime_query_invalid", "zero_realtime_space_required", "zero_realtime_unavailable", "zero_realtime_websocket_forbidden", "zero_replay_failed", "zero_replay_query_invalid", "zero_replay_unavailable", "zero_request_body_too_large", "zero_response_too_large", "zero_run_operation_unsupported", "zero_runner_envelope_invalid", "zero_runner_failed", "zero_runner_invalid_body", "zero_runner_invalid_response", "zero_runner_invalid_status", "zero_runner_protocol_unsupported", "zero_runner_response_encode_failed", "zero_runner_stdin_invalid", "zero_runner_stdin_too_large", "zero_runner_unavailable", "zero_source_compile_failed", "zero_source_hash_mismatch", "zero_source_invalid", "zero_source_path_invalid", "zero_source_unreadable"];
|
|
5
|
+
export declare const ERROR_CODES: readonly ["abuse_report_invalid_transition", "abuse_report_rate_limited", "abuse_takedown", "access_denied", "account_suspended", "ambiguous_space_slug", "anonymous_expired", "anonymous_pool_unavailable", "anonymous_publish_rate_limited", "anonymous_space_limit_reached", "api_key_scope_underivable", "archive_body_required", "archive_too_large", "auth_code_required", "authorization_pending", "billing_receipt_invalid", "billing_receipt_not_bound_to_team", "billing_store_not_configured", "billing_subscription_conflict", "billing_unknown_product", "build_command_missing", "build_execution_unavailable", "build_failed", "build_install_failed", "build_no_index_html", "build_not_created", "build_oom", "build_output_dir_missing", "build_timeout", "cache_purge_domain_required", "cache_purge_path_required", "channel_name_reserved", "channel_pointer_moved", "channel_unsupported", "claim_blocked_takedown", "claim_target_not_found", "claimed_space_quota_exceeded", "cli_upgrade_required", "config_file_too_large", "config_invalid", "config_meta_too_long", "config_templates_over_limit", "continuation_unavailable", "continuation_used", "credential_expired", "credential_not_yet_valid", "credential_retired", "credential_revoked", "csam_blocked", "csam_policy_floor", "data_location_immutable", "datacenters_unavailable", "device_authorization_failed", "device_verification_rate_limited", "dns_export_required", "dns_field_conflict", "dns_field_not_applicable", "dns_import_partial_visibility", "dns_provider_auth_expired", "dns_provider_batch_unsupported", "dns_provider_change_pending", "dns_provider_conflict", "dns_provider_connection_in_use", "dns_provider_connection_unavailable", "dns_provider_controlled_desired_state", "dns_provider_credentials_expired", "dns_provider_feature_descriptors", "dns_provider_feature_unavailable", "dns_provider_field_unsupported", "dns_provider_future_authoritative_backend", "dns_provider_missing_permission", "dns_provider_not_connected", "dns_provider_operation_failed", "dns_provider_permission_denied", "dns_provider_rate_limited", "dns_provider_replace_all_requires_fresh_plan", "dns_provider_replace_all_write_strategy", "dns_provider_snapshot_stale", "dns_provider_snapshot_unavailable", "dns_provider_temporarily_unavailable", "dns_provider_timeout", "dns_provider_validation_failed", "dns_provider_workflow_templates", "dns_provider_zone_not_found", "dns_record_conflicts_with_managed", "dns_record_managed", "dns_record_not_found", "domain_already_exists", "domain_bound", "domain_facet_already_managed", "domain_facet_external", "domain_facet_not_applicable", "domain_hostname_site_mismatch", "domain_in_use", "domain_lookup_rate_limited", "domain_not_bound", "domain_quota_exceeded", "domain_registration_active", "domain_registration_not_renewable", "domain_reserved_suffix", "domain_transfer_active", "domain_wildcard_label", "domain_wildcard_not_enabled", "download_required", "duplicate_version_path", "enforcement_policy_overlap", "event_payload_too_large", "event_rate_limited", "expired_token", "export_archive_not_ready", "export_version_not_found", "feature_unavailable", "files_mode_does_not_support_spa", "forbidden", "free_external_proxy_disabled", "free_headers_basic_auth_disabled", "idempotency_conflict_in_progress", "idempotency_key_reused", "immutable_version_requires_login", "import_archive_not_uploaded", "import_not_cancelable", "import_not_waiting_for_archive", "incumbent_controls_dns", "inject_invalid", "inject_snippet_too_large", "internal_error", "invalid_claim_token", "invalid_continuation_token", "invalid_data_location", "invalid_device_code", "invalid_domain", "invalid_domain_name", "invalid_file_path", "invalid_grant", "invalid_publish_archive", "invalid_publish_path", "invalid_publish_payload", "invalid_request", "invalid_runtime_event", "invalid_space", "invalid_space_mode", "invalid_user_code", "invalid_version_path", "invalid_webhook_events", "invalid_webhook_payload", "invalid_webhook_signature", "invalid_webhook_url", "invalid_zero_realtime_event", "invalid_zero_realtime_replay_query", "invitation_already_exists", "invitation_email_mismatch", "invitation_expired", "invitation_not_pending", "ip_blocked", "job_not_found", "job_not_promotable", "job_not_removable", "job_not_retryable", "last_owner", "log_retention_clamped", "lost_domain_control", "malware_detected", "managed_domain_protected", "manifest_body_too_large", "manifest_duplicate_path", "manifest_too_many_files", "member_already_exists", "missing_route_param", "move_target_capacity_lost", "nameserver_delegation_required", "nameserver_divergence", "noop_publish", "not_enrolled", "not_found", "path_case_collision", "path_too_long", "placement_invalid_burstable", "placement_mode_requires_plan", "plan_grant_already_active", "plan_grant_already_revoked", "platform_tenant_immutable_client", "policy_exceeds_grantor", "principal_space_mismatch", "provider_error", "provider_job_failed", "provider_job_timeout", "provider_runtime_feature_unsupported", "provider_site_id_required", "proxy_upstream_denied", "proxy_upstream_unresolved", "publish_archive_compression_ratio_exceeded", "publish_archive_expanded_size_exceeded", "publish_archive_file_count_exceeded", "publish_archive_too_large", "publish_base_changed", "publish_config_unsupported", "publish_failed", "publish_file_missing", "publish_setup_failed", "publish_upload_failed", "publish_verification_failed", "queue_not_found", "rate_limited", "registration_expired", "registration_expiring", "routing_rules_over_plan", "runtime_action_forbidden", "runtime_api_not_found", "runtime_callback_forbidden", "runtime_engine_zip_missing", "runtime_hostname_unassigned", "runtime_instance_mismatch", "runtime_jti_missing", "runtime_jti_replayed", "runtime_jwks_key_missing", "runtime_logs_unavailable", "runtime_management_unavailable", "runtime_not_provisioned", "runtime_operation_missing", "runtime_scope_forbidden", "runtime_token_bad_signature", "runtime_token_expired", "runtime_token_invalid", "runtime_unauthorized", "runtime_upload_operation_not_supported", "runtime_upload_required", "scan_pending", "secret_variable_in_template", "site_already_deleted", "site_capacity_exceeded", "site_has_live_spaces", "site_not_static", "site_required", "site_suspended", "slow_down", "slug_invalid", "slug_reserved", "slug_unavailable", "space_already_claimed", "space_claim_unavailable", "space_claimed_credential_available", "space_disabled", "space_expired", "space_has_active_version", "space_hostname_identity_missing", "space_import_archive_invalid", "space_import_archive_too_large", "space_import_config_only_archive", "space_import_runtime_schema_unsupported", "space_moving", "space_no_live_version", "space_not_disabled", "space_not_restorable", "space_ref_ambiguous", "space_ref_required", "space_transferring", "space_unclaimed", "ssl_renewal_blocked", "static_control_file_not_supported", "static_runtime_control_path_not_supported", "static_runtime_required", "storage_bucket_unavailable", "storage_quota_exceeded", "storage_usage_unavailable", "stripe_error", "superseded_by_publish", "takeover_notice_window", "team_member_quota_exceeded", "team_ref_required", "team_required", "team_slug_conflict", "template_file_too_large", "template_not_in_version", "template_variable_unresolved", "tenant_id_mismatch", "tenant_not_found", "tenant_not_granted", "tenant_past_due", "tenant_selection_required", "tenant_suspended", "theme_value_invalid", "transfer_cross_tenant_unsupported", "transfer_move_failed", "transfer_not_cancelable", "transfer_push_failed", "transfer_source_changed", "transfer_target_same_as_source", "transfer_verify_failed", "unauthorized", "unsupported_publish_media_type", "upload_hash_mismatch", "upload_path_not_canonical", "upload_path_not_declared", "upload_session_cap_exceeded", "upload_size_mismatch", "user_banned", "validation_error", "variable_cascade_failed", "verification_required", "version_already_live", "version_artifact_not_found", "version_busy", "version_canceled", "version_closed", "version_expired", "version_failed", "version_file_count_exceeded", "version_file_not_found", "version_file_too_large", "version_files_missing", "version_in_use", "version_live", "version_no_publishable_files", "version_not_finalizable", "version_not_found", "version_not_prepared", "version_not_promotable", "version_not_ready", "version_quota_exceeded", "version_total_bytes_exceeded", "webhook_delivery_budget_exceeded", "whois_unavailable", "wp_cloud_anonymous_pool_required", "wp_cloud_assignment_kind_mismatch", "wp_cloud_assignment_space_mismatch", "wp_cloud_assignment_team_mismatch", "wp_cloud_client_in_use", "wp_cloud_client_not_found", "wp_cloud_site_still_assigned", "wp_cloud_team_shared_site_exists", "wp_cloud_webhook_secret_not_configured", "zero_activating", "zero_ai_unavailable", "zero_artifact_abi_mismatch", "zero_artifact_invalid", "zero_artifact_malformed", "zero_artifact_missing", "zero_artifact_path_invalid", "zero_artifact_unreadable", "zero_artifact_untrusted", "zero_auth_unavailable", "zero_blob_key_invalid", "zero_blob_store_full", "zero_blob_too_large", "zero_blob_value_invalid", "zero_bootstrap_encode_failed", "zero_bytecode_hash_mismatch", "zero_bytecode_invalid", "zero_bytecode_path_invalid", "zero_bytecode_unreadable", "zero_capabilities_encode_failed", "zero_client_bundle_not_loaded", "zero_db_connect_failed", "zero_db_execute_failed", "zero_db_host_install_failed", "zero_db_operation_invalid", "zero_db_operation_too_large", "zero_db_param_invalid", "zero_db_query_failed", "zero_db_row_invalid", "zero_db_sql_invalid", "zero_db_too_many_params", "zero_db_transaction_commit_failed", "zero_db_transaction_invalid", "zero_db_transaction_start_failed", "zero_db_url_invalid", "zero_db_url_missing", "zero_dev_endpoint_failed", "zero_dump_query_invalid", "zero_endpoint_compile_failed", "zero_endpoint_conflict", "zero_endpoint_duplicate", "zero_endpoint_id_duplicate", "zero_endpoint_index_invalid", "zero_endpoint_index_malformed", "zero_endpoint_index_path_invalid", "zero_endpoint_index_unreadable", "zero_endpoint_invalid", "zero_endpoint_mismatch", "zero_endpoint_not_found", "zero_endpoints_invalid", "zero_endpoints_too_many", "zero_envelope_encode_failed", "zero_js_context_init_failed", "zero_js_execution_failed", "zero_js_execution_timeout", "zero_js_globals_failed", "zero_js_response_malformed", "zero_js_runtime_init_failed", "zero_log_query_invalid", "zero_lookup_invalid", "zero_method_not_allowed", "zero_migration_failed", "zero_query_name_missing", "zero_realtime_forbidden", "zero_realtime_message_invalid", "zero_realtime_operation_unsupported", "zero_realtime_query_invalid", "zero_realtime_space_required", "zero_realtime_unavailable", "zero_realtime_websocket_forbidden", "zero_replay_failed", "zero_replay_query_invalid", "zero_replay_unavailable", "zero_request_body_too_large", "zero_requires_dedicated_plan", "zero_response_too_large", "zero_routes_invalid", "zero_run_compile_failed", "zero_run_duplicate", "zero_run_invalid", "zero_run_operation_unsupported", "zero_runner_envelope_invalid", "zero_runner_failed", "zero_runner_invalid_body", "zero_runner_invalid_response", "zero_runner_invalid_status", "zero_runner_protocol_unsupported", "zero_runner_response_encode_failed", "zero_runner_stdin_invalid", "zero_runner_stdin_too_large", "zero_runner_unavailable", "zero_runs_invalid", "zero_runs_require_runtime_compiler", "zero_runs_too_many", "zero_shopify_unavailable", "zero_source_compile_failed", "zero_source_hash_mismatch", "zero_source_invalid", "zero_source_path_invalid", "zero_source_unreadable"];
|
|
6
6
|
export type ErrorCode = (typeof ERROR_CODES)[number];
|
|
7
7
|
export declare function isErrorCode(value: string): value is ErrorCode;
|
|
8
8
|
/**
|
|
@@ -24,6 +24,8 @@ export const ERROR_CODES = [
|
|
|
24
24
|
"anonymous_expired",
|
|
25
25
|
"anonymous_pool_unavailable",
|
|
26
26
|
"anonymous_publish_rate_limited",
|
|
27
|
+
"anonymous_space_limit_reached",
|
|
28
|
+
"api_key_scope_underivable",
|
|
27
29
|
"archive_body_required",
|
|
28
30
|
"archive_too_large",
|
|
29
31
|
"auth_code_required",
|
|
@@ -55,6 +57,8 @@ export const ERROR_CODES = [
|
|
|
55
57
|
"config_invalid",
|
|
56
58
|
"config_meta_too_long",
|
|
57
59
|
"config_templates_over_limit",
|
|
60
|
+
"continuation_unavailable",
|
|
61
|
+
"continuation_used",
|
|
58
62
|
"credential_expired",
|
|
59
63
|
"credential_not_yet_valid",
|
|
60
64
|
"credential_retired",
|
|
@@ -62,6 +66,7 @@ export const ERROR_CODES = [
|
|
|
62
66
|
"csam_blocked",
|
|
63
67
|
"csam_policy_floor",
|
|
64
68
|
"data_location_immutable",
|
|
69
|
+
"datacenters_unavailable",
|
|
65
70
|
"device_authorization_failed",
|
|
66
71
|
"device_verification_rate_limited",
|
|
67
72
|
"dns_export_required",
|
|
@@ -115,6 +120,7 @@ export const ERROR_CODES = [
|
|
|
115
120
|
"domain_wildcard_not_enabled",
|
|
116
121
|
"download_required",
|
|
117
122
|
"duplicate_version_path",
|
|
123
|
+
"enforcement_policy_overlap",
|
|
118
124
|
"event_payload_too_large",
|
|
119
125
|
"event_rate_limited",
|
|
120
126
|
"expired_token",
|
|
@@ -177,6 +183,7 @@ export const ERROR_CODES = [
|
|
|
177
183
|
"manifest_too_many_files",
|
|
178
184
|
"member_already_exists",
|
|
179
185
|
"missing_route_param",
|
|
186
|
+
"move_target_capacity_lost",
|
|
180
187
|
"nameserver_delegation_required",
|
|
181
188
|
"nameserver_divergence",
|
|
182
189
|
"noop_publish",
|
|
@@ -184,6 +191,8 @@ export const ERROR_CODES = [
|
|
|
184
191
|
"not_found",
|
|
185
192
|
"path_case_collision",
|
|
186
193
|
"path_too_long",
|
|
194
|
+
"placement_invalid_burstable",
|
|
195
|
+
"placement_mode_requires_plan",
|
|
187
196
|
"plan_grant_already_active",
|
|
188
197
|
"plan_grant_already_revoked",
|
|
189
198
|
"platform_tenant_immutable_client",
|
|
@@ -200,6 +209,7 @@ export const ERROR_CODES = [
|
|
|
200
209
|
"publish_archive_expanded_size_exceeded",
|
|
201
210
|
"publish_archive_file_count_exceeded",
|
|
202
211
|
"publish_archive_too_large",
|
|
212
|
+
"publish_base_changed",
|
|
203
213
|
"publish_config_unsupported",
|
|
204
214
|
"publish_failed",
|
|
205
215
|
"publish_file_missing",
|
|
@@ -240,11 +250,16 @@ export const ERROR_CODES = [
|
|
|
240
250
|
"site_required",
|
|
241
251
|
"site_suspended",
|
|
242
252
|
"slow_down",
|
|
253
|
+
"slug_invalid",
|
|
254
|
+
"slug_reserved",
|
|
255
|
+
"slug_unavailable",
|
|
243
256
|
"space_already_claimed",
|
|
244
257
|
"space_claim_unavailable",
|
|
258
|
+
"space_claimed_credential_available",
|
|
245
259
|
"space_disabled",
|
|
246
260
|
"space_expired",
|
|
247
261
|
"space_has_active_version",
|
|
262
|
+
"space_hostname_identity_missing",
|
|
248
263
|
"space_import_archive_invalid",
|
|
249
264
|
"space_import_archive_too_large",
|
|
250
265
|
"space_import_config_only_archive",
|
|
@@ -261,11 +276,13 @@ export const ERROR_CODES = [
|
|
|
261
276
|
"static_control_file_not_supported",
|
|
262
277
|
"static_runtime_control_path_not_supported",
|
|
263
278
|
"static_runtime_required",
|
|
279
|
+
"storage_bucket_unavailable",
|
|
264
280
|
"storage_quota_exceeded",
|
|
265
281
|
"storage_usage_unavailable",
|
|
266
282
|
"stripe_error",
|
|
267
283
|
"superseded_by_publish",
|
|
268
284
|
"takeover_notice_window",
|
|
285
|
+
"team_member_quota_exceeded",
|
|
269
286
|
"team_ref_required",
|
|
270
287
|
"team_required",
|
|
271
288
|
"team_slug_conflict",
|
|
@@ -282,8 +299,10 @@ export const ERROR_CODES = [
|
|
|
282
299
|
"transfer_cross_tenant_unsupported",
|
|
283
300
|
"transfer_move_failed",
|
|
284
301
|
"transfer_not_cancelable",
|
|
302
|
+
"transfer_push_failed",
|
|
285
303
|
"transfer_source_changed",
|
|
286
304
|
"transfer_target_same_as_source",
|
|
305
|
+
"transfer_verify_failed",
|
|
287
306
|
"unauthorized",
|
|
288
307
|
"unsupported_publish_media_type",
|
|
289
308
|
"upload_hash_mismatch",
|
|
@@ -327,11 +346,15 @@ export const ERROR_CODES = [
|
|
|
327
346
|
"wp_cloud_site_still_assigned",
|
|
328
347
|
"wp_cloud_team_shared_site_exists",
|
|
329
348
|
"wp_cloud_webhook_secret_not_configured",
|
|
349
|
+
"zero_activating",
|
|
350
|
+
"zero_ai_unavailable",
|
|
330
351
|
"zero_artifact_abi_mismatch",
|
|
331
352
|
"zero_artifact_invalid",
|
|
332
353
|
"zero_artifact_malformed",
|
|
354
|
+
"zero_artifact_missing",
|
|
333
355
|
"zero_artifact_path_invalid",
|
|
334
356
|
"zero_artifact_unreadable",
|
|
357
|
+
"zero_artifact_untrusted",
|
|
335
358
|
"zero_auth_unavailable",
|
|
336
359
|
"zero_blob_key_invalid",
|
|
337
360
|
"zero_blob_store_full",
|
|
@@ -342,6 +365,7 @@ export const ERROR_CODES = [
|
|
|
342
365
|
"zero_bytecode_invalid",
|
|
343
366
|
"zero_bytecode_path_invalid",
|
|
344
367
|
"zero_bytecode_unreadable",
|
|
368
|
+
"zero_capabilities_encode_failed",
|
|
345
369
|
"zero_client_bundle_not_loaded",
|
|
346
370
|
"zero_db_connect_failed",
|
|
347
371
|
"zero_db_execute_failed",
|
|
@@ -360,12 +384,19 @@ export const ERROR_CODES = [
|
|
|
360
384
|
"zero_db_url_missing",
|
|
361
385
|
"zero_dev_endpoint_failed",
|
|
362
386
|
"zero_dump_query_invalid",
|
|
387
|
+
"zero_endpoint_compile_failed",
|
|
388
|
+
"zero_endpoint_conflict",
|
|
389
|
+
"zero_endpoint_duplicate",
|
|
390
|
+
"zero_endpoint_id_duplicate",
|
|
363
391
|
"zero_endpoint_index_invalid",
|
|
364
392
|
"zero_endpoint_index_malformed",
|
|
365
393
|
"zero_endpoint_index_path_invalid",
|
|
366
394
|
"zero_endpoint_index_unreadable",
|
|
395
|
+
"zero_endpoint_invalid",
|
|
367
396
|
"zero_endpoint_mismatch",
|
|
368
397
|
"zero_endpoint_not_found",
|
|
398
|
+
"zero_endpoints_invalid",
|
|
399
|
+
"zero_endpoints_too_many",
|
|
369
400
|
"zero_envelope_encode_failed",
|
|
370
401
|
"zero_js_context_init_failed",
|
|
371
402
|
"zero_js_execution_failed",
|
|
@@ -374,7 +405,9 @@ export const ERROR_CODES = [
|
|
|
374
405
|
"zero_js_response_malformed",
|
|
375
406
|
"zero_js_runtime_init_failed",
|
|
376
407
|
"zero_log_query_invalid",
|
|
408
|
+
"zero_lookup_invalid",
|
|
377
409
|
"zero_method_not_allowed",
|
|
410
|
+
"zero_migration_failed",
|
|
378
411
|
"zero_query_name_missing",
|
|
379
412
|
"zero_realtime_forbidden",
|
|
380
413
|
"zero_realtime_message_invalid",
|
|
@@ -387,7 +420,12 @@ export const ERROR_CODES = [
|
|
|
387
420
|
"zero_replay_query_invalid",
|
|
388
421
|
"zero_replay_unavailable",
|
|
389
422
|
"zero_request_body_too_large",
|
|
423
|
+
"zero_requires_dedicated_plan",
|
|
390
424
|
"zero_response_too_large",
|
|
425
|
+
"zero_routes_invalid",
|
|
426
|
+
"zero_run_compile_failed",
|
|
427
|
+
"zero_run_duplicate",
|
|
428
|
+
"zero_run_invalid",
|
|
391
429
|
"zero_run_operation_unsupported",
|
|
392
430
|
"zero_runner_envelope_invalid",
|
|
393
431
|
"zero_runner_failed",
|
|
@@ -399,6 +437,10 @@ export const ERROR_CODES = [
|
|
|
399
437
|
"zero_runner_stdin_invalid",
|
|
400
438
|
"zero_runner_stdin_too_large",
|
|
401
439
|
"zero_runner_unavailable",
|
|
440
|
+
"zero_runs_invalid",
|
|
441
|
+
"zero_runs_require_runtime_compiler",
|
|
442
|
+
"zero_runs_too_many",
|
|
443
|
+
"zero_shopify_unavailable",
|
|
402
444
|
"zero_source_compile_failed",
|
|
403
445
|
"zero_source_hash_mismatch",
|
|
404
446
|
"zero_source_invalid",
|
|
@@ -249,8 +249,8 @@ export declare const EVENT_CATALOG: {
|
|
|
249
249
|
actors: "system"[];
|
|
250
250
|
properties: z.ZodObject<{
|
|
251
251
|
kind: z.ZodEnum<{
|
|
252
|
-
rate_limit: "rate_limit";
|
|
253
252
|
quota: "quota";
|
|
253
|
+
rate_limit: "rate_limit";
|
|
254
254
|
}>;
|
|
255
255
|
code: z.ZodString;
|
|
256
256
|
key_class: z.ZodNullable<z.ZodString>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const FEATURE_STAGES: readonly ["internal", "private_beta", "ga"];
|
|
2
|
+
export type FeatureStage = (typeof FEATURE_STAGES)[number];
|
|
3
|
+
export declare const FEATURE_ASSIGNMENT_SCOPES: readonly ["user", "team", "global"];
|
|
4
|
+
export type FeatureAssignmentScope = (typeof FEATURE_ASSIGNMENT_SCOPES)[number];
|
|
5
|
+
export declare const FEATURE_EXECUTION_ACTOR_POLICIES: readonly ["request_actor", "persisted_request_actor", "resource_team", "global_policy"];
|
|
6
|
+
export type FeatureExecutionActorPolicy = (typeof FEATURE_EXECUTION_ACTOR_POLICIES)[number];
|
|
7
|
+
export declare const FEATURE_OWNER_IDS: readonly ["team:access", "team:build-platform", "team:collaboration", "team:commerce", "team:domains", "team:publishing", "team:runtime", "team:spaces", "team:tag-manager", "team:zero"];
|
|
8
|
+
export type FeatureOwnerId = (typeof FEATURE_OWNER_IDS)[number];
|
|
9
|
+
export type FeatureRegistryEntry<K extends string = string, DependencyKey extends string = K> = {
|
|
10
|
+
readonly cohort: "launch";
|
|
11
|
+
readonly key: K;
|
|
12
|
+
readonly name: string;
|
|
13
|
+
readonly description: string;
|
|
14
|
+
readonly stage: FeatureStage;
|
|
15
|
+
readonly surface: boolean;
|
|
16
|
+
readonly defaultEnabled: boolean;
|
|
17
|
+
readonly assignmentScopes: readonly FeatureAssignmentScope[];
|
|
18
|
+
readonly docs: {
|
|
19
|
+
readonly channel: "public" | "handbook";
|
|
20
|
+
readonly slug: string;
|
|
21
|
+
readonly feedbackUrl: string | null;
|
|
22
|
+
} | null;
|
|
23
|
+
readonly owner: FeatureOwnerId;
|
|
24
|
+
readonly requires: readonly DependencyKey[];
|
|
25
|
+
readonly lifecycleAdoptedAt: string;
|
|
26
|
+
readonly reviewAfter: string | null;
|
|
27
|
+
readonly removeAfter: string | null;
|
|
28
|
+
readonly gaAt: string | null;
|
|
29
|
+
readonly allowedActorPolicies: readonly FeatureExecutionActorPolicy[];
|
|
30
|
+
readonly downRamp: {
|
|
31
|
+
readonly code: string;
|
|
32
|
+
readonly summary: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export declare function freezeFeatureRegistryEntry<K extends string, DependencyKey extends string>(definition: FeatureRegistryEntry<K, DependencyKey>): FeatureRegistryEntry<K, DependencyKey>;
|
|
36
|
+
export declare function validateFeatureLifecycleRegistry(registry: readonly FeatureRegistryEntry[]): readonly string[];
|