@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
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const SITE_PAGE_IDS: readonly ["404", "denied", "access", "index", "preview"];
|
|
3
3
|
export declare const sitePageIdSchema: z.ZodEnum<{
|
|
4
|
+
access: "access";
|
|
4
5
|
denied: "denied";
|
|
5
|
-
index: "index";
|
|
6
6
|
preview: "preview";
|
|
7
|
-
|
|
7
|
+
index: "index";
|
|
8
8
|
404: "404";
|
|
9
9
|
}>;
|
|
10
10
|
export type SitePageId = z.infer<typeof sitePageIdSchema>;
|
|
11
11
|
export declare const ROUTE_PAGE_IDS: readonly ["404", "denied", "access"];
|
|
12
12
|
export declare const routePageIdSchema: z.ZodEnum<{
|
|
13
|
-
denied: "denied";
|
|
14
13
|
access: "access";
|
|
14
|
+
denied: "denied";
|
|
15
15
|
404: "404";
|
|
16
16
|
}>;
|
|
17
17
|
export type RoutePageId = z.infer<typeof routePageIdSchema>;
|
|
18
18
|
export declare const CUSTOM_PAGE_IDS: readonly ["404", "denied", "access", "index", "preview", "collab"];
|
|
19
19
|
export declare const customPageIdSchema: z.ZodEnum<{
|
|
20
20
|
collab: "collab";
|
|
21
|
+
access: "access";
|
|
21
22
|
denied: "denied";
|
|
22
|
-
index: "index";
|
|
23
23
|
preview: "preview";
|
|
24
|
-
|
|
24
|
+
index: "index";
|
|
25
25
|
404: "404";
|
|
26
26
|
}>;
|
|
27
27
|
export type CustomPageId = z.infer<typeof customPageIdSchema>;
|
|
@@ -59,8 +59,8 @@ export declare const pageArtifactKeySchema: z.ZodString;
|
|
|
59
59
|
export declare const runtimePagesSchema: z.ZodObject<{
|
|
60
60
|
routes: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
61
61
|
pages: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
62
|
-
denied: "denied";
|
|
63
62
|
access: "access";
|
|
63
|
+
denied: "denied";
|
|
64
64
|
404: "404";
|
|
65
65
|
}>, z.ZodString>>;
|
|
66
66
|
index: z.ZodOptional<z.ZodString>;
|
|
@@ -54,8 +54,8 @@ export declare const PlanPolicyResponseSchema: z.ZodObject<{
|
|
|
54
54
|
warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
55
55
|
severity: z.ZodEnum<{
|
|
56
56
|
info: "info";
|
|
57
|
-
warning: "warning";
|
|
58
57
|
error: "error";
|
|
58
|
+
warning: "warning";
|
|
59
59
|
}>;
|
|
60
60
|
code: z.ZodString;
|
|
61
61
|
message: z.ZodString;
|
|
@@ -2,7 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
import { diagnosticSeverity } from "./enums.js";
|
|
3
3
|
import { planCodeSchema, planLimitValueSchema } from "./features.js";
|
|
4
4
|
// Behaviors the platform disables (rather than failing publishes) when the
|
|
5
|
-
// plan does not include them (
|
|
5
|
+
// plan does not include them (the platform spec "Plans And Limits").
|
|
6
6
|
export const PLAN_DISABLED_BEHAVIOR_CODES = [
|
|
7
7
|
"free_external_proxy_disabled",
|
|
8
8
|
"routing_rules_over_plan",
|
|
@@ -100,14 +100,14 @@ export declare const accessLogListResponseSchema: z.ZodObject<{
|
|
|
100
100
|
code: z.ZodString;
|
|
101
101
|
severity: z.ZodEnum<{
|
|
102
102
|
info: "info";
|
|
103
|
-
warning: "warning";
|
|
104
103
|
error: "error";
|
|
104
|
+
warning: "warning";
|
|
105
105
|
}>;
|
|
106
106
|
message: z.ZodString;
|
|
107
107
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
108
108
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
109
109
|
registrar: "registrar";
|
|
110
|
-
|
|
110
|
+
infra: "infra";
|
|
111
111
|
dns: "dns";
|
|
112
112
|
runtime: "runtime";
|
|
113
113
|
}>>>;
|
|
@@ -164,14 +164,14 @@ export declare const runtimeLogListResponseSchema: z.ZodObject<{
|
|
|
164
164
|
code: z.ZodString;
|
|
165
165
|
severity: z.ZodEnum<{
|
|
166
166
|
info: "info";
|
|
167
|
-
warning: "warning";
|
|
168
167
|
error: "error";
|
|
168
|
+
warning: "warning";
|
|
169
169
|
}>;
|
|
170
170
|
message: z.ZodString;
|
|
171
171
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
172
172
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
173
173
|
registrar: "registrar";
|
|
174
|
-
|
|
174
|
+
infra: "infra";
|
|
175
175
|
dns: "dns";
|
|
176
176
|
runtime: "runtime";
|
|
177
177
|
}>>>;
|
|
@@ -3,6 +3,7 @@ export declare const archivePublishReceiptSchema: z.ZodObject<{
|
|
|
3
3
|
space: z.ZodObject<{
|
|
4
4
|
id: z.ZodString;
|
|
5
5
|
slug: z.ZodString;
|
|
6
|
+
title: z.ZodString;
|
|
6
7
|
publicName: z.ZodString;
|
|
7
8
|
defaultHostname: z.ZodString;
|
|
8
9
|
liveUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -52,14 +53,14 @@ export declare const archivePublishReceiptSchema: z.ZodObject<{
|
|
|
52
53
|
code: z.ZodString;
|
|
53
54
|
severity: z.ZodEnum<{
|
|
54
55
|
info: "info";
|
|
55
|
-
warning: "warning";
|
|
56
56
|
error: "error";
|
|
57
|
+
warning: "warning";
|
|
57
58
|
}>;
|
|
58
59
|
message: z.ZodString;
|
|
59
60
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
61
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
61
62
|
registrar: "registrar";
|
|
62
|
-
|
|
63
|
+
infra: "infra";
|
|
63
64
|
dns: "dns";
|
|
64
65
|
runtime: "runtime";
|
|
65
66
|
}>>>;
|
|
@@ -128,14 +129,14 @@ export declare const archivePublishReceiptSchema: z.ZodObject<{
|
|
|
128
129
|
code: z.ZodString;
|
|
129
130
|
severity: z.ZodEnum<{
|
|
130
131
|
info: "info";
|
|
131
|
-
warning: "warning";
|
|
132
132
|
error: "error";
|
|
133
|
+
warning: "warning";
|
|
133
134
|
}>;
|
|
134
135
|
message: z.ZodString;
|
|
135
136
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
136
137
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
137
138
|
registrar: "registrar";
|
|
138
|
-
|
|
139
|
+
infra: "infra";
|
|
139
140
|
dns: "dns";
|
|
140
141
|
runtime: "runtime";
|
|
141
142
|
}>>>;
|
|
@@ -150,10 +151,169 @@ export declare const archivePublishReceiptSchema: z.ZodObject<{
|
|
|
150
151
|
version: z.ZodOptional<z.ZodString>;
|
|
151
152
|
}, z.core.$strip>;
|
|
152
153
|
}, z.core.$strip>;
|
|
154
|
+
/**
|
|
155
|
+
* `build` is the discriminant: a remote-build publish carries one, an ordinary
|
|
156
|
+
* publish never does. The archive member is tried first because the ordinary
|
|
157
|
+
* receipt would otherwise match a finished build's receipt (which also carries
|
|
158
|
+
* a version and an activation) and silently strip the build off it, leaving
|
|
159
|
+
* every caller's `"build" in receipt` check answering false.
|
|
160
|
+
*/
|
|
153
161
|
export declare const publishResponseReceiptSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
154
162
|
space: z.ZodObject<{
|
|
155
163
|
id: z.ZodString;
|
|
156
164
|
slug: z.ZodString;
|
|
165
|
+
title: z.ZodString;
|
|
166
|
+
publicName: z.ZodString;
|
|
167
|
+
defaultHostname: z.ZodString;
|
|
168
|
+
liveUrl: z.ZodNullable<z.ZodString>;
|
|
169
|
+
}, z.core.$strip>;
|
|
170
|
+
build: z.ZodObject<{
|
|
171
|
+
id: z.ZodString;
|
|
172
|
+
spaceId: z.ZodString;
|
|
173
|
+
status: z.ZodEnum<{
|
|
174
|
+
failed: "failed";
|
|
175
|
+
canceled: "canceled";
|
|
176
|
+
waiting_for_source: "waiting_for_source";
|
|
177
|
+
uploading_source: "uploading_source";
|
|
178
|
+
queued: "queued";
|
|
179
|
+
running: "running";
|
|
180
|
+
succeeded: "succeeded";
|
|
181
|
+
skipped: "skipped";
|
|
182
|
+
}>;
|
|
183
|
+
input: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
184
|
+
kind: z.ZodLiteral<"archive">;
|
|
185
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
186
|
+
kind: z.ZodLiteral<"repository">;
|
|
187
|
+
ref: z.ZodString;
|
|
188
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
189
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
190
|
+
pullRequestNumber: z.ZodOptional<z.ZodNumber>;
|
|
191
|
+
}, z.core.$strict>], "kind">;
|
|
192
|
+
settingsSnapshot: z.ZodObject<{
|
|
193
|
+
rootDirectory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
194
|
+
installDirectory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
195
|
+
installCommand: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
196
|
+
buildCommand: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
197
|
+
outputDirectory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
198
|
+
ignoredBuildCommand: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
199
|
+
frameworkPreset: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
200
|
+
platformPreset: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
201
|
+
allowUnsupportedPlatformFeatures: z.ZodDefault<z.ZodBoolean>;
|
|
202
|
+
timeoutSeconds: z.ZodDefault<z.ZodNumber>;
|
|
203
|
+
}, z.core.$strip>;
|
|
204
|
+
target: z.ZodObject<{
|
|
205
|
+
channel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
206
|
+
preview: z.ZodDefault<z.ZodBoolean>;
|
|
207
|
+
}, z.core.$strip>;
|
|
208
|
+
retryOfBuildId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
209
|
+
producedVersionId: z.ZodNullable<z.ZodString>;
|
|
210
|
+
reusedVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
211
|
+
diagnostics: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
212
|
+
code: z.ZodString;
|
|
213
|
+
severity: z.ZodEnum<{
|
|
214
|
+
info: "info";
|
|
215
|
+
error: "error";
|
|
216
|
+
warning: "warning";
|
|
217
|
+
}>;
|
|
218
|
+
message: z.ZodString;
|
|
219
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
220
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
221
|
+
registrar: "registrar";
|
|
222
|
+
infra: "infra";
|
|
223
|
+
dns: "dns";
|
|
224
|
+
runtime: "runtime";
|
|
225
|
+
}>>>;
|
|
226
|
+
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
227
|
+
fix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
228
|
+
retryable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
229
|
+
}, z.core.$strip>>>;
|
|
230
|
+
createdAt: z.ZodString;
|
|
231
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
232
|
+
finishedAt: z.ZodNullable<z.ZodString>;
|
|
233
|
+
}, z.core.$strip>;
|
|
234
|
+
version: z.ZodOptional<z.ZodObject<{
|
|
235
|
+
id: z.ZodString;
|
|
236
|
+
status: z.ZodEnum<{
|
|
237
|
+
failed: "failed";
|
|
238
|
+
canceled: "canceled";
|
|
239
|
+
expired: "expired";
|
|
240
|
+
building: "building";
|
|
241
|
+
prepared: "prepared";
|
|
242
|
+
created: "created";
|
|
243
|
+
uploading: "uploading";
|
|
244
|
+
uploaded: "uploaded";
|
|
245
|
+
finalizing: "finalizing";
|
|
246
|
+
ready: "ready";
|
|
247
|
+
}>;
|
|
248
|
+
immutableUrl: z.ZodString;
|
|
249
|
+
ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
250
|
+
number: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
251
|
+
manifestHash: z.ZodNullable<z.ZodString>;
|
|
252
|
+
}, z.core.$strip>>;
|
|
253
|
+
activation: z.ZodOptional<z.ZodObject<{
|
|
254
|
+
channel: z.ZodNullable<z.ZodEnum<{
|
|
255
|
+
live: "live";
|
|
256
|
+
}>>;
|
|
257
|
+
outcome: z.ZodEnum<{
|
|
258
|
+
pending: "pending";
|
|
259
|
+
activated: "activated";
|
|
260
|
+
unpromoted: "unpromoted";
|
|
261
|
+
superseded: "superseded";
|
|
262
|
+
}>;
|
|
263
|
+
currentLiveVersionId: z.ZodNullable<z.ZodString>;
|
|
264
|
+
}, z.core.$strip>>;
|
|
265
|
+
next: z.ZodObject<{
|
|
266
|
+
action: z.ZodEnum<{
|
|
267
|
+
upload: "upload";
|
|
268
|
+
finalize: "finalize";
|
|
269
|
+
done: "done";
|
|
270
|
+
poll: "poll";
|
|
271
|
+
}>;
|
|
272
|
+
url: z.ZodOptional<z.ZodString>;
|
|
273
|
+
retryAfter: z.ZodOptional<z.ZodNumber>;
|
|
274
|
+
hint: z.ZodString;
|
|
275
|
+
}, z.core.$strip>;
|
|
276
|
+
access: z.ZodOptional<z.ZodObject<{
|
|
277
|
+
url: z.ZodString;
|
|
278
|
+
token: z.ZodString;
|
|
279
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
280
|
+
}, z.core.$strip>>;
|
|
281
|
+
claim: z.ZodOptional<z.ZodObject<{
|
|
282
|
+
key: z.ZodString;
|
|
283
|
+
url: z.ZodString;
|
|
284
|
+
claimUrl: z.ZodString;
|
|
285
|
+
expiresAt: z.ZodString;
|
|
286
|
+
}, z.core.$strip>>;
|
|
287
|
+
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
288
|
+
code: z.ZodString;
|
|
289
|
+
severity: z.ZodEnum<{
|
|
290
|
+
info: "info";
|
|
291
|
+
error: "error";
|
|
292
|
+
warning: "warning";
|
|
293
|
+
}>;
|
|
294
|
+
message: z.ZodString;
|
|
295
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
296
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
297
|
+
registrar: "registrar";
|
|
298
|
+
infra: "infra";
|
|
299
|
+
dns: "dns";
|
|
300
|
+
runtime: "runtime";
|
|
301
|
+
}>>>;
|
|
302
|
+
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
303
|
+
fix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
304
|
+
retryable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
305
|
+
}, z.core.$strip>>>;
|
|
306
|
+
links: z.ZodObject<{
|
|
307
|
+
inspect: z.ZodString;
|
|
308
|
+
build: z.ZodString;
|
|
309
|
+
status: z.ZodString;
|
|
310
|
+
version: z.ZodOptional<z.ZodString>;
|
|
311
|
+
}, z.core.$strip>;
|
|
312
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
313
|
+
space: z.ZodObject<{
|
|
314
|
+
id: z.ZodString;
|
|
315
|
+
slug: z.ZodString;
|
|
316
|
+
title: z.ZodString;
|
|
157
317
|
publicName: z.ZodString;
|
|
158
318
|
defaultHostname: z.ZodString;
|
|
159
319
|
liveUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -228,14 +388,14 @@ export declare const publishResponseReceiptSchema: z.ZodUnion<readonly [z.ZodObj
|
|
|
228
388
|
code: z.ZodString;
|
|
229
389
|
severity: z.ZodEnum<{
|
|
230
390
|
info: "info";
|
|
231
|
-
warning: "warning";
|
|
232
391
|
error: "error";
|
|
392
|
+
warning: "warning";
|
|
233
393
|
}>;
|
|
234
394
|
message: z.ZodString;
|
|
235
395
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
236
396
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
237
397
|
registrar: "registrar";
|
|
238
|
-
|
|
398
|
+
infra: "infra";
|
|
239
399
|
dns: "dns";
|
|
240
400
|
runtime: "runtime";
|
|
241
401
|
}>>>;
|
|
@@ -292,14 +452,14 @@ export declare const publishResponseReceiptSchema: z.ZodUnion<readonly [z.ZodObj
|
|
|
292
452
|
code: z.ZodString;
|
|
293
453
|
severity: z.ZodEnum<{
|
|
294
454
|
info: "info";
|
|
295
|
-
warning: "warning";
|
|
296
455
|
error: "error";
|
|
456
|
+
warning: "warning";
|
|
297
457
|
}>;
|
|
298
458
|
message: z.ZodString;
|
|
299
459
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
300
460
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
301
461
|
registrar: "registrar";
|
|
302
|
-
|
|
462
|
+
infra: "infra";
|
|
303
463
|
dns: "dns";
|
|
304
464
|
runtime: "runtime";
|
|
305
465
|
}>>>;
|
|
@@ -319,14 +479,14 @@ export declare const publishResponseReceiptSchema: z.ZodUnion<readonly [z.ZodObj
|
|
|
319
479
|
code: z.ZodString;
|
|
320
480
|
severity: z.ZodEnum<{
|
|
321
481
|
info: "info";
|
|
322
|
-
warning: "warning";
|
|
323
482
|
error: "error";
|
|
483
|
+
warning: "warning";
|
|
324
484
|
}>;
|
|
325
485
|
message: z.ZodString;
|
|
326
486
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
327
487
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
328
488
|
registrar: "registrar";
|
|
329
|
-
|
|
489
|
+
infra: "infra";
|
|
330
490
|
dns: "dns";
|
|
331
491
|
runtime: "runtime";
|
|
332
492
|
}>>>;
|
|
@@ -343,156 +503,6 @@ export declare const publishResponseReceiptSchema: z.ZodUnion<readonly [z.ZodObj
|
|
|
343
503
|
version: z.ZodOptional<z.ZodString>;
|
|
344
504
|
status: z.ZodOptional<z.ZodString>;
|
|
345
505
|
}, z.core.$strip>>;
|
|
346
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
347
|
-
space: z.ZodObject<{
|
|
348
|
-
id: z.ZodString;
|
|
349
|
-
slug: z.ZodString;
|
|
350
|
-
publicName: z.ZodString;
|
|
351
|
-
defaultHostname: z.ZodString;
|
|
352
|
-
liveUrl: z.ZodNullable<z.ZodString>;
|
|
353
|
-
}, z.core.$strip>;
|
|
354
|
-
build: z.ZodObject<{
|
|
355
|
-
id: z.ZodString;
|
|
356
|
-
spaceId: z.ZodString;
|
|
357
|
-
status: z.ZodEnum<{
|
|
358
|
-
failed: "failed";
|
|
359
|
-
canceled: "canceled";
|
|
360
|
-
waiting_for_source: "waiting_for_source";
|
|
361
|
-
uploading_source: "uploading_source";
|
|
362
|
-
queued: "queued";
|
|
363
|
-
running: "running";
|
|
364
|
-
succeeded: "succeeded";
|
|
365
|
-
skipped: "skipped";
|
|
366
|
-
}>;
|
|
367
|
-
input: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
368
|
-
kind: z.ZodLiteral<"archive">;
|
|
369
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
370
|
-
kind: z.ZodLiteral<"repository">;
|
|
371
|
-
ref: z.ZodString;
|
|
372
|
-
commit: z.ZodOptional<z.ZodString>;
|
|
373
|
-
branch: z.ZodOptional<z.ZodString>;
|
|
374
|
-
pullRequestNumber: z.ZodOptional<z.ZodNumber>;
|
|
375
|
-
}, z.core.$strict>], "kind">;
|
|
376
|
-
settingsSnapshot: z.ZodObject<{
|
|
377
|
-
rootDirectory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
378
|
-
installDirectory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
379
|
-
installCommand: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
380
|
-
buildCommand: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
381
|
-
outputDirectory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
382
|
-
ignoredBuildCommand: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
383
|
-
frameworkPreset: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
384
|
-
platformPreset: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
385
|
-
allowUnsupportedPlatformFeatures: z.ZodDefault<z.ZodBoolean>;
|
|
386
|
-
timeoutSeconds: z.ZodDefault<z.ZodNumber>;
|
|
387
|
-
}, z.core.$strip>;
|
|
388
|
-
target: z.ZodObject<{
|
|
389
|
-
channel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
390
|
-
preview: z.ZodDefault<z.ZodBoolean>;
|
|
391
|
-
}, z.core.$strip>;
|
|
392
|
-
retryOfBuildId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
393
|
-
producedVersionId: z.ZodNullable<z.ZodString>;
|
|
394
|
-
reusedVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
395
|
-
diagnostics: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
396
|
-
code: z.ZodString;
|
|
397
|
-
severity: z.ZodEnum<{
|
|
398
|
-
info: "info";
|
|
399
|
-
warning: "warning";
|
|
400
|
-
error: "error";
|
|
401
|
-
}>;
|
|
402
|
-
message: z.ZodString;
|
|
403
|
-
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
404
|
-
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
405
|
-
registrar: "registrar";
|
|
406
|
-
wpcloud: "wpcloud";
|
|
407
|
-
dns: "dns";
|
|
408
|
-
runtime: "runtime";
|
|
409
|
-
}>>>;
|
|
410
|
-
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
411
|
-
fix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
412
|
-
retryable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
413
|
-
}, z.core.$strip>>>;
|
|
414
|
-
createdAt: z.ZodString;
|
|
415
|
-
startedAt: z.ZodNullable<z.ZodString>;
|
|
416
|
-
finishedAt: z.ZodNullable<z.ZodString>;
|
|
417
|
-
}, z.core.$strip>;
|
|
418
|
-
version: z.ZodOptional<z.ZodObject<{
|
|
419
|
-
id: z.ZodString;
|
|
420
|
-
status: z.ZodEnum<{
|
|
421
|
-
failed: "failed";
|
|
422
|
-
canceled: "canceled";
|
|
423
|
-
expired: "expired";
|
|
424
|
-
building: "building";
|
|
425
|
-
prepared: "prepared";
|
|
426
|
-
created: "created";
|
|
427
|
-
uploading: "uploading";
|
|
428
|
-
uploaded: "uploaded";
|
|
429
|
-
finalizing: "finalizing";
|
|
430
|
-
ready: "ready";
|
|
431
|
-
}>;
|
|
432
|
-
immutableUrl: z.ZodString;
|
|
433
|
-
ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
434
|
-
number: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
435
|
-
manifestHash: z.ZodNullable<z.ZodString>;
|
|
436
|
-
}, z.core.$strip>>;
|
|
437
|
-
activation: z.ZodOptional<z.ZodObject<{
|
|
438
|
-
channel: z.ZodNullable<z.ZodEnum<{
|
|
439
|
-
live: "live";
|
|
440
|
-
}>>;
|
|
441
|
-
outcome: z.ZodEnum<{
|
|
442
|
-
pending: "pending";
|
|
443
|
-
activated: "activated";
|
|
444
|
-
unpromoted: "unpromoted";
|
|
445
|
-
superseded: "superseded";
|
|
446
|
-
}>;
|
|
447
|
-
currentLiveVersionId: z.ZodNullable<z.ZodString>;
|
|
448
|
-
}, z.core.$strip>>;
|
|
449
|
-
next: z.ZodObject<{
|
|
450
|
-
action: z.ZodEnum<{
|
|
451
|
-
upload: "upload";
|
|
452
|
-
finalize: "finalize";
|
|
453
|
-
done: "done";
|
|
454
|
-
poll: "poll";
|
|
455
|
-
}>;
|
|
456
|
-
url: z.ZodOptional<z.ZodString>;
|
|
457
|
-
retryAfter: z.ZodOptional<z.ZodNumber>;
|
|
458
|
-
hint: z.ZodString;
|
|
459
|
-
}, z.core.$strip>;
|
|
460
|
-
access: z.ZodOptional<z.ZodObject<{
|
|
461
|
-
url: z.ZodString;
|
|
462
|
-
token: z.ZodString;
|
|
463
|
-
expiresAt: z.ZodNullable<z.ZodString>;
|
|
464
|
-
}, z.core.$strip>>;
|
|
465
|
-
claim: z.ZodOptional<z.ZodObject<{
|
|
466
|
-
key: z.ZodString;
|
|
467
|
-
url: z.ZodString;
|
|
468
|
-
claimUrl: z.ZodString;
|
|
469
|
-
expiresAt: z.ZodString;
|
|
470
|
-
}, z.core.$strip>>;
|
|
471
|
-
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
472
|
-
code: z.ZodString;
|
|
473
|
-
severity: z.ZodEnum<{
|
|
474
|
-
info: "info";
|
|
475
|
-
warning: "warning";
|
|
476
|
-
error: "error";
|
|
477
|
-
}>;
|
|
478
|
-
message: z.ZodString;
|
|
479
|
-
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
480
|
-
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
481
|
-
registrar: "registrar";
|
|
482
|
-
wpcloud: "wpcloud";
|
|
483
|
-
dns: "dns";
|
|
484
|
-
runtime: "runtime";
|
|
485
|
-
}>>>;
|
|
486
|
-
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
487
|
-
fix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
488
|
-
retryable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
489
|
-
}, z.core.$strip>>>;
|
|
490
|
-
links: z.ZodObject<{
|
|
491
|
-
inspect: z.ZodString;
|
|
492
|
-
build: z.ZodString;
|
|
493
|
-
status: z.ZodString;
|
|
494
|
-
version: z.ZodOptional<z.ZodString>;
|
|
495
|
-
}, z.core.$strip>;
|
|
496
506
|
}, z.core.$strip>]>;
|
|
497
507
|
export type ArchivePublishReceipt = z.infer<typeof archivePublishReceiptSchema>;
|
|
498
508
|
export type PublishResponseReceipt = z.infer<typeof publishResponseReceiptSchema>;
|
|
@@ -19,7 +19,14 @@ export const archivePublishReceiptSchema = z.object({
|
|
|
19
19
|
version: z.string().optional(),
|
|
20
20
|
}),
|
|
21
21
|
});
|
|
22
|
+
/**
|
|
23
|
+
* `build` is the discriminant: a remote-build publish carries one, an ordinary
|
|
24
|
+
* publish never does. The archive member is tried first because the ordinary
|
|
25
|
+
* receipt would otherwise match a finished build's receipt (which also carries
|
|
26
|
+
* a version and an activation) and silently strip the build off it, leaving
|
|
27
|
+
* every caller's `"build" in receipt` check answering false.
|
|
28
|
+
*/
|
|
22
29
|
export const publishResponseReceiptSchema = z.union([
|
|
23
|
-
publishReceiptSchema,
|
|
24
30
|
archivePublishReceiptSchema,
|
|
31
|
+
publishReceiptSchema,
|
|
25
32
|
]);
|
|
@@ -162,17 +162,17 @@ export declare const PushNewStatusResponseSchema: z.ZodObject<{
|
|
|
162
162
|
updatedAt: z.ZodString;
|
|
163
163
|
branch: z.ZodString;
|
|
164
164
|
versionId: z.ZodNullable<z.ZodString>;
|
|
165
|
-
ref: z.ZodNullable<z.ZodString>;
|
|
166
|
-
spaceSlug: z.ZodString;
|
|
167
|
-
commitSha: z.ZodNullable<z.ZodString>;
|
|
168
|
-
repositoryFullName: z.ZodNullable<z.ZodString>;
|
|
169
165
|
slug: z.ZodString;
|
|
170
166
|
liveUrl: z.ZodString;
|
|
167
|
+
repositoryFullName: z.ZodNullable<z.ZodString>;
|
|
168
|
+
ref: z.ZodNullable<z.ZodString>;
|
|
169
|
+
commitSha: z.ZodNullable<z.ZodString>;
|
|
171
170
|
buildId: z.ZodNullable<z.ZodString>;
|
|
172
171
|
claimUrl: z.ZodString;
|
|
173
172
|
repositoryConnectionId: z.ZodNullable<z.ZodString>;
|
|
174
173
|
repositoryId: z.ZodNullable<z.ZodString>;
|
|
175
174
|
reusedVersionId: z.ZodNullable<z.ZodString>;
|
|
175
|
+
spaceSlug: z.ZodString;
|
|
176
176
|
errorCode: z.ZodNullable<z.ZodString>;
|
|
177
177
|
sourceKind: z.ZodEnum<{
|
|
178
178
|
direct_upload: "direct_upload";
|
package/dist/contracts/quotas.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Crude worst-case quotas (
|
|
1
|
+
// Crude worst-case quotas (the platform spec "Abuse Posture"): hard,
|
|
2
2
|
// launch-day abuse controls that exist independently of plan limits. One named
|
|
3
3
|
// raise-only table — raising a limit later is a tweet, lowering one is a
|
|
4
4
|
// betrayal. Enforcement points live in the control plane and reference these
|
|
@@ -20,7 +20,7 @@ export const WORST_CASE_QUOTAS = {
|
|
|
20
20
|
// over budget are recorded failed (never silently dropped) and never queued.
|
|
21
21
|
maxWebhookDeliveriesPerTenantPerHour: 10_000,
|
|
22
22
|
};
|
|
23
|
-
// Anonymous-tier safety caps (
|
|
23
|
+
// Anonymous-tier safety caps (the platform spec "Abuse Posture"):
|
|
24
24
|
// LIVE launch values, anonymous <= Free on every axis. These protect the
|
|
25
25
|
// platform and are not soft plan seams; plan policy can only raise them.
|
|
26
26
|
export const ANONYMOUS_PUBLISH_CAPS = {
|