@azure/communication-call-automation 1.5.0-beta.2 → 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,111 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import * as coreClient from "@azure/core-client";
|
|
9
|
+
import * as Mappers from "../models/mappers.js";
|
|
10
|
+
import * as Parameters from "../models/parameters.js";
|
|
11
|
+
/** Class containing CallDialog operations. */
|
|
12
|
+
export class CallDialogImpl {
|
|
13
|
+
/**
|
|
14
|
+
* Initialize a new instance of the class CallDialog class.
|
|
15
|
+
* @param client Reference to the service client
|
|
16
|
+
*/
|
|
17
|
+
constructor(client) {
|
|
18
|
+
this.client = client;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Start a dialog.
|
|
22
|
+
* @param callConnectionId The call connection id
|
|
23
|
+
* @param dialogId The dialog id
|
|
24
|
+
* @param startDialogRequest The start dialog request
|
|
25
|
+
* @param options The options parameters.
|
|
26
|
+
*/
|
|
27
|
+
startDialog(callConnectionId, dialogId, startDialogRequest, options) {
|
|
28
|
+
return this.client.sendOperationRequest({ callConnectionId, dialogId, startDialogRequest, options }, startDialogOperationSpec);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @param callConnectionId
|
|
32
|
+
* @param dialogId
|
|
33
|
+
* @param options The options parameters.
|
|
34
|
+
*/
|
|
35
|
+
stopDialog(callConnectionId, dialogId, options) {
|
|
36
|
+
return this.client.sendOperationRequest({ callConnectionId, dialogId, options }, stopDialogOperationSpec);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Update a dialog.
|
|
40
|
+
* @param callConnectionId The call connection id
|
|
41
|
+
* @param dialogId The dialog id
|
|
42
|
+
* @param updateDialogRequest The update dialog request
|
|
43
|
+
* @param options The options parameters.
|
|
44
|
+
*/
|
|
45
|
+
updateDialog(callConnectionId, dialogId, updateDialogRequest, options) {
|
|
46
|
+
return this.client.sendOperationRequest({ callConnectionId, dialogId, updateDialogRequest, options }, updateDialogOperationSpec);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
// Operation Specifications
|
|
50
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
51
|
+
const startDialogOperationSpec = {
|
|
52
|
+
path: "/calling/callConnections/{callConnectionId}/dialogs/{dialogId}",
|
|
53
|
+
httpMethod: "PUT",
|
|
54
|
+
responses: {
|
|
55
|
+
201: {
|
|
56
|
+
bodyMapper: Mappers.DialogStateResponse,
|
|
57
|
+
},
|
|
58
|
+
default: {
|
|
59
|
+
bodyMapper: Mappers.CommunicationErrorResponse,
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
requestBody: Parameters.startDialogRequest,
|
|
63
|
+
queryParameters: [Parameters.apiVersion],
|
|
64
|
+
urlParameters: [
|
|
65
|
+
Parameters.endpoint,
|
|
66
|
+
Parameters.callConnectionId,
|
|
67
|
+
Parameters.dialogId,
|
|
68
|
+
],
|
|
69
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
70
|
+
mediaType: "json",
|
|
71
|
+
serializer,
|
|
72
|
+
};
|
|
73
|
+
const stopDialogOperationSpec = {
|
|
74
|
+
path: "/calling/callConnections/{callConnectionId}/dialogs/{dialogId}",
|
|
75
|
+
httpMethod: "DELETE",
|
|
76
|
+
responses: {
|
|
77
|
+
204: {},
|
|
78
|
+
default: {
|
|
79
|
+
bodyMapper: Mappers.CommunicationErrorResponse,
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
queryParameters: [Parameters.apiVersion, Parameters.operationCallbackUri],
|
|
83
|
+
urlParameters: [
|
|
84
|
+
Parameters.endpoint,
|
|
85
|
+
Parameters.callConnectionId,
|
|
86
|
+
Parameters.dialogId,
|
|
87
|
+
],
|
|
88
|
+
headerParameters: [Parameters.accept],
|
|
89
|
+
serializer,
|
|
90
|
+
};
|
|
91
|
+
const updateDialogOperationSpec = {
|
|
92
|
+
path: "/calling/callConnections/{callConnectionId}/dialogs/{dialogId}",
|
|
93
|
+
httpMethod: "PATCH",
|
|
94
|
+
responses: {
|
|
95
|
+
200: {},
|
|
96
|
+
default: {
|
|
97
|
+
bodyMapper: Mappers.CommunicationErrorResponse,
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
requestBody: Parameters.updateDialogRequest,
|
|
101
|
+
queryParameters: [Parameters.apiVersion],
|
|
102
|
+
urlParameters: [
|
|
103
|
+
Parameters.endpoint,
|
|
104
|
+
Parameters.callConnectionId,
|
|
105
|
+
Parameters.dialogId,
|
|
106
|
+
],
|
|
107
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
108
|
+
mediaType: "json",
|
|
109
|
+
serializer,
|
|
110
|
+
};
|
|
111
|
+
//# 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,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAWtD,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;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E,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,EACxB,wBAAwB,EAAE,wBAAwB,EAClD,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;OAIG;IACH,wBAAwB,CAC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AA0C,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"}
|
|
@@ -44,15 +44,6 @@ export class CallMediaImpl {
|
|
|
44
44
|
stopTranscription(callConnectionId, stopTranscriptionRequest, options) {
|
|
45
45
|
return this.client.sendOperationRequest({ callConnectionId, stopTranscriptionRequest, options }, stopTranscriptionOperationSpec);
|
|
46
46
|
}
|
|
47
|
-
/**
|
|
48
|
-
* API to change transcription language.
|
|
49
|
-
* @param callConnectionId The call connection id
|
|
50
|
-
* @param updateTranscriptionRequest The UpdateTranscription request
|
|
51
|
-
* @param options The options parameters.
|
|
52
|
-
*/
|
|
53
|
-
updateTranscription(callConnectionId, updateTranscriptionRequest, options) {
|
|
54
|
-
return this.client.sendOperationRequest({ callConnectionId, updateTranscriptionRequest, options }, updateTranscriptionOperationSpec);
|
|
55
|
-
}
|
|
56
47
|
/**
|
|
57
48
|
* Cancel all media operations in a call.
|
|
58
49
|
* @param callConnectionId The call connection id
|
|
@@ -97,6 +88,15 @@ export class CallMediaImpl {
|
|
|
97
88
|
sendDtmfTones(callConnectionId, sendDtmfTonesRequest, options) {
|
|
98
89
|
return this.client.sendOperationRequest({ callConnectionId, sendDtmfTonesRequest, options }, sendDtmfTonesOperationSpec);
|
|
99
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* API to change transcription language.
|
|
93
|
+
* @param callConnectionId The call connection id
|
|
94
|
+
* @param updateTranscriptionRequest The UpdateTranscription request
|
|
95
|
+
* @param options The options parameters.
|
|
96
|
+
*/
|
|
97
|
+
updateTranscription(callConnectionId, updateTranscriptionRequest, options) {
|
|
98
|
+
return this.client.sendOperationRequest({ callConnectionId, updateTranscriptionRequest, options }, updateTranscriptionOperationSpec);
|
|
99
|
+
}
|
|
100
100
|
/**
|
|
101
101
|
* Hold participant from the call using identifier.
|
|
102
102
|
* @param callConnectionId The call connection id.
|
|
@@ -133,6 +133,15 @@ export class CallMediaImpl {
|
|
|
133
133
|
stopMediaStreaming(callConnectionId, stopMediaStreamingRequest, options) {
|
|
134
134
|
return this.client.sendOperationRequest({ callConnectionId, stopMediaStreamingRequest, options }, stopMediaStreamingOperationSpec);
|
|
135
135
|
}
|
|
136
|
+
/**
|
|
137
|
+
* Plays audio to participants in the call.
|
|
138
|
+
* @param callConnectionId The call connection id.
|
|
139
|
+
* @param interruptRequest play request payload.
|
|
140
|
+
* @param options The options parameters.
|
|
141
|
+
*/
|
|
142
|
+
interruptAudioAndAnnounce(callConnectionId, interruptRequest, options) {
|
|
143
|
+
return this.client.sendOperationRequest({ callConnectionId, interruptRequest, options }, interruptAudioAndAnnounceOperationSpec);
|
|
144
|
+
}
|
|
136
145
|
}
|
|
137
146
|
// Operation Specifications
|
|
138
147
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
@@ -184,22 +193,6 @@ const stopTranscriptionOperationSpec = {
|
|
|
184
193
|
mediaType: "json",
|
|
185
194
|
serializer,
|
|
186
195
|
};
|
|
187
|
-
const updateTranscriptionOperationSpec = {
|
|
188
|
-
path: "/calling/callConnections/{callConnectionId}:updateTranscription",
|
|
189
|
-
httpMethod: "POST",
|
|
190
|
-
responses: {
|
|
191
|
-
202: {},
|
|
192
|
-
default: {
|
|
193
|
-
bodyMapper: Mappers.CommunicationErrorResponse,
|
|
194
|
-
},
|
|
195
|
-
},
|
|
196
|
-
requestBody: Parameters.updateTranscriptionRequest,
|
|
197
|
-
queryParameters: [Parameters.apiVersion],
|
|
198
|
-
urlParameters: [Parameters.endpoint, Parameters.callConnectionId],
|
|
199
|
-
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
200
|
-
mediaType: "json",
|
|
201
|
-
serializer,
|
|
202
|
-
};
|
|
203
196
|
const cancelAllMediaOperationsOperationSpec = {
|
|
204
197
|
path: "/calling/callConnections/{callConnectionId}:cancelAllMediaOperations",
|
|
205
198
|
httpMethod: "POST",
|
|
@@ -285,6 +278,22 @@ const sendDtmfTonesOperationSpec = {
|
|
|
285
278
|
mediaType: "json",
|
|
286
279
|
serializer,
|
|
287
280
|
};
|
|
281
|
+
const updateTranscriptionOperationSpec = {
|
|
282
|
+
path: "/calling/callConnections/{callConnectionId}:updateTranscription",
|
|
283
|
+
httpMethod: "POST",
|
|
284
|
+
responses: {
|
|
285
|
+
202: {},
|
|
286
|
+
default: {
|
|
287
|
+
bodyMapper: Mappers.CommunicationErrorResponse,
|
|
288
|
+
},
|
|
289
|
+
},
|
|
290
|
+
requestBody: Parameters.updateTranscriptionRequest,
|
|
291
|
+
queryParameters: [Parameters.apiVersion],
|
|
292
|
+
urlParameters: [Parameters.endpoint, Parameters.callConnectionId],
|
|
293
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
294
|
+
mediaType: "json",
|
|
295
|
+
serializer,
|
|
296
|
+
};
|
|
288
297
|
const holdOperationSpec = {
|
|
289
298
|
path: "/calling/callConnections/{callConnectionId}:hold",
|
|
290
299
|
httpMethod: "POST",
|
|
@@ -349,4 +358,20 @@ const stopMediaStreamingOperationSpec = {
|
|
|
349
358
|
mediaType: "json",
|
|
350
359
|
serializer,
|
|
351
360
|
};
|
|
361
|
+
const interruptAudioAndAnnounceOperationSpec = {
|
|
362
|
+
path: "/calling/callConnections/{callConnectionId}:interruptAudioAndAnnounce",
|
|
363
|
+
httpMethod: "POST",
|
|
364
|
+
responses: {
|
|
365
|
+
202: {},
|
|
366
|
+
default: {
|
|
367
|
+
bodyMapper: Mappers.CommunicationErrorResponse,
|
|
368
|
+
},
|
|
369
|
+
},
|
|
370
|
+
requestBody: Parameters.interruptRequest,
|
|
371
|
+
queryParameters: [Parameters.apiVersion],
|
|
372
|
+
urlParameters: [Parameters.endpoint, Parameters.callConnectionId],
|
|
373
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
374
|
+
mediaType: "json",
|
|
375
|
+
serializer,
|
|
376
|
+
};
|
|
352
377
|
//# 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,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AA8BtD,6CAA6C;AAC7C,MAAM,OAAO,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,CAAC;IACJ,CAA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ClB,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,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAgCtD,6CAA6C;AAC7C,MAAM,OAAO,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,kBA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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,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"}
|
|
@@ -57,6 +57,14 @@ export class CallRecordingImpl {
|
|
|
57
57
|
resumeRecording(recordingId, options) {
|
|
58
58
|
return this.client.sendOperationRequest({ recordingId, options }, resumeRecordingOperationSpec);
|
|
59
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* Get recording result. This includes the download URLs for the recording chunks.
|
|
62
|
+
* @param recordingId The recording id.
|
|
63
|
+
* @param options The options parameters.
|
|
64
|
+
*/
|
|
65
|
+
getRecordingResult(recordingId, options) {
|
|
66
|
+
return this.client.sendOperationRequest({ recordingId, options }, getRecordingResultOperationSpec);
|
|
67
|
+
}
|
|
60
68
|
}
|
|
61
69
|
// Operation Specifications
|
|
62
70
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
@@ -144,4 +152,20 @@ const resumeRecordingOperationSpec = {
|
|
|
144
152
|
headerParameters: [Parameters.accept],
|
|
145
153
|
serializer,
|
|
146
154
|
};
|
|
155
|
+
const getRecordingResultOperationSpec = {
|
|
156
|
+
path: "/calling/recordings/{recordingId}/result",
|
|
157
|
+
httpMethod: "GET",
|
|
158
|
+
responses: {
|
|
159
|
+
200: {
|
|
160
|
+
bodyMapper: Mappers.RecordingResultResponse,
|
|
161
|
+
},
|
|
162
|
+
default: {
|
|
163
|
+
bodyMapper: Mappers.CommunicationErrorResponse,
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
queryParameters: [Parameters.apiVersion],
|
|
167
|
+
urlParameters: [Parameters.endpoint, Parameters.recordingId],
|
|
168
|
+
headerParameters: [Parameters.accept],
|
|
169
|
+
serializer,
|
|
170
|
+
};
|
|
147
171
|
//# sourceMappingURL=callRecording.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callRecording.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/callRecording.ts"],"names":[],"mappings":"AA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D,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,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,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAetD,iDAAiD;AACjD,MAAM,OAAO,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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AAE;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,+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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,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\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,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,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\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
|