@spacefast/common 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/README.md +42 -0
  2. package/dist/brand.d.ts +15 -0
  3. package/dist/brand.js +24 -0
  4. package/dist/config/domains.d.ts +30 -0
  5. package/dist/config/domains.js +75 -0
  6. package/dist/config/index.d.ts +1 -0
  7. package/dist/config/index.js +3 -0
  8. package/dist/contracts/abuse.d.ts +93 -0
  9. package/dist/contracts/abuse.js +50 -0
  10. package/dist/contracts/access.d.ts +409 -0
  11. package/dist/contracts/access.js +396 -0
  12. package/dist/contracts/account.d.ts +28 -0
  13. package/dist/contracts/account.js +54 -0
  14. package/dist/contracts/activity.d.ts +118 -0
  15. package/dist/contracts/activity.js +180 -0
  16. package/dist/contracts/analytics.d.ts +56 -0
  17. package/dist/contracts/analytics.js +91 -0
  18. package/dist/contracts/annotations.d.ts +327 -0
  19. package/dist/contracts/annotations.js +234 -0
  20. package/dist/contracts/api-keys.d.ts +517 -0
  21. package/dist/contracts/api-keys.js +235 -0
  22. package/dist/contracts/archives.d.ts +332 -0
  23. package/dist/contracts/archives.js +120 -0
  24. package/dist/contracts/auth.d.ts +86 -0
  25. package/dist/contracts/auth.js +82 -0
  26. package/dist/contracts/beta.d.ts +106 -0
  27. package/dist/contracts/beta.js +104 -0
  28. package/dist/contracts/billing.d.ts +328 -0
  29. package/dist/contracts/billing.js +203 -0
  30. package/dist/contracts/builds.d.ts +504 -0
  31. package/dist/contracts/builds.js +248 -0
  32. package/dist/contracts/channels.d.ts +49 -0
  33. package/dist/contracts/channels.js +51 -0
  34. package/dist/contracts/common.d.ts +238 -0
  35. package/dist/contracts/common.js +175 -0
  36. package/dist/contracts/deployments.d.ts +574 -0
  37. package/dist/contracts/deployments.js +97 -0
  38. package/dist/contracts/device-auth.d.ts +194 -0
  39. package/dist/contracts/device-auth.js +162 -0
  40. package/dist/contracts/domains.d.ts +6115 -0
  41. package/dist/contracts/domains.js +1435 -0
  42. package/dist/contracts/enums.d.ts +196 -0
  43. package/dist/contracts/enums.js +211 -0
  44. package/dist/contracts/error-code-meta.d.ts +1560 -0
  45. package/dist/contracts/error-code-meta.js +400 -0
  46. package/dist/contracts/error-codes.d.ts +13 -0
  47. package/dist/contracts/error-codes.js +416 -0
  48. package/dist/contracts/events.d.ts +398 -0
  49. package/dist/contracts/events.js +320 -0
  50. package/dist/contracts/fast-domain-search.d.ts +19 -0
  51. package/dist/contracts/fast-domain-search.js +22 -0
  52. package/dist/contracts/features.d.ts +240 -0
  53. package/dist/contracts/features.js +406 -0
  54. package/dist/contracts/git.d.ts +288 -0
  55. package/dist/contracts/git.js +116 -0
  56. package/dist/contracts/ids.d.ts +35 -0
  57. package/dist/contracts/ids.js +45 -0
  58. package/dist/contracts/intercom.d.ts +6 -0
  59. package/dist/contracts/intercom.js +5 -0
  60. package/dist/contracts/internal.d.ts +103 -0
  61. package/dist/contracts/internal.js +92 -0
  62. package/dist/contracts/mcp.d.ts +788 -0
  63. package/dist/contracts/mcp.js +161 -0
  64. package/dist/contracts/me.d.ts +81 -0
  65. package/dist/contracts/me.js +104 -0
  66. package/dist/contracts/oauth-resources.d.ts +30 -0
  67. package/dist/contracts/oauth-resources.js +61 -0
  68. package/dist/contracts/operations.d.ts +54 -0
  69. package/dist/contracts/operations.js +14 -0
  70. package/dist/contracts/plan-policy.d.ts +85 -0
  71. package/dist/contracts/plan-policy.js +75 -0
  72. package/dist/contracts/platform.d.ts +359 -0
  73. package/dist/contracts/platform.js +216 -0
  74. package/dist/contracts/push-new.d.ts +156 -0
  75. package/dist/contracts/push-new.js +52 -0
  76. package/dist/contracts/quotas.d.ts +16 -0
  77. package/dist/contracts/quotas.js +36 -0
  78. package/dist/contracts/repository-connections.d.ts +231 -0
  79. package/dist/contracts/repository-connections.js +106 -0
  80. package/dist/contracts/resources.d.ts +529 -0
  81. package/dist/contracts/resources.js +209 -0
  82. package/dist/contracts/routes.d.ts +45 -0
  83. package/dist/contracts/routes.js +31 -0
  84. package/dist/contracts/runtime-api.d.ts +449 -0
  85. package/dist/contracts/runtime-api.js +513 -0
  86. package/dist/contracts/sites.d.ts +393 -0
  87. package/dist/contracts/sites.js +121 -0
  88. package/dist/contracts/slugs.d.ts +31 -0
  89. package/dist/contracts/slugs.js +47 -0
  90. package/dist/contracts/space-config.d.ts +216 -0
  91. package/dist/contracts/space-config.js +237 -0
  92. package/dist/contracts/space-theme.d.ts +25 -0
  93. package/dist/contracts/space-theme.js +49 -0
  94. package/dist/contracts/spaces.d.ts +2760 -0
  95. package/dist/contracts/spaces.js +589 -0
  96. package/dist/contracts/superadmin-activity.d.ts +205 -0
  97. package/dist/contracts/superadmin-activity.js +107 -0
  98. package/dist/contracts/superadmin-emails.d.ts +212 -0
  99. package/dist/contracts/superadmin-emails.js +112 -0
  100. package/dist/contracts/superadmin-queues.d.ts +414 -0
  101. package/dist/contracts/superadmin-queues.js +202 -0
  102. package/dist/contracts/superadmin-runtime.d.ts +27 -0
  103. package/dist/contracts/superadmin-runtime.js +38 -0
  104. package/dist/contracts/superadmin-spaces.d.ts +429 -0
  105. package/dist/contracts/superadmin-spaces.js +82 -0
  106. package/dist/contracts/superadmin-tenants.d.ts +180 -0
  107. package/dist/contracts/superadmin-tenants.js +117 -0
  108. package/dist/contracts/superadmin.d.ts +654 -0
  109. package/dist/contracts/superadmin.js +309 -0
  110. package/dist/contracts/tags.d.ts +1140 -0
  111. package/dist/contracts/tags.js +1050 -0
  112. package/dist/contracts/teams.d.ts +233 -0
  113. package/dist/contracts/teams.js +174 -0
  114. package/dist/contracts/telemetry.d.ts +2 -0
  115. package/dist/contracts/telemetry.js +1 -0
  116. package/dist/contracts/transfers.d.ts +105 -0
  117. package/dist/contracts/transfers.js +48 -0
  118. package/dist/contracts/variables.d.ts +189 -0
  119. package/dist/contracts/variables.js +82 -0
  120. package/dist/contracts/webhooks.d.ts +159 -0
  121. package/dist/contracts/webhooks.js +59 -0
  122. package/dist/contracts/zero.d.ts +1538 -0
  123. package/dist/contracts/zero.js +755 -0
  124. package/dist/docs/agent-prose.d.ts +35 -0
  125. package/dist/docs/agent-prose.js +153 -0
  126. package/dist/docs/agent-setup.d.ts +6 -0
  127. package/dist/docs/agent-setup.js +164 -0
  128. package/dist/docs/agent-solutions.d.ts +110 -0
  129. package/dist/docs/agent-solutions.js +181 -0
  130. package/dist/docs/error-docs.d.ts +12 -0
  131. package/dist/docs/error-docs.js +1601 -0
  132. package/dist/docs/skill-distribution.d.ts +12 -0
  133. package/dist/docs/skill-distribution.js +18 -0
  134. package/dist/domain-exploration.d.ts +108 -0
  135. package/dist/domain-exploration.js +488 -0
  136. package/dist/domain-normalize.d.ts +1 -0
  137. package/dist/domain-normalize.js +14 -0
  138. package/dist/domain-zones.d.ts +1 -0
  139. package/dist/domain-zones.js +5272 -0
  140. package/dist/index.d.ts +1 -0
  141. package/dist/index.js +1 -0
  142. package/dist/utils/access-policy.d.ts +39 -0
  143. package/dist/utils/access-policy.js +232 -0
  144. package/dist/utils/api.d.ts +4 -0
  145. package/dist/utils/api.js +13 -0
  146. package/dist/utils/auth-redirect.d.ts +1 -0
  147. package/dist/utils/auth-redirect.js +48 -0
  148. package/dist/utils/auth.d.ts +5 -0
  149. package/dist/utils/auth.js +13 -0
  150. package/dist/utils/build-settings.d.ts +49 -0
  151. package/dist/utils/build-settings.js +366 -0
  152. package/dist/utils/claim-token.d.ts +1 -0
  153. package/dist/utils/claim-token.js +9 -0
  154. package/dist/utils/collections.d.ts +1 -0
  155. package/dist/utils/collections.js +5 -0
  156. package/dist/utils/concurrency.d.ts +1 -0
  157. package/dist/utils/concurrency.js +18 -0
  158. package/dist/utils/content-type.d.ts +10 -0
  159. package/dist/utils/content-type.js +145 -0
  160. package/dist/utils/error-display.d.ts +7 -0
  161. package/dist/utils/error-display.js +42 -0
  162. package/dist/utils/error.d.ts +1 -0
  163. package/dist/utils/error.js +3 -0
  164. package/dist/utils/generate-space-name.d.ts +14 -0
  165. package/dist/utils/generate-space-name.js +95 -0
  166. package/dist/utils/git-repository.d.ts +5 -0
  167. package/dist/utils/git-repository.js +99 -0
  168. package/dist/utils/guards.d.ts +1 -0
  169. package/dist/utils/guards.js +3 -0
  170. package/dist/utils/publish-detection.d.ts +10 -0
  171. package/dist/utils/publish-detection.js +118 -0
  172. package/dist/utils/publish-policy.d.ts +69 -0
  173. package/dist/utils/publish-policy.js +429 -0
  174. package/dist/utils/query-client.d.ts +7 -0
  175. package/dist/utils/query-client.js +21 -0
  176. package/dist/utils/query-keys.d.ts +75 -0
  177. package/dist/utils/query-keys.js +78 -0
  178. package/dist/utils/runtime-paths.d.ts +7 -0
  179. package/dist/utils/runtime-paths.js +28 -0
  180. package/dist/utils/runtime-upload.d.ts +19 -0
  181. package/dist/utils/runtime-upload.js +27 -0
  182. package/dist/utils/slug.d.ts +5 -0
  183. package/dist/utils/slug.js +13 -0
  184. package/dist/utils/space-config.d.ts +75 -0
  185. package/dist/utils/space-config.js +415 -0
  186. package/dist/utils/space-theme.d.ts +16 -0
  187. package/dist/utils/space-theme.js +89 -0
  188. package/dist/utils/static-runtime-policy.d.ts +17 -0
  189. package/dist/utils/static-runtime-policy.js +103 -0
  190. package/dist/utils/upload-session.d.ts +34 -0
  191. package/dist/utils/upload-session.js +69 -0
  192. package/dist/utils/urls.d.ts +2 -0
  193. package/dist/utils/urls.js +7 -0
  194. package/dist/utils/version-path.d.ts +6 -0
  195. package/dist/utils/version-path.js +51 -0
  196. package/dist/utils/wpcom-auth-redirects.d.ts +14 -0
  197. package/dist/utils/wpcom-auth-redirects.js +49 -0
  198. package/dist/utils/zero-realtime-signature.d.ts +12 -0
  199. package/dist/utils/zero-realtime-signature.js +45 -0
  200. package/dist/vocabulary.d.ts +230 -0
  201. package/dist/vocabulary.js +218 -0
  202. package/package.json +58 -0
