@sinch/conversation 1.3.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (232) hide show
  1. package/dist/models/v1/audit-record/audit-record.d.ts +18 -0
  2. package/dist/models/v1/audit-record/audit-record.js +3 -0
  3. package/dist/models/v1/audit-record/audit-record.js.map +1 -0
  4. package/dist/models/v1/audit-record/index.d.ts +1 -0
  5. package/dist/models/v1/audit-record/index.js +3 -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 +3 -0
  12. package/dist/models/v1/audit-records-list/index.js.map +1 -0
  13. package/dist/models/v1/calendar-message/calendar-message.d.ts +14 -0
  14. package/dist/models/v1/calendar-message/calendar-message.js +3 -0
  15. package/dist/models/v1/calendar-message/calendar-message.js.map +1 -0
  16. package/dist/models/v1/calendar-message/index.d.ts +1 -0
  17. package/dist/models/v1/calendar-message/index.js +3 -0
  18. package/dist/models/v1/calendar-message/index.js.map +1 -0
  19. package/dist/models/v1/card-message/card-message.d.ts +7 -1
  20. package/dist/models/v1/card-message/index.d.ts +1 -1
  21. package/dist/models/v1/channel-identity/channel-identity.d.ts +1 -1
  22. package/dist/models/v1/channel-specific-message/channel-specific-message.d.ts +22 -1
  23. package/dist/models/v1/channel-specific-message/index.d.ts +1 -1
  24. package/dist/models/v1/choice/choice.d.ts +47 -1
  25. package/dist/models/v1/choice-item/choice-item.d.ts +1 -1
  26. package/dist/models/v1/choice-message/choice-message.d.ts +2 -2
  27. package/dist/models/v1/client-credentials/client-credentials.d.ts +6 -0
  28. package/dist/models/v1/consent-identity/consent-identity.d.ts +7 -0
  29. package/dist/models/v1/consent-identity/consent-identity.js +3 -0
  30. package/dist/models/v1/consent-identity/consent-identity.js.map +1 -0
  31. package/dist/models/v1/consent-identity/index.d.ts +1 -0
  32. package/dist/models/v1/consent-identity/index.js +3 -0
  33. package/dist/models/v1/consent-identity/index.js.map +1 -0
  34. package/dist/models/v1/contact-settings/contact-settings.d.ts +7 -0
  35. package/dist/models/v1/contact-settings/contact-settings.js +3 -0
  36. package/dist/models/v1/contact-settings/contact-settings.js.map +1 -0
  37. package/dist/models/v1/contact-settings/index.d.ts +1 -0
  38. package/dist/models/v1/contact-settings/index.js +3 -0
  39. package/dist/models/v1/contact-settings/index.js.map +1 -0
  40. package/dist/models/v1/conversation-channel/conversation-channel.d.ts +2 -2
  41. package/dist/models/v1/conversation-channel-credential/conversation-channel-credential.d.ts +3 -2
  42. package/dist/models/v1/conversation-message/conversation-message.d.ts +1 -1
  43. package/dist/models/v1/enums.d.ts +7 -1
  44. package/dist/models/v1/identity-conflict/identity-conflict.d.ts +8 -0
  45. package/dist/models/v1/identity-conflict/identity-conflict.js +3 -0
  46. package/dist/models/v1/identity-conflict/identity-conflict.js.map +1 -0
  47. package/dist/models/v1/identity-conflict/index.d.ts +1 -0
  48. package/dist/models/v1/identity-conflict/index.js +3 -0
  49. package/dist/models/v1/identity-conflict/index.js.map +1 -0
  50. package/dist/models/v1/index.d.ts +25 -3
  51. package/dist/models/v1/index.js +25 -3
  52. package/dist/models/v1/index.js.map +1 -1
  53. package/dist/models/v1/inject-message-request/inject-message-request.d.ts +1 -1
  54. package/dist/models/v1/kakaotalk-button/index.d.ts +1 -0
  55. package/dist/models/v1/kakaotalk-button/index.js +3 -0
  56. package/dist/models/v1/kakaotalk-button/index.js.map +1 -0
  57. package/dist/models/v1/kakaotalk-button/kakaotalk-button.d.ts +27 -0
  58. package/dist/models/v1/kakaotalk-button/kakaotalk-button.js +3 -0
  59. package/dist/models/v1/kakaotalk-button/kakaotalk-button.js.map +1 -0
  60. package/dist/models/v1/kakaotalk-carousel/index.d.ts +1 -0
  61. package/dist/models/v1/kakaotalk-carousel/index.js +3 -0
  62. package/dist/models/v1/kakaotalk-carousel/index.js.map +1 -0
  63. package/dist/models/v1/kakaotalk-carousel/kakaotalk-carousel.d.ts +38 -0
  64. package/dist/models/v1/kakaotalk-carousel/kakaotalk-carousel.js +3 -0
  65. package/dist/models/v1/kakaotalk-carousel/kakaotalk-carousel.js.map +1 -0
  66. package/dist/models/v1/kakaotalk-carousel-commerce/index.d.ts +1 -0
  67. package/dist/models/v1/kakaotalk-carousel-commerce/index.js +3 -0
  68. package/dist/models/v1/kakaotalk-carousel-commerce/index.js.map +1 -0
  69. package/dist/models/v1/kakaotalk-carousel-commerce/kakaotalk-carousel-commerce.d.ts +12 -0
  70. package/dist/models/v1/kakaotalk-carousel-commerce/kakaotalk-carousel-commerce.js +3 -0
  71. package/dist/models/v1/kakaotalk-carousel-commerce/kakaotalk-carousel-commerce.js.map +1 -0
  72. package/dist/models/v1/kakaotalk-commerce/index.d.ts +1 -0
  73. package/dist/models/v1/kakaotalk-commerce/index.js +3 -0
  74. package/dist/models/v1/kakaotalk-commerce/index.js.map +1 -0
  75. package/dist/models/v1/kakaotalk-commerce/kakaotalk-commerce.d.ts +7 -0
  76. package/dist/models/v1/kakaotalk-commerce/kakaotalk-commerce.js +3 -0
  77. package/dist/models/v1/kakaotalk-commerce/kakaotalk-commerce.js.map +1 -0
  78. package/dist/models/v1/kakaotalk-coupon/index.d.ts +1 -0
  79. package/dist/models/v1/kakaotalk-coupon/index.js +3 -0
  80. package/dist/models/v1/kakaotalk-coupon/index.js.map +1 -0
  81. package/dist/models/v1/kakaotalk-coupon/kakaotalk-coupon.d.ts +79 -0
  82. package/dist/models/v1/kakaotalk-coupon/kakaotalk-coupon.js +3 -0
  83. package/dist/models/v1/kakaotalk-coupon/kakaotalk-coupon.js.map +1 -0
  84. package/dist/models/v1/kakaotalk-image/index.d.ts +1 -0
  85. package/dist/models/v1/kakaotalk-image/index.js +3 -0
  86. package/dist/models/v1/kakaotalk-image/index.js.map +1 -0
  87. package/dist/models/v1/kakaotalk-image/kakaotalk-image.d.ts +6 -0
  88. package/dist/models/v1/kakaotalk-image/kakaotalk-image.js +3 -0
  89. package/dist/models/v1/kakaotalk-image/kakaotalk-image.js.map +1 -0
  90. package/dist/models/v1/kakaotalk-message/index.d.ts +1 -0
  91. package/dist/models/v1/kakaotalk-message/index.js +3 -0
  92. package/dist/models/v1/kakaotalk-message/index.js.map +1 -0
  93. package/dist/models/v1/kakaotalk-message/kakaotalk-message.d.ts +16 -0
  94. package/dist/models/v1/kakaotalk-message/kakaotalk-message.js +3 -0
  95. package/dist/models/v1/kakaotalk-message/kakaotalk-message.js.map +1 -0
  96. package/dist/models/v1/kakaotalk-pricing/index.d.ts +1 -0
  97. package/dist/models/v1/kakaotalk-pricing/index.js +3 -0
  98. package/dist/models/v1/kakaotalk-pricing/index.js.map +1 -0
  99. package/dist/models/v1/kakaotalk-pricing/kakao-talk-pricing.d.ts +33 -0
  100. package/dist/models/v1/kakaotalk-pricing/kakao-talk-pricing.js +3 -0
  101. package/dist/models/v1/kakaotalk-pricing/kakao-talk-pricing.js.map +1 -0
  102. package/dist/models/v1/line-notification-template/index.d.ts +1 -0
  103. package/dist/models/v1/line-notification-template/index.js +3 -0
  104. package/dist/models/v1/line-notification-template/index.js.map +1 -0
  105. package/dist/models/v1/line-notification-template/line-notification-template.d.ts +10 -0
  106. package/dist/models/v1/line-notification-template/line-notification-template.js +3 -0
  107. package/dist/models/v1/line-notification-template/line-notification-template.js.map +1 -0
  108. package/dist/models/v1/line-notification-template-body/index.d.ts +1 -0
  109. package/dist/models/v1/line-notification-template-body/index.js +3 -0
  110. package/dist/models/v1/line-notification-template-body/index.js.map +1 -0
  111. package/dist/models/v1/line-notification-template-body/line-notification-template-body.d.ts +13 -0
  112. package/dist/models/v1/line-notification-template-body/line-notification-template-body.js +3 -0
  113. package/dist/models/v1/line-notification-template-body/line-notification-template-body.js.map +1 -0
  114. package/dist/models/v1/line-notification-template-button/index.d.ts +1 -0
  115. package/dist/models/v1/line-notification-template-button/index.js +3 -0
  116. package/dist/models/v1/line-notification-template-button/index.js.map +1 -0
  117. package/dist/models/v1/line-notification-template-button/line-notification-template-button.d.ts +9 -0
  118. package/dist/models/v1/line-notification-template-button/line-notification-template-button.js +3 -0
  119. package/dist/models/v1/line-notification-template-button/line-notification-template-button.js.map +1 -0
  120. package/dist/models/v1/line-notification-template-item/index.d.ts +1 -0
  121. package/dist/models/v1/line-notification-template-item/index.js +3 -0
  122. package/dist/models/v1/line-notification-template-item/index.js.map +1 -0
  123. package/dist/models/v1/line-notification-template-item/line-notification-template-item.d.ts +9 -0
  124. package/dist/models/v1/line-notification-template-item/line-notification-template-item.js +3 -0
  125. package/dist/models/v1/line-notification-template-item/line-notification-template-item.js.map +1 -0
  126. package/dist/models/v1/list-last-messages-by-channel-identity-request/index.d.ts +1 -0
  127. package/dist/models/v1/list-last-messages-by-channel-identity-request/index.js +3 -0
  128. package/dist/models/v1/list-last-messages-by-channel-identity-request/index.js.map +1 -0
  129. package/dist/models/v1/list-last-messages-by-channel-identity-request/list-last-messages-by-channel-identity-request.d.ts +29 -0
  130. package/dist/models/v1/list-last-messages-by-channel-identity-request/list-last-messages-by-channel-identity-request.js +3 -0
  131. package/dist/models/v1/list-last-messages-by-channel-identity-request/list-last-messages-by-channel-identity-request.js.map +1 -0
  132. package/dist/models/v1/mod-callback-events/conversation-callback-event/conversation-callback-event.d.ts +2 -2
  133. package/dist/models/v1/project-settings/index.d.ts +1 -0
  134. package/dist/models/v1/project-settings/index.js +3 -0
  135. package/dist/models/v1/project-settings/index.js.map +1 -0
  136. package/dist/models/v1/project-settings/project-settings.d.ts +10 -0
  137. package/dist/models/v1/project-settings/project-settings.js +3 -0
  138. package/dist/models/v1/project-settings/project-settings.js.map +1 -0
  139. package/dist/models/v1/project-settings-request/index.d.ts +1 -0
  140. package/dist/models/v1/project-settings-request/index.js +3 -0
  141. package/dist/models/v1/project-settings-request/index.js.map +1 -0
  142. package/dist/models/v1/project-settings-request/project-settings-request.d.ts +10 -0
  143. package/dist/models/v1/project-settings-request/project-settings-request.js +3 -0
  144. package/dist/models/v1/project-settings-request/project-settings-request.js.map +1 -0
  145. package/dist/models/v1/requests/consents/consents-request-data.d.ts +17 -0
  146. package/dist/models/v1/requests/consents/consents-request-data.js +3 -0
  147. package/dist/models/v1/requests/consents/consents-request-data.js.map +1 -0
  148. package/dist/models/v1/requests/contact/contact-request-data.d.ts +6 -0
  149. package/dist/models/v1/requests/index.d.ts +2 -0
  150. package/dist/models/v1/requests/index.js +2 -0
  151. package/dist/models/v1/requests/index.js.map +1 -1
  152. package/dist/models/v1/requests/messages/messages-request-data.d.ts +8 -1
  153. package/dist/models/v1/requests/project-settings/project-settings-request-data.d.ts +13 -0
  154. package/dist/models/v1/requests/project-settings/project-settings-request-data.js +3 -0
  155. package/dist/models/v1/requests/project-settings/project-settings-request-data.js.map +1 -0
  156. package/dist/models/v1/send-message-request/send-message-request.d.ts +2 -2
  157. package/dist/models/v1/share-location-message/index.d.ts +1 -0
  158. package/dist/models/v1/share-location-message/index.js +3 -0
  159. package/dist/models/v1/share-location-message/index.js.map +1 -0
  160. package/dist/models/v1/share-location-message/share-location-message.d.ts +6 -0
  161. package/dist/models/v1/share-location-message/share-location-message.js +3 -0
  162. package/dist/models/v1/share-location-message/share-location-message.js.map +1 -0
  163. package/dist/models/v1/smart-conversation/smart-conversation.d.ts +1 -1
  164. package/dist/models/v1/whatsapp-payment-order-details/index.d.ts +1 -1
  165. package/dist/models/v1/whatsapp-payment-order-details/whatsapp-payment-order-details.d.ts +25 -6
  166. package/dist/rest/v1/app/app-api.d.ts +3 -8
  167. package/dist/rest/v1/app/app-api.js +3 -13
  168. package/dist/rest/v1/app/app-api.js.map +1 -1
  169. package/dist/rest/v1/callbacks/callbacks-webhook.d.ts +7 -0
  170. package/dist/rest/v1/callbacks/callbacks-webhook.js +10 -0
  171. package/dist/rest/v1/callbacks/callbacks-webhook.js.map +1 -1
  172. package/dist/rest/v1/capability/capability-api.d.ts +2 -7
  173. package/dist/rest/v1/capability/capability-api.js +2 -8
  174. package/dist/rest/v1/capability/capability-api.js.map +1 -1
  175. package/dist/rest/v1/consents/consents-api.d.ts +20 -0
  176. package/dist/rest/v1/consents/consents-api.jest.fixture.d.ts +13 -0
  177. package/dist/rest/v1/consents/consents-api.jest.fixture.js +17 -0
  178. package/dist/rest/v1/consents/consents-api.jest.fixture.js.map +1 -0
  179. package/dist/rest/v1/consents/consents-api.js +61 -0
  180. package/dist/rest/v1/consents/consents-api.js.map +1 -0
  181. package/dist/rest/v1/consents/index.d.ts +2 -0
  182. package/dist/rest/v1/consents/index.js +19 -0
  183. package/dist/rest/v1/consents/index.js.map +1 -0
  184. package/dist/rest/v1/contact/contact-api.d.ts +12 -9
  185. package/dist/rest/v1/contact/contact-api.jest.fixture.d.ts +5 -1
  186. package/dist/rest/v1/contact/contact-api.jest.fixture.js +4 -0
  187. package/dist/rest/v1/contact/contact-api.jest.fixture.js.map +1 -1
  188. package/dist/rest/v1/contact/contact-api.js +30 -15
  189. package/dist/rest/v1/contact/contact-api.js.map +1 -1
  190. package/dist/rest/v1/conversation/conversation-api.d.ts +4 -8
  191. package/dist/rest/v1/conversation/conversation-api.js +3 -17
  192. package/dist/rest/v1/conversation/conversation-api.js.map +1 -1
  193. package/dist/rest/v1/conversation-domain-api.d.ts +12 -14
  194. package/dist/rest/v1/conversation-domain-api.js +25 -69
  195. package/dist/rest/v1/conversation-domain-api.js.map +1 -1
  196. package/dist/rest/v1/conversation-service.d.ts +31 -2
  197. package/dist/rest/v1/conversation-service.js +126 -32
  198. package/dist/rest/v1/conversation-service.js.map +1 -1
  199. package/dist/rest/v1/events/events-api.d.ts +4 -8
  200. package/dist/rest/v1/events/events-api.js +3 -12
  201. package/dist/rest/v1/events/events-api.js.map +1 -1
  202. package/dist/rest/v1/index.d.ts +3 -0
  203. package/dist/rest/v1/index.js +3 -0
  204. package/dist/rest/v1/index.js.map +1 -1
  205. package/dist/rest/v1/messages/messages-api.d.ts +12 -10
  206. package/dist/rest/v1/messages/messages-api.jest.fixture.d.ts +7 -1
  207. package/dist/rest/v1/messages/messages-api.jest.fixture.js +4 -0
  208. package/dist/rest/v1/messages/messages-api.jest.fixture.js.map +1 -1
  209. package/dist/rest/v1/messages/messages-api.js +32 -15
  210. package/dist/rest/v1/messages/messages-api.js.map +1 -1
  211. package/dist/rest/v1/project-settings/index.d.ts +2 -0
  212. package/dist/rest/v1/project-settings/index.js +19 -0
  213. package/dist/rest/v1/project-settings/index.js.map +1 -0
  214. package/dist/rest/v1/project-settings/project-settings-api.d.ts +30 -0
  215. package/dist/rest/v1/project-settings/project-settings-api.jest.fixture.d.ts +20 -0
  216. package/dist/rest/v1/project-settings/project-settings-api.jest.fixture.js +25 -0
  217. package/dist/rest/v1/project-settings/project-settings-api.jest.fixture.js.map +1 -0
  218. package/dist/rest/v1/project-settings/project-settings-api.js +101 -0
  219. package/dist/rest/v1/project-settings/project-settings-api.js.map +1 -0
  220. package/dist/rest/v1/templates-v1/templates-v1-api.d.ts +8 -8
  221. package/dist/rest/v1/templates-v1/templates-v1-api.js +8 -13
  222. package/dist/rest/v1/templates-v1/templates-v1-api.js.map +1 -1
  223. package/dist/rest/v1/templates-v2/templates-v2-api.d.ts +3 -8
  224. package/dist/rest/v1/templates-v2/templates-v2-api.js +3 -14
  225. package/dist/rest/v1/templates-v2/templates-v2-api.js.map +1 -1
  226. package/dist/rest/v1/transcoding/transcoding-api.d.ts +2 -7
  227. package/dist/rest/v1/transcoding/transcoding-api.js +2 -8
  228. package/dist/rest/v1/transcoding/transcoding-api.js.map +1 -1
  229. package/dist/rest/v1/webhooks/webhooks-api.d.ts +2 -7
  230. package/dist/rest/v1/webhooks/webhooks-api.js +2 -12
  231. package/dist/rest/v1/webhooks/webhooks-api.js.map +1 -1
  232. package/package.json +2 -2
