@spacefast/common 0.0.5 → 0.0.6
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/connect-targets.d.ts +133 -0
- package/dist/agents/connect-targets.js +224 -0
- package/dist/brand.d.ts +1 -0
- package/dist/brand.js +5 -0
- package/dist/config/domains.d.ts +12 -6
- package/dist/config/domains.js +30 -38
- package/dist/contracts/access.d.ts +825 -125
- package/dist/contracts/access.js +771 -148
- package/dist/contracts/activity.d.ts +1 -1
- package/dist/contracts/activity.js +28 -2
- package/dist/contracts/annotations.d.ts +2 -4
- package/dist/contracts/api-keys.d.ts +3 -4
- package/dist/contracts/api-keys.js +9 -6
- package/dist/contracts/archives.d.ts +8 -2
- package/dist/contracts/archives.js +11 -4
- package/dist/contracts/billing.d.ts +0 -9
- package/dist/contracts/builds.d.ts +25 -21
- package/dist/contracts/builds.js +12 -0
- package/dist/contracts/common.d.ts +2 -0
- package/dist/contracts/common.js +4 -0
- package/dist/contracts/continuation.d.ts +0 -3
- package/dist/contracts/countries.d.ts +2 -0
- package/dist/contracts/countries.js +261 -0
- package/dist/contracts/deployments.d.ts +34 -34
- package/dist/contracts/device-auth.d.ts +4 -11
- package/dist/contracts/device-auth.js +4 -0
- package/dist/contracts/docs.d.ts +119 -0
- package/dist/contracts/docs.js +51 -0
- package/dist/contracts/domains.d.ts +96 -54
- package/dist/contracts/domains.js +26 -4
- package/dist/contracts/enums.d.ts +15 -16
- package/dist/contracts/enums.js +25 -14
- package/dist/contracts/error-code-meta.d.ts +72 -0
- package/dist/contracts/error-code-meta.js +96 -10
- package/dist/contracts/error-codes.d.ts +1 -1
- package/dist/contracts/error-codes.js +14 -0
- package/dist/contracts/events.d.ts +1 -1
- package/dist/contracts/features.d.ts +76 -6
- package/dist/contracts/features.js +178 -13
- package/dist/contracts/git.d.ts +2 -8
- package/dist/contracts/ids.d.ts +5 -0
- package/dist/contracts/ids.js +5 -0
- package/dist/contracts/mcp.d.ts +8 -10
- package/dist/contracts/me.js +1 -1
- package/dist/contracts/oauth-resources.d.ts +19 -8
- package/dist/contracts/oauth-resources.js +44 -13
- package/dist/contracts/platform.d.ts +0 -102
- package/dist/contracts/platform.js +0 -50
- package/dist/contracts/push-new.d.ts +4 -4
- package/dist/contracts/quotas.d.ts +2 -0
- package/dist/contracts/quotas.js +8 -0
- package/dist/contracts/repository-connections.d.ts +6 -8
- package/dist/contracts/resources.d.ts +97 -13
- package/dist/contracts/resources.js +26 -2
- package/dist/contracts/routes.d.ts +0 -2
- package/dist/contracts/runtime-api.d.ts +361 -39
- package/dist/contracts/runtime-api.js +275 -6
- package/dist/contracts/sites.d.ts +19 -2
- package/dist/contracts/sites.js +21 -0
- package/dist/contracts/space-config.d.ts +201 -2
- package/dist/contracts/space-config.js +135 -5
- package/dist/contracts/spaces.d.ts +364 -193
- package/dist/contracts/spaces.js +40 -8
- package/dist/contracts/superadmin-emails.d.ts +4 -2
- package/dist/contracts/superadmin-emails.js +8 -0
- package/dist/contracts/superadmin-queues.d.ts +26 -26
- package/dist/contracts/superadmin-spaces.d.ts +170 -42
- package/dist/contracts/superadmin.d.ts +6 -93
- package/dist/contracts/superadmin.js +6 -14
- package/dist/contracts/tags.d.ts +10 -9
- package/dist/contracts/tags.js +2 -1
- package/dist/contracts/teams.d.ts +21 -22
- package/dist/contracts/teams.js +0 -1
- package/dist/contracts/theme-json.d.ts +30 -0
- package/dist/contracts/theme-json.js +48 -0
- package/dist/contracts/variables.d.ts +0 -2
- package/dist/contracts/variables.js +0 -5
- package/dist/contracts/webhooks.d.ts +2 -0
- package/dist/contracts/webhooks.js +1 -1
- package/dist/contracts/zero.d.ts +5 -10
- package/dist/docs/agent-prose.d.ts +43 -3
- package/dist/docs/agent-prose.js +146 -7
- package/dist/docs/agent-setup.js +45 -13
- package/dist/docs/agent-solutions.d.ts +5 -5
- package/dist/docs/agent-solutions.js +2 -2
- package/dist/docs/catalog.d.ts +650 -0
- package/dist/docs/catalog.js +758 -0
- package/dist/docs/error-docs.d.ts +0 -2
- package/dist/docs/error-docs.js +77 -35
- package/dist/docs/index-build.d.ts +17 -0
- package/dist/docs/index-build.js +24 -0
- package/dist/docs/search.d.ts +54 -0
- package/dist/docs/search.js +96 -0
- package/dist/docs/skill-distribution.d.ts +5 -3
- package/dist/docs/skill-distribution.js +8 -8
- package/dist/utils/access-match.d.ts +39 -0
- package/dist/utils/access-match.js +296 -0
- package/dist/utils/auth-redirect.d.ts +3 -1
- package/dist/utils/auth-redirect.js +21 -1
- package/dist/utils/build-settings.d.ts +6 -0
- package/dist/utils/build-settings.js +429 -46
- package/dist/utils/claim-token.d.ts +8 -0
- package/dist/utils/claim-token.js +23 -2
- package/dist/utils/content-type.d.ts +1 -0
- package/dist/utils/content-type.js +1 -1
- package/dist/utils/credential-policy.d.ts +54 -0
- package/dist/utils/{access-policy.js → credential-policy.js} +28 -2
- package/dist/utils/gate-theme.d.ts +61 -0
- package/dist/utils/gate-theme.js +217 -0
- package/dist/utils/git-repository.d.ts +0 -1
- package/dist/utils/git-repository.js +0 -3
- package/dist/utils/id-hints.d.ts +8 -0
- package/dist/utils/id-hints.js +61 -0
- package/dist/utils/local-space-state.d.ts +91 -0
- package/dist/utils/local-space-state.js +251 -0
- package/dist/utils/oauth-signed-query.d.ts +8 -0
- package/dist/utils/oauth-signed-query.js +26 -0
- package/dist/utils/publish-detection.d.ts +0 -8
- package/dist/utils/publish-detection.js +0 -93
- package/dist/utils/publish-policy.d.ts +6 -5
- package/dist/utils/publish-policy.js +71 -7
- package/dist/utils/query-keys.d.ts +15 -4
- package/dist/utils/query-keys.js +27 -4
- package/dist/utils/runtime-paths.d.ts +0 -1
- package/dist/utils/runtime-paths.js +0 -1
- package/dist/utils/runtime-upload-batch.d.ts +18 -0
- package/dist/utils/runtime-upload-batch.js +90 -0
- package/dist/utils/runtime-upload.d.ts +2 -0
- package/dist/utils/runtime-upload.js +5 -0
- package/dist/utils/space-config.d.ts +4 -0
- package/dist/utils/space-config.js +10 -1
- package/dist/utils/space-theme.d.ts +2 -0
- package/dist/utils/space-theme.js +9 -0
- package/dist/utils/static-runtime-policy.d.ts +0 -21
- package/dist/utils/static-runtime-policy.js +19 -103
- package/dist/utils/upload-session.d.ts +1 -1
- package/dist/utils/wpcom-auth-redirects.d.ts +32 -2
- package/dist/utils/wpcom-auth-redirects.js +26 -10
- package/dist/vocabulary.d.ts +130 -30
- package/dist/vocabulary.js +77 -36
- package/package.json +16 -1
- package/dist/contracts/account.d.ts +0 -28
- package/dist/contracts/account.js +0 -54
- package/dist/contracts/intercom.d.ts +0 -6
- package/dist/contracts/intercom.js +0 -5
- package/dist/contracts/telemetry.d.ts +0 -2
- package/dist/contracts/telemetry.js +0 -1
- package/dist/utils/access-policy.d.ts +0 -39
- package/dist/utils/error-display.d.ts +0 -7
- package/dist/utils/error-display.js +0 -42
|
@@ -10,9 +10,9 @@ export declare const SuperadminSpaceHostnameSchema: z.ZodObject<{
|
|
|
10
10
|
branch_alias: "branch_alias";
|
|
11
11
|
}>;
|
|
12
12
|
mode: z.ZodNullable<z.ZodEnum<{
|
|
13
|
-
serve: "serve";
|
|
14
13
|
redirect: "redirect";
|
|
15
14
|
proxy: "proxy";
|
|
15
|
+
serve: "serve";
|
|
16
16
|
}>>;
|
|
17
17
|
status: z.ZodNullable<z.ZodString>;
|
|
18
18
|
primary: z.ZodBoolean;
|
|
@@ -27,8 +27,8 @@ export declare const SuperadminSpaceVersionZeroSchema: z.ZodObject<{
|
|
|
27
27
|
appName: z.ZodString;
|
|
28
28
|
serverRuntime: z.ZodString;
|
|
29
29
|
inspectPolicy: z.ZodEnum<{
|
|
30
|
-
private: "private";
|
|
31
30
|
public: "public";
|
|
31
|
+
private: "private";
|
|
32
32
|
}>;
|
|
33
33
|
tableCount: z.ZodNumber;
|
|
34
34
|
queryCount: z.ZodNumber;
|
|
@@ -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
|
-
error: "error";
|
|
50
49
|
info: "info";
|
|
50
|
+
error: "error";
|
|
51
51
|
debug: "debug";
|
|
52
52
|
warn: "warn";
|
|
53
53
|
}>>;
|
|
@@ -81,8 +81,8 @@ export declare const SuperadminSpaceVersionSchema: z.ZodObject<{
|
|
|
81
81
|
appName: z.ZodString;
|
|
82
82
|
serverRuntime: z.ZodString;
|
|
83
83
|
inspectPolicy: z.ZodEnum<{
|
|
84
|
-
private: "private";
|
|
85
84
|
public: "public";
|
|
85
|
+
private: "private";
|
|
86
86
|
}>;
|
|
87
87
|
tableCount: z.ZodNumber;
|
|
88
88
|
queryCount: z.ZodNumber;
|
|
@@ -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
|
-
error: "error";
|
|
104
103
|
info: "info";
|
|
104
|
+
error: "error";
|
|
105
105
|
debug: "debug";
|
|
106
106
|
warn: "warn";
|
|
107
107
|
}>>;
|
|
@@ -133,8 +133,8 @@ export declare const SuperadminSpaceDetailSchema: z.ZodObject<{
|
|
|
133
133
|
slug: z.ZodString;
|
|
134
134
|
title: z.ZodString;
|
|
135
135
|
status: z.ZodEnum<{
|
|
136
|
-
provisioning: "provisioning";
|
|
137
136
|
active: "active";
|
|
137
|
+
provisioning: "provisioning";
|
|
138
138
|
updating: "updating";
|
|
139
139
|
moving: "moving";
|
|
140
140
|
deleting: "deleting";
|
|
@@ -147,6 +147,7 @@ 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";
|
|
150
151
|
}>;
|
|
151
152
|
}, z.core.$strip>>;
|
|
152
153
|
claimState: z.ZodNullable<z.ZodObject<{
|
|
@@ -160,7 +161,31 @@ export declare const SuperadminSpaceDetailSchema: z.ZodObject<{
|
|
|
160
161
|
defaultHostname: z.ZodString;
|
|
161
162
|
publicName: z.ZodString;
|
|
162
163
|
liveUrl: z.ZodString;
|
|
164
|
+
thumbnail: z.ZodNullable<z.ZodObject<{
|
|
165
|
+
kind: z.ZodEnum<{
|
|
166
|
+
image: "image";
|
|
167
|
+
screenshot: "screenshot";
|
|
168
|
+
}>;
|
|
169
|
+
provider: z.ZodEnum<{
|
|
170
|
+
"wpcom-mshots": "wpcom-mshots";
|
|
171
|
+
"wpcom-site-accelerator": "wpcom-site-accelerator";
|
|
172
|
+
}>;
|
|
173
|
+
url: z.ZodString;
|
|
174
|
+
sourceUrl: z.ZodString;
|
|
175
|
+
}, z.core.$strip>>;
|
|
163
176
|
dataLocation: z.ZodString;
|
|
177
|
+
region: z.ZodString;
|
|
178
|
+
placementMode: z.ZodEnum<{
|
|
179
|
+
shared: "shared";
|
|
180
|
+
dedicated: "dedicated";
|
|
181
|
+
}>;
|
|
182
|
+
burstable: z.ZodNullable<z.ZodBoolean>;
|
|
183
|
+
archivedBytes: z.ZodNumber;
|
|
184
|
+
tierPolicy: z.ZodEnum<{
|
|
185
|
+
auto: "auto";
|
|
186
|
+
always_hot: "always_hot";
|
|
187
|
+
}>;
|
|
188
|
+
moving: z.ZodBoolean;
|
|
164
189
|
channels: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
165
190
|
versionId: z.ZodOptional<z.ZodString>;
|
|
166
191
|
weighted: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -175,6 +200,7 @@ export declare const SuperadminSpaceDetailSchema: z.ZodObject<{
|
|
|
175
200
|
path: z.ZodString;
|
|
176
201
|
status: z.ZodNumber;
|
|
177
202
|
}, z.core.$strip>]>>;
|
|
203
|
+
cleanUrls: z.ZodOptional<z.ZodBoolean>;
|
|
178
204
|
listing: z.ZodOptional<z.ZodBoolean>;
|
|
179
205
|
meta: z.ZodOptional<z.ZodObject<{
|
|
180
206
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -207,6 +233,7 @@ export declare const SuperadminSpaceDetailSchema: z.ZodObject<{
|
|
|
207
233
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
208
234
|
}, z.core.$strip>>>;
|
|
209
235
|
}, z.core.$strip>>;
|
|
236
|
+
requireReview: z.ZodOptional<z.ZodBoolean>;
|
|
210
237
|
}, z.core.$strip>>;
|
|
211
238
|
}, z.core.$strip>>;
|
|
212
239
|
templates: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -233,6 +260,15 @@ export declare const SuperadminSpaceDetailSchema: z.ZodObject<{
|
|
|
233
260
|
}, z.core.$strip>>>;
|
|
234
261
|
}, z.core.$strip>>;
|
|
235
262
|
}, z.core.$strip>>;
|
|
263
|
+
pages: z.ZodOptional<z.ZodObject<{
|
|
264
|
+
theme: z.ZodOptional<z.ZodObject<{
|
|
265
|
+
accent: z.ZodOptional<z.ZodString>;
|
|
266
|
+
background: z.ZodOptional<z.ZodString>;
|
|
267
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
268
|
+
name: z.ZodOptional<z.ZodString>;
|
|
269
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
270
|
+
}, z.core.$strip>>;
|
|
271
|
+
}, z.core.$strip>>;
|
|
236
272
|
build: z.ZodOptional<z.ZodObject<{
|
|
237
273
|
rootDirectory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
238
274
|
installDirectory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -245,6 +281,15 @@ export declare const SuperadminSpaceDetailSchema: z.ZodObject<{
|
|
|
245
281
|
allowUnsupportedPlatformFeatures: z.ZodOptional<z.ZodBoolean>;
|
|
246
282
|
timeoutSeconds: z.ZodOptional<z.ZodNumber>;
|
|
247
283
|
}, z.core.$strict>>;
|
|
284
|
+
placement: z.ZodOptional<z.ZodObject<{
|
|
285
|
+
region: z.ZodOptional<z.ZodString>;
|
|
286
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
287
|
+
shared: "shared";
|
|
288
|
+
dedicated: "dedicated";
|
|
289
|
+
}>>;
|
|
290
|
+
burstable: z.ZodOptional<z.ZodBoolean>;
|
|
291
|
+
}, z.core.$strict>>;
|
|
292
|
+
markdownNegotiation: z.ZodOptional<z.ZodBoolean>;
|
|
248
293
|
experimental_gutenberg: z.ZodOptional<z.ZodBoolean>;
|
|
249
294
|
inject: z.ZodOptional<z.ZodObject<{
|
|
250
295
|
head: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -256,8 +301,11 @@ export declare const SuperadminSpaceDetailSchema: z.ZodObject<{
|
|
|
256
301
|
noindex: z.ZodBoolean;
|
|
257
302
|
policy: z.ZodNullable<z.ZodObject<{
|
|
258
303
|
rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
304
|
+
id: z.ZodOptional<z.ZodString>;
|
|
259
305
|
match: z.ZodDefault<z.ZodObject<{
|
|
260
306
|
host: z.ZodOptional<z.ZodString>;
|
|
307
|
+
hostPattern: z.ZodOptional<z.ZodString>;
|
|
308
|
+
hostTemplate: z.ZodOptional<z.ZodString>;
|
|
261
309
|
pathPattern: z.ZodOptional<z.ZodString>;
|
|
262
310
|
channel: z.ZodOptional<z.ZodString>;
|
|
263
311
|
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -274,39 +322,55 @@ export declare const SuperadminSpaceDetailSchema: z.ZodObject<{
|
|
|
274
322
|
challenge: "challenge";
|
|
275
323
|
}>;
|
|
276
324
|
auth: z.ZodOptional<z.ZodObject<{
|
|
277
|
-
|
|
325
|
+
requiredGrants: z.ZodArray<z.ZodString>;
|
|
326
|
+
issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
327
|
+
kid: z.ZodString;
|
|
328
|
+
alg: z.ZodLiteral<"EdDSA">;
|
|
329
|
+
publicKey: z.ZodString;
|
|
330
|
+
grantNamespaces: z.ZodArray<z.ZodString>;
|
|
331
|
+
}, z.core.$strip>>>;
|
|
332
|
+
acquire: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
333
|
+
type: z.ZodLiteral<"password">;
|
|
278
334
|
ref: z.ZodString;
|
|
279
335
|
transport: z.ZodEnum<{
|
|
280
336
|
basic: "basic";
|
|
281
337
|
form: "form";
|
|
282
338
|
}>;
|
|
283
339
|
username: z.ZodOptional<z.ZodString>;
|
|
284
|
-
}, z.core.$strip
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
alg: z.ZodLiteral<"EdDSA">;
|
|
290
|
-
publicKey: z.ZodString;
|
|
291
|
-
grantNamespaces: z.ZodArray<z.ZodString>;
|
|
292
|
-
}, z.core.$strip>>>;
|
|
293
|
-
loginUrl: z.ZodOptional<z.ZodString>;
|
|
294
|
-
cookieName: z.ZodOptional<z.ZodString>;
|
|
295
|
-
}, z.core.$strip>>;
|
|
340
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
341
|
+
type: z.ZodLiteral<"login">;
|
|
342
|
+
url: z.ZodString;
|
|
343
|
+
label: z.ZodOptional<z.ZodString>;
|
|
344
|
+
}, z.core.$strip>], "type">>>;
|
|
296
345
|
}, z.core.$strip>>;
|
|
346
|
+
managedBy: z.ZodOptional<z.ZodEnum<{
|
|
347
|
+
sharing: "sharing";
|
|
348
|
+
firewall: "firewall";
|
|
349
|
+
file_share: "file_share";
|
|
350
|
+
cast_reviewer: "cast_reviewer";
|
|
351
|
+
team_default: "team_default";
|
|
352
|
+
}>>;
|
|
353
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
297
354
|
reasonCode: z.ZodOptional<z.ZodString>;
|
|
298
355
|
message: z.ZodOptional<z.ZodString>;
|
|
299
356
|
}, z.core.$strip>>>;
|
|
357
|
+
issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
358
|
+
kid: z.ZodString;
|
|
359
|
+
alg: z.ZodLiteral<"EdDSA">;
|
|
360
|
+
publicKey: z.ZodString;
|
|
361
|
+
grantNamespaces: z.ZodArray<z.ZodString>;
|
|
362
|
+
}, z.core.$strip>>>;
|
|
363
|
+
sessionVersion: z.ZodOptional<z.ZodNumber>;
|
|
300
364
|
}, z.core.$strip>>;
|
|
301
365
|
operation: z.ZodNullable<z.ZodObject<{
|
|
302
366
|
id: z.ZodString;
|
|
303
367
|
kind: z.ZodString;
|
|
304
368
|
status: z.ZodEnum<{
|
|
305
369
|
failed: "failed";
|
|
370
|
+
canceled: "canceled";
|
|
306
371
|
queued: "queued";
|
|
307
372
|
running: "running";
|
|
308
373
|
succeeded: "succeeded";
|
|
309
|
-
canceled: "canceled";
|
|
310
374
|
}>;
|
|
311
375
|
resources: z.ZodArray<z.ZodObject<{
|
|
312
376
|
type: z.ZodString;
|
|
@@ -320,16 +384,16 @@ export declare const SuperadminSpaceDetailSchema: z.ZodObject<{
|
|
|
320
384
|
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
321
385
|
code: z.ZodString;
|
|
322
386
|
severity: z.ZodEnum<{
|
|
387
|
+
info: "info";
|
|
323
388
|
warning: "warning";
|
|
324
389
|
error: "error";
|
|
325
|
-
info: "info";
|
|
326
390
|
}>;
|
|
327
391
|
message: z.ZodString;
|
|
328
392
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
329
393
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
394
|
+
registrar: "registrar";
|
|
330
395
|
wpcloud: "wpcloud";
|
|
331
396
|
dns: "dns";
|
|
332
|
-
registrar: "registrar";
|
|
333
397
|
runtime: "runtime";
|
|
334
398
|
}>>>;
|
|
335
399
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -353,9 +417,9 @@ export declare const SuperadminSpaceDetailSchema: z.ZodObject<{
|
|
|
353
417
|
branch_alias: "branch_alias";
|
|
354
418
|
}>;
|
|
355
419
|
mode: z.ZodNullable<z.ZodEnum<{
|
|
356
|
-
serve: "serve";
|
|
357
420
|
redirect: "redirect";
|
|
358
421
|
proxy: "proxy";
|
|
422
|
+
serve: "serve";
|
|
359
423
|
}>>;
|
|
360
424
|
status: z.ZodNullable<z.ZodString>;
|
|
361
425
|
primary: z.ZodBoolean;
|
|
@@ -389,8 +453,8 @@ export declare const SuperadminSpaceDetailSchema: z.ZodObject<{
|
|
|
389
453
|
appName: z.ZodString;
|
|
390
454
|
serverRuntime: z.ZodString;
|
|
391
455
|
inspectPolicy: z.ZodEnum<{
|
|
392
|
-
private: "private";
|
|
393
456
|
public: "public";
|
|
457
|
+
private: "private";
|
|
394
458
|
}>;
|
|
395
459
|
tableCount: z.ZodNumber;
|
|
396
460
|
queryCount: z.ZodNumber;
|
|
@@ -408,8 +472,8 @@ export declare const SuperadminSpaceDetailSchema: z.ZodObject<{
|
|
|
408
472
|
centralErrorLogCount: z.ZodNumber;
|
|
409
473
|
latestLogAt: z.ZodNullable<z.ZodString>;
|
|
410
474
|
latestLogLevel: z.ZodNullable<z.ZodEnum<{
|
|
411
|
-
error: "error";
|
|
412
475
|
info: "info";
|
|
476
|
+
error: "error";
|
|
413
477
|
debug: "debug";
|
|
414
478
|
warn: "warn";
|
|
415
479
|
}>>;
|
|
@@ -477,8 +541,8 @@ export declare const SuperadminAnonymousSpaceAssignResponseSchema: z.ZodObject<{
|
|
|
477
541
|
slug: z.ZodString;
|
|
478
542
|
title: z.ZodString;
|
|
479
543
|
status: z.ZodEnum<{
|
|
480
|
-
provisioning: "provisioning";
|
|
481
544
|
active: "active";
|
|
545
|
+
provisioning: "provisioning";
|
|
482
546
|
updating: "updating";
|
|
483
547
|
moving: "moving";
|
|
484
548
|
deleting: "deleting";
|
|
@@ -491,6 +555,7 @@ export declare const SuperadminAnonymousSpaceAssignResponseSchema: z.ZodObject<{
|
|
|
491
555
|
abuse_takedown: "abuse_takedown";
|
|
492
556
|
tenant_suspended: "tenant_suspended";
|
|
493
557
|
site_suspended: "site_suspended";
|
|
558
|
+
visit_cap_exceeded: "visit_cap_exceeded";
|
|
494
559
|
}>;
|
|
495
560
|
}, z.core.$strip>>;
|
|
496
561
|
claimState: z.ZodNullable<z.ZodObject<{
|
|
@@ -504,7 +569,31 @@ export declare const SuperadminAnonymousSpaceAssignResponseSchema: z.ZodObject<{
|
|
|
504
569
|
defaultHostname: z.ZodString;
|
|
505
570
|
publicName: z.ZodString;
|
|
506
571
|
liveUrl: z.ZodString;
|
|
572
|
+
thumbnail: z.ZodNullable<z.ZodObject<{
|
|
573
|
+
kind: z.ZodEnum<{
|
|
574
|
+
image: "image";
|
|
575
|
+
screenshot: "screenshot";
|
|
576
|
+
}>;
|
|
577
|
+
provider: z.ZodEnum<{
|
|
578
|
+
"wpcom-mshots": "wpcom-mshots";
|
|
579
|
+
"wpcom-site-accelerator": "wpcom-site-accelerator";
|
|
580
|
+
}>;
|
|
581
|
+
url: z.ZodString;
|
|
582
|
+
sourceUrl: z.ZodString;
|
|
583
|
+
}, z.core.$strip>>;
|
|
507
584
|
dataLocation: z.ZodString;
|
|
585
|
+
region: z.ZodString;
|
|
586
|
+
placementMode: z.ZodEnum<{
|
|
587
|
+
shared: "shared";
|
|
588
|
+
dedicated: "dedicated";
|
|
589
|
+
}>;
|
|
590
|
+
burstable: z.ZodNullable<z.ZodBoolean>;
|
|
591
|
+
archivedBytes: z.ZodNumber;
|
|
592
|
+
tierPolicy: z.ZodEnum<{
|
|
593
|
+
auto: "auto";
|
|
594
|
+
always_hot: "always_hot";
|
|
595
|
+
}>;
|
|
596
|
+
moving: z.ZodBoolean;
|
|
508
597
|
channels: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
509
598
|
versionId: z.ZodOptional<z.ZodString>;
|
|
510
599
|
weighted: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -519,6 +608,7 @@ export declare const SuperadminAnonymousSpaceAssignResponseSchema: z.ZodObject<{
|
|
|
519
608
|
path: z.ZodString;
|
|
520
609
|
status: z.ZodNumber;
|
|
521
610
|
}, z.core.$strip>]>>;
|
|
611
|
+
cleanUrls: z.ZodOptional<z.ZodBoolean>;
|
|
522
612
|
listing: z.ZodOptional<z.ZodBoolean>;
|
|
523
613
|
meta: z.ZodOptional<z.ZodObject<{
|
|
524
614
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -551,6 +641,7 @@ export declare const SuperadminAnonymousSpaceAssignResponseSchema: z.ZodObject<{
|
|
|
551
641
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
552
642
|
}, z.core.$strip>>>;
|
|
553
643
|
}, z.core.$strip>>;
|
|
644
|
+
requireReview: z.ZodOptional<z.ZodBoolean>;
|
|
554
645
|
}, z.core.$strip>>;
|
|
555
646
|
}, z.core.$strip>>;
|
|
556
647
|
templates: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -577,6 +668,15 @@ export declare const SuperadminAnonymousSpaceAssignResponseSchema: z.ZodObject<{
|
|
|
577
668
|
}, z.core.$strip>>>;
|
|
578
669
|
}, z.core.$strip>>;
|
|
579
670
|
}, z.core.$strip>>;
|
|
671
|
+
pages: z.ZodOptional<z.ZodObject<{
|
|
672
|
+
theme: z.ZodOptional<z.ZodObject<{
|
|
673
|
+
accent: z.ZodOptional<z.ZodString>;
|
|
674
|
+
background: z.ZodOptional<z.ZodString>;
|
|
675
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
676
|
+
name: z.ZodOptional<z.ZodString>;
|
|
677
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
678
|
+
}, z.core.$strip>>;
|
|
679
|
+
}, z.core.$strip>>;
|
|
580
680
|
build: z.ZodOptional<z.ZodObject<{
|
|
581
681
|
rootDirectory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
582
682
|
installDirectory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -589,6 +689,15 @@ export declare const SuperadminAnonymousSpaceAssignResponseSchema: z.ZodObject<{
|
|
|
589
689
|
allowUnsupportedPlatformFeatures: z.ZodOptional<z.ZodBoolean>;
|
|
590
690
|
timeoutSeconds: z.ZodOptional<z.ZodNumber>;
|
|
591
691
|
}, z.core.$strict>>;
|
|
692
|
+
placement: z.ZodOptional<z.ZodObject<{
|
|
693
|
+
region: z.ZodOptional<z.ZodString>;
|
|
694
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
695
|
+
shared: "shared";
|
|
696
|
+
dedicated: "dedicated";
|
|
697
|
+
}>>;
|
|
698
|
+
burstable: z.ZodOptional<z.ZodBoolean>;
|
|
699
|
+
}, z.core.$strict>>;
|
|
700
|
+
markdownNegotiation: z.ZodOptional<z.ZodBoolean>;
|
|
592
701
|
experimental_gutenberg: z.ZodOptional<z.ZodBoolean>;
|
|
593
702
|
inject: z.ZodOptional<z.ZodObject<{
|
|
594
703
|
head: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -600,8 +709,11 @@ export declare const SuperadminAnonymousSpaceAssignResponseSchema: z.ZodObject<{
|
|
|
600
709
|
noindex: z.ZodBoolean;
|
|
601
710
|
policy: z.ZodNullable<z.ZodObject<{
|
|
602
711
|
rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
712
|
+
id: z.ZodOptional<z.ZodString>;
|
|
603
713
|
match: z.ZodDefault<z.ZodObject<{
|
|
604
714
|
host: z.ZodOptional<z.ZodString>;
|
|
715
|
+
hostPattern: z.ZodOptional<z.ZodString>;
|
|
716
|
+
hostTemplate: z.ZodOptional<z.ZodString>;
|
|
605
717
|
pathPattern: z.ZodOptional<z.ZodString>;
|
|
606
718
|
channel: z.ZodOptional<z.ZodString>;
|
|
607
719
|
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -618,39 +730,55 @@ export declare const SuperadminAnonymousSpaceAssignResponseSchema: z.ZodObject<{
|
|
|
618
730
|
challenge: "challenge";
|
|
619
731
|
}>;
|
|
620
732
|
auth: z.ZodOptional<z.ZodObject<{
|
|
621
|
-
|
|
733
|
+
requiredGrants: z.ZodArray<z.ZodString>;
|
|
734
|
+
issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
735
|
+
kid: z.ZodString;
|
|
736
|
+
alg: z.ZodLiteral<"EdDSA">;
|
|
737
|
+
publicKey: z.ZodString;
|
|
738
|
+
grantNamespaces: z.ZodArray<z.ZodString>;
|
|
739
|
+
}, z.core.$strip>>>;
|
|
740
|
+
acquire: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
741
|
+
type: z.ZodLiteral<"password">;
|
|
622
742
|
ref: z.ZodString;
|
|
623
743
|
transport: z.ZodEnum<{
|
|
624
744
|
basic: "basic";
|
|
625
745
|
form: "form";
|
|
626
746
|
}>;
|
|
627
747
|
username: z.ZodOptional<z.ZodString>;
|
|
628
|
-
}, z.core.$strip
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
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>>;
|
|
748
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
749
|
+
type: z.ZodLiteral<"login">;
|
|
750
|
+
url: z.ZodString;
|
|
751
|
+
label: z.ZodOptional<z.ZodString>;
|
|
752
|
+
}, z.core.$strip>], "type">>>;
|
|
640
753
|
}, z.core.$strip>>;
|
|
754
|
+
managedBy: z.ZodOptional<z.ZodEnum<{
|
|
755
|
+
sharing: "sharing";
|
|
756
|
+
firewall: "firewall";
|
|
757
|
+
file_share: "file_share";
|
|
758
|
+
cast_reviewer: "cast_reviewer";
|
|
759
|
+
team_default: "team_default";
|
|
760
|
+
}>>;
|
|
761
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
641
762
|
reasonCode: z.ZodOptional<z.ZodString>;
|
|
642
763
|
message: z.ZodOptional<z.ZodString>;
|
|
643
764
|
}, z.core.$strip>>>;
|
|
765
|
+
issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
766
|
+
kid: z.ZodString;
|
|
767
|
+
alg: z.ZodLiteral<"EdDSA">;
|
|
768
|
+
publicKey: z.ZodString;
|
|
769
|
+
grantNamespaces: z.ZodArray<z.ZodString>;
|
|
770
|
+
}, z.core.$strip>>>;
|
|
771
|
+
sessionVersion: z.ZodOptional<z.ZodNumber>;
|
|
644
772
|
}, z.core.$strip>>;
|
|
645
773
|
operation: z.ZodNullable<z.ZodObject<{
|
|
646
774
|
id: z.ZodString;
|
|
647
775
|
kind: z.ZodString;
|
|
648
776
|
status: z.ZodEnum<{
|
|
649
777
|
failed: "failed";
|
|
778
|
+
canceled: "canceled";
|
|
650
779
|
queued: "queued";
|
|
651
780
|
running: "running";
|
|
652
781
|
succeeded: "succeeded";
|
|
653
|
-
canceled: "canceled";
|
|
654
782
|
}>;
|
|
655
783
|
resources: z.ZodArray<z.ZodObject<{
|
|
656
784
|
type: z.ZodString;
|
|
@@ -664,16 +792,16 @@ export declare const SuperadminAnonymousSpaceAssignResponseSchema: z.ZodObject<{
|
|
|
664
792
|
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
665
793
|
code: z.ZodString;
|
|
666
794
|
severity: z.ZodEnum<{
|
|
795
|
+
info: "info";
|
|
667
796
|
warning: "warning";
|
|
668
797
|
error: "error";
|
|
669
|
-
info: "info";
|
|
670
798
|
}>;
|
|
671
799
|
message: z.ZodString;
|
|
672
800
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
673
801
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
802
|
+
registrar: "registrar";
|
|
674
803
|
wpcloud: "wpcloud";
|
|
675
804
|
dns: "dns";
|
|
676
|
-
registrar: "registrar";
|
|
677
805
|
runtime: "runtime";
|
|
678
806
|
}>>>;
|
|
679
807
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -122,13 +122,6 @@ export declare const SuperadminUserListSchema: z.ZodObject<{
|
|
|
122
122
|
prev: z.ZodNullable<z.ZodNumber>;
|
|
123
123
|
}, z.core.$strip>;
|
|
124
124
|
}, z.core.$strip>;
|
|
125
|
-
export declare const superadminUserRoleUpdateSchema: z.ZodObject<{
|
|
126
|
-
role: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
127
|
-
}, z.core.$strip>;
|
|
128
|
-
export declare const superadminUserBanSchema: z.ZodObject<{
|
|
129
|
-
banReason: z.ZodOptional<z.ZodString>;
|
|
130
|
-
banExpiresInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
131
|
-
}, z.core.$strip>;
|
|
132
125
|
export declare const superadminBuildInventoryQuerySchema: z.ZodObject<{
|
|
133
126
|
status: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodEnum<{
|
|
134
127
|
failed: "failed";
|
|
@@ -310,36 +303,6 @@ export declare const superadminAddonListQuerySchema: z.ZodObject<{
|
|
|
310
303
|
team: z.ZodOptional<z.ZodString>;
|
|
311
304
|
includeInactive: z.ZodDefault<z.ZodCoercedBoolean<unknown>>;
|
|
312
305
|
}, z.core.$strip>;
|
|
313
|
-
export declare const SuperadminAddonListSchema: z.ZodObject<{
|
|
314
|
-
addons: z.ZodArray<z.ZodObject<{
|
|
315
|
-
id: z.ZodString;
|
|
316
|
-
teamId: z.ZodString;
|
|
317
|
-
teamSlug: z.ZodNullable<z.ZodString>;
|
|
318
|
-
teamName: z.ZodNullable<z.ZodString>;
|
|
319
|
-
limitKey: z.ZodString;
|
|
320
|
-
amount: z.ZodNumber;
|
|
321
|
-
quantity: z.ZodNumber;
|
|
322
|
-
source: z.ZodEnum<{
|
|
323
|
-
grant: "grant";
|
|
324
|
-
stripe: "stripe";
|
|
325
|
-
}>;
|
|
326
|
-
reference: z.ZodNullable<z.ZodString>;
|
|
327
|
-
note: z.ZodNullable<z.ZodString>;
|
|
328
|
-
grantedBy: z.ZodNullable<z.ZodString>;
|
|
329
|
-
expiresAt: z.ZodNullable<z.ZodString>;
|
|
330
|
-
revokedAt: z.ZodNullable<z.ZodString>;
|
|
331
|
-
active: z.ZodBoolean;
|
|
332
|
-
createdAt: z.ZodString;
|
|
333
|
-
}, z.core.$strip>>;
|
|
334
|
-
total: z.ZodNumber;
|
|
335
|
-
limit: z.ZodNumber;
|
|
336
|
-
offset: z.ZodNumber;
|
|
337
|
-
pagination: z.ZodObject<{
|
|
338
|
-
count: z.ZodNumber;
|
|
339
|
-
next: z.ZodNullable<z.ZodNumber>;
|
|
340
|
-
prev: z.ZodNullable<z.ZodNumber>;
|
|
341
|
-
}, z.core.$strip>;
|
|
342
|
-
}, z.core.$strip>;
|
|
343
306
|
export declare const SuperadminBillingTransactionSchema: z.ZodObject<{
|
|
344
307
|
id: z.ZodString;
|
|
345
308
|
teamId: z.ZodNullable<z.ZodString>;
|
|
@@ -378,49 +341,6 @@ export declare const superadminBillingTransactionListQuerySchema: z.ZodObject<{
|
|
|
378
341
|
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
379
342
|
team: z.ZodOptional<z.ZodString>;
|
|
380
343
|
}, z.core.$strip>;
|
|
381
|
-
export declare const SuperadminBillingTransactionListSchema: z.ZodObject<{
|
|
382
|
-
transactions: z.ZodArray<z.ZodObject<{
|
|
383
|
-
id: z.ZodString;
|
|
384
|
-
teamId: z.ZodNullable<z.ZodString>;
|
|
385
|
-
teamSlug: z.ZodNullable<z.ZodString>;
|
|
386
|
-
teamName: z.ZodNullable<z.ZodString>;
|
|
387
|
-
provider: z.ZodEnum<{
|
|
388
|
-
stripe: "stripe";
|
|
389
|
-
app_store: "app_store";
|
|
390
|
-
google_play: "google_play";
|
|
391
|
-
}>;
|
|
392
|
-
kind: z.ZodEnum<{
|
|
393
|
-
purchase: "purchase";
|
|
394
|
-
renewal: "renewal";
|
|
395
|
-
refund: "refund";
|
|
396
|
-
adjustment: "adjustment";
|
|
397
|
-
}>;
|
|
398
|
-
scope: z.ZodEnum<{
|
|
399
|
-
domain: "domain";
|
|
400
|
-
other: "other";
|
|
401
|
-
plan: "plan";
|
|
402
|
-
seats: "seats";
|
|
403
|
-
}>;
|
|
404
|
-
planCode: z.ZodNullable<z.ZodString>;
|
|
405
|
-
productId: z.ZodNullable<z.ZodString>;
|
|
406
|
-
providerReference: z.ZodString;
|
|
407
|
-
amountMicros: z.ZodNullable<z.ZodNumber>;
|
|
408
|
-
currency: z.ZodNullable<z.ZodString>;
|
|
409
|
-
offerId: z.ZodNullable<z.ZodString>;
|
|
410
|
-
offerType: z.ZodNullable<z.ZodString>;
|
|
411
|
-
discountAmountMicros: z.ZodNullable<z.ZodNumber>;
|
|
412
|
-
occurredAt: z.ZodNullable<z.ZodString>;
|
|
413
|
-
createdAt: z.ZodString;
|
|
414
|
-
}, z.core.$strip>>;
|
|
415
|
-
total: z.ZodNumber;
|
|
416
|
-
limit: z.ZodNumber;
|
|
417
|
-
offset: z.ZodNumber;
|
|
418
|
-
pagination: z.ZodObject<{
|
|
419
|
-
count: z.ZodNumber;
|
|
420
|
-
next: z.ZodNullable<z.ZodNumber>;
|
|
421
|
-
prev: z.ZodNullable<z.ZodNumber>;
|
|
422
|
-
}, z.core.$strip>;
|
|
423
|
-
}, z.core.$strip>;
|
|
424
344
|
export declare const SuperadminTeamBillingOverviewSchema: z.ZodObject<{
|
|
425
345
|
team: z.ZodObject<{
|
|
426
346
|
id: z.ZodString;
|
|
@@ -446,8 +366,10 @@ export declare const SuperadminWpCloudSiteSchema: z.ZodObject<{
|
|
|
446
366
|
providerSiteId: z.ZodString;
|
|
447
367
|
placementId: z.ZodNullable<z.ZodString>;
|
|
448
368
|
placementKind: z.ZodNullable<z.ZodEnum<{
|
|
449
|
-
|
|
369
|
+
shared: "shared";
|
|
370
|
+
dedicated: "dedicated";
|
|
450
371
|
shared_org: "shared_org";
|
|
372
|
+
anonymous_pool: "anonymous_pool";
|
|
451
373
|
dedicated_space: "dedicated_space";
|
|
452
374
|
}>>;
|
|
453
375
|
placementState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -511,8 +433,10 @@ export declare const SuperadminWpCloudSiteListSchema: z.ZodObject<{
|
|
|
511
433
|
providerSiteId: z.ZodString;
|
|
512
434
|
placementId: z.ZodNullable<z.ZodString>;
|
|
513
435
|
placementKind: z.ZodNullable<z.ZodEnum<{
|
|
514
|
-
|
|
436
|
+
shared: "shared";
|
|
437
|
+
dedicated: "dedicated";
|
|
515
438
|
shared_org: "shared_org";
|
|
439
|
+
anonymous_pool: "anonymous_pool";
|
|
516
440
|
dedicated_space: "dedicated_space";
|
|
517
441
|
}>>;
|
|
518
442
|
placementState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -639,16 +563,5 @@ export declare const SuperadminAnonymousPoolListSchema: z.ZodObject<{
|
|
|
639
563
|
assignedSpaces: z.ZodNumber;
|
|
640
564
|
}, z.core.$strip>;
|
|
641
565
|
}, z.core.$strip>;
|
|
642
|
-
export declare const superadminWpCloudAssignSchema: z.ZodObject<{
|
|
643
|
-
spaceId: z.ZodString;
|
|
644
|
-
}, z.core.$strip>;
|
|
645
|
-
export type SuperadminAccess = z.infer<typeof SuperadminAccessSchema>;
|
|
646
566
|
export type SuperadminUser = z.infer<typeof SuperadminUserSchema>;
|
|
647
567
|
export type SuperadminUserList = z.infer<typeof SuperadminUserListSchema>;
|
|
648
|
-
export type SuperadminPlanGrant = z.infer<typeof SuperadminPlanGrantSchema>;
|
|
649
|
-
export type SuperadminAddon = z.infer<typeof SuperadminAddonSchema>;
|
|
650
|
-
export type SuperadminBillingTransaction = z.infer<typeof SuperadminBillingTransactionSchema>;
|
|
651
|
-
export type SuperadminPlanGrantList = z.infer<typeof SuperadminPlanGrantListSchema>;
|
|
652
|
-
export type SuperadminTeamBillingOverview = z.infer<typeof SuperadminTeamBillingOverviewSchema>;
|
|
653
|
-
export type SuperadminWpCloudSiteList = z.infer<typeof SuperadminWpCloudSiteListSchema>;
|
|
654
|
-
export type SuperadminAnonymousPoolList = z.infer<typeof SuperadminAnonymousPoolListSchema>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { makeOffsetListSchema } from "./common.js";
|
|
3
|
-
import { buildStatus } from "./enums.js";
|
|
3
|
+
import { buildStatus, siteClass } from "./enums.js";
|
|
4
4
|
// Operator-only offset pagination. The platform API uses opaque cursors exclusively
|
|
5
5
|
// (contracts/common.ts); the superadmin surface is the one sanctioned exception.
|
|
6
6
|
export const superadminPaginationSchema = z.object({
|
|
@@ -57,13 +57,6 @@ export const superadminUserListQuerySchema = z.object({
|
|
|
57
57
|
search: z.string().trim().optional(),
|
|
58
58
|
});
|
|
59
59
|
export const SuperadminUserListSchema = makeOffsetListSchema("users", SuperadminUserSchema, superadminPaginationSchema);
|
|
60
|
-
export const superadminUserRoleUpdateSchema = z.object({
|
|
61
|
-
role: z.union([z.string().min(1), z.array(z.string().min(1)).min(1)]),
|
|
62
|
-
});
|
|
63
|
-
export const superadminUserBanSchema = z.object({
|
|
64
|
-
banReason: z.string().trim().optional(),
|
|
65
|
-
banExpiresInSeconds: z.number().int().positive().optional(),
|
|
66
|
-
});
|
|
67
60
|
export const superadminBuildInventoryQuerySchema = z.object({
|
|
68
61
|
status: z.union([z.literal("all"), buildStatus]).default("all"),
|
|
69
62
|
driver: z.enum(["all", "e2b", "local"]).default("all"),
|
|
@@ -170,7 +163,6 @@ export const superadminAddonListQuerySchema = z.object({
|
|
|
170
163
|
team: z.string().trim().optional(),
|
|
171
164
|
includeInactive: z.coerce.boolean().default(false),
|
|
172
165
|
});
|
|
173
|
-
export const SuperadminAddonListSchema = makeOffsetListSchema("addons", SuperadminAddonSchema, superadminPaginationSchema);
|
|
174
166
|
// Transaction ledger rows: actual paid amounts in micros of `currency`,
|
|
175
167
|
// negative for refunds, with provider discount identifiers verbatim.
|
|
176
168
|
export const SuperadminBillingTransactionSchema = z.object({
|
|
@@ -197,7 +189,6 @@ export const superadminBillingTransactionListQuerySchema = z.object({
|
|
|
197
189
|
offset: z.coerce.number().int().min(0).default(0),
|
|
198
190
|
team: z.string().trim().optional(),
|
|
199
191
|
});
|
|
200
|
-
export const SuperadminBillingTransactionListSchema = makeOffsetListSchema("transactions", SuperadminBillingTransactionSchema, superadminPaginationSchema);
|
|
201
192
|
export const SuperadminTeamBillingOverviewSchema = z.object({
|
|
202
193
|
team: z.object({
|
|
203
194
|
id: z.string(),
|
|
@@ -217,7 +208,11 @@ export const SuperadminTeamBillingOverviewSchema = z.object({
|
|
|
217
208
|
export const SuperadminWpCloudSiteSchema = z.object({
|
|
218
209
|
providerSiteId: z.string(),
|
|
219
210
|
placementId: z.string().nullable(),
|
|
220
|
-
|
|
211
|
+
// Reuses `siteClass` (enums.ts) rather than a private legacy-only literal
|
|
212
|
+
// union — this echoes the site's raw placementMode column, which Deploy T
|
|
213
|
+
// still tolerates in both legacy (anonymous_pool/shared_org/dedicated_space)
|
|
214
|
+
// and normalized (shared/dedicated) form.
|
|
215
|
+
placementKind: siteClass.nullable(),
|
|
221
216
|
placementState: z.string().nullable().optional(),
|
|
222
217
|
placementStatus: z.string().nullable().optional(),
|
|
223
218
|
placementPrimaryHostname: z.string().nullable(),
|
|
@@ -304,6 +299,3 @@ export const SuperadminAnonymousPoolListSchema = z.object({
|
|
|
304
299
|
pools: z.array(SuperadminAnonymousPoolSchema),
|
|
305
300
|
summary: SuperadminAnonymousPoolSummarySchema,
|
|
306
301
|
});
|
|
307
|
-
export const superadminWpCloudAssignSchema = z.object({
|
|
308
|
-
spaceId: z.string().min(1),
|
|
309
|
-
});
|