@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
|
@@ -17,14 +17,16 @@ export declare const SPACE_CONFIG_CAPS: {
|
|
|
17
17
|
readonly injectSnippetBytes: number;
|
|
18
18
|
/** Max snippets per `inject` array. */
|
|
19
19
|
readonly injectSnippets: 16;
|
|
20
|
-
/** Max
|
|
21
|
-
readonly
|
|
20
|
+
/** Max public WordPress sources exposed to repository builds. */
|
|
21
|
+
readonly dataSources: 32;
|
|
22
22
|
/** Max `theme` color token length. */
|
|
23
23
|
readonly themeColorChars: 64;
|
|
24
24
|
/** Max `theme.logo` URL/path length. */
|
|
25
25
|
readonly themeLogoChars: 2000;
|
|
26
26
|
/** Max `theme.name` display-name length. */
|
|
27
27
|
readonly themeNameChars: 120;
|
|
28
|
+
/** Max top-level `name` (space display name) length. Matches the stored column. */
|
|
29
|
+
readonly nameChars: 255;
|
|
28
30
|
};
|
|
29
31
|
/** Published JSON Schema URL for `sf.jsonc` ($schema autocomplete). */
|
|
30
32
|
export declare const SPACE_CONFIG_SCHEMA_URL: string;
|
|
@@ -63,6 +65,17 @@ export declare const spacePlacementConfigSchema: z.ZodObject<{
|
|
|
63
65
|
burstable: z.ZodOptional<z.ZodBoolean>;
|
|
64
66
|
}, z.core.$strict>;
|
|
65
67
|
export type SpacePlacementConfig = z.infer<typeof spacePlacementConfigSchema>;
|
|
68
|
+
export declare const dataSourceNameSchema: z.ZodString;
|
|
69
|
+
export declare const wordpressDataSourceUrlSchema: z.ZodString;
|
|
70
|
+
export declare const wordpressDataSourceSchema: z.ZodObject<{
|
|
71
|
+
kind: z.ZodLiteral<"wordpress">;
|
|
72
|
+
url: z.ZodString;
|
|
73
|
+
}, z.core.$strict>;
|
|
74
|
+
export type WordPressDataSource = z.infer<typeof wordpressDataSourceSchema>;
|
|
75
|
+
export declare const spaceDataSourcesSchema: z.ZodPipe<z.ZodUnknown, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
76
|
+
kind: z.ZodLiteral<"wordpress">;
|
|
77
|
+
url: z.ZodString;
|
|
78
|
+
}, z.core.$strict>>>;
|
|
66
79
|
export declare const spaceConfigSchema: z.ZodObject<{
|
|
67
80
|
index: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<false>]>>;
|
|
68
81
|
fallback: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -141,70 +154,71 @@ export declare const spaceConfigSchema: z.ZodObject<{
|
|
|
141
154
|
bodyEnd: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
142
155
|
noscript: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
143
156
|
}, z.core.$strip>>;
|
|
157
|
+
dataSources: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
158
|
+
kind: z.ZodLiteral<"wordpress">;
|
|
159
|
+
url: z.ZodString;
|
|
160
|
+
}, z.core.$strict>>>>;
|
|
161
|
+
defaultDataSource: z.ZodOptional<z.ZodString>;
|
|
144
162
|
}, z.core.$strip>;
|
|
145
163
|
export type SpaceConfig = z.infer<typeof spaceConfigSchema>;
|
|
164
|
+
export declare function compareDataSourceNames(left: string, right: string): number;
|
|
165
|
+
export declare function resolveDefaultDataSourceName(config: Pick<SpaceConfig, "dataSources" | "defaultDataSource"> | null | undefined): string | null;
|
|
146
166
|
export declare function spaceSuperpowersEnabled(config: SpaceConfig | null | undefined): boolean;
|
|
147
|
-
export declare const
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
effect: z.ZodEnum<{
|
|
166
|
-
allow: "allow";
|
|
167
|
-
deny: "deny";
|
|
168
|
-
challenge: "challenge";
|
|
169
|
-
}>;
|
|
170
|
-
auth: z.ZodOptional<z.ZodObject<{
|
|
171
|
-
requiredGrants: z.ZodArray<z.ZodString>;
|
|
172
|
-
issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
173
|
-
kid: z.ZodString;
|
|
174
|
-
alg: z.ZodLiteral<"EdDSA">;
|
|
175
|
-
publicKey: z.ZodString;
|
|
176
|
-
grantNamespaces: z.ZodArray<z.ZodString>;
|
|
177
|
-
}, z.core.$strip>>>;
|
|
178
|
-
acquire: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
179
|
-
type: z.ZodLiteral<"password">;
|
|
180
|
-
ref: z.ZodString;
|
|
181
|
-
transport: z.ZodEnum<{
|
|
182
|
-
basic: "basic";
|
|
183
|
-
form: "form";
|
|
184
|
-
}>;
|
|
185
|
-
username: z.ZodOptional<z.ZodString>;
|
|
186
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
187
|
-
type: z.ZodLiteral<"login">;
|
|
188
|
-
url: z.ZodString;
|
|
189
|
-
label: z.ZodOptional<z.ZodString>;
|
|
190
|
-
}, z.core.$strip>], "type">>>;
|
|
191
|
-
}, z.core.$strip>>;
|
|
192
|
-
managedBy: z.ZodOptional<z.ZodEnum<{
|
|
193
|
-
sharing: "sharing";
|
|
194
|
-
firewall: "firewall";
|
|
195
|
-
file_share: "file_share";
|
|
196
|
-
cast_reviewer: "cast_reviewer";
|
|
197
|
-
team_default: "team_default";
|
|
198
|
-
}>>;
|
|
199
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
200
|
-
reasonCode: z.ZodOptional<z.ZodString>;
|
|
201
|
-
message: z.ZodOptional<z.ZodString>;
|
|
202
|
-
}, z.core.$strip>>>;
|
|
167
|
+
export declare const spaceConfigFileAccessSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodLiteral<"public">, z.ZodTransform<{
|
|
168
|
+
public: string[];
|
|
169
|
+
}, "public">>, z.ZodObject<{
|
|
170
|
+
public: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
171
|
+
}, z.core.$strict>]>;
|
|
172
|
+
export type SpaceConfigFileAccess = z.infer<typeof spaceConfigFileAccessSchema>;
|
|
173
|
+
/**
|
|
174
|
+
* Zero: a transactional app with its own database.
|
|
175
|
+
*
|
|
176
|
+
* Both entries are required because Zero is never inferred. A runtime that owns
|
|
177
|
+
* a database must not spring into existence from a directory shape, so the only
|
|
178
|
+
* way to get one is to say so — and once said, a server or client that cannot
|
|
179
|
+
* be resolved fails the publish rather than degrading to static files.
|
|
180
|
+
*/
|
|
181
|
+
export declare const spaceRuntimeZeroSchema: z.ZodObject<{
|
|
182
|
+
kind: z.ZodLiteral<"zero">;
|
|
183
|
+
server: z.ZodString;
|
|
184
|
+
client: z.ZodString;
|
|
203
185
|
}, z.core.$strip>;
|
|
204
|
-
|
|
205
|
-
|
|
186
|
+
/**
|
|
187
|
+
* Functions: the worker `sf publish` compiles.
|
|
188
|
+
*
|
|
189
|
+
* Every field beyond `kind` is optional because the normal case is detection: a
|
|
190
|
+
* project with `handler.ts` or an OpenNext build needs no configuration at all.
|
|
191
|
+
* These exist for the layouts detection cannot guess — a worker somewhere
|
|
192
|
+
* unusual, or a compatibility date the author wants pinned rather than
|
|
193
|
+
* defaulted.
|
|
194
|
+
*/
|
|
195
|
+
export declare const spaceRuntimeFunctionsSchema: z.ZodObject<{
|
|
196
|
+
kind: z.ZodLiteral<"functions">;
|
|
197
|
+
entry: z.ZodOptional<z.ZodString>;
|
|
198
|
+
database: z.ZodDefault<z.ZodBoolean>;
|
|
199
|
+
compatibilityDate: z.ZodOptional<z.ZodString>;
|
|
206
200
|
}, z.core.$strip>;
|
|
207
|
-
|
|
201
|
+
/**
|
|
202
|
+
* The one runtime declaration, discriminated on `kind`.
|
|
203
|
+
*
|
|
204
|
+
* One block, one kind — a version cannot express two runtimes at once, so the
|
|
205
|
+
* ambiguity never has to be resolved downstream. File-only on purpose: a
|
|
206
|
+
* runtime is a fact about the content of a version, so it rolls forward and
|
|
207
|
+
* back with the version instead of being set through the API config overlay.
|
|
208
|
+
*/
|
|
209
|
+
export declare const spaceRuntimeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
210
|
+
kind: z.ZodLiteral<"zero">;
|
|
211
|
+
server: z.ZodString;
|
|
212
|
+
client: z.ZodString;
|
|
213
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
214
|
+
kind: z.ZodLiteral<"functions">;
|
|
215
|
+
entry: z.ZodOptional<z.ZodString>;
|
|
216
|
+
database: z.ZodDefault<z.ZodBoolean>;
|
|
217
|
+
compatibilityDate: z.ZodOptional<z.ZodString>;
|
|
218
|
+
}, z.core.$strip>], "kind">;
|
|
219
|
+
export type SpaceRuntimeZeroConfig = z.infer<typeof spaceRuntimeZeroSchema>;
|
|
220
|
+
export type SpaceRuntimeFunctionsConfig = z.infer<typeof spaceRuntimeFunctionsSchema>;
|
|
221
|
+
export type SpaceRuntimeConfig = z.infer<typeof spaceRuntimeSchema>;
|
|
208
222
|
export declare const spaceConfigFileSchema: z.ZodObject<{
|
|
209
223
|
index: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<false>]>>;
|
|
210
224
|
fallback: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -285,66 +299,22 @@ export declare const spaceConfigFileSchema: z.ZodObject<{
|
|
|
285
299
|
}, z.core.$strip>>;
|
|
286
300
|
$schema: z.ZodOptional<z.ZodString>;
|
|
287
301
|
space: z.ZodOptional<z.ZodString>;
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
}, z.core.$strip>>;
|
|
305
|
-
}, z.core.$strip>>;
|
|
306
|
-
effect: z.ZodEnum<{
|
|
307
|
-
allow: "allow";
|
|
308
|
-
deny: "deny";
|
|
309
|
-
challenge: "challenge";
|
|
310
|
-
}>;
|
|
311
|
-
auth: z.ZodOptional<z.ZodObject<{
|
|
312
|
-
requiredGrants: z.ZodArray<z.ZodString>;
|
|
313
|
-
issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
314
|
-
kid: z.ZodString;
|
|
315
|
-
alg: z.ZodLiteral<"EdDSA">;
|
|
316
|
-
publicKey: z.ZodString;
|
|
317
|
-
grantNamespaces: z.ZodArray<z.ZodString>;
|
|
318
|
-
}, z.core.$strip>>>;
|
|
319
|
-
acquire: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
320
|
-
type: z.ZodLiteral<"password">;
|
|
321
|
-
ref: z.ZodString;
|
|
322
|
-
transport: z.ZodEnum<{
|
|
323
|
-
basic: "basic";
|
|
324
|
-
form: "form";
|
|
325
|
-
}>;
|
|
326
|
-
username: z.ZodOptional<z.ZodString>;
|
|
327
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
328
|
-
type: z.ZodLiteral<"login">;
|
|
329
|
-
url: z.ZodString;
|
|
330
|
-
label: z.ZodOptional<z.ZodString>;
|
|
331
|
-
}, z.core.$strip>], "type">>>;
|
|
332
|
-
}, z.core.$strip>>;
|
|
333
|
-
managedBy: z.ZodOptional<z.ZodEnum<{
|
|
334
|
-
sharing: "sharing";
|
|
335
|
-
firewall: "firewall";
|
|
336
|
-
file_share: "file_share";
|
|
337
|
-
cast_reviewer: "cast_reviewer";
|
|
338
|
-
team_default: "team_default";
|
|
339
|
-
}>>;
|
|
340
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
341
|
-
reasonCode: z.ZodOptional<z.ZodString>;
|
|
342
|
-
message: z.ZodOptional<z.ZodString>;
|
|
343
|
-
}, z.core.$strip>>>;
|
|
344
|
-
}, z.core.$strip>>;
|
|
345
|
-
publish: z.ZodOptional<z.ZodObject<{
|
|
346
|
-
fingerprint: z.ZodOptional<z.ZodBoolean>;
|
|
347
|
-
}, z.core.$strip>>;
|
|
302
|
+
name: z.ZodOptional<z.ZodString>;
|
|
303
|
+
access: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodLiteral<"public">, z.ZodTransform<{
|
|
304
|
+
public: string[];
|
|
305
|
+
}, "public">>, z.ZodObject<{
|
|
306
|
+
public: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
307
|
+
}, z.core.$strict>]>>;
|
|
308
|
+
runtime: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
309
|
+
kind: z.ZodLiteral<"zero">;
|
|
310
|
+
server: z.ZodString;
|
|
311
|
+
client: z.ZodString;
|
|
312
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
313
|
+
kind: z.ZodLiteral<"functions">;
|
|
314
|
+
entry: z.ZodOptional<z.ZodString>;
|
|
315
|
+
database: z.ZodDefault<z.ZodBoolean>;
|
|
316
|
+
compatibilityDate: z.ZodOptional<z.ZodString>;
|
|
317
|
+
}, z.core.$strip>], "kind">>;
|
|
348
318
|
}, z.core.$strip>;
|
|
349
319
|
export type SpaceConfigFile = z.infer<typeof spaceConfigFileSchema>;
|
|
350
320
|
/**
|