@stelis/agent-q-core 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/README.md +144 -0
  2. package/dist/adapter-internal.d.ts +5 -0
  3. package/dist/adapter-internal.js +6 -0
  4. package/dist/adapter-internal.js.map +1 -0
  5. package/dist/config.d.ts +74 -0
  6. package/dist/config.js +489 -0
  7. package/dist/config.js.map +1 -0
  8. package/dist/core.d.ts +320 -0
  9. package/dist/core.js +840 -0
  10. package/dist/core.js.map +1 -0
  11. package/dist/device.d.ts +55 -0
  12. package/dist/device.js +23 -0
  13. package/dist/device.js.map +1 -0
  14. package/dist/errors.d.ts +6 -0
  15. package/dist/errors.js +20 -0
  16. package/dist/errors.js.map +1 -0
  17. package/dist/host-output-schema.d.ts +2437 -0
  18. package/dist/host-output-schema.js +655 -0
  19. package/dist/host-output-schema.js.map +1 -0
  20. package/dist/protocol-error.d.ts +4 -0
  21. package/dist/protocol-error.js +9 -0
  22. package/dist/protocol-error.js.map +1 -0
  23. package/dist/protocol-management-primitives.d.ts +27 -0
  24. package/dist/protocol-management-primitives.js +51 -0
  25. package/dist/protocol-management-primitives.js.map +1 -0
  26. package/dist/protocol-primitives.d.ts +53 -0
  27. package/dist/protocol-primitives.js +331 -0
  28. package/dist/protocol-primitives.js.map +1 -0
  29. package/dist/protocol.d.ts +207 -0
  30. package/dist/protocol.js +897 -0
  31. package/dist/protocol.js.map +1 -0
  32. package/dist/provider-protocol.d.ts +262 -0
  33. package/dist/provider-protocol.js +637 -0
  34. package/dist/provider-protocol.js.map +1 -0
  35. package/dist/public-error.d.ts +9 -0
  36. package/dist/public-error.js +79 -0
  37. package/dist/public-error.js.map +1 -0
  38. package/dist/safe-text.d.ts +31 -0
  39. package/dist/safe-text.js +143 -0
  40. package/dist/safe-text.js.map +1 -0
  41. package/dist/transport-invariants.d.ts +18 -0
  42. package/dist/transport-invariants.js +24 -0
  43. package/dist/transport-invariants.js.map +1 -0
  44. package/dist/usb.d.ts +76 -0
  45. package/dist/usb.js +454 -0
  46. package/dist/usb.js.map +1 -0
  47. package/package.json +58 -0
