@twilio/conversations 3.0.0-rc.9 → 3.0.1-rc.102

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 (88) hide show
  1. package/README.md +38 -28
  2. package/builds/browser.js +1659 -264
  3. package/builds/browser.js.map +1 -1
  4. package/builds/lib.d.ts +650 -25
  5. package/builds/lib.js +1650 -264
  6. package/builds/lib.js.map +1 -1
  7. package/builds/twilio-conversations.js +4300 -1842
  8. package/builds/twilio-conversations.min.js +1 -1
  9. package/dist/aggregated-delivery-receipt.js +10 -1
  10. package/dist/aggregated-delivery-receipt.js.map +1 -1
  11. package/dist/channel-metadata-client.js +192 -0
  12. package/dist/channel-metadata-client.js.map +1 -0
  13. package/dist/client.js +70 -10
  14. package/dist/client.js.map +1 -1
  15. package/dist/command-executor.js +48 -6
  16. package/dist/command-executor.js.map +1 -1
  17. package/dist/configuration.js +14 -3
  18. package/dist/configuration.js.map +1 -1
  19. package/dist/content-client.js +184 -0
  20. package/dist/content-client.js.map +1 -0
  21. package/dist/content-template.js +310 -0
  22. package/dist/content-template.js.map +1 -0
  23. package/dist/conversation.js +59 -16
  24. package/dist/conversation.js.map +1 -1
  25. package/dist/data/conversations.js +25 -3
  26. package/dist/data/conversations.js.map +1 -1
  27. package/dist/data/messages.js +23 -6
  28. package/dist/data/messages.js.map +1 -1
  29. package/dist/data/participants.js +17 -8
  30. package/dist/data/participants.js.map +1 -1
  31. package/dist/data/users.js +9 -0
  32. package/dist/data/users.js.map +1 -1
  33. package/dist/detailed-delivery-receipt.js +9 -0
  34. package/dist/detailed-delivery-receipt.js.map +1 -1
  35. package/dist/index.js +14 -0
  36. package/dist/index.js.map +1 -1
  37. package/dist/interfaces/notification-types.js +9 -0
  38. package/dist/interfaces/notification-types.js.map +1 -1
  39. package/dist/interfaces/{attributes.js → rules.js} +26 -7
  40. package/dist/interfaces/rules.js.map +1 -0
  41. package/dist/logger.js +9 -0
  42. package/dist/logger.js.map +1 -1
  43. package/dist/media.js +9 -0
  44. package/dist/media.js.map +1 -1
  45. package/dist/message-builder.js +77 -6
  46. package/dist/message-builder.js.map +1 -1
  47. package/dist/message.js +156 -12
  48. package/dist/message.js.map +1 -1
  49. package/dist/node_modules/quick-lru/index.js +265 -0
  50. package/dist/node_modules/quick-lru/index.js.map +1 -0
  51. package/dist/node_modules/tslib/tslib.es6.js +9 -0
  52. package/dist/node_modules/tslib/tslib.es6.js.map +1 -1
  53. package/dist/packages/conversations/package.json.js +10 -1
  54. package/dist/packages/conversations/package.json.js.map +1 -1
  55. package/dist/participant.js +11 -2
  56. package/dist/participant.js.map +1 -1
  57. package/dist/push-notification.js +9 -0
  58. package/dist/push-notification.js.map +1 -1
  59. package/dist/rest-paginator.js +9 -0
  60. package/dist/rest-paginator.js.map +1 -1
  61. package/dist/services/network.js +9 -0
  62. package/dist/services/network.js.map +1 -1
  63. package/dist/services/typing-indicator.js +9 -0
  64. package/dist/services/typing-indicator.js.map +1 -1
  65. package/dist/unsent-message.js +9 -0
  66. package/dist/unsent-message.js.map +1 -1
  67. package/dist/user.js +20 -3
  68. package/dist/user.js.map +1 -1
  69. package/dist/util/deferred.js +9 -0
  70. package/dist/util/deferred.js.map +1 -1
  71. package/dist/util/index.js +9 -0
  72. package/dist/util/index.js.map +1 -1
  73. package/docs/assets/js/search.js +1 -1
  74. package/docs/classes/AggregatedDeliveryReceipt.html +1 -1
  75. package/docs/classes/ChannelMetadata.html +3050 -0
  76. package/docs/classes/Client.html +64 -25
  77. package/docs/classes/ContentTemplate.html +3116 -0
  78. package/docs/classes/ContentTemplateVariable.html +3116 -0
  79. package/docs/classes/Conversation.html +14 -9
  80. package/docs/classes/Message.html +76 -5
  81. package/docs/classes/MessageBuilder.html +41 -0
  82. package/docs/classes/Participant.html +2 -2
  83. package/docs/index.html +849 -25
  84. package/docs/interfaces/ClientOptions.html +16 -0
  85. package/docs/modules.html +848 -24
  86. package/package.json +18 -14
  87. package/CHANGELOG.md +0 -509
  88. package/dist/interfaces/attributes.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twilio/conversations",
