@twilio/conversations 2.0.1 → 2.1.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 (86) hide show
  1. package/CHANGELOG.md +74 -0
  2. package/NOTICE.txt +679 -0
  3. package/builds/browser.js +889 -619
  4. package/builds/browser.js.map +1 -1
  5. package/builds/lib.d.ts +384 -129
  6. package/builds/lib.js +889 -619
  7. package/builds/lib.js.map +1 -1
  8. package/builds/twilio-conversations.js +1065 -939
  9. package/builds/twilio-conversations.min.js +2 -14
  10. package/dist/aggregated-delivery-receipt.js +6 -1
  11. package/dist/aggregated-delivery-receipt.js.map +1 -1
  12. package/dist/client.js +165 -142
  13. package/dist/client.js.map +1 -1
  14. package/dist/command-executor.js +16 -14
  15. package/dist/command-executor.js.map +1 -1
  16. package/dist/configuration.js +14 -10
  17. package/dist/configuration.js.map +1 -1
  18. package/dist/conversation.js +232 -159
  19. package/dist/conversation.js.map +1 -1
  20. package/dist/data/conversations.js +82 -78
  21. package/dist/data/conversations.js.map +1 -1
  22. package/dist/data/messages.js +43 -39
  23. package/dist/data/messages.js.map +1 -1
  24. package/dist/data/participants.js +100 -78
  25. package/dist/data/participants.js.map +1 -1
  26. package/dist/data/users.js +24 -22
  27. package/dist/data/users.js.map +1 -1
  28. package/dist/detailed-delivery-receipt.js +1 -1
  29. package/dist/detailed-delivery-receipt.js.map +1 -1
  30. package/dist/interfaces/attributes.js +147 -0
  31. package/dist/interfaces/attributes.js.map +1 -0
  32. package/dist/interfaces/notification-types.js +5 -5
  33. package/dist/interfaces/notification-types.js.map +1 -1
  34. package/dist/logger.js +36 -15
  35. package/dist/logger.js.map +1 -1
  36. package/dist/media.js +21 -9
  37. package/dist/media.js.map +1 -1
  38. package/dist/message-builder.js +56 -3
  39. package/dist/message-builder.js.map +1 -1
  40. package/dist/message.js +157 -78
  41. package/dist/message.js.map +1 -1
  42. package/dist/packages/conversations/package.json.js +1 -1
  43. package/dist/participant.js +101 -50
  44. package/dist/participant.js.map +1 -1
  45. package/dist/push-notification.js.map +1 -1
  46. package/dist/rest-paginator.js +16 -6
  47. package/dist/rest-paginator.js.map +1 -1
  48. package/dist/services/network.js +18 -14
  49. package/dist/services/network.js.map +1 -1
  50. package/dist/services/typing-indicator.js +20 -17
  51. package/dist/services/typing-indicator.js.map +1 -1
  52. package/dist/unsent-message.js.map +1 -1
  53. package/dist/user.js +87 -60
  54. package/dist/user.js.map +1 -1
  55. package/dist/util/deferred.js +3 -1
  56. package/dist/util/deferred.js.map +1 -1
  57. package/dist/util/index.js +6 -6
  58. package/dist/util/index.js.map +1 -1
  59. package/docs/assets/js/search.js +1 -1
  60. package/docs/classes/AggregatedDeliveryReceipt.html +0 -102
  61. package/docs/classes/Client.html +24 -132
  62. package/docs/classes/Conversation.html +37 -132
  63. package/docs/classes/DetailedDeliveryReceipt.html +1 -103
  64. package/docs/classes/Media.html +0 -102
  65. package/docs/classes/Message.html +73 -109
  66. package/docs/classes/MessageBuilder.html +78 -104
  67. package/docs/classes/Participant.html +37 -110
  68. package/docs/classes/PushNotification.html +0 -102
  69. package/docs/classes/RestPaginator.html +0 -102
  70. package/docs/classes/UnsentMessage.html +0 -102
  71. package/docs/classes/User.html +7 -109
  72. package/docs/index.html +93 -3
  73. package/docs/interfaces/ClientOptions.html +0 -102
  74. package/docs/interfaces/ConversationBindings.html +3001 -0
  75. package/docs/interfaces/ConversationEmailBinding.html +3001 -0
  76. package/docs/interfaces/ConversationState.html +0 -102
  77. package/docs/interfaces/CreateConversationOptions.html +1 -103
  78. package/docs/interfaces/LastMessage.html +0 -102
  79. package/docs/interfaces/Paginator.html +0 -102
  80. package/docs/interfaces/ParticipantBindings.html +3001 -0
  81. package/docs/interfaces/ParticipantEmailBinding.html +3001 -0
  82. package/docs/interfaces/PushNotificationData.html +0 -102
  83. package/docs/interfaces/SendEmailOptions.html +0 -102
  84. package/docs/interfaces/SendMediaOptions.html +0 -102
  85. package/docs/modules.html +93 -3
  86. package/package.json +23 -17
