@vellumai/plugin-api 0.12.1 → 0.12.2-staging.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +119 -50
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -167,10 +167,10 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
167
167
|
language: z.ZodDefault<z.ZodString>;
|
|
168
168
|
providers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
169
169
|
roles: z.ZodDefault<z.ZodRecord<z.ZodEnum<{
|
|
170
|
-
watch: "watch";
|
|
171
170
|
liveVoice: "liveVoice";
|
|
172
171
|
telephony: "telephony";
|
|
173
172
|
dictation: "dictation";
|
|
173
|
+
watch: "watch";
|
|
174
174
|
batch: "batch";
|
|
175
175
|
}> & z.core.$partial, z.ZodObject<{
|
|
176
176
|
provider: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodEnum<{
|
|
@@ -312,6 +312,12 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
312
312
|
"your-own": "your-own";
|
|
313
313
|
}>>;
|
|
314
314
|
}, z.core.$strip>>;
|
|
315
|
+
"shopify-oauth": z.ZodDefault<z.ZodObject<{
|
|
316
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
317
|
+
managed: "managed";
|
|
318
|
+
"your-own": "your-own";
|
|
319
|
+
}>>;
|
|
320
|
+
}, z.core.$strip>>;
|
|
315
321
|
"stripe-link-oauth": z.ZodDefault<z.ZodObject<{
|
|
316
322
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
317
323
|
managed: "managed";
|
|
@@ -324,6 +330,12 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
324
330
|
"your-own": "your-own";
|
|
325
331
|
}>>;
|
|
326
332
|
}, z.core.$strip>>;
|
|
333
|
+
"quickbooks-oauth": z.ZodDefault<z.ZodObject<{
|
|
334
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
335
|
+
managed: "managed";
|
|
336
|
+
"your-own": "your-own";
|
|
337
|
+
}>>;
|
|
338
|
+
}, z.core.$strip>>;
|
|
327
339
|
"eventbrite-oauth": z.ZodDefault<z.ZodObject<{
|
|
328
340
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
329
341
|
managed: "managed";
|
|
@@ -592,6 +604,7 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
592
604
|
}, z.core.$strip>>;
|
|
593
605
|
retrospective: z.ZodDefault<z.ZodObject<{
|
|
594
606
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
607
|
+
skillImprovement: z.ZodDefault<z.ZodBoolean>;
|
|
595
608
|
timeThresholdMs: z.ZodDefault<z.ZodNumber>;
|
|
596
609
|
messageThreshold: z.ZodDefault<z.ZodNumber>;
|
|
597
610
|
minCooldownMs: z.ZodDefault<z.ZodNumber>;
|
|
@@ -945,31 +958,14 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
945
958
|
}, z.core.$strip>>;
|
|
946
959
|
localDirectory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
947
960
|
}, z.core.$strip>>;
|
|
948
|
-
mcp: z.ZodDefault<z.ZodObject<{
|
|
949
|
-
servers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
950
|
-
transport: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
951
|
-
type: z.ZodLiteral<"stdio">;
|
|
952
|
-
command: z.ZodString;
|
|
953
|
-
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
954
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
955
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
956
|
-
type: z.ZodLiteral<"sse">;
|
|
957
|
-
url: z.ZodString;
|
|
958
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
959
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
960
|
-
type: z.ZodLiteral<"streamable-http">;
|
|
961
|
-
url: z.ZodString;
|
|
962
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
963
|
-
}, z.core.$strip>], "type">;
|
|
964
|
-
}, z.core.$strip>>>;
|
|
965
|
-
}, z.core.$strip>>;
|
|
966
961
|
acp: z.ZodDefault<z.ZodObject<{
|
|
967
962
|
maxConcurrentSessions: z.ZodDefault<z.ZodNumber>;
|
|
968
963
|
agents: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
969
|
-
command: z.ZodString
|
|
964
|
+
command: z.ZodOptional<z.ZodString>;
|
|
970
965
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
971
966
|
description: z.ZodOptional<z.ZodString>;
|
|
972
967
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
968
|
+
model: z.ZodOptional<z.ZodString>;
|
|
973
969
|
}, z.core.$strip>>>;
|
|
974
970
|
}, z.core.$strip>>;
|
|
975
971
|
skills: z.ZodDefault<z.ZodObject<{
|
|
@@ -981,8 +977,6 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
981
977
|
}, z.core.$strip>>>;
|
|
982
978
|
load: z.ZodDefault<z.ZodObject<{
|
|
983
979
|
extraDirs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
984
|
-
watch: z.ZodDefault<z.ZodBoolean>;
|
|
985
|
-
watchDebounceMs: z.ZodDefault<z.ZodNumber>;
|
|
986
980
|
}, z.core.$strip>>;
|
|
987
981
|
install: z.ZodDefault<z.ZodObject<{
|
|
988
982
|
nodeManager: z.ZodDefault<z.ZodEnum<{
|
|
@@ -1077,15 +1071,7 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
1077
1071
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1078
1072
|
text: z.ZodDefault<z.ZodString>;
|
|
1079
1073
|
}, z.core.$strip>>;
|
|
1080
|
-
safety: z.ZodDefault<z.ZodObject<{
|
|
1081
|
-
denyCategories: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1082
|
-
}, z.core.$strip>>;
|
|
1083
1074
|
voice: z.ZodDefault<z.ZodObject<{
|
|
1084
|
-
interruptSensitivity: z.ZodDefault<z.ZodEnum<{
|
|
1085
|
-
low: "low";
|
|
1086
|
-
medium: "medium";
|
|
1087
|
-
high: "high";
|
|
1088
|
-
}>>;
|
|
1089
1075
|
telephonyStreaming: z.ZodDefault<z.ZodBoolean>;
|
|
1090
1076
|
utteranceEndMs: z.ZodDefault<z.ZodNumber>;
|
|
1091
1077
|
}, z.core.$strip>>;
|
|
@@ -1100,10 +1086,6 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
1100
1086
|
}, z.core.$strip>>;
|
|
1101
1087
|
}, z.core.$strip>>;
|
|
1102
1088
|
liveVoice: z.ZodDefault<z.ZodObject<{
|
|
1103
|
-
mode: z.ZodDefault<z.ZodEnum<{
|
|
1104
|
-
ptt: "ptt";
|
|
1105
|
-
"open-mic": "open-mic";
|
|
1106
|
-
}>>;
|
|
1107
1089
|
vad: z.ZodDefault<z.ZodObject<{
|
|
1108
1090
|
speechEnergyThreshold: z.ZodDefault<z.ZodNumber>;
|
|
1109
1091
|
noiseFloorMargin: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1114,6 +1096,18 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
1114
1096
|
echoEmaHalfLifeMs: z.ZodDefault<z.ZodNumber>;
|
|
1115
1097
|
echoDrainSlackMs: z.ZodDefault<z.ZodNumber>;
|
|
1116
1098
|
}, z.core.$strip>>;
|
|
1099
|
+
flux: z.ZodDefault<z.ZodObject<{
|
|
1100
|
+
turnEnd: z.ZodDefault<z.ZodObject<{
|
|
1101
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1102
|
+
}, z.core.$strip>>;
|
|
1103
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1104
|
+
eotThreshold: z.ZodDefault<z.ZodNumber>;
|
|
1105
|
+
eagerEotThreshold: z.ZodOptional<z.ZodNumber>;
|
|
1106
|
+
eotTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
1107
|
+
}, z.core.$strip>>;
|
|
1108
|
+
archiveAudio: z.ZodDefault<z.ZodBoolean>;
|
|
1109
|
+
}, z.core.$strip>>;
|
|
1110
|
+
voice: z.ZodDefault<z.ZodObject<{
|
|
1117
1111
|
frontModel: z.ZodDefault<z.ZodObject<{
|
|
1118
1112
|
endpointDecisionTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
1119
1113
|
endpointExtensionMs: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1128,17 +1122,6 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
1128
1122
|
generationTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
1129
1123
|
}, z.core.$strip>>;
|
|
1130
1124
|
}, z.core.$strip>>;
|
|
1131
|
-
flux: z.ZodDefault<z.ZodObject<{
|
|
1132
|
-
turnEnd: z.ZodDefault<z.ZodObject<{
|
|
1133
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1134
|
-
}, z.core.$strip>>;
|
|
1135
|
-
model: z.ZodOptional<z.ZodString>;
|
|
1136
|
-
eotThreshold: z.ZodDefault<z.ZodNumber>;
|
|
1137
|
-
eagerEotThreshold: z.ZodOptional<z.ZodNumber>;
|
|
1138
|
-
eotTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
1139
|
-
}, z.core.$strip>>;
|
|
1140
|
-
maxSessionDurationSeconds: z.ZodDefault<z.ZodNumber>;
|
|
1141
|
-
archiveAudio: z.ZodDefault<z.ZodBoolean>;
|
|
1142
1125
|
}, z.core.$strip>>;
|
|
1143
1126
|
sight: z.ZodDefault<z.ZodObject<{
|
|
1144
1127
|
keepLatestFrames: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1313,6 +1296,18 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
|
|
|
1313
1296
|
type: z.ZodLiteral<"acp_session_error">;
|
|
1314
1297
|
acpSessionId: z.ZodString;
|
|
1315
1298
|
error: z.ZodString;
|
|
1299
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1300
|
+
type: z.ZodLiteral<"acp_session_model_update">;
|
|
1301
|
+
acpSessionId: z.ZodString;
|
|
1302
|
+
modelRevisionEpoch: z.ZodString;
|
|
1303
|
+
modelRevision: z.ZodNumber;
|
|
1304
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1305
|
+
availableModels: z.ZodArray<z.ZodObject<{
|
|
1306
|
+
value: z.ZodString;
|
|
1307
|
+
label: z.ZodString;
|
|
1308
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1309
|
+
group: z.ZodOptional<z.ZodString>;
|
|
1310
|
+
}, z.core.$strip>>;
|
|
1316
1311
|
}, z.core.$strict>, z.ZodObject<{
|
|
1317
1312
|
type: z.ZodLiteral<"acp_session_spawned">;
|
|
1318
1313
|
acpSessionId: z.ZodString;
|
|
@@ -2121,6 +2116,7 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
|
|
|
2121
2116
|
}, z.core.$strip>, z.ZodObject<{
|
|
2122
2117
|
type: z.ZodLiteral<"notification_intent">;
|
|
2123
2118
|
sourceEventName: z.ZodString;
|
|
2119
|
+
assistantName: z.ZodOptional<z.ZodString>;
|
|
2124
2120
|
title: z.ZodString;
|
|
2125
2121
|
body: z.ZodString;
|
|
2126
2122
|
deliveryId: z.ZodOptional<z.ZodString>;
|
|
@@ -2548,6 +2544,7 @@ declare const AssistantEventEnvelopeSchema: z.ZodObject<{
|
|
|
2548
2544
|
messageId: z.ZodOptional<z.ZodString>;
|
|
2549
2545
|
requestId: z.ZodOptional<z.ZodString>;
|
|
2550
2546
|
clientMessageId: z.ZodOptional<z.ZodString>;
|
|
2547
|
+
cameraFrame: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2551
2548
|
}, z.core.$strict>, z.ZodObject<{
|
|
2552
2549
|
type: z.ZodLiteral<"watch_retro_completed">;
|
|
2553
2550
|
sessionId: z.ZodString;
|
|
@@ -2781,6 +2778,7 @@ declare const AssistantEventPublishOptionsSchema: z.ZodObject<{
|
|
|
2781
2778
|
host_file: "host_file";
|
|
2782
2779
|
host_cu: "host_cu";
|
|
2783
2780
|
host_cu_window_capture: "host_cu_window_capture";
|
|
2781
|
+
host_cu_sequence: "host_cu_sequence";
|
|
2784
2782
|
host_cu_annotate: "host_cu_annotate";
|
|
2785
2783
|
host_browser: "host_browser";
|
|
2786
2784
|
host_app_control: "host_app_control";
|
|
@@ -2841,6 +2839,18 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2841
2839
|
type: z.ZodLiteral<"acp_session_error">;
|
|
2842
2840
|
acpSessionId: z.ZodString;
|
|
2843
2841
|
error: z.ZodString;
|
|
2842
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2843
|
+
type: z.ZodLiteral<"acp_session_model_update">;
|
|
2844
|
+
acpSessionId: z.ZodString;
|
|
2845
|
+
modelRevisionEpoch: z.ZodString;
|
|
2846
|
+
modelRevision: z.ZodNumber;
|
|
2847
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2848
|
+
availableModels: z.ZodArray<z.ZodObject<{
|
|
2849
|
+
value: z.ZodString;
|
|
2850
|
+
label: z.ZodString;
|
|
2851
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2852
|
+
group: z.ZodOptional<z.ZodString>;
|
|
2853
|
+
}, z.core.$strip>>;
|
|
2844
2854
|
}, z.core.$strict>, z.ZodObject<{
|
|
2845
2855
|
type: z.ZodLiteral<"acp_session_spawned">;
|
|
2846
2856
|
acpSessionId: z.ZodString;
|
|
@@ -3649,6 +3659,7 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3649
3659
|
}, z.core.$strip>, z.ZodObject<{
|
|
3650
3660
|
type: z.ZodLiteral<"notification_intent">;
|
|
3651
3661
|
sourceEventName: z.ZodString;
|
|
3662
|
+
assistantName: z.ZodOptional<z.ZodString>;
|
|
3652
3663
|
title: z.ZodString;
|
|
3653
3664
|
body: z.ZodString;
|
|
3654
3665
|
deliveryId: z.ZodOptional<z.ZodString>;
|
|
@@ -4076,6 +4087,7 @@ declare const AssistantEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4076
4087
|
messageId: z.ZodOptional<z.ZodString>;
|
|
4077
4088
|
requestId: z.ZodOptional<z.ZodString>;
|
|
4078
4089
|
clientMessageId: z.ZodOptional<z.ZodString>;
|
|
4090
|
+
cameraFrame: z.ZodOptional<z.ZodLiteral<true>>;
|
|
4079
4091
|
}, z.core.$strict>, z.ZodObject<{
|
|
4080
4092
|
type: z.ZodLiteral<"watch_retro_completed">;
|
|
4081
4093
|
sessionId: z.ZodString;
|
|
@@ -4849,6 +4861,7 @@ export declare type HookBroadcast = (detail: Record<string, unknown>) => void;
|
|
|
4849
4861
|
* - `post-model-call` — {@link PostModelCallContext}
|
|
4850
4862
|
* - `conversation-deleted` — {@link ConversationDeletedContext}
|
|
4851
4863
|
* - `conversations-cleared` — {@link ConversationsClearedContext}
|
|
4864
|
+
* - `message-deleted`: {@link MessageDeletedContext}
|
|
4852
4865
|
*/
|
|
4853
4866
|
export declare type HookFunction<TCtx = unknown> = (ctx: TCtx) => Promise<Partial<TCtx> | void>;
|
|
4854
4867
|
|
|
@@ -4890,6 +4903,8 @@ export declare const HOOKS: {
|
|
|
4890
4903
|
readonly CONVERSATION_DELETED: "conversation-deleted";
|
|
4891
4904
|
/** Fires once when every conversation is wiped at once (the clear-all reset), after the main tables are cleared. Carries no `conversationId`; cleanup hooks wipe their own per-conversation state wholesale. */
|
|
4892
4905
|
readonly CONVERSATIONS_CLEARED: "conversations-cleared";
|
|
4906
|
+
/** Fires once per deleted message row, after the row is removed, carrying the row's `(createdAt, id)` so a hook can settle state that pointed at it. Fire-and-forget cleanup signal, like `conversation-deleted`; whole-conversation deletes dispatch that hook instead. */
|
|
4907
|
+
readonly MESSAGE_DELETED: "message-deleted";
|
|
4893
4908
|
};
|
|
4894
4909
|
|
|
4895
4910
|
/**
|
|
@@ -4904,7 +4919,7 @@ export declare const HOOKS: {
|
|
|
4904
4919
|
*
|
|
4905
4920
|
* Pure data and pure functions only: no imports, no daemon runtime graph.
|
|
4906
4921
|
*/
|
|
4907
|
-
declare const HOST_PROXY_CAPABILITIES: readonly ["host_bash", "host_file", "host_cu", "host_cu_window_capture", "host_cu_annotate", "host_browser", "host_app_control", "host_ui_snapshot"];
|
|
4922
|
+
declare const HOST_PROXY_CAPABILITIES: readonly ["host_bash", "host_file", "host_cu", "host_cu_window_capture", "host_cu_sequence", "host_cu_annotate", "host_browser", "host_app_control", "host_ui_snapshot"];
|
|
4908
4923
|
|
|
4909
4924
|
declare type HostProxyCapability = (typeof HOST_PROXY_CAPABILITIES)[number];
|
|
4910
4925
|
|
|
@@ -5116,7 +5131,9 @@ export declare function listConversations(limit?: number, conversationType?: Con
|
|
|
5116
5131
|
*/
|
|
5117
5132
|
export declare function listInstalledSkills(): Promise<ResolvedSkillEntry[]>;
|
|
5118
5133
|
|
|
5119
|
-
declare const _LIVE_VOICE_SERVER_FRAME_TYPES: readonly ["ready", "busy", "speech_started", "utterance_end", "utterance_discarded", "stt_partial", "stt_final", "thinking", "activity", "assistant_text_delta", "tts_audio", "tts_done", "turn_cancelled", "minimize_room", "metrics", "archived", "error"];
|
|
5134
|
+
declare const _LIVE_VOICE_SERVER_FRAME_TYPES: readonly ["ready", "busy", "speech_started", "utterance_end", "utterance_discarded", "stt_partial", "stt_final", "thinking", "activity", "assistant_text_delta", "tts_audio", "tts_done", "turn_cancelled", "minimize_room", "session_control", "metrics", "archived", "error"];
|
|
5135
|
+
|
|
5136
|
+
declare const LIVE_VOICE_SESSION_CONTROLS: readonly ["end", "mute"];
|
|
5120
5137
|
|
|
5121
5138
|
declare const LIVE_VOICE_TURN_DETECTION_MODES: readonly ["manual", "server_vad"];
|
|
5122
5139
|
|
|
@@ -5293,8 +5310,6 @@ declare interface LiveVoiceMetricsServerFrame extends LiveVoiceServerFrameBase {
|
|
|
5293
5310
|
* condition as the two fields above.
|
|
5294
5311
|
*/
|
|
5295
5312
|
readonly endpointDecisionSource?: "front-door" | "provider";
|
|
5296
|
-
/** Which floor-holding ack actually spoke during the turn, if any. */
|
|
5297
|
-
readonly ackSpoken?: "first_delta" | "tool_use";
|
|
5298
5313
|
/**
|
|
5299
5314
|
* Spoken progress narrations during the turn. Present only when at least
|
|
5300
5315
|
* one progress update spoke (otherwise the field is absent, keeping frames
|
|
@@ -5361,7 +5376,7 @@ declare interface LiveVoiceReadyServerFrame extends LiveVoiceServerFrameBase {
|
|
|
5361
5376
|
readonly audioInput?: boolean;
|
|
5362
5377
|
}
|
|
5363
5378
|
|
|
5364
|
-
export declare type LiveVoiceServerFrame = LiveVoiceReadyServerFrame | LiveVoiceBusyServerFrame | LiveVoiceSpeechStartedServerFrame | LiveVoiceUtteranceEndServerFrame | LiveVoiceUtteranceDiscardedServerFrame | LiveVoiceSttPartialServerFrame | LiveVoiceSttFinalServerFrame | LiveVoiceThinkingServerFrame | LiveVoiceActivityServerFrame | LiveVoiceAssistantTextDeltaServerFrame | LiveVoiceTtsAudioServerFrame | LiveVoiceTtsDoneServerFrame | LiveVoiceTurnCancelledServerFrame | LiveVoiceMinimizeRoomServerFrame | LiveVoiceMetricsServerFrame | LiveVoiceArchivedServerFrame | LiveVoiceErrorServerFrame;
|
|
5379
|
+
export declare type LiveVoiceServerFrame = LiveVoiceReadyServerFrame | LiveVoiceBusyServerFrame | LiveVoiceSpeechStartedServerFrame | LiveVoiceUtteranceEndServerFrame | LiveVoiceUtteranceDiscardedServerFrame | LiveVoiceSttPartialServerFrame | LiveVoiceSttFinalServerFrame | LiveVoiceThinkingServerFrame | LiveVoiceActivityServerFrame | LiveVoiceAssistantTextDeltaServerFrame | LiveVoiceTtsAudioServerFrame | LiveVoiceTtsDoneServerFrame | LiveVoiceTurnCancelledServerFrame | LiveVoiceMinimizeRoomServerFrame | LiveVoiceSessionControlServerFrame | LiveVoiceMetricsServerFrame | LiveVoiceArchivedServerFrame | LiveVoiceErrorServerFrame;
|
|
5365
5380
|
|
|
5366
5381
|
declare interface LiveVoiceServerFrameBase {
|
|
5367
5382
|
readonly type: LiveVoiceServerFrameType;
|
|
@@ -5372,6 +5387,29 @@ declare type LiveVoiceServerFrameType = (typeof _LIVE_VOICE_SERVER_FRAME_TYPES)[
|
|
|
5372
5387
|
|
|
5373
5388
|
export declare type LiveVoiceSessionCloseReason = "client_end" | "error" | "websocket_close" | "transport_closed" | "client_timeout" | "forced_end" | "manager_shutdown";
|
|
5374
5389
|
|
|
5390
|
+
/** A session control a client can carry out on the assistant's behalf. */
|
|
5391
|
+
declare type LiveVoiceSessionControl = (typeof LIVE_VOICE_SESSION_CONTROLS)[number];
|
|
5392
|
+
|
|
5393
|
+
/**
|
|
5394
|
+
* A session control the just-completed reply asked for with a terminal marker
|
|
5395
|
+
* (`[END_CALL]`, `[MUTE]`, `[MUTE:<seconds>]`). Sent only after the turn's TTS
|
|
5396
|
+
* has fully drained, so the spoken acknowledgement is heard first, never for a
|
|
5397
|
+
* turn the user barged in on, at most once per turn, and only for a control
|
|
5398
|
+
* the client listed in the start frame's `sessionControls`.
|
|
5399
|
+
*
|
|
5400
|
+
* - `end`: end the session the way the client's own end control does.
|
|
5401
|
+
* - `mute`: mute the microphone. With `durationMs`, unmute again once it
|
|
5402
|
+
* elapses; without, stay muted until the user unmutes. The timer is the
|
|
5403
|
+
* client's: a muted microphone sends silence, so the daemon cannot hear an
|
|
5404
|
+
* "unmute".
|
|
5405
|
+
*/
|
|
5406
|
+
declare interface LiveVoiceSessionControlServerFrame extends LiveVoiceServerFrameBase {
|
|
5407
|
+
readonly type: "session_control";
|
|
5408
|
+
readonly turnId: string;
|
|
5409
|
+
readonly action: LiveVoiceSessionControl;
|
|
5410
|
+
readonly durationMs?: number;
|
|
5411
|
+
}
|
|
5412
|
+
|
|
5375
5413
|
/**
|
|
5376
5414
|
* Where the session holding the daemon's single live-voice slot is running,
|
|
5377
5415
|
* as much of it as the daemon knows.
|
|
@@ -5535,6 +5573,37 @@ export declare interface Message {
|
|
|
5535
5573
|
content: ContentBlock[];
|
|
5536
5574
|
}
|
|
5537
5575
|
|
|
5576
|
+
/**
|
|
5577
|
+
* The full `message-deleted` context a hook receives: the dispatching call
|
|
5578
|
+
* site's {@link MessageDeletedInputContext} plus the pipeline-stamped
|
|
5579
|
+
* {@link BaseHookContext} capabilities.
|
|
5580
|
+
*/
|
|
5581
|
+
export declare interface MessageDeletedContext extends MessageDeletedInputContext, BaseHookContext {
|
|
5582
|
+
}
|
|
5583
|
+
|
|
5584
|
+
/**
|
|
5585
|
+
* Context passed to the `message-deleted` hook. Fires once per deleted
|
|
5586
|
+
* message row, from the shared single-message delete primitive, after the row
|
|
5587
|
+
* is removed. Whole-conversation deletes dispatch `conversation-deleted`
|
|
5588
|
+
* instead.
|
|
5589
|
+
*
|
|
5590
|
+
* Fire-and-forget like `conversation-deleted`: the primitive is synchronous
|
|
5591
|
+
* and does not wait for the chain. The row is gone by the time a hook runs,
|
|
5592
|
+
* so the context carries the row's `createdAt` alongside its id. Together
|
|
5593
|
+
* they are the `(createdAt, id)` position the row held, which is what a hook
|
|
5594
|
+
* keeping a cursor on that row needs to record once the row can no longer be
|
|
5595
|
+
* looked up. The default memory plugin contributes a hook here that stamps
|
|
5596
|
+
* its retrospective cursor.
|
|
5597
|
+
*/
|
|
5598
|
+
declare interface MessageDeletedInputContext {
|
|
5599
|
+
/** ID of the conversation that owned the row. */
|
|
5600
|
+
readonly conversationId: string;
|
|
5601
|
+
/** ID of the deleted message row. */
|
|
5602
|
+
readonly messageId: string;
|
|
5603
|
+
/** The deleted row's `createdAt`. */
|
|
5604
|
+
readonly createdAt: number;
|
|
5605
|
+
}
|
|
5606
|
+
|
|
5538
5607
|
declare type MessageLexicalSearchResult = Awaited<ReturnType<searchMessageIdsLexical_2>>[number];
|
|
5539
5608
|
|
|
5540
5609
|
declare interface MessageLexicalSearchResult_2 {
|