@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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whatsapp-interactive-image-header.js","sourceRoot":"","sources":["../../../../../../../src/models/v1/whatsapp-interactive-message-base/common/header/whatsapp-interactive-image-header/whatsapp-interactive-image-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-text-header/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whatsapp-interactive-text-header.js","sourceRoot":"","sources":["../../../../../../../src/models/v1/whatsapp-interactive-message-base/common/header/whatsapp-interactive-text-header/whatsapp-interactive-text-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-video-header/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whatsapp-interactive-video-header.js","sourceRoot":"","sources":["../../../../../../../src/models/v1/whatsapp-interactive-message-base/common/header/whatsapp-interactive-video-header/whatsapp-interactive-video-header.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export * from './header';
2
+ export * from './whatsapp-interactive-body';
3
+ export * from './whatsapp-interactive-footer';
4
+ export * from './whatsapp-interactive-header';
@@ -0,0 +1,21 @@
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("./header"), exports);
18
+ __exportStar(require("./whatsapp-interactive-body"), exports);
19
+ __exportStar(require("./whatsapp-interactive-footer"), exports);
20
+ __exportStar(require("./whatsapp-interactive-header"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/models/v1/whatsapp-interactive-message-base/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,8DAA4C;AAC5C,gEAA8C;AAC9C,gEAA8C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/models/v1/whatsapp-interactive-message-base/common/whatsapp-interactive-body/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whatsapp-interactive-body.js","sourceRoot":"","sources":["../../../../../../src/models/v1/whatsapp-interactive-message-base/common/whatsapp-interactive-body/whatsapp-interactive-body.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/models/v1/whatsapp-interactive-message-base/common/whatsapp-interactive-footer/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whatsapp-interactive-footer.js","sourceRoot":"","sources":["../../../../../../src/models/v1/whatsapp-interactive-message-base/common/whatsapp-interactive-footer/whatsapp-interactive-footer.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export { WhatsAppInteractiveHeader, WhatsappInteractiveHeader } from './whatsapp-interactive-header';
@@ -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/whatsapp-interactive-message-base/common/whatsapp-interactive-header/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { WhatsAppInteractiveDocumentHeader, WhatsAppInteractiveImageHeader, WhatsAppInteractiveTextHeader, WhatsAppInteractiveVideoHeader } from '../header';
2
+ /** @deprecated */
3
+ export type WhatsappInteractiveHeader = WhatsAppInteractiveHeader;
4
+ export type WhatsAppInteractiveHeader = WhatsAppInteractiveTextHeader | WhatsAppInteractiveImageHeader | WhatsAppInteractiveDocumentHeader | WhatsAppInteractiveVideoHeader;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=whatsapp-interactive-header.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whatsapp-interactive-header.js","sourceRoot":"","sources":["../../../../../../src/models/v1/whatsapp-interactive-message-base/common/whatsapp-interactive-header/whatsapp-interactive-header.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export type { WhatsAppInteractiveMessageBase } from './whatsapp-interactive-message-base';
2
+ export * from './common';
@@ -0,0 +1,18 @@
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("./common"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/whatsapp-interactive-message-base/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,2CAAyB"}
@@ -0,0 +1,9 @@
1
+ import { WhatsAppInteractiveBody, WhatsAppInteractiveFooter, WhatsAppInteractiveHeader } from './common';
2
+ export interface WhatsAppInteractiveMessageBase {
3
+ /** @see WhatsAppInteractiveHeader */
4
+ header?: WhatsAppInteractiveHeader;
5
+ /** @see WhatsAppInteractiveBody */
6
+ body?: WhatsAppInteractiveBody;
7
+ /** @see WhatsAppInteractiveFooter */
8
+ footer?: WhatsAppInteractiveFooter;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=whatsapp-interactive-message-base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whatsapp-interactive-message-base.js","sourceRoot":"","sources":["../../../../src/models/v1/whatsapp-interactive-message-base/whatsapp-interactive-message-base.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export type { WhatsAppPaymentOrderDetails, OrderDetailsPayment, OrderDetailsPaymentOrder, OrderDetailsPaymentOrderItems, OrderDetailsPaymentSettings, OrderDetailsPaymentSettingsDynamicPix, PaymentOrderDetailsChannelSpecificMessage, PaymentOrderDetailsChannelSpecificMessagePayment, PaymentOrderDetailsChannelSpecificMessagePaymentOrder, PaymentOrderDetailsChannelSpecificMessagePaymentOrderItems, PaymentOrderDetailsChannelSpecificMessagePaymentPaymentSettings, PaymentOrderDetailsChannelSpecificMessagePaymentPaymentSettingsDynamicPix, } from './whatsapp-payment-order-details';
@@ -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/whatsapp-payment-order-details/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,98 @@
1
+ import { WhatsAppInteractiveMessageBase } from '../whatsapp-interactive-message-base';
2
+ /** @deprecated */
3
+ export type PaymentOrderDetailsChannelSpecificMessage = WhatsAppPaymentOrderDetails;
4
+ /**
5
+ * A message type for sending WhatsApp Payment Requests.
6
+ */
7
+ export interface WhatsAppPaymentOrderDetails extends WhatsAppInteractiveMessageBase {
8
+ /** @see OrderDetailsPayment */
9
+ payment: OrderDetailsPayment;
10
+ }
11
+ /** @deprecated */
12
+ export type PaymentOrderDetailsChannelSpecificMessagePayment = OrderDetailsPayment;
13
+ /**
14
+ * The payment order details content.
15
+ */
16
+ export interface OrderDetailsPayment {
17
+ /** The country/currency associated with the payment message. */
18
+ type: 'br' | 'sg' | string;
19
+ /** Unique reference ID. */
20
+ reference_id: string;
21
+ /** The type of good associated with this order. */
22
+ type_of_goods: 'digital-goods' | 'physical-goods' | string;
23
+ /** @see OrderDetailsPaymentSettings */
24
+ payment_settings?: OrderDetailsPaymentSettings;
25
+ /** Integer representing the total amount of the transaction. */
26
+ total_amount_value: number;
27
+ /** @see OrderDetailsPaymentOrder */
28
+ order: OrderDetailsPaymentOrder;
29
+ }
30
+ /** @deprecated */
31
+ export type PaymentOrderDetailsChannelSpecificMessagePaymentOrder = OrderDetailsPaymentOrder;
32
+ /**
33
+ * The payment order.
34
+ */
35
+ export interface OrderDetailsPaymentOrder {
36
+ /** Unique ID of the Facebook catalog being used by the business. */
37
+ catalog_id?: string;
38
+ /** UTC timestamp indicating when the order should expire. The timestamp must be given in seconds. The minimum threshold for the timestamp is 300 seconds.*/
39
+ expiration_time?: string;
40
+ /** Description of the expiration. */
41
+ expiration_description?: string;
42
+ /** Value representing the subtotal amount of this order. */
43
+ subtotal_value: number;
44
+ /** Value representing the tax amount for this order. */
45
+ tax_value: number;
46
+ /** Description of the tax for this order. */
47
+ tax_description?: string;
48
+ /** Value representing the shipping amount for this order. */
49
+ shipping_value?: number;
50
+ /** Shipping description for this order. */
51
+ shipping_description?: string;
52
+ /** Value of the discount for this order. */
53
+ discount_value?: number;
54
+ /** Description of the discount for this order. */
55
+ discount_description?: string;
56
+ /** Discount program name for this order. */
57
+ discount_program_name?: string;
58
+ /** The items list for this order. */
59
+ items: OrderDetailsPaymentOrderItems[];
60
+ }
61
+ /** @deprecated */
62
+ export type PaymentOrderDetailsChannelSpecificMessagePaymentOrderItems = OrderDetailsPaymentOrderItems;
63
+ export interface OrderDetailsPaymentOrderItems {
64
+ /** Unique ID of the retailer. */
65
+ retailer_id: string;
66
+ /** Item's name as displayed to the user. */
67
+ name: string;
68
+ /** Price per item. */
69
+ amount_value: number;
70
+ /** Number of items in this order. */
71
+ quantity: number;
72
+ /** Discounted price per item. */
73
+ sale_amount_value?: number;
74
+ }
75
+ /** @deprecated */
76
+ export type PaymentOrderDetailsChannelSpecificMessagePaymentPaymentSettings = OrderDetailsPaymentSettings;
77
+ /**
78
+ * The payment settings.
79
+ */
80
+ export interface OrderDetailsPaymentSettings {
81
+ /** @see OrderDetailsPaymentSettingsDynamicPix */
82
+ dynamic_pix: OrderDetailsPaymentSettingsDynamicPix;
83
+ }
84
+ /** @deprecated */
85
+ export type PaymentOrderDetailsChannelSpecificMessagePaymentPaymentSettingsDynamicPix = OrderDetailsPaymentSettingsDynamicPix;
86
+ /**
87
+ * The dynamic Pix payment settings.
88
+ */
89
+ export interface OrderDetailsPaymentSettingsDynamicPix {
90
+ /** The dynamic Pix code to be used by the buyer to pay. */
91
+ code: string;
92
+ /** Account holder name. */
93
+ merchant_name: string;
94
+ /** Pix key. */
95
+ key: string;
96
+ /** Pix key type. */
97
+ key_type: 'CPF' | 'CNPJ' | 'EMAIL' | 'PHONE' | 'EVP' | string;
98
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=whatsapp-payment-order-details.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whatsapp-payment-order-details.js","sourceRoot":"","sources":["../../../../src/models/v1/whatsapp-payment-order-details/whatsapp-payment-order-details.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export type { WhatsAppPaymentOrderStatus, OrderStatusPayment, OrderStatusPaymentDetails, PaymentOrderStatusChannelSpecificMessage, PaymentOrderStatusChannelSpecificMessagePayment, PaymentOrderStatusChannelSpecificMessagePaymentOrder, } from './whatsapp-payment-order-status';
@@ -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/whatsapp-payment-order-status/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ import { WhatsAppInteractiveMessageBase } from '../whatsapp-interactive-message-base';
2
+ /** @deprecated */
3
+ export type PaymentOrderStatusChannelSpecificMessage = WhatsAppPaymentOrderStatus;
4
+ /**
5
+ * A message type for sending WhatsApp Payment Status Requests.
6
+ */
7
+ export interface WhatsAppPaymentOrderStatus extends WhatsAppInteractiveMessageBase {
8
+ /** @see OrderStatusPayment */
9
+ payment: OrderStatusPayment;
10
+ }
11
+ /** @deprecated */
12
+ export type PaymentOrderStatusChannelSpecificMessagePayment = OrderStatusPayment;
13
+ /**
14
+ * The payment order status message content
15
+ */
16
+ export interface OrderStatusPayment {
17
+ /** Unique ID used to query the current payment status. */
18
+ reference_id: string;
19
+ /** @see OrderStatusPaymentDetails */
20
+ order: OrderStatusPaymentDetails;
21
+ }
22
+ /** @deprecated */
23
+ export type PaymentOrderStatusChannelSpecificMessagePaymentOrder = OrderStatusPaymentDetails;
24
+ /**
25
+ * The payment order.
26
+ */
27
+ export interface OrderStatusPaymentDetails {
28
+ /** The new payment message status. */
29
+ status: 'pending' | 'processing' | 'partially-shipped' | 'shipped' | 'completed' | 'canceled';
30
+ /** The description of payment message status update (120 characters maximum). */
31
+ description?: string;
32
+ }
@@ -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=whatsapp-payment-order-status.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whatsapp-payment-order-status.js","sourceRoot":"","sources":["../../../../src/models/v1/whatsapp-payment-order-status/whatsapp-payment-order-status.ts"],"names":[],"mappings":""}
@@ -34,7 +34,7 @@ export declare class AppApi extends ConversationDomainApi {
34
34
  list(data: ListAppsRequestData): Promise<ListAppsResponse>;
35
35
  /**
36
36
  * Update an app
37
- * Updates a particular app as specified by the App ID. Note that this is a &#x60;PATCH&#x60; operation, so any specified field values will replace existing values. Therefore, **if you\&#39;d like to add additional configurations to an existing Conversation API app, ensure that you include existing values AND new values in the call**. For example, if you\&#39;d like to add new &#x60;channel_credentials&#x60;, you can [get](/docs/conversation/api-reference/conversation/tag/App/#tag/App/operation/App_GetApp) your existing Conversation API app, extract the existing &#x60;channel_credentials&#x60; list, append your new configuration to that list, and include the updated &#x60;channel_credentials&#x60; list in this update call.
37
+ * Updates a particular app as specified by the App ID. Note that this is a &#x60;PATCH&#x60; operation, so any specified field values will replace existing values. Therefore, **if you\&#39;d like to add additional configurations to an existing Conversation API app, ensure that you include existing values AND new values in the call**. For example, if you\&#39;d like to add new &#x60;channel_credentials&#x60;, you can [get](https://developers.sinch.com/docs/conversation/api-reference/conversation/tag/App/#tag/App/operation/App_GetApp) your existing Conversation API app, extract the existing &#x60;channel_credentials&#x60; list, append your new configuration to that list, and include the updated &#x60;channel_credentials&#x60; list in this update call.
38
38
  * @param { UpdateAppRequestData } data - The data to provide to the API call.
39
39
  */
40
40
  update(data: UpdateAppRequestData): Promise<AppResponse>;
@@ -105,7 +105,7 @@ class AppApi extends conversation_domain_api_1.ConversationDomainApi {
105
105
  }
106
106
  /**
107
107
  * Update an app
108
- * Updates a particular app as specified by the App ID. Note that this is a &#x60;PATCH&#x60; operation, so any specified field values will replace existing values. Therefore, **if you\&#39;d like to add additional configurations to an existing Conversation API app, ensure that you include existing values AND new values in the call**. For example, if you\&#39;d like to add new &#x60;channel_credentials&#x60;, you can [get](/docs/conversation/api-reference/conversation/tag/App/#tag/App/operation/App_GetApp) your existing Conversation API app, extract the existing &#x60;channel_credentials&#x60; list, append your new configuration to that list, and include the updated &#x60;channel_credentials&#x60; list in this update call.
108
+ * Updates a particular app as specified by the App ID. Note that this is a &#x60;PATCH&#x60; operation, so any specified field values will replace existing values. Therefore, **if you\&#39;d like to add additional configurations to an existing Conversation API app, ensure that you include existing values AND new values in the call**. For example, if you\&#39;d like to add new &#x60;channel_credentials&#x60;, you can [get](https://developers.sinch.com/docs/conversation/api-reference/conversation/tag/App/#tag/App/operation/App_GetApp) your existing Conversation API app, extract the existing &#x60;channel_credentials&#x60; list, append your new configuration to that list, and include the updated &#x60;channel_credentials&#x60; list in this update call.
109
109
  * @param { UpdateAppRequestData } data - The data to provide to the API call.
110
110
  */
111
111
  async update(data) {
@@ -47,6 +47,9 @@ class ConversationCallbackWebhooks {
47
47
  * @throws {Error} If the eventBody is not valid or cannot be parsed.
48
48
  */
49
49
  parseEvent(eventBody) {
50
+ if (typeof eventBody === 'string') {
51
+ eventBody = JSON.parse(eventBody);
52
+ }
50
53
  if ('message' in eventBody) {
51
54
  return {
52
55
  ...eventBody,
@@ -1 +1 @@
1
- {"version":3,"file":"callbacks-webhook.js","sourceRoot":"","sources":["../../../../src/rest/v1/callbacks/callbacks-webhook.ts"],"names":[],"mappings":";;;AAwBA,kDAAgF;AAQhF,MAAa,4BAA4B;IAGvC,YAAY,SAAiB;QAC3B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;IAED;;;;;;;OAOG;IACI,4BAA4B,CACjC,OAA4B,EAC5B,IAAS;IACT,6DAA6D;IAC7D,KAAc,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OAAO,EAAE,qBAAqB;aACJ,CAAC;QAC/B,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;QACzD,CAAC;IACH,CAAC;IAAA,CAAC;CACH;AAxKD,oEAwKC"}
@@ -10,7 +10,7 @@ export declare class ContactApi extends ConversationDomainApi {
10
10
  constructor(sinchClientParameters: SinchClientParameters);
11
11
  /**
12
12
  * Create a Contact
13
- * Most Conversation API contacts are [created automatically](/docs/conversation/contact-management/) when a message is sent to a new recipient. You can also create a new contact manually using this API call.
13
+ * Most Conversation API contacts are [created automatically](https://developers.sinch.com/docs/conversation/contact-management/) when a message is sent to a new recipient. You can also create a new contact manually using this API call.
14
14
  * @param { CreateContactRequestData } data - The data to provide to the API call.
15
15
  */
16
16
  create(data: CreateContactRequestData): Promise<Contact>;
@@ -14,7 +14,7 @@ class ContactApi extends conversation_domain_api_1.ConversationDomainApi {
14
14
  }
15
15
  /**
16
16
  * Create a Contact
17
- * Most Conversation API contacts are [created automatically](/docs/conversation/contact-management/) when a message is sent to a new recipient. You can also create a new contact manually using this API call.
17
+ * Most Conversation API contacts are [created automatically](https://developers.sinch.com/docs/conversation/contact-management/) when a message is sent to a new recipient. You can also create a new contact manually using this API call.
18
18
  * @param { CreateContactRequestData } data - The data to provide to the API call.
19
19
  */
20
20
  async create(data) {
@@ -34,7 +34,7 @@ export declare class ConversationApi extends ConversationDomainApi {
34
34
  injectEvent(data: InjectEventRequestData): Promise<InjectEventResponse>;
35
35
  /**
36
36
  * Inject a message
37
- * This operation injects a conversation message in to a specific conversation.
37
+ * This operation injects a conversation message into a specific conversation.
38
38
  * @param { InjectMessageRequestData } data - The data to provide to the API call.
39
39
  */
40
40
  injectMessage(data: InjectMessageRequestData): Promise<any>;
@@ -108,7 +108,7 @@ class ConversationApi extends conversation_domain_api_1.ConversationDomainApi {
108
108
  }
109
109
  /**
110
110
  * Inject a message
111
- * This operation injects a conversation message in to a specific conversation.
111
+ * This operation injects a conversation message into a specific conversation.
112
112
  * @param { InjectMessageRequestData } data - The data to provide to the API call.
113
113
  */
114
114
  async injectMessage(data) {
@@ -1,4 +1,5 @@
1
1
  import { Api, ApiClient, ConversationRegion, SinchClientParameters, UnifiedCredentials } from '@sinch/sdk-client';
2
+ export declare const DEFAULT_CONVERSATION_REGION_DEPRECATION_WARNING: string;
2
3
  export declare class ConversationDomainApi implements Api {
3
4
  readonly apiName: string;
4
5
  client?: ApiClient;
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ConversationDomainApi = void 0;
3
+ exports.ConversationDomainApi = exports.DEFAULT_CONVERSATION_REGION_DEPRECATION_WARNING = void 0;
4
4
  const sdk_client_1 = require("@sinch/sdk-client");
5
+ exports.DEFAULT_CONVERSATION_REGION_DEPRECATION_WARNING = '** DEPRECATION NOTICE ** '
6
+ + 'The "conversationRegion" property will become mandatory in the next major version of the SDK and not default '
7
+ + 'to "us" anymore. Please set it to a valid region.';
5
8
  class ConversationDomainApi {
6
9
  constructor(sinchClientParameters, apiName) {
7
10
  this.sinchClientParameters = sinchClientParameters;
@@ -13,6 +16,13 @@ class ConversationDomainApi {
13
16
  */
14
17
  setHostname(hostname) {
15
18
  try {
19
+ // The next "if/else" block is a workaround to detect if the hostname is set for the Conversation or Templates API - To be deleted in 2.0
20
+ if (this.apiName === 'TemplatesV1Api' || this.apiName === 'TemplatesV2Api') {
21
+ this.sinchClientParameters.conversationTemplatesHostname = hostname;
22
+ }
23
+ else {
24
+ this.sinchClientParameters.conversationHostname = hostname;
25
+ }
16
26
  this.client = this.getSinchClient();
17
27
  this.client.apiClientOptions.hostname = hostname;
18
28
  }
@@ -63,6 +73,17 @@ class ConversationDomainApi {
63
73
  getSinchClient() {
64
74
  if (!this.client) {
65
75
  const region = this.sinchClientParameters.conversationRegion ?? sdk_client_1.ConversationRegion.UNITED_STATES;
76
+ // Deprecation Notice - to remove in 2.0
77
+ const isConversationHostnameOverridden = !!this.sinchClientParameters.conversationHostname
78
+ && this.apiName !== 'TemplatesV1Api'
79
+ && this.apiName !== 'TemplatesV2Api';
80
+ const isConversationTemplatesHostnameOverridden = !!this.sinchClientParameters.conversationTemplatesHostname
81
+ && (this.apiName === 'TemplatesV1Api' || this.apiName === 'TemplatesV2Api');
82
+ if (!this.sinchClientParameters.conversationRegion
83
+ && !isConversationHostnameOverridden
84
+ && !isConversationTemplatesHostnameOverridden) {
85
+ console.warn(exports.DEFAULT_CONVERSATION_REGION_DEPRECATION_WARNING);
86
+ }
66
87
  if (!Object.values(sdk_client_1.SupportedConversationRegion).includes(region)) {
67
88
  console.warn(`The region "${region}" is not known as a supported region for the Conversation API`);
68
89
  }
@@ -1 +1 @@
1
- {"version":3,"file":"conversation-domain-api.js","sourceRoot":"","sources":["../../../src/rest/v1/conversation-domain-api.ts"],"names":[],"mappings":";;;AAAA,kDAY2B;AAE3B,MAAa,qBAAqB;IAKhC,YAAY,qBAA4C,EAAE,OAAe;QACvE,IAAI,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;QACnD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED;;;OAGG;IACI,WAAW,CAAC,QAAgB;QACjC,IAAI,CAAC;YACH,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;YACpC,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACnD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,8EAA8E,CAAC,CAAC;YAC9F,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;IAED;;;OAGG;IACI,SAAS,CAAC,MAA0B;QACzC,IAAI,CAAC,qBAAqB,CAAC,kBAAkB,GAAG,MAAM,CAAC;QACvD,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,GAA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6B;uBAC1D,IAAA,uCAA0B,EAAC,4CAA+B,EAAE,eAAe,CAAC,CAAC;YACpF;gBACE,OAAO,IAAI,CAAC,qBAAqB,CAAC,oBAAoB;uBACjD,IAAA,uCAA0B,EAAC,kCAAqB,EAAE,eAAe,CAAC,CAAC;QAC1E,CAAC;IACH,CAAC;CAEF;AA5GD,sDA4GC"}
@@ -22,7 +22,7 @@ export declare class MessagesApi extends ConversationDomainApi {
22
22
  get(data: GetMessageRequestData): Promise<ConversationMessage>;
23
23
  /**
24
24
  * List messages
25
- * This operation lists all messages sent or received via particular [Processing Modes](../../../../../conversation/processing-modes/). Setting the &#x60;messages_source&#x60; parameter to &#x60;CONVERSATION_SOURCE&#x60; allows for querying messages in &#x60;CONVERSATION&#x60; mode, and setting it to &#x60;DISPATCH_SOURCE&#x60; will allow for queries of messages in &#x60;DISPATCH&#x60; mode. Combining multiple parameters is supported for more detailed filtering of messages, but some of them are not supported depending on the value specified for &#x60;messages_source&#x60;. The description for each field will inform if that field may not be supported. The messages are ordered by their &#x60;accept_time&#x60; property in descending order, where &#x60;accept_time&#x60; is a timestamp of when the message was enqueued by the Conversation API. This means messages received most recently will be listed first.
25
+ * This operation lists all messages sent or received via particular [Processing Modes](https://developers.sinch.com/conversation/processing-modes/). Setting the &#x60;messages_source&#x60; parameter to &#x60;CONVERSATION_SOURCE&#x60; allows for querying messages in &#x60;CONVERSATION&#x60; mode, and setting it to &#x60;DISPATCH_SOURCE&#x60; will allow for queries of messages in &#x60;DISPATCH&#x60; mode. Combining multiple parameters is supported for more detailed filtering of messages, but some of them are not supported depending on the value specified for &#x60;messages_source&#x60;. The description for each field will inform if that field may not be supported. The messages are ordered by their &#x60;accept_time&#x60; property in descending order, where &#x60;accept_time&#x60; is a timestamp of when the message was enqueued by the Conversation API. This means messages received most recently will be listed first.
26
26
  * @param { ListMessagesRequestData } data - The data to provide to the API call.
27
27
  * @return {ApiListPromise<ConversationMessage>}
28
28
  */
@@ -62,7 +62,7 @@ class MessagesApi extends conversation_domain_api_1.ConversationDomainApi {
62
62
  }
63
63
  /**
64
64
  * List messages
65
- * This operation lists all messages sent or received via particular [Processing Modes](../../../../../conversation/processing-modes/). Setting the &#x60;messages_source&#x60; parameter to &#x60;CONVERSATION_SOURCE&#x60; allows for querying messages in &#x60;CONVERSATION&#x60; mode, and setting it to &#x60;DISPATCH_SOURCE&#x60; will allow for queries of messages in &#x60;DISPATCH&#x60; mode. Combining multiple parameters is supported for more detailed filtering of messages, but some of them are not supported depending on the value specified for &#x60;messages_source&#x60;. The description for each field will inform if that field may not be supported. The messages are ordered by their &#x60;accept_time&#x60; property in descending order, where &#x60;accept_time&#x60; is a timestamp of when the message was enqueued by the Conversation API. This means messages received most recently will be listed first.
65
+ * This operation lists all messages sent or received via particular [Processing Modes](https://developers.sinch.com/conversation/processing-modes/). Setting the &#x60;messages_source&#x60; parameter to &#x60;CONVERSATION_SOURCE&#x60; allows for querying messages in &#x60;CONVERSATION&#x60; mode, and setting it to &#x60;DISPATCH_SOURCE&#x60; will allow for queries of messages in &#x60;DISPATCH&#x60; mode. Combining multiple parameters is supported for more detailed filtering of messages, but some of them are not supported depending on the value specified for &#x60;messages_source&#x60;. The description for each field will inform if that field may not be supported. The messages are ordered by their &#x60;accept_time&#x60; property in descending order, where &#x60;accept_time&#x60; is a timestamp of when the message was enqueued by the Conversation API. This means messages received most recently will be listed first.
66
66
  * @param { ListMessagesRequestData } data - The data to provide to the API call.
67
67
  * @return {ApiListPromise<ConversationMessage>}
68
68
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinch/conversation",
3
- "version": "1.2.1",
3
+ "version": "1.3.0",
4
4
  "description": "Sinch Conversation API",
5
5
  "homepage": "",
6
6
  "repository": {
@@ -29,7 +29,7 @@
29
29
  "test:e2e": "cucumber-js"
30
30
  },
31
31
  "dependencies": {
32
- "@sinch/sdk-client": "^1.2.1"
32
+ "@sinch/sdk-client": "^1.3.0"
33
33
  },
34
34
  "devDependencies": {},
35
35
  "publishConfig": {
@@ -1,37 +0,0 @@
1
- import { WhatsAppInteractiveBody } from '../whatsapp-interactive-body';
2
- import { WhatsAppInteractiveFooter } from '../whatsapp-interactive-footer';
3
- import { WhatsAppInteractiveTextHeader } from '../whatsapp-interactive-text-header';
4
- import { WhatsAppInteractiveImageHeader } from '../whatsapp-interactive-image-header';
5
- import { WhatsAppInteractiveDocumentHeader } from '../whatsapp-interactive-document-header';
6
- import { WhatsAppInteractiveVideoHeader } from '../whatsapp-interactive-video-header';
7
- /**
8
- * A message type for sending WhatsApp Flows.
9
- */
10
- export interface FlowChannelSpecificMessage {
11
- /** @see FlowChannelSpecificMessageHeader */
12
- header?: FlowChannelSpecificMessageHeader;
13
- /** @see WhatsAppInteractiveBody */
14
- body?: WhatsAppInteractiveBody;
15
- /** @see WhatsAppInteractiveFooter */
16
- footer?: WhatsAppInteractiveFooter;
17
- /** ID of the Flow. */
18
- flow_id: string;
19
- /** Generated token which is an identifier. */
20
- flow_token?: string;
21
- /** The mode in which the flow is. */
22
- flow_mode?: 'draft' | 'published';
23
- /** Text which is displayed on the Call To Action button (20 characters maximum, emoji not supported). */
24
- flow_cta: string;
25
- /** */
26
- flow_action?: 'navigate' | 'data_exchange';
27
- /** @see FlowChannelSpecificMessageFlowActionPayload */
28
- flow_action_payload?: FlowChannelSpecificMessageFlowActionPayload;
29
- }
30
- type FlowChannelSpecificMessageHeader = WhatsAppInteractiveTextHeader | WhatsAppInteractiveImageHeader | WhatsAppInteractiveDocumentHeader | WhatsAppInteractiveVideoHeader;
31
- interface FlowChannelSpecificMessageFlowActionPayload {
32
- /** The ID of the screen displayed first. This must be an entry screen. */
33
- screen?: string;
34
- /** Data for the first screen. */
35
- data?: object;
36
- }
37
- export {};
@@ -1 +0,0 @@
1
- {"version":3,"file":"flow-channel-specific-message.js","sourceRoot":"","sources":["../../../../src/models/v1/flow-channel-specific-message/flow-channel-specific-message.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export type { FlowChannelSpecificMessage } from './flow-channel-specific-message';
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/flow-channel-specific-message/index.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export type { MediaCarouselMessage } from './media-carousel-message';
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/media-carousel-message/index.ts"],"names":[],"mappings":""}
@@ -1,7 +0,0 @@
1
- /**
2
- * A message containing an image media component.
3
- */
4
- export interface MediaCarouselMessage {
5
- /** Url to the media file. */
6
- url: string;
7
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"media-carousel-message.js","sourceRoot":"","sources":["../../../../src/models/v1/media-carousel-message/media-carousel-message.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/whatsapp-interactive-body/index.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"whatsapp-interactive-body.js","sourceRoot":"","sources":["../../../../src/models/v1/whatsapp-interactive-body/whatsapp-interactive-body.ts"],"names":[],"mappings":""}