@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,599 @@
|
|
|
1
|
+
<!-- Generated by Botanical API docs (TypeDoc + typedoc-plugin-markdown). Do not edit. -->
|
|
2
|
+
|
|
3
|
+
[**@fungi.computer/oyster**](../README.md)
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
[@fungi.computer/oyster](../modules.md) / shell/app-directory
|
|
8
|
+
|
|
9
|
+
# shell/app-directory
|
|
10
|
+
|
|
11
|
+
## Type Aliases
|
|
12
|
+
|
|
13
|
+
### AppAddress
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
type AppAddress = z.output<typeof appAddressSchema>;
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Decoded address of a default App or an installation.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
### AppAuthorityEnforcement
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
type AppAuthorityEnforcement = z.output<typeof appAuthorityEnforcementSchema>;
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
A host-reported authority change and its remaining work.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
### AppDirectoryGill
|
|
34
|
+
|
|
35
|
+
```ts
|
|
36
|
+
type AppDirectoryGill = {
|
|
37
|
+
[
|
|
38
|
+
Field in keyof Schema.Schema.Type<typeof appDeclaredGillSchema>
|
|
39
|
+
]: Schema.Schema.Type<typeof appDeclaredGillSchema>[Field];
|
|
40
|
+
};
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
A Release-declared Gill carried by the host's App directory. The named mapped
|
|
44
|
+
type keeps consumer declarations attached to this public contract.
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
### AppDirectoryEntry
|
|
49
|
+
|
|
50
|
+
```ts
|
|
51
|
+
type AppDirectoryEntry = z.output<typeof appDirectoryEntrySchema>;
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
An App directory row before host-specific permissions are attached.
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
### AppComputerOperation
|
|
59
|
+
|
|
60
|
+
```ts
|
|
61
|
+
type AppComputerOperation = Extract<
|
|
62
|
+
z.output<typeof appComputerPermissionSchema>,
|
|
63
|
+
{
|
|
64
|
+
kind: "all-team-computers";
|
|
65
|
+
}
|
|
66
|
+
>["operations"][number];
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
One operation an App may request for a Computer.
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
### AppComputerPermission
|
|
74
|
+
|
|
75
|
+
```ts
|
|
76
|
+
type AppComputerPermission = z.output<typeof appComputerPermissionSchema>;
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Decoded Computer permission scope attached to an App directory entry.
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
### AppAgentPermission
|
|
84
|
+
|
|
85
|
+
```ts
|
|
86
|
+
type AppAgentPermission = z.output<typeof appAgentPermissionSchema>;
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Decoded Agent permission scope attached to an App directory entry.
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
### AppGenerationPermissions
|
|
94
|
+
|
|
95
|
+
```ts
|
|
96
|
+
type AppGenerationPermissions = z.output<typeof appGenerationPermissionsSchema>;
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Decoded generation permissions attached to an App directory entry.
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
### AppMarketplacePermissions
|
|
104
|
+
|
|
105
|
+
```ts
|
|
106
|
+
type AppMarketplacePermissions = z.output<
|
|
107
|
+
typeof appMarketplacePermissionsSchema
|
|
108
|
+
>;
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Decoded marketplace permissions attached to an App directory entry.
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
### AppDirectory
|
|
116
|
+
|
|
117
|
+
```ts
|
|
118
|
+
type AppDirectory = z.output<typeof appDirectoryResponseSchema>;
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
The host-resolved Team App directory and its permission projections.
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
### AppCatalog
|
|
126
|
+
|
|
127
|
+
```ts
|
|
128
|
+
type AppCatalog = z.output<typeof appCatalogResponseSchema>;
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
Parsed metadata returned by the read-only APPS.catalog binding.
|
|
132
|
+
|
|
133
|
+
## Variables
|
|
134
|
+
|
|
135
|
+
### appAddressSchema
|
|
136
|
+
|
|
137
|
+
```ts
|
|
138
|
+
const appAddressSchema: ZodUnion<
|
|
139
|
+
readonly [
|
|
140
|
+
ZodObject<
|
|
141
|
+
{
|
|
142
|
+
kind: ZodLiteral<"default">;
|
|
143
|
+
appId: ZodString;
|
|
144
|
+
},
|
|
145
|
+
$strict
|
|
146
|
+
>,
|
|
147
|
+
ZodObject<
|
|
148
|
+
{
|
|
149
|
+
kind: ZodLiteral<"installation">;
|
|
150
|
+
installationId: ZodString;
|
|
151
|
+
},
|
|
152
|
+
$strict
|
|
153
|
+
>,
|
|
154
|
+
]
|
|
155
|
+
>;
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
An App address selects a host default or a specific installation.
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
### appAuthorityEnforcementSchema
|
|
163
|
+
|
|
164
|
+
```ts
|
|
165
|
+
const appAuthorityEnforcementSchema: ZodObject<
|
|
166
|
+
{
|
|
167
|
+
requestId: ZodString;
|
|
168
|
+
address: ZodUnion<
|
|
169
|
+
readonly [
|
|
170
|
+
ZodObject<
|
|
171
|
+
{
|
|
172
|
+
kind: ZodLiteral<"default">;
|
|
173
|
+
appId: ZodString;
|
|
174
|
+
},
|
|
175
|
+
$strict
|
|
176
|
+
>,
|
|
177
|
+
ZodObject<
|
|
178
|
+
{
|
|
179
|
+
kind: ZodLiteral<"installation">;
|
|
180
|
+
installationId: ZodString;
|
|
181
|
+
},
|
|
182
|
+
$strict
|
|
183
|
+
>,
|
|
184
|
+
]
|
|
185
|
+
>;
|
|
186
|
+
authorityVersion: ZodNumber;
|
|
187
|
+
state: ZodEnum<{
|
|
188
|
+
pending: "pending";
|
|
189
|
+
expired: "expired";
|
|
190
|
+
unaffected: "unaffected";
|
|
191
|
+
applied: "applied";
|
|
192
|
+
}>;
|
|
193
|
+
outstanding: ZodNumber;
|
|
194
|
+
},
|
|
195
|
+
$strict
|
|
196
|
+
>;
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
Host-reported progress of applying a revised App authority version.
|
|
200
|
+
|
|
201
|
+
---
|
|
202
|
+
|
|
203
|
+
### appDirectoryEntrySchema
|
|
204
|
+
|
|
205
|
+
```ts
|
|
206
|
+
const appDirectoryEntrySchema: ZodObject<{
|
|
207
|
+
address: ZodUnion<readonly [ZodObject<{
|
|
208
|
+
kind: ZodLiteral<"default">;
|
|
209
|
+
appId: ZodString;
|
|
210
|
+
}, $strict>, ZodObject<{
|
|
211
|
+
kind: ZodLiteral<"installation">;
|
|
212
|
+
installationId: ZodString;
|
|
213
|
+
}, $strict>]>;
|
|
214
|
+
installationId: ZodNullable<ZodString>;
|
|
215
|
+
surfaceId: ZodString;
|
|
216
|
+
appId: ZodString;
|
|
217
|
+
displayName: ZodOptional<ZodString>;
|
|
218
|
+
icon: ZodOptional<ZodNullable<ZodString>>;
|
|
219
|
+
releaseId: ZodNullable<ZodString>;
|
|
220
|
+
authorityVersion: ZodNumber;
|
|
221
|
+
enforcement: ZodNullable<ZodObject<{
|
|
222
|
+
requestId: ZodString;
|
|
223
|
+
address: ZodUnion<readonly [ZodObject<{
|
|
224
|
+
kind: ZodLiteral<"default">;
|
|
225
|
+
appId: ZodString;
|
|
226
|
+
}, $strict>, ZodObject<{
|
|
227
|
+
kind: ZodLiteral<"installation">;
|
|
228
|
+
installationId: ZodString;
|
|
229
|
+
}, $strict>]>;
|
|
230
|
+
authorityVersion: ZodNumber;
|
|
231
|
+
state: ZodEnum<{
|
|
232
|
+
pending: "pending";
|
|
233
|
+
expired: "expired";
|
|
234
|
+
unaffected: "unaffected";
|
|
235
|
+
applied: "applied";
|
|
236
|
+
}>;
|
|
237
|
+
outstanding: ZodNumber;
|
|
238
|
+
}, $strict>>;
|
|
239
|
+
handlers: ZodArray<ZodLiteral<"file.open">>;
|
|
240
|
+
roles: ZodArray<ZodString>;
|
|
241
|
+
declaredCapabilities: ZodArray<ZodString>;
|
|
242
|
+
calls: ZodOptional<ZodPipe<ZodUnknown, ZodTransform<readonly object[], unknown>>>;
|
|
243
|
+
commands: ZodPipe<ZodArray<ZodUnknown>, ZodTransform<Readonly<{
|
|
244
|
+
id: string;
|
|
245
|
+
title: string;
|
|
246
|
+
category: string;
|
|
247
|
+
description?: string;
|
|
248
|
+
sigil?: string;
|
|
249
|
+
projections?: Readonly<{
|
|
250
|
+
bindings?: ... | ...;
|
|
251
|
+
agent?: ... | ...;
|
|
252
|
+
help?: ... | ...;
|
|
253
|
+
menu?: ... | ...;
|
|
254
|
+
palette?: ... | ...;
|
|
255
|
+
slash?: ... | ...;
|
|
256
|
+
}>;
|
|
257
|
+
}>[], unknown[]>>;
|
|
258
|
+
gills: ZodPipe<ZodArray<ZodUnknown>, ZodTransform<AppDirectoryGill[], unknown[]>>;
|
|
259
|
+
availability: ZodEnum<{
|
|
260
|
+
unavailable: "unavailable";
|
|
261
|
+
available: "available";
|
|
262
|
+
}>;
|
|
263
|
+
surface: ZodNullable<ZodObject<{
|
|
264
|
+
stableRoute: ZodString;
|
|
265
|
+
}, $strict>>;
|
|
266
|
+
surfacePath: ZodString;
|
|
267
|
+
}, $strict>;
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
Reusable App metadata supplied by an embedding host; it conveys no permissions.
|
|
271
|
+
|
|
272
|
+
---
|
|
273
|
+
|
|
274
|
+
### appRoleSelectionSchema
|
|
275
|
+
|
|
276
|
+
```ts
|
|
277
|
+
const appRoleSelectionSchema: ZodObject<
|
|
278
|
+
{
|
|
279
|
+
surfaceId: ZodNullable<ZodString>;
|
|
280
|
+
chosen: ZodBoolean;
|
|
281
|
+
},
|
|
282
|
+
$strict
|
|
283
|
+
>;
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
A host-resolved role selection; a surface address is not launch authority.
|
|
287
|
+
|
|
288
|
+
---
|
|
289
|
+
|
|
290
|
+
### appComputerPermissionSchema
|
|
291
|
+
|
|
292
|
+
```ts
|
|
293
|
+
const appComputerPermissionSchema: ZodDiscriminatedUnion<[ZodObject<{
|
|
294
|
+
kind: ZodLiteral<"selected-computers">;
|
|
295
|
+
computers: ZodArray<ZodObject<{
|
|
296
|
+
computerId: ZodString;
|
|
297
|
+
operations: ZodArray<ZodEnum<{
|
|
298
|
+
computer.list: "computer.list";
|
|
299
|
+
computer.readFile: "computer.readFile";
|
|
300
|
+
computer.writeFile: "computer.writeFile";
|
|
301
|
+
computer.execute: "computer.execute";
|
|
302
|
+
}>>;
|
|
303
|
+
}, $strict>>;
|
|
304
|
+
}, $strict>, ZodObject<{
|
|
305
|
+
kind: ZodLiteral<"all-team-computers">;
|
|
306
|
+
operations: ZodArray<ZodEnum<{
|
|
307
|
+
computer.list: "computer.list";
|
|
308
|
+
computer.readFile: "computer.readFile";
|
|
309
|
+
computer.writeFile: "computer.writeFile";
|
|
310
|
+
computer.execute: "computer.execute";
|
|
311
|
+
}>>;
|
|
312
|
+
}, $strict>], "kind">;
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
App Computer permissions limited to selected Computers or the Team's Computers.
|
|
316
|
+
|
|
317
|
+
---
|
|
318
|
+
|
|
319
|
+
### appAgentPermissionSchema
|
|
320
|
+
|
|
321
|
+
```ts
|
|
322
|
+
const appAgentPermissionSchema: ZodDiscriminatedUnion<[ZodObject<{
|
|
323
|
+
kind: ZodLiteral<"all-team-agents">;
|
|
324
|
+
directoryOperations: ZodArray<ZodEnum<{
|
|
325
|
+
agent.list: "agent.list";
|
|
326
|
+
}>>;
|
|
327
|
+
sessionOperations: ZodArray<ZodEnum<{
|
|
328
|
+
agent.manage: "agent.manage";
|
|
329
|
+
agent.read: "agent.read";
|
|
330
|
+
agent.send: "agent.send";
|
|
331
|
+
}>>;
|
|
332
|
+
}, $strict>, ZodObject<{
|
|
333
|
+
kind: ZodLiteral<"selected-agents">;
|
|
334
|
+
directoryOperations: ZodArray<ZodEnum<{
|
|
335
|
+
agent.list: "agent.list";
|
|
336
|
+
}>>;
|
|
337
|
+
agents: ZodArray<ZodObject<{
|
|
338
|
+
agentId: ZodString;
|
|
339
|
+
sessionOperations: ZodArray<ZodEnum<{
|
|
340
|
+
agent.manage: "agent.manage";
|
|
341
|
+
agent.read: "agent.read";
|
|
342
|
+
agent.send: "agent.send";
|
|
343
|
+
}>>;
|
|
344
|
+
}, $strict>>;
|
|
345
|
+
}, $strict>], "kind">;
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
Agent directory and session operations an App may request from its host.
|
|
349
|
+
|
|
350
|
+
---
|
|
351
|
+
|
|
352
|
+
### appGenerationPermissionsSchema
|
|
353
|
+
|
|
354
|
+
```ts
|
|
355
|
+
const appGenerationPermissionsSchema: ZodObject<
|
|
356
|
+
{
|
|
357
|
+
llm: ZodBoolean;
|
|
358
|
+
media: ZodBoolean;
|
|
359
|
+
},
|
|
360
|
+
$strict
|
|
361
|
+
>;
|
|
362
|
+
```
|
|
363
|
+
|
|
364
|
+
Whether an App may use language-model and media generation services.
|
|
365
|
+
|
|
366
|
+
---
|
|
367
|
+
|
|
368
|
+
### appMarketplacePermissionsSchema
|
|
369
|
+
|
|
370
|
+
```ts
|
|
371
|
+
const appMarketplacePermissionsSchema: ZodObject<
|
|
372
|
+
{
|
|
373
|
+
browse: ZodBoolean;
|
|
374
|
+
purchase: ZodBoolean;
|
|
375
|
+
installFree: ZodBoolean;
|
|
376
|
+
},
|
|
377
|
+
$strict
|
|
378
|
+
>;
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
Whether an App may browse, buy, or install free marketplace entries.
|
|
382
|
+
|
|
383
|
+
---
|
|
384
|
+
|
|
385
|
+
### appDirectoryResponseSchema
|
|
386
|
+
|
|
387
|
+
```ts
|
|
388
|
+
const appDirectoryResponseSchema: ZodObject<{
|
|
389
|
+
actorIsTeamOwner: ZodBoolean;
|
|
390
|
+
needsUpdate: ZodOptional<ZodArray<ZodObject<{
|
|
391
|
+
installationId: ZodNullable<ZodString>;
|
|
392
|
+
appId: ZodNullable<ZodString>;
|
|
393
|
+
displayName: ZodString;
|
|
394
|
+
}, $strict>>>;
|
|
395
|
+
apps: ZodArray<ZodObject<{
|
|
396
|
+
address: ZodUnion<readonly [ZodObject<{
|
|
397
|
+
kind: ZodLiteral<"default">;
|
|
398
|
+
appId: ZodString;
|
|
399
|
+
}, $strict>, ZodObject<{
|
|
400
|
+
kind: ZodLiteral<"installation">;
|
|
401
|
+
installationId: ZodString;
|
|
402
|
+
}, $strict>]>;
|
|
403
|
+
installationId: ZodNullable<ZodString>;
|
|
404
|
+
surfaceId: ZodString;
|
|
405
|
+
appId: ZodString;
|
|
406
|
+
displayName: ZodOptional<ZodString>;
|
|
407
|
+
icon: ZodOptional<ZodNullable<ZodString>>;
|
|
408
|
+
releaseId: ZodNullable<ZodString>;
|
|
409
|
+
authorityVersion: ZodNumber;
|
|
410
|
+
enforcement: ZodNullable<ZodObject<{
|
|
411
|
+
requestId: ZodString;
|
|
412
|
+
address: ZodUnion<readonly [ZodObject<..., ...>, ZodObject<..., ...>]>;
|
|
413
|
+
authorityVersion: ZodNumber;
|
|
414
|
+
state: ZodEnum<{
|
|
415
|
+
pending: "pending";
|
|
416
|
+
expired: "expired";
|
|
417
|
+
unaffected: "unaffected";
|
|
418
|
+
applied: "applied";
|
|
419
|
+
}>;
|
|
420
|
+
outstanding: ZodNumber;
|
|
421
|
+
}, $strict>>;
|
|
422
|
+
handlers: ZodArray<ZodLiteral<"file.open">>;
|
|
423
|
+
roles: ZodArray<ZodString>;
|
|
424
|
+
declaredCapabilities: ZodArray<ZodString>;
|
|
425
|
+
calls: ZodOptional<ZodPipe<ZodUnknown, ZodTransform<readonly object[], unknown>>>;
|
|
426
|
+
commands: ZodPipe<ZodArray<ZodUnknown>, ZodTransform<Readonly<{
|
|
427
|
+
id: string;
|
|
428
|
+
title: string;
|
|
429
|
+
category: string;
|
|
430
|
+
description?: ... | ...;
|
|
431
|
+
sigil?: ... | ...;
|
|
432
|
+
projections?: ... | ...;
|
|
433
|
+
}>[], unknown[]>>;
|
|
434
|
+
gills: ZodPipe<ZodArray<ZodUnknown>, ZodTransform<AppDirectoryGill[], unknown[]>>;
|
|
435
|
+
availability: ZodEnum<{
|
|
436
|
+
unavailable: "unavailable";
|
|
437
|
+
available: "available";
|
|
438
|
+
}>;
|
|
439
|
+
surface: ZodNullable<ZodObject<{
|
|
440
|
+
stableRoute: ZodString;
|
|
441
|
+
}, $strict>>;
|
|
442
|
+
surfacePath: ZodString;
|
|
443
|
+
override: ZodNullable<ZodObject<{
|
|
444
|
+
appId: ZodOptional<ZodString>;
|
|
445
|
+
releaseId: ZodString;
|
|
446
|
+
surfaceRoute: ZodNullable<ZodString>;
|
|
447
|
+
}, $strict>>;
|
|
448
|
+
grants: ZodArray<ZodObject<{
|
|
449
|
+
operation: ZodString;
|
|
450
|
+
resourceId: ZodString;
|
|
451
|
+
}, $strict>>;
|
|
452
|
+
computerPermission: ZodOptional<ZodNullable<ZodDiscriminatedUnion<[ZodObject<{
|
|
453
|
+
kind: ...;
|
|
454
|
+
computers: ...;
|
|
455
|
+
}, $strict>, ZodObject<{
|
|
456
|
+
kind: ...;
|
|
457
|
+
operations: ...;
|
|
458
|
+
}, $strict>], "kind">>>;
|
|
459
|
+
generationPermissions: ZodObject<{
|
|
460
|
+
llm: ZodBoolean;
|
|
461
|
+
media: ZodBoolean;
|
|
462
|
+
}, $strict>;
|
|
463
|
+
marketplacePermissions: ZodObject<{
|
|
464
|
+
browse: ZodBoolean;
|
|
465
|
+
purchase: ZodBoolean;
|
|
466
|
+
installFree: ZodBoolean;
|
|
467
|
+
}, $strict>;
|
|
468
|
+
agentPermission: ZodDiscriminatedUnion<[ZodObject<{
|
|
469
|
+
kind: ZodLiteral<"all-team-agents">;
|
|
470
|
+
directoryOperations: ZodArray<ZodEnum<...>>;
|
|
471
|
+
sessionOperations: ZodArray<ZodEnum<...>>;
|
|
472
|
+
}, $strict>, ZodObject<{
|
|
473
|
+
kind: ZodLiteral<"selected-agents">;
|
|
474
|
+
directoryOperations: ZodArray<ZodEnum<...>>;
|
|
475
|
+
agents: ZodArray<ZodObject<..., ...>>;
|
|
476
|
+
}, $strict>], "kind">;
|
|
477
|
+
}, $strict>>;
|
|
478
|
+
roles: ZodRecord<ZodString, ZodObject<{
|
|
479
|
+
surfaceId: ZodNullable<ZodString>;
|
|
480
|
+
chosen: ZodBoolean;
|
|
481
|
+
}, $strict>>;
|
|
482
|
+
}, $strict>;
|
|
483
|
+
```
|
|
484
|
+
|
|
485
|
+
A host's Team App directory with its permission projection, parsed strictly by
|
|
486
|
+
every consumer: an unknown field is a contract change both sides make.
|
|
487
|
+
|
|
488
|
+
---
|
|
489
|
+
|
|
490
|
+
### appCatalogEntrySchema
|
|
491
|
+
|
|
492
|
+
```ts
|
|
493
|
+
const appCatalogEntrySchema: ZodObject<{
|
|
494
|
+
surfaceId: ZodString;
|
|
495
|
+
appId: ZodString;
|
|
496
|
+
displayName: ZodOptional<ZodString>;
|
|
497
|
+
gills: ZodArray<ZodObject<{
|
|
498
|
+
id: ZodString;
|
|
499
|
+
title: ZodString;
|
|
500
|
+
params: ZodOptional<ZodArray<ZodObject<{
|
|
501
|
+
key: ZodString;
|
|
502
|
+
label: ZodString;
|
|
503
|
+
kind: ZodEnum<...>;
|
|
504
|
+
required: ZodBoolean;
|
|
505
|
+
options: ZodOptional<...>;
|
|
506
|
+
}, $strict>> & ZodType<readonly object[], object[], $ZodTypeInternals<readonly object[], object[]>>>;
|
|
507
|
+
desktop: ZodOptional<ZodObject<{
|
|
508
|
+
sizes: ZodArray<ZodEnum<{
|
|
509
|
+
S: ...;
|
|
510
|
+
M: ...;
|
|
511
|
+
L: ...;
|
|
512
|
+
}>>;
|
|
513
|
+
}, $strict>>;
|
|
514
|
+
}, $strict>>;
|
|
515
|
+
}, $strict>;
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
Read-only catalog metadata for one App, without host-specific role policy.
|
|
519
|
+
|
|
520
|
+
---
|
|
521
|
+
|
|
522
|
+
### appCatalogResponseSchema
|
|
523
|
+
|
|
524
|
+
```ts
|
|
525
|
+
const appCatalogResponseSchema: ZodObject<{
|
|
526
|
+
apps: ZodArray<ZodObject<{
|
|
527
|
+
surfaceId: ZodString;
|
|
528
|
+
appId: ZodString;
|
|
529
|
+
displayName: ZodOptional<ZodString>;
|
|
530
|
+
gills: ZodArray<ZodObject<{
|
|
531
|
+
id: ZodString;
|
|
532
|
+
title: ZodString;
|
|
533
|
+
params: ZodOptional<ZodArray<...> & ZodType<..., ..., ...>>;
|
|
534
|
+
desktop: ZodOptional<ZodObject<{
|
|
535
|
+
sizes: ...;
|
|
536
|
+
}, $strict>>;
|
|
537
|
+
}, $strict>>;
|
|
538
|
+
}, $strict>>;
|
|
539
|
+
roles: ZodObject<{
|
|
540
|
+
inbox: ZodOptional<ZodObject<{
|
|
541
|
+
surfaceId: ZodNullable<ZodString>;
|
|
542
|
+
chosen: ZodBoolean;
|
|
543
|
+
}, $strict>>;
|
|
544
|
+
}, $strict>;
|
|
545
|
+
}, $strict>;
|
|
546
|
+
```
|
|
547
|
+
|
|
548
|
+
Read-only desktop metadata; identities are surface addresses, never launch
|
|
549
|
+
authority.
|
|
550
|
+
|
|
551
|
+
---
|
|
552
|
+
|
|
553
|
+
### appCatalogBrokerResultSchema
|
|
554
|
+
|
|
555
|
+
```ts
|
|
556
|
+
const appCatalogBrokerResultSchema: ZodUnion<readonly [ZodObject<{
|
|
557
|
+
apps: ZodArray<ZodObject<{
|
|
558
|
+
surfaceId: ZodString;
|
|
559
|
+
appId: ZodString;
|
|
560
|
+
displayName: ZodOptional<ZodString>;
|
|
561
|
+
gills: ZodArray<ZodObject<{
|
|
562
|
+
id: ZodString;
|
|
563
|
+
title: ZodString;
|
|
564
|
+
params: ZodOptional<...>;
|
|
565
|
+
desktop: ZodOptional<...>;
|
|
566
|
+
}, $strict>>;
|
|
567
|
+
}, $strict>>;
|
|
568
|
+
roles: ZodObject<{
|
|
569
|
+
inbox: ZodOptional<ZodObject<{
|
|
570
|
+
surfaceId: ZodNullable<ZodString>;
|
|
571
|
+
chosen: ZodBoolean;
|
|
572
|
+
}, $strict>>;
|
|
573
|
+
}, $strict>;
|
|
574
|
+
}, $strict>, ZodObject<{
|
|
575
|
+
error: ZodString;
|
|
576
|
+
}, $strict>]>;
|
|
577
|
+
```
|
|
578
|
+
|
|
579
|
+
Complete APPS.catalog reply, including broker admission failures.
|
|
580
|
+
|
|
581
|
+
## Functions
|
|
582
|
+
|
|
583
|
+
### addressKey()
|
|
584
|
+
|
|
585
|
+
```ts
|
|
586
|
+
function addressKey(address): string;
|
|
587
|
+
```
|
|
588
|
+
|
|
589
|
+
Stable identity of one App address across directory and settings views.
|
|
590
|
+
|
|
591
|
+
#### Parameters
|
|
592
|
+
|
|
593
|
+
| Parameter | Type |
|
|
594
|
+
| --------- | --------------------------------------------------------------------------------------------------------------- |
|
|
595
|
+
| `address` | \| \{ `kind`: `"default"`; `appId`: `string`; \} \| \{ `kind`: `"installation"`; `installationId`: `string`; \} |
|
|
596
|
+
|
|
597
|
+
#### Returns
|
|
598
|
+
|
|
599
|
+
`string`
|