@edenapp/types 0.14.0 → 0.15.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.
@@ -6,115 +6,55 @@
6
6
  * Run 'pnpm run codegen' to regenerate.
7
7
  */
8
8
 
9
- /**
10
- * SystemCommands - Commands for the "system" namespace
11
- */
12
- export interface SystemCommands {
13
- /**
14
- * Get system information including platform, versions, and running apps.
15
- */
16
- "system/info": {
17
- args: Record<string, never>;
18
- response: import("./index").SystemInfo;
19
- };
20
- /**
21
- * Get consumer-controlled product branding for SDK-owned interfaces.
22
- */
23
- "system/branding": {
24
- args: Record<string, never>;
25
- response: import("./index").EdenBrandingInfo;
26
- };
27
- "system/power-capabilities": {
28
- args: Record<string, never>;
29
- response: import("./index").EdenPowerCapabilities;
30
- };
31
- "system/power": {
32
- args: { action: "poweroff" | "reboot" };
33
- response: void;
34
- };
35
- }
36
-
37
- /**
38
- * AssociationsCommands - Commands for the "associations" namespace
39
- */
40
- export interface AssociationsCommands {
41
- "associations/get": {
42
- args: { key: string };
43
- response: {
44
- association: import("./index").AppAssociation | undefined;
45
- };
46
- };
47
- "associations/set": {
48
- args: {
49
- key: string;
50
- appId: string;
51
- kind: string;
52
- label?: string };
53
- response: { success: boolean };
54
- };
55
- "associations/remove": {
56
- args: { key: string };
57
- response: { success: boolean };
58
- };
59
- "associations/list": {
60
- args: { kindPrefix?: string };
61
- response: {
62
- associations: Record<string, import("./index").AppAssociation>;
63
- };
64
- };
65
- }
66
-
67
9
  /**
68
10
  * AppbusCommands - Commands for the "appbus" namespace
69
11
  */