package/CHANGELOG.md CHANGED
@@ -3,6 +3,80 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [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)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Make message.participantSid nullable ([86a90d4](https://github.com/twilio/rtd-sdk-monorepo-js/commit/86a90d4e76334b6581d7bb3214f97417606b2c55))
12
+
13
+
14
+
15
+ ## [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)
16
+
17
+ **Note:** Version bump only for package @twilio/conversations
18
+
19
+
20
+
21
+
22
+
23
+ ## [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)
24
+
25
+ **Note:** Version bump only for package @twilio/conversations
26
+
27
+
28
+
29
+
30
+
31
+ ## [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)
32
+
33
+ **Note:** Version bump only for package @twilio/conversations
34
+
35
+
36
+
37
+
38
+
39
+ ## [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)
40
+
41
+
42
+ ### Bug Fixes
43
+
44
+ * Fix media SID attachment ([e260ea7](https://github.com/twilio/rtd-sdk-monorepo-js/commit/e260ea7963328450043cbd4ade76cb9f230e1240))
45
+ * Fix type error ([460557d](https://github.com/twilio/rtd-sdk-monorepo-js/commit/460557db8551d70a17e653fc92eb034ea36d3f5d))
46
+
47
+
48
+
49
+ ## [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)
50
+
51
+
52
+ ### Bug Fixes
53
+
54
+ * Fix last read message index not getting properly resolved in events ([97ea57f](https://github.com/twilio/rtd-sdk-monorepo-js/commit/97ea57f8a8dc76521601ced925237b64044d558a))
55
+
56
+
57
+
58
+ ## [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)
59
+
60
+
61
+ ### Features
62
+
63
+ * Add bindings to Participant & Conversation ([56afcc3](https://github.com/twilio/rtd-sdk-monorepo-js/commit/56afcc38020f024e0ec952117cb5dcc6e4f61e92))
64
+ * Add email body and history accessors ([be2de67](https://github.com/twilio/rtd-sdk-monorepo-js/commit/be2de674c5215a3054665756c85a22e35d145f58))
65
+ * Update MessageBuilder to support email payload ([ee0d00a](https://github.com/twilio/rtd-sdk-monorepo-js/commit/ee0d00a8c7e1dea478000731018c89fd2b8eb6c2))
66
+ * Use shared attributesValidator ([6d2a13f](https://github.com/twilio/rtd-sdk-monorepo-js/commit/6d2a13f87e9ad445399e5615a2eb6e4fe8b9518e))
67
+
68
+
69
+ ### Bug Fixes
70
+
71
+ * Fix bindings update always coming in participantUpdated reasons ([70f554d](https://github.com/twilio/rtd-sdk-monorepo-js/commit/70f554d3b81e3f662abc4e9a573aec6028c24c9d))
72
+ * Fix docs and signatures for single media. ([99d3512](https://github.com/twilio/rtd-sdk-monorepo-js/commit/99d3512ef5c382fe19346f0ebefe8902e332abad))
73
+ * Improve validator for attachTemporaryUrlsFor ([3e9f199](https://github.com/twilio/rtd-sdk-monorepo-js/commit/3e9f199464b4891b2d114ebdc71bcbe8c2fefd76))
74
+ * Invalid access when no email media attached ([6b1a40d](https://github.com/twilio/rtd-sdk-monorepo-js/commit/6b1a40de5a477b8047362074673788ee5ee45732))
75
+ * Prevent use of FormData in non-browser environment ([eaa2ba4](https://github.com/twilio/rtd-sdk-monorepo-js/commit/eaa2ba495506508ac531a257d78696d297581a64))
76
+ * Remove old conflicts ([2c505e7](https://github.com/twilio/rtd-sdk-monorepo-js/commit/2c505e76e054274ac3dd4352b2c951189311d67b))
77
+
78
+
79
+
6
80
  ### [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)
7
81
 
8
82