@azure/ai-voicelive 1.0.0-beta.1 → 1.0.0-beta.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/dist/browser/index.d.ts +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/models/index.d.ts +1 -1
- package/dist/browser/models/index.js +1 -1
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +357 -25
- package/dist/browser/models/models.js +361 -56
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/protocol/messageParser.d.ts +1 -1
- package/dist/browser/protocol/messageParser.js +19 -76
- package/dist/browser/protocol/messageParser.js.map +1 -1
- package/dist/browser/voiceLiveSession.d.ts +2 -2
- package/dist/browser/voiceLiveSession.js +11 -10
- package/dist/browser/voiceLiveSession.js.map +1 -1
- package/dist/browser/websocket/websocket-browser.mjs.map +1 -0
- package/dist/browser/websocket/{websocketBrowser.d.ts → websocket.d.ts} +8 -2
- package/dist/{react-native/websocket/websocketBrowser.js → browser/websocket/websocket.js} +43 -3
- package/dist/browser/websocket/websocketFactory.d.ts +0 -11
- package/dist/browser/websocket/websocketFactory.js +2 -66
- package/dist/browser/websocket/websocketFactory.js.map +1 -1
- package/dist/browser/websocket/websocketLike.d.ts +3 -0
- package/dist/browser/websocket/websocketLike.js.map +1 -1
- package/dist/commonjs/index.d.ts +1 -1
- package/dist/commonjs/index.js +6 -1
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +1 -1
- package/dist/commonjs/models/index.js +6 -1
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/models.d.ts +357 -25
- package/dist/commonjs/models/models.js +386 -59
- package/dist/commonjs/models/models.js.map +1 -1
- package/dist/commonjs/protocol/messageParser.d.ts +1 -1
- package/dist/commonjs/protocol/messageParser.js +18 -75
- package/dist/commonjs/protocol/messageParser.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/commonjs/voiceLiveSession.d.ts +2 -2
- package/dist/commonjs/voiceLiveSession.js +20 -19
- package/dist/commonjs/voiceLiveSession.js.map +1 -1
- package/dist/{esm/websocket/websocketNode.d.ts → commonjs/websocket/websocket.d.ts} +2 -2
- package/dist/commonjs/websocket/{websocketNode.js → websocket.js} +31 -6
- package/dist/commonjs/websocket/websocket.js.map +1 -0
- package/dist/commonjs/websocket/websocketFactory.d.ts +0 -11
- package/dist/commonjs/websocket/websocketFactory.js +2 -68
- package/dist/commonjs/websocket/websocketFactory.js.map +1 -1
- package/dist/commonjs/websocket/websocketLike.d.ts +3 -0
- package/dist/commonjs/websocket/websocketLike.js.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/index.d.ts +1 -1
- package/dist/esm/models/index.js +1 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +357 -25
- package/dist/esm/models/models.js +361 -56
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/protocol/messageParser.d.ts +1 -1
- package/dist/esm/protocol/messageParser.js +19 -76
- package/dist/esm/protocol/messageParser.js.map +1 -1
- package/dist/esm/voiceLiveSession.d.ts +2 -2
- package/dist/esm/voiceLiveSession.js +11 -10
- package/dist/esm/voiceLiveSession.js.map +1 -1
- package/dist/{react-native/websocket/websocketNode.d.ts → esm/websocket/websocket.d.ts} +2 -2
- package/dist/{browser/websocket/websocketNode.js → esm/websocket/websocket.js} +29 -4
- package/dist/esm/websocket/websocket.js.map +1 -0
- package/dist/esm/websocket/websocketFactory.d.ts +0 -11
- package/dist/esm/websocket/websocketFactory.js +2 -66
- package/dist/esm/websocket/websocketFactory.js.map +1 -1
- package/dist/esm/websocket/websocketLike.d.ts +3 -0
- package/dist/esm/websocket/websocketLike.js.map +1 -1
- package/dist/react-native/index.d.ts +1 -1
- package/dist/react-native/index.js +1 -1
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/models/index.d.ts +1 -1
- package/dist/react-native/models/index.js +1 -1
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/models.d.ts +357 -25
- package/dist/react-native/models/models.js +361 -56
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/protocol/messageParser.d.ts +1 -1
- package/dist/react-native/protocol/messageParser.js +19 -76
- package/dist/react-native/protocol/messageParser.js.map +1 -1
- package/dist/react-native/voiceLiveSession.d.ts +2 -2
- package/dist/react-native/voiceLiveSession.js +11 -10
- package/dist/react-native/voiceLiveSession.js.map +1 -1
- package/dist/{commonjs/websocket/websocketNode.d.ts → react-native/websocket/websocket.d.ts} +2 -2
- package/dist/{esm/websocket/websocketNode.js → react-native/websocket/websocket.js} +29 -4
- package/dist/react-native/websocket/websocket.js.map +1 -0
- package/dist/react-native/websocket/websocketFactory.d.ts +0 -11
- package/dist/react-native/websocket/websocketFactory.js +2 -66
- package/dist/react-native/websocket/websocketFactory.js.map +1 -1
- package/dist/react-native/websocket/websocketLike.d.ts +3 -0
- package/dist/react-native/websocket/websocketLike.js.map +1 -1
- package/package.json +20 -7
- package/dist/browser/websocket/websocketBrowser.js +0 -175
- package/dist/browser/websocket/websocketBrowser.js.map +0 -1
- package/dist/browser/websocket/websocketNode.d.ts +0 -26
- package/dist/browser/websocket/websocketNode.js.map +0 -1
- package/dist/commonjs/websocket/websocketBrowser.d.ts +0 -26
- package/dist/commonjs/websocket/websocketBrowser.js +0 -179
- package/dist/commonjs/websocket/websocketBrowser.js.map +0 -1
- package/dist/commonjs/websocket/websocketNode.js.map +0 -1
- package/dist/esm/websocket/websocketBrowser.d.ts +0 -26
- package/dist/esm/websocket/websocketBrowser.js +0 -175
- package/dist/esm/websocket/websocketBrowser.js.map +0 -1
- package/dist/esm/websocket/websocketNode.js.map +0 -1
- package/dist/react-native/websocket/websocketBrowser.d.ts +0 -26
- package/dist/react-native/websocket/websocketBrowser.js.map +0 -1
- package/dist/react-native/websocket/websocketNode.js +0 -180
- package/dist/react-native/websocket/websocketNode.js.map +0 -1
|
@@ -1,76 +1,12 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
+
import { VoiceLiveWebSocket } from "./websocket.js";
|
|
3
4
|
/**
|
|
4
5
|
* Factory for creating platform-appropriate WebSocket instances
|
|
5
6
|
*/
|
|
6
7
|
export class VoiceLiveWebSocketFactory {
|
|
7
8
|
create(options) {
|
|
8
|
-
|
|
9
|
-
switch (platform) {
|
|
10
|
-
case "browser":
|
|
11
|
-
return this._createBrowserWebSocket(options);
|
|
12
|
-
case "node":
|
|
13
|
-
return this._createNodeWebSocket(options);
|
|
14
|
-
default:
|
|
15
|
-
throw new Error(`Unsupported environment for WebSocket: ${platform}`);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
_createBrowserWebSocket(options) {
|
|
19
|
-
// Use dynamic require to avoid bundling Node.js specific code in browser builds
|
|
20
|
-
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
21
|
-
const { VoiceLiveWebSocketBrowser } = require("./websocketBrowser.js");
|
|
22
|
-
return new VoiceLiveWebSocketBrowser(options);
|
|
23
|
-
}
|
|
24
|
-
_createNodeWebSocket(options) {
|
|
25
|
-
// Use dynamic require to avoid bundling browser specific code in Node.js builds
|
|
26
|
-
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
27
|
-
const { VoiceLiveWebSocketNode } = require("./websocketNode.js");
|
|
28
|
-
return new VoiceLiveWebSocketNode(options);
|
|
29
|
-
}
|
|
30
|
-
_detectPlatform() {
|
|
31
|
-
// Check for browser environment
|
|
32
|
-
if (typeof self !== "undefined" && typeof self.WebSocket !== "undefined") {
|
|
33
|
-
return "browser";
|
|
34
|
-
}
|
|
35
|
-
// Check for Node.js environment
|
|
36
|
-
if (typeof process !== "undefined" &&
|
|
37
|
-
process.versions != null &&
|
|
38
|
-
process.versions.node != null) {
|
|
39
|
-
return "node";
|
|
40
|
-
}
|
|
41
|
-
// Check for global object (Node.js) vs window (browser)
|
|
42
|
-
if (typeof global !== "undefined" && typeof require !== "undefined") {
|
|
43
|
-
return "node";
|
|
44
|
-
}
|
|
45
|
-
return "unknown";
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Platform detection utility
|
|
50
|
-
*/
|
|
51
|
-
export function detectPlatform() {
|
|
52
|
-
const factory = new VoiceLiveWebSocketFactory();
|
|
53
|
-
return factory._detectPlatform();
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Check if platform supports WebSocket
|
|
57
|
-
*/
|
|
58
|
-
export function isWebSocketSupported() {
|
|
59
|
-
const platform = detectPlatform();
|
|
60
|
-
switch (platform) {
|
|
61
|
-
case "browser":
|
|
62
|
-
return typeof WebSocket !== "undefined";
|
|
63
|
-
case "node":
|
|
64
|
-
try {
|
|
65
|
-
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
66
|
-
require("ws");
|
|
67
|
-
return true;
|
|
68
|
-
}
|
|
69
|
-
catch {
|
|
70
|
-
return false;
|
|
71
|
-
}
|
|
72
|
-
default:
|
|
73
|
-
return false;
|
|
9
|
+
return new VoiceLiveWebSocket(options);
|
|
74
10
|
}
|
|
75
11
|
}
|
|
76
12
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"websocketFactory.js","sourceRoot":"","sources":["../../../src/websocket/websocketFactory.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;
|
|
1
|
+
{"version":3,"file":"websocketFactory.js","sourceRoot":"","sources":["../../../src/websocket/websocketFactory.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAOlC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEpD;;GAEG;AACH,MAAM,OAAO,yBAAyB;IACpC,MAAM,CAAC,OAAiC;QACtC,OAAO,IAAI,kBAAkB,CAAC,OAAO,CAAC,CAAC;IACzC,CAAC;CACF;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,yBAAyB,EAAE,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n VoiceLiveWebSocketLike,\n VoiceLiveWebSocketFactoryLike,\n WebSocketFactoryOptions,\n} from \"./websocketLike.js\";\nimport { VoiceLiveWebSocket } from \"./websocket.js\";\n\n/**\n * Factory for creating platform-appropriate WebSocket instances\n */\nexport class VoiceLiveWebSocketFactory implements VoiceLiveWebSocketFactoryLike {\n create(options?: WebSocketFactoryOptions): VoiceLiveWebSocketLike {\n return new VoiceLiveWebSocket(options);\n }\n}\n\n/**\n * Default factory instance\n */\nexport const defaultWebSocketFactory = new VoiceLiveWebSocketFactory();\n"]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { AbortSignalLike } from "@azure/abort-controller";
|
|
2
|
+
import type { ProxySettings } from "@azure/core-rest-pipeline";
|
|
2
3
|
/**
|
|
3
4
|
* WebSocket ready state enumeration matching standard WebSocket values
|
|
4
5
|
*/
|
|
@@ -20,6 +21,8 @@ export interface WebSocketFactoryOptions {
|
|
|
20
21
|
compression?: boolean;
|
|
21
22
|
/** Custom headers for connection (Node.js only) */
|
|
22
23
|
headers?: Record<string, string>;
|
|
24
|
+
/** @internal - Proxy configuration (detected from environment variables) */
|
|
25
|
+
proxyOptions?: ProxySettings;
|
|
23
26
|
}
|
|
24
27
|
/**
|
|
25
28
|
* Platform-agnostic WebSocket interface for Voice Live connections
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"websocketLike.js","sourceRoot":"","sources":["../../../src/websocket/websocketLike.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;
|
|
1
|
+
{"version":3,"file":"websocketLike.js","sourceRoot":"","sources":["../../../src/websocket/websocketLike.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAKlC;;GAEG;AACH,MAAM,CAAN,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,+DAAc,CAAA;IACd,mDAAQ,CAAA;IACR,yDAAW,CAAA;IACX,uDAAU,CAAA;AACZ,CAAC,EALW,cAAc,KAAd,cAAc,QAKzB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\nimport type { ProxySettings } from \"@azure/core-rest-pipeline\";\n\n/**\n * WebSocket ready state enumeration matching standard WebSocket values\n */\nexport enum WebSocketState {\n Connecting = 0,\n Open = 1,\n Closing = 2,\n Closed = 3,\n}\n\n/**\n * Options for WebSocket creation and connection\n */\nexport interface WebSocketFactoryOptions {\n /** Connection timeout in milliseconds */\n connectionTimeoutInMs?: number;\n /** Maximum message size in bytes */\n maxMessageSize?: number;\n /** Enable compression if supported */\n compression?: boolean;\n /** Custom headers for connection (Node.js only) */\n headers?: Record<string, string>;\n /** @internal - Proxy configuration (detected from environment variables) */\n proxyOptions?: ProxySettings;\n}\n\n/**\n * Platform-agnostic WebSocket interface for Voice Live connections\n */\nexport interface VoiceLiveWebSocketLike {\n /**\n * Establishes WebSocket connection to the specified URL\n */\n connect(url: string, protocols?: string[], abortSignal?: AbortSignalLike): Promise<void>;\n\n /**\n * Closes the WebSocket connection\n */\n disconnect(code?: number, reason?: string): Promise<void>;\n\n /**\n * Sends data through the WebSocket connection\n */\n send(data: string | ArrayBuffer, abortSignal?: AbortSignalLike): Promise<void>;\n\n /**\n * Registers handler for connection open event\n */\n onOpen(handler: () => void): void;\n\n /**\n * Registers handler for connection close event\n */\n onClose(handler: (code: number, reason: string) => void): void;\n\n /**\n * Registers handler for message reception\n */\n onMessage(handler: (data: string | ArrayBuffer) => void): void;\n\n /**\n * Registers handler for connection errors\n */\n onError(handler: (error: Error) => void): void;\n\n /**\n * Gets current connection state\n */\n readonly isConnected: boolean;\n\n /**\n * Gets current connection state enum\n */\n readonly readyState: WebSocketState;\n\n /**\n * Gets the connected URL if applicable\n */\n readonly url?: string;\n}\n\n/**\n * Factory interface for creating WebSocket instances\n */\nexport interface VoiceLiveWebSocketFactoryLike {\n /**\n * Creates a new WebSocket instance for the target platform\n */\n create(options?: WebSocketFactoryOptions): VoiceLiveWebSocketLike;\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { VoiceLiveErrorDetails, ErrorResponse, LogProbProperties, ClientEvent, ClientEventUnion, KnownClientEventType, ClientEventType, ClientEventSessionUpdate, RequestSession, KnownModality, Modality, Animation, KnownAnimationOutputType, AnimationOutputType, Voice, KnownOAIVoice, OAIVoice, OpenAIVoice, AzureVoice, AzureVoiceUnion, KnownAzureVoiceType, AzureVoiceType, AzureCustomVoice, AzureStandardVoice, AzurePersonalVoice, KnownPersonalVoiceModels, PersonalVoiceModels, KnownInputAudioFormat, InputAudioFormat, KnownOutputAudioFormat, OutputAudioFormat, TurnDetection, TurnDetectionUnion, KnownTurnDetectionType, TurnDetectionType, ServerVad, EouDetection, EouDetectionUnion, AzureSemanticDetection, KnownEouThresholdLevel, EouThresholdLevel, AzureSemanticDetectionEn, AzureSemanticDetectionMultilingual, AzureSemanticVad, AzureSemanticVadEn, AzureSemanticVadMultilingual, AudioNoiseReduction, AudioEchoCancellation, AvatarConfig, IceServer, VideoParams, VideoCrop, VideoResolution, Background, AudioInputTranscriptionOptions, KnownAudioTimestampType, AudioTimestampType, Tool, ToolUnion, KnownToolType, ToolType, FunctionTool, ToolChoice, KnownToolChoiceLiteral, ToolChoiceLiteral, ToolChoiceSelection, ToolChoiceSelectionUnion, ToolChoiceFunctionSelection, ClientEventSessionAvatarConnect, ClientEventInputAudioTurnStart, ClientEventInputAudioTurnAppend, ClientEventInputAudioTurnEnd, ClientEventInputAudioTurnCancel, ClientEventInputAudioClear, ClientEventInputAudioBufferAppend, ClientEventInputAudioBufferCommit, ClientEventInputAudioBufferClear, ClientEventConversationItemCreate, ConversationRequestItem, ConversationRequestItemUnion, KnownItemType, ItemType, MessageItem, MessageItemUnion, KnownMessageRole, MessageRole, MessageContentPart, MessageContentPartUnion, KnownContentPartType, ContentPartType, InputTextContentPart, InputAudioContentPart, OutputTextContentPart, KnownItemParamStatus, ItemParamStatus, SystemMessageItem, UserMessageItem,
|
|
1
|
+
export { VoiceLiveErrorDetails, ErrorResponse, LogProbProperties, ClientEvent, ClientEventUnion, KnownClientEventType, ClientEventType, ClientEventSessionUpdate, RequestSession, KnownModality, Modality, Animation, KnownAnimationOutputType, AnimationOutputType, Voice, KnownOAIVoice, OAIVoice, OpenAIVoice, AzureVoice, AzureVoiceUnion, KnownAzureVoiceType, AzureVoiceType, AzureCustomVoice, AzureStandardVoice, AzurePersonalVoice, KnownPersonalVoiceModels, PersonalVoiceModels, KnownInputAudioFormat, InputAudioFormat, KnownOutputAudioFormat, OutputAudioFormat, TurnDetection, TurnDetectionUnion, KnownTurnDetectionType, TurnDetectionType, ServerVad, EouDetection, EouDetectionUnion, AzureSemanticDetection, KnownEouThresholdLevel, EouThresholdLevel, AzureSemanticDetectionEn, AzureSemanticDetectionMultilingual, AzureSemanticVad, AzureSemanticVadEn, AzureSemanticVadMultilingual, AudioNoiseReduction, AudioEchoCancellation, AvatarConfig, KnownAvatarConfigTypes, AvatarConfigTypes, IceServer, KnownPhotoAvatarBaseModes, PhotoAvatarBaseModes, VideoParams, VideoCrop, VideoResolution, Background, KnownAvatarOutputProtocol, AvatarOutputProtocol, AudioInputTranscriptionOptions, KnownAudioTimestampType, AudioTimestampType, Tool, ToolUnion, KnownToolType, ToolType, FunctionTool, MCPServer, KnownMCPApprovalType, MCPApprovalType, ToolChoice, KnownToolChoiceLiteral, ToolChoiceLiteral, ToolChoiceSelection, ToolChoiceSelectionUnion, ToolChoiceFunctionSelection, ClientEventSessionAvatarConnect, ClientEventInputAudioTurnStart, ClientEventInputAudioTurnAppend, ClientEventInputAudioTurnEnd, ClientEventInputAudioTurnCancel, ClientEventInputAudioClear, ClientEventInputAudioBufferAppend, ClientEventInputAudioBufferCommit, ClientEventInputAudioBufferClear, ClientEventConversationItemCreate, ConversationRequestItem, ConversationRequestItemUnion, KnownItemType, ItemType, MessageItem, MessageItemUnion, KnownMessageRole, MessageRole, MessageContentPart, MessageContentPartUnion, KnownContentPartType, ContentPartType, InputTextContentPart, InputAudioContentPart, OutputTextContentPart, KnownItemParamStatus, ItemParamStatus, AssistantMessageItem, SystemMessageItem, UserMessageItem, FunctionCallItem, FunctionCallOutputItem, MCPApprovalResponseRequestItem, ClientEventConversationItemTruncate, ClientEventConversationItemDelete, ClientEventResponseCreate, ResponseCreateParams, ClientEventResponseCancel, ClientEventConversationItemRetrieve, SessionBase, ConversationItemBase, Response, KnownResponseStatus, ResponseStatus, ResponseStatusDetails, ResponseStatusDetailsUnion, ResponseCancelledDetails, ResponseIncompleteDetails, ResponseFailedDetails, ResponseItem, ResponseItemUnion, ResponseMessageItem, ContentPart, ContentPartUnion, RequestImageContentPart, KnownRequestImageContentPartDetail, RequestImageContentPartDetail, RequestTextContentPart, RequestAudioContentPart, ResponseTextContentPart, ResponseAudioContentPart, KnownResponseItemStatus, ResponseItemStatus, ResponseFunctionCallItem, ResponseFunctionCallOutputItem, ResponseMCPListToolItem, MCPTool, ResponseMCPCallItem, ResponseMCPApprovalRequestItem, ResponseMCPApprovalResponseItem, TokenUsage, InputTokenDetails, CachedTokenDetails, OutputTokenDetails, ServerEvent, ServerEventUnion, KnownServerEventType, ServerEventType, ServerEventError, ServerEventErrorDetails, ServerEventSessionCreated, ResponseSession, AgentConfig, ServerEventSessionUpdated, ServerEventSessionAvatarConnecting, ServerEventInputAudioBufferCommitted, ServerEventInputAudioBufferCleared, ServerEventInputAudioBufferSpeechStarted, ServerEventInputAudioBufferSpeechStopped, ServerEventConversationItemCreated, ServerEventConversationItemInputAudioTranscriptionCompleted, ServerEventConversationItemInputAudioTranscriptionFailed, ServerEventConversationItemTruncated, ServerEventConversationItemDeleted, ServerEventResponseCreated, ServerEventResponseDone, ServerEventResponseOutputItemAdded, ServerEventResponseOutputItemDone, ServerEventResponseContentPartAdded, ServerEventResponseContentPartDone, ServerEventResponseTextDelta, ServerEventResponseTextDone, ServerEventResponseAudioTranscriptDelta, ServerEventResponseAudioTranscriptDone, ServerEventResponseAudioDelta, ServerEventResponseAudioDone, ServerEventResponseAnimationBlendshapeDelta, ServerEventResponseAnimationBlendshapeDone, ServerEventResponseAudioTimestampDelta, ServerEventResponseAudioTimestampDone, ServerEventResponseAnimationVisemeDelta, ServerEventResponseAnimationVisemeDone, ServerEventConversationItemInputAudioTranscriptionDelta, ServerEventConversationItemRetrieved, ServerEventResponseFunctionCallArgumentsDelta, ServerEventResponseFunctionCallArgumentsDone, ServerEventMcpListToolsInProgress, ServerEventMcpListToolsCompleted, ServerEventMcpListToolsFailed, ServerEventResponseMcpCallArgumentsDelta, ServerEventResponseMcpCallArgumentsDone, ServerEventResponseMcpCallInProgress, ServerEventResponseMcpCallCompleted, ServerEventResponseMcpCallFailed, } from "./models/index.js";
|
|
2
2
|
export { VoiceLiveClient, VoiceLiveClientOptions } from "./voiceLiveClient.js";
|
|
3
3
|
export { VoiceLiveSession, VoiceLiveSessionOptions, ConnectOptions, SendEventOptions, AudioStreamOptions, TurnOptions, CreateSessionOptions, StartSessionOptions, } from "./voiceLiveSession.js";
|
|
4
4
|
export type { VoiceLiveSessionHandlers, VoiceLiveSubscription, ConnectionContext, SessionContext, ConnectedEventArgs, DisconnectedEventArgs, ErrorEventArgs, } from "./handlers/sessionHandlers.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
export { KnownClientEventType, KnownModality, KnownAnimationOutputType, KnownOAIVoice, KnownAzureVoiceType, KnownPersonalVoiceModels, KnownInputAudioFormat, KnownOutputAudioFormat, KnownTurnDetectionType, KnownEouThresholdLevel, KnownAudioTimestampType, KnownToolType, KnownToolChoiceLiteral, KnownItemType, KnownMessageRole, KnownContentPartType, KnownItemParamStatus, KnownResponseStatus, KnownResponseItemStatus, KnownServerEventType, } from "./models/index.js";
|
|
3
|
+
export { KnownClientEventType, KnownModality, KnownAnimationOutputType, KnownOAIVoice, KnownAzureVoiceType, KnownPersonalVoiceModels, KnownInputAudioFormat, KnownOutputAudioFormat, KnownTurnDetectionType, KnownEouThresholdLevel, KnownAvatarConfigTypes, KnownPhotoAvatarBaseModes, KnownAvatarOutputProtocol, KnownAudioTimestampType, KnownToolType, KnownMCPApprovalType, KnownToolChoiceLiteral, KnownItemType, KnownMessageRole, KnownContentPartType, KnownItemParamStatus, KnownResponseStatus, KnownRequestImageContentPartDetail, KnownResponseItemStatus, KnownServerEventType, } from "./models/index.js";
|
|
4
4
|
// Main client export
|
|
5
5
|
export { VoiceLiveClient } from "./voiceLiveClient.js";
|
|
6
6
|
// Session export
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAML,oBAAoB,EAIpB,aAAa,EAGb,wBAAwB,EAGxB,aAAa,EAKb,mBAAmB,EAKnB,wBAAwB,EAExB,qBAAqB,EAErB,sBAAsB,EAItB,sBAAsB,EAMtB,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAML,oBAAoB,EAIpB,aAAa,EAGb,wBAAwB,EAGxB,aAAa,EAKb,mBAAmB,EAKnB,wBAAwB,EAExB,qBAAqB,EAErB,sBAAsB,EAItB,sBAAsB,EAMtB,sBAAsB,EAUtB,sBAAsB,EAGtB,yBAAyB,EAMzB,yBAAyB,EAGzB,uBAAuB,EAIvB,aAAa,EAIb,oBAAoB,EAGpB,sBAAsB,EAiBtB,aAAa,EAIb,gBAAgB,EAIhB,oBAAoB,EAKpB,oBAAoB,EAiBpB,mBAAmB,EAanB,kCAAkC,EAMlC,uBAAuB,EAevB,oBAAoB,GAgDrB,MAAM,mBAAmB,CAAC;AAE3B,qBAAqB;AACrB,OAAO,EAAE,eAAe,EAA0B,MAAM,sBAAsB,CAAC;AAE/E,iBAAiB;AACjB,OAAO,EACL,gBAAgB,GAQjB,MAAM,uBAAuB,CAAC;AAa/B,mCAAmC;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAEnE,gBAAgB;AAChB,OAAO,EACL,cAAc,EACd,wBAAwB,EACxB,4BAA4B,EAC5B,sBAAsB,EACtB,mBAAmB,EACnB,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,mBAAmB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n VoiceLiveErrorDetails,\n ErrorResponse,\n LogProbProperties,\n ClientEvent,\n ClientEventUnion,\n KnownClientEventType,\n ClientEventType,\n ClientEventSessionUpdate,\n RequestSession,\n KnownModality,\n Modality,\n Animation,\n KnownAnimationOutputType,\n AnimationOutputType,\n Voice,\n KnownOAIVoice,\n OAIVoice,\n OpenAIVoice,\n AzureVoice,\n AzureVoiceUnion,\n KnownAzureVoiceType,\n AzureVoiceType,\n AzureCustomVoice,\n AzureStandardVoice,\n AzurePersonalVoice,\n KnownPersonalVoiceModels,\n PersonalVoiceModels,\n KnownInputAudioFormat,\n InputAudioFormat,\n KnownOutputAudioFormat,\n OutputAudioFormat,\n TurnDetection,\n TurnDetectionUnion,\n KnownTurnDetectionType,\n TurnDetectionType,\n ServerVad,\n EouDetection,\n EouDetectionUnion,\n AzureSemanticDetection,\n KnownEouThresholdLevel,\n EouThresholdLevel,\n AzureSemanticDetectionEn,\n AzureSemanticDetectionMultilingual,\n AzureSemanticVad,\n AzureSemanticVadEn,\n AzureSemanticVadMultilingual,\n AudioNoiseReduction,\n AudioEchoCancellation,\n AvatarConfig,\n KnownAvatarConfigTypes,\n AvatarConfigTypes,\n IceServer,\n KnownPhotoAvatarBaseModes,\n PhotoAvatarBaseModes,\n VideoParams,\n VideoCrop,\n VideoResolution,\n Background,\n KnownAvatarOutputProtocol,\n AvatarOutputProtocol,\n AudioInputTranscriptionOptions,\n KnownAudioTimestampType,\n AudioTimestampType,\n Tool,\n ToolUnion,\n KnownToolType,\n ToolType,\n FunctionTool,\n MCPServer,\n KnownMCPApprovalType,\n MCPApprovalType,\n ToolChoice,\n KnownToolChoiceLiteral,\n ToolChoiceLiteral,\n ToolChoiceSelection,\n ToolChoiceSelectionUnion,\n ToolChoiceFunctionSelection,\n ClientEventSessionAvatarConnect,\n ClientEventInputAudioTurnStart,\n ClientEventInputAudioTurnAppend,\n ClientEventInputAudioTurnEnd,\n ClientEventInputAudioTurnCancel,\n ClientEventInputAudioClear,\n ClientEventInputAudioBufferAppend,\n ClientEventInputAudioBufferCommit,\n ClientEventInputAudioBufferClear,\n ClientEventConversationItemCreate,\n ConversationRequestItem,\n ConversationRequestItemUnion,\n KnownItemType,\n ItemType,\n MessageItem,\n MessageItemUnion,\n KnownMessageRole,\n MessageRole,\n MessageContentPart,\n MessageContentPartUnion,\n KnownContentPartType,\n ContentPartType,\n InputTextContentPart,\n InputAudioContentPart,\n OutputTextContentPart,\n KnownItemParamStatus,\n ItemParamStatus,\n AssistantMessageItem,\n SystemMessageItem,\n UserMessageItem,\n FunctionCallItem,\n FunctionCallOutputItem,\n MCPApprovalResponseRequestItem,\n ClientEventConversationItemTruncate,\n ClientEventConversationItemDelete,\n ClientEventResponseCreate,\n ResponseCreateParams,\n ClientEventResponseCancel,\n ClientEventConversationItemRetrieve,\n SessionBase,\n ConversationItemBase,\n Response,\n KnownResponseStatus,\n ResponseStatus,\n ResponseStatusDetails,\n ResponseStatusDetailsUnion,\n ResponseCancelledDetails,\n ResponseIncompleteDetails,\n ResponseFailedDetails,\n ResponseItem,\n ResponseItemUnion,\n ResponseMessageItem,\n ContentPart,\n ContentPartUnion,\n RequestImageContentPart,\n KnownRequestImageContentPartDetail,\n RequestImageContentPartDetail,\n RequestTextContentPart,\n RequestAudioContentPart,\n ResponseTextContentPart,\n ResponseAudioContentPart,\n KnownResponseItemStatus,\n ResponseItemStatus,\n ResponseFunctionCallItem,\n ResponseFunctionCallOutputItem,\n ResponseMCPListToolItem,\n MCPTool,\n ResponseMCPCallItem,\n ResponseMCPApprovalRequestItem,\n ResponseMCPApprovalResponseItem,\n TokenUsage,\n InputTokenDetails,\n CachedTokenDetails,\n OutputTokenDetails,\n ServerEvent,\n ServerEventUnion,\n KnownServerEventType,\n ServerEventType,\n ServerEventError,\n ServerEventErrorDetails,\n ServerEventSessionCreated,\n ResponseSession,\n AgentConfig,\n ServerEventSessionUpdated,\n ServerEventSessionAvatarConnecting,\n ServerEventInputAudioBufferCommitted,\n ServerEventInputAudioBufferCleared,\n ServerEventInputAudioBufferSpeechStarted,\n ServerEventInputAudioBufferSpeechStopped,\n ServerEventConversationItemCreated,\n ServerEventConversationItemInputAudioTranscriptionCompleted,\n ServerEventConversationItemInputAudioTranscriptionFailed,\n ServerEventConversationItemTruncated,\n ServerEventConversationItemDeleted,\n ServerEventResponseCreated,\n ServerEventResponseDone,\n ServerEventResponseOutputItemAdded,\n ServerEventResponseOutputItemDone,\n ServerEventResponseContentPartAdded,\n ServerEventResponseContentPartDone,\n ServerEventResponseTextDelta,\n ServerEventResponseTextDone,\n ServerEventResponseAudioTranscriptDelta,\n ServerEventResponseAudioTranscriptDone,\n ServerEventResponseAudioDelta,\n ServerEventResponseAudioDone,\n ServerEventResponseAnimationBlendshapeDelta,\n ServerEventResponseAnimationBlendshapeDone,\n ServerEventResponseAudioTimestampDelta,\n ServerEventResponseAudioTimestampDone,\n ServerEventResponseAnimationVisemeDelta,\n ServerEventResponseAnimationVisemeDone,\n ServerEventConversationItemInputAudioTranscriptionDelta,\n ServerEventConversationItemRetrieved,\n ServerEventResponseFunctionCallArgumentsDelta,\n ServerEventResponseFunctionCallArgumentsDone,\n ServerEventMcpListToolsInProgress,\n ServerEventMcpListToolsCompleted,\n ServerEventMcpListToolsFailed,\n ServerEventResponseMcpCallArgumentsDelta,\n ServerEventResponseMcpCallArgumentsDone,\n ServerEventResponseMcpCallInProgress,\n ServerEventResponseMcpCallCompleted,\n ServerEventResponseMcpCallFailed,\n} from \"./models/index.js\";\n\n// Main client export\nexport { VoiceLiveClient, VoiceLiveClientOptions } from \"./voiceLiveClient.js\";\n\n// Session export\nexport {\n VoiceLiveSession,\n VoiceLiveSessionOptions,\n ConnectOptions,\n SendEventOptions,\n AudioStreamOptions,\n TurnOptions,\n CreateSessionOptions,\n StartSessionOptions,\n} from \"./voiceLiveSession.js\";\n\n// Handlerbased subscription exports (Azure SDK pattern)\nexport type {\n VoiceLiveSessionHandlers,\n VoiceLiveSubscription,\n ConnectionContext,\n SessionContext,\n ConnectedEventArgs,\n DisconnectedEventArgs,\n ErrorEventArgs,\n} from \"./handlers/sessionHandlers.js\";\n\n// WebSocket and connection exports\nexport { ConnectionState } from \"./websocket/connectionManager.js\";\n\n// Error exports\nexport {\n VoiceLiveError,\n VoiceLiveConnectionError,\n VoiceLiveAuthenticationError,\n VoiceLiveProtocolError,\n VoiceLiveErrorCodes,\n classifyConnectionError,\n classifyProtocolError,\n} from \"./errors/index.js\";\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { VoiceLiveErrorDetails, ErrorResponse, LogProbProperties, ClientEvent, ClientEventUnion, KnownClientEventType, ClientEventType, ClientEventSessionUpdate, RequestSession, KnownModality, Modality, Animation, KnownAnimationOutputType, AnimationOutputType, Voice, KnownOAIVoice, OAIVoice, OpenAIVoice, AzureVoice, AzureVoiceUnion, KnownAzureVoiceType, AzureVoiceType, AzureCustomVoice, AzureStandardVoice, AzurePersonalVoice, KnownPersonalVoiceModels, PersonalVoiceModels, KnownInputAudioFormat, InputAudioFormat, KnownOutputAudioFormat, OutputAudioFormat, TurnDetection, TurnDetectionUnion, KnownTurnDetectionType, TurnDetectionType, ServerVad, EouDetection, EouDetectionUnion, AzureSemanticDetection, KnownEouThresholdLevel, EouThresholdLevel, AzureSemanticDetectionEn, AzureSemanticDetectionMultilingual, AzureSemanticVad, AzureSemanticVadEn, AzureSemanticVadMultilingual, AudioNoiseReduction, AudioEchoCancellation, AvatarConfig, IceServer, VideoParams, VideoCrop, VideoResolution, Background, AudioInputTranscriptionOptions, KnownAudioTimestampType, AudioTimestampType, Tool, ToolUnion, KnownToolType, ToolType, FunctionTool, ToolChoice, KnownToolChoiceLiteral, ToolChoiceLiteral, ToolChoiceSelection, ToolChoiceSelectionUnion, ToolChoiceFunctionSelection, ClientEventSessionAvatarConnect, ClientEventInputAudioTurnStart, ClientEventInputAudioTurnAppend, ClientEventInputAudioTurnEnd, ClientEventInputAudioTurnCancel, ClientEventInputAudioClear, ClientEventInputAudioBufferAppend, ClientEventInputAudioBufferCommit, ClientEventInputAudioBufferClear, ClientEventConversationItemCreate, ConversationRequestItem, ConversationRequestItemUnion, KnownItemType, ItemType, MessageItem, MessageItemUnion, KnownMessageRole, MessageRole, MessageContentPart, MessageContentPartUnion, KnownContentPartType, ContentPartType, InputTextContentPart, InputAudioContentPart, OutputTextContentPart, KnownItemParamStatus, ItemParamStatus, SystemMessageItem, UserMessageItem,
|
|
1
|
+
export { VoiceLiveErrorDetails, ErrorResponse, LogProbProperties, ClientEvent, ClientEventUnion, KnownClientEventType, ClientEventType, ClientEventSessionUpdate, RequestSession, KnownModality, Modality, Animation, KnownAnimationOutputType, AnimationOutputType, Voice, KnownOAIVoice, OAIVoice, OpenAIVoice, AzureVoice, AzureVoiceUnion, KnownAzureVoiceType, AzureVoiceType, AzureCustomVoice, AzureStandardVoice, AzurePersonalVoice, KnownPersonalVoiceModels, PersonalVoiceModels, KnownInputAudioFormat, InputAudioFormat, KnownOutputAudioFormat, OutputAudioFormat, TurnDetection, TurnDetectionUnion, KnownTurnDetectionType, TurnDetectionType, ServerVad, EouDetection, EouDetectionUnion, AzureSemanticDetection, KnownEouThresholdLevel, EouThresholdLevel, AzureSemanticDetectionEn, AzureSemanticDetectionMultilingual, AzureSemanticVad, AzureSemanticVadEn, AzureSemanticVadMultilingual, AudioNoiseReduction, AudioEchoCancellation, AvatarConfig, KnownAvatarConfigTypes, AvatarConfigTypes, IceServer, KnownPhotoAvatarBaseModes, PhotoAvatarBaseModes, VideoParams, VideoCrop, VideoResolution, Background, KnownAvatarOutputProtocol, AvatarOutputProtocol, AudioInputTranscriptionOptions, KnownAudioTimestampType, AudioTimestampType, Tool, ToolUnion, KnownToolType, ToolType, FunctionTool, MCPServer, KnownMCPApprovalType, MCPApprovalType, ToolChoice, KnownToolChoiceLiteral, ToolChoiceLiteral, ToolChoiceSelection, ToolChoiceSelectionUnion, ToolChoiceFunctionSelection, ClientEventSessionAvatarConnect, ClientEventInputAudioTurnStart, ClientEventInputAudioTurnAppend, ClientEventInputAudioTurnEnd, ClientEventInputAudioTurnCancel, ClientEventInputAudioClear, ClientEventInputAudioBufferAppend, ClientEventInputAudioBufferCommit, ClientEventInputAudioBufferClear, ClientEventConversationItemCreate, ConversationRequestItem, ConversationRequestItemUnion, KnownItemType, ItemType, MessageItem, MessageItemUnion, KnownMessageRole, MessageRole, MessageContentPart, MessageContentPartUnion, KnownContentPartType, ContentPartType, InputTextContentPart, InputAudioContentPart, OutputTextContentPart, KnownItemParamStatus, ItemParamStatus, AssistantMessageItem, SystemMessageItem, UserMessageItem, FunctionCallItem, FunctionCallOutputItem, MCPApprovalResponseRequestItem, ClientEventConversationItemTruncate, ClientEventConversationItemDelete, ClientEventResponseCreate, ResponseCreateParams, ClientEventResponseCancel, ClientEventConversationItemRetrieve, SessionBase, ConversationItemBase, Response, KnownResponseStatus, ResponseStatus, ResponseStatusDetails, ResponseStatusDetailsUnion, ResponseCancelledDetails, ResponseIncompleteDetails, ResponseFailedDetails, ResponseItem, ResponseItemUnion, ResponseMessageItem, ContentPart, ContentPartUnion, RequestImageContentPart, KnownRequestImageContentPartDetail, RequestImageContentPartDetail, RequestTextContentPart, RequestAudioContentPart, ResponseTextContentPart, ResponseAudioContentPart, KnownResponseItemStatus, ResponseItemStatus, ResponseFunctionCallItem, ResponseFunctionCallOutputItem, ResponseMCPListToolItem, MCPTool, ResponseMCPCallItem, ResponseMCPApprovalRequestItem, ResponseMCPApprovalResponseItem, TokenUsage, InputTokenDetails, CachedTokenDetails, OutputTokenDetails, ServerEvent, ServerEventUnion, KnownServerEventType, ServerEventType, ServerEventError, ServerEventErrorDetails, ServerEventSessionCreated, ResponseSession, AgentConfig, ServerEventSessionUpdated, ServerEventSessionAvatarConnecting, ServerEventInputAudioBufferCommitted, ServerEventInputAudioBufferCleared, ServerEventInputAudioBufferSpeechStarted, ServerEventInputAudioBufferSpeechStopped, ServerEventConversationItemCreated, ServerEventConversationItemInputAudioTranscriptionCompleted, ServerEventConversationItemInputAudioTranscriptionFailed, ServerEventConversationItemTruncated, ServerEventConversationItemDeleted, ServerEventResponseCreated, ServerEventResponseDone, ServerEventResponseOutputItemAdded, ServerEventResponseOutputItemDone, ServerEventResponseContentPartAdded, ServerEventResponseContentPartDone, ServerEventResponseTextDelta, ServerEventResponseTextDone, ServerEventResponseAudioTranscriptDelta, ServerEventResponseAudioTranscriptDone, ServerEventResponseAudioDelta, ServerEventResponseAudioDone, ServerEventResponseAnimationBlendshapeDelta, ServerEventResponseAnimationBlendshapeDone, ServerEventResponseAudioTimestampDelta, ServerEventResponseAudioTimestampDone, ServerEventResponseAnimationVisemeDelta, ServerEventResponseAnimationVisemeDone, ServerEventConversationItemInputAudioTranscriptionDelta, ServerEventConversationItemRetrieved, ServerEventResponseFunctionCallArgumentsDelta, ServerEventResponseFunctionCallArgumentsDone, ServerEventMcpListToolsInProgress, ServerEventMcpListToolsCompleted, ServerEventMcpListToolsFailed, ServerEventResponseMcpCallArgumentsDelta, ServerEventResponseMcpCallArgumentsDone, ServerEventResponseMcpCallInProgress, ServerEventResponseMcpCallCompleted, ServerEventResponseMcpCallFailed, } from "./models.js";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
export { KnownClientEventType, KnownModality, KnownAnimationOutputType, KnownOAIVoice, KnownAzureVoiceType, KnownPersonalVoiceModels, KnownInputAudioFormat, KnownOutputAudioFormat, KnownTurnDetectionType, KnownEouThresholdLevel, KnownAudioTimestampType, KnownToolType, KnownToolChoiceLiteral, KnownItemType, KnownMessageRole, KnownContentPartType, KnownItemParamStatus, KnownResponseStatus, KnownResponseItemStatus, KnownServerEventType, } from "./models.js";
|
|
3
|
+
export { KnownClientEventType, KnownModality, KnownAnimationOutputType, KnownOAIVoice, KnownAzureVoiceType, KnownPersonalVoiceModels, KnownInputAudioFormat, KnownOutputAudioFormat, KnownTurnDetectionType, KnownEouThresholdLevel, KnownAvatarConfigTypes, KnownPhotoAvatarBaseModes, KnownAvatarOutputProtocol, KnownAudioTimestampType, KnownToolType, KnownMCPApprovalType, KnownToolChoiceLiteral, KnownItemType, KnownMessageRole, KnownContentPartType, KnownItemParamStatus, KnownResponseStatus, KnownRequestImageContentPartDetail, KnownResponseItemStatus, KnownServerEventType, } from "./models.js";
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAML,oBAAoB,EAIpB,aAAa,EAGb,wBAAwB,EAGxB,aAAa,EAKb,mBAAmB,EAKnB,wBAAwB,EAExB,qBAAqB,EAErB,sBAAsB,EAItB,sBAAsB,EAMtB,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAML,oBAAoB,EAIpB,aAAa,EAGb,wBAAwB,EAGxB,aAAa,EAKb,mBAAmB,EAKnB,wBAAwB,EAExB,qBAAqB,EAErB,sBAAsB,EAItB,sBAAsB,EAMtB,sBAAsB,EAUtB,sBAAsB,EAGtB,yBAAyB,EAMzB,yBAAyB,EAGzB,uBAAuB,EAIvB,aAAa,EAIb,oBAAoB,EAGpB,sBAAsB,EAiBtB,aAAa,EAIb,gBAAgB,EAIhB,oBAAoB,EAKpB,oBAAoB,EAiBpB,mBAAmB,EAanB,kCAAkC,EAMlC,uBAAuB,EAevB,oBAAoB,GAgDrB,MAAM,aAAa,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n VoiceLiveErrorDetails,\n ErrorResponse,\n LogProbProperties,\n ClientEvent,\n ClientEventUnion,\n KnownClientEventType,\n ClientEventType,\n ClientEventSessionUpdate,\n RequestSession,\n KnownModality,\n Modality,\n Animation,\n KnownAnimationOutputType,\n AnimationOutputType,\n Voice,\n KnownOAIVoice,\n OAIVoice,\n OpenAIVoice,\n AzureVoice,\n AzureVoiceUnion,\n KnownAzureVoiceType,\n AzureVoiceType,\n AzureCustomVoice,\n AzureStandardVoice,\n AzurePersonalVoice,\n KnownPersonalVoiceModels,\n PersonalVoiceModels,\n KnownInputAudioFormat,\n InputAudioFormat,\n KnownOutputAudioFormat,\n OutputAudioFormat,\n TurnDetection,\n TurnDetectionUnion,\n KnownTurnDetectionType,\n TurnDetectionType,\n ServerVad,\n EouDetection,\n EouDetectionUnion,\n AzureSemanticDetection,\n KnownEouThresholdLevel,\n EouThresholdLevel,\n AzureSemanticDetectionEn,\n AzureSemanticDetectionMultilingual,\n AzureSemanticVad,\n AzureSemanticVadEn,\n AzureSemanticVadMultilingual,\n AudioNoiseReduction,\n AudioEchoCancellation,\n AvatarConfig,\n KnownAvatarConfigTypes,\n AvatarConfigTypes,\n IceServer,\n KnownPhotoAvatarBaseModes,\n PhotoAvatarBaseModes,\n VideoParams,\n VideoCrop,\n VideoResolution,\n Background,\n KnownAvatarOutputProtocol,\n AvatarOutputProtocol,\n AudioInputTranscriptionOptions,\n KnownAudioTimestampType,\n AudioTimestampType,\n Tool,\n ToolUnion,\n KnownToolType,\n ToolType,\n FunctionTool,\n MCPServer,\n KnownMCPApprovalType,\n MCPApprovalType,\n ToolChoice,\n KnownToolChoiceLiteral,\n ToolChoiceLiteral,\n ToolChoiceSelection,\n ToolChoiceSelectionUnion,\n ToolChoiceFunctionSelection,\n ClientEventSessionAvatarConnect,\n ClientEventInputAudioTurnStart,\n ClientEventInputAudioTurnAppend,\n ClientEventInputAudioTurnEnd,\n ClientEventInputAudioTurnCancel,\n ClientEventInputAudioClear,\n ClientEventInputAudioBufferAppend,\n ClientEventInputAudioBufferCommit,\n ClientEventInputAudioBufferClear,\n ClientEventConversationItemCreate,\n ConversationRequestItem,\n ConversationRequestItemUnion,\n KnownItemType,\n ItemType,\n MessageItem,\n MessageItemUnion,\n KnownMessageRole,\n MessageRole,\n MessageContentPart,\n MessageContentPartUnion,\n KnownContentPartType,\n ContentPartType,\n InputTextContentPart,\n InputAudioContentPart,\n OutputTextContentPart,\n KnownItemParamStatus,\n ItemParamStatus,\n AssistantMessageItem,\n SystemMessageItem,\n UserMessageItem,\n FunctionCallItem,\n FunctionCallOutputItem,\n MCPApprovalResponseRequestItem,\n ClientEventConversationItemTruncate,\n ClientEventConversationItemDelete,\n ClientEventResponseCreate,\n ResponseCreateParams,\n ClientEventResponseCancel,\n ClientEventConversationItemRetrieve,\n SessionBase,\n ConversationItemBase,\n Response,\n KnownResponseStatus,\n ResponseStatus,\n ResponseStatusDetails,\n ResponseStatusDetailsUnion,\n ResponseCancelledDetails,\n ResponseIncompleteDetails,\n ResponseFailedDetails,\n ResponseItem,\n ResponseItemUnion,\n ResponseMessageItem,\n ContentPart,\n ContentPartUnion,\n RequestImageContentPart,\n KnownRequestImageContentPartDetail,\n RequestImageContentPartDetail,\n RequestTextContentPart,\n RequestAudioContentPart,\n ResponseTextContentPart,\n ResponseAudioContentPart,\n KnownResponseItemStatus,\n ResponseItemStatus,\n ResponseFunctionCallItem,\n ResponseFunctionCallOutputItem,\n ResponseMCPListToolItem,\n MCPTool,\n ResponseMCPCallItem,\n ResponseMCPApprovalRequestItem,\n ResponseMCPApprovalResponseItem,\n TokenUsage,\n InputTokenDetails,\n CachedTokenDetails,\n OutputTokenDetails,\n ServerEvent,\n ServerEventUnion,\n KnownServerEventType,\n ServerEventType,\n ServerEventError,\n ServerEventErrorDetails,\n ServerEventSessionCreated,\n ResponseSession,\n AgentConfig,\n ServerEventSessionUpdated,\n ServerEventSessionAvatarConnecting,\n ServerEventInputAudioBufferCommitted,\n ServerEventInputAudioBufferCleared,\n ServerEventInputAudioBufferSpeechStarted,\n ServerEventInputAudioBufferSpeechStopped,\n ServerEventConversationItemCreated,\n ServerEventConversationItemInputAudioTranscriptionCompleted,\n ServerEventConversationItemInputAudioTranscriptionFailed,\n ServerEventConversationItemTruncated,\n ServerEventConversationItemDeleted,\n ServerEventResponseCreated,\n ServerEventResponseDone,\n ServerEventResponseOutputItemAdded,\n ServerEventResponseOutputItemDone,\n ServerEventResponseContentPartAdded,\n ServerEventResponseContentPartDone,\n ServerEventResponseTextDelta,\n ServerEventResponseTextDone,\n ServerEventResponseAudioTranscriptDelta,\n ServerEventResponseAudioTranscriptDone,\n ServerEventResponseAudioDelta,\n ServerEventResponseAudioDone,\n ServerEventResponseAnimationBlendshapeDelta,\n ServerEventResponseAnimationBlendshapeDone,\n ServerEventResponseAudioTimestampDelta,\n ServerEventResponseAudioTimestampDone,\n ServerEventResponseAnimationVisemeDelta,\n ServerEventResponseAnimationVisemeDone,\n ServerEventConversationItemInputAudioTranscriptionDelta,\n ServerEventConversationItemRetrieved,\n ServerEventResponseFunctionCallArgumentsDelta,\n ServerEventResponseFunctionCallArgumentsDone,\n ServerEventMcpListToolsInProgress,\n ServerEventMcpListToolsCompleted,\n ServerEventMcpListToolsFailed,\n ServerEventResponseMcpCallArgumentsDelta,\n ServerEventResponseMcpCallArgumentsDone,\n ServerEventResponseMcpCallInProgress,\n ServerEventResponseMcpCallCompleted,\n ServerEventResponseMcpCallFailed,\n} from \"./models.js\";\n"]}
|