3
- "version": "3.0.0-rc.9",
3
+ "version": "3.0.1-rc.102",
4
4
  "description": "Twilio Conversations client library",
5
5
  "main": "./builds/lib.js",
6
6
  "browser": "./builds/browser.js",
@@ -21,7 +21,7 @@
21
21
  "scripts": {
22
22
  "clean": "rm -rf ./coverage ./dist ./builds ./docs",
23
23
  "lint:strict": "npx tsc-strict",
24
- "lint": "yarn lint:strict && npx eslint src test --ext .ts",
24
+ "lint": "yarn lint:strict && npx eslint src test --ext .ts && node ../../tools/check-readme.js conversations",
25
25
  "lint:fix": "yarn lint:strict && npx eslint src test --ext .ts --fix",
26
26
  "test:unit": "env FORCE_COLOR=1 NODE_ENV=test npx nyc --report-dir coverage/unit ./node_modules/.bin/mocha test/unit/index.ts",
27
27
  "test:integration": "env FORCE_COLOR=1 NODE_ENV=test npx nyc --report-dir coverage/integration ./node_modules/.bin/mocha test/integration/index.ts",
@@ -36,20 +36,23 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@babel/runtime": "^7.17.0",
39
- "@twilio/declarative-type-validator": "^0.2.0-rc.1",
40
- "@twilio/mcs-client": "^0.6.0-rc.5",
41
- "@twilio/notifications": "^2.0.0-rc.0",
42
- "@twilio/operation-retrier": "^4.0.8-rc.2",
43
- "@twilio/replay-event-emitter": "^0.3.0-rc.2",
39
+ "@twilio/declarative-type-validator": "^0.2.5",
40
+ "@twilio/deprecation-decorator": "^0.2.3",
41
+ "@twilio/mcs-client": "^0.6.5",
42
+ "@twilio/notifications": "^2.0.4",
43
+ "@twilio/operation-retrier": "^4.0.13",
44
+ "@twilio/replay-event-emitter": "^0.3.5",
44
45
  "core-js": "^3.17.3",
45
46
  "iso8601-duration": "=1.2.0",
46
47
  "isomorphic-form-data": "^2.0.0",
47
48
  "lodash.isequal": "^4.5.0",
48
- "loglevel": "^1.6.6",
49
+ "loglevel": "^1.8.0",
49
50
  "platform": "^1.3.6",
50
- "twilio-sync": "^4.0.0-rc.1",
51
- "twilsock": "^0.13.0-rc.3",
52
- "uuid": "^3.4.0"
51
+ "quick-lru": "^5.1.1",
52
+ "twilio-sync": "~3.1.0",
53
+ "twilsock": "~0.12.2",
54
+ "uuid": "^3.4.0",
55
+ "xmlhttprequest": "^1.8.0"
53
56
  },
