@spacefast/common 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/brand-assets/spacefast-favicon.svg +16 -0
- package/brand-assets/spacefast-sf-full-bleed.svg +13 -0
- package/brand-assets/spacefast-wordmark.svg +5 -0
- package/dist/agents/connect-targets.d.ts +6 -1
- package/dist/agents/connect-targets.js +19 -0
- package/dist/brand-assets-build.d.ts +26 -0
- package/dist/brand-assets-build.js +81 -0
- package/dist/brand-assets.d.ts +42 -0
- package/dist/brand-assets.js +30 -0
- package/dist/contracts/access.d.ts +143 -0
- package/dist/contracts/access.js +33 -0
- package/dist/contracts/api-keys.d.ts +123 -0
- package/dist/contracts/api-keys.js +65 -0
- package/dist/contracts/builds.d.ts +40 -0
- package/dist/contracts/builds.js +17 -0
- package/dist/contracts/enums.js +5 -4
- package/dist/contracts/error-code-meta.d.ts +116 -4
- package/dist/contracts/error-code-meta.js +29 -1
- package/dist/contracts/error-codes.d.ts +1 -1
- package/dist/contracts/error-codes.js +28 -0
- package/dist/contracts/feature-lifecycle-core.d.ts +36 -0
- package/dist/contracts/feature-lifecycle-core.js +220 -0
- package/dist/contracts/feature-lifecycle.d.ts +7 -0
- package/dist/contracts/feature-lifecycle.js +31 -0
- package/dist/contracts/generated-feature-launch-entries.d.ts +2 -0
- package/dist/contracts/generated-feature-launch-entries.js +518 -0
- package/dist/contracts/ids.d.ts +4 -0
- package/dist/contracts/ids.js +8 -0
- package/dist/contracts/operations.d.ts +161 -1
- package/dist/contracts/operations.js +49 -1
- package/dist/contracts/platform.d.ts +6 -0
- package/dist/contracts/platform.js +6 -0
- package/dist/contracts/publishes.d.ts +130 -0
- package/dist/contracts/publishes.js +145 -0
- package/dist/contracts/repository-connections.d.ts +3 -0
- package/dist/contracts/repository-connections.js +13 -0
- package/dist/contracts/resources.d.ts +2 -0
- package/dist/contracts/resources.js +10 -2
- package/dist/contracts/runtime-api.d.ts +2 -0
- package/dist/contracts/runtime-api.js +1 -0
- package/dist/contracts/sf-config-v1.d.ts +75 -0
- package/dist/contracts/sf-config-v1.js +6 -0
- package/dist/contracts/spaces.d.ts +12 -3
- package/dist/contracts/spaces.js +22 -2
- package/dist/contracts/superadmin-spaces.d.ts +2 -0
- package/dist/contracts/superadmin-tenants.d.ts +6 -6
- package/dist/contracts/superadmin-tenants.js +6 -11
- package/dist/contracts/teams.d.ts +8 -11
- package/dist/contracts/teams.js +11 -16
- package/dist/docs/agent-setup.d.ts +51 -0
- package/dist/docs/agent-setup.js +168 -3
- package/dist/docs/error-docs.js +113 -1
- package/dist/slug-policy/blocklist.d.ts +4 -0
- package/dist/slug-policy/blocklist.js +122 -0
- package/dist/slug-policy/index.d.ts +17 -0
- package/dist/slug-policy/index.js +86 -0
- package/dist/utils/concurrency.d.ts +1 -0
- package/dist/utils/concurrency.js +22 -0
- package/dist/utils/email.d.ts +1 -0
- package/dist/utils/email.js +3 -0
- package/dist/utils/query-keys.d.ts +1 -0
- package/dist/utils/query-keys.js +4 -0
- package/dist/utils/sf-config-v1.d.ts +2 -0
- package/dist/utils/sf-config-v1.js +542 -0
- package/package.json +20 -1
|
@@ -233,6 +233,71 @@ export const ApiKeyPatchRequestSchema = z
|
|
|
233
233
|
.refine((value) => Object.keys(value).length > 0, {
|
|
234
234
|
message: "At least one mutable API key field is required.",
|
|
235
235
|
});
|
|
236
|
+
// Target §5C contract (internal-docs/cli-ux-dx-improvement-plan-2026-07-12.html
|
|
237
|
+
// "API key: finite permissions, no broad role"): key creation selects an
|
|
238
|
+
// explicit, finite scope and permission set — never a team-wide role that
|
|
239
|
+
// falls out of an omitted field. This is deliberately a DISJOINT shape from
|
|
240
|
+
// `ApiKeyCreateRequestSchema` (no teamId/preset/policy): the legacy shape
|
|
241
|
+
// stays valid only on the legacy route (api-keys/routes.ts); this is the only
|
|
242
|
+
// request shape the public core contract (api-contracts/core/api-keys.ts)
|
|
243
|
+
// accepts.
|
|
244
|
+
export const ApiKeyScopeSchema = z
|
|
245
|
+
.discriminatedUnion("kind", [
|
|
246
|
+
z.object({ kind: z.literal("team"), teamId: z.string().min(1) }).strict(),
|
|
247
|
+
z.object({ kind: z.literal("space"), spaceId: z.string().min(1) }).strict(),
|
|
248
|
+
])
|
|
249
|
+
.describe("Explicit, finite policy target. A space scope narrows the derived policy to exactly that space — never the owning team's whole tree.");
|
|
250
|
+
export const ApiKeyScopedCreateRequestSchema = z
|
|
251
|
+
.object({
|
|
252
|
+
name: z.string().trim().min(1).max(255).optional().describe("Human-readable key name."),
|
|
253
|
+
scope: ApiKeyScopeSchema,
|
|
254
|
+
permissions: z
|
|
255
|
+
.array(DescribedStatticActionSchema)
|
|
256
|
+
.min(1)
|
|
257
|
+
.max(64)
|
|
258
|
+
.describe("Finite permission set the derived policy grants, and nothing beyond it."),
|
|
259
|
+
metadata: AnyObjectSchema.optional().describe("Caller-supplied metadata."),
|
|
260
|
+
ipAllowlist: z
|
|
261
|
+
.array(z.string().trim().min(1).max(255))
|
|
262
|
+
.max(100)
|
|
263
|
+
.nullable()
|
|
264
|
+
.optional()
|
|
265
|
+
.describe("CIDR/IP allowlist for the new key."),
|
|
266
|
+
expiresAt: z.string().datetime().nullable().optional().describe("Expiry instant."),
|
|
267
|
+
notBefore: z.string().datetime().nullable().optional().describe("Activation instant."),
|
|
268
|
+
})
|
|
269
|
+
.strict();
|
|
270
|
+
export const ApiKeyScopedPatchRequestSchema = z
|
|
271
|
+
.object({
|
|
272
|
+
scope: ApiKeyScopeSchema.optional().describe("Replacement policy target. Must be supplied together with permissions."),
|
|
273
|
+
permissions: z
|
|
274
|
+
.array(DescribedStatticActionSchema)
|
|
275
|
+
.min(1)
|
|
276
|
+
.max(64)
|
|
277
|
+
.optional()
|
|
278
|
+
.describe("Replacement finite permission set. Must be supplied together with scope."),
|
|
279
|
+
metadata: AnyObjectSchema.optional().describe("Replacement caller-supplied metadata."),
|
|
280
|
+
ipAllowlist: z
|
|
281
|
+
.array(z.string().trim().min(1).max(255))
|
|
282
|
+
.max(100)
|
|
283
|
+
.nullable()
|
|
284
|
+
.optional()
|
|
285
|
+
.describe("Replacement CIDR/IP allowlist."),
|
|
286
|
+
expiresAt: z.string().datetime().nullable().optional().describe("Replacement expiry instant."),
|
|
287
|
+
notBefore: z
|
|
288
|
+
.string()
|
|
289
|
+
.datetime()
|
|
290
|
+
.nullable()
|
|
291
|
+
.optional()
|
|
292
|
+
.describe("Replacement activation instant."),
|
|
293
|
+
})
|
|
294
|
+
.strict()
|
|
295
|
+
.refine((value) => Object.keys(value).length > 0, {
|
|
296
|
+
message: "At least one mutable API key field is required.",
|
|
297
|
+
})
|
|
298
|
+
.refine((value) => (value.scope === undefined) === (value.permissions === undefined), {
|
|
299
|
+
message: "scope and permissions must be set together, or both omitted.",
|
|
300
|
+
});
|
|
236
301
|
export const ApiKeyParamsSchema = z.object({
|
|
237
302
|
apiKeyId: z.string().min(1).describe("API key id."),
|
|
238
303
|
});
|
|
@@ -86,11 +86,49 @@ export declare const BuildCreateInputSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
86
86
|
branch: z.ZodOptional<z.ZodString>;
|
|
87
87
|
pullRequestNumber: z.ZodOptional<z.ZodNumber>;
|
|
88
88
|
}, z.core.$strip>], "kind">;
|
|
89
|
+
declare const buildExecutionLaunchSchema: z.ZodObject<{
|
|
90
|
+
state: z.ZodEnum<{
|
|
91
|
+
started: "started";
|
|
92
|
+
starting: "starting";
|
|
93
|
+
rejected: "rejected";
|
|
94
|
+
}>;
|
|
95
|
+
requestedAt: z.ZodString;
|
|
96
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
97
|
+
pid: z.ZodOptional<z.ZodNumber>;
|
|
98
|
+
rejectedReason: z.ZodOptional<z.ZodString>;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
declare const buildExecutionSupervisionSchema: z.ZodObject<{
|
|
101
|
+
generation: z.ZodNumber;
|
|
102
|
+
owner: z.ZodString;
|
|
103
|
+
leaseExpiresAt: z.ZodString;
|
|
104
|
+
}, z.core.$strip>;
|
|
89
105
|
declare const InternalBuildExecutionSchema: z.ZodObject<{
|
|
90
106
|
runner: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
91
107
|
runnerJobId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
92
108
|
sandboxId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
93
109
|
region: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
110
|
+
logOffset: z.ZodOptional<z.ZodNumber>;
|
|
111
|
+
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
112
|
+
terminationReason: z.ZodOptional<z.ZodEnum<{
|
|
113
|
+
command: "command";
|
|
114
|
+
timeout: "timeout";
|
|
115
|
+
}>>;
|
|
116
|
+
launch: z.ZodOptional<z.ZodObject<{
|
|
117
|
+
state: z.ZodEnum<{
|
|
118
|
+
started: "started";
|
|
119
|
+
starting: "starting";
|
|
120
|
+
rejected: "rejected";
|
|
121
|
+
}>;
|
|
122
|
+
requestedAt: z.ZodString;
|
|
123
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
124
|
+
pid: z.ZodOptional<z.ZodNumber>;
|
|
125
|
+
rejectedReason: z.ZodOptional<z.ZodString>;
|
|
126
|
+
}, z.core.$strip>>;
|
|
127
|
+
supervision: z.ZodOptional<z.ZodObject<{
|
|
128
|
+
generation: z.ZodNumber;
|
|
129
|
+
owner: z.ZodString;
|
|
130
|
+
leaseExpiresAt: z.ZodString;
|
|
131
|
+
}, z.core.$strip>>;
|
|
94
132
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
95
133
|
phases: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
96
134
|
phase: z.ZodString;
|
|
@@ -503,6 +541,8 @@ export type InternalBuildSource = z.infer<typeof InternalBuildSourceSchema>;
|
|
|
503
541
|
export type BuildSettings = z.infer<typeof BuildSettingsSchema>;
|
|
504
542
|
export type BuildTarget = z.infer<typeof BuildTargetSchema>;
|
|
505
543
|
export type InternalBuildExecution = z.infer<typeof InternalBuildExecutionSchema>;
|
|
544
|
+
export type InternalBuildExecutionLaunch = z.infer<typeof buildExecutionLaunchSchema>;
|
|
545
|
+
export type InternalBuildExecutionSupervision = z.infer<typeof buildExecutionSupervisionSchema>;
|
|
506
546
|
export type BuildCreateRequest = z.infer<typeof buildCreateRequestSchema>;
|
|
507
547
|
export type BuildCreateResponse = z.infer<typeof buildCreateResponseSchema>;
|
|
508
548
|
export {};
|
package/dist/contracts/builds.js
CHANGED
|
@@ -176,12 +176,29 @@ const buildExecutionPhaseSchema = z.object({
|
|
|
176
176
|
phase: z.string().min(1).describe("Build phase name; see BUILD_PHASES in builds/runner.ts."),
|
|
177
177
|
at: z.string().datetime(),
|
|
178
178
|
});
|
|
179
|
+
const buildExecutionLaunchSchema = z.object({
|
|
180
|
+
state: z.enum(["starting", "started", "rejected"]),
|
|
181
|
+
requestedAt: z.string().datetime(),
|
|
182
|
+
startedAt: z.string().datetime().optional(),
|
|
183
|
+
pid: z.number().int().optional(),
|
|
184
|
+
rejectedReason: z.string().optional(),
|
|
185
|
+
});
|
|
186
|
+
const buildExecutionSupervisionSchema = z.object({
|
|
187
|
+
generation: z.number().int().positive(),
|
|
188
|
+
owner: z.string().min(1),
|
|
189
|
+
leaseExpiresAt: z.string().datetime(),
|
|
190
|
+
});
|
|
179
191
|
const InternalBuildExecutionSchema = z
|
|
180
192
|
.object({
|
|
181
193
|
runner: z.string().nullable().default(null),
|
|
182
194
|
runnerJobId: z.string().nullable().default(null),
|
|
183
195
|
sandboxId: z.string().nullable().default(null),
|
|
184
196
|
region: z.string().nullable().default(null),
|
|
197
|
+
logOffset: z.number().int().nonnegative().optional(),
|
|
198
|
+
exitCode: z.number().int().min(0).max(255).optional(),
|
|
199
|
+
terminationReason: z.enum(["command", "timeout"]).optional(),
|
|
200
|
+
launch: buildExecutionLaunchSchema.optional(),
|
|
201
|
+
supervision: buildExecutionSupervisionSchema.optional(),
|
|
185
202
|
metadata: z.record(z.string(), z.unknown()).default({}),
|
|
186
203
|
phases: z
|
|
187
204
|
.array(buildExecutionPhaseSchema)
|
package/dist/contracts/enums.js
CHANGED
|
@@ -12,10 +12,11 @@ export const spaceStatusValues = [
|
|
|
12
12
|
];
|
|
13
13
|
export const spaceStatus = z.enum(spaceStatusValues);
|
|
14
14
|
// Serving-axis disable reasons (internal-docs/platform.md "Space"): exactly
|
|
15
|
-
// these five.
|
|
16
|
-
//
|
|
17
|
-
// visit-quota pause
|
|
18
|
-
// the claim token stays
|
|
15
|
+
// these five. Confirmed scan takedowns use `abuse_takedown`; infected state and
|
|
16
|
+
// claim invalidation are explicit enforcement effects, not reason metadata.
|
|
17
|
+
// `visit_cap_exceeded` is the anonymous visit-quota pause
|
|
18
|
+
// (ANONYMOUS_PUBLISH_CAPS.maxLifetimeViews): recoverable, the claim token stays
|
|
19
|
+
// intact, and claiming the space restores serving.
|
|
19
20
|
export const spaceDisabledReasonCodeValues = [
|
|
20
21
|
"anonymous_expired",
|
|
21
22
|
"abuse_takedown",
|
|
@@ -54,6 +54,10 @@ export declare const ERROR_CODE_META: {
|
|
|
54
54
|
readonly recovery: "re_auth";
|
|
55
55
|
readonly next: readonly ["sf login", "Claim or delete an existing anonymous space"];
|
|
56
56
|
};
|
|
57
|
+
readonly api_key_scope_underivable: {
|
|
58
|
+
readonly retryable: false;
|
|
59
|
+
readonly recovery: "fix_input";
|
|
60
|
+
};
|
|
57
61
|
readonly archive_body_required: {
|
|
58
62
|
readonly retryable: false;
|
|
59
63
|
readonly recovery: "fix_input";
|
|
@@ -435,6 +439,10 @@ export declare const ERROR_CODE_META: {
|
|
|
435
439
|
readonly retryable: false;
|
|
436
440
|
readonly recovery: "fix_input";
|
|
437
441
|
};
|
|
442
|
+
readonly enforcement_policy_overlap: {
|
|
443
|
+
readonly retryable: false;
|
|
444
|
+
readonly recovery: "fix_input";
|
|
445
|
+
};
|
|
438
446
|
readonly event_payload_too_large: {
|
|
439
447
|
readonly retryable: false;
|
|
440
448
|
readonly recovery: "fix_input";
|
|
@@ -788,6 +796,10 @@ export declare const ERROR_CODE_META: {
|
|
|
788
796
|
readonly retryable: false;
|
|
789
797
|
readonly recovery: "fix_input";
|
|
790
798
|
};
|
|
799
|
+
readonly publish_base_changed: {
|
|
800
|
+
readonly retryable: false;
|
|
801
|
+
readonly recovery: "fix_input";
|
|
802
|
+
};
|
|
791
803
|
readonly publish_config_unsupported: {
|
|
792
804
|
readonly retryable: false;
|
|
793
805
|
readonly recovery: "fix_input";
|
|
@@ -950,6 +962,18 @@ export declare const ERROR_CODE_META: {
|
|
|
950
962
|
readonly recovery: "wait";
|
|
951
963
|
readonly next: readonly ["Retry after the Retry-After seconds"];
|
|
952
964
|
};
|
|
965
|
+
readonly slug_invalid: {
|
|
966
|
+
readonly retryable: false;
|
|
967
|
+
readonly recovery: "fix_input";
|
|
968
|
+
};
|
|
969
|
+
readonly slug_reserved: {
|
|
970
|
+
readonly retryable: false;
|
|
971
|
+
readonly recovery: "fix_input";
|
|
972
|
+
};
|
|
973
|
+
readonly slug_unavailable: {
|
|
974
|
+
readonly retryable: false;
|
|
975
|
+
readonly recovery: "fix_input";
|
|
976
|
+
};
|
|
953
977
|
readonly space_already_claimed: {
|
|
954
978
|
readonly retryable: false;
|
|
955
979
|
readonly recovery: "fix_input";
|
|
@@ -976,6 +1000,10 @@ export declare const ERROR_CODE_META: {
|
|
|
976
1000
|
readonly retryable: false;
|
|
977
1001
|
readonly recovery: "fix_input";
|
|
978
1002
|
};
|
|
1003
|
+
readonly space_hostname_identity_missing: {
|
|
1004
|
+
readonly retryable: false;
|
|
1005
|
+
readonly recovery: "contact_support";
|
|
1006
|
+
};
|
|
979
1007
|
readonly space_import_archive_invalid: {
|
|
980
1008
|
readonly retryable: false;
|
|
981
1009
|
readonly recovery: "fix_input";
|
|
@@ -1320,14 +1348,18 @@ export declare const ERROR_CODE_META: {
|
|
|
1320
1348
|
readonly retryable: false;
|
|
1321
1349
|
readonly recovery: "contact_support";
|
|
1322
1350
|
};
|
|
1323
|
-
readonly zero_artifact_abi_mismatch: {
|
|
1324
|
-
readonly retryable: false;
|
|
1325
|
-
readonly recovery: "fix_input";
|
|
1326
|
-
};
|
|
1327
1351
|
readonly zero_activating: {
|
|
1328
1352
|
readonly retryable: true;
|
|
1329
1353
|
readonly recovery: "wait";
|
|
1330
1354
|
};
|
|
1355
|
+
readonly zero_ai_unavailable: {
|
|
1356
|
+
readonly retryable: false;
|
|
1357
|
+
readonly recovery: "fix_input";
|
|
1358
|
+
};
|
|
1359
|
+
readonly zero_artifact_abi_mismatch: {
|
|
1360
|
+
readonly retryable: false;
|
|
1361
|
+
readonly recovery: "fix_input";
|
|
1362
|
+
};
|
|
1331
1363
|
readonly zero_artifact_invalid: {
|
|
1332
1364
|
readonly retryable: false;
|
|
1333
1365
|
readonly recovery: "fix_input";
|
|
@@ -1336,6 +1368,10 @@ export declare const ERROR_CODE_META: {
|
|
|
1336
1368
|
readonly retryable: false;
|
|
1337
1369
|
readonly recovery: "fix_input";
|
|
1338
1370
|
};
|
|
1371
|
+
readonly zero_artifact_missing: {
|
|
1372
|
+
readonly retryable: false;
|
|
1373
|
+
readonly recovery: "fix_input";
|
|
1374
|
+
};
|
|
1339
1375
|
readonly zero_artifact_path_invalid: {
|
|
1340
1376
|
readonly retryable: false;
|
|
1341
1377
|
readonly recovery: "fix_input";
|
|
@@ -1344,6 +1380,10 @@ export declare const ERROR_CODE_META: {
|
|
|
1344
1380
|
readonly retryable: false;
|
|
1345
1381
|
readonly recovery: "fix_input";
|
|
1346
1382
|
};
|
|
1383
|
+
readonly zero_artifact_untrusted: {
|
|
1384
|
+
readonly retryable: false;
|
|
1385
|
+
readonly recovery: "fix_input";
|
|
1386
|
+
};
|
|
1347
1387
|
readonly zero_auth_unavailable: {
|
|
1348
1388
|
readonly retryable: false;
|
|
1349
1389
|
readonly recovery: "fix_input";
|
|
@@ -1384,6 +1424,10 @@ export declare const ERROR_CODE_META: {
|
|
|
1384
1424
|
readonly retryable: false;
|
|
1385
1425
|
readonly recovery: "fix_input";
|
|
1386
1426
|
};
|
|
1427
|
+
readonly zero_capabilities_encode_failed: {
|
|
1428
|
+
readonly retryable: false;
|
|
1429
|
+
readonly recovery: "fix_input";
|
|
1430
|
+
};
|
|
1387
1431
|
readonly zero_client_bundle_not_loaded: {
|
|
1388
1432
|
readonly retryable: false;
|
|
1389
1433
|
readonly recovery: "fix_input";
|
|
@@ -1456,6 +1500,22 @@ export declare const ERROR_CODE_META: {
|
|
|
1456
1500
|
readonly retryable: false;
|
|
1457
1501
|
readonly recovery: "fix_input";
|
|
1458
1502
|
};
|
|
1503
|
+
readonly zero_endpoint_compile_failed: {
|
|
1504
|
+
readonly retryable: false;
|
|
1505
|
+
readonly recovery: "fix_input";
|
|
1506
|
+
};
|
|
1507
|
+
readonly zero_endpoint_conflict: {
|
|
1508
|
+
readonly retryable: false;
|
|
1509
|
+
readonly recovery: "fix_input";
|
|
1510
|
+
};
|
|
1511
|
+
readonly zero_endpoint_duplicate: {
|
|
1512
|
+
readonly retryable: false;
|
|
1513
|
+
readonly recovery: "fix_input";
|
|
1514
|
+
};
|
|
1515
|
+
readonly zero_endpoint_id_duplicate: {
|
|
1516
|
+
readonly retryable: false;
|
|
1517
|
+
readonly recovery: "fix_input";
|
|
1518
|
+
};
|
|
1459
1519
|
readonly zero_endpoint_index_invalid: {
|
|
1460
1520
|
readonly retryable: false;
|
|
1461
1521
|
readonly recovery: "fix_input";
|
|
@@ -1472,6 +1532,10 @@ export declare const ERROR_CODE_META: {
|
|
|
1472
1532
|
readonly retryable: false;
|
|
1473
1533
|
readonly recovery: "fix_input";
|
|
1474
1534
|
};
|
|
1535
|
+
readonly zero_endpoint_invalid: {
|
|
1536
|
+
readonly retryable: false;
|
|
1537
|
+
readonly recovery: "fix_input";
|
|
1538
|
+
};
|
|
1475
1539
|
readonly zero_endpoint_mismatch: {
|
|
1476
1540
|
readonly retryable: false;
|
|
1477
1541
|
readonly recovery: "fix_input";
|
|
@@ -1480,6 +1544,14 @@ export declare const ERROR_CODE_META: {
|
|
|
1480
1544
|
readonly retryable: false;
|
|
1481
1545
|
readonly recovery: "fix_input";
|
|
1482
1546
|
};
|
|
1547
|
+
readonly zero_endpoints_invalid: {
|
|
1548
|
+
readonly retryable: false;
|
|
1549
|
+
readonly recovery: "fix_input";
|
|
1550
|
+
};
|
|
1551
|
+
readonly zero_endpoints_too_many: {
|
|
1552
|
+
readonly retryable: false;
|
|
1553
|
+
readonly recovery: "fix_input";
|
|
1554
|
+
};
|
|
1483
1555
|
readonly zero_envelope_encode_failed: {
|
|
1484
1556
|
readonly retryable: true;
|
|
1485
1557
|
readonly recovery: "retry";
|
|
@@ -1512,10 +1584,18 @@ export declare const ERROR_CODE_META: {
|
|
|
1512
1584
|
readonly retryable: false;
|
|
1513
1585
|
readonly recovery: "fix_input";
|
|
1514
1586
|
};
|
|
1587
|
+
readonly zero_lookup_invalid: {
|
|
1588
|
+
readonly retryable: false;
|
|
1589
|
+
readonly recovery: "fix_input";
|
|
1590
|
+
};
|
|
1515
1591
|
readonly zero_method_not_allowed: {
|
|
1516
1592
|
readonly retryable: false;
|
|
1517
1593
|
readonly recovery: "fix_input";
|
|
1518
1594
|
};
|
|
1595
|
+
readonly zero_migration_failed: {
|
|
1596
|
+
readonly retryable: false;
|
|
1597
|
+
readonly recovery: "fix_input";
|
|
1598
|
+
};
|
|
1519
1599
|
readonly zero_query_name_missing: {
|
|
1520
1600
|
readonly retryable: false;
|
|
1521
1601
|
readonly recovery: "fix_input";
|
|
@@ -1572,6 +1652,22 @@ export declare const ERROR_CODE_META: {
|
|
|
1572
1652
|
readonly retryable: false;
|
|
1573
1653
|
readonly recovery: "fix_input";
|
|
1574
1654
|
};
|
|
1655
|
+
readonly zero_routes_invalid: {
|
|
1656
|
+
readonly retryable: false;
|
|
1657
|
+
readonly recovery: "fix_input";
|
|
1658
|
+
};
|
|
1659
|
+
readonly zero_run_compile_failed: {
|
|
1660
|
+
readonly retryable: false;
|
|
1661
|
+
readonly recovery: "fix_input";
|
|
1662
|
+
};
|
|
1663
|
+
readonly zero_run_duplicate: {
|
|
1664
|
+
readonly retryable: false;
|
|
1665
|
+
readonly recovery: "fix_input";
|
|
1666
|
+
};
|
|
1667
|
+
readonly zero_run_invalid: {
|
|
1668
|
+
readonly retryable: false;
|
|
1669
|
+
readonly recovery: "fix_input";
|
|
1670
|
+
};
|
|
1575
1671
|
readonly zero_run_operation_unsupported: {
|
|
1576
1672
|
readonly retryable: false;
|
|
1577
1673
|
readonly recovery: "fix_input";
|
|
@@ -1616,6 +1712,22 @@ export declare const ERROR_CODE_META: {
|
|
|
1616
1712
|
readonly retryable: false;
|
|
1617
1713
|
readonly recovery: "fix_input";
|
|
1618
1714
|
};
|
|
1715
|
+
readonly zero_runs_invalid: {
|
|
1716
|
+
readonly retryable: false;
|
|
1717
|
+
readonly recovery: "fix_input";
|
|
1718
|
+
};
|
|
1719
|
+
readonly zero_runs_require_runtime_compiler: {
|
|
1720
|
+
readonly retryable: false;
|
|
1721
|
+
readonly recovery: "fix_input";
|
|
1722
|
+
};
|
|
1723
|
+
readonly zero_runs_too_many: {
|
|
1724
|
+
readonly retryable: false;
|
|
1725
|
+
readonly recovery: "fix_input";
|
|
1726
|
+
};
|
|
1727
|
+
readonly zero_shopify_unavailable: {
|
|
1728
|
+
readonly retryable: false;
|
|
1729
|
+
readonly recovery: "fix_input";
|
|
1730
|
+
};
|
|
1619
1731
|
readonly zero_source_compile_failed: {
|
|
1620
1732
|
readonly retryable: false;
|
|
1621
1733
|
readonly recovery: "fix_input";
|
|
@@ -34,6 +34,7 @@ export const ERROR_CODE_META = {
|
|
|
34
34
|
recovery: "re_auth",
|
|
35
35
|
next: ["sf login", "Claim or delete an existing anonymous space"],
|
|
36
36
|
},
|
|
37
|
+
api_key_scope_underivable: { retryable: false, recovery: "fix_input" },
|
|
37
38
|
archive_body_required: { retryable: false, recovery: "fix_input" },
|
|
38
39
|
archive_too_large: { retryable: false, recovery: "fix_input" },
|
|
39
40
|
auth_code_required: { retryable: false, recovery: "re_auth" },
|
|
@@ -156,6 +157,7 @@ export const ERROR_CODE_META = {
|
|
|
156
157
|
domain_wildcard_not_enabled: { retryable: false, recovery: "fix_input" },
|
|
157
158
|
download_required: { retryable: false, recovery: "fix_input" },
|
|
158
159
|
duplicate_version_path: { retryable: false, recovery: "fix_input" },
|
|
160
|
+
enforcement_policy_overlap: { retryable: false, recovery: "fix_input" },
|
|
159
161
|
event_payload_too_large: { retryable: false, recovery: "fix_input" },
|
|
160
162
|
event_rate_limited: {
|
|
161
163
|
retryable: true,
|
|
@@ -248,6 +250,7 @@ export const ERROR_CODE_META = {
|
|
|
248
250
|
publish_archive_expanded_size_exceeded: { retryable: false, recovery: "fix_input" },
|
|
249
251
|
publish_archive_file_count_exceeded: { retryable: false, recovery: "fix_input" },
|
|
250
252
|
publish_archive_too_large: { retryable: false, recovery: "fix_input" },
|
|
253
|
+
publish_base_changed: { retryable: false, recovery: "fix_input" },
|
|
251
254
|
publish_config_unsupported: { retryable: false, recovery: "fix_input" },
|
|
252
255
|
publish_failed: { retryable: false, recovery: "fix_input" },
|
|
253
256
|
publish_file_missing: { retryable: false, recovery: "fix_input" },
|
|
@@ -296,6 +299,9 @@ export const ERROR_CODE_META = {
|
|
|
296
299
|
recovery: "wait",
|
|
297
300
|
next: ["Retry after the Retry-After seconds"],
|
|
298
301
|
},
|
|
302
|
+
slug_invalid: { retryable: false, recovery: "fix_input" },
|
|
303
|
+
slug_reserved: { retryable: false, recovery: "fix_input" },
|
|
304
|
+
slug_unavailable: { retryable: false, recovery: "fix_input" },
|
|
299
305
|
space_already_claimed: {
|
|
300
306
|
retryable: false,
|
|
301
307
|
recovery: "fix_input",
|
|
@@ -314,6 +320,7 @@ export const ERROR_CODE_META = {
|
|
|
314
320
|
space_disabled: { retryable: false, recovery: "fix_input" },
|
|
315
321
|
space_expired: { retryable: false, recovery: "fix_input" },
|
|
316
322
|
space_has_active_version: { retryable: false, recovery: "fix_input" },
|
|
323
|
+
space_hostname_identity_missing: { retryable: false, recovery: "contact_support" },
|
|
317
324
|
space_import_archive_invalid: { retryable: false, recovery: "fix_input" },
|
|
318
325
|
space_import_archive_too_large: { retryable: false, recovery: "fix_input" },
|
|
319
326
|
space_import_config_only_archive: { retryable: false, recovery: "fix_input" },
|
|
@@ -400,12 +407,15 @@ export const ERROR_CODE_META = {
|
|
|
400
407
|
wp_cloud_site_still_assigned: { retryable: false, recovery: "fix_input" },
|
|
401
408
|
wp_cloud_team_shared_site_exists: { retryable: false, recovery: "fix_input" },
|
|
402
409
|
wp_cloud_webhook_secret_not_configured: { retryable: false, recovery: "contact_support" },
|
|
403
|
-
zero_artifact_abi_mismatch: { retryable: false, recovery: "fix_input" },
|
|
404
410
|
zero_activating: { retryable: true, recovery: "wait" },
|
|
411
|
+
zero_ai_unavailable: { retryable: false, recovery: "fix_input" },
|
|
412
|
+
zero_artifact_abi_mismatch: { retryable: false, recovery: "fix_input" },
|
|
405
413
|
zero_artifact_invalid: { retryable: false, recovery: "fix_input" },
|
|
406
414
|
zero_artifact_malformed: { retryable: false, recovery: "fix_input" },
|
|
415
|
+
zero_artifact_missing: { retryable: false, recovery: "fix_input" },
|
|
407
416
|
zero_artifact_path_invalid: { retryable: false, recovery: "fix_input" },
|
|
408
417
|
zero_artifact_unreadable: { retryable: false, recovery: "fix_input" },
|
|
418
|
+
zero_artifact_untrusted: { retryable: false, recovery: "fix_input" },
|
|
409
419
|
zero_auth_unavailable: { retryable: false, recovery: "fix_input" },
|
|
410
420
|
zero_blob_key_invalid: { retryable: false, recovery: "fix_input" },
|
|
411
421
|
zero_blob_store_full: { retryable: false, recovery: "fix_input" },
|
|
@@ -416,6 +426,7 @@ export const ERROR_CODE_META = {
|
|
|
416
426
|
zero_bytecode_invalid: { retryable: false, recovery: "fix_input" },
|
|
417
427
|
zero_bytecode_path_invalid: { retryable: false, recovery: "fix_input" },
|
|
418
428
|
zero_bytecode_unreadable: { retryable: false, recovery: "fix_input" },
|
|
429
|
+
zero_capabilities_encode_failed: { retryable: false, recovery: "fix_input" },
|
|
419
430
|
zero_client_bundle_not_loaded: { retryable: false, recovery: "fix_input" },
|
|
420
431
|
zero_db_connect_failed: { retryable: true, recovery: "retry" },
|
|
421
432
|
zero_db_execute_failed: { retryable: false, recovery: "fix_input" },
|
|
@@ -434,12 +445,19 @@ export const ERROR_CODE_META = {
|
|
|
434
445
|
zero_db_url_missing: { retryable: false, recovery: "fix_input" },
|
|
435
446
|
zero_dev_endpoint_failed: { retryable: false, recovery: "fix_input" },
|
|
436
447
|
zero_dump_query_invalid: { retryable: false, recovery: "fix_input" },
|
|
448
|
+
zero_endpoint_compile_failed: { retryable: false, recovery: "fix_input" },
|
|
449
|
+
zero_endpoint_conflict: { retryable: false, recovery: "fix_input" },
|
|
450
|
+
zero_endpoint_duplicate: { retryable: false, recovery: "fix_input" },
|
|
451
|
+
zero_endpoint_id_duplicate: { retryable: false, recovery: "fix_input" },
|
|
437
452
|
zero_endpoint_index_invalid: { retryable: false, recovery: "fix_input" },
|
|
438
453
|
zero_endpoint_index_malformed: { retryable: false, recovery: "fix_input" },
|
|
439
454
|
zero_endpoint_index_path_invalid: { retryable: false, recovery: "fix_input" },
|
|
440
455
|
zero_endpoint_index_unreadable: { retryable: false, recovery: "fix_input" },
|
|
456
|
+
zero_endpoint_invalid: { retryable: false, recovery: "fix_input" },
|
|
441
457
|
zero_endpoint_mismatch: { retryable: false, recovery: "fix_input" },
|
|
442
458
|
zero_endpoint_not_found: { retryable: false, recovery: "fix_input" },
|
|
459
|
+
zero_endpoints_invalid: { retryable: false, recovery: "fix_input" },
|
|
460
|
+
zero_endpoints_too_many: { retryable: false, recovery: "fix_input" },
|
|
443
461
|
zero_envelope_encode_failed: { retryable: true, recovery: "retry" },
|
|
444
462
|
zero_js_context_init_failed: { retryable: true, recovery: "retry" },
|
|
445
463
|
zero_js_execution_failed: { retryable: false, recovery: "fix_input" },
|
|
@@ -448,7 +466,9 @@ export const ERROR_CODE_META = {
|
|
|
448
466
|
zero_js_response_malformed: { retryable: false, recovery: "fix_input" },
|
|
449
467
|
zero_js_runtime_init_failed: { retryable: true, recovery: "retry" },
|
|
450
468
|
zero_log_query_invalid: { retryable: false, recovery: "fix_input" },
|
|
469
|
+
zero_lookup_invalid: { retryable: false, recovery: "fix_input" },
|
|
451
470
|
zero_method_not_allowed: { retryable: false, recovery: "fix_input" },
|
|
471
|
+
zero_migration_failed: { retryable: false, recovery: "fix_input" },
|
|
452
472
|
zero_query_name_missing: { retryable: false, recovery: "fix_input" },
|
|
453
473
|
zero_realtime_forbidden: { retryable: false, recovery: "re_auth" },
|
|
454
474
|
zero_realtime_message_invalid: { retryable: false, recovery: "fix_input" },
|
|
@@ -463,6 +483,10 @@ export const ERROR_CODE_META = {
|
|
|
463
483
|
zero_request_body_too_large: { retryable: false, recovery: "fix_input" },
|
|
464
484
|
zero_response_too_large: { retryable: false, recovery: "fix_input" },
|
|
465
485
|
zero_requires_dedicated_plan: { retryable: false, recovery: "fix_input" },
|
|
486
|
+
zero_routes_invalid: { retryable: false, recovery: "fix_input" },
|
|
487
|
+
zero_run_compile_failed: { retryable: false, recovery: "fix_input" },
|
|
488
|
+
zero_run_duplicate: { retryable: false, recovery: "fix_input" },
|
|
489
|
+
zero_run_invalid: { retryable: false, recovery: "fix_input" },
|
|
466
490
|
zero_run_operation_unsupported: { retryable: false, recovery: "fix_input" },
|
|
467
491
|
zero_runner_envelope_invalid: { retryable: false, recovery: "fix_input" },
|
|
468
492
|
zero_runner_failed: { retryable: false, recovery: "fix_input" },
|
|
@@ -474,6 +498,10 @@ export const ERROR_CODE_META = {
|
|
|
474
498
|
zero_runner_stdin_invalid: { retryable: true, recovery: "retry" },
|
|
475
499
|
zero_runner_stdin_too_large: { retryable: false, recovery: "fix_input" },
|
|
476
500
|
zero_runner_unavailable: { retryable: false, recovery: "fix_input" },
|
|
501
|
+
zero_runs_invalid: { retryable: false, recovery: "fix_input" },
|
|
502
|
+
zero_runs_require_runtime_compiler: { retryable: false, recovery: "fix_input" },
|
|
503
|
+
zero_runs_too_many: { retryable: false, recovery: "fix_input" },
|
|
504
|
+
zero_shopify_unavailable: { retryable: false, recovery: "fix_input" },
|
|
477
505
|
zero_source_compile_failed: { retryable: false, recovery: "fix_input" },
|
|
478
506
|
zero_source_hash_mismatch: { retryable: false, recovery: "fix_input" },
|
|
479
507
|
zero_source_invalid: { retryable: false, recovery: "fix_input" },
|
|
@@ -2,7 +2,7 @@ import { ERROR_DOCS_BASE_URL } from "../brand.js";
|
|
|
2
2
|
export { ERROR_DOCS_BASE_URL };
|
|
3
3
|
/** `docsUrl` derivation rule: docs origin + `/{code}`. Asserted by the conformance suite. */
|
|
4
4
|
export declare function errorDocsUrl(code: string): string;
|
|
5
|
-
export declare const ERROR_CODES: readonly ["abuse_report_invalid_transition", "abuse_report_rate_limited", "abuse_takedown", "access_denied", "account_suspended", "ambiguous_space_slug", "anonymous_expired", "anonymous_pool_unavailable", "anonymous_publish_rate_limited", "anonymous_space_limit_reached", "archive_body_required", "archive_too_large", "auth_code_required", "authorization_pending", "billing_receipt_invalid", "billing_receipt_not_bound_to_team", "billing_store_not_configured", "billing_subscription_conflict", "billing_unknown_product", "build_command_missing", "build_execution_unavailable", "build_failed", "build_install_failed", "build_no_index_html", "build_not_created", "build_oom", "build_output_dir_missing", "build_timeout", "cache_purge_domain_required", "cache_purge_path_required", "channel_name_reserved", "channel_pointer_moved", "channel_unsupported", "claim_blocked_takedown", "claim_target_not_found", "claimed_space_quota_exceeded", "cli_upgrade_required", "config_file_too_large", "config_invalid", "config_meta_too_long", "config_templates_over_limit", "continuation_unavailable", "continuation_used", "credential_expired", "credential_not_yet_valid", "credential_retired", "credential_revoked", "csam_blocked", "csam_policy_floor", "data_location_immutable", "datacenters_unavailable", "device_authorization_failed", "device_verification_rate_limited", "dns_export_required", "dns_field_conflict", "dns_field_not_applicable", "dns_import_partial_visibility", "dns_provider_auth_expired", "dns_provider_batch_unsupported", "dns_provider_change_pending", "dns_provider_conflict", "dns_provider_connection_in_use", "dns_provider_connection_unavailable", "dns_provider_controlled_desired_state", "dns_provider_credentials_expired", "dns_provider_feature_descriptors", "dns_provider_feature_unavailable", "dns_provider_field_unsupported", "dns_provider_future_authoritative_backend", "dns_provider_missing_permission", "dns_provider_not_connected", "dns_provider_operation_failed", "dns_provider_permission_denied", "dns_provider_rate_limited", "dns_provider_replace_all_requires_fresh_plan", "dns_provider_replace_all_write_strategy", "dns_provider_snapshot_stale", "dns_provider_snapshot_unavailable", "dns_provider_temporarily_unavailable", "dns_provider_timeout", "dns_provider_validation_failed", "dns_provider_workflow_templates", "dns_provider_zone_not_found", "dns_record_conflicts_with_managed", "dns_record_managed", "dns_record_not_found", "domain_already_exists", "domain_bound", "domain_facet_already_managed", "domain_facet_external", "domain_facet_not_applicable", "domain_hostname_site_mismatch", "domain_in_use", "domain_lookup_rate_limited", "domain_not_bound", "domain_quota_exceeded", "domain_registration_active", "domain_registration_not_renewable", "domain_reserved_suffix", "domain_transfer_active", "domain_wildcard_label", "domain_wildcard_not_enabled", "download_required", "duplicate_version_path", "event_payload_too_large", "event_rate_limited", "expired_token", "export_archive_not_ready", "export_version_not_found", "feature_unavailable", "files_mode_does_not_support_spa", "forbidden", "free_external_proxy_disabled", "free_headers_basic_auth_disabled", "idempotency_conflict_in_progress", "idempotency_key_reused", "immutable_version_requires_login", "import_archive_not_uploaded", "import_not_cancelable", "import_not_waiting_for_archive", "incumbent_controls_dns", "inject_invalid", "inject_snippet_too_large", "internal_error", "invalid_claim_token", "invalid_continuation_token", "invalid_data_location", "invalid_device_code", "invalid_domain", "invalid_domain_name", "invalid_file_path", "invalid_grant", "invalid_publish_archive", "invalid_publish_path", "invalid_publish_payload", "invalid_request", "invalid_runtime_event", "invalid_space", "invalid_space_mode", "invalid_user_code", "invalid_version_path", "invalid_webhook_events", "invalid_webhook_payload", "invalid_webhook_signature", "invalid_webhook_url", "invalid_zero_realtime_event", "invalid_zero_realtime_replay_query", "invitation_already_exists", "invitation_email_mismatch", "invitation_expired", "invitation_not_pending", "ip_blocked", "job_not_found", "job_not_promotable", "job_not_removable", "job_not_retryable", "last_owner", "log_retention_clamped", "lost_domain_control", "malware_detected", "managed_domain_protected", "manifest_body_too_large", "manifest_duplicate_path", "manifest_too_many_files", "member_already_exists", "missing_route_param", "move_target_capacity_lost", "nameserver_delegation_required", "nameserver_divergence", "noop_publish", "not_enrolled", "not_found", "path_case_collision", "path_too_long", "placement_invalid_burstable", "placement_mode_requires_plan", "plan_grant_already_active", "plan_grant_already_revoked", "platform_tenant_immutable_client", "policy_exceeds_grantor", "principal_space_mismatch", "provider_error", "provider_job_failed", "provider_job_timeout", "provider_runtime_feature_unsupported", "provider_site_id_required", "proxy_upstream_denied", "proxy_upstream_unresolved", "publish_archive_compression_ratio_exceeded", "publish_archive_expanded_size_exceeded", "publish_archive_file_count_exceeded", "publish_archive_too_large", "publish_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_claimed_credential_available", "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_bucket_unavailable", "storage_quota_exceeded", "storage_usage_unavailable", "stripe_error", "superseded_by_publish", "takeover_notice_window", "team_member_quota_exceeded", "team_ref_required", "team_required", "team_slug_conflict", "template_file_too_large", "template_not_in_version", "template_variable_unresolved", "tenant_id_mismatch", "tenant_not_found", "tenant_not_granted", "tenant_past_due", "tenant_selection_required", "tenant_suspended", "theme_value_invalid", "transfer_cross_tenant_unsupported", "transfer_move_failed", "transfer_not_cancelable", "transfer_push_failed", "transfer_source_changed", "transfer_target_same_as_source", "transfer_verify_failed", "unauthorized", "unsupported_publish_media_type", "upload_hash_mismatch", "upload_path_not_canonical", "upload_path_not_declared", "upload_session_cap_exceeded", "upload_size_mismatch", "user_banned", "validation_error", "variable_cascade_failed", "verification_required", "version_already_live", "version_artifact_not_found", "version_busy", "version_canceled", "version_closed", "version_expired", "version_failed", "version_file_count_exceeded", "version_file_not_found", "version_file_too_large", "version_files_missing", "version_in_use", "version_live", "version_no_publishable_files", "version_not_finalizable", "version_not_found", "version_not_prepared", "version_not_promotable", "version_not_ready", "version_quota_exceeded", "version_total_bytes_exceeded", "webhook_delivery_budget_exceeded", "whois_unavailable", "wp_cloud_anonymous_pool_required", "wp_cloud_assignment_kind_mismatch", "wp_cloud_assignment_space_mismatch", "wp_cloud_assignment_team_mismatch", "wp_cloud_client_in_use", "wp_cloud_client_not_found", "wp_cloud_site_still_assigned", "wp_cloud_team_shared_site_exists", "wp_cloud_webhook_secret_not_configured", "zero_activating", "zero_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_requires_dedicated_plan", "zero_response_too_large", "zero_run_operation_unsupported", "zero_runner_envelope_invalid", "zero_runner_failed", "zero_runner_invalid_body", "zero_runner_invalid_response", "zero_runner_invalid_status", "zero_runner_protocol_unsupported", "zero_runner_response_encode_failed", "zero_runner_stdin_invalid", "zero_runner_stdin_too_large", "zero_runner_unavailable", "zero_source_compile_failed", "zero_source_hash_mismatch", "zero_source_invalid", "zero_source_path_invalid", "zero_source_unreadable"];
|
|
5
|
+
export declare const ERROR_CODES: readonly ["abuse_report_invalid_transition", "abuse_report_rate_limited", "abuse_takedown", "access_denied", "account_suspended", "ambiguous_space_slug", "anonymous_expired", "anonymous_pool_unavailable", "anonymous_publish_rate_limited", "anonymous_space_limit_reached", "api_key_scope_underivable", "archive_body_required", "archive_too_large", "auth_code_required", "authorization_pending", "billing_receipt_invalid", "billing_receipt_not_bound_to_team", "billing_store_not_configured", "billing_subscription_conflict", "billing_unknown_product", "build_command_missing", "build_execution_unavailable", "build_failed", "build_install_failed", "build_no_index_html", "build_not_created", "build_oom", "build_output_dir_missing", "build_timeout", "cache_purge_domain_required", "cache_purge_path_required", "channel_name_reserved", "channel_pointer_moved", "channel_unsupported", "claim_blocked_takedown", "claim_target_not_found", "claimed_space_quota_exceeded", "cli_upgrade_required", "config_file_too_large", "config_invalid", "config_meta_too_long", "config_templates_over_limit", "continuation_unavailable", "continuation_used", "credential_expired", "credential_not_yet_valid", "credential_retired", "credential_revoked", "csam_blocked", "csam_policy_floor", "data_location_immutable", "datacenters_unavailable", "device_authorization_failed", "device_verification_rate_limited", "dns_export_required", "dns_field_conflict", "dns_field_not_applicable", "dns_import_partial_visibility", "dns_provider_auth_expired", "dns_provider_batch_unsupported", "dns_provider_change_pending", "dns_provider_conflict", "dns_provider_connection_in_use", "dns_provider_connection_unavailable", "dns_provider_controlled_desired_state", "dns_provider_credentials_expired", "dns_provider_feature_descriptors", "dns_provider_feature_unavailable", "dns_provider_field_unsupported", "dns_provider_future_authoritative_backend", "dns_provider_missing_permission", "dns_provider_not_connected", "dns_provider_operation_failed", "dns_provider_permission_denied", "dns_provider_rate_limited", "dns_provider_replace_all_requires_fresh_plan", "dns_provider_replace_all_write_strategy", "dns_provider_snapshot_stale", "dns_provider_snapshot_unavailable", "dns_provider_temporarily_unavailable", "dns_provider_timeout", "dns_provider_validation_failed", "dns_provider_workflow_templates", "dns_provider_zone_not_found", "dns_record_conflicts_with_managed", "dns_record_managed", "dns_record_not_found", "domain_already_exists", "domain_bound", "domain_facet_already_managed", "domain_facet_external", "domain_facet_not_applicable", "domain_hostname_site_mismatch", "domain_in_use", "domain_lookup_rate_limited", "domain_not_bound", "domain_quota_exceeded", "domain_registration_active", "domain_registration_not_renewable", "domain_reserved_suffix", "domain_transfer_active", "domain_wildcard_label", "domain_wildcard_not_enabled", "download_required", "duplicate_version_path", "enforcement_policy_overlap", "event_payload_too_large", "event_rate_limited", "expired_token", "export_archive_not_ready", "export_version_not_found", "feature_unavailable", "files_mode_does_not_support_spa", "forbidden", "free_external_proxy_disabled", "free_headers_basic_auth_disabled", "idempotency_conflict_in_progress", "idempotency_key_reused", "immutable_version_requires_login", "import_archive_not_uploaded", "import_not_cancelable", "import_not_waiting_for_archive", "incumbent_controls_dns", "inject_invalid", "inject_snippet_too_large", "internal_error", "invalid_claim_token", "invalid_continuation_token", "invalid_data_location", "invalid_device_code", "invalid_domain", "invalid_domain_name", "invalid_file_path", "invalid_grant", "invalid_publish_archive", "invalid_publish_path", "invalid_publish_payload", "invalid_request", "invalid_runtime_event", "invalid_space", "invalid_space_mode", "invalid_user_code", "invalid_version_path", "invalid_webhook_events", "invalid_webhook_payload", "invalid_webhook_signature", "invalid_webhook_url", "invalid_zero_realtime_event", "invalid_zero_realtime_replay_query", "invitation_already_exists", "invitation_email_mismatch", "invitation_expired", "invitation_not_pending", "ip_blocked", "job_not_found", "job_not_promotable", "job_not_removable", "job_not_retryable", "last_owner", "log_retention_clamped", "lost_domain_control", "malware_detected", "managed_domain_protected", "manifest_body_too_large", "manifest_duplicate_path", "manifest_too_many_files", "member_already_exists", "missing_route_param", "move_target_capacity_lost", "nameserver_delegation_required", "nameserver_divergence", "noop_publish", "not_enrolled", "not_found", "path_case_collision", "path_too_long", "placement_invalid_burstable", "placement_mode_requires_plan", "plan_grant_already_active", "plan_grant_already_revoked", "platform_tenant_immutable_client", "policy_exceeds_grantor", "principal_space_mismatch", "provider_error", "provider_job_failed", "provider_job_timeout", "provider_runtime_feature_unsupported", "provider_site_id_required", "proxy_upstream_denied", "proxy_upstream_unresolved", "publish_archive_compression_ratio_exceeded", "publish_archive_expanded_size_exceeded", "publish_archive_file_count_exceeded", "publish_archive_too_large", "publish_base_changed", "publish_config_unsupported", "publish_failed", "publish_file_missing", "publish_setup_failed", "publish_upload_failed", "publish_verification_failed", "queue_not_found", "rate_limited", "registration_expired", "registration_expiring", "routing_rules_over_plan", "runtime_action_forbidden", "runtime_api_not_found", "runtime_callback_forbidden", "runtime_engine_zip_missing", "runtime_hostname_unassigned", "runtime_instance_mismatch", "runtime_jti_missing", "runtime_jti_replayed", "runtime_jwks_key_missing", "runtime_logs_unavailable", "runtime_management_unavailable", "runtime_not_provisioned", "runtime_operation_missing", "runtime_scope_forbidden", "runtime_token_bad_signature", "runtime_token_expired", "runtime_token_invalid", "runtime_unauthorized", "runtime_upload_operation_not_supported", "runtime_upload_required", "scan_pending", "secret_variable_in_template", "site_already_deleted", "site_capacity_exceeded", "site_has_live_spaces", "site_not_static", "site_required", "site_suspended", "slow_down", "slug_invalid", "slug_reserved", "slug_unavailable", "space_already_claimed", "space_claim_unavailable", "space_claimed_credential_available", "space_disabled", "space_expired", "space_has_active_version", "space_hostname_identity_missing", "space_import_archive_invalid", "space_import_archive_too_large", "space_import_config_only_archive", "space_import_runtime_schema_unsupported", "space_moving", "space_no_live_version", "space_not_disabled", "space_not_restorable", "space_ref_ambiguous", "space_ref_required", "space_transferring", "space_unclaimed", "ssl_renewal_blocked", "static_control_file_not_supported", "static_runtime_control_path_not_supported", "static_runtime_required", "storage_bucket_unavailable", "storage_quota_exceeded", "storage_usage_unavailable", "stripe_error", "superseded_by_publish", "takeover_notice_window", "team_member_quota_exceeded", "team_ref_required", "team_required", "team_slug_conflict", "template_file_too_large", "template_not_in_version", "template_variable_unresolved", "tenant_id_mismatch", "tenant_not_found", "tenant_not_granted", "tenant_past_due", "tenant_selection_required", "tenant_suspended", "theme_value_invalid", "transfer_cross_tenant_unsupported", "transfer_move_failed", "transfer_not_cancelable", "transfer_push_failed", "transfer_source_changed", "transfer_target_same_as_source", "transfer_verify_failed", "unauthorized", "unsupported_publish_media_type", "upload_hash_mismatch", "upload_path_not_canonical", "upload_path_not_declared", "upload_session_cap_exceeded", "upload_size_mismatch", "user_banned", "validation_error", "variable_cascade_failed", "verification_required", "version_already_live", "version_artifact_not_found", "version_busy", "version_canceled", "version_closed", "version_expired", "version_failed", "version_file_count_exceeded", "version_file_not_found", "version_file_too_large", "version_files_missing", "version_in_use", "version_live", "version_no_publishable_files", "version_not_finalizable", "version_not_found", "version_not_prepared", "version_not_promotable", "version_not_ready", "version_quota_exceeded", "version_total_bytes_exceeded", "webhook_delivery_budget_exceeded", "whois_unavailable", "wp_cloud_anonymous_pool_required", "wp_cloud_assignment_kind_mismatch", "wp_cloud_assignment_space_mismatch", "wp_cloud_assignment_team_mismatch", "wp_cloud_client_in_use", "wp_cloud_client_not_found", "wp_cloud_site_still_assigned", "wp_cloud_team_shared_site_exists", "wp_cloud_webhook_secret_not_configured", "zero_activating", "zero_ai_unavailable", "zero_artifact_abi_mismatch", "zero_artifact_invalid", "zero_artifact_malformed", "zero_artifact_missing", "zero_artifact_path_invalid", "zero_artifact_unreadable", "zero_artifact_untrusted", "zero_auth_unavailable", "zero_blob_key_invalid", "zero_blob_store_full", "zero_blob_too_large", "zero_blob_value_invalid", "zero_bootstrap_encode_failed", "zero_bytecode_hash_mismatch", "zero_bytecode_invalid", "zero_bytecode_path_invalid", "zero_bytecode_unreadable", "zero_capabilities_encode_failed", "zero_client_bundle_not_loaded", "zero_db_connect_failed", "zero_db_execute_failed", "zero_db_host_install_failed", "zero_db_operation_invalid", "zero_db_operation_too_large", "zero_db_param_invalid", "zero_db_query_failed", "zero_db_row_invalid", "zero_db_sql_invalid", "zero_db_too_many_params", "zero_db_transaction_commit_failed", "zero_db_transaction_invalid", "zero_db_transaction_start_failed", "zero_db_url_invalid", "zero_db_url_missing", "zero_dev_endpoint_failed", "zero_dump_query_invalid", "zero_endpoint_compile_failed", "zero_endpoint_conflict", "zero_endpoint_duplicate", "zero_endpoint_id_duplicate", "zero_endpoint_index_invalid", "zero_endpoint_index_malformed", "zero_endpoint_index_path_invalid", "zero_endpoint_index_unreadable", "zero_endpoint_invalid", "zero_endpoint_mismatch", "zero_endpoint_not_found", "zero_endpoints_invalid", "zero_endpoints_too_many", "zero_envelope_encode_failed", "zero_js_context_init_failed", "zero_js_execution_failed", "zero_js_execution_timeout", "zero_js_globals_failed", "zero_js_response_malformed", "zero_js_runtime_init_failed", "zero_log_query_invalid", "zero_lookup_invalid", "zero_method_not_allowed", "zero_migration_failed", "zero_query_name_missing", "zero_realtime_forbidden", "zero_realtime_message_invalid", "zero_realtime_operation_unsupported", "zero_realtime_query_invalid", "zero_realtime_space_required", "zero_realtime_unavailable", "zero_realtime_websocket_forbidden", "zero_replay_failed", "zero_replay_query_invalid", "zero_replay_unavailable", "zero_request_body_too_large", "zero_requires_dedicated_plan", "zero_response_too_large", "zero_routes_invalid", "zero_run_compile_failed", "zero_run_duplicate", "zero_run_invalid", "zero_run_operation_unsupported", "zero_runner_envelope_invalid", "zero_runner_failed", "zero_runner_invalid_body", "zero_runner_invalid_response", "zero_runner_invalid_status", "zero_runner_protocol_unsupported", "zero_runner_response_encode_failed", "zero_runner_stdin_invalid", "zero_runner_stdin_too_large", "zero_runner_unavailable", "zero_runs_invalid", "zero_runs_require_runtime_compiler", "zero_runs_too_many", "zero_shopify_unavailable", "zero_source_compile_failed", "zero_source_hash_mismatch", "zero_source_invalid", "zero_source_path_invalid", "zero_source_unreadable"];
|
|
6
6
|
export type ErrorCode = (typeof ERROR_CODES)[number];
|
|
7
7
|
export declare function isErrorCode(value: string): value is ErrorCode;
|
|
8
8
|
/**
|