@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
|
@@ -160,10 +160,10 @@ export declare const spaceInviteSchema: z.ZodObject<{
|
|
|
160
160
|
spaceId: z.ZodString;
|
|
161
161
|
email: z.ZodString;
|
|
162
162
|
status: z.ZodEnum<{
|
|
163
|
+
expired: "expired";
|
|
163
164
|
pending: "pending";
|
|
164
165
|
accepted: "accepted";
|
|
165
166
|
revoked: "revoked";
|
|
166
|
-
expired: "expired";
|
|
167
167
|
}>;
|
|
168
168
|
grant: z.ZodString;
|
|
169
169
|
invitedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -299,9 +299,9 @@ export declare const spacePolicySchema: z.ZodObject<{
|
|
|
299
299
|
}, z.core.$strip>;
|
|
300
300
|
export type SpacePolicy = z.infer<typeof spacePolicySchema>;
|
|
301
301
|
export declare const ruleSourceSchema: z.ZodEnum<{
|
|
302
|
+
cloud: "cloud";
|
|
302
303
|
file: "file";
|
|
303
304
|
platform: "platform";
|
|
304
|
-
cloud: "cloud";
|
|
305
305
|
}>;
|
|
306
306
|
export type RuleSource = z.infer<typeof ruleSourceSchema>;
|
|
307
307
|
export declare const effectiveRuleSchema: z.ZodObject<{
|
|
@@ -346,9 +346,9 @@ export declare const effectiveRuleSchema: z.ZodObject<{
|
|
|
346
346
|
reasonCode: z.ZodOptional<z.ZodString>;
|
|
347
347
|
message: z.ZodOptional<z.ZodString>;
|
|
348
348
|
source: z.ZodEnum<{
|
|
349
|
+
cloud: "cloud";
|
|
349
350
|
file: "file";
|
|
350
351
|
platform: "platform";
|
|
351
|
-
cloud: "cloud";
|
|
352
352
|
}>;
|
|
353
353
|
order: z.ZodNumber;
|
|
354
354
|
}, z.core.$strip>;
|
|
@@ -396,9 +396,9 @@ export declare const effectivePolicySchema: z.ZodObject<{
|
|
|
396
396
|
reasonCode: z.ZodOptional<z.ZodString>;
|
|
397
397
|
message: z.ZodOptional<z.ZodString>;
|
|
398
398
|
source: z.ZodEnum<{
|
|
399
|
+
cloud: "cloud";
|
|
399
400
|
file: "file";
|
|
400
401
|
platform: "platform";
|
|
401
|
-
cloud: "cloud";
|
|
402
402
|
}>;
|
|
403
403
|
order: z.ZodNumber;
|
|
404
404
|
}, z.core.$strip>>>;
|
|
@@ -23,8 +23,8 @@ export declare const activityActorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
23
23
|
export declare const activityPrincipalSchema: z.ZodObject<{
|
|
24
24
|
tenantId: z.ZodString;
|
|
25
25
|
principalType: z.ZodEnum<{
|
|
26
|
-
external: "external";
|
|
27
26
|
team: "team";
|
|
27
|
+
external: "external";
|
|
28
28
|
}>;
|
|
29
29
|
principalId: z.ZodString;
|
|
30
30
|
}, z.core.$strip>;
|
|
@@ -35,8 +35,8 @@ export declare const activityEventSchema: z.ZodObject<{
|
|
|
35
35
|
principal: z.ZodNullable<z.ZodObject<{
|
|
36
36
|
tenantId: z.ZodString;
|
|
37
37
|
principalType: z.ZodEnum<{
|
|
38
|
-
external: "external";
|
|
39
38
|
team: "team";
|
|
39
|
+
external: "external";
|
|
40
40
|
}>;
|
|
41
41
|
principalId: z.ZodString;
|
|
42
42
|
}, z.core.$strip>>;
|
|
@@ -66,8 +66,8 @@ export declare const activityQuerySchema: z.ZodObject<{
|
|
|
66
66
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
67
67
|
cursor: z.ZodOptional<z.ZodString>;
|
|
68
68
|
principalType: z.ZodOptional<z.ZodEnum<{
|
|
69
|
-
external: "external";
|
|
70
69
|
team: "team";
|
|
70
|
+
external: "external";
|
|
71
71
|
}>>;
|
|
72
72
|
principalId: z.ZodOptional<z.ZodString>;
|
|
73
73
|
spaceId: z.ZodOptional<z.ZodString>;
|
|
@@ -83,8 +83,8 @@ export declare const activityListResponseSchema: z.ZodObject<{
|
|
|
83
83
|
principal: z.ZodNullable<z.ZodObject<{
|
|
84
84
|
tenantId: z.ZodString;
|
|
85
85
|
principalType: z.ZodEnum<{
|
|
86
|
-
external: "external";
|
|
87
86
|
team: "team";
|
|
87
|
+
external: "external";
|
|
88
88
|
}>;
|
|
89
89
|
principalId: z.ZodString;
|
|
90
90
|
}, z.core.$strip>>;
|
|
@@ -139,8 +139,8 @@ export declare const noticePublishSchema: z.ZodObject<{
|
|
|
139
139
|
title: z.ZodString;
|
|
140
140
|
message: z.ZodString;
|
|
141
141
|
level: z.ZodDefault<z.ZodEnum<{
|
|
142
|
-
success: "success";
|
|
143
142
|
info: "info";
|
|
143
|
+
success: "success";
|
|
144
144
|
warning: "warning";
|
|
145
145
|
error: "error";
|
|
146
146
|
}>>;
|
|
@@ -152,17 +152,17 @@ export declare const ApiKeySchema: z.ZodObject<{
|
|
|
152
152
|
tenantId: z.ZodNullable<z.ZodString>;
|
|
153
153
|
subject: z.ZodNullable<z.ZodObject<{
|
|
154
154
|
type: z.ZodEnum<{
|
|
155
|
+
team: "team";
|
|
155
156
|
external: "external";
|
|
156
|
-
user: "user";
|
|
157
157
|
system: "system";
|
|
158
|
-
|
|
158
|
+
user: "user";
|
|
159
159
|
}>;
|
|
160
160
|
id: z.ZodString;
|
|
161
161
|
}, z.core.$strip>>;
|
|
162
162
|
ownerPrincipal: z.ZodNullable<z.ZodObject<{
|
|
163
163
|
type: z.ZodEnum<{
|
|
164
|
-
external: "external";
|
|
165
164
|
team: "team";
|
|
165
|
+
external: "external";
|
|
166
166
|
}>;
|
|
167
167
|
id: z.ZodString;
|
|
168
168
|
}, z.core.$strip>>;
|
|
@@ -262,17 +262,17 @@ export declare const ApiKeyListResponseSchema: z.ZodObject<{
|
|
|
262
262
|
tenantId: z.ZodNullable<z.ZodString>;
|
|
263
263
|
subject: z.ZodNullable<z.ZodObject<{
|
|
264
264
|
type: z.ZodEnum<{
|
|
265
|
+
team: "team";
|
|
265
266
|
external: "external";
|
|
266
|
-
user: "user";
|
|
267
267
|
system: "system";
|
|
268
|
-
|
|
268
|
+
user: "user";
|
|
269
269
|
}>;
|
|
270
270
|
id: z.ZodString;
|
|
271
271
|
}, z.core.$strip>>;
|
|
272
272
|
ownerPrincipal: z.ZodNullable<z.ZodObject<{
|
|
273
273
|
type: z.ZodEnum<{
|
|
274
|
-
external: "external";
|
|
275
274
|
team: "team";
|
|
275
|
+
external: "external";
|
|
276
276
|
}>;
|
|
277
277
|
id: z.ZodString;
|
|
278
278
|
}, z.core.$strip>>;
|
|
@@ -20,10 +20,10 @@ export declare const spaceExportSchema: z.ZodObject<{
|
|
|
20
20
|
spaceId: z.ZodString;
|
|
21
21
|
status: z.ZodEnum<{
|
|
22
22
|
failed: "failed";
|
|
23
|
+
expired: "expired";
|
|
24
|
+
ready: "ready";
|
|
23
25
|
queued: "queued";
|
|
24
26
|
running: "running";
|
|
25
|
-
ready: "ready";
|
|
26
|
-
expired: "expired";
|
|
27
27
|
}>;
|
|
28
28
|
format: z.ZodLiteral<"stattic_export_v1">;
|
|
29
29
|
diagnostics: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -36,9 +36,9 @@ export declare const spaceExportSchema: z.ZodObject<{
|
|
|
36
36
|
message: z.ZodString;
|
|
37
37
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
38
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
39
|
+
registrar: "registrar";
|
|
39
40
|
wpcloud: "wpcloud";
|
|
40
41
|
dns: "dns";
|
|
41
|
-
registrar: "registrar";
|
|
42
42
|
runtime: "runtime";
|
|
43
43
|
}>>>;
|
|
44
44
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -62,10 +62,10 @@ export declare const spaceExportListResponseSchema: z.ZodObject<{
|
|
|
62
62
|
spaceId: z.ZodString;
|
|
63
63
|
status: z.ZodEnum<{
|
|
64
64
|
failed: "failed";
|
|
65
|
+
expired: "expired";
|
|
66
|
+
ready: "ready";
|
|
65
67
|
queued: "queued";
|
|
66
68
|
running: "running";
|
|
67
|
-
ready: "ready";
|
|
68
|
-
expired: "expired";
|
|
69
69
|
}>;
|
|
70
70
|
format: z.ZodLiteral<"stattic_export_v1">;
|
|
71
71
|
diagnostics: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -78,9 +78,9 @@ export declare const spaceExportListResponseSchema: z.ZodObject<{
|
|
|
78
78
|
message: z.ZodString;
|
|
79
79
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
80
80
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
81
|
+
registrar: "registrar";
|
|
81
82
|
wpcloud: "wpcloud";
|
|
82
83
|
dns: "dns";
|
|
83
|
-
registrar: "registrar";
|
|
84
84
|
runtime: "runtime";
|
|
85
85
|
}>>>;
|
|
86
86
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -130,8 +130,8 @@ export declare const spaceImportSchema: z.ZodObject<{
|
|
|
130
130
|
status: z.ZodEnum<{
|
|
131
131
|
failed: "failed";
|
|
132
132
|
canceled: "canceled";
|
|
133
|
-
ready: "ready";
|
|
134
133
|
created: "created";
|
|
134
|
+
ready: "ready";
|
|
135
135
|
waiting_for_archive: "waiting_for_archive";
|
|
136
136
|
validating: "validating";
|
|
137
137
|
materializing: "materializing";
|
|
@@ -139,8 +139,8 @@ export declare const spaceImportSchema: z.ZodObject<{
|
|
|
139
139
|
archiveUpload: z.ZodOptional<z.ZodObject<{
|
|
140
140
|
id: z.ZodString;
|
|
141
141
|
mode: z.ZodEnum<{
|
|
142
|
-
dist: "dist";
|
|
143
142
|
source: "source";
|
|
143
|
+
dist: "dist";
|
|
144
144
|
}>;
|
|
145
145
|
expiresAt: z.ZodString;
|
|
146
146
|
summary: z.ZodObject<{
|
|
@@ -188,9 +188,9 @@ export declare const spaceImportSchema: z.ZodObject<{
|
|
|
188
188
|
message: z.ZodString;
|
|
189
189
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
190
190
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
191
|
+
registrar: "registrar";
|
|
191
192
|
wpcloud: "wpcloud";
|
|
192
193
|
dns: "dns";
|
|
193
|
-
registrar: "registrar";
|
|
194
194
|
runtime: "runtime";
|
|
195
195
|
}>>>;
|
|
196
196
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -210,9 +210,9 @@ export declare const spaceImportSchema: z.ZodObject<{
|
|
|
210
210
|
message: z.ZodString;
|
|
211
211
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
212
212
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
213
|
+
registrar: "registrar";
|
|
213
214
|
wpcloud: "wpcloud";
|
|
214
215
|
dns: "dns";
|
|
215
|
-
registrar: "registrar";
|
|
216
216
|
runtime: "runtime";
|
|
217
217
|
}>>>;
|
|
218
218
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -230,8 +230,8 @@ export declare const spaceImportListResponseSchema: z.ZodObject<{
|
|
|
230
230
|
status: z.ZodEnum<{
|
|
231
231
|
failed: "failed";
|
|
232
232
|
canceled: "canceled";
|
|
233
|
-
ready: "ready";
|
|
234
233
|
created: "created";
|
|
234
|
+
ready: "ready";
|
|
235
235
|
waiting_for_archive: "waiting_for_archive";
|
|
236
236
|
validating: "validating";
|
|
237
237
|
materializing: "materializing";
|
|
@@ -239,8 +239,8 @@ export declare const spaceImportListResponseSchema: z.ZodObject<{
|
|
|
239
239
|
archiveUpload: z.ZodOptional<z.ZodObject<{
|
|
240
240
|
id: z.ZodString;
|
|
241
241
|
mode: z.ZodEnum<{
|
|
242
|
-
dist: "dist";
|
|
243
242
|
source: "source";
|
|
243
|
+
dist: "dist";
|
|
244
244
|
}>;
|
|
245
245
|
expiresAt: z.ZodString;
|
|
246
246
|
summary: z.ZodObject<{
|
|
@@ -288,9 +288,9 @@ export declare const spaceImportListResponseSchema: z.ZodObject<{
|
|
|
288
288
|
message: z.ZodString;
|
|
289
289
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
290
290
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
291
|
+
registrar: "registrar";
|
|
291
292
|
wpcloud: "wpcloud";
|
|
292
293
|
dns: "dns";
|
|
293
|
-
registrar: "registrar";
|
|
294
294
|
runtime: "runtime";
|
|
295
295
|
}>>>;
|
|
296
296
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -310,9 +310,9 @@ export declare const spaceImportListResponseSchema: z.ZodObject<{
|
|
|
310
310
|
message: z.ZodString;
|
|
311
311
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
312
312
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
313
|
+
registrar: "registrar";
|
|
313
314
|
wpcloud: "wpcloud";
|
|
314
315
|
dns: "dns";
|
|
315
|
-
registrar: "registrar";
|
|
316
316
|
runtime: "runtime";
|
|
317
317
|
}>>>;
|
|
318
318
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -30,17 +30,17 @@ export type BillingTransactionKind = z.infer<typeof billingTransactionKindSchema
|
|
|
30
30
|
export declare const billingTransactionScopeValues: readonly ["plan", "seats", "domain", "other"];
|
|
31
31
|
export declare const billingTransactionScopeSchema: z.ZodEnum<{
|
|
32
32
|
domain: "domain";
|
|
33
|
+
other: "other";
|
|
33
34
|
plan: "plan";
|
|
34
35
|
seats: "seats";
|
|
35
|
-
other: "other";
|
|
36
36
|
}>;
|
|
37
37
|
export type BillingTransactionScope = z.infer<typeof billingTransactionScopeSchema>;
|
|
38
38
|
export declare const billingAddonSourceValues: readonly ["grant", "stripe"];
|
|
39
39
|
export declare const billingAddonLimitKeyValues: readonly ["teamMembers", "subTeams", "storageBytes", "externalDomainGroups"];
|
|
40
40
|
export declare const billingAddonLimitKeySchema: z.ZodEnum<{
|
|
41
|
-
storageBytes: "storageBytes";
|
|
42
41
|
teamMembers: "teamMembers";
|
|
43
42
|
subTeams: "subTeams";
|
|
43
|
+
storageBytes: "storageBytes";
|
|
44
44
|
externalDomainGroups: "externalDomainGroups";
|
|
45
45
|
}>;
|
|
46
46
|
export type BillingAddonLimitKey = z.infer<typeof billingAddonLimitKeySchema>;
|
|
@@ -53,10 +53,10 @@ export declare const billingPlanSourceSchema: z.ZodObject<{
|
|
|
53
53
|
}>;
|
|
54
54
|
planCode: z.ZodEnum<{
|
|
55
55
|
free: "free";
|
|
56
|
-
|
|
56
|
+
internal: "internal";
|
|
57
57
|
work: "work";
|
|
58
|
+
personal: "personal";
|
|
58
59
|
enterprise: "enterprise";
|
|
59
|
-
internal: "internal";
|
|
60
60
|
}>;
|
|
61
61
|
active: z.ZodBoolean;
|
|
62
62
|
detail: z.ZodString;
|
|
@@ -92,10 +92,10 @@ export type StoreSubscriptionResult = z.infer<typeof storeSubscriptionResultSche
|
|
|
92
92
|
export declare const stripeCheckoutRequestSchema: z.ZodObject<{
|
|
93
93
|
planCode: z.ZodDefault<z.ZodEnum<{
|
|
94
94
|
free: "free";
|
|
95
|
-
|
|
95
|
+
internal: "internal";
|
|
96
96
|
work: "work";
|
|
97
|
+
personal: "personal";
|
|
97
98
|
enterprise: "enterprise";
|
|
98
|
-
internal: "internal";
|
|
99
99
|
}>>;
|
|
100
100
|
billingInterval: z.ZodDefault<z.ZodEnum<{
|
|
101
101
|
monthly: "monthly";
|
|
@@ -118,11 +118,11 @@ export type StripeCancelSubscriptionRequest = z.infer<typeof stripeCancelSubscri
|
|
|
118
118
|
export declare const stripeChangePlanRequestSchema: z.ZodObject<{
|
|
119
119
|
planCode: z.ZodEnum<{
|
|
120
120
|
free: "free";
|
|
121
|
-
|
|
121
|
+
internal: "internal";
|
|
122
122
|
work: "work";
|
|
123
|
+
personal: "personal";
|
|
123
124
|
enterprise: "enterprise";
|
|
124
|
-
|
|
125
|
-
}> & z.ZodType<"personal" | "work" | "enterprise" | "internal", "free" | "personal" | "work" | "enterprise" | "internal", z.core.$ZodTypeInternals<"personal" | "work" | "enterprise" | "internal", "free" | "personal" | "work" | "enterprise" | "internal">>;
|
|
125
|
+
}> & z.ZodType<"internal" | "work" | "personal" | "enterprise", "free" | "internal" | "work" | "personal" | "enterprise", z.core.$ZodTypeInternals<"internal" | "work" | "personal" | "enterprise", "free" | "internal" | "work" | "personal" | "enterprise">>;
|
|
126
126
|
billingInterval: z.ZodDefault<z.ZodEnum<{
|
|
127
127
|
monthly: "monthly";
|
|
128
128
|
yearly: "yearly";
|
|
@@ -164,8 +164,8 @@ export declare const teamBillingSettingsSchema: z.ZodObject<{
|
|
|
164
164
|
invoiceFooter: z.ZodNullable<z.ZodString>;
|
|
165
165
|
customFields: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
166
166
|
stripeCustomerSyncStatus: z.ZodNullable<z.ZodEnum<{
|
|
167
|
-
pending: "pending";
|
|
168
167
|
failed: "failed";
|
|
168
|
+
pending: "pending";
|
|
169
169
|
synced: "synced";
|
|
170
170
|
}>>;
|
|
171
171
|
stripeCustomerSyncedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -192,8 +192,8 @@ export declare const teamBillingSettingsResponseSchema: z.ZodObject<{
|
|
|
192
192
|
invoiceFooter: z.ZodNullable<z.ZodString>;
|
|
193
193
|
customFields: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
194
194
|
stripeCustomerSyncStatus: z.ZodNullable<z.ZodEnum<{
|
|
195
|
-
pending: "pending";
|
|
196
195
|
failed: "failed";
|
|
196
|
+
pending: "pending";
|
|
197
197
|
synced: "synced";
|
|
198
198
|
}>>;
|
|
199
199
|
stripeCustomerSyncedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -232,10 +232,10 @@ export declare const billingSubscriptionSummarySchema: z.ZodObject<{
|
|
|
232
232
|
provider: z.ZodLiteral<"stripe">;
|
|
233
233
|
planCode: z.ZodNullable<z.ZodEnum<{
|
|
234
234
|
free: "free";
|
|
235
|
-
|
|
235
|
+
internal: "internal";
|
|
236
236
|
work: "work";
|
|
237
|
+
personal: "personal";
|
|
237
238
|
enterprise: "enterprise";
|
|
238
|
-
internal: "internal";
|
|
239
239
|
}>>;
|
|
240
240
|
status: z.ZodString;
|
|
241
241
|
providerStatus: z.ZodNullable<z.ZodString>;
|
|
@@ -246,8 +246,8 @@ export declare const billingSubscriptionSummarySchema: z.ZodObject<{
|
|
|
246
246
|
export declare const billingResourceChargeSummarySchema: z.ZodObject<{
|
|
247
247
|
id: z.ZodString;
|
|
248
248
|
subjectType: z.ZodEnum<{
|
|
249
|
-
space: "space";
|
|
250
249
|
site: "site";
|
|
250
|
+
space: "space";
|
|
251
251
|
domain: "domain";
|
|
252
252
|
}>;
|
|
253
253
|
kind: z.ZodString;
|
|
@@ -258,10 +258,10 @@ export declare const TeamBillingResponseSchema: z.ZodObject<{
|
|
|
258
258
|
teamId: z.ZodString;
|
|
259
259
|
planCode: z.ZodEnum<{
|
|
260
260
|
free: "free";
|
|
261
|
-
|
|
261
|
+
internal: "internal";
|
|
262
262
|
work: "work";
|
|
263
|
+
personal: "personal";
|
|
263
264
|
enterprise: "enterprise";
|
|
264
|
-
internal: "internal";
|
|
265
265
|
}>;
|
|
266
266
|
billingCustomerRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
267
267
|
id: z.ZodString;
|
|
@@ -275,10 +275,10 @@ export declare const TeamBillingResponseSchema: z.ZodObject<{
|
|
|
275
275
|
provider: z.ZodLiteral<"stripe">;
|
|
276
276
|
planCode: z.ZodNullable<z.ZodEnum<{
|
|
277
277
|
free: "free";
|
|
278
|
-
|
|
278
|
+
internal: "internal";
|
|
279
279
|
work: "work";
|
|
280
|
+
personal: "personal";
|
|
280
281
|
enterprise: "enterprise";
|
|
281
|
-
internal: "internal";
|
|
282
282
|
}>>;
|
|
283
283
|
status: z.ZodString;
|
|
284
284
|
providerStatus: z.ZodNullable<z.ZodString>;
|
|
@@ -289,8 +289,8 @@ export declare const TeamBillingResponseSchema: z.ZodObject<{
|
|
|
289
289
|
resourceCharges: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
290
290
|
id: z.ZodString;
|
|
291
291
|
subjectType: z.ZodEnum<{
|
|
292
|
-
space: "space";
|
|
293
292
|
site: "site";
|
|
293
|
+
space: "space";
|
|
294
294
|
domain: "domain";
|
|
295
295
|
}>;
|
|
296
296
|
kind: z.ZodString;
|
|
@@ -306,10 +306,10 @@ export declare const TeamBillingResponseSchema: z.ZodObject<{
|
|
|
306
306
|
provider: z.ZodLiteral<"stripe">;
|
|
307
307
|
planCode: z.ZodNullable<z.ZodEnum<{
|
|
308
308
|
free: "free";
|
|
309
|
-
|
|
309
|
+
internal: "internal";
|
|
310
310
|
work: "work";
|
|
311
|
+
personal: "personal";
|
|
311
312
|
enterprise: "enterprise";
|
|
312
|
-
internal: "internal";
|
|
313
313
|
}>>;
|
|
314
314
|
status: z.ZodString;
|
|
315
315
|
providerStatus: z.ZodNullable<z.ZodString>;
|
|
@@ -137,9 +137,9 @@ export declare const BuildSchema: z.ZodObject<{
|
|
|
137
137
|
diagnostics: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
138
138
|
code: z.ZodString;
|
|
139
139
|
severity: z.ZodEnum<{
|
|
140
|
-
info: "info";
|
|
141
140
|
warning: "warning";
|
|
142
141
|
error: "error";
|
|
142
|
+
info: "info";
|
|
143
143
|
}>;
|
|
144
144
|
message: z.ZodString;
|
|
145
145
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -188,9 +188,9 @@ export declare const buildCreateRequestSchema: z.ZodObject<{
|
|
|
188
188
|
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
189
189
|
code: z.ZodString;
|
|
190
190
|
severity: z.ZodEnum<{
|
|
191
|
-
info: "info";
|
|
192
191
|
warning: "warning";
|
|
193
192
|
error: "error";
|
|
193
|
+
info: "info";
|
|
194
194
|
}>;
|
|
195
195
|
message: z.ZodString;
|
|
196
196
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -209,8 +209,8 @@ export declare const buildCreateRequestSchema: z.ZodObject<{
|
|
|
209
209
|
export declare const buildSourceArchiveUploadSchema: z.ZodObject<{
|
|
210
210
|
id: z.ZodString;
|
|
211
211
|
mode: z.ZodEnum<{
|
|
212
|
-
dist: "dist";
|
|
213
212
|
source: "source";
|
|
213
|
+
dist: "dist";
|
|
214
214
|
}>;
|
|
215
215
|
expiresAt: z.ZodString;
|
|
216
216
|
summary: z.ZodObject<{
|
|
@@ -251,9 +251,9 @@ export declare const buildSourceArchiveUploadSchema: z.ZodObject<{
|
|
|
251
251
|
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
252
252
|
code: z.ZodString;
|
|
253
253
|
severity: z.ZodEnum<{
|
|
254
|
-
info: "info";
|
|
255
254
|
warning: "warning";
|
|
256
255
|
error: "error";
|
|
256
|
+
info: "info";
|
|
257
257
|
}>;
|
|
258
258
|
message: z.ZodString;
|
|
259
259
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -315,9 +315,9 @@ export declare const buildCreateResponseSchema: z.ZodObject<{
|
|
|
315
315
|
diagnostics: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
316
316
|
code: z.ZodString;
|
|
317
317
|
severity: z.ZodEnum<{
|
|
318
|
-
info: "info";
|
|
319
318
|
warning: "warning";
|
|
320
319
|
error: "error";
|
|
320
|
+
info: "info";
|
|
321
321
|
}>;
|
|
322
322
|
message: z.ZodString;
|
|
323
323
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -338,8 +338,8 @@ export declare const buildCreateResponseSchema: z.ZodObject<{
|
|
|
338
338
|
upload: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
339
339
|
id: z.ZodString;
|
|
340
340
|
mode: z.ZodEnum<{
|
|
341
|
-
dist: "dist";
|
|
342
341
|
source: "source";
|
|
342
|
+
dist: "dist";
|
|
343
343
|
}>;
|
|
344
344
|
expiresAt: z.ZodString;
|
|
345
345
|
summary: z.ZodObject<{
|
|
@@ -380,9 +380,9 @@ export declare const buildCreateResponseSchema: z.ZodObject<{
|
|
|
380
380
|
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
381
381
|
code: z.ZodString;
|
|
382
382
|
severity: z.ZodEnum<{
|
|
383
|
-
info: "info";
|
|
384
383
|
warning: "warning";
|
|
385
384
|
error: "error";
|
|
385
|
+
info: "info";
|
|
386
386
|
}>;
|
|
387
387
|
message: z.ZodString;
|
|
388
388
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -449,9 +449,9 @@ export declare const buildListResponseSchema: z.ZodObject<{
|
|
|
449
449
|
diagnostics: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
450
450
|
code: z.ZodString;
|
|
451
451
|
severity: z.ZodEnum<{
|
|
452
|
-
info: "info";
|
|
453
452
|
warning: "warning";
|
|
454
453
|
error: "error";
|
|
454
|
+
info: "info";
|
|
455
455
|
}>;
|
|
456
456
|
message: z.ZodString;
|
|
457
457
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -12,11 +12,11 @@ export declare const channelHistoryEntrySchema: z.ZodObject<{
|
|
|
12
12
|
channel: z.ZodString;
|
|
13
13
|
previousVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
actorType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
15
|
+
system: "system";
|
|
15
16
|
user: "user";
|
|
16
17
|
api_key: "api_key";
|
|
17
18
|
oauth_client: "oauth_client";
|
|
18
19
|
anonymous_claim: "anonymous_claim";
|
|
19
|
-
system: "system";
|
|
20
20
|
}>>>;
|
|
21
21
|
actorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
22
|
at: z.ZodString;
|
|
@@ -37,11 +37,11 @@ export declare const channelHistoryResponseSchema: z.ZodObject<{
|
|
|
37
37
|
channel: z.ZodString;
|
|
38
38
|
previousVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
39
|
actorType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
40
|
+
system: "system";
|
|
40
41
|
user: "user";
|
|
41
42
|
api_key: "api_key";
|
|
42
43
|
oauth_client: "oauth_client";
|
|
43
44
|
anonymous_claim: "anonymous_claim";
|
|
44
|
-
system: "system";
|
|
45
45
|
}>>>;
|
|
46
46
|
actorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
47
|
at: z.ZodString;
|
|
@@ -15,9 +15,9 @@ export declare const baseDiagnosticSchema: z.ZodObject<{
|
|
|
15
15
|
message: z.ZodString;
|
|
16
16
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
18
|
+
registrar: "registrar";
|
|
18
19
|
wpcloud: "wpcloud";
|
|
19
20
|
dns: "dns";
|
|
20
|
-
registrar: "registrar";
|
|
21
21
|
runtime: "runtime";
|
|
22
22
|
}>>>;
|
|
23
23
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -155,10 +155,10 @@ export declare const AsyncOperationSchema: z.ZodObject<{
|
|
|
155
155
|
kind: z.ZodString;
|
|
156
156
|
status: z.ZodEnum<{
|
|
157
157
|
failed: "failed";
|
|
158
|
+
canceled: "canceled";
|
|
158
159
|
queued: "queued";
|
|
159
160
|
running: "running";
|
|
160
161
|
succeeded: "succeeded";
|
|
161
|
-
canceled: "canceled";
|
|
162
162
|
}>;
|
|
163
163
|
resources: z.ZodArray<z.ZodObject<{
|
|
164
164
|
type: z.ZodString;
|
|
@@ -179,9 +179,9 @@ export declare const AsyncOperationSchema: z.ZodObject<{
|
|
|
179
179
|
message: z.ZodString;
|
|
180
180
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
181
181
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
182
|
+
registrar: "registrar";
|
|
182
183
|
wpcloud: "wpcloud";
|
|
183
184
|
dns: "dns";
|
|
184
|
-
registrar: "registrar";
|
|
185
185
|
runtime: "runtime";
|
|
186
186
|
}>>>;
|
|
187
187
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -199,10 +199,10 @@ export declare function mutationEnvelope<T extends z.ZodType>(data: T): z.ZodObj
|
|
|
199
199
|
kind: z.ZodString;
|
|
200
200
|
status: z.ZodEnum<{
|
|
201
201
|
failed: "failed";
|
|
202
|
+
canceled: "canceled";
|
|
202
203
|
queued: "queued";
|
|
203
204
|
running: "running";
|
|
204
205
|
succeeded: "succeeded";
|
|
205
|
-
canceled: "canceled";
|
|
206
206
|
}>;
|
|
207
207
|
resources: z.ZodArray<z.ZodObject<{
|
|
208
208
|
type: z.ZodString;
|
|
@@ -223,9 +223,9 @@ export declare function mutationEnvelope<T extends z.ZodType>(data: T): z.ZodObj
|
|
|
223
223
|
message: z.ZodString;
|
|
224
224
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
225
225
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
226
|
+
registrar: "registrar";
|
|
226
227
|
wpcloud: "wpcloud";
|
|
227
228
|
dns: "dns";
|
|
228
|
-
registrar: "registrar";
|
|
229
229
|
runtime: "runtime";
|
|
230
230
|
}>>>;
|
|
231
231
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const RequiresActionTypeSchema: z.ZodEnum<{
|
|
3
|
+
device_authorization: "device_authorization";
|
|
4
|
+
}>;
|
|
5
|
+
export type RequiresActionType = z.infer<typeof RequiresActionTypeSchema>;
|
|
6
|
+
export declare const RequiresActionSchema: z.ZodObject<{
|
|
7
|
+
actionType: z.ZodEnum<{
|
|
8
|
+
device_authorization: "device_authorization";
|
|
9
|
+
}>;
|
|
10
|
+
instruction: z.ZodString;
|
|
11
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
continuationToken: z.ZodString;
|
|
13
|
+
pollAfterSeconds: z.ZodNumber;
|
|
14
|
+
expiresAt: z.ZodString;
|
|
15
|
+
}, z.core.$strict>;
|
|
16
|
+
export type RequiresAction = z.infer<typeof RequiresActionSchema>;
|
|
17
|
+
/** The canonical `{ requiresAction }` envelope, additive alongside `{ data }` / `{ error }`. */
|
|
18
|
+
export declare const RequiresActionEnvelopeSchema: z.ZodObject<{
|
|
19
|
+
requiresAction: z.ZodObject<{
|
|
20
|
+
actionType: z.ZodEnum<{
|
|
21
|
+
device_authorization: "device_authorization";
|
|
22
|
+
}>;
|
|
23
|
+
instruction: z.ZodString;
|
|
24
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
continuationToken: z.ZodString;
|
|
26
|
+
pollAfterSeconds: z.ZodNumber;
|
|
27
|
+
expiresAt: z.ZodString;
|
|
28
|
+
}, z.core.$strict>;
|
|
29
|
+
}, z.core.$strict>;
|
|
30
|
+
export type RequiresActionEnvelope = z.infer<typeof RequiresActionEnvelopeSchema>;
|
|
31
|
+
export declare const ActionResumeRequestSchema: z.ZodObject<{
|
|
32
|
+
continuationToken: z.ZodString;
|
|
33
|
+
}, z.core.$strict>;
|
|
34
|
+
export type ActionResumeRequest = z.infer<typeof ActionResumeRequestSchema>;
|
|
35
|
+
export declare const ActionResumeResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
36
|
+
status: z.ZodLiteral<"pending">;
|
|
37
|
+
requiresAction: z.ZodObject<{
|
|
38
|
+
actionType: z.ZodEnum<{
|
|
39
|
+
device_authorization: "device_authorization";
|
|
40
|
+
}>;
|
|
41
|
+
instruction: z.ZodString;
|
|
42
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
continuationToken: z.ZodString;
|
|
44
|
+
pollAfterSeconds: z.ZodNumber;
|
|
45
|
+
expiresAt: z.ZodString;
|
|
46
|
+
}, z.core.$strict>;
|
|
47
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
48
|
+
status: z.ZodLiteral<"completed">;
|
|
49
|
+
actionType: z.ZodEnum<{
|
|
50
|
+
device_authorization: "device_authorization";
|
|
51
|
+
}>;
|
|
52
|
+
result: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
53
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
54
|
+
status: z.ZodLiteral<"denied">;
|
|
55
|
+
actionType: z.ZodEnum<{
|
|
56
|
+
device_authorization: "device_authorization";
|
|
57
|
+
}>;
|
|
58
|
+
message: z.ZodString;
|
|
59
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
60
|
+
status: z.ZodLiteral<"expired">;
|
|
61
|
+
actionType: z.ZodEnum<{
|
|
62
|
+
device_authorization: "device_authorization";
|
|
63
|
+
}>;
|
|
64
|
+
message: z.ZodString;
|
|
65
|
+
}, z.core.$strict>], "status">;
|
|
66
|
+
export type ActionResumeResponse = z.infer<typeof ActionResumeResponseSchema>;
|