@spacefast/common 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agents/connect-targets.d.ts +4 -4
- package/dist/agents/connect-targets.js +3 -3
- package/dist/agents/private-key-oauth.d.ts +37 -0
- package/dist/agents/private-key-oauth.js +158 -0
- package/dist/config/domains.js +1 -1
- package/dist/config/index.d.ts +1 -0
- package/dist/config/index.js +1 -0
- package/dist/config/postgres-budget.d.ts +126 -0
- package/dist/config/postgres-budget.js +135 -0
- package/dist/config/postgres-budget.json +50 -0
- package/dist/contracts/access.d.ts +386 -1183
- package/dist/contracts/access.js +240 -1018
- package/dist/contracts/activity.d.ts +1 -1
- package/dist/contracts/activity.js +11 -19
- package/dist/contracts/api-keys.d.ts +69 -45
- package/dist/contracts/api-keys.js +3 -0
- package/dist/contracts/archives.d.ts +9 -10
- package/dist/contracts/archives.js +4 -6
- package/dist/contracts/builds.d.ts +8 -8
- package/dist/contracts/builds.js +28 -48
- package/dist/contracts/channels.js +1 -2
- package/dist/contracts/comments.d.ts +102 -93
- package/dist/contracts/comments.js +121 -63
- package/dist/contracts/common.d.ts +4 -3
- package/dist/contracts/common.js +2 -0
- package/dist/contracts/countries.js +2 -7
- package/dist/contracts/data-source-routes.d.ts +20 -0
- package/dist/contracts/data-source-routes.js +15 -0
- package/dist/contracts/deployments.d.ts +3 -3
- package/dist/contracts/device-auth.d.ts +21 -15
- package/dist/contracts/docs.d.ts +5 -5
- package/dist/contracts/domains.d.ts +261 -1330
- package/dist/contracts/domains.js +39 -301
- package/dist/contracts/email-preferences.d.ts +50 -0
- package/dist/contracts/email-preferences.js +44 -0
- package/dist/contracts/enums.d.ts +3 -5
- package/dist/contracts/enums.js +3 -8
- package/dist/contracts/error-code-meta.d.ts +99 -33
- package/dist/contracts/error-code-meta.js +36 -9
- package/dist/contracts/error-codes.d.ts +1 -1
- package/dist/contracts/error-codes.js +28 -11
- package/dist/contracts/execution.d.ts +212 -0
- package/dist/contracts/execution.js +288 -0
- package/dist/contracts/feature-lifecycle.d.ts +498 -2
- package/dist/contracts/feature-lifecycle.js +539 -2
- package/dist/contracts/features.d.ts +184 -74
- package/dist/contracts/features.js +4 -303
- package/dist/contracts/functions.d.ts +729 -0
- package/dist/contracts/functions.js +485 -0
- package/dist/contracts/git.d.ts +1 -1
- package/dist/contracts/grants.d.ts +1158 -0
- package/dist/contracts/grants.js +696 -0
- package/dist/contracts/ids.d.ts +6 -5
- package/dist/contracts/ids.js +6 -5
- package/dist/contracts/internal.d.ts +3 -3
- package/dist/contracts/mcp.d.ts +12 -12
- package/dist/contracts/me.js +1 -1
- package/dist/contracts/mounts.d.ts +142 -0
- package/dist/contracts/mounts.js +56 -0
- package/dist/contracts/oauth-resources.d.ts +5 -5
- package/dist/contracts/oauth-resources.js +2 -0
- package/dist/contracts/operations.d.ts +4 -4
- package/dist/contracts/pages.d.ts +6 -14
- package/dist/contracts/pages.js +11 -23
- package/dist/contracts/plan-policy.d.ts +2 -9
- package/dist/contracts/plan-policy.js +1 -4
- package/dist/contracts/platform.d.ts +80 -32
- package/dist/contracts/platform.js +59 -12
- package/dist/contracts/push-new.d.ts +26 -2
- package/dist/contracts/push-new.js +8 -0
- package/dist/contracts/quotas.d.ts +0 -1
- package/dist/contracts/quotas.js +0 -5
- package/dist/contracts/repository-connections.d.ts +1 -1
- package/dist/contracts/resources.d.ts +21 -85
- package/dist/contracts/resources.js +17 -47
- package/dist/contracts/runtime-api.d.ts +799 -192
- package/dist/contracts/runtime-api.js +231 -100
- package/dist/contracts/runtime-app.d.ts +138 -0
- package/dist/contracts/runtime-app.js +21 -0
- package/dist/contracts/sf-config-v1.d.ts +5 -0
- package/dist/contracts/sf-config-v1.js +1 -1
- package/dist/contracts/sites.d.ts +17 -12
- package/dist/contracts/sites.js +30 -12
- package/dist/contracts/space-config.d.ts +46 -117
- package/dist/contracts/space-config.js +323 -25
- package/dist/contracts/spaces.d.ts +392 -256
- package/dist/contracts/spaces.js +163 -83
- package/dist/contracts/superadmin-emails.d.ts +27 -3
- package/dist/contracts/superadmin-emails.js +10 -15
- package/dist/contracts/superadmin-runtime.d.ts +2 -2
- package/dist/contracts/superadmin-spaces.d.ts +19 -142
- package/dist/contracts/superadmin-spaces.js +7 -0
- package/dist/contracts/tags.d.ts +66 -36
- package/dist/contracts/tags.js +195 -11
- package/dist/contracts/teams.d.ts +9 -9
- package/dist/contracts/transfers.d.ts +1 -2
- package/dist/contracts/variables.d.ts +4 -4
- package/dist/contracts/variables.js +4 -3
- package/dist/contracts/webhooks.d.ts +2 -2
- package/dist/contracts/zero.d.ts +437 -193
- package/dist/contracts/zero.js +149 -158
- package/dist/dashboard-paths/index.d.ts +3 -3
- package/dist/dashboard-paths/index.js +1 -0
- package/dist/docs/agent-prose.js +10 -8
- package/dist/docs/agent-setup.d.ts +6 -4
- package/dist/docs/agent-setup.js +26 -16
- package/dist/docs/agent-solutions.js +1 -1
- package/dist/docs/catalog.d.ts +35 -37
- package/dist/docs/catalog.js +36 -38
- package/dist/docs/error-docs.js +108 -44
- package/dist/utils/asset-fingerprint.d.ts +11 -0
- package/dist/utils/asset-fingerprint.js +46 -0
- package/dist/utils/auth-redirect.d.ts +1 -3
- package/dist/utils/auth-redirect.js +1 -21
- package/dist/utils/build-settings.d.ts +2 -0
- package/dist/utils/build-settings.js +61 -9
- package/dist/utils/credential-policy.d.ts +1 -1
- package/dist/utils/credential-policy.js +4 -0
- package/dist/utils/dns-instructions.d.ts +29 -0
- package/dist/utils/dns-instructions.js +78 -0
- package/dist/utils/domain-diagnostics.d.ts +29 -0
- package/dist/utils/domain-diagnostics.js +63 -0
- package/dist/utils/egress-policy.fixtures.json +51 -0
- package/dist/utils/grants.d.ts +53 -0
- package/dist/utils/grants.js +160 -0
- package/dist/utils/id-hints.d.ts +1 -0
- package/dist/utils/id-hints.js +55 -13
- package/dist/utils/local-space-state.js +1 -0
- package/dist/utils/page-colors.d.ts +50 -0
- package/dist/utils/page-colors.js +167 -0
- package/dist/utils/page-fonts.d.ts +2 -0
- package/dist/utils/page-fonts.js +4 -0
- package/dist/utils/pages.d.ts +19 -6
- package/dist/utils/pages.js +122 -49
- package/dist/utils/production-runtime.d.ts +18 -0
- package/dist/utils/production-runtime.js +28 -0
- package/dist/utils/publish-policy.d.ts +34 -4
- package/dist/utils/publish-policy.js +132 -61
- package/dist/utils/query-keys.d.ts +7 -13
- package/dist/utils/query-keys.js +12 -18
- package/dist/utils/source-archive-policy.d.ts +2 -0
- package/dist/utils/source-archive-policy.js +2 -0
- package/dist/utils/space-config.d.ts +5 -1
- package/dist/utils/space-config.js +35 -0
- package/dist/utils/static-runtime-policy.d.ts +5 -0
- package/dist/utils/static-runtime-policy.fixtures.json +57 -0
- package/dist/utils/static-runtime-policy.js +54 -10
- package/dist/utils/upload-session.d.ts +3 -0
- package/dist/utils/upload-session.js +31 -0
- package/package.json +6 -4
- package/dist/contracts/annotations.d.ts +0 -327
- package/dist/contracts/annotations.js +0 -235
- package/dist/contracts/generated-feature-launch-entries.d.ts +0 -2
- package/dist/contracts/generated-feature-launch-entries.js +0 -518
- package/dist/contracts/publishes.d.ts +0 -135
- package/dist/contracts/publishes.js +0 -162
- package/dist/utils/access-match.d.ts +0 -39
- package/dist/utils/access-match.js +0 -296
- package/dist/utils/sf-config-v1.d.ts +0 -2
- package/dist/utils/sf-config-v1.js +0 -542
package/dist/contracts/zero.d.ts
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Spacefast Zero: capsules — schema, queries, mutations and endpoints that run
|
|
4
|
+
* together inside one parent-owned transaction — executed by the native runner
|
|
5
|
+
* on a dedicated wp.cloud site, against that site's own MySQL.
|
|
6
|
+
*
|
|
7
|
+
* The transaction is what makes this a separate product rather than a
|
|
8
|
+
* placement option for `./functions.js`. A capsule handler's semantics depend
|
|
9
|
+
* on the transaction wrapped around it, and an isolate reaching the database
|
|
10
|
+
* over a relay cannot offer one. See `endpointIsPortable` in `./execution.js`
|
|
11
|
+
* for the narrow surface both products can host.
|
|
12
|
+
*/
|
|
2
13
|
export declare const ZERO_SOURCE_METADATA_KEY = "statticZero";
|
|
3
14
|
export declare const ZERO_RUNTIME_KIND = "zero";
|
|
4
15
|
export declare const ZERO_PLATFORM_ROUTE_PREFIX = "/__spacefast/zero";
|
|
@@ -17,7 +28,7 @@ export declare const ZERO_RUNTIME_ROUTE_PATHS: {
|
|
|
17
28
|
export declare const ZERO_RUNTIME_STORAGE_ROOT = "__spacefast/zero";
|
|
18
29
|
export declare const ZERO_RUNTIME_ARTIFACT_PATH = "__spacefast/zero/artifact.json";
|
|
19
30
|
export declare const ZERO_RUNTIME_CONFIG_PATH = "__spacefast/zero/config.json";
|
|
20
|
-
export declare const ZERO_RUNTIME_BINARY_PATH = "__spacefast/zero/bin/stattic-
|
|
31
|
+
export declare const ZERO_RUNTIME_BINARY_PATH = "__spacefast/zero/bin/stattic-runtime";
|
|
21
32
|
export declare const ZERO_RUNTIME_BINARY_COMPATIBILITY_TARGET = "wpcloud-linux-x86_64-gnu-v1";
|
|
22
33
|
export declare const ZERO_RUNTIME_BUNDLE_ROOT = "__spacefast/zero/bundles";
|
|
23
34
|
export declare const ZERO_RUNTIME_CLIENT_BUNDLE_PATH = "__spacefast/zero/bundles/client.js";
|
|
@@ -26,35 +37,18 @@ export declare const ZERO_SOURCE_ENV_FILE = ".env.zero.server";
|
|
|
26
37
|
export declare const ZERO_CONFIG_FILE = "zero.json";
|
|
27
38
|
export declare const ZERO_DEPLOY_FILE = ".zero/deploy.json";
|
|
28
39
|
export declare const ZERO_RUNTIME_BUNDLE_MAX_BYTES = 786432;
|
|
29
|
-
export declare const ZERO_ENV_MAX_KEYS = 64;
|
|
30
|
-
export declare const ZERO_ENV_NAME_MAX_BYTES = 128;
|
|
31
|
-
export declare const ZERO_ENV_VALUE_MAX_BYTES: number;
|
|
32
|
-
export declare const ZERO_ENV_TOTAL_VALUE_MAX_BYTES: number;
|
|
33
|
-
export declare const ZERO_ENV_RESERVED_PREFIXES: readonly ["SPACEFAST_", "ZERO_"];
|
|
34
40
|
export declare const ZERO_MANAGED_TABLE_COLUMNS: readonly ["id", "createdAt", "updatedAt"];
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
workers: "workers";
|
|
43
|
-
}>;
|
|
44
|
-
export type ZeroRuntimeKind = z.infer<typeof zeroRuntimeKindSchema>;
|
|
45
|
-
export declare const zeroHttpMethodSchema: z.ZodEnum<{
|
|
46
|
-
PUT: "PUT";
|
|
47
|
-
POST: "POST";
|
|
48
|
-
GET: "GET";
|
|
49
|
-
HEAD: "HEAD";
|
|
50
|
-
PATCH: "PATCH";
|
|
51
|
-
DELETE: "DELETE";
|
|
52
|
-
OPTIONS: "OPTIONS";
|
|
53
|
-
}>;
|
|
41
|
+
/**
|
|
42
|
+
* Paths the Zero app shell itself answers, on top of the platform-reserved set
|
|
43
|
+
* in `./execution.js`. A capsule cannot claim these because its own client
|
|
44
|
+
* router and auth flow already do.
|
|
45
|
+
*/
|
|
46
|
+
export declare const ZERO_RESERVED_APP_ROUTE_PATHS: readonly ["/", "/index.html", "/client.js", "/auth/callback"];
|
|
47
|
+
export declare const ZERO_RESERVED_APP_ROUTE_PREFIXES: readonly ["/auth/"];
|
|
54
48
|
export declare const zeroEndpointSchema: z.ZodObject<{
|
|
55
49
|
method: z.ZodEnum<{
|
|
56
|
-
PUT: "PUT";
|
|
57
50
|
POST: "POST";
|
|
51
|
+
PUT: "PUT";
|
|
58
52
|
GET: "GET";
|
|
59
53
|
HEAD: "HEAD";
|
|
60
54
|
PATCH: "PATCH";
|
|
@@ -64,6 +58,7 @@ export declare const zeroEndpointSchema: z.ZodObject<{
|
|
|
64
58
|
path: z.ZodString;
|
|
65
59
|
}, z.core.$strict>;
|
|
66
60
|
export type ZeroEndpoint = z.infer<typeof zeroEndpointSchema>;
|
|
61
|
+
export declare function zeroEndpointRoutesAmbiguous(left: ZeroEndpoint, right: ZeroEndpoint): boolean;
|
|
67
62
|
export declare const zeroTableColumnSchema: z.ZodObject<{
|
|
68
63
|
name: z.ZodString;
|
|
69
64
|
type: z.ZodEnum<{
|
|
@@ -106,6 +101,12 @@ export declare const zeroDatabaseSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
106
101
|
}, z.core.$strict>>>;
|
|
107
102
|
}, z.core.$strict>>;
|
|
108
103
|
export type ZeroDatabase = z.infer<typeof zeroDatabaseSchema>;
|
|
104
|
+
/**
|
|
105
|
+
* Zero's bundles travel inline in the finalize payload — a capsule's compiled
|
|
106
|
+
* client and server fit comfortably under the ceiling, and inlining keeps the
|
|
107
|
+
* whole version one atomic write. Functions bundles do the opposite and land
|
|
108
|
+
* in the content store first; see `functionsBundleRefSchema`.
|
|
109
|
+
*/
|
|
109
110
|
export declare const zeroRuntimeBundleSchema: z.ZodObject<{
|
|
110
111
|
path: z.ZodString;
|
|
111
112
|
sha256: z.ZodString;
|
|
@@ -136,6 +137,31 @@ export declare const zeroRuntimeRunSourceSchema: z.ZodObject<{
|
|
|
136
137
|
db: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
137
138
|
}, z.core.$strict>;
|
|
138
139
|
export type ZeroRuntimeRunSource = z.infer<typeof zeroRuntimeRunSourceSchema>;
|
|
140
|
+
export declare const zeroRuntimeEndpointSourceSchema: z.ZodObject<{
|
|
141
|
+
method: z.ZodEnum<{
|
|
142
|
+
POST: "POST";
|
|
143
|
+
PUT: "PUT";
|
|
144
|
+
GET: "GET";
|
|
145
|
+
HEAD: "HEAD";
|
|
146
|
+
PATCH: "PATCH";
|
|
147
|
+
DELETE: "DELETE";
|
|
148
|
+
OPTIONS: "OPTIONS";
|
|
149
|
+
}>;
|
|
150
|
+
path: z.ZodString;
|
|
151
|
+
endpointId: z.ZodString;
|
|
152
|
+
source: z.ZodString;
|
|
153
|
+
schemaHash: z.ZodOptional<z.ZodString>;
|
|
154
|
+
capabilities: z.ZodDefault<z.ZodObject<{
|
|
155
|
+
db: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
156
|
+
fetch: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
157
|
+
auth: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
158
|
+
env: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
159
|
+
realtime: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
160
|
+
logging: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
161
|
+
}, z.core.$strip>>;
|
|
162
|
+
db: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
163
|
+
}, z.core.$strict>;
|
|
164
|
+
export type ZeroRuntimeEndpointSource = z.infer<typeof zeroRuntimeEndpointSourceSchema>;
|
|
139
165
|
export declare const zeroMigrationOperationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
140
166
|
op: z.ZodLiteral<"create_table">;
|
|
141
167
|
table: z.ZodString;
|
|
@@ -312,7 +338,7 @@ export declare const zeroRuntimeInstallProfileSchema: z.ZodObject<{
|
|
|
312
338
|
artifactPath: z.ZodLiteral<"__spacefast/zero/artifact.json">;
|
|
313
339
|
configPath: z.ZodLiteral<"__spacefast/zero/config.json">;
|
|
314
340
|
binary: z.ZodObject<{
|
|
315
|
-
path: z.ZodLiteral<"__spacefast/zero/bin/stattic-
|
|
341
|
+
path: z.ZodLiteral<"__spacefast/zero/bin/stattic-runtime">;
|
|
316
342
|
compatibilityTarget: z.ZodObject<{
|
|
317
343
|
profile: z.ZodLiteral<"wpcloud-linux-x86_64-gnu-v1">;
|
|
318
344
|
os: z.ZodLiteral<"linux">;
|
|
@@ -410,8 +436,8 @@ export declare const zeroCapsuleArtifactSchema: z.ZodObject<{
|
|
|
410
436
|
mutations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
411
437
|
endpoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
412
438
|
method: z.ZodEnum<{
|
|
413
|
-
PUT: "PUT";
|
|
414
439
|
POST: "POST";
|
|
440
|
+
PUT: "PUT";
|
|
415
441
|
GET: "GET";
|
|
416
442
|
HEAD: "HEAD";
|
|
417
443
|
PATCH: "PATCH";
|
|
@@ -522,7 +548,7 @@ export declare const zeroRuntimeFinalizePayloadSchema: z.ZodObject<{
|
|
|
522
548
|
artifactPath: z.ZodLiteral<"__spacefast/zero/artifact.json">;
|
|
523
549
|
configPath: z.ZodLiteral<"__spacefast/zero/config.json">;
|
|
524
550
|
binary: z.ZodObject<{
|
|
525
|
-
path: z.ZodLiteral<"__spacefast/zero/bin/stattic-
|
|
551
|
+
path: z.ZodLiteral<"__spacefast/zero/bin/stattic-runtime">;
|
|
526
552
|
compatibilityTarget: z.ZodObject<{
|
|
527
553
|
profile: z.ZodLiteral<"wpcloud-linux-x86_64-gnu-v1">;
|
|
528
554
|
os: z.ZodLiteral<"linux">;
|
|
@@ -571,8 +597,8 @@ export declare const zeroRuntimeFinalizePayloadSchema: z.ZodObject<{
|
|
|
571
597
|
mutations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
572
598
|
endpoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
573
599
|
method: z.ZodEnum<{
|
|
574
|
-
PUT: "PUT";
|
|
575
600
|
POST: "POST";
|
|
601
|
+
PUT: "PUT";
|
|
576
602
|
GET: "GET";
|
|
577
603
|
HEAD: "HEAD";
|
|
578
604
|
PATCH: "PATCH";
|
|
@@ -686,6 +712,30 @@ export declare const zeroRuntimeFinalizePayloadSchema: z.ZodObject<{
|
|
|
686
712
|
size: z.ZodNumber;
|
|
687
713
|
contentBase64: z.ZodString;
|
|
688
714
|
}, z.core.$strict>>>;
|
|
715
|
+
endpointSources: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
716
|
+
method: z.ZodEnum<{
|
|
717
|
+
POST: "POST";
|
|
718
|
+
PUT: "PUT";
|
|
719
|
+
GET: "GET";
|
|
720
|
+
HEAD: "HEAD";
|
|
721
|
+
PATCH: "PATCH";
|
|
722
|
+
DELETE: "DELETE";
|
|
723
|
+
OPTIONS: "OPTIONS";
|
|
724
|
+
}>;
|
|
725
|
+
path: z.ZodString;
|
|
726
|
+
endpointId: z.ZodString;
|
|
727
|
+
source: z.ZodString;
|
|
728
|
+
schemaHash: z.ZodOptional<z.ZodString>;
|
|
729
|
+
capabilities: z.ZodDefault<z.ZodObject<{
|
|
730
|
+
db: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
731
|
+
fetch: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
732
|
+
auth: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
733
|
+
env: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
734
|
+
realtime: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
735
|
+
logging: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
736
|
+
}, z.core.$strip>>;
|
|
737
|
+
db: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
738
|
+
}, z.core.$strict>>>;
|
|
689
739
|
runSources: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
690
740
|
runId: z.ZodString;
|
|
691
741
|
source: z.ZodString;
|
|
@@ -786,6 +836,253 @@ export declare const zeroRuntimeFinalizePayloadSchema: z.ZodObject<{
|
|
|
786
836
|
}, z.core.$strict>>;
|
|
787
837
|
}, z.core.$strict>;
|
|
788
838
|
export type ZeroRuntimeFinalizePayload = z.infer<typeof zeroRuntimeFinalizePayloadSchema>;
|
|
839
|
+
export declare const zeroRuntimeConfigSchema: z.ZodObject<{
|
|
840
|
+
auth: z.ZodDefault<z.ZodObject<{
|
|
841
|
+
provider: z.ZodDefault<z.ZodLiteral<"wpcom">>;
|
|
842
|
+
signInPath: z.ZodDefault<z.ZodNullable<z.ZodLiteral<"/__spacefast/zero/auth/wpcom/start">>>;
|
|
843
|
+
signInUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
844
|
+
signOutPath: z.ZodDefault<z.ZodNullable<z.ZodLiteral<"/__spacefast/zero/auth/sign-out">>>;
|
|
845
|
+
signOutUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
846
|
+
returnToParam: z.ZodDefault<z.ZodString>;
|
|
847
|
+
}, z.core.$strict>>;
|
|
848
|
+
realtime: z.ZodObject<{
|
|
849
|
+
mode: z.ZodEnum<{
|
|
850
|
+
"stattic-central": "stattic-central";
|
|
851
|
+
"spacefast-cast": "spacefast-cast";
|
|
852
|
+
"local-dev": "local-dev";
|
|
853
|
+
}>;
|
|
854
|
+
centralUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
855
|
+
replayUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
856
|
+
castResourceKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
857
|
+
eventCallback: z.ZodOptional<z.ZodObject<{
|
|
858
|
+
url: z.ZodString;
|
|
859
|
+
token: z.ZodString;
|
|
860
|
+
}, z.core.$strict>>;
|
|
861
|
+
}, z.core.$strict>;
|
|
862
|
+
variables: z.ZodObject<{
|
|
863
|
+
source: z.ZodLiteral<"stattic-variables">;
|
|
864
|
+
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
865
|
+
}, z.core.$strict>;
|
|
866
|
+
artifact: z.ZodObject<{
|
|
867
|
+
format: z.ZodLiteral<"stattic.zero.capsule.v1">;
|
|
868
|
+
appName: z.ZodString;
|
|
869
|
+
serverRuntime: z.ZodLiteral<"quickjs-rust">;
|
|
870
|
+
client: z.ZodObject<{
|
|
871
|
+
bundlePath: z.ZodString;
|
|
872
|
+
basePathAware: z.ZodDefault<z.ZodBoolean>;
|
|
873
|
+
}, z.core.$strict>;
|
|
874
|
+
server: z.ZodObject<{
|
|
875
|
+
bundlePath: z.ZodString;
|
|
876
|
+
schema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
877
|
+
name: z.ZodString;
|
|
878
|
+
columns: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
879
|
+
name: z.ZodString;
|
|
880
|
+
type: z.ZodEnum<{
|
|
881
|
+
string: "string";
|
|
882
|
+
number: "number";
|
|
883
|
+
boolean: "boolean";
|
|
884
|
+
json: "json";
|
|
885
|
+
}>;
|
|
886
|
+
nullable: z.ZodDefault<z.ZodBoolean>;
|
|
887
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
888
|
+
}, z.core.$strict>>>;
|
|
889
|
+
}, z.core.$strict>>>;
|
|
890
|
+
queries: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
891
|
+
mutations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
892
|
+
endpoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
893
|
+
method: z.ZodEnum<{
|
|
894
|
+
POST: "POST";
|
|
895
|
+
PUT: "PUT";
|
|
896
|
+
GET: "GET";
|
|
897
|
+
HEAD: "HEAD";
|
|
898
|
+
PATCH: "PATCH";
|
|
899
|
+
DELETE: "DELETE";
|
|
900
|
+
OPTIONS: "OPTIONS";
|
|
901
|
+
}>;
|
|
902
|
+
path: z.ZodString;
|
|
903
|
+
}, z.core.$strict>>>;
|
|
904
|
+
sockets: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
905
|
+
}, z.core.$strict>;
|
|
906
|
+
db: z.ZodObject<{
|
|
907
|
+
backend: z.ZodLiteral<"wpcloud-mysql">;
|
|
908
|
+
migrations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
909
|
+
op: z.ZodLiteral<"create_table">;
|
|
910
|
+
table: z.ZodString;
|
|
911
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
912
|
+
op: z.ZodLiteral<"add_column">;
|
|
913
|
+
table: z.ZodString;
|
|
914
|
+
column: z.ZodObject<{
|
|
915
|
+
name: z.ZodString;
|
|
916
|
+
type: z.ZodEnum<{
|
|
917
|
+
string: "string";
|
|
918
|
+
number: "number";
|
|
919
|
+
boolean: "boolean";
|
|
920
|
+
json: "json";
|
|
921
|
+
}>;
|
|
922
|
+
nullable: z.ZodDefault<z.ZodBoolean>;
|
|
923
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
924
|
+
}, z.core.$strict>;
|
|
925
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
926
|
+
op: z.ZodLiteral<"add_index">;
|
|
927
|
+
table: z.ZodString;
|
|
928
|
+
columns: z.ZodArray<z.ZodString>;
|
|
929
|
+
unique: z.ZodDefault<z.ZodBoolean>;
|
|
930
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
931
|
+
op: z.ZodLiteral<"drop_table">;
|
|
932
|
+
table: z.ZodString;
|
|
933
|
+
explicit: z.ZodLiteral<"drop">;
|
|
934
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
935
|
+
op: z.ZodLiteral<"drop_column">;
|
|
936
|
+
table: z.ZodString;
|
|
937
|
+
column: z.ZodString;
|
|
938
|
+
explicit: z.ZodLiteral<"drop">;
|
|
939
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
940
|
+
op: z.ZodLiteral<"rename_table">;
|
|
941
|
+
from: z.ZodString;
|
|
942
|
+
to: z.ZodString;
|
|
943
|
+
explicit: z.ZodLiteral<"rename">;
|
|
944
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
945
|
+
op: z.ZodLiteral<"rename_column">;
|
|
946
|
+
table: z.ZodString;
|
|
947
|
+
from: z.ZodString;
|
|
948
|
+
to: z.ZodString;
|
|
949
|
+
explicit: z.ZodLiteral<"rename">;
|
|
950
|
+
}, z.core.$strict>], "op">>>;
|
|
951
|
+
}, z.core.$strict>;
|
|
952
|
+
realtime: z.ZodObject<{
|
|
953
|
+
mode: z.ZodEnum<{
|
|
954
|
+
"stattic-central": "stattic-central";
|
|
955
|
+
"spacefast-cast": "spacefast-cast";
|
|
956
|
+
"local-dev": "local-dev";
|
|
957
|
+
}>;
|
|
958
|
+
mutationEvents: z.ZodDefault<z.ZodBoolean>;
|
|
959
|
+
}, z.core.$strict>;
|
|
960
|
+
limits: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
961
|
+
futureCapabilities: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
962
|
+
ai: "ai";
|
|
963
|
+
blob: "blob";
|
|
964
|
+
"generalized-js": "generalized-js";
|
|
965
|
+
}>>>;
|
|
966
|
+
sourceManifest: z.ZodObject<{
|
|
967
|
+
entries: z.ZodObject<{
|
|
968
|
+
client: z.ZodLiteral<"client/index.tsx">;
|
|
969
|
+
server: z.ZodLiteral<"server/index.ts">;
|
|
970
|
+
}, z.core.$strict>;
|
|
971
|
+
sourceRoot: z.ZodString;
|
|
972
|
+
files: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
973
|
+
path: z.ZodString;
|
|
974
|
+
size: z.ZodNumber;
|
|
975
|
+
sha256: z.ZodString;
|
|
976
|
+
}, z.core.$strict>>>;
|
|
977
|
+
env: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
978
|
+
file: z.ZodLiteral<".env.zero.server">;
|
|
979
|
+
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
980
|
+
}, z.core.$strip>>>;
|
|
981
|
+
sourceConfig: z.ZodDefault<z.ZodObject<{
|
|
982
|
+
configFile: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
983
|
+
path: z.ZodLiteral<"zero.json">;
|
|
984
|
+
appName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
985
|
+
deployId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
986
|
+
name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
987
|
+
title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
988
|
+
}, z.core.$strip>>>;
|
|
989
|
+
deployFile: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
990
|
+
path: z.ZodLiteral<".zero/deploy.json">;
|
|
991
|
+
keys: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
992
|
+
}, z.core.$strip>>>;
|
|
993
|
+
}, z.core.$strip>>;
|
|
994
|
+
}, z.core.$strict>;
|
|
995
|
+
}, z.core.$strict>;
|
|
996
|
+
runtimeKind: z.ZodLiteral<"zero">;
|
|
997
|
+
inspect: z.ZodDefault<z.ZodObject<{
|
|
998
|
+
policy: z.ZodDefault<z.ZodEnum<{
|
|
999
|
+
public: "public";
|
|
1000
|
+
private: "private";
|
|
1001
|
+
}>>;
|
|
1002
|
+
}, z.core.$strict>>;
|
|
1003
|
+
migrations: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1004
|
+
format: z.ZodLiteral<"stattic.zero.migrations.v1">;
|
|
1005
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
1006
|
+
safe: "safe";
|
|
1007
|
+
drop: "drop";
|
|
1008
|
+
rename: "rename";
|
|
1009
|
+
}>>;
|
|
1010
|
+
schemaHash: z.ZodString;
|
|
1011
|
+
operations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1012
|
+
op: z.ZodLiteral<"create_table">;
|
|
1013
|
+
table: z.ZodString;
|
|
1014
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1015
|
+
op: z.ZodLiteral<"add_column">;
|
|
1016
|
+
table: z.ZodString;
|
|
1017
|
+
column: z.ZodObject<{
|
|
1018
|
+
name: z.ZodString;
|
|
1019
|
+
type: z.ZodEnum<{
|
|
1020
|
+
string: "string";
|
|
1021
|
+
number: "number";
|
|
1022
|
+
boolean: "boolean";
|
|
1023
|
+
json: "json";
|
|
1024
|
+
}>;
|
|
1025
|
+
nullable: z.ZodDefault<z.ZodBoolean>;
|
|
1026
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
1027
|
+
}, z.core.$strict>;
|
|
1028
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1029
|
+
op: z.ZodLiteral<"add_index">;
|
|
1030
|
+
table: z.ZodString;
|
|
1031
|
+
columns: z.ZodArray<z.ZodString>;
|
|
1032
|
+
unique: z.ZodDefault<z.ZodBoolean>;
|
|
1033
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1034
|
+
op: z.ZodLiteral<"drop_table">;
|
|
1035
|
+
table: z.ZodString;
|
|
1036
|
+
explicit: z.ZodLiteral<"drop">;
|
|
1037
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1038
|
+
op: z.ZodLiteral<"drop_column">;
|
|
1039
|
+
table: z.ZodString;
|
|
1040
|
+
column: z.ZodString;
|
|
1041
|
+
explicit: z.ZodLiteral<"drop">;
|
|
1042
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1043
|
+
op: z.ZodLiteral<"rename_table">;
|
|
1044
|
+
from: z.ZodString;
|
|
1045
|
+
to: z.ZodString;
|
|
1046
|
+
explicit: z.ZodLiteral<"rename">;
|
|
1047
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1048
|
+
op: z.ZodLiteral<"rename_column">;
|
|
1049
|
+
table: z.ZodString;
|
|
1050
|
+
from: z.ZodString;
|
|
1051
|
+
to: z.ZodString;
|
|
1052
|
+
explicit: z.ZodLiteral<"rename">;
|
|
1053
|
+
}, z.core.$strict>], "op">>;
|
|
1054
|
+
}, z.core.$strict>>>;
|
|
1055
|
+
install: z.ZodObject<{
|
|
1056
|
+
runtimeKind: z.ZodLiteral<"zero">;
|
|
1057
|
+
engine: z.ZodLiteral<"quickjs-rust">;
|
|
1058
|
+
storageRoot: z.ZodLiteral<"__spacefast/zero">;
|
|
1059
|
+
artifactPath: z.ZodLiteral<"__spacefast/zero/artifact.json">;
|
|
1060
|
+
configPath: z.ZodLiteral<"__spacefast/zero/config.json">;
|
|
1061
|
+
binary: z.ZodObject<{
|
|
1062
|
+
path: z.ZodLiteral<"__spacefast/zero/bin/stattic-runtime">;
|
|
1063
|
+
compatibilityTarget: z.ZodObject<{
|
|
1064
|
+
profile: z.ZodLiteral<"wpcloud-linux-x86_64-gnu-v1">;
|
|
1065
|
+
os: z.ZodLiteral<"linux">;
|
|
1066
|
+
cpu: z.ZodLiteral<"x86_64">;
|
|
1067
|
+
libc: z.ZodLiteral<"glibc">;
|
|
1068
|
+
linking: z.ZodLiteral<"dynamic">;
|
|
1069
|
+
requireExecutableBit: z.ZodLiteral<true>;
|
|
1070
|
+
}, z.core.$strict>;
|
|
1071
|
+
sha256: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1072
|
+
required: z.ZodLiteral<true>;
|
|
1073
|
+
}, z.core.$strict>;
|
|
1074
|
+
mysql: z.ZodObject<{
|
|
1075
|
+
migrateAtFinalize: z.ZodLiteral<true>;
|
|
1076
|
+
blockIncompatibleRollback: z.ZodLiteral<true>;
|
|
1077
|
+
}, z.core.$strict>;
|
|
1078
|
+
realtime: z.ZodObject<{
|
|
1079
|
+
production: z.ZodLiteral<"stattic-central">;
|
|
1080
|
+
local: z.ZodLiteral<"foreground-cli-ws">;
|
|
1081
|
+
}, z.core.$strict>;
|
|
1082
|
+
}, z.core.$strict>;
|
|
1083
|
+
variableValues: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1084
|
+
}, z.core.$strict>;
|
|
1085
|
+
export type ZeroRuntimeConfig = z.infer<typeof zeroRuntimeConfigSchema>;
|
|
789
1086
|
export declare const zeroDeployMetadataSchema: z.ZodObject<{
|
|
790
1087
|
artifactId: z.ZodOptional<z.ZodString>;
|
|
791
1088
|
finalize: z.ZodObject<{
|
|
@@ -797,7 +1094,7 @@ export declare const zeroDeployMetadataSchema: z.ZodObject<{
|
|
|
797
1094
|
artifactPath: z.ZodLiteral<"__spacefast/zero/artifact.json">;
|
|
798
1095
|
configPath: z.ZodLiteral<"__spacefast/zero/config.json">;
|
|
799
1096
|
binary: z.ZodObject<{
|
|
800
|
-
path: z.ZodLiteral<"__spacefast/zero/bin/stattic-
|
|
1097
|
+
path: z.ZodLiteral<"__spacefast/zero/bin/stattic-runtime">;
|
|
801
1098
|
compatibilityTarget: z.ZodObject<{
|
|
802
1099
|
profile: z.ZodLiteral<"wpcloud-linux-x86_64-gnu-v1">;
|
|
803
1100
|
os: z.ZodLiteral<"linux">;
|
|
@@ -846,8 +1143,8 @@ export declare const zeroDeployMetadataSchema: z.ZodObject<{
|
|
|
846
1143
|
mutations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
847
1144
|
endpoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
848
1145
|
method: z.ZodEnum<{
|
|
849
|
-
PUT: "PUT";
|
|
850
1146
|
POST: "POST";
|
|
1147
|
+
PUT: "PUT";
|
|
851
1148
|
GET: "GET";
|
|
852
1149
|
HEAD: "HEAD";
|
|
853
1150
|
PATCH: "PATCH";
|
|
@@ -961,6 +1258,30 @@ export declare const zeroDeployMetadataSchema: z.ZodObject<{
|
|
|
961
1258
|
size: z.ZodNumber;
|
|
962
1259
|
contentBase64: z.ZodString;
|
|
963
1260
|
}, z.core.$strict>>>;
|
|
1261
|
+
endpointSources: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1262
|
+
method: z.ZodEnum<{
|
|
1263
|
+
POST: "POST";
|
|
1264
|
+
PUT: "PUT";
|
|
1265
|
+
GET: "GET";
|
|
1266
|
+
HEAD: "HEAD";
|
|
1267
|
+
PATCH: "PATCH";
|
|
1268
|
+
DELETE: "DELETE";
|
|
1269
|
+
OPTIONS: "OPTIONS";
|
|
1270
|
+
}>;
|
|
1271
|
+
path: z.ZodString;
|
|
1272
|
+
endpointId: z.ZodString;
|
|
1273
|
+
source: z.ZodString;
|
|
1274
|
+
schemaHash: z.ZodOptional<z.ZodString>;
|
|
1275
|
+
capabilities: z.ZodDefault<z.ZodObject<{
|
|
1276
|
+
db: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1277
|
+
fetch: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1278
|
+
auth: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1279
|
+
env: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1280
|
+
realtime: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1281
|
+
logging: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1282
|
+
}, z.core.$strip>>;
|
|
1283
|
+
db: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1284
|
+
}, z.core.$strict>>>;
|
|
964
1285
|
runSources: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
965
1286
|
runId: z.ZodString;
|
|
966
1287
|
source: z.ZodString;
|
|
@@ -1062,171 +1383,93 @@ export declare const zeroDeployMetadataSchema: z.ZodObject<{
|
|
|
1062
1383
|
}, z.core.$strict>;
|
|
1063
1384
|
}, z.core.$strict>;
|
|
1064
1385
|
export type ZeroDeployMetadata = z.infer<typeof zeroDeployMetadataSchema>;
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1386
|
+
/**
|
|
1387
|
+
* What a live Zero capsule is, as the `app` member of a space's runtime status.
|
|
1388
|
+
*
|
|
1389
|
+
* There is no `versionId` here: this only ever describes the version the status
|
|
1390
|
+
* response already names as live, and repeating it would invite the two to
|
|
1391
|
+
* disagree. `artifactId` stays because it identifies the built capsule rather
|
|
1392
|
+
* than the publish that carries it.
|
|
1393
|
+
*/
|
|
1394
|
+
export declare const zeroAppSchema: z.ZodObject<{
|
|
1395
|
+
runtimeKind: z.ZodLiteral<"zero">;
|
|
1396
|
+
artifactId: z.ZodString;
|
|
1397
|
+
appName: z.ZodString;
|
|
1398
|
+
serverRuntime: z.ZodLiteral<"quickjs-rust">;
|
|
1399
|
+
inspect: z.ZodObject<{
|
|
1400
|
+
policy: z.ZodEnum<{
|
|
1401
|
+
public: "public";
|
|
1402
|
+
private: "private";
|
|
1403
|
+
}>;
|
|
1404
|
+
}, z.core.$strict>;
|
|
1405
|
+
install: z.ZodObject<{
|
|
1069
1406
|
runtimeKind: z.ZodLiteral<"zero">;
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
configPath: z.ZodLiteral<"__spacefast/zero/config.json">;
|
|
1084
|
-
binary: z.ZodObject<{
|
|
1085
|
-
path: z.ZodLiteral<"__spacefast/zero/bin/stattic-zero-runner">;
|
|
1086
|
-
compatibilityTarget: z.ZodObject<{
|
|
1087
|
-
profile: z.ZodLiteral<"wpcloud-linux-x86_64-gnu-v1">;
|
|
1088
|
-
os: z.ZodLiteral<"linux">;
|
|
1089
|
-
cpu: z.ZodLiteral<"x86_64">;
|
|
1090
|
-
libc: z.ZodLiteral<"glibc">;
|
|
1091
|
-
linking: z.ZodLiteral<"dynamic">;
|
|
1092
|
-
requireExecutableBit: z.ZodLiteral<true>;
|
|
1093
|
-
}, z.core.$strict>;
|
|
1094
|
-
sha256: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1095
|
-
required: z.ZodLiteral<true>;
|
|
1096
|
-
}, z.core.$strict>;
|
|
1097
|
-
mysql: z.ZodObject<{
|
|
1098
|
-
migrateAtFinalize: z.ZodLiteral<true>;
|
|
1099
|
-
blockIncompatibleRollback: z.ZodLiteral<true>;
|
|
1100
|
-
}, z.core.$strict>;
|
|
1101
|
-
realtime: z.ZodObject<{
|
|
1102
|
-
production: z.ZodLiteral<"stattic-central">;
|
|
1103
|
-
local: z.ZodLiteral<"foreground-cli-ws">;
|
|
1407
|
+
engine: z.ZodLiteral<"quickjs-rust">;
|
|
1408
|
+
storageRoot: z.ZodLiteral<"__spacefast/zero">;
|
|
1409
|
+
artifactPath: z.ZodLiteral<"__spacefast/zero/artifact.json">;
|
|
1410
|
+
configPath: z.ZodLiteral<"__spacefast/zero/config.json">;
|
|
1411
|
+
binary: z.ZodObject<{
|
|
1412
|
+
path: z.ZodLiteral<"__spacefast/zero/bin/stattic-runtime">;
|
|
1413
|
+
compatibilityTarget: z.ZodObject<{
|
|
1414
|
+
profile: z.ZodLiteral<"wpcloud-linux-x86_64-gnu-v1">;
|
|
1415
|
+
os: z.ZodLiteral<"linux">;
|
|
1416
|
+
cpu: z.ZodLiteral<"x86_64">;
|
|
1417
|
+
libc: z.ZodLiteral<"glibc">;
|
|
1418
|
+
linking: z.ZodLiteral<"dynamic">;
|
|
1419
|
+
requireExecutableBit: z.ZodLiteral<true>;
|
|
1104
1420
|
}, z.core.$strict>;
|
|
1421
|
+
sha256: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1422
|
+
required: z.ZodLiteral<true>;
|
|
1105
1423
|
}, z.core.$strict>;
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
endpoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1110
|
-
method: z.ZodEnum<{
|
|
1111
|
-
PUT: "PUT";
|
|
1112
|
-
POST: "POST";
|
|
1113
|
-
GET: "GET";
|
|
1114
|
-
HEAD: "HEAD";
|
|
1115
|
-
PATCH: "PATCH";
|
|
1116
|
-
DELETE: "DELETE";
|
|
1117
|
-
OPTIONS: "OPTIONS";
|
|
1118
|
-
}>;
|
|
1119
|
-
path: z.ZodString;
|
|
1120
|
-
}, z.core.$strict>>>;
|
|
1121
|
-
sockets: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1122
|
-
variables: z.ZodObject<{
|
|
1123
|
-
source: z.ZodLiteral<"stattic-variables">;
|
|
1124
|
-
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1424
|
+
mysql: z.ZodObject<{
|
|
1425
|
+
migrateAtFinalize: z.ZodLiteral<true>;
|
|
1426
|
+
blockIncompatibleRollback: z.ZodLiteral<true>;
|
|
1125
1427
|
}, z.core.$strict>;
|
|
1126
1428
|
realtime: z.ZodObject<{
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
"spacefast-cast": "spacefast-cast";
|
|
1130
|
-
"local-dev": "local-dev";
|
|
1131
|
-
"local-websocket": "local-websocket";
|
|
1132
|
-
}>;
|
|
1133
|
-
centralUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1134
|
-
path: z.ZodOptional<z.ZodString>;
|
|
1135
|
-
replayPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1136
|
-
replayUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1137
|
-
runPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1138
|
-
runUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1139
|
-
resourceKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1140
|
-
socketPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1141
|
-
spaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1142
|
-
versionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1429
|
+
production: z.ZodLiteral<"stattic-central">;
|
|
1430
|
+
local: z.ZodLiteral<"foreground-cli-ws">;
|
|
1143
1431
|
}, z.core.$strict>;
|
|
1144
|
-
}, z.core.$strip>>;
|
|
1145
|
-
}, z.core.$strict>;
|
|
1146
|
-
export type ZeroInspectResponse = z.infer<typeof zeroInspectResponseSchema>;
|
|
1147
|
-
export declare const zeroInspectPublicResponseSchema: z.ZodObject<{
|
|
1148
|
-
data: z.ZodObject<{
|
|
1149
|
-
versionId: z.ZodNullable<z.ZodString>;
|
|
1150
|
-
artifactId: z.ZodNullable<z.ZodString>;
|
|
1151
|
-
data: z.ZodNullable<z.ZodObject<{
|
|
1152
|
-
runtimeKind: z.ZodLiteral<"zero">;
|
|
1153
|
-
appName: z.ZodString;
|
|
1154
|
-
serverRuntime: z.ZodLiteral<"quickjs-rust">;
|
|
1155
|
-
inspect: z.ZodObject<{
|
|
1156
|
-
policy: z.ZodEnum<{
|
|
1157
|
-
public: "public";
|
|
1158
|
-
private: "private";
|
|
1159
|
-
}>;
|
|
1160
|
-
}, z.core.$strict>;
|
|
1161
|
-
install: z.ZodObject<{
|
|
1162
|
-
runtimeKind: z.ZodLiteral<"zero">;
|
|
1163
|
-
engine: z.ZodLiteral<"quickjs-rust">;
|
|
1164
|
-
storageRoot: z.ZodLiteral<"__spacefast/zero">;
|
|
1165
|
-
artifactPath: z.ZodLiteral<"__spacefast/zero/artifact.json">;
|
|
1166
|
-
configPath: z.ZodLiteral<"__spacefast/zero/config.json">;
|
|
1167
|
-
binary: z.ZodObject<{
|
|
1168
|
-
path: z.ZodLiteral<"__spacefast/zero/bin/stattic-zero-runner">;
|
|
1169
|
-
compatibilityTarget: z.ZodObject<{
|
|
1170
|
-
profile: z.ZodLiteral<"wpcloud-linux-x86_64-gnu-v1">;
|
|
1171
|
-
os: z.ZodLiteral<"linux">;
|
|
1172
|
-
cpu: z.ZodLiteral<"x86_64">;
|
|
1173
|
-
libc: z.ZodLiteral<"glibc">;
|
|
1174
|
-
linking: z.ZodLiteral<"dynamic">;
|
|
1175
|
-
requireExecutableBit: z.ZodLiteral<true>;
|
|
1176
|
-
}, z.core.$strict>;
|
|
1177
|
-
sha256: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1178
|
-
required: z.ZodLiteral<true>;
|
|
1179
|
-
}, z.core.$strict>;
|
|
1180
|
-
mysql: z.ZodObject<{
|
|
1181
|
-
migrateAtFinalize: z.ZodLiteral<true>;
|
|
1182
|
-
blockIncompatibleRollback: z.ZodLiteral<true>;
|
|
1183
|
-
}, z.core.$strict>;
|
|
1184
|
-
realtime: z.ZodObject<{
|
|
1185
|
-
production: z.ZodLiteral<"stattic-central">;
|
|
1186
|
-
local: z.ZodLiteral<"foreground-cli-ws">;
|
|
1187
|
-
}, z.core.$strict>;
|
|
1188
|
-
}, z.core.$strict>;
|
|
1189
|
-
tables: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1190
|
-
queries: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1191
|
-
mutations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1192
|
-
endpoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1193
|
-
method: z.ZodEnum<{
|
|
1194
|
-
PUT: "PUT";
|
|
1195
|
-
POST: "POST";
|
|
1196
|
-
GET: "GET";
|
|
1197
|
-
HEAD: "HEAD";
|
|
1198
|
-
PATCH: "PATCH";
|
|
1199
|
-
DELETE: "DELETE";
|
|
1200
|
-
OPTIONS: "OPTIONS";
|
|
1201
|
-
}>;
|
|
1202
|
-
path: z.ZodString;
|
|
1203
|
-
}, z.core.$strict>>>;
|
|
1204
|
-
sockets: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1205
|
-
variables: z.ZodObject<{
|
|
1206
|
-
source: z.ZodLiteral<"stattic-variables">;
|
|
1207
|
-
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1208
|
-
}, z.core.$strict>;
|
|
1209
|
-
realtime: z.ZodObject<{
|
|
1210
|
-
mode: z.ZodEnum<{
|
|
1211
|
-
"stattic-central": "stattic-central";
|
|
1212
|
-
"spacefast-cast": "spacefast-cast";
|
|
1213
|
-
"local-dev": "local-dev";
|
|
1214
|
-
"local-websocket": "local-websocket";
|
|
1215
|
-
}>;
|
|
1216
|
-
centralUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1217
|
-
path: z.ZodOptional<z.ZodString>;
|
|
1218
|
-
replayPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1219
|
-
replayUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1220
|
-
runPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1221
|
-
runUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1222
|
-
resourceKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1223
|
-
socketPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1224
|
-
spaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1225
|
-
versionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1226
|
-
}, z.core.$strict>;
|
|
1227
|
-
}, z.core.$strip>>;
|
|
1228
1432
|
}, z.core.$strict>;
|
|
1229
|
-
|
|
1433
|
+
tables: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1434
|
+
queries: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1435
|
+
mutations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1436
|
+
endpoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1437
|
+
method: z.ZodEnum<{
|
|
1438
|
+
POST: "POST";
|
|
1439
|
+
PUT: "PUT";
|
|
1440
|
+
GET: "GET";
|
|
1441
|
+
HEAD: "HEAD";
|
|
1442
|
+
PATCH: "PATCH";
|
|
1443
|
+
DELETE: "DELETE";
|
|
1444
|
+
OPTIONS: "OPTIONS";
|
|
1445
|
+
}>;
|
|
1446
|
+
path: z.ZodString;
|
|
1447
|
+
}, z.core.$strict>>>;
|
|
1448
|
+
sockets: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1449
|
+
variables: z.ZodObject<{
|
|
1450
|
+
source: z.ZodLiteral<"stattic-variables">;
|
|
1451
|
+
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1452
|
+
}, z.core.$strict>;
|
|
1453
|
+
realtime: z.ZodObject<{
|
|
1454
|
+
mode: z.ZodEnum<{
|
|
1455
|
+
"stattic-central": "stattic-central";
|
|
1456
|
+
"spacefast-cast": "spacefast-cast";
|
|
1457
|
+
"local-dev": "local-dev";
|
|
1458
|
+
"local-websocket": "local-websocket";
|
|
1459
|
+
}>;
|
|
1460
|
+
centralUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1461
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1462
|
+
replayPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1463
|
+
replayUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1464
|
+
runPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1465
|
+
runUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1466
|
+
resourceKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1467
|
+
socketPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1468
|
+
spaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1469
|
+
versionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1470
|
+
}, z.core.$strict>;
|
|
1471
|
+
}, z.core.$strict>;
|
|
1472
|
+
export type ZeroApp = z.infer<typeof zeroAppSchema>;
|
|
1230
1473
|
export declare const zeroDbInspectResponseSchema: z.ZodObject<{
|
|
1231
1474
|
versionId: z.ZodNullable<z.ZodString>;
|
|
1232
1475
|
artifactId: z.ZodNullable<z.ZodString>;
|
|
@@ -1399,7 +1642,7 @@ export declare const zeroLogListQuerySchema: z.ZodObject<{
|
|
|
1399
1642
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1400
1643
|
cursor: z.ZodOptional<z.ZodString>;
|
|
1401
1644
|
requestId: z.ZodOptional<z.ZodString>;
|
|
1402
|
-
|
|
1645
|
+
handlerName: z.ZodOptional<z.ZodString>;
|
|
1403
1646
|
}, z.core.$strict>;
|
|
1404
1647
|
export type ZeroLogListQuery = z.infer<typeof zeroLogListQuerySchema>;
|
|
1405
1648
|
export declare const zeroLogEntrySchema: z.ZodObject<{
|
|
@@ -1413,7 +1656,7 @@ export declare const zeroLogEntrySchema: z.ZodObject<{
|
|
|
1413
1656
|
}>;
|
|
1414
1657
|
requestId: z.ZodNullable<z.ZodString>;
|
|
1415
1658
|
versionId: z.ZodNullable<z.ZodString>;
|
|
1416
|
-
|
|
1659
|
+
handlerName: z.ZodNullable<z.ZodString>;
|
|
1417
1660
|
message: z.ZodString;
|
|
1418
1661
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1419
1662
|
}, z.core.$strict>;
|
|
@@ -1429,7 +1672,7 @@ export declare const zeroLogListResponseSchema: z.ZodObject<{
|
|
|
1429
1672
|
}>;
|
|
1430
1673
|
requestId: z.ZodNullable<z.ZodString>;
|
|
1431
1674
|
versionId: z.ZodNullable<z.ZodString>;
|
|
1432
|
-
|
|
1675
|
+
handlerName: z.ZodNullable<z.ZodString>;
|
|
1433
1676
|
message: z.ZodString;
|
|
1434
1677
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1435
1678
|
}, z.core.$strict>>;
|
|
@@ -1519,6 +1762,7 @@ export declare function createZeroRuntimeFinalizePayload(input: {
|
|
|
1519
1762
|
artifact: z.input<typeof zeroCapsuleArtifactSchema>;
|
|
1520
1763
|
bundles?: z.input<typeof zeroRuntimeBundleSchema>[];
|
|
1521
1764
|
staticFiles?: z.input<typeof zeroRuntimeStaticFileSchema>[];
|
|
1765
|
+
endpointSources?: z.input<typeof zeroRuntimeEndpointSourceSchema>[];
|
|
1522
1766
|
runSources?: z.input<typeof zeroRuntimeRunSourceSchema>[];
|
|
1523
1767
|
migrations?: z.input<typeof zeroMigrationPlanSchema> | null;
|
|
1524
1768
|
runnerSha256?: string | null;
|