@crosshands/contract 0.1.2

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 (48) hide show
  1. package/LICENSE +21 -0
  2. package/dist/context.d.ts +19 -0
  3. package/dist/context.d.ts.map +1 -0
  4. package/dist/context.js +82 -0
  5. package/dist/context.js.map +1 -0
  6. package/dist/errors.d.ts +164 -0
  7. package/dist/errors.d.ts.map +1 -0
  8. package/dist/errors.js +65 -0
  9. package/dist/errors.js.map +1 -0
  10. package/dist/generate-schemas.d.ts +2 -0
  11. package/dist/generate-schemas.d.ts.map +1 -0
  12. package/dist/generate-schemas.js +8 -0
  13. package/dist/generate-schemas.js.map +1 -0
  14. package/dist/index.d.ts +8 -0
  15. package/dist/index.d.ts.map +1 -0
  16. package/dist/index.js +8 -0
  17. package/dist/index.js.map +1 -0
  18. package/dist/json-schema.d.ts +306 -0
  19. package/dist/json-schema.d.ts.map +1 -0
  20. package/dist/json-schema.js +15 -0
  21. package/dist/json-schema.js.map +1 -0
  22. package/dist/operations.d.ts +2115 -0
  23. package/dist/operations.d.ts.map +1 -0
  24. package/dist/operations.js +205 -0
  25. package/dist/operations.js.map +1 -0
  26. package/dist/provider.d.ts +135 -0
  27. package/dist/provider.d.ts.map +1 -0
  28. package/dist/provider.js +56 -0
  29. package/dist/provider.js.map +1 -0
  30. package/dist/schemas.d.ts +499 -0
  31. package/dist/schemas.d.ts.map +1 -0
  32. package/dist/schemas.js +138 -0
  33. package/dist/schemas.js.map +1 -0
  34. package/dist/versions.d.ts +31 -0
  35. package/dist/versions.d.ts.map +1 -0
  36. package/dist/versions.js +28 -0
  37. package/dist/versions.js.map +1 -0
  38. package/package.json +39 -0
  39. package/schemas/contract.json +7572 -0
  40. package/src/context.ts +107 -0
  41. package/src/errors.ts +82 -0
  42. package/src/generate-schemas.ts +9 -0
  43. package/src/index.ts +7 -0
  44. package/src/json-schema.ts +17 -0
  45. package/src/operations.ts +224 -0
  46. package/src/provider.ts +82 -0
  47. package/src/schemas.ts +161 -0
  48. package/src/versions.ts +46 -0
