@spacefast/common 0.0.24 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/brand-assets/LICENSE-Haskoy.txt +93 -0
- package/brand-assets/haskoy-latin-variable.woff2 +0 -0
- package/brand-assets/spacefast-favicon.svg +4 -4
- package/brand-assets/spacefast-sf-full-bleed.svg +3 -3
- package/brand-assets/spacefast-wordmark.svg +2 -4
- package/dist/agents/connect-targets.d.ts +6 -146
- package/dist/agents/connect-targets.js +63 -295
- package/dist/agents/private-key-oauth.d.ts +31 -2
- package/dist/agents/private-key-oauth.js +166 -92
- package/dist/agents/registry/core.d.ts +292 -0
- package/dist/agents/registry/core.js +1388 -0
- package/dist/agents/registry/deeplink-probes.d.ts +23 -0
- package/dist/agents/registry/deeplink-probes.js +18 -0
- package/dist/agents/registry/node.d.ts +56 -0
- package/dist/agents/registry/node.js +339 -0
- package/dist/brand-assets-build.js +3 -6
- package/dist/brand-assets.d.ts +5 -15
- package/dist/brand-assets.js +12 -14
- package/dist/brand.d.ts +17 -0
- package/dist/brand.js +24 -4
- package/dist/config/domains.d.ts +79 -12
- package/dist/config/domains.js +128 -29
- package/dist/config/index.js +1 -2
- package/dist/contracts/abuse.js +9 -24
- package/dist/contracts/access-profiles.d.ts +86 -0
- package/dist/contracts/access-profiles.js +89 -0
- package/dist/contracts/access.d.ts +24 -30
- package/dist/contracts/access.js +33 -64
- package/dist/contracts/activity.d.ts +18 -1
- package/dist/contracts/activity.js +72 -26
- package/dist/contracts/analytics.js +8 -10
- package/dist/contracts/api-keys.d.ts +77 -52
- package/dist/contracts/api-keys.js +44 -24
- package/dist/contracts/application-journal.d.ts +216 -0
- package/dist/contracts/application-journal.js +167 -0
- package/dist/contracts/auth.d.ts +90 -17
- package/dist/contracts/auth.js +86 -17
- package/dist/contracts/beta.d.ts +9 -4
- package/dist/contracts/beta.js +20 -16
- package/dist/contracts/billing.d.ts +2 -1
- package/dist/contracts/billing.js +37 -11
- package/dist/contracts/bootstrap.d.ts +791 -0
- package/dist/contracts/bootstrap.js +51 -0
- package/dist/contracts/builds.d.ts +209 -18
- package/dist/contracts/builds.js +93 -27
- package/dist/contracts/channels.d.ts +43 -0
- package/dist/contracts/channels.js +25 -9
- package/dist/contracts/cli.d.ts +7 -0
- package/dist/contracts/cli.js +6 -0
- package/dist/contracts/collab-public.d.ts +1 -1
- package/dist/contracts/collab-public.js +5 -8
- package/dist/contracts/comments.d.ts +44 -34
- package/dist/contracts/comments.js +107 -77
- package/dist/contracts/commerce.d.ts +165 -0
- package/dist/contracts/commerce.js +146 -0
- package/dist/contracts/common.d.ts +3 -3
- package/dist/contracts/common.js +20 -31
- package/dist/contracts/content-contract-verification.d.ts +521 -0
- package/dist/contracts/content-contract-verification.js +320 -0
- package/dist/contracts/content-platform-fixture.d.ts +1278 -0
- package/dist/contracts/content-platform-fixture.js +44 -0
- package/dist/contracts/content-program.d.ts +994 -0
- package/dist/contracts/content-program.js +658 -0
- package/dist/contracts/content-sync.d.ts +290 -0
- package/dist/contracts/content-sync.js +167 -0
- package/dist/contracts/content.d.ts +432 -0
- package/dist/contracts/content.js +303 -0
- package/dist/contracts/continuation.d.ts +17 -1
- package/dist/contracts/continuation.js +23 -23
- package/dist/contracts/countries.js +3 -4
- package/dist/contracts/crons.d.ts +52 -0
- package/dist/contracts/crons.js +60 -0
- package/dist/contracts/dashboard-prefs.d.ts +56 -0
- package/dist/contracts/dashboard-prefs.js +51 -0
- package/dist/contracts/device-auth.d.ts +234 -37
- package/dist/contracts/device-auth.js +267 -53
- package/dist/contracts/docs.d.ts +1 -5
- package/dist/contracts/docs.js +7 -15
- package/dist/contracts/domains.d.ts +501 -93
- package/dist/contracts/domains.js +193 -55
- package/dist/contracts/email-preferences.d.ts +3 -3
- package/dist/contracts/email-preferences.js +6 -7
- package/dist/contracts/enums.d.ts +27 -26
- package/dist/contracts/enums.js +68 -61
- package/dist/contracts/error-code-meta.d.ts +283 -7
- package/dist/contracts/error-code-meta.js +97 -5
- package/dist/contracts/error-codes.d.ts +5 -5
- package/dist/contracts/error-codes.js +82 -17
- package/dist/contracts/events.d.ts +100 -20
- package/dist/contracts/events.js +107 -20
- package/dist/contracts/execution.d.ts +48 -64
- package/dist/contracts/execution.js +52 -62
- package/dist/contracts/feature-lifecycle.d.ts +73 -27
- package/dist/contracts/feature-lifecycle.js +86 -26
- package/dist/contracts/features.d.ts +68 -19
- package/dist/contracts/features.js +42 -41
- package/dist/contracts/fixtures/content-platform-v1.json +1108 -0
- package/dist/contracts/frame-session.d.ts +192 -0
- package/dist/contracts/frame-session.js +164 -0
- package/dist/contracts/functions.d.ts +338 -164
- package/dist/contracts/functions.js +367 -198
- package/dist/contracts/git.d.ts +27 -33
- package/dist/contracts/git.js +10 -11
- package/dist/contracts/grant-copy.d.ts +43 -0
- package/dist/contracts/grant-copy.js +44 -0
- package/dist/contracts/grants.d.ts +62 -54
- package/dist/contracts/grants.js +124 -23
- package/dist/contracts/ids.d.ts +4 -1
- package/dist/contracts/ids.js +6 -3
- package/dist/contracts/internal.d.ts +8 -18
- package/dist/contracts/internal.js +13 -14
- package/dist/contracts/mcp.d.ts +28 -0
- package/dist/contracts/mcp.js +28 -0
- package/dist/contracts/me.d.ts +6 -1
- package/dist/contracts/me.js +12 -6
- package/dist/contracts/notifications.d.ts +27 -29
- package/dist/contracts/notifications.js +9 -4
- package/dist/contracts/oauth-resources.d.ts +112 -10
- package/dist/contracts/oauth-resources.js +116 -11
- package/dist/contracts/oauth-scope-actions.d.ts +90 -0
- package/dist/contracts/oauth-scope-actions.js +126 -0
- package/dist/contracts/operations.d.ts +27 -4
- package/dist/contracts/operations.js +12 -6
- package/dist/contracts/pages.d.ts +31 -7
- package/dist/contracts/pages.js +22 -5
- package/dist/contracts/partner-notifications.d.ts +3 -0
- package/dist/contracts/partner-notifications.js +65 -0
- package/dist/contracts/{platform.d.ts → partner.d.ts} +29 -42
- package/dist/contracts/{platform.js → partner.js} +27 -40
- package/dist/contracts/plan-policy.js +1 -1
- package/dist/contracts/principal-assertion.d.ts +43 -0
- package/dist/contracts/principal-assertion.js +67 -0
- package/dist/contracts/principals.d.ts +73 -0
- package/dist/contracts/principals.js +59 -0
- package/dist/contracts/privacy.d.ts +11 -0
- package/dist/contracts/privacy.js +17 -0
- package/dist/contracts/problem-document.js +3 -4
- package/dist/contracts/publish-archive.d.ts +269 -161
- package/dist/contracts/publish-archive.js +11 -1
- package/dist/contracts/push-new.d.ts +8 -8
- package/dist/contracts/quotas.js +5 -5
- package/dist/contracts/realtime.d.ts +52 -0
- package/dist/contracts/realtime.js +54 -0
- package/dist/contracts/repository-connections.d.ts +44 -31
- package/dist/contracts/repository-connections.js +17 -5
- package/dist/contracts/resources.d.ts +105 -14
- package/dist/contracts/resources.js +150 -26
- package/dist/contracts/route-inventory.d.ts +358 -0
- package/dist/contracts/route-inventory.js +141 -0
- package/dist/contracts/runtime-api.d.ts +206 -82
- package/dist/contracts/runtime-api.js +131 -70
- package/dist/contracts/runtime-app.d.ts +13 -23
- package/dist/contracts/runtime-app.js +39 -24
- package/dist/contracts/runtime-components.d.ts +143 -0
- package/dist/contracts/runtime-components.js +199 -0
- package/dist/contracts/runtime-db.d.ts +49 -23
- package/dist/contracts/runtime-db.js +87 -22
- package/dist/contracts/runtime-purge.d.ts +8 -0
- package/dist/contracts/runtime-purge.js +5 -0
- package/dist/contracts/runtime-services.d.ts +43 -75
- package/dist/contracts/runtime-services.js +29 -49
- package/dist/contracts/runtime-storage.d.ts +15 -14
- package/dist/contracts/runtime-storage.js +30 -14
- package/dist/contracts/sf-config-v1.d.ts +48 -14
- package/dist/contracts/slugs.js +13 -4
- package/dist/contracts/space-config.d.ts +283 -19
- package/dist/contracts/space-config.js +430 -80
- package/dist/contracts/spaces.d.ts +376 -290
- package/dist/contracts/spaces.js +200 -135
- package/dist/contracts/superadmin-activity.d.ts +3 -43
- package/dist/contracts/superadmin-activity.js +6 -30
- package/dist/contracts/superadmin-emails.d.ts +1 -0
- package/dist/contracts/superadmin-emails.js +17 -1
- package/dist/contracts/superadmin-runtime.d.ts +199 -0
- package/dist/contracts/superadmin-runtime.js +141 -0
- package/dist/contracts/superadmin-search.d.ts +22 -2
- package/dist/contracts/superadmin-search.js +14 -6
- package/dist/contracts/superadmin-spaces.d.ts +438 -189
- package/dist/contracts/superadmin-spaces.js +131 -25
- package/dist/contracts/superadmin-teams.d.ts +5 -2
- package/dist/contracts/superadmin-teams.js +1 -2
- package/dist/contracts/superadmin-tenants.d.ts +627 -12
- package/dist/contracts/superadmin-tenants.js +32 -13
- package/dist/contracts/superadmin.d.ts +232 -37
- package/dist/contracts/superadmin.js +106 -22
- package/dist/contracts/tags.d.ts +85 -58
- package/dist/contracts/tags.js +47 -37
- package/dist/contracts/teams.d.ts +86 -26
- package/dist/contracts/teams.js +90 -31
- package/dist/contracts/tenants.d.ts +135 -0
- package/dist/contracts/tenants.js +120 -0
- package/dist/contracts/test-triggers.d.ts +70 -0
- package/dist/contracts/test-triggers.js +116 -0
- package/dist/contracts/theme-json.js +3 -8
- package/dist/contracts/transfers.d.ts +1 -0
- package/dist/contracts/transfers.js +3 -2
- package/dist/contracts/usage.d.ts +209 -0
- package/dist/contracts/usage.js +124 -12
- package/dist/contracts/variables.d.ts +2 -2
- package/dist/contracts/variables.js +9 -13
- package/dist/contracts/webhooks.d.ts +13 -5
- package/dist/contracts/webhooks.js +3 -1
- package/dist/contracts/zero.d.ts +72 -81
- package/dist/contracts/zero.js +80 -78
- package/dist/dashboard-paths/index.d.ts +24 -21
- package/dist/dashboard-paths/index.js +35 -47
- package/dist/dashboard-paths/route-reservations.generated.d.ts +2 -0
- package/dist/dashboard-paths/route-reservations.generated.js +36 -0
- package/dist/docs/agent-arrival.d.ts +92 -0
- package/dist/docs/agent-arrival.js +227 -0
- package/dist/docs/agent-output-policy.d.ts +6 -0
- package/dist/docs/agent-output-policy.js +22 -0
- package/dist/docs/agent-prose.d.ts +12 -18
- package/dist/docs/agent-prose.js +73 -51
- package/dist/docs/agent-setup.d.ts +72 -41
- package/dist/docs/agent-setup.js +339 -436
- package/dist/docs/catalog.d.ts +153 -95
- package/dist/docs/catalog.js +163 -48
- package/dist/docs/error-docs.d.ts +2098 -1
- package/dist/docs/error-docs.js +421 -144
- package/dist/docs/index-build.d.ts +0 -1
- package/dist/docs/index-build.js +2 -3
- package/dist/docs/page-context-prompt.d.ts +77 -0
- package/dist/docs/page-context-prompt.js +131 -0
- package/dist/docs/reference-urls.d.ts +46 -0
- package/dist/docs/reference-urls.js +79 -0
- package/dist/docs/search.d.ts +6 -8
- package/dist/docs/search.js +10 -13
- package/dist/docs/skill-distribution.d.ts +4 -1
- package/dist/docs/skill-distribution.js +10 -5
- package/dist/docs/skills.d.ts +120 -120
- package/dist/docs/skills.js +121 -73
- package/dist/docs/start-prompts.d.ts +45 -0
- package/dist/docs/start-prompts.js +62 -0
- package/dist/domain-exploration.js +9 -13
- package/dist/og-template.d.ts +56 -0
- package/dist/og-template.js +56 -0
- package/dist/slug-policy/index.js +5 -11
- package/dist/test-helpers/fetch-stub.js +1 -0
- package/dist/utils/browser-credential.d.ts +13 -6
- package/dist/utils/browser-credential.js +14 -7
- package/dist/utils/build-settings.d.ts +21 -1
- package/dist/utils/build-settings.js +133 -15
- package/dist/utils/canonical-json.d.ts +3 -5
- package/dist/utils/canonical-json.js +4 -5
- package/dist/utils/cast-transport.d.ts +5 -17
- package/dist/utils/cast-transport.js +6 -19
- package/dist/utils/claim-token.js +1 -2
- package/dist/utils/comment-avatars.js +4 -6
- package/dist/utils/concurrency.js +3 -3
- package/dist/utils/content-type.d.ts +7 -6
- package/dist/utils/content-type.js +73 -51
- package/dist/utils/credential-policy.d.ts +50 -6
- package/dist/utils/credential-policy.js +126 -59
- package/dist/utils/dns-instructions.js +9 -9
- package/dist/utils/egress-policy.fixtures.json +1 -1
- package/dist/utils/error-code.js +1 -0
- package/dist/utils/generate-space-name.d.ts +3 -8
- package/dist/utils/generate-space-name.js +3 -8
- package/dist/utils/grant-decision.fixtures.json +2 -2
- package/dist/utils/grants.d.ts +0 -1
- package/dist/utils/grants.js +7 -8
- package/dist/utils/gravatar.d.ts +2 -4
- package/dist/utils/gravatar.js +6 -12
- package/dist/utils/id-hints.js +14 -23
- package/dist/utils/idempotency.d.ts +3 -3
- package/dist/utils/idempotency.js +6 -7
- package/dist/utils/local-space-state.d.ts +23 -26
- package/dist/utils/local-space-state.js +46 -46
- package/dist/utils/oauth-signed-query.d.ts +3 -5
- package/dist/utils/oauth-signed-query.js +6 -9
- package/dist/utils/one-shot-replay.d.ts +7 -6
- package/dist/utils/one-shot-replay.js +3 -5
- package/dist/utils/page-colors.d.ts +15 -19
- package/dist/utils/page-colors.js +23 -45
- package/dist/utils/page-fonts.d.ts +1 -1
- package/dist/utils/page-fonts.js +8 -20
- package/dist/utils/page-preview.d.ts +0 -1
- package/dist/utils/page-preview.js +0 -1
- package/dist/utils/pages.d.ts +33 -3
- package/dist/utils/pages.js +83 -30
- package/dist/utils/privacy-regions.d.ts +19 -0
- package/dist/utils/privacy-regions.js +91 -0
- package/dist/utils/publish-form-data.d.ts +4 -5
- package/dist/utils/publish-form-data.js +2 -3
- package/dist/utils/publish-policy.d.ts +11 -17
- package/dist/utils/publish-policy.fixtures.json +11 -5
- package/dist/utils/publish-policy.js +65 -110
- package/dist/utils/query-client.d.ts +2 -0
- package/dist/utils/query-client.js +10 -1
- package/dist/utils/runtime-paths.d.ts +4 -4
- package/dist/utils/runtime-paths.js +6 -8
- package/dist/utils/runtime-upload.d.ts +9 -0
- package/dist/utils/runtime-upload.js +12 -0
- package/dist/utils/secure-local-file.d.ts +3 -3
- package/dist/utils/secure-local-file.js +23 -40
- package/dist/utils/space-config.d.ts +12 -15
- package/dist/utils/space-config.js +13 -16
- package/dist/utils/static-runtime-policy.d.ts +10 -7
- package/dist/utils/static-runtime-policy.fixtures.json +38 -41
- package/dist/utils/static-runtime-policy.generated.d.ts +16 -0
- package/dist/utils/static-runtime-policy.generated.js +70 -0
- package/dist/utils/static-runtime-policy.js +31 -132
- package/dist/utils/storage-policy.js +1 -2
- package/dist/utils/upload-session.d.ts +4 -1
- package/dist/utils/upload-session.js +41 -19
- package/dist/utils/version-path.js +11 -19
- package/dist/utils/wpcom-auth-redirects.d.ts +5 -14
- package/dist/utils/wpcom-auth-redirects.js +1 -4
- package/dist/vocabulary.d.ts +13 -13
- package/dist/vocabulary.js +52 -27
- package/package.json +15 -18
- package/dist/agents/client-registry.d.ts +0 -22
- package/dist/agents/client-registry.js +0 -41
- package/dist/docs/agent-handoff-document.d.ts +0 -15
- package/dist/docs/agent-handoff-document.js +0 -180
- package/dist/docs/agent-solutions.d.ts +0 -110
- package/dist/docs/agent-solutions.js +0 -183
- package/dist/utils/query-keys.d.ts +0 -84
- package/dist/utils/query-keys.js +0 -108
package/dist/contracts/common.js
CHANGED
|
@@ -6,14 +6,13 @@ export const SpaceViewerSchema = z.object({
|
|
|
6
6
|
description: z.string().nullable(),
|
|
7
7
|
ogImagePath: z.string().nullable(),
|
|
8
8
|
});
|
|
9
|
-
// The ONE Diagnostic shape (
|
|
10
|
-
// resource (versions, builds, bindings, assignments, exports, imports, transfers)
|
|
9
|
+
// The ONE Diagnostic shape (the platform spec). Every lifecycle resource
|
|
11
10
|
// carries `diagnostics: Diagnostic[]` using exactly this vocabulary.
|
|
12
11
|
export const baseDiagnosticSchema = z.object({
|
|
13
12
|
code: z
|
|
14
13
|
.string()
|
|
15
14
|
.describe("Stable snake_case diagnostic code naming the public contract that produced it."),
|
|
16
|
-
severity: diagnosticSeverity.describe("How actionable the diagnostic is
|
|
15
|
+
severity: diagnosticSeverity.describe("How actionable the diagnostic is."),
|
|
17
16
|
message: z.string().describe("Human-readable explanation with enough detail to act on."),
|
|
18
17
|
path: z
|
|
19
18
|
.string()
|
|
@@ -26,13 +25,13 @@ export const baseDiagnosticSchema = z.object({
|
|
|
26
25
|
fix: z
|
|
27
26
|
.string()
|
|
28
27
|
.nullish()
|
|
29
|
-
.describe("Concrete, agent-actionable remediation hint
|
|
28
|
+
.describe("Concrete, agent-actionable remediation hint, when one can be derived."),
|
|
30
29
|
retryable: z
|
|
31
30
|
.boolean()
|
|
32
31
|
.nullish()
|
|
33
32
|
.describe("Whether retrying the same operation can resolve this diagnostic without the caller changing anything."),
|
|
34
33
|
});
|
|
35
|
-
// Canonical DnsInstruction (
|
|
34
|
+
// Canonical DnsInstruction (the platform spec): provider vocabulary
|
|
36
35
|
// never leaks into `purpose`.
|
|
37
36
|
export const DnsInstructionSchema = z.object({
|
|
38
37
|
type: z.enum(["A", "AAAA", "CNAME", "TXT", "ALIAS"]),
|
|
@@ -41,9 +40,9 @@ export const DnsInstructionSchema = z.object({
|
|
|
41
40
|
ttl: z.number().int().optional(),
|
|
42
41
|
purpose: z.enum(["verification", "routing", "ssl"]).describe("Why this record is needed."),
|
|
43
42
|
});
|
|
44
|
-
// One shared requiredActions vocabulary (
|
|
45
|
-
//
|
|
46
|
-
//
|
|
43
|
+
// One shared requiredActions vocabulary (the platform spec): the concrete user
|
|
44
|
+
// steps that unblock a resource. New action types are added HERE, never
|
|
45
|
+
// as per-resource variants.
|
|
47
46
|
export const requiredActionSchema = z.discriminatedUnion("type", [
|
|
48
47
|
z
|
|
49
48
|
.object({
|
|
@@ -64,14 +63,13 @@ export const requiredActionSchema = z.discriminatedUnion("type", [
|
|
|
64
63
|
export const requiredActionsSchema = z
|
|
65
64
|
.array(requiredActionSchema)
|
|
66
65
|
.describe("Concrete user steps that unblock this resource, using the one shared vocabulary.");
|
|
67
|
-
// The error shape (
|
|
68
|
-
// is one RFC 9457 problem
|
|
69
|
-
// `title`
|
|
70
|
-
// `pointer` (RFC 6901), `details`, `suggestions`, `next`, and `requestId` are extension members.
|
|
66
|
+
// The error shape (the platform spec "Global API Conventions"): every 4xx/5xx
|
|
67
|
+
// body is one RFC 9457 problem document served as `application/problem+json`.
|
|
68
|
+
// `type` and `title` derive mechanically from `code` (see contracts/error-codes.ts).
|
|
71
69
|
export const ProblemDetailsSchema = z.object({
|
|
72
70
|
type: z
|
|
73
71
|
.string()
|
|
74
|
-
.describe("Problem type URI
|
|
72
|
+
.describe("Problem type URI resolving to the error docs page. The server derives it mechanically from `code` against the docs origin."),
|
|
75
73
|
title: z
|
|
76
74
|
.string()
|
|
77
75
|
.describe("Short human-readable summary of the problem type. The server derives it mechanically from `code`."),
|
|
@@ -93,9 +91,9 @@ export const ProblemDetailsSchema = z.object({
|
|
|
93
91
|
.describe("Copy-pasteable commands or API requests an agent can run next."),
|
|
94
92
|
requestId: z.string().describe("The request id to quote when contacting support."),
|
|
95
93
|
});
|
|
96
|
-
// Success envelope (
|
|
94
|
+
// Success envelope (the platform spec "Global API Conventions"): `{ data: T }` for
|
|
97
95
|
// single resources and mutations, `{ data: T[], pagination }` for lists. Mutations whose work
|
|
98
|
-
// outlives the request also carry `operation
|
|
96
|
+
// outlives the request also carry `operation`. Wrap with `.extend({ operation: ... })`.
|
|
99
97
|
export function dataEnvelope(data) {
|
|
100
98
|
return z.object({ data });
|
|
101
99
|
}
|
|
@@ -121,16 +119,10 @@ export const CursorPaginationSchema = z.object({
|
|
|
121
119
|
hasMore: z.boolean().describe("Whether another page exists after this one."),
|
|
122
120
|
});
|
|
123
121
|
export const CURSOR_MAX_LENGTH = 4_096;
|
|
124
|
-
// The ONE list query shape
|
|
125
|
-
//
|
|
122
|
+
// The ONE list query shape, newest-first. Extend with module-specific filters;
|
|
123
|
+
// never redeclare `limit`/`cursor`.
|
|
126
124
|
export const cursorListQuerySchema = z.object({
|
|
127
|
-
limit: z.coerce
|
|
128
|
-
.number()
|
|
129
|
-
.int()
|
|
130
|
-
.min(1)
|
|
131
|
-
.max(100)
|
|
132
|
-
.default(20)
|
|
133
|
-
.describe("Page size: default 20, maximum 100."),
|
|
125
|
+
limit: z.coerce.number().int().min(1).max(100).default(20).describe("Page size."),
|
|
134
126
|
cursor: z
|
|
135
127
|
.string()
|
|
136
128
|
.min(1)
|
|
@@ -138,9 +130,7 @@ export const cursorListQuerySchema = z.object({
|
|
|
138
130
|
.optional()
|
|
139
131
|
.describe("Opaque cursor from the previous page's `nextCursor`."),
|
|
140
132
|
});
|
|
141
|
-
// The operator-only offset list-response shape (superadmin surfaces)
|
|
142
|
-
// items array, plus `total`/`limit`/`offset` and the offset `pagination` block.
|
|
143
|
-
// Callers pass the items key, item schema, and their pagination schema so the
|
|
133
|
+
// The operator-only offset list-response shape (superadmin surfaces). The
|
|
144
134
|
// emitted object is byte-for-byte the hand-written
|
|
145
135
|
// `z.object({ <key>: z.array(...), total, limit, offset, pagination })`.
|
|
146
136
|
export function makeOffsetListSchema(itemsKey, item, pagination) {
|
|
@@ -172,10 +162,9 @@ export const AsyncOperationSchema = z.object({
|
|
|
172
162
|
createdAt: z.string().datetime(),
|
|
173
163
|
finishedAt: z.string().datetime().optional(),
|
|
174
164
|
});
|
|
175
|
-
// Mutation envelope for async-capable verbs: the post-mutation resource in
|
|
176
|
-
// plus `operation` when work outlives the request
|
|
177
|
-
//
|
|
178
|
-
// synchronously, so the wire shape is deterministic per route.
|
|
165
|
+
// Mutation envelope for async-capable verbs: the post-mutation resource in
|
|
166
|
+
// `data`, plus `operation` when work outlives the request. `operation` is always
|
|
167
|
+
// present, so the wire shape is deterministic per route.
|
|
179
168
|
export function mutationEnvelope(data) {
|
|
180
169
|
return z.object({
|
|
181
170
|
data,
|
|
@@ -0,0 +1,521 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { applicationJournalDeliveryClaimV1Schema, applicationJournalDeliveryReceiptV1Schema, applicationJournalEntryV1Schema, type ApplicationJournalDeliveryClaimV1, type ApplicationJournalDeliveryReceiptV1, type ApplicationJournalEntryV1 } from "./application-journal.js";
|
|
3
|
+
import { contentProgramReleaseV1Schema, type ContentProgramReleaseV1, type ContentProgramSha256 } from "./content-program.js";
|
|
4
|
+
import { contentMarkdownConflictProblemSchema, syncReconciliationExchangeV1Schema, syncSourceAcknowledgementV1Schema, syncLedgerV1Schema, type ContentMarkdownConflictProblem, type SyncReconciliationExchangeV1, type SyncSourceAcknowledgementV1, type SyncLedgerV1 } from "./content-sync.js";
|
|
5
|
+
import { frameLaunchTicketClaimsV1Schema, frameSessionClaimsV1Schema, type FrameLaunchTicketClaimsV1, type FrameSessionClaimsV1 } from "./frame-session.js";
|
|
6
|
+
import { principalAssertionV1Schema, type PrincipalAssertionV1 } from "./principal-assertion.js";
|
|
7
|
+
import { routeInventoryV1Schema, spaceRouteSnapshotV1Schema, type RouteInventoryV1, type SpaceRouteSnapshotV1 } from "./route-inventory.js";
|
|
8
|
+
import { programRequirementsV1Schema, runtimeComponentInventoryV1Schema, runtimeComponentPlacementReceiptV1Schema, runtimeComponentPlacementTargetV1Schema, type RuntimeComponentPlacementReceiptV1, type RuntimeComponentInventoryV1, type RuntimeComponentPlacementTargetV1 } from "./runtime-components.js";
|
|
9
|
+
export type ContentContractDigestInput = string | number | boolean | null | undefined | ContentContractDigestInput[] | {
|
|
10
|
+
[key: string]: ContentContractDigestInput;
|
|
11
|
+
};
|
|
12
|
+
export type ContentContractArtifactPayload = {
|
|
13
|
+
[key: string]: ContentContractDigestInput;
|
|
14
|
+
inputDigest?: ContentProgramSha256;
|
|
15
|
+
};
|
|
16
|
+
export declare function contentContractSha256(value: ContentContractDigestInput): Promise<ContentProgramSha256>;
|
|
17
|
+
export declare function contentContractTextSha256(value: string): Promise<ContentProgramSha256>;
|
|
18
|
+
export declare function verifyContentProgramReleaseV1(value: z.input<typeof contentProgramReleaseV1Schema>): Promise<ContentProgramReleaseV1>;
|
|
19
|
+
export declare const compiledContentProgramBundleV1Schema: z.ZodObject<{
|
|
20
|
+
capsule: z.ZodType<import("./content-program.js").ContentProgramJsonValue, unknown, z.core.$ZodTypeInternals<import("./content-program.js").ContentProgramJsonValue, unknown>>;
|
|
21
|
+
artifacts: z.ZodObject<{
|
|
22
|
+
program: z.ZodObject<{
|
|
23
|
+
format: z.ZodLiteral<"spacefast.zero-wordpress">;
|
|
24
|
+
version: z.ZodLiteral<1>;
|
|
25
|
+
revision: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
|
|
26
|
+
schemas: z.ZodArray<z.ZodObject<{
|
|
27
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
|
|
28
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
|
|
29
|
+
schema: z.ZodType<import("./content-program.js").ContentProgramJsonValue, unknown, z.core.$ZodTypeInternals<import("./content-program.js").ContentProgramJsonValue, unknown>>;
|
|
30
|
+
}, z.core.$strict>>;
|
|
31
|
+
wordpress: z.ZodObject<{
|
|
32
|
+
format: z.ZodLiteral<"spacefast.wordpress-program">;
|
|
33
|
+
version: z.ZodLiteral<1>;
|
|
34
|
+
resources: z.ZodArray<z.ZodObject<{
|
|
35
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentResourceId", "out">;
|
|
36
|
+
name: z.ZodString;
|
|
37
|
+
label: z.ZodString;
|
|
38
|
+
kind: z.ZodEnum<{
|
|
39
|
+
media: "media";
|
|
40
|
+
posts: "posts";
|
|
41
|
+
pages: "pages";
|
|
42
|
+
collection: "collection";
|
|
43
|
+
}>;
|
|
44
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
45
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentFieldId", "out">;
|
|
46
|
+
name: z.ZodString;
|
|
47
|
+
label: z.ZodString;
|
|
48
|
+
required: z.ZodBoolean;
|
|
49
|
+
value: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
50
|
+
kind: z.ZodLiteral<"text">;
|
|
51
|
+
multiline: z.ZodBoolean;
|
|
52
|
+
maxLength: z.ZodNullable<z.ZodNumber>;
|
|
53
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
54
|
+
kind: z.ZodLiteral<"number">;
|
|
55
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
56
|
+
kind: z.ZodLiteral<"boolean">;
|
|
57
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
58
|
+
kind: z.ZodLiteral<"datetime">;
|
|
59
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
60
|
+
kind: z.ZodLiteral<"blocks">;
|
|
61
|
+
allowed: z.ZodUnion<readonly [z.ZodLiteral<"any">, z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentComponentId", "out">>]>;
|
|
62
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
63
|
+
kind: z.ZodLiteral<"media">;
|
|
64
|
+
multiple: z.ZodBoolean;
|
|
65
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
66
|
+
kind: z.ZodLiteral<"reference">;
|
|
67
|
+
target: z.core.$ZodBranded<z.ZodString, "ContentResourceId", "out">;
|
|
68
|
+
multiple: z.ZodBoolean;
|
|
69
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
70
|
+
kind: z.ZodLiteral<"enum">;
|
|
71
|
+
values: z.ZodArray<z.ZodString>;
|
|
72
|
+
multiple: z.ZodBoolean;
|
|
73
|
+
}, z.core.$strict>], "kind">;
|
|
74
|
+
}, z.core.$strict>>;
|
|
75
|
+
publicRead: z.ZodBoolean;
|
|
76
|
+
}, z.core.$strict>>;
|
|
77
|
+
}, z.core.$strict>;
|
|
78
|
+
tables: z.ZodArray<z.ZodObject<{
|
|
79
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentTableId", "out">;
|
|
80
|
+
name: z.ZodString;
|
|
81
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
82
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentFieldId", "out">;
|
|
83
|
+
name: z.ZodString;
|
|
84
|
+
nullable: z.ZodBoolean;
|
|
85
|
+
value: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
86
|
+
kind: z.ZodLiteral<"string">;
|
|
87
|
+
maxLength: z.ZodNullable<z.ZodNumber>;
|
|
88
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
89
|
+
kind: z.ZodLiteral<"number">;
|
|
90
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
91
|
+
kind: z.ZodLiteral<"boolean">;
|
|
92
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
93
|
+
kind: z.ZodLiteral<"datetime">;
|
|
94
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
95
|
+
kind: z.ZodLiteral<"json">;
|
|
96
|
+
}, z.core.$strict>], "kind">;
|
|
97
|
+
}, z.core.$strict>>;
|
|
98
|
+
indexes: z.ZodArray<z.ZodObject<{
|
|
99
|
+
id: z.ZodString;
|
|
100
|
+
fields: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentFieldId", "out">>;
|
|
101
|
+
unique: z.ZodBoolean;
|
|
102
|
+
}, z.core.$strict>>;
|
|
103
|
+
}, z.core.$strict>>;
|
|
104
|
+
abilities: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
105
|
+
kind: z.ZodLiteral<"query">;
|
|
106
|
+
mode: z.ZodLiteral<"read">;
|
|
107
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">;
|
|
108
|
+
input: z.ZodObject<{
|
|
109
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
|
|
110
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
|
|
111
|
+
}, z.core.$strict>;
|
|
112
|
+
output: z.ZodObject<{
|
|
113
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
|
|
114
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
|
|
115
|
+
}, z.core.$strict>;
|
|
116
|
+
permits: z.ZodArray<z.ZodEnum<{
|
|
117
|
+
"page.view": "page.view";
|
|
118
|
+
"comments.read": "comments.read";
|
|
119
|
+
"comments.write": "comments.write";
|
|
120
|
+
"content.publish": "content.publish";
|
|
121
|
+
"access.manage": "access.manage";
|
|
122
|
+
}>>;
|
|
123
|
+
reads: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentResourceRef", "out">>;
|
|
124
|
+
writes: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentResourceRef", "out">>;
|
|
125
|
+
exposure: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
126
|
+
kind: z.ZodLiteral<"named">;
|
|
127
|
+
named: z.ZodLiteral<true>;
|
|
128
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
129
|
+
kind: z.ZodLiteral<"routed">;
|
|
130
|
+
named: z.ZodLiteral<true>;
|
|
131
|
+
route: z.ZodObject<{
|
|
132
|
+
id: z.ZodString;
|
|
133
|
+
method: z.ZodEnum<{
|
|
134
|
+
POST: "POST";
|
|
135
|
+
PUT: "PUT";
|
|
136
|
+
GET: "GET";
|
|
137
|
+
HEAD: "HEAD";
|
|
138
|
+
PATCH: "PATCH";
|
|
139
|
+
DELETE: "DELETE";
|
|
140
|
+
OPTIONS: "OPTIONS";
|
|
141
|
+
}>;
|
|
142
|
+
path: z.ZodString;
|
|
143
|
+
admission: z.ZodEnum<{
|
|
144
|
+
public: "public";
|
|
145
|
+
authenticated: "authenticated";
|
|
146
|
+
}>;
|
|
147
|
+
}, z.core.$strict>;
|
|
148
|
+
}, z.core.$strict>], "kind">;
|
|
149
|
+
cache: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
150
|
+
kind: z.ZodLiteral<"none">;
|
|
151
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
152
|
+
kind: z.ZodLiteral<"private">;
|
|
153
|
+
maxAgeSeconds: z.ZodNumber;
|
|
154
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
155
|
+
kind: z.ZodLiteral<"public">;
|
|
156
|
+
maxAgeSeconds: z.ZodNumber;
|
|
157
|
+
staleWhileRevalidateSeconds: z.ZodNumber;
|
|
158
|
+
}, z.core.$strict>], "kind">;
|
|
159
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
160
|
+
kind: z.ZodLiteral<"mutation">;
|
|
161
|
+
mode: z.ZodLiteral<"write">;
|
|
162
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">;
|
|
163
|
+
input: z.ZodObject<{
|
|
164
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
|
|
165
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
|
|
166
|
+
}, z.core.$strict>;
|
|
167
|
+
output: z.ZodObject<{
|
|
168
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
|
|
169
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
|
|
170
|
+
}, z.core.$strict>;
|
|
171
|
+
permits: z.ZodArray<z.ZodEnum<{
|
|
172
|
+
"page.view": "page.view";
|
|
173
|
+
"comments.read": "comments.read";
|
|
174
|
+
"comments.write": "comments.write";
|
|
175
|
+
"content.publish": "content.publish";
|
|
176
|
+
"access.manage": "access.manage";
|
|
177
|
+
}>>;
|
|
178
|
+
reads: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentResourceRef", "out">>;
|
|
179
|
+
writes: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentResourceRef", "out">>;
|
|
180
|
+
exposure: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
181
|
+
kind: z.ZodLiteral<"named">;
|
|
182
|
+
named: z.ZodLiteral<true>;
|
|
183
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
184
|
+
kind: z.ZodLiteral<"routed">;
|
|
185
|
+
named: z.ZodLiteral<true>;
|
|
186
|
+
route: z.ZodObject<{
|
|
187
|
+
id: z.ZodString;
|
|
188
|
+
method: z.ZodEnum<{
|
|
189
|
+
POST: "POST";
|
|
190
|
+
PUT: "PUT";
|
|
191
|
+
GET: "GET";
|
|
192
|
+
HEAD: "HEAD";
|
|
193
|
+
PATCH: "PATCH";
|
|
194
|
+
DELETE: "DELETE";
|
|
195
|
+
OPTIONS: "OPTIONS";
|
|
196
|
+
}>;
|
|
197
|
+
path: z.ZodString;
|
|
198
|
+
admission: z.ZodEnum<{
|
|
199
|
+
public: "public";
|
|
200
|
+
authenticated: "authenticated";
|
|
201
|
+
}>;
|
|
202
|
+
}, z.core.$strict>;
|
|
203
|
+
}, z.core.$strict>], "kind">;
|
|
204
|
+
cache: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
205
|
+
kind: z.ZodLiteral<"none">;
|
|
206
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
207
|
+
kind: z.ZodLiteral<"private">;
|
|
208
|
+
maxAgeSeconds: z.ZodNumber;
|
|
209
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
210
|
+
kind: z.ZodLiteral<"public">;
|
|
211
|
+
maxAgeSeconds: z.ZodNumber;
|
|
212
|
+
staleWhileRevalidateSeconds: z.ZodNumber;
|
|
213
|
+
}, z.core.$strict>], "kind">;
|
|
214
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
215
|
+
kind: z.ZodLiteral<"endpoint">;
|
|
216
|
+
mode: z.ZodEnum<{
|
|
217
|
+
read: "read";
|
|
218
|
+
write: "write";
|
|
219
|
+
}>;
|
|
220
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">;
|
|
221
|
+
input: z.ZodObject<{
|
|
222
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
|
|
223
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
|
|
224
|
+
}, z.core.$strict>;
|
|
225
|
+
output: z.ZodObject<{
|
|
226
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
|
|
227
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
|
|
228
|
+
}, z.core.$strict>;
|
|
229
|
+
permits: z.ZodArray<z.ZodEnum<{
|
|
230
|
+
"page.view": "page.view";
|
|
231
|
+
"comments.read": "comments.read";
|
|
232
|
+
"comments.write": "comments.write";
|
|
233
|
+
"content.publish": "content.publish";
|
|
234
|
+
"access.manage": "access.manage";
|
|
235
|
+
}>>;
|
|
236
|
+
reads: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentResourceRef", "out">>;
|
|
237
|
+
writes: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentResourceRef", "out">>;
|
|
238
|
+
exposure: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
239
|
+
kind: z.ZodLiteral<"named">;
|
|
240
|
+
named: z.ZodLiteral<true>;
|
|
241
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
242
|
+
kind: z.ZodLiteral<"routed">;
|
|
243
|
+
named: z.ZodLiteral<true>;
|
|
244
|
+
route: z.ZodObject<{
|
|
245
|
+
id: z.ZodString;
|
|
246
|
+
method: z.ZodEnum<{
|
|
247
|
+
POST: "POST";
|
|
248
|
+
PUT: "PUT";
|
|
249
|
+
GET: "GET";
|
|
250
|
+
HEAD: "HEAD";
|
|
251
|
+
PATCH: "PATCH";
|
|
252
|
+
DELETE: "DELETE";
|
|
253
|
+
OPTIONS: "OPTIONS";
|
|
254
|
+
}>;
|
|
255
|
+
path: z.ZodString;
|
|
256
|
+
admission: z.ZodEnum<{
|
|
257
|
+
public: "public";
|
|
258
|
+
authenticated: "authenticated";
|
|
259
|
+
}>;
|
|
260
|
+
}, z.core.$strict>;
|
|
261
|
+
}, z.core.$strict>], "kind">;
|
|
262
|
+
cache: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
263
|
+
kind: z.ZodLiteral<"none">;
|
|
264
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
265
|
+
kind: z.ZodLiteral<"private">;
|
|
266
|
+
maxAgeSeconds: z.ZodNumber;
|
|
267
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
268
|
+
kind: z.ZodLiteral<"public">;
|
|
269
|
+
maxAgeSeconds: z.ZodNumber;
|
|
270
|
+
staleWhileRevalidateSeconds: z.ZodNumber;
|
|
271
|
+
}, z.core.$strict>], "kind">;
|
|
272
|
+
}, z.core.$strict>], "kind">>;
|
|
273
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
274
|
+
id: z.ZodString;
|
|
275
|
+
sourceKey: z.ZodString;
|
|
276
|
+
path: z.ZodString;
|
|
277
|
+
title: z.ZodString;
|
|
278
|
+
blockName: z.ZodLiteral<"zero/component">;
|
|
279
|
+
componentId: z.core.$ZodBranded<z.ZodString, "ContentComponentId", "out">;
|
|
280
|
+
props: z.ZodObject<{
|
|
281
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
|
|
282
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
|
|
283
|
+
}, z.core.$strict>;
|
|
284
|
+
}, z.core.$strict>>;
|
|
285
|
+
hooks: z.ZodArray<z.ZodObject<{
|
|
286
|
+
id: z.ZodString;
|
|
287
|
+
runtime: z.ZodEnum<{
|
|
288
|
+
php: "php";
|
|
289
|
+
quickjs: "quickjs";
|
|
290
|
+
}>;
|
|
291
|
+
artifact: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
|
|
292
|
+
export: z.ZodString;
|
|
293
|
+
}, z.core.$strict>>;
|
|
294
|
+
syncBindings: z.ZodArray<z.ZodObject<{
|
|
295
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentSyncBindingId", "out">;
|
|
296
|
+
resourceId: z.core.$ZodBranded<z.ZodString, "ContentResourceId", "out">;
|
|
297
|
+
fieldId: z.core.$ZodBranded<z.ZodString, "ContentFieldId", "out">;
|
|
298
|
+
source: z.ZodString;
|
|
299
|
+
slug: z.ZodString;
|
|
300
|
+
}, z.core.$strict>>;
|
|
301
|
+
}, z.core.$strict>;
|
|
302
|
+
executables: z.ZodObject<{
|
|
303
|
+
format: z.ZodLiteral<"spacefast.zero-executables">;
|
|
304
|
+
version: z.ZodLiteral<1>;
|
|
305
|
+
inputDigest: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
|
|
306
|
+
executables: z.ZodArray<z.ZodObject<{
|
|
307
|
+
id: z.ZodString;
|
|
308
|
+
runtime: z.ZodEnum<{
|
|
309
|
+
php: "php";
|
|
310
|
+
quickjs: "quickjs";
|
|
311
|
+
}>;
|
|
312
|
+
artifact: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
|
|
313
|
+
export: z.ZodString;
|
|
314
|
+
}, z.core.$strict>>;
|
|
315
|
+
}, z.core.$strict>;
|
|
316
|
+
sdk: z.ZodObject<{
|
|
317
|
+
format: z.ZodLiteral<"spacefast.sdk-descriptors">;
|
|
318
|
+
version: z.ZodLiteral<1>;
|
|
319
|
+
inputDigest: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
|
|
320
|
+
operations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
321
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">;
|
|
322
|
+
kind: z.ZodLiteral<"query">;
|
|
323
|
+
mode: z.ZodLiteral<"read">;
|
|
324
|
+
input: z.ZodObject<{
|
|
325
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
|
|
326
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
|
|
327
|
+
}, z.core.$strict>;
|
|
328
|
+
output: z.ZodObject<{
|
|
329
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
|
|
330
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
|
|
331
|
+
}, z.core.$strict>;
|
|
332
|
+
cache: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
333
|
+
kind: z.ZodLiteral<"none">;
|
|
334
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
335
|
+
kind: z.ZodLiteral<"private">;
|
|
336
|
+
maxAgeSeconds: z.ZodNumber;
|
|
337
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
338
|
+
kind: z.ZodLiteral<"public">;
|
|
339
|
+
maxAgeSeconds: z.ZodNumber;
|
|
340
|
+
staleWhileRevalidateSeconds: z.ZodNumber;
|
|
341
|
+
}, z.core.$strict>], "kind">;
|
|
342
|
+
invalidates: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">>;
|
|
343
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
344
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">;
|
|
345
|
+
kind: z.ZodLiteral<"mutation">;
|
|
346
|
+
mode: z.ZodLiteral<"write">;
|
|
347
|
+
input: z.ZodObject<{
|
|
348
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
|
|
349
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
|
|
350
|
+
}, z.core.$strict>;
|
|
351
|
+
output: z.ZodObject<{
|
|
352
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
|
|
353
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
|
|
354
|
+
}, z.core.$strict>;
|
|
355
|
+
cache: z.ZodObject<{
|
|
356
|
+
kind: z.ZodLiteral<"none">;
|
|
357
|
+
}, z.core.$strict>;
|
|
358
|
+
invalidates: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">>;
|
|
359
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
360
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">;
|
|
361
|
+
kind: z.ZodLiteral<"endpoint">;
|
|
362
|
+
mode: z.ZodEnum<{
|
|
363
|
+
read: "read";
|
|
364
|
+
write: "write";
|
|
365
|
+
}>;
|
|
366
|
+
input: z.ZodObject<{
|
|
367
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
|
|
368
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
|
|
369
|
+
}, z.core.$strict>;
|
|
370
|
+
output: z.ZodObject<{
|
|
371
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
|
|
372
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
|
|
373
|
+
}, z.core.$strict>;
|
|
374
|
+
cache: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
375
|
+
kind: z.ZodLiteral<"none">;
|
|
376
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
377
|
+
kind: z.ZodLiteral<"private">;
|
|
378
|
+
maxAgeSeconds: z.ZodNumber;
|
|
379
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
380
|
+
kind: z.ZodLiteral<"public">;
|
|
381
|
+
maxAgeSeconds: z.ZodNumber;
|
|
382
|
+
staleWhileRevalidateSeconds: z.ZodNumber;
|
|
383
|
+
}, z.core.$strict>], "kind">;
|
|
384
|
+
invalidates: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">>;
|
|
385
|
+
}, z.core.$strict>], "kind">>;
|
|
386
|
+
sync: z.ZodArray<z.ZodObject<{
|
|
387
|
+
id: z.core.$ZodBranded<z.ZodString, "ContentSyncBindingId", "out">;
|
|
388
|
+
resourceId: z.core.$ZodBranded<z.ZodString, "ContentResourceId", "out">;
|
|
389
|
+
source: z.ZodString;
|
|
390
|
+
}, z.core.$strict>>;
|
|
391
|
+
}, z.core.$strict>;
|
|
392
|
+
routes: z.ZodObject<{
|
|
393
|
+
format: z.ZodLiteral<"spacefast.route-contributions">;
|
|
394
|
+
version: z.ZodLiteral<1>;
|
|
395
|
+
inputDigest: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
|
|
396
|
+
routes: z.ZodArray<z.ZodObject<{
|
|
397
|
+
abilityId: z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">;
|
|
398
|
+
route: z.ZodObject<{
|
|
399
|
+
id: z.ZodString;
|
|
400
|
+
method: z.ZodEnum<{
|
|
401
|
+
POST: "POST";
|
|
402
|
+
PUT: "PUT";
|
|
403
|
+
GET: "GET";
|
|
404
|
+
HEAD: "HEAD";
|
|
405
|
+
PATCH: "PATCH";
|
|
406
|
+
DELETE: "DELETE";
|
|
407
|
+
OPTIONS: "OPTIONS";
|
|
408
|
+
}>;
|
|
409
|
+
path: z.ZodString;
|
|
410
|
+
admission: z.ZodEnum<{
|
|
411
|
+
public: "public";
|
|
412
|
+
authenticated: "authenticated";
|
|
413
|
+
}>;
|
|
414
|
+
}, z.core.$strict>;
|
|
415
|
+
}, z.core.$strict>>;
|
|
416
|
+
}, z.core.$strict>;
|
|
417
|
+
requirements: z.ZodObject<{
|
|
418
|
+
format: z.ZodLiteral<"spacefast.program-requirements">;
|
|
419
|
+
version: z.ZodLiteral<1>;
|
|
420
|
+
inputDigest: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
|
|
421
|
+
wordpressAbi: z.ZodLiteral<1>;
|
|
422
|
+
capabilities: z.ZodArray<z.core.$ZodBranded<z.ZodString, "RuntimeCapabilityId", "out">>;
|
|
423
|
+
}, z.core.$strict>;
|
|
424
|
+
}, z.core.$strict>;
|
|
425
|
+
compiled: z.ZodObject<{
|
|
426
|
+
format: z.ZodLiteral<"spacefast.compiled-program">;
|
|
427
|
+
version: z.ZodLiteral<1>;
|
|
428
|
+
program: z.ZodObject<{
|
|
429
|
+
format: z.ZodLiteral<"spacefast.zero-wordpress">;
|
|
430
|
+
version: z.ZodLiteral<1>;
|
|
431
|
+
inputDigest: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
|
|
432
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
|
|
433
|
+
bytes: z.ZodNumber;
|
|
434
|
+
mediaType: z.ZodLiteral<"application/json">;
|
|
435
|
+
}, z.core.$strict>;
|
|
436
|
+
executables: z.ZodObject<{
|
|
437
|
+
format: z.ZodLiteral<"spacefast.zero-executables">;
|
|
438
|
+
version: z.ZodLiteral<1>;
|
|
439
|
+
inputDigest: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
|
|
440
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
|
|
441
|
+
bytes: z.ZodNumber;
|
|
442
|
+
mediaType: z.ZodLiteral<"application/json">;
|
|
443
|
+
}, z.core.$strict>;
|
|
444
|
+
sdk: z.ZodObject<{
|
|
445
|
+
format: z.ZodLiteral<"spacefast.sdk-descriptors">;
|
|
446
|
+
version: z.ZodLiteral<1>;
|
|
447
|
+
inputDigest: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
|
|
448
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
|
|
449
|
+
bytes: z.ZodNumber;
|
|
450
|
+
mediaType: z.ZodLiteral<"application/json">;
|
|
451
|
+
}, z.core.$strict>;
|
|
452
|
+
routes: z.ZodObject<{
|
|
453
|
+
format: z.ZodLiteral<"spacefast.route-contributions">;
|
|
454
|
+
version: z.ZodLiteral<1>;
|
|
455
|
+
inputDigest: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
|
|
456
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
|
|
457
|
+
bytes: z.ZodNumber;
|
|
458
|
+
mediaType: z.ZodLiteral<"application/json">;
|
|
459
|
+
}, z.core.$strict>;
|
|
460
|
+
requirements: z.ZodObject<{
|
|
461
|
+
format: z.ZodLiteral<"spacefast.program-requirements">;
|
|
462
|
+
version: z.ZodLiteral<1>;
|
|
463
|
+
inputDigest: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
|
|
464
|
+
sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
|
|
465
|
+
bytes: z.ZodNumber;
|
|
466
|
+
mediaType: z.ZodLiteral<"application/json">;
|
|
467
|
+
}, z.core.$strict>;
|
|
468
|
+
}, z.core.$strict>;
|
|
469
|
+
}, z.core.$strict>;
|
|
470
|
+
export type CompiledContentProgramBundleV1 = z.infer<typeof compiledContentProgramBundleV1Schema>;
|
|
471
|
+
export declare function verifyCompiledContentProgramBundleV1(value: z.input<typeof compiledContentProgramBundleV1Schema>): Promise<CompiledContentProgramBundleV1>;
|
|
472
|
+
export declare function verifySyncLedgerV1(value: z.input<typeof syncLedgerV1Schema>): Promise<SyncLedgerV1>;
|
|
473
|
+
export declare function verifySyncReconciliationExchangeV1(value: z.input<typeof syncReconciliationExchangeV1Schema>, acknowledgement?: z.input<typeof syncSourceAcknowledgementV1Schema>): Promise<{
|
|
474
|
+
exchange: SyncReconciliationExchangeV1;
|
|
475
|
+
acknowledgement?: SyncSourceAcknowledgementV1;
|
|
476
|
+
}>;
|
|
477
|
+
export declare function verifyContentMarkdownConflictProblem(value: z.input<typeof contentMarkdownConflictProblemSchema>): Promise<ContentMarkdownConflictProblem>;
|
|
478
|
+
export declare function verifyFrameLaunchTicketClaimsV1(value: z.input<typeof frameLaunchTicketClaimsV1Schema>): Promise<FrameLaunchTicketClaimsV1>;
|
|
479
|
+
export declare function verifyFrameSessionClaimsV1(value: z.input<typeof frameSessionClaimsV1Schema>): Promise<FrameSessionClaimsV1>;
|
|
480
|
+
export declare function verifyFrameProtocolV1(input: {
|
|
481
|
+
principalAssertion: z.input<typeof principalAssertionV1Schema>;
|
|
482
|
+
launchTicket: z.input<typeof frameLaunchTicketClaimsV1Schema>;
|
|
483
|
+
session: z.input<typeof frameSessionClaimsV1Schema>;
|
|
484
|
+
}): Promise<{
|
|
485
|
+
principalAssertion: PrincipalAssertionV1;
|
|
486
|
+
launchTicket: FrameLaunchTicketClaimsV1;
|
|
487
|
+
session: FrameSessionClaimsV1;
|
|
488
|
+
}>;
|
|
489
|
+
export declare function verifyApplicationJournalEntryV1(value: z.input<typeof applicationJournalEntryV1Schema>): Promise<ApplicationJournalEntryV1>;
|
|
490
|
+
export declare function verifyApplicationJournalDeliveryV1(entryValue: z.input<typeof applicationJournalEntryV1Schema>, claimValue: z.input<typeof applicationJournalDeliveryClaimV1Schema>, receiptValue: z.input<typeof applicationJournalDeliveryReceiptV1Schema>): Promise<{
|
|
491
|
+
entry: ApplicationJournalEntryV1;
|
|
492
|
+
claim: ApplicationJournalDeliveryClaimV1;
|
|
493
|
+
receipt: ApplicationJournalDeliveryReceiptV1;
|
|
494
|
+
}>;
|
|
495
|
+
export declare function verifyRuntimeComponentInventoryV1(value: z.input<typeof runtimeComponentInventoryV1Schema>): Promise<RuntimeComponentInventoryV1>;
|
|
496
|
+
export declare function verifyProgramRuntimeCompatibilityV1(requirementsValue: z.input<typeof programRequirementsV1Schema>, inventoryValue: z.input<typeof runtimeComponentInventoryV1Schema>): Promise<{
|
|
497
|
+
requirements: z.infer<typeof programRequirementsV1Schema>;
|
|
498
|
+
inventory: RuntimeComponentInventoryV1;
|
|
499
|
+
}>;
|
|
500
|
+
export declare function verifyRuntimePlacementReadinessV1(input: {
|
|
501
|
+
receipt: z.input<typeof runtimeComponentPlacementReceiptV1Schema>;
|
|
502
|
+
expectedTarget: z.input<typeof runtimeComponentPlacementTargetV1Schema>;
|
|
503
|
+
inventory: z.input<typeof runtimeComponentInventoryV1Schema>;
|
|
504
|
+
routeInventory: z.input<typeof routeInventoryV1Schema>;
|
|
505
|
+
routeSnapshot: z.input<typeof spaceRouteSnapshotV1Schema>;
|
|
506
|
+
}): Promise<{
|
|
507
|
+
receipt: RuntimeComponentPlacementReceiptV1 & {
|
|
508
|
+
status: "ready";
|
|
509
|
+
};
|
|
510
|
+
expectedTarget: RuntimeComponentPlacementTargetV1;
|
|
511
|
+
inventory: RuntimeComponentInventoryV1;
|
|
512
|
+
routeInventory: RouteInventoryV1;
|
|
513
|
+
routeSnapshot: SpaceRouteSnapshotV1;
|
|
514
|
+
}>;
|
|
515
|
+
export declare function verifySpaceRouteSnapshotV1(value: z.input<typeof spaceRouteSnapshotV1Schema>): Promise<SpaceRouteSnapshotV1>;
|
|
516
|
+
export declare function verifyRouteInventoryV1(value: z.input<typeof routeInventoryV1Schema>): Promise<RouteInventoryV1>;
|
|
517
|
+
export declare function verifyContentArtifactV1(ref: Readonly<{
|
|
518
|
+
inputDigest: ContentProgramSha256;
|
|
519
|
+
sha256: ContentProgramSha256;
|
|
520
|
+
bytes: number;
|
|
521
|
+
}>, artifact: ContentContractArtifactPayload, expectedInputDigest: ContentProgramSha256, payloadCarriesInputDigest?: boolean): Promise<void>;
|