@sinch/conversation 0.0.3 → 0.0.5

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 (191) hide show
  1. package/README.md +7 -9
  2. package/dist/index.d.ts +1 -1
  3. package/dist/index.js +14 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/models/v1/app-message/app-message.d.ts +18 -10
  6. package/dist/models/v1/app-message/index.d.ts +1 -1
  7. package/dist/models/v1/channel-specific-contact-message/channel-specific-contact-message.d.ts +21 -0
  8. package/dist/models/v1/channel-specific-contact-message/channel-specific-contact-message.js +3 -0
  9. package/dist/models/v1/channel-specific-contact-message/channel-specific-contact-message.js.map +1 -0
  10. package/dist/models/v1/channel-specific-contact-message/index.d.ts +1 -0
  11. package/dist/models/v1/channel-specific-contact-message/index.js.map +1 -0
  12. package/dist/models/v1/channel-specific-message/channel-specific-message.d.ts +11 -0
  13. package/dist/models/v1/channel-specific-message/channel-specific-message.js +3 -0
  14. package/dist/models/v1/channel-specific-message/channel-specific-message.js.map +1 -0
  15. package/dist/models/v1/channel-specific-message/index.d.ts +1 -0
  16. package/dist/{rest/v1/enums.js → models/v1/channel-specific-message/index.js} +1 -1
  17. package/dist/models/v1/channel-specific-message/index.js.map +1 -0
  18. package/dist/models/v1/choice-item/choice-item.d.ts +1 -0
  19. package/dist/models/v1/contact-info-message/contact-info-message.d.ts +1 -1
  20. package/dist/models/v1/contact-message/contact-message.d.ts +37 -1
  21. package/dist/models/v1/delivery-report-based-fallback/delivery-report-based-fallback.d.ts +8 -2
  22. package/dist/models/v1/enums.d.ts +5 -1
  23. package/dist/models/v1/flow-channel-specific-message/flow-channel-specific-message.d.ts +37 -0
  24. package/dist/models/v1/flow-channel-specific-message/flow-channel-specific-message.js +3 -0
  25. package/dist/models/v1/flow-channel-specific-message/flow-channel-specific-message.js.map +1 -0
  26. package/dist/models/v1/flow-channel-specific-message/index.d.ts +1 -0
  27. package/dist/models/v1/{app-message-message/app-message-message.js → flow-channel-specific-message/index.js} +1 -1
  28. package/dist/models/v1/flow-channel-specific-message/index.js.map +1 -0
  29. package/dist/models/v1/helper.d.ts +1 -1
  30. package/dist/models/v1/index.d.ts +13 -1
  31. package/dist/models/v1/index.js +13 -1
  32. package/dist/models/v1/index.js.map +1 -1
  33. package/dist/models/v1/list-section/list-section.d.ts +1 -1
  34. package/dist/models/v1/message-retry-settings/message-retry-settings.d.ts +1 -1
  35. package/dist/models/v1/product/index.d.ts +1 -1
  36. package/dist/models/v1/product-response-message/index.d.ts +1 -0
  37. package/dist/models/v1/product-response-message/index.js +3 -0
  38. package/dist/models/v1/product-response-message/index.js.map +1 -0
  39. package/dist/models/v1/product-response-message/product-response-message.d.ts +12 -0
  40. package/dist/models/v1/product-response-message/product-response-message.js +3 -0
  41. package/dist/models/v1/product-response-message/product-response-message.js.map +1 -0
  42. package/dist/models/v1/requests/app/app-request-data.d.ts +24 -0
  43. package/dist/models/v1/requests/app/app-request-data.js +3 -0
  44. package/dist/models/v1/requests/app/app-request-data.js.map +1 -0
  45. package/dist/models/v1/requests/capability/capability-request-data.d.ts +6 -0
  46. package/dist/models/v1/requests/capability/capability-request-data.js +3 -0
  47. package/dist/models/v1/requests/capability/capability-request-data.js.map +1 -0
  48. package/dist/models/v1/requests/contact/contact-request-data.d.ts +48 -0
  49. package/dist/models/v1/requests/contact/contact-request-data.js +3 -0
  50. package/dist/models/v1/requests/contact/contact-request-data.js.map +1 -0
  51. package/dist/models/v1/requests/conversation/conversation-request-data.d.ts +71 -0
  52. package/dist/models/v1/requests/conversation/conversation-request-data.js +3 -0
  53. package/dist/models/v1/requests/conversation/conversation-request-data.js.map +1 -0
  54. package/dist/models/v1/requests/events/events-request-data.d.ts +49 -0
  55. package/dist/models/v1/requests/events/events-request-data.js +3 -0
  56. package/dist/models/v1/requests/events/events-request-data.js.map +1 -0
  57. package/dist/models/v1/requests/index.d.ts +10 -0
  58. package/dist/models/v1/requests/index.js +27 -0
  59. package/dist/models/v1/requests/index.js.map +1 -0
  60. package/dist/models/v1/requests/messages/messages-request-data.d.ts +91 -0
  61. package/dist/models/v1/requests/messages/messages-request-data.js +3 -0
  62. package/dist/models/v1/requests/messages/messages-request-data.js.map +1 -0
  63. package/dist/models/v1/requests/templates-v1/templates-v1-request-data.d.ts +23 -0
  64. package/dist/models/v1/requests/templates-v1/templates-v1-request-data.js +3 -0
  65. package/dist/models/v1/requests/templates-v1/templates-v1-request-data.js.map +1 -0
  66. package/dist/models/v1/requests/templates-v2/templates-v2-request-data.d.ts +29 -0
  67. package/dist/models/v1/requests/templates-v2/templates-v2-request-data.js +3 -0
  68. package/dist/models/v1/requests/templates-v2/templates-v2-request-data.js.map +1 -0
  69. package/dist/models/v1/requests/transcoding/transcoding-request-data.d.ts +5 -0
  70. package/dist/models/v1/requests/transcoding/transcoding-request-data.js +3 -0
  71. package/dist/models/v1/requests/transcoding/transcoding-request-data.js.map +1 -0
  72. package/dist/models/v1/requests/webhooks/webhooks-request-data.d.ts +25 -0
  73. package/dist/models/v1/requests/webhooks/webhooks-request-data.js +3 -0
  74. package/dist/models/v1/requests/webhooks/webhooks-request-data.js.map +1 -0
  75. package/dist/models/v1/send-message-request/send-message-request.d.ts +28 -33
  76. package/dist/models/v1/transcode-message-request/transcode-message-request.d.ts +3 -3
  77. package/dist/models/v1/whatsapp-interactive-body/index.d.ts +1 -0
  78. package/dist/models/v1/whatsapp-interactive-body/index.js +3 -0
  79. package/dist/models/v1/whatsapp-interactive-body/index.js.map +1 -0
  80. package/dist/models/v1/whatsapp-interactive-body/whatsapp-interactive-body.d.ts +7 -0
  81. package/dist/models/v1/whatsapp-interactive-body/whatsapp-interactive-body.js +3 -0
  82. package/dist/models/v1/whatsapp-interactive-body/whatsapp-interactive-body.js.map +1 -0
  83. package/dist/models/v1/whatsapp-interactive-document-header/index.d.ts +1 -0
  84. package/dist/models/v1/whatsapp-interactive-document-header/index.js +3 -0
  85. package/dist/models/v1/whatsapp-interactive-document-header/index.js.map +1 -0
  86. package/dist/models/v1/whatsapp-interactive-document-header/whatsapp-interactive-document-header.d.ts +10 -0
  87. package/dist/models/v1/whatsapp-interactive-document-header/whatsapp-interactive-document-header.js +3 -0
  88. package/dist/models/v1/whatsapp-interactive-document-header/whatsapp-interactive-document-header.js.map +1 -0
  89. package/dist/models/v1/whatsapp-interactive-footer/index.d.ts +1 -0
  90. package/dist/models/v1/whatsapp-interactive-footer/index.js +3 -0
  91. package/dist/models/v1/whatsapp-interactive-footer/index.js.map +1 -0
  92. package/dist/models/v1/whatsapp-interactive-footer/whatsapp-interactive-footer.d.ts +7 -0
  93. package/dist/models/v1/whatsapp-interactive-footer/whatsapp-interactive-footer.js +3 -0
  94. package/dist/models/v1/whatsapp-interactive-footer/whatsapp-interactive-footer.js.map +1 -0
  95. package/dist/models/v1/whatsapp-interactive-header-media/index.d.ts +1 -0
  96. package/dist/models/v1/whatsapp-interactive-header-media/index.js +3 -0
  97. package/dist/models/v1/whatsapp-interactive-header-media/index.js.map +1 -0
  98. package/dist/models/v1/whatsapp-interactive-header-media/whatsapp-interactive-header-media.d.ts +7 -0
  99. package/dist/models/v1/whatsapp-interactive-header-media/whatsapp-interactive-header-media.js +3 -0
  100. package/dist/models/v1/whatsapp-interactive-header-media/whatsapp-interactive-header-media.js.map +1 -0
  101. package/dist/models/v1/whatsapp-interactive-image-header/index.d.ts +1 -0
  102. package/dist/models/v1/whatsapp-interactive-image-header/index.js +3 -0
  103. package/dist/models/v1/whatsapp-interactive-image-header/index.js.map +1 -0
  104. package/dist/models/v1/whatsapp-interactive-image-header/whatsapp-interactive-image-header.d.ts +10 -0
  105. package/dist/models/v1/whatsapp-interactive-image-header/whatsapp-interactive-image-header.js +3 -0
  106. package/dist/models/v1/whatsapp-interactive-image-header/whatsapp-interactive-image-header.js.map +1 -0
  107. package/dist/models/v1/whatsapp-interactive-nfm-reply/index.d.ts +1 -0
  108. package/dist/models/v1/whatsapp-interactive-nfm-reply/index.js +3 -0
  109. package/dist/models/v1/whatsapp-interactive-nfm-reply/index.js.map +1 -0
  110. package/dist/models/v1/whatsapp-interactive-nfm-reply/whatsapp-interactive-nfm-reply.d.ts +11 -0
  111. package/dist/models/v1/whatsapp-interactive-nfm-reply/whatsapp-interactive-nfm-reply.js +3 -0
  112. package/dist/models/v1/whatsapp-interactive-nfm-reply/whatsapp-interactive-nfm-reply.js.map +1 -0
  113. package/dist/models/v1/whatsapp-interactive-text-header/index.d.ts +1 -0
  114. package/dist/models/v1/whatsapp-interactive-text-header/index.js +3 -0
  115. package/dist/models/v1/whatsapp-interactive-text-header/index.js.map +1 -0
  116. package/dist/models/v1/whatsapp-interactive-text-header/whatsapp-interactive-text-header.d.ts +9 -0
  117. package/dist/models/v1/whatsapp-interactive-text-header/whatsapp-interactive-text-header.js +3 -0
  118. package/dist/models/v1/whatsapp-interactive-text-header/whatsapp-interactive-text-header.js.map +1 -0
  119. package/dist/models/v1/whatsapp-interactive-video-header/index.d.ts +1 -0
  120. package/dist/models/v1/whatsapp-interactive-video-header/index.js +3 -0
  121. package/dist/models/v1/whatsapp-interactive-video-header/index.js.map +1 -0
  122. package/dist/models/v1/whatsapp-interactive-video-header/whatsapp-interactive-video-header.d.ts +10 -0
  123. package/dist/models/v1/whatsapp-interactive-video-header/whatsapp-interactive-video-header.js +3 -0
  124. package/dist/models/v1/whatsapp-interactive-video-header/whatsapp-interactive-video-header.js.map +1 -0
  125. package/dist/rest/v1/app/app-api.d.ts +1 -23
  126. package/dist/rest/v1/app/app-api.jest.fixture.d.ts +2 -3
  127. package/dist/rest/v1/app/app-api.jest.fixture.js.map +1 -1
  128. package/dist/rest/v1/app/app-api.js +10 -10
  129. package/dist/rest/v1/app/app-api.js.map +1 -1
  130. package/dist/rest/v1/capability/capability-api.d.ts +1 -5
  131. package/dist/rest/v1/capability/capability-api.jest.fixture.d.ts +2 -2
  132. package/dist/rest/v1/capability/capability-api.jest.fixture.js.map +1 -1
  133. package/dist/rest/v1/capability/capability-api.js +2 -2
  134. package/dist/rest/v1/capability/capability-api.js.map +1 -1
  135. package/dist/rest/v1/contact/contact-api.d.ts +4 -44
  136. package/dist/rest/v1/contact/contact-api.jest.fixture.d.ts +2 -3
  137. package/dist/rest/v1/contact/contact-api.jest.fixture.js.map +1 -1
  138. package/dist/rest/v1/contact/contact-api.js +16 -14
  139. package/dist/rest/v1/contact/contact-api.js.map +1 -1
  140. package/dist/rest/v1/conversation/conversation-api.d.ts +2 -66
  141. package/dist/rest/v1/conversation/conversation-api.jest.fixture.d.ts +2 -2
  142. package/dist/rest/v1/conversation/conversation-api.jest.fixture.js.map +1 -1
  143. package/dist/rest/v1/conversation/conversation-api.js +17 -17
  144. package/dist/rest/v1/conversation/conversation-api.js.map +1 -1
  145. package/dist/rest/v1/conversation-domain-api.d.ts +7 -8
  146. package/dist/rest/v1/conversation-domain-api.js +17 -27
  147. package/dist/rest/v1/conversation-domain-api.js.map +1 -1
  148. package/dist/rest/v1/conversation-service.d.ts +39 -5
  149. package/dist/rest/v1/conversation-service.js +60 -14
  150. package/dist/rest/v1/conversation-service.js.map +1 -1
  151. package/dist/rest/v1/events/events-api.d.ts +1 -47
  152. package/dist/rest/v1/events/events-api.jest.fixture.d.ts +2 -2
  153. package/dist/rest/v1/events/events-api.jest.fixture.js.map +1 -1
  154. package/dist/rest/v1/events/events-api.js +7 -7
  155. package/dist/rest/v1/events/events-api.js.map +1 -1
  156. package/dist/rest/v1/index.d.ts +0 -1
  157. package/dist/rest/v1/index.js +0 -1
  158. package/dist/rest/v1/index.js.map +1 -1
  159. package/dist/rest/v1/messages/messages-api.d.ts +2 -88
  160. package/dist/rest/v1/messages/messages-api.jest.fixture.d.ts +2 -2
  161. package/dist/rest/v1/messages/messages-api.jest.fixture.js.map +1 -1
  162. package/dist/rest/v1/messages/messages-api.js +24 -11
  163. package/dist/rest/v1/messages/messages-api.js.map +1 -1
  164. package/dist/rest/v1/templates-v1/templates-v1-api.d.ts +1 -23
  165. package/dist/rest/v1/templates-v1/templates-v1-api.jest.fixture.d.ts +2 -2
  166. package/dist/rest/v1/templates-v1/templates-v1-api.jest.fixture.js.map +1 -1
  167. package/dist/rest/v1/templates-v1/templates-v1-api.js +10 -10
  168. package/dist/rest/v1/templates-v1/templates-v1-api.js.map +1 -1
  169. package/dist/rest/v1/templates-v2/templates-v2-api.d.ts +1 -29
  170. package/dist/rest/v1/templates-v2/templates-v2-api.jest.fixture.d.ts +2 -2
  171. package/dist/rest/v1/templates-v2/templates-v2-api.jest.fixture.js.map +1 -1
  172. package/dist/rest/v1/templates-v2/templates-v2-api.js +12 -12
  173. package/dist/rest/v1/templates-v2/templates-v2-api.js.map +1 -1
  174. package/dist/rest/v1/transcoding/transcoding-api.d.ts +1 -5
  175. package/dist/rest/v1/transcoding/transcoding-api.jest.fixture.d.ts +2 -2
  176. package/dist/rest/v1/transcoding/transcoding-api.jest.fixture.js.map +1 -1
  177. package/dist/rest/v1/transcoding/transcoding-api.js +2 -2
  178. package/dist/rest/v1/transcoding/transcoding-api.js.map +1 -1
  179. package/dist/rest/v1/webhooks/webhooks-api.d.ts +1 -25
  180. package/dist/rest/v1/webhooks/webhooks-api.jest.fixture.d.ts +2 -3
  181. package/dist/rest/v1/webhooks/webhooks-api.jest.fixture.js.map +1 -1
  182. package/dist/rest/v1/webhooks/webhooks-api.js +10 -10
  183. package/dist/rest/v1/webhooks/webhooks-api.js.map +1 -1
  184. package/package.json +2 -2
  185. package/dist/models/v1/app-message-message/app-message-message.d.ts +0 -102
  186. package/dist/models/v1/app-message-message/app-message-message.js.map +0 -1
  187. package/dist/models/v1/app-message-message/index.d.ts +0 -1
  188. package/dist/models/v1/app-message-message/index.js.map +0 -1
  189. package/dist/rest/v1/enums.d.ts +0 -1
  190. package/dist/rest/v1/enums.js.map +0 -1
  191. /package/dist/models/v1/{app-message-message → channel-specific-contact-message}/index.js +0 -0
