@vellumai/plugin-api 0.11.5-dev.202608242208.6a925db → 0.11.5-dev.202608250229.c30f39e

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 +10 -2
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -4349,9 +4349,17 @@ export declare type ConversationsClearedContext = BaseHookContext;
4349
4349
  /** Read-side alias of {@link ConversationCreateType}. */
4350
4350
  declare type ConversationType = ConversationCreateType;
4351
4351
 
4352
- /** Create a live voice connection bound to the caller's `send` transport. */
4352
+ /**
4353
+ * Create a live voice connection bound to the caller's `send` transport.
4354
+ *
4355
+ * `close` is how the daemon hangs up. It is optional only because a transport
4356
+ * may not be able to (an in-process pipe), but a real one should always pass
4357
+ * it: without it, a session the daemon reclaims from an absent client leaves
4358
+ * the transport open behind it.
4359
+ */
4353
4360
  export declare function createLiveVoiceConnection(options: {
4354
4361
  send: LiveVoiceFrameSender;
4362
+ close?: () => void;
4355
4363
  }): LiveVoiceConnection;
4356
4364
 
4357
4365
  /**
@@ -5090,7 +5098,7 @@ declare interface LiveVoiceServerFrameBase {
5090
5098
 
5091
5099
  declare type LiveVoiceServerFrameType = (typeof _LIVE_VOICE_SERVER_FRAME_TYPES)[number];
5092
5100
 
5093
- export declare type LiveVoiceSessionCloseReason = "client_end" | "error" | "websocket_close" | "transport_closed" | "manager_shutdown";
5101
+ export declare type LiveVoiceSessionCloseReason = "client_end" | "error" | "websocket_close" | "transport_closed" | "client_timeout" | "forced_end" | "manager_shutdown";
5094
5102
 
5095
5103
  /**
5096
5104
  * Emitted when the server VAD detects user speech. The client MUST
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.11.5-dev.202608242208.6a925db",
3
+ "version": "0.11.5-dev.202608250229.c30f39e",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",