@sinch/conversation 1.2.1 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/dist/models/v1/app-message/app-message.d.ts +10 -7
  2. package/dist/models/v1/callback-settings/callback-settings.d.ts +1 -1
  3. package/dist/models/v1/card-message/card-message.d.ts +7 -4
  4. package/dist/models/v1/carousel-message/carousel-message.d.ts +5 -2
  5. package/dist/models/v1/channel-specific-contact-message/channel-specific-contact-message.d.ts +1 -1
  6. package/dist/models/v1/channel-specific-message/channel-specific-message.d.ts +19 -5
  7. package/dist/models/v1/channel-specific-message/index.d.ts +1 -1
  8. package/dist/models/v1/choice-item/choice-item.d.ts +3 -3
  9. package/dist/models/v1/choice-message/choice-message.d.ts +6 -0
  10. package/dist/models/v1/contact-create-request/contact-create-request.d.ts +1 -1
  11. package/dist/models/v1/contact-message/contact-message.d.ts +4 -4
  12. package/dist/models/v1/contact-message-event/contact-message-event.d.ts +47 -2
  13. package/dist/models/v1/contact-message-event/index.d.ts +1 -1
  14. package/dist/models/v1/conversation-channel-credential/conversation-channel-credential.d.ts +16 -4
  15. package/dist/models/v1/conversation-channel-credential/index.d.ts +1 -1
  16. package/dist/models/v1/conversation-event/conversation-event.d.ts +1 -1
  17. package/dist/models/v1/conversation-message/conversation-message.d.ts +1 -1
  18. package/dist/models/v1/create-conversation-request/create-conversation-request.d.ts +7 -1
  19. package/dist/models/v1/delivery-report-based-fallback/delivery-report-based-fallback.d.ts +1 -1
  20. package/dist/models/v1/dispatch-retention-policy/dispatch-retention-policy.d.ts +2 -2
  21. package/dist/models/v1/enums.d.ts +23 -14
  22. package/dist/models/v1/helper.d.ts +5 -5
  23. package/dist/models/v1/helper.js.map +1 -1
  24. package/dist/models/v1/identified-by/identified-by.d.ts +4 -2
  25. package/dist/models/v1/identified-by/index.d.ts +1 -1
  26. package/dist/models/v1/index.d.ts +4 -9
  27. package/dist/models/v1/index.js +4 -9
  28. package/dist/models/v1/index.js.map +1 -1
  29. package/dist/models/v1/inject-conversation-event-request/inject-conversation-event-request.d.ts +1 -1
  30. package/dist/models/v1/inject-message-request/inject-message-request.d.ts +4 -6
  31. package/dist/models/v1/list-message/list-message.d.ts +6 -1
  32. package/dist/models/v1/list-section/list-section.d.ts +1 -1
  33. package/dist/models/v1/media-message/index.d.ts +1 -1
  34. package/dist/models/v1/media-message/media-message.d.ts +2 -2
  35. package/dist/models/v1/mod-callback-events/capability-event/capability-event.d.ts +1 -1
  36. package/dist/models/v1/mod-callback-events/event-inbound/event-inbound.d.ts +30 -3
  37. package/dist/models/v1/mod-callback-events/event-inbound/index.d.ts +1 -1
  38. package/dist/models/v1/mod-callback-events/smart-conversations-event/smart-conversations-event.d.ts +6 -3
  39. package/dist/models/v1/mod-credentials/index.d.ts +1 -0
  40. package/dist/models/v1/mod-credentials/index.js +1 -0
  41. package/dist/models/v1/mod-credentials/index.js.map +1 -1
  42. package/dist/models/v1/mod-credentials/line-credentials/line-credentials.d.ts +3 -1
  43. package/dist/models/v1/mod-credentials/line-enterprise-credentials/index.d.ts +1 -0
  44. package/dist/models/v1/mod-credentials/line-enterprise-credentials/index.js.map +1 -0
  45. package/dist/models/v1/mod-credentials/line-enterprise-credentials/line-enterprise-credentials.d.ts +24 -0
  46. package/dist/models/v1/{media-carousel-message/media-carousel-message.js → mod-credentials/line-enterprise-credentials/line-enterprise-credentials.js} +1 -1
  47. package/dist/models/v1/mod-credentials/line-enterprise-credentials/line-enterprise-credentials.js.map +1 -0
  48. package/dist/models/v1/queue-stats/queue-stats.d.ts +2 -2
  49. package/dist/models/v1/requests/contact/contact-request-data.d.ts +3 -3
  50. package/dist/models/v1/requests/conversation/conversation-request-data.d.ts +1 -1
  51. package/dist/models/v1/requests/messages/messages-request-data.d.ts +1 -1
  52. package/dist/models/v1/retention-policy/retention-policy.d.ts +1 -1
  53. package/dist/models/v1/runtime-error/index.d.ts +1 -1
  54. package/dist/models/v1/runtime-error/runtime-error.d.ts +3 -1
  55. package/dist/models/v1/send-message-request/send-message-request.d.ts +6 -4
  56. package/dist/models/v1/template-message/template-message.d.ts +6 -3
  57. package/dist/models/v1/template-reference/index.d.ts +1 -1
  58. package/dist/models/v1/template-reference/template-reference.d.ts +15 -3
  59. package/dist/models/v1/webhook/webhook.d.ts +3 -3
  60. package/dist/models/v1/webhook-trigger/webhook-trigger.d.ts +1 -0
  61. package/dist/models/v1/whatsapp-flow/index.d.ts +1 -0
  62. package/dist/models/v1/whatsapp-flow/index.js.map +1 -0
  63. package/dist/models/v1/whatsapp-flow/whatsapp-flow.d.ts +28 -0
  64. package/dist/models/v1/whatsapp-flow/whatsapp-flow.js +3 -0
  65. package/dist/models/v1/whatsapp-flow/whatsapp-flow.js.map +1 -0
  66. package/dist/models/v1/whatsapp-interactive-message-base/common/header/index.d.ts +5 -0
  67. package/dist/models/v1/whatsapp-interactive-message-base/common/header/index.js +22 -0
  68. package/dist/models/v1/whatsapp-interactive-message-base/common/header/index.js.map +1 -0
  69. package/dist/models/v1/whatsapp-interactive-message-base/common/header/whatsapp-interactive-document-header/index.js.map +1 -0
  70. package/dist/models/v1/whatsapp-interactive-message-base/common/header/whatsapp-interactive-document-header/whatsapp-interactive-document-header.js.map +1 -0
  71. package/dist/models/v1/whatsapp-interactive-message-base/common/header/whatsapp-interactive-header-media/index.js.map +1 -0
  72. package/dist/models/v1/whatsapp-interactive-message-base/common/header/whatsapp-interactive-header-media/whatsapp-interactive-header-media.js.map +1 -0
  73. package/dist/models/v1/whatsapp-interactive-message-base/common/header/whatsapp-interactive-image-header/index.js.map +1 -0
  74. package/dist/models/v1/whatsapp-interactive-message-base/common/header/whatsapp-interactive-image-header/whatsapp-interactive-image-header.js.map +1 -0
  75. package/dist/models/v1/whatsapp-interactive-message-base/common/header/whatsapp-interactive-text-header/index.js.map +1 -0
  76. package/dist/models/v1/whatsapp-interactive-message-base/common/header/whatsapp-interactive-text-header/whatsapp-interactive-text-header.js.map +1 -0
  77. package/dist/models/v1/whatsapp-interactive-message-base/common/header/whatsapp-interactive-video-header/index.js.map +1 -0
  78. package/dist/models/v1/whatsapp-interactive-message-base/common/header/whatsapp-interactive-video-header/whatsapp-interactive-video-header.js.map +1 -0
  79. package/dist/models/v1/whatsapp-interactive-message-base/common/index.d.ts +4 -0
  80. package/dist/models/v1/whatsapp-interactive-message-base/common/index.js +21 -0
  81. package/dist/models/v1/whatsapp-interactive-message-base/common/index.js.map +1 -0
  82. package/dist/models/v1/whatsapp-interactive-message-base/common/whatsapp-interactive-body/index.js.map +1 -0
  83. package/dist/models/v1/whatsapp-interactive-message-base/common/whatsapp-interactive-body/whatsapp-interactive-body.js.map +1 -0
  84. package/dist/models/v1/whatsapp-interactive-message-base/common/whatsapp-interactive-footer/index.js.map +1 -0
  85. package/dist/models/v1/whatsapp-interactive-message-base/common/whatsapp-interactive-footer/whatsapp-interactive-footer.js.map +1 -0
  86. package/dist/models/v1/whatsapp-interactive-message-base/common/whatsapp-interactive-header/index.d.ts +1 -0
  87. package/dist/models/v1/whatsapp-interactive-message-base/common/whatsapp-interactive-header/index.js +3 -0
  88. package/dist/models/v1/whatsapp-interactive-message-base/common/whatsapp-interactive-header/index.js.map +1 -0
  89. package/dist/models/v1/whatsapp-interactive-message-base/common/whatsapp-interactive-header/whatsapp-interactive-header.d.ts +4 -0
  90. package/dist/models/v1/whatsapp-interactive-message-base/common/whatsapp-interactive-header/whatsapp-interactive-header.js +3 -0
  91. package/dist/models/v1/whatsapp-interactive-message-base/common/whatsapp-interactive-header/whatsapp-interactive-header.js.map +1 -0
  92. package/dist/models/v1/whatsapp-interactive-message-base/index.d.ts +2 -0
  93. package/dist/models/v1/whatsapp-interactive-message-base/index.js +18 -0
  94. package/dist/models/v1/whatsapp-interactive-message-base/index.js.map +1 -0
  95. package/dist/models/v1/whatsapp-interactive-message-base/whatsapp-interactive-message-base.d.ts +9 -0
  96. package/dist/models/v1/whatsapp-interactive-message-base/whatsapp-interactive-message-base.js +3 -0
  97. package/dist/models/v1/whatsapp-interactive-message-base/whatsapp-interactive-message-base.js.map +1 -0
  98. package/dist/models/v1/whatsapp-payment-order-details/index.d.ts +1 -0
  99. package/dist/models/v1/whatsapp-payment-order-details/index.js +3 -0
  100. package/dist/models/v1/whatsapp-payment-order-details/index.js.map +1 -0
  101. package/dist/models/v1/whatsapp-payment-order-details/whatsapp-payment-order-details.d.ts +98 -0
  102. package/dist/models/v1/whatsapp-payment-order-details/whatsapp-payment-order-details.js +3 -0
  103. package/dist/models/v1/whatsapp-payment-order-details/whatsapp-payment-order-details.js.map +1 -0
  104. package/dist/models/v1/whatsapp-payment-order-status/index.d.ts +1 -0
  105. package/dist/models/v1/whatsapp-payment-order-status/index.js +3 -0
  106. package/dist/models/v1/whatsapp-payment-order-status/index.js.map +1 -0
  107. package/dist/models/v1/whatsapp-payment-order-status/whatsapp-payment-order-status.d.ts +32 -0
  108. package/dist/models/v1/{flow-channel-specific-message/flow-channel-specific-message.js → whatsapp-payment-order-status/whatsapp-payment-order-status.js} +1 -1
  109. package/dist/models/v1/whatsapp-payment-order-status/whatsapp-payment-order-status.js.map +1 -0
  110. package/dist/rest/v1/app/app-api.d.ts +1 -1
  111. package/dist/rest/v1/app/app-api.js +1 -1
  112. package/dist/rest/v1/callbacks/callbacks-webhook.js +3 -0
  113. package/dist/rest/v1/callbacks/callbacks-webhook.js.map +1 -1
  114. package/dist/rest/v1/contact/contact-api.d.ts +1 -1
  115. package/dist/rest/v1/contact/contact-api.js +1 -1
  116. package/dist/rest/v1/conversation/conversation-api.d.ts +1 -1
  117. package/dist/rest/v1/conversation/conversation-api.js +1 -1
  118. package/dist/rest/v1/conversation-domain-api.d.ts +1 -0
  119. package/dist/rest/v1/conversation-domain-api.js +22 -1
  120. package/dist/rest/v1/conversation-domain-api.js.map +1 -1
  121. package/dist/rest/v1/messages/messages-api.d.ts +1 -1
  122. package/dist/rest/v1/messages/messages-api.js +1 -1
  123. package/package.json +2 -2
  124. package/dist/models/v1/flow-channel-specific-message/flow-channel-specific-message.d.ts +0 -37
  125. package/dist/models/v1/flow-channel-specific-message/flow-channel-specific-message.js.map +0 -1
  126. package/dist/models/v1/flow-channel-specific-message/index.d.ts +0 -1
  127. package/dist/models/v1/flow-channel-specific-message/index.js.map +0 -1
  128. package/dist/models/v1/media-carousel-message/index.d.ts +0 -1
  129. package/dist/models/v1/media-carousel-message/index.js.map +0 -1
  130. package/dist/models/v1/media-carousel-message/media-carousel-message.d.ts +0 -7
  131. package/dist/models/v1/media-carousel-message/media-carousel-message.js.map +0 -1
  132. package/dist/models/v1/whatsapp-interactive-body/index.js.map +0 -1
  133. package/dist/models/v1/whatsapp-interactive-body/whatsapp-interactive-body.js.map +0 -1
  134. package/dist/models/v1/whatsapp-interactive-document-header/index.js.map +0 -1
  135. package/dist/models/v1/whatsapp-interactive-document-header/whatsapp-interactive-document-header.js.map +0 -1
  136. package/dist/models/v1/whatsapp-interactive-footer/index.js.map +0 -1
  137. package/dist/models/v1/whatsapp-interactive-footer/whatsapp-interactive-footer.js.map +0 -1
  138. package/dist/models/v1/whatsapp-interactive-header-media/index.js.map +0 -1
  139. package/dist/models/v1/whatsapp-interactive-header-media/whatsapp-interactive-header-media.js.map +0 -1
  140. package/dist/models/v1/whatsapp-interactive-image-header/index.js.map +0 -1
  141. package/dist/models/v1/whatsapp-interactive-image-header/whatsapp-interactive-image-header.js.map +0 -1
  142. package/dist/models/v1/whatsapp-interactive-text-header/index.js.map +0 -1
  143. package/dist/models/v1/whatsapp-interactive-text-header/whatsapp-interactive-text-header.js.map +0 -1
  144. package/dist/models/v1/whatsapp-interactive-video-header/index.js.map +0 -1
  145. package/dist/models/v1/whatsapp-interactive-video-header/whatsapp-interactive-video-header.js.map +0 -1
  146. /package/dist/models/v1/{flow-channel-specific-message → mod-credentials/line-enterprise-credentials}/index.js +0 -0
  147. /package/dist/models/v1/{media-carousel-message → whatsapp-flow}/index.js +0 -0
  148. /package/dist/models/v1/{whatsapp-interactive-document-header → whatsapp-interactive-message-base/common/header/whatsapp-interactive-document-header}/index.d.ts +0 -0
  149. /package/dist/models/v1/{whatsapp-interactive-body → whatsapp-interactive-message-base/common/header/whatsapp-interactive-document-header}/index.js +0 -0
  150. /package/dist/models/v1/{whatsapp-interactive-document-header → whatsapp-interactive-message-base/common/header/whatsapp-interactive-document-header}/whatsapp-interactive-document-header.d.ts +0 -0
  151. /package/dist/models/v1/{whatsapp-interactive-document-header → whatsapp-interactive-message-base/common/header/whatsapp-interactive-document-header}/whatsapp-interactive-document-header.js +0 -0
  152. /package/dist/models/v1/{whatsapp-interactive-header-media → whatsapp-interactive-message-base/common/header/whatsapp-interactive-header-media}/index.d.ts +0 -0
  153. /package/dist/models/v1/{whatsapp-interactive-document-header → whatsapp-interactive-message-base/common/header/whatsapp-interactive-header-media}/index.js +0 -0
  154. /package/dist/models/v1/{whatsapp-interactive-header-media → whatsapp-interactive-message-base/common/header/whatsapp-interactive-header-media}/whatsapp-interactive-header-media.d.ts +0 -0
  155. /package/dist/models/v1/{whatsapp-interactive-header-media → whatsapp-interactive-message-base/common/header/whatsapp-interactive-header-media}/whatsapp-interactive-header-media.js +0 -0
  156. /package/dist/models/v1/{whatsapp-interactive-image-header → whatsapp-interactive-message-base/common/header/whatsapp-interactive-image-header}/index.d.ts +0 -0
  157. /package/dist/models/v1/{whatsapp-interactive-footer → whatsapp-interactive-message-base/common/header/whatsapp-interactive-image-header}/index.js +0 -0
  158. /package/dist/models/v1/{whatsapp-interactive-image-header → whatsapp-interactive-message-base/common/header/whatsapp-interactive-image-header}/whatsapp-interactive-image-header.d.ts +0 -0
  159. /package/dist/models/v1/{whatsapp-interactive-image-header → whatsapp-interactive-message-base/common/header/whatsapp-interactive-image-header}/whatsapp-interactive-image-header.js +0 -0
  160. /package/dist/models/v1/{whatsapp-interactive-text-header → whatsapp-interactive-message-base/common/header/whatsapp-interactive-text-header}/index.d.ts +0 -0
  161. /package/dist/models/v1/{whatsapp-interactive-header-media → whatsapp-interactive-message-base/common/header/whatsapp-interactive-text-header}/index.js +0 -0
  162. /package/dist/models/v1/{whatsapp-interactive-text-header → whatsapp-interactive-message-base/common/header/whatsapp-interactive-text-header}/whatsapp-interactive-text-header.d.ts +0 -0
  163. /package/dist/models/v1/{whatsapp-interactive-text-header → whatsapp-interactive-message-base/common/header/whatsapp-interactive-text-header}/whatsapp-interactive-text-header.js +0 -0
  164. /package/dist/models/v1/{whatsapp-interactive-video-header → whatsapp-interactive-message-base/common/header/whatsapp-interactive-video-header}/index.d.ts +0 -0
  165. /package/dist/models/v1/{whatsapp-interactive-image-header → whatsapp-interactive-message-base/common/header/whatsapp-interactive-video-header}/index.js +0 -0
  166. /package/dist/models/v1/{whatsapp-interactive-video-header → whatsapp-interactive-message-base/common/header/whatsapp-interactive-video-header}/whatsapp-interactive-video-header.d.ts +0 -0
  167. /package/dist/models/v1/{whatsapp-interactive-video-header → whatsapp-interactive-message-base/common/header/whatsapp-interactive-video-header}/whatsapp-interactive-video-header.js +0 -0
  168. /package/dist/models/v1/{whatsapp-interactive-body → whatsapp-interactive-message-base/common/whatsapp-interactive-body}/index.d.ts +0 -0
  169. /package/dist/models/v1/{whatsapp-interactive-text-header → whatsapp-interactive-message-base/common/whatsapp-interactive-body}/index.js +0 -0
  170. /package/dist/models/v1/{whatsapp-interactive-body → whatsapp-interactive-message-base/common/whatsapp-interactive-body}/whatsapp-interactive-body.d.ts +0 -0
  171. /package/dist/models/v1/{whatsapp-interactive-body → whatsapp-interactive-message-base/common/whatsapp-interactive-body}/whatsapp-interactive-body.js +0 -0
  172. /package/dist/models/v1/{whatsapp-interactive-footer → whatsapp-interactive-message-base/common/whatsapp-interactive-footer}/index.d.ts +0 -0
  173. /package/dist/models/v1/{whatsapp-interactive-video-header → whatsapp-interactive-message-base/common/whatsapp-interactive-footer}/index.js +0 -0
  174. /package/dist/models/v1/{whatsapp-interactive-footer → whatsapp-interactive-message-base/common/whatsapp-interactive-footer}/whatsapp-interactive-footer.d.ts +0 -0
  175. /package/dist/models/v1/{whatsapp-interactive-footer → whatsapp-interactive-message-base/common/whatsapp-interactive-footer}/whatsapp-interactive-footer.js +0 -0
