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