@spacefast/common 0.0.12 → 0.0.17
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 +486 -1196
- package/dist/contracts/access.js +323 -1054
- package/dist/contracts/activity.d.ts +1 -1
- package/dist/contracts/activity.js +11 -15
- package/dist/contracts/api-keys.d.ts +16 -0
- package/dist/contracts/api-keys.js +11 -9
- package/dist/contracts/archives.d.ts +1 -2
- package/dist/contracts/archives.js +15 -17
- 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 +143 -99
- package/dist/contracts/comments.js +194 -79
- 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/countries.js +2 -7
- package/dist/contracts/data-source-routes.d.ts +20 -0
- package/dist/contracts/data-source-routes.js +15 -0
- package/dist/contracts/device-auth.d.ts +13 -9
- 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 +4 -14
- package/dist/contracts/enums.js +3 -10
- package/dist/contracts/error-code-meta.d.ts +122 -56
- package/dist/contracts/error-code-meta.js +43 -19
- package/dist/contracts/error-codes.d.ts +7 -4
- package/dist/contracts/error-codes.js +48 -24
- package/dist/contracts/events.d.ts +22 -15
- package/dist/contracts/events.js +33 -5
- package/dist/contracts/execution.d.ts +238 -0
- package/dist/contracts/execution.js +309 -0
- package/dist/contracts/feature-lifecycle.d.ts +39 -188
- package/dist/contracts/feature-lifecycle.js +52 -196
- package/dist/contracts/features.d.ts +13 -115
- package/dist/contracts/features.js +5 -35
- package/dist/contracts/functions.d.ts +597 -0
- package/dist/contracts/functions.js +475 -0
- package/dist/contracts/grants.d.ts +1175 -0
- package/dist/contracts/grants.js +783 -0
- package/dist/contracts/ids.d.ts +7 -5
- package/dist/contracts/ids.js +7 -7
- 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 +22 -5
- package/dist/contracts/oauth-resources.js +23 -2
- package/dist/contracts/operations.d.ts +0 -48
- package/dist/contracts/operations.js +0 -19
- package/dist/contracts/pages.d.ts +10 -14
- package/dist/contracts/pages.js +17 -21
- package/dist/contracts/plan-policy.d.ts +1 -8
- package/dist/contracts/plan-policy.js +1 -4
- package/dist/contracts/platform.d.ts +78 -30
- package/dist/contracts/platform.js +69 -20
- package/dist/contracts/problem-document.d.ts +14 -0
- package/dist/contracts/problem-document.js +35 -0
- package/dist/contracts/push-new.d.ts +41 -2
- package/dist/contracts/push-new.js +4 -0
- package/dist/contracts/quotas.d.ts +0 -1
- package/dist/contracts/quotas.js +0 -5
- package/dist/contracts/repository-connections.d.ts +1 -1
- package/dist/contracts/resources.d.ts +16 -71
- package/dist/contracts/resources.js +13 -16
- package/dist/contracts/runtime-api.d.ts +666 -303
- package/dist/contracts/runtime-api.js +272 -113
- package/dist/contracts/runtime-app.d.ts +168 -0
- package/dist/contracts/runtime-app.js +42 -0
- 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 +54 -1
- package/dist/contracts/sf-config-v1.js +2 -2
- package/dist/contracts/sites.d.ts +6 -0
- package/dist/contracts/sites.js +30 -11
- package/dist/contracts/space-config.d.ts +91 -121
- package/dist/contracts/space-config.js +464 -42
- package/dist/contracts/spaces.d.ts +300 -171
- package/dist/contracts/spaces.js +128 -98
- package/dist/contracts/superadmin-emails.d.ts +2 -2
- package/dist/contracts/superadmin-spaces.d.ts +26 -130
- package/dist/contracts/superadmin-spaces.js +22 -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 +6 -6
- package/dist/contracts/tags.js +1 -1
- package/dist/contracts/teams.d.ts +9 -9
- package/dist/contracts/teams.js +25 -16
- package/dist/contracts/theme-json.js +1 -1
- package/dist/contracts/transfers.d.ts +0 -1
- package/dist/contracts/transfers.js +4 -4
- package/dist/contracts/variables.js +3 -3
- package/dist/contracts/zero.d.ts +384 -596
- package/dist/contracts/zero.js +167 -299
- package/dist/dashboard-paths/index.d.ts +18 -3
- package/dist/dashboard-paths/index.js +19 -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 +227 -55
- package/dist/docs/agent-setup.d.ts +14 -11
- package/dist/docs/agent-setup.js +289 -61
- package/dist/docs/agent-solutions.d.ts +6 -6
- package/dist/docs/agent-solutions.js +24 -22
- package/dist/docs/catalog.d.ts +53 -98
- package/dist/docs/catalog.js +90 -117
- package/dist/docs/error-docs.js +304 -236
- 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/auth-redirect.d.ts +1 -3
- package/dist/utils/auth-redirect.js +1 -21
- package/dist/utils/browser-credential.d.ts +19 -0
- package/dist/utils/browser-credential.js +62 -0
- package/dist/utils/build-settings.d.ts +2 -0
- package/dist/utils/build-settings.js +61 -9
- 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/credential-policy.d.ts +1 -1
- package/dist/utils/credential-policy.js +4 -0
- package/dist/utils/domain-diagnostics.d.ts +5 -5
- package/dist/utils/domain-diagnostics.js +21 -10
- package/dist/utils/egress-policy.fixtures.json +1 -1
- package/dist/utils/grants.d.ts +53 -0
- package/dist/utils/grants.js +160 -0
- package/dist/utils/local-space-state.d.ts +78 -4
- package/dist/utils/local-space-state.js +384 -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 -5
- package/dist/utils/pages.js +64 -33
- package/dist/utils/publish-form-data.d.ts +22 -0
- package/dist/utils/publish-form-data.js +26 -0
- package/dist/utils/publish-policy.d.ts +34 -4
- package/dist/utils/publish-policy.js +149 -62
- package/dist/utils/query-keys.d.ts +8 -10
- package/dist/utils/query-keys.js +14 -10
- 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 +17 -4
- package/dist/utils/space-config.js +151 -8
- package/dist/utils/static-runtime-policy.d.ts +5 -0
- package/dist/utils/static-runtime-policy.js +54 -10
- 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 +15 -1
- package/dist/utils/upload-session.js +68 -2
- package/dist/utils/version-file-browser.d.ts +13 -0
- package/dist/utils/version-file-browser.js +59 -0
- package/package.json +20 -1
- package/dist/contracts/mounts.d.ts +0 -142
- package/dist/contracts/mounts.js +0 -56
- package/dist/utils/access-grant.d.ts +0 -14
- package/dist/utils/access-grant.js +0 -88
- package/dist/utils/access-match.d.ts +0 -46
- package/dist/utils/access-match.fixtures.json +0 -513
- package/dist/utils/access-match.js +0 -312
- package/dist/utils/access-verdict.fixtures.json +0 -421
- package/dist/utils/asset-fingerprint.d.ts +0 -53
- package/dist/utils/asset-fingerprint.js +0 -574
- package/dist/utils/sf-config-v1.d.ts +0 -2
- package/dist/utils/sf-config-v1.fixtures.json +0 -9
- package/dist/utils/sf-config-v1.js +0 -551
|
@@ -147,7 +147,6 @@ export declare const SuperadminSpaceDetailSchema: z.ZodObject<{
|
|
|
147
147
|
abuse_takedown: "abuse_takedown";
|
|
148
148
|
tenant_suspended: "tenant_suspended";
|
|
149
149
|
site_suspended: "site_suspended";
|
|
150
|
-
visit_cap_exceeded: "visit_cap_exceeded";
|
|
151
150
|
}>;
|
|
152
151
|
}, z.core.$strip>>;
|
|
153
152
|
claimState: z.ZodNullable<z.ZodObject<{
|
|
@@ -186,6 +185,7 @@ export declare const SuperadminSpaceDetailSchema: z.ZodObject<{
|
|
|
186
185
|
always_hot: "always_hot";
|
|
187
186
|
}>;
|
|
188
187
|
moving: z.ZodBoolean;
|
|
188
|
+
hasRuntime: z.ZodBoolean;
|
|
189
189
|
channels: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
190
190
|
versionId: z.ZodString;
|
|
191
191
|
updatedAt: z.ZodString;
|
|
@@ -268,73 +268,14 @@ export declare const SuperadminSpaceDetailSchema: z.ZodObject<{
|
|
|
268
268
|
bodyEnd: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
269
269
|
noscript: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
270
270
|
}, z.core.$strip>>;
|
|
271
|
+
dataSources: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
272
|
+
kind: z.ZodLiteral<"wordpress">;
|
|
273
|
+
url: z.ZodString;
|
|
274
|
+
}, z.core.$strict>>>>;
|
|
275
|
+
defaultDataSource: z.ZodOptional<z.ZodString>;
|
|
271
276
|
}, z.core.$strip>>;
|
|
272
277
|
settingsDigest: z.ZodString;
|
|
273
278
|
noindex: z.ZodBoolean;
|
|
274
|
-
policy: z.ZodNullable<z.ZodObject<{
|
|
275
|
-
rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
276
|
-
id: z.ZodOptional<z.ZodString>;
|
|
277
|
-
match: z.ZodDefault<z.ZodObject<{
|
|
278
|
-
host: z.ZodOptional<z.ZodString>;
|
|
279
|
-
hostPattern: z.ZodOptional<z.ZodString>;
|
|
280
|
-
hostTemplate: z.ZodOptional<z.ZodString>;
|
|
281
|
-
pathPattern: z.ZodOptional<z.ZodString>;
|
|
282
|
-
channel: z.ZodOptional<z.ZodString>;
|
|
283
|
-
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
284
|
-
agent: z.ZodOptional<z.ZodString>;
|
|
285
|
-
country: z.ZodOptional<z.ZodString>;
|
|
286
|
-
countryNotIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
287
|
-
header: z.ZodOptional<z.ZodObject<{
|
|
288
|
-
name: z.ZodString;
|
|
289
|
-
value: z.ZodString;
|
|
290
|
-
}, z.core.$strip>>;
|
|
291
|
-
}, z.core.$strip>>;
|
|
292
|
-
effect: z.ZodEnum<{
|
|
293
|
-
allow: "allow";
|
|
294
|
-
deny: "deny";
|
|
295
|
-
challenge: "challenge";
|
|
296
|
-
}>;
|
|
297
|
-
auth: z.ZodOptional<z.ZodObject<{
|
|
298
|
-
requiredGrants: z.ZodArray<z.ZodString>;
|
|
299
|
-
issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
300
|
-
kid: z.ZodString;
|
|
301
|
-
alg: z.ZodLiteral<"EdDSA">;
|
|
302
|
-
publicKey: z.ZodString;
|
|
303
|
-
grantNamespaces: z.ZodArray<z.ZodString>;
|
|
304
|
-
}, z.core.$strip>>>;
|
|
305
|
-
acquire: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
306
|
-
type: z.ZodLiteral<"password">;
|
|
307
|
-
ref: z.ZodString;
|
|
308
|
-
transport: z.ZodEnum<{
|
|
309
|
-
basic: "basic";
|
|
310
|
-
form: "form";
|
|
311
|
-
}>;
|
|
312
|
-
username: z.ZodOptional<z.ZodString>;
|
|
313
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
314
|
-
type: z.ZodLiteral<"login">;
|
|
315
|
-
url: z.ZodString;
|
|
316
|
-
label: z.ZodOptional<z.ZodString>;
|
|
317
|
-
}, z.core.$strip>], "type">>>;
|
|
318
|
-
}, z.core.$strip>>;
|
|
319
|
-
managedBy: z.ZodOptional<z.ZodEnum<{
|
|
320
|
-
sharing: "sharing";
|
|
321
|
-
firewall: "firewall";
|
|
322
|
-
file_share: "file_share";
|
|
323
|
-
cast_reviewer: "cast_reviewer";
|
|
324
|
-
team_default: "team_default";
|
|
325
|
-
}>>;
|
|
326
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
327
|
-
reasonCode: z.ZodOptional<z.ZodString>;
|
|
328
|
-
message: z.ZodOptional<z.ZodString>;
|
|
329
|
-
}, z.core.$strip>>>;
|
|
330
|
-
issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
331
|
-
kid: z.ZodString;
|
|
332
|
-
alg: z.ZodLiteral<"EdDSA">;
|
|
333
|
-
publicKey: z.ZodString;
|
|
334
|
-
grantNamespaces: z.ZodArray<z.ZodString>;
|
|
335
|
-
}, z.core.$strip>>>;
|
|
336
|
-
sessionVersion: z.ZodOptional<z.ZodNumber>;
|
|
337
|
-
}, z.core.$strip>>;
|
|
338
279
|
operation: z.ZodNullable<z.ZodObject<{
|
|
339
280
|
id: z.ZodString;
|
|
340
281
|
kind: z.ZodString;
|
|
@@ -379,6 +320,11 @@ export declare const SuperadminSpaceDetailSchema: z.ZodObject<{
|
|
|
379
320
|
createdAt: z.ZodString;
|
|
380
321
|
updatedAt: z.ZodString;
|
|
381
322
|
}, z.core.$strip>;
|
|
323
|
+
access: z.ZodObject<{
|
|
324
|
+
generation: z.ZodNumber;
|
|
325
|
+
activeGrantCount: z.ZodNumber;
|
|
326
|
+
public: z.ZodBoolean;
|
|
327
|
+
}, z.core.$strict>;
|
|
382
328
|
hostnames: z.ZodArray<z.ZodObject<{
|
|
383
329
|
hostname: z.ZodString;
|
|
384
330
|
url: z.ZodString;
|
|
@@ -460,6 +406,14 @@ export declare const SuperadminSpaceDetailSchema: z.ZodObject<{
|
|
|
460
406
|
updatedAt: z.ZodString;
|
|
461
407
|
}, z.core.$strip>>;
|
|
462
408
|
}, z.core.$strip>;
|
|
409
|
+
export declare const superadminSpaceViewLinkWriteSchema: z.ZodObject<{
|
|
410
|
+
path: z.ZodOptional<z.ZodString>;
|
|
411
|
+
}, z.core.$strict>;
|
|
412
|
+
export declare const SuperadminSpaceViewLinkSchema: z.ZodObject<{
|
|
413
|
+
landingPath: z.ZodString;
|
|
414
|
+
expiresAt: z.ZodString;
|
|
415
|
+
url: z.ZodString;
|
|
416
|
+
}, z.core.$strict>;
|
|
463
417
|
export declare const SuperadminAnonymousSpaceSchema: z.ZodObject<{
|
|
464
418
|
id: z.ZodString;
|
|
465
419
|
tenantId: z.ZodString;
|
|
@@ -528,7 +482,6 @@ export declare const SuperadminAnonymousSpaceAssignResponseSchema: z.ZodObject<{
|
|
|
528
482
|
abuse_takedown: "abuse_takedown";
|
|
529
483
|
tenant_suspended: "tenant_suspended";
|
|
530
484
|
site_suspended: "site_suspended";
|
|
531
|
-
visit_cap_exceeded: "visit_cap_exceeded";
|
|
532
485
|
}>;
|
|
533
486
|
}, z.core.$strip>>;
|
|
534
487
|
claimState: z.ZodNullable<z.ZodObject<{
|
|
@@ -567,6 +520,7 @@ export declare const SuperadminAnonymousSpaceAssignResponseSchema: z.ZodObject<{
|
|
|
567
520
|
always_hot: "always_hot";
|
|
568
521
|
}>;
|
|
569
522
|
moving: z.ZodBoolean;
|
|
523
|
+
hasRuntime: z.ZodBoolean;
|
|
570
524
|
channels: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
571
525
|
versionId: z.ZodString;
|
|
572
526
|
updatedAt: z.ZodString;
|
|
@@ -649,73 +603,14 @@ export declare const SuperadminAnonymousSpaceAssignResponseSchema: z.ZodObject<{
|
|
|
649
603
|
bodyEnd: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
650
604
|
noscript: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
651
605
|
}, z.core.$strip>>;
|
|
606
|
+
dataSources: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
607
|
+
kind: z.ZodLiteral<"wordpress">;
|
|
608
|
+
url: z.ZodString;
|
|
609
|
+
}, z.core.$strict>>>>;
|
|
610
|
+
defaultDataSource: z.ZodOptional<z.ZodString>;
|
|
652
611
|
}, z.core.$strip>>;
|
|
653
612
|
settingsDigest: z.ZodString;
|
|
654
613
|
noindex: z.ZodBoolean;
|
|
655
|
-
policy: z.ZodNullable<z.ZodObject<{
|
|
656
|
-
rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
657
|
-
id: z.ZodOptional<z.ZodString>;
|
|
658
|
-
match: z.ZodDefault<z.ZodObject<{
|
|
659
|
-
host: z.ZodOptional<z.ZodString>;
|
|
660
|
-
hostPattern: z.ZodOptional<z.ZodString>;
|
|
661
|
-
hostTemplate: z.ZodOptional<z.ZodString>;
|
|
662
|
-
pathPattern: z.ZodOptional<z.ZodString>;
|
|
663
|
-
channel: z.ZodOptional<z.ZodString>;
|
|
664
|
-
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
665
|
-
agent: z.ZodOptional<z.ZodString>;
|
|
666
|
-
country: z.ZodOptional<z.ZodString>;
|
|
667
|
-
countryNotIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
668
|
-
header: z.ZodOptional<z.ZodObject<{
|
|
669
|
-
name: z.ZodString;
|
|
670
|
-
value: z.ZodString;
|
|
671
|
-
}, z.core.$strip>>;
|
|
672
|
-
}, z.core.$strip>>;
|
|
673
|
-
effect: z.ZodEnum<{
|
|
674
|
-
allow: "allow";
|
|
675
|
-
deny: "deny";
|
|
676
|
-
challenge: "challenge";
|
|
677
|
-
}>;
|
|
678
|
-
auth: z.ZodOptional<z.ZodObject<{
|
|
679
|
-
requiredGrants: z.ZodArray<z.ZodString>;
|
|
680
|
-
issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
681
|
-
kid: z.ZodString;
|
|
682
|
-
alg: z.ZodLiteral<"EdDSA">;
|
|
683
|
-
publicKey: z.ZodString;
|
|
684
|
-
grantNamespaces: z.ZodArray<z.ZodString>;
|
|
685
|
-
}, z.core.$strip>>>;
|
|
686
|
-
acquire: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
687
|
-
type: z.ZodLiteral<"password">;
|
|
688
|
-
ref: z.ZodString;
|
|
689
|
-
transport: z.ZodEnum<{
|
|
690
|
-
basic: "basic";
|
|
691
|
-
form: "form";
|
|
692
|
-
}>;
|
|
693
|
-
username: z.ZodOptional<z.ZodString>;
|
|
694
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
695
|
-
type: z.ZodLiteral<"login">;
|
|
696
|
-
url: z.ZodString;
|
|
697
|
-
label: z.ZodOptional<z.ZodString>;
|
|
698
|
-
}, z.core.$strip>], "type">>>;
|
|
699
|
-
}, z.core.$strip>>;
|
|
700
|
-
managedBy: z.ZodOptional<z.ZodEnum<{
|
|
701
|
-
sharing: "sharing";
|
|
702
|
-
firewall: "firewall";
|
|
703
|
-
file_share: "file_share";
|
|
704
|
-
cast_reviewer: "cast_reviewer";
|
|
705
|
-
team_default: "team_default";
|
|
706
|
-
}>>;
|
|
707
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
708
|
-
reasonCode: z.ZodOptional<z.ZodString>;
|
|
709
|
-
message: z.ZodOptional<z.ZodString>;
|
|
710
|
-
}, z.core.$strip>>>;
|
|
711
|
-
issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
712
|
-
kid: z.ZodString;
|
|
713
|
-
alg: z.ZodLiteral<"EdDSA">;
|
|
714
|
-
publicKey: z.ZodString;
|
|
715
|
-
grantNamespaces: z.ZodArray<z.ZodString>;
|
|
716
|
-
}, z.core.$strip>>>;
|
|
717
|
-
sessionVersion: z.ZodOptional<z.ZodNumber>;
|
|
718
|
-
}, z.core.$strip>>;
|
|
719
614
|
operation: z.ZodNullable<z.ZodObject<{
|
|
720
615
|
id: z.ZodString;
|
|
721
616
|
kind: z.ZodString;
|
|
@@ -767,3 +662,4 @@ export type SuperadminSpaceVersion = z.infer<typeof SuperadminSpaceVersionSchema
|
|
|
767
662
|
export type SuperadminSpaceDetail = z.infer<typeof SuperadminSpaceDetailSchema>;
|
|
768
663
|
export type SuperadminAnonymousSpace = z.infer<typeof SuperadminAnonymousSpaceSchema>;
|
|
769
664
|
export type SuperadminAnonymousSpaceList = z.infer<typeof SuperadminAnonymousSpaceListSchema>;
|
|
665
|
+
export type SuperadminSpaceViewLink = z.infer<typeof SuperadminSpaceViewLinkSchema>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { accessScopePathSchema } from "./access.js";
|
|
2
3
|
import { SpaceSchema } from "./resources.js";
|
|
3
4
|
import { ZERO_RUNTIME_KIND } from "./zero.js";
|
|
4
5
|
const zeroLogLevelSchema = z.enum(["debug", "info", "warn", "error"]);
|
|
@@ -77,9 +78,30 @@ export const SuperadminSpaceVersionSchema = z.object({
|
|
|
77
78
|
});
|
|
78
79
|
export const SuperadminSpaceDetailSchema = z.object({
|
|
79
80
|
space: SpaceSchema,
|
|
81
|
+
access: z
|
|
82
|
+
.object({
|
|
83
|
+
generation: z.number().int().nonnegative(),
|
|
84
|
+
activeGrantCount: z.number().int().nonnegative(),
|
|
85
|
+
public: z.boolean(),
|
|
86
|
+
})
|
|
87
|
+
.strict(),
|
|
80
88
|
hostnames: z.array(SuperadminSpaceHostnameSchema),
|
|
81
89
|
versions: z.array(SuperadminSpaceVersionSchema),
|
|
82
90
|
});
|
|
91
|
+
// Operator view links. Ops Slack links superadmin instead of a customer's own
|
|
92
|
+
// private URL, so this is the hop that opens the actual page from an alert.
|
|
93
|
+
export const superadminSpaceViewLinkWriteSchema = z
|
|
94
|
+
.object({ path: accessScopePathSchema.optional() })
|
|
95
|
+
.strict();
|
|
96
|
+
// Stateless: the URL is a signed token, so there is no row to name, list, or
|
|
97
|
+
// revoke individually — it simply expires.
|
|
98
|
+
export const SuperadminSpaceViewLinkSchema = z
|
|
99
|
+
.object({
|
|
100
|
+
landingPath: z.string(),
|
|
101
|
+
expiresAt: z.string().datetime(),
|
|
102
|
+
url: z.string().url(),
|
|
103
|
+
})
|
|
104
|
+
.strict();
|
|
83
105
|
export const SuperadminAnonymousSpaceSchema = z.object({
|
|
84
106
|
id: z.string(),
|
|
85
107
|
tenantId: z.string(),
|
|
@@ -22,11 +22,11 @@ export const SuperadminProviderClientSchema = z.object({
|
|
|
22
22
|
.string()
|
|
23
23
|
.nullable()
|
|
24
24
|
.describe("Default PHP version for sites provisioned under this client."),
|
|
25
|
-
status: providerClientStatus.describe("Whether this client identity
|
|
25
|
+
status: providerClientStatus.describe("Whether this client identity can provision sites."),
|
|
26
26
|
tokenHint: z
|
|
27
27
|
.string()
|
|
28
28
|
.nullable()
|
|
29
|
-
.describe("Masked tail of the stored API
|
|
29
|
+
.describe("Masked tail of the stored API key (never the full value)."),
|
|
30
30
|
createdAt: z.string().datetime(),
|
|
31
31
|
updatedAt: z.string().datetime(),
|
|
32
32
|
});
|
|
@@ -78,11 +78,11 @@ export const SuperadminTenantSchema = z.object({
|
|
|
78
78
|
.string()
|
|
79
79
|
.datetime()
|
|
80
80
|
.nullable()
|
|
81
|
-
.describe("Billing grace deadline; present only
|
|
81
|
+
.describe("Billing grace deadline; present only when status is past_due."),
|
|
82
82
|
defaultRegion: z
|
|
83
83
|
.string()
|
|
84
84
|
.nullable()
|
|
85
|
-
.describe('Default placement region for new sites; null
|
|
85
|
+
.describe('Default placement region for new sites; null or "auto" lets placement decide.'),
|
|
86
86
|
metadata: z.record(z.string(), z.string()).nullable().describe("Operator-attached metadata."),
|
|
87
87
|
providerClient: SuperadminProviderClientSchema.nullable().describe("ProviderClient owned by this tenant; null when the tenant provisions under the first-party client."),
|
|
88
88
|
teamCount: z.number().int().nonnegative(),
|
|
@@ -277,6 +277,10 @@ export declare const superadminAddonCreateSchema: z.ZodObject<{
|
|
|
277
277
|
note: z.ZodOptional<z.ZodString>;
|
|
278
278
|
expiresAt: z.ZodOptional<z.ZodString>;
|
|
279
279
|
}, z.core.$strip>;
|
|
280
|
+
export declare const superadminStorageQuotaSetSchema: z.ZodObject<{
|
|
281
|
+
storageBytes: z.ZodNumber;
|
|
282
|
+
note: z.ZodOptional<z.ZodString>;
|
|
283
|
+
}, z.core.$strip>;
|
|
280
284
|
export declare const SuperadminAddonSchema: z.ZodObject<{
|
|
281
285
|
id: z.ZodString;
|
|
282
286
|
teamId: z.ZodString;
|
|
@@ -136,10 +136,23 @@ export const SuperadminPlanGrantListSchema = makeOffsetListSchema("grants", Supe
|
|
|
136
136
|
export const superadminAddonCreateSchema = z.object({
|
|
137
137
|
team: z.string().trim().min(1).describe("Team id or slug."),
|
|
138
138
|
limit: z.enum(["teamMembers", "subTeams", "storageBytes", "externalDomainGroups"]),
|
|
139
|
-
amount: z
|
|
139
|
+
amount: z
|
|
140
|
+
.number()
|
|
141
|
+
.int()
|
|
142
|
+
.positive()
|
|
143
|
+
.describe("Additive amount (seat count, bytes, and similar units)."),
|
|
140
144
|
note: z.string().trim().max(500).optional(),
|
|
141
145
|
expiresAt: z.string().datetime().optional(),
|
|
142
146
|
});
|
|
147
|
+
export const superadminStorageQuotaSetSchema = z.object({
|
|
148
|
+
storageBytes: z
|
|
149
|
+
.number()
|
|
150
|
+
.int()
|
|
151
|
+
.positive()
|
|
152
|
+
.max(Number.MAX_SAFE_INTEGER)
|
|
153
|
+
.describe("Desired total storage quota in bytes."),
|
|
154
|
+
note: z.string().trim().max(500).optional(),
|
|
155
|
+
});
|
|
143
156
|
export const SuperadminAddonSchema = z.object({
|
|
144
157
|
id: z.string(),
|
|
145
158
|
teamId: z.string(),
|
package/dist/contracts/tags.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const tagVersionStatusSchema: z.ZodEnum<{
|
|
3
3
|
approved: "approved";
|
|
4
|
+
published: "published";
|
|
4
5
|
publishing: "publishing";
|
|
5
6
|
draft: "draft";
|
|
6
7
|
in_review: "in_review";
|
|
7
|
-
published: "published";
|
|
8
8
|
abandoned: "abandoned";
|
|
9
9
|
}>;
|
|
10
10
|
export declare const tagEnvironmentSchema: z.ZodEnum<{
|
|
@@ -168,10 +168,10 @@ export declare const tagVersionSchema: z.ZodObject<{
|
|
|
168
168
|
baseVersionId: z.ZodNullable<z.ZodString>;
|
|
169
169
|
status: z.ZodEnum<{
|
|
170
170
|
approved: "approved";
|
|
171
|
+
published: "published";
|
|
171
172
|
publishing: "publishing";
|
|
172
173
|
draft: "draft";
|
|
173
174
|
in_review: "in_review";
|
|
174
|
-
published: "published";
|
|
175
175
|
abandoned: "abandoned";
|
|
176
176
|
}>;
|
|
177
177
|
title: z.ZodString;
|
|
@@ -223,10 +223,10 @@ export declare const tagVersionListQuerySchema: z.ZodObject<{
|
|
|
223
223
|
cursor: z.ZodOptional<z.ZodString>;
|
|
224
224
|
status: z.ZodOptional<z.ZodEnum<{
|
|
225
225
|
approved: "approved";
|
|
226
|
+
published: "published";
|
|
226
227
|
publishing: "publishing";
|
|
227
228
|
draft: "draft";
|
|
228
229
|
in_review: "in_review";
|
|
229
|
-
published: "published";
|
|
230
230
|
abandoned: "abandoned";
|
|
231
231
|
}>>;
|
|
232
232
|
}, z.core.$strip>;
|
|
@@ -238,10 +238,10 @@ export declare const tagVersionListResponseSchema: z.ZodObject<{
|
|
|
238
238
|
baseVersionId: z.ZodNullable<z.ZodString>;
|
|
239
239
|
status: z.ZodEnum<{
|
|
240
240
|
approved: "approved";
|
|
241
|
+
published: "published";
|
|
241
242
|
publishing: "publishing";
|
|
242
243
|
draft: "draft";
|
|
243
244
|
in_review: "in_review";
|
|
244
|
-
published: "published";
|
|
245
245
|
abandoned: "abandoned";
|
|
246
246
|
}>;
|
|
247
247
|
title: z.ZodString;
|
|
@@ -301,10 +301,10 @@ export declare const tagVersionResponseSchema: z.ZodObject<{
|
|
|
301
301
|
baseVersionId: z.ZodNullable<z.ZodString>;
|
|
302
302
|
status: z.ZodEnum<{
|
|
303
303
|
approved: "approved";
|
|
304
|
+
published: "published";
|
|
304
305
|
publishing: "publishing";
|
|
305
306
|
draft: "draft";
|
|
306
307
|
in_review: "in_review";
|
|
307
|
-
published: "published";
|
|
308
308
|
abandoned: "abandoned";
|
|
309
309
|
}>;
|
|
310
310
|
title: z.ZodString;
|
|
@@ -617,10 +617,10 @@ export declare const tagApplyResponseSchema: z.ZodObject<{
|
|
|
617
617
|
baseVersionId: z.ZodNullable<z.ZodString>;
|
|
618
618
|
status: z.ZodEnum<{
|
|
619
619
|
approved: "approved";
|
|
620
|
+
published: "published";
|
|
620
621
|
publishing: "publishing";
|
|
621
622
|
draft: "draft";
|
|
622
623
|
in_review: "in_review";
|
|
623
|
-
published: "published";
|
|
624
624
|
abandoned: "abandoned";
|
|
625
625
|
}>;
|
|
626
626
|
title: 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: [],
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const TEAM_ROLE_VALUES: readonly ["owner", "admin", "member"];
|
|
3
3
|
export declare const teamMemberRole: z.ZodEnum<{
|
|
4
|
-
admin: "admin";
|
|
5
4
|
owner: "owner";
|
|
5
|
+
admin: "admin";
|
|
6
6
|
member: "member";
|
|
7
7
|
}>;
|
|
8
8
|
export declare const teamInvitationCreateSchema: z.ZodObject<{
|
|
9
9
|
email: z.ZodString;
|
|
10
10
|
role: z.ZodDefault<z.ZodEnum<{
|
|
11
|
-
admin: "admin";
|
|
12
11
|
owner: "owner";
|
|
12
|
+
admin: "admin";
|
|
13
13
|
member: "member";
|
|
14
14
|
}>>;
|
|
15
15
|
}, z.core.$strip>;
|
|
@@ -34,8 +34,8 @@ export declare const TeamInvitationSchema: z.ZodObject<{
|
|
|
34
34
|
teamId: z.ZodString;
|
|
35
35
|
email: z.ZodString;
|
|
36
36
|
role: z.ZodEnum<{
|
|
37
|
-
admin: "admin";
|
|
38
37
|
owner: "owner";
|
|
38
|
+
admin: "admin";
|
|
39
39
|
member: "member";
|
|
40
40
|
}>;
|
|
41
41
|
status: z.ZodString;
|
|
@@ -55,8 +55,8 @@ export declare const TeamSummarySchema: z.ZodObject<{
|
|
|
55
55
|
name: z.ZodString;
|
|
56
56
|
slug: z.ZodString;
|
|
57
57
|
role: z.ZodEnum<{
|
|
58
|
-
admin: "admin";
|
|
59
58
|
owner: "owner";
|
|
59
|
+
admin: "admin";
|
|
60
60
|
member: "member";
|
|
61
61
|
}>;
|
|
62
62
|
plan: z.ZodEnum<{
|
|
@@ -76,8 +76,8 @@ export declare const TeamDetailSchema: z.ZodObject<{
|
|
|
76
76
|
name: z.ZodString;
|
|
77
77
|
slug: z.ZodString;
|
|
78
78
|
role: z.ZodEnum<{
|
|
79
|
-
admin: "admin";
|
|
80
79
|
owner: "owner";
|
|
80
|
+
admin: "admin";
|
|
81
81
|
member: "member";
|
|
82
82
|
}>;
|
|
83
83
|
plan: z.ZodEnum<{
|
|
@@ -101,8 +101,8 @@ export declare const teamListResponseSchema: z.ZodObject<{
|
|
|
101
101
|
name: z.ZodString;
|
|
102
102
|
slug: z.ZodString;
|
|
103
103
|
role: z.ZodEnum<{
|
|
104
|
-
admin: "admin";
|
|
105
104
|
owner: "owner";
|
|
105
|
+
admin: "admin";
|
|
106
106
|
member: "member";
|
|
107
107
|
}>;
|
|
108
108
|
plan: z.ZodEnum<{
|
|
@@ -127,8 +127,8 @@ export declare const teamMemberListResponseSchema: z.ZodObject<{
|
|
|
127
127
|
teamId: z.ZodString;
|
|
128
128
|
userId: z.ZodString;
|
|
129
129
|
role: z.ZodEnum<{
|
|
130
|
-
admin: "admin";
|
|
131
130
|
owner: "owner";
|
|
131
|
+
admin: "admin";
|
|
132
132
|
member: "member";
|
|
133
133
|
}>;
|
|
134
134
|
createdAt: z.ZodString;
|
|
@@ -160,8 +160,8 @@ export declare const teamInvitationAcceptResponseSchema: z.ZodObject<{
|
|
|
160
160
|
teamSlug: z.ZodString;
|
|
161
161
|
userId: z.ZodString;
|
|
162
162
|
role: z.ZodEnum<{
|
|
163
|
-
admin: "admin";
|
|
164
163
|
owner: "owner";
|
|
164
|
+
admin: "admin";
|
|
165
165
|
member: "member";
|
|
166
166
|
}>;
|
|
167
167
|
}, z.core.$strip>;
|
|
@@ -172,8 +172,8 @@ export declare const teamInvitationListResponseSchema: z.ZodObject<{
|
|
|
172
172
|
teamId: z.ZodString;
|
|
173
173
|
email: z.ZodString;
|
|
174
174
|
role: z.ZodEnum<{
|
|
175
|
-
admin: "admin";
|
|
176
175
|
owner: "owner";
|
|
176
|
+
admin: "admin";
|
|
177
177
|
member: "member";
|
|
178
178
|
}>;
|
|
179
179
|
status: z.ZodString;
|
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.");
|
|
@@ -44,7 +44,6 @@ export declare const spaceTransferSchema: z.ZodObject<{
|
|
|
44
44
|
tenantId: z.ZodString;
|
|
45
45
|
}, z.core.$strip>;
|
|
46
46
|
status: z.ZodEnum<{
|
|
47
|
-
moving: "moving";
|
|
48
47
|
pending_confirmation: "pending_confirmation";
|
|
49
48
|
confirming_domains: "confirming_domains";
|
|
50
49
|
completed: "completed";
|
|
@@ -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
|
});
|