@@ -61,7 +61,6 @@ __exportStar(require("./create-conversation-request"), exports);
61
61
  __exportStar(require("./delivery-report-based-fallback"), exports);
62
62
  __exportStar(require("./dispatch-retention-policy"), exports);
63
63
  __exportStar(require("./fallback-message"), exports);
64
- __exportStar(require("./flow-channel-specific-message"), exports);
65
64
  __exportStar(require("./generic-event"), exports);
66
65
  __exportStar(require("./get-channel-profile-request"), exports);
67
66
  __exportStar(require("./get-channel-profile-response"), exports);
@@ -75,7 +74,6 @@ __exportStar(require("./list-section"), exports);
75
74
  __exportStar(require("./list-webhooks-response"), exports);
76
75
  __exportStar(require("./location-message"), exports);
77
76
  __exportStar(require("./media-card-message"), exports);
78
- __exportStar(require("./media-carousel-message"), exports);
79
77
  __exportStar(require("./media-message"), exports);
80
78
  __exportStar(require("./merge-contact-request"), exports);
81
79
  __exportStar(require("./message-retry-settings"), exports);
@@ -114,14 +112,11 @@ __exportStar(require("./v2-template-response"), exports);
114
112
  __exportStar(require("./v2-template-translation"), exports);
115
113
  __exportStar(require("./webhook"), exports);
