@azure/communication-chat 1.6.0-alpha.20240801.1 → 1.6.0-alpha.20250625.1
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/LICENSE +3 -3
- package/README.md +134 -45
- package/dist/browser/chatClient.d.ts +201 -0
- package/dist/browser/chatClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/chatClient.js +12 -11
- package/dist/browser/chatClient.js.map +1 -0
- package/dist/browser/chatThreadClient.d.ts +113 -0
- package/dist/browser/chatThreadClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/chatThreadClient.js +18 -7
- package/dist/browser/chatThreadClient.js.map +1 -0
- package/dist/browser/credential/communicationTokenCredentialPolicy.d.ts +9 -0
- package/dist/browser/credential/communicationTokenCredentialPolicy.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/credential/communicationTokenCredentialPolicy.js +2 -2
- package/dist/browser/credential/communicationTokenCredentialPolicy.js.map +1 -0
- package/dist/browser/generated/src/chatApiClient.d.ts +18 -0
- package/dist/browser/generated/src/chatApiClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/src/chatApiClient.js +3 -3
- package/dist/browser/generated/src/chatApiClient.js.map +1 -0
- package/dist/browser/generated/src/index.d.ts +4 -0
- package/dist/browser/generated/src/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/src/index.js +3 -3
- package/dist/browser/generated/src/index.js.map +1 -0
- package/dist/browser/generated/src/models/index.d.ts +497 -0
- package/dist/browser/generated/src/models/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/src/models/index.js +8 -0
- package/dist/browser/generated/src/models/index.js.map +1 -0
- package/dist/browser/generated/src/models/mappers.d.ts +38 -0
- package/dist/browser/generated/src/models/mappers.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/src/models/mappers.js +100 -0
- package/dist/browser/generated/src/models/mappers.js.map +1 -0
- package/dist/browser/generated/src/models/parameters.d.ts +22 -0
- package/dist/browser/generated/src/models/parameters.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/src/models/parameters.js +2 -2
- package/dist/browser/generated/src/models/parameters.js.map +1 -0
- package/dist/browser/generated/src/operations/chat.d.ts +36 -0
- package/dist/browser/generated/src/operations/chat.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/src/operations/chat.js +3 -3
- package/dist/browser/generated/src/operations/chat.js.map +1 -0
- package/dist/browser/generated/src/operations/chatThread.d.ts +121 -0
- package/dist/browser/generated/src/operations/chatThread.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/src/operations/chatThread.js +3 -3
- package/dist/browser/generated/src/operations/chatThread.js.map +1 -0
- package/dist/browser/generated/src/operations/index.d.ts +3 -0
- package/dist/browser/generated/src/operations/index.d.ts.map +1 -0
- package/dist/browser/generated/src/operations/index.js +10 -0
- package/dist/browser/generated/src/operations/index.js.map +1 -0
- package/dist/browser/generated/src/operationsInterfaces/chat.d.ts +28 -0
- package/dist/browser/generated/src/operationsInterfaces/chat.d.ts.map +1 -0
- package/dist/browser/generated/src/operationsInterfaces/chat.js.map +1 -0
- package/dist/browser/generated/src/operationsInterfaces/chatThread.d.ts +113 -0
- package/dist/browser/generated/src/operationsInterfaces/chatThread.d.ts.map +1 -0
- package/dist/browser/generated/src/operationsInterfaces/chatThread.js.map +1 -0
- package/dist/browser/generated/src/operationsInterfaces/index.d.ts +3 -0
- package/dist/browser/generated/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/browser/generated/src/operationsInterfaces/index.js +10 -0
- package/dist/browser/generated/src/operationsInterfaces/index.js.map +1 -0
- package/dist/browser/generated/src/tracing.d.ts +2 -0
- package/dist/browser/generated/src/tracing.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/src/tracing.js +1 -1
- package/{dist-esm/src → dist/browser}/generated/src/tracing.js.map +1 -1
- package/dist/browser/index.d.ts +7 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +9 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/models/events.d.ts +4 -0
- package/dist/browser/models/events.d.ts.map +1 -0
- package/dist/browser/models/events.js +4 -0
- package/{dist-esm/src → dist/browser}/models/events.js.map +1 -1
- package/dist/browser/models/logger.d.ts +2 -0
- package/dist/browser/models/logger.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/models/logger.js +1 -1
- package/{dist-esm/src → dist/browser}/models/logger.js.map +1 -1
- package/dist/browser/models/mappers.d.ts +55 -0
- package/dist/browser/models/mappers.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/models/mappers.js +22 -5
- package/dist/browser/models/mappers.js.map +1 -0
- package/dist/browser/models/models.d.ts +128 -0
- package/dist/browser/models/models.d.ts.map +1 -0
- package/dist/browser/models/models.js +4 -0
- package/dist/browser/models/models.js.map +1 -0
- package/dist/browser/models/options.d.ts +116 -0
- package/dist/browser/models/options.d.ts.map +1 -0
- package/dist/browser/models/options.js.map +1 -0
- package/dist/browser/models/requests.d.ts +18 -0
- package/dist/browser/models/requests.d.ts.map +1 -0
- package/dist/browser/models/requests.js +4 -0
- package/dist/browser/models/requests.js.map +1 -0
- package/dist/browser/models/uuid.d.ts +8 -0
- package/dist/browser/models/uuid.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/models/uuid.js +3 -3
- package/dist/browser/models/uuid.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/signaling/signalingClient-browser.d.mts.map +1 -0
- package/dist/browser/signaling/signalingClient-browser.mjs.map +1 -0
- package/dist/browser/signaling/signalingClient.d.ts +6 -0
- package/dist/browser/signaling/signalingClient.js +13 -0
- package/dist/browser/signaling/signalingClientOptions.d.ts +6 -0
- package/dist/browser/signaling/signalingClientOptions.d.ts.map +1 -0
- package/dist/browser/signaling/signalingClientOptions.js +4 -0
- package/dist/browser/signaling/signalingClientOptions.js.map +1 -0
- package/dist/commonjs/chatClient.d.ts +201 -0
- package/dist/commonjs/chatClient.d.ts.map +1 -0
- package/dist/commonjs/chatClient.js +245 -0
- package/dist/commonjs/chatClient.js.map +1 -0
- package/dist/commonjs/chatThreadClient.d.ts +113 -0
- package/dist/commonjs/chatThreadClient.d.ts.map +1 -0
- package/dist/commonjs/chatThreadClient.js +391 -0
- package/dist/commonjs/chatThreadClient.js.map +1 -0
- package/dist/commonjs/credential/communicationTokenCredentialPolicy.d.ts +9 -0
- package/dist/commonjs/credential/communicationTokenCredentialPolicy.d.ts.map +1 -0
- package/dist/commonjs/credential/communicationTokenCredentialPolicy.js +22 -0
- package/dist/commonjs/credential/communicationTokenCredentialPolicy.js.map +1 -0
- package/dist/commonjs/generated/src/chatApiClient.d.ts +18 -0
- package/dist/commonjs/generated/src/chatApiClient.d.ts.map +1 -0
- package/dist/commonjs/generated/src/chatApiClient.js +75 -0
- package/dist/commonjs/generated/src/chatApiClient.js.map +1 -0
- package/dist/commonjs/generated/src/index.d.ts +4 -0
- package/dist/commonjs/generated/src/index.d.ts.map +1 -0
- package/dist/commonjs/generated/src/index.js +16 -0
- package/dist/commonjs/generated/src/index.js.map +1 -0
- package/dist/commonjs/generated/src/models/index.d.ts +497 -0
- package/dist/commonjs/generated/src/models/index.d.ts.map +1 -0
- package/dist/commonjs/generated/src/models/index.js +43 -0
- package/dist/commonjs/generated/src/models/index.js.map +1 -0
- package/dist/commonjs/generated/src/models/mappers.d.ts +38 -0
- package/dist/commonjs/generated/src/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/generated/src/models/mappers.js +944 -0
- package/dist/commonjs/generated/src/models/mappers.js.map +1 -0
- package/dist/commonjs/generated/src/models/parameters.d.ts +22 -0
- package/dist/commonjs/generated/src/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/generated/src/models/parameters.js +166 -0
- package/dist/commonjs/generated/src/models/parameters.js.map +1 -0
- package/dist/commonjs/generated/src/operations/chat.d.ts +36 -0
- package/dist/commonjs/generated/src/operations/chat.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operations/chat.js +191 -0
- package/dist/commonjs/generated/src/operations/chat.js.map +1 -0
- package/dist/commonjs/generated/src/operations/chatThread.d.ts +121 -0
- package/dist/commonjs/generated/src/operations/chatThread.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operations/chatThread.js +700 -0
- package/dist/commonjs/generated/src/operations/chatThread.js.map +1 -0
- package/dist/commonjs/generated/src/operations/index.d.ts +3 -0
- package/dist/commonjs/generated/src/operations/index.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operations/index.js +13 -0
- package/dist/commonjs/generated/src/operations/index.js.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/chat.d.ts +28 -0
- package/dist/commonjs/generated/src/operationsInterfaces/chat.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/chat.js +10 -0
- package/dist/commonjs/generated/src/operationsInterfaces/chat.js.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/chatThread.d.ts +113 -0
- package/dist/commonjs/generated/src/operationsInterfaces/chatThread.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/chatThread.js +10 -0
- package/dist/commonjs/generated/src/operationsInterfaces/chatThread.js.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts +3 -0
- package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/index.js +13 -0
- package/dist/commonjs/generated/src/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/generated/src/tracing.d.ts +2 -0
- package/dist/commonjs/generated/src/tracing.d.ts.map +1 -0
- package/dist/commonjs/generated/src/tracing.js +17 -0
- package/dist/commonjs/generated/src/tracing.js.map +1 -0
- package/dist/commonjs/index.d.ts +7 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +12 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/models/events.d.ts +4 -0
- package/dist/commonjs/models/events.d.ts.map +1 -0
- package/dist/commonjs/models/events.js +5 -0
- package/dist/commonjs/models/events.js.map +1 -0
- package/dist/commonjs/models/logger.d.ts +2 -0
- package/dist/commonjs/models/logger.d.ts.map +1 -0
- package/dist/commonjs/models/logger.js +8 -0
- package/dist/commonjs/models/logger.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +55 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +139 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/models.d.ts +128 -0
- package/dist/commonjs/models/models.d.ts.map +1 -0
- package/dist/commonjs/models/models.js +5 -0
- package/dist/commonjs/models/models.js.map +1 -0
- package/dist/commonjs/models/options.d.ts +116 -0
- package/dist/commonjs/models/options.d.ts.map +1 -0
- package/dist/commonjs/models/options.js +3 -0
- package/dist/commonjs/models/options.js.map +1 -0
- package/dist/commonjs/models/requests.d.ts +18 -0
- package/dist/commonjs/models/requests.d.ts.map +1 -0
- package/dist/commonjs/models/requests.js +5 -0
- package/dist/commonjs/models/requests.js.map +1 -0
- package/dist/commonjs/models/uuid.d.ts +8 -0
- package/dist/commonjs/models/uuid.d.ts.map +1 -0
- package/dist/commonjs/models/uuid.js +16 -0
- package/dist/commonjs/models/uuid.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/signaling/signalingClient.d.ts +6 -0
- package/dist/commonjs/signaling/signalingClient.d.ts.map +1 -0
- package/dist/commonjs/signaling/signalingClient.js +11 -0
- package/dist/commonjs/signaling/signalingClient.js.map +1 -0
- package/dist/commonjs/signaling/signalingClientOptions.d.ts +6 -0
- package/dist/commonjs/signaling/signalingClientOptions.d.ts.map +1 -0
- package/dist/commonjs/signaling/signalingClientOptions.js +5 -0
- package/dist/commonjs/signaling/signalingClientOptions.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/chatClient.d.ts +201 -0
- package/dist/esm/chatClient.d.ts.map +1 -0
- package/dist/esm/chatClient.js +241 -0
- package/dist/esm/chatClient.js.map +1 -0
- package/dist/esm/chatThreadClient.d.ts +113 -0
- package/dist/esm/chatThreadClient.d.ts.map +1 -0
- package/dist/esm/chatThreadClient.js +387 -0
- package/dist/esm/chatThreadClient.js.map +1 -0
- package/dist/esm/credential/communicationTokenCredentialPolicy.d.ts +9 -0
- package/dist/esm/credential/communicationTokenCredentialPolicy.d.ts.map +1 -0
- package/dist/esm/credential/communicationTokenCredentialPolicy.js +18 -0
- package/dist/esm/credential/communicationTokenCredentialPolicy.js.map +1 -0
- package/dist/esm/generated/src/chatApiClient.d.ts +18 -0
- package/dist/esm/generated/src/chatApiClient.d.ts.map +1 -0
- package/dist/esm/generated/src/chatApiClient.js +70 -0
- package/dist/esm/generated/src/chatApiClient.js.map +1 -0
- package/dist/esm/generated/src/index.d.ts +4 -0
- package/dist/esm/generated/src/index.d.ts.map +1 -0
- package/dist/esm/generated/src/index.js +11 -0
- package/dist/esm/generated/src/index.js.map +1 -0
- package/dist/esm/generated/src/models/index.d.ts +497 -0
- package/dist/esm/generated/src/models/index.d.ts.map +1 -0
- package/dist/esm/generated/src/models/index.js +40 -0
- package/dist/esm/generated/src/models/index.js.map +1 -0
- package/dist/esm/generated/src/models/mappers.d.ts +38 -0
- package/dist/esm/generated/src/models/mappers.d.ts.map +1 -0
- package/dist/esm/generated/src/models/mappers.js +941 -0
- package/dist/esm/generated/src/models/mappers.js.map +1 -0
- package/dist/esm/generated/src/models/parameters.d.ts +22 -0
- package/dist/esm/generated/src/models/parameters.d.ts.map +1 -0
- package/dist/esm/generated/src/models/parameters.js +163 -0
- package/dist/esm/generated/src/models/parameters.js.map +1 -0
- package/dist/esm/generated/src/operations/chat.d.ts +36 -0
- package/dist/esm/generated/src/operations/chat.d.ts.map +1 -0
- package/dist/esm/generated/src/operations/chat.js +186 -0
- package/dist/esm/generated/src/operations/chat.js.map +1 -0
- package/dist/esm/generated/src/operations/chatThread.d.ts +121 -0
- package/dist/esm/generated/src/operations/chatThread.d.ts.map +1 -0
- package/dist/esm/generated/src/operations/chatThread.js +695 -0
- package/dist/esm/generated/src/operations/chatThread.js.map +1 -0
- package/dist/esm/generated/src/operations/index.d.ts +3 -0
- package/dist/esm/generated/src/operations/index.d.ts.map +1 -0
- package/dist/esm/generated/src/operations/index.js +10 -0
- package/dist/esm/generated/src/operations/index.js.map +1 -0
- package/dist/esm/generated/src/operationsInterfaces/chat.d.ts +28 -0
- package/dist/esm/generated/src/operationsInterfaces/chat.d.ts.map +1 -0
- package/{dist-esm/src/generated/src/operationsInterfaces/index.js → dist/esm/generated/src/operationsInterfaces/chat.js} +2 -3
- package/dist/esm/generated/src/operationsInterfaces/chat.js.map +1 -0
- package/dist/esm/generated/src/operationsInterfaces/chatThread.d.ts +113 -0
- package/dist/esm/generated/src/operationsInterfaces/chatThread.d.ts.map +1 -0
- package/{dist-esm/src/generated/src/operations/index.js → dist/esm/generated/src/operationsInterfaces/chatThread.js} +2 -3
- package/dist/esm/generated/src/operationsInterfaces/chatThread.js.map +1 -0
- package/dist/esm/generated/src/operationsInterfaces/index.d.ts +3 -0
- package/dist/esm/generated/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/generated/src/operationsInterfaces/index.js +10 -0
- package/dist/esm/generated/src/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/generated/src/tracing.d.ts +2 -0
- package/dist/esm/generated/src/tracing.d.ts.map +1 -0
- package/dist/esm/generated/src/tracing.js +14 -0
- package/dist/esm/generated/src/tracing.js.map +1 -0
- package/dist/esm/index.d.ts +7 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +9 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/models/events.d.ts +4 -0
- package/dist/esm/models/events.d.ts.map +1 -0
- package/dist/esm/models/events.js +4 -0
- package/dist/esm/models/events.js.map +1 -0
- package/dist/esm/models/logger.d.ts +2 -0
- package/dist/esm/models/logger.d.ts.map +1 -0
- package/dist/esm/models/logger.js +5 -0
- package/dist/esm/models/logger.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +55 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +125 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/models.d.ts +128 -0
- package/dist/esm/models/models.d.ts.map +1 -0
- package/dist/esm/models/models.js +4 -0
- package/dist/esm/models/models.js.map +1 -0
- package/dist/esm/models/options.d.ts +116 -0
- package/dist/esm/models/options.d.ts.map +1 -0
- package/dist/esm/models/options.js +2 -0
- package/dist/esm/models/options.js.map +1 -0
- package/dist/esm/models/requests.d.ts +18 -0
- package/dist/esm/models/requests.d.ts.map +1 -0
- package/dist/esm/models/requests.js +4 -0
- package/dist/esm/models/requests.js.map +1 -0
- package/dist/esm/models/uuid.d.ts +8 -0
- package/dist/esm/models/uuid.d.ts.map +1 -0
- package/dist/esm/models/uuid.js +13 -0
- package/dist/esm/models/uuid.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/signaling/signalingClient.d.ts +6 -0
- package/dist/esm/signaling/signalingClient.d.ts.map +1 -0
- package/dist/esm/signaling/signalingClient.js +7 -0
- package/dist/esm/signaling/signalingClient.js.map +1 -0
- package/dist/esm/signaling/signalingClientOptions.d.ts +6 -0
- package/dist/esm/signaling/signalingClientOptions.d.ts.map +1 -0
- package/dist/esm/signaling/signalingClientOptions.js +4 -0
- package/dist/esm/signaling/signalingClientOptions.js.map +1 -0
- package/dist/react-native/chatClient.d.ts +201 -0
- package/dist/react-native/chatClient.d.ts.map +1 -0
- package/dist/react-native/chatClient.js +241 -0
- package/dist/react-native/chatClient.js.map +1 -0
- package/dist/react-native/chatThreadClient.d.ts +113 -0
- package/dist/react-native/chatThreadClient.d.ts.map +1 -0
- package/dist/react-native/chatThreadClient.js +387 -0
- package/dist/react-native/chatThreadClient.js.map +1 -0
- package/dist/react-native/credential/communicationTokenCredentialPolicy.d.ts +9 -0
- package/dist/react-native/credential/communicationTokenCredentialPolicy.d.ts.map +1 -0
- package/dist/react-native/credential/communicationTokenCredentialPolicy.js +18 -0
- package/dist/react-native/credential/communicationTokenCredentialPolicy.js.map +1 -0
- package/dist/react-native/generated/src/chatApiClient.d.ts +18 -0
- package/dist/react-native/generated/src/chatApiClient.d.ts.map +1 -0
- package/dist/react-native/generated/src/chatApiClient.js +70 -0
- package/dist/react-native/generated/src/chatApiClient.js.map +1 -0
- package/dist/react-native/generated/src/index.d.ts +4 -0
- package/dist/react-native/generated/src/index.d.ts.map +1 -0
- package/dist/react-native/generated/src/index.js +11 -0
- package/dist/react-native/generated/src/index.js.map +1 -0
- package/dist/react-native/generated/src/models/index.d.ts +497 -0
- package/dist/react-native/generated/src/models/index.d.ts.map +1 -0
- package/dist/react-native/generated/src/models/index.js +40 -0
- package/dist/react-native/generated/src/models/index.js.map +1 -0
- package/dist/react-native/generated/src/models/mappers.d.ts +38 -0
- package/dist/react-native/generated/src/models/mappers.d.ts.map +1 -0
- package/dist/react-native/generated/src/models/mappers.js +941 -0
- package/dist/react-native/generated/src/models/mappers.js.map +1 -0
- package/dist/react-native/generated/src/models/parameters.d.ts +22 -0
- package/dist/react-native/generated/src/models/parameters.d.ts.map +1 -0
- package/dist/react-native/generated/src/models/parameters.js +163 -0
- package/dist/react-native/generated/src/models/parameters.js.map +1 -0
- package/dist/react-native/generated/src/operations/chat.d.ts +36 -0
- package/dist/react-native/generated/src/operations/chat.d.ts.map +1 -0
- package/dist/react-native/generated/src/operations/chat.js +186 -0
- package/dist/react-native/generated/src/operations/chat.js.map +1 -0
- package/dist/react-native/generated/src/operations/chatThread.d.ts +121 -0
- package/dist/react-native/generated/src/operations/chatThread.d.ts.map +1 -0
- package/dist/react-native/generated/src/operations/chatThread.js +695 -0
- package/dist/react-native/generated/src/operations/chatThread.js.map +1 -0
- package/dist/react-native/generated/src/operations/index.d.ts +3 -0
- package/dist/react-native/generated/src/operations/index.d.ts.map +1 -0
- package/dist/react-native/generated/src/operations/index.js +10 -0
- package/dist/react-native/generated/src/operations/index.js.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/chat.d.ts +28 -0
- package/dist/react-native/generated/src/operationsInterfaces/chat.d.ts.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/chat.js +9 -0
- package/dist/react-native/generated/src/operationsInterfaces/chat.js.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/chatThread.d.ts +113 -0
- package/dist/react-native/generated/src/operationsInterfaces/chatThread.d.ts.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/chatThread.js +9 -0
- package/dist/react-native/generated/src/operationsInterfaces/chatThread.js.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/index.d.ts +3 -0
- package/dist/react-native/generated/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/index.js +10 -0
- package/dist/react-native/generated/src/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/generated/src/tracing.d.ts +2 -0
- package/dist/react-native/generated/src/tracing.d.ts.map +1 -0
- package/dist/react-native/generated/src/tracing.js +14 -0
- package/dist/react-native/generated/src/tracing.js.map +1 -0
- package/dist/react-native/index.d.ts +7 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +9 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/models/events.d.ts +4 -0
- package/dist/react-native/models/events.d.ts.map +1 -0
- package/dist/react-native/models/events.js +4 -0
- package/dist/react-native/models/events.js.map +1 -0
- package/dist/react-native/models/logger.d.ts +2 -0
- package/dist/react-native/models/logger.d.ts.map +1 -0
- package/dist/react-native/models/logger.js +5 -0
- package/dist/react-native/models/logger.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +55 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +125 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/models.d.ts +128 -0
- package/dist/react-native/models/models.d.ts.map +1 -0
- package/dist/react-native/models/models.js +4 -0
- package/dist/react-native/models/models.js.map +1 -0
- package/dist/react-native/models/options.d.ts +116 -0
- package/dist/react-native/models/options.d.ts.map +1 -0
- package/dist/react-native/models/options.js +2 -0
- package/dist/react-native/models/options.js.map +1 -0
- package/dist/react-native/models/requests.d.ts +18 -0
- package/dist/react-native/models/requests.d.ts.map +1 -0
- package/dist/react-native/models/requests.js +4 -0
- package/dist/react-native/models/requests.js.map +1 -0
- package/dist/react-native/models/uuid.d.ts +8 -0
- package/dist/react-native/models/uuid.d.ts.map +1 -0
- package/dist/react-native/models/uuid.js +13 -0
- package/dist/react-native/models/uuid.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/signaling/signalingClient-react-native.d.mts.map +1 -0
- package/dist/react-native/signaling/signalingClient-react-native.mjs.map +1 -0
- package/dist/react-native/signaling/signalingClient.d.ts +6 -0
- package/dist/react-native/signaling/signalingClient.js +13 -0
- package/dist/react-native/signaling/signalingClientOptions.d.ts +6 -0
- package/dist/react-native/signaling/signalingClientOptions.d.ts.map +1 -0
- package/dist/react-native/signaling/signalingClientOptions.js +4 -0
- package/dist/react-native/signaling/signalingClientOptions.js.map +1 -0
- package/package.json +75 -70
- package/dist/index.js +0 -2770
- package/dist/index.js.map +0 -1
- package/dist-esm/src/chatClient.js.map +0 -1
- package/dist-esm/src/chatThreadClient.js.map +0 -1
- package/dist-esm/src/credential/communicationTokenCredentialPolicy.js.map +0 -1
- package/dist-esm/src/generated/src/chatApiClient.js.map +0 -1
- package/dist-esm/src/generated/src/index.js.map +0 -1
- package/dist-esm/src/generated/src/models/index.js.map +0 -1
- package/dist-esm/src/generated/src/models/mappers.js.map +0 -1
- package/dist-esm/src/generated/src/models/parameters.js.map +0 -1
- package/dist-esm/src/generated/src/operations/chat.js.map +0 -1
- package/dist-esm/src/generated/src/operations/chatThread.js.map +0 -1
- package/dist-esm/src/generated/src/operations/index.js.map +0 -1
- package/dist-esm/src/generated/src/operationsInterfaces/chat.js.map +0 -1
- package/dist-esm/src/generated/src/operationsInterfaces/chatThread.js.map +0 -1
- package/dist-esm/src/generated/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/index.js +0 -9
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/models/events.js +0 -4
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/models.js +0 -4
- package/dist-esm/src/models/models.js.map +0 -1
- package/dist-esm/src/models/options.js.map +0 -1
- package/dist-esm/src/models/requests.js +0 -4
- package/dist-esm/src/models/requests.js.map +0 -1
- package/dist-esm/src/models/uuid.js.map +0 -1
- package/dist-esm/src/signaling/signalingClient.browser.js +0 -12
- package/dist-esm/src/signaling/signalingClient.browser.js.map +0 -1
- package/dist-esm/src/signaling/signalingClient.js +0 -17
- package/dist-esm/src/signaling/signalingClient.js.map +0 -1
- package/types/communication-chat.d.ts +0 -676
- /package/{dist-esm/src → dist/browser}/generated/src/operationsInterfaces/chat.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/src/operationsInterfaces/chatThread.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/options.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAgTH,yFAAyF;AACzF,MAAM,CAAN,IAAY,qCAWX;AAXD,WAAY,qCAAqC;IAC/C,cAAc;IACd,4DAAmB,CAAA;IACnB,wBAAwB;IACxB,gFAAuC,CAAA;IACvC,kBAAkB;IAClB,oEAA2B,CAAA;IAC3B,yBAAyB;IACzB,kFAAyC,CAAA;IACzC,wBAAwB;IACxB,gFAAuC,CAAA;AACzC,CAAC,EAXW,qCAAqC,KAArC,qCAAqC,QAWhD;AAeD,2FAA2F;AAC3F,MAAM,CAAN,IAAY,uCAOX;AAPD,WAAY,uCAAuC;IACjD,aAAa;IACb,4DAAiB,CAAA;IACjB,UAAU;IACV,sDAAW,CAAA;IACX,WAAW;IACX,wDAAa,CAAA;AACf,CAAC,EAPW,uCAAuC,KAAvC,uCAAuC,QAOlD","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\n/** A paged collection of chat message read receipts. */\nexport interface ChatMessageReadReceiptsCollection {\n /** Collection of chat message read receipts. */\n value: ChatMessageReadReceipt[];\n /**\n * If there are more chat message read receipts that can be retrieved, the next link will be populated.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\n/** A chat message read receipt indicates the time a chat message was read by a recipient. */\nexport interface ChatMessageReadReceipt {\n /** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model is polymorphic: Apart from kind and rawId, at most one further property may be set which must match the kind enum value. */\n senderCommunicationIdentifier: CommunicationIdentifierModel;\n /** Id of the chat message that has been read. This id is generated by the server. */\n chatMessageId: string;\n /** The time at which the message was read. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n readOn: Date;\n}\n\n/** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model is polymorphic: Apart from kind and rawId, at most one further property may be set which must match the kind enum value. */\nexport interface CommunicationIdentifierModel {\n /** The identifier kind. Only required in responses. */\n kind?: CommunicationIdentifierModelKind;\n /** Raw Id of the identifier. Optional in requests, required in responses. */\n rawId?: string;\n /** The communication user. */\n communicationUser?: CommunicationUserIdentifierModel;\n /** The phone number. */\n phoneNumber?: PhoneNumberIdentifierModel;\n /** The Microsoft Teams user. */\n microsoftTeamsUser?: MicrosoftTeamsUserIdentifierModel;\n /** The Microsoft Teams application. */\n microsoftTeamsApp?: MicrosoftTeamsAppIdentifierModel;\n}\n\n/** A user that got created with an Azure Communication Services resource. */\nexport interface CommunicationUserIdentifierModel {\n /** The Id of the communication user. */\n id: string;\n}\n\n/** A phone number. */\nexport interface PhoneNumberIdentifierModel {\n /** The phone number in E.164 format. */\n value: string;\n}\n\n/** A Microsoft Teams user. */\nexport interface MicrosoftTeamsUserIdentifierModel {\n /** The Id of the Microsoft Teams user. If not anonymous, this is the AAD object Id of the user. */\n userId: string;\n /** True if the Microsoft Teams user is anonymous. By default false if missing. */\n isAnonymous?: boolean;\n /** The cloud that the Microsoft Teams user belongs to. By default 'public' if missing. */\n cloud?: CommunicationCloudEnvironmentModel;\n}\n\n/** A Microsoft Teams application. */\nexport interface MicrosoftTeamsAppIdentifierModel {\n /** The Id of the Microsoft Teams application. */\n appId: string;\n /** The cloud that the Microsoft Teams application belongs to. By default 'public' if missing. */\n cloud?: CommunicationCloudEnvironmentModel;\n}\n\n/** The Communication Services error. */\nexport interface CommunicationErrorResponse {\n /** The Communication Services error. */\n error: ChatError;\n}\n\n/** The Communication Services error. */\nexport interface ChatError {\n /** The error code. */\n code: string;\n /** The error message. */\n message: string;\n /**\n * The error target.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly target?: string;\n /**\n * Further details about specific errors that led to this error.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly details?: ChatError[];\n /**\n * The inner error if any.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly innerError?: ChatError;\n}\n\n/** Request payload for sending a read receipt. */\nexport interface SendReadReceiptRequest {\n /** Id of the latest chat message read by the user. */\n chatMessageId: string;\n}\n\n/** Details of the message to send. */\nexport interface SendChatMessageRequest {\n /** Chat message content. */\n content: string;\n /** The display name of the chat message sender. This property is used to populate sender name for push notifications. */\n senderDisplayName?: string;\n /** The chat message type. */\n type?: ChatMessageType;\n /** Message metadata. */\n metadata?: { [propertyName: string]: string };\n}\n\n/** Result of the send message operation. */\nexport interface SendChatMessageResult {\n /** A server-generated message id. */\n id: string;\n}\n\n/** Collection of chat messages for a particular chat thread. */\nexport interface ChatMessagesCollection {\n /** Collection of chat messages. */\n value: ChatMessage[];\n /**\n * If there are more chat messages that can be retrieved, the next link will be populated.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\n/** Chat message. */\nexport interface ChatMessage {\n /** The id of the chat message. This id is server generated. */\n id: string;\n /** The chat message type. */\n type: ChatMessageType;\n /** Sequence of the chat message in the conversation. */\n sequenceId: string;\n /** Version of the chat message. */\n version: string;\n /** Content of a chat message. */\n content?: ChatMessageContent;\n /** The display name of the chat message sender. This property is used to populate sender name for push notifications. */\n senderDisplayName?: string;\n /** The timestamp when the chat message arrived at the server. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n createdOn: Date;\n /** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model is polymorphic: Apart from kind and rawId, at most one further property may be set which must match the kind enum value. */\n senderCommunicationIdentifier?: CommunicationIdentifierModel;\n /** The timestamp (if applicable) when the message was deleted. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n deletedOn?: Date;\n /** The last timestamp (if applicable) when the message was edited. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n editedOn?: Date;\n /** Message metadata. */\n metadata?: { [propertyName: string]: string };\n}\n\n/** Content of a chat message. */\nexport interface ChatMessageContent {\n /** Chat message content for messages of types text or html. */\n message?: string;\n /** Chat message content for messages of type topicUpdated. */\n topic?: string;\n /** Chat message content for messages of types participantAdded or participantRemoved. */\n participants?: ChatParticipant[];\n /** List of attachments for this message */\n attachments?: ChatAttachment[];\n /** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model is polymorphic: Apart from kind and rawId, at most one further property may be set which must match the kind enum value. */\n initiatorCommunicationIdentifier?: CommunicationIdentifierModel;\n}\n\n/** A participant of the chat thread. */\nexport interface ChatParticipant {\n /** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model is polymorphic: Apart from kind and rawId, at most one further property may be set which must match the kind enum value. */\n communicationIdentifier: CommunicationIdentifierModel;\n /** Display name for the chat participant. */\n displayName?: string;\n /** Time from which the chat history is shared with the participant. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n shareHistoryTime?: Date;\n}\n\n/** An attachment in a chat message. */\nexport interface ChatAttachment {\n /** Id of the attachment */\n id: string;\n /** The type of attachment. */\n attachmentType: ChatAttachmentType;\n /** The name of the attachment content. */\n name?: string;\n /** The URL where the attachment can be downloaded */\n url?: string;\n /** The URL where the preview of attachment can be downloaded */\n previewUrl?: string;\n}\n\n/** Request payload for updating a chat message. */\nexport interface UpdateChatMessageRequest {\n /** Chat message content. */\n content?: string;\n /** Message metadata. */\n metadata?: { [propertyName: string]: string };\n}\n\n/** Collection of participants belong to a particular thread. */\nexport interface ChatParticipantsCollection {\n /** Chat participants. */\n value: ChatParticipant[];\n /**\n * If there are more chat participants that can be retrieved, the next link will be populated.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\n/** Participants to be added to the thread. */\nexport interface AddChatParticipantsRequest {\n /** Participants to add to a chat thread. */\n participants: ChatParticipant[];\n}\n\n/** Result of the add chat participants operation. */\nexport interface AddChatParticipantsResult {\n /**\n * The participants that failed to be added to the chat thread.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly invalidParticipants?: ChatError[];\n}\n\n/** Request payload for creating a chat thread. */\nexport interface CreateChatThreadRequest {\n /** The chat thread topic. */\n topic: string;\n /** Participants to be added to the chat thread. */\n participants?: ChatParticipant[];\n}\n\n/** Result of the create chat thread operation. */\nexport interface CreateChatThreadResult {\n /** Chat thread. */\n chatThread?: ChatThreadProperties;\n /**\n * The participants that failed to be added to the chat thread.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly invalidParticipants?: ChatError[];\n}\n\n/** Chat thread. */\nexport interface ChatThreadProperties {\n /** Chat thread id. */\n id: string;\n /** Chat thread topic. */\n topic: string;\n /** The timestamp when the chat thread was created. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n createdOn: Date;\n /** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model is polymorphic: Apart from kind and rawId, at most one further property may be set which must match the kind enum value. */\n createdByCommunicationIdentifier: CommunicationIdentifierModel;\n /** The timestamp when the chat thread was deleted. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n deletedOn?: Date;\n}\n\n/** Collection of chat threads. */\nexport interface ChatThreadsItemCollection {\n /** Collection of chat threads. */\n value: ChatThreadItem[];\n /**\n * If there are more chat threads that can be retrieved, the next link will be populated.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\n/** Summary information of a chat thread. */\nexport interface ChatThreadItem {\n /** Chat thread id. */\n id: string;\n /** Chat thread topic. */\n topic: string;\n /** The timestamp when the chat thread was deleted. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n deletedOn?: Date;\n /**\n * The timestamp when the last message arrived at the server. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly lastMessageReceivedOn?: Date;\n}\n\n/** Request payload for updating a chat thread. */\nexport interface UpdateChatThreadRequest {\n /** Chat thread topic. */\n topic?: string;\n}\n\n/** Request payload for typing notifications. */\nexport interface SendTypingNotificationRequest {\n /** The display name of the typing notification sender. This property is used to populate sender name for push notifications. */\n senderDisplayName?: string;\n}\n\n/** Known values of {@link CommunicationIdentifierModelKind} that the service accepts. */\nexport enum KnownCommunicationIdentifierModelKind {\n /** Unknown */\n Unknown = \"unknown\",\n /** CommunicationUser */\n CommunicationUser = \"communicationUser\",\n /** PhoneNumber */\n PhoneNumber = \"phoneNumber\",\n /** MicrosoftTeamsUser */\n MicrosoftTeamsUser = \"microsoftTeamsUser\",\n /** MicrosoftTeamsApp */\n MicrosoftTeamsApp = \"microsoftTeamsApp\",\n}\n\n/**\n * Defines values for CommunicationIdentifierModelKind. \\\n * {@link KnownCommunicationIdentifierModelKind} can be used interchangeably with CommunicationIdentifierModelKind,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **unknown** \\\n * **communicationUser** \\\n * **phoneNumber** \\\n * **microsoftTeamsUser** \\\n * **microsoftTeamsApp**\n */\nexport type CommunicationIdentifierModelKind = string;\n\n/** Known values of {@link CommunicationCloudEnvironmentModel} that the service accepts. */\nexport enum KnownCommunicationCloudEnvironmentModel {\n /** Public */\n Public = \"public\",\n /** Dod */\n Dod = \"dod\",\n /** Gcch */\n Gcch = \"gcch\",\n}\n\n/**\n * Defines values for CommunicationCloudEnvironmentModel. \\\n * {@link KnownCommunicationCloudEnvironmentModel} can be used interchangeably with CommunicationCloudEnvironmentModel,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **public** \\\n * **dod** \\\n * **gcch**\n */\nexport type CommunicationCloudEnvironmentModel = string;\n/** Defines values for ChatMessageType. */\nexport type ChatMessageType =\n | \"text\"\n | \"html\"\n | \"topicUpdated\"\n | \"participantAdded\"\n | \"participantRemoved\";\n/** Defines values for ChatAttachmentType. */\nexport type ChatAttachmentType = \"image\" | \"file\";\n\n/** Optional parameters. */\nexport interface ChatThreadListChatReadReceiptsOptionalParams\n extends coreClient.OperationOptions {\n /** The maximum number of chat message read receipts to be returned per page. */\n maxPageSize?: number;\n /** Skips chat message read receipts up to a specified position in response. */\n skip?: number;\n}\n\n/** Contains response data for the listChatReadReceipts operation. */\nexport type ChatThreadListChatReadReceiptsResponse =\n ChatMessageReadReceiptsCollection;\n\n/** Optional parameters. */\nexport interface ChatThreadSendChatReadReceiptOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface ChatThreadSendChatMessageOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the sendChatMessage operation. */\nexport type ChatThreadSendChatMessageResponse = SendChatMessageResult;\n\n/** Optional parameters. */\nexport interface ChatThreadListChatMessagesOptionalParams\n extends coreClient.OperationOptions {\n /** The maximum number of messages to be returned per page. */\n maxPageSize?: number;\n /** The earliest point in time to get messages up to. The timestamp should be in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n startTime?: Date;\n}\n\n/** Contains response data for the listChatMessages operation. */\nexport type ChatThreadListChatMessagesResponse = ChatMessagesCollection;\n\n/** Optional parameters. */\nexport interface ChatThreadGetChatMessageOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getChatMessage operation. */\nexport type ChatThreadGetChatMessageResponse = ChatMessage;\n\n/** Optional parameters. */\nexport interface ChatThreadUpdateChatMessageOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface ChatThreadDeleteChatMessageOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface ChatThreadListChatParticipantsOptionalParams\n extends coreClient.OperationOptions {\n /** The maximum number of participants to be returned per page. */\n maxPageSize?: number;\n /** Skips participants up to a specified position in response. */\n skip?: number;\n}\n\n/** Contains response data for the listChatParticipants operation. */\nexport type ChatThreadListChatParticipantsResponse = ChatParticipantsCollection;\n\n/** Optional parameters. */\nexport interface ChatThreadRemoveChatParticipantOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface ChatThreadAddChatParticipantsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the addChatParticipants operation. */\nexport type ChatThreadAddChatParticipantsResponse = AddChatParticipantsResult;\n\n/** Optional parameters. */\nexport interface ChatThreadUpdateChatThreadPropertiesOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface ChatThreadGetChatThreadPropertiesOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getChatThreadProperties operation. */\nexport type ChatThreadGetChatThreadPropertiesResponse = ChatThreadProperties;\n\n/** Optional parameters. */\nexport interface ChatThreadSendTypingNotificationOptionalParams\n extends coreClient.OperationOptions {\n /** Details of the typing notification request. */\n sendTypingNotificationRequest?: SendTypingNotificationRequest;\n}\n\n/** Optional parameters. */\nexport interface ChatThreadListChatReadReceiptsNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listChatReadReceiptsNext operation. */\nexport type ChatThreadListChatReadReceiptsNextResponse =\n ChatMessageReadReceiptsCollection;\n\n/** Optional parameters. */\nexport interface ChatThreadListChatMessagesNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listChatMessagesNext operation. */\nexport type ChatThreadListChatMessagesNextResponse = ChatMessagesCollection;\n\n/** Optional parameters. */\nexport interface ChatThreadListChatParticipantsNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listChatParticipantsNext operation. */\nexport type ChatThreadListChatParticipantsNextResponse =\n ChatParticipantsCollection;\n\n/** Optional parameters. */\nexport interface ChatCreateChatThreadOptionalParams\n extends coreClient.OperationOptions {\n /** If specified, the client directs that the request is repeatable; that is, that the client can make the request multiple times with the same Repeatability-Request-Id and get back an appropriate response without the server executing the request multiple times. The value of the Repeatability-Request-Id is an opaque string representing a client-generated, globally unique for all time, identifier for the request. It is recommended to use version 4 (random) UUIDs. */\n repeatabilityRequestId?: string;\n}\n\n/** Contains response data for the createChatThread operation. */\nexport type ChatCreateChatThreadResponse = CreateChatThreadResult;\n\n/** Optional parameters. */\nexport interface ChatListChatThreadsOptionalParams\n extends coreClient.OperationOptions {\n /** The maximum number of chat threads returned per page. */\n maxPageSize?: number;\n /** The earliest point in time to get chat threads up to. The timestamp should be in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n startTime?: Date;\n}\n\n/** Contains response data for the listChatThreads operation. */\nexport type ChatListChatThreadsResponse = ChatThreadsItemCollection;\n\n/** Optional parameters. */\nexport interface ChatDeleteChatThreadOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface ChatListChatThreadsNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listChatThreadsNext operation. */\nexport type ChatListChatThreadsNextResponse = ChatThreadsItemCollection;\n\n/** Optional parameters. */\nexport interface ChatApiClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,iCAAiC,GAA+B;IAC3E,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,mCAAmC;QAC9C,eAAe,EAAE;YACf,KAAK,EAAE;gBACL,cAAc,EAAE,OAAO;gBACvB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,WAAW;4BACjB,SAAS,EAAE,wBAAwB;yBACpC;qBACF;iBACF;aACF;YACD,QAAQ,EAAE;gBACR,cAAc,EAAE,UAAU;gBAC1B,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAA+B;IAChE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,wBAAwB;QACnC,eAAe,EAAE;YACf,6BAA6B,EAAE;gBAC7B,cAAc,EAAE,+BAA+B;gBAC/C,IAAI,EAAE;oBACJ,IAAI,EAAE,WAAW;oBACjB,SAAS,EAAE,8BAA8B;iBAC1C;aACF;YACD,aAAa,EAAE;gBACb,cAAc,EAAE,eAAe;gBAC/B,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,MAAM,EAAE;gBACN,cAAc,EAAE,QAAQ;gBACxB,QAAQ,EAAE,IAAI;gBACd,IAAI,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L,cAAc,EAAE,OAAO;gBACvB,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAA+B;IACvE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,+BAA+B;QAC1C,eAAe,EAAE;YACf,iBAAiB,EAAE;gBACjB,cAAc,EAAE,mBAAmB;gBACnC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\nexport const ChatMessageReadReceiptsCollection: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ChatMessageReadReceiptsCollection\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ChatMessageReadReceipt\",\n },\n },\n },\n },\n nextLink: {\n serializedName: \"nextLink\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ChatMessageReadReceipt: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ChatMessageReadReceipt\",\n modelProperties: {\n senderCommunicationIdentifier: {\n serializedName: \"senderCommunicationIdentifier\",\n type: {\n name: \"Composite\",\n className: \"CommunicationIdentifierModel\",\n },\n },\n chatMessageId: {\n serializedName: \"chatMessageId\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n readOn: {\n serializedName: \"readOn\",\n required: true,\n type: {\n name: \"DateTime\",\n },\n },\n },\n },\n};\n\nexport const CommunicationIdentifierModel: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CommunicationIdentifierModel\",\n modelProperties: {\n kind: {\n serializedName: \"kind\",\n type: {\n name: \"String\",\n },\n },\n rawId: {\n serializedName: \"rawId\",\n type: {\n name: \"String\",\n },\n },\n communicationUser: {\n serializedName: \"communicationUser\",\n type: {\n name: \"Composite\",\n className: \"CommunicationUserIdentifierModel\",\n },\n },\n phoneNumber: {\n serializedName: \"phoneNumber\",\n type: {\n name: \"Composite\",\n className: \"PhoneNumberIdentifierModel\",\n },\n },\n microsoftTeamsUser: {\n serializedName: \"microsoftTeamsUser\",\n type: {\n name: \"Composite\",\n className: \"MicrosoftTeamsUserIdentifierModel\",\n },\n },\n microsoftTeamsApp: {\n serializedName: \"microsoftTeamsApp\",\n type: {\n name: \"Composite\",\n className: \"MicrosoftTeamsAppIdentifierModel\",\n },\n },\n },\n },\n};\n\nexport const CommunicationUserIdentifierModel: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CommunicationUserIdentifierModel\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const PhoneNumberIdentifierModel: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"PhoneNumberIdentifierModel\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const MicrosoftTeamsUserIdentifierModel: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MicrosoftTeamsUserIdentifierModel\",\n modelProperties: {\n userId: {\n serializedName: \"userId\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n isAnonymous: {\n serializedName: \"isAnonymous\",\n type: {\n name: \"Boolean\",\n },\n },\n cloud: {\n serializedName: \"cloud\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const MicrosoftTeamsAppIdentifierModel: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MicrosoftTeamsAppIdentifierModel\",\n modelProperties: {\n appId: {\n serializedName: \"appId\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n cloud: {\n serializedName: \"cloud\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const CommunicationErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CommunicationErrorResponse\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"ChatError\",\n },\n },\n },\n },\n};\n\nexport const ChatError: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ChatError\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n message: {\n serializedName: \"message\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n target: {\n serializedName: \"target\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n details: {\n serializedName: \"details\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ChatError\",\n },\n },\n },\n },\n innerError: {\n serializedName: \"innererror\",\n type: {\n name: \"Composite\",\n className: \"ChatError\",\n },\n },\n },\n },\n};\n\nexport const SendReadReceiptRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SendReadReceiptRequest\",\n modelProperties: {\n chatMessageId: {\n serializedName: \"chatMessageId\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const SendChatMessageRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SendChatMessageRequest\",\n modelProperties: {\n content: {\n serializedName: \"content\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n senderDisplayName: {\n serializedName: \"senderDisplayName\",\n type: {\n name: \"String\",\n },\n },\n type: {\n serializedName: \"type\",\n type: {\n name: \"Enum\",\n allowedValues: [\n \"text\",\n \"html\",\n \"topicUpdated\",\n \"participantAdded\",\n \"participantRemoved\",\n ],\n },\n },\n metadata: {\n serializedName: \"metadata\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } },\n },\n },\n },\n },\n};\n\nexport const SendChatMessageResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SendChatMessageResult\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ChatMessagesCollection: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ChatMessagesCollection\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ChatMessage\",\n },\n },\n },\n },\n nextLink: {\n serializedName: \"nextLink\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ChatMessage: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ChatMessage\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n type: {\n serializedName: \"type\",\n required: true,\n type: {\n name: \"Enum\",\n allowedValues: [\n \"text\",\n \"html\",\n \"topicUpdated\",\n \"participantAdded\",\n \"participantRemoved\",\n ],\n },\n },\n sequenceId: {\n serializedName: \"sequenceId\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n version: {\n serializedName: \"version\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n content: {\n serializedName: \"content\",\n type: {\n name: \"Composite\",\n className: \"ChatMessageContent\",\n },\n },\n senderDisplayName: {\n serializedName: \"senderDisplayName\",\n type: {\n name: \"String\",\n },\n },\n createdOn: {\n serializedName: \"createdOn\",\n required: true,\n type: {\n name: \"DateTime\",\n },\n },\n senderCommunicationIdentifier: {\n serializedName: \"senderCommunicationIdentifier\",\n type: {\n name: \"Composite\",\n className: \"CommunicationIdentifierModel\",\n },\n },\n deletedOn: {\n serializedName: \"deletedOn\",\n type: {\n name: \"DateTime\",\n },\n },\n editedOn: {\n serializedName: \"editedOn\",\n type: {\n name: \"DateTime\",\n },\n },\n metadata: {\n serializedName: \"metadata\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } },\n },\n },\n },\n },\n};\n\nexport const ChatMessageContent: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ChatMessageContent\",\n modelProperties: {\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\",\n },\n },\n topic: {\n serializedName: \"topic\",\n type: {\n name: \"String\",\n },\n },\n participants: {\n serializedName: \"participants\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ChatParticipant\",\n },\n },\n },\n },\n attachments: {\n serializedName: \"attachments\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ChatAttachment\",\n },\n },\n },\n },\n initiatorCommunicationIdentifier: {\n serializedName: \"initiatorCommunicationIdentifier\",\n type: {\n name: \"Composite\",\n className: \"CommunicationIdentifierModel\",\n },\n },\n },\n },\n};\n\nexport const ChatParticipant: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ChatParticipant\",\n modelProperties: {\n communicationIdentifier: {\n serializedName: \"communicationIdentifier\",\n type: {\n name: \"Composite\",\n className: \"CommunicationIdentifierModel\",\n },\n },\n displayName: {\n serializedName: \"displayName\",\n type: {\n name: \"String\",\n },\n },\n shareHistoryTime: {\n serializedName: \"shareHistoryTime\",\n type: {\n name: \"DateTime\",\n },\n },\n },\n },\n};\n\nexport const ChatAttachment: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ChatAttachment\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n attachmentType: {\n serializedName: \"attachmentType\",\n required: true,\n type: {\n name: \"Enum\",\n allowedValues: [\"image\", \"file\"],\n },\n },\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\",\n },\n },\n url: {\n serializedName: \"url\",\n type: {\n name: \"String\",\n },\n },\n previewUrl: {\n serializedName: \"previewUrl\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const UpdateChatMessageRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"UpdateChatMessageRequest\",\n modelProperties: {\n content: {\n serializedName: \"content\",\n type: {\n name: \"String\",\n },\n },\n metadata: {\n serializedName: \"metadata\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } },\n },\n },\n },\n },\n};\n\nexport const ChatParticipantsCollection: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ChatParticipantsCollection\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ChatParticipant\",\n },\n },\n },\n },\n nextLink: {\n serializedName: \"nextLink\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const AddChatParticipantsRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"AddChatParticipantsRequest\",\n modelProperties: {\n participants: {\n serializedName: \"participants\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ChatParticipant\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const AddChatParticipantsResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"AddChatParticipantsResult\",\n modelProperties: {\n invalidParticipants: {\n serializedName: \"invalidParticipants\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ChatError\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const CreateChatThreadRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CreateChatThreadRequest\",\n modelProperties: {\n topic: {\n serializedName: \"topic\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n participants: {\n serializedName: \"participants\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ChatParticipant\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const CreateChatThreadResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CreateChatThreadResult\",\n modelProperties: {\n chatThread: {\n serializedName: \"chatThread\",\n type: {\n name: \"Composite\",\n className: \"ChatThreadProperties\",\n },\n },\n invalidParticipants: {\n serializedName: \"invalidParticipants\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ChatError\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const ChatThreadProperties: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ChatThreadProperties\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n topic: {\n serializedName: \"topic\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n createdOn: {\n serializedName: \"createdOn\",\n required: true,\n type: {\n name: \"DateTime\",\n },\n },\n createdByCommunicationIdentifier: {\n serializedName: \"createdByCommunicationIdentifier\",\n type: {\n name: \"Composite\",\n className: \"CommunicationIdentifierModel\",\n },\n },\n deletedOn: {\n serializedName: \"deletedOn\",\n type: {\n name: \"DateTime\",\n },\n },\n },\n },\n};\n\nexport const ChatThreadsItemCollection: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ChatThreadsItemCollection\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n required: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ChatThreadItem\",\n },\n },\n },\n },\n nextLink: {\n serializedName: \"nextLink\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ChatThreadItem: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ChatThreadItem\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n topic: {\n serializedName: \"topic\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n deletedOn: {\n serializedName: \"deletedOn\",\n type: {\n name: \"DateTime\",\n },\n },\n lastMessageReceivedOn: {\n serializedName: \"lastMessageReceivedOn\",\n readOnly: true,\n type: {\n name: \"DateTime\",\n },\n },\n },\n },\n};\n\nexport const UpdateChatThreadRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"UpdateChatThreadRequest\",\n modelProperties: {\n topic: {\n serializedName: \"topic\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const SendTypingNotificationRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SendTypingNotificationRequest\",\n modelProperties: {\n senderDisplayName: {\n serializedName: \"senderDisplayName\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EACL,sBAAsB,IAAI,4BAA4B,EACtD,sBAAsB,IAAI,4BAA4B,EACtD,wBAAwB,IAAI,8BAA8B,EAC1D,4BAA4B,IAAI,kCAAkC,EAClE,0BAA0B,IAAI,gCAAgC,EAC9D,uBAAuB,IAAI,6BAA6B,EACxD,6BAA6B,IAAI,mCAAmC,EACpE,uBAAuB,IAAI,6BAA6B,GACzD,MAAM,mBAAmB,CAAC;AAE3B,MAAM,CAAC,MAAM,MAAM,GAAuB;IACxC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,QAAQ;QACxB,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAA0B;IAC7C,aAAa,EAAE,UAAU;IACzB,MAAM,EAAE;QACN,cAAc,EAAE,UAAU;QAC1B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,YAAY,EAAE,IAAI;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,YA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U;IACzB,MAAM,EAAE;QACN,cAAc,EAAE,UAAU;QAC1B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,YAAY,EAAE,IAAI;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAuB;IACzD,aAAa,EAAE,yBAAyB;IACxC,MAAM,EAAE,6BAA6B;CACtC,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAuB;IACxD,aAAa,EAAE,CAAC,SAAS,EAAE,wBAAwB,CAAC;IACpD,MAAM,EAAE;QACN,cAAc,EAAE,0BAA0B;QAC1C,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter,\n} from \"@azure/core-client\";\nimport {\n SendReadReceiptRequest as SendReadReceiptRequestMapper,\n SendChatMessageRequest as SendChatMessageRequestMapper,\n UpdateChatMessageRequest as UpdateChatMessageRequestMapper,\n CommunicationIdentifierModel as CommunicationIdentifierModelMapper,\n AddChatParticipantsRequest as AddChatParticipantsRequestMapper,\n UpdateChatThreadRequest as UpdateChatThreadRequestMapper,\n SendTypingNotificationRequest as SendTypingNotificationRequestMapper,\n CreateChatThreadRequest as CreateChatThreadRequestMapper,\n} from \"../models/mappers\";\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const endpoint: OperationURLParameter = {\n parameterPath: \"endpoint\",\n mapper: {\n serializedName: \"endpoint\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n skipEncoding: true,\n};\n\nexport const chatThreadId: OperationURLParameter = {\n parameterPath: \"chatThreadId\",\n mapper: {\n serializedName: \"chatThreadId\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const maxPageSize: OperationQueryParameter = {\n parameterPath: [\"options\", \"maxPageSize\"],\n mapper: {\n serializedName: \"maxPageSize\",\n type: {\n name: \"Number\",\n },\n },\n};\n\nexport const skip: OperationQueryParameter = {\n parameterPath: [\"options\", \"skip\"],\n mapper: {\n serializedName: \"skip\",\n type: {\n name: \"Number\",\n },\n },\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2024-03-07\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const sendReadReceiptRequest: OperationParameter = {\n parameterPath: \"sendReadReceiptRequest\",\n mapper: SendReadReceiptRequestMapper,\n};\n\nexport const sendChatMessageRequest: OperationParameter = {\n parameterPath: \"sendChatMessageRequest\",\n mapper: SendChatMessageRequestMapper,\n};\n\nexport const startTime: OperationQueryParameter = {\n parameterPath: [\"options\", \"startTime\"],\n mapper: {\n serializedName: \"startTime\",\n type: {\n name: \"DateTime\",\n },\n },\n};\n\nexport const chatMessageId: OperationURLParameter = {\n parameterPath: \"chatMessageId\",\n mapper: {\n serializedName: \"chatMessageId\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const contentType1: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/merge-patch+json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const updateChatMessageRequest: OperationParameter = {\n parameterPath: \"updateChatMessageRequest\",\n mapper: UpdateChatMessageRequestMapper,\n};\n\nexport const participantCommunicationIdentifier: OperationParameter = {\n parameterPath: \"participantCommunicationIdentifier\",\n mapper: CommunicationIdentifierModelMapper,\n};\n\nexport const addChatParticipantsRequest: OperationParameter = {\n parameterPath: \"addChatParticipantsRequest\",\n mapper: AddChatParticipantsRequestMapper,\n};\n\nexport const updateChatThreadRequest: OperationParameter = {\n parameterPath: \"updateChatThreadRequest\",\n mapper: UpdateChatThreadRequestMapper,\n};\n\nexport const sendTypingNotificationRequest: OperationParameter = {\n parameterPath: [\"options\", \"sendTypingNotificationRequest\"],\n mapper: SendTypingNotificationRequestMapper,\n};\n\nexport const nextLink: OperationURLParameter = {\n parameterPath: \"nextLink\",\n mapper: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n skipEncoding: true,\n};\n\nexport const createChatThreadRequest: OperationParameter = {\n parameterPath: \"createChatThreadRequest\",\n mapper: CreateChatThreadRequestMapper,\n};\n\nexport const repeatabilityRequestId: OperationParameter = {\n parameterPath: [\"options\", \"repeatabilityRequestId\"],\n mapper: {\n serializedName: \"repeatability-request-id\",\n type: {\n name: \"String\",\n },\n },\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chat.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/chat.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAanD,wCAAwC;AACxC,MAAM,OAAO,QAAQ;IAGnB;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,gBAAgB,CACpB,uBAAgD,EAChD,OAA4C;QAE5C,OAAO,aAAa,CAAC,QAAQ,CAC3B,gC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9C,OAAO,EAAE,IAAI;SACd;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;YAC9C,OAAO,EAAE,IAAI;SACd;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;YAC9C,OAAO,EAAE,IAAI;SACd;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;YAC9C,OAAO,EAAE,IAAI;SACd;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC;IACzD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { tracingClient } from \"../tracing\";\nimport { Chat } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { ChatApiClient } from \"../chatApiClient\";\nimport {\n CreateChatThreadRequest,\n ChatCreateChatThreadOptionalParams,\n ChatCreateChatThreadResponse,\n ChatListChatThreadsOptionalParams,\n ChatListChatThreadsResponse,\n ChatDeleteChatThreadOptionalParams,\n ChatListChatThreadsNextOptionalParams,\n ChatListChatThreadsNextResponse,\n} from \"../models\";\n\n/** Class containing Chat operations. */\nexport class ChatImpl implements Chat {\n private readonly client: ChatApiClient;\n\n /**\n * Initialize a new instance of the class Chat class.\n * @param client Reference to the service client\n */\n constructor(client: ChatApiClient) {\n this.client = client;\n }\n\n /**\n * Creates a chat thread.\n * @param createChatThreadRequest Request payload for creating a chat thread.\n * @param options The options parameters.\n */\n async createChatThread(\n createChatThreadRequest: CreateChatThreadRequest,\n options?: ChatCreateChatThreadOptionalParams,\n ): Promise<ChatCreateChatThreadResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.createChatThread\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { createChatThreadRequest, options },\n createChatThreadOperationSpec,\n ) as Promise<ChatCreateChatThreadResponse>;\n },\n );\n }\n\n /**\n * Gets the list of chat threads of a user.\n * @param options The options parameters.\n */\n async listChatThreads(\n options?: ChatListChatThreadsOptionalParams,\n ): Promise<ChatListChatThreadsResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.listChatThreads\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n listChatThreadsOperationSpec,\n ) as Promise<ChatListChatThreadsResponse>;\n },\n );\n }\n\n /**\n * Deletes a thread.\n * @param chatThreadId Id of the thread to be deleted.\n * @param options The options parameters.\n */\n async deleteChatThread(\n chatThreadId: string,\n options?: ChatDeleteChatThreadOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ChatApiClient.deleteChatThread\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, options },\n deleteChatThreadOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * ListChatThreadsNext\n * @param nextLink The nextLink from the previous successful call to the ListChatThreads method.\n * @param options The options parameters.\n */\n async listChatThreadsNext(\n nextLink: string,\n options?: ChatListChatThreadsNextOptionalParams,\n ): Promise<ChatListChatThreadsNextResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.listChatThreadsNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listChatThreadsNextOperationSpec,\n ) as Promise<ChatListChatThreadsNextResponse>;\n },\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createChatThreadOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads\",\n httpMethod: \"POST\",\n responses: {\n 201: {\n bodyMapper: Mappers.CreateChatThreadResult,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n requestBody: Parameters.createChatThreadRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.repeatabilityRequestId,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst listChatThreadsOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatThreadsItemCollection,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n queryParameters: [\n Parameters.maxPageSize,\n Parameters.apiVersion,\n Parameters.startTime,\n ],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteChatThreadOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listChatThreadsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatThreadsItemCollection,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chatThread.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/chatThread.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAqCnD,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,oBAAoB,CACxB,YAAoB,EACpB,OAAsD;QAEtD,OAAO,aAAa,CAAC,QAAQ,CAC3B,oCAAoC,EACpC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,EACb,KAAK,EAAE,OAAO,EAAE,EAAE;YAChB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,YAAY,EAAE,OAAO,EAAE,EACzB,iCAAiC,CACiB,CAAC;QACvD,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,mBAAmB,CACvB,YAAoB,EACpB,sBAA8C,EAC9C,OAAqD;QAErD,OAAO,aAAa,CAAC,QAAQ,CA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;SACd;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;YAC9C,OAAO,EAAE,IAAI;SACd;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;YAC9C,OAAO,EAAE,IAAI;SACd;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qCAAqC,GAA6B;IACtE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;YAC9C,OAAO,EAAE,IAAI;SACd;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;YAC9C,OAAO,EAAE,IAAI;SACd;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;YAC9C,OAAO,EAAE,IAAI;SACd;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;YAC9C,OAAO,EAAE,IAAI;SACd;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { tracingClient } from \"../tracing\";\nimport { ChatThread } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { ChatApiClient } from \"../chatApiClient\";\nimport {\n ChatThreadListChatReadReceiptsOptionalParams,\n ChatThreadListChatReadReceiptsResponse,\n SendReadReceiptRequest,\n ChatThreadSendChatReadReceiptOptionalParams,\n SendChatMessageRequest,\n ChatThreadSendChatMessageOptionalParams,\n ChatThreadSendChatMessageResponse,\n ChatThreadListChatMessagesOptionalParams,\n ChatThreadListChatMessagesResponse,\n ChatThreadGetChatMessageOptionalParams,\n ChatThreadGetChatMessageResponse,\n UpdateChatMessageRequest,\n ChatThreadUpdateChatMessageOptionalParams,\n ChatThreadDeleteChatMessageOptionalParams,\n ChatThreadListChatParticipantsOptionalParams,\n ChatThreadListChatParticipantsResponse,\n CommunicationIdentifierModel,\n ChatThreadRemoveChatParticipantOptionalParams,\n AddChatParticipantsRequest,\n ChatThreadAddChatParticipantsOptionalParams,\n ChatThreadAddChatParticipantsResponse,\n UpdateChatThreadRequest,\n ChatThreadUpdateChatThreadPropertiesOptionalParams,\n ChatThreadGetChatThreadPropertiesOptionalParams,\n ChatThreadGetChatThreadPropertiesResponse,\n ChatThreadSendTypingNotificationOptionalParams,\n ChatThreadListChatReadReceiptsNextOptionalParams,\n ChatThreadListChatReadReceiptsNextResponse,\n ChatThreadListChatMessagesNextOptionalParams,\n ChatThreadListChatMessagesNextResponse,\n ChatThreadListChatParticipantsNextOptionalParams,\n ChatThreadListChatParticipantsNextResponse,\n} from \"../models\";\n\n/** Class containing ChatThread operations. */\nexport class ChatThreadImpl implements ChatThread {\n private readonly client: ChatApiClient;\n\n /**\n * Initialize a new instance of the class ChatThread class.\n * @param client Reference to the service client\n */\n constructor(client: ChatApiClient) {\n this.client = client;\n }\n\n /**\n * Gets chat message read receipts for a thread.\n * @param chatThreadId Thread id to get the chat message read receipts for.\n * @param options The options parameters.\n */\n async listChatReadReceipts(\n chatThreadId: string,\n options?: ChatThreadListChatReadReceiptsOptionalParams,\n ): Promise<ChatThreadListChatReadReceiptsResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.listChatReadReceipts\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, options },\n listChatReadReceiptsOperationSpec,\n ) as Promise<ChatThreadListChatReadReceiptsResponse>;\n },\n );\n }\n\n /**\n * Sends a read receipt event to a thread, on behalf of a user.\n * @param chatThreadId Thread id to send the read receipt event to.\n * @param sendReadReceiptRequest Read receipt details.\n * @param options The options parameters.\n */\n async sendChatReadReceipt(\n chatThreadId: string,\n sendReadReceiptRequest: SendReadReceiptRequest,\n options?: ChatThreadSendChatReadReceiptOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ChatApiClient.sendChatReadReceipt\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, sendReadReceiptRequest, options },\n sendChatReadReceiptOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Sends a message to a thread.\n * @param chatThreadId The thread id to send the message to.\n * @param sendChatMessageRequest Details of the message to send.\n * @param options The options parameters.\n */\n async sendChatMessage(\n chatThreadId: string,\n sendChatMessageRequest: SendChatMessageRequest,\n options?: ChatThreadSendChatMessageOptionalParams,\n ): Promise<ChatThreadSendChatMessageResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.sendChatMessage\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, sendChatMessageRequest, options },\n sendChatMessageOperationSpec,\n ) as Promise<ChatThreadSendChatMessageResponse>;\n },\n );\n }\n\n /**\n * Gets a list of messages from a thread.\n * @param chatThreadId The thread id of the message.\n * @param options The options parameters.\n */\n async listChatMessages(\n chatThreadId: string,\n options?: ChatThreadListChatMessagesOptionalParams,\n ): Promise<ChatThreadListChatMessagesResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.listChatMessages\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, options },\n listChatMessagesOperationSpec,\n ) as Promise<ChatThreadListChatMessagesResponse>;\n },\n );\n }\n\n /**\n * Gets a message by id.\n * @param chatThreadId The thread id to which the message was sent.\n * @param chatMessageId The message id.\n * @param options The options parameters.\n */\n async getChatMessage(\n chatThreadId: string,\n chatMessageId: string,\n options?: ChatThreadGetChatMessageOptionalParams,\n ): Promise<ChatThreadGetChatMessageResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.getChatMessage\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, chatMessageId, options },\n getChatMessageOperationSpec,\n ) as Promise<ChatThreadGetChatMessageResponse>;\n },\n );\n }\n\n /**\n * Updates a message.\n * @param chatThreadId The thread id to which the message was sent.\n * @param chatMessageId The message id.\n * @param updateChatMessageRequest Details of the request to update the message.\n * @param options The options parameters.\n */\n async updateChatMessage(\n chatThreadId: string,\n chatMessageId: string,\n updateChatMessageRequest: UpdateChatMessageRequest,\n options?: ChatThreadUpdateChatMessageOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ChatApiClient.updateChatMessage\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, chatMessageId, updateChatMessageRequest, options },\n updateChatMessageOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Deletes a message.\n * @param chatThreadId The thread id to which the message was sent.\n * @param chatMessageId The message id.\n * @param options The options parameters.\n */\n async deleteChatMessage(\n chatThreadId: string,\n chatMessageId: string,\n options?: ChatThreadDeleteChatMessageOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ChatApiClient.deleteChatMessage\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, chatMessageId, options },\n deleteChatMessageOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Gets the participants of a thread.\n * @param chatThreadId Thread id to get participants for.\n * @param options The options parameters.\n */\n async listChatParticipants(\n chatThreadId: string,\n options?: ChatThreadListChatParticipantsOptionalParams,\n ): Promise<ChatThreadListChatParticipantsResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.listChatParticipants\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, options },\n listChatParticipantsOperationSpec,\n ) as Promise<ChatThreadListChatParticipantsResponse>;\n },\n );\n }\n\n /**\n * Remove a participant from a thread.\n * @param chatThreadId Thread id to remove the participant from.\n * @param participantCommunicationIdentifier Id of the thread participant to remove from the thread.\n * @param options The options parameters.\n */\n async removeChatParticipant(\n chatThreadId: string,\n participantCommunicationIdentifier: CommunicationIdentifierModel,\n options?: ChatThreadRemoveChatParticipantOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ChatApiClient.removeChatParticipant\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, participantCommunicationIdentifier, options },\n removeChatParticipantOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Adds thread participants to a thread. If participants already exist, no change occurs.\n * @param chatThreadId Id of the thread to add participants to.\n * @param addChatParticipantsRequest Thread participants to be added to the thread.\n * @param options The options parameters.\n */\n async addChatParticipants(\n chatThreadId: string,\n addChatParticipantsRequest: AddChatParticipantsRequest,\n options?: ChatThreadAddChatParticipantsOptionalParams,\n ): Promise<ChatThreadAddChatParticipantsResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.addChatParticipants\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, addChatParticipantsRequest, options },\n addChatParticipantsOperationSpec,\n ) as Promise<ChatThreadAddChatParticipantsResponse>;\n },\n );\n }\n\n /**\n * Updates a thread's properties.\n * @param chatThreadId The id of the thread to update.\n * @param updateChatThreadRequest Request payload for updating a chat thread.\n * @param options The options parameters.\n */\n async updateChatThreadProperties(\n chatThreadId: string,\n updateChatThreadRequest: UpdateChatThreadRequest,\n options?: ChatThreadUpdateChatThreadPropertiesOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ChatApiClient.updateChatThreadProperties\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, updateChatThreadRequest, options },\n updateChatThreadPropertiesOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Gets a chat thread's properties.\n * @param chatThreadId Id of the thread.\n * @param options The options parameters.\n */\n async getChatThreadProperties(\n chatThreadId: string,\n options?: ChatThreadGetChatThreadPropertiesOptionalParams,\n ): Promise<ChatThreadGetChatThreadPropertiesResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.getChatThreadProperties\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, options },\n getChatThreadPropertiesOperationSpec,\n ) as Promise<ChatThreadGetChatThreadPropertiesResponse>;\n },\n );\n }\n\n /**\n * Posts a typing event to a thread, on behalf of a user.\n * @param chatThreadId Id of the thread.\n * @param options The options parameters.\n */\n async sendTypingNotification(\n chatThreadId: string,\n options?: ChatThreadSendTypingNotificationOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ChatApiClient.sendTypingNotification\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, options },\n sendTypingNotificationOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * ListChatReadReceiptsNext\n * @param chatThreadId Thread id to get the chat message read receipts for.\n * @param nextLink The nextLink from the previous successful call to the ListChatReadReceipts method.\n * @param options The options parameters.\n */\n async listChatReadReceiptsNext(\n chatThreadId: string,\n nextLink: string,\n options?: ChatThreadListChatReadReceiptsNextOptionalParams,\n ): Promise<ChatThreadListChatReadReceiptsNextResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.listChatReadReceiptsNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, nextLink, options },\n listChatReadReceiptsNextOperationSpec,\n ) as Promise<ChatThreadListChatReadReceiptsNextResponse>;\n },\n );\n }\n\n /**\n * ListChatMessagesNext\n * @param chatThreadId The thread id of the message.\n * @param nextLink The nextLink from the previous successful call to the ListChatMessages method.\n * @param options The options parameters.\n */\n async listChatMessagesNext(\n chatThreadId: string,\n nextLink: string,\n options?: ChatThreadListChatMessagesNextOptionalParams,\n ): Promise<ChatThreadListChatMessagesNextResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.listChatMessagesNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, nextLink, options },\n listChatMessagesNextOperationSpec,\n ) as Promise<ChatThreadListChatMessagesNextResponse>;\n },\n );\n }\n\n /**\n * ListChatParticipantsNext\n * @param chatThreadId Thread id to get participants for.\n * @param nextLink The nextLink from the previous successful call to the ListChatParticipants method.\n * @param options The options parameters.\n */\n async listChatParticipantsNext(\n chatThreadId: string,\n nextLink: string,\n options?: ChatThreadListChatParticipantsNextOptionalParams,\n ): Promise<ChatThreadListChatParticipantsNextResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.listChatParticipantsNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, nextLink, options },\n listChatParticipantsNextOperationSpec,\n ) as Promise<ChatThreadListChatParticipantsNextResponse>;\n },\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listChatReadReceiptsOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/readReceipts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatMessageReadReceiptsCollection,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n queryParameters: [\n Parameters.maxPageSize,\n Parameters.skip,\n Parameters.apiVersion,\n ],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst sendChatReadReceiptOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/readReceipts\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n requestBody: Parameters.sendReadReceiptRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst sendChatMessageOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/messages\",\n httpMethod: \"POST\",\n responses: {\n 201: {\n bodyMapper: Mappers.SendChatMessageResult,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n requestBody: Parameters.sendChatMessageRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listChatMessagesOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/messages\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatMessagesCollection,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n queryParameters: [\n Parameters.maxPageSize,\n Parameters.apiVersion,\n Parameters.startTime,\n ],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getChatMessageOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/messages/{chatMessageId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatMessage,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.chatThreadId,\n Parameters.chatMessageId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateChatMessageOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/messages/{chatMessageId}\",\n httpMethod: \"PATCH\",\n responses: {\n 204: {},\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n requestBody: Parameters.updateChatMessageRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.chatThreadId,\n Parameters.chatMessageId,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType1],\n mediaType: \"json\",\n serializer,\n};\nconst deleteChatMessageOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/messages/{chatMessageId}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.chatThreadId,\n Parameters.chatMessageId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listChatParticipantsOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/participants\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatParticipantsCollection,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n queryParameters: [\n Parameters.maxPageSize,\n Parameters.skip,\n Parameters.apiVersion,\n ],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst removeChatParticipantOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/participants/:remove\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n requestBody: Parameters.participantCommunicationIdentifier,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst addChatParticipantsOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/participants/:add\",\n httpMethod: \"POST\",\n responses: {\n 201: {\n bodyMapper: Mappers.AddChatParticipantsResult,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n requestBody: Parameters.addChatParticipantsRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateChatThreadPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}\",\n httpMethod: \"PATCH\",\n responses: {\n 204: {},\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n requestBody: Parameters.updateChatThreadRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept, Parameters.contentType1],\n mediaType: \"json\",\n serializer,\n};\nconst getChatThreadPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatThreadProperties,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst sendTypingNotificationOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/typing\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n requestBody: Parameters.sendTypingNotificationRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listChatReadReceiptsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatMessageReadReceiptsCollection,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n urlParameters: [\n Parameters.endpoint,\n Parameters.chatThreadId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listChatMessagesNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatMessagesCollection,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n urlParameters: [\n Parameters.endpoint,\n Parameters.chatThreadId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listChatParticipantsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatParticipantsCollection,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n urlParameters: [\n Parameters.endpoint,\n Parameters.chatThreadId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./chatThread\";\nexport * from \"./chat\";\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chat.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/chat.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n CreateChatThreadRequest,\n ChatCreateChatThreadOptionalParams,\n ChatCreateChatThreadResponse,\n ChatListChatThreadsOptionalParams,\n ChatListChatThreadsResponse,\n ChatDeleteChatThreadOptionalParams,\n ChatListChatThreadsNextOptionalParams,\n ChatListChatThreadsNextResponse,\n} from \"../models\";\n\n/** Interface representing a Chat. */\nexport interface Chat {\n /**\n * Creates a chat thread.\n * @param createChatThreadRequest Request payload for creating a chat thread.\n * @param options The options parameters.\n */\n createChatThread(\n createChatThreadRequest: CreateChatThreadRequest,\n options?: ChatCreateChatThreadOptionalParams,\n ): Promise<ChatCreateChatThreadResponse>;\n /**\n * Gets the list of chat threads of a user.\n * @param options The options parameters.\n */\n listChatThreads(\n options?: ChatListChatThreadsOptionalParams,\n ): Promise<ChatListChatThreadsResponse>;\n /**\n * Deletes a thread.\n * @param chatThreadId Id of the thread to be deleted.\n * @param options The options parameters.\n */\n deleteChatThread(\n chatThreadId: string,\n options?: ChatDeleteChatThreadOptionalParams,\n ): Promise<void>;\n /**\n * ListChatThreadsNext\n * @param nextLink The nextLink from the previous successful call to the ListChatThreads method.\n * @param options The options parameters.\n */\n listChatThreadsNext(\n nextLink: string,\n options?: ChatListChatThreadsNextOptionalParams,\n ): Promise<ChatListChatThreadsNextResponse>;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chatThread.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/chatThread.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n ChatThreadListChatReadReceiptsOptionalParams,\n ChatThreadListChatReadReceiptsResponse,\n SendReadReceiptRequest,\n ChatThreadSendChatReadReceiptOptionalParams,\n SendChatMessageRequest,\n ChatThreadSendChatMessageOptionalParams,\n ChatThreadSendChatMessageResponse,\n ChatThreadListChatMessagesOptionalParams,\n ChatThreadListChatMessagesResponse,\n ChatThreadGetChatMessageOptionalParams,\n ChatThreadGetChatMessageResponse,\n UpdateChatMessageRequest,\n ChatThreadUpdateChatMessageOptionalParams,\n ChatThreadDeleteChatMessageOptionalParams,\n ChatThreadListChatParticipantsOptionalParams,\n ChatThreadListChatParticipantsResponse,\n CommunicationIdentifierModel,\n ChatThreadRemoveChatParticipantOptionalParams,\n AddChatParticipantsRequest,\n ChatThreadAddChatParticipantsOptionalParams,\n ChatThreadAddChatParticipantsResponse,\n UpdateChatThreadRequest,\n ChatThreadUpdateChatThreadPropertiesOptionalParams,\n ChatThreadGetChatThreadPropertiesOptionalParams,\n ChatThreadGetChatThreadPropertiesResponse,\n ChatThreadSendTypingNotificationOptionalParams,\n ChatThreadListChatReadReceiptsNextOptionalParams,\n ChatThreadListChatReadReceiptsNextResponse,\n ChatThreadListChatMessagesNextOptionalParams,\n ChatThreadListChatMessagesNextResponse,\n ChatThreadListChatParticipantsNextOptionalParams,\n ChatThreadListChatParticipantsNextResponse,\n} from \"../models\";\n\n/** Interface representing a ChatThread. */\nexport interface ChatThread {\n /**\n * Gets chat message read receipts for a thread.\n * @param chatThreadId Thread id to get the chat message read receipts for.\n * @param options The options parameters.\n */\n listChatReadReceipts(\n chatThreadId: string,\n options?: ChatThreadListChatReadReceiptsOptionalParams,\n ): Promise<ChatThreadListChatReadReceiptsResponse>;\n /**\n * Sends a read receipt event to a thread, on behalf of a user.\n * @param chatThreadId Thread id to send the read receipt event to.\n * @param sendReadReceiptRequest Read receipt details.\n * @param options The options parameters.\n */\n sendChatReadReceipt(\n chatThreadId: string,\n sendReadReceiptRequest: SendReadReceiptRequest,\n options?: ChatThreadSendChatReadReceiptOptionalParams,\n ): Promise<void>;\n /**\n * Sends a message to a thread.\n * @param chatThreadId The thread id to send the message to.\n * @param sendChatMessageRequest Details of the message to send.\n * @param options The options parameters.\n */\n sendChatMessage(\n chatThreadId: string,\n sendChatMessageRequest: SendChatMessageRequest,\n options?: ChatThreadSendChatMessageOptionalParams,\n ): Promise<ChatThreadSendChatMessageResponse>;\n /**\n * Gets a list of messages from a thread.\n * @param chatThreadId The thread id of the message.\n * @param options The options parameters.\n */\n listChatMessages(\n chatThreadId: string,\n options?: ChatThreadListChatMessagesOptionalParams,\n ): Promise<ChatThreadListChatMessagesResponse>;\n /**\n * Gets a message by id.\n * @param chatThreadId The thread id to which the message was sent.\n * @param chatMessageId The message id.\n * @param options The options parameters.\n */\n getChatMessage(\n chatThreadId: string,\n chatMessageId: string,\n options?: ChatThreadGetChatMessageOptionalParams,\n ): Promise<ChatThreadGetChatMessageResponse>;\n /**\n * Updates a message.\n * @param chatThreadId The thread id to which the message was sent.\n * @param chatMessageId The message id.\n * @param updateChatMessageRequest Details of the request to update the message.\n * @param options The options parameters.\n */\n updateChatMessage(\n chatThreadId: string,\n chatMessageId: string,\n updateChatMessageRequest: UpdateChatMessageRequest,\n options?: ChatThreadUpdateChatMessageOptionalParams,\n ): Promise<void>;\n /**\n * Deletes a message.\n * @param chatThreadId The thread id to which the message was sent.\n * @param chatMessageId The message id.\n * @param options The options parameters.\n */\n deleteChatMessage(\n chatThreadId: string,\n chatMessageId: string,\n options?: ChatThreadDeleteChatMessageOptionalParams,\n ): Promise<void>;\n /**\n * Gets the participants of a thread.\n * @param chatThreadId Thread id to get participants for.\n * @param options The options parameters.\n */\n listChatParticipants(\n chatThreadId: string,\n options?: ChatThreadListChatParticipantsOptionalParams,\n ): Promise<ChatThreadListChatParticipantsResponse>;\n /**\n * Remove a participant from a thread.\n * @param chatThreadId Thread id to remove the participant from.\n * @param participantCommunicationIdentifier Id of the thread participant to remove from the thread.\n * @param options The options parameters.\n */\n removeChatParticipant(\n chatThreadId: string,\n participantCommunicationIdentifier: CommunicationIdentifierModel,\n options?: ChatThreadRemoveChatParticipantOptionalParams,\n ): Promise<void>;\n /**\n * Adds thread participants to a thread. If participants already exist, no change occurs.\n * @param chatThreadId Id of the thread to add participants to.\n * @param addChatParticipantsRequest Thread participants to be added to the thread.\n * @param options The options parameters.\n */\n addChatParticipants(\n chatThreadId: string,\n addChatParticipantsRequest: AddChatParticipantsRequest,\n options?: ChatThreadAddChatParticipantsOptionalParams,\n ): Promise<ChatThreadAddChatParticipantsResponse>;\n /**\n * Updates a thread's properties.\n * @param chatThreadId The id of the thread to update.\n * @param updateChatThreadRequest Request payload for updating a chat thread.\n * @param options The options parameters.\n */\n updateChatThreadProperties(\n chatThreadId: string,\n updateChatThreadRequest: UpdateChatThreadRequest,\n options?: ChatThreadUpdateChatThreadPropertiesOptionalParams,\n ): Promise<void>;\n /**\n * Gets a chat thread's properties.\n * @param chatThreadId Id of the thread.\n * @param options The options parameters.\n */\n getChatThreadProperties(\n chatThreadId: string,\n options?: ChatThreadGetChatThreadPropertiesOptionalParams,\n ): Promise<ChatThreadGetChatThreadPropertiesResponse>;\n /**\n * Posts a typing event to a thread, on behalf of a user.\n * @param chatThreadId Id of the thread.\n * @param options The options parameters.\n */\n sendTypingNotification(\n chatThreadId: string,\n options?: ChatThreadSendTypingNotificationOptionalParams,\n ): Promise<void>;\n /**\n * ListChatReadReceiptsNext\n * @param chatThreadId Thread id to get the chat message read receipts for.\n * @param nextLink The nextLink from the previous successful call to the ListChatReadReceipts method.\n * @param options The options parameters.\n */\n listChatReadReceiptsNext(\n chatThreadId: string,\n nextLink: string,\n options?: ChatThreadListChatReadReceiptsNextOptionalParams,\n ): Promise<ChatThreadListChatReadReceiptsNextResponse>;\n /**\n * ListChatMessagesNext\n * @param chatThreadId The thread id of the message.\n * @param nextLink The nextLink from the previous successful call to the ListChatMessages method.\n * @param options The options parameters.\n */\n listChatMessagesNext(\n chatThreadId: string,\n nextLink: string,\n options?: ChatThreadListChatMessagesNextOptionalParams,\n ): Promise<ChatThreadListChatMessagesNextResponse>;\n /**\n * ListChatParticipantsNext\n * @param chatThreadId Thread id to get participants for.\n * @param nextLink The nextLink from the previous successful call to the ListChatParticipants method.\n * @param options The options parameters.\n */\n listChatParticipantsNext(\n chatThreadId: string,\n nextLink: string,\n options?: ChatThreadListChatParticipantsNextOptionalParams,\n ): Promise<ChatThreadListChatParticipantsNextResponse>;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./chatThread\";\nexport * from \"./chat\";\n"]}
|
package/dist-esm/src/index.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT license.
|
|
3
|
-
export * from "./models/options";
|
|
4
|
-
export * from "./models/requests";
|
|
5
|
-
export * from "./models/models";
|
|
6
|
-
export * from "./models/events";
|
|
7
|
-
export * from "./chatClient";
|
|
8
|
-
export * from "./chatThreadClient";
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport * from \"./models/options\";\nexport * from \"./models/requests\";\nexport * from \"./models/models\";\nexport * from \"./models/events\";\nexport * from \"./chatClient\";\nexport * from \"./chatThreadClient\";\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,OAAO,EAEL,kCAAkC,EAClC,gCAAgC,GACjC,MAAM,6BAA6B,CAAC;AAarC,MAAM,CAAC,MAAM,qCAAqC,GAAG,CACnD,OAAgC,EACc,EAAE;IAChD,MAAM,EAAE,YAAY,EAAE,gBAAgB,KAAc,OAAO,EAAhB,IAAI,UAAK,OAAO,EAArD,oCAA2C,CAAU,CAAC;IAC5D,uBACE,sBAAsB,EAAE,gBAAgB,IACrC,IAAI,EACP;AACJ,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAC3C,eAAgC,EACL,EAAE;IAC7B,MAAM,EAAE,EAAE,KAAc,eAAe,EAAxB,IAAI,UAAK,eAAe,EAAjC,MAAe,CAAkB,CAAC;IACxC,uCACK,IAAI,KACP,uBAAuB,EAAE,gCAAgC,CAAC,EAAE,CAAC,IAC7D;AACJ,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,wCAAwC,GAAG,CACtD,sBAA8C,EACR,EAAE;;IACxC,OAAO;QACL,YAAY,EAAE,MAAA,sBAAsB,CAAC,YAAY,0CAAE,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,CACrE,6BAA6B,CAAC,WAAW,CAAC,CAC3C;KACF,CAAC;AACJ,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAC1C,eAA0C,EACzB,EAAE;IACnB,MAAM,EAAE,uBAAuB,KAAc,eAAe,EAAxB,IAAI,UAAK,eAAe,EAAtD,2BAAoC,CAAkB,CAAC;IAC7D,uCACK,IAAI,KACP,EAAE,EAA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n SerializedCommunicationIdentifier,\n deserializeCommunicationIdentifier,\n serializeCommunicationIdentifier,\n} from \"@azure/communication-common\";\nimport * as RestModel from \"../generated/src/models\";\nimport { AddParticipantsRequest } from \"./requests\";\nimport { CreateChatThreadOptions } from \"./options\";\nimport {\n ChatMessage,\n ChatMessageContent,\n ChatMessageReadReceipt,\n ChatParticipant,\n ChatThreadProperties,\n CreateChatThreadResult,\n} from \"./models\";\n\nexport const mapToCreateChatThreadOptionsRestModel = (\n options: CreateChatThreadOptions,\n): RestModel.ChatCreateChatThreadOptionalParams => {\n const { participants, idempotencyToken, ...rest } = options;\n return {\n repeatabilityRequestId: idempotencyToken,\n ...rest,\n };\n};\n\n/**\n * @internal\n * Mapping chat participant customer model to chat participant REST model\n */\nexport const mapToChatParticipantRestModel = (\n chatParticipant: ChatParticipant,\n): RestModel.ChatParticipant => {\n const { id, ...rest } = chatParticipant;\n return {\n ...rest,\n communicationIdentifier: serializeCommunicationIdentifier(id),\n };\n};\n\n/**\n * @internal\n * Mapping add participants request to add chat participants request REST model\n */\nexport const mapToAddChatParticipantsRequestRestModel = (\n addParticipantsRequest: AddParticipantsRequest,\n): RestModel.AddChatParticipantsRequest => {\n return {\n participants: addParticipantsRequest.participants?.map((participant) =>\n mapToChatParticipantRestModel(participant),\n ),\n };\n};\n\n/**\n * @internal\n * Mapping chat participant REST model to chat participant SDK model\n */\nexport const mapToChatParticipantSdkModel = (\n chatParticipant: RestModel.ChatParticipant,\n): ChatParticipant => {\n const { communicationIdentifier, ...rest } = chatParticipant;\n return {\n ...rest,\n id: deserializeCommunicationIdentifier(\n communicationIdentifier as SerializedCommunicationIdentifier,\n ),\n };\n};\n\n/**\n * @internal\n */\nexport const mapToChatContentSdkModel = (\n content: RestModel.ChatMessageContent,\n): ChatMessageContent => {\n const { participants, initiatorCommunicationIdentifier, ...otherChatContents } = content;\n let result: ChatMessageContent = { ...otherChatContents };\n if (initiatorCommunicationIdentifier) {\n const initiator = deserializeCommunicationIdentifier(\n initiatorCommunicationIdentifier as SerializedCommunicationIdentifier,\n );\n result = { ...result, initiator };\n }\n if (participants) {\n result = {\n ...result,\n participants: participants?.map((participant) => mapToChatParticipantSdkModel(participant)),\n };\n }\n return result;\n};\n\n/**\n * @internal\n * Mapping chat message REST model to chat message SDK model\n */\nexport const mapToChatMessageSdkModel = (chatMessage: RestModel.ChatMessage): ChatMessage => {\n const { content, senderCommunicationIdentifier, ...otherChatMessage } = chatMessage;\n let result: ChatMessage = { ...otherChatMessage };\n if (content) {\n result = {\n ...result,\n content: mapToChatContentSdkModel(content),\n };\n }\n if (senderCommunicationIdentifier) {\n const sender = deserializeCommunicationIdentifier(\n senderCommunicationIdentifier as SerializedCommunicationIdentifier,\n );\n result = { ...result, sender };\n }\n return result;\n};\n\n/**\n * @internal\n * Mapping chat messages collection REST model to chat message SDK model array\n */\nexport const mapToChatMessagesSdkModelArray = (\n chatMessagesCollection: RestModel.ChatMessagesCollection,\n): ChatMessage[] => {\n return chatMessagesCollection.value?.map((chatMessage) => mapToChatMessageSdkModel(chatMessage));\n};\n\n/**\n * @internal\n * Mapping chat thread REST model to chat thread SDK model\n */\nexport const mapToChatThreadPropertiesSdkModel = (\n chatThread: RestModel.ChatThreadProperties,\n): ChatThreadProperties => {\n const { createdByCommunicationIdentifier, ...rest } = chatThread;\n if (createdByCommunicationIdentifier) {\n return {\n ...rest,\n createdBy: deserializeCommunicationIdentifier(\n createdByCommunicationIdentifier as SerializedCommunicationIdentifier,\n ),\n };\n } else {\n return { ...rest };\n }\n};\n\n/**\n * @internal\n * Mapping chat thread REST model to chat thread SDK model\n */\nexport const mapToCreateChatThreadResultSdkModel = (\n result: RestModel.CreateChatThreadResult,\n): CreateChatThreadResult => {\n const { chatThread, ...rest } = result;\n if (chatThread) {\n return {\n ...rest,\n chatThread: mapToChatThreadPropertiesSdkModel(chatThread),\n };\n } else {\n return { ...rest };\n }\n};\n\n/**\n * @internal\n * Mapping read receipt REST model to read receipt SDK model\n */\nexport const mapToReadReceiptSdkModel = (\n readReceipt: RestModel.ChatMessageReadReceipt,\n): ChatMessageReadReceipt => {\n const { senderCommunicationIdentifier, ...rest } = readReceipt;\n return {\n ...rest,\n sender: deserializeCommunicationIdentifier(\n senderCommunicationIdentifier as SerializedCommunicationIdentifier,\n ),\n };\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { CommunicationIdentifier, CommunicationIdentifierKind } from \"@azure/communication-common\";\nimport { ChatError, ChatMessageType } from \"../generated/src\";\n\nexport {\n AddChatParticipantsResult,\n ChatMessageType,\n ChatThreadItem,\n ChatError,\n SendChatMessageResult,\n} from \"../generated/src/models\";\n\n/** Chat thread. */\nexport interface ChatThreadProperties {\n /** Chat thread id. */\n id: string;\n /** Chat thread topic. */\n topic: string;\n /** The timestamp when the chat thread was created. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n createdOn: Date;\n /** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model must be interpreted as a union: Apart from rawId, at most one further property may be set. */\n readonly createdBy?: CommunicationIdentifierKind;\n /** The timestamp when the chat thread was deleted. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n deletedOn?: Date;\n}\n\n/** Chat message. */\nexport interface ChatMessage {\n /** The id of the chat message. This id is server generated. */\n id: string;\n /** The chat message type. */\n type: ChatMessageType;\n /** Sequence of the chat message in the conversation. */\n sequenceId: string;\n /** Version of the chat message. */\n version: string;\n /** Content of a chat message. */\n content?: ChatMessageContent;\n /** The display name of the chat message sender. This property is used to populate sender name for push notifications. */\n senderDisplayName?: string;\n /** The timestamp when the chat message arrived at the server. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n createdOn: Date;\n /** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model must be interpreted as a union: Apart from rawId, at most one further property may be set. */\n sender?: CommunicationIdentifierKind;\n /** The timestamp (if applicable) when the message was deleted. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n deletedOn?: Date;\n /** The last timestamp (if applicable) when the message was edited. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n editedOn?: Date;\n /** metadata */\n metadata?: Record<string, string>;\n}\n\n/** Content of a chat message. */\nexport interface ChatMessageContent {\n /** Chat message content for messages of types text or html. */\n message?: string;\n /** Chat message content for messages of type topicUpdated. */\n topic?: string;\n /** Chat message content for messages of types participantAdded or participantRemoved. */\n participants?: ChatParticipant[];\n /** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model must be interpreted as a union: Apart from rawId, at most one further property may be set. */\n initiator?: CommunicationIdentifierKind;\n /** List of attachments for this message */\n attachments?: ChatAttachment[];\n}\n\n/** A chat message read receipt indicates the time a chat message was read by a recipient. */\nexport interface ChatMessageReadReceipt {\n /** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model must be interpreted as a union: Apart from rawId, at most one further property may be set. */\n sender: CommunicationIdentifierKind;\n /** Id of the chat message that has been read. This id is generated by the server. */\n chatMessageId: string;\n /** The time at which the message was read. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n readOn: Date;\n}\n\n/** A participant of the chat thread. */\nexport interface ChatParticipant {\n /** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model must be interpreted as a union: Apart from rawId, at most one further property may be set. */\n id: CommunicationIdentifier;\n /** Display name for the chat participant. */\n displayName?: string;\n /** Time from which the chat history is shared with the participant. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n shareHistoryTime?: Date;\n}\n\n/** Result of the create chat thread operation. */\nexport interface CreateChatThreadResult {\n /** Chat thread. */\n chatThread?: ChatThreadProperties;\n /**\n * The participants that failed to be added to the chat thread.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly invalidParticipants?: ChatError[];\n}\n\n/**\n * Arguments for retrieving the next page of search results.\n */\nexport interface ListPageSettings {\n /**\n * A token used for retrieving the next page of results when the server\n * enforces pagination.\n */\n continuationToken?: string;\n}\n\n/** Defines values for AttachmentType. */\nexport type ChatAttachmentType = \"image\" | \"file\" | \"unknown\";\n\n/** An attachment in a chat message. */\nexport interface ChatAttachment {\n /** Id of the attachment */\n id: string;\n /** The type of attachment. */\n attachmentType: ChatAttachmentType;\n /** The name of the attachment content. */\n name?: string;\n /** The URL where the attachment can be downloaded */\n url?: string;\n /** The URL where the preview of attachment can be downloaded */\n previewUrl?: string;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/models/options.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\nimport { CommonClientOptions, OperationOptions } from \"@azure/core-client\";\nimport {\n ChatMessageType,\n ChatListChatThreadsOptionalParams as RestListChatThreadsOptions,\n ChatThreadListChatMessagesOptionalParams as RestListMessagesOptions,\n ChatThreadListChatParticipantsOptionalParams as RestListParticipantsOptions,\n ChatThreadListChatReadReceiptsOptionalParams as RestListReadReceiptsOptions,\n} from \"../generated/src/models\";\nimport { ChatParticipant } from \"./models\";\n\nexport {\n RestListMessagesOptions,\n RestListChatThreadsOptions,\n RestListParticipantsOptions,\n RestListReadReceiptsOptions,\n};\n\n/**\n * Options to create chat client.\n */\nexport interface ChatClientOptions extends CommonClientOptions {}\n\n/**\n * Options to create chat thread client.\n */\nexport interface ChatThreadClientOptions extends ChatClientOptions {}\n\n/**\n * Options to update a chat thread.\n */\nexport interface UpdateTopicOptions extends OperationOptions {}\n\n/**\n * Options to get chat threads.\n */\nexport type ListChatThreadsOptions = RestListChatThreadsOptions;\n\n/**\n * Options to send a chat message.\n */\nexport interface SendMessageOptions extends OperationOptions {\n /** The display name of the chat message sender. This property is used to populate sender name for push notifications. */\n senderDisplayName?: string;\n /** The chat message type. */\n type?: ChatMessageType;\n /** Message metadata. */\n metadata?: Record<string, string>;\n}\n\n/**\n * Options to update a chat message.\n */\nexport interface UpdateMessageOptions extends OperationOptions {\n /** Chat message content. */\n content?: string;\n /** Message metadata. */\n metadata?: Record<string, string>;\n}\n\n/**\n * Options to list chat messages.\n */\nexport type ListMessagesOptions = RestListMessagesOptions;\n\n/**\n * Options to create a chat thread.\n */\nexport interface CreateChatThreadOptions extends OperationOptions {\n /** Participants to be added to the chat thread. */\n participants?: ChatParticipant[];\n /** If specified, the client directs that the request is repeatable; that is, that the client can make the request multiple times with the same Idempotency-Token and get back an appropriate response without the server executing the request multiple times. The value of the Idempotency-Token is an opaque string representing a client-generated, globally unique for all time, identifier for the request. It is recommended to use version 4 (random) UUIDs. */\n idempotencyToken?: string;\n}\n\n/**\n * Options to get a chat thread.\n */\nexport type GetPropertiesOptions = OperationOptions;\n\n/**\n * Options to delete a chat thread.\n */\nexport type DeleteChatThreadOptions = OperationOptions;\n\n/**\n * Options to get a chat message.\n */\nexport type GetMessageOptions = OperationOptions;\n\n/**\n * Options to delete a chat message.\n */\nexport type DeleteMessageOptions = OperationOptions;\n\n/**\n * Options to add a chat participant.\n */\nexport type AddParticipantsOptions = OperationOptions;\n\n/**\n * Options to list chat participants.\n */\nexport type ListParticipantsOptions = RestListParticipantsOptions;\n\n/**\n * Options to remove a chat participant.\n */\nexport type RemoveParticipantOptions = OperationOptions;\n\n/**\n * Options to send typing notifications.\n */\nexport interface SendTypingNotificationOptions extends OperationOptions {\n /** The display name of the typing notification sender. This property is used to populate sender name for push notifications. */\n senderDisplayName?: string;\n}\n\n/**\n * Options to send read receipt.\n */\nexport type SendReadReceiptOptions = OperationOptions;\n\n/**\n * Options to list read receipts.\n */\nexport type ListReadReceiptsOptions = RestListReadReceiptsOptions;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"requests.js","sourceRoot":"","sources":["../../../src/models/requests.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { ChatParticipant } from \"./models\";\n\nexport { SendReadReceiptRequest } from \"../generated/src/models\";\n\n/** Participants to be added to the thread. */\nexport interface AddParticipantsRequest {\n /** Participants to add to a chat thread. */\n participants: ChatParticipant[];\n}\n\n/** Request payload for creating a chat thread. */\nexport interface CreateChatThreadRequest {\n /** The chat thread topic. */\n topic: string;\n}\n\n/** Details of the message to send. */\nexport interface SendMessageRequest {\n /** Chat message content. */\n content: string;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"uuid.js","sourceRoot":"","sources":["../../../src/models/uuid.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AAEpC;;;;;GAKG;AACH,MAAM,UAAU,YAAY;IAC1B,OAAO,MAAM,EAAE,CAAC;AAClB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { v4 as uuidv4 } from \"uuid\";\n\n/**\n * Generated Universally Unique Identifier\n *\n * @returns RFC4122 v4 UUID.\n * @internal\n */\nexport function generateUuid(): string {\n return uuidv4();\n}\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT license.
|
|
3
|
-
import { CommunicationSignalingClient } from "@azure/communication-signaling";
|
|
4
|
-
export const getSignalingClient = (credential, logger, options) => {
|
|
5
|
-
var _a, _b, _c;
|
|
6
|
-
return new CommunicationSignalingClient(credential, logger, {
|
|
7
|
-
environment: (_a = options === null || options === void 0 ? void 0 : options.environment) !== null && _a !== void 0 ? _a : undefined,
|
|
8
|
-
resourceEndpoint: (_b = options === null || options === void 0 ? void 0 : options.resourceEndpoint) !== null && _b !== void 0 ? _b : undefined,
|
|
9
|
-
gatewayApiVersion: (_c = options === null || options === void 0 ? void 0 : options.gatewayApiVersion) !== null && _c !== void 0 ? _c : undefined,
|
|
10
|
-
});
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=signalingClient.browser.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"signalingClient.browser.js","sourceRoot":"","sources":["../../../src/signaling/signalingClient.browser.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,4BAA4B,EAAmB,MAAM,gCAAgC,CAAC;AAK/F,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,UAAwC,EACxC,MAAmB,EACnB,OAAgC,EACH,EAAE;;IAC/B,OAAO,IAAI,4BAA4B,CAAC,UAAU,EAAE,MAAM,EAAE;QAC1D,WAAW,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,SAAS;QAC9C,gBAAgB,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,mCAAI,SAAS;QACxD,iBAAiB,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,iBAAiB,mCAAI,SAAS;KAC3D,CAAC,CAAC;AACL,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { CommunicationSignalingClient, SignalingClient } from \"@azure/communication-signaling\";\nimport { CommunicationTokenCredential } from \"@azure/communication-common\";\nimport { AzureLogger } from \"@azure/logger\";\nimport { SignalingClientOptions } from \"./signalingClient\";\n\nexport const getSignalingClient = (\n credential: CommunicationTokenCredential,\n logger: AzureLogger,\n options?: SignalingClientOptions,\n): SignalingClient | undefined => {\n return new CommunicationSignalingClient(credential, logger, {\n environment: options?.environment ?? undefined,\n resourceEndpoint: options?.resourceEndpoint ?? undefined,\n gatewayApiVersion: options?.gatewayApiVersion ?? undefined,\n });\n};\n"]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT license.
|
|
3
|
-
import { CommunicationSignalingClient } from "@azure/communication-signaling";
|
|
4
|
-
export const getSignalingClient = (credential, logger, options) => {
|
|
5
|
-
var _a, _b, _c;
|
|
6
|
-
if (typeof navigator !== "undefined" && navigator.product === "ReactNative") {
|
|
7
|
-
// In React Native
|
|
8
|
-
return new CommunicationSignalingClient(credential, logger, {
|
|
9
|
-
environment: (_a = options === null || options === void 0 ? void 0 : options.environment) !== null && _a !== void 0 ? _a : undefined,
|
|
10
|
-
resourceEndpoint: (_b = options === null || options === void 0 ? void 0 : options.resourceEndpoint) !== null && _b !== void 0 ? _b : undefined,
|
|
11
|
-
gatewayApiVersion: (_c = options === null || options === void 0 ? void 0 : options.gatewayApiVersion) !== null && _c !== void 0 ? _c : undefined,
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
// In node js
|
|
15
|
-
return undefined;
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=signalingClient.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"signalingClient.js","sourceRoot":"","sources":["../../../src/signaling/signalingClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,4BAA4B,EAAmB,MAAM,gCAAgC,CAAC;AAU/F,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,UAAwC,EACxC,MAAmB,EACnB,OAAgC,EACH,EAAE;;IAC/B,IAAI,OAAO,SAAS,KAAK,WAAW,IAAI,SAAS,CAAC,OAAO,KAAK,aAAa,EAAE,CAAC;QAC5E,kBAAkB;QAClB,OAAO,IAAI,4BAA4B,CAAC,UAAU,EAAE,MAAM,EAAE;YAC1D,WAAW,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,SAAS;YAC9C,gBAAgB,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,mCAAI,SAAS;YACxD,iBAAiB,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,iBAAiB,mCAAI,SAAS;SAC3D,CAAC,CAAC;IACL,CAAC;IAED,aAAa;IACb,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { CommunicationSignalingClient, SignalingClient } from \"@azure/communication-signaling\";\nimport { CommunicationTokenCredential } from \"@azure/communication-common\";\nimport { AzureLogger } from \"@azure/logger\";\n\nexport interface SignalingClientOptions {\n environment?: string;\n resourceEndpoint?: string;\n gatewayApiVersion?: string;\n}\n\nexport const getSignalingClient = (\n credential: CommunicationTokenCredential,\n logger: AzureLogger,\n options?: SignalingClientOptions,\n): SignalingClient | undefined => {\n if (typeof navigator !== \"undefined\" && navigator.product === \"ReactNative\") {\n // In React Native\n return new CommunicationSignalingClient(credential, logger, {\n environment: options?.environment ?? undefined,\n resourceEndpoint: options?.resourceEndpoint ?? undefined,\n gatewayApiVersion: options?.gatewayApiVersion ?? undefined,\n });\n }\n\n // In node js\n return undefined;\n};\n"]}
|