@spacefast/common 0.0.13 → 0.0.17
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/client-registry.d.ts +22 -0
- package/dist/agents/client-registry.js +41 -0
- package/dist/agents/connect-targets.d.ts +51 -6
- package/dist/agents/connect-targets.js +93 -28
- package/dist/brand.d.ts +0 -11
- package/dist/brand.js +0 -20
- package/dist/config/domains.d.ts +15 -6
- package/dist/config/domains.js +24 -10
- package/dist/config/postgres-budget.d.ts +3 -0
- package/dist/config/postgres-budget.js +6 -1
- package/dist/config/postgres-budget.json +2 -1
- package/dist/contracts/abuse.js +1 -1
- package/dist/contracts/access.d.ts +149 -44
- package/dist/contracts/access.js +94 -8
- package/dist/contracts/activity.js +5 -1
- package/dist/contracts/api-keys.js +9 -9
- package/dist/contracts/archives.js +11 -11
- package/dist/contracts/beta.js +1 -1
- package/dist/contracts/builds.js +14 -14
- package/dist/contracts/channels.js +2 -2
- package/dist/contracts/comments.d.ts +86 -15
- package/dist/contracts/comments.js +116 -20
- package/dist/contracts/common.d.ts +12 -12
- package/dist/contracts/common.js +33 -30
- package/dist/contracts/continuation.js +5 -5
- package/dist/contracts/data-source-routes.js +1 -1
- package/dist/contracts/device-auth.d.ts +6 -6
- package/dist/contracts/device-auth.js +12 -12
- package/dist/contracts/docs.d.ts +10 -10
- package/dist/contracts/domains.js +39 -33
- package/dist/contracts/enums.d.ts +2 -10
- package/dist/contracts/enums.js +0 -2
- package/dist/contracts/error-code-meta.d.ts +116 -47
- package/dist/contracts/error-code-meta.js +37 -16
- package/dist/contracts/error-codes.d.ts +7 -4
- package/dist/contracts/error-codes.js +46 -21
- package/dist/contracts/events.d.ts +10 -3
- package/dist/contracts/events.js +33 -5
- package/dist/contracts/execution.d.ts +26 -0
- package/dist/contracts/execution.js +21 -0
- package/dist/contracts/feature-lifecycle.d.ts +21 -24
- package/dist/contracts/feature-lifecycle.js +28 -26
- package/dist/contracts/features.js +4 -4
- package/dist/contracts/functions.d.ts +8 -140
- package/dist/contracts/functions.js +9 -19
- package/dist/contracts/git.d.ts +1 -1
- package/dist/contracts/grants.d.ts +96 -79
- package/dist/contracts/grants.js +130 -43
- package/dist/contracts/ids.d.ts +2 -2
- package/dist/contracts/ids.js +2 -4
- package/dist/contracts/internal.js +2 -2
- package/dist/contracts/mcp.d.ts +17 -556
- package/dist/contracts/mcp.js +9 -103
- package/dist/contracts/me.js +3 -4
- package/dist/contracts/notifications.d.ts +108 -0
- package/dist/contracts/notifications.js +54 -0
- package/dist/contracts/oauth-resources.d.ts +18 -1
- package/dist/contracts/oauth-resources.js +22 -2
- package/dist/contracts/operations.d.ts +2 -50
- package/dist/contracts/operations.js +0 -19
- package/dist/contracts/pages.d.ts +8 -4
- package/dist/contracts/pages.js +16 -3
- package/dist/contracts/platform.js +10 -8
- package/dist/contracts/problem-document.d.ts +14 -0
- package/dist/contracts/problem-document.js +35 -0
- package/dist/contracts/push-new.d.ts +21 -6
- package/dist/contracts/push-new.js +3 -7
- package/dist/contracts/resources.d.ts +8 -7
- package/dist/contracts/resources.js +9 -6
- package/dist/contracts/runtime-api.d.ts +162 -92
- package/dist/contracts/runtime-api.js +99 -27
- package/dist/contracts/runtime-app.d.ts +41 -11
- package/dist/contracts/runtime-app.js +22 -1
- package/dist/contracts/runtime-db.d.ts +424 -0
- package/dist/contracts/runtime-db.js +108 -0
- package/dist/contracts/runtime-storage.d.ts +120 -0
- package/dist/contracts/runtime-storage.js +40 -0
- package/dist/contracts/sf-config-v1.d.ts +49 -1
- package/dist/contracts/sf-config-v1.js +2 -2
- package/dist/contracts/sites.d.ts +1 -0
- package/dist/contracts/sites.js +20 -12
- package/dist/contracts/space-config.d.ts +62 -22
- package/dist/contracts/space-config.js +173 -47
- package/dist/contracts/spaces.d.ts +79 -45
- package/dist/contracts/spaces.js +66 -50
- package/dist/contracts/superadmin-spaces.d.ts +13 -2
- package/dist/contracts/superadmin-spaces.js +15 -0
- package/dist/contracts/superadmin-tenants.js +4 -4
- package/dist/contracts/superadmin.d.ts +4 -0
- package/dist/contracts/superadmin.js +14 -1
- package/dist/contracts/tags.d.ts +17 -17
- package/dist/contracts/tags.js +1 -1
- package/dist/contracts/teams.js +25 -16
- package/dist/contracts/theme-json.js +1 -1
- package/dist/contracts/transfers.js +4 -4
- package/dist/contracts/variables.js +3 -3
- package/dist/contracts/zero.d.ts +204 -338
- package/dist/contracts/zero.js +94 -98
- package/dist/dashboard-paths/index.d.ts +16 -1
- package/dist/dashboard-paths/index.js +18 -0
- package/dist/docs/agent-handoff-document.d.ts +2 -2
- package/dist/docs/agent-handoff-document.js +8 -7
- package/dist/docs/agent-prose.d.ts +22 -3
- package/dist/docs/agent-prose.js +221 -51
- package/dist/docs/agent-setup.d.ts +13 -10
- package/dist/docs/agent-setup.js +279 -53
- package/dist/docs/agent-solutions.d.ts +6 -6
- package/dist/docs/agent-solutions.js +23 -21
- package/dist/docs/catalog.d.ts +29 -74
- package/dist/docs/catalog.js +65 -92
- package/dist/docs/error-docs.js +293 -221
- package/dist/docs/skill-distribution.d.ts +2 -0
- package/dist/docs/skill-distribution.js +7 -4
- package/dist/docs/skills.d.ts +546 -0
- package/dist/docs/skills.js +340 -0
- package/dist/utils/browser-credential.d.ts +19 -0
- package/dist/utils/browser-credential.js +62 -0
- package/dist/utils/comment-avatars.d.ts +7 -0
- package/dist/utils/comment-avatars.js +42 -0
- package/dist/utils/content-type.d.ts +3 -3
- package/dist/utils/content-type.js +38 -61
- package/dist/utils/domain-diagnostics.d.ts +5 -5
- package/dist/utils/domain-diagnostics.js +21 -10
- package/dist/utils/local-space-state.d.ts +78 -4
- package/dist/utils/local-space-state.js +383 -82
- package/dist/utils/one-shot-replay.d.ts +14 -0
- package/dist/utils/one-shot-replay.js +21 -0
- package/dist/utils/page-preview.d.ts +7 -0
- package/dist/utils/page-preview.js +9 -0
- package/dist/utils/pages.d.ts +2 -11
- package/dist/utils/pages.js +58 -14
- package/dist/utils/publish-form-data.d.ts +22 -0
- package/dist/utils/publish-form-data.js +26 -0
- package/dist/utils/publish-policy.js +20 -4
- package/dist/utils/query-keys.d.ts +7 -4
- package/dist/utils/query-keys.js +13 -4
- package/dist/utils/runtime-paths.d.ts +3 -0
- package/dist/utils/runtime-paths.js +7 -0
- package/dist/utils/secure-local-file.d.ts +73 -0
- package/dist/utils/secure-local-file.js +1373 -0
- package/dist/utils/space-config.d.ts +13 -4
- package/dist/utils/space-config.js +123 -15
- package/dist/utils/storage-policy.d.ts +20 -0
- package/dist/utils/storage-policy.fixtures.json +174 -0
- package/dist/utils/storage-policy.js +193 -0
- package/dist/utils/upload-session.d.ts +12 -1
- package/dist/utils/upload-session.js +37 -2
- package/dist/utils/version-file-browser.d.ts +13 -0
- package/dist/utils/version-file-browser.js +59 -0
- package/package.json +19 -1
- package/dist/contracts/mounts.d.ts +0 -142
- package/dist/contracts/mounts.js +0 -56
- package/dist/utils/asset-fingerprint.d.ts +0 -64
- package/dist/utils/asset-fingerprint.js +0 -620
|
@@ -78,10 +78,10 @@ export declare function siteClassIsShared(value: SiteClass): boolean;
|
|
|
78
78
|
export declare function siteClassIsDedicated(value: SiteClass): boolean;
|
|
79
79
|
export declare const publishSourceKindValues: readonly ["direct_upload", "cli", "dashboard", "api", "git", "import", "agent", "build", "variable_update", "config_update"];
|
|
80
80
|
export declare const publishSourceKind: z.ZodEnum<{
|
|
81
|
-
api: "api";
|
|
82
|
-
dashboard: "dashboard";
|
|
83
81
|
build: "build";
|
|
84
82
|
agent: "agent";
|
|
83
|
+
api: "api";
|
|
84
|
+
dashboard: "dashboard";
|
|
85
85
|
direct_upload: "direct_upload";
|
|
86
86
|
cli: "cli";
|
|
87
87
|
git: "git";
|
|
@@ -166,14 +166,6 @@ export declare const enforcementTier: z.ZodEnum<{
|
|
|
166
166
|
space_takedown: "space_takedown";
|
|
167
167
|
account_suspend: "account_suspend";
|
|
168
168
|
}>;
|
|
169
|
-
export declare const cachePurgeAction: z.ZodEnum<{
|
|
170
|
-
invalidate: "invalidate";
|
|
171
|
-
}>;
|
|
172
|
-
export declare const cachePurgeTarget: z.ZodEnum<{
|
|
173
|
-
space: "space";
|
|
174
|
-
domain: "domain";
|
|
175
|
-
path: "path";
|
|
176
|
-
}>;
|
|
177
169
|
export declare const operationStatus: z.ZodEnum<{
|
|
178
170
|
failed: "failed";
|
|
179
171
|
canceled: "canceled";
|
package/dist/contracts/enums.js
CHANGED
|
@@ -213,6 +213,4 @@ export const SAFETY_SEVERITY = {
|
|
|
213
213
|
export const safetySeverity = z.number().int().min(1).max(5);
|
|
214
214
|
export const enforcementTierValues = ["record", "space_takedown", "account_suspend"];
|
|
215
215
|
export const enforcementTier = z.enum(enforcementTierValues);
|
|
216
|
-
export const cachePurgeAction = z.enum(["invalidate"]);
|
|
217
|
-
export const cachePurgeTarget = z.enum(["space", "domain", "path"]);
|
|
218
216
|
export const operationStatus = z.enum(["queued", "running", "succeeded", "failed", "canceled"]);
|
|
@@ -27,10 +27,6 @@ export declare const ERROR_CODE_META: {
|
|
|
27
27
|
readonly retryable: false;
|
|
28
28
|
readonly recovery: "re_auth";
|
|
29
29
|
};
|
|
30
|
-
readonly access_scope_suggestion: {
|
|
31
|
-
readonly retryable: false;
|
|
32
|
-
readonly recovery: "fix_input";
|
|
33
|
-
};
|
|
34
30
|
readonly account_suspended: {
|
|
35
31
|
readonly retryable: false;
|
|
36
32
|
readonly recovery: "contact_support";
|
|
@@ -190,6 +186,10 @@ export declare const ERROR_CODE_META: {
|
|
|
190
186
|
readonly retryable: false;
|
|
191
187
|
readonly recovery: "fix_input";
|
|
192
188
|
};
|
|
189
|
+
readonly config_functions_key_removed: {
|
|
190
|
+
readonly retryable: false;
|
|
191
|
+
readonly recovery: "fix_input";
|
|
192
|
+
};
|
|
193
193
|
readonly config_invalid: {
|
|
194
194
|
readonly retryable: false;
|
|
195
195
|
readonly recovery: "fix_input";
|
|
@@ -198,6 +198,18 @@ export declare const ERROR_CODE_META: {
|
|
|
198
198
|
readonly retryable: false;
|
|
199
199
|
readonly recovery: "fix_input";
|
|
200
200
|
};
|
|
201
|
+
readonly config_name_too_long: {
|
|
202
|
+
readonly retryable: false;
|
|
203
|
+
readonly recovery: "fix_input";
|
|
204
|
+
};
|
|
205
|
+
readonly config_runtime_entry_missing: {
|
|
206
|
+
readonly retryable: false;
|
|
207
|
+
readonly recovery: "fix_input";
|
|
208
|
+
};
|
|
209
|
+
readonly config_runtime_invalid_kind: {
|
|
210
|
+
readonly retryable: false;
|
|
211
|
+
readonly recovery: "fix_input";
|
|
212
|
+
};
|
|
201
213
|
readonly config_templates_over_limit: {
|
|
202
214
|
readonly retryable: false;
|
|
203
215
|
readonly recovery: "fix_input";
|
|
@@ -244,6 +256,10 @@ export declare const ERROR_CODE_META: {
|
|
|
244
256
|
readonly retryable: false;
|
|
245
257
|
readonly recovery: "fix_input";
|
|
246
258
|
};
|
|
259
|
+
readonly db_not_available: {
|
|
260
|
+
readonly retryable: false;
|
|
261
|
+
readonly recovery: "fix_input";
|
|
262
|
+
};
|
|
247
263
|
readonly device_authorization_failed: {
|
|
248
264
|
readonly retryable: false;
|
|
249
265
|
readonly recovery: "re_auth";
|
|
@@ -717,11 +733,11 @@ export declare const ERROR_CODE_META: {
|
|
|
717
733
|
readonly recovery: "wait";
|
|
718
734
|
readonly next: readonly ["Retry after the Retry-After seconds"];
|
|
719
735
|
};
|
|
720
|
-
readonly
|
|
736
|
+
readonly member_already_exists: {
|
|
721
737
|
readonly retryable: false;
|
|
722
738
|
readonly recovery: "fix_input";
|
|
723
739
|
};
|
|
724
|
-
readonly
|
|
740
|
+
readonly method_not_allowed: {
|
|
725
741
|
readonly retryable: false;
|
|
726
742
|
readonly recovery: "fix_input";
|
|
727
743
|
};
|
|
@@ -729,6 +745,10 @@ export declare const ERROR_CODE_META: {
|
|
|
729
745
|
readonly retryable: false;
|
|
730
746
|
readonly recovery: "fix_input";
|
|
731
747
|
};
|
|
748
|
+
readonly name_managed_by_config: {
|
|
749
|
+
readonly retryable: false;
|
|
750
|
+
readonly recovery: "fix_input";
|
|
751
|
+
};
|
|
732
752
|
readonly nameserver_delegation_required: {
|
|
733
753
|
readonly retryable: false;
|
|
734
754
|
readonly recovery: "fix_input";
|
|
@@ -869,10 +889,6 @@ export declare const ERROR_CODE_META: {
|
|
|
869
889
|
readonly retryable: false;
|
|
870
890
|
readonly recovery: "fix_input";
|
|
871
891
|
};
|
|
872
|
-
readonly publish_reference_missing: {
|
|
873
|
-
readonly retryable: false;
|
|
874
|
-
readonly recovery: "fix_input";
|
|
875
|
-
};
|
|
876
892
|
readonly publish_setup_failed: {
|
|
877
893
|
readonly retryable: true;
|
|
878
894
|
readonly recovery: "retry";
|
|
@@ -906,6 +922,10 @@ export declare const ERROR_CODE_META: {
|
|
|
906
922
|
readonly retryable: false;
|
|
907
923
|
readonly recovery: "fix_input";
|
|
908
924
|
};
|
|
925
|
+
readonly resource_revision_changed: {
|
|
926
|
+
readonly retryable: false;
|
|
927
|
+
readonly recovery: "fix_input";
|
|
928
|
+
};
|
|
909
929
|
readonly routing_rules_over_plan: {
|
|
910
930
|
readonly retryable: false;
|
|
911
931
|
readonly recovery: "fix_input";
|
|
@@ -922,6 +942,10 @@ export declare const ERROR_CODE_META: {
|
|
|
922
942
|
readonly retryable: false;
|
|
923
943
|
readonly recovery: "re_auth";
|
|
924
944
|
};
|
|
945
|
+
readonly runtime_dev_unsupported: {
|
|
946
|
+
readonly retryable: false;
|
|
947
|
+
readonly recovery: "fix_input";
|
|
948
|
+
};
|
|
925
949
|
readonly runtime_engine_zip_missing: {
|
|
926
950
|
readonly retryable: false;
|
|
927
951
|
readonly recovery: "contact_support";
|
|
@@ -946,6 +970,10 @@ export declare const ERROR_CODE_META: {
|
|
|
946
970
|
readonly retryable: false;
|
|
947
971
|
readonly recovery: "re_auth";
|
|
948
972
|
};
|
|
973
|
+
readonly runtime_kind_mismatch: {
|
|
974
|
+
readonly retryable: false;
|
|
975
|
+
readonly recovery: "fix_input";
|
|
976
|
+
};
|
|
949
977
|
readonly runtime_management_unavailable: {
|
|
950
978
|
readonly retryable: true;
|
|
951
979
|
readonly recovery: "retry";
|
|
@@ -994,6 +1022,11 @@ export declare const ERROR_CODE_META: {
|
|
|
994
1022
|
readonly retryable: false;
|
|
995
1023
|
readonly recovery: "fix_input";
|
|
996
1024
|
};
|
|
1025
|
+
readonly service_booting: {
|
|
1026
|
+
readonly retryable: true;
|
|
1027
|
+
readonly recovery: "wait";
|
|
1028
|
+
readonly next: readonly ["Retry after the Retry-After seconds"];
|
|
1029
|
+
};
|
|
997
1030
|
readonly service_signature_invalid: {
|
|
998
1031
|
readonly retryable: false;
|
|
999
1032
|
readonly recovery: "re_auth";
|
|
@@ -1064,7 +1097,7 @@ export declare const ERROR_CODE_META: {
|
|
|
1064
1097
|
readonly space_claimed_credential_available: {
|
|
1065
1098
|
readonly retryable: false;
|
|
1066
1099
|
readonly recovery: "re_auth";
|
|
1067
|
-
readonly next: readonly ["bash scripts/continue.sh", "MCP: call
|
|
1100
|
+
readonly next: readonly ["bash scripts/continue.sh", "MCP On-Device: call publish again to exchange the locally held credential and retry", "curl -sS -X POST -H 'Authorization: Bearer <claim-token>' https://api.spacefast.com/v1/anonymous-claim/exchange"];
|
|
1068
1101
|
};
|
|
1069
1102
|
readonly space_disabled: {
|
|
1070
1103
|
readonly retryable: false;
|
|
@@ -1122,6 +1155,18 @@ export declare const ERROR_CODE_META: {
|
|
|
1122
1155
|
readonly retryable: false;
|
|
1123
1156
|
readonly recovery: "fix_input";
|
|
1124
1157
|
};
|
|
1158
|
+
readonly space_person_already_member: {
|
|
1159
|
+
readonly retryable: false;
|
|
1160
|
+
readonly recovery: "fix_input";
|
|
1161
|
+
};
|
|
1162
|
+
readonly space_person_invitation_pending: {
|
|
1163
|
+
readonly retryable: false;
|
|
1164
|
+
readonly recovery: "fix_input";
|
|
1165
|
+
};
|
|
1166
|
+
readonly space_person_self_invite: {
|
|
1167
|
+
readonly retryable: false;
|
|
1168
|
+
readonly recovery: "fix_input";
|
|
1169
|
+
};
|
|
1125
1170
|
readonly space_ref_ambiguous: {
|
|
1126
1171
|
readonly retryable: false;
|
|
1127
1172
|
readonly recovery: "fix_input";
|
|
@@ -1146,50 +1191,62 @@ export declare const ERROR_CODE_META: {
|
|
|
1146
1191
|
readonly retryable: false;
|
|
1147
1192
|
readonly recovery: "fix_input";
|
|
1148
1193
|
};
|
|
1149
|
-
readonly
|
|
1194
|
+
readonly static_runtime_control_path_not_supported: {
|
|
1150
1195
|
readonly retryable: false;
|
|
1151
1196
|
readonly recovery: "fix_input";
|
|
1152
1197
|
};
|
|
1153
|
-
readonly
|
|
1154
|
-
readonly retryable:
|
|
1155
|
-
readonly recovery: "
|
|
1198
|
+
readonly static_runtime_required: {
|
|
1199
|
+
readonly retryable: false;
|
|
1200
|
+
readonly recovery: "fix_input";
|
|
1156
1201
|
};
|
|
1157
|
-
readonly
|
|
1202
|
+
readonly storage_auth_required: {
|
|
1158
1203
|
readonly retryable: false;
|
|
1159
1204
|
readonly recovery: "re_auth";
|
|
1160
1205
|
};
|
|
1161
|
-
readonly
|
|
1206
|
+
readonly storage_bucket_unavailable: {
|
|
1207
|
+
readonly retryable: true;
|
|
1208
|
+
readonly recovery: "retry";
|
|
1209
|
+
};
|
|
1210
|
+
readonly storage_content_blocked: {
|
|
1162
1211
|
readonly retryable: false;
|
|
1163
1212
|
readonly recovery: "fix_input";
|
|
1164
1213
|
};
|
|
1165
|
-
readonly
|
|
1214
|
+
readonly storage_delete_forbidden: {
|
|
1215
|
+
readonly retryable: false;
|
|
1216
|
+
readonly recovery: "re_auth";
|
|
1217
|
+
};
|
|
1218
|
+
readonly storage_empty_file: {
|
|
1166
1219
|
readonly retryable: false;
|
|
1167
1220
|
readonly recovery: "fix_input";
|
|
1168
1221
|
};
|
|
1169
|
-
readonly
|
|
1170
|
-
readonly retryable:
|
|
1171
|
-
readonly recovery: "
|
|
1222
|
+
readonly storage_file_too_large: {
|
|
1223
|
+
readonly retryable: false;
|
|
1224
|
+
readonly recovery: "fix_input";
|
|
1172
1225
|
};
|
|
1173
|
-
readonly
|
|
1226
|
+
readonly storage_key_invalid: {
|
|
1174
1227
|
readonly retryable: false;
|
|
1175
1228
|
readonly recovery: "fix_input";
|
|
1176
1229
|
};
|
|
1177
|
-
readonly
|
|
1230
|
+
readonly storage_object_not_found: {
|
|
1178
1231
|
readonly retryable: false;
|
|
1179
1232
|
readonly recovery: "fix_input";
|
|
1180
1233
|
};
|
|
1181
|
-
readonly
|
|
1234
|
+
readonly storage_quota_already_unlimited: {
|
|
1182
1235
|
readonly retryable: false;
|
|
1183
1236
|
readonly recovery: "fix_input";
|
|
1184
1237
|
};
|
|
1185
|
-
readonly
|
|
1186
|
-
readonly retryable:
|
|
1187
|
-
readonly recovery: "
|
|
1238
|
+
readonly storage_quota_decrease_not_supported: {
|
|
1239
|
+
readonly retryable: false;
|
|
1240
|
+
readonly recovery: "fix_input";
|
|
1188
1241
|
};
|
|
1189
1242
|
readonly storage_quota_exceeded: {
|
|
1190
1243
|
readonly retryable: false;
|
|
1191
1244
|
readonly recovery: "fix_input";
|
|
1192
1245
|
};
|
|
1246
|
+
readonly storage_unavailable: {
|
|
1247
|
+
readonly retryable: true;
|
|
1248
|
+
readonly recovery: "retry";
|
|
1249
|
+
};
|
|
1193
1250
|
readonly storage_usage_unavailable: {
|
|
1194
1251
|
readonly retryable: true;
|
|
1195
1252
|
readonly recovery: "retry";
|
|
@@ -1542,6 +1599,30 @@ export declare const ERROR_CODE_META: {
|
|
|
1542
1599
|
readonly retryable: false;
|
|
1543
1600
|
readonly recovery: "fix_input";
|
|
1544
1601
|
};
|
|
1602
|
+
readonly zero_db_export_cursor_invalid: {
|
|
1603
|
+
readonly retryable: false;
|
|
1604
|
+
readonly recovery: "fix_input";
|
|
1605
|
+
};
|
|
1606
|
+
readonly zero_db_export_failed: {
|
|
1607
|
+
readonly retryable: true;
|
|
1608
|
+
readonly recovery: "retry";
|
|
1609
|
+
};
|
|
1610
|
+
readonly zero_db_export_page_too_large: {
|
|
1611
|
+
readonly retryable: false;
|
|
1612
|
+
readonly recovery: "fix_input";
|
|
1613
|
+
};
|
|
1614
|
+
readonly zero_db_export_query_invalid: {
|
|
1615
|
+
readonly retryable: false;
|
|
1616
|
+
readonly recovery: "fix_input";
|
|
1617
|
+
};
|
|
1618
|
+
readonly zero_db_export_schema_changed: {
|
|
1619
|
+
readonly retryable: false;
|
|
1620
|
+
readonly recovery: "retry";
|
|
1621
|
+
};
|
|
1622
|
+
readonly zero_db_export_schema_unavailable: {
|
|
1623
|
+
readonly retryable: false;
|
|
1624
|
+
readonly recovery: "contact_support";
|
|
1625
|
+
};
|
|
1545
1626
|
readonly zero_db_host_install_failed: {
|
|
1546
1627
|
readonly retryable: false;
|
|
1547
1628
|
readonly recovery: "fix_input";
|
|
@@ -1570,6 +1651,14 @@ export declare const ERROR_CODE_META: {
|
|
|
1570
1651
|
readonly retryable: false;
|
|
1571
1652
|
readonly recovery: "fix_input";
|
|
1572
1653
|
};
|
|
1654
|
+
readonly zero_db_target_denied: {
|
|
1655
|
+
readonly retryable: false;
|
|
1656
|
+
readonly recovery: "fix_input";
|
|
1657
|
+
};
|
|
1658
|
+
readonly zero_db_tls_required: {
|
|
1659
|
+
readonly retryable: false;
|
|
1660
|
+
readonly recovery: "fix_input";
|
|
1661
|
+
};
|
|
1573
1662
|
readonly zero_db_too_many_params: {
|
|
1574
1663
|
readonly retryable: false;
|
|
1575
1664
|
readonly recovery: "fix_input";
|
|
@@ -1846,26 +1935,6 @@ export declare const ERROR_CODE_META: {
|
|
|
1846
1935
|
readonly retryable: false;
|
|
1847
1936
|
readonly recovery: "fix_input";
|
|
1848
1937
|
};
|
|
1849
|
-
readonly zero_source_compile_failed: {
|
|
1850
|
-
readonly retryable: false;
|
|
1851
|
-
readonly recovery: "fix_input";
|
|
1852
|
-
};
|
|
1853
|
-
readonly zero_source_hash_mismatch: {
|
|
1854
|
-
readonly retryable: false;
|
|
1855
|
-
readonly recovery: "fix_input";
|
|
1856
|
-
};
|
|
1857
|
-
readonly zero_source_invalid: {
|
|
1858
|
-
readonly retryable: false;
|
|
1859
|
-
readonly recovery: "fix_input";
|
|
1860
|
-
};
|
|
1861
|
-
readonly zero_source_path_invalid: {
|
|
1862
|
-
readonly retryable: false;
|
|
1863
|
-
readonly recovery: "fix_input";
|
|
1864
|
-
};
|
|
1865
|
-
readonly zero_source_unreadable: {
|
|
1866
|
-
readonly retryable: false;
|
|
1867
|
-
readonly recovery: "fix_input";
|
|
1868
|
-
};
|
|
1869
1938
|
};
|
|
1870
1939
|
/**
|
|
1871
1940
|
* Resolve the metadata for an error code, degrading to a safe `contact_support` default for
|
|
@@ -12,7 +12,6 @@ export const ERROR_CODE_META = {
|
|
|
12
12
|
},
|
|
13
13
|
abuse_takedown: { retryable: false, recovery: "contact_support" },
|
|
14
14
|
access_denied: { retryable: false, recovery: "re_auth" },
|
|
15
|
-
access_scope_suggestion: { retryable: false, recovery: "fix_input" },
|
|
16
15
|
account_suspended: { retryable: false, recovery: "contact_support" },
|
|
17
16
|
agent_handoff_declined: { retryable: false, recovery: "re_auth" },
|
|
18
17
|
agent_handoff_limit_reached: { retryable: false, recovery: "fix_input" },
|
|
@@ -68,8 +67,12 @@ export const ERROR_CODE_META = {
|
|
|
68
67
|
cli_upgrade_required: { retryable: false, recovery: "fix_input" },
|
|
69
68
|
comment_screenshot_rate_limited: { retryable: true, recovery: "wait" },
|
|
70
69
|
config_file_too_large: { retryable: false, recovery: "fix_input" },
|
|
70
|
+
config_functions_key_removed: { retryable: false, recovery: "fix_input" },
|
|
71
71
|
config_invalid: { retryable: false, recovery: "fix_input" },
|
|
72
72
|
config_meta_too_long: { retryable: false, recovery: "fix_input" },
|
|
73
|
+
config_name_too_long: { retryable: false, recovery: "fix_input" },
|
|
74
|
+
config_runtime_entry_missing: { retryable: false, recovery: "fix_input" },
|
|
75
|
+
config_runtime_invalid_kind: { retryable: false, recovery: "fix_input" },
|
|
73
76
|
config_templates_over_limit: { retryable: false, recovery: "fix_input" },
|
|
74
77
|
continuation_unavailable: {
|
|
75
78
|
retryable: false,
|
|
@@ -97,6 +100,7 @@ export const ERROR_CODE_META = {
|
|
|
97
100
|
csam_policy_floor: { retryable: false, recovery: "contact_support" },
|
|
98
101
|
custom_certificates_require_dedicated_site: { retryable: false, recovery: "fix_input" },
|
|
99
102
|
data_location_immutable: { retryable: false, recovery: "fix_input" },
|
|
103
|
+
db_not_available: { retryable: false, recovery: "fix_input" },
|
|
100
104
|
device_authorization_failed: { retryable: false, recovery: "re_auth" },
|
|
101
105
|
device_verification_rate_limited: {
|
|
102
106
|
retryable: true,
|
|
@@ -237,9 +241,10 @@ export const ERROR_CODE_META = {
|
|
|
237
241
|
recovery: "wait",
|
|
238
242
|
next: ["Retry after the Retry-After seconds"],
|
|
239
243
|
},
|
|
240
|
-
mcp_acted_for_team_deleted: { retryable: false, recovery: "fix_input" },
|
|
241
244
|
member_already_exists: { retryable: false, recovery: "fix_input" },
|
|
245
|
+
method_not_allowed: { retryable: false, recovery: "fix_input" },
|
|
242
246
|
missing_route_param: { retryable: false, recovery: "fix_input" },
|
|
247
|
+
name_managed_by_config: { retryable: false, recovery: "fix_input" },
|
|
243
248
|
nameserver_delegation_required: { retryable: false, recovery: "fix_input" },
|
|
244
249
|
nameserver_divergence: { retryable: false, recovery: "fix_input" },
|
|
245
250
|
noop_publish: { retryable: false, recovery: "fix_input" },
|
|
@@ -275,7 +280,6 @@ export const ERROR_CODE_META = {
|
|
|
275
280
|
publish_not_cancelable: { retryable: false, recovery: "fix_input" },
|
|
276
281
|
publish_path_collision: { retryable: false, recovery: "fix_input" },
|
|
277
282
|
publish_path_invalid: { retryable: false, recovery: "fix_input" },
|
|
278
|
-
publish_reference_missing: { retryable: false, recovery: "fix_input" },
|
|
279
283
|
publish_setup_failed: { retryable: true, recovery: "retry" },
|
|
280
284
|
publish_snapshot_empty: { retryable: false, recovery: "fix_input" },
|
|
281
285
|
publish_upload_failed: { retryable: true, recovery: "retry" },
|
|
@@ -288,16 +292,19 @@ export const ERROR_CODE_META = {
|
|
|
288
292
|
},
|
|
289
293
|
registration_expired: { retryable: false, recovery: "fix_input" },
|
|
290
294
|
registration_expiring: { retryable: false, recovery: "fix_input" },
|
|
295
|
+
resource_revision_changed: { retryable: false, recovery: "fix_input" },
|
|
291
296
|
routing_rules_over_plan: { retryable: false, recovery: "fix_input" },
|
|
292
297
|
runtime_action_forbidden: { retryable: false, recovery: "re_auth" },
|
|
293
298
|
runtime_api_not_found: { retryable: false, recovery: "fix_input" },
|
|
294
299
|
runtime_callback_forbidden: { retryable: false, recovery: "re_auth" },
|
|
300
|
+
runtime_dev_unsupported: { retryable: false, recovery: "fix_input" },
|
|
295
301
|
runtime_engine_zip_missing: { retryable: false, recovery: "contact_support" },
|
|
296
302
|
runtime_hostname_unassigned: { retryable: false, recovery: "fix_input" },
|
|
297
303
|
runtime_instance_mismatch: { retryable: false, recovery: "fix_input" },
|
|
298
304
|
runtime_jti_missing: { retryable: false, recovery: "re_auth" },
|
|
299
305
|
runtime_jti_replayed: { retryable: false, recovery: "re_auth" },
|
|
300
306
|
runtime_jwks_key_missing: { retryable: false, recovery: "re_auth" },
|
|
307
|
+
runtime_kind_mismatch: { retryable: false, recovery: "fix_input" },
|
|
301
308
|
runtime_management_unavailable: { retryable: true, recovery: "retry" },
|
|
302
309
|
runtime_not_provisioned: { retryable: true, recovery: "wait" },
|
|
303
310
|
runtime_operation_missing: { retryable: false, recovery: "fix_input" },
|
|
@@ -310,6 +317,11 @@ export const ERROR_CODE_META = {
|
|
|
310
317
|
runtime_upload_required: { retryable: false, recovery: "fix_input" },
|
|
311
318
|
scan_pending: { retryable: true, recovery: "wait" },
|
|
312
319
|
secret_variable_in_template: { retryable: false, recovery: "fix_input" },
|
|
320
|
+
service_booting: {
|
|
321
|
+
retryable: true,
|
|
322
|
+
recovery: "wait",
|
|
323
|
+
next: ["Retry after the Retry-After seconds"],
|
|
324
|
+
},
|
|
313
325
|
service_signature_invalid: { retryable: false, recovery: "re_auth" },
|
|
314
326
|
site_already_deleted: { retryable: false, recovery: "fix_input" },
|
|
315
327
|
site_has_live_spaces: { retryable: false, recovery: "fix_input" },
|
|
@@ -343,7 +355,7 @@ export const ERROR_CODE_META = {
|
|
|
343
355
|
recovery: "re_auth",
|
|
344
356
|
next: [
|
|
345
357
|
"bash scripts/continue.sh",
|
|
346
|
-
"MCP: call
|
|
358
|
+
"MCP On-Device: call publish again to exchange the locally held credential and retry",
|
|
347
359
|
"curl -sS -X POST -H 'Authorization: Bearer <claim-token>' https://api.spacefast.com/v1/anonymous-claim/exchange",
|
|
348
360
|
],
|
|
349
361
|
},
|
|
@@ -361,23 +373,29 @@ export const ERROR_CODE_META = {
|
|
|
361
373
|
space_no_live_version: { retryable: false, recovery: "fix_input" },
|
|
362
374
|
space_not_disabled: { retryable: false, recovery: "fix_input" },
|
|
363
375
|
space_not_restorable: { retryable: false, recovery: "fix_input" },
|
|
376
|
+
space_person_already_member: { retryable: false, recovery: "fix_input" },
|
|
377
|
+
space_person_invitation_pending: { retryable: false, recovery: "fix_input" },
|
|
378
|
+
space_person_self_invite: { retryable: false, recovery: "fix_input" },
|
|
364
379
|
space_ref_ambiguous: { retryable: false, recovery: "fix_input" },
|
|
365
380
|
space_ref_required: { retryable: false, recovery: "fix_input" },
|
|
366
381
|
space_transferring: { retryable: false, recovery: "fix_input" },
|
|
367
382
|
space_unclaimed: { retryable: false, recovery: "fix_input" },
|
|
368
383
|
ssl_renewal_blocked: { retryable: false, recovery: "fix_input" },
|
|
369
384
|
static_control_file_not_supported: { retryable: false, recovery: "fix_input" },
|
|
370
|
-
static_mount_path_conflict: { retryable: false, recovery: "fix_input" },
|
|
371
|
-
static_mount_source_not_ready: { retryable: true, recovery: "wait" },
|
|
372
|
-
static_mount_target_forbidden: { retryable: false, recovery: "re_auth" },
|
|
373
|
-
static_mount_target_in_use: { retryable: false, recovery: "fix_input" },
|
|
374
|
-
static_mount_target_not_live: { retryable: false, recovery: "fix_input" },
|
|
375
|
-
static_mount_target_not_ready: { retryable: true, recovery: "wait" },
|
|
376
|
-
static_mount_target_not_static: { retryable: false, recovery: "fix_input" },
|
|
377
385
|
static_runtime_control_path_not_supported: { retryable: false, recovery: "fix_input" },
|
|
378
386
|
static_runtime_required: { retryable: false, recovery: "fix_input" },
|
|
387
|
+
storage_auth_required: { retryable: false, recovery: "re_auth" },
|
|
379
388
|
storage_bucket_unavailable: { retryable: true, recovery: "retry" },
|
|
389
|
+
storage_content_blocked: { retryable: false, recovery: "fix_input" },
|
|
390
|
+
storage_delete_forbidden: { retryable: false, recovery: "re_auth" },
|
|
391
|
+
storage_empty_file: { retryable: false, recovery: "fix_input" },
|
|
392
|
+
storage_file_too_large: { retryable: false, recovery: "fix_input" },
|
|
393
|
+
storage_key_invalid: { retryable: false, recovery: "fix_input" },
|
|
394
|
+
storage_object_not_found: { retryable: false, recovery: "fix_input" },
|
|
395
|
+
storage_quota_already_unlimited: { retryable: false, recovery: "fix_input" },
|
|
396
|
+
storage_quota_decrease_not_supported: { retryable: false, recovery: "fix_input" },
|
|
380
397
|
storage_quota_exceeded: { retryable: false, recovery: "fix_input" },
|
|
398
|
+
storage_unavailable: { retryable: true, recovery: "retry" },
|
|
381
399
|
storage_usage_unavailable: { retryable: true, recovery: "retry" },
|
|
382
400
|
stripe_error: { retryable: true, recovery: "retry" },
|
|
383
401
|
superseded_by_publish: { retryable: false, recovery: "fix_input" },
|
|
@@ -466,6 +484,12 @@ export const ERROR_CODE_META = {
|
|
|
466
484
|
zero_client_bundle_not_loaded: { retryable: false, recovery: "fix_input" },
|
|
467
485
|
zero_db_connect_failed: { retryable: true, recovery: "retry" },
|
|
468
486
|
zero_db_execute_failed: { retryable: false, recovery: "fix_input" },
|
|
487
|
+
zero_db_export_cursor_invalid: { retryable: false, recovery: "fix_input" },
|
|
488
|
+
zero_db_export_failed: { retryable: true, recovery: "retry" },
|
|
489
|
+
zero_db_export_page_too_large: { retryable: false, recovery: "fix_input" },
|
|
490
|
+
zero_db_export_query_invalid: { retryable: false, recovery: "fix_input" },
|
|
491
|
+
zero_db_export_schema_changed: { retryable: false, recovery: "retry" },
|
|
492
|
+
zero_db_export_schema_unavailable: { retryable: false, recovery: "contact_support" },
|
|
469
493
|
zero_db_host_install_failed: { retryable: false, recovery: "fix_input" },
|
|
470
494
|
zero_db_operation_invalid: { retryable: false, recovery: "fix_input" },
|
|
471
495
|
zero_db_operation_too_large: { retryable: false, recovery: "fix_input" },
|
|
@@ -473,6 +497,8 @@ export const ERROR_CODE_META = {
|
|
|
473
497
|
zero_db_query_failed: { retryable: false, recovery: "fix_input" },
|
|
474
498
|
zero_db_row_invalid: { retryable: false, recovery: "fix_input" },
|
|
475
499
|
zero_db_sql_invalid: { retryable: false, recovery: "fix_input" },
|
|
500
|
+
zero_db_target_denied: { retryable: false, recovery: "fix_input" },
|
|
501
|
+
zero_db_tls_required: { retryable: false, recovery: "fix_input" },
|
|
476
502
|
zero_db_too_many_params: { retryable: false, recovery: "fix_input" },
|
|
477
503
|
zero_db_transaction_active: { retryable: false, recovery: "contact_support" },
|
|
478
504
|
zero_db_transaction_commit_failed: { retryable: true, recovery: "retry" },
|
|
@@ -542,11 +568,6 @@ export const ERROR_CODE_META = {
|
|
|
542
568
|
zero_runs_require_runtime_compiler: { retryable: false, recovery: "fix_input" },
|
|
543
569
|
zero_runs_too_many: { retryable: false, recovery: "fix_input" },
|
|
544
570
|
zero_shopify_unavailable: { retryable: false, recovery: "fix_input" },
|
|
545
|
-
zero_source_compile_failed: { retryable: false, recovery: "fix_input" },
|
|
546
|
-
zero_source_hash_mismatch: { retryable: false, recovery: "fix_input" },
|
|
547
|
-
zero_source_invalid: { retryable: false, recovery: "fix_input" },
|
|
548
|
-
zero_source_path_invalid: { retryable: false, recovery: "fix_input" },
|
|
549
|
-
zero_source_unreadable: { retryable: false, recovery: "fix_input" },
|
|
550
571
|
};
|
|
551
572
|
/**
|
|
552
573
|
* Resolve the metadata for an error code, degrading to a safe `contact_support` default for
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export declare const ERROR_DOCS_BASE_URL: string;
|
|
2
|
+
/** Media type of every 4xx/5xx response body (RFC 9457 problem details). */
|
|
3
|
+
export declare const PROBLEM_CONTENT_TYPE = "application/problem+json";
|
|
4
|
+
/** Problem `type` URI derivation rule: docs origin + `/{code}`. Asserted by the conformance suite. */
|
|
4
5
|
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", "access_scope_suggestion", "account_suspended", "agent_handoff_declined", "agent_handoff_limit_reached", "agent_handoff_origin_unsupported", "ambiguous_space_slug", "anonymous_expired", "anonymous_pool_unavailable", "anonymous_publish_rate_limited", "anonymous_space_limit_reached", "api_key_scope_underivable", "archive_body_required", "archive_too_large", "auth_code_required", "authorization_pending", "billing_receipt_invalid", "billing_receipt_not_bound_to_team", "billing_store_not_configured", "billing_subscription_conflict", "billing_unknown_product", "build_command_missing", "build_execution_unavailable", "build_failed", "build_install_failed", "build_no_index_html", "build_not_created", "build_oom", "build_output_dir_missing", "build_timeout", "cache_purge_domain_required", "cache_purge_path_required", "channel_name_reserved", "channel_pointer_moved", "channel_unsupported", "claim_blocked_takedown", "claim_target_not_found", "claimed_space_quota_exceeded", "cli_upgrade_required", "comment_screenshot_rate_limited", "config_file_too_large", "config_invalid", "config_meta_too_long", "config_templates_over_limit", "continuation_unavailable", "continuation_used", "credential_expired", "credential_not_yet_valid", "credential_retired", "credential_revoked", "csam_blocked", "csam_policy_floor", "custom_certificates_require_dedicated_site", "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", "enforcement_policy_overlap", "event_payload_too_large", "event_rate_limited", "expired_token", "export_archive_not_ready", "export_version_not_found", "feature_unavailable", "files_mode_does_not_support_spa", "forbidden", "free_external_proxy_disabled", "google_play_webhook_identity_not_configured", "idempotency_conflict_in_progress", "idempotency_key_reused", "import_archive_not_uploaded", "import_not_cancelable", "import_not_waiting_for_archive", "incumbent_controls_dns", "inject_invalid", "inject_snippet_too_large", "internal_error", "invalid_claim_token", "invalid_continuation_token", "invalid_data_location", "invalid_device_code", "invalid_domain", "invalid_domain_name", "invalid_file_path", "invalid_google_play_webhook_identity", "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_user_code", "invalid_version_path", "invalid_webhook_events", "invalid_webhook_payload", "invalid_webhook_signature", "invalid_webhook_url", "invalid_zero_realtime_event", "invalid_zero_realtime_replay_query", "invitation_already_exists", "invitation_email_mismatch", "invitation_expired", "invitation_not_pending", "ip_blocked", "job_not_found", "job_not_promotable", "job_not_removable", "job_not_retryable", "last_owner", "log_retention_clamped", "lost_domain_control", "maintenance_in_progress", "malware_detected", "managed_domain_protected", "manifest_body_too_large", "manifest_duplicate_path", "manifest_too_many_files", "mcp_acted_for_team_deleted", "member_already_exists", "missing_route_param", "move_target_capacity_lost", "nameserver_delegation_required", "nameserver_divergence", "noop_publish", "not_enrolled", "not_found", "path_case_collision", "path_too_long", "placement_invalid_burstable", "placement_mode_requires_plan", "plan_grant_already_active", "plan_grant_already_revoked", "platform_tenant_immutable_client", "policy_exceeds_grantor", "principal_space_mismatch", "provider_error", "provider_job_failed", "provider_job_timeout", "provider_runtime_feature_unsupported", "provider_site_id_required", "proxy_upstream_denied", "proxy_upstream_unresolved", "publish_archive_compression_ratio_exceeded", "publish_archive_expanded_size_exceeded", "publish_archive_file_count_exceeded", "publish_archive_too_large", "publish_base_changed", "publish_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_reference_missing", "publish_setup_failed", "publish_snapshot_empty", "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_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", "service_signature_invalid", "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_capacity_warming", "space_claim_unavailable", "space_claimed_credential_available", "space_disabled", "space_expired", "space_has_active_publish", "space_has_active_version", "space_hostname_identity_missing", "space_import_archive_invalid", "space_import_archive_too_large", "space_import_config_only_archive", "space_import_runtime_schema_unsupported", "space_move_would_strand_zero_data", "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_mount_path_conflict", "static_mount_source_not_ready", "static_mount_target_forbidden", "static_mount_target_in_use", "static_mount_target_not_live", "static_mount_target_not_ready", "static_mount_target_not_static", "static_runtime_control_path_not_supported", "static_runtime_required", "storage_bucket_unavailable", "storage_quota_exceeded", "storage_usage_unavailable", "stripe_error", "superseded_by_publish", "takeover_notice_window", "team_member_quota_exceeded", "team_ref_required", "team_required", "team_slug_conflict", "template_file_too_large", "template_not_in_version", "template_variable_unresolved", "tenant_id_mismatch", "tenant_not_found", "tenant_not_granted", "tenant_past_due", "tenant_selection_required", "tenant_suspended", "theme_value_invalid", "transfer_cross_tenant_unsupported", "transfer_move_failed", "transfer_not_cancelable", "transfer_push_failed", "transfer_source_changed", "transfer_target_same_as_source", "transfer_verify_failed", "unauthorized", "unsupported_publish_media_type", "upload_hash_mismatch", "upload_path_not_canonical", "upload_path_not_declared", "upload_size_mismatch", "user_banned", "validation_error", "variable_cascade_failed", "verification_required", "version_already_live", "version_artifact_not_found", "version_busy", "version_canceled", "version_closed", "version_expired", "version_failed", "version_file_count_exceeded", "version_file_not_found", "version_file_too_large", "version_files_missing", "version_in_use", "version_live", "version_no_publishable_files", "version_not_finalizable", "version_not_found", "version_not_prepared", "version_not_promotable", "version_not_ready", "version_quota_exceeded", "version_total_bytes_exceeded", "webhook_delivery_budget_exceeded", "whois_unavailable", "wp_cloud_anonymous_pool_required", "wp_cloud_assignment_kind_mismatch", "wp_cloud_assignment_space_mismatch", "wp_cloud_assignment_team_mismatch", "wp_cloud_client_in_use", "wp_cloud_client_not_found", "wp_cloud_site_still_assigned", "wp_cloud_team_shared_site_exists", "wp_cloud_webhook_secret_not_configured", "zero_activating", "zero_ai_unavailable", "zero_artifact_abi_mismatch", "zero_artifact_invalid", "zero_artifact_malformed", "zero_artifact_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_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_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_endpoint_compile_failed", "zero_endpoint_conflict", "zero_endpoint_duplicate", "zero_endpoint_id_duplicate", "zero_endpoint_index_invalid", "zero_endpoint_index_malformed", "zero_endpoint_index_path_invalid", "zero_endpoint_index_unreadable", "zero_endpoint_invalid", "zero_endpoint_mismatch", "zero_endpoint_not_found", "zero_endpoints_invalid", "zero_endpoints_too_many", "zero_envelope_encode_failed", "zero_js_context_init_failed", "zero_js_execution_failed", "zero_js_execution_timeout", "zero_js_globals_failed", "zero_js_response_malformed", "zero_js_runtime_init_failed", "zero_log_query_invalid", "zero_method_not_allowed", "zero_migration_failed", "zero_query_name_missing", "zero_realtime_forbidden", "zero_realtime_message_invalid", "zero_realtime_operation_unsupported", "zero_realtime_query_invalid", "zero_realtime_space_required", "zero_realtime_unavailable", "zero_realtime_websocket_forbidden", "zero_replay_failed", "zero_replay_query_invalid", "zero_replay_unavailable", "zero_request_body_too_large", "zero_requires_dedicated_plan", "zero_response_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_shopify_unavailable", "zero_source_compile_failed", "zero_source_hash_mismatch", "zero_source_invalid", "zero_source_path_invalid", "zero_source_unreadable"];
|
|
6
|
+
/** Problem `title` derivation rule: the snake_case code as a sentence ("version_not_found" → "Version not found"). */
|
|
7
|
+
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_pool_unavailable", "anonymous_publish_rate_limited", "anonymous_space_limit_reached", "api_key_scope_underivable", "archive_body_required", "archive_too_large", "auth_code_required", "authorization_pending", "billing_receipt_invalid", "billing_receipt_not_bound_to_team", "billing_store_not_configured", "billing_subscription_conflict", "billing_unknown_product", "build_command_missing", "build_execution_unavailable", "build_failed", "build_install_failed", "build_no_index_html", "build_not_created", "build_oom", "build_output_dir_missing", "build_timeout", "cache_purge_domain_required", "cache_purge_path_required", "channel_name_reserved", "channel_pointer_moved", "channel_unsupported", "claim_blocked_takedown", "claim_target_not_found", "claimed_space_quota_exceeded", "cli_upgrade_required", "comment_screenshot_rate_limited", "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", "continuation_unavailable", "continuation_used", "credential_expired", "credential_not_yet_valid", "credential_retired", "credential_revoked", "csam_blocked", "csam_policy_floor", "custom_certificates_require_dedicated_site", "data_location_immutable", "db_not_available", "device_authorization_failed", "device_verification_rate_limited", "dns_export_required", "dns_field_conflict", "dns_field_not_applicable", "dns_import_partial_visibility", "dns_provider_auth_expired", "dns_provider_batch_unsupported", "dns_provider_change_pending", "dns_provider_conflict", "dns_provider_connection_in_use", "dns_provider_connection_unavailable", "dns_provider_controlled_desired_state", "dns_provider_credentials_expired", "dns_provider_feature_descriptors", "dns_provider_feature_unavailable", "dns_provider_field_unsupported", "dns_provider_future_authoritative_backend", "dns_provider_missing_permission", "dns_provider_not_connected", "dns_provider_operation_failed", "dns_provider_permission_denied", "dns_provider_rate_limited", "dns_provider_replace_all_requires_fresh_plan", "dns_provider_replace_all_write_strategy", "dns_provider_snapshot_stale", "dns_provider_snapshot_unavailable", "dns_provider_temporarily_unavailable", "dns_provider_timeout", "dns_provider_validation_failed", "dns_provider_workflow_templates", "dns_provider_zone_not_found", "dns_record_conflicts_with_managed", "dns_record_managed", "dns_record_not_found", "domain_already_exists", "domain_bound", "domain_facet_already_managed", "domain_facet_external", "domain_facet_not_applicable", "domain_hostname_site_mismatch", "domain_in_use", "domain_lookup_rate_limited", "domain_not_bound", "domain_quota_exceeded", "domain_registration_active", "domain_registration_not_renewable", "domain_reserved_suffix", "domain_transfer_active", "domain_wildcard_label", "domain_wildcard_not_enabled", "download_required", "duplicate_version_path", "enforcement_policy_overlap", "event_payload_too_large", "event_rate_limited", "expired_token", "export_archive_not_ready", "export_version_not_found", "feature_unavailable", "files_mode_does_not_support_spa", "forbidden", "free_external_proxy_disabled", "google_play_webhook_identity_not_configured", "idempotency_conflict_in_progress", "idempotency_key_reused", "import_archive_not_uploaded", "import_not_cancelable", "import_not_waiting_for_archive", "incumbent_controls_dns", "inject_invalid", "inject_snippet_too_large", "internal_error", "invalid_claim_token", "invalid_continuation_token", "invalid_data_location", "invalid_device_code", "invalid_domain", "invalid_domain_name", "invalid_file_path", "invalid_google_play_webhook_identity", "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_user_code", "invalid_version_path", "invalid_webhook_events", "invalid_webhook_payload", "invalid_webhook_signature", "invalid_webhook_url", "invalid_zero_realtime_event", "invalid_zero_realtime_replay_query", "invitation_already_exists", "invitation_email_mismatch", "invitation_expired", "invitation_not_pending", "ip_blocked", "job_not_found", "job_not_promotable", "job_not_removable", "job_not_retryable", "last_owner", "log_retention_clamped", "lost_domain_control", "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", "noop_publish", "not_enrolled", "not_found", "path_case_collision", "path_too_long", "placement_invalid_burstable", "placement_mode_requires_plan", "plan_grant_already_active", "plan_grant_already_revoked", "platform_tenant_immutable_client", "policy_exceeds_grantor", "principal_space_mismatch", "provider_error", "provider_job_failed", "provider_job_timeout", "provider_runtime_feature_unsupported", "provider_site_id_required", "proxy_upstream_denied", "proxy_upstream_unresolved", "publish_archive_compression_ratio_exceeded", "publish_archive_expanded_size_exceeded", "publish_archive_file_count_exceeded", "publish_archive_too_large", "publish_base_changed", "publish_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_setup_failed", "publish_snapshot_empty", "publish_upload_failed", "publish_verification_failed", "queue_not_found", "rate_limited", "registration_expired", "registration_expiring", "resource_revision_changed", "routing_rules_over_plan", "runtime_action_forbidden", "runtime_api_not_found", "runtime_callback_forbidden", "runtime_dev_unsupported", "runtime_engine_zip_missing", "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_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", "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_capacity_warming", "space_claim_unavailable", "space_claimed_credential_available", "space_disabled", "space_expired", "space_has_active_publish", "space_has_active_version", "space_hostname_identity_missing", "space_import_archive_invalid", "space_import_archive_too_large", "space_import_config_only_archive", "space_import_runtime_schema_unsupported", "space_move_would_strand_zero_data", "space_moving", "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_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", "storage_usage_unavailable", "stripe_error", "superseded_by_publish", "takeover_notice_window", "team_member_quota_exceeded", "team_ref_required", "team_required", "team_slug_conflict", "template_file_too_large", "template_not_in_version", "template_variable_unresolved", "tenant_id_mismatch", "tenant_not_found", "tenant_not_granted", "tenant_past_due", "tenant_selection_required", "tenant_suspended", "theme_value_invalid", "transfer_cross_tenant_unsupported", "transfer_move_failed", "transfer_not_cancelable", "transfer_push_failed", "transfer_source_changed", "transfer_target_same_as_source", "transfer_verify_failed", "unauthorized", "unsupported_publish_media_type", "upload_hash_mismatch", "upload_path_not_canonical", "upload_path_not_declared", "upload_size_mismatch", "user_banned", "validation_error", "variable_cascade_failed", "verification_required", "version_already_live", "version_artifact_not_found", "version_busy", "version_canceled", "version_closed", "version_expired", "version_failed", "version_file_count_exceeded", "version_file_not_found", "version_file_too_large", "version_files_missing", "version_in_use", "version_live", "version_no_publishable_files", "version_not_finalizable", "version_not_found", "version_not_prepared", "version_not_promotable", "version_not_ready", "version_quota_exceeded", "version_total_bytes_exceeded", "webhook_delivery_budget_exceeded", "whois_unavailable", "wp_cloud_anonymous_pool_required", "wp_cloud_assignment_kind_mismatch", "wp_cloud_assignment_space_mismatch", "wp_cloud_assignment_team_mismatch", "wp_cloud_client_in_use", "wp_cloud_client_not_found", "wp_cloud_site_still_assigned", "wp_cloud_team_shared_site_exists", "wp_cloud_webhook_secret_not_configured", "zero_activating", "zero_ai_unavailable", "zero_artifact_abi_mismatch", "zero_artifact_invalid", "zero_artifact_malformed", "zero_artifact_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_endpoint_compile_failed", "zero_endpoint_conflict", "zero_endpoint_duplicate", "zero_endpoint_id_duplicate", "zero_endpoint_index_invalid", "zero_endpoint_index_malformed", "zero_endpoint_index_path_invalid", "zero_endpoint_index_unreadable", "zero_endpoint_invalid", "zero_endpoint_mismatch", "zero_endpoint_not_found", "zero_endpoints_invalid", "zero_endpoints_too_many", "zero_envelope_encode_failed", "zero_js_context_init_failed", "zero_js_execution_failed", "zero_js_execution_timeout", "zero_js_globals_failed", "zero_js_response_malformed", "zero_js_runtime_init_failed", "zero_log_query_invalid", "zero_method_not_allowed", "zero_migration_failed", "zero_query_name_missing", "zero_realtime_forbidden", "zero_realtime_message_invalid", "zero_realtime_operation_unsupported", "zero_realtime_query_invalid", "zero_realtime_space_required", "zero_realtime_unavailable", "zero_realtime_websocket_forbidden", "zero_replay_failed", "zero_replay_query_invalid", "zero_replay_unavailable", "zero_request_body_too_large", "zero_requires_dedicated_plan", "zero_response_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_shopify_unavailable"];
|
|
6
9
|
export type ErrorCode = (typeof ERROR_CODES)[number];
|
|
7
10
|
export declare function isErrorCode(value: string): value is ErrorCode;
|
|
8
11
|
/**
|