@spacefast/common 0.0.13 → 0.0.17
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/client-registry.d.ts +22 -0
- package/dist/agents/client-registry.js +41 -0
- package/dist/agents/connect-targets.d.ts +51 -6
- package/dist/agents/connect-targets.js +93 -28
- package/dist/brand.d.ts +0 -11
- package/dist/brand.js +0 -20
- package/dist/config/domains.d.ts +15 -6
- package/dist/config/domains.js +24 -10
- package/dist/config/postgres-budget.d.ts +3 -0
- package/dist/config/postgres-budget.js +6 -1
- package/dist/config/postgres-budget.json +2 -1
- package/dist/contracts/abuse.js +1 -1
- package/dist/contracts/access.d.ts +149 -44
- package/dist/contracts/access.js +94 -8
- package/dist/contracts/activity.js +5 -1
- package/dist/contracts/api-keys.js +9 -9
- package/dist/contracts/archives.js +11 -11
- package/dist/contracts/beta.js +1 -1
- package/dist/contracts/builds.js +14 -14
- package/dist/contracts/channels.js +2 -2
- package/dist/contracts/comments.d.ts +86 -15
- package/dist/contracts/comments.js +116 -20
- package/dist/contracts/common.d.ts +12 -12
- package/dist/contracts/common.js +33 -30
- package/dist/contracts/continuation.js +5 -5
- package/dist/contracts/data-source-routes.js +1 -1
- package/dist/contracts/device-auth.d.ts +6 -6
- package/dist/contracts/device-auth.js +12 -12
- package/dist/contracts/docs.d.ts +10 -10
- package/dist/contracts/domains.js +39 -33
- package/dist/contracts/enums.d.ts +2 -10
- package/dist/contracts/enums.js +0 -2
- package/dist/contracts/error-code-meta.d.ts +116 -47
- package/dist/contracts/error-code-meta.js +37 -16
- package/dist/contracts/error-codes.d.ts +7 -4
- package/dist/contracts/error-codes.js +46 -21
- package/dist/contracts/events.d.ts +10 -3
- package/dist/contracts/events.js +33 -5
- package/dist/contracts/execution.d.ts +26 -0
- package/dist/contracts/execution.js +21 -0
- package/dist/contracts/feature-lifecycle.d.ts +21 -24
- package/dist/contracts/feature-lifecycle.js +28 -26
- package/dist/contracts/features.js +4 -4
- package/dist/contracts/functions.d.ts +8 -140
- package/dist/contracts/functions.js +9 -19
- package/dist/contracts/git.d.ts +1 -1
- package/dist/contracts/grants.d.ts +96 -79
- package/dist/contracts/grants.js +130 -43
- package/dist/contracts/ids.d.ts +2 -2
- package/dist/contracts/ids.js +2 -4
- package/dist/contracts/internal.js +2 -2
- package/dist/contracts/mcp.d.ts +17 -556
- package/dist/contracts/mcp.js +9 -103
- package/dist/contracts/me.js +3 -4
- package/dist/contracts/notifications.d.ts +108 -0
- package/dist/contracts/notifications.js +54 -0
- package/dist/contracts/oauth-resources.d.ts +18 -1
- package/dist/contracts/oauth-resources.js +22 -2
- package/dist/contracts/operations.d.ts +2 -50
- package/dist/contracts/operations.js +0 -19
- package/dist/contracts/pages.d.ts +8 -4
- package/dist/contracts/pages.js +16 -3
- package/dist/contracts/platform.js +10 -8
- package/dist/contracts/problem-document.d.ts +14 -0
- package/dist/contracts/problem-document.js +35 -0
- package/dist/contracts/push-new.d.ts +21 -6
- package/dist/contracts/push-new.js +3 -7
- package/dist/contracts/resources.d.ts +8 -7
- package/dist/contracts/resources.js +9 -6
- package/dist/contracts/runtime-api.d.ts +162 -92
- package/dist/contracts/runtime-api.js +99 -27
- package/dist/contracts/runtime-app.d.ts +41 -11
- package/dist/contracts/runtime-app.js +22 -1
- package/dist/contracts/runtime-db.d.ts +424 -0
- package/dist/contracts/runtime-db.js +108 -0
- package/dist/contracts/runtime-storage.d.ts +120 -0
- package/dist/contracts/runtime-storage.js +40 -0
- package/dist/contracts/sf-config-v1.d.ts +49 -1
- package/dist/contracts/sf-config-v1.js +2 -2
- package/dist/contracts/sites.d.ts +1 -0
- package/dist/contracts/sites.js +20 -12
- package/dist/contracts/space-config.d.ts +62 -22
- package/dist/contracts/space-config.js +173 -47
- package/dist/contracts/spaces.d.ts +79 -45
- package/dist/contracts/spaces.js +66 -50
- package/dist/contracts/superadmin-spaces.d.ts +13 -2
- package/dist/contracts/superadmin-spaces.js +15 -0
- package/dist/contracts/superadmin-tenants.js +4 -4
- package/dist/contracts/superadmin.d.ts +4 -0
- package/dist/contracts/superadmin.js +14 -1
- package/dist/contracts/tags.d.ts +17 -17
- package/dist/contracts/tags.js +1 -1
- package/dist/contracts/teams.js +25 -16
- package/dist/contracts/theme-json.js +1 -1
- package/dist/contracts/transfers.js +4 -4
- package/dist/contracts/variables.js +3 -3
- package/dist/contracts/zero.d.ts +204 -338
- package/dist/contracts/zero.js +94 -98
- package/dist/dashboard-paths/index.d.ts +16 -1
- package/dist/dashboard-paths/index.js +18 -0
- package/dist/docs/agent-handoff-document.d.ts +2 -2
- package/dist/docs/agent-handoff-document.js +8 -7
- package/dist/docs/agent-prose.d.ts +22 -3
- package/dist/docs/agent-prose.js +221 -51
- package/dist/docs/agent-setup.d.ts +13 -10
- package/dist/docs/agent-setup.js +279 -53
- package/dist/docs/agent-solutions.d.ts +6 -6
- package/dist/docs/agent-solutions.js +23 -21
- package/dist/docs/catalog.d.ts +29 -74
- package/dist/docs/catalog.js +65 -92
- package/dist/docs/error-docs.js +293 -221
- package/dist/docs/skill-distribution.d.ts +2 -0
- package/dist/docs/skill-distribution.js +7 -4
- package/dist/docs/skills.d.ts +546 -0
- package/dist/docs/skills.js +340 -0
- package/dist/utils/browser-credential.d.ts +19 -0
- package/dist/utils/browser-credential.js +62 -0
- package/dist/utils/comment-avatars.d.ts +7 -0
- package/dist/utils/comment-avatars.js +42 -0
- package/dist/utils/content-type.d.ts +3 -3
- package/dist/utils/content-type.js +38 -61
- package/dist/utils/domain-diagnostics.d.ts +5 -5
- package/dist/utils/domain-diagnostics.js +21 -10
- package/dist/utils/local-space-state.d.ts +78 -4
- package/dist/utils/local-space-state.js +383 -82
- package/dist/utils/one-shot-replay.d.ts +14 -0
- package/dist/utils/one-shot-replay.js +21 -0
- package/dist/utils/page-preview.d.ts +7 -0
- package/dist/utils/page-preview.js +9 -0
- package/dist/utils/pages.d.ts +2 -11
- package/dist/utils/pages.js +58 -14
- package/dist/utils/publish-form-data.d.ts +22 -0
- package/dist/utils/publish-form-data.js +26 -0
- package/dist/utils/publish-policy.js +20 -4
- package/dist/utils/query-keys.d.ts +7 -4
- package/dist/utils/query-keys.js +13 -4
- package/dist/utils/runtime-paths.d.ts +3 -0
- package/dist/utils/runtime-paths.js +7 -0
- package/dist/utils/secure-local-file.d.ts +73 -0
- package/dist/utils/secure-local-file.js +1373 -0
- package/dist/utils/space-config.d.ts +13 -4
- package/dist/utils/space-config.js +123 -15
- package/dist/utils/storage-policy.d.ts +20 -0
- package/dist/utils/storage-policy.fixtures.json +174 -0
- package/dist/utils/storage-policy.js +193 -0
- package/dist/utils/upload-session.d.ts +12 -1
- package/dist/utils/upload-session.js +37 -2
- package/dist/utils/version-file-browser.d.ts +13 -0
- package/dist/utils/version-file-browser.js +59 -0
- package/package.json +19 -1
- package/dist/contracts/mounts.d.ts +0 -142
- package/dist/contracts/mounts.js +0 -56
- package/dist/utils/asset-fingerprint.d.ts +0 -64
- package/dist/utils/asset-fingerprint.js +0 -620
package/dist/contracts/zero.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { type RuntimeRealtimeMode } from "./execution.js";
|
|
2
3
|
/**
|
|
3
4
|
* Spacefast Zero: capsules — schema, queries, mutations and endpoints that run
|
|
4
5
|
* together inside one parent-owned transaction — executed by the native runner
|
|
@@ -13,6 +14,11 @@ import { z } from "zod";
|
|
|
13
14
|
export declare const ZERO_SOURCE_METADATA_KEY = "statticZero";
|
|
14
15
|
export declare const ZERO_RUNTIME_KIND = "zero";
|
|
15
16
|
export declare const ZERO_PLATFORM_ROUTE_PREFIX = "/__spacefast/zero";
|
|
17
|
+
/**
|
|
18
|
+
* Entry paths the Zero scaffold writes into `sf.jsonc#runtime`. They are
|
|
19
|
+
* starting points, not the contract: a capsule's entries are whatever its
|
|
20
|
+
* `runtime.server`/`runtime.client` say, and nothing infers them.
|
|
21
|
+
*/
|
|
16
22
|
export declare const ZERO_CLIENT_ENTRY = "client/index.tsx";
|
|
17
23
|
export declare const ZERO_SERVER_ENTRY = "server/index.ts";
|
|
18
24
|
export declare const ZERO_RUNTIME_ROUTE_PATHS: {
|
|
@@ -22,7 +28,7 @@ export declare const ZERO_RUNTIME_ROUTE_PATHS: {
|
|
|
22
28
|
readonly db: "/__spacefast/zero/db";
|
|
23
29
|
readonly logs: "/__spacefast/zero/logs";
|
|
24
30
|
readonly run: "/__spacefast/zero/run";
|
|
25
|
-
readonly authStart: "/__spacefast/zero/auth/
|
|
31
|
+
readonly authStart: "/__spacefast/zero/auth/gravatar/start";
|
|
26
32
|
readonly authSignOut: "/__spacefast/zero/auth/sign-out";
|
|
27
33
|
};
|
|
28
34
|
export declare const ZERO_RUNTIME_STORAGE_ROOT = "__spacefast/zero";
|
|
@@ -33,10 +39,18 @@ export declare const ZERO_RUNTIME_BINARY_COMPATIBILITY_TARGET = "wpcloud-linux-x
|
|
|
33
39
|
export declare const ZERO_RUNTIME_BUNDLE_ROOT = "__spacefast/zero/bundles";
|
|
34
40
|
export declare const ZERO_RUNTIME_CLIENT_BUNDLE_PATH = "__spacefast/zero/bundles/client.js";
|
|
35
41
|
export declare const ZERO_RUNTIME_SERVER_BUNDLE_PATH = "__spacefast/zero/bundles/server.qjs.mjs";
|
|
36
|
-
export declare const ZERO_SOURCE_ENV_FILE = ".env.zero.server";
|
|
37
|
-
export declare const ZERO_CONFIG_FILE = "zero.json";
|
|
38
|
-
export declare const ZERO_DEPLOY_FILE = ".zero/deploy.json";
|
|
39
42
|
export declare const ZERO_RUNTIME_BUNDLE_MAX_BYTES = 786432;
|
|
43
|
+
/**
|
|
44
|
+
* A capsule's compiled server travels as version metadata, not as content, so a
|
|
45
|
+
* server-only change leaves the published app shell byte-identical — and the
|
|
46
|
+
* version intent's manifest comparison would read it as "no changes" and never
|
|
47
|
+
* deploy it. The publish writes this one small file into the version instead:
|
|
48
|
+
* it holds a digest of everything the deploy would install, so any server,
|
|
49
|
+
* schema, or runtime-config change moves the manifest. Same channel a Functions
|
|
50
|
+
* bundle uses (`functionsBundleStoragePath`) — an ordinary manifest entry, no
|
|
51
|
+
* artifact-specific plumbing.
|
|
52
|
+
*/
|
|
53
|
+
export declare const ZERO_RUNTIME_DEPLOY_PATH = "__spacefast/zero/deploy.json";
|
|
40
54
|
export declare const ZERO_MANAGED_TABLE_COLUMNS: readonly ["id", "createdAt", "updatedAt"];
|
|
41
55
|
/**
|
|
42
56
|
* Paths the Zero app shell itself answers, on top of the platform-reserved set
|
|
@@ -71,6 +85,11 @@ export declare const zeroTableColumnSchema: z.ZodObject<{
|
|
|
71
85
|
default: z.ZodOptional<z.ZodUnknown>;
|
|
72
86
|
}, z.core.$strict>;
|
|
73
87
|
export type ZeroTableColumn = z.infer<typeof zeroTableColumnSchema>;
|
|
88
|
+
export declare const zeroTableIndexSchema: z.ZodObject<{
|
|
89
|
+
name: z.ZodString;
|
|
90
|
+
fields: z.ZodArray<z.ZodString>;
|
|
91
|
+
}, z.core.$strict>;
|
|
92
|
+
export type ZeroTableIndex = z.infer<typeof zeroTableIndexSchema>;
|
|
74
93
|
export declare const zeroTableSchema: z.ZodObject<{
|
|
75
94
|
name: z.ZodString;
|
|
76
95
|
columns: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -84,6 +103,10 @@ export declare const zeroTableSchema: z.ZodObject<{
|
|
|
84
103
|
nullable: z.ZodDefault<z.ZodBoolean>;
|
|
85
104
|
default: z.ZodOptional<z.ZodUnknown>;
|
|
86
105
|
}, z.core.$strict>>>;
|
|
106
|
+
indexes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
107
|
+
name: z.ZodString;
|
|
108
|
+
fields: z.ZodArray<z.ZodString>;
|
|
109
|
+
}, z.core.$strict>>>;
|
|
87
110
|
}, z.core.$strict>;
|
|
88
111
|
export type ZeroTable = z.infer<typeof zeroTableSchema>;
|
|
89
112
|
export declare const zeroDatabaseSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -99,6 +122,10 @@ export declare const zeroDatabaseSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
99
122
|
nullable: z.ZodDefault<z.ZodBoolean>;
|
|
100
123
|
default: z.ZodOptional<z.ZodUnknown>;
|
|
101
124
|
}, z.core.$strict>>>;
|
|
125
|
+
indexes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
126
|
+
name: z.ZodString;
|
|
127
|
+
fields: z.ZodArray<z.ZodString>;
|
|
128
|
+
}, z.core.$strict>>>;
|
|
102
129
|
}, z.core.$strict>>;
|
|
103
130
|
export type ZeroDatabase = z.infer<typeof zeroDatabaseSchema>;
|
|
104
131
|
/**
|
|
@@ -182,8 +209,14 @@ export declare const zeroMigrationOperationSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
182
209
|
}, z.core.$strict>, z.ZodObject<{
|
|
183
210
|
op: z.ZodLiteral<"add_index">;
|
|
184
211
|
table: z.ZodString;
|
|
212
|
+
name: z.ZodString;
|
|
185
213
|
columns: z.ZodArray<z.ZodString>;
|
|
186
214
|
unique: z.ZodDefault<z.ZodBoolean>;
|
|
215
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
216
|
+
op: z.ZodLiteral<"drop_index">;
|
|
217
|
+
table: z.ZodString;
|
|
218
|
+
name: z.ZodString;
|
|
219
|
+
explicit: z.ZodLiteral<"drop">;
|
|
187
220
|
}, z.core.$strict>, z.ZodObject<{
|
|
188
221
|
op: z.ZodLiteral<"drop_table">;
|
|
189
222
|
table: z.ZodString;
|
|
@@ -234,8 +267,14 @@ export declare const zeroMigrationPlanSchema: z.ZodObject<{
|
|
|
234
267
|
}, z.core.$strict>, z.ZodObject<{
|
|
235
268
|
op: z.ZodLiteral<"add_index">;
|
|
236
269
|
table: z.ZodString;
|
|
270
|
+
name: z.ZodString;
|
|
237
271
|
columns: z.ZodArray<z.ZodString>;
|
|
238
272
|
unique: z.ZodDefault<z.ZodBoolean>;
|
|
273
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
274
|
+
op: z.ZodLiteral<"drop_index">;
|
|
275
|
+
table: z.ZodString;
|
|
276
|
+
name: z.ZodString;
|
|
277
|
+
explicit: z.ZodLiteral<"drop">;
|
|
239
278
|
}, z.core.$strict>, z.ZodObject<{
|
|
240
279
|
op: z.ZodLiteral<"drop_table">;
|
|
241
280
|
table: z.ZodString;
|
|
@@ -259,23 +298,12 @@ export declare const zeroMigrationPlanSchema: z.ZodObject<{
|
|
|
259
298
|
}, z.core.$strict>], "op">>;
|
|
260
299
|
}, z.core.$strict>;
|
|
261
300
|
export type ZeroMigrationPlan = z.infer<typeof zeroMigrationPlanSchema>;
|
|
262
|
-
export declare const zeroRealtimeModeSchema: z.ZodEnum<{
|
|
263
|
-
"stattic-central": "stattic-central";
|
|
264
|
-
"spacefast-cast": "spacefast-cast";
|
|
265
|
-
"local-dev": "local-dev";
|
|
266
|
-
}>;
|
|
267
|
-
export declare const zeroRuntimePublicRealtimeModeSchema: z.ZodEnum<{
|
|
268
|
-
"stattic-central": "stattic-central";
|
|
269
|
-
"spacefast-cast": "spacefast-cast";
|
|
270
|
-
"local-dev": "local-dev";
|
|
271
|
-
"local-websocket": "local-websocket";
|
|
272
|
-
}>;
|
|
273
301
|
export declare const zeroInspectPolicySchema: z.ZodEnum<{
|
|
274
302
|
public: "public";
|
|
275
303
|
private: "private";
|
|
276
304
|
}>;
|
|
277
305
|
export declare const zeroRuntimePublicAuthConfigSchema: z.ZodObject<{
|
|
278
|
-
provider: z.ZodDefault<z.ZodLiteral<"
|
|
306
|
+
provider: z.ZodDefault<z.ZodLiteral<"gravatar">>;
|
|
279
307
|
signInPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
280
308
|
signInUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
281
309
|
signOutPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -284,10 +312,9 @@ export declare const zeroRuntimePublicAuthConfigSchema: z.ZodObject<{
|
|
|
284
312
|
}, z.core.$strict>;
|
|
285
313
|
export declare const zeroRuntimePublicRealtimeConfigSchema: z.ZodObject<{
|
|
286
314
|
mode: z.ZodEnum<{
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
"local-websocket": "local-websocket";
|
|
315
|
+
local: "local";
|
|
316
|
+
cast: "cast";
|
|
317
|
+
central: "central";
|
|
291
318
|
}>;
|
|
292
319
|
centralUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
293
320
|
path: z.ZodOptional<z.ZodString>;
|
|
@@ -296,15 +323,17 @@ export declare const zeroRuntimePublicRealtimeConfigSchema: z.ZodObject<{
|
|
|
296
323
|
runPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
297
324
|
runUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
298
325
|
resourceKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
326
|
+
ticketPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
299
327
|
socketPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
300
328
|
spaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
301
329
|
versionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
302
330
|
}, z.core.$strict>;
|
|
331
|
+
export type ZeroRuntimePublicRealtimeConfig = z.infer<typeof zeroRuntimePublicRealtimeConfigSchema>;
|
|
303
332
|
export declare const zeroRuntimeClientConfigSchema: z.ZodObject<{
|
|
304
333
|
runtimeKind: z.ZodLiteral<"zero">;
|
|
305
334
|
basePath: z.ZodOptional<z.ZodString>;
|
|
306
335
|
auth: z.ZodOptional<z.ZodObject<{
|
|
307
|
-
provider: z.ZodDefault<z.ZodLiteral<"
|
|
336
|
+
provider: z.ZodDefault<z.ZodLiteral<"gravatar">>;
|
|
308
337
|
signInPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
309
338
|
signInUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
310
339
|
signOutPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -313,10 +342,9 @@ export declare const zeroRuntimeClientConfigSchema: z.ZodObject<{
|
|
|
313
342
|
}, z.core.$strict>>;
|
|
314
343
|
realtime: z.ZodOptional<z.ZodObject<{
|
|
315
344
|
mode: z.ZodEnum<{
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
"local-websocket": "local-websocket";
|
|
345
|
+
local: "local";
|
|
346
|
+
cast: "cast";
|
|
347
|
+
central: "central";
|
|
320
348
|
}>;
|
|
321
349
|
centralUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
322
350
|
path: z.ZodOptional<z.ZodString>;
|
|
@@ -325,6 +353,7 @@ export declare const zeroRuntimeClientConfigSchema: z.ZodObject<{
|
|
|
325
353
|
runPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
326
354
|
runUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
327
355
|
resourceKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
356
|
+
ticketPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
328
357
|
socketPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
329
358
|
spaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
330
359
|
versionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -355,7 +384,7 @@ export declare const zeroRuntimeInstallProfileSchema: z.ZodObject<{
|
|
|
355
384
|
blockIncompatibleRollback: z.ZodLiteral<true>;
|
|
356
385
|
}, z.core.$strict>;
|
|
357
386
|
realtime: z.ZodObject<{
|
|
358
|
-
production: z.ZodLiteral<"
|
|
387
|
+
production: z.ZodLiteral<"central">;
|
|
359
388
|
local: z.ZodLiteral<"foreground-cli-ws">;
|
|
360
389
|
}, z.core.$strict>;
|
|
361
390
|
}, z.core.$strict>;
|
|
@@ -380,8 +409,8 @@ export declare const zeroSourceFileSchema: z.ZodObject<{
|
|
|
380
409
|
}, z.core.$strict>;
|
|
381
410
|
export declare const zeroSourceManifestSchema: z.ZodObject<{
|
|
382
411
|
entries: z.ZodObject<{
|
|
383
|
-
client: z.
|
|
384
|
-
server: z.
|
|
412
|
+
client: z.ZodString;
|
|
413
|
+
server: z.ZodString;
|
|
385
414
|
}, z.core.$strict>;
|
|
386
415
|
sourceRoot: z.ZodString;
|
|
387
416
|
files: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -390,22 +419,12 @@ export declare const zeroSourceManifestSchema: z.ZodObject<{
|
|
|
390
419
|
sha256: z.ZodString;
|
|
391
420
|
}, z.core.$strict>>>;
|
|
392
421
|
env: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
393
|
-
file: z.
|
|
422
|
+
file: z.ZodEnum<{
|
|
423
|
+
".env.server": ".env.server";
|
|
424
|
+
".env.lakebed.server": ".env.lakebed.server";
|
|
425
|
+
}>;
|
|
394
426
|
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
395
427
|
}, z.core.$strip>>>;
|
|
396
|
-
sourceConfig: z.ZodDefault<z.ZodObject<{
|
|
397
|
-
configFile: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
398
|
-
path: z.ZodLiteral<"zero.json">;
|
|
399
|
-
appName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
400
|
-
deployId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
401
|
-
name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
402
|
-
title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
403
|
-
}, z.core.$strip>>>;
|
|
404
|
-
deployFile: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
405
|
-
path: z.ZodLiteral<".zero/deploy.json">;
|
|
406
|
-
keys: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
407
|
-
}, z.core.$strip>>>;
|
|
408
|
-
}, z.core.$strip>>;
|
|
409
428
|
}, z.core.$strict>;
|
|
410
429
|
export type ZeroSourceManifest = z.infer<typeof zeroSourceManifestSchema>;
|
|
411
430
|
export declare const zeroCapsuleArtifactSchema: z.ZodObject<{
|
|
@@ -431,9 +450,14 @@ export declare const zeroCapsuleArtifactSchema: z.ZodObject<{
|
|
|
431
450
|
nullable: z.ZodDefault<z.ZodBoolean>;
|
|
432
451
|
default: z.ZodOptional<z.ZodUnknown>;
|
|
433
452
|
}, z.core.$strict>>>;
|
|
453
|
+
indexes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
454
|
+
name: z.ZodString;
|
|
455
|
+
fields: z.ZodArray<z.ZodString>;
|
|
456
|
+
}, z.core.$strict>>>;
|
|
434
457
|
}, z.core.$strict>>>;
|
|
435
458
|
queries: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
436
459
|
mutations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
460
|
+
actions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
437
461
|
endpoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
438
462
|
method: z.ZodEnum<{
|
|
439
463
|
POST: "POST";
|
|
@@ -470,8 +494,14 @@ export declare const zeroCapsuleArtifactSchema: z.ZodObject<{
|
|
|
470
494
|
}, z.core.$strict>, z.ZodObject<{
|
|
471
495
|
op: z.ZodLiteral<"add_index">;
|
|
472
496
|
table: z.ZodString;
|
|
497
|
+
name: z.ZodString;
|
|
473
498
|
columns: z.ZodArray<z.ZodString>;
|
|
474
499
|
unique: z.ZodDefault<z.ZodBoolean>;
|
|
500
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
501
|
+
op: z.ZodLiteral<"drop_index">;
|
|
502
|
+
table: z.ZodString;
|
|
503
|
+
name: z.ZodString;
|
|
504
|
+
explicit: z.ZodLiteral<"drop">;
|
|
475
505
|
}, z.core.$strict>, z.ZodObject<{
|
|
476
506
|
op: z.ZodLiteral<"drop_table">;
|
|
477
507
|
table: z.ZodString;
|
|
@@ -496,9 +526,9 @@ export declare const zeroCapsuleArtifactSchema: z.ZodObject<{
|
|
|
496
526
|
}, z.core.$strict>;
|
|
497
527
|
realtime: z.ZodObject<{
|
|
498
528
|
mode: z.ZodEnum<{
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
529
|
+
local: "local";
|
|
530
|
+
cast: "cast";
|
|
531
|
+
central: "central";
|
|
502
532
|
}>;
|
|
503
533
|
mutationEvents: z.ZodDefault<z.ZodBoolean>;
|
|
504
534
|
}, z.core.$strict>;
|
|
@@ -510,8 +540,8 @@ export declare const zeroCapsuleArtifactSchema: z.ZodObject<{
|
|
|
510
540
|
}>>>;
|
|
511
541
|
sourceManifest: z.ZodObject<{
|
|
512
542
|
entries: z.ZodObject<{
|
|
513
|
-
client: z.
|
|
514
|
-
server: z.
|
|
543
|
+
client: z.ZodString;
|
|
544
|
+
server: z.ZodString;
|
|
515
545
|
}, z.core.$strict>;
|
|
516
546
|
sourceRoot: z.ZodString;
|
|
517
547
|
files: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -520,22 +550,12 @@ export declare const zeroCapsuleArtifactSchema: z.ZodObject<{
|
|
|
520
550
|
sha256: z.ZodString;
|
|
521
551
|
}, z.core.$strict>>>;
|
|
522
552
|
env: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
523
|
-
file: z.
|
|
553
|
+
file: z.ZodEnum<{
|
|
554
|
+
".env.server": ".env.server";
|
|
555
|
+
".env.lakebed.server": ".env.lakebed.server";
|
|
556
|
+
}>;
|
|
524
557
|
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
525
558
|
}, z.core.$strip>>>;
|
|
526
|
-
sourceConfig: z.ZodDefault<z.ZodObject<{
|
|
527
|
-
configFile: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
528
|
-
path: z.ZodLiteral<"zero.json">;
|
|
529
|
-
appName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
530
|
-
deployId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
531
|
-
name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
532
|
-
title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
533
|
-
}, z.core.$strip>>>;
|
|
534
|
-
deployFile: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
535
|
-
path: z.ZodLiteral<".zero/deploy.json">;
|
|
536
|
-
keys: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
537
|
-
}, z.core.$strip>>>;
|
|
538
|
-
}, z.core.$strip>>;
|
|
539
559
|
}, z.core.$strict>;
|
|
540
560
|
}, z.core.$strict>;
|
|
541
561
|
export type ZeroCapsuleArtifact = z.infer<typeof zeroCapsuleArtifactSchema>;
|
|
@@ -565,7 +585,7 @@ export declare const zeroRuntimeFinalizePayloadSchema: z.ZodObject<{
|
|
|
565
585
|
blockIncompatibleRollback: z.ZodLiteral<true>;
|
|
566
586
|
}, z.core.$strict>;
|
|
567
587
|
realtime: z.ZodObject<{
|
|
568
|
-
production: z.ZodLiteral<"
|
|
588
|
+
production: z.ZodLiteral<"central">;
|
|
569
589
|
local: z.ZodLiteral<"foreground-cli-ws">;
|
|
570
590
|
}, z.core.$strict>;
|
|
571
591
|
}, z.core.$strict>;
|
|
@@ -592,9 +612,14 @@ export declare const zeroRuntimeFinalizePayloadSchema: z.ZodObject<{
|
|
|
592
612
|
nullable: z.ZodDefault<z.ZodBoolean>;
|
|
593
613
|
default: z.ZodOptional<z.ZodUnknown>;
|
|
594
614
|
}, z.core.$strict>>>;
|
|
615
|
+
indexes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
616
|
+
name: z.ZodString;
|
|
617
|
+
fields: z.ZodArray<z.ZodString>;
|
|
618
|
+
}, z.core.$strict>>>;
|
|
595
619
|
}, z.core.$strict>>>;
|
|
596
620
|
queries: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
597
621
|
mutations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
622
|
+
actions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
598
623
|
endpoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
599
624
|
method: z.ZodEnum<{
|
|
600
625
|
POST: "POST";
|
|
@@ -631,8 +656,14 @@ export declare const zeroRuntimeFinalizePayloadSchema: z.ZodObject<{
|
|
|
631
656
|
}, z.core.$strict>, z.ZodObject<{
|
|
632
657
|
op: z.ZodLiteral<"add_index">;
|
|
633
658
|
table: z.ZodString;
|
|
659
|
+
name: z.ZodString;
|
|
634
660
|
columns: z.ZodArray<z.ZodString>;
|
|
635
661
|
unique: z.ZodDefault<z.ZodBoolean>;
|
|
662
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
663
|
+
op: z.ZodLiteral<"drop_index">;
|
|
664
|
+
table: z.ZodString;
|
|
665
|
+
name: z.ZodString;
|
|
666
|
+
explicit: z.ZodLiteral<"drop">;
|
|
636
667
|
}, z.core.$strict>, z.ZodObject<{
|
|
637
668
|
op: z.ZodLiteral<"drop_table">;
|
|
638
669
|
table: z.ZodString;
|
|
@@ -657,9 +688,9 @@ export declare const zeroRuntimeFinalizePayloadSchema: z.ZodObject<{
|
|
|
657
688
|
}, z.core.$strict>;
|
|
658
689
|
realtime: z.ZodObject<{
|
|
659
690
|
mode: z.ZodEnum<{
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
691
|
+
local: "local";
|
|
692
|
+
cast: "cast";
|
|
693
|
+
central: "central";
|
|
663
694
|
}>;
|
|
664
695
|
mutationEvents: z.ZodDefault<z.ZodBoolean>;
|
|
665
696
|
}, z.core.$strict>;
|
|
@@ -671,8 +702,8 @@ export declare const zeroRuntimeFinalizePayloadSchema: z.ZodObject<{
|
|
|
671
702
|
}>>>;
|
|
672
703
|
sourceManifest: z.ZodObject<{
|
|
673
704
|
entries: z.ZodObject<{
|
|
674
|
-
client: z.
|
|
675
|
-
server: z.
|
|
705
|
+
client: z.ZodString;
|
|
706
|
+
server: z.ZodString;
|
|
676
707
|
}, z.core.$strict>;
|
|
677
708
|
sourceRoot: z.ZodString;
|
|
678
709
|
files: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -681,22 +712,12 @@ export declare const zeroRuntimeFinalizePayloadSchema: z.ZodObject<{
|
|
|
681
712
|
sha256: z.ZodString;
|
|
682
713
|
}, z.core.$strict>>>;
|
|
683
714
|
env: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
684
|
-
file: z.
|
|
715
|
+
file: z.ZodEnum<{
|
|
716
|
+
".env.server": ".env.server";
|
|
717
|
+
".env.lakebed.server": ".env.lakebed.server";
|
|
718
|
+
}>;
|
|
685
719
|
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
686
720
|
}, z.core.$strip>>>;
|
|
687
|
-
sourceConfig: z.ZodDefault<z.ZodObject<{
|
|
688
|
-
configFile: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
689
|
-
path: z.ZodLiteral<"zero.json">;
|
|
690
|
-
appName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
691
|
-
deployId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
692
|
-
name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
693
|
-
title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
694
|
-
}, z.core.$strip>>>;
|
|
695
|
-
deployFile: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
696
|
-
path: z.ZodLiteral<".zero/deploy.json">;
|
|
697
|
-
keys: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
698
|
-
}, z.core.$strip>>>;
|
|
699
|
-
}, z.core.$strip>>;
|
|
700
721
|
}, z.core.$strict>;
|
|
701
722
|
}, z.core.$strict>;
|
|
702
723
|
bundles: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -778,8 +799,14 @@ export declare const zeroRuntimeFinalizePayloadSchema: z.ZodObject<{
|
|
|
778
799
|
}, z.core.$strict>, z.ZodObject<{
|
|
779
800
|
op: z.ZodLiteral<"add_index">;
|
|
780
801
|
table: z.ZodString;
|
|
802
|
+
name: z.ZodString;
|
|
781
803
|
columns: z.ZodArray<z.ZodString>;
|
|
782
804
|
unique: z.ZodDefault<z.ZodBoolean>;
|
|
805
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
806
|
+
op: z.ZodLiteral<"drop_index">;
|
|
807
|
+
table: z.ZodString;
|
|
808
|
+
name: z.ZodString;
|
|
809
|
+
explicit: z.ZodLiteral<"drop">;
|
|
783
810
|
}, z.core.$strict>, z.ZodObject<{
|
|
784
811
|
op: z.ZodLiteral<"drop_table">;
|
|
785
812
|
table: z.ZodString;
|
|
@@ -808,9 +835,9 @@ export declare const zeroRuntimeFinalizePayloadSchema: z.ZodObject<{
|
|
|
808
835
|
}, z.core.$strict>;
|
|
809
836
|
realtime: z.ZodObject<{
|
|
810
837
|
mode: z.ZodEnum<{
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
838
|
+
local: "local";
|
|
839
|
+
cast: "cast";
|
|
840
|
+
central: "central";
|
|
814
841
|
}>;
|
|
815
842
|
centralUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
816
843
|
replayUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -821,8 +848,8 @@ export declare const zeroRuntimeFinalizePayloadSchema: z.ZodObject<{
|
|
|
821
848
|
}, z.core.$strict>>;
|
|
822
849
|
}, z.core.$strict>;
|
|
823
850
|
auth: z.ZodDefault<z.ZodObject<{
|
|
824
|
-
provider: z.ZodDefault<z.ZodLiteral<"
|
|
825
|
-
signInPath: z.ZodDefault<z.ZodNullable<z.ZodLiteral<"/__spacefast/zero/auth/
|
|
851
|
+
provider: z.ZodDefault<z.ZodLiteral<"gravatar">>;
|
|
852
|
+
signInPath: z.ZodDefault<z.ZodNullable<z.ZodLiteral<"/__spacefast/zero/auth/gravatar/start">>>;
|
|
826
853
|
signInUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
827
854
|
signOutPath: z.ZodDefault<z.ZodNullable<z.ZodLiteral<"/__spacefast/zero/auth/sign-out">>>;
|
|
828
855
|
signOutUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -838,8 +865,8 @@ export declare const zeroRuntimeFinalizePayloadSchema: z.ZodObject<{
|
|
|
838
865
|
export type ZeroRuntimeFinalizePayload = z.infer<typeof zeroRuntimeFinalizePayloadSchema>;
|
|
839
866
|
export declare const zeroRuntimeConfigSchema: z.ZodObject<{
|
|
840
867
|
auth: z.ZodDefault<z.ZodObject<{
|
|
841
|
-
provider: z.ZodDefault<z.ZodLiteral<"
|
|
842
|
-
signInPath: z.ZodDefault<z.ZodNullable<z.ZodLiteral<"/__spacefast/zero/auth/
|
|
868
|
+
provider: z.ZodDefault<z.ZodLiteral<"gravatar">>;
|
|
869
|
+
signInPath: z.ZodDefault<z.ZodNullable<z.ZodLiteral<"/__spacefast/zero/auth/gravatar/start">>>;
|
|
843
870
|
signInUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
844
871
|
signOutPath: z.ZodDefault<z.ZodNullable<z.ZodLiteral<"/__spacefast/zero/auth/sign-out">>>;
|
|
845
872
|
signOutUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -847,9 +874,9 @@ export declare const zeroRuntimeConfigSchema: z.ZodObject<{
|
|
|
847
874
|
}, z.core.$strict>>;
|
|
848
875
|
realtime: z.ZodObject<{
|
|
849
876
|
mode: z.ZodEnum<{
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
877
|
+
local: "local";
|
|
878
|
+
cast: "cast";
|
|
879
|
+
central: "central";
|
|
853
880
|
}>;
|
|
854
881
|
centralUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
855
882
|
replayUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -886,9 +913,14 @@ export declare const zeroRuntimeConfigSchema: z.ZodObject<{
|
|
|
886
913
|
nullable: z.ZodDefault<z.ZodBoolean>;
|
|
887
914
|
default: z.ZodOptional<z.ZodUnknown>;
|
|
888
915
|
}, z.core.$strict>>>;
|
|
916
|
+
indexes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
917
|
+
name: z.ZodString;
|
|
918
|
+
fields: z.ZodArray<z.ZodString>;
|
|
919
|
+
}, z.core.$strict>>>;
|
|
889
920
|
}, z.core.$strict>>>;
|
|
890
921
|
queries: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
891
922
|
mutations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
923
|
+
actions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
892
924
|
endpoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
893
925
|
method: z.ZodEnum<{
|
|
894
926
|
POST: "POST";
|
|
@@ -925,8 +957,14 @@ export declare const zeroRuntimeConfigSchema: z.ZodObject<{
|
|
|
925
957
|
}, z.core.$strict>, z.ZodObject<{
|
|
926
958
|
op: z.ZodLiteral<"add_index">;
|
|
927
959
|
table: z.ZodString;
|
|
960
|
+
name: z.ZodString;
|
|
928
961
|
columns: z.ZodArray<z.ZodString>;
|
|
929
962
|
unique: z.ZodDefault<z.ZodBoolean>;
|
|
963
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
964
|
+
op: z.ZodLiteral<"drop_index">;
|
|
965
|
+
table: z.ZodString;
|
|
966
|
+
name: z.ZodString;
|
|
967
|
+
explicit: z.ZodLiteral<"drop">;
|
|
930
968
|
}, z.core.$strict>, z.ZodObject<{
|
|
931
969
|
op: z.ZodLiteral<"drop_table">;
|
|
932
970
|
table: z.ZodString;
|
|
@@ -951,9 +989,9 @@ export declare const zeroRuntimeConfigSchema: z.ZodObject<{
|
|
|
951
989
|
}, z.core.$strict>;
|
|
952
990
|
realtime: z.ZodObject<{
|
|
953
991
|
mode: z.ZodEnum<{
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
992
|
+
local: "local";
|
|
993
|
+
cast: "cast";
|
|
994
|
+
central: "central";
|
|
957
995
|
}>;
|
|
958
996
|
mutationEvents: z.ZodDefault<z.ZodBoolean>;
|
|
959
997
|
}, z.core.$strict>;
|
|
@@ -965,8 +1003,8 @@ export declare const zeroRuntimeConfigSchema: z.ZodObject<{
|
|
|
965
1003
|
}>>>;
|
|
966
1004
|
sourceManifest: z.ZodObject<{
|
|
967
1005
|
entries: z.ZodObject<{
|
|
968
|
-
client: z.
|
|
969
|
-
server: z.
|
|
1006
|
+
client: z.ZodString;
|
|
1007
|
+
server: z.ZodString;
|
|
970
1008
|
}, z.core.$strict>;
|
|
971
1009
|
sourceRoot: z.ZodString;
|
|
972
1010
|
files: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -975,31 +1013,15 @@ export declare const zeroRuntimeConfigSchema: z.ZodObject<{
|
|
|
975
1013
|
sha256: z.ZodString;
|
|
976
1014
|
}, z.core.$strict>>>;
|
|
977
1015
|
env: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
978
|
-
file: z.
|
|
1016
|
+
file: z.ZodEnum<{
|
|
1017
|
+
".env.server": ".env.server";
|
|
1018
|
+
".env.lakebed.server": ".env.lakebed.server";
|
|
1019
|
+
}>;
|
|
979
1020
|
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
980
1021
|
}, 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
1022
|
}, z.core.$strict>;
|
|
995
1023
|
}, z.core.$strict>;
|
|
996
1024
|
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
1025
|
migrations: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1004
1026
|
format: z.ZodLiteral<"stattic.zero.migrations.v1">;
|
|
1005
1027
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
@@ -1028,8 +1050,14 @@ export declare const zeroRuntimeConfigSchema: z.ZodObject<{
|
|
|
1028
1050
|
}, z.core.$strict>, z.ZodObject<{
|
|
1029
1051
|
op: z.ZodLiteral<"add_index">;
|
|
1030
1052
|
table: z.ZodString;
|
|
1053
|
+
name: z.ZodString;
|
|
1031
1054
|
columns: z.ZodArray<z.ZodString>;
|
|
1032
1055
|
unique: z.ZodDefault<z.ZodBoolean>;
|
|
1056
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1057
|
+
op: z.ZodLiteral<"drop_index">;
|
|
1058
|
+
table: z.ZodString;
|
|
1059
|
+
name: z.ZodString;
|
|
1060
|
+
explicit: z.ZodLiteral<"drop">;
|
|
1033
1061
|
}, z.core.$strict>, z.ZodObject<{
|
|
1034
1062
|
op: z.ZodLiteral<"drop_table">;
|
|
1035
1063
|
table: z.ZodString;
|
|
@@ -1076,11 +1104,21 @@ export declare const zeroRuntimeConfigSchema: z.ZodObject<{
|
|
|
1076
1104
|
blockIncompatibleRollback: z.ZodLiteral<true>;
|
|
1077
1105
|
}, z.core.$strict>;
|
|
1078
1106
|
realtime: z.ZodObject<{
|
|
1079
|
-
production: z.ZodLiteral<"
|
|
1107
|
+
production: z.ZodLiteral<"central">;
|
|
1080
1108
|
local: z.ZodLiteral<"foreground-cli-ws">;
|
|
1081
1109
|
}, z.core.$strict>;
|
|
1082
1110
|
}, z.core.$strict>;
|
|
1111
|
+
inspect: z.ZodDefault<z.ZodObject<{
|
|
1112
|
+
policy: z.ZodDefault<z.ZodEnum<{
|
|
1113
|
+
public: "public";
|
|
1114
|
+
private: "private";
|
|
1115
|
+
}>>;
|
|
1116
|
+
}, z.core.$strict>>;
|
|
1083
1117
|
variableValues: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1118
|
+
databaseUrlSource: z.ZodDefault<z.ZodEnum<{
|
|
1119
|
+
provider: "provider";
|
|
1120
|
+
application: "application";
|
|
1121
|
+
}>>;
|
|
1084
1122
|
}, z.core.$strict>;
|
|
1085
1123
|
export type ZeroRuntimeConfig = z.infer<typeof zeroRuntimeConfigSchema>;
|
|
1086
1124
|
export declare const zeroDeployMetadataSchema: z.ZodObject<{
|
|
@@ -1111,7 +1149,7 @@ export declare const zeroDeployMetadataSchema: z.ZodObject<{
|
|
|
1111
1149
|
blockIncompatibleRollback: z.ZodLiteral<true>;
|
|
1112
1150
|
}, z.core.$strict>;
|
|
1113
1151
|
realtime: z.ZodObject<{
|
|
1114
|
-
production: z.ZodLiteral<"
|
|
1152
|
+
production: z.ZodLiteral<"central">;
|
|
1115
1153
|
local: z.ZodLiteral<"foreground-cli-ws">;
|
|
1116
1154
|
}, z.core.$strict>;
|
|
1117
1155
|
}, z.core.$strict>;
|
|
@@ -1138,9 +1176,14 @@ export declare const zeroDeployMetadataSchema: z.ZodObject<{
|
|
|
1138
1176
|
nullable: z.ZodDefault<z.ZodBoolean>;
|
|
1139
1177
|
default: z.ZodOptional<z.ZodUnknown>;
|
|
1140
1178
|
}, z.core.$strict>>>;
|
|
1179
|
+
indexes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1180
|
+
name: z.ZodString;
|
|
1181
|
+
fields: z.ZodArray<z.ZodString>;
|
|
1182
|
+
}, z.core.$strict>>>;
|
|
1141
1183
|
}, z.core.$strict>>>;
|
|
1142
1184
|
queries: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1143
1185
|
mutations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1186
|
+
actions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1144
1187
|
endpoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1145
1188
|
method: z.ZodEnum<{
|
|
1146
1189
|
POST: "POST";
|
|
@@ -1177,8 +1220,14 @@ export declare const zeroDeployMetadataSchema: z.ZodObject<{
|
|
|
1177
1220
|
}, z.core.$strict>, z.ZodObject<{
|
|
1178
1221
|
op: z.ZodLiteral<"add_index">;
|
|
1179
1222
|
table: z.ZodString;
|
|
1223
|
+
name: z.ZodString;
|
|
1180
1224
|
columns: z.ZodArray<z.ZodString>;
|
|
1181
1225
|
unique: z.ZodDefault<z.ZodBoolean>;
|
|
1226
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1227
|
+
op: z.ZodLiteral<"drop_index">;
|
|
1228
|
+
table: z.ZodString;
|
|
1229
|
+
name: z.ZodString;
|
|
1230
|
+
explicit: z.ZodLiteral<"drop">;
|
|
1182
1231
|
}, z.core.$strict>, z.ZodObject<{
|
|
1183
1232
|
op: z.ZodLiteral<"drop_table">;
|
|
1184
1233
|
table: z.ZodString;
|
|
@@ -1203,9 +1252,9 @@ export declare const zeroDeployMetadataSchema: z.ZodObject<{
|
|
|
1203
1252
|
}, z.core.$strict>;
|
|
1204
1253
|
realtime: z.ZodObject<{
|
|
1205
1254
|
mode: z.ZodEnum<{
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1255
|
+
local: "local";
|
|
1256
|
+
cast: "cast";
|
|
1257
|
+
central: "central";
|
|
1209
1258
|
}>;
|
|
1210
1259
|
mutationEvents: z.ZodDefault<z.ZodBoolean>;
|
|
1211
1260
|
}, z.core.$strict>;
|
|
@@ -1217,8 +1266,8 @@ export declare const zeroDeployMetadataSchema: z.ZodObject<{
|
|
|
1217
1266
|
}>>>;
|
|
1218
1267
|
sourceManifest: z.ZodObject<{
|
|
1219
1268
|
entries: z.ZodObject<{
|
|
1220
|
-
client: z.
|
|
1221
|
-
server: z.
|
|
1269
|
+
client: z.ZodString;
|
|
1270
|
+
server: z.ZodString;
|
|
1222
1271
|
}, z.core.$strict>;
|
|
1223
1272
|
sourceRoot: z.ZodString;
|
|
1224
1273
|
files: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -1227,22 +1276,12 @@ export declare const zeroDeployMetadataSchema: z.ZodObject<{
|
|
|
1227
1276
|
sha256: z.ZodString;
|
|
1228
1277
|
}, z.core.$strict>>>;
|
|
1229
1278
|
env: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1230
|
-
file: z.
|
|
1279
|
+
file: z.ZodEnum<{
|
|
1280
|
+
".env.server": ".env.server";
|
|
1281
|
+
".env.lakebed.server": ".env.lakebed.server";
|
|
1282
|
+
}>;
|
|
1231
1283
|
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1232
1284
|
}, z.core.$strip>>>;
|
|
1233
|
-
sourceConfig: z.ZodDefault<z.ZodObject<{
|
|
1234
|
-
configFile: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1235
|
-
path: z.ZodLiteral<"zero.json">;
|
|
1236
|
-
appName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1237
|
-
deployId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1238
|
-
name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1239
|
-
title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1240
|
-
}, z.core.$strip>>>;
|
|
1241
|
-
deployFile: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1242
|
-
path: z.ZodLiteral<".zero/deploy.json">;
|
|
1243
|
-
keys: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1244
|
-
}, z.core.$strip>>>;
|
|
1245
|
-
}, z.core.$strip>>;
|
|
1246
1285
|
}, z.core.$strict>;
|
|
1247
1286
|
}, z.core.$strict>;
|
|
1248
1287
|
bundles: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -1324,8 +1363,14 @@ export declare const zeroDeployMetadataSchema: z.ZodObject<{
|
|
|
1324
1363
|
}, z.core.$strict>, z.ZodObject<{
|
|
1325
1364
|
op: z.ZodLiteral<"add_index">;
|
|
1326
1365
|
table: z.ZodString;
|
|
1366
|
+
name: z.ZodString;
|
|
1327
1367
|
columns: z.ZodArray<z.ZodString>;
|
|
1328
1368
|
unique: z.ZodDefault<z.ZodBoolean>;
|
|
1369
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1370
|
+
op: z.ZodLiteral<"drop_index">;
|
|
1371
|
+
table: z.ZodString;
|
|
1372
|
+
name: z.ZodString;
|
|
1373
|
+
explicit: z.ZodLiteral<"drop">;
|
|
1329
1374
|
}, z.core.$strict>, z.ZodObject<{
|
|
1330
1375
|
op: z.ZodLiteral<"drop_table">;
|
|
1331
1376
|
table: z.ZodString;
|
|
@@ -1354,9 +1399,9 @@ export declare const zeroDeployMetadataSchema: z.ZodObject<{
|
|
|
1354
1399
|
}, z.core.$strict>;
|
|
1355
1400
|
realtime: z.ZodObject<{
|
|
1356
1401
|
mode: z.ZodEnum<{
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1402
|
+
local: "local";
|
|
1403
|
+
cast: "cast";
|
|
1404
|
+
central: "central";
|
|
1360
1405
|
}>;
|
|
1361
1406
|
centralUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1362
1407
|
replayUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -1367,8 +1412,8 @@ export declare const zeroDeployMetadataSchema: z.ZodObject<{
|
|
|
1367
1412
|
}, z.core.$strict>>;
|
|
1368
1413
|
}, z.core.$strict>;
|
|
1369
1414
|
auth: z.ZodDefault<z.ZodObject<{
|
|
1370
|
-
provider: z.ZodDefault<z.ZodLiteral<"
|
|
1371
|
-
signInPath: z.ZodDefault<z.ZodNullable<z.ZodLiteral<"/__spacefast/zero/auth/
|
|
1415
|
+
provider: z.ZodDefault<z.ZodLiteral<"gravatar">>;
|
|
1416
|
+
signInPath: z.ZodDefault<z.ZodNullable<z.ZodLiteral<"/__spacefast/zero/auth/gravatar/start">>>;
|
|
1372
1417
|
signInUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1373
1418
|
signOutPath: z.ZodDefault<z.ZodNullable<z.ZodLiteral<"/__spacefast/zero/auth/sign-out">>>;
|
|
1374
1419
|
signOutUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -1390,6 +1435,13 @@ export type ZeroDeployMetadata = z.infer<typeof zeroDeployMetadataSchema>;
|
|
|
1390
1435
|
* response already names as live, and repeating it would invite the two to
|
|
1391
1436
|
* disagree. `artifactId` stays because it identifies the built capsule rather
|
|
1392
1437
|
* than the publish that carries it.
|
|
1438
|
+
*
|
|
1439
|
+
* Every field is derived from the version's own finalize metadata, which is
|
|
1440
|
+
* what makes this safe to answer for a space whose runtime is asleep,
|
|
1441
|
+
* mid-move, or failing: nothing here costs a call to the space's origin. It is
|
|
1442
|
+
* also why there are no counts of things listed here — a caller that wants
|
|
1443
|
+
* `tables.length` can take it — and why the database is not a field: a capsule
|
|
1444
|
+
* always owns one, so `runtimeKind: "zero"` already said so.
|
|
1393
1445
|
*/
|
|
1394
1446
|
export declare const zeroAppSchema: z.ZodObject<{
|
|
1395
1447
|
runtimeKind: z.ZodLiteral<"zero">;
|
|
@@ -1426,13 +1478,14 @@ export declare const zeroAppSchema: z.ZodObject<{
|
|
|
1426
1478
|
blockIncompatibleRollback: z.ZodLiteral<true>;
|
|
1427
1479
|
}, z.core.$strict>;
|
|
1428
1480
|
realtime: z.ZodObject<{
|
|
1429
|
-
production: z.ZodLiteral<"
|
|
1481
|
+
production: z.ZodLiteral<"central">;
|
|
1430
1482
|
local: z.ZodLiteral<"foreground-cli-ws">;
|
|
1431
1483
|
}, z.core.$strict>;
|
|
1432
1484
|
}, z.core.$strict>;
|
|
1433
1485
|
tables: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1434
1486
|
queries: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1435
1487
|
mutations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1488
|
+
actions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1436
1489
|
endpoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1437
1490
|
method: z.ZodEnum<{
|
|
1438
1491
|
POST: "POST";
|
|
@@ -1446,16 +1499,17 @@ export declare const zeroAppSchema: z.ZodObject<{
|
|
|
1446
1499
|
path: z.ZodString;
|
|
1447
1500
|
}, z.core.$strict>>>;
|
|
1448
1501
|
sockets: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1502
|
+
migrationCount: z.ZodNumber;
|
|
1503
|
+
schemaHash: z.ZodNullable<z.ZodString>;
|
|
1449
1504
|
variables: z.ZodObject<{
|
|
1450
1505
|
source: z.ZodLiteral<"stattic-variables">;
|
|
1451
1506
|
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1452
1507
|
}, z.core.$strict>;
|
|
1453
1508
|
realtime: z.ZodObject<{
|
|
1454
1509
|
mode: z.ZodEnum<{
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
"local-websocket": "local-websocket";
|
|
1510
|
+
local: "local";
|
|
1511
|
+
cast: "cast";
|
|
1512
|
+
central: "central";
|
|
1459
1513
|
}>;
|
|
1460
1514
|
centralUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1461
1515
|
path: z.ZodOptional<z.ZodString>;
|
|
@@ -1464,180 +1518,13 @@ export declare const zeroAppSchema: z.ZodObject<{
|
|
|
1464
1518
|
runPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1465
1519
|
runUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1466
1520
|
resourceKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1521
|
+
ticketPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1467
1522
|
socketPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1468
1523
|
spaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1469
1524
|
versionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1470
1525
|
}, z.core.$strict>;
|
|
1471
1526
|
}, z.core.$strict>;
|
|
1472
1527
|
export type ZeroApp = z.infer<typeof zeroAppSchema>;
|
|
1473
|
-
export declare const zeroDbInspectResponseSchema: z.ZodObject<{
|
|
1474
|
-
versionId: z.ZodNullable<z.ZodString>;
|
|
1475
|
-
artifactId: z.ZodNullable<z.ZodString>;
|
|
1476
|
-
backend: z.ZodNullable<z.ZodLiteral<"wpcloud-mysql">>;
|
|
1477
|
-
migrationMode: z.ZodNullable<z.ZodEnum<{
|
|
1478
|
-
safe: "safe";
|
|
1479
|
-
drop: "drop";
|
|
1480
|
-
rename: "rename";
|
|
1481
|
-
}>>;
|
|
1482
|
-
schemaHash: z.ZodNullable<z.ZodString>;
|
|
1483
|
-
tables: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1484
|
-
name: z.ZodString;
|
|
1485
|
-
columns: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1486
|
-
name: z.ZodString;
|
|
1487
|
-
type: z.ZodEnum<{
|
|
1488
|
-
string: "string";
|
|
1489
|
-
number: "number";
|
|
1490
|
-
boolean: "boolean";
|
|
1491
|
-
json: "json";
|
|
1492
|
-
}>;
|
|
1493
|
-
nullable: z.ZodDefault<z.ZodBoolean>;
|
|
1494
|
-
default: z.ZodOptional<z.ZodUnknown>;
|
|
1495
|
-
}, z.core.$strict>>>;
|
|
1496
|
-
}, z.core.$strict>>>;
|
|
1497
|
-
migrations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1498
|
-
op: z.ZodLiteral<"create_table">;
|
|
1499
|
-
table: z.ZodString;
|
|
1500
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1501
|
-
op: z.ZodLiteral<"add_column">;
|
|
1502
|
-
table: z.ZodString;
|
|
1503
|
-
column: z.ZodObject<{
|
|
1504
|
-
name: z.ZodString;
|
|
1505
|
-
type: z.ZodEnum<{
|
|
1506
|
-
string: "string";
|
|
1507
|
-
number: "number";
|
|
1508
|
-
boolean: "boolean";
|
|
1509
|
-
json: "json";
|
|
1510
|
-
}>;
|
|
1511
|
-
nullable: z.ZodDefault<z.ZodBoolean>;
|
|
1512
|
-
default: z.ZodOptional<z.ZodUnknown>;
|
|
1513
|
-
}, z.core.$strict>;
|
|
1514
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1515
|
-
op: z.ZodLiteral<"add_index">;
|
|
1516
|
-
table: z.ZodString;
|
|
1517
|
-
columns: z.ZodArray<z.ZodString>;
|
|
1518
|
-
unique: z.ZodDefault<z.ZodBoolean>;
|
|
1519
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1520
|
-
op: z.ZodLiteral<"drop_table">;
|
|
1521
|
-
table: z.ZodString;
|
|
1522
|
-
explicit: z.ZodLiteral<"drop">;
|
|
1523
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1524
|
-
op: z.ZodLiteral<"drop_column">;
|
|
1525
|
-
table: z.ZodString;
|
|
1526
|
-
column: z.ZodString;
|
|
1527
|
-
explicit: z.ZodLiteral<"drop">;
|
|
1528
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1529
|
-
op: z.ZodLiteral<"rename_table">;
|
|
1530
|
-
from: z.ZodString;
|
|
1531
|
-
to: z.ZodString;
|
|
1532
|
-
explicit: z.ZodLiteral<"rename">;
|
|
1533
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1534
|
-
op: z.ZodLiteral<"rename_column">;
|
|
1535
|
-
table: z.ZodString;
|
|
1536
|
-
from: z.ZodString;
|
|
1537
|
-
to: z.ZodString;
|
|
1538
|
-
explicit: z.ZodLiteral<"rename">;
|
|
1539
|
-
}, z.core.$strict>], "op">>>;
|
|
1540
|
-
}, z.core.$strict>;
|
|
1541
|
-
export type ZeroDbInspectResponse = z.infer<typeof zeroDbInspectResponseSchema>;
|
|
1542
|
-
export declare const zeroDbInspectPublicResponseSchema: z.ZodObject<{
|
|
1543
|
-
data: z.ZodObject<{
|
|
1544
|
-
versionId: z.ZodNullable<z.ZodString>;
|
|
1545
|
-
artifactId: z.ZodNullable<z.ZodString>;
|
|
1546
|
-
backend: z.ZodNullable<z.ZodLiteral<"wpcloud-mysql">>;
|
|
1547
|
-
migrationMode: z.ZodNullable<z.ZodEnum<{
|
|
1548
|
-
safe: "safe";
|
|
1549
|
-
drop: "drop";
|
|
1550
|
-
rename: "rename";
|
|
1551
|
-
}>>;
|
|
1552
|
-
schemaHash: z.ZodNullable<z.ZodString>;
|
|
1553
|
-
tables: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1554
|
-
name: z.ZodString;
|
|
1555
|
-
columns: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1556
|
-
name: z.ZodString;
|
|
1557
|
-
type: z.ZodEnum<{
|
|
1558
|
-
string: "string";
|
|
1559
|
-
number: "number";
|
|
1560
|
-
boolean: "boolean";
|
|
1561
|
-
json: "json";
|
|
1562
|
-
}>;
|
|
1563
|
-
nullable: z.ZodDefault<z.ZodBoolean>;
|
|
1564
|
-
default: z.ZodOptional<z.ZodUnknown>;
|
|
1565
|
-
}, z.core.$strict>>>;
|
|
1566
|
-
}, z.core.$strict>>>;
|
|
1567
|
-
migrations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1568
|
-
op: z.ZodLiteral<"create_table">;
|
|
1569
|
-
table: z.ZodString;
|
|
1570
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1571
|
-
op: z.ZodLiteral<"add_column">;
|
|
1572
|
-
table: z.ZodString;
|
|
1573
|
-
column: z.ZodObject<{
|
|
1574
|
-
name: z.ZodString;
|
|
1575
|
-
type: z.ZodEnum<{
|
|
1576
|
-
string: "string";
|
|
1577
|
-
number: "number";
|
|
1578
|
-
boolean: "boolean";
|
|
1579
|
-
json: "json";
|
|
1580
|
-
}>;
|
|
1581
|
-
nullable: z.ZodDefault<z.ZodBoolean>;
|
|
1582
|
-
default: z.ZodOptional<z.ZodUnknown>;
|
|
1583
|
-
}, z.core.$strict>;
|
|
1584
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1585
|
-
op: z.ZodLiteral<"add_index">;
|
|
1586
|
-
table: z.ZodString;
|
|
1587
|
-
columns: z.ZodArray<z.ZodString>;
|
|
1588
|
-
unique: z.ZodDefault<z.ZodBoolean>;
|
|
1589
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1590
|
-
op: z.ZodLiteral<"drop_table">;
|
|
1591
|
-
table: z.ZodString;
|
|
1592
|
-
explicit: z.ZodLiteral<"drop">;
|
|
1593
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1594
|
-
op: z.ZodLiteral<"drop_column">;
|
|
1595
|
-
table: z.ZodString;
|
|
1596
|
-
column: z.ZodString;
|
|
1597
|
-
explicit: z.ZodLiteral<"drop">;
|
|
1598
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1599
|
-
op: z.ZodLiteral<"rename_table">;
|
|
1600
|
-
from: z.ZodString;
|
|
1601
|
-
to: z.ZodString;
|
|
1602
|
-
explicit: z.ZodLiteral<"rename">;
|
|
1603
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1604
|
-
op: z.ZodLiteral<"rename_column">;
|
|
1605
|
-
table: z.ZodString;
|
|
1606
|
-
from: z.ZodString;
|
|
1607
|
-
to: z.ZodString;
|
|
1608
|
-
explicit: z.ZodLiteral<"rename">;
|
|
1609
|
-
}, z.core.$strict>], "op">>>;
|
|
1610
|
-
}, z.core.$strict>;
|
|
1611
|
-
}, z.core.$strip>;
|
|
1612
|
-
export declare const zeroDbDumpQuerySchema: z.ZodObject<{
|
|
1613
|
-
table: z.ZodOptional<z.ZodString>;
|
|
1614
|
-
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1615
|
-
}, z.core.$strict>;
|
|
1616
|
-
export declare const zeroDbDumpTableSchema: z.ZodObject<{
|
|
1617
|
-
name: z.ZodString;
|
|
1618
|
-
rows: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1619
|
-
}, z.core.$strict>;
|
|
1620
|
-
export declare const zeroDbDumpResponseSchema: z.ZodObject<{
|
|
1621
|
-
versionId: z.ZodNullable<z.ZodString>;
|
|
1622
|
-
artifactId: z.ZodNullable<z.ZodString>;
|
|
1623
|
-
schemaHash: z.ZodNullable<z.ZodString>;
|
|
1624
|
-
tables: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1625
|
-
name: z.ZodString;
|
|
1626
|
-
rows: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1627
|
-
}, z.core.$strict>>>;
|
|
1628
|
-
}, z.core.$strict>;
|
|
1629
|
-
export type ZeroDbDumpResponse = z.infer<typeof zeroDbDumpResponseSchema>;
|
|
1630
|
-
export declare const zeroDbDumpPublicResponseSchema: z.ZodObject<{
|
|
1631
|
-
data: z.ZodObject<{
|
|
1632
|
-
versionId: z.ZodNullable<z.ZodString>;
|
|
1633
|
-
artifactId: z.ZodNullable<z.ZodString>;
|
|
1634
|
-
schemaHash: z.ZodNullable<z.ZodString>;
|
|
1635
|
-
tables: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1636
|
-
name: z.ZodString;
|
|
1637
|
-
rows: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1638
|
-
}, z.core.$strict>>>;
|
|
1639
|
-
}, z.core.$strict>;
|
|
1640
|
-
}, z.core.$strip>;
|
|
1641
1528
|
export declare const zeroLogListQuerySchema: z.ZodObject<{
|
|
1642
1529
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1643
1530
|
cursor: z.ZodOptional<z.ZodString>;
|
|
@@ -1687,28 +1574,6 @@ export declare const zeroRealtimeEventIntakeResponseSchema: z.ZodObject<{
|
|
|
1687
1574
|
delivered: z.ZodDefault<z.ZodNumber>;
|
|
1688
1575
|
duplicate: z.ZodDefault<z.ZodBoolean>;
|
|
1689
1576
|
}, z.core.$strict>;
|
|
1690
|
-
export declare const zeroRealtimeEventListQuerySchema: z.ZodObject<{
|
|
1691
|
-
afterEventId: z.ZodOptional<z.ZodString>;
|
|
1692
|
-
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1693
|
-
}, z.core.$strict>;
|
|
1694
|
-
export declare const zeroRealtimeEventListResponseSchema: z.ZodObject<{
|
|
1695
|
-
data: z.ZodArray<z.ZodObject<{
|
|
1696
|
-
eventId: z.ZodString;
|
|
1697
|
-
spaceId: z.ZodString;
|
|
1698
|
-
versionId: z.ZodNullable<z.ZodString>;
|
|
1699
|
-
runtimeKind: z.ZodLiteral<"zero">;
|
|
1700
|
-
requestId: z.ZodString;
|
|
1701
|
-
mutationName: z.ZodString;
|
|
1702
|
-
changedTables: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1703
|
-
changedQueries: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1704
|
-
schemaHash: z.ZodString;
|
|
1705
|
-
committedAt: z.ZodString;
|
|
1706
|
-
}, z.core.$strict>>;
|
|
1707
|
-
pagination: z.ZodObject<{
|
|
1708
|
-
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1709
|
-
}, z.core.$strict>;
|
|
1710
|
-
}, z.core.$strict>;
|
|
1711
|
-
export type ZeroRealtimeEventListResponse = z.infer<typeof zeroRealtimeEventListResponseSchema>;
|
|
1712
1577
|
export declare const zeroLocalDevPlanSchema: z.ZodObject<{
|
|
1713
1578
|
runtimeKind: z.ZodLiteral<"zero">;
|
|
1714
1579
|
root: z.ZodString;
|
|
@@ -1747,10 +1612,11 @@ export declare function createZeroCapsuleArtifact(input: {
|
|
|
1747
1612
|
appName: string;
|
|
1748
1613
|
clientBundlePath?: string;
|
|
1749
1614
|
serverBundlePath?: string;
|
|
1750
|
-
realtimeMode?:
|
|
1615
|
+
realtimeMode?: RuntimeRealtimeMode;
|
|
1751
1616
|
schema?: z.input<typeof zeroDatabaseSchema>;
|
|
1752
1617
|
queries?: string[];
|
|
1753
1618
|
mutations?: string[];
|
|
1619
|
+
actions?: string[];
|
|
1754
1620
|
endpoints?: z.input<typeof zeroEndpointSchema>[];
|
|
1755
1621
|
sockets?: string[];
|
|
1756
1622
|
sourceManifest?: z.input<typeof zeroSourceManifestSchema>;
|