@spacefast/common 0.0.12 → 0.0.13
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/contracts/access.d.ts +386 -1201
- package/dist/contracts/access.js +240 -1057
- package/dist/contracts/activity.d.ts +1 -1
- package/dist/contracts/activity.js +6 -14
- package/dist/contracts/api-keys.d.ts +16 -0
- package/dist/contracts/api-keys.js +2 -0
- package/dist/contracts/archives.d.ts +1 -2
- package/dist/contracts/archives.js +4 -6
- package/dist/contracts/comments.d.ts +58 -85
- package/dist/contracts/comments.js +86 -67
- package/dist/contracts/countries.js +2 -7
- package/dist/contracts/data-source-routes.d.ts +20 -0
- package/dist/contracts/data-source-routes.js +15 -0
- package/dist/contracts/device-auth.d.ts +7 -3
- package/dist/contracts/enums.d.ts +2 -4
- package/dist/contracts/enums.js +3 -8
- package/dist/contracts/error-code-meta.d.ts +17 -20
- package/dist/contracts/error-code-meta.js +8 -5
- package/dist/contracts/error-codes.d.ts +1 -1
- package/dist/contracts/error-codes.js +4 -5
- package/dist/contracts/events.d.ts +13 -13
- package/dist/contracts/execution.d.ts +212 -0
- package/dist/contracts/execution.js +288 -0
- package/dist/contracts/feature-lifecycle.d.ts +21 -167
- package/dist/contracts/feature-lifecycle.js +27 -173
- package/dist/contracts/features.d.ts +13 -115
- package/dist/contracts/features.js +1 -31
- package/dist/contracts/functions.d.ts +729 -0
- package/dist/contracts/functions.js +485 -0
- package/dist/contracts/git.d.ts +1 -1
- package/dist/contracts/grants.d.ts +1158 -0
- package/dist/contracts/grants.js +696 -0
- package/dist/contracts/ids.d.ts +5 -3
- package/dist/contracts/ids.js +5 -3
- package/dist/contracts/mcp.d.ts +6 -6
- package/dist/contracts/oauth-resources.d.ts +5 -5
- package/dist/contracts/oauth-resources.js +1 -0
- package/dist/contracts/operations.d.ts +2 -2
- package/dist/contracts/pages.d.ts +6 -14
- package/dist/contracts/pages.js +6 -23
- package/dist/contracts/plan-policy.d.ts +1 -8
- package/dist/contracts/plan-policy.js +1 -4
- package/dist/contracts/platform.d.ts +78 -30
- package/dist/contracts/platform.js +59 -12
- package/dist/contracts/push-new.d.ts +26 -2
- package/dist/contracts/push-new.js +8 -0
- package/dist/contracts/quotas.d.ts +0 -1
- package/dist/contracts/quotas.js +0 -5
- package/dist/contracts/repository-connections.d.ts +1 -1
- package/dist/contracts/resources.d.ts +10 -66
- package/dist/contracts/resources.js +4 -10
- package/dist/contracts/runtime-api.d.ts +558 -265
- package/dist/contracts/runtime-api.js +178 -91
- package/dist/contracts/runtime-app.d.ts +138 -0
- package/dist/contracts/runtime-app.js +21 -0
- package/dist/contracts/sf-config-v1.d.ts +5 -0
- package/dist/contracts/sites.d.ts +5 -0
- package/dist/contracts/sites.js +12 -1
- package/dist/contracts/space-config.d.ts +46 -116
- package/dist/contracts/space-config.js +320 -24
- package/dist/contracts/spaces.d.ts +253 -158
- package/dist/contracts/spaces.js +68 -54
- package/dist/contracts/superadmin-emails.d.ts +2 -2
- package/dist/contracts/superadmin-spaces.d.ts +15 -130
- package/dist/contracts/superadmin-spaces.js +7 -0
- package/dist/contracts/tags.d.ts +23 -23
- package/dist/contracts/teams.d.ts +9 -9
- package/dist/contracts/transfers.d.ts +0 -1
- package/dist/contracts/zero.d.ts +195 -273
- package/dist/contracts/zero.js +78 -206
- package/dist/dashboard-paths/index.d.ts +2 -2
- package/dist/dashboard-paths/index.js +1 -0
- package/dist/docs/agent-prose.js +10 -8
- package/dist/docs/agent-setup.d.ts +2 -2
- package/dist/docs/agent-setup.js +11 -9
- package/dist/docs/agent-solutions.js +1 -1
- package/dist/docs/catalog.d.ts +28 -28
- package/dist/docs/catalog.js +29 -29
- package/dist/docs/error-docs.js +23 -27
- package/dist/utils/asset-fingerprint.d.ts +11 -0
- package/dist/utils/asset-fingerprint.js +46 -0
- package/dist/utils/auth-redirect.d.ts +1 -3
- package/dist/utils/auth-redirect.js +1 -21
- package/dist/utils/build-settings.d.ts +2 -0
- package/dist/utils/build-settings.js +61 -9
- package/dist/utils/credential-policy.d.ts +1 -1
- package/dist/utils/credential-policy.js +4 -0
- package/dist/utils/egress-policy.fixtures.json +1 -1
- package/dist/utils/grants.d.ts +53 -0
- package/dist/utils/grants.js +160 -0
- package/dist/utils/local-space-state.js +1 -0
- package/dist/utils/pages.d.ts +11 -5
- package/dist/utils/pages.js +19 -32
- package/dist/utils/publish-policy.d.ts +34 -4
- package/dist/utils/publish-policy.js +132 -61
- package/dist/utils/query-keys.d.ts +1 -6
- package/dist/utils/query-keys.js +1 -6
- package/dist/utils/space-config.d.ts +5 -1
- package/dist/utils/space-config.js +35 -0
- package/dist/utils/static-runtime-policy.d.ts +5 -0
- package/dist/utils/static-runtime-policy.js +54 -10
- package/dist/utils/upload-session.d.ts +3 -0
- package/dist/utils/upload-session.js +31 -0
- package/package.json +2 -1
- package/dist/utils/access-grant.d.ts +0 -14
- package/dist/utils/access-grant.js +0 -88
- package/dist/utils/access-match.d.ts +0 -46
- package/dist/utils/access-match.fixtures.json +0 -513
- package/dist/utils/access-match.js +0 -312
- package/dist/utils/access-verdict.fixtures.json +0 -421
- package/dist/utils/sf-config-v1.d.ts +0 -2
- package/dist/utils/sf-config-v1.fixtures.json +0 -9
- package/dist/utils/sf-config-v1.js +0 -551
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
// ISO 3166-1 alpha-2 country codes
|
|
2
|
-
//
|
|
3
|
-
// §5.6). The rule `match.country` is an exact-equality matcher against the
|
|
4
|
-
// edge-supplied country header, so "allow only these countries" compiles to
|
|
5
|
-
// one deny/challenge rule per code in the COMPLEMENT of this list — which is
|
|
6
|
-
// why the list itself is a contract: the compiler and the projection must
|
|
7
|
-
// agree on the universe.
|
|
1
|
+
// ISO 3166-1 alpha-2 country codes used by Grant network constraints. The
|
|
2
|
+
// runtime compares them with the edge-supplied country header.
|
|
8
3
|
//
|
|
9
4
|
// Officially assigned codes only (no exceptionally-reserved / user-assigned
|
|
10
5
|
// ranges). Display names are a UI concern (`Intl.DisplayNames`), never stored.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const dataSourceListItemSchema: z.ZodObject<{
|
|
3
|
+
kind: z.ZodLiteral<"wordpress">;
|
|
4
|
+
url: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
default: z.ZodBoolean;
|
|
7
|
+
}, z.core.$strict>;
|
|
8
|
+
export type DataSourceListItem = z.infer<typeof dataSourceListItemSchema>;
|
|
9
|
+
export declare const dataSourceListResponseSchema: z.ZodObject<{
|
|
10
|
+
data: z.ZodObject<{
|
|
11
|
+
dataSources: z.ZodArray<z.ZodObject<{
|
|
12
|
+
kind: z.ZodLiteral<"wordpress">;
|
|
13
|
+
url: z.ZodString;
|
|
14
|
+
name: z.ZodString;
|
|
15
|
+
default: z.ZodBoolean;
|
|
16
|
+
}, z.core.$strict>>;
|
|
17
|
+
defaultDataSource: z.ZodNullable<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export type DataSourceListResponse = z.infer<typeof dataSourceListResponseSchema>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { dataEnvelope } from "./common.js";
|
|
3
|
+
import { dataSourceNameSchema, wordpressDataSourceSchema } from "./space-config.js";
|
|
4
|
+
export const dataSourceListItemSchema = wordpressDataSourceSchema
|
|
5
|
+
.extend({
|
|
6
|
+
name: dataSourceNameSchema,
|
|
7
|
+
default: z.boolean().describe("True for the effective default source."),
|
|
8
|
+
})
|
|
9
|
+
.strict();
|
|
10
|
+
export const dataSourceListResponseSchema = dataEnvelope(z.object({
|
|
11
|
+
dataSources: z.array(dataSourceListItemSchema),
|
|
12
|
+
defaultDataSource: dataSourceNameSchema
|
|
13
|
+
.nullable()
|
|
14
|
+
.describe("Configured default source, or the first source in bytewise name order; null when no sources are configured."),
|
|
15
|
+
}));
|
|
@@ -79,6 +79,7 @@ export declare const DeviceAuthorizationPollResponseSchema: z.ZodObject<{
|
|
|
79
79
|
"teams:create": "teams:create";
|
|
80
80
|
"spaces:read": "spaces:read";
|
|
81
81
|
"spaces:write": "spaces:write";
|
|
82
|
+
"spaces:rename": "spaces:rename";
|
|
82
83
|
"domains:read": "domains:read";
|
|
83
84
|
"mcp:tools": "mcp:tools";
|
|
84
85
|
"*": "*";
|
|
@@ -108,6 +109,7 @@ export declare const DeviceAuthorizationPollResponseSchema: z.ZodObject<{
|
|
|
108
109
|
"webhooks:read": "webhooks:read";
|
|
109
110
|
"webhooks:write": "webhooks:write";
|
|
110
111
|
"builds:read": "builds:read";
|
|
112
|
+
"builds:trigger": "builds:trigger";
|
|
111
113
|
"builds:create": "builds:create";
|
|
112
114
|
"teams:write": "teams:write";
|
|
113
115
|
"teams:members.write": "teams:members.write";
|
|
@@ -272,6 +274,7 @@ export declare const AgentHandoffRedeemResponseSchema: z.ZodObject<{
|
|
|
272
274
|
"teams:create": "teams:create";
|
|
273
275
|
"spaces:read": "spaces:read";
|
|
274
276
|
"spaces:write": "spaces:write";
|
|
277
|
+
"spaces:rename": "spaces:rename";
|
|
275
278
|
"domains:read": "domains:read";
|
|
276
279
|
"mcp:tools": "mcp:tools";
|
|
277
280
|
"*": "*";
|
|
@@ -301,6 +304,7 @@ export declare const AgentHandoffRedeemResponseSchema: z.ZodObject<{
|
|
|
301
304
|
"webhooks:read": "webhooks:read";
|
|
302
305
|
"webhooks:write": "webhooks:write";
|
|
303
306
|
"builds:read": "builds:read";
|
|
307
|
+
"builds:trigger": "builds:trigger";
|
|
304
308
|
"builds:create": "builds:create";
|
|
305
309
|
"teams:write": "teams:write";
|
|
306
310
|
"teams:members.write": "teams:members.write";
|
|
@@ -353,8 +357,8 @@ export declare const AgentHandoffListQuerySchema: z.ZodObject<{
|
|
|
353
357
|
}, z.core.$strip>;
|
|
354
358
|
export type AgentHandoffListQuery = z.infer<typeof AgentHandoffListQuerySchema>;
|
|
355
359
|
export declare const AgentHandoffStatusSchema: z.ZodEnum<{
|
|
356
|
-
pending: "pending";
|
|
357
360
|
revoked: "revoked";
|
|
361
|
+
pending: "pending";
|
|
358
362
|
redeemed: "redeemed";
|
|
359
363
|
}>;
|
|
360
364
|
export declare const AgentHandoffSummarySchema: z.ZodObject<{
|
|
@@ -368,8 +372,8 @@ export declare const AgentHandoffSummarySchema: z.ZodObject<{
|
|
|
368
372
|
codex: "codex";
|
|
369
373
|
}>;
|
|
370
374
|
status: z.ZodEnum<{
|
|
371
|
-
pending: "pending";
|
|
372
375
|
revoked: "revoked";
|
|
376
|
+
pending: "pending";
|
|
373
377
|
redeemed: "redeemed";
|
|
374
378
|
}>;
|
|
375
379
|
createdAt: z.ZodString;
|
|
@@ -389,8 +393,8 @@ export declare const AgentHandoffListResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
389
393
|
codex: "codex";
|
|
390
394
|
}>;
|
|
391
395
|
status: z.ZodEnum<{
|
|
392
|
-
pending: "pending";
|
|
393
396
|
revoked: "revoked";
|
|
397
|
+
pending: "pending";
|
|
394
398
|
redeemed: "redeemed";
|
|
395
399
|
}>;
|
|
396
400
|
createdAt: z.ZodString;
|
|
@@ -8,17 +8,15 @@ export declare const spaceStatus: z.ZodEnum<{
|
|
|
8
8
|
deleting: "deleting";
|
|
9
9
|
failed: "failed";
|
|
10
10
|
}>;
|
|
11
|
-
export declare const spaceDisabledReasonCodeValues: readonly ["anonymous_expired", "abuse_takedown", "tenant_suspended", "site_suspended"
|
|
11
|
+
export declare const spaceDisabledReasonCodeValues: readonly ["anonymous_expired", "abuse_takedown", "tenant_suspended", "site_suspended"];
|
|
12
12
|
export declare const spaceDisabledReasonCode: z.ZodEnum<{
|
|
13
13
|
anonymous_expired: "anonymous_expired";
|
|
14
14
|
abuse_takedown: "abuse_takedown";
|
|
15
15
|
tenant_suspended: "tenant_suspended";
|
|
16
16
|
site_suspended: "site_suspended";
|
|
17
|
-
visit_cap_exceeded: "visit_cap_exceeded";
|
|
18
17
|
}>;
|
|
19
|
-
export declare const spaceTransferStatusValues: readonly ["pending_confirmation", "confirming_domains", "
|
|
18
|
+
export declare const spaceTransferStatusValues: readonly ["pending_confirmation", "confirming_domains", "completed", "canceled", "expired"];
|
|
20
19
|
export declare const spaceTransferStatus: z.ZodEnum<{
|
|
21
|
-
moving: "moving";
|
|
22
20
|
pending_confirmation: "pending_confirmation";
|
|
23
21
|
confirming_domains: "confirming_domains";
|
|
24
22
|
completed: "completed";
|
package/dist/contracts/enums.js
CHANGED
|
@@ -11,18 +11,14 @@ export const spaceStatusValues = [
|
|
|
11
11
|
"failed",
|
|
12
12
|
];
|
|
13
13
|
export const spaceStatus = z.enum(spaceStatusValues);
|
|
14
|
-
// Serving-axis disable reasons (internal-docs/platform.md "Space")
|
|
15
|
-
//
|
|
16
|
-
//
|
|
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.
|
|
14
|
+
// Serving-axis disable reasons (internal-docs/platform.md "Space"). Confirmed
|
|
15
|
+
// scan takedowns use `abuse_takedown`; infected state and claim invalidation
|
|
16
|
+
// are explicit enforcement effects, not reason metadata.
|
|
20
17
|
export const spaceDisabledReasonCodeValues = [
|
|
21
18
|
"anonymous_expired",
|
|
22
19
|
"abuse_takedown",
|
|
23
20
|
"tenant_suspended",
|
|
24
21
|
"site_suspended",
|
|
25
|
-
"visit_cap_exceeded",
|
|
26
22
|
];
|
|
27
23
|
export const spaceDisabledReasonCode = z.enum(spaceDisabledReasonCodeValues);
|
|
28
24
|
// SpaceTransfer status machine (internal-docs/platform.md "Transfer
|
|
@@ -34,7 +30,6 @@ export const spaceDisabledReasonCode = z.enum(spaceDisabledReasonCodeValues);
|
|
|
34
30
|
export const spaceTransferStatusValues = [
|
|
35
31
|
"pending_confirmation",
|
|
36
32
|
"confirming_domains",
|
|
37
|
-
"moving",
|
|
38
33
|
"completed",
|
|
39
34
|
"canceled",
|
|
40
35
|
"expired",
|
|
@@ -27,6 +27,10 @@ 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
|
+
};
|
|
30
34
|
readonly account_suspended: {
|
|
31
35
|
readonly retryable: false;
|
|
32
36
|
readonly recovery: "contact_support";
|
|
@@ -496,10 +500,6 @@ export declare const ERROR_CODE_META: {
|
|
|
496
500
|
readonly retryable: false;
|
|
497
501
|
readonly recovery: "fix_input";
|
|
498
502
|
};
|
|
499
|
-
readonly free_headers_basic_auth_disabled: {
|
|
500
|
-
readonly retryable: false;
|
|
501
|
-
readonly recovery: "fix_input";
|
|
502
|
-
};
|
|
503
503
|
readonly google_play_webhook_identity_not_configured: {
|
|
504
504
|
readonly retryable: false;
|
|
505
505
|
readonly recovery: "contact_support";
|
|
@@ -512,10 +512,6 @@ export declare const ERROR_CODE_META: {
|
|
|
512
512
|
readonly retryable: false;
|
|
513
513
|
readonly recovery: "fix_input";
|
|
514
514
|
};
|
|
515
|
-
readonly immutable_version_requires_login: {
|
|
516
|
-
readonly retryable: false;
|
|
517
|
-
readonly recovery: "re_auth";
|
|
518
|
-
};
|
|
519
515
|
readonly import_archive_not_uploaded: {
|
|
520
516
|
readonly retryable: false;
|
|
521
517
|
readonly recovery: "fix_input";
|
|
@@ -873,6 +869,10 @@ export declare const ERROR_CODE_META: {
|
|
|
873
869
|
readonly retryable: false;
|
|
874
870
|
readonly recovery: "fix_input";
|
|
875
871
|
};
|
|
872
|
+
readonly publish_reference_missing: {
|
|
873
|
+
readonly retryable: false;
|
|
874
|
+
readonly recovery: "fix_input";
|
|
875
|
+
};
|
|
876
876
|
readonly publish_setup_failed: {
|
|
877
877
|
readonly retryable: true;
|
|
878
878
|
readonly recovery: "retry";
|
|
@@ -946,10 +946,6 @@ export declare const ERROR_CODE_META: {
|
|
|
946
946
|
readonly retryable: false;
|
|
947
947
|
readonly recovery: "re_auth";
|
|
948
948
|
};
|
|
949
|
-
readonly runtime_logs_unavailable: {
|
|
950
|
-
readonly retryable: false;
|
|
951
|
-
readonly recovery: "fix_input";
|
|
952
|
-
};
|
|
953
949
|
readonly runtime_management_unavailable: {
|
|
954
950
|
readonly retryable: true;
|
|
955
951
|
readonly recovery: "retry";
|
|
@@ -1006,10 +1002,6 @@ export declare const ERROR_CODE_META: {
|
|
|
1006
1002
|
readonly retryable: false;
|
|
1007
1003
|
readonly recovery: "fix_input";
|
|
1008
1004
|
};
|
|
1009
|
-
readonly site_capacity_exceeded: {
|
|
1010
|
-
readonly retryable: true;
|
|
1011
|
-
readonly recovery: "wait";
|
|
1012
|
-
};
|
|
1013
1005
|
readonly site_has_live_spaces: {
|
|
1014
1006
|
readonly retryable: false;
|
|
1015
1007
|
readonly recovery: "fix_input";
|
|
@@ -1060,6 +1052,11 @@ export declare const ERROR_CODE_META: {
|
|
|
1060
1052
|
readonly recovery: "fix_input";
|
|
1061
1053
|
readonly next: readonly ["sf login", "sf publish --space <space-id>", "Ask the owner to create an access token"];
|
|
1062
1054
|
};
|
|
1055
|
+
readonly space_capacity_warming: {
|
|
1056
|
+
readonly retryable: true;
|
|
1057
|
+
readonly recovery: "wait";
|
|
1058
|
+
readonly next: readonly ["Retry the same publish after the Retry-After seconds"];
|
|
1059
|
+
};
|
|
1063
1060
|
readonly space_claim_unavailable: {
|
|
1064
1061
|
readonly retryable: false;
|
|
1065
1062
|
readonly recovery: "fix_input";
|
|
@@ -1105,6 +1102,10 @@ export declare const ERROR_CODE_META: {
|
|
|
1105
1102
|
readonly retryable: false;
|
|
1106
1103
|
readonly recovery: "fix_input";
|
|
1107
1104
|
};
|
|
1105
|
+
readonly space_move_would_strand_zero_data: {
|
|
1106
|
+
readonly retryable: false;
|
|
1107
|
+
readonly recovery: "contact_support";
|
|
1108
|
+
};
|
|
1108
1109
|
readonly space_moving: {
|
|
1109
1110
|
readonly retryable: true;
|
|
1110
1111
|
readonly recovery: "wait";
|
|
@@ -1309,10 +1310,6 @@ export declare const ERROR_CODE_META: {
|
|
|
1309
1310
|
readonly retryable: false;
|
|
1310
1311
|
readonly recovery: "fix_input";
|
|
1311
1312
|
};
|
|
1312
|
-
readonly upload_session_cap_exceeded: {
|
|
1313
|
-
readonly retryable: false;
|
|
1314
|
-
readonly recovery: "fix_input";
|
|
1315
|
-
};
|
|
1316
1313
|
readonly upload_size_mismatch: {
|
|
1317
1314
|
readonly retryable: false;
|
|
1318
1315
|
readonly recovery: "fix_input";
|
|
@@ -12,6 +12,7 @@ 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" },
|
|
15
16
|
account_suspended: { retryable: false, recovery: "contact_support" },
|
|
16
17
|
agent_handoff_declined: { retryable: false, recovery: "re_auth" },
|
|
17
18
|
agent_handoff_limit_reached: { retryable: false, recovery: "fix_input" },
|
|
@@ -175,14 +176,12 @@ export const ERROR_CODE_META = {
|
|
|
175
176
|
files_mode_does_not_support_spa: { retryable: false, recovery: "fix_input" },
|
|
176
177
|
forbidden: { retryable: false, recovery: "re_auth" },
|
|
177
178
|
free_external_proxy_disabled: { retryable: false, recovery: "fix_input" },
|
|
178
|
-
free_headers_basic_auth_disabled: { retryable: false, recovery: "fix_input" },
|
|
179
179
|
google_play_webhook_identity_not_configured: {
|
|
180
180
|
retryable: false,
|
|
181
181
|
recovery: "contact_support",
|
|
182
182
|
},
|
|
183
183
|
idempotency_conflict_in_progress: { retryable: true, recovery: "wait" },
|
|
184
184
|
idempotency_key_reused: { retryable: false, recovery: "fix_input" },
|
|
185
|
-
immutable_version_requires_login: { retryable: false, recovery: "re_auth" },
|
|
186
185
|
import_archive_not_uploaded: { retryable: false, recovery: "fix_input" },
|
|
187
186
|
import_not_cancelable: { retryable: false, recovery: "fix_input" },
|
|
188
187
|
import_not_waiting_for_archive: { retryable: false, recovery: "fix_input" },
|
|
@@ -276,6 +275,7 @@ export const ERROR_CODE_META = {
|
|
|
276
275
|
publish_not_cancelable: { retryable: false, recovery: "fix_input" },
|
|
277
276
|
publish_path_collision: { retryable: false, recovery: "fix_input" },
|
|
278
277
|
publish_path_invalid: { retryable: false, recovery: "fix_input" },
|
|
278
|
+
publish_reference_missing: { retryable: false, recovery: "fix_input" },
|
|
279
279
|
publish_setup_failed: { retryable: true, recovery: "retry" },
|
|
280
280
|
publish_snapshot_empty: { retryable: false, recovery: "fix_input" },
|
|
281
281
|
publish_upload_failed: { retryable: true, recovery: "retry" },
|
|
@@ -298,7 +298,6 @@ export const ERROR_CODE_META = {
|
|
|
298
298
|
runtime_jti_missing: { retryable: false, recovery: "re_auth" },
|
|
299
299
|
runtime_jti_replayed: { retryable: false, recovery: "re_auth" },
|
|
300
300
|
runtime_jwks_key_missing: { retryable: false, recovery: "re_auth" },
|
|
301
|
-
runtime_logs_unavailable: { retryable: false, recovery: "fix_input" },
|
|
302
301
|
runtime_management_unavailable: { retryable: true, recovery: "retry" },
|
|
303
302
|
runtime_not_provisioned: { retryable: true, recovery: "wait" },
|
|
304
303
|
runtime_operation_missing: { retryable: false, recovery: "fix_input" },
|
|
@@ -313,7 +312,6 @@ export const ERROR_CODE_META = {
|
|
|
313
312
|
secret_variable_in_template: { retryable: false, recovery: "fix_input" },
|
|
314
313
|
service_signature_invalid: { retryable: false, recovery: "re_auth" },
|
|
315
314
|
site_already_deleted: { retryable: false, recovery: "fix_input" },
|
|
316
|
-
site_capacity_exceeded: { retryable: true, recovery: "wait" },
|
|
317
315
|
site_has_live_spaces: { retryable: false, recovery: "fix_input" },
|
|
318
316
|
site_not_static: { retryable: false, recovery: "fix_input" },
|
|
319
317
|
site_required: { retryable: false, recovery: "fix_input" },
|
|
@@ -334,6 +332,11 @@ export const ERROR_CODE_META = {
|
|
|
334
332
|
recovery: "fix_input",
|
|
335
333
|
next: ["sf login", "sf publish --space <space-id>", "Ask the owner to create an access token"],
|
|
336
334
|
},
|
|
335
|
+
space_capacity_warming: {
|
|
336
|
+
retryable: true,
|
|
337
|
+
recovery: "wait",
|
|
338
|
+
next: ["Retry the same publish after the Retry-After seconds"],
|
|
339
|
+
},
|
|
337
340
|
space_claim_unavailable: { retryable: false, recovery: "fix_input" },
|
|
338
341
|
space_claimed_credential_available: {
|
|
339
342
|
retryable: false,
|
|
@@ -353,6 +356,7 @@ export const ERROR_CODE_META = {
|
|
|
353
356
|
space_import_archive_too_large: { retryable: false, recovery: "fix_input" },
|
|
354
357
|
space_import_config_only_archive: { retryable: false, recovery: "fix_input" },
|
|
355
358
|
space_import_runtime_schema_unsupported: { retryable: false, recovery: "fix_input" },
|
|
359
|
+
space_move_would_strand_zero_data: { retryable: false, recovery: "contact_support" },
|
|
356
360
|
space_moving: { retryable: true, recovery: "wait" },
|
|
357
361
|
space_no_live_version: { retryable: false, recovery: "fix_input" },
|
|
358
362
|
space_not_disabled: { retryable: false, recovery: "fix_input" },
|
|
@@ -404,7 +408,6 @@ export const ERROR_CODE_META = {
|
|
|
404
408
|
upload_hash_mismatch: { retryable: false, recovery: "fix_input" },
|
|
405
409
|
upload_path_not_canonical: { retryable: false, recovery: "fix_input" },
|
|
406
410
|
upload_path_not_declared: { retryable: false, recovery: "fix_input" },
|
|
407
|
-
upload_session_cap_exceeded: { retryable: false, recovery: "fix_input" },
|
|
408
411
|
upload_size_mismatch: { retryable: false, recovery: "fix_input" },
|
|
409
412
|
user_banned: { retryable: false, recovery: "contact_support" },
|
|
410
413
|
validation_error: { 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", "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", "free_headers_basic_auth_disabled", "google_play_webhook_identity_not_configured", "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_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_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_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", "service_signature_invalid", "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", "source_archive_decompression_timeout", "source_archive_expansion_ratio_exceeded", "source_archive_validation_busy", "space_already_claimed", "space_claim_unavailable", "space_claimed_credential_available", "space_disabled", "space_expired", "space_has_active_publish", "space_has_active_version", "space_hostname_identity_missing", "space_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_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_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_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"];
|
|
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
6
|
export type ErrorCode = (typeof ERROR_CODES)[number];
|
|
7
7
|
export declare function isErrorCode(value: string): value is ErrorCode;
|
|
8
8
|
/**
|
|
@@ -20,6 +20,7 @@ export const ERROR_CODES = [
|
|
|
20
20
|
"abuse_report_rate_limited",
|
|
21
21
|
"abuse_takedown",
|
|
22
22
|
"access_denied",
|
|
23
|
+
"access_scope_suggestion",
|
|
23
24
|
"account_suspended",
|
|
24
25
|
"agent_handoff_declined",
|
|
25
26
|
"agent_handoff_limit_reached",
|
|
@@ -135,11 +136,9 @@ export const ERROR_CODES = [
|
|
|
135
136
|
"files_mode_does_not_support_spa",
|
|
136
137
|
"forbidden",
|
|
137
138
|
"free_external_proxy_disabled",
|
|
138
|
-
"free_headers_basic_auth_disabled",
|
|
139
139
|
"google_play_webhook_identity_not_configured",
|
|
140
140
|
"idempotency_conflict_in_progress",
|
|
141
141
|
"idempotency_key_reused",
|
|
142
|
-
"immutable_version_requires_login",
|
|
143
142
|
"import_archive_not_uploaded",
|
|
144
143
|
"import_not_cancelable",
|
|
145
144
|
"import_not_waiting_for_archive",
|
|
@@ -229,6 +228,7 @@ export const ERROR_CODES = [
|
|
|
229
228
|
"publish_not_cancelable",
|
|
230
229
|
"publish_path_collision",
|
|
231
230
|
"publish_path_invalid",
|
|
231
|
+
"publish_reference_missing",
|
|
232
232
|
"publish_setup_failed",
|
|
233
233
|
"publish_snapshot_empty",
|
|
234
234
|
"publish_upload_failed",
|
|
@@ -247,7 +247,6 @@ export const ERROR_CODES = [
|
|
|
247
247
|
"runtime_jti_missing",
|
|
248
248
|
"runtime_jti_replayed",
|
|
249
249
|
"runtime_jwks_key_missing",
|
|
250
|
-
"runtime_logs_unavailable",
|
|
251
250
|
"runtime_management_unavailable",
|
|
252
251
|
"runtime_not_provisioned",
|
|
253
252
|
"runtime_operation_missing",
|
|
@@ -262,7 +261,6 @@ export const ERROR_CODES = [
|
|
|
262
261
|
"secret_variable_in_template",
|
|
263
262
|
"service_signature_invalid",
|
|
264
263
|
"site_already_deleted",
|
|
265
|
-
"site_capacity_exceeded",
|
|
266
264
|
"site_has_live_spaces",
|
|
267
265
|
"site_not_static",
|
|
268
266
|
"site_required",
|
|
@@ -275,6 +273,7 @@ export const ERROR_CODES = [
|
|
|
275
273
|
"source_archive_expansion_ratio_exceeded",
|
|
276
274
|
"source_archive_validation_busy",
|
|
277
275
|
"space_already_claimed",
|
|
276
|
+
"space_capacity_warming",
|
|
278
277
|
"space_claim_unavailable",
|
|
279
278
|
"space_claimed_credential_available",
|
|
280
279
|
"space_disabled",
|
|
@@ -286,6 +285,7 @@ export const ERROR_CODES = [
|
|
|
286
285
|
"space_import_archive_too_large",
|
|
287
286
|
"space_import_config_only_archive",
|
|
288
287
|
"space_import_runtime_schema_unsupported",
|
|
288
|
+
"space_move_would_strand_zero_data",
|
|
289
289
|
"space_moving",
|
|
290
290
|
"space_no_live_version",
|
|
291
291
|
"space_not_disabled",
|
|
@@ -337,7 +337,6 @@ export const ERROR_CODES = [
|
|
|
337
337
|
"upload_hash_mismatch",
|
|
338
338
|
"upload_path_not_canonical",
|
|
339
339
|
"upload_path_not_declared",
|
|
340
|
-
"upload_session_cap_exceeded",
|
|
341
340
|
"upload_size_mismatch",
|
|
342
341
|
"user_banned",
|
|
343
342
|
"validation_error",
|
|
@@ -29,7 +29,7 @@ export type EventActor = z.infer<typeof eventActorSchema>;
|
|
|
29
29
|
export declare const EVENT_CATALOG: {
|
|
30
30
|
"client.page_viewed": {
|
|
31
31
|
sources: ("www" | "dashboard")[];
|
|
32
|
-
actors: ("
|
|
32
|
+
actors: ("analytics_id" | "anonymous_id")[];
|
|
33
33
|
properties: z.ZodObject<{
|
|
34
34
|
path: z.ZodString;
|
|
35
35
|
referrer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -37,7 +37,7 @@ export declare const EVENT_CATALOG: {
|
|
|
37
37
|
};
|
|
38
38
|
"client.web_vital.measured": {
|
|
39
39
|
sources: ("www" | "dashboard")[];
|
|
40
|
-
actors: ("
|
|
40
|
+
actors: ("analytics_id" | "anonymous_id")[];
|
|
41
41
|
properties: z.ZodObject<{
|
|
42
42
|
metric: z.ZodEnum<{
|
|
43
43
|
CLS: "CLS";
|
|
@@ -52,7 +52,7 @@ export declare const EVENT_CATALOG: {
|
|
|
52
52
|
};
|
|
53
53
|
"client.error.observed": {
|
|
54
54
|
sources: ("www" | "dashboard" | "cli" | "other")[];
|
|
55
|
-
actors: ("
|
|
55
|
+
actors: ("analytics_id" | "anonymous_id" | "anonymous_machine")[];
|
|
56
56
|
properties: z.ZodObject<{
|
|
57
57
|
error_class: z.ZodString;
|
|
58
58
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -69,27 +69,27 @@ export declare const EVENT_CATALOG: {
|
|
|
69
69
|
};
|
|
70
70
|
"browser.funnel.claim_page_viewed": {
|
|
71
71
|
sources: ("www" | "dashboard")[];
|
|
72
|
-
actors: ("
|
|
72
|
+
actors: ("analytics_id" | "anonymous_id")[];
|
|
73
73
|
properties: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
74
74
|
};
|
|
75
75
|
"browser.funnel.claim_token_validated": {
|
|
76
76
|
sources: ("www" | "dashboard")[];
|
|
77
|
-
actors: ("
|
|
77
|
+
actors: ("analytics_id" | "anonymous_id")[];
|
|
78
78
|
properties: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
79
79
|
};
|
|
80
80
|
"browser.funnel.space_claimed": {
|
|
81
81
|
sources: ("www" | "dashboard")[];
|
|
82
|
-
actors: ("
|
|
82
|
+
actors: ("analytics_id" | "anonymous_id")[];
|
|
83
83
|
properties: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
84
84
|
};
|
|
85
85
|
"browser.funnel.claim_rescue_countdown_viewed": {
|
|
86
86
|
sources: ("www" | "dashboard")[];
|
|
87
|
-
actors: ("
|
|
87
|
+
actors: ("analytics_id" | "anonymous_id")[];
|
|
88
88
|
properties: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
89
89
|
};
|
|
90
90
|
"browser.funnel.claim_reminder_requested": {
|
|
91
91
|
sources: ("www" | "dashboard")[];
|
|
92
|
-
actors: ("
|
|
92
|
+
actors: ("analytics_id" | "anonymous_id")[];
|
|
93
93
|
properties: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
94
94
|
};
|
|
95
95
|
"domain.search.session_started": {
|
|
@@ -190,7 +190,7 @@ export declare const EVENT_CATALOG: {
|
|
|
190
190
|
};
|
|
191
191
|
"publish.receipt.created": {
|
|
192
192
|
sources: "control-plane"[];
|
|
193
|
-
actors: ("system" | "
|
|
193
|
+
actors: ("system" | "analytics_id" | "anonymous_id")[];
|
|
194
194
|
properties: z.ZodObject<{
|
|
195
195
|
access: z.ZodString;
|
|
196
196
|
anonymous: z.ZodBoolean;
|
|
@@ -202,7 +202,7 @@ export declare const EVENT_CATALOG: {
|
|
|
202
202
|
};
|
|
203
203
|
"version.intent.created": {
|
|
204
204
|
sources: "control-plane"[];
|
|
205
|
-
actors: ("system" | "
|
|
205
|
+
actors: ("system" | "analytics_id" | "anonymous_id")[];
|
|
206
206
|
properties: z.ZodObject<{
|
|
207
207
|
access: z.ZodString;
|
|
208
208
|
file_count: z.ZodNumber;
|
|
@@ -217,7 +217,7 @@ export declare const EVENT_CATALOG: {
|
|
|
217
217
|
};
|
|
218
218
|
"version.finalize.queued": {
|
|
219
219
|
sources: "control-plane"[];
|
|
220
|
-
actors: ("system" | "
|
|
220
|
+
actors: ("system" | "analytics_id" | "anonymous_id")[];
|
|
221
221
|
properties: z.ZodObject<{
|
|
222
222
|
access: z.ZodString;
|
|
223
223
|
async: z.ZodBoolean;
|
|
@@ -228,7 +228,7 @@ export declare const EVENT_CATALOG: {
|
|
|
228
228
|
};
|
|
229
229
|
"version.promote.queued": {
|
|
230
230
|
sources: "control-plane"[];
|
|
231
|
-
actors: ("system" | "
|
|
231
|
+
actors: ("system" | "analytics_id" | "anonymous_id")[];
|
|
232
232
|
properties: z.ZodObject<{
|
|
233
233
|
access: z.ZodString;
|
|
234
234
|
async: z.ZodBoolean;
|
|
@@ -237,7 +237,7 @@ export declare const EVENT_CATALOG: {
|
|
|
237
237
|
};
|
|
238
238
|
"feature.blocked": {
|
|
239
239
|
sources: "control-plane"[];
|
|
240
|
-
actors: ("system" | "
|
|
240
|
+
actors: ("system" | "analytics_id" | "anonymous_id")[];
|
|
241
241
|
properties: z.ZodObject<{
|
|
242
242
|
feature: z.ZodString;
|
|
243
243
|
plan: z.ZodNullable<z.ZodString>;
|