@twilio/conversations 3.0.0-canary.9 → 3.0.0-rc.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 (54) hide show
  1. package/CHANGELOG.md +485 -0
  2. package/builds/browser.js +38 -23
  3. package/builds/browser.js.map +1 -1
  4. package/builds/lib.d.ts +1 -3
  5. package/builds/lib.js +38 -23
  6. package/builds/lib.js.map +1 -1
  7. package/builds/twilio-conversations.js +272 -61
  8. package/builds/twilio-conversations.min.js +1 -1
  9. package/dist/client.js +13 -5
  10. package/dist/client.js.map +1 -1
  11. package/dist/conversation.js +0 -4
  12. package/dist/conversation.js.map +1 -1
  13. package/dist/index.js +5 -0
  14. package/dist/index.js.map +1 -1
  15. package/dist/message.js +7 -3
  16. package/dist/message.js.map +1 -1
  17. package/dist/packages/conversations/package.json.js +1 -1
  18. package/docs/assets/css/main.css +2660 -0
  19. package/docs/assets/images/icons.png +0 -0
  20. package/docs/assets/images/icons@2x.png +0 -0
  21. package/docs/assets/images/widgets.png +0 -0
  22. package/docs/assets/images/widgets@2x.png +0 -0
  23. package/docs/assets/js/main.js +248 -0
  24. package/docs/assets/js/search.js +1 -0
  25. package/docs/classes/AggregatedDeliveryReceipt.html +3184 -0
  26. package/docs/classes/CancellablePromise.html +3213 -0
  27. package/docs/classes/Client.html +4239 -0
  28. package/docs/classes/Conversation.html +4354 -0
  29. package/docs/classes/DetailedDeliveryReceipt.html +3163 -0
  30. package/docs/classes/Media.html +3167 -0
  31. package/docs/classes/Message.html +3732 -0
  32. package/docs/classes/MessageBuilder.html +3277 -0
  33. package/docs/classes/Participant.html +3444 -0
  34. package/docs/classes/PushNotification.html +3130 -0
  35. package/docs/classes/RestPaginator.html +3160 -0
  36. package/docs/classes/UnsentMessage.html +3042 -0
  37. package/docs/classes/User.html +3349 -0
  38. package/docs/index.html +3509 -0
  39. package/docs/interfaces/ClientOptions.html +3034 -0
  40. package/docs/interfaces/ConversationBindings.html +3001 -0
  41. package/docs/interfaces/ConversationEmailBinding.html +3001 -0
  42. package/docs/interfaces/ConversationLimits.html +3098 -0
  43. package/docs/interfaces/ConversationState.html +3050 -0
  44. package/docs/interfaces/ConversationUpdatedEventArgs.html +3001 -0
  45. package/docs/interfaces/CreateConversationOptions.html +3066 -0
  46. package/docs/interfaces/LastMessage.html +3050 -0
  47. package/docs/interfaces/Paginator.html +3141 -0
  48. package/docs/interfaces/ParticipantBindings.html +3001 -0
  49. package/docs/interfaces/ParticipantEmailBinding.html +3001 -0
  50. package/docs/interfaces/PushNotificationData.html +3114 -0
  51. package/docs/interfaces/SendEmailOptions.html +3034 -0
  52. package/docs/interfaces/SendMediaOptions.html +3068 -0
  53. package/docs/modules.html +3510 -0
  54. package/package.json +11 -12
