@spacefast/common 0.0.24 → 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 +65 -10
- package/dist/contracts/access.d.ts +3 -3
- package/dist/contracts/activity.d.ts +1 -1
- package/dist/contracts/activity.js +5 -3
- package/dist/contracts/api-keys.js +2 -2
- package/dist/contracts/billing.d.ts +2 -1
- package/dist/contracts/billing.js +30 -0
- package/dist/contracts/builds.d.ts +34 -22
- package/dist/contracts/builds.js +18 -6
- package/dist/contracts/channels.js +1 -1
- package/dist/contracts/comments.d.ts +1 -1
- package/dist/contracts/common.d.ts +6 -6
- 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.js +1 -1
- package/dist/contracts/docs.d.ts +5 -5
- package/dist/contracts/docs.js +2 -2
- package/dist/contracts/domains.d.ts +74 -63
- package/dist/contracts/domains.js +29 -2
- package/dist/contracts/enums.d.ts +3 -2
- package/dist/contracts/enums.js +10 -10
- package/dist/contracts/error-code-meta.d.ts +14 -0
- package/dist/contracts/error-code-meta.js +17 -0
- package/dist/contracts/error-codes.d.ts +1 -1
- package/dist/contracts/error-codes.js +4 -1
- package/dist/contracts/execution.d.ts +15 -12
- package/dist/contracts/execution.js +15 -12
- package/dist/contracts/feature-lifecycle.d.ts +4 -14
- package/dist/contracts/feature-lifecycle.js +0 -11
- package/dist/contracts/features.d.ts +33 -47
- package/dist/contracts/features.js +27 -20
- package/dist/contracts/functions.d.ts +169 -2
- package/dist/contracts/functions.js +160 -4
- package/dist/contracts/git.d.ts +27 -33
- package/dist/contracts/git.js +10 -11
- package/dist/contracts/grants.d.ts +2 -2
- package/dist/contracts/ids.js +2 -2
- package/dist/contracts/internal.d.ts +5 -16
- package/dist/contracts/internal.js +2 -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/operations.d.ts +4 -4
- package/dist/contracts/operations.js +2 -2
- package/dist/contracts/pages.d.ts +6 -6
- package/dist/contracts/plan-policy.d.ts +1 -1
- package/dist/contracts/plan-policy.js +1 -1
- package/dist/contracts/platform.d.ts +4 -4
- package/dist/contracts/publish-archive.d.ts +170 -160
- package/dist/contracts/publish-archive.js +8 -1
- 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 +8 -8
- package/dist/contracts/resources.js +6 -6
- package/dist/contracts/runtime-api.d.ts +103 -56
- package/dist/contracts/runtime-api.js +67 -26
- package/dist/contracts/runtime-app.d.ts +2 -2
- package/dist/contracts/runtime-db.d.ts +6 -6
- 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-storage.d.ts +3 -2
- package/dist/contracts/runtime-storage.js +2 -1
- package/dist/contracts/sf-config-v1.d.ts +48 -10
- package/dist/contracts/space-config.d.ts +60 -3
- package/dist/contracts/space-config.js +213 -18
- package/dist/contracts/spaces.d.ts +55 -74
- package/dist/contracts/spaces.js +11 -14
- package/dist/contracts/superadmin-spaces.d.ts +9 -9
- package/dist/contracts/superadmin-teams.d.ts +2 -2
- package/dist/contracts/superadmin-tenants.d.ts +0 -6
- package/dist/contracts/superadmin-tenants.js +1 -7
- package/dist/contracts/superadmin.d.ts +135 -22
- package/dist/contracts/superadmin.js +43 -12
- package/dist/contracts/tags.d.ts +21 -21
- package/dist/contracts/tags.js +3 -3
- package/dist/contracts/teams.d.ts +14 -17
- package/dist/contracts/teams.js +6 -6
- package/dist/contracts/transfers.js +2 -2
- package/dist/contracts/variables.d.ts +4 -4
- package/dist/contracts/variables.js +3 -3
- package/dist/contracts/webhooks.d.ts +4 -4
- package/dist/contracts/zero.d.ts +15 -17
- package/dist/contracts/zero.js +12 -12
- package/dist/docs/agent-prose.d.ts +1 -1
- package/dist/docs/agent-prose.js +11 -14
- package/dist/docs/agent-setup.js +5 -2
- package/dist/docs/catalog.d.ts +7 -7
- package/dist/docs/catalog.js +7 -7
- package/dist/docs/error-docs.js +145 -133
- package/dist/docs/skills.d.ts +12 -12
- package/dist/docs/skills.js +4 -4
- package/dist/test-helpers/fetch-stub.js +1 -0
- package/dist/utils/build-settings.d.ts +5 -1
- package/dist/utils/build-settings.js +82 -10
- package/dist/utils/canonical-json.js +1 -0
- package/dist/utils/concurrency.js +1 -0
- package/dist/utils/credential-policy.js +4 -3
- package/dist/utils/dns-instructions.js +9 -9
- package/dist/utils/error-code.js +1 -0
- package/dist/utils/grant-decision.fixtures.json +2 -2
- package/dist/utils/grants.js +3 -1
- package/dist/utils/local-space-state.d.ts +8 -11
- package/dist/utils/local-space-state.js +13 -24
- 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 +1 -1
- package/dist/utils/page-fonts.js +11 -18
- package/dist/utils/pages.d.ts +20 -1
- package/dist/utils/pages.js +22 -9
- package/dist/utils/publish-policy.d.ts +7 -0
- package/dist/utils/publish-policy.fixtures.json +11 -5
- package/dist/utils/publish-policy.js +9 -1
- package/dist/utils/query-keys.d.ts +4 -4
- package/dist/utils/query-keys.js +2 -2
- package/dist/utils/runtime-upload.d.ts +5 -0
- package/dist/utils/runtime-upload.js +7 -0
- package/dist/utils/secure-local-file.js +5 -16
- package/dist/utils/space-config.d.ts +1 -1
- package/dist/utils/space-config.js +3 -0
- 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/upload-session.d.ts +4 -1
- package/dist/utils/upload-session.js +33 -5
- package/dist/utils/version-path.js +1 -1
- package/dist/vocabulary.d.ts +8 -8
- package/dist/vocabulary.js +31 -20
- package/package.json +2 -17
|
@@ -18,8 +18,8 @@ export declare const SuperadminTeamMemberSchema: z.ZodObject<{
|
|
|
18
18
|
teamId: z.ZodString;
|
|
19
19
|
userId: z.ZodString;
|
|
20
20
|
role: z.ZodEnum<{
|
|
21
|
-
owner: "owner";
|
|
22
21
|
admin: "admin";
|
|
22
|
+
owner: "owner";
|
|
23
23
|
member: "member";
|
|
24
24
|
}>;
|
|
25
25
|
createdAt: z.ZodString;
|
|
@@ -49,8 +49,8 @@ export declare const SuperadminTeamDetailSchema: z.ZodObject<{
|
|
|
49
49
|
teamId: z.ZodString;
|
|
50
50
|
userId: z.ZodString;
|
|
51
51
|
role: z.ZodEnum<{
|
|
52
|
-
owner: "owner";
|
|
53
52
|
admin: "admin";
|
|
53
|
+
owner: "owner";
|
|
54
54
|
member: "member";
|
|
55
55
|
}>;
|
|
56
56
|
createdAt: z.ZodString;
|
|
@@ -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>>;
|
|
259
|
+
}, z.core.$strip>>;
|
|
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;
|
|
200
284
|
}, z.core.$strip>>;
|
|
201
|
-
|
|
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;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { BuildSettingsSchema, BuildTargetSchema } from "./builds.js";
|
|
3
|
+
import { baseDiagnosticSchema } from "./common.js";
|
|
2
4
|
import { makeOffsetListSchema } from "./common.js";
|
|
3
5
|
import { buildStatus } from "./enums.js";
|
|
6
|
+
import { versionLogEntrySchema } from "./spaces.js";
|
|
4
7
|
// Operator-only offset pagination. The platform API uses opaque cursors exclusively
|
|
5
8
|
// (contracts/common.ts); the superadmin surface is the one sanctioned exception.
|
|
6
9
|
export const superadminPaginationSchema = z.object({
|
|
@@ -61,11 +64,12 @@ export const superadminBuildInventoryQuerySchema = z.object({
|
|
|
61
64
|
status: z.union([z.literal("all"), buildStatus]).default("all"),
|
|
62
65
|
driver: z.enum(["all", "e2b", "local"]).default("all"),
|
|
63
66
|
repository: z.string().trim().optional(),
|
|
67
|
+
spaceId: z.string().trim().min(1).optional(),
|
|
64
68
|
});
|
|
65
69
|
export const SuperadminBuildInventoryItemSchema = z.object({
|
|
66
70
|
id: z.string(),
|
|
67
71
|
ref: z.string(),
|
|
68
|
-
status:
|
|
72
|
+
status: buildStatus,
|
|
69
73
|
spaceId: z.string(),
|
|
70
74
|
spaceSlug: z.string().nullable(),
|
|
71
75
|
teamId: z.string().nullable(),
|
|
@@ -83,22 +87,49 @@ export const SuperadminBuildInventoryItemSchema = z.object({
|
|
|
83
87
|
failureMessage: z.string().nullable(),
|
|
84
88
|
durationMs: z.number().nullable(),
|
|
85
89
|
outputBytes: z.number().nullable(),
|
|
86
|
-
updatedAt: z.string().datetime(),
|
|
87
|
-
});
|
|
88
|
-
export const SuperadminWebhookDeliverySchema = z.object({
|
|
89
|
-
id: z.string(),
|
|
90
|
-
deliveryId: z.string(),
|
|
91
|
-
eventName: z.string(),
|
|
92
|
-
action: z.string().nullable(),
|
|
93
|
-
repositoryFullName: z.string().nullable(),
|
|
94
|
-
status: z.string(),
|
|
95
|
-
statusMessage: z.string().nullable(),
|
|
96
90
|
createdAt: z.string().datetime(),
|
|
91
|
+
startedAt: z.string().datetime().nullable(),
|
|
92
|
+
finishedAt: z.string().datetime().nullable(),
|
|
97
93
|
updatedAt: z.string().datetime(),
|
|
98
94
|
});
|
|
95
|
+
export const SuperadminBuildDetailSchema = z.object({
|
|
96
|
+
build: SuperadminBuildInventoryItemSchema.extend({
|
|
97
|
+
inputKind: z.string(),
|
|
98
|
+
command: z.string().nullable(),
|
|
99
|
+
retryOfBuildId: z.string().nullable(),
|
|
100
|
+
producedVersionId: z.string().nullable(),
|
|
101
|
+
reusedVersionId: z.string().nullable(),
|
|
102
|
+
settings: BuildSettingsSchema,
|
|
103
|
+
target: BuildTargetSchema,
|
|
104
|
+
}),
|
|
105
|
+
execution: z
|
|
106
|
+
.object({
|
|
107
|
+
logOffset: z.number().int().nonnegative().nullable(),
|
|
108
|
+
exitCode: z.number().int().min(0).max(255).nullable(),
|
|
109
|
+
terminationReason: z.enum(["command", "timeout"]).nullable(),
|
|
110
|
+
artifactDeadlineAt: z.string().datetime().nullable(),
|
|
111
|
+
launch: z
|
|
112
|
+
.object({
|
|
113
|
+
state: z.enum(["starting", "started", "rejected"]),
|
|
114
|
+
requestedAt: z.string().datetime(),
|
|
115
|
+
startedAt: z.string().datetime().nullable(),
|
|
116
|
+
pid: z.number().int().nullable(),
|
|
117
|
+
rejectedReason: z.string().nullable(),
|
|
118
|
+
})
|
|
119
|
+
.nullable(),
|
|
120
|
+
phases: z.array(z.object({
|
|
121
|
+
phase: z.string(),
|
|
122
|
+
at: z.string().datetime(),
|
|
123
|
+
})),
|
|
124
|
+
})
|
|
125
|
+
.nullable(),
|
|
126
|
+
diagnostics: z.array(baseDiagnosticSchema),
|
|
127
|
+
// Newest first, capped server-side; logCount is the uncapped total.
|
|
128
|
+
logs: z.array(versionLogEntrySchema),
|
|
129
|
+
logCount: z.number().int().nonnegative(),
|
|
130
|
+
});
|
|
99
131
|
export const SuperadminBuildInventorySchema = z.object({
|
|
100
132
|
builds: z.array(SuperadminBuildInventoryItemSchema),
|
|
101
|
-
webhookDeliveries: z.array(SuperadminWebhookDeliverySchema),
|
|
102
133
|
});
|
|
103
134
|
// Superadmin-assigned subscriptions ("plan grants"): operator-issued plan
|
|
104
135
|
// entitlements with no payment provider and no transactions behind them.
|
package/dist/contracts/tags.d.ts
CHANGED
|
@@ -81,14 +81,14 @@ export declare const tagConsentPolicySchema: z.ZodObject<{
|
|
|
81
81
|
code: z.ZodString;
|
|
82
82
|
severity: z.ZodEnum<{
|
|
83
83
|
info: "info";
|
|
84
|
-
warning: "warning";
|
|
85
84
|
error: "error";
|
|
85
|
+
warning: "warning";
|
|
86
86
|
}>;
|
|
87
87
|
message: z.ZodString;
|
|
88
88
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
89
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
90
90
|
registrar: "registrar";
|
|
91
|
-
|
|
91
|
+
infra: "infra";
|
|
92
92
|
dns: "dns";
|
|
93
93
|
runtime: "runtime";
|
|
94
94
|
}>>>;
|
|
@@ -142,14 +142,14 @@ export declare const tagValidationResultSchema: z.ZodObject<{
|
|
|
142
142
|
code: z.ZodString;
|
|
143
143
|
severity: z.ZodEnum<{
|
|
144
144
|
info: "info";
|
|
145
|
-
warning: "warning";
|
|
146
145
|
error: "error";
|
|
146
|
+
warning: "warning";
|
|
147
147
|
}>;
|
|
148
148
|
message: z.ZodString;
|
|
149
149
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
150
150
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
151
151
|
registrar: "registrar";
|
|
152
|
-
|
|
152
|
+
infra: "infra";
|
|
153
153
|
dns: "dns";
|
|
154
154
|
runtime: "runtime";
|
|
155
155
|
}>>>;
|
|
@@ -191,14 +191,14 @@ export declare const tagVersionSchema: z.ZodObject<{
|
|
|
191
191
|
code: z.ZodString;
|
|
192
192
|
severity: z.ZodEnum<{
|
|
193
193
|
info: "info";
|
|
194
|
-
warning: "warning";
|
|
195
194
|
error: "error";
|
|
195
|
+
warning: "warning";
|
|
196
196
|
}>;
|
|
197
197
|
message: z.ZodString;
|
|
198
198
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
199
199
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
200
200
|
registrar: "registrar";
|
|
201
|
-
|
|
201
|
+
infra: "infra";
|
|
202
202
|
dns: "dns";
|
|
203
203
|
runtime: "runtime";
|
|
204
204
|
}>>>;
|
|
@@ -261,14 +261,14 @@ export declare const tagVersionListResponseSchema: z.ZodObject<{
|
|
|
261
261
|
code: z.ZodString;
|
|
262
262
|
severity: z.ZodEnum<{
|
|
263
263
|
info: "info";
|
|
264
|
-
warning: "warning";
|
|
265
264
|
error: "error";
|
|
265
|
+
warning: "warning";
|
|
266
266
|
}>;
|
|
267
267
|
message: z.ZodString;
|
|
268
268
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
269
269
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
270
270
|
registrar: "registrar";
|
|
271
|
-
|
|
271
|
+
infra: "infra";
|
|
272
272
|
dns: "dns";
|
|
273
273
|
runtime: "runtime";
|
|
274
274
|
}>>>;
|
|
@@ -324,14 +324,14 @@ export declare const tagVersionResponseSchema: z.ZodObject<{
|
|
|
324
324
|
code: z.ZodString;
|
|
325
325
|
severity: z.ZodEnum<{
|
|
326
326
|
info: "info";
|
|
327
|
-
warning: "warning";
|
|
328
327
|
error: "error";
|
|
328
|
+
warning: "warning";
|
|
329
329
|
}>;
|
|
330
330
|
message: z.ZodString;
|
|
331
331
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
332
332
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
333
333
|
registrar: "registrar";
|
|
334
|
-
|
|
334
|
+
infra: "infra";
|
|
335
335
|
dns: "dns";
|
|
336
336
|
runtime: "runtime";
|
|
337
337
|
}>>>;
|
|
@@ -419,14 +419,14 @@ export declare const tagValidateResponseSchema: z.ZodObject<{
|
|
|
419
419
|
code: z.ZodString;
|
|
420
420
|
severity: z.ZodEnum<{
|
|
421
421
|
info: "info";
|
|
422
|
-
warning: "warning";
|
|
423
422
|
error: "error";
|
|
423
|
+
warning: "warning";
|
|
424
424
|
}>;
|
|
425
425
|
message: z.ZodString;
|
|
426
426
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
427
427
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
428
428
|
registrar: "registrar";
|
|
429
|
-
|
|
429
|
+
infra: "infra";
|
|
430
430
|
dns: "dns";
|
|
431
431
|
runtime: "runtime";
|
|
432
432
|
}>>>;
|
|
@@ -640,14 +640,14 @@ export declare const tagApplyResponseSchema: z.ZodObject<{
|
|
|
640
640
|
code: z.ZodString;
|
|
641
641
|
severity: z.ZodEnum<{
|
|
642
642
|
info: "info";
|
|
643
|
-
warning: "warning";
|
|
644
643
|
error: "error";
|
|
644
|
+
warning: "warning";
|
|
645
645
|
}>;
|
|
646
646
|
message: z.ZodString;
|
|
647
647
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
648
648
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
649
649
|
registrar: "registrar";
|
|
650
|
-
|
|
650
|
+
infra: "infra";
|
|
651
651
|
dns: "dns";
|
|
652
652
|
runtime: "runtime";
|
|
653
653
|
}>>>;
|
|
@@ -673,14 +673,14 @@ export declare const tagApplyResponseSchema: z.ZodObject<{
|
|
|
673
673
|
code: z.ZodString;
|
|
674
674
|
severity: z.ZodEnum<{
|
|
675
675
|
info: "info";
|
|
676
|
-
warning: "warning";
|
|
677
676
|
error: "error";
|
|
677
|
+
warning: "warning";
|
|
678
678
|
}>;
|
|
679
679
|
message: z.ZodString;
|
|
680
680
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
681
681
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
682
682
|
registrar: "registrar";
|
|
683
|
-
|
|
683
|
+
infra: "infra";
|
|
684
684
|
dns: "dns";
|
|
685
685
|
runtime: "runtime";
|
|
686
686
|
}>>>;
|
|
@@ -856,8 +856,8 @@ export declare const tagTemplateDefinitionSchema: z.ZodObject<{
|
|
|
856
856
|
kind: z.ZodDefault<z.ZodEnum<{
|
|
857
857
|
boolean: "boolean";
|
|
858
858
|
text: "text";
|
|
859
|
-
url: "url";
|
|
860
859
|
secret: "secret";
|
|
860
|
+
url: "url";
|
|
861
861
|
textarea: "textarea";
|
|
862
862
|
}>>;
|
|
863
863
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -965,8 +965,8 @@ export declare const tagTemplateListResponseSchema: z.ZodObject<{
|
|
|
965
965
|
kind: z.ZodDefault<z.ZodEnum<{
|
|
966
966
|
boolean: "boolean";
|
|
967
967
|
text: "text";
|
|
968
|
-
url: "url";
|
|
969
968
|
secret: "secret";
|
|
969
|
+
url: "url";
|
|
970
970
|
textarea: "textarea";
|
|
971
971
|
}>>;
|
|
972
972
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1022,14 +1022,14 @@ export declare const tagConsentPolicyResponseSchema: z.ZodObject<{
|
|
|
1022
1022
|
code: z.ZodString;
|
|
1023
1023
|
severity: z.ZodEnum<{
|
|
1024
1024
|
info: "info";
|
|
1025
|
-
warning: "warning";
|
|
1026
1025
|
error: "error";
|
|
1026
|
+
warning: "warning";
|
|
1027
1027
|
}>;
|
|
1028
1028
|
message: z.ZodString;
|
|
1029
1029
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1030
1030
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1031
1031
|
registrar: "registrar";
|
|
1032
|
-
|
|
1032
|
+
infra: "infra";
|
|
1033
1033
|
dns: "dns";
|
|
1034
1034
|
runtime: "runtime";
|
|
1035
1035
|
}>>>;
|
|
@@ -1114,7 +1114,7 @@ export declare function listTagTemplates(): {
|
|
|
1114
1114
|
fields: {
|
|
1115
1115
|
key: string;
|
|
1116
1116
|
label: string;
|
|
1117
|
-
kind: "boolean" | "text" | "
|
|
1117
|
+
kind: "boolean" | "text" | "secret" | "url" | "textarea";
|
|
1118
1118
|
required: boolean;
|
|
1119
1119
|
placeholder?: string | undefined;
|
|
1120
1120
|
help?: string | undefined;
|
package/dist/contracts/tags.js
CHANGED
|
@@ -336,7 +336,7 @@ export const tagGraphSchema = z
|
|
|
336
336
|
consentPolicy: z.record(z.string(), z.unknown()).optional(),
|
|
337
337
|
})
|
|
338
338
|
.passthrough();
|
|
339
|
-
const
|
|
339
|
+
const tagGraphBudgetedFields = {
|
|
340
340
|
format: z.literal("spacefast.tag_graph.v1").default("spacefast.tag_graph.v1"),
|
|
341
341
|
tags: z.array(z.record(z.string(), z.unknown())).max(TAG_GRAPH_MAX_TAGS).default([]),
|
|
342
342
|
triggers: z.array(z.record(z.string(), z.unknown())).max(TAG_GRAPH_MAX_TRIGGERS).default([]),
|
|
@@ -350,11 +350,11 @@ const tagGraphBudgetedShape = {
|
|
|
350
350
|
consentPolicy: z.record(z.string(), z.unknown()).optional(),
|
|
351
351
|
};
|
|
352
352
|
export const tagGraphCloneSchema = z
|
|
353
|
-
.object(
|
|
353
|
+
.object(tagGraphBudgetedFields)
|
|
354
354
|
.passthrough()
|
|
355
355
|
.superRefine(refineTagGraphBudget);
|
|
356
356
|
export const tagGraphWriteSchema = z
|
|
357
|
-
.object(
|
|
357
|
+
.object(tagGraphBudgetedFields)
|
|
358
358
|
.strict()
|
|
359
359
|
.superRefine(refineTagGraphBudget)
|
|
360
360
|
.describe(`Tag graph v1 write input. The server enforces these limits: ${TAG_GRAPH_MAX_ENCODED_BYTES} encoded bytes, ${TAG_GRAPH_MAX_TAGS} tags, ${TAG_GRAPH_MAX_TRIGGERS} triggers, ${TAG_GRAPH_MAX_VARIABLES} variables, and ${TAG_GRAPH_MAX_SYSTEM_MODULES} system modules. The server also enforces ${TAG_GRAPH_MAX_ARRAY_ITEMS} items per nested array, ${TAG_GRAPH_MAX_OBJECT_KEYS} keys per object, ${TAG_GRAPH_MAX_STRING_BYTES} encoded bytes per string, and ${TAG_GRAPH_MAX_DEPTH} nested levels. Unknown top-level fields are rejected.`);
|