@sinch/conversation 1.2.1 → 1.4.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 (376) hide show
  1. package/dist/models/v1/app-message/app-message.d.ts +10 -7
  2. package/dist/models/v1/audit-record/audit-record.d.ts +18 -0
  3. package/dist/models/v1/audit-record/audit-record.js +3 -0
  4. package/dist/models/v1/audit-record/audit-record.js.map +1 -0
  5. package/dist/models/v1/audit-record/index.d.ts +1 -0
  6. package/dist/models/v1/audit-record/index.js.map +1 -0
  7. package/dist/models/v1/audit-records-list/audit-records-list.d.ts +8 -0
  8. package/dist/models/v1/audit-records-list/audit-records-list.js +3 -0
  9. package/dist/models/v1/audit-records-list/audit-records-list.js.map +1 -0
  10. package/dist/models/v1/audit-records-list/index.d.ts +1 -0
  11. package/dist/models/v1/audit-records-list/index.js.map +1 -0
  12. package/dist/models/v1/calendar-message/calendar-message.d.ts +14 -0
  13. package/dist/models/v1/calendar-message/calendar-message.js +3 -0
  14. package/dist/models/v1/calendar-message/calendar-message.js.map +1 -0
  15. package/dist/models/v1/calendar-message/index.d.ts +1 -0
  16. package/dist/models/v1/calendar-message/index.js.map +1 -0
  17. package/dist/models/v1/callback-settings/callback-settings.d.ts +1 -1
  18. package/dist/models/v1/card-message/card-message.d.ts +13 -4
  19. package/dist/models/v1/card-message/index.d.ts +1 -1
  20. package/dist/models/v1/carousel-message/carousel-message.d.ts +5 -2
  21. package/dist/models/v1/channel-identity/channel-identity.d.ts +1 -1
  22. package/dist/models/v1/channel-specific-contact-message/channel-specific-contact-message.d.ts +1 -1
  23. package/dist/models/v1/channel-specific-message/channel-specific-message.d.ts +40 -5
  24. package/dist/models/v1/channel-specific-message/index.d.ts +1 -1
  25. package/dist/models/v1/choice/choice.d.ts +47 -1
  26. package/dist/models/v1/choice-item/choice-item.d.ts +3 -3
  27. package/dist/models/v1/choice-message/choice-message.d.ts +8 -2
  28. package/dist/models/v1/client-credentials/client-credentials.d.ts +6 -0
  29. package/dist/models/v1/consent-identity/consent-identity.d.ts +7 -0
  30. package/dist/models/v1/consent-identity/consent-identity.js +3 -0
  31. package/dist/models/v1/consent-identity/consent-identity.js.map +1 -0
  32. package/dist/models/v1/consent-identity/index.d.ts +1 -0
  33. package/dist/models/v1/consent-identity/index.js.map +1 -0
  34. package/dist/models/v1/contact-create-request/contact-create-request.d.ts +1 -1
  35. package/dist/models/v1/contact-message/contact-message.d.ts +4 -4
  36. package/dist/models/v1/contact-message-event/contact-message-event.d.ts +47 -2
  37. package/dist/models/v1/contact-message-event/index.d.ts +1 -1
  38. package/dist/models/v1/contact-settings/contact-settings.d.ts +7 -0
  39. package/dist/models/v1/contact-settings/contact-settings.js +3 -0
  40. package/dist/models/v1/contact-settings/contact-settings.js.map +1 -0
  41. package/dist/models/v1/contact-settings/index.d.ts +1 -0
  42. package/dist/models/v1/contact-settings/index.js.map +1 -0
  43. package/dist/models/v1/conversation-channel/conversation-channel.d.ts +2 -2
  44. package/dist/models/v1/conversation-channel-credential/conversation-channel-credential.d.ts +18 -5
  45. package/dist/models/v1/conversation-channel-credential/index.d.ts +1 -1
  46. package/dist/models/v1/conversation-event/conversation-event.d.ts +1 -1
  47. package/dist/models/v1/conversation-message/conversation-message.d.ts +2 -2
  48. package/dist/models/v1/create-conversation-request/create-conversation-request.d.ts +7 -1
  49. package/dist/models/v1/delivery-report-based-fallback/delivery-report-based-fallback.d.ts +1 -1
  50. package/dist/models/v1/dispatch-retention-policy/dispatch-retention-policy.d.ts +2 -2
  51. package/dist/models/v1/enums.d.ts +29 -14
  52. package/dist/models/v1/helper.d.ts +5 -5
  53. package/dist/models/v1/helper.js.map +1 -1
  54. package/dist/models/v1/identified-by/identified-by.d.ts +4 -2
  55. package/dist/models/v1/identified-by/index.d.ts +1 -1
  56. package/dist/models/v1/identity-conflict/identity-conflict.d.ts +8 -0
  57. package/dist/models/v1/identity-conflict/identity-conflict.js +3 -0
  58. package/dist/models/v1/identity-conflict/identity-conflict.js.map +1 -0
  59. package/dist/models/v1/identity-conflict/index.d.ts +1 -0
  60. package/dist/models/v1/identity-conflict/index.js.map +1 -0
  61. package/dist/models/v1/index.d.ts +29 -12
  62. package/dist/models/v1/index.js +29 -12
  63. package/dist/models/v1/index.js.map +1 -1
  64. package/dist/models/v1/inject-conversation-event-request/inject-conversation-event-request.d.ts +1 -1
  65. package/dist/models/v1/inject-message-request/inject-message-request.d.ts +5 -7
  66. package/dist/models/v1/kakaotalk-button/index.d.ts +1 -0
  67. package/dist/models/v1/kakaotalk-button/index.js.map +1 -0
  68. package/dist/models/v1/kakaotalk-button/kakaotalk-button.d.ts +27 -0
  69. package/dist/models/v1/kakaotalk-button/kakaotalk-button.js +3 -0
  70. package/dist/models/v1/kakaotalk-button/kakaotalk-button.js.map +1 -0
  71. package/dist/models/v1/kakaotalk-carousel/index.d.ts +1 -0
  72. package/dist/models/v1/kakaotalk-carousel/index.js.map +1 -0
  73. package/dist/models/v1/kakaotalk-carousel/kakaotalk-carousel.d.ts +38 -0
  74. package/dist/models/v1/kakaotalk-carousel/kakaotalk-carousel.js +3 -0
  75. package/dist/models/v1/kakaotalk-carousel/kakaotalk-carousel.js.map +1 -0
  76. package/dist/models/v1/kakaotalk-carousel-commerce/index.d.ts +1 -0
  77. package/dist/models/v1/kakaotalk-carousel-commerce/index.js.map +1 -0
  78. package/dist/models/v1/kakaotalk-carousel-commerce/kakaotalk-carousel-commerce.d.ts +12 -0
  79. package/dist/models/v1/kakaotalk-carousel-commerce/kakaotalk-carousel-commerce.js +3 -0
  80. package/dist/models/v1/kakaotalk-carousel-commerce/kakaotalk-carousel-commerce.js.map +1 -0
  81. package/dist/models/v1/kakaotalk-commerce/index.d.ts +1 -0
  82. package/dist/models/v1/kakaotalk-commerce/index.js +3 -0
  83. package/dist/models/v1/kakaotalk-commerce/index.js.map +1 -0
  84. package/dist/models/v1/kakaotalk-commerce/kakaotalk-commerce.d.ts +7 -0
  85. package/dist/models/v1/kakaotalk-commerce/kakaotalk-commerce.js +3 -0
  86. package/dist/models/v1/kakaotalk-commerce/kakaotalk-commerce.js.map +1 -0
  87. package/dist/models/v1/kakaotalk-coupon/index.d.ts +1 -0
  88. package/dist/models/v1/kakaotalk-coupon/index.js +3 -0
  89. package/dist/models/v1/kakaotalk-coupon/index.js.map +1 -0
  90. package/dist/models/v1/kakaotalk-coupon/kakaotalk-coupon.d.ts +79 -0
  91. package/dist/models/v1/kakaotalk-coupon/kakaotalk-coupon.js +3 -0
  92. package/dist/models/v1/kakaotalk-coupon/kakaotalk-coupon.js.map +1 -0
  93. package/dist/models/v1/kakaotalk-image/index.d.ts +1 -0
  94. package/dist/models/v1/kakaotalk-image/index.js +3 -0
  95. package/dist/models/v1/kakaotalk-image/index.js.map +1 -0
  96. package/dist/models/v1/kakaotalk-image/kakaotalk-image.d.ts +6 -0
  97. package/dist/models/v1/kakaotalk-image/kakaotalk-image.js +3 -0
  98. package/dist/models/v1/kakaotalk-image/kakaotalk-image.js.map +1 -0
  99. package/dist/models/v1/kakaotalk-message/index.d.ts +1 -0
  100. package/dist/models/v1/kakaotalk-message/index.js +3 -0
  101. package/dist/models/v1/kakaotalk-message/index.js.map +1 -0
  102. package/dist/models/v1/kakaotalk-message/kakaotalk-message.d.ts +16 -0
  103. package/dist/models/v1/kakaotalk-message/kakaotalk-message.js +3 -0
  104. package/dist/models/v1/kakaotalk-message/kakaotalk-message.js.map +1 -0
  105. package/dist/models/v1/kakaotalk-pricing/index.d.ts +1 -0
  106. package/dist/models/v1/kakaotalk-pricing/index.js +3 -0
  107. package/dist/models/v1/kakaotalk-pricing/index.js.map +1 -0
  108. package/dist/models/v1/kakaotalk-pricing/kakao-talk-pricing.d.ts +33 -0
  109. package/dist/models/v1/kakaotalk-pricing/kakao-talk-pricing.js +3 -0
  110. package/dist/models/v1/kakaotalk-pricing/kakao-talk-pricing.js.map +1 -0
  111. package/dist/models/v1/line-notification-template/index.d.ts +1 -0
  112. package/dist/models/v1/line-notification-template/index.js +3 -0
  113. package/dist/models/v1/line-notification-template/index.js.map +1 -0
  114. package/dist/models/v1/line-notification-template/line-notification-template.d.ts +10 -0
  115. package/dist/models/v1/line-notification-template/line-notification-template.js +3 -0
  116. package/dist/models/v1/line-notification-template/line-notification-template.js.map +1 -0
  117. package/dist/models/v1/line-notification-template-body/index.d.ts +1 -0
  118. package/dist/models/v1/line-notification-template-body/index.js +3 -0
  119. package/dist/models/v1/line-notification-template-body/index.js.map +1 -0
  120. package/dist/models/v1/line-notification-template-body/line-notification-template-body.d.ts +13 -0
  121. package/dist/models/v1/line-notification-template-body/line-notification-template-body.js +3 -0
  122. package/dist/models/v1/line-notification-template-body/line-notification-template-body.js.map +1 -0
  123. package/dist/models/v1/line-notification-template-button/index.d.ts +1 -0
  124. package/dist/models/v1/line-notification-template-button/index.js +3 -0
  125. package/dist/models/v1/line-notification-template-button/index.js.map +1 -0
  126. package/dist/models/v1/line-notification-template-button/line-notification-template-button.d.ts +9 -0
  127. package/dist/models/v1/line-notification-template-button/line-notification-template-button.js +3 -0
  128. package/dist/models/v1/line-notification-template-button/line-notification-template-button.js.map +1 -0
  129. package/dist/models/v1/line-notification-template-item/index.d.ts +1 -0
  130. package/dist/models/v1/line-notification-template-item/index.js +3 -0
  131. package/dist/models/v1/line-notification-template-item/index.js.map +1 -0
  132. package/dist/models/v1/line-notification-template-item/line-notification-template-item.d.ts +9 -0
  133. package/dist/models/v1/line-notification-template-item/line-notification-template-item.js +3 -0
  134. package/dist/models/v1/line-notification-template-item/line-notification-template-item.js.map +1 -0
  135. package/dist/models/v1/list-last-messages-by-channel-identity-request/index.d.ts +1 -0
  136. package/dist/models/v1/list-last-messages-by-channel-identity-request/index.js +3 -0
  137. package/dist/models/v1/list-last-messages-by-channel-identity-request/index.js.map +1 -0
  138. package/dist/models/v1/list-last-messages-by-channel-identity-request/list-last-messages-by-channel-identity-request.d.ts +29 -0
  139. package/dist/models/v1/list-last-messages-by-channel-identity-request/list-last-messages-by-channel-identity-request.js +3 -0
  140. package/dist/models/v1/list-last-messages-by-channel-identity-request/list-last-messages-by-channel-identity-request.js.map +1 -0
  141. package/dist/models/v1/list-message/list-message.d.ts +6 -1
  142. package/dist/models/v1/list-section/list-section.d.ts +1 -1
  143. package/dist/models/v1/media-message/index.d.ts +1 -1
  144. package/dist/models/v1/media-message/media-message.d.ts +2 -2
  145. package/dist/models/v1/mod-callback-events/capability-event/capability-event.d.ts +1 -1
  146. package/dist/models/v1/mod-callback-events/conversation-callback-event/conversation-callback-event.d.ts +2 -2
  147. package/dist/models/v1/mod-callback-events/event-inbound/event-inbound.d.ts +30 -3
  148. package/dist/models/v1/mod-callback-events/event-inbound/index.d.ts +1 -1
  149. package/dist/models/v1/mod-callback-events/smart-conversations-event/smart-conversations-event.d.ts +6 -3
  150. package/dist/models/v1/mod-credentials/index.d.ts +1 -0
  151. package/dist/models/v1/mod-credentials/index.js +1 -0
  152. package/dist/models/v1/mod-credentials/index.js.map +1 -1
  153. package/dist/models/v1/mod-credentials/line-credentials/line-credentials.d.ts +3 -1
  154. package/dist/models/v1/mod-credentials/line-enterprise-credentials/index.d.ts +1 -0
  155. package/dist/models/v1/mod-credentials/line-enterprise-credentials/index.js +3 -0
  156. package/dist/models/v1/mod-credentials/line-enterprise-credentials/index.js.map +1 -0
  157. package/dist/models/v1/mod-credentials/line-enterprise-credentials/line-enterprise-credentials.d.ts +24 -0
  158. package/dist/models/v1/mod-credentials/line-enterprise-credentials/line-enterprise-credentials.js +3 -0
  159. package/dist/models/v1/mod-credentials/line-enterprise-credentials/line-enterprise-credentials.js.map +1 -0
  160. package/dist/models/v1/project-settings/index.d.ts +1 -0
  161. package/dist/models/v1/project-settings/index.js +3 -0
  162. package/dist/models/v1/project-settings/index.js.map +1 -0
  163. package/dist/models/v1/project-settings/project-settings.d.ts +10 -0
  164. package/dist/models/v1/project-settings/project-settings.js +3 -0
  165. package/dist/models/v1/project-settings/project-settings.js.map +1 -0
  166. package/dist/models/v1/project-settings-request/index.d.ts +1 -0
  167. package/dist/models/v1/project-settings-request/index.js +3 -0
  168. package/dist/models/v1/project-settings-request/index.js.map +1 -0
  169. package/dist/models/v1/project-settings-request/project-settings-request.d.ts +10 -0
  170. package/dist/models/v1/project-settings-request/project-settings-request.js +3 -0
  171. package/dist/models/v1/project-settings-request/project-settings-request.js.map +1 -0
  172. package/dist/models/v1/queue-stats/queue-stats.d.ts +2 -2
  173. package/dist/models/v1/requests/consents/consents-request-data.d.ts +17 -0
  174. package/dist/models/v1/requests/consents/consents-request-data.js +3 -0
  175. package/dist/models/v1/requests/consents/consents-request-data.js.map +1 -0
  176. package/dist/models/v1/requests/contact/contact-request-data.d.ts +9 -3
  177. package/dist/models/v1/requests/conversation/conversation-request-data.d.ts +1 -1
  178. package/dist/models/v1/requests/index.d.ts +2 -0
  179. package/dist/models/v1/requests/index.js +2 -0
  180. package/dist/models/v1/requests/index.js.map +1 -1
  181. package/dist/models/v1/requests/messages/messages-request-data.d.ts +9 -2
  182. package/dist/models/v1/requests/project-settings/project-settings-request-data.d.ts +13 -0
  183. package/dist/models/v1/{flow-channel-specific-message/flow-channel-specific-message.js → requests/project-settings/project-settings-request-data.js} +1 -1
  184. package/dist/models/v1/requests/project-settings/project-settings-request-data.js.map +1 -0
  185. package/dist/models/v1/retention-policy/retention-policy.d.ts +1 -1
  186. package/dist/models/v1/runtime-error/index.d.ts +1 -1
  187. package/dist/models/v1/runtime-error/runtime-error.d.ts +3 -1
  188. package/dist/models/v1/send-message-request/send-message-request.d.ts +6 -4
  189. package/dist/models/v1/share-location-message/index.d.ts +1 -0
  190. package/dist/models/v1/share-location-message/index.js +3 -0
  191. package/dist/models/v1/share-location-message/index.js.map +1 -0
  192. package/dist/models/v1/share-location-message/share-location-message.d.ts +6 -0
  193. package/dist/models/v1/{media-carousel-message/media-carousel-message.js → share-location-message/share-location-message.js} +1 -1
  194. package/dist/models/v1/share-location-message/share-location-message.js.map +1 -0
  195. package/dist/models/v1/smart-conversation/smart-conversation.d.ts +1 -1
  196. package/dist/models/v1/template-message/template-message.d.ts +6 -3
  197. package/dist/models/v1/template-reference/index.d.ts +1 -1
  198. package/dist/models/v1/template-reference/template-reference.d.ts +15 -3
  199. package/dist/models/v1/webhook/webhook.d.ts +3 -3
  200. package/dist/models/v1/webhook-trigger/webhook-trigger.d.ts +1 -0
  201. package/dist/models/v1/whatsapp-flow/index.d.ts +1 -0
  202. package/dist/models/v1/whatsapp-flow/index.js +3 -0
  203. package/dist/models/v1/whatsapp-flow/index.js.map +1 -0
  204. package/dist/models/v1/whatsapp-flow/whatsapp-flow.d.ts +28 -0
  205. package/dist/models/v1/whatsapp-flow/whatsapp-flow.js +3 -0
  206. package/dist/models/v1/whatsapp-flow/whatsapp-flow.js.map +1 -0
  207. package/dist/models/v1/whatsapp-interactive-message-base/common/header/index.d.ts +5 -0
  208. package/dist/models/v1/whatsapp-interactive-message-base/common/header/index.js +22 -0
  209. package/dist/models/v1/whatsapp-interactive-message-base/common/header/index.js.map +1 -0
  210. package/dist/models/v1/whatsapp-interactive-message-base/common/header/whatsapp-interactive-document-header/index.js +3 -0
  211. package/dist/models/v1/whatsapp-interactive-message-base/common/header/whatsapp-interactive-document-header/index.js.map +1 -0
  212. package/dist/models/v1/whatsapp-interactive-message-base/common/header/whatsapp-interactive-document-header/whatsapp-interactive-document-header.js.map +1 -0
  213. package/dist/models/v1/whatsapp-interactive-message-base/common/header/whatsapp-interactive-header-media/index.js +3 -0
  214. package/dist/models/v1/whatsapp-interactive-message-base/common/header/whatsapp-interactive-header-media/index.js.map +1 -0
  215. package/dist/models/v1/whatsapp-interactive-message-base/common/header/whatsapp-interactive-header-media/whatsapp-interactive-header-media.js.map +1 -0
  216. package/dist/models/v1/whatsapp-interactive-message-base/common/header/whatsapp-interactive-image-header/index.js +3 -0
  217. package/dist/models/v1/whatsapp-interactive-message-base/common/header/whatsapp-interactive-image-header/index.js.map +1 -0
  218. package/dist/models/v1/whatsapp-interactive-message-base/common/header/whatsapp-interactive-image-header/whatsapp-interactive-image-header.js.map +1 -0
  219. package/dist/models/v1/whatsapp-interactive-message-base/common/header/whatsapp-interactive-text-header/index.js +3 -0
  220. package/dist/models/v1/whatsapp-interactive-message-base/common/header/whatsapp-interactive-text-header/index.js.map +1 -0
  221. package/dist/models/v1/whatsapp-interactive-message-base/common/header/whatsapp-interactive-text-header/whatsapp-interactive-text-header.js.map +1 -0
  222. package/dist/models/v1/whatsapp-interactive-message-base/common/header/whatsapp-interactive-video-header/index.js +3 -0
  223. package/dist/models/v1/whatsapp-interactive-message-base/common/header/whatsapp-interactive-video-header/index.js.map +1 -0
  224. package/dist/models/v1/whatsapp-interactive-message-base/common/header/whatsapp-interactive-video-header/whatsapp-interactive-video-header.js.map +1 -0
  225. package/dist/models/v1/whatsapp-interactive-message-base/common/index.d.ts +4 -0
  226. package/dist/models/v1/whatsapp-interactive-message-base/common/index.js +21 -0
  227. package/dist/models/v1/whatsapp-interactive-message-base/common/index.js.map +1 -0
  228. package/dist/models/v1/whatsapp-interactive-message-base/common/whatsapp-interactive-body/index.js +3 -0
  229. package/dist/models/v1/whatsapp-interactive-message-base/common/whatsapp-interactive-body/index.js.map +1 -0
  230. package/dist/models/v1/whatsapp-interactive-message-base/common/whatsapp-interactive-body/whatsapp-interactive-body.js.map +1 -0
  231. package/dist/models/v1/whatsapp-interactive-message-base/common/whatsapp-interactive-footer/index.js +3 -0
  232. package/dist/models/v1/whatsapp-interactive-message-base/common/whatsapp-interactive-footer/index.js.map +1 -0
  233. package/dist/models/v1/whatsapp-interactive-message-base/common/whatsapp-interactive-footer/whatsapp-interactive-footer.js.map +1 -0
  234. package/dist/models/v1/whatsapp-interactive-message-base/common/whatsapp-interactive-header/index.d.ts +1 -0
  235. package/dist/models/v1/whatsapp-interactive-message-base/common/whatsapp-interactive-header/index.js +3 -0
  236. package/dist/models/v1/whatsapp-interactive-message-base/common/whatsapp-interactive-header/index.js.map +1 -0
  237. package/dist/models/v1/whatsapp-interactive-message-base/common/whatsapp-interactive-header/whatsapp-interactive-header.d.ts +4 -0
  238. package/dist/models/v1/whatsapp-interactive-message-base/common/whatsapp-interactive-header/whatsapp-interactive-header.js +3 -0
  239. package/dist/models/v1/whatsapp-interactive-message-base/common/whatsapp-interactive-header/whatsapp-interactive-header.js.map +1 -0
  240. package/dist/models/v1/whatsapp-interactive-message-base/index.d.ts +2 -0
  241. package/dist/models/v1/whatsapp-interactive-message-base/index.js +18 -0
  242. package/dist/models/v1/whatsapp-interactive-message-base/index.js.map +1 -0
  243. package/dist/models/v1/whatsapp-interactive-message-base/whatsapp-interactive-message-base.d.ts +9 -0
  244. package/dist/models/v1/whatsapp-interactive-message-base/whatsapp-interactive-message-base.js +3 -0
  245. package/dist/models/v1/whatsapp-interactive-message-base/whatsapp-interactive-message-base.js.map +1 -0
  246. package/dist/models/v1/whatsapp-payment-order-details/index.d.ts +1 -0
  247. package/dist/models/v1/whatsapp-payment-order-details/index.js +3 -0
  248. package/dist/models/v1/whatsapp-payment-order-details/index.js.map +1 -0
  249. package/dist/models/v1/whatsapp-payment-order-details/whatsapp-payment-order-details.d.ts +117 -0
  250. package/dist/models/v1/whatsapp-payment-order-details/whatsapp-payment-order-details.js +3 -0
  251. package/dist/models/v1/whatsapp-payment-order-details/whatsapp-payment-order-details.js.map +1 -0
  252. package/dist/models/v1/whatsapp-payment-order-status/index.d.ts +1 -0
  253. package/dist/models/v1/whatsapp-payment-order-status/index.js +3 -0
  254. package/dist/models/v1/whatsapp-payment-order-status/index.js.map +1 -0
  255. package/dist/models/v1/whatsapp-payment-order-status/whatsapp-payment-order-status.d.ts +32 -0
  256. package/dist/models/v1/whatsapp-payment-order-status/whatsapp-payment-order-status.js +3 -0
  257. package/dist/models/v1/whatsapp-payment-order-status/whatsapp-payment-order-status.js.map +1 -0
  258. package/dist/rest/v1/app/app-api.d.ts +4 -9
  259. package/dist/rest/v1/app/app-api.js +4 -14
  260. package/dist/rest/v1/app/app-api.js.map +1 -1
  261. package/dist/rest/v1/callbacks/callbacks-webhook.d.ts +7 -0
  262. package/dist/rest/v1/callbacks/callbacks-webhook.js +13 -0
  263. package/dist/rest/v1/callbacks/callbacks-webhook.js.map +1 -1
  264. package/dist/rest/v1/capability/capability-api.d.ts +2 -7
  265. package/dist/rest/v1/capability/capability-api.js +2 -8
  266. package/dist/rest/v1/capability/capability-api.js.map +1 -1
  267. package/dist/rest/v1/consents/consents-api.d.ts +20 -0
  268. package/dist/rest/v1/consents/consents-api.jest.fixture.d.ts +13 -0
  269. package/dist/rest/v1/consents/consents-api.jest.fixture.js +17 -0
  270. package/dist/rest/v1/consents/consents-api.jest.fixture.js.map +1 -0
  271. package/dist/rest/v1/consents/consents-api.js +61 -0
  272. package/dist/rest/v1/consents/consents-api.js.map +1 -0
  273. package/dist/rest/v1/consents/index.d.ts +2 -0
  274. package/dist/rest/v1/consents/index.js +19 -0
  275. package/dist/rest/v1/consents/index.js.map +1 -0
  276. package/dist/rest/v1/contact/contact-api.d.ts +13 -10
  277. package/dist/rest/v1/contact/contact-api.jest.fixture.d.ts +5 -1
  278. package/dist/rest/v1/contact/contact-api.jest.fixture.js +4 -0
  279. package/dist/rest/v1/contact/contact-api.jest.fixture.js.map +1 -1
  280. package/dist/rest/v1/contact/contact-api.js +31 -16
  281. package/dist/rest/v1/contact/contact-api.js.map +1 -1
  282. package/dist/rest/v1/conversation/conversation-api.d.ts +5 -9
  283. package/dist/rest/v1/conversation/conversation-api.js +4 -18
  284. package/dist/rest/v1/conversation/conversation-api.js.map +1 -1
  285. package/dist/rest/v1/conversation-domain-api.d.ts +13 -14
  286. package/dist/rest/v1/conversation-domain-api.js +29 -52
  287. package/dist/rest/v1/conversation-domain-api.js.map +1 -1
  288. package/dist/rest/v1/conversation-service.d.ts +31 -2
  289. package/dist/rest/v1/conversation-service.js +126 -32
  290. package/dist/rest/v1/conversation-service.js.map +1 -1
  291. package/dist/rest/v1/events/events-api.d.ts +4 -8
  292. package/dist/rest/v1/events/events-api.js +3 -12
  293. package/dist/rest/v1/events/events-api.js.map +1 -1
  294. package/dist/rest/v1/index.d.ts +3 -0
  295. package/dist/rest/v1/index.js +3 -0
  296. package/dist/rest/v1/index.js.map +1 -1
  297. package/dist/rest/v1/messages/messages-api.d.ts +13 -11
  298. package/dist/rest/v1/messages/messages-api.jest.fixture.d.ts +7 -1
  299. package/dist/rest/v1/messages/messages-api.jest.fixture.js +4 -0
  300. package/dist/rest/v1/messages/messages-api.jest.fixture.js.map +1 -1
  301. package/dist/rest/v1/messages/messages-api.js +33 -16
  302. package/dist/rest/v1/messages/messages-api.js.map +1 -1
  303. package/dist/rest/v1/project-settings/index.d.ts +2 -0
  304. package/dist/rest/v1/project-settings/index.js +19 -0
  305. package/dist/rest/v1/project-settings/index.js.map +1 -0
  306. package/dist/rest/v1/project-settings/project-settings-api.d.ts +30 -0
  307. package/dist/rest/v1/project-settings/project-settings-api.jest.fixture.d.ts +20 -0
  308. package/dist/rest/v1/project-settings/project-settings-api.jest.fixture.js +25 -0
  309. package/dist/rest/v1/project-settings/project-settings-api.jest.fixture.js.map +1 -0
  310. package/dist/rest/v1/project-settings/project-settings-api.js +101 -0
  311. package/dist/rest/v1/project-settings/project-settings-api.js.map +1 -0
  312. package/dist/rest/v1/templates-v1/templates-v1-api.d.ts +8 -8
  313. package/dist/rest/v1/templates-v1/templates-v1-api.js +8 -13
  314. package/dist/rest/v1/templates-v1/templates-v1-api.js.map +1 -1
  315. package/dist/rest/v1/templates-v2/templates-v2-api.d.ts +3 -8
  316. package/dist/rest/v1/templates-v2/templates-v2-api.js +3 -14
  317. package/dist/rest/v1/templates-v2/templates-v2-api.js.map +1 -1
  318. package/dist/rest/v1/transcoding/transcoding-api.d.ts +2 -7
  319. package/dist/rest/v1/transcoding/transcoding-api.js +2 -8
  320. package/dist/rest/v1/transcoding/transcoding-api.js.map +1 -1
  321. package/dist/rest/v1/webhooks/webhooks-api.d.ts +2 -7
  322. package/dist/rest/v1/webhooks/webhooks-api.js +2 -12
  323. package/dist/rest/v1/webhooks/webhooks-api.js.map +1 -1
  324. package/package.json +2 -2
  325. package/dist/models/v1/flow-channel-specific-message/flow-channel-specific-message.d.ts +0 -37
  326. package/dist/models/v1/flow-channel-specific-message/flow-channel-specific-message.js.map +0 -1
  327. package/dist/models/v1/flow-channel-specific-message/index.d.ts +0 -1
  328. package/dist/models/v1/flow-channel-specific-message/index.js.map +0 -1
  329. package/dist/models/v1/media-carousel-message/index.d.ts +0 -1
  330. package/dist/models/v1/media-carousel-message/index.js.map +0 -1
  331. package/dist/models/v1/media-carousel-message/media-carousel-message.d.ts +0 -7
  332. package/dist/models/v1/media-carousel-message/media-carousel-message.js.map +0 -1
  333. package/dist/models/v1/whatsapp-interactive-body/index.js.map +0 -1
  334. package/dist/models/v1/whatsapp-interactive-body/whatsapp-interactive-body.js.map +0 -1
  335. package/dist/models/v1/whatsapp-interactive-document-header/index.js.map +0 -1
  336. package/dist/models/v1/whatsapp-interactive-document-header/whatsapp-interactive-document-header.js.map +0 -1
  337. package/dist/models/v1/whatsapp-interactive-footer/index.js.map +0 -1
  338. package/dist/models/v1/whatsapp-interactive-footer/whatsapp-interactive-footer.js.map +0 -1
  339. package/dist/models/v1/whatsapp-interactive-header-media/index.js.map +0 -1
  340. package/dist/models/v1/whatsapp-interactive-header-media/whatsapp-interactive-header-media.js.map +0 -1
  341. package/dist/models/v1/whatsapp-interactive-image-header/index.js.map +0 -1
  342. package/dist/models/v1/whatsapp-interactive-image-header/whatsapp-interactive-image-header.js.map +0 -1
  343. package/dist/models/v1/whatsapp-interactive-text-header/index.js.map +0 -1
  344. package/dist/models/v1/whatsapp-interactive-text-header/whatsapp-interactive-text-header.js.map +0 -1
  345. package/dist/models/v1/whatsapp-interactive-video-header/index.js.map +0 -1
  346. package/dist/models/v1/whatsapp-interactive-video-header/whatsapp-interactive-video-header.js.map +0 -1
  347. /package/dist/models/v1/{flow-channel-specific-message → audit-record}/index.js +0 -0
  348. /package/dist/models/v1/{media-carousel-message → audit-records-list}/index.js +0 -0
  349. /package/dist/models/v1/{whatsapp-interactive-body → calendar-message}/index.js +0 -0
  350. /package/dist/models/v1/{whatsapp-interactive-document-header → consent-identity}/index.js +0 -0
  351. /package/dist/models/v1/{whatsapp-interactive-footer → contact-settings}/index.js +0 -0
  352. /package/dist/models/v1/{whatsapp-interactive-header-media → identity-conflict}/index.js +0 -0
  353. /package/dist/models/v1/{whatsapp-interactive-image-header → kakaotalk-button}/index.js +0 -0
  354. /package/dist/models/v1/{whatsapp-interactive-video-header → kakaotalk-carousel}/index.js +0 -0
  355. /package/dist/models/v1/{whatsapp-interactive-text-header → kakaotalk-carousel-commerce}/index.js +0 -0
  356. /package/dist/models/v1/{whatsapp-interactive-document-header → whatsapp-interactive-message-base/common/header/whatsapp-interactive-document-header}/index.d.ts +0 -0
  357. /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
  358. /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
  359. /package/dist/models/v1/{whatsapp-interactive-header-media → whatsapp-interactive-message-base/common/header/whatsapp-interactive-header-media}/index.d.ts +0 -0
  360. /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
  361. /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
  362. /package/dist/models/v1/{whatsapp-interactive-image-header → whatsapp-interactive-message-base/common/header/whatsapp-interactive-image-header}/index.d.ts +0 -0
  363. /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
  364. /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
  365. /package/dist/models/v1/{whatsapp-interactive-text-header → whatsapp-interactive-message-base/common/header/whatsapp-interactive-text-header}/index.d.ts +0 -0
  366. /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
  367. /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
  368. /package/dist/models/v1/{whatsapp-interactive-video-header → whatsapp-interactive-message-base/common/header/whatsapp-interactive-video-header}/index.d.ts +0 -0
  369. /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
  370. /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
  371. /package/dist/models/v1/{whatsapp-interactive-body → whatsapp-interactive-message-base/common/whatsapp-interactive-body}/index.d.ts +0 -0
  372. /package/dist/models/v1/{whatsapp-interactive-body → whatsapp-interactive-message-base/common/whatsapp-interactive-body}/whatsapp-interactive-body.d.ts +0 -0
  373. /package/dist/models/v1/{whatsapp-interactive-body → whatsapp-interactive-message-base/common/whatsapp-interactive-body}/whatsapp-interactive-body.js +0 -0
  374. /package/dist/models/v1/{whatsapp-interactive-footer → whatsapp-interactive-message-base/common/whatsapp-interactive-footer}/index.d.ts +0 -0
  375. /package/dist/models/v1/{whatsapp-interactive-footer → whatsapp-interactive-message-base/common/whatsapp-interactive-footer}/whatsapp-interactive-footer.d.ts +0 -0
  376. /package/dist/models/v1/{whatsapp-interactive-footer → whatsapp-interactive-message-base/common/whatsapp-interactive-footer}/whatsapp-interactive-footer.js +0 -0
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -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
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
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":""}
@@ -0,0 +1 @@
1
+ export type { ProjectSettings } from './project-settings';
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/project-settings/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import { ProjectSettingsContent } from '../project-settings-request';
2
+ /**
3
+ * Project-level settings, including contact management options.
4
+ */
5
+ export interface ProjectSettings {
6
+ /** The unique ID of the project. */
7
+ project_id?: string;
8
+ /** The settings object containing contact settings. */
9
+ settings?: ProjectSettingsContent;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=project-settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-settings.js","sourceRoot":"","sources":["../../../../src/models/v1/project-settings/project-settings.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export type { ProjectSettingsRequest, ProjectSettingsContent } from './project-settings-request';
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/project-settings-request/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import { ContactSettings } from '../contact-settings';
2
+ export interface ProjectSettingsContent {
3
+ /** @see ContactSettings */
4
+ contact_settings?: ContactSettings;
5
+ }
6
+ /**
7
+ * Request body for creating or updating project settings.
8
+ */
9
+ export interface ProjectSettingsRequest extends ProjectSettingsContent {
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=project-settings-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-settings-request.js","sourceRoot":"","sources":["../../../../src/models/v1/project-settings-request/project-settings-request.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
  }
@@ -0,0 +1,17 @@
1
+ import { ConsentsListType } from '../../enums';
2
+ export interface ListIdentitiesRequestData {
3
+ /** The unique ID of the app. You can find this on the [Sinch Dashboard](https://dashboard.sinch.com/convapi/apps). */
4
+ app_id: string;
5
+ /** The consent list type. One of `OPT_OUT_ALL`, `OPT_OUT_MARKETING`, and or `OPT_OUT_NOTIFICATION`. */
6
+ list_type: ConsentsListType;
7
+ /** Optional. The maximum number of records to fetch. The default is 10 and the maximum is 50. */
8
+ page_size?: number;
9
+ /** A page token, received from a previous Get identities from consent list call. Provide this to retrieve a subsequent page. */
10
+ page_token?: string;
11
+ }
12
+ export interface ListAuditRecordsRequestData {
13
+ /** The unique ID of the app. You can find this on the [Sinch Dashboard](https://dashboard.sinch.com/convapi/apps). */
14
+ app_id: string;
15
+ /** An identity to use on Consent audit records queries. */
16
+ identity: string;
17
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=consents-request-data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consents-request-data.js","sourceRoot":"","sources":["../../../../../src/models/v1/requests/consents/consents-request-data.ts"],"names":[],"mappings":""}
@@ -25,13 +25,19 @@ 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
+ export interface ListIdentityConflictsRequestData {
36
+ /** Maximum number of conflicts to return (max 20). */
37
+ 'page_size'?: number;
38
+ /** Pagination token for retrieving next page. */
39
+ 'page_token'?: string;
40
+ }
35
41
  export interface MergeContactRequestData {
36
42
  /** The unique ID of the contact that should be kept when merging two contacts. */
37
43
  'destination_id': string;
@@ -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. */
@@ -1,9 +1,11 @@
1
1
  export * from './app/app-request-data';
2
2
  export * from './capability/capability-request-data';
3
+ export * from './consents/consents-request-data';
3
4
  export * from './contact/contact-request-data';
4
5
  export * from './conversation/conversation-request-data';
5
6
  export * from './events/events-request-data';
6
7
  export * from './messages/messages-request-data';
8
+ export * from './project-settings/project-settings-request-data';
7
9
  export * from './templates-v1/templates-v1-request-data';
8
10
  export * from './templates-v2/templates-v2-request-data';
9
11
  export * from './transcoding/transcoding-request-data';
@@ -16,10 +16,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./app/app-request-data"), exports);
18
18
  __exportStar(require("./capability/capability-request-data"), exports);
19
+ __exportStar(require("./consents/consents-request-data"), exports);
19
20
  __exportStar(require("./contact/contact-request-data"), exports);
20
21
  __exportStar(require("./conversation/conversation-request-data"), exports);
21
22
  __exportStar(require("./events/events-request-data"), exports);
22
23
  __exportStar(require("./messages/messages-request-data"), exports);
24
+ __exportStar(require("./project-settings/project-settings-request-data"), exports);
23
25
  __exportStar(require("./templates-v1/templates-v1-request-data"), exports);
24
26
  __exportStar(require("./templates-v2/templates-v2-request-data"), exports);
25
27
  __exportStar(require("./transcoding/transcoding-request-data"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,uEAAqD;AACrD,iEAA+C;AAC/C,2EAAyD;AACzD,+DAA6C;AAC7C,mEAAiD;AACjD,2EAAyD;AACzD,2EAAyD;AACzD,yEAAuD;AACvD,mEAAiD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,uEAAqD;AACrD,mEAAiD;AACjD,iEAA+C;AAC/C,2EAAyD;AACzD,+DAA6C;AAC7C,mEAAiD;AACjD,mFAAiE;AACjE,2EAAyD;AACzD,2EAAyD;AACzD,yEAAuD;AACvD,mEAAiD"}
@@ -1,8 +1,9 @@
1
- import { ConversationMessagesView, MessageSource } from '../../enums';
1
+ import { ConversationDirection, ConversationMessagesView, MessageSource } from '../../enums';
2
2
  import { ConversationChannel } from '../../conversation-channel';
3
3
  import { Recipient } from '../../recipient';
4
4
  import { SendCardMessageRequest, SendCarouselMessageRequest, SendChoiceMessageRequest, SendContactInfoMessageRequest, SendListMessageRequest, SendLocationMessageRequest, SendMediaMessageRequest, SendMessageRequest, SendTemplateMessageRequest, SendTextMessageRequest } from '../../send-message-request';
5
5
  import { UpdateMessageRequest } from '../../update-message-request';
6
+ import { ListLastMessagesByChannelIdentityRequest } from '../../list-last-messages-by-channel-identity-request';
6
7
  export interface DeleteMessageRequestData {
7
8
  /** The unique ID of the message. */
8
9
  'message_id': string;
@@ -40,6 +41,12 @@ export interface ListMessagesRequestData {
40
41
  'only_recipient_originated'?: boolean;
41
42
  /** Only fetch messages from the `channel`. */
42
43
  'channel'?: ConversationChannel;
44
+ /** Optional. Only fetch messages with the specified `direction`. If direction is not specified, it will list both TO_APP and TO_CONTACT messages. */
45
+ 'direction'?: ConversationDirection;
46
+ }
47
+ export interface ListLastMessagesByChannelIdentityRequestData {
48
+ /** Request body for listing messages by channel identity. NOTE: You can use either contact_ids OR channel_identities, but not both in the same request. */
49
+ 'listLastMessagesByChannelIdentityRequestBody': ListLastMessagesByChannelIdentityRequest;
43
50
  }
44
51
  export interface SendMessageRequestData<T extends Recipient> {
45
52
  /** This is the request body for sending a message. `app_id`, `recipient`, and `message` are all required fields. */
@@ -87,5 +94,5 @@ export interface UpdateMessageRequestData {
87
94
  /** Update message metadata request. */
88
95
  'updateMessageRequestBody': UpdateMessageRequest;
89
96
  /** 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';
97
+ 'messages_source'?: MessageSource;
91
98
  }
@@ -0,0 +1,13 @@
1
+ import { ProjectSettingsRequest } from '../../project-settings-request';
2
+ export interface CreateProjectSettingsRequestData {
3
+ /** The project settings to create. */
4
+ 'createProjectSettingsRequestBody': ProjectSettingsRequest;
5
+ }
6
+ export interface DeleteProjectSettingsRequestData {
7
+ }
8
+ export interface GetProjectSettingsRequestData {
9
+ }
10
+ export interface UpdateProjectSettingsRequestData {
11
+ /** The project settings to update. */
12
+ 'updateProjectSettingsRequestBody': ProjectSettingsRequest;
13
+ }
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=flow-channel-specific-message.js.map
3
+ //# sourceMappingURL=project-settings-request-data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-settings-request-data.js","sourceRoot":"","sources":["../../../../../src/models/v1/requests/project-settings/project-settings-request-data.ts"],"names":[],"mappings":""}
@@ -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. - If you send a message in `DISPATCH` mode while the [retention period](https://developers.sinch.com/docs/conversation/api-reference/conversation/tag/App/#tag/App/operation/App_CreateApp!path=dispatch_retention_policy/ttl_days&t=request) of the app is set to 0 (note that this value is set to 0 by default), the `conversation_metadata` field will not be retained. 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. Important note: If you send a message in `DISPATCH` mode while the [retention period](https://developers.sinch.com/docs/conversation/api-reference/conversation/tag/App/#tag/App/operation/App_CreateApp!path=dispatch_retention_policy/ttl_days&t=request) of the app is set to 0 (note that this value is set to 0 by default), the `correlation_id` field will not be retained. */
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> {
@@ -0,0 +1 @@
1
+ export type { ShareLocationMessage } from './share-location-message';
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/share-location-message/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export interface ShareLocationMessage {
2
+ /** The title is shown close to the button that leads to open a map to share a location. */
3
+ title: string;
4
+ /** The URL that is opened when channel does not have support for this type. */
5
+ fallback_url: string;
6
+ }
@@ -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=share-location-message.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"share-location-message.js","sourceRoot":"","sources":["../../../../src/models/v1/share-location-message/share-location-message.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This object is required for apps that subscribe to Smart Conversations features. Note that this functionality is available for open beta testing.
2
+ * This object is required for apps that subscribe to Smart Conversations features.
3
3
  */
4
4
  export interface SmartConversation {
5
5
  /** Set to true to allow messages processed by this app to be analyzed by Smart Conversations. */
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map