@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.
- package/README.md +38 -28
- package/builds/browser.js +1659 -264
- package/builds/browser.js.map +1 -1
- package/builds/lib.d.ts +650 -25
- package/builds/lib.js +1650 -264
- package/builds/lib.js.map +1 -1
- package/builds/twilio-conversations.js +4300 -1842
- package/builds/twilio-conversations.min.js +1 -1
- package/dist/aggregated-delivery-receipt.js +10 -1
- package/dist/aggregated-delivery-receipt.js.map +1 -1
- package/dist/channel-metadata-client.js +192 -0
- package/dist/channel-metadata-client.js.map +1 -0
- package/dist/client.js +70 -10
- package/dist/client.js.map +1 -1
- package/dist/command-executor.js +48 -6
- package/dist/command-executor.js.map +1 -1
- package/dist/configuration.js +14 -3
- package/dist/configuration.js.map +1 -1
- package/dist/content-client.js +184 -0
- package/dist/content-client.js.map +1 -0
- package/dist/content-template.js +310 -0
- package/dist/content-template.js.map +1 -0
- package/dist/conversation.js +59 -16
- package/dist/conversation.js.map +1 -1
- package/dist/data/conversations.js +25 -3
- package/dist/data/conversations.js.map +1 -1
- package/dist/data/messages.js +23 -6
- package/dist/data/messages.js.map +1 -1
- package/dist/data/participants.js +17 -8
- package/dist/data/participants.js.map +1 -1
- package/dist/data/users.js +9 -0
- package/dist/data/users.js.map +1 -1
- package/dist/detailed-delivery-receipt.js +9 -0
- package/dist/detailed-delivery-receipt.js.map +1 -1
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/dist/interfaces/notification-types.js +9 -0
- package/dist/interfaces/notification-types.js.map +1 -1
- package/dist/interfaces/{attributes.js → rules.js} +26 -7
- package/dist/interfaces/rules.js.map +1 -0
- package/dist/logger.js +9 -0
- package/dist/logger.js.map +1 -1
- package/dist/media.js +9 -0
- package/dist/media.js.map +1 -1
- package/dist/message-builder.js +77 -6
- package/dist/message-builder.js.map +1 -1
- package/dist/message.js +156 -12
- package/dist/message.js.map +1 -1
- package/dist/node_modules/quick-lru/index.js +265 -0
- package/dist/node_modules/quick-lru/index.js.map +1 -0
- package/dist/node_modules/tslib/tslib.es6.js +9 -0
- package/dist/node_modules/tslib/tslib.es6.js.map +1 -1
- package/dist/packages/conversations/package.json.js +10 -1
- package/dist/packages/conversations/package.json.js.map +1 -1
- package/dist/participant.js +11 -2
- package/dist/participant.js.map +1 -1
- package/dist/push-notification.js +9 -0
- package/dist/push-notification.js.map +1 -1
- package/dist/rest-paginator.js +9 -0
- package/dist/rest-paginator.js.map +1 -1
- package/dist/services/network.js +9 -0
- package/dist/services/network.js.map +1 -1
- package/dist/services/typing-indicator.js +9 -0
- package/dist/services/typing-indicator.js.map +1 -1
- package/dist/unsent-message.js +9 -0
- package/dist/unsent-message.js.map +1 -1
- package/dist/user.js +20 -3
- package/dist/user.js.map +1 -1
- package/dist/util/deferred.js +9 -0
- package/dist/util/deferred.js.map +1 -1
- package/dist/util/index.js +9 -0
- package/dist/util/index.js.map +1 -1
- package/docs/assets/js/search.js +1 -1
- package/docs/classes/AggregatedDeliveryReceipt.html +1 -1
- package/docs/classes/ChannelMetadata.html +3050 -0
- package/docs/classes/Client.html +64 -25
- package/docs/classes/ContentTemplate.html +3116 -0
- package/docs/classes/ContentTemplateVariable.html +3116 -0
- package/docs/classes/Conversation.html +14 -9
- package/docs/classes/Message.html +76 -5
- package/docs/classes/MessageBuilder.html +41 -0
- package/docs/classes/Participant.html +2 -2
- package/docs/index.html +849 -25
- package/docs/interfaces/ClientOptions.html +16 -0
- package/docs/modules.html +848 -24
- package/package.json +18 -14
- package/CHANGELOG.md +0 -509
- package/dist/interfaces/attributes.js.map +0 -1
package/docs/modules.html
CHANGED
@@ -2708,9 +2708,18 @@ img {
|
|
2708
2708
|
<li class=" tsd-kind-class tsd-has-type-parameter">
|
2709
2709
|
<a href="classes/CancellablePromise.html" class="tsd-kind-icon">Cancellable<wbr>Promise</a>
|
2710
2710
|
</li>
|
2711
|
+
<li class=" tsd-kind-class">
|
2712
|
+
<a href="classes/ChannelMetadata.html" class="tsd-kind-icon">Channel<wbr>Metadata</a>
|
2713
|
+
</li>
|
2711
2714
|
<li class=" tsd-kind-class">
|
2712
2715
|
<a href="classes/Client.html" class="tsd-kind-icon">Client</a>
|
2713
2716
|
</li>
|
2717
|
+
<li class=" tsd-kind-class">
|
2718
|
+
<a href="classes/ContentTemplate.html" class="tsd-kind-icon">Content<wbr>Template</a>
|
2719
|
+
</li>
|
2720
|
+
<li class=" tsd-kind-class">
|
2721
|
+
<a href="classes/ContentTemplateVariable.html" class="tsd-kind-icon">Content<wbr>Template<wbr>Variable</a>
|
2722
|
+
</li>
|
2714
2723
|
<li class=" tsd-kind-class">
|
2715
2724
|
<a href="classes/Conversation.html" class="tsd-kind-icon">Conversation</a>
|
2716
2725
|
</li>
|
@@ -2786,6 +2795,54 @@ img {
|
|
2786
2795
|
<li class=" tsd-kind-type-alias">
|
2787
2796
|
<a href="modules.html#ConnectionState" class="tsd-kind-icon">Connection<wbr>State</a>
|
2788
2797
|
</li>
|
2798
|
+
<li class=" tsd-kind-type-alias">
|
2799
|
+
<a href="modules.html#ContentData" class="tsd-kind-icon">Content<wbr>Data</a>
|
2800
|
+
</li>
|
2801
|
+
<li class=" tsd-kind-type-alias">
|
2802
|
+
<a href="modules.html#ContentDataAction" class="tsd-kind-icon">Content<wbr>Data<wbr>Action</a>
|
2803
|
+
</li>
|
2804
|
+
<li class=" tsd-kind-type-alias">
|
2805
|
+
<a href="modules.html#ContentDataActionOther" class="tsd-kind-icon">Content<wbr>Data<wbr>Action<wbr>Other</a>
|
2806
|
+
</li>
|
2807
|
+
<li class=" tsd-kind-type-alias">
|
2808
|
+
<a href="modules.html#ContentDataActionPhone" class="tsd-kind-icon">Content<wbr>Data<wbr>Action<wbr>Phone</a>
|
2809
|
+
</li>
|
2810
|
+
<li class=" tsd-kind-type-alias">
|
2811
|
+
<a href="modules.html#ContentDataActionReply" class="tsd-kind-icon">Content<wbr>Data<wbr>Action<wbr>Reply</a>
|
2812
|
+
</li>
|
2813
|
+
<li class=" tsd-kind-type-alias">
|
2814
|
+
<a href="modules.html#ContentDataActionUrl" class="tsd-kind-icon">Content<wbr>Data<wbr>Action<wbr>Url</a>
|
2815
|
+
</li>
|
2816
|
+
<li class=" tsd-kind-type-alias">
|
2817
|
+
<a href="modules.html#ContentDataCallToAction" class="tsd-kind-icon">Content<wbr>Data<wbr>Call<wbr>ToAction</a>
|
2818
|
+
</li>
|
2819
|
+
<li class=" tsd-kind-type-alias">
|
2820
|
+
<a href="modules.html#ContentDataCard" class="tsd-kind-icon">Content<wbr>Data<wbr>Card</a>
|
2821
|
+
</li>
|
2822
|
+
<li class=" tsd-kind-type-alias">
|
2823
|
+
<a href="modules.html#ContentDataListItem" class="tsd-kind-icon">Content<wbr>Data<wbr>List<wbr>Item</a>
|
2824
|
+
</li>
|
2825
|
+
<li class=" tsd-kind-type-alias">
|
2826
|
+
<a href="modules.html#ContentDataListPicker" class="tsd-kind-icon">Content<wbr>Data<wbr>List<wbr>Picker</a>
|
2827
|
+
</li>
|
2828
|
+
<li class=" tsd-kind-type-alias">
|
2829
|
+
<a href="modules.html#ContentDataLocation" class="tsd-kind-icon">Content<wbr>Data<wbr>Location</a>
|
2830
|
+
</li>
|
2831
|
+
<li class=" tsd-kind-type-alias">
|
2832
|
+
<a href="modules.html#ContentDataMedia" class="tsd-kind-icon">Content<wbr>Data<wbr>Media</a>
|
2833
|
+
</li>
|
2834
|
+
<li class=" tsd-kind-type-alias">
|
2835
|
+
<a href="modules.html#ContentDataOther" class="tsd-kind-icon">Content<wbr>Data<wbr>Other</a>
|
2836
|
+
</li>
|
2837
|
+
<li class=" tsd-kind-type-alias">
|
2838
|
+
<a href="modules.html#ContentDataQuickReply" class="tsd-kind-icon">Content<wbr>Data<wbr>Quick<wbr>Reply</a>
|
2839
|
+
</li>
|
2840
|
+
<li class=" tsd-kind-type-alias">
|
2841
|
+
<a href="modules.html#ContentDataReply" class="tsd-kind-icon">Content<wbr>Data<wbr>Reply</a>
|
2842
|
+
</li>
|
2843
|
+
<li class=" tsd-kind-type-alias">
|
2844
|
+
<a href="modules.html#ContentDataText" class="tsd-kind-icon">Content<wbr>Data<wbr>Text</a>
|
2845
|
+
</li>
|
2789
2846
|
<li class=" tsd-kind-type-alias">
|
2790
2847
|
<a href="modules.html#ConversationStatus" class="tsd-kind-icon">Conversation<wbr>Status</a>
|
2791
2848
|
</li>
|
@@ -2859,29 +2916,33 @@ img {
|
|
2859
2916
|
<p>Using this method, you can <code>require</code> <code>twilio-conversations</code> and then use the
|
2860
2917
|
client:</p>
|
2861
2918
|
<pre><code><span style="color: #0000FF">const</span><span style="color: #000000"> { </span><span style="color: #0070C1">Client</span><span style="color: #000000"> } = </span><span style="color: #795E26">require</span><span style="color: #000000">(</span><span style="color: #A31515">'@twilio/conversations'</span><span style="color: #000000">);</span>
|
2919
|
+
|
2862
2920
|
<span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">client</span><span style="color: #000000"> = </span><span style="color: #0000FF">new</span><span style="color: #000000"> </span><span style="color: #795E26">Client</span><span style="color: #000000">(</span><span style="color: #001080">token</span><span style="color: #000000">);</span>
|
2863
|
-
|
2864
|
-
<span style="color: #008000">//
|
2865
|
-
<span style="color: #001080">client</span><span style="color: #000000">.</span><span style="color: #795E26">on</span><span style="color: #000000">(</span><span style="color: #A31515">'
|
2866
|
-
<span style="color: #000000"> </span><span style="color: #
|
2867
|
-
<span style="color: #000000">
|
2868
|
-
|
2869
|
-
<span style="color: #
|
2870
|
-
<span style="color: #
|
2871
|
-
<span style="color: #000000">
|
2872
|
-
<span style="color: #000000">
|
2873
|
-
<span style="color: #000000">}</span>
|
2921
|
+
|
2922
|
+
<span style="color: #008000">// Before you use the client, subscribe to the `'initialized'` event.</span>
|
2923
|
+
<span style="color: #001080">client</span><span style="color: #000000">.</span><span style="color: #795E26">on</span><span style="color: #000000">(</span><span style="color: #A31515">'initialized'</span><span style="color: #000000">, () </span><span style="color: #0000FF">=></span><span style="color: #000000"> {</span>
|
2924
|
+
<span style="color: #000000"> </span><span style="color: #008000">// Use the client.</span>
|
2925
|
+
<span style="color: #000000">});</span>
|
2926
|
+
|
2927
|
+
<span style="color: #008000">// To catch client initialization errors, subscribe to the `'initFailed'` event.</span>
|
2928
|
+
<span style="color: #001080">client</span><span style="color: #000000">.</span><span style="color: #795E26">on</span><span style="color: #000000">(</span><span style="color: #A31515">'initFailed'</span><span style="color: #000000">, ({ </span><span style="color: #001080">error</span><span style="color: #000000"> }) </span><span style="color: #0000FF">=></span><span style="color: #000000"> {</span>
|
2929
|
+
<span style="color: #000000"> </span><span style="color: #008000">// Handle the error.</span>
|
2930
|
+
<span style="color: #000000">});</span>
|
2874
2931
|
</code></pre>
|
2875
2932
|
<p>The SDK could also be imported using the ES module syntax:</p>
|
2876
2933
|
<pre><code><span style="color: #AF00DB">import</span><span style="color: #000000"> { </span><span style="color: #001080">Client</span><span style="color: #000000"> } </span><span style="color: #AF00DB">from</span><span style="color: #000000"> </span><span style="color: #A31515">'@twilio/conversations'</span><span style="color: #000000">;</span>
|
2934
|
+
|
2877
2935
|
<span style="color: #0000FF">const</span><span style="color: #000000"> </span><span style="color: #0070C1">client</span><span style="color: #000000"> = </span><span style="color: #0000FF">new</span><span style="color: #000000"> </span><span style="color: #795E26">Client</span><span style="color: #000000">(</span><span style="color: #001080">token</span><span style="color: #000000">);</span>
|
2878
|
-
|
2879
|
-
<span style="color: #008000">//
|
2880
|
-
<span style="color: #001080">client</span><span style="color: #000000">.</span><span style="color: #795E26">on</span><span style="color: #000000">(</span><span style="color: #A31515">'
|
2881
|
-
<span style="color: #000000"> </span><span style="color: #
|
2882
|
-
<span style="color: #000000">
|
2883
|
-
|
2884
|
-
<span style="color: #
|
2936
|
+
|
2937
|
+
<span style="color: #008000">// Before you use the client, subscribe to the `'initialized'` event.</span>
|
2938
|
+
<span style="color: #001080">client</span><span style="color: #000000">.</span><span style="color: #795E26">on</span><span style="color: #000000">(</span><span style="color: #A31515">'initialized'</span><span style="color: #000000">, () </span><span style="color: #0000FF">=></span><span style="color: #000000"> {</span>
|
2939
|
+
<span style="color: #000000"> </span><span style="color: #008000">// Use the client.</span>
|
2940
|
+
<span style="color: #000000">});</span>
|
2941
|
+
|
2942
|
+
<span style="color: #008000">// To catch client initialization errors, subscribe to the `'initFailed'` event.</span>
|
2943
|
+
<span style="color: #001080">client</span><span style="color: #000000">.</span><span style="color: #795E26">on</span><span style="color: #000000">(</span><span style="color: #A31515">'initFailed'</span><span style="color: #000000">, ({ </span><span style="color: #001080">error</span><span style="color: #000000"> }) </span><span style="color: #0000FF">=></span><span style="color: #000000"> {</span>
|
2944
|
+
<span style="color: #000000"> </span><span style="color: #008000">// Handle the error.</span>
|
2945
|
+
<span style="color: #000000">});</span>
|
2885
2946
|
</code></pre>
|
2886
2947
|
<a href="#cdn" id="cdn" style="color: inherit; text-decoration: none;">
|
2887
2948
|
<h3>CDN</h3>
|
@@ -2901,11 +2962,13 @@ img {
|
|
2901
2962
|
<p>If you require more security you will have to consume SDK by using <a href="https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity">SRI</a> and using an exact version
|
2902
2963
|
number. While less flexible it is significantly more secure, which is required by some applications.</p>
|
2903
2964
|
<p>To consume securely use the following script snippet format:</p>
|
2904
|
-
<pre><code class="language-html"><span style="color: #800000"><script</span
|
2905
|
-
<span style="color: #000000FF">
|
2906
|
-
<span style="color: #000000FF">
|
2965
|
+
<pre><code class="language-html"><span style="color: #800000"><script</span>
|
2966
|
+
<span style="color: #000000FF"> </span><span style="color: #FF0000">src</span><span style="color: #000000FF">=</span><span style="color: #0000FF">"https://media.twiliocdn.com/sdk/js/conversations/releases/3.0.1/twilio-conversations.min.js"</span>
|
2967
|
+
<span style="color: #000000FF"> </span><span style="color: #FF0000">integrity</span><span style="color: #000000FF">=</span><span style="color: #0000FF">"sha256-<HASH FROM THE CHANGELOGS PAGE>"</span>
|
2968
|
+
<span style="color: #000000FF"> </span><span style="color: #FF0000">crossorigin</span><span style="color: #000000FF">=</span><span style="color: #0000FF">"anonymous"</span>
|
2969
|
+
<span style="color: #800000">></script></span>
|
2907
2970
|
</code></pre>
|
2908
|
-
<p>Find the hash of each release published on the <a href="#
|
2971
|
+
<p>Find the hash of each release published on the <a href="#changelog">Changelog</a> page.</p>
|
2909
2972
|
<a href="#changelog" id="changelog" style="color: inherit; text-decoration: none;">
|
2910
2973
|
<h3>Changelog</h3>
|
2911
2974
|
</a>
|
@@ -2920,7 +2983,10 @@ img {
|
|
2920
2983
|
<ul class="tsd-index-list">
|
2921
2984
|
<li class="tsd-kind-class"><a href="classes/AggregatedDeliveryReceipt.html" class="tsd-kind-icon">Aggregated<wbr>Delivery<wbr>Receipt</a></li>
|
2922
2985
|
<li class="tsd-kind-class tsd-has-type-parameter"><a href="classes/CancellablePromise.html" class="tsd-kind-icon">Cancellable<wbr>Promise</a></li>
|
2986
|
+
<li class="tsd-kind-class"><a href="classes/ChannelMetadata.html" class="tsd-kind-icon">Channel<wbr>Metadata</a></li>
|
2923
2987
|
<li class="tsd-kind-class"><a href="classes/Client.html" class="tsd-kind-icon">Client</a></li>
|
2988
|
+
<li class="tsd-kind-class"><a href="classes/ContentTemplate.html" class="tsd-kind-icon">Content<wbr>Template</a></li>
|
2989
|
+
<li class="tsd-kind-class"><a href="classes/ContentTemplateVariable.html" class="tsd-kind-icon">Content<wbr>Template<wbr>Variable</a></li>
|
2924
2990
|
<li class="tsd-kind-class"><a href="classes/Conversation.html" class="tsd-kind-icon">Conversation</a></li>
|
2925
2991
|
<li class="tsd-kind-class"><a href="classes/DetailedDeliveryReceipt.html" class="tsd-kind-icon">Detailed<wbr>Delivery<wbr>Receipt</a></li>
|
2926
2992
|
<li class="tsd-kind-class"><a href="classes/Media.html" class="tsd-kind-icon">Media</a></li>
|
@@ -2956,6 +3022,22 @@ img {
|
|
2956
3022
|
<h3>Type aliases</h3>
|
2957
3023
|
<ul class="tsd-index-list">
|
2958
3024
|
<li class="tsd-kind-type-alias"><a href="modules.html#ConnectionState" class="tsd-kind-icon">Connection<wbr>State</a></li>
|
3025
|
+
<li class="tsd-kind-type-alias"><a href="modules.html#ContentData" class="tsd-kind-icon">Content<wbr>Data</a></li>
|
3026
|
+
<li class="tsd-kind-type-alias"><a href="modules.html#ContentDataAction" class="tsd-kind-icon">Content<wbr>Data<wbr>Action</a></li>
|
3027
|
+
<li class="tsd-kind-type-alias"><a href="modules.html#ContentDataActionOther" class="tsd-kind-icon">Content<wbr>Data<wbr>Action<wbr>Other</a></li>
|
3028
|
+
<li class="tsd-kind-type-alias"><a href="modules.html#ContentDataActionPhone" class="tsd-kind-icon">Content<wbr>Data<wbr>Action<wbr>Phone</a></li>
|
3029
|
+
<li class="tsd-kind-type-alias"><a href="modules.html#ContentDataActionReply" class="tsd-kind-icon">Content<wbr>Data<wbr>Action<wbr>Reply</a></li>
|
3030
|
+
<li class="tsd-kind-type-alias"><a href="modules.html#ContentDataActionUrl" class="tsd-kind-icon">Content<wbr>Data<wbr>Action<wbr>Url</a></li>
|
3031
|
+
<li class="tsd-kind-type-alias"><a href="modules.html#ContentDataCallToAction" class="tsd-kind-icon">Content<wbr>Data<wbr>Call<wbr>ToAction</a></li>
|
3032
|
+
<li class="tsd-kind-type-alias"><a href="modules.html#ContentDataCard" class="tsd-kind-icon">Content<wbr>Data<wbr>Card</a></li>
|
3033
|
+
<li class="tsd-kind-type-alias"><a href="modules.html#ContentDataListItem" class="tsd-kind-icon">Content<wbr>Data<wbr>List<wbr>Item</a></li>
|
3034
|
+
<li class="tsd-kind-type-alias"><a href="modules.html#ContentDataListPicker" class="tsd-kind-icon">Content<wbr>Data<wbr>List<wbr>Picker</a></li>
|
3035
|
+
<li class="tsd-kind-type-alias"><a href="modules.html#ContentDataLocation" class="tsd-kind-icon">Content<wbr>Data<wbr>Location</a></li>
|
3036
|
+
<li class="tsd-kind-type-alias"><a href="modules.html#ContentDataMedia" class="tsd-kind-icon">Content<wbr>Data<wbr>Media</a></li>
|
3037
|
+
<li class="tsd-kind-type-alias"><a href="modules.html#ContentDataOther" class="tsd-kind-icon">Content<wbr>Data<wbr>Other</a></li>
|
3038
|
+
<li class="tsd-kind-type-alias"><a href="modules.html#ContentDataQuickReply" class="tsd-kind-icon">Content<wbr>Data<wbr>Quick<wbr>Reply</a></li>
|
3039
|
+
<li class="tsd-kind-type-alias"><a href="modules.html#ContentDataReply" class="tsd-kind-icon">Content<wbr>Data<wbr>Reply</a></li>
|
3040
|
+
<li class="tsd-kind-type-alias"><a href="modules.html#ContentDataText" class="tsd-kind-icon">Content<wbr>Data<wbr>Text</a></li>
|
2959
3041
|
<li class="tsd-kind-type-alias"><a href="modules.html#ConversationStatus" class="tsd-kind-icon">Conversation<wbr>Status</a></li>
|
2960
3042
|
<li class="tsd-kind-type-alias"><a href="modules.html#ConversationUpdateReason" class="tsd-kind-icon">Conversation<wbr>Update<wbr>Reason</a></li>
|
2961
3043
|
<li class="tsd-kind-type-alias"><a href="modules.html#DeliveryAmount" class="tsd-kind-icon">Delivery<wbr>Amount</a></li>
|
@@ -3001,6 +3083,747 @@ img {
|
|
3001
3083
|
</div>
|
3002
3084
|
</div>
|
3003
3085
|
</section>
|
3086
|
+
<section class="tsd-panel tsd-member tsd-kind-type-alias">
|
3087
|
+
<a name="ContentData" class="tsd-anchor"></a>
|
3088
|
+
<h3>Content<wbr>Data</h3>
|
3089
|
+
<div class="tsd-signature tsd-kind-icon">Content<wbr>Data<span class="tsd-signature-symbol">:</span> <a href="modules.html#ContentDataText" class="tsd-signature-type" data-tsd-kind="Type alias">ContentDataText</a><span class="tsd-signature-symbol"> | </span><a href="modules.html#ContentDataMedia" class="tsd-signature-type" data-tsd-kind="Type alias">ContentDataMedia</a><span class="tsd-signature-symbol"> | </span><a href="modules.html#ContentDataLocation" class="tsd-signature-type" data-tsd-kind="Type alias">ContentDataLocation</a><span class="tsd-signature-symbol"> | </span><a href="modules.html#ContentDataQuickReply" class="tsd-signature-type" data-tsd-kind="Type alias">ContentDataQuickReply</a><span class="tsd-signature-symbol"> | </span><a href="modules.html#ContentDataCallToAction" class="tsd-signature-type" data-tsd-kind="Type alias">ContentDataCallToAction</a><span class="tsd-signature-symbol"> | </span><a href="modules.html#ContentDataListPicker" class="tsd-signature-type" data-tsd-kind="Type alias">ContentDataListPicker</a><span class="tsd-signature-symbol"> | </span><a href="modules.html#ContentDataCard" class="tsd-signature-type" data-tsd-kind="Type alias">ContentDataCard</a><span class="tsd-signature-symbol"> | </span><a href="modules.html#ContentDataOther" class="tsd-signature-type" data-tsd-kind="Type alias">ContentDataOther</a></div>
|
3090
|
+
<aside class="tsd-sources">
|
3091
|
+
</aside>
|
3092
|
+
<div class="tsd-comment tsd-typography">
|
3093
|
+
<div class="lead">
|
3094
|
+
<p>A union of possible data types in rich content templates.</p>
|
3095
|
+
</div>
|
3096
|
+
</div>
|
3097
|
+
</section>
|
3098
|
+
<section class="tsd-panel tsd-member tsd-kind-type-alias">
|
3099
|
+
<a name="ContentDataAction" class="tsd-anchor"></a>
|
3100
|
+
<h3>Content<wbr>Data<wbr>Action</h3>
|
3101
|
+
<div class="tsd-signature tsd-kind-icon">Content<wbr>Data<wbr>Action<span class="tsd-signature-symbol">:</span> <a href="modules.html#ContentDataActionUrl" class="tsd-signature-type" data-tsd-kind="Type alias">ContentDataActionUrl</a><span class="tsd-signature-symbol"> | </span><a href="modules.html#ContentDataActionPhone" class="tsd-signature-type" data-tsd-kind="Type alias">ContentDataActionPhone</a><span class="tsd-signature-symbol"> | </span><a href="modules.html#ContentDataActionReply" class="tsd-signature-type" data-tsd-kind="Type alias">ContentDataActionReply</a><span class="tsd-signature-symbol"> | </span><a href="modules.html#ContentDataActionOther" class="tsd-signature-type" data-tsd-kind="Type alias">ContentDataActionOther</a></div>
|
3102
|
+
<aside class="tsd-sources">
|
3103
|
+
</aside>
|
3104
|
+
<div class="tsd-comment tsd-typography">
|
3105
|
+
<div class="lead">
|
3106
|
+
<p>A union of possible actions used in <a href="modules.html#ContentDataCallToAction">ContentDataCallToAction</a> and
|
3107
|
+
<a href="modules.html#ContentDataCard">ContentDataCard</a>.</p>
|
3108
|
+
</div>
|
3109
|
+
</div>
|
3110
|
+
</section>
|
3111
|
+
<section class="tsd-panel tsd-member tsd-kind-type-alias">
|
3112
|
+
<a name="ContentDataActionOther" class="tsd-anchor"></a>
|
3113
|
+
<h3>Content<wbr>Data<wbr>Action<wbr>Other</h3>
|
3114
|
+
<div class="tsd-signature tsd-kind-icon">Content<wbr>Data<wbr>Action<wbr>Other<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>rawData<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"other"</span><span class="tsd-signature-symbol"> }</span></div>
|
3115
|
+
<aside class="tsd-sources">
|
3116
|
+
</aside>
|
3117
|
+
<div class="tsd-comment tsd-typography">
|
3118
|
+
<div class="lead">
|
3119
|
+
<p>Used for unknown action types which aren't present in the current version of
|
3120
|
+
the Conversations SDK.</p>
|
3121
|
+
</div>
|
3122
|
+
</div>
|
3123
|
+
<div class="tsd-type-declaration">
|
3124
|
+
<h4>Type declaration</h4>
|
3125
|
+
<ul class="tsd-parameters">
|
3126
|
+
<li class="tsd-parameter">
|
3127
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> raw<wbr>Data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
|
3128
|
+
<div class="tsd-comment tsd-typography">
|
3129
|
+
<div class="lead">
|
3130
|
+
<p>Full data as a stringified JSON. This could be used for future content
|
3131
|
+
types and fields which are not yet supported by the newest version of
|
3132
|
+
the Conversations SDK, or for using newer types in the older versions of
|
3133
|
+
the SDK.</p>
|
3134
|
+
</div>
|
3135
|
+
</div>
|
3136
|
+
</li>
|
3137
|
+
<li class="tsd-parameter">
|
3138
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"other"</span></h5>
|
3139
|
+
<div class="tsd-comment tsd-typography">
|
3140
|
+
<div class="lead">
|
3141
|
+
<p>The type discriminant.</p>
|
3142
|
+
</div>
|
3143
|
+
</div>
|
3144
|
+
</li>
|
3145
|
+
</ul>
|
3146
|
+
</div>
|
3147
|
+
</section>
|
3148
|
+
<section class="tsd-panel tsd-member tsd-kind-type-alias">
|
3149
|
+
<a name="ContentDataActionPhone" class="tsd-anchor"></a>
|
3150
|
+
<h3>Content<wbr>Data<wbr>Action<wbr>Phone</h3>
|
3151
|
+
<div class="tsd-signature tsd-kind-icon">Content<wbr>Data<wbr>Action<wbr>Phone<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>phone<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>rawData<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>title<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"phone"</span><span class="tsd-signature-symbol"> }</span></div>
|
3152
|
+
<aside class="tsd-sources">
|
3153
|
+
</aside>
|
3154
|
+
<div class="tsd-comment tsd-typography">
|
3155
|
+
<div class="lead">
|
3156
|
+
<p>Shows a button that calls a phone number.</p>
|
3157
|
+
</div>
|
3158
|
+
</div>
|
3159
|
+
<div class="tsd-type-declaration">
|
3160
|
+
<h4>Type declaration</h4>
|
3161
|
+
<ul class="tsd-parameters">
|
3162
|
+
<li class="tsd-parameter">
|
3163
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> phone<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
|
3164
|
+
<div class="tsd-comment tsd-typography">
|
3165
|
+
<div class="lead">
|
3166
|
+
<p>Phone number to call when the recipient taps the button.</p>
|
3167
|
+
</div>
|
3168
|
+
</div>
|
3169
|
+
</li>
|
3170
|
+
<li class="tsd-parameter">
|
3171
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> raw<wbr>Data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
|
3172
|
+
<div class="tsd-comment tsd-typography">
|
3173
|
+
<div class="lead">
|
3174
|
+
<p>Full data as a stringified JSON. This could be used for future content
|
3175
|
+
types and fields which are not yet supported by the newest version of
|
3176
|
+
the Conversations SDK, or for using newer types in the older versions of
|
3177
|
+
the SDK.</p>
|
3178
|
+
</div>
|
3179
|
+
</div>
|
3180
|
+
</li>
|
3181
|
+
<li class="tsd-parameter">
|
3182
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> title<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
|
3183
|
+
<div class="tsd-comment tsd-typography">
|
3184
|
+
<div class="lead">
|
3185
|
+
<p>Display value for the action.</p>
|
3186
|
+
</div>
|
3187
|
+
</div>
|
3188
|
+
</li>
|
3189
|
+
<li class="tsd-parameter">
|
3190
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"phone"</span></h5>
|
3191
|
+
<div class="tsd-comment tsd-typography">
|
3192
|
+
<div class="lead">
|
3193
|
+
<p>The type discriminant.</p>
|
3194
|
+
</div>
|
3195
|
+
</div>
|
3196
|
+
</li>
|
3197
|
+
</ul>
|
3198
|
+
</div>
|
3199
|
+
</section>
|
3200
|
+
<section class="tsd-panel tsd-member tsd-kind-type-alias">
|
3201
|
+
<a name="ContentDataActionReply" class="tsd-anchor"></a>
|
3202
|
+
<h3>Content<wbr>Data<wbr>Action<wbr>Reply</h3>
|
3203
|
+
<div class="tsd-signature tsd-kind-icon">Content<wbr>Data<wbr>Action<wbr>Reply<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>id<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>index<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>rawData<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>title<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"reply"</span><span class="tsd-signature-symbol"> }</span></div>
|
3204
|
+
<aside class="tsd-sources">
|
3205
|
+
</aside>
|
3206
|
+
<div class="tsd-comment tsd-typography">
|
3207
|
+
<div class="lead">
|
3208
|
+
<p>Shows a button that sends back a predefined text.</p>
|
3209
|
+
</div>
|
3210
|
+
</div>
|
3211
|
+
<div class="tsd-type-declaration">
|
3212
|
+
<h4>Type declaration</h4>
|
3213
|
+
<ul class="tsd-parameters">
|
3214
|
+
<li class="tsd-parameter">
|
3215
|
+
<h5><span class="tsd-flag ts-flagOptional">Optional</span> <span class="tsd-flag ts-flagReadonly">Readonly</span> id<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span></h5>
|
3216
|
+
<div class="tsd-comment tsd-typography">
|
3217
|
+
<div class="lead">
|
3218
|
+
<p>Postback payload. This field is not visible to the end user.</p>
|
3219
|
+
</div>
|
3220
|
+
</div>
|
3221
|
+
</li>
|
3222
|
+
<li class="tsd-parameter">
|
3223
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> index<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5>
|
3224
|
+
<div class="tsd-comment tsd-typography">
|
3225
|
+
<div class="lead">
|
3226
|
+
<p>Index for the action.</p>
|
3227
|
+
</div>
|
3228
|
+
</div>
|
3229
|
+
</li>
|
3230
|
+
<li class="tsd-parameter">
|
3231
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> raw<wbr>Data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
|
3232
|
+
<div class="tsd-comment tsd-typography">
|
3233
|
+
<div class="lead">
|
3234
|
+
<p>Full data as a stringified JSON. This could be used for future content
|
3235
|
+
types and fields which are not yet supported by the newest version of
|
3236
|
+
the Conversations SDK, or for using newer types in the older versions of
|
3237
|
+
the SDK.</p>
|
3238
|
+
</div>
|
3239
|
+
</div>
|
3240
|
+
</li>
|
3241
|
+
<li class="tsd-parameter">
|
3242
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> title<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
|
3243
|
+
<div class="tsd-comment tsd-typography">
|
3244
|
+
<div class="lead">
|
3245
|
+
<p>Display value for the action. This is the message that will be sent back
|
3246
|
+
when the user taps on the button.</p>
|
3247
|
+
</div>
|
3248
|
+
</div>
|
3249
|
+
</li>
|
3250
|
+
<li class="tsd-parameter">
|
3251
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"reply"</span></h5>
|
3252
|
+
<div class="tsd-comment tsd-typography">
|
3253
|
+
<div class="lead">
|
3254
|
+
<p>The type discriminant.</p>
|
3255
|
+
</div>
|
3256
|
+
</div>
|
3257
|
+
</li>
|
3258
|
+
</ul>
|
3259
|
+
</div>
|
3260
|
+
</section>
|
3261
|
+
<section class="tsd-panel tsd-member tsd-kind-type-alias">
|
3262
|
+
<a name="ContentDataActionUrl" class="tsd-anchor"></a>
|
3263
|
+
<h3>Content<wbr>Data<wbr>Action<wbr>Url</h3>
|
3264
|
+
<div class="tsd-signature tsd-kind-icon">Content<wbr>Data<wbr>Action<wbr>Url<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>rawData<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>title<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"url"</span><span class="tsd-signature-symbol">; </span>url<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span></div>
|
3265
|
+
<aside class="tsd-sources">
|
3266
|
+
</aside>
|
3267
|
+
<div class="tsd-comment tsd-typography">
|
3268
|
+
<div class="lead">
|
3269
|
+
<p>Shows a button that redirects recipient to a predefined URL.</p>
|
3270
|
+
</div>
|
3271
|
+
</div>
|
3272
|
+
<div class="tsd-type-declaration">
|
3273
|
+
<h4>Type declaration</h4>
|
3274
|
+
<ul class="tsd-parameters">
|
3275
|
+
<li class="tsd-parameter">
|
3276
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> raw<wbr>Data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
|
3277
|
+
<div class="tsd-comment tsd-typography">
|
3278
|
+
<div class="lead">
|
3279
|
+
<p>Full data as a stringified JSON. This could be used for future content
|
3280
|
+
types and fields which are not yet supported by the newest version of
|
3281
|
+
the Conversations SDK, or for using newer types in the older versions of
|
3282
|
+
the SDK.</p>
|
3283
|
+
</div>
|
3284
|
+
</div>
|
3285
|
+
</li>
|
3286
|
+
<li class="tsd-parameter">
|
3287
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> title<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
|
3288
|
+
<div class="tsd-comment tsd-typography">
|
3289
|
+
<div class="lead">
|
3290
|
+
<p>Display value for the action.</p>
|
3291
|
+
</div>
|
3292
|
+
</div>
|
3293
|
+
</li>
|
3294
|
+
<li class="tsd-parameter">
|
3295
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"url"</span></h5>
|
3296
|
+
<div class="tsd-comment tsd-typography">
|
3297
|
+
<div class="lead">
|
3298
|
+
<p>The type discriminant.</p>
|
3299
|
+
</div>
|
3300
|
+
</div>
|
3301
|
+
</li>
|
3302
|
+
<li class="tsd-parameter">
|
3303
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> url<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
|
3304
|
+
<div class="tsd-comment tsd-typography">
|
3305
|
+
<div class="lead">
|
3306
|
+
<p>URL to direct to when the recipient taps the button.</p>
|
3307
|
+
</div>
|
3308
|
+
</div>
|
3309
|
+
</li>
|
3310
|
+
</ul>
|
3311
|
+
</div>
|
3312
|
+
</section>
|
3313
|
+
<section class="tsd-panel tsd-member tsd-kind-type-alias">
|
3314
|
+
<a name="ContentDataCallToAction" class="tsd-anchor"></a>
|
3315
|
+
<h3>Content<wbr>Data<wbr>Call<wbr>ToAction</h3>
|
3316
|
+
<div class="tsd-signature tsd-kind-icon">Content<wbr>Data<wbr>Call<wbr>ToAction<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>actions<span class="tsd-signature-symbol">: </span><a href="modules.html#ContentDataAction" class="tsd-signature-type" data-tsd-kind="Type alias">ContentDataAction</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span>body<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>rawData<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"callToAction"</span><span class="tsd-signature-symbol"> }</span></div>
|
3317
|
+
<aside class="tsd-sources">
|
3318
|
+
</aside>
|
3319
|
+
<div class="tsd-comment tsd-typography">
|
3320
|
+
<div class="lead">
|
3321
|
+
<p>Buttons that let recipients tap to trigger actions such as launching a
|
3322
|
+
website or making a phone call. Represents the twilio/call-to-action content
|
3323
|
+
type.</p>
|
3324
|
+
</div>
|
3325
|
+
</div>
|
3326
|
+
<div class="tsd-type-declaration">
|
3327
|
+
<h4>Type declaration</h4>
|
3328
|
+
<ul class="tsd-parameters">
|
3329
|
+
<li class="tsd-parameter">
|
3330
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> actions<span class="tsd-signature-symbol">: </span><a href="modules.html#ContentDataAction" class="tsd-signature-type" data-tsd-kind="Type alias">ContentDataAction</a><span class="tsd-signature-symbol">[]</span></h5>
|
3331
|
+
<div class="tsd-comment tsd-typography">
|
3332
|
+
<div class="lead">
|
3333
|
+
<p>Buttons that recipients can tap on to act on the message.</p>
|
3334
|
+
</div>
|
3335
|
+
</div>
|
3336
|
+
</li>
|
3337
|
+
<li class="tsd-parameter">
|
3338
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> body<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
|
3339
|
+
<div class="tsd-comment tsd-typography">
|
3340
|
+
<div class="lead">
|
3341
|
+
<p>The text of the message you want to send. This is included as a regular
|
3342
|
+
text message.</p>
|
3343
|
+
</div>
|
3344
|
+
</div>
|
3345
|
+
</li>
|
3346
|
+
<li class="tsd-parameter">
|
3347
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> raw<wbr>Data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
|
3348
|
+
<div class="tsd-comment tsd-typography">
|
3349
|
+
<div class="lead">
|
3350
|
+
<p>Full data as a stringified JSON. This could be used for future content
|
3351
|
+
types and fields which are not yet supported by the newest version of
|
3352
|
+
the Conversations SDK, or for using newer types in the older versions of
|
3353
|
+
the SDK.</p>
|
3354
|
+
</div>
|
3355
|
+
</div>
|
3356
|
+
</li>
|
3357
|
+
<li class="tsd-parameter">
|
3358
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"callToAction"</span></h5>
|
3359
|
+
<div class="tsd-comment tsd-typography">
|
3360
|
+
<div class="lead">
|
3361
|
+
<p>The type discriminant.</p>
|
3362
|
+
</div>
|
3363
|
+
</div>
|
3364
|
+
</li>
|
3365
|
+
</ul>
|
3366
|
+
</div>
|
3367
|
+
</section>
|
3368
|
+
<section class="tsd-panel tsd-member tsd-kind-type-alias">
|
3369
|
+
<a name="ContentDataCard" class="tsd-anchor"></a>
|
3370
|
+
<h3>Content<wbr>Data<wbr>Card</h3>
|
3371
|
+
<div class="tsd-signature tsd-kind-icon">Content<wbr>Data<wbr>Card<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>actions<span class="tsd-signature-symbol">: </span><a href="modules.html#ContentDataAction" class="tsd-signature-type" data-tsd-kind="Type alias">ContentDataAction</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span>media<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>rawData<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>subtitle<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>title<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"card"</span><span class="tsd-signature-symbol"> }</span></div>
|
3372
|
+
<aside class="tsd-sources">
|
3373
|
+
</aside>
|
3374
|
+
<div class="tsd-comment tsd-typography">
|
3375
|
+
<div class="lead">
|
3376
|
+
<p>Shows a menu of up to 10 options, which offers a simple way for users to make
|
3377
|
+
a selection. Represents the twilio/card content type.</p>
|
3378
|
+
</div>
|
3379
|
+
</div>
|
3380
|
+
<div class="tsd-type-declaration">
|
3381
|
+
<h4>Type declaration</h4>
|
3382
|
+
<ul class="tsd-parameters">
|
3383
|
+
<li class="tsd-parameter">
|
3384
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> actions<span class="tsd-signature-symbol">: </span><a href="modules.html#ContentDataAction" class="tsd-signature-type" data-tsd-kind="Type alias">ContentDataAction</a><span class="tsd-signature-symbol">[]</span></h5>
|
3385
|
+
<div class="tsd-comment tsd-typography">
|
3386
|
+
<div class="lead">
|
3387
|
+
<p>Buttons that the recipients can tap on to act on the message.</p>
|
3388
|
+
</div>
|
3389
|
+
</div>
|
3390
|
+
</li>
|
3391
|
+
<li class="tsd-parameter">
|
3392
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> media<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></h5>
|
3393
|
+
<div class="tsd-comment tsd-typography">
|
3394
|
+
<div class="lead">
|
3395
|
+
<p>URLs of the media to send with the message.</p>
|
3396
|
+
</div>
|
3397
|
+
</div>
|
3398
|
+
</li>
|
3399
|
+
<li class="tsd-parameter">
|
3400
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> raw<wbr>Data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
|
3401
|
+
<div class="tsd-comment tsd-typography">
|
3402
|
+
<div class="lead">
|
3403
|
+
<p>Full data as a stringified JSON. This could be used for future content
|
3404
|
+
types and fields which are not yet supported by the newest version of
|
3405
|
+
the Conversations SDK, or for using newer types in the older versions of
|
3406
|
+
the SDK.</p>
|
3407
|
+
</div>
|
3408
|
+
</div>
|
3409
|
+
</li>
|
3410
|
+
<li class="tsd-parameter">
|
3411
|
+
<h5><span class="tsd-flag ts-flagOptional">Optional</span> <span class="tsd-flag ts-flagReadonly">Readonly</span> subtitle<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span></h5>
|
3412
|
+
<div class="tsd-comment tsd-typography">
|
3413
|
+
<div class="lead">
|
3414
|
+
<p>Subtitle of the card.</p>
|
3415
|
+
</div>
|
3416
|
+
</div>
|
3417
|
+
</li>
|
3418
|
+
<li class="tsd-parameter">
|
3419
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> title<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
|
3420
|
+
<div class="tsd-comment tsd-typography">
|
3421
|
+
<div class="lead">
|
3422
|
+
<p>Title of the card.</p>
|
3423
|
+
</div>
|
3424
|
+
</div>
|
3425
|
+
</li>
|
3426
|
+
<li class="tsd-parameter">
|
3427
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"card"</span></h5>
|
3428
|
+
<div class="tsd-comment tsd-typography">
|
3429
|
+
<div class="lead">
|
3430
|
+
<p>The type discriminant.</p>
|
3431
|
+
</div>
|
3432
|
+
</div>
|
3433
|
+
</li>
|
3434
|
+
</ul>
|
3435
|
+
</div>
|
3436
|
+
</section>
|
3437
|
+
<section class="tsd-panel tsd-member tsd-kind-type-alias">
|
3438
|
+
<a name="ContentDataListItem" class="tsd-anchor"></a>
|
3439
|
+
<h3>Content<wbr>Data<wbr>List<wbr>Item</h3>
|
3440
|
+
<div class="tsd-signature tsd-kind-icon">Content<wbr>Data<wbr>List<wbr>Item<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>description<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>id<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>item<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span></div>
|
3441
|
+
<aside class="tsd-sources">
|
3442
|
+
</aside>
|
3443
|
+
<div class="tsd-comment tsd-typography">
|
3444
|
+
<div class="lead">
|
3445
|
+
<p>Represents an item in the <a href="modules.html#ContentDataListPicker">ContentDataListPicker</a>.</p>
|
3446
|
+
</div>
|
3447
|
+
</div>
|
3448
|
+
<div class="tsd-type-declaration">
|
3449
|
+
<h4>Type declaration</h4>
|
3450
|
+
<ul class="tsd-parameters">
|
3451
|
+
<li class="tsd-parameter">
|
3452
|
+
<h5><span class="tsd-flag ts-flagOptional">Optional</span> <span class="tsd-flag ts-flagReadonly">Readonly</span> description<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span></h5>
|
3453
|
+
<div class="tsd-comment tsd-typography">
|
3454
|
+
<div class="lead">
|
3455
|
+
<p>Description of the item.</p>
|
3456
|
+
</div>
|
3457
|
+
</div>
|
3458
|
+
</li>
|
3459
|
+
<li class="tsd-parameter">
|
3460
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> id<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
|
3461
|
+
<div class="tsd-comment tsd-typography">
|
3462
|
+
<div class="lead">
|
3463
|
+
<p>Unique item identifier. Not visible to the recipient.</p>
|
3464
|
+
</div>
|
3465
|
+
</div>
|
3466
|
+
</li>
|
3467
|
+
<li class="tsd-parameter">
|
3468
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> item<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
|
3469
|
+
<div class="tsd-comment tsd-typography">
|
3470
|
+
<div class="lead">
|
3471
|
+
<p>Display value of the item.</p>
|
3472
|
+
</div>
|
3473
|
+
</div>
|
3474
|
+
</li>
|
3475
|
+
</ul>
|
3476
|
+
</div>
|
3477
|
+
</section>
|
3478
|
+
<section class="tsd-panel tsd-member tsd-kind-type-alias">
|
3479
|
+
<a name="ContentDataListPicker" class="tsd-anchor"></a>
|
3480
|
+
<h3>Content<wbr>Data<wbr>List<wbr>Picker</h3>
|
3481
|
+
<div class="tsd-signature tsd-kind-icon">Content<wbr>Data<wbr>List<wbr>Picker<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>body<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>button<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>items<span class="tsd-signature-symbol">: </span><a href="modules.html#ContentDataListItem" class="tsd-signature-type" data-tsd-kind="Type alias">ContentDataListItem</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span>rawData<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"listPicker"</span><span class="tsd-signature-symbol"> }</span></div>
|
3482
|
+
<aside class="tsd-sources">
|
3483
|
+
</aside>
|
3484
|
+
<div class="tsd-comment tsd-typography">
|
3485
|
+
<div class="lead">
|
3486
|
+
<p>Shows a menu of up to 10 options, which offers a simple way for users to make
|
3487
|
+
a selection. Represents the twilio/list-picker content type.</p>
|
3488
|
+
</div>
|
3489
|
+
</div>
|
3490
|
+
<div class="tsd-type-declaration">
|
3491
|
+
<h4>Type declaration</h4>
|
3492
|
+
<ul class="tsd-parameters">
|
3493
|
+
<li class="tsd-parameter">
|
3494
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> body<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
|
3495
|
+
<div class="tsd-comment tsd-typography">
|
3496
|
+
<div class="lead">
|
3497
|
+
<p>The text of the message you want to send. This is rendered as the body of
|
3498
|
+
the message.</p>
|
3499
|
+
</div>
|
3500
|
+
</div>
|
3501
|
+
</li>
|
3502
|
+
<li class="tsd-parameter">
|
3503
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> button<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
|
3504
|
+
<div class="tsd-comment tsd-typography">
|
3505
|
+
<div class="lead">
|
3506
|
+
<p>Display value of the primary button.</p>
|
3507
|
+
</div>
|
3508
|
+
</div>
|
3509
|
+
</li>
|
3510
|
+
<li class="tsd-parameter">
|
3511
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> items<span class="tsd-signature-symbol">: </span><a href="modules.html#ContentDataListItem" class="tsd-signature-type" data-tsd-kind="Type alias">ContentDataListItem</a><span class="tsd-signature-symbol">[]</span></h5>
|
3512
|
+
<div class="tsd-comment tsd-typography">
|
3513
|
+
<div class="lead">
|
3514
|
+
<p>List item objects displayed in the list. See <a href="modules.html#ContentDataListItem">ContentDataListItem</a>.</p>
|
3515
|
+
</div>
|
3516
|
+
</div>
|
3517
|
+
</li>
|
3518
|
+
<li class="tsd-parameter">
|
3519
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> raw<wbr>Data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
|
3520
|
+
<div class="tsd-comment tsd-typography">
|
3521
|
+
<div class="lead">
|
3522
|
+
<p>Full data as a stringified JSON. This could be used for future content
|
3523
|
+
types and fields which are not yet supported by the newest version of
|
3524
|
+
the Conversations SDK, or for using newer types in the older versions of
|
3525
|
+
the SDK.</p>
|
3526
|
+
</div>
|
3527
|
+
</div>
|
3528
|
+
</li>
|
3529
|
+
<li class="tsd-parameter">
|
3530
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"listPicker"</span></h5>
|
3531
|
+
<div class="tsd-comment tsd-typography">
|
3532
|
+
<div class="lead">
|
3533
|
+
<p>The type discriminant.</p>
|
3534
|
+
</div>
|
3535
|
+
</div>
|
3536
|
+
</li>
|
3537
|
+
</ul>
|
3538
|
+
</div>
|
3539
|
+
</section>
|
3540
|
+
<section class="tsd-panel tsd-member tsd-kind-type-alias">
|
3541
|
+
<a name="ContentDataLocation" class="tsd-anchor"></a>
|
3542
|
+
<h3>Content<wbr>Data<wbr>Location</h3>
|
3543
|
+
<div class="tsd-signature tsd-kind-icon">Content<wbr>Data<wbr>Location<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>label<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>latitude<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>longitude<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>rawData<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"location"</span><span class="tsd-signature-symbol"> }</span></div>
|
3544
|
+
<aside class="tsd-sources">
|
3545
|
+
</aside>
|
3546
|
+
<div class="tsd-comment tsd-typography">
|
3547
|
+
<div class="lead">
|
3548
|
+
<p>Contains a location pin and an optional label, which can be used to enhance
|
3549
|
+
delivery notifications or connect recipients to physical experiences you
|
3550
|
+
offer. Represents the twilio/location content type.</p>
|
3551
|
+
</div>
|
3552
|
+
</div>
|
3553
|
+
<div class="tsd-type-declaration">
|
3554
|
+
<h4>Type declaration</h4>
|
3555
|
+
<ul class="tsd-parameters">
|
3556
|
+
<li class="tsd-parameter">
|
3557
|
+
<h5><span class="tsd-flag ts-flagOptional">Optional</span> <span class="tsd-flag ts-flagReadonly">Readonly</span> label<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span></h5>
|
3558
|
+
<div class="tsd-comment tsd-typography">
|
3559
|
+
<div class="lead">
|
3560
|
+
<p>The label to be displayed to the end user alongside the location pin.</p>
|
3561
|
+
</div>
|
3562
|
+
</div>
|
3563
|
+
</li>
|
3564
|
+
<li class="tsd-parameter">
|
3565
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> latitude<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5>
|
3566
|
+
<div class="tsd-comment tsd-typography">
|
3567
|
+
<div class="lead">
|
3568
|
+
<p>The latitude value of the location pin you want to send.</p>
|
3569
|
+
</div>
|
3570
|
+
</div>
|
3571
|
+
</li>
|
3572
|
+
<li class="tsd-parameter">
|
3573
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> longitude<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5>
|
3574
|
+
<div class="tsd-comment tsd-typography">
|
3575
|
+
<div class="lead">
|
3576
|
+
<p>The longitude value of the location pin you want to send.</p>
|
3577
|
+
</div>
|
3578
|
+
</div>
|
3579
|
+
</li>
|
3580
|
+
<li class="tsd-parameter">
|
3581
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> raw<wbr>Data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
|
3582
|
+
<div class="tsd-comment tsd-typography">
|
3583
|
+
<div class="lead">
|
3584
|
+
<p>Full data as a stringified JSON. This could be used for future content
|
3585
|
+
types and fields which are not yet supported by the newest version of
|
3586
|
+
the Conversations SDK, or for using newer types in the older versions of
|
3587
|
+
the SDK.</p>
|
3588
|
+
</div>
|
3589
|
+
</div>
|
3590
|
+
</li>
|
3591
|
+
<li class="tsd-parameter">
|
3592
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"location"</span></h5>
|
3593
|
+
<div class="tsd-comment tsd-typography">
|
3594
|
+
<div class="lead">
|
3595
|
+
<p>The type discriminant.</p>
|
3596
|
+
</div>
|
3597
|
+
</div>
|
3598
|
+
</li>
|
3599
|
+
</ul>
|
3600
|
+
</div>
|
3601
|
+
</section>
|
3602
|
+
<section class="tsd-panel tsd-member tsd-kind-type-alias">
|
3603
|
+
<a name="ContentDataMedia" class="tsd-anchor"></a>
|
3604
|
+
<h3>Content<wbr>Data<wbr>Media</h3>
|
3605
|
+
<div class="tsd-signature tsd-kind-icon">Content<wbr>Data<wbr>Media<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>body<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>media<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>rawData<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"media"</span><span class="tsd-signature-symbol"> }</span></div>
|
3606
|
+
<aside class="tsd-sources">
|
3607
|
+
</aside>
|
3608
|
+
<div class="tsd-comment tsd-typography">
|
3609
|
+
<div class="lead">
|
3610
|
+
<p>Used to send file attachments, or to send long texts via MMS in the US and
|
3611
|
+
Canada. Represents the twilio/media content type.</p>
|
3612
|
+
</div>
|
3613
|
+
</div>
|
3614
|
+
<div class="tsd-type-declaration">
|
3615
|
+
<h4>Type declaration</h4>
|
3616
|
+
<ul class="tsd-parameters">
|
3617
|
+
<li class="tsd-parameter">
|
3618
|
+
<h5><span class="tsd-flag ts-flagOptional">Optional</span> <span class="tsd-flag ts-flagReadonly">Readonly</span> body<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span></h5>
|
3619
|
+
<div class="tsd-comment tsd-typography">
|
3620
|
+
<div class="lead">
|
3621
|
+
<p>The text of the message you want to send.</p>
|
3622
|
+
</div>
|
3623
|
+
</div>
|
3624
|
+
</li>
|
3625
|
+
<li class="tsd-parameter">
|
3626
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> media<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></h5>
|
3627
|
+
<div class="tsd-comment tsd-typography">
|
3628
|
+
<div class="lead">
|
3629
|
+
<p>URLs of the media you want to send.</p>
|
3630
|
+
</div>
|
3631
|
+
</div>
|
3632
|
+
</li>
|
3633
|
+
<li class="tsd-parameter">
|
3634
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> raw<wbr>Data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
|
3635
|
+
<div class="tsd-comment tsd-typography">
|
3636
|
+
<div class="lead">
|
3637
|
+
<p>Full data as a stringified JSON. This could be used for future content
|
3638
|
+
types and fields which are not yet supported by the newest version of
|
3639
|
+
the Conversations SDK, or for using newer types in the older versions of
|
3640
|
+
the SDK.</p>
|
3641
|
+
</div>
|
3642
|
+
</div>
|
3643
|
+
</li>
|
3644
|
+
<li class="tsd-parameter">
|
3645
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"media"</span></h5>
|
3646
|
+
<div class="tsd-comment tsd-typography">
|
3647
|
+
<div class="lead">
|
3648
|
+
<p>The type discriminant.</p>
|
3649
|
+
</div>
|
3650
|
+
</div>
|
3651
|
+
</li>
|
3652
|
+
</ul>
|
3653
|
+
</div>
|
3654
|
+
</section>
|
3655
|
+
<section class="tsd-panel tsd-member tsd-kind-type-alias">
|
3656
|
+
<a name="ContentDataOther" class="tsd-anchor"></a>
|
3657
|
+
<h3>Content<wbr>Data<wbr>Other</h3>
|
3658
|
+
<div class="tsd-signature tsd-kind-icon">Content<wbr>Data<wbr>Other<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>rawData<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"other"</span><span class="tsd-signature-symbol"> }</span></div>
|
3659
|
+
<aside class="tsd-sources">
|
3660
|
+
</aside>
|
3661
|
+
<div class="tsd-comment tsd-typography">
|
3662
|
+
<div class="lead">
|
3663
|
+
<p>Used for unknown content types which aren't present in the current version of
|
3664
|
+
the Conversations SDK.</p>
|
3665
|
+
</div>
|
3666
|
+
</div>
|
3667
|
+
<div class="tsd-type-declaration">
|
3668
|
+
<h4>Type declaration</h4>
|
3669
|
+
<ul class="tsd-parameters">
|
3670
|
+
<li class="tsd-parameter">
|
3671
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> raw<wbr>Data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
|
3672
|
+
<div class="tsd-comment tsd-typography">
|
3673
|
+
<div class="lead">
|
3674
|
+
<p>Full data as a stringified JSON. This could be used for future content
|
3675
|
+
types and fields which are not yet supported by the newest version of
|
3676
|
+
the Conversations SDK, or for using newer types in the older versions of
|
3677
|
+
the SDK.</p>
|
3678
|
+
</div>
|
3679
|
+
</div>
|
3680
|
+
</li>
|
3681
|
+
<li class="tsd-parameter">
|
3682
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"other"</span></h5>
|
3683
|
+
<div class="tsd-comment tsd-typography">
|
3684
|
+
<div class="lead">
|
3685
|
+
<p>The type discriminant.</p>
|
3686
|
+
</div>
|
3687
|
+
</div>
|
3688
|
+
</li>
|
3689
|
+
</ul>
|
3690
|
+
</div>
|
3691
|
+
</section>
|
3692
|
+
<section class="tsd-panel tsd-member tsd-kind-type-alias">
|
3693
|
+
<a name="ContentDataQuickReply" class="tsd-anchor"></a>
|
3694
|
+
<h3>Content<wbr>Data<wbr>Quick<wbr>Reply</h3>
|
3695
|
+
<div class="tsd-signature tsd-kind-icon">Content<wbr>Data<wbr>Quick<wbr>Reply<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>body<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>rawData<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>replies<span class="tsd-signature-symbol">: </span><a href="modules.html#ContentDataReply" class="tsd-signature-type" data-tsd-kind="Type alias">ContentDataReply</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"quickReply"</span><span class="tsd-signature-symbol"> }</span></div>
|
3696
|
+
<aside class="tsd-sources">
|
3697
|
+
</aside>
|
3698
|
+
<div class="tsd-comment tsd-typography">
|
3699
|
+
<div class="lead">
|
3700
|
+
<p>Let recipients tap, rather than type, to respond to the message. Represents
|
3701
|
+
the twilio/quick-reply content type.</p>
|
3702
|
+
</div>
|
3703
|
+
</div>
|
3704
|
+
<div class="tsd-type-declaration">
|
3705
|
+
<h4>Type declaration</h4>
|
3706
|
+
<ul class="tsd-parameters">
|
3707
|
+
<li class="tsd-parameter">
|
3708
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> body<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
|
3709
|
+
<div class="tsd-comment tsd-typography">
|
3710
|
+
<div class="lead">
|
3711
|
+
<p>The text of the message you want to send. This is included as a regular
|
3712
|
+
text message.</p>
|
3713
|
+
</div>
|
3714
|
+
</div>
|
3715
|
+
</li>
|
3716
|
+
<li class="tsd-parameter">
|
3717
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> raw<wbr>Data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
|
3718
|
+
<div class="tsd-comment tsd-typography">
|
3719
|
+
<div class="lead">
|
3720
|
+
<p>Full data as a stringified JSON. This could be used for future content
|
3721
|
+
types and fields which are not yet supported by the newest version of
|
3722
|
+
the Conversations SDK, or for using newer types in the older versions of
|
3723
|
+
the SDK.</p>
|
3724
|
+
</div>
|
3725
|
+
</div>
|
3726
|
+
</li>
|
3727
|
+
<li class="tsd-parameter">
|
3728
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> replies<span class="tsd-signature-symbol">: </span><a href="modules.html#ContentDataReply" class="tsd-signature-type" data-tsd-kind="Type alias">ContentDataReply</a><span class="tsd-signature-symbol">[]</span></h5>
|
3729
|
+
<div class="tsd-comment tsd-typography">
|
3730
|
+
<div class="lead">
|
3731
|
+
<p>Up to 3 buttons can be created for quick reply. See
|
3732
|
+
<a href="modules.html#ContentDataReply">ContentDataReply</a>.</p>
|
3733
|
+
</div>
|
3734
|
+
</div>
|
3735
|
+
</li>
|
3736
|
+
<li class="tsd-parameter">
|
3737
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"quickReply"</span></h5>
|
3738
|
+
<div class="tsd-comment tsd-typography">
|
3739
|
+
<div class="lead">
|
3740
|
+
<p>The type discriminant.</p>
|
3741
|
+
</div>
|
3742
|
+
</div>
|
3743
|
+
</li>
|
3744
|
+
</ul>
|
3745
|
+
</div>
|
3746
|
+
</section>
|
3747
|
+
<section class="tsd-panel tsd-member tsd-kind-type-alias">
|
3748
|
+
<a name="ContentDataReply" class="tsd-anchor"></a>
|
3749
|
+
<h3>Content<wbr>Data<wbr>Reply</h3>
|
3750
|
+
<div class="tsd-signature tsd-kind-icon">Content<wbr>Data<wbr>Reply<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>id<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>title<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span></div>
|
3751
|
+
<aside class="tsd-sources">
|
3752
|
+
</aside>
|
3753
|
+
<div class="tsd-comment tsd-typography">
|
3754
|
+
<div class="lead">
|
3755
|
+
<p>Shows a button that sends back a predefined text. Used in
|
3756
|
+
<a href="modules.html#ContentDataQuickReply">ContentDataQuickReply</a>.</p>
|
3757
|
+
</div>
|
3758
|
+
</div>
|
3759
|
+
<div class="tsd-type-declaration">
|
3760
|
+
<h4>Type declaration</h4>
|
3761
|
+
<ul class="tsd-parameters">
|
3762
|
+
<li class="tsd-parameter">
|
3763
|
+
<h5><span class="tsd-flag ts-flagOptional">Optional</span> <span class="tsd-flag ts-flagReadonly">Readonly</span> id<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span></h5>
|
3764
|
+
<div class="tsd-comment tsd-typography">
|
3765
|
+
<div class="lead">
|
3766
|
+
<p>Postback payload. This field is not visible to the end user.</p>
|
3767
|
+
</div>
|
3768
|
+
</div>
|
3769
|
+
</li>
|
3770
|
+
<li class="tsd-parameter">
|
3771
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> title<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
|
3772
|
+
<div class="tsd-comment tsd-typography">
|
3773
|
+
<div class="lead">
|
3774
|
+
<p>Display value of the action. This is the message that will be sent back
|
3775
|
+
when the user taps on the button.</p>
|
3776
|
+
</div>
|
3777
|
+
</div>
|
3778
|
+
</li>
|
3779
|
+
</ul>
|
3780
|
+
</div>
|
3781
|
+
</section>
|
3782
|
+
<section class="tsd-panel tsd-member tsd-kind-type-alias">
|
3783
|
+
<a name="ContentDataText" class="tsd-anchor"></a>
|
3784
|
+
<h3>Content<wbr>Data<wbr>Text</h3>
|
3785
|
+
<div class="tsd-signature tsd-kind-icon">Content<wbr>Data<wbr>Text<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>body<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>rawData<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"text"</span><span class="tsd-signature-symbol"> }</span></div>
|
3786
|
+
<aside class="tsd-sources">
|
3787
|
+
</aside>
|
3788
|
+
<div class="tsd-comment tsd-typography">
|
3789
|
+
<div class="lead">
|
3790
|
+
<p>Contains only the plain text-based content. Represents the twilio/text
|
3791
|
+
content type.</p>
|
3792
|
+
</div>
|
3793
|
+
</div>
|
3794
|
+
<div class="tsd-type-declaration">
|
3795
|
+
<h4>Type declaration</h4>
|
3796
|
+
<ul class="tsd-parameters">
|
3797
|
+
<li class="tsd-parameter">
|
3798
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> body<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
|
3799
|
+
<div class="tsd-comment tsd-typography">
|
3800
|
+
<div class="lead">
|
3801
|
+
<p>The text of the message you want to send.</p>
|
3802
|
+
</div>
|
3803
|
+
</div>
|
3804
|
+
</li>
|
3805
|
+
<li class="tsd-parameter">
|
3806
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> raw<wbr>Data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
|
3807
|
+
<div class="tsd-comment tsd-typography">
|
3808
|
+
<div class="lead">
|
3809
|
+
<p>Full data as a stringified JSON. This could be used for future content
|
3810
|
+
types and fields which are not yet supported by the newest version of
|
3811
|
+
the Conversations SDK, or for using newer types in the older versions of
|
3812
|
+
the SDK.</p>
|
3813
|
+
</div>
|
3814
|
+
</div>
|
3815
|
+
</li>
|
3816
|
+
<li class="tsd-parameter">
|
3817
|
+
<h5><span class="tsd-flag ts-flagReadonly">Readonly</span> type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"text"</span></h5>
|
3818
|
+
<div class="tsd-comment tsd-typography">
|
3819
|
+
<div class="lead">
|
3820
|
+
<p>The type discriminant.</p>
|
3821
|
+
</div>
|
3822
|
+
</div>
|
3823
|
+
</li>
|
3824
|
+
</ul>
|
3825
|
+
</div>
|
3826
|
+
</section>
|
3004
3827
|
<section class="tsd-panel tsd-member tsd-kind-type-alias">
|
3005
3828
|
<a name="ConversationStatus" class="tsd-anchor"></a>
|
3006
3829
|
<h3>Conversation<wbr>Status</h3>
|
@@ -3183,12 +4006,13 @@ img {
|
|
3183
4006
|
<section class="tsd-panel tsd-member tsd-kind-type-alias">
|
3184
4007
|
<a name="ParticipantType" class="tsd-anchor"></a>
|
3185
4008
|
<h3>Participant<wbr>Type</h3>
|
3186
|
-
<div class="tsd-signature tsd-kind-icon">Participant<wbr>Type<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"chat"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"sms"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"whatsapp"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"email"</span></div>
|
4009
|
+
<div class="tsd-signature tsd-kind-icon">Participant<wbr>Type<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"chat"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"sms"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"whatsapp"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"email"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></div>
|
3187
4010
|
<aside class="tsd-sources">
|
3188
4011
|
</aside>
|
3189
4012
|
<div class="tsd-comment tsd-typography">
|
3190
4013
|
<div class="lead">
|
3191
|
-
<p>
|
4014
|
+
<p>Participant type. The string variant can be used to denote new types of
|
4015
|
+
participant that aren't supported by this version of the SDK.</p>
|
3192
4016
|
</div>
|
3193
4017
|
</div>
|
3194
4018
|
</section>
|