@vellumai/plugin-api 0.12.2-staging.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.
Files changed (2) hide show
  1. package/index.d.ts +33 -2
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -330,6 +330,12 @@ declare const AssistantConfigSchema: z.ZodObject<{
330
330
  "your-own": "your-own";
331
331
  }>>;
332
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>>;
333
339
  "eventbrite-oauth": z.ZodDefault<z.ZodObject<{
334
340
  mode: z.ZodDefault<z.ZodEnum<{
335
341
  managed: "managed";
@@ -5125,7 +5131,9 @@ export declare function listConversations(limit?: number, conversationType?: Con
5125
5131
  */
5126
5132
  export declare function listInstalledSkills(): Promise<ResolvedSkillEntry[]>;
5127
5133
 
5128
- 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"];
5129
5137
 
5130
5138
  declare const LIVE_VOICE_TURN_DETECTION_MODES: readonly ["manual", "server_vad"];
5131
5139
 
@@ -5368,7 +5376,7 @@ declare interface LiveVoiceReadyServerFrame extends LiveVoiceServerFrameBase {
5368
5376
  readonly audioInput?: boolean;
5369
5377
  }
5370
5378
 
5371
- 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;
5372
5380
 
5373
5381
  declare interface LiveVoiceServerFrameBase {
5374
5382
  readonly type: LiveVoiceServerFrameType;
@@ -5379,6 +5387,29 @@ declare type LiveVoiceServerFrameType = (typeof _LIVE_VOICE_SERVER_FRAME_TYPES)[
5379
5387
 
5380
5388
  export declare type LiveVoiceSessionCloseReason = "client_end" | "error" | "websocket_close" | "transport_closed" | "client_timeout" | "forced_end" | "manager_shutdown";
5381
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
+
5382
5413
  /**
5383
5414
  * Where the session holding the daemon's single live-voice slot is running,
5384
5415
  * as much of it as the daemon knows.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.12.2-staging.1",
3
+ "version": "0.12.2-staging.2",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",