@spacefast/common 0.2.2 → 0.4.1
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/dist/agents/marketplace-prompts.d.ts +1 -0
- package/dist/agents/marketplace-prompts.js +6 -0
- package/dist/agents/registry/core.d.ts +4 -12
- package/dist/agents/registry/core.js +7 -28
- package/dist/config/domains.d.ts +10 -8
- package/dist/config/domains.js +4 -7
- package/dist/contracts/access-core.d.ts +135 -0
- package/dist/contracts/access-core.js +242 -0
- package/dist/contracts/access-profiles.d.ts +8 -8
- package/dist/contracts/access-profiles.js +8 -8
- package/dist/contracts/access.d.ts +14 -103
- package/dist/contracts/access.js +10 -210
- package/dist/contracts/activity.d.ts +54 -55
- package/dist/contracts/activity.js +38 -9
- package/dist/contracts/api-keys.d.ts +69 -26
- package/dist/contracts/api-keys.js +29 -2
- package/dist/contracts/application-journal.d.ts +197 -4
- package/dist/contracts/application-journal.js +97 -16
- package/dist/contracts/auth.d.ts +20 -0
- package/dist/contracts/auth.js +18 -0
- package/dist/contracts/beta.d.ts +13 -0
- package/dist/contracts/beta.js +28 -0
- package/dist/contracts/billing.d.ts +2 -2
- package/dist/contracts/bootstrap.d.ts +23 -6
- package/dist/contracts/builds.d.ts +18 -4
- package/dist/contracts/builds.js +7 -4
- package/dist/contracts/channels.d.ts +43 -0
- package/dist/contracts/channels.js +22 -6
- package/dist/contracts/comments.d.ts +49 -0
- package/dist/contracts/comments.js +61 -2
- package/dist/contracts/commerce.d.ts +19 -13
- package/dist/contracts/connector-access.d.ts +28 -0
- package/dist/contracts/connector-access.js +31 -0
- package/dist/contracts/connectors.d.ts +2382 -0
- package/dist/contracts/connectors.js +941 -0
- package/dist/contracts/content-contract-verification.d.ts +112 -58
- package/dist/contracts/content-contract-verification.js +42 -54
- package/dist/contracts/content-model-emit.d.ts +97 -0
- package/dist/contracts/content-model-emit.js +306 -0
- package/dist/contracts/content-model-sdk.d.ts +101 -0
- package/dist/contracts/content-model-sdk.js +232 -0
- package/dist/contracts/{content-program.d.ts → content-model.d.ts} +338 -82
- package/dist/contracts/{content-program.js → content-model.js} +291 -63
- package/dist/contracts/content-platform-fixture.d.ts +380 -110
- package/dist/contracts/content-platform-fixture.js +8 -8
- package/dist/contracts/content-sync.d.ts +197 -74
- package/dist/contracts/content-sync.js +98 -37
- package/dist/contracts/content.d.ts +30 -422
- package/dist/contracts/content.js +34 -294
- package/dist/contracts/dashboard-prefs.d.ts +10 -3
- package/dist/contracts/dashboard-prefs.js +6 -3
- package/dist/contracts/data-location.d.ts +9 -0
- package/dist/contracts/data-location.js +7 -0
- package/dist/contracts/deployment-comparison.d.ts +67 -0
- package/dist/contracts/deployment-comparison.js +68 -0
- package/dist/contracts/device-auth.d.ts +55 -11
- package/dist/contracts/domains.d.ts +40 -16
- package/dist/contracts/domains.js +23 -0
- package/dist/contracts/enums.d.ts +1 -10
- package/dist/contracts/enums.js +0 -15
- package/dist/contracts/error-code-meta.d.ts +384 -20
- package/dist/contracts/error-code-meta.js +200 -5
- package/dist/contracts/error-codes.d.ts +17 -4
- package/dist/contracts/error-codes.js +108 -10
- package/dist/contracts/events.d.ts +5 -0
- package/dist/contracts/events.js +12 -3
- package/dist/contracts/execution.d.ts +5 -1
- package/dist/contracts/execution.js +4 -0
- package/dist/contracts/feature-lifecycle.d.ts +53 -20
- package/dist/contracts/feature-lifecycle.js +65 -23
- package/dist/contracts/features.d.ts +57 -31
- package/dist/contracts/features.js +0 -1
- package/dist/contracts/feedback.d.ts +124 -0
- package/dist/contracts/feedback.js +64 -0
- package/dist/contracts/fixtures/content-model-sdk-v1.generated.d.ts +129 -0
- package/dist/contracts/fixtures/content-model-sdk-v1.generated.js +48 -0
- package/dist/contracts/fixtures/content-platform-v1.json +101 -49
- package/dist/contracts/frame-session.d.ts +60 -10
- package/dist/contracts/frame-session.js +52 -12
- package/dist/contracts/functions.d.ts +28 -2
- package/dist/contracts/functions.js +25 -2
- package/dist/contracts/grant-copy.d.ts +2 -0
- package/dist/contracts/grant-copy.js +2 -0
- package/dist/contracts/grants-core.d.ts +95 -0
- package/dist/contracts/grants-core.js +435 -0
- package/dist/contracts/grants.d.ts +13 -84
- package/dist/contracts/grants.js +21 -369
- package/dist/contracts/ids-core.d.ts +11 -0
- package/dist/contracts/ids-core.js +14 -0
- package/dist/contracts/ids.d.ts +7 -4
- package/dist/contracts/ids.js +12 -4
- package/dist/contracts/internal.d.ts +18 -0
- package/dist/contracts/internal.js +19 -0
- package/dist/contracts/mcp.d.ts +8 -18
- package/dist/contracts/mcp.js +2 -23
- package/dist/contracts/notifications.d.ts +4 -1
- package/dist/contracts/notifications.js +1 -0
- package/dist/contracts/oauth-resources.d.ts +46 -9
- package/dist/contracts/oauth-resources.js +50 -1
- package/dist/contracts/oauth-scope-actions.d.ts +27 -3
- package/dist/contracts/oauth-scope-actions.js +18 -8
- package/dist/contracts/operations.d.ts +1 -1
- package/dist/contracts/partner-account.d.ts +629 -0
- package/dist/contracts/partner-account.js +18 -0
- package/dist/contracts/principal-assertion.d.ts +74 -1
- package/dist/contracts/principal-assertion.js +67 -3
- package/dist/contracts/publish-archive.d.ts +22 -1
- package/dist/contracts/push-new.d.ts +3 -3
- package/dist/contracts/push-new.js +1 -1
- package/dist/contracts/quotas.js +2 -1
- package/dist/contracts/repository-connections.d.ts +10 -6
- package/dist/contracts/repository-connections.js +15 -0
- package/dist/contracts/resources.d.ts +6 -5
- package/dist/contracts/resources.js +7 -0
- package/dist/contracts/route-inventory.d.ts +74 -19
- package/dist/contracts/route-inventory.js +20 -6
- package/dist/contracts/runtime-api.d.ts +415 -4
- package/dist/contracts/runtime-api.js +60 -15
- package/dist/contracts/runtime-app.d.ts +6 -1
- package/dist/contracts/runtime-components.d.ts +646 -18
- package/dist/contracts/runtime-components.js +304 -188
- package/dist/contracts/runtime-services.d.ts +15 -0
- package/dist/contracts/runtime-services.js +25 -0
- package/dist/contracts/runtime-storage.d.ts +32 -0
- package/dist/contracts/runtime-storage.js +37 -0
- package/dist/contracts/source-workspaces.d.ts +511 -0
- package/dist/contracts/source-workspaces.js +276 -0
- package/dist/contracts/space-config-spacefast.d.ts +394 -0
- package/dist/contracts/space-config-spacefast.js +70 -0
- package/dist/contracts/space-config.d.ts +177 -90
- package/dist/contracts/space-config.js +77 -92
- package/dist/contracts/spaces.d.ts +132 -24
- package/dist/contracts/spaces.js +77 -13
- package/dist/contracts/superadmin-connectors.d.ts +371 -0
- package/dist/contracts/superadmin-connectors.js +61 -0
- package/dist/contracts/superadmin-emails.d.ts +1 -1
- package/dist/contracts/superadmin-emails.js +1 -1
- package/dist/contracts/superadmin-entities.d.ts +105 -0
- package/dist/contracts/superadmin-entities.js +64 -0
- package/dist/contracts/superadmin-runtime.d.ts +35 -116
- package/dist/contracts/superadmin-runtime.js +13 -69
- package/dist/contracts/superadmin-search.d.ts +12 -14
- package/dist/contracts/superadmin-search.js +2 -2
- package/dist/contracts/superadmin-spaces.d.ts +15 -72
- package/dist/contracts/superadmin-spaces.js +2 -7
- package/dist/contracts/superadmin-teams.d.ts +12 -0
- package/dist/contracts/superadmin-teams.js +7 -1
- package/dist/contracts/superadmin-tenants.d.ts +44 -16
- package/dist/contracts/superadmin.d.ts +2 -2
- package/dist/contracts/tags.d.ts +12 -12
- package/dist/contracts/teams.d.ts +29 -1
- package/dist/contracts/teams.js +24 -2
- package/dist/contracts/tenants.d.ts +98 -0
- package/dist/contracts/tenants.js +20 -0
- package/dist/contracts/transfers.d.ts +92 -0
- package/dist/contracts/transfers.js +37 -0
- package/dist/contracts/usage.d.ts +9 -1
- package/dist/contracts/usage.js +2 -0
- package/dist/contracts/visual-review.d.ts +448 -0
- package/dist/contracts/visual-review.js +156 -0
- package/dist/contracts/wordpress-php-toolkit.json +9 -0
- package/dist/contracts/work-mode.d.ts +24 -0
- package/dist/contracts/work-mode.js +17 -0
- package/dist/contracts/wp-cli.d.ts +66 -0
- package/dist/contracts/wp-cli.js +68 -0
- package/dist/contracts/zero-catalog.d.ts +29 -0
- package/dist/contracts/zero-catalog.js +55 -0
- package/dist/contracts/zero-platform-abilities.generated.d.ts +31 -0
- package/dist/contracts/zero-platform-abilities.generated.js +373 -0
- package/dist/contracts/zero-spacefast.d.ts +444 -0
- package/dist/contracts/zero-spacefast.js +149 -0
- package/dist/contracts/zero-types.d.ts +47 -0
- package/dist/contracts/zero-types.js +263 -0
- package/dist/contracts/zero.d.ts +781 -14
- package/dist/contracts/zero.js +204 -10
- package/dist/dashboard-paths/index.d.ts +2 -2
- package/dist/dashboard-paths/route-reservations.generated.d.ts +2 -2
- package/dist/dashboard-paths/route-reservations.generated.js +5 -0
- package/dist/docs/agent-prose.d.ts +1 -1
- package/dist/docs/agent-prose.js +15 -18
- package/dist/docs/agent-setup.d.ts +1 -1
- package/dist/docs/agent-setup.js +5 -13
- package/dist/docs/catalog.d.ts +64 -28
- package/dist/docs/catalog.js +155 -28
- package/dist/docs/error-docs.d.ts +361 -17
- package/dist/docs/error-docs.js +365 -21
- package/dist/docs/reference-urls.js +1 -1
- package/dist/docs/skills.d.ts +84 -84
- package/dist/docs/skills.js +66 -47
- package/dist/docs/start-prompts.d.ts +14 -0
- package/dist/docs/start-prompts.js +20 -0
- package/dist/utils/account-labels.d.ts +7 -0
- package/dist/utils/account-labels.js +15 -0
- package/dist/utils/auth.d.ts +1 -0
- package/dist/utils/auth.js +1 -0
- package/dist/utils/credential-policy.d.ts +22 -1
- package/dist/utils/credential-policy.js +55 -6
- package/dist/utils/local-space-state.d.ts +7 -0
- package/dist/utils/local-space-state.js +7 -0
- package/dist/utils/logger.d.ts +34 -0
- package/dist/utils/logger.js +144 -0
- package/dist/utils/page-routes.d.ts +9 -0
- package/dist/utils/page-routes.js +82 -0
- package/dist/utils/pages.d.ts +2 -0
- package/dist/utils/pages.js +7 -0
- package/dist/utils/publish-form-data.d.ts +2 -0
- package/dist/utils/publish-form-data.js +2 -0
- package/dist/utils/publish-policy-spacefast.d.ts +13 -0
- package/dist/utils/publish-policy-spacefast.js +117 -0
- package/dist/utils/publish-policy.d.ts +22 -16
- package/dist/utils/publish-policy.fixtures.json +15 -0
- package/dist/utils/publish-policy.js +62 -139
- package/dist/utils/query-client.js +9 -1
- package/dist/utils/runtime-upload.d.ts +4 -0
- package/dist/utils/runtime-upload.js +5 -0
- package/dist/utils/space-config.d.ts +2 -3
- package/dist/utils/space-config.js +1 -1
- package/dist/utils/uploaded-source.d.ts +4 -0
- package/dist/utils/uploaded-source.js +12 -0
- package/dist/visual-review.d.ts +4 -0
- package/dist/visual-review.js +208 -0
- package/dist/vocabulary.d.ts +38 -0
- package/dist/vocabulary.js +55 -0
- package/package.json +7 -2
- package/dist/agents/registry/deeplink-probes.d.ts +0 -23
- package/dist/agents/registry/deeplink-probes.js +0 -18
|
@@ -62,6 +62,7 @@ export const ERROR_CODE_META = {
|
|
|
62
62
|
build_timeout: { retryable: true, recovery: "retry" },
|
|
63
63
|
cache_purge_domain_required: { retryable: false, recovery: "fix_input" },
|
|
64
64
|
cache_purge_path_required: { retryable: false, recovery: "fix_input" },
|
|
65
|
+
catalog_unavailable: { retryable: true, recovery: "retry" },
|
|
65
66
|
channel_name_reserved: { retryable: false, recovery: "fix_input" },
|
|
66
67
|
channel_pointer_moved: { retryable: false, recovery: "fix_input" },
|
|
67
68
|
channel_unsupported: { retryable: false, recovery: "fix_input" },
|
|
@@ -90,6 +91,70 @@ export const ERROR_CODE_META = {
|
|
|
90
91
|
],
|
|
91
92
|
},
|
|
92
93
|
confirmation_token_required: { retryable: false, recovery: "fix_input" },
|
|
94
|
+
connection_ambiguous: {
|
|
95
|
+
retryable: false,
|
|
96
|
+
recovery: "fix_input",
|
|
97
|
+
next: [
|
|
98
|
+
"GET /v1/connectors/connections?connector=<slug> and pick one",
|
|
99
|
+
"Address the tool through that connection: <cxn_id>/<tool>",
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
connection_forbidden: {
|
|
103
|
+
retryable: false,
|
|
104
|
+
recovery: "re_auth",
|
|
105
|
+
next: [
|
|
106
|
+
"Re-authorize with connectors:execute",
|
|
107
|
+
"Ask the connection's owner to share it with the team",
|
|
108
|
+
],
|
|
109
|
+
},
|
|
110
|
+
connection_serving_not_granted: { retryable: false, recovery: "fix_input" },
|
|
111
|
+
owner_binding_requires_private_space: { retryable: false, recovery: "fix_input" },
|
|
112
|
+
visitor_role_not_bindable: { retryable: false, recovery: "fix_input" },
|
|
113
|
+
connector_role_unknown: { retryable: false, recovery: "fix_input" },
|
|
114
|
+
connector_serving_admin_only: { retryable: false, recovery: "fix_input" },
|
|
115
|
+
connector_serving_not_allowlisted: { retryable: false, recovery: "fix_input" },
|
|
116
|
+
connector_write_in_read_handler: { retryable: false, recovery: "fix_input" },
|
|
117
|
+
connection_needs_reauth: {
|
|
118
|
+
retryable: false,
|
|
119
|
+
recovery: "re_auth",
|
|
120
|
+
next: [
|
|
121
|
+
"POST /v1/connectors/connections to reconnect — credentials are immutable, so reconnect rather than edit",
|
|
122
|
+
],
|
|
123
|
+
},
|
|
124
|
+
connection_not_found: { retryable: false, recovery: "fix_input" },
|
|
125
|
+
connection_revoked: {
|
|
126
|
+
retryable: false,
|
|
127
|
+
recovery: "re_auth",
|
|
128
|
+
next: ["POST /v1/connectors/connections to connect it again"],
|
|
129
|
+
},
|
|
130
|
+
connector_approval_required: {
|
|
131
|
+
retryable: false,
|
|
132
|
+
recovery: "wait",
|
|
133
|
+
next: [
|
|
134
|
+
"Open the `approvalUrl` in the error details so a person can approve or deny it",
|
|
135
|
+
"GET /v1/connectors/runs/{id} until it leaves awaiting_approval",
|
|
136
|
+
],
|
|
137
|
+
},
|
|
138
|
+
connector_first_party_immutable: { retryable: false, recovery: "fix_input" },
|
|
139
|
+
connector_not_found: { retryable: false, recovery: "fix_input" },
|
|
140
|
+
connector_run_budget_exhausted: { retryable: true, recovery: "wait" },
|
|
141
|
+
connector_run_not_found: { retryable: false, recovery: "fix_input" },
|
|
142
|
+
connector_run_not_resumable: {
|
|
143
|
+
retryable: false,
|
|
144
|
+
recovery: "fix_input",
|
|
145
|
+
next: ["POST /v1/connectors/runs to run it again — a settled or expired run cannot be resumed"],
|
|
146
|
+
},
|
|
147
|
+
connector_slug_taken: { retryable: false, recovery: "fix_input" },
|
|
148
|
+
connector_source_blocked: { retryable: false, recovery: "fix_input" },
|
|
149
|
+
connector_source_unreachable: { retryable: true, recovery: "retry" },
|
|
150
|
+
connector_tool_blocked: {
|
|
151
|
+
retryable: false,
|
|
152
|
+
recovery: "fix_input",
|
|
153
|
+
next: [
|
|
154
|
+
"GET /v1/connectors/policies/resolve?address=<address> to see which rule blocked it",
|
|
155
|
+
"Ask a team admin to change the rule, or call a tool that is not blocked",
|
|
156
|
+
],
|
|
157
|
+
},
|
|
93
158
|
continuation_unavailable: {
|
|
94
159
|
retryable: false,
|
|
95
160
|
recovery: "re_auth",
|
|
@@ -132,6 +197,11 @@ export const ERROR_CODE_META = {
|
|
|
132
197
|
recovery: "wait",
|
|
133
198
|
next: ["Retry after the Retry-After seconds"],
|
|
134
199
|
},
|
|
200
|
+
dns_control_observation_indeterminate: {
|
|
201
|
+
retryable: true,
|
|
202
|
+
recovery: "wait",
|
|
203
|
+
next: ["Wait briefly, then check the domain again"],
|
|
204
|
+
},
|
|
135
205
|
dns_export_required: { retryable: false, recovery: "fix_input" },
|
|
136
206
|
dns_field_conflict: { retryable: false, recovery: "fix_input" },
|
|
137
207
|
dns_field_not_applicable: { retryable: false, recovery: "fix_input" },
|
|
@@ -174,7 +244,6 @@ export const ERROR_CODE_META = {
|
|
|
174
244
|
domain_facet_already_managed: { retryable: false, recovery: "fix_input" },
|
|
175
245
|
domain_facet_external: { retryable: false, recovery: "fix_input" },
|
|
176
246
|
domain_facet_not_applicable: { retryable: false, recovery: "fix_input" },
|
|
177
|
-
domain_hostname_site_mismatch: { retryable: false, recovery: "fix_input" },
|
|
178
247
|
domain_in_use: { retryable: false, recovery: "fix_input" },
|
|
179
248
|
domain_lookup_rate_limited: {
|
|
180
249
|
retryable: true,
|
|
@@ -191,7 +260,17 @@ export const ERROR_CODE_META = {
|
|
|
191
260
|
domain_wildcard_not_enabled: { retryable: false, recovery: "fix_input" },
|
|
192
261
|
download_required: { retryable: false, recovery: "fix_input" },
|
|
193
262
|
duplicate_version_path: { retryable: false, recovery: "fix_input" },
|
|
263
|
+
elevation_denied: { retryable: false, recovery: "contact_support" },
|
|
194
264
|
elevation_not_required: { retryable: false, recovery: "fix_input" },
|
|
265
|
+
elevation_required: {
|
|
266
|
+
retryable: false,
|
|
267
|
+
recovery: "wait",
|
|
268
|
+
next: [
|
|
269
|
+
"Open the `url` in the error details so a person can approve or deny temporary access",
|
|
270
|
+
"POST the `continuationToken` to /v1/actions/resume every 5 seconds",
|
|
271
|
+
"After approval, retry the original operation",
|
|
272
|
+
],
|
|
273
|
+
},
|
|
195
274
|
email_already_claimed: { retryable: false, recovery: "fix_input" },
|
|
196
275
|
email_verification_code_invalid: { retryable: false, recovery: "fix_input" },
|
|
197
276
|
enforcement_policy_overlap: { retryable: false, recovery: "fix_input" },
|
|
@@ -205,7 +284,28 @@ export const ERROR_CODE_META = {
|
|
|
205
284
|
feature_unavailable: { retryable: false, recovery: "fix_input" },
|
|
206
285
|
files_mode_does_not_support_spa: { retryable: false, recovery: "fix_input" },
|
|
207
286
|
forbidden: { retryable: false, recovery: "re_auth" },
|
|
287
|
+
frame_link_inactive: { retryable: false, recovery: "re_auth" },
|
|
288
|
+
frame_path_outside_link_resources: { retryable: false, recovery: "fix_input" },
|
|
289
|
+
frame_principal_required: { retryable: false, recovery: "re_auth" },
|
|
290
|
+
frame_session_invalid: { retryable: false, recovery: "re_auth" },
|
|
291
|
+
frame_session_stale: { retryable: false, recovery: "re_auth" },
|
|
292
|
+
frame_session_target_changed: { retryable: false, recovery: "re_auth" },
|
|
293
|
+
frame_target_fixed: { retryable: false, recovery: "fix_input" },
|
|
294
|
+
frame_version_required: { retryable: false, recovery: "fix_input" },
|
|
208
295
|
free_external_proxy_disabled: { retryable: false, recovery: "fix_input" },
|
|
296
|
+
hostname_contested: {
|
|
297
|
+
retryable: false,
|
|
298
|
+
recovery: "fix_input",
|
|
299
|
+
next: ["Publish under a different slug, or free the hostname at the provider"],
|
|
300
|
+
},
|
|
301
|
+
human_approval_required: {
|
|
302
|
+
retryable: false,
|
|
303
|
+
recovery: "wait",
|
|
304
|
+
next: [
|
|
305
|
+
"Open the `approvalUrl` in the error details — this run was parked for a person, and no agent decision will settle it",
|
|
306
|
+
"GET /v1/connectors/runs/{id} until it leaves awaiting_approval",
|
|
307
|
+
],
|
|
308
|
+
},
|
|
209
309
|
idempotency_conflict_in_progress: { retryable: true, recovery: "wait" },
|
|
210
310
|
idempotency_key_reused: { retryable: false, recovery: "fix_input" },
|
|
211
311
|
incumbent_controls_dns: { retryable: false, recovery: "fix_input" },
|
|
@@ -253,6 +353,9 @@ export const ERROR_CODE_META = {
|
|
|
253
353
|
issuer_proof_invalid: { retryable: false, recovery: "fix_input" },
|
|
254
354
|
issuer_tenant_occupied: { retryable: false, recovery: "fix_input" },
|
|
255
355
|
issuer_unknown: { retryable: false, recovery: "re_auth" },
|
|
356
|
+
jetpack_licensing_rejected: { retryable: false, recovery: "contact_support" },
|
|
357
|
+
jetpack_licensing_response_invalid: { retryable: true, recovery: "retry" },
|
|
358
|
+
jetpack_licensing_unavailable: { retryable: true, recovery: "retry" },
|
|
256
359
|
job_not_found: { retryable: false, recovery: "fix_input" },
|
|
257
360
|
job_not_promotable: { retryable: false, recovery: "fix_input" },
|
|
258
361
|
job_not_removable: { retryable: true, recovery: "wait" },
|
|
@@ -260,6 +363,14 @@ export const ERROR_CODE_META = {
|
|
|
260
363
|
last_owner: { retryable: false, recovery: "fix_input" },
|
|
261
364
|
log_retention_clamped: { retryable: false, recovery: "fix_input" },
|
|
262
365
|
lost_domain_control: { retryable: false, recovery: "fix_input" },
|
|
366
|
+
malformed_policy_pattern: { retryable: false, recovery: "fix_input" },
|
|
367
|
+
malformed_tool_address: {
|
|
368
|
+
retryable: false,
|
|
369
|
+
recovery: "fix_input",
|
|
370
|
+
next: [
|
|
371
|
+
"Tool addresses are `<connectionId>/<tool>` — copy one from GET /v1/connectors/connections/{id}/tools",
|
|
372
|
+
],
|
|
373
|
+
},
|
|
263
374
|
malware_detected: { retryable: false, recovery: "contact_support" },
|
|
264
375
|
move_target_capacity_lost: { retryable: true, recovery: "retry" },
|
|
265
376
|
managed_domain_protected: { retryable: false, recovery: "fix_input" },
|
|
@@ -277,6 +388,7 @@ export const ERROR_CODE_META = {
|
|
|
277
388
|
name_managed_by_config: { retryable: false, recovery: "fix_input" },
|
|
278
389
|
nameserver_delegation_required: { retryable: false, recovery: "fix_input" },
|
|
279
390
|
nameserver_divergence: { retryable: false, recovery: "fix_input" },
|
|
391
|
+
next_package_layout_unsupported: { retryable: false, recovery: "fix_input" },
|
|
280
392
|
next_version_unsupported: { retryable: false, recovery: "fix_input" },
|
|
281
393
|
no_space_selected: { retryable: false, recovery: "fix_input" },
|
|
282
394
|
noop_publish: { retryable: false, recovery: "fix_input" },
|
|
@@ -291,7 +403,6 @@ export const ERROR_CODE_META = {
|
|
|
291
403
|
plan_grant_already_active: { retryable: false, recovery: "fix_input" },
|
|
292
404
|
plan_grant_already_revoked: { retryable: false, recovery: "fix_input" },
|
|
293
405
|
plan_unknown: { retryable: false, recovery: "fix_input" },
|
|
294
|
-
placement_invalid_burstable: { retryable: false, recovery: "fix_input" },
|
|
295
406
|
policy_exceeds_grantor: { retryable: false, recovery: "fix_input" },
|
|
296
407
|
prebuilt_metadata_invalid: {
|
|
297
408
|
retryable: false,
|
|
@@ -350,13 +461,20 @@ export const ERROR_CODE_META = {
|
|
|
350
461
|
recovery: "wait",
|
|
351
462
|
next: ["Retry after the Retry-After seconds"],
|
|
352
463
|
},
|
|
464
|
+
realtime_cursor_expired: { retryable: false, recovery: "fix_input" },
|
|
353
465
|
registration_expired: { retryable: false, recovery: "fix_input" },
|
|
354
466
|
registration_expiring: { retryable: false, recovery: "fix_input" },
|
|
467
|
+
repository_ref_not_found: { retryable: false, recovery: "fix_input" },
|
|
468
|
+
// Retryable only after the caller has re-read the branch: the same request
|
|
469
|
+
// sent again fails the same way, so this is "rebuild", not "wait".
|
|
470
|
+
repository_stale_base: { retryable: false, recovery: "fix_input" },
|
|
355
471
|
resource_revision_changed: { retryable: false, recovery: "fix_input" },
|
|
356
472
|
routing_rules_over_plan: { retryable: false, recovery: "fix_input" },
|
|
473
|
+
run_replay_diverged: { retryable: true, recovery: "retry" },
|
|
357
474
|
runtime_action_forbidden: { retryable: false, recovery: "re_auth" },
|
|
358
475
|
runtime_api_not_found: { retryable: false, recovery: "fix_input" },
|
|
359
476
|
runtime_callback_forbidden: { retryable: false, recovery: "re_auth" },
|
|
477
|
+
runtime_capabilities_pending: { retryable: true, recovery: "wait" },
|
|
360
478
|
runtime_dev_unsupported: { retryable: false, recovery: "fix_input" },
|
|
361
479
|
runtime_hostname_unassigned: { retryable: false, recovery: "fix_input" },
|
|
362
480
|
runtime_instance_mismatch: { retryable: false, recovery: "fix_input" },
|
|
@@ -389,8 +507,6 @@ export const ERROR_CODE_META = {
|
|
|
389
507
|
service_signature_invalid: { retryable: false, recovery: "re_auth" },
|
|
390
508
|
session_not_fresh: { retryable: false, recovery: "re_auth" },
|
|
391
509
|
site_already_deleted: { retryable: false, recovery: "fix_input" },
|
|
392
|
-
site_has_live_spaces: { retryable: false, recovery: "fix_input" },
|
|
393
|
-
site_not_static: { retryable: false, recovery: "fix_input" },
|
|
394
510
|
site_required: { retryable: false, recovery: "fix_input" },
|
|
395
511
|
site_suspended: { retryable: false, recovery: "contact_support" },
|
|
396
512
|
slow_down: {
|
|
@@ -404,6 +520,77 @@ export const ERROR_CODE_META = {
|
|
|
404
520
|
source_archive_decompression_timeout: { retryable: true, recovery: "retry" },
|
|
405
521
|
source_archive_expansion_ratio_exceeded: { retryable: false, recovery: "fix_input" },
|
|
406
522
|
source_archive_validation_busy: { retryable: true, recovery: "wait" },
|
|
523
|
+
source_branch_changed: {
|
|
524
|
+
retryable: false,
|
|
525
|
+
recovery: "fix_input",
|
|
526
|
+
next: ["Sync the source workspace, then read its current revision."],
|
|
527
|
+
},
|
|
528
|
+
source_branch_missing: { retryable: false, recovery: "fix_input" },
|
|
529
|
+
source_commit_not_saved: { retryable: false, recovery: "fix_input" },
|
|
530
|
+
source_conflict_content_unavailable: { retryable: true, recovery: "retry" },
|
|
531
|
+
source_conflicts_missing: { retryable: false, recovery: "fix_input" },
|
|
532
|
+
source_exact_diff_unsupported: {
|
|
533
|
+
retryable: false,
|
|
534
|
+
recovery: "contact_support",
|
|
535
|
+
next: [
|
|
536
|
+
"The provider cannot compare these exact snapshots. Do not change the requested base or retry the same comparison.",
|
|
537
|
+
],
|
|
538
|
+
},
|
|
539
|
+
source_file_incomplete: { retryable: true, recovery: "retry" },
|
|
540
|
+
source_file_mode_unavailable: { retryable: false, recovery: "fix_input" },
|
|
541
|
+
source_file_required: { retryable: false, recovery: "fix_input" },
|
|
542
|
+
source_file_too_large: { retryable: false, recovery: "fix_input" },
|
|
543
|
+
source_file_unavailable: { retryable: true, recovery: "retry" },
|
|
544
|
+
source_files_too_large: { retryable: false, recovery: "fix_input" },
|
|
545
|
+
source_hunk_selection_invalid: { retryable: false, recovery: "fix_input" },
|
|
546
|
+
source_hunk_stale: {
|
|
547
|
+
retryable: false,
|
|
548
|
+
recovery: "fix_input",
|
|
549
|
+
next: ["Read the current source diff and use its hunk IDs."],
|
|
550
|
+
},
|
|
551
|
+
source_merge_snapshot_changed: { retryable: true, recovery: "retry" },
|
|
552
|
+
source_merge_undo_unsupported: { retryable: false, recovery: "fix_input" },
|
|
553
|
+
source_nothing_staged: { retryable: false, recovery: "fix_input" },
|
|
554
|
+
source_operation_pending: {
|
|
555
|
+
retryable: true,
|
|
556
|
+
recovery: "retry",
|
|
557
|
+
next: ["Retry the pending operation with the same operation ID and input."],
|
|
558
|
+
},
|
|
559
|
+
source_operation_reused: { retryable: false, recovery: "fix_input" },
|
|
560
|
+
source_operation_superseded: { retryable: false, recovery: "fix_input" },
|
|
561
|
+
source_operation_unreconciled: {
|
|
562
|
+
retryable: true,
|
|
563
|
+
recovery: "retry",
|
|
564
|
+
next: ["Retry the pending operation. Do not start another write."],
|
|
565
|
+
},
|
|
566
|
+
source_patch_unavailable: { retryable: false, recovery: "fix_input" },
|
|
567
|
+
source_resolution_invalid: { retryable: false, recovery: "fix_input" },
|
|
568
|
+
source_resolution_pending: { retryable: true, recovery: "retry" },
|
|
569
|
+
source_selection_invalid: { retryable: false, recovery: "fix_input" },
|
|
570
|
+
source_snapshot_changed: { retryable: true, recovery: "retry" },
|
|
571
|
+
source_tree_too_large: { retryable: false, recovery: "fix_input" },
|
|
572
|
+
source_workspace_closed: { retryable: false, recovery: "fix_input" },
|
|
573
|
+
source_workspace_connection_changed: { retryable: false, recovery: "fix_input" },
|
|
574
|
+
source_workspace_connection_in_use: {
|
|
575
|
+
retryable: false,
|
|
576
|
+
recovery: "fix_input",
|
|
577
|
+
next: ["Close each open source workspace. Then retry the repository connection change."],
|
|
578
|
+
},
|
|
579
|
+
source_workspace_dirty: { retryable: false, recovery: "fix_input" },
|
|
580
|
+
source_workspace_initializing: { retryable: true, recovery: "retry" },
|
|
581
|
+
source_workspace_ref_reserved: { retryable: false, recovery: "fix_input" },
|
|
582
|
+
source_workspace_revision_conflict: {
|
|
583
|
+
retryable: false,
|
|
584
|
+
recovery: "fix_input",
|
|
585
|
+
next: ["Read the source workspace status and diff. Use the new revision."],
|
|
586
|
+
},
|
|
587
|
+
source_workspaces_unavailable: {
|
|
588
|
+
retryable: false,
|
|
589
|
+
recovery: "contact_support",
|
|
590
|
+
next: [
|
|
591
|
+
"Source workspaces require native exact snapshot comparisons. Contact support before retrying mutations.",
|
|
592
|
+
],
|
|
593
|
+
},
|
|
407
594
|
space_already_claimed: {
|
|
408
595
|
retryable: false,
|
|
409
596
|
recovery: "fix_input",
|
|
@@ -519,16 +706,23 @@ export const ERROR_CODE_META = {
|
|
|
519
706
|
version_not_ready: { retryable: true, recovery: "wait" },
|
|
520
707
|
version_quota_exceeded: { retryable: false, recovery: "fix_input" },
|
|
521
708
|
version_total_bytes_exceeded: { retryable: false, recovery: "fix_input" },
|
|
709
|
+
visual_review_context_too_large: { retryable: false, recovery: "fix_input" },
|
|
710
|
+
visual_review_expired: { retryable: false, recovery: "fix_input" },
|
|
711
|
+
visual_review_forbidden: { retryable: false, recovery: "re_auth" },
|
|
712
|
+
visual_review_invalid_image: { retryable: false, recovery: "fix_input" },
|
|
713
|
+
visual_review_invalid_note: { retryable: false, recovery: "fix_input" },
|
|
714
|
+
visual_review_submitted: { retryable: false, recovery: "fix_input" },
|
|
715
|
+
visual_review_too_large: { retryable: false, recovery: "fix_input" },
|
|
522
716
|
webhook_delivery_budget_exceeded: { retryable: false, recovery: "fix_input" },
|
|
523
717
|
webhook_managed_by_manifest: { retryable: false, recovery: "fix_input" },
|
|
524
718
|
whois_unavailable: { retryable: true, recovery: "retry" },
|
|
525
719
|
wp_cloud_assignment_kind_mismatch: { retryable: false, recovery: "fix_input" },
|
|
526
720
|
wp_cloud_assignment_space_mismatch: { retryable: false, recovery: "fix_input" },
|
|
527
721
|
wp_cloud_assignment_team_mismatch: { retryable: false, recovery: "fix_input" },
|
|
722
|
+
wp_cli_timeout: { retryable: true, recovery: "wait" },
|
|
528
723
|
wp_cloud_client_in_use: { retryable: false, recovery: "fix_input" },
|
|
529
724
|
wp_cloud_client_not_found: { retryable: false, recovery: "fix_input" },
|
|
530
725
|
wp_cloud_site_still_assigned: { retryable: false, recovery: "fix_input" },
|
|
531
|
-
wp_cloud_team_shared_site_exists: { retryable: false, recovery: "fix_input" },
|
|
532
726
|
wp_cloud_webhook_secret_not_configured: { retryable: false, recovery: "contact_support" },
|
|
533
727
|
zero_ai_unavailable: { retryable: false, recovery: "fix_input" },
|
|
534
728
|
zero_artifact_abi_mismatch: { retryable: false, recovery: "fix_input" },
|
|
@@ -601,6 +795,7 @@ export const ERROR_CODE_META = {
|
|
|
601
795
|
zero_log_query_invalid: { retryable: false, recovery: "fix_input" },
|
|
602
796
|
zero_method_not_allowed: { retryable: false, recovery: "fix_input" },
|
|
603
797
|
zero_migration_failed: { retryable: false, recovery: "fix_input" },
|
|
798
|
+
zero_mutation_origin_invalid: { retryable: false, recovery: "fix_input" },
|
|
604
799
|
zero_query_name_missing: { retryable: false, recovery: "fix_input" },
|
|
605
800
|
zero_realtime_forbidden: { retryable: false, recovery: "re_auth" },
|
|
606
801
|
zero_realtime_message_invalid: { retryable: false, recovery: "fix_input" },
|
|
@@ -1,11 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Where problem documents point when nobody says otherwise.
|
|
3
|
+
*
|
|
4
|
+
* Compiled in rather than imported from the domain registry: a host that serves
|
|
5
|
+
* its own error pages passes its own base URL through {@link errorDocsUrl}, and
|
|
6
|
+
* a table of codes must not drag a hostname registry along to be readable. The
|
|
7
|
+
* literal is checked against the registry in `config/domains.test.ts`.
|
|
8
|
+
*/
|
|
9
|
+
export declare const DEFAULT_PROBLEM_DOCS_BASE_URL = "https://spacefast.com/docs/errors";
|
|
2
10
|
/** Media type of every 4xx/5xx response body (RFC 9457 problem details). */
|
|
3
11
|
export declare const PROBLEM_CONTENT_TYPE = "application/problem+json";
|
|
4
|
-
/**
|
|
5
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Problem `type` URI: docs base + `/{code}`. Asserted by the conformance suite.
|
|
14
|
+
*
|
|
15
|
+
* `baseUrl` is what a white-labeled surface injects (the brand document's
|
|
16
|
+
* `problemDocsBaseUrl`); omitting it resolves against Spacefast's own docs.
|
|
17
|
+
*/
|
|
18
|
+
export declare function errorDocsUrl(code: string, baseUrl?: string): string;
|
|
6
19
|
/** Problem `title`: the snake_case code as a sentence ("version_not_found" -> "Version not found"). */
|
|
7
20
|
export declare function errorTitle(code: string): string;
|
|
8
|
-
export declare const ERROR_CODES: readonly ["abuse_report_invalid_transition", "abuse_report_rate_limited", "abuse_takedown", "access_denied", "account_suspended", "agent_handoff_declined", "agent_handoff_limit_reached", "agent_handoff_origin_unsupported", "ambiguous_space_slug", "anonymous_expired", "anonymous_publish_rate_limited", "anonymous_space_limit_reached", "api_key_scope_underivable", "archive_too_large", "auth_code_required", "authorization_level_not_allowed", "authorization_pending", "blob_gate_record_missing", "blob_gate_token_invalid", "build_command_missing", "build_execution_unavailable", "build_failed", "build_install_failed", "build_no_index_html", "build_not_created", "build_oom", "build_output_contains_server_bundle", "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_functions_key_removed", "config_invalid", "config_meta_too_long", "config_name_too_long", "config_runtime_entry_missing", "config_runtime_invalid_kind", "config_templates_over_limit", "confirmation_denied", "confirmation_expired", "confirmation_mismatch", "confirmation_required", "confirmation_token_required", "continuation_unavailable", "continuation_used", "credential_expired", "credential_not_yet_valid", "credential_retired", "credential_revoked", "credential_sponsor_inactive", "csam_blocked", "csam_policy_floor", "dashboard_prefs_key_invalid", "dashboard_prefs_too_large", "dashboard_prefs_too_many_keys", "data_location_immutable", "db_not_available", "decision_execution_lost", "decision_in_progress", "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", "elevation_not_required", "email_already_claimed", "email_verification_code_invalid", "enforcement_policy_overlap", "event_payload_too_large", "event_rate_limited", "expired_token", "feature_unavailable", "files_mode_does_not_support_spa", "forbidden", "free_external_proxy_disabled", "idempotency_conflict_in_progress", "idempotency_key_reused", "incumbent_controls_dns", "ingest_admission_exceeded", "inject_invalid", "inject_snippet_too_large", "insufficient_scope", "internal_error", "invalid_claim_token", "invalid_continuation_token", "invalid_data_location", "invalid_decision_state", "invalid_device_code", "invalid_domain", "invalid_domain_name", "invalid_elevation_request", "invalid_file_path", "invalid_grant", "invalid_idempotency_key", "invalid_publish_archive", "invalid_publish_path", "invalid_publish_payload", "invalid_request", "invalid_runtime_event", "invalid_space", "invalid_space_mode", "invalid_usage_bucket", "invalid_usage_correction", "invalid_usage_window", "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", "issuer_exists", "issuer_not_active", "issuer_proof_invalid", "issuer_tenant_occupied", "issuer_unknown", "job_not_found", "job_not_promotable", "job_not_removable", "job_not_retryable", "last_owner", "log_retention_clamped", "lost_domain_control", "maintenance_in_progress", "malware_detected", "managed_domain_protected", "manifest_body_too_large", "manifest_duplicate_path", "manifest_too_many_files", "member_already_exists", "method_not_allowed", "missing_route_param", "move_target_capacity_lost", "name_managed_by_config", "nameserver_delegation_required", "nameserver_divergence", "next_version_unsupported", "no_space_selected", "noop_publish", "not_enrolled", "not_found", "partner_preset_not_grantable", "partner_tenant_immutable_client", "password_already_set", "password_compromised", "path_case_collision", "path_too_long", "placement_invalid_burstable", "plan_grant_already_active", "plan_grant_already_revoked", "plan_unknown", "policy_exceeds_grantor", "prebuilt_metadata_invalid", "primary_email_not_removable", "principal_closed", "principal_has_active_spaces", "principal_not_found", "principal_space_mismatch", "principal_suspended", "principal_suspension_locked", "promote_admission_exceeded", "promotion_live_content_missing", "promotion_live_system_space_invalid", "promotion_live_system_space_not_designated", "promotion_not_live_tenant", "promotion_nothing_to_promote", "promotion_runtime_publish_incomplete", "promotion_test_twin_missing", "provider_error", "provider_job_failed", "provider_job_timeout", "provider_privilege", "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_bytes_missing", "publish_config_unsupported", "publish_failed", "publish_file_missing", "publish_hash_mismatch", "publish_inline_limit_exceeded", "publish_not_cancelable", "publish_path_collision", "publish_path_invalid", "publish_session_expired", "publish_setup_failed", "publish_snapshot_empty", "publish_upload_failed", "publish_verification_failed", "queue_not_found", "quota_exceeded", "rate_limited", "registration_expired", "registration_expiring", "resource_revision_changed", "response_headers_unservable", "response_table_too_large", "review_item_claimed", "routing_rules_over_plan", "runtime_action_forbidden", "runtime_api_not_found", "runtime_callback_forbidden", "runtime_dev_unsupported", "runtime_hostname_unassigned", "runtime_instance_mismatch", "runtime_jti_missing", "runtime_jti_replayed", "runtime_jwks_key_missing", "runtime_kind_mismatch", "runtime_management_unavailable", "runtime_not_provisioned", "runtime_operation_missing", "runtime_purge_failed", "runtime_release_unverifiable", "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", "service_booting", "service_signature_invalid", "session_not_fresh", "site_already_deleted", "site_has_live_spaces", "site_not_static", "site_required", "site_suspended", "slow_down", "slug_invalid", "slug_reserved", "slug_unavailable", "source_archive_decompression_timeout", "source_archive_expansion_ratio_exceeded", "source_archive_validation_busy", "space_already_claimed", "space_claim_unavailable", "space_claimed_credential_available", "space_disabled", "space_expired", "space_has_active_publish", "space_has_active_version", "space_hostname_identity_missing", "space_no_live_version", "space_not_disabled", "space_not_restorable", "space_person_already_member", "space_person_invitation_pending", "space_person_self_invite", "space_ref_ambiguous", "space_ref_required", "space_selection_conflict", "space_transferring", "space_unclaimed", "ssl_renewal_blocked", "static_control_file_not_supported", "static_runtime_control_path_not_supported", "static_runtime_required", "storage_auth_required", "storage_bucket_unavailable", "storage_content_blocked", "storage_delete_forbidden", "storage_empty_file", "storage_file_too_large", "storage_key_invalid", "storage_object_not_found", "storage_quota_already_unlimited", "storage_quota_decrease_not_supported", "storage_quota_exceeded", "storage_unavailable", "stripe_error", "superadmin_two_factor_required", "superadmin_wpcom_account_required", "superseded_by_publish", "system_space_conflict", "system_space_invalid", "takeover_notice_window", "team_member_quota_exceeded", "team_ref_required", "team_required", "team_scope_mismatch", "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", "token_alg_invalid", "token_audience_mismatch", "token_claims_invalid", "token_header_forbidden", "token_malformed", "token_signature_invalid", "token_subject_invalid", "token_ttl_invalid", "token_type_invalid", "transfer_cross_tenant_unsupported", "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_size_mismatch", "usage_period_not_found", "user_banned", "validation_error", "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", "webhook_managed_by_manifest", "whois_unavailable", "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_ai_unavailable", "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_capabilities_encode_failed", "zero_client_bundle_not_loaded", "zero_db_connect_failed", "zero_db_execute_failed", "zero_db_export_cursor_invalid", "zero_db_export_failed", "zero_db_export_page_too_large", "zero_db_export_query_invalid", "zero_db_export_schema_changed", "zero_db_export_schema_unavailable", "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_target_denied", "zero_db_tls_required", "zero_db_too_many_params", "zero_db_transaction_active", "zero_db_transaction_commit_failed", "zero_db_transaction_invalid", "zero_db_transaction_missing", "zero_db_transaction_rollback_failed", "zero_db_transaction_start_failed", "zero_db_url_invalid", "zero_db_url_missing", "zero_dev_endpoint_failed", "zero_dump_query_invalid", "zero_email_unavailable", "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_gravatar_unavailable", "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_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_response_header_forbidden", "zero_response_header_invalid", "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_spam_unavailable"];
|
|
21
|
+
export declare const ERROR_CODES: readonly ["abuse_report_invalid_transition", "abuse_report_rate_limited", "abuse_takedown", "access_denied", "account_suspended", "agent_handoff_declined", "agent_handoff_limit_reached", "agent_handoff_origin_unsupported", "ambiguous_space_slug", "anonymous_expired", "anonymous_publish_rate_limited", "anonymous_space_limit_reached", "api_key_scope_underivable", "archive_too_large", "auth_code_required", "authorization_level_not_allowed", "authorization_pending", "blob_gate_record_missing", "blob_gate_token_invalid", "build_command_missing", "build_execution_unavailable", "build_failed", "build_install_failed", "build_no_index_html", "build_not_created", "build_oom", "build_output_contains_server_bundle", "build_output_dir_missing", "build_timeout", "cache_purge_domain_required", "cache_purge_path_required", "catalog_unavailable", "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_functions_key_removed", "config_invalid", "config_meta_too_long", "config_name_too_long", "config_runtime_entry_missing", "config_runtime_invalid_kind", "config_templates_over_limit", "confirmation_denied", "confirmation_expired", "confirmation_mismatch", "confirmation_required", "confirmation_token_required", "connection_ambiguous", "connection_forbidden", "connection_needs_reauth", "connection_not_found", "connection_revoked", "connection_serving_not_granted", "connector_approval_required", "connector_first_party_immutable", "connector_not_found", "connector_role_unknown", "connector_run_budget_exhausted", "connector_run_not_found", "connector_run_not_resumable", "connector_serving_admin_only", "connector_serving_not_allowlisted", "connector_slug_taken", "connector_source_blocked", "connector_source_unreachable", "connector_tool_blocked", "connector_write_in_read_handler", "continuation_unavailable", "continuation_used", "credential_expired", "credential_not_yet_valid", "credential_retired", "credential_revoked", "credential_sponsor_inactive", "csam_blocked", "csam_policy_floor", "dashboard_prefs_key_invalid", "dashboard_prefs_too_large", "dashboard_prefs_too_many_keys", "data_location_immutable", "db_not_available", "decision_execution_lost", "decision_in_progress", "device_authorization_failed", "device_verification_rate_limited", "dns_control_observation_indeterminate", "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_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", "elevation_denied", "elevation_not_required", "elevation_required", "email_already_claimed", "email_verification_code_invalid", "enforcement_policy_overlap", "event_payload_too_large", "event_rate_limited", "expired_token", "feature_unavailable", "files_mode_does_not_support_spa", "forbidden", "frame_link_inactive", "frame_path_outside_link_resources", "frame_principal_required", "frame_session_invalid", "frame_session_stale", "frame_session_target_changed", "frame_target_fixed", "frame_version_required", "free_external_proxy_disabled", "hostname_contested", "human_approval_required", "idempotency_conflict_in_progress", "idempotency_key_reused", "incumbent_controls_dns", "ingest_admission_exceeded", "inject_invalid", "inject_snippet_too_large", "insufficient_scope", "internal_error", "invalid_claim_token", "invalid_continuation_token", "invalid_data_location", "invalid_decision_state", "invalid_device_code", "invalid_domain", "invalid_domain_name", "invalid_elevation_request", "invalid_file_path", "invalid_grant", "invalid_idempotency_key", "invalid_publish_archive", "invalid_publish_path", "invalid_publish_payload", "invalid_request", "invalid_runtime_event", "invalid_space", "invalid_space_mode", "invalid_usage_bucket", "invalid_usage_correction", "invalid_usage_window", "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", "issuer_exists", "issuer_not_active", "issuer_proof_invalid", "issuer_tenant_occupied", "issuer_unknown", "jetpack_licensing_rejected", "jetpack_licensing_response_invalid", "jetpack_licensing_unavailable", "job_not_found", "job_not_promotable", "job_not_removable", "job_not_retryable", "last_owner", "log_retention_clamped", "lost_domain_control", "maintenance_in_progress", "malformed_policy_pattern", "malformed_tool_address", "malware_detected", "managed_domain_protected", "manifest_body_too_large", "manifest_duplicate_path", "manifest_too_many_files", "member_already_exists", "method_not_allowed", "missing_route_param", "move_target_capacity_lost", "name_managed_by_config", "nameserver_delegation_required", "nameserver_divergence", "next_package_layout_unsupported", "next_version_unsupported", "no_space_selected", "noop_publish", "not_enrolled", "not_found", "owner_binding_requires_private_space", "partner_preset_not_grantable", "partner_tenant_immutable_client", "password_already_set", "password_compromised", "path_case_collision", "path_too_long", "plan_grant_already_active", "plan_grant_already_revoked", "plan_unknown", "policy_exceeds_grantor", "prebuilt_metadata_invalid", "primary_email_not_removable", "principal_closed", "principal_has_active_spaces", "principal_not_found", "principal_space_mismatch", "principal_suspended", "principal_suspension_locked", "promote_admission_exceeded", "promotion_live_content_missing", "promotion_live_system_space_invalid", "promotion_live_system_space_not_designated", "promotion_not_live_tenant", "promotion_nothing_to_promote", "promotion_runtime_publish_incomplete", "promotion_test_twin_missing", "provider_error", "provider_job_failed", "provider_job_timeout", "provider_privilege", "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_bytes_missing", "publish_config_unsupported", "publish_failed", "publish_file_missing", "publish_hash_mismatch", "publish_inline_limit_exceeded", "publish_not_cancelable", "publish_path_collision", "publish_path_invalid", "publish_session_expired", "publish_setup_failed", "publish_snapshot_empty", "publish_upload_failed", "publish_verification_failed", "queue_not_found", "quota_exceeded", "rate_limited", "realtime_cursor_expired", "registration_expired", "registration_expiring", "repository_ref_not_found", "repository_stale_base", "resource_revision_changed", "response_headers_unservable", "response_table_too_large", "review_item_claimed", "routing_rules_over_plan", "run_replay_diverged", "runtime_action_forbidden", "runtime_api_not_found", "runtime_callback_forbidden", "runtime_capabilities_pending", "runtime_dev_unsupported", "runtime_hostname_unassigned", "runtime_instance_mismatch", "runtime_jti_missing", "runtime_jti_replayed", "runtime_jwks_key_missing", "runtime_kind_mismatch", "runtime_management_unavailable", "runtime_not_provisioned", "runtime_operation_missing", "runtime_purge_failed", "runtime_release_unverifiable", "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", "service_booting", "service_signature_invalid", "session_not_fresh", "site_already_deleted", "site_required", "site_suspended", "slow_down", "slug_invalid", "slug_reserved", "slug_unavailable", "source_archive_decompression_timeout", "source_archive_expansion_ratio_exceeded", "source_archive_validation_busy", "source_branch_changed", "source_branch_missing", "source_commit_not_saved", "source_conflict_content_unavailable", "source_conflicts_missing", "source_exact_diff_unsupported", "source_file_incomplete", "source_file_mode_unavailable", "source_file_required", "source_file_too_large", "source_file_unavailable", "source_files_too_large", "source_hunk_selection_invalid", "source_hunk_stale", "source_merge_snapshot_changed", "source_merge_undo_unsupported", "source_nothing_staged", "source_operation_pending", "source_operation_reused", "source_operation_superseded", "source_operation_unreconciled", "source_patch_unavailable", "source_resolution_invalid", "source_resolution_pending", "source_selection_invalid", "source_snapshot_changed", "source_tree_too_large", "source_workspace_closed", "source_workspace_connection_changed", "source_workspace_connection_in_use", "source_workspace_dirty", "source_workspace_initializing", "source_workspace_ref_reserved", "source_workspace_revision_conflict", "source_workspaces_unavailable", "space_already_claimed", "space_claim_unavailable", "space_claimed_credential_available", "space_disabled", "space_expired", "space_has_active_publish", "space_has_active_version", "space_hostname_identity_missing", "space_no_live_version", "space_not_disabled", "space_not_restorable", "space_person_already_member", "space_person_invitation_pending", "space_person_self_invite", "space_ref_ambiguous", "space_ref_required", "space_selection_conflict", "space_transferring", "space_unclaimed", "ssl_renewal_blocked", "static_control_file_not_supported", "static_runtime_control_path_not_supported", "static_runtime_required", "storage_auth_required", "storage_bucket_unavailable", "storage_content_blocked", "storage_delete_forbidden", "storage_empty_file", "storage_file_too_large", "storage_key_invalid", "storage_object_not_found", "storage_quota_already_unlimited", "storage_quota_decrease_not_supported", "storage_quota_exceeded", "storage_unavailable", "stripe_error", "superadmin_two_factor_required", "superadmin_wpcom_account_required", "superseded_by_publish", "system_space_conflict", "system_space_invalid", "takeover_notice_window", "team_member_quota_exceeded", "team_ref_required", "team_required", "team_scope_mismatch", "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", "token_alg_invalid", "token_audience_mismatch", "token_claims_invalid", "token_header_forbidden", "token_malformed", "token_signature_invalid", "token_subject_invalid", "token_ttl_invalid", "token_type_invalid", "transfer_cross_tenant_unsupported", "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_size_mismatch", "usage_period_not_found", "user_banned", "validation_error", "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", "visitor_role_not_bindable", "visual_review_context_too_large", "visual_review_expired", "visual_review_forbidden", "visual_review_invalid_image", "visual_review_invalid_note", "visual_review_submitted", "visual_review_too_large", "webhook_delivery_budget_exceeded", "webhook_managed_by_manifest", "whois_unavailable", "wp_cli_timeout", "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_webhook_secret_not_configured", "zero_ai_unavailable", "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_capabilities_encode_failed", "zero_client_bundle_not_loaded", "zero_db_connect_failed", "zero_db_execute_failed", "zero_db_export_cursor_invalid", "zero_db_export_failed", "zero_db_export_page_too_large", "zero_db_export_query_invalid", "zero_db_export_schema_changed", "zero_db_export_schema_unavailable", "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_target_denied", "zero_db_tls_required", "zero_db_too_many_params", "zero_db_transaction_active", "zero_db_transaction_commit_failed", "zero_db_transaction_invalid", "zero_db_transaction_missing", "zero_db_transaction_rollback_failed", "zero_db_transaction_start_failed", "zero_db_url_invalid", "zero_db_url_missing", "zero_dev_endpoint_failed", "zero_dump_query_invalid", "zero_email_unavailable", "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_gravatar_unavailable", "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_migration_failed", "zero_mutation_origin_invalid", "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_header_forbidden", "zero_response_header_invalid", "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_spam_unavailable"];
|
|
9
22
|
export type ErrorCode = (typeof ERROR_CODES)[number];
|
|
10
23
|
export declare function isErrorCode(value: string): value is ErrorCode;
|
|
11
24
|
/**
|