@sinch/conversation 0.0.4 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -12
- package/dist/index.d.ts +1 -1
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/dist/models/v1/app-message/app-message.d.ts +29 -21
- package/dist/models/v1/app-message/index.d.ts +1 -1
- package/dist/models/v1/channel-specific-contact-message/channel-specific-contact-message.d.ts +21 -0
- package/dist/models/v1/channel-specific-contact-message/channel-specific-contact-message.js +3 -0
- package/dist/models/v1/channel-specific-contact-message/channel-specific-contact-message.js.map +1 -0
- package/dist/models/v1/channel-specific-contact-message/index.d.ts +1 -0
- package/dist/models/v1/channel-specific-contact-message/index.js.map +1 -0
- package/dist/models/v1/channel-specific-message/channel-specific-message.d.ts +11 -0
- package/dist/models/v1/channel-specific-message/channel-specific-message.js +3 -0
- package/dist/models/v1/channel-specific-message/channel-specific-message.js.map +1 -0
- package/dist/models/v1/channel-specific-message/index.d.ts +1 -0
- package/dist/models/v1/channel-specific-message/index.js.map +1 -0
- package/dist/models/v1/choice-item/choice-item.d.ts +4 -3
- package/dist/models/v1/choice-item/index.d.ts +1 -1
- package/dist/models/v1/contact-info-message/contact-info-message.d.ts +1 -1
- package/dist/models/v1/contact-message/contact-message.d.ts +37 -1
- package/dist/models/v1/delivery-report-based-fallback/delivery-report-based-fallback.d.ts +8 -2
- package/dist/models/v1/enums.d.ts +5 -1
- package/dist/models/v1/flow-channel-specific-message/flow-channel-specific-message.d.ts +37 -0
- package/dist/models/v1/flow-channel-specific-message/flow-channel-specific-message.js +3 -0
- package/dist/models/v1/flow-channel-specific-message/flow-channel-specific-message.js.map +1 -0
- package/dist/models/v1/flow-channel-specific-message/index.d.ts +1 -0
- package/dist/{rest/v1/enums.js → models/v1/flow-channel-specific-message/index.js} +1 -1
- package/dist/models/v1/flow-channel-specific-message/index.js.map +1 -0
- package/dist/models/v1/helper.d.ts +7 -1
- package/dist/models/v1/helper.js +13 -1
- package/dist/models/v1/helper.js.map +1 -1
- package/dist/models/v1/index.d.ts +15 -2
- package/dist/models/v1/index.js +15 -2
- package/dist/models/v1/index.js.map +1 -1
- package/dist/models/v1/list-section/list-section.d.ts +4 -4
- package/dist/models/v1/message-retry-settings/message-retry-settings.d.ts +1 -1
- package/dist/models/v1/product-item/index.d.ts +1 -0
- package/dist/models/v1/{product/product.js → product-item/index.js} +1 -1
- package/dist/models/v1/product-item/index.js.map +1 -0
- package/dist/models/v1/{product/product.d.ts → product-item/product-item.d.ts} +1 -1
- package/dist/models/v1/product-item/product-item.js +3 -0
- package/dist/models/v1/product-item/product-item.js.map +1 -0
- package/dist/models/v1/product-response-message/index.d.ts +1 -0
- package/dist/models/v1/product-response-message/index.js +3 -0
- package/dist/models/v1/product-response-message/index.js.map +1 -0
- package/dist/models/v1/product-response-message/product-response-message.d.ts +12 -0
- package/dist/models/v1/product-response-message/product-response-message.js +3 -0
- package/dist/models/v1/product-response-message/product-response-message.js.map +1 -0
- package/dist/models/v1/requests/app/app-request-data.d.ts +24 -0
- package/dist/models/v1/requests/app/app-request-data.js +3 -0
- package/dist/models/v1/requests/app/app-request-data.js.map +1 -0
- package/dist/models/v1/requests/capability/capability-request-data.d.ts +6 -0
- package/dist/models/v1/requests/capability/capability-request-data.js +3 -0
- package/dist/models/v1/requests/capability/capability-request-data.js.map +1 -0
- package/dist/models/v1/requests/contact/contact-request-data.d.ts +48 -0
- package/dist/models/v1/requests/contact/contact-request-data.js +3 -0
- package/dist/models/v1/requests/contact/contact-request-data.js.map +1 -0
- package/dist/models/v1/requests/conversation/conversation-request-data.d.ts +71 -0
- package/dist/models/v1/requests/conversation/conversation-request-data.js +3 -0
- package/dist/models/v1/requests/conversation/conversation-request-data.js.map +1 -0
- package/dist/models/v1/requests/events/events-request-data.d.ts +49 -0
- package/dist/models/v1/{app-message-message/app-message-message.js → requests/events/events-request-data.js} +1 -1
- package/dist/models/v1/requests/events/events-request-data.js.map +1 -0
- package/dist/models/v1/requests/index.d.ts +10 -0
- package/dist/models/v1/requests/index.js +27 -0
- package/dist/models/v1/requests/index.js.map +1 -0
- package/dist/models/v1/requests/messages/messages-request-data.d.ts +91 -0
- package/dist/models/v1/requests/messages/messages-request-data.js +3 -0
- package/dist/models/v1/requests/messages/messages-request-data.js.map +1 -0
- package/dist/models/v1/requests/templates-v1/templates-v1-request-data.d.ts +23 -0
- package/dist/models/v1/requests/templates-v1/templates-v1-request-data.js +3 -0
- package/dist/models/v1/requests/templates-v1/templates-v1-request-data.js.map +1 -0
- package/dist/models/v1/requests/templates-v2/templates-v2-request-data.d.ts +29 -0
- package/dist/models/v1/requests/templates-v2/templates-v2-request-data.js +3 -0
- package/dist/models/v1/requests/templates-v2/templates-v2-request-data.js.map +1 -0
- package/dist/models/v1/requests/transcoding/transcoding-request-data.d.ts +5 -0
- package/dist/models/v1/requests/transcoding/transcoding-request-data.js +3 -0
- package/dist/models/v1/requests/transcoding/transcoding-request-data.js.map +1 -0
- package/dist/models/v1/requests/webhooks/webhooks-request-data.d.ts +25 -0
- package/dist/models/v1/requests/webhooks/webhooks-request-data.js +3 -0
- package/dist/models/v1/requests/webhooks/webhooks-request-data.js.map +1 -0
- package/dist/models/v1/send-message-request/send-message-request.d.ts +28 -33
- package/dist/models/v1/transcode-message-request/transcode-message-request.d.ts +3 -3
- package/dist/models/v1/whatsapp-interactive-body/index.d.ts +1 -0
- package/dist/models/v1/whatsapp-interactive-body/index.js +3 -0
- package/dist/models/v1/whatsapp-interactive-body/index.js.map +1 -0
- package/dist/models/v1/whatsapp-interactive-body/whatsapp-interactive-body.d.ts +7 -0
- package/dist/models/v1/whatsapp-interactive-body/whatsapp-interactive-body.js +3 -0
- package/dist/models/v1/whatsapp-interactive-body/whatsapp-interactive-body.js.map +1 -0
- package/dist/models/v1/whatsapp-interactive-document-header/index.d.ts +1 -0
- package/dist/models/v1/whatsapp-interactive-document-header/index.js +3 -0
- package/dist/models/v1/whatsapp-interactive-document-header/index.js.map +1 -0
- package/dist/models/v1/whatsapp-interactive-document-header/whatsapp-interactive-document-header.d.ts +10 -0
- package/dist/models/v1/whatsapp-interactive-document-header/whatsapp-interactive-document-header.js +3 -0
- package/dist/models/v1/whatsapp-interactive-document-header/whatsapp-interactive-document-header.js.map +1 -0
- package/dist/models/v1/whatsapp-interactive-footer/index.d.ts +1 -0
- package/dist/models/v1/whatsapp-interactive-footer/index.js +3 -0
- package/dist/models/v1/whatsapp-interactive-footer/index.js.map +1 -0
- package/dist/models/v1/whatsapp-interactive-footer/whatsapp-interactive-footer.d.ts +7 -0
- package/dist/models/v1/whatsapp-interactive-footer/whatsapp-interactive-footer.js +3 -0
- package/dist/models/v1/whatsapp-interactive-footer/whatsapp-interactive-footer.js.map +1 -0
- package/dist/models/v1/whatsapp-interactive-header-media/index.d.ts +1 -0
- package/dist/models/v1/whatsapp-interactive-header-media/index.js +3 -0
- package/dist/models/v1/whatsapp-interactive-header-media/index.js.map +1 -0
- package/dist/models/v1/whatsapp-interactive-header-media/whatsapp-interactive-header-media.d.ts +7 -0
- package/dist/models/v1/whatsapp-interactive-header-media/whatsapp-interactive-header-media.js +3 -0
- package/dist/models/v1/whatsapp-interactive-header-media/whatsapp-interactive-header-media.js.map +1 -0
- package/dist/models/v1/whatsapp-interactive-image-header/index.d.ts +1 -0
- package/dist/models/v1/whatsapp-interactive-image-header/index.js +3 -0
- package/dist/models/v1/whatsapp-interactive-image-header/index.js.map +1 -0
- package/dist/models/v1/whatsapp-interactive-image-header/whatsapp-interactive-image-header.d.ts +10 -0
- package/dist/models/v1/whatsapp-interactive-image-header/whatsapp-interactive-image-header.js +3 -0
- package/dist/models/v1/whatsapp-interactive-image-header/whatsapp-interactive-image-header.js.map +1 -0
- package/dist/models/v1/whatsapp-interactive-nfm-reply/index.d.ts +1 -0
- package/dist/models/v1/whatsapp-interactive-nfm-reply/index.js +3 -0
- package/dist/models/v1/whatsapp-interactive-nfm-reply/index.js.map +1 -0
- package/dist/models/v1/whatsapp-interactive-nfm-reply/whatsapp-interactive-nfm-reply.d.ts +11 -0
- package/dist/models/v1/whatsapp-interactive-nfm-reply/whatsapp-interactive-nfm-reply.js +3 -0
- package/dist/models/v1/whatsapp-interactive-nfm-reply/whatsapp-interactive-nfm-reply.js.map +1 -0
- package/dist/models/v1/whatsapp-interactive-text-header/index.d.ts +1 -0
- package/dist/models/v1/whatsapp-interactive-text-header/index.js +3 -0
- package/dist/models/v1/whatsapp-interactive-text-header/index.js.map +1 -0
- package/dist/models/v1/whatsapp-interactive-text-header/whatsapp-interactive-text-header.d.ts +9 -0
- package/dist/models/v1/whatsapp-interactive-text-header/whatsapp-interactive-text-header.js +3 -0
- package/dist/models/v1/whatsapp-interactive-text-header/whatsapp-interactive-text-header.js.map +1 -0
- package/dist/models/v1/whatsapp-interactive-video-header/index.d.ts +1 -0
- package/dist/models/v1/whatsapp-interactive-video-header/index.js +3 -0
- package/dist/models/v1/whatsapp-interactive-video-header/index.js.map +1 -0
- package/dist/models/v1/whatsapp-interactive-video-header/whatsapp-interactive-video-header.d.ts +10 -0
- package/dist/models/v1/whatsapp-interactive-video-header/whatsapp-interactive-video-header.js +3 -0
- package/dist/models/v1/whatsapp-interactive-video-header/whatsapp-interactive-video-header.js.map +1 -0
- package/dist/rest/v1/app/app-api.d.ts +1 -23
- package/dist/rest/v1/app/app-api.jest.fixture.d.ts +2 -3
- package/dist/rest/v1/app/app-api.jest.fixture.js.map +1 -1
- package/dist/rest/v1/app/app-api.js +10 -10
- package/dist/rest/v1/app/app-api.js.map +1 -1
- package/dist/rest/v1/capability/capability-api.d.ts +1 -5
- package/dist/rest/v1/capability/capability-api.jest.fixture.d.ts +2 -2
- package/dist/rest/v1/capability/capability-api.jest.fixture.js.map +1 -1
- package/dist/rest/v1/capability/capability-api.js +2 -2
- package/dist/rest/v1/capability/capability-api.js.map +1 -1
- package/dist/rest/v1/contact/contact-api.d.ts +4 -44
- package/dist/rest/v1/contact/contact-api.jest.fixture.d.ts +2 -3
- package/dist/rest/v1/contact/contact-api.jest.fixture.js.map +1 -1
- package/dist/rest/v1/contact/contact-api.js +16 -14
- package/dist/rest/v1/contact/contact-api.js.map +1 -1
- package/dist/rest/v1/conversation/conversation-api.d.ts +2 -66
- package/dist/rest/v1/conversation/conversation-api.jest.fixture.d.ts +2 -2
- package/dist/rest/v1/conversation/conversation-api.jest.fixture.js.map +1 -1
- package/dist/rest/v1/conversation/conversation-api.js +17 -17
- package/dist/rest/v1/conversation/conversation-api.js.map +1 -1
- package/dist/rest/v1/conversation-domain-api.d.ts +7 -8
- package/dist/rest/v1/conversation-domain-api.js +17 -27
- package/dist/rest/v1/conversation-domain-api.js.map +1 -1
- package/dist/rest/v1/conversation-service.d.ts +39 -5
- package/dist/rest/v1/conversation-service.js +60 -14
- package/dist/rest/v1/conversation-service.js.map +1 -1
- package/dist/rest/v1/events/events-api.d.ts +1 -47
- package/dist/rest/v1/events/events-api.jest.fixture.d.ts +2 -2
- package/dist/rest/v1/events/events-api.jest.fixture.js.map +1 -1
- package/dist/rest/v1/events/events-api.js +7 -7
- package/dist/rest/v1/events/events-api.js.map +1 -1
- package/dist/rest/v1/index.d.ts +0 -1
- package/dist/rest/v1/index.js +0 -1
- package/dist/rest/v1/index.js.map +1 -1
- package/dist/rest/v1/messages/messages-api.d.ts +2 -88
- package/dist/rest/v1/messages/messages-api.jest.fixture.d.ts +2 -2
- package/dist/rest/v1/messages/messages-api.jest.fixture.js.map +1 -1
- package/dist/rest/v1/messages/messages-api.js +24 -11
- package/dist/rest/v1/messages/messages-api.js.map +1 -1
- package/dist/rest/v1/templates-v1/templates-v1-api.d.ts +1 -23
- package/dist/rest/v1/templates-v1/templates-v1-api.jest.fixture.d.ts +2 -2
- package/dist/rest/v1/templates-v1/templates-v1-api.jest.fixture.js.map +1 -1
- package/dist/rest/v1/templates-v1/templates-v1-api.js +10 -10
- package/dist/rest/v1/templates-v1/templates-v1-api.js.map +1 -1
- package/dist/rest/v1/templates-v2/templates-v2-api.d.ts +1 -29
- package/dist/rest/v1/templates-v2/templates-v2-api.jest.fixture.d.ts +2 -2
- package/dist/rest/v1/templates-v2/templates-v2-api.jest.fixture.js.map +1 -1
- package/dist/rest/v1/templates-v2/templates-v2-api.js +12 -12
- package/dist/rest/v1/templates-v2/templates-v2-api.js.map +1 -1
- package/dist/rest/v1/transcoding/transcoding-api.d.ts +1 -5
- package/dist/rest/v1/transcoding/transcoding-api.jest.fixture.d.ts +2 -2
- package/dist/rest/v1/transcoding/transcoding-api.jest.fixture.js.map +1 -1
- package/dist/rest/v1/transcoding/transcoding-api.js +2 -2
- package/dist/rest/v1/transcoding/transcoding-api.js.map +1 -1
- package/dist/rest/v1/webhooks/webhooks-api.d.ts +1 -25
- package/dist/rest/v1/webhooks/webhooks-api.jest.fixture.d.ts +2 -3
- package/dist/rest/v1/webhooks/webhooks-api.jest.fixture.js.map +1 -1
- package/dist/rest/v1/webhooks/webhooks-api.js +10 -10
- package/dist/rest/v1/webhooks/webhooks-api.js.map +1 -1
- package/package.json +2 -2
- package/dist/models/v1/app-message-message/app-message-message.d.ts +0 -102
- package/dist/models/v1/app-message-message/app-message-message.js.map +0 -1
- package/dist/models/v1/app-message-message/index.d.ts +0 -1
- package/dist/models/v1/app-message-message/index.js.map +0 -1
- package/dist/models/v1/product/index.d.ts +0 -1
- package/dist/models/v1/product/index.js.map +0 -1
- package/dist/models/v1/product/product.js.map +0 -1
- package/dist/rest/v1/enums.d.ts +0 -1
- package/dist/rest/v1/enums.js.map +0 -1
- /package/dist/models/v1/{app-message-message → channel-specific-contact-message}/index.js +0 -0
- /package/dist/models/v1/{product → channel-specific-message}/index.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../src/models/v1/helper.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../src/models/v1/helper.ts"],"names":[],"mappings":";;;AAaa,QAAA,cAAc,GAAG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M,CAAC;YACN,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC;QAChF,CAAC;IACH,CAAC;CACF,CAAC;AAEW,QAAA,iBAAiB,GAAG;IAC/B,eAAe,EAAE,CAAC,UAAsB,EAAqB,EAAE;QAC7D,OAAO;YACL,MAAM,EAAE,UAAU;SACnB,CAAC;IACJ,CAAC;IACD,gBAAgB,EAAE,CAAC,WAAwB,EAAsB,EAAE;QACjE,OAAO;YACL,OAAO,EAAE,WAAW;SACrB,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -4,7 +4,6 @@ export * from './agent-left-event';
|
|
|
4
4
|
export * from './app-create-request';
|
|
5
5
|
export * from './app-event';
|
|
6
6
|
export * from './app-message';
|
|
7
|
-
export * from './app-message-message';
|
|
8
7
|
export * from './app-response';
|
|
9
8
|
export * from './app-update-request';
|
|
10
9
|
export * from './call-message';
|
|
@@ -15,7 +14,10 @@ export * from './channel-identity';
|
|
|
15
14
|
export * from './channel-template-override';
|
|
16
15
|
export * from './channel-template-reference';
|
|
17
16
|
export * from './channel-recipient-identity';
|
|
17
|
+
export * from './channel-specific-contact-message';
|
|
18
|
+
export * from './channel-specific-message';
|
|
18
19
|
export * from './choice';
|
|
20
|
+
export * from './choice-item';
|
|
19
21
|
export * from './choice-message';
|
|
20
22
|
export * from './choice-response-message';
|
|
21
23
|
export * from './client-credentials';
|
|
@@ -43,6 +45,7 @@ export * from './create-conversation-request';
|
|
|
43
45
|
export * from './delivery-report-based-fallback';
|
|
44
46
|
export * from './dispatch-retention-policy';
|
|
45
47
|
export * from './fallback-message';
|
|
48
|
+
export * from './flow-channel-specific-message';
|
|
46
49
|
export * from './generic-event';
|
|
47
50
|
export * from './get-channel-profile-request';
|
|
48
51
|
export * from './get-channel-profile-response';
|
|
@@ -60,7 +63,8 @@ export * from './media-carousel-message';
|
|
|
60
63
|
export * from './media-message';
|
|
61
64
|
export * from './merge-contact-request';
|
|
62
65
|
export * from './message-retry-settings';
|
|
63
|
-
export * from './product';
|
|
66
|
+
export * from './product-item';
|
|
67
|
+
export * from './product-response-message';
|
|
64
68
|
export * from './error-detail';
|
|
65
69
|
export * from './lookup-capability-request';
|
|
66
70
|
export * from './lookup-capability-response';
|
|
@@ -94,7 +98,16 @@ export * from './v2-template-response';
|
|
|
94
98
|
export * from './v2-template-translation';
|
|
95
99
|
export * from './webhook';
|
|
96
100
|
export * from './webhook-trigger';
|
|
101
|
+
export * from './whatsapp-interactive-body';
|
|
102
|
+
export * from './whatsapp-interactive-document-header';
|
|
103
|
+
export * from './whatsapp-interactive-footer';
|
|
104
|
+
export * from './whatsapp-interactive-header-media';
|
|
105
|
+
export * from './whatsapp-interactive-image-header';
|
|
106
|
+
export * from './whatsapp-interactive-nfm-reply';
|
|
107
|
+
export * from './whatsapp-interactive-text-header';
|
|
108
|
+
export * from './whatsapp-interactive-video-header';
|
|
97
109
|
export * from './enums';
|
|
98
110
|
export * from './helper';
|
|
111
|
+
export * from './requests';
|
|
99
112
|
export * from './mod-callback-events';
|
|
100
113
|
export * from './mod-credentials';
|
package/dist/models/v1/index.js
CHANGED
|
@@ -20,7 +20,6 @@ __exportStar(require("./agent-left-event"), exports);
|
|
|
20
20
|
__exportStar(require("./app-create-request"), exports);
|
|
21
21
|
__exportStar(require("./app-event"), exports);
|
|
22
22
|
__exportStar(require("./app-message"), exports);
|
|
23
|
-
__exportStar(require("./app-message-message"), exports);
|
|
24
23
|
__exportStar(require("./app-response"), exports);
|
|
25
24
|
__exportStar(require("./app-update-request"), exports);
|
|
26
25
|
__exportStar(require("./call-message"), exports);
|
|
@@ -31,7 +30,10 @@ __exportStar(require("./channel-identity"), exports);
|
|
|
31
30
|
__exportStar(require("./channel-template-override"), exports);
|
|
32
31
|
__exportStar(require("./channel-template-reference"), exports);
|
|
33
32
|
__exportStar(require("./channel-recipient-identity"), exports);
|
|
33
|
+
__exportStar(require("./channel-specific-contact-message"), exports);
|
|
34
|
+
__exportStar(require("./channel-specific-message"), exports);
|
|
34
35
|
__exportStar(require("./choice"), exports);
|
|
36
|
+
__exportStar(require("./choice-item"), exports);
|
|
35
37
|
__exportStar(require("./choice-message"), exports);
|
|
36
38
|
__exportStar(require("./choice-response-message"), exports);
|
|
37
39
|
__exportStar(require("./client-credentials"), exports);
|
|
@@ -59,6 +61,7 @@ __exportStar(require("./create-conversation-request"), exports);
|
|
|
59
61
|
__exportStar(require("./delivery-report-based-fallback"), exports);
|
|
60
62
|
__exportStar(require("./dispatch-retention-policy"), exports);
|
|
61
63
|
__exportStar(require("./fallback-message"), exports);
|
|
64
|
+
__exportStar(require("./flow-channel-specific-message"), exports);
|
|
62
65
|
__exportStar(require("./generic-event"), exports);
|
|
63
66
|
__exportStar(require("./get-channel-profile-request"), exports);
|
|
64
67
|
__exportStar(require("./get-channel-profile-response"), exports);
|
|
@@ -76,7 +79,8 @@ __exportStar(require("./media-carousel-message"), exports);
|
|
|
76
79
|
__exportStar(require("./media-message"), exports);
|
|
77
80
|
__exportStar(require("./merge-contact-request"), exports);
|
|
78
81
|
__exportStar(require("./message-retry-settings"), exports);
|
|
79
|
-
__exportStar(require("./product"), exports);
|
|
82
|
+
__exportStar(require("./product-item"), exports);
|
|
83
|
+
__exportStar(require("./product-response-message"), exports);
|
|
80
84
|
__exportStar(require("./error-detail"), exports);
|
|
81
85
|
__exportStar(require("./lookup-capability-request"), exports);
|
|
82
86
|
__exportStar(require("./lookup-capability-response"), exports);
|
|
@@ -110,8 +114,17 @@ __exportStar(require("./v2-template-response"), exports);
|
|
|
110
114
|
__exportStar(require("./v2-template-translation"), exports);
|
|
111
115
|
__exportStar(require("./webhook"), exports);
|
|
112
116
|
__exportStar(require("./webhook-trigger"), exports);
|
|
117
|
+
__exportStar(require("./whatsapp-interactive-body"), exports);
|
|
118
|
+
__exportStar(require("./whatsapp-interactive-document-header"), exports);
|
|
119
|
+
__exportStar(require("./whatsapp-interactive-footer"), exports);
|
|
120
|
+
__exportStar(require("./whatsapp-interactive-header-media"), exports);
|
|
121
|
+
__exportStar(require("./whatsapp-interactive-image-header"), exports);
|
|
122
|
+
__exportStar(require("./whatsapp-interactive-nfm-reply"), exports);
|
|
123
|
+
__exportStar(require("./whatsapp-interactive-text-header"), exports);
|
|
124
|
+
__exportStar(require("./whatsapp-interactive-video-header"), exports);
|
|
113
125
|
__exportStar(require("./enums"), exports);
|
|
114
126
|
__exportStar(require("./helper"), exports);
|
|
127
|
+
__exportStar(require("./requests"), exports);
|
|
115
128
|
__exportStar(require("./mod-callback-events"), exports);
|
|
116
129
|
__exportStar(require("./mod-credentials"), exports);
|
|
117
130
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,uDAAqC;AACrC,qDAAmC;AACnC,uDAAqC;AACrC,8CAA4B;AAC5B,gDAA8B;AAC9B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,uDAAqC;AACrC,qDAAmC;AACnC,uDAAqC;AACrC,8CAA4B;AAC5B,gDAA8B;AAC9B,iDAA+B;AAC/B,uDAAqC;AACrC,iDAA+B;AAC/B,sDAAoC;AACpC,iDAA+B;AAC/B,qDAAmC;AACnC,qDAAmC;AACnC,8DAA4C;AAC5C,+DAA6C;AAC7C,+DAA6C;AAC7C,qEAAmD;AACnD,6DAA2C;AAC3C,2CAAyB;AACzB,gDAA8B;AAC9B,mDAAiC;AACjC,4DAA0C;AAC1C,uDAAqC;AACrC,kDAAgC;AAChC,wDAAsC;AACtC,wDAAsC;AACtC,oDAAkC;AAClC,4CAA0B;AAC1B,2DAAyC;AACzC,kDAAgC;AAChC,+CAA6B;AAC7B,yDAAuC;AACvC,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|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ChoiceItemWrapper } from '../choice-item';
|
|
2
|
+
import { ProductItemWrapper } from '../product-item';
|
|
3
3
|
/**
|
|
4
|
-
* Section for interactive
|
|
4
|
+
* Section for interactive WhatsApp messages containing ListItem
|
|
5
5
|
*/
|
|
6
6
|
export interface ListSection {
|
|
7
7
|
/** Optional parameter. Title for list section. */
|
|
8
8
|
title?: string;
|
|
9
9
|
/** List of ListItems */
|
|
10
|
-
items?:
|
|
10
|
+
items?: ChoiceItemWrapper[] | ProductItemWrapper[];
|
|
11
11
|
}
|
|
@@ -5,7 +5,7 @@ export interface MessageRetrySettings {
|
|
|
5
5
|
/**
|
|
6
6
|
* The maximum duration, in seconds, for which to retry sending a message in case of a temporary processing failure. Time is counted after the first message processing failure. At least one retry is guaranteed.
|
|
7
7
|
* Subsequent retry times are randomized with exponential backoff. If the next retry timestamp exceeds the configured time, one last retry will be performed on the cut-off time.
|
|
8
|
-
* If the message has a
|
|
8
|
+
* If the message has a configured fallback channel, a switch_on_channel will be triggered.
|
|
9
9
|
* The valid values for this field are [30 - 3600]. Default value is 3600 (seconds - 1 hour).
|
|
10
10
|
*/
|
|
11
11
|
retry_duration?: number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { ProductItemWrapper, ProductItem } from './product-item';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/product-item/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-item.js","sourceRoot":"","sources":["../../../../src/models/v1/product-item/product-item.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { ProductResponseMessage } from './product-response-message';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/product-response-message/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ProductItem } from '../product-item';
|
|
2
|
+
/**
|
|
3
|
+
* Represents an interactive WhatsApp message containing ProductItem objects
|
|
4
|
+
*/
|
|
5
|
+
export interface ProductResponseMessage {
|
|
6
|
+
/** The selected products. */
|
|
7
|
+
products: ProductItem[];
|
|
8
|
+
/** Optional parameter. Text that may be sent with selected products. */
|
|
9
|
+
text?: string;
|
|
10
|
+
/** Optional parameter. The catalog id that the selected products belong to. */
|
|
11
|
+
catalog_id?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-response-message.js","sourceRoot":"","sources":["../../../../src/models/v1/product-response-message/product-response-message.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AppCreateRequest } from '../../app-create-request';
|
|
2
|
+
import { AppUpdateRequest } from '../../app-update-request';
|
|
3
|
+
export interface CreateAppRequestData {
|
|
4
|
+
/** The app to create. */
|
|
5
|
+
'appCreateRequestBody': AppCreateRequest;
|
|
6
|
+
}
|
|
7
|
+
export interface DeleteAppRequestData {
|
|
8
|
+
/** The unique ID of the app. You can find this on the [Sinch Dashboard](https://dashboard.sinch.com/convapi/apps). */
|
|
9
|
+
'app_id': string;
|
|
10
|
+
}
|
|
11
|
+
export interface GetAppRequestData {
|
|
12
|
+
/** The unique ID of the app. You can find this on the [Sinch Dashboard](https://dashboard.sinch.com/convapi/apps). */
|
|
13
|
+
'app_id': string;
|
|
14
|
+
}
|
|
15
|
+
export interface ListAppsRequestData {
|
|
16
|
+
}
|
|
17
|
+
export interface UpdateAppRequestData {
|
|
18
|
+
/** The unique ID of the app. You can find this on the [Sinch Dashboard](https://dashboard.sinch.com/convapi/apps). */
|
|
19
|
+
'app_id': string;
|
|
20
|
+
/** The updated app. */
|
|
21
|
+
'appUpdateRequestBody': AppUpdateRequest;
|
|
22
|
+
/** The set of field mask paths. */
|
|
23
|
+
'update_mask'?: Array<string>;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-request-data.js","sourceRoot":"","sources":["../../../../../src/models/v1/requests/app/app-request-data.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Recipient } from '../../recipient';
|
|
2
|
+
import { LookupCapabilityRequest } from '../../lookup-capability-request';
|
|
3
|
+
export interface LookupCapabilityRequestData<T extends Recipient> {
|
|
4
|
+
/** The lookup capability request. */
|
|
5
|
+
'lookupCapabilityRequestBody': LookupCapabilityRequest<T>;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capability-request-data.js","sourceRoot":"","sources":["../../../../../src/models/v1/requests/capability/capability-request-data.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ContactCreateRequest } from '../../contact-create-request';
|
|
2
|
+
import { Recipient } from '../../recipient';
|
|
3
|
+
import { GetChannelProfileRequest } from '../../get-channel-profile-request';
|
|
4
|
+
import { ConversationChannel } from '../../conversation-channel';
|
|
5
|
+
import { MergeContactRequest } from '../../merge-contact-request';
|
|
6
|
+
import { Contact } from '../../contact';
|
|
7
|
+
export interface CreateContactRequestData {
|
|
8
|
+
/** The contact to create. */
|
|
9
|
+
'contactCreateRequestBody': ContactCreateRequest;
|
|
10
|
+
}
|
|
11
|
+
export interface DeleteContactRequestData {
|
|
12
|
+
/** The unique ID of the contact. */
|
|
13
|
+
'contact_id': string;
|
|
14
|
+
}
|
|
15
|
+
export interface GetChannelProfileRequestData<T extends Recipient> {
|
|
16
|
+
/** */
|
|
17
|
+
'getChannelProfileRequestBody': GetChannelProfileRequest<T>;
|
|
18
|
+
}
|
|
19
|
+
export interface GetContactRequestData {
|
|
20
|
+
/** The unique ID of the contact. */
|
|
21
|
+
'contact_id': string;
|
|
22
|
+
}
|
|
23
|
+
export interface ListContactsRequestData {
|
|
24
|
+
/** Optional. The maximum number of contacts to fetch. The default is 10 and the maximum is 20. */
|
|
25
|
+
'page_size'?: number;
|
|
26
|
+
/** Optional. Next page token previously returned if any. */
|
|
27
|
+
'page_token'?: string;
|
|
28
|
+
/** Optional. Contact identifier in an external system. If used, `channel` and `identity` query parameters can\'t be used. */
|
|
29
|
+
'external_id'?: string;
|
|
30
|
+
/** Optional. Specifies a channel, and must be set to one of the enum values. If set, the `identity` parameter must be set and `external_id` can\'t be used. Used in conjunction with `identity` to uniquely identify the specified channel identity. */
|
|
31
|
+
'channel'?: ConversationChannel;
|
|
32
|
+
/** Optional. If set, the `channel` parameter must be set and `external_id` can\'t be used. Used in conjunction with `channel` to uniquely identify the specified channel identity. This will differ from channel to channel. For example, a phone number for SMS, WhatsApp, and Viber Business. */
|
|
33
|
+
'identity'?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface MergeContactRequestData {
|
|
36
|
+
/** The unique ID of the contact that should be kept when merging two contacts. */
|
|
37
|
+
'destination_id': string;
|
|
38
|
+
/** The contact to be removed. */
|
|
39
|
+
'mergeContactRequestBody': MergeContactRequest;
|
|
40
|
+
}
|
|
41
|
+
export interface UpdateContactRequestData {
|
|
42
|
+
/** The unique ID of the contact. */
|
|
43
|
+
'contact_id': string;
|
|
44
|
+
/** The updated contact. */
|
|
45
|
+
'updateContactRequestBody': Contact;
|
|
46
|
+
/** The set of field mask paths. */
|
|
47
|
+
'update_mask'?: Array<string>;
|
|
48
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact-request-data.js","sourceRoot":"","sources":["../../../../../src/models/v1/requests/contact/contact-request-data.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { CreateConversationRequest } from '../../create-conversation-request';
|
|
2
|
+
import { InjectConversationEventRequest } from '../../inject-conversation-event-request';
|
|
3
|
+
import { InjectMessageRequest } from '../../inject-message-request';
|
|
4
|
+
import { ConversationChannel } from '../../conversation-channel';
|
|
5
|
+
import { Conversation } from '../../conversation';
|
|
6
|
+
import { ConversationMetadataUpdateStrategy } from '../../enums';
|
|
7
|
+
export interface CreateConversationRequestData {
|
|
8
|
+
/** The conversation to create. ID will be generated for the conversation and any ID in the given conversation will be ignored. */
|
|
9
|
+
'createConversationRequestBody': CreateConversationRequest;
|
|
10
|
+
}
|
|
11
|
+
export interface DeleteConversationRequestData {
|
|
12
|
+
/** The unique ID of the conversation. This is generated by the system. */
|
|
13
|
+
'conversation_id': string;
|
|
14
|
+
}
|
|
15
|
+
export interface GetConversationRequestData {
|
|
16
|
+
/** The unique ID of the conversation. This is generated by the system. */
|
|
17
|
+
'conversation_id': string;
|
|
18
|
+
}
|
|
19
|
+
export interface InjectEventRequestData {
|
|
20
|
+
/** The unique ID of the conversation. This is generated by the system. */
|
|
21
|
+
'conversation_id': string;
|
|
22
|
+
/** Inject event request */
|
|
23
|
+
'injectConversationEventRequestBody': InjectConversationEventRequest;
|
|
24
|
+
}
|
|
25
|
+
export interface InjectMessageRequestData {
|
|
26
|
+
/** The ID of the conversation. */
|
|
27
|
+
'conversation_id': string;
|
|
28
|
+
/** Message to be injected. */
|
|
29
|
+
'injectMessageRequestBody': InjectMessageRequest;
|
|
30
|
+
}
|
|
31
|
+
export interface ListConversationsRequestData {
|
|
32
|
+
/** Required. True if only active conversations should be listed. */
|
|
33
|
+
'only_active': boolean;
|
|
34
|
+
/** The ID of the app involved in the conversations. Note that either `app_id` or `contact_id` is required in order for the operation to function correctly. */
|
|
35
|
+
'app_id'?: string;
|
|
36
|
+
/** Resource name (ID) of the contact. Note that either `app_id` or `contact_id` is required in order for the operation to function correctly. */
|
|
37
|
+
'contact_id'?: string;
|
|
38
|
+
/** The maximum number of conversations to fetch. Defaults to 10 and the maximum is 20. */
|
|
39
|
+
'page_size'?: number;
|
|
40
|
+
/** Next page token previously returned if any. */
|
|
41
|
+
'page_token'?: string;
|
|
42
|
+
/** Only fetch conversations from the `active_channel` */
|
|
43
|
+
'active_channel'?: ConversationChannel;
|
|
44
|
+
}
|
|
45
|
+
export interface ListRecentConversationsRequestData {
|
|
46
|
+
/** The application ID */
|
|
47
|
+
'app_id': string;
|
|
48
|
+
/** True if only active conversations should be listed. Default is false. */
|
|
49
|
+
'only_active'?: boolean;
|
|
50
|
+
/** The maximum number of conversations to fetch. Defaults to 10 and the maximum value is 50. */
|
|
51
|
+
'page_size'?: number;
|
|
52
|
+
/** Next page token previously returned if any. When specifying this token, make sure to use the same values
|
|
53
|
+
* for the other parameters from the request that originated the token, otherwise the paged results may be inconsistent. */
|
|
54
|
+
'page_token'?: string;
|
|
55
|
+
/** Whether to sort conversations by newest message first or oldest. Default is DESC (newest first) */
|
|
56
|
+
'order'?: 'ASC' | 'DESC';
|
|
57
|
+
}
|
|
58
|
+
export interface StopActiveConversationRequestData {
|
|
59
|
+
/** The unique ID of the conversation. This is generated by the system. */
|
|
60
|
+
'conversation_id': string;
|
|
61
|
+
}
|
|
62
|
+
export interface UpdateConversationRequestData {
|
|
63
|
+
/** The unique ID of the conversation. This is generated by the system. */
|
|
64
|
+
'conversation_id': string;
|
|
65
|
+
/** The updated conversation. */
|
|
66
|
+
'updateConversationRequestBody': Conversation;
|
|
67
|
+
/** The set of field mask paths. */
|
|
68
|
+
'update_mask'?: Array<string>;
|
|
69
|
+
/** Update strategy for the `conversation_metadata` field. */
|
|
70
|
+
'metadata_update_strategy'?: ConversationMetadataUpdateStrategy;
|
|
71
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation-request-data.js","sourceRoot":"","sources":["../../../../../src/models/v1/requests/conversation/conversation-request-data.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Recipient } from '../../recipient';
|
|
2
|
+
import { SendAgentJoinedEventRequest, SendAgentLeftEventRequest, SendCommentReplyEventRequest, SendComposingEndEventRequest, SendComposingEventRequest, SendEventRequest, SendGenericEventRequest } from '../../send-event-request';
|
|
3
|
+
export interface DeleteEventRequestData {
|
|
4
|
+
/** The unique ID of the event. */
|
|
5
|
+
'event_id': string;
|
|
6
|
+
}
|
|
7
|
+
export interface GetEventRequestData {
|
|
8
|
+
/** The unique ID of the event. */
|
|
9
|
+
'event_id': string;
|
|
10
|
+
}
|
|
11
|
+
export interface ListEventsRequestData {
|
|
12
|
+
/** Resource name (id) of the conversation. One of conversation_id or contact_id needs to be present. */
|
|
13
|
+
'conversation_id'?: string;
|
|
14
|
+
/** Resource name (id) of the contact. One of conversation_id or contact_id needs to be present. */
|
|
15
|
+
'contact_id'?: string;
|
|
16
|
+
/** Maximum number of events to fetch. Defaults to 10 and the maximum is 20. */
|
|
17
|
+
'page_size'?: number;
|
|
18
|
+
/** Next page token previously returned if any. When specifying this token, make sure to use the same values
|
|
19
|
+
* for the other parameters from the request that originated the token, otherwise the paged results may be inconsistent. */
|
|
20
|
+
'page_token'?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface SendEventRequestData<T extends Recipient> {
|
|
23
|
+
/** The event to be sent. */
|
|
24
|
+
'sendEventRequestBody': SendEventRequest<T>;
|
|
25
|
+
}
|
|
26
|
+
export interface SendComposingEventRequestData<T extends Recipient> {
|
|
27
|
+
/** The event to be sent. */
|
|
28
|
+
'sendEventRequestBody': SendComposingEventRequest<T>;
|
|
29
|
+
}
|
|
30
|
+
export interface SendComposingEndEventRequestData<T extends Recipient> {
|
|
31
|
+
/** The event to be sent. */
|
|
32
|
+
'sendEventRequestBody': SendComposingEndEventRequest<T>;
|
|
33
|
+
}
|
|
34
|
+
export interface SendCommentReplyEventRequestData<T extends Recipient> {
|
|
35
|
+
/** The event to be sent. */
|
|
36
|
+
'sendEventRequestBody': SendCommentReplyEventRequest<T>;
|
|
37
|
+
}
|
|
38
|
+
export interface SendAgentJoinedEventRequestData<T extends Recipient> {
|
|
39
|
+
/** The event to be sent. */
|
|
40
|
+
'sendEventRequestBody': SendAgentJoinedEventRequest<T>;
|
|
41
|
+
}
|
|
42
|
+
export interface SendAgentLeftEventRequestData<T extends Recipient> {
|
|
43
|
+
/** The event to be sent. */
|
|
44
|
+
'sendEventRequestBody': SendAgentLeftEventRequest<T>;
|
|
45
|
+
}
|
|
46
|
+
export interface SendGenericEventRequestData<T extends Recipient> {
|
|
47
|
+
/** The event to be sent. */
|
|
48
|
+
'sendEventRequestBody': SendGenericEventRequest<T>;
|
|
49
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events-request-data.js","sourceRoot":"","sources":["../../../../../src/models/v1/requests/events/events-request-data.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './app/app-request-data';
|
|
2
|
+
export * from './capability/capability-request-data';
|
|
3
|
+
export * from './contact/contact-request-data';
|
|
4
|
+
export * from './conversation/conversation-request-data';
|
|
5
|
+
export * from './events/events-request-data';
|
|
6
|
+
export * from './messages/messages-request-data';
|
|
7
|
+
export * from './templates-v1/templates-v1-request-data';
|
|
8
|
+
export * from './templates-v2/templates-v2-request-data';
|
|
9
|
+
export * from './transcoding/transcoding-request-data';
|
|
10
|
+
export * from './webhooks/webhooks-request-data';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./app/app-request-data"), exports);
|
|
18
|
+
__exportStar(require("./capability/capability-request-data"), exports);
|
|
19
|
+
__exportStar(require("./contact/contact-request-data"), exports);
|
|
20
|
+
__exportStar(require("./conversation/conversation-request-data"), exports);
|
|
21
|
+
__exportStar(require("./events/events-request-data"), exports);
|
|
22
|
+
__exportStar(require("./messages/messages-request-data"), exports);
|
|
23
|
+
__exportStar(require("./templates-v1/templates-v1-request-data"), exports);
|
|
24
|
+
__exportStar(require("./templates-v2/templates-v2-request-data"), exports);
|
|
25
|
+
__exportStar(require("./transcoding/transcoding-request-data"), exports);
|
|
26
|
+
__exportStar(require("./webhooks/webhooks-request-data"), exports);
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { ConversationMessagesView, MessageSource } from '../../enums';
|
|
2
|
+
import { ConversationChannel } from '../../conversation-channel';
|
|
3
|
+
import { Recipient } from '../../recipient';
|
|
4
|
+
import { SendCardMessageRequest, SendCarouselMessageRequest, SendChoiceMessageRequest, SendContactInfoMessageRequest, SendListMessageRequest, SendLocationMessageRequest, SendMediaMessageRequest, SendMessageRequest, SendTemplateMessageRequest, SendTextMessageRequest } from '../../send-message-request';
|
|
5
|
+
import { UpdateMessageRequest } from '../../update-message-request';
|
|
6
|
+
export interface DeleteMessageRequestData {
|
|
7
|
+
/** The unique ID of the message. */
|
|
8
|
+
'message_id': string;
|
|
9
|
+
/** Specifies the message source for which the request will be processed. Used for operations on messages in Dispatch Mode. For more information, see [Processing Modes](../../../../../conversation/processing-modes/). */
|
|
10
|
+
'messages_source'?: MessageSource;
|
|
11
|
+
}
|
|
12
|
+
export interface GetMessageRequestData {
|
|
13
|
+
/** The unique ID of the message. */
|
|
14
|
+
'message_id': string;
|
|
15
|
+
/** Specifies the message source for which the request will be processed. Used for operations on messages in Dispatch Mode. For more information, see [Processing Modes](../../../../../conversation/processing-modes/). */
|
|
16
|
+
'messages_source'?: MessageSource;
|
|
17
|
+
}
|
|
18
|
+
export interface ListMessagesRequestData {
|
|
19
|
+
/** Resource name (ID) of the conversation. */
|
|
20
|
+
'conversation_id'?: string;
|
|
21
|
+
/** Resource name (ID) of the contact. */
|
|
22
|
+
'contact_id'?: string;
|
|
23
|
+
/** Id of the app. */
|
|
24
|
+
'app_id'?: string;
|
|
25
|
+
/** Channel identity of the contact. */
|
|
26
|
+
'channel_identity'?: string;
|
|
27
|
+
/** Filter messages with `accept_time` after this timestamp. Must be before `end_time` if that is specified. */
|
|
28
|
+
'start_time'?: Date;
|
|
29
|
+
/** Filter messages with `accept_time` before this timestamp. */
|
|
30
|
+
'end_time'?: Date;
|
|
31
|
+
/** Maximum number of messages to fetch. Defaults to 10 and the maximum is 1000. */
|
|
32
|
+
'page_size'?: number;
|
|
33
|
+
/** Next page token previously returned if any. When specifying this token, make sure to use the same values for the other parameters from the request that originated the token, otherwise the paged results may be inconsistent. */
|
|
34
|
+
'page_token'?: string;
|
|
35
|
+
/** */
|
|
36
|
+
'view'?: ConversationMessagesView;
|
|
37
|
+
/** Specifies the message source for which the request will be processed. Used for operations on messages in Dispatch Mode. For more information, see [Processing Modes](../../../../../conversation/processing-modes/). */
|
|
38
|
+
'messages_source'?: MessageSource;
|
|
39
|
+
/** If true, fetch only recipient originated messages. Available only when `messages_source` is `DISPATCH_SOURCE`. */
|
|
40
|
+
'only_recipient_originated'?: boolean;
|
|
41
|
+
/** Only fetch messages from the `channel`. */
|
|
42
|
+
'channel'?: ConversationChannel;
|
|
43
|
+
}
|
|
44
|
+
export interface SendMessageRequestData<T extends Recipient> {
|
|
45
|
+
/** This is the request body for sending a message. `app_id`, `recipient`, and `message` are all required fields. */
|
|
46
|
+
'sendMessageRequestBody': SendMessageRequest<T>;
|
|
47
|
+
}
|
|
48
|
+
export interface SendCardMessageRequestData<T extends Recipient> {
|
|
49
|
+
/** This is the request body for sending a message. `app_id`, `recipient`, and `message` are all required fields. */
|
|
50
|
+
'sendMessageRequestBody': SendCardMessageRequest<T>;
|
|
51
|
+
}
|
|
52
|
+
export interface SendCarouselMessageRequestData<T extends Recipient> {
|
|
53
|
+
/** This is the request body for sending a message. `app_id`, `recipient`, and `message` are all required fields. */
|
|
54
|
+
'sendMessageRequestBody': SendCarouselMessageRequest<T>;
|
|
55
|
+
}
|
|
56
|
+
export interface SendChoiceMessageRequestData<T extends Recipient> {
|
|
57
|
+
/** This is the request body for sending a message. `app_id`, `recipient`, and `message` are all required fields. */
|
|
58
|
+
'sendMessageRequestBody': SendChoiceMessageRequest<T>;
|
|
59
|
+
}
|
|
60
|
+
export interface SendContactInfoMessageRequestData<T extends Recipient> {
|
|
61
|
+
/** This is the request body for sending a message. `app_id`, `recipient`, and `message` are all required fields. */
|
|
62
|
+
'sendMessageRequestBody': SendContactInfoMessageRequest<T>;
|
|
63
|
+
}
|
|
64
|
+
export interface SendListMessageRequestData<T extends Recipient> {
|
|
65
|
+
/** This is the request body for sending a message. `app_id`, `recipient`, and `message` are all required fields. */
|
|
66
|
+
'sendMessageRequestBody': SendListMessageRequest<T>;
|
|
67
|
+
}
|
|
68
|
+
export interface SendLocationMessageRequestData<T extends Recipient> {
|
|
69
|
+
/** This is the request body for sending a message. `app_id`, `recipient`, and `message` are all required fields. */
|
|
70
|
+
'sendMessageRequestBody': SendLocationMessageRequest<T>;
|
|
71
|
+
}
|
|
72
|
+
export interface SendMediaMessageRequestData<T extends Recipient> {
|
|
73
|
+
/** This is the request body for sending a message. `app_id`, `recipient`, and `message` are all required fields. */
|
|
74
|
+
'sendMessageRequestBody': SendMediaMessageRequest<T>;
|
|
75
|
+
}
|
|
76
|
+
export interface SendTemplateMessageRequestData<T extends Recipient> {
|
|
77
|
+
/** This is the request body for sending a message. `app_id`, `recipient`, and `message` are all required fields. */
|
|
78
|
+
'sendMessageRequestBody': SendTemplateMessageRequest<T>;
|
|
79
|
+
}
|
|
80
|
+
export interface SendTextMessageRequestData<T extends Recipient> {
|
|
81
|
+
/** This is the request body for sending a message. `app_id`, `recipient`, and `message` are all required fields. */
|
|
82
|
+
'sendMessageRequestBody': SendTextMessageRequest<T>;
|
|
83
|
+
}
|
|
84
|
+
export interface UpdateMessageRequestData {
|
|
85
|
+
/** The unique ID of the message. */
|
|
86
|
+
'message_id': string;
|
|
87
|
+
/** Update message metadata request. */
|
|
88
|
+
'updateMessageRequestBody': UpdateMessageRequest;
|
|
89
|
+
/** Specifies the message source for which the request will be processed. Used for operations on messages in Dispatch Mode. For more information, see [Processing Modes](../../../../../conversation/processing-modes/). */
|
|
90
|
+
'messages_source'?: 'CONVERSATION_SOURCE' | 'DISPATCH_SOURCE';
|
|
91
|
+
}
|