@spacefast/common 0.0.23 → 0.0.26
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/brand-assets/LICENSE-Haskoy.txt +93 -0
- package/brand-assets/haskoy-latin-variable.woff2 +0 -0
- package/brand-assets/spacefast-favicon.svg +4 -4
- package/brand-assets/spacefast-sf-full-bleed.svg +3 -3
- package/brand-assets/spacefast-wordmark.svg +2 -4
- package/dist/agents/connect-targets.js +1 -1
- package/dist/agents/private-key-oauth.d.ts +0 -1
- package/dist/agents/private-key-oauth.js +46 -63
- package/dist/brand-assets-build.js +4 -6
- package/dist/brand-assets.d.ts +5 -15
- package/dist/brand-assets.js +15 -14
- package/dist/config/domains.d.ts +47 -7
- package/dist/config/domains.js +66 -10
- package/dist/config/index.d.ts +0 -1
- package/dist/config/index.js +0 -1
- package/dist/contracts/abuse.d.ts +2 -0
- package/dist/contracts/abuse.js +12 -0
- package/dist/contracts/access.d.ts +124 -12
- package/dist/contracts/access.js +73 -9
- package/dist/contracts/activity.d.ts +1 -1
- package/dist/contracts/activity.js +5 -12
- package/dist/contracts/api-keys.d.ts +21 -21
- package/dist/contracts/api-keys.js +2 -2
- package/dist/contracts/beta.js +1 -1
- package/dist/contracts/billing.d.ts +3 -35
- package/dist/contracts/billing.js +33 -52
- package/dist/contracts/builds.d.ts +30 -18
- package/dist/contracts/builds.js +28 -9
- package/dist/contracts/channels.js +1 -1
- package/dist/contracts/cli.d.ts +10 -0
- package/dist/contracts/cli.js +10 -0
- package/dist/contracts/collab-public.d.ts +63 -0
- package/dist/contracts/collab-public.js +46 -0
- package/dist/contracts/comments.d.ts +282 -53
- package/dist/contracts/comments.js +173 -52
- package/dist/contracts/common.d.ts +3 -3
- package/dist/contracts/common.js +5 -5
- package/dist/contracts/crons.d.ts +35 -0
- package/dist/contracts/crons.js +42 -0
- package/dist/contracts/device-auth.d.ts +6 -6
- package/dist/contracts/device-auth.js +2 -2
- package/dist/contracts/docs.js +2 -2
- package/dist/contracts/domains.d.ts +38 -27
- package/dist/contracts/domains.js +29 -2
- package/dist/contracts/enums.d.ts +34 -30
- package/dist/contracts/enums.js +62 -48
- package/dist/contracts/error-code-meta.d.ts +50 -125
- package/dist/contracts/error-code-meta.js +29 -41
- package/dist/contracts/error-codes.d.ts +1 -1
- package/dist/contracts/error-codes.js +14 -33
- package/dist/contracts/execution.d.ts +47 -66
- package/dist/contracts/execution.js +53 -49
- package/dist/contracts/feature-lifecycle-core.d.ts +0 -6
- package/dist/contracts/feature-lifecycle-core.js +2 -31
- package/dist/contracts/feature-lifecycle.d.ts +12 -52
- package/dist/contracts/feature-lifecycle.js +16 -59
- package/dist/contracts/features.d.ts +48 -60
- package/dist/contracts/features.js +59 -51
- package/dist/contracts/functions.d.ts +266 -72
- package/dist/contracts/functions.js +260 -37
- package/dist/contracts/git.d.ts +28 -34
- package/dist/contracts/git.js +10 -11
- package/dist/contracts/grants.d.ts +9 -5
- package/dist/contracts/grants.js +18 -9
- package/dist/contracts/ids.js +2 -2
- package/dist/contracts/internal.d.ts +8 -6
- package/dist/contracts/internal.js +12 -12
- package/dist/contracts/mcp.d.ts +11 -0
- package/dist/contracts/mcp.js +5 -0
- package/dist/contracts/me.js +1 -1
- package/dist/contracts/oauth-resources.d.ts +4 -3
- package/dist/contracts/oauth-resources.js +12 -3
- package/dist/contracts/operations.d.ts +90 -5
- package/dist/contracts/operations.js +77 -3
- package/dist/contracts/pages.d.ts +12 -7
- package/dist/contracts/pages.js +24 -1
- package/dist/contracts/plan-policy.d.ts +0 -2
- package/dist/contracts/plan-policy.js +2 -3
- package/dist/contracts/platform.d.ts +61 -148
- package/dist/contracts/platform.js +70 -126
- package/dist/contracts/publish-archive.d.ts +508 -0
- package/dist/contracts/publish-archive.js +32 -0
- package/dist/contracts/push-new.d.ts +4 -4
- package/dist/contracts/quotas.js +2 -2
- package/dist/contracts/repository-connections.d.ts +43 -30
- package/dist/contracts/repository-connections.js +11 -3
- package/dist/contracts/resources.d.ts +12 -24
- package/dist/contracts/resources.js +36 -16
- package/dist/contracts/runtime-api.d.ts +433 -192
- package/dist/contracts/runtime-api.js +421 -356
- package/dist/contracts/runtime-app.d.ts +127 -120
- package/dist/contracts/runtime-app.js +19 -10
- package/dist/contracts/runtime-db.d.ts +5 -5
- package/dist/contracts/runtime-db.js +2 -2
- package/dist/contracts/runtime-purge.d.ts +8 -0
- package/dist/contracts/runtime-purge.js +7 -0
- package/dist/contracts/runtime-services.d.ts +219 -0
- package/dist/contracts/runtime-services.js +437 -0
- package/dist/contracts/runtime-storage.d.ts +46 -32
- package/dist/contracts/runtime-storage.js +31 -8
- package/dist/contracts/sf-config-v1.d.ts +48 -10
- package/dist/contracts/space-config.d.ts +69 -18
- package/dist/contracts/space-config.js +226 -27
- package/dist/contracts/spaces.d.ts +236 -450
- package/dist/contracts/spaces.js +131 -151
- package/dist/contracts/superadmin-activity.d.ts +57 -4
- package/dist/contracts/superadmin-activity.js +48 -2
- package/dist/contracts/superadmin-search.d.ts +126 -0
- package/dist/contracts/superadmin-search.js +61 -0
- package/dist/contracts/superadmin-spaces.d.ts +361 -92
- package/dist/contracts/superadmin-spaces.js +97 -24
- package/dist/contracts/superadmin-teams.d.ts +28 -10
- package/dist/contracts/superadmin-teams.js +5 -8
- package/dist/contracts/superadmin-tenants.d.ts +0 -6
- package/dist/contracts/superadmin-tenants.js +1 -7
- package/dist/contracts/superadmin.d.ts +135 -54
- package/dist/contracts/superadmin.js +46 -23
- package/dist/contracts/tags.d.ts +12 -12
- package/dist/contracts/tags.js +3 -3
- package/dist/contracts/teams.d.ts +49 -14
- package/dist/contracts/teams.js +40 -22
- package/dist/contracts/transfers.d.ts +0 -49
- package/dist/contracts/transfers.js +4 -8
- package/dist/contracts/usage.d.ts +61 -0
- package/dist/contracts/usage.js +64 -0
- package/dist/contracts/variables.d.ts +2 -7
- package/dist/contracts/variables.js +9 -8
- package/dist/contracts/webhooks.d.ts +2 -2
- package/dist/contracts/zero.d.ts +102 -73
- package/dist/contracts/zero.js +94 -32
- package/dist/dashboard-paths/index.d.ts +1 -1
- package/dist/dashboard-paths/index.js +1 -0
- package/dist/docs/agent-prose.d.ts +2 -2
- package/dist/docs/agent-prose.js +63 -70
- package/dist/docs/agent-setup.js +45 -15
- package/dist/docs/catalog.d.ts +24 -24
- package/dist/docs/catalog.js +35 -24
- package/dist/docs/error-docs.js +194 -270
- package/dist/docs/skills.d.ts +12 -12
- package/dist/docs/skills.js +4 -4
- package/dist/test-helpers/fetch-stub.d.ts +16 -0
- package/dist/test-helpers/fetch-stub.js +25 -0
- package/dist/utils/build-settings.d.ts +5 -1
- package/dist/utils/build-settings.js +91 -13
- package/dist/utils/canonical-json.d.ts +10 -0
- package/dist/utils/canonical-json.js +22 -0
- package/dist/utils/cast-transport.d.ts +28 -0
- package/dist/utils/cast-transport.js +52 -0
- package/dist/utils/claim-token.d.ts +0 -8
- package/dist/utils/claim-token.js +3 -15
- package/dist/utils/concurrency.js +1 -0
- package/dist/utils/credential-policy.d.ts +1 -1
- package/dist/utils/credential-policy.js +4 -3
- package/dist/utils/dns-instructions.js +9 -9
- package/dist/utils/env-file.d.ts +17 -0
- package/dist/utils/env-file.js +96 -0
- package/dist/utils/error-code.d.ts +2 -0
- package/dist/utils/error-code.js +8 -0
- package/dist/utils/generate-space-name.d.ts +8 -10
- package/dist/utils/generate-space-name.js +206 -21
- package/dist/utils/grant-decision.fixtures.json +2938 -0
- package/dist/utils/grants.d.ts +2 -0
- package/dist/utils/grants.js +26 -1
- package/dist/utils/gravatar.d.ts +9 -0
- package/dist/utils/gravatar.js +31 -0
- package/dist/utils/idempotency.d.ts +6 -0
- package/dist/utils/idempotency.js +28 -0
- package/dist/utils/local-space-state.d.ts +9 -16
- package/dist/utils/local-space-state.js +20 -50
- package/dist/utils/one-shot-replay.d.ts +4 -1
- package/dist/utils/page-colors.d.ts +14 -12
- package/dist/utils/page-colors.js +15 -13
- package/dist/utils/page-fonts.d.ts +2 -2
- package/dist/utils/page-fonts.js +15 -4
- package/dist/utils/pages.d.ts +21 -3
- package/dist/utils/pages.js +42 -13
- package/dist/utils/publish-form-data.d.ts +12 -0
- package/dist/utils/publish-form-data.js +10 -0
- package/dist/utils/publish-policy.d.ts +27 -0
- package/dist/utils/publish-policy.fixtures.json +403 -0
- package/dist/utils/publish-policy.js +45 -20
- package/dist/utils/push-new.d.ts +7 -0
- package/dist/utils/push-new.js +7 -0
- package/dist/utils/query-keys.d.ts +4 -5
- package/dist/utils/query-keys.js +2 -3
- package/dist/utils/runtime-paths.d.ts +5 -0
- package/dist/utils/runtime-paths.js +5 -0
- package/dist/utils/runtime-upload-batch.d.ts +0 -5
- package/dist/utils/runtime-upload-batch.js +1 -27
- package/dist/utils/runtime-upload.d.ts +6 -11
- package/dist/utils/runtime-upload.js +10 -13
- package/dist/utils/secure-local-file.js +5 -16
- package/dist/utils/space-config.d.ts +1 -34
- package/dist/utils/space-config.js +8 -326
- package/dist/utils/static-runtime-policy.d.ts +9 -3
- package/dist/utils/static-runtime-policy.fixtures.json +38 -41
- package/dist/utils/static-runtime-policy.js +22 -56
- package/dist/utils/storage-policy.d.ts +1 -1
- package/dist/utils/storage-policy.js +3 -1
- package/dist/utils/structured-error.d.ts +14 -0
- package/dist/utils/structured-error.js +22 -0
- package/dist/utils/upload-session.d.ts +4 -1
- package/dist/utils/upload-session.js +33 -5
- package/dist/utils/version-path.js +13 -4
- package/dist/vocabulary.d.ts +13 -11
- package/dist/vocabulary.js +42 -28
- package/package.json +7 -17
- package/dist/config/postgres-budget.d.ts +0 -129
- package/dist/config/postgres-budget.js +0 -140
- package/dist/config/postgres-budget.json +0 -51
- package/dist/contracts/archives.d.ts +0 -331
- package/dist/contracts/archives.js +0 -120
- package/dist/contracts/deployments.d.ts +0 -574
- package/dist/contracts/deployments.js +0 -97
- package/dist/contracts/sites.d.ts +0 -416
- package/dist/contracts/sites.js +0 -168
- package/dist/contracts/superadmin-queues.d.ts +0 -414
- package/dist/contracts/superadmin-queues.js +0 -202
- package/dist/contracts/superadmin-runtime.d.ts +0 -27
- package/dist/contracts/superadmin-runtime.js +0 -38
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/utils/api.d.ts +0 -4
- package/dist/utils/api.js +0 -13
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { accessScopePathSchema } from "./access.js";
|
|
3
|
+
import { makeOffsetListSchema } from "./common.js";
|
|
4
|
+
import { spaceStatus } from "./enums.js";
|
|
3
5
|
import { SpaceSchema } from "./resources.js";
|
|
6
|
+
import { superadminPaginationSchema } from "./superadmin.js";
|
|
4
7
|
import { ZERO_RUNTIME_KIND } from "./zero.js";
|
|
5
|
-
const zeroLogLevelSchema = z.enum(["debug", "info", "warn", "error"]);
|
|
6
8
|
export const SuperadminSpaceHostnameSchema = z.object({
|
|
7
9
|
hostname: z.string(),
|
|
8
10
|
url: z.string(),
|
|
@@ -39,12 +41,13 @@ export const SuperadminSpaceVersionZeroSchema = z
|
|
|
39
41
|
runnerCompatibilityTarget: z.string().nullable(),
|
|
40
42
|
runnerSha256: z.string().nullable(),
|
|
41
43
|
blockIncompatibleRollback: z.boolean(),
|
|
44
|
+
// No log counts. A capsule's output is the space's runtime log like any
|
|
45
|
+
// other tier's, and that lives in one place only — the provider's PHP error
|
|
46
|
+
// log, windowed and paged. Summarising it per version would mean scanning
|
|
47
|
+
// that window on every superadmin page load; read it on the log surface
|
|
48
|
+
// instead.
|
|
42
49
|
operations: z
|
|
43
50
|
.object({
|
|
44
|
-
centralLogCount: z.number().int().nonnegative(),
|
|
45
|
-
centralErrorLogCount: z.number().int().nonnegative(),
|
|
46
|
-
latestLogAt: z.string().datetime().nullable(),
|
|
47
|
-
latestLogLevel: zeroLogLevelSchema.nullable(),
|
|
48
51
|
replayEventCount: z.number().int().nonnegative(),
|
|
49
52
|
latestReplayEventAt: z.string().datetime().nullable(),
|
|
50
53
|
latestReplayEventId: z.string().nullable(),
|
|
@@ -102,27 +105,97 @@ export const SuperadminSpaceViewLinkSchema = z
|
|
|
102
105
|
url: z.string().url(),
|
|
103
106
|
})
|
|
104
107
|
.strict();
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
108
|
+
// The cross-tenant Space list. Same Space resource the customer API returns —
|
|
109
|
+
// operators need the identical shape, not a parallel projection — narrowed by
|
|
110
|
+
// the operator-only facets (tenant, team, ownership, lifecycle, serving).
|
|
111
|
+
export const SuperadminSpaceListSchema = makeOffsetListSchema("spaces", SpaceSchema, superadminPaginationSchema);
|
|
112
|
+
export const superadminSpaceListQuerySchema = z.object({
|
|
113
|
+
limit: z.coerce.number().int().min(1).max(100).default(25),
|
|
114
|
+
offset: z.coerce.number().int().min(0).default(0),
|
|
115
|
+
// Unscoped search is restricted to slug prefixes and exact ids so the query
|
|
116
|
+
// stays index-backed; substring search requires a scoping filter.
|
|
117
|
+
search: z.string().trim().optional(),
|
|
118
|
+
tenantId: z.string().trim().optional(),
|
|
119
|
+
teamId: z.string().trim().optional(),
|
|
120
|
+
// Customer-360: every space owned by any team this user is a member of.
|
|
121
|
+
memberUserId: z.string().trim().optional(),
|
|
122
|
+
ownership: z.enum(["team", "external", "anonymous"]).optional(),
|
|
123
|
+
status: spaceStatus.optional(),
|
|
124
|
+
// Serving axis, independent of lifecycle status: true selects spaces whose
|
|
125
|
+
// serving is currently disabled (takedown, suspension), false the rest.
|
|
126
|
+
disabled: z.stringbool().optional(),
|
|
119
127
|
});
|
|
120
|
-
|
|
121
|
-
|
|
128
|
+
// Per-space scan visibility. The evidence is content-addressed — one verdict
|
|
129
|
+
// per (digest, engine, signature DB version), shared by every version that
|
|
130
|
+
// published the same bytes — so this projects it back onto the version's
|
|
131
|
+
// manifest, which is the coordinate an operator actually has.
|
|
132
|
+
export const superadminSpaceScanResultsQuerySchema = z.object({
|
|
133
|
+
// Narrow to one version; otherwise the newest `versionLimit` are returned.
|
|
134
|
+
versionId: z.string().trim().min(1).optional(),
|
|
135
|
+
versionLimit: z.coerce.number().int().min(1).max(20).default(5),
|
|
122
136
|
});
|
|
123
|
-
export const
|
|
137
|
+
export const SuperadminSpaceScanVerdictSchema = z
|
|
138
|
+
.object({
|
|
139
|
+
engine: z.string(),
|
|
140
|
+
signatureDbVersion: z.string(),
|
|
141
|
+
// The evidence row exactly as the engine wrote it. The hash allowlist never
|
|
142
|
+
// rewrites this — suppression is prospective, not a retraction.
|
|
143
|
+
verdict: z.enum(["clean", "flagged", "skipped"]),
|
|
144
|
+
// What enforcement acts on: an allowlisted media-hash flag reads clean.
|
|
145
|
+
effectiveVerdict: z.enum(["clean", "flagged", "skipped"]),
|
|
146
|
+
whitelisted: z.boolean(),
|
|
147
|
+
category: z.string().nullable(),
|
|
148
|
+
severity: z.number().int().nullable(),
|
|
149
|
+
signature: z.string().nullable(),
|
|
150
|
+
firstSeenAt: z.string().datetime().nullable(),
|
|
151
|
+
})
|
|
152
|
+
.strict();
|
|
153
|
+
export const SuperadminSpaceScanFileSchema = z
|
|
154
|
+
.object({
|
|
155
|
+
path: z.string(),
|
|
156
|
+
size: z.number().int().nonnegative(),
|
|
157
|
+
// Historical manifest rows and sourceUrl entries can lack a digest; those
|
|
158
|
+
// files are uncorrelatable and count as unscanned.
|
|
159
|
+
sha256: z.string().nullable(),
|
|
160
|
+
verdicts: z.array(SuperadminSpaceScanVerdictSchema),
|
|
161
|
+
})
|
|
162
|
+
.strict();
|
|
163
|
+
export const SuperadminSpaceScanVersionSchema = z
|
|
164
|
+
.object({
|
|
165
|
+
versionId: z.string(),
|
|
166
|
+
number: z.number().int().nullable(),
|
|
167
|
+
status: z.string(),
|
|
168
|
+
readyAt: z.string().datetime().nullable(),
|
|
169
|
+
files: z.array(SuperadminSpaceScanFileSchema),
|
|
170
|
+
// One bucket per manifest file, by the worst effective verdict it carries:
|
|
171
|
+
// flagged beats skipped beats clean, and a file with no evidence row at all
|
|
172
|
+
// is unscanned. The four always sum to the manifest file count.
|
|
173
|
+
summary: z
|
|
174
|
+
.object({
|
|
175
|
+
flagged: z.number().int().nonnegative(),
|
|
176
|
+
skipped: z.number().int().nonnegative(),
|
|
177
|
+
clean: z.number().int().nonnegative(),
|
|
178
|
+
unscanned: z.number().int().nonnegative(),
|
|
179
|
+
})
|
|
180
|
+
.strict(),
|
|
181
|
+
})
|
|
182
|
+
.strict();
|
|
183
|
+
export const SuperadminSpaceScanResultsSchema = z
|
|
184
|
+
.object({
|
|
185
|
+
// The aggregated space-level verdict the enforcement pipeline settled on.
|
|
186
|
+
spaceScanVerdict: z.string().nullable(),
|
|
187
|
+
versions: z.array(SuperadminSpaceScanVersionSchema),
|
|
188
|
+
})
|
|
189
|
+
.strict();
|
|
190
|
+
// Operator re-home: one assign for every space, claimed or not. The reason is
|
|
191
|
+
// the operator's own note on why ownership moved — it lands in the space's
|
|
192
|
+
// activity feed, so the customer can read it.
|
|
193
|
+
export const superadminSpaceAssignSchema = z
|
|
194
|
+
.object({
|
|
124
195
|
teamId: z.string().min(1),
|
|
125
|
-
|
|
126
|
-
|
|
196
|
+
reason: z.string().trim().min(1).max(500).optional(),
|
|
197
|
+
})
|
|
198
|
+
.strict();
|
|
199
|
+
export const SuperadminSpaceAssignResponseSchema = z.object({
|
|
127
200
|
space: SpaceSchema,
|
|
128
201
|
});
|
|
@@ -14,12 +14,21 @@ export declare const SuperadminTeamSchema: z.ZodObject<{
|
|
|
14
14
|
updatedAt: z.ZodString;
|
|
15
15
|
}, z.core.$strip>;
|
|
16
16
|
export declare const SuperadminTeamMemberSchema: z.ZodObject<{
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
joinedAt: z.ZodString;
|
|
17
|
+
id: z.ZodString;
|
|
18
|
+
teamId: z.ZodString;
|
|
20
19
|
userId: z.ZodString;
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
role: z.ZodEnum<{
|
|
21
|
+
admin: "admin";
|
|
22
|
+
owner: "owner";
|
|
23
|
+
member: "member";
|
|
24
|
+
}>;
|
|
25
|
+
createdAt: z.ZodString;
|
|
26
|
+
user: z.ZodNullable<z.ZodObject<{
|
|
27
|
+
id: z.ZodString;
|
|
28
|
+
name: z.ZodString;
|
|
29
|
+
email: z.ZodString;
|
|
30
|
+
image: z.ZodNullable<z.ZodString>;
|
|
31
|
+
}, z.core.$strip>>;
|
|
23
32
|
userBanned: z.ZodBoolean;
|
|
24
33
|
}, z.core.$strip>;
|
|
25
34
|
export declare const SuperadminTeamDetailSchema: z.ZodObject<{
|
|
@@ -36,12 +45,21 @@ export declare const SuperadminTeamDetailSchema: z.ZodObject<{
|
|
|
36
45
|
createdAt: z.ZodString;
|
|
37
46
|
updatedAt: z.ZodString;
|
|
38
47
|
members: z.ZodArray<z.ZodObject<{
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
joinedAt: z.ZodString;
|
|
48
|
+
id: z.ZodString;
|
|
49
|
+
teamId: z.ZodString;
|
|
42
50
|
userId: z.ZodString;
|
|
43
|
-
|
|
44
|
-
|
|
51
|
+
role: z.ZodEnum<{
|
|
52
|
+
admin: "admin";
|
|
53
|
+
owner: "owner";
|
|
54
|
+
member: "member";
|
|
55
|
+
}>;
|
|
56
|
+
createdAt: z.ZodString;
|
|
57
|
+
user: z.ZodNullable<z.ZodObject<{
|
|
58
|
+
id: z.ZodString;
|
|
59
|
+
name: z.ZodString;
|
|
60
|
+
email: z.ZodString;
|
|
61
|
+
image: z.ZodNullable<z.ZodString>;
|
|
62
|
+
}, z.core.$strip>>;
|
|
45
63
|
userBanned: z.ZodBoolean;
|
|
46
64
|
}, z.core.$strip>>;
|
|
47
65
|
}, z.core.$strip>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { makeOffsetListSchema } from "./common.js";
|
|
3
3
|
import { superadminPaginationSchema } from "./superadmin.js";
|
|
4
|
+
import { TeamMemberSchema } from "./teams.js";
|
|
4
5
|
export const SuperadminTeamSchema = z.object({
|
|
5
6
|
id: z.string(),
|
|
6
7
|
tenantId: z.string(),
|
|
@@ -15,14 +16,10 @@ export const SuperadminTeamSchema = z.object({
|
|
|
15
16
|
createdAt: z.string().datetime(),
|
|
16
17
|
updatedAt: z.string().datetime(),
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
userId: z.string(),
|
|
23
|
-
userName: z.string(),
|
|
24
|
-
userEmail: z.string().email(),
|
|
25
|
-
userBanned: z.boolean(),
|
|
19
|
+
// Superadmin reads the same membership shape every other surface does, plus
|
|
20
|
+
// the one operator-only fact the product API never exposes.
|
|
21
|
+
export const SuperadminTeamMemberSchema = TeamMemberSchema.extend({
|
|
22
|
+
userBanned: z.boolean().describe("Whether the member's user account is banned."),
|
|
26
23
|
});
|
|
27
24
|
export const SuperadminTeamDetailSchema = SuperadminTeamSchema.extend({
|
|
28
25
|
members: z.array(SuperadminTeamMemberSchema),
|
|
@@ -7,7 +7,6 @@ export declare const SuperadminProviderClientSchema: z.ZodObject<{
|
|
|
7
7
|
label: z.ZodString;
|
|
8
8
|
apiBase: z.ZodNullable<z.ZodString>;
|
|
9
9
|
defaultDatacenter: z.ZodNullable<z.ZodString>;
|
|
10
|
-
defaultPhpVersion: z.ZodNullable<z.ZodString>;
|
|
11
10
|
status: z.ZodEnum<{
|
|
12
11
|
active: "active";
|
|
13
12
|
disabled: "disabled";
|
|
@@ -25,7 +24,6 @@ export declare const SuperadminProviderClientListSchema: z.ZodObject<{
|
|
|
25
24
|
label: z.ZodString;
|
|
26
25
|
apiBase: z.ZodNullable<z.ZodString>;
|
|
27
26
|
defaultDatacenter: z.ZodNullable<z.ZodString>;
|
|
28
|
-
defaultPhpVersion: z.ZodNullable<z.ZodString>;
|
|
29
27
|
status: z.ZodEnum<{
|
|
30
28
|
active: "active";
|
|
31
29
|
disabled: "disabled";
|
|
@@ -41,7 +39,6 @@ export declare const superadminProviderClientCreateSchema: z.ZodObject<{
|
|
|
41
39
|
apiToken: z.ZodString;
|
|
42
40
|
apiBase: z.ZodOptional<z.ZodString>;
|
|
43
41
|
defaultDatacenter: z.ZodOptional<z.ZodString>;
|
|
44
|
-
defaultPhpVersion: z.ZodOptional<z.ZodString>;
|
|
45
42
|
tenantId: z.ZodString;
|
|
46
43
|
}, z.core.$strip>;
|
|
47
44
|
export declare const superadminProviderClientPatchSchema: z.ZodObject<{
|
|
@@ -49,7 +46,6 @@ export declare const superadminProviderClientPatchSchema: z.ZodObject<{
|
|
|
49
46
|
apiToken: z.ZodOptional<z.ZodString>;
|
|
50
47
|
apiBase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
48
|
defaultDatacenter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
-
defaultPhpVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
49
|
status: z.ZodOptional<z.ZodEnum<{
|
|
54
50
|
active: "active";
|
|
55
51
|
disabled: "disabled";
|
|
@@ -88,7 +84,6 @@ export declare const SuperadminTenantSchema: z.ZodObject<{
|
|
|
88
84
|
label: z.ZodString;
|
|
89
85
|
apiBase: z.ZodNullable<z.ZodString>;
|
|
90
86
|
defaultDatacenter: z.ZodNullable<z.ZodString>;
|
|
91
|
-
defaultPhpVersion: z.ZodNullable<z.ZodString>;
|
|
92
87
|
status: z.ZodEnum<{
|
|
93
88
|
active: "active";
|
|
94
89
|
disabled: "disabled";
|
|
@@ -130,7 +125,6 @@ export declare const SuperadminTenantListSchema: z.ZodObject<{
|
|
|
130
125
|
label: z.ZodString;
|
|
131
126
|
apiBase: z.ZodNullable<z.ZodString>;
|
|
132
127
|
defaultDatacenter: z.ZodNullable<z.ZodString>;
|
|
133
|
-
defaultPhpVersion: z.ZodNullable<z.ZodString>;
|
|
134
128
|
status: z.ZodEnum<{
|
|
135
129
|
active: "active";
|
|
136
130
|
disabled: "disabled";
|
|
@@ -3,7 +3,7 @@ import { makeOffsetListSchema } from "./common.js";
|
|
|
3
3
|
import { providerClientStatus, tenantKind, tenantStatus } from "./enums.js";
|
|
4
4
|
import { superadminPaginationSchema } from "./superadmin.js";
|
|
5
5
|
// ProviderClient (`pvc_`) = one WP.Cloud API client identity sites are
|
|
6
|
-
// provisioned under (
|
|
6
|
+
// provisioned under (the platform spec "ProviderClient"). Operator-only
|
|
7
7
|
// resource. Each row is a tenant-owned BYO account; the first-party client is
|
|
8
8
|
// configured separately as the platform context. The API token is write-only;
|
|
9
9
|
// responses expose only a masked hint, never the secret.
|
|
@@ -18,10 +18,6 @@ export const SuperadminProviderClientSchema = z.object({
|
|
|
18
18
|
.string()
|
|
19
19
|
.nullable()
|
|
20
20
|
.describe("Default datacenter for sites provisioned under this client."),
|
|
21
|
-
defaultPhpVersion: z
|
|
22
|
-
.string()
|
|
23
|
-
.nullable()
|
|
24
|
-
.describe("Default PHP version for sites provisioned under this client."),
|
|
25
21
|
status: providerClientStatus.describe("Whether this client identity can provision sites."),
|
|
26
22
|
tokenHint: z
|
|
27
23
|
.string()
|
|
@@ -47,7 +43,6 @@ export const superadminProviderClientCreateSchema = z.object({
|
|
|
47
43
|
apiToken: z.string().trim().min(1),
|
|
48
44
|
apiBase: z.string().url().optional(),
|
|
49
45
|
defaultDatacenter: z.string().trim().min(1).optional(),
|
|
50
|
-
defaultPhpVersion: z.string().trim().min(1).optional(),
|
|
51
46
|
tenantId: z.string().trim().min(1),
|
|
52
47
|
});
|
|
53
48
|
export const superadminProviderClientPatchSchema = z.object({
|
|
@@ -56,7 +51,6 @@ export const superadminProviderClientPatchSchema = z.object({
|
|
|
56
51
|
apiToken: z.string().trim().min(1).optional(),
|
|
57
52
|
apiBase: z.string().url().nullable().optional(),
|
|
58
53
|
defaultDatacenter: z.string().trim().min(1).nullable().optional(),
|
|
59
|
-
defaultPhpVersion: z.string().trim().min(1).nullable().optional(),
|
|
60
54
|
status: providerClientStatus.optional(),
|
|
61
55
|
tenantId: z.string().trim().min(1).optional(),
|
|
62
56
|
});
|
|
@@ -139,11 +139,21 @@ export declare const superadminBuildInventoryQuerySchema: z.ZodObject<{
|
|
|
139
139
|
e2b: "e2b";
|
|
140
140
|
}>>;
|
|
141
141
|
repository: z.ZodOptional<z.ZodString>;
|
|
142
|
+
spaceId: z.ZodOptional<z.ZodString>;
|
|
142
143
|
}, z.core.$strip>;
|
|
143
144
|
export declare const SuperadminBuildInventoryItemSchema: z.ZodObject<{
|
|
144
145
|
id: z.ZodString;
|
|
145
146
|
ref: z.ZodString;
|
|
146
|
-
status: z.
|
|
147
|
+
status: z.ZodEnum<{
|
|
148
|
+
failed: "failed";
|
|
149
|
+
canceled: "canceled";
|
|
150
|
+
waiting_for_source: "waiting_for_source";
|
|
151
|
+
uploading_source: "uploading_source";
|
|
152
|
+
queued: "queued";
|
|
153
|
+
running: "running";
|
|
154
|
+
succeeded: "succeeded";
|
|
155
|
+
skipped: "skipped";
|
|
156
|
+
}>;
|
|
147
157
|
spaceId: z.ZodString;
|
|
148
158
|
spaceSlug: z.ZodNullable<z.ZodString>;
|
|
149
159
|
teamId: z.ZodNullable<z.ZodString>;
|
|
@@ -161,24 +171,25 @@ export declare const SuperadminBuildInventoryItemSchema: z.ZodObject<{
|
|
|
161
171
|
failureMessage: z.ZodNullable<z.ZodString>;
|
|
162
172
|
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
163
173
|
outputBytes: z.ZodNullable<z.ZodNumber>;
|
|
164
|
-
updatedAt: z.ZodString;
|
|
165
|
-
}, z.core.$strip>;
|
|
166
|
-
export declare const SuperadminWebhookDeliverySchema: z.ZodObject<{
|
|
167
|
-
id: z.ZodString;
|
|
168
|
-
deliveryId: z.ZodString;
|
|
169
|
-
eventName: z.ZodString;
|
|
170
|
-
action: z.ZodNullable<z.ZodString>;
|
|
171
|
-
repositoryFullName: z.ZodNullable<z.ZodString>;
|
|
172
|
-
status: z.ZodString;
|
|
173
|
-
statusMessage: z.ZodNullable<z.ZodString>;
|
|
174
174
|
createdAt: z.ZodString;
|
|
175
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
176
|
+
finishedAt: z.ZodNullable<z.ZodString>;
|
|
175
177
|
updatedAt: z.ZodString;
|
|
176
178
|
}, z.core.$strip>;
|
|
177
|
-
export declare const
|
|
178
|
-
|
|
179
|
+
export declare const SuperadminBuildDetailSchema: z.ZodObject<{
|
|
180
|
+
build: z.ZodObject<{
|
|
179
181
|
id: z.ZodString;
|
|
180
182
|
ref: z.ZodString;
|
|
181
|
-
status: z.
|
|
183
|
+
status: z.ZodEnum<{
|
|
184
|
+
failed: "failed";
|
|
185
|
+
canceled: "canceled";
|
|
186
|
+
waiting_for_source: "waiting_for_source";
|
|
187
|
+
uploading_source: "uploading_source";
|
|
188
|
+
queued: "queued";
|
|
189
|
+
running: "running";
|
|
190
|
+
succeeded: "succeeded";
|
|
191
|
+
skipped: "skipped";
|
|
192
|
+
}>;
|
|
182
193
|
spaceId: z.ZodString;
|
|
183
194
|
spaceSlug: z.ZodNullable<z.ZodString>;
|
|
184
195
|
teamId: z.ZodNullable<z.ZodString>;
|
|
@@ -196,20 +207,122 @@ export declare const SuperadminBuildInventorySchema: z.ZodObject<{
|
|
|
196
207
|
failureMessage: z.ZodNullable<z.ZodString>;
|
|
197
208
|
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
198
209
|
outputBytes: z.ZodNullable<z.ZodNumber>;
|
|
210
|
+
createdAt: z.ZodString;
|
|
211
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
212
|
+
finishedAt: z.ZodNullable<z.ZodString>;
|
|
199
213
|
updatedAt: z.ZodString;
|
|
214
|
+
inputKind: z.ZodString;
|
|
215
|
+
command: z.ZodNullable<z.ZodString>;
|
|
216
|
+
retryOfBuildId: z.ZodNullable<z.ZodString>;
|
|
217
|
+
producedVersionId: z.ZodNullable<z.ZodString>;
|
|
218
|
+
reusedVersionId: z.ZodNullable<z.ZodString>;
|
|
219
|
+
settings: z.ZodObject<{
|
|
220
|
+
rootDirectory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
221
|
+
installDirectory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
222
|
+
installCommand: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
223
|
+
buildCommand: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
224
|
+
outputDirectory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
225
|
+
ignoredBuildCommand: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
226
|
+
frameworkPreset: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
227
|
+
platformPreset: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
228
|
+
allowUnsupportedPlatformFeatures: z.ZodDefault<z.ZodBoolean>;
|
|
229
|
+
timeoutSeconds: z.ZodDefault<z.ZodNumber>;
|
|
230
|
+
}, z.core.$strip>;
|
|
231
|
+
target: z.ZodObject<{
|
|
232
|
+
channel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
233
|
+
preview: z.ZodDefault<z.ZodBoolean>;
|
|
234
|
+
}, z.core.$strip>;
|
|
235
|
+
}, z.core.$strip>;
|
|
236
|
+
execution: z.ZodNullable<z.ZodObject<{
|
|
237
|
+
logOffset: z.ZodNullable<z.ZodNumber>;
|
|
238
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
239
|
+
terminationReason: z.ZodNullable<z.ZodEnum<{
|
|
240
|
+
command: "command";
|
|
241
|
+
timeout: "timeout";
|
|
242
|
+
}>>;
|
|
243
|
+
artifactDeadlineAt: z.ZodNullable<z.ZodString>;
|
|
244
|
+
launch: z.ZodNullable<z.ZodObject<{
|
|
245
|
+
state: z.ZodEnum<{
|
|
246
|
+
started: "started";
|
|
247
|
+
starting: "starting";
|
|
248
|
+
rejected: "rejected";
|
|
249
|
+
}>;
|
|
250
|
+
requestedAt: z.ZodString;
|
|
251
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
252
|
+
pid: z.ZodNullable<z.ZodNumber>;
|
|
253
|
+
rejectedReason: z.ZodNullable<z.ZodString>;
|
|
254
|
+
}, z.core.$strip>>;
|
|
255
|
+
phases: z.ZodArray<z.ZodObject<{
|
|
256
|
+
phase: z.ZodString;
|
|
257
|
+
at: z.ZodString;
|
|
258
|
+
}, z.core.$strip>>;
|
|
200
259
|
}, z.core.$strip>>;
|
|
201
|
-
|
|
260
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
261
|
+
code: z.ZodString;
|
|
262
|
+
severity: z.ZodEnum<{
|
|
263
|
+
info: "info";
|
|
264
|
+
error: "error";
|
|
265
|
+
warning: "warning";
|
|
266
|
+
}>;
|
|
267
|
+
message: z.ZodString;
|
|
268
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
269
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
270
|
+
registrar: "registrar";
|
|
271
|
+
infra: "infra";
|
|
272
|
+
dns: "dns";
|
|
273
|
+
runtime: "runtime";
|
|
274
|
+
}>>>;
|
|
275
|
+
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
276
|
+
fix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
277
|
+
retryable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
278
|
+
}, z.core.$strip>>;
|
|
279
|
+
logs: z.ZodArray<z.ZodObject<{
|
|
280
|
+
timestamp: z.ZodString;
|
|
281
|
+
level: z.ZodString;
|
|
282
|
+
code: z.ZodString;
|
|
283
|
+
message: z.ZodString;
|
|
284
|
+
}, z.core.$strip>>;
|
|
285
|
+
logCount: z.ZodNumber;
|
|
286
|
+
}, z.core.$strip>;
|
|
287
|
+
export declare const SuperadminBuildInventorySchema: z.ZodObject<{
|
|
288
|
+
builds: z.ZodArray<z.ZodObject<{
|
|
202
289
|
id: z.ZodString;
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
290
|
+
ref: z.ZodString;
|
|
291
|
+
status: z.ZodEnum<{
|
|
292
|
+
failed: "failed";
|
|
293
|
+
canceled: "canceled";
|
|
294
|
+
waiting_for_source: "waiting_for_source";
|
|
295
|
+
uploading_source: "uploading_source";
|
|
296
|
+
queued: "queued";
|
|
297
|
+
running: "running";
|
|
298
|
+
succeeded: "succeeded";
|
|
299
|
+
skipped: "skipped";
|
|
300
|
+
}>;
|
|
301
|
+
spaceId: z.ZodString;
|
|
302
|
+
spaceSlug: z.ZodNullable<z.ZodString>;
|
|
303
|
+
teamId: z.ZodNullable<z.ZodString>;
|
|
304
|
+
repository: z.ZodNullable<z.ZodString>;
|
|
305
|
+
branch: z.ZodNullable<z.ZodString>;
|
|
306
|
+
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
307
|
+
commitSha: z.ZodNullable<z.ZodString>;
|
|
308
|
+
driver: z.ZodNullable<z.ZodString>;
|
|
309
|
+
sandboxId: z.ZodNullable<z.ZodString>;
|
|
310
|
+
runnerJobId: z.ZodNullable<z.ZodString>;
|
|
311
|
+
region: z.ZodNullable<z.ZodString>;
|
|
312
|
+
executionMetadataKeys: z.ZodArray<z.ZodString>;
|
|
313
|
+
e2bTemplateId: z.ZodNullable<z.ZodString>;
|
|
314
|
+
failureCode: z.ZodNullable<z.ZodString>;
|
|
315
|
+
failureMessage: z.ZodNullable<z.ZodString>;
|
|
316
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
317
|
+
outputBytes: z.ZodNullable<z.ZodNumber>;
|
|
209
318
|
createdAt: z.ZodString;
|
|
319
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
320
|
+
finishedAt: z.ZodNullable<z.ZodString>;
|
|
210
321
|
updatedAt: z.ZodString;
|
|
211
322
|
}, z.core.$strip>>;
|
|
212
323
|
}, z.core.$strip>;
|
|
324
|
+
export type SuperadminBuildInventoryItem = z.infer<typeof SuperadminBuildInventoryItemSchema>;
|
|
325
|
+
export type SuperadminBuildDetail = z.infer<typeof SuperadminBuildDetailSchema>;
|
|
213
326
|
export declare const superadminPlanGrantCreateSchema: z.ZodObject<{
|
|
214
327
|
team: z.ZodString;
|
|
215
328
|
plan: z.ZodEnum<{
|
|
@@ -268,9 +381,9 @@ export declare const SuperadminPlanGrantListSchema: z.ZodObject<{
|
|
|
268
381
|
export declare const superadminAddonCreateSchema: z.ZodObject<{
|
|
269
382
|
team: z.ZodString;
|
|
270
383
|
limit: z.ZodEnum<{
|
|
384
|
+
storageBytes: "storageBytes";
|
|
271
385
|
teamMembers: "teamMembers";
|
|
272
386
|
subTeams: "subTeams";
|
|
273
|
-
storageBytes: "storageBytes";
|
|
274
387
|
externalDomainGroups: "externalDomainGroups";
|
|
275
388
|
}>;
|
|
276
389
|
amount: z.ZodNumber;
|
|
@@ -314,8 +427,6 @@ export declare const SuperadminBillingTransactionSchema: z.ZodObject<{
|
|
|
314
427
|
teamName: z.ZodNullable<z.ZodString>;
|
|
315
428
|
provider: z.ZodEnum<{
|
|
316
429
|
stripe: "stripe";
|
|
317
|
-
app_store: "app_store";
|
|
318
|
-
google_play: "google_play";
|
|
319
430
|
}>;
|
|
320
431
|
kind: z.ZodEnum<{
|
|
321
432
|
purchase: "purchase";
|
|
@@ -356,8 +467,6 @@ export declare const SuperadminTeamBillingOverviewSchema: z.ZodObject<{
|
|
|
356
467
|
provider: z.ZodEnum<{
|
|
357
468
|
grant: "grant";
|
|
358
469
|
stripe: "stripe";
|
|
359
|
-
app_store: "app_store";
|
|
360
|
-
google_play: "google_play";
|
|
361
470
|
}>;
|
|
362
471
|
planCode: z.ZodString;
|
|
363
472
|
active: z.ZodBoolean;
|
|
@@ -369,26 +478,12 @@ export declare const SuperadminTeamBillingOverviewSchema: z.ZodObject<{
|
|
|
369
478
|
export declare const SuperadminWpCloudSiteSchema: z.ZodObject<{
|
|
370
479
|
providerSiteId: z.ZodString;
|
|
371
480
|
placementId: z.ZodNullable<z.ZodString>;
|
|
372
|
-
placementKind: z.ZodNullable<z.ZodEnum<{
|
|
373
|
-
shared: "shared";
|
|
374
|
-
dedicated: "dedicated";
|
|
375
|
-
shared_org: "shared_org";
|
|
376
|
-
anonymous_pool: "anonymous_pool";
|
|
377
|
-
dedicated_space: "dedicated_space";
|
|
378
|
-
}>>;
|
|
379
481
|
placementState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
380
482
|
placementStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
381
483
|
placementPrimaryHostname: z.ZodNullable<z.ZodString>;
|
|
382
484
|
placementDatacenterId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
383
485
|
placementRegion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
384
486
|
placementGeoAffinity: z.ZodNullable<z.ZodString>;
|
|
385
|
-
anonymousPoolId: z.ZodNullable<z.ZodString>;
|
|
386
|
-
anonymousPoolState: z.ZodNullable<z.ZodEnum<{
|
|
387
|
-
active: "active";
|
|
388
|
-
disabled: "disabled";
|
|
389
|
-
draining: "draining";
|
|
390
|
-
}>>;
|
|
391
|
-
anonymousPoolAssignedSpaceCount: z.ZodNullable<z.ZodNumber>;
|
|
392
487
|
assignedSpaceCount: z.ZodNumber;
|
|
393
488
|
assignedSpaces: z.ZodArray<z.ZodObject<{
|
|
394
489
|
id: z.ZodString;
|
|
@@ -437,26 +532,12 @@ export declare const SuperadminWpCloudSiteListSchema: z.ZodObject<{
|
|
|
437
532
|
sites: z.ZodArray<z.ZodObject<{
|
|
438
533
|
providerSiteId: z.ZodString;
|
|
439
534
|
placementId: z.ZodNullable<z.ZodString>;
|
|
440
|
-
placementKind: z.ZodNullable<z.ZodEnum<{
|
|
441
|
-
shared: "shared";
|
|
442
|
-
dedicated: "dedicated";
|
|
443
|
-
shared_org: "shared_org";
|
|
444
|
-
anonymous_pool: "anonymous_pool";
|
|
445
|
-
dedicated_space: "dedicated_space";
|
|
446
|
-
}>>;
|
|
447
535
|
placementState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
448
536
|
placementStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
449
537
|
placementPrimaryHostname: z.ZodNullable<z.ZodString>;
|
|
450
538
|
placementDatacenterId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
451
539
|
placementRegion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
452
540
|
placementGeoAffinity: z.ZodNullable<z.ZodString>;
|
|
453
|
-
anonymousPoolId: z.ZodNullable<z.ZodString>;
|
|
454
|
-
anonymousPoolState: z.ZodNullable<z.ZodEnum<{
|
|
455
|
-
active: "active";
|
|
456
|
-
disabled: "disabled";
|
|
457
|
-
draining: "draining";
|
|
458
|
-
}>>;
|
|
459
|
-
anonymousPoolAssignedSpaceCount: z.ZodNullable<z.ZodNumber>;
|
|
460
541
|
assignedSpaceCount: z.ZodNumber;
|
|
461
542
|
assignedSpaces: z.ZodArray<z.ZodObject<{
|
|
462
543
|
id: z.ZodString;
|