@dexto/core 1.6.26 → 1.6.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/DextoAgent.cjs +75 -90
- package/dist/agent/DextoAgent.d.ts +4 -4
- package/dist/agent/DextoAgent.d.ts.map +1 -1
- package/dist/agent/DextoAgent.js +76 -91
- package/dist/agent/error-codes.cjs +1 -0
- package/dist/agent/error-codes.d.ts +1 -0
- package/dist/agent/error-codes.d.ts.map +1 -1
- package/dist/agent/error-codes.js +1 -0
- package/dist/agent/errors.cjs +13 -0
- package/dist/agent/errors.d.ts +6 -0
- package/dist/agent/errors.d.ts.map +1 -1
- package/dist/agent/errors.js +13 -0
- package/dist/agent/index.d.ts +1 -0
- package/dist/agent/index.d.ts.map +1 -1
- package/dist/agent/schemas.d.ts +2 -2
- package/dist/agent/types.d.ts +11 -0
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/approval/factory.cjs +1 -0
- package/dist/approval/factory.d.ts.map +1 -1
- package/dist/approval/factory.js +1 -0
- package/dist/approval/manager.cjs +19 -6
- package/dist/approval/manager.d.ts +6 -0
- package/dist/approval/manager.d.ts.map +1 -1
- package/dist/approval/manager.js +19 -6
- package/dist/approval/schemas.cjs +10 -0
- package/dist/approval/schemas.d.ts +305 -0
- package/dist/approval/schemas.d.ts.map +1 -1
- package/dist/approval/schemas.js +10 -0
- package/dist/events/index.cjs +210 -75
- package/dist/events/index.d.ts +44 -181
- package/dist/events/index.d.ts.map +1 -1
- package/dist/events/index.js +206 -74
- package/dist/hooks/manager.cjs +5 -2
- package/dist/hooks/manager.d.ts +2 -0
- package/dist/hooks/manager.d.ts.map +1 -1
- package/dist/hooks/manager.js +5 -2
- package/dist/hooks/types.d.ts +3 -0
- package/dist/hooks/types.d.ts.map +1 -1
- package/dist/index.browser.d.ts +1 -0
- package/dist/index.browser.d.ts.map +1 -1
- package/dist/index.cjs +3 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/llm/executor/turn-executor.cjs +8 -4
- package/dist/llm/executor/turn-executor.d.ts +3 -1
- package/dist/llm/executor/turn-executor.d.ts.map +1 -1
- package/dist/llm/executor/turn-executor.js +8 -4
- package/dist/llm/services/vercel.cjs +29 -6
- package/dist/llm/services/vercel.d.ts +3 -0
- package/dist/llm/services/vercel.d.ts.map +1 -1
- package/dist/llm/services/vercel.js +27 -5
- package/dist/mcp/manager.cjs +7 -2
- package/dist/mcp/manager.d.ts +3 -1
- package/dist/mcp/manager.d.ts.map +1 -1
- package/dist/mcp/manager.js +7 -2
- package/dist/mcp/mcp-client.cjs +71 -62
- package/dist/mcp/mcp-client.d.ts +3 -2
- package/dist/mcp/mcp-client.d.ts.map +1 -1
- package/dist/mcp/mcp-client.js +71 -62
- package/dist/mcp/schemas.d.ts +10 -10
- package/dist/resources/handlers/filesystem-handler.cjs +22 -3
- package/dist/resources/handlers/filesystem-handler.d.ts.map +1 -1
- package/dist/resources/handlers/filesystem-handler.js +22 -3
- package/dist/runtime/host-runtime.cjs +163 -0
- package/dist/runtime/host-runtime.d.ts +23 -0
- package/dist/runtime/host-runtime.d.ts.map +1 -0
- package/dist/runtime/host-runtime.js +133 -0
- package/dist/runtime/index.cjs +42 -0
- package/dist/runtime/index.d.ts +2 -0
- package/dist/runtime/index.d.ts.map +1 -0
- package/dist/runtime/index.js +21 -0
- package/dist/runtime/run-context.cjs +53 -0
- package/dist/runtime/run-context.d.ts +13 -0
- package/dist/runtime/run-context.d.ts.map +1 -0
- package/dist/runtime/run-context.js +34 -0
- package/dist/session/chat-session.cjs +30 -32
- package/dist/session/chat-session.d.ts +5 -15
- package/dist/session/chat-session.d.ts.map +1 -1
- package/dist/session/chat-session.js +31 -33
- package/dist/session/error-codes.cjs +1 -0
- package/dist/session/error-codes.d.ts +2 -1
- package/dist/session/error-codes.d.ts.map +1 -1
- package/dist/session/error-codes.js +1 -0
- package/dist/session/errors.cjs +13 -0
- package/dist/session/errors.d.ts +6 -0
- package/dist/session/errors.d.ts.map +1 -1
- package/dist/session/errors.js +13 -0
- package/dist/telemetry/decorators.cjs +75 -57
- package/dist/telemetry/decorators.d.ts +2 -0
- package/dist/telemetry/decorators.d.ts.map +1 -1
- package/dist/telemetry/decorators.js +75 -57
- package/dist/telemetry/utils.cjs +9 -6
- package/dist/telemetry/utils.d.ts +3 -0
- package/dist/telemetry/utils.d.ts.map +1 -1
- package/dist/telemetry/utils.js +9 -6
- package/dist/tools/tool-manager.cjs +92 -36
- package/dist/tools/tool-manager.d.ts +12 -3
- package/dist/tools/tool-manager.d.ts.map +1 -1
- package/dist/tools/tool-manager.js +92 -36
- package/dist/tools/types.d.ts +7 -1
- package/dist/tools/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -137,6 +137,13 @@ export declare const BaseApprovalRequestSchema: z.ZodObject<{
|
|
|
137
137
|
approvalId: z.ZodString;
|
|
138
138
|
type: z.ZodEnum<["tool_confirmation", "command_confirmation", "elicitation", "directory_access", "custom"]>;
|
|
139
139
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
140
|
+
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
141
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
142
|
+
}, "strict", z.ZodTypeAny, {
|
|
143
|
+
ids?: Record<string, string> | undefined;
|
|
144
|
+
}, {
|
|
145
|
+
ids?: Record<string, string> | undefined;
|
|
146
|
+
}>>;
|
|
140
147
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
141
148
|
timestamp: z.ZodDate;
|
|
142
149
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -145,12 +152,18 @@ export declare const BaseApprovalRequestSchema: z.ZodObject<{
|
|
|
145
152
|
timestamp: Date;
|
|
146
153
|
timeout?: number | undefined;
|
|
147
154
|
sessionId?: string | undefined;
|
|
155
|
+
hostRuntime?: {
|
|
156
|
+
ids?: Record<string, string> | undefined;
|
|
157
|
+
} | undefined;
|
|
148
158
|
}, {
|
|
149
159
|
type: "custom" | "tool_confirmation" | "command_confirmation" | "elicitation" | "directory_access";
|
|
150
160
|
approvalId: string;
|
|
151
161
|
timestamp: Date;
|
|
152
162
|
timeout?: number | undefined;
|
|
153
163
|
sessionId?: string | undefined;
|
|
164
|
+
hostRuntime?: {
|
|
165
|
+
ids?: Record<string, string> | undefined;
|
|
166
|
+
} | undefined;
|
|
154
167
|
}>;
|
|
155
168
|
/**
|
|
156
169
|
* Tool approval request schema
|
|
@@ -158,6 +171,13 @@ export declare const BaseApprovalRequestSchema: z.ZodObject<{
|
|
|
158
171
|
export declare const ToolApprovalRequestSchema: z.ZodObject<{
|
|
159
172
|
approvalId: z.ZodString;
|
|
160
173
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
174
|
+
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
175
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
176
|
+
}, "strict", z.ZodTypeAny, {
|
|
177
|
+
ids?: Record<string, string> | undefined;
|
|
178
|
+
}, {
|
|
179
|
+
ids?: Record<string, string> | undefined;
|
|
180
|
+
}>>;
|
|
161
181
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
162
182
|
timestamp: z.ZodDate;
|
|
163
183
|
} & {
|
|
@@ -236,6 +256,9 @@ export declare const ToolApprovalRequestSchema: z.ZodObject<{
|
|
|
236
256
|
};
|
|
237
257
|
timeout?: number | undefined;
|
|
238
258
|
sessionId?: string | undefined;
|
|
259
|
+
hostRuntime?: {
|
|
260
|
+
ids?: Record<string, string> | undefined;
|
|
261
|
+
} | undefined;
|
|
239
262
|
}, {
|
|
240
263
|
type: "tool_confirmation";
|
|
241
264
|
approvalId: string;
|
|
@@ -257,6 +280,9 @@ export declare const ToolApprovalRequestSchema: z.ZodObject<{
|
|
|
257
280
|
};
|
|
258
281
|
timeout?: number | undefined;
|
|
259
282
|
sessionId?: string | undefined;
|
|
283
|
+
hostRuntime?: {
|
|
284
|
+
ids?: Record<string, string> | undefined;
|
|
285
|
+
} | undefined;
|
|
260
286
|
}>;
|
|
261
287
|
/**
|
|
262
288
|
* Command confirmation request schema
|
|
@@ -264,6 +290,13 @@ export declare const ToolApprovalRequestSchema: z.ZodObject<{
|
|
|
264
290
|
export declare const CommandConfirmationRequestSchema: z.ZodObject<{
|
|
265
291
|
approvalId: z.ZodString;
|
|
266
292
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
293
|
+
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
294
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
295
|
+
}, "strict", z.ZodTypeAny, {
|
|
296
|
+
ids?: Record<string, string> | undefined;
|
|
297
|
+
}, {
|
|
298
|
+
ids?: Record<string, string> | undefined;
|
|
299
|
+
}>>;
|
|
267
300
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
268
301
|
timestamp: z.ZodDate;
|
|
269
302
|
} & {
|
|
@@ -292,6 +325,9 @@ export declare const CommandConfirmationRequestSchema: z.ZodObject<{
|
|
|
292
325
|
};
|
|
293
326
|
timeout?: number | undefined;
|
|
294
327
|
sessionId?: string | undefined;
|
|
328
|
+
hostRuntime?: {
|
|
329
|
+
ids?: Record<string, string> | undefined;
|
|
330
|
+
} | undefined;
|
|
295
331
|
}, {
|
|
296
332
|
type: "command_confirmation";
|
|
297
333
|
approvalId: string;
|
|
@@ -303,6 +339,9 @@ export declare const CommandConfirmationRequestSchema: z.ZodObject<{
|
|
|
303
339
|
};
|
|
304
340
|
timeout?: number | undefined;
|
|
305
341
|
sessionId?: string | undefined;
|
|
342
|
+
hostRuntime?: {
|
|
343
|
+
ids?: Record<string, string> | undefined;
|
|
344
|
+
} | undefined;
|
|
306
345
|
}>;
|
|
307
346
|
/**
|
|
308
347
|
* Elicitation request schema
|
|
@@ -310,6 +349,13 @@ export declare const CommandConfirmationRequestSchema: z.ZodObject<{
|
|
|
310
349
|
export declare const ElicitationRequestSchema: z.ZodObject<{
|
|
311
350
|
approvalId: z.ZodString;
|
|
312
351
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
352
|
+
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
353
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
354
|
+
}, "strict", z.ZodTypeAny, {
|
|
355
|
+
ids?: Record<string, string> | undefined;
|
|
356
|
+
}, {
|
|
357
|
+
ids?: Record<string, string> | undefined;
|
|
358
|
+
}>>;
|
|
313
359
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
314
360
|
timestamp: z.ZodDate;
|
|
315
361
|
} & {
|
|
@@ -342,6 +388,9 @@ export declare const ElicitationRequestSchema: z.ZodObject<{
|
|
|
342
388
|
};
|
|
343
389
|
timeout?: number | undefined;
|
|
344
390
|
sessionId?: string | undefined;
|
|
391
|
+
hostRuntime?: {
|
|
392
|
+
ids?: Record<string, string> | undefined;
|
|
393
|
+
} | undefined;
|
|
345
394
|
}, {
|
|
346
395
|
type: "elicitation";
|
|
347
396
|
approvalId: string;
|
|
@@ -354,6 +403,9 @@ export declare const ElicitationRequestSchema: z.ZodObject<{
|
|
|
354
403
|
};
|
|
355
404
|
timeout?: number | undefined;
|
|
356
405
|
sessionId?: string | undefined;
|
|
406
|
+
hostRuntime?: {
|
|
407
|
+
ids?: Record<string, string> | undefined;
|
|
408
|
+
} | undefined;
|
|
357
409
|
}>;
|
|
358
410
|
/**
|
|
359
411
|
* Custom approval request schema
|
|
@@ -361,6 +413,13 @@ export declare const ElicitationRequestSchema: z.ZodObject<{
|
|
|
361
413
|
export declare const CustomApprovalRequestSchema: z.ZodObject<{
|
|
362
414
|
approvalId: z.ZodString;
|
|
363
415
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
416
|
+
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
417
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
418
|
+
}, "strict", z.ZodTypeAny, {
|
|
419
|
+
ids?: Record<string, string> | undefined;
|
|
420
|
+
}, {
|
|
421
|
+
ids?: Record<string, string> | undefined;
|
|
422
|
+
}>>;
|
|
364
423
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
365
424
|
timestamp: z.ZodDate;
|
|
366
425
|
} & {
|
|
@@ -373,6 +432,9 @@ export declare const CustomApprovalRequestSchema: z.ZodObject<{
|
|
|
373
432
|
metadata: Record<string, unknown>;
|
|
374
433
|
timeout?: number | undefined;
|
|
375
434
|
sessionId?: string | undefined;
|
|
435
|
+
hostRuntime?: {
|
|
436
|
+
ids?: Record<string, string> | undefined;
|
|
437
|
+
} | undefined;
|
|
376
438
|
}, {
|
|
377
439
|
type: "custom";
|
|
378
440
|
approvalId: string;
|
|
@@ -380,6 +442,9 @@ export declare const CustomApprovalRequestSchema: z.ZodObject<{
|
|
|
380
442
|
metadata: Record<string, unknown>;
|
|
381
443
|
timeout?: number | undefined;
|
|
382
444
|
sessionId?: string | undefined;
|
|
445
|
+
hostRuntime?: {
|
|
446
|
+
ids?: Record<string, string> | undefined;
|
|
447
|
+
} | undefined;
|
|
383
448
|
}>;
|
|
384
449
|
/**
|
|
385
450
|
* Directory access request schema
|
|
@@ -387,6 +452,13 @@ export declare const CustomApprovalRequestSchema: z.ZodObject<{
|
|
|
387
452
|
export declare const DirectoryAccessRequestSchema: z.ZodObject<{
|
|
388
453
|
approvalId: z.ZodString;
|
|
389
454
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
455
|
+
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
456
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
457
|
+
}, "strict", z.ZodTypeAny, {
|
|
458
|
+
ids?: Record<string, string> | undefined;
|
|
459
|
+
}, {
|
|
460
|
+
ids?: Record<string, string> | undefined;
|
|
461
|
+
}>>;
|
|
390
462
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
391
463
|
timestamp: z.ZodDate;
|
|
392
464
|
} & {
|
|
@@ -419,6 +491,9 @@ export declare const DirectoryAccessRequestSchema: z.ZodObject<{
|
|
|
419
491
|
};
|
|
420
492
|
timeout?: number | undefined;
|
|
421
493
|
sessionId?: string | undefined;
|
|
494
|
+
hostRuntime?: {
|
|
495
|
+
ids?: Record<string, string> | undefined;
|
|
496
|
+
} | undefined;
|
|
422
497
|
}, {
|
|
423
498
|
type: "directory_access";
|
|
424
499
|
approvalId: string;
|
|
@@ -431,6 +506,9 @@ export declare const DirectoryAccessRequestSchema: z.ZodObject<{
|
|
|
431
506
|
};
|
|
432
507
|
timeout?: number | undefined;
|
|
433
508
|
sessionId?: string | undefined;
|
|
509
|
+
hostRuntime?: {
|
|
510
|
+
ids?: Record<string, string> | undefined;
|
|
511
|
+
} | undefined;
|
|
434
512
|
}>;
|
|
435
513
|
/**
|
|
436
514
|
* Discriminated union for all approval requests
|
|
@@ -438,6 +516,13 @@ export declare const DirectoryAccessRequestSchema: z.ZodObject<{
|
|
|
438
516
|
export declare const ApprovalRequestSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
439
517
|
approvalId: z.ZodString;
|
|
440
518
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
519
|
+
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
520
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
521
|
+
}, "strict", z.ZodTypeAny, {
|
|
522
|
+
ids?: Record<string, string> | undefined;
|
|
523
|
+
}, {
|
|
524
|
+
ids?: Record<string, string> | undefined;
|
|
525
|
+
}>>;
|
|
441
526
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
442
527
|
timestamp: z.ZodDate;
|
|
443
528
|
} & {
|
|
@@ -516,6 +601,9 @@ export declare const ApprovalRequestSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
516
601
|
};
|
|
517
602
|
timeout?: number | undefined;
|
|
518
603
|
sessionId?: string | undefined;
|
|
604
|
+
hostRuntime?: {
|
|
605
|
+
ids?: Record<string, string> | undefined;
|
|
606
|
+
} | undefined;
|
|
519
607
|
}, {
|
|
520
608
|
type: "tool_confirmation";
|
|
521
609
|
approvalId: string;
|
|
@@ -537,9 +625,19 @@ export declare const ApprovalRequestSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
537
625
|
};
|
|
538
626
|
timeout?: number | undefined;
|
|
539
627
|
sessionId?: string | undefined;
|
|
628
|
+
hostRuntime?: {
|
|
629
|
+
ids?: Record<string, string> | undefined;
|
|
630
|
+
} | undefined;
|
|
540
631
|
}>, z.ZodObject<{
|
|
541
632
|
approvalId: z.ZodString;
|
|
542
633
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
634
|
+
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
635
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
636
|
+
}, "strict", z.ZodTypeAny, {
|
|
637
|
+
ids?: Record<string, string> | undefined;
|
|
638
|
+
}, {
|
|
639
|
+
ids?: Record<string, string> | undefined;
|
|
640
|
+
}>>;
|
|
543
641
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
544
642
|
timestamp: z.ZodDate;
|
|
545
643
|
} & {
|
|
@@ -568,6 +666,9 @@ export declare const ApprovalRequestSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
568
666
|
};
|
|
569
667
|
timeout?: number | undefined;
|
|
570
668
|
sessionId?: string | undefined;
|
|
669
|
+
hostRuntime?: {
|
|
670
|
+
ids?: Record<string, string> | undefined;
|
|
671
|
+
} | undefined;
|
|
571
672
|
}, {
|
|
572
673
|
type: "command_confirmation";
|
|
573
674
|
approvalId: string;
|
|
@@ -579,9 +680,19 @@ export declare const ApprovalRequestSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
579
680
|
};
|
|
580
681
|
timeout?: number | undefined;
|
|
581
682
|
sessionId?: string | undefined;
|
|
683
|
+
hostRuntime?: {
|
|
684
|
+
ids?: Record<string, string> | undefined;
|
|
685
|
+
} | undefined;
|
|
582
686
|
}>, z.ZodObject<{
|
|
583
687
|
approvalId: z.ZodString;
|
|
584
688
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
689
|
+
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
690
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
691
|
+
}, "strict", z.ZodTypeAny, {
|
|
692
|
+
ids?: Record<string, string> | undefined;
|
|
693
|
+
}, {
|
|
694
|
+
ids?: Record<string, string> | undefined;
|
|
695
|
+
}>>;
|
|
585
696
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
586
697
|
timestamp: z.ZodDate;
|
|
587
698
|
} & {
|
|
@@ -614,6 +725,9 @@ export declare const ApprovalRequestSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
614
725
|
};
|
|
615
726
|
timeout?: number | undefined;
|
|
616
727
|
sessionId?: string | undefined;
|
|
728
|
+
hostRuntime?: {
|
|
729
|
+
ids?: Record<string, string> | undefined;
|
|
730
|
+
} | undefined;
|
|
617
731
|
}, {
|
|
618
732
|
type: "elicitation";
|
|
619
733
|
approvalId: string;
|
|
@@ -626,9 +740,19 @@ export declare const ApprovalRequestSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
626
740
|
};
|
|
627
741
|
timeout?: number | undefined;
|
|
628
742
|
sessionId?: string | undefined;
|
|
743
|
+
hostRuntime?: {
|
|
744
|
+
ids?: Record<string, string> | undefined;
|
|
745
|
+
} | undefined;
|
|
629
746
|
}>, z.ZodObject<{
|
|
630
747
|
approvalId: z.ZodString;
|
|
631
748
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
749
|
+
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
750
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
751
|
+
}, "strict", z.ZodTypeAny, {
|
|
752
|
+
ids?: Record<string, string> | undefined;
|
|
753
|
+
}, {
|
|
754
|
+
ids?: Record<string, string> | undefined;
|
|
755
|
+
}>>;
|
|
632
756
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
633
757
|
timestamp: z.ZodDate;
|
|
634
758
|
} & {
|
|
@@ -641,6 +765,9 @@ export declare const ApprovalRequestSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
641
765
|
metadata: Record<string, unknown>;
|
|
642
766
|
timeout?: number | undefined;
|
|
643
767
|
sessionId?: string | undefined;
|
|
768
|
+
hostRuntime?: {
|
|
769
|
+
ids?: Record<string, string> | undefined;
|
|
770
|
+
} | undefined;
|
|
644
771
|
}, {
|
|
645
772
|
type: "custom";
|
|
646
773
|
approvalId: string;
|
|
@@ -648,9 +775,19 @@ export declare const ApprovalRequestSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
648
775
|
metadata: Record<string, unknown>;
|
|
649
776
|
timeout?: number | undefined;
|
|
650
777
|
sessionId?: string | undefined;
|
|
778
|
+
hostRuntime?: {
|
|
779
|
+
ids?: Record<string, string> | undefined;
|
|
780
|
+
} | undefined;
|
|
651
781
|
}>, z.ZodObject<{
|
|
652
782
|
approvalId: z.ZodString;
|
|
653
783
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
784
|
+
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
785
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
786
|
+
}, "strict", z.ZodTypeAny, {
|
|
787
|
+
ids?: Record<string, string> | undefined;
|
|
788
|
+
}, {
|
|
789
|
+
ids?: Record<string, string> | undefined;
|
|
790
|
+
}>>;
|
|
654
791
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
655
792
|
timestamp: z.ZodDate;
|
|
656
793
|
} & {
|
|
@@ -683,6 +820,9 @@ export declare const ApprovalRequestSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
683
820
|
};
|
|
684
821
|
timeout?: number | undefined;
|
|
685
822
|
sessionId?: string | undefined;
|
|
823
|
+
hostRuntime?: {
|
|
824
|
+
ids?: Record<string, string> | undefined;
|
|
825
|
+
} | undefined;
|
|
686
826
|
}, {
|
|
687
827
|
type: "directory_access";
|
|
688
828
|
approvalId: string;
|
|
@@ -695,6 +835,9 @@ export declare const ApprovalRequestSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
695
835
|
};
|
|
696
836
|
timeout?: number | undefined;
|
|
697
837
|
sessionId?: string | undefined;
|
|
838
|
+
hostRuntime?: {
|
|
839
|
+
ids?: Record<string, string> | undefined;
|
|
840
|
+
} | undefined;
|
|
698
841
|
}>]>;
|
|
699
842
|
/**
|
|
700
843
|
* Tool approval response data schema
|
|
@@ -747,6 +890,13 @@ export declare const BaseApprovalResponseSchema: z.ZodObject<{
|
|
|
747
890
|
approvalId: z.ZodString;
|
|
748
891
|
status: z.ZodEnum<["approved", "denied", "cancelled"]>;
|
|
749
892
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
893
|
+
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
894
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
895
|
+
}, "strict", z.ZodTypeAny, {
|
|
896
|
+
ids?: Record<string, string> | undefined;
|
|
897
|
+
}, {
|
|
898
|
+
ids?: Record<string, string> | undefined;
|
|
899
|
+
}>>;
|
|
750
900
|
reason: z.ZodOptional<z.ZodEnum<["user_denied", "system_denied", "timeout", "user_cancelled", "system_cancelled", "validation_failed", "elicitation_disabled"]>>;
|
|
751
901
|
message: z.ZodOptional<z.ZodString>;
|
|
752
902
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -755,6 +905,9 @@ export declare const BaseApprovalResponseSchema: z.ZodObject<{
|
|
|
755
905
|
approvalId: string;
|
|
756
906
|
message?: string | undefined;
|
|
757
907
|
sessionId?: string | undefined;
|
|
908
|
+
hostRuntime?: {
|
|
909
|
+
ids?: Record<string, string> | undefined;
|
|
910
|
+
} | undefined;
|
|
758
911
|
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
759
912
|
timeoutMs?: number | undefined;
|
|
760
913
|
}, {
|
|
@@ -762,6 +915,9 @@ export declare const BaseApprovalResponseSchema: z.ZodObject<{
|
|
|
762
915
|
approvalId: string;
|
|
763
916
|
message?: string | undefined;
|
|
764
917
|
sessionId?: string | undefined;
|
|
918
|
+
hostRuntime?: {
|
|
919
|
+
ids?: Record<string, string> | undefined;
|
|
920
|
+
} | undefined;
|
|
765
921
|
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
766
922
|
timeoutMs?: number | undefined;
|
|
767
923
|
}>;
|
|
@@ -772,6 +928,13 @@ export declare const ToolApprovalResponseSchema: z.ZodObject<{
|
|
|
772
928
|
approvalId: z.ZodString;
|
|
773
929
|
status: z.ZodEnum<["approved", "denied", "cancelled"]>;
|
|
774
930
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
931
|
+
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
932
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
933
|
+
}, "strict", z.ZodTypeAny, {
|
|
934
|
+
ids?: Record<string, string> | undefined;
|
|
935
|
+
}, {
|
|
936
|
+
ids?: Record<string, string> | undefined;
|
|
937
|
+
}>>;
|
|
775
938
|
reason: z.ZodOptional<z.ZodEnum<["user_denied", "system_denied", "timeout", "user_cancelled", "system_cancelled", "validation_failed", "elicitation_disabled"]>>;
|
|
776
939
|
message: z.ZodOptional<z.ZodString>;
|
|
777
940
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -799,6 +962,9 @@ export declare const ToolApprovalResponseSchema: z.ZodObject<{
|
|
|
799
962
|
} | undefined;
|
|
800
963
|
message?: string | undefined;
|
|
801
964
|
sessionId?: string | undefined;
|
|
965
|
+
hostRuntime?: {
|
|
966
|
+
ids?: Record<string, string> | undefined;
|
|
967
|
+
} | undefined;
|
|
802
968
|
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
803
969
|
timeoutMs?: number | undefined;
|
|
804
970
|
}, {
|
|
@@ -811,6 +977,9 @@ export declare const ToolApprovalResponseSchema: z.ZodObject<{
|
|
|
811
977
|
} | undefined;
|
|
812
978
|
message?: string | undefined;
|
|
813
979
|
sessionId?: string | undefined;
|
|
980
|
+
hostRuntime?: {
|
|
981
|
+
ids?: Record<string, string> | undefined;
|
|
982
|
+
} | undefined;
|
|
814
983
|
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
815
984
|
timeoutMs?: number | undefined;
|
|
816
985
|
}>;
|
|
@@ -821,6 +990,13 @@ export declare const CommandConfirmationResponseSchema: z.ZodObject<{
|
|
|
821
990
|
approvalId: z.ZodString;
|
|
822
991
|
status: z.ZodEnum<["approved", "denied", "cancelled"]>;
|
|
823
992
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
993
|
+
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
994
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
995
|
+
}, "strict", z.ZodTypeAny, {
|
|
996
|
+
ids?: Record<string, string> | undefined;
|
|
997
|
+
}, {
|
|
998
|
+
ids?: Record<string, string> | undefined;
|
|
999
|
+
}>>;
|
|
824
1000
|
reason: z.ZodOptional<z.ZodEnum<["user_denied", "system_denied", "timeout", "user_cancelled", "system_cancelled", "validation_failed", "elicitation_disabled"]>>;
|
|
825
1001
|
message: z.ZodOptional<z.ZodString>;
|
|
826
1002
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -832,6 +1008,9 @@ export declare const CommandConfirmationResponseSchema: z.ZodObject<{
|
|
|
832
1008
|
data?: {} | undefined;
|
|
833
1009
|
message?: string | undefined;
|
|
834
1010
|
sessionId?: string | undefined;
|
|
1011
|
+
hostRuntime?: {
|
|
1012
|
+
ids?: Record<string, string> | undefined;
|
|
1013
|
+
} | undefined;
|
|
835
1014
|
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
836
1015
|
timeoutMs?: number | undefined;
|
|
837
1016
|
}, {
|
|
@@ -840,6 +1019,9 @@ export declare const CommandConfirmationResponseSchema: z.ZodObject<{
|
|
|
840
1019
|
data?: {} | undefined;
|
|
841
1020
|
message?: string | undefined;
|
|
842
1021
|
sessionId?: string | undefined;
|
|
1022
|
+
hostRuntime?: {
|
|
1023
|
+
ids?: Record<string, string> | undefined;
|
|
1024
|
+
} | undefined;
|
|
843
1025
|
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
844
1026
|
timeoutMs?: number | undefined;
|
|
845
1027
|
}>;
|
|
@@ -850,6 +1032,13 @@ export declare const ElicitationResponseSchema: z.ZodObject<{
|
|
|
850
1032
|
approvalId: z.ZodString;
|
|
851
1033
|
status: z.ZodEnum<["approved", "denied", "cancelled"]>;
|
|
852
1034
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
1035
|
+
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
1036
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1037
|
+
}, "strict", z.ZodTypeAny, {
|
|
1038
|
+
ids?: Record<string, string> | undefined;
|
|
1039
|
+
}, {
|
|
1040
|
+
ids?: Record<string, string> | undefined;
|
|
1041
|
+
}>>;
|
|
853
1042
|
reason: z.ZodOptional<z.ZodEnum<["user_denied", "system_denied", "timeout", "user_cancelled", "system_cancelled", "validation_failed", "elicitation_disabled"]>>;
|
|
854
1043
|
message: z.ZodOptional<z.ZodString>;
|
|
855
1044
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -869,6 +1058,9 @@ export declare const ElicitationResponseSchema: z.ZodObject<{
|
|
|
869
1058
|
} | undefined;
|
|
870
1059
|
message?: string | undefined;
|
|
871
1060
|
sessionId?: string | undefined;
|
|
1061
|
+
hostRuntime?: {
|
|
1062
|
+
ids?: Record<string, string> | undefined;
|
|
1063
|
+
} | undefined;
|
|
872
1064
|
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
873
1065
|
timeoutMs?: number | undefined;
|
|
874
1066
|
}, {
|
|
@@ -879,6 +1071,9 @@ export declare const ElicitationResponseSchema: z.ZodObject<{
|
|
|
879
1071
|
} | undefined;
|
|
880
1072
|
message?: string | undefined;
|
|
881
1073
|
sessionId?: string | undefined;
|
|
1074
|
+
hostRuntime?: {
|
|
1075
|
+
ids?: Record<string, string> | undefined;
|
|
1076
|
+
} | undefined;
|
|
882
1077
|
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
883
1078
|
timeoutMs?: number | undefined;
|
|
884
1079
|
}>;
|
|
@@ -889,6 +1084,13 @@ export declare const CustomApprovalResponseSchema: z.ZodObject<{
|
|
|
889
1084
|
approvalId: z.ZodString;
|
|
890
1085
|
status: z.ZodEnum<["approved", "denied", "cancelled"]>;
|
|
891
1086
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
1087
|
+
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
1088
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1089
|
+
}, "strict", z.ZodTypeAny, {
|
|
1090
|
+
ids?: Record<string, string> | undefined;
|
|
1091
|
+
}, {
|
|
1092
|
+
ids?: Record<string, string> | undefined;
|
|
1093
|
+
}>>;
|
|
892
1094
|
reason: z.ZodOptional<z.ZodEnum<["user_denied", "system_denied", "timeout", "user_cancelled", "system_cancelled", "validation_failed", "elicitation_disabled"]>>;
|
|
893
1095
|
message: z.ZodOptional<z.ZodString>;
|
|
894
1096
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -900,6 +1102,9 @@ export declare const CustomApprovalResponseSchema: z.ZodObject<{
|
|
|
900
1102
|
data?: Record<string, unknown> | undefined;
|
|
901
1103
|
message?: string | undefined;
|
|
902
1104
|
sessionId?: string | undefined;
|
|
1105
|
+
hostRuntime?: {
|
|
1106
|
+
ids?: Record<string, string> | undefined;
|
|
1107
|
+
} | undefined;
|
|
903
1108
|
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
904
1109
|
timeoutMs?: number | undefined;
|
|
905
1110
|
}, {
|
|
@@ -908,6 +1113,9 @@ export declare const CustomApprovalResponseSchema: z.ZodObject<{
|
|
|
908
1113
|
data?: Record<string, unknown> | undefined;
|
|
909
1114
|
message?: string | undefined;
|
|
910
1115
|
sessionId?: string | undefined;
|
|
1116
|
+
hostRuntime?: {
|
|
1117
|
+
ids?: Record<string, string> | undefined;
|
|
1118
|
+
} | undefined;
|
|
911
1119
|
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
912
1120
|
timeoutMs?: number | undefined;
|
|
913
1121
|
}>;
|
|
@@ -918,6 +1126,13 @@ export declare const DirectoryAccessResponseSchema: z.ZodObject<{
|
|
|
918
1126
|
approvalId: z.ZodString;
|
|
919
1127
|
status: z.ZodEnum<["approved", "denied", "cancelled"]>;
|
|
920
1128
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
1129
|
+
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
1130
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1131
|
+
}, "strict", z.ZodTypeAny, {
|
|
1132
|
+
ids?: Record<string, string> | undefined;
|
|
1133
|
+
}, {
|
|
1134
|
+
ids?: Record<string, string> | undefined;
|
|
1135
|
+
}>>;
|
|
921
1136
|
reason: z.ZodOptional<z.ZodEnum<["user_denied", "system_denied", "timeout", "user_cancelled", "system_cancelled", "validation_failed", "elicitation_disabled"]>>;
|
|
922
1137
|
message: z.ZodOptional<z.ZodString>;
|
|
923
1138
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -937,6 +1152,9 @@ export declare const DirectoryAccessResponseSchema: z.ZodObject<{
|
|
|
937
1152
|
} | undefined;
|
|
938
1153
|
message?: string | undefined;
|
|
939
1154
|
sessionId?: string | undefined;
|
|
1155
|
+
hostRuntime?: {
|
|
1156
|
+
ids?: Record<string, string> | undefined;
|
|
1157
|
+
} | undefined;
|
|
940
1158
|
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
941
1159
|
timeoutMs?: number | undefined;
|
|
942
1160
|
}, {
|
|
@@ -947,6 +1165,9 @@ export declare const DirectoryAccessResponseSchema: z.ZodObject<{
|
|
|
947
1165
|
} | undefined;
|
|
948
1166
|
message?: string | undefined;
|
|
949
1167
|
sessionId?: string | undefined;
|
|
1168
|
+
hostRuntime?: {
|
|
1169
|
+
ids?: Record<string, string> | undefined;
|
|
1170
|
+
} | undefined;
|
|
950
1171
|
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
951
1172
|
timeoutMs?: number | undefined;
|
|
952
1173
|
}>;
|
|
@@ -957,6 +1178,13 @@ export declare const ApprovalResponseSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
957
1178
|
approvalId: z.ZodString;
|
|
958
1179
|
status: z.ZodEnum<["approved", "denied", "cancelled"]>;
|
|
959
1180
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
1181
|
+
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
1182
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1183
|
+
}, "strict", z.ZodTypeAny, {
|
|
1184
|
+
ids?: Record<string, string> | undefined;
|
|
1185
|
+
}, {
|
|
1186
|
+
ids?: Record<string, string> | undefined;
|
|
1187
|
+
}>>;
|
|
960
1188
|
reason: z.ZodOptional<z.ZodEnum<["user_denied", "system_denied", "timeout", "user_cancelled", "system_cancelled", "validation_failed", "elicitation_disabled"]>>;
|
|
961
1189
|
message: z.ZodOptional<z.ZodString>;
|
|
962
1190
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -984,6 +1212,9 @@ export declare const ApprovalResponseSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
984
1212
|
} | undefined;
|
|
985
1213
|
message?: string | undefined;
|
|
986
1214
|
sessionId?: string | undefined;
|
|
1215
|
+
hostRuntime?: {
|
|
1216
|
+
ids?: Record<string, string> | undefined;
|
|
1217
|
+
} | undefined;
|
|
987
1218
|
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
988
1219
|
timeoutMs?: number | undefined;
|
|
989
1220
|
}, {
|
|
@@ -996,12 +1227,22 @@ export declare const ApprovalResponseSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
996
1227
|
} | undefined;
|
|
997
1228
|
message?: string | undefined;
|
|
998
1229
|
sessionId?: string | undefined;
|
|
1230
|
+
hostRuntime?: {
|
|
1231
|
+
ids?: Record<string, string> | undefined;
|
|
1232
|
+
} | undefined;
|
|
999
1233
|
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
1000
1234
|
timeoutMs?: number | undefined;
|
|
1001
1235
|
}>, z.ZodObject<{
|
|
1002
1236
|
approvalId: z.ZodString;
|
|
1003
1237
|
status: z.ZodEnum<["approved", "denied", "cancelled"]>;
|
|
1004
1238
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
1239
|
+
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
1240
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1241
|
+
}, "strict", z.ZodTypeAny, {
|
|
1242
|
+
ids?: Record<string, string> | undefined;
|
|
1243
|
+
}, {
|
|
1244
|
+
ids?: Record<string, string> | undefined;
|
|
1245
|
+
}>>;
|
|
1005
1246
|
reason: z.ZodOptional<z.ZodEnum<["user_denied", "system_denied", "timeout", "user_cancelled", "system_cancelled", "validation_failed", "elicitation_disabled"]>>;
|
|
1006
1247
|
message: z.ZodOptional<z.ZodString>;
|
|
1007
1248
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1013,6 +1254,9 @@ export declare const ApprovalResponseSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1013
1254
|
data?: {} | undefined;
|
|
1014
1255
|
message?: string | undefined;
|
|
1015
1256
|
sessionId?: string | undefined;
|
|
1257
|
+
hostRuntime?: {
|
|
1258
|
+
ids?: Record<string, string> | undefined;
|
|
1259
|
+
} | undefined;
|
|
1016
1260
|
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
1017
1261
|
timeoutMs?: number | undefined;
|
|
1018
1262
|
}, {
|
|
@@ -1021,12 +1265,22 @@ export declare const ApprovalResponseSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1021
1265
|
data?: {} | undefined;
|
|
1022
1266
|
message?: string | undefined;
|
|
1023
1267
|
sessionId?: string | undefined;
|
|
1268
|
+
hostRuntime?: {
|
|
1269
|
+
ids?: Record<string, string> | undefined;
|
|
1270
|
+
} | undefined;
|
|
1024
1271
|
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
1025
1272
|
timeoutMs?: number | undefined;
|
|
1026
1273
|
}>, z.ZodObject<{
|
|
1027
1274
|
approvalId: z.ZodString;
|
|
1028
1275
|
status: z.ZodEnum<["approved", "denied", "cancelled"]>;
|
|
1029
1276
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
1277
|
+
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
1278
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1279
|
+
}, "strict", z.ZodTypeAny, {
|
|
1280
|
+
ids?: Record<string, string> | undefined;
|
|
1281
|
+
}, {
|
|
1282
|
+
ids?: Record<string, string> | undefined;
|
|
1283
|
+
}>>;
|
|
1030
1284
|
reason: z.ZodOptional<z.ZodEnum<["user_denied", "system_denied", "timeout", "user_cancelled", "system_cancelled", "validation_failed", "elicitation_disabled"]>>;
|
|
1031
1285
|
message: z.ZodOptional<z.ZodString>;
|
|
1032
1286
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1046,6 +1300,9 @@ export declare const ApprovalResponseSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1046
1300
|
} | undefined;
|
|
1047
1301
|
message?: string | undefined;
|
|
1048
1302
|
sessionId?: string | undefined;
|
|
1303
|
+
hostRuntime?: {
|
|
1304
|
+
ids?: Record<string, string> | undefined;
|
|
1305
|
+
} | undefined;
|
|
1049
1306
|
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
1050
1307
|
timeoutMs?: number | undefined;
|
|
1051
1308
|
}, {
|
|
@@ -1056,12 +1313,22 @@ export declare const ApprovalResponseSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1056
1313
|
} | undefined;
|
|
1057
1314
|
message?: string | undefined;
|
|
1058
1315
|
sessionId?: string | undefined;
|
|
1316
|
+
hostRuntime?: {
|
|
1317
|
+
ids?: Record<string, string> | undefined;
|
|
1318
|
+
} | undefined;
|
|
1059
1319
|
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
1060
1320
|
timeoutMs?: number | undefined;
|
|
1061
1321
|
}>, z.ZodObject<{
|
|
1062
1322
|
approvalId: z.ZodString;
|
|
1063
1323
|
status: z.ZodEnum<["approved", "denied", "cancelled"]>;
|
|
1064
1324
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
1325
|
+
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
1326
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1327
|
+
}, "strict", z.ZodTypeAny, {
|
|
1328
|
+
ids?: Record<string, string> | undefined;
|
|
1329
|
+
}, {
|
|
1330
|
+
ids?: Record<string, string> | undefined;
|
|
1331
|
+
}>>;
|
|
1065
1332
|
reason: z.ZodOptional<z.ZodEnum<["user_denied", "system_denied", "timeout", "user_cancelled", "system_cancelled", "validation_failed", "elicitation_disabled"]>>;
|
|
1066
1333
|
message: z.ZodOptional<z.ZodString>;
|
|
1067
1334
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1073,6 +1340,9 @@ export declare const ApprovalResponseSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1073
1340
|
data?: Record<string, unknown> | undefined;
|
|
1074
1341
|
message?: string | undefined;
|
|
1075
1342
|
sessionId?: string | undefined;
|
|
1343
|
+
hostRuntime?: {
|
|
1344
|
+
ids?: Record<string, string> | undefined;
|
|
1345
|
+
} | undefined;
|
|
1076
1346
|
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
1077
1347
|
timeoutMs?: number | undefined;
|
|
1078
1348
|
}, {
|
|
@@ -1081,12 +1351,22 @@ export declare const ApprovalResponseSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1081
1351
|
data?: Record<string, unknown> | undefined;
|
|
1082
1352
|
message?: string | undefined;
|
|
1083
1353
|
sessionId?: string | undefined;
|
|
1354
|
+
hostRuntime?: {
|
|
1355
|
+
ids?: Record<string, string> | undefined;
|
|
1356
|
+
} | undefined;
|
|
1084
1357
|
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
1085
1358
|
timeoutMs?: number | undefined;
|
|
1086
1359
|
}>, z.ZodObject<{
|
|
1087
1360
|
approvalId: z.ZodString;
|
|
1088
1361
|
status: z.ZodEnum<["approved", "denied", "cancelled"]>;
|
|
1089
1362
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
1363
|
+
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
1364
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1365
|
+
}, "strict", z.ZodTypeAny, {
|
|
1366
|
+
ids?: Record<string, string> | undefined;
|
|
1367
|
+
}, {
|
|
1368
|
+
ids?: Record<string, string> | undefined;
|
|
1369
|
+
}>>;
|
|
1090
1370
|
reason: z.ZodOptional<z.ZodEnum<["user_denied", "system_denied", "timeout", "user_cancelled", "system_cancelled", "validation_failed", "elicitation_disabled"]>>;
|
|
1091
1371
|
message: z.ZodOptional<z.ZodString>;
|
|
1092
1372
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1106,6 +1386,9 @@ export declare const ApprovalResponseSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1106
1386
|
} | undefined;
|
|
1107
1387
|
message?: string | undefined;
|
|
1108
1388
|
sessionId?: string | undefined;
|
|
1389
|
+
hostRuntime?: {
|
|
1390
|
+
ids?: Record<string, string> | undefined;
|
|
1391
|
+
} | undefined;
|
|
1109
1392
|
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
1110
1393
|
timeoutMs?: number | undefined;
|
|
1111
1394
|
}, {
|
|
@@ -1116,6 +1399,9 @@ export declare const ApprovalResponseSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1116
1399
|
} | undefined;
|
|
1117
1400
|
message?: string | undefined;
|
|
1118
1401
|
sessionId?: string | undefined;
|
|
1402
|
+
hostRuntime?: {
|
|
1403
|
+
ids?: Record<string, string> | undefined;
|
|
1404
|
+
} | undefined;
|
|
1119
1405
|
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
1120
1406
|
timeoutMs?: number | undefined;
|
|
1121
1407
|
}>]>;
|
|
@@ -1125,6 +1411,13 @@ export declare const ApprovalResponseSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1125
1411
|
export declare const ApprovalRequestDetailsSchema: z.ZodEffects<z.ZodObject<{
|
|
1126
1412
|
type: z.ZodEnum<["tool_confirmation", "command_confirmation", "elicitation", "directory_access", "custom"]>;
|
|
1127
1413
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
1414
|
+
hostRuntime: z.ZodOptional<z.ZodObject<{
|
|
1415
|
+
ids: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1416
|
+
}, "strict", z.ZodTypeAny, {
|
|
1417
|
+
ids?: Record<string, string> | undefined;
|
|
1418
|
+
}, {
|
|
1419
|
+
ids?: Record<string, string> | undefined;
|
|
1420
|
+
}>>;
|
|
1128
1421
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1129
1422
|
metadata: z.ZodUnion<[z.ZodObject<{
|
|
1130
1423
|
toolName: z.ZodString;
|
|
@@ -1254,6 +1547,9 @@ export declare const ApprovalRequestDetailsSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1254
1547
|
};
|
|
1255
1548
|
timeout?: number | undefined;
|
|
1256
1549
|
sessionId?: string | undefined;
|
|
1550
|
+
hostRuntime?: {
|
|
1551
|
+
ids?: Record<string, string> | undefined;
|
|
1552
|
+
} | undefined;
|
|
1257
1553
|
}, {
|
|
1258
1554
|
type: "custom" | "tool_confirmation" | "command_confirmation" | "elicitation" | "directory_access";
|
|
1259
1555
|
metadata: Record<string, unknown> | {
|
|
@@ -1287,6 +1583,9 @@ export declare const ApprovalRequestDetailsSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1287
1583
|
};
|
|
1288
1584
|
timeout?: number | undefined;
|
|
1289
1585
|
sessionId?: string | undefined;
|
|
1586
|
+
hostRuntime?: {
|
|
1587
|
+
ids?: Record<string, string> | undefined;
|
|
1588
|
+
} | undefined;
|
|
1290
1589
|
}>, {
|
|
1291
1590
|
type: "custom" | "tool_confirmation" | "command_confirmation" | "elicitation" | "directory_access";
|
|
1292
1591
|
metadata: Record<string, unknown> | {
|
|
@@ -1320,6 +1619,9 @@ export declare const ApprovalRequestDetailsSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1320
1619
|
};
|
|
1321
1620
|
timeout?: number | undefined;
|
|
1322
1621
|
sessionId?: string | undefined;
|
|
1622
|
+
hostRuntime?: {
|
|
1623
|
+
ids?: Record<string, string> | undefined;
|
|
1624
|
+
} | undefined;
|
|
1323
1625
|
}, {
|
|
1324
1626
|
type: "custom" | "tool_confirmation" | "command_confirmation" | "elicitation" | "directory_access";
|
|
1325
1627
|
metadata: Record<string, unknown> | {
|
|
@@ -1353,6 +1655,9 @@ export declare const ApprovalRequestDetailsSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1353
1655
|
};
|
|
1354
1656
|
timeout?: number | undefined;
|
|
1355
1657
|
sessionId?: string | undefined;
|
|
1658
|
+
hostRuntime?: {
|
|
1659
|
+
ids?: Record<string, string> | undefined;
|
|
1660
|
+
} | undefined;
|
|
1356
1661
|
}>;
|
|
1357
1662
|
/**
|
|
1358
1663
|
* Type inference for validated schemas
|