@microsoft/omnichannel-chat-sdk 1.9.5-main.fd99e0f → 1.9.6

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.
Files changed (207) hide show
  1. package/lib/OmnichannelChatSDK.d.ts +128 -114
  2. package/lib/OmnichannelChatSDK.js +2609 -2394
  3. package/lib/OmnichannelChatSDK.js.map +1 -1
  4. package/lib/api/createVoiceVideoCalling.d.ts +53 -53
  5. package/lib/api/createVoiceVideoCalling.js +462 -462
  6. package/lib/commands/throwUnsupportedLiveChatVersionFailureIfApplicable.d.ts +3 -0
  7. package/lib/commands/throwUnsupportedLiveChatVersionFailureIfApplicable.js +14 -0
  8. package/lib/commands/throwUnsupportedLiveChatVersionFailureIfApplicable.js.map +1 -0
  9. package/lib/config/ocSDKConfiguration.d.ts +7 -7
  10. package/lib/config/ocSDKConfiguration.js +9 -9
  11. package/lib/config/settings.d.ts +6 -6
  12. package/lib/config/settings.js +13 -13
  13. package/lib/core/AuthSettings.d.ts +5 -5
  14. package/lib/core/AuthSettings.js +2 -2
  15. package/lib/core/AxiosErrorCodes.d.ts +4 -4
  16. package/lib/core/AxiosErrorCodes.js +7 -7
  17. package/lib/core/CallingOptionsOptionSetNumber.d.ts +6 -6
  18. package/lib/core/CallingOptionsOptionSetNumber.js +9 -9
  19. package/lib/core/ChatConfig.d.ts +10 -10
  20. package/lib/core/ChatConfig.js +2 -2
  21. package/lib/core/ChatReconnectContext.d.ts +4 -4
  22. package/lib/core/ChatReconnectContext.js +2 -2
  23. package/lib/core/ChatReconnectOptionalParams.d.ts +3 -3
  24. package/lib/core/ChatReconnectOptionalParams.js +2 -2
  25. package/lib/core/ChatSDKConfig.d.ts +38 -38
  26. package/lib/core/ChatSDKConfig.js +2 -2
  27. package/lib/core/ChatSDKError.d.ts +64 -63
  28. package/lib/core/ChatSDKError.js +73 -72
  29. package/lib/core/ChatSDKError.js.map +1 -1
  30. package/lib/core/ChatSDKExceptionDetails.d.ts +13 -13
  31. package/lib/core/ChatSDKExceptionDetails.js +2 -2
  32. package/lib/core/ChatTranscriptBody.d.ts +5 -5
  33. package/lib/core/ChatTranscriptBody.js +2 -2
  34. package/lib/core/ConversationMode.d.ts +5 -5
  35. package/lib/core/ConversationMode.js +8 -8
  36. package/lib/core/EmailLiveChatTranscriptOptionalParams.d.ts +4 -4
  37. package/lib/core/EmailLiveChatTranscriptOptionalParams.js +2 -2
  38. package/lib/core/GetAgentAvailabilityOptionalParams.d.ts +13 -13
  39. package/lib/core/GetAgentAvailabilityOptionalParams.js +2 -2
  40. package/lib/core/GetChatTokenOptionalParams.d.ts +3 -3
  41. package/lib/core/GetChatTokenOptionalParams.js +2 -2
  42. package/lib/core/GetConversationDetailsOptionalParams.d.ts +4 -4
  43. package/lib/core/GetConversationDetailsOptionalParams.js +2 -2
  44. package/lib/core/GetLiveChatConfigOptionalParams.d.ts +5 -5
  45. package/lib/core/GetLiveChatConfigOptionalParams.js +2 -2
  46. package/lib/core/GetLiveChatTranscriptOptionalParams.d.ts +4 -4
  47. package/lib/core/GetLiveChatTranscriptOptionalParams.js +2 -2
  48. package/lib/core/InitializeOptionalParams.d.ts +6 -5
  49. package/lib/core/InitializeOptionalParams.js +2 -2
  50. package/lib/core/LiveChatContext.d.ts +14 -14
  51. package/lib/core/LiveChatContext.js +2 -2
  52. package/lib/core/LiveChatVersion.d.ts +5 -5
  53. package/lib/core/LiveChatVersion.js +8 -8
  54. package/lib/core/LiveWorkItemDetails.d.ts +8 -8
  55. package/lib/core/LiveWorkItemDetails.js +2 -2
  56. package/lib/core/LiveWorkItemState.d.ts +8 -8
  57. package/lib/core/LiveWorkItemState.js +11 -11
  58. package/lib/core/OmnichannelConfig.d.ts +5 -5
  59. package/lib/core/OmnichannelConfig.js +2 -2
  60. package/lib/core/OmnichannelErrorCodes.d.ts +4 -4
  61. package/lib/core/OmnichannelErrorCodes.js +7 -7
  62. package/lib/core/PostChatContext.d.ts +8 -8
  63. package/lib/core/PostChatContext.js +2 -2
  64. package/lib/core/SetAuthTokenProviderOptionalParams.d.ts +3 -3
  65. package/lib/core/SetAuthTokenProviderOptionalParams.js +2 -2
  66. package/lib/core/StartChatOptionalParams.d.ts +18 -18
  67. package/lib/core/StartChatOptionalParams.js +2 -2
  68. package/lib/core/messaging/ACSChatMessageType.d.ts +7 -7
  69. package/lib/core/messaging/ACSChatMessageType.js +10 -10
  70. package/lib/core/messaging/ACSClient.d.ts +45 -45
  71. package/lib/core/messaging/ACSClient.js +612 -612
  72. package/lib/core/messaging/ACSClientConfig.d.ts +5 -5
  73. package/lib/core/messaging/ACSClientConfig.js +2 -2
  74. package/lib/core/messaging/ACSParticipantDisplayName.d.ts +6 -6
  75. package/lib/core/messaging/ACSParticipantDisplayName.js +9 -9
  76. package/lib/core/messaging/ACSSessionInfo.d.ts +5 -5
  77. package/lib/core/messaging/ACSSessionInfo.js +2 -2
  78. package/lib/core/messaging/ChatAdapterConfig.d.ts +8 -8
  79. package/lib/core/messaging/ChatAdapterConfig.js +2 -2
  80. package/lib/core/messaging/ChatAdapterOptionalParams.d.ts +24 -24
  81. package/lib/core/messaging/ChatAdapterOptionalParams.js +2 -2
  82. package/lib/core/messaging/ChatAdapterProtocols.d.ts +6 -6
  83. package/lib/core/messaging/ChatAdapterProtocols.js +10 -10
  84. package/lib/core/messaging/ChatSDKMessage.d.ts +6 -6
  85. package/lib/core/messaging/ChatSDKMessage.js +2 -2
  86. package/lib/core/messaging/IC3Config.d.ts +4 -4
  87. package/lib/core/messaging/IC3Config.js +2 -2
  88. package/lib/core/messaging/MessageTags.d.ts +3 -3
  89. package/lib/core/messaging/MessageTags.js +6 -6
  90. package/lib/core/messaging/OmnichannelMessage.d.ts +64 -64
  91. package/lib/core/messaging/OmnichannelMessage.js +51 -51
  92. package/lib/core/messaging/OnNewMessageOptionalParams.d.ts +3 -3
  93. package/lib/core/messaging/OnNewMessageOptionalParams.js +2 -2
  94. package/lib/external/ACSAdapter/AMSFileManager.d.ts +76 -76
  95. package/lib/external/ACSAdapter/AMSFileManager.js +394 -394
  96. package/lib/external/ACSAdapter/AMSFileScanner.d.ts +36 -36
  97. package/lib/external/ACSAdapter/AMSFileScanner.js +275 -275
  98. package/lib/external/ACSAdapter/activityUtils.d.ts +9 -9
  99. package/lib/external/ACSAdapter/activityUtils.js +79 -79
  100. package/lib/external/ACSAdapter/createChannelDataEgressMiddleware.d.ts +5 -5
  101. package/lib/external/ACSAdapter/createChannelDataEgressMiddleware.js +33 -33
  102. package/lib/external/ACSAdapter/createFileScanIngressMiddleware.d.ts +2 -2
  103. package/lib/external/ACSAdapter/createFileScanIngressMiddleware.js +95 -95
  104. package/lib/external/ACSAdapter/createFormatEgressTagsMiddleware.d.ts +2 -2
  105. package/lib/external/ACSAdapter/createFormatEgressTagsMiddleware.js +30 -30
  106. package/lib/external/ACSAdapter/createFormatIngressTagsMiddleware.d.ts +2 -2
  107. package/lib/external/ACSAdapter/createFormatIngressTagsMiddleware.js +24 -24
  108. package/lib/external/CallingSDK/ICallingSDKLogData.d.ts +7 -7
  109. package/lib/external/CallingSDK/ICallingSDKLogData.js +2 -2
  110. package/lib/external/IC3Adapter/IChatToken.d.ts +11 -11
  111. package/lib/external/IC3Adapter/IChatToken.js +3 -3
  112. package/lib/external/IC3Adapter/IIC3AdapterOptions.d.ts +22 -22
  113. package/lib/external/IC3Adapter/IIC3AdapterOptions.js +2 -2
  114. package/lib/external/IC3Adapter/INotification.d.ts +6 -6
  115. package/lib/external/IC3Adapter/INotification.js +2 -2
  116. package/lib/external/IC3Adapter/Notification.d.ts +7 -7
  117. package/lib/external/IC3Adapter/Notification.js +14 -14
  118. package/lib/external/IC3Client/IIC3SDKLogData.d.ts +9 -9
  119. package/lib/external/IC3Client/IIC3SDKLogData.js +2 -2
  120. package/lib/external/OCSDK/IOCSDKLogData.d.ts +14 -14
  121. package/lib/external/OCSDK/IOCSDKLogData.js +2 -2
  122. package/lib/index.d.ts +25 -25
  123. package/lib/index.js +34 -34
  124. package/lib/telemetry/AriaTelemetry.d.ts +40 -40
  125. package/lib/telemetry/AriaTelemetry.js +539 -539
  126. package/lib/telemetry/EUDomainNames.d.ts +2 -2
  127. package/lib/telemetry/EUDomainNames.js +16 -16
  128. package/lib/telemetry/EventMarker.d.ts +3 -3
  129. package/lib/telemetry/EventMarker.js +12 -12
  130. package/lib/telemetry/GCCDomainPatterns.d.ts +2 -2
  131. package/lib/telemetry/GCCDomainPatterns.js +7 -7
  132. package/lib/telemetry/LogLevel.d.ts +8 -8
  133. package/lib/telemetry/LogLevel.js +11 -11
  134. package/lib/telemetry/ScenarioMarker.d.ts +21 -21
  135. package/lib/telemetry/ScenarioMarker.js +82 -82
  136. package/lib/telemetry/ScenarioType.d.ts +11 -11
  137. package/lib/telemetry/ScenarioType.js +14 -14
  138. package/lib/telemetry/StopWatch.d.ts +6 -6
  139. package/lib/telemetry/StopWatch.js +14 -14
  140. package/lib/telemetry/TelemetryEvent.d.ts +46 -42
  141. package/lib/telemetry/TelemetryEvent.js +49 -45
  142. package/lib/telemetry/TelemetryEvent.js.map +1 -1
  143. package/lib/telemetry/retrieveCollectorUri.d.ts +2 -2
  144. package/lib/telemetry/retrieveCollectorUri.js +25 -25
  145. package/lib/tsconfig.tsbuildinfo +1977 -1912
  146. package/lib/utils/AMSClientLoadStates.d.ts +6 -0
  147. package/lib/utils/AMSClientLoadStates.js +12 -0
  148. package/lib/utils/AMSClientLoadStates.js.map +1 -0
  149. package/lib/utils/CoreServicesUtils.d.ts +7 -7
  150. package/lib/utils/CoreServicesUtils.js +39 -39
  151. package/lib/utils/CoreServicesUtils.js.map +1 -1
  152. package/lib/utils/WebUtils.d.ts +10 -10
  153. package/lib/utils/WebUtils.js +128 -128
  154. package/lib/utils/chatAdapterCreators.d.ts +20 -20
  155. package/lib/utils/chatAdapterCreators.js +208 -208
  156. package/lib/utils/createOcSDKConfiguration.d.ts +4 -4
  157. package/lib/utils/createOcSDKConfiguration.js +22 -22
  158. package/lib/utils/createOmnichannelMessage.d.ts +11 -11
  159. package/lib/utils/createOmnichannelMessage.js +77 -77
  160. package/lib/utils/createTelemetry.d.ts +3 -3
  161. package/lib/utils/createTelemetry.js +9 -9
  162. package/lib/utils/exceptionSuppressors.d.ts +29 -29
  163. package/lib/utils/exceptionSuppressors.js +49 -49
  164. package/lib/utils/exceptionThrowers.d.ts +119 -119
  165. package/lib/utils/exceptionThrowers.js +137 -137
  166. package/lib/utils/fillMobilePlatformData.d.ts +2 -0
  167. package/lib/utils/fillMobilePlatformData.js +44 -0
  168. package/lib/utils/fillMobilePlatformData.js.map +1 -0
  169. package/lib/utils/fillPlatformData.browser.d.ts +2 -0
  170. package/lib/utils/fillPlatformData.browser.js +8 -0
  171. package/lib/utils/fillPlatformData.browser.js.map +1 -0
  172. package/lib/utils/fillPlatformData.d.ts +2 -0
  173. package/lib/utils/fillPlatformData.js +8 -0
  174. package/lib/utils/fillPlatformData.js.map +1 -0
  175. package/lib/utils/fillWebPlatformData.d.ts +2 -0
  176. package/lib/utils/fillWebPlatformData.js +21 -0
  177. package/lib/utils/fillWebPlatformData.js.map +1 -0
  178. package/lib/utils/internalUtils.d.ts +4 -4
  179. package/lib/utils/internalUtils.js +16 -16
  180. package/lib/utils/libraries.d.ts +12 -12
  181. package/lib/utils/libraries.js +34 -34
  182. package/lib/utils/locale.d.ts +4 -4
  183. package/lib/utils/locale.js +60 -60
  184. package/lib/utils/location.d.ts +7 -7
  185. package/lib/utils/location.js +95 -95
  186. package/lib/utils/loggerUtils.d.ts +15 -15
  187. package/lib/utils/loggerUtils.js +55 -55
  188. package/lib/utils/loggers.d.ts +111 -111
  189. package/lib/utils/loggers.js +501 -501
  190. package/lib/utils/parsers.d.ts +6 -6
  191. package/lib/utils/parsers.js +10 -10
  192. package/lib/utils/platform.d.ts +9 -9
  193. package/lib/utils/platform.js +11 -11
  194. package/lib/utils/setOcUserAgent.d.ts +2 -2
  195. package/lib/utils/setOcUserAgent.js +21 -21
  196. package/lib/utils/sleep.d.ts +2 -2
  197. package/lib/utils/sleep.js +4 -4
  198. package/lib/utils/urlResolvers.d.ts +10 -10
  199. package/lib/utils/urlResolvers.js +64 -64
  200. package/lib/utils/utilities.d.ts +5 -5
  201. package/lib/utils/utilities.js +36 -36
  202. package/lib/validators/OmnichannelConfigValidator.d.ts +3 -3
  203. package/lib/validators/OmnichannelConfigValidator.js +28 -28
  204. package/lib/validators/SDKConfigValidators.d.ts +5 -5
  205. package/lib/validators/SDKConfigValidators.js +48 -48
  206. package/package.json +2 -2
  207. package/CHANGELOG.md +0 -432