@@ -0,0 +1,2115 @@
1
+ import { z } from 'zod';
2
+ export declare const CLICK_MODIFIER_TOKENS: readonly ["Shift", "Ctrl", "Control", "Alt", "Option", "Meta", "Cmd", "Command", "Super", "Win", "CmdOrCtrl", "CommandOrControl", "shift", "ctrl", "control", "alt", "option", "meta", "cmd", "command", "super", "win", "cmdorctrl", "commandorcontrol"];
3
+ export declare const COMPUTER_OPERATIONS: {
4
+ readonly capabilities: {
5
+ readonly mutation: false;
6
+ readonly input: z.ZodObject<{}, z.core.$strict>;
7
+ readonly output: z.ZodObject<{
8
+ platform: z.ZodEnum<{
9
+ darwin: "darwin";
10
+ win32: "win32";
11
+ linux: "linux";
12
+ }>;
13
+ provider: z.ZodString;
14
+ providerVersion: z.ZodString;
15
+ operations: z.ZodRecord<z.ZodString, z.ZodBoolean>;
16
+ permissions: z.ZodRecord<z.ZodString, z.ZodEnum<{
17
+ unknown: "unknown";
18
+ granted: "granted";
19
+ denied: "denied";
20
+ not_required: "not_required";
21
+ }>>;
22
+ }, z.core.$strict>;
23
+ };
24
+ readonly permissions: {
25
+ readonly mutation: false;
26
+ readonly input: z.ZodObject<{
27
+ id: z.ZodOptional<z.ZodEnum<{
28
+ accessibility: "accessibility";
29
+ screenshots: "screenshots";
30
+ }>>;
31
+ }, z.core.$strict>;
32
+ readonly output: z.ZodObject<{
33
+ permissions: z.ZodRecord<z.ZodString, z.ZodEnum<{
34
+ unknown: "unknown";
35
+ granted: "granted";
36
+ denied: "denied";
37
+ not_required: "not_required";
38
+ }>>;
39
+ }, z.core.$strict>;
40
+ };
41
+ readonly listApps: {
42
+ readonly mutation: false;
43
+ readonly input: z.ZodObject<{}, z.core.$strict>;
44
+ readonly output: z.ZodObject<{
45
+ apps: z.ZodArray<z.ZodObject<{
46
+ id: z.ZodString;
47
+ name: z.ZodString;
48
+ bundleId: z.ZodNullable<z.ZodString>;
49
+ pid: z.ZodNumber;
50
+ isRunning: z.ZodBoolean;
51
+ }, z.core.$strict>>;
52
+ }, z.core.$strict>;
53
+ };
54
+ readonly listWindows: {
55
+ readonly mutation: false;
56
+ readonly input: z.ZodObject<{
57
+ app: z.ZodString;
58
+ }, z.core.$strict>;
59
+ readonly output: z.ZodObject<{
60
+ windows: z.ZodArray<z.ZodObject<{
61
+ id: z.ZodString;
62
+ appId: z.ZodString;
63
+ title: z.ZodString;
64
+ index: z.ZodNumber;
65
+ bounds: z.ZodObject<{
66
+ x: z.ZodNumber;
67
+ y: z.ZodNumber;
68
+ width: z.ZodNumber;
69
+ height: z.ZodNumber;
70
+ }, z.core.$strict>;
71
+ minimized: z.ZodBoolean;
72
+ }, z.core.$strict>>;
73
+ }, z.core.$strict>;
74
+ };
75
+ readonly getAppState: {
76
+ readonly mutation: false;
77
+ readonly input: z.ZodObject<{
78
+ captureScreenshot: z.ZodOptional<z.ZodBoolean>;
79
+ restoreWindow: z.ZodOptional<z.ZodBoolean>;
80
+ app: z.ZodString;
81
+ window: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
82
+ id: z.ZodString;
83
+ }, z.core.$strict>, z.ZodObject<{
84
+ index: z.ZodNumber;
85
+ }, z.core.$strict>]>>;
86
+ }, z.core.$strict>;
87
+ readonly output: z.ZodObject<{
88
+ context: z.ZodObject<{
89
+ brokerGeneration: z.ZodString;
90
+ providerGeneration: z.ZodString;
91
+ graphicalSessionId: z.ZodString;
92
+ process: z.ZodObject<{
93
+ pid: z.ZodNumber;
94
+ startedAt: z.ZodISODateTime;
95
+ executableId: z.ZodString;
96
+ }, z.core.$strict>;
97
+ appId: z.ZodString;
98
+ window: z.ZodObject<{
99
+ id: z.ZodString;
100
+ ownerPid: z.ZodNumber;
101
+ }, z.core.$strict>;
102
+ snapshotId: z.ZodString;
103
+ desktopEpoch: z.ZodNumber;
104
+ token: z.ZodString;
105
+ issuedAt: z.ZodISODateTime;
106
+ expiresAt: z.ZodISODateTime;
107
+ }, z.core.$strict>;
108
+ snapshot: z.ZodObject<{
109
+ id: z.ZodString;
110
+ app: z.ZodObject<{
111
+ id: z.ZodString;
112
+ name: z.ZodString;
113
+ bundleId: z.ZodNullable<z.ZodString>;
114
+ pid: z.ZodNumber;
115
+ isRunning: z.ZodBoolean;
116
+ }, z.core.$strict>;
117
+ window: z.ZodObject<{
118
+ id: z.ZodString;
119
+ appId: z.ZodString;
120
+ title: z.ZodString;
121
+ index: z.ZodNumber;
122
+ bounds: z.ZodObject<{
123
+ x: z.ZodNumber;
124
+ y: z.ZodNumber;
125
+ width: z.ZodNumber;
126
+ height: z.ZodNumber;
127
+ }, z.core.$strict>;
128
+ minimized: z.ZodBoolean;
129
+ }, z.core.$strict>;
130
+ treeText: z.ZodString;
131
+ elementCount: z.ZodNumber;
132
+ focusedElementRef: z.ZodNullable<z.ZodString>;
133
+ desktopEpoch: z.ZodNumber;
134
+ }, z.core.$strict>;
135
+ screenshot: z.ZodNullable<z.ZodObject<{
136
+ format: z.ZodLiteral<"png">;
137
+ width: z.ZodNumber;
138
+ height: z.ZodNumber;
139
+ scale: z.ZodNumber;
140
+ data: z.ZodOptional<z.ZodString>;
141
+ path: z.ZodOptional<z.ZodString>;
142
+ expiresAt: z.ZodOptional<z.ZodISODateTime>;
143
+ }, z.core.$strict>>;
144
+ issues: z.ZodDefault<z.ZodArray<z.ZodObject<{
145
+ code: z.ZodEnum<{
146
+ app_not_found: "app_not_found";
147
+ app_unavailable: "app_unavailable";
148
+ app_blocked: "app_blocked";
149
+ window_not_found: "window_not_found";
150
+ window_unavailable: "window_unavailable";
151
+ window_not_focused: "window_not_focused";
152
+ permission_denied: "permission_denied";
153
+ stale_target: "stale_target";
154
+ element_not_found: "element_not_found";
155
+ element_not_clickable: "element_not_clickable";
156
+ action_not_supported: "action_not_supported";
157
+ value_not_settable: "value_not_settable";
158
+ invalid_argument: "invalid_argument";
159
+ timeout: "timeout";
160
+ unsupported_capability: "unsupported_capability";
161
+ provider_unavailable: "provider_unavailable";
162
+ provider_crashed: "provider_crashed";
163
+ version_incompatible: "version_incompatible";
164
+ interaction_context_invalid: "interaction_context_invalid";
165
+ interaction_context_expired: "interaction_context_expired";
166
+ session_unavailable: "session_unavailable";
167
+ screenshot_failed: "screenshot_failed";
168
+ accessibility_error: "accessibility_error";
169
+ }>;
170
+ message: z.ZodString;
171
+ retry: z.ZodBoolean;
172
+ remediation: z.ZodString;
173
+ details: z.ZodOptional<z.ZodUnknown>;
174
+ }, z.core.$strict>>>;
175
+ }, z.core.$strict>;
176
+ };
177
+ readonly click: {
178
+ readonly mutation: true;
179
+ readonly input: z.ZodObject<{
180
+ captureScreenshot: z.ZodOptional<z.ZodBoolean>;
181
+ restoreWindow: z.ZodOptional<z.ZodBoolean>;
182
+ contextToken: z.ZodString;
183
+ app: z.ZodOptional<z.ZodString>;
184
+ target: z.ZodUnion<readonly [z.ZodObject<{
185
+ kind: z.ZodLiteral<"element">;
186
+ ref: z.ZodObject<{
187
+ brokerGeneration: z.ZodString;
188
+ providerGeneration: z.ZodString;
189
+ graphicalSessionId: z.ZodString;
190
+ process: z.ZodObject<{
191
+ pid: z.ZodNumber;
192
+ startedAt: z.ZodISODateTime;
193
+ executableId: z.ZodString;
194
+ }, z.core.$strict>;
195
+ appId: z.ZodString;
196
+ window: z.ZodObject<{
197
+ id: z.ZodString;
198
+ ownerPid: z.ZodNumber;
199
+ }, z.core.$strict>;
200
+ snapshotId: z.ZodString;
201
+ desktopEpoch: z.ZodNumber;
202
+ ref: z.ZodString;
203
+ kind: z.ZodEnum<{
204
+ window: "window";
205
+ app: "app";
206
+ element: "element";
207
+ }>;
208
+ contextToken: z.ZodString;
209
+ expiresAt: z.ZodISODateTime;
210
+ }, z.core.$strict>;
211
+ }, z.core.$strict>, z.ZodObject<{
212
+ kind: z.ZodLiteral<"element">;
213
+ elementIndex: z.ZodNumber;
214
+ }, z.core.$strict>, z.ZodObject<{
215
+ kind: z.ZodLiteral<"coordinate">;
216
+ window: z.ZodOptional<z.ZodObject<{
217
+ brokerGeneration: z.ZodString;
218
+ providerGeneration: z.ZodString;
219
+ graphicalSessionId: z.ZodString;
220
+ process: z.ZodObject<{
221
+ pid: z.ZodNumber;
222
+ startedAt: z.ZodISODateTime;
223
+ executableId: z.ZodString;
224
+ }, z.core.$strict>;
225
+ appId: z.ZodString;
226
+ window: z.ZodObject<{
227
+ id: z.ZodString;
228
+ ownerPid: z.ZodNumber;
229
+ }, z.core.$strict>;
230
+ snapshotId: z.ZodString;
231
+ desktopEpoch: z.ZodNumber;
232
+ ref: z.ZodString;
233
+ kind: z.ZodEnum<{
234
+ window: "window";
235
+ app: "app";
236
+ element: "element";
237
+ }>;
238
+ contextToken: z.ZodString;
239
+ expiresAt: z.ZodISODateTime;
240
+ }, z.core.$strict>>;
241
+ x: z.ZodNumber;
242
+ y: z.ZodNumber;
243
+ }, z.core.$strict>, z.ZodObject<{
244
+ kind: z.ZodLiteral<"context-window">;
245
+ }, z.core.$strict>]>;
246
+ clickCount: z.ZodOptional<z.ZodNumber>;
247
+ button: z.ZodOptional<z.ZodEnum<{
248
+ left: "left";
249
+ right: "right";
250
+ middle: "middle";
251
+ }>>;
252
+ modifiers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
253
+ Shift: "Shift";
254
+ Ctrl: "Ctrl";
255
+ Control: "Control";
256
+ Alt: "Alt";
257
+ Option: "Option";
258
+ Meta: "Meta";
259
+ Cmd: "Cmd";
260
+ Command: "Command";
261
+ Super: "Super";
262
+ Win: "Win";
263
+ CmdOrCtrl: "CmdOrCtrl";
264
+ CommandOrControl: "CommandOrControl";
265
+ shift: "shift";
266
+ ctrl: "ctrl";
267
+ control: "control";
268
+ alt: "alt";
269
+ option: "option";
270
+ meta: "meta";
271
+ cmd: "cmd";
272
+ command: "command";
273
+ super: "super";
274
+ win: "win";
275
+ cmdorctrl: "cmdorctrl";
276
+ commandorcontrol: "commandorcontrol";
277
+ }>>>;
278
+ }, z.core.$strict>;
279
+ readonly output: z.ZodObject<{
280
+ outcome: z.ZodDiscriminatedUnion<[z.ZodObject<{
281
+ state: z.ZodLiteral<"verified">;
282
+ evidence: z.ZodOptional<z.ZodUnknown>;
283
+ }, z.core.$strict>, z.ZodObject<{
284
+ state: z.ZodLiteral<"indeterminate">;
285
+ reason: z.ZodOptional<z.ZodString>;
286
+ }, z.core.$strict>, z.ZodObject<{
287
+ state: z.ZodLiteral<"failed">;
288
+ error: z.ZodOptional<z.ZodObject<{
289
+ code: z.ZodEnum<{
290
+ app_not_found: "app_not_found";
291
+ app_unavailable: "app_unavailable";
292
+ app_blocked: "app_blocked";
293
+ window_not_found: "window_not_found";
294
+ window_unavailable: "window_unavailable";
295
+ window_not_focused: "window_not_focused";
296
+ permission_denied: "permission_denied";
297
+ stale_target: "stale_target";
298
+ element_not_found: "element_not_found";
299
+ element_not_clickable: "element_not_clickable";
300
+ action_not_supported: "action_not_supported";
301
+ value_not_settable: "value_not_settable";
302
+ invalid_argument: "invalid_argument";
303
+ timeout: "timeout";
304
+ unsupported_capability: "unsupported_capability";
305
+ provider_unavailable: "provider_unavailable";
306
+ provider_crashed: "provider_crashed";
307
+ version_incompatible: "version_incompatible";
308
+ interaction_context_invalid: "interaction_context_invalid";
309
+ interaction_context_expired: "interaction_context_expired";
310
+ session_unavailable: "session_unavailable";
311
+ screenshot_failed: "screenshot_failed";
312
+ accessibility_error: "accessibility_error";
313
+ }>;
314
+ message: z.ZodString;
315
+ retry: z.ZodBoolean;
316
+ remediation: z.ZodString;
317
+ details: z.ZodOptional<z.ZodUnknown>;
318
+ }, z.core.$strict>>;
319
+ }, z.core.$strict>, z.ZodObject<{
320
+ state: z.ZodLiteral<"not_attempted">;
321
+ error: z.ZodOptional<z.ZodObject<{
322
+ code: z.ZodEnum<{
323
+ app_not_found: "app_not_found";
324
+ app_unavailable: "app_unavailable";
325
+ app_blocked: "app_blocked";
326
+ window_not_found: "window_not_found";
327
+ window_unavailable: "window_unavailable";
328
+ window_not_focused: "window_not_focused";
329
+ permission_denied: "permission_denied";
330
+ stale_target: "stale_target";
331
+ element_not_found: "element_not_found";
332
+ element_not_clickable: "element_not_clickable";
333
+ action_not_supported: "action_not_supported";
334
+ value_not_settable: "value_not_settable";
335
+ invalid_argument: "invalid_argument";
336
+ timeout: "timeout";
337
+ unsupported_capability: "unsupported_capability";
338
+ provider_unavailable: "provider_unavailable";
339
+ provider_crashed: "provider_crashed";
340
+ version_incompatible: "version_incompatible";
341
+ interaction_context_invalid: "interaction_context_invalid";
342
+ interaction_context_expired: "interaction_context_expired";
343
+ session_unavailable: "session_unavailable";
344
+ screenshot_failed: "screenshot_failed";
345
+ accessibility_error: "accessibility_error";
346
+ }>;
347
+ message: z.ZodString;
348
+ retry: z.ZodBoolean;
349
+ remediation: z.ZodString;
350
+ details: z.ZodOptional<z.ZodUnknown>;
351
+ }, z.core.$strict>>;
352
+ }, z.core.$strict>], "state">;
353
+ freshState: z.ZodOptional<z.ZodObject<{
354
+ context: z.ZodObject<{
355
+ brokerGeneration: z.ZodString;
356
+ providerGeneration: z.ZodString;
357
+ graphicalSessionId: z.ZodString;
358
+ process: z.ZodObject<{
359
+ pid: z.ZodNumber;
360
+ startedAt: z.ZodISODateTime;
361
+ executableId: z.ZodString;
362
+ }, z.core.$strict>;
363
+ appId: z.ZodString;
364
+ window: z.ZodObject<{
365
+ id: z.ZodString;
366
+ ownerPid: z.ZodNumber;
367
+ }, z.core.$strict>;
368
+ snapshotId: z.ZodString;
369
+ desktopEpoch: z.ZodNumber;
370
+ token: z.ZodString;
371
+ issuedAt: z.ZodISODateTime;
372
+ expiresAt: z.ZodISODateTime;
373
+ }, z.core.$strict>;
374
+ snapshot: z.ZodObject<{
375
+ id: z.ZodString;
376
+ app: z.ZodObject<{
377
+ id: z.ZodString;
378
+ name: z.ZodString;
379
+ bundleId: z.ZodNullable<z.ZodString>;
380
+ pid: z.ZodNumber;
381
+ isRunning: z.ZodBoolean;
382
+ }, z.core.$strict>;
383
+ window: z.ZodObject<{
384
+ id: z.ZodString;
385
+ appId: z.ZodString;
386
+ title: z.ZodString;
387
+ index: z.ZodNumber;
388
+ bounds: z.ZodObject<{
389
+ x: z.ZodNumber;
390
+ y: z.ZodNumber;
391
+ width: z.ZodNumber;
392
+ height: z.ZodNumber;
393
+ }, z.core.$strict>;
394
+ minimized: z.ZodBoolean;
395
+ }, z.core.$strict>;
396
+ treeText: z.ZodString;
397
+ elementCount: z.ZodNumber;
398
+ focusedElementRef: z.ZodNullable<z.ZodString>;
399
+ desktopEpoch: z.ZodNumber;
400
+ }, z.core.$strict>;
401
+ screenshot: z.ZodNullable<z.ZodObject<{
402
+ format: z.ZodLiteral<"png">;
403
+ width: z.ZodNumber;
404
+ height: z.ZodNumber;
405
+ scale: z.ZodNumber;
406
+ data: z.ZodOptional<z.ZodString>;
407
+ path: z.ZodOptional<z.ZodString>;
408
+ expiresAt: z.ZodOptional<z.ZodISODateTime>;
409
+ }, z.core.$strict>>;
410
+ issues: z.ZodDefault<z.ZodArray<z.ZodObject<{
411
+ code: z.ZodEnum<{
412
+ app_not_found: "app_not_found";
413
+ app_unavailable: "app_unavailable";
414
+ app_blocked: "app_blocked";
415
+ window_not_found: "window_not_found";
416
+ window_unavailable: "window_unavailable";
417
+ window_not_focused: "window_not_focused";
418
+ permission_denied: "permission_denied";
419
+ stale_target: "stale_target";
420
+ element_not_found: "element_not_found";
421
+ element_not_clickable: "element_not_clickable";
422
+ action_not_supported: "action_not_supported";
423
+ value_not_settable: "value_not_settable";
424
+ invalid_argument: "invalid_argument";
425
+ timeout: "timeout";
426
+ unsupported_capability: "unsupported_capability";
427
+ provider_unavailable: "provider_unavailable";
428
+ provider_crashed: "provider_crashed";
429
+ version_incompatible: "version_incompatible";
430
+ interaction_context_invalid: "interaction_context_invalid";
431
+ interaction_context_expired: "interaction_context_expired";
432
+ session_unavailable: "session_unavailable";
433
+ screenshot_failed: "screenshot_failed";
434
+ accessibility_error: "accessibility_error";
435
+ }>;
436
+ message: z.ZodString;
437
+ retry: z.ZodBoolean;
438
+ remediation: z.ZodString;
439
+ details: z.ZodOptional<z.ZodUnknown>;
440
+ }, z.core.$strict>>>;
441
+ }, z.core.$strict>>;
442
+ }, z.core.$strict>;
443
+ };
444
+ readonly performSecondaryAction: {
445
+ readonly mutation: true;
446
+ readonly input: z.ZodObject<{
447
+ action: z.ZodString;
448
+ captureScreenshot: z.ZodOptional<z.ZodBoolean>;
449
+ restoreWindow: z.ZodOptional<z.ZodBoolean>;
450
+ contextToken: z.ZodString;
451
+ app: z.ZodOptional<z.ZodString>;
452
+ target: z.ZodUnion<readonly [z.ZodObject<{
453
+ kind: z.ZodLiteral<"element">;
454
+ ref: z.ZodObject<{
455
+ brokerGeneration: z.ZodString;
456
+ providerGeneration: z.ZodString;
457
+ graphicalSessionId: z.ZodString;
458
+ process: z.ZodObject<{
459
+ pid: z.ZodNumber;
460
+ startedAt: z.ZodISODateTime;
461
+ executableId: z.ZodString;
462
+ }, z.core.$strict>;
463
+ appId: z.ZodString;
464
+ window: z.ZodObject<{
465
+ id: z.ZodString;
466
+ ownerPid: z.ZodNumber;
467
+ }, z.core.$strict>;
468
+ snapshotId: z.ZodString;
469
+ desktopEpoch: z.ZodNumber;
470
+ ref: z.ZodString;
471
+ kind: z.ZodEnum<{
472
+ window: "window";
473
+ app: "app";
474
+ element: "element";
475
+ }>;
476
+ contextToken: z.ZodString;
477
+ expiresAt: z.ZodISODateTime;
478
+ }, z.core.$strict>;
479
+ }, z.core.$strict>, z.ZodObject<{
480
+ kind: z.ZodLiteral<"element">;
481
+ elementIndex: z.ZodNumber;
482
+ }, z.core.$strict>]>;
483
+ }, z.core.$strict>;
484
+ readonly output: z.ZodObject<{
485
+ outcome: z.ZodDiscriminatedUnion<[z.ZodObject<{
486
+ state: z.ZodLiteral<"verified">;
487
+ evidence: z.ZodOptional<z.ZodUnknown>;
488
+ }, z.core.$strict>, z.ZodObject<{
489
+ state: z.ZodLiteral<"indeterminate">;
490
+ reason: z.ZodOptional<z.ZodString>;
491
+ }, z.core.$strict>, z.ZodObject<{
492
+ state: z.ZodLiteral<"failed">;
493
+ error: z.ZodOptional<z.ZodObject<{
494
+ code: z.ZodEnum<{
495
+ app_not_found: "app_not_found";
496
+ app_unavailable: "app_unavailable";
497
+ app_blocked: "app_blocked";
498
+ window_not_found: "window_not_found";
499
+ window_unavailable: "window_unavailable";
500
+ window_not_focused: "window_not_focused";
501
+ permission_denied: "permission_denied";
502
+ stale_target: "stale_target";
503
+ element_not_found: "element_not_found";
504
+ element_not_clickable: "element_not_clickable";
505
+ action_not_supported: "action_not_supported";
506
+ value_not_settable: "value_not_settable";
507
+ invalid_argument: "invalid_argument";
508
+ timeout: "timeout";
509
+ unsupported_capability: "unsupported_capability";
510
+ provider_unavailable: "provider_unavailable";
511
+ provider_crashed: "provider_crashed";
512
+ version_incompatible: "version_incompatible";
513
+ interaction_context_invalid: "interaction_context_invalid";
514
+ interaction_context_expired: "interaction_context_expired";
515
+ session_unavailable: "session_unavailable";
516
+ screenshot_failed: "screenshot_failed";
517
+ accessibility_error: "accessibility_error";
518
+ }>;
519
+ message: z.ZodString;
520
+ retry: z.ZodBoolean;
521
+ remediation: z.ZodString;
522
+ details: z.ZodOptional<z.ZodUnknown>;
523
+ }, z.core.$strict>>;
524
+ }, z.core.$strict>, z.ZodObject<{
525
+ state: z.ZodLiteral<"not_attempted">;
526
+ error: z.ZodOptional<z.ZodObject<{
527
+ code: z.ZodEnum<{
528
+ app_not_found: "app_not_found";
529
+ app_unavailable: "app_unavailable";
530
+ app_blocked: "app_blocked";
531
+ window_not_found: "window_not_found";
532
+ window_unavailable: "window_unavailable";
533
+ window_not_focused: "window_not_focused";
534
+ permission_denied: "permission_denied";
535
+ stale_target: "stale_target";
536
+ element_not_found: "element_not_found";
537
+ element_not_clickable: "element_not_clickable";
538
+ action_not_supported: "action_not_supported";
539
+ value_not_settable: "value_not_settable";
540
+ invalid_argument: "invalid_argument";
541
+ timeout: "timeout";
542
+ unsupported_capability: "unsupported_capability";
543
+ provider_unavailable: "provider_unavailable";
544
+ provider_crashed: "provider_crashed";
545
+ version_incompatible: "version_incompatible";
546
+ interaction_context_invalid: "interaction_context_invalid";
547
+ interaction_context_expired: "interaction_context_expired";
548
+ session_unavailable: "session_unavailable";
549
+ screenshot_failed: "screenshot_failed";
550
+ accessibility_error: "accessibility_error";
551
+ }>;
552
+ message: z.ZodString;
553
+ retry: z.ZodBoolean;
554
+ remediation: z.ZodString;
555
+ details: z.ZodOptional<z.ZodUnknown>;
556
+ }, z.core.$strict>>;
557
+ }, z.core.$strict>], "state">;
558
+ freshState: z.ZodOptional<z.ZodObject<{
559
+ context: z.ZodObject<{
560
+ brokerGeneration: z.ZodString;
561
+ providerGeneration: z.ZodString;
562
+ graphicalSessionId: z.ZodString;
563
+ process: z.ZodObject<{
564
+ pid: z.ZodNumber;
565
+ startedAt: z.ZodISODateTime;
566
+ executableId: z.ZodString;
567
+ }, z.core.$strict>;
568
+ appId: z.ZodString;
569
+ window: z.ZodObject<{
570
+ id: z.ZodString;
571
+ ownerPid: z.ZodNumber;
572
+ }, z.core.$strict>;
573
+ snapshotId: z.ZodString;
574
+ desktopEpoch: z.ZodNumber;
575
+ token: z.ZodString;
576
+ issuedAt: z.ZodISODateTime;
577
+ expiresAt: z.ZodISODateTime;
578
+ }, z.core.$strict>;
579
+ snapshot: z.ZodObject<{
580
+ id: z.ZodString;
581
+ app: z.ZodObject<{
582
+ id: z.ZodString;
583
+ name: z.ZodString;
584
+ bundleId: z.ZodNullable<z.ZodString>;
585
+ pid: z.ZodNumber;
586
+ isRunning: z.ZodBoolean;
587
+ }, z.core.$strict>;
588
+ window: z.ZodObject<{
589
+ id: z.ZodString;
590
+ appId: z.ZodString;
591
+ title: z.ZodString;
592
+ index: z.ZodNumber;
593
+ bounds: z.ZodObject<{
594
+ x: z.ZodNumber;
595
+ y: z.ZodNumber;
596
+ width: z.ZodNumber;
597
+ height: z.ZodNumber;
598
+ }, z.core.$strict>;
599
+ minimized: z.ZodBoolean;
600
+ }, z.core.$strict>;
601
+ treeText: z.ZodString;
602
+ elementCount: z.ZodNumber;
603
+ focusedElementRef: z.ZodNullable<z.ZodString>;
604
+ desktopEpoch: z.ZodNumber;
605
+ }, z.core.$strict>;
606
+ screenshot: z.ZodNullable<z.ZodObject<{
607
+ format: z.ZodLiteral<"png">;
608
+ width: z.ZodNumber;
609
+ height: z.ZodNumber;
610
+ scale: z.ZodNumber;
611
+ data: z.ZodOptional<z.ZodString>;
612
+ path: z.ZodOptional<z.ZodString>;
613
+ expiresAt: z.ZodOptional<z.ZodISODateTime>;
614
+ }, z.core.$strict>>;
615
+ issues: z.ZodDefault<z.ZodArray<z.ZodObject<{
616
+ code: z.ZodEnum<{
617
+ app_not_found: "app_not_found";
618
+ app_unavailable: "app_unavailable";
619
+ app_blocked: "app_blocked";
620
+ window_not_found: "window_not_found";
621
+ window_unavailable: "window_unavailable";
622
+ window_not_focused: "window_not_focused";
623
+ permission_denied: "permission_denied";
624
+ stale_target: "stale_target";
625
+ element_not_found: "element_not_found";
626
+ element_not_clickable: "element_not_clickable";
627
+ action_not_supported: "action_not_supported";
628
+ value_not_settable: "value_not_settable";
629
+ invalid_argument: "invalid_argument";
630
+ timeout: "timeout";
631
+ unsupported_capability: "unsupported_capability";
632
+ provider_unavailable: "provider_unavailable";
633
+ provider_crashed: "provider_crashed";
634
+ version_incompatible: "version_incompatible";
635
+ interaction_context_invalid: "interaction_context_invalid";
636
+ interaction_context_expired: "interaction_context_expired";
637
+ session_unavailable: "session_unavailable";
638
+ screenshot_failed: "screenshot_failed";
639
+ accessibility_error: "accessibility_error";
640
+ }>;
641
+ message: z.ZodString;
642
+ retry: z.ZodBoolean;
643
+ remediation: z.ZodString;
644
+ details: z.ZodOptional<z.ZodUnknown>;
645
+ }, z.core.$strict>>>;
646
+ }, z.core.$strict>>;
647
+ }, z.core.$strict>;
648
+ };
649
+ readonly scroll: {
650
+ readonly mutation: true;
651
+ readonly input: z.ZodObject<{
652
+ captureScreenshot: z.ZodOptional<z.ZodBoolean>;
653
+ restoreWindow: z.ZodOptional<z.ZodBoolean>;
654
+ contextToken: z.ZodString;
655
+ app: z.ZodOptional<z.ZodString>;
656
+ target: z.ZodUnion<readonly [z.ZodObject<{
657
+ kind: z.ZodLiteral<"element">;
658
+ ref: z.ZodObject<{
659
+ brokerGeneration: z.ZodString;
660
+ providerGeneration: z.ZodString;
661
+ graphicalSessionId: z.ZodString;
662
+ process: z.ZodObject<{
663
+ pid: z.ZodNumber;
664
+ startedAt: z.ZodISODateTime;
665
+ executableId: z.ZodString;
666
+ }, z.core.$strict>;
667
+ appId: z.ZodString;
668
+ window: z.ZodObject<{
669
+ id: z.ZodString;
670
+ ownerPid: z.ZodNumber;
671
+ }, z.core.$strict>;
672
+ snapshotId: z.ZodString;
673
+ desktopEpoch: z.ZodNumber;
674
+ ref: z.ZodString;
675
+ kind: z.ZodEnum<{
676
+ window: "window";
677
+ app: "app";
678
+ element: "element";
679
+ }>;
680
+ contextToken: z.ZodString;
681
+ expiresAt: z.ZodISODateTime;
682
+ }, z.core.$strict>;
683
+ }, z.core.$strict>, z.ZodObject<{
684
+ kind: z.ZodLiteral<"element">;
685
+ elementIndex: z.ZodNumber;
686
+ }, z.core.$strict>, z.ZodObject<{
687
+ kind: z.ZodLiteral<"coordinate">;
688
+ window: z.ZodOptional<z.ZodObject<{
689
+ brokerGeneration: z.ZodString;
690
+ providerGeneration: z.ZodString;
691
+ graphicalSessionId: z.ZodString;
692
+ process: z.ZodObject<{
693
+ pid: z.ZodNumber;
694
+ startedAt: z.ZodISODateTime;
695
+ executableId: z.ZodString;
696
+ }, z.core.$strict>;
697
+ appId: z.ZodString;
698
+ window: z.ZodObject<{
699
+ id: z.ZodString;
700
+ ownerPid: z.ZodNumber;
701
+ }, z.core.$strict>;
702
+ snapshotId: z.ZodString;
703
+ desktopEpoch: z.ZodNumber;
704
+ ref: z.ZodString;
705
+ kind: z.ZodEnum<{
706
+ window: "window";
707
+ app: "app";
708
+ element: "element";
709
+ }>;
710
+ contextToken: z.ZodString;
711
+ expiresAt: z.ZodISODateTime;
712
+ }, z.core.$strict>>;
713
+ x: z.ZodNumber;
714
+ y: z.ZodNumber;
715
+ }, z.core.$strict>, z.ZodObject<{
716
+ kind: z.ZodLiteral<"context-window">;
717
+ }, z.core.$strict>]>;
718
+ direction: z.ZodEnum<{
719
+ left: "left";
720
+ right: "right";
721
+ up: "up";
722
+ down: "down";
723
+ }>;
724
+ pages: z.ZodOptional<z.ZodNumber>;
725
+ }, z.core.$strict>;
726
+ readonly output: z.ZodObject<{
727
+ outcome: z.ZodDiscriminatedUnion<[z.ZodObject<{
728
+ state: z.ZodLiteral<"verified">;
729
+ evidence: z.ZodOptional<z.ZodUnknown>;
730
+ }, z.core.$strict>, z.ZodObject<{
731
+ state: z.ZodLiteral<"indeterminate">;
732
+ reason: z.ZodOptional<z.ZodString>;
733
+ }, z.core.$strict>, z.ZodObject<{
734
+ state: z.ZodLiteral<"failed">;
735
+ error: z.ZodOptional<z.ZodObject<{
736
+ code: z.ZodEnum<{
737
+ app_not_found: "app_not_found";
738
+ app_unavailable: "app_unavailable";
739
+ app_blocked: "app_blocked";
740
+ window_not_found: "window_not_found";
741
+ window_unavailable: "window_unavailable";
742
+ window_not_focused: "window_not_focused";
743
+ permission_denied: "permission_denied";
744
+ stale_target: "stale_target";
745
+ element_not_found: "element_not_found";
746
+ element_not_clickable: "element_not_clickable";
747
+ action_not_supported: "action_not_supported";
748
+ value_not_settable: "value_not_settable";
749
+ invalid_argument: "invalid_argument";
750
+ timeout: "timeout";
751
+ unsupported_capability: "unsupported_capability";
752
+ provider_unavailable: "provider_unavailable";
753
+ provider_crashed: "provider_crashed";
754
+ version_incompatible: "version_incompatible";
755
+ interaction_context_invalid: "interaction_context_invalid";
756
+ interaction_context_expired: "interaction_context_expired";
757
+ session_unavailable: "session_unavailable";
758
+ screenshot_failed: "screenshot_failed";
759
+ accessibility_error: "accessibility_error";
760
+ }>;
761
+ message: z.ZodString;
762
+ retry: z.ZodBoolean;
763
+ remediation: z.ZodString;
764
+ details: z.ZodOptional<z.ZodUnknown>;
765
+ }, z.core.$strict>>;
766
+ }, z.core.$strict>, z.ZodObject<{
767
+ state: z.ZodLiteral<"not_attempted">;
768
+ error: z.ZodOptional<z.ZodObject<{
769
+ code: z.ZodEnum<{
770
+ app_not_found: "app_not_found";
771
+ app_unavailable: "app_unavailable";
772
+ app_blocked: "app_blocked";
773
+ window_not_found: "window_not_found";
774
+ window_unavailable: "window_unavailable";
775
+ window_not_focused: "window_not_focused";
776
+ permission_denied: "permission_denied";
777
+ stale_target: "stale_target";
778
+ element_not_found: "element_not_found";
779
+ element_not_clickable: "element_not_clickable";
780
+ action_not_supported: "action_not_supported";
781
+ value_not_settable: "value_not_settable";
782
+ invalid_argument: "invalid_argument";
783
+ timeout: "timeout";
784
+ unsupported_capability: "unsupported_capability";
785
+ provider_unavailable: "provider_unavailable";
786
+ provider_crashed: "provider_crashed";
787
+ version_incompatible: "version_incompatible";
788
+ interaction_context_invalid: "interaction_context_invalid";
789
+ interaction_context_expired: "interaction_context_expired";
790
+ session_unavailable: "session_unavailable";
791
+ screenshot_failed: "screenshot_failed";
792
+ accessibility_error: "accessibility_error";
793
+ }>;
794
+ message: z.ZodString;
795
+ retry: z.ZodBoolean;
796
+ remediation: z.ZodString;
797
+ details: z.ZodOptional<z.ZodUnknown>;
798
+ }, z.core.$strict>>;
799
+ }, z.core.$strict>], "state">;
800
+ freshState: z.ZodOptional<z.ZodObject<{
801
+ context: z.ZodObject<{
802
+ brokerGeneration: z.ZodString;
803
+ providerGeneration: z.ZodString;
804
+ graphicalSessionId: z.ZodString;
805
+ process: z.ZodObject<{
806
+ pid: z.ZodNumber;
807
+ startedAt: z.ZodISODateTime;
808
+ executableId: z.ZodString;
809
+ }, z.core.$strict>;
810
+ appId: z.ZodString;
811
+ window: z.ZodObject<{
812
+ id: z.ZodString;
813
+ ownerPid: z.ZodNumber;
814
+ }, z.core.$strict>;
815
+ snapshotId: z.ZodString;
816
+ desktopEpoch: z.ZodNumber;
817
+ token: z.ZodString;
818
+ issuedAt: z.ZodISODateTime;
819
+ expiresAt: z.ZodISODateTime;
820
+ }, z.core.$strict>;
821
+ snapshot: z.ZodObject<{
822
+ id: z.ZodString;
823
+ app: z.ZodObject<{
824
+ id: z.ZodString;
825
+ name: z.ZodString;
826
+ bundleId: z.ZodNullable<z.ZodString>;
827
+ pid: z.ZodNumber;
828
+ isRunning: z.ZodBoolean;
829
+ }, z.core.$strict>;
830
+ window: z.ZodObject<{
831
+ id: z.ZodString;
832
+ appId: z.ZodString;
833
+ title: z.ZodString;
834
+ index: z.ZodNumber;
835
+ bounds: z.ZodObject<{
836
+ x: z.ZodNumber;
837
+ y: z.ZodNumber;
838
+ width: z.ZodNumber;
839
+ height: z.ZodNumber;
840
+ }, z.core.$strict>;
841
+ minimized: z.ZodBoolean;
842
+ }, z.core.$strict>;
843
+ treeText: z.ZodString;
844
+ elementCount: z.ZodNumber;
845
+ focusedElementRef: z.ZodNullable<z.ZodString>;
846
+ desktopEpoch: z.ZodNumber;
847
+ }, z.core.$strict>;
848
+ screenshot: z.ZodNullable<z.ZodObject<{
849
+ format: z.ZodLiteral<"png">;
850
+ width: z.ZodNumber;
851
+ height: z.ZodNumber;
852
+ scale: z.ZodNumber;
853
+ data: z.ZodOptional<z.ZodString>;
854
+ path: z.ZodOptional<z.ZodString>;
855
+ expiresAt: z.ZodOptional<z.ZodISODateTime>;
856
+ }, z.core.$strict>>;
857
+ issues: z.ZodDefault<z.ZodArray<z.ZodObject<{
858
+ code: z.ZodEnum<{
859
+ app_not_found: "app_not_found";
860
+ app_unavailable: "app_unavailable";
861
+ app_blocked: "app_blocked";
862
+ window_not_found: "window_not_found";
863
+ window_unavailable: "window_unavailable";
864
+ window_not_focused: "window_not_focused";
865
+ permission_denied: "permission_denied";
866
+ stale_target: "stale_target";
867
+ element_not_found: "element_not_found";
868
+ element_not_clickable: "element_not_clickable";
869
+ action_not_supported: "action_not_supported";
870
+ value_not_settable: "value_not_settable";
871
+ invalid_argument: "invalid_argument";
872
+ timeout: "timeout";
873
+ unsupported_capability: "unsupported_capability";
874
+ provider_unavailable: "provider_unavailable";
875
+ provider_crashed: "provider_crashed";
876
+ version_incompatible: "version_incompatible";
877
+ interaction_context_invalid: "interaction_context_invalid";
878
+ interaction_context_expired: "interaction_context_expired";
879
+ session_unavailable: "session_unavailable";
880
+ screenshot_failed: "screenshot_failed";
881
+ accessibility_error: "accessibility_error";
882
+ }>;
883
+ message: z.ZodString;
884
+ retry: z.ZodBoolean;
885
+ remediation: z.ZodString;
886
+ details: z.ZodOptional<z.ZodUnknown>;
887
+ }, z.core.$strict>>>;
888
+ }, z.core.$strict>>;
889
+ }, z.core.$strict>;
890
+ };
891
+ readonly drag: {
892
+ readonly mutation: true;
893
+ readonly input: z.ZodObject<{
894
+ captureScreenshot: z.ZodOptional<z.ZodBoolean>;
895
+ restoreWindow: z.ZodOptional<z.ZodBoolean>;
896
+ contextToken: z.ZodString;
897
+ app: z.ZodOptional<z.ZodString>;
898
+ from: z.ZodUnion<readonly [z.ZodObject<{
899
+ kind: z.ZodLiteral<"element">;
900
+ ref: z.ZodObject<{
901
+ brokerGeneration: z.ZodString;
902
+ providerGeneration: z.ZodString;
903
+ graphicalSessionId: z.ZodString;
904
+ process: z.ZodObject<{
905
+ pid: z.ZodNumber;
906
+ startedAt: z.ZodISODateTime;
907
+ executableId: z.ZodString;
908
+ }, z.core.$strict>;
909
+ appId: z.ZodString;
910
+ window: z.ZodObject<{
911
+ id: z.ZodString;
912
+ ownerPid: z.ZodNumber;
913
+ }, z.core.$strict>;
914
+ snapshotId: z.ZodString;
915
+ desktopEpoch: z.ZodNumber;
916
+ ref: z.ZodString;
917
+ kind: z.ZodEnum<{
918
+ window: "window";
919
+ app: "app";
920
+ element: "element";
921
+ }>;
922
+ contextToken: z.ZodString;
923
+ expiresAt: z.ZodISODateTime;
924
+ }, z.core.$strict>;
925
+ }, z.core.$strict>, z.ZodObject<{
926
+ kind: z.ZodLiteral<"element">;
927
+ elementIndex: z.ZodNumber;
928
+ }, z.core.$strict>, z.ZodObject<{
929
+ kind: z.ZodLiteral<"coordinate">;
930
+ window: z.ZodOptional<z.ZodObject<{
931
+ brokerGeneration: z.ZodString;
932
+ providerGeneration: z.ZodString;
933
+ graphicalSessionId: z.ZodString;
934
+ process: z.ZodObject<{
935
+ pid: z.ZodNumber;
936
+ startedAt: z.ZodISODateTime;
937
+ executableId: z.ZodString;
938
+ }, z.core.$strict>;
939
+ appId: z.ZodString;
940
+ window: z.ZodObject<{
941
+ id: z.ZodString;
942
+ ownerPid: z.ZodNumber;
943
+ }, z.core.$strict>;
944
+ snapshotId: z.ZodString;
945
+ desktopEpoch: z.ZodNumber;
946
+ ref: z.ZodString;
947
+ kind: z.ZodEnum<{
948
+ window: "window";
949
+ app: "app";
950
+ element: "element";
951
+ }>;
952
+ contextToken: z.ZodString;
953
+ expiresAt: z.ZodISODateTime;
954
+ }, z.core.$strict>>;
955
+ x: z.ZodNumber;
956
+ y: z.ZodNumber;
957
+ }, z.core.$strict>, z.ZodObject<{
958
+ kind: z.ZodLiteral<"context-window">;
959
+ }, z.core.$strict>]>;
960
+ to: z.ZodUnion<readonly [z.ZodObject<{
961
+ kind: z.ZodLiteral<"element">;
962
+ ref: z.ZodObject<{
963
+ brokerGeneration: z.ZodString;
964
+ providerGeneration: z.ZodString;
965
+ graphicalSessionId: z.ZodString;
966
+ process: z.ZodObject<{
967
+ pid: z.ZodNumber;
968
+ startedAt: z.ZodISODateTime;
969
+ executableId: z.ZodString;
970
+ }, z.core.$strict>;
971
+ appId: z.ZodString;
972
+ window: z.ZodObject<{
973
+ id: z.ZodString;
974
+ ownerPid: z.ZodNumber;
975
+ }, z.core.$strict>;
976
+ snapshotId: z.ZodString;
977
+ desktopEpoch: z.ZodNumber;
978
+ ref: z.ZodString;
979
+ kind: z.ZodEnum<{
980
+ window: "window";
981
+ app: "app";
982
+ element: "element";
983
+ }>;
984
+ contextToken: z.ZodString;
985
+ expiresAt: z.ZodISODateTime;
986
+ }, z.core.$strict>;
987
+ }, z.core.$strict>, z.ZodObject<{
988
+ kind: z.ZodLiteral<"element">;
989
+ elementIndex: z.ZodNumber;
990
+ }, z.core.$strict>, z.ZodObject<{
991
+ kind: z.ZodLiteral<"coordinate">;
992
+ window: z.ZodOptional<z.ZodObject<{
993
+ brokerGeneration: z.ZodString;
994
+ providerGeneration: z.ZodString;
995
+ graphicalSessionId: z.ZodString;
996
+ process: z.ZodObject<{
997
+ pid: z.ZodNumber;
998
+ startedAt: z.ZodISODateTime;
999
+ executableId: z.ZodString;
1000
+ }, z.core.$strict>;
1001
+ appId: z.ZodString;
1002
+ window: z.ZodObject<{
1003
+ id: z.ZodString;
1004
+ ownerPid: z.ZodNumber;
1005
+ }, z.core.$strict>;
1006
+ snapshotId: z.ZodString;
1007
+ desktopEpoch: z.ZodNumber;
1008
+ ref: z.ZodString;
1009
+ kind: z.ZodEnum<{
1010
+ window: "window";
1011
+ app: "app";
1012
+ element: "element";
1013
+ }>;
1014
+ contextToken: z.ZodString;
1015
+ expiresAt: z.ZodISODateTime;
1016
+ }, z.core.$strict>>;
1017
+ x: z.ZodNumber;
1018
+ y: z.ZodNumber;
1019
+ }, z.core.$strict>, z.ZodObject<{
1020
+ kind: z.ZodLiteral<"context-window">;
1021
+ }, z.core.$strict>]>;
1022
+ durationMs: z.ZodOptional<z.ZodNumber>;
1023
+ }, z.core.$strict>;
1024
+ readonly output: z.ZodObject<{
1025
+ outcome: z.ZodDiscriminatedUnion<[z.ZodObject<{
1026
+ state: z.ZodLiteral<"verified">;
1027
+ evidence: z.ZodOptional<z.ZodUnknown>;
1028
+ }, z.core.$strict>, z.ZodObject<{
1029
+ state: z.ZodLiteral<"indeterminate">;
1030
+ reason: z.ZodOptional<z.ZodString>;
1031
+ }, z.core.$strict>, z.ZodObject<{
1032
+ state: z.ZodLiteral<"failed">;
1033
+ error: z.ZodOptional<z.ZodObject<{
1034
+ code: z.ZodEnum<{
1035
+ app_not_found: "app_not_found";
1036
+ app_unavailable: "app_unavailable";
1037
+ app_blocked: "app_blocked";
1038
+ window_not_found: "window_not_found";
1039
+ window_unavailable: "window_unavailable";
1040
+ window_not_focused: "window_not_focused";
1041
+ permission_denied: "permission_denied";
1042
+ stale_target: "stale_target";
1043
+ element_not_found: "element_not_found";
1044
+ element_not_clickable: "element_not_clickable";
1045
+ action_not_supported: "action_not_supported";
1046
+ value_not_settable: "value_not_settable";
1047
+ invalid_argument: "invalid_argument";
1048
+ timeout: "timeout";
1049
+ unsupported_capability: "unsupported_capability";
1050
+ provider_unavailable: "provider_unavailable";
1051
+ provider_crashed: "provider_crashed";
1052
+ version_incompatible: "version_incompatible";
1053
+ interaction_context_invalid: "interaction_context_invalid";
1054
+ interaction_context_expired: "interaction_context_expired";
1055
+ session_unavailable: "session_unavailable";
1056
+ screenshot_failed: "screenshot_failed";
1057
+ accessibility_error: "accessibility_error";
1058
+ }>;
1059
+ message: z.ZodString;
1060
+ retry: z.ZodBoolean;
1061
+ remediation: z.ZodString;
1062
+ details: z.ZodOptional<z.ZodUnknown>;
1063
+ }, z.core.$strict>>;
1064
+ }, z.core.$strict>, z.ZodObject<{
1065
+ state: z.ZodLiteral<"not_attempted">;
1066
+ error: z.ZodOptional<z.ZodObject<{
1067
+ code: z.ZodEnum<{
1068
+ app_not_found: "app_not_found";
1069
+ app_unavailable: "app_unavailable";
1070
+ app_blocked: "app_blocked";
1071
+ window_not_found: "window_not_found";
1072
+ window_unavailable: "window_unavailable";
1073
+ window_not_focused: "window_not_focused";
1074
+ permission_denied: "permission_denied";
1075
+ stale_target: "stale_target";
1076
+ element_not_found: "element_not_found";
1077
+ element_not_clickable: "element_not_clickable";
1078
+ action_not_supported: "action_not_supported";
1079
+ value_not_settable: "value_not_settable";
1080
+ invalid_argument: "invalid_argument";
1081
+ timeout: "timeout";
1082
+ unsupported_capability: "unsupported_capability";
1083
+ provider_unavailable: "provider_unavailable";
1084
+ provider_crashed: "provider_crashed";
1085
+ version_incompatible: "version_incompatible";
1086
+ interaction_context_invalid: "interaction_context_invalid";
1087
+ interaction_context_expired: "interaction_context_expired";
1088
+ session_unavailable: "session_unavailable";
1089
+ screenshot_failed: "screenshot_failed";
1090
+ accessibility_error: "accessibility_error";
1091
+ }>;
1092
+ message: z.ZodString;
1093
+ retry: z.ZodBoolean;
1094
+ remediation: z.ZodString;
1095
+ details: z.ZodOptional<z.ZodUnknown>;
1096
+ }, z.core.$strict>>;
1097
+ }, z.core.$strict>], "state">;
1098
+ freshState: z.ZodOptional<z.ZodObject<{
1099
+ context: z.ZodObject<{
1100
+ brokerGeneration: z.ZodString;
1101
+ providerGeneration: z.ZodString;
1102
+ graphicalSessionId: z.ZodString;
1103
+ process: z.ZodObject<{
1104
+ pid: z.ZodNumber;
1105
+ startedAt: z.ZodISODateTime;
1106
+ executableId: z.ZodString;
1107
+ }, z.core.$strict>;
1108
+ appId: z.ZodString;
1109
+ window: z.ZodObject<{
1110
+ id: z.ZodString;
1111
+ ownerPid: z.ZodNumber;
1112
+ }, z.core.$strict>;
1113
+ snapshotId: z.ZodString;
1114
+ desktopEpoch: z.ZodNumber;
1115
+ token: z.ZodString;
1116
+ issuedAt: z.ZodISODateTime;
1117
+ expiresAt: z.ZodISODateTime;
1118
+ }, z.core.$strict>;
1119
+ snapshot: z.ZodObject<{
1120
+ id: z.ZodString;
1121
+ app: z.ZodObject<{
1122
+ id: z.ZodString;
1123
+ name: z.ZodString;
1124
+ bundleId: z.ZodNullable<z.ZodString>;
1125
+ pid: z.ZodNumber;
1126
+ isRunning: z.ZodBoolean;
1127
+ }, z.core.$strict>;
1128
+ window: z.ZodObject<{
1129
+ id: z.ZodString;
1130
+ appId: z.ZodString;
1131
+ title: z.ZodString;
1132
+ index: z.ZodNumber;
1133
+ bounds: z.ZodObject<{
1134
+ x: z.ZodNumber;
1135
+ y: z.ZodNumber;
1136
+ width: z.ZodNumber;
1137
+ height: z.ZodNumber;
1138
+ }, z.core.$strict>;
1139
+ minimized: z.ZodBoolean;
1140
+ }, z.core.$strict>;
1141
+ treeText: z.ZodString;
1142
+ elementCount: z.ZodNumber;
1143
+ focusedElementRef: z.ZodNullable<z.ZodString>;
1144
+ desktopEpoch: z.ZodNumber;
1145
+ }, z.core.$strict>;
1146
+ screenshot: z.ZodNullable<z.ZodObject<{
1147
+ format: z.ZodLiteral<"png">;
1148
+ width: z.ZodNumber;
1149
+ height: z.ZodNumber;
1150
+ scale: z.ZodNumber;
1151
+ data: z.ZodOptional<z.ZodString>;
1152
+ path: z.ZodOptional<z.ZodString>;
1153
+ expiresAt: z.ZodOptional<z.ZodISODateTime>;
1154
+ }, z.core.$strict>>;
1155
+ issues: z.ZodDefault<z.ZodArray<z.ZodObject<{
1156
+ code: z.ZodEnum<{
1157
+ app_not_found: "app_not_found";
1158
+ app_unavailable: "app_unavailable";
1159
+ app_blocked: "app_blocked";
1160
+ window_not_found: "window_not_found";
1161
+ window_unavailable: "window_unavailable";
1162
+ window_not_focused: "window_not_focused";
1163
+ permission_denied: "permission_denied";
1164
+ stale_target: "stale_target";
1165
+ element_not_found: "element_not_found";
1166
+ element_not_clickable: "element_not_clickable";
1167
+ action_not_supported: "action_not_supported";
1168
+ value_not_settable: "value_not_settable";
1169
+ invalid_argument: "invalid_argument";
1170
+ timeout: "timeout";
1171
+ unsupported_capability: "unsupported_capability";
1172
+ provider_unavailable: "provider_unavailable";
1173
+ provider_crashed: "provider_crashed";
1174
+ version_incompatible: "version_incompatible";
1175
+ interaction_context_invalid: "interaction_context_invalid";
1176
+ interaction_context_expired: "interaction_context_expired";
1177
+ session_unavailable: "session_unavailable";
1178
+ screenshot_failed: "screenshot_failed";
1179
+ accessibility_error: "accessibility_error";
1180
+ }>;
1181
+ message: z.ZodString;
1182
+ retry: z.ZodBoolean;
1183
+ remediation: z.ZodString;
1184
+ details: z.ZodOptional<z.ZodUnknown>;
1185
+ }, z.core.$strict>>>;
1186
+ }, z.core.$strict>>;
1187
+ }, z.core.$strict>;
1188
+ };
1189
+ readonly typeText: {
1190
+ readonly mutation: true;
1191
+ readonly input: z.ZodObject<{
1192
+ text: z.ZodString;
1193
+ captureScreenshot: z.ZodOptional<z.ZodBoolean>;
1194
+ restoreWindow: z.ZodOptional<z.ZodBoolean>;
1195
+ contextToken: z.ZodString;
1196
+ app: z.ZodOptional<z.ZodString>;
1197
+ target: z.ZodObject<{
1198
+ kind: z.ZodLiteral<"context-window">;
1199
+ }, z.core.$strict>;
1200
+ }, z.core.$strict>;
1201
+ readonly output: z.ZodObject<{
1202
+ outcome: z.ZodDiscriminatedUnion<[z.ZodObject<{
1203
+ state: z.ZodLiteral<"verified">;
1204
+ evidence: z.ZodOptional<z.ZodUnknown>;
1205
+ }, z.core.$strict>, z.ZodObject<{
1206
+ state: z.ZodLiteral<"indeterminate">;
1207
+ reason: z.ZodOptional<z.ZodString>;
1208
+ }, z.core.$strict>, z.ZodObject<{
1209
+ state: z.ZodLiteral<"failed">;
1210
+ error: z.ZodOptional<z.ZodObject<{
1211
+ code: z.ZodEnum<{
1212
+ app_not_found: "app_not_found";
1213
+ app_unavailable: "app_unavailable";
1214
+ app_blocked: "app_blocked";
1215
+ window_not_found: "window_not_found";
1216
+ window_unavailable: "window_unavailable";
1217
+ window_not_focused: "window_not_focused";
1218
+ permission_denied: "permission_denied";
1219
+ stale_target: "stale_target";
1220
+ element_not_found: "element_not_found";
1221
+ element_not_clickable: "element_not_clickable";
1222
+ action_not_supported: "action_not_supported";
1223
+ value_not_settable: "value_not_settable";
1224
+ invalid_argument: "invalid_argument";
1225
+ timeout: "timeout";
1226
+ unsupported_capability: "unsupported_capability";
1227
+ provider_unavailable: "provider_unavailable";
1228
+ provider_crashed: "provider_crashed";
1229
+ version_incompatible: "version_incompatible";
1230
+ interaction_context_invalid: "interaction_context_invalid";
1231
+ interaction_context_expired: "interaction_context_expired";
1232
+ session_unavailable: "session_unavailable";
1233
+ screenshot_failed: "screenshot_failed";
1234
+ accessibility_error: "accessibility_error";
1235
+ }>;
1236
+ message: z.ZodString;
1237
+ retry: z.ZodBoolean;
1238
+ remediation: z.ZodString;
1239
+ details: z.ZodOptional<z.ZodUnknown>;
1240
+ }, z.core.$strict>>;
1241
+ }, z.core.$strict>, z.ZodObject<{
1242
+ state: z.ZodLiteral<"not_attempted">;
1243
+ error: z.ZodOptional<z.ZodObject<{
1244
+ code: z.ZodEnum<{
1245
+ app_not_found: "app_not_found";
1246
+ app_unavailable: "app_unavailable";
1247
+ app_blocked: "app_blocked";
1248
+ window_not_found: "window_not_found";
1249
+ window_unavailable: "window_unavailable";
1250
+ window_not_focused: "window_not_focused";
1251
+ permission_denied: "permission_denied";
1252
+ stale_target: "stale_target";
1253
+ element_not_found: "element_not_found";
1254
+ element_not_clickable: "element_not_clickable";
1255
+ action_not_supported: "action_not_supported";
1256
+ value_not_settable: "value_not_settable";
1257
+ invalid_argument: "invalid_argument";
1258
+ timeout: "timeout";
1259
+ unsupported_capability: "unsupported_capability";
1260
+ provider_unavailable: "provider_unavailable";
1261
+ provider_crashed: "provider_crashed";
1262
+ version_incompatible: "version_incompatible";
1263
+ interaction_context_invalid: "interaction_context_invalid";
1264
+ interaction_context_expired: "interaction_context_expired";
1265
+ session_unavailable: "session_unavailable";
1266
+ screenshot_failed: "screenshot_failed";
1267
+ accessibility_error: "accessibility_error";
1268
+ }>;
1269
+ message: z.ZodString;
1270
+ retry: z.ZodBoolean;
1271
+ remediation: z.ZodString;
1272
+ details: z.ZodOptional<z.ZodUnknown>;
1273
+ }, z.core.$strict>>;
1274
+ }, z.core.$strict>], "state">;
1275
+ freshState: z.ZodOptional<z.ZodObject<{
1276
+ context: z.ZodObject<{
1277
+ brokerGeneration: z.ZodString;
1278
+ providerGeneration: z.ZodString;
1279
+ graphicalSessionId: z.ZodString;
1280
+ process: z.ZodObject<{
1281
+ pid: z.ZodNumber;
1282
+ startedAt: z.ZodISODateTime;
1283
+ executableId: z.ZodString;
1284
+ }, z.core.$strict>;
1285
+ appId: z.ZodString;
1286
+ window: z.ZodObject<{
1287
+ id: z.ZodString;
1288
+ ownerPid: z.ZodNumber;
1289
+ }, z.core.$strict>;
1290
+ snapshotId: z.ZodString;
1291
+ desktopEpoch: z.ZodNumber;
1292
+ token: z.ZodString;
1293
+ issuedAt: z.ZodISODateTime;
1294
+ expiresAt: z.ZodISODateTime;
1295
+ }, z.core.$strict>;
1296
+ snapshot: z.ZodObject<{
1297
+ id: z.ZodString;
1298
+ app: z.ZodObject<{
1299
+ id: z.ZodString;
1300
+ name: z.ZodString;
1301
+ bundleId: z.ZodNullable<z.ZodString>;
1302
+ pid: z.ZodNumber;
1303
+ isRunning: z.ZodBoolean;
1304
+ }, z.core.$strict>;
1305
+ window: z.ZodObject<{
1306
+ id: z.ZodString;
1307
+ appId: z.ZodString;
1308
+ title: z.ZodString;
1309
+ index: z.ZodNumber;
1310
+ bounds: z.ZodObject<{
1311
+ x: z.ZodNumber;
1312
+ y: z.ZodNumber;
1313
+ width: z.ZodNumber;
1314
+ height: z.ZodNumber;
1315
+ }, z.core.$strict>;
1316
+ minimized: z.ZodBoolean;
1317
+ }, z.core.$strict>;
1318
+ treeText: z.ZodString;
1319
+ elementCount: z.ZodNumber;
1320
+ focusedElementRef: z.ZodNullable<z.ZodString>;
1321
+ desktopEpoch: z.ZodNumber;
1322
+ }, z.core.$strict>;
1323
+ screenshot: z.ZodNullable<z.ZodObject<{
1324
+ format: z.ZodLiteral<"png">;
1325
+ width: z.ZodNumber;
1326
+ height: z.ZodNumber;
1327
+ scale: z.ZodNumber;
1328
+ data: z.ZodOptional<z.ZodString>;
1329
+ path: z.ZodOptional<z.ZodString>;
1330
+ expiresAt: z.ZodOptional<z.ZodISODateTime>;
1331
+ }, z.core.$strict>>;
1332
+ issues: z.ZodDefault<z.ZodArray<z.ZodObject<{
1333
+ code: z.ZodEnum<{
1334
+ app_not_found: "app_not_found";
1335
+ app_unavailable: "app_unavailable";
1336
+ app_blocked: "app_blocked";
1337
+ window_not_found: "window_not_found";
1338
+ window_unavailable: "window_unavailable";
1339
+ window_not_focused: "window_not_focused";
1340
+ permission_denied: "permission_denied";
1341
+ stale_target: "stale_target";
1342
+ element_not_found: "element_not_found";
1343
+ element_not_clickable: "element_not_clickable";
1344
+ action_not_supported: "action_not_supported";
1345
+ value_not_settable: "value_not_settable";
1346
+ invalid_argument: "invalid_argument";
1347
+ timeout: "timeout";
1348
+ unsupported_capability: "unsupported_capability";
1349
+ provider_unavailable: "provider_unavailable";
1350
+ provider_crashed: "provider_crashed";
1351
+ version_incompatible: "version_incompatible";
1352
+ interaction_context_invalid: "interaction_context_invalid";
1353
+ interaction_context_expired: "interaction_context_expired";
1354
+ session_unavailable: "session_unavailable";
1355
+ screenshot_failed: "screenshot_failed";
1356
+ accessibility_error: "accessibility_error";
1357
+ }>;
1358
+ message: z.ZodString;
1359
+ retry: z.ZodBoolean;
1360
+ remediation: z.ZodString;
1361
+ details: z.ZodOptional<z.ZodUnknown>;
1362
+ }, z.core.$strict>>>;
1363
+ }, z.core.$strict>>;
1364
+ }, z.core.$strict>;
1365
+ };
1366
+ readonly pressKey: {
1367
+ readonly mutation: true;
1368
+ readonly input: z.ZodObject<{
1369
+ key: z.ZodString;
1370
+ captureScreenshot: z.ZodOptional<z.ZodBoolean>;
1371
+ restoreWindow: z.ZodOptional<z.ZodBoolean>;
1372
+ contextToken: z.ZodString;
1373
+ app: z.ZodOptional<z.ZodString>;
1374
+ target: z.ZodObject<{
1375
+ kind: z.ZodLiteral<"context-window">;
1376
+ }, z.core.$strict>;
1377
+ }, z.core.$strict>;
1378
+ readonly output: z.ZodObject<{
1379
+ outcome: z.ZodDiscriminatedUnion<[z.ZodObject<{
1380
+ state: z.ZodLiteral<"verified">;
1381
+ evidence: z.ZodOptional<z.ZodUnknown>;
1382
+ }, z.core.$strict>, z.ZodObject<{
1383
+ state: z.ZodLiteral<"indeterminate">;
1384
+ reason: z.ZodOptional<z.ZodString>;
1385
+ }, z.core.$strict>, z.ZodObject<{
1386
+ state: z.ZodLiteral<"failed">;
1387
+ error: z.ZodOptional<z.ZodObject<{
1388
+ code: z.ZodEnum<{
1389
+ app_not_found: "app_not_found";
1390
+ app_unavailable: "app_unavailable";
1391
+ app_blocked: "app_blocked";
1392
+ window_not_found: "window_not_found";
1393
+ window_unavailable: "window_unavailable";
1394
+ window_not_focused: "window_not_focused";
1395
+ permission_denied: "permission_denied";
1396
+ stale_target: "stale_target";
1397
+ element_not_found: "element_not_found";
1398
+ element_not_clickable: "element_not_clickable";
1399
+ action_not_supported: "action_not_supported";
1400
+ value_not_settable: "value_not_settable";
1401
+ invalid_argument: "invalid_argument";
1402
+ timeout: "timeout";
1403
+ unsupported_capability: "unsupported_capability";
1404
+ provider_unavailable: "provider_unavailable";
1405
+ provider_crashed: "provider_crashed";
1406
+ version_incompatible: "version_incompatible";
1407
+ interaction_context_invalid: "interaction_context_invalid";
1408
+ interaction_context_expired: "interaction_context_expired";
1409
+ session_unavailable: "session_unavailable";
1410
+ screenshot_failed: "screenshot_failed";
1411
+ accessibility_error: "accessibility_error";
1412
+ }>;
1413
+ message: z.ZodString;
1414
+ retry: z.ZodBoolean;
1415
+ remediation: z.ZodString;
1416
+ details: z.ZodOptional<z.ZodUnknown>;
1417
+ }, z.core.$strict>>;
1418
+ }, z.core.$strict>, z.ZodObject<{
1419
+ state: z.ZodLiteral<"not_attempted">;
1420
+ error: z.ZodOptional<z.ZodObject<{
1421
+ code: z.ZodEnum<{
1422
+ app_not_found: "app_not_found";
1423
+ app_unavailable: "app_unavailable";
1424
+ app_blocked: "app_blocked";
1425
+ window_not_found: "window_not_found";
1426
+ window_unavailable: "window_unavailable";
1427
+ window_not_focused: "window_not_focused";
1428
+ permission_denied: "permission_denied";
1429
+ stale_target: "stale_target";
1430
+ element_not_found: "element_not_found";
1431
+ element_not_clickable: "element_not_clickable";
1432
+ action_not_supported: "action_not_supported";
1433
+ value_not_settable: "value_not_settable";
1434
+ invalid_argument: "invalid_argument";
1435
+ timeout: "timeout";
1436
+ unsupported_capability: "unsupported_capability";
1437
+ provider_unavailable: "provider_unavailable";
1438
+ provider_crashed: "provider_crashed";
1439
+ version_incompatible: "version_incompatible";
1440
+ interaction_context_invalid: "interaction_context_invalid";
1441
+ interaction_context_expired: "interaction_context_expired";
1442
+ session_unavailable: "session_unavailable";
1443
+ screenshot_failed: "screenshot_failed";
1444
+ accessibility_error: "accessibility_error";
1445
+ }>;
1446
+ message: z.ZodString;
1447
+ retry: z.ZodBoolean;
1448
+ remediation: z.ZodString;
1449
+ details: z.ZodOptional<z.ZodUnknown>;
1450
+ }, z.core.$strict>>;
1451
+ }, z.core.$strict>], "state">;
1452
+ freshState: z.ZodOptional<z.ZodObject<{
1453
+ context: z.ZodObject<{
1454
+ brokerGeneration: z.ZodString;
1455
+ providerGeneration: z.ZodString;
1456
+ graphicalSessionId: z.ZodString;
1457
+ process: z.ZodObject<{
1458
+ pid: z.ZodNumber;
1459
+ startedAt: z.ZodISODateTime;
1460
+ executableId: z.ZodString;
1461
+ }, z.core.$strict>;
1462
+ appId: z.ZodString;
1463
+ window: z.ZodObject<{
1464
+ id: z.ZodString;
1465
+ ownerPid: z.ZodNumber;
1466
+ }, z.core.$strict>;
1467
+ snapshotId: z.ZodString;
1468
+ desktopEpoch: z.ZodNumber;
1469
+ token: z.ZodString;
1470
+ issuedAt: z.ZodISODateTime;
1471
+ expiresAt: z.ZodISODateTime;
1472
+ }, z.core.$strict>;
1473
+ snapshot: z.ZodObject<{
1474
+ id: z.ZodString;
1475
+ app: z.ZodObject<{
1476
+ id: z.ZodString;
1477
+ name: z.ZodString;
1478
+ bundleId: z.ZodNullable<z.ZodString>;
1479
+ pid: z.ZodNumber;
1480
+ isRunning: z.ZodBoolean;
1481
+ }, z.core.$strict>;
1482
+ window: z.ZodObject<{
1483
+ id: z.ZodString;
1484
+ appId: z.ZodString;
1485
+ title: z.ZodString;
1486
+ index: z.ZodNumber;
1487
+ bounds: z.ZodObject<{
1488
+ x: z.ZodNumber;
1489
+ y: z.ZodNumber;
1490
+ width: z.ZodNumber;
1491
+ height: z.ZodNumber;
1492
+ }, z.core.$strict>;
1493
+ minimized: z.ZodBoolean;
1494
+ }, z.core.$strict>;
1495
+ treeText: z.ZodString;
1496
+ elementCount: z.ZodNumber;
1497
+ focusedElementRef: z.ZodNullable<z.ZodString>;
1498
+ desktopEpoch: z.ZodNumber;
1499
+ }, z.core.$strict>;
1500
+ screenshot: z.ZodNullable<z.ZodObject<{
1501
+ format: z.ZodLiteral<"png">;
1502
+ width: z.ZodNumber;
1503
+ height: z.ZodNumber;
1504
+ scale: z.ZodNumber;
1505
+ data: z.ZodOptional<z.ZodString>;
1506
+ path: z.ZodOptional<z.ZodString>;
1507
+ expiresAt: z.ZodOptional<z.ZodISODateTime>;
1508
+ }, z.core.$strict>>;
1509
+ issues: z.ZodDefault<z.ZodArray<z.ZodObject<{
1510
+ code: z.ZodEnum<{
1511
+ app_not_found: "app_not_found";
1512
+ app_unavailable: "app_unavailable";
1513
+ app_blocked: "app_blocked";
1514
+ window_not_found: "window_not_found";
1515
+ window_unavailable: "window_unavailable";
1516
+ window_not_focused: "window_not_focused";
1517
+ permission_denied: "permission_denied";
1518
+ stale_target: "stale_target";
1519
+ element_not_found: "element_not_found";
1520
+ element_not_clickable: "element_not_clickable";
1521
+ action_not_supported: "action_not_supported";
1522
+ value_not_settable: "value_not_settable";
1523
+ invalid_argument: "invalid_argument";
1524
+ timeout: "timeout";
1525
+ unsupported_capability: "unsupported_capability";
1526
+ provider_unavailable: "provider_unavailable";
1527
+ provider_crashed: "provider_crashed";
1528
+ version_incompatible: "version_incompatible";
1529
+ interaction_context_invalid: "interaction_context_invalid";
1530
+ interaction_context_expired: "interaction_context_expired";
1531
+ session_unavailable: "session_unavailable";
1532
+ screenshot_failed: "screenshot_failed";
1533
+ accessibility_error: "accessibility_error";
1534
+ }>;
1535
+ message: z.ZodString;
1536
+ retry: z.ZodBoolean;
1537
+ remediation: z.ZodString;
1538
+ details: z.ZodOptional<z.ZodUnknown>;
1539
+ }, z.core.$strict>>>;
1540
+ }, z.core.$strict>>;
1541
+ }, z.core.$strict>;
1542
+ };
1543
+ readonly hotkey: {
1544
+ readonly mutation: true;
1545
+ readonly input: z.ZodObject<{
1546
+ keys: z.ZodArray<z.ZodString>;
1547
+ captureScreenshot: z.ZodOptional<z.ZodBoolean>;
1548
+ restoreWindow: z.ZodOptional<z.ZodBoolean>;
1549
+ contextToken: z.ZodString;
1550
+ app: z.ZodOptional<z.ZodString>;
1551
+ target: z.ZodObject<{
1552
+ kind: z.ZodLiteral<"context-window">;
1553
+ }, z.core.$strict>;
1554
+ }, z.core.$strict>;
1555
+ readonly output: z.ZodObject<{
1556
+ outcome: z.ZodDiscriminatedUnion<[z.ZodObject<{
1557
+ state: z.ZodLiteral<"verified">;
1558
+ evidence: z.ZodOptional<z.ZodUnknown>;
1559
+ }, z.core.$strict>, z.ZodObject<{
1560
+ state: z.ZodLiteral<"indeterminate">;
1561
+ reason: z.ZodOptional<z.ZodString>;
1562
+ }, z.core.$strict>, z.ZodObject<{
1563
+ state: z.ZodLiteral<"failed">;
1564
+ error: z.ZodOptional<z.ZodObject<{
1565
+ code: z.ZodEnum<{
1566
+ app_not_found: "app_not_found";
1567
+ app_unavailable: "app_unavailable";
1568
+ app_blocked: "app_blocked";
1569
+ window_not_found: "window_not_found";
1570
+ window_unavailable: "window_unavailable";
1571
+ window_not_focused: "window_not_focused";
1572
+ permission_denied: "permission_denied";
1573
+ stale_target: "stale_target";
1574
+ element_not_found: "element_not_found";
1575
+ element_not_clickable: "element_not_clickable";
1576
+ action_not_supported: "action_not_supported";
1577
+ value_not_settable: "value_not_settable";
1578
+ invalid_argument: "invalid_argument";
1579
+ timeout: "timeout";
1580
+ unsupported_capability: "unsupported_capability";
1581
+ provider_unavailable: "provider_unavailable";
1582
+ provider_crashed: "provider_crashed";
1583
+ version_incompatible: "version_incompatible";
1584
+ interaction_context_invalid: "interaction_context_invalid";
1585
+ interaction_context_expired: "interaction_context_expired";
1586
+ session_unavailable: "session_unavailable";
1587
+ screenshot_failed: "screenshot_failed";
1588
+ accessibility_error: "accessibility_error";
1589
+ }>;
1590
+ message: z.ZodString;
1591
+ retry: z.ZodBoolean;
1592
+ remediation: z.ZodString;
1593
+ details: z.ZodOptional<z.ZodUnknown>;
1594
+ }, z.core.$strict>>;
1595
+ }, z.core.$strict>, z.ZodObject<{
1596
+ state: z.ZodLiteral<"not_attempted">;
1597
+ error: z.ZodOptional<z.ZodObject<{
1598
+ code: z.ZodEnum<{
1599
+ app_not_found: "app_not_found";
1600
+ app_unavailable: "app_unavailable";
1601
+ app_blocked: "app_blocked";
1602
+ window_not_found: "window_not_found";
1603
+ window_unavailable: "window_unavailable";
1604
+ window_not_focused: "window_not_focused";
1605
+ permission_denied: "permission_denied";
1606
+ stale_target: "stale_target";
1607
+ element_not_found: "element_not_found";
1608
+ element_not_clickable: "element_not_clickable";
1609
+ action_not_supported: "action_not_supported";
1610
+ value_not_settable: "value_not_settable";
1611
+ invalid_argument: "invalid_argument";
1612
+ timeout: "timeout";
1613
+ unsupported_capability: "unsupported_capability";
1614
+ provider_unavailable: "provider_unavailable";
1615
+ provider_crashed: "provider_crashed";
1616
+ version_incompatible: "version_incompatible";
1617
+ interaction_context_invalid: "interaction_context_invalid";
1618
+ interaction_context_expired: "interaction_context_expired";
1619
+ session_unavailable: "session_unavailable";
1620
+ screenshot_failed: "screenshot_failed";
1621
+ accessibility_error: "accessibility_error";
1622
+ }>;
1623
+ message: z.ZodString;
1624
+ retry: z.ZodBoolean;
1625
+ remediation: z.ZodString;
1626
+ details: z.ZodOptional<z.ZodUnknown>;
1627
+ }, z.core.$strict>>;
1628
+ }, z.core.$strict>], "state">;
1629
+ freshState: z.ZodOptional<z.ZodObject<{
1630
+ context: z.ZodObject<{
1631
+ brokerGeneration: z.ZodString;
1632
+ providerGeneration: z.ZodString;
1633
+ graphicalSessionId: z.ZodString;
1634
+ process: z.ZodObject<{
1635
+ pid: z.ZodNumber;
1636
+ startedAt: z.ZodISODateTime;
1637
+ executableId: z.ZodString;
1638
+ }, z.core.$strict>;
1639
+ appId: z.ZodString;
1640
+ window: z.ZodObject<{
1641
+ id: z.ZodString;
1642
+ ownerPid: z.ZodNumber;
1643
+ }, z.core.$strict>;
1644
+ snapshotId: z.ZodString;
1645
+ desktopEpoch: z.ZodNumber;
1646
+ token: z.ZodString;
1647
+ issuedAt: z.ZodISODateTime;
1648
+ expiresAt: z.ZodISODateTime;
1649
+ }, z.core.$strict>;
1650
+ snapshot: z.ZodObject<{
1651
+ id: z.ZodString;
1652
+ app: z.ZodObject<{
1653
+ id: z.ZodString;
1654
+ name: z.ZodString;
1655
+ bundleId: z.ZodNullable<z.ZodString>;
1656
+ pid: z.ZodNumber;
1657
+ isRunning: z.ZodBoolean;
1658
+ }, z.core.$strict>;
1659
+ window: z.ZodObject<{
1660
+ id: z.ZodString;
1661
+ appId: z.ZodString;
1662
+ title: z.ZodString;
1663
+ index: z.ZodNumber;
1664
+ bounds: z.ZodObject<{
1665
+ x: z.ZodNumber;
1666
+ y: z.ZodNumber;
1667
+ width: z.ZodNumber;
1668
+ height: z.ZodNumber;
1669
+ }, z.core.$strict>;
1670
+ minimized: z.ZodBoolean;
1671
+ }, z.core.$strict>;
1672
+ treeText: z.ZodString;
1673
+ elementCount: z.ZodNumber;
1674
+ focusedElementRef: z.ZodNullable<z.ZodString>;
1675
+ desktopEpoch: z.ZodNumber;
1676
+ }, z.core.$strict>;
1677
+ screenshot: z.ZodNullable<z.ZodObject<{
1678
+ format: z.ZodLiteral<"png">;
1679
+ width: z.ZodNumber;
1680
+ height: z.ZodNumber;
1681
+ scale: z.ZodNumber;
1682
+ data: z.ZodOptional<z.ZodString>;
1683
+ path: z.ZodOptional<z.ZodString>;
1684
+ expiresAt: z.ZodOptional<z.ZodISODateTime>;
1685
+ }, z.core.$strict>>;
1686
+ issues: z.ZodDefault<z.ZodArray<z.ZodObject<{
1687
+ code: z.ZodEnum<{
1688
+ app_not_found: "app_not_found";
1689
+ app_unavailable: "app_unavailable";
1690
+ app_blocked: "app_blocked";
1691
+ window_not_found: "window_not_found";
1692
+ window_unavailable: "window_unavailable";
1693
+ window_not_focused: "window_not_focused";
1694
+ permission_denied: "permission_denied";
1695
+ stale_target: "stale_target";
1696
+ element_not_found: "element_not_found";
1697
+ element_not_clickable: "element_not_clickable";
1698
+ action_not_supported: "action_not_supported";
1699
+ value_not_settable: "value_not_settable";
1700
+ invalid_argument: "invalid_argument";
1701
+ timeout: "timeout";
1702
+ unsupported_capability: "unsupported_capability";
1703
+ provider_unavailable: "provider_unavailable";
1704
+ provider_crashed: "provider_crashed";
1705
+ version_incompatible: "version_incompatible";
1706
+ interaction_context_invalid: "interaction_context_invalid";
1707
+ interaction_context_expired: "interaction_context_expired";
1708
+ session_unavailable: "session_unavailable";
1709
+ screenshot_failed: "screenshot_failed";
1710
+ accessibility_error: "accessibility_error";
1711
+ }>;
1712
+ message: z.ZodString;
1713
+ retry: z.ZodBoolean;
1714
+ remediation: z.ZodString;
1715
+ details: z.ZodOptional<z.ZodUnknown>;
1716
+ }, z.core.$strict>>>;
1717
+ }, z.core.$strict>>;
1718
+ }, z.core.$strict>;
1719
+ };
1720
+ readonly pasteText: {
1721
+ readonly mutation: true;
1722
+ readonly input: z.ZodObject<{
1723
+ text: z.ZodString;
1724
+ captureScreenshot: z.ZodOptional<z.ZodBoolean>;
1725
+ restoreWindow: z.ZodOptional<z.ZodBoolean>;
1726
+ contextToken: z.ZodString;
1727
+ app: z.ZodOptional<z.ZodString>;
1728
+ target: z.ZodObject<{
1729
+ kind: z.ZodLiteral<"context-window">;
1730
+ }, z.core.$strict>;
1731
+ }, z.core.$strict>;
1732
+ readonly output: z.ZodObject<{
1733
+ outcome: z.ZodDiscriminatedUnion<[z.ZodObject<{
1734
+ state: z.ZodLiteral<"verified">;
1735
+ evidence: z.ZodOptional<z.ZodUnknown>;
1736
+ }, z.core.$strict>, z.ZodObject<{
1737
+ state: z.ZodLiteral<"indeterminate">;
1738
+ reason: z.ZodOptional<z.ZodString>;
1739
+ }, z.core.$strict>, z.ZodObject<{
1740
+ state: z.ZodLiteral<"failed">;
1741
+ error: z.ZodOptional<z.ZodObject<{
1742
+ code: z.ZodEnum<{
1743
+ app_not_found: "app_not_found";
1744
+ app_unavailable: "app_unavailable";
1745
+ app_blocked: "app_blocked";
1746
+ window_not_found: "window_not_found";
1747
+ window_unavailable: "window_unavailable";
1748
+ window_not_focused: "window_not_focused";
1749
+ permission_denied: "permission_denied";
1750
+ stale_target: "stale_target";
1751
+ element_not_found: "element_not_found";
1752
+ element_not_clickable: "element_not_clickable";
1753
+ action_not_supported: "action_not_supported";
1754
+ value_not_settable: "value_not_settable";
1755
+ invalid_argument: "invalid_argument";
1756
+ timeout: "timeout";
1757
+ unsupported_capability: "unsupported_capability";
1758
+ provider_unavailable: "provider_unavailable";
1759
+ provider_crashed: "provider_crashed";
1760
+ version_incompatible: "version_incompatible";
1761
+ interaction_context_invalid: "interaction_context_invalid";
1762
+ interaction_context_expired: "interaction_context_expired";
1763
+ session_unavailable: "session_unavailable";
1764
+ screenshot_failed: "screenshot_failed";
1765
+ accessibility_error: "accessibility_error";
1766
+ }>;
1767
+ message: z.ZodString;
1768
+ retry: z.ZodBoolean;
1769
+ remediation: z.ZodString;
1770
+ details: z.ZodOptional<z.ZodUnknown>;
1771
+ }, z.core.$strict>>;
1772
+ }, z.core.$strict>, z.ZodObject<{
1773
+ state: z.ZodLiteral<"not_attempted">;
1774
+ error: z.ZodOptional<z.ZodObject<{
1775
+ code: z.ZodEnum<{
1776
+ app_not_found: "app_not_found";
1777
+ app_unavailable: "app_unavailable";
1778
+ app_blocked: "app_blocked";
1779
+ window_not_found: "window_not_found";
1780
+ window_unavailable: "window_unavailable";
1781
+ window_not_focused: "window_not_focused";
1782
+ permission_denied: "permission_denied";
1783
+ stale_target: "stale_target";
1784
+ element_not_found: "element_not_found";
1785
+ element_not_clickable: "element_not_clickable";
1786
+ action_not_supported: "action_not_supported";
1787
+ value_not_settable: "value_not_settable";
1788
+ invalid_argument: "invalid_argument";
1789
+ timeout: "timeout";
1790
+ unsupported_capability: "unsupported_capability";
1791
+ provider_unavailable: "provider_unavailable";
1792
+ provider_crashed: "provider_crashed";
1793
+ version_incompatible: "version_incompatible";
1794
+ interaction_context_invalid: "interaction_context_invalid";
1795
+ interaction_context_expired: "interaction_context_expired";
1796
+ session_unavailable: "session_unavailable";
1797
+ screenshot_failed: "screenshot_failed";
1798
+ accessibility_error: "accessibility_error";
1799
+ }>;
1800
+ message: z.ZodString;
1801
+ retry: z.ZodBoolean;
1802
+ remediation: z.ZodString;
1803
+ details: z.ZodOptional<z.ZodUnknown>;
1804
+ }, z.core.$strict>>;
1805
+ }, z.core.$strict>], "state">;
1806
+ freshState: z.ZodOptional<z.ZodObject<{
1807
+ context: z.ZodObject<{
1808
+ brokerGeneration: z.ZodString;
1809
+ providerGeneration: z.ZodString;
1810
+ graphicalSessionId: z.ZodString;
1811
+ process: z.ZodObject<{
1812
+ pid: z.ZodNumber;
1813
+ startedAt: z.ZodISODateTime;
1814
+ executableId: z.ZodString;
1815
+ }, z.core.$strict>;
1816
+ appId: z.ZodString;
1817
+ window: z.ZodObject<{
1818
+ id: z.ZodString;
1819
+ ownerPid: z.ZodNumber;
1820
+ }, z.core.$strict>;
1821
+ snapshotId: z.ZodString;
1822
+ desktopEpoch: z.ZodNumber;
1823
+ token: z.ZodString;
1824
+ issuedAt: z.ZodISODateTime;
1825
+ expiresAt: z.ZodISODateTime;
1826
+ }, z.core.$strict>;
1827
+ snapshot: z.ZodObject<{
1828
+ id: z.ZodString;
1829
+ app: z.ZodObject<{
1830
+ id: z.ZodString;
1831
+ name: z.ZodString;
1832
+ bundleId: z.ZodNullable<z.ZodString>;
1833
+ pid: z.ZodNumber;
1834
+ isRunning: z.ZodBoolean;
1835
+ }, z.core.$strict>;
1836
+ window: z.ZodObject<{
1837
+ id: z.ZodString;
1838
+ appId: z.ZodString;
1839
+ title: z.ZodString;
1840
+ index: z.ZodNumber;
1841
+ bounds: z.ZodObject<{
1842
+ x: z.ZodNumber;
1843
+ y: z.ZodNumber;
1844
+ width: z.ZodNumber;
1845
+ height: z.ZodNumber;
1846
+ }, z.core.$strict>;
1847
+ minimized: z.ZodBoolean;
1848
+ }, z.core.$strict>;
1849
+ treeText: z.ZodString;
1850
+ elementCount: z.ZodNumber;
1851
+ focusedElementRef: z.ZodNullable<z.ZodString>;
1852
+ desktopEpoch: z.ZodNumber;
1853
+ }, z.core.$strict>;
1854
+ screenshot: z.ZodNullable<z.ZodObject<{
1855
+ format: z.ZodLiteral<"png">;
1856
+ width: z.ZodNumber;
1857
+ height: z.ZodNumber;
1858
+ scale: z.ZodNumber;
1859
+ data: z.ZodOptional<z.ZodString>;
1860
+ path: z.ZodOptional<z.ZodString>;
1861
+ expiresAt: z.ZodOptional<z.ZodISODateTime>;
1862
+ }, z.core.$strict>>;
1863
+ issues: z.ZodDefault<z.ZodArray<z.ZodObject<{
1864
+ code: z.ZodEnum<{
1865
+ app_not_found: "app_not_found";
1866
+ app_unavailable: "app_unavailable";
1867
+ app_blocked: "app_blocked";
1868
+ window_not_found: "window_not_found";
1869
+ window_unavailable: "window_unavailable";
1870
+ window_not_focused: "window_not_focused";
1871
+ permission_denied: "permission_denied";
1872
+ stale_target: "stale_target";
1873
+ element_not_found: "element_not_found";
1874
+ element_not_clickable: "element_not_clickable";
1875
+ action_not_supported: "action_not_supported";
1876
+ value_not_settable: "value_not_settable";
1877
+ invalid_argument: "invalid_argument";
1878
+ timeout: "timeout";
1879
+ unsupported_capability: "unsupported_capability";
1880
+ provider_unavailable: "provider_unavailable";
1881
+ provider_crashed: "provider_crashed";
1882
+ version_incompatible: "version_incompatible";
1883
+ interaction_context_invalid: "interaction_context_invalid";
1884
+ interaction_context_expired: "interaction_context_expired";
1885
+ session_unavailable: "session_unavailable";
1886
+ screenshot_failed: "screenshot_failed";
1887
+ accessibility_error: "accessibility_error";
1888
+ }>;
1889
+ message: z.ZodString;
1890
+ retry: z.ZodBoolean;
1891
+ remediation: z.ZodString;
1892
+ details: z.ZodOptional<z.ZodUnknown>;
1893
+ }, z.core.$strict>>>;
1894
+ }, z.core.$strict>>;
1895
+ }, z.core.$strict>;
1896
+ };
1897
+ readonly setValue: {
1898
+ readonly mutation: true;
1899
+ readonly input: z.ZodObject<{
1900
+ value: z.ZodString;
1901
+ captureScreenshot: z.ZodOptional<z.ZodBoolean>;
1902
+ restoreWindow: z.ZodOptional<z.ZodBoolean>;
1903
+ contextToken: z.ZodString;
1904
+ app: z.ZodOptional<z.ZodString>;
1905
+ target: z.ZodUnion<readonly [z.ZodObject<{
1906
+ kind: z.ZodLiteral<"element">;
1907
+ ref: z.ZodObject<{
1908
+ brokerGeneration: z.ZodString;
1909
+ providerGeneration: z.ZodString;
1910
+ graphicalSessionId: z.ZodString;
1911
+ process: z.ZodObject<{
1912
+ pid: z.ZodNumber;
1913
+ startedAt: z.ZodISODateTime;
1914
+ executableId: z.ZodString;
1915
+ }, z.core.$strict>;
1916
+ appId: z.ZodString;
1917
+ window: z.ZodObject<{
1918
+ id: z.ZodString;
1919
+ ownerPid: z.ZodNumber;
1920
+ }, z.core.$strict>;
1921
+ snapshotId: z.ZodString;
1922
+ desktopEpoch: z.ZodNumber;
1923
+ ref: z.ZodString;
1924
+ kind: z.ZodEnum<{
1925
+ window: "window";
1926
+ app: "app";
1927
+ element: "element";
1928
+ }>;
1929
+ contextToken: z.ZodString;
1930
+ expiresAt: z.ZodISODateTime;
1931
+ }, z.core.$strict>;
1932
+ }, z.core.$strict>, z.ZodObject<{
1933
+ kind: z.ZodLiteral<"element">;
1934
+ elementIndex: z.ZodNumber;
1935
+ }, z.core.$strict>]>;
1936
+ }, z.core.$strict>;
1937
+ readonly output: z.ZodObject<{
1938
+ outcome: z.ZodDiscriminatedUnion<[z.ZodObject<{
1939
+ state: z.ZodLiteral<"verified">;
1940
+ evidence: z.ZodOptional<z.ZodUnknown>;
1941
+ }, z.core.$strict>, z.ZodObject<{
1942
+ state: z.ZodLiteral<"indeterminate">;
1943
+ reason: z.ZodOptional<z.ZodString>;
1944
+ }, z.core.$strict>, z.ZodObject<{
1945
+ state: z.ZodLiteral<"failed">;
1946
+ error: z.ZodOptional<z.ZodObject<{
1947
+ code: z.ZodEnum<{
1948
+ app_not_found: "app_not_found";
1949
+ app_unavailable: "app_unavailable";
1950
+ app_blocked: "app_blocked";
1951
+ window_not_found: "window_not_found";
1952
+ window_unavailable: "window_unavailable";
1953
+ window_not_focused: "window_not_focused";
1954
+ permission_denied: "permission_denied";
1955
+ stale_target: "stale_target";
1956
+ element_not_found: "element_not_found";
1957
+ element_not_clickable: "element_not_clickable";
1958
+ action_not_supported: "action_not_supported";
1959
+ value_not_settable: "value_not_settable";
1960
+ invalid_argument: "invalid_argument";
1961
+ timeout: "timeout";
1962
+ unsupported_capability: "unsupported_capability";
1963
+ provider_unavailable: "provider_unavailable";
1964
+ provider_crashed: "provider_crashed";
1965
+ version_incompatible: "version_incompatible";
1966
+ interaction_context_invalid: "interaction_context_invalid";
1967
+ interaction_context_expired: "interaction_context_expired";
1968
+ session_unavailable: "session_unavailable";
1969
+ screenshot_failed: "screenshot_failed";
1970
+ accessibility_error: "accessibility_error";
1971
+ }>;
1972
+ message: z.ZodString;
1973
+ retry: z.ZodBoolean;
1974
+ remediation: z.ZodString;
1975
+ details: z.ZodOptional<z.ZodUnknown>;
1976
+ }, z.core.$strict>>;
1977
+ }, z.core.$strict>, z.ZodObject<{
1978
+ state: z.ZodLiteral<"not_attempted">;
1979
+ error: z.ZodOptional<z.ZodObject<{
1980
+ code: z.ZodEnum<{
1981
+ app_not_found: "app_not_found";
1982
+ app_unavailable: "app_unavailable";
1983
+ app_blocked: "app_blocked";
1984
+ window_not_found: "window_not_found";
1985
+ window_unavailable: "window_unavailable";
1986
+ window_not_focused: "window_not_focused";
1987
+ permission_denied: "permission_denied";
1988
+ stale_target: "stale_target";
1989
+ element_not_found: "element_not_found";
1990
+ element_not_clickable: "element_not_clickable";
1991
+ action_not_supported: "action_not_supported";
1992
+ value_not_settable: "value_not_settable";
1993
+ invalid_argument: "invalid_argument";
1994
+ timeout: "timeout";
1995
+ unsupported_capability: "unsupported_capability";
1996
+ provider_unavailable: "provider_unavailable";
1997
+ provider_crashed: "provider_crashed";
1998
+ version_incompatible: "version_incompatible";
1999
+ interaction_context_invalid: "interaction_context_invalid";
2000
+ interaction_context_expired: "interaction_context_expired";
2001
+ session_unavailable: "session_unavailable";
2002
+ screenshot_failed: "screenshot_failed";
2003
+ accessibility_error: "accessibility_error";
2004
+ }>;
2005
+ message: z.ZodString;
2006
+ retry: z.ZodBoolean;
2007
+ remediation: z.ZodString;
2008
+ details: z.ZodOptional<z.ZodUnknown>;
2009
+ }, z.core.$strict>>;
2010
+ }, z.core.$strict>], "state">;
2011
+ freshState: z.ZodOptional<z.ZodObject<{
2012
+ context: z.ZodObject<{
2013
+ brokerGeneration: z.ZodString;
2014
+ providerGeneration: z.ZodString;
2015
+ graphicalSessionId: z.ZodString;
2016
+ process: z.ZodObject<{
2017
+ pid: z.ZodNumber;
2018
+ startedAt: z.ZodISODateTime;
2019
+ executableId: z.ZodString;
2020
+ }, z.core.$strict>;
2021
+ appId: z.ZodString;
2022
+ window: z.ZodObject<{
2023
+ id: z.ZodString;
2024
+ ownerPid: z.ZodNumber;
2025
+ }, z.core.$strict>;
2026
+ snapshotId: z.ZodString;
2027
+ desktopEpoch: z.ZodNumber;
2028
+ token: z.ZodString;
2029
+ issuedAt: z.ZodISODateTime;
2030
+ expiresAt: z.ZodISODateTime;
2031
+ }, z.core.$strict>;
2032
+ snapshot: z.ZodObject<{
2033
+ id: z.ZodString;
2034
+ app: z.ZodObject<{
2035
+ id: z.ZodString;
2036
+ name: z.ZodString;
2037
+ bundleId: z.ZodNullable<z.ZodString>;
2038
+ pid: z.ZodNumber;
2039
+ isRunning: z.ZodBoolean;
2040
+ }, z.core.$strict>;
2041
+ window: z.ZodObject<{
2042
+ id: z.ZodString;
2043
+ appId: z.ZodString;
2044
+ title: z.ZodString;
2045
+ index: z.ZodNumber;
2046
+ bounds: z.ZodObject<{
2047
+ x: z.ZodNumber;
2048
+ y: z.ZodNumber;
2049
+ width: z.ZodNumber;
2050
+ height: z.ZodNumber;
2051
+ }, z.core.$strict>;
2052
+ minimized: z.ZodBoolean;
2053
+ }, z.core.$strict>;
2054
+ treeText: z.ZodString;
2055
+ elementCount: z.ZodNumber;
2056
+ focusedElementRef: z.ZodNullable<z.ZodString>;
2057
+ desktopEpoch: z.ZodNumber;
2058
+ }, z.core.$strict>;
2059
+ screenshot: z.ZodNullable<z.ZodObject<{
2060
+ format: z.ZodLiteral<"png">;
2061
+ width: z.ZodNumber;
2062
+ height: z.ZodNumber;
2063
+ scale: z.ZodNumber;
2064
+ data: z.ZodOptional<z.ZodString>;
2065
+ path: z.ZodOptional<z.ZodString>;
2066
+ expiresAt: z.ZodOptional<z.ZodISODateTime>;
2067
+ }, z.core.$strict>>;
2068
+ issues: z.ZodDefault<z.ZodArray<z.ZodObject<{
2069
+ code: z.ZodEnum<{
2070
+ app_not_found: "app_not_found";
2071
+ app_unavailable: "app_unavailable";
2072
+ app_blocked: "app_blocked";
2073
+ window_not_found: "window_not_found";
2074
+ window_unavailable: "window_unavailable";
2075
+ window_not_focused: "window_not_focused";
2076
+ permission_denied: "permission_denied";
2077
+ stale_target: "stale_target";
2078
+ element_not_found: "element_not_found";
2079
+ element_not_clickable: "element_not_clickable";
2080
+ action_not_supported: "action_not_supported";
2081
+ value_not_settable: "value_not_settable";
2082
+ invalid_argument: "invalid_argument";
2083
+ timeout: "timeout";
2084
+ unsupported_capability: "unsupported_capability";
2085
+ provider_unavailable: "provider_unavailable";
2086
+ provider_crashed: "provider_crashed";
2087
+ version_incompatible: "version_incompatible";
2088
+ interaction_context_invalid: "interaction_context_invalid";
2089
+ interaction_context_expired: "interaction_context_expired";
2090
+ session_unavailable: "session_unavailable";
2091
+ screenshot_failed: "screenshot_failed";
2092
+ accessibility_error: "accessibility_error";
2093
+ }>;
2094
+ message: z.ZodString;
2095
+ retry: z.ZodBoolean;
2096
+ remediation: z.ZodString;
2097
+ details: z.ZodOptional<z.ZodUnknown>;
2098
+ }, z.core.$strict>>>;
2099
+ }, z.core.$strict>>;
2100
+ }, z.core.$strict>;
2101
+ };
2102
+ };
2103
+ export type ComputerOperationName = keyof typeof COMPUTER_OPERATIONS;
2104
+ export declare function parseOperationInput(operation: ComputerOperationName, input: unknown): unknown;
2105
+ export declare function parseOperationOutput(operation: ComputerOperationName, output: unknown): unknown;
2106
+ export declare const ScreenshotOutputSchema: z.ZodObject<{
2107
+ format: z.ZodLiteral<"png">;
2108
+ width: z.ZodNumber;
2109
+ height: z.ZodNumber;
2110
+ scale: z.ZodNumber;
2111
+ data: z.ZodOptional<z.ZodString>;
2112
+ path: z.ZodOptional<z.ZodString>;
2113
+ expiresAt: z.ZodOptional<z.ZodISODateTime>;
2114
+ }, z.core.$strict>;
2115
+ //# sourceMappingURL=operations.d.ts.map