@azure/communication-call-automation 1.5.0-beta.1 → 1.6.0-alpha.20250711.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +51 -1
- package/dist/browser/callAutomationClient.d.ts +9 -2
- package/dist/browser/callAutomationClient.d.ts.map +1 -1
- package/dist/browser/callAutomationClient.js +115 -10
- package/dist/browser/callAutomationClient.js.map +1 -1
- package/dist/browser/callAutomationEventParser.d.ts.map +1 -1
- package/dist/browser/callAutomationEventParser.js +47 -1
- package/dist/browser/callAutomationEventParser.js.map +1 -1
- package/dist/browser/callConnection.d.ts +16 -6
- package/dist/browser/callConnection.d.ts.map +1 -1
- package/dist/browser/callConnection.js +166 -15
- package/dist/browser/callConnection.js.map +1 -1
- package/dist/browser/callMedia.d.ts +20 -10
- package/dist/browser/callMedia.d.ts.map +1 -1
- package/dist/browser/callMedia.js +190 -22
- package/dist/browser/callMedia.js.map +1 -1
- package/dist/browser/callRecording.d.ts +8 -2
- package/dist/browser/callRecording.d.ts.map +1 -1
- package/dist/browser/callRecording.js +20 -5
- package/dist/browser/callRecording.js.map +1 -1
- package/dist/browser/eventprocessor/callAutomationEventProcessor.d.ts +39 -0
- package/dist/browser/eventprocessor/callAutomationEventProcessor.d.ts.map +1 -0
- package/dist/browser/eventprocessor/callAutomationEventProcessor.js +137 -0
- package/dist/browser/eventprocessor/callAutomationEventProcessor.js.map +1 -0
- package/dist/browser/eventprocessor/eventResponses.d.ts +134 -0
- package/dist/browser/eventprocessor/eventResponses.d.ts.map +1 -0
- package/dist/browser/eventprocessor/eventResponses.js +4 -0
- package/dist/browser/eventprocessor/eventResponses.js.map +1 -0
- package/dist/browser/generated/src/callAutomationApiClient.d.ts +2 -1
- package/dist/browser/generated/src/callAutomationApiClient.d.ts.map +1 -1
- package/dist/browser/generated/src/callAutomationApiClient.js +4 -3
- package/dist/browser/generated/src/callAutomationApiClient.js.map +1 -1
- package/dist/browser/generated/src/models/index.d.ts +971 -206
- package/dist/browser/generated/src/models/index.d.ts.map +1 -1
- package/dist/browser/generated/src/models/index.js +124 -46
- package/dist/browser/generated/src/models/index.js.map +1 -1
- package/dist/browser/generated/src/models/mappers.d.ts +59 -11
- package/dist/browser/generated/src/models/mappers.d.ts.map +1 -1
- package/dist/browser/generated/src/models/mappers.js +2122 -466
- package/dist/browser/generated/src/models/mappers.js.map +1 -1
- package/dist/browser/generated/src/models/parameters.d.ts +8 -1
- package/dist/browser/generated/src/models/parameters.d.ts.map +1 -1
- package/dist/browser/generated/src/models/parameters.js +45 -6
- package/dist/browser/generated/src/models/parameters.js.map +1 -1
- package/dist/browser/generated/src/operations/callConnection.d.ts +16 -2
- package/dist/browser/generated/src/operations/callConnection.d.ts.map +1 -1
- package/dist/browser/generated/src/operations/callConnection.js +65 -1
- package/dist/browser/generated/src/operations/callConnection.js.map +1 -1
- package/dist/browser/generated/src/operations/callDialog.d.ts +35 -0
- package/dist/browser/generated/src/operations/callDialog.d.ts.map +1 -0
- package/dist/browser/generated/src/operations/callDialog.js +111 -0
- package/dist/browser/generated/src/operations/callDialog.js.map +1 -0
- package/dist/browser/generated/src/operations/callMedia.d.ts +15 -8
- package/dist/browser/generated/src/operations/callMedia.d.ts.map +1 -1
- package/dist/browser/generated/src/operations/callMedia.js +50 -25
- package/dist/browser/generated/src/operations/callMedia.js.map +1 -1
- package/dist/browser/generated/src/operations/callRecording.d.ts +7 -1
- package/dist/browser/generated/src/operations/callRecording.d.ts.map +1 -1
- package/dist/browser/generated/src/operations/callRecording.js +24 -0
- package/dist/browser/generated/src/operations/callRecording.js.map +1 -1
- package/dist/browser/generated/src/operations/index.d.ts +1 -0
- package/dist/browser/generated/src/operations/index.d.ts.map +1 -1
- package/dist/browser/generated/src/operations/index.js +1 -0
- package/dist/browser/generated/src/operations/index.js.map +1 -1
- package/dist/browser/generated/src/operationsInterfaces/callConnection.d.ts +16 -2
- package/dist/browser/generated/src/operationsInterfaces/callConnection.d.ts.map +1 -1
- package/dist/browser/generated/src/operationsInterfaces/callConnection.js.map +1 -1
- package/dist/browser/generated/src/operationsInterfaces/callDialog.d.ts +27 -0
- package/dist/browser/generated/src/operationsInterfaces/callDialog.d.ts.map +1 -0
- package/dist/browser/generated/src/operationsInterfaces/callDialog.js +9 -0
- package/dist/browser/generated/src/operationsInterfaces/callDialog.js.map +1 -0
- package/dist/browser/generated/src/operationsInterfaces/callMedia.d.ts +15 -8
- package/dist/browser/generated/src/operationsInterfaces/callMedia.d.ts.map +1 -1
- package/dist/browser/generated/src/operationsInterfaces/callMedia.js.map +1 -1
- package/dist/browser/generated/src/operationsInterfaces/callRecording.d.ts +7 -1
- package/dist/browser/generated/src/operationsInterfaces/callRecording.d.ts.map +1 -1
- package/dist/browser/generated/src/operationsInterfaces/callRecording.js.map +1 -1
- package/dist/browser/generated/src/operationsInterfaces/index.d.ts +1 -0
- package/dist/browser/generated/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/browser/generated/src/operationsInterfaces/index.js +1 -0
- package/dist/browser/generated/src/operationsInterfaces/index.js.map +1 -1
- package/dist/browser/index.d.ts +2 -0
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +2 -0
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/models/constants.js +1 -1
- package/dist/browser/models/constants.js.map +1 -1
- package/dist/browser/models/events.d.ts +188 -62
- package/dist/browser/models/events.d.ts.map +1 -1
- package/dist/browser/models/events.js.map +1 -1
- package/dist/browser/models/models.d.ts +85 -7
- package/dist/browser/models/models.d.ts.map +1 -1
- package/dist/browser/models/models.js +3 -1
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/models/options.d.ts +49 -2
- package/dist/browser/models/options.d.ts.map +1 -1
- package/dist/browser/models/options.js.map +1 -1
- package/dist/browser/models/responses.d.ts +82 -10
- package/dist/browser/models/responses.d.ts.map +1 -1
- package/dist/browser/models/responses.js.map +1 -1
- package/dist/browser/utli/converters.d.ts +26 -2
- package/dist/browser/utli/converters.d.ts.map +1 -1
- package/dist/browser/utli/converters.js +114 -19
- package/dist/browser/utli/converters.js.map +1 -1
- package/dist/commonjs/callAutomationClient.d.ts +9 -2
- package/dist/commonjs/callAutomationClient.d.ts.map +1 -1
- package/dist/commonjs/callAutomationClient.js +116 -11
- package/dist/commonjs/callAutomationClient.js.map +1 -1
- package/dist/commonjs/callAutomationEventParser.d.ts.map +1 -1
- package/dist/commonjs/callAutomationEventParser.js +46 -0
- package/dist/commonjs/callAutomationEventParser.js.map +1 -1
- package/dist/commonjs/callConnection.d.ts +16 -6
- package/dist/commonjs/callConnection.d.ts.map +1 -1
- package/dist/commonjs/callConnection.js +167 -16
- package/dist/commonjs/callConnection.js.map +1 -1
- package/dist/commonjs/callMedia.d.ts +20 -10
- package/dist/commonjs/callMedia.d.ts.map +1 -1
- package/dist/commonjs/callMedia.js +209 -41
- package/dist/commonjs/callMedia.js.map +1 -1
- package/dist/commonjs/callRecording.d.ts +8 -2
- package/dist/commonjs/callRecording.d.ts.map +1 -1
- package/dist/commonjs/callRecording.js +20 -5
- package/dist/commonjs/callRecording.js.map +1 -1
- package/dist/commonjs/eventprocessor/callAutomationEventProcessor.d.ts +39 -0
- package/dist/commonjs/eventprocessor/callAutomationEventProcessor.d.ts.map +1 -0
- package/dist/commonjs/eventprocessor/callAutomationEventProcessor.js +141 -0
- package/dist/commonjs/eventprocessor/callAutomationEventProcessor.js.map +1 -0
- package/dist/commonjs/eventprocessor/eventResponses.d.ts +134 -0
- package/dist/commonjs/eventprocessor/eventResponses.d.ts.map +1 -0
- package/dist/commonjs/eventprocessor/eventResponses.js +5 -0
- package/dist/commonjs/eventprocessor/eventResponses.js.map +1 -0
- package/dist/commonjs/generated/src/callAutomationApiClient.d.ts +2 -1
- package/dist/commonjs/generated/src/callAutomationApiClient.d.ts.map +1 -1
- package/dist/commonjs/generated/src/callAutomationApiClient.js +3 -2
- package/dist/commonjs/generated/src/callAutomationApiClient.js.map +1 -1
- package/dist/commonjs/generated/src/models/index.d.ts +971 -206
- package/dist/commonjs/generated/src/models/index.d.ts.map +1 -1
- package/dist/commonjs/generated/src/models/index.js +125 -47
- package/dist/commonjs/generated/src/models/index.js.map +1 -1
- package/dist/commonjs/generated/src/models/mappers.d.ts +59 -11
- package/dist/commonjs/generated/src/models/mappers.d.ts.map +1 -1
- package/dist/commonjs/generated/src/models/mappers.js +2125 -469
- package/dist/commonjs/generated/src/models/mappers.js.map +1 -1
- package/dist/commonjs/generated/src/models/parameters.d.ts +8 -1
- package/dist/commonjs/generated/src/models/parameters.d.ts.map +1 -1
- package/dist/commonjs/generated/src/models/parameters.js +45 -6
- package/dist/commonjs/generated/src/models/parameters.js.map +1 -1
- package/dist/commonjs/generated/src/operations/callConnection.d.ts +16 -2
- package/dist/commonjs/generated/src/operations/callConnection.d.ts.map +1 -1
- package/dist/commonjs/generated/src/operations/callConnection.js +65 -1
- package/dist/commonjs/generated/src/operations/callConnection.js.map +1 -1
- package/dist/commonjs/generated/src/operations/callDialog.d.ts +35 -0
- package/dist/commonjs/generated/src/operations/callDialog.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operations/callDialog.js +116 -0
- package/dist/commonjs/generated/src/operations/callDialog.js.map +1 -0
- package/dist/commonjs/generated/src/operations/callMedia.d.ts +15 -8
- package/dist/commonjs/generated/src/operations/callMedia.d.ts.map +1 -1
- package/dist/commonjs/generated/src/operations/callMedia.js +50 -25
- package/dist/commonjs/generated/src/operations/callMedia.js.map +1 -1
- package/dist/commonjs/generated/src/operations/callRecording.d.ts +7 -1
- package/dist/commonjs/generated/src/operations/callRecording.d.ts.map +1 -1
- package/dist/commonjs/generated/src/operations/callRecording.js +24 -0
- package/dist/commonjs/generated/src/operations/callRecording.js.map +1 -1
- package/dist/commonjs/generated/src/operations/index.d.ts +1 -0
- package/dist/commonjs/generated/src/operations/index.d.ts.map +1 -1
- package/dist/commonjs/generated/src/operations/index.js +1 -0
- package/dist/commonjs/generated/src/operations/index.js.map +1 -1
- package/dist/commonjs/generated/src/operationsInterfaces/callConnection.d.ts +16 -2
- package/dist/commonjs/generated/src/operationsInterfaces/callConnection.d.ts.map +1 -1
- package/dist/commonjs/generated/src/operationsInterfaces/callConnection.js.map +1 -1
- package/dist/commonjs/generated/src/operationsInterfaces/callDialog.d.ts +27 -0
- package/dist/commonjs/generated/src/operationsInterfaces/callDialog.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/callDialog.js +10 -0
- package/dist/commonjs/generated/src/operationsInterfaces/callDialog.js.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/callMedia.d.ts +15 -8
- package/dist/commonjs/generated/src/operationsInterfaces/callMedia.d.ts.map +1 -1
- package/dist/commonjs/generated/src/operationsInterfaces/callMedia.js.map +1 -1
- package/dist/commonjs/generated/src/operationsInterfaces/callRecording.d.ts +7 -1
- package/dist/commonjs/generated/src/operationsInterfaces/callRecording.d.ts.map +1 -1
- package/dist/commonjs/generated/src/operationsInterfaces/callRecording.js.map +1 -1
- package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/commonjs/generated/src/operationsInterfaces/index.js +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/index.js.map +1 -1
- package/dist/commonjs/index.d.ts +2 -0
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +2 -0
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/models/constants.js +1 -1
- package/dist/commonjs/models/constants.js.map +1 -1
- package/dist/commonjs/models/events.d.ts +188 -62
- package/dist/commonjs/models/events.d.ts.map +1 -1
- package/dist/commonjs/models/events.js.map +1 -1
- package/dist/commonjs/models/models.d.ts +85 -7
- package/dist/commonjs/models/models.d.ts.map +1 -1
- package/dist/commonjs/models/models.js +11 -6
- package/dist/commonjs/models/models.js.map +1 -1
- package/dist/commonjs/models/options.d.ts +49 -2
- package/dist/commonjs/models/options.d.ts.map +1 -1
- package/dist/commonjs/models/options.js.map +1 -1
- package/dist/commonjs/models/responses.d.ts +82 -10
- package/dist/commonjs/models/responses.d.ts.map +1 -1
- package/dist/commonjs/models/responses.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/commonjs/utli/converters.d.ts +26 -2
- package/dist/commonjs/utli/converters.d.ts.map +1 -1
- package/dist/commonjs/utli/converters.js +119 -18
- package/dist/commonjs/utli/converters.js.map +1 -1
- package/dist/esm/callAutomationClient.d.ts +9 -2
- package/dist/esm/callAutomationClient.d.ts.map +1 -1
- package/dist/esm/callAutomationClient.js +115 -10
- package/dist/esm/callAutomationClient.js.map +1 -1
- package/dist/esm/callAutomationEventParser.d.ts.map +1 -1
- package/dist/esm/callAutomationEventParser.js +47 -1
- package/dist/esm/callAutomationEventParser.js.map +1 -1
- package/dist/esm/callConnection.d.ts +16 -6
- package/dist/esm/callConnection.d.ts.map +1 -1
- package/dist/esm/callConnection.js +166 -15
- package/dist/esm/callConnection.js.map +1 -1
- package/dist/esm/callMedia.d.ts +20 -10
- package/dist/esm/callMedia.d.ts.map +1 -1
- package/dist/esm/callMedia.js +190 -22
- package/dist/esm/callMedia.js.map +1 -1
- package/dist/esm/callRecording.d.ts +8 -2
- package/dist/esm/callRecording.d.ts.map +1 -1
- package/dist/esm/callRecording.js +20 -5
- package/dist/esm/callRecording.js.map +1 -1
- package/dist/esm/eventprocessor/callAutomationEventProcessor.d.ts +39 -0
- package/dist/esm/eventprocessor/callAutomationEventProcessor.d.ts.map +1 -0
- package/dist/esm/eventprocessor/callAutomationEventProcessor.js +137 -0
- package/dist/esm/eventprocessor/callAutomationEventProcessor.js.map +1 -0
- package/dist/esm/eventprocessor/eventResponses.d.ts +134 -0
- package/dist/esm/eventprocessor/eventResponses.d.ts.map +1 -0
- package/dist/esm/eventprocessor/eventResponses.js +4 -0
- package/dist/esm/eventprocessor/eventResponses.js.map +1 -0
- package/dist/esm/generated/src/callAutomationApiClient.d.ts +2 -1
- package/dist/esm/generated/src/callAutomationApiClient.d.ts.map +1 -1
- package/dist/esm/generated/src/callAutomationApiClient.js +4 -3
- package/dist/esm/generated/src/callAutomationApiClient.js.map +1 -1
- package/dist/esm/generated/src/models/index.d.ts +971 -206
- package/dist/esm/generated/src/models/index.d.ts.map +1 -1
- package/dist/esm/generated/src/models/index.js +124 -46
- package/dist/esm/generated/src/models/index.js.map +1 -1
- package/dist/esm/generated/src/models/mappers.d.ts +59 -11
- package/dist/esm/generated/src/models/mappers.d.ts.map +1 -1
- package/dist/esm/generated/src/models/mappers.js +2122 -466
- package/dist/esm/generated/src/models/mappers.js.map +1 -1
- package/dist/esm/generated/src/models/parameters.d.ts +8 -1
- package/dist/esm/generated/src/models/parameters.d.ts.map +1 -1
- package/dist/esm/generated/src/models/parameters.js +45 -6
- package/dist/esm/generated/src/models/parameters.js.map +1 -1
- package/dist/esm/generated/src/operations/callConnection.d.ts +16 -2
- package/dist/esm/generated/src/operations/callConnection.d.ts.map +1 -1
- package/dist/esm/generated/src/operations/callConnection.js +65 -1
- package/dist/esm/generated/src/operations/callConnection.js.map +1 -1
- package/dist/esm/generated/src/operations/callDialog.d.ts +35 -0
- package/dist/esm/generated/src/operations/callDialog.d.ts.map +1 -0
- package/dist/esm/generated/src/operations/callDialog.js +111 -0
- package/dist/esm/generated/src/operations/callDialog.js.map +1 -0
- package/dist/esm/generated/src/operations/callMedia.d.ts +15 -8
- package/dist/esm/generated/src/operations/callMedia.d.ts.map +1 -1
- package/dist/esm/generated/src/operations/callMedia.js +50 -25
- package/dist/esm/generated/src/operations/callMedia.js.map +1 -1
- package/dist/esm/generated/src/operations/callRecording.d.ts +7 -1
- package/dist/esm/generated/src/operations/callRecording.d.ts.map +1 -1
- package/dist/esm/generated/src/operations/callRecording.js +24 -0
- package/dist/esm/generated/src/operations/callRecording.js.map +1 -1
- package/dist/esm/generated/src/operations/index.d.ts +1 -0
- package/dist/esm/generated/src/operations/index.d.ts.map +1 -1
- package/dist/esm/generated/src/operations/index.js +1 -0
- package/dist/esm/generated/src/operations/index.js.map +1 -1
- package/dist/esm/generated/src/operationsInterfaces/callConnection.d.ts +16 -2
- package/dist/esm/generated/src/operationsInterfaces/callConnection.d.ts.map +1 -1
- package/dist/esm/generated/src/operationsInterfaces/callConnection.js.map +1 -1
- package/dist/esm/generated/src/operationsInterfaces/callDialog.d.ts +27 -0
- package/dist/esm/generated/src/operationsInterfaces/callDialog.d.ts.map +1 -0
- package/dist/esm/generated/src/operationsInterfaces/callDialog.js +9 -0
- package/dist/esm/generated/src/operationsInterfaces/callDialog.js.map +1 -0
- package/dist/esm/generated/src/operationsInterfaces/callMedia.d.ts +15 -8
- package/dist/esm/generated/src/operationsInterfaces/callMedia.d.ts.map +1 -1
- package/dist/esm/generated/src/operationsInterfaces/callMedia.js.map +1 -1
- package/dist/esm/generated/src/operationsInterfaces/callRecording.d.ts +7 -1
- package/dist/esm/generated/src/operationsInterfaces/callRecording.d.ts.map +1 -1
- package/dist/esm/generated/src/operationsInterfaces/callRecording.js.map +1 -1
- package/dist/esm/generated/src/operationsInterfaces/index.d.ts +1 -0
- package/dist/esm/generated/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/esm/generated/src/operationsInterfaces/index.js +1 -0
- package/dist/esm/generated/src/operationsInterfaces/index.js.map +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/constants.js +1 -1
- package/dist/esm/models/constants.js.map +1 -1
- package/dist/esm/models/events.d.ts +188 -62
- package/dist/esm/models/events.d.ts.map +1 -1
- package/dist/esm/models/events.js.map +1 -1
- package/dist/esm/models/models.d.ts +85 -7
- package/dist/esm/models/models.d.ts.map +1 -1
- package/dist/esm/models/models.js +3 -1
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/models/options.d.ts +49 -2
- package/dist/esm/models/options.d.ts.map +1 -1
- package/dist/esm/models/options.js.map +1 -1
- package/dist/esm/models/responses.d.ts +82 -10
- package/dist/esm/models/responses.d.ts.map +1 -1
- package/dist/esm/models/responses.js.map +1 -1
- package/dist/esm/utli/converters.d.ts +26 -2
- package/dist/esm/utli/converters.d.ts.map +1 -1
- package/dist/esm/utli/converters.js +114 -19
- package/dist/esm/utli/converters.js.map +1 -1
- package/dist/react-native/callAutomationClient.d.ts +9 -2
- package/dist/react-native/callAutomationClient.d.ts.map +1 -1
- package/dist/react-native/callAutomationClient.js +115 -10
- package/dist/react-native/callAutomationClient.js.map +1 -1
- package/dist/react-native/callAutomationEventParser.d.ts.map +1 -1
- package/dist/react-native/callAutomationEventParser.js +47 -1
- package/dist/react-native/callAutomationEventParser.js.map +1 -1
- package/dist/react-native/callConnection.d.ts +16 -6
- package/dist/react-native/callConnection.d.ts.map +1 -1
- package/dist/react-native/callConnection.js +166 -15
- package/dist/react-native/callConnection.js.map +1 -1
- package/dist/react-native/callMedia.d.ts +20 -10
- package/dist/react-native/callMedia.d.ts.map +1 -1
- package/dist/react-native/callMedia.js +190 -22
- package/dist/react-native/callMedia.js.map +1 -1
- package/dist/react-native/callRecording.d.ts +8 -2
- package/dist/react-native/callRecording.d.ts.map +1 -1
- package/dist/react-native/callRecording.js +20 -5
- package/dist/react-native/callRecording.js.map +1 -1
- package/dist/react-native/eventprocessor/callAutomationEventProcessor.d.ts +39 -0
- package/dist/react-native/eventprocessor/callAutomationEventProcessor.d.ts.map +1 -0
- package/dist/react-native/eventprocessor/callAutomationEventProcessor.js +137 -0
- package/dist/react-native/eventprocessor/callAutomationEventProcessor.js.map +1 -0
- package/dist/react-native/eventprocessor/eventResponses.d.ts +134 -0
- package/dist/react-native/eventprocessor/eventResponses.d.ts.map +1 -0
- package/dist/react-native/eventprocessor/eventResponses.js +4 -0
- package/dist/react-native/eventprocessor/eventResponses.js.map +1 -0
- package/dist/react-native/generated/src/callAutomationApiClient.d.ts +2 -1
- package/dist/react-native/generated/src/callAutomationApiClient.d.ts.map +1 -1
- package/dist/react-native/generated/src/callAutomationApiClient.js +4 -3
- package/dist/react-native/generated/src/callAutomationApiClient.js.map +1 -1
- package/dist/react-native/generated/src/models/index.d.ts +971 -206
- package/dist/react-native/generated/src/models/index.d.ts.map +1 -1
- package/dist/react-native/generated/src/models/index.js +124 -46
- package/dist/react-native/generated/src/models/index.js.map +1 -1
- package/dist/react-native/generated/src/models/mappers.d.ts +59 -11
- package/dist/react-native/generated/src/models/mappers.d.ts.map +1 -1
- package/dist/react-native/generated/src/models/mappers.js +2122 -466
- package/dist/react-native/generated/src/models/mappers.js.map +1 -1
- package/dist/react-native/generated/src/models/parameters.d.ts +8 -1
- package/dist/react-native/generated/src/models/parameters.d.ts.map +1 -1
- package/dist/react-native/generated/src/models/parameters.js +45 -6
- package/dist/react-native/generated/src/models/parameters.js.map +1 -1
- package/dist/react-native/generated/src/operations/callConnection.d.ts +16 -2
- package/dist/react-native/generated/src/operations/callConnection.d.ts.map +1 -1
- package/dist/react-native/generated/src/operations/callConnection.js +65 -1
- package/dist/react-native/generated/src/operations/callConnection.js.map +1 -1
- package/dist/react-native/generated/src/operations/callDialog.d.ts +35 -0
- package/dist/react-native/generated/src/operations/callDialog.d.ts.map +1 -0
- package/dist/react-native/generated/src/operations/callDialog.js +111 -0
- package/dist/react-native/generated/src/operations/callDialog.js.map +1 -0
- package/dist/react-native/generated/src/operations/callMedia.d.ts +15 -8
- package/dist/react-native/generated/src/operations/callMedia.d.ts.map +1 -1
- package/dist/react-native/generated/src/operations/callMedia.js +50 -25
- package/dist/react-native/generated/src/operations/callMedia.js.map +1 -1
- package/dist/react-native/generated/src/operations/callRecording.d.ts +7 -1
- package/dist/react-native/generated/src/operations/callRecording.d.ts.map +1 -1
- package/dist/react-native/generated/src/operations/callRecording.js +24 -0
- package/dist/react-native/generated/src/operations/callRecording.js.map +1 -1
- package/dist/react-native/generated/src/operations/index.d.ts +1 -0
- package/dist/react-native/generated/src/operations/index.d.ts.map +1 -1
- package/dist/react-native/generated/src/operations/index.js +1 -0
- package/dist/react-native/generated/src/operations/index.js.map +1 -1
- package/dist/react-native/generated/src/operationsInterfaces/callConnection.d.ts +16 -2
- package/dist/react-native/generated/src/operationsInterfaces/callConnection.d.ts.map +1 -1
- package/dist/react-native/generated/src/operationsInterfaces/callConnection.js.map +1 -1
- package/dist/react-native/generated/src/operationsInterfaces/callDialog.d.ts +27 -0
- package/dist/react-native/generated/src/operationsInterfaces/callDialog.d.ts.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/callDialog.js +9 -0
- package/dist/react-native/generated/src/operationsInterfaces/callDialog.js.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/callMedia.d.ts +15 -8
- package/dist/react-native/generated/src/operationsInterfaces/callMedia.d.ts.map +1 -1
- package/dist/react-native/generated/src/operationsInterfaces/callMedia.js.map +1 -1
- package/dist/react-native/generated/src/operationsInterfaces/callRecording.d.ts +7 -1
- package/dist/react-native/generated/src/operationsInterfaces/callRecording.d.ts.map +1 -1
- package/dist/react-native/generated/src/operationsInterfaces/callRecording.js.map +1 -1
- package/dist/react-native/generated/src/operationsInterfaces/index.d.ts +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/react-native/generated/src/operationsInterfaces/index.js +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/index.js.map +1 -1
- package/dist/react-native/index.d.ts +2 -0
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +2 -0
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/models/constants.js +1 -1
- package/dist/react-native/models/constants.js.map +1 -1
- package/dist/react-native/models/events.d.ts +188 -62
- package/dist/react-native/models/events.d.ts.map +1 -1
- package/dist/react-native/models/events.js.map +1 -1
- package/dist/react-native/models/models.d.ts +85 -7
- package/dist/react-native/models/models.d.ts.map +1 -1
- package/dist/react-native/models/models.js +3 -1
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/models/options.d.ts +49 -2
- package/dist/react-native/models/options.d.ts.map +1 -1
- package/dist/react-native/models/options.js.map +1 -1
- package/dist/react-native/models/responses.d.ts +82 -10
- package/dist/react-native/models/responses.d.ts.map +1 -1
- package/dist/react-native/models/responses.js.map +1 -1
- package/dist/react-native/utli/converters.d.ts +26 -2
- package/dist/react-native/utli/converters.d.ts.map +1 -1
- package/dist/react-native/utli/converters.js +114 -19
- package/dist/react-native/utli/converters.js.map +1 -1
- package/package.json +16 -22
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.CallDialogImpl = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
13
|
+
const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
14
|
+
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
15
|
+
/** Class containing CallDialog operations. */
|
|
16
|
+
class CallDialogImpl {
|
|
17
|
+
/**
|
|
18
|
+
* Initialize a new instance of the class CallDialog class.
|
|
19
|
+
* @param client Reference to the service client
|
|
20
|
+
*/
|
|
21
|
+
constructor(client) {
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Start a dialog.
|
|
26
|
+
* @param callConnectionId The call connection id
|
|
27
|
+
* @param dialogId The dialog id
|
|
28
|
+
* @param startDialogRequest The start dialog request
|
|
29
|
+
* @param options The options parameters.
|
|
30
|
+
*/
|
|
31
|
+
startDialog(callConnectionId, dialogId, startDialogRequest, options) {
|
|
32
|
+
return this.client.sendOperationRequest({ callConnectionId, dialogId, startDialogRequest, options }, startDialogOperationSpec);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @param callConnectionId
|
|
36
|
+
* @param dialogId
|
|
37
|
+
* @param options The options parameters.
|
|
38
|
+
*/
|
|
39
|
+
stopDialog(callConnectionId, dialogId, options) {
|
|
40
|
+
return this.client.sendOperationRequest({ callConnectionId, dialogId, options }, stopDialogOperationSpec);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Update a dialog.
|
|
44
|
+
* @param callConnectionId The call connection id
|
|
45
|
+
* @param dialogId The dialog id
|
|
46
|
+
* @param updateDialogRequest The update dialog request
|
|
47
|
+
* @param options The options parameters.
|
|
48
|
+
*/
|
|
49
|
+
updateDialog(callConnectionId, dialogId, updateDialogRequest, options) {
|
|
50
|
+
return this.client.sendOperationRequest({ callConnectionId, dialogId, updateDialogRequest, options }, updateDialogOperationSpec);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.CallDialogImpl = CallDialogImpl;
|
|
54
|
+
// Operation Specifications
|
|
55
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
56
|
+
const startDialogOperationSpec = {
|
|
57
|
+
path: "/calling/callConnections/{callConnectionId}/dialogs/{dialogId}",
|
|
58
|
+
httpMethod: "PUT",
|
|
59
|
+
responses: {
|
|
60
|
+
201: {
|
|
61
|
+
bodyMapper: Mappers.DialogStateResponse,
|
|
62
|
+
},
|
|
63
|
+
default: {
|
|
64
|
+
bodyMapper: Mappers.CommunicationErrorResponse,
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
requestBody: Parameters.startDialogRequest,
|
|
68
|
+
queryParameters: [Parameters.apiVersion],
|
|
69
|
+
urlParameters: [
|
|
70
|
+
Parameters.endpoint,
|
|
71
|
+
Parameters.callConnectionId,
|
|
72
|
+
Parameters.dialogId,
|
|
73
|
+
],
|
|
74
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
75
|
+
mediaType: "json",
|
|
76
|
+
serializer,
|
|
77
|
+
};
|
|
78
|
+
const stopDialogOperationSpec = {
|
|
79
|
+
path: "/calling/callConnections/{callConnectionId}/dialogs/{dialogId}",
|
|
80
|
+
httpMethod: "DELETE",
|
|
81
|
+
responses: {
|
|
82
|
+
204: {},
|
|
83
|
+
default: {
|
|
84
|
+
bodyMapper: Mappers.CommunicationErrorResponse,
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
queryParameters: [Parameters.apiVersion, Parameters.operationCallbackUri],
|
|
88
|
+
urlParameters: [
|
|
89
|
+
Parameters.endpoint,
|
|
90
|
+
Parameters.callConnectionId,
|
|
91
|
+
Parameters.dialogId,
|
|
92
|
+
],
|
|
93
|
+
headerParameters: [Parameters.accept],
|
|
94
|
+
serializer,
|
|
95
|
+
};
|
|
96
|
+
const updateDialogOperationSpec = {
|
|
97
|
+
path: "/calling/callConnections/{callConnectionId}/dialogs/{dialogId}",
|
|
98
|
+
httpMethod: "PATCH",
|
|
99
|
+
responses: {
|
|
100
|
+
200: {},
|
|
101
|
+
default: {
|
|
102
|
+
bodyMapper: Mappers.CommunicationErrorResponse,
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
requestBody: Parameters.updateDialogRequest,
|
|
106
|
+
queryParameters: [Parameters.apiVersion],
|
|
107
|
+
urlParameters: [
|
|
108
|
+
Parameters.endpoint,
|
|
109
|
+
Parameters.callConnectionId,
|
|
110
|
+
Parameters.dialogId,
|
|
111
|
+
],
|
|
112
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
113
|
+
mediaType: "json",
|
|
114
|
+
serializer,
|
|
115
|
+
};
|
|
116
|
+
//# sourceMappingURL=callDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callDialog.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/callDialog.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAWtD,8CAA8C;AAC9C,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U,CAAC,QAAQ;QACnB,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,uBAAuB,GAA6B;IACxD,IAAI,EAAE,gEAAgE;IACtE,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,oBAAoB,CAAC;IACzE,aAAa,EAAE;QACb,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,yBAAyB,GAA6B;IAC1D,IAAI,EAAE,gEAAgE;IACtE,UAAU,EAAE,OAAO;IACnB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,WAAW,EAAE,UAAU,CAAC,mBAAmB;IAC3C,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { CallDialog } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CallAutomationApiClient } from \"../callAutomationApiClient.js\";\nimport {\n StartDialogRequest,\n CallDialogStartDialogOptionalParams,\n CallDialogStartDialogResponse,\n CallDialogStopDialogOptionalParams,\n UpdateDialogRequest,\n CallDialogUpdateDialogOptionalParams,\n} from \"../models/index.js\";\n\n/** Class containing CallDialog operations. */\nexport class CallDialogImpl implements CallDialog {\n private readonly client: CallAutomationApiClient;\n\n /**\n * Initialize a new instance of the class CallDialog class.\n * @param client Reference to the service client\n */\n constructor(client: CallAutomationApiClient) {\n this.client = client;\n }\n\n /**\n * Start a dialog.\n * @param callConnectionId The call connection id\n * @param dialogId The dialog id\n * @param startDialogRequest The start dialog request\n * @param options The options parameters.\n */\n startDialog(\n callConnectionId: string,\n dialogId: string,\n startDialogRequest: StartDialogRequest,\n options?: CallDialogStartDialogOptionalParams,\n ): Promise<CallDialogStartDialogResponse> {\n return this.client.sendOperationRequest(\n { callConnectionId, dialogId, startDialogRequest, options },\n startDialogOperationSpec,\n );\n }\n\n /**\n * @param callConnectionId\n * @param dialogId\n * @param options The options parameters.\n */\n stopDialog(\n callConnectionId: string,\n dialogId: string,\n options?: CallDialogStopDialogOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, dialogId, options },\n stopDialogOperationSpec,\n );\n }\n\n /**\n * Update a dialog.\n * @param callConnectionId The call connection id\n * @param dialogId The dialog id\n * @param updateDialogRequest The update dialog request\n * @param options The options parameters.\n */\n updateDialog(\n callConnectionId: string,\n dialogId: string,\n updateDialogRequest: UpdateDialogRequest,\n options?: CallDialogUpdateDialogOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, dialogId, updateDialogRequest, options },\n updateDialogOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst startDialogOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}/dialogs/{dialogId}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n bodyMapper: Mappers.DialogStateResponse,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.startDialogRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.callConnectionId,\n Parameters.dialogId,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst stopDialogOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}/dialogs/{dialogId}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.operationCallbackUri],\n urlParameters: [\n Parameters.endpoint,\n Parameters.callConnectionId,\n Parameters.dialogId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateDialogOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}/dialogs/{dialogId}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.updateDialogRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.callConnectionId,\n Parameters.dialogId,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CallMedia } from "../operationsInterfaces/index.js";
|
|
2
2
|
import { CallAutomationApiClient } from "../callAutomationApiClient.js";
|
|
3
|
-
import { PlayRequest, CallMediaPlayOptionalParams, StartTranscriptionRequest, CallMediaStartTranscriptionOptionalParams, StopTranscriptionRequest, CallMediaStopTranscriptionOptionalParams,
|
|
3
|
+
import { PlayRequest, CallMediaPlayOptionalParams, StartTranscriptionRequest, CallMediaStartTranscriptionOptionalParams, StopTranscriptionRequest, CallMediaStopTranscriptionOptionalParams, CallMediaCancelAllMediaOperationsOptionalParams, RecognizeRequest, CallMediaRecognizeOptionalParams, ContinuousDtmfRecognitionRequest, CallMediaStartContinuousDtmfRecognitionOptionalParams, CallMediaStopContinuousDtmfRecognitionOptionalParams, SendDtmfTonesRequest, CallMediaSendDtmfTonesOptionalParams, CallMediaSendDtmfTonesResponse, UpdateTranscriptionRequest, CallMediaUpdateTranscriptionOptionalParams, HoldRequest, CallMediaHoldOptionalParams, UnholdRequest, CallMediaUnholdOptionalParams, StartMediaStreamingRequest, CallMediaStartMediaStreamingOptionalParams, StopMediaStreamingRequest, CallMediaStopMediaStreamingOptionalParams, InterruptAudioAndAnnounceRequest, CallMediaInterruptAudioAndAnnounceOptionalParams } from "../models/index.js";
|
|
4
4
|
/** Class containing CallMedia operations. */
|
|
5
5
|
export declare class CallMediaImpl implements CallMedia {
|
|
6
6
|
private readonly client;
|
|
@@ -30,13 +30,6 @@ export declare class CallMediaImpl implements CallMedia {
|
|
|
30
30
|
* @param options The options parameters.
|
|
31
31
|
*/
|
|
32
32
|
stopTranscription(callConnectionId: string, stopTranscriptionRequest: StopTranscriptionRequest, options?: CallMediaStopTranscriptionOptionalParams): Promise<void>;
|
|
33
|
-
/**
|
|
34
|
-
* API to change transcription language.
|
|
35
|
-
* @param callConnectionId The call connection id
|
|
36
|
-
* @param updateTranscriptionRequest The UpdateTranscription request
|
|
37
|
-
* @param options The options parameters.
|
|
38
|
-
*/
|
|
39
|
-
updateTranscription(callConnectionId: string, updateTranscriptionRequest: UpdateTranscriptionRequest, options?: CallMediaUpdateTranscriptionOptionalParams): Promise<void>;
|
|
40
33
|
/**
|
|
41
34
|
* Cancel all media operations in a call.
|
|
42
35
|
* @param callConnectionId The call connection id
|
|
@@ -71,6 +64,13 @@ export declare class CallMediaImpl implements CallMedia {
|
|
|
71
64
|
* @param options The options parameters.
|
|
72
65
|
*/
|
|
73
66
|
sendDtmfTones(callConnectionId: string, sendDtmfTonesRequest: SendDtmfTonesRequest, options?: CallMediaSendDtmfTonesOptionalParams): Promise<CallMediaSendDtmfTonesResponse>;
|
|
67
|
+
/**
|
|
68
|
+
* API to change transcription language.
|
|
69
|
+
* @param callConnectionId The call connection id
|
|
70
|
+
* @param updateTranscriptionRequest The UpdateTranscription request
|
|
71
|
+
* @param options The options parameters.
|
|
72
|
+
*/
|
|
73
|
+
updateTranscription(callConnectionId: string, updateTranscriptionRequest: UpdateTranscriptionRequest, options?: CallMediaUpdateTranscriptionOptionalParams): Promise<void>;
|
|
74
74
|
/**
|
|
75
75
|
* Hold participant from the call using identifier.
|
|
76
76
|
* @param callConnectionId The call connection id.
|
|
@@ -99,5 +99,12 @@ export declare class CallMediaImpl implements CallMedia {
|
|
|
99
99
|
* @param options The options parameters.
|
|
100
100
|
*/
|
|
101
101
|
stopMediaStreaming(callConnectionId: string, stopMediaStreamingRequest: StopMediaStreamingRequest, options?: CallMediaStopMediaStreamingOptionalParams): Promise<void>;
|
|
102
|
+
/**
|
|
103
|
+
* Plays audio to participants in the call.
|
|
104
|
+
* @param callConnectionId The call connection id.
|
|
105
|
+
* @param interruptRequest play request payload.
|
|
106
|
+
* @param options The options parameters.
|
|
107
|
+
*/
|
|
108
|
+
interruptAudioAndAnnounce(callConnectionId: string, interruptRequest: InterruptAudioAndAnnounceRequest, options?: CallMediaInterruptAudioAndAnnounceOptionalParams): Promise<void>;
|
|
102
109
|
}
|
|
103
110
|
//# sourceMappingURL=callMedia.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callMedia.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/operations/callMedia.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAI7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EACL,WAAW,EACX,2BAA2B,EAC3B,yBAAyB,EACzB,yCAAyC,EACzC,wBAAwB,EACxB,wCAAwC,EACxC
|
|
1
|
+
{"version":3,"file":"callMedia.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/operations/callMedia.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAI7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EACL,WAAW,EACX,2BAA2B,EAC3B,yBAAyB,EACzB,yCAAyC,EACzC,wBAAwB,EACxB,wCAAwC,EACxC,+CAA+C,EAC/C,gBAAgB,EAChB,gCAAgC,EAChC,gCAAgC,EAChC,qDAAqD,EACrD,oDAAoD,EACpD,oBAAoB,EACpB,oCAAoC,EACpC,8BAA8B,EAC9B,0BAA0B,EAC1B,0CAA0C,EAC1C,WAAW,EACX,2BAA2B,EAC3B,aAAa,EACb,6BAA6B,EAC7B,0BAA0B,EAC1B,0CAA0C,EAC1C,yBAAyB,EACzB,yCAAyC,EACzC,gCAAgC,EAChC,gDAAgD,EACjD,MAAM,oBAAoB,CAAC;AAE5B,6CAA6C;AAC7C,qBAAa,aAAc,YAAW,SAAS;IAC7C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;;;OAKG;IACH,IAAI,CACF,gBAAgB,EAAE,MAAM,EACxB,WAAW,EAAE,WAAW,EACxB,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;OAKG;IACH,kBAAkB,CAChB,gBAAgB,EAAE,MAAM,EACxB,yBAAyB,EAAE,yBAAyB,EACpD,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;OAKG;IACH,iBAAiB,CACf,gBAAgB,EAAE,MAAM,EAC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I,CAAC;IAOhB;;;;;OAKG;IACH,mBAAmB,CACjB,gBAAgB,EAAE,MAAM,EACxB,0BAA0B,EAAE,0BAA0B,EACtD,OAAO,CAAC,EAAE,0CAA0C,GACnD,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;OAKG;IACH,kBAAkB,CAChB,gBAAgB,EAAE,MAAM,EACxB,yBAAyB,EAAE,yBAAyB,EACpD,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;OAKG;IACH,yBAAyB,CACvB,gBAAgB,EAAE,MAAM,EACxB,gBAAgB,EAAE,gCAAgC,EAClD,OAAO,CAAC,EAAE,gDAAgD,GACzD,OAAO,CAAC,IAAI,CAAC;CAMjB"}
|
|
@@ -48,15 +48,6 @@ class CallMediaImpl {
|
|
|
48
48
|
stopTranscription(callConnectionId, stopTranscriptionRequest, options) {
|
|
49
49
|
return this.client.sendOperationRequest({ callConnectionId, stopTranscriptionRequest, options }, stopTranscriptionOperationSpec);
|
|
50
50
|
}
|
|
51
|
-
/**
|
|
52
|
-
* API to change transcription language.
|
|
53
|
-
* @param callConnectionId The call connection id
|
|
54
|
-
* @param updateTranscriptionRequest The UpdateTranscription request
|
|
55
|
-
* @param options The options parameters.
|
|
56
|
-
*/
|
|
57
|
-
updateTranscription(callConnectionId, updateTranscriptionRequest, options) {
|
|
58
|
-
return this.client.sendOperationRequest({ callConnectionId, updateTranscriptionRequest, options }, updateTranscriptionOperationSpec);
|
|
59
|
-
}
|
|
60
51
|
/**
|
|
61
52
|
* Cancel all media operations in a call.
|
|
62
53
|
* @param callConnectionId The call connection id
|
|
@@ -101,6 +92,15 @@ class CallMediaImpl {
|
|
|
101
92
|
sendDtmfTones(callConnectionId, sendDtmfTonesRequest, options) {
|
|
102
93
|
return this.client.sendOperationRequest({ callConnectionId, sendDtmfTonesRequest, options }, sendDtmfTonesOperationSpec);
|
|
103
94
|
}
|
|
95
|
+
/**
|
|
96
|
+
* API to change transcription language.
|
|
97
|
+
* @param callConnectionId The call connection id
|
|
98
|
+
* @param updateTranscriptionRequest The UpdateTranscription request
|
|
99
|
+
* @param options The options parameters.
|
|
100
|
+
*/
|
|
101
|
+
updateTranscription(callConnectionId, updateTranscriptionRequest, options) {
|
|
102
|
+
return this.client.sendOperationRequest({ callConnectionId, updateTranscriptionRequest, options }, updateTranscriptionOperationSpec);
|
|
103
|
+
}
|
|
104
104
|
/**
|
|
105
105
|
* Hold participant from the call using identifier.
|
|
106
106
|
* @param callConnectionId The call connection id.
|
|
@@ -137,6 +137,15 @@ class CallMediaImpl {
|
|
|
137
137
|
stopMediaStreaming(callConnectionId, stopMediaStreamingRequest, options) {
|
|
138
138
|
return this.client.sendOperationRequest({ callConnectionId, stopMediaStreamingRequest, options }, stopMediaStreamingOperationSpec);
|
|
139
139
|
}
|
|
140
|
+
/**
|
|
141
|
+
* Plays audio to participants in the call.
|
|
142
|
+
* @param callConnectionId The call connection id.
|
|
143
|
+
* @param interruptRequest play request payload.
|
|
144
|
+
* @param options The options parameters.
|
|
145
|
+
*/
|
|
146
|
+
interruptAudioAndAnnounce(callConnectionId, interruptRequest, options) {
|
|
147
|
+
return this.client.sendOperationRequest({ callConnectionId, interruptRequest, options }, interruptAudioAndAnnounceOperationSpec);
|
|
148
|
+
}
|
|
140
149
|
}
|
|
141
150
|
exports.CallMediaImpl = CallMediaImpl;
|
|
142
151
|
// Operation Specifications
|
|
@@ -189,22 +198,6 @@ const stopTranscriptionOperationSpec = {
|
|
|
189
198
|
mediaType: "json",
|
|
190
199
|
serializer,
|
|
191
200
|
};
|
|
192
|
-
const updateTranscriptionOperationSpec = {
|
|
193
|
-
path: "/calling/callConnections/{callConnectionId}:updateTranscription",
|
|
194
|
-
httpMethod: "POST",
|
|
195
|
-
responses: {
|
|
196
|
-
202: {},
|
|
197
|
-
default: {
|
|
198
|
-
bodyMapper: Mappers.CommunicationErrorResponse,
|
|
199
|
-
},
|
|
200
|
-
},
|
|
201
|
-
requestBody: Parameters.updateTranscriptionRequest,
|
|
202
|
-
queryParameters: [Parameters.apiVersion],
|
|
203
|
-
urlParameters: [Parameters.endpoint, Parameters.callConnectionId],
|
|
204
|
-
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
205
|
-
mediaType: "json",
|
|
206
|
-
serializer,
|
|
207
|
-
};
|
|
208
201
|
const cancelAllMediaOperationsOperationSpec = {
|
|
209
202
|
path: "/calling/callConnections/{callConnectionId}:cancelAllMediaOperations",
|
|
210
203
|
httpMethod: "POST",
|
|
@@ -290,6 +283,22 @@ const sendDtmfTonesOperationSpec = {
|
|
|
290
283
|
mediaType: "json",
|
|
291
284
|
serializer,
|
|
292
285
|
};
|
|
286
|
+
const updateTranscriptionOperationSpec = {
|
|
287
|
+
path: "/calling/callConnections/{callConnectionId}:updateTranscription",
|
|
288
|
+
httpMethod: "POST",
|
|
289
|
+
responses: {
|
|
290
|
+
202: {},
|
|
291
|
+
default: {
|
|
292
|
+
bodyMapper: Mappers.CommunicationErrorResponse,
|
|
293
|
+
},
|
|
294
|
+
},
|
|
295
|
+
requestBody: Parameters.updateTranscriptionRequest,
|
|
296
|
+
queryParameters: [Parameters.apiVersion],
|
|
297
|
+
urlParameters: [Parameters.endpoint, Parameters.callConnectionId],
|
|
298
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
299
|
+
mediaType: "json",
|
|
300
|
+
serializer,
|
|
301
|
+
};
|
|
293
302
|
const holdOperationSpec = {
|
|
294
303
|
path: "/calling/callConnections/{callConnectionId}:hold",
|
|
295
304
|
httpMethod: "POST",
|
|
@@ -354,4 +363,20 @@ const stopMediaStreamingOperationSpec = {
|
|
|
354
363
|
mediaType: "json",
|
|
355
364
|
serializer,
|
|
356
365
|
};
|
|
366
|
+
const interruptAudioAndAnnounceOperationSpec = {
|
|
367
|
+
path: "/calling/callConnections/{callConnectionId}:interruptAudioAndAnnounce",
|
|
368
|
+
httpMethod: "POST",
|
|
369
|
+
responses: {
|
|
370
|
+
202: {},
|
|
371
|
+
default: {
|
|
372
|
+
bodyMapper: Mappers.CommunicationErrorResponse,
|
|
373
|
+
},
|
|
374
|
+
},
|
|
375
|
+
requestBody: Parameters.interruptRequest,
|
|
376
|
+
queryParameters: [Parameters.apiVersion],
|
|
377
|
+
urlParameters: [Parameters.endpoint, Parameters.callConnectionId],
|
|
378
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
379
|
+
mediaType: "json",
|
|
380
|
+
serializer,
|
|
381
|
+
};
|
|
357
382
|
//# sourceMappingURL=callMedia.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callMedia.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/callMedia.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AA8BtD,6CAA6C;AAC7C,MAAa,aAAa;IAGxB;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,IAAI,CACF,gBAAwB,EACxB,WAAwB,EACxB,OAAqC;QAErC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,gBAAgB,EAAE,WAAW,EAAE,OAAO,EAAE,EAC1C,iBAAiB,CAClB,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,kBAAkB,CAChB,gBAAwB,EACxB,yBAAoD,EACpD,OAAmD;QAEnD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,OAAO,EAAE,EACxD,+BAA+B,CAChC,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,iBAAiB,CACf,gBAAwB,EACxB,wBAAkD,EAClD,OAAkD;QAElD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,OAAO,EAAE,EACvD,8BAA8B,CAC/B,C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E;IACvE,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,WAAW,EAAE,UAAU,CAAC,0BAA0B;IAClD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,gBAAgB,CAAC;IACjE,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,+BAA+B,GAA6B;IAChE,IAAI,EAAE,gEAAgE;IACtE,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,WAAW,EAAE,UAAU,CAAC,yBAAyB;IACjD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,gBAAgB,CAAC;IACjE,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { CallMedia } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CallAutomationApiClient } from \"../callAutomationApiClient.js\";\nimport {\n PlayRequest,\n CallMediaPlayOptionalParams,\n StartTranscriptionRequest,\n CallMediaStartTranscriptionOptionalParams,\n StopTranscriptionRequest,\n CallMediaStopTranscriptionOptionalParams,\n UpdateTranscriptionRequest,\n CallMediaUpdateTranscriptionOptionalParams,\n CallMediaCancelAllMediaOperationsOptionalParams,\n RecognizeRequest,\n CallMediaRecognizeOptionalParams,\n ContinuousDtmfRecognitionRequest,\n CallMediaStartContinuousDtmfRecognitionOptionalParams,\n CallMediaStopContinuousDtmfRecognitionOptionalParams,\n SendDtmfTonesRequest,\n CallMediaSendDtmfTonesOptionalParams,\n CallMediaSendDtmfTonesResponse,\n HoldRequest,\n CallMediaHoldOptionalParams,\n UnholdRequest,\n CallMediaUnholdOptionalParams,\n StartMediaStreamingRequest,\n CallMediaStartMediaStreamingOptionalParams,\n StopMediaStreamingRequest,\n CallMediaStopMediaStreamingOptionalParams,\n} from \"../models/index.js\";\n\n/** Class containing CallMedia operations. */\nexport class CallMediaImpl implements CallMedia {\n private readonly client: CallAutomationApiClient;\n\n /**\n * Initialize a new instance of the class CallMedia class.\n * @param client Reference to the service client\n */\n constructor(client: CallAutomationApiClient) {\n this.client = client;\n }\n\n /**\n * Plays audio to participants in the call.\n * @param callConnectionId The call connection id.\n * @param playRequest play request payload.\n * @param options The options parameters.\n */\n play(\n callConnectionId: string,\n playRequest: PlayRequest,\n options?: CallMediaPlayOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, playRequest, options },\n playOperationSpec,\n );\n }\n\n /**\n * Starts transcription in the call\n * @param callConnectionId The call connection id.\n * @param startTranscriptionRequest\n * @param options The options parameters.\n */\n startTranscription(\n callConnectionId: string,\n startTranscriptionRequest: StartTranscriptionRequest,\n options?: CallMediaStartTranscriptionOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, startTranscriptionRequest, options },\n startTranscriptionOperationSpec,\n );\n }\n\n /**\n * Stops transcription in the call.\n * @param callConnectionId The call connection id.\n * @param stopTranscriptionRequest stop transcription request payload.\n * @param options The options parameters.\n */\n stopTranscription(\n callConnectionId: string,\n stopTranscriptionRequest: StopTranscriptionRequest,\n options?: CallMediaStopTranscriptionOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, stopTranscriptionRequest, options },\n stopTranscriptionOperationSpec,\n );\n }\n\n /**\n * API to change transcription language.\n * @param callConnectionId The call connection id\n * @param updateTranscriptionRequest The UpdateTranscription request\n * @param options The options parameters.\n */\n updateTranscription(\n callConnectionId: string,\n updateTranscriptionRequest: UpdateTranscriptionRequest,\n options?: CallMediaUpdateTranscriptionOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, updateTranscriptionRequest, options },\n updateTranscriptionOperationSpec,\n );\n }\n\n /**\n * Cancel all media operations in a call.\n * @param callConnectionId The call connection id\n * @param options The options parameters.\n */\n cancelAllMediaOperations(\n callConnectionId: string,\n options?: CallMediaCancelAllMediaOperationsOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, options },\n cancelAllMediaOperationsOperationSpec,\n );\n }\n\n /**\n * Recognize media from call.\n * @param callConnectionId The call connection id\n * @param recognizeRequest The media recognize request\n * @param options The options parameters.\n */\n recognize(\n callConnectionId: string,\n recognizeRequest: RecognizeRequest,\n options?: CallMediaRecognizeOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, recognizeRequest, options },\n recognizeOperationSpec,\n );\n }\n\n /**\n * Start continuous Dtmf recognition by subscribing to tones.\n * @param callConnectionId The call connection id\n * @param continuousDtmfRecognitionRequest The continuous recognize request\n * @param options The options parameters.\n */\n startContinuousDtmfRecognition(\n callConnectionId: string,\n continuousDtmfRecognitionRequest: ContinuousDtmfRecognitionRequest,\n options?: CallMediaStartContinuousDtmfRecognitionOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, continuousDtmfRecognitionRequest, options },\n startContinuousDtmfRecognitionOperationSpec,\n );\n }\n\n /**\n * Stop continuous Dtmf recognition by unsubscribing to tones.\n * @param callConnectionId The call connection id\n * @param continuousDtmfRecognitionRequest The continuous recognize request\n * @param options The options parameters.\n */\n stopContinuousDtmfRecognition(\n callConnectionId: string,\n continuousDtmfRecognitionRequest: ContinuousDtmfRecognitionRequest,\n options?: CallMediaStopContinuousDtmfRecognitionOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, continuousDtmfRecognitionRequest, options },\n stopContinuousDtmfRecognitionOperationSpec,\n );\n }\n\n /**\n * Send dtmf tones.\n * @param callConnectionId The call connection id\n * @param sendDtmfTonesRequest The send dtmf tones request\n * @param options The options parameters.\n */\n sendDtmfTones(\n callConnectionId: string,\n sendDtmfTonesRequest: SendDtmfTonesRequest,\n options?: CallMediaSendDtmfTonesOptionalParams,\n ): Promise<CallMediaSendDtmfTonesResponse> {\n return this.client.sendOperationRequest(\n { callConnectionId, sendDtmfTonesRequest, options },\n sendDtmfTonesOperationSpec,\n );\n }\n\n /**\n * Hold participant from the call using identifier.\n * @param callConnectionId The call connection id.\n * @param holdRequest The participants to be hold from the call.\n * @param options The options parameters.\n */\n hold(\n callConnectionId: string,\n holdRequest: HoldRequest,\n options?: CallMediaHoldOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, holdRequest, options },\n holdOperationSpec,\n );\n }\n\n /**\n * Unhold participants from the call using identifier.\n * @param callConnectionId The call connection id.\n * @param unholdRequest The participants to be hold from the call.\n * @param options The options parameters.\n */\n unhold(\n callConnectionId: string,\n unholdRequest: UnholdRequest,\n options?: CallMediaUnholdOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, unholdRequest, options },\n unholdOperationSpec,\n );\n }\n\n /**\n * Starts media streaming in the call.\n * @param callConnectionId The call connection id.\n * @param startMediaStreamingRequest\n * @param options The options parameters.\n */\n startMediaStreaming(\n callConnectionId: string,\n startMediaStreamingRequest: StartMediaStreamingRequest,\n options?: CallMediaStartMediaStreamingOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, startMediaStreamingRequest, options },\n startMediaStreamingOperationSpec,\n );\n }\n\n /**\n * Stops media streaming in the call.\n * @param callConnectionId The call connection id.\n * @param stopMediaStreamingRequest stop media streaming request payload.\n * @param options The options parameters.\n */\n stopMediaStreaming(\n callConnectionId: string,\n stopMediaStreamingRequest: StopMediaStreamingRequest,\n options?: CallMediaStopMediaStreamingOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, stopMediaStreamingRequest, options },\n stopMediaStreamingOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst playOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:play\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.playRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst startTranscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:startTranscription\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.startTranscriptionRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst stopTranscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:stopTranscription\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.stopTranscriptionRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst updateTranscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:updateTranscription\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.updateTranscriptionRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst cancelAllMediaOperationsOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:cancelAllMediaOperations\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst recognizeOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:recognize\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.recognizeRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst startContinuousDtmfRecognitionOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:startContinuousDtmfRecognition\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.continuousDtmfRecognitionRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst stopContinuousDtmfRecognitionOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:stopContinuousDtmfRecognition\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.continuousDtmfRecognitionRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst sendDtmfTonesOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:sendDtmfTones\",\n httpMethod: \"POST\",\n responses: {\n 202: {\n bodyMapper: Mappers.SendDtmfTonesResult,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.sendDtmfTonesRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.repeatabilityRequestID,\n Parameters.repeatabilityFirstSent,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst holdOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:hold\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.holdRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst unholdOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:unhold\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.unholdRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst startMediaStreamingOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:startMediaStreaming\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.startMediaStreamingRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst stopMediaStreamingOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:stopMediaStreaming\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.stopMediaStreamingRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"callMedia.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/callMedia.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAgCtD,6CAA6C;AAC7C,MAAa,aAAa;IAGxB;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,IAAI,CACF,gBAAwB,EACxB,WAAwB,EACxB,OAAqC;QAErC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,gBAAgB,EAAE,WAAW,EAAE,OAAO,EAAE,EAC1C,iBAAiB,CAClB,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,kBAAkB,CAChB,gBAAwB,EACxB,yBAAoD,EACpD,OAAmD;QAEnD,OAAO,IAA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UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,gBAAgB,CAAC;IACjE,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,sCAAsC,GAA6B;IACvE,IAAI,EAAE,uEAAuE;IAC7E,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,WAAW,EAAE,UAAU,CAAC,gBAAgB;IACxC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,gBAAgB,CAAC;IACjE,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { CallMedia } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CallAutomationApiClient } from \"../callAutomationApiClient.js\";\nimport {\n PlayRequest,\n CallMediaPlayOptionalParams,\n StartTranscriptionRequest,\n CallMediaStartTranscriptionOptionalParams,\n StopTranscriptionRequest,\n CallMediaStopTranscriptionOptionalParams,\n CallMediaCancelAllMediaOperationsOptionalParams,\n RecognizeRequest,\n CallMediaRecognizeOptionalParams,\n ContinuousDtmfRecognitionRequest,\n CallMediaStartContinuousDtmfRecognitionOptionalParams,\n CallMediaStopContinuousDtmfRecognitionOptionalParams,\n SendDtmfTonesRequest,\n CallMediaSendDtmfTonesOptionalParams,\n CallMediaSendDtmfTonesResponse,\n UpdateTranscriptionRequest,\n CallMediaUpdateTranscriptionOptionalParams,\n HoldRequest,\n CallMediaHoldOptionalParams,\n UnholdRequest,\n CallMediaUnholdOptionalParams,\n StartMediaStreamingRequest,\n CallMediaStartMediaStreamingOptionalParams,\n StopMediaStreamingRequest,\n CallMediaStopMediaStreamingOptionalParams,\n InterruptAudioAndAnnounceRequest,\n CallMediaInterruptAudioAndAnnounceOptionalParams,\n} from \"../models/index.js\";\n\n/** Class containing CallMedia operations. */\nexport class CallMediaImpl implements CallMedia {\n private readonly client: CallAutomationApiClient;\n\n /**\n * Initialize a new instance of the class CallMedia class.\n * @param client Reference to the service client\n */\n constructor(client: CallAutomationApiClient) {\n this.client = client;\n }\n\n /**\n * Plays audio to participants in the call.\n * @param callConnectionId The call connection id.\n * @param playRequest play request payload.\n * @param options The options parameters.\n */\n play(\n callConnectionId: string,\n playRequest: PlayRequest,\n options?: CallMediaPlayOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, playRequest, options },\n playOperationSpec,\n );\n }\n\n /**\n * Starts transcription in the call\n * @param callConnectionId The call connection id.\n * @param startTranscriptionRequest\n * @param options The options parameters.\n */\n startTranscription(\n callConnectionId: string,\n startTranscriptionRequest: StartTranscriptionRequest,\n options?: CallMediaStartTranscriptionOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, startTranscriptionRequest, options },\n startTranscriptionOperationSpec,\n );\n }\n\n /**\n * Stops transcription in the call.\n * @param callConnectionId The call connection id.\n * @param stopTranscriptionRequest stop transcription request payload.\n * @param options The options parameters.\n */\n stopTranscription(\n callConnectionId: string,\n stopTranscriptionRequest: StopTranscriptionRequest,\n options?: CallMediaStopTranscriptionOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, stopTranscriptionRequest, options },\n stopTranscriptionOperationSpec,\n );\n }\n\n /**\n * Cancel all media operations in a call.\n * @param callConnectionId The call connection id\n * @param options The options parameters.\n */\n cancelAllMediaOperations(\n callConnectionId: string,\n options?: CallMediaCancelAllMediaOperationsOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, options },\n cancelAllMediaOperationsOperationSpec,\n );\n }\n\n /**\n * Recognize media from call.\n * @param callConnectionId The call connection id\n * @param recognizeRequest The media recognize request\n * @param options The options parameters.\n */\n recognize(\n callConnectionId: string,\n recognizeRequest: RecognizeRequest,\n options?: CallMediaRecognizeOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, recognizeRequest, options },\n recognizeOperationSpec,\n );\n }\n\n /**\n * Start continuous Dtmf recognition by subscribing to tones.\n * @param callConnectionId The call connection id\n * @param continuousDtmfRecognitionRequest The continuous recognize request\n * @param options The options parameters.\n */\n startContinuousDtmfRecognition(\n callConnectionId: string,\n continuousDtmfRecognitionRequest: ContinuousDtmfRecognitionRequest,\n options?: CallMediaStartContinuousDtmfRecognitionOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, continuousDtmfRecognitionRequest, options },\n startContinuousDtmfRecognitionOperationSpec,\n );\n }\n\n /**\n * Stop continuous Dtmf recognition by unsubscribing to tones.\n * @param callConnectionId The call connection id\n * @param continuousDtmfRecognitionRequest The continuous recognize request\n * @param options The options parameters.\n */\n stopContinuousDtmfRecognition(\n callConnectionId: string,\n continuousDtmfRecognitionRequest: ContinuousDtmfRecognitionRequest,\n options?: CallMediaStopContinuousDtmfRecognitionOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, continuousDtmfRecognitionRequest, options },\n stopContinuousDtmfRecognitionOperationSpec,\n );\n }\n\n /**\n * Send dtmf tones.\n * @param callConnectionId The call connection id\n * @param sendDtmfTonesRequest The send dtmf tones request\n * @param options The options parameters.\n */\n sendDtmfTones(\n callConnectionId: string,\n sendDtmfTonesRequest: SendDtmfTonesRequest,\n options?: CallMediaSendDtmfTonesOptionalParams,\n ): Promise<CallMediaSendDtmfTonesResponse> {\n return this.client.sendOperationRequest(\n { callConnectionId, sendDtmfTonesRequest, options },\n sendDtmfTonesOperationSpec,\n );\n }\n\n /**\n * API to change transcription language.\n * @param callConnectionId The call connection id\n * @param updateTranscriptionRequest The UpdateTranscription request\n * @param options The options parameters.\n */\n updateTranscription(\n callConnectionId: string,\n updateTranscriptionRequest: UpdateTranscriptionRequest,\n options?: CallMediaUpdateTranscriptionOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, updateTranscriptionRequest, options },\n updateTranscriptionOperationSpec,\n );\n }\n\n /**\n * Hold participant from the call using identifier.\n * @param callConnectionId The call connection id.\n * @param holdRequest The participants to be hold from the call.\n * @param options The options parameters.\n */\n hold(\n callConnectionId: string,\n holdRequest: HoldRequest,\n options?: CallMediaHoldOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, holdRequest, options },\n holdOperationSpec,\n );\n }\n\n /**\n * Unhold participants from the call using identifier.\n * @param callConnectionId The call connection id.\n * @param unholdRequest The participants to be hold from the call.\n * @param options The options parameters.\n */\n unhold(\n callConnectionId: string,\n unholdRequest: UnholdRequest,\n options?: CallMediaUnholdOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, unholdRequest, options },\n unholdOperationSpec,\n );\n }\n\n /**\n * Starts media streaming in the call.\n * @param callConnectionId The call connection id.\n * @param startMediaStreamingRequest\n * @param options The options parameters.\n */\n startMediaStreaming(\n callConnectionId: string,\n startMediaStreamingRequest: StartMediaStreamingRequest,\n options?: CallMediaStartMediaStreamingOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, startMediaStreamingRequest, options },\n startMediaStreamingOperationSpec,\n );\n }\n\n /**\n * Stops media streaming in the call.\n * @param callConnectionId The call connection id.\n * @param stopMediaStreamingRequest stop media streaming request payload.\n * @param options The options parameters.\n */\n stopMediaStreaming(\n callConnectionId: string,\n stopMediaStreamingRequest: StopMediaStreamingRequest,\n options?: CallMediaStopMediaStreamingOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, stopMediaStreamingRequest, options },\n stopMediaStreamingOperationSpec,\n );\n }\n\n /**\n * Plays audio to participants in the call.\n * @param callConnectionId The call connection id.\n * @param interruptRequest play request payload.\n * @param options The options parameters.\n */\n interruptAudioAndAnnounce(\n callConnectionId: string,\n interruptRequest: InterruptAudioAndAnnounceRequest,\n options?: CallMediaInterruptAudioAndAnnounceOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, interruptRequest, options },\n interruptAudioAndAnnounceOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst playOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:play\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.playRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst startTranscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:startTranscription\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.startTranscriptionRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst stopTranscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:stopTranscription\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.stopTranscriptionRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst cancelAllMediaOperationsOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:cancelAllMediaOperations\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst recognizeOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:recognize\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.recognizeRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst startContinuousDtmfRecognitionOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:startContinuousDtmfRecognition\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.continuousDtmfRecognitionRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst stopContinuousDtmfRecognitionOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:stopContinuousDtmfRecognition\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.continuousDtmfRecognitionRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst sendDtmfTonesOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:sendDtmfTones\",\n httpMethod: \"POST\",\n responses: {\n 202: {\n bodyMapper: Mappers.SendDtmfTonesResult,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.sendDtmfTonesRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.repeatabilityRequestID,\n Parameters.repeatabilityFirstSent,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst updateTranscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:updateTranscription\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.updateTranscriptionRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst holdOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:hold\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.holdRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst unholdOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:unhold\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.unholdRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst startMediaStreamingOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:startMediaStreaming\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.startMediaStreamingRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst stopMediaStreamingOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:stopMediaStreaming\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.stopMediaStreamingRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst interruptAudioAndAnnounceOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:interruptAudioAndAnnounce\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.interruptRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CallRecording } from "../operationsInterfaces/index.js";
|
|
2
2
|
import { CallAutomationApiClient } from "../callAutomationApiClient.js";
|
|
3
|
-
import { StartCallRecordingRequest, CallRecordingStartRecordingOptionalParams, CallRecordingStartRecordingResponse, CallRecordingGetRecordingPropertiesOptionalParams, CallRecordingGetRecordingPropertiesResponse, CallRecordingStopRecordingOptionalParams, CallRecordingPauseRecordingOptionalParams, CallRecordingResumeRecordingOptionalParams } from "../models/index.js";
|
|
3
|
+
import { StartCallRecordingRequest, CallRecordingStartRecordingOptionalParams, CallRecordingStartRecordingResponse, CallRecordingGetRecordingPropertiesOptionalParams, CallRecordingGetRecordingPropertiesResponse, CallRecordingStopRecordingOptionalParams, CallRecordingPauseRecordingOptionalParams, CallRecordingResumeRecordingOptionalParams, CallRecordingGetRecordingResultOptionalParams, CallRecordingGetRecordingResultResponse } from "../models/index.js";
|
|
4
4
|
/** Class containing CallRecording operations. */
|
|
5
5
|
export declare class CallRecordingImpl implements CallRecording {
|
|
6
6
|
private readonly client;
|
|
@@ -39,5 +39,11 @@ export declare class CallRecordingImpl implements CallRecording {
|
|
|
39
39
|
* @param options The options parameters.
|
|
40
40
|
*/
|
|
41
41
|
resumeRecording(recordingId: string, options?: CallRecordingResumeRecordingOptionalParams): Promise<void>;
|
|
42
|
+
/**
|
|
43
|
+
* Get recording result. This includes the download URLs for the recording chunks.
|
|
44
|
+
* @param recordingId The recording id.
|
|
45
|
+
* @param options The options parameters.
|
|
46
|
+
*/
|
|
47
|
+
getRecordingResult(recordingId: string, options?: CallRecordingGetRecordingResultOptionalParams): Promise<CallRecordingGetRecordingResultResponse>;
|
|
42
48
|
}
|
|
43
49
|
//# sourceMappingURL=callRecording.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callRecording.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/operations/callRecording.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAIjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EACL,yBAAyB,EACzB,yCAAyC,EACzC,mCAAmC,EACnC,iDAAiD,EACjD,2CAA2C,EAC3C,wCAAwC,EACxC,yCAAyC,EACzC,0CAA0C,
|
|
1
|
+
{"version":3,"file":"callRecording.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/operations/callRecording.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAIjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EACL,yBAAyB,EACzB,yCAAyC,EACzC,mCAAmC,EACnC,iDAAiD,EACjD,2CAA2C,EAC3C,wCAAwC,EACxC,yCAAyC,EACzC,0CAA0C,EAC1C,6CAA6C,EAC7C,uCAAuC,EACxC,MAAM,oBAAoB,CAAC;AAE5B,iDAAiD;AACjD,qBAAa,iBAAkB,YAAW,aAAa;IACrD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;;OAIG;IACH,cAAc,CACZ,kBAAkB,EAAE,yBAAyB,EAC7C,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,mCAAmC,CAAC;IAO/C;;;;OAIG;IACH,sBAAsB,CACpB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,iDAAiD,GAC1D,OAAO,CAAC,2CAA2C,CAAC;IAOvD;;;;OAIG;IACH,aAAa,CACX,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;OAIG;IACH,cAAc,CACZ,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;OAIG;IACH,eAAe,CACb,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,0CAA0C,GACnD,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;OAIG;IACH,kBAAkB,CAChB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,6CAA6C,GACtD,OAAO,CAAC,uCAAuC,CAAC;CAMpD"}
|
|
@@ -61,6 +61,14 @@ class CallRecordingImpl {
|
|
|
61
61
|
resumeRecording(recordingId, options) {
|
|
62
62
|
return this.client.sendOperationRequest({ recordingId, options }, resumeRecordingOperationSpec);
|
|
63
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* Get recording result. This includes the download URLs for the recording chunks.
|
|
66
|
+
* @param recordingId The recording id.
|
|
67
|
+
* @param options The options parameters.
|
|
68
|
+
*/
|
|
69
|
+
getRecordingResult(recordingId, options) {
|
|
70
|
+
return this.client.sendOperationRequest({ recordingId, options }, getRecordingResultOperationSpec);
|
|
71
|
+
}
|
|
64
72
|
}
|
|
65
73
|
exports.CallRecordingImpl = CallRecordingImpl;
|
|
66
74
|
// Operation Specifications
|
|
@@ -149,4 +157,20 @@ const resumeRecordingOperationSpec = {
|
|
|
149
157
|
headerParameters: [Parameters.accept],
|
|
150
158
|
serializer,
|
|
151
159
|
};
|
|
160
|
+
const getRecordingResultOperationSpec = {
|
|
161
|
+
path: "/calling/recordings/{recordingId}/result",
|
|
162
|
+
httpMethod: "GET",
|
|
163
|
+
responses: {
|
|
164
|
+
200: {
|
|
165
|
+
bodyMapper: Mappers.RecordingResultResponse,
|
|
166
|
+
},
|
|
167
|
+
default: {
|
|
168
|
+
bodyMapper: Mappers.CommunicationErrorResponse,
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
queryParameters: [Parameters.apiVersion],
|
|
172
|
+
urlParameters: [Parameters.endpoint, Parameters.recordingId],
|
|
173
|
+
headerParameters: [Parameters.accept],
|
|
174
|
+
serializer,
|
|
175
|
+
};
|
|
152
176
|
//# sourceMappingURL=callRecording.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callRecording.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/callRecording.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EA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AE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,2BAA2B,GAA6B;IAC5D,IAAI,EAAE,yCAAyC;IAC/C,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,WAAW,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,4BAA4B,GAA6B;IAC7D,IAAI,EAAE,0CAA0C;IAChD,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,WAAW,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { CallRecording } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CallAutomationApiClient } from \"../callAutomationApiClient.js\";\nimport {\n StartCallRecordingRequest,\n CallRecordingStartRecordingOptionalParams,\n CallRecordingStartRecordingResponse,\n CallRecordingGetRecordingPropertiesOptionalParams,\n CallRecordingGetRecordingPropertiesResponse,\n CallRecordingStopRecordingOptionalParams,\n CallRecordingPauseRecordingOptionalParams,\n CallRecordingResumeRecordingOptionalParams,\n} from \"../models/index.js\";\n\n/** Class containing CallRecording operations. */\nexport class CallRecordingImpl implements CallRecording {\n private readonly client: CallAutomationApiClient;\n\n /**\n * Initialize a new instance of the class CallRecording class.\n * @param client Reference to the service client\n */\n constructor(client: CallAutomationApiClient) {\n this.client = client;\n }\n\n /**\n * Start recording the call.\n * @param startCallRecording The request body of start call recording request.\n * @param options The options parameters.\n */\n startRecording(\n startCallRecording: StartCallRecordingRequest,\n options?: CallRecordingStartRecordingOptionalParams,\n ): Promise<CallRecordingStartRecordingResponse> {\n return this.client.sendOperationRequest(\n { startCallRecording, options },\n startRecordingOperationSpec,\n );\n }\n\n /**\n * Get call recording properties.\n * @param recordingId The recording id.\n * @param options The options parameters.\n */\n getRecordingProperties(\n recordingId: string,\n options?: CallRecordingGetRecordingPropertiesOptionalParams,\n ): Promise<CallRecordingGetRecordingPropertiesResponse> {\n return this.client.sendOperationRequest(\n { recordingId, options },\n getRecordingPropertiesOperationSpec,\n );\n }\n\n /**\n * Stop recording the call.\n * @param recordingId The recording id.\n * @param options The options parameters.\n */\n stopRecording(\n recordingId: string,\n options?: CallRecordingStopRecordingOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { recordingId, options },\n stopRecordingOperationSpec,\n );\n }\n\n /**\n * Pause recording the call.\n * @param recordingId The recording id.\n * @param options The options parameters.\n */\n pauseRecording(\n recordingId: string,\n options?: CallRecordingPauseRecordingOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { recordingId, options },\n pauseRecordingOperationSpec,\n );\n }\n\n /**\n * Resume recording the call.\n * @param recordingId The recording id.\n * @param options The options parameters.\n */\n resumeRecording(\n recordingId: string,\n options?: CallRecordingResumeRecordingOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { recordingId, options },\n resumeRecordingOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst startRecordingOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/recordings\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecordingStateResponse,\n },\n 202: {\n bodyMapper: Mappers.RecordingStateResponse,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.startCallRecording,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.repeatabilityRequestID,\n Parameters.repeatabilityFirstSent,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst getRecordingPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/recordings/{recordingId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecordingStateResponse,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.recordingId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst stopRecordingOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/recordings/{recordingId}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.recordingId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst pauseRecordingOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/recordings/{recordingId}:pause\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.recordingId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst resumeRecordingOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/recordings/{recordingId}:resume\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.recordingId],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"callRecording.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/callRecording.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAetD,iDAAiD;AACjD,MAAa,iBAAiB;IAG5B;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,cAAc,CACZ,kBAA6C,EAC7C,OAAmD;QAEnD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,kBAAkB,EAAE,OAAO,EAAE,EAC/B,2BAA2B,CAC5B,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,sBAAsB,CACpB,WAAmB,EACnB,OAA2D;QAE3D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,WAAW,EAAE,OAAO,EAAE,EACxB,mCAAmC,CACpC,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,aAAa,CACX,WAAmB,EACnB,OAAkD;QAElD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,WAAW,EAAE,OAAO,EAAE,EACxB,0BAA0B,CAC3B,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,cAAc,CACZ,WAAmB,EACnB,OAAmD;QAEnD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,WAAW,EAAE,OAAO,EAAE,EACxB,2BAA2B,CAC5B,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,eAAe,CACb,WAAmB,EACnB,OAAoD;QAEpD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAA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IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,+BAA+B,GAA6B;IAChE,IAAI,EAAE,0CAA0C;IAChD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,WAAW,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { CallRecording } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CallAutomationApiClient } from \"../callAutomationApiClient.js\";\nimport {\n StartCallRecordingRequest,\n CallRecordingStartRecordingOptionalParams,\n CallRecordingStartRecordingResponse,\n CallRecordingGetRecordingPropertiesOptionalParams,\n CallRecordingGetRecordingPropertiesResponse,\n CallRecordingStopRecordingOptionalParams,\n CallRecordingPauseRecordingOptionalParams,\n CallRecordingResumeRecordingOptionalParams,\n CallRecordingGetRecordingResultOptionalParams,\n CallRecordingGetRecordingResultResponse,\n} from \"../models/index.js\";\n\n/** Class containing CallRecording operations. */\nexport class CallRecordingImpl implements CallRecording {\n private readonly client: CallAutomationApiClient;\n\n /**\n * Initialize a new instance of the class CallRecording class.\n * @param client Reference to the service client\n */\n constructor(client: CallAutomationApiClient) {\n this.client = client;\n }\n\n /**\n * Start recording the call.\n * @param startCallRecording The request body of start call recording request.\n * @param options The options parameters.\n */\n startRecording(\n startCallRecording: StartCallRecordingRequest,\n options?: CallRecordingStartRecordingOptionalParams,\n ): Promise<CallRecordingStartRecordingResponse> {\n return this.client.sendOperationRequest(\n { startCallRecording, options },\n startRecordingOperationSpec,\n );\n }\n\n /**\n * Get call recording properties.\n * @param recordingId The recording id.\n * @param options The options parameters.\n */\n getRecordingProperties(\n recordingId: string,\n options?: CallRecordingGetRecordingPropertiesOptionalParams,\n ): Promise<CallRecordingGetRecordingPropertiesResponse> {\n return this.client.sendOperationRequest(\n { recordingId, options },\n getRecordingPropertiesOperationSpec,\n );\n }\n\n /**\n * Stop recording the call.\n * @param recordingId The recording id.\n * @param options The options parameters.\n */\n stopRecording(\n recordingId: string,\n options?: CallRecordingStopRecordingOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { recordingId, options },\n stopRecordingOperationSpec,\n );\n }\n\n /**\n * Pause recording the call.\n * @param recordingId The recording id.\n * @param options The options parameters.\n */\n pauseRecording(\n recordingId: string,\n options?: CallRecordingPauseRecordingOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { recordingId, options },\n pauseRecordingOperationSpec,\n );\n }\n\n /**\n * Resume recording the call.\n * @param recordingId The recording id.\n * @param options The options parameters.\n */\n resumeRecording(\n recordingId: string,\n options?: CallRecordingResumeRecordingOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { recordingId, options },\n resumeRecordingOperationSpec,\n );\n }\n\n /**\n * Get recording result. This includes the download URLs for the recording chunks.\n * @param recordingId The recording id.\n * @param options The options parameters.\n */\n getRecordingResult(\n recordingId: string,\n options?: CallRecordingGetRecordingResultOptionalParams,\n ): Promise<CallRecordingGetRecordingResultResponse> {\n return this.client.sendOperationRequest(\n { recordingId, options },\n getRecordingResultOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst startRecordingOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/recordings\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecordingStateResponse,\n },\n 202: {\n bodyMapper: Mappers.RecordingStateResponse,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.startCallRecording,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.repeatabilityRequestID,\n Parameters.repeatabilityFirstSent,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst getRecordingPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/recordings/{recordingId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecordingStateResponse,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.recordingId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst stopRecordingOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/recordings/{recordingId}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.recordingId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst pauseRecordingOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/recordings/{recordingId}:pause\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.recordingId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst resumeRecordingOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/recordings/{recordingId}:resume\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.recordingId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getRecordingResultOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/recordings/{recordingId}/result\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecordingResultResponse,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.recordingId],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC"}
|
|
@@ -10,5 +10,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
const tslib_1 = require("tslib");
|
|
11
11
|
tslib_1.__exportStar(require("./callConnection.js"), exports);
|
|
12
12
|
tslib_1.__exportStar(require("./callMedia.js"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./callDialog.js"), exports);
|
|
13
14
|
tslib_1.__exportStar(require("./callRecording.js"), exports);
|
|
14
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,8DAAoC;AACpC,yDAA+B;AAC/B,6DAAmC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./callConnection.js\";\nexport * from \"./callMedia.js\";\nexport * from \"./callRecording.js\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,8DAAoC;AACpC,yDAA+B;AAC/B,0DAAgC;AAChC,6DAAmC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./callConnection.js\";\nexport * from \"./callMedia.js\";\nexport * from \"./callDialog.js\";\nexport * from \"./callRecording.js\";\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { CallParticipantInternal, CallConnectionGetParticipantsOptionalParams, CallConnectionGetCallOptionalParams, CallConnectionGetCallResponse, CallConnectionHangupCallOptionalParams, CallConnectionTerminateCallOptionalParams, TransferToParticipantRequest, CallConnectionTransferToParticipantOptionalParams, CallConnectionTransferToParticipantResponse, AddParticipantRequest, CallConnectionAddParticipantOptionalParams, CallConnectionAddParticipantResponse, RemoveParticipantRequest, CallConnectionRemoveParticipantOptionalParams, CallConnectionRemoveParticipantResponse, MuteParticipantsRequest, CallConnectionMuteOptionalParams, CallConnectionMuteResponse, CancelAddParticipantRequest, CallConnectionCancelAddParticipantOptionalParams, CallConnectionCancelAddParticipantResponse, CallConnectionGetParticipantOptionalParams, CallConnectionGetParticipantResponse } from "../models/index.js";
|
|
2
|
+
import { CallParticipantInternal, CallConnectionGetParticipantsOptionalParams, CallConnectionGetCallOptionalParams, CallConnectionGetCallResponse, CallConnectionHangupCallOptionalParams, CallConnectionTerminateCallOptionalParams, TransferToParticipantRequest, CallConnectionTransferToParticipantOptionalParams, CallConnectionTransferToParticipantResponse, AddParticipantRequest, CallConnectionAddParticipantOptionalParams, CallConnectionAddParticipantResponse, RemoveParticipantRequest, CallConnectionRemoveParticipantOptionalParams, CallConnectionRemoveParticipantResponse, MuteParticipantsRequest, CallConnectionMuteOptionalParams, CallConnectionMuteResponse, UnmuteParticipantsRequest, CallConnectionUnmuteOptionalParams, CallConnectionUnmuteResponse, CancelAddParticipantRequest, CallConnectionCancelAddParticipantOptionalParams, CallConnectionCancelAddParticipantResponse, MoveParticipantsRequest, CallConnectionMoveParticipantsOptionalParams, CallConnectionMoveParticipantsResponse, CallConnectionGetParticipantOptionalParams, CallConnectionGetParticipantResponse } from "../models/index.js";
|
|
3
3
|
/** Interface representing a CallConnection. */
|
|
4
4
|
export interface CallConnection {
|
|
5
5
|
/**
|
|
@@ -37,7 +37,7 @@ export interface CallConnection {
|
|
|
37
37
|
/**
|
|
38
38
|
* Add a participant to the call.
|
|
39
39
|
* @param callConnectionId The call connection Id
|
|
40
|
-
* @param addParticipantRequest The
|
|
40
|
+
* @param addParticipantRequest The add participants request.
|
|
41
41
|
* @param options The options parameters.
|
|
42
42
|
*/
|
|
43
43
|
addParticipant(callConnectionId: string, addParticipantRequest: AddParticipantRequest, options?: CallConnectionAddParticipantOptionalParams): Promise<CallConnectionAddParticipantResponse>;
|
|
@@ -55,6 +55,13 @@ export interface CallConnection {
|
|
|
55
55
|
* @param options The options parameters.
|
|
56
56
|
*/
|
|
57
57
|
mute(callConnectionId: string, muteParticipantsRequest: MuteParticipantsRequest, options?: CallConnectionMuteOptionalParams): Promise<CallConnectionMuteResponse>;
|
|
58
|
+
/**
|
|
59
|
+
* Unmute participants from the call using identifier.
|
|
60
|
+
* @param callConnectionId The call connection id.
|
|
61
|
+
* @param unmuteParticipantsRequest The participants to be unmuted from the call.
|
|
62
|
+
* @param options The options parameters.
|
|
63
|
+
*/
|
|
64
|
+
unmute(callConnectionId: string, unmuteParticipantsRequest: UnmuteParticipantsRequest, options?: CallConnectionUnmuteOptionalParams): Promise<CallConnectionUnmuteResponse>;
|
|
58
65
|
/**
|
|
59
66
|
* Cancel add participant operation.
|
|
60
67
|
* @param callConnectionId The call connection Id
|
|
@@ -62,6 +69,13 @@ export interface CallConnection {
|
|
|
62
69
|
* @param options The options parameters.
|
|
63
70
|
*/
|
|
64
71
|
cancelAddParticipant(callConnectionId: string, cancelAddParticipantRequest: CancelAddParticipantRequest, options?: CallConnectionCancelAddParticipantOptionalParams): Promise<CallConnectionCancelAddParticipantResponse>;
|
|
72
|
+
/**
|
|
73
|
+
* Add a participant to the call.
|
|
74
|
+
* @param callConnectionId The call connection Id
|
|
75
|
+
* @param moveParticipantRequest The move participants request.
|
|
76
|
+
* @param options The options parameters.
|
|
77
|
+
*/
|
|
78
|
+
moveParticipants(callConnectionId: string, moveParticipantRequest: MoveParticipantsRequest, options?: CallConnectionMoveParticipantsOptionalParams): Promise<CallConnectionMoveParticipantsResponse>;
|
|
65
79
|
/**
|
|
66
80
|
* Get participant from a call.
|
|
67
81
|
* @param callConnectionId The call connection Id
|