70
12
  export interface AppbusCommands {
71
13
  /**
72
- * Register a service that this app exposes
73
- * Requires "appbus/expose" permission
74
- */
75
- "appbus/register": {
76
- args: {
77
- serviceName: string;
78
- description?: string;
79
- allowedClients?: string[] };
80
- response: { success: boolean; error?: string };
81
- };
82
- /**
83
- * Unregister a service
84
- * Requires "appbus/expose" permission
14
+ * Connect to another app's service
15
+ * Creates MessageChannel and transfers ports directly to both apps
16
+ * Requires "appbus/connect" permission
85
17
  */
86
- "appbus/unregister": {
87
- args: {
88
- serviceName: string };
89
- response: { success: boolean };
18
+ "appbus/connect": {
19
+ mode: "result";
20
+ args: { targetAppId: string; serviceName: string; };
21
+ response: import("./index").ConnectResult;
90
22
  };
91
23
  /**
92
24
  * List all available services
93
25
  * No permission required
94
26
  */
95
27
  "appbus/list": {
28
+ mode: "result";
96
29
  args: Record<string, never>;
97
- response: { services: import("./index").ServiceInfo[] };
30
+ response: { services: import("./index").ServiceInfo[]; };
98
31
  };
99
32
  /**
100
33
  * List services by app ID
101
34
  * No permission required
102
35
  */
103
36
  "appbus/list-by-app": {
104
- args: {
105
- appId: string };
106
- response: { services: import("./index").ServiceInfo[] };
37
+ mode: "result";
38
+ args: { appId: string; };
39
+ response: { services: import("./index").ServiceInfo[]; };
107
40
  };
108
41
  /**
109
- * Connect to another app's service
110
- * Creates MessageChannel and transfers ports directly to both apps
111
- * Requires "appbus/connect" permission
42
+ * Register a service that this app exposes
43
+ * Requires "appbus/expose" permission
112
44
  */
113
- "appbus/connect": {
114
- args: {
115
- targetAppId: string;
116
- serviceName: string };
117
- response: import("./index").ConnectResult;
45
+ "appbus/register": {
46
+ mode: "result";
47
+ args: { serviceName: string; description?: string | undefined; allowedClients?: string[] | undefined; };
48
+ response: { success: boolean; error?: string; };
49
+ };
50
+ /**
51
+ * Unregister a service
52
+ * Requires "appbus/expose" permission
53
+ */
54
+ "appbus/unregister": {
55
+ mode: "result";
56
+ args: { serviceName: string; };
57
+ response: { success: boolean; };
118
58
  };
119
59
  }
120
60
 
@@ -122,21 +62,46 @@ export interface AppbusCommands {
122
62
  * AppearanceCommands - Commands for the "appearance" namespace
123
63
  */
124
64
  export interface AppearanceCommands {
125
- "appearance/set-wallpaper": {
126
- args: {
127
- wallpaper: import("./index").WallpaperConfig };
128
- response: void;
65
+ "appearance/get-presets": {
66
+ mode: "result";
67
+ args: Record<string, never>;
68
+ response: { solid: import("./index").WallpaperPreset[]; gradients: import("./index").WallpaperPreset[]; };
129
69
  };
130
70
  "appearance/get-wallpaper": {
71
+ mode: "result";
131
72
  args: Record<string, never>;
132
- response: { wallpaper: import("./index").WallpaperPreset };
73
+ response: { wallpaper: import("./index").WallpaperPreset; };
133
74
  };
134
- "appearance/get-presets": {
135
- args: Record<string, never>;
136
- response: {
137
- solid: import("./index").WallpaperPreset[];
138
- gradients: import("./index").WallpaperPreset[];
75
+ "appearance/set-wallpaper": {
76
+ mode: "result";
77
+ args: { wallpaper: import("./index").WallpaperConfig; };
78
+ response: void;
79
+ };
80
+ }
81
+
82
+ /**
83
+ * AssociationsCommands - Commands for the "associations" namespace
84
+ */
85
+ export interface AssociationsCommands {
86
+ "associations/get": {
87
+ mode: "result";
88
+ args: { key: string; };
89
+ response: { association: import("./index").AppAssociation | undefined; };
90
+ };
91
+ "associations/list": {
92
+ mode: "result";
93
+ args: { kindPrefix?: string | undefined; };
94
+ response: { associations: Record<string, import("./index").AppAssociation>; };
139
95
  };
96
+ "associations/remove": {
97
+ mode: "result";
98
+ args: { key: string; };
99
+ response: { success: boolean; };
100
+ };
101
+ "associations/set": {
102
+ mode: "result";
103
+ args: { key: string; appId: string; kind: string; label?: string | undefined; };
104
+ response: { success: boolean; };
140
105
  };
141
106
  }
142
107
 
@@ -144,22 +109,25 @@ export interface AppearanceCommands {
144
109
  * ContextMenuCommands - Commands for the "context-menu" namespace
145
110
  */
146
111
  export interface ContextMenuCommands {
147
- "context-menu/register-display": {
148
- args: { };
149
- response: { success: boolean };
112
+ "context-menu/close": {
113
+ mode: "result";
114
+ args: { requestId?: string | undefined; };
115
+ response: { success: boolean; };
150
116
  };
151
117
  "context-menu/open": {
152
- args: import("./index").ContextMenuOpenArgs & { };
153
- response: { requestId: string };
118
+ mode: "result";
119
+ args: import("./index").ContextMenuOpenArgs;
120
+ response: { requestId: string; };
154
121
  };
155
- "context-menu/resolve": {
156
- args: import("./index").ContextMenuResult & { };
157
- response: { success: boolean };
122
+ "context-menu/register-display": {
123
+ mode: "result";
124
+ args: Record<string, never>;
125
+ response: { success: boolean; };
158
126
  };
159
- "context-menu/close": {
160
- args: {
161
- requestId?: string };
162
- response: { success: boolean };
127
+ "context-menu/resolve": {
128
+ mode: "result";
129
+ args: import("./index").ContextMenuResult;
130
+ response: { success: boolean; };
163
131
  };
164
132
  }
165
133
 
@@ -167,34 +135,43 @@ export interface ContextMenuCommands {
167
135
  * DaemonCommands - Commands for the "daemon" namespace
168
136
  */
169
137
  export interface DaemonCommands {
138
+ "daemon/disable": {
139
+ mode: "result";
140
+ args: { appId: string; };
141
+ response: { readonly success: true; };
142
+ };
143
+ "daemon/enable": {
144
+ mode: "result";
145
+ args: { appId: string; };
146
+ response: { readonly success: true; };
147
+ };
170
148
  "daemon/list": {
149
+ mode: "result";
171
150
  args: Record<string, never>;
172
151
  response: import("./index").DaemonStatus[];
173
152
  };
174
- "daemon/update-definition": {
175
- args: {
176
- definition: import("./index").DaemonDefinition };
177
- response: { success: true };
178
- };
179
- "daemon/enable": {
180
- args: { appId: string };
181
- response: { success: true };
182
- };
183
- "daemon/disable": {
184
- args: { appId: string };
185
- response: { success: true };
153
+ "daemon/restart": {
154
+ mode: "operation";
155
+ args: { appId: string; };
156
+ response: import("./index").OperationHandle<"daemon/restart">;
157
+ completion: { readonly success: true; };
186
158
  };
187
159
  "daemon/start": {
188
- args: { appId: string };
189
- response: { success: true };
160
+ mode: "operation";
161
+ args: { appId: string; };
162
+ response: import("./index").OperationHandle<"daemon/start">;
163
+ completion: { readonly success: true; };
190
164
  };
191
165
  "daemon/stop": {
192
- args: { appId: string };
193
- response: { success: true };
166
+ mode: "operation";
167
+ args: { appId: string; };
168
+ response: import("./index").OperationHandle<"daemon/stop">;
169
+ completion: { readonly success: true; };
194
170
  };
195
- "daemon/restart": {
196
- args: { appId: string };
197
- response: { success: true };
171
+ "daemon/update-definition": {
172
+ mode: "result";
173
+ args: { definition: import("./index").DaemonDefinition; };
174
+ response: { readonly success: true; };
198
175
  };
199
176
  }
200
177
 
@@ -203,104 +180,121 @@ export interface DaemonCommands {
203
180
  */
204
181
  export interface DbCommands {
205
182
  /**
206
- * Get a value from database (scoped to caller's app)
183
+ * Clear all keys (scoped to caller's app)
207
184
  */
208
- "db/get": {
209
- args: {
210
- key: string };
211
- response: { value: string | undefined };
185
+ "db/clear": {
186
+ mode: "result";
187
+ args: Record<string, never>;
188
+ response: { success: boolean; };
212
189
  };
213
190
  /**
214
- * Set a value in database (scoped to caller's app)
191
+ * Clear all keys in any app's namespace (superuser only)
215
192
  */
216
- "db/set": {
217
- args: {
218
- key: string;
219
- value: string };
220
- response: { success: boolean };
193
+ "db/clear/su": {
194
+ mode: "result";
195
+ args: { appId: string; };
196
+ response: { success: boolean; };
221
197
  };
222
198
  /**
223
199
  * Delete a key from database (scoped to caller's app)
224
200
  */
225
201
  "db/delete": {
226
- args: {
227
- key: string };
228
- response: { success: boolean };
229
- };
230
- /**
231
- * Check if a key exists (scoped to caller's app)
232
- */
233
- "db/has": {
234
- args: {
235
- key: string };
236
- response: { exists: boolean };
202
+ mode: "result";
203
+ args: { key: string; };
204
+ response: { success: boolean; };
237
205
  };
238
206
  /**
239
- * Clear all keys (scoped to caller's app)
207
+ * Delete a key from any app's namespace (superuser only)
240
208
  */
241
- "db/clear": {
242
- args: { };
243
- response: { success: boolean };
209
+ "db/delete/su": {
210
+ mode: "result";
211
+ args: { appId: string; key: string; };
212
+ response: { success: boolean; };
244
213
  };
245
214
  /**
246
- * List all keys (scoped to caller's app)
215
+ * Get a value from database (scoped to caller's app)
247
216
  */
248
- "db/list": {
249
- args: { };
250
- response: { keys: string[] };
217
+ "db/get": {
218
+ mode: "result";
219
+ args: { key: string; };
220
+ response: { value: string | undefined; };
251
221
  };
252
222
  /**
253
223
  * Get a value from any app's namespace (superuser only)
254
224
  */
255
225
  "db/get/su": {
256
- args: {
257
- appId: string;
258
- key: string };
259
- response: { value: string | undefined };
260
- };
261
- /**
262
- * Set a value in any app's namespace (superuser only)
263
- */
264
- "db/set/su": {
265
- args: {
266
- appId: string;
267
- key: string;
268
- value: string };
269
- response: { success: boolean };
226
+ mode: "result";
227
+ args: { appId: string; key: string; };
228
+ response: { value: string | undefined; };
270
229
  };
271
230
  /**
272
- * Delete a key from any app's namespace (superuser only)
231
+ * Check if a key exists (scoped to caller's app)
273
232
  */
274
- "db/delete/su": {
275
- args: {
276
- appId: string;
277
- key: string };
278
- response: { success: boolean };
233
+ "db/has": {
234
+ mode: "result";
235
+ args: { key: string; };
236
+ response: { exists: boolean; };
279
237
  };
280
238
  /**
281
239
  * Check if a key exists in any app's namespace (superuser only)
282
240
  */
283
241
  "db/has/su": {
284
- args: {
285
- appId: string;
286
- key: string };
287
- response: { exists: boolean };
242
+ mode: "result";
243
+ args: { appId: string; key: string; };
244
+ response: { exists: boolean; };
288
245
  };
289
246
  /**
290
- * Clear all keys in any app's namespace (superuser only)
247
+ * List all keys (scoped to caller's app)
291
248
  */
292
- "db/clear/su": {
293
- args: {
294
- appId: string };
295
- response: { success: boolean };
249
+ "db/list": {
250
+ mode: "result";
251
+ args: Record<string, never>;
252
+ response: { keys: string[]; };
296
253
  };
297
254
  /**
298
255
  * List all keys in any app's namespace (superuser only)
299
256
  */
300
257
  "db/list/su": {
301
- args: {
302
- appId: string };
303
- response: { keys: string[] };
258
+ mode: "result";
259
+ args: { appId: string; };
260
+ response: { keys: string[]; };
261
+ };
262
+ /**
263
+ * Set a value in database (scoped to caller's app)
264
+ */
265
+ "db/set": {
266
+ mode: "result";
267
+ args: { key: string; value: string; };
268
+ response: { success: boolean; };
269
+ };
270
+ /**
271
+ * Set a value in any app's namespace (superuser only)
272
+ */
273
+ "db/set/su": {
274
+ mode: "result";
275
+ args: { appId: string; key: string; value: string; };
276
+ response: { success: boolean; };
277
+ };
278
+ }
279
+
280
+ /**
281
+ * EventCommands - Commands for the "event" namespace
282
+ */
283
+ export interface EventCommands {
284
+ "event/exists": {
285
+ mode: "result";
286
+ args: { eventName: string; };
287
+ response: boolean;
288
+ };
289
+ "event/subscribe": {
290
+ mode: "result";
291
+ args: { eventName: string; operation?: { handle: { command: string; id: string; }; terminalOnly?: boolean | undefined; } | undefined; };
292
+ response: void;
293
+ };
294
+ "event/unsubscribe": {
295
+ mode: "result";
296
+ args: { eventName: string; operation?: { handle: { command: string; id: string; }; terminalOnly?: boolean | undefined; } | undefined; };
297
+ response: void;
304
298
  };
305
299
  }
306
300
 
@@ -309,62 +303,62 @@ export interface DbCommands {
309
303
  */
310
304
  export interface FileCommands {
311
305
  /**
312
- * Open a file with its default handler
306
+ * Get all file type associations
313
307
  */
314
- "file/open": {
315
- args: { path: string };
316
- response: import("./index").FileOpenResult;
308
+ "file/get-associations": {
309
+ mode: "result";
310
+ args: Record<string, never>;
311
+ response: { [x: string]: { default: string | undefined; userOverride: string | undefined; }; };
317
312
  };
318
313
  /**
319
- * Open a file with a specific app
314
+ * Get the default handler app for a file path
320
315
  */
321
- "file/open-with": {
322
- args: {
323
- path: string;
324
- appId: string };
325
- response: import("./index").FileOpenResult;
316
+ "file/get-handler": {
317
+ mode: "result";
318
+ args: { location: { volume: string; path: string; }; };
319
+ response: { appId: string | undefined; };
326
320
  };
327
321
  /**
328
- * Get the default handler app for a file path
322
+ * Get all apps that can handle a specific file path
329
323
  */
330
- "file/get-handler": {
331
- args: {
332
- path: string };
333
- response: { appId: string | undefined };
324
+ "file/get-supported-handlers": {
325
+ mode: "result";
326
+ args: { location: { volume: string; path: string; }; };
327
+ response: import("./index").FileHandlerInfo[];
334
328
  };
335
329
  /**
336
- * Set user preference for a file path's default handler
330
+ * Open a file with its default handler
337
331
  */
338
- "file/set-default-handler": {
339
- args: {
340
- path: string;
341
- appId: string };
342
- response: void;
332
+ "file/open": {
333
+ mode: "operation";
334
+ args: { location: { volume: string; path: string; }; };
335
+ response: import("./index").OperationHandle<"file/open">;
336
+ completion: import("./index").FileOpenResult;
343
337
  };
344
338
  /**
345
- * Remove user preference for a file path (revert to default)
339
+ * Open a file with a specific app
346
340
  */
347
- "file/remove-default-handler": {
348
- args: { path: string };
349
- response: void;
341
+ "file/open-with": {
342
+ mode: "operation";
343
+ args: { location: { volume: string; path: string; }; appId: string; };
344
+ response: import("./index").OperationHandle<"file/open-with">;
345
+ completion: import("./index").FileOpenResult;
350
346
  };
351
347
  /**
352
- * Get all apps that can handle a specific file path
348
+ * Remove user preference for a file path (revert to default)
353
349
  */
354
- "file/get-supported-handlers": {
355
- args: {
356
- path: string };
357
- response: import("./index").FileHandlerInfo[];
350
+ "file/remove-default-handler": {
351
+ mode: "result";
352
+ args: { location: { volume: string; path: string; }; };
353
+ response: void;
358
354
  };
359
355
  /**
360
- * Get all file type associations
356
+ * Set user preference for a file path's default handler
361
357
  */
362
- "file/get-associations": {
363
- args: Record<string, never>;
364
- response: Record<
365
- string,
366
- { default: string | undefined; userOverride: string | undefined }
367
- >;
358
+ "file/set-default-handler": {
359
+ mode: "result";
360
+ args: { location: { volume: string; path: string; }; appId: string; };
361
+ response: void;
368
362
  };
369
363
  }
370
364
 
@@ -372,22 +366,25 @@ export interface FileCommands {
372
366
  * FilePickerCommands - Commands for the "file-picker" namespace
373
367
  */
374
368
  export interface FilePickerCommands {
375
- "file-picker/register-display": {
376
- args: { };
377
- response: { success: boolean };
369
+ "file-picker/close": {
370
+ mode: "result";
371
+ args: { requestId?: string | undefined; };
372
+ response: { success: boolean; };
378
373
  };
379
374
  "file-picker/open": {
380
- args: import("./index").FilePickerOpenArgs & { };
381
- response: { requestId: string };
375
+ mode: "result";
376
+ args: import("./index").FilePickerOpenArgs;
377
+ response: { requestId: string; };
382
378
  };
383
- "file-picker/resolve": {
384
- args: import("./index").FilePickerResult & { };
385
- response: { success: boolean };
379
+ "file-picker/register-display": {
380
+ mode: "result";
381
+ args: Record<string, never>;
382
+ response: { success: boolean; };
386
383
  };
387
- "file-picker/close": {
388
- args: {
389
- requestId?: string };
390
- response: { success: boolean };
384
+ "file-picker/resolve": {
385
+ mode: "result";
386
+ args: import("./index").FilePickerResult;
387
+ response: { success: boolean; };
391
388
  };
392
389
  }
393
390
 
@@ -395,119 +392,147 @@ export interface FilePickerCommands {
395
392
  * FsCommands - Commands for the "fs" namespace
396
393
  */
397
394
  export interface FsCommands {
398
- /**
399
- * Read the contents of a file.
400
- */
395
+ "fs/access-scope": {
396
+ mode: "result";
397
+ args: { volume: string; };
398
+ response: import("./index").FilesystemLocation;
399
+ };
400
+ "fs/close": {
401
+ mode: "result";
402
+ args: { handle: { handleId: string; }; };
403
+ response: void;
404
+ };
405
+ "fs/cp": {
406
+ mode: "operation";
407
+ args: { from: { volume: string; path: string; }; to: { volume: string; path: string; }; overwrite?: boolean | undefined; };
408
+ response: import("./index").OperationHandle<"fs/cp">;
409
+ completion: void;
410
+ };
411
+ "fs/delete": {
412
+ mode: "operation";
413
+ args: { location: { volume: string; path: string; }; };
414
+ response: import("./index").OperationHandle<"fs/delete">;
415
+ completion: void;
416
+ };
417
+ "fs/exists": {
418
+ mode: "result";
419
+ args: { location: { volume: string; path: string; }; };
420
+ response: boolean;
421
+ };
422
+ "fs/lstat": {
423
+ mode: "result";
424
+ args: { location: { volume: string; path: string; }; };
425
+ response: import("./index").FileStats & { isSymbolicLink: boolean; };
426
+ };
427
+ "fs/mkdir": {
428
+ mode: "result";
429
+ args: { location: { volume: string; path: string; }; };
430
+ response: void;
431
+ };
432
+ "fs/mv": {
433
+ mode: "operation";
434
+ args: { from: { volume: string; path: string; }; to: { volume: string; path: string; }; overwrite?: boolean | undefined; };
435
+ response: import("./index").OperationHandle<"fs/mv">;
436
+ completion: void;
437
+ };
438
+ "fs/open": {
439
+ mode: "result";
440
+ args: { location: { volume: string; path: string; }; mode?: "read" | undefined; };
441
+ response: import("./index").FilesystemHandle;
442
+ };
401
443
  "fs/read": {
402
- args: {
403
- path: string;
404
- encoding?: string };
444
+ mode: "result";
445
+ args: { location: import("./index").FilesystemSource; encoding?: "ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | undefined; };
405
446
  response: string;
406
447
  };
407
- /**
408
- * Read the raw contents of a file.
409
- */
410
448
  "fs/read-binary": {
411
- args: { path: string };
412
- response: Uint8Array;
449
+ mode: "result";
450
+ args: { location: import("./index").FilesystemSource; };
451
+ response: Uint8Array<ArrayBuffer>;
452
+ };
453
+ "fs/readdir": {
454
+ mode: "result";
455
+ args: { location: { volume: string; path: string; }; };
456
+ response: string[];
457
+ };
458
+ "fs/resolve": {
459
+ mode: "result";
460
+ args: { location: { volume: string; path: string; }; };
461
+ response: { realPath: string; };
462
+ };
463
+ "fs/search": {
464
+ mode: "stream";
465
+ args: { location: { volume: string; path: string; }; pattern: string; limit?: number | undefined; };
466
+ response: import("./index").StreamHandle<"fs/search">;
467
+ chunk: import("./index").SearchProgress;
468
+ };
469
+ "fs/stat": {
470
+ mode: "result";
471
+ args: { location: import("./index").FilesystemSource; };
472
+ response: import("./index").FileStats;
413
473
  };
414
474
  /**
415
- * Write content to a file, creating directories if needed.
475
+ * Move a Home item to Trash.
416
476
  */
417
- "fs/write": {
418
- args: {
419
- path: string;
420
- content: string;
421
- encoding?: string };
422
- response: void;
477
+ "fs/trash": {
478
+ mode: "operation";
479
+ args: { location: { volume: string; path: string; }; };
480
+ response: import("./index").OperationHandle<"fs/trash">;
481
+ completion: void;
423
482
  };
424
483
  /**
425
- * Write raw bytes to a file, creating directories if needed.
484
+ * Permanently delete one Trash item.
426
485
  */
427
- "fs/write-binary": {
428
- args: {
429
- path: string;
430
- content: Uint8Array };
431
- response: void;
486
+ "fs/trash-delete": {
487
+ mode: "operation";
488
+ args: { id: string; };
489
+ response: import("./index").OperationHandle<"fs/trash-delete">;
490
+ completion: void;
432
491
  };
433
492
  /**
434
- * Check if a file or directory exists.
493
+ * Permanently delete every Trash item visible to the caller.
435
494
  */
436
- "fs/exists": {
437
- args: { path: string };
438
- response: boolean;
495
+ "fs/trash-empty": {
496
+ mode: "operation";
497
+ args: Record<string, never>;
498
+ response: import("./index").OperationHandle<"fs/trash-empty">;
499
+ completion: void;
439
500
  };
440
501
  /**
441
- * Create a directory and any necessary parent directories.
502
+ * List Trash items from folders the caller can access, newest first.
442
503
  */
443
- "fs/mkdir": {
444
- args: { path: string };
445
- response: void;
504
+ "fs/trash-entries": {
505
+ mode: "result";
506
+ args: Record<string, never>;
507
+ response: import("./index").TrashEntry[];
446
508
  };
447
509
  /**
448
- * List contents of a directory.
510
+ * Restore a Trash item to its original location or another destination.
449
511
  */
450
- "fs/readdir": {
451
- args: { path: string };
452
- response: string[];
453
- };
454
- /**
455
- * Get file or directory statistics.
456
- */
457
- "fs/stat": {
458
- args: { path: string };
459
- response: import("./index").FileStats;
460
- };
461
- "fs/watch": {
462
- args: {
463
- path: string };
464
- response: { watchId: string };
512
+ "fs/trash-restore": {
513
+ mode: "operation";
514
+ args: { id: string; location?: { volume: string; path: string; } | undefined; };
515
+ response: import("./index").OperationHandle<"fs/trash-restore">;
516
+ completion: { status: "restored"; location: import("./index").FilesystemLocation; } | { status: "occupied"; };
465
517
  };
466
518
  "fs/unwatch": {
467
- args: {
468
- watchId: string };
519
+ mode: "result";
520
+ args: { watchId: string; };
469
521
  response: void;
470
522
  };
471
- /**
472
- * Resolve an Eden path to the underlying OS path.
473
- */
474
- "fs/resolve": {
475
- args: { path: string };
476
- response: { realPath: string };
477
- };
478
- /**
479
- * Search for files and directories using glob patterns.
480
- */
481
- "fs/search": {
482
- args: {
483
- path: string;
484
- pattern: string;
485
- limit?: number };
486
- response: import("./index").SearchResult[];
487
- };
488
- /**
489
- * Delete a file or directory.
490
- * For directories, removes recursively.
491
- */
492
- "fs/delete": {
493
- args: { path: string };
494
- response: void;
523
+ "fs/watch": {
524
+ mode: "result";
525
+ args: { location: { volume: string; path: string; }; };
526
+ response: { watchId: string; };
495
527
  };
496
- /**
497
- * Copy a file or directory.
498
- * Directories are copied recursively.
499
- * Existing destinations are replaced only when overwrite is true.
500
- */
501
- "fs/cp": {
502
- args: import("./index").FilesystemTransferArgs;
528
+ "fs/write": {
529
+ mode: "result";
530
+ args: { location: { volume: string; path: string; }; content: string; encoding?: "ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | undefined; };
503
531
  response: void;
504
532
  };
505
- /**
506
- * Move or rename a file or directory.
507
- * Existing destinations are replaced only when overwrite is true.
508
- */
509
- "fs/mv": {
510
- args: import("./index").FilesystemTransferArgs;
533
+ "fs/write-binary": {
534
+ mode: "result";
535
+ args: { location: { volume: string; path: string; }; content: Uint8Array<ArrayBufferLike>; };
511
536
  response: void;
512
537
  };
513
538
  }
@@ -516,35 +541,15 @@ export interface FsCommands {
516
541
  * I18nCommands - Commands for the "i18n" namespace
517
542
  */
518
543
  export interface I18nCommands {
519
- "i18n/get-locale": {
520
- args: Record<string, never>;
521
- response: { locale: string };
522
- };
523
544
  "i18n/get-common": {
524
- args: { locale: string };
525
- response: {
526
- translations: import("./index").RecursiveObject<string>;
527
- };
528
- };
529
- }
530
-
531
- /**
532
- * EventCommands - Commands for the "event" namespace
533
- */
534
- export interface EventCommands {
535
- "event/subscribe": {
536
- args: {
537
- eventName: string };
538
- response: void;
539
- };
540
- "event/unsubscribe": {
541
- args: {
542
- eventName: string };
543
- response: void;
545
+ mode: "result";
546
+ args: { locale: string; };
547
+ response: { translations: import("./index").RecursiveObject<string>; };
544
548
  };
545
- "event/exists": {
546
- args: { eventName: string };
547
- response: boolean;
549
+ "i18n/get-locale": {
550
+ mode: "result";
551
+ args: Record<string, never>;
552
+ response: { locale: string; };
548
553
  };
549
554
  }
550
555
 
@@ -553,40 +558,57 @@ export interface EventCommands {
553
558
  */
554
559
  export interface NotificationCommands {
555
560
  /**
556
- * Register the notification display provider.
561
+ * Report a notification action click from the toaster.
557
562
  */
558
- "notification/register-display": {
559
- args: { };
560
- response: { success: boolean };
563
+ "notification/action-clicked": {
564
+ mode: "result";
565
+ args: { notificationId: string; actionId: string; };
566
+ response: { success: boolean; };
567
+ };
568
+ /**
569
+ * Report a notification dismissal from the toaster.
570
+ */
571
+ "notification/dismissed": {
572
+ mode: "result";
573
+ args: { notificationId: string; };
574
+ response: { success: boolean; };
561
575
  };
562
576
  /**
563
577
  * Push a new notification to subscribers.
564
578
  */
565
579
  "notification/push": {
566
- args: {
567
- title: string;
568
- message: string;
569
- timeout?: number;
570
- type?: import("./index").NotificationType;
571
- actions?: import("./index").NotificationAction[] };
580
+ mode: "result";
581
+ args: { title: string; message: string; timeout?: number | undefined; type?: import("./index").NotificationType | undefined; actions?: import("./index").NotificationAction[] | undefined; };
572
582
  response: import("./index").Notification;
573
583
  };
574
584
  /**
575
- * Report a notification action click from the toaster.
585
+ * Register the notification display provider.
576
586
  */
577
- "notification/action-clicked": {
578
- args: {
579
- notificationId: string;
580
- actionId: string };
581
- response: { success: boolean };
587
+ "notification/register-display": {
588
+ mode: "result";
589
+ args: Record<string, never>;
590
+ response: { success: boolean; };
582
591
  };
583
- /**
584
- * Report a notification dismissal from the toaster.
585
- */
586
- "notification/dismissed": {
587
- args: {
588
- notificationId: string };
589
- response: { success: boolean };
592
+ }
593
+
594
+ /**
595
+ * OperationCommands - Commands for the "operation" namespace
596
+ */
597
+ export interface OperationCommands {
598
+ "operation/cancel": {
599
+ mode: "result";
600
+ args: { handle: { command: string; id: string; }; };
601
+ response: void;
602
+ };
603
+ "operation/get": {
604
+ mode: "result";
605
+ args: { handle: { command: string; id: string; }; };
606
+ response: (import("./index").OperationSnapshotBase<string> & { status: "queued" | "running"; }) | (import("./index").OperationSnapshotBase<string> & { status: "cancelled"; completedAt: number; }) | (import("./index").OperationSnapshotBase<string> & { status: "succeeded"; completedAt: number; result: unknown; }) | (import("./index").OperationSnapshotBase<string> & { status: "failed"; completedAt: number; error: import("./index").OperationError; response?: unknown; });
607
+ };
608
+ "operation/list": {
609
+ mode: "result";
610
+ args: Record<string, never>;
611
+ response: import("./index").OperationSnapshot[];
590
612
  };
591
613
  }
592
614
 
@@ -594,91 +616,57 @@ export interface NotificationCommands {
594
616
  * PackageCommands - Commands for the "package" namespace
595
617
  */
596
618
  export interface PackageCommands {
597
- /**
598
- * Install an application or DLC from a local path.
599
- */
619
+ "package/get": {
620
+ mode: "result";
621
+ args: { packageId: string; };
622
+ response: import("./index").InstalledPackageInfo;
623
+ };
624
+ "package/get-icon": {
625
+ mode: "result";
626
+ args: { packageId: string; };
627
+ response: { icon: string | undefined; };
628
+ };
629
+ "package/get-info": {
630
+ mode: "result";
631
+ args: { location: { volume: string; path: string; }; };
632
+ response: import("./index").PackageInfo;
633
+ };
634
+ "package/get-size": {
635
+ mode: "result";
636
+ args: { packageId: string; };
637
+ response: { size: number | undefined; };
638
+ };
600
639
  "package/install": {
601
- args: {
602
- sourcePath: string;
603
- replace?: boolean };
604
- response: import("./index").InstalledPackageManifest;
640
+ mode: "operation";
641
+ args: { source: { volume: string; path: string; }; replace?: boolean | undefined; };
642
+ response: import("./index").OperationHandle<"package/install">;
643
+ completion: import("./index").RuntimeAppManifest | import("./index").RuntimeDlcManifest;
605
644
  };
606
- /**
607
- * Uninstall an application or DLC by its package ID.
608
- */
609
- "package/uninstall": {
610
- args: { packageId: string };
611
- response: boolean;
645
+ "package/is-hot-reload-enabled": {
646
+ mode: "result";
647
+ args: { packageId: string; };
648
+ response: { enabled: boolean; };
612
649
  };
613
- /**
614
- * List all installed applications.
615
- * @param showHidden - If true, includes overlay apps and daemons (hidden by default)
616
- * @param showRestricted - If true, includes apps the current user cannot launch (hidden by default)
617
- */
618
650
  "package/list": {
619
- args: {
620
- showHidden?: boolean;
621
- showRestricted?: boolean };
651
+ mode: "result";
652
+ args: { showHidden?: boolean | undefined; showRestricted?: boolean | undefined; };
622
653
  response: import("./index").RuntimeAppManifest[];
623
654
  };
624
- /**
625
- * Identify the authenticated app and return its extension resources.
626
- */
627
655
  "package/self": {
628
- args: { };
629
- response: import("./index").InstalledPackageInfo;
630
- };
631
- /**
632
- * Get an installed package and any extension resources it owns.
633
- */
634
- "package/get": {
635
- args: {
636
- packageId: string };
656
+ mode: "result";
657
+ args: Record<string, never>;
637
658
  response: import("./index").InstalledPackageInfo;
638
659
  };
639
- /**
640
- * Toggle hot reload for an app
641
- */
642
660
  "package/toggle-hot-reload": {
643
- args: {
644
- packageId: string };
645
- response: { enabled: boolean };
661
+ mode: "result";
662
+ args: { packageId: string; };
663
+ response: { enabled: boolean; };
646
664
  };
647
- /**
648
- * Check if hot reload is enabled for an app
649
- */
650
- "package/is-hot-reload-enabled": {
651
- args: {
652
- packageId: string };
653
- response: { enabled: boolean };
654
- };
655
- /**
656
- * Get the icon for an installed package as a data URL.
657
- */
658
- "package/get-icon": {
659
- args: {
660
- packageId: string };
661
- response: { icon: string | undefined };
662
- };
663
- /**
664
- * Get info about a package file without installing it
665
- */
666
- "package/get-info": {
667
- args: { path: string };
668
- response: {
669
- success: boolean;
670
- manifest?: import("./index").PackageManifest;
671
- preview?: import("./index").PackageOperationPreview;
672
- error?: string;
673
- };
674
- };
675
- /**
676
- * Get the installed size of a package in bytes.
677
- */
678
- "package/get-size": {
679
- args: {
680
- packageId: string };
681
- response: { size: number | undefined };
665
+ "package/uninstall": {
666
+ mode: "operation";
667
+ args: { packageId: string; };
668
+ response: import("./index").OperationHandle<"package/uninstall">;
669
+ completion: boolean;
682
670
  };
683
671
  }
684
672
 
@@ -686,56 +674,34 @@ export interface PackageCommands {
686
674
  * ProcessCommands - Commands for the "process" namespace
687
675
  */
688
676
  export interface ProcessCommands {
689
- /**
690
- * Launch an application instance.
691
- * Requires "process/manage" permission.
692
- */
693
- "process/launch": {
694
- args: {
695
- appId: string;
696
- bounds?: import("./index").ViewBounds };
697
- response: import("./index").LaunchResult;
698
- };
699
- /**
700
- * Stop a running application instance.
701
- * Requires "process/manage" permission.
702
- */
703
- "process/stop": {
704
- args: { appId: string };
705
- response: { success: boolean };
706
- };
707
- /**
708
- * Stop the caller app instance.
709
- * No explicit permission required - this endpoint only allows self-exit.
710
- */
711
677
  "process/exit": {
712
- args: { };
713
- response: { success: boolean };
678
+ mode: "operation";
679
+ args: Record<string, never>;
680
+ response: import("./index").OperationHandle<"process/exit">;
681
+ completion: { success: boolean; };
682
+ };
683
+ "process/launch": {
684
+ mode: "operation";
685
+ args: { appId: string; bounds?: { x: number; y: number; width: number; height: number; } | undefined; };
686
+ response: import("./index").OperationHandle<"process/launch">;
687
+ completion: import("./index").LaunchResult;
714
688
  };
715
- /**
716
- * List all running application processes.
717
- * Requires "process/read" permission.
718
- * @param showHidden - If true, includes overlay apps (hidden by default)
719
- */
720
689
  "process/list": {
721
- args: { showHidden?: boolean };
690
+ mode: "result";
691
+ args: { showHidden?: boolean | undefined; };
722
692
  response: import("./index").AppInstance[];
723
693
  };
724
- /**
725
- * Return CPU and memory metrics for running Eden apps.
726
- * Requires "process/read" permission.
727
- * @param showHidden - If true, includes overlay apps and backend-only apps
728
- * @param pollingTimeoutMs - How long main should keep the shared sampler alive
729
- * @param waitForAccurateCpu - If false, returns the current sample immediately,
730
- * even before Electron has a full CPU interval
731
- */
732
694
  "process/metrics": {
733
- args: {
734
- showHidden?: boolean;
735
- pollingTimeoutMs?: number;
736
- waitForAccurateCpu?: boolean };
695
+ mode: "result";
696
+ args: { showHidden?: boolean | undefined; pollingTimeoutMs?: number | undefined; waitForAccurateCpu?: boolean | undefined; };
737
697
  response: import("./index").ProcessMetricsSnapshot;
738
698
  };
699
+ "process/stop": {
700
+ mode: "operation";
701
+ args: { appId: string; };
702
+ response: import("./index").OperationHandle<"process/stop">;
703
+ completion: { success: boolean; };
704
+ };
739
705
  }
740
706
 
741
707
  /**
@@ -743,18 +709,21 @@ export interface ProcessCommands {
743
709
  */
744
710
  export interface SessionCommands {
745
711
  "session/get-current": {
712
+ mode: "result";
746
713
  args: Record<string, never>;
747
- response: { user: import("./index").UserProfile | null };
714
+ response: { user: import("./index").UserProfile | null; };
748
715
  };
749
716
  "session/login": {
750
- args: {
751
- username: string;
752
- password: string };
753
- response: { success: boolean; user?: import("./index").UserProfile; error?: string };
717
+ mode: "operation";
718
+ args: { username: string; password: string; };
719
+ response: import("./index").OperationHandle<"session/login">;
720
+ completion: { success: boolean; user?: import("./index").UserProfile; error?: string; };
754
721
  };
755
722
  "session/logout": {
723
+ mode: "operation";
756
724
  args: Record<string, never>;
757
- response: { success: boolean };
725
+ response: import("./index").OperationHandle<"session/logout">;
726
+ completion: { success: boolean; };
758
727
  };
759
728
  }
760
729
 
@@ -762,209 +731,211 @@ export interface SessionCommands {
762
731
  * SettingsCommands - Commands for the "settings" namespace
763
732
  */
764
733
  export interface SettingsCommands {
734
+ "settings/action": {
735
+ mode: "result";
736
+ args: { panelId: string; actionId: string; invocation?: import("./index").SettingsPanelActionInvocation | undefined; };
737
+ response: import("./index").SettingsPanelActionResponse;
738
+ };
765
739
  /**
766
740
  * Get a setting value (scoped to caller's app)
767
741
  */
768
742
  "settings/get": {
769
- args: {
770
- key: string;
771
- appId?: string };
772
- response: { value: string | undefined };
773
- };
774
- /**
775
- * Set a setting value (scoped to caller's app)
776
- */
777
- "settings/set": {
778
- args: {
779
- key: string;
780
- value: string };
781
- response: { success: boolean };
782
- };
783
- /**
784
- * List all settings keys (scoped to caller's app)
785
- */
786
- "settings/list": {
787
- args: { };
788
- response: { keys: string[] };
743
+ mode: "result";
744
+ args: { key: string; appId?: string | undefined; };
745
+ response: { value: string | undefined; };
789
746
  };
790
747
  /**
791
748
  * Get all settings with values (scoped to caller's app)
792
749
  */
793
750
  "settings/get-all": {
794
- args: { };
795
- response: { settings: Record<string, string> };
751
+ mode: "result";
752
+ args: Record<string, never>;
753
+ response: { settings: Record<string, string>; };
796
754
  };
797
755
  /**
798
- * Reset a setting to default (scoped to caller's app)
756
+ * Get all settings with values for any app (superuser only)
757
+ * @param showRestricted - If true, includes settings the current user cannot access (hidden by default)
799
758
  */
800
- "settings/reset": {
801
- args: {
802
- key: string;
803
- schema?: import("./index").SettingsCategory[] };
804
- response: { success: boolean };
759
+ "settings/get-all/su": {
760
+ mode: "result";
761
+ args: { appId: string; showRestricted?: boolean | undefined; };
762
+ response: { settings: Record<string, string>; };
805
763
  };
806
764
  /**
807
765
  * Get a setting from any app's namespace (superuser only)
808
766
  */
809
767
  "settings/get/su": {
810
- args: {
811
- appId: string;
812
- key: string };
813
- response: { value: string | undefined };
768
+ mode: "result";
769
+ args: { appId: string; key: string; };
770
+ response: { value: string | undefined; };
814
771
  };
815
772
  /**
816
- * Set a setting in any app's namespace (superuser only)
773
+ * List all settings keys (scoped to caller's app)
817
774
  */
818
- "settings/set/su": {
819
- args: {
820
- appId: string;
821
- key: string;
822
- value: string };
823
- response: { success: boolean };
775
+ "settings/list": {
776
+ mode: "result";
777
+ args: Record<string, never>;
778
+ response: { keys: string[]; };
824
779
  };
825
780
  /**
826
781
  * List all settings in any app's namespace (superuser only)
827
782
  * @param showRestricted - If true, includes settings the current user cannot access (hidden by default)
828
783
  */
829
784
  "settings/list/su": {
830
- args: {
831
- appId: string;
832
- showRestricted?: boolean };
833
- response: { keys: string[] };
785
+ mode: "result";
786
+ args: { appId: string; showRestricted?: boolean | undefined; };
787
+ response: { keys: string[]; };
788
+ };
789
+ "settings/panel": {
790
+ mode: "result";
791
+ args: { panelId: string; };
792
+ response: import("./index").SettingsPanelResponse;
793
+ };
794
+ "settings/panels": {
795
+ mode: "result";
796
+ args: Record<string, never>;
797
+ response: { panels: import("./index").SettingsPanelSummary[]; };
834
798
  };
835
799
  /**
836
- * Get all settings with values for any app (superuser only)
837
- * @param showRestricted - If true, includes settings the current user cannot access (hidden by default)
800
+ * Reset a setting to default (scoped to caller's app)
838
801
  */
839
- "settings/get-all/su": {
840
- args: {
841
- appId: string;
842
- showRestricted?: boolean };
843
- response: { settings: Record<string, string> };
802
+ "settings/reset": {
803
+ mode: "result";
804
+ args: { key: string; schema?: import("./index").SettingsCategory[] | undefined; };
805
+ response: { success: boolean; };
844
806
  };
845
807
  /**
846
808
  * Reset a setting for any app (superuser only)
847
809
  */
848
810
  "settings/reset/su": {
849
- args: {
850
- appId: string;
851
- key: string;
852
- schema?: import("./index").SettingsCategory[] };
853
- response: { success: boolean };
854
- };
855
- /**
856
- * List the settings panels visible to the active user.
857
- */
858
- "settings/panels": {
859
- args: Record<string, never>;
860
- response: { panels: import("./index").SettingsPanelSummary[] };
811
+ mode: "result";
812
+ args: { appId: string; key: string; schema?: import("./index").SettingsCategory[] | undefined; };
813
+ response: { success: boolean; };
861
814
  };
862
815
  /**
863
- * Load one complete authorized panel snapshot.
816
+ * Set a setting value (scoped to caller's app)
864
817
  */
865
- "settings/panel": {
866
- args: { panelId: string };
867
- response: import("./index").SettingsPanelResponse;
818
+ "settings/set": {
819
+ mode: "result";
820
+ args: { key: string; value: string; };
821
+ response: { success: boolean; };
868
822
  };
869
823
  /**
870
- * Invoke one declared panel-private action.
824
+ * Set a setting in any app's namespace (superuser only)
871
825
  */
872
- "settings/action": {
873
- args: {
874
- panelId: string;
875
- actionId: string;
876
- invocation?: import("./index").SettingsPanelActionInvocation };
877
- response: import("./index").SettingsPanelActionResponse;
826
+ "settings/set/su": {
827
+ mode: "result";
828
+ args: { appId: string; key: string; value: string; };
829
+ response: { success: boolean; };
878
830
  };
879
831
  }
880
832
 
881
833
  /**
882
- * UserCommands - Commands for the "user" namespace
834
+ * StreamCommands - Commands for the "stream" namespace
883
835
  */
884
- export interface UserCommands {
885
- "user/grant-options": {
886
- args: Record<string, never>;
887
- response: import("./index").UserGrantOptionsResponse;
888
- };
836
+ export interface StreamCommands {
889
837
  /**
890
- * List all users.
838
+ * Return credit for chunks that the caller consumed from its stream.
839
+ * Stream readers send this automatically.
891
840
  */
892
- "user/list": {
893
- args: Record<string, never>;
894
- response: { users: import("./index").UserProfile[] };
841
+ "stream/ack": {
842
+ mode: "result";
843
+ args: { handle: { command: string; id: string; }; count: number; };
844
+ response: void;
895
845
  };
896
846
  /**
897
- * Create a new user.
847
+ * Stop a stream that the caller opened.
898
848
  */
899
- "user/create": {
900
- args: {
901
- username?: string;
902
- name: string;
903
- role?: import("./index").UserRole;
904
- password: string;
905
- grants?: string[];
906
- homeDirectory?: string };
907
- response: { user: import("./index").UserProfile };
849
+ "stream/cancel": {
850
+ mode: "result";
851
+ args: { handle: { command: string; id: string; }; };
852
+ response: void;
908
853
  };
854
+ }
855
+
856
+ /**
857
+ * SystemCommands - Commands for the "system" namespace
858
+ */
859
+ export interface SystemCommands {
909
860
  /**
910
- * Update user profile details or grants.
861
+ * Get consumer-controlled product branding for SDK-owned interfaces.
911
862
  */
912
- "user/update": {
913
- args: {
914
- username: string;
915
- name?: string;
916
- role?: import("./index").UserRole;
917
- grants?: string[];
918
- homeDirectory?: string | null };
919
- response: { user: import("./index").UserProfile };
863
+ "system/branding": {
864
+ mode: "result";
865
+ args: Record<string, never>;
866
+ response: import("./index").EdenBrandingInfo;
920
867
  };
921
- /**
922
- * Delete a user.
923
- */
924
- "user/delete": {
925
- args: {
926
- username: string };
927
- response: { success: boolean };
868
+ "system/info": {
869
+ mode: "result";
870
+ args: Record<string, never>;
871
+ response: import("./index").SystemInfo;
928
872
  };
929
- /**
930
- * Set a user's password.
931
- */
932
- "user/set-password": {
933
- args: {
934
- username: string;
935
- password: string };
936
- response: { success: boolean };
873
+ "system/power": {
874
+ mode: "operation";
875
+ args: { action: "poweroff" | "reboot"; };
876
+ response: import("./index").OperationHandle<"system/power">;
877
+ completion: void;
937
878
  };
938
- /**
939
- * Change the current user's password.
940
- */
879
+ "system/power-capabilities": {
880
+ mode: "result";
881
+ args: Record<string, never>;
882
+ response: import("./index").EdenPowerCapabilities;
883
+ };
884
+ }
885
+
886
+ /**
887
+ * UserCommands - Commands for the "user" namespace
888
+ */
889
+ export interface UserCommands {
941
890
  "user/change-password": {
942
- args: {
943
- currentPassword: string;
944
- newPassword: string };
945
- response: { success: boolean; error?: string };
891
+ mode: "result";
892
+ args: { currentPassword: string; newPassword: string; };
893
+ response: { success: boolean; error?: string; } | { success: boolean; error: string; };
946
894
  };
947
- /**
948
- * Check whether the current user has a specific grant.
949
- */
950
- "user/has-grant": {
951
- args: { grant: string };
952
- response: { allowed: boolean };
895
+ "user/create": {
896
+ mode: "result";
897
+ args: { username?: string | undefined; name: string; role?: "standard" | "vendor" | undefined; password: string; grants?: string[] | undefined; directoryRestriction?: string | undefined; };
898
+ response: { user: import("./index").UserProfile; };
899
+ };
900
+ "user/delete": {
901
+ mode: "result";
902
+ args: { username: string; };
903
+ response: { success: boolean; };
953
904
  };
954
- /**
955
- * Return the configured default username.
956
- */
957
905
  "user/get-default": {
906
+ mode: "result";
958
907
  args: Record<string, never>;
959
- response: { username: string | null };
908
+ response: { username: string | null; };
909
+ };
910
+ "user/grant-options": {
911
+ mode: "result";
912
+ args: Record<string, never>;
913
+ response: import("./index").UserGrantOptionsResponse;
914
+ };
915
+ "user/has-grant": {
916
+ mode: "result";
917
+ args: { grant: string; };
918
+ response: { allowed: boolean; };
919
+ };
920
+ "user/list": {
921
+ mode: "result";
922
+ args: Record<string, never>;
923
+ response: { users: import("./index").UserProfile[]; };
960
924
  };
961
- /**
962
- * Update the configured default username.
963
- */
964
925
  "user/set-default": {
965
- args: {
966
- username: string | null };
967
- response: { success: boolean };
926
+ mode: "result";
927
+ args: { username: string | null; };
928
+ response: { success: boolean; };
929
+ };
930
+ "user/set-password": {
931
+ mode: "result";
932
+ args: { username: string; password: string; };
933
+ response: { success: boolean; };
934
+ };
935
+ "user/update": {
936
+ mode: "result";
937
+ args: { username: string; name?: string | undefined; role?: "standard" | "vendor" | undefined; grants?: string[] | undefined; directoryRestriction?: string | null | undefined; };
938
+ response: { user: import("./index").UserProfile; };
968
939
  };
969
940
  }
970
941
 
@@ -972,176 +943,126 @@ export interface UserCommands {
972
943
  * ViewCommands - Commands for the "view" namespace
973
944
  */
974
945
  export interface ViewCommands {
975
- /**
976
- * Update bounds for the caller's own view.
977
- */
978
- "view/update-bounds": {
979
- args: {
980
- bounds: import("./index").ViewBounds };
981
- response: { success: boolean };
982
- };
983
- /**
984
- * Update bounds for any app view.
985
- * Requires "view/manage" permission.
986
- */
987
- "view/update-view-bounds": {
988
- args: {
989
- appId: string;
990
- bounds: import("./index").ViewBounds };
991
- response: { success: boolean };
946
+ "view/end-drag": {
947
+ mode: "result";
948
+ args: Record<string, never>;
949
+ response: { success: boolean; };
992
950
  };
993
- /**
994
- * Show or hide the caller's own view.
995
- */
996
- "view/set-visibility": {
997
- args: {
998
- visible: boolean };
999
- response: { success: boolean };
951
+ "view/end-resize": {
952
+ mode: "result";
953
+ args: Record<string, never>;
954
+ response: { success: boolean; };
1000
955
  };
1001
- /**
1002
- * Show or hide any app view.
1003
- * Requires "view/manage" permission.
1004
- */
1005
- "view/set-view-visibility": {
1006
- args: {
1007
- appId: string;
1008
- visible: boolean };
1009
- response: { success: boolean };
956
+ "view/expand-tile": {
957
+ mode: "result";
958
+ args: { direction: "left" | "right" | "top" | "bottom"; };
959
+ response: import("./index").TileLayoutState;
1010
960
  };
1011
- /**
1012
- * Bring caller's own view to the front and focus it.
1013
- */
1014
961
  "view/focus": {
1015
- args: { };
1016
- response: { success: boolean };
962
+ mode: "result";
963
+ args: Record<string, never>;
964
+ response: { success: boolean; };
1017
965
  };
1018
- /**
1019
- * Bring any app view to the front and focus it.
1020
- * Requires "view/manage" permission.
1021
- */
1022
966
  "view/focus-view": {
1023
- args: {
1024
- appId: string };
1025
- response: { success: boolean };
967
+ mode: "result";
968
+ args: { appId: string; };
969
+ response: { success: boolean; };
1026
970
  };
1027
- /**
1028
- * Update the available workspace bounds (e.g. after taskbar resize).
1029
- * Requires "view/manage" permission for app callers.
1030
- */
1031
- "view/update-global-bounds": {
1032
- args: {
1033
- bounds: import("./index").ViewBounds;
1034
- windowSize: import("./index").WindowSize };
1035
- response: { success: boolean };
971
+ "view/get-interface-scale": {
972
+ mode: "result";
973
+ args: Record<string, never>;
974
+ response: { scale: number; };
1036
975
  };
1037
- /**
1038
- * Toggle caller's own view between floating and tiled window modes.
1039
- */
1040
- "view/toggle-mode": {
1041
- args: {
1042
- mode?: "floating" | "tiled" };
1043
- response: { success: boolean };
976
+ "view/global-mouseup": {
977
+ mode: "result";
978
+ args: Record<string, never>;
979
+ response: { success: boolean; };
1044
980
  };
1045
- /**
1046
- * Toggle any app view between floating and tiled window modes.
1047
- * Requires "view/manage" permission.
1048
- */
1049
- "view/toggle-view-mode": {
1050
- args: {
1051
- appId: string;
1052
- mode?: "floating" | "tiled" };
1053
- response: { success: boolean };
981
+ "view/set-interface-scale": {
982
+ mode: "result";
983
+ args: { scale: string; };
984
+ response: { success: boolean; };
1054
985
  };
1055
- /**
1056
- * Get adjacent tiled windows for the caller's app-frame layout controls.
1057
- */
1058
- "view/tile-layout-state": {
1059
- args: { };
1060
- response: import("./index").TileLayoutState;
986
+ "view/set-view-visibility": {
987
+ mode: "result";
988
+ args: { appId: string; visible: boolean; };
989
+ response: { success: boolean; };
990
+ };
991
+ "view/set-visibility": {
992
+ mode: "result";
993
+ args: { visible: boolean; };
994
+ response: { success: boolean; };
995
+ };
996
+ "view/start-drag": {
997
+ mode: "result";
998
+ args: { startX: number; startY: number; };
999
+ response: { success: boolean; };
1000
+ };
1001
+ "view/start-resize": {
1002
+ mode: "result";
1003
+ args: { direction?: "left" | "right" | "bottom" | "bottom-left" | "bottom-right" | undefined; startX: number; startY: number; };
1004
+ response: { success: boolean; };
1061
1005
  };
1062
- /**
1063
- * Swap the caller with the tiled window on one edge.
1064
- */
1065
1006
  "view/swap-tile": {
1066
- args: {
1067
- direction: import("./index").TileLayoutDirection };
1007
+ mode: "result";
1008
+ args: { direction: "left" | "right" | "top" | "bottom"; };
1068
1009
  response: import("./index").TileLayoutState;
1069
1010
  };
1070
- /**
1071
- * Temporarily cover the tiled window on one edge with the caller.
1072
- */
1073
- "view/expand-tile": {
1074
- args: {
1075
- direction: import("./index").TileLayoutDirection };
1011
+ "view/tile-layout-state": {
1012
+ mode: "result";
1013
+ args: Record<string, never>;
1076
1014
  response: import("./index").TileLayoutState;
1077
1015
  };
1078
- /**
1079
- * Start dragging caller's own view.
1080
- */
1081
- "view/start-drag": {
1082
- args: {
1083
- startX: number;
1084
- startY: number };
1085
- response: { success: boolean };
1016
+ "view/toggle-mode": {
1017
+ mode: "result";
1018
+ args: { mode?: "floating" | "tiled" | undefined; };
1019
+ response: { success: boolean; };
1086
1020
  };
1087
- /**
1088
- * End drag operation for caller's own view.
1089
- */
1090
- "view/end-drag": {
1091
- args: { };
1092
- response: { success: boolean };
1021
+ "view/toggle-view-mode": {
1022
+ mode: "result";
1023
+ args: { appId: string; mode?: "floating" | "tiled" | undefined; };
1024
+ response: { success: boolean; };
1093
1025
  };
1094
- /**
1095
- * Handle global mouse up event to stop any active drag/resize operations.
1096
- * Requires "view/manage" permission for app callers.
1097
- */
1098
- "view/global-mouseup": {
1099
- args: Record<string, never>;
1100
- response: { success: boolean };
1026
+ "view/update-bounds": {
1027
+ mode: "result";
1028
+ args: { bounds: { x: number; y: number; width: number; height: number; }; };
1029
+ response: { success: boolean; };
1101
1030
  };
1102
- /**
1103
- * Start resizing caller's own view.
1104
- */
1105
- "view/start-resize": {
1106
- args: {
1107
- startX: number;
1108
- startY: number;
1109
- direction?: "left" | "right" | "bottom" | "bottom-left" | "bottom-right" };
1110
- response: { success: boolean };
1031
+ "view/update-global-bounds": {
1032
+ mode: "result";
1033
+ args: { bounds: { x: number; y: number; width: number; height: number; }; windowSize: { width: number; height: number; }; };
1034
+ response: { success: boolean; };
1111
1035
  };
1112
- /**
1113
- * End resize operation for caller's own view.
1114
- */
1115
- "view/end-resize": {
1116
- args: { };
1117
- response: { success: boolean };
1036
+ "view/update-view-bounds": {
1037
+ mode: "result";
1038
+ args: { appId: string; bounds: { x: number; y: number; width: number; height: number; }; };
1039
+ response: { success: boolean; };
1118
1040
  };
1119
- /**
1120
- * Get the current dimensions of the main window.
1121
- */
1122
1041
  "view/window-size": {
1042
+ mode: "result";
1123
1043
  args: Record<string, never>;
1124
1044
  response: import("./index").WindowSize;
1125
1045
  };
1126
- /**
1127
- * Set the interface scale (zoom factor) for all views.
1128
- * @param scale - Scale factor as a string (e.g., "1.0" for 100%, "1.5" for 150%)
1129
- */
1130
- "view/set-interface-scale": {
1131
- args: {
1132
- scale: string };
1133
- response: { success: boolean };
1134
- };
1135
- /**
1136
- * Get the current interface scale.
1137
- */
1138
- "view/get-interface-scale": {
1046
+ }
1047
+
1048
+ /**
1049
+ * VolumeCommands - Commands for the "volume" namespace
1050
+ */
1051
+ export interface VolumeCommands {
1052
+ "volume/eject": {
1053
+ mode: "operation";
1054
+ args: { volume: string; };
1055
+ response: import("./index").OperationHandle<"volume/eject">;
1056
+ completion: void;
1057
+ };
1058
+ "volume/list": {
1059
+ mode: "result";
1139
1060
  args: Record<string, never>;
1140
- response: { scale: number };
1061
+ response: import("./index").FilesystemVolume[];
1141
1062
  };
1142
1063
  }
1143
1064
 
1144
1065
  /**
1145
1066
  * Global command map - merge all command namespaces
1146
1067
  */
1147
- export interface CommandMap extends SystemCommands, AssociationsCommands, AppbusCommands, AppearanceCommands, ContextMenuCommands, DaemonCommands, DbCommands, FileCommands, FilePickerCommands, FsCommands, I18nCommands, EventCommands, NotificationCommands, PackageCommands, ProcessCommands, SessionCommands, SettingsCommands, UserCommands, ViewCommands {}
1068
+ export interface CommandMap extends AppbusCommands, AppearanceCommands, AssociationsCommands, ContextMenuCommands, DaemonCommands, DbCommands, EventCommands, FileCommands, FilePickerCommands, FsCommands, I18nCommands, NotificationCommands, OperationCommands, PackageCommands, ProcessCommands, SessionCommands, SettingsCommands, StreamCommands, SystemCommands, UserCommands, ViewCommands, VolumeCommands {}