@fungi.computer/oyster 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/README.md +1134 -2
- package/dist/agents.d.ts +114 -0
- package/dist/agents.js +322 -0
- package/dist/app-builds.d.ts +210 -0
- package/dist/app-builds.js +499 -0
- package/dist/app-sandbox.d.ts +2 -0
- package/dist/app-sandbox.js +2 -0
- package/dist/app-sources.d.ts +31 -0
- package/dist/app-sources.js +370 -0
- package/dist/app-storage.d.ts +141 -0
- package/dist/app-storage.js +281 -0
- package/dist/apps/gate.d.ts +105 -0
- package/dist/apps/gate.js +273 -0
- package/dist/apps/index.d.ts +5 -0
- package/dist/apps/index.js +5 -0
- package/dist/apps/installation.d.ts +248 -0
- package/dist/apps/installation.js +307 -0
- package/dist/apps/operations.d.ts +8 -0
- package/dist/apps/operations.js +98 -0
- package/dist/apps/tools.d.ts +33 -0
- package/dist/apps/tools.js +17 -0
- package/dist/auth.d.ts +11 -0
- package/dist/auth.js +93 -0
- package/dist/backend-request.d.ts +3 -0
- package/dist/backend-request.js +53 -0
- package/dist/build/artifact-writer.d.ts +40 -0
- package/dist/build/artifact-writer.js +181 -0
- package/dist/build/build-jobs.d.ts +128 -0
- package/dist/build/build-jobs.js +203 -0
- package/dist/build/build-policy.d.ts +10 -0
- package/dist/build/build-policy.js +10 -0
- package/dist/build/build-step.d.ts +37 -0
- package/dist/build/build-step.js +28 -0
- package/dist/build/bundled-html.d.ts +7 -0
- package/dist/build/bundled-html.js +64 -0
- package/dist/build/candidate-builder.d.ts +68 -0
- package/dist/build/candidate-builder.js +91 -0
- package/dist/build/candidate-cli.d.ts +1 -0
- package/dist/build/candidate-cli.js +119 -0
- package/dist/build/candidate-cli.mjs +28170 -0
- package/dist/build/content-objects.d.ts +37 -0
- package/dist/build/content-objects.js +53 -0
- package/dist/build/definition-emission.d.ts +34 -0
- package/dist/build/definition-emission.js +201 -0
- package/dist/build/effect.d.ts +249 -0
- package/dist/build/effect.js +436 -0
- package/dist/build/git-environment.d.ts +9 -0
- package/dist/build/git-environment.js +60 -0
- package/dist/build/html-recipe.d.ts +20 -0
- package/dist/build/html-recipe.js +51 -0
- package/dist/build/local-build.d.ts +67 -0
- package/dist/build/local-build.js +1128 -0
- package/dist/build/snapshot-package-store.d.ts +12 -0
- package/dist/build/snapshot-package-store.js +36 -0
- package/dist/build/snapshot-program-scripts.d.ts +6 -0
- package/dist/build/snapshot-program-scripts.js +2 -0
- package/dist/build/snapshot-programs/snapshot-path.d.ts +2 -0
- package/dist/build/snapshot-programs/snapshot-path.js +6 -0
- package/dist/build/submission-contract.d.ts +828 -0
- package/dist/build/submission-contract.js +180 -0
- package/dist/build/workspace-build.d.ts +55 -0
- package/dist/build/workspace-build.js +200 -0
- package/dist/build-contract.d.ts +7 -0
- package/dist/build-contract.js +7 -0
- package/dist/build-egress.d.ts +62 -0
- package/dist/build-egress.js +148 -0
- package/dist/build-jobs.d.ts +2 -0
- package/dist/build-jobs.js +2 -0
- package/dist/build.d.ts +12 -0
- package/dist/build.js +14 -0
- package/dist/capability-descriptor.d.ts +46 -0
- package/dist/capability-descriptor.js +51 -0
- package/dist/catalog-frame.d.ts +39 -0
- package/dist/catalog-frame.js +72 -0
- package/dist/cause-class.d.ts +19 -0
- package/dist/cause-class.js +54 -0
- package/dist/cloudflare.d.ts +123 -0
- package/dist/cloudflare.js +391 -0
- package/dist/computer-terminal.d.ts +38 -0
- package/dist/computer-terminal.js +410 -0
- package/dist/computer.d.ts +60 -0
- package/dist/computer.js +33 -0
- package/dist/event-recipients.d.ts +57 -0
- package/dist/event-recipients.js +144 -0
- package/dist/facet-invocation.d.ts +4 -0
- package/dist/facet-invocation.js +45 -0
- package/dist/files.d.ts +42 -0
- package/dist/files.js +123 -0
- package/dist/frame-binding-wire-script.d.ts +2 -0
- package/dist/frame-binding-wire-script.js +1 -0
- package/dist/frame-binding-wire.d.ts +28 -0
- package/dist/frame-binding-wire.js +54 -0
- package/dist/git-admission.d.ts +52 -0
- package/dist/git-admission.js +188 -0
- package/dist/git-auth.d.ts +11 -0
- package/dist/git-auth.js +27 -0
- package/dist/git-door.d.ts +35 -0
- package/dist/git-door.js +108 -0
- package/dist/git-journal.d.ts +31 -0
- package/dist/git-journal.js +188 -0
- package/dist/git.d.ts +31 -0
- package/dist/git.js +64 -0
- package/dist/guest-policy.d.ts +9 -0
- package/dist/guest-policy.js +13 -0
- package/dist/host.d.ts +244 -0
- package/dist/host.js +1043 -0
- package/dist/index.d.ts +166 -0
- package/dist/index.js +320 -0
- package/dist/installation-consent.d.ts +79 -0
- package/dist/installation-consent.js +82 -0
- package/dist/internal/background-origins.d.ts +3 -0
- package/dist/internal/background-origins.js +8 -0
- package/dist/internal/delivery.d.ts +12 -0
- package/dist/internal/delivery.js +167 -0
- package/dist/internal/host-gate.d.ts +14 -0
- package/dist/internal/host-gate.js +62 -0
- package/dist/internal/registry-installations.d.ts +6 -0
- package/dist/internal/registry-installations.js +12 -0
- package/dist/invocation.d.ts +251 -0
- package/dist/invocation.js +377 -0
- package/dist/keys.d.ts +48 -0
- package/dist/keys.js +52 -0
- package/dist/mcp-owner.d.ts +27 -0
- package/dist/mcp-owner.js +155 -0
- package/dist/mcp.d.ts +89 -0
- package/dist/mcp.js +429 -0
- package/dist/media.d.ts +23 -0
- package/dist/media.js +12 -0
- package/dist/pack.d.ts +79 -0
- package/dist/pack.js +151 -0
- package/dist/page/capabilities.d.ts +23 -0
- package/dist/page/capabilities.js +256 -0
- package/dist/page/computer-handles.d.ts +79 -0
- package/dist/page/computer-handles.js +44 -0
- package/dist/page/gill-observation.d.ts +4 -0
- package/dist/page/gill-observation.js +31 -0
- package/dist/page/lifetime.d.ts +6 -0
- package/dist/page/lifetime.js +19 -0
- package/dist/page/mount.d.ts +163 -0
- package/dist/page/mount.js +390 -0
- package/dist/page/storage.d.ts +3 -0
- package/dist/page/storage.js +82 -0
- package/dist/page/terminal.d.ts +5 -0
- package/dist/page/terminal.js +7 -0
- package/dist/page/window-launch.d.ts +18 -0
- package/dist/page/window-launch.js +11 -0
- package/dist/page-script.d.ts +14 -0
- package/dist/page-script.js +5 -0
- package/dist/r2-files.d.ts +3 -0
- package/dist/r2-files.js +79 -0
- package/dist/release.d.ts +83 -0
- package/dist/release.js +167 -0
- package/dist/root-data.d.ts +86 -0
- package/dist/root-data.js +69 -0
- package/dist/shell/app-directory.d.ts +542 -0
- package/dist/shell/app-directory.js +199 -0
- package/dist/shell/browser-actions.d.ts +7 -0
- package/dist/shell/browser-actions.js +56 -0
- package/dist/shell/command-host.d.ts +112 -0
- package/dist/shell/command-host.js +502 -0
- package/dist/shell/commands.d.ts +25 -0
- package/dist/shell/commands.js +78 -0
- package/dist/shell/index.d.ts +8 -0
- package/dist/shell/index.js +8 -0
- package/dist/shell/keys.d.ts +41 -0
- package/dist/shell/keys.js +134 -0
- package/dist/shell/shell-module.d.ts +55 -0
- package/dist/shell/shell-module.js +86 -0
- package/dist/shell/window-manager.d.ts +124 -0
- package/dist/shell/window-manager.js +711 -0
- package/dist/shell/workbench-contract.d.ts +68 -0
- package/dist/shell/workbench-contract.js +1 -0
- package/dist/shell/workbench-directory.d.ts +332 -0
- package/dist/shell/workbench-directory.js +35 -0
- package/dist/shell/workbench-host-types.d.ts +96 -0
- package/dist/shell/workbench-host-types.js +1 -0
- package/dist/shell/workbench-host.d.ts +34 -0
- package/dist/shell/workbench-host.js +347 -0
- package/dist/shell/workbench-model.d.ts +192 -0
- package/dist/shell/workbench-model.js +53 -0
- package/dist/shell/workbench.d.ts +4 -0
- package/dist/shell/workbench.js +2 -0
- package/dist/source/fork.d.ts +27 -0
- package/dist/source/fork.js +46 -0
- package/dist/source/index.d.ts +10 -0
- package/dist/source/index.js +10 -0
- package/dist/source/seed-receipt.d.ts +53 -0
- package/dist/source/seed-receipt.js +18 -0
- package/dist/source/team-source.d.ts +32 -0
- package/dist/source/team-source.js +42 -0
- package/dist/source/template-push.d.ts +33 -0
- package/dist/source/template-push.js +223 -0
- package/dist/source/template-repository.d.ts +4 -0
- package/dist/source/template-repository.js +21 -0
- package/dist/source/template-seed.d.ts +68 -0
- package/dist/source/template-seed.js +80 -0
- package/dist/standalone/agent-directory.d.ts +4 -0
- package/dist/standalone/agent-directory.js +4 -0
- package/dist/standalone/agents.d.ts +220 -0
- package/dist/standalone/agents.js +795 -0
- package/dist/standalone/app-builds-binding.d.ts +36 -0
- package/dist/standalone/app-builds-binding.js +119 -0
- package/dist/standalone/app-set.d.ts +91 -0
- package/dist/standalone/app-set.js +395 -0
- package/dist/standalone/app-source.d.ts +41 -0
- package/dist/standalone/app-source.js +59 -0
- package/dist/standalone/builds.d.ts +18 -0
- package/dist/standalone/builds.js +101 -0
- package/dist/standalone/computer-egress.d.ts +37 -0
- package/dist/standalone/computer-egress.js +111 -0
- package/dist/standalone/computer.d.ts +122 -0
- package/dist/standalone/computer.js +714 -0
- package/dist/standalone/install-apps-cli.d.ts +2 -0
- package/dist/standalone/install-apps-cli.js +126 -0
- package/dist/standalone/instance.d.ts +35 -0
- package/dist/standalone/instance.js +74 -0
- package/dist/standalone/media.d.ts +76 -0
- package/dist/standalone/media.js +227 -0
- package/dist/standalone/preview.d.ts +51 -0
- package/dist/standalone/preview.js +167 -0
- package/dist/standalone/registry.d.ts +102 -0
- package/dist/standalone/registry.js +193 -0
- package/dist/standalone/tenancy.d.ts +42 -0
- package/dist/standalone/tenancy.js +241 -0
- package/dist/standalone/worker.d.ts +55 -0
- package/dist/standalone/worker.js +147 -0
- package/dist/standalone/workflow-authority-readers.d.ts +16 -0
- package/dist/standalone/workflow-authority-readers.js +35 -0
- package/dist/standalone/workflow-binding.d.ts +216 -0
- package/dist/standalone/workflow-binding.js +217 -0
- package/dist/standalone/workflow-events.d.ts +46 -0
- package/dist/standalone/workflow-events.js +39 -0
- package/dist/standalone/workflow-git-capture.d.ts +7 -0
- package/dist/standalone/workflow-git-capture.js +62 -0
- package/dist/standalone/workflow-host.d.ts +931 -0
- package/dist/standalone/workflow-host.js +751 -0
- package/dist/standalone/workflow-node-capture.d.ts +13 -0
- package/dist/standalone/workflow-node-capture.js +72 -0
- package/dist/standalone/workflow-root-authority.d.ts +27 -0
- package/dist/standalone/workflow-root-authority.js +87 -0
- package/dist/standalone/workflow-schedules.d.ts +52 -0
- package/dist/standalone/workflow-schedules.js +40 -0
- package/dist/standalone/workflow-trigger-host.d.ts +1694 -0
- package/dist/standalone/workflow-trigger-host.js +52 -0
- package/dist/standalone/workflows.d.ts +657 -0
- package/dist/standalone/workflows.js +554 -0
- package/dist/storage-frame.d.ts +64 -0
- package/dist/storage-frame.js +28 -0
- package/dist/tenancy/auth0.d.ts +64 -0
- package/dist/tenancy/auth0.js +198 -0
- package/dist/tenancy/cloudflare/rate-limit.d.ts +8 -0
- package/dist/tenancy/cloudflare/rate-limit.js +19 -0
- package/dist/tenancy/cloudflare/registry.d.ts +50 -0
- package/dist/tenancy/cloudflare/registry.js +301 -0
- package/dist/tenancy/cloudflare.d.ts +2 -0
- package/dist/tenancy/cloudflare.js +2 -0
- package/dist/tenancy/cold-directory.d.ts +13 -0
- package/dist/tenancy/cold-directory.js +43 -0
- package/dist/tenancy/contracts.d.ts +195 -0
- package/dist/tenancy/contracts.js +1 -0
- package/dist/tenancy/index.d.ts +19 -0
- package/dist/tenancy/index.js +156 -0
- package/dist/tenancy/owner-key.d.ts +26 -0
- package/dist/tenancy/owner-key.js +63 -0
- package/dist/tenancy/oyster.d.ts +4 -0
- package/dist/tenancy/oyster.js +25 -0
- package/dist/tenancy/registry-record.d.ts +7 -0
- package/dist/tenancy/registry-record.js +44 -0
- package/dist/tenancy/registry.d.ts +27 -0
- package/dist/tenancy/registry.js +138 -0
- package/dist/tenancy/resolve.d.ts +7 -0
- package/dist/tenancy/resolve.js +64 -0
- package/dist/tenant.d.ts +81 -0
- package/dist/tenant.js +71 -0
- package/dist/testing/capabilities.d.ts +29 -0
- package/dist/testing/capabilities.js +130 -0
- package/dist/testing/catalog.d.ts +3 -0
- package/dist/testing/catalog.js +53 -0
- package/dist/testing/index.d.ts +10 -0
- package/dist/testing/index.js +10 -0
- package/dist/testing/installation.d.ts +11 -0
- package/dist/testing/installation.js +25 -0
- package/dist/testing/native-worker.d.ts +21 -0
- package/dist/testing/native-worker.js +106 -0
- package/dist/testing/worker.d.ts +18 -0
- package/dist/testing/worker.js +67 -0
- package/dist/testing/workers-runtime.d.ts +24 -0
- package/dist/testing/workers-runtime.js +33 -0
- package/dist/webhook-delivery.d.ts +14 -0
- package/dist/webhook-delivery.js +17 -0
- package/dist/workers-git.d.ts +285 -0
- package/dist/workers-git.js +1174 -0
- package/dist/workers.d.ts +352 -0
- package/dist/workers.js +868 -0
- package/docs/api/README.md +82 -0
- package/docs/api/agents.md +332 -0
- package/docs/api/app-storage.md +209 -0
- package/docs/api/apps.md +1375 -0
- package/docs/api/auth.md +63 -0
- package/docs/api/build-contract.md +1304 -0
- package/docs/api/build.md +1712 -0
- package/docs/api/cloudflare.md +421 -0
- package/docs/api/computer.md +203 -0
- package/docs/api/files.md +117 -0
- package/docs/api/git.md +470 -0
- package/docs/api/host.md +1328 -0
- package/docs/api/index.md +430 -0
- package/docs/api/invocation.md +738 -0
- package/docs/api/keys.md +175 -0
- package/docs/api/mcp.md +301 -0
- package/docs/api/media.md +40 -0
- package/docs/api/modules.md +50 -0
- package/docs/api/pack.md +141 -0
- package/docs/api/page/mount.md +298 -0
- package/docs/api/root-data.md +111 -0
- package/docs/api/shell/app-directory.md +599 -0
- package/docs/api/shell/command-host.md +224 -0
- package/docs/api/shell/commands.md +197 -0
- package/docs/api/shell/keys.md +183 -0
- package/docs/api/shell/shell-module.md +204 -0
- package/docs/api/shell/window-manager.md +267 -0
- package/docs/api/shell/workbench-directory.md +119 -0
- package/docs/api/shell/workbench.md +205 -0
- package/docs/api/shell.md +1915 -0
- package/docs/api/tenancy/auth0.md +110 -0
- package/docs/api/tenancy/cloudflare.md +221 -0
- package/docs/api/tenancy/cold-directory.md +46 -0
- package/docs/api/tenancy/owner-key.md +63 -0
- package/docs/api/tenancy/registry.md +77 -0
- package/docs/api/tenancy/resolve.md +69 -0
- package/docs/api/tenancy.md +430 -0
- package/docs/api/tenant.md +194 -0
- package/docs/api/workers-git.md +1646 -0
- package/docs/api/workers.md +1691 -0
- package/docs/site/agent-quickstart.mdx +346 -0
- package/examples/standalone/worker.ts +7 -0
- package/examples/standalone/wrangler.jsonc +82 -0
- package/package.json +300 -3
|
@@ -0,0 +1,828 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
/**
|
|
3
|
+
* The largest candidate manifest request body, in bytes. A manifest names
|
|
4
|
+
* objects; their bytes are uploaded one at a time, never inside it.
|
|
5
|
+
*/
|
|
6
|
+
export declare const TEAM_APP_CANDIDATE_MANIFEST_MAX_BYTES: number;
|
|
7
|
+
/** One content-addressed object a build uploaded before its manifest. */
|
|
8
|
+
export declare const candidateObjectSchema: Schema.Struct<{
|
|
9
|
+
readonly digest: Schema.refine<import("@fungi.computer/puffball").Sha256Digest, Schema.String>;
|
|
10
|
+
readonly byteLength: Schema.Number;
|
|
11
|
+
}>;
|
|
12
|
+
/** One uploaded object, as a manifest names it. */
|
|
13
|
+
export type CandidateObject = Schema.Schema.Type<typeof candidateObjectSchema>;
|
|
14
|
+
/** A build's output by reference: the same surfaces as its bytes, sized. */
|
|
15
|
+
export declare const candidateOutputManifestSchema: Schema.Union<readonly [Schema.Struct<{
|
|
16
|
+
readonly declaration: Schema.optionalKey<Schema.Codec<Readonly<{
|
|
17
|
+
api?: import("@fungi.computer/puffball").AppApi;
|
|
18
|
+
displayName?: string | undefined;
|
|
19
|
+
capabilities: readonly import("@fungi.computer/puffball").AppCapabilityId[];
|
|
20
|
+
calls?: readonly Readonly<{
|
|
21
|
+
appId: string;
|
|
22
|
+
methods: readonly string[];
|
|
23
|
+
}>[] | undefined;
|
|
24
|
+
guidance?: string | undefined;
|
|
25
|
+
handlers: readonly import("@fungi.computer/puffball").AppHandler[];
|
|
26
|
+
receives?: readonly "git.push"[] | undefined;
|
|
27
|
+
icon?: string;
|
|
28
|
+
roles: readonly import("@fungi.computer/puffball").AppRole[];
|
|
29
|
+
storage?: readonly import("@fungi.computer/puffball").AppStorageKey[] | undefined;
|
|
30
|
+
commands?: readonly import("@fungi.computer/puffball").AppDeclaredCommand[] | undefined;
|
|
31
|
+
gills?: readonly import("@fungi.computer/gills").AppDeclaredGill[] | undefined;
|
|
32
|
+
backend?: Readonly<{
|
|
33
|
+
bindings: readonly import("@fungi.computer/puffball").AppBackendBinding[];
|
|
34
|
+
sync?: Readonly<{
|
|
35
|
+
method: string;
|
|
36
|
+
}>;
|
|
37
|
+
}> | undefined;
|
|
38
|
+
}>, Readonly<{
|
|
39
|
+
api?: import("@fungi.computer/puffball").AppApi;
|
|
40
|
+
displayName?: string | undefined;
|
|
41
|
+
capabilities: readonly import("@fungi.computer/puffball").AppCapabilityId[];
|
|
42
|
+
calls?: readonly Readonly<{
|
|
43
|
+
appId: string;
|
|
44
|
+
methods: readonly string[];
|
|
45
|
+
}>[] | undefined;
|
|
46
|
+
guidance?: string | undefined;
|
|
47
|
+
handlers: readonly import("@fungi.computer/puffball").AppHandler[];
|
|
48
|
+
receives?: readonly "git.push"[] | undefined;
|
|
49
|
+
icon?: string;
|
|
50
|
+
roles: readonly import("@fungi.computer/puffball").AppRole[];
|
|
51
|
+
storage?: readonly import("@fungi.computer/puffball").AppStorageKey[] | undefined;
|
|
52
|
+
commands?: readonly import("@fungi.computer/puffball").AppDeclaredCommand[] | undefined;
|
|
53
|
+
gills?: readonly import("@fungi.computer/gills").AppDeclaredGill[] | undefined;
|
|
54
|
+
backend?: Readonly<{
|
|
55
|
+
bindings: readonly import("@fungi.computer/puffball").AppBackendBinding[];
|
|
56
|
+
sync?: Readonly<{
|
|
57
|
+
method: string;
|
|
58
|
+
}>;
|
|
59
|
+
}> | undefined;
|
|
60
|
+
}>, never, never>>;
|
|
61
|
+
readonly kind: Schema.Literal<"ui">;
|
|
62
|
+
readonly ui: Schema.Union<readonly [Schema.Struct<{
|
|
63
|
+
readonly mediaType: Schema.Literal<"text/html; charset=utf-8">;
|
|
64
|
+
readonly content: Schema.Struct<{
|
|
65
|
+
readonly digest: Schema.refine<import("@fungi.computer/puffball").Sha256Digest, Schema.String>;
|
|
66
|
+
readonly byteLength: Schema.Number;
|
|
67
|
+
readonly kind: Schema.Literal<"html">;
|
|
68
|
+
}>;
|
|
69
|
+
}>, Schema.Struct<{
|
|
70
|
+
readonly mediaType: Schema.Literal<"application/vnd.fungi.app-assets+json">;
|
|
71
|
+
readonly content: Schema.Struct<{
|
|
72
|
+
readonly kind: Schema.Literal<"assets">;
|
|
73
|
+
readonly base: Schema.String;
|
|
74
|
+
readonly assets: Schema.$Array<Schema.Struct<{
|
|
75
|
+
readonly digest: Schema.refine<import("@fungi.computer/puffball").Sha256Digest, Schema.String>;
|
|
76
|
+
readonly byteLength: Schema.Number;
|
|
77
|
+
readonly path: Schema.String;
|
|
78
|
+
}>>;
|
|
79
|
+
}>;
|
|
80
|
+
}>]>;
|
|
81
|
+
}>, Schema.Struct<{
|
|
82
|
+
readonly declaration: Schema.optionalKey<Schema.Codec<Readonly<{
|
|
83
|
+
api?: import("@fungi.computer/puffball").AppApi;
|
|
84
|
+
displayName?: string | undefined;
|
|
85
|
+
capabilities: readonly import("@fungi.computer/puffball").AppCapabilityId[];
|
|
86
|
+
calls?: readonly Readonly<{
|
|
87
|
+
appId: string;
|
|
88
|
+
methods: readonly string[];
|
|
89
|
+
}>[] | undefined;
|
|
90
|
+
guidance?: string | undefined;
|
|
91
|
+
handlers: readonly import("@fungi.computer/puffball").AppHandler[];
|
|
92
|
+
receives?: readonly "git.push"[] | undefined;
|
|
93
|
+
icon?: string;
|
|
94
|
+
roles: readonly import("@fungi.computer/puffball").AppRole[];
|
|
95
|
+
storage?: readonly import("@fungi.computer/puffball").AppStorageKey[] | undefined;
|
|
96
|
+
commands?: readonly import("@fungi.computer/puffball").AppDeclaredCommand[] | undefined;
|
|
97
|
+
gills?: readonly import("@fungi.computer/gills").AppDeclaredGill[] | undefined;
|
|
98
|
+
backend?: Readonly<{
|
|
99
|
+
bindings: readonly import("@fungi.computer/puffball").AppBackendBinding[];
|
|
100
|
+
sync?: Readonly<{
|
|
101
|
+
method: string;
|
|
102
|
+
}>;
|
|
103
|
+
}> | undefined;
|
|
104
|
+
}>, Readonly<{
|
|
105
|
+
api?: import("@fungi.computer/puffball").AppApi;
|
|
106
|
+
displayName?: string | undefined;
|
|
107
|
+
capabilities: readonly import("@fungi.computer/puffball").AppCapabilityId[];
|
|
108
|
+
calls?: readonly Readonly<{
|
|
109
|
+
appId: string;
|
|
110
|
+
methods: readonly string[];
|
|
111
|
+
}>[] | undefined;
|
|
112
|
+
guidance?: string | undefined;
|
|
113
|
+
handlers: readonly import("@fungi.computer/puffball").AppHandler[];
|
|
114
|
+
receives?: readonly "git.push"[] | undefined;
|
|
115
|
+
icon?: string;
|
|
116
|
+
roles: readonly import("@fungi.computer/puffball").AppRole[];
|
|
117
|
+
storage?: readonly import("@fungi.computer/puffball").AppStorageKey[] | undefined;
|
|
118
|
+
commands?: readonly import("@fungi.computer/puffball").AppDeclaredCommand[] | undefined;
|
|
119
|
+
gills?: readonly import("@fungi.computer/gills").AppDeclaredGill[] | undefined;
|
|
120
|
+
backend?: Readonly<{
|
|
121
|
+
bindings: readonly import("@fungi.computer/puffball").AppBackendBinding[];
|
|
122
|
+
sync?: Readonly<{
|
|
123
|
+
method: string;
|
|
124
|
+
}>;
|
|
125
|
+
}> | undefined;
|
|
126
|
+
}>, never, never>>;
|
|
127
|
+
readonly kind: Schema.Literal<"backend">;
|
|
128
|
+
readonly backend: Schema.Struct<{
|
|
129
|
+
readonly digest: Schema.refine<import("@fungi.computer/puffball").Sha256Digest, Schema.String>;
|
|
130
|
+
readonly byteLength: Schema.Number;
|
|
131
|
+
}>;
|
|
132
|
+
}>, Schema.Struct<{
|
|
133
|
+
readonly declaration: Schema.optionalKey<Schema.Codec<Readonly<{
|
|
134
|
+
api?: import("@fungi.computer/puffball").AppApi;
|
|
135
|
+
displayName?: string | undefined;
|
|
136
|
+
capabilities: readonly import("@fungi.computer/puffball").AppCapabilityId[];
|
|
137
|
+
calls?: readonly Readonly<{
|
|
138
|
+
appId: string;
|
|
139
|
+
methods: readonly string[];
|
|
140
|
+
}>[] | undefined;
|
|
141
|
+
guidance?: string | undefined;
|
|
142
|
+
handlers: readonly import("@fungi.computer/puffball").AppHandler[];
|
|
143
|
+
receives?: readonly "git.push"[] | undefined;
|
|
144
|
+
icon?: string;
|
|
145
|
+
roles: readonly import("@fungi.computer/puffball").AppRole[];
|
|
146
|
+
storage?: readonly import("@fungi.computer/puffball").AppStorageKey[] | undefined;
|
|
147
|
+
commands?: readonly import("@fungi.computer/puffball").AppDeclaredCommand[] | undefined;
|
|
148
|
+
gills?: readonly import("@fungi.computer/gills").AppDeclaredGill[] | undefined;
|
|
149
|
+
backend?: Readonly<{
|
|
150
|
+
bindings: readonly import("@fungi.computer/puffball").AppBackendBinding[];
|
|
151
|
+
sync?: Readonly<{
|
|
152
|
+
method: string;
|
|
153
|
+
}>;
|
|
154
|
+
}> | undefined;
|
|
155
|
+
}>, Readonly<{
|
|
156
|
+
api?: import("@fungi.computer/puffball").AppApi;
|
|
157
|
+
displayName?: string | undefined;
|
|
158
|
+
capabilities: readonly import("@fungi.computer/puffball").AppCapabilityId[];
|
|
159
|
+
calls?: readonly Readonly<{
|
|
160
|
+
appId: string;
|
|
161
|
+
methods: readonly string[];
|
|
162
|
+
}>[] | undefined;
|
|
163
|
+
guidance?: string | undefined;
|
|
164
|
+
handlers: readonly import("@fungi.computer/puffball").AppHandler[];
|
|
165
|
+
receives?: readonly "git.push"[] | undefined;
|
|
166
|
+
icon?: string;
|
|
167
|
+
roles: readonly import("@fungi.computer/puffball").AppRole[];
|
|
168
|
+
storage?: readonly import("@fungi.computer/puffball").AppStorageKey[] | undefined;
|
|
169
|
+
commands?: readonly import("@fungi.computer/puffball").AppDeclaredCommand[] | undefined;
|
|
170
|
+
gills?: readonly import("@fungi.computer/gills").AppDeclaredGill[] | undefined;
|
|
171
|
+
backend?: Readonly<{
|
|
172
|
+
bindings: readonly import("@fungi.computer/puffball").AppBackendBinding[];
|
|
173
|
+
sync?: Readonly<{
|
|
174
|
+
method: string;
|
|
175
|
+
}>;
|
|
176
|
+
}> | undefined;
|
|
177
|
+
}>, never, never>>;
|
|
178
|
+
readonly kind: Schema.Literal<"app">;
|
|
179
|
+
readonly ui: Schema.Union<readonly [Schema.Struct<{
|
|
180
|
+
readonly mediaType: Schema.Literal<"text/html; charset=utf-8">;
|
|
181
|
+
readonly content: Schema.Struct<{
|
|
182
|
+
readonly digest: Schema.refine<import("@fungi.computer/puffball").Sha256Digest, Schema.String>;
|
|
183
|
+
readonly byteLength: Schema.Number;
|
|
184
|
+
readonly kind: Schema.Literal<"html">;
|
|
185
|
+
}>;
|
|
186
|
+
}>, Schema.Struct<{
|
|
187
|
+
readonly mediaType: Schema.Literal<"application/vnd.fungi.app-assets+json">;
|
|
188
|
+
readonly content: Schema.Struct<{
|
|
189
|
+
readonly kind: Schema.Literal<"assets">;
|
|
190
|
+
readonly base: Schema.String;
|
|
191
|
+
readonly assets: Schema.$Array<Schema.Struct<{
|
|
192
|
+
readonly digest: Schema.refine<import("@fungi.computer/puffball").Sha256Digest, Schema.String>;
|
|
193
|
+
readonly byteLength: Schema.Number;
|
|
194
|
+
readonly path: Schema.String;
|
|
195
|
+
}>>;
|
|
196
|
+
}>;
|
|
197
|
+
}>]>;
|
|
198
|
+
readonly backend: Schema.Struct<{
|
|
199
|
+
readonly digest: Schema.refine<import("@fungi.computer/puffball").Sha256Digest, Schema.String>;
|
|
200
|
+
readonly byteLength: Schema.Number;
|
|
201
|
+
}>;
|
|
202
|
+
}>]>;
|
|
203
|
+
/** One build output by reference. */
|
|
204
|
+
export type CandidateOutputManifest = Schema.Schema.Type<typeof candidateOutputManifestSchema>;
|
|
205
|
+
/**
|
|
206
|
+
* A submitted Team App candidate: its output's objects by digest and size,
|
|
207
|
+
* and its provenance, before the Team assigns a stable Release ID.
|
|
208
|
+
*/
|
|
209
|
+
export declare const teamAppCandidateManifestSchema: Schema.Struct<{
|
|
210
|
+
appId: Schema.refine<import("@fungi.computer/puffball").AppId, Schema.String>;
|
|
211
|
+
output: Schema.Union<readonly [Schema.Struct<{
|
|
212
|
+
readonly declaration: Schema.optionalKey<Schema.Codec<Readonly<{
|
|
213
|
+
api?: import("@fungi.computer/puffball").AppApi;
|
|
214
|
+
displayName?: string | undefined;
|
|
215
|
+
capabilities: readonly import("@fungi.computer/puffball").AppCapabilityId[];
|
|
216
|
+
calls?: readonly Readonly<{
|
|
217
|
+
appId: string;
|
|
218
|
+
methods: readonly string[];
|
|
219
|
+
}>[] | undefined;
|
|
220
|
+
guidance?: string | undefined;
|
|
221
|
+
handlers: readonly import("@fungi.computer/puffball").AppHandler[];
|
|
222
|
+
receives?: readonly "git.push"[] | undefined;
|
|
223
|
+
icon?: string;
|
|
224
|
+
roles: readonly import("@fungi.computer/puffball").AppRole[];
|
|
225
|
+
storage?: readonly import("@fungi.computer/puffball").AppStorageKey[] | undefined;
|
|
226
|
+
commands?: readonly import("@fungi.computer/puffball").AppDeclaredCommand[] | undefined;
|
|
227
|
+
gills?: readonly import("@fungi.computer/gills").AppDeclaredGill[] | undefined;
|
|
228
|
+
backend?: Readonly<{
|
|
229
|
+
bindings: readonly import("@fungi.computer/puffball").AppBackendBinding[];
|
|
230
|
+
sync?: Readonly<{
|
|
231
|
+
method: string;
|
|
232
|
+
}>;
|
|
233
|
+
}> | undefined;
|
|
234
|
+
}>, Readonly<{
|
|
235
|
+
api?: import("@fungi.computer/puffball").AppApi;
|
|
236
|
+
displayName?: string | undefined;
|
|
237
|
+
capabilities: readonly import("@fungi.computer/puffball").AppCapabilityId[];
|
|
238
|
+
calls?: readonly Readonly<{
|
|
239
|
+
appId: string;
|
|
240
|
+
methods: readonly string[];
|
|
241
|
+
}>[] | undefined;
|
|
242
|
+
guidance?: string | undefined;
|
|
243
|
+
handlers: readonly import("@fungi.computer/puffball").AppHandler[];
|
|
244
|
+
receives?: readonly "git.push"[] | undefined;
|
|
245
|
+
icon?: string;
|
|
246
|
+
roles: readonly import("@fungi.computer/puffball").AppRole[];
|
|
247
|
+
storage?: readonly import("@fungi.computer/puffball").AppStorageKey[] | undefined;
|
|
248
|
+
commands?: readonly import("@fungi.computer/puffball").AppDeclaredCommand[] | undefined;
|
|
249
|
+
gills?: readonly import("@fungi.computer/gills").AppDeclaredGill[] | undefined;
|
|
250
|
+
backend?: Readonly<{
|
|
251
|
+
bindings: readonly import("@fungi.computer/puffball").AppBackendBinding[];
|
|
252
|
+
sync?: Readonly<{
|
|
253
|
+
method: string;
|
|
254
|
+
}>;
|
|
255
|
+
}> | undefined;
|
|
256
|
+
}>, never, never>>;
|
|
257
|
+
readonly kind: Schema.Literal<"ui">;
|
|
258
|
+
readonly ui: Schema.Union<readonly [Schema.Struct<{
|
|
259
|
+
readonly mediaType: Schema.Literal<"text/html; charset=utf-8">;
|
|
260
|
+
readonly content: Schema.Struct<{
|
|
261
|
+
readonly digest: Schema.refine<import("@fungi.computer/puffball").Sha256Digest, Schema.String>;
|
|
262
|
+
readonly byteLength: Schema.Number;
|
|
263
|
+
readonly kind: Schema.Literal<"html">;
|
|
264
|
+
}>;
|
|
265
|
+
}>, Schema.Struct<{
|
|
266
|
+
readonly mediaType: Schema.Literal<"application/vnd.fungi.app-assets+json">;
|
|
267
|
+
readonly content: Schema.Struct<{
|
|
268
|
+
readonly kind: Schema.Literal<"assets">;
|
|
269
|
+
readonly base: Schema.String;
|
|
270
|
+
readonly assets: Schema.$Array<Schema.Struct<{
|
|
271
|
+
readonly digest: Schema.refine<import("@fungi.computer/puffball").Sha256Digest, Schema.String>;
|
|
272
|
+
readonly byteLength: Schema.Number;
|
|
273
|
+
readonly path: Schema.String;
|
|
274
|
+
}>>;
|
|
275
|
+
}>;
|
|
276
|
+
}>]>;
|
|
277
|
+
}>, Schema.Struct<{
|
|
278
|
+
readonly declaration: Schema.optionalKey<Schema.Codec<Readonly<{
|
|
279
|
+
api?: import("@fungi.computer/puffball").AppApi;
|
|
280
|
+
displayName?: string | undefined;
|
|
281
|
+
capabilities: readonly import("@fungi.computer/puffball").AppCapabilityId[];
|
|
282
|
+
calls?: readonly Readonly<{
|
|
283
|
+
appId: string;
|
|
284
|
+
methods: readonly string[];
|
|
285
|
+
}>[] | undefined;
|
|
286
|
+
guidance?: string | undefined;
|
|
287
|
+
handlers: readonly import("@fungi.computer/puffball").AppHandler[];
|
|
288
|
+
receives?: readonly "git.push"[] | undefined;
|
|
289
|
+
icon?: string;
|
|
290
|
+
roles: readonly import("@fungi.computer/puffball").AppRole[];
|
|
291
|
+
storage?: readonly import("@fungi.computer/puffball").AppStorageKey[] | undefined;
|
|
292
|
+
commands?: readonly import("@fungi.computer/puffball").AppDeclaredCommand[] | undefined;
|
|
293
|
+
gills?: readonly import("@fungi.computer/gills").AppDeclaredGill[] | undefined;
|
|
294
|
+
backend?: Readonly<{
|
|
295
|
+
bindings: readonly import("@fungi.computer/puffball").AppBackendBinding[];
|
|
296
|
+
sync?: Readonly<{
|
|
297
|
+
method: string;
|
|
298
|
+
}>;
|
|
299
|
+
}> | undefined;
|
|
300
|
+
}>, Readonly<{
|
|
301
|
+
api?: import("@fungi.computer/puffball").AppApi;
|
|
302
|
+
displayName?: string | undefined;
|
|
303
|
+
capabilities: readonly import("@fungi.computer/puffball").AppCapabilityId[];
|
|
304
|
+
calls?: readonly Readonly<{
|
|
305
|
+
appId: string;
|
|
306
|
+
methods: readonly string[];
|
|
307
|
+
}>[] | undefined;
|
|
308
|
+
guidance?: string | undefined;
|
|
309
|
+
handlers: readonly import("@fungi.computer/puffball").AppHandler[];
|
|
310
|
+
receives?: readonly "git.push"[] | undefined;
|
|
311
|
+
icon?: string;
|
|
312
|
+
roles: readonly import("@fungi.computer/puffball").AppRole[];
|
|
313
|
+
storage?: readonly import("@fungi.computer/puffball").AppStorageKey[] | undefined;
|
|
314
|
+
commands?: readonly import("@fungi.computer/puffball").AppDeclaredCommand[] | undefined;
|
|
315
|
+
gills?: readonly import("@fungi.computer/gills").AppDeclaredGill[] | undefined;
|
|
316
|
+
backend?: Readonly<{
|
|
317
|
+
bindings: readonly import("@fungi.computer/puffball").AppBackendBinding[];
|
|
318
|
+
sync?: Readonly<{
|
|
319
|
+
method: string;
|
|
320
|
+
}>;
|
|
321
|
+
}> | undefined;
|
|
322
|
+
}>, never, never>>;
|
|
323
|
+
readonly kind: Schema.Literal<"backend">;
|
|
324
|
+
readonly backend: Schema.Struct<{
|
|
325
|
+
readonly digest: Schema.refine<import("@fungi.computer/puffball").Sha256Digest, Schema.String>;
|
|
326
|
+
readonly byteLength: Schema.Number;
|
|
327
|
+
}>;
|
|
328
|
+
}>, Schema.Struct<{
|
|
329
|
+
readonly declaration: Schema.optionalKey<Schema.Codec<Readonly<{
|
|
330
|
+
api?: import("@fungi.computer/puffball").AppApi;
|
|
331
|
+
displayName?: string | undefined;
|
|
332
|
+
capabilities: readonly import("@fungi.computer/puffball").AppCapabilityId[];
|
|
333
|
+
calls?: readonly Readonly<{
|
|
334
|
+
appId: string;
|
|
335
|
+
methods: readonly string[];
|
|
336
|
+
}>[] | undefined;
|
|
337
|
+
guidance?: string | undefined;
|
|
338
|
+
handlers: readonly import("@fungi.computer/puffball").AppHandler[];
|
|
339
|
+
receives?: readonly "git.push"[] | undefined;
|
|
340
|
+
icon?: string;
|
|
341
|
+
roles: readonly import("@fungi.computer/puffball").AppRole[];
|
|
342
|
+
storage?: readonly import("@fungi.computer/puffball").AppStorageKey[] | undefined;
|
|
343
|
+
commands?: readonly import("@fungi.computer/puffball").AppDeclaredCommand[] | undefined;
|
|
344
|
+
gills?: readonly import("@fungi.computer/gills").AppDeclaredGill[] | undefined;
|
|
345
|
+
backend?: Readonly<{
|
|
346
|
+
bindings: readonly import("@fungi.computer/puffball").AppBackendBinding[];
|
|
347
|
+
sync?: Readonly<{
|
|
348
|
+
method: string;
|
|
349
|
+
}>;
|
|
350
|
+
}> | undefined;
|
|
351
|
+
}>, Readonly<{
|
|
352
|
+
api?: import("@fungi.computer/puffball").AppApi;
|
|
353
|
+
displayName?: string | undefined;
|
|
354
|
+
capabilities: readonly import("@fungi.computer/puffball").AppCapabilityId[];
|
|
355
|
+
calls?: readonly Readonly<{
|
|
356
|
+
appId: string;
|
|
357
|
+
methods: readonly string[];
|
|
358
|
+
}>[] | undefined;
|
|
359
|
+
guidance?: string | undefined;
|
|
360
|
+
handlers: readonly import("@fungi.computer/puffball").AppHandler[];
|
|
361
|
+
receives?: readonly "git.push"[] | undefined;
|
|
362
|
+
icon?: string;
|
|
363
|
+
roles: readonly import("@fungi.computer/puffball").AppRole[];
|
|
364
|
+
storage?: readonly import("@fungi.computer/puffball").AppStorageKey[] | undefined;
|
|
365
|
+
commands?: readonly import("@fungi.computer/puffball").AppDeclaredCommand[] | undefined;
|
|
366
|
+
gills?: readonly import("@fungi.computer/gills").AppDeclaredGill[] | undefined;
|
|
367
|
+
backend?: Readonly<{
|
|
368
|
+
bindings: readonly import("@fungi.computer/puffball").AppBackendBinding[];
|
|
369
|
+
sync?: Readonly<{
|
|
370
|
+
method: string;
|
|
371
|
+
}>;
|
|
372
|
+
}> | undefined;
|
|
373
|
+
}>, never, never>>;
|
|
374
|
+
readonly kind: Schema.Literal<"app">;
|
|
375
|
+
readonly ui: Schema.Union<readonly [Schema.Struct<{
|
|
376
|
+
readonly mediaType: Schema.Literal<"text/html; charset=utf-8">;
|
|
377
|
+
readonly content: Schema.Struct<{
|
|
378
|
+
readonly digest: Schema.refine<import("@fungi.computer/puffball").Sha256Digest, Schema.String>;
|
|
379
|
+
readonly byteLength: Schema.Number;
|
|
380
|
+
readonly kind: Schema.Literal<"html">;
|
|
381
|
+
}>;
|
|
382
|
+
}>, Schema.Struct<{
|
|
383
|
+
readonly mediaType: Schema.Literal<"application/vnd.fungi.app-assets+json">;
|
|
384
|
+
readonly content: Schema.Struct<{
|
|
385
|
+
readonly kind: Schema.Literal<"assets">;
|
|
386
|
+
readonly base: Schema.String;
|
|
387
|
+
readonly assets: Schema.$Array<Schema.Struct<{
|
|
388
|
+
readonly digest: Schema.refine<import("@fungi.computer/puffball").Sha256Digest, Schema.String>;
|
|
389
|
+
readonly byteLength: Schema.Number;
|
|
390
|
+
readonly path: Schema.String;
|
|
391
|
+
}>>;
|
|
392
|
+
}>;
|
|
393
|
+
}>]>;
|
|
394
|
+
readonly backend: Schema.Struct<{
|
|
395
|
+
readonly digest: Schema.refine<import("@fungi.computer/puffball").Sha256Digest, Schema.String>;
|
|
396
|
+
readonly byteLength: Schema.Number;
|
|
397
|
+
}>;
|
|
398
|
+
}>]>;
|
|
399
|
+
provenance: Schema.Struct<{
|
|
400
|
+
readonly sourceRevision: Schema.refine<import("@fungi.computer/puffball").SourceRevision, Schema.String>;
|
|
401
|
+
readonly sourceTreeDigest: Schema.refine<import("@fungi.computer/puffball").Sha256Digest, Schema.String>;
|
|
402
|
+
readonly buildRecipeDigest: Schema.refine<import("@fungi.computer/puffball").Sha256Digest, Schema.String>;
|
|
403
|
+
}>;
|
|
404
|
+
}>;
|
|
405
|
+
/** One submitted Team App candidate manifest. */
|
|
406
|
+
export type TeamAppCandidateManifest = Schema.Schema.Type<typeof teamAppCandidateManifestSchema>;
|
|
407
|
+
/** Publisher persistence input after TeamDO reserves retry-stable identities. */
|
|
408
|
+
export declare const preparedCandidateManifestSchema: Schema.Struct<{
|
|
409
|
+
readonly releaseId: Schema.refine<import("@fungi.computer/puffball").ReleaseId, Schema.String>;
|
|
410
|
+
readonly appId: Schema.refine<import("@fungi.computer/puffball").AppId, Schema.String>;
|
|
411
|
+
readonly output: Schema.Union<readonly [Schema.Struct<{
|
|
412
|
+
readonly declaration: Schema.optionalKey<Schema.Codec<Readonly<{
|
|
413
|
+
api?: import("@fungi.computer/puffball").AppApi;
|
|
414
|
+
displayName?: string | undefined;
|
|
415
|
+
capabilities: readonly import("@fungi.computer/puffball").AppCapabilityId[];
|
|
416
|
+
calls?: readonly Readonly<{
|
|
417
|
+
appId: string;
|
|
418
|
+
methods: readonly string[];
|
|
419
|
+
}>[] | undefined;
|
|
420
|
+
guidance?: string | undefined;
|
|
421
|
+
handlers: readonly import("@fungi.computer/puffball").AppHandler[];
|
|
422
|
+
receives?: readonly "git.push"[] | undefined;
|
|
423
|
+
icon?: string;
|
|
424
|
+
roles: readonly import("@fungi.computer/puffball").AppRole[];
|
|
425
|
+
storage?: readonly import("@fungi.computer/puffball").AppStorageKey[] | undefined;
|
|
426
|
+
commands?: readonly import("@fungi.computer/puffball").AppDeclaredCommand[] | undefined;
|
|
427
|
+
gills?: readonly import("@fungi.computer/gills").AppDeclaredGill[] | undefined;
|
|
428
|
+
backend?: Readonly<{
|
|
429
|
+
bindings: readonly import("@fungi.computer/puffball").AppBackendBinding[];
|
|
430
|
+
sync?: Readonly<{
|
|
431
|
+
method: string;
|
|
432
|
+
}>;
|
|
433
|
+
}> | undefined;
|
|
434
|
+
}>, Readonly<{
|
|
435
|
+
api?: import("@fungi.computer/puffball").AppApi;
|
|
436
|
+
displayName?: string | undefined;
|
|
437
|
+
capabilities: readonly import("@fungi.computer/puffball").AppCapabilityId[];
|
|
438
|
+
calls?: readonly Readonly<{
|
|
439
|
+
appId: string;
|
|
440
|
+
methods: readonly string[];
|
|
441
|
+
}>[] | undefined;
|
|
442
|
+
guidance?: string | undefined;
|
|
443
|
+
handlers: readonly import("@fungi.computer/puffball").AppHandler[];
|
|
444
|
+
receives?: readonly "git.push"[] | undefined;
|
|
445
|
+
icon?: string;
|
|
446
|
+
roles: readonly import("@fungi.computer/puffball").AppRole[];
|
|
447
|
+
storage?: readonly import("@fungi.computer/puffball").AppStorageKey[] | undefined;
|
|
448
|
+
commands?: readonly import("@fungi.computer/puffball").AppDeclaredCommand[] | undefined;
|
|
449
|
+
gills?: readonly import("@fungi.computer/gills").AppDeclaredGill[] | undefined;
|
|
450
|
+
backend?: Readonly<{
|
|
451
|
+
bindings: readonly import("@fungi.computer/puffball").AppBackendBinding[];
|
|
452
|
+
sync?: Readonly<{
|
|
453
|
+
method: string;
|
|
454
|
+
}>;
|
|
455
|
+
}> | undefined;
|
|
456
|
+
}>, never, never>>;
|
|
457
|
+
readonly kind: Schema.Literal<"ui">;
|
|
458
|
+
readonly ui: Schema.Union<readonly [Schema.Struct<{
|
|
459
|
+
readonly mediaType: Schema.Literal<"text/html; charset=utf-8">;
|
|
460
|
+
readonly content: Schema.Struct<{
|
|
461
|
+
readonly digest: Schema.refine<import("@fungi.computer/puffball").Sha256Digest, Schema.String>;
|
|
462
|
+
readonly byteLength: Schema.Number;
|
|
463
|
+
readonly kind: Schema.Literal<"html">;
|
|
464
|
+
}>;
|
|
465
|
+
}>, Schema.Struct<{
|
|
466
|
+
readonly mediaType: Schema.Literal<"application/vnd.fungi.app-assets+json">;
|
|
467
|
+
readonly content: Schema.Struct<{
|
|
468
|
+
readonly kind: Schema.Literal<"assets">;
|
|
469
|
+
readonly base: Schema.String;
|
|
470
|
+
readonly assets: Schema.$Array<Schema.Struct<{
|
|
471
|
+
readonly digest: Schema.refine<import("@fungi.computer/puffball").Sha256Digest, Schema.String>;
|
|
472
|
+
readonly byteLength: Schema.Number;
|
|
473
|
+
readonly path: Schema.String;
|
|
474
|
+
}>>;
|
|
475
|
+
}>;
|
|
476
|
+
}>]>;
|
|
477
|
+
}>, Schema.Struct<{
|
|
478
|
+
readonly declaration: Schema.optionalKey<Schema.Codec<Readonly<{
|
|
479
|
+
api?: import("@fungi.computer/puffball").AppApi;
|
|
480
|
+
displayName?: string | undefined;
|
|
481
|
+
capabilities: readonly import("@fungi.computer/puffball").AppCapabilityId[];
|
|
482
|
+
calls?: readonly Readonly<{
|
|
483
|
+
appId: string;
|
|
484
|
+
methods: readonly string[];
|
|
485
|
+
}>[] | undefined;
|
|
486
|
+
guidance?: string | undefined;
|
|
487
|
+
handlers: readonly import("@fungi.computer/puffball").AppHandler[];
|
|
488
|
+
receives?: readonly "git.push"[] | undefined;
|
|
489
|
+
icon?: string;
|
|
490
|
+
roles: readonly import("@fungi.computer/puffball").AppRole[];
|
|
491
|
+
storage?: readonly import("@fungi.computer/puffball").AppStorageKey[] | undefined;
|
|
492
|
+
commands?: readonly import("@fungi.computer/puffball").AppDeclaredCommand[] | undefined;
|
|
493
|
+
gills?: readonly import("@fungi.computer/gills").AppDeclaredGill[] | undefined;
|
|
494
|
+
backend?: Readonly<{
|
|
495
|
+
bindings: readonly import("@fungi.computer/puffball").AppBackendBinding[];
|
|
496
|
+
sync?: Readonly<{
|
|
497
|
+
method: string;
|
|
498
|
+
}>;
|
|
499
|
+
}> | undefined;
|
|
500
|
+
}>, Readonly<{
|
|
501
|
+
api?: import("@fungi.computer/puffball").AppApi;
|
|
502
|
+
displayName?: string | undefined;
|
|
503
|
+
capabilities: readonly import("@fungi.computer/puffball").AppCapabilityId[];
|
|
504
|
+
calls?: readonly Readonly<{
|
|
505
|
+
appId: string;
|
|
506
|
+
methods: readonly string[];
|
|
507
|
+
}>[] | undefined;
|
|
508
|
+
guidance?: string | undefined;
|
|
509
|
+
handlers: readonly import("@fungi.computer/puffball").AppHandler[];
|
|
510
|
+
receives?: readonly "git.push"[] | undefined;
|
|
511
|
+
icon?: string;
|
|
512
|
+
roles: readonly import("@fungi.computer/puffball").AppRole[];
|
|
513
|
+
storage?: readonly import("@fungi.computer/puffball").AppStorageKey[] | undefined;
|
|
514
|
+
commands?: readonly import("@fungi.computer/puffball").AppDeclaredCommand[] | undefined;
|
|
515
|
+
gills?: readonly import("@fungi.computer/gills").AppDeclaredGill[] | undefined;
|
|
516
|
+
backend?: Readonly<{
|
|
517
|
+
bindings: readonly import("@fungi.computer/puffball").AppBackendBinding[];
|
|
518
|
+
sync?: Readonly<{
|
|
519
|
+
method: string;
|
|
520
|
+
}>;
|
|
521
|
+
}> | undefined;
|
|
522
|
+
}>, never, never>>;
|
|
523
|
+
readonly kind: Schema.Literal<"backend">;
|
|
524
|
+
readonly backend: Schema.Struct<{
|
|
525
|
+
readonly digest: Schema.refine<import("@fungi.computer/puffball").Sha256Digest, Schema.String>;
|
|
526
|
+
readonly byteLength: Schema.Number;
|
|
527
|
+
}>;
|
|
528
|
+
}>, Schema.Struct<{
|
|
529
|
+
readonly declaration: Schema.optionalKey<Schema.Codec<Readonly<{
|
|
530
|
+
api?: import("@fungi.computer/puffball").AppApi;
|
|
531
|
+
displayName?: string | undefined;
|
|
532
|
+
capabilities: readonly import("@fungi.computer/puffball").AppCapabilityId[];
|
|
533
|
+
calls?: readonly Readonly<{
|
|
534
|
+
appId: string;
|
|
535
|
+
methods: readonly string[];
|
|
536
|
+
}>[] | undefined;
|
|
537
|
+
guidance?: string | undefined;
|
|
538
|
+
handlers: readonly import("@fungi.computer/puffball").AppHandler[];
|
|
539
|
+
receives?: readonly "git.push"[] | undefined;
|
|
540
|
+
icon?: string;
|
|
541
|
+
roles: readonly import("@fungi.computer/puffball").AppRole[];
|
|
542
|
+
storage?: readonly import("@fungi.computer/puffball").AppStorageKey[] | undefined;
|
|
543
|
+
commands?: readonly import("@fungi.computer/puffball").AppDeclaredCommand[] | undefined;
|
|
544
|
+
gills?: readonly import("@fungi.computer/gills").AppDeclaredGill[] | undefined;
|
|
545
|
+
backend?: Readonly<{
|
|
546
|
+
bindings: readonly import("@fungi.computer/puffball").AppBackendBinding[];
|
|
547
|
+
sync?: Readonly<{
|
|
548
|
+
method: string;
|
|
549
|
+
}>;
|
|
550
|
+
}> | undefined;
|
|
551
|
+
}>, Readonly<{
|
|
552
|
+
api?: import("@fungi.computer/puffball").AppApi;
|
|
553
|
+
displayName?: string | undefined;
|
|
554
|
+
capabilities: readonly import("@fungi.computer/puffball").AppCapabilityId[];
|
|
555
|
+
calls?: readonly Readonly<{
|
|
556
|
+
appId: string;
|
|
557
|
+
methods: readonly string[];
|
|
558
|
+
}>[] | undefined;
|
|
559
|
+
guidance?: string | undefined;
|
|
560
|
+
handlers: readonly import("@fungi.computer/puffball").AppHandler[];
|
|
561
|
+
receives?: readonly "git.push"[] | undefined;
|
|
562
|
+
icon?: string;
|
|
563
|
+
roles: readonly import("@fungi.computer/puffball").AppRole[];
|
|
564
|
+
storage?: readonly import("@fungi.computer/puffball").AppStorageKey[] | undefined;
|
|
565
|
+
commands?: readonly import("@fungi.computer/puffball").AppDeclaredCommand[] | undefined;
|
|
566
|
+
gills?: readonly import("@fungi.computer/gills").AppDeclaredGill[] | undefined;
|
|
567
|
+
backend?: Readonly<{
|
|
568
|
+
bindings: readonly import("@fungi.computer/puffball").AppBackendBinding[];
|
|
569
|
+
sync?: Readonly<{
|
|
570
|
+
method: string;
|
|
571
|
+
}>;
|
|
572
|
+
}> | undefined;
|
|
573
|
+
}>, never, never>>;
|
|
574
|
+
readonly kind: Schema.Literal<"app">;
|
|
575
|
+
readonly ui: Schema.Union<readonly [Schema.Struct<{
|
|
576
|
+
readonly mediaType: Schema.Literal<"text/html; charset=utf-8">;
|
|
577
|
+
readonly content: Schema.Struct<{
|
|
578
|
+
readonly digest: Schema.refine<import("@fungi.computer/puffball").Sha256Digest, Schema.String>;
|
|
579
|
+
readonly byteLength: Schema.Number;
|
|
580
|
+
readonly kind: Schema.Literal<"html">;
|
|
581
|
+
}>;
|
|
582
|
+
}>, Schema.Struct<{
|
|
583
|
+
readonly mediaType: Schema.Literal<"application/vnd.fungi.app-assets+json">;
|
|
584
|
+
readonly content: Schema.Struct<{
|
|
585
|
+
readonly kind: Schema.Literal<"assets">;
|
|
586
|
+
readonly base: Schema.String;
|
|
587
|
+
readonly assets: Schema.$Array<Schema.Struct<{
|
|
588
|
+
readonly digest: Schema.refine<import("@fungi.computer/puffball").Sha256Digest, Schema.String>;
|
|
589
|
+
readonly byteLength: Schema.Number;
|
|
590
|
+
readonly path: Schema.String;
|
|
591
|
+
}>>;
|
|
592
|
+
}>;
|
|
593
|
+
}>]>;
|
|
594
|
+
readonly backend: Schema.Struct<{
|
|
595
|
+
readonly digest: Schema.refine<import("@fungi.computer/puffball").Sha256Digest, Schema.String>;
|
|
596
|
+
readonly byteLength: Schema.Number;
|
|
597
|
+
}>;
|
|
598
|
+
}>]>;
|
|
599
|
+
readonly provenance: Schema.Struct<{
|
|
600
|
+
readonly sourceRevision: Schema.refine<import("@fungi.computer/puffball").SourceRevision, Schema.String>;
|
|
601
|
+
readonly sourceTreeDigest: Schema.refine<import("@fungi.computer/puffball").Sha256Digest, Schema.String>;
|
|
602
|
+
readonly buildRecipeDigest: Schema.refine<import("@fungi.computer/puffball").Sha256Digest, Schema.String>;
|
|
603
|
+
}>;
|
|
604
|
+
}>;
|
|
605
|
+
/** One Team App candidate manifest with its reserved Release ID. */
|
|
606
|
+
export type PreparedTeamAppCandidateManifest = Schema.Schema.Type<typeof preparedCandidateManifestSchema>;
|
|
607
|
+
/**
|
|
608
|
+
* A platform App candidate the trusted operator built and packed itself,
|
|
609
|
+
* with its bytes inline: the operator's platform publication request only.
|
|
610
|
+
* A Team candidate never carries bytes; it is a manifest.
|
|
611
|
+
*/
|
|
612
|
+
export declare const preparedCandidateSchema: Schema.Struct<{
|
|
613
|
+
readonly appId: Schema.refine<import("@fungi.computer/puffball").AppId, Schema.String>;
|
|
614
|
+
readonly releaseId: Schema.refine<import("@fungi.computer/puffball").ReleaseId, Schema.String>;
|
|
615
|
+
readonly output: Schema.Union<readonly [Schema.Struct<{
|
|
616
|
+
readonly declaration: Schema.optionalKey<Schema.Codec<Readonly<{
|
|
617
|
+
api?: import("@fungi.computer/puffball").AppApi;
|
|
618
|
+
displayName?: string | undefined;
|
|
619
|
+
capabilities: readonly import("@fungi.computer/puffball").AppCapabilityId[];
|
|
620
|
+
calls?: readonly Readonly<{
|
|
621
|
+
appId: string;
|
|
622
|
+
methods: readonly string[];
|
|
623
|
+
}>[] | undefined;
|
|
624
|
+
guidance?: string | undefined;
|
|
625
|
+
handlers: readonly import("@fungi.computer/puffball").AppHandler[];
|
|
626
|
+
receives?: readonly "git.push"[] | undefined;
|
|
627
|
+
icon?: string;
|
|
628
|
+
roles: readonly import("@fungi.computer/puffball").AppRole[];
|
|
629
|
+
storage?: readonly import("@fungi.computer/puffball").AppStorageKey[] | undefined;
|
|
630
|
+
commands?: readonly import("@fungi.computer/puffball").AppDeclaredCommand[] | undefined;
|
|
631
|
+
gills?: readonly import("@fungi.computer/gills").AppDeclaredGill[] | undefined;
|
|
632
|
+
backend?: Readonly<{
|
|
633
|
+
bindings: readonly import("@fungi.computer/puffball").AppBackendBinding[];
|
|
634
|
+
sync?: Readonly<{
|
|
635
|
+
method: string;
|
|
636
|
+
}>;
|
|
637
|
+
}> | undefined;
|
|
638
|
+
}>, Readonly<{
|
|
639
|
+
api?: import("@fungi.computer/puffball").AppApi;
|
|
640
|
+
displayName?: string | undefined;
|
|
641
|
+
capabilities: readonly import("@fungi.computer/puffball").AppCapabilityId[];
|
|
642
|
+
calls?: readonly Readonly<{
|
|
643
|
+
appId: string;
|
|
644
|
+
methods: readonly string[];
|
|
645
|
+
}>[] | undefined;
|
|
646
|
+
guidance?: string | undefined;
|
|
647
|
+
handlers: readonly import("@fungi.computer/puffball").AppHandler[];
|
|
648
|
+
receives?: readonly "git.push"[] | undefined;
|
|
649
|
+
icon?: string;
|
|
650
|
+
roles: readonly import("@fungi.computer/puffball").AppRole[];
|
|
651
|
+
storage?: readonly import("@fungi.computer/puffball").AppStorageKey[] | undefined;
|
|
652
|
+
commands?: readonly import("@fungi.computer/puffball").AppDeclaredCommand[] | undefined;
|
|
653
|
+
gills?: readonly import("@fungi.computer/gills").AppDeclaredGill[] | undefined;
|
|
654
|
+
backend?: Readonly<{
|
|
655
|
+
bindings: readonly import("@fungi.computer/puffball").AppBackendBinding[];
|
|
656
|
+
sync?: Readonly<{
|
|
657
|
+
method: string;
|
|
658
|
+
}>;
|
|
659
|
+
}> | undefined;
|
|
660
|
+
}>, never, never>>;
|
|
661
|
+
readonly kind: Schema.Literal<"ui">;
|
|
662
|
+
readonly ui: Schema.Union<readonly [Schema.Struct<{
|
|
663
|
+
readonly mediaType: Schema.Literal<"text/html; charset=utf-8">;
|
|
664
|
+
readonly content: Schema.Struct<{
|
|
665
|
+
readonly kind: Schema.Literal<"html">;
|
|
666
|
+
readonly bytes: Schema.Uint8ArrayFromBase64;
|
|
667
|
+
}>;
|
|
668
|
+
}>, Schema.Struct<{
|
|
669
|
+
readonly mediaType: Schema.Literal<"application/vnd.fungi.app-assets+json">;
|
|
670
|
+
readonly content: Schema.Struct<{
|
|
671
|
+
readonly kind: Schema.Literal<"assets">;
|
|
672
|
+
readonly base: Schema.String;
|
|
673
|
+
readonly assets: Schema.$Array<Schema.Struct<{
|
|
674
|
+
readonly path: Schema.String;
|
|
675
|
+
readonly bytes: Schema.Uint8ArrayFromBase64;
|
|
676
|
+
}>>;
|
|
677
|
+
}>;
|
|
678
|
+
}>]>;
|
|
679
|
+
}>, Schema.Struct<{
|
|
680
|
+
readonly declaration: Schema.optionalKey<Schema.Codec<Readonly<{
|
|
681
|
+
api?: import("@fungi.computer/puffball").AppApi;
|
|
682
|
+
displayName?: string | undefined;
|
|
683
|
+
capabilities: readonly import("@fungi.computer/puffball").AppCapabilityId[];
|
|
684
|
+
calls?: readonly Readonly<{
|
|
685
|
+
appId: string;
|
|
686
|
+
methods: readonly string[];
|
|
687
|
+
}>[] | undefined;
|
|
688
|
+
guidance?: string | undefined;
|
|
689
|
+
handlers: readonly import("@fungi.computer/puffball").AppHandler[];
|
|
690
|
+
receives?: readonly "git.push"[] | undefined;
|
|
691
|
+
icon?: string;
|
|
692
|
+
roles: readonly import("@fungi.computer/puffball").AppRole[];
|
|
693
|
+
storage?: readonly import("@fungi.computer/puffball").AppStorageKey[] | undefined;
|
|
694
|
+
commands?: readonly import("@fungi.computer/puffball").AppDeclaredCommand[] | undefined;
|
|
695
|
+
gills?: readonly import("@fungi.computer/gills").AppDeclaredGill[] | undefined;
|
|
696
|
+
backend?: Readonly<{
|
|
697
|
+
bindings: readonly import("@fungi.computer/puffball").AppBackendBinding[];
|
|
698
|
+
sync?: Readonly<{
|
|
699
|
+
method: string;
|
|
700
|
+
}>;
|
|
701
|
+
}> | undefined;
|
|
702
|
+
}>, Readonly<{
|
|
703
|
+
api?: import("@fungi.computer/puffball").AppApi;
|
|
704
|
+
displayName?: string | undefined;
|
|
705
|
+
capabilities: readonly import("@fungi.computer/puffball").AppCapabilityId[];
|
|
706
|
+
calls?: readonly Readonly<{
|
|
707
|
+
appId: string;
|
|
708
|
+
methods: readonly string[];
|
|
709
|
+
}>[] | undefined;
|
|
710
|
+
guidance?: string | undefined;
|
|
711
|
+
handlers: readonly import("@fungi.computer/puffball").AppHandler[];
|
|
712
|
+
receives?: readonly "git.push"[] | undefined;
|
|
713
|
+
icon?: string;
|
|
714
|
+
roles: readonly import("@fungi.computer/puffball").AppRole[];
|
|
715
|
+
storage?: readonly import("@fungi.computer/puffball").AppStorageKey[] | undefined;
|
|
716
|
+
commands?: readonly import("@fungi.computer/puffball").AppDeclaredCommand[] | undefined;
|
|
717
|
+
gills?: readonly import("@fungi.computer/gills").AppDeclaredGill[] | undefined;
|
|
718
|
+
backend?: Readonly<{
|
|
719
|
+
bindings: readonly import("@fungi.computer/puffball").AppBackendBinding[];
|
|
720
|
+
sync?: Readonly<{
|
|
721
|
+
method: string;
|
|
722
|
+
}>;
|
|
723
|
+
}> | undefined;
|
|
724
|
+
}>, never, never>>;
|
|
725
|
+
readonly kind: Schema.Literal<"backend">;
|
|
726
|
+
readonly backend: Schema.Uint8ArrayFromBase64;
|
|
727
|
+
}>, Schema.Struct<{
|
|
728
|
+
readonly declaration: Schema.optionalKey<Schema.Codec<Readonly<{
|
|
729
|
+
api?: import("@fungi.computer/puffball").AppApi;
|
|
730
|
+
displayName?: string | undefined;
|
|
731
|
+
capabilities: readonly import("@fungi.computer/puffball").AppCapabilityId[];
|
|
732
|
+
calls?: readonly Readonly<{
|
|
733
|
+
appId: string;
|
|
734
|
+
methods: readonly string[];
|
|
735
|
+
}>[] | undefined;
|
|
736
|
+
guidance?: string | undefined;
|
|
737
|
+
handlers: readonly import("@fungi.computer/puffball").AppHandler[];
|
|
738
|
+
receives?: readonly "git.push"[] | undefined;
|
|
739
|
+
icon?: string;
|
|
740
|
+
roles: readonly import("@fungi.computer/puffball").AppRole[];
|
|
741
|
+
storage?: readonly import("@fungi.computer/puffball").AppStorageKey[] | undefined;
|
|
742
|
+
commands?: readonly import("@fungi.computer/puffball").AppDeclaredCommand[] | undefined;
|
|
743
|
+
gills?: readonly import("@fungi.computer/gills").AppDeclaredGill[] | undefined;
|
|
744
|
+
backend?: Readonly<{
|
|
745
|
+
bindings: readonly import("@fungi.computer/puffball").AppBackendBinding[];
|
|
746
|
+
sync?: Readonly<{
|
|
747
|
+
method: string;
|
|
748
|
+
}>;
|
|
749
|
+
}> | undefined;
|
|
750
|
+
}>, Readonly<{
|
|
751
|
+
api?: import("@fungi.computer/puffball").AppApi;
|
|
752
|
+
displayName?: string | undefined;
|
|
753
|
+
capabilities: readonly import("@fungi.computer/puffball").AppCapabilityId[];
|
|
754
|
+
calls?: readonly Readonly<{
|
|
755
|
+
appId: string;
|
|
756
|
+
methods: readonly string[];
|
|
757
|
+
}>[] | undefined;
|
|
758
|
+
guidance?: string | undefined;
|
|
759
|
+
handlers: readonly import("@fungi.computer/puffball").AppHandler[];
|
|
760
|
+
receives?: readonly "git.push"[] | undefined;
|
|
761
|
+
icon?: string;
|
|
762
|
+
roles: readonly import("@fungi.computer/puffball").AppRole[];
|
|
763
|
+
storage?: readonly import("@fungi.computer/puffball").AppStorageKey[] | undefined;
|
|
764
|
+
commands?: readonly import("@fungi.computer/puffball").AppDeclaredCommand[] | undefined;
|
|
765
|
+
gills?: readonly import("@fungi.computer/gills").AppDeclaredGill[] | undefined;
|
|
766
|
+
backend?: Readonly<{
|
|
767
|
+
bindings: readonly import("@fungi.computer/puffball").AppBackendBinding[];
|
|
768
|
+
sync?: Readonly<{
|
|
769
|
+
method: string;
|
|
770
|
+
}>;
|
|
771
|
+
}> | undefined;
|
|
772
|
+
}>, never, never>>;
|
|
773
|
+
readonly kind: Schema.Literal<"app">;
|
|
774
|
+
readonly ui: Schema.Union<readonly [Schema.Struct<{
|
|
775
|
+
readonly mediaType: Schema.Literal<"text/html; charset=utf-8">;
|
|
776
|
+
readonly content: Schema.Struct<{
|
|
777
|
+
readonly kind: Schema.Literal<"html">;
|
|
778
|
+
readonly bytes: Schema.Uint8ArrayFromBase64;
|
|
779
|
+
}>;
|
|
780
|
+
}>, Schema.Struct<{
|
|
781
|
+
readonly mediaType: Schema.Literal<"application/vnd.fungi.app-assets+json">;
|
|
782
|
+
readonly content: Schema.Struct<{
|
|
783
|
+
readonly kind: Schema.Literal<"assets">;
|
|
784
|
+
readonly base: Schema.String;
|
|
785
|
+
readonly assets: Schema.$Array<Schema.Struct<{
|
|
786
|
+
readonly path: Schema.String;
|
|
787
|
+
readonly bytes: Schema.Uint8ArrayFromBase64;
|
|
788
|
+
}>>;
|
|
789
|
+
}>;
|
|
790
|
+
}>]>;
|
|
791
|
+
readonly backend: Schema.Uint8ArrayFromBase64;
|
|
792
|
+
}>]>;
|
|
793
|
+
readonly provenance: Schema.Struct<{
|
|
794
|
+
readonly sourceRevision: Schema.refine<import("@fungi.computer/puffball").SourceRevision, Schema.String>;
|
|
795
|
+
readonly sourceTreeDigest: Schema.refine<import("@fungi.computer/puffball").Sha256Digest, Schema.String>;
|
|
796
|
+
readonly buildRecipeDigest: Schema.refine<import("@fungi.computer/puffball").Sha256Digest, Schema.String>;
|
|
797
|
+
}>;
|
|
798
|
+
}>;
|
|
799
|
+
/** Canonical manifest bytes, so a digest is independent of JSON spacing. */
|
|
800
|
+
export declare function encodeTeamAppCandidateManifest(manifest: TeamAppCandidateManifest): string;
|
|
801
|
+
/** The hex SHA-256 of a manifest's canonical bytes: its App root's name. */
|
|
802
|
+
export declare function digestTeamAppCandidateManifest(manifest: TeamAppCandidateManifest): Promise<string>;
|
|
803
|
+
/**
|
|
804
|
+
* The media type an uploaded object is stored with. A store that reads an
|
|
805
|
+
* HTML document or backend descriptor by its stored type (the Publisher's)
|
|
806
|
+
* needs it; an asset's type is its manifest's, so it is an octet stream.
|
|
807
|
+
*/
|
|
808
|
+
export declare const candidateObjectMediaTypes: readonly ["text/html; charset=utf-8", "application/vnd.fungi.app-backend+json", "application/octet-stream"];
|
|
809
|
+
/** One of {@link candidateObjectMediaTypes}. */
|
|
810
|
+
export type CandidateObjectMediaType = (typeof candidateObjectMediaTypes)[number];
|
|
811
|
+
/** The stored media type a request names, if it is one an object may carry. */
|
|
812
|
+
export declare function candidateObjectMediaType(value: string | null): CandidateObjectMediaType | null;
|
|
813
|
+
/** One object a build uploads, with the media type it is stored under. */
|
|
814
|
+
export type CandidateUpload = CandidateObject & Readonly<{
|
|
815
|
+
mediaType: CandidateObjectMediaType;
|
|
816
|
+
}>;
|
|
817
|
+
/** Every distinct object a manifest names, each once, in manifest order. */
|
|
818
|
+
export declare function candidateManifestObjects(output: CandidateOutputManifest): readonly CandidateUpload[];
|
|
819
|
+
/** Decode a stored backend descriptor; a manifest's backend must be one. */
|
|
820
|
+
export declare function decodeCandidateBackend(bytes: Uint8Array): {
|
|
821
|
+
readonly runtime: {
|
|
822
|
+
readonly kind: "durable-facet";
|
|
823
|
+
readonly stateSchema: number;
|
|
824
|
+
};
|
|
825
|
+
readonly compatibilityDate: string;
|
|
826
|
+
readonly exportName: string;
|
|
827
|
+
readonly code: string;
|
|
828
|
+
};
|