@vellumai/plugin-api 0.10.12-dev.202607271108.d02cf25 → 0.10.12-dev.202607271505.0de19b2
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/index.d.ts +1245 -20
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -532,6 +532,7 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
532
532
|
gemini: "gemini";
|
|
533
533
|
fireworks: "fireworks";
|
|
534
534
|
together: "together";
|
|
535
|
+
poolside: "poolside";
|
|
535
536
|
openrouter: "openrouter";
|
|
536
537
|
"vercel-ai-gateway": "vercel-ai-gateway";
|
|
537
538
|
ollama: "ollama";
|
|
@@ -670,6 +671,7 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
670
671
|
gemini: "gemini";
|
|
671
672
|
fireworks: "fireworks";
|
|
672
673
|
together: "together";
|
|
674
|
+
poolside: "poolside";
|
|
673
675
|
openrouter: "openrouter";
|
|
674
676
|
"vercel-ai-gateway": "vercel-ai-gateway";
|
|
675
677
|
ollama: "ollama";
|
|
@@ -1129,11 +1131,17 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
1129
1131
|
maxStepsPerSession: z.ZodDefault<z.ZodNumber>;
|
|
1130
1132
|
}, z.core.$strip>;
|
|
1131
1133
|
|
|
1134
|
+
/**
|
|
1135
|
+
* Inferred TypeScript union for every event currently covered by
|
|
1136
|
+
* `AssistantEventSchema`. Consumers should reference this single type
|
|
1137
|
+
* rather than re-listing the individual member types — as each new
|
|
1138
|
+
* event migrates into the schema, it appears here automatically.
|
|
1139
|
+
*/
|
|
1140
|
+
export declare type AssistantEvent = z.infer<typeof AssistantEventSchema>;
|
|
1141
|
+
|
|
1132
1142
|
export declare type AssistantEventCallback = (event: AssistantEventEnvelope) => void | Promise<void>;
|
|
1133
1143
|
|
|
1134
|
-
declare type AssistantEventEnvelope = z.infer<typeof AssistantEventEnvelopeSchema>;
|
|
1135
|
-
export { AssistantEventEnvelope as AssistantEvent }
|
|
1136
|
-
export { AssistantEventEnvelope }
|
|
1144
|
+
export declare type AssistantEventEnvelope = z.infer<typeof AssistantEventEnvelopeSchema>;
|
|
1137
1145
|
|
|
1138
1146
|
/**
|
|
1139
1147
|
* SSE wire envelope wrapping every outbound event from the daemon.
|
|
@@ -2401,19 +2409,7 @@ export declare class AssistantEventHub {
|
|
|
2401
2409
|
* Fanout is isolated: a throwing or rejecting subscriber does not abort
|
|
2402
2410
|
* delivery to remaining subscribers.
|
|
2403
2411
|
*/
|
|
2404
|
-
publish(event: AssistantEventEnvelope, options?:
|
|
2405
|
-
targetCapability?: HostProxyCapability;
|
|
2406
|
-
targetClientId?: string;
|
|
2407
|
-
targetInterfaceId?: InterfaceId;
|
|
2408
|
-
/**
|
|
2409
|
-
* Skip the subscriber with this `clientId`. Used for self-echo
|
|
2410
|
-
* suppression on `sync_changed`: the route handler echoes the
|
|
2411
|
-
* originating tab's `X-Vellum-Client-Id` back on the event, and the
|
|
2412
|
-
* hub uses it here to avoid re-delivering the invalidation to the
|
|
2413
|
-
* tab that already mutated its own optimistic state.
|
|
2414
|
-
*/
|
|
2415
|
-
excludeClientId?: string;
|
|
2416
|
-
}): Promise<void>;
|
|
2412
|
+
publish(event: AssistantEventEnvelope, options?: AssistantEventPublishOptions): Promise<void>;
|
|
2417
2413
|
/**
|
|
2418
2414
|
* Return the active client subscriber with the given clientId, or
|
|
2419
2415
|
* `undefined` if no such subscriber exists.
|
|
@@ -2474,6 +2470,1238 @@ export declare class AssistantEventHub {
|
|
|
2474
2470
|
/** The plugin-facing event hub. See module docs. */
|
|
2475
2471
|
export declare const assistantEventHub: PluginEventHub;
|
|
2476
2472
|
|
|
2473
|
+
/** Targeting/suppression options for {@link AssistantEventHub.publish}. */
|
|
2474
|
+
export declare type AssistantEventPublishOptions = z.infer<typeof AssistantEventPublishOptionsSchema>;
|
|
2475
|
+
|
|
2476
|
+
declare const AssistantEventPublishOptionsSchema: z.ZodObject<{
|
|
2477
|
+
targetCapability: z.ZodOptional<z.ZodEnum<{
|
|
2478
|
+
host_bash: "host_bash";
|
|
2479
|
+
host_file: "host_file";
|
|
2480
|
+
host_cu: "host_cu";
|
|
2481
|
+
host_browser: "host_browser";
|
|
2482
|
+
host_app_control: "host_app_control";
|
|
2483
|
+
host_ui_snapshot: "host_ui_snapshot";
|
|
2484
|
+
}>>;
|
|
2485
|
+
targetClientId: z.ZodOptional<z.ZodString>;
|
|
2486
|
+
targetInterfaceId: z.ZodOptional<z.ZodEnum<{
|
|
2487
|
+
telegram: "telegram";
|
|
2488
|
+
phone: "phone";
|
|
2489
|
+
whatsapp: "whatsapp";
|
|
2490
|
+
slack: "slack";
|
|
2491
|
+
email: "email";
|
|
2492
|
+
a2a: "a2a";
|
|
2493
|
+
macos: "macos";
|
|
2494
|
+
ios: "ios";
|
|
2495
|
+
cli: "cli";
|
|
2496
|
+
web: "web";
|
|
2497
|
+
"chrome-extension": "chrome-extension";
|
|
2498
|
+
route: "route";
|
|
2499
|
+
}>>;
|
|
2500
|
+
excludeClientId: z.ZodOptional<z.ZodString>;
|
|
2501
|
+
}, z.core.$strip>;
|
|
2502
|
+
|
|
2503
|
+
/**
|
|
2504
|
+
* Canonical SSE event schema for the assistant runtime.
|
|
2505
|
+
*
|
|
2506
|
+
* Discriminated union over the `type` field. Each member is the
|
|
2507
|
+
* canonical wire-contract schema for a single event type, defined
|
|
2508
|
+
* alongside the daemon code that emits it. Consumers (web client,
|
|
2509
|
+
* gateway, evals) parse incoming events with this single schema
|
|
2510
|
+
* rather than maintaining their own dispatch table.
|
|
2511
|
+
*
|
|
2512
|
+
* Add new events by exporting their schema from `./events/` and
|
|
2513
|
+
* appending them to the union below. See `./README.md` for the full
|
|
2514
|
+
* migration recipe.
|
|
2515
|
+
*/
|
|
2516
|
+
declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2517
|
+
type: z.ZodLiteral<"acp_session_completed">;
|
|
2518
|
+
acpSessionId: z.ZodString;
|
|
2519
|
+
stopReason: z.ZodEnum<{
|
|
2520
|
+
cancelled: "cancelled";
|
|
2521
|
+
end_turn: "end_turn";
|
|
2522
|
+
max_tokens: "max_tokens";
|
|
2523
|
+
max_turn_requests: "max_turn_requests";
|
|
2524
|
+
refusal: "refusal";
|
|
2525
|
+
}>;
|
|
2526
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2527
|
+
type: z.ZodLiteral<"acp_session_error">;
|
|
2528
|
+
acpSessionId: z.ZodString;
|
|
2529
|
+
error: z.ZodString;
|
|
2530
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2531
|
+
type: z.ZodLiteral<"acp_session_spawned">;
|
|
2532
|
+
acpSessionId: z.ZodString;
|
|
2533
|
+
agent: z.ZodString;
|
|
2534
|
+
parentConversationId: z.ZodString;
|
|
2535
|
+
parentToolUseId: z.ZodOptional<z.ZodString>;
|
|
2536
|
+
task: z.ZodOptional<z.ZodString>;
|
|
2537
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2538
|
+
type: z.ZodLiteral<"acp_session_update">;
|
|
2539
|
+
acpSessionId: z.ZodString;
|
|
2540
|
+
updateType: z.ZodEnum<{
|
|
2541
|
+
agent_message_chunk: "agent_message_chunk";
|
|
2542
|
+
agent_thought_chunk: "agent_thought_chunk";
|
|
2543
|
+
user_message_chunk: "user_message_chunk";
|
|
2544
|
+
tool_call: "tool_call";
|
|
2545
|
+
tool_call_update: "tool_call_update";
|
|
2546
|
+
plan: "plan";
|
|
2547
|
+
}>;
|
|
2548
|
+
content: z.ZodOptional<z.ZodString>;
|
|
2549
|
+
toolCallId: z.ZodOptional<z.ZodString>;
|
|
2550
|
+
toolTitle: z.ZodOptional<z.ZodString>;
|
|
2551
|
+
toolKind: z.ZodOptional<z.ZodString>;
|
|
2552
|
+
toolStatus: z.ZodOptional<z.ZodString>;
|
|
2553
|
+
rawInput: z.ZodOptional<z.ZodUnknown>;
|
|
2554
|
+
rawOutput: z.ZodOptional<z.ZodUnknown>;
|
|
2555
|
+
locations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2556
|
+
path: z.ZodString;
|
|
2557
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
2558
|
+
}, z.core.$strip>>>;
|
|
2559
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
2560
|
+
seq: z.ZodOptional<z.ZodNumber>;
|
|
2561
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2562
|
+
type: z.ZodLiteral<"acp_session_usage">;
|
|
2563
|
+
acpSessionId: z.ZodString;
|
|
2564
|
+
usedTokens: z.ZodNumber;
|
|
2565
|
+
contextSize: z.ZodNumber;
|
|
2566
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2567
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
2568
|
+
costAmount: z.ZodOptional<z.ZodNumber>;
|
|
2569
|
+
costCurrency: z.ZodOptional<z.ZodString>;
|
|
2570
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2571
|
+
type: z.ZodLiteral<"app_files_changed">;
|
|
2572
|
+
appId: z.ZodString;
|
|
2573
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2574
|
+
type: z.ZodLiteral<"assistant_activity_state">;
|
|
2575
|
+
conversationId: z.ZodString;
|
|
2576
|
+
activityVersion: z.ZodNumber;
|
|
2577
|
+
phase: z.ZodEnum<{
|
|
2578
|
+
thinking: "thinking";
|
|
2579
|
+
idle: "idle";
|
|
2580
|
+
streaming: "streaming";
|
|
2581
|
+
tool_running: "tool_running";
|
|
2582
|
+
awaiting_confirmation: "awaiting_confirmation";
|
|
2583
|
+
}>;
|
|
2584
|
+
anchor: z.ZodEnum<{
|
|
2585
|
+
assistant_turn: "assistant_turn";
|
|
2586
|
+
user_turn: "user_turn";
|
|
2587
|
+
global: "global";
|
|
2588
|
+
}>;
|
|
2589
|
+
reason: z.ZodEnum<{
|
|
2590
|
+
thinking_delta: "thinking_delta";
|
|
2591
|
+
message_dequeued: "message_dequeued";
|
|
2592
|
+
first_text_delta: "first_text_delta";
|
|
2593
|
+
tool_use_start: "tool_use_start";
|
|
2594
|
+
preview_start: "preview_start";
|
|
2595
|
+
tool_result_received: "tool_result_received";
|
|
2596
|
+
confirmation_requested: "confirmation_requested";
|
|
2597
|
+
confirmation_resolved: "confirmation_resolved";
|
|
2598
|
+
context_compacting: "context_compacting";
|
|
2599
|
+
message_complete: "message_complete";
|
|
2600
|
+
generation_cancelled: "generation_cancelled";
|
|
2601
|
+
error_terminal: "error_terminal";
|
|
2602
|
+
}>;
|
|
2603
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
2604
|
+
statusText: z.ZodOptional<z.ZodString>;
|
|
2605
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2606
|
+
type: z.ZodLiteral<"assistant_status">;
|
|
2607
|
+
version: z.ZodOptional<z.ZodString>;
|
|
2608
|
+
keyFingerprint: z.ZodOptional<z.ZodString>;
|
|
2609
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2610
|
+
type: z.ZodLiteral<"assistant_text_delta">;
|
|
2611
|
+
text: z.ZodString;
|
|
2612
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
2613
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
2614
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2615
|
+
type: z.ZodLiteral<"assistant_thinking_delta">;
|
|
2616
|
+
thinking: z.ZodString;
|
|
2617
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
2618
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
2619
|
+
timestampMs: z.ZodOptional<z.ZodNumber>;
|
|
2620
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2621
|
+
type: z.ZodLiteral<"assistant_turn_start">;
|
|
2622
|
+
messageId: z.ZodString;
|
|
2623
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
2624
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2625
|
+
type: z.ZodLiteral<"avatar_updated">;
|
|
2626
|
+
avatarPath: z.ZodString;
|
|
2627
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2628
|
+
type: z.ZodLiteral<"background_tool_completed">;
|
|
2629
|
+
id: z.ZodString;
|
|
2630
|
+
conversationId: z.ZodString;
|
|
2631
|
+
status: z.ZodEnum<{
|
|
2632
|
+
cancelled: "cancelled";
|
|
2633
|
+
completed: "completed";
|
|
2634
|
+
failed: "failed";
|
|
2635
|
+
}>;
|
|
2636
|
+
exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2637
|
+
output: z.ZodOptional<z.ZodString>;
|
|
2638
|
+
completedAt: z.ZodNumber;
|
|
2639
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2640
|
+
type: z.ZodLiteral<"background_tool_started">;
|
|
2641
|
+
id: z.ZodString;
|
|
2642
|
+
toolName: z.ZodString;
|
|
2643
|
+
conversationId: z.ZodString;
|
|
2644
|
+
command: z.ZodString;
|
|
2645
|
+
startedAt: z.ZodNumber;
|
|
2646
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2647
|
+
type: z.ZodLiteral<"bookmark.created">;
|
|
2648
|
+
bookmark: z.ZodObject<{
|
|
2649
|
+
id: z.ZodString;
|
|
2650
|
+
messageId: z.ZodString;
|
|
2651
|
+
conversationId: z.ZodString;
|
|
2652
|
+
conversationTitle: z.ZodNullable<z.ZodString>;
|
|
2653
|
+
messagePreview: z.ZodString;
|
|
2654
|
+
messageRole: z.ZodString;
|
|
2655
|
+
messageCreatedAt: z.ZodNumber;
|
|
2656
|
+
createdAt: z.ZodNumber;
|
|
2657
|
+
}, z.core.$strip>;
|
|
2658
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2659
|
+
type: z.ZodLiteral<"bookmark.deleted">;
|
|
2660
|
+
messageId: z.ZodString;
|
|
2661
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2662
|
+
type: z.ZodLiteral<"client_settings_update">;
|
|
2663
|
+
key: z.ZodString;
|
|
2664
|
+
value: z.ZodString;
|
|
2665
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2666
|
+
type: z.ZodLiteral<"compaction_circuit_closed">;
|
|
2667
|
+
conversationId: z.ZodString;
|
|
2668
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2669
|
+
type: z.ZodLiteral<"compaction_circuit_open">;
|
|
2670
|
+
conversationId: z.ZodString;
|
|
2671
|
+
reason: z.ZodLiteral<"3_consecutive_failures">;
|
|
2672
|
+
openUntil: z.ZodNumber;
|
|
2673
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2674
|
+
type: z.ZodLiteral<"config_changed">;
|
|
2675
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2676
|
+
type: z.ZodLiteral<"confirmation_request">;
|
|
2677
|
+
requestId: z.ZodString;
|
|
2678
|
+
toolName: z.ZodString;
|
|
2679
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2680
|
+
riskLevel: z.ZodString;
|
|
2681
|
+
riskReason: z.ZodOptional<z.ZodString>;
|
|
2682
|
+
isContainerized: z.ZodOptional<z.ZodBoolean>;
|
|
2683
|
+
executionTarget: z.ZodOptional<z.ZodEnum<{
|
|
2684
|
+
sandbox: "sandbox";
|
|
2685
|
+
host: "host";
|
|
2686
|
+
}>>;
|
|
2687
|
+
allowlistOptions: z.ZodArray<z.ZodObject<{
|
|
2688
|
+
label: z.ZodString;
|
|
2689
|
+
description: z.ZodString;
|
|
2690
|
+
pattern: z.ZodString;
|
|
2691
|
+
}, z.core.$strip>>;
|
|
2692
|
+
scopeOptions: z.ZodArray<z.ZodObject<{
|
|
2693
|
+
label: z.ZodString;
|
|
2694
|
+
scope: z.ZodString;
|
|
2695
|
+
}, z.core.$strip>>;
|
|
2696
|
+
directoryScopeOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2697
|
+
label: z.ZodString;
|
|
2698
|
+
scope: z.ZodString;
|
|
2699
|
+
}, z.core.$strip>>>;
|
|
2700
|
+
diff: z.ZodOptional<z.ZodObject<{
|
|
2701
|
+
filePath: z.ZodString;
|
|
2702
|
+
oldContent: z.ZodString;
|
|
2703
|
+
newContent: z.ZodString;
|
|
2704
|
+
isNewFile: z.ZodBoolean;
|
|
2705
|
+
}, z.core.$strip>>;
|
|
2706
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
2707
|
+
persistentDecisionsAllowed: z.ZodOptional<z.ZodBoolean>;
|
|
2708
|
+
toolUseId: z.ZodOptional<z.ZodString>;
|
|
2709
|
+
acpToolKind: z.ZodOptional<z.ZodString>;
|
|
2710
|
+
acpOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2711
|
+
optionId: z.ZodString;
|
|
2712
|
+
name: z.ZodString;
|
|
2713
|
+
kind: z.ZodEnum<{
|
|
2714
|
+
allow_once: "allow_once";
|
|
2715
|
+
allow_always: "allow_always";
|
|
2716
|
+
reject_once: "reject_once";
|
|
2717
|
+
reject_always: "reject_always";
|
|
2718
|
+
}>;
|
|
2719
|
+
}, z.core.$strip>>>;
|
|
2720
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2721
|
+
type: z.ZodLiteral<"confirmation_state_changed">;
|
|
2722
|
+
conversationId: z.ZodString;
|
|
2723
|
+
requestId: z.ZodString;
|
|
2724
|
+
state: z.ZodEnum<{
|
|
2725
|
+
timed_out: "timed_out";
|
|
2726
|
+
pending: "pending";
|
|
2727
|
+
approved: "approved";
|
|
2728
|
+
denied: "denied";
|
|
2729
|
+
resolved_stale: "resolved_stale";
|
|
2730
|
+
}>;
|
|
2731
|
+
source: z.ZodEnum<{
|
|
2732
|
+
button: "button";
|
|
2733
|
+
inline_nl: "inline_nl";
|
|
2734
|
+
auto_deny: "auto_deny";
|
|
2735
|
+
timeout: "timeout";
|
|
2736
|
+
system: "system";
|
|
2737
|
+
}>;
|
|
2738
|
+
causedByRequestId: z.ZodOptional<z.ZodString>;
|
|
2739
|
+
decisionText: z.ZodOptional<z.ZodString>;
|
|
2740
|
+
toolUseId: z.ZodOptional<z.ZodString>;
|
|
2741
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2742
|
+
type: z.ZodLiteral<"contact_request">;
|
|
2743
|
+
requestId: z.ZodString;
|
|
2744
|
+
channel: z.ZodOptional<z.ZodString>;
|
|
2745
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
2746
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2747
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2748
|
+
role: z.ZodOptional<z.ZodString>;
|
|
2749
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2750
|
+
type: z.ZodLiteral<"contacts_changed">;
|
|
2751
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2752
|
+
type: z.ZodLiteral<"context_compacted">;
|
|
2753
|
+
conversationId: z.ZodString;
|
|
2754
|
+
previousEstimatedInputTokens: z.ZodNumber;
|
|
2755
|
+
estimatedInputTokens: z.ZodNumber;
|
|
2756
|
+
maxInputTokens: z.ZodNumber;
|
|
2757
|
+
thresholdTokens: z.ZodNumber;
|
|
2758
|
+
compactedMessages: z.ZodNumber;
|
|
2759
|
+
summaryCalls: z.ZodNumber;
|
|
2760
|
+
summaryInputTokens: z.ZodNumber;
|
|
2761
|
+
summaryOutputTokens: z.ZodNumber;
|
|
2762
|
+
summaryModel: z.ZodString;
|
|
2763
|
+
summaryCharCount: z.ZodOptional<z.ZodNumber>;
|
|
2764
|
+
summaryHeaderCount: z.ZodOptional<z.ZodNumber>;
|
|
2765
|
+
summaryHadMemoryEcho: z.ZodOptional<z.ZodBoolean>;
|
|
2766
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2767
|
+
type: z.ZodLiteral<"conversation_error">;
|
|
2768
|
+
conversationId: z.ZodString;
|
|
2769
|
+
code: z.ZodEnum<{
|
|
2770
|
+
PROVIDER_NETWORK: "PROVIDER_NETWORK";
|
|
2771
|
+
PROVIDER_RATE_LIMIT: "PROVIDER_RATE_LIMIT";
|
|
2772
|
+
MANAGED_USAGE_LIMIT: "MANAGED_USAGE_LIMIT";
|
|
2773
|
+
PROVIDER_OVERLOADED: "PROVIDER_OVERLOADED";
|
|
2774
|
+
PROVIDER_API: "PROVIDER_API";
|
|
2775
|
+
IMAGE_TOO_LARGE: "IMAGE_TOO_LARGE";
|
|
2776
|
+
PROVIDER_BILLING: "PROVIDER_BILLING";
|
|
2777
|
+
PROVIDER_ORDERING: "PROVIDER_ORDERING";
|
|
2778
|
+
PROVIDER_WEB_SEARCH: "PROVIDER_WEB_SEARCH";
|
|
2779
|
+
PROVIDER_NOT_CONFIGURED: "PROVIDER_NOT_CONFIGURED";
|
|
2780
|
+
PROVIDER_INVALID_KEY: "PROVIDER_INVALID_KEY";
|
|
2781
|
+
MANAGED_KEY_INVALID: "MANAGED_KEY_INVALID";
|
|
2782
|
+
CONTEXT_TOO_LARGE: "CONTEXT_TOO_LARGE";
|
|
2783
|
+
BUDGET_YIELD_UNRECOVERED: "BUDGET_YIELD_UNRECOVERED";
|
|
2784
|
+
MAX_TOKENS_REACHED: "MAX_TOKENS_REACHED";
|
|
2785
|
+
CONVERSATION_ABORTED: "CONVERSATION_ABORTED";
|
|
2786
|
+
CONVERSATION_PROCESSING_FAILED: "CONVERSATION_PROCESSING_FAILED";
|
|
2787
|
+
DISK_SPACE_CRITICAL: "DISK_SPACE_CRITICAL";
|
|
2788
|
+
UNKNOWN: "UNKNOWN";
|
|
2789
|
+
}>;
|
|
2790
|
+
userMessage: z.ZodString;
|
|
2791
|
+
retryable: z.ZodBoolean;
|
|
2792
|
+
debugDetails: z.ZodOptional<z.ZodString>;
|
|
2793
|
+
errorCategory: z.ZodOptional<z.ZodString>;
|
|
2794
|
+
connectionName: z.ZodOptional<z.ZodString>;
|
|
2795
|
+
profileName: z.ZodOptional<z.ZodString>;
|
|
2796
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2797
|
+
type: z.ZodLiteral<"conversation_inference_profile_updated">;
|
|
2798
|
+
conversationId: z.ZodString;
|
|
2799
|
+
profile: z.ZodNullable<z.ZodString>;
|
|
2800
|
+
sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2801
|
+
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2802
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2803
|
+
type: z.ZodLiteral<"conversation_list_invalidated">;
|
|
2804
|
+
reason: z.ZodEnum<{
|
|
2805
|
+
created: "created";
|
|
2806
|
+
renamed: "renamed";
|
|
2807
|
+
deleted: "deleted";
|
|
2808
|
+
reordered: "reordered";
|
|
2809
|
+
seen_changed: "seen_changed";
|
|
2810
|
+
}>;
|
|
2811
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2812
|
+
type: z.ZodLiteral<"conversation_notice">;
|
|
2813
|
+
conversationId: z.ZodString;
|
|
2814
|
+
source: z.ZodEnum<{
|
|
2815
|
+
memory_v3: "memory_v3";
|
|
2816
|
+
}>;
|
|
2817
|
+
code: z.ZodEnum<{
|
|
2818
|
+
PROVIDER_NETWORK: "PROVIDER_NETWORK";
|
|
2819
|
+
PROVIDER_RATE_LIMIT: "PROVIDER_RATE_LIMIT";
|
|
2820
|
+
MANAGED_USAGE_LIMIT: "MANAGED_USAGE_LIMIT";
|
|
2821
|
+
PROVIDER_OVERLOADED: "PROVIDER_OVERLOADED";
|
|
2822
|
+
PROVIDER_API: "PROVIDER_API";
|
|
2823
|
+
IMAGE_TOO_LARGE: "IMAGE_TOO_LARGE";
|
|
2824
|
+
PROVIDER_BILLING: "PROVIDER_BILLING";
|
|
2825
|
+
PROVIDER_ORDERING: "PROVIDER_ORDERING";
|
|
2826
|
+
PROVIDER_WEB_SEARCH: "PROVIDER_WEB_SEARCH";
|
|
2827
|
+
PROVIDER_NOT_CONFIGURED: "PROVIDER_NOT_CONFIGURED";
|
|
2828
|
+
PROVIDER_INVALID_KEY: "PROVIDER_INVALID_KEY";
|
|
2829
|
+
MANAGED_KEY_INVALID: "MANAGED_KEY_INVALID";
|
|
2830
|
+
CONTEXT_TOO_LARGE: "CONTEXT_TOO_LARGE";
|
|
2831
|
+
BUDGET_YIELD_UNRECOVERED: "BUDGET_YIELD_UNRECOVERED";
|
|
2832
|
+
MAX_TOKENS_REACHED: "MAX_TOKENS_REACHED";
|
|
2833
|
+
CONVERSATION_ABORTED: "CONVERSATION_ABORTED";
|
|
2834
|
+
CONVERSATION_PROCESSING_FAILED: "CONVERSATION_PROCESSING_FAILED";
|
|
2835
|
+
DISK_SPACE_CRITICAL: "DISK_SPACE_CRITICAL";
|
|
2836
|
+
UNKNOWN: "UNKNOWN";
|
|
2837
|
+
}>;
|
|
2838
|
+
userMessage: z.ZodString;
|
|
2839
|
+
errorCategory: z.ZodOptional<z.ZodString>;
|
|
2840
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2841
|
+
type: z.ZodLiteral<"conversation_title_updated">;
|
|
2842
|
+
conversationId: z.ZodString;
|
|
2843
|
+
title: z.ZodString;
|
|
2844
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2845
|
+
type: z.ZodLiteral<"disk_pressure_status_changed">;
|
|
2846
|
+
status: z.ZodObject<{
|
|
2847
|
+
enabled: z.ZodBoolean;
|
|
2848
|
+
state: z.ZodEnum<{
|
|
2849
|
+
unknown: "unknown";
|
|
2850
|
+
disabled: "disabled";
|
|
2851
|
+
critical: "critical";
|
|
2852
|
+
ok: "ok";
|
|
2853
|
+
warning: "warning";
|
|
2854
|
+
}>;
|
|
2855
|
+
locked: z.ZodBoolean;
|
|
2856
|
+
acknowledged: z.ZodBoolean;
|
|
2857
|
+
overrideActive: z.ZodBoolean;
|
|
2858
|
+
effectivelyLocked: z.ZodBoolean;
|
|
2859
|
+
lockId: z.ZodNullable<z.ZodString>;
|
|
2860
|
+
usagePercent: z.ZodNullable<z.ZodNumber>;
|
|
2861
|
+
thresholdPercent: z.ZodNumber;
|
|
2862
|
+
path: z.ZodNullable<z.ZodString>;
|
|
2863
|
+
lastCheckedAt: z.ZodNullable<z.ZodString>;
|
|
2864
|
+
blockedCapabilities: z.ZodArray<z.ZodEnum<{
|
|
2865
|
+
"agent-turns": "agent-turns";
|
|
2866
|
+
"background-work": "background-work";
|
|
2867
|
+
"remote-ingress": "remote-ingress";
|
|
2868
|
+
}>>;
|
|
2869
|
+
error: z.ZodNullable<z.ZodString>;
|
|
2870
|
+
}, z.core.$strip>;
|
|
2871
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2872
|
+
type: z.ZodLiteral<"document_comment_created">;
|
|
2873
|
+
conversationId: z.ZodString;
|
|
2874
|
+
surfaceId: z.ZodString;
|
|
2875
|
+
comment: z.ZodObject<{
|
|
2876
|
+
id: z.ZodString;
|
|
2877
|
+
surfaceId: z.ZodString;
|
|
2878
|
+
author: z.ZodString;
|
|
2879
|
+
content: z.ZodString;
|
|
2880
|
+
anchorStart: z.ZodOptional<z.ZodNumber>;
|
|
2881
|
+
anchorEnd: z.ZodOptional<z.ZodNumber>;
|
|
2882
|
+
anchorText: z.ZodOptional<z.ZodString>;
|
|
2883
|
+
parentCommentId: z.ZodOptional<z.ZodString>;
|
|
2884
|
+
status: z.ZodString;
|
|
2885
|
+
createdAt: z.ZodNumber;
|
|
2886
|
+
updatedAt: z.ZodNumber;
|
|
2887
|
+
}, z.core.$strip>;
|
|
2888
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2889
|
+
type: z.ZodLiteral<"document_comment_deleted">;
|
|
2890
|
+
conversationId: z.ZodString;
|
|
2891
|
+
surfaceId: z.ZodString;
|
|
2892
|
+
commentId: z.ZodString;
|
|
2893
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2894
|
+
type: z.ZodLiteral<"document_comment_reopened">;
|
|
2895
|
+
conversationId: z.ZodString;
|
|
2896
|
+
surfaceId: z.ZodString;
|
|
2897
|
+
commentId: z.ZodString;
|
|
2898
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2899
|
+
type: z.ZodLiteral<"document_comment_resolved">;
|
|
2900
|
+
conversationId: z.ZodString;
|
|
2901
|
+
surfaceId: z.ZodString;
|
|
2902
|
+
commentId: z.ZodString;
|
|
2903
|
+
resolvedBy: z.ZodString;
|
|
2904
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2905
|
+
type: z.ZodLiteral<"document_editor_show">;
|
|
2906
|
+
conversationId: z.ZodString;
|
|
2907
|
+
surfaceId: z.ZodString;
|
|
2908
|
+
title: z.ZodString;
|
|
2909
|
+
initialContent: z.ZodString;
|
|
2910
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2911
|
+
type: z.ZodLiteral<"document_editor_update">;
|
|
2912
|
+
conversationId: z.ZodString;
|
|
2913
|
+
surfaceId: z.ZodString;
|
|
2914
|
+
markdown: z.ZodString;
|
|
2915
|
+
mode: z.ZodString;
|
|
2916
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2917
|
+
type: z.ZodLiteral<"error">;
|
|
2918
|
+
message: z.ZodString;
|
|
2919
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2920
|
+
category: z.ZodOptional<z.ZodString>;
|
|
2921
|
+
errorCategory: z.ZodOptional<z.ZodString>;
|
|
2922
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
2923
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
2924
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2925
|
+
type: z.ZodLiteral<"generation_cancelled">;
|
|
2926
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
2927
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2928
|
+
type: z.ZodLiteral<"generation_handoff">;
|
|
2929
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
2930
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
2931
|
+
queuedCount: z.ZodNumber;
|
|
2932
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
2933
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2934
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2935
|
+
filename: z.ZodString;
|
|
2936
|
+
mimeType: z.ZodString;
|
|
2937
|
+
data: z.ZodString;
|
|
2938
|
+
sourceType: z.ZodOptional<z.ZodEnum<{
|
|
2939
|
+
host_file: "host_file";
|
|
2940
|
+
sandbox_file: "sandbox_file";
|
|
2941
|
+
tool_block: "tool_block";
|
|
2942
|
+
}>>;
|
|
2943
|
+
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
2944
|
+
thumbnailData: z.ZodOptional<z.ZodString>;
|
|
2945
|
+
fileBacked: z.ZodOptional<z.ZodBoolean>;
|
|
2946
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
2947
|
+
}, z.core.$strip>>>;
|
|
2948
|
+
attachmentWarnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2949
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2950
|
+
type: z.ZodLiteral<"heartbeat_alert">;
|
|
2951
|
+
title: z.ZodString;
|
|
2952
|
+
body: z.ZodString;
|
|
2953
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2954
|
+
type: z.ZodLiteral<"heartbeat_conversation_created">;
|
|
2955
|
+
conversationId: z.ZodString;
|
|
2956
|
+
title: z.ZodString;
|
|
2957
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2958
|
+
type: z.ZodLiteral<"home_feed_updated">;
|
|
2959
|
+
updatedAt: z.ZodString;
|
|
2960
|
+
newItemCount: z.ZodNumber;
|
|
2961
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2962
|
+
type: z.ZodLiteral<"hook_event">;
|
|
2963
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
2964
|
+
hookName: z.ZodString;
|
|
2965
|
+
owner: z.ZodObject<{
|
|
2966
|
+
kind: z.ZodEnum<{
|
|
2967
|
+
plugin: "plugin";
|
|
2968
|
+
workspace: "workspace";
|
|
2969
|
+
}>;
|
|
2970
|
+
id: z.ZodString;
|
|
2971
|
+
}, z.core.$strip>;
|
|
2972
|
+
detail: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2973
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2974
|
+
type: z.ZodLiteral<"host_app_control_cancel">;
|
|
2975
|
+
requestId: z.ZodString;
|
|
2976
|
+
conversationId: z.ZodString;
|
|
2977
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2978
|
+
type: z.ZodLiteral<"host_app_control_request">;
|
|
2979
|
+
requestId: z.ZodString;
|
|
2980
|
+
conversationId: z.ZodString;
|
|
2981
|
+
toolName: z.ZodString;
|
|
2982
|
+
input: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2983
|
+
tool: z.ZodLiteral<"start">;
|
|
2984
|
+
app: z.ZodString;
|
|
2985
|
+
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2986
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2987
|
+
tool: z.ZodLiteral<"observe">;
|
|
2988
|
+
app: z.ZodString;
|
|
2989
|
+
settle_ms: z.ZodOptional<z.ZodNumber>;
|
|
2990
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2991
|
+
tool: z.ZodLiteral<"press">;
|
|
2992
|
+
app: z.ZodString;
|
|
2993
|
+
key: z.ZodString;
|
|
2994
|
+
modifiers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2995
|
+
duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
2996
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2997
|
+
tool: z.ZodLiteral<"combo">;
|
|
2998
|
+
app: z.ZodString;
|
|
2999
|
+
keys: z.ZodArray<z.ZodString>;
|
|
3000
|
+
duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
3001
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3002
|
+
tool: z.ZodLiteral<"sequence">;
|
|
3003
|
+
app: z.ZodString;
|
|
3004
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
3005
|
+
key: z.ZodString;
|
|
3006
|
+
modifiers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3007
|
+
duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
3008
|
+
gap_ms: z.ZodOptional<z.ZodNumber>;
|
|
3009
|
+
}, z.core.$strip>>;
|
|
3010
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3011
|
+
tool: z.ZodLiteral<"type">;
|
|
3012
|
+
app: z.ZodString;
|
|
3013
|
+
text: z.ZodString;
|
|
3014
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3015
|
+
tool: z.ZodLiteral<"click">;
|
|
3016
|
+
app: z.ZodString;
|
|
3017
|
+
x: z.ZodNumber;
|
|
3018
|
+
y: z.ZodNumber;
|
|
3019
|
+
button: z.ZodOptional<z.ZodEnum<{
|
|
3020
|
+
left: "left";
|
|
3021
|
+
right: "right";
|
|
3022
|
+
middle: "middle";
|
|
3023
|
+
}>>;
|
|
3024
|
+
double: z.ZodOptional<z.ZodBoolean>;
|
|
3025
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3026
|
+
tool: z.ZodLiteral<"drag">;
|
|
3027
|
+
app: z.ZodString;
|
|
3028
|
+
from_x: z.ZodNumber;
|
|
3029
|
+
from_y: z.ZodNumber;
|
|
3030
|
+
to_x: z.ZodNumber;
|
|
3031
|
+
to_y: z.ZodNumber;
|
|
3032
|
+
button: z.ZodOptional<z.ZodEnum<{
|
|
3033
|
+
left: "left";
|
|
3034
|
+
right: "right";
|
|
3035
|
+
middle: "middle";
|
|
3036
|
+
}>>;
|
|
3037
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3038
|
+
tool: z.ZodLiteral<"stop">;
|
|
3039
|
+
app: z.ZodOptional<z.ZodString>;
|
|
3040
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
3041
|
+
}, z.core.$strip>], "tool">;
|
|
3042
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3043
|
+
type: z.ZodLiteral<"host_bash_cancel">;
|
|
3044
|
+
requestId: z.ZodString;
|
|
3045
|
+
conversationId: z.ZodString;
|
|
3046
|
+
targetClientId: z.ZodOptional<z.ZodString>;
|
|
3047
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3048
|
+
type: z.ZodLiteral<"host_bash_request">;
|
|
3049
|
+
requestId: z.ZodString;
|
|
3050
|
+
conversationId: z.ZodString;
|
|
3051
|
+
command: z.ZodString;
|
|
3052
|
+
working_dir: z.ZodOptional<z.ZodString>;
|
|
3053
|
+
timeout_seconds: z.ZodOptional<z.ZodNumber>;
|
|
3054
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3055
|
+
targetClientId: z.ZodOptional<z.ZodString>;
|
|
3056
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3057
|
+
type: z.ZodLiteral<"host_browser_cancel">;
|
|
3058
|
+
requestId: z.ZodString;
|
|
3059
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3060
|
+
type: z.ZodLiteral<"host_browser_request">;
|
|
3061
|
+
requestId: z.ZodString;
|
|
3062
|
+
conversationId: z.ZodString;
|
|
3063
|
+
cdpMethod: z.ZodString;
|
|
3064
|
+
cdpParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3065
|
+
cdpSessionId: z.ZodOptional<z.ZodString>;
|
|
3066
|
+
timeout_seconds: z.ZodOptional<z.ZodNumber>;
|
|
3067
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3068
|
+
type: z.ZodLiteral<"host_cu_cancel">;
|
|
3069
|
+
requestId: z.ZodString;
|
|
3070
|
+
conversationId: z.ZodString;
|
|
3071
|
+
targetClientId: z.ZodOptional<z.ZodString>;
|
|
3072
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3073
|
+
type: z.ZodLiteral<"host_cu_request">;
|
|
3074
|
+
requestId: z.ZodString;
|
|
3075
|
+
conversationId: z.ZodString;
|
|
3076
|
+
targetClientId: z.ZodOptional<z.ZodString>;
|
|
3077
|
+
toolName: z.ZodString;
|
|
3078
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3079
|
+
stepNumber: z.ZodNumber;
|
|
3080
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
3081
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3082
|
+
type: z.ZodLiteral<"host_file_cancel">;
|
|
3083
|
+
requestId: z.ZodString;
|
|
3084
|
+
conversationId: z.ZodString;
|
|
3085
|
+
targetClientId: z.ZodOptional<z.ZodString>;
|
|
3086
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3087
|
+
type: z.ZodLiteral<"host_file_request">;
|
|
3088
|
+
requestId: z.ZodString;
|
|
3089
|
+
conversationId: z.ZodString;
|
|
3090
|
+
targetClientId: z.ZodOptional<z.ZodString>;
|
|
3091
|
+
operation: z.ZodLiteral<"read">;
|
|
3092
|
+
path: z.ZodString;
|
|
3093
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
3094
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
3095
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3096
|
+
type: z.ZodLiteral<"host_file_request">;
|
|
3097
|
+
requestId: z.ZodString;
|
|
3098
|
+
conversationId: z.ZodString;
|
|
3099
|
+
targetClientId: z.ZodOptional<z.ZodString>;
|
|
3100
|
+
operation: z.ZodLiteral<"write">;
|
|
3101
|
+
path: z.ZodString;
|
|
3102
|
+
content: z.ZodString;
|
|
3103
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3104
|
+
type: z.ZodLiteral<"host_file_request">;
|
|
3105
|
+
requestId: z.ZodString;
|
|
3106
|
+
conversationId: z.ZodString;
|
|
3107
|
+
targetClientId: z.ZodOptional<z.ZodString>;
|
|
3108
|
+
operation: z.ZodLiteral<"edit">;
|
|
3109
|
+
path: z.ZodString;
|
|
3110
|
+
old_string: z.ZodString;
|
|
3111
|
+
new_string: z.ZodString;
|
|
3112
|
+
replace_all: z.ZodOptional<z.ZodBoolean>;
|
|
3113
|
+
}, z.core.$strip>], "operation">, z.ZodObject<{
|
|
3114
|
+
type: z.ZodLiteral<"host_transfer_cancel">;
|
|
3115
|
+
requestId: z.ZodString;
|
|
3116
|
+
conversationId: z.ZodString;
|
|
3117
|
+
targetClientId: z.ZodOptional<z.ZodString>;
|
|
3118
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3119
|
+
type: z.ZodLiteral<"host_transfer_request">;
|
|
3120
|
+
requestId: z.ZodString;
|
|
3121
|
+
conversationId: z.ZodString;
|
|
3122
|
+
targetClientId: z.ZodOptional<z.ZodString>;
|
|
3123
|
+
direction: z.ZodLiteral<"to_host">;
|
|
3124
|
+
transferId: z.ZodString;
|
|
3125
|
+
destPath: z.ZodString;
|
|
3126
|
+
sizeBytes: z.ZodNumber;
|
|
3127
|
+
sha256: z.ZodString;
|
|
3128
|
+
overwrite: z.ZodBoolean;
|
|
3129
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3130
|
+
type: z.ZodLiteral<"host_transfer_request">;
|
|
3131
|
+
requestId: z.ZodString;
|
|
3132
|
+
conversationId: z.ZodString;
|
|
3133
|
+
targetClientId: z.ZodOptional<z.ZodString>;
|
|
3134
|
+
direction: z.ZodLiteral<"to_sandbox">;
|
|
3135
|
+
transferId: z.ZodString;
|
|
3136
|
+
sourcePath: z.ZodString;
|
|
3137
|
+
}, z.core.$strip>], "direction">, z.ZodObject<{
|
|
3138
|
+
type: z.ZodLiteral<"host_ui_snapshot_cancel">;
|
|
3139
|
+
requestId: z.ZodString;
|
|
3140
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3141
|
+
type: z.ZodLiteral<"host_ui_snapshot_request">;
|
|
3142
|
+
requestId: z.ZodString;
|
|
3143
|
+
view: z.ZodEnum<{
|
|
3144
|
+
sampler: "sampler";
|
|
3145
|
+
chat: "chat";
|
|
3146
|
+
}>;
|
|
3147
|
+
tokens: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3148
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3149
|
+
type: z.ZodLiteral<"identity_changed">;
|
|
3150
|
+
name: z.ZodString;
|
|
3151
|
+
role: z.ZodString;
|
|
3152
|
+
personality: z.ZodString;
|
|
3153
|
+
emoji: z.ZodString;
|
|
3154
|
+
home: z.ZodString;
|
|
3155
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3156
|
+
type: z.ZodLiteral<"interaction_resolved">;
|
|
3157
|
+
requestId: z.ZodString;
|
|
3158
|
+
conversationId: z.ZodString;
|
|
3159
|
+
state: z.ZodEnum<{
|
|
3160
|
+
cancelled: "cancelled";
|
|
3161
|
+
superseded: "superseded";
|
|
3162
|
+
approved: "approved";
|
|
3163
|
+
rejected: "rejected";
|
|
3164
|
+
answered: "answered";
|
|
3165
|
+
}>;
|
|
3166
|
+
kind: z.ZodString;
|
|
3167
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3168
|
+
type: z.ZodLiteral<"memory_recalled">;
|
|
3169
|
+
provider: z.ZodString;
|
|
3170
|
+
model: z.ZodString;
|
|
3171
|
+
degradation: z.ZodOptional<z.ZodObject<{
|
|
3172
|
+
semanticUnavailable: z.ZodBoolean;
|
|
3173
|
+
reason: z.ZodString;
|
|
3174
|
+
fallbackSources: z.ZodArray<z.ZodString>;
|
|
3175
|
+
}, z.core.$strip>>;
|
|
3176
|
+
semanticHits: z.ZodNumber;
|
|
3177
|
+
tier1Count: z.ZodNumber;
|
|
3178
|
+
tier2Count: z.ZodNumber;
|
|
3179
|
+
hybridSearchLatencyMs: z.ZodNumber;
|
|
3180
|
+
sparseVectorUsed: z.ZodBoolean;
|
|
3181
|
+
mergedCount: z.ZodNumber;
|
|
3182
|
+
selectedCount: z.ZodNumber;
|
|
3183
|
+
injectedTokens: z.ZodNumber;
|
|
3184
|
+
latencyMs: z.ZodNumber;
|
|
3185
|
+
topCandidates: z.ZodArray<z.ZodObject<{
|
|
3186
|
+
key: z.ZodString;
|
|
3187
|
+
type: z.ZodString;
|
|
3188
|
+
kind: z.ZodString;
|
|
3189
|
+
finalScore: z.ZodNumber;
|
|
3190
|
+
semantic: z.ZodNumber;
|
|
3191
|
+
recency: z.ZodNumber;
|
|
3192
|
+
}, z.core.$strip>>;
|
|
3193
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3194
|
+
type: z.ZodLiteral<"memory_status">;
|
|
3195
|
+
enabled: z.ZodBoolean;
|
|
3196
|
+
degraded: z.ZodBoolean;
|
|
3197
|
+
degradation: z.ZodOptional<z.ZodObject<{
|
|
3198
|
+
semanticUnavailable: z.ZodBoolean;
|
|
3199
|
+
reason: z.ZodString;
|
|
3200
|
+
fallbackSources: z.ZodArray<z.ZodString>;
|
|
3201
|
+
}, z.core.$strip>>;
|
|
3202
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
3203
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
3204
|
+
model: z.ZodOptional<z.ZodString>;
|
|
3205
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3206
|
+
type: z.ZodLiteral<"message_complete">;
|
|
3207
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
3208
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
3209
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
3210
|
+
main: "main";
|
|
3211
|
+
aux: "aux";
|
|
3212
|
+
}>>;
|
|
3213
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3214
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3215
|
+
filename: z.ZodString;
|
|
3216
|
+
mimeType: z.ZodString;
|
|
3217
|
+
data: z.ZodString;
|
|
3218
|
+
sourceType: z.ZodOptional<z.ZodEnum<{
|
|
3219
|
+
host_file: "host_file";
|
|
3220
|
+
sandbox_file: "sandbox_file";
|
|
3221
|
+
tool_block: "tool_block";
|
|
3222
|
+
}>>;
|
|
3223
|
+
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
3224
|
+
thumbnailData: z.ZodOptional<z.ZodString>;
|
|
3225
|
+
fileBacked: z.ZodOptional<z.ZodBoolean>;
|
|
3226
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
3227
|
+
}, z.core.$strip>>>;
|
|
3228
|
+
attachmentWarnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3229
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3230
|
+
type: z.ZodLiteral<"message_dequeued">;
|
|
3231
|
+
conversationId: z.ZodString;
|
|
3232
|
+
requestId: z.ZodString;
|
|
3233
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3234
|
+
type: z.ZodLiteral<"message_queued">;
|
|
3235
|
+
conversationId: z.ZodString;
|
|
3236
|
+
requestId: z.ZodString;
|
|
3237
|
+
position: z.ZodNumber;
|
|
3238
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3239
|
+
type: z.ZodLiteral<"message_queued_deleted">;
|
|
3240
|
+
conversationId: z.ZodString;
|
|
3241
|
+
requestId: z.ZodString;
|
|
3242
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3243
|
+
type: z.ZodLiteral<"message_request_complete">;
|
|
3244
|
+
conversationId: z.ZodString;
|
|
3245
|
+
requestId: z.ZodString;
|
|
3246
|
+
runStillActive: z.ZodOptional<z.ZodBoolean>;
|
|
3247
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3248
|
+
type: z.ZodLiteral<"message_steered">;
|
|
3249
|
+
conversationId: z.ZodString;
|
|
3250
|
+
requestId: z.ZodString;
|
|
3251
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3252
|
+
type: z.ZodLiteral<"model_info">;
|
|
3253
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
3254
|
+
model: z.ZodString;
|
|
3255
|
+
provider: z.ZodString;
|
|
3256
|
+
configuredProviders: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3257
|
+
availableModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3258
|
+
id: z.ZodString;
|
|
3259
|
+
displayName: z.ZodString;
|
|
3260
|
+
}, z.core.$strip>>>;
|
|
3261
|
+
allProviders: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3262
|
+
id: z.ZodString;
|
|
3263
|
+
displayName: z.ZodString;
|
|
3264
|
+
models: z.ZodArray<z.ZodObject<{
|
|
3265
|
+
id: z.ZodString;
|
|
3266
|
+
displayName: z.ZodString;
|
|
3267
|
+
}, z.core.$strip>>;
|
|
3268
|
+
defaultModel: z.ZodString;
|
|
3269
|
+
apiKeyUrl: z.ZodOptional<z.ZodString>;
|
|
3270
|
+
apiKeyPlaceholder: z.ZodOptional<z.ZodString>;
|
|
3271
|
+
}, z.core.$strip>>>;
|
|
3272
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3273
|
+
type: z.ZodLiteral<"navigate_settings">;
|
|
3274
|
+
tab: z.ZodString;
|
|
3275
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3276
|
+
type: z.ZodLiteral<"notification_conversation_created">;
|
|
3277
|
+
conversationId: z.ZodString;
|
|
3278
|
+
title: z.ZodString;
|
|
3279
|
+
sourceEventName: z.ZodString;
|
|
3280
|
+
targetGuardianPrincipalId: z.ZodOptional<z.ZodString>;
|
|
3281
|
+
groupId: z.ZodOptional<z.ZodString>;
|
|
3282
|
+
source: z.ZodOptional<z.ZodString>;
|
|
3283
|
+
silent: z.ZodOptional<z.ZodBoolean>;
|
|
3284
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3285
|
+
type: z.ZodLiteral<"notification_intent">;
|
|
3286
|
+
sourceEventName: z.ZodString;
|
|
3287
|
+
title: z.ZodString;
|
|
3288
|
+
body: z.ZodString;
|
|
3289
|
+
deliveryId: z.ZodOptional<z.ZodString>;
|
|
3290
|
+
deepLinkMetadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3291
|
+
targetGuardianPrincipalId: z.ZodOptional<z.ZodString>;
|
|
3292
|
+
silent: z.ZodOptional<z.ZodBoolean>;
|
|
3293
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3294
|
+
type: z.ZodLiteral<"oauth_connect_result">;
|
|
3295
|
+
success: z.ZodBoolean;
|
|
3296
|
+
service: z.ZodOptional<z.ZodString>;
|
|
3297
|
+
grantedScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3298
|
+
accountInfo: z.ZodOptional<z.ZodString>;
|
|
3299
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3300
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3301
|
+
type: z.ZodLiteral<"open_conversation">;
|
|
3302
|
+
conversationId: z.ZodString;
|
|
3303
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3304
|
+
anchorMessageId: z.ZodOptional<z.ZodString>;
|
|
3305
|
+
focus: z.ZodOptional<z.ZodBoolean>;
|
|
3306
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3307
|
+
type: z.ZodLiteral<"open_panel">;
|
|
3308
|
+
panelType: z.ZodString;
|
|
3309
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3310
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
3311
|
+
surfaceId: z.ZodOptional<z.ZodString>;
|
|
3312
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3313
|
+
type: z.ZodLiteral<"open_url">;
|
|
3314
|
+
url: z.ZodString;
|
|
3315
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3316
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
3317
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3318
|
+
type: z.ZodLiteral<"platform_disconnected">;
|
|
3319
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3320
|
+
type: z.ZodLiteral<"question_request">;
|
|
3321
|
+
requestId: z.ZodString;
|
|
3322
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
3323
|
+
id: z.ZodString;
|
|
3324
|
+
question: z.ZodString;
|
|
3325
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3326
|
+
options: z.ZodArray<z.ZodObject<{
|
|
3327
|
+
id: z.ZodString;
|
|
3328
|
+
label: z.ZodString;
|
|
3329
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3330
|
+
}, z.core.$strip>>;
|
|
3331
|
+
freeTextPlaceholder: z.ZodOptional<z.ZodString>;
|
|
3332
|
+
}, z.core.$strip>>;
|
|
3333
|
+
question: z.ZodString;
|
|
3334
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3335
|
+
options: z.ZodArray<z.ZodObject<{
|
|
3336
|
+
id: z.ZodString;
|
|
3337
|
+
label: z.ZodString;
|
|
3338
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3339
|
+
}, z.core.$strip>>;
|
|
3340
|
+
freeTextPlaceholder: z.ZodOptional<z.ZodString>;
|
|
3341
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
3342
|
+
toolUseId: z.ZodOptional<z.ZodString>;
|
|
3343
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3344
|
+
type: z.ZodLiteral<"recording_pause">;
|
|
3345
|
+
recordingId: z.ZodString;
|
|
3346
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3347
|
+
type: z.ZodLiteral<"recording_resume">;
|
|
3348
|
+
recordingId: z.ZodString;
|
|
3349
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3350
|
+
type: z.ZodLiteral<"recording_start">;
|
|
3351
|
+
recordingId: z.ZodString;
|
|
3352
|
+
attachToConversationId: z.ZodOptional<z.ZodString>;
|
|
3353
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
3354
|
+
captureScope: z.ZodOptional<z.ZodEnum<{
|
|
3355
|
+
display: "display";
|
|
3356
|
+
window: "window";
|
|
3357
|
+
}>>;
|
|
3358
|
+
displayId: z.ZodOptional<z.ZodString>;
|
|
3359
|
+
windowId: z.ZodOptional<z.ZodNumber>;
|
|
3360
|
+
includeAudio: z.ZodOptional<z.ZodBoolean>;
|
|
3361
|
+
includeMicrophone: z.ZodOptional<z.ZodBoolean>;
|
|
3362
|
+
promptForSource: z.ZodOptional<z.ZodBoolean>;
|
|
3363
|
+
}, z.core.$strip>>;
|
|
3364
|
+
operationToken: z.ZodOptional<z.ZodString>;
|
|
3365
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3366
|
+
type: z.ZodLiteral<"recording_stop">;
|
|
3367
|
+
recordingId: z.ZodString;
|
|
3368
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3369
|
+
type: z.ZodLiteral<"relationship_state_updated">;
|
|
3370
|
+
updatedAt: z.ZodString;
|
|
3371
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3372
|
+
type: z.ZodLiteral<"schedule_conversation_created">;
|
|
3373
|
+
conversationId: z.ZodString;
|
|
3374
|
+
scheduleJobId: z.ZodString;
|
|
3375
|
+
title: z.ZodString;
|
|
3376
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3377
|
+
type: z.ZodLiteral<"secret_request">;
|
|
3378
|
+
requestId: z.ZodString;
|
|
3379
|
+
service: z.ZodString;
|
|
3380
|
+
field: z.ZodString;
|
|
3381
|
+
label: z.ZodString;
|
|
3382
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3383
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
3384
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
3385
|
+
purpose: z.ZodOptional<z.ZodString>;
|
|
3386
|
+
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3387
|
+
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3388
|
+
allowOneTimeSend: z.ZodOptional<z.ZodBoolean>;
|
|
3389
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3390
|
+
type: z.ZodLiteral<"service_group_update_complete">;
|
|
3391
|
+
installedVersion: z.ZodString;
|
|
3392
|
+
success: z.ZodBoolean;
|
|
3393
|
+
rolledBackToVersion: z.ZodOptional<z.ZodString>;
|
|
3394
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3395
|
+
type: z.ZodLiteral<"service_group_update_progress">;
|
|
3396
|
+
statusMessage: z.ZodString;
|
|
3397
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3398
|
+
type: z.ZodLiteral<"service_group_update_starting">;
|
|
3399
|
+
targetVersion: z.ZodString;
|
|
3400
|
+
expectedDowntimeSeconds: z.ZodNumber;
|
|
3401
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3402
|
+
type: z.ZodLiteral<"show_platform_login">;
|
|
3403
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3404
|
+
type: z.ZodLiteral<"skills_state_changed">;
|
|
3405
|
+
name: z.ZodString;
|
|
3406
|
+
state: z.ZodEnum<{
|
|
3407
|
+
enabled: "enabled";
|
|
3408
|
+
disabled: "disabled";
|
|
3409
|
+
installed: "installed";
|
|
3410
|
+
uninstalled: "uninstalled";
|
|
3411
|
+
}>;
|
|
3412
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3413
|
+
type: z.ZodLiteral<"sounds_config_updated">;
|
|
3414
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3415
|
+
type: z.ZodLiteral<"subagent_event">;
|
|
3416
|
+
conversationId: z.ZodString;
|
|
3417
|
+
subagentId: z.ZodString;
|
|
3418
|
+
event: z.ZodObject<{
|
|
3419
|
+
type: z.ZodString;
|
|
3420
|
+
content: z.ZodOptional<z.ZodString>;
|
|
3421
|
+
text: z.ZodOptional<z.ZodString>;
|
|
3422
|
+
result: z.ZodOptional<z.ZodString>;
|
|
3423
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3424
|
+
toolName: z.ZodOptional<z.ZodString>;
|
|
3425
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
3426
|
+
toolUseId: z.ZodOptional<z.ZodString>;
|
|
3427
|
+
}, z.core.$loose>;
|
|
3428
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3429
|
+
type: z.ZodLiteral<"subagent_spawned">;
|
|
3430
|
+
subagentId: z.ZodString;
|
|
3431
|
+
parentConversationId: z.ZodString;
|
|
3432
|
+
label: z.ZodString;
|
|
3433
|
+
objective: z.ZodString;
|
|
3434
|
+
isFork: z.ZodOptional<z.ZodBoolean>;
|
|
3435
|
+
parentToolUseId: z.ZodOptional<z.ZodString>;
|
|
3436
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3437
|
+
type: z.ZodLiteral<"subagent_status_changed">;
|
|
3438
|
+
subagentId: z.ZodString;
|
|
3439
|
+
status: z.ZodEnum<{
|
|
3440
|
+
completed: "completed";
|
|
3441
|
+
failed: "failed";
|
|
3442
|
+
pending: "pending";
|
|
3443
|
+
running: "running";
|
|
3444
|
+
awaiting_input: "awaiting_input";
|
|
3445
|
+
aborted: "aborted";
|
|
3446
|
+
interrupted: "interrupted";
|
|
3447
|
+
}>;
|
|
3448
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3449
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
3450
|
+
inputTokens: z.ZodNumber;
|
|
3451
|
+
outputTokens: z.ZodNumber;
|
|
3452
|
+
estimatedCost: z.ZodNumber;
|
|
3453
|
+
}, z.core.$strict>>;
|
|
3454
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3455
|
+
type: z.ZodLiteral<"sync_changed">;
|
|
3456
|
+
tags: z.ZodArray<z.ZodString>;
|
|
3457
|
+
originClientId: z.ZodOptional<z.ZodString>;
|
|
3458
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3459
|
+
type: z.ZodLiteral<"tool_input_delta">;
|
|
3460
|
+
toolName: z.ZodString;
|
|
3461
|
+
content: z.ZodString;
|
|
3462
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
3463
|
+
toolUseId: z.ZodOptional<z.ZodString>;
|
|
3464
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
3465
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3466
|
+
type: z.ZodLiteral<"tool_output_chunk">;
|
|
3467
|
+
chunk: z.ZodString;
|
|
3468
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
3469
|
+
toolUseId: z.ZodOptional<z.ZodString>;
|
|
3470
|
+
subType: z.ZodOptional<z.ZodEnum<{
|
|
3471
|
+
status: "status";
|
|
3472
|
+
tool_start: "tool_start";
|
|
3473
|
+
tool_complete: "tool_complete";
|
|
3474
|
+
}>>;
|
|
3475
|
+
subToolName: z.ZodOptional<z.ZodString>;
|
|
3476
|
+
subToolInput: z.ZodOptional<z.ZodString>;
|
|
3477
|
+
subToolIsError: z.ZodOptional<z.ZodBoolean>;
|
|
3478
|
+
subToolId: z.ZodOptional<z.ZodString>;
|
|
3479
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
3480
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3481
|
+
type: z.ZodLiteral<"tool_result">;
|
|
3482
|
+
toolName: z.ZodString;
|
|
3483
|
+
result: z.ZodString;
|
|
3484
|
+
isError: z.ZodOptional<z.ZodBoolean>;
|
|
3485
|
+
diff: z.ZodOptional<z.ZodObject<{
|
|
3486
|
+
filePath: z.ZodString;
|
|
3487
|
+
oldContent: z.ZodString;
|
|
3488
|
+
newContent: z.ZodString;
|
|
3489
|
+
isNewFile: z.ZodBoolean;
|
|
3490
|
+
}, z.core.$strip>>;
|
|
3491
|
+
status: z.ZodOptional<z.ZodString>;
|
|
3492
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
3493
|
+
imageData: z.ZodOptional<z.ZodString>;
|
|
3494
|
+
imageDataList: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3495
|
+
toolUseId: z.ZodOptional<z.ZodString>;
|
|
3496
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
3497
|
+
riskLevel: z.ZodOptional<z.ZodString>;
|
|
3498
|
+
riskReason: z.ZodOptional<z.ZodString>;
|
|
3499
|
+
matchedTrustRuleId: z.ZodOptional<z.ZodString>;
|
|
3500
|
+
isContainerized: z.ZodOptional<z.ZodBoolean>;
|
|
3501
|
+
riskScopeOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3502
|
+
pattern: z.ZodString;
|
|
3503
|
+
label: z.ZodString;
|
|
3504
|
+
}, z.core.$strip>>>;
|
|
3505
|
+
riskAllowlistOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3506
|
+
label: z.ZodString;
|
|
3507
|
+
description: z.ZodString;
|
|
3508
|
+
pattern: z.ZodString;
|
|
3509
|
+
}, z.core.$strip>>>;
|
|
3510
|
+
riskDirectoryScopeOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3511
|
+
label: z.ZodString;
|
|
3512
|
+
scope: z.ZodString;
|
|
3513
|
+
}, z.core.$strip>>>;
|
|
3514
|
+
approvalMode: z.ZodOptional<z.ZodString>;
|
|
3515
|
+
approvalReason: z.ZodOptional<z.ZodString>;
|
|
3516
|
+
riskThreshold: z.ZodOptional<z.ZodString>;
|
|
3517
|
+
activityMetadata: z.ZodOptional<z.ZodObject<{
|
|
3518
|
+
webSearch: z.ZodOptional<z.ZodObject<{
|
|
3519
|
+
query: z.ZodString;
|
|
3520
|
+
provider: z.ZodEnum<{
|
|
3521
|
+
"anthropic-native": "anthropic-native";
|
|
3522
|
+
brave: "brave";
|
|
3523
|
+
perplexity: "perplexity";
|
|
3524
|
+
tavily: "tavily";
|
|
3525
|
+
firecrawl: "firecrawl";
|
|
3526
|
+
}>;
|
|
3527
|
+
resultCount: z.ZodNumber;
|
|
3528
|
+
durationMs: z.ZodNumber;
|
|
3529
|
+
results: z.ZodArray<z.ZodObject<{
|
|
3530
|
+
rank: z.ZodNumber;
|
|
3531
|
+
title: z.ZodString;
|
|
3532
|
+
url: z.ZodString;
|
|
3533
|
+
domain: z.ZodString;
|
|
3534
|
+
faviconUrl: z.ZodOptional<z.ZodString>;
|
|
3535
|
+
snippet: z.ZodOptional<z.ZodString>;
|
|
3536
|
+
age: z.ZodOptional<z.ZodString>;
|
|
3537
|
+
score: z.ZodOptional<z.ZodNumber>;
|
|
3538
|
+
}, z.core.$strip>>;
|
|
3539
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
3540
|
+
}, z.core.$strip>>;
|
|
3541
|
+
webFetch: z.ZodOptional<z.ZodObject<{
|
|
3542
|
+
url: z.ZodString;
|
|
3543
|
+
finalUrl: z.ZodString;
|
|
3544
|
+
provider: z.ZodOptional<z.ZodEnum<{
|
|
3545
|
+
default: "default";
|
|
3546
|
+
firecrawl: "firecrawl";
|
|
3547
|
+
}>>;
|
|
3548
|
+
status: z.ZodNumber;
|
|
3549
|
+
contentType: z.ZodOptional<z.ZodString>;
|
|
3550
|
+
byteCount: z.ZodNumber;
|
|
3551
|
+
charCount: z.ZodNumber;
|
|
3552
|
+
truncated: z.ZodBoolean;
|
|
3553
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3554
|
+
domain: z.ZodString;
|
|
3555
|
+
faviconUrl: z.ZodOptional<z.ZodString>;
|
|
3556
|
+
redirectCount: z.ZodNumber;
|
|
3557
|
+
durationMs: z.ZodNumber;
|
|
3558
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
3559
|
+
mayRequireJavaScript: z.ZodOptional<z.ZodBoolean>;
|
|
3560
|
+
}, z.core.$strip>>;
|
|
3561
|
+
}, z.core.$strip>>;
|
|
3562
|
+
errorCode: z.ZodOptional<z.ZodString>;
|
|
3563
|
+
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
3564
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3565
|
+
type: z.ZodLiteral<"tool_use_preview_start">;
|
|
3566
|
+
toolUseId: z.ZodString;
|
|
3567
|
+
toolName: z.ZodString;
|
|
3568
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
3569
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
3570
|
+
previewStartedAt: z.ZodOptional<z.ZodNumber>;
|
|
3571
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3572
|
+
type: z.ZodLiteral<"tool_use_start">;
|
|
3573
|
+
toolName: z.ZodString;
|
|
3574
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3575
|
+
toolUseId: z.ZodOptional<z.ZodString>;
|
|
3576
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
3577
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
3578
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
3579
|
+
previewStartedAt: z.ZodOptional<z.ZodNumber>;
|
|
3580
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3581
|
+
type: z.ZodLiteral<"ui_surface_complete">;
|
|
3582
|
+
conversationId: z.ZodString;
|
|
3583
|
+
surfaceId: z.ZodString;
|
|
3584
|
+
summary: z.ZodString;
|
|
3585
|
+
submittedData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3586
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3587
|
+
type: z.ZodLiteral<"ui_surface_dismiss">;
|
|
3588
|
+
conversationId: z.ZodString;
|
|
3589
|
+
surfaceId: z.ZodString;
|
|
3590
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3591
|
+
type: z.ZodLiteral<"ui_surface_show">;
|
|
3592
|
+
conversationId: z.ZodString;
|
|
3593
|
+
surfaceId: z.ZodString;
|
|
3594
|
+
surfaceType: z.ZodString;
|
|
3595
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3596
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3597
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3598
|
+
id: z.ZodString;
|
|
3599
|
+
label: z.ZodString;
|
|
3600
|
+
style: z.ZodOptional<z.ZodEnum<{
|
|
3601
|
+
primary: "primary";
|
|
3602
|
+
secondary: "secondary";
|
|
3603
|
+
destructive: "destructive";
|
|
3604
|
+
}>>;
|
|
3605
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3606
|
+
}, z.core.$strip>>>;
|
|
3607
|
+
display: z.ZodOptional<z.ZodEnum<{
|
|
3608
|
+
inline: "inline";
|
|
3609
|
+
panel: "panel";
|
|
3610
|
+
}>>;
|
|
3611
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
3612
|
+
persistent: z.ZodOptional<z.ZodBoolean>;
|
|
3613
|
+
toolCallId: z.ZodOptional<z.ZodString>;
|
|
3614
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3615
|
+
type: z.ZodLiteral<"ui_surface_undo_result">;
|
|
3616
|
+
conversationId: z.ZodString;
|
|
3617
|
+
surfaceId: z.ZodString;
|
|
3618
|
+
success: z.ZodBoolean;
|
|
3619
|
+
remainingUndos: z.ZodNumber;
|
|
3620
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3621
|
+
type: z.ZodLiteral<"ui_surface_update">;
|
|
3622
|
+
conversationId: z.ZodString;
|
|
3623
|
+
surfaceId: z.ZodString;
|
|
3624
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3625
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3626
|
+
type: z.ZodLiteral<"usage_progress">;
|
|
3627
|
+
conversationId: z.ZodString;
|
|
3628
|
+
inputTokens: z.ZodNumber;
|
|
3629
|
+
outputTokens: z.ZodNumber;
|
|
3630
|
+
estimatedCost: z.ZodNumber;
|
|
3631
|
+
model: z.ZodString;
|
|
3632
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3633
|
+
type: z.ZodLiteral<"usage_update">;
|
|
3634
|
+
conversationId: z.ZodString;
|
|
3635
|
+
inputTokens: z.ZodNumber;
|
|
3636
|
+
outputTokens: z.ZodNumber;
|
|
3637
|
+
cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3638
|
+
cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3639
|
+
totalInputTokens: z.ZodNumber;
|
|
3640
|
+
totalOutputTokens: z.ZodNumber;
|
|
3641
|
+
estimatedCost: z.ZodNumber;
|
|
3642
|
+
model: z.ZodString;
|
|
3643
|
+
contextWindowTokens: z.ZodOptional<z.ZodNumber>;
|
|
3644
|
+
contextWindowMaxTokens: z.ZodOptional<z.ZodNumber>;
|
|
3645
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3646
|
+
type: z.ZodLiteral<"user_message_echo">;
|
|
3647
|
+
text: z.ZodString;
|
|
3648
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
3649
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
3650
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
3651
|
+
clientMessageId: z.ZodOptional<z.ZodString>;
|
|
3652
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3653
|
+
type: z.ZodLiteral<"workflow_completed">;
|
|
3654
|
+
runId: z.ZodString;
|
|
3655
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
3656
|
+
status: z.ZodEnum<{
|
|
3657
|
+
completed: "completed";
|
|
3658
|
+
failed: "failed";
|
|
3659
|
+
running: "running";
|
|
3660
|
+
aborted: "aborted";
|
|
3661
|
+
interrupted: "interrupted";
|
|
3662
|
+
cap_exceeded: "cap_exceeded";
|
|
3663
|
+
}>;
|
|
3664
|
+
agentsSpawned: z.ZodNumber;
|
|
3665
|
+
inputTokens: z.ZodNumber;
|
|
3666
|
+
outputTokens: z.ZodNumber;
|
|
3667
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
3668
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3669
|
+
type: z.ZodLiteral<"workflow_leaf_finished">;
|
|
3670
|
+
runId: z.ZodString;
|
|
3671
|
+
conversationId: z.ZodString;
|
|
3672
|
+
seq: z.ZodNumber;
|
|
3673
|
+
status: z.ZodEnum<{
|
|
3674
|
+
completed: "completed";
|
|
3675
|
+
failed: "failed";
|
|
3676
|
+
}>;
|
|
3677
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3678
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3679
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3680
|
+
resultSummary: z.ZodOptional<z.ZodString>;
|
|
3681
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3682
|
+
type: z.ZodLiteral<"workflow_leaf_started">;
|
|
3683
|
+
runId: z.ZodString;
|
|
3684
|
+
conversationId: z.ZodString;
|
|
3685
|
+
seq: z.ZodNumber;
|
|
3686
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3687
|
+
phase: z.ZodOptional<z.ZodString>;
|
|
3688
|
+
promptSummary: z.ZodOptional<z.ZodString>;
|
|
3689
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3690
|
+
type: z.ZodLiteral<"workflow_progress">;
|
|
3691
|
+
runId: z.ZodString;
|
|
3692
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
3693
|
+
agentsSpawned: z.ZodNumber;
|
|
3694
|
+
phase: z.ZodOptional<z.ZodString>;
|
|
3695
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3696
|
+
message: z.ZodOptional<z.ZodString>;
|
|
3697
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3698
|
+
type: z.ZodLiteral<"workflow_started">;
|
|
3699
|
+
runId: z.ZodString;
|
|
3700
|
+
conversationId: z.ZodString;
|
|
3701
|
+
toolUseId: z.ZodOptional<z.ZodString>;
|
|
3702
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3703
|
+
}, z.core.$strict>], "type">;
|
|
3704
|
+
|
|
2477
3705
|
/** Opaque handle returned by `subscribe`. Call `dispose()` to remove the subscription. */
|
|
2478
3706
|
export declare interface AssistantEventSubscription {
|
|
2479
3707
|
dispose(): void;
|
|
@@ -4116,10 +5344,7 @@ declare type ProxyToolResolver = (toolName: string, input: Record<string, unknow
|
|
|
4116
5344
|
* delivery to the rest). Rejects if the event is non-serializable or is a
|
|
4117
5345
|
* host-proxy control event, which plugins may not publish.
|
|
4118
5346
|
*/
|
|
4119
|
-
export declare function publishEvent(event: AssistantEventEnvelope, options?:
|
|
4120
|
-
|
|
4121
|
-
/** Publish options, mirroring the hub's `publish` options (targeting, self-echo suppression). */
|
|
4122
|
-
export declare type PublishEventOptions = NonNullable<Parameters<PluginEventHub["publish"]>[1]>;
|
|
5347
|
+
export declare function publishEvent(event: AssistantEventEnvelope, options?: AssistantEventPublishOptions): Promise<void>;
|
|
4123
5348
|
|
|
4124
5349
|
/**
|
|
4125
5350
|
* Remove every previously-refused exchange from a working history: for each
|
package/package.json
CHANGED