@azure/ai-projects 2.7.1 → 2.9.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 +101 -5
- package/dist/browser/aiProjectClient.d.ts +4 -0
- package/dist/browser/aiProjectClient.d.ts.map +1 -1
- package/dist/browser/aiProjectClient.js +6 -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 +41 -4
- package/dist/browser/api/agents/operations.d.ts.map +1 -1
- package/dist/browser/api/agents/operations.js +322 -21
- package/dist/browser/api/agents/operations.js.map +1 -1
- package/dist/browser/api/agents/options.d.ts +163 -93
- 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/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 +2 -24
- package/dist/browser/api/beta/agents/operations.d.ts.map +1 -1
- package/dist/browser/api/beta/agents/operations.js +3 -185
- package/dist/browser/api/beta/agents/operations.js.map +1 -1
- package/dist/browser/api/beta/agents/options.d.ts +0 -56
- 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/evaluators/index.d.ts +2 -2
- package/dist/browser/api/beta/evaluators/index.d.ts.map +1 -1
- package/dist/browser/api/beta/evaluators/index.js +1 -1
- package/dist/browser/api/beta/evaluators/index.js.map +1 -1
- package/dist/browser/api/beta/evaluators/operations.d.ts +2 -59
- package/dist/browser/api/beta/evaluators/operations.d.ts.map +1 -1
- package/dist/browser/api/beta/evaluators/operations.js +1 -388
- package/dist/browser/api/beta/evaluators/operations.js.map +1 -1
- package/dist/browser/api/beta/evaluators/options.d.ts +0 -84
- package/dist/browser/api/beta/evaluators/options.d.ts.map +1 -1
- package/dist/browser/api/beta/evaluators/options.js.map +1 -1
- package/dist/browser/api/datasets/index.d.ts +2 -2
- package/dist/browser/api/datasets/index.d.ts.map +1 -1
- package/dist/browser/api/datasets/index.js +1 -1
- package/dist/browser/api/datasets/index.js.map +1 -1
- package/dist/browser/api/datasets/operations.d.ts +23 -2
- package/dist/browser/api/datasets/operations.d.ts.map +1 -1
- package/dist/browser/api/datasets/operations.js +193 -1
- package/dist/browser/api/datasets/operations.js.map +1 -1
- package/dist/browser/api/datasets/options.d.ts +52 -0
- package/dist/browser/api/datasets/options.d.ts.map +1 -1
- package/dist/browser/api/datasets/options.js.map +1 -1
- package/dist/browser/api/evaluators/index.d.ts +3 -0
- package/dist/browser/api/evaluators/index.d.ts.map +1 -0
- package/dist/browser/api/evaluators/index.js +4 -0
- package/dist/browser/api/evaluators/index.js.map +1 -0
- package/dist/browser/api/evaluators/operations.d.ts +62 -0
- package/dist/browser/api/evaluators/operations.d.ts.map +1 -0
- package/dist/browser/api/evaluators/operations.js +373 -0
- package/dist/browser/api/evaluators/operations.js.map +1 -0
- package/dist/browser/api/evaluators/options.d.ts +70 -0
- package/dist/browser/api/evaluators/options.d.ts.map +1 -0
- package/dist/browser/api/evaluators/options.js.map +1 -0
- package/dist/browser/classic/agents/index.d.ts +21 -2
- package/dist/browser/classic/agents/index.d.ts.map +1 -1
- package/dist/browser/classic/agents/index.js +10 -1
- package/dist/browser/classic/agents/index.js.map +1 -1
- package/dist/browser/classic/beta/agents/index.d.ts +4 -15
- package/dist/browser/classic/beta/agents/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/agents/index.js +4 -11
- package/dist/browser/classic/beta/agents/index.js.map +1 -1
- package/dist/browser/classic/beta/evaluators/index.d.ts +3 -38
- package/dist/browser/classic/beta/evaluators/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/evaluators/index.js +2 -18
- package/dist/browser/classic/beta/evaluators/index.js.map +1 -1
- package/dist/browser/classic/beta/index.d.ts +2 -4
- package/dist/browser/classic/beta/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/index.js +3 -6
- package/dist/browser/classic/beta/index.js.map +1 -1
- package/dist/browser/classic/beta/voiceAgents/conversations/index.d.ts +2 -1
- package/dist/browser/classic/beta/voiceAgents/conversations/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/voiceAgents/conversations/index.js +5 -4
- package/dist/browser/classic/beta/voiceAgents/conversations/index.js.map +1 -1
- package/dist/browser/classic/beta/voiceAgents/index.d.ts +3 -2
- package/dist/browser/classic/beta/voiceAgents/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/voiceAgents/index.js +5 -5
- package/dist/browser/classic/beta/voiceAgents/index.js.map +1 -1
- package/dist/browser/classic/beta/voiceAgents/telephony/index.d.ts +2 -1
- package/dist/browser/classic/beta/voiceAgents/telephony/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/voiceAgents/telephony/index.js +16 -11
- package/dist/browser/classic/beta/voiceAgents/telephony/index.js.map +1 -1
- package/dist/browser/classic/datasets/index.d.ts +13 -2
- package/dist/browser/classic/datasets/index.d.ts.map +1 -1
- package/dist/browser/classic/datasets/index.js +6 -1
- package/dist/browser/classic/datasets/index.js.map +1 -1
- package/dist/browser/classic/evaluators/index.d.ts +43 -0
- package/dist/browser/classic/evaluators/index.d.ts.map +1 -0
- package/dist/browser/classic/evaluators/index.js +19 -0
- package/dist/browser/classic/evaluators/index.js.map +1 -0
- package/dist/browser/classic/index.d.ts +1 -1
- package/dist/browser/classic/index.d.ts.map +1 -1
- package/dist/browser/classic/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/index.d.ts +10 -17
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +1 -2
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/models/index.d.ts +1 -3
- 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 +1081 -536
- package/dist/browser/models/models.d.ts.map +1 -1
- package/dist/browser/models/models.js +1554 -655
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/package.json +1 -1
- package/dist/browser/realtime/voiceAgentRealtimeClient.d.ts +27 -2
- package/dist/browser/realtime/voiceAgentRealtimeClient.d.ts.map +1 -1
- package/dist/browser/realtime/voiceAgentRealtimeClient.js +97 -17
- package/dist/browser/realtime/voiceAgentRealtimeClient.js.map +1 -1
- package/dist/browser/tracing/configuration.d.ts +3 -5
- package/dist/browser/tracing/configuration.d.ts.map +1 -1
- package/dist/browser/tracing/configuration.js +8 -6
- package/dist/browser/tracing/configuration.js.map +1 -1
- package/dist/browser/tracing/tracingClient.d.ts +1 -1
- package/dist/browser/tracing/tracingClient.d.ts.map +1 -1
- package/dist/browser/tracing/tracingClient.js +2 -2
- package/dist/browser/tracing/tracingClient.js.map +1 -1
- package/dist/browser/tracing/voiceAgentTracing.d.ts +63 -0
- package/dist/browser/tracing/voiceAgentTracing.d.ts.map +1 -0
- package/dist/browser/tracing/voiceAgentTracing.js +740 -0
- package/dist/browser/tracing/voiceAgentTracing.js.map +1 -0
- package/dist/browser/webSocketTransport.d.ts +1 -0
- package/dist/browser/webSocketTransport.d.ts.map +1 -1
- package/dist/browser/webSocketTransport.js +5 -13
- package/dist/browser/webSocketTransport.js.map +1 -1
- package/dist/commonjs/aiProjectClient.d.ts +4 -0
- package/dist/commonjs/aiProjectClient.d.ts.map +1 -1
- package/dist/commonjs/aiProjectClient.js +6 -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 +18 -0
- package/dist/commonjs/api/agents/index.js.map +2 -2
- package/dist/commonjs/api/agents/operations.d.ts +41 -4
- package/dist/commonjs/api/agents/operations.d.ts.map +1 -1
- package/dist/commonjs/api/agents/operations.js +415 -19
- package/dist/commonjs/api/agents/operations.js.map +2 -2
- package/dist/commonjs/api/agents/options.d.ts +163 -93
- 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/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 -12
- package/dist/commonjs/api/beta/agents/index.js.map +2 -2
- package/dist/commonjs/api/beta/agents/operations.d.ts +2 -24
- package/dist/commonjs/api/beta/agents/operations.d.ts.map +1 -1
- package/dist/commonjs/api/beta/agents/operations.js +4 -239
- package/dist/commonjs/api/beta/agents/operations.js.map +2 -2
- package/dist/commonjs/api/beta/agents/options.d.ts +0 -56
- 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/evaluators/index.d.ts +2 -2
- package/dist/commonjs/api/beta/evaluators/index.d.ts.map +1 -1
- package/dist/commonjs/api/beta/evaluators/index.js +2 -24
- package/dist/commonjs/api/beta/evaluators/index.js.map +2 -2
- package/dist/commonjs/api/beta/evaluators/operations.d.ts +2 -59
- package/dist/commonjs/api/beta/evaluators/operations.d.ts.map +1 -1
- package/dist/commonjs/api/beta/evaluators/operations.js +2 -497
- package/dist/commonjs/api/beta/evaluators/operations.js.map +2 -2
- package/dist/commonjs/api/beta/evaluators/options.d.ts +0 -84
- package/dist/commonjs/api/beta/evaluators/options.d.ts.map +1 -1
- package/dist/commonjs/api/beta/evaluators/options.js.map +1 -1
- package/dist/commonjs/api/datasets/index.d.ts +2 -2
- package/dist/commonjs/api/datasets/index.d.ts.map +1 -1
- package/dist/commonjs/api/datasets/index.js +10 -0
- package/dist/commonjs/api/datasets/index.js.map +2 -2
- package/dist/commonjs/api/datasets/operations.d.ts +23 -2
- package/dist/commonjs/api/datasets/operations.d.ts.map +1 -1
- package/dist/commonjs/api/datasets/operations.js +245 -0
- package/dist/commonjs/api/datasets/operations.js.map +2 -2
- package/dist/commonjs/api/datasets/options.d.ts +52 -0
- package/dist/commonjs/api/datasets/options.d.ts.map +1 -1
- package/dist/commonjs/api/datasets/options.js.map +1 -1
- package/dist/commonjs/api/evaluators/index.d.ts +3 -0
- package/dist/commonjs/api/evaluators/index.d.ts.map +1 -0
- package/dist/commonjs/api/{beta/datasets → evaluators}/index.js +17 -5
- package/dist/commonjs/api/evaluators/index.js.map +7 -0
- package/dist/commonjs/api/evaluators/operations.d.ts +62 -0
- package/dist/commonjs/api/evaluators/operations.d.ts.map +1 -0
- package/dist/commonjs/api/evaluators/operations.js +505 -0
- package/dist/commonjs/api/evaluators/operations.js.map +7 -0
- package/dist/commonjs/api/evaluators/options.d.ts +70 -0
- package/dist/commonjs/api/evaluators/options.d.ts.map +1 -0
- package/dist/commonjs/api/evaluators/options.js.map +7 -0
- package/dist/commonjs/classic/agents/index.d.ts +21 -2
- package/dist/commonjs/classic/agents/index.d.ts.map +1 -1
- package/dist/commonjs/classic/agents/index.js +9 -0
- package/dist/commonjs/classic/agents/index.js.map +2 -2
- package/dist/commonjs/classic/beta/agents/index.d.ts +4 -15
- package/dist/commonjs/classic/beta/agents/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/agents/index.js +9 -10
- package/dist/commonjs/classic/beta/agents/index.js.map +2 -2
- package/dist/commonjs/classic/beta/evaluators/index.d.ts +3 -38
- package/dist/commonjs/classic/beta/evaluators/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/evaluators/index.js +2 -18
- package/dist/commonjs/classic/beta/evaluators/index.js.map +2 -2
- package/dist/commonjs/classic/beta/index.d.ts +2 -4
- package/dist/commonjs/classic/beta/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/index.js +9 -6
- package/dist/commonjs/classic/beta/index.js.map +2 -2
- package/dist/commonjs/classic/beta/voiceAgents/conversations/index.d.ts +2 -1
- package/dist/commonjs/classic/beta/voiceAgents/conversations/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/voiceAgents/conversations/index.js +10 -4
- package/dist/commonjs/classic/beta/voiceAgents/conversations/index.js.map +2 -2
- package/dist/commonjs/classic/beta/voiceAgents/index.d.ts +3 -2
- package/dist/commonjs/classic/beta/voiceAgents/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/voiceAgents/index.js +4 -4
- package/dist/commonjs/classic/beta/voiceAgents/index.js.map +2 -2
- package/dist/commonjs/classic/beta/voiceAgents/telephony/index.d.ts +2 -1
- package/dist/commonjs/classic/beta/voiceAgents/telephony/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/voiceAgents/telephony/index.js +33 -11
- package/dist/commonjs/classic/beta/voiceAgents/telephony/index.js.map +2 -2
- package/dist/commonjs/classic/datasets/index.d.ts +13 -2
- package/dist/commonjs/classic/datasets/index.d.ts.map +1 -1
- package/dist/commonjs/classic/datasets/index.js +5 -0
- package/dist/commonjs/classic/datasets/index.js.map +2 -2
- package/dist/commonjs/classic/evaluators/index.d.ts +43 -0
- package/dist/commonjs/classic/evaluators/index.d.ts.map +1 -0
- package/dist/commonjs/classic/{beta/datasets → evaluators}/index.js +15 -14
- package/dist/commonjs/classic/evaluators/index.js.map +7 -0
- package/dist/commonjs/classic/index.d.ts +1 -1
- package/dist/commonjs/classic/index.d.ts.map +1 -1
- package/dist/commonjs/classic/index.js.map +1 -1
- 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/index.d.ts +10 -17
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +1 -2
- package/dist/commonjs/index.js.map +3 -3
- package/dist/commonjs/models/index.d.ts +1 -3
- 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 +1081 -536
- package/dist/commonjs/models/models.d.ts.map +1 -1
- package/dist/commonjs/models/models.js +1803 -722
- package/dist/commonjs/models/models.js.map +2 -2
- package/dist/commonjs/package.json +1 -1
- package/dist/commonjs/realtime/voiceAgentRealtimeClient.d.ts +27 -2
- package/dist/commonjs/realtime/voiceAgentRealtimeClient.d.ts.map +1 -1
- package/dist/commonjs/realtime/voiceAgentRealtimeClient.js +98 -27
- package/dist/commonjs/realtime/voiceAgentRealtimeClient.js.map +2 -2
- package/dist/commonjs/tracing/configuration.d.ts +3 -5
- package/dist/commonjs/tracing/configuration.d.ts.map +1 -1
- package/dist/commonjs/tracing/configuration.js +5 -1
- package/dist/commonjs/tracing/configuration.js.map +2 -2
- package/dist/commonjs/tracing/tracingClient.d.ts +1 -1
- package/dist/commonjs/tracing/tracingClient.d.ts.map +1 -1
- package/dist/commonjs/tracing/tracingClient.js +2 -2
- package/dist/commonjs/tracing/tracingClient.js.map +2 -2
- package/dist/commonjs/tracing/voiceAgentTracing.d.ts +63 -0
- package/dist/commonjs/tracing/voiceAgentTracing.d.ts.map +1 -0
- package/dist/commonjs/tracing/voiceAgentTracing.js +705 -0
- package/dist/commonjs/tracing/voiceAgentTracing.js.map +7 -0
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/aiProjectClient.d.ts +4 -0
- package/dist/esm/aiProjectClient.d.ts.map +1 -1
- package/dist/esm/aiProjectClient.js +6 -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 +41 -4
- package/dist/esm/api/agents/operations.d.ts.map +1 -1
- package/dist/esm/api/agents/operations.js +322 -21
- package/dist/esm/api/agents/operations.js.map +1 -1
- package/dist/esm/api/agents/options.d.ts +163 -93
- 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/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 +2 -24
- package/dist/esm/api/beta/agents/operations.d.ts.map +1 -1
- package/dist/esm/api/beta/agents/operations.js +3 -185
- package/dist/esm/api/beta/agents/operations.js.map +1 -1
- package/dist/esm/api/beta/agents/options.d.ts +0 -56
- 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/evaluators/index.d.ts +2 -2
- package/dist/esm/api/beta/evaluators/index.d.ts.map +1 -1
- package/dist/esm/api/beta/evaluators/index.js +1 -1
- package/dist/esm/api/beta/evaluators/index.js.map +1 -1
- package/dist/esm/api/beta/evaluators/operations.d.ts +2 -59
- package/dist/esm/api/beta/evaluators/operations.d.ts.map +1 -1
- package/dist/esm/api/beta/evaluators/operations.js +1 -388
- package/dist/esm/api/beta/evaluators/operations.js.map +1 -1
- package/dist/esm/api/beta/evaluators/options.d.ts +0 -84
- package/dist/esm/api/beta/evaluators/options.d.ts.map +1 -1
- package/dist/esm/api/beta/evaluators/options.js.map +1 -1
- package/dist/esm/api/datasets/index.d.ts +2 -2
- package/dist/esm/api/datasets/index.d.ts.map +1 -1
- package/dist/esm/api/datasets/index.js +1 -1
- package/dist/esm/api/datasets/index.js.map +1 -1
- package/dist/esm/api/datasets/operations.d.ts +23 -2
- package/dist/esm/api/datasets/operations.d.ts.map +1 -1
- package/dist/esm/api/datasets/operations.js +193 -1
- package/dist/esm/api/datasets/operations.js.map +1 -1
- package/dist/esm/api/datasets/options.d.ts +52 -0
- package/dist/esm/api/datasets/options.d.ts.map +1 -1
- package/dist/esm/api/datasets/options.js.map +1 -1
- package/dist/esm/api/evaluators/index.d.ts +3 -0
- package/dist/esm/api/evaluators/index.d.ts.map +1 -0
- package/dist/esm/api/evaluators/index.js +4 -0
- package/dist/esm/api/evaluators/index.js.map +1 -0
- package/dist/esm/api/evaluators/operations.d.ts +62 -0
- package/dist/esm/api/evaluators/operations.d.ts.map +1 -0
- package/dist/esm/api/evaluators/operations.js +373 -0
- package/dist/esm/api/evaluators/operations.js.map +1 -0
- package/dist/esm/api/evaluators/options.d.ts +70 -0
- package/dist/esm/api/evaluators/options.d.ts.map +1 -0
- package/dist/esm/api/evaluators/options.js.map +1 -0
- package/dist/esm/classic/agents/index.d.ts +21 -2
- package/dist/esm/classic/agents/index.d.ts.map +1 -1
- package/dist/esm/classic/agents/index.js +10 -1
- package/dist/esm/classic/agents/index.js.map +1 -1
- package/dist/esm/classic/beta/agents/index.d.ts +4 -15
- package/dist/esm/classic/beta/agents/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/agents/index.js +4 -11
- package/dist/esm/classic/beta/agents/index.js.map +1 -1
- package/dist/esm/classic/beta/evaluators/index.d.ts +3 -38
- package/dist/esm/classic/beta/evaluators/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/evaluators/index.js +2 -18
- package/dist/esm/classic/beta/evaluators/index.js.map +1 -1
- package/dist/esm/classic/beta/index.d.ts +2 -4
- package/dist/esm/classic/beta/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/index.js +3 -6
- package/dist/esm/classic/beta/index.js.map +1 -1
- package/dist/esm/classic/beta/voiceAgents/conversations/index.d.ts +2 -1
- package/dist/esm/classic/beta/voiceAgents/conversations/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/voiceAgents/conversations/index.js +5 -4
- package/dist/esm/classic/beta/voiceAgents/conversations/index.js.map +1 -1
- package/dist/esm/classic/beta/voiceAgents/index.d.ts +3 -2
- package/dist/esm/classic/beta/voiceAgents/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/voiceAgents/index.js +5 -5
- package/dist/esm/classic/beta/voiceAgents/index.js.map +1 -1
- package/dist/esm/classic/beta/voiceAgents/telephony/index.d.ts +2 -1
- package/dist/esm/classic/beta/voiceAgents/telephony/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/voiceAgents/telephony/index.js +16 -11
- package/dist/esm/classic/beta/voiceAgents/telephony/index.js.map +1 -1
- package/dist/esm/classic/datasets/index.d.ts +13 -2
- package/dist/esm/classic/datasets/index.d.ts.map +1 -1
- package/dist/esm/classic/datasets/index.js +6 -1
- package/dist/esm/classic/datasets/index.js.map +1 -1
- package/dist/esm/classic/evaluators/index.d.ts +43 -0
- package/dist/esm/classic/evaluators/index.d.ts.map +1 -0
- package/dist/esm/classic/evaluators/index.js +19 -0
- package/dist/esm/classic/evaluators/index.js.map +1 -0
- package/dist/esm/classic/index.d.ts +1 -1
- package/dist/esm/classic/index.d.ts.map +1 -1
- package/dist/esm/classic/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/index.d.ts +10 -17
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/index.d.ts +1 -3
- 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 +1081 -536
- package/dist/esm/models/models.d.ts.map +1 -1
- package/dist/esm/models/models.js +1554 -655
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/package.json +1 -1
- package/dist/esm/realtime/voiceAgentRealtimeClient.d.ts +27 -2
- package/dist/esm/realtime/voiceAgentRealtimeClient.d.ts.map +1 -1
- package/dist/esm/realtime/voiceAgentRealtimeClient.js +97 -17
- package/dist/esm/realtime/voiceAgentRealtimeClient.js.map +1 -1
- package/dist/esm/tracing/configuration.d.ts +3 -5
- package/dist/esm/tracing/configuration.d.ts.map +1 -1
- package/dist/esm/tracing/configuration.js +8 -6
- package/dist/esm/tracing/configuration.js.map +1 -1
- package/dist/esm/tracing/tracingClient.d.ts +1 -1
- package/dist/esm/tracing/tracingClient.d.ts.map +1 -1
- package/dist/esm/tracing/tracingClient.js +2 -2
- package/dist/esm/tracing/tracingClient.js.map +1 -1
- package/dist/esm/tracing/voiceAgentTracing.d.ts +63 -0
- package/dist/esm/tracing/voiceAgentTracing.d.ts.map +1 -0
- package/dist/esm/tracing/voiceAgentTracing.js +740 -0
- package/dist/esm/tracing/voiceAgentTracing.js.map +1 -0
- package/dist/react-native/aiProjectClient.d.ts +4 -0
- package/dist/react-native/aiProjectClient.d.ts.map +1 -1
- package/dist/react-native/aiProjectClient.js +6 -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 +41 -4
- package/dist/react-native/api/agents/operations.d.ts.map +1 -1
- package/dist/react-native/api/agents/operations.js +322 -21
- package/dist/react-native/api/agents/operations.js.map +1 -1
- package/dist/react-native/api/agents/options.d.ts +163 -93
- 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/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 +2 -24
- package/dist/react-native/api/beta/agents/operations.d.ts.map +1 -1
- package/dist/react-native/api/beta/agents/operations.js +3 -185
- package/dist/react-native/api/beta/agents/operations.js.map +1 -1
- package/dist/react-native/api/beta/agents/options.d.ts +0 -56
- 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/evaluators/index.d.ts +2 -2
- package/dist/react-native/api/beta/evaluators/index.d.ts.map +1 -1
- package/dist/react-native/api/beta/evaluators/index.js +1 -1
- package/dist/react-native/api/beta/evaluators/index.js.map +1 -1
- package/dist/react-native/api/beta/evaluators/operations.d.ts +2 -59
- package/dist/react-native/api/beta/evaluators/operations.d.ts.map +1 -1
- package/dist/react-native/api/beta/evaluators/operations.js +1 -388
- package/dist/react-native/api/beta/evaluators/operations.js.map +1 -1
- package/dist/react-native/api/beta/evaluators/options.d.ts +0 -84
- package/dist/react-native/api/beta/evaluators/options.d.ts.map +1 -1
- package/dist/react-native/api/beta/evaluators/options.js.map +1 -1
- package/dist/react-native/api/datasets/index.d.ts +2 -2
- package/dist/react-native/api/datasets/index.d.ts.map +1 -1
- package/dist/react-native/api/datasets/index.js +1 -1
- package/dist/react-native/api/datasets/index.js.map +1 -1
- package/dist/react-native/api/datasets/operations.d.ts +23 -2
- package/dist/react-native/api/datasets/operations.d.ts.map +1 -1
- package/dist/react-native/api/datasets/operations.js +193 -1
- package/dist/react-native/api/datasets/operations.js.map +1 -1
- package/dist/react-native/api/datasets/options.d.ts +52 -0
- package/dist/react-native/api/datasets/options.d.ts.map +1 -1
- package/dist/react-native/api/datasets/options.js.map +1 -1
- package/dist/react-native/api/evaluators/index.d.ts +3 -0
- package/dist/react-native/api/evaluators/index.d.ts.map +1 -0
- package/dist/react-native/api/evaluators/index.js +4 -0
- package/dist/react-native/api/evaluators/index.js.map +1 -0
- package/dist/react-native/api/evaluators/operations.d.ts +62 -0
- package/dist/react-native/api/evaluators/operations.d.ts.map +1 -0
- package/dist/react-native/api/evaluators/operations.js +373 -0
- package/dist/react-native/api/evaluators/operations.js.map +1 -0
- package/dist/react-native/api/evaluators/options.d.ts +70 -0
- package/dist/react-native/api/evaluators/options.d.ts.map +1 -0
- package/dist/react-native/api/evaluators/options.js.map +1 -0
- package/dist/react-native/classic/agents/index.d.ts +21 -2
- package/dist/react-native/classic/agents/index.d.ts.map +1 -1
- package/dist/react-native/classic/agents/index.js +10 -1
- package/dist/react-native/classic/agents/index.js.map +1 -1
- package/dist/react-native/classic/beta/agents/index.d.ts +4 -15
- package/dist/react-native/classic/beta/agents/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/agents/index.js +4 -11
- package/dist/react-native/classic/beta/agents/index.js.map +1 -1
- package/dist/react-native/classic/beta/evaluators/index.d.ts +3 -38
- package/dist/react-native/classic/beta/evaluators/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/evaluators/index.js +2 -18
- package/dist/react-native/classic/beta/evaluators/index.js.map +1 -1
- package/dist/react-native/classic/beta/index.d.ts +2 -4
- package/dist/react-native/classic/beta/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/index.js +3 -6
- package/dist/react-native/classic/beta/index.js.map +1 -1
- package/dist/react-native/classic/beta/voiceAgents/conversations/index.d.ts +2 -1
- package/dist/react-native/classic/beta/voiceAgents/conversations/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/voiceAgents/conversations/index.js +5 -4
- package/dist/react-native/classic/beta/voiceAgents/conversations/index.js.map +1 -1
- package/dist/react-native/classic/beta/voiceAgents/index.d.ts +3 -2
- package/dist/react-native/classic/beta/voiceAgents/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/voiceAgents/index.js +5 -5
- package/dist/react-native/classic/beta/voiceAgents/index.js.map +1 -1
- package/dist/react-native/classic/beta/voiceAgents/telephony/index.d.ts +2 -1
- package/dist/react-native/classic/beta/voiceAgents/telephony/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/voiceAgents/telephony/index.js +16 -11
- package/dist/react-native/classic/beta/voiceAgents/telephony/index.js.map +1 -1
- package/dist/react-native/classic/datasets/index.d.ts +13 -2
- package/dist/react-native/classic/datasets/index.d.ts.map +1 -1
- package/dist/react-native/classic/datasets/index.js +6 -1
- package/dist/react-native/classic/datasets/index.js.map +1 -1
- package/dist/react-native/classic/evaluators/index.d.ts +43 -0
- package/dist/react-native/classic/evaluators/index.d.ts.map +1 -0
- package/dist/react-native/classic/evaluators/index.js +19 -0
- package/dist/react-native/classic/evaluators/index.js.map +1 -0
- package/dist/react-native/classic/index.d.ts +1 -1
- 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/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/index.d.ts +10 -17
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +1 -2
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/models/index.d.ts +1 -3
- 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 +1081 -536
- package/dist/react-native/models/models.d.ts.map +1 -1
- package/dist/react-native/models/models.js +1554 -655
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/package.json +1 -1
- package/dist/react-native/realtime/voiceAgentRealtimeClient.d.ts +27 -2
- package/dist/react-native/realtime/voiceAgentRealtimeClient.d.ts.map +1 -1
- package/dist/react-native/realtime/voiceAgentRealtimeClient.js +97 -17
- package/dist/react-native/realtime/voiceAgentRealtimeClient.js.map +1 -1
- package/dist/react-native/tracing/configuration.d.ts +3 -5
- package/dist/react-native/tracing/configuration.d.ts.map +1 -1
- package/dist/react-native/tracing/configuration.js +8 -6
- package/dist/react-native/tracing/configuration.js.map +1 -1
- package/dist/react-native/tracing/tracingClient.d.ts +1 -1
- package/dist/react-native/tracing/tracingClient.d.ts.map +1 -1
- package/dist/react-native/tracing/tracingClient.js +2 -2
- package/dist/react-native/tracing/tracingClient.js.map +1 -1
- package/dist/react-native/tracing/voiceAgentTracing.d.ts +63 -0
- package/dist/react-native/tracing/voiceAgentTracing.d.ts.map +1 -0
- package/dist/react-native/tracing/voiceAgentTracing.js +740 -0
- package/dist/react-native/tracing/voiceAgentTracing.js.map +1 -0
- package/dist/react-native/webSocketTransport-browser.d.mts +1 -0
- package/dist/react-native/webSocketTransport-browser.d.mts.map +1 -1
- package/dist/react-native/webSocketTransport-browser.mjs +5 -13
- package/dist/react-native/webSocketTransport-browser.mjs.map +1 -1
- package/package.json +9 -9
- package/dist/browser/api/beta/datasets/index.d.ts +0 -3
- package/dist/browser/api/beta/datasets/index.d.ts.map +0 -1
- package/dist/browser/api/beta/datasets/index.js +0 -4
- package/dist/browser/api/beta/datasets/index.js.map +0 -1
- package/dist/browser/api/beta/datasets/operations.d.ts +0 -27
- package/dist/browser/api/beta/datasets/operations.d.ts.map +0 -1
- package/dist/browser/api/beta/datasets/operations.js +0 -184
- package/dist/browser/api/beta/datasets/operations.js.map +0 -1
- package/dist/browser/api/beta/datasets/options.d.ts +0 -58
- package/dist/browser/api/beta/datasets/options.d.ts.map +0 -1
- package/dist/browser/api/beta/datasets/options.js.map +0 -1
- package/dist/browser/classic/beta/datasets/index.d.ts +0 -20
- package/dist/browser/classic/beta/datasets/index.d.ts.map +0 -1
- package/dist/browser/classic/beta/datasets/index.js +0 -18
- package/dist/browser/classic/beta/datasets/index.js.map +0 -1
- package/dist/commonjs/api/beta/datasets/index.d.ts +0 -3
- package/dist/commonjs/api/beta/datasets/index.d.ts.map +0 -1
- package/dist/commonjs/api/beta/datasets/index.js.map +0 -7
- package/dist/commonjs/api/beta/datasets/operations.d.ts +0 -27
- package/dist/commonjs/api/beta/datasets/operations.d.ts.map +0 -1
- package/dist/commonjs/api/beta/datasets/operations.js +0 -259
- package/dist/commonjs/api/beta/datasets/operations.js.map +0 -7
- package/dist/commonjs/api/beta/datasets/options.d.ts +0 -58
- package/dist/commonjs/api/beta/datasets/options.d.ts.map +0 -1
- package/dist/commonjs/api/beta/datasets/options.js.map +0 -7
- package/dist/commonjs/classic/beta/datasets/index.d.ts +0 -20
- package/dist/commonjs/classic/beta/datasets/index.d.ts.map +0 -1
- package/dist/commonjs/classic/beta/datasets/index.js.map +0 -7
- package/dist/esm/api/beta/datasets/index.d.ts +0 -3
- package/dist/esm/api/beta/datasets/index.d.ts.map +0 -1
- package/dist/esm/api/beta/datasets/index.js +0 -4
- package/dist/esm/api/beta/datasets/index.js.map +0 -1
- package/dist/esm/api/beta/datasets/operations.d.ts +0 -27
- package/dist/esm/api/beta/datasets/operations.d.ts.map +0 -1
- package/dist/esm/api/beta/datasets/operations.js +0 -184
- package/dist/esm/api/beta/datasets/operations.js.map +0 -1
- package/dist/esm/api/beta/datasets/options.d.ts +0 -58
- package/dist/esm/api/beta/datasets/options.d.ts.map +0 -1
- package/dist/esm/api/beta/datasets/options.js.map +0 -1
- package/dist/esm/classic/beta/datasets/index.d.ts +0 -20
- package/dist/esm/classic/beta/datasets/index.d.ts.map +0 -1
- package/dist/esm/classic/beta/datasets/index.js +0 -18
- package/dist/esm/classic/beta/datasets/index.js.map +0 -1
- package/dist/react-native/api/beta/datasets/index.d.ts +0 -3
- package/dist/react-native/api/beta/datasets/index.d.ts.map +0 -1
- package/dist/react-native/api/beta/datasets/index.js +0 -4
- package/dist/react-native/api/beta/datasets/index.js.map +0 -1
- package/dist/react-native/api/beta/datasets/operations.d.ts +0 -27
- package/dist/react-native/api/beta/datasets/operations.d.ts.map +0 -1
- package/dist/react-native/api/beta/datasets/operations.js +0 -184
- package/dist/react-native/api/beta/datasets/operations.js.map +0 -1
- package/dist/react-native/api/beta/datasets/options.d.ts +0 -58
- package/dist/react-native/api/beta/datasets/options.d.ts.map +0 -1
- package/dist/react-native/api/beta/datasets/options.js.map +0 -1
- package/dist/react-native/classic/beta/datasets/index.d.ts +0 -20
- package/dist/react-native/classic/beta/datasets/index.d.ts.map +0 -1
- package/dist/react-native/classic/beta/datasets/index.js +0 -18
- package/dist/react-native/classic/beta/datasets/index.js.map +0 -1
- /package/dist/browser/api/{beta/datasets → evaluators}/options.js +0 -0
- /package/dist/commonjs/api/{beta/datasets → evaluators}/options.js +0 -0
- /package/dist/esm/api/{beta/datasets → evaluators}/options.js +0 -0
- /package/dist/react-native/api/{beta/datasets → evaluators}/options.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/classic/beta/voiceAgents/conversations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,aAAa,EACb,QAAQ,EACR,0BAA0B,EAC1B,qBAAqB,EACrB,iBAAiB,EACjB,YAAY,EACZ,OAAO,EACP,SAAS,EACT,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,OAAO,EACP,GAAG,EACH,IAAI,GACL,MAAM,8DAA8D,CAAC;AA0MtE,SAAS,gCAAgC,CACvC,OAAyB;IAEzB,OAAO;QACL,aAAa,EAAE,CACb,SAAiB,EACjB,cAAsB,EACtB,OAAiE,EACjE,EAAE,CAAC,aAAa,CAAC,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,OAAO,CAAC;QAC/D,QAAQ,EAAE,CACR,SAAiB,EACjB,cAAsB,EACtB,OAA4D,EAC5D,EAAE,CAAC,QAAQ,CAAC,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,OAAO,CAAC;QAC1D,0BAA0B,EAAE,CAC1B,SAAiB,EACjB,cAAsB,EACtB,MAAc,EACd,OAA8E,EAC9E,EAAE,CAAC,0BAA0B,CAAC,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC;QACpF,qBAAqB,EAAE,CACrB,SAAiB,EACjB,cAAsB,EACtB,MAAc,EACd,OAAyE,EACzE,EAAE,CAAC,qBAAqB,CAAC,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC;QAC/E,iBAAiB,EAAE,CACjB,SAAiB,EACjB,cAAsB,EACtB,MAAc,EACd,OAAqE,EACrE,EAAE,CAAC,iBAAiB,CAAC,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC;QAC3E,YAAY,EAAE,CACZ,SAAiB,EACjB,cAAsB,EACtB,MAAc,EACd,OAAgE,EACh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C,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,0CAA0C,CACxD,OAAyB;IAEzB,OAAO,EAAE,GAAG,gCAAgC,CAAC,OAAO,CAAC,EAAE,CAAC;AAC1D,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AIProjectContext } from \"../../../../api/aiProjectContext.js\";\nimport {\n downloadAudio,\n getAudio,\n downloadGeneratedAudioItem,\n getGeneratedAudioItem,\n downloadAudioItem,\n getAudioItem,\n getItem,\n listItems,\n listResponseItems,\n getResponse,\n listResponses,\n $delete,\n get,\n list,\n} from \"../../../../api/beta/voiceAgents/conversations/operations.js\";\nimport type {\n BetaVoiceAgentsConversationsDownloadAudioOptionalParams,\n BetaVoiceAgentsConversationsGetAudioOptionalParams,\n BetaVoiceAgentsConversationsDownloadGeneratedAudioItemOptionalParams,\n BetaVoiceAgentsConversationsGetGeneratedAudioItemOptionalParams,\n BetaVoiceAgentsConversationsDownloadAudioItemOptionalParams,\n BetaVoiceAgentsConversationsGetAudioItemOptionalParams,\n BetaVoiceAgentsConversationsGetItemOptionalParams,\n BetaVoiceAgentsConversationsListItemsOptionalParams,\n BetaVoiceAgentsConversationsListResponseItemsOptionalParams,\n BetaVoiceAgentsConversationsGetResponseOptionalParams,\n BetaVoiceAgentsConversationsListResponsesOptionalParams,\n BetaVoiceAgentsConversationsDeleteOptionalParams,\n BetaVoiceAgentsConversationsGetOptionalParams,\n BetaVoiceAgentsConversationsListOptionalParams,\n} from \"../../../../api/beta/voiceAgents/conversations/options.js\";\nimport type {\n VoiceConversation,\n VoiceResponse,\n RealtimeConversationItemUnion,\n VoiceAudioItem,\n VoiceGeneratedAudioItem,\n VoiceRecording,\n BetaVoiceAgentsConversationsDownloadAudioResponse,\n BetaVoiceAgentsConversationsDownloadGeneratedAudioItemResponse,\n BetaVoiceAgentsConversationsDownloadAudioItemResponse,\n} from \"../../../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\n\n/** Operations for managing voice agent conversations. */\nexport interface BetaVoiceAgentsConversationsOperations {\n /**\n * Streams the whole-call merged stereo recording as a WAV (`audio/wav`) byte stream through the service\n * (no SAS URL). This route serves Foundry-managed storage only. For bring-your-own-storage (BYOS)\n * recordings the bytes are not proxied — the caller must download directly from customer storage using the\n * `blob_uri` returned by the metadata route — so this route returns `409 Conflict` for BYOS recordings.\n * While the conversation is `in_progress`, this route returns retriable `409 Conflict` with\n * `error.code = recording_not_ready` and a `Retry-After` header when retry guidance is available. When the\n * conversation is `failed`, it returns terminal `409 Conflict` with `error.code = recording_unavailable`.\n * For a `completed` conversation, content is available subject to the existing BYOS behavior. A conversation\n * without persisted audio (`store = false`) returns `404`.\n */\n downloadAudio: (\n agentName: string,\n conversationId: string,\n options?: BetaVoiceAgentsConversationsDownloadAudioOptionalParams,\n ) => Promise<BetaVoiceAgentsConversationsDownloadAudioResponse>;\n /**\n * Returns metadata for the whole-call merged stereo recording (user audio on the left channel, agent audio\n * on the right). The common metadata (format, sample rate, channels, channel layout, duration) is returned\n * for both Foundry-managed and bring-your-own-storage (BYOS) recordings; for BYOS the response additionally\n * includes `blob_uri`, the URI of the recording in the customer's own storage (no SAS) that the customer downloads\n * with their own credentials. The recording is built once from the per-turn segments after persistence\n * finalization succeeds. While the conversation is `in_progress`, this route returns retriable `409 Conflict`\n * with `error.code = recording_not_ready` and a `Retry-After` header when retry guidance is available. When the\n * conversation is `failed`, it returns terminal `409 Conflict` with `error.code = recording_unavailable`.\n * For a `completed` conversation, metadata is available subject to the existing BYOS behavior. Requires the\n * conversation to have persisted audio (`store = true`); otherwise returns `404`.\n */\n getAudio: (\n agentName: string,\n conversationId: string,\n options?: BetaVoiceAgentsConversationsGetAudioOptionalParams,\n ) => Promise<VoiceRecording>;\n /**\n * Streams a conversation item's generated audio as a WAV (`audio/wav`) byte stream through the service. This\n * subordinate artifact exists only when playback was interrupted and the service rendered more audio than the\n * listener heard, including when the response ends as cancelled. This route serves Foundry-managed storage only.\n * For bring-your-own-storage (BYOS) recordings the bytes are not proxied, so this route returns `409 Conflict`.\n * Returns `404` when the conversation or item was not persisted, or when no generated audio exists beyond the\n * heard segment.\n */\n downloadGeneratedAudioItem: (\n agentName: string,\n conversationId: string,\n itemId: string,\n options?: BetaVoiceAgentsConversationsDownloadGeneratedAudioItemOptionalParams,\n ) => Promise<BetaVoiceAgentsConversationsDownloadGeneratedAudioItemResponse>;\n /**\n * Returns metadata for a conversation item's generated audio. This subordinate artifact is separate from the\n * canonical heard-audio segment and exists only when playback was interrupted and the service rendered more audio\n * than the listener heard, including when the response ends as cancelled. Returns `404` when the conversation or\n * item was not persisted, or when no generated audio exists beyond the heard segment.\n */\n getGeneratedAudioItem: (\n agentName: string,\n conversationId: string,\n itemId: string,\n options?: BetaVoiceAgentsConversationsGetGeneratedAudioItemOptionalParams,\n ) => Promise<VoiceGeneratedAudioItem>;\n /**\n * Streams a single conversation item's audio as a WAV (`audio/wav`) byte stream through the service (no SAS\n * URL). This route serves Foundry-managed storage only. For bring-your-own-storage (BYOS) recordings the\n * bytes are not proxied — the caller must download directly from customer storage using the `blob_uri`\n * returned by the item's `/audio` metadata route — so this route returns `409 Conflict` for BYOS recordings.\n * Returns `404` when the conversation, item, or its audio was not persisted (`store = false`).\n */\n downloadAudioItem: (\n agentName: string,\n conversationId: string,\n itemId: string,\n options?: BetaVoiceAgentsConversationsDownloadAudioItemOptionalParams,\n ) => Promise<BetaVoiceAgentsConversationsDownloadAudioItemResponse>;\n /**\n * Returns metadata for a single conversation item's audio segment, including the common playback facts\n * (role, format/codec, sample rate, channels, offset, duration) for both Foundry-managed and\n * bring-your-own-storage (BYOS) recordings; for BYOS the response additionally includes `blob_uri`, the URI\n * of the recording in the customer's own storage (no SAS) that the customer downloads with their own credentials.\n * Requires the conversation to have persisted audio (`store = true`); returns `404` when the conversation,\n * item, or its audio was not persisted.\n */\n getAudioItem: (\n agentName: string,\n conversationId: string,\n itemId: string,\n options?: BetaVoiceAgentsConversationsGetAudioItemOptionalParams,\n ) => Promise<VoiceAudioItem>;\n /**\n * Retrieves a single item from the specified conversation by its id, including its transcript. An\n * `input_audio`/`output_audio` content part indicates that audio is available for the item; the canonical per-item\n * audio metadata is the `/items/{item_id}/audio` resource, and the bytes are streamed by\n * `/items/{item_id}/audio/content`. Returns `404` when the conversation or item was not persisted\n * (`store = false`).\n */\n getItem: (\n agentName: string,\n conversationId: string,\n itemId: string,\n options?: BetaVoiceAgentsConversationsGetItemOptionalParams,\n ) => Promise<RealtimeConversationItemUnion>;\n /**\n * Returns a paged collection of items — the complete ordered conversation history, including user input,\n * assistant output, and client-created tool outputs (transcripts + tool events). Returns `404` when the\n * conversation was not persisted (`store = false`).\n */\n listItems: (\n agentName: string,\n conversationId: string,\n options?: BetaVoiceAgentsConversationsListItemsOptionalParams,\n ) => PagedAsyncIterableIterator<RealtimeConversationItemUnion>;\n /**\n * Returns a paged collection of the output items produced by a specific response (the response's output\n * projection). For the complete ordered conversation history — including user input and client-created\n * tool outputs — use the conversation items route instead. Returns `404` when the conversation or\n * response was not persisted (`store = false`).\n */\n listResponseItems: (\n agentName: string,\n conversationId: string,\n responseId: string,\n options?: BetaVoiceAgentsConversationsListResponseItemsOptionalParams,\n ) => PagedAsyncIterableIterator<RealtimeConversationItemUnion>;\n /**\n * Retrieves a single response from the specified conversation by its id, including its `output` items,\n * `usage`, and status. Returns `404` when the conversation or response was not persisted (`store = false`).\n */\n getResponse: (\n agentName: string,\n conversationId: string,\n responseId: string,\n options?: BetaVoiceAgentsConversationsGetResponseOptionalParams,\n ) => Promise<VoiceResponse>;\n /**\n * Returns a paged collection of the responses (model inference turns) recorded for the specified\n * conversation. The per-response `output` projection may be omitted here; use the response-items route\n * for the canonical paged output. Returns `404` when the conversation was not persisted (`store = false`).\n */\n listResponses: (\n agentName: string,\n conversationId: string,\n options?: BetaVoiceAgentsConversationsListResponsesOptionalParams,\n ) => PagedAsyncIterableIterator<VoiceResponse>;\n /**\n * Deletes a conversation and all of its stored data — responses, items, and any audio (cascade). This is\n * the customer's explicit data-deletion control for voice conversations.\n */\n delete: (\n agentName: string,\n conversationId: string,\n options?: BetaVoiceAgentsConversationsDeleteOptionalParams,\n ) => Promise<void>;\n /**\n * Retrieves a single conversation recorded for the specified voice agent endpoint by its id.\n * Returns `404` when the conversation was not persisted (`store = false`) or does not exist.\n */\n get: (\n agentName: string,\n conversationId: string,\n options?: BetaVoiceAgentsConversationsGetOptionalParams,\n ) => Promise<VoiceConversation>;\n /**\n * Returns the conversations persisted for the specified voice agent endpoint.\n * Conversations are present when the session's effective `store` setting is `true`, whether inherited from the\n * agent definition or enabled by the WebSocket session override.\n */\n list: (\n agentName: string,\n options?: BetaVoiceAgentsConversationsListOptionalParams,\n ) => PagedAsyncIterableIterator<VoiceConversation>;\n}\n\nfunction _getBetaVoiceAgentsConversations(\n context: AIProjectContext,\n): BetaVoiceAgentsConversationsOperations {\n return {\n downloadAudio: (\n agentName: string,\n conversationId: string,\n options?: BetaVoiceAgentsConversationsDownloadAudioOptionalParams,\n ) => downloadAudio(context, agentName, conversationId, options),\n getAudio: (\n agentName: string,\n conversationId: string,\n options?: BetaVoiceAgentsConversationsGetAudioOptionalParams,\n ) => getAudio(context, agentName, conversationId, options),\n downloadGeneratedAudioItem: (\n agentName: string,\n conversationId: string,\n itemId: string,\n options?: BetaVoiceAgentsConversationsDownloadGeneratedAudioItemOptionalParams,\n ) => downloadGeneratedAudioItem(context, agentName, conversationId, itemId, options),\n getGeneratedAudioItem: (\n agentName: string,\n conversationId: string,\n itemId: string,\n options?: BetaVoiceAgentsConversationsGetGeneratedAudioItemOptionalParams,\n ) => getGeneratedAudioItem(context, agentName, conversationId, itemId, options),\n downloadAudioItem: (\n agentName: string,\n conversationId: string,\n itemId: string,\n options?: BetaVoiceAgentsConversationsDownloadAudioItemOptionalParams,\n ) => downloadAudioItem(context, agentName, conversationId, itemId, options),\n getAudioItem: (\n agentName: string,\n conversationId: string,\n itemId: string,\n options?: BetaVoiceAgentsConversationsGetAudioItemOptionalParams,\n ) => getAudioItem(context, agentName, conversationId, itemId, options),\n getItem: (\n agentName: string,\n conversationId: string,\n itemId: string,\n options?: BetaVoiceAgentsConversationsGetItemOptionalParams,\n ) => getItem(context, agentName, conversationId, itemId, options),\n listItems: (\n agentName: string,\n conversationId: string,\n options?: BetaVoiceAgentsConversationsListItemsOptionalParams,\n ) => listItems(context, agentName, conversationId, options),\n listResponseItems: (\n agentName: string,\n conversationId: string,\n responseId: string,\n options?: BetaVoiceAgentsConversationsListResponseItemsOptionalParams,\n ) => listResponseItems(context, agentName, conversationId, responseId, options),\n getResponse: (\n agentName: string,\n conversationId: string,\n responseId: string,\n options?: BetaVoiceAgentsConversationsGetResponseOptionalParams,\n ) => getResponse(context, agentName, conversationId, responseId, options),\n listResponses: (\n agentName: string,\n conversationId: string,\n options?: BetaVoiceAgentsConversationsListResponsesOptionalParams,\n ) => listResponses(context, agentName, conversationId, options),\n delete: (\n agentName: string,\n conversationId: string,\n options?: BetaVoiceAgentsConversationsDeleteOptionalParams,\n ) => $delete(context, agentName, conversationId, options),\n get: (\n agentName: string,\n conversationId: string,\n options?: BetaVoiceAgentsConversationsGetOptionalParams,\n ) => get(context, agentName, conversationId, options),\n list: (agentName: string, options?: BetaVoiceAgentsConversationsListOptionalParams) =>\n list(context, agentName, options),\n };\n}\n\nexport function _getBetaVoiceAgentsConversationsOperations(\n context: AIProjectContext,\n): BetaVoiceAgentsConversationsOperations {\n return { ..._getBetaVoiceAgentsConversations(context) };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/classic/beta/voiceAgents/conversations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,aAAa,EACb,QAAQ,EACR,0BAA0B,EAC1B,qBAAqB,EACrB,iBAAiB,EACjB,YAAY,EACZ,OAAO,EACP,SAAS,EACT,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,OAAO,EACP,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AC;AACzE,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AIProjectContext } from \"../../../../api/aiProjectContext.js\";\nimport {\n downloadAudio,\n getAudio,\n downloadGeneratedAudioItem,\n getGeneratedAudioItem,\n downloadAudioItem,\n getAudioItem,\n getItem,\n listItems,\n listResponseItems,\n getResponse,\n listResponses,\n $delete,\n get,\n list,\n} from \"../../../../api/beta/voiceAgents/conversations/operations.js\";\nimport type {\n BetaVoiceAgentsConversationsDownloadAudioOptionalParams,\n BetaVoiceAgentsConversationsGetAudioOptionalParams,\n BetaVoiceAgentsConversationsDownloadGeneratedAudioItemOptionalParams,\n BetaVoiceAgentsConversationsGetGeneratedAudioItemOptionalParams,\n BetaVoiceAgentsConversationsDownloadAudioItemOptionalParams,\n BetaVoiceAgentsConversationsGetAudioItemOptionalParams,\n BetaVoiceAgentsConversationsGetItemOptionalParams,\n BetaVoiceAgentsConversationsListItemsOptionalParams,\n BetaVoiceAgentsConversationsListResponseItemsOptionalParams,\n BetaVoiceAgentsConversationsGetResponseOptionalParams,\n BetaVoiceAgentsConversationsListResponsesOptionalParams,\n BetaVoiceAgentsConversationsDeleteOptionalParams,\n BetaVoiceAgentsConversationsGetOptionalParams,\n BetaVoiceAgentsConversationsListOptionalParams,\n} from \"../../../../api/beta/voiceAgents/conversations/options.js\";\nimport type {\n VoiceConversation,\n VoiceResponse,\n RealtimeConversationItemUnion,\n VoiceAudioItem,\n VoiceGeneratedAudioItem,\n VoiceRecording,\n BetaVoiceAgentsConversationsDownloadAudioResponse,\n BetaVoiceAgentsConversationsDownloadGeneratedAudioItemResponse,\n BetaVoiceAgentsConversationsDownloadAudioItemResponse,\n} from \"../../../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport type { ResolvedTracingConfig } from \"../../../../tracing/configuration.js\";\nimport { traceVoiceAgentOperation } from \"../../../../tracing/voiceAgentTracing.js\";\n\n/** Operations for managing voice agent conversations. */\nexport interface BetaVoiceAgentsConversationsOperations {\n /**\n * Streams the whole-call merged stereo recording as a WAV (`audio/wav`) byte stream through the service\n * (no SAS URL). This route serves Foundry-managed storage only. For bring-your-own-storage (BYOS)\n * recordings the bytes are not proxied — the caller must download directly from customer storage using the\n * `blob_uri` returned by the metadata route — so this route returns `409 Conflict` for BYOS recordings.\n * While the conversation is `in_progress`, this route returns retriable `409 Conflict` with\n * `error.code = recording_not_ready` and a `Retry-After` header when retry guidance is available. When the\n * conversation is `failed`, it returns terminal `409 Conflict` with `error.code = recording_unavailable`.\n * For a `completed` conversation, content is available subject to the existing BYOS behavior. A conversation\n * without persisted audio (`store = false`) returns `404`.\n */\n downloadAudio: (\n agentName: string,\n conversationId: string,\n options?: BetaVoiceAgentsConversationsDownloadAudioOptionalParams,\n ) => Promise<BetaVoiceAgentsConversationsDownloadAudioResponse>;\n /**\n * Returns metadata for the whole-call merged stereo recording (user audio on the left channel, agent audio\n * on the right). The common metadata (format, sample rate, channels, channel layout, duration) is returned\n * for both Foundry-managed and bring-your-own-storage (BYOS) recordings; for BYOS the response additionally\n * includes `blob_uri`, the URI of the recording in the customer's own storage (no SAS) that the customer downloads\n * with their own credentials. The recording is built once from the per-turn segments after persistence\n * finalization succeeds. While the conversation is `in_progress`, this route returns retriable `409 Conflict`\n * with `error.code = recording_not_ready` and a `Retry-After` header when retry guidance is available. When the\n * conversation is `failed`, it returns terminal `409 Conflict` with `error.code = recording_unavailable`.\n * For a `completed` conversation, metadata is available subject to the existing BYOS behavior. Requires the\n * conversation to have persisted audio (`store = true`); otherwise returns `404`.\n */\n getAudio: (\n agentName: string,\n conversationId: string,\n options?: BetaVoiceAgentsConversationsGetAudioOptionalParams,\n ) => Promise<VoiceRecording>;\n /**\n * Streams a conversation item's generated audio as a WAV (`audio/wav`) byte stream through the service. This\n * subordinate artifact exists only when playback was interrupted and the service rendered more audio than the\n * listener heard, including when the response ends as cancelled. This route serves Foundry-managed storage only.\n * For bring-your-own-storage (BYOS) recordings the bytes are not proxied, so this route returns `409 Conflict`.\n * Returns `404` when the conversation or item was not persisted, or when no generated audio exists beyond the\n * heard segment.\n */\n downloadGeneratedAudioItem: (\n agentName: string,\n conversationId: string,\n itemId: string,\n options?: BetaVoiceAgentsConversationsDownloadGeneratedAudioItemOptionalParams,\n ) => Promise<BetaVoiceAgentsConversationsDownloadGeneratedAudioItemResponse>;\n /**\n * Returns metadata for a conversation item's generated audio. This subordinate artifact is separate from the\n * canonical heard-audio segment and exists only when playback was interrupted and the service rendered more audio\n * than the listener heard, including when the response ends as cancelled. Returns `404` when the conversation or\n * item was not persisted, or when no generated audio exists beyond the heard segment.\n */\n getGeneratedAudioItem: (\n agentName: string,\n conversationId: string,\n itemId: string,\n options?: BetaVoiceAgentsConversationsGetGeneratedAudioItemOptionalParams,\n ) => Promise<VoiceGeneratedAudioItem>;\n /**\n * Streams a single conversation item's audio as a WAV (`audio/wav`) byte stream through the service (no SAS\n * URL). This route serves Foundry-managed storage only. For bring-your-own-storage (BYOS) recordings the\n * bytes are not proxied — the caller must download directly from customer storage using the `blob_uri`\n * returned by the item's `/audio` metadata route — so this route returns `409 Conflict` for BYOS recordings.\n * Returns `404` when the conversation, item, or its audio was not persisted (`store = false`).\n */\n downloadAudioItem: (\n agentName: string,\n conversationId: string,\n itemId: string,\n options?: BetaVoiceAgentsConversationsDownloadAudioItemOptionalParams,\n ) => Promise<BetaVoiceAgentsConversationsDownloadAudioItemResponse>;\n /**\n * Returns metadata for a single conversation item's audio segment, including the common playback facts\n * (role, format/codec, sample rate, channels, offset, duration) for both Foundry-managed and\n * bring-your-own-storage (BYOS) recordings; for BYOS the response additionally includes `blob_uri`, the URI\n * of the recording in the customer's own storage (no SAS) that the customer downloads with their own credentials.\n * Requires the conversation to have persisted audio (`store = true`); returns `404` when the conversation,\n * item, or its audio was not persisted.\n */\n getAudioItem: (\n agentName: string,\n conversationId: string,\n itemId: string,\n options?: BetaVoiceAgentsConversationsGetAudioItemOptionalParams,\n ) => Promise<VoiceAudioItem>;\n /**\n * Retrieves a single item from the specified conversation by its id, including its transcript. An\n * `input_audio`/`output_audio` content part indicates that audio is available for the item; the canonical per-item\n * audio metadata is the `/items/{item_id}/audio` resource, and the bytes are streamed by\n * `/items/{item_id}/audio/content`. Returns `404` when the conversation or item was not persisted\n * (`store = false`).\n */\n getItem: (\n agentName: string,\n conversationId: string,\n itemId: string,\n options?: BetaVoiceAgentsConversationsGetItemOptionalParams,\n ) => Promise<RealtimeConversationItemUnion>;\n /**\n * Returns a paged collection of items — the complete ordered conversation history, including user input,\n * assistant output, and client-created tool outputs (transcripts + tool events). Returns `404` when the\n * conversation was not persisted (`store = false`).\n */\n listItems: (\n agentName: string,\n conversationId: string,\n options?: BetaVoiceAgentsConversationsListItemsOptionalParams,\n ) => PagedAsyncIterableIterator<RealtimeConversationItemUnion>;\n /**\n * Returns a paged collection of the output items produced by a specific response (the response's output\n * projection). For the complete ordered conversation history — including user input and client-created\n * tool outputs — use the conversation items route instead. Returns `404` when the conversation or\n * response was not persisted (`store = false`).\n */\n listResponseItems: (\n agentName: string,\n conversationId: string,\n responseId: string,\n options?: BetaVoiceAgentsConversationsListResponseItemsOptionalParams,\n ) => PagedAsyncIterableIterator<RealtimeConversationItemUnion>;\n /**\n * Retrieves a single response from the specified conversation by its id, including its `output` items,\n * `usage`, and status. Returns `404` when the conversation or response was not persisted (`store = false`).\n */\n getResponse: (\n agentName: string,\n conversationId: string,\n responseId: string,\n options?: BetaVoiceAgentsConversationsGetResponseOptionalParams,\n ) => Promise<VoiceResponse>;\n /**\n * Returns a paged collection of the responses (model inference turns) recorded for the specified\n * conversation. The per-response `output` projection may be omitted here; use the response-items route\n * for the canonical paged output. Returns `404` when the conversation was not persisted (`store = false`).\n */\n listResponses: (\n agentName: string,\n conversationId: string,\n options?: BetaVoiceAgentsConversationsListResponsesOptionalParams,\n ) => PagedAsyncIterableIterator<VoiceResponse>;\n /**\n * Deletes a conversation and all of its stored data — responses, items, and any audio (cascade). This is\n * the customer's explicit data-deletion control for voice conversations.\n */\n delete: (\n agentName: string,\n conversationId: string,\n options?: BetaVoiceAgentsConversationsDeleteOptionalParams,\n ) => Promise<void>;\n /**\n * Retrieves a single conversation recorded for the specified voice agent endpoint by its id.\n * Returns `404` when the conversation was not persisted (`store = false`) or does not exist.\n */\n get: (\n agentName: string,\n conversationId: string,\n options?: BetaVoiceAgentsConversationsGetOptionalParams,\n ) => Promise<VoiceConversation>;\n /**\n * Returns the conversations persisted for the specified voice agent endpoint.\n * Conversations are present when the session's effective `store` setting is `true`, whether inherited from the\n * agent definition or enabled by the WebSocket session override.\n */\n list: (\n agentName: string,\n options?: BetaVoiceAgentsConversationsListOptionalParams,\n ) => PagedAsyncIterableIterator<VoiceConversation>;\n}\n\nfunction _getBetaVoiceAgentsConversations(\n context: AIProjectContext,\n tracingConfig?: ResolvedTracingConfig,\n): BetaVoiceAgentsConversationsOperations {\n return {\n downloadAudio: (\n agentName: string,\n conversationId: string,\n options?: BetaVoiceAgentsConversationsDownloadAudioOptionalParams,\n ) => downloadAudio(context, agentName, conversationId, options),\n getAudio: (\n agentName: string,\n conversationId: string,\n options?: BetaVoiceAgentsConversationsGetAudioOptionalParams,\n ) => getAudio(context, agentName, conversationId, options),\n downloadGeneratedAudioItem: (\n agentName: string,\n conversationId: string,\n itemId: string,\n options?: BetaVoiceAgentsConversationsDownloadGeneratedAudioItemOptionalParams,\n ) => downloadGeneratedAudioItem(context, agentName, conversationId, itemId, options),\n getGeneratedAudioItem: (\n agentName: string,\n conversationId: string,\n itemId: string,\n options?: BetaVoiceAgentsConversationsGetGeneratedAudioItemOptionalParams,\n ) => getGeneratedAudioItem(context, agentName, conversationId, itemId, options),\n downloadAudioItem: (\n agentName: string,\n conversationId: string,\n itemId: string,\n options?: BetaVoiceAgentsConversationsDownloadAudioItemOptionalParams,\n ) => downloadAudioItem(context, agentName, conversationId, itemId, options),\n getAudioItem: (\n agentName: string,\n conversationId: string,\n itemId: string,\n options?: BetaVoiceAgentsConversationsGetAudioItemOptionalParams,\n ) => getAudioItem(context, agentName, conversationId, itemId, options),\n getItem: (\n agentName: string,\n conversationId: string,\n itemId: string,\n options?: BetaVoiceAgentsConversationsGetItemOptionalParams,\n ) => getItem(context, agentName, conversationId, itemId, options),\n listItems: (\n agentName: string,\n conversationId: string,\n options?: BetaVoiceAgentsConversationsListItemsOptionalParams,\n ) => listItems(context, agentName, conversationId, options),\n listResponseItems: (\n agentName: string,\n conversationId: string,\n responseId: string,\n options?: BetaVoiceAgentsConversationsListResponseItemsOptionalParams,\n ) => listResponseItems(context, agentName, conversationId, responseId, options),\n getResponse: (\n agentName: string,\n conversationId: string,\n responseId: string,\n options?: BetaVoiceAgentsConversationsGetResponseOptionalParams,\n ) => getResponse(context, agentName, conversationId, responseId, options),\n listResponses: (\n agentName: string,\n conversationId: string,\n options?: BetaVoiceAgentsConversationsListResponsesOptionalParams,\n ) => listResponses(context, agentName, conversationId, options),\n delete: (\n agentName: string,\n conversationId: string,\n options?: BetaVoiceAgentsConversationsDeleteOptionalParams,\n ) =>\n traceVoiceAgentOperation(\n \"voice_agents.conversations.delete\",\n context.endpoint,\n tracingConfig,\n () => $delete(context, agentName, conversationId, options),\n ),\n get: (\n agentName: string,\n conversationId: string,\n options?: BetaVoiceAgentsConversationsGetOptionalParams,\n ) => get(context, agentName, conversationId, options),\n list: (agentName: string, options?: BetaVoiceAgentsConversationsListOptionalParams) =>\n list(context, agentName, options),\n };\n}\n\nexport function _getBetaVoiceAgentsConversationsOperations(\n context: AIProjectContext,\n tracingConfig?: ResolvedTracingConfig,\n): BetaVoiceAgentsConversationsOperations {\n return { ..._getBetaVoiceAgentsConversations(context, tracingConfig) };\n}\n"]}
|
|
@@ -2,7 +2,8 @@ import type { AIProjectContext } from "../../../api/aiProjectContext.js";
|
|
|
2
2
|
import type { TokenCredential } from "@azure/core-auth";
|
|
3
3
|
import type { BetaVoiceAgentsConversationsOperations } from "./conversations/index.js";
|
|
4
4
|
import type { BetaVoiceAgentsTelephonyOperations } from "./telephony/index.js";
|
|
5
|
-
import { VoiceAgentRealtimeClient,
|
|
5
|
+
import type { VoiceAgentRealtimeClient, VoiceAgentRealtimeClientOptions } from "../../../realtime/voiceAgentRealtimeClient.js";
|
|
6
|
+
import type { ResolvedTracingConfig } from "../../../tracing/configuration.js";
|
|
6
7
|
/** Operations for managing voice agent conversations and telephony. */
|
|
7
8
|
export interface BetaVoiceAgentsOperations {
|
|
8
9
|
/** Operations for managing telephony bindings and calls. */
|
|
@@ -12,5 +13,5 @@ export interface BetaVoiceAgentsOperations {
|
|
|
12
13
|
/** Realtime voice-agent connections. */
|
|
13
14
|
realtime: VoiceAgentRealtimeClient;
|
|
14
15
|
}
|
|
15
|
-
export declare function _getBetaVoiceAgentsOperations(context: AIProjectContext, credential: TokenCredential, endpoint: string, realtimeOptions?: VoiceAgentRealtimeClientOptions): BetaVoiceAgentsOperations;
|
|
16
|
+
export declare function _getBetaVoiceAgentsOperations(context: AIProjectContext, credential: TokenCredential, endpoint: string, realtimeOptions?: VoiceAgentRealtimeClientOptions, tracingConfig?: ResolvedTracingConfig): BetaVoiceAgentsOperations;
|
|
16
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/classic/beta/voiceAgents/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,0BAA0B,CAAC;AAEvF,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,sBAAsB,CAAC;AAE/E,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/classic/beta/voiceAgents/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,0BAA0B,CAAC;AAEvF,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,sBAAsB,CAAC;AAE/E,OAAO,KAAK,EACV,wBAAwB,EACxB,+BAA+B,EAChC,MAAM,+CAA+C,CAAC;AAEvD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAE/E,uEAAuE;AACvE,MAAM,WAAW,yBAAyB;IACxC,4DAA4D;IAC5D,SAAS,EAAE,kCAAkC,CAAC;IAC9C,sEAAsE;IACtE,aAAa,EAAE,sCAAsC,CAAC;IACtD,wCAAwC;IACxC,QAAQ,EAAE,wBAAwB,CAAC;CACpC;AAED,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,gBAAgB,EACzB,UAAU,EAAE,eAAe,EAC3B,QAAQ,EAAE,MAAM,EAChB,eAAe,CAAC,EAAE,+BAA+B,EACjD,aAAa,CAAC,EAAE,qBAAqB,GACpC,yBAAyB,CAS3B"}
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
import { _getBetaVoiceAgentsConversationsOperations } from "./conversations/index.js";
|
|
4
4
|
import { _getBetaVoiceAgentsTelephonyOperations } from "./telephony/index.js";
|
|
5
|
-
import {
|
|
6
|
-
export function _getBetaVoiceAgentsOperations(context, credential, endpoint, realtimeOptions) {
|
|
5
|
+
import { createVoiceAgentRealtimeClient } from "../../../realtime/voiceAgentRealtimeClient.js";
|
|
6
|
+
export function _getBetaVoiceAgentsOperations(context, credential, endpoint, realtimeOptions, tracingConfig) {
|
|
7
7
|
return {
|
|
8
|
-
telephony: _getBetaVoiceAgentsTelephonyOperations(context),
|
|
9
|
-
conversations: _getBetaVoiceAgentsConversationsOperations(context),
|
|
8
|
+
telephony: _getBetaVoiceAgentsTelephonyOperations(context, tracingConfig),
|
|
9
|
+
conversations: _getBetaVoiceAgentsConversationsOperations(context, tracingConfig),
|
|
10
10
|
// VoiceAgentRealtimeClient defers https-only endpoint validation to connect() (not its
|
|
11
11
|
// constructor), so eagerly constructing it here doesn't reject callers who intentionally use an
|
|
12
12
|
// insecure local endpoint for the REST surface and never touch realtime connections.
|
|
13
|
-
realtime:
|
|
13
|
+
realtime: createVoiceAgentRealtimeClient(endpoint, credential, realtimeOptions, tracingConfig),
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/classic/beta/voiceAgents/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAKlC,OAAO,EAAE,0CAA0C,EAAE,MAAM,0BAA0B,CAAC;AAEtF,OAAO,EAAE,sCAAsC,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/classic/beta/voiceAgents/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAKlC,OAAO,EAAE,0CAA0C,EAAE,MAAM,0BAA0B,CAAC;AAEtF,OAAO,EAAE,sCAAsC,EAAE,MAAM,sBAAsB,CAAC;AAK9E,OAAO,EAAE,8BAA8B,EAAE,MAAM,+CAA+C,CAAC;AAa/F,MAAM,UAAU,6BAA6B,CAC3C,OAAyB,EACzB,UAA2B,EAC3B,QAAgB,EAChB,eAAiD,EACjD,aAAqC;IAErC,OAAO;QACL,SAAS,EAAE,sCAAsC,CAAC,OAAO,EAAE,aAAa,CAAC;QACzE,aAAa,EAAE,0CAA0C,CAAC,OAAO,EAAE,aAAa,CAAC;QACjF,uFAAuF;QACvF,gGAAgG;QAChG,qFAAqF;QACrF,QAAQ,EAAE,8BAA8B,CAAC,QAAQ,EAAE,UAAU,EAAE,eAAe,EAAE,aAAa,CAAC;KAC/F,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AIProjectContext } from \"../../../api/aiProjectContext.js\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport type { BetaVoiceAgentsConversationsOperations } from \"./conversations/index.js\";\nimport { _getBetaVoiceAgentsConversationsOperations } from \"./conversations/index.js\";\nimport type { BetaVoiceAgentsTelephonyOperations } from \"./telephony/index.js\";\nimport { _getBetaVoiceAgentsTelephonyOperations } from \"./telephony/index.js\";\nimport type {\n VoiceAgentRealtimeClient,\n VoiceAgentRealtimeClientOptions,\n} from \"../../../realtime/voiceAgentRealtimeClient.js\";\nimport { createVoiceAgentRealtimeClient } from \"../../../realtime/voiceAgentRealtimeClient.js\";\nimport type { ResolvedTracingConfig } from \"../../../tracing/configuration.js\";\n\n/** Operations for managing voice agent conversations and telephony. */\nexport interface BetaVoiceAgentsOperations {\n /** Operations for managing telephony bindings and calls. */\n telephony: BetaVoiceAgentsTelephonyOperations;\n /** Operations for reading persisted voice conversations and audio. */\n conversations: BetaVoiceAgentsConversationsOperations;\n /** Realtime voice-agent connections. */\n realtime: VoiceAgentRealtimeClient;\n}\n\nexport function _getBetaVoiceAgentsOperations(\n context: AIProjectContext,\n credential: TokenCredential,\n endpoint: string,\n realtimeOptions?: VoiceAgentRealtimeClientOptions,\n tracingConfig?: ResolvedTracingConfig,\n): BetaVoiceAgentsOperations {\n return {\n telephony: _getBetaVoiceAgentsTelephonyOperations(context, tracingConfig),\n conversations: _getBetaVoiceAgentsConversationsOperations(context, tracingConfig),\n // VoiceAgentRealtimeClient defers https-only endpoint validation to connect() (not its\n // constructor), so eagerly constructing it here doesn't reject callers who intentionally use an\n // insecure local endpoint for the REST surface and never touch realtime connections.\n realtime: createVoiceAgentRealtimeClient(endpoint, credential, realtimeOptions, tracingConfig),\n };\n}\n"]}
|
|
@@ -2,6 +2,7 @@ import type { AIProjectContext } from "../../../../api/aiProjectContext.js";
|
|
|
2
2
|
import type { BetaVoiceAgentsTelephonyCancelCallJobOptionalParams, BetaVoiceAgentsTelephonyGetCallJobOptionalParams, BetaVoiceAgentsTelephonyCreateCallJobOptionalParams, BetaVoiceAgentsTelephonyCreateBindingOptionalParams, BetaVoiceAgentsTelephonyDeleteBindingOptionalParams, BetaVoiceAgentsTelephonyEndCallOptionalParams, BetaVoiceAgentsTelephonyGetBindingOptionalParams, BetaVoiceAgentsTelephonyGetCallOptionalParams, BetaVoiceAgentsTelephonyGetTransferTargetsOptionalParams, BetaVoiceAgentsTelephonyListBindingsOptionalParams, BetaVoiceAgentsTelephonyListCallsOptionalParams, BetaVoiceAgentsTelephonyReplaceTransferTargetsOptionalParams, BetaVoiceAgentsTelephonyTransferCallOptionalParams, BetaVoiceAgentsTelephonyUpdateBindingOptionalParams } from "../../../../api/beta/voiceAgents/telephony/options.js";
|
|
3
3
|
import type { CreateTelephonyCallJobRequest, TelephonyCallJob, CreateTelephonyBindingRequestUnion, TelephonyBindingListItemUnion, TelephonyBindingUnion, TelephonyCallRecord, TelephonyCallSummary, TelephonyTransferTarget, TelephonyTransferTargets, UpdateTelephonyBindingRequest } from "../../../../models/models.js";
|
|
4
4
|
import type { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
5
|
+
import type { ResolvedTracingConfig } from "../../../../tracing/configuration.js";
|
|
5
6
|
/** Operations for managing voice agent telephony. */
|
|
6
7
|
export interface BetaVoiceAgentsTelephonyOperations {
|
|
7
8
|
/** Requests cancellation of a durable outbound call job. A connected call is allowed to finish. */
|
|
@@ -33,5 +34,5 @@ export interface BetaVoiceAgentsTelephonyOperations {
|
|
|
33
34
|
/** Creates a telephony binding for the voice agent named in the path. */
|
|
34
35
|
createBinding: (agentName: string, telephonyBinding: CreateTelephonyBindingRequestUnion, options?: BetaVoiceAgentsTelephonyCreateBindingOptionalParams) => Promise<TelephonyBindingUnion>;
|
|
35
36
|
}
|
|
36
|
-
export declare function _getBetaVoiceAgentsTelephonyOperations(context: AIProjectContext): BetaVoiceAgentsTelephonyOperations;
|
|
37
|
+
export declare function _getBetaVoiceAgentsTelephonyOperations(context: AIProjectContext, tracingConfig?: ResolvedTracingConfig): BetaVoiceAgentsTelephonyOperations;
|
|
37
38
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/classic/beta/voiceAgents/telephony/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAiB5E,OAAO,KAAK,EACV,mDAAmD,EACnD,gDAAgD,EAChD,mDAAmD,EACnD,mDAAmD,EACnD,mDAAmD,EACnD,6CAA6C,EAC7C,gDAAgD,EAChD,6CAA6C,EAC7C,wDAAwD,EACxD,kDAAkD,EAClD,+CAA+C,EAC/C,4DAA4D,EAC5D,kDAAkD,EAClD,mDAAmD,EACpD,MAAM,uDAAuD,CAAC;AAC/D,OAAO,KAAK,EACV,6BAA6B,EAC7B,gBAAgB,EAChB,kCAAkC,EAClC,6BAA6B,EAC7B,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,uBAAuB,EACvB,wBAAwB,EACxB,6BAA6B,EAC9B,MAAM,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/classic/beta/voiceAgents/telephony/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAiB5E,OAAO,KAAK,EACV,mDAAmD,EACnD,gDAAgD,EAChD,mDAAmD,EACnD,mDAAmD,EACnD,mDAAmD,EACnD,6CAA6C,EAC7C,gDAAgD,EAChD,6CAA6C,EAC7C,wDAAwD,EACxD,kDAAkD,EAClD,+CAA+C,EAC/C,4DAA4D,EAC5D,kDAAkD,EACl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AC,CAAC;IAC/D,yEAAyE;IACzE,aAAa,EAAE,CACb,SAAS,EAAE,MAAM,EACjB,gBAAgB,EAAE,kCAAkC,EACpD,OAAO,CAAC,EAAE,mDAAmD,KAC1D,OAAO,CAAC,qBAAqB,CAAC,CAAC;CACrC;AA2GD,wBAAgB,sCAAsC,CACpD,OAAO,EAAE,gBAAgB,EACzB,aAAa,CAAC,EAAE,qBAAqB,GACpC,kCAAkC,CAEpC"}
|
|
@@ -1,25 +1,30 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
import { cancelCallJob, getCallJob, createCallJob, createBinding, deleteBinding, endCall, getBinding, getCall, getTransferTargets, listBindings, listCalls, replaceTransferTargets, transferCall, updateBinding, } from "../../../../api/beta/voiceAgents/telephony/operations.js";
|
|
4
|
-
|
|
4
|
+
import { traceVoiceAgentOperation } from "../../../../tracing/voiceAgentTracing.js";
|
|
5
|
+
function _getBetaVoiceAgentsTelephony(context, tracingConfig) {
|
|
6
|
+
const run = (name, operation) => traceVoiceAgentOperation(`voice_agents.telephony.${name}`, context.endpoint, tracingConfig, operation);
|
|
5
7
|
return {
|
|
6
|
-
cancelCallJob: (agentName, callJobId, ifMatch, options) => cancelCallJob(context, agentName, callJobId, ifMatch, options),
|
|
8
|
+
cancelCallJob: (agentName, callJobId, ifMatch, options) => run("cancel_call_job", () => cancelCallJob(context, agentName, callJobId, ifMatch, options)),
|
|
7
9
|
getCallJob: (agentName, callJobId, options) => getCallJob(context, agentName, callJobId, options),
|
|
8
|
-
createCallJob: (agentName, idempotencyKey, body, options) => createCallJob(context, agentName, idempotencyKey, body, options),
|
|
9
|
-
|
|
10
|
+
createCallJob: (agentName, idempotencyKey, body, options) => traceVoiceAgentOperation("voice_agents.telephony.create_call_job", context.endpoint, tracingConfig, () => createCallJob(context, agentName, idempotencyKey, body, options), (job) => ({
|
|
11
|
+
"az.ai.voice_agents.telephony.call_job.id": job.id,
|
|
12
|
+
"az.ai.voice_agents.call_job.status": job.status,
|
|
13
|
+
})),
|
|
14
|
+
replaceTransferTargets: (agentName, ifMatch, transferTargets, options) => run("replace_transfer_targets", () => replaceTransferTargets(context, agentName, ifMatch, transferTargets, options)),
|
|
10
15
|
getTransferTargets: (agentName, options) => getTransferTargets(context, agentName, options),
|
|
11
|
-
endCall: (agentName, callId, options) => endCall(context, agentName, callId, options),
|
|
12
|
-
transferCall: (agentName, callId, target, options) => transferCall(context, agentName, callId, target, options),
|
|
16
|
+
endCall: (agentName, callId, options) => run("end_call", () => endCall(context, agentName, callId, options)),
|
|
17
|
+
transferCall: (agentName, callId, target, options) => run("transfer_call", () => transferCall(context, agentName, callId, target, options)),
|
|
13
18
|
getCall: (agentName, callId, options) => getCall(context, agentName, callId, options),
|
|
14
19
|
listCalls: (agentName, options) => listCalls(context, agentName, options),
|
|
15
|
-
deleteBinding: (agentName, bindingId, ifMatch, options) => deleteBinding(context, agentName, bindingId, ifMatch, options),
|
|
16
|
-
updateBinding: (agentName, bindingId, ifMatch, body, options) => updateBinding(context, agentName, bindingId, ifMatch, body, options),
|
|
20
|
+
deleteBinding: (agentName, bindingId, ifMatch, options) => run("delete_binding", () => deleteBinding(context, agentName, bindingId, ifMatch, options)),
|
|
21
|
+
updateBinding: (agentName, bindingId, ifMatch, body, options) => run("update_binding", () => updateBinding(context, agentName, bindingId, ifMatch, body, options)),
|
|
17
22
|
getBinding: (agentName, bindingId, options) => getBinding(context, agentName, bindingId, options),
|
|
18
23
|
listBindings: (agentName, options) => listBindings(context, agentName, options),
|
|
19
|
-
createBinding: (agentName, telephonyBinding, options) => createBinding(context, agentName, telephonyBinding, options),
|
|
24
|
+
createBinding: (agentName, telephonyBinding, options) => run("create_binding", () => createBinding(context, agentName, telephonyBinding, options)),
|
|
20
25
|
};
|
|
21
26
|
}
|
|
22
|
-
export function _getBetaVoiceAgentsTelephonyOperations(context) {
|
|
23
|
-
return { ..._getBetaVoiceAgentsTelephony(context) };
|
|
27
|
+
export function _getBetaVoiceAgentsTelephonyOperations(context, tracingConfig) {
|
|
28
|
+
return { ..._getBetaVoiceAgentsTelephony(context, tracingConfig) };
|
|
24
29
|
}
|
|
25
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/classic/beta/voiceAgents/telephony/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,aAAa,EACb,UAAU,EACV,aAAa,EACb,aAAa,EACb,aAAa,EACb,OAAO,EACP,UAAU,EACV,OAAO,EACP,kBAAkB,EAClB,YAAY,EACZ,SAAS,EACT,sBAAsB,EACtB,YAAY,EACZ,aAAa,GACd,MAAM,0DAA0D,CAAC;AA4HlE,SAAS,4BAA4B,CACnC,OAAyB;IAEzB,OAAO;QACL,aAAa,EAAE,CACb,SAAiB,EACjB,SAAiB,EACjB,OAAe,EACf,OAA6D,EAC7D,EAAE,CAAC,aAAa,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,CAAC;QACnE,UAAU,EAAE,CACV,SAAiB,EACjB,SAAiB,EACjB,OAA0D,EAC1D,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC;QACvD,aAAa,EAAE,CACb,SAAiB,EACjB,cAAsB,EACtB,IAAmC,EACnC,OAA6D,EAC7D,EAAE,CAAC,aAAa,CAAC,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,IAAI,EAAE,OAAO,CAAC;QACrE,sBAAsB,EAAE,CACtB,SAAiB,EACjB,OAAe,EACf,eAA0C,EAC1C,OAAsE,EACtE,EAAE,CAAC,sBAAsB,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe,EAAE,OAAO,CAAC;QAClF,kBAAkB,EAAE,CAClB,SAAiB,EACjB,OAAkE,EAClE,EAAE,CAAC,kBAAkB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7D,EAAE,CAAC,aAAa,CAAC,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,OAAO,CAAC;KAClE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,sCAAsC,CACpD,OAAyB;IAEzB,OAAO,EAAE,GAAG,4BAA4B,CAAC,OAAO,CAAC,EAAE,CAAC;AACtD,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AIProjectContext } from \"../../../../api/aiProjectContext.js\";\nimport {\n cancelCallJob,\n getCallJob,\n createCallJob,\n createBinding,\n deleteBinding,\n endCall,\n getBinding,\n getCall,\n getTransferTargets,\n listBindings,\n listCalls,\n replaceTransferTargets,\n transferCall,\n updateBinding,\n} from \"../../../../api/beta/voiceAgents/telephony/operations.js\";\nimport type {\n BetaVoiceAgentsTelephonyCancelCallJobOptionalParams,\n BetaVoiceAgentsTelephonyGetCallJobOptionalParams,\n BetaVoiceAgentsTelephonyCreateCallJobOptionalParams,\n BetaVoiceAgentsTelephonyCreateBindingOptionalParams,\n BetaVoiceAgentsTelephonyDeleteBindingOptionalParams,\n BetaVoiceAgentsTelephonyEndCallOptionalParams,\n BetaVoiceAgentsTelephonyGetBindingOptionalParams,\n BetaVoiceAgentsTelephonyGetCallOptionalParams,\n BetaVoiceAgentsTelephonyGetTransferTargetsOptionalParams,\n BetaVoiceAgentsTelephonyListBindingsOptionalParams,\n BetaVoiceAgentsTelephonyListCallsOptionalParams,\n BetaVoiceAgentsTelephonyReplaceTransferTargetsOptionalParams,\n BetaVoiceAgentsTelephonyTransferCallOptionalParams,\n BetaVoiceAgentsTelephonyUpdateBindingOptionalParams,\n} from \"../../../../api/beta/voiceAgents/telephony/options.js\";\nimport type {\n CreateTelephonyCallJobRequest,\n TelephonyCallJob,\n CreateTelephonyBindingRequestUnion,\n TelephonyBindingListItemUnion,\n TelephonyBindingUnion,\n TelephonyCallRecord,\n TelephonyCallSummary,\n TelephonyTransferTarget,\n TelephonyTransferTargets,\n UpdateTelephonyBindingRequest,\n} from \"../../../../models/models.js\";\n\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\n\n/** Operations for managing voice agent telephony. */\nexport interface BetaVoiceAgentsTelephonyOperations {\n /** Requests cancellation of a durable outbound call job. A connected call is allowed to finish. */\n cancelCallJob: (\n agentName: string,\n callJobId: string,\n ifMatch: string,\n options?: BetaVoiceAgentsTelephonyCancelCallJobOptionalParams,\n ) => Promise<TelephonyCallJob>;\n /** Retrieves a durable direct or campaign-created outbound call job. */\n getCallJob: (\n agentName: string,\n callJobId: string,\n options?: BetaVoiceAgentsTelephonyGetCallJobOptionalParams,\n ) => Promise<TelephonyCallJob>;\n /** Creates one durable direct outbound call job. The latest agent definition is resolved when each attempt executes. */\n createCallJob: (\n agentName: string,\n idempotencyKey: string,\n body: CreateTelephonyCallJobRequest,\n options?: BetaVoiceAgentsTelephonyCreateCallJobOptionalParams,\n ) => Promise<TelephonyCallJob>;\n /** Replaces all transfer targets configured for the voice agent named in the path. */\n replaceTransferTargets: (\n agentName: string,\n ifMatch: string,\n transferTargets: TelephonyTransferTarget[],\n options?: BetaVoiceAgentsTelephonyReplaceTransferTargetsOptionalParams,\n ) => Promise<TelephonyTransferTargets>;\n /** Returns all transfer targets configured for the voice agent named in the path. */\n getTransferTargets: (\n agentName: string,\n options?: BetaVoiceAgentsTelephonyGetTransferTargetsOptionalParams,\n ) => Promise<TelephonyTransferTargets>;\n /** Ends an active inbound call owned by the voice agent named in the path. */\n endCall: (\n agentName: string,\n callId: string,\n options?: BetaVoiceAgentsTelephonyEndCallOptionalParams,\n ) => Promise<TelephonyCallRecord>;\n /** Transfers an active inbound call to a configured target for the voice agent named in the path. */\n transferCall: (\n agentName: string,\n callId: string,\n target: string,\n options?: BetaVoiceAgentsTelephonyTransferCallOptionalParams,\n ) => Promise<TelephonyCallRecord>;\n /** Retrieves a durable inbound call record owned by the voice agent named in the path. */\n getCall: (\n agentName: string,\n callId: string,\n options?: BetaVoiceAgentsTelephonyGetCallOptionalParams,\n ) => Promise<TelephonyCallRecord>;\n /** Returns the durable inbound call history for the voice agent named in the path. */\n listCalls: (\n agentName: string,\n options?: BetaVoiceAgentsTelephonyListCallsOptionalParams,\n ) => PagedAsyncIterableIterator<TelephonyCallSummary>;\n /** Deletes a telephony binding owned by the voice agent named in the path. */\n deleteBinding: (\n agentName: string,\n bindingId: string,\n ifMatch: string,\n options?: BetaVoiceAgentsTelephonyDeleteBindingOptionalParams,\n ) => Promise<void>;\n /** Updates a telephony binding owned by the voice agent named in the path. */\n updateBinding: (\n agentName: string,\n bindingId: string,\n ifMatch: string,\n body: UpdateTelephonyBindingRequest,\n options?: BetaVoiceAgentsTelephonyUpdateBindingOptionalParams,\n ) => Promise<TelephonyBindingUnion>;\n /** Retrieves a telephony binding owned by the voice agent named in the path. */\n getBinding: (\n agentName: string,\n bindingId: string,\n options?: BetaVoiceAgentsTelephonyGetBindingOptionalParams,\n ) => Promise<TelephonyBindingUnion>;\n /** Returns the telephony bindings owned by the voice agent named in the path. */\n listBindings: (\n agentName: string,\n options?: BetaVoiceAgentsTelephonyListBindingsOptionalParams,\n ) => PagedAsyncIterableIterator<TelephonyBindingListItemUnion>;\n /** Creates a telephony binding for the voice agent named in the path. */\n createBinding: (\n agentName: string,\n telephonyBinding: CreateTelephonyBindingRequestUnion,\n options?: BetaVoiceAgentsTelephonyCreateBindingOptionalParams,\n ) => Promise<TelephonyBindingUnion>;\n}\n\nfunction _getBetaVoiceAgentsTelephony(\n context: AIProjectContext,\n): BetaVoiceAgentsTelephonyOperations {\n return {\n cancelCallJob: (\n agentName: string,\n callJobId: string,\n ifMatch: string,\n options?: BetaVoiceAgentsTelephonyCancelCallJobOptionalParams,\n ) => cancelCallJob(context, agentName, callJobId, ifMatch, options),\n getCallJob: (\n agentName: string,\n callJobId: string,\n options?: BetaVoiceAgentsTelephonyGetCallJobOptionalParams,\n ) => getCallJob(context, agentName, callJobId, options),\n createCallJob: (\n agentName: string,\n idempotencyKey: string,\n body: CreateTelephonyCallJobRequest,\n options?: BetaVoiceAgentsTelephonyCreateCallJobOptionalParams,\n ) => createCallJob(context, agentName, idempotencyKey, body, options),\n replaceTransferTargets: (\n agentName: string,\n ifMatch: string,\n transferTargets: TelephonyTransferTarget[],\n options?: BetaVoiceAgentsTelephonyReplaceTransferTargetsOptionalParams,\n ) => replaceTransferTargets(context, agentName, ifMatch, transferTargets, options),\n getTransferTargets: (\n agentName: string,\n options?: BetaVoiceAgentsTelephonyGetTransferTargetsOptionalParams,\n ) => getTransferTargets(context, agentName, options),\n endCall: (\n agentName: string,\n callId: string,\n options?: BetaVoiceAgentsTelephonyEndCallOptionalParams,\n ) => endCall(context, agentName, callId, options),\n transferCall: (\n agentName: string,\n callId: string,\n target: string,\n options?: BetaVoiceAgentsTelephonyTransferCallOptionalParams,\n ) => transferCall(context, agentName, callId, target, options),\n getCall: (\n agentName: string,\n callId: string,\n options?: BetaVoiceAgentsTelephonyGetCallOptionalParams,\n ) => getCall(context, agentName, callId, options),\n listCalls: (agentName: string, options?: BetaVoiceAgentsTelephonyListCallsOptionalParams) =>\n listCalls(context, agentName, options),\n deleteBinding: (\n agentName: string,\n bindingId: string,\n ifMatch: string,\n options?: BetaVoiceAgentsTelephonyDeleteBindingOptionalParams,\n ) => deleteBinding(context, agentName, bindingId, ifMatch, options),\n updateBinding: (\n agentName: string,\n bindingId: string,\n ifMatch: string,\n body: UpdateTelephonyBindingRequest,\n options?: BetaVoiceAgentsTelephonyUpdateBindingOptionalParams,\n ) => updateBinding(context, agentName, bindingId, ifMatch, body, options),\n getBinding: (\n agentName: string,\n bindingId: string,\n options?: BetaVoiceAgentsTelephonyGetBindingOptionalParams,\n ) => getBinding(context, agentName, bindingId, options),\n listBindings: (\n agentName: string,\n options?: BetaVoiceAgentsTelephonyListBindingsOptionalParams,\n ) => listBindings(context, agentName, options),\n createBinding: (\n agentName: string,\n telephonyBinding: CreateTelephonyBindingRequestUnion,\n options?: BetaVoiceAgentsTelephonyCreateBindingOptionalParams,\n ) => createBinding(context, agentName, telephonyBinding, options),\n };\n}\n\nexport function _getBetaVoiceAgentsTelephonyOperations(\n context: AIProjectContext,\n): BetaVoiceAgentsTelephonyOperations {\n return { ..._getBetaVoiceAgentsTelephony(context) };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/classic/beta/voiceAgents/telephony/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,aAAa,EACb,UAAU,EACV,aAAa,EACb,aAAa,EACb,aAAa,EACb,OAAO,EACP,UAAU,EACV,OAAO,EACP,kBAAkB,EAClB,YAAY,EACZ,SAAS,EACT,sBAAsB,EACtB,YAAY,EACZ,aAAa,GACd,MAAM,0DAA0D,CAAC;AAgClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AA8FpF,SAAS,4BAA4B,CACnC,OAAyB,EACzB,aAAqC;IAErC,MAAM,GAAG,GAAG,CAAI,IAAY,EAAE,SAA2B,EAAc,EAAE,CACvE,wBAAwB,CACtB,0BAA0B,IAAI,EAAE,EAChC,OAAO,CAAC,QAAQ,EAChB,aAAa,EACb,SAAS,CACV,CAAC;IACJ,OAAO;QACL,aAAa,EAAE,CACb,SAAiB,EACjB,SAAiB,EACjB,OAAe,EACf,OAA6D,EAC7D,EAAE,CACF,GAAG,CAAC,iBAAiB,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QAC9F,UAAU,EAAE,CACV,SAAiB,EACjB,SAAiB,EACjB,OAA0D,EAC1D,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC;QACvD,aAAa,EAAE,CACb,SAAiB,EACjB,cAAsB,EACtB,IAAmC,EACnC,OAA6D,EAC7D,EAAE,CACF,wBAAwB,CACtB,wCAAwC,EACxC,OAA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AE,CACb,SAAiB,EACjB,SAAiB,EACjB,OAAe,EACf,OAA6D,EAC7D,EAAE,CACF,GAAG,CAAC,gBAAgB,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QAC7F,aAAa,EAAE,CACb,SAAiB,EACjB,SAAiB,EACjB,OAAe,EACf,IAAmC,EACnC,OAA6D,EAC7D,EAAE,CACF,GAAG,CAAC,gBAAgB,EAAE,GAAG,EAAE,CACzB,aAAa,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CACrE;QACH,UAAU,EAAE,CACV,SAAiB,EACjB,SAAiB,EACjB,OAA0D,EAC1D,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC;QACvD,YAAY,EAAE,CACZ,SAAiB,EACjB,OAA4D,EAC5D,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC;QAC9C,aAAa,EAAE,CACb,SAAiB,EACjB,gBAAoD,EACpD,OAA6D,EAC7D,EAAE,CAAC,GAAG,CAAC,gBAAgB,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC;KAC/F,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,sCAAsC,CACpD,OAAyB,EACzB,aAAqC;IAErC,OAAO,EAAE,GAAG,4BAA4B,CAAC,OAAO,EAAE,aAAa,CAAC,EAAE,CAAC;AACrE,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AIProjectContext } from \"../../../../api/aiProjectContext.js\";\nimport {\n cancelCallJob,\n getCallJob,\n createCallJob,\n createBinding,\n deleteBinding,\n endCall,\n getBinding,\n getCall,\n getTransferTargets,\n listBindings,\n listCalls,\n replaceTransferTargets,\n transferCall,\n updateBinding,\n} from \"../../../../api/beta/voiceAgents/telephony/operations.js\";\nimport type {\n BetaVoiceAgentsTelephonyCancelCallJobOptionalParams,\n BetaVoiceAgentsTelephonyGetCallJobOptionalParams,\n BetaVoiceAgentsTelephonyCreateCallJobOptionalParams,\n BetaVoiceAgentsTelephonyCreateBindingOptionalParams,\n BetaVoiceAgentsTelephonyDeleteBindingOptionalParams,\n BetaVoiceAgentsTelephonyEndCallOptionalParams,\n BetaVoiceAgentsTelephonyGetBindingOptionalParams,\n BetaVoiceAgentsTelephonyGetCallOptionalParams,\n BetaVoiceAgentsTelephonyGetTransferTargetsOptionalParams,\n BetaVoiceAgentsTelephonyListBindingsOptionalParams,\n BetaVoiceAgentsTelephonyListCallsOptionalParams,\n BetaVoiceAgentsTelephonyReplaceTransferTargetsOptionalParams,\n BetaVoiceAgentsTelephonyTransferCallOptionalParams,\n BetaVoiceAgentsTelephonyUpdateBindingOptionalParams,\n} from \"../../../../api/beta/voiceAgents/telephony/options.js\";\nimport type {\n CreateTelephonyCallJobRequest,\n TelephonyCallJob,\n CreateTelephonyBindingRequestUnion,\n TelephonyBindingListItemUnion,\n TelephonyBindingUnion,\n TelephonyCallRecord,\n TelephonyCallSummary,\n TelephonyTransferTarget,\n TelephonyTransferTargets,\n UpdateTelephonyBindingRequest,\n} from \"../../../../models/models.js\";\n\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport type { ResolvedTracingConfig } from \"../../../../tracing/configuration.js\";\nimport { traceVoiceAgentOperation } from \"../../../../tracing/voiceAgentTracing.js\";\n\n/** Operations for managing voice agent telephony. */\nexport interface BetaVoiceAgentsTelephonyOperations {\n /** Requests cancellation of a durable outbound call job. A connected call is allowed to finish. */\n cancelCallJob: (\n agentName: string,\n callJobId: string,\n ifMatch: string,\n options?: BetaVoiceAgentsTelephonyCancelCallJobOptionalParams,\n ) => Promise<TelephonyCallJob>;\n /** Retrieves a durable direct or campaign-created outbound call job. */\n getCallJob: (\n agentName: string,\n callJobId: string,\n options?: BetaVoiceAgentsTelephonyGetCallJobOptionalParams,\n ) => Promise<TelephonyCallJob>;\n /** Creates one durable direct outbound call job. The latest agent definition is resolved when each attempt executes. */\n createCallJob: (\n agentName: string,\n idempotencyKey: string,\n body: CreateTelephonyCallJobRequest,\n options?: BetaVoiceAgentsTelephonyCreateCallJobOptionalParams,\n ) => Promise<TelephonyCallJob>;\n /** Replaces all transfer targets configured for the voice agent named in the path. */\n replaceTransferTargets: (\n agentName: string,\n ifMatch: string,\n transferTargets: TelephonyTransferTarget[],\n options?: BetaVoiceAgentsTelephonyReplaceTransferTargetsOptionalParams,\n ) => Promise<TelephonyTransferTargets>;\n /** Returns all transfer targets configured for the voice agent named in the path. */\n getTransferTargets: (\n agentName: string,\n options?: BetaVoiceAgentsTelephonyGetTransferTargetsOptionalParams,\n ) => Promise<TelephonyTransferTargets>;\n /** Ends an active inbound call owned by the voice agent named in the path. */\n endCall: (\n agentName: string,\n callId: string,\n options?: BetaVoiceAgentsTelephonyEndCallOptionalParams,\n ) => Promise<TelephonyCallRecord>;\n /** Transfers an active inbound call to a configured target for the voice agent named in the path. */\n transferCall: (\n agentName: string,\n callId: string,\n target: string,\n options?: BetaVoiceAgentsTelephonyTransferCallOptionalParams,\n ) => Promise<TelephonyCallRecord>;\n /** Retrieves a durable inbound call record owned by the voice agent named in the path. */\n getCall: (\n agentName: string,\n callId: string,\n options?: BetaVoiceAgentsTelephonyGetCallOptionalParams,\n ) => Promise<TelephonyCallRecord>;\n /** Returns the durable inbound call history for the voice agent named in the path. */\n listCalls: (\n agentName: string,\n options?: BetaVoiceAgentsTelephonyListCallsOptionalParams,\n ) => PagedAsyncIterableIterator<TelephonyCallSummary>;\n /** Deletes a telephony binding owned by the voice agent named in the path. */\n deleteBinding: (\n agentName: string,\n bindingId: string,\n ifMatch: string,\n options?: BetaVoiceAgentsTelephonyDeleteBindingOptionalParams,\n ) => Promise<void>;\n /** Updates a telephony binding owned by the voice agent named in the path. */\n updateBinding: (\n agentName: string,\n bindingId: string,\n ifMatch: string,\n body: UpdateTelephonyBindingRequest,\n options?: BetaVoiceAgentsTelephonyUpdateBindingOptionalParams,\n ) => Promise<TelephonyBindingUnion>;\n /** Retrieves a telephony binding owned by the voice agent named in the path. */\n getBinding: (\n agentName: string,\n bindingId: string,\n options?: BetaVoiceAgentsTelephonyGetBindingOptionalParams,\n ) => Promise<TelephonyBindingUnion>;\n /** Returns the telephony bindings owned by the voice agent named in the path. */\n listBindings: (\n agentName: string,\n options?: BetaVoiceAgentsTelephonyListBindingsOptionalParams,\n ) => PagedAsyncIterableIterator<TelephonyBindingListItemUnion>;\n /** Creates a telephony binding for the voice agent named in the path. */\n createBinding: (\n agentName: string,\n telephonyBinding: CreateTelephonyBindingRequestUnion,\n options?: BetaVoiceAgentsTelephonyCreateBindingOptionalParams,\n ) => Promise<TelephonyBindingUnion>;\n}\n\nfunction _getBetaVoiceAgentsTelephony(\n context: AIProjectContext,\n tracingConfig?: ResolvedTracingConfig,\n): BetaVoiceAgentsTelephonyOperations {\n const run = <T>(name: string, operation: () => Promise<T>): Promise<T> =>\n traceVoiceAgentOperation(\n `voice_agents.telephony.${name}`,\n context.endpoint,\n tracingConfig,\n operation,\n );\n return {\n cancelCallJob: (\n agentName: string,\n callJobId: string,\n ifMatch: string,\n options?: BetaVoiceAgentsTelephonyCancelCallJobOptionalParams,\n ) =>\n run(\"cancel_call_job\", () => cancelCallJob(context, agentName, callJobId, ifMatch, options)),\n getCallJob: (\n agentName: string,\n callJobId: string,\n options?: BetaVoiceAgentsTelephonyGetCallJobOptionalParams,\n ) => getCallJob(context, agentName, callJobId, options),\n createCallJob: (\n agentName: string,\n idempotencyKey: string,\n body: CreateTelephonyCallJobRequest,\n options?: BetaVoiceAgentsTelephonyCreateCallJobOptionalParams,\n ) =>\n traceVoiceAgentOperation(\n \"voice_agents.telephony.create_call_job\",\n context.endpoint,\n tracingConfig,\n () => createCallJob(context, agentName, idempotencyKey, body, options),\n (job) => ({\n \"az.ai.voice_agents.telephony.call_job.id\": job.id,\n \"az.ai.voice_agents.call_job.status\": job.status,\n }),\n ),\n replaceTransferTargets: (\n agentName: string,\n ifMatch: string,\n transferTargets: TelephonyTransferTarget[],\n options?: BetaVoiceAgentsTelephonyReplaceTransferTargetsOptionalParams,\n ) =>\n run(\"replace_transfer_targets\", () =>\n replaceTransferTargets(context, agentName, ifMatch, transferTargets, options),\n ),\n getTransferTargets: (\n agentName: string,\n options?: BetaVoiceAgentsTelephonyGetTransferTargetsOptionalParams,\n ) => getTransferTargets(context, agentName, options),\n endCall: (\n agentName: string,\n callId: string,\n options?: BetaVoiceAgentsTelephonyEndCallOptionalParams,\n ) => run(\"end_call\", () => endCall(context, agentName, callId, options)),\n transferCall: (\n agentName: string,\n callId: string,\n target: string,\n options?: BetaVoiceAgentsTelephonyTransferCallOptionalParams,\n ) => run(\"transfer_call\", () => transferCall(context, agentName, callId, target, options)),\n getCall: (\n agentName: string,\n callId: string,\n options?: BetaVoiceAgentsTelephonyGetCallOptionalParams,\n ) => getCall(context, agentName, callId, options),\n listCalls: (agentName: string, options?: BetaVoiceAgentsTelephonyListCallsOptionalParams) =>\n listCalls(context, agentName, options),\n deleteBinding: (\n agentName: string,\n bindingId: string,\n ifMatch: string,\n options?: BetaVoiceAgentsTelephonyDeleteBindingOptionalParams,\n ) =>\n run(\"delete_binding\", () => deleteBinding(context, agentName, bindingId, ifMatch, options)),\n updateBinding: (\n agentName: string,\n bindingId: string,\n ifMatch: string,\n body: UpdateTelephonyBindingRequest,\n options?: BetaVoiceAgentsTelephonyUpdateBindingOptionalParams,\n ) =>\n run(\"update_binding\", () =>\n updateBinding(context, agentName, bindingId, ifMatch, body, options),\n ),\n getBinding: (\n agentName: string,\n bindingId: string,\n options?: BetaVoiceAgentsTelephonyGetBindingOptionalParams,\n ) => getBinding(context, agentName, bindingId, options),\n listBindings: (\n agentName: string,\n options?: BetaVoiceAgentsTelephonyListBindingsOptionalParams,\n ) => listBindings(context, agentName, options),\n createBinding: (\n agentName: string,\n telephonyBinding: CreateTelephonyBindingRequestUnion,\n options?: BetaVoiceAgentsTelephonyCreateBindingOptionalParams,\n ) => run(\"create_binding\", () => createBinding(context, agentName, telephonyBinding, options)),\n };\n}\n\nexport function _getBetaVoiceAgentsTelephonyOperations(\n context: AIProjectContext,\n tracingConfig?: ResolvedTracingConfig,\n): BetaVoiceAgentsTelephonyOperations {\n return { ..._getBetaVoiceAgentsTelephony(context, tracingConfig) };\n}\n"]}
|
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
import type { AIProjectClientOptionalParams, AIProjectContext } from "../../api/aiProjectContext.js";
|
|
2
|
-
import type { DatasetsGetCredentialsOptionalParams, DatasetsPendingUploadOptionalParams, DatasetsCreateOrUpdateOptionalParams, DatasetsDeleteOptionalParams, DatasetsGetOptionalParams, DatasetsListOptionalParams, DatasetsListVersionsOptionalParams } from "../../api/datasets/options.js";
|
|
3
|
-
import type { DatasetVersionUnion, PendingUploadRequest, PendingUploadResponse, DatasetCredential } from "../../models/models.js";
|
|
2
|
+
import type { DatasetsGetCredentialsOptionalParams, DatasetsPendingUploadOptionalParams, DatasetsCreateOrUpdateOptionalParams, DatasetsDeleteOptionalParams, DatasetsGetOptionalParams, DatasetsListOptionalParams, DatasetsListVersionsOptionalParams, DatasetsDeleteGenerationJobOptionalParams, DatasetsCancelGenerationJobOptionalParams, DatasetsCreateGenerationJobOptionalParams, DatasetsListGenerationJobsOptionalParams, DatasetsGetGenerationJobOptionalParams } from "../../api/datasets/options.js";
|
|
3
|
+
import type { DatasetVersionUnion, PendingUploadRequest, PendingUploadResponse, DatasetCredential, DataGenerationJobUnion, DataGenerationJobResult, DataGenerationJobInputsUnion } from "../../models/models.js";
|
|
4
4
|
import type { DatasetUploadOptions } from "../../api/index.js";
|
|
5
5
|
import type { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
6
|
+
import type { JobPoller } from "../../static-helpers/pollingHelpers.js";
|
|
6
7
|
/** Interface representing a Datasets operations. */
|
|
7
8
|
export interface DatasetsOperations {
|
|
9
|
+
/** Removes the specified data generation job and its associated output. */
|
|
10
|
+
deleteGenerationJob: (jobId: string, options?: DatasetsDeleteGenerationJobOptionalParams) => Promise<void>;
|
|
11
|
+
/** Cancels the specified data generation job if it is still in progress. */
|
|
12
|
+
cancelGenerationJob: (jobId: string, options?: DatasetsCancelGenerationJobOptionalParams) => Promise<DataGenerationJobUnion>;
|
|
13
|
+
/** Submits a new data generation job for asynchronous execution. */
|
|
14
|
+
createGenerationJob: (job: DataGenerationJobInputsUnion, options?: DatasetsCreateGenerationJobOptionalParams) => JobPoller<DataGenerationJobResult>;
|
|
15
|
+
/** Returns a list of data generation jobs. */
|
|
16
|
+
listGenerationJobs: (options?: DatasetsListGenerationJobsOptionalParams) => PagedAsyncIterableIterator<DataGenerationJobUnion>;
|
|
17
|
+
/** Retrieves the specified data generation job and its current status. */
|
|
18
|
+
getGenerationJob: (jobId: string, options?: DatasetsGetGenerationJobOptionalParams) => Promise<DataGenerationJobUnion>;
|
|
8
19
|
/** Get the SAS credential to access the storage account associated with a Dataset version. */
|
|
9
20
|
getCredentials: (name: string, version: string, options?: DatasetsGetCredentialsOptionalParams) => Promise<DatasetCredential>;
|
|
10
21
|
/** Start a new or get an existing pending upload of a dataset for a specific version. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/classic/datasets/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,6BAA6B,EAC7B,gBAAgB,EACjB,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/classic/datasets/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,6BAA6B,EAC7B,gBAAgB,EACjB,MAAM,+BAA+B,CAAC;AAgBvC,OAAO,KAAK,EACV,oCAAoC,EACpC,mCAAmC,EACnC,oCAAoC,EACpC,4BAA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EAClB,OAAO,CAAC,EAAE,oBAAoB,KAC3B,OAAO,CAAC,mBAAmB,CAAC,CAAC;CACnC;AAsDD,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,gBAAgB,EACzB,cAAc,GAAE,6BAAkC,GACjD,kBAAkB,CAIpB"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
import { getCredentials, pendingUpload, createOrUpdate, $delete, get, list, listVersions, } from "../../api/datasets/operations.js";
|
|
3
|
+
import { getCredentials, pendingUpload, createOrUpdate, $delete, get, list, listVersions, deleteGenerationJob, cancelGenerationJob, createGenerationJob, listGenerationJobs, getGenerationJob, } from "../../api/datasets/operations.js";
|
|
4
4
|
import { uploadFile, uploadFolder } from "../../api/datasets/uploads.js";
|
|
5
5
|
function _getDatasets(context, projectOptions = {}) {
|
|
6
6
|
return {
|
|
7
|
+
deleteGenerationJob: (jobId, options) => deleteGenerationJob(context, jobId, options),
|
|
8
|
+
cancelGenerationJob: (jobId, options) => cancelGenerationJob(context, jobId, options),
|
|
9
|
+
createGenerationJob: (job, options) => createGenerationJob(context, job, options),
|
|
10
|
+
listGenerationJobs: (options) => listGenerationJobs(context, options),
|
|
11
|
+
getGenerationJob: (jobId, options) => getGenerationJob(context, jobId, options),
|
|
7
12
|
getCredentials: (name, version, options) => getCredentials(context, name, version, options),
|
|
8
13
|
pendingUpload: (name, version, pendingUploadRequest, options) => pendingUpload(context, name, version, pendingUploadRequest, options),
|
|
9
14
|
createOrUpdate: (name, version, datasetVersion, options) => createOrUpdate(context, name, version, datasetVersion, options),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/datasets/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,EACL,cAAc,EACd,aAAa,EACb,cAAc,EACd,OAAO,EACP,GAAG,EACH,IAAI,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cesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n AIProjectClientOptionalParams,\n AIProjectContext,\n} from \"../../api/aiProjectContext.js\";\nimport {\n getCredentials,\n pendingUpload,\n createOrUpdate,\n $delete,\n get,\n list,\n listVersions,\n deleteGenerationJob,\n cancelGenerationJob,\n createGenerationJob,\n listGenerationJobs,\n getGenerationJob,\n} from \"../../api/datasets/operations.js\";\nimport { uploadFile, uploadFolder } from \"#platform/api/datasets/uploads\";\nimport type {\n DatasetsGetCredentialsOptionalParams,\n DatasetsPendingUploadOptionalParams,\n DatasetsCreateOrUpdateOptionalParams,\n DatasetsDeleteOptionalParams,\n DatasetsGetOptionalParams,\n DatasetsListOptionalParams,\n DatasetsListVersionsOptionalParams,\n DatasetsDeleteGenerationJobOptionalParams,\n DatasetsCancelGenerationJobOptionalParams,\n DatasetsCreateGenerationJobOptionalParams,\n DatasetsListGenerationJobsOptionalParams,\n DatasetsGetGenerationJobOptionalParams,\n} from \"../../api/datasets/options.js\";\nimport type {\n DatasetVersionUnion,\n PendingUploadRequest,\n PendingUploadResponse,\n DatasetCredential,\n DataGenerationJobUnion,\n DataGenerationJobResult,\n DataGenerationJobInputsUnion,\n} from \"../../models/models.js\";\nimport type { DatasetUploadOptions } from \"../../api/index.js\";\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport type { JobPoller } from \"../../static-helpers/pollingHelpers.js\";\n\n/** Interface representing a Datasets operations. */\nexport interface DatasetsOperations {\n /** Removes the specified data generation job and its associated output. */\n deleteGenerationJob: (\n jobId: string,\n options?: DatasetsDeleteGenerationJobOptionalParams,\n ) => Promise<void>;\n /** Cancels the specified data generation job if it is still in progress. */\n cancelGenerationJob: (\n jobId: string,\n options?: DatasetsCancelGenerationJobOptionalParams,\n ) => Promise<DataGenerationJobUnion>;\n /** Submits a new data generation job for asynchronous execution. */\n createGenerationJob: (\n job: DataGenerationJobInputsUnion,\n options?: DatasetsCreateGenerationJobOptionalParams,\n ) => JobPoller<DataGenerationJobResult>;\n /** Returns a list of data generation jobs. */\n listGenerationJobs: (\n options?: DatasetsListGenerationJobsOptionalParams,\n ) => PagedAsyncIterableIterator<DataGenerationJobUnion>;\n /** Retrieves the specified data generation job and its current status. */\n getGenerationJob: (\n jobId: string,\n options?: DatasetsGetGenerationJobOptionalParams,\n ) => Promise<DataGenerationJobUnion>;\n /** Get the SAS credential to access the storage account associated with a Dataset version. */\n getCredentials: (\n name: string,\n version: string,\n options?: DatasetsGetCredentialsOptionalParams,\n ) => Promise<DatasetCredential>;\n /** Start a new or get an existing pending upload of a dataset for a specific version. */\n pendingUpload: (\n name: string,\n version: string,\n pendingUploadRequest: PendingUploadRequest,\n options?: DatasetsPendingUploadOptionalParams,\n ) => Promise<PendingUploadResponse>;\n /** Create a new or update an existing DatasetVersion with the given version id */\n createOrUpdate: (\n name: string,\n version: string,\n datasetVersion: DatasetVersionUnion,\n options?: DatasetsCreateOrUpdateOptionalParams,\n ) => Promise<DatasetVersionUnion>;\n /** Delete the specific version of the DatasetVersion. The service returns 204 No Content if the DatasetVersion was deleted successfully or if the DatasetVersion does not exist. */\n delete: (name: string, version: string, options?: DatasetsDeleteOptionalParams) => Promise<void>;\n /** Get the specific version of the DatasetVersion. The service returns 404 Not Found error if the DatasetVersion does not exist. */\n get: (\n name: string,\n version: string,\n options?: DatasetsGetOptionalParams,\n ) => Promise<DatasetVersionUnion>;\n /** List the latest version of each DatasetVersion */\n list: (options?: DatasetsListOptionalParams) => PagedAsyncIterableIterator<DatasetVersionUnion>;\n /** List all versions of the given DatasetVersion */\n listVersions: (\n name: string,\n options?: DatasetsListVersionsOptionalParams,\n ) => PagedAsyncIterableIterator<DatasetVersionUnion>;\n /** Upload a file to the DatasetVersion. Only supported in Node.js. */\n uploadFile: (\n name: string,\n version: string,\n filePath: string,\n options?: DatasetUploadOptions,\n ) => Promise<DatasetVersionUnion>;\n /** Upload a folder to the DatasetVersion. Only supported in Node.js. */\n uploadFolder: (\n name: string,\n version: string,\n folderPath: string,\n options?: DatasetUploadOptions,\n ) => Promise<DatasetVersionUnion>;\n}\n\nfunction _getDatasets(\n context: AIProjectContext,\n projectOptions: AIProjectClientOptionalParams = {},\n) {\n return {\n deleteGenerationJob: (jobId: string, options?: DatasetsDeleteGenerationJobOptionalParams) =>\n deleteGenerationJob(context, jobId, options),\n cancelGenerationJob: (jobId: string, options?: DatasetsCancelGenerationJobOptionalParams) =>\n cancelGenerationJob(context, jobId, options),\n createGenerationJob: (\n job: DataGenerationJobInputsUnion,\n options?: DatasetsCreateGenerationJobOptionalParams,\n ) => createGenerationJob(context, job, options),\n listGenerationJobs: (options?: DatasetsListGenerationJobsOptionalParams) =>\n listGenerationJobs(context, options),\n getGenerationJob: (jobId: string, options?: DatasetsGetGenerationJobOptionalParams) =>\n getGenerationJob(context, jobId, options),\n getCredentials: (\n name: string,\n version: string,\n options?: DatasetsGetCredentialsOptionalParams,\n ) => getCredentials(context, name, version, options),\n pendingUpload: (\n name: string,\n version: string,\n pendingUploadRequest: PendingUploadRequest,\n options?: DatasetsPendingUploadOptionalParams,\n ) => pendingUpload(context, name, version, pendingUploadRequest, options),\n createOrUpdate: (\n name: string,\n version: string,\n datasetVersion: DatasetVersionUnion,\n options?: DatasetsCreateOrUpdateOptionalParams,\n ) => createOrUpdate(context, name, version, datasetVersion, options),\n delete: (name: string, version: string, options?: DatasetsDeleteOptionalParams) =>\n $delete(context, name, version, options),\n get: (name: string, version: string, options?: DatasetsGetOptionalParams) =>\n get(context, name, version, options),\n list: (options?: DatasetsListOptionalParams) => list(context, options),\n listVersions: (name: string, options?: DatasetsListVersionsOptionalParams) =>\n listVersions(context, name, options),\n uploadFile: (name: string, version: string, filePath: string, options?: DatasetUploadOptions) =>\n uploadFile(context, name, version, filePath, { ...options, projectOptions }),\n uploadFolder: (\n name: string,\n version: string,\n folderPath: string,\n options?: DatasetUploadOptions,\n ) => uploadFolder(context, name, version, folderPath, { ...options, projectOptions }),\n };\n}\n\nexport function _getDatasetsOperations(\n context: AIProjectContext,\n projectOptions: AIProjectClientOptionalParams = {},\n): DatasetsOperations {\n return {\n ..._getDatasets(context, projectOptions),\n };\n}\n"]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { AIProjectContext } from "../../api/aiProjectContext.js";
|
|
2
|
+
import type { EvaluatorVersion, EvaluatorGenerationJob, EvaluatorGenerationInputs } from "../../models/models.js";
|
|
3
|
+
import type { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
4
|
+
import type { EvaluatorsDeleteGenerationJobOptionalParams, EvaluatorsCancelGenerationJobOptionalParams, EvaluatorsListGenerationJobsOptionalParams, EvaluatorsGetGenerationJobOptionalParams, EvaluatorsCreateGenerationJobOptionalParams, EvaluatorsUpdateVersionOptionalParams, EvaluatorsCreateVersionOptionalParams, EvaluatorsDeleteVersionOptionalParams, EvaluatorsGetVersionOptionalParams, EvaluatorsListOptionalParams, EvaluatorsListVersionsOptionalParams } from "../../api/evaluators/options.js";
|
|
5
|
+
import type { JobPoller } from "../../static-helpers/pollingHelpers.js";
|
|
6
|
+
/** Operations for EvaluatorsOperations. */
|
|
7
|
+
export interface EvaluatorsOperations {
|
|
8
|
+
/**
|
|
9
|
+
* Deletes an evaluator generation job by its ID. Deletes the job record only;
|
|
10
|
+
* the generated evaluator (if any) is preserved.
|
|
11
|
+
*/
|
|
12
|
+
deleteGenerationJob: (jobId: string, options?: EvaluatorsDeleteGenerationJobOptionalParams) => Promise<void>;
|
|
13
|
+
/** Cancels an evaluator generation job by its ID. */
|
|
14
|
+
cancelGenerationJob: (jobId: string, options?: EvaluatorsCancelGenerationJobOptionalParams) => Promise<EvaluatorGenerationJob>;
|
|
15
|
+
/**
|
|
16
|
+
* Returns a list of evaluator generation jobs. The List API has up to a few
|
|
17
|
+
* seconds of propagation delay, so a recently created job may not appear
|
|
18
|
+
* immediately; use the Get evaluator generation job API with the job ID to
|
|
19
|
+
* retrieve a specific job without delay.
|
|
20
|
+
*/
|
|
21
|
+
listGenerationJobs: (options?: EvaluatorsListGenerationJobsOptionalParams) => PagedAsyncIterableIterator<EvaluatorGenerationJob>;
|
|
22
|
+
/** Gets the details of an evaluator generation job by its ID. */
|
|
23
|
+
getGenerationJob: (jobId: string, options?: EvaluatorsGetGenerationJobOptionalParams) => Promise<EvaluatorGenerationJob>;
|
|
24
|
+
/**
|
|
25
|
+
* Creates an evaluator generation job. The service generates rubric-based evaluator
|
|
26
|
+
* definitions from the provided source materials asynchronously.
|
|
27
|
+
*/
|
|
28
|
+
createGenerationJob: (job: EvaluatorGenerationInputs, options?: EvaluatorsCreateGenerationJobOptionalParams) => JobPoller<EvaluatorVersion>;
|
|
29
|
+
/** Updates the specified evaluator version in place. */
|
|
30
|
+
updateVersion: (name: string, version: string, evaluatorVersion: EvaluatorVersion, options?: EvaluatorsUpdateVersionOptionalParams) => Promise<EvaluatorVersion>;
|
|
31
|
+
/** Creates a new evaluator version with an auto-incremented version identifier. */
|
|
32
|
+
createVersion: (name: string, evaluatorVersion: EvaluatorVersion, options?: EvaluatorsCreateVersionOptionalParams) => Promise<EvaluatorVersion>;
|
|
33
|
+
/** Removes the specified evaluator version. Returns 204 whether the version existed or not. */
|
|
34
|
+
deleteVersion: (name: string, version: string, options?: EvaluatorsDeleteVersionOptionalParams) => Promise<void>;
|
|
35
|
+
/** Retrieves the specified evaluator version, returning 404 if it does not exist. */
|
|
36
|
+
getVersion: (name: string, version: string, options?: EvaluatorsGetVersionOptionalParams) => Promise<EvaluatorVersion>;
|
|
37
|
+
/** Lists the latest version of each evaluator. */
|
|
38
|
+
list: (options?: EvaluatorsListOptionalParams) => PagedAsyncIterableIterator<EvaluatorVersion>;
|
|
39
|
+
/** Returns the available versions for the specified evaluator. */
|
|
40
|
+
listVersions: (name: string, options?: EvaluatorsListVersionsOptionalParams) => PagedAsyncIterableIterator<EvaluatorVersion>;
|
|
41
|
+
}
|
|
42
|
+
export declare function _getEvaluatorsOperations(context: AIProjectContext): EvaluatorsOperations;
|
|
43
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/classic/evaluators/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,KAAK,EACV,gBAAgB,EAChB,sBAAsB,EACtB,yBAAyB,EAC1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,KAAK,EACV,2CAA2C,EAC3C,2CAA2C,EAC3C,0CAA0C,EAC1C,wCAAwC,EACxC,2CAA2C,EAC3C,qCAAqC,EACrC,qCAAqC,EACrC,qCAAqC,EACrC,kCAAkC,EAClC,4BAA4B,EAC5B,oCAAoC,EACrC,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wCAAwC,CAAC;AAexE,2CAA2C;AAC3C,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,mBAAmB,EAAE,CACnB,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,2CAA2C,KAClD,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB,qDAAqD;IACrD,mBAAmB,EAAE,CACnB,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,2CAA2C,KAClD,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACrC;;;;;OAKG;IACH,kBAAkB,EAAE,CAClB,OAAO,CAAC,EAAE,0CAA0C,KACjD,0BAA0B,CAAC,sBAAsB,CAAC,CAAC;IACxD,iEAAiE;IACjE,gBAAgB,EAAE,CAChB,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,wCAAwC,KAC/C,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACrC;;;OAGG;IACH,mBAAmB,EAAE,CACnB,GAAG,EAAE,yBAAyB,EAC9B,OAAO,CAAC,EAAE,2CAA2C,KAClD,SAAS,CAAC,gBAAgB,CAAC,CAAC;IACjC,wDAAwD;IACxD,aAAa,EAAE,CACb,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,CAAC,EAAE,qCAAqC,KAC5C,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC/B,mFAAmF;IACnF,aAAa,EAAE,CACb,IAAI,EAAE,MAAM,EACZ,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,CAAC,EAAE,qCAAqC,KAC5C,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC/B,+FAA+F;IAC/F,aAAa,EAAE,CACb,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,qCAAqC,KAC5C,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB,qFAAqF;IACrF,UAAU,EAAE,CACV,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,kCAAkC,KACzC,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC/B,kDAAkD;IAClD,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,4BAA4B,KAAK,0BAA0B,CAAC,gBAAgB,CAAC,CAAC;IAC/F,kEAAkE;IAClE,YAAY,EAAE,CACZ,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,oCAAoC,KAC3C,0BAA0B,CAAC,gBAAgB,CAAC,CAAC;CACnD;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,gBAAgB,GAAG,oBAAoB,CAoCxF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { deleteGenerationJob, cancelGenerationJob, listGenerationJobs, getGenerationJob, createGenerationJob, updateVersion, createVersion, deleteVersion, getVersion, list, listVersions, } from "../../api/evaluators/operations.js";
|
|
4
|
+
export function _getEvaluatorsOperations(context) {
|
|
5
|
+
return {
|
|
6
|
+
deleteGenerationJob: (jobId, options) => deleteGenerationJob(context, jobId, options),
|
|
7
|
+
cancelGenerationJob: (jobId, options) => cancelGenerationJob(context, jobId, options),
|
|
8
|
+
listGenerationJobs: (options) => listGenerationJobs(context, options),
|
|
9
|
+
getGenerationJob: (jobId, options) => getGenerationJob(context, jobId, options),
|
|
10
|
+
createGenerationJob: (job, options) => createGenerationJob(context, job, options),
|
|
11
|
+
updateVersion: (name, version, evaluatorVersion, options) => updateVersion(context, name, version, evaluatorVersion, options),
|
|
12
|
+
createVersion: (name, evaluatorVersion, options) => createVersion(context, name, evaluatorVersion, options),
|
|
13
|
+
deleteVersion: (name, version, options) => deleteVersion(context, name, version, options),
|
|
14
|
+
getVersion: (name, version, options) => getVersion(context, name, version, options),
|
|
15
|
+
list: (options) => list(context, options),
|
|
16
|
+
listVersions: (name, options) => listVersions(context, name, options),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/evaluators/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAuBlC,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,EACb,aAAa,EACb,aAAa,EACb,UAAU,EACV,IAAI,EACJ,YAAY,GACb,MAAM,oCAAoC,CAAC;AAyE5C,MAAM,UAAU,wBAAwB,CAAC,OAAyB;IAChE,OAAO;QACL,mBAAmB,EAAE,CAAC,KAAa,EAAE,OAAqD,EAAE,EAAE,CAC5F,mBAAmB,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC;QAC9C,mBAAmB,EAAE,CAAC,KAAa,EAAE,OAAqD,EAAE,EAAE,CAC5F,mBAAmB,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC;QAC9C,kBAAkB,EAAE,CAAC,OAAoD,EAAE,EAAE,CAC3E,kBAAkB,CAAC,OAAO,EAAE,OAAO,CAAC;QACtC,gBAAgB,EAAE,CAAC,KAAa,EAAE,OAAkD,EAAE,EAAE,CACtF,gBAAgB,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC;QAC3C,mBAAmB,EAAE,CACnB,GAA8B,EAC9B,OAAqD,EACrD,EAAE,CAAC,mBAAmB,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC;QAC/C,aAAa,EAAE,CACb,IAAY,EACZ,OAAe,EACf,gBAAkC,EAClC,OAA+C,EAC/C,EAAE,CAAC,aAAa,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,EAAE,OAAO,CAAC;QACrE,aAAa,EAAE,CACb,IAAY,EACZ,gBAAkC,EAClC,OAA+C,EAC/C,EAAE,CAAC,aAAa,CAAC,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC;QAC5D,aAAa,EAAE,CACb,IAAY,EACZ,OAAe,EACf,OAA+C,EAC/C,EAAE,CAAC,aAAa,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC;QACnD,UAAU,EAAE,CAAC,IAAY,EAAE,OAAe,EAAE,OAA4C,EAAE,EAAE,CAC1F,UAAU,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC;QAC7C,IAAI,EAAE,CAAC,OAAsC,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC;QACxE,YAAY,EAAE,CAAC,IAAY,EAAE,OAA8C,EAAE,EAAE,CAC7E,YAAY,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC;KACvC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AIProjectContext } from \"../../api/aiProjectContext.js\";\nimport type {\n EvaluatorVersion,\n EvaluatorGenerationJob,\n EvaluatorGenerationInputs,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport type {\n EvaluatorsDeleteGenerationJobOptionalParams,\n EvaluatorsCancelGenerationJobOptionalParams,\n EvaluatorsListGenerationJobsOptionalParams,\n EvaluatorsGetGenerationJobOptionalParams,\n EvaluatorsCreateGenerationJobOptionalParams,\n EvaluatorsUpdateVersionOptionalParams,\n EvaluatorsCreateVersionOptionalParams,\n EvaluatorsDeleteVersionOptionalParams,\n EvaluatorsGetVersionOptionalParams,\n EvaluatorsListOptionalParams,\n EvaluatorsListVersionsOptionalParams,\n} from \"../../api/evaluators/options.js\";\nimport type { JobPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport {\n deleteGenerationJob,\n cancelGenerationJob,\n listGenerationJobs,\n getGenerationJob,\n createGenerationJob,\n updateVersion,\n createVersion,\n deleteVersion,\n getVersion,\n list,\n listVersions,\n} from \"../../api/evaluators/operations.js\";\n\n/** Operations for EvaluatorsOperations. */\nexport interface EvaluatorsOperations {\n /**\n * Deletes an evaluator generation job by its ID. Deletes the job record only;\n * the generated evaluator (if any) is preserved.\n */\n deleteGenerationJob: (\n jobId: string,\n options?: EvaluatorsDeleteGenerationJobOptionalParams,\n ) => Promise<void>;\n /** Cancels an evaluator generation job by its ID. */\n cancelGenerationJob: (\n jobId: string,\n options?: EvaluatorsCancelGenerationJobOptionalParams,\n ) => Promise<EvaluatorGenerationJob>;\n /**\n * Returns a list of evaluator generation jobs. The List API has up to a few\n * seconds of propagation delay, so a recently created job may not appear\n * immediately; use the Get evaluator generation job API with the job ID to\n * retrieve a specific job without delay.\n */\n listGenerationJobs: (\n options?: EvaluatorsListGenerationJobsOptionalParams,\n ) => PagedAsyncIterableIterator<EvaluatorGenerationJob>;\n /** Gets the details of an evaluator generation job by its ID. */\n getGenerationJob: (\n jobId: string,\n options?: EvaluatorsGetGenerationJobOptionalParams,\n ) => Promise<EvaluatorGenerationJob>;\n /**\n * Creates an evaluator generation job. The service generates rubric-based evaluator\n * definitions from the provided source materials asynchronously.\n */\n createGenerationJob: (\n job: EvaluatorGenerationInputs,\n options?: EvaluatorsCreateGenerationJobOptionalParams,\n ) => JobPoller<EvaluatorVersion>;\n /** Updates the specified evaluator version in place. */\n updateVersion: (\n name: string,\n version: string,\n evaluatorVersion: EvaluatorVersion,\n options?: EvaluatorsUpdateVersionOptionalParams,\n ) => Promise<EvaluatorVersion>;\n /** Creates a new evaluator version with an auto-incremented version identifier. */\n createVersion: (\n name: string,\n evaluatorVersion: EvaluatorVersion,\n options?: EvaluatorsCreateVersionOptionalParams,\n ) => Promise<EvaluatorVersion>;\n /** Removes the specified evaluator version. Returns 204 whether the version existed or not. */\n deleteVersion: (\n name: string,\n version: string,\n options?: EvaluatorsDeleteVersionOptionalParams,\n ) => Promise<void>;\n /** Retrieves the specified evaluator version, returning 404 if it does not exist. */\n getVersion: (\n name: string,\n version: string,\n options?: EvaluatorsGetVersionOptionalParams,\n ) => Promise<EvaluatorVersion>;\n /** Lists the latest version of each evaluator. */\n list: (options?: EvaluatorsListOptionalParams) => PagedAsyncIterableIterator<EvaluatorVersion>;\n /** Returns the available versions for the specified evaluator. */\n listVersions: (\n name: string,\n options?: EvaluatorsListVersionsOptionalParams,\n ) => PagedAsyncIterableIterator<EvaluatorVersion>;\n}\n\nexport function _getEvaluatorsOperations(context: AIProjectContext): EvaluatorsOperations {\n return {\n deleteGenerationJob: (jobId: string, options?: EvaluatorsDeleteGenerationJobOptionalParams) =>\n deleteGenerationJob(context, jobId, options),\n cancelGenerationJob: (jobId: string, options?: EvaluatorsCancelGenerationJobOptionalParams) =>\n cancelGenerationJob(context, jobId, options),\n listGenerationJobs: (options?: EvaluatorsListGenerationJobsOptionalParams) =>\n listGenerationJobs(context, options),\n getGenerationJob: (jobId: string, options?: EvaluatorsGetGenerationJobOptionalParams) =>\n getGenerationJob(context, jobId, options),\n createGenerationJob: (\n job: EvaluatorGenerationInputs,\n options?: EvaluatorsCreateGenerationJobOptionalParams,\n ) => createGenerationJob(context, job, options),\n updateVersion: (\n name: string,\n version: string,\n evaluatorVersion: EvaluatorVersion,\n options?: EvaluatorsUpdateVersionOptionalParams,\n ) => updateVersion(context, name, version, evaluatorVersion, options),\n createVersion: (\n name: string,\n evaluatorVersion: EvaluatorVersion,\n options?: EvaluatorsCreateVersionOptionalParams,\n ) => createVersion(context, name, evaluatorVersion, options),\n deleteVersion: (\n name: string,\n version: string,\n options?: EvaluatorsDeleteVersionOptionalParams,\n ) => deleteVersion(context, name, version, options),\n getVersion: (name: string, version: string, options?: EvaluatorsGetVersionOptionalParams) =>\n getVersion(context, name, version, options),\n list: (options?: EvaluatorsListOptionalParams) => list(context, options),\n listVersions: (name: string, options?: EvaluatorsListVersionsOptionalParams) =>\n listVersions(context, name, options),\n };\n}\n"]}
|
|
@@ -15,10 +15,10 @@ export type { BetaModelsOperations, BetaModelsCreateOptions } from "./beta/model
|
|
|
15
15
|
export type { BetaRedTeamsOperations } from "./beta/redTeams/index.js";
|
|
16
16
|
export type { BetaRoutinesOperations } from "./beta/routines/index.js";
|
|
17
17
|
export type { BetaSchedulesOperations } from "./beta/schedules/index.js";
|
|
18
|
-
export type { BetaDatasetsOperations } from "./beta/datasets/index.js";
|
|
19
18
|
export type { BetaSkillsOperations } from "./beta/skills/index.js";
|
|
20
19
|
export type { TelemetryOperations } from "./telemetry/index.js";
|
|
21
20
|
export type { BetaVoiceAgentsOperations } from "./beta/voiceAgents/index.js";
|
|
22
21
|
export type { BetaVoiceAgentsConversationsOperations } from "./beta/voiceAgents/conversations/index.js";
|
|
23
22
|
export type { BetaVoiceAgentsTelephonyOperations } from "./beta/voiceAgents/telephony/index.js";
|
|
23
|
+
export type { EvaluatorsOperations } from "./evaluators/index.js";
|
|
24
24
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/classic/index.ts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BAAqB,CAAC;AAC9D,YAAY,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AACpE,YAAY,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAC5E,YAAY,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,YAAY,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChE,YAAY,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,YAAY,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAC/F,YAAY,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,YAAY,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,YAAY,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC/E,YAAY,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAC5F,YAAY,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,YAAY,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,YAAY,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,YAAY,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,YAAY,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChE,YAAY,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAC7E,YAAY,EAAE,sCAAsC,EAAE,MAAM,2CAA2C,CAAC;AACxG,YAAY,EAAE,kCAAkC,EAAE,MAAM,uCAAuC,CAAC;AAChG,YAAY,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/classic/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport type { AgentsOperations } from \"./agents/index.js\";\nexport type { BetaOperations } from \"./beta/index.js\";\nexport type { ConnectionsOperations } from \"./connections/index.js\";\nexport type { DatasetsOperations } from \"./datasets/index.js\";\nexport type { DeploymentsOperations } from \"./deployments/index.js\";\nexport type { EvaluationRulesOperations } from \"./evaluationRules/index.js\";\nexport type { IndexesOperations } from \"./indexes/index.js\";\nexport type { ToolboxesOperations } from \"./toolboxes/index.js\";\nexport type { BetaAgentsOperations } from \"./beta/agents/index.js\";\nexport type { BetaEvaluationTaxonomiesOperations } from \"./beta/evaluationTaxonomies/index.js\";\nexport type { BetaEvaluatorsOperations } from \"./beta/evaluators/index.js\";\nexport type { BetaInsightsOperations } from \"./beta/insights/index.js\";\nexport type { BetaMemoryStoresOperations } from \"./beta/memoryStores/index.js\";\nexport type { BetaModelsOperations, BetaModelsCreateOptions } from \"./beta/models/index.js\";\nexport type { BetaRedTeamsOperations } from \"./beta/redTeams/index.js\";\nexport type { BetaRoutinesOperations } from \"./beta/routines/index.js\";\nexport type { BetaSchedulesOperations } from \"./beta/schedules/index.js\";\nexport type {
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/classic/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport type { AgentsOperations } from \"./agents/index.js\";\nexport type { BetaOperations } from \"./beta/index.js\";\nexport type { ConnectionsOperations } from \"./connections/index.js\";\nexport type { DatasetsOperations } from \"./datasets/index.js\";\nexport type { DeploymentsOperations } from \"./deployments/index.js\";\nexport type { EvaluationRulesOperations } from \"./evaluationRules/index.js\";\nexport type { IndexesOperations } from \"./indexes/index.js\";\nexport type { ToolboxesOperations } from \"./toolboxes/index.js\";\nexport type { BetaAgentsOperations } from \"./beta/agents/index.js\";\nexport type { BetaEvaluationTaxonomiesOperations } from \"./beta/evaluationTaxonomies/index.js\";\nexport type { BetaEvaluatorsOperations } from \"./beta/evaluators/index.js\";\nexport type { BetaInsightsOperations } from \"./beta/insights/index.js\";\nexport type { BetaMemoryStoresOperations } from \"./beta/memoryStores/index.js\";\nexport type { BetaModelsOperations, BetaModelsCreateOptions } from \"./beta/models/index.js\";\nexport type { BetaRedTeamsOperations } from \"./beta/redTeams/index.js\";\nexport type { BetaRoutinesOperations } from \"./beta/routines/index.js\";\nexport type { BetaSchedulesOperations } from \"./beta/schedules/index.js\";\nexport type { BetaSkillsOperations } from \"./beta/skills/index.js\";\nexport type { TelemetryOperations } from \"./telemetry/index.js\";\nexport type { BetaVoiceAgentsOperations } from \"./beta/voiceAgents/index.js\";\nexport type { BetaVoiceAgentsConversationsOperations } from \"./beta/voiceAgents/conversations/index.js\";\nexport type { BetaVoiceAgentsTelephonyOperations } from \"./beta/voiceAgents/telephony/index.js\";\nexport type { EvaluatorsOperations } from \"./evaluators/index.js\";\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC;AAEnC;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,oBAAoB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Current version of the `@azure/ai-projects` package.\n */\nexport const SDK_VERSION = `2.
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC;AAEnC;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,oBAAoB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Current version of the `@azure/ai-projects` package.\n */\nexport const SDK_VERSION = `2.9.0`;\n\n/**\n * The package name of the `@azure/ai-projects` package.\n */\nexport const PACKAGE_NAME = \"@azure/ai-projects\";\n"]}
|