@spacefast/common 0.0.3 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agents/connect-targets.d.ts +133 -0
- package/dist/agents/connect-targets.js +224 -0
- package/dist/brand.d.ts +1 -0
- package/dist/brand.js +5 -0
- package/dist/config/domains.d.ts +12 -6
- package/dist/config/domains.js +30 -38
- package/dist/contracts/access.d.ts +829 -129
- package/dist/contracts/access.js +771 -148
- package/dist/contracts/activity.d.ts +5 -5
- package/dist/contracts/activity.js +28 -2
- package/dist/contracts/annotations.d.ts +3 -5
- package/dist/contracts/api-keys.d.ts +9 -10
- package/dist/contracts/api-keys.js +9 -6
- package/dist/contracts/archives.d.ts +22 -16
- package/dist/contracts/archives.js +11 -4
- package/dist/contracts/billing.d.ts +21 -30
- package/dist/contracts/builds.d.ts +21 -17
- package/dist/contracts/builds.js +12 -0
- package/dist/contracts/channels.d.ts +2 -2
- package/dist/contracts/common.d.ts +7 -5
- package/dist/contracts/common.js +4 -0
- package/dist/contracts/continuation.d.ts +63 -0
- package/dist/contracts/continuation.js +91 -0
- 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 +295 -253
- package/dist/contracts/domains.js +26 -4
- package/dist/contracts/enums.d.ts +17 -18
- package/dist/contracts/enums.js +25 -14
- package/dist/contracts/error-code-meta.d.ts +84 -0
- package/dist/contracts/error-code-meta.js +99 -10
- package/dist/contracts/error-codes.d.ts +1 -1
- package/dist/contracts/error-codes.js +17 -0
- package/dist/contracts/events.d.ts +13 -13
- package/dist/contracts/features.d.ts +93 -23
- package/dist/contracts/features.js +178 -13
- package/dist/contracts/git.d.ts +3 -9
- package/dist/contracts/ids.d.ts +5 -0
- package/dist/contracts/ids.js +5 -0
- package/dist/contracts/internal.d.ts +3 -3
- package/dist/contracts/mcp.d.ts +34 -36
- package/dist/contracts/me.d.ts +8 -8
- 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 +2 -2
- package/dist/contracts/plan-policy.d.ts +4 -4
- package/dist/contracts/platform.d.ts +3 -105
- package/dist/contracts/platform.js +0 -50
- package/dist/contracts/push-new.d.ts +4 -4
- package/dist/contracts/quotas.d.ts +2 -0
- package/dist/contracts/quotas.js +8 -0
- package/dist/contracts/repository-connections.d.ts +1 -3
- package/dist/contracts/resources.d.ts +112 -28
- package/dist/contracts/resources.js +26 -2
- package/dist/contracts/routes.d.ts +0 -2
- package/dist/contracts/runtime-api.d.ts +365 -43
- package/dist/contracts/runtime-api.js +275 -6
- package/dist/contracts/sites.d.ts +45 -28
- 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 +423 -162
- package/dist/contracts/spaces.js +94 -8
- package/dist/contracts/superadmin-emails.d.ts +7 -5
- package/dist/contracts/superadmin-emails.js +8 -0
- package/dist/contracts/superadmin-queues.d.ts +32 -32
- package/dist/contracts/superadmin-spaces.d.ts +418 -24
- package/dist/contracts/superadmin-spaces.js +24 -0
- package/dist/contracts/superadmin-tenants.d.ts +8 -8
- package/dist/contracts/superadmin.d.ts +17 -104
- package/dist/contracts/superadmin.js +6 -14
- package/dist/contracts/tags.d.ts +42 -41
- package/dist/contracts/tags.js +2 -1
- package/dist/contracts/teams.d.ts +40 -23
- package/dist/contracts/teams.js +20 -1
- package/dist/contracts/theme-json.d.ts +30 -0
- package/dist/contracts/theme-json.js +48 -0
- package/dist/contracts/transfers.d.ts +9 -9
- package/dist/contracts/variables.d.ts +14 -16
- package/dist/contracts/variables.js +0 -5
- package/dist/contracts/webhooks.d.ts +6 -4
- package/dist/contracts/webhooks.js +1 -1
- package/dist/contracts/zero.d.ts +13 -18
- package/dist/docs/agent-prose.d.ts +43 -3
- package/dist/docs/agent-prose.js +153 -10
- package/dist/docs/agent-setup.js +48 -15
- 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 +89 -35
- package/dist/docs/index-build.d.ts +17 -0
- package/dist/docs/index-build.js +24 -0
- package/dist/docs/search.d.ts +54 -0
- package/dist/docs/search.js +96 -0
- package/dist/docs/skill-distribution.d.ts +5 -3
- package/dist/docs/skill-distribution.js +8 -8
- package/dist/utils/access-match.d.ts +39 -0
- package/dist/utils/access-match.js +296 -0
- package/dist/utils/auth-redirect.d.ts +3 -1
- package/dist/utils/auth-redirect.js +21 -1
- package/dist/utils/build-settings.d.ts +6 -0
- package/dist/utils/build-settings.js +429 -46
- package/dist/utils/claim-token.d.ts +8 -0
- package/dist/utils/claim-token.js +23 -2
- package/dist/utils/content-type.d.ts +1 -0
- package/dist/utils/content-type.js +1 -1
- package/dist/utils/credential-policy.d.ts +54 -0
- package/dist/utils/{access-policy.js → credential-policy.js} +28 -2
- package/dist/utils/gate-theme.d.ts +61 -0
- package/dist/utils/gate-theme.js +217 -0
- package/dist/utils/git-repository.d.ts +0 -1
- package/dist/utils/git-repository.js +0 -3
- package/dist/utils/id-hints.d.ts +8 -0
- package/dist/utils/id-hints.js +61 -0
- package/dist/utils/local-space-state.d.ts +91 -0
- package/dist/utils/local-space-state.js +251 -0
- package/dist/utils/oauth-signed-query.d.ts +8 -0
- package/dist/utils/oauth-signed-query.js +26 -0
- package/dist/utils/publish-detection.d.ts +0 -8
- package/dist/utils/publish-detection.js +0 -93
- package/dist/utils/publish-policy.d.ts +6 -5
- package/dist/utils/publish-policy.js +71 -7
- package/dist/utils/query-keys.d.ts +17 -6
- package/dist/utils/query-keys.js +27 -4
- package/dist/utils/runtime-paths.d.ts +0 -1
- package/dist/utils/runtime-paths.js +0 -1
- package/dist/utils/runtime-upload-batch.d.ts +18 -0
- package/dist/utils/runtime-upload-batch.js +90 -0
- package/dist/utils/runtime-upload.d.ts +2 -0
- package/dist/utils/runtime-upload.js +5 -0
- package/dist/utils/space-config.d.ts +4 -0
- package/dist/utils/space-config.js +10 -1
- package/dist/utils/space-theme.d.ts +2 -0
- package/dist/utils/space-theme.js +9 -0
- package/dist/utils/static-runtime-policy.d.ts +1 -1
- package/dist/utils/static-runtime-policy.js +47 -15
- package/dist/utils/upload-session.d.ts +1 -1
- package/dist/utils/wpcom-auth-redirects.d.ts +32 -2
- package/dist/utils/wpcom-auth-redirects.js +26 -10
- package/dist/vocabulary.d.ts +130 -30
- package/dist/vocabulary.js +77 -36
- package/package.json +16 -1
- package/dist/contracts/account.d.ts +0 -28
- package/dist/contracts/account.js +0 -54
- package/dist/contracts/intercom.d.ts +0 -6
- package/dist/contracts/intercom.js +0 -5
- package/dist/contracts/telemetry.d.ts +0 -2
- package/dist/contracts/telemetry.js +0 -1
- package/dist/utils/access-policy.d.ts +0 -39
- package/dist/utils/error-display.d.ts +0 -7
- package/dist/utils/error-display.js +0 -42
|
@@ -18,8 +18,8 @@ export declare const pendingUploadSchema: z.ZodObject<{
|
|
|
18
18
|
sourceUrl: z.ZodOptional<z.ZodString>;
|
|
19
19
|
}, z.core.$strip>;
|
|
20
20
|
export declare const uploadSessionModeSchema: z.ZodEnum<{
|
|
21
|
-
dist: "dist";
|
|
22
21
|
source: "source";
|
|
22
|
+
dist: "dist";
|
|
23
23
|
}>;
|
|
24
24
|
export declare const uploadTargetSchema: z.ZodObject<{
|
|
25
25
|
path: z.ZodString;
|
|
@@ -41,8 +41,8 @@ export declare const uploadTargetSchema: z.ZodObject<{
|
|
|
41
41
|
export declare const uploadInstructionsSchema: z.ZodObject<{
|
|
42
42
|
id: z.ZodString;
|
|
43
43
|
mode: z.ZodEnum<{
|
|
44
|
-
dist: "dist";
|
|
45
44
|
source: "source";
|
|
45
|
+
dist: "dist";
|
|
46
46
|
}>;
|
|
47
47
|
expiresAt: z.ZodString;
|
|
48
48
|
summary: z.ZodObject<{
|
|
@@ -90,9 +90,9 @@ export declare const uploadInstructionsSchema: z.ZodObject<{
|
|
|
90
90
|
message: z.ZodString;
|
|
91
91
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
92
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
93
|
+
registrar: "registrar";
|
|
93
94
|
wpcloud: "wpcloud";
|
|
94
95
|
dns: "dns";
|
|
95
|
-
registrar: "registrar";
|
|
96
96
|
runtime: "runtime";
|
|
97
97
|
}>>>;
|
|
98
98
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
package/dist/contracts/mcp.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const hostedMcpSessionStatusSchema: z.ZodEnum<{
|
|
3
|
-
closed: "closed";
|
|
4
|
-
expired: "expired";
|
|
5
3
|
active: "active";
|
|
4
|
+
expired: "expired";
|
|
5
|
+
closed: "closed";
|
|
6
6
|
interrupted: "interrupted";
|
|
7
7
|
}>;
|
|
8
8
|
export declare const hostedMcpWorkspaceSummarySchema: z.ZodObject<{
|
|
@@ -22,9 +22,9 @@ export declare const hostedMcpSessionSchema: z.ZodObject<{
|
|
|
22
22
|
tools: z.ZodString;
|
|
23
23
|
}, z.core.$strip>;
|
|
24
24
|
status: z.ZodEnum<{
|
|
25
|
-
closed: "closed";
|
|
26
|
-
expired: "expired";
|
|
27
25
|
active: "active";
|
|
26
|
+
expired: "expired";
|
|
27
|
+
closed: "closed";
|
|
28
28
|
interrupted: "interrupted";
|
|
29
29
|
}>;
|
|
30
30
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -77,11 +77,11 @@ export declare const hostedMcpSessionEventSchema: z.ZodObject<{
|
|
|
77
77
|
createdAt: z.ZodString;
|
|
78
78
|
}, z.core.$strip>;
|
|
79
79
|
export declare const hostedMcpExecutionRunStatusSchema: z.ZodEnum<{
|
|
80
|
-
completed: "completed";
|
|
81
80
|
failed: "failed";
|
|
81
|
+
completed: "completed";
|
|
82
|
+
canceled: "canceled";
|
|
82
83
|
queued: "queued";
|
|
83
84
|
running: "running";
|
|
84
|
-
canceled: "canceled";
|
|
85
85
|
approval_required: "approval_required";
|
|
86
86
|
}>;
|
|
87
87
|
export declare const hostedMcpExecutionStepSchema: z.ZodObject<{
|
|
@@ -104,8 +104,8 @@ export declare const hostedMcpExecutionArtifactSchema: z.ZodObject<{
|
|
|
104
104
|
warning: "warning";
|
|
105
105
|
resource: "resource";
|
|
106
106
|
summary: "summary";
|
|
107
|
-
log: "log";
|
|
108
107
|
result: "result";
|
|
108
|
+
log: "log";
|
|
109
109
|
}>;
|
|
110
110
|
name: z.ZodString;
|
|
111
111
|
mimeType: z.ZodNullable<z.ZodString>;
|
|
@@ -120,11 +120,11 @@ export declare const hostedMcpExecutionRunSchema: z.ZodObject<{
|
|
|
120
120
|
tool: z.ZodString;
|
|
121
121
|
mode: z.ZodNullable<z.ZodString>;
|
|
122
122
|
status: z.ZodEnum<{
|
|
123
|
-
completed: "completed";
|
|
124
123
|
failed: "failed";
|
|
124
|
+
completed: "completed";
|
|
125
|
+
canceled: "canceled";
|
|
125
126
|
queued: "queued";
|
|
126
127
|
running: "running";
|
|
127
|
-
canceled: "canceled";
|
|
128
128
|
approval_required: "approval_required";
|
|
129
129
|
}>;
|
|
130
130
|
approvalId: z.ZodNullable<z.ZodString>;
|
|
@@ -154,8 +154,8 @@ export declare const hostedMcpExecutionRunSchema: z.ZodObject<{
|
|
|
154
154
|
warning: "warning";
|
|
155
155
|
resource: "resource";
|
|
156
156
|
summary: "summary";
|
|
157
|
-
log: "log";
|
|
158
157
|
result: "result";
|
|
158
|
+
log: "log";
|
|
159
159
|
}>;
|
|
160
160
|
name: z.ZodString;
|
|
161
161
|
mimeType: z.ZodNullable<z.ZodString>;
|
|
@@ -167,8 +167,8 @@ export declare const hostedMcpExecutionRunSchema: z.ZodObject<{
|
|
|
167
167
|
export declare const hostedMcpToolPolicySchema: z.ZodObject<{
|
|
168
168
|
tool: z.ZodString;
|
|
169
169
|
runtime: z.ZodEnum<{
|
|
170
|
-
hosted: "hosted";
|
|
171
170
|
"on-device": "on-device";
|
|
171
|
+
hosted: "hosted";
|
|
172
172
|
both: "both";
|
|
173
173
|
}>;
|
|
174
174
|
category: z.ZodString;
|
|
@@ -191,8 +191,8 @@ export declare const hostedMcpPolicyDefaultsSchema: z.ZodObject<{
|
|
|
191
191
|
toolPolicies: z.ZodArray<z.ZodObject<{
|
|
192
192
|
tool: z.ZodString;
|
|
193
193
|
runtime: z.ZodEnum<{
|
|
194
|
-
hosted: "hosted";
|
|
195
194
|
"on-device": "on-device";
|
|
195
|
+
hosted: "hosted";
|
|
196
196
|
both: "both";
|
|
197
197
|
}>;
|
|
198
198
|
category: z.ZodString;
|
|
@@ -257,8 +257,8 @@ export declare const hostedMcpDashboardSchema: z.ZodObject<{
|
|
|
257
257
|
toolPolicies: z.ZodArray<z.ZodObject<{
|
|
258
258
|
tool: z.ZodString;
|
|
259
259
|
runtime: z.ZodEnum<{
|
|
260
|
-
hosted: "hosted";
|
|
261
260
|
"on-device": "on-device";
|
|
261
|
+
hosted: "hosted";
|
|
262
262
|
both: "both";
|
|
263
263
|
}>;
|
|
264
264
|
category: z.ZodString;
|
|
@@ -285,9 +285,9 @@ export declare const hostedMcpDashboardSchema: z.ZodObject<{
|
|
|
285
285
|
tools: z.ZodString;
|
|
286
286
|
}, z.core.$strip>;
|
|
287
287
|
status: z.ZodEnum<{
|
|
288
|
-
closed: "closed";
|
|
289
|
-
expired: "expired";
|
|
290
288
|
active: "active";
|
|
289
|
+
expired: "expired";
|
|
290
|
+
closed: "closed";
|
|
291
291
|
interrupted: "interrupted";
|
|
292
292
|
}>;
|
|
293
293
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -346,11 +346,11 @@ export declare const hostedMcpDashboardSchema: z.ZodObject<{
|
|
|
346
346
|
tool: z.ZodString;
|
|
347
347
|
mode: z.ZodNullable<z.ZodString>;
|
|
348
348
|
status: z.ZodEnum<{
|
|
349
|
-
completed: "completed";
|
|
350
349
|
failed: "failed";
|
|
350
|
+
completed: "completed";
|
|
351
|
+
canceled: "canceled";
|
|
351
352
|
queued: "queued";
|
|
352
353
|
running: "running";
|
|
353
|
-
canceled: "canceled";
|
|
354
354
|
approval_required: "approval_required";
|
|
355
355
|
}>;
|
|
356
356
|
approvalId: z.ZodNullable<z.ZodString>;
|
|
@@ -380,8 +380,8 @@ export declare const hostedMcpDashboardSchema: z.ZodObject<{
|
|
|
380
380
|
warning: "warning";
|
|
381
381
|
resource: "resource";
|
|
382
382
|
summary: "summary";
|
|
383
|
-
log: "log";
|
|
384
383
|
result: "result";
|
|
384
|
+
log: "log";
|
|
385
385
|
}>;
|
|
386
386
|
name: z.ZodString;
|
|
387
387
|
mimeType: z.ZodNullable<z.ZodString>;
|
|
@@ -422,8 +422,8 @@ export declare const hostedMcpDashboardResponseSchema: z.ZodObject<{
|
|
|
422
422
|
toolPolicies: z.ZodArray<z.ZodObject<{
|
|
423
423
|
tool: z.ZodString;
|
|
424
424
|
runtime: z.ZodEnum<{
|
|
425
|
-
hosted: "hosted";
|
|
426
425
|
"on-device": "on-device";
|
|
426
|
+
hosted: "hosted";
|
|
427
427
|
both: "both";
|
|
428
428
|
}>;
|
|
429
429
|
category: z.ZodString;
|
|
@@ -450,9 +450,9 @@ export declare const hostedMcpDashboardResponseSchema: z.ZodObject<{
|
|
|
450
450
|
tools: z.ZodString;
|
|
451
451
|
}, z.core.$strip>;
|
|
452
452
|
status: z.ZodEnum<{
|
|
453
|
-
closed: "closed";
|
|
454
|
-
expired: "expired";
|
|
455
453
|
active: "active";
|
|
454
|
+
expired: "expired";
|
|
455
|
+
closed: "closed";
|
|
456
456
|
interrupted: "interrupted";
|
|
457
457
|
}>;
|
|
458
458
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -511,11 +511,11 @@ export declare const hostedMcpDashboardResponseSchema: z.ZodObject<{
|
|
|
511
511
|
tool: z.ZodString;
|
|
512
512
|
mode: z.ZodNullable<z.ZodString>;
|
|
513
513
|
status: z.ZodEnum<{
|
|
514
|
-
completed: "completed";
|
|
515
514
|
failed: "failed";
|
|
515
|
+
completed: "completed";
|
|
516
|
+
canceled: "canceled";
|
|
516
517
|
queued: "queued";
|
|
517
518
|
running: "running";
|
|
518
|
-
canceled: "canceled";
|
|
519
519
|
approval_required: "approval_required";
|
|
520
520
|
}>;
|
|
521
521
|
approvalId: z.ZodNullable<z.ZodString>;
|
|
@@ -545,8 +545,8 @@ export declare const hostedMcpDashboardResponseSchema: z.ZodObject<{
|
|
|
545
545
|
warning: "warning";
|
|
546
546
|
resource: "resource";
|
|
547
547
|
summary: "summary";
|
|
548
|
-
log: "log";
|
|
549
548
|
result: "result";
|
|
549
|
+
log: "log";
|
|
550
550
|
}>;
|
|
551
551
|
name: z.ZodString;
|
|
552
552
|
mimeType: z.ZodNullable<z.ZodString>;
|
|
@@ -570,9 +570,9 @@ export declare const hostedMcpCloseSessionResponseSchema: z.ZodObject<{
|
|
|
570
570
|
tools: z.ZodString;
|
|
571
571
|
}, z.core.$strip>;
|
|
572
572
|
status: z.ZodEnum<{
|
|
573
|
-
closed: "closed";
|
|
574
|
-
expired: "expired";
|
|
575
573
|
active: "active";
|
|
574
|
+
expired: "expired";
|
|
575
|
+
closed: "closed";
|
|
576
576
|
interrupted: "interrupted";
|
|
577
577
|
}>;
|
|
578
578
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -636,9 +636,9 @@ export declare const hostedMcpSessionEventsResponseSchema: z.ZodObject<{
|
|
|
636
636
|
tools: z.ZodString;
|
|
637
637
|
}, z.core.$strip>;
|
|
638
638
|
status: z.ZodEnum<{
|
|
639
|
-
closed: "closed";
|
|
640
|
-
expired: "expired";
|
|
641
639
|
active: "active";
|
|
640
|
+
expired: "expired";
|
|
641
|
+
closed: "closed";
|
|
642
642
|
interrupted: "interrupted";
|
|
643
643
|
}>;
|
|
644
644
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -676,11 +676,11 @@ export declare const hostedMcpExecutionRunsResponseSchema: z.ZodObject<{
|
|
|
676
676
|
tool: z.ZodString;
|
|
677
677
|
mode: z.ZodNullable<z.ZodString>;
|
|
678
678
|
status: z.ZodEnum<{
|
|
679
|
-
completed: "completed";
|
|
680
679
|
failed: "failed";
|
|
680
|
+
completed: "completed";
|
|
681
|
+
canceled: "canceled";
|
|
681
682
|
queued: "queued";
|
|
682
683
|
running: "running";
|
|
683
|
-
canceled: "canceled";
|
|
684
684
|
approval_required: "approval_required";
|
|
685
685
|
}>;
|
|
686
686
|
approvalId: z.ZodNullable<z.ZodString>;
|
|
@@ -710,8 +710,8 @@ export declare const hostedMcpExecutionRunsResponseSchema: z.ZodObject<{
|
|
|
710
710
|
warning: "warning";
|
|
711
711
|
resource: "resource";
|
|
712
712
|
summary: "summary";
|
|
713
|
-
log: "log";
|
|
714
713
|
result: "result";
|
|
714
|
+
log: "log";
|
|
715
715
|
}>;
|
|
716
716
|
name: z.ZodString;
|
|
717
717
|
mimeType: z.ZodNullable<z.ZodString>;
|
|
@@ -730,11 +730,11 @@ export declare const hostedMcpExecutionRunResponseSchema: z.ZodObject<{
|
|
|
730
730
|
tool: z.ZodString;
|
|
731
731
|
mode: z.ZodNullable<z.ZodString>;
|
|
732
732
|
status: z.ZodEnum<{
|
|
733
|
-
completed: "completed";
|
|
734
733
|
failed: "failed";
|
|
734
|
+
completed: "completed";
|
|
735
|
+
canceled: "canceled";
|
|
735
736
|
queued: "queued";
|
|
736
737
|
running: "running";
|
|
737
|
-
canceled: "canceled";
|
|
738
738
|
approval_required: "approval_required";
|
|
739
739
|
}>;
|
|
740
740
|
approvalId: z.ZodNullable<z.ZodString>;
|
|
@@ -764,8 +764,8 @@ export declare const hostedMcpExecutionRunResponseSchema: z.ZodObject<{
|
|
|
764
764
|
warning: "warning";
|
|
765
765
|
resource: "resource";
|
|
766
766
|
summary: "summary";
|
|
767
|
-
log: "log";
|
|
768
767
|
result: "result";
|
|
768
|
+
log: "log";
|
|
769
769
|
}>;
|
|
770
770
|
name: z.ZodString;
|
|
771
771
|
mimeType: z.ZodNullable<z.ZodString>;
|
|
@@ -776,9 +776,7 @@ export declare const hostedMcpExecutionRunResponseSchema: z.ZodObject<{
|
|
|
776
776
|
}, z.core.$strip>;
|
|
777
777
|
}, z.core.$strip>;
|
|
778
778
|
export type HostedMcpSession = z.infer<typeof hostedMcpSessionSchema>;
|
|
779
|
-
export type HostedMcpWorkspaceSummary = z.infer<typeof hostedMcpWorkspaceSummarySchema>;
|
|
780
779
|
export type HostedMcpApproval = z.infer<typeof hostedMcpApprovalSchema>;
|
|
781
|
-
export type HostedMcpApprovalDecisionRequest = z.infer<typeof hostedMcpApprovalDecisionRequestSchema>;
|
|
782
780
|
export type HostedMcpSessionEvent = z.infer<typeof hostedMcpSessionEventSchema>;
|
|
783
781
|
export type HostedMcpExecutionRun = z.infer<typeof hostedMcpExecutionRunSchema>;
|
|
784
782
|
export type HostedMcpExecutionStep = z.infer<typeof hostedMcpExecutionStepSchema>;
|
package/dist/contracts/me.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const meResponseSchema: z.ZodObject<{
|
|
3
3
|
subject: z.ZodObject<{
|
|
4
4
|
type: z.ZodEnum<{
|
|
5
|
+
team: "team";
|
|
5
6
|
external: "external";
|
|
6
|
-
user: "user";
|
|
7
7
|
system: "system";
|
|
8
|
-
|
|
8
|
+
user: "user";
|
|
9
9
|
}>;
|
|
10
10
|
id: z.ZodString;
|
|
11
11
|
}, z.core.$strip>;
|
|
@@ -33,11 +33,11 @@ export declare const meResponseSchema: z.ZodObject<{
|
|
|
33
33
|
slug: z.ZodNullable<z.ZodString>;
|
|
34
34
|
role: z.ZodNullable<z.ZodString>;
|
|
35
35
|
plan: z.ZodEnum<{
|
|
36
|
-
|
|
36
|
+
free: "free";
|
|
37
|
+
internal: "internal";
|
|
37
38
|
work: "work";
|
|
39
|
+
personal: "personal";
|
|
38
40
|
enterprise: "enterprise";
|
|
39
|
-
internal: "internal";
|
|
40
|
-
free: "free";
|
|
41
41
|
}>;
|
|
42
42
|
}, z.core.$strip>>;
|
|
43
43
|
intercom: z.ZodNullable<z.ZodObject<{
|
|
@@ -51,11 +51,11 @@ export declare const meResponseSchema: z.ZodObject<{
|
|
|
51
51
|
company_id: z.ZodString;
|
|
52
52
|
name: z.ZodString;
|
|
53
53
|
plan: z.ZodOptional<z.ZodEnum<{
|
|
54
|
-
|
|
54
|
+
free: "free";
|
|
55
|
+
internal: "internal";
|
|
55
56
|
work: "work";
|
|
57
|
+
personal: "personal";
|
|
56
58
|
enterprise: "enterprise";
|
|
57
|
-
internal: "internal";
|
|
58
|
-
free: "free";
|
|
59
59
|
}>>;
|
|
60
60
|
}, z.core.$strip>>;
|
|
61
61
|
intercom_user_jwt: z.ZodString;
|
package/dist/contracts/me.js
CHANGED
|
@@ -97,7 +97,7 @@ export const meResponseSchema = z.object({
|
|
|
97
97
|
slug: z.string().nullable().describe("Team slug."),
|
|
98
98
|
source: betaEligibleTeamSourceSchema,
|
|
99
99
|
}))
|
|
100
|
-
.describe("Teams the user may join via the picker (pending invitation
|
|
100
|
+
.describe("Teams the user may join via the picker (pending invitation, auto-enroll match, or Automattician access)."),
|
|
101
101
|
})
|
|
102
102
|
.describe("Private-beta state. Dashboards key the blocked screen on gateEnabled && !enrolled, " +
|
|
103
103
|
"never on !enrolled alone — else launch-day flag-off would still block people."),
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
export declare const OAUTH_AUTHORIZATION_SERVER_PATH: "/v1/auth";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export type OAuthResourceKey = keyof typeof OAUTH_RESOURCE_PATHS;
|
|
2
|
+
/** The API resource is a path on the api origin; the MCP resource is the whole
|
|
3
|
+
* mcp origin (`https://mcp.<domain>`), so it has no path entry here. */
|
|
4
|
+
export declare const OAUTH_API_RESOURCE_PATH: "/v1";
|
|
5
|
+
export type OAuthResourceKey = "api" | "mcp";
|
|
7
6
|
export declare const OAUTH_API_RESOURCE_SCOPES: readonly ["teams:read", "spaces:read", "spaces:write", "publish:write", "domains:read", "domains:write"];
|
|
8
7
|
export declare const OAUTH_MCP_TOOL_SCOPE: "mcp:tools";
|
|
9
8
|
export declare const OAUTH_MCP_RESOURCE_SCOPES: readonly ["mcp:tools", "teams:read", "spaces:read", "spaces:write", "publish:write", "domains:read", "domains:write"];
|
|
@@ -11,20 +10,32 @@ export declare const OAUTH_PROVIDER_SCOPES: readonly ["openid", "profile", "emai
|
|
|
11
10
|
export declare const OAUTH_RESOURCE_DEFINITIONS: {
|
|
12
11
|
readonly api: {
|
|
13
12
|
readonly key: "api";
|
|
14
|
-
readonly path: "/v1";
|
|
15
13
|
readonly name: "Spacefast API";
|
|
16
14
|
readonly accessTokenTtlSeconds: number;
|
|
17
15
|
readonly allowedScopes: readonly ["teams:read", "spaces:read", "spaces:write", "publish:write", "domains:read", "domains:write"];
|
|
18
16
|
};
|
|
19
17
|
readonly mcp: {
|
|
20
18
|
readonly key: "mcp";
|
|
21
|
-
readonly path: "/mcp";
|
|
22
19
|
readonly name: "Spacefast MCP";
|
|
23
20
|
readonly accessTokenTtlSeconds: number;
|
|
24
21
|
readonly allowedScopes: readonly ["mcp:tools", "teams:read", "spaces:read", "spaces:write", "publish:write", "domains:read", "domains:write"];
|
|
25
22
|
};
|
|
26
23
|
};
|
|
27
|
-
|
|
24
|
+
/** Resource identifier for the public API: `https://api.<domain>/v1`. */
|
|
25
|
+
export declare function oauthApiResourceUrl(apiOrigin: string | URL): string;
|
|
26
|
+
/**
|
|
27
|
+
* Resource identifier for hosted MCP: the mcp origin itself, in RFC 8707
|
|
28
|
+
* canonical form (lowercase scheme/host, no trailing slash) — this is the
|
|
29
|
+
* exact string MCP clients send as the `resource` parameter.
|
|
30
|
+
*/
|
|
31
|
+
export declare function oauthMcpResourceUrl(mcpOrigin: string | URL): string;
|
|
32
|
+
export declare function normalizeOAuthResourceIdentifier(resource: string): string;
|
|
33
|
+
/**
|
|
34
|
+
* Derive the mcp origin from a configured api origin (`api.X` → `mcp.X`).
|
|
35
|
+
* Returns null when the api host doesn't follow the `api.` convention
|
|
36
|
+
* (loopback dev, docker test hosts) — callers fall back to the api origin.
|
|
37
|
+
*/
|
|
38
|
+
export declare function oauthMcpOriginFromApiOrigin(apiOrigin: string | URL): string | null;
|
|
28
39
|
export declare function oauthAuthorizationServerUrl(origin: string | URL): string;
|
|
29
40
|
export declare function oauthTokenEndpointUrl(origin: string | URL): string;
|
|
30
41
|
export declare function oauthResourceKeyForPathname(pathname: string): OAuthResourceKey | null;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
export const OAUTH_AUTHORIZATION_SERVER_PATH = "/v1/auth";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
2
|
+
/** The API resource is a path on the api origin; the MCP resource is the whole
|
|
3
|
+
* mcp origin (`https://mcp.<domain>`), so it has no path entry here. */
|
|
4
|
+
export const OAUTH_API_RESOURCE_PATH = "/v1";
|
|
6
5
|
export const OAUTH_API_RESOURCE_SCOPES = [
|
|
7
6
|
"teams:read",
|
|
8
7
|
"spaces:read",
|
|
@@ -27,21 +26,56 @@ export const OAUTH_PROVIDER_SCOPES = [
|
|
|
27
26
|
export const OAUTH_RESOURCE_DEFINITIONS = {
|
|
28
27
|
api: {
|
|
29
28
|
key: "api",
|
|
30
|
-
path: OAUTH_RESOURCE_PATHS.api,
|
|
31
29
|
name: "Spacefast API",
|
|
32
30
|
accessTokenTtlSeconds: 15 * 60,
|
|
33
31
|
allowedScopes: OAUTH_API_RESOURCE_SCOPES,
|
|
34
32
|
},
|
|
35
33
|
mcp: {
|
|
36
34
|
key: "mcp",
|
|
37
|
-
path: OAUTH_RESOURCE_PATHS.mcp,
|
|
38
35
|
name: "Spacefast MCP",
|
|
39
36
|
accessTokenTtlSeconds: 15 * 60,
|
|
40
37
|
allowedScopes: OAUTH_MCP_RESOURCE_SCOPES,
|
|
41
38
|
},
|
|
42
39
|
};
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
/** Resource identifier for the public API: `https://api.<domain>/v1`. */
|
|
41
|
+
export function oauthApiResourceUrl(apiOrigin) {
|
|
42
|
+
return new URL(OAUTH_API_RESOURCE_PATH, apiOrigin).toString();
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Resource identifier for hosted MCP: the mcp origin itself, in RFC 8707
|
|
46
|
+
* canonical form (lowercase scheme/host, no trailing slash) — this is the
|
|
47
|
+
* exact string MCP clients send as the `resource` parameter.
|
|
48
|
+
*/
|
|
49
|
+
export function oauthMcpResourceUrl(mcpOrigin) {
|
|
50
|
+
return new URL(mcpOrigin).origin;
|
|
51
|
+
}
|
|
52
|
+
export function normalizeOAuthResourceIdentifier(resource) {
|
|
53
|
+
const trimmed = resource.trim();
|
|
54
|
+
if (!trimmed) {
|
|
55
|
+
return trimmed;
|
|
56
|
+
}
|
|
57
|
+
const url = new URL(trimmed);
|
|
58
|
+
if (!url.search && !url.hash && url.pathname === "/") {
|
|
59
|
+
return url.origin;
|
|
60
|
+
}
|
|
61
|
+
if (!url.search && !url.hash && url.pathname === `${OAUTH_API_RESOURCE_PATH}/`) {
|
|
62
|
+
url.pathname = OAUTH_API_RESOURCE_PATH;
|
|
63
|
+
return url.toString();
|
|
64
|
+
}
|
|
65
|
+
return url.toString();
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Derive the mcp origin from a configured api origin (`api.X` → `mcp.X`).
|
|
69
|
+
* Returns null when the api host doesn't follow the `api.` convention
|
|
70
|
+
* (loopback dev, docker test hosts) — callers fall back to the api origin.
|
|
71
|
+
*/
|
|
72
|
+
export function oauthMcpOriginFromApiOrigin(apiOrigin) {
|
|
73
|
+
const url = new URL(apiOrigin);
|
|
74
|
+
if (!url.hostname.startsWith("api.")) {
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
url.hostname = `mcp.${url.hostname.slice("api.".length)}`;
|
|
78
|
+
return url.origin;
|
|
45
79
|
}
|
|
46
80
|
export function oauthAuthorizationServerUrl(origin) {
|
|
47
81
|
return new URL(OAUTH_AUTHORIZATION_SERVER_PATH, origin).toString();
|
|
@@ -50,11 +84,8 @@ export function oauthTokenEndpointUrl(origin) {
|
|
|
50
84
|
return new URL(`${OAUTH_AUTHORIZATION_SERVER_PATH}/oauth2/token`, origin).toString();
|
|
51
85
|
}
|
|
52
86
|
export function oauthResourceKeyForPathname(pathname) {
|
|
53
|
-
if (pathname ===
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
if (pathname === OAUTH_RESOURCE_PATHS.api ||
|
|
57
|
-
pathname.startsWith(`${OAUTH_RESOURCE_PATHS.api}/`)) {
|
|
87
|
+
if (pathname === OAUTH_API_RESOURCE_PATH ||
|
|
88
|
+
pathname.startsWith(`${OAUTH_API_RESOURCE_PATH}/`)) {
|
|
58
89
|
return "api";
|
|
59
90
|
}
|
|
60
91
|
return null;
|
|
@@ -11,10 +11,10 @@ export declare const operationListResponseSchema: z.ZodObject<{
|
|
|
11
11
|
kind: z.ZodString;
|
|
12
12
|
status: z.ZodEnum<{
|
|
13
13
|
failed: "failed";
|
|
14
|
+
canceled: "canceled";
|
|
14
15
|
queued: "queued";
|
|
15
16
|
running: "running";
|
|
16
17
|
succeeded: "succeeded";
|
|
17
|
-
canceled: "canceled";
|
|
18
18
|
}>;
|
|
19
19
|
resources: z.ZodArray<z.ZodObject<{
|
|
20
20
|
type: z.ZodString;
|
|
@@ -35,9 +35,9 @@ export declare const operationListResponseSchema: z.ZodObject<{
|
|
|
35
35
|
message: z.ZodString;
|
|
36
36
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
37
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
38
|
+
registrar: "registrar";
|
|
38
39
|
wpcloud: "wpcloud";
|
|
39
40
|
dns: "dns";
|
|
40
|
-
registrar: "registrar";
|
|
41
41
|
runtime: "runtime";
|
|
42
42
|
}>>>;
|
|
43
43
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -19,8 +19,8 @@ export type PlanDisabledBehavior = z.infer<typeof planDisabledBehaviorSchema>;
|
|
|
19
19
|
export declare const PlanPolicyResponseSchema: z.ZodObject<{
|
|
20
20
|
principal: z.ZodObject<{
|
|
21
21
|
type: z.ZodEnum<{
|
|
22
|
-
space: "space";
|
|
23
22
|
site: "site";
|
|
23
|
+
space: "space";
|
|
24
24
|
team: "team";
|
|
25
25
|
external_principal: "external_principal";
|
|
26
26
|
}>;
|
|
@@ -30,10 +30,10 @@ export declare const PlanPolicyResponseSchema: z.ZodObject<{
|
|
|
30
30
|
spaceId: z.ZodOptional<z.ZodString>;
|
|
31
31
|
plan: z.ZodEnum<{
|
|
32
32
|
free: "free";
|
|
33
|
-
|
|
33
|
+
internal: "internal";
|
|
34
34
|
work: "work";
|
|
35
|
+
personal: "personal";
|
|
35
36
|
enterprise: "enterprise";
|
|
36
|
-
internal: "internal";
|
|
37
37
|
}>;
|
|
38
38
|
limits: z.ZodObject<{
|
|
39
39
|
storageBytes: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
@@ -59,9 +59,9 @@ export declare const PlanPolicyResponseSchema: z.ZodObject<{
|
|
|
59
59
|
}, z.core.$strip>>;
|
|
60
60
|
warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
61
61
|
severity: z.ZodEnum<{
|
|
62
|
-
error: "error";
|
|
63
62
|
info: "info";
|
|
64
63
|
warning: "warning";
|
|
64
|
+
error: "error";
|
|
65
65
|
}>;
|
|
66
66
|
code: z.ZodString;
|
|
67
67
|
message: z.ZodString;
|