@spacefast/common 0.0.24 → 0.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/brand-assets/LICENSE-Haskoy.txt +93 -0
- package/brand-assets/haskoy-latin-variable.woff2 +0 -0
- package/brand-assets/spacefast-favicon.svg +4 -4
- package/brand-assets/spacefast-sf-full-bleed.svg +3 -3
- package/brand-assets/spacefast-wordmark.svg +2 -4
- package/dist/agents/connect-targets.js +1 -1
- package/dist/agents/private-key-oauth.d.ts +0 -1
- package/dist/agents/private-key-oauth.js +46 -63
- package/dist/brand-assets-build.js +4 -6
- package/dist/brand-assets.d.ts +5 -15
- package/dist/brand-assets.js +15 -14
- package/dist/config/domains.d.ts +47 -7
- package/dist/config/domains.js +65 -10
- package/dist/contracts/access.d.ts +3 -3
- package/dist/contracts/activity.d.ts +1 -1
- package/dist/contracts/activity.js +5 -3
- package/dist/contracts/api-keys.js +2 -2
- package/dist/contracts/billing.d.ts +2 -1
- package/dist/contracts/billing.js +30 -0
- package/dist/contracts/builds.d.ts +34 -22
- package/dist/contracts/builds.js +18 -6
- package/dist/contracts/channels.js +1 -1
- package/dist/contracts/comments.d.ts +1 -1
- package/dist/contracts/common.d.ts +6 -6
- package/dist/contracts/common.js +5 -5
- package/dist/contracts/crons.d.ts +35 -0
- package/dist/contracts/crons.js +42 -0
- package/dist/contracts/device-auth.js +1 -1
- package/dist/contracts/docs.d.ts +5 -5
- package/dist/contracts/docs.js +2 -2
- package/dist/contracts/domains.d.ts +74 -63
- package/dist/contracts/domains.js +29 -2
- package/dist/contracts/enums.d.ts +3 -2
- package/dist/contracts/enums.js +10 -10
- package/dist/contracts/error-code-meta.d.ts +14 -0
- package/dist/contracts/error-code-meta.js +17 -0
- package/dist/contracts/error-codes.d.ts +1 -1
- package/dist/contracts/error-codes.js +4 -1
- package/dist/contracts/execution.d.ts +15 -12
- package/dist/contracts/execution.js +15 -12
- package/dist/contracts/feature-lifecycle.d.ts +4 -14
- package/dist/contracts/feature-lifecycle.js +0 -11
- package/dist/contracts/features.d.ts +33 -47
- package/dist/contracts/features.js +27 -20
- package/dist/contracts/functions.d.ts +169 -2
- package/dist/contracts/functions.js +160 -4
- package/dist/contracts/git.d.ts +27 -33
- package/dist/contracts/git.js +10 -11
- package/dist/contracts/grants.d.ts +2 -2
- package/dist/contracts/ids.js +2 -2
- package/dist/contracts/internal.d.ts +5 -16
- package/dist/contracts/internal.js +2 -12
- package/dist/contracts/mcp.d.ts +11 -0
- package/dist/contracts/mcp.js +5 -0
- package/dist/contracts/me.js +1 -1
- package/dist/contracts/operations.d.ts +4 -4
- package/dist/contracts/operations.js +2 -2
- package/dist/contracts/pages.d.ts +6 -6
- package/dist/contracts/plan-policy.d.ts +1 -1
- package/dist/contracts/plan-policy.js +1 -1
- package/dist/contracts/platform.d.ts +4 -4
- package/dist/contracts/publish-archive.d.ts +170 -160
- package/dist/contracts/publish-archive.js +8 -1
- package/dist/contracts/push-new.d.ts +4 -4
- package/dist/contracts/quotas.js +2 -2
- package/dist/contracts/repository-connections.d.ts +43 -30
- package/dist/contracts/repository-connections.js +11 -3
- package/dist/contracts/resources.d.ts +8 -8
- package/dist/contracts/resources.js +6 -6
- package/dist/contracts/runtime-api.d.ts +103 -56
- package/dist/contracts/runtime-api.js +67 -26
- package/dist/contracts/runtime-app.d.ts +2 -2
- package/dist/contracts/runtime-db.d.ts +6 -6
- package/dist/contracts/runtime-db.js +2 -2
- package/dist/contracts/runtime-purge.d.ts +8 -0
- package/dist/contracts/runtime-purge.js +7 -0
- package/dist/contracts/runtime-storage.d.ts +3 -2
- package/dist/contracts/runtime-storage.js +2 -1
- package/dist/contracts/sf-config-v1.d.ts +48 -10
- package/dist/contracts/space-config.d.ts +60 -3
- package/dist/contracts/space-config.js +213 -18
- package/dist/contracts/spaces.d.ts +55 -74
- package/dist/contracts/spaces.js +11 -14
- package/dist/contracts/superadmin-spaces.d.ts +9 -9
- package/dist/contracts/superadmin-teams.d.ts +2 -2
- package/dist/contracts/superadmin-tenants.d.ts +0 -6
- package/dist/contracts/superadmin-tenants.js +1 -7
- package/dist/contracts/superadmin.d.ts +135 -22
- package/dist/contracts/superadmin.js +43 -12
- package/dist/contracts/tags.d.ts +21 -21
- package/dist/contracts/tags.js +3 -3
- package/dist/contracts/teams.d.ts +14 -17
- package/dist/contracts/teams.js +6 -6
- package/dist/contracts/transfers.js +2 -2
- package/dist/contracts/variables.d.ts +4 -4
- package/dist/contracts/variables.js +3 -3
- package/dist/contracts/webhooks.d.ts +4 -4
- package/dist/contracts/zero.d.ts +15 -17
- package/dist/contracts/zero.js +12 -12
- package/dist/docs/agent-prose.d.ts +1 -1
- package/dist/docs/agent-prose.js +11 -14
- package/dist/docs/agent-setup.js +5 -2
- package/dist/docs/catalog.d.ts +7 -7
- package/dist/docs/catalog.js +7 -7
- package/dist/docs/error-docs.js +145 -133
- package/dist/docs/skills.d.ts +12 -12
- package/dist/docs/skills.js +4 -4
- package/dist/test-helpers/fetch-stub.js +1 -0
- package/dist/utils/build-settings.d.ts +5 -1
- package/dist/utils/build-settings.js +82 -10
- package/dist/utils/canonical-json.js +1 -0
- package/dist/utils/concurrency.js +1 -0
- package/dist/utils/credential-policy.js +4 -3
- package/dist/utils/dns-instructions.js +9 -9
- package/dist/utils/error-code.js +1 -0
- package/dist/utils/grant-decision.fixtures.json +2 -2
- package/dist/utils/grants.js +3 -1
- package/dist/utils/local-space-state.d.ts +8 -11
- package/dist/utils/local-space-state.js +13 -24
- package/dist/utils/one-shot-replay.d.ts +4 -1
- package/dist/utils/page-colors.d.ts +14 -12
- package/dist/utils/page-colors.js +15 -13
- package/dist/utils/page-fonts.d.ts +1 -1
- package/dist/utils/page-fonts.js +11 -18
- package/dist/utils/pages.d.ts +20 -1
- package/dist/utils/pages.js +22 -9
- package/dist/utils/publish-policy.d.ts +7 -0
- package/dist/utils/publish-policy.fixtures.json +11 -5
- package/dist/utils/publish-policy.js +9 -1
- package/dist/utils/query-keys.d.ts +4 -4
- package/dist/utils/query-keys.js +2 -2
- package/dist/utils/runtime-upload.d.ts +5 -0
- package/dist/utils/runtime-upload.js +7 -0
- package/dist/utils/secure-local-file.js +5 -16
- package/dist/utils/space-config.d.ts +1 -1
- package/dist/utils/space-config.js +3 -0
- package/dist/utils/static-runtime-policy.d.ts +9 -3
- package/dist/utils/static-runtime-policy.fixtures.json +38 -41
- package/dist/utils/static-runtime-policy.js +22 -56
- package/dist/utils/upload-session.d.ts +4 -1
- package/dist/utils/upload-session.js +33 -5
- package/dist/utils/version-path.js +1 -1
- package/dist/vocabulary.d.ts +8 -8
- package/dist/vocabulary.js +31 -20
- package/package.json +2 -17
|
@@ -91,14 +91,14 @@ export declare const domainVerificationSchema: z.ZodObject<{
|
|
|
91
91
|
code: z.ZodString;
|
|
92
92
|
severity: z.ZodEnum<{
|
|
93
93
|
info: "info";
|
|
94
|
-
warning: "warning";
|
|
95
94
|
error: "error";
|
|
95
|
+
warning: "warning";
|
|
96
96
|
}>;
|
|
97
97
|
message: z.ZodString;
|
|
98
98
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
99
99
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
100
100
|
registrar: "registrar";
|
|
101
|
-
|
|
101
|
+
infra: "infra";
|
|
102
102
|
dns: "dns";
|
|
103
103
|
runtime: "runtime";
|
|
104
104
|
}>>>;
|
|
@@ -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
|
-
warning: "warning";
|
|
116
115
|
error: "error";
|
|
116
|
+
warning: "warning";
|
|
117
117
|
}>;
|
|
118
118
|
painLevel: z.ZodEnum<{
|
|
119
119
|
info: "info";
|
|
@@ -225,6 +225,7 @@ export declare const domainRedirectTargetSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
225
225
|
path: z.ZodOptional<z.ZodString>;
|
|
226
226
|
}, z.core.$strip>]>;
|
|
227
227
|
export declare const domainRedirectStatusSchema: z.ZodUnion<readonly [z.ZodLiteral<301>, z.ZodLiteral<302>, z.ZodLiteral<307>, z.ZodLiteral<308>]>;
|
|
228
|
+
export type DomainRedirectStatus = z.infer<typeof domainRedirectStatusSchema>;
|
|
228
229
|
export declare const domainRedirectSchema: z.ZodObject<{
|
|
229
230
|
to: z.ZodUnion<readonly [z.ZodObject<{
|
|
230
231
|
url: z.ZodString;
|
|
@@ -356,14 +357,14 @@ export declare const DomainSchema: z.ZodObject<{
|
|
|
356
357
|
code: z.ZodString;
|
|
357
358
|
severity: z.ZodEnum<{
|
|
358
359
|
info: "info";
|
|
359
|
-
warning: "warning";
|
|
360
360
|
error: "error";
|
|
361
|
+
warning: "warning";
|
|
361
362
|
}>;
|
|
362
363
|
message: z.ZodString;
|
|
363
364
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
364
365
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
365
366
|
registrar: "registrar";
|
|
366
|
-
|
|
367
|
+
infra: "infra";
|
|
367
368
|
dns: "dns";
|
|
368
369
|
runtime: "runtime";
|
|
369
370
|
}>>>;
|
|
@@ -377,8 +378,8 @@ export declare const DomainSchema: z.ZodObject<{
|
|
|
377
378
|
code: z.ZodString;
|
|
378
379
|
severity: z.ZodEnum<{
|
|
379
380
|
info: "info";
|
|
380
|
-
warning: "warning";
|
|
381
381
|
error: "error";
|
|
382
|
+
warning: "warning";
|
|
382
383
|
}>;
|
|
383
384
|
painLevel: z.ZodEnum<{
|
|
384
385
|
info: "info";
|
|
@@ -614,14 +615,14 @@ export declare const domainListResponseSchema: z.ZodObject<{
|
|
|
614
615
|
code: z.ZodString;
|
|
615
616
|
severity: z.ZodEnum<{
|
|
616
617
|
info: "info";
|
|
617
|
-
warning: "warning";
|
|
618
618
|
error: "error";
|
|
619
|
+
warning: "warning";
|
|
619
620
|
}>;
|
|
620
621
|
message: z.ZodString;
|
|
621
622
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
622
623
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
623
624
|
registrar: "registrar";
|
|
624
|
-
|
|
625
|
+
infra: "infra";
|
|
625
626
|
dns: "dns";
|
|
626
627
|
runtime: "runtime";
|
|
627
628
|
}>>>;
|
|
@@ -635,8 +636,8 @@ export declare const domainListResponseSchema: z.ZodObject<{
|
|
|
635
636
|
code: z.ZodString;
|
|
636
637
|
severity: z.ZodEnum<{
|
|
637
638
|
info: "info";
|
|
638
|
-
warning: "warning";
|
|
639
639
|
error: "error";
|
|
640
|
+
warning: "warning";
|
|
640
641
|
}>;
|
|
641
642
|
painLevel: z.ZodEnum<{
|
|
642
643
|
info: "info";
|
|
@@ -869,14 +870,14 @@ export declare const spaceCustomDomainSchema: z.ZodObject<{
|
|
|
869
870
|
code: z.ZodString;
|
|
870
871
|
severity: z.ZodEnum<{
|
|
871
872
|
info: "info";
|
|
872
|
-
warning: "warning";
|
|
873
873
|
error: "error";
|
|
874
|
+
warning: "warning";
|
|
874
875
|
}>;
|
|
875
876
|
message: z.ZodString;
|
|
876
877
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
877
878
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
878
879
|
registrar: "registrar";
|
|
879
|
-
|
|
880
|
+
infra: "infra";
|
|
880
881
|
dns: "dns";
|
|
881
882
|
runtime: "runtime";
|
|
882
883
|
}>>>;
|
|
@@ -890,8 +891,8 @@ export declare const spaceCustomDomainSchema: z.ZodObject<{
|
|
|
890
891
|
code: z.ZodString;
|
|
891
892
|
severity: z.ZodEnum<{
|
|
892
893
|
info: "info";
|
|
893
|
-
warning: "warning";
|
|
894
894
|
error: "error";
|
|
895
|
+
warning: "warning";
|
|
895
896
|
}>;
|
|
896
897
|
painLevel: z.ZodEnum<{
|
|
897
898
|
info: "info";
|
|
@@ -1038,14 +1039,14 @@ export declare const spaceManagedDomainSchema: z.ZodObject<{
|
|
|
1038
1039
|
code: z.ZodString;
|
|
1039
1040
|
severity: z.ZodEnum<{
|
|
1040
1041
|
info: "info";
|
|
1041
|
-
warning: "warning";
|
|
1042
1042
|
error: "error";
|
|
1043
|
+
warning: "warning";
|
|
1043
1044
|
}>;
|
|
1044
1045
|
message: z.ZodString;
|
|
1045
1046
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1046
1047
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1047
1048
|
registrar: "registrar";
|
|
1048
|
-
|
|
1049
|
+
infra: "infra";
|
|
1049
1050
|
dns: "dns";
|
|
1050
1051
|
runtime: "runtime";
|
|
1051
1052
|
}>>>;
|
|
@@ -1093,14 +1094,14 @@ export declare const spaceDomainSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1093
1094
|
code: z.ZodString;
|
|
1094
1095
|
severity: z.ZodEnum<{
|
|
1095
1096
|
info: "info";
|
|
1096
|
-
warning: "warning";
|
|
1097
1097
|
error: "error";
|
|
1098
|
+
warning: "warning";
|
|
1098
1099
|
}>;
|
|
1099
1100
|
message: z.ZodString;
|
|
1100
1101
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1101
1102
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1102
1103
|
registrar: "registrar";
|
|
1103
|
-
|
|
1104
|
+
infra: "infra";
|
|
1104
1105
|
dns: "dns";
|
|
1105
1106
|
runtime: "runtime";
|
|
1106
1107
|
}>>>;
|
|
@@ -1233,14 +1234,14 @@ export declare const spaceDomainSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1233
1234
|
code: z.ZodString;
|
|
1234
1235
|
severity: z.ZodEnum<{
|
|
1235
1236
|
info: "info";
|
|
1236
|
-
warning: "warning";
|
|
1237
1237
|
error: "error";
|
|
1238
|
+
warning: "warning";
|
|
1238
1239
|
}>;
|
|
1239
1240
|
message: z.ZodString;
|
|
1240
1241
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1241
1242
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1242
1243
|
registrar: "registrar";
|
|
1243
|
-
|
|
1244
|
+
infra: "infra";
|
|
1244
1245
|
dns: "dns";
|
|
1245
1246
|
runtime: "runtime";
|
|
1246
1247
|
}>>>;
|
|
@@ -1254,8 +1255,8 @@ export declare const spaceDomainSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1254
1255
|
code: z.ZodString;
|
|
1255
1256
|
severity: z.ZodEnum<{
|
|
1256
1257
|
info: "info";
|
|
1257
|
-
warning: "warning";
|
|
1258
1258
|
error: "error";
|
|
1259
|
+
warning: "warning";
|
|
1259
1260
|
}>;
|
|
1260
1261
|
painLevel: z.ZodEnum<{
|
|
1261
1262
|
info: "info";
|
|
@@ -1404,14 +1405,14 @@ export declare const spaceDomainListResponseSchema: z.ZodObject<{
|
|
|
1404
1405
|
code: z.ZodString;
|
|
1405
1406
|
severity: z.ZodEnum<{
|
|
1406
1407
|
info: "info";
|
|
1407
|
-
warning: "warning";
|
|
1408
1408
|
error: "error";
|
|
1409
|
+
warning: "warning";
|
|
1409
1410
|
}>;
|
|
1410
1411
|
message: z.ZodString;
|
|
1411
1412
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1412
1413
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1413
1414
|
registrar: "registrar";
|
|
1414
|
-
|
|
1415
|
+
infra: "infra";
|
|
1415
1416
|
dns: "dns";
|
|
1416
1417
|
runtime: "runtime";
|
|
1417
1418
|
}>>>;
|
|
@@ -1544,14 +1545,14 @@ export declare const spaceDomainListResponseSchema: z.ZodObject<{
|
|
|
1544
1545
|
code: z.ZodString;
|
|
1545
1546
|
severity: z.ZodEnum<{
|
|
1546
1547
|
info: "info";
|
|
1547
|
-
warning: "warning";
|
|
1548
1548
|
error: "error";
|
|
1549
|
+
warning: "warning";
|
|
1549
1550
|
}>;
|
|
1550
1551
|
message: z.ZodString;
|
|
1551
1552
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1552
1553
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1553
1554
|
registrar: "registrar";
|
|
1554
|
-
|
|
1555
|
+
infra: "infra";
|
|
1555
1556
|
dns: "dns";
|
|
1556
1557
|
runtime: "runtime";
|
|
1557
1558
|
}>>>;
|
|
@@ -1565,8 +1566,8 @@ export declare const spaceDomainListResponseSchema: z.ZodObject<{
|
|
|
1565
1566
|
code: z.ZodString;
|
|
1566
1567
|
severity: z.ZodEnum<{
|
|
1567
1568
|
info: "info";
|
|
1568
|
-
warning: "warning";
|
|
1569
1569
|
error: "error";
|
|
1570
|
+
warning: "warning";
|
|
1570
1571
|
}>;
|
|
1571
1572
|
painLevel: z.ZodEnum<{
|
|
1572
1573
|
info: "info";
|
|
@@ -1718,14 +1719,14 @@ export declare const teamManagedDomainSchema: z.ZodObject<{
|
|
|
1718
1719
|
code: z.ZodString;
|
|
1719
1720
|
severity: z.ZodEnum<{
|
|
1720
1721
|
info: "info";
|
|
1721
|
-
warning: "warning";
|
|
1722
1722
|
error: "error";
|
|
1723
|
+
warning: "warning";
|
|
1723
1724
|
}>;
|
|
1724
1725
|
message: z.ZodString;
|
|
1725
1726
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1726
1727
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1727
1728
|
registrar: "registrar";
|
|
1728
|
-
|
|
1729
|
+
infra: "infra";
|
|
1729
1730
|
dns: "dns";
|
|
1730
1731
|
runtime: "runtime";
|
|
1731
1732
|
}>>>;
|
|
@@ -1778,14 +1779,14 @@ export declare const teamManagedDomainListResponseSchema: z.ZodObject<{
|
|
|
1778
1779
|
code: z.ZodString;
|
|
1779
1780
|
severity: z.ZodEnum<{
|
|
1780
1781
|
info: "info";
|
|
1781
|
-
warning: "warning";
|
|
1782
1782
|
error: "error";
|
|
1783
|
+
warning: "warning";
|
|
1783
1784
|
}>;
|
|
1784
1785
|
message: z.ZodString;
|
|
1785
1786
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1786
1787
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1787
1788
|
registrar: "registrar";
|
|
1788
|
-
|
|
1789
|
+
infra: "infra";
|
|
1789
1790
|
dns: "dns";
|
|
1790
1791
|
runtime: "runtime";
|
|
1791
1792
|
}>>>;
|
|
@@ -1806,6 +1807,16 @@ export declare const teamManagedDomainListResponseSchema: z.ZodObject<{
|
|
|
1806
1807
|
hasMore: z.ZodBoolean;
|
|
1807
1808
|
}, z.core.$strip>;
|
|
1808
1809
|
}, z.core.$strip>;
|
|
1810
|
+
export declare const domainPreflightQuerySchema: z.ZodObject<{
|
|
1811
|
+
name: z.ZodString;
|
|
1812
|
+
}, z.core.$strip>;
|
|
1813
|
+
export declare const domainPreflightSchema: z.ZodObject<{
|
|
1814
|
+
name: z.ZodString;
|
|
1815
|
+
unicodeName: z.ZodOptional<z.ZodString>;
|
|
1816
|
+
canHost: z.ZodNullable<z.ZodBoolean>;
|
|
1817
|
+
providerMessage: z.ZodNullable<z.ZodString>;
|
|
1818
|
+
}, z.core.$strip>;
|
|
1819
|
+
export type DomainPreflight = z.infer<typeof domainPreflightSchema>;
|
|
1809
1820
|
export declare const domainCreateRequestSchema: z.ZodObject<{
|
|
1810
1821
|
name: z.ZodString;
|
|
1811
1822
|
teamId: z.ZodOptional<z.ZodString>;
|
|
@@ -1899,14 +1910,14 @@ export declare const domainRegistrationActionResponseSchema: z.ZodObject<{
|
|
|
1899
1910
|
code: z.ZodString;
|
|
1900
1911
|
severity: z.ZodEnum<{
|
|
1901
1912
|
info: "info";
|
|
1902
|
-
warning: "warning";
|
|
1903
1913
|
error: "error";
|
|
1914
|
+
warning: "warning";
|
|
1904
1915
|
}>;
|
|
1905
1916
|
message: z.ZodString;
|
|
1906
1917
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1907
1918
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1908
1919
|
registrar: "registrar";
|
|
1909
|
-
|
|
1920
|
+
infra: "infra";
|
|
1910
1921
|
dns: "dns";
|
|
1911
1922
|
runtime: "runtime";
|
|
1912
1923
|
}>>>;
|
|
@@ -1942,14 +1953,14 @@ export declare const domainNameserverResponseSchema: z.ZodObject<{
|
|
|
1942
1953
|
code: z.ZodString;
|
|
1943
1954
|
severity: z.ZodEnum<{
|
|
1944
1955
|
info: "info";
|
|
1945
|
-
warning: "warning";
|
|
1946
1956
|
error: "error";
|
|
1957
|
+
warning: "warning";
|
|
1947
1958
|
}>;
|
|
1948
1959
|
message: z.ZodString;
|
|
1949
1960
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1950
1961
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1951
1962
|
registrar: "registrar";
|
|
1952
|
-
|
|
1963
|
+
infra: "infra";
|
|
1953
1964
|
dns: "dns";
|
|
1954
1965
|
runtime: "runtime";
|
|
1955
1966
|
}>>>;
|
|
@@ -2091,14 +2102,14 @@ export declare const domainDnsModeResponseSchema: z.ZodObject<{
|
|
|
2091
2102
|
code: z.ZodString;
|
|
2092
2103
|
severity: z.ZodEnum<{
|
|
2093
2104
|
info: "info";
|
|
2094
|
-
warning: "warning";
|
|
2095
2105
|
error: "error";
|
|
2106
|
+
warning: "warning";
|
|
2096
2107
|
}>;
|
|
2097
2108
|
message: z.ZodString;
|
|
2098
2109
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2099
2110
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2100
2111
|
registrar: "registrar";
|
|
2101
|
-
|
|
2112
|
+
infra: "infra";
|
|
2102
2113
|
dns: "dns";
|
|
2103
2114
|
runtime: "runtime";
|
|
2104
2115
|
}>>>;
|
|
@@ -2112,8 +2123,8 @@ export declare const domainDnsModeResponseSchema: z.ZodObject<{
|
|
|
2112
2123
|
code: z.ZodString;
|
|
2113
2124
|
severity: z.ZodEnum<{
|
|
2114
2125
|
info: "info";
|
|
2115
|
-
warning: "warning";
|
|
2116
2126
|
error: "error";
|
|
2127
|
+
warning: "warning";
|
|
2117
2128
|
}>;
|
|
2118
2129
|
painLevel: z.ZodEnum<{
|
|
2119
2130
|
info: "info";
|
|
@@ -2224,14 +2235,14 @@ export declare const domainDnsModeResponseSchema: z.ZodObject<{
|
|
|
2224
2235
|
code: z.ZodString;
|
|
2225
2236
|
severity: z.ZodEnum<{
|
|
2226
2237
|
info: "info";
|
|
2227
|
-
warning: "warning";
|
|
2228
2238
|
error: "error";
|
|
2239
|
+
warning: "warning";
|
|
2229
2240
|
}>;
|
|
2230
2241
|
message: z.ZodString;
|
|
2231
2242
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2232
2243
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2233
2244
|
registrar: "registrar";
|
|
2234
|
-
|
|
2245
|
+
infra: "infra";
|
|
2235
2246
|
dns: "dns";
|
|
2236
2247
|
runtime: "runtime";
|
|
2237
2248
|
}>>>;
|
|
@@ -2292,14 +2303,14 @@ export declare const domainDnsModeResponseSchema: z.ZodObject<{
|
|
|
2292
2303
|
code: z.ZodString;
|
|
2293
2304
|
severity: z.ZodEnum<{
|
|
2294
2305
|
info: "info";
|
|
2295
|
-
warning: "warning";
|
|
2296
2306
|
error: "error";
|
|
2307
|
+
warning: "warning";
|
|
2297
2308
|
}>;
|
|
2298
2309
|
message: z.ZodString;
|
|
2299
2310
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2300
2311
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2301
2312
|
registrar: "registrar";
|
|
2302
|
-
|
|
2313
|
+
infra: "infra";
|
|
2303
2314
|
dns: "dns";
|
|
2304
2315
|
runtime: "runtime";
|
|
2305
2316
|
}>>>;
|
|
@@ -2791,14 +2802,14 @@ export declare const domainDnsCapabilitiesSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2791
2802
|
code: z.ZodString;
|
|
2792
2803
|
severity: z.ZodEnum<{
|
|
2793
2804
|
info: "info";
|
|
2794
|
-
warning: "warning";
|
|
2795
2805
|
error: "error";
|
|
2806
|
+
warning: "warning";
|
|
2796
2807
|
}>;
|
|
2797
2808
|
message: z.ZodString;
|
|
2798
2809
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2799
2810
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2800
2811
|
registrar: "registrar";
|
|
2801
|
-
|
|
2812
|
+
infra: "infra";
|
|
2802
2813
|
dns: "dns";
|
|
2803
2814
|
runtime: "runtime";
|
|
2804
2815
|
}>>>;
|
|
@@ -2940,10 +2951,10 @@ export declare const domainDnsCapabilitiesSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2940
2951
|
};
|
|
2941
2952
|
diagnostics: {
|
|
2942
2953
|
code: string;
|
|
2943
|
-
severity: "info" | "
|
|
2954
|
+
severity: "info" | "error" | "warning";
|
|
2944
2955
|
message: string;
|
|
2945
2956
|
path?: string | null | undefined;
|
|
2946
|
-
provider?: "registrar" | "
|
|
2957
|
+
provider?: "registrar" | "infra" | "dns" | "runtime" | null | undefined;
|
|
2947
2958
|
details?: Record<string, unknown> | null | undefined;
|
|
2948
2959
|
fix?: string | null | undefined;
|
|
2949
2960
|
retryable?: boolean | null | undefined;
|
|
@@ -3081,10 +3092,10 @@ export declare const domainDnsCapabilitiesSchema: z.ZodPipe<z.ZodObject<{
|
|
|
3081
3092
|
};
|
|
3082
3093
|
diagnostics: {
|
|
3083
3094
|
code: string;
|
|
3084
|
-
severity: "info" | "
|
|
3095
|
+
severity: "info" | "error" | "warning";
|
|
3085
3096
|
message: string;
|
|
3086
3097
|
path?: string | null | undefined;
|
|
3087
|
-
provider?: "registrar" | "
|
|
3098
|
+
provider?: "registrar" | "infra" | "dns" | "runtime" | null | undefined;
|
|
3088
3099
|
details?: Record<string, unknown> | null | undefined;
|
|
3089
3100
|
fix?: string | null | undefined;
|
|
3090
3101
|
retryable?: boolean | null | undefined;
|
|
@@ -3347,14 +3358,14 @@ export declare const domainProviderSnapshotRefreshResponseSchema: z.ZodObject<{
|
|
|
3347
3358
|
code: z.ZodString;
|
|
3348
3359
|
severity: z.ZodEnum<{
|
|
3349
3360
|
info: "info";
|
|
3350
|
-
warning: "warning";
|
|
3351
3361
|
error: "error";
|
|
3362
|
+
warning: "warning";
|
|
3352
3363
|
}>;
|
|
3353
3364
|
message: z.ZodString;
|
|
3354
3365
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3355
3366
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
3356
3367
|
registrar: "registrar";
|
|
3357
|
-
|
|
3368
|
+
infra: "infra";
|
|
3358
3369
|
dns: "dns";
|
|
3359
3370
|
runtime: "runtime";
|
|
3360
3371
|
}>>>;
|
|
@@ -3419,14 +3430,14 @@ export declare const domainDnsOperationSchema: z.ZodObject<{
|
|
|
3419
3430
|
code: z.ZodString;
|
|
3420
3431
|
severity: z.ZodEnum<{
|
|
3421
3432
|
info: "info";
|
|
3422
|
-
warning: "warning";
|
|
3423
3433
|
error: "error";
|
|
3434
|
+
warning: "warning";
|
|
3424
3435
|
}>;
|
|
3425
3436
|
message: z.ZodString;
|
|
3426
3437
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3427
3438
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
3428
3439
|
registrar: "registrar";
|
|
3429
|
-
|
|
3440
|
+
infra: "infra";
|
|
3430
3441
|
dns: "dns";
|
|
3431
3442
|
runtime: "runtime";
|
|
3432
3443
|
}>>>;
|
|
@@ -3473,8 +3484,8 @@ export declare const domainDnsOperationSchema: z.ZodObject<{
|
|
|
3473
3484
|
code: z.ZodString;
|
|
3474
3485
|
severity: z.ZodEnum<{
|
|
3475
3486
|
info: "info";
|
|
3476
|
-
warning: "warning";
|
|
3477
3487
|
error: "error";
|
|
3488
|
+
warning: "warning";
|
|
3478
3489
|
}>;
|
|
3479
3490
|
painLevel: z.ZodEnum<{
|
|
3480
3491
|
info: "info";
|
|
@@ -3620,14 +3631,14 @@ export declare const domainDnsOperationListResponseSchema: z.ZodObject<{
|
|
|
3620
3631
|
code: z.ZodString;
|
|
3621
3632
|
severity: z.ZodEnum<{
|
|
3622
3633
|
info: "info";
|
|
3623
|
-
warning: "warning";
|
|
3624
3634
|
error: "error";
|
|
3635
|
+
warning: "warning";
|
|
3625
3636
|
}>;
|
|
3626
3637
|
message: z.ZodString;
|
|
3627
3638
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3628
3639
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
3629
3640
|
registrar: "registrar";
|
|
3630
|
-
|
|
3641
|
+
infra: "infra";
|
|
3631
3642
|
dns: "dns";
|
|
3632
3643
|
runtime: "runtime";
|
|
3633
3644
|
}>>>;
|
|
@@ -3674,8 +3685,8 @@ export declare const domainDnsOperationListResponseSchema: z.ZodObject<{
|
|
|
3674
3685
|
code: z.ZodString;
|
|
3675
3686
|
severity: z.ZodEnum<{
|
|
3676
3687
|
info: "info";
|
|
3677
|
-
warning: "warning";
|
|
3678
3688
|
error: "error";
|
|
3689
|
+
warning: "warning";
|
|
3679
3690
|
}>;
|
|
3680
3691
|
painLevel: z.ZodEnum<{
|
|
3681
3692
|
info: "info";
|
|
@@ -4153,14 +4164,14 @@ export declare const domainActionMutationResponseSchema: z.ZodObject<{
|
|
|
4153
4164
|
code: z.ZodString;
|
|
4154
4165
|
severity: z.ZodEnum<{
|
|
4155
4166
|
info: "info";
|
|
4156
|
-
warning: "warning";
|
|
4157
4167
|
error: "error";
|
|
4168
|
+
warning: "warning";
|
|
4158
4169
|
}>;
|
|
4159
4170
|
message: z.ZodString;
|
|
4160
4171
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4161
4172
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
4162
4173
|
registrar: "registrar";
|
|
4163
|
-
|
|
4174
|
+
infra: "infra";
|
|
4164
4175
|
dns: "dns";
|
|
4165
4176
|
runtime: "runtime";
|
|
4166
4177
|
}>>>;
|
|
@@ -4483,14 +4494,14 @@ export declare const domainDnsRecordListResponseSchema: z.ZodObject<{
|
|
|
4483
4494
|
code: z.ZodString;
|
|
4484
4495
|
severity: z.ZodEnum<{
|
|
4485
4496
|
info: "info";
|
|
4486
|
-
warning: "warning";
|
|
4487
4497
|
error: "error";
|
|
4498
|
+
warning: "warning";
|
|
4488
4499
|
}>;
|
|
4489
4500
|
message: z.ZodString;
|
|
4490
4501
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4491
4502
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
4492
4503
|
registrar: "registrar";
|
|
4493
|
-
|
|
4504
|
+
infra: "infra";
|
|
4494
4505
|
dns: "dns";
|
|
4495
4506
|
runtime: "runtime";
|
|
4496
4507
|
}>>>;
|
|
@@ -4632,10 +4643,10 @@ export declare const domainDnsRecordListResponseSchema: z.ZodObject<{
|
|
|
4632
4643
|
};
|
|
4633
4644
|
diagnostics: {
|
|
4634
4645
|
code: string;
|
|
4635
|
-
severity: "info" | "
|
|
4646
|
+
severity: "info" | "error" | "warning";
|
|
4636
4647
|
message: string;
|
|
4637
4648
|
path?: string | null | undefined;
|
|
4638
|
-
provider?: "registrar" | "
|
|
4649
|
+
provider?: "registrar" | "infra" | "dns" | "runtime" | null | undefined;
|
|
4639
4650
|
details?: Record<string, unknown> | null | undefined;
|
|
4640
4651
|
fix?: string | null | undefined;
|
|
4641
4652
|
retryable?: boolean | null | undefined;
|
|
@@ -4773,10 +4784,10 @@ export declare const domainDnsRecordListResponseSchema: z.ZodObject<{
|
|
|
4773
4784
|
};
|
|
4774
4785
|
diagnostics: {
|
|
4775
4786
|
code: string;
|
|
4776
|
-
severity: "info" | "
|
|
4787
|
+
severity: "info" | "error" | "warning";
|
|
4777
4788
|
message: string;
|
|
4778
4789
|
path?: string | null | undefined;
|
|
4779
|
-
provider?: "registrar" | "
|
|
4790
|
+
provider?: "registrar" | "infra" | "dns" | "runtime" | null | undefined;
|
|
4780
4791
|
details?: Record<string, unknown> | null | undefined;
|
|
4781
4792
|
fix?: string | null | undefined;
|
|
4782
4793
|
retryable?: boolean | null | undefined;
|
|
@@ -4997,14 +5008,14 @@ export declare const domainDiagnosticsResponseSchema: z.ZodObject<{
|
|
|
4997
5008
|
code: z.ZodString;
|
|
4998
5009
|
severity: z.ZodEnum<{
|
|
4999
5010
|
info: "info";
|
|
5000
|
-
warning: "warning";
|
|
5001
5011
|
error: "error";
|
|
5012
|
+
warning: "warning";
|
|
5002
5013
|
}>;
|
|
5003
5014
|
message: z.ZodString;
|
|
5004
5015
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5005
5016
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
5006
5017
|
registrar: "registrar";
|
|
5007
|
-
|
|
5018
|
+
infra: "infra";
|
|
5008
5019
|
dns: "dns";
|
|
5009
5020
|
runtime: "runtime";
|
|
5010
5021
|
}>>>;
|
|
@@ -2,7 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
import { AnyObjectSchema, baseDiagnosticSchema, CursorPaginationSchema, cursorListQuerySchema, DnsInstructionSchema, mutationEnvelope, requiredActionsSchema, } from "./common.js";
|
|
3
3
|
import { PrincipalRefSchema } from "./resources.js";
|
|
4
4
|
// ---------------------------------------------------------------------------
|
|
5
|
-
// Domain resource (
|
|
5
|
+
// Domain resource (the platform spec). A canonical name
|
|
6
6
|
// owned by a tenant-local principal, plus its registrar/DNS facets and THE
|
|
7
7
|
// serving pointer/whole-host redirect intent.
|
|
8
8
|
// ---------------------------------------------------------------------------
|
|
@@ -52,7 +52,7 @@ export const domainDnsFacetSchema = z.object({
|
|
|
52
52
|
assignedNameservers: z
|
|
53
53
|
.array(z.string())
|
|
54
54
|
.optional()
|
|
55
|
-
.describe(
|
|
55
|
+
.describe("Managed-zone delegation set the registrar should point at (mode `stattic`)."),
|
|
56
56
|
observedNameservers: z
|
|
57
57
|
.array(z.string())
|
|
58
58
|
.optional()
|
|
@@ -270,6 +270,33 @@ export const teamManagedDomainListResponseSchema = z.object({
|
|
|
270
270
|
data: z.array(teamManagedDomainSchema),
|
|
271
271
|
pagination: CursorPaginationSchema,
|
|
272
272
|
});
|
|
273
|
+
// Pre-add advisory check. `canHost` mirrors the hosting provider's
|
|
274
|
+
// hostability verdict: `false` often means the domain is blocklisted or
|
|
275
|
+
// already attached to other provider infrastructure (which a later TXT
|
|
276
|
+
// ownership proof can still claim), so clients warn — they never hard-block.
|
|
277
|
+
export const domainPreflightQuerySchema = z.object({
|
|
278
|
+
name: z
|
|
279
|
+
.string()
|
|
280
|
+
.trim()
|
|
281
|
+
.min(1)
|
|
282
|
+
.max(253)
|
|
283
|
+
.describe("Apex or concrete hostname to preflight; canonicalized server-side."),
|
|
284
|
+
});
|
|
285
|
+
export const domainPreflightSchema = z.object({
|
|
286
|
+
name: z.string().describe("Canonical lowercase ASCII form of the requested hostname."),
|
|
287
|
+
unicodeName: z
|
|
288
|
+
.string()
|
|
289
|
+
.optional()
|
|
290
|
+
.describe("Read-only U-label form, present only when it differs from `name`."),
|
|
291
|
+
canHost: z
|
|
292
|
+
.boolean()
|
|
293
|
+
.nullable()
|
|
294
|
+
.describe("Provider hostability verdict. `null` when the provider check was unavailable; treat as unknown, not as failure."),
|
|
295
|
+
providerMessage: z
|
|
296
|
+
.string()
|
|
297
|
+
.nullable()
|
|
298
|
+
.describe("Provider-reported reason when the verdict is negative."),
|
|
299
|
+
});
|
|
273
300
|
export const domainCreateRequestSchema = z.object({
|
|
274
301
|
name: z
|
|
275
302
|
.string()
|
|
@@ -111,14 +111,15 @@ export declare const buildStatus: z.ZodEnum<{
|
|
|
111
111
|
succeeded: "succeeded";
|
|
112
112
|
skipped: "skipped";
|
|
113
113
|
}>;
|
|
114
|
+
export type BuildStatus = z.infer<typeof buildStatus>;
|
|
114
115
|
export declare const diagnosticSeverity: z.ZodEnum<{
|
|
115
116
|
info: "info";
|
|
116
|
-
warning: "warning";
|
|
117
117
|
error: "error";
|
|
118
|
+
warning: "warning";
|
|
118
119
|
}>;
|
|
119
120
|
export declare const diagnosticProvider: z.ZodEnum<{
|
|
120
121
|
registrar: "registrar";
|
|
121
|
-
|
|
122
|
+
infra: "infra";
|
|
122
123
|
dns: "dns";
|
|
123
124
|
runtime: "runtime";
|
|
124
125
|
}>;
|