@spacefast/common 0.0.2 → 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 +16 -4
- 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 +2 -1
package/dist/contracts/tags.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const tagVersionStatusSchema: z.ZodEnum<{
|
|
3
3
|
approved: "approved";
|
|
4
4
|
draft: "draft";
|
|
5
|
-
in_review: "in_review";
|
|
6
5
|
publishing: "publishing";
|
|
6
|
+
in_review: "in_review";
|
|
7
7
|
published: "published";
|
|
8
8
|
abandoned: "abandoned";
|
|
9
9
|
}>;
|
|
@@ -13,10 +13,10 @@ export declare const tagEnvironmentSchema: z.ZodEnum<{
|
|
|
13
13
|
development: "development";
|
|
14
14
|
}>;
|
|
15
15
|
export declare const tagConsentCategorySchema: z.ZodEnum<{
|
|
16
|
-
necessary: "necessary";
|
|
17
|
-
functional: "functional";
|
|
18
16
|
analytics: "analytics";
|
|
19
17
|
marketing: "marketing";
|
|
18
|
+
necessary: "necessary";
|
|
19
|
+
functional: "functional";
|
|
20
20
|
personalization: "personalization";
|
|
21
21
|
}>;
|
|
22
22
|
export type TagConsentCategory = z.infer<typeof tagConsentCategorySchema>;
|
|
@@ -57,7 +57,7 @@ export declare const TAG_CONSENT_CATEGORY_DEFINITIONS: [{
|
|
|
57
57
|
readonly required: false;
|
|
58
58
|
readonly privacySignalDefaultDenied: true;
|
|
59
59
|
}];
|
|
60
|
-
export declare const TAG_CONSENT_CATEGORY_IDS: ("
|
|
60
|
+
export declare const TAG_CONSENT_CATEGORY_IDS: ("analytics" | "marketing" | "necessary" | "functional" | "personalization")[];
|
|
61
61
|
export declare const DEFAULT_TAG_CONSENT_DEFAULTS: Record<TagConsentCategory, boolean>;
|
|
62
62
|
export declare const tagConsentPolicySchema: z.ZodObject<{
|
|
63
63
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
@@ -87,9 +87,9 @@ export declare const tagConsentPolicySchema: z.ZodObject<{
|
|
|
87
87
|
message: z.ZodString;
|
|
88
88
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
89
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
90
|
+
registrar: "registrar";
|
|
90
91
|
wpcloud: "wpcloud";
|
|
91
92
|
dns: "dns";
|
|
92
|
-
registrar: "registrar";
|
|
93
93
|
runtime: "runtime";
|
|
94
94
|
}>>>;
|
|
95
95
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -122,9 +122,9 @@ export declare const tagValidationResultSchema: z.ZodObject<{
|
|
|
122
122
|
message: z.ZodString;
|
|
123
123
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
124
124
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
125
|
+
registrar: "registrar";
|
|
125
126
|
wpcloud: "wpcloud";
|
|
126
127
|
dns: "dns";
|
|
127
|
-
registrar: "registrar";
|
|
128
128
|
runtime: "runtime";
|
|
129
129
|
}>>>;
|
|
130
130
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -143,8 +143,8 @@ export declare const tagVersionSchema: z.ZodObject<{
|
|
|
143
143
|
status: z.ZodEnum<{
|
|
144
144
|
approved: "approved";
|
|
145
145
|
draft: "draft";
|
|
146
|
-
in_review: "in_review";
|
|
147
146
|
publishing: "publishing";
|
|
147
|
+
in_review: "in_review";
|
|
148
148
|
published: "published";
|
|
149
149
|
abandoned: "abandoned";
|
|
150
150
|
}>;
|
|
@@ -171,9 +171,9 @@ export declare const tagVersionSchema: z.ZodObject<{
|
|
|
171
171
|
message: z.ZodString;
|
|
172
172
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
173
173
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
174
|
+
registrar: "registrar";
|
|
174
175
|
wpcloud: "wpcloud";
|
|
175
176
|
dns: "dns";
|
|
176
|
-
registrar: "registrar";
|
|
177
177
|
runtime: "runtime";
|
|
178
178
|
}>>>;
|
|
179
179
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -198,8 +198,8 @@ export declare const tagVersionListQuerySchema: z.ZodObject<{
|
|
|
198
198
|
status: z.ZodOptional<z.ZodEnum<{
|
|
199
199
|
approved: "approved";
|
|
200
200
|
draft: "draft";
|
|
201
|
-
in_review: "in_review";
|
|
202
201
|
publishing: "publishing";
|
|
202
|
+
in_review: "in_review";
|
|
203
203
|
published: "published";
|
|
204
204
|
abandoned: "abandoned";
|
|
205
205
|
}>>;
|
|
@@ -213,8 +213,8 @@ export declare const tagVersionListResponseSchema: z.ZodObject<{
|
|
|
213
213
|
status: z.ZodEnum<{
|
|
214
214
|
approved: "approved";
|
|
215
215
|
draft: "draft";
|
|
216
|
-
in_review: "in_review";
|
|
217
216
|
publishing: "publishing";
|
|
217
|
+
in_review: "in_review";
|
|
218
218
|
published: "published";
|
|
219
219
|
abandoned: "abandoned";
|
|
220
220
|
}>;
|
|
@@ -241,9 +241,9 @@ export declare const tagVersionListResponseSchema: z.ZodObject<{
|
|
|
241
241
|
message: z.ZodString;
|
|
242
242
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
243
243
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
244
|
+
registrar: "registrar";
|
|
244
245
|
wpcloud: "wpcloud";
|
|
245
246
|
dns: "dns";
|
|
246
|
-
registrar: "registrar";
|
|
247
247
|
runtime: "runtime";
|
|
248
248
|
}>>>;
|
|
249
249
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -276,8 +276,8 @@ export declare const tagVersionResponseSchema: z.ZodObject<{
|
|
|
276
276
|
status: z.ZodEnum<{
|
|
277
277
|
approved: "approved";
|
|
278
278
|
draft: "draft";
|
|
279
|
-
in_review: "in_review";
|
|
280
279
|
publishing: "publishing";
|
|
280
|
+
in_review: "in_review";
|
|
281
281
|
published: "published";
|
|
282
282
|
abandoned: "abandoned";
|
|
283
283
|
}>;
|
|
@@ -304,9 +304,9 @@ export declare const tagVersionResponseSchema: z.ZodObject<{
|
|
|
304
304
|
message: z.ZodString;
|
|
305
305
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
306
306
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
307
|
+
registrar: "registrar";
|
|
307
308
|
wpcloud: "wpcloud";
|
|
308
309
|
dns: "dns";
|
|
309
|
-
registrar: "registrar";
|
|
310
310
|
runtime: "runtime";
|
|
311
311
|
}>>>;
|
|
312
312
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -399,9 +399,9 @@ export declare const tagValidateResponseSchema: z.ZodObject<{
|
|
|
399
399
|
message: z.ZodString;
|
|
400
400
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
401
401
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
402
|
+
registrar: "registrar";
|
|
402
403
|
wpcloud: "wpcloud";
|
|
403
404
|
dns: "dns";
|
|
404
|
-
registrar: "registrar";
|
|
405
405
|
runtime: "runtime";
|
|
406
406
|
}>>>;
|
|
407
407
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -483,8 +483,8 @@ export declare const tagReleaseResponseSchema: z.ZodObject<{
|
|
|
483
483
|
status: z.ZodEnum<{
|
|
484
484
|
failed: "failed";
|
|
485
485
|
ready: "ready";
|
|
486
|
-
compiling: "compiling";
|
|
487
486
|
superseded: "superseded";
|
|
487
|
+
compiling: "compiling";
|
|
488
488
|
}>;
|
|
489
489
|
}, z.core.$strip>>;
|
|
490
490
|
}, z.core.$strip>;
|
|
@@ -558,10 +558,10 @@ export declare const tagEffectiveTagResponseSchema: z.ZodObject<{
|
|
|
558
558
|
development: "development";
|
|
559
559
|
}>;
|
|
560
560
|
source: z.ZodEnum<{
|
|
561
|
+
space: "space";
|
|
562
|
+
team: "team";
|
|
561
563
|
unknown: "unknown";
|
|
562
564
|
system: "system";
|
|
563
|
-
team: "team";
|
|
564
|
-
space: "space";
|
|
565
565
|
}>;
|
|
566
566
|
}, z.core.$strip>;
|
|
567
567
|
}, z.core.$strip>;
|
|
@@ -592,8 +592,8 @@ export declare const tagApplyResponseSchema: z.ZodObject<{
|
|
|
592
592
|
status: z.ZodEnum<{
|
|
593
593
|
approved: "approved";
|
|
594
594
|
draft: "draft";
|
|
595
|
-
in_review: "in_review";
|
|
596
595
|
publishing: "publishing";
|
|
596
|
+
in_review: "in_review";
|
|
597
597
|
published: "published";
|
|
598
598
|
abandoned: "abandoned";
|
|
599
599
|
}>;
|
|
@@ -620,9 +620,9 @@ export declare const tagApplyResponseSchema: z.ZodObject<{
|
|
|
620
620
|
message: z.ZodString;
|
|
621
621
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
622
622
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
623
|
+
registrar: "registrar";
|
|
623
624
|
wpcloud: "wpcloud";
|
|
624
625
|
dns: "dns";
|
|
625
|
-
registrar: "registrar";
|
|
626
626
|
runtime: "runtime";
|
|
627
627
|
}>>>;
|
|
628
628
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -653,9 +653,9 @@ export declare const tagApplyResponseSchema: z.ZodObject<{
|
|
|
653
653
|
message: z.ZodString;
|
|
654
654
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
655
655
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
656
|
+
registrar: "registrar";
|
|
656
657
|
wpcloud: "wpcloud";
|
|
657
658
|
dns: "dns";
|
|
658
|
-
registrar: "registrar";
|
|
659
659
|
runtime: "runtime";
|
|
660
660
|
}>>>;
|
|
661
661
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -685,8 +685,8 @@ export declare const tagApplyResponseSchema: z.ZodObject<{
|
|
|
685
685
|
status: z.ZodEnum<{
|
|
686
686
|
failed: "failed";
|
|
687
687
|
ready: "ready";
|
|
688
|
-
compiling: "compiling";
|
|
689
688
|
superseded: "superseded";
|
|
689
|
+
compiling: "compiling";
|
|
690
690
|
}>;
|
|
691
691
|
}, z.core.$strip>>;
|
|
692
692
|
}, z.core.$strip>>;
|
|
@@ -798,9 +798,9 @@ export declare const tagTemplateDefinitionSchema: z.ZodObject<{
|
|
|
798
798
|
}>;
|
|
799
799
|
name: z.ZodString;
|
|
800
800
|
category: z.ZodEnum<{
|
|
801
|
-
custom: "custom";
|
|
802
|
-
support: "support";
|
|
803
801
|
analytics: "analytics";
|
|
802
|
+
support: "support";
|
|
803
|
+
custom: "custom";
|
|
804
804
|
advertising: "advertising";
|
|
805
805
|
product: "product";
|
|
806
806
|
monitoring: "monitoring";
|
|
@@ -814,10 +814,10 @@ export declare const tagTemplateDefinitionSchema: z.ZodObject<{
|
|
|
814
814
|
scroll_depth: "scroll_depth";
|
|
815
815
|
}>>;
|
|
816
816
|
consentCategories: z.ZodArray<z.ZodEnum<{
|
|
817
|
-
necessary: "necessary";
|
|
818
|
-
functional: "functional";
|
|
819
817
|
analytics: "analytics";
|
|
820
818
|
marketing: "marketing";
|
|
819
|
+
necessary: "necessary";
|
|
820
|
+
functional: "functional";
|
|
821
821
|
personalization: "personalization";
|
|
822
822
|
}>>;
|
|
823
823
|
fields: z.ZodArray<z.ZodObject<{
|
|
@@ -868,10 +868,10 @@ export declare const tagTemplateSelectionSchema: z.ZodObject<{
|
|
|
868
868
|
scroll_depth: "scroll_depth";
|
|
869
869
|
}>>>;
|
|
870
870
|
consentCategories: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
871
|
-
necessary: "necessary";
|
|
872
|
-
functional: "functional";
|
|
873
871
|
analytics: "analytics";
|
|
874
872
|
marketing: "marketing";
|
|
873
|
+
necessary: "necessary";
|
|
874
|
+
functional: "functional";
|
|
875
875
|
personalization: "personalization";
|
|
876
876
|
}>>>;
|
|
877
877
|
environments: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
@@ -907,9 +907,9 @@ export declare const tagTemplateListResponseSchema: z.ZodObject<{
|
|
|
907
907
|
}>;
|
|
908
908
|
name: z.ZodString;
|
|
909
909
|
category: z.ZodEnum<{
|
|
910
|
-
custom: "custom";
|
|
911
|
-
support: "support";
|
|
912
910
|
analytics: "analytics";
|
|
911
|
+
support: "support";
|
|
912
|
+
custom: "custom";
|
|
913
913
|
advertising: "advertising";
|
|
914
914
|
product: "product";
|
|
915
915
|
monitoring: "monitoring";
|
|
@@ -923,10 +923,10 @@ export declare const tagTemplateListResponseSchema: z.ZodObject<{
|
|
|
923
923
|
scroll_depth: "scroll_depth";
|
|
924
924
|
}>>;
|
|
925
925
|
consentCategories: z.ZodArray<z.ZodEnum<{
|
|
926
|
-
necessary: "necessary";
|
|
927
|
-
functional: "functional";
|
|
928
926
|
analytics: "analytics";
|
|
929
927
|
marketing: "marketing";
|
|
928
|
+
necessary: "necessary";
|
|
929
|
+
functional: "functional";
|
|
930
930
|
personalization: "personalization";
|
|
931
931
|
}>>;
|
|
932
932
|
fields: z.ZodArray<z.ZodObject<{
|
|
@@ -998,9 +998,9 @@ export declare const tagConsentPolicyResponseSchema: z.ZodObject<{
|
|
|
998
998
|
message: z.ZodString;
|
|
999
999
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1000
1000
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1001
|
+
registrar: "registrar";
|
|
1001
1002
|
wpcloud: "wpcloud";
|
|
1002
1003
|
dns: "dns";
|
|
1003
|
-
registrar: "registrar";
|
|
1004
1004
|
runtime: "runtime";
|
|
1005
1005
|
}>>>;
|
|
1006
1006
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -1040,10 +1040,10 @@ export declare const tagTemplateGraphSchema: z.ZodObject<{
|
|
|
1040
1040
|
scroll_depth: "scroll_depth";
|
|
1041
1041
|
}>>>;
|
|
1042
1042
|
consentCategories: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1043
|
-
necessary: "necessary";
|
|
1044
|
-
functional: "functional";
|
|
1045
1043
|
analytics: "analytics";
|
|
1046
1044
|
marketing: "marketing";
|
|
1045
|
+
necessary: "necessary";
|
|
1046
|
+
functional: "functional";
|
|
1047
1047
|
personalization: "personalization";
|
|
1048
1048
|
}>>>;
|
|
1049
1049
|
environments: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
@@ -1077,10 +1077,10 @@ export declare function listTagTemplates(): {
|
|
|
1077
1077
|
templates: {
|
|
1078
1078
|
id: "intercom" | "google-analytics" | "google-tag-manager" | "meta-pixel" | "tiktok-pixel" | "linkedin-insight" | "posthog" | "plausible" | "amplitude" | "segment" | "sentry-browser" | "hubspot" | "crisp" | "custom-javascript";
|
|
1079
1079
|
name: string;
|
|
1080
|
-
category: "
|
|
1080
|
+
category: "analytics" | "support" | "custom" | "advertising" | "product" | "monitoring";
|
|
1081
1081
|
description: string;
|
|
1082
1082
|
defaultTriggers: ("page_view" | "outbound_click" | "form_submit" | "file_download" | "scroll_depth")[];
|
|
1083
|
-
consentCategories: ("
|
|
1083
|
+
consentCategories: ("analytics" | "marketing" | "necessary" | "functional" | "personalization")[];
|
|
1084
1084
|
fields: {
|
|
1085
1085
|
key: string;
|
|
1086
1086
|
label: string;
|
|
@@ -1130,9 +1130,9 @@ export declare const tagEffectiveResponseSchema: z.ZodObject<{
|
|
|
1130
1130
|
sdkRevision: z.ZodNullable<z.ZodString>;
|
|
1131
1131
|
sources: z.ZodArray<z.ZodObject<{
|
|
1132
1132
|
type: z.ZodEnum<{
|
|
1133
|
-
system: "system";
|
|
1134
|
-
team: "team";
|
|
1135
1133
|
space: "space";
|
|
1134
|
+
team: "team";
|
|
1135
|
+
system: "system";
|
|
1136
1136
|
}>;
|
|
1137
1137
|
versionId: z.ZodNullable<z.ZodString>;
|
|
1138
1138
|
}, z.core.$strip>>;
|
|
@@ -44,11 +44,11 @@ export declare const TeamInvitationSchema: z.ZodObject<{
|
|
|
44
44
|
createdAt: z.ZodString;
|
|
45
45
|
}, z.core.$strip>;
|
|
46
46
|
export declare const teamPlanCode: z.ZodEnum<{
|
|
47
|
+
free: "free";
|
|
47
48
|
personal: "personal";
|
|
48
49
|
work: "work";
|
|
49
50
|
enterprise: "enterprise";
|
|
50
51
|
internal: "internal";
|
|
51
|
-
free: "free";
|
|
52
52
|
}>;
|
|
53
53
|
export declare const TeamSummarySchema: z.ZodObject<{
|
|
54
54
|
id: z.ZodString;
|
|
@@ -61,11 +61,11 @@ export declare const TeamSummarySchema: z.ZodObject<{
|
|
|
61
61
|
member: "member";
|
|
62
62
|
}>;
|
|
63
63
|
plan: z.ZodEnum<{
|
|
64
|
+
free: "free";
|
|
64
65
|
personal: "personal";
|
|
65
66
|
work: "work";
|
|
66
67
|
enterprise: "enterprise";
|
|
67
68
|
internal: "internal";
|
|
68
|
-
free: "free";
|
|
69
69
|
}>;
|
|
70
70
|
defaultDataLocation: z.ZodString;
|
|
71
71
|
createdAt: z.ZodString;
|
|
@@ -82,11 +82,11 @@ export declare const TeamDetailSchema: z.ZodObject<{
|
|
|
82
82
|
member: "member";
|
|
83
83
|
}>;
|
|
84
84
|
plan: z.ZodEnum<{
|
|
85
|
+
free: "free";
|
|
85
86
|
personal: "personal";
|
|
86
87
|
work: "work";
|
|
87
88
|
enterprise: "enterprise";
|
|
88
89
|
internal: "internal";
|
|
89
|
-
free: "free";
|
|
90
90
|
}>;
|
|
91
91
|
defaultDataLocation: z.ZodString;
|
|
92
92
|
createdAt: z.ZodString;
|
|
@@ -107,11 +107,11 @@ export declare const teamListResponseSchema: z.ZodObject<{
|
|
|
107
107
|
member: "member";
|
|
108
108
|
}>;
|
|
109
109
|
plan: z.ZodEnum<{
|
|
110
|
+
free: "free";
|
|
110
111
|
personal: "personal";
|
|
111
112
|
work: "work";
|
|
112
113
|
enterprise: "enterprise";
|
|
113
114
|
internal: "internal";
|
|
114
|
-
free: "free";
|
|
115
115
|
}>;
|
|
116
116
|
defaultDataLocation: z.ZodString;
|
|
117
117
|
createdAt: z.ZodString;
|
|
@@ -152,6 +152,21 @@ export declare const teamJoinResponseSchema: z.ZodObject<{
|
|
|
152
152
|
role: z.ZodLiteral<"member">;
|
|
153
153
|
}, z.core.$strip>;
|
|
154
154
|
}, z.core.$strip>;
|
|
155
|
+
export declare const teamInvitationAcceptSchema: z.ZodObject<{
|
|
156
|
+
invitationId: z.ZodString;
|
|
157
|
+
}, z.core.$strip>;
|
|
158
|
+
export declare const teamInvitationAcceptResponseSchema: z.ZodObject<{
|
|
159
|
+
data: z.ZodObject<{
|
|
160
|
+
teamId: z.ZodString;
|
|
161
|
+
teamSlug: z.ZodString;
|
|
162
|
+
userId: z.ZodString;
|
|
163
|
+
role: z.ZodEnum<{
|
|
164
|
+
owner: "owner";
|
|
165
|
+
admin: "admin";
|
|
166
|
+
member: "member";
|
|
167
|
+
}>;
|
|
168
|
+
}, z.core.$strip>;
|
|
169
|
+
}, z.core.$strip>;
|
|
155
170
|
export declare const teamInvitationListResponseSchema: z.ZodObject<{
|
|
156
171
|
data: z.ZodArray<z.ZodObject<{
|
|
157
172
|
id: z.ZodString;
|
|
@@ -184,10 +199,10 @@ export declare const teamSettingsResponseSchema: z.ZodObject<{
|
|
|
184
199
|
}, z.core.$strip>>;
|
|
185
200
|
wpCloudCapabilities: z.ZodObject<{
|
|
186
201
|
status: z.ZodEnum<{
|
|
187
|
-
|
|
202
|
+
idle: "idle";
|
|
188
203
|
running: "running";
|
|
189
204
|
ready: "ready";
|
|
190
|
-
|
|
205
|
+
failed: "failed";
|
|
191
206
|
}>;
|
|
192
207
|
degraded: z.ZodBoolean;
|
|
193
208
|
lastSyncedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -218,12 +233,15 @@ export declare const teamInvitationPreviewSchema: z.ZodObject<{
|
|
|
218
233
|
teamName: z.ZodString;
|
|
219
234
|
invitedEmail: z.ZodString;
|
|
220
235
|
status: z.ZodEnum<{
|
|
221
|
-
closed: "closed";
|
|
222
|
-
expired: "expired";
|
|
223
236
|
pending: "pending";
|
|
237
|
+
expired: "expired";
|
|
238
|
+
closed: "closed";
|
|
224
239
|
}>;
|
|
225
240
|
expiresAt: z.ZodString;
|
|
226
241
|
}, z.core.$strip>;
|
|
242
|
+
export declare const teamCreateSchema: z.ZodObject<{
|
|
243
|
+
name: z.ZodString;
|
|
244
|
+
}, z.core.$strip>;
|
|
227
245
|
export declare const teamUpdateSchema: z.ZodObject<{
|
|
228
246
|
name: z.ZodOptional<z.ZodString>;
|
|
229
247
|
slug: z.ZodOptional<z.ZodString>;
|
package/dist/contracts/teams.js
CHANGED
|
@@ -74,6 +74,23 @@ export const teamJoinResponseSchema = z.object({
|
|
|
74
74
|
role: z.literal("member"),
|
|
75
75
|
}),
|
|
76
76
|
});
|
|
77
|
+
// Accepting an invitation is by its id (the opaque token carried in the accept
|
|
78
|
+
// email link and returned by the invitations list/preview endpoints).
|
|
79
|
+
export const teamInvitationAcceptSchema = z.object({
|
|
80
|
+
invitationId: z
|
|
81
|
+
.string()
|
|
82
|
+
.trim()
|
|
83
|
+
.min(1)
|
|
84
|
+
.describe("Id of the invitation to accept (the token from the invite link)."),
|
|
85
|
+
});
|
|
86
|
+
export const teamInvitationAcceptResponseSchema = z.object({
|
|
87
|
+
data: z.object({
|
|
88
|
+
teamId: z.string().describe("Id of the team the caller joined."),
|
|
89
|
+
teamSlug: z.string().describe("URL-safe slug of the joined team."),
|
|
90
|
+
userId: z.string().describe("Id of the user that accepted the invitation."),
|
|
91
|
+
role: teamMemberRole.describe("Role granted by the invitation."),
|
|
92
|
+
}),
|
|
93
|
+
});
|
|
77
94
|
export const teamInvitationListResponseSchema = z.object({
|
|
78
95
|
data: z.array(TeamInvitationSchema),
|
|
79
96
|
pagination: CursorPaginationSchema,
|
|
@@ -153,6 +170,9 @@ export const teamInvitationPreviewSchema = z.object({
|
|
|
153
170
|
status: z.enum(["pending", "expired", "closed"]).describe("Whether the invite can be accepted."),
|
|
154
171
|
expiresAt: z.string().describe("When the invitation expires."),
|
|
155
172
|
});
|
|
173
|
+
export const teamCreateSchema = z.object({
|
|
174
|
+
name: z.string().trim().min(1).max(255).describe("Display name for the new team."),
|
|
175
|
+
});
|
|
156
176
|
export const teamUpdateSchema = z
|
|
157
177
|
.object({
|
|
158
178
|
name: z.string().trim().min(1).max(255).optional(),
|
|
@@ -2,15 +2,15 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const principalIdSchema: z.ZodString;
|
|
3
3
|
export declare const transferPrincipalInputSchema: z.ZodObject<{
|
|
4
4
|
principalType: z.ZodEnum<{
|
|
5
|
-
external: "external";
|
|
6
5
|
team: "team";
|
|
6
|
+
external: "external";
|
|
7
7
|
}>;
|
|
8
8
|
principalId: z.ZodString;
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
export declare const transferPrincipalSchema: z.ZodObject<{
|
|
11
11
|
principalType: z.ZodEnum<{
|
|
12
|
-
external: "external";
|
|
13
12
|
team: "team";
|
|
13
|
+
external: "external";
|
|
14
14
|
}>;
|
|
15
15
|
principalId: z.ZodString;
|
|
16
16
|
tenantId: z.ZodString;
|
|
@@ -18,8 +18,8 @@ export declare const transferPrincipalSchema: z.ZodObject<{
|
|
|
18
18
|
export declare const spaceTransferCreateSchema: z.ZodObject<{
|
|
19
19
|
to: z.ZodObject<{
|
|
20
20
|
principalType: z.ZodEnum<{
|
|
21
|
-
external: "external";
|
|
22
21
|
team: "team";
|
|
22
|
+
external: "external";
|
|
23
23
|
}>;
|
|
24
24
|
principalId: z.ZodString;
|
|
25
25
|
}, z.core.$strip>;
|
|
@@ -29,27 +29,27 @@ export declare const spaceTransferSchema: z.ZodObject<{
|
|
|
29
29
|
spaceId: z.ZodString;
|
|
30
30
|
from: z.ZodObject<{
|
|
31
31
|
principalType: z.ZodEnum<{
|
|
32
|
-
external: "external";
|
|
33
32
|
team: "team";
|
|
33
|
+
external: "external";
|
|
34
34
|
}>;
|
|
35
35
|
principalId: z.ZodString;
|
|
36
36
|
tenantId: z.ZodString;
|
|
37
37
|
}, z.core.$strip>;
|
|
38
38
|
to: z.ZodObject<{
|
|
39
39
|
principalType: z.ZodEnum<{
|
|
40
|
-
external: "external";
|
|
41
40
|
team: "team";
|
|
41
|
+
external: "external";
|
|
42
42
|
}>;
|
|
43
43
|
principalId: z.ZodString;
|
|
44
44
|
tenantId: z.ZodString;
|
|
45
45
|
}, z.core.$strip>;
|
|
46
46
|
status: z.ZodEnum<{
|
|
47
|
-
completed: "completed";
|
|
48
|
-
canceled: "canceled";
|
|
49
|
-
expired: "expired";
|
|
50
47
|
moving: "moving";
|
|
51
48
|
pending_confirmation: "pending_confirmation";
|
|
52
49
|
confirming_domains: "confirming_domains";
|
|
50
|
+
completed: "completed";
|
|
51
|
+
canceled: "canceled";
|
|
52
|
+
expired: "expired";
|
|
53
53
|
}>;
|
|
54
54
|
requiredActions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
55
55
|
type: z.ZodLiteral<"dns">;
|
|
@@ -90,9 +90,9 @@ export declare const spaceTransferSchema: z.ZodObject<{
|
|
|
90
90
|
message: z.ZodString;
|
|
91
91
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
92
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
93
|
+
registrar: "registrar";
|
|
93
94
|
wpcloud: "wpcloud";
|
|
94
95
|
dns: "dns";
|
|
95
|
-
registrar: "registrar";
|
|
96
96
|
runtime: "runtime";
|
|
97
97
|
}>>>;
|
|
98
98
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const variableScope: z.ZodEnum<{
|
|
3
|
-
principal: "principal";
|
|
4
|
-
space: "space";
|
|
5
3
|
site: "site";
|
|
4
|
+
space: "space";
|
|
5
|
+
principal: "principal";
|
|
6
6
|
}>;
|
|
7
7
|
export declare const variableNameSchema: z.ZodString;
|
|
8
8
|
export declare const VariableSchema: z.ZodObject<{
|
|
9
9
|
name: z.ZodString;
|
|
10
10
|
scope: z.ZodEnum<{
|
|
11
|
-
principal: "principal";
|
|
12
|
-
space: "space";
|
|
13
11
|
site: "site";
|
|
12
|
+
space: "space";
|
|
13
|
+
principal: "principal";
|
|
14
14
|
}>;
|
|
15
15
|
secret: z.ZodBoolean;
|
|
16
16
|
value: z.ZodOptional<z.ZodString>;
|
|
@@ -49,9 +49,9 @@ export declare const variableListResponseSchema: z.ZodObject<{
|
|
|
49
49
|
data: z.ZodArray<z.ZodObject<{
|
|
50
50
|
name: z.ZodString;
|
|
51
51
|
scope: z.ZodEnum<{
|
|
52
|
-
principal: "principal";
|
|
53
|
-
space: "space";
|
|
54
52
|
site: "site";
|
|
53
|
+
space: "space";
|
|
54
|
+
principal: "principal";
|
|
55
55
|
}>;
|
|
56
56
|
secret: z.ZodBoolean;
|
|
57
57
|
value: z.ZodOptional<z.ZodString>;
|
|
@@ -68,9 +68,9 @@ export declare const spaceVariableListResponseSchema: z.ZodObject<{
|
|
|
68
68
|
data: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
69
69
|
name: z.ZodString;
|
|
70
70
|
scope: z.ZodEnum<{
|
|
71
|
-
principal: "principal";
|
|
72
|
-
space: "space";
|
|
73
71
|
site: "site";
|
|
72
|
+
space: "space";
|
|
73
|
+
principal: "principal";
|
|
74
74
|
}>;
|
|
75
75
|
secret: z.ZodBoolean;
|
|
76
76
|
value: z.ZodOptional<z.ZodString>;
|
|
@@ -91,9 +91,9 @@ export declare const variableMutationResponseSchema: z.ZodObject<{
|
|
|
91
91
|
data: z.ZodObject<{
|
|
92
92
|
name: z.ZodString;
|
|
93
93
|
scope: z.ZodEnum<{
|
|
94
|
-
principal: "principal";
|
|
95
|
-
space: "space";
|
|
96
94
|
site: "site";
|
|
95
|
+
space: "space";
|
|
96
|
+
principal: "principal";
|
|
97
97
|
}>;
|
|
98
98
|
secret: z.ZodBoolean;
|
|
99
99
|
value: z.ZodOptional<z.ZodString>;
|
|
@@ -106,10 +106,10 @@ export declare const variableMutationResponseSchema: z.ZodObject<{
|
|
|
106
106
|
kind: z.ZodString;
|
|
107
107
|
status: z.ZodEnum<{
|
|
108
108
|
failed: "failed";
|
|
109
|
+
canceled: "canceled";
|
|
109
110
|
queued: "queued";
|
|
110
111
|
running: "running";
|
|
111
112
|
succeeded: "succeeded";
|
|
112
|
-
canceled: "canceled";
|
|
113
113
|
}>;
|
|
114
114
|
resources: z.ZodArray<z.ZodObject<{
|
|
115
115
|
type: z.ZodString;
|
|
@@ -130,9 +130,9 @@ export declare const variableMutationResponseSchema: z.ZodObject<{
|
|
|
130
130
|
message: z.ZodString;
|
|
131
131
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
132
132
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
133
|
+
registrar: "registrar";
|
|
133
134
|
wpcloud: "wpcloud";
|
|
134
135
|
dns: "dns";
|
|
135
|
-
registrar: "registrar";
|
|
136
136
|
runtime: "runtime";
|
|
137
137
|
}>>>;
|
|
138
138
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -150,10 +150,10 @@ export declare const variableDeleteResponseSchema: z.ZodObject<{
|
|
|
150
150
|
kind: z.ZodString;
|
|
151
151
|
status: z.ZodEnum<{
|
|
152
152
|
failed: "failed";
|
|
153
|
+
canceled: "canceled";
|
|
153
154
|
queued: "queued";
|
|
154
155
|
running: "running";
|
|
155
156
|
succeeded: "succeeded";
|
|
156
|
-
canceled: "canceled";
|
|
157
157
|
}>;
|
|
158
158
|
resources: z.ZodArray<z.ZodObject<{
|
|
159
159
|
type: z.ZodString;
|
|
@@ -174,9 +174,9 @@ export declare const variableDeleteResponseSchema: z.ZodObject<{
|
|
|
174
174
|
message: z.ZodString;
|
|
175
175
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
176
176
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
177
|
+
registrar: "registrar";
|
|
177
178
|
wpcloud: "wpcloud";
|
|
178
179
|
dns: "dns";
|
|
179
|
-
registrar: "registrar";
|
|
180
180
|
runtime: "runtime";
|
|
181
181
|
}>>>;
|
|
182
182
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -18,8 +18,8 @@ export declare const webhookSchema: z.ZodObject<{
|
|
|
18
18
|
principal: z.ZodNullable<z.ZodObject<{
|
|
19
19
|
tenantId: z.ZodString;
|
|
20
20
|
principalType: z.ZodEnum<{
|
|
21
|
-
external: "external";
|
|
22
21
|
team: "team";
|
|
22
|
+
external: "external";
|
|
23
23
|
}>;
|
|
24
24
|
principalId: z.ZodString;
|
|
25
25
|
}, z.core.$strip>>;
|
|
@@ -47,8 +47,8 @@ export declare const webhookListResponseSchema: z.ZodObject<{
|
|
|
47
47
|
principal: z.ZodNullable<z.ZodObject<{
|
|
48
48
|
tenantId: z.ZodString;
|
|
49
49
|
principalType: z.ZodEnum<{
|
|
50
|
-
external: "external";
|
|
51
50
|
team: "team";
|
|
51
|
+
external: "external";
|
|
52
52
|
}>;
|
|
53
53
|
principalId: z.ZodString;
|
|
54
54
|
}, z.core.$strip>>;
|
|
@@ -98,9 +98,9 @@ export declare const webhookDeliverySchema: z.ZodObject<{
|
|
|
98
98
|
message: z.ZodString;
|
|
99
99
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
100
100
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
101
|
+
registrar: "registrar";
|
|
101
102
|
wpcloud: "wpcloud";
|
|
102
103
|
dns: "dns";
|
|
103
|
-
registrar: "registrar";
|
|
104
104
|
runtime: "runtime";
|
|
105
105
|
}>>>;
|
|
106
106
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -139,9 +139,9 @@ export declare const webhookDeliveryListResponseSchema: z.ZodObject<{
|
|
|
139
139
|
message: z.ZodString;
|
|
140
140
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
141
141
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
142
|
+
registrar: "registrar";
|
|
142
143
|
wpcloud: "wpcloud";
|
|
143
144
|
dns: "dns";
|
|
144
|
-
registrar: "registrar";
|
|
145
145
|
runtime: "runtime";
|
|
146
146
|
}>>>;
|
|
147
147
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|