@spacefast/common 0.2.1 → 0.4.1
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/marketplace-prompts.d.ts +1 -0
- package/dist/agents/marketplace-prompts.js +6 -0
- package/dist/agents/registry/core.d.ts +4 -12
- package/dist/agents/registry/core.js +7 -28
- package/dist/config/domains.d.ts +10 -8
- package/dist/config/domains.js +4 -7
- package/dist/contracts/access-core.d.ts +135 -0
- package/dist/contracts/access-core.js +242 -0
- package/dist/contracts/access-profiles.d.ts +8 -8
- package/dist/contracts/access-profiles.js +8 -8
- package/dist/contracts/access.d.ts +14 -103
- package/dist/contracts/access.js +10 -210
- package/dist/contracts/activity.d.ts +54 -55
- package/dist/contracts/activity.js +38 -9
- package/dist/contracts/api-keys.d.ts +69 -26
- package/dist/contracts/api-keys.js +29 -2
- package/dist/contracts/application-journal.d.ts +197 -4
- package/dist/contracts/application-journal.js +97 -16
- package/dist/contracts/auth.d.ts +20 -0
- package/dist/contracts/auth.js +18 -0
- package/dist/contracts/beta.d.ts +13 -0
- package/dist/contracts/beta.js +28 -0
- package/dist/contracts/billing.d.ts +2 -2
- package/dist/contracts/bootstrap.d.ts +23 -6
- package/dist/contracts/builds.d.ts +24 -4
- package/dist/contracts/builds.js +16 -4
- package/dist/contracts/channels.d.ts +43 -0
- package/dist/contracts/channels.js +22 -6
- package/dist/contracts/comments.d.ts +49 -0
- package/dist/contracts/comments.js +61 -2
- package/dist/contracts/commerce.d.ts +19 -13
- package/dist/contracts/connector-access.d.ts +28 -0
- package/dist/contracts/connector-access.js +31 -0
- package/dist/contracts/connectors.d.ts +2382 -0
- package/dist/contracts/connectors.js +941 -0
- package/dist/contracts/content-contract-verification.d.ts +112 -58
- package/dist/contracts/content-contract-verification.js +42 -54
- package/dist/contracts/content-model-emit.d.ts +97 -0
- package/dist/contracts/content-model-emit.js +306 -0
- package/dist/contracts/content-model-sdk.d.ts +101 -0
- package/dist/contracts/content-model-sdk.js +232 -0
- package/dist/contracts/{content-program.d.ts → content-model.d.ts} +338 -82
- package/dist/contracts/{content-program.js → content-model.js} +291 -63
- package/dist/contracts/content-platform-fixture.d.ts +380 -110
- package/dist/contracts/content-platform-fixture.js +8 -8
- package/dist/contracts/content-sync.d.ts +197 -74
- package/dist/contracts/content-sync.js +98 -37
- package/dist/contracts/content.d.ts +30 -422
- package/dist/contracts/content.js +34 -294
- package/dist/contracts/dashboard-prefs.d.ts +10 -3
- package/dist/contracts/dashboard-prefs.js +6 -3
- package/dist/contracts/data-location.d.ts +9 -0
- package/dist/contracts/data-location.js +7 -0
- package/dist/contracts/deployment-comparison.d.ts +67 -0
- package/dist/contracts/deployment-comparison.js +68 -0
- package/dist/contracts/device-auth.d.ts +55 -11
- package/dist/contracts/domains.d.ts +40 -16
- package/dist/contracts/domains.js +23 -0
- package/dist/contracts/enums.d.ts +1 -10
- package/dist/contracts/enums.js +0 -15
- package/dist/contracts/error-code-meta.d.ts +388 -20
- package/dist/contracts/error-code-meta.js +201 -5
- package/dist/contracts/error-codes.d.ts +17 -4
- package/dist/contracts/error-codes.js +109 -10
- package/dist/contracts/events.d.ts +5 -0
- package/dist/contracts/events.js +12 -3
- package/dist/contracts/execution.d.ts +5 -1
- package/dist/contracts/execution.js +4 -0
- package/dist/contracts/feature-lifecycle.d.ts +53 -20
- package/dist/contracts/feature-lifecycle.js +65 -23
- package/dist/contracts/features.d.ts +57 -31
- package/dist/contracts/features.js +0 -1
- package/dist/contracts/feedback.d.ts +124 -0
- package/dist/contracts/feedback.js +64 -0
- package/dist/contracts/fixtures/content-model-sdk-v1.generated.d.ts +129 -0
- package/dist/contracts/fixtures/content-model-sdk-v1.generated.js +48 -0
- package/dist/contracts/fixtures/content-platform-v1.json +101 -49
- package/dist/contracts/frame-session.d.ts +60 -10
- package/dist/contracts/frame-session.js +52 -12
- package/dist/contracts/functions.d.ts +28 -2
- package/dist/contracts/functions.js +25 -2
- package/dist/contracts/grant-copy.d.ts +2 -0
- package/dist/contracts/grant-copy.js +2 -0
- package/dist/contracts/grants-core.d.ts +95 -0
- package/dist/contracts/grants-core.js +435 -0
- package/dist/contracts/grants.d.ts +13 -84
- package/dist/contracts/grants.js +21 -369
- package/dist/contracts/ids-core.d.ts +11 -0
- package/dist/contracts/ids-core.js +14 -0
- package/dist/contracts/ids.d.ts +7 -4
- package/dist/contracts/ids.js +12 -4
- package/dist/contracts/internal.d.ts +18 -0
- package/dist/contracts/internal.js +19 -0
- package/dist/contracts/mcp.d.ts +8 -18
- package/dist/contracts/mcp.js +2 -23
- package/dist/contracts/notifications.d.ts +4 -1
- package/dist/contracts/notifications.js +1 -0
- package/dist/contracts/oauth-resources.d.ts +55 -9
- package/dist/contracts/oauth-resources.js +64 -1
- package/dist/contracts/oauth-scope-actions.d.ts +27 -3
- package/dist/contracts/oauth-scope-actions.js +18 -8
- package/dist/contracts/operations.d.ts +1 -1
- package/dist/contracts/partner-account.d.ts +629 -0
- package/dist/contracts/partner-account.js +18 -0
- package/dist/contracts/principal-assertion.d.ts +74 -1
- package/dist/contracts/principal-assertion.js +67 -3
- package/dist/contracts/publish-archive.d.ts +22 -1
- package/dist/contracts/push-new.d.ts +3 -3
- package/dist/contracts/push-new.js +1 -1
- package/dist/contracts/quotas.js +2 -1
- package/dist/contracts/repository-connections.d.ts +10 -6
- package/dist/contracts/repository-connections.js +15 -0
- package/dist/contracts/resources.d.ts +6 -5
- package/dist/contracts/resources.js +7 -0
- package/dist/contracts/route-inventory.d.ts +74 -19
- package/dist/contracts/route-inventory.js +20 -6
- package/dist/contracts/runtime-api.d.ts +415 -4
- package/dist/contracts/runtime-api.js +60 -15
- package/dist/contracts/runtime-app.d.ts +6 -1
- package/dist/contracts/runtime-components.d.ts +646 -18
- package/dist/contracts/runtime-components.js +304 -188
- package/dist/contracts/runtime-services.d.ts +15 -0
- package/dist/contracts/runtime-services.js +25 -0
- package/dist/contracts/runtime-storage.d.ts +32 -0
- package/dist/contracts/runtime-storage.js +37 -0
- package/dist/contracts/source-workspaces.d.ts +511 -0
- package/dist/contracts/source-workspaces.js +276 -0
- package/dist/contracts/space-config-spacefast.d.ts +394 -0
- package/dist/contracts/space-config-spacefast.js +70 -0
- package/dist/contracts/space-config.d.ts +177 -90
- package/dist/contracts/space-config.js +77 -92
- package/dist/contracts/spaces.d.ts +132 -24
- package/dist/contracts/spaces.js +77 -13
- package/dist/contracts/superadmin-connectors.d.ts +371 -0
- package/dist/contracts/superadmin-connectors.js +61 -0
- package/dist/contracts/superadmin-emails.d.ts +1 -1
- package/dist/contracts/superadmin-emails.js +1 -1
- package/dist/contracts/superadmin-entities.d.ts +105 -0
- package/dist/contracts/superadmin-entities.js +64 -0
- package/dist/contracts/superadmin-runtime.d.ts +35 -116
- package/dist/contracts/superadmin-runtime.js +13 -69
- package/dist/contracts/superadmin-search.d.ts +12 -14
- package/dist/contracts/superadmin-search.js +2 -2
- package/dist/contracts/superadmin-spaces.d.ts +15 -72
- package/dist/contracts/superadmin-spaces.js +2 -7
- package/dist/contracts/superadmin-teams.d.ts +12 -0
- package/dist/contracts/superadmin-teams.js +7 -1
- package/dist/contracts/superadmin-tenants.d.ts +44 -16
- package/dist/contracts/superadmin.d.ts +2 -2
- package/dist/contracts/tags.d.ts +12 -12
- package/dist/contracts/teams.d.ts +29 -1
- package/dist/contracts/teams.js +24 -2
- package/dist/contracts/tenants.d.ts +98 -0
- package/dist/contracts/tenants.js +20 -0
- package/dist/contracts/transfers.d.ts +92 -0
- package/dist/contracts/transfers.js +37 -0
- package/dist/contracts/usage.d.ts +9 -1
- package/dist/contracts/usage.js +2 -0
- package/dist/contracts/visual-review.d.ts +448 -0
- package/dist/contracts/visual-review.js +156 -0
- package/dist/contracts/wordpress-php-toolkit.json +9 -0
- package/dist/contracts/work-mode.d.ts +24 -0
- package/dist/contracts/work-mode.js +17 -0
- package/dist/contracts/wp-cli.d.ts +66 -0
- package/dist/contracts/wp-cli.js +68 -0
- package/dist/contracts/zero-catalog.d.ts +29 -0
- package/dist/contracts/zero-catalog.js +55 -0
- package/dist/contracts/zero-platform-abilities.generated.d.ts +31 -0
- package/dist/contracts/zero-platform-abilities.generated.js +373 -0
- package/dist/contracts/zero-spacefast.d.ts +444 -0
- package/dist/contracts/zero-spacefast.js +149 -0
- package/dist/contracts/zero-types.d.ts +47 -0
- package/dist/contracts/zero-types.js +263 -0
- package/dist/contracts/zero.d.ts +781 -14
- package/dist/contracts/zero.js +204 -10
- package/dist/dashboard-paths/index.d.ts +2 -2
- package/dist/dashboard-paths/route-reservations.generated.d.ts +2 -2
- package/dist/dashboard-paths/route-reservations.generated.js +5 -0
- package/dist/docs/agent-prose.d.ts +1 -1
- package/dist/docs/agent-prose.js +15 -18
- package/dist/docs/agent-setup.d.ts +1 -1
- package/dist/docs/agent-setup.js +5 -13
- package/dist/docs/catalog.d.ts +64 -28
- package/dist/docs/catalog.js +155 -28
- package/dist/docs/error-docs.d.ts +365 -17
- package/dist/docs/error-docs.js +369 -21
- package/dist/docs/reference-urls.js +1 -1
- package/dist/docs/skills.d.ts +84 -84
- package/dist/docs/skills.js +66 -47
- package/dist/docs/start-prompts.d.ts +14 -0
- package/dist/docs/start-prompts.js +20 -0
- package/dist/utils/account-labels.d.ts +7 -0
- package/dist/utils/account-labels.js +15 -0
- package/dist/utils/auth.d.ts +1 -0
- package/dist/utils/auth.js +1 -0
- package/dist/utils/credential-policy.d.ts +22 -1
- package/dist/utils/credential-policy.js +55 -6
- package/dist/utils/local-space-state.d.ts +7 -0
- package/dist/utils/local-space-state.js +7 -0
- package/dist/utils/logger.d.ts +34 -0
- package/dist/utils/logger.js +144 -0
- package/dist/utils/page-routes.d.ts +9 -0
- package/dist/utils/page-routes.js +82 -0
- package/dist/utils/pages.d.ts +2 -0
- package/dist/utils/pages.js +7 -0
- package/dist/utils/publish-form-data.d.ts +2 -0
- package/dist/utils/publish-form-data.js +2 -0
- package/dist/utils/publish-policy-spacefast.d.ts +13 -0
- package/dist/utils/publish-policy-spacefast.js +117 -0
- package/dist/utils/publish-policy.d.ts +22 -16
- package/dist/utils/publish-policy.fixtures.json +15 -0
- package/dist/utils/publish-policy.js +62 -139
- package/dist/utils/query-client.js +9 -1
- package/dist/utils/runtime-upload.d.ts +4 -0
- package/dist/utils/runtime-upload.js +5 -0
- package/dist/utils/space-config.d.ts +2 -3
- package/dist/utils/space-config.js +1 -1
- package/dist/utils/uploaded-source.d.ts +4 -0
- package/dist/utils/uploaded-source.js +12 -0
- package/dist/visual-review.d.ts +4 -0
- package/dist/visual-review.js +208 -0
- package/dist/vocabulary.d.ts +38 -0
- package/dist/vocabulary.js +55 -0
- package/package.json +7 -2
- package/dist/agents/registry/deeplink-probes.d.ts +0 -23
- package/dist/agents/registry/deeplink-probes.js +0 -18
package/dist/contracts/zero.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { connectorRoleSchema } from "./connectors.js";
|
|
2
3
|
import { type RuntimeRealtimeMode } from "./execution.js";
|
|
3
4
|
/**
|
|
4
5
|
* Spacefast Zero: capsules of schema, queries, mutations and endpoints that run
|
|
@@ -18,7 +19,19 @@ export declare const ZERO_SOURCE_METADATA_KEY = "statticZero";
|
|
|
18
19
|
* worker.
|
|
19
20
|
*/
|
|
20
21
|
export declare const ZERO_RUNTIME_KIND = "zero";
|
|
21
|
-
|
|
22
|
+
/**
|
|
23
|
+
* The canonical Zero control namespace. Every Zero HTTP control route lives
|
|
24
|
+
* under this prefix; new clients, the dev server, the runtime engine and the
|
|
25
|
+
* finalizer all emit it.
|
|
26
|
+
*/
|
|
27
|
+
export declare const ZERO_PLATFORM_ROUTE_PREFIX = "/__zero";
|
|
28
|
+
/**
|
|
29
|
+
* The pre-cutover namespace, served forever as an alias of the canonical one.
|
|
30
|
+
* Frozen capsules baked clients that fetch these paths at build time and a
|
|
31
|
+
* republish cannot be assumed, so the runtime answers both prefixes with the
|
|
32
|
+
* same handlers and never redirects between them.
|
|
33
|
+
*/
|
|
34
|
+
export declare const ZERO_LEGACY_ROUTE_PREFIX = "/__spacefast/zero";
|
|
22
35
|
/**
|
|
23
36
|
* Entry paths the Zero scaffold writes into `sf.jsonc#runtime`. Starting points
|
|
24
37
|
* only: a capsule's entries are whatever its `runtime.server`/`runtime.client`
|
|
@@ -27,6 +40,21 @@ export declare const ZERO_PLATFORM_ROUTE_PREFIX = "/__spacefast/zero";
|
|
|
27
40
|
export declare const ZERO_CLIENT_ENTRY = "client/index.tsx";
|
|
28
41
|
export declare const ZERO_SERVER_ENTRY = "server/index.ts";
|
|
29
42
|
export declare const ZERO_RUNTIME_ROUTE_PATHS: {
|
|
43
|
+
readonly config: "/__zero/config";
|
|
44
|
+
readonly realtime: "/__zero/realtime";
|
|
45
|
+
readonly inspect: "/__zero/inspect";
|
|
46
|
+
readonly db: "/__zero/db";
|
|
47
|
+
readonly logs: "/__zero/logs";
|
|
48
|
+
readonly run: "/__zero/run";
|
|
49
|
+
readonly authStart: "/__zero/auth/start";
|
|
50
|
+
readonly authSignOut: "/__zero/auth/sign-out";
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* The same operations under {@link ZERO_LEGACY_ROUTE_PREFIX}, spelled exactly
|
|
54
|
+
* as frozen clients baked them (note `auth/gravatar/start`). Registration-side
|
|
55
|
+
* only: handlers register both, emission always uses the canonical paths.
|
|
56
|
+
*/
|
|
57
|
+
export declare const ZERO_LEGACY_ROUTE_PATHS: {
|
|
30
58
|
readonly config: "/__spacefast/zero/config";
|
|
31
59
|
readonly realtime: "/__spacefast/zero/realtime";
|
|
32
60
|
readonly inspect: "/__spacefast/zero/inspect";
|
|
@@ -62,6 +90,18 @@ export declare const ZERO_PLATFORM_ASSET_NAMESPACE = "_spacefast";
|
|
|
62
90
|
export declare const ZERO_PLATFORM_ASSET_ROOT = "_spacefast/platform";
|
|
63
91
|
/** The serving path of one file in the platform build identified by `digest`. */
|
|
64
92
|
export declare function zeroPlatformAssetPath(digest: string, fileName: string): string;
|
|
93
|
+
/**
|
|
94
|
+
* Where a capsule's island bytes serve from: one content-addressed directory per
|
|
95
|
+
* build.
|
|
96
|
+
*
|
|
97
|
+
* Capsule code, unlike {@link ZERO_PLATFORM_ASSET_ROOT} — these are the author's
|
|
98
|
+
* own components, code-split. They share the namespace because they share its
|
|
99
|
+
* one property that matters: the URL names the bytes, so a browser holding the
|
|
100
|
+
* previous build's chunk never serves it for this one.
|
|
101
|
+
*/
|
|
102
|
+
export declare const ZERO_ISLANDS_ASSET_ROOT = "_spacefast/islands";
|
|
103
|
+
/** The serving path of one file in the island bundle identified by `digest`. */
|
|
104
|
+
export declare function zeroIslandAssetPath(digest: string, fileName: string): string;
|
|
65
105
|
/**
|
|
66
106
|
* The compiled capsule server, which the QuickJS runner instantiates whole.
|
|
67
107
|
*
|
|
@@ -102,7 +142,44 @@ export declare const ZERO_MANAGED_TABLE_COLUMNS: readonly ["id", "createdAt", "u
|
|
|
102
142
|
*/
|
|
103
143
|
export declare const ZERO_RESERVED_APP_ROUTE_PATHS: readonly ["/", "/index.html", "/client.js", "/auth/callback"];
|
|
104
144
|
export declare const ZERO_RESERVED_APP_ROUTE_PREFIXES: readonly ["/auth/", "/_spacefast/"];
|
|
145
|
+
export declare const zeroPagePathSchema: z.ZodString;
|
|
146
|
+
export declare const ZERO_PUBLIC_CLIENT_SHELL_PATH = "_spacefast/pages/client.html";
|
|
147
|
+
export declare const zeroPageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
148
|
+
render: z.ZodLiteral<"document">;
|
|
149
|
+
bindingId: z.ZodString;
|
|
150
|
+
id: z.ZodString;
|
|
151
|
+
path: z.ZodString;
|
|
152
|
+
file: z.ZodString;
|
|
153
|
+
params: z.ZodArray<z.ZodString>;
|
|
154
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
155
|
+
render: z.ZodLiteral<"client">;
|
|
156
|
+
shell: z.ZodLiteral<"_spacefast/pages/client.html">;
|
|
157
|
+
id: z.ZodString;
|
|
158
|
+
path: z.ZodString;
|
|
159
|
+
file: z.ZodString;
|
|
160
|
+
params: z.ZodArray<z.ZodString>;
|
|
161
|
+
}, z.core.$strict>], "render">;
|
|
162
|
+
export type ZeroPage = z.infer<typeof zeroPageSchema>;
|
|
163
|
+
export type ZeroPageRoute = Omit<Extract<ZeroPage, {
|
|
164
|
+
render: "document";
|
|
165
|
+
}>, "file"> | Omit<Extract<ZeroPage, {
|
|
166
|
+
render: "client";
|
|
167
|
+
}>, "file">;
|
|
168
|
+
/**
|
|
169
|
+
* What an invocation is allowed to do. Every Zero invocation declares it, and
|
|
170
|
+
* the runtime opens the matching transaction: a `read` runs on one read-only
|
|
171
|
+
* consistent snapshot, a `write` on the handler's own transaction.
|
|
172
|
+
*/
|
|
173
|
+
export declare const zeroExecutionModeSchema: z.ZodEnum<{
|
|
174
|
+
read: "read";
|
|
175
|
+
write: "write";
|
|
176
|
+
}>;
|
|
177
|
+
export type ZeroExecutionMode = z.infer<typeof zeroExecutionModeSchema>;
|
|
105
178
|
export declare const zeroEndpointSchema: z.ZodObject<{
|
|
179
|
+
mode: z.ZodEnum<{
|
|
180
|
+
read: "read";
|
|
181
|
+
write: "write";
|
|
182
|
+
}>;
|
|
106
183
|
method: z.ZodEnum<{
|
|
107
184
|
POST: "POST";
|
|
108
185
|
PUT: "PUT";
|
|
@@ -170,6 +247,28 @@ export declare const zeroDatabaseSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
170
247
|
}, z.core.$strict>>>;
|
|
171
248
|
}, z.core.$strict>>;
|
|
172
249
|
export type ZeroDatabase = z.infer<typeof zeroDatabaseSchema>;
|
|
250
|
+
export declare const ZERO_BUILD_CONTEXT_ENV = "SPACEFAST_ZERO_BUILD_CONTEXT";
|
|
251
|
+
export declare const zeroBuildContextSchema: z.ZodObject<{
|
|
252
|
+
previousSchema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
253
|
+
name: z.ZodString;
|
|
254
|
+
columns: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
255
|
+
name: z.ZodString;
|
|
256
|
+
type: z.ZodEnum<{
|
|
257
|
+
string: "string";
|
|
258
|
+
number: "number";
|
|
259
|
+
boolean: "boolean";
|
|
260
|
+
json: "json";
|
|
261
|
+
}>;
|
|
262
|
+
nullable: z.ZodDefault<z.ZodBoolean>;
|
|
263
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
264
|
+
}, z.core.$strict>>>;
|
|
265
|
+
indexes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
266
|
+
name: z.ZodString;
|
|
267
|
+
fields: z.ZodArray<z.ZodString>;
|
|
268
|
+
}, z.core.$strict>>>;
|
|
269
|
+
}, z.core.$strict>>>;
|
|
270
|
+
}, z.core.$strict>;
|
|
271
|
+
export type ZeroBuildContext = z.infer<typeof zeroBuildContextSchema>;
|
|
173
272
|
/**
|
|
174
273
|
* The compiled server travels inline in the finalize payload, which keeps the
|
|
175
274
|
* whole version one atomic write. Functions bundles land in the content store
|
|
@@ -194,6 +293,10 @@ export declare const zeroRuntimeStaticFileSchema: z.ZodObject<{
|
|
|
194
293
|
}, z.core.$strict>;
|
|
195
294
|
export type ZeroRuntimeStaticFile = z.infer<typeof zeroRuntimeStaticFileSchema>;
|
|
196
295
|
export declare const zeroRuntimeRunSourceSchema: z.ZodObject<{
|
|
296
|
+
executionMode: z.ZodEnum<{
|
|
297
|
+
read: "read";
|
|
298
|
+
write: "write";
|
|
299
|
+
}>;
|
|
197
300
|
runId: z.ZodString;
|
|
198
301
|
source: z.ZodString;
|
|
199
302
|
schemaHash: z.ZodOptional<z.ZodString>;
|
|
@@ -208,11 +311,17 @@ export declare const zeroRuntimeRunSourceSchema: z.ZodObject<{
|
|
|
208
311
|
spam: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
209
312
|
email: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
210
313
|
content: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
314
|
+
storage: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
315
|
+
connectors: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
211
316
|
}, z.core.$strip>>;
|
|
212
317
|
db: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
213
318
|
}, z.core.$strict>;
|
|
214
319
|
export type ZeroRuntimeRunSource = z.infer<typeof zeroRuntimeRunSourceSchema>;
|
|
215
320
|
export declare const zeroRuntimeEndpointSourceSchema: z.ZodObject<{
|
|
321
|
+
executionMode: z.ZodEnum<{
|
|
322
|
+
read: "read";
|
|
323
|
+
write: "write";
|
|
324
|
+
}>;
|
|
216
325
|
method: z.ZodEnum<{
|
|
217
326
|
POST: "POST";
|
|
218
327
|
PUT: "PUT";
|
|
@@ -237,6 +346,8 @@ export declare const zeroRuntimeEndpointSourceSchema: z.ZodObject<{
|
|
|
237
346
|
spam: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
238
347
|
email: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
239
348
|
content: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
349
|
+
storage: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
350
|
+
connectors: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
240
351
|
}, z.core.$strip>>;
|
|
241
352
|
db: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
242
353
|
}, z.core.$strict>;
|
|
@@ -482,6 +593,31 @@ export declare const zeroCapsuleArtifactSchema: z.ZodObject<{
|
|
|
482
593
|
format: z.ZodLiteral<"stattic.zero.capsule.v1">;
|
|
483
594
|
appName: z.ZodString;
|
|
484
595
|
serverRuntime: z.ZodLiteral<"quickjs-rust">;
|
|
596
|
+
requiredRuntimeCapabilities: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "RuntimeCapabilityId", "out">>>;
|
|
597
|
+
pages: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
598
|
+
render: z.ZodLiteral<"document">;
|
|
599
|
+
bindingId: z.ZodString;
|
|
600
|
+
id: z.ZodString;
|
|
601
|
+
path: z.ZodString;
|
|
602
|
+
file: z.ZodString;
|
|
603
|
+
params: z.ZodArray<z.ZodString>;
|
|
604
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
605
|
+
render: z.ZodLiteral<"client">;
|
|
606
|
+
shell: z.ZodLiteral<"_spacefast/pages/client.html">;
|
|
607
|
+
id: z.ZodString;
|
|
608
|
+
path: z.ZodString;
|
|
609
|
+
file: z.ZodString;
|
|
610
|
+
params: z.ZodArray<z.ZodString>;
|
|
611
|
+
}, z.core.$strict>], "render">>>;
|
|
612
|
+
connectors: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
613
|
+
role: z.ZodString;
|
|
614
|
+
as: z.ZodEnum<{
|
|
615
|
+
team: "team";
|
|
616
|
+
visitor: "visitor";
|
|
617
|
+
owner: "owner";
|
|
618
|
+
}>;
|
|
619
|
+
connector: z.ZodOptional<z.ZodString>;
|
|
620
|
+
}, z.core.$strip>>>;
|
|
485
621
|
client: z.ZodObject<{
|
|
486
622
|
bundlePath: z.ZodString;
|
|
487
623
|
basePathAware: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -508,8 +644,11 @@ export declare const zeroCapsuleArtifactSchema: z.ZodObject<{
|
|
|
508
644
|
}, z.core.$strict>>>;
|
|
509
645
|
queries: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
510
646
|
mutations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
511
|
-
actions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
512
647
|
endpoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
648
|
+
mode: z.ZodEnum<{
|
|
649
|
+
read: "read";
|
|
650
|
+
write: "write";
|
|
651
|
+
}>;
|
|
513
652
|
method: z.ZodEnum<{
|
|
514
653
|
POST: "POST";
|
|
515
654
|
PUT: "PUT";
|
|
@@ -644,6 +783,31 @@ export declare const zeroRuntimeFinalizePayloadSchema: z.ZodObject<{
|
|
|
644
783
|
format: z.ZodLiteral<"stattic.zero.capsule.v1">;
|
|
645
784
|
appName: z.ZodString;
|
|
646
785
|
serverRuntime: z.ZodLiteral<"quickjs-rust">;
|
|
786
|
+
requiredRuntimeCapabilities: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "RuntimeCapabilityId", "out">>>;
|
|
787
|
+
pages: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
788
|
+
render: z.ZodLiteral<"document">;
|
|
789
|
+
bindingId: z.ZodString;
|
|
790
|
+
id: z.ZodString;
|
|
791
|
+
path: z.ZodString;
|
|
792
|
+
file: z.ZodString;
|
|
793
|
+
params: z.ZodArray<z.ZodString>;
|
|
794
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
795
|
+
render: z.ZodLiteral<"client">;
|
|
796
|
+
shell: z.ZodLiteral<"_spacefast/pages/client.html">;
|
|
797
|
+
id: z.ZodString;
|
|
798
|
+
path: z.ZodString;
|
|
799
|
+
file: z.ZodString;
|
|
800
|
+
params: z.ZodArray<z.ZodString>;
|
|
801
|
+
}, z.core.$strict>], "render">>>;
|
|
802
|
+
connectors: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
803
|
+
role: z.ZodString;
|
|
804
|
+
as: z.ZodEnum<{
|
|
805
|
+
team: "team";
|
|
806
|
+
visitor: "visitor";
|
|
807
|
+
owner: "owner";
|
|
808
|
+
}>;
|
|
809
|
+
connector: z.ZodOptional<z.ZodString>;
|
|
810
|
+
}, z.core.$strip>>>;
|
|
647
811
|
client: z.ZodObject<{
|
|
648
812
|
bundlePath: z.ZodString;
|
|
649
813
|
basePathAware: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -670,8 +834,11 @@ export declare const zeroRuntimeFinalizePayloadSchema: z.ZodObject<{
|
|
|
670
834
|
}, z.core.$strict>>>;
|
|
671
835
|
queries: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
672
836
|
mutations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
673
|
-
actions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
674
837
|
endpoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
838
|
+
mode: z.ZodEnum<{
|
|
839
|
+
read: "read";
|
|
840
|
+
write: "write";
|
|
841
|
+
}>;
|
|
675
842
|
method: z.ZodEnum<{
|
|
676
843
|
POST: "POST";
|
|
677
844
|
PUT: "PUT";
|
|
@@ -785,6 +952,10 @@ export declare const zeroRuntimeFinalizePayloadSchema: z.ZodObject<{
|
|
|
785
952
|
contentBase64: z.ZodString;
|
|
786
953
|
}, z.core.$strict>>>;
|
|
787
954
|
endpointSources: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
955
|
+
executionMode: z.ZodEnum<{
|
|
956
|
+
read: "read";
|
|
957
|
+
write: "write";
|
|
958
|
+
}>;
|
|
788
959
|
method: z.ZodEnum<{
|
|
789
960
|
POST: "POST";
|
|
790
961
|
PUT: "PUT";
|
|
@@ -809,10 +980,16 @@ export declare const zeroRuntimeFinalizePayloadSchema: z.ZodObject<{
|
|
|
809
980
|
spam: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
810
981
|
email: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
811
982
|
content: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
983
|
+
storage: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
984
|
+
connectors: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
812
985
|
}, z.core.$strip>>;
|
|
813
986
|
db: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
814
987
|
}, z.core.$strict>>>;
|
|
815
988
|
runSources: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
989
|
+
executionMode: z.ZodEnum<{
|
|
990
|
+
read: "read";
|
|
991
|
+
write: "write";
|
|
992
|
+
}>;
|
|
816
993
|
runId: z.ZodString;
|
|
817
994
|
source: z.ZodString;
|
|
818
995
|
schemaHash: z.ZodOptional<z.ZodString>;
|
|
@@ -827,6 +1004,8 @@ export declare const zeroRuntimeFinalizePayloadSchema: z.ZodObject<{
|
|
|
827
1004
|
spam: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
828
1005
|
email: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
829
1006
|
content: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1007
|
+
storage: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1008
|
+
connectors: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
830
1009
|
}, z.core.$strip>>;
|
|
831
1010
|
db: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
832
1011
|
}, z.core.$strict>>>;
|
|
@@ -908,9 +1087,9 @@ export declare const zeroRuntimeFinalizePayloadSchema: z.ZodObject<{
|
|
|
908
1087
|
}, z.core.$strict>;
|
|
909
1088
|
auth: z.ZodDefault<z.ZodObject<{
|
|
910
1089
|
provider: z.ZodDefault<z.ZodLiteral<"gravatar">>;
|
|
911
|
-
signInPath: z.ZodDefault<z.ZodNullable<z.ZodLiteral<"/__spacefast/zero/auth/gravatar/start">>>;
|
|
1090
|
+
signInPath: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"/__zero/auth/start">, z.ZodLiteral<"/__spacefast/zero/auth/gravatar/start">]>>>;
|
|
912
1091
|
signInUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
913
|
-
signOutPath: z.ZodDefault<z.ZodNullable<z.ZodLiteral<"/__spacefast/zero/auth/sign-out">>>;
|
|
1092
|
+
signOutPath: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"/__zero/auth/sign-out">, z.ZodLiteral<"/__spacefast/zero/auth/sign-out">]>>>;
|
|
914
1093
|
signOutUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
915
1094
|
returnToParam: z.ZodDefault<z.ZodString>;
|
|
916
1095
|
}, z.core.$strict>>;
|
|
@@ -925,9 +1104,9 @@ export type ZeroRuntimeFinalizePayload = z.infer<typeof zeroRuntimeFinalizePaylo
|
|
|
925
1104
|
export declare const zeroRuntimeConfigSchema: z.ZodObject<{
|
|
926
1105
|
auth: z.ZodDefault<z.ZodObject<{
|
|
927
1106
|
provider: z.ZodDefault<z.ZodLiteral<"gravatar">>;
|
|
928
|
-
signInPath: z.ZodDefault<z.ZodNullable<z.ZodLiteral<"/__spacefast/zero/auth/gravatar/start">>>;
|
|
1107
|
+
signInPath: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"/__zero/auth/start">, z.ZodLiteral<"/__spacefast/zero/auth/gravatar/start">]>>>;
|
|
929
1108
|
signInUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
930
|
-
signOutPath: z.ZodDefault<z.ZodNullable<z.ZodLiteral<"/__spacefast/zero/auth/sign-out">>>;
|
|
1109
|
+
signOutPath: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"/__zero/auth/sign-out">, z.ZodLiteral<"/__spacefast/zero/auth/sign-out">]>>>;
|
|
931
1110
|
signOutUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
932
1111
|
returnToParam: z.ZodDefault<z.ZodString>;
|
|
933
1112
|
}, z.core.$strict>>;
|
|
@@ -949,6 +1128,31 @@ export declare const zeroRuntimeConfigSchema: z.ZodObject<{
|
|
|
949
1128
|
format: z.ZodLiteral<"stattic.zero.capsule.v1">;
|
|
950
1129
|
appName: z.ZodString;
|
|
951
1130
|
serverRuntime: z.ZodLiteral<"quickjs-rust">;
|
|
1131
|
+
requiredRuntimeCapabilities: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "RuntimeCapabilityId", "out">>>;
|
|
1132
|
+
pages: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1133
|
+
render: z.ZodLiteral<"document">;
|
|
1134
|
+
bindingId: z.ZodString;
|
|
1135
|
+
id: z.ZodString;
|
|
1136
|
+
path: z.ZodString;
|
|
1137
|
+
file: z.ZodString;
|
|
1138
|
+
params: z.ZodArray<z.ZodString>;
|
|
1139
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1140
|
+
render: z.ZodLiteral<"client">;
|
|
1141
|
+
shell: z.ZodLiteral<"_spacefast/pages/client.html">;
|
|
1142
|
+
id: z.ZodString;
|
|
1143
|
+
path: z.ZodString;
|
|
1144
|
+
file: z.ZodString;
|
|
1145
|
+
params: z.ZodArray<z.ZodString>;
|
|
1146
|
+
}, z.core.$strict>], "render">>>;
|
|
1147
|
+
connectors: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1148
|
+
role: z.ZodString;
|
|
1149
|
+
as: z.ZodEnum<{
|
|
1150
|
+
team: "team";
|
|
1151
|
+
visitor: "visitor";
|
|
1152
|
+
owner: "owner";
|
|
1153
|
+
}>;
|
|
1154
|
+
connector: z.ZodOptional<z.ZodString>;
|
|
1155
|
+
}, z.core.$strip>>>;
|
|
952
1156
|
client: z.ZodObject<{
|
|
953
1157
|
bundlePath: z.ZodString;
|
|
954
1158
|
basePathAware: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -975,8 +1179,11 @@ export declare const zeroRuntimeConfigSchema: z.ZodObject<{
|
|
|
975
1179
|
}, z.core.$strict>>>;
|
|
976
1180
|
queries: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
977
1181
|
mutations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
978
|
-
actions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
979
1182
|
endpoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1183
|
+
mode: z.ZodEnum<{
|
|
1184
|
+
read: "read";
|
|
1185
|
+
write: "write";
|
|
1186
|
+
}>;
|
|
980
1187
|
method: z.ZodEnum<{
|
|
981
1188
|
POST: "POST";
|
|
982
1189
|
PUT: "PUT";
|
|
@@ -1173,6 +1380,9 @@ export declare const zeroRuntimeConfigSchema: z.ZodObject<{
|
|
|
1173
1380
|
public: "public";
|
|
1174
1381
|
}>>;
|
|
1175
1382
|
}, z.core.$strict>>;
|
|
1383
|
+
connectors: z.ZodOptional<z.ZodObject<{
|
|
1384
|
+
token: z.ZodString;
|
|
1385
|
+
}, z.core.$strip>>;
|
|
1176
1386
|
variableValues: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1177
1387
|
databaseUrlSource: z.ZodDefault<z.ZodEnum<{
|
|
1178
1388
|
provider: "provider";
|
|
@@ -1180,7 +1390,18 @@ export declare const zeroRuntimeConfigSchema: z.ZodObject<{
|
|
|
1180
1390
|
}>>;
|
|
1181
1391
|
}, z.core.$strict>;
|
|
1182
1392
|
export type ZeroRuntimeConfig = z.infer<typeof zeroRuntimeConfigSchema>;
|
|
1393
|
+
/**
|
|
1394
|
+
* The `statticZero` bag a published version carries in its source metadata.
|
|
1395
|
+
*
|
|
1396
|
+
* `contentModel` rides here beside `finalize` because both are compiled from
|
|
1397
|
+
* the same capsule in the same publish, and both must roll back with the
|
|
1398
|
+
* version that shipped them. The bag stays `.strict()`: this schema is parsed
|
|
1399
|
+
* on the finalize path, so an unrecognized key is a compiler and a control
|
|
1400
|
+
* plane that disagree about what a publish carries, and that is worth failing
|
|
1401
|
+
* on rather than dropping silently.
|
|
1402
|
+
*/
|
|
1183
1403
|
export declare const zeroDeployMetadataSchema: z.ZodObject<{
|
|
1404
|
+
connectorsTokenHash: z.ZodOptional<z.ZodString>;
|
|
1184
1405
|
artifactId: z.ZodOptional<z.ZodString>;
|
|
1185
1406
|
finalize: z.ZodObject<{
|
|
1186
1407
|
runtimeKind: z.ZodLiteral<"zero">;
|
|
@@ -1216,6 +1437,31 @@ export declare const zeroDeployMetadataSchema: z.ZodObject<{
|
|
|
1216
1437
|
format: z.ZodLiteral<"stattic.zero.capsule.v1">;
|
|
1217
1438
|
appName: z.ZodString;
|
|
1218
1439
|
serverRuntime: z.ZodLiteral<"quickjs-rust">;
|
|
1440
|
+
requiredRuntimeCapabilities: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodString, "RuntimeCapabilityId", "out">>>;
|
|
1441
|
+
pages: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1442
|
+
render: z.ZodLiteral<"document">;
|
|
1443
|
+
bindingId: z.ZodString;
|
|
1444
|
+
id: z.ZodString;
|
|
1445
|
+
path: z.ZodString;
|
|
1446
|
+
file: z.ZodString;
|
|
1447
|
+
params: z.ZodArray<z.ZodString>;
|
|
1448
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1449
|
+
render: z.ZodLiteral<"client">;
|
|
1450
|
+
shell: z.ZodLiteral<"_spacefast/pages/client.html">;
|
|
1451
|
+
id: z.ZodString;
|
|
1452
|
+
path: z.ZodString;
|
|
1453
|
+
file: z.ZodString;
|
|
1454
|
+
params: z.ZodArray<z.ZodString>;
|
|
1455
|
+
}, z.core.$strict>], "render">>>;
|
|
1456
|
+
connectors: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1457
|
+
role: z.ZodString;
|
|
1458
|
+
as: z.ZodEnum<{
|
|
1459
|
+
team: "team";
|
|
1460
|
+
visitor: "visitor";
|
|
1461
|
+
owner: "owner";
|
|
1462
|
+
}>;
|
|
1463
|
+
connector: z.ZodOptional<z.ZodString>;
|
|
1464
|
+
}, z.core.$strip>>>;
|
|
1219
1465
|
client: z.ZodObject<{
|
|
1220
1466
|
bundlePath: z.ZodString;
|
|
1221
1467
|
basePathAware: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1242,8 +1488,11 @@ export declare const zeroDeployMetadataSchema: z.ZodObject<{
|
|
|
1242
1488
|
}, z.core.$strict>>>;
|
|
1243
1489
|
queries: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1244
1490
|
mutations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1245
|
-
actions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1246
1491
|
endpoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1492
|
+
mode: z.ZodEnum<{
|
|
1493
|
+
read: "read";
|
|
1494
|
+
write: "write";
|
|
1495
|
+
}>;
|
|
1247
1496
|
method: z.ZodEnum<{
|
|
1248
1497
|
POST: "POST";
|
|
1249
1498
|
PUT: "PUT";
|
|
@@ -1357,6 +1606,10 @@ export declare const zeroDeployMetadataSchema: z.ZodObject<{
|
|
|
1357
1606
|
contentBase64: z.ZodString;
|
|
1358
1607
|
}, z.core.$strict>>>;
|
|
1359
1608
|
endpointSources: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1609
|
+
executionMode: z.ZodEnum<{
|
|
1610
|
+
read: "read";
|
|
1611
|
+
write: "write";
|
|
1612
|
+
}>;
|
|
1360
1613
|
method: z.ZodEnum<{
|
|
1361
1614
|
POST: "POST";
|
|
1362
1615
|
PUT: "PUT";
|
|
@@ -1381,10 +1634,16 @@ export declare const zeroDeployMetadataSchema: z.ZodObject<{
|
|
|
1381
1634
|
spam: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1382
1635
|
email: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1383
1636
|
content: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1637
|
+
storage: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1638
|
+
connectors: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1384
1639
|
}, z.core.$strip>>;
|
|
1385
1640
|
db: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1386
1641
|
}, z.core.$strict>>>;
|
|
1387
1642
|
runSources: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1643
|
+
executionMode: z.ZodEnum<{
|
|
1644
|
+
read: "read";
|
|
1645
|
+
write: "write";
|
|
1646
|
+
}>;
|
|
1388
1647
|
runId: z.ZodString;
|
|
1389
1648
|
source: z.ZodString;
|
|
1390
1649
|
schemaHash: z.ZodOptional<z.ZodString>;
|
|
@@ -1399,6 +1658,8 @@ export declare const zeroDeployMetadataSchema: z.ZodObject<{
|
|
|
1399
1658
|
spam: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1400
1659
|
email: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1401
1660
|
content: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1661
|
+
storage: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1662
|
+
connectors: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1402
1663
|
}, z.core.$strip>>;
|
|
1403
1664
|
db: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1404
1665
|
}, z.core.$strict>>>;
|
|
@@ -1480,9 +1741,9 @@ export declare const zeroDeployMetadataSchema: z.ZodObject<{
|
|
|
1480
1741
|
}, z.core.$strict>;
|
|
1481
1742
|
auth: z.ZodDefault<z.ZodObject<{
|
|
1482
1743
|
provider: z.ZodDefault<z.ZodLiteral<"gravatar">>;
|
|
1483
|
-
signInPath: z.ZodDefault<z.ZodNullable<z.ZodLiteral<"/__spacefast/zero/auth/gravatar/start">>>;
|
|
1744
|
+
signInPath: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"/__zero/auth/start">, z.ZodLiteral<"/__spacefast/zero/auth/gravatar/start">]>>>;
|
|
1484
1745
|
signInUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1485
|
-
signOutPath: z.ZodDefault<z.ZodNullable<z.ZodLiteral<"/__spacefast/zero/auth/sign-out">>>;
|
|
1746
|
+
signOutPath: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"/__zero/auth/sign-out">, z.ZodLiteral<"/__spacefast/zero/auth/sign-out">]>>>;
|
|
1486
1747
|
signOutUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1487
1748
|
returnToParam: z.ZodDefault<z.ZodString>;
|
|
1488
1749
|
}, z.core.$strict>>;
|
|
@@ -1493,6 +1754,508 @@ export declare const zeroDeployMetadataSchema: z.ZodObject<{
|
|
|
1493
1754
|
}>>;
|
|
1494
1755
|
}, z.core.$strict>>;
|
|
1495
1756
|
}, z.core.$strict>;
|
|
1757
|
+
contentModel: z.ZodOptional<z.ZodObject<{
|
|
1758
|
+
compiled: z.ZodObject<{
|
|
1759
|
+
format: z.ZodLiteral<"spacefast.compiled-content-model">;
|
|
1760
|
+
version: z.ZodLiteral<1>;
|
|
1761
|
+
model: z.ZodObject<{
|
|
1762
|
+
format: z.ZodLiteral<"spacefast.zero-wordpress">;
|
|
1763
|
+
version: z.ZodLiteral<1>;
|
|
1764
|
+
inputDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
1765
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
1766
|
+
bytes: z.ZodNumber;
|
|
1767
|
+
mediaType: z.ZodLiteral<"application/json">;
|
|
1768
|
+
}, z.core.$strict>;
|
|
1769
|
+
executables: z.ZodObject<{
|
|
1770
|
+
format: z.ZodLiteral<"spacefast.zero-executables">;
|
|
1771
|
+
version: z.ZodLiteral<1>;
|
|
1772
|
+
inputDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
1773
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
1774
|
+
bytes: z.ZodNumber;
|
|
1775
|
+
mediaType: z.ZodLiteral<"application/json">;
|
|
1776
|
+
}, z.core.$strict>;
|
|
1777
|
+
sdk: z.ZodObject<{
|
|
1778
|
+
format: z.ZodLiteral<"spacefast.sdk-descriptors">;
|
|
1779
|
+
version: z.ZodLiteral<1>;
|
|
1780
|
+
inputDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
1781
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
1782
|
+
bytes: z.ZodNumber;
|
|
1783
|
+
mediaType: z.ZodLiteral<"application/json">;
|
|
1784
|
+
}, z.core.$strict>;
|
|
1785
|
+
routes: z.ZodObject<{
|
|
1786
|
+
format: z.ZodLiteral<"spacefast.route-contributions">;
|
|
1787
|
+
version: z.ZodLiteral<1>;
|
|
1788
|
+
inputDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
1789
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
1790
|
+
bytes: z.ZodNumber;
|
|
1791
|
+
mediaType: z.ZodLiteral<"application/json">;
|
|
1792
|
+
}, z.core.$strict>;
|
|
1793
|
+
requirements: z.ZodObject<{
|
|
1794
|
+
format: z.ZodLiteral<"spacefast.content-model-requirements">;
|
|
1795
|
+
version: z.ZodLiteral<1>;
|
|
1796
|
+
inputDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
1797
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
1798
|
+
bytes: z.ZodNumber;
|
|
1799
|
+
mediaType: z.ZodLiteral<"application/json">;
|
|
1800
|
+
}, z.core.$strict>;
|
|
1801
|
+
}, z.core.$strict>;
|
|
1802
|
+
model: z.ZodObject<{
|
|
1803
|
+
format: z.ZodLiteral<"spacefast.zero-wordpress">;
|
|
1804
|
+
version: z.ZodLiteral<1>;
|
|
1805
|
+
revision: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
1806
|
+
schemas: z.ZodArray<z.ZodObject<{
|
|
1807
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
|
|
1808
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
1809
|
+
schema: z.ZodType<import("./content-model.js").ContentModelJsonValue, unknown, z.core.$ZodTypeInternals<import("./content-model.js").ContentModelJsonValue, unknown>>;
|
|
1810
|
+
}, z.core.$strict>>;
|
|
1811
|
+
wordpress: z.ZodObject<{
|
|
1812
|
+
format: z.ZodLiteral<"spacefast.wordpress-content-model">;
|
|
1813
|
+
version: z.ZodLiteral<1>;
|
|
1814
|
+
resources: z.ZodArray<z.ZodObject<{
|
|
1815
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentResourceId", "out">;
|
|
1816
|
+
name: z.ZodString;
|
|
1817
|
+
label: z.ZodString;
|
|
1818
|
+
kind: z.ZodEnum<{
|
|
1819
|
+
media: "media";
|
|
1820
|
+
collection: "collection";
|
|
1821
|
+
posts: "posts";
|
|
1822
|
+
pages: "pages";
|
|
1823
|
+
}>;
|
|
1824
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
1825
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentFieldId", "out">;
|
|
1826
|
+
name: z.ZodString;
|
|
1827
|
+
label: z.ZodString;
|
|
1828
|
+
required: z.ZodBoolean;
|
|
1829
|
+
value: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1830
|
+
kind: z.ZodLiteral<"text">;
|
|
1831
|
+
multiline: z.ZodBoolean;
|
|
1832
|
+
maxLength: z.ZodNullable<z.ZodNumber>;
|
|
1833
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1834
|
+
kind: z.ZodLiteral<"number">;
|
|
1835
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1836
|
+
kind: z.ZodLiteral<"boolean">;
|
|
1837
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1838
|
+
kind: z.ZodLiteral<"datetime">;
|
|
1839
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1840
|
+
kind: z.ZodLiteral<"blocks">;
|
|
1841
|
+
allowed: z.ZodUnion<readonly [z.ZodLiteral<"any">, z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentComponentId", "out">>]>;
|
|
1842
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1843
|
+
kind: z.ZodLiteral<"media">;
|
|
1844
|
+
multiple: z.ZodBoolean;
|
|
1845
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1846
|
+
kind: z.ZodLiteral<"reference">;
|
|
1847
|
+
target: z.core.$ZodBranded<z.ZodString, "ContentResourceId", "out">;
|
|
1848
|
+
multiple: z.ZodBoolean;
|
|
1849
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1850
|
+
kind: z.ZodLiteral<"enum">;
|
|
1851
|
+
values: z.ZodArray<z.ZodString>;
|
|
1852
|
+
multiple: z.ZodBoolean;
|
|
1853
|
+
}, z.core.$strict>], "kind">;
|
|
1854
|
+
}, z.core.$strict>>;
|
|
1855
|
+
publicRead: z.ZodBoolean;
|
|
1856
|
+
}, z.core.$strict>>;
|
|
1857
|
+
}, z.core.$strict>;
|
|
1858
|
+
tables: z.ZodArray<z.ZodObject<{
|
|
1859
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentTableId", "out">;
|
|
1860
|
+
name: z.ZodString;
|
|
1861
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
1862
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentFieldId", "out">;
|
|
1863
|
+
name: z.ZodString;
|
|
1864
|
+
nullable: z.ZodBoolean;
|
|
1865
|
+
value: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1866
|
+
kind: z.ZodLiteral<"string">;
|
|
1867
|
+
maxLength: z.ZodNullable<z.ZodNumber>;
|
|
1868
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1869
|
+
kind: z.ZodLiteral<"number">;
|
|
1870
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1871
|
+
kind: z.ZodLiteral<"boolean">;
|
|
1872
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1873
|
+
kind: z.ZodLiteral<"datetime">;
|
|
1874
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1875
|
+
kind: z.ZodLiteral<"json">;
|
|
1876
|
+
}, z.core.$strict>], "kind">;
|
|
1877
|
+
}, z.core.$strict>>;
|
|
1878
|
+
indexes: z.ZodArray<z.ZodObject<{
|
|
1879
|
+
id: z.ZodString;
|
|
1880
|
+
fields: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentFieldId", "out">>;
|
|
1881
|
+
unique: z.ZodBoolean;
|
|
1882
|
+
}, z.core.$strict>>;
|
|
1883
|
+
}, z.core.$strict>>;
|
|
1884
|
+
abilities: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1885
|
+
kind: z.ZodLiteral<"query">;
|
|
1886
|
+
mode: z.ZodLiteral<"read">;
|
|
1887
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">;
|
|
1888
|
+
input: z.ZodObject<{
|
|
1889
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
|
|
1890
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
1891
|
+
}, z.core.$strict>;
|
|
1892
|
+
output: z.ZodObject<{
|
|
1893
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
|
|
1894
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
1895
|
+
}, z.core.$strict>;
|
|
1896
|
+
permits: z.ZodArray<z.ZodEnum<{
|
|
1897
|
+
"page.view": "page.view";
|
|
1898
|
+
"comments.read": "comments.read";
|
|
1899
|
+
"comments.write": "comments.write";
|
|
1900
|
+
"content.publish": "content.publish";
|
|
1901
|
+
"access.manage": "access.manage";
|
|
1902
|
+
}>>;
|
|
1903
|
+
reads: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentResourceRef", "out">>;
|
|
1904
|
+
writes: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentResourceRef", "out">>;
|
|
1905
|
+
exposure: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1906
|
+
kind: z.ZodLiteral<"named">;
|
|
1907
|
+
named: z.ZodLiteral<true>;
|
|
1908
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1909
|
+
kind: z.ZodLiteral<"routed">;
|
|
1910
|
+
named: z.ZodLiteral<true>;
|
|
1911
|
+
route: z.ZodObject<{
|
|
1912
|
+
id: z.ZodString;
|
|
1913
|
+
method: z.ZodEnum<{
|
|
1914
|
+
POST: "POST";
|
|
1915
|
+
PUT: "PUT";
|
|
1916
|
+
GET: "GET";
|
|
1917
|
+
HEAD: "HEAD";
|
|
1918
|
+
PATCH: "PATCH";
|
|
1919
|
+
DELETE: "DELETE";
|
|
1920
|
+
OPTIONS: "OPTIONS";
|
|
1921
|
+
}>;
|
|
1922
|
+
path: z.ZodString;
|
|
1923
|
+
admission: z.ZodEnum<{
|
|
1924
|
+
public: "public";
|
|
1925
|
+
authenticated: "authenticated";
|
|
1926
|
+
}>;
|
|
1927
|
+
}, z.core.$strict>;
|
|
1928
|
+
}, z.core.$strict>], "kind">;
|
|
1929
|
+
cache: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1930
|
+
kind: z.ZodLiteral<"none">;
|
|
1931
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1932
|
+
kind: z.ZodLiteral<"private">;
|
|
1933
|
+
maxAgeSeconds: z.ZodNumber;
|
|
1934
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1935
|
+
kind: z.ZodLiteral<"public">;
|
|
1936
|
+
maxAgeSeconds: z.ZodNumber;
|
|
1937
|
+
staleWhileRevalidateSeconds: z.ZodNumber;
|
|
1938
|
+
}, z.core.$strict>], "kind">;
|
|
1939
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1940
|
+
kind: z.ZodLiteral<"mutation">;
|
|
1941
|
+
mode: z.ZodLiteral<"write">;
|
|
1942
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">;
|
|
1943
|
+
input: z.ZodObject<{
|
|
1944
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
|
|
1945
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
1946
|
+
}, z.core.$strict>;
|
|
1947
|
+
output: z.ZodObject<{
|
|
1948
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
|
|
1949
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
1950
|
+
}, z.core.$strict>;
|
|
1951
|
+
permits: z.ZodArray<z.ZodEnum<{
|
|
1952
|
+
"page.view": "page.view";
|
|
1953
|
+
"comments.read": "comments.read";
|
|
1954
|
+
"comments.write": "comments.write";
|
|
1955
|
+
"content.publish": "content.publish";
|
|
1956
|
+
"access.manage": "access.manage";
|
|
1957
|
+
}>>;
|
|
1958
|
+
reads: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentResourceRef", "out">>;
|
|
1959
|
+
writes: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentResourceRef", "out">>;
|
|
1960
|
+
exposure: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1961
|
+
kind: z.ZodLiteral<"named">;
|
|
1962
|
+
named: z.ZodLiteral<true>;
|
|
1963
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1964
|
+
kind: z.ZodLiteral<"routed">;
|
|
1965
|
+
named: z.ZodLiteral<true>;
|
|
1966
|
+
route: z.ZodObject<{
|
|
1967
|
+
id: z.ZodString;
|
|
1968
|
+
method: z.ZodEnum<{
|
|
1969
|
+
POST: "POST";
|
|
1970
|
+
PUT: "PUT";
|
|
1971
|
+
GET: "GET";
|
|
1972
|
+
HEAD: "HEAD";
|
|
1973
|
+
PATCH: "PATCH";
|
|
1974
|
+
DELETE: "DELETE";
|
|
1975
|
+
OPTIONS: "OPTIONS";
|
|
1976
|
+
}>;
|
|
1977
|
+
path: z.ZodString;
|
|
1978
|
+
admission: z.ZodEnum<{
|
|
1979
|
+
public: "public";
|
|
1980
|
+
authenticated: "authenticated";
|
|
1981
|
+
}>;
|
|
1982
|
+
}, z.core.$strict>;
|
|
1983
|
+
}, z.core.$strict>], "kind">;
|
|
1984
|
+
cache: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1985
|
+
kind: z.ZodLiteral<"none">;
|
|
1986
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1987
|
+
kind: z.ZodLiteral<"private">;
|
|
1988
|
+
maxAgeSeconds: z.ZodNumber;
|
|
1989
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1990
|
+
kind: z.ZodLiteral<"public">;
|
|
1991
|
+
maxAgeSeconds: z.ZodNumber;
|
|
1992
|
+
staleWhileRevalidateSeconds: z.ZodNumber;
|
|
1993
|
+
}, z.core.$strict>], "kind">;
|
|
1994
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1995
|
+
kind: z.ZodLiteral<"endpoint">;
|
|
1996
|
+
mode: z.ZodEnum<{
|
|
1997
|
+
read: "read";
|
|
1998
|
+
write: "write";
|
|
1999
|
+
}>;
|
|
2000
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">;
|
|
2001
|
+
input: z.ZodObject<{
|
|
2002
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
|
|
2003
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
2004
|
+
}, z.core.$strict>;
|
|
2005
|
+
output: z.ZodObject<{
|
|
2006
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
|
|
2007
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
2008
|
+
}, z.core.$strict>;
|
|
2009
|
+
permits: z.ZodArray<z.ZodEnum<{
|
|
2010
|
+
"page.view": "page.view";
|
|
2011
|
+
"comments.read": "comments.read";
|
|
2012
|
+
"comments.write": "comments.write";
|
|
2013
|
+
"content.publish": "content.publish";
|
|
2014
|
+
"access.manage": "access.manage";
|
|
2015
|
+
}>>;
|
|
2016
|
+
reads: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentResourceRef", "out">>;
|
|
2017
|
+
writes: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentResourceRef", "out">>;
|
|
2018
|
+
exposure: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2019
|
+
kind: z.ZodLiteral<"named">;
|
|
2020
|
+
named: z.ZodLiteral<true>;
|
|
2021
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2022
|
+
kind: z.ZodLiteral<"routed">;
|
|
2023
|
+
named: z.ZodLiteral<true>;
|
|
2024
|
+
route: z.ZodObject<{
|
|
2025
|
+
id: z.ZodString;
|
|
2026
|
+
method: z.ZodEnum<{
|
|
2027
|
+
POST: "POST";
|
|
2028
|
+
PUT: "PUT";
|
|
2029
|
+
GET: "GET";
|
|
2030
|
+
HEAD: "HEAD";
|
|
2031
|
+
PATCH: "PATCH";
|
|
2032
|
+
DELETE: "DELETE";
|
|
2033
|
+
OPTIONS: "OPTIONS";
|
|
2034
|
+
}>;
|
|
2035
|
+
path: z.ZodString;
|
|
2036
|
+
admission: z.ZodEnum<{
|
|
2037
|
+
public: "public";
|
|
2038
|
+
authenticated: "authenticated";
|
|
2039
|
+
}>;
|
|
2040
|
+
}, z.core.$strict>;
|
|
2041
|
+
}, z.core.$strict>], "kind">;
|
|
2042
|
+
cache: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2043
|
+
kind: z.ZodLiteral<"none">;
|
|
2044
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2045
|
+
kind: z.ZodLiteral<"private">;
|
|
2046
|
+
maxAgeSeconds: z.ZodNumber;
|
|
2047
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2048
|
+
kind: z.ZodLiteral<"public">;
|
|
2049
|
+
maxAgeSeconds: z.ZodNumber;
|
|
2050
|
+
staleWhileRevalidateSeconds: z.ZodNumber;
|
|
2051
|
+
}, z.core.$strict>], "kind">;
|
|
2052
|
+
}, z.core.$strict>], "kind">>;
|
|
2053
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
2054
|
+
id: z.ZodString;
|
|
2055
|
+
sourceKey: z.ZodString;
|
|
2056
|
+
path: z.ZodString;
|
|
2057
|
+
title: z.ZodString;
|
|
2058
|
+
blockName: z.ZodLiteral<"zero/component">;
|
|
2059
|
+
componentId: z.core.$ZodBranded<z.ZodString, "ContentComponentId", "out">;
|
|
2060
|
+
props: z.ZodObject<{
|
|
2061
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
|
|
2062
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
2063
|
+
}, z.core.$strict>;
|
|
2064
|
+
}, z.core.$strict>>;
|
|
2065
|
+
hooks: z.ZodArray<z.ZodObject<{
|
|
2066
|
+
id: z.ZodString;
|
|
2067
|
+
runtime: z.ZodEnum<{
|
|
2068
|
+
php: "php";
|
|
2069
|
+
quickjs: "quickjs";
|
|
2070
|
+
}>;
|
|
2071
|
+
artifact: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
2072
|
+
export: z.ZodString;
|
|
2073
|
+
}, z.core.$strict>>;
|
|
2074
|
+
syncBindings: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
2075
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentSyncBindingId", "out">;
|
|
2076
|
+
resourceId: z.core.$ZodBranded<z.ZodString, "ContentResourceId", "out">;
|
|
2077
|
+
fieldId: z.core.$ZodBranded<z.ZodString, "ContentFieldId", "out">;
|
|
2078
|
+
source: z.ZodString;
|
|
2079
|
+
publicPath: z.ZodOptional<z.ZodString>;
|
|
2080
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
2081
|
+
md: "md";
|
|
2082
|
+
html: "html";
|
|
2083
|
+
tsx: "tsx";
|
|
2084
|
+
}>>;
|
|
2085
|
+
compiled: z.ZodOptional<z.ZodObject<{
|
|
2086
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
2087
|
+
}, z.core.$strict>>;
|
|
2088
|
+
documentSeed: z.ZodOptional<z.ZodObject<{
|
|
2089
|
+
text: z.ZodString;
|
|
2090
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
2091
|
+
}, z.core.$strict>>;
|
|
2092
|
+
slug: z.ZodString;
|
|
2093
|
+
}, z.core.$strict>, z.ZodTransform<{
|
|
2094
|
+
format: "md" | "html" | "tsx";
|
|
2095
|
+
id: string & z.core.$brand<"ContentSyncBindingId">;
|
|
2096
|
+
resourceId: string & z.core.$brand<"ContentResourceId">;
|
|
2097
|
+
fieldId: string & z.core.$brand<"ContentFieldId">;
|
|
2098
|
+
source: string;
|
|
2099
|
+
slug: string;
|
|
2100
|
+
publicPath?: string | undefined;
|
|
2101
|
+
compiled?: {
|
|
2102
|
+
sha256: string & z.core.$brand<"ContentModelSha256">;
|
|
2103
|
+
} | undefined;
|
|
2104
|
+
documentSeed?: {
|
|
2105
|
+
text: string;
|
|
2106
|
+
sha256: string & z.core.$brand<"ContentModelSha256">;
|
|
2107
|
+
} | undefined;
|
|
2108
|
+
}, {
|
|
2109
|
+
id: string & z.core.$brand<"ContentSyncBindingId">;
|
|
2110
|
+
resourceId: string & z.core.$brand<"ContentResourceId">;
|
|
2111
|
+
fieldId: string & z.core.$brand<"ContentFieldId">;
|
|
2112
|
+
source: string;
|
|
2113
|
+
slug: string;
|
|
2114
|
+
publicPath?: string | undefined;
|
|
2115
|
+
format?: "md" | "html" | "tsx" | undefined;
|
|
2116
|
+
compiled?: {
|
|
2117
|
+
sha256: string & z.core.$brand<"ContentModelSha256">;
|
|
2118
|
+
} | undefined;
|
|
2119
|
+
documentSeed?: {
|
|
2120
|
+
text: string;
|
|
2121
|
+
sha256: string & z.core.$brand<"ContentModelSha256">;
|
|
2122
|
+
} | undefined;
|
|
2123
|
+
}>>>;
|
|
2124
|
+
materializations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2125
|
+
resourceId: z.core.$ZodBranded<z.ZodString, "ContentResourceId", "out">;
|
|
2126
|
+
fieldId: z.core.$ZodBranded<z.ZodString, "ContentFieldId", "out">;
|
|
2127
|
+
directory: z.ZodString;
|
|
2128
|
+
suffix: z.ZodString;
|
|
2129
|
+
format: z.ZodEnum<{
|
|
2130
|
+
md: "md";
|
|
2131
|
+
html: "html";
|
|
2132
|
+
tsx: "tsx";
|
|
2133
|
+
}>;
|
|
2134
|
+
}, z.core.$strict>>>;
|
|
2135
|
+
}, z.core.$strict>;
|
|
2136
|
+
executables: z.ZodObject<{
|
|
2137
|
+
format: z.ZodLiteral<"spacefast.zero-executables">;
|
|
2138
|
+
version: z.ZodLiteral<1>;
|
|
2139
|
+
inputDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
2140
|
+
executables: z.ZodArray<z.ZodObject<{
|
|
2141
|
+
id: z.ZodString;
|
|
2142
|
+
runtime: z.ZodEnum<{
|
|
2143
|
+
php: "php";
|
|
2144
|
+
quickjs: "quickjs";
|
|
2145
|
+
}>;
|
|
2146
|
+
artifact: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
2147
|
+
export: z.ZodString;
|
|
2148
|
+
}, z.core.$strict>>;
|
|
2149
|
+
}, z.core.$strict>;
|
|
2150
|
+
sdk: z.ZodObject<{
|
|
2151
|
+
format: z.ZodLiteral<"spacefast.sdk-descriptors">;
|
|
2152
|
+
version: z.ZodLiteral<1>;
|
|
2153
|
+
inputDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
2154
|
+
operations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2155
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">;
|
|
2156
|
+
kind: z.ZodLiteral<"query">;
|
|
2157
|
+
mode: z.ZodLiteral<"read">;
|
|
2158
|
+
input: z.ZodObject<{
|
|
2159
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
|
|
2160
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
2161
|
+
}, z.core.$strict>;
|
|
2162
|
+
output: z.ZodObject<{
|
|
2163
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
|
|
2164
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
2165
|
+
}, z.core.$strict>;
|
|
2166
|
+
cache: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2167
|
+
kind: z.ZodLiteral<"none">;
|
|
2168
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2169
|
+
kind: z.ZodLiteral<"private">;
|
|
2170
|
+
maxAgeSeconds: z.ZodNumber;
|
|
2171
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2172
|
+
kind: z.ZodLiteral<"public">;
|
|
2173
|
+
maxAgeSeconds: z.ZodNumber;
|
|
2174
|
+
staleWhileRevalidateSeconds: z.ZodNumber;
|
|
2175
|
+
}, z.core.$strict>], "kind">;
|
|
2176
|
+
invalidates: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">>;
|
|
2177
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2178
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">;
|
|
2179
|
+
kind: z.ZodLiteral<"mutation">;
|
|
2180
|
+
mode: z.ZodLiteral<"write">;
|
|
2181
|
+
input: z.ZodObject<{
|
|
2182
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
|
|
2183
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
2184
|
+
}, z.core.$strict>;
|
|
2185
|
+
output: z.ZodObject<{
|
|
2186
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
|
|
2187
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
2188
|
+
}, z.core.$strict>;
|
|
2189
|
+
cache: z.ZodObject<{
|
|
2190
|
+
kind: z.ZodLiteral<"none">;
|
|
2191
|
+
}, z.core.$strict>;
|
|
2192
|
+
invalidates: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">>;
|
|
2193
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2194
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">;
|
|
2195
|
+
kind: z.ZodLiteral<"endpoint">;
|
|
2196
|
+
mode: z.ZodEnum<{
|
|
2197
|
+
read: "read";
|
|
2198
|
+
write: "write";
|
|
2199
|
+
}>;
|
|
2200
|
+
input: z.ZodObject<{
|
|
2201
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
|
|
2202
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
2203
|
+
}, z.core.$strict>;
|
|
2204
|
+
output: z.ZodObject<{
|
|
2205
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
|
|
2206
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
2207
|
+
}, z.core.$strict>;
|
|
2208
|
+
cache: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2209
|
+
kind: z.ZodLiteral<"none">;
|
|
2210
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2211
|
+
kind: z.ZodLiteral<"private">;
|
|
2212
|
+
maxAgeSeconds: z.ZodNumber;
|
|
2213
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2214
|
+
kind: z.ZodLiteral<"public">;
|
|
2215
|
+
maxAgeSeconds: z.ZodNumber;
|
|
2216
|
+
staleWhileRevalidateSeconds: z.ZodNumber;
|
|
2217
|
+
}, z.core.$strict>], "kind">;
|
|
2218
|
+
invalidates: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">>;
|
|
2219
|
+
}, z.core.$strict>], "kind">>;
|
|
2220
|
+
sync: z.ZodArray<z.ZodObject<{
|
|
2221
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentSyncBindingId", "out">;
|
|
2222
|
+
resourceId: z.core.$ZodBranded<z.ZodString, "ContentResourceId", "out">;
|
|
2223
|
+
source: z.ZodString;
|
|
2224
|
+
}, z.core.$strict>>;
|
|
2225
|
+
}, z.core.$strict>;
|
|
2226
|
+
routes: z.ZodObject<{
|
|
2227
|
+
format: z.ZodLiteral<"spacefast.route-contributions">;
|
|
2228
|
+
version: z.ZodLiteral<1>;
|
|
2229
|
+
inputDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
2230
|
+
routes: z.ZodArray<z.ZodObject<{
|
|
2231
|
+
abilityId: z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">;
|
|
2232
|
+
route: z.ZodObject<{
|
|
2233
|
+
id: z.ZodString;
|
|
2234
|
+
method: z.ZodEnum<{
|
|
2235
|
+
POST: "POST";
|
|
2236
|
+
PUT: "PUT";
|
|
2237
|
+
GET: "GET";
|
|
2238
|
+
HEAD: "HEAD";
|
|
2239
|
+
PATCH: "PATCH";
|
|
2240
|
+
DELETE: "DELETE";
|
|
2241
|
+
OPTIONS: "OPTIONS";
|
|
2242
|
+
}>;
|
|
2243
|
+
path: z.ZodString;
|
|
2244
|
+
admission: z.ZodEnum<{
|
|
2245
|
+
public: "public";
|
|
2246
|
+
authenticated: "authenticated";
|
|
2247
|
+
}>;
|
|
2248
|
+
}, z.core.$strict>;
|
|
2249
|
+
}, z.core.$strict>>;
|
|
2250
|
+
}, z.core.$strict>;
|
|
2251
|
+
requirements: z.ZodObject<{
|
|
2252
|
+
format: z.ZodLiteral<"spacefast.content-model-requirements">;
|
|
2253
|
+
version: z.ZodLiteral<1>;
|
|
2254
|
+
inputDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
|
|
2255
|
+
wordpressAbi: z.ZodLiteral<1>;
|
|
2256
|
+
capabilities: z.ZodArray<z.core.$ZodBranded<z.ZodString, "RuntimeCapabilityId", "out">>;
|
|
2257
|
+
}, z.core.$strict>;
|
|
2258
|
+
}, z.core.$strict>>;
|
|
1496
2259
|
}, z.core.$strict>;
|
|
1497
2260
|
export type ZeroDeployMetadata = z.infer<typeof zeroDeployMetadataSchema>;
|
|
1498
2261
|
/**
|
|
@@ -1548,8 +2311,11 @@ export declare const zeroAppSchema: z.ZodObject<{
|
|
|
1548
2311
|
tables: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1549
2312
|
queries: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1550
2313
|
mutations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1551
|
-
actions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1552
2314
|
endpoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2315
|
+
mode: z.ZodEnum<{
|
|
2316
|
+
read: "read";
|
|
2317
|
+
write: "write";
|
|
2318
|
+
}>;
|
|
1553
2319
|
method: z.ZodEnum<{
|
|
1554
2320
|
POST: "POST";
|
|
1555
2321
|
PUT: "PUT";
|
|
@@ -1601,7 +2367,7 @@ export declare const zeroLocalDevPlanSchema: z.ZodObject<{
|
|
|
1601
2367
|
root: z.ZodString;
|
|
1602
2368
|
httpUrl: z.ZodString;
|
|
1603
2369
|
realtimeUrl: z.ZodString;
|
|
1604
|
-
realtimePath: z.ZodLiteral<"/
|
|
2370
|
+
realtimePath: z.ZodLiteral<"/__zero/realtime">;
|
|
1605
2371
|
stateBackend: z.ZodEnum<{
|
|
1606
2372
|
mysql: "mysql";
|
|
1607
2373
|
memory: "memory";
|
|
@@ -1638,8 +2404,9 @@ export declare function createZeroCapsuleArtifact(input: {
|
|
|
1638
2404
|
schema?: z.input<typeof zeroDatabaseSchema>;
|
|
1639
2405
|
queries?: string[];
|
|
1640
2406
|
mutations?: string[];
|
|
1641
|
-
actions?: string[];
|
|
1642
2407
|
endpoints?: z.input<typeof zeroEndpointSchema>[];
|
|
2408
|
+
pages?: ZeroPage[];
|
|
2409
|
+
connectors?: z.input<typeof connectorRoleSchema>[];
|
|
1643
2410
|
sockets?: string[];
|
|
1644
2411
|
sourceManifest?: z.input<typeof zeroSourceManifestSchema>;
|
|
1645
2412
|
}): ZeroCapsuleArtifact;
|