@spacefast/common 0.0.5 → 0.0.7
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/spacefast-favicon.svg +16 -0
- package/brand-assets/spacefast-sf-full-bleed.svg +13 -0
- package/brand-assets/spacefast-wordmark.svg +5 -0
- package/dist/agents/connect-targets.d.ts +138 -0
- package/dist/agents/connect-targets.js +243 -0
- package/dist/brand-assets-build.d.ts +26 -0
- package/dist/brand-assets-build.js +81 -0
- package/dist/brand-assets.d.ts +42 -0
- package/dist/brand-assets.js +30 -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 +967 -124
- package/dist/contracts/access.js +804 -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 +126 -4
- package/dist/contracts/api-keys.js +74 -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 +65 -21
- package/dist/contracts/builds.js +29 -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 +26 -14
- package/dist/contracts/error-code-meta.d.ts +184 -0
- package/dist/contracts/error-code-meta.js +124 -10
- package/dist/contracts/error-codes.d.ts +1 -1
- package/dist/contracts/error-codes.js +42 -0
- package/dist/contracts/events.d.ts +1 -1
- package/dist/contracts/feature-lifecycle-core.d.ts +36 -0
- package/dist/contracts/feature-lifecycle-core.js +220 -0
- package/dist/contracts/feature-lifecycle.d.ts +7 -0
- package/dist/contracts/feature-lifecycle.js +31 -0
- package/dist/contracts/features.d.ts +76 -6
- package/dist/contracts/features.js +178 -13
- package/dist/contracts/generated-feature-launch-entries.d.ts +2 -0
- package/dist/contracts/generated-feature-launch-entries.js +518 -0
- package/dist/contracts/git.d.ts +2 -8
- package/dist/contracts/ids.d.ts +9 -0
- package/dist/contracts/ids.js +13 -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/operations.d.ts +161 -1
- package/dist/contracts/operations.js +49 -1
- package/dist/contracts/platform.d.ts +6 -102
- package/dist/contracts/platform.js +6 -50
- package/dist/contracts/publishes.d.ts +130 -0
- package/dist/contracts/publishes.js +145 -0
- 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 +9 -8
- package/dist/contracts/repository-connections.js +13 -0
- package/dist/contracts/resources.d.ts +99 -13
- package/dist/contracts/resources.js +36 -4
- package/dist/contracts/routes.d.ts +0 -2
- package/dist/contracts/runtime-api.d.ts +363 -39
- package/dist/contracts/runtime-api.js +276 -6
- package/dist/contracts/sf-config-v1.d.ts +75 -0
- package/dist/contracts/sf-config-v1.js +6 -0
- 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 +376 -196
- package/dist/contracts/spaces.js +62 -10
- 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 +172 -42
- package/dist/contracts/superadmin-tenants.d.ts +6 -6
- package/dist/contracts/superadmin-tenants.js +6 -11
- 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 +26 -30
- package/dist/contracts/teams.js +11 -17
- 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.d.ts +51 -0
- package/dist/docs/agent-setup.js +211 -14
- 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 +189 -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/slug-policy/blocklist.d.ts +4 -0
- package/dist/slug-policy/blocklist.js +122 -0
- package/dist/slug-policy/index.d.ts +17 -0
- package/dist/slug-policy/index.js +86 -0
- 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/concurrency.d.ts +1 -0
- package/dist/utils/concurrency.js +22 -0
- 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/email.d.ts +1 -0
- package/dist/utils/email.js +3 -0
- 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 +16 -4
- package/dist/utils/query-keys.js +31 -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/sf-config-v1.d.ts +2 -0
- package/dist/utils/sf-config-v1.js +542 -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 +35 -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
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const deploymentStatusSchema: z.ZodEnum<{
|
|
3
3
|
failed: "failed";
|
|
4
|
-
queued: "queued";
|
|
5
4
|
canceled: "canceled";
|
|
6
|
-
ready: "ready";
|
|
7
5
|
building: "building";
|
|
6
|
+
ready: "ready";
|
|
8
7
|
waiting_for_source: "waiting_for_source";
|
|
8
|
+
queued: "queued";
|
|
9
9
|
skipped: "skipped";
|
|
10
10
|
}>;
|
|
11
11
|
export declare const DeploymentSourceSchema: z.ZodObject<{
|
|
@@ -29,11 +29,11 @@ export declare const DeploymentSourceSchema: z.ZodObject<{
|
|
|
29
29
|
commitAuthorLogin: z.ZodNullable<z.ZodString>;
|
|
30
30
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
31
31
|
actorType: z.ZodNullable<z.ZodEnum<{
|
|
32
|
+
system: "system";
|
|
32
33
|
user: "user";
|
|
33
34
|
api_key: "api_key";
|
|
34
35
|
oauth_client: "oauth_client";
|
|
35
36
|
anonymous_claim: "anonymous_claim";
|
|
36
|
-
system: "system";
|
|
37
37
|
}>>;
|
|
38
38
|
actorId: z.ZodNullable<z.ZodString>;
|
|
39
39
|
}, z.core.$strip>;
|
|
@@ -74,9 +74,9 @@ export declare const DeploymentChannelStateSchema: z.ZodObject<{
|
|
|
74
74
|
export declare const DeploymentActivityGroupSchema: z.ZodObject<{
|
|
75
75
|
kind: z.ZodEnum<{
|
|
76
76
|
channel: "channel";
|
|
77
|
+
source: "source";
|
|
77
78
|
version: "version";
|
|
78
79
|
branch: "branch";
|
|
79
|
-
source: "source";
|
|
80
80
|
pull_request: "pull_request";
|
|
81
81
|
}>;
|
|
82
82
|
key: z.ZodString;
|
|
@@ -105,9 +105,9 @@ export declare const DeploymentSchema: z.ZodObject<{
|
|
|
105
105
|
activityGroup: z.ZodObject<{
|
|
106
106
|
kind: z.ZodEnum<{
|
|
107
107
|
channel: "channel";
|
|
108
|
+
source: "source";
|
|
108
109
|
version: "version";
|
|
109
110
|
branch: "branch";
|
|
110
|
-
source: "source";
|
|
111
111
|
pull_request: "pull_request";
|
|
112
112
|
}>;
|
|
113
113
|
key: z.ZodString;
|
|
@@ -115,17 +115,16 @@ export declare const DeploymentSchema: z.ZodObject<{
|
|
|
115
115
|
}, z.core.$strip>;
|
|
116
116
|
status: z.ZodEnum<{
|
|
117
117
|
failed: "failed";
|
|
118
|
-
queued: "queued";
|
|
119
118
|
canceled: "canceled";
|
|
120
|
-
ready: "ready";
|
|
121
119
|
building: "building";
|
|
120
|
+
ready: "ready";
|
|
122
121
|
waiting_for_source: "waiting_for_source";
|
|
122
|
+
queued: "queued";
|
|
123
123
|
skipped: "skipped";
|
|
124
124
|
}>;
|
|
125
125
|
versionStatus: z.ZodNullable<z.ZodEnum<{
|
|
126
126
|
failed: "failed";
|
|
127
127
|
canceled: "canceled";
|
|
128
|
-
ready: "ready";
|
|
129
128
|
expired: "expired";
|
|
130
129
|
building: "building";
|
|
131
130
|
prepared: "prepared";
|
|
@@ -133,15 +132,16 @@ export declare const DeploymentSchema: z.ZodObject<{
|
|
|
133
132
|
uploading: "uploading";
|
|
134
133
|
uploaded: "uploaded";
|
|
135
134
|
finalizing: "finalizing";
|
|
135
|
+
ready: "ready";
|
|
136
136
|
}>>;
|
|
137
137
|
buildStatus: z.ZodNullable<z.ZodEnum<{
|
|
138
138
|
failed: "failed";
|
|
139
|
-
queued: "queued";
|
|
140
|
-
running: "running";
|
|
141
|
-
succeeded: "succeeded";
|
|
142
139
|
canceled: "canceled";
|
|
143
140
|
waiting_for_source: "waiting_for_source";
|
|
144
141
|
uploading_source: "uploading_source";
|
|
142
|
+
queued: "queued";
|
|
143
|
+
running: "running";
|
|
144
|
+
succeeded: "succeeded";
|
|
145
145
|
skipped: "skipped";
|
|
146
146
|
}>>;
|
|
147
147
|
input: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -190,11 +190,11 @@ export declare const DeploymentSchema: z.ZodObject<{
|
|
|
190
190
|
commitAuthorLogin: z.ZodNullable<z.ZodString>;
|
|
191
191
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
192
192
|
actorType: z.ZodNullable<z.ZodEnum<{
|
|
193
|
+
system: "system";
|
|
193
194
|
user: "user";
|
|
194
195
|
api_key: "api_key";
|
|
195
196
|
oauth_client: "oauth_client";
|
|
196
197
|
anonymous_claim: "anonymous_claim";
|
|
197
|
-
system: "system";
|
|
198
198
|
}>>;
|
|
199
199
|
actorId: z.ZodNullable<z.ZodString>;
|
|
200
200
|
}, z.core.$strip>;
|
|
@@ -216,16 +216,16 @@ export declare const DeploymentSchema: z.ZodObject<{
|
|
|
216
216
|
diagnostics: z.ZodArray<z.ZodObject<{
|
|
217
217
|
code: z.ZodString;
|
|
218
218
|
severity: z.ZodEnum<{
|
|
219
|
+
info: "info";
|
|
219
220
|
warning: "warning";
|
|
220
221
|
error: "error";
|
|
221
|
-
info: "info";
|
|
222
222
|
}>;
|
|
223
223
|
message: z.ZodString;
|
|
224
224
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
225
225
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
226
|
+
registrar: "registrar";
|
|
226
227
|
wpcloud: "wpcloud";
|
|
227
228
|
dns: "dns";
|
|
228
|
-
registrar: "registrar";
|
|
229
229
|
runtime: "runtime";
|
|
230
230
|
}>>>;
|
|
231
231
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -269,9 +269,9 @@ export declare const deploymentListResponseSchema: z.ZodObject<{
|
|
|
269
269
|
activityGroup: z.ZodObject<{
|
|
270
270
|
kind: z.ZodEnum<{
|
|
271
271
|
channel: "channel";
|
|
272
|
+
source: "source";
|
|
272
273
|
version: "version";
|
|
273
274
|
branch: "branch";
|
|
274
|
-
source: "source";
|
|
275
275
|
pull_request: "pull_request";
|
|
276
276
|
}>;
|
|
277
277
|
key: z.ZodString;
|
|
@@ -279,17 +279,16 @@ export declare const deploymentListResponseSchema: z.ZodObject<{
|
|
|
279
279
|
}, z.core.$strip>;
|
|
280
280
|
status: z.ZodEnum<{
|
|
281
281
|
failed: "failed";
|
|
282
|
-
queued: "queued";
|
|
283
282
|
canceled: "canceled";
|
|
284
|
-
ready: "ready";
|
|
285
283
|
building: "building";
|
|
284
|
+
ready: "ready";
|
|
286
285
|
waiting_for_source: "waiting_for_source";
|
|
286
|
+
queued: "queued";
|
|
287
287
|
skipped: "skipped";
|
|
288
288
|
}>;
|
|
289
289
|
versionStatus: z.ZodNullable<z.ZodEnum<{
|
|
290
290
|
failed: "failed";
|
|
291
291
|
canceled: "canceled";
|
|
292
|
-
ready: "ready";
|
|
293
292
|
expired: "expired";
|
|
294
293
|
building: "building";
|
|
295
294
|
prepared: "prepared";
|
|
@@ -297,15 +296,16 @@ export declare const deploymentListResponseSchema: z.ZodObject<{
|
|
|
297
296
|
uploading: "uploading";
|
|
298
297
|
uploaded: "uploaded";
|
|
299
298
|
finalizing: "finalizing";
|
|
299
|
+
ready: "ready";
|
|
300
300
|
}>>;
|
|
301
301
|
buildStatus: z.ZodNullable<z.ZodEnum<{
|
|
302
302
|
failed: "failed";
|
|
303
|
-
queued: "queued";
|
|
304
|
-
running: "running";
|
|
305
|
-
succeeded: "succeeded";
|
|
306
303
|
canceled: "canceled";
|
|
307
304
|
waiting_for_source: "waiting_for_source";
|
|
308
305
|
uploading_source: "uploading_source";
|
|
306
|
+
queued: "queued";
|
|
307
|
+
running: "running";
|
|
308
|
+
succeeded: "succeeded";
|
|
309
309
|
skipped: "skipped";
|
|
310
310
|
}>>;
|
|
311
311
|
input: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -354,11 +354,11 @@ export declare const deploymentListResponseSchema: z.ZodObject<{
|
|
|
354
354
|
commitAuthorLogin: z.ZodNullable<z.ZodString>;
|
|
355
355
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
356
356
|
actorType: z.ZodNullable<z.ZodEnum<{
|
|
357
|
+
system: "system";
|
|
357
358
|
user: "user";
|
|
358
359
|
api_key: "api_key";
|
|
359
360
|
oauth_client: "oauth_client";
|
|
360
361
|
anonymous_claim: "anonymous_claim";
|
|
361
|
-
system: "system";
|
|
362
362
|
}>>;
|
|
363
363
|
actorId: z.ZodNullable<z.ZodString>;
|
|
364
364
|
}, z.core.$strip>;
|
|
@@ -380,16 +380,16 @@ export declare const deploymentListResponseSchema: z.ZodObject<{
|
|
|
380
380
|
diagnostics: z.ZodArray<z.ZodObject<{
|
|
381
381
|
code: z.ZodString;
|
|
382
382
|
severity: z.ZodEnum<{
|
|
383
|
+
info: "info";
|
|
383
384
|
warning: "warning";
|
|
384
385
|
error: "error";
|
|
385
|
-
info: "info";
|
|
386
386
|
}>;
|
|
387
387
|
message: z.ZodString;
|
|
388
388
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
389
389
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
390
|
+
registrar: "registrar";
|
|
390
391
|
wpcloud: "wpcloud";
|
|
391
392
|
dns: "dns";
|
|
392
|
-
registrar: "registrar";
|
|
393
393
|
runtime: "runtime";
|
|
394
394
|
}>>>;
|
|
395
395
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -434,9 +434,9 @@ export declare const deploymentGetResponseSchema: z.ZodObject<{
|
|
|
434
434
|
activityGroup: z.ZodObject<{
|
|
435
435
|
kind: z.ZodEnum<{
|
|
436
436
|
channel: "channel";
|
|
437
|
+
source: "source";
|
|
437
438
|
version: "version";
|
|
438
439
|
branch: "branch";
|
|
439
|
-
source: "source";
|
|
440
440
|
pull_request: "pull_request";
|
|
441
441
|
}>;
|
|
442
442
|
key: z.ZodString;
|
|
@@ -444,17 +444,16 @@ export declare const deploymentGetResponseSchema: z.ZodObject<{
|
|
|
444
444
|
}, z.core.$strip>;
|
|
445
445
|
status: z.ZodEnum<{
|
|
446
446
|
failed: "failed";
|
|
447
|
-
queued: "queued";
|
|
448
447
|
canceled: "canceled";
|
|
449
|
-
ready: "ready";
|
|
450
448
|
building: "building";
|
|
449
|
+
ready: "ready";
|
|
451
450
|
waiting_for_source: "waiting_for_source";
|
|
451
|
+
queued: "queued";
|
|
452
452
|
skipped: "skipped";
|
|
453
453
|
}>;
|
|
454
454
|
versionStatus: z.ZodNullable<z.ZodEnum<{
|
|
455
455
|
failed: "failed";
|
|
456
456
|
canceled: "canceled";
|
|
457
|
-
ready: "ready";
|
|
458
457
|
expired: "expired";
|
|
459
458
|
building: "building";
|
|
460
459
|
prepared: "prepared";
|
|
@@ -462,15 +461,16 @@ export declare const deploymentGetResponseSchema: z.ZodObject<{
|
|
|
462
461
|
uploading: "uploading";
|
|
463
462
|
uploaded: "uploaded";
|
|
464
463
|
finalizing: "finalizing";
|
|
464
|
+
ready: "ready";
|
|
465
465
|
}>>;
|
|
466
466
|
buildStatus: z.ZodNullable<z.ZodEnum<{
|
|
467
467
|
failed: "failed";
|
|
468
|
-
queued: "queued";
|
|
469
|
-
running: "running";
|
|
470
|
-
succeeded: "succeeded";
|
|
471
468
|
canceled: "canceled";
|
|
472
469
|
waiting_for_source: "waiting_for_source";
|
|
473
470
|
uploading_source: "uploading_source";
|
|
471
|
+
queued: "queued";
|
|
472
|
+
running: "running";
|
|
473
|
+
succeeded: "succeeded";
|
|
474
474
|
skipped: "skipped";
|
|
475
475
|
}>>;
|
|
476
476
|
input: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -519,11 +519,11 @@ export declare const deploymentGetResponseSchema: z.ZodObject<{
|
|
|
519
519
|
commitAuthorLogin: z.ZodNullable<z.ZodString>;
|
|
520
520
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
521
521
|
actorType: z.ZodNullable<z.ZodEnum<{
|
|
522
|
+
system: "system";
|
|
522
523
|
user: "user";
|
|
523
524
|
api_key: "api_key";
|
|
524
525
|
oauth_client: "oauth_client";
|
|
525
526
|
anonymous_claim: "anonymous_claim";
|
|
526
|
-
system: "system";
|
|
527
527
|
}>>;
|
|
528
528
|
actorId: z.ZodNullable<z.ZodString>;
|
|
529
529
|
}, z.core.$strip>;
|
|
@@ -545,16 +545,16 @@ export declare const deploymentGetResponseSchema: z.ZodObject<{
|
|
|
545
545
|
diagnostics: z.ZodArray<z.ZodObject<{
|
|
546
546
|
code: z.ZodString;
|
|
547
547
|
severity: z.ZodEnum<{
|
|
548
|
+
info: "info";
|
|
548
549
|
warning: "warning";
|
|
549
550
|
error: "error";
|
|
550
|
-
info: "info";
|
|
551
551
|
}>;
|
|
552
552
|
message: z.ZodString;
|
|
553
553
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
554
554
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
555
|
+
registrar: "registrar";
|
|
555
556
|
wpcloud: "wpcloud";
|
|
556
557
|
dns: "dns";
|
|
557
|
-
registrar: "registrar";
|
|
558
558
|
runtime: "runtime";
|
|
559
559
|
}>>>;
|
|
560
560
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -19,21 +19,19 @@ export type DeviceAuthorizationStartResponse = z.infer<typeof DeviceAuthorizatio
|
|
|
19
19
|
export declare const DeviceAuthorizationPollRequestSchema: z.ZodObject<{
|
|
20
20
|
deviceCode: z.ZodString;
|
|
21
21
|
}, z.core.$strip>;
|
|
22
|
-
export type DeviceAuthorizationPollRequest = z.infer<typeof DeviceAuthorizationPollRequestSchema>;
|
|
23
22
|
export declare const DeviceAuthorizationStatusSchema: z.ZodEnum<{
|
|
24
23
|
expired: "expired";
|
|
25
24
|
pending: "pending";
|
|
26
|
-
denied: "denied";
|
|
27
25
|
approved: "approved";
|
|
26
|
+
denied: "denied";
|
|
28
27
|
consumed: "consumed";
|
|
29
28
|
}>;
|
|
30
|
-
export type DeviceAuthorizationStatus = z.infer<typeof DeviceAuthorizationStatusSchema>;
|
|
31
29
|
export declare const DeviceAuthorizationPollResponseSchema: z.ZodObject<{
|
|
32
30
|
status: z.ZodEnum<{
|
|
33
31
|
expired: "expired";
|
|
34
32
|
pending: "pending";
|
|
35
|
-
denied: "denied";
|
|
36
33
|
approved: "approved";
|
|
34
|
+
denied: "denied";
|
|
37
35
|
consumed: "consumed";
|
|
38
36
|
}>;
|
|
39
37
|
apiKey: z.ZodOptional<z.ZodObject<{
|
|
@@ -145,13 +143,12 @@ export type DeviceAuthorizationPollResponse = z.infer<typeof DeviceAuthorization
|
|
|
145
143
|
export declare const DeviceAuthorizationVerifyQuerySchema: z.ZodObject<{
|
|
146
144
|
user_code: z.ZodString;
|
|
147
145
|
}, z.core.$strip>;
|
|
148
|
-
export type DeviceAuthorizationVerifyQuery = z.infer<typeof DeviceAuthorizationVerifyQuerySchema>;
|
|
149
146
|
export declare const DeviceAuthorizationVerifyResponseSchema: z.ZodObject<{
|
|
150
147
|
status: z.ZodEnum<{
|
|
151
148
|
expired: "expired";
|
|
152
149
|
pending: "pending";
|
|
153
|
-
denied: "denied";
|
|
154
150
|
approved: "approved";
|
|
151
|
+
denied: "denied";
|
|
155
152
|
consumed: "consumed";
|
|
156
153
|
}>;
|
|
157
154
|
clientId: z.ZodNullable<z.ZodString>;
|
|
@@ -164,7 +161,6 @@ export declare const DeviceAuthorizationVerifyResponseSchema: z.ZodObject<{
|
|
|
164
161
|
liveUrl: z.ZodNullable<z.ZodString>;
|
|
165
162
|
}, z.core.$strict>>;
|
|
166
163
|
}, z.core.$strip>;
|
|
167
|
-
export type DeviceAuthorizationVerifyResponse = z.infer<typeof DeviceAuthorizationVerifyResponseSchema>;
|
|
168
164
|
export declare const DeviceAuthorizationApproveRequestSchema: z.ZodObject<{
|
|
169
165
|
userCode: z.ZodString;
|
|
170
166
|
teamId: z.ZodString;
|
|
@@ -177,18 +173,15 @@ export declare const DeviceAuthorizationApproveRequestSchema: z.ZodObject<{
|
|
|
177
173
|
team_admin: "team_admin";
|
|
178
174
|
billing_viewer: "billing_viewer";
|
|
179
175
|
}>;
|
|
176
|
+
agentContinuation: z.ZodOptional<z.ZodBoolean>;
|
|
180
177
|
}, z.core.$strict>;
|
|
181
|
-
export type DeviceAuthorizationApproveRequest = z.infer<typeof DeviceAuthorizationApproveRequestSchema>;
|
|
182
178
|
export declare const DeviceAuthorizationApproveResponseSchema: z.ZodObject<{
|
|
183
179
|
status: z.ZodLiteral<"approved">;
|
|
184
180
|
claimedSpaceId: z.ZodNullable<z.ZodString>;
|
|
185
181
|
}, z.core.$strict>;
|
|
186
|
-
export type DeviceAuthorizationApproveResponse = z.infer<typeof DeviceAuthorizationApproveResponseSchema>;
|
|
187
182
|
export declare const DeviceAuthorizationDenyRequestSchema: z.ZodObject<{
|
|
188
183
|
userCode: z.ZodString;
|
|
189
184
|
}, z.core.$strip>;
|
|
190
|
-
export type DeviceAuthorizationDenyRequest = z.infer<typeof DeviceAuthorizationDenyRequestSchema>;
|
|
191
185
|
export declare const DeviceAuthorizationDenyResponseSchema: z.ZodObject<{
|
|
192
186
|
status: z.ZodLiteral<"denied">;
|
|
193
187
|
}, z.core.$strip>;
|
|
194
|
-
export type DeviceAuthorizationDenyResponse = z.infer<typeof DeviceAuthorizationDenyResponseSchema>;
|
|
@@ -138,6 +138,10 @@ export const DeviceAuthorizationApproveRequestSchema = z
|
|
|
138
138
|
.min(1)
|
|
139
139
|
.describe("Team the minted API key will belong to. The approver must be a member."),
|
|
140
140
|
preset: ApiKeyPresetSchema.describe("Policy preset for the minted key. Its compiled policy must be a subset of the approver's team-role policy."),
|
|
141
|
+
agentContinuation: z
|
|
142
|
+
.boolean()
|
|
143
|
+
.optional()
|
|
144
|
+
.describe("Applies when the device flow carries an anonymous-space claim: keep the publishing agent authorized after the claim (default false unless explicitly granted) via the one-time claim-token exchange."),
|
|
141
145
|
})
|
|
142
146
|
.strict();
|
|
143
147
|
export const DeviceAuthorizationApproveResponseSchema = z
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Disclosure tiers an entry can carry, default `essential` for listings. */
|
|
3
|
+
export declare const DOC_TIERS: readonly ["essential", "full", "reference"];
|
|
4
|
+
export declare const docsIndexQuerySchema: z.ZodObject<{
|
|
5
|
+
q: z.ZodOptional<z.ZodString>;
|
|
6
|
+
tier: z.ZodDefault<z.ZodEnum<{
|
|
7
|
+
essential: "essential";
|
|
8
|
+
full: "full";
|
|
9
|
+
reference: "reference";
|
|
10
|
+
}>>;
|
|
11
|
+
category: z.ZodOptional<z.ZodEnum<{
|
|
12
|
+
api: "api";
|
|
13
|
+
guide: "guide";
|
|
14
|
+
cli: "cli";
|
|
15
|
+
error: "error";
|
|
16
|
+
recipe: "recipe";
|
|
17
|
+
workflow: "workflow";
|
|
18
|
+
}>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
/** Links carried by every docs entry. */
|
|
21
|
+
export declare const DocsLinksSchema: z.ZodObject<{
|
|
22
|
+
doc: z.ZodString;
|
|
23
|
+
self: z.ZodString;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
/** One entry in the docs index. */
|
|
26
|
+
export declare const DocsEntrySchema: z.ZodObject<{
|
|
27
|
+
slug: z.ZodString;
|
|
28
|
+
title: z.ZodString;
|
|
29
|
+
summary: z.ZodString;
|
|
30
|
+
category: z.ZodEnum<{
|
|
31
|
+
api: "api";
|
|
32
|
+
guide: "guide";
|
|
33
|
+
cli: "cli";
|
|
34
|
+
error: "error";
|
|
35
|
+
recipe: "recipe";
|
|
36
|
+
workflow: "workflow";
|
|
37
|
+
}>;
|
|
38
|
+
tier: z.ZodEnum<{
|
|
39
|
+
essential: "essential";
|
|
40
|
+
full: "full";
|
|
41
|
+
reference: "reference";
|
|
42
|
+
}>;
|
|
43
|
+
keywords: z.ZodArray<z.ZodString>;
|
|
44
|
+
url: z.ZodString;
|
|
45
|
+
links: z.ZodObject<{
|
|
46
|
+
doc: z.ZodString;
|
|
47
|
+
self: z.ZodString;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
export type DocsEntry = z.infer<typeof DocsEntrySchema>;
|
|
51
|
+
/** A single doc, which additionally carries its printable body. */
|
|
52
|
+
export declare const DocsDocSchema: z.ZodObject<{
|
|
53
|
+
slug: z.ZodString;
|
|
54
|
+
title: z.ZodString;
|
|
55
|
+
summary: z.ZodString;
|
|
56
|
+
category: z.ZodEnum<{
|
|
57
|
+
api: "api";
|
|
58
|
+
guide: "guide";
|
|
59
|
+
cli: "cli";
|
|
60
|
+
error: "error";
|
|
61
|
+
recipe: "recipe";
|
|
62
|
+
workflow: "workflow";
|
|
63
|
+
}>;
|
|
64
|
+
tier: z.ZodEnum<{
|
|
65
|
+
essential: "essential";
|
|
66
|
+
full: "full";
|
|
67
|
+
reference: "reference";
|
|
68
|
+
}>;
|
|
69
|
+
keywords: z.ZodArray<z.ZodString>;
|
|
70
|
+
url: z.ZodString;
|
|
71
|
+
links: z.ZodObject<{
|
|
72
|
+
doc: z.ZodString;
|
|
73
|
+
self: z.ZodString;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
body: z.ZodString;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
export type DocsDoc = z.infer<typeof DocsDocSchema>;
|
|
78
|
+
/** The GET /v1/docs index payload (inside the `{ data }` envelope). */
|
|
79
|
+
export declare const DocsIndexResponseSchema: z.ZodObject<{
|
|
80
|
+
tier: z.ZodEnum<{
|
|
81
|
+
essential: "essential";
|
|
82
|
+
full: "full";
|
|
83
|
+
reference: "reference";
|
|
84
|
+
}>;
|
|
85
|
+
query: z.ZodNullable<z.ZodString>;
|
|
86
|
+
category: z.ZodNullable<z.ZodEnum<{
|
|
87
|
+
api: "api";
|
|
88
|
+
guide: "guide";
|
|
89
|
+
cli: "cli";
|
|
90
|
+
error: "error";
|
|
91
|
+
recipe: "recipe";
|
|
92
|
+
workflow: "workflow";
|
|
93
|
+
}>>;
|
|
94
|
+
count: z.ZodNumber;
|
|
95
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
96
|
+
slug: z.ZodString;
|
|
97
|
+
title: z.ZodString;
|
|
98
|
+
summary: z.ZodString;
|
|
99
|
+
category: z.ZodEnum<{
|
|
100
|
+
api: "api";
|
|
101
|
+
guide: "guide";
|
|
102
|
+
cli: "cli";
|
|
103
|
+
error: "error";
|
|
104
|
+
recipe: "recipe";
|
|
105
|
+
workflow: "workflow";
|
|
106
|
+
}>;
|
|
107
|
+
tier: z.ZodEnum<{
|
|
108
|
+
essential: "essential";
|
|
109
|
+
full: "full";
|
|
110
|
+
reference: "reference";
|
|
111
|
+
}>;
|
|
112
|
+
keywords: z.ZodArray<z.ZodString>;
|
|
113
|
+
url: z.ZodString;
|
|
114
|
+
links: z.ZodObject<{
|
|
115
|
+
doc: z.ZodString;
|
|
116
|
+
self: z.ZodString;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
}, z.core.$strip>>;
|
|
119
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// Public contract for the machine-readable docs index API (GET /v1/docs and
|
|
2
|
+
// GET /v1/docs/:slug). Tier values come from the shared CLI disclosure tiers and
|
|
3
|
+
// categories from the shared docs catalog, so the API can never describe a tier
|
|
4
|
+
// or category the catalog does not produce.
|
|
5
|
+
import { z } from "zod";
|
|
6
|
+
import { DOC_KINDS } from "../docs/catalog.js";
|
|
7
|
+
import { CLI_DISCLOSURE_TIER_ORDER } from "../vocabulary.js";
|
|
8
|
+
/** Disclosure tiers an entry can carry, default `essential` for listings. */
|
|
9
|
+
export const DOC_TIERS = CLI_DISCLOSURE_TIER_ORDER;
|
|
10
|
+
const docTierEnum = z.enum([...DOC_TIERS]);
|
|
11
|
+
const docCategoryEnum = z.enum([...DOC_KINDS]);
|
|
12
|
+
// Query for GET /v1/docs. Tier-aware: defaults to `essential`; pass
|
|
13
|
+
// `tier=reference` to get EVERYTHING (tiers are cumulative). Optional `q`
|
|
14
|
+
// free-text search and `category` filter compose with the tier.
|
|
15
|
+
export const docsIndexQuerySchema = z.object({
|
|
16
|
+
q: z.string().optional().describe("Free-text search across slug, title, summary, and keywords."),
|
|
17
|
+
tier: docTierEnum
|
|
18
|
+
.default("essential")
|
|
19
|
+
.describe("Disclosure tier to list. `essential` (default) shows the core pages; `full` adds advanced pages; `reference` returns everything."),
|
|
20
|
+
category: docCategoryEnum
|
|
21
|
+
.optional()
|
|
22
|
+
.describe("Restrict to one docs area: guide, cli, api, recipe, workflow, or error."),
|
|
23
|
+
});
|
|
24
|
+
/** Links carried by every docs entry. */
|
|
25
|
+
export const DocsLinksSchema = z.object({
|
|
26
|
+
doc: z.string().url().describe("Canonical human-readable docs URL."),
|
|
27
|
+
self: z.string().describe("API-relative link to this entry's JSON (`/v1/docs/{slug}`)."),
|
|
28
|
+
});
|
|
29
|
+
/** One entry in the docs index. */
|
|
30
|
+
export const DocsEntrySchema = z.object({
|
|
31
|
+
slug: z.string().describe("Stable topic id, e.g. `publishing` or `api/spaces`."),
|
|
32
|
+
title: z.string(),
|
|
33
|
+
summary: z.string(),
|
|
34
|
+
category: docCategoryEnum,
|
|
35
|
+
tier: docTierEnum,
|
|
36
|
+
keywords: z.array(z.string()).describe("Extra search terms that match this page."),
|
|
37
|
+
url: z.string().url().describe("Canonical human-readable docs URL."),
|
|
38
|
+
links: DocsLinksSchema,
|
|
39
|
+
});
|
|
40
|
+
/** A single doc, which additionally carries its printable body. */
|
|
41
|
+
export const DocsDocSchema = DocsEntrySchema.extend({
|
|
42
|
+
body: z.string().describe("Short printable explanation of the topic."),
|
|
43
|
+
});
|
|
44
|
+
/** The GET /v1/docs index payload (inside the `{ data }` envelope). */
|
|
45
|
+
export const DocsIndexResponseSchema = z.object({
|
|
46
|
+
tier: docTierEnum.describe("The tier the listing ran at."),
|
|
47
|
+
query: z.string().nullable().describe("The trimmed `q` query, or null when listing."),
|
|
48
|
+
category: docCategoryEnum.nullable().describe("The applied category filter, or null."),
|
|
49
|
+
count: z.number().int().describe("Number of entries returned."),
|
|
50
|
+
entries: z.array(DocsEntrySchema),
|
|
51
|
+
});
|