@@ -1,16 +1,7 @@
1
1
  import { ConversationChannel } from '../conversation-channel';
2
2
  import { Recipient } from '../recipient';
3
3
  import { ConversationMetadataUpdateStrategy, MessageQueue, ProcessingStrategy } from '../enums';
4
- import { CardMessage } from '../card-message';
5
- import { CarouselMessage } from '../carousel-message';
6
- import { ChoiceMessage } from '../choice-message';
7
- import { LocationMessage } from '../location-message';
8
- import { MediaMessage } from '../media-message';
9
- import { TemplateMessage } from '../template-message';
10
- import { TextMessage } from '../text-message';
11
- import { ListMessage } from '../list-message';
12
- import { ContactInfoMessage } from '../contact-info-message';
13
- import { AppMessageMessage } from '../app-message-message';
4
+ import { AppCardMessage, AppCarouselMessage, AppChoiceMessage, AppContactInfoMessage, AppListMessage, AppLocationMessage, AppMediaMessage, AppMessage, AppTemplateMessage, AppTextMessage } from '../app-message';
14
5
  /**
15
6
  * This is the request body for sending a message. `app_id`, `recipient`, and `message` are all required fields.
16
7
  */
@@ -33,9 +24,13 @@ export interface SendMessageRequestBase<T extends Recipient> {
33
24
  queue?: MessageQueue;
34
25
  /** @see Recipient */
35
26
  recipient: T;
36
- /** The timeout allotted for sending the message, expressed in seconds. Passed to channels which support it and emulated by the Conversation API for channels without ttl support but with message retract/unsend functionality. Channel failover will not be performed for messages with an expired TTL. The format is an integer with the suffix `s` (for seconds). Valid integer range is 3 to 315,576,000,000 (inclusive). Example values include `10s` (10 seconds) and `86400s` (24 hours). */
37
- ttl?: string;
38
- /** Overrides the app\'s [Processing Mode](../../../../../conversation/processing-modes/). Default value is `DEFAULT`. */
27
+ /** The timeout allotted for sending the message, expressed in seconds. Passed to channels which support it and emulated by the Conversation API for channels without ttl support but with message retract/unsend functionality. Channel failover will not be performed for messages with an expired TTL.
28
+ *
29
+ * The format is an integer with the suffix `s` (for seconds). Valid integer range is 3 to 315,576,000,000 (inclusive). Example values include `10s` (10 seconds) and `86400s` (24 hours).
30
+ * The SDK will take care of the formatting: example of valid input for 10 seconds: 10 (number), "10" (string), "10s" (string)
31
+ */
32
+ ttl?: string | number;
33
+ /** Overrides the app's [Processing Mode](../../../../../conversation/processing-modes/). Default value is `DEFAULT`. */
39
34
  processing_strategy?: ProcessingStrategy;
40
35
  /** An arbitrary identifier that will be propagated to callbacks related to this message, including MO replies. Only applicable to messages sent with the `CONVERSATION` processing mode. Up to 128 characters long. */
41
36
  correlation_id?: string;
@@ -44,42 +39,42 @@ export interface SendMessageRequestBase<T extends Recipient> {
44
39
  }
45
40
  export type ChannelPropertyKey = 'MESSENGER_MESSAGING_TYPE' | 'MESSENGER_MESSAGE_TAG' | 'MESSENGER_NOTIFICATION_TYPE' | 'VIBER_SENDER_NAME' | 'VIBER_SENDER_AVATAR' | 'SMS_FLASH_MESSAGE' | 'MMS_SENDER' | 'TELEGRAM_DISABLE_LINK_PREVIEW' | 'SMS_SENDER' | 'INSTAGRAM_MESSAGE_TAG' | 'MMS_STRICT_VALIDATION' | 'KAKAOTALK_AUTHENTICATION' | 'LINE_VIDEO_TRACKING_ID' | 'SMS_MAX_NUMBER_OF_MESSAGE_PARTS' | string;
46
41
  export interface SendMessageRequest<T extends Recipient> extends SendMessageRequestBase<T> {
47
- /** @see AppMessageMessage */
48
- message: AppMessageMessage;
42
+ /** @see AppMessage */
43
+ message: AppMessage;
49
44
  }
50
45
  export interface SendCardMessageRequest<T extends Recipient> extends SendMessageRequestBase<T> {
51
- /** @see CardMessage */
52
- message: CardMessage;
46
+ /** @see AppCardMessage */
47
+ message: AppCardMessage;
53
48
  }
54
49
  export interface SendCarouselMessageRequest<T extends Recipient> extends SendMessageRequestBase<T> {
55
- /** @see CarouselMessage */
56
- message: CarouselMessage;
50
+ /** @see AppCarouselMessage */
51
+ message: AppCarouselMessage;
57
52
  }
58
53
  export interface SendChoiceMessageRequest<T extends Recipient> extends SendMessageRequestBase<T> {
59
- /** @see CarouselMessage */
60
- message: ChoiceMessage;
54
+ /** @see AppChoiceMessage */
55
+ message: AppChoiceMessage;
61
56
  }
62
57
  export interface SendLocationMessageRequest<T extends Recipient> extends SendMessageRequestBase<T> {
63
- /** @see LocationMessage */
64
- message: LocationMessage;
58
+ /** @see AppLocationMessage */
59
+ message: AppLocationMessage;
65
60
  }
66
61
  export interface SendMediaMessageRequest<T extends Recipient> extends SendMessageRequestBase<T> {
67
- /** @see MediaMessage */
68
- message: MediaMessage;
62
+ /** @see AppMediaMessage */
63
+ message: AppMediaMessage;
69
64
  }
70
65
  export interface SendTemplateMessageRequest<T extends Recipient> extends SendMessageRequestBase<T> {
71
- /** @see TemplateMessage */
72
- message: TemplateMessage;
66
+ /** @see AppTemplateMessage */
67
+ message: AppTemplateMessage;
73
68
  }
74
69
  export interface SendTextMessageRequest<T extends Recipient> extends SendMessageRequestBase<T> {
75
- /** @see TextMessage */
76
- message: TextMessage;
70
+ /** @see AppTextMessage */
71
+ message: AppTextMessage;
77
72
  }
78
73
  export interface SendListMessageRequest<T extends Recipient> extends SendMessageRequestBase<T> {
79
- /** @see ListMessage */
80
- message: ListMessage;
74
+ /** @see AppListMessage */
75
+ message: AppListMessage;
81
76
  }
82
77
  export interface SendContactInfoMessageRequest<T extends Recipient> extends SendMessageRequestBase<T> {
83
- /** @see ContactInfoMessage */
84
- message: ContactInfoMessage;
78
+ /** @see AppContactInfoMessage */
79
+ message: AppContactInfoMessage;
85
80
  }
@@ -1,10 +1,10 @@
1
1
  import { ConversationChannel } from '../conversation-channel';
2
- import { AppMessageMessage } from '../app-message-message';
2
+ import { AppMessage } from '../app-message';
3
3
  export interface TranscodeMessageRequest {
4
4
  /** The ID of the app used to transcode the message. */
5
5
  app_id: string;
6
- /** @see AppMessageMessage */
7
- app_message: AppMessageMessage;
6
+ /** @see AppMessage */
7
+ app_message: AppMessage;
8
8
  /** The list of channels for which the message shall be transcoded to. */
9
9
  channels: ConversationChannel[];
10
10
  /** Optional. */
@@ -0,0 +1 @@
1
+ export type { WhatsAppInteractiveBody } from './whatsapp-interactive-body';
@@ -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-body/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Body of the interactive message.
3
+ */
4
+ export interface WhatsAppInteractiveBody {
5
+ /** The content of the message (1024 characters maximum). Emojis and Markdown are supported. */
6
+ text: string;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=whatsapp-interactive-body.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whatsapp-interactive-body.js","sourceRoot":"","sources":["../../../../src/models/v1/whatsapp-interactive-body/whatsapp-interactive-body.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export type { WhatsAppInteractiveDocumentHeader } from './whatsapp-interactive-document-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-document-header/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import { WhatsAppInteractiveHeaderMedia } from '../whatsapp-interactive-header-media';
2
+ /**
3
+ * Header of the interactive message with document.
4
+ */
5
+ export interface WhatsAppInteractiveDocumentHeader {
6
+ /** Must be set to document. */
7
+ type: 'document';
8
+ /** @see WhatsAppInteractiveHeaderMedia */
9
+ document: WhatsAppInteractiveHeaderMedia;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=whatsapp-interactive-document-header.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whatsapp-interactive-document-header.js","sourceRoot":"","sources":["../../../../src/models/v1/whatsapp-interactive-document-header/whatsapp-interactive-document-header.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export type { WhatsAppInteractiveFooter } from './whatsapp-interactive-footer';
@@ -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-footer/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Footer of the interactive message.
3
+ */
4
+ export interface WhatsAppInteractiveFooter {
5
+ /** The footer content (60 characters maximum). Emojis, Markdown and links are supported. */
6
+ text: string;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=whatsapp-interactive-footer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whatsapp-interactive-footer.js","sourceRoot":"","sources":["../../../../src/models/v1/whatsapp-interactive-footer/whatsapp-interactive-footer.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export type { WhatsAppInteractiveHeaderMedia } from './whatsapp-interactive-header-media';
@@ -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-header-media/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Media object for the header.
3
+ */
4
+ export interface WhatsAppInteractiveHeaderMedia {
5
+ /** URL for the media. */
6
+ link: string;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=whatsapp-interactive-header-media.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whatsapp-interactive-header-media.js","sourceRoot":"","sources":["../../../../src/models/v1/whatsapp-interactive-header-media/whatsapp-interactive-header-media.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export type { WhatsAppInteractiveImageHeader } from './whatsapp-interactive-image-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-image-header/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import { WhatsAppInteractiveHeaderMedia } from '../whatsapp-interactive-header-media';
2
+ /**
3
+ * Header of the interactive message with image.
4
+ */
5
+ export interface WhatsAppInteractiveImageHeader {
6
+ /** Must be set to image. */
7
+ type: 'image';
8
+ /** @see WhatsAppInteractiveHeaderMedia */
9
+ image: WhatsAppInteractiveHeaderMedia;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=whatsapp-interactive-image-header.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whatsapp-interactive-image-header.js","sourceRoot":"","sources":["../../../../src/models/v1/whatsapp-interactive-image-header/whatsapp-interactive-image-header.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export type { WhatsAppInteractiveNfmReply } from './whatsapp-interactive-nfm-reply';
@@ -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-nfm-reply/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * The interactive nfm reply message.
3
+ */
4
+ export interface WhatsAppInteractiveNfmReply {
5
+ /** The nfm reply message type. */
6
+ name: 'flow' | 'address_message';
7
+ /** The JSON specific data. */
8
+ response_json: string;
9
+ /** The message body. */
10
+ body: string;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=whatsapp-interactive-nfm-reply.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whatsapp-interactive-nfm-reply.js","sourceRoot":"","sources":["../../../../src/models/v1/whatsapp-interactive-nfm-reply/whatsapp-interactive-nfm-reply.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export type { WhatsAppInteractiveTextHeader } from './whatsapp-interactive-text-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-text-header/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Header of the interactive message with text.
3
+ */
4
+ export interface WhatsAppInteractiveTextHeader {
5
+ /** Must be set to text. */
6
+ type: 'text';
7
+ /** Text for the header. Formatting allows emojis, but not Markdown. */
8
+ text: string;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=whatsapp-interactive-text-header.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whatsapp-interactive-text-header.js","sourceRoot":"","sources":["../../../../src/models/v1/whatsapp-interactive-text-header/whatsapp-interactive-text-header.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export type { WhatsAppInteractiveVideoHeader } from './whatsapp-interactive-video-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-video-header/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import { WhatsAppInteractiveHeaderMedia } from '../whatsapp-interactive-header-media';
2
+ /**
3
+ * Header of the interactive message with video.
4
+ */
5
+ export interface WhatsAppInteractiveVideoHeader {
6
+ /** Must be set to video. */
7
+ type: 'video';
8
+ /** @see WhatsAppInteractiveHeaderMedia */
9
+ video: WhatsAppInteractiveHeaderMedia;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=whatsapp-interactive-video-header.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whatsapp-interactive-video-header.js","sourceRoot":"","sources":["../../../../src/models/v1/whatsapp-interactive-video-header/whatsapp-interactive-video-header.ts"],"names":[],"mappings":""}
@@ -1,28 +1,6 @@
1
1
  import { SinchClientParameters } from '@sinch/sdk-client';
2
- import { AppCreateRequest, AppResponse, AppUpdateRequest, ListAppsResponse } from '../../../models';
2
+ import { AppResponse, CreateAppRequestData, DeleteAppRequestData, GetAppRequestData, ListAppsRequestData, ListAppsResponse, UpdateAppRequestData } from '../../../models';
3
3
  import { ConversationDomainApi } from '../conversation-domain-api';
4
- export interface CreateAppRequestData {
5
- /** The app to create. */
6
- 'appCreateRequestBody': AppCreateRequest;
7
- }
8
- export interface DeleteAppRequestData {
9
- /** The unique ID of the app. You can find this on the [Sinch Dashboard](https://dashboard.sinch.com/convapi/apps). */
10
- 'app_id': string;
11
- }
12
- export interface GetAppRequestData {
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
- }
16
- export interface ListAppsRequestData {
17
- }
18
- export interface UpdateAppRequestData {
19
- /** The unique ID of the app. You can find this on the [Sinch Dashboard](https://dashboard.sinch.com/convapi/apps). */
20
- 'app_id': string;
21
- /** The updated app. */
22
- 'appUpdateRequestBody': AppUpdateRequest;
23
- /** The set of field mask paths. */
24
- 'update_mask'?: Array<string>;
25
- }
26
4
  export declare class AppApi extends ConversationDomainApi {
27
5
  /**
28
6
  * Initialize your interface
@@ -1,7 +1,6 @@
1
1
  /// <reference types="jest" />
2
- import { AppResponse } from '../../../models';
3
- import { ListAppsResponse } from '../../../models';
4
- import { AppApi, CreateAppRequestData, DeleteAppRequestData, GetAppRequestData, ListAppsRequestData, UpdateAppRequestData } from './app-api';
2
+ import { AppApi } from './app-api';
3
+ import { AppResponse, ListAppsResponse, CreateAppRequestData, DeleteAppRequestData, GetAppRequestData, ListAppsRequestData, UpdateAppRequestData } from '../../../models';
5
4
  export declare class AppApiFixture implements Partial<Readonly<AppApi>> {
6
5
  /**
7
6
  * Fixture associated to function createApp
@@ -1 +1 @@
1
- {"version":3,"file":"app-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v1/app/app-api.jest.fixture.ts"],"names":[],"mappings":";;;AAIA,MAAa,aAAa;IAA1B;QAEE;;WAEG;QACI,WAAM,GAA4D,IAAI,CAAC,EAAE,EAAE,CAAC;QACnF;;WAEG;QACI,WAAM,GAAoD,IAAI,CAAC,EAAE,EAAE,CAAC;QAC3E;;WAEG;QACI,QAAG,GAAyD,IAAI,CAAC,EAAE,EAAE,CAAC;QAC7E;;WAEG;QACI,SAAI,GAAgE,IAAI,CAAC,EAAE,EAAE,CAAC;QACrF;;WAEG;QACI,WAAM,GAA4D,IAAI,CAAC,EAAE,EAAE,CAAC;IACrF,CAAC;CAAA;AAtBD,sCAsBC"}
1
+ {"version":3,"file":"app-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v1/app/app-api.jest.fixture.ts"],"names":[],"mappings":";;;AAWA,MAAa,aAAa;IAA1B;QAEE;;WAEG;QACI,WAAM,GAA4D,IAAI,CAAC,EAAE,EAAE,CAAC;QACnF;;WAEG;QACI,WAAM,GAAoD,IAAI,CAAC,EAAE,EAAE,CAAC;QAC3E;;WAEG;QACI,QAAG,GAAyD,IAAI,CAAC,EAAE,EAAE,CAAC;QAC7E;;WAEG;QACI,SAAI,GAAgE,IAAI,CAAC,EAAE,EAAE,CAAC;QACrF;;WAEG;QACI,WAAM,GAA4D,IAAI,CAAC,EAAE,EAAE,CAAC;IACrF,CAAC;CAAA;AAtBD,sCAsBC"}
@@ -24,9 +24,9 @@ class AppApi extends conversation_domain_api_1.ConversationDomainApi {
24
24
  'Accept': 'application/json',
25
25
  };
26
26
  const body = data['appCreateRequestBody'] ? JSON.stringify(data['appCreateRequestBody']) : '{}';
27
- const basePathUrl = `${this.client.apiClientOptions.basePath}/v1/projects/${this.client.apiClientOptions.projectId}/apps`;
27
+ const basePathUrl = `${this.client.apiClientOptions.hostname}/v1/projects/${this.client.apiClientOptions.projectId}/apps`;
28
28
  const requestOptions = await this.client.prepareOptions(basePathUrl, 'POST', getParams, headers, body || undefined);
29
- const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
29
+ const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
30
30
  return this.client.processCall({
31
31
  url,
32
32
  requestOptions,
@@ -47,9 +47,9 @@ class AppApi extends conversation_domain_api_1.ConversationDomainApi {
47
47
  'Accept': 'application/json',
48
48
  };
49
49
  const body = '';
50
- const basePathUrl = `${this.client.apiClientOptions.basePath}/v1/projects/${this.client.apiClientOptions.projectId}/apps/${data['app_id']}`;
50
+ const basePathUrl = `${this.client.apiClientOptions.hostname}/v1/projects/${this.client.apiClientOptions.projectId}/apps/${data['app_id']}`;
51
51
  const requestOptions = await this.client.prepareOptions(basePathUrl, 'DELETE', getParams, headers, body || undefined);
52
- const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
52
+ const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
53
53
  return this.client.processCall({
54
54
  url,
55
55
  requestOptions,
@@ -70,9 +70,9 @@ class AppApi extends conversation_domain_api_1.ConversationDomainApi {
70
70
  'Accept': 'application/json',
71
71
  };
72
72
  const body = '';
73
- const basePathUrl = `${this.client.apiClientOptions.basePath}/v1/projects/${this.client.apiClientOptions.projectId}/apps/${data['app_id']}`;
73
+ const basePathUrl = `${this.client.apiClientOptions.hostname}/v1/projects/${this.client.apiClientOptions.projectId}/apps/${data['app_id']}`;
74
74
  const requestOptions = await this.client.prepareOptions(basePathUrl, 'GET', getParams, headers, body || undefined);
75
- const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
75
+ const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
76
76
  return this.client.processCall({
77
77
  url,
78
78
  requestOptions,
@@ -93,9 +93,9 @@ class AppApi extends conversation_domain_api_1.ConversationDomainApi {
93
93
  'Accept': 'application/json',
94
94
  };
95
95
  const body = '';
96
- const basePathUrl = `${this.client.apiClientOptions.basePath}/v1/projects/${this.client.apiClientOptions.projectId}/apps`;
96
+ const basePathUrl = `${this.client.apiClientOptions.hostname}/v1/projects/${this.client.apiClientOptions.projectId}/apps`;
97
97
  const requestOptions = await this.client.prepareOptions(basePathUrl, 'GET', getParams, headers, body || undefined);
98
- const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
98
+ const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
99
99
  return this.client.processCall({
100
100
  url,
101
101
  requestOptions,
@@ -116,9 +116,9 @@ class AppApi extends conversation_domain_api_1.ConversationDomainApi {
116
116
  'Accept': 'application/json',
117
117
  };
118
118
  const body = data['appUpdateRequestBody'] ? JSON.stringify(data['appUpdateRequestBody']) : '{}';
119
- const basePathUrl = `${this.client.apiClientOptions.basePath}/v1/projects/${this.client.apiClientOptions.projectId}/apps/${data['app_id']}`;
119
+ const basePathUrl = `${this.client.apiClientOptions.hostname}/v1/projects/${this.client.apiClientOptions.projectId}/apps/${data['app_id']}`;
120
120
  const requestOptions = await this.client.prepareOptions(basePathUrl, 'PATCH', getParams, headers, body || undefined);
121
- const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
121
+ const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
122
122
  return this.client.processCall({
123
123
  url,
124
124
  requestOptions,
@@ -1 +1 @@
1
- {"version":3,"file":"app-api.js","sourceRoot":"","sources":["../../../../src/rest/v1/app/app-api.ts"],"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I,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;AApJD,wBAoJC"}
@@ -1,10 +1,6 @@
1
1
  import { SinchClientParameters } from '@sinch/sdk-client';
2
- import { LookupCapabilityRequest, LookupCapabilityResponse, Recipient } from '../../../models';
2
+ import { LookupCapabilityRequestData, LookupCapabilityResponse, Recipient } from '../../../models';
3
3
  import { ConversationDomainApi } from '../conversation-domain-api';
4
- export interface LookupCapabilityRequestData<T extends Recipient> {
5
- /** The lookup capability request. */
6
- 'lookupCapabilityRequestBody': LookupCapabilityRequest<T>;
7
- }
8
4
  export declare class CapabilityApi extends ConversationDomainApi {
9
5
  /**
10
6
  * Initialize your interface
@@ -1,6 +1,6 @@
1
1
  /// <reference types="jest" />
2
- import { LookupCapabilityResponse, Recipient } from '../../../models';
3
- import { CapabilityApi, LookupCapabilityRequestData } from './capability-api';
2
+ import { CapabilityApi } from './capability-api';
3
+ import { LookupCapabilityRequestData, LookupCapabilityResponse, Recipient } from '../../../models';
4
4
  export declare class CapabilityApiFixture implements Partial<Readonly<CapabilityApi>> {
5
5
  /**
6
6
  * Fixture associated to function lookupForContactId
@@ -1 +1 @@
1
- {"version":3,"file":"capability-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v1/capability/capability-api.jest.fixture.ts"],"names":[],"mappings":";;;AAGA,MAAa,oBAAoB;IAAjC;QAEE;;WAEG;QACI,WAAM,GAGT,IAAI,CAAC,EAAE,EAAE,CAAC;IAEhB,CAAC;CAAA;AAVD,oDAUC"}
1
+ {"version":3,"file":"capability-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v1/capability/capability-api.jest.fixture.ts"],"names":[],"mappings":";;;AAOA,MAAa,oBAAoB;IAAjC;QAEE;;WAEG;QACI,WAAM,GAGT,IAAI,CAAC,EAAE,EAAE,CAAC;IAEhB,CAAC;CAAA;AAVD,oDAUC"}
@@ -26,9 +26,9 @@ class CapabilityApi extends conversation_domain_api_1.ConversationDomainApi {
26
26
  const body = data['lookupCapabilityRequestBody']
27
27
  ? JSON.stringify(data['lookupCapabilityRequestBody'])
28
28
  : '{}';
29
- const basePathUrl = `${this.client.apiClientOptions.basePath}/v1/projects/${this.client.apiClientOptions.projectId}/capability:query`;
29
+ const basePathUrl = `${this.client.apiClientOptions.hostname}/v1/projects/${this.client.apiClientOptions.projectId}/capability:query`;
30
30
  const requestOptions = await this.client.prepareOptions(basePathUrl, 'POST', getParams, headers, body || undefined);
31
- const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
31
+ const url = this.client.prepareUrl(requestOptions.hostname, requestOptions.queryParams);
32
32
  return this.client.processCall({
33
33
  url,
34
34
  requestOptions,
@@ -1 +1 @@
1
- {"version":3,"file":"capability-api.js","sourceRoot":"","sources":["../../../../src/rest/v1/capability/capability-api.ts"],"names":[],"mappings":";;;AASA,wEAAmE;AAOnE,MAAa,aAAc,SAAQ,+CAAqB;IAEtD;;;;OAIG;IACH,YAAY,qBAA4C;QACtD,KAAK,CAAC,qBAAqB,EAAE,eAAe,CAAC,CAAC;IAChD,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,MAAM,CAAC,IAA4C;QAC9D,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACpC,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,CA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