@spacefast/common 0.0.12 → 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 +486 -1196
- package/dist/contracts/access.js +323 -1054
- package/dist/contracts/activity.d.ts +1 -1
- package/dist/contracts/activity.js +11 -15
- package/dist/contracts/api-keys.d.ts +16 -0
- package/dist/contracts/api-keys.js +11 -9
- package/dist/contracts/archives.d.ts +1 -2
- package/dist/contracts/archives.js +15 -17
- 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 +143 -99
- package/dist/contracts/comments.js +194 -79
- 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/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/device-auth.d.ts +13 -9
- 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 +4 -14
- package/dist/contracts/enums.js +3 -10
- package/dist/contracts/error-code-meta.d.ts +122 -56
- package/dist/contracts/error-code-meta.js +43 -19
- package/dist/contracts/error-codes.d.ts +7 -4
- package/dist/contracts/error-codes.js +48 -24
- package/dist/contracts/events.d.ts +22 -15
- package/dist/contracts/events.js +33 -5
- package/dist/contracts/execution.d.ts +238 -0
- package/dist/contracts/execution.js +309 -0
- package/dist/contracts/feature-lifecycle.d.ts +39 -188
- package/dist/contracts/feature-lifecycle.js +52 -196
- package/dist/contracts/features.d.ts +13 -115
- package/dist/contracts/features.js +5 -35
- package/dist/contracts/functions.d.ts +597 -0
- package/dist/contracts/functions.js +475 -0
- package/dist/contracts/grants.d.ts +1175 -0
- package/dist/contracts/grants.js +783 -0
- package/dist/contracts/ids.d.ts +7 -5
- package/dist/contracts/ids.js +7 -7
- 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 +22 -5
- package/dist/contracts/oauth-resources.js +23 -2
- package/dist/contracts/operations.d.ts +0 -48
- package/dist/contracts/operations.js +0 -19
- package/dist/contracts/pages.d.ts +10 -14
- package/dist/contracts/pages.js +17 -21
- package/dist/contracts/plan-policy.d.ts +1 -8
- package/dist/contracts/plan-policy.js +1 -4
- package/dist/contracts/platform.d.ts +78 -30
- package/dist/contracts/platform.js +69 -20
- package/dist/contracts/problem-document.d.ts +14 -0
- package/dist/contracts/problem-document.js +35 -0
- package/dist/contracts/push-new.d.ts +41 -2
- package/dist/contracts/push-new.js +4 -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 +16 -71
- package/dist/contracts/resources.js +13 -16
- package/dist/contracts/runtime-api.d.ts +666 -303
- package/dist/contracts/runtime-api.js +272 -113
- package/dist/contracts/runtime-app.d.ts +168 -0
- package/dist/contracts/runtime-app.js +42 -0
- 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 +54 -1
- package/dist/contracts/sf-config-v1.js +2 -2
- package/dist/contracts/sites.d.ts +6 -0
- package/dist/contracts/sites.js +30 -11
- package/dist/contracts/space-config.d.ts +91 -121
- package/dist/contracts/space-config.js +464 -42
- package/dist/contracts/spaces.d.ts +300 -171
- package/dist/contracts/spaces.js +128 -98
- package/dist/contracts/superadmin-emails.d.ts +2 -2
- package/dist/contracts/superadmin-spaces.d.ts +26 -130
- package/dist/contracts/superadmin-spaces.js +22 -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 +6 -6
- package/dist/contracts/tags.js +1 -1
- package/dist/contracts/teams.d.ts +9 -9
- package/dist/contracts/teams.js +25 -16
- package/dist/contracts/theme-json.js +1 -1
- package/dist/contracts/transfers.d.ts +0 -1
- package/dist/contracts/transfers.js +4 -4
- package/dist/contracts/variables.js +3 -3
- package/dist/contracts/zero.d.ts +384 -596
- package/dist/contracts/zero.js +167 -299
- package/dist/dashboard-paths/index.d.ts +18 -3
- package/dist/dashboard-paths/index.js +19 -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 +227 -55
- package/dist/docs/agent-setup.d.ts +14 -11
- package/dist/docs/agent-setup.js +289 -61
- package/dist/docs/agent-solutions.d.ts +6 -6
- package/dist/docs/agent-solutions.js +24 -22
- package/dist/docs/catalog.d.ts +53 -98
- package/dist/docs/catalog.js +90 -117
- package/dist/docs/error-docs.js +304 -236
- 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/auth-redirect.d.ts +1 -3
- package/dist/utils/auth-redirect.js +1 -21
- package/dist/utils/browser-credential.d.ts +19 -0
- package/dist/utils/browser-credential.js +62 -0
- package/dist/utils/build-settings.d.ts +2 -0
- package/dist/utils/build-settings.js +61 -9
- 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/credential-policy.d.ts +1 -1
- package/dist/utils/credential-policy.js +4 -0
- package/dist/utils/domain-diagnostics.d.ts +5 -5
- package/dist/utils/domain-diagnostics.js +21 -10
- package/dist/utils/egress-policy.fixtures.json +1 -1
- package/dist/utils/grants.d.ts +53 -0
- package/dist/utils/grants.js +160 -0
- package/dist/utils/local-space-state.d.ts +78 -4
- package/dist/utils/local-space-state.js +384 -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 -5
- package/dist/utils/pages.js +64 -33
- package/dist/utils/publish-form-data.d.ts +22 -0
- package/dist/utils/publish-form-data.js +26 -0
- package/dist/utils/publish-policy.d.ts +34 -4
- package/dist/utils/publish-policy.js +149 -62
- package/dist/utils/query-keys.d.ts +8 -10
- package/dist/utils/query-keys.js +14 -10
- 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 +17 -4
- package/dist/utils/space-config.js +151 -8
- package/dist/utils/static-runtime-policy.d.ts +5 -0
- package/dist/utils/static-runtime-policy.js +54 -10
- 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 +15 -1
- package/dist/utils/upload-session.js +68 -2
- package/dist/utils/version-file-browser.d.ts +13 -0
- package/dist/utils/version-file-browser.js +59 -0
- package/package.json +20 -1
- package/dist/contracts/mounts.d.ts +0 -142
- package/dist/contracts/mounts.js +0 -56
- package/dist/utils/access-grant.d.ts +0 -14
- package/dist/utils/access-grant.js +0 -88
- package/dist/utils/access-match.d.ts +0 -46
- package/dist/utils/access-match.fixtures.json +0 -513
- package/dist/utils/access-match.js +0 -312
- package/dist/utils/access-verdict.fixtures.json +0 -421
- package/dist/utils/asset-fingerprint.d.ts +0 -53
- package/dist/utils/asset-fingerprint.js +0 -574
- package/dist/utils/sf-config-v1.d.ts +0 -2
- package/dist/utils/sf-config-v1.fixtures.json +0 -9
- package/dist/utils/sf-config-v1.js +0 -551
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* The one answer to "what is running on this space".
|
|
4
|
+
*
|
|
5
|
+
* A space is exactly one runtime kind — `versionRuntimeKind()` returns a single
|
|
6
|
+
* value and a publish carrying both declarations is refused at finalize — so
|
|
7
|
+
* this is a discriminated union rather than a bag of optional per-product
|
|
8
|
+
* fields. Anything that is not an execution tier has no member here and reads
|
|
9
|
+
* as `null`, which is the overwhelmingly common answer: a static space is not a
|
|
10
|
+
* degenerate app, it is the absence of one.
|
|
11
|
+
*
|
|
12
|
+
* It lives in its own module because it is the only place that needs to know
|
|
13
|
+
* about both products at once. `spaces.ts` imports it to describe runtime
|
|
14
|
+
* status; neither `zero.ts` nor `functions.ts` has to learn about the other.
|
|
15
|
+
*/
|
|
16
|
+
export declare const runtimeAppSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
17
|
+
runtimeKind: z.ZodLiteral<"zero">;
|
|
18
|
+
artifactId: z.ZodString;
|
|
19
|
+
appName: z.ZodString;
|
|
20
|
+
serverRuntime: z.ZodLiteral<"quickjs-rust">;
|
|
21
|
+
inspect: z.ZodObject<{
|
|
22
|
+
policy: z.ZodEnum<{
|
|
23
|
+
public: "public";
|
|
24
|
+
private: "private";
|
|
25
|
+
}>;
|
|
26
|
+
}, z.core.$strict>;
|
|
27
|
+
install: z.ZodObject<{
|
|
28
|
+
runtimeKind: z.ZodLiteral<"zero">;
|
|
29
|
+
engine: z.ZodLiteral<"quickjs-rust">;
|
|
30
|
+
storageRoot: z.ZodLiteral<"__spacefast/zero">;
|
|
31
|
+
artifactPath: z.ZodLiteral<"__spacefast/zero/artifact.json">;
|
|
32
|
+
configPath: z.ZodLiteral<"__spacefast/zero/config.json">;
|
|
33
|
+
binary: z.ZodObject<{
|
|
34
|
+
path: z.ZodLiteral<"__spacefast/zero/bin/stattic-runtime">;
|
|
35
|
+
compatibilityTarget: z.ZodObject<{
|
|
36
|
+
profile: z.ZodLiteral<"wpcloud-linux-x86_64-gnu-v1">;
|
|
37
|
+
os: z.ZodLiteral<"linux">;
|
|
38
|
+
cpu: z.ZodLiteral<"x86_64">;
|
|
39
|
+
libc: z.ZodLiteral<"glibc">;
|
|
40
|
+
linking: z.ZodLiteral<"dynamic">;
|
|
41
|
+
requireExecutableBit: z.ZodLiteral<true>;
|
|
42
|
+
}, z.core.$strict>;
|
|
43
|
+
sha256: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
required: z.ZodLiteral<true>;
|
|
45
|
+
}, z.core.$strict>;
|
|
46
|
+
mysql: z.ZodObject<{
|
|
47
|
+
migrateAtFinalize: z.ZodLiteral<true>;
|
|
48
|
+
blockIncompatibleRollback: z.ZodLiteral<true>;
|
|
49
|
+
}, z.core.$strict>;
|
|
50
|
+
realtime: z.ZodObject<{
|
|
51
|
+
production: z.ZodLiteral<"central">;
|
|
52
|
+
local: z.ZodLiteral<"foreground-cli-ws">;
|
|
53
|
+
}, z.core.$strict>;
|
|
54
|
+
}, z.core.$strict>;
|
|
55
|
+
tables: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
56
|
+
queries: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
57
|
+
mutations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
58
|
+
actions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
59
|
+
endpoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
60
|
+
method: z.ZodEnum<{
|
|
61
|
+
POST: "POST";
|
|
62
|
+
PUT: "PUT";
|
|
63
|
+
GET: "GET";
|
|
64
|
+
HEAD: "HEAD";
|
|
65
|
+
PATCH: "PATCH";
|
|
66
|
+
DELETE: "DELETE";
|
|
67
|
+
OPTIONS: "OPTIONS";
|
|
68
|
+
}>;
|
|
69
|
+
path: z.ZodString;
|
|
70
|
+
}, z.core.$strict>>>;
|
|
71
|
+
sockets: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
72
|
+
migrationCount: z.ZodNumber;
|
|
73
|
+
schemaHash: z.ZodNullable<z.ZodString>;
|
|
74
|
+
variables: z.ZodObject<{
|
|
75
|
+
source: z.ZodLiteral<"stattic-variables">;
|
|
76
|
+
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
77
|
+
}, z.core.$strict>;
|
|
78
|
+
realtime: z.ZodObject<{
|
|
79
|
+
mode: z.ZodEnum<{
|
|
80
|
+
local: "local";
|
|
81
|
+
cast: "cast";
|
|
82
|
+
central: "central";
|
|
83
|
+
}>;
|
|
84
|
+
centralUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
85
|
+
path: z.ZodOptional<z.ZodString>;
|
|
86
|
+
replayPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
87
|
+
replayUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
88
|
+
runPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
|
+
runUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
90
|
+
resourceKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
91
|
+
ticketPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
|
+
socketPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
|
+
spaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
|
+
versionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
|
+
}, z.core.$strict>;
|
|
96
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
97
|
+
runtimeKind: z.ZodLiteral<"functions">;
|
|
98
|
+
artifactId: z.ZodString;
|
|
99
|
+
appName: z.ZodString;
|
|
100
|
+
entry: z.ZodString;
|
|
101
|
+
compatibilityDate: z.ZodString;
|
|
102
|
+
compatibilityFlags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
103
|
+
routes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
104
|
+
method: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
105
|
+
POST: "POST";
|
|
106
|
+
PUT: "PUT";
|
|
107
|
+
GET: "GET";
|
|
108
|
+
HEAD: "HEAD";
|
|
109
|
+
PATCH: "PATCH";
|
|
110
|
+
DELETE: "DELETE";
|
|
111
|
+
OPTIONS: "OPTIONS";
|
|
112
|
+
}>>>;
|
|
113
|
+
path: z.ZodString;
|
|
114
|
+
subtree: z.ZodDefault<z.ZodBoolean>;
|
|
115
|
+
}, z.core.$strict>>>;
|
|
116
|
+
capabilities: z.ZodDefault<z.ZodObject<{
|
|
117
|
+
db: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
118
|
+
fetch: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
119
|
+
auth: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
120
|
+
env: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
121
|
+
realtime: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
122
|
+
logging: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
123
|
+
}, z.core.$strip>>;
|
|
124
|
+
executionState: z.ZodEnum<{
|
|
125
|
+
ready: "ready";
|
|
126
|
+
absent: "absent";
|
|
127
|
+
serving: "serving";
|
|
128
|
+
}>;
|
|
129
|
+
bundleSize: z.ZodNumber;
|
|
130
|
+
bundleSha256: z.ZodString;
|
|
131
|
+
variables: z.ZodObject<{
|
|
132
|
+
source: z.ZodLiteral<"spacefast-variables">;
|
|
133
|
+
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
134
|
+
}, z.core.$strict>;
|
|
135
|
+
}, z.core.$strict>], "runtimeKind">;
|
|
136
|
+
export type RuntimeApp = z.infer<typeof runtimeAppSchema>;
|
|
137
|
+
/**
|
|
138
|
+
* Replay of the invalidation events a live runtime emitted.
|
|
139
|
+
*
|
|
140
|
+
* The event shape itself is Zero's — it names mutations, changed tables and
|
|
141
|
+
* changed queries, which only a capsule has — but the route that serves it is
|
|
142
|
+
* the runtime family's, so the page contract lives here beside the rest of the
|
|
143
|
+
* unified surface rather than inside one product.
|
|
144
|
+
*/
|
|
145
|
+
export declare const runtimeRealtimeEventListQuerySchema: z.ZodObject<{
|
|
146
|
+
afterEventId: z.ZodOptional<z.ZodString>;
|
|
147
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
148
|
+
}, z.core.$strict>;
|
|
149
|
+
export type RuntimeRealtimeEventListQuery = z.infer<typeof runtimeRealtimeEventListQuerySchema>;
|
|
150
|
+
export declare const runtimeRealtimeEventListResponseSchema: z.ZodObject<{
|
|
151
|
+
data: z.ZodArray<z.ZodObject<{
|
|
152
|
+
eventId: z.ZodString;
|
|
153
|
+
spaceId: z.ZodString;
|
|
154
|
+
versionId: z.ZodNullable<z.ZodString>;
|
|
155
|
+
runtimeKind: z.ZodLiteral<"zero">;
|
|
156
|
+
requestId: z.ZodString;
|
|
157
|
+
mutationName: z.ZodString;
|
|
158
|
+
changedTables: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
159
|
+
changedQueries: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
160
|
+
schemaHash: z.ZodString;
|
|
161
|
+
committedAt: z.ZodString;
|
|
162
|
+
}, z.core.$strict>>;
|
|
163
|
+
pagination: z.ZodObject<{
|
|
164
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
165
|
+
hasMore: z.ZodBoolean;
|
|
166
|
+
}, z.core.$strip>;
|
|
167
|
+
}, z.core.$strict>;
|
|
168
|
+
export type RuntimeRealtimeEventListResponse = z.infer<typeof runtimeRealtimeEventListResponseSchema>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { CursorPaginationSchema } from "./common.js";
|
|
3
|
+
import { functionsAppSchema } from "./functions.js";
|
|
4
|
+
import { zeroAppSchema, zeroRealtimeEventSchema } from "./zero.js";
|
|
5
|
+
/**
|
|
6
|
+
* The one answer to "what is running on this space".
|
|
7
|
+
*
|
|
8
|
+
* A space is exactly one runtime kind — `versionRuntimeKind()` returns a single
|
|
9
|
+
* value and a publish carrying both declarations is refused at finalize — so
|
|
10
|
+
* this is a discriminated union rather than a bag of optional per-product
|
|
11
|
+
* fields. Anything that is not an execution tier has no member here and reads
|
|
12
|
+
* as `null`, which is the overwhelmingly common answer: a static space is not a
|
|
13
|
+
* degenerate app, it is the absence of one.
|
|
14
|
+
*
|
|
15
|
+
* It lives in its own module because it is the only place that needs to know
|
|
16
|
+
* about both products at once. `spaces.ts` imports it to describe runtime
|
|
17
|
+
* status; neither `zero.ts` nor `functions.ts` has to learn about the other.
|
|
18
|
+
*/
|
|
19
|
+
export const runtimeAppSchema = z.discriminatedUnion("runtimeKind", [
|
|
20
|
+
zeroAppSchema,
|
|
21
|
+
functionsAppSchema,
|
|
22
|
+
]);
|
|
23
|
+
/**
|
|
24
|
+
* Replay of the invalidation events a live runtime emitted.
|
|
25
|
+
*
|
|
26
|
+
* The event shape itself is Zero's — it names mutations, changed tables and
|
|
27
|
+
* changed queries, which only a capsule has — but the route that serves it is
|
|
28
|
+
* the runtime family's, so the page contract lives here beside the rest of the
|
|
29
|
+
* unified surface rather than inside one product.
|
|
30
|
+
*/
|
|
31
|
+
export const runtimeRealtimeEventListQuerySchema = z
|
|
32
|
+
.object({
|
|
33
|
+
afterEventId: z.string().min(1).optional(),
|
|
34
|
+
limit: z.coerce.number().int().min(1).max(100).default(50),
|
|
35
|
+
})
|
|
36
|
+
.strict();
|
|
37
|
+
export const runtimeRealtimeEventListResponseSchema = z
|
|
38
|
+
.object({
|
|
39
|
+
data: z.array(zeroRealtimeEventSchema),
|
|
40
|
+
pagination: CursorPaginationSchema,
|
|
41
|
+
})
|
|
42
|
+
.strict();
|
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* The database surface, for whichever runtime a space is carrying.
|
|
4
|
+
*
|
|
5
|
+
* There is one database per space — the site's own MySQL — and at most one
|
|
6
|
+
* runtime with a claim on it, so these contracts are runtime-neutral by
|
|
7
|
+
* default. The two exceptions are stated explicitly: a migration plan is a
|
|
8
|
+
* capsule's declaration and no worker has one, and the console hand-off is a
|
|
9
|
+
* property of the wp.cloud site rather than of anything a version declared.
|
|
10
|
+
*
|
|
11
|
+
* The reads answer in the capsule's declaration shapes (`zeroTableSchema`,
|
|
12
|
+
* `zeroMigrationOperationSchema`) because a capsule's declared schema is the
|
|
13
|
+
* richest answer either runtime can give and a worker's is the same answer with
|
|
14
|
+
* the declaration-shaped fields empty. Those shapes stay Zero-named and stay in
|
|
15
|
+
* `./zero.js`: a declared table is the capsule's own statement about itself.
|
|
16
|
+
*/
|
|
17
|
+
export declare const runtimeDbInspectResponseSchema: z.ZodObject<{
|
|
18
|
+
versionId: z.ZodNullable<z.ZodString>;
|
|
19
|
+
artifactId: z.ZodNullable<z.ZodString>;
|
|
20
|
+
backend: z.ZodNullable<z.ZodLiteral<"wpcloud-mysql">>;
|
|
21
|
+
migrationMode: z.ZodNullable<z.ZodEnum<{
|
|
22
|
+
safe: "safe";
|
|
23
|
+
drop: "drop";
|
|
24
|
+
rename: "rename";
|
|
25
|
+
}>>;
|
|
26
|
+
schemaHash: z.ZodNullable<z.ZodString>;
|
|
27
|
+
tables: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
28
|
+
name: z.ZodString;
|
|
29
|
+
columns: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
30
|
+
name: z.ZodString;
|
|
31
|
+
type: z.ZodEnum<{
|
|
32
|
+
string: "string";
|
|
33
|
+
number: "number";
|
|
34
|
+
boolean: "boolean";
|
|
35
|
+
json: "json";
|
|
36
|
+
}>;
|
|
37
|
+
nullable: z.ZodDefault<z.ZodBoolean>;
|
|
38
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
39
|
+
}, z.core.$strict>>>;
|
|
40
|
+
indexes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
41
|
+
name: z.ZodString;
|
|
42
|
+
fields: z.ZodArray<z.ZodString>;
|
|
43
|
+
}, z.core.$strict>>>;
|
|
44
|
+
}, z.core.$strict>>>;
|
|
45
|
+
migrations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
46
|
+
op: z.ZodLiteral<"create_table">;
|
|
47
|
+
table: z.ZodString;
|
|
48
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
49
|
+
op: z.ZodLiteral<"add_column">;
|
|
50
|
+
table: z.ZodString;
|
|
51
|
+
column: z.ZodObject<{
|
|
52
|
+
name: z.ZodString;
|
|
53
|
+
type: z.ZodEnum<{
|
|
54
|
+
string: "string";
|
|
55
|
+
number: "number";
|
|
56
|
+
boolean: "boolean";
|
|
57
|
+
json: "json";
|
|
58
|
+
}>;
|
|
59
|
+
nullable: z.ZodDefault<z.ZodBoolean>;
|
|
60
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
61
|
+
}, z.core.$strict>;
|
|
62
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
63
|
+
op: z.ZodLiteral<"add_index">;
|
|
64
|
+
table: z.ZodString;
|
|
65
|
+
name: z.ZodString;
|
|
66
|
+
columns: z.ZodArray<z.ZodString>;
|
|
67
|
+
unique: z.ZodDefault<z.ZodBoolean>;
|
|
68
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
69
|
+
op: z.ZodLiteral<"drop_index">;
|
|
70
|
+
table: z.ZodString;
|
|
71
|
+
name: z.ZodString;
|
|
72
|
+
explicit: z.ZodLiteral<"drop">;
|
|
73
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
74
|
+
op: z.ZodLiteral<"drop_table">;
|
|
75
|
+
table: z.ZodString;
|
|
76
|
+
explicit: z.ZodLiteral<"drop">;
|
|
77
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
78
|
+
op: z.ZodLiteral<"drop_column">;
|
|
79
|
+
table: z.ZodString;
|
|
80
|
+
column: z.ZodString;
|
|
81
|
+
explicit: z.ZodLiteral<"drop">;
|
|
82
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
83
|
+
op: z.ZodLiteral<"rename_table">;
|
|
84
|
+
from: z.ZodString;
|
|
85
|
+
to: z.ZodString;
|
|
86
|
+
explicit: z.ZodLiteral<"rename">;
|
|
87
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
88
|
+
op: z.ZodLiteral<"rename_column">;
|
|
89
|
+
table: z.ZodString;
|
|
90
|
+
from: z.ZodString;
|
|
91
|
+
to: z.ZodString;
|
|
92
|
+
explicit: z.ZodLiteral<"rename">;
|
|
93
|
+
}, z.core.$strict>], "op">>>;
|
|
94
|
+
}, z.core.$strict>;
|
|
95
|
+
export type RuntimeDbInspectResponse = z.infer<typeof runtimeDbInspectResponseSchema>;
|
|
96
|
+
export declare const runtimeDbInspectPublicResponseSchema: z.ZodObject<{
|
|
97
|
+
data: z.ZodObject<{
|
|
98
|
+
versionId: z.ZodNullable<z.ZodString>;
|
|
99
|
+
artifactId: z.ZodNullable<z.ZodString>;
|
|
100
|
+
backend: z.ZodNullable<z.ZodLiteral<"wpcloud-mysql">>;
|
|
101
|
+
migrationMode: z.ZodNullable<z.ZodEnum<{
|
|
102
|
+
safe: "safe";
|
|
103
|
+
drop: "drop";
|
|
104
|
+
rename: "rename";
|
|
105
|
+
}>>;
|
|
106
|
+
schemaHash: z.ZodNullable<z.ZodString>;
|
|
107
|
+
tables: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
108
|
+
name: z.ZodString;
|
|
109
|
+
columns: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
110
|
+
name: z.ZodString;
|
|
111
|
+
type: z.ZodEnum<{
|
|
112
|
+
string: "string";
|
|
113
|
+
number: "number";
|
|
114
|
+
boolean: "boolean";
|
|
115
|
+
json: "json";
|
|
116
|
+
}>;
|
|
117
|
+
nullable: z.ZodDefault<z.ZodBoolean>;
|
|
118
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
119
|
+
}, z.core.$strict>>>;
|
|
120
|
+
indexes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
121
|
+
name: z.ZodString;
|
|
122
|
+
fields: z.ZodArray<z.ZodString>;
|
|
123
|
+
}, z.core.$strict>>>;
|
|
124
|
+
}, z.core.$strict>>>;
|
|
125
|
+
migrations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
126
|
+
op: z.ZodLiteral<"create_table">;
|
|
127
|
+
table: z.ZodString;
|
|
128
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
129
|
+
op: z.ZodLiteral<"add_column">;
|
|
130
|
+
table: z.ZodString;
|
|
131
|
+
column: z.ZodObject<{
|
|
132
|
+
name: z.ZodString;
|
|
133
|
+
type: z.ZodEnum<{
|
|
134
|
+
string: "string";
|
|
135
|
+
number: "number";
|
|
136
|
+
boolean: "boolean";
|
|
137
|
+
json: "json";
|
|
138
|
+
}>;
|
|
139
|
+
nullable: z.ZodDefault<z.ZodBoolean>;
|
|
140
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
141
|
+
}, z.core.$strict>;
|
|
142
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
143
|
+
op: z.ZodLiteral<"add_index">;
|
|
144
|
+
table: z.ZodString;
|
|
145
|
+
name: z.ZodString;
|
|
146
|
+
columns: z.ZodArray<z.ZodString>;
|
|
147
|
+
unique: z.ZodDefault<z.ZodBoolean>;
|
|
148
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
149
|
+
op: z.ZodLiteral<"drop_index">;
|
|
150
|
+
table: z.ZodString;
|
|
151
|
+
name: z.ZodString;
|
|
152
|
+
explicit: z.ZodLiteral<"drop">;
|
|
153
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
154
|
+
op: z.ZodLiteral<"drop_table">;
|
|
155
|
+
table: z.ZodString;
|
|
156
|
+
explicit: z.ZodLiteral<"drop">;
|
|
157
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
158
|
+
op: z.ZodLiteral<"drop_column">;
|
|
159
|
+
table: z.ZodString;
|
|
160
|
+
column: z.ZodString;
|
|
161
|
+
explicit: z.ZodLiteral<"drop">;
|
|
162
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
163
|
+
op: z.ZodLiteral<"rename_table">;
|
|
164
|
+
from: z.ZodString;
|
|
165
|
+
to: z.ZodString;
|
|
166
|
+
explicit: z.ZodLiteral<"rename">;
|
|
167
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
168
|
+
op: z.ZodLiteral<"rename_column">;
|
|
169
|
+
table: z.ZodString;
|
|
170
|
+
from: z.ZodString;
|
|
171
|
+
to: z.ZodString;
|
|
172
|
+
explicit: z.ZodLiteral<"rename">;
|
|
173
|
+
}, z.core.$strict>], "op">>>;
|
|
174
|
+
}, z.core.$strict>;
|
|
175
|
+
}, z.core.$strip>;
|
|
176
|
+
export declare const runtimeDbDumpQuerySchema: z.ZodObject<{
|
|
177
|
+
table: z.ZodOptional<z.ZodString>;
|
|
178
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
179
|
+
}, z.core.$strict>;
|
|
180
|
+
export declare const runtimeDbDumpTableSchema: z.ZodObject<{
|
|
181
|
+
name: z.ZodString;
|
|
182
|
+
rows: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
183
|
+
}, z.core.$strict>;
|
|
184
|
+
export declare const runtimeDbDumpResponseSchema: z.ZodObject<{
|
|
185
|
+
versionId: z.ZodNullable<z.ZodString>;
|
|
186
|
+
artifactId: z.ZodNullable<z.ZodString>;
|
|
187
|
+
schemaHash: z.ZodNullable<z.ZodString>;
|
|
188
|
+
tables: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
189
|
+
name: z.ZodString;
|
|
190
|
+
rows: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
191
|
+
}, z.core.$strict>>>;
|
|
192
|
+
}, z.core.$strict>;
|
|
193
|
+
export type RuntimeDbDumpResponse = z.infer<typeof runtimeDbDumpResponseSchema>;
|
|
194
|
+
export declare const runtimeDbDumpPublicResponseSchema: z.ZodObject<{
|
|
195
|
+
data: z.ZodObject<{
|
|
196
|
+
versionId: z.ZodNullable<z.ZodString>;
|
|
197
|
+
artifactId: z.ZodNullable<z.ZodString>;
|
|
198
|
+
schemaHash: z.ZodNullable<z.ZodString>;
|
|
199
|
+
tables: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
200
|
+
name: z.ZodString;
|
|
201
|
+
rows: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
202
|
+
}, z.core.$strict>>>;
|
|
203
|
+
}, z.core.$strict>;
|
|
204
|
+
}, z.core.$strip>;
|
|
205
|
+
export declare const runtimeDbExportOrderingSchema: z.ZodObject<{
|
|
206
|
+
tables: z.ZodLiteral<"name_asc">;
|
|
207
|
+
rows: z.ZodLiteral<"created_at_id_asc">;
|
|
208
|
+
}, z.core.$strict>;
|
|
209
|
+
export declare const runtimeDbExportMetadataSchema: z.ZodObject<{
|
|
210
|
+
spaceId: z.ZodNullable<z.ZodString>;
|
|
211
|
+
versionId: z.ZodNullable<z.ZodString>;
|
|
212
|
+
schemaHash: z.ZodString;
|
|
213
|
+
consistency: z.ZodLiteral<"per_page">;
|
|
214
|
+
ordering: z.ZodObject<{
|
|
215
|
+
tables: z.ZodLiteral<"name_asc">;
|
|
216
|
+
rows: z.ZodLiteral<"created_at_id_asc">;
|
|
217
|
+
}, z.core.$strict>;
|
|
218
|
+
tables: z.ZodArray<z.ZodString>;
|
|
219
|
+
}, z.core.$strict>;
|
|
220
|
+
export type RuntimeDbExportMetadata = z.infer<typeof runtimeDbExportMetadataSchema>;
|
|
221
|
+
export declare const runtimeDbExportMetadataPublicResponseSchema: z.ZodObject<{
|
|
222
|
+
data: z.ZodObject<{
|
|
223
|
+
spaceId: z.ZodNullable<z.ZodString>;
|
|
224
|
+
versionId: z.ZodNullable<z.ZodString>;
|
|
225
|
+
schemaHash: z.ZodString;
|
|
226
|
+
consistency: z.ZodLiteral<"per_page">;
|
|
227
|
+
ordering: z.ZodObject<{
|
|
228
|
+
tables: z.ZodLiteral<"name_asc">;
|
|
229
|
+
rows: z.ZodLiteral<"created_at_id_asc">;
|
|
230
|
+
}, z.core.$strict>;
|
|
231
|
+
tables: z.ZodArray<z.ZodString>;
|
|
232
|
+
}, z.core.$strict>;
|
|
233
|
+
}, z.core.$strip>;
|
|
234
|
+
export declare const runtimeDbExportPageQuerySchema: z.ZodObject<{
|
|
235
|
+
schemaHash: z.ZodString;
|
|
236
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
237
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
238
|
+
}, z.core.$strict>;
|
|
239
|
+
export declare const runtimeDbExportPageSchema: z.ZodObject<{
|
|
240
|
+
rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
241
|
+
cursor: z.ZodNullable<z.ZodString>;
|
|
242
|
+
}, z.core.$strict>;
|
|
243
|
+
export type RuntimeDbExportPage = z.infer<typeof runtimeDbExportPageSchema>;
|
|
244
|
+
export declare const runtimeDbExportPagePublicResponseSchema: z.ZodObject<{
|
|
245
|
+
data: z.ZodObject<{
|
|
246
|
+
rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
247
|
+
cursor: z.ZodNullable<z.ZodString>;
|
|
248
|
+
}, z.core.$strict>;
|
|
249
|
+
}, z.core.$strip>;
|
|
250
|
+
export declare const runtimeDbMigrateResultSchema: z.ZodObject<{
|
|
251
|
+
versionId: z.ZodString;
|
|
252
|
+
runtimeKind: z.ZodLiteral<"zero">;
|
|
253
|
+
schemaHash: z.ZodNullable<z.ZodString>;
|
|
254
|
+
mode: z.ZodNullable<z.ZodEnum<{
|
|
255
|
+
safe: "safe";
|
|
256
|
+
drop: "drop";
|
|
257
|
+
rename: "rename";
|
|
258
|
+
}>>;
|
|
259
|
+
operations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
260
|
+
op: z.ZodLiteral<"create_table">;
|
|
261
|
+
table: z.ZodString;
|
|
262
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
263
|
+
op: z.ZodLiteral<"add_column">;
|
|
264
|
+
table: z.ZodString;
|
|
265
|
+
column: z.ZodObject<{
|
|
266
|
+
name: z.ZodString;
|
|
267
|
+
type: z.ZodEnum<{
|
|
268
|
+
string: "string";
|
|
269
|
+
number: "number";
|
|
270
|
+
boolean: "boolean";
|
|
271
|
+
json: "json";
|
|
272
|
+
}>;
|
|
273
|
+
nullable: z.ZodDefault<z.ZodBoolean>;
|
|
274
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
275
|
+
}, z.core.$strict>;
|
|
276
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
277
|
+
op: z.ZodLiteral<"add_index">;
|
|
278
|
+
table: z.ZodString;
|
|
279
|
+
name: z.ZodString;
|
|
280
|
+
columns: z.ZodArray<z.ZodString>;
|
|
281
|
+
unique: z.ZodDefault<z.ZodBoolean>;
|
|
282
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
283
|
+
op: z.ZodLiteral<"drop_index">;
|
|
284
|
+
table: z.ZodString;
|
|
285
|
+
name: z.ZodString;
|
|
286
|
+
explicit: z.ZodLiteral<"drop">;
|
|
287
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
288
|
+
op: z.ZodLiteral<"drop_table">;
|
|
289
|
+
table: z.ZodString;
|
|
290
|
+
explicit: z.ZodLiteral<"drop">;
|
|
291
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
292
|
+
op: z.ZodLiteral<"drop_column">;
|
|
293
|
+
table: z.ZodString;
|
|
294
|
+
column: z.ZodString;
|
|
295
|
+
explicit: z.ZodLiteral<"drop">;
|
|
296
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
297
|
+
op: z.ZodLiteral<"rename_table">;
|
|
298
|
+
from: z.ZodString;
|
|
299
|
+
to: z.ZodString;
|
|
300
|
+
explicit: z.ZodLiteral<"rename">;
|
|
301
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
302
|
+
op: z.ZodLiteral<"rename_column">;
|
|
303
|
+
table: z.ZodString;
|
|
304
|
+
from: z.ZodString;
|
|
305
|
+
to: z.ZodString;
|
|
306
|
+
explicit: z.ZodLiteral<"rename">;
|
|
307
|
+
}, z.core.$strict>], "op">>;
|
|
308
|
+
queued: z.ZodBoolean;
|
|
309
|
+
}, z.core.$strict>;
|
|
310
|
+
export type RuntimeDbMigrateResult = z.infer<typeof runtimeDbMigrateResultSchema>;
|
|
311
|
+
export declare const runtimeDbMigrateResponseSchema: z.ZodObject<{
|
|
312
|
+
data: z.ZodObject<{
|
|
313
|
+
versionId: z.ZodString;
|
|
314
|
+
runtimeKind: z.ZodLiteral<"zero">;
|
|
315
|
+
schemaHash: z.ZodNullable<z.ZodString>;
|
|
316
|
+
mode: z.ZodNullable<z.ZodEnum<{
|
|
317
|
+
safe: "safe";
|
|
318
|
+
drop: "drop";
|
|
319
|
+
rename: "rename";
|
|
320
|
+
}>>;
|
|
321
|
+
operations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
322
|
+
op: z.ZodLiteral<"create_table">;
|
|
323
|
+
table: z.ZodString;
|
|
324
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
325
|
+
op: z.ZodLiteral<"add_column">;
|
|
326
|
+
table: z.ZodString;
|
|
327
|
+
column: z.ZodObject<{
|
|
328
|
+
name: z.ZodString;
|
|
329
|
+
type: z.ZodEnum<{
|
|
330
|
+
string: "string";
|
|
331
|
+
number: "number";
|
|
332
|
+
boolean: "boolean";
|
|
333
|
+
json: "json";
|
|
334
|
+
}>;
|
|
335
|
+
nullable: z.ZodDefault<z.ZodBoolean>;
|
|
336
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
337
|
+
}, z.core.$strict>;
|
|
338
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
339
|
+
op: z.ZodLiteral<"add_index">;
|
|
340
|
+
table: z.ZodString;
|
|
341
|
+
name: z.ZodString;
|
|
342
|
+
columns: z.ZodArray<z.ZodString>;
|
|
343
|
+
unique: z.ZodDefault<z.ZodBoolean>;
|
|
344
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
345
|
+
op: z.ZodLiteral<"drop_index">;
|
|
346
|
+
table: z.ZodString;
|
|
347
|
+
name: z.ZodString;
|
|
348
|
+
explicit: z.ZodLiteral<"drop">;
|
|
349
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
350
|
+
op: z.ZodLiteral<"drop_table">;
|
|
351
|
+
table: z.ZodString;
|
|
352
|
+
explicit: z.ZodLiteral<"drop">;
|
|
353
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
354
|
+
op: z.ZodLiteral<"drop_column">;
|
|
355
|
+
table: z.ZodString;
|
|
356
|
+
column: z.ZodString;
|
|
357
|
+
explicit: z.ZodLiteral<"drop">;
|
|
358
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
359
|
+
op: z.ZodLiteral<"rename_table">;
|
|
360
|
+
from: z.ZodString;
|
|
361
|
+
to: z.ZodString;
|
|
362
|
+
explicit: z.ZodLiteral<"rename">;
|
|
363
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
364
|
+
op: z.ZodLiteral<"rename_column">;
|
|
365
|
+
table: z.ZodString;
|
|
366
|
+
from: z.ZodString;
|
|
367
|
+
to: z.ZodString;
|
|
368
|
+
explicit: z.ZodLiteral<"rename">;
|
|
369
|
+
}, z.core.$strict>], "op">>;
|
|
370
|
+
queued: z.ZodBoolean;
|
|
371
|
+
}, z.core.$strict>;
|
|
372
|
+
operation: z.ZodNullable<z.ZodObject<{
|
|
373
|
+
id: z.ZodString;
|
|
374
|
+
kind: z.ZodString;
|
|
375
|
+
status: z.ZodEnum<{
|
|
376
|
+
failed: "failed";
|
|
377
|
+
canceled: "canceled";
|
|
378
|
+
queued: "queued";
|
|
379
|
+
running: "running";
|
|
380
|
+
succeeded: "succeeded";
|
|
381
|
+
}>;
|
|
382
|
+
resources: z.ZodArray<z.ZodObject<{
|
|
383
|
+
type: z.ZodString;
|
|
384
|
+
id: z.ZodString;
|
|
385
|
+
}, z.core.$strip>>;
|
|
386
|
+
progress: z.ZodOptional<z.ZodObject<{
|
|
387
|
+
total: z.ZodNumber;
|
|
388
|
+
completed: z.ZodNumber;
|
|
389
|
+
failed: z.ZodNumber;
|
|
390
|
+
}, z.core.$strip>>;
|
|
391
|
+
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
392
|
+
code: z.ZodString;
|
|
393
|
+
severity: z.ZodEnum<{
|
|
394
|
+
info: "info";
|
|
395
|
+
error: "error";
|
|
396
|
+
warning: "warning";
|
|
397
|
+
}>;
|
|
398
|
+
message: z.ZodString;
|
|
399
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
400
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
401
|
+
registrar: "registrar";
|
|
402
|
+
wpcloud: "wpcloud";
|
|
403
|
+
dns: "dns";
|
|
404
|
+
runtime: "runtime";
|
|
405
|
+
}>>>;
|
|
406
|
+
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
407
|
+
fix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
408
|
+
retryable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
409
|
+
}, z.core.$strip>>>;
|
|
410
|
+
createdAt: z.ZodString;
|
|
411
|
+
finishedAt: z.ZodOptional<z.ZodString>;
|
|
412
|
+
}, z.core.$strip>>;
|
|
413
|
+
}, z.core.$strip>;
|
|
414
|
+
export declare const runtimeDbConsoleSchema: z.ZodObject<{
|
|
415
|
+
provider: z.ZodLiteral<"wpcloud-phpmyadmin">;
|
|
416
|
+
url: z.ZodString;
|
|
417
|
+
}, z.core.$strict>;
|
|
418
|
+
export type RuntimeDbConsole = z.infer<typeof runtimeDbConsoleSchema>;
|
|
419
|
+
export declare const runtimeDbConsoleResponseSchema: z.ZodObject<{
|
|
420
|
+
data: z.ZodObject<{
|
|
421
|
+
provider: z.ZodLiteral<"wpcloud-phpmyadmin">;
|
|
422
|
+
url: z.ZodString;
|
|
423
|
+
}, z.core.$strict>;
|
|
424
|
+
}, z.core.$strip>;
|