@spacefast/common 0.0.3 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contracts/access.d.ts +4 -4
- package/dist/contracts/activity.d.ts +4 -4
- package/dist/contracts/annotations.d.ts +1 -1
- package/dist/contracts/api-keys.d.ts +6 -6
- package/dist/contracts/archives.d.ts +14 -14
- package/dist/contracts/billing.d.ts +21 -21
- package/dist/contracts/builds.d.ts +8 -8
- package/dist/contracts/channels.d.ts +2 -2
- package/dist/contracts/common.d.ts +5 -5
- package/dist/contracts/continuation.d.ts +66 -0
- package/dist/contracts/continuation.js +91 -0
- package/dist/contracts/deployments.d.ts +18 -18
- package/dist/contracts/device-auth.d.ts +6 -6
- package/dist/contracts/domains.d.ts +247 -247
- package/dist/contracts/enums.d.ts +2 -2
- package/dist/contracts/error-code-meta.d.ts +12 -0
- package/dist/contracts/error-code-meta.js +3 -0
- package/dist/contracts/error-codes.d.ts +1 -1
- package/dist/contracts/error-codes.js +3 -0
- package/dist/contracts/events.d.ts +12 -12
- package/dist/contracts/features.d.ts +17 -17
- package/dist/contracts/git.d.ts +3 -3
- package/dist/contracts/internal.d.ts +3 -3
- package/dist/contracts/mcp.d.ts +34 -34
- package/dist/contracts/me.d.ts +8 -8
- package/dist/contracts/operations.d.ts +2 -2
- package/dist/contracts/plan-policy.d.ts +4 -4
- package/dist/contracts/platform.d.ts +3 -3
- package/dist/contracts/repository-connections.d.ts +5 -5
- package/dist/contracts/resources.d.ts +15 -15
- package/dist/contracts/runtime-api.d.ts +4 -4
- package/dist/contracts/sites.d.ts +26 -26
- package/dist/contracts/spaces.d.ts +179 -89
- package/dist/contracts/spaces.js +57 -3
- package/dist/contracts/superadmin-emails.d.ts +3 -3
- package/dist/contracts/superadmin-queues.d.ts +58 -58
- package/dist/contracts/superadmin-spaces.d.ts +275 -9
- package/dist/contracts/superadmin-spaces.js +24 -0
- package/dist/contracts/superadmin-tenants.d.ts +8 -8
- package/dist/contracts/superadmin.d.ts +12 -12
- package/dist/contracts/tags.d.ts +38 -38
- package/dist/contracts/teams.d.ts +26 -8
- package/dist/contracts/teams.js +20 -0
- package/dist/contracts/transfers.d.ts +9 -9
- package/dist/contracts/variables.d.ts +14 -14
- package/dist/contracts/webhooks.d.ts +4 -4
- package/dist/contracts/zero.d.ts +8 -8
- package/dist/docs/agent-prose.js +8 -4
- package/dist/docs/agent-setup.js +3 -2
- package/dist/docs/error-docs.js +12 -0
- package/dist/utils/query-keys.d.ts +2 -2
- package/dist/utils/static-runtime-policy.d.ts +21 -0
- package/dist/utils/static-runtime-policy.js +119 -3
- package/package.json +1 -1
|
@@ -46,8 +46,8 @@ export declare const SuperadminSpaceVersionZeroSchema: z.ZodObject<{
|
|
|
46
46
|
centralErrorLogCount: z.ZodNumber;
|
|
47
47
|
latestLogAt: z.ZodNullable<z.ZodString>;
|
|
48
48
|
latestLogLevel: z.ZodNullable<z.ZodEnum<{
|
|
49
|
-
info: "info";
|
|
50
49
|
error: "error";
|
|
50
|
+
info: "info";
|
|
51
51
|
debug: "debug";
|
|
52
52
|
warn: "warn";
|
|
53
53
|
}>>;
|
|
@@ -100,8 +100,8 @@ export declare const SuperadminSpaceVersionSchema: z.ZodObject<{
|
|
|
100
100
|
centralErrorLogCount: z.ZodNumber;
|
|
101
101
|
latestLogAt: z.ZodNullable<z.ZodString>;
|
|
102
102
|
latestLogLevel: z.ZodNullable<z.ZodEnum<{
|
|
103
|
-
info: "info";
|
|
104
103
|
error: "error";
|
|
104
|
+
info: "info";
|
|
105
105
|
debug: "debug";
|
|
106
106
|
warn: "warn";
|
|
107
107
|
}>>;
|
|
@@ -124,8 +124,8 @@ export declare const SuperadminSpaceDetailSchema: z.ZodObject<{
|
|
|
124
124
|
principal: z.ZodNullable<z.ZodObject<{
|
|
125
125
|
tenantId: z.ZodString;
|
|
126
126
|
principalType: z.ZodEnum<{
|
|
127
|
-
external: "external";
|
|
128
127
|
team: "team";
|
|
128
|
+
external: "external";
|
|
129
129
|
}>;
|
|
130
130
|
principalId: z.ZodString;
|
|
131
131
|
}, z.core.$strip>>;
|
|
@@ -133,20 +133,20 @@ export declare const SuperadminSpaceDetailSchema: z.ZodObject<{
|
|
|
133
133
|
slug: z.ZodString;
|
|
134
134
|
title: z.ZodString;
|
|
135
135
|
status: z.ZodEnum<{
|
|
136
|
-
failed: "failed";
|
|
137
|
-
active: "active";
|
|
138
136
|
provisioning: "provisioning";
|
|
137
|
+
active: "active";
|
|
139
138
|
updating: "updating";
|
|
140
139
|
moving: "moving";
|
|
141
140
|
deleting: "deleting";
|
|
141
|
+
failed: "failed";
|
|
142
142
|
}>;
|
|
143
143
|
disabled: z.ZodNullable<z.ZodObject<{
|
|
144
144
|
at: z.ZodNullable<z.ZodString>;
|
|
145
145
|
reasonCode: z.ZodEnum<{
|
|
146
|
-
abuse_takedown: "abuse_takedown";
|
|
147
146
|
anonymous_expired: "anonymous_expired";
|
|
148
|
-
|
|
147
|
+
abuse_takedown: "abuse_takedown";
|
|
149
148
|
tenant_suspended: "tenant_suspended";
|
|
149
|
+
site_suspended: "site_suspended";
|
|
150
150
|
}>;
|
|
151
151
|
}, z.core.$strip>>;
|
|
152
152
|
claimState: z.ZodNullable<z.ZodObject<{
|
|
@@ -320,9 +320,9 @@ export declare const SuperadminSpaceDetailSchema: z.ZodObject<{
|
|
|
320
320
|
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
321
321
|
code: z.ZodString;
|
|
322
322
|
severity: z.ZodEnum<{
|
|
323
|
-
info: "info";
|
|
324
323
|
warning: "warning";
|
|
325
324
|
error: "error";
|
|
325
|
+
info: "info";
|
|
326
326
|
}>;
|
|
327
327
|
message: z.ZodString;
|
|
328
328
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -408,8 +408,8 @@ export declare const SuperadminSpaceDetailSchema: z.ZodObject<{
|
|
|
408
408
|
centralErrorLogCount: z.ZodNumber;
|
|
409
409
|
latestLogAt: z.ZodNullable<z.ZodString>;
|
|
410
410
|
latestLogLevel: z.ZodNullable<z.ZodEnum<{
|
|
411
|
-
info: "info";
|
|
412
411
|
error: "error";
|
|
412
|
+
info: "info";
|
|
413
413
|
debug: "debug";
|
|
414
414
|
warn: "warn";
|
|
415
415
|
}>>;
|
|
@@ -423,7 +423,273 @@ export declare const SuperadminSpaceDetailSchema: z.ZodObject<{
|
|
|
423
423
|
updatedAt: z.ZodString;
|
|
424
424
|
}, z.core.$strip>>;
|
|
425
425
|
}, z.core.$strip>;
|
|
426
|
+
export declare const SuperadminAnonymousSpaceSchema: z.ZodObject<{
|
|
427
|
+
id: z.ZodString;
|
|
428
|
+
tenantId: z.ZodString;
|
|
429
|
+
slug: z.ZodString;
|
|
430
|
+
title: z.ZodString;
|
|
431
|
+
status: z.ZodString;
|
|
432
|
+
liveUrl: z.ZodNullable<z.ZodString>;
|
|
433
|
+
defaultHostname: z.ZodNullable<z.ZodString>;
|
|
434
|
+
claimExpiresAt: z.ZodNullable<z.ZodString>;
|
|
435
|
+
createdAt: z.ZodNullable<z.ZodString>;
|
|
436
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
437
|
+
latestVersionId: z.ZodNullable<z.ZodString>;
|
|
438
|
+
latestVersionStatus: z.ZodNullable<z.ZodString>;
|
|
439
|
+
disabledReason: z.ZodNullable<z.ZodString>;
|
|
440
|
+
}, z.core.$strip>;
|
|
441
|
+
export declare const SuperadminAnonymousSpaceListSchema: z.ZodObject<{
|
|
442
|
+
spaces: z.ZodArray<z.ZodObject<{
|
|
443
|
+
id: z.ZodString;
|
|
444
|
+
tenantId: z.ZodString;
|
|
445
|
+
slug: z.ZodString;
|
|
446
|
+
title: z.ZodString;
|
|
447
|
+
status: z.ZodString;
|
|
448
|
+
liveUrl: z.ZodNullable<z.ZodString>;
|
|
449
|
+
defaultHostname: z.ZodNullable<z.ZodString>;
|
|
450
|
+
claimExpiresAt: z.ZodNullable<z.ZodString>;
|
|
451
|
+
createdAt: z.ZodNullable<z.ZodString>;
|
|
452
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
453
|
+
latestVersionId: z.ZodNullable<z.ZodString>;
|
|
454
|
+
latestVersionStatus: z.ZodNullable<z.ZodString>;
|
|
455
|
+
disabledReason: z.ZodNullable<z.ZodString>;
|
|
456
|
+
}, z.core.$strip>>;
|
|
457
|
+
}, z.core.$strip>;
|
|
458
|
+
export declare const superadminAnonymousSpaceAssignSchema: z.ZodObject<{
|
|
459
|
+
teamId: z.ZodString;
|
|
460
|
+
}, z.core.$strip>;
|
|
461
|
+
export declare const SuperadminAnonymousSpaceAssignResponseSchema: z.ZodObject<{
|
|
462
|
+
space: z.ZodObject<{
|
|
463
|
+
id: z.ZodString;
|
|
464
|
+
tenantId: z.ZodString;
|
|
465
|
+
siteId: z.ZodNullable<z.ZodString>;
|
|
466
|
+
teamId: z.ZodNullable<z.ZodString>;
|
|
467
|
+
teamSlug: z.ZodNullable<z.ZodString>;
|
|
468
|
+
principal: z.ZodNullable<z.ZodObject<{
|
|
469
|
+
tenantId: z.ZodString;
|
|
470
|
+
principalType: z.ZodEnum<{
|
|
471
|
+
team: "team";
|
|
472
|
+
external: "external";
|
|
473
|
+
}>;
|
|
474
|
+
principalId: z.ZodString;
|
|
475
|
+
}, z.core.$strip>>;
|
|
476
|
+
anonymous: z.ZodBoolean;
|
|
477
|
+
slug: z.ZodString;
|
|
478
|
+
title: z.ZodString;
|
|
479
|
+
status: z.ZodEnum<{
|
|
480
|
+
provisioning: "provisioning";
|
|
481
|
+
active: "active";
|
|
482
|
+
updating: "updating";
|
|
483
|
+
moving: "moving";
|
|
484
|
+
deleting: "deleting";
|
|
485
|
+
failed: "failed";
|
|
486
|
+
}>;
|
|
487
|
+
disabled: z.ZodNullable<z.ZodObject<{
|
|
488
|
+
at: z.ZodNullable<z.ZodString>;
|
|
489
|
+
reasonCode: z.ZodEnum<{
|
|
490
|
+
anonymous_expired: "anonymous_expired";
|
|
491
|
+
abuse_takedown: "abuse_takedown";
|
|
492
|
+
tenant_suspended: "tenant_suspended";
|
|
493
|
+
site_suspended: "site_suspended";
|
|
494
|
+
}>;
|
|
495
|
+
}, z.core.$strip>>;
|
|
496
|
+
claimState: z.ZodNullable<z.ZodObject<{
|
|
497
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
498
|
+
claimedAt: z.ZodNullable<z.ZodString>;
|
|
499
|
+
purgeAfter: z.ZodNullable<z.ZodString>;
|
|
500
|
+
}, z.core.$strip>>;
|
|
501
|
+
expiryExtension: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
502
|
+
extendedTo: z.ZodString;
|
|
503
|
+
}, z.core.$strip>>>;
|
|
504
|
+
defaultHostname: z.ZodString;
|
|
505
|
+
publicName: z.ZodString;
|
|
506
|
+
liveUrl: z.ZodString;
|
|
507
|
+
dataLocation: z.ZodString;
|
|
508
|
+
channels: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
509
|
+
versionId: z.ZodOptional<z.ZodString>;
|
|
510
|
+
weighted: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
511
|
+
versionId: z.ZodString;
|
|
512
|
+
percentage: z.ZodNumber;
|
|
513
|
+
}, z.core.$strip>>>;
|
|
514
|
+
updatedAt: z.ZodString;
|
|
515
|
+
}, z.core.$strip>>;
|
|
516
|
+
config: z.ZodNullable<z.ZodObject<{
|
|
517
|
+
index: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<false>]>>;
|
|
518
|
+
fallback: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
519
|
+
path: z.ZodString;
|
|
520
|
+
status: z.ZodNumber;
|
|
521
|
+
}, z.core.$strip>]>>;
|
|
522
|
+
listing: z.ZodOptional<z.ZodBoolean>;
|
|
523
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
524
|
+
title: z.ZodOptional<z.ZodString>;
|
|
525
|
+
description: z.ZodOptional<z.ZodString>;
|
|
526
|
+
image: z.ZodOptional<z.ZodString>;
|
|
527
|
+
}, z.core.$strip>>;
|
|
528
|
+
superpowers: z.ZodOptional<z.ZodObject<{
|
|
529
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
530
|
+
disable_all_injection: z.ZodOptional<z.ZodBoolean>;
|
|
531
|
+
googleAnalytics: z.ZodOptional<z.ZodObject<{
|
|
532
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
533
|
+
measurementId: z.ZodOptional<z.ZodString>;
|
|
534
|
+
}, z.core.$strip>>;
|
|
535
|
+
googleTagManager: z.ZodOptional<z.ZodObject<{
|
|
536
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
537
|
+
containerId: z.ZodOptional<z.ZodString>;
|
|
538
|
+
}, z.core.$strip>>;
|
|
539
|
+
javascriptTags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
540
|
+
id: z.ZodOptional<z.ZodString>;
|
|
541
|
+
name: z.ZodOptional<z.ZodString>;
|
|
542
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
543
|
+
code: z.ZodString;
|
|
544
|
+
}, z.core.$strip>>>;
|
|
545
|
+
tags: z.ZodOptional<z.ZodObject<{
|
|
546
|
+
inheritance: z.ZodOptional<z.ZodObject<{
|
|
547
|
+
inherited: z.ZodOptional<z.ZodBoolean>;
|
|
548
|
+
overrides: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
549
|
+
tagId: z.ZodString;
|
|
550
|
+
disabled: z.ZodDefault<z.ZodBoolean>;
|
|
551
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
552
|
+
}, z.core.$strip>>>;
|
|
553
|
+
}, z.core.$strip>>;
|
|
554
|
+
}, z.core.$strip>>;
|
|
555
|
+
}, z.core.$strip>>;
|
|
556
|
+
templates: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
557
|
+
theme: z.ZodOptional<z.ZodObject<{
|
|
558
|
+
color: z.ZodOptional<z.ZodObject<{
|
|
559
|
+
palette: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
560
|
+
slug: z.ZodString;
|
|
561
|
+
color: z.ZodString;
|
|
562
|
+
name: z.ZodOptional<z.ZodString>;
|
|
563
|
+
}, z.core.$strip>>>;
|
|
564
|
+
}, z.core.$strip>>;
|
|
565
|
+
typography: z.ZodOptional<z.ZodObject<{
|
|
566
|
+
fontSizes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
567
|
+
slug: z.ZodString;
|
|
568
|
+
size: z.ZodString;
|
|
569
|
+
name: z.ZodOptional<z.ZodString>;
|
|
570
|
+
}, z.core.$strip>>>;
|
|
571
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
572
|
+
}, z.core.$strip>>;
|
|
573
|
+
spacing: z.ZodOptional<z.ZodObject<{
|
|
574
|
+
spacingScale: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
575
|
+
slug: z.ZodString;
|
|
576
|
+
size: z.ZodString;
|
|
577
|
+
}, z.core.$strip>>>;
|
|
578
|
+
}, z.core.$strip>>;
|
|
579
|
+
}, z.core.$strip>>;
|
|
580
|
+
build: z.ZodOptional<z.ZodObject<{
|
|
581
|
+
rootDirectory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
582
|
+
installDirectory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
583
|
+
installCommand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
584
|
+
buildCommand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
585
|
+
outputDirectory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
586
|
+
ignoredBuildCommand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
587
|
+
frameworkPreset: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
588
|
+
platformPreset: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
589
|
+
allowUnsupportedPlatformFeatures: z.ZodOptional<z.ZodBoolean>;
|
|
590
|
+
timeoutSeconds: z.ZodOptional<z.ZodNumber>;
|
|
591
|
+
}, z.core.$strict>>;
|
|
592
|
+
experimental_gutenberg: z.ZodOptional<z.ZodBoolean>;
|
|
593
|
+
inject: z.ZodOptional<z.ZodObject<{
|
|
594
|
+
head: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
595
|
+
bodyStart: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
596
|
+
bodyEnd: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
597
|
+
noscript: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
598
|
+
}, z.core.$strip>>;
|
|
599
|
+
}, z.core.$strip>>;
|
|
600
|
+
noindex: z.ZodBoolean;
|
|
601
|
+
policy: z.ZodNullable<z.ZodObject<{
|
|
602
|
+
rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
603
|
+
match: z.ZodDefault<z.ZodObject<{
|
|
604
|
+
host: z.ZodOptional<z.ZodString>;
|
|
605
|
+
pathPattern: z.ZodOptional<z.ZodString>;
|
|
606
|
+
channel: z.ZodOptional<z.ZodString>;
|
|
607
|
+
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
608
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
609
|
+
country: z.ZodOptional<z.ZodString>;
|
|
610
|
+
header: z.ZodOptional<z.ZodObject<{
|
|
611
|
+
name: z.ZodString;
|
|
612
|
+
value: z.ZodString;
|
|
613
|
+
}, z.core.$strip>>;
|
|
614
|
+
}, z.core.$strip>>;
|
|
615
|
+
effect: z.ZodEnum<{
|
|
616
|
+
allow: "allow";
|
|
617
|
+
deny: "deny";
|
|
618
|
+
challenge: "challenge";
|
|
619
|
+
}>;
|
|
620
|
+
auth: z.ZodOptional<z.ZodObject<{
|
|
621
|
+
password: z.ZodOptional<z.ZodObject<{
|
|
622
|
+
ref: z.ZodString;
|
|
623
|
+
transport: z.ZodEnum<{
|
|
624
|
+
basic: "basic";
|
|
625
|
+
form: "form";
|
|
626
|
+
}>;
|
|
627
|
+
username: z.ZodOptional<z.ZodString>;
|
|
628
|
+
}, z.core.$strip>>;
|
|
629
|
+
token: z.ZodOptional<z.ZodObject<{
|
|
630
|
+
requiredGrants: z.ZodArray<z.ZodString>;
|
|
631
|
+
issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
632
|
+
kid: z.ZodString;
|
|
633
|
+
alg: z.ZodLiteral<"EdDSA">;
|
|
634
|
+
publicKey: z.ZodString;
|
|
635
|
+
grantNamespaces: z.ZodArray<z.ZodString>;
|
|
636
|
+
}, z.core.$strip>>>;
|
|
637
|
+
loginUrl: z.ZodOptional<z.ZodString>;
|
|
638
|
+
cookieName: z.ZodOptional<z.ZodString>;
|
|
639
|
+
}, z.core.$strip>>;
|
|
640
|
+
}, z.core.$strip>>;
|
|
641
|
+
reasonCode: z.ZodOptional<z.ZodString>;
|
|
642
|
+
message: z.ZodOptional<z.ZodString>;
|
|
643
|
+
}, z.core.$strip>>>;
|
|
644
|
+
}, z.core.$strip>>;
|
|
645
|
+
operation: z.ZodNullable<z.ZodObject<{
|
|
646
|
+
id: z.ZodString;
|
|
647
|
+
kind: z.ZodString;
|
|
648
|
+
status: z.ZodEnum<{
|
|
649
|
+
failed: "failed";
|
|
650
|
+
queued: "queued";
|
|
651
|
+
running: "running";
|
|
652
|
+
succeeded: "succeeded";
|
|
653
|
+
canceled: "canceled";
|
|
654
|
+
}>;
|
|
655
|
+
resources: z.ZodArray<z.ZodObject<{
|
|
656
|
+
type: z.ZodString;
|
|
657
|
+
id: z.ZodString;
|
|
658
|
+
}, z.core.$strip>>;
|
|
659
|
+
progress: z.ZodOptional<z.ZodObject<{
|
|
660
|
+
total: z.ZodNumber;
|
|
661
|
+
completed: z.ZodNumber;
|
|
662
|
+
failed: z.ZodNumber;
|
|
663
|
+
}, z.core.$strip>>;
|
|
664
|
+
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
665
|
+
code: z.ZodString;
|
|
666
|
+
severity: z.ZodEnum<{
|
|
667
|
+
warning: "warning";
|
|
668
|
+
error: "error";
|
|
669
|
+
info: "info";
|
|
670
|
+
}>;
|
|
671
|
+
message: z.ZodString;
|
|
672
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
673
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
674
|
+
wpcloud: "wpcloud";
|
|
675
|
+
dns: "dns";
|
|
676
|
+
registrar: "registrar";
|
|
677
|
+
runtime: "runtime";
|
|
678
|
+
}>>>;
|
|
679
|
+
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
680
|
+
fix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
681
|
+
retryable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
682
|
+
}, z.core.$strip>>>;
|
|
683
|
+
createdAt: z.ZodString;
|
|
684
|
+
finishedAt: z.ZodOptional<z.ZodString>;
|
|
685
|
+
}, z.core.$strip>>;
|
|
686
|
+
createdAt: z.ZodString;
|
|
687
|
+
updatedAt: z.ZodString;
|
|
688
|
+
}, z.core.$strip>;
|
|
689
|
+
}, z.core.$strip>;
|
|
426
690
|
export type SuperadminSpaceHostname = z.infer<typeof SuperadminSpaceHostnameSchema>;
|
|
427
691
|
export type SuperadminSpaceVersionZero = z.infer<typeof SuperadminSpaceVersionZeroSchema>;
|
|
428
692
|
export type SuperadminSpaceVersion = z.infer<typeof SuperadminSpaceVersionSchema>;
|
|
429
693
|
export type SuperadminSpaceDetail = z.infer<typeof SuperadminSpaceDetailSchema>;
|
|
694
|
+
export type SuperadminAnonymousSpace = z.infer<typeof SuperadminAnonymousSpaceSchema>;
|
|
695
|
+
export type SuperadminAnonymousSpaceList = z.infer<typeof SuperadminAnonymousSpaceListSchema>;
|
|
@@ -80,3 +80,27 @@ export const SuperadminSpaceDetailSchema = z.object({
|
|
|
80
80
|
hostnames: z.array(SuperadminSpaceHostnameSchema),
|
|
81
81
|
versions: z.array(SuperadminSpaceVersionSchema),
|
|
82
82
|
});
|
|
83
|
+
export const SuperadminAnonymousSpaceSchema = z.object({
|
|
84
|
+
id: z.string(),
|
|
85
|
+
tenantId: z.string(),
|
|
86
|
+
slug: z.string(),
|
|
87
|
+
title: z.string(),
|
|
88
|
+
status: z.string(),
|
|
89
|
+
liveUrl: z.string().nullable(),
|
|
90
|
+
defaultHostname: z.string().nullable(),
|
|
91
|
+
claimExpiresAt: z.string().datetime().nullable(),
|
|
92
|
+
createdAt: z.string().datetime().nullable(),
|
|
93
|
+
updatedAt: z.string().datetime().nullable(),
|
|
94
|
+
latestVersionId: z.string().nullable(),
|
|
95
|
+
latestVersionStatus: z.string().nullable(),
|
|
96
|
+
disabledReason: z.string().nullable(),
|
|
97
|
+
});
|
|
98
|
+
export const SuperadminAnonymousSpaceListSchema = z.object({
|
|
99
|
+
spaces: z.array(SuperadminAnonymousSpaceSchema),
|
|
100
|
+
});
|
|
101
|
+
export const superadminAnonymousSpaceAssignSchema = z.object({
|
|
102
|
+
teamId: z.string().min(1),
|
|
103
|
+
});
|
|
104
|
+
export const SuperadminAnonymousSpaceAssignResponseSchema = z.object({
|
|
105
|
+
space: SpaceSchema,
|
|
106
|
+
});
|
|
@@ -66,16 +66,16 @@ export declare const SuperadminTenantSchema: z.ZodObject<{
|
|
|
66
66
|
id: z.ZodString;
|
|
67
67
|
kind: z.ZodEnum<{
|
|
68
68
|
internal: "internal";
|
|
69
|
-
platform: "platform";
|
|
70
69
|
main: "main";
|
|
70
|
+
platform: "platform";
|
|
71
71
|
partner: "partner";
|
|
72
72
|
}>;
|
|
73
73
|
name: z.ZodString;
|
|
74
74
|
status: z.ZodEnum<{
|
|
75
75
|
active: "active";
|
|
76
|
-
deleted: "deleted";
|
|
77
|
-
suspended: "suspended";
|
|
78
76
|
past_due: "past_due";
|
|
77
|
+
suspended: "suspended";
|
|
78
|
+
deleted: "deleted";
|
|
79
79
|
}>;
|
|
80
80
|
servingGraceUntil: z.ZodNullable<z.ZodString>;
|
|
81
81
|
defaultRegion: z.ZodNullable<z.ZodString>;
|
|
@@ -108,16 +108,16 @@ export declare const SuperadminTenantListSchema: z.ZodObject<{
|
|
|
108
108
|
id: z.ZodString;
|
|
109
109
|
kind: z.ZodEnum<{
|
|
110
110
|
internal: "internal";
|
|
111
|
-
platform: "platform";
|
|
112
111
|
main: "main";
|
|
112
|
+
platform: "platform";
|
|
113
113
|
partner: "partner";
|
|
114
114
|
}>;
|
|
115
115
|
name: z.ZodString;
|
|
116
116
|
status: z.ZodEnum<{
|
|
117
117
|
active: "active";
|
|
118
|
-
deleted: "deleted";
|
|
119
|
-
suspended: "suspended";
|
|
120
118
|
past_due: "past_due";
|
|
119
|
+
suspended: "suspended";
|
|
120
|
+
deleted: "deleted";
|
|
121
121
|
}>;
|
|
122
122
|
servingGraceUntil: z.ZodNullable<z.ZodString>;
|
|
123
123
|
defaultRegion: z.ZodNullable<z.ZodString>;
|
|
@@ -169,9 +169,9 @@ export declare const superadminTenantPatchSchema: z.ZodObject<{
|
|
|
169
169
|
name: z.ZodOptional<z.ZodString>;
|
|
170
170
|
status: z.ZodOptional<z.ZodEnum<{
|
|
171
171
|
active: "active";
|
|
172
|
-
deleted: "deleted";
|
|
173
|
-
suspended: "suspended";
|
|
174
172
|
past_due: "past_due";
|
|
173
|
+
suspended: "suspended";
|
|
174
|
+
deleted: "deleted";
|
|
175
175
|
}>>;
|
|
176
176
|
defaultRegion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
177
177
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
@@ -132,18 +132,18 @@ export declare const superadminUserBanSchema: z.ZodObject<{
|
|
|
132
132
|
export declare const superadminBuildInventoryQuerySchema: z.ZodObject<{
|
|
133
133
|
status: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodEnum<{
|
|
134
134
|
failed: "failed";
|
|
135
|
-
queued: "queued";
|
|
136
|
-
running: "running";
|
|
137
|
-
succeeded: "succeeded";
|
|
138
135
|
canceled: "canceled";
|
|
139
136
|
waiting_for_source: "waiting_for_source";
|
|
140
137
|
uploading_source: "uploading_source";
|
|
138
|
+
queued: "queued";
|
|
139
|
+
running: "running";
|
|
140
|
+
succeeded: "succeeded";
|
|
141
141
|
skipped: "skipped";
|
|
142
142
|
}>]>>;
|
|
143
143
|
driver: z.ZodDefault<z.ZodEnum<{
|
|
144
|
+
local: "local";
|
|
144
145
|
all: "all";
|
|
145
146
|
e2b: "e2b";
|
|
146
|
-
local: "local";
|
|
147
147
|
}>>;
|
|
148
148
|
repository: z.ZodOptional<z.ZodString>;
|
|
149
149
|
}, z.core.$strip>;
|
|
@@ -220,10 +220,10 @@ export declare const SuperadminBuildInventorySchema: z.ZodObject<{
|
|
|
220
220
|
export declare const superadminPlanGrantCreateSchema: z.ZodObject<{
|
|
221
221
|
team: z.ZodString;
|
|
222
222
|
plan: z.ZodEnum<{
|
|
223
|
-
|
|
223
|
+
internal: "internal";
|
|
224
224
|
work: "work";
|
|
225
|
+
personal: "personal";
|
|
225
226
|
enterprise: "enterprise";
|
|
226
|
-
internal: "internal";
|
|
227
227
|
}>;
|
|
228
228
|
note: z.ZodOptional<z.ZodString>;
|
|
229
229
|
expiresAt: z.ZodOptional<z.ZodString>;
|
|
@@ -357,8 +357,8 @@ export declare const SuperadminBillingTransactionSchema: z.ZodObject<{
|
|
|
357
357
|
adjustment: "adjustment";
|
|
358
358
|
}>;
|
|
359
359
|
scope: z.ZodEnum<{
|
|
360
|
-
other: "other";
|
|
361
360
|
domain: "domain";
|
|
361
|
+
other: "other";
|
|
362
362
|
plan: "plan";
|
|
363
363
|
seats: "seats";
|
|
364
364
|
}>;
|
|
@@ -396,8 +396,8 @@ export declare const SuperadminBillingTransactionListSchema: z.ZodObject<{
|
|
|
396
396
|
adjustment: "adjustment";
|
|
397
397
|
}>;
|
|
398
398
|
scope: z.ZodEnum<{
|
|
399
|
-
other: "other";
|
|
400
399
|
domain: "domain";
|
|
400
|
+
other: "other";
|
|
401
401
|
plan: "plan";
|
|
402
402
|
seats: "seats";
|
|
403
403
|
}>;
|
|
@@ -459,8 +459,8 @@ export declare const SuperadminWpCloudSiteSchema: z.ZodObject<{
|
|
|
459
459
|
anonymousPoolId: z.ZodNullable<z.ZodString>;
|
|
460
460
|
anonymousPoolState: z.ZodNullable<z.ZodEnum<{
|
|
461
461
|
active: "active";
|
|
462
|
-
draining: "draining";
|
|
463
462
|
disabled: "disabled";
|
|
463
|
+
draining: "draining";
|
|
464
464
|
}>>;
|
|
465
465
|
anonymousPoolAssignedSpaceCount: z.ZodNullable<z.ZodNumber>;
|
|
466
466
|
assignedSpaceCount: z.ZodNumber;
|
|
@@ -524,8 +524,8 @@ export declare const SuperadminWpCloudSiteListSchema: z.ZodObject<{
|
|
|
524
524
|
anonymousPoolId: z.ZodNullable<z.ZodString>;
|
|
525
525
|
anonymousPoolState: z.ZodNullable<z.ZodEnum<{
|
|
526
526
|
active: "active";
|
|
527
|
-
draining: "draining";
|
|
528
527
|
disabled: "disabled";
|
|
528
|
+
draining: "draining";
|
|
529
529
|
}>>;
|
|
530
530
|
anonymousPoolAssignedSpaceCount: z.ZodNullable<z.ZodNumber>;
|
|
531
531
|
assignedSpaceCount: z.ZodNumber;
|
|
@@ -584,8 +584,8 @@ export declare const SuperadminAnonymousPoolSchema: z.ZodObject<{
|
|
|
584
584
|
geoAffinity: z.ZodNullable<z.ZodString>;
|
|
585
585
|
state: z.ZodEnum<{
|
|
586
586
|
active: "active";
|
|
587
|
-
draining: "draining";
|
|
588
587
|
disabled: "disabled";
|
|
588
|
+
draining: "draining";
|
|
589
589
|
}>;
|
|
590
590
|
assignedSpaceCount: z.ZodNumber;
|
|
591
591
|
createdAt: z.ZodString;
|
|
@@ -615,8 +615,8 @@ export declare const SuperadminAnonymousPoolListSchema: z.ZodObject<{
|
|
|
615
615
|
geoAffinity: z.ZodNullable<z.ZodString>;
|
|
616
616
|
state: z.ZodEnum<{
|
|
617
617
|
active: "active";
|
|
618
|
-
draining: "draining";
|
|
619
618
|
disabled: "disabled";
|
|
619
|
+
draining: "draining";
|
|
620
620
|
}>;
|
|
621
621
|
assignedSpaceCount: z.ZodNumber;
|
|
622
622
|
createdAt: z.ZodString;
|