@@ -0,0 +1,400 @@
1
+ /** Safe default for codes outside the table (provider passthrough, future codes). */
2
+ export const DEFAULT_ERROR_CODE_META = {
3
+ retryable: false,
4
+ recovery: "contact_support",
5
+ };
6
+ export const ERROR_CODE_META = {
7
+ abuse_report_invalid_transition: { retryable: false, recovery: "fix_input" },
8
+ abuse_report_rate_limited: { retryable: true, recovery: "wait" },
9
+ abuse_takedown: { retryable: false, recovery: "contact_support" },
10
+ access_denied: { retryable: false, recovery: "re_auth" },
11
+ account_suspended: { retryable: false, recovery: "contact_support" },
12
+ ambiguous_space_slug: { retryable: false, recovery: "fix_input" },
13
+ anonymous_expired: { retryable: false, recovery: "re_auth" },
14
+ anonymous_pool_unavailable: { retryable: true, recovery: "retry" },
15
+ anonymous_publish_rate_limited: { retryable: true, recovery: "wait" },
16
+ archive_body_required: { retryable: false, recovery: "fix_input" },
17
+ archive_too_large: { retryable: false, recovery: "fix_input" },
18
+ auth_code_required: { retryable: false, recovery: "re_auth" },
19
+ authorization_pending: { retryable: true, recovery: "wait" },
20
+ billing_receipt_invalid: { retryable: false, recovery: "fix_input" },
21
+ billing_receipt_not_bound_to_team: { retryable: false, recovery: "fix_input" },
22
+ billing_store_not_configured: { retryable: false, recovery: "contact_support" },
23
+ billing_subscription_conflict: { retryable: false, recovery: "fix_input" },
24
+ billing_unknown_product: { retryable: false, recovery: "fix_input" },
25
+ build_command_missing: { retryable: false, recovery: "fix_input" },
26
+ build_execution_unavailable: { retryable: true, recovery: "retry" },
27
+ build_failed: { retryable: false, recovery: "fix_input" },
28
+ build_install_failed: { retryable: false, recovery: "fix_input" },
29
+ build_no_index_html: { retryable: false, recovery: "fix_input" },
30
+ build_not_created: { retryable: false, recovery: "fix_input" },
31
+ build_oom: { retryable: false, recovery: "fix_input" },
32
+ build_output_dir_missing: { retryable: false, recovery: "fix_input" },
33
+ build_timeout: { retryable: true, recovery: "retry" },
34
+ cache_purge_domain_required: { retryable: false, recovery: "fix_input" },
35
+ cache_purge_path_required: { retryable: false, recovery: "fix_input" },
36
+ channel_name_reserved: { retryable: false, recovery: "fix_input" },
37
+ channel_pointer_moved: { retryable: false, recovery: "fix_input" },
38
+ channel_unsupported: { retryable: false, recovery: "fix_input" },
39
+ claim_blocked_takedown: { retryable: false, recovery: "contact_support" },
40
+ claim_target_not_found: { retryable: false, recovery: "fix_input" },
41
+ claimed_space_quota_exceeded: { retryable: false, recovery: "fix_input" },
42
+ cli_upgrade_required: { retryable: false, recovery: "fix_input" },
43
+ config_file_too_large: { retryable: false, recovery: "fix_input" },
44
+ config_invalid: { retryable: false, recovery: "fix_input" },
45
+ config_meta_too_long: { retryable: false, recovery: "fix_input" },
46
+ config_templates_over_limit: { retryable: false, recovery: "fix_input" },
47
+ credential_expired: { retryable: false, recovery: "re_auth" },
48
+ credential_not_yet_valid: { retryable: true, recovery: "wait" },
49
+ credential_retired: { retryable: false, recovery: "re_auth" },
50
+ credential_revoked: { retryable: false, recovery: "re_auth" },
51
+ csam_blocked: { retryable: false, recovery: "contact_support" },
52
+ csam_policy_floor: { retryable: false, recovery: "contact_support" },
53
+ data_location_immutable: { retryable: false, recovery: "fix_input" },
54
+ device_authorization_failed: { retryable: false, recovery: "re_auth" },
55
+ device_verification_rate_limited: { retryable: true, recovery: "wait" },
56
+ dns_export_required: { retryable: false, recovery: "fix_input" },
57
+ dns_field_conflict: { retryable: false, recovery: "fix_input" },
58
+ dns_field_not_applicable: { retryable: false, recovery: "fix_input" },
59
+ dns_import_partial_visibility: { retryable: false, recovery: "fix_input" },
60
+ dns_provider_auth_expired: { retryable: false, recovery: "re_auth" },
61
+ dns_provider_batch_unsupported: { retryable: false, recovery: "fix_input" },
62
+ dns_provider_change_pending: { retryable: true, recovery: "wait" },
63
+ dns_provider_conflict: { retryable: false, recovery: "fix_input" },
64
+ dns_provider_connection_in_use: { retryable: false, recovery: "fix_input" },
65
+ dns_provider_connection_unavailable: { retryable: false, recovery: "re_auth" },
66
+ dns_provider_controlled_desired_state: { retryable: false, recovery: "fix_input" },
67
+ dns_provider_credentials_expired: { retryable: false, recovery: "re_auth" },
68
+ dns_provider_feature_descriptors: { retryable: false, recovery: "fix_input" },
69
+ dns_provider_feature_unavailable: { retryable: false, recovery: "fix_input" },
70
+ dns_provider_field_unsupported: { retryable: false, recovery: "fix_input" },
71
+ dns_provider_future_authoritative_backend: { retryable: false, recovery: "fix_input" },
72
+ dns_provider_missing_permission: { retryable: false, recovery: "re_auth" },
73
+ dns_provider_not_connected: { retryable: false, recovery: "re_auth" },
74
+ dns_provider_operation_failed: { retryable: true, recovery: "retry" },
75
+ dns_provider_permission_denied: { retryable: false, recovery: "re_auth" },
76
+ dns_provider_rate_limited: { retryable: true, recovery: "wait" },
77
+ dns_provider_replace_all_requires_fresh_plan: { retryable: false, recovery: "fix_input" },
78
+ dns_provider_replace_all_write_strategy: { retryable: false, recovery: "fix_input" },
79
+ dns_provider_snapshot_stale: { retryable: false, recovery: "fix_input" },
80
+ dns_provider_snapshot_unavailable: { retryable: true, recovery: "retry" },
81
+ dns_provider_temporarily_unavailable: { retryable: true, recovery: "retry" },
82
+ dns_provider_timeout: { retryable: true, recovery: "retry" },
83
+ dns_provider_validation_failed: { retryable: false, recovery: "fix_input" },
84
+ dns_provider_workflow_templates: { retryable: false, recovery: "fix_input" },
85
+ dns_provider_zone_not_found: { retryable: false, recovery: "fix_input" },
86
+ dns_record_conflicts_with_managed: { retryable: false, recovery: "fix_input" },
87
+ dns_record_managed: { retryable: false, recovery: "fix_input" },
88
+ dns_record_not_found: { retryable: false, recovery: "fix_input" },
89
+ domain_already_exists: { retryable: false, recovery: "fix_input" },
90
+ domain_bound: { retryable: false, recovery: "fix_input" },
91
+ domain_facet_already_managed: { retryable: false, recovery: "fix_input" },
92
+ domain_facet_external: { retryable: false, recovery: "fix_input" },
93
+ domain_facet_not_applicable: { retryable: false, recovery: "fix_input" },
94
+ domain_hostname_site_mismatch: { retryable: false, recovery: "fix_input" },
95
+ domain_in_use: { retryable: false, recovery: "fix_input" },
96
+ domain_lookup_rate_limited: { retryable: true, recovery: "wait" },
97
+ domain_not_bound: { retryable: false, recovery: "fix_input" },
98
+ domain_quota_exceeded: { retryable: false, recovery: "fix_input" },
99
+ domain_registration_active: { retryable: false, recovery: "fix_input" },
100
+ domain_registration_not_renewable: { retryable: false, recovery: "fix_input" },
101
+ domain_reserved_suffix: { retryable: false, recovery: "fix_input" },
102
+ domain_transfer_active: { retryable: false, recovery: "fix_input" },
103
+ domain_wildcard_label: { retryable: false, recovery: "fix_input" },
104
+ domain_wildcard_not_enabled: { retryable: false, recovery: "fix_input" },
105
+ download_required: { retryable: false, recovery: "fix_input" },
106
+ duplicate_version_path: { retryable: false, recovery: "fix_input" },
107
+ event_payload_too_large: { retryable: false, recovery: "fix_input" },
108
+ event_rate_limited: { retryable: true, recovery: "wait" },
109
+ expired_token: { retryable: false, recovery: "re_auth" },
110
+ export_archive_not_ready: { retryable: true, recovery: "wait" },
111
+ export_version_not_found: { retryable: false, recovery: "fix_input" },
112
+ feature_unavailable: { retryable: false, recovery: "fix_input" },
113
+ files_mode_does_not_support_spa: { retryable: false, recovery: "fix_input" },
114
+ forbidden: { retryable: false, recovery: "re_auth" },
115
+ free_external_proxy_disabled: { retryable: false, recovery: "fix_input" },
116
+ free_headers_basic_auth_disabled: { retryable: false, recovery: "fix_input" },
117
+ idempotency_conflict_in_progress: { retryable: true, recovery: "wait" },
118
+ idempotency_key_reused: { retryable: false, recovery: "fix_input" },
119
+ immutable_version_requires_login: { retryable: false, recovery: "re_auth" },
120
+ import_archive_not_uploaded: { retryable: false, recovery: "fix_input" },
121
+ import_not_cancelable: { retryable: false, recovery: "fix_input" },
122
+ import_not_waiting_for_archive: { retryable: false, recovery: "fix_input" },
123
+ incumbent_controls_dns: { retryable: false, recovery: "fix_input" },
124
+ inject_invalid: { retryable: false, recovery: "fix_input" },
125
+ inject_snippet_too_large: { retryable: false, recovery: "fix_input" },
126
+ internal_error: { retryable: true, recovery: "retry" },
127
+ invalid_claim_token: { retryable: false, recovery: "re_auth" },
128
+ invalid_data_location: { retryable: false, recovery: "fix_input" },
129
+ invalid_device_code: { retryable: false, recovery: "re_auth" },
130
+ invalid_domain: { retryable: false, recovery: "fix_input" },
131
+ invalid_domain_name: { retryable: false, recovery: "fix_input" },
132
+ invalid_file_path: { retryable: false, recovery: "fix_input" },
133
+ invalid_grant: { retryable: false, recovery: "re_auth" },
134
+ invalid_publish_archive: { retryable: false, recovery: "fix_input" },
135
+ invalid_publish_path: { retryable: false, recovery: "fix_input" },
136
+ invalid_publish_payload: { retryable: false, recovery: "fix_input" },
137
+ invalid_request: { retryable: false, recovery: "fix_input" },
138
+ invalid_runtime_event: { retryable: false, recovery: "fix_input" },
139
+ invalid_space: { retryable: false, recovery: "fix_input" },
140
+ invalid_space_mode: { retryable: false, recovery: "fix_input" },
141
+ invalid_user_code: { retryable: false, recovery: "re_auth" },
142
+ invalid_version_path: { retryable: false, recovery: "fix_input" },
143
+ invalid_webhook_events: { retryable: false, recovery: "fix_input" },
144
+ invalid_webhook_payload: { retryable: false, recovery: "fix_input" },
145
+ invalid_webhook_signature: { retryable: false, recovery: "fix_input" },
146
+ invalid_webhook_url: { retryable: false, recovery: "fix_input" },
147
+ invalid_zero_realtime_event: { retryable: false, recovery: "fix_input" },
148
+ invalid_zero_realtime_replay_query: { retryable: false, recovery: "fix_input" },
149
+ invitation_already_exists: { retryable: false, recovery: "fix_input" },
150
+ invitation_not_pending: { retryable: false, recovery: "fix_input" },
151
+ ip_blocked: { retryable: false, recovery: "contact_support" },
152
+ job_not_found: { retryable: false, recovery: "fix_input" },
153
+ job_not_promotable: { retryable: false, recovery: "fix_input" },
154
+ job_not_removable: { retryable: true, recovery: "wait" },
155
+ job_not_retryable: { retryable: false, recovery: "fix_input" },
156
+ last_owner: { retryable: false, recovery: "fix_input" },
157
+ log_retention_clamped: { retryable: false, recovery: "fix_input" },
158
+ lost_domain_control: { retryable: false, recovery: "fix_input" },
159
+ malware_detected: { retryable: false, recovery: "contact_support" },
160
+ managed_domain_protected: { retryable: false, recovery: "fix_input" },
161
+ manifest_body_too_large: { retryable: false, recovery: "fix_input" },
162
+ manifest_duplicate_path: { retryable: false, recovery: "fix_input" },
163
+ manifest_too_many_files: { retryable: false, recovery: "fix_input" },
164
+ member_already_exists: { retryable: false, recovery: "fix_input" },
165
+ missing_route_param: { retryable: false, recovery: "fix_input" },
166
+ nameserver_delegation_required: { retryable: false, recovery: "fix_input" },
167
+ nameserver_divergence: { retryable: false, recovery: "fix_input" },
168
+ noop_publish: { retryable: false, recovery: "fix_input" },
169
+ not_enrolled: { retryable: false, recovery: "fix_input" },
170
+ not_found: { retryable: false, recovery: "fix_input" },
171
+ path_case_collision: { retryable: false, recovery: "fix_input" },
172
+ path_too_long: { retryable: false, recovery: "fix_input" },
173
+ plan_grant_already_active: { retryable: false, recovery: "fix_input" },
174
+ plan_grant_already_revoked: { retryable: false, recovery: "fix_input" },
175
+ platform_tenant_immutable_client: { retryable: false, recovery: "fix_input" },
176
+ policy_exceeds_grantor: { retryable: false, recovery: "fix_input" },
177
+ principal_space_mismatch: { retryable: false, recovery: "fix_input" },
178
+ provider_error: { retryable: true, recovery: "retry" },
179
+ provider_job_failed: { retryable: true, recovery: "retry" },
180
+ provider_job_timeout: { retryable: true, recovery: "retry" },
181
+ provider_runtime_feature_unsupported: { retryable: false, recovery: "fix_input" },
182
+ provider_site_id_required: { retryable: false, recovery: "fix_input" },
183
+ proxy_upstream_denied: { retryable: false, recovery: "fix_input" },
184
+ proxy_upstream_unresolved: { retryable: false, recovery: "fix_input" },
185
+ publish_archive_compression_ratio_exceeded: { retryable: false, recovery: "fix_input" },
186
+ publish_archive_expanded_size_exceeded: { retryable: false, recovery: "fix_input" },
187
+ publish_archive_file_count_exceeded: { retryable: false, recovery: "fix_input" },
188
+ publish_archive_too_large: { retryable: false, recovery: "fix_input" },
189
+ publish_config_unsupported: { retryable: false, recovery: "fix_input" },
190
+ publish_failed: { retryable: false, recovery: "fix_input" },
191
+ publish_file_missing: { retryable: false, recovery: "fix_input" },
192
+ publish_setup_failed: { retryable: true, recovery: "retry" },
193
+ publish_upload_failed: { retryable: true, recovery: "retry" },
194
+ publish_verification_failed: { retryable: true, recovery: "retry" },
195
+ queue_not_found: { retryable: false, recovery: "fix_input" },
196
+ rate_limited: { retryable: true, recovery: "wait" },
197
+ registration_expired: { retryable: false, recovery: "fix_input" },
198
+ registration_expiring: { retryable: false, recovery: "fix_input" },
199
+ routing_rules_over_plan: { retryable: false, recovery: "fix_input" },
200
+ runtime_action_forbidden: { retryable: false, recovery: "re_auth" },
201
+ runtime_api_not_found: { retryable: false, recovery: "fix_input" },
202
+ runtime_callback_forbidden: { retryable: false, recovery: "re_auth" },
203
+ runtime_engine_zip_missing: { retryable: false, recovery: "contact_support" },
204
+ runtime_hostname_unassigned: { retryable: false, recovery: "fix_input" },
205
+ runtime_instance_mismatch: { retryable: false, recovery: "fix_input" },
206
+ runtime_jti_missing: { retryable: false, recovery: "re_auth" },
207
+ runtime_jti_replayed: { retryable: false, recovery: "re_auth" },
208
+ runtime_jwks_key_missing: { retryable: false, recovery: "re_auth" },
209
+ runtime_logs_unavailable: { retryable: false, recovery: "fix_input" },
210
+ runtime_management_unavailable: { retryable: true, recovery: "retry" },
211
+ runtime_not_provisioned: { retryable: true, recovery: "wait" },
212
+ runtime_operation_missing: { retryable: false, recovery: "fix_input" },
213
+ runtime_scope_forbidden: { retryable: false, recovery: "re_auth" },
214
+ runtime_token_bad_signature: { retryable: false, recovery: "re_auth" },
215
+ runtime_token_expired: { retryable: false, recovery: "re_auth" },
216
+ runtime_token_invalid: { retryable: false, recovery: "re_auth" },
217
+ runtime_unauthorized: { retryable: false, recovery: "re_auth" },
218
+ runtime_upload_operation_not_supported: { retryable: false, recovery: "fix_input" },
219
+ runtime_upload_required: { retryable: false, recovery: "fix_input" },
220
+ scan_pending: { retryable: true, recovery: "wait" },
221
+ secret_variable_in_template: { retryable: false, recovery: "fix_input" },
222
+ site_already_deleted: { retryable: false, recovery: "fix_input" },
223
+ site_capacity_exceeded: { retryable: true, recovery: "wait" },
224
+ site_has_live_spaces: { retryable: false, recovery: "fix_input" },
225
+ site_not_static: { retryable: false, recovery: "fix_input" },
226
+ site_required: { retryable: false, recovery: "fix_input" },
227
+ site_suspended: { retryable: false, recovery: "contact_support" },
228
+ slow_down: { retryable: true, recovery: "wait" },
229
+ space_already_claimed: { retryable: false, recovery: "fix_input" },
230
+ space_claim_unavailable: { retryable: false, recovery: "fix_input" },
231
+ space_disabled: { retryable: false, recovery: "fix_input" },
232
+ space_expired: { retryable: false, recovery: "fix_input" },
233
+ space_has_active_version: { retryable: false, recovery: "fix_input" },
234
+ space_import_archive_invalid: { retryable: false, recovery: "fix_input" },
235
+ space_import_archive_too_large: { retryable: false, recovery: "fix_input" },
236
+ space_import_config_only_archive: { retryable: false, recovery: "fix_input" },
237
+ space_import_runtime_schema_unsupported: { retryable: false, recovery: "fix_input" },
238
+ space_moving: { retryable: true, recovery: "wait" },
239
+ space_no_live_version: { retryable: false, recovery: "fix_input" },
240
+ space_not_disabled: { retryable: false, recovery: "fix_input" },
241
+ space_not_restorable: { retryable: false, recovery: "fix_input" },
242
+ space_ref_ambiguous: { retryable: false, recovery: "fix_input" },
243
+ space_ref_required: { retryable: false, recovery: "fix_input" },
244
+ space_transferring: { retryable: false, recovery: "fix_input" },
245
+ space_unclaimed: { retryable: false, recovery: "fix_input" },
246
+ ssl_renewal_blocked: { retryable: false, recovery: "fix_input" },
247
+ static_control_file_not_supported: { retryable: false, recovery: "fix_input" },
248
+ static_runtime_control_path_not_supported: { retryable: false, recovery: "fix_input" },
249
+ static_runtime_required: { retryable: false, recovery: "fix_input" },
250
+ storage_quota_exceeded: { retryable: false, recovery: "fix_input" },
251
+ storage_usage_unavailable: { retryable: true, recovery: "retry" },
252
+ stripe_error: { retryable: true, recovery: "retry" },
253
+ superseded_by_publish: { retryable: false, recovery: "fix_input" },
254
+ takeover_notice_window: { retryable: true, recovery: "wait" },
255
+ team_ref_required: { retryable: false, recovery: "fix_input" },
256
+ team_required: { retryable: false, recovery: "fix_input" },
257
+ team_slug_conflict: { retryable: false, recovery: "fix_input" },
258
+ template_file_too_large: { retryable: false, recovery: "fix_input" },
259
+ template_not_in_version: { retryable: false, recovery: "fix_input" },
260
+ template_variable_unresolved: { retryable: false, recovery: "fix_input" },
261
+ tenant_id_mismatch: { retryable: false, recovery: "fix_input" },
262
+ tenant_not_found: { retryable: false, recovery: "fix_input" },
263
+ tenant_not_granted: { retryable: false, recovery: "fix_input" },
264
+ tenant_past_due: { retryable: false, recovery: "fix_input" },
265
+ tenant_selection_required: { retryable: false, recovery: "fix_input" },
266
+ tenant_suspended: { retryable: false, recovery: "contact_support" },
267
+ theme_value_invalid: { retryable: false, recovery: "fix_input" },
268
+ transfer_cross_tenant_unsupported: { retryable: false, recovery: "fix_input" },
269
+ transfer_move_failed: { retryable: true, recovery: "retry" },
270
+ transfer_not_cancelable: { retryable: false, recovery: "fix_input" },
271
+ transfer_source_changed: { retryable: false, recovery: "fix_input" },
272
+ transfer_target_same_as_source: { retryable: false, recovery: "fix_input" },
273
+ unauthorized: { retryable: false, recovery: "re_auth" },
274
+ unsupported_publish_media_type: { retryable: false, recovery: "fix_input" },
275
+ upload_hash_mismatch: { retryable: false, recovery: "fix_input" },
276
+ upload_path_not_canonical: { retryable: false, recovery: "fix_input" },
277
+ upload_path_not_declared: { retryable: false, recovery: "fix_input" },
278
+ upload_session_cap_exceeded: { retryable: false, recovery: "fix_input" },
279
+ upload_size_mismatch: { retryable: false, recovery: "fix_input" },
280
+ user_banned: { retryable: false, recovery: "contact_support" },
281
+ validation_error: { retryable: false, recovery: "fix_input" },
282
+ variable_cascade_failed: { retryable: false, recovery: "fix_input" },
283
+ verification_required: { retryable: false, recovery: "re_auth" },
284
+ version_already_live: { retryable: false, recovery: "fix_input" },
285
+ version_artifact_not_found: { retryable: false, recovery: "fix_input" },
286
+ version_busy: { retryable: true, recovery: "wait" },
287
+ version_canceled: { retryable: false, recovery: "fix_input" },
288
+ version_closed: { retryable: false, recovery: "fix_input" },
289
+ version_expired: { retryable: false, recovery: "fix_input" },
290
+ version_failed: { retryable: false, recovery: "fix_input" },
291
+ version_file_count_exceeded: { retryable: false, recovery: "fix_input" },
292
+ version_file_not_found: { retryable: false, recovery: "fix_input" },
293
+ version_file_too_large: { retryable: false, recovery: "fix_input" },
294
+ version_files_missing: { retryable: false, recovery: "fix_input" },
295
+ version_in_use: { retryable: false, recovery: "fix_input" },
296
+ version_live: { retryable: false, recovery: "fix_input" },
297
+ version_no_publishable_files: { retryable: false, recovery: "fix_input" },
298
+ version_not_finalizable: { retryable: false, recovery: "fix_input" },
299
+ version_not_found: { retryable: false, recovery: "fix_input" },
300
+ version_not_prepared: { retryable: false, recovery: "fix_input" },
301
+ version_not_promotable: { retryable: false, recovery: "fix_input" },
302
+ version_not_ready: { retryable: true, recovery: "wait" },
303
+ version_quota_exceeded: { retryable: false, recovery: "fix_input" },
304
+ version_total_bytes_exceeded: { retryable: false, recovery: "fix_input" },
305
+ webhook_delivery_budget_exceeded: { retryable: false, recovery: "fix_input" },
306
+ whois_unavailable: { retryable: true, recovery: "retry" },
307
+ wp_cloud_anonymous_pool_required: { retryable: false, recovery: "fix_input" },
308
+ wp_cloud_assignment_kind_mismatch: { retryable: false, recovery: "fix_input" },
309
+ wp_cloud_assignment_space_mismatch: { retryable: false, recovery: "fix_input" },
310
+ wp_cloud_assignment_team_mismatch: { retryable: false, recovery: "fix_input" },
311
+ wp_cloud_client_in_use: { retryable: false, recovery: "fix_input" },
312
+ wp_cloud_client_not_found: { retryable: false, recovery: "fix_input" },
313
+ wp_cloud_site_still_assigned: { retryable: false, recovery: "fix_input" },
314
+ wp_cloud_team_shared_site_exists: { retryable: false, recovery: "fix_input" },
315
+ wp_cloud_webhook_secret_not_configured: { retryable: false, recovery: "contact_support" },
316
+ zero_artifact_abi_mismatch: { retryable: false, recovery: "fix_input" },
317
+ zero_artifact_invalid: { retryable: false, recovery: "fix_input" },
318
+ zero_artifact_malformed: { retryable: false, recovery: "fix_input" },
319
+ zero_artifact_path_invalid: { retryable: false, recovery: "fix_input" },
320
+ zero_artifact_unreadable: { retryable: false, recovery: "fix_input" },
321
+ zero_auth_unavailable: { retryable: false, recovery: "fix_input" },
322
+ zero_blob_key_invalid: { retryable: false, recovery: "fix_input" },
323
+ zero_blob_store_full: { retryable: false, recovery: "fix_input" },
324
+ zero_blob_too_large: { retryable: false, recovery: "fix_input" },
325
+ zero_blob_value_invalid: { retryable: false, recovery: "fix_input" },
326
+ zero_bootstrap_encode_failed: { retryable: true, recovery: "retry" },
327
+ zero_bytecode_hash_mismatch: { retryable: false, recovery: "fix_input" },
328
+ zero_bytecode_invalid: { retryable: false, recovery: "fix_input" },
329
+ zero_bytecode_path_invalid: { retryable: false, recovery: "fix_input" },
330
+ zero_bytecode_unreadable: { retryable: false, recovery: "fix_input" },
331
+ zero_client_bundle_not_loaded: { retryable: false, recovery: "fix_input" },
332
+ zero_db_connect_failed: { retryable: true, recovery: "retry" },
333
+ zero_db_execute_failed: { retryable: false, recovery: "fix_input" },
334
+ zero_db_host_install_failed: { retryable: false, recovery: "fix_input" },
335
+ zero_db_operation_invalid: { retryable: false, recovery: "fix_input" },
336
+ zero_db_operation_too_large: { retryable: false, recovery: "fix_input" },
337
+ zero_db_param_invalid: { retryable: false, recovery: "fix_input" },
338
+ zero_db_query_failed: { retryable: false, recovery: "fix_input" },
339
+ zero_db_row_invalid: { retryable: false, recovery: "fix_input" },
340
+ zero_db_sql_invalid: { retryable: false, recovery: "fix_input" },
341
+ zero_db_too_many_params: { retryable: false, recovery: "fix_input" },
342
+ zero_db_transaction_commit_failed: { retryable: true, recovery: "retry" },
343
+ zero_db_transaction_invalid: { retryable: false, recovery: "fix_input" },
344
+ zero_db_transaction_start_failed: { retryable: true, recovery: "retry" },
345
+ zero_db_url_invalid: { retryable: false, recovery: "fix_input" },
346
+ zero_db_url_missing: { retryable: false, recovery: "fix_input" },
347
+ zero_dev_endpoint_failed: { retryable: false, recovery: "fix_input" },
348
+ zero_dump_query_invalid: { retryable: false, recovery: "fix_input" },
349
+ zero_endpoint_index_invalid: { retryable: false, recovery: "fix_input" },
350
+ zero_endpoint_index_malformed: { retryable: false, recovery: "fix_input" },
351
+ zero_endpoint_index_path_invalid: { retryable: false, recovery: "fix_input" },
352
+ zero_endpoint_index_unreadable: { retryable: false, recovery: "fix_input" },
353
+ zero_endpoint_mismatch: { retryable: false, recovery: "fix_input" },
354
+ zero_endpoint_not_found: { retryable: false, recovery: "fix_input" },
355
+ zero_envelope_encode_failed: { retryable: true, recovery: "retry" },
356
+ zero_js_context_init_failed: { retryable: true, recovery: "retry" },
357
+ zero_js_execution_failed: { retryable: false, recovery: "fix_input" },
358
+ zero_js_execution_timeout: { retryable: false, recovery: "fix_input" },
359
+ zero_js_globals_failed: { retryable: false, recovery: "fix_input" },
360
+ zero_js_response_malformed: { retryable: false, recovery: "fix_input" },
361
+ zero_js_runtime_init_failed: { retryable: true, recovery: "retry" },
362
+ zero_log_query_invalid: { retryable: false, recovery: "fix_input" },
363
+ zero_method_not_allowed: { retryable: false, recovery: "fix_input" },
364
+ zero_query_name_missing: { retryable: false, recovery: "fix_input" },
365
+ zero_realtime_forbidden: { retryable: false, recovery: "re_auth" },
366
+ zero_realtime_message_invalid: { retryable: false, recovery: "fix_input" },
367
+ zero_realtime_operation_unsupported: { retryable: false, recovery: "fix_input" },
368
+ zero_realtime_query_invalid: { retryable: false, recovery: "fix_input" },
369
+ zero_realtime_space_required: { retryable: false, recovery: "fix_input" },
370
+ zero_realtime_unavailable: { retryable: false, recovery: "fix_input" },
371
+ zero_realtime_websocket_forbidden: { retryable: false, recovery: "re_auth" },
372
+ zero_replay_failed: { retryable: true, recovery: "retry" },
373
+ zero_replay_query_invalid: { retryable: false, recovery: "fix_input" },
374
+ zero_replay_unavailable: { retryable: false, recovery: "fix_input" },
375
+ zero_request_body_too_large: { retryable: false, recovery: "fix_input" },
376
+ zero_response_too_large: { retryable: false, recovery: "fix_input" },
377
+ zero_run_operation_unsupported: { retryable: false, recovery: "fix_input" },
378
+ zero_runner_envelope_invalid: { retryable: false, recovery: "fix_input" },
379
+ zero_runner_failed: { retryable: false, recovery: "fix_input" },
380
+ zero_runner_invalid_body: { retryable: false, recovery: "fix_input" },
381
+ zero_runner_invalid_response: { retryable: false, recovery: "fix_input" },
382
+ zero_runner_invalid_status: { retryable: false, recovery: "fix_input" },
383
+ zero_runner_protocol_unsupported: { retryable: false, recovery: "fix_input" },
384
+ zero_runner_response_encode_failed: { retryable: false, recovery: "fix_input" },
385
+ zero_runner_stdin_invalid: { retryable: true, recovery: "retry" },
386
+ zero_runner_stdin_too_large: { retryable: false, recovery: "fix_input" },
387
+ zero_runner_unavailable: { retryable: false, recovery: "fix_input" },
388
+ zero_source_compile_failed: { retryable: false, recovery: "fix_input" },
389
+ zero_source_hash_mismatch: { retryable: false, recovery: "fix_input" },
390
+ zero_source_invalid: { retryable: false, recovery: "fix_input" },
391
+ zero_source_path_invalid: { retryable: false, recovery: "fix_input" },
392
+ zero_source_unreadable: { retryable: false, recovery: "fix_input" },
393
+ };
394
+ /**
395
+ * Resolve the metadata for an error code, degrading to a safe `contact_support` default for
396
+ * codes outside the table (dynamic provider passthrough, codes from a newer control plane).
397
+ */
398
+ export function errorCodeMeta(code) {
399
+ return ERROR_CODE_META[code] ?? DEFAULT_ERROR_CODE_META;
400
+ }
@@ -0,0 +1,13 @@
1
+ import { ERROR_DOCS_BASE_URL } from "../brand.js";
2
+ export { ERROR_DOCS_BASE_URL };
3
+ /** `docsUrl` derivation rule: docs origin + `/{code}`. Asserted by the conformance suite. */
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_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_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"];
6
+ export type ErrorCode = (typeof ERROR_CODES)[number];
7
+ export declare function isErrorCode(value: string): value is ErrorCode;
8
+ /**
9
+ * Narrow a dynamically-sourced code (diagnostic conversions, provider passthrough) into the
10
+ * table, degrading to `fallback` for codes outside it. Literal constructions never use this;
11
+ * they are typed against `ErrorCode` directly.
12
+ */
13
+ export declare function toErrorCode(value: string | null | undefined, fallback: ErrorCode): ErrorCode;