package/CHANGELOG.md ADDED
@@ -0,0 +1,485 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ ## [3.0.0-rc.5](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@3.0.0-rc.4...@twilio/conversations@3.0.0-rc.5) (2022-05-04)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Add cancellable promise export from conversations ([04bd2fc](https://github.com/twilio/rtd-sdk-monorepo-js/commit/04bd2fc10ca1331fbcddf94a186eec351ea922f1))
12
+ * Fix promise cancelling retrier ([9b30ce2](https://github.com/twilio/rtd-sdk-monorepo-js/commit/9b30ce2750b7447f28e745513f7e1a29e2c48127))
13
+ * Make stateChanged failed error informative ([a301fdb](https://github.com/twilio/rtd-sdk-monorepo-js/commit/a301fdbe0950a87d0c12ee55688d461bd603cbda))
14
+ * Map media to empty medias field ([75ee36d](https://github.com/twilio/rtd-sdk-monorepo-js/commit/75ee36d600ec19a45ac5e471c61b6c68bdc47bc8))
15
+ * Parse APN with undefined alert ([f1d86d8](https://github.com/twilio/rtd-sdk-monorepo-js/commit/f1d86d86d949f8dd6eb96526364bf8c68067a403))
16
+
17
+
18
+
19
+ ## [3.0.0-rc.4](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@3.0.0-rc.3...@twilio/conversations@3.0.0-rc.4) (2022-05-02)
20
+
21
+ **Note:** Version bump only for package @twilio/conversations
22
+
23
+
24
+
25
+
26
+
27
+ ## [3.0.0-rc.3](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@3.0.0-rc.2...@twilio/conversations@3.0.0-rc.3) (2022-05-02)
28
+
29
+
30
+ ### ⚠ BREAKING CHANGES
31
+
32
+ * Participant add methods now return the added participants
33
+
34
+ ### Features
35
+
36
+ * Participant add methods now return the added participants ([6547478](https://github.com/twilio/rtd-sdk-monorepo-js/commit/6547478aaa3c358c9f78e2c2c178c9eb36b28485))
37
+
38
+
39
+ ### Bug Fixes
40
+
41
+ * Add runtime validation, fix error messages wording ([c03fd6c](https://github.com/twilio/rtd-sdk-monorepo-js/commit/c03fd6cda5b38032916835734ea002799f460eec))
42
+ * Add runtime validation, fix error messages wording ([e0e986d](https://github.com/twilio/rtd-sdk-monorepo-js/commit/e0e986d33ac7a5a0c98588dc38ffbd41a22b823e))
43
+ * Fix faulty type definitions by upgrading tooling ([b6d25ce](https://github.com/twilio/rtd-sdk-monorepo-js/commit/b6d25cecb08ab4e0d369430b90a786e1b275af91))
44
+ * Update pinning tools to new Python version ([50a6c78](https://github.com/twilio/rtd-sdk-monorepo-js/commit/50a6c78b9d717b0e7531919e1f7cb409474c3df5))
45
+
46
+
47
+
48
+ ## [3.0.0-rc.2](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@3.0.0-rc.1...@twilio/conversations@3.0.0-rc.2) (2022-04-13)
49
+
50
+
51
+ ### Features
52
+
53
+ * Migrate Twilsock to ReplayEventEmitter ([6db99dd](https://github.com/twilio/rtd-sdk-monorepo-js/commit/6db99dd3cc207298870aff1835acad6f866d7c05))
54
+
55
+
56
+ ### Bug Fixes
57
+
58
+ * Fix client initialization when a connected Twilsock is passed ([49aa87e](https://github.com/twilio/rtd-sdk-monorepo-js/commit/49aa87ecc8cc0dd30ac56fd563fb4a2af832610b))
59
+ * Fix push notification data type ([fa44301](https://github.com/twilio/rtd-sdk-monorepo-js/commit/fa44301c985f23efa5a7299d2987ba3772d51a24))
60
+
61
+
62
+
63
+ ## [3.0.0-rc.1](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@3.0.0-rc.0...@twilio/conversations@3.0.0-rc.1) (2022-03-16)
64
+
65
+ **Note:** Version bump only for package @twilio/conversations
66
+
67
+
68
+
69
+
70
+
71
+ ## [2.1.0](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.1.0-rc.9...@twilio/conversations@2.1.0) (2022-03-03)
72
+
73
+ **Note:** Version bump only for package @twilio/conversations
74
+
75
+
76
+
77
+
78
+
79
+ ## [2.1.0-rc.9](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.1.0-rc.8...@twilio/conversations@2.1.0-rc.9) (2022-02-08)
80
+
81
+ **Note:** Version bump only for package @twilio/conversations
82
+
83
+
84
+
85
+
86
+
87
+ ## [2.1.0-rc.8](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.1.0-rc.7...@twilio/conversations@2.1.0-rc.8) (2022-02-03)
88
+
89
+ **Note:** Version bump only for package @twilio/conversations
90
+
91
+
92
+
93
+
94
+
95
+ ## [2.1.0-rc.7](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.1.0-rc.6...@twilio/conversations@2.1.0-rc.7) (2022-02-03)
96
+
97
+
98
+ ### Bug Fixes
99
+
100
+ * Allow undefined for email get methods ([a753060](https://github.com/twilio/rtd-sdk-monorepo-js/commit/a75306021603e2bfb770d60f3834674b04069623))
101
+
102
+
103
+
104
+ ## [2.1.0-rc.6](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.1.0-rc.5...@twilio/conversations@2.1.0-rc.6) (2022-02-02)
105
+
106
+
107
+ ### Bug Fixes
108
+
109
+ * Make message.participantSid nullable ([86a90d4](https://github.com/twilio/rtd-sdk-monorepo-js/commit/86a90d4e76334b6581d7bb3214f97417606b2c55))
110
+
111
+
112
+
113
+ ## [2.1.0-rc.5](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.1.0-rc.4...@twilio/conversations@2.1.0-rc.5) (2022-01-31)
114
+
115
+ **Note:** Version bump only for package @twilio/conversations
116
+
117
+
118
+
119
+
120
+
121
+ ## [2.1.0-rc.4](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.1.0-rc.2...@twilio/conversations@2.1.0-rc.4) (2022-01-31)
122
+
123
+ **Note:** Version bump only for package @twilio/conversations
124
+
125
+
126
+
127
+
128
+
129
+ ## [2.1.0-rc.3](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.1.0-rc.2...@twilio/conversations@2.1.0-rc.3) (2022-01-31)
130
+
131
+ **Note:** Version bump only for package @twilio/conversations
132
+
133
+
134
+
135
+
136
+
137
+ ## [2.1.0-rc.2](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.1.0-rc.1...@twilio/conversations@2.1.0-rc.2) (2022-01-28)
138
+
139
+
140
+ ### Bug Fixes
141
+
142
+ * Fix media SID attachment ([e260ea7](https://github.com/twilio/rtd-sdk-monorepo-js/commit/e260ea7963328450043cbd4ade76cb9f230e1240))
143
+ * Fix type error ([460557d](https://github.com/twilio/rtd-sdk-monorepo-js/commit/460557db8551d70a17e653fc92eb034ea36d3f5d))
144
+
145
+
146
+
147
+ ## [2.1.0-rc.1](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.1.0-rc.0...@twilio/conversations@2.1.0-rc.1) (2021-11-25)
148
+
149
+
150
+ ### Bug Fixes
151
+
152
+ * Fix last read message index not getting properly resolved in events ([97ea57f](https://github.com/twilio/rtd-sdk-monorepo-js/commit/97ea57f8a8dc76521601ced925237b64044d558a))
153
+
154
+
155
+
156
+ ## [2.1.0-rc.0](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.1-rc.10...@twilio/conversations@2.1.0-rc.0) (2021-11-19)
157
+
158
+
159
+ ### Features
160
+
161
+ * Add bindings to Participant & Conversation ([56afcc3](https://github.com/twilio/rtd-sdk-monorepo-js/commit/56afcc38020f024e0ec952117cb5dcc6e4f61e92))
162
+ * Add email body and history accessors ([be2de67](https://github.com/twilio/rtd-sdk-monorepo-js/commit/be2de674c5215a3054665756c85a22e35d145f58))
163
+ * Update MessageBuilder to support email payload ([ee0d00a](https://github.com/twilio/rtd-sdk-monorepo-js/commit/ee0d00a8c7e1dea478000731018c89fd2b8eb6c2))
164
+ * Use shared attributesValidator ([6d2a13f](https://github.com/twilio/rtd-sdk-monorepo-js/commit/6d2a13f87e9ad445399e5615a2eb6e4fe8b9518e))
165
+
166
+
167
+ ### Bug Fixes
168
+
169
+ * Fix bindings update always coming in participantUpdated reasons ([70f554d](https://github.com/twilio/rtd-sdk-monorepo-js/commit/70f554d3b81e3f662abc4e9a573aec6028c24c9d))
170
+ * Fix docs and signatures for single media. ([99d3512](https://github.com/twilio/rtd-sdk-monorepo-js/commit/99d3512ef5c382fe19346f0ebefe8902e332abad))
171
+ * Improve validator for attachTemporaryUrlsFor ([3e9f199](https://github.com/twilio/rtd-sdk-monorepo-js/commit/3e9f199464b4891b2d114ebdc71bcbe8c2fefd76))
172
+ * Invalid access when no email media attached ([6b1a40d](https://github.com/twilio/rtd-sdk-monorepo-js/commit/6b1a40de5a477b8047362074673788ee5ee45732))
173
+ * Prevent use of FormData in non-browser environment ([eaa2ba4](https://github.com/twilio/rtd-sdk-monorepo-js/commit/eaa2ba495506508ac531a257d78696d297581a64))
174
+ * Remove old conflicts ([2c505e7](https://github.com/twilio/rtd-sdk-monorepo-js/commit/2c505e76e054274ac3dd4352b2c951189311d67b))
175
+
176
+
177
+
178
+ ### [2.0.1-rc.10](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.1-rc.9...@twilio/conversations@2.0.1-rc.10) (2021-11-16)
179
+
180
+
181
+ ### Bug Fixes
182
+
183
+ * Fix import isomorphic form data to conversations ([22d0712](https://github.com/twilio/rtd-sdk-monorepo-js/commit/22d0712e50b74690788642382a5f9d091d9c349d))
184
+
185
+
186
+
187
+ ### [2.0.1-rc.9](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.1-rc.8...@twilio/conversations@2.0.1-rc.9) (2021-11-12)
188
+
189
+ **Note:** Version bump only for package @twilio/conversations
190
+
191
+
192
+
193
+
194
+
195
+ ### [2.0.1-rc.8](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.1-rc.7...@twilio/conversations@2.0.1-rc.8) (2021-11-12)
196
+
197
+ **Note:** Version bump only for package @twilio/conversations
198
+
199
+
200
+
201
+
202
+
203
+ ### [2.0.1-rc.7](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.1-rc.6...@twilio/conversations@2.0.1-rc.7) (2021-11-12)
204
+
205
+ **Note:** Version bump only for package @twilio/conversations
206
+
207
+
208
+
209
+
210
+
211
+ ### [2.0.1-rc.6](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.1-rc.5...@twilio/conversations@2.0.1-rc.6) (2021-11-11)
212
+
213
+
214
+ ### Bug Fixes
215
+
216
+ * Remove the post-install script in favour of the "react-native" option ([0fe352d](https://github.com/twilio/rtd-sdk-monorepo-js/commit/0fe352d45e50cec78e880affee589009055d5338))
217
+
218
+
219
+
220
+ ### [2.0.1-rc.5](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.1-rc.4...@twilio/conversations@2.0.1-rc.5) (2021-11-10)
221
+
222
+
223
+ ### Bug Fixes
224
+
225
+ * Fix the post-install script (yet again) ([c8cb1ee](https://github.com/twilio/rtd-sdk-monorepo-js/commit/c8cb1ee501d1c793497985592d2c1ae97162a219))
226
+
227
+
228
+
229
+ ### [2.0.1-rc.4](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.1-rc.3...@twilio/conversations@2.0.1-rc.4) (2021-11-09)
230
+
231
+
232
+ ### Bug Fixes
233
+
234
+ * Fix getChannelBySid returning wrong channels issue ([3eeaf1f](https://github.com/twilio/rtd-sdk-monorepo-js/commit/3eeaf1fc64d77c48305ff7c43b8a92c81e6ead7b))
235
+ * Fix the post-install script to be runnable cross-platform ([a16eede](https://github.com/twilio/rtd-sdk-monorepo-js/commit/a16eede598dd3dbdda1997fbd2033fa2254f113f))
236
+
237
+
238
+
239
+ ### [2.0.1-rc.3](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.1-rc.2...@twilio/conversations@2.0.1-rc.3) (2021-10-26)
240
+
241
+
242
+ ### Bug Fixes
243
+
244
+ * Bump Node required version to current LTS (14) ([ee272b3](https://github.com/twilio/rtd-sdk-monorepo-js/commit/ee272b350f4556a454a18a8aa192c37b54aaaeeb))
245
+
246
+
247
+
248
+ ### [2.0.1-rc.2](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.1-rc.1...@twilio/conversations@2.0.1-rc.2) (2021-10-25)
249
+
250
+ **Note:** Version bump only for package @twilio/conversations
251
+
252
+
253
+
254
+
255
+
256
+ ### [2.0.1-rc.1](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.1-rc.0...@twilio/conversations@2.0.1-rc.1) (2021-10-22)
257
+
258
+ **Note:** Version bump only for package @twilio/conversations
259
+
260
+
261
+
262
+
263
+
264
+ ### [2.0.1-rc.0](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.0...@twilio/conversations@2.0.1-rc.0) (2021-10-22)
265
+
266
+ **Note:** Version bump only for package @twilio/conversations
267
+
268
+
269
+
270
+
271
+
272
+ ## [2.0.0](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.0-rc.4...@twilio/conversations@2.0.0) (2021-10-19)
273
+
274
+
275
+ ### Bug Fixes
276
+
277
+ * Add an export to NotificationTypes ([0986564](https://github.com/twilio/rtd-sdk-monorepo-js/commit/09865645750f8ae2f930471284de9d9f7445f1e8))
278
+
279
+
280
+
281
+ ## [2.0.0-rc.4](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.0-rc.3...@twilio/conversations@2.0.0-rc.4) (2021-10-14)
282
+
283
+
284
+ ### Bug Fixes
285
+
286
+ * Fix passing JSON attributes into conversation.addNonChatParticipant ([c3da243](https://github.com/twilio/rtd-sdk-monorepo-js/commit/c3da243469f5c33663c756d9f714a38240c4dd48))
287
+
288
+
289
+
290
+ ## [2.0.0-rc.3](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.0-rc.2...@twilio/conversations@2.0.0-rc.3) (2021-10-13)
291
+
292
+ **Note:** Version bump only for package @twilio/conversations
293
+
294
+
295
+
296
+
297
+
298
+ ## [2.0.0-rc.2](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.0-rc.1...@twilio/conversations@2.0.0-rc.2) (2021-10-13)
299
+
300
+
301
+ ### ⚠ BREAKING CHANGES
302
+
303
+ * Disallow null Conversation.updateFriendlyName
304
+ * Disallow null for client options
305
+ * Remove default exports from Conversations
306
+ * Client.reachabilityEnabled can now throw an error.
307
+
308
+ ### Bug Fixes
309
+
310
+ * Add missing exports ([74d08ce](https://github.com/twilio/rtd-sdk-monorepo-js/commit/74d08ce00a8a4cf0b961dde3570f5c7bd7a1e1f9))
311
+ * Allow all JSON values as properties in addNonChatParticipant ([ddbea1c](https://github.com/twilio/rtd-sdk-monorepo-js/commit/ddbea1c0d0d26b488661ef123883316f7926b456))
312
+ * Disallow null Conversation.updateFriendlyName ([7e4b556](https://github.com/twilio/rtd-sdk-monorepo-js/commit/7e4b5563e2a016f1904d9b37cfc063592712f0a6))
313
+ * Disallow null for client options ([c5435f9](https://github.com/twilio/rtd-sdk-monorepo-js/commit/c5435f9fb9dadf11483e2c7884c334a040c06330))
314
+ * Fix client user initialization problem ([043546d](https://github.com/twilio/rtd-sdk-monorepo-js/commit/043546d872300fda4db70d9c04461f944dfa5936))
315
+ * Remove default exports from Conversations ([38e2e24](https://github.com/twilio/rtd-sdk-monorepo-js/commit/38e2e24512425da4ba0f1670dcf37d8ccf1ac67e))
316
+ * Reset currentState on push unregister ([590991c](https://github.com/twilio/rtd-sdk-monorepo-js/commit/590991c841a78b3c7e88a05629090a2de5a8f9da))
317
+ * Resubscribe to push notification on re-register ([709847f](https://github.com/twilio/rtd-sdk-monorepo-js/commit/709847f8462890214197cf1af769f41b56bfbccc))
318
+ * Throw an error if reachabilityEnabled was accessed before client init ([3fd3293](https://github.com/twilio/rtd-sdk-monorepo-js/commit/3fd32937d7e42d6df815efab35ded3b93a671556))
319
+ * UnsentMessage.send now returns a proper value ([c71a0a9](https://github.com/twilio/rtd-sdk-monorepo-js/commit/c71a0a9a9618c09f5d02dbee6bc2d122d9008383))
320
+
321
+
322
+
323
+ ## [2.0.0-rc.1](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.0-rc.0...@twilio/conversations@2.0.0-rc.1) (2021-10-04)
324
+
325
+
326
+ ### ⚠ BREAKING CHANGES
327
+
328
+ * User.updateFriendlyName no longer accepts
329
+ null as the value.
330
+ * Passing null to Conversation.sendMessage
331
+ will result with the message body being empty.
332
+
333
+ ### Features
334
+
335
+ * Add getCachedTemporaryUrl() ([c453e70](https://github.com/twilio/rtd-sdk-monorepo-js/commit/c453e70d0e0bc8bb6f0cd80ef0e2a3309b5ba804))
336
+ * Add limits support ([b471295](https://github.com/twilio/rtd-sdk-monorepo-js/commit/b4712954bf6f0cf82c47c77b96a98ed1ebe9c158))
337
+ * Add Media category field ([0672c20](https://github.com/twilio/rtd-sdk-monorepo-js/commit/0672c202d000736dda37be66387692e2befe24bd))
338
+ * Add mediaSet GET operation support ([424bd4a](https://github.com/twilio/rtd-sdk-monorepo-js/commit/424bd4abe42312ea01740bc142ed1c6ec3b1913d))
339
+ * Add multiple media accessors ([99e78e6](https://github.com/twilio/rtd-sdk-monorepo-js/commit/99e78e6239b87d36b23e6bbbd0bc68f19b869f85))
340
+ * Add sendMessageV2 and prepareMessage() builder ([fd5ae39](https://github.com/twilio/rtd-sdk-monorepo-js/commit/fd5ae39816e45cce83a37120bfff3f2d530f09d3))
341
+ * Allow specifying filename when uploading media file ([abd6126](https://github.com/twilio/rtd-sdk-monorepo-js/commit/abd61266135b14c27c3d076c009a3fd331a0f810))
342
+ * Dispose of session in favour of the sessionless protocol ([8b46fbd](https://github.com/twilio/rtd-sdk-monorepo-js/commit/8b46fbdac04d7e2cf55a74fb13b3016661f869b8))
343
+ * Do not filter out body for media messages ([3eeeabc](https://github.com/twilio/rtd-sdk-monorepo-js/commit/3eeeabc7c32b2798bef40e50466610d155aa68e5))
344
+
345
+
346
+ ### Bug Fixes
347
+
348
+ * Add token update for notificationClient ([5cda351](https://github.com/twilio/rtd-sdk-monorepo-js/commit/5cda3513c0df4aac8df01034d2764bb0e970a476))
349
+ * Default addNonChatParticipant options to empty if not provided ([84e205b](https://github.com/twilio/rtd-sdk-monorepo-js/commit/84e205b7e4c4c2faebce6fe79521751765dde8c5))
350
+ * Deprecate unsetPushRegistrationId and add removePushRegistrations ([82ef892](https://github.com/twilio/rtd-sdk-monorepo-js/commit/82ef892537942efd1e47302dad33086a2d8a5f22))
351
+ * Fix setPushRegistrationId and unsetPushRegistrationId impls ([9120a65](https://github.com/twilio/rtd-sdk-monorepo-js/commit/9120a65834c9fb38c184c55bfa961d2e1cddb8ca))
352
+ * Return correct type from function ([5353810](https://github.com/twilio/rtd-sdk-monorepo-js/commit/5353810e32de201415f1e93d25d1b679eac2d974))
353
+ * Streamline Message state initialization ([a29331f](https://github.com/twilio/rtd-sdk-monorepo-js/commit/a29331f3d7e75ed85d4919efd67a5766482af06b))
354
+
355
+
356
+ ### Code Refactoring
357
+
358
+ * Migrate to Sessionless EditUser command ([060b96b](https://github.com/twilio/rtd-sdk-monorepo-js/commit/060b96b5019311a47e7fdb71b12cbdd4996f3e44))
359
+ * Migrate to Sessionless SendMessage command ([997e17f](https://github.com/twilio/rtd-sdk-monorepo-js/commit/997e17fd04426aebe04e1fa734752aee4ddecaf5))
360
+
361
+
362
+
363
+ ## [2.0.0-rc.0](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.4-rc.12...@twilio/conversations@2.0.0-rc.0) (2021-09-23)
364
+
365
+
366
+ ### ⚠ BREAKING CHANGES
367
+
368
+ * Add init registrations
369
+ * Use twilsock connection state
370
+
371
+ ### Features
372
+
373
+ * Add init registrations ([d09c52d](https://github.com/twilio/rtd-sdk-monorepo-js/commit/d09c52d2b1894fb0db2e3a084937350ee1a73f01))
374
+ * Export Telemetry from Twilsock ([eb261ec](https://github.com/twilio/rtd-sdk-monorepo-js/commit/eb261ecdb366b6381462c377431735c5c09f1094))
375
+ * Use twilsock connection state ([2a6a4be](https://github.com/twilio/rtd-sdk-monorepo-js/commit/2a6a4be6384037ca80f1a02663cb126cbff3797a))
376
+
377
+
378
+ ### Bug Fixes
379
+
380
+ * Fix getMessages()' usage of sync pagination ([4563227](https://github.com/twilio/rtd-sdk-monorepo-js/commit/45632271337affeb3af7dcf8bec78b555b5db6b1))
381
+ * Start client connection state in 'unknown' ([a78acd1](https://github.com/twilio/rtd-sdk-monorepo-js/commit/a78acd1e5dde7532cfd64ed6ed09178d5009399e))
382
+ * Use Transport from Twilsock ([7f0ce1e](https://github.com/twilio/rtd-sdk-monorepo-js/commit/7f0ce1e8e74b39d38cb4feff685e19807cba5ff0))
383
+
384
+
385
+
386
+ ### [1.2.4-rc.12](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.4-rc.11...@twilio/conversations@1.2.4-rc.12) (2021-09-12)
387
+
388
+ **Note:** Version bump only for package @twilio/conversations
389
+
390
+
391
+
392
+
393
+
394
+ ### [1.2.4-rc.11](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.4-rc.10...@twilio/conversations@1.2.4-rc.11) (2021-09-12)
395
+
396
+ **Note:** Version bump only for package @twilio/conversations
397
+
398
+
399
+
400
+
401
+
402
+ ### [1.2.4-rc.10](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.4-rc.9...@twilio/conversations@1.2.4-rc.10) (2021-09-12)
403
+
404
+ **Note:** Version bump only for package @twilio/conversations
405
+
406
+
407
+
408
+
409
+
410
+ ### [1.2.4-rc.9](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.4-rc.8...@twilio/conversations@1.2.4-rc.9) (2021-09-12)
411
+
412
+ **Note:** Version bump only for package @twilio/conversations
413
+
414
+
415
+
416
+
417
+
418
+ ### [1.2.4-rc.8](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.4-rc.7...@twilio/conversations@1.2.4-rc.8) (2021-09-12)
419
+
420
+ **Note:** Version bump only for package @twilio/conversations
421
+
422
+
423
+
424
+
425
+
426
+ ### [1.2.4-rc.7](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.4-rc.5...@twilio/conversations@1.2.4-rc.7) (2021-09-12)
427
+
428
+ **Note:** Version bump only for package @twilio/conversations
429
+
430
+
431
+
432
+
433
+
434
+ ### [1.2.4-rc.6](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.4-rc.5...@twilio/conversations@1.2.4-rc.6) (2021-09-12)
435
+
436
+ **Note:** Version bump only for package @twilio/conversations
437
+
438
+
439
+
440
+
441
+
442
+ ### [1.2.4-rc.5](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.4-rc.4...@twilio/conversations@1.2.4-rc.5) (2021-09-10)
443
+
444
+ **Note:** Version bump only for package @twilio/conversations
445
+
446
+
447
+
448
+
449
+
450
+ ### [1.2.4-rc.4](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.4-rc.3...@twilio/conversations@1.2.4-rc.4) (2021-09-10)
451
+
452
+ **Note:** Version bump only for package @twilio/conversations
453
+
454
+
455
+
456
+
457
+
458
+ ### [1.2.4-rc.3](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.4-rc.2...@twilio/conversations@1.2.4-rc.3) (2021-09-09)
459
+
460
+
461
+ ### Bug Fixes
462
+
463
+ * Fix Rollup type export issue ([02f9d73](https://github.com/twilio/rtd-sdk-monorepo-js/commit/02f9d7307ce982afbd1a8e92f8e8bdd6646b74f0))
464
+
465
+
466
+
467
+ ### [1.2.4-rc.2](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.3-rc.1...@twilio/conversations@1.2.4-rc.2) (2021-09-07)
468
+
469
+ **Note:** Version bump only for package @twilio/conversations
470
+
471
+
472
+
473
+
474
+
475
+ ### [1.2.3-rc.1](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.3-rc.0...@twilio/conversations@1.2.3-rc.1) (2021-08-23)
476
+
477
+ **Note:** Version bump only for package @twilio/conversations
478
+
479
+
480
+
481
+
482
+
483
+ ### 1.2.3-rc.0 (2021-08-23)
484
+
485
+ **Note:** Version bump only for package @twilio/conversations
package/builds/browser.js CHANGED
@@ -389,9 +389,9 @@ var Logger = /*#__PURE__*/function () {
389
389
  return Logger;
390
390
  }();
391
391
 
392
- function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
392
+ function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
393
393
 
394
- function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
394
+ function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
395
395
  var TYPING_TIMEOUT = 5;
396
396
  var HTTP_CACHE_LIFETIME = "PT5S";
397
397
  var CONSUMPTION_HORIZON_SENDING_INTERVAL = "PT5S";
@@ -432,7 +432,7 @@ var Configuration = /*#__PURE__*/_createClass__default["default"](function Confi
432
432
  emailBodiesAllowedContentTypes: configurationResponse.options.email_bodies_allowed_mime_types
433
433
  };
434
434
  this.typingIndicatorTimeoutOverride = constructorOptions.typingIndicatorTimeoutOverride;
435
- this.backoffConfiguration = _objectSpread$3({
435
+ this.backoffConfiguration = _objectSpread$4({
436
436
  min: MINIMUM_RETRY_DELAY,
437
437
  max: MAXIMUM_RETRY_DELAY,
438
438
  maxAttemptsCount: MAXIMUM_ATTEMPTS_COUNT
@@ -2557,6 +2557,10 @@ function DetailedDeliveryReceipt(descriptor) {
2557
2557
  this.dateUpdated = descriptor.date_updated;
2558
2558
  });
2559
2559
 
2560
+ function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2561
+
2562
+ function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2563
+
2560
2564
  function _createSuper$5(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$5(); return function _createSuperInternal() { var Super = _getPrototypeOf__default["default"](Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf__default["default"](this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn__default["default"](this, result); }; }
2561
2565
 
2562
2566
  function _isNativeReflectConstruct$5() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
@@ -2600,10 +2604,12 @@ var Message = /*#__PURE__*/function (_ReplayEventEmitter) {
2600
2604
  lastUpdatedBy: (_data$lastUpdatedBy = data.lastUpdatedBy) !== null && _data$lastUpdatedBy !== void 0 ? _data$lastUpdatedBy : null,
2601
2605
  attributes: parseAttributes(data.attributes, "Got malformed attributes for the message ".concat(data.sid), log$3),
2602
2606
  type: (_data$type = data.type) !== null && _data$type !== void 0 ? _data$type : "text",
2603
- media: data.type && data.type === "media" && data.media ? new Media(data.media, _this.services) : null,
2604
- medias: data.type && data.type === "media" && data.medias ? data.medias.map(function (m) {
2607
+ media: data.type === "media" && data.media ? new Media(data.media, _this.services) : null,
2608
+ medias: data.type === "media" && data.medias ? data.medias.map(function (m) {
2605
2609
  return new Media(m, _this.services);
2606
- }) : null,
2610
+ }) : data.type === "media" && data.media && !data.medias ? [new Media(_objectSpread$3(_objectSpread$3({}, data.media), {}, {
2611
+ category: "media"
2612
+ }), _this.services)] : null,
2607
2613
  participantSid: (_data$memberSid = data.memberSid) !== null && _data$memberSid !== void 0 ? _data$memberSid : null,
2608
2614
  aggregatedDeliveryReceipt: data.delivery ? new AggregatedDeliveryReceipt(data.delivery) : null
2609
2615
  };
@@ -5005,9 +5011,6 @@ var Conversation = /*#__PURE__*/function (_ReplayEventEmitter) {
5005
5011
  * @param participant Identity, SID or the participant object to remove.
5006
5012
  */
5007
5013
 
5008
- /* eslint-disable @typescript-eslint/ban-ts-comment */
5009
- // @ts-ignore TODO: fix validateTypesAsync typing
5010
-
5011
5014
  }, {
5012
5015
  key: "removeParticipant",
5013
5016
  value: function () {
@@ -5869,10 +5872,7 @@ __decorate([declarativeTypeValidator.validateTypesAsync(declarativeTypeValidator
5869
5872
 
5870
5873
  __decorate([declarativeTypeValidator.validateTypesAsync([declarativeTypeValidator.nonEmptyString, Participant]), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], Conversation.prototype, "removeParticipant", null);
5871
5874
 
5872
- __decorate([declarativeTypeValidator.validateTypesAsync(["string",
5873
- /* eslint-disable @typescript-eslint/ban-ts-comment */
5874
- // @ts-ignore TODO: fix validateTypesAsync typing
5875
- FormData, declarativeTypeValidator.literal(null), declarativeTypeValidator.objectSchema("media options", {
5875
+ __decorate([declarativeTypeValidator.validateTypesAsync(["string", FormData, declarativeTypeValidator.literal(null), declarativeTypeValidator.objectSchema("media options", {
5876
5876
  contentType: declarativeTypeValidator.nonEmptyString,
5877
5877
  media: declarativeTypeValidator.custom(function (value) {
5878
5878
  var isValid = typeof value === "string" && value.length > 0 || value instanceof Uint8Array || value instanceof ArrayBuffer;
@@ -7170,7 +7170,7 @@ function PushNotification(data) {
7170
7170
  this.data = data.data || {};
7171
7171
  });
7172
7172
 
7173
- var version = "3.0.0-rc.2";
7173
+ var version = "3.0.0-rc.6";
7174
7174
 
7175
7175
  function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7176
7176
 
@@ -7761,10 +7761,15 @@ exports.Client = Client_1 = (_class = /*#__PURE__*/function (_ReplayEventEmitter
7761
7761
 
7762
7762
  _this._services.twilsockClient.onceWithReplay("connectionError", emitFailed);
7763
7763
 
7764
- _this._services.twilsockClient.onceWithReplay("disconnected", emitFailed);
7764
+ _this._services.twilsockClient.onceWithReplay("disconnected", function () {
7765
+ return emitFailed({
7766
+ terminal: true,
7767
+ message: "Twilsock has disconnected."
7768
+ });
7769
+ });
7765
7770
 
7766
7771
  _this._services.twilsockClient.onceWithReplay("connected", /*#__PURE__*/_asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee() {
7767
- var startupEvent;
7772
+ var startupEvent, connectionError;
7768
7773
  return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
7769
7774
  while (1) {
7770
7775
  switch (_context.prev = _context.next) {
@@ -7786,22 +7791,26 @@ exports.Client = Client_1 = (_class = /*#__PURE__*/function (_ReplayEventEmitter
7786
7791
  case 8:
7787
7792
  _this._services.twilsockClient.addPartialTelemetryEvent(new twilsock.TelemetryEventDescription("", "", new Date()), startupEvent, twilsock.TelemetryPoint.End);
7788
7793
 
7789
- _context.next = 15;
7794
+ _context.next = 16;
7790
7795
  break;
7791
7796
 
7792
7797
  case 11:
7793
7798
  _context.prev = 11;
7794
7799
  _context.t0 = _context["catch"](3);
7795
-
7796
7800
  // Fail ChatClient if initialization is incomplete
7797
- _this._rejectEnsureReady(_context.t0);
7801
+ connectionError = {
7802
+ terminal: true,
7803
+ message: _context.t0.message
7804
+ };
7805
+
7806
+ _this._rejectEnsureReady(connectionError);
7798
7807
 
7799
7808
  _this.emit("stateChanged", {
7800
7809
  state: "failed",
7801
- error: _context.t0
7810
+ error: connectionError
7802
7811
  });
7803
7812
 
7804
- case 15:
7813
+ case 16:
7805
7814
  case "end":
7806
7815
  return _context.stop();
7807
7816
  }
@@ -8706,8 +8715,10 @@ exports.Client = Client_1 = (_class = /*#__PURE__*/function (_ReplayEventEmitter
8706
8715
  if (typeof apsPayload.alert === "string") {
8707
8716
  body = apsPayload.alert || null;
8708
8717
  } else {
8709
- body = apsPayload.alert.body || null;
8710
- title = apsPayload.alert.title || null;
8718
+ var _apsPayload$alert, _apsPayload$alert2;
8719
+
8720
+ body = ((_apsPayload$alert = apsPayload.alert) === null || _apsPayload$alert === void 0 ? void 0 : _apsPayload$alert.body) || null;
8721
+ title = ((_apsPayload$alert2 = apsPayload.alert) === null || _apsPayload$alert2 === void 0 ? void 0 : _apsPayload$alert2.title) || null;
8711
8722
  }
8712
8723
 
8713
8724
  return new PushNotification({
@@ -8846,6 +8857,10 @@ __decorate([declarativeTypeValidator.validateTypes(declarativeTypeValidator.pure
8846
8857
 
8847
8858
  exports.Client = Client_1 = __decorate([declarativeTypeValidator.validateConstructorTypes(declarativeTypeValidator.nonEmptyString, [declarativeTypeValidator.pureObject, "undefined"]), __metadata("design:paramtypes", [String, Object])], exports.Client);
8848
8859
 
8860
+ Object.defineProperty(exports, 'CancellablePromise', {
8861
+ enumerable: true,
8862
+ get: function () { return mcsClient.CancellablePromise; }
8863
+ });
8849
8864
  exports.AggregatedDeliveryReceipt = AggregatedDeliveryReceipt;
8850
8865
  exports.Conversation = Conversation;
8851
8866
  exports.DetailedDeliveryReceipt = DetailedDeliveryReceipt;