@spacefast/common 0.0.23 → 0.0.24
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/config/domains.d.ts +1 -1
- package/dist/config/domains.js +1 -0
- package/dist/config/index.d.ts +0 -1
- package/dist/config/index.js +0 -1
- package/dist/contracts/abuse.d.ts +2 -0
- package/dist/contracts/abuse.js +12 -0
- package/dist/contracts/access.d.ts +121 -9
- package/dist/contracts/access.js +73 -9
- package/dist/contracts/activity.d.ts +1 -1
- package/dist/contracts/activity.js +0 -9
- package/dist/contracts/api-keys.d.ts +21 -21
- package/dist/contracts/beta.js +1 -1
- package/dist/contracts/billing.d.ts +1 -34
- package/dist/contracts/billing.js +4 -53
- package/dist/contracts/builds.d.ts +8 -8
- package/dist/contracts/builds.js +10 -3
- package/dist/contracts/cli.d.ts +10 -0
- package/dist/contracts/cli.js +10 -0
- package/dist/contracts/collab-public.d.ts +63 -0
- package/dist/contracts/collab-public.js +46 -0
- package/dist/contracts/comments.d.ts +283 -54
- package/dist/contracts/comments.js +173 -52
- package/dist/contracts/common.d.ts +3 -3
- package/dist/contracts/device-auth.d.ts +6 -6
- package/dist/contracts/device-auth.js +1 -1
- package/dist/contracts/docs.d.ts +5 -5
- package/dist/contracts/domains.d.ts +36 -36
- package/dist/contracts/enums.d.ts +33 -30
- package/dist/contracts/enums.js +52 -38
- package/dist/contracts/error-code-meta.d.ts +37 -126
- package/dist/contracts/error-code-meta.js +12 -41
- package/dist/contracts/error-codes.d.ts +1 -1
- package/dist/contracts/error-codes.js +10 -32
- package/dist/contracts/execution.d.ts +35 -57
- package/dist/contracts/execution.js +41 -40
- package/dist/contracts/feature-lifecycle-core.d.ts +0 -6
- package/dist/contracts/feature-lifecycle-core.js +2 -31
- package/dist/contracts/feature-lifecycle.d.ts +8 -38
- package/dist/contracts/feature-lifecycle.js +16 -48
- package/dist/contracts/features.d.ts +15 -13
- package/dist/contracts/features.js +39 -38
- package/dist/contracts/functions.d.ts +97 -70
- package/dist/contracts/functions.js +101 -34
- package/dist/contracts/git.d.ts +1 -1
- package/dist/contracts/grants.d.ts +7 -3
- package/dist/contracts/grants.js +18 -9
- package/dist/contracts/internal.d.ts +14 -1
- package/dist/contracts/internal.js +17 -7
- package/dist/contracts/oauth-resources.d.ts +4 -3
- package/dist/contracts/oauth-resources.js +12 -3
- package/dist/contracts/operations.d.ts +90 -5
- package/dist/contracts/operations.js +75 -1
- package/dist/contracts/pages.d.ts +6 -1
- package/dist/contracts/pages.js +24 -1
- package/dist/contracts/plan-policy.d.ts +1 -3
- package/dist/contracts/plan-policy.js +1 -2
- package/dist/contracts/platform.d.ts +61 -148
- package/dist/contracts/platform.js +70 -126
- package/dist/contracts/publish-archive.d.ts +498 -0
- package/dist/contracts/publish-archive.js +25 -0
- package/dist/contracts/resources.d.ts +12 -24
- package/dist/contracts/resources.js +32 -12
- package/dist/contracts/runtime-api.d.ts +369 -175
- package/dist/contracts/runtime-api.js +372 -348
- package/dist/contracts/runtime-app.d.ts +127 -120
- package/dist/contracts/runtime-app.js +19 -10
- package/dist/contracts/runtime-db.d.ts +1 -1
- package/dist/contracts/runtime-services.d.ts +219 -0
- package/dist/contracts/runtime-services.js +437 -0
- package/dist/contracts/runtime-storage.d.ts +45 -32
- package/dist/contracts/runtime-storage.js +30 -8
- package/dist/contracts/space-config.d.ts +10 -16
- package/dist/contracts/space-config.js +14 -10
- package/dist/contracts/spaces.d.ts +241 -436
- package/dist/contracts/spaces.js +128 -145
- package/dist/contracts/superadmin-activity.d.ts +57 -4
- package/dist/contracts/superadmin-activity.js +48 -2
- package/dist/contracts/superadmin-search.d.ts +126 -0
- package/dist/contracts/superadmin-search.js +61 -0
- package/dist/contracts/superadmin-spaces.d.ts +358 -89
- package/dist/contracts/superadmin-spaces.js +97 -24
- package/dist/contracts/superadmin-teams.d.ts +28 -10
- package/dist/contracts/superadmin-teams.js +5 -8
- package/dist/contracts/superadmin.d.ts +0 -32
- package/dist/contracts/superadmin.js +3 -11
- package/dist/contracts/tags.d.ts +9 -9
- package/dist/contracts/teams.d.ts +38 -0
- package/dist/contracts/teams.js +34 -16
- package/dist/contracts/transfers.d.ts +0 -49
- package/dist/contracts/transfers.js +2 -6
- package/dist/contracts/usage.d.ts +61 -0
- package/dist/contracts/usage.js +64 -0
- package/dist/contracts/variables.d.ts +2 -7
- package/dist/contracts/variables.js +6 -5
- package/dist/contracts/webhooks.d.ts +2 -2
- package/dist/contracts/zero.d.ts +87 -56
- package/dist/contracts/zero.js +82 -20
- package/dist/dashboard-paths/index.d.ts +1 -1
- package/dist/dashboard-paths/index.js +1 -0
- package/dist/docs/agent-prose.d.ts +1 -1
- package/dist/docs/agent-prose.js +57 -61
- package/dist/docs/agent-setup.js +40 -13
- package/dist/docs/catalog.d.ts +19 -19
- package/dist/docs/catalog.js +30 -19
- package/dist/docs/error-docs.js +63 -151
- package/dist/test-helpers/fetch-stub.d.ts +16 -0
- package/dist/test-helpers/fetch-stub.js +24 -0
- package/dist/utils/build-settings.js +9 -3
- package/dist/utils/canonical-json.d.ts +10 -0
- package/dist/utils/canonical-json.js +21 -0
- package/dist/utils/cast-transport.d.ts +28 -0
- package/dist/utils/cast-transport.js +52 -0
- package/dist/utils/claim-token.d.ts +0 -8
- package/dist/utils/claim-token.js +3 -15
- package/dist/utils/credential-policy.d.ts +1 -1
- package/dist/utils/env-file.d.ts +17 -0
- package/dist/utils/env-file.js +96 -0
- package/dist/utils/error-code.d.ts +2 -0
- package/dist/utils/error-code.js +7 -0
- package/dist/utils/generate-space-name.d.ts +8 -10
- package/dist/utils/generate-space-name.js +206 -21
- package/dist/utils/grant-decision.fixtures.json +2938 -0
- package/dist/utils/grants.d.ts +2 -0
- package/dist/utils/grants.js +25 -2
- package/dist/utils/gravatar.d.ts +9 -0
- package/dist/utils/gravatar.js +31 -0
- package/dist/utils/idempotency.d.ts +6 -0
- package/dist/utils/idempotency.js +28 -0
- package/dist/utils/local-space-state.d.ts +1 -5
- package/dist/utils/local-space-state.js +7 -26
- package/dist/utils/page-fonts.d.ts +2 -2
- package/dist/utils/page-fonts.js +22 -4
- package/dist/utils/pages.d.ts +1 -2
- package/dist/utils/pages.js +21 -5
- package/dist/utils/publish-form-data.d.ts +12 -0
- package/dist/utils/publish-form-data.js +10 -0
- package/dist/utils/publish-policy.d.ts +20 -0
- package/dist/utils/publish-policy.fixtures.json +397 -0
- package/dist/utils/publish-policy.js +36 -19
- package/dist/utils/push-new.d.ts +7 -0
- package/dist/utils/push-new.js +7 -0
- package/dist/utils/query-keys.d.ts +0 -1
- package/dist/utils/query-keys.js +0 -1
- package/dist/utils/runtime-paths.d.ts +5 -0
- package/dist/utils/runtime-paths.js +5 -0
- package/dist/utils/runtime-upload-batch.d.ts +0 -5
- package/dist/utils/runtime-upload-batch.js +1 -27
- package/dist/utils/runtime-upload.d.ts +3 -13
- package/dist/utils/runtime-upload.js +4 -14
- package/dist/utils/space-config.d.ts +0 -33
- package/dist/utils/space-config.js +5 -326
- package/dist/utils/storage-policy.d.ts +1 -1
- package/dist/utils/storage-policy.js +3 -1
- package/dist/utils/structured-error.d.ts +14 -0
- package/dist/utils/structured-error.js +22 -0
- package/dist/utils/version-path.js +12 -3
- package/dist/vocabulary.d.ts +5 -3
- package/dist/vocabulary.js +13 -10
- package/package.json +10 -5
- package/dist/config/postgres-budget.d.ts +0 -129
- package/dist/config/postgres-budget.js +0 -140
- package/dist/config/postgres-budget.json +0 -51
- package/dist/contracts/archives.d.ts +0 -331
- package/dist/contracts/archives.js +0 -120
- package/dist/contracts/deployments.d.ts +0 -574
- package/dist/contracts/deployments.js +0 -97
- package/dist/contracts/sites.d.ts +0 -416
- package/dist/contracts/sites.js +0 -168
- package/dist/contracts/superadmin-queues.d.ts +0 -414
- package/dist/contracts/superadmin-queues.js +0 -202
- package/dist/contracts/superadmin-runtime.d.ts +0 -27
- package/dist/contracts/superadmin-runtime.js +0 -38
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/utils/api.d.ts +0 -4
- package/dist/utils/api.js +0 -13
|
@@ -91,8 +91,8 @@ export declare const domainVerificationSchema: z.ZodObject<{
|
|
|
91
91
|
code: z.ZodString;
|
|
92
92
|
severity: z.ZodEnum<{
|
|
93
93
|
info: "info";
|
|
94
|
-
error: "error";
|
|
95
94
|
warning: "warning";
|
|
95
|
+
error: "error";
|
|
96
96
|
}>;
|
|
97
97
|
message: z.ZodString;
|
|
98
98
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -112,8 +112,8 @@ export declare const domainHintSchema: z.ZodObject<{
|
|
|
112
112
|
code: z.ZodString;
|
|
113
113
|
severity: z.ZodEnum<{
|
|
114
114
|
info: "info";
|
|
115
|
-
error: "error";
|
|
116
115
|
warning: "warning";
|
|
116
|
+
error: "error";
|
|
117
117
|
}>;
|
|
118
118
|
painLevel: z.ZodEnum<{
|
|
119
119
|
info: "info";
|
|
@@ -356,8 +356,8 @@ export declare const DomainSchema: z.ZodObject<{
|
|
|
356
356
|
code: z.ZodString;
|
|
357
357
|
severity: z.ZodEnum<{
|
|
358
358
|
info: "info";
|
|
359
|
-
error: "error";
|
|
360
359
|
warning: "warning";
|
|
360
|
+
error: "error";
|
|
361
361
|
}>;
|
|
362
362
|
message: z.ZodString;
|
|
363
363
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -377,8 +377,8 @@ export declare const DomainSchema: z.ZodObject<{
|
|
|
377
377
|
code: z.ZodString;
|
|
378
378
|
severity: z.ZodEnum<{
|
|
379
379
|
info: "info";
|
|
380
|
-
error: "error";
|
|
381
380
|
warning: "warning";
|
|
381
|
+
error: "error";
|
|
382
382
|
}>;
|
|
383
383
|
painLevel: z.ZodEnum<{
|
|
384
384
|
info: "info";
|
|
@@ -614,8 +614,8 @@ export declare const domainListResponseSchema: z.ZodObject<{
|
|
|
614
614
|
code: z.ZodString;
|
|
615
615
|
severity: z.ZodEnum<{
|
|
616
616
|
info: "info";
|
|
617
|
-
error: "error";
|
|
618
617
|
warning: "warning";
|
|
618
|
+
error: "error";
|
|
619
619
|
}>;
|
|
620
620
|
message: z.ZodString;
|
|
621
621
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -635,8 +635,8 @@ export declare const domainListResponseSchema: z.ZodObject<{
|
|
|
635
635
|
code: z.ZodString;
|
|
636
636
|
severity: z.ZodEnum<{
|
|
637
637
|
info: "info";
|
|
638
|
-
error: "error";
|
|
639
638
|
warning: "warning";
|
|
639
|
+
error: "error";
|
|
640
640
|
}>;
|
|
641
641
|
painLevel: z.ZodEnum<{
|
|
642
642
|
info: "info";
|
|
@@ -869,8 +869,8 @@ export declare const spaceCustomDomainSchema: z.ZodObject<{
|
|
|
869
869
|
code: z.ZodString;
|
|
870
870
|
severity: z.ZodEnum<{
|
|
871
871
|
info: "info";
|
|
872
|
-
error: "error";
|
|
873
872
|
warning: "warning";
|
|
873
|
+
error: "error";
|
|
874
874
|
}>;
|
|
875
875
|
message: z.ZodString;
|
|
876
876
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -890,8 +890,8 @@ export declare const spaceCustomDomainSchema: z.ZodObject<{
|
|
|
890
890
|
code: z.ZodString;
|
|
891
891
|
severity: z.ZodEnum<{
|
|
892
892
|
info: "info";
|
|
893
|
-
error: "error";
|
|
894
893
|
warning: "warning";
|
|
894
|
+
error: "error";
|
|
895
895
|
}>;
|
|
896
896
|
painLevel: z.ZodEnum<{
|
|
897
897
|
info: "info";
|
|
@@ -1038,8 +1038,8 @@ export declare const spaceManagedDomainSchema: z.ZodObject<{
|
|
|
1038
1038
|
code: z.ZodString;
|
|
1039
1039
|
severity: z.ZodEnum<{
|
|
1040
1040
|
info: "info";
|
|
1041
|
-
error: "error";
|
|
1042
1041
|
warning: "warning";
|
|
1042
|
+
error: "error";
|
|
1043
1043
|
}>;
|
|
1044
1044
|
message: z.ZodString;
|
|
1045
1045
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1093,8 +1093,8 @@ export declare const spaceDomainSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1093
1093
|
code: z.ZodString;
|
|
1094
1094
|
severity: z.ZodEnum<{
|
|
1095
1095
|
info: "info";
|
|
1096
|
-
error: "error";
|
|
1097
1096
|
warning: "warning";
|
|
1097
|
+
error: "error";
|
|
1098
1098
|
}>;
|
|
1099
1099
|
message: z.ZodString;
|
|
1100
1100
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1233,8 +1233,8 @@ export declare const spaceDomainSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1233
1233
|
code: z.ZodString;
|
|
1234
1234
|
severity: z.ZodEnum<{
|
|
1235
1235
|
info: "info";
|
|
1236
|
-
error: "error";
|
|
1237
1236
|
warning: "warning";
|
|
1237
|
+
error: "error";
|
|
1238
1238
|
}>;
|
|
1239
1239
|
message: z.ZodString;
|
|
1240
1240
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1254,8 +1254,8 @@ export declare const spaceDomainSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1254
1254
|
code: z.ZodString;
|
|
1255
1255
|
severity: z.ZodEnum<{
|
|
1256
1256
|
info: "info";
|
|
1257
|
-
error: "error";
|
|
1258
1257
|
warning: "warning";
|
|
1258
|
+
error: "error";
|
|
1259
1259
|
}>;
|
|
1260
1260
|
painLevel: z.ZodEnum<{
|
|
1261
1261
|
info: "info";
|
|
@@ -1404,8 +1404,8 @@ export declare const spaceDomainListResponseSchema: z.ZodObject<{
|
|
|
1404
1404
|
code: z.ZodString;
|
|
1405
1405
|
severity: z.ZodEnum<{
|
|
1406
1406
|
info: "info";
|
|
1407
|
-
error: "error";
|
|
1408
1407
|
warning: "warning";
|
|
1408
|
+
error: "error";
|
|
1409
1409
|
}>;
|
|
1410
1410
|
message: z.ZodString;
|
|
1411
1411
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1544,8 +1544,8 @@ export declare const spaceDomainListResponseSchema: z.ZodObject<{
|
|
|
1544
1544
|
code: z.ZodString;
|
|
1545
1545
|
severity: z.ZodEnum<{
|
|
1546
1546
|
info: "info";
|
|
1547
|
-
error: "error";
|
|
1548
1547
|
warning: "warning";
|
|
1548
|
+
error: "error";
|
|
1549
1549
|
}>;
|
|
1550
1550
|
message: z.ZodString;
|
|
1551
1551
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1565,8 +1565,8 @@ export declare const spaceDomainListResponseSchema: z.ZodObject<{
|
|
|
1565
1565
|
code: z.ZodString;
|
|
1566
1566
|
severity: z.ZodEnum<{
|
|
1567
1567
|
info: "info";
|
|
1568
|
-
error: "error";
|
|
1569
1568
|
warning: "warning";
|
|
1569
|
+
error: "error";
|
|
1570
1570
|
}>;
|
|
1571
1571
|
painLevel: z.ZodEnum<{
|
|
1572
1572
|
info: "info";
|
|
@@ -1718,8 +1718,8 @@ export declare const teamManagedDomainSchema: z.ZodObject<{
|
|
|
1718
1718
|
code: z.ZodString;
|
|
1719
1719
|
severity: z.ZodEnum<{
|
|
1720
1720
|
info: "info";
|
|
1721
|
-
error: "error";
|
|
1722
1721
|
warning: "warning";
|
|
1722
|
+
error: "error";
|
|
1723
1723
|
}>;
|
|
1724
1724
|
message: z.ZodString;
|
|
1725
1725
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1778,8 +1778,8 @@ export declare const teamManagedDomainListResponseSchema: z.ZodObject<{
|
|
|
1778
1778
|
code: z.ZodString;
|
|
1779
1779
|
severity: z.ZodEnum<{
|
|
1780
1780
|
info: "info";
|
|
1781
|
-
error: "error";
|
|
1782
1781
|
warning: "warning";
|
|
1782
|
+
error: "error";
|
|
1783
1783
|
}>;
|
|
1784
1784
|
message: z.ZodString;
|
|
1785
1785
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1899,8 +1899,8 @@ export declare const domainRegistrationActionResponseSchema: z.ZodObject<{
|
|
|
1899
1899
|
code: z.ZodString;
|
|
1900
1900
|
severity: z.ZodEnum<{
|
|
1901
1901
|
info: "info";
|
|
1902
|
-
error: "error";
|
|
1903
1902
|
warning: "warning";
|
|
1903
|
+
error: "error";
|
|
1904
1904
|
}>;
|
|
1905
1905
|
message: z.ZodString;
|
|
1906
1906
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1942,8 +1942,8 @@ export declare const domainNameserverResponseSchema: z.ZodObject<{
|
|
|
1942
1942
|
code: z.ZodString;
|
|
1943
1943
|
severity: z.ZodEnum<{
|
|
1944
1944
|
info: "info";
|
|
1945
|
-
error: "error";
|
|
1946
1945
|
warning: "warning";
|
|
1946
|
+
error: "error";
|
|
1947
1947
|
}>;
|
|
1948
1948
|
message: z.ZodString;
|
|
1949
1949
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2091,8 +2091,8 @@ export declare const domainDnsModeResponseSchema: z.ZodObject<{
|
|
|
2091
2091
|
code: z.ZodString;
|
|
2092
2092
|
severity: z.ZodEnum<{
|
|
2093
2093
|
info: "info";
|
|
2094
|
-
error: "error";
|
|
2095
2094
|
warning: "warning";
|
|
2095
|
+
error: "error";
|
|
2096
2096
|
}>;
|
|
2097
2097
|
message: z.ZodString;
|
|
2098
2098
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2112,8 +2112,8 @@ export declare const domainDnsModeResponseSchema: z.ZodObject<{
|
|
|
2112
2112
|
code: z.ZodString;
|
|
2113
2113
|
severity: z.ZodEnum<{
|
|
2114
2114
|
info: "info";
|
|
2115
|
-
error: "error";
|
|
2116
2115
|
warning: "warning";
|
|
2116
|
+
error: "error";
|
|
2117
2117
|
}>;
|
|
2118
2118
|
painLevel: z.ZodEnum<{
|
|
2119
2119
|
info: "info";
|
|
@@ -2224,8 +2224,8 @@ export declare const domainDnsModeResponseSchema: z.ZodObject<{
|
|
|
2224
2224
|
code: z.ZodString;
|
|
2225
2225
|
severity: z.ZodEnum<{
|
|
2226
2226
|
info: "info";
|
|
2227
|
-
error: "error";
|
|
2228
2227
|
warning: "warning";
|
|
2228
|
+
error: "error";
|
|
2229
2229
|
}>;
|
|
2230
2230
|
message: z.ZodString;
|
|
2231
2231
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2292,8 +2292,8 @@ export declare const domainDnsModeResponseSchema: z.ZodObject<{
|
|
|
2292
2292
|
code: z.ZodString;
|
|
2293
2293
|
severity: z.ZodEnum<{
|
|
2294
2294
|
info: "info";
|
|
2295
|
-
error: "error";
|
|
2296
2295
|
warning: "warning";
|
|
2296
|
+
error: "error";
|
|
2297
2297
|
}>;
|
|
2298
2298
|
message: z.ZodString;
|
|
2299
2299
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2791,8 +2791,8 @@ export declare const domainDnsCapabilitiesSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2791
2791
|
code: z.ZodString;
|
|
2792
2792
|
severity: z.ZodEnum<{
|
|
2793
2793
|
info: "info";
|
|
2794
|
-
error: "error";
|
|
2795
2794
|
warning: "warning";
|
|
2795
|
+
error: "error";
|
|
2796
2796
|
}>;
|
|
2797
2797
|
message: z.ZodString;
|
|
2798
2798
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2940,7 +2940,7 @@ export declare const domainDnsCapabilitiesSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2940
2940
|
};
|
|
2941
2941
|
diagnostics: {
|
|
2942
2942
|
code: string;
|
|
2943
|
-
severity: "info" | "
|
|
2943
|
+
severity: "info" | "warning" | "error";
|
|
2944
2944
|
message: string;
|
|
2945
2945
|
path?: string | null | undefined;
|
|
2946
2946
|
provider?: "registrar" | "wpcloud" | "dns" | "runtime" | null | undefined;
|
|
@@ -3081,7 +3081,7 @@ export declare const domainDnsCapabilitiesSchema: z.ZodPipe<z.ZodObject<{
|
|
|
3081
3081
|
};
|
|
3082
3082
|
diagnostics: {
|
|
3083
3083
|
code: string;
|
|
3084
|
-
severity: "info" | "
|
|
3084
|
+
severity: "info" | "warning" | "error";
|
|
3085
3085
|
message: string;
|
|
3086
3086
|
path?: string | null | undefined;
|
|
3087
3087
|
provider?: "registrar" | "wpcloud" | "dns" | "runtime" | null | undefined;
|
|
@@ -3347,8 +3347,8 @@ export declare const domainProviderSnapshotRefreshResponseSchema: z.ZodObject<{
|
|
|
3347
3347
|
code: z.ZodString;
|
|
3348
3348
|
severity: z.ZodEnum<{
|
|
3349
3349
|
info: "info";
|
|
3350
|
-
error: "error";
|
|
3351
3350
|
warning: "warning";
|
|
3351
|
+
error: "error";
|
|
3352
3352
|
}>;
|
|
3353
3353
|
message: z.ZodString;
|
|
3354
3354
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -3419,8 +3419,8 @@ export declare const domainDnsOperationSchema: z.ZodObject<{
|
|
|
3419
3419
|
code: z.ZodString;
|
|
3420
3420
|
severity: z.ZodEnum<{
|
|
3421
3421
|
info: "info";
|
|
3422
|
-
error: "error";
|
|
3423
3422
|
warning: "warning";
|
|
3423
|
+
error: "error";
|
|
3424
3424
|
}>;
|
|
3425
3425
|
message: z.ZodString;
|
|
3426
3426
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -3473,8 +3473,8 @@ export declare const domainDnsOperationSchema: z.ZodObject<{
|
|
|
3473
3473
|
code: z.ZodString;
|
|
3474
3474
|
severity: z.ZodEnum<{
|
|
3475
3475
|
info: "info";
|
|
3476
|
-
error: "error";
|
|
3477
3476
|
warning: "warning";
|
|
3477
|
+
error: "error";
|
|
3478
3478
|
}>;
|
|
3479
3479
|
painLevel: z.ZodEnum<{
|
|
3480
3480
|
info: "info";
|
|
@@ -3620,8 +3620,8 @@ export declare const domainDnsOperationListResponseSchema: z.ZodObject<{
|
|
|
3620
3620
|
code: z.ZodString;
|
|
3621
3621
|
severity: z.ZodEnum<{
|
|
3622
3622
|
info: "info";
|
|
3623
|
-
error: "error";
|
|
3624
3623
|
warning: "warning";
|
|
3624
|
+
error: "error";
|
|
3625
3625
|
}>;
|
|
3626
3626
|
message: z.ZodString;
|
|
3627
3627
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -3674,8 +3674,8 @@ export declare const domainDnsOperationListResponseSchema: z.ZodObject<{
|
|
|
3674
3674
|
code: z.ZodString;
|
|
3675
3675
|
severity: z.ZodEnum<{
|
|
3676
3676
|
info: "info";
|
|
3677
|
-
error: "error";
|
|
3678
3677
|
warning: "warning";
|
|
3678
|
+
error: "error";
|
|
3679
3679
|
}>;
|
|
3680
3680
|
painLevel: z.ZodEnum<{
|
|
3681
3681
|
info: "info";
|
|
@@ -4153,8 +4153,8 @@ export declare const domainActionMutationResponseSchema: z.ZodObject<{
|
|
|
4153
4153
|
code: z.ZodString;
|
|
4154
4154
|
severity: z.ZodEnum<{
|
|
4155
4155
|
info: "info";
|
|
4156
|
-
error: "error";
|
|
4157
4156
|
warning: "warning";
|
|
4157
|
+
error: "error";
|
|
4158
4158
|
}>;
|
|
4159
4159
|
message: z.ZodString;
|
|
4160
4160
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -4483,8 +4483,8 @@ export declare const domainDnsRecordListResponseSchema: z.ZodObject<{
|
|
|
4483
4483
|
code: z.ZodString;
|
|
4484
4484
|
severity: z.ZodEnum<{
|
|
4485
4485
|
info: "info";
|
|
4486
|
-
error: "error";
|
|
4487
4486
|
warning: "warning";
|
|
4487
|
+
error: "error";
|
|
4488
4488
|
}>;
|
|
4489
4489
|
message: z.ZodString;
|
|
4490
4490
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -4632,7 +4632,7 @@ export declare const domainDnsRecordListResponseSchema: z.ZodObject<{
|
|
|
4632
4632
|
};
|
|
4633
4633
|
diagnostics: {
|
|
4634
4634
|
code: string;
|
|
4635
|
-
severity: "info" | "
|
|
4635
|
+
severity: "info" | "warning" | "error";
|
|
4636
4636
|
message: string;
|
|
4637
4637
|
path?: string | null | undefined;
|
|
4638
4638
|
provider?: "registrar" | "wpcloud" | "dns" | "runtime" | null | undefined;
|
|
@@ -4773,7 +4773,7 @@ export declare const domainDnsRecordListResponseSchema: z.ZodObject<{
|
|
|
4773
4773
|
};
|
|
4774
4774
|
diagnostics: {
|
|
4775
4775
|
code: string;
|
|
4776
|
-
severity: "info" | "
|
|
4776
|
+
severity: "info" | "warning" | "error";
|
|
4777
4777
|
message: string;
|
|
4778
4778
|
path?: string | null | undefined;
|
|
4779
4779
|
provider?: "registrar" | "wpcloud" | "dns" | "runtime" | null | undefined;
|
|
@@ -4997,8 +4997,8 @@ export declare const domainDiagnosticsResponseSchema: z.ZodObject<{
|
|
|
4997
4997
|
code: z.ZodString;
|
|
4998
4998
|
severity: z.ZodEnum<{
|
|
4999
4999
|
info: "info";
|
|
5000
|
-
error: "error";
|
|
5001
5000
|
warning: "warning";
|
|
5001
|
+
error: "error";
|
|
5002
5002
|
}>;
|
|
5003
5003
|
message: z.ZodString;
|
|
5004
5004
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1,33 +1,27 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const spaceStatusValues: readonly ["provisioning", "active", "updating", "
|
|
2
|
+
export declare const spaceStatusValues: readonly ["provisioning", "active", "updating", "deleting", "failed"];
|
|
3
3
|
export declare const spaceStatus: z.ZodEnum<{
|
|
4
4
|
active: "active";
|
|
5
5
|
provisioning: "provisioning";
|
|
6
6
|
updating: "updating";
|
|
7
|
-
moving: "moving";
|
|
8
7
|
deleting: "deleting";
|
|
9
8
|
failed: "failed";
|
|
10
9
|
}>;
|
|
11
|
-
export declare const spaceDisabledReasonCodeValues: readonly ["anonymous_expired", "abuse_takedown", "tenant_suspended", "site_suspended"];
|
|
10
|
+
export declare const spaceDisabledReasonCodeValues: readonly ["anonymous_expired", "abuse_takedown", "tenant_suspended", "site_suspended", "author_removed"];
|
|
12
11
|
export declare const spaceDisabledReasonCode: z.ZodEnum<{
|
|
13
12
|
anonymous_expired: "anonymous_expired";
|
|
14
13
|
abuse_takedown: "abuse_takedown";
|
|
15
14
|
tenant_suspended: "tenant_suspended";
|
|
16
15
|
site_suspended: "site_suspended";
|
|
16
|
+
author_removed: "author_removed";
|
|
17
17
|
}>;
|
|
18
|
-
export declare const spaceTransferStatusValues: readonly ["pending_confirmation", "
|
|
18
|
+
export declare const spaceTransferStatusValues: readonly ["pending_confirmation", "completed", "canceled", "expired"];
|
|
19
19
|
export declare const spaceTransferStatus: z.ZodEnum<{
|
|
20
20
|
pending_confirmation: "pending_confirmation";
|
|
21
|
-
confirming_domains: "confirming_domains";
|
|
22
21
|
completed: "completed";
|
|
23
22
|
canceled: "canceled";
|
|
24
23
|
expired: "expired";
|
|
25
24
|
}>;
|
|
26
|
-
export declare const siteIsolationValues: readonly ["site", "space"];
|
|
27
|
-
export declare const siteIsolation: z.ZodEnum<{
|
|
28
|
-
site: "site";
|
|
29
|
-
space: "space";
|
|
30
|
-
}>;
|
|
31
25
|
export declare const tenantKindValues: readonly ["main", "platform", "partner", "internal"];
|
|
32
26
|
export declare const tenantKind: z.ZodEnum<{
|
|
33
27
|
internal: "internal";
|
|
@@ -51,6 +45,11 @@ export declare const siteKindValues: readonly ["static_runtime"];
|
|
|
51
45
|
export declare const siteKind: z.ZodEnum<{
|
|
52
46
|
static_runtime: "static_runtime";
|
|
53
47
|
}>;
|
|
48
|
+
export declare const siteIsolationValues: readonly ["site", "space"];
|
|
49
|
+
export declare const siteIsolation: z.ZodEnum<{
|
|
50
|
+
site: "site";
|
|
51
|
+
space: "space";
|
|
52
|
+
}>;
|
|
54
53
|
export declare const siteStatusValues: readonly ["ready_pool", "active", "provisioning", "degraded", "suspended", "deleted"];
|
|
55
54
|
export declare const siteStatus: z.ZodEnum<{
|
|
56
55
|
active: "active";
|
|
@@ -60,22 +59,13 @@ export declare const siteStatus: z.ZodEnum<{
|
|
|
60
59
|
ready_pool: "ready_pool";
|
|
61
60
|
degraded: "degraded";
|
|
62
61
|
}>;
|
|
63
|
-
export declare const
|
|
64
|
-
export declare const
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}>;
|
|
71
|
-
export declare const normalizedSiteClassValues: readonly ["shared", "dedicated"];
|
|
72
|
-
export declare const normalizedSiteClass: z.ZodEnum<{
|
|
73
|
-
shared: "shared";
|
|
74
|
-
dedicated: "dedicated";
|
|
75
|
-
}>;
|
|
76
|
-
export declare function normalizeSiteClass(value: SiteClass): NormalizedSiteClass;
|
|
77
|
-
export declare function siteClassIsShared(value: SiteClass): boolean;
|
|
78
|
-
export declare function siteClassIsDedicated(value: SiteClass): boolean;
|
|
62
|
+
export declare const poolSiteStatusValues: readonly ["provisioning", "ready_pool", "degraded", "retired"];
|
|
63
|
+
export declare const poolSiteStatus: z.ZodEnum<{
|
|
64
|
+
provisioning: "provisioning";
|
|
65
|
+
ready_pool: "ready_pool";
|
|
66
|
+
degraded: "degraded";
|
|
67
|
+
retired: "retired";
|
|
68
|
+
}>;
|
|
79
69
|
export declare const publishSourceKindValues: readonly ["direct_upload", "cli", "dashboard", "api", "git", "import", "agent", "build", "variable_update", "config_update"];
|
|
80
70
|
export declare const publishSourceKind: z.ZodEnum<{
|
|
81
71
|
build: "build";
|
|
@@ -123,8 +113,8 @@ export declare const buildStatus: z.ZodEnum<{
|
|
|
123
113
|
}>;
|
|
124
114
|
export declare const diagnosticSeverity: z.ZodEnum<{
|
|
125
115
|
info: "info";
|
|
126
|
-
error: "error";
|
|
127
116
|
warning: "warning";
|
|
117
|
+
error: "error";
|
|
128
118
|
}>;
|
|
129
119
|
export declare const diagnosticProvider: z.ZodEnum<{
|
|
130
120
|
registrar: "registrar";
|
|
@@ -152,6 +142,19 @@ export declare const safetyCategory: z.ZodEnum<{
|
|
|
152
142
|
compromised_account: "compromised_account";
|
|
153
143
|
other_violation: "other_violation";
|
|
154
144
|
}>;
|
|
145
|
+
export declare const safetyResolutionReasonValues: readonly ["malware_confirmed", "phishing_confirmed", "csam_escalated", "spam_confirmed", "copyright_takedown", "false_positive", "test_detection", "duplicate", "insufficient_evidence", "other"];
|
|
146
|
+
export declare const safetyResolutionReason: z.ZodEnum<{
|
|
147
|
+
malware_confirmed: "malware_confirmed";
|
|
148
|
+
phishing_confirmed: "phishing_confirmed";
|
|
149
|
+
csam_escalated: "csam_escalated";
|
|
150
|
+
spam_confirmed: "spam_confirmed";
|
|
151
|
+
copyright_takedown: "copyright_takedown";
|
|
152
|
+
false_positive: "false_positive";
|
|
153
|
+
test_detection: "test_detection";
|
|
154
|
+
duplicate: "duplicate";
|
|
155
|
+
insufficient_evidence: "insufficient_evidence";
|
|
156
|
+
other: "other";
|
|
157
|
+
}>;
|
|
155
158
|
export declare const SAFETY_SEVERITY: {
|
|
156
159
|
readonly suspicious: 1;
|
|
157
160
|
readonly low: 2;
|
|
@@ -175,11 +178,11 @@ export declare const operationStatus: z.ZodEnum<{
|
|
|
175
178
|
}>;
|
|
176
179
|
export type GitProvider = z.infer<typeof gitProvider>;
|
|
177
180
|
export type PublishSourceKind = z.infer<typeof publishSourceKind>;
|
|
181
|
+
export type PoolSiteStatus = z.infer<typeof poolSiteStatus>;
|
|
182
|
+
export type SiteKind = z.infer<typeof siteKind>;
|
|
178
183
|
export type SiteIsolation = z.infer<typeof siteIsolation>;
|
|
179
184
|
export type TenantStatus = z.infer<typeof tenantStatus>;
|
|
180
|
-
export type SiteKind = z.infer<typeof siteKind>;
|
|
181
|
-
export type SiteClass = z.infer<typeof siteClass>;
|
|
182
|
-
export type NormalizedSiteClass = z.infer<typeof normalizedSiteClass>;
|
|
183
185
|
export type OperationStatus = z.infer<typeof operationStatus>;
|
|
184
186
|
export type SafetyCategory = z.infer<typeof safetyCategory>;
|
|
187
|
+
export type SafetyResolutionReason = z.infer<typeof safetyResolutionReason>;
|
|
185
188
|
export type EnforcementTier = z.infer<typeof enforcementTier>;
|
package/dist/contracts/enums.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
// Space operation-lifecycle axis (internal-docs/platform.md "Space"): exactly
|
|
3
|
-
// these
|
|
4
|
-
// a disabled space can still be updating
|
|
3
|
+
// these five. Serving (disabled) and deletion (deletedAt) are separate axes —
|
|
4
|
+
// a disabled space can still be updating. There is no `moving`: a space IS a
|
|
5
|
+
// site, so ownership changes commit in place and nothing relocates.
|
|
5
6
|
export const spaceStatusValues = [
|
|
6
7
|
"provisioning",
|
|
7
8
|
"active",
|
|
8
9
|
"updating",
|
|
9
|
-
"moving",
|
|
10
10
|
"deleting",
|
|
11
11
|
"failed",
|
|
12
12
|
];
|
|
@@ -19,26 +19,25 @@ export const spaceDisabledReasonCodeValues = [
|
|
|
19
19
|
"abuse_takedown",
|
|
20
20
|
"tenant_suspended",
|
|
21
21
|
"site_suspended",
|
|
22
|
+
// Space-key author delete, phase one: the holder of an unclaimed space's key
|
|
23
|
+
// took the site dark. The key survives, so the same key can restore (or
|
|
24
|
+
// claim) until the claim window expires; expiry then hard-deletes as usual.
|
|
25
|
+
"author_removed",
|
|
22
26
|
];
|
|
23
27
|
export const spaceDisabledReasonCode = z.enum(spaceDisabledReasonCodeValues);
|
|
24
28
|
// SpaceTransfer status machine (internal-docs/platform.md "Transfer
|
|
25
|
-
// semantics"), stored directly — there is no separate DB vocabulary.
|
|
26
|
-
//
|
|
27
|
-
//
|
|
28
|
-
//
|
|
29
|
-
// on `canceled`.
|
|
29
|
+
// semantics"), stored directly — there is no separate DB vocabulary. A
|
|
30
|
+
// transfer is a request that the receiving side accepts; accepting moves
|
|
31
|
+
// ownership in one database transaction, so there is no intermediate moving
|
|
32
|
+
// state and no `failed` state. Withdraw (from-side) and decline (to-side)
|
|
33
|
+
// both land on `canceled`.
|
|
30
34
|
export const spaceTransferStatusValues = [
|
|
31
35
|
"pending_confirmation",
|
|
32
|
-
"confirming_domains",
|
|
33
36
|
"completed",
|
|
34
37
|
"canceled",
|
|
35
38
|
"expired",
|
|
36
39
|
];
|
|
37
40
|
export const spaceTransferStatus = z.enum(spaceTransferStatusValues);
|
|
38
|
-
// Site axes per internal-docs/platform.md. `isolation` controls
|
|
39
|
-
// whether settings/access default to the site or to each space.
|
|
40
|
-
export const siteIsolationValues = ["site", "space"];
|
|
41
|
-
export const siteIsolation = z.enum(siteIsolationValues);
|
|
42
41
|
// A tenant is the platform-account boundary that owns every resource (internal-docs/platform.md
|
|
43
42
|
// "Tenant -> Site -> Space"), Stripe-style. `main` is the single well-known
|
|
44
43
|
// Stattic account (`ten_main`) all self-serve teams/users live under;
|
|
@@ -56,12 +55,21 @@ export const tenantStatus = z.enum(tenantStatusValues);
|
|
|
56
55
|
// (operator-only resource, `pvc_` prefix).
|
|
57
56
|
export const providerClientStatusValues = ["active", "disabled"];
|
|
58
57
|
export const providerClientStatus = z.enum(providerClientStatusValues);
|
|
59
|
-
//
|
|
60
|
-
//
|
|
58
|
+
// The only site shape there is. Kept as a named vocabulary because the sites
|
|
59
|
+
// table spells it as an enum column; a dead-code sweep removed it while that
|
|
60
|
+
// column still referenced it.
|
|
61
61
|
export const siteKindValues = ["static_runtime"];
|
|
62
62
|
export const siteKind = z.enum(siteKindValues);
|
|
63
|
-
//
|
|
64
|
-
//
|
|
63
|
+
// Whether settings and access default to the site or to each space. Same story
|
|
64
|
+
// as the two vocabularies around it: a dead-code sweep took it while the
|
|
65
|
+
// `sites` table's own column still named it.
|
|
66
|
+
export const siteIsolationValues = ["site", "space"];
|
|
67
|
+
export const siteIsolation = z.enum(siteIsolationValues);
|
|
68
|
+
// Site lifecycle. A dead-code sweep removed this vocabulary while two live
|
|
69
|
+
// consumers still needed it: the `sites` table's own status column and the
|
|
70
|
+
// superadmin provider-site search result. `ready_pool` is a pre-provisioned
|
|
71
|
+
// warm site waiting to be claimed — load-bearing now that every space draws
|
|
72
|
+
// its own site from the pool.
|
|
65
73
|
export const siteStatusValues = [
|
|
66
74
|
"ready_pool",
|
|
67
75
|
"active",
|
|
@@ -71,27 +79,15 @@ export const siteStatusValues = [
|
|
|
71
79
|
"deleted",
|
|
72
80
|
];
|
|
73
81
|
export const siteStatus = z.enum(siteStatusValues);
|
|
74
|
-
//
|
|
75
|
-
//
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
export const siteClass = z.enum(siteClassValues);
|
|
84
|
-
export const normalizedSiteClassValues = ["shared", "dedicated"];
|
|
85
|
-
export const normalizedSiteClass = z.enum(normalizedSiteClassValues);
|
|
86
|
-
export function normalizeSiteClass(value) {
|
|
87
|
-
return value === "dedicated" || value === "dedicated_space" ? "dedicated" : "shared";
|
|
88
|
-
}
|
|
89
|
-
export function siteClassIsShared(value) {
|
|
90
|
-
return normalizeSiteClass(value) === "shared";
|
|
91
|
-
}
|
|
92
|
-
export function siteClassIsDedicated(value) {
|
|
93
|
-
return normalizeSiteClass(value) === "dedicated";
|
|
94
|
-
}
|
|
82
|
+
// Warm-pool inventory (`site_pool`): provider sites provisioned ahead of
|
|
83
|
+
// demand, with no owner yet. A space IS a site, so these statuses are the
|
|
84
|
+
// whole lifecycle a row can have before a space adopts it and the row is
|
|
85
|
+
// deleted — `active`/`suspended`/`deleted` were live-space states and now live
|
|
86
|
+
// on the space's own axes. `retired` holds a drained space=site migration
|
|
87
|
+
// source box: not adoptable, not reapable, kept permanently — migration
|
|
88
|
+
// tooling never deletes a wp.cloud site (owner ruling 2026-08-11).
|
|
89
|
+
export const poolSiteStatusValues = ["provisioning", "ready_pool", "degraded", "retired"];
|
|
90
|
+
export const poolSiteStatus = z.enum(poolSiteStatusValues);
|
|
95
91
|
// PublishSource.kind (internal-docs/platform.md "PublishSource"): the single
|
|
96
92
|
// provenance axis for how a version came to exist. `variable_update` and
|
|
97
93
|
// `config_update` versions are minted by cascades/config regeneration.
|
|
@@ -202,6 +198,24 @@ export const safetyCategoryValues = [
|
|
|
202
198
|
"other_violation",
|
|
203
199
|
];
|
|
204
200
|
export const safetyCategory = z.enum(safetyCategoryValues);
|
|
201
|
+
// Why a review item was closed (or a space taken down): the operator's verdict
|
|
202
|
+
// in one word, so enforcement quality is measurable without parsing notes.
|
|
203
|
+
// Confirmed-* reasons say the detection was right; the tail says it wasn't
|
|
204
|
+
// (false_positive, test_detection) or the item never needed its own verdict
|
|
205
|
+
// (duplicate, insufficient_evidence, other).
|
|
206
|
+
export const safetyResolutionReasonValues = [
|
|
207
|
+
"malware_confirmed",
|
|
208
|
+
"phishing_confirmed",
|
|
209
|
+
"csam_escalated",
|
|
210
|
+
"spam_confirmed",
|
|
211
|
+
"copyright_takedown",
|
|
212
|
+
"false_positive",
|
|
213
|
+
"test_detection",
|
|
214
|
+
"duplicate",
|
|
215
|
+
"insufficient_evidence",
|
|
216
|
+
"other",
|
|
217
|
+
];
|
|
218
|
+
export const safetyResolutionReason = z.enum(safetyResolutionReasonValues);
|
|
205
219
|
// 1 = suspicious, 2 = low, 3 = medium, 4 = high, 5 = critical.
|
|
206
220
|
export const SAFETY_SEVERITY = {
|
|
207
221
|
suspicious: 1,
|