@twilio/conversations 2.1.0 → 3.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/builds/browser.js +1193 -690
- package/builds/browser.js.map +1 -1
- package/builds/lib.d.ts +248 -130
- package/builds/lib.js +1193 -690
- package/builds/lib.js.map +1 -1
- package/builds/twilio-conversations.js +1903 -1215
- package/builds/twilio-conversations.min.js +2 -2
- package/dist/client.js +403 -279
- package/dist/client.js.map +1 -1
- package/dist/command-executor.js.map +1 -1
- package/dist/configuration.js +2 -2
- package/dist/configuration.js.map +1 -1
- package/dist/data/messages.js +39 -19
- package/dist/data/messages.js.map +1 -1
- package/dist/media.js +36 -25
- package/dist/media.js.map +1 -1
- package/dist/message-builder.js +24 -18
- package/dist/message-builder.js.map +1 -1
- package/dist/message.js +46 -19
- package/dist/message.js.map +1 -1
- package/dist/packages/conversations/package.json.js +1 -1
- package/dist/unsent-message.js +13 -3
- package/dist/unsent-message.js.map +1 -1
- package/docs/assets/js/search.js +1 -1
- package/docs/classes/Client.html +205 -33
- package/docs/classes/Media.html +2 -28
- package/docs/classes/Message.html +94 -39
- package/docs/classes/MessageBuilder.html +31 -8
- package/docs/classes/UnsentMessage.html +2 -2
- package/docs/index.html +4 -2
- package/docs/interfaces/ConversationLimits.html +12 -12
- package/docs/modules.html +4 -2
- package/package.json +4 -3
@@ -2753,9 +2753,6 @@ img {
|
|
2753
2753
|
<li class=" tsd-kind-get-signature tsd-parent-kind-class">
|
2754
2754
|
<a href="Message.html#type" class="tsd-kind-icon">type</a>
|
2755
2755
|
</li>
|
2756
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
2757
|
-
<a href="Message.html#attachTemporaryUrlsFor" class="tsd-kind-icon">attach<wbr>Temporary<wbr>Urls<wbr>For</a>
|
2758
|
-
</li>
|
2759
2756
|
<li class=" tsd-kind-method tsd-parent-kind-class">
|
2760
2757
|
<a href="Message.html#getDetailedDeliveryReceipts" class="tsd-kind-icon">get<wbr>Detailed<wbr>Delivery<wbr>Receipts</a>
|
2761
2758
|
</li>
|
@@ -2766,11 +2763,20 @@ img {
|
|
2766
2763
|
<a href="Message.html#getEmailHistory" class="tsd-kind-icon">get<wbr>Email<wbr>History</a>
|
2767
2764
|
</li>
|
2768
2765
|
<li class=" tsd-kind-method tsd-parent-kind-class">
|
2769
|
-
<a href="Message.html#
|
2766
|
+
<a href="Message.html#getMediaByCategories" class="tsd-kind-icon">get<wbr>Media<wbr>ByCategories</a>
|
2770
2767
|
</li>
|
2771
2768
|
<li class=" tsd-kind-method tsd-parent-kind-class">
|
2772
2769
|
<a href="Message.html#getParticipant" class="tsd-kind-icon">get<wbr>Participant</a>
|
2773
2770
|
</li>
|
2771
|
+
<li class=" tsd-kind-method tsd-parent-kind-class">
|
2772
|
+
<a href="Message.html#getTemporaryContentUrlsForAttachedMedia" class="tsd-kind-icon">get<wbr>Temporary<wbr>Content<wbr>Urls<wbr>For<wbr>Attached<wbr>Media</a>
|
2773
|
+
</li>
|
2774
|
+
<li class=" tsd-kind-method tsd-parent-kind-class">
|
2775
|
+
<a href="Message.html#getTemporaryContentUrlsForMedia" class="tsd-kind-icon">get<wbr>Temporary<wbr>Content<wbr>Urls<wbr>For<wbr>Media</a>
|
2776
|
+
</li>
|
2777
|
+
<li class=" tsd-kind-method tsd-parent-kind-class">
|
2778
|
+
<a href="Message.html#getTemporaryContentUrlsForMediaSids" class="tsd-kind-icon">get<wbr>Temporary<wbr>Content<wbr>Urls<wbr>For<wbr>Media<wbr>Sids</a>
|
2779
|
+
</li>
|
2774
2780
|
<li class=" tsd-kind-method tsd-parent-kind-class">
|
2775
2781
|
<a href="Message.html#remove" class="tsd-kind-icon">remove</a>
|
2776
2782
|
</li>
|
@@ -2839,12 +2845,14 @@ img {
|
|
2839
2845
|
<section class="tsd-index-section ">
|
2840
2846
|
<h3>Methods</h3>
|
2841
2847
|
<ul class="tsd-index-list">
|
2842
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Message.html#attachTemporaryUrlsFor" class="tsd-kind-icon">attach<wbr>Temporary<wbr>Urls<wbr>For</a></li>
|
2843
2848
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Message.html#getDetailedDeliveryReceipts" class="tsd-kind-icon">get<wbr>Detailed<wbr>Delivery<wbr>Receipts</a></li>
|
2844
2849
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Message.html#getEmailBody" class="tsd-kind-icon">get<wbr>Email<wbr>Body</a></li>
|
2845
2850
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Message.html#getEmailHistory" class="tsd-kind-icon">get<wbr>Email<wbr>History</a></li>
|
2846
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Message.html#
|
2851
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Message.html#getMediaByCategories" class="tsd-kind-icon">get<wbr>Media<wbr>ByCategories</a></li>
|
2847
2852
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Message.html#getParticipant" class="tsd-kind-icon">get<wbr>Participant</a></li>
|
2853
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Message.html#getTemporaryContentUrlsForAttachedMedia" class="tsd-kind-icon">get<wbr>Temporary<wbr>Content<wbr>Urls<wbr>For<wbr>Attached<wbr>Media</a></li>
|
2854
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Message.html#getTemporaryContentUrlsForMedia" class="tsd-kind-icon">get<wbr>Temporary<wbr>Content<wbr>Urls<wbr>For<wbr>Media</a></li>
|
2855
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Message.html#getTemporaryContentUrlsForMediaSids" class="tsd-kind-icon">get<wbr>Temporary<wbr>Content<wbr>Urls<wbr>For<wbr>Media<wbr>Sids</a></li>
|
2848
2856
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Message.html#remove" class="tsd-kind-icon">remove</a></li>
|
2849
2857
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Message.html#updateAttributes" class="tsd-kind-icon">update<wbr>Attributes</a></li>
|
2850
2858
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="Message.html#updateBody" class="tsd-kind-icon">update<wbr>Body</a></li>
|
@@ -3170,34 +3178,6 @@ img {
|
|
3170
3178
|
</section>
|
3171
3179
|
<section class="tsd-panel-group tsd-member-group ">
|
3172
3180
|
<h2>Methods</h2>
|
3173
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
3174
|
-
<a name="attachTemporaryUrlsFor" class="tsd-anchor"></a>
|
3175
|
-
<h3>attach<wbr>Temporary<wbr>Urls<wbr>For</h3>
|
3176
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
3177
|
-
<li class="tsd-signature tsd-kind-icon">attach<wbr>Temporary<wbr>Urls<wbr>For<span class="tsd-signature-symbol">(</span>contentSet<span class="tsd-signature-symbol">: </span><a href="Media.html" class="tsd-signature-type" data-tsd-kind="Class">Media</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="Media.html" class="tsd-signature-type" data-tsd-kind="Class">Media</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">></span></li>
|
3178
|
-
</ul>
|
3179
|
-
<ul class="tsd-descriptions">
|
3180
|
-
<li class="tsd-description">
|
3181
|
-
<aside class="tsd-sources">
|
3182
|
-
</aside>
|
3183
|
-
<div class="tsd-comment tsd-typography">
|
3184
|
-
<div class="lead">
|
3185
|
-
<p>Get content URLs for all media attachments in the given set using single operation.</p>
|
3186
|
-
</div>
|
3187
|
-
</div>
|
3188
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
3189
|
-
<ul class="tsd-parameters">
|
3190
|
-
<li>
|
3191
|
-
<h5>contentSet: <a href="Media.html" class="tsd-signature-type" data-tsd-kind="Class">Media</a><span class="tsd-signature-symbol">[]</span></h5>
|
3192
|
-
<div class="tsd-comment tsd-typography">
|
3193
|
-
<p>Set of media attachments to query for content URL.</p>
|
3194
|
-
</div>
|
3195
|
-
</li>
|
3196
|
-
</ul>
|
3197
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="Media.html" class="tsd-signature-type" data-tsd-kind="Class">Media</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">></span></h4>
|
3198
|
-
</li>
|
3199
|
-
</ul>
|
3200
|
-
</section>
|
3201
3181
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
3202
3182
|
<a name="getDetailedDeliveryReceipts" class="tsd-anchor"></a>
|
3203
3183
|
<h3>get<wbr>Detailed<wbr>Delivery<wbr>Receipts</h3>
|
@@ -3230,7 +3210,7 @@ img {
|
|
3230
3210
|
<div class="tsd-comment tsd-typography">
|
3231
3211
|
<div class="lead">
|
3232
3212
|
<p>Get a media descriptor for an email body attachment of a provided type.
|
3233
|
-
Allowed body types are returned in the Conversation.limits().
|
3213
|
+
Allowed body types are returned in the Conversation.limits().emailBodiesAllowedContentTypes array.</p>
|
3234
3214
|
</div>
|
3235
3215
|
</div>
|
3236
3216
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
@@ -3259,7 +3239,7 @@ img {
|
|
3259
3239
|
<div class="tsd-comment tsd-typography">
|
3260
3240
|
<div class="lead">
|
3261
3241
|
<p>Get a media descriptor for an email history attachment of a provided type.
|
3262
|
-
Allowed body types are returned in the Conversation.limits().
|
3242
|
+
Allowed body types are returned in the Conversation.limits().emailHistoriesAllowedContentTypes array.</p>
|
3263
3243
|
</div>
|
3264
3244
|
</div>
|
3265
3245
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
@@ -3276,10 +3256,10 @@ img {
|
|
3276
3256
|
</ul>
|
3277
3257
|
</section>
|
3278
3258
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
3279
|
-
<a name="
|
3280
|
-
<h3>get<wbr>Media<wbr>
|
3259
|
+
<a name="getMediaByCategories" class="tsd-anchor"></a>
|
3260
|
+
<h3>get<wbr>Media<wbr>ByCategories</h3>
|
3281
3261
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
3282
|
-
<li class="tsd-signature tsd-kind-icon">get<wbr>Media<wbr>
|
3262
|
+
<li class="tsd-signature tsd-kind-icon">get<wbr>Media<wbr>ByCategories<span class="tsd-signature-symbol">(</span>categories<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">MediaCategory</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="Media.html" class="tsd-signature-type" data-tsd-kind="Class">Media</a><span class="tsd-signature-symbol">[]</span></li>
|
3283
3263
|
</ul>
|
3284
3264
|
<ul class="tsd-descriptions">
|
3285
3265
|
<li class="tsd-description">
|
@@ -3324,6 +3304,81 @@ img {
|
|
3324
3304
|
</li>
|
3325
3305
|
</ul>
|
3326
3306
|
</section>
|
3307
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
3308
|
+
<a name="getTemporaryContentUrlsForAttachedMedia" class="tsd-anchor"></a>
|
3309
|
+
<h3>get<wbr>Temporary<wbr>Content<wbr>Urls<wbr>For<wbr>Attached<wbr>Media</h3>
|
3310
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
3311
|
+
<li class="tsd-signature tsd-kind-icon">get<wbr>Temporary<wbr>Content<wbr>Urls<wbr>For<wbr>Attached<wbr>Media<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">CancellablePromise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Map</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span></li>
|
3312
|
+
</ul>
|
3313
|
+
<ul class="tsd-descriptions">
|
3314
|
+
<li class="tsd-description">
|
3315
|
+
<aside class="tsd-sources">
|
3316
|
+
</aside>
|
3317
|
+
<div class="tsd-comment tsd-typography">
|
3318
|
+
<div class="lead">
|
3319
|
+
<p>Get content URLs for all media attached to the message.</p>
|
3320
|
+
</div>
|
3321
|
+
</div>
|
3322
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">CancellablePromise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Map</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span></h4>
|
3323
|
+
</li>
|
3324
|
+
</ul>
|
3325
|
+
</section>
|
3326
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
3327
|
+
<a name="getTemporaryContentUrlsForMedia" class="tsd-anchor"></a>
|
3328
|
+
<h3>get<wbr>Temporary<wbr>Content<wbr>Urls<wbr>For<wbr>Media</h3>
|
3329
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
3330
|
+
<li class="tsd-signature tsd-kind-icon">get<wbr>Temporary<wbr>Content<wbr>Urls<wbr>For<wbr>Media<span class="tsd-signature-symbol">(</span>contentSet<span class="tsd-signature-symbol">: </span><a href="Media.html" class="tsd-signature-type" data-tsd-kind="Class">Media</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">CancellablePromise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Map</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span></li>
|
3331
|
+
</ul>
|
3332
|
+
<ul class="tsd-descriptions">
|
3333
|
+
<li class="tsd-description">
|
3334
|
+
<aside class="tsd-sources">
|
3335
|
+
</aside>
|
3336
|
+
<div class="tsd-comment tsd-typography">
|
3337
|
+
<div class="lead">
|
3338
|
+
<p>Get content URLs for all media attachments in the given set using a single operation.</p>
|
3339
|
+
</div>
|
3340
|
+
</div>
|
3341
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
3342
|
+
<ul class="tsd-parameters">
|
3343
|
+
<li>
|
3344
|
+
<h5>contentSet: <a href="Media.html" class="tsd-signature-type" data-tsd-kind="Class">Media</a><span class="tsd-signature-symbol">[]</span></h5>
|
3345
|
+
<div class="tsd-comment tsd-typography">
|
3346
|
+
<p>Set of media attachments to query content URLs.</p>
|
3347
|
+
</div>
|
3348
|
+
</li>
|
3349
|
+
</ul>
|
3350
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">CancellablePromise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Map</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span></h4>
|
3351
|
+
</li>
|
3352
|
+
</ul>
|
3353
|
+
</section>
|
3354
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
3355
|
+
<a name="getTemporaryContentUrlsForMediaSids" class="tsd-anchor"></a>
|
3356
|
+
<h3>get<wbr>Temporary<wbr>Content<wbr>Urls<wbr>For<wbr>Media<wbr>Sids</h3>
|
3357
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
3358
|
+
<li class="tsd-signature tsd-kind-icon">get<wbr>Temporary<wbr>Content<wbr>Urls<wbr>For<wbr>Media<wbr>Sids<span class="tsd-signature-symbol">(</span>mediaSids<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">CancellablePromise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Map</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span></li>
|
3359
|
+
</ul>
|
3360
|
+
<ul class="tsd-descriptions">
|
3361
|
+
<li class="tsd-description">
|
3362
|
+
<aside class="tsd-sources">
|
3363
|
+
</aside>
|
3364
|
+
<div class="tsd-comment tsd-typography">
|
3365
|
+
<div class="lead">
|
3366
|
+
<p>Get content URLs for all media attachments in the given set of media sids using a single operation.</p>
|
3367
|
+
</div>
|
3368
|
+
</div>
|
3369
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
3370
|
+
<ul class="tsd-parameters">
|
3371
|
+
<li>
|
3372
|
+
<h5>mediaSids: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></h5>
|
3373
|
+
<div class="tsd-comment tsd-typography">
|
3374
|
+
<p>Set of media sids to query for the content URL.</p>
|
3375
|
+
</div>
|
3376
|
+
</li>
|
3377
|
+
</ul>
|
3378
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">CancellablePromise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Map</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span></h4>
|
3379
|
+
</li>
|
3380
|
+
</ul>
|
3381
|
+
</section>
|
3327
3382
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
3328
3383
|
<a name="remove" class="tsd-anchor"></a>
|
3329
3384
|
<h3>remove</h3>
|
@@ -2711,6 +2711,9 @@ img {
|
|
2711
2711
|
<li class=" tsd-kind-method tsd-parent-kind-class">
|
2712
2712
|
<a href="MessageBuilder.html#build" class="tsd-kind-icon">build</a>
|
2713
2713
|
</li>
|
2714
|
+
<li class=" tsd-kind-method tsd-parent-kind-class">
|
2715
|
+
<a href="MessageBuilder.html#buildAndSend" class="tsd-kind-icon">build<wbr>And<wbr>Send</a>
|
2716
|
+
</li>
|
2714
2717
|
<li class=" tsd-kind-method tsd-parent-kind-class">
|
2715
2718
|
<a href="MessageBuilder.html#setAttributes" class="tsd-kind-icon">set<wbr>Attributes</a>
|
2716
2719
|
</li>
|
@@ -2765,6 +2768,7 @@ img {
|
|
2765
2768
|
<ul class="tsd-index-list">
|
2766
2769
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="MessageBuilder.html#addMedia" class="tsd-kind-icon">add<wbr>Media</a></li>
|
2767
2770
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="MessageBuilder.html#build" class="tsd-kind-icon">build</a></li>
|
2771
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="MessageBuilder.html#buildAndSend" class="tsd-kind-icon">build<wbr>And<wbr>Send</a></li>
|
2768
2772
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="MessageBuilder.html#setAttributes" class="tsd-kind-icon">set<wbr>Attributes</a></li>
|
2769
2773
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="MessageBuilder.html#setBody" class="tsd-kind-icon">set<wbr>Body</a></li>
|
2770
2774
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="MessageBuilder.html#setEmailBody" class="tsd-kind-icon">set<wbr>Email<wbr>Body</a></li>
|
@@ -2824,6 +2828,25 @@ img {
|
|
2824
2828
|
</li>
|
2825
2829
|
</ul>
|
2826
2830
|
</section>
|
2831
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
2832
|
+
<a name="buildAndSend" class="tsd-anchor"></a>
|
2833
|
+
<h3>build<wbr>And<wbr>Send</h3>
|
2834
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
2835
|
+
<li class="tsd-signature tsd-kind-icon">build<wbr>And<wbr>Send<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">CancellablePromise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">></span></li>
|
2836
|
+
</ul>
|
2837
|
+
<ul class="tsd-descriptions">
|
2838
|
+
<li class="tsd-description">
|
2839
|
+
<aside class="tsd-sources">
|
2840
|
+
</aside>
|
2841
|
+
<div class="tsd-comment tsd-typography">
|
2842
|
+
<div class="lead">
|
2843
|
+
<p>Prepares a message and sends it to the conversation.</p>
|
2844
|
+
</div>
|
2845
|
+
</div>
|
2846
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">CancellablePromise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">></span></h4>
|
2847
|
+
</li>
|
2848
|
+
</ul>
|
2849
|
+
</section>
|
2827
2850
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
2828
2851
|
<a name="setAttributes" class="tsd-anchor"></a>
|
2829
2852
|
<h3>set<wbr>Attributes</h3>
|
@@ -2884,7 +2907,7 @@ img {
|
|
2884
2907
|
<a name="setEmailBody" class="tsd-anchor"></a>
|
2885
2908
|
<h3>set<wbr>Email<wbr>Body</h3>
|
2886
2909
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
2887
|
-
<li class="tsd-signature tsd-kind-icon">set<wbr>Email<wbr>Body<span class="tsd-signature-symbol">(</span>
|
2910
|
+
<li class="tsd-signature tsd-kind-icon">set<wbr>Email<wbr>Body<span class="tsd-signature-symbol">(</span>contentType<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, body<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">FormData</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/SendMediaOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">SendMediaOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="MessageBuilder.html" class="tsd-signature-type" data-tsd-kind="Class">MessageBuilder</a></li>
|
2888
2911
|
</ul>
|
2889
2912
|
<ul class="tsd-descriptions">
|
2890
2913
|
<li class="tsd-description">
|
@@ -2892,13 +2915,13 @@ img {
|
|
2892
2915
|
</aside>
|
2893
2916
|
<div class="tsd-comment tsd-typography">
|
2894
2917
|
<div class="lead">
|
2895
|
-
<p>Set email body with given
|
2918
|
+
<p>Set the email body with a given content type.</p>
|
2896
2919
|
</div>
|
2897
2920
|
</div>
|
2898
2921
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
2899
2922
|
<ul class="tsd-parameters">
|
2900
2923
|
<li>
|
2901
|
-
<h5>
|
2924
|
+
<h5>contentType: <span class="tsd-signature-type">string</span></h5>
|
2902
2925
|
<div class="tsd-comment tsd-typography">
|
2903
2926
|
<p>Format of the body to set (text/plain or text/html).</p>
|
2904
2927
|
</div>
|
@@ -2906,7 +2929,7 @@ img {
|
|
2906
2929
|
<li>
|
2907
2930
|
<h5>body: <span class="tsd-signature-type">FormData</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/SendMediaOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">SendMediaOptions</a></h5>
|
2908
2931
|
<div class="tsd-comment tsd-typography">
|
2909
|
-
<p>Body payload in selected format.</p>
|
2932
|
+
<p>Body payload in the selected format.</p>
|
2910
2933
|
</div>
|
2911
2934
|
</li>
|
2912
2935
|
</ul>
|
@@ -2918,7 +2941,7 @@ img {
|
|
2918
2941
|
<a name="setEmailHistory" class="tsd-anchor"></a>
|
2919
2942
|
<h3>set<wbr>Email<wbr>History</h3>
|
2920
2943
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
2921
|
-
<li class="tsd-signature tsd-kind-icon">set<wbr>Email<wbr>History<span class="tsd-signature-symbol">(</span>
|
2944
|
+
<li class="tsd-signature tsd-kind-icon">set<wbr>Email<wbr>History<span class="tsd-signature-symbol">(</span>contentType<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, history<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">FormData</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/SendMediaOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">SendMediaOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="MessageBuilder.html" class="tsd-signature-type" data-tsd-kind="Class">MessageBuilder</a></li>
|
2922
2945
|
</ul>
|
2923
2946
|
<ul class="tsd-descriptions">
|
2924
2947
|
<li class="tsd-description">
|
@@ -2926,13 +2949,13 @@ img {
|
|
2926
2949
|
</aside>
|
2927
2950
|
<div class="tsd-comment tsd-typography">
|
2928
2951
|
<div class="lead">
|
2929
|
-
<p>Set email history with given
|
2952
|
+
<p>Set the email history with a given content type.</p>
|
2930
2953
|
</div>
|
2931
2954
|
</div>
|
2932
2955
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
2933
2956
|
<ul class="tsd-parameters">
|
2934
2957
|
<li>
|
2935
|
-
<h5>
|
2958
|
+
<h5>contentType: <span class="tsd-signature-type">string</span></h5>
|
2936
2959
|
<div class="tsd-comment tsd-typography">
|
2937
2960
|
<p>Format of the history to set (text/plain or text/html).</p>
|
2938
2961
|
</div>
|
@@ -2940,7 +2963,7 @@ img {
|
|
2940
2963
|
<li>
|
2941
2964
|
<h5>history: <span class="tsd-signature-type">FormData</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/SendMediaOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">SendMediaOptions</a></h5>
|
2942
2965
|
<div class="tsd-comment tsd-typography">
|
2943
|
-
<p>History payload in selected format.</p>
|
2966
|
+
<p>History payload in the selected format.</p>
|
2944
2967
|
</div>
|
2945
2968
|
</li>
|
2946
2969
|
</ul>
|
@@ -2748,7 +2748,7 @@ img {
|
|
2748
2748
|
<a name="send" class="tsd-anchor"></a>
|
2749
2749
|
<h3>send</h3>
|
2750
2750
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
2751
|
-
<li class="tsd-signature tsd-kind-icon">send<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">
|
2751
|
+
<li class="tsd-signature tsd-kind-icon">send<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">CancellablePromise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">></span></li>
|
2752
2752
|
</ul>
|
2753
2753
|
<ul class="tsd-descriptions">
|
2754
2754
|
<li class="tsd-description">
|
@@ -2759,7 +2759,7 @@ img {
|
|
2759
2759
|
<p>Send the prepared message to the conversation.</p>
|
2760
2760
|
</div>
|
2761
2761
|
</div>
|
2762
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">
|
2762
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">CancellablePromise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">></span></h4>
|
2763
2763
|
<p>Index of the new message in the conversation.</p>
|
2764
2764
|
</li>
|
2765
2765
|
</ul>
|
package/docs/index.html
CHANGED
@@ -2984,8 +2984,10 @@ img {
|
|
2984
2984
|
<li><code>'connecting'</code> - client is offline and connection attempt is in process</li>
|
2985
2985
|
<li><code>'connected'</code> - client is online and ready</li>
|
2986
2986
|
<li><code>'disconnecting'</code> - client is going offline as disconnection is in process</li>
|
2987
|
-
<li><code>'disconnected'</code> - client is offline and no connection attempt is in
|
2988
|
-
|
2987
|
+
<li><code>'disconnected'</code> - client is offline and no connection attempt is in
|
2988
|
+
process</li>
|
2989
|
+
<li><code>'denied'</code> - client connection is denied because of invalid JWT access
|
2990
|
+
token. User must refresh token in order to proceed</li>
|
2989
2991
|
</ul>
|
2990
2992
|
</div>
|
2991
2993
|
</div>
|
@@ -2706,10 +2706,10 @@ img {
|
|
2706
2706
|
<a href="ConversationLimits.html" class="tsd-kind-icon">Conversation<wbr>Limits</a>
|
2707
2707
|
<ul>
|
2708
2708
|
<li class=" tsd-kind-property tsd-parent-kind-interface">
|
2709
|
-
<a href="ConversationLimits.html#
|
2709
|
+
<a href="ConversationLimits.html#emailBodiesAllowedContentTypes" class="tsd-kind-icon">email<wbr>Bodies<wbr>Allowed<wbr>Content<wbr>Types</a>
|
2710
2710
|
</li>
|
2711
2711
|
<li class=" tsd-kind-property tsd-parent-kind-interface">
|
2712
|
-
<a href="ConversationLimits.html#
|
2712
|
+
<a href="ConversationLimits.html#emailHistoriesAllowedContentTypes" class="tsd-kind-icon">email<wbr>Histories<wbr>Allowed<wbr>Content<wbr>Types</a>
|
2713
2713
|
</li>
|
2714
2714
|
<li class=" tsd-kind-property tsd-parent-kind-interface">
|
2715
2715
|
<a href="ConversationLimits.html#mediaAttachmentSizeLimitInMb" class="tsd-kind-icon">media<wbr>Attachment<wbr>Size<wbr>Limit<wbr>InMb</a>
|
@@ -2748,8 +2748,8 @@ img {
|
|
2748
2748
|
<section class="tsd-index-section ">
|
2749
2749
|
<h3>Properties</h3>
|
2750
2750
|
<ul class="tsd-index-list">
|
2751
|
-
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="ConversationLimits.html#
|
2752
|
-
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="ConversationLimits.html#
|
2751
|
+
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="ConversationLimits.html#emailBodiesAllowedContentTypes" class="tsd-kind-icon">email<wbr>Bodies<wbr>Allowed<wbr>Content<wbr>Types</a></li>
|
2752
|
+
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="ConversationLimits.html#emailHistoriesAllowedContentTypes" class="tsd-kind-icon">email<wbr>Histories<wbr>Allowed<wbr>Content<wbr>Types</a></li>
|
2753
2753
|
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="ConversationLimits.html#mediaAttachmentSizeLimitInMb" class="tsd-kind-icon">media<wbr>Attachment<wbr>Size<wbr>Limit<wbr>InMb</a></li>
|
2754
2754
|
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="ConversationLimits.html#mediaAttachmentsCountLimit" class="tsd-kind-icon">media<wbr>Attachments<wbr>Count<wbr>Limit</a></li>
|
2755
2755
|
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="ConversationLimits.html#mediaAttachmentsTotalSizeLimitInMb" class="tsd-kind-icon">media<wbr>Attachments<wbr>Total<wbr>Size<wbr>Limit<wbr>InMb</a></li>
|
@@ -2761,26 +2761,26 @@ img {
|
|
2761
2761
|
<section class="tsd-panel-group tsd-member-group ">
|
2762
2762
|
<h2>Properties</h2>
|
2763
2763
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
|
2764
|
-
<a name="
|
2765
|
-
<h3>email<wbr>Bodies<wbr>Allowed<wbr>
|
2766
|
-
<div class="tsd-signature tsd-kind-icon">email<wbr>Bodies<wbr>Allowed<wbr>
|
2764
|
+
<a name="emailBodiesAllowedContentTypes" class="tsd-anchor"></a>
|
2765
|
+
<h3>email<wbr>Bodies<wbr>Allowed<wbr>Content<wbr>Types</h3>
|
2766
|
+
<div class="tsd-signature tsd-kind-icon">email<wbr>Bodies<wbr>Allowed<wbr>Content<wbr>Types<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></div>
|
2767
2767
|
<aside class="tsd-sources">
|
2768
2768
|
</aside>
|
2769
2769
|
<div class="tsd-comment tsd-typography">
|
2770
2770
|
<div class="lead">
|
2771
|
-
<p>Allowed
|
2771
|
+
<p>Allowed content types for E-Mail bodies.</p>
|
2772
2772
|
</div>
|
2773
2773
|
</div>
|
2774
2774
|
</section>
|
2775
2775
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
|
2776
|
-
<a name="
|
2777
|
-
<h3>email<wbr>Histories<wbr>Allowed<wbr>
|
2778
|
-
<div class="tsd-signature tsd-kind-icon">email<wbr>Histories<wbr>Allowed<wbr>
|
2776
|
+
<a name="emailHistoriesAllowedContentTypes" class="tsd-anchor"></a>
|
2777
|
+
<h3>email<wbr>Histories<wbr>Allowed<wbr>Content<wbr>Types</h3>
|
2778
|
+
<div class="tsd-signature tsd-kind-icon">email<wbr>Histories<wbr>Allowed<wbr>Content<wbr>Types<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></div>
|
2779
2779
|
<aside class="tsd-sources">
|
2780
2780
|
</aside>
|
2781
2781
|
<div class="tsd-comment tsd-typography">
|
2782
2782
|
<div class="lead">
|
2783
|
-
<p>Allowed
|
2783
|
+
<p>Allowed content types for E-Mail histories.</p>
|
2784
2784
|
</div>
|
2785
2785
|
</div>
|
2786
2786
|
</section>
|
package/docs/modules.html
CHANGED
@@ -2985,8 +2985,10 @@ img {
|
|
2985
2985
|
<li><code>'connecting'</code> - client is offline and connection attempt is in process</li>
|
2986
2986
|
<li><code>'connected'</code> - client is online and ready</li>
|
2987
2987
|
<li><code>'disconnecting'</code> - client is going offline as disconnection is in process</li>
|
2988
|
-
<li><code>'disconnected'</code> - client is offline and no connection attempt is in
|
2989
|
-
|
2988
|
+
<li><code>'disconnected'</code> - client is offline and no connection attempt is in
|
2989
|
+
process</li>
|
2990
|
+
<li><code>'denied'</code> - client connection is denied because of invalid JWT access
|
2991
|
+
token. User must refresh token in order to proceed</li>
|
2990
2992
|
</ul>
|
2991
2993
|
</div>
|
2992
2994
|
</div>
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@twilio/conversations",
|
3
|
-
"version": "
|
3
|
+
"version": "3.0.0-rc.1",
|
4
4
|
"description": "Twilio Conversations client library",
|
5
5
|
"main": "./builds/lib.js",
|
6
6
|
"browser": "./builds/browser.js",
|
@@ -37,7 +37,7 @@
|
|
37
37
|
"dependencies": {
|
38
38
|
"@babel/runtime": "^7.14.5",
|
39
39
|
"@twilio/declarative-type-validator": "^0.1.11",
|
40
|
-
"@twilio/mcs-client": "^0.
|
40
|
+
"@twilio/mcs-client": "^0.6.0-rc.1",
|
41
41
|
"@twilio/notifications": "^1.0.5",
|
42
42
|
"@twilio/operation-retrier": "^4.0.7",
|
43
43
|
"@twilio/replay-event-emitter": "^0.2.4",
|
@@ -47,7 +47,7 @@
|
|
47
47
|
"lodash.isequal": "^4.5.0",
|
48
48
|
"loglevel": "^1.6.6",
|
49
49
|
"platform": "^1.3.6",
|
50
|
-
"twilio-sync": "^3.1.
|
50
|
+
"twilio-sync": "^3.1.1-rc.1",
|
51
51
|
"twilsock": "^0.12.2",
|
52
52
|
"uuid": "^3.4.0"
|
53
53
|
},
|
@@ -74,6 +74,7 @@
|
|
74
74
|
"browserslist": "^4.17.3",
|
75
75
|
"chai": "^4.2.0",
|
76
76
|
"chai-as-promised": "^7.1.1",
|
77
|
+
"chai-spies": "^1.0.0",
|
77
78
|
"chai-string": "^1.5.0",
|
78
79
|
"cheerio": "^1.0.0-rc.2",
|
79
80
|
"cross-env": "^5.2.0",
|