package/CHANGELOG.md DELETED
@@ -1,432 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- ## [Unreleased]
6
-
7
- ## [1.9.4]
8
-
9
- ### Security
10
- - Uptake [@microsoft/ocsdk@0.5.5](https://www.npmjs.com/package/@microsoft/ocsdk/v/0.5.5)
11
- - Uptake [@microsoft/omnichannel-ic3core@0.1.4](https://www.npmjs.com/package/@microsoft/omnichannel-ic3core/v/0.1.4)
12
-
13
-
14
- ## [1.9.3] - 2024-07-12
15
-
16
- ### Added
17
- - Add `crm9` as part of `CoreServicesGeoNamesMapping`
18
-
19
- ### Changed
20
-
21
- - Log `error` object on failures on sending message and send typing
22
- - Update `retrieveCollectorUri()` to detect `GCCDomainPatterns` to return `GCCCollectorUri`
23
-
24
- ## [1.9.2] - 2024-06-25
25
-
26
- ### Fixed
27
-
28
- - Remove internal overrides of the original message contracts to add `content` property with `Object.assign()` causing side effects on ChatAdapter
29
-
30
- ## [1.9.1] - 2024-06-20
31
-
32
- ### Changed
33
-
34
- - Uptake [@microsoft/ocsdk@0.5.3](https://www.npmjs.com/package/@microsoft/ocsdk/v/0.5.3)
35
-
36
- ## [1.9.0] - 2024-05-22
37
-
38
- ### Added
39
-
40
- - Enable the ability to use `CoreServices` orgUrl dynamically at runtime
41
-
42
- ### Changed
43
-
44
- - Uptake [@microsoft/ocsdk@0.5.2](https://www.npmjs.com/package/@microsoft/ocsdk/v/0.5.2)
45
-
46
- ## [1.8.3] - 2024-05-15
47
-
48
- ### Added
49
- - Add `RequestHeaders` telemetry base property to `OCSDKContract`
50
- - Add ability to send `ocUserAgent`
51
-
52
- ### Changed
53
-
54
- - Uptake [@microsoft/ocsdk@0.5.1](https://www.npmjs.com/package/@microsoft/ocsdk/v/0.5.1)
55
-
56
- ## [1.8.2] - 2024-05-07
57
-
58
- ### Fixed
59
-
60
- - Fix path for util function uuidv4 that was causing conflicts with pipeline
61
-
62
- ## [1.8.1] - 2024-04-24
63
-
64
- ### Added
65
-
66
- - Adding new externalRuntimeId, allows to pass external runtimeId to ChatSDK and keep in sync sessions for telemetry.
67
- - Add ability to use `CoreServices` orgUrl dynamically at runtime
68
-
69
- ## [1.8.0] - 2024-03-29
70
-
71
- ### Changed
72
-
73
- - Updated `OCClient.getSurveyInviteLink` request payload to support Copilot Survey
74
-
75
- ## [1.7.2] - 2024-03-20
76
-
77
- ### Fixed
78
-
79
- - Remove override block for follow-redirect, which was causing conflicts with ACS libs in LCW
80
-
81
- ## [1.7.1] - 2024-03-18
82
-
83
- ### Changed
84
-
85
- - Fix ChatSDK.getPostConversationContext() to reject promise when conversation is not found
86
-
87
- ## [1.7.0] - 2024-03-07
88
-
89
- ### Added
90
-
91
- - Add ability to use `ChatSDK.emailLiveChatTranscript()` to email live chat transcript from `liveChatContext`
92
- - Handling the lifecycle of `sessionId` if it exists
93
-
94
- ### Changed
95
-
96
- - Throw exception when `ChatSDK.startChat()` fails with `ChatSDKConfig.getAuthToken()` failures
97
- - Uptake [@microsoft/ocsdk@0.4.3](https://www.npmjs.com/package/@microsoft/ocsdk/v/0.4.3)
98
-
99
- ## [1.6.3] - 2024-01-30
100
-
101
- ### Changed
102
-
103
- - Reduce number of `config` calls on loading `Escalation to Voice & Video` library by retrieving the config from runtime cache
104
-
105
- ## [1.6.2] - 2023-12-12
106
-
107
- ### Fixed
108
-
109
- - Add `supportedImagesMimeTypes` to support `MIME` types `image/heic` & `image/webp` as images
110
-
111
- ## [1.6.1] - 2023-12-07
112
-
113
- ### Added
114
-
115
- - Exported `ChatSDKErrorName` and `ChatSDKError` for downstream component to use
116
-
117
- ### Fixed
118
-
119
- - Subscribe to `chatMessageEdited` events within `onNewMessage()` for queue position message updates
120
-
121
- ### Changed
122
-
123
- - Uptake [@microsoft/ocsdk@0.4.2](https://www.npmjs.com/package/@microsoft/ocsdk/v/0.4.2)
124
-
125
- ## [1.6.0] - 2023-12-04
126
-
127
- ### Changed
128
-
129
- - Added "httpResponseStatusCode" attribute in the error object thrown
130
-
131
- ## [1.5.7] - 2023-11-20
132
-
133
- ### Changed
134
-
135
- - Uptake [@microsoft/omnichannel-amsclient@0.1.6](https://www.npmjs.com/package/@microsoft/omnichannel-amsclient/v/0.1.6)
136
-
137
- ## [1.5.6] - 2023-11-13
138
-
139
- ### Added
140
-
141
- - Add `RequestPayload`, `RequestPath`, `RequestMethod`, `ResponseStatusCode` telemetry base property to `OCSDKContract`
142
- - Update Jest configuration and tests to support new libraries
143
-
144
- ### Security
145
-
146
- - Uptake [@microsoft/omnichannel-ic3core@0.1.3](https://www.npmjs.com/package/@microsoft/omnichannel-ic3core/v/0.1.3)
147
- - Uptake [@microsoft/ocsdk@0.4.1](https://www.npmjs.com/package/@microsoft/ocsdk/v/0.4.1)
148
-
149
- ### Changed
150
-
151
- - Use `parseLowerCaseString()` on chat config properties to protect text case change
152
-
153
- ## [1.5.5] - 2023-10-31
154
-
155
- ### Added
156
-
157
- - Add ability to pass custom `ariaCollectorUri`
158
-
159
- ### Fixed
160
-
161
- - Add missing `PACS` URL for `EUDomainNames`
162
- - Fixed an issue where startChat failed due to optionalParam being null
163
-
164
- ## [1.5.4] - 2023-10-20
165
-
166
- ### Fixed
167
-
168
- - Fix `AriaTelemetry._configuration` not being passed to `AriaTelemetry._logger`
169
-
170
- ## [1.5.3] - 2023-10-18
171
-
172
- ### Fixed
173
-
174
- - Fix `ChatSDK.emailLiveChatTranscript()` calling `OCClient.emailTranscript()` without waiting until its completion
175
- - Fix `EU` orgs telemetry to flow to the proper `EU` location
176
-
177
- ## [1.5.2] - 2023-10-14
178
-
179
- ### Changed
180
-
181
- - Disable `tokenRefresher` temporarily
182
-
183
- ## [1.5.1] - 2023-10-11
184
-
185
- ### Fixed
186
-
187
- - Modify `getChatReconnectContext` to return redirection URL when reconnection ID is not longer Valid for Auth Chats.
188
-
189
- ## [1.5.0] - 2023-09-29
190
-
191
- ### Added
192
-
193
- - Add `Attachment File Scan` to `ChatSDK.createChatAdapter()`
194
-
195
- ## [1.4.7] - 2023-09-13
196
-
197
- ### Changed
198
-
199
- - Supporting getAgentAvailable SDK method for unauthenticated chat widget
200
-
201
- ## [1.4.6] - 2023-08-15
202
-
203
- ### Fixed
204
-
205
- - Fix `tokenRefresher` to update `chatToken` properly on expiry through reinitialization of AMSClient
206
-
207
- ## [1.4.5] - 2023-08-02
208
-
209
- ### Changed
210
-
211
- - Upgraded ACSAdapter to version beta.20
212
-
213
- ## [1.4.4] - 2023-07-19
214
-
215
- ### Added
216
-
217
- - Add `tokenRefresher` mechanism to retrieve chat token on expiry
218
-
219
- ### Changed
220
-
221
- - Add `ocSDKConfiguration` to reduce `chatToken` retries to 2
222
- - Uptake [@microsoft/ocsdk@0.4.0](https://www.npmjs.com/package/@microsoft/ocsdk/v/0.4.0)
223
- - Remove redundant call to create of `participantsMapping`
224
-
225
- ### Fixed
226
-
227
- - Set `enableSenderDisplayNameInTypingNotification` to true to include display name on sending typing notification
228
- - Add `async` to `ChatSDK.getLiveChatTranscript()` internal call
229
-
230
- ## [1.4.3] - 2023-06-15
231
-
232
- ### Fixed
233
-
234
- - [Perf] Make sessionInit, AcsClientInit/Ic3ClientInit and AmsClientInit calls in parallel
235
-
236
- ## [1.4.2] - 2023-05-19
237
-
238
- ### Fixed
239
-
240
- - Fixed null check on startChat failure
241
-
242
- ## [1.4.1] - 2023-05-05
243
-
244
- ### Fixed
245
-
246
- - Skipped empty string or null context variables (parity with v1)
247
-
248
- ## [1.4.0] - 2023-05-02
249
-
250
- ### Added
251
-
252
- - Add ability to use `ChatSDK.getLiveChatTranscript()` to fetch live chat transcript from `liveChatContext`
253
- - Add ability to use `ChatSDK.getConversationDetails()` to fetch conversation details from `liveChatContext`
254
- - Add `AuthContactIdNotFoundFailure` to `ExceptionThrower`
255
-
256
- ### Changed
257
-
258
- - Update `ChatSDKErrors` to include standard ChatSDK errors to be more predictable
259
-
260
- ## [1.3.0] - 2023-04-05
261
-
262
- ### Added
263
-
264
- - Add ability to use `ChatSDK.createChatAdapter()` for `DirectLine` protocol
265
- - Add `CreateACSAdapter` telemetry event
266
- - Improve `ChatSDK.createChatAdapter()` with retries using exponential backoff & additional details on failures
267
- - Add `GetAgentAvailability` SDK method for auth chat
268
- - Pass `logger` to AMSClient
269
- - Add `portalContactId` in `StartChatOptionalParams` and `GetAgentAvailabilityOptionalParams`
270
- - Added exception on initialization failure
271
- - Upgraded ACSAdapter to version beta.17
272
- - Added `botSurveyInviteLink` and `botFormsProLocale` the `getPostChatSurveyContext()` response
273
-
274
- ### Fixed
275
-
276
- - Fix `ChatAdapterOptionalParams.ACSAdapter.options.egressMiddleware` being used as `ingressMiddleware`
277
- - Fix `ChatSDK.onTypingEvent()` being triggered on current user typing
278
- - Update `ChatSDK.liveChatVersion` to be `V2` by default
279
-
280
- ### Changed
281
-
282
- - Uptake [@microsoft/omnichannel-amsclient@0.1.4](https://www.npmjs.com/package/@microsoft/omnichannel-amsclient/v/0.1.4)
283
- - Uptake [acs_webchat-chat-adapter@0.0.35-beta.17](https://unpkg.com/acs_webchat-chat-adapter@0.0.35-beta.17/dist/chat-adapter.js)
284
- - Uptake [@microsoft/ocsdk@0.3.4](https://www.npmjs.com/package/@microsoft/ocsdk/v/0.3.4)
285
-
286
- ## [1.2.0] - 2022-11-11
287
-
288
- ### Added
289
-
290
- - Add `sendDefaultInitContext` optional parameter to `ChatSDK.startChat()` to automatically populate `browser`, `device`, `originurl` & `os` as default init context on web
291
- - Add `sendCacheHeaders` as optional paramater to `ChatSDK.initialize()` and `ChatSDK.getLiveChatConfig()`
292
- - Add `validateAuthChatRecord` call on `ChatSDK.startChat()` with `liveChatContext` for all authenticated chat scenarios
293
- - Pass `ChatClient` during `ACSAdapter` initialization
294
- - Pass `multiClient` to `AMSClient` on initialization to support `ChatSDK` multi-client
295
-
296
- ### Fixed
297
-
298
- - Prevent `AMSFileManager.getFileIds()` & `AMSFileManager.getFileMetadata()` to be triggered on all activities with null checks
299
- - Add `LiveChatVersion` check on `ChatSDK.updateChatToken()`
300
- - Use `amsreferences` property instead of `amsReferences` by default
301
- - Fix attachment download to use MIME types instead of file extensions
302
- - Remove `fileMetadata` property on messages not containing any attachment
303
-
304
- ### Changed
305
-
306
- - Uptake [@microsoft/ocsdk@0.3.1](https://www.npmjs.com/package/@microsoft/ocsdk/v/0.3.1)
307
- - Uptake [acs_webchat-chat-adapter@0.0.35-beta.8](https://unpkg.com/acs_webchat-chat-adapter@0.0.35-beta.8/dist/chat-adapter.js)
308
- - Uptake [acs_webchat-chat-adapter@0.0.35-beta.9](https://unpkg.com/acs_webchat-chat-adapter@0.0.35-beta.9/dist/chat-adapter.js)
309
- - Uptake [acs_webchat-chat-adapter@0.0.35-beta.12](https://unpkg.com/acs_webchat-chat-adapter@0.0.35-beta.12/dist/chat-adapter.js)
310
- - Uptake [@microsoft/omnichannel-amsclient@0.1.2](https://www.npmjs.com/package/@microsoft/omnichannel-amsclient/v/0.1.2)
311
- - Uptake [@microsoft/ocsdk@0.3.2](https://www.npmjs.com/package/@microsoft/ocsdk/v/0.3.2)
312
-
313
- ## [1.1.0] - 2022-04-15
314
-
315
- ### Added
316
-
317
- - Add `getPostChatSurveyContext` API method
318
- - Add `GetPostChatSurveyContext` telemetry event
319
- - Add `widgetId` & `clientMessageId` as metadata on sending message
320
- - Update `ChatConfig` interface with `LiveChatVersion`, `allowedFileExtensions` & `maxUploadFileSize` properties
321
- - Add ability to automatically detect locale from chat config
322
- - Add `runtimeId` attribute in `OmnichannelChatSDK` & `ChatSDKRuntimeId` field in telemetry
323
- - Add ability to automatically pass locale from chat config on calling `ChatSDK.emailLiveChatTranscript()`
324
- - Bubble up `WidgetUseOutsideOperatingHour` exception
325
- - Add `acs_webchat-chat-adapter` middleware to add default `channelData.tags` & `channelData.metadata`
326
- - Update `ChatConfig` interface with `msdyn_enablemarkdown` property
327
- - Throw exception on `ChatSDK.getVoiceVideoCalling()` if feature is disabled or platform is not supported
328
- - Add `participantType` & `canRenderPostChat` as response of getConversationDetails() API
329
- - Add support for separate bot post chat survey feature
330
- - Pass `logger` to `acs_webchat-chat-adapter`
331
-
332
- ### Fixed
333
-
334
- - Add `acs_webchat-chat-adapter` middlewares to format `channelData.tags`
335
- - Skip `session init` call on existing conversation
336
- - Fix `chat reconnect` not ending the conversation on calling `ChatSDK.endChat()`
337
- - Fix on messaging client not sending heartbeat on new conversations subsequent to the first conversation
338
- - Fix `ChatSDK.getConversationDetails()` not passing `authenticatedUserToken`
339
- - Fix `IC3Client.dispose()` called when `IC3Client` is `undefined`
340
-
341
- ### Changed
342
-
343
- - README: added examples on usages of the post chat APIs.
344
- - Uptake [@azure/communication-chat@1.1.1](https://www.npmjs.com/package/@azure/communication-chat/v/1.1.1)
345
- - Uptake [acs_webchat-chat-adapter@0.0.35-beta.2](https://unpkg.com/acs_webchat-chat-adapter@0.0.35-beta.2/dist/chat-adapter.js)
346
- - Update `locale` property in `ChatTranscriptBody` interface to be optional
347
- - Uptake [acs_webchat-chat-adapter@0.0.35-beta.4](https://unpkg.com/acs_webchat-chat-adapter@0.0.35-beta.4/dist/chat-adapter.js)
348
-
349
- ## [1.0.0] - 2021-10-08
350
-
351
- ### Added
352
-
353
- - Add `GetAuthToken` & `GetPreChatSurvey` telemetry events
354
- - Add `Domain` telemetry base property
355
- - Add `GetCurrentLiveChatContext`, `GetMessages`, `SendMessages`, `OnNewMessage` & `OnTypingEvent` telemetry events
356
- - Live Chat V2 Support
357
- - Add `PlatformDetails` telemetry event
358
-
359
- ### Changed
360
-
361
- - Uptake [@microsoft/ocsdk@0.3.0](https://www.npmjs.com/package/@microsoft/ocsdk/v/0.3.0)
362
- - Uptake [@microsoft/omnichannel-ic3core@0.1.2](https://www.npmjs.com/package/@microsoft/omnichannel-ic3core/v/0.1.2)
363
-
364
- ### Fixed
365
-
366
- - `onNewMessage` with `rehydrate` flag set to `true` crashing when `getMessages` returns `undefined`
367
- - Fix `AriaTelemetry` unable to read property `logEvent` of undefined on `React Native`
368
- - Fix `Escalation to Voice & Video` library not being imported properly
369
-
370
- ## [0.3.0] - 2021-09-03
371
-
372
- ### Added
373
-
374
- - Persistent Chat Support
375
- - Chat Reconnect Support
376
- - Operating Hours Documentation
377
-
378
- ### Changed
379
-
380
- - Uptake [@microsoft/ocsdk@0.2.0](https://www.npmjs.com/package/@microsoft/ocsdk/v/0.2.0)
381
- - Add `getCallingToken`
382
- - Send `ChannelId-lcw` message tag
383
- - Uptake [IC3Client@2021.08.14.1](https://comms.omnichannelengagementhub.com/release/2021.08.14.1/Scripts/SDK/SDK.min.js)
384
- - Uptake [botframework-webchat-adapter-ic3@0.1.0-master.2dba07b](https://www.npmjs.com/package/botframework-webchat-adapter-ic3/v/0.1.0-master.2dba07b)
385
- - Uptake [jest@27.1.0](https://www.npmjs.com/package/jest/v/27.1.0)
386
- - Update [@types/jest@27.0.1](https://www.npmjs.com/package/@types/jest/v/27.0.1)
387
- - Uptake [ts-jest@27.0.5](https://www.npmjs.com/package/ts-jest/v/27.0.5)
388
-
389
- ### Fixed
390
-
391
- - `msdyn_enablechatreconnect` not being parsed properly
392
- - Fix unable to start multiple conversations with same instance due to chat client being disposed
393
- - Pass logger to adapter
394
-
395
- ## [0.2.0] - 2021-04-30
396
-
397
- ### Added
398
-
399
- - React Native sample app using Omnichannel Chat SDK with [react-native-gifted-chat](https://github.com/FaridSafi/react-native-gifted-chat)
400
- - Escalation to Voice & Video support (Web Only)
401
- - React sample app using Omnichannel Chat SDK with [BotFramework-WebChat](https://github.com/microsoft/BotFramework-WebChat)
402
- - Expose `sessiontInit`'s `initContext` on `startChat`'s optional paramaters
403
- - Add ability to use custom `ic3Config` & `chatAdapterConfig`
404
- - Add telemetry
405
- - Add `rehydrate` flag for `onNewMessage` to rehydrate all messages of existing conversation
406
- - Add `getConversationDetails`
407
- - Add ability to pass custom `ariaTelemetryKey`
408
-
409
- ### Changed
410
-
411
- - Uptake [@microsoft/ocsdk@0.1.1](https://www.npmjs.com/package/@microsoft/ocsdk/v/0.1.1)
412
- - Uptake [@microsoft/omnichannel-ic3core@0.1.1](https://www.npmjs.com/package/@microsoft/omnichannel-ic3core/v/0.1.1)
413
- - Uptake [jest@26.6.3](https://www.npmjs.com/package/jest/v/26.6.3)
414
- - Uptake [ts-jest@26.5.1](https://www.npmjs.com/package/ts-jest/v/26.5.1)
415
- - Uptake [IC3Client@2021.03.02.1](https://comms.omnichannelengagementhub.com/release/2021.03.02.1/Scripts/SDK/SDK.min.js)
416
- - Uptake [botframework-webchat-adapter-ic3@0.1.0-master.f4dfd7d](https://www.npmjs.com/package/botframework-webchat-adapter-ic3/v/0.1.0-master.f4dfd7d)
417
-
418
- ### Fixed
419
-
420
- - onAgentEndSession triggered on accept voice & video call
421
- - Fix multiple instances of IC3Client initialized
422
- - `uploadFileAttachment` failing on Web
423
-
424
- ### Security
425
-
426
- - Fix eslint errors
427
-
428
- ## [0.1.0] - 2020-10-26
429
-
430
- ### Added
431
-
432
- - Initial release of Omnichannel Chat SDK v0.1.0