@azure/ai-projects 2.5.0 → 2.7.0
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/README.md +71 -2
- package/dist/browser/aiProjectClient.d.ts +1 -0
- package/dist/browser/aiProjectClient.d.ts.map +1 -1
- package/dist/browser/aiProjectClient.js +16 -1
- package/dist/browser/aiProjectClient.js.map +1 -1
- package/dist/browser/api/agents/index.d.ts +2 -2
- package/dist/browser/api/agents/index.d.ts.map +1 -1
- package/dist/browser/api/agents/index.js +1 -1
- package/dist/browser/api/agents/index.js.map +1 -1
- package/dist/browser/api/agents/operations.d.ts +23 -2
- package/dist/browser/api/agents/operations.d.ts.map +1 -1
- package/dist/browser/api/agents/operations.js +169 -3
- package/dist/browser/api/agents/operations.js.map +1 -1
- package/dist/browser/api/agents/options.d.ts +243 -2
- package/dist/browser/api/agents/options.d.ts.map +1 -1
- package/dist/browser/api/agents/options.js.map +1 -1
- package/dist/browser/api/aiProjectContext.d.ts +3 -0
- package/dist/browser/api/aiProjectContext.d.ts.map +1 -1
- package/dist/browser/api/aiProjectContext.js.map +1 -1
- package/dist/browser/api/beta/agentInsightMonitors/index.d.ts +3 -0
- package/dist/browser/api/beta/agentInsightMonitors/index.d.ts.map +1 -0
- package/dist/browser/api/beta/agentInsightMonitors/index.js +4 -0
- package/dist/browser/api/beta/agentInsightMonitors/index.js.map +1 -0
- package/dist/browser/api/beta/agentInsightMonitors/operations.d.ts +59 -0
- package/dist/browser/api/beta/agentInsightMonitors/operations.d.ts.map +1 -0
- package/dist/browser/api/beta/agentInsightMonitors/operations.js +519 -0
- package/dist/browser/api/beta/agentInsightMonitors/operations.js.map +1 -0
- package/dist/browser/api/beta/agentInsightMonitors/options.d.ts +86 -0
- package/dist/browser/api/beta/agentInsightMonitors/options.d.ts.map +1 -0
- package/dist/browser/api/beta/agentInsightMonitors/options.js +4 -0
- package/dist/browser/api/beta/agentInsightMonitors/options.js.map +1 -0
- package/dist/browser/api/beta/agents/index.d.ts +2 -2
- package/dist/browser/api/beta/agents/index.d.ts.map +1 -1
- package/dist/browser/api/beta/agents/index.js +1 -1
- package/dist/browser/api/beta/agents/index.js.map +1 -1
- package/dist/browser/api/beta/agents/operations.d.ts +9 -2
- package/dist/browser/api/beta/agents/operations.d.ts.map +1 -1
- package/dist/browser/api/beta/agents/operations.js +38 -1
- package/dist/browser/api/beta/agents/operations.js.map +1 -1
- package/dist/browser/api/beta/agents/options.d.ts +3 -0
- package/dist/browser/api/beta/agents/options.d.ts.map +1 -1
- package/dist/browser/api/beta/agents/options.js.map +1 -1
- package/dist/browser/api/beta/datasets/operations.d.ts +1 -1
- package/dist/browser/api/beta/datasets/operations.d.ts.map +1 -1
- package/dist/browser/api/beta/datasets/operations.js.map +1 -1
- package/dist/browser/api/beta/models/options.d.ts +1 -1
- package/dist/browser/api/beta/models/options.d.ts.map +1 -1
- package/dist/browser/api/beta/models/options.js.map +1 -1
- package/dist/browser/api/beta/routines/operations.d.ts.map +1 -1
- package/dist/browser/api/beta/routines/operations.js +4 -1
- package/dist/browser/api/beta/routines/operations.js.map +1 -1
- package/dist/browser/api/beta/routines/options.d.ts +3 -1
- package/dist/browser/api/beta/routines/options.d.ts.map +1 -1
- package/dist/browser/api/beta/routines/options.js.map +1 -1
- package/dist/browser/api/beta/voiceAgents/conversations/index.d.ts +3 -0
- package/dist/browser/api/beta/voiceAgents/conversations/index.d.ts.map +1 -0
- package/dist/browser/api/beta/voiceAgents/conversations/index.js +4 -0
- package/dist/browser/api/beta/voiceAgents/conversations/index.js.map +1 -0
- package/dist/browser/api/beta/voiceAgents/conversations/operations.d.ts +140 -0
- package/dist/browser/api/beta/voiceAgents/conversations/operations.d.ts.map +1 -0
- package/dist/browser/api/beta/voiceAgents/conversations/operations.js +635 -0
- package/dist/browser/api/beta/voiceAgents/conversations/operations.js.map +1 -0
- package/dist/browser/api/beta/voiceAgents/conversations/options.d.ts +133 -0
- package/dist/browser/api/beta/voiceAgents/conversations/options.d.ts.map +1 -0
- package/dist/browser/api/beta/voiceAgents/conversations/options.js +4 -0
- package/dist/browser/api/beta/voiceAgents/conversations/options.js.map +1 -0
- package/dist/browser/api/beta/voiceAgents/telephony/index.d.ts +3 -0
- package/dist/browser/api/beta/voiceAgents/telephony/index.d.ts.map +1 -0
- package/dist/browser/api/beta/voiceAgents/telephony/index.js +4 -0
- package/dist/browser/api/beta/voiceAgents/telephony/index.js.map +1 -0
- package/dist/browser/api/beta/voiceAgents/telephony/operations.d.ts +62 -0
- package/dist/browser/api/beta/voiceAgents/telephony/operations.d.ts.map +1 -0
- package/dist/browser/api/beta/voiceAgents/telephony/operations.js +559 -0
- package/dist/browser/api/beta/voiceAgents/telephony/operations.js.map +1 -0
- package/dist/browser/api/beta/voiceAgents/telephony/options.d.ts +133 -0
- package/dist/browser/api/beta/voiceAgents/telephony/options.d.ts.map +1 -0
- package/dist/browser/api/beta/voiceAgents/telephony/options.js +4 -0
- package/dist/browser/api/beta/voiceAgents/telephony/options.js.map +1 -0
- package/dist/browser/api/datasets/operations.d.ts.map +1 -1
- package/dist/browser/api/datasets/operations.js +1 -3
- package/dist/browser/api/datasets/operations.js.map +1 -1
- package/dist/browser/api/toolboxes/index.d.ts +2 -2
- package/dist/browser/api/toolboxes/index.d.ts.map +1 -1
- package/dist/browser/api/toolboxes/index.js +1 -1
- package/dist/browser/api/toolboxes/index.js.map +1 -1
- package/dist/browser/api/toolboxes/operations.d.ts +6 -2
- package/dist/browser/api/toolboxes/operations.d.ts.map +1 -1
- package/dist/browser/api/toolboxes/operations.js +33 -0
- package/dist/browser/api/toolboxes/operations.js.map +1 -1
- package/dist/browser/api/toolboxes/options.d.ts +3 -0
- package/dist/browser/api/toolboxes/options.d.ts.map +1 -1
- package/dist/browser/api/toolboxes/options.js.map +1 -1
- package/dist/browser/classic/agents/index.d.ts +17 -2
- package/dist/browser/classic/agents/index.d.ts.map +1 -1
- package/dist/browser/classic/agents/index.js +4 -1
- package/dist/browser/classic/agents/index.js.map +1 -1
- package/dist/browser/classic/beta/agentInsightMonitors/index.d.ts +36 -0
- package/dist/browser/classic/beta/agentInsightMonitors/index.d.ts.map +1 -0
- package/dist/browser/classic/beta/agentInsightMonitors/index.js +26 -0
- package/dist/browser/classic/beta/agentInsightMonitors/index.js.map +1 -0
- package/dist/browser/classic/beta/agents/index.d.ts +8 -3
- package/dist/browser/classic/beta/agents/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/agents/index.js +3 -4
- package/dist/browser/classic/beta/agents/index.js.map +1 -1
- package/dist/browser/classic/beta/index.d.ts +9 -1
- package/dist/browser/classic/beta/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/index.js +7 -1
- package/dist/browser/classic/beta/index.js.map +1 -1
- package/dist/browser/classic/beta/routines/index.d.ts +1 -1
- package/dist/browser/classic/beta/routines/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/routines/index.js.map +1 -1
- package/dist/browser/classic/beta/voiceAgents/conversations/index.d.ts +115 -0
- package/dist/browser/classic/beta/voiceAgents/conversations/index.d.ts.map +1 -0
- package/dist/browser/classic/beta/voiceAgents/conversations/index.js +25 -0
- package/dist/browser/classic/beta/voiceAgents/conversations/index.js.map +1 -0
- package/dist/browser/classic/beta/voiceAgents/index.d.ts +16 -0
- package/dist/browser/classic/beta/voiceAgents/index.d.ts.map +1 -0
- package/dist/browser/classic/beta/voiceAgents/index.js +16 -0
- package/dist/browser/classic/beta/voiceAgents/index.js.map +1 -0
- package/dist/browser/classic/beta/voiceAgents/telephony/index.d.ts +37 -0
- package/dist/browser/classic/beta/voiceAgents/telephony/index.d.ts.map +1 -0
- package/dist/browser/classic/beta/voiceAgents/telephony/index.js +25 -0
- package/dist/browser/classic/beta/voiceAgents/telephony/index.js.map +1 -0
- package/dist/browser/classic/index.d.ts +3 -0
- package/dist/browser/classic/index.d.ts.map +1 -1
- package/dist/browser/classic/index.js.map +1 -1
- package/dist/browser/classic/toolboxes/index.d.ts +4 -2
- package/dist/browser/classic/toolboxes/index.d.ts.map +1 -1
- package/dist/browser/classic/toolboxes/index.js +2 -1
- package/dist/browser/classic/toolboxes/index.js.map +1 -1
- package/dist/browser/constants.d.ts +1 -1
- package/dist/browser/constants.js +1 -1
- package/dist/browser/constants.js.map +1 -1
- package/dist/browser/deprecate.interface.d.ts +16 -4
- package/dist/browser/deprecate.interface.d.ts.map +1 -1
- package/dist/browser/deprecate.interface.js.map +1 -1
- package/dist/browser/index.d.ts +20 -6
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +2 -0
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/models/index.d.ts +3 -1
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +4840 -33
- package/dist/browser/models/models.d.ts.map +1 -1
- package/dist/browser/models/models.js +5520 -22
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/package.json +6 -1
- package/dist/browser/realtime/asyncQueue.d.ts +29 -0
- package/dist/browser/realtime/asyncQueue.d.ts.map +1 -0
- package/dist/browser/realtime/asyncQueue.js +105 -0
- package/dist/browser/realtime/asyncQueue.js.map +1 -0
- package/dist/browser/realtime/errors.d.ts +34 -0
- package/dist/browser/realtime/errors.d.ts.map +1 -0
- package/dist/browser/realtime/errors.js +40 -0
- package/dist/browser/realtime/errors.js.map +1 -0
- package/dist/browser/realtime/events.d.ts +24 -0
- package/dist/browser/realtime/events.d.ts.map +1 -0
- package/dist/browser/realtime/events.js +4 -0
- package/dist/browser/realtime/events.js.map +1 -0
- package/dist/browser/realtime/protocol.d.ts +7 -0
- package/dist/browser/realtime/protocol.d.ts.map +1 -0
- package/dist/browser/realtime/protocol.js +262 -0
- package/dist/browser/realtime/protocol.js.map +1 -0
- package/dist/browser/realtime/voiceAgentRealtimeClient.d.ts +145 -0
- package/dist/browser/realtime/voiceAgentRealtimeClient.d.ts.map +1 -0
- package/dist/browser/realtime/voiceAgentRealtimeClient.js +376 -0
- package/dist/browser/realtime/voiceAgentRealtimeClient.js.map +1 -0
- package/dist/browser/realtime/webSocketTransportLike.d.ts +44 -0
- package/dist/browser/realtime/webSocketTransportLike.d.ts.map +1 -0
- package/dist/browser/realtime/webSocketTransportLike.js +4 -0
- package/dist/browser/realtime/webSocketTransportLike.js.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.d.ts.map +1 -1
- package/dist/browser/static-helpers/pagingHelpers.js +3 -0
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/pollingHelpers.d.ts +20 -0
- package/dist/browser/static-helpers/pollingHelpers.d.ts.map +1 -1
- package/dist/browser/static-helpers/pollingHelpers.js +26 -12
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/serialization/get-binary-stream-response.d.ts.map +1 -1
- package/dist/browser/static-helpers/serialization/get-binary-stream-response.js +12 -0
- package/dist/browser/static-helpers/serialization/get-binary-stream-response.js.map +1 -1
- package/dist/browser/static-helpers/serialization/parse-json-object.d.ts +2 -0
- package/dist/browser/static-helpers/serialization/parse-json-object.d.ts.map +1 -0
- package/dist/browser/static-helpers/serialization/parse-json-object.js +14 -0
- package/dist/browser/static-helpers/serialization/parse-json-object.js.map +1 -0
- package/dist/browser/tracing/configuration.js +1 -1
- package/dist/browser/tracing/configuration.js.map +1 -1
- package/dist/browser/webSocketTransport.d.ts +31 -0
- package/dist/browser/webSocketTransport.d.ts.map +1 -0
- package/dist/browser/webSocketTransport.js +218 -0
- package/dist/browser/webSocketTransport.js.map +1 -0
- package/dist/commonjs/aiProjectClient.d.ts +1 -0
- package/dist/commonjs/aiProjectClient.d.ts.map +1 -1
- package/dist/commonjs/aiProjectClient.js +16 -1
- package/dist/commonjs/aiProjectClient.js.map +2 -2
- package/dist/commonjs/api/agents/index.d.ts +2 -2
- package/dist/commonjs/api/agents/index.d.ts.map +1 -1
- package/dist/commonjs/api/agents/index.js +6 -0
- package/dist/commonjs/api/agents/index.js.map +2 -2
- package/dist/commonjs/api/agents/operations.d.ts +23 -2
- package/dist/commonjs/api/agents/operations.d.ts.map +1 -1
- package/dist/commonjs/api/agents/operations.js +176 -4
- package/dist/commonjs/api/agents/operations.js.map +2 -2
- package/dist/commonjs/api/agents/options.d.ts +243 -2
- package/dist/commonjs/api/agents/options.d.ts.map +1 -1
- package/dist/commonjs/api/agents/options.js.map +1 -1
- package/dist/commonjs/api/aiProjectContext.d.ts +3 -0
- package/dist/commonjs/api/aiProjectContext.d.ts.map +1 -1
- package/dist/commonjs/api/aiProjectContext.js.map +2 -2
- package/dist/commonjs/api/beta/agentInsightMonitors/index.d.ts +3 -0
- package/dist/commonjs/api/beta/agentInsightMonitors/index.d.ts.map +1 -0
- package/dist/commonjs/api/beta/agentInsightMonitors/index.js +52 -0
- package/dist/commonjs/api/beta/agentInsightMonitors/index.js.map +7 -0
- package/dist/commonjs/api/beta/agentInsightMonitors/operations.d.ts +59 -0
- package/dist/commonjs/api/beta/agentInsightMonitors/operations.d.ts.map +1 -0
- package/dist/commonjs/api/beta/agentInsightMonitors/operations.js +678 -0
- package/dist/commonjs/api/beta/agentInsightMonitors/operations.js.map +7 -0
- package/dist/commonjs/api/beta/agentInsightMonitors/options.d.ts +86 -0
- package/dist/commonjs/api/beta/agentInsightMonitors/options.d.ts.map +1 -0
- package/dist/commonjs/api/beta/agentInsightMonitors/options.js +16 -0
- package/dist/commonjs/api/beta/agentInsightMonitors/options.js.map +7 -0
- package/dist/commonjs/api/beta/agents/index.d.ts +2 -2
- package/dist/commonjs/api/beta/agents/index.d.ts.map +1 -1
- package/dist/commonjs/api/beta/agents/index.js +2 -0
- package/dist/commonjs/api/beta/agents/index.js.map +2 -2
- package/dist/commonjs/api/beta/agents/operations.d.ts +9 -2
- package/dist/commonjs/api/beta/agents/operations.d.ts.map +1 -1
- package/dist/commonjs/api/beta/agents/operations.js +43 -0
- package/dist/commonjs/api/beta/agents/operations.js.map +2 -2
- package/dist/commonjs/api/beta/agents/options.d.ts +3 -0
- package/dist/commonjs/api/beta/agents/options.d.ts.map +1 -1
- package/dist/commonjs/api/beta/agents/options.js.map +1 -1
- package/dist/commonjs/api/beta/datasets/operations.d.ts +1 -1
- package/dist/commonjs/api/beta/datasets/operations.d.ts.map +1 -1
- package/dist/commonjs/api/beta/datasets/operations.js.map +1 -1
- package/dist/commonjs/api/beta/models/options.d.ts +1 -1
- package/dist/commonjs/api/beta/models/options.d.ts.map +1 -1
- package/dist/commonjs/api/beta/models/options.js.map +1 -1
- package/dist/commonjs/api/beta/routines/operations.d.ts.map +1 -1
- package/dist/commonjs/api/beta/routines/operations.js +2 -1
- package/dist/commonjs/api/beta/routines/operations.js.map +2 -2
- package/dist/commonjs/api/beta/routines/options.d.ts +3 -1
- package/dist/commonjs/api/beta/routines/options.d.ts.map +1 -1
- package/dist/commonjs/api/beta/routines/options.js.map +1 -1
- package/dist/commonjs/api/beta/voiceAgents/conversations/index.d.ts +3 -0
- package/dist/commonjs/api/beta/voiceAgents/conversations/index.d.ts.map +1 -0
- package/dist/commonjs/api/beta/voiceAgents/conversations/index.js +54 -0
- package/dist/commonjs/api/beta/voiceAgents/conversations/index.js.map +7 -0
- package/dist/commonjs/api/beta/voiceAgents/conversations/operations.d.ts +140 -0
- package/dist/commonjs/api/beta/voiceAgents/conversations/operations.d.ts.map +1 -0
- package/dist/commonjs/api/beta/voiceAgents/conversations/operations.js +747 -0
- package/dist/commonjs/api/beta/voiceAgents/conversations/operations.js.map +7 -0
- package/dist/commonjs/api/beta/voiceAgents/conversations/options.d.ts +133 -0
- package/dist/commonjs/api/beta/voiceAgents/conversations/options.d.ts.map +1 -0
- package/dist/commonjs/api/beta/voiceAgents/conversations/options.js +16 -0
- package/dist/commonjs/api/beta/voiceAgents/conversations/options.js.map +7 -0
- package/dist/commonjs/api/beta/voiceAgents/telephony/index.d.ts +3 -0
- package/dist/commonjs/api/beta/voiceAgents/telephony/index.d.ts.map +1 -0
- package/dist/commonjs/api/beta/voiceAgents/telephony/index.js +54 -0
- package/dist/commonjs/api/beta/voiceAgents/telephony/index.js.map +7 -0
- package/dist/commonjs/api/beta/voiceAgents/telephony/operations.d.ts +62 -0
- package/dist/commonjs/api/beta/voiceAgents/telephony/operations.d.ts.map +1 -0
- package/dist/commonjs/api/beta/voiceAgents/telephony/operations.js +683 -0
- package/dist/commonjs/api/beta/voiceAgents/telephony/operations.js.map +7 -0
- package/dist/commonjs/api/beta/voiceAgents/telephony/options.d.ts +133 -0
- package/dist/commonjs/api/beta/voiceAgents/telephony/options.d.ts.map +1 -0
- package/dist/commonjs/api/beta/voiceAgents/telephony/options.js +16 -0
- package/dist/commonjs/api/beta/voiceAgents/telephony/options.js.map +7 -0
- package/dist/commonjs/api/datasets/operations.d.ts.map +1 -1
- package/dist/commonjs/api/datasets/operations.js +0 -6
- package/dist/commonjs/api/datasets/operations.js.map +2 -2
- package/dist/commonjs/api/toolboxes/index.d.ts +2 -2
- package/dist/commonjs/api/toolboxes/index.d.ts.map +1 -1
- package/dist/commonjs/api/toolboxes/index.js +2 -0
- package/dist/commonjs/api/toolboxes/index.js.map +2 -2
- package/dist/commonjs/api/toolboxes/operations.d.ts +6 -2
- package/dist/commonjs/api/toolboxes/operations.d.ts.map +1 -1
- package/dist/commonjs/api/toolboxes/operations.js +42 -0
- package/dist/commonjs/api/toolboxes/operations.js.map +2 -2
- package/dist/commonjs/api/toolboxes/options.d.ts +3 -0
- package/dist/commonjs/api/toolboxes/options.d.ts.map +1 -1
- package/dist/commonjs/api/toolboxes/options.js.map +1 -1
- package/dist/commonjs/classic/agents/index.d.ts +17 -2
- package/dist/commonjs/classic/agents/index.d.ts.map +1 -1
- package/dist/commonjs/classic/agents/index.js +3 -0
- package/dist/commonjs/classic/agents/index.js.map +2 -2
- package/dist/commonjs/classic/beta/agentInsightMonitors/index.d.ts +36 -0
- package/dist/commonjs/classic/beta/agentInsightMonitors/index.d.ts.map +1 -0
- package/dist/commonjs/classic/beta/agentInsightMonitors/index.js +50 -0
- package/dist/commonjs/classic/beta/agentInsightMonitors/index.js.map +7 -0
- package/dist/commonjs/classic/beta/agents/index.d.ts +8 -3
- package/dist/commonjs/classic/beta/agents/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/agents/index.js +3 -4
- package/dist/commonjs/classic/beta/agents/index.js.map +2 -2
- package/dist/commonjs/classic/beta/index.d.ts +9 -1
- package/dist/commonjs/classic/beta/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/index.js +8 -2
- package/dist/commonjs/classic/beta/index.js.map +2 -2
- package/dist/commonjs/classic/beta/routines/index.d.ts +1 -1
- package/dist/commonjs/classic/beta/routines/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/routines/index.js.map +1 -1
- package/dist/commonjs/classic/beta/voiceAgents/conversations/index.d.ts +115 -0
- package/dist/commonjs/classic/beta/voiceAgents/conversations/index.d.ts.map +1 -0
- package/dist/commonjs/classic/beta/voiceAgents/conversations/index.js +49 -0
- package/dist/commonjs/classic/beta/voiceAgents/conversations/index.js.map +7 -0
- package/dist/commonjs/classic/beta/voiceAgents/index.d.ts +16 -0
- package/dist/commonjs/classic/beta/voiceAgents/index.d.ts.map +1 -0
- package/dist/commonjs/classic/beta/voiceAgents/index.js +40 -0
- package/dist/commonjs/classic/beta/voiceAgents/index.js.map +7 -0
- package/dist/commonjs/classic/beta/voiceAgents/telephony/index.d.ts +37 -0
- package/dist/commonjs/classic/beta/voiceAgents/telephony/index.d.ts.map +1 -0
- package/dist/commonjs/classic/beta/voiceAgents/telephony/index.js +49 -0
- package/dist/commonjs/classic/beta/voiceAgents/telephony/index.js.map +7 -0
- package/dist/commonjs/classic/index.d.ts +3 -0
- package/dist/commonjs/classic/index.d.ts.map +1 -1
- package/dist/commonjs/classic/index.js.map +1 -1
- package/dist/commonjs/classic/toolboxes/index.d.ts +4 -2
- package/dist/commonjs/classic/toolboxes/index.d.ts.map +1 -1
- package/dist/commonjs/classic/toolboxes/index.js +1 -0
- package/dist/commonjs/classic/toolboxes/index.js.map +2 -2
- package/dist/commonjs/constants.d.ts +1 -1
- package/dist/commonjs/constants.js +1 -1
- package/dist/commonjs/constants.js.map +1 -1
- package/dist/commonjs/deprecate.interface.d.ts +16 -4
- package/dist/commonjs/deprecate.interface.d.ts.map +1 -1
- package/dist/commonjs/deprecate.interface.js.map +1 -1
- package/dist/commonjs/index.d.ts +20 -6
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +14 -0
- package/dist/commonjs/index.js.map +2 -2
- package/dist/commonjs/models/index.d.ts +3 -1
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/models.d.ts +4840 -33
- package/dist/commonjs/models/models.d.ts.map +1 -1
- package/dist/commonjs/models/models.js +6567 -79
- package/dist/commonjs/models/models.js.map +2 -2
- package/dist/commonjs/package.json +6 -1
- package/dist/commonjs/realtime/asyncQueue.d.ts +29 -0
- package/dist/commonjs/realtime/asyncQueue.d.ts.map +1 -0
- package/dist/commonjs/realtime/asyncQueue.js +127 -0
- package/dist/commonjs/realtime/asyncQueue.js.map +7 -0
- package/dist/commonjs/realtime/errors.d.ts +34 -0
- package/dist/commonjs/realtime/errors.d.ts.map +1 -0
- package/dist/commonjs/realtime/errors.js +66 -0
- package/dist/commonjs/realtime/errors.js.map +7 -0
- package/dist/commonjs/realtime/events.d.ts +24 -0
- package/dist/commonjs/realtime/events.d.ts.map +1 -0
- package/dist/commonjs/realtime/events.js +16 -0
- package/dist/commonjs/realtime/events.js.map +7 -0
- package/dist/commonjs/realtime/protocol.d.ts +7 -0
- package/dist/commonjs/realtime/protocol.d.ts.map +1 -0
- package/dist/commonjs/realtime/protocol.js +297 -0
- package/dist/commonjs/realtime/protocol.js.map +7 -0
- package/dist/commonjs/realtime/voiceAgentRealtimeClient.d.ts +145 -0
- package/dist/commonjs/realtime/voiceAgentRealtimeClient.d.ts.map +1 -0
- package/dist/commonjs/realtime/voiceAgentRealtimeClient.js +443 -0
- package/dist/commonjs/realtime/voiceAgentRealtimeClient.js.map +7 -0
- package/dist/commonjs/realtime/webSocketTransportLike.d.ts +44 -0
- package/dist/commonjs/realtime/webSocketTransportLike.d.ts.map +1 -0
- package/dist/commonjs/realtime/webSocketTransportLike.js +16 -0
- package/dist/commonjs/realtime/webSocketTransportLike.js.map +7 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +1 -1
- package/dist/commonjs/static-helpers/pagingHelpers.js +3 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +2 -2
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts +20 -0
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts.map +1 -1
- package/dist/commonjs/static-helpers/pollingHelpers.js +29 -8
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +2 -2
- package/dist/commonjs/static-helpers/serialization/get-binary-stream-response.d.ts.map +1 -1
- package/dist/commonjs/static-helpers/serialization/get-binary-stream-response.js +15 -0
- package/dist/commonjs/static-helpers/serialization/get-binary-stream-response.js.map +2 -2
- package/dist/commonjs/static-helpers/serialization/parse-json-object.d.ts +2 -0
- package/dist/commonjs/static-helpers/serialization/parse-json-object.d.ts.map +1 -0
- package/dist/commonjs/static-helpers/serialization/parse-json-object.js +35 -0
- package/dist/commonjs/static-helpers/serialization/parse-json-object.js.map +7 -0
- package/dist/commonjs/tracing/configuration.js +1 -1
- package/dist/commonjs/tracing/configuration.js.map +2 -2
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/commonjs/webSocketTransport.d.ts +15 -0
- package/dist/commonjs/webSocketTransport.d.ts.map +1 -0
- package/dist/commonjs/webSocketTransport.js +232 -0
- package/dist/commonjs/webSocketTransport.js.map +7 -0
- package/dist/esm/aiProjectClient.d.ts +1 -0
- package/dist/esm/aiProjectClient.d.ts.map +1 -1
- package/dist/esm/aiProjectClient.js +16 -1
- package/dist/esm/aiProjectClient.js.map +1 -1
- package/dist/esm/api/agents/index.d.ts +2 -2
- package/dist/esm/api/agents/index.d.ts.map +1 -1
- package/dist/esm/api/agents/index.js +1 -1
- package/dist/esm/api/agents/index.js.map +1 -1
- package/dist/esm/api/agents/operations.d.ts +23 -2
- package/dist/esm/api/agents/operations.d.ts.map +1 -1
- package/dist/esm/api/agents/operations.js +169 -3
- package/dist/esm/api/agents/operations.js.map +1 -1
- package/dist/esm/api/agents/options.d.ts +243 -2
- package/dist/esm/api/agents/options.d.ts.map +1 -1
- package/dist/esm/api/agents/options.js.map +1 -1
- package/dist/esm/api/aiProjectContext.d.ts +3 -0
- package/dist/esm/api/aiProjectContext.d.ts.map +1 -1
- package/dist/esm/api/aiProjectContext.js.map +1 -1
- package/dist/esm/api/beta/agentInsightMonitors/index.d.ts +3 -0
- package/dist/esm/api/beta/agentInsightMonitors/index.d.ts.map +1 -0
- package/dist/esm/api/beta/agentInsightMonitors/index.js +4 -0
- package/dist/esm/api/beta/agentInsightMonitors/index.js.map +1 -0
- package/dist/esm/api/beta/agentInsightMonitors/operations.d.ts +59 -0
- package/dist/esm/api/beta/agentInsightMonitors/operations.d.ts.map +1 -0
- package/dist/esm/api/beta/agentInsightMonitors/operations.js +519 -0
- package/dist/esm/api/beta/agentInsightMonitors/operations.js.map +1 -0
- package/dist/esm/api/beta/agentInsightMonitors/options.d.ts +86 -0
- package/dist/esm/api/beta/agentInsightMonitors/options.d.ts.map +1 -0
- package/dist/esm/api/beta/agentInsightMonitors/options.js +4 -0
- package/dist/esm/api/beta/agentInsightMonitors/options.js.map +1 -0
- package/dist/esm/api/beta/agents/index.d.ts +2 -2
- package/dist/esm/api/beta/agents/index.d.ts.map +1 -1
- package/dist/esm/api/beta/agents/index.js +1 -1
- package/dist/esm/api/beta/agents/index.js.map +1 -1
- package/dist/esm/api/beta/agents/operations.d.ts +9 -2
- package/dist/esm/api/beta/agents/operations.d.ts.map +1 -1
- package/dist/esm/api/beta/agents/operations.js +38 -1
- package/dist/esm/api/beta/agents/operations.js.map +1 -1
- package/dist/esm/api/beta/agents/options.d.ts +3 -0
- package/dist/esm/api/beta/agents/options.d.ts.map +1 -1
- package/dist/esm/api/beta/agents/options.js.map +1 -1
- package/dist/esm/api/beta/datasets/operations.d.ts +1 -1
- package/dist/esm/api/beta/datasets/operations.d.ts.map +1 -1
- package/dist/esm/api/beta/datasets/operations.js.map +1 -1
- package/dist/esm/api/beta/models/options.d.ts +1 -1
- package/dist/esm/api/beta/models/options.d.ts.map +1 -1
- package/dist/esm/api/beta/models/options.js.map +1 -1
- package/dist/esm/api/beta/routines/operations.d.ts.map +1 -1
- package/dist/esm/api/beta/routines/operations.js +4 -1
- package/dist/esm/api/beta/routines/operations.js.map +1 -1
- package/dist/esm/api/beta/routines/options.d.ts +3 -1
- package/dist/esm/api/beta/routines/options.d.ts.map +1 -1
- package/dist/esm/api/beta/routines/options.js.map +1 -1
- package/dist/esm/api/beta/voiceAgents/conversations/index.d.ts +3 -0
- package/dist/esm/api/beta/voiceAgents/conversations/index.d.ts.map +1 -0
- package/dist/esm/api/beta/voiceAgents/conversations/index.js +4 -0
- package/dist/esm/api/beta/voiceAgents/conversations/index.js.map +1 -0
- package/dist/esm/api/beta/voiceAgents/conversations/operations.d.ts +140 -0
- package/dist/esm/api/beta/voiceAgents/conversations/operations.d.ts.map +1 -0
- package/dist/esm/api/beta/voiceAgents/conversations/operations.js +635 -0
- package/dist/esm/api/beta/voiceAgents/conversations/operations.js.map +1 -0
- package/dist/esm/api/beta/voiceAgents/conversations/options.d.ts +133 -0
- package/dist/esm/api/beta/voiceAgents/conversations/options.d.ts.map +1 -0
- package/dist/esm/api/beta/voiceAgents/conversations/options.js +4 -0
- package/dist/esm/api/beta/voiceAgents/conversations/options.js.map +1 -0
- package/dist/esm/api/beta/voiceAgents/telephony/index.d.ts +3 -0
- package/dist/esm/api/beta/voiceAgents/telephony/index.d.ts.map +1 -0
- package/dist/esm/api/beta/voiceAgents/telephony/index.js +4 -0
- package/dist/esm/api/beta/voiceAgents/telephony/index.js.map +1 -0
- package/dist/esm/api/beta/voiceAgents/telephony/operations.d.ts +62 -0
- package/dist/esm/api/beta/voiceAgents/telephony/operations.d.ts.map +1 -0
- package/dist/esm/api/beta/voiceAgents/telephony/operations.js +559 -0
- package/dist/esm/api/beta/voiceAgents/telephony/operations.js.map +1 -0
- package/dist/esm/api/beta/voiceAgents/telephony/options.d.ts +133 -0
- package/dist/esm/api/beta/voiceAgents/telephony/options.d.ts.map +1 -0
- package/dist/esm/api/beta/voiceAgents/telephony/options.js +4 -0
- package/dist/esm/api/beta/voiceAgents/telephony/options.js.map +1 -0
- package/dist/esm/api/datasets/operations.d.ts.map +1 -1
- package/dist/esm/api/datasets/operations.js +1 -3
- package/dist/esm/api/datasets/operations.js.map +1 -1
- package/dist/esm/api/toolboxes/index.d.ts +2 -2
- package/dist/esm/api/toolboxes/index.d.ts.map +1 -1
- package/dist/esm/api/toolboxes/index.js +1 -1
- package/dist/esm/api/toolboxes/index.js.map +1 -1
- package/dist/esm/api/toolboxes/operations.d.ts +6 -2
- package/dist/esm/api/toolboxes/operations.d.ts.map +1 -1
- package/dist/esm/api/toolboxes/operations.js +33 -0
- package/dist/esm/api/toolboxes/operations.js.map +1 -1
- package/dist/esm/api/toolboxes/options.d.ts +3 -0
- package/dist/esm/api/toolboxes/options.d.ts.map +1 -1
- package/dist/esm/api/toolboxes/options.js.map +1 -1
- package/dist/esm/classic/agents/index.d.ts +17 -2
- package/dist/esm/classic/agents/index.d.ts.map +1 -1
- package/dist/esm/classic/agents/index.js +4 -1
- package/dist/esm/classic/agents/index.js.map +1 -1
- package/dist/esm/classic/beta/agentInsightMonitors/index.d.ts +36 -0
- package/dist/esm/classic/beta/agentInsightMonitors/index.d.ts.map +1 -0
- package/dist/esm/classic/beta/agentInsightMonitors/index.js +26 -0
- package/dist/esm/classic/beta/agentInsightMonitors/index.js.map +1 -0
- package/dist/esm/classic/beta/agents/index.d.ts +8 -3
- package/dist/esm/classic/beta/agents/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/agents/index.js +3 -4
- package/dist/esm/classic/beta/agents/index.js.map +1 -1
- package/dist/esm/classic/beta/index.d.ts +9 -1
- package/dist/esm/classic/beta/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/index.js +7 -1
- package/dist/esm/classic/beta/index.js.map +1 -1
- package/dist/esm/classic/beta/routines/index.d.ts +1 -1
- package/dist/esm/classic/beta/routines/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/routines/index.js.map +1 -1
- package/dist/esm/classic/beta/voiceAgents/conversations/index.d.ts +115 -0
- package/dist/esm/classic/beta/voiceAgents/conversations/index.d.ts.map +1 -0
- package/dist/esm/classic/beta/voiceAgents/conversations/index.js +25 -0
- package/dist/esm/classic/beta/voiceAgents/conversations/index.js.map +1 -0
- package/dist/esm/classic/beta/voiceAgents/index.d.ts +16 -0
- package/dist/esm/classic/beta/voiceAgents/index.d.ts.map +1 -0
- package/dist/esm/classic/beta/voiceAgents/index.js +16 -0
- package/dist/esm/classic/beta/voiceAgents/index.js.map +1 -0
- package/dist/esm/classic/beta/voiceAgents/telephony/index.d.ts +37 -0
- package/dist/esm/classic/beta/voiceAgents/telephony/index.d.ts.map +1 -0
- package/dist/esm/classic/beta/voiceAgents/telephony/index.js +25 -0
- package/dist/esm/classic/beta/voiceAgents/telephony/index.js.map +1 -0
- package/dist/esm/classic/index.d.ts +3 -0
- package/dist/esm/classic/index.d.ts.map +1 -1
- package/dist/esm/classic/index.js.map +1 -1
- package/dist/esm/classic/toolboxes/index.d.ts +4 -2
- package/dist/esm/classic/toolboxes/index.d.ts.map +1 -1
- package/dist/esm/classic/toolboxes/index.js +2 -1
- package/dist/esm/classic/toolboxes/index.js.map +1 -1
- package/dist/esm/constants.d.ts +1 -1
- package/dist/esm/constants.js +1 -1
- package/dist/esm/constants.js.map +1 -1
- package/dist/esm/deprecate.interface.d.ts +16 -4
- package/dist/esm/deprecate.interface.d.ts.map +1 -1
- package/dist/esm/deprecate.interface.js.map +1 -1
- package/dist/esm/index.d.ts +20 -6
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/index.d.ts +3 -1
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +4840 -33
- package/dist/esm/models/models.d.ts.map +1 -1
- package/dist/esm/models/models.js +5520 -22
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/package.json +6 -1
- package/dist/esm/realtime/asyncQueue.d.ts +29 -0
- package/dist/esm/realtime/asyncQueue.d.ts.map +1 -0
- package/dist/esm/realtime/asyncQueue.js +105 -0
- package/dist/esm/realtime/asyncQueue.js.map +1 -0
- package/dist/esm/realtime/errors.d.ts +34 -0
- package/dist/esm/realtime/errors.d.ts.map +1 -0
- package/dist/esm/realtime/errors.js +40 -0
- package/dist/esm/realtime/errors.js.map +1 -0
- package/dist/esm/realtime/events.d.ts +24 -0
- package/dist/esm/realtime/events.d.ts.map +1 -0
- package/dist/esm/realtime/events.js +4 -0
- package/dist/esm/realtime/events.js.map +1 -0
- package/dist/esm/realtime/protocol.d.ts +7 -0
- package/dist/esm/realtime/protocol.d.ts.map +1 -0
- package/dist/esm/realtime/protocol.js +262 -0
- package/dist/esm/realtime/protocol.js.map +1 -0
- package/dist/esm/realtime/voiceAgentRealtimeClient.d.ts +145 -0
- package/dist/esm/realtime/voiceAgentRealtimeClient.d.ts.map +1 -0
- package/dist/esm/realtime/voiceAgentRealtimeClient.js +376 -0
- package/dist/esm/realtime/voiceAgentRealtimeClient.js.map +1 -0
- package/dist/esm/realtime/webSocketTransportLike.d.ts +44 -0
- package/dist/esm/realtime/webSocketTransportLike.d.ts.map +1 -0
- package/dist/esm/realtime/webSocketTransportLike.js +4 -0
- package/dist/esm/realtime/webSocketTransportLike.js.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.d.ts.map +1 -1
- package/dist/esm/static-helpers/pagingHelpers.js +3 -0
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/esm/static-helpers/pollingHelpers.d.ts +20 -0
- package/dist/esm/static-helpers/pollingHelpers.d.ts.map +1 -1
- package/dist/esm/static-helpers/pollingHelpers.js +26 -12
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/esm/static-helpers/serialization/get-binary-stream-response.d.ts.map +1 -1
- package/dist/esm/static-helpers/serialization/get-binary-stream-response.js +15 -0
- package/dist/esm/static-helpers/serialization/get-binary-stream-response.js.map +1 -1
- package/dist/esm/static-helpers/serialization/parse-json-object.d.ts +2 -0
- package/dist/esm/static-helpers/serialization/parse-json-object.d.ts.map +1 -0
- package/dist/esm/static-helpers/serialization/parse-json-object.js +14 -0
- package/dist/esm/static-helpers/serialization/parse-json-object.js.map +1 -0
- package/dist/esm/tracing/configuration.js +1 -1
- package/dist/esm/tracing/configuration.js.map +1 -1
- package/dist/esm/webSocketTransport.d.ts +15 -0
- package/dist/esm/webSocketTransport.d.ts.map +1 -0
- package/dist/esm/webSocketTransport.js +220 -0
- package/dist/esm/webSocketTransport.js.map +1 -0
- package/dist/react-native/aiProjectClient.d.ts +1 -0
- package/dist/react-native/aiProjectClient.d.ts.map +1 -1
- package/dist/react-native/aiProjectClient.js +16 -1
- package/dist/react-native/aiProjectClient.js.map +1 -1
- package/dist/react-native/api/agents/index.d.ts +2 -2
- package/dist/react-native/api/agents/index.d.ts.map +1 -1
- package/dist/react-native/api/agents/index.js +1 -1
- package/dist/react-native/api/agents/index.js.map +1 -1
- package/dist/react-native/api/agents/operations.d.ts +23 -2
- package/dist/react-native/api/agents/operations.d.ts.map +1 -1
- package/dist/react-native/api/agents/operations.js +169 -3
- package/dist/react-native/api/agents/operations.js.map +1 -1
- package/dist/react-native/api/agents/options.d.ts +243 -2
- package/dist/react-native/api/agents/options.d.ts.map +1 -1
- package/dist/react-native/api/agents/options.js.map +1 -1
- package/dist/react-native/api/aiProjectContext.d.ts +3 -0
- package/dist/react-native/api/aiProjectContext.d.ts.map +1 -1
- package/dist/react-native/api/aiProjectContext.js.map +1 -1
- package/dist/react-native/api/beta/agentInsightMonitors/index.d.ts +3 -0
- package/dist/react-native/api/beta/agentInsightMonitors/index.d.ts.map +1 -0
- package/dist/react-native/api/beta/agentInsightMonitors/index.js +4 -0
- package/dist/react-native/api/beta/agentInsightMonitors/index.js.map +1 -0
- package/dist/react-native/api/beta/agentInsightMonitors/operations.d.ts +59 -0
- package/dist/react-native/api/beta/agentInsightMonitors/operations.d.ts.map +1 -0
- package/dist/react-native/api/beta/agentInsightMonitors/operations.js +519 -0
- package/dist/react-native/api/beta/agentInsightMonitors/operations.js.map +1 -0
- package/dist/react-native/api/beta/agentInsightMonitors/options.d.ts +86 -0
- package/dist/react-native/api/beta/agentInsightMonitors/options.d.ts.map +1 -0
- package/dist/react-native/api/beta/agentInsightMonitors/options.js +4 -0
- package/dist/react-native/api/beta/agentInsightMonitors/options.js.map +1 -0
- package/dist/react-native/api/beta/agents/index.d.ts +2 -2
- package/dist/react-native/api/beta/agents/index.d.ts.map +1 -1
- package/dist/react-native/api/beta/agents/index.js +1 -1
- package/dist/react-native/api/beta/agents/index.js.map +1 -1
- package/dist/react-native/api/beta/agents/operations.d.ts +9 -2
- package/dist/react-native/api/beta/agents/operations.d.ts.map +1 -1
- package/dist/react-native/api/beta/agents/operations.js +38 -1
- package/dist/react-native/api/beta/agents/operations.js.map +1 -1
- package/dist/react-native/api/beta/agents/options.d.ts +3 -0
- package/dist/react-native/api/beta/agents/options.d.ts.map +1 -1
- package/dist/react-native/api/beta/agents/options.js.map +1 -1
- package/dist/react-native/api/beta/datasets/operations.d.ts +1 -1
- package/dist/react-native/api/beta/datasets/operations.d.ts.map +1 -1
- package/dist/react-native/api/beta/datasets/operations.js.map +1 -1
- package/dist/react-native/api/beta/models/options.d.ts +1 -1
- package/dist/react-native/api/beta/models/options.d.ts.map +1 -1
- package/dist/react-native/api/beta/models/options.js.map +1 -1
- package/dist/react-native/api/beta/routines/operations.d.ts.map +1 -1
- package/dist/react-native/api/beta/routines/operations.js +4 -1
- package/dist/react-native/api/beta/routines/operations.js.map +1 -1
- package/dist/react-native/api/beta/routines/options.d.ts +3 -1
- package/dist/react-native/api/beta/routines/options.d.ts.map +1 -1
- package/dist/react-native/api/beta/routines/options.js.map +1 -1
- package/dist/react-native/api/beta/voiceAgents/conversations/index.d.ts +3 -0
- package/dist/react-native/api/beta/voiceAgents/conversations/index.d.ts.map +1 -0
- package/dist/react-native/api/beta/voiceAgents/conversations/index.js +4 -0
- package/dist/react-native/api/beta/voiceAgents/conversations/index.js.map +1 -0
- package/dist/react-native/api/beta/voiceAgents/conversations/operations.d.ts +140 -0
- package/dist/react-native/api/beta/voiceAgents/conversations/operations.d.ts.map +1 -0
- package/dist/react-native/api/beta/voiceAgents/conversations/operations.js +635 -0
- package/dist/react-native/api/beta/voiceAgents/conversations/operations.js.map +1 -0
- package/dist/react-native/api/beta/voiceAgents/conversations/options.d.ts +133 -0
- package/dist/react-native/api/beta/voiceAgents/conversations/options.d.ts.map +1 -0
- package/dist/react-native/api/beta/voiceAgents/conversations/options.js +4 -0
- package/dist/react-native/api/beta/voiceAgents/conversations/options.js.map +1 -0
- package/dist/react-native/api/beta/voiceAgents/telephony/index.d.ts +3 -0
- package/dist/react-native/api/beta/voiceAgents/telephony/index.d.ts.map +1 -0
- package/dist/react-native/api/beta/voiceAgents/telephony/index.js +4 -0
- package/dist/react-native/api/beta/voiceAgents/telephony/index.js.map +1 -0
- package/dist/react-native/api/beta/voiceAgents/telephony/operations.d.ts +62 -0
- package/dist/react-native/api/beta/voiceAgents/telephony/operations.d.ts.map +1 -0
- package/dist/react-native/api/beta/voiceAgents/telephony/operations.js +559 -0
- package/dist/react-native/api/beta/voiceAgents/telephony/operations.js.map +1 -0
- package/dist/react-native/api/beta/voiceAgents/telephony/options.d.ts +133 -0
- package/dist/react-native/api/beta/voiceAgents/telephony/options.d.ts.map +1 -0
- package/dist/react-native/api/beta/voiceAgents/telephony/options.js +4 -0
- package/dist/react-native/api/beta/voiceAgents/telephony/options.js.map +1 -0
- package/dist/react-native/api/datasets/operations.d.ts.map +1 -1
- package/dist/react-native/api/datasets/operations.js +1 -3
- package/dist/react-native/api/datasets/operations.js.map +1 -1
- package/dist/react-native/api/toolboxes/index.d.ts +2 -2
- package/dist/react-native/api/toolboxes/index.d.ts.map +1 -1
- package/dist/react-native/api/toolboxes/index.js +1 -1
- package/dist/react-native/api/toolboxes/index.js.map +1 -1
- package/dist/react-native/api/toolboxes/operations.d.ts +6 -2
- package/dist/react-native/api/toolboxes/operations.d.ts.map +1 -1
- package/dist/react-native/api/toolboxes/operations.js +33 -0
- package/dist/react-native/api/toolboxes/operations.js.map +1 -1
- package/dist/react-native/api/toolboxes/options.d.ts +3 -0
- package/dist/react-native/api/toolboxes/options.d.ts.map +1 -1
- package/dist/react-native/api/toolboxes/options.js.map +1 -1
- package/dist/react-native/classic/agents/index.d.ts +17 -2
- package/dist/react-native/classic/agents/index.d.ts.map +1 -1
- package/dist/react-native/classic/agents/index.js +4 -1
- package/dist/react-native/classic/agents/index.js.map +1 -1
- package/dist/react-native/classic/beta/agentInsightMonitors/index.d.ts +36 -0
- package/dist/react-native/classic/beta/agentInsightMonitors/index.d.ts.map +1 -0
- package/dist/react-native/classic/beta/agentInsightMonitors/index.js +26 -0
- package/dist/react-native/classic/beta/agentInsightMonitors/index.js.map +1 -0
- package/dist/react-native/classic/beta/agents/index.d.ts +8 -3
- package/dist/react-native/classic/beta/agents/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/agents/index.js +3 -4
- package/dist/react-native/classic/beta/agents/index.js.map +1 -1
- package/dist/react-native/classic/beta/index.d.ts +9 -1
- package/dist/react-native/classic/beta/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/index.js +7 -1
- package/dist/react-native/classic/beta/index.js.map +1 -1
- package/dist/react-native/classic/beta/routines/index.d.ts +1 -1
- package/dist/react-native/classic/beta/routines/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/routines/index.js.map +1 -1
- package/dist/react-native/classic/beta/voiceAgents/conversations/index.d.ts +115 -0
- package/dist/react-native/classic/beta/voiceAgents/conversations/index.d.ts.map +1 -0
- package/dist/react-native/classic/beta/voiceAgents/conversations/index.js +25 -0
- package/dist/react-native/classic/beta/voiceAgents/conversations/index.js.map +1 -0
- package/dist/react-native/classic/beta/voiceAgents/index.d.ts +16 -0
- package/dist/react-native/classic/beta/voiceAgents/index.d.ts.map +1 -0
- package/dist/react-native/classic/beta/voiceAgents/index.js +16 -0
- package/dist/react-native/classic/beta/voiceAgents/index.js.map +1 -0
- package/dist/react-native/classic/beta/voiceAgents/telephony/index.d.ts +37 -0
- package/dist/react-native/classic/beta/voiceAgents/telephony/index.d.ts.map +1 -0
- package/dist/react-native/classic/beta/voiceAgents/telephony/index.js +25 -0
- package/dist/react-native/classic/beta/voiceAgents/telephony/index.js.map +1 -0
- package/dist/react-native/classic/index.d.ts +3 -0
- package/dist/react-native/classic/index.d.ts.map +1 -1
- package/dist/react-native/classic/index.js.map +1 -1
- package/dist/react-native/classic/toolboxes/index.d.ts +4 -2
- package/dist/react-native/classic/toolboxes/index.d.ts.map +1 -1
- package/dist/react-native/classic/toolboxes/index.js +2 -1
- package/dist/react-native/classic/toolboxes/index.js.map +1 -1
- package/dist/react-native/constants.d.ts +1 -1
- package/dist/react-native/constants.js +1 -1
- package/dist/react-native/constants.js.map +1 -1
- package/dist/react-native/deprecate.interface.d.ts +16 -4
- package/dist/react-native/deprecate.interface.d.ts.map +1 -1
- package/dist/react-native/deprecate.interface.js.map +1 -1
- package/dist/react-native/index.d.ts +20 -6
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +2 -0
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/models/index.d.ts +3 -1
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/models.d.ts +4840 -33
- package/dist/react-native/models/models.d.ts.map +1 -1
- package/dist/react-native/models/models.js +5520 -22
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/package.json +6 -1
- package/dist/react-native/realtime/asyncQueue.d.ts +29 -0
- package/dist/react-native/realtime/asyncQueue.d.ts.map +1 -0
- package/dist/react-native/realtime/asyncQueue.js +105 -0
- package/dist/react-native/realtime/asyncQueue.js.map +1 -0
- package/dist/react-native/realtime/errors.d.ts +34 -0
- package/dist/react-native/realtime/errors.d.ts.map +1 -0
- package/dist/react-native/realtime/errors.js +40 -0
- package/dist/react-native/realtime/errors.js.map +1 -0
- package/dist/react-native/realtime/events.d.ts +24 -0
- package/dist/react-native/realtime/events.d.ts.map +1 -0
- package/dist/react-native/realtime/events.js +4 -0
- package/dist/react-native/realtime/events.js.map +1 -0
- package/dist/react-native/realtime/protocol.d.ts +7 -0
- package/dist/react-native/realtime/protocol.d.ts.map +1 -0
- package/dist/react-native/realtime/protocol.js +262 -0
- package/dist/react-native/realtime/protocol.js.map +1 -0
- package/dist/react-native/realtime/voiceAgentRealtimeClient.d.ts +145 -0
- package/dist/react-native/realtime/voiceAgentRealtimeClient.d.ts.map +1 -0
- package/dist/react-native/realtime/voiceAgentRealtimeClient.js +376 -0
- package/dist/react-native/realtime/voiceAgentRealtimeClient.js.map +1 -0
- package/dist/react-native/realtime/webSocketTransportLike.d.ts +44 -0
- package/dist/react-native/realtime/webSocketTransportLike.d.ts.map +1 -0
- package/dist/react-native/realtime/webSocketTransportLike.js +4 -0
- package/dist/react-native/realtime/webSocketTransportLike.js.map +1 -0
- package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +1 -1
- package/dist/react-native/static-helpers/pagingHelpers.js +3 -0
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/pollingHelpers.d.ts +20 -0
- package/dist/react-native/static-helpers/pollingHelpers.d.ts.map +1 -1
- package/dist/react-native/static-helpers/pollingHelpers.js +26 -12
- package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/serialization/get-binary-stream-response-browser.d.mts.map +1 -1
- package/dist/react-native/static-helpers/serialization/get-binary-stream-response-browser.mjs +12 -0
- package/dist/react-native/static-helpers/serialization/get-binary-stream-response-browser.mjs.map +1 -1
- package/dist/react-native/static-helpers/serialization/parse-json-object.d.ts +2 -0
- package/dist/react-native/static-helpers/serialization/parse-json-object.d.ts.map +1 -0
- package/dist/react-native/static-helpers/serialization/parse-json-object.js +14 -0
- package/dist/react-native/static-helpers/serialization/parse-json-object.js.map +1 -0
- package/dist/react-native/tracing/configuration.js +1 -1
- package/dist/react-native/tracing/configuration.js.map +1 -1
- package/dist/react-native/webSocketTransport-browser.d.mts +31 -0
- package/dist/react-native/webSocketTransport-browser.d.mts.map +1 -0
- package/dist/react-native/webSocketTransport-browser.mjs +218 -0
- package/dist/react-native/webSocketTransport-browser.mjs.map +1 -0
- package/dist/react-native/webSocketTransport.d.ts +2 -0
- package/dist/react-native/webSocketTransport.d.ts.map +1 -0
- package/dist/react-native/webSocketTransport.js +6 -0
- package/dist/react-native/webSocketTransport.js.map +1 -0
- package/package.json +12 -9
|
@@ -0,0 +1,635 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { apiErrorResponseDeserializer, _agentsPagedResultVoiceConversationDeserializer, voiceConversationDeserializer, _agentsPagedResultVoiceResponseDeserializer, voiceResponseDeserializer, realtimeConversationItemUnionDeserializer, _agentsPagedResultRealtimeConversationItemDeserializer, voiceAudioItemDeserializer, voiceGeneratedAudioItemDeserializer, voiceRecordingDeserializer, } from "../../../../models/models.js";
|
|
4
|
+
import { buildPagedAsyncIterator } from "../../../../static-helpers/pagingHelpers.js";
|
|
5
|
+
import { getBinaryStreamResponse } from "../../../../static-helpers/serialization/get-binary-stream-response.js";
|
|
6
|
+
import { expandUrlTemplate } from "../../../../static-helpers/urlTemplate.js";
|
|
7
|
+
import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client";
|
|
8
|
+
export function _downloadAudioSend(context, agentName, conversationId, options = { requestOptions: {} }) {
|
|
9
|
+
const foundryFeatures = "VoiceAgents=V1Preview";
|
|
10
|
+
const path = expandUrlTemplate("/agents/{agent_name}/endpoint/protocols/voice/conversations/{conversation_id}/audio/content{?api%2Dversion}", {
|
|
11
|
+
agent_name: agentName,
|
|
12
|
+
conversation_id: conversationId,
|
|
13
|
+
"api%2Dversion": context.apiVersion ?? "v1",
|
|
14
|
+
}, {
|
|
15
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
16
|
+
});
|
|
17
|
+
return context.path(path).get({
|
|
18
|
+
...operationOptionsToRequestParameters(options),
|
|
19
|
+
headers: {
|
|
20
|
+
"foundry-features": foundryFeatures,
|
|
21
|
+
accept: "audio/wav",
|
|
22
|
+
...options.requestOptions?.headers,
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
export async function _downloadAudioDeserialize(result) {
|
|
27
|
+
const expectedStatuses = ["200"];
|
|
28
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
29
|
+
const error = createRestError(result);
|
|
30
|
+
if (result.body) {
|
|
31
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
32
|
+
}
|
|
33
|
+
throw error;
|
|
34
|
+
}
|
|
35
|
+
return { blobBody: result.blobBody, readableStreamBody: result.readableStreamBody };
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Streams the whole-call merged stereo recording as a WAV (`audio/wav`) byte stream through the service
|
|
39
|
+
* (no SAS URL). This route serves Foundry-managed storage only. For bring-your-own-storage (BYOS)
|
|
40
|
+
* recordings the bytes are not proxied — the caller must download directly from customer storage using the
|
|
41
|
+
* `blob_uri` returned by the metadata route — so this route returns `409 Conflict` for BYOS recordings.
|
|
42
|
+
* While the conversation is `in_progress`, this route returns retriable `409 Conflict` with
|
|
43
|
+
* `error.code = recording_not_ready` and a `Retry-After` header when retry guidance is available. When the
|
|
44
|
+
* conversation is `failed`, it returns terminal `409 Conflict` with `error.code = recording_unavailable`.
|
|
45
|
+
* For a `completed` conversation, content is available subject to the existing BYOS behavior. A conversation
|
|
46
|
+
* without persisted audio (`store = false`) returns `404`.
|
|
47
|
+
*/
|
|
48
|
+
export async function downloadAudio(context, agentName, conversationId, options = { requestOptions: {} }) {
|
|
49
|
+
const streamableMethod = _downloadAudioSend(context, agentName, conversationId, options);
|
|
50
|
+
const result = await getBinaryStreamResponse(streamableMethod);
|
|
51
|
+
return _downloadAudioDeserialize(result);
|
|
52
|
+
}
|
|
53
|
+
export function _getAudioSend(context, agentName, conversationId, options = { requestOptions: {} }) {
|
|
54
|
+
const foundryFeatures = "VoiceAgents=V1Preview";
|
|
55
|
+
const path = expandUrlTemplate("/agents/{agent_name}/endpoint/protocols/voice/conversations/{conversation_id}/audio{?api%2Dversion}", {
|
|
56
|
+
agent_name: agentName,
|
|
57
|
+
conversation_id: conversationId,
|
|
58
|
+
"api%2Dversion": context.apiVersion ?? "v1",
|
|
59
|
+
}, {
|
|
60
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
61
|
+
});
|
|
62
|
+
return context.path(path).get({
|
|
63
|
+
...operationOptionsToRequestParameters(options),
|
|
64
|
+
headers: {
|
|
65
|
+
"foundry-features": foundryFeatures,
|
|
66
|
+
accept: "application/json",
|
|
67
|
+
...options.requestOptions?.headers,
|
|
68
|
+
},
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
export async function _getAudioDeserialize(result) {
|
|
72
|
+
const expectedStatuses = ["200"];
|
|
73
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
74
|
+
const error = createRestError(result);
|
|
75
|
+
if (result.body) {
|
|
76
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
77
|
+
}
|
|
78
|
+
throw error;
|
|
79
|
+
}
|
|
80
|
+
return voiceRecordingDeserializer(result.body);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Returns metadata for the whole-call merged stereo recording (user audio on the left channel, agent audio
|
|
84
|
+
* on the right). The common metadata (format, sample rate, channels, channel layout, duration) is returned
|
|
85
|
+
* for both Foundry-managed and bring-your-own-storage (BYOS) recordings; for BYOS the response additionally
|
|
86
|
+
* includes `blob_uri`, the URI of the recording in the customer's own storage (no SAS) that the customer downloads
|
|
87
|
+
* with their own credentials. The recording is built once from the per-turn segments after persistence
|
|
88
|
+
* finalization succeeds. While the conversation is `in_progress`, this route returns retriable `409 Conflict`
|
|
89
|
+
* with `error.code = recording_not_ready` and a `Retry-After` header when retry guidance is available. When the
|
|
90
|
+
* conversation is `failed`, it returns terminal `409 Conflict` with `error.code = recording_unavailable`.
|
|
91
|
+
* For a `completed` conversation, metadata is available subject to the existing BYOS behavior. Requires the
|
|
92
|
+
* conversation to have persisted audio (`store = true`); otherwise returns `404`.
|
|
93
|
+
*/
|
|
94
|
+
export async function getAudio(context, agentName, conversationId, options = { requestOptions: {} }) {
|
|
95
|
+
const result = await _getAudioSend(context, agentName, conversationId, options);
|
|
96
|
+
return _getAudioDeserialize(result);
|
|
97
|
+
}
|
|
98
|
+
export function _downloadGeneratedAudioItemSend(context, agentName, conversationId, itemId, options = {
|
|
99
|
+
requestOptions: {},
|
|
100
|
+
}) {
|
|
101
|
+
const foundryFeatures = "VoiceAgents=V1Preview";
|
|
102
|
+
const path = expandUrlTemplate("/agents/{agent_name}/endpoint/protocols/voice/conversations/{conversation_id}/items/{item_id}/audio/generated/content{?api%2Dversion}", {
|
|
103
|
+
agent_name: agentName,
|
|
104
|
+
conversation_id: conversationId,
|
|
105
|
+
item_id: itemId,
|
|
106
|
+
"api%2Dversion": context.apiVersion ?? "v1",
|
|
107
|
+
}, {
|
|
108
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
109
|
+
});
|
|
110
|
+
return context.path(path).get({
|
|
111
|
+
...operationOptionsToRequestParameters(options),
|
|
112
|
+
headers: {
|
|
113
|
+
"foundry-features": foundryFeatures,
|
|
114
|
+
accept: "audio/wav",
|
|
115
|
+
...options.requestOptions?.headers,
|
|
116
|
+
},
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
export async function _downloadGeneratedAudioItemDeserialize(result) {
|
|
120
|
+
const expectedStatuses = ["200"];
|
|
121
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
122
|
+
const error = createRestError(result);
|
|
123
|
+
if (result.body) {
|
|
124
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
125
|
+
}
|
|
126
|
+
throw error;
|
|
127
|
+
}
|
|
128
|
+
return { blobBody: result.blobBody, readableStreamBody: result.readableStreamBody };
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Streams a conversation item's generated audio as a WAV (`audio/wav`) byte stream through the service. This
|
|
132
|
+
* subordinate artifact exists only when playback was interrupted and the service rendered more audio than the
|
|
133
|
+
* listener heard, including when the response ends as cancelled. This route serves Foundry-managed storage only.
|
|
134
|
+
* For bring-your-own-storage (BYOS) recordings the bytes are not proxied, so this route returns `409 Conflict`.
|
|
135
|
+
* Returns `404` when the conversation or item was not persisted, or when no generated audio exists beyond the
|
|
136
|
+
* heard segment.
|
|
137
|
+
*/
|
|
138
|
+
export async function downloadGeneratedAudioItem(context, agentName, conversationId, itemId, options = {
|
|
139
|
+
requestOptions: {},
|
|
140
|
+
}) {
|
|
141
|
+
const streamableMethod = _downloadGeneratedAudioItemSend(context, agentName, conversationId, itemId, options);
|
|
142
|
+
const result = await getBinaryStreamResponse(streamableMethod);
|
|
143
|
+
return _downloadGeneratedAudioItemDeserialize(result);
|
|
144
|
+
}
|
|
145
|
+
export function _getGeneratedAudioItemSend(context, agentName, conversationId, itemId, options = {
|
|
146
|
+
requestOptions: {},
|
|
147
|
+
}) {
|
|
148
|
+
const foundryFeatures = "VoiceAgents=V1Preview";
|
|
149
|
+
const path = expandUrlTemplate("/agents/{agent_name}/endpoint/protocols/voice/conversations/{conversation_id}/items/{item_id}/audio/generated{?api%2Dversion}", {
|
|
150
|
+
agent_name: agentName,
|
|
151
|
+
conversation_id: conversationId,
|
|
152
|
+
item_id: itemId,
|
|
153
|
+
"api%2Dversion": context.apiVersion ?? "v1",
|
|
154
|
+
}, {
|
|
155
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
156
|
+
});
|
|
157
|
+
return context.path(path).get({
|
|
158
|
+
...operationOptionsToRequestParameters(options),
|
|
159
|
+
headers: {
|
|
160
|
+
"foundry-features": foundryFeatures,
|
|
161
|
+
accept: "application/json",
|
|
162
|
+
...options.requestOptions?.headers,
|
|
163
|
+
},
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
export async function _getGeneratedAudioItemDeserialize(result) {
|
|
167
|
+
const expectedStatuses = ["200"];
|
|
168
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
169
|
+
const error = createRestError(result);
|
|
170
|
+
if (result.body) {
|
|
171
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
172
|
+
}
|
|
173
|
+
throw error;
|
|
174
|
+
}
|
|
175
|
+
return voiceGeneratedAudioItemDeserializer(result.body);
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Returns metadata for a conversation item's generated audio. This subordinate artifact is separate from the
|
|
179
|
+
* canonical heard-audio segment and exists only when playback was interrupted and the service rendered more audio
|
|
180
|
+
* than the listener heard, including when the response ends as cancelled. Returns `404` when the conversation or
|
|
181
|
+
* item was not persisted, or when no generated audio exists beyond the heard segment.
|
|
182
|
+
*/
|
|
183
|
+
export async function getGeneratedAudioItem(context, agentName, conversationId, itemId, options = {
|
|
184
|
+
requestOptions: {},
|
|
185
|
+
}) {
|
|
186
|
+
const result = await _getGeneratedAudioItemSend(context, agentName, conversationId, itemId, options);
|
|
187
|
+
return _getGeneratedAudioItemDeserialize(result);
|
|
188
|
+
}
|
|
189
|
+
export function _downloadAudioItemSend(context, agentName, conversationId, itemId, options = { requestOptions: {} }) {
|
|
190
|
+
const foundryFeatures = "VoiceAgents=V1Preview";
|
|
191
|
+
const path = expandUrlTemplate("/agents/{agent_name}/endpoint/protocols/voice/conversations/{conversation_id}/items/{item_id}/audio/content{?api%2Dversion}", {
|
|
192
|
+
agent_name: agentName,
|
|
193
|
+
conversation_id: conversationId,
|
|
194
|
+
item_id: itemId,
|
|
195
|
+
"api%2Dversion": context.apiVersion ?? "v1",
|
|
196
|
+
}, {
|
|
197
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
198
|
+
});
|
|
199
|
+
return context.path(path).get({
|
|
200
|
+
...operationOptionsToRequestParameters(options),
|
|
201
|
+
headers: {
|
|
202
|
+
"foundry-features": foundryFeatures,
|
|
203
|
+
accept: "audio/wav",
|
|
204
|
+
...options.requestOptions?.headers,
|
|
205
|
+
},
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
export async function _downloadAudioItemDeserialize(result) {
|
|
209
|
+
const expectedStatuses = ["200"];
|
|
210
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
211
|
+
const error = createRestError(result);
|
|
212
|
+
if (result.body) {
|
|
213
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
214
|
+
}
|
|
215
|
+
throw error;
|
|
216
|
+
}
|
|
217
|
+
return { blobBody: result.blobBody, readableStreamBody: result.readableStreamBody };
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Streams a single conversation item's audio as a WAV (`audio/wav`) byte stream through the service (no SAS
|
|
221
|
+
* URL). This route serves Foundry-managed storage only. For bring-your-own-storage (BYOS) recordings the
|
|
222
|
+
* bytes are not proxied — the caller must download directly from customer storage using the `blob_uri`
|
|
223
|
+
* returned by the item's `/audio` metadata route — so this route returns `409 Conflict` for BYOS recordings.
|
|
224
|
+
* Returns `404` when the conversation, item, or its audio was not persisted (`store = false`).
|
|
225
|
+
*/
|
|
226
|
+
export async function downloadAudioItem(context, agentName, conversationId, itemId, options = { requestOptions: {} }) {
|
|
227
|
+
const streamableMethod = _downloadAudioItemSend(context, agentName, conversationId, itemId, options);
|
|
228
|
+
const result = await getBinaryStreamResponse(streamableMethod);
|
|
229
|
+
return _downloadAudioItemDeserialize(result);
|
|
230
|
+
}
|
|
231
|
+
export function _getAudioItemSend(context, agentName, conversationId, itemId, options = { requestOptions: {} }) {
|
|
232
|
+
const foundryFeatures = "VoiceAgents=V1Preview";
|
|
233
|
+
const path = expandUrlTemplate("/agents/{agent_name}/endpoint/protocols/voice/conversations/{conversation_id}/items/{item_id}/audio{?api%2Dversion}", {
|
|
234
|
+
agent_name: agentName,
|
|
235
|
+
conversation_id: conversationId,
|
|
236
|
+
item_id: itemId,
|
|
237
|
+
"api%2Dversion": context.apiVersion ?? "v1",
|
|
238
|
+
}, {
|
|
239
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
240
|
+
});
|
|
241
|
+
return context.path(path).get({
|
|
242
|
+
...operationOptionsToRequestParameters(options),
|
|
243
|
+
headers: {
|
|
244
|
+
"foundry-features": foundryFeatures,
|
|
245
|
+
accept: "application/json",
|
|
246
|
+
...options.requestOptions?.headers,
|
|
247
|
+
},
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
export async function _getAudioItemDeserialize(result) {
|
|
251
|
+
const expectedStatuses = ["200"];
|
|
252
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
253
|
+
const error = createRestError(result);
|
|
254
|
+
if (result.body) {
|
|
255
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
256
|
+
}
|
|
257
|
+
throw error;
|
|
258
|
+
}
|
|
259
|
+
return voiceAudioItemDeserializer(result.body);
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Returns metadata for a single conversation item's audio segment, including the common playback facts
|
|
263
|
+
* (role, format/codec, sample rate, channels, offset, duration) for both Foundry-managed and
|
|
264
|
+
* bring-your-own-storage (BYOS) recordings; for BYOS the response additionally includes `blob_uri`, the URI
|
|
265
|
+
* of the recording in the customer's own storage (no SAS) that the customer downloads with their own credentials.
|
|
266
|
+
* Requires the conversation to have persisted audio (`store = true`); returns `404` when the conversation,
|
|
267
|
+
* item, or its audio was not persisted.
|
|
268
|
+
*/
|
|
269
|
+
export async function getAudioItem(context, agentName, conversationId, itemId, options = { requestOptions: {} }) {
|
|
270
|
+
const result = await _getAudioItemSend(context, agentName, conversationId, itemId, options);
|
|
271
|
+
return _getAudioItemDeserialize(result);
|
|
272
|
+
}
|
|
273
|
+
export function _getItemSend(context, agentName, conversationId, itemId, options = { requestOptions: {} }) {
|
|
274
|
+
const foundryFeatures = "VoiceAgents=V1Preview";
|
|
275
|
+
const path = expandUrlTemplate("/agents/{agent_name}/endpoint/protocols/voice/conversations/{conversation_id}/items/{item_id}{?api%2Dversion}", {
|
|
276
|
+
agent_name: agentName,
|
|
277
|
+
conversation_id: conversationId,
|
|
278
|
+
item_id: itemId,
|
|
279
|
+
"api%2Dversion": context.apiVersion ?? "v1",
|
|
280
|
+
}, {
|
|
281
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
282
|
+
});
|
|
283
|
+
return context.path(path).get({
|
|
284
|
+
...operationOptionsToRequestParameters(options),
|
|
285
|
+
headers: {
|
|
286
|
+
"foundry-features": foundryFeatures,
|
|
287
|
+
accept: "application/json",
|
|
288
|
+
...options.requestOptions?.headers,
|
|
289
|
+
},
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
export async function _getItemDeserialize(result) {
|
|
293
|
+
const expectedStatuses = ["200"];
|
|
294
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
295
|
+
const error = createRestError(result);
|
|
296
|
+
if (result.body) {
|
|
297
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
298
|
+
}
|
|
299
|
+
throw error;
|
|
300
|
+
}
|
|
301
|
+
return realtimeConversationItemUnionDeserializer(result.body);
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* Retrieves a single item from the specified conversation by its id, including its transcript. An
|
|
305
|
+
* `input_audio`/`output_audio` content part indicates that audio is available for the item; the canonical per-item
|
|
306
|
+
* audio metadata is the `/items/{item_id}/audio` resource, and the bytes are streamed by
|
|
307
|
+
* `/items/{item_id}/audio/content`. Returns `404` when the conversation or item was not persisted
|
|
308
|
+
* (`store = false`).
|
|
309
|
+
*/
|
|
310
|
+
export async function getItem(context, agentName, conversationId, itemId, options = { requestOptions: {} }) {
|
|
311
|
+
const result = await _getItemSend(context, agentName, conversationId, itemId, options);
|
|
312
|
+
return _getItemDeserialize(result);
|
|
313
|
+
}
|
|
314
|
+
export function _listItemsSend(context, agentName, conversationId, options = { requestOptions: {} }) {
|
|
315
|
+
const foundryFeatures = "VoiceAgents=V1Preview";
|
|
316
|
+
const path = expandUrlTemplate("/agents/{agent_name}/endpoint/protocols/voice/conversations/{conversation_id}/items{?limit,order,after,before,api%2Dversion}", {
|
|
317
|
+
agent_name: agentName,
|
|
318
|
+
conversation_id: conversationId,
|
|
319
|
+
limit: options?.limit,
|
|
320
|
+
order: options?.order,
|
|
321
|
+
after: options?.after,
|
|
322
|
+
before: options?.before,
|
|
323
|
+
"api%2Dversion": context.apiVersion ?? "v1",
|
|
324
|
+
}, {
|
|
325
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
326
|
+
});
|
|
327
|
+
return context.path(path).get({
|
|
328
|
+
...operationOptionsToRequestParameters(options),
|
|
329
|
+
headers: {
|
|
330
|
+
"foundry-features": foundryFeatures,
|
|
331
|
+
accept: "application/json",
|
|
332
|
+
...options.requestOptions?.headers,
|
|
333
|
+
},
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
export async function _listItemsDeserialize(result) {
|
|
337
|
+
const expectedStatuses = ["200"];
|
|
338
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
339
|
+
const error = createRestError(result);
|
|
340
|
+
if (result.body) {
|
|
341
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
342
|
+
}
|
|
343
|
+
throw error;
|
|
344
|
+
}
|
|
345
|
+
return _agentsPagedResultRealtimeConversationItemDeserializer(result.body);
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* Returns a paged collection of items — the complete ordered conversation history, including user input,
|
|
349
|
+
* assistant output, and client-created tool outputs (transcripts + tool events). Returns `404` when the
|
|
350
|
+
* conversation was not persisted (`store = false`).
|
|
351
|
+
*/
|
|
352
|
+
export function listItems(context, agentName, conversationId, options = { requestOptions: {} }) {
|
|
353
|
+
return buildPagedAsyncIterator(context, () => _listItemsSend(context, agentName, conversationId, options), _listItemsDeserialize, ["200"], {
|
|
354
|
+
itemName: "data",
|
|
355
|
+
apiVersion: context.apiVersion ?? "v1",
|
|
356
|
+
cursorFieldName: "last_id",
|
|
357
|
+
hasMoreFieldName: "has_more",
|
|
358
|
+
nextPageRequestOptions: {
|
|
359
|
+
...operationOptionsToRequestParameters(options),
|
|
360
|
+
headers: {
|
|
361
|
+
"foundry-features": "VoiceAgents=V1Preview",
|
|
362
|
+
...options.requestOptions?.headers,
|
|
363
|
+
},
|
|
364
|
+
},
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
export function _listResponseItemsSend(context, agentName, conversationId, responseId, options = { requestOptions: {} }) {
|
|
368
|
+
const foundryFeatures = "VoiceAgents=V1Preview";
|
|
369
|
+
const path = expandUrlTemplate("/agents/{agent_name}/endpoint/protocols/voice/conversations/{conversation_id}/responses/{response_id}/items{?limit,order,after,before,api%2Dversion}", {
|
|
370
|
+
agent_name: agentName,
|
|
371
|
+
conversation_id: conversationId,
|
|
372
|
+
response_id: responseId,
|
|
373
|
+
limit: options?.limit,
|
|
374
|
+
order: options?.order,
|
|
375
|
+
after: options?.after,
|
|
376
|
+
before: options?.before,
|
|
377
|
+
"api%2Dversion": context.apiVersion ?? "v1",
|
|
378
|
+
}, {
|
|
379
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
380
|
+
});
|
|
381
|
+
return context.path(path).get({
|
|
382
|
+
...operationOptionsToRequestParameters(options),
|
|
383
|
+
headers: {
|
|
384
|
+
"foundry-features": foundryFeatures,
|
|
385
|
+
accept: "application/json",
|
|
386
|
+
...options.requestOptions?.headers,
|
|
387
|
+
},
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
export async function _listResponseItemsDeserialize(result) {
|
|
391
|
+
const expectedStatuses = ["200"];
|
|
392
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
393
|
+
const error = createRestError(result);
|
|
394
|
+
if (result.body) {
|
|
395
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
396
|
+
}
|
|
397
|
+
throw error;
|
|
398
|
+
}
|
|
399
|
+
return _agentsPagedResultRealtimeConversationItemDeserializer(result.body);
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* Returns a paged collection of the output items produced by a specific response (the response's output
|
|
403
|
+
* projection). For the complete ordered conversation history — including user input and client-created
|
|
404
|
+
* tool outputs — use the conversation items route instead. Returns `404` when the conversation or
|
|
405
|
+
* response was not persisted (`store = false`).
|
|
406
|
+
*/
|
|
407
|
+
export function listResponseItems(context, agentName, conversationId, responseId, options = { requestOptions: {} }) {
|
|
408
|
+
return buildPagedAsyncIterator(context, () => _listResponseItemsSend(context, agentName, conversationId, responseId, options), _listResponseItemsDeserialize, ["200"], {
|
|
409
|
+
itemName: "data",
|
|
410
|
+
apiVersion: context.apiVersion ?? "v1",
|
|
411
|
+
cursorFieldName: "last_id",
|
|
412
|
+
hasMoreFieldName: "has_more",
|
|
413
|
+
nextPageRequestOptions: {
|
|
414
|
+
...operationOptionsToRequestParameters(options),
|
|
415
|
+
headers: {
|
|
416
|
+
"foundry-features": "VoiceAgents=V1Preview",
|
|
417
|
+
...options.requestOptions?.headers,
|
|
418
|
+
},
|
|
419
|
+
},
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
export function _getResponseSend(context, agentName, conversationId, responseId, options = { requestOptions: {} }) {
|
|
423
|
+
const foundryFeatures = "VoiceAgents=V1Preview";
|
|
424
|
+
const path = expandUrlTemplate("/agents/{agent_name}/endpoint/protocols/voice/conversations/{conversation_id}/responses/{response_id}{?api%2Dversion}", {
|
|
425
|
+
agent_name: agentName,
|
|
426
|
+
conversation_id: conversationId,
|
|
427
|
+
response_id: responseId,
|
|
428
|
+
"api%2Dversion": context.apiVersion ?? "v1",
|
|
429
|
+
}, {
|
|
430
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
431
|
+
});
|
|
432
|
+
return context.path(path).get({
|
|
433
|
+
...operationOptionsToRequestParameters(options),
|
|
434
|
+
headers: {
|
|
435
|
+
"foundry-features": foundryFeatures,
|
|
436
|
+
accept: "application/json",
|
|
437
|
+
...options.requestOptions?.headers,
|
|
438
|
+
},
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
export async function _getResponseDeserialize(result) {
|
|
442
|
+
const expectedStatuses = ["200"];
|
|
443
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
444
|
+
const error = createRestError(result);
|
|
445
|
+
if (result.body) {
|
|
446
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
447
|
+
}
|
|
448
|
+
throw error;
|
|
449
|
+
}
|
|
450
|
+
return voiceResponseDeserializer(result.body);
|
|
451
|
+
}
|
|
452
|
+
/**
|
|
453
|
+
* Retrieves a single response from the specified conversation by its id, including its `output` items,
|
|
454
|
+
* `usage`, and status. Returns `404` when the conversation or response was not persisted (`store = false`).
|
|
455
|
+
*/
|
|
456
|
+
export async function getResponse(context, agentName, conversationId, responseId, options = { requestOptions: {} }) {
|
|
457
|
+
const result = await _getResponseSend(context, agentName, conversationId, responseId, options);
|
|
458
|
+
return _getResponseDeserialize(result);
|
|
459
|
+
}
|
|
460
|
+
export function _listResponsesSend(context, agentName, conversationId, options = { requestOptions: {} }) {
|
|
461
|
+
const foundryFeatures = "VoiceAgents=V1Preview";
|
|
462
|
+
const path = expandUrlTemplate("/agents/{agent_name}/endpoint/protocols/voice/conversations/{conversation_id}/responses{?limit,order,after,before,api%2Dversion}", {
|
|
463
|
+
agent_name: agentName,
|
|
464
|
+
conversation_id: conversationId,
|
|
465
|
+
limit: options?.limit,
|
|
466
|
+
order: options?.order,
|
|
467
|
+
after: options?.after,
|
|
468
|
+
before: options?.before,
|
|
469
|
+
"api%2Dversion": context.apiVersion ?? "v1",
|
|
470
|
+
}, {
|
|
471
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
472
|
+
});
|
|
473
|
+
return context.path(path).get({
|
|
474
|
+
...operationOptionsToRequestParameters(options),
|
|
475
|
+
headers: {
|
|
476
|
+
"foundry-features": foundryFeatures,
|
|
477
|
+
accept: "application/json",
|
|
478
|
+
...options.requestOptions?.headers,
|
|
479
|
+
},
|
|
480
|
+
});
|
|
481
|
+
}
|
|
482
|
+
export async function _listResponsesDeserialize(result) {
|
|
483
|
+
const expectedStatuses = ["200"];
|
|
484
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
485
|
+
const error = createRestError(result);
|
|
486
|
+
if (result.body) {
|
|
487
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
488
|
+
}
|
|
489
|
+
throw error;
|
|
490
|
+
}
|
|
491
|
+
return _agentsPagedResultVoiceResponseDeserializer(result.body);
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* Returns a paged collection of the responses (model inference turns) recorded for the specified
|
|
495
|
+
* conversation. The per-response `output` projection may be omitted here; use the response-items route
|
|
496
|
+
* for the canonical paged output. Returns `404` when the conversation was not persisted (`store = false`).
|
|
497
|
+
*/
|
|
498
|
+
export function listResponses(context, agentName, conversationId, options = { requestOptions: {} }) {
|
|
499
|
+
return buildPagedAsyncIterator(context, () => _listResponsesSend(context, agentName, conversationId, options), _listResponsesDeserialize, ["200"], {
|
|
500
|
+
itemName: "data",
|
|
501
|
+
apiVersion: context.apiVersion ?? "v1",
|
|
502
|
+
cursorFieldName: "last_id",
|
|
503
|
+
hasMoreFieldName: "has_more",
|
|
504
|
+
nextPageRequestOptions: {
|
|
505
|
+
...operationOptionsToRequestParameters(options),
|
|
506
|
+
headers: {
|
|
507
|
+
"foundry-features": "VoiceAgents=V1Preview",
|
|
508
|
+
...options.requestOptions?.headers,
|
|
509
|
+
},
|
|
510
|
+
},
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
export function _$deleteSend(context, agentName, conversationId, options = { requestOptions: {} }) {
|
|
514
|
+
const foundryFeatures = "VoiceAgents=V1Preview";
|
|
515
|
+
const path = expandUrlTemplate("/agents/{agent_name}/endpoint/protocols/voice/conversations/{conversation_id}{?api%2Dversion}", {
|
|
516
|
+
agent_name: agentName,
|
|
517
|
+
conversation_id: conversationId,
|
|
518
|
+
"api%2Dversion": context.apiVersion ?? "v1",
|
|
519
|
+
}, {
|
|
520
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
521
|
+
});
|
|
522
|
+
return context.path(path).delete({
|
|
523
|
+
...operationOptionsToRequestParameters(options),
|
|
524
|
+
headers: { "foundry-features": foundryFeatures, ...options.requestOptions?.headers },
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
export async function _$deleteDeserialize(result) {
|
|
528
|
+
const expectedStatuses = ["204"];
|
|
529
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
530
|
+
const error = createRestError(result);
|
|
531
|
+
if (result.body) {
|
|
532
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
533
|
+
}
|
|
534
|
+
throw error;
|
|
535
|
+
}
|
|
536
|
+
return;
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* Deletes a conversation and all of its stored data — responses, items, and any audio (cascade). This is
|
|
540
|
+
* the customer's explicit data-deletion control for voice conversations.
|
|
541
|
+
*/
|
|
542
|
+
export async function $delete(context, agentName, conversationId, options = { requestOptions: {} }) {
|
|
543
|
+
const result = await _$deleteSend(context, agentName, conversationId, options);
|
|
544
|
+
return _$deleteDeserialize(result);
|
|
545
|
+
}
|
|
546
|
+
export function _getSend(context, agentName, conversationId, options = { requestOptions: {} }) {
|
|
547
|
+
const foundryFeatures = "VoiceAgents=V1Preview";
|
|
548
|
+
const path = expandUrlTemplate("/agents/{agent_name}/endpoint/protocols/voice/conversations/{conversation_id}{?api%2Dversion}", {
|
|
549
|
+
agent_name: agentName,
|
|
550
|
+
conversation_id: conversationId,
|
|
551
|
+
"api%2Dversion": context.apiVersion ?? "v1",
|
|
552
|
+
}, {
|
|
553
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
554
|
+
});
|
|
555
|
+
return context.path(path).get({
|
|
556
|
+
...operationOptionsToRequestParameters(options),
|
|
557
|
+
headers: {
|
|
558
|
+
"foundry-features": foundryFeatures,
|
|
559
|
+
accept: "application/json",
|
|
560
|
+
...options.requestOptions?.headers,
|
|
561
|
+
},
|
|
562
|
+
});
|
|
563
|
+
}
|
|
564
|
+
export async function _getDeserialize(result) {
|
|
565
|
+
const expectedStatuses = ["200"];
|
|
566
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
567
|
+
const error = createRestError(result);
|
|
568
|
+
if (result.body) {
|
|
569
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
570
|
+
}
|
|
571
|
+
throw error;
|
|
572
|
+
}
|
|
573
|
+
return voiceConversationDeserializer(result.body);
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* Retrieves a single conversation recorded for the specified voice agent endpoint by its id.
|
|
577
|
+
* Returns `404` when the conversation was not persisted (`store = false`) or does not exist.
|
|
578
|
+
*/
|
|
579
|
+
export async function get(context, agentName, conversationId, options = { requestOptions: {} }) {
|
|
580
|
+
const result = await _getSend(context, agentName, conversationId, options);
|
|
581
|
+
return _getDeserialize(result);
|
|
582
|
+
}
|
|
583
|
+
export function _listSend(context, agentName, options = { requestOptions: {} }) {
|
|
584
|
+
const foundryFeatures = "VoiceAgents=V1Preview";
|
|
585
|
+
const path = expandUrlTemplate("/agents/{agent_name}/endpoint/protocols/voice/conversations{?limit,order,after,before,api%2Dversion}", {
|
|
586
|
+
agent_name: agentName,
|
|
587
|
+
limit: options?.limit,
|
|
588
|
+
order: options?.order,
|
|
589
|
+
after: options?.after,
|
|
590
|
+
before: options?.before,
|
|
591
|
+
"api%2Dversion": context.apiVersion ?? "v1",
|
|
592
|
+
}, {
|
|
593
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
594
|
+
});
|
|
595
|
+
return context.path(path).get({
|
|
596
|
+
...operationOptionsToRequestParameters(options),
|
|
597
|
+
headers: {
|
|
598
|
+
"foundry-features": foundryFeatures,
|
|
599
|
+
accept: "application/json",
|
|
600
|
+
...options.requestOptions?.headers,
|
|
601
|
+
},
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
export async function _listDeserialize(result) {
|
|
605
|
+
const expectedStatuses = ["200"];
|
|
606
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
607
|
+
const error = createRestError(result);
|
|
608
|
+
if (result.body) {
|
|
609
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
610
|
+
}
|
|
611
|
+
throw error;
|
|
612
|
+
}
|
|
613
|
+
return _agentsPagedResultVoiceConversationDeserializer(result.body);
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
* Returns the conversations persisted for the specified voice agent endpoint.
|
|
617
|
+
* Conversations are present when the session's effective `store` setting is `true`, whether inherited from the
|
|
618
|
+
* agent definition or enabled by the WebSocket session override.
|
|
619
|
+
*/
|
|
620
|
+
export function list(context, agentName, options = { requestOptions: {} }) {
|
|
621
|
+
return buildPagedAsyncIterator(context, () => _listSend(context, agentName, options), _listDeserialize, ["200"], {
|
|
622
|
+
itemName: "data",
|
|
623
|
+
apiVersion: context.apiVersion ?? "v1",
|
|
624
|
+
cursorFieldName: "last_id",
|
|
625
|
+
hasMoreFieldName: "has_more",
|
|
626
|
+
nextPageRequestOptions: {
|
|
627
|
+
...operationOptionsToRequestParameters(options),
|
|
628
|
+
headers: {
|
|
629
|
+
"foundry-features": "VoiceAgents=V1Preview",
|
|
630
|
+
...options.requestOptions?.headers,
|
|
631
|
+
},
|
|
632
|
+
},
|
|
633
|
+
});
|
|
634
|
+
}
|
|
635
|
+
//# sourceMappingURL=operations.js.map
|