@fungi.computer/oyster 0.2.0 → 0.3.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.
Files changed (287) hide show
  1. package/README.md +376 -72
  2. package/dist/agents.d.ts +3 -2
  3. package/dist/agents.js +4 -2
  4. package/dist/app-builds.d.ts +81 -8
  5. package/dist/app-builds.js +210 -60
  6. package/dist/app-storage.d.ts +3 -3
  7. package/dist/approval-capability.d.ts +5 -0
  8. package/dist/approval-capability.js +46 -0
  9. package/dist/approval-home.d.ts +51 -0
  10. package/dist/approval-home.js +226 -0
  11. package/dist/apps/catalog.d.ts +335 -0
  12. package/dist/apps/catalog.js +46 -0
  13. package/dist/apps/gate.d.ts +20 -6
  14. package/dist/apps/gate.js +42 -16
  15. package/dist/apps/index.d.ts +3 -1
  16. package/dist/apps/index.js +3 -1
  17. package/dist/apps/installation.d.ts +132 -51
  18. package/dist/apps/installation.js +176 -70
  19. package/dist/apps/permissions.d.ts +247 -0
  20. package/dist/apps/permissions.js +255 -0
  21. package/dist/boot-capability-route.d.ts +15 -0
  22. package/dist/boot-capability-route.js +196 -0
  23. package/dist/boot-capability.d.ts +103 -0
  24. package/dist/boot-capability.js +141 -0
  25. package/dist/boot-construction.d.ts +12 -0
  26. package/dist/boot-construction.js +175 -0
  27. package/dist/boot-gate.d.ts +267 -0
  28. package/dist/boot-gate.js +236 -0
  29. package/dist/boot-host-script.d.ts +2 -0
  30. package/dist/boot-host-script.js +1 -0
  31. package/dist/boot-mount.d.ts +21 -0
  32. package/dist/boot-mount.js +65 -0
  33. package/dist/browser/boot.d.ts +73 -0
  34. package/dist/browser/boot.js +502 -0
  35. package/dist/browser/browser.d.ts +104 -0
  36. package/dist/browser/browser.js +374 -0
  37. package/dist/browser/capability-source.d.ts +76 -0
  38. package/dist/browser/capability-source.js +338 -0
  39. package/dist/browser/cdp-client.d.ts +56 -0
  40. package/dist/browser/cdp-client.js +184 -0
  41. package/dist/browser/errors.d.ts +79 -0
  42. package/dist/browser/errors.js +32 -0
  43. package/dist/browser/index.d.ts +16 -0
  44. package/dist/browser/index.js +14 -0
  45. package/dist/browser/lease-registry.d.ts +61 -0
  46. package/dist/browser/lease-registry.js +101 -0
  47. package/dist/browser/operations.d.ts +225 -0
  48. package/dist/browser/operations.js +137 -0
  49. package/dist/browser/page.d.ts +25 -0
  50. package/dist/browser/page.js +172 -0
  51. package/dist/browser/quick-reads.d.ts +29 -0
  52. package/dist/browser/quick-reads.js +160 -0
  53. package/dist/browser/sessions.d.ts +52 -0
  54. package/dist/browser/sessions.js +118 -0
  55. package/dist/browser/url-policy.d.ts +18 -0
  56. package/dist/browser/url-policy.js +58 -0
  57. package/dist/build/app-imports.d.ts +12 -0
  58. package/dist/build/app-imports.js +105 -0
  59. package/dist/build/build-policy.d.ts +5 -3
  60. package/dist/build/build-policy.js +5 -3
  61. package/dist/build/candidate-builder.d.ts +1 -1
  62. package/dist/build/candidate-cli.mjs +8375 -334
  63. package/dist/build/local-build.d.ts +2 -0
  64. package/dist/build/local-build.js +28 -6
  65. package/dist/build/snapshot-package-store.d.ts +1 -1
  66. package/dist/build/snapshot-package-store.js +7 -2
  67. package/dist/build/workspace-build.d.ts +92 -5
  68. package/dist/build/workspace-build.js +93 -19
  69. package/dist/build.d.ts +1 -1
  70. package/dist/build.js +1 -1
  71. package/dist/catalog-frame.js +1 -1
  72. package/dist/cloudflare.d.ts +13 -3
  73. package/dist/cloudflare.js +102 -4
  74. package/dist/frame-binding-wire-script.js +1 -1
  75. package/dist/frame-binding-wire.js +4 -2
  76. package/dist/git-auth.d.ts +0 -2
  77. package/dist/git-auth.js +0 -2
  78. package/dist/git.d.ts +0 -1
  79. package/dist/git.js +0 -2
  80. package/dist/host.d.ts +39 -13
  81. package/dist/host.js +268 -142
  82. package/dist/index.d.ts +25 -15
  83. package/dist/index.js +39 -16
  84. package/dist/install-release-cli.d.ts +2 -0
  85. package/dist/install-release-cli.js +46 -0
  86. package/dist/installation-client.d.ts +43 -0
  87. package/dist/installation-client.js +178 -0
  88. package/dist/installation-execution.d.ts +11 -0
  89. package/dist/installation-execution.js +184 -0
  90. package/dist/installation-operations.d.ts +1437 -0
  91. package/dist/installation-operations.js +664 -0
  92. package/dist/installation-store-generation.d.ts +3 -0
  93. package/dist/installation-store-generation.js +16 -0
  94. package/dist/instance-id.d.ts +10 -0
  95. package/dist/instance-id.js +10 -0
  96. package/dist/instance-refusal.d.ts +11 -0
  97. package/dist/instance-refusal.js +21 -0
  98. package/dist/internal/delivery.js +4 -2
  99. package/dist/internal/host-gate.js +7 -1
  100. package/dist/internal/registry-installations.js +4 -4
  101. package/dist/keys.d.ts +5 -1
  102. package/dist/keys.js +10 -2
  103. package/dist/machine-link/authority.d.ts +89 -0
  104. package/dist/machine-link/authority.js +37 -0
  105. package/dist/machine-link/client.d.ts +66 -0
  106. package/dist/machine-link/client.js +94 -0
  107. package/dist/machine-link/delivery.d.ts +18 -0
  108. package/dist/machine-link/delivery.js +55 -0
  109. package/dist/machine-link/enrollment.d.ts +111 -0
  110. package/dist/machine-link/enrollment.js +286 -0
  111. package/dist/machine-link/fences.d.ts +37 -0
  112. package/dist/machine-link/fences.js +166 -0
  113. package/dist/machine-link/home.d.ts +20 -0
  114. package/dist/machine-link/home.js +24 -0
  115. package/dist/machine-link/host.d.ts +43 -0
  116. package/dist/machine-link/host.js +189 -0
  117. package/dist/machine-link/index.d.ts +15 -0
  118. package/dist/machine-link/index.js +15 -0
  119. package/dist/machine-link/link.d.ts +48 -0
  120. package/dist/machine-link/link.js +223 -0
  121. package/dist/machine-link/presence.d.ts +10 -0
  122. package/dist/machine-link/presence.js +25 -0
  123. package/dist/machine-link/workers.d.ts +6 -0
  124. package/dist/machine-link/workers.js +6 -0
  125. package/dist/mcp-owner.d.ts +2 -2
  126. package/dist/mcp-owner.js +41 -33
  127. package/dist/mcp.d.ts +15 -3
  128. package/dist/mcp.js +146 -25
  129. package/dist/pack.d.ts +14 -3
  130. package/dist/pack.js +44 -19
  131. package/dist/page/app-access.d.ts +7 -0
  132. package/dist/page/app-access.js +75 -0
  133. package/dist/page/boot-host.js +57 -0
  134. package/dist/page/capabilities.d.ts +3 -3
  135. package/dist/page/capabilities.js +16 -12
  136. package/dist/page/computer-handles.d.ts +3 -3
  137. package/dist/page/computer-target.d.ts +3 -0
  138. package/dist/page/computer-target.js +9 -0
  139. package/dist/page/mount.d.ts +23 -3
  140. package/dist/page/mount.js +152 -16
  141. package/dist/page-assets.d.ts +22 -0
  142. package/dist/page-assets.js +28 -0
  143. package/dist/page-script.d.ts +3 -0
  144. package/dist/page-script.js +5 -4
  145. package/dist/release.d.ts +13 -6
  146. package/dist/release.js +10 -7
  147. package/dist/root-data.d.ts +16 -6
  148. package/dist/root-data.js +2 -2
  149. package/dist/source/index.d.ts +1 -1
  150. package/dist/source/team-source.d.ts +20 -8
  151. package/dist/source/team-source.js +39 -10
  152. package/dist/source/template-seed.d.ts +2 -2
  153. package/dist/standalone/agent-mail.d.ts +24 -0
  154. package/dist/standalone/agent-mail.js +62 -0
  155. package/dist/standalone/agent-store.d.ts +9 -0
  156. package/dist/standalone/agent-store.js +30 -0
  157. package/dist/standalone/agents.d.ts +68 -9
  158. package/dist/standalone/agents.js +428 -56
  159. package/dist/standalone/app-builds-binding.d.ts +20 -2
  160. package/dist/standalone/app-builds-binding.js +147 -23
  161. package/dist/standalone/app-set.d.ts +5 -2
  162. package/dist/standalone/app-set.js +174 -143
  163. package/dist/standalone/browser.d.ts +11 -0
  164. package/dist/standalone/browser.js +72 -0
  165. package/dist/standalone/builds.d.ts +13 -4
  166. package/dist/standalone/builds.js +28 -44
  167. package/dist/standalone/computer-egress.d.ts +2 -0
  168. package/dist/standalone/computer-egress.js +13 -4
  169. package/dist/standalone/computer-fleet.d.ts +43 -0
  170. package/dist/standalone/computer-fleet.js +200 -0
  171. package/dist/standalone/computer.d.ts +44 -9
  172. package/dist/standalone/computer.js +129 -22
  173. package/dist/standalone/install-apps-cli.js +43 -6
  174. package/dist/standalone/instance.d.ts +2 -2
  175. package/dist/standalone/instance.js +8 -11
  176. package/dist/standalone/machine-link.d.ts +354 -0
  177. package/dist/standalone/machine-link.js +368 -0
  178. package/dist/standalone/media.d.ts +2 -2
  179. package/dist/standalone/media.js +19 -16
  180. package/dist/standalone/preview.d.ts +2 -2
  181. package/dist/standalone/preview.js +37 -10
  182. package/dist/standalone/registry.d.ts +149 -9
  183. package/dist/standalone/registry.js +299 -8
  184. package/dist/standalone/worker.d.ts +19 -5
  185. package/dist/standalone/worker.js +90 -54
  186. package/dist/standalone/workflow-binding.d.ts +18 -22
  187. package/dist/standalone/workflow-binding.js +18 -18
  188. package/dist/standalone/workflow-control.d.ts +4 -0
  189. package/dist/standalone/workflow-control.js +40 -0
  190. package/dist/standalone/workflow-events.d.ts +2 -2
  191. package/dist/standalone/workflow-events.js +9 -10
  192. package/dist/standalone/workflow-git-capture.js +4 -3
  193. package/dist/standalone/workflow-host.d.ts +162 -161
  194. package/dist/standalone/workflow-host.js +101 -21
  195. package/dist/standalone/workflow-node-capture.js +11 -4
  196. package/dist/standalone/workflow-schedules.d.ts +5 -2
  197. package/dist/standalone/workflow-schedules.js +9 -10
  198. package/dist/standalone/workflow-trigger-host.d.ts +65 -5
  199. package/dist/standalone/workflow-trigger-host.js +2 -2
  200. package/dist/standalone/workflow-webhooks.d.ts +22 -0
  201. package/dist/standalone/workflow-webhooks.js +39 -0
  202. package/dist/standalone/workflows.d.ts +140 -43
  203. package/dist/standalone/workflows.js +198 -39
  204. package/dist/storage-frame.d.ts +6 -6
  205. package/dist/testing/capabilities.js +14 -3
  206. package/dist/testing/installation.js +26 -2
  207. package/dist/testing/worker.js +1 -1
  208. package/dist/testing/workers-runtime.d.ts +8 -2
  209. package/dist/testing/workers-runtime.js +20 -2
  210. package/dist/webhook-abuse.d.ts +25 -0
  211. package/dist/webhook-abuse.js +54 -0
  212. package/dist/webhook-custody.d.ts +144 -0
  213. package/dist/webhook-custody.js +222 -0
  214. package/dist/webhook-ingress.d.ts +36 -0
  215. package/dist/webhook-ingress.js +146 -0
  216. package/dist/webhooks.d.ts +111 -0
  217. package/dist/webhooks.js +189 -0
  218. package/dist/workers-git.d.ts +12 -17
  219. package/dist/workers-git.js +60 -52
  220. package/dist/workers.d.ts +224 -13
  221. package/dist/workers.js +351 -51
  222. package/dist/workflow-agent-authority.d.ts +8 -0
  223. package/dist/workflow-agent-authority.js +42 -0
  224. package/dist/workflows.d.ts +66 -0
  225. package/dist/workflows.js +97 -0
  226. package/docs/api/README.md +63 -37
  227. package/docs/api/agents.md +17 -0
  228. package/docs/api/app-storage.md +1 -1
  229. package/docs/api/apps.md +1394 -543
  230. package/docs/api/browser/boot.md +132 -0
  231. package/docs/api/browser.md +1440 -0
  232. package/docs/api/build-contract.md +38 -25
  233. package/docs/api/build.md +263 -84
  234. package/docs/api/cloudflare.md +93 -7
  235. package/docs/api/git.md +3 -13
  236. package/docs/api/host.md +944 -118
  237. package/docs/api/index.md +320 -18
  238. package/docs/api/keys.md +24 -1
  239. package/docs/api/mcp.md +59 -12
  240. package/docs/api/modules.md +33 -40
  241. package/docs/api/pack.md +57 -8
  242. package/docs/api/page/mount.md +92 -4
  243. package/docs/api/workers-git.md +103 -24
  244. package/docs/api/workers.md +1581 -244
  245. package/docs/site/agent-quickstart.mdx +28 -14
  246. package/examples/standalone/worker.ts +3 -1
  247. package/examples/standalone/wrangler.jsonc +2 -0
  248. package/package.json +73 -71
  249. package/dist/installation-consent.d.ts +0 -81
  250. package/dist/installation-consent.js +0 -84
  251. package/dist/shell/app-directory.d.ts +0 -542
  252. package/dist/shell/app-directory.js +0 -196
  253. package/dist/shell/browser-actions.d.ts +0 -7
  254. package/dist/shell/browser-actions.js +0 -56
  255. package/dist/shell/command-host.d.ts +0 -112
  256. package/dist/shell/command-host.js +0 -502
  257. package/dist/shell/commands.d.ts +0 -25
  258. package/dist/shell/commands.js +0 -78
  259. package/dist/shell/index.d.ts +0 -8
  260. package/dist/shell/index.js +0 -8
  261. package/dist/shell/keys.d.ts +0 -41
  262. package/dist/shell/keys.js +0 -134
  263. package/dist/shell/shell-module.d.ts +0 -55
  264. package/dist/shell/shell-module.js +0 -86
  265. package/dist/shell/window-manager.d.ts +0 -128
  266. package/dist/shell/window-manager.js +0 -730
  267. package/dist/shell/workbench-contract.d.ts +0 -68
  268. package/dist/shell/workbench-directory.d.ts +0 -332
  269. package/dist/shell/workbench-directory.js +0 -35
  270. package/dist/shell/workbench-host-types.d.ts +0 -96
  271. package/dist/shell/workbench-host-types.js +0 -1
  272. package/dist/shell/workbench-host.d.ts +0 -34
  273. package/dist/shell/workbench-host.js +0 -352
  274. package/dist/shell/workbench-model.d.ts +0 -194
  275. package/dist/shell/workbench-model.js +0 -53
  276. package/dist/shell/workbench.d.ts +0 -4
  277. package/dist/shell/workbench.js +0 -2
  278. package/docs/api/shell/app-directory.md +0 -599
  279. package/docs/api/shell/command-host.md +0 -224
  280. package/docs/api/shell/commands.md +0 -197
  281. package/docs/api/shell/keys.md +0 -183
  282. package/docs/api/shell/shell-module.md +0 -204
  283. package/docs/api/shell/window-manager.md +0 -267
  284. package/docs/api/shell/workbench-directory.md +0 -119
  285. package/docs/api/shell/workbench.md +0 -205
  286. package/docs/api/shell.md +0 -1915
  287. /package/dist/{shell/workbench-contract.js → page/boot-host.d.ts} +0 -0