@@ -0,0 +1,2437 @@
1
+ import * as z from "zod/v4";
2
+ export declare const publicErrorShape: z.ZodObject<{
3
+ code: z.ZodString;
4
+ message: z.ZodString;
5
+ retryable: z.ZodBoolean;
6
+ }, z.core.$strict>;
7
+ export declare const safeDeviceIdShape: z.ZodString;
8
+ export declare const requestIdShape: z.ZodString;
9
+ export declare const identificationCodeShape: z.ZodString;
10
+ export declare const displayTextShape: (maxLength: number) => z.ZodString;
11
+ export declare const portHintShape: z.ZodString;
12
+ export declare const isoInstantShape: z.ZodString;
13
+ export declare const safePurposeShape: z.ZodString;
14
+ export declare const safeLabelShape: z.ZodString;
15
+ export declare const deviceShape: z.ZodObject<{
16
+ deviceId: z.ZodString;
17
+ state: z.ZodEnum<{
18
+ idle: "idle";
19
+ busy: "busy";
20
+ awaiting_approval: "awaiting_approval";
21
+ locked: "locked";
22
+ error: "error";
23
+ }>;
24
+ firmwareName: z.ZodString;
25
+ hardware: z.ZodString;
26
+ firmwareVersion: z.ZodString;
27
+ }, z.core.$strict>;
28
+ export declare const provisioningShape: z.ZodObject<{
29
+ state: z.ZodEnum<{
30
+ locked: "locked";
31
+ error: "error";
32
+ unprovisioned: "unprovisioned";
33
+ provisioning: "provisioning";
34
+ provisioned: "provisioned";
35
+ }>;
36
+ }, z.core.$strict>;
37
+ export declare const deviceStatusSnapshotShape: z.ZodObject<{
38
+ device: z.ZodObject<{
39
+ deviceId: z.ZodString;
40
+ state: z.ZodEnum<{
41
+ idle: "idle";
42
+ busy: "busy";
43
+ awaiting_approval: "awaiting_approval";
44
+ locked: "locked";
45
+ error: "error";
46
+ }>;
47
+ firmwareName: z.ZodString;
48
+ hardware: z.ZodString;
49
+ firmwareVersion: z.ZodString;
50
+ }, z.core.$strict>;
51
+ provisioning: z.ZodObject<{
52
+ state: z.ZodEnum<{
53
+ locked: "locked";
54
+ error: "error";
55
+ unprovisioned: "unprovisioned";
56
+ provisioning: "provisioning";
57
+ provisioned: "provisioned";
58
+ }>;
59
+ }, z.core.$strict>;
60
+ }, z.core.$strict>;
61
+ export declare const statusResponseShape: z.ZodObject<{
62
+ id: z.ZodString;
63
+ version: z.ZodLiteral<1>;
64
+ type: z.ZodLiteral<"status">;
65
+ device: z.ZodObject<{
66
+ deviceId: z.ZodString;
67
+ state: z.ZodEnum<{
68
+ idle: "idle";
69
+ busy: "busy";
70
+ awaiting_approval: "awaiting_approval";
71
+ locked: "locked";
72
+ error: "error";
73
+ }>;
74
+ firmwareName: z.ZodString;
75
+ hardware: z.ZodString;
76
+ firmwareVersion: z.ZodString;
77
+ }, z.core.$strict>;
78
+ provisioning: z.ZodObject<{
79
+ state: z.ZodEnum<{
80
+ locked: "locked";
81
+ error: "error";
82
+ unprovisioned: "unprovisioned";
83
+ provisioning: "provisioning";
84
+ provisioned: "provisioned";
85
+ }>;
86
+ }, z.core.$strict>;
87
+ }, z.core.$strict>;
88
+ export declare const identifyResponseShape: z.ZodObject<{
89
+ id: z.ZodString;
90
+ version: z.ZodLiteral<1>;
91
+ type: z.ZodLiteral<"identify_device_result">;
92
+ status: z.ZodLiteral<"displayed">;
93
+ code: z.ZodString;
94
+ device: z.ZodObject<{
95
+ deviceId: z.ZodString;
96
+ state: z.ZodEnum<{
97
+ idle: "idle";
98
+ busy: "busy";
99
+ awaiting_approval: "awaiting_approval";
100
+ locked: "locked";
101
+ error: "error";
102
+ }>;
103
+ firmwareName: z.ZodString;
104
+ hardware: z.ZodString;
105
+ firmwareVersion: z.ZodString;
106
+ }, z.core.$strict>;
107
+ }, z.core.$strict>;
108
+ export declare const liveStatusShape: z.ZodObject<{
109
+ source: z.ZodLiteral<"live">;
110
+ connected: z.ZodLiteral<true>;
111
+ portPath: z.ZodString;
112
+ protocolResponse: z.ZodObject<{
113
+ id: z.ZodString;
114
+ version: z.ZodLiteral<1>;
115
+ type: z.ZodLiteral<"status">;
116
+ device: z.ZodObject<{
117
+ deviceId: z.ZodString;
118
+ state: z.ZodEnum<{
119
+ idle: "idle";
120
+ busy: "busy";
121
+ awaiting_approval: "awaiting_approval";
122
+ locked: "locked";
123
+ error: "error";
124
+ }>;
125
+ firmwareName: z.ZodString;
126
+ hardware: z.ZodString;
127
+ firmwareVersion: z.ZodString;
128
+ }, z.core.$strict>;
129
+ provisioning: z.ZodObject<{
130
+ state: z.ZodEnum<{
131
+ locked: "locked";
132
+ error: "error";
133
+ unprovisioned: "unprovisioned";
134
+ provisioning: "provisioning";
135
+ provisioned: "provisioned";
136
+ }>;
137
+ }, z.core.$strict>;
138
+ }, z.core.$strict>;
139
+ }, z.core.$strict>;
140
+ export declare const identifiedDeviceShape: z.ZodObject<{
141
+ source: z.ZodLiteral<"live">;
142
+ connected: z.ZodLiteral<true>;
143
+ portPath: z.ZodString;
144
+ status: z.ZodLiteral<"displayed">;
145
+ code: z.ZodString;
146
+ protocolResponse: z.ZodObject<{
147
+ id: z.ZodString;
148
+ version: z.ZodLiteral<1>;
149
+ type: z.ZodLiteral<"identify_device_result">;
150
+ status: z.ZodLiteral<"displayed">;
151
+ code: z.ZodString;
152
+ device: z.ZodObject<{
153
+ deviceId: z.ZodString;
154
+ state: z.ZodEnum<{
155
+ idle: "idle";
156
+ busy: "busy";
157
+ awaiting_approval: "awaiting_approval";
158
+ locked: "locked";
159
+ error: "error";
160
+ }>;
161
+ firmwareName: z.ZodString;
162
+ hardware: z.ZodString;
163
+ firmwareVersion: z.ZodString;
164
+ }, z.core.$strict>;
165
+ }, z.core.$strict>;
166
+ }, z.core.$strict>;
167
+ export declare const failedIdentificationShape: z.ZodObject<{
168
+ source: z.ZodLiteral<"error">;
169
+ connected: z.ZodLiteral<false>;
170
+ portPath: z.ZodString;
171
+ deviceId: z.ZodString;
172
+ status: z.ZodLiteral<"error">;
173
+ error: z.ZodObject<{
174
+ code: z.ZodString;
175
+ message: z.ZodString;
176
+ retryable: z.ZodBoolean;
177
+ }, z.core.$strict>;
178
+ }, z.core.$strict>;
179
+ export declare const errorToolResultShape: z.ZodObject<{
180
+ source: z.ZodLiteral<"error">;
181
+ connected: z.ZodLiteral<false>;
182
+ error: z.ZodObject<{
183
+ code: z.ZodString;
184
+ message: z.ZodString;
185
+ retryable: z.ZodBoolean;
186
+ }, z.core.$strict>;
187
+ }, z.core.$strict>;
188
+ export declare const runtimeSessionShape: z.ZodObject<{
189
+ sessionTtlMs: z.ZodNumber;
190
+ connectedAt: z.ZodString;
191
+ }, z.core.$strict>;
192
+ export declare const deviceListEntryShape: z.ZodObject<{
193
+ deviceId: z.ZodString;
194
+ transport: z.ZodLiteral<"usb">;
195
+ lastPortHint: z.ZodString;
196
+ lastSeenAt: z.ZodString;
197
+ label: z.ZodNullable<z.ZodString>;
198
+ lastStatus: z.ZodObject<{
199
+ device: z.ZodObject<{
200
+ deviceId: z.ZodString;
201
+ state: z.ZodEnum<{
202
+ idle: "idle";
203
+ busy: "busy";
204
+ awaiting_approval: "awaiting_approval";
205
+ locked: "locked";
206
+ error: "error";
207
+ }>;
208
+ firmwareName: z.ZodString;
209
+ hardware: z.ZodString;
210
+ firmwareVersion: z.ZodString;
211
+ }, z.core.$strict>;
212
+ provisioning: z.ZodObject<{
213
+ state: z.ZodEnum<{
214
+ locked: "locked";
215
+ error: "error";
216
+ unprovisioned: "unprovisioned";
217
+ provisioning: "provisioning";
218
+ provisioned: "provisioned";
219
+ }>;
220
+ }, z.core.$strict>;
221
+ }, z.core.$strict>;
222
+ assignedPurposes: z.ZodArray<z.ZodString>;
223
+ isDefaultActive: z.ZodBoolean;
224
+ runtimeSession: z.ZodNullable<z.ZodObject<{
225
+ sessionTtlMs: z.ZodNumber;
226
+ connectedAt: z.ZodString;
227
+ }, z.core.$strict>>;
228
+ }, z.core.$strict>;
229
+ export declare const scanDevicesSuccessOutputShape: z.ZodObject<{
230
+ source: z.ZodLiteral<"live">;
231
+ devices: z.ZodArray<z.ZodObject<{
232
+ source: z.ZodLiteral<"live">;
233
+ connected: z.ZodLiteral<true>;
234
+ portPath: z.ZodString;
235
+ protocolResponse: z.ZodObject<{
236
+ id: z.ZodString;
237
+ version: z.ZodLiteral<1>;
238
+ type: z.ZodLiteral<"status">;
239
+ device: z.ZodObject<{
240
+ deviceId: z.ZodString;
241
+ state: z.ZodEnum<{
242
+ idle: "idle";
243
+ busy: "busy";
244
+ awaiting_approval: "awaiting_approval";
245
+ locked: "locked";
246
+ error: "error";
247
+ }>;
248
+ firmwareName: z.ZodString;
249
+ hardware: z.ZodString;
250
+ firmwareVersion: z.ZodString;
251
+ }, z.core.$strict>;
252
+ provisioning: z.ZodObject<{
253
+ state: z.ZodEnum<{
254
+ locked: "locked";
255
+ error: "error";
256
+ unprovisioned: "unprovisioned";
257
+ provisioning: "provisioning";
258
+ provisioned: "provisioned";
259
+ }>;
260
+ }, z.core.$strict>;
261
+ }, z.core.$strict>;
262
+ }, z.core.$strict>>;
263
+ failures: z.ZodArray<z.ZodObject<{
264
+ source: z.ZodLiteral<"error">;
265
+ connected: z.ZodLiteral<false>;
266
+ portPath: z.ZodString;
267
+ unavailableReason: z.ZodEnum<{
268
+ incompatible_version: "incompatible_version";
269
+ timeout: "timeout";
270
+ handshake_failed: "handshake_failed";
271
+ port_not_found: "port_not_found";
272
+ port_in_use: "port_in_use";
273
+ port_permission_denied: "port_permission_denied";
274
+ transport_closed: "transport_closed";
275
+ }>;
276
+ firmwareErrorCode: z.ZodOptional<z.ZodString>;
277
+ }, z.core.$strict>>;
278
+ activeDeviceId: z.ZodNullable<z.ZodString>;
279
+ }, z.core.$strict>;
280
+ export declare const scanDevicesToolOutputShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
281
+ source: z.ZodLiteral<"live">;
282
+ devices: z.ZodArray<z.ZodObject<{
283
+ source: z.ZodLiteral<"live">;
284
+ connected: z.ZodLiteral<true>;
285
+ portPath: z.ZodString;
286
+ protocolResponse: z.ZodObject<{
287
+ id: z.ZodString;
288
+ version: z.ZodLiteral<1>;
289
+ type: z.ZodLiteral<"status">;
290
+ device: z.ZodObject<{
291
+ deviceId: z.ZodString;
292
+ state: z.ZodEnum<{
293
+ idle: "idle";
294
+ busy: "busy";
295
+ awaiting_approval: "awaiting_approval";
296
+ locked: "locked";
297
+ error: "error";
298
+ }>;
299
+ firmwareName: z.ZodString;
300
+ hardware: z.ZodString;
301
+ firmwareVersion: z.ZodString;
302
+ }, z.core.$strict>;
303
+ provisioning: z.ZodObject<{
304
+ state: z.ZodEnum<{
305
+ locked: "locked";
306
+ error: "error";
307
+ unprovisioned: "unprovisioned";
308
+ provisioning: "provisioning";
309
+ provisioned: "provisioned";
310
+ }>;
311
+ }, z.core.$strict>;
312
+ }, z.core.$strict>;
313
+ }, z.core.$strict>>;
314
+ failures: z.ZodArray<z.ZodObject<{
315
+ source: z.ZodLiteral<"error">;
316
+ connected: z.ZodLiteral<false>;
317
+ portPath: z.ZodString;
318
+ unavailableReason: z.ZodEnum<{
319
+ incompatible_version: "incompatible_version";
320
+ timeout: "timeout";
321
+ handshake_failed: "handshake_failed";
322
+ port_not_found: "port_not_found";
323
+ port_in_use: "port_in_use";
324
+ port_permission_denied: "port_permission_denied";
325
+ transport_closed: "transport_closed";
326
+ }>;
327
+ firmwareErrorCode: z.ZodOptional<z.ZodString>;
328
+ }, z.core.$strict>>;
329
+ activeDeviceId: z.ZodNullable<z.ZodString>;
330
+ }, z.core.$strict>, z.ZodObject<{
331
+ source: z.ZodLiteral<"error">;
332
+ connected: z.ZodLiteral<false>;
333
+ error: z.ZodObject<{
334
+ code: z.ZodString;
335
+ message: z.ZodString;
336
+ retryable: z.ZodBoolean;
337
+ }, z.core.$strict>;
338
+ }, z.core.$strict>], "source">;
339
+ export declare const identifyDevicesSuccessOutputShape: z.ZodObject<{
340
+ source: z.ZodLiteral<"live">;
341
+ devices: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
342
+ source: z.ZodLiteral<"live">;
343
+ connected: z.ZodLiteral<true>;
344
+ portPath: z.ZodString;
345
+ status: z.ZodLiteral<"displayed">;
346
+ code: z.ZodString;
347
+ protocolResponse: z.ZodObject<{
348
+ id: z.ZodString;
349
+ version: z.ZodLiteral<1>;
350
+ type: z.ZodLiteral<"identify_device_result">;
351
+ status: z.ZodLiteral<"displayed">;
352
+ code: z.ZodString;
353
+ device: z.ZodObject<{
354
+ deviceId: z.ZodString;
355
+ state: z.ZodEnum<{
356
+ idle: "idle";
357
+ busy: "busy";
358
+ awaiting_approval: "awaiting_approval";
359
+ locked: "locked";
360
+ error: "error";
361
+ }>;
362
+ firmwareName: z.ZodString;
363
+ hardware: z.ZodString;
364
+ firmwareVersion: z.ZodString;
365
+ }, z.core.$strict>;
366
+ }, z.core.$strict>;
367
+ }, z.core.$strict>, z.ZodObject<{
368
+ source: z.ZodLiteral<"error">;
369
+ connected: z.ZodLiteral<false>;
370
+ portPath: z.ZodString;
371
+ deviceId: z.ZodString;
372
+ status: z.ZodLiteral<"error">;
373
+ error: z.ZodObject<{
374
+ code: z.ZodString;
375
+ message: z.ZodString;
376
+ retryable: z.ZodBoolean;
377
+ }, z.core.$strict>;
378
+ }, z.core.$strict>], "source">>;
379
+ activeDeviceId: z.ZodNullable<z.ZodString>;
380
+ }, z.core.$strict>;
381
+ export declare const identifyDevicesToolOutputShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
382
+ source: z.ZodLiteral<"live">;
383
+ devices: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
384
+ source: z.ZodLiteral<"live">;
385
+ connected: z.ZodLiteral<true>;
386
+ portPath: z.ZodString;
387
+ status: z.ZodLiteral<"displayed">;
388
+ code: z.ZodString;
389
+ protocolResponse: z.ZodObject<{
390
+ id: z.ZodString;
391
+ version: z.ZodLiteral<1>;
392
+ type: z.ZodLiteral<"identify_device_result">;
393
+ status: z.ZodLiteral<"displayed">;
394
+ code: z.ZodString;
395
+ device: z.ZodObject<{
396
+ deviceId: z.ZodString;
397
+ state: z.ZodEnum<{
398
+ idle: "idle";
399
+ busy: "busy";
400
+ awaiting_approval: "awaiting_approval";
401
+ locked: "locked";
402
+ error: "error";
403
+ }>;
404
+ firmwareName: z.ZodString;
405
+ hardware: z.ZodString;
406
+ firmwareVersion: z.ZodString;
407
+ }, z.core.$strict>;
408
+ }, z.core.$strict>;
409
+ }, z.core.$strict>, z.ZodObject<{
410
+ source: z.ZodLiteral<"error">;
411
+ connected: z.ZodLiteral<false>;
412
+ portPath: z.ZodString;
413
+ deviceId: z.ZodString;
414
+ status: z.ZodLiteral<"error">;
415
+ error: z.ZodObject<{
416
+ code: z.ZodString;
417
+ message: z.ZodString;
418
+ retryable: z.ZodBoolean;
419
+ }, z.core.$strict>;
420
+ }, z.core.$strict>], "source">>;
421
+ activeDeviceId: z.ZodNullable<z.ZodString>;
422
+ }, z.core.$strict>, z.ZodObject<{
423
+ source: z.ZodLiteral<"error">;
424
+ connected: z.ZodLiteral<false>;
425
+ error: z.ZodObject<{
426
+ code: z.ZodString;
427
+ message: z.ZodString;
428
+ retryable: z.ZodBoolean;
429
+ }, z.core.$strict>;
430
+ }, z.core.$strict>], "source">;
431
+ export declare const selectDeviceSuccessOutputShape: z.ZodObject<{
432
+ source: z.ZodLiteral<"selected">;
433
+ activeDeviceId: z.ZodString;
434
+ purpose: z.ZodNullable<z.ZodString>;
435
+ device: z.ZodObject<{
436
+ deviceId: z.ZodString;
437
+ state: z.ZodEnum<{
438
+ idle: "idle";
439
+ busy: "busy";
440
+ awaiting_approval: "awaiting_approval";
441
+ locked: "locked";
442
+ error: "error";
443
+ }>;
444
+ firmwareName: z.ZodString;
445
+ hardware: z.ZodString;
446
+ firmwareVersion: z.ZodString;
447
+ }, z.core.$strict>;
448
+ }, z.core.$strict>;
449
+ export declare const selectDeviceToolOutputShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
450
+ source: z.ZodLiteral<"selected">;
451
+ activeDeviceId: z.ZodString;
452
+ purpose: z.ZodNullable<z.ZodString>;
453
+ device: z.ZodObject<{
454
+ deviceId: z.ZodString;
455
+ state: z.ZodEnum<{
456
+ idle: "idle";
457
+ busy: "busy";
458
+ awaiting_approval: "awaiting_approval";
459
+ locked: "locked";
460
+ error: "error";
461
+ }>;
462
+ firmwareName: z.ZodString;
463
+ hardware: z.ZodString;
464
+ firmwareVersion: z.ZodString;
465
+ }, z.core.$strict>;
466
+ }, z.core.$strict>, z.ZodObject<{
467
+ source: z.ZodLiteral<"error">;
468
+ connected: z.ZodLiteral<false>;
469
+ error: z.ZodObject<{
470
+ code: z.ZodString;
471
+ message: z.ZodString;
472
+ retryable: z.ZodBoolean;
473
+ }, z.core.$strict>;
474
+ }, z.core.$strict>], "source">;
475
+ export declare const listDevicesSuccessOutputShape: z.ZodObject<{
476
+ source: z.ZodLiteral<"list">;
477
+ devices: z.ZodArray<z.ZodObject<{
478
+ deviceId: z.ZodString;
479
+ transport: z.ZodLiteral<"usb">;
480
+ lastPortHint: z.ZodString;
481
+ lastSeenAt: z.ZodString;
482
+ label: z.ZodNullable<z.ZodString>;
483
+ lastStatus: z.ZodObject<{
484
+ device: z.ZodObject<{
485
+ deviceId: z.ZodString;
486
+ state: z.ZodEnum<{
487
+ idle: "idle";
488
+ busy: "busy";
489
+ awaiting_approval: "awaiting_approval";
490
+ locked: "locked";
491
+ error: "error";
492
+ }>;
493
+ firmwareName: z.ZodString;
494
+ hardware: z.ZodString;
495
+ firmwareVersion: z.ZodString;
496
+ }, z.core.$strict>;
497
+ provisioning: z.ZodObject<{
498
+ state: z.ZodEnum<{
499
+ locked: "locked";
500
+ error: "error";
501
+ unprovisioned: "unprovisioned";
502
+ provisioning: "provisioning";
503
+ provisioned: "provisioned";
504
+ }>;
505
+ }, z.core.$strict>;
506
+ }, z.core.$strict>;
507
+ assignedPurposes: z.ZodArray<z.ZodString>;
508
+ isDefaultActive: z.ZodBoolean;
509
+ runtimeSession: z.ZodNullable<z.ZodObject<{
510
+ sessionTtlMs: z.ZodNumber;
511
+ connectedAt: z.ZodString;
512
+ }, z.core.$strict>>;
513
+ }, z.core.$strict>>;
514
+ activeDeviceId: z.ZodNullable<z.ZodString>;
515
+ activeDeviceIdsByPurpose: z.ZodRecord<z.ZodString, z.ZodString>;
516
+ }, z.core.$strict>;
517
+ export declare const listDevicesToolOutputShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
518
+ source: z.ZodLiteral<"list">;
519
+ devices: z.ZodArray<z.ZodObject<{
520
+ deviceId: z.ZodString;
521
+ transport: z.ZodLiteral<"usb">;
522
+ lastPortHint: z.ZodString;
523
+ lastSeenAt: z.ZodString;
524
+ label: z.ZodNullable<z.ZodString>;
525
+ lastStatus: z.ZodObject<{
526
+ device: z.ZodObject<{
527
+ deviceId: z.ZodString;
528
+ state: z.ZodEnum<{
529
+ idle: "idle";
530
+ busy: "busy";
531
+ awaiting_approval: "awaiting_approval";
532
+ locked: "locked";
533
+ error: "error";
534
+ }>;
535
+ firmwareName: z.ZodString;
536
+ hardware: z.ZodString;
537
+ firmwareVersion: z.ZodString;
538
+ }, z.core.$strict>;
539
+ provisioning: z.ZodObject<{
540
+ state: z.ZodEnum<{
541
+ locked: "locked";
542
+ error: "error";
543
+ unprovisioned: "unprovisioned";
544
+ provisioning: "provisioning";
545
+ provisioned: "provisioned";
546
+ }>;
547
+ }, z.core.$strict>;
548
+ }, z.core.$strict>;
549
+ assignedPurposes: z.ZodArray<z.ZodString>;
550
+ isDefaultActive: z.ZodBoolean;
551
+ runtimeSession: z.ZodNullable<z.ZodObject<{
552
+ sessionTtlMs: z.ZodNumber;
553
+ connectedAt: z.ZodString;
554
+ }, z.core.$strict>>;
555
+ }, z.core.$strict>>;
556
+ activeDeviceId: z.ZodNullable<z.ZodString>;
557
+ activeDeviceIdsByPurpose: z.ZodRecord<z.ZodString, z.ZodString>;
558
+ }, z.core.$strict>, z.ZodObject<{
559
+ source: z.ZodLiteral<"error">;
560
+ connected: z.ZodLiteral<false>;
561
+ error: z.ZodObject<{
562
+ code: z.ZodString;
563
+ message: z.ZodString;
564
+ retryable: z.ZodBoolean;
565
+ }, z.core.$strict>;
566
+ }, z.core.$strict>], "source">;
567
+ export declare const setDeviceMetadataSuccessOutputShape: z.ZodObject<{
568
+ source: z.ZodLiteral<"metadata">;
569
+ deviceId: z.ZodString;
570
+ label: z.ZodNullable<z.ZodString>;
571
+ }, z.core.$strict>;
572
+ export declare const setDeviceMetadataToolOutputShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
573
+ source: z.ZodLiteral<"metadata">;
574
+ deviceId: z.ZodString;
575
+ label: z.ZodNullable<z.ZodString>;
576
+ }, z.core.$strict>, z.ZodObject<{
577
+ source: z.ZodLiteral<"error">;
578
+ connected: z.ZodLiteral<false>;
579
+ error: z.ZodObject<{
580
+ code: z.ZodString;
581
+ message: z.ZodString;
582
+ retryable: z.ZodBoolean;
583
+ }, z.core.$strict>;
584
+ }, z.core.$strict>], "source">;
585
+ export declare const connectDeviceSuccessOutputShape: z.ZodObject<{
586
+ source: z.ZodLiteral<"connected">;
587
+ deviceId: z.ZodString;
588
+ sessionTtlMs: z.ZodNumber;
589
+ connectedAt: z.ZodString;
590
+ device: z.ZodObject<{
591
+ deviceId: z.ZodString;
592
+ state: z.ZodEnum<{
593
+ idle: "idle";
594
+ busy: "busy";
595
+ awaiting_approval: "awaiting_approval";
596
+ locked: "locked";
597
+ error: "error";
598
+ }>;
599
+ firmwareName: z.ZodString;
600
+ hardware: z.ZodString;
601
+ firmwareVersion: z.ZodString;
602
+ }, z.core.$strict>;
603
+ }, z.core.$strict>;
604
+ export declare const connectDeviceToolOutputShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
605
+ source: z.ZodLiteral<"connected">;
606
+ deviceId: z.ZodString;
607
+ sessionTtlMs: z.ZodNumber;
608
+ connectedAt: z.ZodString;
609
+ device: z.ZodObject<{
610
+ deviceId: z.ZodString;
611
+ state: z.ZodEnum<{
612
+ idle: "idle";
613
+ busy: "busy";
614
+ awaiting_approval: "awaiting_approval";
615
+ locked: "locked";
616
+ error: "error";
617
+ }>;
618
+ firmwareName: z.ZodString;
619
+ hardware: z.ZodString;
620
+ firmwareVersion: z.ZodString;
621
+ }, z.core.$strict>;
622
+ }, z.core.$strict>, z.ZodObject<{
623
+ source: z.ZodLiteral<"error">;
624
+ connected: z.ZodLiteral<false>;
625
+ error: z.ZodObject<{
626
+ code: z.ZodString;
627
+ message: z.ZodString;
628
+ retryable: z.ZodBoolean;
629
+ }, z.core.$strict>;
630
+ }, z.core.$strict>], "source">;
631
+ export declare const disconnectDeviceSuccessOutputShape: z.ZodObject<{
632
+ source: z.ZodEnum<{
633
+ disconnected: "disconnected";
634
+ not_connected: "not_connected";
635
+ }>;
636
+ deviceId: z.ZodString;
637
+ reason: z.ZodEnum<{
638
+ invalid_session: "invalid_session";
639
+ timeout: "timeout";
640
+ firmware_confirmed: "firmware_confirmed";
641
+ transport_unavailable: "transport_unavailable";
642
+ not_connected: "not_connected";
643
+ }>;
644
+ }, z.core.$strict>;
645
+ export declare const disconnectDeviceToolOutputShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
646
+ source: z.ZodEnum<{
647
+ disconnected: "disconnected";
648
+ not_connected: "not_connected";
649
+ }>;
650
+ deviceId: z.ZodString;
651
+ reason: z.ZodEnum<{
652
+ invalid_session: "invalid_session";
653
+ timeout: "timeout";
654
+ firmware_confirmed: "firmware_confirmed";
655
+ transport_unavailable: "transport_unavailable";
656
+ not_connected: "not_connected";
657
+ }>;
658
+ }, z.core.$strict>, z.ZodObject<{
659
+ source: z.ZodLiteral<"error">;
660
+ connected: z.ZodLiteral<false>;
661
+ error: z.ZodObject<{
662
+ code: z.ZodString;
663
+ message: z.ZodString;
664
+ retryable: z.ZodBoolean;
665
+ }, z.core.$strict>;
666
+ }, z.core.$strict>], "source">;
667
+ export declare const getCapabilitiesSuccessOutputShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
668
+ source: z.ZodLiteral<"live">;
669
+ deviceId: z.ZodString;
670
+ capabilities: z.ZodArray<z.ZodObject<{
671
+ id: z.ZodLiteral<"sui">;
672
+ accounts: z.ZodArray<z.ZodObject<{
673
+ keyScheme: z.ZodLiteral<"ed25519">;
674
+ derivationPath: z.ZodLiteral<"m/44'/784'/0'/0'/0'">;
675
+ }, z.core.$strict>>;
676
+ methods: z.ZodArray<z.ZodNever>;
677
+ }, z.core.$strict>>;
678
+ signing: z.ZodOptional<z.ZodObject<{
679
+ authorization: z.ZodEnum<{
680
+ user: "user";
681
+ policy: "policy";
682
+ }>;
683
+ methods: z.ZodArray<z.ZodObject<{
684
+ chain: z.ZodLiteral<"sui">;
685
+ method: z.ZodEnum<{
686
+ sign_transaction: "sign_transaction";
687
+ sign_personal_message: "sign_personal_message";
688
+ }>;
689
+ }, z.core.$strict>>;
690
+ }, z.core.$strict>>;
691
+ }, z.core.$strict>, z.ZodObject<{
692
+ source: z.ZodLiteral<"not_connected">;
693
+ deviceId: z.ZodString;
694
+ reason: z.ZodLiteral<"not_connected">;
695
+ }, z.core.$strict>, z.ZodObject<{
696
+ source: z.ZodLiteral<"session_ended">;
697
+ deviceId: z.ZodString;
698
+ reason: z.ZodEnum<{
699
+ invalid_session: "invalid_session";
700
+ timeout: "timeout";
701
+ transport_unavailable: "transport_unavailable";
702
+ }>;
703
+ }, z.core.$strict>], "source">;
704
+ export declare const getCapabilitiesToolOutputShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
705
+ source: z.ZodLiteral<"live">;
706
+ deviceId: z.ZodString;
707
+ capabilities: z.ZodArray<z.ZodObject<{
708
+ id: z.ZodLiteral<"sui">;
709
+ accounts: z.ZodArray<z.ZodObject<{
710
+ keyScheme: z.ZodLiteral<"ed25519">;
711
+ derivationPath: z.ZodLiteral<"m/44'/784'/0'/0'/0'">;
712
+ }, z.core.$strict>>;
713
+ methods: z.ZodArray<z.ZodNever>;
714
+ }, z.core.$strict>>;
715
+ signing: z.ZodOptional<z.ZodObject<{
716
+ authorization: z.ZodEnum<{
717
+ user: "user";
718
+ policy: "policy";
719
+ }>;
720
+ methods: z.ZodArray<z.ZodObject<{
721
+ chain: z.ZodLiteral<"sui">;
722
+ method: z.ZodEnum<{
723
+ sign_transaction: "sign_transaction";
724
+ sign_personal_message: "sign_personal_message";
725
+ }>;
726
+ }, z.core.$strict>>;
727
+ }, z.core.$strict>>;
728
+ }, z.core.$strict>, z.ZodObject<{
729
+ source: z.ZodLiteral<"not_connected">;
730
+ deviceId: z.ZodString;
731
+ reason: z.ZodLiteral<"not_connected">;
732
+ }, z.core.$strict>, z.ZodObject<{
733
+ source: z.ZodLiteral<"session_ended">;
734
+ deviceId: z.ZodString;
735
+ reason: z.ZodEnum<{
736
+ invalid_session: "invalid_session";
737
+ timeout: "timeout";
738
+ transport_unavailable: "transport_unavailable";
739
+ }>;
740
+ }, z.core.$strict>, z.ZodObject<{
741
+ source: z.ZodLiteral<"error">;
742
+ connected: z.ZodLiteral<false>;
743
+ error: z.ZodObject<{
744
+ code: z.ZodString;
745
+ message: z.ZodString;
746
+ retryable: z.ZodBoolean;
747
+ }, z.core.$strict>;
748
+ }, z.core.$strict>], "source">;
749
+ export declare const providerGetCapabilitiesSuccessOutputShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
750
+ source: z.ZodLiteral<"live">;
751
+ deviceId: z.ZodString;
752
+ capabilities: z.ZodArray<z.ZodObject<{
753
+ id: z.ZodLiteral<"sui">;
754
+ accounts: z.ZodArray<z.ZodObject<{
755
+ keyScheme: z.ZodLiteral<"ed25519">;
756
+ derivationPath: z.ZodLiteral<"m/44'/784'/0'/0'/0'">;
757
+ }, z.core.$strict>>;
758
+ methods: z.ZodArray<z.ZodNever>;
759
+ }, z.core.$strict>>;
760
+ signing: z.ZodOptional<z.ZodObject<{
761
+ authorization: z.ZodEnum<{
762
+ user: "user";
763
+ policy: "policy";
764
+ }>;
765
+ methods: z.ZodArray<z.ZodObject<{
766
+ chain: z.ZodLiteral<"sui">;
767
+ method: z.ZodEnum<{
768
+ sign_transaction: "sign_transaction";
769
+ sign_personal_message: "sign_personal_message";
770
+ }>;
771
+ }, z.core.$strict>>;
772
+ }, z.core.$strict>>;
773
+ }, z.core.$strict>, z.ZodObject<{
774
+ source: z.ZodLiteral<"not_connected">;
775
+ deviceId: z.ZodString;
776
+ reason: z.ZodLiteral<"not_connected">;
777
+ }, z.core.$strict>, z.ZodObject<{
778
+ source: z.ZodLiteral<"session_ended">;
779
+ deviceId: z.ZodString;
780
+ reason: z.ZodEnum<{
781
+ invalid_session: "invalid_session";
782
+ timeout: "timeout";
783
+ transport_unavailable: "transport_unavailable";
784
+ }>;
785
+ }, z.core.$strict>], "source">;
786
+ export declare const providerGetCapabilitiesToolOutputShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
787
+ source: z.ZodLiteral<"live">;
788
+ deviceId: z.ZodString;
789
+ capabilities: z.ZodArray<z.ZodObject<{
790
+ id: z.ZodLiteral<"sui">;
791
+ accounts: z.ZodArray<z.ZodObject<{
792
+ keyScheme: z.ZodLiteral<"ed25519">;
793
+ derivationPath: z.ZodLiteral<"m/44'/784'/0'/0'/0'">;
794
+ }, z.core.$strict>>;
795
+ methods: z.ZodArray<z.ZodNever>;
796
+ }, z.core.$strict>>;
797
+ signing: z.ZodOptional<z.ZodObject<{
798
+ authorization: z.ZodEnum<{
799
+ user: "user";
800
+ policy: "policy";
801
+ }>;
802
+ methods: z.ZodArray<z.ZodObject<{
803
+ chain: z.ZodLiteral<"sui">;
804
+ method: z.ZodEnum<{
805
+ sign_transaction: "sign_transaction";
806
+ sign_personal_message: "sign_personal_message";
807
+ }>;
808
+ }, z.core.$strict>>;
809
+ }, z.core.$strict>>;
810
+ }, z.core.$strict>, z.ZodObject<{
811
+ source: z.ZodLiteral<"not_connected">;
812
+ deviceId: z.ZodString;
813
+ reason: z.ZodLiteral<"not_connected">;
814
+ }, z.core.$strict>, z.ZodObject<{
815
+ source: z.ZodLiteral<"session_ended">;
816
+ deviceId: z.ZodString;
817
+ reason: z.ZodEnum<{
818
+ invalid_session: "invalid_session";
819
+ timeout: "timeout";
820
+ transport_unavailable: "transport_unavailable";
821
+ }>;
822
+ }, z.core.$strict>, z.ZodObject<{
823
+ source: z.ZodLiteral<"error">;
824
+ connected: z.ZodLiteral<false>;
825
+ error: z.ZodObject<{
826
+ code: z.ZodString;
827
+ message: z.ZodString;
828
+ retryable: z.ZodBoolean;
829
+ }, z.core.$strict>;
830
+ }, z.core.$strict>], "source">;
831
+ export declare const mcpGetCapabilitiesSuccessOutputShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
832
+ source: z.ZodLiteral<"live">;
833
+ deviceId: z.ZodString;
834
+ capabilities: z.ZodArray<z.ZodObject<{
835
+ id: z.ZodLiteral<"sui">;
836
+ accounts: z.ZodArray<z.ZodObject<{
837
+ keyScheme: z.ZodLiteral<"ed25519">;
838
+ derivationPath: z.ZodLiteral<"m/44'/784'/0'/0'/0'">;
839
+ }, z.core.$strict>>;
840
+ methods: z.ZodArray<z.ZodNever>;
841
+ }, z.core.$strict>>;
842
+ signing: z.ZodOptional<z.ZodObject<{
843
+ authorization: z.ZodEnum<{
844
+ user: "user";
845
+ policy: "policy";
846
+ }>;
847
+ methods: z.ZodArray<z.ZodObject<{
848
+ chain: z.ZodLiteral<"sui">;
849
+ method: z.ZodEnum<{
850
+ sign_transaction: "sign_transaction";
851
+ sign_personal_message: "sign_personal_message";
852
+ }>;
853
+ }, z.core.$strict>>;
854
+ }, z.core.$strict>>;
855
+ }, z.core.$strict>, z.ZodObject<{
856
+ source: z.ZodLiteral<"not_connected">;
857
+ deviceId: z.ZodString;
858
+ reason: z.ZodLiteral<"not_connected">;
859
+ }, z.core.$strict>, z.ZodObject<{
860
+ source: z.ZodLiteral<"session_ended">;
861
+ deviceId: z.ZodString;
862
+ reason: z.ZodEnum<{
863
+ invalid_session: "invalid_session";
864
+ timeout: "timeout";
865
+ transport_unavailable: "transport_unavailable";
866
+ }>;
867
+ }, z.core.$strict>], "source">;
868
+ export declare const mcpGetCapabilitiesToolOutputShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
869
+ source: z.ZodLiteral<"live">;
870
+ deviceId: z.ZodString;
871
+ capabilities: z.ZodArray<z.ZodObject<{
872
+ id: z.ZodLiteral<"sui">;
873
+ accounts: z.ZodArray<z.ZodObject<{
874
+ keyScheme: z.ZodLiteral<"ed25519">;
875
+ derivationPath: z.ZodLiteral<"m/44'/784'/0'/0'/0'">;
876
+ }, z.core.$strict>>;
877
+ methods: z.ZodArray<z.ZodNever>;
878
+ }, z.core.$strict>>;
879
+ signing: z.ZodOptional<z.ZodObject<{
880
+ authorization: z.ZodEnum<{
881
+ user: "user";
882
+ policy: "policy";
883
+ }>;
884
+ methods: z.ZodArray<z.ZodObject<{
885
+ chain: z.ZodLiteral<"sui">;
886
+ method: z.ZodEnum<{
887
+ sign_transaction: "sign_transaction";
888
+ sign_personal_message: "sign_personal_message";
889
+ }>;
890
+ }, z.core.$strict>>;
891
+ }, z.core.$strict>>;
892
+ }, z.core.$strict>, z.ZodObject<{
893
+ source: z.ZodLiteral<"not_connected">;
894
+ deviceId: z.ZodString;
895
+ reason: z.ZodLiteral<"not_connected">;
896
+ }, z.core.$strict>, z.ZodObject<{
897
+ source: z.ZodLiteral<"session_ended">;
898
+ deviceId: z.ZodString;
899
+ reason: z.ZodEnum<{
900
+ invalid_session: "invalid_session";
901
+ timeout: "timeout";
902
+ transport_unavailable: "transport_unavailable";
903
+ }>;
904
+ }, z.core.$strict>, z.ZodObject<{
905
+ source: z.ZodLiteral<"error">;
906
+ connected: z.ZodLiteral<false>;
907
+ error: z.ZodObject<{
908
+ code: z.ZodString;
909
+ message: z.ZodString;
910
+ retryable: z.ZodBoolean;
911
+ }, z.core.$strict>;
912
+ }, z.core.$strict>], "source">;
913
+ export declare const getAccountsSuccessOutputShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
914
+ source: z.ZodLiteral<"live">;
915
+ deviceId: z.ZodString;
916
+ accounts: z.ZodArray<z.ZodObject<{
917
+ chain: z.ZodLiteral<"sui">;
918
+ address: z.ZodString;
919
+ publicKey: z.ZodString;
920
+ keyScheme: z.ZodLiteral<"ed25519">;
921
+ derivationPath: z.ZodLiteral<"m/44'/784'/0'/0'/0'">;
922
+ }, z.core.$strict>>;
923
+ }, z.core.$strict>, z.ZodObject<{
924
+ source: z.ZodLiteral<"not_connected">;
925
+ deviceId: z.ZodString;
926
+ reason: z.ZodLiteral<"not_connected">;
927
+ }, z.core.$strict>, z.ZodObject<{
928
+ source: z.ZodLiteral<"session_ended">;
929
+ deviceId: z.ZodString;
930
+ reason: z.ZodEnum<{
931
+ invalid_session: "invalid_session";
932
+ timeout: "timeout";
933
+ transport_unavailable: "transport_unavailable";
934
+ }>;
935
+ }, z.core.$strict>], "source">;
936
+ export declare const getAccountsToolOutputShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
937
+ source: z.ZodLiteral<"live">;
938
+ deviceId: z.ZodString;
939
+ accounts: z.ZodArray<z.ZodObject<{
940
+ chain: z.ZodLiteral<"sui">;
941
+ address: z.ZodString;
942
+ publicKey: z.ZodString;
943
+ keyScheme: z.ZodLiteral<"ed25519">;
944
+ derivationPath: z.ZodLiteral<"m/44'/784'/0'/0'/0'">;
945
+ }, z.core.$strict>>;
946
+ }, z.core.$strict>, z.ZodObject<{
947
+ source: z.ZodLiteral<"not_connected">;
948
+ deviceId: z.ZodString;
949
+ reason: z.ZodLiteral<"not_connected">;
950
+ }, z.core.$strict>, z.ZodObject<{
951
+ source: z.ZodLiteral<"session_ended">;
952
+ deviceId: z.ZodString;
953
+ reason: z.ZodEnum<{
954
+ invalid_session: "invalid_session";
955
+ timeout: "timeout";
956
+ transport_unavailable: "transport_unavailable";
957
+ }>;
958
+ }, z.core.$strict>, z.ZodObject<{
959
+ source: z.ZodLiteral<"error">;
960
+ connected: z.ZodLiteral<false>;
961
+ error: z.ZodObject<{
962
+ code: z.ZodString;
963
+ message: z.ZodString;
964
+ retryable: z.ZodBoolean;
965
+ }, z.core.$strict>;
966
+ }, z.core.$strict>], "source">;
967
+ export declare const policyGetSuccessOutputShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
968
+ source: z.ZodLiteral<"live">;
969
+ deviceId: z.ZodString;
970
+ policy: z.ZodCustom<unknown, unknown>;
971
+ }, z.core.$strict>, z.ZodObject<{
972
+ source: z.ZodLiteral<"not_connected">;
973
+ deviceId: z.ZodString;
974
+ reason: z.ZodLiteral<"not_connected">;
975
+ }, z.core.$strict>, z.ZodObject<{
976
+ source: z.ZodLiteral<"session_ended">;
977
+ deviceId: z.ZodString;
978
+ reason: z.ZodEnum<{
979
+ invalid_session: "invalid_session";
980
+ timeout: "timeout";
981
+ transport_unavailable: "transport_unavailable";
982
+ }>;
983
+ }, z.core.$strict>], "source">;
984
+ export declare const policyGetToolOutputShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
985
+ source: z.ZodLiteral<"live">;
986
+ deviceId: z.ZodString;
987
+ policy: z.ZodCustom<unknown, unknown>;
988
+ }, z.core.$strict>, z.ZodObject<{
989
+ source: z.ZodLiteral<"not_connected">;
990
+ deviceId: z.ZodString;
991
+ reason: z.ZodLiteral<"not_connected">;
992
+ }, z.core.$strict>, z.ZodObject<{
993
+ source: z.ZodLiteral<"session_ended">;
994
+ deviceId: z.ZodString;
995
+ reason: z.ZodEnum<{
996
+ invalid_session: "invalid_session";
997
+ timeout: "timeout";
998
+ transport_unavailable: "transport_unavailable";
999
+ }>;
1000
+ }, z.core.$strict>, z.ZodObject<{
1001
+ source: z.ZodLiteral<"error">;
1002
+ connected: z.ZodLiteral<false>;
1003
+ error: z.ZodObject<{
1004
+ code: z.ZodString;
1005
+ message: z.ZodString;
1006
+ retryable: z.ZodBoolean;
1007
+ }, z.core.$strict>;
1008
+ }, z.core.$strict>], "source">;
1009
+ export declare const getApprovalHistorySuccessOutputShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
1010
+ source: z.ZodLiteral<"live">;
1011
+ deviceId: z.ZodString;
1012
+ records: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1013
+ seq: z.ZodString;
1014
+ uptimeMs: z.ZodString;
1015
+ timeSource: z.ZodLiteral<"uptime">;
1016
+ reasonCode: z.ZodString;
1017
+ eventKind: z.ZodLiteral<"policy_update">;
1018
+ result: z.ZodEnum<{
1019
+ applied: "applied";
1020
+ rejected: "rejected";
1021
+ timed_out: "timed_out";
1022
+ storage_error: "storage_error";
1023
+ }>;
1024
+ policyHash: z.ZodString;
1025
+ ruleCount: z.ZodNumber;
1026
+ highestAction: z.ZodEnum<{
1027
+ reject: "reject";
1028
+ sign: "sign";
1029
+ }>;
1030
+ }, z.core.$strict>, z.ZodObject<{
1031
+ seq: z.ZodString;
1032
+ uptimeMs: z.ZodString;
1033
+ timeSource: z.ZodLiteral<"uptime">;
1034
+ reasonCode: z.ZodString;
1035
+ eventKind: z.ZodLiteral<"signing">;
1036
+ recordKind: z.ZodLiteral<"confirmation">;
1037
+ authorization: z.ZodLiteral<"user">;
1038
+ confirmationKind: z.ZodEnum<{
1039
+ local_pin: "local_pin";
1040
+ physical_confirm: "physical_confirm";
1041
+ }>;
1042
+ chain: z.ZodString;
1043
+ method: z.ZodString;
1044
+ payloadDigest: z.ZodString;
1045
+ }, z.core.$strict>, z.ZodObject<{
1046
+ seq: z.ZodString;
1047
+ uptimeMs: z.ZodString;
1048
+ timeSource: z.ZodLiteral<"uptime">;
1049
+ reasonCode: z.ZodString;
1050
+ eventKind: z.ZodLiteral<"signing">;
1051
+ recordKind: z.ZodLiteral<"confirmation">;
1052
+ authorization: z.ZodLiteral<"policy">;
1053
+ confirmationKind: z.ZodLiteral<"policy">;
1054
+ chain: z.ZodString;
1055
+ method: z.ZodString;
1056
+ payloadDigest: z.ZodString;
1057
+ policyHash: z.ZodString;
1058
+ ruleRef: z.ZodString;
1059
+ }, z.core.$strict>, z.ZodObject<{
1060
+ seq: z.ZodString;
1061
+ uptimeMs: z.ZodString;
1062
+ timeSource: z.ZodLiteral<"uptime">;
1063
+ reasonCode: z.ZodString;
1064
+ eventKind: z.ZodLiteral<"signing">;
1065
+ recordKind: z.ZodLiteral<"terminal">;
1066
+ authorization: z.ZodEnum<{
1067
+ user: "user";
1068
+ policy: "policy";
1069
+ }>;
1070
+ terminalResult: z.ZodEnum<{
1071
+ signed: "signed";
1072
+ user_rejected: "user_rejected";
1073
+ user_timed_out: "user_timed_out";
1074
+ policy_rejected: "policy_rejected";
1075
+ signing_failed: "signing_failed";
1076
+ }>;
1077
+ chain: z.ZodString;
1078
+ method: z.ZodString;
1079
+ payloadDigest: z.ZodString;
1080
+ policyHash: z.ZodOptional<z.ZodString>;
1081
+ ruleRef: z.ZodOptional<z.ZodString>;
1082
+ }, z.core.$strict>]>>;
1083
+ hasMore: z.ZodBoolean;
1084
+ }, z.core.$strict>, z.ZodObject<{
1085
+ source: z.ZodLiteral<"not_connected">;
1086
+ deviceId: z.ZodString;
1087
+ reason: z.ZodLiteral<"not_connected">;
1088
+ }, z.core.$strict>, z.ZodObject<{
1089
+ source: z.ZodLiteral<"session_ended">;
1090
+ deviceId: z.ZodString;
1091
+ reason: z.ZodEnum<{
1092
+ invalid_session: "invalid_session";
1093
+ timeout: "timeout";
1094
+ transport_unavailable: "transport_unavailable";
1095
+ }>;
1096
+ }, z.core.$strict>], "source">;
1097
+ export declare const getApprovalHistoryToolOutputShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
1098
+ source: z.ZodLiteral<"live">;
1099
+ deviceId: z.ZodString;
1100
+ records: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1101
+ seq: z.ZodString;
1102
+ uptimeMs: z.ZodString;
1103
+ timeSource: z.ZodLiteral<"uptime">;
1104
+ reasonCode: z.ZodString;
1105
+ eventKind: z.ZodLiteral<"policy_update">;
1106
+ result: z.ZodEnum<{
1107
+ applied: "applied";
1108
+ rejected: "rejected";
1109
+ timed_out: "timed_out";
1110
+ storage_error: "storage_error";
1111
+ }>;
1112
+ policyHash: z.ZodString;
1113
+ ruleCount: z.ZodNumber;
1114
+ highestAction: z.ZodEnum<{
1115
+ reject: "reject";
1116
+ sign: "sign";
1117
+ }>;
1118
+ }, z.core.$strict>, z.ZodObject<{
1119
+ seq: z.ZodString;
1120
+ uptimeMs: z.ZodString;
1121
+ timeSource: z.ZodLiteral<"uptime">;
1122
+ reasonCode: z.ZodString;
1123
+ eventKind: z.ZodLiteral<"signing">;
1124
+ recordKind: z.ZodLiteral<"confirmation">;
1125
+ authorization: z.ZodLiteral<"user">;
1126
+ confirmationKind: z.ZodEnum<{
1127
+ local_pin: "local_pin";
1128
+ physical_confirm: "physical_confirm";
1129
+ }>;
1130
+ chain: z.ZodString;
1131
+ method: z.ZodString;
1132
+ payloadDigest: z.ZodString;
1133
+ }, z.core.$strict>, z.ZodObject<{
1134
+ seq: z.ZodString;
1135
+ uptimeMs: z.ZodString;
1136
+ timeSource: z.ZodLiteral<"uptime">;
1137
+ reasonCode: z.ZodString;
1138
+ eventKind: z.ZodLiteral<"signing">;
1139
+ recordKind: z.ZodLiteral<"confirmation">;
1140
+ authorization: z.ZodLiteral<"policy">;
1141
+ confirmationKind: z.ZodLiteral<"policy">;
1142
+ chain: z.ZodString;
1143
+ method: z.ZodString;
1144
+ payloadDigest: z.ZodString;
1145
+ policyHash: z.ZodString;
1146
+ ruleRef: z.ZodString;
1147
+ }, z.core.$strict>, z.ZodObject<{
1148
+ seq: z.ZodString;
1149
+ uptimeMs: z.ZodString;
1150
+ timeSource: z.ZodLiteral<"uptime">;
1151
+ reasonCode: z.ZodString;
1152
+ eventKind: z.ZodLiteral<"signing">;
1153
+ recordKind: z.ZodLiteral<"terminal">;
1154
+ authorization: z.ZodEnum<{
1155
+ user: "user";
1156
+ policy: "policy";
1157
+ }>;
1158
+ terminalResult: z.ZodEnum<{
1159
+ signed: "signed";
1160
+ user_rejected: "user_rejected";
1161
+ user_timed_out: "user_timed_out";
1162
+ policy_rejected: "policy_rejected";
1163
+ signing_failed: "signing_failed";
1164
+ }>;
1165
+ chain: z.ZodString;
1166
+ method: z.ZodString;
1167
+ payloadDigest: z.ZodString;
1168
+ policyHash: z.ZodOptional<z.ZodString>;
1169
+ ruleRef: z.ZodOptional<z.ZodString>;
1170
+ }, z.core.$strict>]>>;
1171
+ hasMore: z.ZodBoolean;
1172
+ }, z.core.$strict>, z.ZodObject<{
1173
+ source: z.ZodLiteral<"not_connected">;
1174
+ deviceId: z.ZodString;
1175
+ reason: z.ZodLiteral<"not_connected">;
1176
+ }, z.core.$strict>, z.ZodObject<{
1177
+ source: z.ZodLiteral<"session_ended">;
1178
+ deviceId: z.ZodString;
1179
+ reason: z.ZodEnum<{
1180
+ invalid_session: "invalid_session";
1181
+ timeout: "timeout";
1182
+ transport_unavailable: "transport_unavailable";
1183
+ }>;
1184
+ }, z.core.$strict>, z.ZodObject<{
1185
+ source: z.ZodLiteral<"error">;
1186
+ connected: z.ZodLiteral<false>;
1187
+ error: z.ZodObject<{
1188
+ code: z.ZodString;
1189
+ message: z.ZodString;
1190
+ retryable: z.ZodBoolean;
1191
+ }, z.core.$strict>;
1192
+ }, z.core.$strict>], "source">;
1193
+ export declare const signTransactionSuccessOutputShape: z.ZodUnion<readonly [z.ZodObject<{
1194
+ source: z.ZodLiteral<"live">;
1195
+ deviceId: z.ZodString;
1196
+ status: z.ZodLiteral<"signed">;
1197
+ authorization: z.ZodLiteral<"user">;
1198
+ chain: z.ZodLiteral<"sui">;
1199
+ method: z.ZodLiteral<"sign_transaction">;
1200
+ signature: z.ZodString;
1201
+ }, z.core.$strict>, z.ZodObject<{
1202
+ source: z.ZodLiteral<"live">;
1203
+ deviceId: z.ZodString;
1204
+ status: z.ZodLiteral<"signed">;
1205
+ chain: z.ZodLiteral<"sui">;
1206
+ method: z.ZodLiteral<"sign_transaction">;
1207
+ signature: z.ZodString;
1208
+ authorization: z.ZodLiteral<"policy">;
1209
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1210
+ source: z.ZodLiteral<"live">;
1211
+ deviceId: z.ZodString;
1212
+ status: z.ZodLiteral<"user_rejected">;
1213
+ authorization: z.ZodLiteral<"user">;
1214
+ error: z.ZodObject<{
1215
+ code: z.ZodEnum<{
1216
+ user_rejected: "user_rejected";
1217
+ user_timed_out: "user_timed_out";
1218
+ policy_rejected: "policy_rejected";
1219
+ signing_failed: "signing_failed";
1220
+ }>;
1221
+ message: z.ZodEnum<{
1222
+ [x: string]: string;
1223
+ }>;
1224
+ }, z.core.$strict>;
1225
+ }, z.core.$strict>, z.ZodObject<{
1226
+ source: z.ZodLiteral<"live">;
1227
+ deviceId: z.ZodString;
1228
+ status: z.ZodLiteral<"user_timed_out">;
1229
+ authorization: z.ZodLiteral<"user">;
1230
+ error: z.ZodObject<{
1231
+ code: z.ZodEnum<{
1232
+ user_rejected: "user_rejected";
1233
+ user_timed_out: "user_timed_out";
1234
+ policy_rejected: "policy_rejected";
1235
+ signing_failed: "signing_failed";
1236
+ }>;
1237
+ message: z.ZodEnum<{
1238
+ [x: string]: string;
1239
+ }>;
1240
+ }, z.core.$strict>;
1241
+ }, z.core.$strict>, z.ZodObject<{
1242
+ source: z.ZodLiteral<"live">;
1243
+ deviceId: z.ZodString;
1244
+ status: z.ZodLiteral<"signing_failed">;
1245
+ authorization: z.ZodLiteral<"user">;
1246
+ error: z.ZodObject<{
1247
+ code: z.ZodEnum<{
1248
+ user_rejected: "user_rejected";
1249
+ user_timed_out: "user_timed_out";
1250
+ policy_rejected: "policy_rejected";
1251
+ signing_failed: "signing_failed";
1252
+ }>;
1253
+ message: z.ZodEnum<{
1254
+ [x: string]: string;
1255
+ }>;
1256
+ }, z.core.$strict>;
1257
+ }, z.core.$strict>], "status">, z.ZodDiscriminatedUnion<[z.ZodObject<{
1258
+ source: z.ZodLiteral<"live">;
1259
+ deviceId: z.ZodString;
1260
+ status: z.ZodLiteral<"policy_rejected">;
1261
+ authorization: z.ZodLiteral<"policy">;
1262
+ policyHash: z.ZodString;
1263
+ ruleRef: z.ZodString;
1264
+ error: z.ZodObject<{
1265
+ code: z.ZodEnum<{
1266
+ user_rejected: "user_rejected";
1267
+ user_timed_out: "user_timed_out";
1268
+ policy_rejected: "policy_rejected";
1269
+ signing_failed: "signing_failed";
1270
+ }>;
1271
+ message: z.ZodEnum<{
1272
+ [x: string]: string;
1273
+ }>;
1274
+ }, z.core.$strict>;
1275
+ }, z.core.$strict>, z.ZodObject<{
1276
+ source: z.ZodLiteral<"live">;
1277
+ deviceId: z.ZodString;
1278
+ status: z.ZodLiteral<"signing_failed">;
1279
+ authorization: z.ZodLiteral<"policy">;
1280
+ error: z.ZodObject<{
1281
+ code: z.ZodEnum<{
1282
+ user_rejected: "user_rejected";
1283
+ user_timed_out: "user_timed_out";
1284
+ policy_rejected: "policy_rejected";
1285
+ signing_failed: "signing_failed";
1286
+ }>;
1287
+ message: z.ZodEnum<{
1288
+ [x: string]: string;
1289
+ }>;
1290
+ }, z.core.$strict>;
1291
+ }, z.core.$strict>], "status">, z.ZodObject<{
1292
+ source: z.ZodLiteral<"not_connected">;
1293
+ deviceId: z.ZodString;
1294
+ reason: z.ZodLiteral<"not_connected">;
1295
+ }, z.core.$strict>, z.ZodObject<{
1296
+ source: z.ZodLiteral<"session_ended">;
1297
+ deviceId: z.ZodString;
1298
+ reason: z.ZodEnum<{
1299
+ invalid_session: "invalid_session";
1300
+ timeout: "timeout";
1301
+ transport_unavailable: "transport_unavailable";
1302
+ }>;
1303
+ }, z.core.$strict>]>;
1304
+ export declare const signTransactionToolOutputShape: z.ZodUnion<readonly [z.ZodObject<{
1305
+ source: z.ZodLiteral<"live">;
1306
+ deviceId: z.ZodString;
1307
+ status: z.ZodLiteral<"signed">;
1308
+ authorization: z.ZodLiteral<"user">;
1309
+ chain: z.ZodLiteral<"sui">;
1310
+ method: z.ZodLiteral<"sign_transaction">;
1311
+ signature: z.ZodString;
1312
+ }, z.core.$strict>, z.ZodObject<{
1313
+ source: z.ZodLiteral<"live">;
1314
+ deviceId: z.ZodString;
1315
+ status: z.ZodLiteral<"signed">;
1316
+ chain: z.ZodLiteral<"sui">;
1317
+ method: z.ZodLiteral<"sign_transaction">;
1318
+ signature: z.ZodString;
1319
+ authorization: z.ZodLiteral<"policy">;
1320
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1321
+ source: z.ZodLiteral<"live">;
1322
+ deviceId: z.ZodString;
1323
+ status: z.ZodLiteral<"user_rejected">;
1324
+ authorization: z.ZodLiteral<"user">;
1325
+ error: z.ZodObject<{
1326
+ code: z.ZodEnum<{
1327
+ user_rejected: "user_rejected";
1328
+ user_timed_out: "user_timed_out";
1329
+ policy_rejected: "policy_rejected";
1330
+ signing_failed: "signing_failed";
1331
+ }>;
1332
+ message: z.ZodEnum<{
1333
+ [x: string]: string;
1334
+ }>;
1335
+ }, z.core.$strict>;
1336
+ }, z.core.$strict>, z.ZodObject<{
1337
+ source: z.ZodLiteral<"live">;
1338
+ deviceId: z.ZodString;
1339
+ status: z.ZodLiteral<"user_timed_out">;
1340
+ authorization: z.ZodLiteral<"user">;
1341
+ error: z.ZodObject<{
1342
+ code: z.ZodEnum<{
1343
+ user_rejected: "user_rejected";
1344
+ user_timed_out: "user_timed_out";
1345
+ policy_rejected: "policy_rejected";
1346
+ signing_failed: "signing_failed";
1347
+ }>;
1348
+ message: z.ZodEnum<{
1349
+ [x: string]: string;
1350
+ }>;
1351
+ }, z.core.$strict>;
1352
+ }, z.core.$strict>, z.ZodObject<{
1353
+ source: z.ZodLiteral<"live">;
1354
+ deviceId: z.ZodString;
1355
+ status: z.ZodLiteral<"signing_failed">;
1356
+ authorization: z.ZodLiteral<"user">;
1357
+ error: z.ZodObject<{
1358
+ code: z.ZodEnum<{
1359
+ user_rejected: "user_rejected";
1360
+ user_timed_out: "user_timed_out";
1361
+ policy_rejected: "policy_rejected";
1362
+ signing_failed: "signing_failed";
1363
+ }>;
1364
+ message: z.ZodEnum<{
1365
+ [x: string]: string;
1366
+ }>;
1367
+ }, z.core.$strict>;
1368
+ }, z.core.$strict>], "status">, z.ZodDiscriminatedUnion<[z.ZodObject<{
1369
+ source: z.ZodLiteral<"live">;
1370
+ deviceId: z.ZodString;
1371
+ status: z.ZodLiteral<"policy_rejected">;
1372
+ authorization: z.ZodLiteral<"policy">;
1373
+ policyHash: z.ZodString;
1374
+ ruleRef: z.ZodString;
1375
+ error: z.ZodObject<{
1376
+ code: z.ZodEnum<{
1377
+ user_rejected: "user_rejected";
1378
+ user_timed_out: "user_timed_out";
1379
+ policy_rejected: "policy_rejected";
1380
+ signing_failed: "signing_failed";
1381
+ }>;
1382
+ message: z.ZodEnum<{
1383
+ [x: string]: string;
1384
+ }>;
1385
+ }, z.core.$strict>;
1386
+ }, z.core.$strict>, z.ZodObject<{
1387
+ source: z.ZodLiteral<"live">;
1388
+ deviceId: z.ZodString;
1389
+ status: z.ZodLiteral<"signing_failed">;
1390
+ authorization: z.ZodLiteral<"policy">;
1391
+ error: z.ZodObject<{
1392
+ code: z.ZodEnum<{
1393
+ user_rejected: "user_rejected";
1394
+ user_timed_out: "user_timed_out";
1395
+ policy_rejected: "policy_rejected";
1396
+ signing_failed: "signing_failed";
1397
+ }>;
1398
+ message: z.ZodEnum<{
1399
+ [x: string]: string;
1400
+ }>;
1401
+ }, z.core.$strict>;
1402
+ }, z.core.$strict>], "status">, z.ZodObject<{
1403
+ source: z.ZodLiteral<"not_connected">;
1404
+ deviceId: z.ZodString;
1405
+ reason: z.ZodLiteral<"not_connected">;
1406
+ }, z.core.$strict>, z.ZodObject<{
1407
+ source: z.ZodLiteral<"session_ended">;
1408
+ deviceId: z.ZodString;
1409
+ reason: z.ZodEnum<{
1410
+ invalid_session: "invalid_session";
1411
+ timeout: "timeout";
1412
+ transport_unavailable: "transport_unavailable";
1413
+ }>;
1414
+ }, z.core.$strict>, z.ZodObject<{
1415
+ source: z.ZodLiteral<"error">;
1416
+ connected: z.ZodLiteral<false>;
1417
+ error: z.ZodObject<{
1418
+ code: z.ZodString;
1419
+ message: z.ZodString;
1420
+ retryable: z.ZodBoolean;
1421
+ }, z.core.$strict>;
1422
+ }, z.core.$strict>]>;
1423
+ export declare const signPersonalMessageSuccessOutputShape: z.ZodUnion<readonly [z.ZodObject<{
1424
+ source: z.ZodLiteral<"live">;
1425
+ deviceId: z.ZodString;
1426
+ status: z.ZodLiteral<"signed">;
1427
+ authorization: z.ZodLiteral<"user">;
1428
+ chain: z.ZodLiteral<"sui">;
1429
+ method: z.ZodLiteral<"sign_personal_message">;
1430
+ signature: z.ZodString;
1431
+ messageBytes: z.ZodString;
1432
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1433
+ source: z.ZodLiteral<"live">;
1434
+ deviceId: z.ZodString;
1435
+ status: z.ZodLiteral<"user_rejected">;
1436
+ authorization: z.ZodLiteral<"user">;
1437
+ error: z.ZodObject<{
1438
+ code: z.ZodEnum<{
1439
+ user_rejected: "user_rejected";
1440
+ user_timed_out: "user_timed_out";
1441
+ policy_rejected: "policy_rejected";
1442
+ signing_failed: "signing_failed";
1443
+ }>;
1444
+ message: z.ZodEnum<{
1445
+ [x: string]: string;
1446
+ }>;
1447
+ }, z.core.$strict>;
1448
+ }, z.core.$strict>, z.ZodObject<{
1449
+ source: z.ZodLiteral<"live">;
1450
+ deviceId: z.ZodString;
1451
+ status: z.ZodLiteral<"user_timed_out">;
1452
+ authorization: z.ZodLiteral<"user">;
1453
+ error: z.ZodObject<{
1454
+ code: z.ZodEnum<{
1455
+ user_rejected: "user_rejected";
1456
+ user_timed_out: "user_timed_out";
1457
+ policy_rejected: "policy_rejected";
1458
+ signing_failed: "signing_failed";
1459
+ }>;
1460
+ message: z.ZodEnum<{
1461
+ [x: string]: string;
1462
+ }>;
1463
+ }, z.core.$strict>;
1464
+ }, z.core.$strict>, z.ZodObject<{
1465
+ source: z.ZodLiteral<"live">;
1466
+ deviceId: z.ZodString;
1467
+ status: z.ZodLiteral<"signing_failed">;
1468
+ authorization: z.ZodLiteral<"user">;
1469
+ error: z.ZodObject<{
1470
+ code: z.ZodEnum<{
1471
+ user_rejected: "user_rejected";
1472
+ user_timed_out: "user_timed_out";
1473
+ policy_rejected: "policy_rejected";
1474
+ signing_failed: "signing_failed";
1475
+ }>;
1476
+ message: z.ZodEnum<{
1477
+ [x: string]: string;
1478
+ }>;
1479
+ }, z.core.$strict>;
1480
+ }, z.core.$strict>], "status">, z.ZodObject<{
1481
+ source: z.ZodLiteral<"not_connected">;
1482
+ deviceId: z.ZodString;
1483
+ reason: z.ZodLiteral<"not_connected">;
1484
+ }, z.core.$strict>, z.ZodObject<{
1485
+ source: z.ZodLiteral<"session_ended">;
1486
+ deviceId: z.ZodString;
1487
+ reason: z.ZodEnum<{
1488
+ invalid_session: "invalid_session";
1489
+ timeout: "timeout";
1490
+ transport_unavailable: "transport_unavailable";
1491
+ }>;
1492
+ }, z.core.$strict>]>;
1493
+ export declare const signPersonalMessageToolOutputShape: z.ZodUnion<readonly [z.ZodObject<{
1494
+ source: z.ZodLiteral<"live">;
1495
+ deviceId: z.ZodString;
1496
+ status: z.ZodLiteral<"signed">;
1497
+ authorization: z.ZodLiteral<"user">;
1498
+ chain: z.ZodLiteral<"sui">;
1499
+ method: z.ZodLiteral<"sign_personal_message">;
1500
+ signature: z.ZodString;
1501
+ messageBytes: z.ZodString;
1502
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1503
+ source: z.ZodLiteral<"live">;
1504
+ deviceId: z.ZodString;
1505
+ status: z.ZodLiteral<"user_rejected">;
1506
+ authorization: z.ZodLiteral<"user">;
1507
+ error: z.ZodObject<{
1508
+ code: z.ZodEnum<{
1509
+ user_rejected: "user_rejected";
1510
+ user_timed_out: "user_timed_out";
1511
+ policy_rejected: "policy_rejected";
1512
+ signing_failed: "signing_failed";
1513
+ }>;
1514
+ message: z.ZodEnum<{
1515
+ [x: string]: string;
1516
+ }>;
1517
+ }, z.core.$strict>;
1518
+ }, z.core.$strict>, z.ZodObject<{
1519
+ source: z.ZodLiteral<"live">;
1520
+ deviceId: z.ZodString;
1521
+ status: z.ZodLiteral<"user_timed_out">;
1522
+ authorization: z.ZodLiteral<"user">;
1523
+ error: z.ZodObject<{
1524
+ code: z.ZodEnum<{
1525
+ user_rejected: "user_rejected";
1526
+ user_timed_out: "user_timed_out";
1527
+ policy_rejected: "policy_rejected";
1528
+ signing_failed: "signing_failed";
1529
+ }>;
1530
+ message: z.ZodEnum<{
1531
+ [x: string]: string;
1532
+ }>;
1533
+ }, z.core.$strict>;
1534
+ }, z.core.$strict>, z.ZodObject<{
1535
+ source: z.ZodLiteral<"live">;
1536
+ deviceId: z.ZodString;
1537
+ status: z.ZodLiteral<"signing_failed">;
1538
+ authorization: z.ZodLiteral<"user">;
1539
+ error: z.ZodObject<{
1540
+ code: z.ZodEnum<{
1541
+ user_rejected: "user_rejected";
1542
+ user_timed_out: "user_timed_out";
1543
+ policy_rejected: "policy_rejected";
1544
+ signing_failed: "signing_failed";
1545
+ }>;
1546
+ message: z.ZodEnum<{
1547
+ [x: string]: string;
1548
+ }>;
1549
+ }, z.core.$strict>;
1550
+ }, z.core.$strict>], "status">, z.ZodObject<{
1551
+ source: z.ZodLiteral<"not_connected">;
1552
+ deviceId: z.ZodString;
1553
+ reason: z.ZodLiteral<"not_connected">;
1554
+ }, z.core.$strict>, z.ZodObject<{
1555
+ source: z.ZodLiteral<"session_ended">;
1556
+ deviceId: z.ZodString;
1557
+ reason: z.ZodEnum<{
1558
+ invalid_session: "invalid_session";
1559
+ timeout: "timeout";
1560
+ transport_unavailable: "transport_unavailable";
1561
+ }>;
1562
+ }, z.core.$strict>, z.ZodObject<{
1563
+ source: z.ZodLiteral<"error">;
1564
+ connected: z.ZodLiteral<false>;
1565
+ error: z.ZodObject<{
1566
+ code: z.ZodString;
1567
+ message: z.ZodString;
1568
+ retryable: z.ZodBoolean;
1569
+ }, z.core.$strict>;
1570
+ }, z.core.$strict>]>;
1571
+ export declare const policyProposeSuccessOutputShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
1572
+ source: z.ZodLiteral<"live">;
1573
+ deviceId: z.ZodString;
1574
+ status: z.ZodEnum<{
1575
+ applied: "applied";
1576
+ rejected: "rejected";
1577
+ timed_out: "timed_out";
1578
+ storage_error: "storage_error";
1579
+ invalid_policy: "invalid_policy";
1580
+ ui_error: "ui_error";
1581
+ consistency_error: "consistency_error";
1582
+ }>;
1583
+ reasonCode: z.ZodString;
1584
+ policy: z.ZodOptional<z.ZodObject<{
1585
+ policyHash: z.ZodString;
1586
+ ruleCount: z.ZodNumber;
1587
+ highestAction: z.ZodEnum<{
1588
+ reject: "reject";
1589
+ sign: "sign";
1590
+ }>;
1591
+ }, z.core.$strict>>;
1592
+ }, z.core.$strict>, z.ZodObject<{
1593
+ source: z.ZodLiteral<"not_connected">;
1594
+ deviceId: z.ZodString;
1595
+ reason: z.ZodLiteral<"not_connected">;
1596
+ }, z.core.$strict>, z.ZodObject<{
1597
+ source: z.ZodLiteral<"session_ended">;
1598
+ deviceId: z.ZodString;
1599
+ reason: z.ZodEnum<{
1600
+ invalid_session: "invalid_session";
1601
+ timeout: "timeout";
1602
+ transport_unavailable: "transport_unavailable";
1603
+ }>;
1604
+ }, z.core.$strict>], "source">;
1605
+ export declare const policyProposeToolOutputShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
1606
+ source: z.ZodLiteral<"live">;
1607
+ deviceId: z.ZodString;
1608
+ status: z.ZodEnum<{
1609
+ applied: "applied";
1610
+ rejected: "rejected";
1611
+ timed_out: "timed_out";
1612
+ storage_error: "storage_error";
1613
+ invalid_policy: "invalid_policy";
1614
+ ui_error: "ui_error";
1615
+ consistency_error: "consistency_error";
1616
+ }>;
1617
+ reasonCode: z.ZodString;
1618
+ policy: z.ZodOptional<z.ZodObject<{
1619
+ policyHash: z.ZodString;
1620
+ ruleCount: z.ZodNumber;
1621
+ highestAction: z.ZodEnum<{
1622
+ reject: "reject";
1623
+ sign: "sign";
1624
+ }>;
1625
+ }, z.core.$strict>>;
1626
+ }, z.core.$strict>, z.ZodObject<{
1627
+ source: z.ZodLiteral<"not_connected">;
1628
+ deviceId: z.ZodString;
1629
+ reason: z.ZodLiteral<"not_connected">;
1630
+ }, z.core.$strict>, z.ZodObject<{
1631
+ source: z.ZodLiteral<"session_ended">;
1632
+ deviceId: z.ZodString;
1633
+ reason: z.ZodEnum<{
1634
+ invalid_session: "invalid_session";
1635
+ timeout: "timeout";
1636
+ transport_unavailable: "transport_unavailable";
1637
+ }>;
1638
+ }, z.core.$strict>, z.ZodObject<{
1639
+ source: z.ZodLiteral<"error">;
1640
+ connected: z.ZodLiteral<false>;
1641
+ error: z.ZodObject<{
1642
+ code: z.ZodString;
1643
+ message: z.ZodString;
1644
+ retryable: z.ZodBoolean;
1645
+ }, z.core.$strict>;
1646
+ }, z.core.$strict>], "source">;
1647
+ export declare const getDeviceStatusSuccessOutputShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
1648
+ source: z.ZodLiteral<"live">;
1649
+ connected: z.ZodLiteral<true>;
1650
+ portPath: z.ZodString;
1651
+ protocolResponse: z.ZodObject<{
1652
+ id: z.ZodString;
1653
+ version: z.ZodLiteral<1>;
1654
+ type: z.ZodLiteral<"status">;
1655
+ device: z.ZodObject<{
1656
+ deviceId: z.ZodString;
1657
+ state: z.ZodEnum<{
1658
+ idle: "idle";
1659
+ busy: "busy";
1660
+ awaiting_approval: "awaiting_approval";
1661
+ locked: "locked";
1662
+ error: "error";
1663
+ }>;
1664
+ firmwareName: z.ZodString;
1665
+ hardware: z.ZodString;
1666
+ firmwareVersion: z.ZodString;
1667
+ }, z.core.$strict>;
1668
+ provisioning: z.ZodObject<{
1669
+ state: z.ZodEnum<{
1670
+ locked: "locked";
1671
+ error: "error";
1672
+ unprovisioned: "unprovisioned";
1673
+ provisioning: "provisioning";
1674
+ provisioned: "provisioned";
1675
+ }>;
1676
+ }, z.core.$strict>;
1677
+ }, z.core.$strict>;
1678
+ }, z.core.$strict>, z.ZodObject<{
1679
+ source: z.ZodLiteral<"cached">;
1680
+ connected: z.ZodLiteral<false>;
1681
+ statusObservedAt: z.ZodString;
1682
+ unavailableReason: z.ZodEnum<{
1683
+ incompatible_version: "incompatible_version";
1684
+ timeout: "timeout";
1685
+ handshake_failed: "handshake_failed";
1686
+ port_not_found: "port_not_found";
1687
+ port_in_use: "port_in_use";
1688
+ port_permission_denied: "port_permission_denied";
1689
+ transport_closed: "transport_closed";
1690
+ }>;
1691
+ firmwareErrorCode: z.ZodOptional<z.ZodString>;
1692
+ cachedStatus: z.ZodObject<{
1693
+ device: z.ZodObject<{
1694
+ deviceId: z.ZodString;
1695
+ state: z.ZodEnum<{
1696
+ idle: "idle";
1697
+ busy: "busy";
1698
+ awaiting_approval: "awaiting_approval";
1699
+ locked: "locked";
1700
+ error: "error";
1701
+ }>;
1702
+ firmwareName: z.ZodString;
1703
+ hardware: z.ZodString;
1704
+ firmwareVersion: z.ZodString;
1705
+ }, z.core.$strict>;
1706
+ provisioning: z.ZodObject<{
1707
+ state: z.ZodEnum<{
1708
+ locked: "locked";
1709
+ error: "error";
1710
+ unprovisioned: "unprovisioned";
1711
+ provisioning: "provisioning";
1712
+ provisioned: "provisioned";
1713
+ }>;
1714
+ }, z.core.$strict>;
1715
+ }, z.core.$strict>;
1716
+ }, z.core.$strict>], "source">;
1717
+ export declare const getDeviceStatusToolOutputShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
1718
+ source: z.ZodLiteral<"live">;
1719
+ connected: z.ZodLiteral<true>;
1720
+ portPath: z.ZodString;
1721
+ protocolResponse: z.ZodObject<{
1722
+ id: z.ZodString;
1723
+ version: z.ZodLiteral<1>;
1724
+ type: z.ZodLiteral<"status">;
1725
+ device: z.ZodObject<{
1726
+ deviceId: z.ZodString;
1727
+ state: z.ZodEnum<{
1728
+ idle: "idle";
1729
+ busy: "busy";
1730
+ awaiting_approval: "awaiting_approval";
1731
+ locked: "locked";
1732
+ error: "error";
1733
+ }>;
1734
+ firmwareName: z.ZodString;
1735
+ hardware: z.ZodString;
1736
+ firmwareVersion: z.ZodString;
1737
+ }, z.core.$strict>;
1738
+ provisioning: z.ZodObject<{
1739
+ state: z.ZodEnum<{
1740
+ locked: "locked";
1741
+ error: "error";
1742
+ unprovisioned: "unprovisioned";
1743
+ provisioning: "provisioning";
1744
+ provisioned: "provisioned";
1745
+ }>;
1746
+ }, z.core.$strict>;
1747
+ }, z.core.$strict>;
1748
+ }, z.core.$strict>, z.ZodObject<{
1749
+ source: z.ZodLiteral<"cached">;
1750
+ connected: z.ZodLiteral<false>;
1751
+ statusObservedAt: z.ZodString;
1752
+ unavailableReason: z.ZodEnum<{
1753
+ incompatible_version: "incompatible_version";
1754
+ timeout: "timeout";
1755
+ handshake_failed: "handshake_failed";
1756
+ port_not_found: "port_not_found";
1757
+ port_in_use: "port_in_use";
1758
+ port_permission_denied: "port_permission_denied";
1759
+ transport_closed: "transport_closed";
1760
+ }>;
1761
+ firmwareErrorCode: z.ZodOptional<z.ZodString>;
1762
+ cachedStatus: z.ZodObject<{
1763
+ device: z.ZodObject<{
1764
+ deviceId: z.ZodString;
1765
+ state: z.ZodEnum<{
1766
+ idle: "idle";
1767
+ busy: "busy";
1768
+ awaiting_approval: "awaiting_approval";
1769
+ locked: "locked";
1770
+ error: "error";
1771
+ }>;
1772
+ firmwareName: z.ZodString;
1773
+ hardware: z.ZodString;
1774
+ firmwareVersion: z.ZodString;
1775
+ }, z.core.$strict>;
1776
+ provisioning: z.ZodObject<{
1777
+ state: z.ZodEnum<{
1778
+ locked: "locked";
1779
+ error: "error";
1780
+ unprovisioned: "unprovisioned";
1781
+ provisioning: "provisioning";
1782
+ provisioned: "provisioned";
1783
+ }>;
1784
+ }, z.core.$strict>;
1785
+ }, z.core.$strict>;
1786
+ }, z.core.$strict>, z.ZodObject<{
1787
+ source: z.ZodLiteral<"error">;
1788
+ connected: z.ZodLiteral<false>;
1789
+ error: z.ZodObject<{
1790
+ code: z.ZodString;
1791
+ message: z.ZodString;
1792
+ retryable: z.ZodBoolean;
1793
+ }, z.core.$strict>;
1794
+ }, z.core.$strict>], "source">;
1795
+ export declare const hostSuccessOutputSchemas: {
1796
+ readonly scanDevices: z.ZodObject<{
1797
+ source: z.ZodLiteral<"live">;
1798
+ devices: z.ZodArray<z.ZodObject<{
1799
+ source: z.ZodLiteral<"live">;
1800
+ connected: z.ZodLiteral<true>;
1801
+ portPath: z.ZodString;
1802
+ protocolResponse: z.ZodObject<{
1803
+ id: z.ZodString;
1804
+ version: z.ZodLiteral<1>;
1805
+ type: z.ZodLiteral<"status">;
1806
+ device: z.ZodObject<{
1807
+ deviceId: z.ZodString;
1808
+ state: z.ZodEnum<{
1809
+ idle: "idle";
1810
+ busy: "busy";
1811
+ awaiting_approval: "awaiting_approval";
1812
+ locked: "locked";
1813
+ error: "error";
1814
+ }>;
1815
+ firmwareName: z.ZodString;
1816
+ hardware: z.ZodString;
1817
+ firmwareVersion: z.ZodString;
1818
+ }, z.core.$strict>;
1819
+ provisioning: z.ZodObject<{
1820
+ state: z.ZodEnum<{
1821
+ locked: "locked";
1822
+ error: "error";
1823
+ unprovisioned: "unprovisioned";
1824
+ provisioning: "provisioning";
1825
+ provisioned: "provisioned";
1826
+ }>;
1827
+ }, z.core.$strict>;
1828
+ }, z.core.$strict>;
1829
+ }, z.core.$strict>>;
1830
+ failures: z.ZodArray<z.ZodObject<{
1831
+ source: z.ZodLiteral<"error">;
1832
+ connected: z.ZodLiteral<false>;
1833
+ portPath: z.ZodString;
1834
+ unavailableReason: z.ZodEnum<{
1835
+ incompatible_version: "incompatible_version";
1836
+ timeout: "timeout";
1837
+ handshake_failed: "handshake_failed";
1838
+ port_not_found: "port_not_found";
1839
+ port_in_use: "port_in_use";
1840
+ port_permission_denied: "port_permission_denied";
1841
+ transport_closed: "transport_closed";
1842
+ }>;
1843
+ firmwareErrorCode: z.ZodOptional<z.ZodString>;
1844
+ }, z.core.$strict>>;
1845
+ activeDeviceId: z.ZodNullable<z.ZodString>;
1846
+ }, z.core.$strict>;
1847
+ readonly identifyDevices: z.ZodObject<{
1848
+ source: z.ZodLiteral<"live">;
1849
+ devices: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1850
+ source: z.ZodLiteral<"live">;
1851
+ connected: z.ZodLiteral<true>;
1852
+ portPath: z.ZodString;
1853
+ status: z.ZodLiteral<"displayed">;
1854
+ code: z.ZodString;
1855
+ protocolResponse: z.ZodObject<{
1856
+ id: z.ZodString;
1857
+ version: z.ZodLiteral<1>;
1858
+ type: z.ZodLiteral<"identify_device_result">;
1859
+ status: z.ZodLiteral<"displayed">;
1860
+ code: z.ZodString;
1861
+ device: z.ZodObject<{
1862
+ deviceId: z.ZodString;
1863
+ state: z.ZodEnum<{
1864
+ idle: "idle";
1865
+ busy: "busy";
1866
+ awaiting_approval: "awaiting_approval";
1867
+ locked: "locked";
1868
+ error: "error";
1869
+ }>;
1870
+ firmwareName: z.ZodString;
1871
+ hardware: z.ZodString;
1872
+ firmwareVersion: z.ZodString;
1873
+ }, z.core.$strict>;
1874
+ }, z.core.$strict>;
1875
+ }, z.core.$strict>, z.ZodObject<{
1876
+ source: z.ZodLiteral<"error">;
1877
+ connected: z.ZodLiteral<false>;
1878
+ portPath: z.ZodString;
1879
+ deviceId: z.ZodString;
1880
+ status: z.ZodLiteral<"error">;
1881
+ error: z.ZodObject<{
1882
+ code: z.ZodString;
1883
+ message: z.ZodString;
1884
+ retryable: z.ZodBoolean;
1885
+ }, z.core.$strict>;
1886
+ }, z.core.$strict>], "source">>;
1887
+ activeDeviceId: z.ZodNullable<z.ZodString>;
1888
+ }, z.core.$strict>;
1889
+ readonly selectDevice: z.ZodObject<{
1890
+ source: z.ZodLiteral<"selected">;
1891
+ activeDeviceId: z.ZodString;
1892
+ purpose: z.ZodNullable<z.ZodString>;
1893
+ device: z.ZodObject<{
1894
+ deviceId: z.ZodString;
1895
+ state: z.ZodEnum<{
1896
+ idle: "idle";
1897
+ busy: "busy";
1898
+ awaiting_approval: "awaiting_approval";
1899
+ locked: "locked";
1900
+ error: "error";
1901
+ }>;
1902
+ firmwareName: z.ZodString;
1903
+ hardware: z.ZodString;
1904
+ firmwareVersion: z.ZodString;
1905
+ }, z.core.$strict>;
1906
+ }, z.core.$strict>;
1907
+ readonly getDeviceStatus: z.ZodDiscriminatedUnion<[z.ZodObject<{
1908
+ source: z.ZodLiteral<"live">;
1909
+ connected: z.ZodLiteral<true>;
1910
+ portPath: z.ZodString;
1911
+ protocolResponse: z.ZodObject<{
1912
+ id: z.ZodString;
1913
+ version: z.ZodLiteral<1>;
1914
+ type: z.ZodLiteral<"status">;
1915
+ device: z.ZodObject<{
1916
+ deviceId: z.ZodString;
1917
+ state: z.ZodEnum<{
1918
+ idle: "idle";
1919
+ busy: "busy";
1920
+ awaiting_approval: "awaiting_approval";
1921
+ locked: "locked";
1922
+ error: "error";
1923
+ }>;
1924
+ firmwareName: z.ZodString;
1925
+ hardware: z.ZodString;
1926
+ firmwareVersion: z.ZodString;
1927
+ }, z.core.$strict>;
1928
+ provisioning: z.ZodObject<{
1929
+ state: z.ZodEnum<{
1930
+ locked: "locked";
1931
+ error: "error";
1932
+ unprovisioned: "unprovisioned";
1933
+ provisioning: "provisioning";
1934
+ provisioned: "provisioned";
1935
+ }>;
1936
+ }, z.core.$strict>;
1937
+ }, z.core.$strict>;
1938
+ }, z.core.$strict>, z.ZodObject<{
1939
+ source: z.ZodLiteral<"cached">;
1940
+ connected: z.ZodLiteral<false>;
1941
+ statusObservedAt: z.ZodString;
1942
+ unavailableReason: z.ZodEnum<{
1943
+ incompatible_version: "incompatible_version";
1944
+ timeout: "timeout";
1945
+ handshake_failed: "handshake_failed";
1946
+ port_not_found: "port_not_found";
1947
+ port_in_use: "port_in_use";
1948
+ port_permission_denied: "port_permission_denied";
1949
+ transport_closed: "transport_closed";
1950
+ }>;
1951
+ firmwareErrorCode: z.ZodOptional<z.ZodString>;
1952
+ cachedStatus: z.ZodObject<{
1953
+ device: z.ZodObject<{
1954
+ deviceId: z.ZodString;
1955
+ state: z.ZodEnum<{
1956
+ idle: "idle";
1957
+ busy: "busy";
1958
+ awaiting_approval: "awaiting_approval";
1959
+ locked: "locked";
1960
+ error: "error";
1961
+ }>;
1962
+ firmwareName: z.ZodString;
1963
+ hardware: z.ZodString;
1964
+ firmwareVersion: z.ZodString;
1965
+ }, z.core.$strict>;
1966
+ provisioning: z.ZodObject<{
1967
+ state: z.ZodEnum<{
1968
+ locked: "locked";
1969
+ error: "error";
1970
+ unprovisioned: "unprovisioned";
1971
+ provisioning: "provisioning";
1972
+ provisioned: "provisioned";
1973
+ }>;
1974
+ }, z.core.$strict>;
1975
+ }, z.core.$strict>;
1976
+ }, z.core.$strict>], "source">;
1977
+ readonly listDevices: z.ZodObject<{
1978
+ source: z.ZodLiteral<"list">;
1979
+ devices: z.ZodArray<z.ZodObject<{
1980
+ deviceId: z.ZodString;
1981
+ transport: z.ZodLiteral<"usb">;
1982
+ lastPortHint: z.ZodString;
1983
+ lastSeenAt: z.ZodString;
1984
+ label: z.ZodNullable<z.ZodString>;
1985
+ lastStatus: z.ZodObject<{
1986
+ device: z.ZodObject<{
1987
+ deviceId: z.ZodString;
1988
+ state: z.ZodEnum<{
1989
+ idle: "idle";
1990
+ busy: "busy";
1991
+ awaiting_approval: "awaiting_approval";
1992
+ locked: "locked";
1993
+ error: "error";
1994
+ }>;
1995
+ firmwareName: z.ZodString;
1996
+ hardware: z.ZodString;
1997
+ firmwareVersion: z.ZodString;
1998
+ }, z.core.$strict>;
1999
+ provisioning: z.ZodObject<{
2000
+ state: z.ZodEnum<{
2001
+ locked: "locked";
2002
+ error: "error";
2003
+ unprovisioned: "unprovisioned";
2004
+ provisioning: "provisioning";
2005
+ provisioned: "provisioned";
2006
+ }>;
2007
+ }, z.core.$strict>;
2008
+ }, z.core.$strict>;
2009
+ assignedPurposes: z.ZodArray<z.ZodString>;
2010
+ isDefaultActive: z.ZodBoolean;
2011
+ runtimeSession: z.ZodNullable<z.ZodObject<{
2012
+ sessionTtlMs: z.ZodNumber;
2013
+ connectedAt: z.ZodString;
2014
+ }, z.core.$strict>>;
2015
+ }, z.core.$strict>>;
2016
+ activeDeviceId: z.ZodNullable<z.ZodString>;
2017
+ activeDeviceIdsByPurpose: z.ZodRecord<z.ZodString, z.ZodString>;
2018
+ }, z.core.$strict>;
2019
+ readonly setDeviceMetadata: z.ZodObject<{
2020
+ source: z.ZodLiteral<"metadata">;
2021
+ deviceId: z.ZodString;
2022
+ label: z.ZodNullable<z.ZodString>;
2023
+ }, z.core.$strict>;
2024
+ readonly connectDevice: z.ZodObject<{
2025
+ source: z.ZodLiteral<"connected">;
2026
+ deviceId: z.ZodString;
2027
+ sessionTtlMs: z.ZodNumber;
2028
+ connectedAt: z.ZodString;
2029
+ device: z.ZodObject<{
2030
+ deviceId: z.ZodString;
2031
+ state: z.ZodEnum<{
2032
+ idle: "idle";
2033
+ busy: "busy";
2034
+ awaiting_approval: "awaiting_approval";
2035
+ locked: "locked";
2036
+ error: "error";
2037
+ }>;
2038
+ firmwareName: z.ZodString;
2039
+ hardware: z.ZodString;
2040
+ firmwareVersion: z.ZodString;
2041
+ }, z.core.$strict>;
2042
+ }, z.core.$strict>;
2043
+ readonly disconnectDevice: z.ZodObject<{
2044
+ source: z.ZodEnum<{
2045
+ disconnected: "disconnected";
2046
+ not_connected: "not_connected";
2047
+ }>;
2048
+ deviceId: z.ZodString;
2049
+ reason: z.ZodEnum<{
2050
+ invalid_session: "invalid_session";
2051
+ timeout: "timeout";
2052
+ firmware_confirmed: "firmware_confirmed";
2053
+ transport_unavailable: "transport_unavailable";
2054
+ not_connected: "not_connected";
2055
+ }>;
2056
+ }, z.core.$strict>;
2057
+ readonly getCapabilities: z.ZodDiscriminatedUnion<[z.ZodObject<{
2058
+ source: z.ZodLiteral<"live">;
2059
+ deviceId: z.ZodString;
2060
+ capabilities: z.ZodArray<z.ZodObject<{
2061
+ id: z.ZodLiteral<"sui">;
2062
+ accounts: z.ZodArray<z.ZodObject<{
2063
+ keyScheme: z.ZodLiteral<"ed25519">;
2064
+ derivationPath: z.ZodLiteral<"m/44'/784'/0'/0'/0'">;
2065
+ }, z.core.$strict>>;
2066
+ methods: z.ZodArray<z.ZodNever>;
2067
+ }, z.core.$strict>>;
2068
+ signing: z.ZodOptional<z.ZodObject<{
2069
+ authorization: z.ZodEnum<{
2070
+ user: "user";
2071
+ policy: "policy";
2072
+ }>;
2073
+ methods: z.ZodArray<z.ZodObject<{
2074
+ chain: z.ZodLiteral<"sui">;
2075
+ method: z.ZodEnum<{
2076
+ sign_transaction: "sign_transaction";
2077
+ sign_personal_message: "sign_personal_message";
2078
+ }>;
2079
+ }, z.core.$strict>>;
2080
+ }, z.core.$strict>>;
2081
+ }, z.core.$strict>, z.ZodObject<{
2082
+ source: z.ZodLiteral<"not_connected">;
2083
+ deviceId: z.ZodString;
2084
+ reason: z.ZodLiteral<"not_connected">;
2085
+ }, z.core.$strict>, z.ZodObject<{
2086
+ source: z.ZodLiteral<"session_ended">;
2087
+ deviceId: z.ZodString;
2088
+ reason: z.ZodEnum<{
2089
+ invalid_session: "invalid_session";
2090
+ timeout: "timeout";
2091
+ transport_unavailable: "transport_unavailable";
2092
+ }>;
2093
+ }, z.core.$strict>], "source">;
2094
+ readonly getAccounts: z.ZodDiscriminatedUnion<[z.ZodObject<{
2095
+ source: z.ZodLiteral<"live">;
2096
+ deviceId: z.ZodString;
2097
+ accounts: z.ZodArray<z.ZodObject<{
2098
+ chain: z.ZodLiteral<"sui">;
2099
+ address: z.ZodString;
2100
+ publicKey: z.ZodString;
2101
+ keyScheme: z.ZodLiteral<"ed25519">;
2102
+ derivationPath: z.ZodLiteral<"m/44'/784'/0'/0'/0'">;
2103
+ }, z.core.$strict>>;
2104
+ }, z.core.$strict>, z.ZodObject<{
2105
+ source: z.ZodLiteral<"not_connected">;
2106
+ deviceId: z.ZodString;
2107
+ reason: z.ZodLiteral<"not_connected">;
2108
+ }, z.core.$strict>, z.ZodObject<{
2109
+ source: z.ZodLiteral<"session_ended">;
2110
+ deviceId: z.ZodString;
2111
+ reason: z.ZodEnum<{
2112
+ invalid_session: "invalid_session";
2113
+ timeout: "timeout";
2114
+ transport_unavailable: "transport_unavailable";
2115
+ }>;
2116
+ }, z.core.$strict>], "source">;
2117
+ readonly policyGet: z.ZodDiscriminatedUnion<[z.ZodObject<{
2118
+ source: z.ZodLiteral<"live">;
2119
+ deviceId: z.ZodString;
2120
+ policy: z.ZodCustom<unknown, unknown>;
2121
+ }, z.core.$strict>, z.ZodObject<{
2122
+ source: z.ZodLiteral<"not_connected">;
2123
+ deviceId: z.ZodString;
2124
+ reason: z.ZodLiteral<"not_connected">;
2125
+ }, z.core.$strict>, z.ZodObject<{
2126
+ source: z.ZodLiteral<"session_ended">;
2127
+ deviceId: z.ZodString;
2128
+ reason: z.ZodEnum<{
2129
+ invalid_session: "invalid_session";
2130
+ timeout: "timeout";
2131
+ transport_unavailable: "transport_unavailable";
2132
+ }>;
2133
+ }, z.core.$strict>], "source">;
2134
+ readonly getApprovalHistory: z.ZodDiscriminatedUnion<[z.ZodObject<{
2135
+ source: z.ZodLiteral<"live">;
2136
+ deviceId: z.ZodString;
2137
+ records: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2138
+ seq: z.ZodString;
2139
+ uptimeMs: z.ZodString;
2140
+ timeSource: z.ZodLiteral<"uptime">;
2141
+ reasonCode: z.ZodString;
2142
+ eventKind: z.ZodLiteral<"policy_update">;
2143
+ result: z.ZodEnum<{
2144
+ applied: "applied";
2145
+ rejected: "rejected";
2146
+ timed_out: "timed_out";
2147
+ storage_error: "storage_error";
2148
+ }>;
2149
+ policyHash: z.ZodString;
2150
+ ruleCount: z.ZodNumber;
2151
+ highestAction: z.ZodEnum<{
2152
+ reject: "reject";
2153
+ sign: "sign";
2154
+ }>;
2155
+ }, z.core.$strict>, z.ZodObject<{
2156
+ seq: z.ZodString;
2157
+ uptimeMs: z.ZodString;
2158
+ timeSource: z.ZodLiteral<"uptime">;
2159
+ reasonCode: z.ZodString;
2160
+ eventKind: z.ZodLiteral<"signing">;
2161
+ recordKind: z.ZodLiteral<"confirmation">;
2162
+ authorization: z.ZodLiteral<"user">;
2163
+ confirmationKind: z.ZodEnum<{
2164
+ local_pin: "local_pin";
2165
+ physical_confirm: "physical_confirm";
2166
+ }>;
2167
+ chain: z.ZodString;
2168
+ method: z.ZodString;
2169
+ payloadDigest: z.ZodString;
2170
+ }, z.core.$strict>, z.ZodObject<{
2171
+ seq: z.ZodString;
2172
+ uptimeMs: z.ZodString;
2173
+ timeSource: z.ZodLiteral<"uptime">;
2174
+ reasonCode: z.ZodString;
2175
+ eventKind: z.ZodLiteral<"signing">;
2176
+ recordKind: z.ZodLiteral<"confirmation">;
2177
+ authorization: z.ZodLiteral<"policy">;
2178
+ confirmationKind: z.ZodLiteral<"policy">;
2179
+ chain: z.ZodString;
2180
+ method: z.ZodString;
2181
+ payloadDigest: z.ZodString;
2182
+ policyHash: z.ZodString;
2183
+ ruleRef: z.ZodString;
2184
+ }, z.core.$strict>, z.ZodObject<{
2185
+ seq: z.ZodString;
2186
+ uptimeMs: z.ZodString;
2187
+ timeSource: z.ZodLiteral<"uptime">;
2188
+ reasonCode: z.ZodString;
2189
+ eventKind: z.ZodLiteral<"signing">;
2190
+ recordKind: z.ZodLiteral<"terminal">;
2191
+ authorization: z.ZodEnum<{
2192
+ user: "user";
2193
+ policy: "policy";
2194
+ }>;
2195
+ terminalResult: z.ZodEnum<{
2196
+ signed: "signed";
2197
+ user_rejected: "user_rejected";
2198
+ user_timed_out: "user_timed_out";
2199
+ policy_rejected: "policy_rejected";
2200
+ signing_failed: "signing_failed";
2201
+ }>;
2202
+ chain: z.ZodString;
2203
+ method: z.ZodString;
2204
+ payloadDigest: z.ZodString;
2205
+ policyHash: z.ZodOptional<z.ZodString>;
2206
+ ruleRef: z.ZodOptional<z.ZodString>;
2207
+ }, z.core.$strict>]>>;
2208
+ hasMore: z.ZodBoolean;
2209
+ }, z.core.$strict>, z.ZodObject<{
2210
+ source: z.ZodLiteral<"not_connected">;
2211
+ deviceId: z.ZodString;
2212
+ reason: z.ZodLiteral<"not_connected">;
2213
+ }, z.core.$strict>, z.ZodObject<{
2214
+ source: z.ZodLiteral<"session_ended">;
2215
+ deviceId: z.ZodString;
2216
+ reason: z.ZodEnum<{
2217
+ invalid_session: "invalid_session";
2218
+ timeout: "timeout";
2219
+ transport_unavailable: "transport_unavailable";
2220
+ }>;
2221
+ }, z.core.$strict>], "source">;
2222
+ readonly signTransaction: z.ZodUnion<readonly [z.ZodObject<{
2223
+ source: z.ZodLiteral<"live">;
2224
+ deviceId: z.ZodString;
2225
+ status: z.ZodLiteral<"signed">;
2226
+ authorization: z.ZodLiteral<"user">;
2227
+ chain: z.ZodLiteral<"sui">;
2228
+ method: z.ZodLiteral<"sign_transaction">;
2229
+ signature: z.ZodString;
2230
+ }, z.core.$strict>, z.ZodObject<{
2231
+ source: z.ZodLiteral<"live">;
2232
+ deviceId: z.ZodString;
2233
+ status: z.ZodLiteral<"signed">;
2234
+ chain: z.ZodLiteral<"sui">;
2235
+ method: z.ZodLiteral<"sign_transaction">;
2236
+ signature: z.ZodString;
2237
+ authorization: z.ZodLiteral<"policy">;
2238
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
2239
+ source: z.ZodLiteral<"live">;
2240
+ deviceId: z.ZodString;
2241
+ status: z.ZodLiteral<"user_rejected">;
2242
+ authorization: z.ZodLiteral<"user">;
2243
+ error: z.ZodObject<{
2244
+ code: z.ZodEnum<{
2245
+ user_rejected: "user_rejected";
2246
+ user_timed_out: "user_timed_out";
2247
+ policy_rejected: "policy_rejected";
2248
+ signing_failed: "signing_failed";
2249
+ }>;
2250
+ message: z.ZodEnum<{
2251
+ [x: string]: string;
2252
+ }>;
2253
+ }, z.core.$strict>;
2254
+ }, z.core.$strict>, z.ZodObject<{
2255
+ source: z.ZodLiteral<"live">;
2256
+ deviceId: z.ZodString;
2257
+ status: z.ZodLiteral<"user_timed_out">;
2258
+ authorization: z.ZodLiteral<"user">;
2259
+ error: z.ZodObject<{
2260
+ code: z.ZodEnum<{
2261
+ user_rejected: "user_rejected";
2262
+ user_timed_out: "user_timed_out";
2263
+ policy_rejected: "policy_rejected";
2264
+ signing_failed: "signing_failed";
2265
+ }>;
2266
+ message: z.ZodEnum<{
2267
+ [x: string]: string;
2268
+ }>;
2269
+ }, z.core.$strict>;
2270
+ }, z.core.$strict>, z.ZodObject<{
2271
+ source: z.ZodLiteral<"live">;
2272
+ deviceId: z.ZodString;
2273
+ status: z.ZodLiteral<"signing_failed">;
2274
+ authorization: z.ZodLiteral<"user">;
2275
+ error: z.ZodObject<{
2276
+ code: z.ZodEnum<{
2277
+ user_rejected: "user_rejected";
2278
+ user_timed_out: "user_timed_out";
2279
+ policy_rejected: "policy_rejected";
2280
+ signing_failed: "signing_failed";
2281
+ }>;
2282
+ message: z.ZodEnum<{
2283
+ [x: string]: string;
2284
+ }>;
2285
+ }, z.core.$strict>;
2286
+ }, z.core.$strict>], "status">, z.ZodDiscriminatedUnion<[z.ZodObject<{
2287
+ source: z.ZodLiteral<"live">;
2288
+ deviceId: z.ZodString;
2289
+ status: z.ZodLiteral<"policy_rejected">;
2290
+ authorization: z.ZodLiteral<"policy">;
2291
+ policyHash: z.ZodString;
2292
+ ruleRef: z.ZodString;
2293
+ error: z.ZodObject<{
2294
+ code: z.ZodEnum<{
2295
+ user_rejected: "user_rejected";
2296
+ user_timed_out: "user_timed_out";
2297
+ policy_rejected: "policy_rejected";
2298
+ signing_failed: "signing_failed";
2299
+ }>;
2300
+ message: z.ZodEnum<{
2301
+ [x: string]: string;
2302
+ }>;
2303
+ }, z.core.$strict>;
2304
+ }, z.core.$strict>, z.ZodObject<{
2305
+ source: z.ZodLiteral<"live">;
2306
+ deviceId: z.ZodString;
2307
+ status: z.ZodLiteral<"signing_failed">;
2308
+ authorization: z.ZodLiteral<"policy">;
2309
+ error: z.ZodObject<{
2310
+ code: z.ZodEnum<{
2311
+ user_rejected: "user_rejected";
2312
+ user_timed_out: "user_timed_out";
2313
+ policy_rejected: "policy_rejected";
2314
+ signing_failed: "signing_failed";
2315
+ }>;
2316
+ message: z.ZodEnum<{
2317
+ [x: string]: string;
2318
+ }>;
2319
+ }, z.core.$strict>;
2320
+ }, z.core.$strict>], "status">, z.ZodObject<{
2321
+ source: z.ZodLiteral<"not_connected">;
2322
+ deviceId: z.ZodString;
2323
+ reason: z.ZodLiteral<"not_connected">;
2324
+ }, z.core.$strict>, z.ZodObject<{
2325
+ source: z.ZodLiteral<"session_ended">;
2326
+ deviceId: z.ZodString;
2327
+ reason: z.ZodEnum<{
2328
+ invalid_session: "invalid_session";
2329
+ timeout: "timeout";
2330
+ transport_unavailable: "transport_unavailable";
2331
+ }>;
2332
+ }, z.core.$strict>]>;
2333
+ readonly signPersonalMessage: z.ZodUnion<readonly [z.ZodObject<{
2334
+ source: z.ZodLiteral<"live">;
2335
+ deviceId: z.ZodString;
2336
+ status: z.ZodLiteral<"signed">;
2337
+ authorization: z.ZodLiteral<"user">;
2338
+ chain: z.ZodLiteral<"sui">;
2339
+ method: z.ZodLiteral<"sign_personal_message">;
2340
+ signature: z.ZodString;
2341
+ messageBytes: z.ZodString;
2342
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
2343
+ source: z.ZodLiteral<"live">;
2344
+ deviceId: z.ZodString;
2345
+ status: z.ZodLiteral<"user_rejected">;
2346
+ authorization: z.ZodLiteral<"user">;
2347
+ error: z.ZodObject<{
2348
+ code: z.ZodEnum<{
2349
+ user_rejected: "user_rejected";
2350
+ user_timed_out: "user_timed_out";
2351
+ policy_rejected: "policy_rejected";
2352
+ signing_failed: "signing_failed";
2353
+ }>;
2354
+ message: z.ZodEnum<{
2355
+ [x: string]: string;
2356
+ }>;
2357
+ }, z.core.$strict>;
2358
+ }, z.core.$strict>, z.ZodObject<{
2359
+ source: z.ZodLiteral<"live">;
2360
+ deviceId: z.ZodString;
2361
+ status: z.ZodLiteral<"user_timed_out">;
2362
+ authorization: z.ZodLiteral<"user">;
2363
+ error: z.ZodObject<{
2364
+ code: z.ZodEnum<{
2365
+ user_rejected: "user_rejected";
2366
+ user_timed_out: "user_timed_out";
2367
+ policy_rejected: "policy_rejected";
2368
+ signing_failed: "signing_failed";
2369
+ }>;
2370
+ message: z.ZodEnum<{
2371
+ [x: string]: string;
2372
+ }>;
2373
+ }, z.core.$strict>;
2374
+ }, z.core.$strict>, z.ZodObject<{
2375
+ source: z.ZodLiteral<"live">;
2376
+ deviceId: z.ZodString;
2377
+ status: z.ZodLiteral<"signing_failed">;
2378
+ authorization: z.ZodLiteral<"user">;
2379
+ error: z.ZodObject<{
2380
+ code: z.ZodEnum<{
2381
+ user_rejected: "user_rejected";
2382
+ user_timed_out: "user_timed_out";
2383
+ policy_rejected: "policy_rejected";
2384
+ signing_failed: "signing_failed";
2385
+ }>;
2386
+ message: z.ZodEnum<{
2387
+ [x: string]: string;
2388
+ }>;
2389
+ }, z.core.$strict>;
2390
+ }, z.core.$strict>], "status">, z.ZodObject<{
2391
+ source: z.ZodLiteral<"not_connected">;
2392
+ deviceId: z.ZodString;
2393
+ reason: z.ZodLiteral<"not_connected">;
2394
+ }, z.core.$strict>, z.ZodObject<{
2395
+ source: z.ZodLiteral<"session_ended">;
2396
+ deviceId: z.ZodString;
2397
+ reason: z.ZodEnum<{
2398
+ invalid_session: "invalid_session";
2399
+ timeout: "timeout";
2400
+ transport_unavailable: "transport_unavailable";
2401
+ }>;
2402
+ }, z.core.$strict>]>;
2403
+ readonly policyPropose: z.ZodDiscriminatedUnion<[z.ZodObject<{
2404
+ source: z.ZodLiteral<"live">;
2405
+ deviceId: z.ZodString;
2406
+ status: z.ZodEnum<{
2407
+ applied: "applied";
2408
+ rejected: "rejected";
2409
+ timed_out: "timed_out";
2410
+ storage_error: "storage_error";
2411
+ invalid_policy: "invalid_policy";
2412
+ ui_error: "ui_error";
2413
+ consistency_error: "consistency_error";
2414
+ }>;
2415
+ reasonCode: z.ZodString;
2416
+ policy: z.ZodOptional<z.ZodObject<{
2417
+ policyHash: z.ZodString;
2418
+ ruleCount: z.ZodNumber;
2419
+ highestAction: z.ZodEnum<{
2420
+ reject: "reject";
2421
+ sign: "sign";
2422
+ }>;
2423
+ }, z.core.$strict>>;
2424
+ }, z.core.$strict>, z.ZodObject<{
2425
+ source: z.ZodLiteral<"not_connected">;
2426
+ deviceId: z.ZodString;
2427
+ reason: z.ZodLiteral<"not_connected">;
2428
+ }, z.core.$strict>, z.ZodObject<{
2429
+ source: z.ZodLiteral<"session_ended">;
2430
+ deviceId: z.ZodString;
2431
+ reason: z.ZodEnum<{
2432
+ invalid_session: "invalid_session";
2433
+ timeout: "timeout";
2434
+ transport_unavailable: "transport_unavailable";
2435
+ }>;
2436
+ }, z.core.$strict>], "source">;
2437
+ };