54
57
  "devDependencies": {
55
58
  "@babel/core": "^7.17.0",
@@ -59,6 +62,7 @@
59
62
  "@rollup/plugin-commonjs": "^19.0.0",
60
63
  "@rollup/plugin-json": "^4.1.0",
61
64
  "@rollup/plugin-node-resolve": "^13.2.1",
65
+ "@rollup/plugin-replace": "^5.0.2",
62
66
  "@types/chai": "^4.2.5",
63
67
  "@types/chai-as-promised": "^7.1.2",
64
68
  "@types/chai-string": "^1.4.1",
@@ -67,12 +71,12 @@
67
71
  "@types/node": "^12.12.12",
68
72
  "@types/sinon": "^10.0.0",
69
73
  "@types/sinon-chai": "^3.2.2",
70
- "@typescript-eslint/eslint-plugin": "5.4.0",
71
- "@typescript-eslint/parser": "5.4.0",
74
+ "@typescript-eslint/eslint-plugin": "^5.51.0",
75
+ "@typescript-eslint/parser": "^5.51.0",
72
76
  "async": "^3.0.1",
73
77
  "async-test-tools": "^1.0.7",
74
78
  "backoff": "^2.5.0",
75
- "browserslist": "^4.20.3",
79
+ "browserslist": "4.21.7",
76
80
  "chai": "^4.2.0",
77
81
  "chai-as-promised": "^7.1.1",
78
82
  "chai-spies": "^1.0.0",
package/CHANGELOG.md DELETED
@@ -1,509 +0,0 @@
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.9](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@3.0.0-rc.8...@twilio/conversations@3.0.0-rc.9) (2022-05-19)
7
-
8
- **Note:** Version bump only for package @twilio/conversations
9
-
10
-
11
-
12
-
13
-
14
- ## [3.0.0-rc.8](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@3.0.0-rc.7...@twilio/conversations@3.0.0-rc.8) (2022-05-18)
15
-
16
-
17
- ### Bug Fixes
18
-
19
- * Fix convo 3.0 docs, and disconnecting client issue ([c65cf01](https://github.com/twilio/rtd-sdk-monorepo-js/commit/c65cf011406a80ca83da7ecba961aa31caf061bf))
20
- * Fix double parsing participant attributes ([682ed94](https://github.com/twilio/rtd-sdk-monorepo-js/commit/682ed94c791a4b2bc9dac6aa987f9aae80201365))
21
-
22
-
23
- ### Reverts
24
-
25
- * Revert "chore(release): Publish" ([097a200](https://github.com/twilio/rtd-sdk-monorepo-js/commit/097a2004f233688bf9a97d1defc976a9fb5da96d))
26
- * Revert "chore(release): Publish" ([03b27ca](https://github.com/twilio/rtd-sdk-monorepo-js/commit/03b27ca9830bc6aba2d37febebe6e53f7abddb2d))
27
-
28
-
29
-
30
- ## [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)
31
-
32
-
33
- ### Bug Fixes
34
-
35
- * Add cancellable promise export from conversations ([04bd2fc](https://github.com/twilio/rtd-sdk-monorepo-js/commit/04bd2fc10ca1331fbcddf94a186eec351ea922f1))
36
- * Fix promise cancelling retrier ([9b30ce2](https://github.com/twilio/rtd-sdk-monorepo-js/commit/9b30ce2750b7447f28e745513f7e1a29e2c48127))
37
- * Make stateChanged failed error informative ([a301fdb](https://github.com/twilio/rtd-sdk-monorepo-js/commit/a301fdbe0950a87d0c12ee55688d461bd603cbda))
38
- * Map media to empty medias field ([75ee36d](https://github.com/twilio/rtd-sdk-monorepo-js/commit/75ee36d600ec19a45ac5e471c61b6c68bdc47bc8))
39
- * Parse APN with undefined alert ([f1d86d8](https://github.com/twilio/rtd-sdk-monorepo-js/commit/f1d86d86d949f8dd6eb96526364bf8c68067a403))
40
-
41
-
42
-
43
- ## [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)
44
-
45
- **Note:** Version bump only for package @twilio/conversations
46
-
47
-
48
-
49
-
50
-
51
- ## [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)
52
-
53
-
54
- ### ⚠ BREAKING CHANGES
55
-
56
- * Participant add methods now return the added participants
57
-
58
- ### Features
59
-
60
- * Participant add methods now return the added participants ([6547478](https://github.com/twilio/rtd-sdk-monorepo-js/commit/6547478aaa3c358c9f78e2c2c178c9eb36b28485))
61
-
62
-
63
- ### Bug Fixes
64
-
65
- * Add runtime validation, fix error messages wording ([c03fd6c](https://github.com/twilio/rtd-sdk-monorepo-js/commit/c03fd6cda5b38032916835734ea002799f460eec))
66
- * Add runtime validation, fix error messages wording ([e0e986d](https://github.com/twilio/rtd-sdk-monorepo-js/commit/e0e986d33ac7a5a0c98588dc38ffbd41a22b823e))
67
- * Fix faulty type definitions by upgrading tooling ([b6d25ce](https://github.com/twilio/rtd-sdk-monorepo-js/commit/b6d25cecb08ab4e0d369430b90a786e1b275af91))
68
- * Update pinning tools to new Python version ([50a6c78](https://github.com/twilio/rtd-sdk-monorepo-js/commit/50a6c78b9d717b0e7531919e1f7cb409474c3df5))
69
-
70
-
71
-
72
- ## [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)
73
-
74
-
75
- ### Features
76
-
77
- * Migrate Twilsock to ReplayEventEmitter ([6db99dd](https://github.com/twilio/rtd-sdk-monorepo-js/commit/6db99dd3cc207298870aff1835acad6f866d7c05))
78
-
79
-
80
- ### Bug Fixes
81
-
82
- * Fix client initialization when a connected Twilsock is passed ([49aa87e](https://github.com/twilio/rtd-sdk-monorepo-js/commit/49aa87ecc8cc0dd30ac56fd563fb4a2af832610b))
83
- * Fix push notification data type ([fa44301](https://github.com/twilio/rtd-sdk-monorepo-js/commit/fa44301c985f23efa5a7299d2987ba3772d51a24))
84
-
85
-
86
-
87
- ## [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)
88
-
89
- **Note:** Version bump only for package @twilio/conversations
90
-
91
-
92
-
93
-
94
-
95
- ## [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)
96
-
97
- **Note:** Version bump only for package @twilio/conversations
98
-
99
-
100
-
101
-
102
-
103
- ## [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)
104
-
105
- **Note:** Version bump only for package @twilio/conversations
106
-
107
-
108
-
109
-
110
-
111
- ## [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)
112
-
113
- **Note:** Version bump only for package @twilio/conversations
114
-
115
-
116
-
117
-
118
-
119
- ## [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)
120
-
121
-
122
- ### Bug Fixes
123
-
124
- * Allow undefined for email get methods ([a753060](https://github.com/twilio/rtd-sdk-monorepo-js/commit/a75306021603e2bfb770d60f3834674b04069623))
125
-
126
-
127
-
128
- ## [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)
129
-
130
-
131
- ### Bug Fixes
132
-
133
- * Make message.participantSid nullable ([86a90d4](https://github.com/twilio/rtd-sdk-monorepo-js/commit/86a90d4e76334b6581d7bb3214f97417606b2c55))
134
-
135
-
136
-
137
- ## [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)
138
-
139
- **Note:** Version bump only for package @twilio/conversations
140
-
141
-
142
-
143
-
144
-
145
- ## [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)
146
-
147
- **Note:** Version bump only for package @twilio/conversations
148
-
149
-
150
-
151
-
152
-
153
- ## [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)
154
-
155
- **Note:** Version bump only for package @twilio/conversations
156
-
157
-
158
-
159
-
160
-
161
- ## [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)
162
-
163
-
164
- ### Bug Fixes
165
-
166
- * Fix media SID attachment ([e260ea7](https://github.com/twilio/rtd-sdk-monorepo-js/commit/e260ea7963328450043cbd4ade76cb9f230e1240))
167
- * Fix type error ([460557d](https://github.com/twilio/rtd-sdk-monorepo-js/commit/460557db8551d70a17e653fc92eb034ea36d3f5d))
168
-
169
-
170
-
171
- ## [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)
172
-
173
-
174
- ### Bug Fixes
175
-
176
- * Fix last read message index not getting properly resolved in events ([97ea57f](https://github.com/twilio/rtd-sdk-monorepo-js/commit/97ea57f8a8dc76521601ced925237b64044d558a))
177
-
178
-
179
-
180
- ## [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)
181
-
182
-
183
- ### Features
184
-
185
- * Add bindings to Participant & Conversation ([56afcc3](https://github.com/twilio/rtd-sdk-monorepo-js/commit/56afcc38020f024e0ec952117cb5dcc6e4f61e92))
186
- * Add email body and history accessors ([be2de67](https://github.com/twilio/rtd-sdk-monorepo-js/commit/be2de674c5215a3054665756c85a22e35d145f58))
187
- * Update MessageBuilder to support email payload ([ee0d00a](https://github.com/twilio/rtd-sdk-monorepo-js/commit/ee0d00a8c7e1dea478000731018c89fd2b8eb6c2))
188
- * Use shared attributesValidator ([6d2a13f](https://github.com/twilio/rtd-sdk-monorepo-js/commit/6d2a13f87e9ad445399e5615a2eb6e4fe8b9518e))
189
-
190
-
191
- ### Bug Fixes
192
-
193
- * Fix bindings update always coming in participantUpdated reasons ([70f554d](https://github.com/twilio/rtd-sdk-monorepo-js/commit/70f554d3b81e3f662abc4e9a573aec6028c24c9d))
194
- * Fix docs and signatures for single media. ([99d3512](https://github.com/twilio/rtd-sdk-monorepo-js/commit/99d3512ef5c382fe19346f0ebefe8902e332abad))
195
- * Improve validator for attachTemporaryUrlsFor ([3e9f199](https://github.com/twilio/rtd-sdk-monorepo-js/commit/3e9f199464b4891b2d114ebdc71bcbe8c2fefd76))
196
- * Invalid access when no email media attached ([6b1a40d](https://github.com/twilio/rtd-sdk-monorepo-js/commit/6b1a40de5a477b8047362074673788ee5ee45732))
197
- * Prevent use of FormData in non-browser environment ([eaa2ba4](https://github.com/twilio/rtd-sdk-monorepo-js/commit/eaa2ba495506508ac531a257d78696d297581a64))
198
- * Remove old conflicts ([2c505e7](https://github.com/twilio/rtd-sdk-monorepo-js/commit/2c505e76e054274ac3dd4352b2c951189311d67b))
199
-
200
-
201
-
202
- ### [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)
203
-
204
-
205
- ### Bug Fixes
206
-
207
- * Fix import isomorphic form data to conversations ([22d0712](https://github.com/twilio/rtd-sdk-monorepo-js/commit/22d0712e50b74690788642382a5f9d091d9c349d))
208
-
209
-
210
-
211
- ### [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)
212
-
213
- **Note:** Version bump only for package @twilio/conversations
214
-
215
-
216
-
217
-
218
-
219
- ### [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)
220
-
221
- **Note:** Version bump only for package @twilio/conversations
222
-
223
-
224
-
225
-
226
-
227
- ### [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)
228
-
229
- **Note:** Version bump only for package @twilio/conversations
230
-
231
-
232
-
233
-
234
-
235
- ### [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)
236
-
237
-
238
- ### Bug Fixes
239
-
240
- * Remove the post-install script in favour of the "react-native" option ([0fe352d](https://github.com/twilio/rtd-sdk-monorepo-js/commit/0fe352d45e50cec78e880affee589009055d5338))
241
-
242
-
243
-
244
- ### [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)
245
-
246
-
247
- ### Bug Fixes
248
-
249
- * Fix the post-install script (yet again) ([c8cb1ee](https://github.com/twilio/rtd-sdk-monorepo-js/commit/c8cb1ee501d1c793497985592d2c1ae97162a219))
250
-
251
-
252
-
253
- ### [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)
254
-
255
-
256
- ### Bug Fixes
257
-
258
- * Fix getChannelBySid returning wrong channels issue ([3eeaf1f](https://github.com/twilio/rtd-sdk-monorepo-js/commit/3eeaf1fc64d77c48305ff7c43b8a92c81e6ead7b))
259
- * Fix the post-install script to be runnable cross-platform ([a16eede](https://github.com/twilio/rtd-sdk-monorepo-js/commit/a16eede598dd3dbdda1997fbd2033fa2254f113f))
260
-
261
-
262
-
263
- ### [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)
264
-
265
-
266
- ### Bug Fixes
267
-
268
- * Bump Node required version to current LTS (14) ([ee272b3](https://github.com/twilio/rtd-sdk-monorepo-js/commit/ee272b350f4556a454a18a8aa192c37b54aaaeeb))
269
-
270
-
271
-
272
- ### [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)
273
-
274
- **Note:** Version bump only for package @twilio/conversations
275
-
276
-
277
-
278
-
279
-
280
- ### [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)
281
-
282
- **Note:** Version bump only for package @twilio/conversations
283
-
284
-
285
-
286
-
287
-
288
- ### [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)
289
-
290
- **Note:** Version bump only for package @twilio/conversations
291
-
292
-
293
-
294
-
295
-
296
- ## [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)
297
-
298
-
299
- ### Bug Fixes
300
-
301
- * Add an export to NotificationTypes ([0986564](https://github.com/twilio/rtd-sdk-monorepo-js/commit/09865645750f8ae2f930471284de9d9f7445f1e8))
302
-
303
-
304
-
305
- ## [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)
306
-
307
-
308
- ### Bug Fixes
309
-
310
- * Fix passing JSON attributes into conversation.addNonChatParticipant ([c3da243](https://github.com/twilio/rtd-sdk-monorepo-js/commit/c3da243469f5c33663c756d9f714a38240c4dd48))
311
-
312
-
313
-
314
- ## [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)
315
-
316
- **Note:** Version bump only for package @twilio/conversations
317
-
318
-
319
-
320
-
321
-
322
- ## [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)
323
-
324
-
325
- ### ⚠ BREAKING CHANGES
326
-
327
- * Disallow null Conversation.updateFriendlyName
328
- * Disallow null for client options
329
- * Remove default exports from Conversations
330
- * Client.reachabilityEnabled can now throw an error.
331
-
332
- ### Bug Fixes
333
-
334
- * Add missing exports ([74d08ce](https://github.com/twilio/rtd-sdk-monorepo-js/commit/74d08ce00a8a4cf0b961dde3570f5c7bd7a1e1f9))
335
- * Allow all JSON values as properties in addNonChatParticipant ([ddbea1c](https://github.com/twilio/rtd-sdk-monorepo-js/commit/ddbea1c0d0d26b488661ef123883316f7926b456))
336
- * Disallow null Conversation.updateFriendlyName ([7e4b556](https://github.com/twilio/rtd-sdk-monorepo-js/commit/7e4b5563e2a016f1904d9b37cfc063592712f0a6))
337
- * Disallow null for client options ([c5435f9](https://github.com/twilio/rtd-sdk-monorepo-js/commit/c5435f9fb9dadf11483e2c7884c334a040c06330))
338
- * Fix client user initialization problem ([043546d](https://github.com/twilio/rtd-sdk-monorepo-js/commit/043546d872300fda4db70d9c04461f944dfa5936))
339
- * Remove default exports from Conversations ([38e2e24](https://github.com/twilio/rtd-sdk-monorepo-js/commit/38e2e24512425da4ba0f1670dcf37d8ccf1ac67e))
340
- * Reset currentState on push unregister ([590991c](https://github.com/twilio/rtd-sdk-monorepo-js/commit/590991c841a78b3c7e88a05629090a2de5a8f9da))
341
- * Resubscribe to push notification on re-register ([709847f](https://github.com/twilio/rtd-sdk-monorepo-js/commit/709847f8462890214197cf1af769f41b56bfbccc))
342
- * Throw an error if reachabilityEnabled was accessed before client init ([3fd3293](https://github.com/twilio/rtd-sdk-monorepo-js/commit/3fd32937d7e42d6df815efab35ded3b93a671556))
343
- * UnsentMessage.send now returns a proper value ([c71a0a9](https://github.com/twilio/rtd-sdk-monorepo-js/commit/c71a0a9a9618c09f5d02dbee6bc2d122d9008383))
344
-
345
-
346
-
347
- ## [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)
348
-
349
-
350
- ### ⚠ BREAKING CHANGES
351
-
352
- * User.updateFriendlyName no longer accepts
353
- null as the value.
354
- * Passing null to Conversation.sendMessage
355
- will result with the message body being empty.
356
-
357
- ### Features
358
-
359
- * Add getCachedTemporaryUrl() ([c453e70](https://github.com/twilio/rtd-sdk-monorepo-js/commit/c453e70d0e0bc8bb6f0cd80ef0e2a3309b5ba804))
360
- * Add limits support ([b471295](https://github.com/twilio/rtd-sdk-monorepo-js/commit/b4712954bf6f0cf82c47c77b96a98ed1ebe9c158))
361
- * Add Media category field ([0672c20](https://github.com/twilio/rtd-sdk-monorepo-js/commit/0672c202d000736dda37be66387692e2befe24bd))
362
- * Add mediaSet GET operation support ([424bd4a](https://github.com/twilio/rtd-sdk-monorepo-js/commit/424bd4abe42312ea01740bc142ed1c6ec3b1913d))
363
- * Add multiple media accessors ([99e78e6](https://github.com/twilio/rtd-sdk-monorepo-js/commit/99e78e6239b87d36b23e6bbbd0bc68f19b869f85))
364
- * Add sendMessageV2 and prepareMessage() builder ([fd5ae39](https://github.com/twilio/rtd-sdk-monorepo-js/commit/fd5ae39816e45cce83a37120bfff3f2d530f09d3))
365
- * Allow specifying filename when uploading media file ([abd6126](https://github.com/twilio/rtd-sdk-monorepo-js/commit/abd61266135b14c27c3d076c009a3fd331a0f810))
366
- * Dispose of session in favour of the sessionless protocol ([8b46fbd](https://github.com/twilio/rtd-sdk-monorepo-js/commit/8b46fbdac04d7e2cf55a74fb13b3016661f869b8))
367
- * Do not filter out body for media messages ([3eeeabc](https://github.com/twilio/rtd-sdk-monorepo-js/commit/3eeeabc7c32b2798bef40e50466610d155aa68e5))
368
-
369
-
370
- ### Bug Fixes
371
-
372
- * Add token update for notificationClient ([5cda351](https://github.com/twilio/rtd-sdk-monorepo-js/commit/5cda3513c0df4aac8df01034d2764bb0e970a476))
373
- * Default addNonChatParticipant options to empty if not provided ([84e205b](https://github.com/twilio/rtd-sdk-monorepo-js/commit/84e205b7e4c4c2faebce6fe79521751765dde8c5))
374
- * Deprecate unsetPushRegistrationId and add removePushRegistrations ([82ef892](https://github.com/twilio/rtd-sdk-monorepo-js/commit/82ef892537942efd1e47302dad33086a2d8a5f22))
375
- * Fix setPushRegistrationId and unsetPushRegistrationId impls ([9120a65](https://github.com/twilio/rtd-sdk-monorepo-js/commit/9120a65834c9fb38c184c55bfa961d2e1cddb8ca))
376
- * Return correct type from function ([5353810](https://github.com/twilio/rtd-sdk-monorepo-js/commit/5353810e32de201415f1e93d25d1b679eac2d974))
377
- * Streamline Message state initialization ([a29331f](https://github.com/twilio/rtd-sdk-monorepo-js/commit/a29331f3d7e75ed85d4919efd67a5766482af06b))
378
-
379
-
380
- ### Code Refactoring
381
-
382
- * Migrate to Sessionless EditUser command ([060b96b](https://github.com/twilio/rtd-sdk-monorepo-js/commit/060b96b5019311a47e7fdb71b12cbdd4996f3e44))
383
- * Migrate to Sessionless SendMessage command ([997e17f](https://github.com/twilio/rtd-sdk-monorepo-js/commit/997e17fd04426aebe04e1fa734752aee4ddecaf5))
384
-
385
-
386
-
387
- ## [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)
388
-
389
-
390
- ### ⚠ BREAKING CHANGES
391
-
392
- * Add init registrations
393
- * Use twilsock connection state
394
-
395
- ### Features
396
-
397
- * Add init registrations ([d09c52d](https://github.com/twilio/rtd-sdk-monorepo-js/commit/d09c52d2b1894fb0db2e3a084937350ee1a73f01))
398
- * Export Telemetry from Twilsock ([eb261ec](https://github.com/twilio/rtd-sdk-monorepo-js/commit/eb261ecdb366b6381462c377431735c5c09f1094))
399
- * Use twilsock connection state ([2a6a4be](https://github.com/twilio/rtd-sdk-monorepo-js/commit/2a6a4be6384037ca80f1a02663cb126cbff3797a))
400
-
401
-
402
- ### Bug Fixes
403
-
404
- * Fix getMessages()' usage of sync pagination ([4563227](https://github.com/twilio/rtd-sdk-monorepo-js/commit/45632271337affeb3af7dcf8bec78b555b5db6b1))
405
- * Start client connection state in 'unknown' ([a78acd1](https://github.com/twilio/rtd-sdk-monorepo-js/commit/a78acd1e5dde7532cfd64ed6ed09178d5009399e))
406
- * Use Transport from Twilsock ([7f0ce1e](https://github.com/twilio/rtd-sdk-monorepo-js/commit/7f0ce1e8e74b39d38cb4feff685e19807cba5ff0))
407
-
408
-
409
-
410
- ### [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)
411
-
412
- **Note:** Version bump only for package @twilio/conversations
413
-
414
-
415
-
416
-
417
-
418
- ### [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)
419
-
420
- **Note:** Version bump only for package @twilio/conversations
421
-
422
-
423
-
424
-
425
-
426
- ### [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)
427
-
428
- **Note:** Version bump only for package @twilio/conversations
429
-
430
-
431
-
432
-
433
-
434
- ### [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)
435
-
436
- **Note:** Version bump only for package @twilio/conversations
437
-
438
-
439
-
440
-
441
-
442
- ### [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)
443
-
444
- **Note:** Version bump only for package @twilio/conversations
445
-
446
-
447
-
448
-
449
-
450
- ### [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)
451
-
452
- **Note:** Version bump only for package @twilio/conversations
453
-
454
-
455
-
456
-
457
-
458
- ### [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)
459
-
460
- **Note:** Version bump only for package @twilio/conversations
461
-
462
-
463
-
464
-
465
-
466
- ### [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)
467
-
468
- **Note:** Version bump only for package @twilio/conversations
469
-
470
-
471
-
472
-
473
-
474
- ### [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)
475
-
476
- **Note:** Version bump only for package @twilio/conversations
477
-
478
-
479
-
480
-
481
-
482
- ### [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)
483
-
484
-
485
- ### Bug Fixes
486
-
487
- * Fix Rollup type export issue ([02f9d73](https://github.com/twilio/rtd-sdk-monorepo-js/commit/02f9d7307ce982afbd1a8e92f8e8bdd6646b74f0))
488
-
489
-
490
-
491
- ### [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)
492
-
493
- **Note:** Version bump only for package @twilio/conversations
494
-
495
-
496
-
497
-
498
-
499
- ### [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)
500
-
501
- **Note:** Version bump only for package @twilio/conversations
502
-
503
-
504
-
505
-
506
-
507
- ### 1.2.3-rc.0 (2021-08-23)
508
-
509
- **Note:** Version bump only for package @twilio/conversations
@@ -1 +0,0 @@
1
- {"version":3,"file":"attributes.js","sources":["../../src/interfaces/attributes.ts"],"sourcesContent":["import { custom } from \"@twilio/declarative-type-validator\";\n\n// Any JSON value\nexport const attributesValidator = custom((value) => [\n [\"string\", \"number\", \"boolean\", \"object\"].includes(typeof value),\n \"a JSON type\",\n]);\n\nexport const optionalAttributesValidator = custom((value) => [\n [\"undefined\", \"string\", \"number\", \"boolean\", \"object\"].includes(typeof value),\n \"an optional JSON type\",\n]);\n"],"names":["custom"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA;AACa,MAAA,mBAAmB,GAAGA,+BAAM,CAAC,CAAC,KAAK,KAAK;AACnD,IAAA,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,KAAK,CAAC;IAChE,aAAa;AACd,CAAA,EAAE;AAEU,MAAA,2BAA2B,GAAGA,+BAAM,CAAC,CAAC,KAAK,KAAK;AAC3D,IAAA,CAAC,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,KAAK,CAAC;IAC7E,uBAAuB;AACxB,CAAA;;;;;"}