@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
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The realtime cache lane's wire contract: one schema, both ends of the socket.
|
|
3
|
+
*
|
|
4
|
+
* The control plane publishes `resource.changed` onto a Space's Cast notice room
|
|
5
|
+
* whenever a mutation moves something a dashboard reads back
|
|
6
|
+
* (`apps/control-plane/src/comments/notices.ts`), and the dashboard turns those
|
|
7
|
+
* notices into targeted query invalidations
|
|
8
|
+
* (`packages/app-shell/src/lib/realtime-invalidation.ts`). Nothing renders this
|
|
9
|
+
* notice — it is read by code only — so the two sides agreeing on the shape is
|
|
10
|
+
* the entire contract, and they agree by importing the same schema rather than
|
|
11
|
+
* by keeping two copies in step.
|
|
12
|
+
*
|
|
13
|
+
* This lane is deliberately not part of the HTTP API: it carries no data, only
|
|
14
|
+
* the name of what moved. A missed notice costs a later refetch, never
|
|
15
|
+
* correctness.
|
|
16
|
+
*/
|
|
17
|
+
import { z } from "zod";
|
|
18
|
+
/** The notice kind. Shares the `notice` event with Cast's own comment kinds. */
|
|
19
|
+
export declare const RESOURCE_CHANGED = "resource.changed";
|
|
20
|
+
/**
|
|
21
|
+
* The payload shape.
|
|
22
|
+
*
|
|
23
|
+
* `resource` is singular and names the kind of thing that moved rather than a
|
|
24
|
+
* table or a query key, so the receiver can map it onto whatever keys it holds.
|
|
25
|
+
* `ids` is advisory and deliberately lenient: a notice may name exactly what
|
|
26
|
+
* moved or nothing at all, and a list a build cannot read falls back to the
|
|
27
|
+
* empty list — which reads as "the whole resource kind moved". The failure mode
|
|
28
|
+
* of a malformed notice should be a broader refresh, never a missed one.
|
|
29
|
+
*
|
|
30
|
+
* camelCase and self-contained: a receiver reads `resource`/`spaceId`/`ids` and
|
|
31
|
+
* nothing else. The snake_case fields that ride alongside on the wire belong to
|
|
32
|
+
* the rendered notice lanes that share this room.
|
|
33
|
+
*/
|
|
34
|
+
export declare const resourceChangedNoticeSchema: z.ZodObject<{
|
|
35
|
+
kind: z.ZodLiteral<"resource.changed">;
|
|
36
|
+
resource: z.ZodString;
|
|
37
|
+
spaceId: z.ZodString;
|
|
38
|
+
ids: z.ZodCatch<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
export type ResourceChangedNoticePayload = z.infer<typeof resourceChangedNoticeSchema>;
|
|
41
|
+
/**
|
|
42
|
+
* The publisher's only way to shape a notice.
|
|
43
|
+
*
|
|
44
|
+
* Omitting `ids` (or passing an empty list) sends no `ids` field at all — JSON
|
|
45
|
+
* has no undefined — which is the "this whole resource moved" signal: always
|
|
46
|
+
* correct, just less targeted.
|
|
47
|
+
*/
|
|
48
|
+
export declare function resourceChangedNotice(input: {
|
|
49
|
+
resource: string;
|
|
50
|
+
spaceId: string;
|
|
51
|
+
ids?: readonly string[] | undefined;
|
|
52
|
+
}): ResourceChangedNoticePayload;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The realtime cache lane's wire contract: one schema, both ends of the socket.
|
|
3
|
+
*
|
|
4
|
+
* The control plane publishes `resource.changed` onto a Space's Cast notice room
|
|
5
|
+
* whenever a mutation moves something a dashboard reads back
|
|
6
|
+
* (`apps/control-plane/src/comments/notices.ts`), and the dashboard turns those
|
|
7
|
+
* notices into targeted query invalidations
|
|
8
|
+
* (`packages/app-shell/src/lib/realtime-invalidation.ts`). Nothing renders this
|
|
9
|
+
* notice — it is read by code only — so the two sides agreeing on the shape is
|
|
10
|
+
* the entire contract, and they agree by importing the same schema rather than
|
|
11
|
+
* by keeping two copies in step.
|
|
12
|
+
*
|
|
13
|
+
* This lane is deliberately not part of the HTTP API: it carries no data, only
|
|
14
|
+
* the name of what moved. A missed notice costs a later refetch, never
|
|
15
|
+
* correctness.
|
|
16
|
+
*/
|
|
17
|
+
import { z } from "zod";
|
|
18
|
+
/** The notice kind. Shares the `notice` event with Cast's own comment kinds. */
|
|
19
|
+
export const RESOURCE_CHANGED = "resource.changed";
|
|
20
|
+
/**
|
|
21
|
+
* The payload shape.
|
|
22
|
+
*
|
|
23
|
+
* `resource` is singular and names the kind of thing that moved rather than a
|
|
24
|
+
* table or a query key, so the receiver can map it onto whatever keys it holds.
|
|
25
|
+
* `ids` is advisory and deliberately lenient: a notice may name exactly what
|
|
26
|
+
* moved or nothing at all, and a list a build cannot read falls back to the
|
|
27
|
+
* empty list — which reads as "the whole resource kind moved". The failure mode
|
|
28
|
+
* of a malformed notice should be a broader refresh, never a missed one.
|
|
29
|
+
*
|
|
30
|
+
* camelCase and self-contained: a receiver reads `resource`/`spaceId`/`ids` and
|
|
31
|
+
* nothing else. The snake_case fields that ride alongside on the wire belong to
|
|
32
|
+
* the rendered notice lanes that share this room.
|
|
33
|
+
*/
|
|
34
|
+
export const resourceChangedNoticeSchema = z.object({
|
|
35
|
+
kind: z.literal(RESOURCE_CHANGED),
|
|
36
|
+
resource: z.string().min(1),
|
|
37
|
+
spaceId: z.string().min(1),
|
|
38
|
+
ids: z.array(z.string()).optional().catch([]),
|
|
39
|
+
});
|
|
40
|
+
/**
|
|
41
|
+
* The publisher's only way to shape a notice.
|
|
42
|
+
*
|
|
43
|
+
* Omitting `ids` (or passing an empty list) sends no `ids` field at all — JSON
|
|
44
|
+
* has no undefined — which is the "this whole resource moved" signal: always
|
|
45
|
+
* correct, just less targeted.
|
|
46
|
+
*/
|
|
47
|
+
export function resourceChangedNotice(input) {
|
|
48
|
+
return resourceChangedNoticeSchema.parse({
|
|
49
|
+
kind: RESOURCE_CHANGED,
|
|
50
|
+
resource: input.resource,
|
|
51
|
+
spaceId: input.spaceId,
|
|
52
|
+
ids: input.ids === undefined || input.ids.length === 0 ? undefined : [...input.ids],
|
|
53
|
+
});
|
|
54
|
+
}
|
|
@@ -9,6 +9,12 @@ export declare const repositoryConnectionSyncStatusSchema: z.ZodEnum<{
|
|
|
9
9
|
idle: "idle";
|
|
10
10
|
syncing: "syncing";
|
|
11
11
|
}>;
|
|
12
|
+
export declare const repositoryProviderAccessStatusSchema: z.ZodEnum<{
|
|
13
|
+
active: "active";
|
|
14
|
+
suspended: "suspended";
|
|
15
|
+
revoked: "revoked";
|
|
16
|
+
reauthorization_required: "reauthorization_required";
|
|
17
|
+
}>;
|
|
12
18
|
export declare const RepositoryConnectionSchema: z.ZodObject<{
|
|
13
19
|
id: z.ZodString;
|
|
14
20
|
spaceId: z.ZodString;
|
|
@@ -51,6 +57,13 @@ export declare const RepositoryConnectionSchema: z.ZodObject<{
|
|
|
51
57
|
idle: "idle";
|
|
52
58
|
syncing: "syncing";
|
|
53
59
|
}>;
|
|
60
|
+
providerAccessStatus: z.ZodDefault<z.ZodEnum<{
|
|
61
|
+
active: "active";
|
|
62
|
+
suspended: "suspended";
|
|
63
|
+
revoked: "revoked";
|
|
64
|
+
reauthorization_required: "reauthorization_required";
|
|
65
|
+
}>>;
|
|
66
|
+
providerAccessError: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
54
67
|
lastSyncedAt: z.ZodNullable<z.ZodString>;
|
|
55
68
|
lastSyncError: z.ZodNullable<z.ZodString>;
|
|
56
69
|
syncRunId: z.ZodNullable<z.ZodString>;
|
|
@@ -81,16 +94,16 @@ export declare const repositoryConnectionCreateSchema: z.ZodObject<{
|
|
|
81
94
|
autoDeployProduction: z.ZodDefault<z.ZodBoolean>;
|
|
82
95
|
autoDeployPreviews: z.ZodDefault<z.ZodBoolean>;
|
|
83
96
|
buildSettings: z.ZodOptional<z.ZodObject<{
|
|
84
|
-
rootDirectory: z.ZodOptional<z.
|
|
85
|
-
installDirectory: z.ZodOptional<z.
|
|
86
|
-
installCommand: z.ZodOptional<z.
|
|
87
|
-
buildCommand: z.ZodOptional<z.
|
|
88
|
-
outputDirectory: z.ZodOptional<z.
|
|
89
|
-
ignoredBuildCommand: z.ZodOptional<z.
|
|
90
|
-
frameworkPreset: z.ZodOptional<z.
|
|
91
|
-
platformPreset: z.ZodOptional<z.
|
|
92
|
-
allowUnsupportedPlatformFeatures: z.ZodOptional<z.
|
|
93
|
-
timeoutSeconds: z.ZodOptional<z.
|
|
97
|
+
rootDirectory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
98
|
+
installDirectory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
99
|
+
installCommand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
100
|
+
buildCommand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
101
|
+
outputDirectory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
102
|
+
ignoredBuildCommand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
103
|
+
frameworkPreset: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
104
|
+
platformPreset: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
105
|
+
allowUnsupportedPlatformFeatures: z.ZodOptional<z.ZodBoolean>;
|
|
106
|
+
timeoutSeconds: z.ZodOptional<z.ZodNumber>;
|
|
94
107
|
}, z.core.$strip>>;
|
|
95
108
|
}, z.core.$strip>;
|
|
96
109
|
export declare const repositoryConnectionPatchSchema: z.ZodObject<{
|
|
@@ -105,16 +118,16 @@ export declare const repositoryConnectionPatchSchema: z.ZodObject<{
|
|
|
105
118
|
autoDeployProduction: z.ZodOptional<z.ZodBoolean>;
|
|
106
119
|
autoDeployPreviews: z.ZodOptional<z.ZodBoolean>;
|
|
107
120
|
buildSettings: z.ZodOptional<z.ZodObject<{
|
|
108
|
-
rootDirectory: z.ZodOptional<z.
|
|
109
|
-
installDirectory: z.ZodOptional<z.
|
|
110
|
-
installCommand: z.ZodOptional<z.
|
|
111
|
-
buildCommand: z.ZodOptional<z.
|
|
112
|
-
outputDirectory: z.ZodOptional<z.
|
|
113
|
-
ignoredBuildCommand: z.ZodOptional<z.
|
|
114
|
-
frameworkPreset: z.ZodOptional<z.
|
|
115
|
-
platformPreset: z.ZodOptional<z.
|
|
116
|
-
allowUnsupportedPlatformFeatures: z.ZodOptional<z.
|
|
117
|
-
timeoutSeconds: z.ZodOptional<z.
|
|
121
|
+
rootDirectory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
122
|
+
installDirectory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
123
|
+
installCommand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
124
|
+
buildCommand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
125
|
+
outputDirectory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
126
|
+
ignoredBuildCommand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
127
|
+
frameworkPreset: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
128
|
+
platformPreset: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
129
|
+
allowUnsupportedPlatformFeatures: z.ZodOptional<z.ZodBoolean>;
|
|
130
|
+
timeoutSeconds: z.ZodOptional<z.ZodNumber>;
|
|
118
131
|
}, z.core.$strip>>;
|
|
119
132
|
}, z.core.$strip>;
|
|
120
133
|
export declare const repositoryImportRemoteSchema: z.ZodObject<{
|
|
@@ -125,23 +138,23 @@ export declare const repositoryImportRemoteSchema: z.ZodObject<{
|
|
|
125
138
|
generic: "generic";
|
|
126
139
|
}>>;
|
|
127
140
|
credential: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
141
|
+
defaultBranch: z.ZodDefault<z.ZodString>;
|
|
128
142
|
repositoryFullName: z.ZodString;
|
|
129
143
|
repositoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
130
144
|
repositoryName: z.ZodOptional<z.ZodString>;
|
|
131
|
-
defaultBranch: z.ZodDefault<z.ZodString>;
|
|
132
145
|
productionBranch: z.ZodOptional<z.ZodString>;
|
|
133
146
|
cloneUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
134
147
|
buildSettings: z.ZodOptional<z.ZodObject<{
|
|
135
|
-
rootDirectory: z.ZodOptional<z.
|
|
136
|
-
installDirectory: z.ZodOptional<z.
|
|
137
|
-
installCommand: z.ZodOptional<z.
|
|
138
|
-
buildCommand: z.ZodOptional<z.
|
|
139
|
-
outputDirectory: z.ZodOptional<z.
|
|
140
|
-
ignoredBuildCommand: z.ZodOptional<z.
|
|
141
|
-
frameworkPreset: z.ZodOptional<z.
|
|
142
|
-
platformPreset: z.ZodOptional<z.
|
|
143
|
-
allowUnsupportedPlatformFeatures: z.ZodOptional<z.
|
|
144
|
-
timeoutSeconds: z.ZodOptional<z.
|
|
148
|
+
rootDirectory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
149
|
+
installDirectory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
150
|
+
installCommand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
151
|
+
buildCommand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
152
|
+
outputDirectory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
153
|
+
ignoredBuildCommand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
154
|
+
frameworkPreset: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
155
|
+
platformPreset: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
156
|
+
allowUnsupportedPlatformFeatures: z.ZodOptional<z.ZodBoolean>;
|
|
157
|
+
timeoutSeconds: z.ZodOptional<z.ZodNumber>;
|
|
145
158
|
}, z.core.$strip>>;
|
|
146
159
|
autoDeployProduction: z.ZodDefault<z.ZodBoolean>;
|
|
147
160
|
autoDeployPreviews: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { BuildSettingsSchema } from "./builds.js";
|
|
2
|
+
import { BuildSettingsOverrideSchema, BuildSettingsSchema } from "./builds.js";
|
|
3
3
|
import { CursorPaginationSchema, cursorListQuerySchema } from "./common.js";
|
|
4
4
|
import { gitProvider } from "./enums.js";
|
|
5
5
|
// Two connection types only:
|
|
@@ -9,6 +9,12 @@ import { gitProvider } from "./enums.js";
|
|
|
9
9
|
// not a connection type, so `import` is intentionally absent from this union.
|
|
10
10
|
export const repositoryConnectionTypeSchema = z.enum(["connected", "hosted"]);
|
|
11
11
|
export const repositoryConnectionSyncStatusSchema = z.enum(["idle", "syncing", "ready", "failed"]);
|
|
12
|
+
export const repositoryProviderAccessStatusSchema = z.enum([
|
|
13
|
+
"active",
|
|
14
|
+
"suspended",
|
|
15
|
+
"revoked",
|
|
16
|
+
"reauthorization_required",
|
|
17
|
+
]);
|
|
12
18
|
export const RepositoryConnectionSchema = z.object({
|
|
13
19
|
id: z.string().describe("Repository connection id (`rpc_`)."),
|
|
14
20
|
spaceId: z.string(),
|
|
@@ -37,6 +43,8 @@ export const RepositoryConnectionSchema = z.object({
|
|
|
37
43
|
autoDeployPreviews: z.boolean(),
|
|
38
44
|
buildSettings: BuildSettingsSchema,
|
|
39
45
|
syncStatus: repositoryConnectionSyncStatusSchema,
|
|
46
|
+
providerAccessStatus: repositoryProviderAccessStatusSchema.default("active"),
|
|
47
|
+
providerAccessError: z.string().nullable().default(null),
|
|
40
48
|
lastSyncedAt: z.string().datetime().nullable(),
|
|
41
49
|
lastSyncError: z.string().nullable(),
|
|
42
50
|
syncRunId: z.string().nullable(),
|
|
@@ -64,7 +72,7 @@ export const repositoryConnectionCreateSchema = z.object({
|
|
|
64
72
|
credential: z.string().trim().min(1).nullable().optional(),
|
|
65
73
|
autoDeployProduction: z.boolean().default(true),
|
|
66
74
|
autoDeployPreviews: z.boolean().default(true),
|
|
67
|
-
buildSettings:
|
|
75
|
+
buildSettings: BuildSettingsOverrideSchema.optional(),
|
|
68
76
|
});
|
|
69
77
|
export const repositoryConnectionPatchSchema = z.object({
|
|
70
78
|
connectionType: repositoryConnectionTypeSchema.optional(),
|
|
@@ -74,7 +82,7 @@ export const repositoryConnectionPatchSchema = z.object({
|
|
|
74
82
|
credential: z.string().trim().min(1).nullable().optional(),
|
|
75
83
|
autoDeployProduction: z.boolean().optional(),
|
|
76
84
|
autoDeployPreviews: z.boolean().optional(),
|
|
77
|
-
buildSettings:
|
|
85
|
+
buildSettings: BuildSettingsOverrideSchema.optional(),
|
|
78
86
|
});
|
|
79
87
|
// Importing an existing external remote is an action/flag, not a connection
|
|
80
88
|
// type. It produces a `connected` connection seeded from an upstream remote.
|
|
@@ -110,8 +118,12 @@ export const RepositoryWebhookDeliverySchema = z.object({
|
|
|
110
118
|
updatedAt: z.string().datetime(),
|
|
111
119
|
});
|
|
112
120
|
export const repositoryWebhookDeliveryListQuerySchema = cursorListQuerySchema.extend({
|
|
113
|
-
connectionType: repositoryConnectionTypeSchema
|
|
114
|
-
|
|
121
|
+
connectionType: repositoryConnectionTypeSchema
|
|
122
|
+
.optional()
|
|
123
|
+
.describe("Return only deliveries for this connection type."),
|
|
124
|
+
status: repositoryWebhookDeliveryStatusSchema
|
|
125
|
+
.optional()
|
|
126
|
+
.describe("Return only deliveries in this processing state."),
|
|
115
127
|
});
|
|
116
128
|
export const repositoryWebhookDeliveryListResponseSchema = z.object({
|
|
117
129
|
data: z.array(RepositoryWebhookDeliverySchema),
|
|
@@ -10,7 +10,7 @@ export declare const DiagnosticSchema: z.ZodObject<{
|
|
|
10
10
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
11
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
12
12
|
registrar: "registrar";
|
|
13
|
-
|
|
13
|
+
infra: "infra";
|
|
14
14
|
dns: "dns";
|
|
15
15
|
runtime: "runtime";
|
|
16
16
|
}>>>;
|
|
@@ -35,30 +35,65 @@ export declare const ChannelPointerSchema: z.ZodObject<{
|
|
|
35
35
|
}, z.core.$strip>;
|
|
36
36
|
export type ChannelPointer = z.infer<typeof ChannelPointerSchema>;
|
|
37
37
|
export declare const spaceSettingsDigestSchema: z.ZodString;
|
|
38
|
+
export declare const spaceInfrastructureSchema: z.ZodObject<{
|
|
39
|
+
region: z.ZodNullable<z.ZodString>;
|
|
40
|
+
runtimeInstanceId: z.ZodNullable<z.ZodString>;
|
|
41
|
+
providerMainHostname: z.ZodNullable<z.ZodString>;
|
|
42
|
+
provisioningState: z.ZodEnum<{
|
|
43
|
+
provisioning: "provisioning";
|
|
44
|
+
degraded: "degraded";
|
|
45
|
+
converged: "converged";
|
|
46
|
+
}>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
export type SpaceInfrastructure = z.infer<typeof spaceInfrastructureSchema>;
|
|
49
|
+
export declare const spaceGitSchema: z.ZodObject<{
|
|
50
|
+
managedBy: z.ZodEnum<{
|
|
51
|
+
spacefast: "spacefast";
|
|
52
|
+
github: "github";
|
|
53
|
+
}>;
|
|
54
|
+
remoteUrl: z.ZodNullable<z.ZodString>;
|
|
55
|
+
repository: z.ZodNullable<z.ZodString>;
|
|
56
|
+
defaultBranch: z.ZodNullable<z.ZodString>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
export type SpaceGit = z.infer<typeof spaceGitSchema>;
|
|
38
59
|
export declare const SpaceSchema: z.ZodObject<{
|
|
39
60
|
id: z.ZodString;
|
|
40
|
-
tenantId: z.ZodString
|
|
41
|
-
|
|
42
|
-
|
|
61
|
+
tenantId: z.ZodOptional<z.ZodString>;
|
|
62
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
63
|
+
live: "live";
|
|
64
|
+
test: "test";
|
|
65
|
+
}>>;
|
|
66
|
+
providerRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
providerClientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
68
|
teamId: z.ZodNullable<z.ZodString>;
|
|
44
69
|
teamSlug: z.ZodNullable<z.ZodString>;
|
|
45
|
-
principal: z.ZodNullable<z.ZodObject<{
|
|
70
|
+
principal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
46
71
|
tenantId: z.ZodString;
|
|
47
72
|
principalType: z.ZodEnum<{
|
|
48
73
|
team: "team";
|
|
49
74
|
external: "external";
|
|
50
75
|
}>;
|
|
51
76
|
principalId: z.ZodString;
|
|
77
|
+
}, z.core.$strip>>>;
|
|
78
|
+
infrastructure: z.ZodOptional<z.ZodObject<{
|
|
79
|
+
region: z.ZodNullable<z.ZodString>;
|
|
80
|
+
runtimeInstanceId: z.ZodNullable<z.ZodString>;
|
|
81
|
+
providerMainHostname: z.ZodNullable<z.ZodString>;
|
|
82
|
+
provisioningState: z.ZodEnum<{
|
|
83
|
+
provisioning: "provisioning";
|
|
84
|
+
degraded: "degraded";
|
|
85
|
+
converged: "converged";
|
|
86
|
+
}>;
|
|
52
87
|
}, z.core.$strip>>;
|
|
53
88
|
anonymous: z.ZodBoolean;
|
|
54
89
|
slug: z.ZodString;
|
|
55
90
|
title: z.ZodString;
|
|
56
91
|
status: z.ZodEnum<{
|
|
57
92
|
active: "active";
|
|
93
|
+
failed: "failed";
|
|
58
94
|
provisioning: "provisioning";
|
|
59
95
|
updating: "updating";
|
|
60
96
|
deleting: "deleting";
|
|
61
|
-
failed: "failed";
|
|
62
97
|
}>;
|
|
63
98
|
disabled: z.ZodNullable<z.ZodObject<{
|
|
64
99
|
at: z.ZodNullable<z.ZodString>;
|
|
@@ -185,6 +220,16 @@ export declare const SpaceSchema: z.ZodObject<{
|
|
|
185
220
|
}, z.core.$strip>>;
|
|
186
221
|
settingsDigest: z.ZodString;
|
|
187
222
|
noindex: z.ZodBoolean;
|
|
223
|
+
pinnedAt: z.ZodNullable<z.ZodString>;
|
|
224
|
+
git: z.ZodNullable<z.ZodObject<{
|
|
225
|
+
managedBy: z.ZodEnum<{
|
|
226
|
+
spacefast: "spacefast";
|
|
227
|
+
github: "github";
|
|
228
|
+
}>;
|
|
229
|
+
remoteUrl: z.ZodNullable<z.ZodString>;
|
|
230
|
+
repository: z.ZodNullable<z.ZodString>;
|
|
231
|
+
defaultBranch: z.ZodNullable<z.ZodString>;
|
|
232
|
+
}, z.core.$strip>>;
|
|
188
233
|
operation: z.ZodNullable<z.ZodObject<{
|
|
189
234
|
id: z.ZodString;
|
|
190
235
|
kind: z.ZodString;
|
|
@@ -215,7 +260,7 @@ export declare const SpaceSchema: z.ZodObject<{
|
|
|
215
260
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
216
261
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
217
262
|
registrar: "registrar";
|
|
218
|
-
|
|
263
|
+
infra: "infra";
|
|
219
264
|
dns: "dns";
|
|
220
265
|
runtime: "runtime";
|
|
221
266
|
}>>>;
|
|
@@ -229,15 +274,28 @@ export declare const SpaceSchema: z.ZodObject<{
|
|
|
229
274
|
createdAt: z.ZodString;
|
|
230
275
|
updatedAt: z.ZodString;
|
|
231
276
|
}, z.core.$strip>;
|
|
277
|
+
export declare const CONSUMER_HIDDEN_SPACE_FIELDS: readonly ["tenantId", "mode", "principal", "providerRef", "providerClientId", "infrastructure"];
|
|
278
|
+
export type ConsumerHiddenSpaceField = (typeof CONSUMER_HIDDEN_SPACE_FIELDS)[number];
|
|
279
|
+
export declare const publishSourceGitSchema: z.ZodObject<{
|
|
280
|
+
repository: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
281
|
+
repositoryFullName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
282
|
+
repositoryUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
283
|
+
ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
284
|
+
branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
285
|
+
branchAliasUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
286
|
+
commit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
287
|
+
commitSha: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
288
|
+
pullRequestNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
289
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
232
290
|
export declare const PublishSourceSchema: z.ZodObject<{
|
|
233
291
|
kind: z.ZodEnum<{
|
|
234
292
|
build: "build";
|
|
235
293
|
agent: "agent";
|
|
236
294
|
api: "api";
|
|
237
295
|
dashboard: "dashboard";
|
|
238
|
-
direct_upload: "direct_upload";
|
|
239
296
|
cli: "cli";
|
|
240
297
|
git: "git";
|
|
298
|
+
direct_upload: "direct_upload";
|
|
241
299
|
import: "import";
|
|
242
300
|
variable_update: "variable_update";
|
|
243
301
|
config_update: "config_update";
|
|
@@ -261,6 +319,23 @@ export declare const PublishSourceSchema: z.ZodObject<{
|
|
|
261
319
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
262
320
|
}, z.core.$strip>;
|
|
263
321
|
export type PublishSource = z.infer<typeof PublishSourceSchema>;
|
|
322
|
+
export declare const VersionPublisherSchema: z.ZodObject<{
|
|
323
|
+
type: z.ZodEnum<{
|
|
324
|
+
system: "system";
|
|
325
|
+
user: "user";
|
|
326
|
+
api_key: "api_key";
|
|
327
|
+
partner_token: "partner_token";
|
|
328
|
+
oauth_client: "oauth_client";
|
|
329
|
+
anonymous_claim: "anonymous_claim";
|
|
330
|
+
}>;
|
|
331
|
+
displayName: z.ZodString;
|
|
332
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
333
|
+
authorizedBy: z.ZodNullable<z.ZodObject<{
|
|
334
|
+
displayName: z.ZodString;
|
|
335
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
336
|
+
}, z.core.$strip>>;
|
|
337
|
+
}, z.core.$strip>;
|
|
338
|
+
export type VersionPublisher = z.infer<typeof VersionPublisherSchema>;
|
|
264
339
|
export declare const VersionSchema: z.ZodObject<{
|
|
265
340
|
id: z.ZodString;
|
|
266
341
|
ref: z.ZodNullable<z.ZodString>;
|
|
@@ -272,9 +347,9 @@ export declare const VersionSchema: z.ZodObject<{
|
|
|
272
347
|
agent: "agent";
|
|
273
348
|
api: "api";
|
|
274
349
|
dashboard: "dashboard";
|
|
275
|
-
direct_upload: "direct_upload";
|
|
276
350
|
cli: "cli";
|
|
277
351
|
git: "git";
|
|
352
|
+
direct_upload: "direct_upload";
|
|
278
353
|
import: "import";
|
|
279
354
|
variable_update: "variable_update";
|
|
280
355
|
config_update: "config_update";
|
|
@@ -297,6 +372,22 @@ export declare const VersionSchema: z.ZodObject<{
|
|
|
297
372
|
pullRequestNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
298
373
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
299
374
|
}, z.core.$strip>>;
|
|
375
|
+
publisher: z.ZodNullable<z.ZodObject<{
|
|
376
|
+
type: z.ZodEnum<{
|
|
377
|
+
system: "system";
|
|
378
|
+
user: "user";
|
|
379
|
+
api_key: "api_key";
|
|
380
|
+
partner_token: "partner_token";
|
|
381
|
+
oauth_client: "oauth_client";
|
|
382
|
+
anonymous_claim: "anonymous_claim";
|
|
383
|
+
}>;
|
|
384
|
+
displayName: z.ZodString;
|
|
385
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
386
|
+
authorizedBy: z.ZodNullable<z.ZodObject<{
|
|
387
|
+
displayName: z.ZodString;
|
|
388
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
389
|
+
}, z.core.$strip>>;
|
|
390
|
+
}, z.core.$strip>>;
|
|
300
391
|
status: z.ZodEnum<{
|
|
301
392
|
failed: "failed";
|
|
302
393
|
canceled: "canceled";
|
|
@@ -323,15 +414,15 @@ export declare const VersionSchema: z.ZodObject<{
|
|
|
323
414
|
filesRemovedCount: z.ZodNumber;
|
|
324
415
|
pendingUploads: z.ZodArray<z.ZodObject<{
|
|
325
416
|
path: z.ZodString;
|
|
326
|
-
size: z.ZodNumber;
|
|
327
|
-
sha256: z.ZodOptional<z.ZodString>;
|
|
328
417
|
sourceUrl: z.ZodOptional<z.ZodString>;
|
|
418
|
+
sha256: z.ZodOptional<z.ZodString>;
|
|
419
|
+
size: z.ZodNumber;
|
|
329
420
|
}, z.core.$strip>>;
|
|
330
421
|
skippedPaths: z.ZodArray<z.ZodString>;
|
|
331
422
|
immutableUrl: z.ZodNullable<z.ZodString>;
|
|
332
423
|
immutableUrlStatus: z.ZodNullable<z.ZodEnum<{
|
|
333
424
|
ready: "ready";
|
|
334
|
-
|
|
425
|
+
pending: "pending";
|
|
335
426
|
}>>;
|
|
336
427
|
isCurrentProduction: z.ZodBoolean;
|
|
337
428
|
siteTitle: z.ZodString;
|
|
@@ -446,7 +537,7 @@ export declare const VersionSchema: z.ZodObject<{
|
|
|
446
537
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
447
538
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
448
539
|
registrar: "registrar";
|
|
449
|
-
|
|
540
|
+
infra: "infra";
|
|
450
541
|
dns: "dns";
|
|
451
542
|
runtime: "runtime";
|
|
452
543
|
}>>>;
|
|
@@ -473,7 +564,7 @@ export declare const VersionSchema: z.ZodObject<{
|
|
|
473
564
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
474
565
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
475
566
|
registrar: "registrar";
|
|
476
|
-
|
|
567
|
+
infra: "infra";
|
|
477
568
|
dns: "dns";
|
|
478
569
|
runtime: "runtime";
|
|
479
570
|
}>>>;
|