@azure/communication-call-automation 1.5.0 → 1.6.0-alpha.20250901.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 +48 -0
- package/dist/browser/callAutomationClient.d.ts +8 -0
- package/dist/browser/callAutomationClient.d.ts.map +1 -1
- package/dist/browser/callAutomationClient.js +141 -84
- package/dist/browser/callAutomationClient.js.map +1 -1
- package/dist/browser/callAutomationEventParser.d.ts.map +1 -1
- package/dist/browser/callAutomationEventParser.js +56 -9
- package/dist/browser/callAutomationEventParser.js.map +1 -1
- package/dist/browser/callConnection.d.ts +15 -5
- package/dist/browser/callConnection.d.ts.map +1 -1
- package/dist/browser/callConnection.js +193 -86
- package/dist/browser/callConnection.js.map +1 -1
- package/dist/browser/callMedia.d.ts +19 -9
- package/dist/browser/callMedia.d.ts.map +1 -1
- package/dist/browser/callMedia.js +175 -28
- 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 +26 -16
- package/dist/browser/callRecording.js.map +1 -1
- package/dist/browser/contentDownloader.js +12 -11
- package/dist/browser/contentDownloader.js.map +1 -1
- package/dist/browser/credential/callAutomationAccessKeyCredentialPolicy.js +2 -1
- package/dist/browser/credential/callAutomationAccessKeyCredentialPolicy.js.map +1 -1
- package/dist/browser/credential/callAutomationAuthPolicy.js +1 -1
- package/dist/browser/credential/callAutomationAuthPolicy.js.map +1 -1
- package/dist/browser/credential/cryptoUtils-browser.mjs.map +1 -1
- package/dist/browser/credential/cryptoUtils.js +2 -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 +7 -15
- package/dist/browser/generated/src/callAutomationApiClient.js.map +1 -1
- package/dist/browser/generated/src/models/index.d.ts +1129 -347
- package/dist/browser/generated/src/models/index.d.ts.map +1 -1
- package/dist/browser/generated/src/models/index.js +159 -75
- package/dist/browser/generated/src/models/index.js.map +1 -1
- package/dist/browser/generated/src/models/mappers.d.ts +88 -47
- package/dist/browser/generated/src/models/mappers.d.ts.map +1 -1
- package/dist/browser/generated/src/models/mappers.js +2136 -499
- 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 +105 -24
- 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 -26
- 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 -1
- 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/generated/src/pagingHelper.js +4 -2
- package/dist/browser/generated/src/pagingHelper.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.d.ts.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 +336 -296
- 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 +76 -38
- 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 +34 -4
- 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/models/streaming.d.ts +27 -26
- package/dist/browser/models/streaming.d.ts.map +1 -1
- package/dist/browser/models/streaming.js +57 -28
- package/dist/browser/models/streaming.js.map +1 -1
- package/dist/browser/streamingData.d.ts.map +1 -1
- package/dist/browser/streamingData.js +1 -10
- package/dist/browser/streamingData.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 +122 -48
- package/dist/browser/utli/converters.js.map +1 -1
- package/dist/commonjs/callAutomationClient.d.ts +8 -0
- package/dist/commonjs/callAutomationClient.d.ts.map +1 -1
- package/dist/commonjs/callAutomationClient.js +139 -82
- package/dist/commonjs/callAutomationClient.js.map +1 -1
- package/dist/commonjs/callAutomationEventParser.d.ts.map +1 -1
- package/dist/commonjs/callAutomationEventParser.js +55 -8
- package/dist/commonjs/callAutomationEventParser.js.map +1 -1
- package/dist/commonjs/callConnection.d.ts +15 -5
- package/dist/commonjs/callConnection.d.ts.map +1 -1
- package/dist/commonjs/callConnection.js +194 -87
- package/dist/commonjs/callConnection.js.map +1 -1
- package/dist/commonjs/callMedia.d.ts +19 -9
- package/dist/commonjs/callMedia.d.ts.map +1 -1
- package/dist/commonjs/callMedia.js +183 -36
- 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 +27 -17
- package/dist/commonjs/callRecording.js.map +1 -1
- package/dist/commonjs/contentDownloader.js +12 -11
- package/dist/commonjs/contentDownloader.js.map +1 -1
- package/dist/commonjs/credential/callAutomationAccessKeyCredentialPolicy.js +2 -1
- package/dist/commonjs/credential/callAutomationAccessKeyCredentialPolicy.js.map +1 -1
- package/dist/commonjs/credential/callAutomationAuthPolicy.js +1 -1
- package/dist/commonjs/credential/callAutomationAuthPolicy.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 +6 -14
- package/dist/commonjs/generated/src/callAutomationApiClient.js.map +1 -1
- package/dist/commonjs/generated/src/models/index.d.ts +1129 -347
- package/dist/commonjs/generated/src/models/index.d.ts.map +1 -1
- package/dist/commonjs/generated/src/models/index.js +160 -76
- package/dist/commonjs/generated/src/models/index.js.map +1 -1
- package/dist/commonjs/generated/src/models/mappers.d.ts +88 -47
- package/dist/commonjs/generated/src/models/mappers.d.ts.map +1 -1
- package/dist/commonjs/generated/src/models/mappers.js +2139 -502
- 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 +104 -24
- 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 -26
- 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 -1
- 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/generated/src/pagingHelper.js +4 -2
- package/dist/commonjs/generated/src/pagingHelper.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.d.ts.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 +336 -296
- 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 +76 -38
- package/dist/commonjs/models/models.d.ts.map +1 -1
- package/dist/commonjs/models/models.js +21 -2
- package/dist/commonjs/models/models.js.map +1 -1
- package/dist/commonjs/models/options.d.ts +34 -4
- 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/models/streaming.d.ts +27 -26
- package/dist/commonjs/models/streaming.d.ts.map +1 -1
- package/dist/commonjs/models/streaming.js +59 -31
- package/dist/commonjs/models/streaming.js.map +1 -1
- package/dist/commonjs/streamingData.d.ts.map +1 -1
- package/dist/commonjs/streamingData.js +1 -10
- package/dist/commonjs/streamingData.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- 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 +127 -47
- package/dist/commonjs/utli/converters.js.map +1 -1
- package/dist/esm/callAutomationClient.d.ts +8 -0
- package/dist/esm/callAutomationClient.d.ts.map +1 -1
- package/dist/esm/callAutomationClient.js +141 -84
- package/dist/esm/callAutomationClient.js.map +1 -1
- package/dist/esm/callAutomationEventParser.d.ts.map +1 -1
- package/dist/esm/callAutomationEventParser.js +56 -9
- package/dist/esm/callAutomationEventParser.js.map +1 -1
- package/dist/esm/callConnection.d.ts +15 -5
- package/dist/esm/callConnection.d.ts.map +1 -1
- package/dist/esm/callConnection.js +193 -86
- package/dist/esm/callConnection.js.map +1 -1
- package/dist/esm/callMedia.d.ts +19 -9
- package/dist/esm/callMedia.d.ts.map +1 -1
- package/dist/esm/callMedia.js +175 -28
- 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 +26 -16
- package/dist/esm/callRecording.js.map +1 -1
- package/dist/esm/contentDownloader.js +12 -11
- package/dist/esm/contentDownloader.js.map +1 -1
- package/dist/esm/credential/callAutomationAccessKeyCredentialPolicy.js +2 -1
- package/dist/esm/credential/callAutomationAccessKeyCredentialPolicy.js.map +1 -1
- package/dist/esm/credential/callAutomationAuthPolicy.js +1 -1
- package/dist/esm/credential/callAutomationAuthPolicy.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 +7 -15
- package/dist/esm/generated/src/callAutomationApiClient.js.map +1 -1
- package/dist/esm/generated/src/models/index.d.ts +1129 -347
- package/dist/esm/generated/src/models/index.d.ts.map +1 -1
- package/dist/esm/generated/src/models/index.js +159 -75
- package/dist/esm/generated/src/models/index.js.map +1 -1
- package/dist/esm/generated/src/models/mappers.d.ts +88 -47
- package/dist/esm/generated/src/models/mappers.d.ts.map +1 -1
- package/dist/esm/generated/src/models/mappers.js +2136 -499
- 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 +105 -24
- 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 -26
- 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 -1
- 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/generated/src/pagingHelper.js +4 -2
- package/dist/esm/generated/src/pagingHelper.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.d.ts.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 +336 -296
- 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 +76 -38
- 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 +34 -4
- 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/models/streaming.d.ts +27 -26
- package/dist/esm/models/streaming.d.ts.map +1 -1
- package/dist/esm/models/streaming.js +57 -28
- package/dist/esm/models/streaming.js.map +1 -1
- package/dist/esm/streamingData.d.ts.map +1 -1
- package/dist/esm/streamingData.js +1 -10
- package/dist/esm/streamingData.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 +122 -48
- package/dist/esm/utli/converters.js.map +1 -1
- package/dist/react-native/callAutomationClient.d.ts +8 -0
- package/dist/react-native/callAutomationClient.d.ts.map +1 -1
- package/dist/react-native/callAutomationClient.js +141 -84
- 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 +56 -9
- package/dist/react-native/callAutomationEventParser.js.map +1 -1
- package/dist/react-native/callConnection.d.ts +15 -5
- package/dist/react-native/callConnection.d.ts.map +1 -1
- package/dist/react-native/callConnection.js +193 -86
- package/dist/react-native/callConnection.js.map +1 -1
- package/dist/react-native/callMedia.d.ts +19 -9
- package/dist/react-native/callMedia.d.ts.map +1 -1
- package/dist/react-native/callMedia.js +175 -28
- 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 +26 -16
- package/dist/react-native/callRecording.js.map +1 -1
- package/dist/react-native/contentDownloader.js +12 -11
- package/dist/react-native/contentDownloader.js.map +1 -1
- package/dist/react-native/credential/callAutomationAccessKeyCredentialPolicy.js +2 -1
- package/dist/react-native/credential/callAutomationAccessKeyCredentialPolicy.js.map +1 -1
- package/dist/react-native/credential/callAutomationAuthPolicy.js +1 -1
- package/dist/react-native/credential/callAutomationAuthPolicy.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 +7 -15
- package/dist/react-native/generated/src/callAutomationApiClient.js.map +1 -1
- package/dist/react-native/generated/src/models/index.d.ts +1129 -347
- package/dist/react-native/generated/src/models/index.d.ts.map +1 -1
- package/dist/react-native/generated/src/models/index.js +159 -75
- package/dist/react-native/generated/src/models/index.js.map +1 -1
- package/dist/react-native/generated/src/models/mappers.d.ts +88 -47
- package/dist/react-native/generated/src/models/mappers.d.ts.map +1 -1
- package/dist/react-native/generated/src/models/mappers.js +2136 -499
- 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 +105 -24
- 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 -26
- 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 -1
- 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/generated/src/pagingHelper.js +4 -2
- package/dist/react-native/generated/src/pagingHelper.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.d.ts.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 +336 -296
- 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 +76 -38
- 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 +34 -4
- 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/models/streaming.d.ts +27 -26
- package/dist/react-native/models/streaming.d.ts.map +1 -1
- package/dist/react-native/models/streaming.js +57 -28
- package/dist/react-native/models/streaming.js.map +1 -1
- package/dist/react-native/streamingData.d.ts.map +1 -1
- package/dist/react-native/streamingData.js +1 -10
- package/dist/react-native/streamingData.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 +122 -48
- package/dist/react-native/utli/converters.js.map +1 -1
- package/package.json +36 -35
|
@@ -17,6 +17,8 @@ export interface CallMediaRecognizeOptions extends OperationOptions {
|
|
|
17
17
|
interruptPrompt?: boolean;
|
|
18
18
|
/** Time to wait for first input after prompt. */
|
|
19
19
|
initialSilenceTimeoutInSeconds?: number;
|
|
20
|
+
/** speechModelEndpointId. */
|
|
21
|
+
speechModelEndpointId?: string;
|
|
20
22
|
/**
|
|
21
23
|
* Set a callback URL that overrides the default callback URL set by CreateCall/AnswerCall for this operation.
|
|
22
24
|
* This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.
|
|
@@ -88,6 +90,8 @@ export interface CreateCallOptions extends OperationOptions {
|
|
|
88
90
|
mediaStreamingOptions?: MediaStreamingOptions;
|
|
89
91
|
/** Options for live transcription. */
|
|
90
92
|
transcriptionOptions?: TranscriptionOptions;
|
|
93
|
+
/** The Custom Context. */
|
|
94
|
+
customCallingContext?: CustomCallingContext;
|
|
91
95
|
/**
|
|
92
96
|
* Overrides default client source by a MicrosoftTeamsAppIdentifier type source.
|
|
93
97
|
* Required for creating call with Teams resource account ID.
|
|
@@ -101,6 +105,8 @@ export interface CreateCallOptions extends OperationOptions {
|
|
|
101
105
|
export interface AnswerCallOptions extends OperationOptions {
|
|
102
106
|
/** AI options for the call. */
|
|
103
107
|
callIntelligenceOptions?: CallIntelligenceOptions;
|
|
108
|
+
/** Used by customer to send custom context to targets. */
|
|
109
|
+
customCallingContext?: CustomCallingContext;
|
|
104
110
|
/** Options for Media streaming. */
|
|
105
111
|
mediaStreamingOptions?: MediaStreamingOptions;
|
|
106
112
|
/** Options for live transcription. */
|
|
@@ -111,7 +117,10 @@ export interface AnswerCallOptions extends OperationOptions {
|
|
|
111
117
|
/**
|
|
112
118
|
* Options to redirect call.
|
|
113
119
|
*/
|
|
114
|
-
export
|
|
120
|
+
export interface RedirectCallOptions extends OperationOptions {
|
|
121
|
+
/** The Custom Context. */
|
|
122
|
+
customCallingContext?: CustomCallingContext;
|
|
123
|
+
}
|
|
115
124
|
/**
|
|
116
125
|
* Options to reject call.
|
|
117
126
|
*/
|
|
@@ -152,6 +161,16 @@ export interface AddParticipantOptions extends OperationOptions {
|
|
|
152
161
|
*/
|
|
153
162
|
operationCallbackUrl?: string;
|
|
154
163
|
}
|
|
164
|
+
/** Options to move participants. */
|
|
165
|
+
export interface MoveParticipantsOptions extends OperationOptions {
|
|
166
|
+
/** Used by customers when calling mid-call actions to correlate the request to the response event. */
|
|
167
|
+
operationContext?: string;
|
|
168
|
+
/**
|
|
169
|
+
* Set a callback URL that overrides the default callback URL set by CreateCall/AnswerCall for this operation.
|
|
170
|
+
* This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.
|
|
171
|
+
*/
|
|
172
|
+
operationCallbackUrl?: string;
|
|
173
|
+
}
|
|
155
174
|
/**
|
|
156
175
|
* Options to remove participants.
|
|
157
176
|
*/
|
|
@@ -184,6 +203,8 @@ export interface PlayOptions extends OperationOptions {
|
|
|
184
203
|
* This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.
|
|
185
204
|
*/
|
|
186
205
|
operationCallbackUrl?: string;
|
|
206
|
+
/** If set, hold audio will be interrupted, then this request will be played, and then the hold audio will be resumed. */
|
|
207
|
+
interruptHoldAudio?: boolean;
|
|
187
208
|
}
|
|
188
209
|
/**
|
|
189
210
|
* Options to playToAll audio.
|
|
@@ -250,6 +271,10 @@ export type PauseRecordingOptions = OperationOptions;
|
|
|
250
271
|
* Options to get recording properties.
|
|
251
272
|
*/
|
|
252
273
|
export type GetRecordingPropertiesOptions = OperationOptions;
|
|
274
|
+
/**
|
|
275
|
+
* Options to get recording result.
|
|
276
|
+
*/
|
|
277
|
+
export type GetRecordingResultOptions = OperationOptions;
|
|
253
278
|
/**
|
|
254
279
|
* Options to resume recording.
|
|
255
280
|
*/
|
|
@@ -338,7 +363,7 @@ export interface HoldOptions extends OperationOptions {
|
|
|
338
363
|
/** Operation Context. */
|
|
339
364
|
operationContext?: string;
|
|
340
365
|
/** Set a callback URI that overrides the default callback URI set by CreateCall/AnswerCall for this operation. */
|
|
341
|
-
|
|
366
|
+
operationCallbackUri?: string;
|
|
342
367
|
}
|
|
343
368
|
/**
|
|
344
369
|
* Options to Unhold participant.
|
|
@@ -346,8 +371,6 @@ export interface HoldOptions extends OperationOptions {
|
|
|
346
371
|
export interface UnholdOptions extends OperationOptions {
|
|
347
372
|
/** Operation Context. */
|
|
348
373
|
operationContext?: string;
|
|
349
|
-
/** Set a callback URI that overrides the default callback URI set by CreateCall/AnswerCall for this operation. */
|
|
350
|
-
operationCallbackUrl?: string;
|
|
351
374
|
}
|
|
352
375
|
/**
|
|
353
376
|
* Options to Connect request.
|
|
@@ -396,4 +419,11 @@ export interface UpdateTranscriptionOptions extends OperationOptions {
|
|
|
396
419
|
*/
|
|
397
420
|
operationCallbackUrl?: string;
|
|
398
421
|
}
|
|
422
|
+
/**
|
|
423
|
+
* Options to interrupt audio and announce.
|
|
424
|
+
*/
|
|
425
|
+
export interface InterruptAudioAndAnnounceOptions extends OperationOptions {
|
|
426
|
+
/** The value to identify context of the operation. */
|
|
427
|
+
operationContext?: string;
|
|
428
|
+
}
|
|
399
429
|
//# sourceMappingURL=options.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/models/options.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,qBAAqB,EACrB,uBAAuB,EACvB,2BAA2B,EAC5B,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EACV,qBAAqB,EACrB,oBAAoB,EACpB,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,UAAU,EACV,QAAQ,EACR,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,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":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n PhoneNumberIdentifier,\n CommunicationIdentifier,\n MicrosoftTeamsAppIdentifier,\n} from \"@azure/communication-common\";\nimport type { OperationOptions } from \"@azure/core-client\";\nimport type {\n MediaStreamingOptions,\n TranscriptionOptions,\n CallRejectReason,\n FileSource,\n TextSource,\n SsmlSource,\n DtmfTone,\n RecognitionChoice,\n RecordingContent,\n RecordingChannel,\n RecordingFormat,\n RecordingStorage,\n CallLocator,\n ChannelAffinity,\n CallIntelligenceOptions,\n CustomCallingContext,\n} from \"./models.js\";\n\n/** Options to configure the recognize operation. */\nexport interface CallMediaRecognizeOptions extends OperationOptions {\n /** The source of the audio to be played for recognition. */\n playPrompt?: FileSource | TextSource | SsmlSource;\n /** The list source of the audio to be played for recognition. */\n playPrompts?: (FileSource | TextSource | SsmlSource)[];\n /** If set recognize can barge into other existing queued-up/currently-processing requests. */\n interruptCallMediaOperation?: boolean;\n /** @deprecated Not in use, instead use interruptCallMediaOperation for similar functionality*/\n stopCurrentOperations?: boolean;\n /** The value to identify context of the operation. */\n operationContext?: string;\n /** Determines if we interrupt the prompt and start recognizing. */\n interruptPrompt?: boolean;\n /** Time to wait for first input after prompt. */\n initialSilenceTimeoutInSeconds?: number;\n /**\n * Set a callback URL that overrides the default callback URL set by CreateCall/AnswerCall for this operation.\n * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.\n */\n operationCallbackUrl?: string;\n}\n\n/** The recognize configuration specific to Dtmf. */\nexport interface CallMediaRecognizeDtmfOptions extends CallMediaRecognizeOptions {\n /** Time to wait between DTMF inputs to stop recognizing. */\n interToneTimeoutInSeconds?: number;\n /** List of tones that will stop recognizing. */\n stopDtmfTones?: DtmfTone[];\n /** Maximum number of DTMF tones to be collected. */\n maxTonesToCollect?: number;\n readonly kind: \"callMediaRecognizeDtmfOptions\";\n}\n\n/** The recognize configuration specific to Choices. */\nexport interface CallMediaRecognizeChoiceOptions extends CallMediaRecognizeOptions {\n /** The IvR choices for recognize. */\n choices: RecognitionChoice[];\n /** Speech language to be recognized, If not set default is en-US */\n speechLanguage?: string;\n /** Endpoint where the custom model was deployed. */\n speechRecognitionModelEndpointId?: string;\n readonly kind: \"callMediaRecognizeChoiceOptions\";\n}\n\n/** The recognize configuration specific to Speech. */\nexport interface CallMediaRecognizeSpeechOptions extends CallMediaRecognizeOptions {\n /** The length of end silence when user stops speaking and cogservice send response. */\n endSilenceTimeoutInSeconds?: number;\n /** Speech language to be recognized, If not set default is en-US */\n speechLanguage?: string;\n /** Endpoint where the custom model was deployed. */\n speechRecognitionModelEndpointId?: string;\n readonly kind: \"callMediaRecognizeSpeechOptions\";\n}\n\n/** The recognize configuration for Speech or Dtmf */\nexport interface CallMediaRecognizeSpeechOrDtmfOptions extends CallMediaRecognizeOptions {\n /** The length of end silence when user stops speaking and cogservice send response. */\n endSilenceTimeoutInSeconds?: number;\n /** Time to wait between DTMF inputs to stop recognizing. */\n interToneTimeoutInSeconds?: number;\n /** List of tones that will stop recognizing. */\n stopDtmfTones?: DtmfTone[];\n /** Maximum number of DTMF tones to be collected. */\n maxTonesToCollect?: number;\n /** Speech language to be recognized, If not set default is en-US */\n speechLanguage?: string;\n /** Endpoint where the custom model was deployed. */\n speechRecognitionModelEndpointId?: string;\n readonly kind: \"callMediaRecognizeSpeechOrDtmfOptions\";\n}\n\n/**\n * Options to create a call.\n */\nexport interface CreateCallOptions extends OperationOptions {\n /**\n * The source caller Id, a phone number, that's shown to the PSTN participant being invited.\n * Required only when calling a PSTN callee.\n */\n sourceCallIdNumber?: PhoneNumberIdentifier;\n /** Display name of the call if dialing out to a pstn number */\n sourceDisplayName?: string;\n /** The operation context. */\n operationContext?: string;\n /** AI options for the call. */\n callIntelligenceOptions?: CallIntelligenceOptions;\n /** Options for Media streaming. */\n mediaStreamingOptions?: MediaStreamingOptions;\n /** Options for live transcription. */\n transcriptionOptions?: TranscriptionOptions;\n /**\n * Overrides default client source by a MicrosoftTeamsAppIdentifier type source.\n * Required for creating call with Teams resource account ID.\n * This is per-operation setting and does not change the client's default source.\n */\n teamsAppSource?: MicrosoftTeamsAppIdentifier;\n}\n\n/**\n * Options to answer a call.\n */\nexport interface AnswerCallOptions extends OperationOptions {\n /** AI options for the call. */\n callIntelligenceOptions?: CallIntelligenceOptions;\n /** Options for Media streaming. */\n mediaStreamingOptions?: MediaStreamingOptions;\n /** Options for live transcription. */\n transcriptionOptions?: TranscriptionOptions;\n /** The operation context. */\n operationContext?: string;\n}\n\n/**\n * Options to redirect call.\n */\nexport type RedirectCallOptions = OperationOptions;\n\n/**\n * Options to reject call.\n */\nexport interface RejectCallOptions extends OperationOptions {\n /** The rejection reason. */\n callRejectReason?: CallRejectReason;\n}\n\n/**\n * Options to transfer participants.\n */\nexport interface TransferCallToParticipantOptions extends OperationOptions {\n /** Used by customers when calling mid-call actions to correlate the request to the response event. */\n operationContext?: string;\n /**\n * Set a callback URL that overrides the default callback URL set by CreateCall/AnswerCall for this operation.\n * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.\n */\n operationCallbackUrl?: string;\n /** Transferee is the participant who is transferred away. */\n transferee?: CommunicationIdentifier;\n /** Used by customer to send custom context to targets. */\n customCallingContext?: CustomCallingContext;\n /** The source caller Id, a phone number, that's will be used as the transferor's(Contoso) caller id when transfering a call a pstn target. */\n sourceCallIdNumber?: PhoneNumberIdentifier;\n}\n\n/** Options to add participants. */\nexport interface AddParticipantOptions extends OperationOptions {\n /**\n * Gets or sets the timeout to wait for the invited participant to pickup.\n * The maximum value of this is 180 seconds\n */\n invitationTimeoutInSeconds?: number;\n /** Used by customers when calling mid-call actions to correlate the request to the response event. */\n operationContext?: string;\n /**\n * Set a callback URL that overrides the default callback URL set by CreateCall/AnswerCall for this operation.\n * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.\n */\n operationCallbackUrl?: string;\n}\n\n/**\n * Options to remove participants.\n */\nexport interface RemoveParticipantsOption extends OperationOptions {\n /** Used by customers when calling mid-call actions to correlate the request to the response event. */\n operationContext?: string;\n /**\n * Set a callback URL that overrides the default callback URL set by CreateCall/AnswerCall for this operation.\n * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.\n */\n operationCallbackUrl?: string;\n}\n\n/**\n * Options to mute participant.\n */\nexport interface MuteParticipantOption extends OperationOptions {\n /** Used by customers when calling mid-call actions to correlate the request to the response event. */\n operationContext?: string;\n}\n\n/**\n * Options to play audio.\n */\nexport interface PlayOptions extends OperationOptions {\n /** Determine if it is looping */\n loop?: boolean;\n /** The value to identify context of the operation. */\n operationContext?: string;\n /**\n * Set a callback URL that overrides the default callback URL set by CreateCall/AnswerCall for this operation.\n * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.\n */\n operationCallbackUrl?: string;\n}\n\n/**\n * Options to playToAll audio.\n */\nexport interface PlayToAllOptions extends PlayOptions {\n /** If set play can barge into other existing queued-up/currently-processing requests. */\n interruptCallMediaOperation?: boolean;\n}\n\n/**\n * Options to get call connection properties.\n */\nexport type GetCallConnectionPropertiesOptions = OperationOptions;\n\n/**\n * Options to hang up the call\n */\nexport type HangUpOptions = OperationOptions;\n\n/**\n * Options to get a participant.\n */\nexport type GetParticipantOptions = OperationOptions;\n\n/**\n * Options to get a start a recording.\n */\nexport interface StartRecordingOptions extends OperationOptions {\n /** The call locator. (Only one of callLocator or callConnectionId to be used) */\n callLocator?: CallLocator;\n /** The call connectionId. (Only one of callLocator or callConnectionId to be used) */\n callConnectionId?: string;\n /** The url to send notifications to. */\n recordingStateCallbackEndpointUrl?: string;\n /** The content type of call recording. */\n recordingContent?: RecordingContent;\n /** The channel type of call recording. */\n recordingChannel?: RecordingChannel;\n /** The format type of call recording. */\n recordingFormat?: RecordingFormat;\n /** Recording storage option. */\n recordingStorage?: RecordingStorage;\n /** Pause on start call recording option. */\n pauseOnStart?: boolean;\n /**\n * The sequential order in which audio channels are assigned to participants in the unmixed recording.\n * When 'recordingChannelType' is set to 'unmixed' and `audioChannelParticipantOrdering` is not specified,\n * the audio channel to participant mapping will be automatically assigned based on the order in which participant\n * first audio was detected. Channel to participant mapping details can be found in the metadata of the recording.\n */\n audioChannelParticipantOrdering?: CommunicationIdentifier[];\n /**\n * The channel affinity of call recording\n * When 'recordingChannelType' is set to 'unmixed', if channelAffinity is not specified, 'channel' will be automatically assigned.\n * Channel-Participant mapping details can be found in the metadata of the recording.\n */\n channelAffinity?: ChannelAffinity[];\n}\n\n/**\n * Options to get a stop a recording.\n */\nexport type StopRecordingOptions = OperationOptions;\n\n/**\n * Options to get a pause a recording.\n */\nexport type PauseRecordingOptions = OperationOptions;\n\n/**\n * Options to get recording properties.\n */\nexport type GetRecordingPropertiesOptions = OperationOptions;\n\n/**\n * Options to resume recording.\n */\nexport type ResumeRecordingOptions = OperationOptions;\n\n/**\n * Options to delete recording.\n */\nexport type DeleteRecordingOptions = OperationOptions;\n\n/**\n * Options to download recording.\n */\nexport interface DownloadRecordingOptions extends OperationOptions {\n /** Offset byte to start download from. */\n offset?: number;\n /** Max content length in bytes. */\n length?: number;\n}\n\n/**\n * Options to continuous Dtmf recognition.\n */\nexport interface ContinuousDtmfRecognitionOptions extends OperationOptions {\n /** The value to identify context of the operation. */\n operationContext?: string;\n /**\n * Set a callback URL that overrides the default callback URL set by CreateCall/AnswerCall for this operation.\n * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.\n */\n operationCallbackUrl?: string;\n}\n\n/**\n * Options to send Dtmf tones.\n */\nexport interface SendDtmfTonesOptions extends OperationOptions {\n /** The value to identify context of the operation. */\n operationContext?: string;\n /**\n * Set a callback URL that overrides the default callback URL set by CreateCall/AnswerCall for this operation.\n * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.\n */\n operationCallbackUrl?: string;\n}\n\n/** Options for cancelling add participant request. */\nexport interface CancelAddParticipantOperationOptions extends OperationOptions {\n /** The value to identify context of the operation. */\n operationContext?: string;\n /**\n * Set a callback URL that overrides the default callback URL set by CreateCall/AnswerCall for this operation.\n * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.\n */\n operationCallbackUrl?: string;\n}\n\n/**\n * Options to start transcription\n */\nexport interface StartTranscriptionOptions extends OperationOptions {\n /** Defines Locale for the transcription e,g en-US */\n locale?: string;\n /** The value to identify context of the operation. */\n operationContext?: string;\n /** Endpoint where the custom model was deployed. */\n speechRecognitionModelEndpointId?: string;\n /**\n * Set a callback URL that overrides the default callback URI set by CreateCall/AnswerCall for this operation.\n * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.\n */\n operationCallbackUrl?: string;\n}\n\n/**\n * Options to stop transcription\n */\nexport interface StopTranscriptionOptions extends OperationOptions {\n /** The value to identify context of the operation. */\n operationContext?: string;\n /**\n * Set a callback URL that overrides the default callback URI set by CreateCall/AnswerCall for this operation.\n * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.\n */\n operationCallbackUrl?: string;\n}\n\n/**\n * Options to hold participant.\n */\nexport interface HoldOptions extends OperationOptions {\n /** A PlaySource representing the source to play. */\n playSource?: FileSource | TextSource | SsmlSource;\n /** Operation Context. */\n operationContext?: string;\n /** Set a callback URI that overrides the default callback URI set by CreateCall/AnswerCall for this operation. */\n operationCallbackUrl?: string;\n}\n\n/**\n * Options to Unhold participant.\n */\nexport interface UnholdOptions extends OperationOptions {\n /** Operation Context. */\n operationContext?: string;\n /** Set a callback URI that overrides the default callback URI set by CreateCall/AnswerCall for this operation. */\n operationCallbackUrl?: string;\n}\n\n/**\n * Options to Connect request.\n */\nexport interface ConnectCallOptions extends OperationOptions {\n /** Used by customers to correlate the request to the response event. */\n operationContext?: string;\n /** AI options for the call. */\n callIntelligenceOptions?: CallIntelligenceOptions;\n /** Options for Media streaming. */\n mediaStreamingOptions?: MediaStreamingOptions;\n /** Options for live transcription. */\n transcriptionOptions?: TranscriptionOptions;\n}\n\n/** Options for start media streaming request. */\nexport interface StartMediaStreamingOptions extends OperationOptions {\n /**\n * Set a callback URL that overrides the default callback URI set by CreateCall/AnswerCall for this operation.\n * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.\n */\n operationCallbackUrl?: string;\n /** The value to identify context of the operation. */\n operationContext?: string;\n}\n\n/** Options for stop media streaming request. */\nexport interface StopMediaStreamingOptions extends OperationOptions {\n /**\n * Set a callback URL that overrides the default callback URI set by CreateCall/AnswerCall for this operation.\n * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.\n */\n operationCallbackUrl?: string;\n /** The value to identify context of the operation. */\n operationContext?: string;\n}\n\n/**\n * Options to update transcription\n */\nexport interface UpdateTranscriptionOptions extends OperationOptions {\n /** Endpoint where the custom model was deployed. */\n speechRecognitionModelEndpointId?: string;\n /** The value to identify context of the operation. */\n operationContext?: string;\n /**\n * Set a callback URL that overrides the default callback URI set by CreateCall/AnswerCall for this operation.\n * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.\n */\n operationCallbackUrl?: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/models/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n PhoneNumberIdentifier,\n CommunicationIdentifier,\n MicrosoftTeamsAppIdentifier,\n} from \"@azure/communication-common\";\nimport type { OperationOptions } from \"@azure/core-client\";\nimport type {\n MediaStreamingOptions,\n TranscriptionOptions,\n CallRejectReason,\n FileSource,\n TextSource,\n SsmlSource,\n DtmfTone,\n RecognitionChoice,\n RecordingContent,\n RecordingChannel,\n RecordingFormat,\n RecordingStorage,\n CallLocator,\n ChannelAffinity,\n CallIntelligenceOptions,\n CustomCallingContext,\n} from \"./models.js\";\n\n/** Options to configure the recognize operation. */\nexport interface CallMediaRecognizeOptions extends OperationOptions {\n /** The source of the audio to be played for recognition. */\n playPrompt?: FileSource | TextSource | SsmlSource;\n /** The list source of the audio to be played for recognition. */\n playPrompts?: (FileSource | TextSource | SsmlSource)[];\n /** If set recognize can barge into other existing queued-up/currently-processing requests. */\n interruptCallMediaOperation?: boolean;\n /** @deprecated Not in use, instead use interruptCallMediaOperation for similar functionality*/\n stopCurrentOperations?: boolean;\n /** The value to identify context of the operation. */\n operationContext?: string;\n /** Determines if we interrupt the prompt and start recognizing. */\n interruptPrompt?: boolean;\n /** Time to wait for first input after prompt. */\n initialSilenceTimeoutInSeconds?: number;\n /** speechModelEndpointId. */\n speechModelEndpointId?: string;\n /**\n * Set a callback URL that overrides the default callback URL set by CreateCall/AnswerCall for this operation.\n * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.\n */\n operationCallbackUrl?: string;\n}\n\n/** The recognize configuration specific to Dtmf. */\nexport interface CallMediaRecognizeDtmfOptions extends CallMediaRecognizeOptions {\n /** Time to wait between DTMF inputs to stop recognizing. */\n interToneTimeoutInSeconds?: number;\n /** List of tones that will stop recognizing. */\n stopDtmfTones?: DtmfTone[];\n /** Maximum number of DTMF tones to be collected. */\n maxTonesToCollect?: number;\n readonly kind: \"callMediaRecognizeDtmfOptions\";\n}\n\n/** The recognize configuration specific to Choices. */\nexport interface CallMediaRecognizeChoiceOptions extends CallMediaRecognizeOptions {\n /** The IvR choices for recognize. */\n choices: RecognitionChoice[];\n /** Speech language to be recognized, If not set default is en-US */\n speechLanguage?: string;\n /** Endpoint where the custom model was deployed. */\n speechRecognitionModelEndpointId?: string;\n readonly kind: \"callMediaRecognizeChoiceOptions\";\n}\n\n/** The recognize configuration specific to Speech. */\nexport interface CallMediaRecognizeSpeechOptions extends CallMediaRecognizeOptions {\n /** The length of end silence when user stops speaking and cogservice send response. */\n endSilenceTimeoutInSeconds?: number;\n /** Speech language to be recognized, If not set default is en-US */\n speechLanguage?: string;\n /** Endpoint where the custom model was deployed. */\n speechRecognitionModelEndpointId?: string;\n readonly kind: \"callMediaRecognizeSpeechOptions\";\n}\n\n/** The recognize configuration for Speech or Dtmf */\nexport interface CallMediaRecognizeSpeechOrDtmfOptions extends CallMediaRecognizeOptions {\n /** The length of end silence when user stops speaking and cogservice send response. */\n endSilenceTimeoutInSeconds?: number;\n /** Time to wait between DTMF inputs to stop recognizing. */\n interToneTimeoutInSeconds?: number;\n /** List of tones that will stop recognizing. */\n stopDtmfTones?: DtmfTone[];\n /** Maximum number of DTMF tones to be collected. */\n maxTonesToCollect?: number;\n /** Speech language to be recognized, If not set default is en-US */\n speechLanguage?: string;\n /** Endpoint where the custom model was deployed. */\n speechRecognitionModelEndpointId?: string;\n readonly kind: \"callMediaRecognizeSpeechOrDtmfOptions\";\n}\n\n/**\n * Options to create a call.\n */\nexport interface CreateCallOptions extends OperationOptions {\n /**\n * The source caller Id, a phone number, that's shown to the PSTN participant being invited.\n * Required only when calling a PSTN callee.\n */\n sourceCallIdNumber?: PhoneNumberIdentifier;\n /** Display name of the call if dialing out to a pstn number */\n sourceDisplayName?: string;\n /** The operation context. */\n operationContext?: string;\n /** AI options for the call. */\n callIntelligenceOptions?: CallIntelligenceOptions;\n /** Options for Media streaming. */\n mediaStreamingOptions?: MediaStreamingOptions;\n /** Options for live transcription. */\n transcriptionOptions?: TranscriptionOptions;\n /** The Custom Context. */\n customCallingContext?: CustomCallingContext;\n /**\n * Overrides default client source by a MicrosoftTeamsAppIdentifier type source.\n * Required for creating call with Teams resource account ID.\n * This is per-operation setting and does not change the client's default source.\n */\n teamsAppSource?: MicrosoftTeamsAppIdentifier;\n}\n\n/**\n * Options to answer a call.\n */\nexport interface AnswerCallOptions extends OperationOptions {\n /** AI options for the call. */\n callIntelligenceOptions?: CallIntelligenceOptions;\n /** Used by customer to send custom context to targets. */\n customCallingContext?: CustomCallingContext;\n /** Options for Media streaming. */\n mediaStreamingOptions?: MediaStreamingOptions;\n /** Options for live transcription. */\n transcriptionOptions?: TranscriptionOptions;\n /** The operation context. */\n operationContext?: string;\n}\n\n/**\n * Options to redirect call.\n */\nexport interface RedirectCallOptions extends OperationOptions {\n /** The Custom Context. */\n customCallingContext?: CustomCallingContext;\n}\n\n/**\n * Options to reject call.\n */\nexport interface RejectCallOptions extends OperationOptions {\n /** The rejection reason. */\n callRejectReason?: CallRejectReason;\n}\n\n/**\n * Options to transfer participants.\n */\nexport interface TransferCallToParticipantOptions extends OperationOptions {\n /** Used by customers when calling mid-call actions to correlate the request to the response event. */\n operationContext?: string;\n /**\n * Set a callback URL that overrides the default callback URL set by CreateCall/AnswerCall for this operation.\n * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.\n */\n operationCallbackUrl?: string;\n /** Transferee is the participant who is transferred away. */\n transferee?: CommunicationIdentifier;\n /** Used by customer to send custom context to targets. */\n customCallingContext?: CustomCallingContext;\n /** The source caller Id, a phone number, that's will be used as the transferor's(Contoso) caller id when transfering a call a pstn target. */\n sourceCallIdNumber?: PhoneNumberIdentifier;\n}\n\n/** Options to add participants. */\nexport interface AddParticipantOptions extends OperationOptions {\n /**\n * Gets or sets the timeout to wait for the invited participant to pickup.\n * The maximum value of this is 180 seconds\n */\n invitationTimeoutInSeconds?: number;\n /** Used by customers when calling mid-call actions to correlate the request to the response event. */\n operationContext?: string;\n /**\n * Set a callback URL that overrides the default callback URL set by CreateCall/AnswerCall for this operation.\n * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.\n */\n operationCallbackUrl?: string;\n}\n\n/** Options to move participants. */\nexport interface MoveParticipantsOptions extends OperationOptions {\n /** Used by customers when calling mid-call actions to correlate the request to the response event. */\n operationContext?: string;\n /**\n * Set a callback URL that overrides the default callback URL set by CreateCall/AnswerCall for this operation.\n * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.\n */\n operationCallbackUrl?: string;\n}\n\n/**\n * Options to remove participants.\n */\nexport interface RemoveParticipantsOption extends OperationOptions {\n /** Used by customers when calling mid-call actions to correlate the request to the response event. */\n operationContext?: string;\n /**\n * Set a callback URL that overrides the default callback URL set by CreateCall/AnswerCall for this operation.\n * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.\n */\n operationCallbackUrl?: string;\n}\n\n/**\n * Options to mute participant.\n */\nexport interface MuteParticipantOption extends OperationOptions {\n /** Used by customers when calling mid-call actions to correlate the request to the response event. */\n operationContext?: string;\n}\n\n/**\n * Options to play audio.\n */\nexport interface PlayOptions extends OperationOptions {\n /** Determine if it is looping */\n loop?: boolean;\n /** The value to identify context of the operation. */\n operationContext?: string;\n /**\n * Set a callback URL that overrides the default callback URL set by CreateCall/AnswerCall for this operation.\n * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.\n */\n operationCallbackUrl?: string;\n /** If set, hold audio will be interrupted, then this request will be played, and then the hold audio will be resumed. */\n interruptHoldAudio?: boolean;\n}\n\n/**\n * Options to playToAll audio.\n */\nexport interface PlayToAllOptions extends PlayOptions {\n /** If set play can barge into other existing queued-up/currently-processing requests. */\n interruptCallMediaOperation?: boolean;\n}\n\n/**\n * Options to get call connection properties.\n */\nexport type GetCallConnectionPropertiesOptions = OperationOptions;\n\n/**\n * Options to hang up the call\n */\nexport type HangUpOptions = OperationOptions;\n\n/**\n * Options to get a participant.\n */\nexport type GetParticipantOptions = OperationOptions;\n\n/**\n * Options to get a start a recording.\n */\nexport interface StartRecordingOptions extends OperationOptions {\n /** The call locator. (Only one of callLocator or callConnectionId to be used) */\n callLocator?: CallLocator;\n /** The call connectionId. (Only one of callLocator or callConnectionId to be used) */\n callConnectionId?: string;\n /** The url to send notifications to. */\n recordingStateCallbackEndpointUrl?: string;\n /** The content type of call recording. */\n recordingContent?: RecordingContent;\n /** The channel type of call recording. */\n recordingChannel?: RecordingChannel;\n /** The format type of call recording. */\n recordingFormat?: RecordingFormat;\n /** Recording storage option. */\n recordingStorage?: RecordingStorage;\n /** Pause on start call recording option. */\n pauseOnStart?: boolean;\n /**\n * The sequential order in which audio channels are assigned to participants in the unmixed recording.\n * When 'recordingChannelType' is set to 'unmixed' and `audioChannelParticipantOrdering` is not specified,\n * the audio channel to participant mapping will be automatically assigned based on the order in which participant\n * first audio was detected. Channel to participant mapping details can be found in the metadata of the recording.\n */\n audioChannelParticipantOrdering?: CommunicationIdentifier[];\n /**\n * The channel affinity of call recording\n * When 'recordingChannelType' is set to 'unmixed', if channelAffinity is not specified, 'channel' will be automatically assigned.\n * Channel-Participant mapping details can be found in the metadata of the recording.\n */\n channelAffinity?: ChannelAffinity[];\n}\n\n/**\n * Options to get a stop a recording.\n */\nexport type StopRecordingOptions = OperationOptions;\n\n/**\n * Options to get a pause a recording.\n */\nexport type PauseRecordingOptions = OperationOptions;\n\n/**\n * Options to get recording properties.\n */\nexport type GetRecordingPropertiesOptions = OperationOptions;\n\n/**\n * Options to get recording result.\n */\nexport type GetRecordingResultOptions = OperationOptions;\n\n/**\n * Options to resume recording.\n */\nexport type ResumeRecordingOptions = OperationOptions;\n\n/**\n * Options to delete recording.\n */\nexport type DeleteRecordingOptions = OperationOptions;\n\n/**\n * Options to download recording.\n */\nexport interface DownloadRecordingOptions extends OperationOptions {\n /** Offset byte to start download from. */\n offset?: number;\n /** Max content length in bytes. */\n length?: number;\n}\n\n/**\n * Options to continuous Dtmf recognition.\n */\nexport interface ContinuousDtmfRecognitionOptions extends OperationOptions {\n /** The value to identify context of the operation. */\n operationContext?: string;\n /**\n * Set a callback URL that overrides the default callback URL set by CreateCall/AnswerCall for this operation.\n * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.\n */\n operationCallbackUrl?: string;\n}\n\n/**\n * Options to send Dtmf tones.\n */\nexport interface SendDtmfTonesOptions extends OperationOptions {\n /** The value to identify context of the operation. */\n operationContext?: string;\n /**\n * Set a callback URL that overrides the default callback URL set by CreateCall/AnswerCall for this operation.\n * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.\n */\n operationCallbackUrl?: string;\n}\n\n/** Options for cancelling add participant request. */\nexport interface CancelAddParticipantOperationOptions extends OperationOptions {\n /** The value to identify context of the operation. */\n operationContext?: string;\n /**\n * Set a callback URL that overrides the default callback URL set by CreateCall/AnswerCall for this operation.\n * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.\n */\n operationCallbackUrl?: string;\n}\n\n/**\n * Options to start transcription\n */\nexport interface StartTranscriptionOptions extends OperationOptions {\n /** Defines Locale for the transcription e,g en-US */\n locale?: string;\n /** The value to identify context of the operation. */\n operationContext?: string;\n /** Endpoint where the custom model was deployed. */\n speechRecognitionModelEndpointId?: string;\n /**\n * Set a callback URL that overrides the default callback URI set by CreateCall/AnswerCall for this operation.\n * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.\n */\n operationCallbackUrl?: string;\n}\n\n/**\n * Options to stop transcription\n */\nexport interface StopTranscriptionOptions extends OperationOptions {\n /** The value to identify context of the operation. */\n operationContext?: string;\n /**\n * Set a callback URL that overrides the default callback URI set by CreateCall/AnswerCall for this operation.\n * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.\n */\n operationCallbackUrl?: string;\n}\n\n/**\n * Options to hold participant.\n */\nexport interface HoldOptions extends OperationOptions {\n /** A PlaySource representing the source to play. */\n playSource?: FileSource | TextSource | SsmlSource;\n /** Operation Context. */\n operationContext?: string;\n /** Set a callback URI that overrides the default callback URI set by CreateCall/AnswerCall for this operation. */\n operationCallbackUri?: string;\n}\n\n/**\n * Options to Unhold participant.\n */\nexport interface UnholdOptions extends OperationOptions {\n /** Operation Context. */\n operationContext?: string;\n}\n\n/**\n * Options to Connect request.\n */\nexport interface ConnectCallOptions extends OperationOptions {\n /** Used by customers to correlate the request to the response event. */\n operationContext?: string;\n /** AI options for the call. */\n callIntelligenceOptions?: CallIntelligenceOptions;\n /** Options for Media streaming. */\n mediaStreamingOptions?: MediaStreamingOptions;\n /** Options for live transcription. */\n transcriptionOptions?: TranscriptionOptions;\n}\n\n/** Options for start media streaming request. */\nexport interface StartMediaStreamingOptions extends OperationOptions {\n /**\n * Set a callback URL that overrides the default callback URI set by CreateCall/AnswerCall for this operation.\n * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.\n */\n operationCallbackUrl?: string;\n /** The value to identify context of the operation. */\n operationContext?: string;\n}\n\n/** Options for stop media streaming request. */\nexport interface StopMediaStreamingOptions extends OperationOptions {\n /**\n * Set a callback URL that overrides the default callback URI set by CreateCall/AnswerCall for this operation.\n * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.\n */\n operationCallbackUrl?: string;\n /** The value to identify context of the operation. */\n operationContext?: string;\n}\n\n/**\n * Options to update transcription\n */\nexport interface UpdateTranscriptionOptions extends OperationOptions {\n /** Endpoint where the custom model was deployed. */\n speechRecognitionModelEndpointId?: string;\n /** The value to identify context of the operation. */\n operationContext?: string;\n /**\n * Set a callback URL that overrides the default callback URI set by CreateCall/AnswerCall for this operation.\n * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.\n */\n operationCallbackUrl?: string;\n}\n\n/**\n * Options to interrupt audio and announce.\n */\nexport interface InterruptAudioAndAnnounceOptions extends OperationOptions {\n /** The value to identify context of the operation. */\n operationContext?: string;\n}\n"]}
|
|
@@ -1,25 +1,41 @@
|
|
|
1
1
|
import type { CallConnection } from "../callConnection.js";
|
|
2
2
|
import type { CallConnectionProperties, CallParticipant } from "./models.js";
|
|
3
|
-
import type { RecordingState,
|
|
3
|
+
import type { CallSessionEndReason, ErrorModel, RecordingState, RecordingStorageInfo } from "../generated/src/index.js";
|
|
4
|
+
import type { AddParticipantEventResult, AnswerCallEventResult, CancelAllMediaOperationsEventResult, CreateCallEventResult, PlayEventResult, RemoveParticipantEventResult, SendDtmfEventResult, StartRecognizingEventResult, TransferCallToParticipantEventResult, CancelAddParticipantEventResult, ConnectCallEventResult, MoveParticipantEventResult } from "../eventprocessor/eventResponses.js";
|
|
5
|
+
import type { AbortSignalLike } from "@azure/abort-controller";
|
|
4
6
|
/**
|
|
5
|
-
*
|
|
7
|
+
* CreateCall result
|
|
6
8
|
*/
|
|
7
|
-
export interface
|
|
9
|
+
export interface CreateCallResult {
|
|
10
|
+
/** The callConnectionProperties */
|
|
8
11
|
callConnectionProperties: CallConnectionProperties;
|
|
12
|
+
/** The callConnection */
|
|
9
13
|
callConnection: CallConnection;
|
|
14
|
+
/** Waiting for event processor to process the event */
|
|
15
|
+
waitForEventProcessor(abortSignal?: AbortSignalLike, timeoutInMs?: number): Promise<CreateCallEventResult>;
|
|
10
16
|
}
|
|
11
|
-
/**
|
|
12
|
-
* CreateCall result
|
|
13
|
-
*/
|
|
14
|
-
export type CreateCallResult = CallResult;
|
|
15
17
|
/**
|
|
16
18
|
* AnswerCall result
|
|
17
19
|
*/
|
|
18
|
-
export
|
|
20
|
+
export interface AnswerCallResult {
|
|
21
|
+
/** The callConnectionProperties */
|
|
22
|
+
callConnectionProperties: CallConnectionProperties;
|
|
23
|
+
/** The callConnection */
|
|
24
|
+
callConnection: CallConnection;
|
|
25
|
+
/** Waiting for event processor to process the event */
|
|
26
|
+
waitForEventProcessor(abortSignal?: AbortSignalLike, timeoutInMs?: number): Promise<AnswerCallEventResult>;
|
|
27
|
+
}
|
|
19
28
|
/**
|
|
20
29
|
* ConnectCall result
|
|
21
30
|
*/
|
|
22
|
-
export
|
|
31
|
+
export interface ConnectCallResult {
|
|
32
|
+
/** The callConnectionProperties */
|
|
33
|
+
callConnectionProperties: CallConnectionProperties;
|
|
34
|
+
/** The callConnection */
|
|
35
|
+
callConnection: CallConnection;
|
|
36
|
+
/** Waiting for event processor to process the event */
|
|
37
|
+
waitForEventProcessor(abortSignal?: AbortSignalLike, timeoutInMs?: number): Promise<ConnectCallEventResult>;
|
|
38
|
+
}
|
|
23
39
|
/** The response payload for getting participants of the call. */
|
|
24
40
|
export interface ListParticipantsResult {
|
|
25
41
|
/** List of the current participants in the call. */
|
|
@@ -35,16 +51,33 @@ export interface AddParticipantResult {
|
|
|
35
51
|
participant?: CallParticipant;
|
|
36
52
|
/** The operation context provided by client. */
|
|
37
53
|
operationContext?: string;
|
|
54
|
+
/** Waiting for event processor to process the event */
|
|
55
|
+
waitForEventProcessor(abortSignal?: AbortSignalLike, timeoutInMs?: number): Promise<AddParticipantEventResult>;
|
|
38
56
|
}
|
|
39
57
|
/** The response payload for transferring the call. */
|
|
40
58
|
export interface TransferCallResult {
|
|
41
59
|
/** The operation context provided by client. */
|
|
42
60
|
operationContext?: string;
|
|
61
|
+
/** Waiting for event processor to process the event */
|
|
62
|
+
waitForEventProcessor(abortSignal?: AbortSignalLike, timeoutInMs?: number): Promise<TransferCallToParticipantEventResult>;
|
|
43
63
|
}
|
|
44
64
|
/** The response payload for removing participants from the call. */
|
|
45
65
|
export interface RemoveParticipantResult {
|
|
46
66
|
/** The operation context provided by client. */
|
|
47
67
|
operationContext?: string;
|
|
68
|
+
/** Waiting for event processor to process the event */
|
|
69
|
+
waitForEventProcessor(abortSignal?: AbortSignalLike, timeoutInMs?: number): Promise<RemoveParticipantEventResult>;
|
|
70
|
+
}
|
|
71
|
+
/** The response payload for moving participants to the call. */
|
|
72
|
+
export interface MoveParticipantsResult {
|
|
73
|
+
/** List of current participants in the call. */
|
|
74
|
+
participants?: CallParticipant[];
|
|
75
|
+
/** The operation context provided by client. */
|
|
76
|
+
operationContext?: string;
|
|
77
|
+
/** The CallConnectionId for the call you want to move the participant from */
|
|
78
|
+
fromCall?: string;
|
|
79
|
+
/** Waiting for event processor to process the event */
|
|
80
|
+
waitForEventProcessor(abortSignal?: AbortSignalLike, timeoutInMs?: number): Promise<MoveParticipantEventResult>;
|
|
48
81
|
}
|
|
49
82
|
/** The response payload for muting participant from the call. */
|
|
50
83
|
export interface MuteParticipantResult {
|
|
@@ -53,14 +86,51 @@ export interface MuteParticipantResult {
|
|
|
53
86
|
}
|
|
54
87
|
/** The response payload for starting a call recording or getting call recording state. */
|
|
55
88
|
export interface RecordingStateResult {
|
|
89
|
+
/** The unique recording identifier. */
|
|
56
90
|
recordingId: string;
|
|
57
|
-
|
|
91
|
+
/** The kind of recording (e.g., AzureCommunicationServices, Teams). */
|
|
92
|
+
recordingKind: string;
|
|
93
|
+
/** The current state of the recording. */
|
|
58
94
|
recordingState: RecordingState;
|
|
59
95
|
}
|
|
96
|
+
/** The response payload for starting a call recording or getting call recording result. */
|
|
97
|
+
export interface RecordingResult {
|
|
98
|
+
/** The unique identifier for the recording */
|
|
99
|
+
recordingId: string;
|
|
100
|
+
/** Container for recording storage information and chunks */
|
|
101
|
+
readonly recordingStorageInfo?: RecordingStorageInfo;
|
|
102
|
+
/** List of errors that occurred during recording, if any */
|
|
103
|
+
readonly errors?: ErrorModel[];
|
|
104
|
+
/** The timestamp when the recording started */
|
|
105
|
+
readonly recordingStartTime?: Date;
|
|
106
|
+
/** The duration of the recording in milliseconds */
|
|
107
|
+
readonly recordingDurationMs?: number;
|
|
108
|
+
/** The reason why the call session ended */
|
|
109
|
+
readonly sessionEndReason?: CallSessionEndReason;
|
|
110
|
+
/** The timestamp when the recording will expire */
|
|
111
|
+
readonly recordingExpirationTime?: Date;
|
|
112
|
+
}
|
|
113
|
+
/** The response payload for starting a call recording or getting call recording state. */
|
|
114
|
+
export interface CancelAllMediaOperationsResult {
|
|
115
|
+
/** Waiting for event processor to process the event */
|
|
116
|
+
waitForEventProcessor(abortSignal?: AbortSignalLike, timeoutInMs?: number): Promise<CancelAllMediaOperationsEventResult>;
|
|
117
|
+
}
|
|
118
|
+
/** The response from play. */
|
|
119
|
+
export interface PlayResult {
|
|
120
|
+
/** Waiting for event processor to process the event */
|
|
121
|
+
waitForEventProcessor(abortSignal?: AbortSignalLike, timeoutInMs?: number): Promise<PlayEventResult>;
|
|
122
|
+
}
|
|
60
123
|
/** The response payload for sending DTMF tones. */
|
|
61
124
|
export interface SendDtmfTonesResult {
|
|
62
125
|
/** The operation context provided by client. */
|
|
63
126
|
operationContext?: string;
|
|
127
|
+
/** Waiting for event processor to process the event */
|
|
128
|
+
waitForEventProcessor(abortSignal?: AbortSignalLike, timeoutInMs?: number): Promise<SendDtmfEventResult>;
|
|
129
|
+
}
|
|
130
|
+
/** The response from recognizing. */
|
|
131
|
+
export interface StartRecognizingResult {
|
|
132
|
+
/** Waiting for event processor to process the event */
|
|
133
|
+
waitForEventProcessor(abortSignal?: AbortSignalLike, timeoutInMs?: number): Promise<StartRecognizingEventResult>;
|
|
64
134
|
}
|
|
65
135
|
/** The response payload for cancelling add participant request. */
|
|
66
136
|
export interface CancelAddParticipantOperationResult {
|
|
@@ -68,5 +138,7 @@ export interface CancelAddParticipantOperationResult {
|
|
|
68
138
|
invitationId?: string;
|
|
69
139
|
/** The operation context provided by client. */
|
|
70
140
|
operationContext?: string;
|
|
141
|
+
/** Waiting for event processor to process the event */
|
|
142
|
+
waitForEventProcessor(abortSignal?: AbortSignalLike, timeoutInMs?: number): Promise<CancelAddParticipantEventResult>;
|
|
71
143
|
}
|
|
72
144
|
//# sourceMappingURL=responses.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../src/models/responses.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,wBAAwB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC7E,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../src/models/responses.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,wBAAwB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC7E,OAAO,KAAK,EACV,oBAAoB,EACpB,UAAU,EACV,cAAc,EACd,oBAAoB,EACrB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EACV,yBAAyB,EACzB,qBAAqB,EACrB,mCAAmC,EACnC,qBAAqB,EACrB,eAAe,EACf,4BAA4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AAqB,CACnB,WAAW,CAAC,EAAE,eAAe,EAC7B,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,2BAA2B,CAAC,CAAC;CACzC;AAED,mEAAmE;AACnE,MAAM,WAAW,mCAAmC;IAClD,oEAAoE;IACpE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gDAAgD;IAChD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,uDAAuD;IACvD,qBAAqB,CACnB,WAAW,CAAC,EAAE,eAAe,EAC7B,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,+BAA+B,CAAC,CAAC;CAC7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"responses.js","sourceRoot":"","sources":["../../../src/models/responses.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { CallConnection } from \"../callConnection.js\";\nimport type { CallConnectionProperties, CallParticipant } from \"./models.js\";\nimport type {
|
|
1
|
+
{"version":3,"file":"responses.js","sourceRoot":"","sources":["../../../src/models/responses.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { CallConnection } from \"../callConnection.js\";\nimport type { CallConnectionProperties, CallParticipant } from \"./models.js\";\nimport type {\n CallSessionEndReason,\n ErrorModel,\n RecordingState,\n RecordingStorageInfo,\n} from \"../generated/src/index.js\";\nimport type {\n AddParticipantEventResult,\n AnswerCallEventResult,\n CancelAllMediaOperationsEventResult,\n CreateCallEventResult,\n PlayEventResult,\n RemoveParticipantEventResult,\n SendDtmfEventResult,\n StartRecognizingEventResult,\n TransferCallToParticipantEventResult,\n CancelAddParticipantEventResult,\n ConnectCallEventResult,\n MoveParticipantEventResult,\n} from \"../eventprocessor/eventResponses.js\";\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\n\n/**\n * CreateCall result\n */\nexport interface CreateCallResult {\n /** The callConnectionProperties */\n callConnectionProperties: CallConnectionProperties;\n\n /** The callConnection */\n callConnection: CallConnection;\n\n /** Waiting for event processor to process the event */\n waitForEventProcessor(\n abortSignal?: AbortSignalLike,\n timeoutInMs?: number,\n ): Promise<CreateCallEventResult>;\n}\n\n/**\n * AnswerCall result\n */\nexport interface AnswerCallResult {\n /** The callConnectionProperties */\n callConnectionProperties: CallConnectionProperties;\n\n /** The callConnection */\n callConnection: CallConnection;\n\n /** Waiting for event processor to process the event */\n waitForEventProcessor(\n abortSignal?: AbortSignalLike,\n timeoutInMs?: number,\n ): Promise<AnswerCallEventResult>;\n}\n\n/**\n * ConnectCall result\n */\nexport interface ConnectCallResult {\n /** The callConnectionProperties */\n callConnectionProperties: CallConnectionProperties;\n\n /** The callConnection */\n callConnection: CallConnection;\n\n /** Waiting for event processor to process the event */\n waitForEventProcessor(\n abortSignal?: AbortSignalLike,\n timeoutInMs?: number,\n ): Promise<ConnectCallEventResult>;\n}\n\n/** The response payload for getting participants of the call. */\nexport interface ListParticipantsResult {\n /** List of the current participants in the call. */\n values?: CallParticipant[];\n /** Continue of the list of participants */\n nextLink?: string;\n}\n\n/** The response payload for adding participants to the call. */\nexport interface AddParticipantResult {\n /** invitation ID used to add the participant. */\n invitationId?: string;\n /** List of current participants in the call. */\n participant?: CallParticipant;\n /** The operation context provided by client. */\n operationContext?: string;\n /** Waiting for event processor to process the event */\n waitForEventProcessor(\n abortSignal?: AbortSignalLike,\n timeoutInMs?: number,\n ): Promise<AddParticipantEventResult>;\n}\n\n/** The response payload for transferring the call. */\nexport interface TransferCallResult {\n /** The operation context provided by client. */\n operationContext?: string;\n /** Waiting for event processor to process the event */\n waitForEventProcessor(\n abortSignal?: AbortSignalLike,\n timeoutInMs?: number,\n ): Promise<TransferCallToParticipantEventResult>;\n}\n\n/** The response payload for removing participants from the call. */\nexport interface RemoveParticipantResult {\n /** The operation context provided by client. */\n operationContext?: string;\n /** Waiting for event processor to process the event */\n waitForEventProcessor(\n abortSignal?: AbortSignalLike,\n timeoutInMs?: number,\n ): Promise<RemoveParticipantEventResult>;\n}\n\n/** The response payload for moving participants to the call. */\nexport interface MoveParticipantsResult {\n /** List of current participants in the call. */\n participants?: CallParticipant[];\n /** The operation context provided by client. */\n operationContext?: string;\n /** The CallConnectionId for the call you want to move the participant from */\n fromCall?: string;\n /** Waiting for event processor to process the event */\n waitForEventProcessor(\n abortSignal?: AbortSignalLike,\n timeoutInMs?: number,\n ): Promise<MoveParticipantEventResult>;\n}\n\n/** The response payload for muting participant from the call. */\nexport interface MuteParticipantResult {\n /** The operation context provided by client. */\n operationContext?: string;\n}\n\n/** The response payload for starting a call recording or getting call recording state. */\nexport interface RecordingStateResult {\n /** The unique recording identifier. */\n recordingId: string;\n /** The kind of recording (e.g., AzureCommunicationServices, Teams). */\n recordingKind: string;\n /** The current state of the recording. */\n recordingState: RecordingState;\n}\n\n/** The response payload for starting a call recording or getting call recording result. */\nexport interface RecordingResult {\n /** The unique identifier for the recording */\n recordingId: string;\n /** Container for recording storage information and chunks */\n readonly recordingStorageInfo?: RecordingStorageInfo;\n /** List of errors that occurred during recording, if any */\n readonly errors?: ErrorModel[];\n /** The timestamp when the recording started */\n readonly recordingStartTime?: Date;\n /** The duration of the recording in milliseconds */\n readonly recordingDurationMs?: number;\n /** The reason why the call session ended */\n readonly sessionEndReason?: CallSessionEndReason;\n /** The timestamp when the recording will expire */\n readonly recordingExpirationTime?: Date;\n}\n\n/** The response payload for starting a call recording or getting call recording state. */\nexport interface CancelAllMediaOperationsResult {\n /** Waiting for event processor to process the event */\n waitForEventProcessor(\n abortSignal?: AbortSignalLike,\n timeoutInMs?: number,\n ): Promise<CancelAllMediaOperationsEventResult>;\n}\n\n/** The response from play. */\nexport interface PlayResult {\n /** Waiting for event processor to process the event */\n waitForEventProcessor(\n abortSignal?: AbortSignalLike,\n timeoutInMs?: number,\n ): Promise<PlayEventResult>;\n}\n\n/** The response payload for sending DTMF tones. */\nexport interface SendDtmfTonesResult {\n /** The operation context provided by client. */\n operationContext?: string;\n /** Waiting for event processor to process the event */\n waitForEventProcessor(\n abortSignal?: AbortSignalLike,\n timeoutInMs?: number,\n ): Promise<SendDtmfEventResult>;\n}\n\n/** The response from recognizing. */\nexport interface StartRecognizingResult {\n /** Waiting for event processor to process the event */\n waitForEventProcessor(\n abortSignal?: AbortSignalLike,\n timeoutInMs?: number,\n ): Promise<StartRecognizingEventResult>;\n}\n\n/** The response payload for cancelling add participant request. */\nexport interface CancelAddParticipantOperationResult {\n /** the invitation ID used to cancel the add participant request. */\n invitationId?: string;\n /** The operation context provided by client. */\n operationContext?: string;\n /** Waiting for event processor to process the event */\n waitForEventProcessor(\n abortSignal?: AbortSignalLike,\n timeoutInMs?: number,\n ): Promise<CancelAddParticipantEventResult>;\n}\n"]}
|
|
@@ -28,12 +28,23 @@ export interface AudioMetadata {
|
|
|
28
28
|
/** Specifies the number of audio channels in the audio configuration.
|
|
29
29
|
Currently, only "mono" (single channel) is supported.*/
|
|
30
30
|
channels: Channel;
|
|
31
|
+
/** The size of the audio data being sent, based on the sample rate and duration.*/
|
|
32
|
+
length: number;
|
|
33
|
+
}
|
|
34
|
+
export declare enum MediaKind {
|
|
35
|
+
/** Audio data.*/
|
|
36
|
+
AudioData = "audioData",
|
|
37
|
+
/** stop audio data*/
|
|
38
|
+
StopAudio = "stopAudio"
|
|
39
|
+
}
|
|
40
|
+
export interface StopAudio {
|
|
31
41
|
}
|
|
32
42
|
/**
|
|
33
|
-
*
|
|
43
|
+
* The format of transcription text.
|
|
34
44
|
*/
|
|
35
|
-
export
|
|
36
|
-
|
|
45
|
+
export declare enum TextFormat {
|
|
46
|
+
/** Formatted recognize text with punctuations.*/
|
|
47
|
+
Display = "display"
|
|
37
48
|
}
|
|
38
49
|
/**
|
|
39
50
|
* Text in the phrase.
|
|
@@ -58,8 +69,6 @@ export interface TranscriptionMetadata {
|
|
|
58
69
|
callConnectionId: string;
|
|
59
70
|
/** correlation Id.*/
|
|
60
71
|
correlationId: string;
|
|
61
|
-
/** The custom speech recognition model endpoint id.*/
|
|
62
|
-
speechRecognitionModelEndpointId: string;
|
|
63
72
|
}
|
|
64
73
|
/**
|
|
65
74
|
* Streaming Transcription.
|
|
@@ -68,7 +77,7 @@ export interface TranscriptionData {
|
|
|
68
77
|
/** The display form of the recognized word.*/
|
|
69
78
|
text: string;
|
|
70
79
|
/** The format of text.*/
|
|
71
|
-
format:
|
|
80
|
+
format: TextFormat;
|
|
72
81
|
/** Confidence of recognition of the whole phrase, from 0.0 (no confidence) to 1.0 (full confidence). */
|
|
73
82
|
confidence: number;
|
|
74
83
|
/** The position of this payload. 1 tick = 100 nanoseconds. */
|
|
@@ -82,36 +91,28 @@ export interface TranscriptionData {
|
|
|
82
91
|
/** State of the result of transcription. */
|
|
83
92
|
resultState: TranscriptionResultState;
|
|
84
93
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
94
|
+
export type StreamingDataResult = TranscriptionMetadata | TranscriptionData | AudioData | AudioMetadata;
|
|
95
|
+
export declare enum StreamingDataKind {
|
|
96
|
+
AudioData = "AudioData",
|
|
97
|
+
AudioMetadata = "AudioMetadata",
|
|
98
|
+
TranscriptionData = "TranscriptionData",
|
|
99
|
+
TranscriptionMetadata = "TranscriptionMetadata"
|
|
91
100
|
}
|
|
92
|
-
export type StreamingDataResult = TranscriptionMetadata | TranscriptionData | AudioData | AudioMetadata | DtmfData;
|
|
93
|
-
export type StreamingDataKind = "AudioData" | "AudioMetadata" | "TranscriptionData" | "TranscriptionMetadata" | "DtmfData";
|
|
94
101
|
export declare enum Channel {
|
|
95
102
|
Unknown = 0,
|
|
96
103
|
Mono = 1
|
|
97
104
|
}
|
|
98
|
-
|
|
99
|
-
* OutboundStreamingAudioData interface for outbound audio streaming payload.
|
|
100
|
-
*/
|
|
101
|
-
export interface OutStreamingData {
|
|
105
|
+
export declare class OutStreamingData {
|
|
102
106
|
/** Out streaming data kind ex. StopAudio, AudioData*/
|
|
103
107
|
kind: MediaKind;
|
|
104
108
|
/** Out streaming Audio Data */
|
|
105
109
|
audioData?: AudioData;
|
|
106
110
|
/** Out streaming Stop Audio Data */
|
|
107
111
|
stopAudio?: StopAudio;
|
|
112
|
+
constructor(kind: MediaKind);
|
|
113
|
+
/** Public static method to stringify the outbound audio data. */
|
|
114
|
+
static getStreamingDataForOutbound(data: string): string;
|
|
115
|
+
/** Public static method to stringify the stop audio data. */
|
|
116
|
+
static getStopAudioForOutbound(): string;
|
|
108
117
|
}
|
|
109
|
-
/**
|
|
110
|
-
* Helper function to create outbound audio data payload.
|
|
111
|
-
*/
|
|
112
|
-
export declare function createOutboundAudioData(data: string): string;
|
|
113
|
-
/**
|
|
114
|
-
* Helper function to create outbound stop audio data payload.
|
|
115
|
-
*/
|
|
116
|
-
export declare function createOutboundStopAudioData(): string;
|
|
117
118
|
//# sourceMappingURL=streaming.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"streaming.d.ts","sourceRoot":"","sources":["../../../src/models/streaming.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAE1E;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,qDAAqD;IACrD,IAAI,EAAE,MAAM,CAAC;IACb;;wDAEoD;IACpD,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,yEAAyE;IACzE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0DAA0D;IAC1D,WAAW,CAAC,EAAE,uBAAuB,GAAG,SAAS,CAAC;CACnD;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,sCAAsC;IACtC,cAAc,EAAE,MAAM,CAAC;IACvB,sGAAsG;IACtG,QAAQ,EAAE,MAAM,CAAC;IACjB,yFAAyF;IACzF,UAAU,EAAE,MAAM,CAAC;IACnB;mEAC+D;IAC/D,QAAQ,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"streaming.d.ts","sourceRoot":"","sources":["../../../src/models/streaming.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAE1E;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,qDAAqD;IACrD,IAAI,EAAE,MAAM,CAAC;IACb;;wDAEoD;IACpD,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,yEAAyE;IACzE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0DAA0D;IAC1D,WAAW,CAAC,EAAE,uBAAuB,GAAG,SAAS,CAAC;CACnD;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,sCAAsC;IACtC,cAAc,EAAE,MAAM,CAAC;IACvB,sGAAsG;IACtG,QAAQ,EAAE,MAAM,CAAC;IACjB,yFAAyF;IACzF,UAAU,EAAE,MAAM,CAAC;IACnB;mEAC+D;IAC/D,QAAQ,EAAE,OAAO,CAAC;IAClB,mFAAmF;IACnF,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,oBAAY,SAAS;IACnB,iBAAiB;IACjB,SAAS,cAAc;IACvB,qBAAqB;IACrB,SAAS,cAAc;CACxB;AAGD,MAAM,WAAW,SAAS;CAAG;AAE7B;;GAEG;AACH,oBAAY,UAAU;IACpB,iDAAiD;IACjD,OAAO,YAAY;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,4CAA4C;IAC5C,aAAa,EAAE,MAAM,CAAC;IACtB,kDAAkD;IAClD,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,oCAAoC;IACpC,cAA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Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
+
export var MediaKind;
|
|
4
|
+
(function (MediaKind) {
|
|
5
|
+
/** Audio data.*/
|
|
6
|
+
MediaKind["AudioData"] = "audioData";
|
|
7
|
+
/** stop audio data*/
|
|
8
|
+
MediaKind["StopAudio"] = "stopAudio";
|
|
9
|
+
})(MediaKind || (MediaKind = {}));
|
|
10
|
+
/**
|
|
11
|
+
* The format of transcription text.
|
|
12
|
+
*/
|
|
13
|
+
export var TextFormat;
|
|
14
|
+
(function (TextFormat) {
|
|
15
|
+
/** Formatted recognize text with punctuations.*/
|
|
16
|
+
TextFormat["Display"] = "display";
|
|
17
|
+
})(TextFormat || (TextFormat = {}));
|
|
18
|
+
// Enum for different kinds of streaming data in a call automation system
|
|
19
|
+
export var StreamingDataKind;
|
|
20
|
+
(function (StreamingDataKind) {
|
|
21
|
+
// Audio data type
|
|
22
|
+
StreamingDataKind["AudioData"] = "AudioData";
|
|
23
|
+
// Audio metadata type
|
|
24
|
+
StreamingDataKind["AudioMetadata"] = "AudioMetadata";
|
|
25
|
+
// Transcription data type
|
|
26
|
+
StreamingDataKind["TranscriptionData"] = "TranscriptionData";
|
|
27
|
+
// Transcription metadata type
|
|
28
|
+
StreamingDataKind["TranscriptionMetadata"] = "TranscriptionMetadata";
|
|
29
|
+
})(StreamingDataKind || (StreamingDataKind = {}));
|
|
3
30
|
// Enum for channel.
|
|
4
31
|
export var Channel;
|
|
5
32
|
(function (Channel) {
|
|
6
33
|
Channel[Channel["Unknown"] = 0] = "Unknown";
|
|
7
34
|
Channel[Channel["Mono"] = 1] = "Mono";
|
|
8
35
|
})(Channel || (Channel = {}));
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
// Base class for Out Streaming Data
|
|
37
|
+
export class OutStreamingData {
|
|
38
|
+
constructor(kind) {
|
|
39
|
+
this.kind = kind;
|
|
40
|
+
}
|
|
41
|
+
/** Public static method to stringify the outbound audio data. */
|
|
42
|
+
static getStreamingDataForOutbound(data) {
|
|
43
|
+
const outStreamingData = {
|
|
44
|
+
kind: MediaKind.AudioData,
|
|
45
|
+
audioData: {
|
|
46
|
+
data: data,
|
|
47
|
+
timestamp: undefined,
|
|
48
|
+
participant: undefined,
|
|
49
|
+
isSilent: false,
|
|
50
|
+
},
|
|
51
|
+
stopAudio: {},
|
|
52
|
+
};
|
|
53
|
+
const json = JSON.stringify(outStreamingData);
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
/** Public static method to stringify the stop audio data. */
|
|
57
|
+
static getStopAudioForOutbound() {
|
|
58
|
+
const outStreamingData = {
|
|
59
|
+
kind: MediaKind.StopAudio,
|
|
60
|
+
audioData: undefined,
|
|
61
|
+
stopAudio: {},
|
|
62
|
+
};
|
|
63
|
+
const json = JSON.stringify(outStreamingData);
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
37
66
|
}
|
|
38
67
|
//# sourceMappingURL=streaming.js.map
|