@azure/ai-projects 2.6.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 +62 -1
- 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 +1 -1
- package/dist/browser/api/agents/index.d.ts.map +1 -1
- package/dist/browser/api/agents/index.js.map +1 -1
- package/dist/browser/api/agents/options.d.ts +91 -1
- 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/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/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/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 +6 -1
- package/dist/browser/classic/beta/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/index.js +4 -1
- package/dist/browser/classic/beta/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 +15 -4
- 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 +2 -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 +4198 -28
- package/dist/browser/models/models.d.ts.map +1 -1
- package/dist/browser/models/models.js +4881 -22
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/package.json +1 -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/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 +1 -1
- package/dist/commonjs/api/agents/index.d.ts.map +1 -1
- package/dist/commonjs/api/agents/index.js.map +1 -1
- package/dist/commonjs/api/agents/options.d.ts +91 -1
- 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/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/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/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 +6 -1
- package/dist/commonjs/classic/beta/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/index.js +5 -2
- package/dist/commonjs/classic/beta/index.js.map +2 -2
- 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 +15 -4
- 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 +2 -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 +4198 -28
- package/dist/commonjs/models/models.d.ts.map +1 -1
- package/dist/commonjs/models/models.js +5809 -32
- package/dist/commonjs/models/models.js.map +2 -2
- package/dist/commonjs/package.json +1 -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/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 +1 -1
- package/dist/esm/api/agents/index.d.ts.map +1 -1
- package/dist/esm/api/agents/index.js.map +1 -1
- package/dist/esm/api/agents/options.d.ts +91 -1
- 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/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/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/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 +6 -1
- package/dist/esm/classic/beta/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/index.js +4 -1
- package/dist/esm/classic/beta/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 +15 -4
- 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 +2 -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 +4198 -28
- package/dist/esm/models/models.d.ts.map +1 -1
- package/dist/esm/models/models.js +4881 -22
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/package.json +1 -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/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 +1 -1
- package/dist/react-native/api/agents/index.d.ts.map +1 -1
- package/dist/react-native/api/agents/index.js.map +1 -1
- package/dist/react-native/api/agents/options.d.ts +91 -1
- 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/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/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/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 +6 -1
- package/dist/react-native/classic/beta/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/index.js +4 -1
- package/dist/react-native/classic/beta/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 +15 -4
- 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 +2 -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 +4198 -28
- package/dist/react-native/models/models.d.ts.map +1 -1
- package/dist/react-native/models/models.js +4881 -22
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/package.json +1 -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/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 +8 -6
|
@@ -0,0 +1,683 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var operations_exports = {};
|
|
19
|
+
__export(operations_exports, {
|
|
20
|
+
_cancelCallJobDeserialize: () => _cancelCallJobDeserialize,
|
|
21
|
+
_cancelCallJobSend: () => _cancelCallJobSend,
|
|
22
|
+
_createBindingDeserialize: () => _createBindingDeserialize,
|
|
23
|
+
_createBindingSend: () => _createBindingSend,
|
|
24
|
+
_createCallJobDeserialize: () => _createCallJobDeserialize,
|
|
25
|
+
_createCallJobSend: () => _createCallJobSend,
|
|
26
|
+
_deleteBindingDeserialize: () => _deleteBindingDeserialize,
|
|
27
|
+
_deleteBindingSend: () => _deleteBindingSend,
|
|
28
|
+
_endCallDeserialize: () => _endCallDeserialize,
|
|
29
|
+
_endCallSend: () => _endCallSend,
|
|
30
|
+
_getBindingDeserialize: () => _getBindingDeserialize,
|
|
31
|
+
_getBindingSend: () => _getBindingSend,
|
|
32
|
+
_getCallDeserialize: () => _getCallDeserialize,
|
|
33
|
+
_getCallJobDeserialize: () => _getCallJobDeserialize,
|
|
34
|
+
_getCallJobSend: () => _getCallJobSend,
|
|
35
|
+
_getCallSend: () => _getCallSend,
|
|
36
|
+
_getTransferTargetsDeserialize: () => _getTransferTargetsDeserialize,
|
|
37
|
+
_getTransferTargetsSend: () => _getTransferTargetsSend,
|
|
38
|
+
_listBindingsDeserialize: () => _listBindingsDeserialize,
|
|
39
|
+
_listBindingsSend: () => _listBindingsSend,
|
|
40
|
+
_listCallsDeserialize: () => _listCallsDeserialize,
|
|
41
|
+
_listCallsSend: () => _listCallsSend,
|
|
42
|
+
_replaceTransferTargetsDeserialize: () => _replaceTransferTargetsDeserialize,
|
|
43
|
+
_replaceTransferTargetsSend: () => _replaceTransferTargetsSend,
|
|
44
|
+
_transferCallDeserialize: () => _transferCallDeserialize,
|
|
45
|
+
_transferCallSend: () => _transferCallSend,
|
|
46
|
+
_updateBindingDeserialize: () => _updateBindingDeserialize,
|
|
47
|
+
_updateBindingSend: () => _updateBindingSend,
|
|
48
|
+
cancelCallJob: () => cancelCallJob,
|
|
49
|
+
createBinding: () => createBinding,
|
|
50
|
+
createCallJob: () => createCallJob,
|
|
51
|
+
deleteBinding: () => deleteBinding,
|
|
52
|
+
endCall: () => endCall,
|
|
53
|
+
getBinding: () => getBinding,
|
|
54
|
+
getCall: () => getCall,
|
|
55
|
+
getCallJob: () => getCallJob,
|
|
56
|
+
getTransferTargets: () => getTransferTargets,
|
|
57
|
+
listBindings: () => listBindings,
|
|
58
|
+
listCalls: () => listCalls,
|
|
59
|
+
replaceTransferTargets: () => replaceTransferTargets,
|
|
60
|
+
transferCall: () => transferCall,
|
|
61
|
+
updateBinding: () => updateBinding
|
|
62
|
+
});
|
|
63
|
+
module.exports = __toCommonJS(operations_exports);
|
|
64
|
+
var import_models = require("../../../../models/models.js");
|
|
65
|
+
var import_urlTemplate = require("../../../../static-helpers/urlTemplate.js");
|
|
66
|
+
var import_core_client = require("@azure-rest/core-client");
|
|
67
|
+
var import_pagingHelpers = require("../../../../static-helpers/pagingHelpers.js");
|
|
68
|
+
function _cancelCallJobSend(context, agentName, callJobId, ifMatch, options = { requestOptions: {} }) {
|
|
69
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
70
|
+
"/agents/{agent_name}/telephony/call_jobs/{call_job_id}:cancel{?api%2Dversion}",
|
|
71
|
+
{
|
|
72
|
+
agent_name: agentName,
|
|
73
|
+
call_job_id: callJobId,
|
|
74
|
+
"api%2Dversion": context.apiVersion ?? "v1"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
return context.path(path).post({
|
|
81
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
82
|
+
headers: {
|
|
83
|
+
...options?.foundryFeatures !== void 0 ? { "foundry-features": options?.foundryFeatures } : {},
|
|
84
|
+
"if-match": ifMatch,
|
|
85
|
+
accept: "application/json",
|
|
86
|
+
...options.requestOptions?.headers
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
async function _cancelCallJobDeserialize(result) {
|
|
91
|
+
const expectedStatuses = ["200", "202"];
|
|
92
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
93
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
94
|
+
if (result.body) {
|
|
95
|
+
error.details = (0, import_models.apiErrorResponseDeserializer)(result.body);
|
|
96
|
+
}
|
|
97
|
+
throw error;
|
|
98
|
+
}
|
|
99
|
+
return (0, import_models.telephonyCallJobDeserializer)(result.body);
|
|
100
|
+
}
|
|
101
|
+
async function cancelCallJob(context, agentName, callJobId, ifMatch, options = { requestOptions: {} }) {
|
|
102
|
+
const result = await _cancelCallJobSend(context, agentName, callJobId, ifMatch, options);
|
|
103
|
+
return _cancelCallJobDeserialize(result);
|
|
104
|
+
}
|
|
105
|
+
function _getCallJobSend(context, agentName, callJobId, options = { requestOptions: {} }) {
|
|
106
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
107
|
+
"/agents/{agent_name}/telephony/call_jobs/{call_job_id}{?api%2Dversion}",
|
|
108
|
+
{
|
|
109
|
+
agent_name: agentName,
|
|
110
|
+
call_job_id: callJobId,
|
|
111
|
+
"api%2Dversion": context.apiVersion ?? "v1"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
115
|
+
}
|
|
116
|
+
);
|
|
117
|
+
return context.path(path).get({
|
|
118
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
119
|
+
headers: {
|
|
120
|
+
...options?.foundryFeatures !== void 0 ? { "foundry-features": options?.foundryFeatures } : {},
|
|
121
|
+
accept: "application/json",
|
|
122
|
+
...options.requestOptions?.headers
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
async function _getCallJobDeserialize(result) {
|
|
127
|
+
const expectedStatuses = ["200"];
|
|
128
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
129
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
130
|
+
if (result.body) {
|
|
131
|
+
error.details = (0, import_models.apiErrorResponseDeserializer)(result.body);
|
|
132
|
+
}
|
|
133
|
+
throw error;
|
|
134
|
+
}
|
|
135
|
+
return (0, import_models.telephonyCallJobDeserializer)(result.body);
|
|
136
|
+
}
|
|
137
|
+
async function getCallJob(context, agentName, callJobId, options = { requestOptions: {} }) {
|
|
138
|
+
const result = await _getCallJobSend(context, agentName, callJobId, options);
|
|
139
|
+
return _getCallJobDeserialize(result);
|
|
140
|
+
}
|
|
141
|
+
function _createCallJobSend(context, agentName, idempotencyKey, body, options = { requestOptions: {} }) {
|
|
142
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
143
|
+
"/agents/{agent_name}/telephony/call_jobs{?api%2Dversion}",
|
|
144
|
+
{
|
|
145
|
+
agent_name: agentName,
|
|
146
|
+
"api%2Dversion": context.apiVersion ?? "v1"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
150
|
+
}
|
|
151
|
+
);
|
|
152
|
+
return context.path(path).post({
|
|
153
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
154
|
+
contentType: "application/json",
|
|
155
|
+
headers: {
|
|
156
|
+
...options?.foundryFeatures !== void 0 ? { "foundry-features": options?.foundryFeatures } : {},
|
|
157
|
+
"idempotency-key": idempotencyKey,
|
|
158
|
+
accept: "application/json",
|
|
159
|
+
...options.requestOptions?.headers
|
|
160
|
+
},
|
|
161
|
+
body: (0, import_models.createTelephonyCallJobRequestSerializer)(body)
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
async function _createCallJobDeserialize(result) {
|
|
165
|
+
const expectedStatuses = ["202"];
|
|
166
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
167
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
168
|
+
if (result.body) {
|
|
169
|
+
error.details = (0, import_models.apiErrorResponseDeserializer)(result.body);
|
|
170
|
+
}
|
|
171
|
+
throw error;
|
|
172
|
+
}
|
|
173
|
+
return (0, import_models.telephonyCallJobDeserializer)(result.body);
|
|
174
|
+
}
|
|
175
|
+
async function createCallJob(context, agentName, idempotencyKey, body, options = { requestOptions: {} }) {
|
|
176
|
+
const result = await _createCallJobSend(context, agentName, idempotencyKey, body, options);
|
|
177
|
+
return _createCallJobDeserialize(result);
|
|
178
|
+
}
|
|
179
|
+
function _replaceTransferTargetsSend(context, agentName, ifMatch, transferTargets, options = { requestOptions: {} }) {
|
|
180
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
181
|
+
"/agents/{agent_name}/telephony/transfer_targets{?api%2Dversion}",
|
|
182
|
+
{
|
|
183
|
+
agent_name: agentName,
|
|
184
|
+
"api%2Dversion": context.apiVersion ?? "v1"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
188
|
+
}
|
|
189
|
+
);
|
|
190
|
+
return context.path(path).put({
|
|
191
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
192
|
+
contentType: "application/json",
|
|
193
|
+
headers: {
|
|
194
|
+
...options?.foundryFeatures !== void 0 ? { "foundry-features": options?.foundryFeatures } : {},
|
|
195
|
+
"if-match": ifMatch,
|
|
196
|
+
accept: "application/json",
|
|
197
|
+
...options.requestOptions?.headers
|
|
198
|
+
},
|
|
199
|
+
body: { transfer_targets: (0, import_models.telephonyTransferTargetArraySerializer)(transferTargets) }
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
async function _replaceTransferTargetsDeserialize(result) {
|
|
203
|
+
const expectedStatuses = ["200"];
|
|
204
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
205
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
206
|
+
if (result.body) {
|
|
207
|
+
error.details = (0, import_models.apiErrorResponseDeserializer)(result.body);
|
|
208
|
+
}
|
|
209
|
+
throw error;
|
|
210
|
+
}
|
|
211
|
+
return (0, import_models.telephonyTransferTargetsDeserializer)(result.body);
|
|
212
|
+
}
|
|
213
|
+
async function replaceTransferTargets(context, agentName, ifMatch, transferTargets, options = { requestOptions: {} }) {
|
|
214
|
+
const result = await _replaceTransferTargetsSend(
|
|
215
|
+
context,
|
|
216
|
+
agentName,
|
|
217
|
+
ifMatch,
|
|
218
|
+
transferTargets,
|
|
219
|
+
options
|
|
220
|
+
);
|
|
221
|
+
return _replaceTransferTargetsDeserialize(result);
|
|
222
|
+
}
|
|
223
|
+
function _getTransferTargetsSend(context, agentName, options = { requestOptions: {} }) {
|
|
224
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
225
|
+
"/agents/{agent_name}/telephony/transfer_targets{?api%2Dversion}",
|
|
226
|
+
{
|
|
227
|
+
agent_name: agentName,
|
|
228
|
+
"api%2Dversion": context.apiVersion ?? "v1"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
232
|
+
}
|
|
233
|
+
);
|
|
234
|
+
return context.path(path).get({
|
|
235
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
236
|
+
headers: {
|
|
237
|
+
...options?.foundryFeatures !== void 0 ? { "foundry-features": options?.foundryFeatures } : {},
|
|
238
|
+
accept: "application/json",
|
|
239
|
+
...options.requestOptions?.headers
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
async function _getTransferTargetsDeserialize(result) {
|
|
244
|
+
const expectedStatuses = ["200"];
|
|
245
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
246
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
247
|
+
if (result.body) {
|
|
248
|
+
error.details = (0, import_models.apiErrorResponseDeserializer)(result.body);
|
|
249
|
+
}
|
|
250
|
+
throw error;
|
|
251
|
+
}
|
|
252
|
+
return (0, import_models.telephonyTransferTargetsDeserializer)(result.body);
|
|
253
|
+
}
|
|
254
|
+
async function getTransferTargets(context, agentName, options = { requestOptions: {} }) {
|
|
255
|
+
const result = await _getTransferTargetsSend(context, agentName, options);
|
|
256
|
+
return _getTransferTargetsDeserialize(result);
|
|
257
|
+
}
|
|
258
|
+
function _endCallSend(context, agentName, callId, options = { requestOptions: {} }) {
|
|
259
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
260
|
+
"/agents/{agent_name}/telephony/calls/{call_id}:end{?api%2Dversion}",
|
|
261
|
+
{
|
|
262
|
+
agent_name: agentName,
|
|
263
|
+
call_id: callId,
|
|
264
|
+
"api%2Dversion": context.apiVersion ?? "v1"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
268
|
+
}
|
|
269
|
+
);
|
|
270
|
+
return context.path(path).post({
|
|
271
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
272
|
+
headers: {
|
|
273
|
+
...options?.foundryFeatures !== void 0 ? { "foundry-features": options?.foundryFeatures } : {},
|
|
274
|
+
accept: "application/json",
|
|
275
|
+
...options.requestOptions?.headers
|
|
276
|
+
}
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
async function _endCallDeserialize(result) {
|
|
280
|
+
const expectedStatuses = ["200"];
|
|
281
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
282
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
283
|
+
if (result.body) {
|
|
284
|
+
error.details = (0, import_models.apiErrorResponseDeserializer)(result.body);
|
|
285
|
+
}
|
|
286
|
+
throw error;
|
|
287
|
+
}
|
|
288
|
+
return (0, import_models.telephonyCallRecordDeserializer)(result.body);
|
|
289
|
+
}
|
|
290
|
+
async function endCall(context, agentName, callId, options = { requestOptions: {} }) {
|
|
291
|
+
const result = await _endCallSend(context, agentName, callId, options);
|
|
292
|
+
return _endCallDeserialize(result);
|
|
293
|
+
}
|
|
294
|
+
function _transferCallSend(context, agentName, callId, target, options = { requestOptions: {} }) {
|
|
295
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
296
|
+
"/agents/{agent_name}/telephony/calls/{call_id}:transfer{?api%2Dversion}",
|
|
297
|
+
{
|
|
298
|
+
agent_name: agentName,
|
|
299
|
+
call_id: callId,
|
|
300
|
+
"api%2Dversion": context.apiVersion ?? "v1"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
304
|
+
}
|
|
305
|
+
);
|
|
306
|
+
return context.path(path).post({
|
|
307
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
308
|
+
contentType: "application/json",
|
|
309
|
+
headers: {
|
|
310
|
+
...options?.foundryFeatures !== void 0 ? { "foundry-features": options?.foundryFeatures } : {},
|
|
311
|
+
accept: "application/json",
|
|
312
|
+
...options.requestOptions?.headers
|
|
313
|
+
},
|
|
314
|
+
body: { target }
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
async function _transferCallDeserialize(result) {
|
|
318
|
+
const expectedStatuses = ["200"];
|
|
319
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
320
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
321
|
+
if (result.body) {
|
|
322
|
+
error.details = (0, import_models.apiErrorResponseDeserializer)(result.body);
|
|
323
|
+
}
|
|
324
|
+
throw error;
|
|
325
|
+
}
|
|
326
|
+
return (0, import_models.telephonyCallRecordDeserializer)(result.body);
|
|
327
|
+
}
|
|
328
|
+
async function transferCall(context, agentName, callId, target, options = { requestOptions: {} }) {
|
|
329
|
+
const result = await _transferCallSend(context, agentName, callId, target, options);
|
|
330
|
+
return _transferCallDeserialize(result);
|
|
331
|
+
}
|
|
332
|
+
function _getCallSend(context, agentName, callId, options = { requestOptions: {} }) {
|
|
333
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
334
|
+
"/agents/{agent_name}/telephony/calls/{call_id}{?api%2Dversion}",
|
|
335
|
+
{
|
|
336
|
+
agent_name: agentName,
|
|
337
|
+
call_id: callId,
|
|
338
|
+
"api%2Dversion": context.apiVersion ?? "v1"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
342
|
+
}
|
|
343
|
+
);
|
|
344
|
+
return context.path(path).get({
|
|
345
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
346
|
+
headers: {
|
|
347
|
+
...options?.foundryFeatures !== void 0 ? { "foundry-features": options?.foundryFeatures } : {},
|
|
348
|
+
accept: "application/json",
|
|
349
|
+
...options.requestOptions?.headers
|
|
350
|
+
}
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
async function _getCallDeserialize(result) {
|
|
354
|
+
const expectedStatuses = ["200"];
|
|
355
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
356
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
357
|
+
if (result.body) {
|
|
358
|
+
error.details = (0, import_models.apiErrorResponseDeserializer)(result.body);
|
|
359
|
+
}
|
|
360
|
+
throw error;
|
|
361
|
+
}
|
|
362
|
+
return (0, import_models.telephonyCallRecordDeserializer)(result.body);
|
|
363
|
+
}
|
|
364
|
+
async function getCall(context, agentName, callId, options = { requestOptions: {} }) {
|
|
365
|
+
const result = await _getCallSend(context, agentName, callId, options);
|
|
366
|
+
return _getCallDeserialize(result);
|
|
367
|
+
}
|
|
368
|
+
function _listCallsSend(context, agentName, options = { requestOptions: {} }) {
|
|
369
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
370
|
+
"/agents/{agent_name}/telephony/calls{?provider,status,started_after,started_before,limit,order,after,before,api%2Dversion}",
|
|
371
|
+
{
|
|
372
|
+
agent_name: agentName,
|
|
373
|
+
provider: options?.provider,
|
|
374
|
+
status: options?.status,
|
|
375
|
+
started_after: !options?.startedAfterTime ? options?.startedAfterTime : options?.startedAfterTime.getTime() / 1e3,
|
|
376
|
+
started_before: !options?.startedBeforeTime ? options?.startedBeforeTime : options?.startedBeforeTime.getTime() / 1e3,
|
|
377
|
+
limit: options?.limit,
|
|
378
|
+
order: options?.order,
|
|
379
|
+
after: options?.after,
|
|
380
|
+
before: options?.before,
|
|
381
|
+
"api%2Dversion": context.apiVersion ?? "v1"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
385
|
+
}
|
|
386
|
+
);
|
|
387
|
+
return context.path(path).get({
|
|
388
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
389
|
+
headers: {
|
|
390
|
+
...options?.foundryFeatures !== void 0 ? { "foundry-features": options?.foundryFeatures } : {},
|
|
391
|
+
accept: "application/json",
|
|
392
|
+
...options.requestOptions?.headers
|
|
393
|
+
}
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
async function _listCallsDeserialize(result) {
|
|
397
|
+
const expectedStatuses = ["200"];
|
|
398
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
399
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
400
|
+
if (result.body) {
|
|
401
|
+
error.details = (0, import_models.apiErrorResponseDeserializer)(result.body);
|
|
402
|
+
}
|
|
403
|
+
throw error;
|
|
404
|
+
}
|
|
405
|
+
return (0, import_models._agentsPagedResultTelephonyCallSummaryDeserializer)(result.body);
|
|
406
|
+
}
|
|
407
|
+
function listCalls(context, agentName, options = { requestOptions: {} }) {
|
|
408
|
+
return (0, import_pagingHelpers.buildPagedAsyncIterator)(
|
|
409
|
+
context,
|
|
410
|
+
() => _listCallsSend(context, agentName, options),
|
|
411
|
+
_listCallsDeserialize,
|
|
412
|
+
["200"],
|
|
413
|
+
{
|
|
414
|
+
itemName: "data",
|
|
415
|
+
apiVersion: context.apiVersion ?? "v1",
|
|
416
|
+
cursorFieldName: "last_id",
|
|
417
|
+
hasMoreFieldName: "has_more",
|
|
418
|
+
nextPageRequestOptions: {
|
|
419
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
420
|
+
headers: {
|
|
421
|
+
...options.foundryFeatures !== void 0 ? { "foundry-features": options.foundryFeatures } : {},
|
|
422
|
+
...options.requestOptions?.headers
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
);
|
|
427
|
+
}
|
|
428
|
+
function _deleteBindingSend(context, agentName, bindingId, ifMatch, options = { requestOptions: {} }) {
|
|
429
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
430
|
+
"/agents/{agent_name}/telephony/bindings/{binding_id}{?api%2Dversion}",
|
|
431
|
+
{
|
|
432
|
+
agent_name: agentName,
|
|
433
|
+
binding_id: bindingId,
|
|
434
|
+
"api%2Dversion": context.apiVersion ?? "v1"
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
438
|
+
}
|
|
439
|
+
);
|
|
440
|
+
return context.path(path).delete({
|
|
441
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
442
|
+
headers: {
|
|
443
|
+
...options?.foundryFeatures !== void 0 ? { "foundry-features": options?.foundryFeatures } : {},
|
|
444
|
+
"if-match": ifMatch,
|
|
445
|
+
...options.requestOptions?.headers
|
|
446
|
+
}
|
|
447
|
+
});
|
|
448
|
+
}
|
|
449
|
+
async function _deleteBindingDeserialize(result) {
|
|
450
|
+
const expectedStatuses = ["204"];
|
|
451
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
452
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
453
|
+
if (result.body) {
|
|
454
|
+
error.details = (0, import_models.apiErrorResponseDeserializer)(result.body);
|
|
455
|
+
}
|
|
456
|
+
throw error;
|
|
457
|
+
}
|
|
458
|
+
return;
|
|
459
|
+
}
|
|
460
|
+
async function deleteBinding(context, agentName, bindingId, ifMatch, options = { requestOptions: {} }) {
|
|
461
|
+
const result = await _deleteBindingSend(context, agentName, bindingId, ifMatch, options);
|
|
462
|
+
return _deleteBindingDeserialize(result);
|
|
463
|
+
}
|
|
464
|
+
function _updateBindingSend(context, agentName, bindingId, ifMatch, body, options = { requestOptions: {} }) {
|
|
465
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
466
|
+
"/agents/{agent_name}/telephony/bindings/{binding_id}{?api%2Dversion}",
|
|
467
|
+
{
|
|
468
|
+
agent_name: agentName,
|
|
469
|
+
binding_id: bindingId,
|
|
470
|
+
"api%2Dversion": context.apiVersion ?? "v1"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
474
|
+
}
|
|
475
|
+
);
|
|
476
|
+
return context.path(path).patch({
|
|
477
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
478
|
+
contentType: "application/merge-patch+json",
|
|
479
|
+
headers: {
|
|
480
|
+
...options?.foundryFeatures !== void 0 ? { "foundry-features": options?.foundryFeatures } : {},
|
|
481
|
+
"if-match": ifMatch,
|
|
482
|
+
accept: "application/json",
|
|
483
|
+
...options.requestOptions?.headers
|
|
484
|
+
},
|
|
485
|
+
body: (0, import_models.updateTelephonyBindingRequestSerializer)(body)
|
|
486
|
+
});
|
|
487
|
+
}
|
|
488
|
+
async function _updateBindingDeserialize(result) {
|
|
489
|
+
const expectedStatuses = ["200"];
|
|
490
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
491
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
492
|
+
if (result.body) {
|
|
493
|
+
error.details = (0, import_models.apiErrorResponseDeserializer)(result.body);
|
|
494
|
+
}
|
|
495
|
+
throw error;
|
|
496
|
+
}
|
|
497
|
+
return (0, import_models.telephonyBindingUnionDeserializer)(result.body);
|
|
498
|
+
}
|
|
499
|
+
async function updateBinding(context, agentName, bindingId, ifMatch, body, options = { requestOptions: {} }) {
|
|
500
|
+
const result = await _updateBindingSend(context, agentName, bindingId, ifMatch, body, options);
|
|
501
|
+
return _updateBindingDeserialize(result);
|
|
502
|
+
}
|
|
503
|
+
function _getBindingSend(context, agentName, bindingId, options = { requestOptions: {} }) {
|
|
504
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
505
|
+
"/agents/{agent_name}/telephony/bindings/{binding_id}{?api%2Dversion}",
|
|
506
|
+
{
|
|
507
|
+
agent_name: agentName,
|
|
508
|
+
binding_id: bindingId,
|
|
509
|
+
"api%2Dversion": context.apiVersion ?? "v1"
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
513
|
+
}
|
|
514
|
+
);
|
|
515
|
+
return context.path(path).get({
|
|
516
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
517
|
+
headers: {
|
|
518
|
+
...options?.foundryFeatures !== void 0 ? { "foundry-features": options?.foundryFeatures } : {},
|
|
519
|
+
accept: "application/json",
|
|
520
|
+
...options.requestOptions?.headers
|
|
521
|
+
}
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
async function _getBindingDeserialize(result) {
|
|
525
|
+
const expectedStatuses = ["200"];
|
|
526
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
527
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
528
|
+
if (result.body) {
|
|
529
|
+
error.details = (0, import_models.apiErrorResponseDeserializer)(result.body);
|
|
530
|
+
}
|
|
531
|
+
throw error;
|
|
532
|
+
}
|
|
533
|
+
return (0, import_models.telephonyBindingUnionDeserializer)(result.body);
|
|
534
|
+
}
|
|
535
|
+
async function getBinding(context, agentName, bindingId, options = { requestOptions: {} }) {
|
|
536
|
+
const result = await _getBindingSend(context, agentName, bindingId, options);
|
|
537
|
+
return _getBindingDeserialize(result);
|
|
538
|
+
}
|
|
539
|
+
function _listBindingsSend(context, agentName, options = { requestOptions: {} }) {
|
|
540
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
541
|
+
"/agents/{agent_name}/telephony/bindings{?provider,status,limit,order,after,before,api%2Dversion}",
|
|
542
|
+
{
|
|
543
|
+
agent_name: agentName,
|
|
544
|
+
provider: options?.provider,
|
|
545
|
+
status: options?.status,
|
|
546
|
+
limit: options?.limit,
|
|
547
|
+
order: options?.order,
|
|
548
|
+
after: options?.after,
|
|
549
|
+
before: options?.before,
|
|
550
|
+
"api%2Dversion": context.apiVersion ?? "v1"
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
554
|
+
}
|
|
555
|
+
);
|
|
556
|
+
return context.path(path).get({
|
|
557
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
558
|
+
headers: {
|
|
559
|
+
...options?.foundryFeatures !== void 0 ? { "foundry-features": options?.foundryFeatures } : {},
|
|
560
|
+
accept: "application/json",
|
|
561
|
+
...options.requestOptions?.headers
|
|
562
|
+
}
|
|
563
|
+
});
|
|
564
|
+
}
|
|
565
|
+
async function _listBindingsDeserialize(result) {
|
|
566
|
+
const expectedStatuses = ["200"];
|
|
567
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
568
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
569
|
+
if (result.body) {
|
|
570
|
+
error.details = (0, import_models.apiErrorResponseDeserializer)(result.body);
|
|
571
|
+
}
|
|
572
|
+
throw error;
|
|
573
|
+
}
|
|
574
|
+
return (0, import_models._agentsPagedResultTelephonyBindingListItemDeserializer)(result.body);
|
|
575
|
+
}
|
|
576
|
+
function listBindings(context, agentName, options = { requestOptions: {} }) {
|
|
577
|
+
return (0, import_pagingHelpers.buildPagedAsyncIterator)(
|
|
578
|
+
context,
|
|
579
|
+
() => _listBindingsSend(context, agentName, options),
|
|
580
|
+
_listBindingsDeserialize,
|
|
581
|
+
["200"],
|
|
582
|
+
{
|
|
583
|
+
itemName: "data",
|
|
584
|
+
apiVersion: context.apiVersion ?? "v1",
|
|
585
|
+
cursorFieldName: "last_id",
|
|
586
|
+
hasMoreFieldName: "has_more",
|
|
587
|
+
nextPageRequestOptions: {
|
|
588
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
589
|
+
headers: {
|
|
590
|
+
...options.foundryFeatures !== void 0 ? { "foundry-features": options.foundryFeatures } : {},
|
|
591
|
+
...options.requestOptions?.headers
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
);
|
|
596
|
+
}
|
|
597
|
+
function _createBindingSend(context, agentName, telephonyBinding, options = { requestOptions: {} }) {
|
|
598
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
599
|
+
"/agents/{agent_name}/telephony/bindings{?api%2Dversion}",
|
|
600
|
+
{
|
|
601
|
+
agent_name: agentName,
|
|
602
|
+
"api%2Dversion": context.apiVersion ?? "v1"
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
606
|
+
}
|
|
607
|
+
);
|
|
608
|
+
return context.path(path).post({
|
|
609
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
610
|
+
contentType: "application/json",
|
|
611
|
+
headers: {
|
|
612
|
+
...options?.foundryFeatures !== void 0 ? { "foundry-features": options?.foundryFeatures } : {},
|
|
613
|
+
...options?.repeatabilityRequestId !== void 0 ? { "repeatability-request-id": options?.repeatabilityRequestId } : {},
|
|
614
|
+
...options?.repeatabilityFirstSent !== void 0 ? {
|
|
615
|
+
"repeatability-first-sent": !options?.repeatabilityFirstSent ? options?.repeatabilityFirstSent : options?.repeatabilityFirstSent.toUTCString()
|
|
616
|
+
} : {},
|
|
617
|
+
accept: "application/json",
|
|
618
|
+
...options.requestOptions?.headers
|
|
619
|
+
},
|
|
620
|
+
body: (0, import_models.createTelephonyBindingRequestUnionSerializer)(telephonyBinding)
|
|
621
|
+
});
|
|
622
|
+
}
|
|
623
|
+
async function _createBindingDeserialize(result) {
|
|
624
|
+
const expectedStatuses = ["201"];
|
|
625
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
626
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
627
|
+
if (result.body) {
|
|
628
|
+
error.details = (0, import_models.apiErrorResponseDeserializer)(result.body);
|
|
629
|
+
}
|
|
630
|
+
throw error;
|
|
631
|
+
}
|
|
632
|
+
return (0, import_models.telephonyBindingUnionDeserializer)(result.body);
|
|
633
|
+
}
|
|
634
|
+
async function createBinding(context, agentName, telephonyBinding, options = { requestOptions: {} }) {
|
|
635
|
+
const result = await _createBindingSend(context, agentName, telephonyBinding, options);
|
|
636
|
+
return _createBindingDeserialize(result);
|
|
637
|
+
}
|
|
638
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
639
|
+
0 && (module.exports = {
|
|
640
|
+
_cancelCallJobDeserialize,
|
|
641
|
+
_cancelCallJobSend,
|
|
642
|
+
_createBindingDeserialize,
|
|
643
|
+
_createBindingSend,
|
|
644
|
+
_createCallJobDeserialize,
|
|
645
|
+
_createCallJobSend,
|
|
646
|
+
_deleteBindingDeserialize,
|
|
647
|
+
_deleteBindingSend,
|
|
648
|
+
_endCallDeserialize,
|
|
649
|
+
_endCallSend,
|
|
650
|
+
_getBindingDeserialize,
|
|
651
|
+
_getBindingSend,
|
|
652
|
+
_getCallDeserialize,
|
|
653
|
+
_getCallJobDeserialize,
|
|
654
|
+
_getCallJobSend,
|
|
655
|
+
_getCallSend,
|
|
656
|
+
_getTransferTargetsDeserialize,
|
|
657
|
+
_getTransferTargetsSend,
|
|
658
|
+
_listBindingsDeserialize,
|
|
659
|
+
_listBindingsSend,
|
|
660
|
+
_listCallsDeserialize,
|
|
661
|
+
_listCallsSend,
|
|
662
|
+
_replaceTransferTargetsDeserialize,
|
|
663
|
+
_replaceTransferTargetsSend,
|
|
664
|
+
_transferCallDeserialize,
|
|
665
|
+
_transferCallSend,
|
|
666
|
+
_updateBindingDeserialize,
|
|
667
|
+
_updateBindingSend,
|
|
668
|
+
cancelCallJob,
|
|
669
|
+
createBinding,
|
|
670
|
+
createCallJob,
|
|
671
|
+
deleteBinding,
|
|
672
|
+
endCall,
|
|
673
|
+
getBinding,
|
|
674
|
+
getCall,
|
|
675
|
+
getCallJob,
|
|
676
|
+
getTransferTargets,
|
|
677
|
+
listBindings,
|
|
678
|
+
listCalls,
|
|
679
|
+
replaceTransferTargets,
|
|
680
|
+
transferCall,
|
|
681
|
+
updateBinding
|
|
682
|
+
});
|
|
683
|
+
//# sourceMappingURL=operations.js.map
|