@@ -1,13 +1,13 @@
1
1
  import { WebhookTrigger } from '../../webhook-trigger';
2
2
  export interface ConversationCallbackEvent {
3
3
  /** Id of the subscribed app. */
4
- app_id?: string;
4
+ app_id: string;
5
5
  /** Timestamp marking when the channel callback was accepted/received by the Conversation API. */
6
6
  accepted_time?: Date;
7
7
  /** Timestamp of the event as provided by the underlying channels. */
8
8
  event_time?: Date;
9
9
  /** The project ID of the app which has subscribed for the callback. */
10
- project_id?: string;
10
+ project_id: string;
11
11
  /** Context-dependent metadata. Refer to specific callback's documentation for exact information provided. */
12
12
  message_metadata?: string;
13
13
  /** The value provided in field correlation_id of a send message request. */
@@ -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":""}
@@ -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":""}
@@ -32,6 +32,12 @@ export interface ListContactsRequestData {
32
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;
@@ -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. */
@@ -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
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
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":""}
@@ -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 will be associated with the conversation in `CONVERSATION` mode and with the specified recipient identities in `DISPATCH` mode. This metadata will be propagated on MO callbacks associated with the respective conversation or user identity. Up to 2048 characters long. Note that the MO callback will always use the last metadata available. Important notes: - If you send a message with the `conversation_metadata` field populated, and then send another message without populating the `conversation_metadata` field, the original metadata will continue be propagated on the related MO callbacks. - If you send a message with the `conversation_metadata` field populated, and then send another message with a different value for `conversation_metadata` in the same conversation, the latest metadata value overwrites the existing one. So, future MO callbacks will include the new metadata. - The `conversation_metadata` only accepts json objects. Currently only returned in the `message_metadata` field of an [Inbound Message](https://developers.sinch.com/docs/conversation/callbacks/#inbound-message) callback. */
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;
@@ -32,7 +32,7 @@ export interface SendMessageRequestBase<T extends Recipient> {
32
32
  ttl?: string | number;
33
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 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. */
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;
@@ -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
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
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 +1 @@
1
- export type { WhatsAppPaymentOrderDetails, OrderDetailsPayment, OrderDetailsPaymentOrder, OrderDetailsPaymentOrderItems, OrderDetailsPaymentSettings, OrderDetailsPaymentSettingsDynamicPix, PaymentOrderDetailsChannelSpecificMessage, PaymentOrderDetailsChannelSpecificMessagePayment, PaymentOrderDetailsChannelSpecificMessagePaymentOrder, PaymentOrderDetailsChannelSpecificMessagePaymentOrderItems, PaymentOrderDetailsChannelSpecificMessagePaymentPaymentSettings, PaymentOrderDetailsChannelSpecificMessagePaymentPaymentSettingsDynamicPix, } from './whatsapp-payment-order-details';
1
+ export type { WhatsAppPaymentOrderDetails, OrderDetailsPayment, OrderDetailsPaymentOrder, OrderDetailsPaymentOrderItems, OrderDetailsPaymentSettings, OrderDetailsPaymentButton, PaymentOrderDetailsChannelSpecificMessage, PaymentOrderDetailsChannelSpecificMessagePayment, PaymentOrderDetailsChannelSpecificMessagePaymentOrder, PaymentOrderDetailsChannelSpecificMessagePaymentOrderItems, PaymentOrderDetailsChannelSpecificMessagePaymentPaymentSettings, PaymentOrderDetailsChannelSpecificMessagePaymentPaymentSettingsDynamicPix, DynamicPix, PaymentLink, Boleto, } from './whatsapp-payment-order-details';
@@ -20,8 +20,11 @@ export interface OrderDetailsPayment {
20
20
  reference_id: string;
21
21
  /** The type of good associated with this order. */
22
22
  type_of_goods: 'digital-goods' | 'physical-goods' | string;
23
- /** @see OrderDetailsPaymentSettings */
23
+ /** @deprecated Use `payment_buttons` instead
24
+ * @see OrderDetailsPaymentSettings */
24
25
  payment_settings?: OrderDetailsPaymentSettings;
26
+ /** Array of payment buttons (1 to 2 items). */
27
+ payment_buttons?: OrderDetailsPaymentButton[];
25
28
  /** Integer representing the total amount of the transaction. */
26
29
  total_amount_value: number;
27
30
  /** @see OrderDetailsPaymentOrder */
@@ -73,20 +76,24 @@ export interface OrderDetailsPaymentOrderItems {
73
76
  sale_amount_value?: number;
74
77
  }
75
78
  /** @deprecated */
76
- export type PaymentOrderDetailsChannelSpecificMessagePaymentPaymentSettings = OrderDetailsPaymentSettings;
79
+ export type PaymentOrderDetailsChannelSpecificMessagePaymentPaymentSettings = OrderDetailsPaymentButton;
77
80
  /**
78
81
  * The payment settings.
82
+ * @deprecated
79
83
  */
80
84
  export interface OrderDetailsPaymentSettings {
81
- /** @see OrderDetailsPaymentSettingsDynamicPix */
82
- dynamic_pix: OrderDetailsPaymentSettingsDynamicPix;
85
+ /** @see DynamicPix */
86
+ dynamic_pix: DynamicPix;
83
87
  }
88
+ export type OrderDetailsPaymentButton = DynamicPix | PaymentLink | Boleto;
84
89
  /** @deprecated */
85
- export type PaymentOrderDetailsChannelSpecificMessagePaymentPaymentSettingsDynamicPix = OrderDetailsPaymentSettingsDynamicPix;
90
+ export type PaymentOrderDetailsChannelSpecificMessagePaymentPaymentSettingsDynamicPix = DynamicPix;
86
91
  /**
87
92
  * The dynamic Pix payment settings.
88
93
  */
89
- export interface OrderDetailsPaymentSettingsDynamicPix {
94
+ export interface DynamicPix {
95
+ /** The dynamic Pix code button identifier */
96
+ type: 'pix_dynamic_code';
90
97
  /** The dynamic Pix code to be used by the buyer to pay. */
91
98
  code: string;
92
99
  /** Account holder name. */
@@ -96,3 +103,15 @@ export interface OrderDetailsPaymentSettingsDynamicPix {
96
103
  /** Pix key type. */
97
104
  key_type: 'CPF' | 'CNPJ' | 'EMAIL' | 'PHONE' | 'EVP' | string;
98
105
  }
106
+ export interface PaymentLink {
107
+ /** The payment link button identifier */
108
+ type: 'payment_link';
109
+ /** The payment link to be used by the buyer to pay. */
110
+ uri: string;
111
+ }
112
+ export interface Boleto {
113
+ /** The Boleto button identifier */
114
+ type: 'boleto';
115
+ /** The Boleto digitable line which will be copied to the clipboard when the user taps the Boleto button. */
116
+ digitable_line: string;
117
+ }
@@ -1,13 +1,8 @@
1
- import { SinchClientParameters } from '@sinch/sdk-client';
2
1
  import { AppResponse, CreateAppRequestData, DeleteAppRequestData, GetAppRequestData, ListAppsRequestData, ListAppsResponse, UpdateAppRequestData } from '../../../models';
3
2
  import { ConversationDomainApi } from '../conversation-domain-api';
3
+ import { LazyConversationApiClient } from '../conversation-service';
4
4
  export declare class AppApi extends ConversationDomainApi {
5
- /**
6
- * Initialize your interface
7
- *
8
- * @param {SinchClientParameters} sinchClientParameters - The parameters used to initialize the API Client.
9
- */
10
- constructor(sinchClientParameters: SinchClientParameters);
5
+ constructor(lazyApiClient: LazyConversationApiClient);
11
6
  /**
12
7
  * Create an app
13
8
  * You can create a new Conversation API app using the API. You can create an app for one or more channels at once. The ID of the app is generated at creation and will be returned in the response.
@@ -31,7 +26,7 @@ export declare class AppApi extends ConversationDomainApi {
31
26
  * Get a list of all apps in the specified project.
32
27
  * @param { ListAppsRequestData } data - The data to provide to the API call.
33
28
  */
34
- list(data: ListAppsRequestData): Promise<ListAppsResponse>;
29
+ list(data?: ListAppsRequestData): Promise<ListAppsResponse>;
35
30
  /**
36
31
  * Update an app
37
32
  * 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.
@@ -3,13 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AppApi = void 0;
4
4
  const conversation_domain_api_1 = require("../conversation-domain-api");
5
5
  class AppApi extends conversation_domain_api_1.ConversationDomainApi {
6
- /**
7
- * Initialize your interface
8
- *
9
- * @param {SinchClientParameters} sinchClientParameters - The parameters used to initialize the API Client.
10
- */
11
- constructor(sinchClientParameters) {
12
- super(sinchClientParameters, 'AppApi');
6
+ constructor(lazyApiClient) {
7
+ super(lazyApiClient, 'AppApi');
13
8
  }
14
9
  /**
15
10
  * Create an app
@@ -17,7 +12,6 @@ class AppApi extends conversation_domain_api_1.ConversationDomainApi {
17
12
  * @param { CreateAppRequestData } data - The data to provide to the API call.
18
13
  */
19
14
  async create(data) {
20
- this.client = this.getSinchClient();
21
15
  const getParams = this.client.extractQueryParams(data, []);
22
16
  const headers = {
23
17
  'Content-Type': 'application/json',
@@ -40,7 +34,6 @@ class AppApi extends conversation_domain_api_1.ConversationDomainApi {
40
34
  * @param { DeleteAppRequestData } data - The data to provide to the API call.
41
35
  */
42
36
  async delete(data) {
43
- this.client = this.getSinchClient();
44
37
  const getParams = this.client.extractQueryParams(data, []);
45
38
  const headers = {
46
39
  'Content-Type': 'application/json',
@@ -63,7 +56,6 @@ class AppApi extends conversation_domain_api_1.ConversationDomainApi {
63
56
  * @param { GetAppRequestData } data - The data to provide to the API call.
64
57
  */
65
58
  async get(data) {
66
- this.client = this.getSinchClient();
67
59
  const getParams = this.client.extractQueryParams(data, []);
68
60
  const headers = {
69
61
  'Content-Type': 'application/json',
@@ -86,8 +78,7 @@ class AppApi extends conversation_domain_api_1.ConversationDomainApi {
86
78
  * @param { ListAppsRequestData } data - The data to provide to the API call.
87
79
  */
88
80
  async list(data) {
89
- this.client = this.getSinchClient();
90
- const getParams = this.client.extractQueryParams(data, []);
81
+ const getParams = this.client.extractQueryParams(data ?? {}, []);
91
82
  const headers = {
92
83
  'Content-Type': 'application/json',
93
84
  'Accept': 'application/json',
@@ -109,7 +100,6 @@ class AppApi extends conversation_domain_api_1.ConversationDomainApi {
109
100
  * @param { UpdateAppRequestData } data - The data to provide to the API call.
110
101
  */
111
102
  async update(data) {
112
- this.client = this.getSinchClient();
113
103
  const getParams = this.client.extractQueryParams(data, ['update_mask']);
114
104
  const headers = {
115
105
  'Content-Type': 'application/json',
@@ -1 +1 @@
1
- {"version":3,"file":"app-api.js","sourceRoot":"","sources":["../../../../src/rest/v1/app/app-api.ts"],"names":[],"mappings":";;;AAaA,wEAAmE;AAEnE,MAAa,MAAO,SAAQ,+CAAqB;IAE/C;;;;OAIG;IACH,YAAY,qBAA4C;QACtD,KAAK,CAAC,qBAAqB,EAAE,QAAQ,CAAC,CAAC;IACzC,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,MAAM,CAAC,IAA0B;QAC5C,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACpC,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAuB,IAAI,EAAE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0C;YACrD,cAAc,EAAE,kBAAkB;YAClC,QAAQ,EAAE,kBAAkB;SAC7B,CAAC;QAEF,MAAM,IAAI,GAAgB,IAAI,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAC7G,MAAM,WAAW,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,gBAAgB,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS,SAAS,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;QAE5I,MAAM,cAAc,GAChB,MAAM,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,IAAI,SAAS,CAAC,CAAC;QAClG,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,CAAC,QAAQ,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;QAExF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAc;YAC1C,GAAG;YACH,cAAc;YACd,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,WAAW,EAAE,WAAW;SACzB,CAAC,CAAC;IACL,CAAC;CAEF;AA1ID,wBA0IC"}
@@ -45,5 +45,12 @@ export declare class ConversationCallbackWebhooks implements CallbackProcessor<C
45
45
  * @throws {Error} If the eventBody is not valid or cannot be parsed.
46
46
  */
47
47
  parseEvent(eventBody: any): ConversationWebhookEventParsed;
48
+ /**
49
+ * Static reviver for a Conversation Event.
50
+ * This method ensures the object can be treated as a Conversation Event.
51
+ * @param {any} eventBody - The event body containing the Conversation event notification.
52
+ * @return {ConversationWebhookEventParsed} - The parsed Conversation event object
53
+ */
54
+ static parseEvent(eventBody: any): ConversationWebhookEventParsed;
48
55
  }
49
56
  export {};
@@ -181,6 +181,16 @@ class ConversationCallbackWebhooks {
181
181
  }
182
182
  }
183
183
  ;
184
+ /**
185
+ * Static reviver for a Conversation Event.
186
+ * This method ensures the object can be treated as a Conversation Event.
187
+ * @param {any} eventBody - The event body containing the Conversation event notification.
188
+ * @return {ConversationWebhookEventParsed} - The parsed Conversation event object
189
+ */
190
+ static parseEvent(eventBody) {
191
+ const instance = new ConversationCallbackWebhooks('');
192
+ return instance.parseEvent(eventBody);
193
+ }
184
194
  }
185
195
  exports.ConversationCallbackWebhooks = ConversationCallbackWebhooks;
186
196
  //# sourceMappingURL=callbacks-webhook.js.map
@@ -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,EAAE,OAAgB;QAEhC,OAAO,IAAA,qCAAwB,EAC7B,IAAI,CAAC,SAAS,EACd,OAAO,EACP,IAAI,CACL,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACI,UAAU,CAAC,SAAc;QAC9B,IAAI,OAAO,SAAS,KAAK,QAAQ,EAAE,CAAC;YAClC,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QACpC,CAAC;QACD,IAAI,SAAS,IAAI,SAAS,EAAE,CAAC;YAC3B,OAAO;gBACL,GAAG,SAAS;gBACZ,OAAO,EAAE,iBAAiB;aACJ,CAAC;QAC3B,CAAC;aAAM,IAAI,mBAAmB,IAAI,SAAS,EAAE,CAAC;YAC5C,OAAO;gBACL,GAAG,SAAS;gBACZ,OAAO,EAAE,8CAA8C;aACP,CAAC;QACrD,CAAC;aAAM,IAAI,6BAA6B,IAAI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,SAAS;gBACZ,OAAO,EAAE,YAAY;aACH,CAAC;QACvB,CAAC;aAAM,IAAI,qBAAqB,IAAI,SAAS,EAAE,CAAC;YAC9C,OAAO;gBACL,GAAG,SAAS;gBACZ,OAAO,EAAE,QAAQ;aACJ,CAAC;QAClB,CAAC;aAAM,IAAI,sBAAsB,IAAI,SAAS,EAAE,CAAC;YAC/C,OAAO;gBACL,GAAG,SAAS;gBACZ,OAAO,EAAE,SAAS;aACJ,CAAC;QACnB,CAAC;aAAM,IAAI,4BAA4B,IAAI,SAAS,EAAE,CAAC;YACrD,OAAO;gBACL,GAAG,SAAS;gBACZ,OAAO,EAAE,eAAe;aACT,CAAC;QACpB,CAAC;aAAM,IAAI,sBAAsB,IAAI,SAAS,EAAE,CAAC;YAC/C,OAAO;gBACL,GAAG,SAAS;gBACZ,OAAO,EAAE,aAAa;aACK,CAAC;QAChC,CAAC;aAAM,IAAI,iCAAiC,IAAI,SAAS,EAAE,CAAC;YAC1D,OAAO;gBACL,GAAG,SAAS;gBACZ,OAAO,EAAE,qBAAqB;aACJ,CAAC;QAC/B,CAAC;aAAM,IAAI,qBAAqB,IAAI,SAAS,EAAE,CAAC,CAAC,iDAAiD;YAChG,OAAO;gBACL,GAAG,SAAS;gBACZ,OAAO,EAAE,qBAAqB;aACJ,CAAC;QAC/B,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;QACzD,CAAC;IACH,CAAC;IAAA,CAAC;IAEF;;;;;OAKG;IACI,MAAM,CAAC,UAAU,CAAC,SAAa;QACpC,MAAM,QAAQ,GAAG,IAAI,4BAA4B,CAAC,EAAE,CAAC,CAAC;QACtD,OAAO,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACxC,CAAC;CACF;AAnLD,oEAmLC"}
@@ -1,13 +1,8 @@
1
- import { SinchClientParameters } from '@sinch/sdk-client';
2
1
  import { LookupCapabilityRequestData, LookupCapabilityResponse, Recipient } from '../../../models';
3
2
  import { ConversationDomainApi } from '../conversation-domain-api';
3
+ import { LazyConversationApiClient } from '../conversation-service';
4
4
  export declare class CapabilityApi extends ConversationDomainApi {
5
- /**
6
- * Initialize your interface
7
- *
8
- * @param {SinchClientParameters} sinchClientParameters - The parameters used to initialize the API Client.
9
- */
10
- constructor(sinchClientParameters: SinchClientParameters);
5
+ constructor(lazyApiClient: LazyConversationApiClient);
11
6
  /**
12
7
  * Capability lookup
13
8
  * This method is asynchronous - it immediately returns the requested Capability registration. Capability check is then delivered as a callback to registered webhooks with trigger CAPABILITY for every reachable channel.
@@ -3,13 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CapabilityApi = void 0;
4
4
  const conversation_domain_api_1 = require("../conversation-domain-api");
5
5
  class CapabilityApi extends conversation_domain_api_1.ConversationDomainApi {
6
- /**
7
- * Initialize your interface
8
- *
9
- * @param {SinchClientParameters} sinchClientParameters - The parameters used to initialize the API Client.
10
- */
11
- constructor(sinchClientParameters) {
12
- super(sinchClientParameters, 'CapabilityApi');
6
+ constructor(lazyApiClient) {
7
+ super(lazyApiClient, 'CapabilityApi');
13
8
  }
14
9
  /**
15
10
  * Capability lookup
@@ -17,7 +12,6 @@ class CapabilityApi extends conversation_domain_api_1.ConversationDomainApi {
17
12
  * @param { LookupCapabilityRequestData<Recipient> } data - The data to provide to the API call.
18
13
  */
19
14
  async lookup(data) {
20
- this.client = this.getSinchClient();
21
15
  const getParams = this.client.extractQueryParams(data, []);
22
16
  const headers = {
23
17
  'Content-Type': 'application/json',
@@ -1 +1 @@
1
- {"version":3,"file":"capability-api.js","sourceRoot":"","sources":["../../../../src/rest/v1/capability/capability-api.ts"],"names":[],"mappings":";;;AASA,wEAAmE;AAEnE,MAAa,aAAc,SAAQ,+CAAqB;IAEtD;;;;OAIG;IACH,YAAY,qBAA4C;QACtD,KAAK,CAAC,qBAAqB,EAAE,eAAe,CAAC,CAAC;IAChD,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC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IAED;;;;OAIG;IACI,KAAK,CAAC,MAAM,CAAC,IAA4C;QAC9D,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAC9C,IAAI,EAAE,EAAa,CAAC,CAAC;QACvB,MAAM,OAAO,GAA0C;YACrD,cAAc,EAAE,kBAAkB;YAClC,QAAQ,EAAE,kBAAkB;SAC7B,CAAC;QAEF,MAAM,IAAI,GAAgB,IAAI,CAAC,6BAA6B,CAAC;YAC3D,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;YACrD,CAAC,CAAC,IAAI,CAAC;QACT,MAAM,WAAW,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,gBAAgB,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS,mBAAmB,CAAC;QAEtI,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,IAAI,SAAS,CAAC,CAAC;QACpH,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,CAAC,QAAQ,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;QAExF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAA2B;YACvD,GAAG;YACH,cAAc;YACd,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,WAAW,EAAE,iBAAiB;SAC/B,CAAC,CAAC;IACL,CAAC;CAEF;AAnCD,sCAmCC"}
@@ -0,0 +1,20 @@
1
+ import { ApiListPromise } from '@sinch/sdk-client';
2
+ import { ListAuditRecordsRequestData, ListIdentitiesRequestData, AuditRecordsList, ConsentIdentity } from '../../../models';
3
+ import { ConversationDomainApi } from '../conversation-domain-api';
4
+ import { LazyConversationApiClient } from '../conversation-service';
5
+ export declare class ConsentsApi extends ConversationDomainApi {
6
+ constructor(lazyApiClient: LazyConversationApiClient);
7
+ /**
8
+ * Get identities from consent list
9
+ * Get all identities contained within a consent list for a given project id, app id, and list type.
10
+ * @param { ListIdentitiesRequestData } data - The data to provide to the API call.
11
+ * @return {ApiListPromise<ConsentIdentity>}
12
+ */
13
+ listIdentities(data: ListIdentitiesRequestData): ApiListPromise<ConsentIdentity>;
14
+ /**
15
+ * Get audit records from consent lists
16
+ * Get all audit records associated with the given identity from the consent lists within the specified project and app.
17
+ * @param { ListAuditRecordsRequestData } data - The data to provide to the API call.
18
+ */
19
+ listAuditRecords(data: ListAuditRecordsRequestData): Promise<AuditRecordsList>;
20
+ }
@@ -0,0 +1,13 @@
1
+ import { ConsentsApi } from './consents-api';
2
+ import { ListAuditRecordsRequestData, ListIdentitiesRequestData, AuditRecordsList, ConsentIdentity } from '../../../models';
3
+ import { ApiListPromise } from '@sinch/sdk-client';
4
+ export declare class ConsentsApiFixture implements Partial<Readonly<ConsentsApi>> {
5
+ /**
6
+ * Fixture associated to function listIdentities
7
+ */
8
+ listIdentities: jest.Mock<ApiListPromise<ConsentIdentity>, [ListIdentitiesRequestData]>;
9
+ /**
10
+ * Fixture associated to function listAuditRecords
11
+ */
12
+ listAuditRecords: jest.Mock<Promise<AuditRecordsList>, [ListAuditRecordsRequestData]>;
13
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConsentsApiFixture = void 0;
4
+ class ConsentsApiFixture {
5
+ constructor() {
6
+ /**
7
+ * Fixture associated to function listIdentities
8
+ */
9
+ this.listIdentities = jest.fn();
10
+ /**
11
+ * Fixture associated to function listAuditRecords
12
+ */
13
+ this.listAuditRecords = jest.fn();
14
+ }
15
+ }
16
+ exports.ConsentsApiFixture = ConsentsApiFixture;
17
+ //# sourceMappingURL=consents-api.jest.fixture.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consents-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v1/consents/consents-api.jest.fixture.ts"],"names":[],"mappings":";;;AASA,MAAa,kBAAkB;IAA/B;QAEE;;WAEG;QACI,mBAAc,GAA4E,IAAI,CAAC,EAAE,EAAE,CAAC;QAC3G;;WAEG;QACI,qBAAgB,GAAwE,IAAI,CAAC,EAAE,EAAE,CAAC;IAC3G,CAAC;CAAA;AAVD,gDAUC"}