@@ -1,542 +0,0 @@
1
- import * as Schema from "effect/Schema";
2
- import { appDeclaredGillSchema } from "@fungi.computer/gills";
3
- import * as z from "zod";
4
- /** An App address selects a host default or a specific installation. */
5
- export declare const appAddressSchema: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
6
- kind: z.ZodLiteral<"default">;
7
- appId: z.ZodString;
8
- }, z.core.$strict>, z.ZodObject<{
9
- kind: z.ZodLiteral<"installation">;
10
- installationId: z.ZodString;
11
- }, z.core.$strict>]>>;
12
- /** Host-reported progress of applying a revised App authority version. */
13
- export declare const appAuthorityEnforcementSchema: z.ZodLazy<z.ZodObject<{
14
- requestId: z.ZodString;
15
- address: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
16
- kind: z.ZodLiteral<"default">;
17
- appId: z.ZodString;
18
- }, z.core.$strict>, z.ZodObject<{
19
- kind: z.ZodLiteral<"installation">;
20
- installationId: z.ZodString;
21
- }, z.core.$strict>]>>;
22
- authorityVersion: z.ZodNumber;
23
- state: z.ZodEnum<{
24
- unaffected: "unaffected";
25
- pending: "pending";
26
- applied: "applied";
27
- expired: "expired";
28
- }>;
29
- outstanding: z.ZodNumber;
30
- }, z.core.$strict>>;
31
- /** Decoded address of a default App or an installation. */
32
- export type AppAddress = z.output<typeof appAddressSchema>;
33
- /** Stable identity of one App address across directory and settings views. */
34
- export declare const addressKey: (address: AppAddress) => string;
35
- /** A host-reported authority change and its remaining work. */
36
- export type AppAuthorityEnforcement = z.output<typeof appAuthorityEnforcementSchema>;
37
- /**
38
- * A Release-declared Gill carried by the host's App directory. The named
39
- * mapped type keeps consumer declarations attached to this public contract.
40
- */
41
- export type AppDirectoryGill = {
42
- [Field in keyof Schema.Schema.Type<typeof appDeclaredGillSchema>]: Schema.Schema.Type<typeof appDeclaredGillSchema>[Field];
43
- };
44
- /** Reusable App metadata supplied by an embedding host; it conveys no permissions. */
45
- export declare const appDirectoryEntrySchema: z.ZodObject<{
46
- address: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
47
- kind: z.ZodLiteral<"default">;
48
- appId: z.ZodString;
49
- }, z.core.$strict>, z.ZodObject<{
50
- kind: z.ZodLiteral<"installation">;
51
- installationId: z.ZodString;
52
- }, z.core.$strict>]>>;
53
- installationId: z.ZodNullable<z.ZodString>;
54
- surfaceId: z.ZodString;
55
- appId: z.ZodString;
56
- displayName: z.ZodOptional<z.ZodString>;
57
- icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
- releaseId: z.ZodNullable<z.ZodString>;
59
- authorityVersion: z.ZodNumber;
60
- enforcement: z.ZodNullable<z.ZodLazy<z.ZodObject<{
61
- requestId: z.ZodString;
62
- address: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
63
- kind: z.ZodLiteral<"default">;
64
- appId: z.ZodString;
65
- }, z.core.$strict>, z.ZodObject<{
66
- kind: z.ZodLiteral<"installation">;
67
- installationId: z.ZodString;
68
- }, z.core.$strict>]>>;
69
- authorityVersion: z.ZodNumber;
70
- state: z.ZodEnum<{
71
- unaffected: "unaffected";
72
- pending: "pending";
73
- applied: "applied";
74
- expired: "expired";
75
- }>;
76
- outstanding: z.ZodNumber;
77
- }, z.core.$strict>>>;
78
- handlers: z.ZodArray<z.ZodLiteral<"file.open">>;
79
- roles: z.ZodArray<z.ZodString>;
80
- declaredCapabilities: z.ZodArray<z.ZodString>;
81
- calls: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<readonly {
82
- readonly appId: string;
83
- readonly methods: readonly string[];
84
- }[], unknown>>>;
85
- commands: z.ZodPipe<z.ZodArray<z.ZodUnknown>, z.ZodTransform<Readonly<{
86
- id: string;
87
- title: string;
88
- category: string;
89
- description?: string | undefined;
90
- sigil?: string | undefined;
91
- projections?: Readonly<{
92
- bindings?: (Readonly<{
93
- order?: number | undefined;
94
- }> & Readonly<{
95
- values: readonly string[];
96
- }>) | undefined;
97
- agent?: (Readonly<{
98
- order?: number | undefined;
99
- }> & Readonly<{
100
- keybind?: string | undefined;
101
- }>) | undefined;
102
- help?: Readonly<{
103
- order?: number | undefined;
104
- }> | undefined;
105
- menu?: Readonly<{
106
- order?: number | undefined;
107
- }> | undefined;
108
- palette?: Readonly<{
109
- order?: number | undefined;
110
- }> | undefined;
111
- slash?: (Readonly<{
112
- order?: number | undefined;
113
- }> & Readonly<{
114
- aliases: readonly string[];
115
- }>) | undefined;
116
- }> | undefined;
117
- }>[], unknown[]>>;
118
- gills: z.ZodPipe<z.ZodArray<z.ZodUnknown>, z.ZodTransform<AppDirectoryGill[], unknown[]>>;
119
- availability: z.ZodEnum<{
120
- available: "available";
121
- unavailable: "unavailable";
122
- }>;
123
- surface: z.ZodNullable<z.ZodObject<{
124
- stableRoute: z.ZodString;
125
- }, z.core.$strict>>;
126
- surfacePath: z.ZodString;
127
- }, z.core.$strict>;
128
- /** An App directory row before host-specific permissions are attached. */
129
- export type AppDirectoryEntry = z.output<typeof appDirectoryEntrySchema>;
130
- /** A host-resolved role selection; a surface address is not launch authority. */
131
- export declare const appRoleSelectionSchema: z.ZodObject<{
132
- surfaceId: z.ZodNullable<z.ZodString>;
133
- chosen: z.ZodBoolean;
134
- }, z.core.$strict>;
135
- /** App Computer permissions limited to selected Computers or the Team's Computers. */
136
- export declare const appComputerPermissionSchema: z.ZodDiscriminatedUnion<[z.ZodLazy<z.ZodObject<{
137
- kind: z.ZodLiteral<"selected-computers">;
138
- computers: z.ZodArray<z.ZodObject<{
139
- computerId: z.ZodString;
140
- operations: z.ZodArray<z.ZodEnum<{
141
- "computer.list": "computer.list";
142
- "computer.readFile": "computer.readFile";
143
- "computer.writeFile": "computer.writeFile";
144
- "computer.execute": "computer.execute";
145
- }>>;
146
- }, z.core.$strict>>;
147
- }, z.core.$strict>>, z.ZodLazy<z.ZodObject<{
148
- kind: z.ZodLiteral<"all-team-computers">;
149
- operations: z.ZodArray<z.ZodEnum<{
150
- "computer.list": "computer.list";
151
- "computer.readFile": "computer.readFile";
152
- "computer.writeFile": "computer.writeFile";
153
- "computer.execute": "computer.execute";
154
- }>>;
155
- }, z.core.$strict>>], "kind">;
156
- /** One operation an App may request for a Computer. */
157
- export type AppComputerOperation = Extract<z.output<typeof appComputerPermissionSchema>, {
158
- kind: "all-team-computers";
159
- }>["operations"][number];
160
- /** Decoded Computer permission scope attached to an App directory entry. */
161
- export type AppComputerPermission = z.output<typeof appComputerPermissionSchema>;
162
- /** Agent directory and session operations an App may request from its host. */
163
- export declare const appAgentPermissionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
164
- kind: z.ZodLiteral<"all-team-agents">;
165
- directoryOperations: z.ZodArray<z.ZodEnum<{
166
- "agent.list": "agent.list";
167
- }>>;
168
- sessionOperations: z.ZodArray<z.ZodEnum<{
169
- "agent.read": "agent.read";
170
- "agent.send": "agent.send";
171
- "agent.manage": "agent.manage";
172
- }>>;
173
- }, z.core.$strict>, z.ZodObject<{
174
- kind: z.ZodLiteral<"selected-agents">;
175
- directoryOperations: z.ZodArray<z.ZodEnum<{
176
- "agent.list": "agent.list";
177
- }>>;
178
- agents: z.ZodArray<z.ZodObject<{
179
- agentId: z.ZodString;
180
- sessionOperations: z.ZodArray<z.ZodEnum<{
181
- "agent.read": "agent.read";
182
- "agent.send": "agent.send";
183
- "agent.manage": "agent.manage";
184
- }>>;
185
- }, z.core.$strict>>;
186
- }, z.core.$strict>], "kind">;
187
- /** Decoded Agent permission scope attached to an App directory entry. */
188
- export type AppAgentPermission = z.output<typeof appAgentPermissionSchema>;
189
- /** Whether an App may use language-model and media generation services. */
190
- export declare const appGenerationPermissionsSchema: z.ZodObject<{
191
- llm: z.ZodBoolean;
192
- media: z.ZodBoolean;
193
- }, z.core.$strict>;
194
- /** Decoded generation permissions attached to an App directory entry. */
195
- export type AppGenerationPermissions = z.output<typeof appGenerationPermissionsSchema>;
196
- /** Whether an App may browse, buy, or install free marketplace entries. */
197
- export declare const appMarketplacePermissionsSchema: z.ZodObject<{
198
- browse: z.ZodBoolean;
199
- purchase: z.ZodBoolean;
200
- installFree: z.ZodBoolean;
201
- }, z.core.$strict>;
202
- /** Decoded marketplace permissions attached to an App directory entry. */
203
- export type AppMarketplacePermissions = z.output<typeof appMarketplacePermissionsSchema>;
204
- /**
205
- * A host's Team App directory with its permission projection, parsed strictly
206
- * by every consumer: an unknown field is a contract change both sides make.
207
- */
208
- export declare const appDirectoryResponseSchema: z.ZodLazy<z.ZodObject<{
209
- actorIsTeamOwner: z.ZodBoolean;
210
- needsUpdate: z.ZodOptional<z.ZodArray<z.ZodObject<{
211
- installationId: z.ZodNullable<z.ZodString>;
212
- appId: z.ZodNullable<z.ZodString>;
213
- displayName: z.ZodString;
214
- }, z.core.$strict>>>;
215
- apps: z.ZodArray<z.ZodObject<{
216
- address: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
217
- kind: z.ZodLiteral<"default">;
218
- appId: z.ZodString;
219
- }, z.core.$strict>, z.ZodObject<{
220
- kind: z.ZodLiteral<"installation">;
221
- installationId: z.ZodString;
222
- }, z.core.$strict>]>>;
223
- installationId: z.ZodNullable<z.ZodString>;
224
- surfaceId: z.ZodString;
225
- appId: z.ZodString;
226
- displayName: z.ZodOptional<z.ZodString>;
227
- icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
228
- releaseId: z.ZodNullable<z.ZodString>;
229
- authorityVersion: z.ZodNumber;
230
- enforcement: z.ZodNullable<z.ZodLazy<z.ZodObject<{
231
- requestId: z.ZodString;
232
- address: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
233
- kind: z.ZodLiteral<"default">;
234
- appId: z.ZodString;
235
- }, z.core.$strict>, z.ZodObject<{
236
- kind: z.ZodLiteral<"installation">;
237
- installationId: z.ZodString;
238
- }, z.core.$strict>]>>;
239
- authorityVersion: z.ZodNumber;
240
- state: z.ZodEnum<{
241
- unaffected: "unaffected";
242
- pending: "pending";
243
- applied: "applied";
244
- expired: "expired";
245
- }>;
246
- outstanding: z.ZodNumber;
247
- }, z.core.$strict>>>;
248
- handlers: z.ZodArray<z.ZodLiteral<"file.open">>;
249
- roles: z.ZodArray<z.ZodString>;
250
- declaredCapabilities: z.ZodArray<z.ZodString>;
251
- calls: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<readonly {
252
- readonly appId: string;
253
- readonly methods: readonly string[];
254
- }[], unknown>>>;
255
- commands: z.ZodPipe<z.ZodArray<z.ZodUnknown>, z.ZodTransform<Readonly<{
256
- id: string;
257
- title: string;
258
- category: string;
259
- description?: string | undefined;
260
- sigil?: string | undefined;
261
- projections?: Readonly<{
262
- bindings?: (Readonly<{
263
- order?: number | undefined;
264
- }> & Readonly<{
265
- values: readonly string[];
266
- }>) | undefined;
267
- agent?: (Readonly<{
268
- order?: number | undefined;
269
- }> & Readonly<{
270
- keybind?: string | undefined;
271
- }>) | undefined;
272
- help?: Readonly<{
273
- order?: number | undefined;
274
- }> | undefined;
275
- menu?: Readonly<{
276
- order?: number | undefined;
277
- }> | undefined;
278
- palette?: Readonly<{
279
- order?: number | undefined;
280
- }> | undefined;
281
- slash?: (Readonly<{
282
- order?: number | undefined;
283
- }> & Readonly<{
284
- aliases: readonly string[];
285
- }>) | undefined;
286
- }> | undefined;
287
- }>[], unknown[]>>;
288
- gills: z.ZodPipe<z.ZodArray<z.ZodUnknown>, z.ZodTransform<AppDirectoryGill[], unknown[]>>;
289
- availability: z.ZodEnum<{
290
- available: "available";
291
- unavailable: "unavailable";
292
- }>;
293
- surface: z.ZodNullable<z.ZodObject<{
294
- stableRoute: z.ZodString;
295
- }, z.core.$strict>>;
296
- surfacePath: z.ZodString;
297
- override: z.ZodNullable<z.ZodObject<{
298
- appId: z.ZodOptional<z.ZodString>;
299
- releaseId: z.ZodString;
300
- surfaceRoute: z.ZodNullable<z.ZodString>;
301
- }, z.core.$strict>>;
302
- grants: z.ZodArray<z.ZodObject<{
303
- operation: z.ZodString;
304
- resourceId: z.ZodString;
305
- }, z.core.$strict>>;
306
- computerPermission: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodLazy<z.ZodObject<{
307
- kind: z.ZodLiteral<"selected-computers">;
308
- computers: z.ZodArray<z.ZodObject<{
309
- computerId: z.ZodString;
310
- operations: z.ZodArray<z.ZodEnum<{
311
- "computer.list": "computer.list";
312
- "computer.readFile": "computer.readFile";
313
- "computer.writeFile": "computer.writeFile";
314
- "computer.execute": "computer.execute";
315
- }>>;
316
- }, z.core.$strict>>;
317
- }, z.core.$strict>>, z.ZodLazy<z.ZodObject<{
318
- kind: z.ZodLiteral<"all-team-computers">;
319
- operations: z.ZodArray<z.ZodEnum<{
320
- "computer.list": "computer.list";
321
- "computer.readFile": "computer.readFile";
322
- "computer.writeFile": "computer.writeFile";
323
- "computer.execute": "computer.execute";
324
- }>>;
325
- }, z.core.$strict>>], "kind">>>;
326
- generationPermissions: z.ZodObject<{
327
- llm: z.ZodBoolean;
328
- media: z.ZodBoolean;
329
- }, z.core.$strict>;
330
- marketplacePermissions: z.ZodObject<{
331
- browse: z.ZodBoolean;
332
- purchase: z.ZodBoolean;
333
- installFree: z.ZodBoolean;
334
- }, z.core.$strict>;
335
- agentPermission: z.ZodDiscriminatedUnion<[z.ZodObject<{
336
- kind: z.ZodLiteral<"all-team-agents">;
337
- directoryOperations: z.ZodArray<z.ZodEnum<{
338
- "agent.list": "agent.list";
339
- }>>;
340
- sessionOperations: z.ZodArray<z.ZodEnum<{
341
- "agent.read": "agent.read";
342
- "agent.send": "agent.send";
343
- "agent.manage": "agent.manage";
344
- }>>;
345
- }, z.core.$strict>, z.ZodObject<{
346
- kind: z.ZodLiteral<"selected-agents">;
347
- directoryOperations: z.ZodArray<z.ZodEnum<{
348
- "agent.list": "agent.list";
349
- }>>;
350
- agents: z.ZodArray<z.ZodObject<{
351
- agentId: z.ZodString;
352
- sessionOperations: z.ZodArray<z.ZodEnum<{
353
- "agent.read": "agent.read";
354
- "agent.send": "agent.send";
355
- "agent.manage": "agent.manage";
356
- }>>;
357
- }, z.core.$strict>>;
358
- }, z.core.$strict>], "kind">;
359
- }, z.core.$strict>>;
360
- roles: z.ZodRecord<z.ZodString, z.ZodObject<{
361
- surfaceId: z.ZodNullable<z.ZodString>;
362
- chosen: z.ZodBoolean;
363
- }, z.core.$strict>>;
364
- }, z.core.$strict>>;
365
- /** The host-resolved Team App directory and its permission projections. */
366
- export type AppDirectory = z.output<typeof appDirectoryResponseSchema>;
367
- /** Read-only catalog metadata for one App, without host-specific role policy. */
368
- export declare const appCatalogEntrySchema: z.ZodObject<{
369
- appId: z.ZodString;
370
- surfaceId: z.ZodString;
371
- displayName: z.ZodOptional<z.ZodString>;
372
- gills: z.ZodArray<z.ZodObject<{
373
- id: z.ZodString;
374
- title: z.ZodString;
375
- params: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
376
- key: z.ZodString;
377
- label: z.ZodString;
378
- kind: z.ZodEnum<{
379
- computer: "computer";
380
- repository: "repository";
381
- branch: "branch";
382
- }>;
383
- required: z.ZodBoolean;
384
- options: z.ZodOptional<z.ZodString>;
385
- }, z.core.$strict>> & z.ZodType<readonly {
386
- readonly kind: "computer" | "repository" | "branch";
387
- readonly required: boolean;
388
- readonly key: string;
389
- readonly label: string;
390
- readonly options?: string | undefined;
391
- }[], {
392
- key: string;
393
- label: string;
394
- kind: "computer" | "repository" | "branch";
395
- required: boolean;
396
- options?: string | undefined;
397
- }[], z.core.$ZodTypeInternals<readonly {
398
- readonly kind: "computer" | "repository" | "branch";
399
- readonly required: boolean;
400
- readonly key: string;
401
- readonly label: string;
402
- readonly options?: string | undefined;
403
- }[], {
404
- key: string;
405
- label: string;
406
- kind: "computer" | "repository" | "branch";
407
- required: boolean;
408
- options?: string | undefined;
409
- }[]>>>>;
410
- desktop: z.ZodOptional<z.ZodObject<{
411
- sizes: z.ZodArray<z.ZodEnum<{
412
- S: "S";
413
- M: "M";
414
- L: "L";
415
- }>>;
416
- }, z.core.$strict>>;
417
- }, z.core.$strict>>;
418
- }, z.core.$strict>;
419
- /** Read-only desktop metadata; identities are surface addresses, never launch authority. */
420
- export declare const appCatalogResponseSchema: z.ZodLazy<z.ZodObject<{
421
- apps: z.ZodArray<z.ZodObject<{
422
- appId: z.ZodString;
423
- surfaceId: z.ZodString;
424
- displayName: z.ZodOptional<z.ZodString>;
425
- gills: z.ZodArray<z.ZodObject<{
426
- id: z.ZodString;
427
- title: z.ZodString;
428
- params: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
429
- key: z.ZodString;
430
- label: z.ZodString;
431
- kind: z.ZodEnum<{
432
- computer: "computer";
433
- repository: "repository";
434
- branch: "branch";
435
- }>;
436
- required: z.ZodBoolean;
437
- options: z.ZodOptional<z.ZodString>;
438
- }, z.core.$strict>> & z.ZodType<readonly {
439
- readonly kind: "computer" | "repository" | "branch";
440
- readonly required: boolean;
441
- readonly key: string;
442
- readonly label: string;
443
- readonly options?: string | undefined;
444
- }[], {
445
- key: string;
446
- label: string;
447
- kind: "computer" | "repository" | "branch";
448
- required: boolean;
449
- options?: string | undefined;
450
- }[], z.core.$ZodTypeInternals<readonly {
451
- readonly kind: "computer" | "repository" | "branch";
452
- readonly required: boolean;
453
- readonly key: string;
454
- readonly label: string;
455
- readonly options?: string | undefined;
456
- }[], {
457
- key: string;
458
- label: string;
459
- kind: "computer" | "repository" | "branch";
460
- required: boolean;
461
- options?: string | undefined;
462
- }[]>>>>;
463
- desktop: z.ZodOptional<z.ZodObject<{
464
- sizes: z.ZodArray<z.ZodEnum<{
465
- S: "S";
466
- M: "M";
467
- L: "L";
468
- }>>;
469
- }, z.core.$strict>>;
470
- }, z.core.$strict>>;
471
- }, z.core.$strict>>;
472
- roles: z.ZodObject<{
473
- inbox: z.ZodOptional<z.ZodObject<{
474
- surfaceId: z.ZodNullable<z.ZodString>;
475
- chosen: z.ZodBoolean;
476
- }, z.core.$strict>>;
477
- }, z.core.$strict>;
478
- }, z.core.$strict>>;
479
- /** Parsed metadata returned by the read-only APPS.catalog binding. */
480
- export type AppCatalog = z.output<typeof appCatalogResponseSchema>;
481
- /** Complete APPS.catalog reply, including broker admission failures. */
482
- export declare const appCatalogBrokerResultSchema: z.ZodLazy<z.ZodUnion<readonly [z.ZodLazy<z.ZodObject<{
483
- apps: z.ZodArray<z.ZodObject<{
484
- appId: z.ZodString;
485
- surfaceId: z.ZodString;
486
- displayName: z.ZodOptional<z.ZodString>;
487
- gills: z.ZodArray<z.ZodObject<{
488
- id: z.ZodString;
489
- title: z.ZodString;
490
- params: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
491
- key: z.ZodString;
492
- label: z.ZodString;
493
- kind: z.ZodEnum<{
494
- computer: "computer";
495
- repository: "repository";
496
- branch: "branch";
497
- }>;
498
- required: z.ZodBoolean;
499
- options: z.ZodOptional<z.ZodString>;
500
- }, z.core.$strict>> & z.ZodType<readonly {
501
- readonly kind: "computer" | "repository" | "branch";
502
- readonly required: boolean;
503
- readonly key: string;
504
- readonly label: string;
505
- readonly options?: string | undefined;
506
- }[], {
507
- key: string;
508
- label: string;
509
- kind: "computer" | "repository" | "branch";
510
- required: boolean;
511
- options?: string | undefined;
512
- }[], z.core.$ZodTypeInternals<readonly {
513
- readonly kind: "computer" | "repository" | "branch";
514
- readonly required: boolean;
515
- readonly key: string;
516
- readonly label: string;
517
- readonly options?: string | undefined;
518
- }[], {
519
- key: string;
520
- label: string;
521
- kind: "computer" | "repository" | "branch";
522
- required: boolean;
523
- options?: string | undefined;
524
- }[]>>>>;
525
- desktop: z.ZodOptional<z.ZodObject<{
526
- sizes: z.ZodArray<z.ZodEnum<{
527
- S: "S";
528
- M: "M";
529
- L: "L";
530
- }>>;
531
- }, z.core.$strict>>;
532
- }, z.core.$strict>>;
533
- }, z.core.$strict>>;
534
- roles: z.ZodObject<{
535
- inbox: z.ZodOptional<z.ZodObject<{
536
- surfaceId: z.ZodNullable<z.ZodString>;
537
- chosen: z.ZodBoolean;
538
- }, z.core.$strict>>;
539
- }, z.core.$strict>;
540
- }, z.core.$strict>>, z.ZodObject<{
541
- error: z.ZodString;
542
- }, z.core.$strict>]>>;