116
114
  __exportStar(require("./webhook-trigger"), exports);
117
- __exportStar(require("./whatsapp-interactive-body"), exports);
118
- __exportStar(require("./whatsapp-interactive-document-header"), exports);
119
- __exportStar(require("./whatsapp-interactive-footer"), exports);
120
- __exportStar(require("./whatsapp-interactive-header-media"), exports);
121
- __exportStar(require("./whatsapp-interactive-image-header"), exports);
115
+ __exportStar(require("./whatsapp-flow"), exports);
122
116
  __exportStar(require("./whatsapp-interactive-nfm-reply"), exports);
123
- __exportStar(require("./whatsapp-interactive-text-header"), exports);
124
- __exportStar(require("./whatsapp-interactive-video-header"), exports);
117
+ __exportStar(require("./whatsapp-interactive-message-base"), exports);
118
+ __exportStar(require("./whatsapp-payment-order-details"), exports);
119
+ __exportStar(require("./whatsapp-payment-order-status"), exports);
125
120
  __exportStar(require("./enums"), exports);
126
121
  __exportStar(require("./helper"), exports);
127
122
  __exportStar(require("./requests"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,uDAAqC;AACrC,qDAAmC;AACnC,uDAAqC;AACrC,8CAA4B;AAC5B,gDAA8B;AAC9B,iDAA+B;AAC/B,uDAAqC;AACrC,iDAA+B;AAC/B,sDAAoC;AACpC,iDAA+B;AAC/B,qDAAmC;AACnC,qDAAmC;AACnC,8DAA4C;AAC5C,+DAA6C;AAC7C,+DAA6C;AAC7C,qEAAmD;AACnD,6DAA2C;AAC3C,2CAAyB;AACzB,gDAA8B;AAC9B,mDAAiC;AACjC,4DAA0C;AAC1C,uDAAqC;AACrC,kDAAgC;AAChC,wDAAsC;AACtC,wDAAsC;AACtC,oDAAkC;AAClC,4CAA0B;AAC1B,2DAAyC;AACzC,kDAAgC;AAChC,+CAA6B;AAC7B,yDAAuC;AACvC,qDAAmC;AACnC,oDAAkC;AAClC,0DAAwC;AACxC,iDAA+B;AAC/B,yDAAuC;AACvC,oEAAkD;AAClD,+DAA6C;AAC7C,uDAAqC;AACrC,yDAAuC;AACvC,gEAA8C;AAC9C,gDAA8B;AAC9B,gEAA8C;AAC9C,mEAAiD;AACjD,8DAA4C;AAC5C,qDAAmC;AACnC,kEAAgD;AAChD,kDAAgC;AAChC,gEAA8C;AAC9C,iEAA+C;AAC/C,kDAAgC;AAChC,sEAAoD;AACpD,0DAAwC;AACxC,2DAAyC;AACzC,uDAAqC;AACrC,iDAA+B;AAC/B,iDAA+B;AAC/B,2DAAyC;AACzC,qDAAmC;AACnC,uDAAqC;AACrC,2DAAyC;AACzC,kDAAgC;AAChC,0DAAwC;AACxC,2DAAyC;AACzC,iDAA+B;AAC/B,6DAA2C;AAC3C,iDAA+B;AAC/B,8DAA4C;AAC5C,+DAA6C;AAC7C,gDAA8B;AAC9B,gDAA8B;AAC9B,2CAAyB;AACzB,8CAA4B;AAC5B,6CAA2B;AAC3B,qDAAmC;AACnC,kDAAgC;AAChC,uDAAqC;AACrC,wDAAsC;AACtC,yDAAuC;AACvC,0DAAwC;AACxC,uDAAqC;AACrC,qDAAmC;AACnC,uDAAqC;AACrC,sDAAoC;AACpC,iDAA+B;AAC/B,8DAA4C;AAC5C,+DAA6C;AAC7C,2DAAyC;AACzC,gDAA8B;AAC9B,+DAA6C;AAC7C,gDAA8B;AAC9B,4DAA0C;AAC1C,+DAA6C;AAC7C,kEAAgD;AAChD,gDAA8B;AAC9B,yDAAuC;AACvC,4DAA0C;AAC1C,4CAA0B;AAC1B,oDAAkC;AAClC,8DAA4C;AAC5C,yEAAuD;AACvD,gEAA8C;AAC9C,sEAAoD;AACpD,sEAAoD;AACpD,mEAAiD;AACjD,qEAAmD;AACnD,sEAAoD;AACpD,0CAAwB;AACxB,2CAAyB;AACzB,6CAA2B;AAC3B,wDAAsC;AACtC,oDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,uDAAqC;AACrC,qDAAmC;AACnC,uDAAqC;AACrC,8CAA4B;AAC5B,gDAA8B;AAC9B,iDAA+B;AAC/B,uDAAqC;AACrC,iDAA+B;AAC/B,sDAAoC;AACpC,iDAA+B;AAC/B,qDAAmC;AACnC,qDAAmC;AACnC,8DAA4C;AAC5C,+DAA6C;AAC7C,+DAA6C;AAC7C,qEAAmD;AACnD,6DAA2C;AAC3C,2CAAyB;AACzB,gDAA8B;AAC9B,mDAAiC;AACjC,4DAA0C;AAC1C,uDAAqC;AACrC,kDAAgC;AAChC,wDAAsC;AACtC,wDAAsC;AACtC,oDAAkC;AAClC,4CAA0B;AAC1B,2DAAyC;AACzC,kDAAgC;AAChC,+CAA6B;AAC7B,yDAAuC;AACvC,qDAAmC;AACnC,oDAAkC;AAClC,0DAAwC;AACxC,iDAA+B;AAC/B,yDAAuC;AACvC,oEAAkD;AAClD,+DAA6C;AAC7C,uDAAqC;AACrC,yDAAuC;AACvC,gEAA8C;AAC9C,gDAA8B;AAC9B,gEAA8C;AAC9C,mEAAiD;AACjD,8DAA4C;AAC5C,qDAAmC;AACnC,kDAAgC;AAChC,gEAA8C;AAC9C,iEAA+C;AAC/C,kDAAgC;AAChC,sEAAoD;AACpD,0DAAwC;AACxC,2DAAyC;AACzC,uDAAqC;AACrC,iDAA+B;AAC/B,iDAA+B;AAC/B,2DAAyC;AACzC,qDAAmC;AACnC,uDAAqC;AACrC,kDAAgC;AAChC,0DAAwC;AACxC,2DAAyC;AACzC,iDAA+B;AAC/B,6DAA2C;AAC3C,iDAA+B;AAC/B,8DAA4C;AAC5C,+DAA6C;AAC7C,gDAA8B;AAC9B,gDAA8B;AAC9B,2CAAyB;AACzB,8CAA4B;AAC5B,6CAA2B;AAC3B,qDAAmC;AACnC,kDAAgC;AAChC,uDAAqC;AACrC,wDAAsC;AACtC,yDAAuC;AACvC,0DAAwC;AACxC,uDAAqC;AACrC,qDAAmC;AACnC,uDAAqC;AACrC,sDAAoC;AACpC,iDAA+B;AAC/B,8DAA4C;AAC5C,+DAA6C;AAC7C,2DAAyC;AACzC,gDAA8B;AAC9B,+DAA6C;AAC7C,gDAA8B;AAC9B,4DAA0C;AAC1C,+DAA6C;AAC7C,kEAAgD;AAChD,gDAA8B;AAC9B,yDAAuC;AACvC,4DAA0C;AAC1C,4CAA0B;AAC1B,oDAAkC;AAClC,kDAAgC;AAChC,mEAAiD;AACjD,sEAAoD;AACpD,mEAAiD;AACjD,kEAAgD;AAChD,0CAAwB;AACxB,2CAAyB;AACzB,6CAA2B;AAC3B,wDAAsC;AACtC,oDAAkC"}
@@ -7,7 +7,7 @@ import { ProcessingMode } from '../enums';
7
7
  export interface InjectConversationEventRequest {
8
8
  /** @see AppEvent */
9
9
  app_event: AppEvent;
10
- /** Optional. The ID of the event\'s conversation. Will not be present for apps in Dispatch Mode. */
10
+ /** Optional. The ID of the event's conversation. Will not be present for apps in Dispatch Mode. */
11
11
  conversation_id?: string;
12
12
  /** Optional. The ID of the contact. Will not be present for apps in Dispatch Mode. */
13
13
  contact_id?: string;
@@ -8,17 +8,15 @@ import { ConversationDirection, ProcessingMode } from '../enums';
8
8
  export type InjectMessageRequest = InjectAppMessageRequest | InjectContactMessageRequest;
9
9
  interface InjectMessageRequestBase {
10
10
  /** The processed time of the message in UTC timezone. Must be less than current_time and greater than (current_time - 30 days) */
11
- accept_time?: Date;
11
+ accept_time: Date;
12
12
  /** @see ChannelIdentity */
13
- channel_identity?: ChannelIdentity;
13
+ channel_identity: ChannelIdentity;
14
14
  /** The ID of the contact registered in the conversation provided. */
15
- contact_id?: string;
15
+ contact_id: string;
16
16
  /** @see ConversationDirection */
17
- direction?: ConversationDirection;
17
+ direction: ConversationDirection;
18
18
  /** The ID of the conversation. */
19
19
  conversation_id?: string;
20
- /** Flag for whether this message was injected. */
21
- injected?: boolean;
22
20
  /** For Contact Messages the sender ID is the contact sent the message to. For App Messages the sender that was used to send the message, if applicable. */
23
21
  sender_id?: string;
24
22
  /** Whether or not Conversation API should store contacts and conversations for the app. For more information, see [Processing Modes](../../../../../conversation/processing-modes/). */
@@ -1,6 +1,7 @@
1
1
  import { ListSection } from '../list-section';
2
+ import { MediaProperties } from '../media-message';
2
3
  /**
3
- * A message containing a list of options to choose from
4
+ * A message containing a list of options to choose from. All items must be of the same type.
4
5
  */
5
6
  export interface ListMessage {
6
7
  /** A message containing a list of options to choose from */
@@ -11,6 +12,8 @@ export interface ListMessageItem {
11
12
  title: string;
12
13
  /** This is an optional field, containing a description for the message. */
13
14
  description?: string;
15
+ /** @see MediaProperties */
16
+ media?: MediaProperties;
14
17
  /** List of ListSection objects containing choices to be presented in the list message. */
15
18
  sections: ListSection[];
16
19
  /** Additional properties for the message. Required if sending a product list message. */
@@ -21,4 +24,6 @@ export interface ListMessageItemProperties {
21
24
  catalog_id?: string;
22
25
  /** Optional. Sets the text for the menu of a choice list message. */
23
26
  menu?: string;
27
+ /** Optional. Sets the text for the header of a WhatsApp choice list message. Ignored for other channels. */
28
+ whatsapp_header?: string;
24
29
  }
@@ -7,5 +7,5 @@ export interface ListSection {
7
7
  /** Optional parameter. Title for list section. */
8
8
  title?: string;
9
9
  /** List of ListItems */
10
- items?: ChoiceItemWrapper[] | ProductItemWrapper[];
10
+ items: ChoiceItemWrapper[] | ProductItemWrapper[];
11
11
  }
@@ -1 +1 @@
1
- export type { MediaMessage, MediaMessageItem } from './media-message';
1
+ export type { MediaMessage, MediaProperties } from './media-message';
@@ -3,9 +3,9 @@
3
3
  */
4
4
  export interface MediaMessage {
5
5
  /** A message containing a media component, such as an image, document, or video. */
6
- media_message: MediaMessageItem;
6
+ media_message: MediaProperties;
7
7
  }
8
- export interface MediaMessageItem {
8
+ export interface MediaProperties {
9
9
  /** An optional parameter. Will be used where it is natively supported. */
10
10
  thumbnail_url?: string;
11
11
  /** Url to the media file. */
@@ -19,7 +19,7 @@ export interface CapabilityNotification {
19
19
  channel?: ConversationChannel;
20
20
  /** The channel identity. For example, a phone number for SMS, WhatsApp, and Viber Business. */
21
21
  identity?: string;
22
- /** Status indicating the recipient\'s capability on the channel. */
22
+ /** Status indicating the recipient's capability on the channel. */
23
23
  capability_status?: 'CAPABILITY_UNKNOWN' | 'CAPABILITY_FULL' | 'CAPABILITY_PARTIAL' | 'NO_CAPABILITY';
24
24
  /** When capability_status is set to CAPABILITY_PARTIAL, this field includes a list of the supported channel-specific capabilities reported by the channel. */
25
25
  channel_capabilities?: string[];
@@ -7,15 +7,42 @@ export interface EventInbound extends ConversationCallbackEvent {
7
7
  /** Name of the trigger responsible for this event. */
8
8
  trigger: 'EVENT_INBOUND';
9
9
  /** @see EventInboundEvent */
10
- event?: EventInboundEvent;
10
+ event?: EventInboundContactEvent | EventInboundContactMessageEvent;
11
11
  }
12
+ export interface EventInboundEventBase {
13
+ /** The event ID. */
14
+ id?: string;
15
+ /** The direction of the event. It's always TO_APP for contact events. */
16
+ direction?: 'TO_APP';
17
+ /** @see ChannelIdentity */
18
+ channel_identity?: ChannelIdentity;
19
+ /** The ID of the contact. Will be empty if processing_mode is DISPATCH. */
20
+ contact_id?: string;
21
+ /** The ID of the conversation this event is part of. Will be empty if processing_mode is DISPATCH. */
22
+ conversation_id?: string;
23
+ /** Timestamp marking when the channel callback was received by the Conversation API. */
24
+ accept_time?: Date;
25
+ /** @see ProcessingMode */
26
+ processing_mode?: ProcessingMode;
27
+ }
28
+ export interface EventInboundContactEvent extends EventInboundEventBase {
29
+ /** @see ContactEvent */
30
+ contact_event: ContactEvent;
31
+ contact_message_event?: never;
32
+ }
33
+ export interface EventInboundContactMessageEvent extends EventInboundEventBase {
34
+ /** @see ContactMessageEvent */
35
+ contact_message_event?: ContactMessageEvent;
36
+ contact_event?: never;
37
+ }
38
+ /** @deprecated */
12
39
  export interface EventInboundEvent {
13
40
  /** The event ID. */
14
41
  id?: string;
15
- /** The direction of the event. It\'s always TO_APP for contact events. */
42
+ /** The direction of the event. It's always TO_APP for contact events. */
16
43
  direction?: 'TO_APP';
17
44
  /** @see ContactEvent */
18
- contact_event?: ContactEvent;
45
+ contact_event: ContactEvent;
19
46
  /** @see ContactMessageEvent */
20
47
  contact_message_event?: ContactMessageEvent;
21
48
  /** @see ChannelIdentity */
@@ -1 +1 @@
1
- export type { EventInbound, EventInboundEvent } from './event-inbound';
1
+ export type { EventInbound, EventInboundEvent, EventInboundEventBase, EventInboundContactEvent, EventInboundContactMessageEvent, } from './event-inbound';
@@ -43,14 +43,17 @@ export interface MachineLearningSentimentResult {
43
43
  message?: string;
44
44
  /** An array of JSON objects made up of sentiment and score pairs, where the score represents the likelihood that the message communicates the corresponding sentiment. */
45
45
  results?: SentimentResult[];
46
- /** The most probable sentiment of the analyzed text. */
46
+ /** @see SentimentEnum */
47
47
  sentiment?: SentimentEnum;
48
48
  /** The likelihood that the assigned sentiment represents the emotional context of the analyzed text. 1 is the maximum value, representing the highest likelihood that the message text matches the sentiment, and 0 is the minimum value, representing the lowest likelihood that the message text matches the sentiment. */
49
49
  score?: number;
50
50
  }
51
+ /**
52
+ * The most probable sentiment of the analyzed text.
53
+ */
51
54
  export type SentimentEnum = 'positive' | 'negative' | 'neutral';
52
55
  export interface SentimentResult {
53
- /** The most probable sentiment of the analyzed text. */
56
+ /** @see SentimentEnum */
54
57
  sentiment?: SentimentEnum;
55
58
  /** The likelihood that the assigned sentiment represents the emotional context of the analyzed text. 1 is the maximum value, representing the highest likelihood that the message text matches the sentiment, and 0 is the minimum value, representing the lowest likelihood that the message text matches the sentiment. */
56
59
  score?: number;
@@ -91,7 +94,7 @@ export interface DocumentImageClassification {
91
94
  confidence?: number;
92
95
  }
93
96
  /**
94
- * An object containing a result array that reports the machine learning engine\'s character extraction results.
97
+ * An object containing a result array that reports the machine learning engine's character extraction results.
95
98
  */
96
99
  export interface OpticalCharacterRecognition {
97
100
  /** The result of the OCR process. */
@@ -4,6 +4,7 @@ export * from './instagram-credentials';
4
4
  export * from './kakaotalk-credentials';
5
5
  export * from './kakaotalkchat-credentials';
6
6
  export * from './line-credentials';
7
+ export * from './line-enterprise-credentials';
7
8
  export * from './mms-credentials';
8
9
  export * from './sms-credentials';
9
10
  export * from './static-bearer-credential';
@@ -20,6 +20,7 @@ __exportStar(require("./instagram-credentials"), exports);
20
20
  __exportStar(require("./kakaotalk-credentials"), exports);
21
21
  __exportStar(require("./kakaotalkchat-credentials"), exports);
22
22
  __exportStar(require("./line-credentials"), exports);
23
+ __exportStar(require("./line-enterprise-credentials"), exports);
23
24
  __exportStar(require("./mms-credentials"), exports);
24
25
  __exportStar(require("./sms-credentials"), exports);
25
26
  __exportStar(require("./static-bearer-credential"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/mod-credentials/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,0DAAwC;AACxC,0DAAwC;AACxC,0DAAwC;AACxC,8DAA4C;AAC5C,qDAAmC;AACnC,oDAAkC;AAClC,oDAAkC;AAClC,6DAA2C;AAC3C,4DAA0C;AAC1C,yDAAuC;AACvC,uDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/mod-credentials/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,0DAAwC;AACxC,0DAAwC;AACxC,0DAAwC;AACxC,8DAA4C;AAC5C,qDAAmC;AACnC,gEAA8C;AAC9C,oDAAkC;AAClC,oDAAkC;AAClC,6DAA2C;AAC3C,4DAA0C;AAC1C,yDAAuC;AACvC,uDAAqC"}
@@ -1,9 +1,11 @@
1
1
  /**
2
- * If you are including the LINE channel in the `channel_identifier` property, you must include this object.
2
+ * If the `channel` property is set to `LINE` for this entry of the `channel_credentials` array, you must include either the `line_credentials` object or the `line_enterprise_credentials` object in the entry as well.
3
3
  */
4
4
  export interface LineCredentials {
5
5
  /** The token for the LINE channel to which you are connecting. */
6
6
  token: string;
7
7
  /** The secret for the LINE channel to which you are connecting. */
8
8
  secret: string;
9
+ /** When an app contains multiple LINE or LINE Enterprise credentials, one of the credentials needs to be defined as the default. Setting this property to `true` marks the corresponding credentials as the default credentials. */
10
+ is_default?: boolean;
9
11
  }
@@ -0,0 +1 @@
1
+ export type { LineEnterpriseCredentials, LineEnterpriseCredentialsJapan, LineEnterpriseCredentialsThailand, } from './line-enterprise-credentials';
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/models/v1/mod-credentials/line-enterprise-credentials/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * If the channel property is set to LINE for this entry of the channel_credentials array, you must include either the line_credentials object or the line_enterprise_credentials object in the entry as well.
3
+ */
4
+ export type LineEnterpriseCredentials = LineEnterpriseCredentialsJapan | LineEnterpriseCredentialsThailand;
5
+ export interface LineEnterpriseCredentialsJapan {
6
+ /** When an app contains multiple LINE or LINE Enterprise credentials, one of the credentials needs to be defined as the default. Setting this property to `true` marks the corresponding credentials as the default credentials. */
7
+ is_default?: boolean;
8
+ /** LINE Credentials Japan */
9
+ line_japan: LineEnterpriseCredentialsPair;
10
+ line_thailand?: never;
11
+ }
12
+ export interface LineEnterpriseCredentialsThailand {
13
+ /** When an app contains multiple LINE or LINE Enterprise credentials, one of the credentials needs to be defined as the default. Setting this property to `true` marks the corresponding credentials as the default credentials. */
14
+ is_default?: boolean;
15
+ /** LINE Credentials Thailand */
16
+ line_thailand: LineEnterpriseCredentialsPair;
17
+ line_japan?: never;
18
+ }
19
+ export interface LineEnterpriseCredentialsPair {
20
+ /** The token for the LINE channel to which you are connecting. */
21
+ token: string;
22
+ /** The secret for the LINE channel to which you are connecting. */
23
+ secret: string;
24
+ }
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=media-carousel-message.js.map
3
+ //# sourceMappingURL=line-enterprise-credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"line-enterprise-credentials.js","sourceRoot":"","sources":["../../../../../src/models/v1/mod-credentials/line-enterprise-credentials/line-enterprise-credentials.ts"],"names":[],"mappings":""}
@@ -1,6 +1,6 @@
1
1
  export interface QueueStats {
2
- /** The current size of the App\'s MT queue. */
2
+ /** The current size of the App's MT queue. */
3
3
  outbound_size?: number;
4
- /** The limit of the App\'s MT queue. The default limit is 500000 messages. */
4
+ /** The limit of the App's MT queue. The default limit is 500000 messages. */
5
5
  outbound_limit?: number;
6
6
  }
@@ -25,11 +25,11 @@ export interface ListContactsRequestData {
25
25
  'page_size'?: number;
26
26
  /** Optional. Next page token previously returned if any. */
27
27
  'page_token'?: string;
28
- /** Optional. Contact identifier in an external system. If used, `channel` and `identity` query parameters can\'t be used. */
28
+ /** Optional. Contact identifier in an external system. If used, `channel` and `identity` query parameters can't be used. */
29
29
  'external_id'?: string;
30
- /** Optional. Specifies a channel, and must be set to one of the enum values. If set, the `identity` parameter must be set and `external_id` can\'t be used. Used in conjunction with `identity` to uniquely identify the specified channel identity. */
30
+ /** Optional. Specifies a channel, and must be set to one of the enum values. If set, the `identity` parameter must be set and `external_id` can't be used. Used in conjunction with `identity` to uniquely identify the specified channel identity. */
31
31
  'channel'?: ConversationChannel;
32
- /** Optional. If set, the `channel` parameter must be set and `external_id` can\'t be used. Used in conjunction with `channel` to uniquely identify the specified channel identity. This will differ from channel to channel. For example, a phone number for SMS, WhatsApp, and Viber Business. */
32
+ /** Optional. If set, the `channel` parameter must be set and `external_id` can't be used. Used in conjunction with `channel` to uniquely identify the specified channel identity. This will differ from channel to channel. For example, a phone number for SMS, WhatsApp, and Viber Business. */
33
33
  'identity'?: string;
34
34
  }
35
35
  export interface MergeContactRequestData {
@@ -53,7 +53,7 @@ export interface ListRecentConversationsRequestData {
53
53
  * for the other parameters from the request that originated the token, otherwise the paged results may be inconsistent. */
54
54
  'page_token'?: string;
55
55
  /** Whether to sort conversations by newest message first or oldest. Default is DESC (newest first) */
56
- 'order'?: 'ASC' | 'DESC';
56
+ 'order'?: 'ASC' | 'DESC' | string;
57
57
  }
58
58
  export interface StopActiveConversationRequestData {
59
59
  /** The unique ID of the conversation. This is generated by the system. */
@@ -87,5 +87,5 @@ export interface UpdateMessageRequestData {
87
87
  /** Update message metadata request. */
88
88
  'updateMessageRequestBody': UpdateMessageRequest;
89
89
  /** Specifies the message source for which the request will be processed. Used for operations on messages in Dispatch Mode. For more information, see [Processing Modes](../../../../../conversation/processing-modes/). */
90
- 'messages_source'?: 'CONVERSATION_SOURCE' | 'DISPATCH_SOURCE';
90
+ 'messages_source'?: MessageSource;
91
91
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * The retention policy configured for the app. For more information about retention policies, see [Retention Policy](/docs/conversation/keyconcepts/#retention-policy).
2
+ * The retention policy configured for the app. For more information about retention policies, see [Retention Policy](https://developers.sinch.com/docs/conversation/keyconcepts/#retention-policy).
3
3
  */
4
4
  export interface RetentionPolicy {
5
5
  retention_type?: 'MESSAGE_EXPIRE_POLICY' | 'CONVERSATION_EXPIRE_POLICY' | 'PERSIST_RETENTION_POLICY';
@@ -1 +1 @@
1
- export type { RuntimeError } from './runtime-error';
1
+ export type { RuntimeError, RuntimeErrorContent } from './runtime-error';
@@ -1,9 +1,11 @@
1
1
  import { ErrorDetail } from '../error-detail';
2
2
  export interface RuntimeError {
3
+ error?: RuntimeErrorContent;
4
+ }
5
+ export interface RuntimeErrorContent {
3
6
  code?: number;
4
7
  /** List of error details */
5
8
  details?: ErrorDetail[];
6
- error?: string;
7
9
  message?: string;
8
10
  status?: string;
9
11
  }
@@ -8,7 +8,7 @@ import { AppCardMessage, AppCarouselMessage, AppChoiceMessage, AppContactInfoMes
8
8
  export interface SendMessageRequestBase<T extends Recipient> {
9
9
  /** The ID of the app sending the message. */
10
10
  app_id: string;
11
- /** Overwrites the default callback url for delivery receipts for this message The REST URL should be of the form: `http://host[:port]/path` */
11
+ /** Overwrites the default callback url for delivery receipts for this message. Note that you may [define a `secret_for_overridden_callback_urls` at the app level](https://developers.sinch.com/docs/conversation/api-reference/conversation/tag/App/#tag/App/operation/App_UpdateApp!path=callback_settings/secret_for_overridden_callback_urls&t=request); this secret will be used to sign the contents of delivery receipts when the default callback URL is overridden by this property. The REST URL should be of the form: `http://host[:port]/path` */
12
12
  callback_url?: string;
13
13
  /** Explicitly define the channels and order in which they are tried when sending the message. All channels provided in this field must be configured in the corresponding Conversation API app, or the request will be rejected. Which channels the API will try and their priority is defined by: 1. `channel_priority_order` if available. 2. `recipient.identified_by.channel_identities` if available. 3. When recipient is a `contact_id`: - if a conversation with the contact exists: the active channel of the conversation is tried first. - the existing channels for the contact are ordered by contact channel preferences if given. - lastly the existing channels for the contact are ordered by the app priority. */
14
14
  channel_priority_order?: ConversationChannel[];
@@ -18,7 +18,7 @@ export interface SendMessageRequestBase<T extends Recipient> {
18
18
  };
19
19
  /** Metadata that should be associated with the message. Returned in the `metadata` field of a [Message Delivery Receipt](https://developers.sinch.com/docs/conversation/callbacks/#message-delivery-receipt). Up to 1024 characters long. */
20
20
  message_metadata?: string;
21
- /** Metadata that should be associated with the conversation. This metadata will be propagated on MO callbacks associated with this conversation. Up to 1024 characters long. Note that the MO callback will always use the last metadata available in the conversation. Important notes: - If you send a message with the `conversation_metadata` field populated, and then send another message without populating the `conversation_metadata` field, the original metadata will continue be propagated on the related MO callbacks. - If you send a message with the `conversation_metadata` field populated, and then send another message with a different value for `conversation_metadata` in the same conversation, the latest metadata value overwrites the existing one. So, future MO callbacks will include the new metadata. - The `conversation_metadata` only accepts json objects. Currently only returned in the `message_metadata` field of an [Inbound Message](/docs/conversation/callbacks/#inbound-message) callback. */
21
+ /** Metadata that will be associated with the conversation in `CONVERSATION` mode and with the specified recipient identities in `DISPATCH` mode. This metadata will be propagated on MO callbacks associated with the respective conversation or user identity. Up to 2048 characters long. Note that the MO callback will always use the last metadata available. Important notes: - If you send a message with the `conversation_metadata` field populated, and then send another message without populating the `conversation_metadata` field, the original metadata will continue be propagated on the related MO callbacks. - If you send a message with the `conversation_metadata` field populated, and then send another message with a different value for `conversation_metadata` in the same conversation, the latest metadata value overwrites the existing one. So, future MO callbacks will include the new metadata. - The `conversation_metadata` only accepts json objects. Currently only returned in the `message_metadata` field of an [Inbound Message](https://developers.sinch.com/docs/conversation/callbacks/#inbound-message) callback. */
22
22
  conversation_metadata?: object;
23
23
  /** @see MessageQueue */
24
24
  queue?: MessageQueue;
@@ -30,12 +30,14 @@ export interface SendMessageRequestBase<T extends Recipient> {
30
30
  * The SDK will take care of the formatting: example of valid input for 10 seconds: 10 (number), "10" (string), "10s" (string)
31
31
  */
32
32
  ttl?: string | number;
33
- /** Overrides the app's [Processing Mode](../../../../../conversation/processing-modes/). Default value is `DEFAULT`. */
33
+ /** Overrides the app's [Processing Mode](https://developers.sinch.com/docs/conversation/processing-modes/). Default value is `DEFAULT`. */
34
34
  processing_strategy?: ProcessingStrategy;
35
- /** An arbitrary identifier that will be propagated to callbacks related to this message, including MO replies. Only applicable to messages sent with the `CONVERSATION` processing mode. Up to 128 characters long. */
35
+ /** An arbitrary identifier that will be propagated to callbacks related to this message, including MO messages from the recipient. The `correlation_id` is associated with the conversation in `CONVERSATION` mode and with the specified recipient identities in `DISPATCH` mode. The MO callbacks will always include the last `correlation_id` available, (which is similar to how the `conversation_metadata` property functions). Up to 128 characters long. */
36
36
  correlation_id?: string;
37
37
  /** Update strategy for the `conversation_metadata` field. */
38
38
  conversation_metadata_update_strategy?: ConversationMetadataUpdateStrategy;
39
+ /** This field classifies the message content for use with Sinch's [consent management functionality](https://developers.sinch.com/docs/conversation/consent-management/). Note that this field is currently only used with Sinch's consent management functionality, and is not referenced elsewhere by the Conversation API. */
40
+ message_content_type?: 'CONTENT_UNKNOWN' | 'CONTENT_MARKETING' | 'CONTENT_NOTIFICATION';
39
41
  }
40
42
  export type ChannelPropertyKey = 'MESSENGER_MESSAGING_TYPE' | 'MESSENGER_MESSAGE_TAG' | 'MESSENGER_NOTIFICATION_TYPE' | 'VIBER_SENDER_NAME' | 'VIBER_SENDER_AVATAR' | 'SMS_FLASH_MESSAGE' | 'MMS_SENDER' | 'TELEGRAM_DISABLE_LINK_PREVIEW' | 'SMS_SENDER' | 'INSTAGRAM_MESSAGE_TAG' | 'MMS_STRICT_VALIDATION' | 'KAKAOTALK_AUTHENTICATION' | 'LINE_VIDEO_TRACKING_ID' | 'SMS_MAX_NUMBER_OF_MESSAGE_PARTS' | string;
41
43
  export interface SendMessageRequest<T extends Recipient> extends SendMessageRequestBase<T> {
@@ -1,13 +1,16 @@
1
- import { TemplateReference } from '../template-reference';
1
+ import { ChannelSpecificTemplateReference, TemplateReference } from '../template-reference';
2
2
  import { ConversationChannel } from '../conversation-channel';
3
+ /**
4
+ * Message referring to predefined template
5
+ */
3
6
  export interface TemplateMessage {
4
- /** */
7
+ /** Template Message */
5
8
  template_message: TemplateMessageItem;
6
9
  }
7
10
  export interface TemplateMessageItem {
8
11
  /** Optional. Channel specific template reference with parameters per channel. The channel template if exists overrides the omnichannel template. At least one of `channel_template` or `omni_template` needs to be present. The key in the map must point to a valid conversation channel as defined by the enum ConversationChannel. */
9
12
  channel_template?: {
10
- [key in ConversationChannel]?: TemplateReference;
13
+ [key in ConversationChannel]?: ChannelSpecificTemplateReference;
11
14
  };
12
15
  /** @see TemplateReference */
13
16
  omni_template?: TemplateReference;
@@ -1 +1 @@
1
- export type { TemplateReference } from './template-reference';
1
+ export type { TemplateReference, ChannelSpecificTemplateReference } from './template-reference';
@@ -2,14 +2,26 @@
2
2
  * The referenced template can be an omnichannel template stored in Conversation API Template Store as AppMessage or it can reference external channel-specific template such as WhatsApp Business Template.
3
3
  */
4
4
  export interface TemplateReference {
5
- /** The BCP-47 language code, such as `en-US` or `sr-Latn`. For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. English is the default language_code. */
5
+ /** The BCP-47 language code, such as `en_US` or `sr_Latn`. For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. English is the default `language_code`. Note that, while many API calls involving templates accept either the dashed format (`en-US`) or the underscored format (`en_US`), some channel specific templates (for example, WhatsApp channel-specific templates) only accept the underscored format. Note that this field is required for WhatsApp channel-specific templates. */
6
6
  language_code?: string;
7
7
  /** Required if the template has parameters. Concrete values must be present for all defined parameters in the template. Parameters can be different for different versions and/or languages of the template. */
8
8
  parameters?: {
9
9
  [key: string]: string;
10
10
  };
11
- /** The ID of the template. */
11
+ /** The ID of the template. Note that, in the case of WhatsApp channel-specific templates, this field must be populated by the name of the template. */
12
12
  template_id: string;
13
- /** Used to specify what version of a template to use. This will be used in conjunction with `language_code`. */
13
+ /** Used to specify what version of a template to use. Required when using `omni_channel_override` and `omni_template` fields. This will be used in conjunction with `language_code`. Note that, when referencing omni-channel templates using the [Sinch Customer Dashboard](https://dashboard.sinch.com/), the latest version of a given omni-template can be identified by populating this field with `latest`. */
14
14
  version: string;
15
15
  }
16
+ export interface ChannelSpecificTemplateReference {
17
+ /** The BCP-47 language code, such as `en_US` or `sr_Latn`. For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. English is the default `language_code`. Note that, while many API calls involving templates accept either the dashed format (`en-US`) or the underscored format (`en_US`), some channel specific templates (for example, WhatsApp channel-specific templates) only accept the underscored format. Note that this field is required for WhatsApp channel-specific templates. */
18
+ language_code?: string;
19
+ /** Required if the template has parameters. Concrete values must be present for all defined parameters in the template. Parameters can be different for different versions and/or languages of the template. */
20
+ parameters?: {
21
+ [key: string]: string;
22
+ };
23
+ /** The ID of the template. Note that, in the case of WhatsApp channel-specific templates, this field must be populated by the name of the template. */
24
+ template_id: string;
25
+ /** Used to specify what version of a template to use. This will be used in conjunction with `language_code`. */
26
+ version?: string;
27
+ }
@@ -6,7 +6,7 @@ import { WebhookTargetType } from '../enums';
6
6
  */
7
7
  export interface Webhook {
8
8
  /** The app that this webhook belongs to. */
9
- app_id: string;
9
+ app_id?: string;
10
10
  /** @see ClientCredentials */
11
11
  client_credentials?: ClientCredentials;
12
12
  /** The ID of the webhook. */
@@ -17,8 +17,8 @@ export interface Webhook {
17
17
  target: string;
18
18
  /** @see WebhookTargetType */
19
19
  target_type?: WebhookTargetType;
20
- /** An array of triggers that should trigger the webhook and result in an event being sent to the target url. Refer to the list of [Webhook Triggers](/docs/conversation/callbacks#webhook-triggers) for a complete list. */
21
- triggers: WebhookTrigger[];
20
+ /** An array of triggers that should trigger the webhook and result in an event being sent to the target url. Refer to the list of [Webhook Triggers](https://developers.sinch.com/docs/conversation/callbacks/#webhook-triggers) for a complete list. */
21
+ triggers?: WebhookTrigger[];
22
22
  }
23
23
  export interface UpdateWebhookRequestBody extends Pick<Webhook, 'target'>, Partial<Pick<Webhook, 'app_id' | 'triggers' | 'secret' | 'target_type' | 'client_credentials'>> {
24
24
  }
@@ -1,4 +1,5 @@
1
1
  /**
2
+ * Each webhook can subscribe to one or more of the following triggers:
2
3
  * - `UNSPECIFIED_TRIGGER`: Using this value will cause errors.
3
4
  * - `MESSAGE_DELIVERY`: Subscribe to delivery receipts for a message sent.
4
5
  * - `EVENT_DELIVERY`: Subscribe to delivery receipts for a event sent.
@@ -0,0 +1 @@
1
+ export type { WhatsAppFlow, FlowActionPayload, FlowChannelSpecificMessage, FlowChannelSpecificMessageFlowActionPayload, } from './whatsapp-flow';
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/whatsapp-flow/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,28 @@
1
+ import { WhatsAppInteractiveMessageBase } from '../whatsapp-interactive-message-base';
2
+ /** @deprecated */
3
+ export type FlowChannelSpecificMessage = WhatsAppFlow;
4
+ /**
5
+ * A message type for sending WhatsApp Flows.
6
+ */
7
+ export interface WhatsAppFlow extends WhatsAppInteractiveMessageBase {
8
+ /** ID of the Flow. */
9
+ flow_id: string;
10
+ /** Generated token which is an identifier. */
11
+ flow_token?: string;
12
+ /** The mode in which the flow is. */
13
+ flow_mode?: 'draft' | 'published';
14
+ /** Text which is displayed on the Call To Action button (20 characters maximum, emoji not supported). */
15
+ flow_cta: string;
16
+ /** */
17
+ flow_action?: 'navigate' | 'data_exchange';
18
+ /** @see FlowActionPayload */
19
+ flow_action_payload?: FlowActionPayload;
20
+ }
21
+ /** @deprecated */
22
+ export type FlowChannelSpecificMessageFlowActionPayload = FlowActionPayload;
23
+ export interface FlowActionPayload {
24
+ /** The ID of the screen displayed first. This must be an entry screen. */
25
+ screen?: string;
26
+ /** Data for the first screen. */
27
+ data?: object;
28
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=whatsapp-flow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whatsapp-flow.js","sourceRoot":"","sources":["../../../../src/models/v1/whatsapp-flow/whatsapp-flow.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export * from './whatsapp-interactive-document-header';
2
+ export * from './whatsapp-interactive-image-header';
3
+ export * from './whatsapp-interactive-text-header';
4
+ export * from './whatsapp-interactive-video-header';
5
+ export * from './whatsapp-interactive-header-media';
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./whatsapp-interactive-document-header"), exports);
18
+ __exportStar(require("./whatsapp-interactive-image-header"), exports);
19
+ __exportStar(require("./whatsapp-interactive-text-header"), exports);
20
+ __exportStar(require("./whatsapp-interactive-video-header"), exports);
21
+ __exportStar(require("./whatsapp-interactive-header-media"), exports);
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/models/v1/whatsapp-interactive-message-base/common/header/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yEAAuD;AACvD,sEAAoD;AACpD,qEAAmD;AACnD,sEAAoD;AACpD,sEAAoD"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/models/v1/whatsapp-interactive-message-base/common/header/whatsapp-interactive-document-header/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whatsapp-interactive-document-header.js","sourceRoot":"","sources":["../../../../../../../src/models/v1/whatsapp-interactive-message-base/common/header/whatsapp-interactive-document-header/whatsapp-interactive-document-header.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/models/v1/whatsapp-interactive-message-base/common/header/whatsapp-interactive-header-media/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whatsapp-interactive-header-media.js","sourceRoot":"","sources":["../../../../../../../src/models/v1/whatsapp-interactive-message-base/common/header/whatsapp-interactive-header-media/whatsapp-interactive-header-media.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/models/v1/whatsapp-interactive-message-base/common/header/whatsapp-interactive-image-header/index.ts"],"names":[],"mappings":""}