@spacefast/common 0.0.13 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agents/client-registry.d.ts +22 -0
- package/dist/agents/client-registry.js +41 -0
- package/dist/agents/connect-targets.d.ts +51 -6
- package/dist/agents/connect-targets.js +93 -28
- package/dist/brand.d.ts +0 -11
- package/dist/brand.js +0 -20
- package/dist/config/domains.d.ts +15 -6
- package/dist/config/domains.js +24 -10
- package/dist/config/postgres-budget.d.ts +3 -0
- package/dist/config/postgres-budget.js +6 -1
- package/dist/config/postgres-budget.json +2 -1
- package/dist/contracts/abuse.js +1 -1
- package/dist/contracts/access.d.ts +149 -44
- package/dist/contracts/access.js +94 -8
- package/dist/contracts/activity.js +5 -1
- package/dist/contracts/api-keys.js +9 -9
- package/dist/contracts/archives.js +11 -11
- package/dist/contracts/beta.js +1 -1
- package/dist/contracts/builds.js +14 -14
- package/dist/contracts/channels.js +2 -2
- package/dist/contracts/comments.d.ts +86 -15
- package/dist/contracts/comments.js +116 -20
- package/dist/contracts/common.d.ts +12 -12
- package/dist/contracts/common.js +33 -30
- package/dist/contracts/continuation.js +5 -5
- package/dist/contracts/data-source-routes.js +1 -1
- package/dist/contracts/device-auth.d.ts +6 -6
- package/dist/contracts/device-auth.js +12 -12
- package/dist/contracts/docs.d.ts +10 -10
- package/dist/contracts/domains.js +39 -33
- package/dist/contracts/enums.d.ts +2 -10
- package/dist/contracts/enums.js +0 -2
- package/dist/contracts/error-code-meta.d.ts +116 -47
- package/dist/contracts/error-code-meta.js +37 -16
- package/dist/contracts/error-codes.d.ts +7 -4
- package/dist/contracts/error-codes.js +46 -21
- package/dist/contracts/events.d.ts +10 -3
- package/dist/contracts/events.js +33 -5
- package/dist/contracts/execution.d.ts +26 -0
- package/dist/contracts/execution.js +21 -0
- package/dist/contracts/feature-lifecycle.d.ts +21 -24
- package/dist/contracts/feature-lifecycle.js +28 -26
- package/dist/contracts/features.js +4 -4
- package/dist/contracts/functions.d.ts +8 -140
- package/dist/contracts/functions.js +9 -19
- package/dist/contracts/git.d.ts +1 -1
- package/dist/contracts/grants.d.ts +96 -79
- package/dist/contracts/grants.js +130 -43
- package/dist/contracts/ids.d.ts +2 -2
- package/dist/contracts/ids.js +2 -4
- package/dist/contracts/internal.js +2 -2
- package/dist/contracts/mcp.d.ts +17 -556
- package/dist/contracts/mcp.js +9 -103
- package/dist/contracts/me.js +3 -4
- package/dist/contracts/notifications.d.ts +108 -0
- package/dist/contracts/notifications.js +54 -0
- package/dist/contracts/oauth-resources.d.ts +18 -1
- package/dist/contracts/oauth-resources.js +22 -2
- package/dist/contracts/operations.d.ts +2 -50
- package/dist/contracts/operations.js +0 -19
- package/dist/contracts/pages.d.ts +8 -4
- package/dist/contracts/pages.js +16 -3
- package/dist/contracts/platform.js +10 -8
- package/dist/contracts/problem-document.d.ts +14 -0
- package/dist/contracts/problem-document.js +35 -0
- package/dist/contracts/push-new.d.ts +21 -6
- package/dist/contracts/push-new.js +3 -7
- package/dist/contracts/resources.d.ts +8 -7
- package/dist/contracts/resources.js +9 -6
- package/dist/contracts/runtime-api.d.ts +162 -92
- package/dist/contracts/runtime-api.js +99 -27
- package/dist/contracts/runtime-app.d.ts +41 -11
- package/dist/contracts/runtime-app.js +22 -1
- package/dist/contracts/runtime-db.d.ts +424 -0
- package/dist/contracts/runtime-db.js +108 -0
- package/dist/contracts/runtime-storage.d.ts +120 -0
- package/dist/contracts/runtime-storage.js +40 -0
- package/dist/contracts/sf-config-v1.d.ts +49 -1
- package/dist/contracts/sf-config-v1.js +2 -2
- package/dist/contracts/sites.d.ts +1 -0
- package/dist/contracts/sites.js +20 -12
- package/dist/contracts/space-config.d.ts +62 -22
- package/dist/contracts/space-config.js +173 -47
- package/dist/contracts/spaces.d.ts +79 -45
- package/dist/contracts/spaces.js +66 -50
- package/dist/contracts/superadmin-spaces.d.ts +13 -2
- package/dist/contracts/superadmin-spaces.js +15 -0
- package/dist/contracts/superadmin-tenants.js +4 -4
- package/dist/contracts/superadmin.d.ts +4 -0
- package/dist/contracts/superadmin.js +14 -1
- package/dist/contracts/tags.d.ts +17 -17
- package/dist/contracts/tags.js +1 -1
- package/dist/contracts/teams.js +25 -16
- package/dist/contracts/theme-json.js +1 -1
- package/dist/contracts/transfers.js +4 -4
- package/dist/contracts/variables.js +3 -3
- package/dist/contracts/zero.d.ts +204 -338
- package/dist/contracts/zero.js +94 -98
- package/dist/dashboard-paths/index.d.ts +16 -1
- package/dist/dashboard-paths/index.js +18 -0
- package/dist/docs/agent-handoff-document.d.ts +2 -2
- package/dist/docs/agent-handoff-document.js +8 -7
- package/dist/docs/agent-prose.d.ts +22 -3
- package/dist/docs/agent-prose.js +221 -51
- package/dist/docs/agent-setup.d.ts +13 -10
- package/dist/docs/agent-setup.js +279 -53
- package/dist/docs/agent-solutions.d.ts +6 -6
- package/dist/docs/agent-solutions.js +23 -21
- package/dist/docs/catalog.d.ts +29 -74
- package/dist/docs/catalog.js +65 -92
- package/dist/docs/error-docs.js +293 -221
- package/dist/docs/skill-distribution.d.ts +2 -0
- package/dist/docs/skill-distribution.js +7 -4
- package/dist/docs/skills.d.ts +546 -0
- package/dist/docs/skills.js +340 -0
- package/dist/utils/browser-credential.d.ts +19 -0
- package/dist/utils/browser-credential.js +62 -0
- package/dist/utils/comment-avatars.d.ts +7 -0
- package/dist/utils/comment-avatars.js +42 -0
- package/dist/utils/content-type.d.ts +3 -3
- package/dist/utils/content-type.js +38 -61
- package/dist/utils/domain-diagnostics.d.ts +5 -5
- package/dist/utils/domain-diagnostics.js +21 -10
- package/dist/utils/local-space-state.d.ts +78 -4
- package/dist/utils/local-space-state.js +383 -82
- package/dist/utils/one-shot-replay.d.ts +14 -0
- package/dist/utils/one-shot-replay.js +21 -0
- package/dist/utils/page-preview.d.ts +7 -0
- package/dist/utils/page-preview.js +9 -0
- package/dist/utils/pages.d.ts +2 -11
- package/dist/utils/pages.js +58 -14
- package/dist/utils/publish-form-data.d.ts +22 -0
- package/dist/utils/publish-form-data.js +26 -0
- package/dist/utils/publish-policy.js +20 -4
- package/dist/utils/query-keys.d.ts +7 -4
- package/dist/utils/query-keys.js +13 -4
- package/dist/utils/runtime-paths.d.ts +3 -0
- package/dist/utils/runtime-paths.js +7 -0
- package/dist/utils/secure-local-file.d.ts +73 -0
- package/dist/utils/secure-local-file.js +1373 -0
- package/dist/utils/space-config.d.ts +13 -4
- package/dist/utils/space-config.js +123 -15
- package/dist/utils/storage-policy.d.ts +20 -0
- package/dist/utils/storage-policy.fixtures.json +174 -0
- package/dist/utils/storage-policy.js +193 -0
- package/dist/utils/upload-session.d.ts +12 -1
- package/dist/utils/upload-session.js +37 -2
- package/dist/utils/version-file-browser.d.ts +13 -0
- package/dist/utils/version-file-browser.js +59 -0
- package/package.json +19 -1
- package/dist/contracts/mounts.d.ts +0 -142
- package/dist/contracts/mounts.js +0 -56
- package/dist/utils/asset-fingerprint.d.ts +0 -64
- package/dist/utils/asset-fingerprint.js +0 -620
package/dist/contracts/tags.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ export declare const tagVersionStatusSchema: z.ZodEnum<{
|
|
|
8
8
|
abandoned: "abandoned";
|
|
9
9
|
}>;
|
|
10
10
|
export declare const tagEnvironmentSchema: z.ZodEnum<{
|
|
11
|
-
preview: "preview";
|
|
12
11
|
production: "production";
|
|
12
|
+
preview: "preview";
|
|
13
13
|
development: "development";
|
|
14
14
|
}>;
|
|
15
15
|
export declare const tagConsentCategorySchema: z.ZodEnum<{
|
|
@@ -460,8 +460,8 @@ export declare const tagReleaseSchema: z.ZodObject<{
|
|
|
460
460
|
id: z.ZodString;
|
|
461
461
|
tagSetId: z.ZodString;
|
|
462
462
|
environment: z.ZodEnum<{
|
|
463
|
-
preview: "preview";
|
|
464
463
|
production: "production";
|
|
464
|
+
preview: "preview";
|
|
465
465
|
development: "development";
|
|
466
466
|
}>;
|
|
467
467
|
versionId: z.ZodString;
|
|
@@ -476,8 +476,8 @@ export declare const tagReleaseListResponseSchema: z.ZodObject<{
|
|
|
476
476
|
id: z.ZodString;
|
|
477
477
|
tagSetId: z.ZodString;
|
|
478
478
|
environment: z.ZodEnum<{
|
|
479
|
-
preview: "preview";
|
|
480
479
|
production: "production";
|
|
480
|
+
preview: "preview";
|
|
481
481
|
development: "development";
|
|
482
482
|
}>;
|
|
483
483
|
versionId: z.ZodString;
|
|
@@ -493,8 +493,8 @@ export declare const tagReleaseResponseSchema: z.ZodObject<{
|
|
|
493
493
|
id: z.ZodString;
|
|
494
494
|
tagSetId: z.ZodString;
|
|
495
495
|
environment: z.ZodEnum<{
|
|
496
|
-
preview: "preview";
|
|
497
496
|
production: "production";
|
|
497
|
+
preview: "preview";
|
|
498
498
|
development: "development";
|
|
499
499
|
}>;
|
|
500
500
|
versionId: z.ZodString;
|
|
@@ -552,8 +552,8 @@ export declare const tagActivityEventSchema: z.ZodObject<{
|
|
|
552
552
|
type: z.ZodString;
|
|
553
553
|
versionId: z.ZodNullable<z.ZodString>;
|
|
554
554
|
environment: z.ZodNullable<z.ZodEnum<{
|
|
555
|
-
preview: "preview";
|
|
556
555
|
production: "production";
|
|
556
|
+
preview: "preview";
|
|
557
557
|
development: "development";
|
|
558
558
|
}>>;
|
|
559
559
|
message: z.ZodString;
|
|
@@ -566,8 +566,8 @@ export declare const tagActivityResponseSchema: z.ZodObject<{
|
|
|
566
566
|
type: z.ZodString;
|
|
567
567
|
versionId: z.ZodNullable<z.ZodString>;
|
|
568
568
|
environment: z.ZodNullable<z.ZodEnum<{
|
|
569
|
-
preview: "preview";
|
|
570
569
|
production: "production";
|
|
570
|
+
preview: "preview";
|
|
571
571
|
development: "development";
|
|
572
572
|
}>>;
|
|
573
573
|
message: z.ZodString;
|
|
@@ -579,8 +579,8 @@ export declare const tagEffectiveTagResponseSchema: z.ZodObject<{
|
|
|
579
579
|
data: z.ZodObject<{
|
|
580
580
|
tag: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
581
581
|
environment: z.ZodEnum<{
|
|
582
|
-
preview: "preview";
|
|
583
582
|
production: "production";
|
|
583
|
+
preview: "preview";
|
|
584
584
|
development: "development";
|
|
585
585
|
}>;
|
|
586
586
|
source: z.ZodEnum<{
|
|
@@ -602,8 +602,8 @@ export declare const tagApplySchema: z.ZodObject<{
|
|
|
602
602
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
603
603
|
submit: z.ZodDefault<z.ZodBoolean>;
|
|
604
604
|
releaseEnvironment: z.ZodOptional<z.ZodEnum<{
|
|
605
|
-
preview: "preview";
|
|
606
605
|
production: "production";
|
|
606
|
+
preview: "preview";
|
|
607
607
|
development: "development";
|
|
608
608
|
}>>;
|
|
609
609
|
expectedCurrentVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -695,8 +695,8 @@ export declare const tagApplyResponseSchema: z.ZodObject<{
|
|
|
695
695
|
id: z.ZodString;
|
|
696
696
|
tagSetId: z.ZodString;
|
|
697
697
|
environment: z.ZodEnum<{
|
|
698
|
-
preview: "preview";
|
|
699
698
|
production: "production";
|
|
699
|
+
preview: "preview";
|
|
700
700
|
development: "development";
|
|
701
701
|
}>;
|
|
702
702
|
versionId: z.ZodString;
|
|
@@ -722,8 +722,8 @@ export declare const tagPreviewSessionSchema: z.ZodObject<{
|
|
|
722
722
|
id: z.ZodString;
|
|
723
723
|
versionId: z.ZodString;
|
|
724
724
|
environment: z.ZodEnum<{
|
|
725
|
-
preview: "preview";
|
|
726
725
|
production: "production";
|
|
726
|
+
preview: "preview";
|
|
727
727
|
development: "development";
|
|
728
728
|
}>;
|
|
729
729
|
previewUrl: z.ZodString;
|
|
@@ -741,8 +741,8 @@ export declare const tagPreviewSessionResponseSchema: z.ZodObject<{
|
|
|
741
741
|
id: z.ZodString;
|
|
742
742
|
versionId: z.ZodString;
|
|
743
743
|
environment: z.ZodEnum<{
|
|
744
|
-
preview: "preview";
|
|
745
744
|
production: "production";
|
|
745
|
+
preview: "preview";
|
|
746
746
|
development: "development";
|
|
747
747
|
}>;
|
|
748
748
|
previewUrl: z.ZodString;
|
|
@@ -760,8 +760,8 @@ export declare const tagPreviewSessionCreateSchema: z.ZodObject<{
|
|
|
760
760
|
url: z.ZodOptional<z.ZodString>;
|
|
761
761
|
ttlSeconds: z.ZodDefault<z.ZodNumber>;
|
|
762
762
|
environment: z.ZodDefault<z.ZodEnum<{
|
|
763
|
-
preview: "preview";
|
|
764
763
|
production: "production";
|
|
764
|
+
preview: "preview";
|
|
765
765
|
development: "development";
|
|
766
766
|
}>>;
|
|
767
767
|
}, z.core.$strip>;
|
|
@@ -769,8 +769,8 @@ export declare const tagDebugSessionCreateSchema: z.ZodObject<{
|
|
|
769
769
|
url: z.ZodOptional<z.ZodString>;
|
|
770
770
|
ttlSeconds: z.ZodDefault<z.ZodNumber>;
|
|
771
771
|
environment: z.ZodDefault<z.ZodEnum<{
|
|
772
|
-
preview: "preview";
|
|
773
772
|
production: "production";
|
|
773
|
+
preview: "preview";
|
|
774
774
|
development: "development";
|
|
775
775
|
}>>;
|
|
776
776
|
}, z.core.$strip>;
|
|
@@ -905,8 +905,8 @@ export declare const tagTemplateSelectionSchema: z.ZodObject<{
|
|
|
905
905
|
personalization: "personalization";
|
|
906
906
|
}>>>;
|
|
907
907
|
environments: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
908
|
-
preview: "preview";
|
|
909
908
|
production: "production";
|
|
909
|
+
preview: "preview";
|
|
910
910
|
development: "development";
|
|
911
911
|
}>>>;
|
|
912
912
|
schedule: z.ZodOptional<z.ZodObject<{
|
|
@@ -994,8 +994,8 @@ export declare const tagTemplateListResponseSchema: z.ZodObject<{
|
|
|
994
994
|
export declare const tagConsentPolicyResponseSchema: z.ZodObject<{
|
|
995
995
|
data: z.ZodObject<{
|
|
996
996
|
environment: z.ZodEnum<{
|
|
997
|
-
preview: "preview";
|
|
998
997
|
production: "production";
|
|
998
|
+
preview: "preview";
|
|
999
999
|
development: "development";
|
|
1000
1000
|
}>;
|
|
1001
1001
|
versionId: z.ZodNullable<z.ZodString>;
|
|
@@ -1077,8 +1077,8 @@ export declare const tagTemplateGraphSchema: z.ZodObject<{
|
|
|
1077
1077
|
personalization: "personalization";
|
|
1078
1078
|
}>>>;
|
|
1079
1079
|
environments: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1080
|
-
preview: "preview";
|
|
1081
1080
|
production: "production";
|
|
1081
|
+
preview: "preview";
|
|
1082
1082
|
development: "development";
|
|
1083
1083
|
}>>>;
|
|
1084
1084
|
schedule: z.ZodOptional<z.ZodObject<{
|
|
@@ -1144,8 +1144,8 @@ export declare const tagEffectiveResponseSchema: z.ZodObject<{
|
|
|
1144
1144
|
data: z.ZodObject<{
|
|
1145
1145
|
tagSetId: z.ZodNullable<z.ZodString>;
|
|
1146
1146
|
environment: z.ZodEnum<{
|
|
1147
|
-
preview: "preview";
|
|
1148
1147
|
production: "production";
|
|
1148
|
+
preview: "preview";
|
|
1149
1149
|
development: "development";
|
|
1150
1150
|
}>;
|
|
1151
1151
|
versionId: z.ZodNullable<z.ZodString>;
|
package/dist/contracts/tags.js
CHANGED
|
@@ -357,7 +357,7 @@ export const tagGraphWriteSchema = z
|
|
|
357
357
|
.object(tagGraphBudgetedShape)
|
|
358
358
|
.strict()
|
|
359
359
|
.superRefine(refineTagGraphBudget)
|
|
360
|
-
.describe(`Tag graph v1 write input. The server enforces
|
|
360
|
+
.describe(`Tag graph v1 write input. The server enforces these limits: ${TAG_GRAPH_MAX_ENCODED_BYTES} encoded bytes, ${TAG_GRAPH_MAX_TAGS} tags, ${TAG_GRAPH_MAX_TRIGGERS} triggers, ${TAG_GRAPH_MAX_VARIABLES} variables, and ${TAG_GRAPH_MAX_SYSTEM_MODULES} system modules. The server also enforces ${TAG_GRAPH_MAX_ARRAY_ITEMS} items per nested array, ${TAG_GRAPH_MAX_OBJECT_KEYS} keys per object, ${TAG_GRAPH_MAX_STRING_BYTES} encoded bytes per string, and ${TAG_GRAPH_MAX_DEPTH} nested levels. Unknown top-level fields are rejected.`);
|
|
361
361
|
export const emptyTagGraph = {
|
|
362
362
|
format: "spacefast.tag_graph.v1",
|
|
363
363
|
tags: [],
|
package/dist/contracts/teams.js
CHANGED
|
@@ -38,9 +38,9 @@ export const TeamInvitationSchema = z.object({
|
|
|
38
38
|
// tenant, carrying the resolved plan and default data location.
|
|
39
39
|
export const teamPlanCode = planCodeSchema;
|
|
40
40
|
export const TeamSummarySchema = z.object({
|
|
41
|
-
id: z.string().describe("
|
|
42
|
-
tenantId: z.string().describe("
|
|
43
|
-
name: z.string().describe("
|
|
41
|
+
id: z.string().describe("The team id (the Better Auth team id in the main tenant)."),
|
|
42
|
+
tenantId: z.string().describe("The owning tenant id; `ten_main` for self-serve teams."),
|
|
43
|
+
name: z.string().describe("The team display name."),
|
|
44
44
|
slug: z.string().describe("URL-safe team slug, unique per tenant."),
|
|
45
45
|
role: teamMemberRole.describe("Requesting member's role; member for non-session credentials."),
|
|
46
46
|
plan: teamPlanCode.describe("Resolved plan code from the active subscription."),
|
|
@@ -56,7 +56,7 @@ export const TeamDetailSchema = TeamSummarySchema.extend({
|
|
|
56
56
|
stripeCustomerId: z
|
|
57
57
|
.string()
|
|
58
58
|
.nullable()
|
|
59
|
-
.describe("Stripe customer id linked to this team
|
|
59
|
+
.describe("Stripe customer id linked to this team; null until billing is initialized."),
|
|
60
60
|
});
|
|
61
61
|
export const teamListResponseSchema = z.object({
|
|
62
62
|
data: z.array(TeamSummarySchema),
|
|
@@ -80,13 +80,13 @@ export const teamInvitationAcceptSchema = z.object({
|
|
|
80
80
|
.string()
|
|
81
81
|
.trim()
|
|
82
82
|
.min(1)
|
|
83
|
-
.describe("
|
|
83
|
+
.describe("The invitation id to accept (the token from the invite link)."),
|
|
84
84
|
});
|
|
85
85
|
export const teamInvitationAcceptResponseSchema = z.object({
|
|
86
86
|
data: z.object({
|
|
87
|
-
teamId: z.string().describe("
|
|
87
|
+
teamId: z.string().describe("The id of the team the caller joined."),
|
|
88
88
|
teamSlug: z.string().describe("URL-safe slug of the joined team."),
|
|
89
|
-
userId: z.string().describe("
|
|
89
|
+
userId: z.string().describe("The id of the user that accepted the invitation."),
|
|
90
90
|
role: teamMemberRole.describe("Role granted by the invitation."),
|
|
91
91
|
}),
|
|
92
92
|
});
|
|
@@ -114,7 +114,7 @@ const wpCloudCapabilityOptionSchema = z.object({
|
|
|
114
114
|
// Served by `GET /v1/teams/{teamId}/settings` (and echoed by the PATCH):
|
|
115
115
|
// the default data location plus the placement options it may take.
|
|
116
116
|
export const teamSettingsResponseSchema = z.object({
|
|
117
|
-
teamId: z.string().describe("
|
|
117
|
+
teamId: z.string().describe("The team id the settings belong to."),
|
|
118
118
|
defaultDataLocation: teamDataLocationSchema,
|
|
119
119
|
regionOptions: z
|
|
120
120
|
.array(wpCloudCapabilityOptionSchema)
|
|
@@ -124,12 +124,12 @@ export const teamSettingsResponseSchema = z.object({
|
|
|
124
124
|
datacenters: z.array(wpCloudCapabilityOptionSchema),
|
|
125
125
|
phpVersions: z.array(wpCloudCapabilityOptionSchema),
|
|
126
126
|
})
|
|
127
|
-
.describe("Live capabilities for the team's
|
|
127
|
+
.describe("Live capabilities for the team's infra provider account."),
|
|
128
128
|
});
|
|
129
129
|
// Served by `GET /v1/teams/{teamId}/usage`: counts and metered usage against
|
|
130
130
|
// the named plan limits.
|
|
131
131
|
export const teamUsageResponseSchema = z.object({
|
|
132
|
-
teamId: z.string().describe("
|
|
132
|
+
teamId: z.string().describe("The team id the usage was metered for."),
|
|
133
133
|
usage: z
|
|
134
134
|
.object({
|
|
135
135
|
spaces: z.number().int().describe("Live spaces in the team."),
|
|
@@ -140,18 +140,27 @@ export const teamUsageResponseSchema = z.object({
|
|
|
140
140
|
.union([z.number(), z.literal("unlimited")])
|
|
141
141
|
.describe('Plan storage quota; "unlimited" when unbounded.'),
|
|
142
142
|
storageOverageBytes: z.number().describe("Bytes over the plan storage quota."),
|
|
143
|
-
storageCalculatedAt: z
|
|
143
|
+
storageCalculatedAt: z
|
|
144
|
+
.string()
|
|
145
|
+
.nullable()
|
|
146
|
+
.describe("Instant when storage was last accounted."),
|
|
144
147
|
storageOverQuotaSince: z
|
|
145
148
|
.string()
|
|
146
149
|
.nullable()
|
|
147
|
-
.describe("
|
|
148
|
-
storageWarningSentAt: z
|
|
150
|
+
.describe("Instant when the team first went over its storage quota."),
|
|
151
|
+
storageWarningSentAt: z
|
|
152
|
+
.string()
|
|
153
|
+
.nullable()
|
|
154
|
+
.describe("Instant when the over-quota warning went out."),
|
|
149
155
|
buildsDeploysThisMonth: z
|
|
150
156
|
.number()
|
|
151
157
|
.int()
|
|
152
158
|
.describe("Publishes (user pushes and CI builds pooled) this month."),
|
|
153
159
|
buildsDeploysMonthly: planLimitValueSchema.describe("Monthly publish limit for the plan."),
|
|
154
|
-
meterStartedAt: z
|
|
160
|
+
meterStartedAt: z
|
|
161
|
+
.string()
|
|
162
|
+
.nullable()
|
|
163
|
+
.describe("Instant when the current metering month started."),
|
|
155
164
|
})
|
|
156
165
|
.describe("Usage counters against the named plan limits."),
|
|
157
166
|
});
|
|
@@ -162,7 +171,7 @@ export const teamInvitationPreviewSchema = z.object({
|
|
|
162
171
|
teamName: z.string().describe("Inviting team's display name."),
|
|
163
172
|
invitedEmail: z.string().describe("Masked invited email address."),
|
|
164
173
|
status: z.enum(["pending", "expired", "closed"]).describe("Whether the invite can be accepted."),
|
|
165
|
-
expiresAt: z.string().describe("
|
|
174
|
+
expiresAt: z.string().describe("Instant when the invitation expires."),
|
|
166
175
|
});
|
|
167
176
|
export const teamCreateSchema = z.object({
|
|
168
177
|
name: z.string().trim().min(1).max(255).describe("Display name for the new team."),
|
|
@@ -173,7 +182,7 @@ export const teamCreateSchema = z.object({
|
|
|
173
182
|
.max(255)
|
|
174
183
|
.meta({ pattern: "^[a-z0-9][a-z0-9-]*[a-z0-9]$|^[a-z0-9]$" })
|
|
175
184
|
.optional()
|
|
176
|
-
.describe("Optional URL slug.
|
|
185
|
+
.describe("Optional URL slug. If omitted, the server generates the lowest available slug."),
|
|
177
186
|
});
|
|
178
187
|
export const teamUpdateSchema = z
|
|
179
188
|
.object({
|
|
@@ -44,4 +44,4 @@ export const themeJsonSchema = z
|
|
|
44
44
|
.optional(),
|
|
45
45
|
})
|
|
46
46
|
.passthrough()
|
|
47
|
-
.describe("WordPress theme.json-compatible file
|
|
47
|
+
.describe("WordPress theme.json-compatible file. Only settings.color.palette and settings.typography.fontFamilies are used to infer Pages tokens.");
|
|
@@ -10,11 +10,11 @@ export const principalIdSchema = z
|
|
|
10
10
|
.min(1)
|
|
11
11
|
.max(256)
|
|
12
12
|
.regex(/^[^\s/\\]+$/)
|
|
13
|
-
.refine((value) =>
|
|
13
|
+
.refine((value) => Array.from(value).every((char) => {
|
|
14
14
|
const code = char.codePointAt(0) ?? 0;
|
|
15
15
|
return code >= 32 && code !== 127;
|
|
16
16
|
}))
|
|
17
|
-
.describe("Tenant-local principal id: a team id
|
|
17
|
+
.describe("Tenant-local principal id: a team id or an integrator external customer id.");
|
|
18
18
|
// Request `to` omits tenantId: transfers are tenant-local and the tenant is
|
|
19
19
|
// inferred from the space (internal-docs/platform.md "Transfer semantics").
|
|
20
20
|
export const transferPrincipalInputSchema = z.object({
|
|
@@ -34,7 +34,7 @@ export const spaceTransferSchema = z.object({
|
|
|
34
34
|
id: z.string().describe("SpaceTransfer id (`trf_`)."),
|
|
35
35
|
spaceId: z.string().describe("Space being transferred."),
|
|
36
36
|
from: transferPrincipalSchema.describe("Current owner. Keeps full control, serving, and billing attribution until `completed`."),
|
|
37
|
-
to: transferPrincipalSchema.describe("Receiving principal
|
|
37
|
+
to: transferPrincipalSchema.describe("Receiving principal. Confirm is a to-side action."),
|
|
38
38
|
status: spaceTransferStatus.describe("Transfer state. `confirming_domains` waits on re-confirmation of bound domains; a failed move reverts to `pending_confirmation` with a diagnostic (there is no failed state)."),
|
|
39
39
|
// Domain confirmations the receiving principal must complete before the move.
|
|
40
40
|
requiredActions: requiredActionsSchema,
|
|
@@ -42,7 +42,7 @@ export const spaceTransferSchema = z.object({
|
|
|
42
42
|
expiresAt: z
|
|
43
43
|
.string()
|
|
44
44
|
.datetime()
|
|
45
|
-
.describe("
|
|
45
|
+
.describe("Instant when a pending transfer expires (default 7 days)."),
|
|
46
46
|
createdAt: z.string().datetime(),
|
|
47
47
|
updatedAt: z.string().datetime(),
|
|
48
48
|
});
|
|
@@ -24,8 +24,8 @@ export const VariableSchema = z.object({
|
|
|
24
24
|
.record(z.string(), z.string())
|
|
25
25
|
.optional()
|
|
26
26
|
.describe("Per-channel overrides compiled into channel template variants; omitted for secrets."),
|
|
27
|
-
createdAt: z.string().datetime().describe("
|
|
28
|
-
updatedAt: z.string().datetime().describe("
|
|
27
|
+
createdAt: z.string().datetime().describe("Instant when the variable was created."),
|
|
28
|
+
updatedAt: z.string().datetime().describe("Instant when the value was last written."),
|
|
29
29
|
});
|
|
30
30
|
// Version provenance (internal-docs/platform.md "Variable rules"): versions
|
|
31
31
|
// record which variable names and value hashes they were finalized with —
|
|
@@ -37,7 +37,7 @@ export const variableProvenanceSchema = z
|
|
|
37
37
|
name: z.string().describe("Variable name the version was finalized with."),
|
|
38
38
|
valueHash: z
|
|
39
39
|
.string()
|
|
40
|
-
.describe("
|
|
40
|
+
.describe("SHA-256 of the resolved value at finalize time. Never the value itself."),
|
|
41
41
|
}))
|
|
42
42
|
.describe("Variable names + value hashes baked into this version at finalize. Never values.");
|
|
43
43
|
// Platform-provided, read-only values (SPACEFAST_*) surfaced alongside stored
|