bandwidth-sdk 5.1.0 → 6.1.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/.openapi-generator/FILES +30 -18
- package/api/multi-channel-api.ts +1 -3
- package/api/toll-free-verification-api.ts +80 -0
- package/bandwidth.yml +518 -174
- package/base.ts +6 -0
- package/configuration.ts +1 -1
- package/coverage/clover.xml +218 -194
- package/coverage/coverage-final.json +8 -9
- package/coverage/lcov-report/index.html +20 -20
- package/coverage/lcov-report/node-sdk/api/calls-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/conferences-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/index.html +15 -15
- package/coverage/lcov-report/node-sdk/api/media-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/messages-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/mfaapi.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/multi-channel-api.ts.html +3 -9
- package/coverage/lcov-report/node-sdk/api/phone-number-lookup-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/recordings-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/statistics-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/toll-free-verification-api.ts.html +251 -11
- package/coverage/lcov-report/node-sdk/api/transcriptions-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/base.ts.html +20 -2
- package/coverage/lcov-report/node-sdk/common.ts.html +18 -18
- package/coverage/lcov-report/node-sdk/configuration.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/index.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Bxml.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/NestableVerb.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Response.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Root.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Verb.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/index.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/index.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Bridge.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Conference.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/CustomParam.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Forward.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Gather.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Hangup.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Pause.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PauseRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PhoneNumber.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PlayAudio.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Record.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Redirect.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/ResumeRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Ring.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SendDtmf.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SipUri.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SpeakSentence.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartGather.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartStream.ts.html +8 -2
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartTranscription.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopGather.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopStream.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopTranscription.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StreamParam.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Tag.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Transfer.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/call-direction-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/call-state-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/call-transcription-detected-language-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/call-transcription-track-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/callback-method-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/card-width-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/conference-state-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/file-format-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/{multi-channel-status-enum.ts.html → inbound-callback-type-enum.ts.html} +10 -13
- package/coverage/lcov-report/node-sdk/models/index.html +16 -31
- package/coverage/lcov-report/node-sdk/models/index.ts.html +31 -13
- package/coverage/lcov-report/node-sdk/models/list-message-direction-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/lookup-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/machine-detection-mode-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/message-direction-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/message-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/message-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/multi-channel-message-channel-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/priority-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/rbm-action-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/rbm-media-height-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/recording-state-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/redirect-method-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/standalone-card-orientation-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/{callback-type-enum.ts.html → status-callback-type-enum.ts.html} +8 -8
- package/coverage/lcov-report/node-sdk/models/tfv-callback-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/tfv-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/thumbnail-alignment-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/webhook-subscription-type-enum.ts.html +1 -1
- package/coverage/lcov.info +563 -506
- package/dist/api/toll-free-verification-api.d.ts +37 -0
- package/dist/api/toll-free-verification-api.js +92 -0
- package/dist/base.js +6 -0
- package/dist/configuration.js +1 -1
- package/dist/models/bxml/verbs/StartStream.d.ts +2 -0
- package/dist/models/callback.d.ts +33 -0
- package/dist/models/create-multi-channel-message-response.d.ts +3 -3
- package/dist/models/error-object.d.ts +11 -4
- package/dist/models/error-source.d.ts +42 -0
- package/dist/models/failure-webhook.d.ts +1 -1
- package/dist/models/inbound-callback-message.d.ts +17 -0
- package/dist/models/inbound-callback-type-enum.d.ts +22 -0
- package/dist/models/inbound-callback-type-enum.js +26 -0
- package/dist/models/inbound-callback.d.ts +56 -0
- package/dist/models/index.d.ts +15 -9
- package/dist/models/index.js +15 -9
- package/dist/models/list-message-item.d.ts +1 -1
- package/dist/models/message-request.d.ts +1 -1
- package/dist/models/message.d.ts +3 -3
- package/dist/models/mms-message-content-file.d.ts +24 -0
- package/dist/models/mms-message-content.d.ts +4 -3
- package/dist/models/multi-channel-error.d.ts +38 -0
- package/dist/models/multi-channel-message-content.d.ts +31 -0
- package/dist/models/{tag.d.ts → multi-channel-message-response-data-channel-list-inner.d.ts} +3 -16
- package/dist/models/multi-channel-message-response-data-channel-list-inner.js +15 -0
- package/dist/models/multi-channel-message-response-data.d.ts +69 -0
- package/dist/models/multi-channel-message-response-data.js +15 -0
- package/dist/models/priority-enum.d.ts +1 -1
- package/dist/models/priority-enum.js +1 -1
- package/dist/models/rbm-action-base.d.ts +1 -1
- package/dist/models/{deferred-result.d.ts → rbm-location-response.d.ts} +10 -10
- package/dist/models/rbm-location-response.js +15 -0
- package/dist/models/rbm-suggestion-response.d.ts +30 -0
- package/dist/models/rbm-suggestion-response.js +15 -0
- package/dist/models/status-callback-message.d.ts +99 -0
- package/dist/models/status-callback-message.js +15 -0
- package/dist/models/status-callback-type-enum.d.ts +23 -0
- package/dist/models/status-callback-type-enum.js +27 -0
- package/dist/models/status-callback.d.ts +68 -0
- package/dist/models/status-callback.js +15 -0
- package/docs/Callback.md +35 -0
- package/docs/CreateMultiChannelMessageResponse.md +1 -1
- package/docs/ErrorObject.md +6 -4
- package/docs/ErrorSource.md +27 -0
- package/docs/FailureWebhook.md +2 -2
- package/docs/InboundCallback.md +31 -0
- package/docs/InboundCallbackMessage.md +50 -0
- package/docs/InboundCallbackTypeEnum.md +13 -0
- package/docs/ListMessageItem.md +1 -1
- package/docs/Message.md +3 -3
- package/docs/MessageRequest.md +1 -1
- package/docs/MessagesApi.md +1 -0
- package/docs/MmsMessageContent.md +1 -1
- package/docs/MmsMessageContentFile.md +20 -0
- package/docs/MultiChannelAction.md +2 -2
- package/docs/MultiChannelActionCalendarEvent.md +2 -2
- package/docs/MultiChannelApi.md +1 -0
- package/docs/MultiChannelChannelListObjectContent.md +1 -1
- package/docs/MultiChannelError.md +24 -0
- package/docs/MultiChannelMessageContent.md +23 -0
- package/docs/MultiChannelMessageResponseData.md +35 -0
- package/docs/MultiChannelMessageResponseDataChannelListInner.md +28 -0
- package/docs/PriorityEnum.md +1 -1
- package/docs/RbmActionBase.md +2 -2
- package/docs/RbmActionDial.md +2 -2
- package/docs/RbmActionOpenUrl.md +2 -2
- package/docs/RbmActionViewLocation.md +2 -2
- package/docs/RbmLocationResponse.md +22 -0
- package/docs/RbmSuggestionResponse.md +22 -0
- package/docs/StatusCallback.md +35 -0
- package/docs/StatusCallbackMessage.md +45 -0
- package/docs/StatusCallbackTypeEnum.md +15 -0
- package/docs/TollFreeVerificationApi.md +63 -0
- package/models/bxml/verbs/StartStream.ts +2 -0
- package/models/callback.ts +36 -0
- package/models/create-multi-channel-message-response.ts +3 -3
- package/models/error-object.ts +13 -4
- package/models/error-source.ts +48 -0
- package/models/failure-webhook.ts +1 -1
- package/models/inbound-callback-message.ts +44 -0
- package/models/inbound-callback-type-enum.ts +32 -0
- package/models/inbound-callback.ts +68 -0
- package/models/index.ts +15 -9
- package/models/list-message-item.ts +1 -1
- package/models/message-request.ts +1 -1
- package/models/message.ts +3 -3
- package/models/mms-message-content-file.ts +30 -0
- package/models/mms-message-content.ts +6 -3
- package/models/multi-channel-channel-list-object-content.ts +3 -0
- package/models/multi-channel-error.ts +48 -0
- package/models/multi-channel-message-content.ts +39 -0
- package/models/multi-channel-message-response-data-channel-list-inner.ts +32 -0
- package/models/multi-channel-message-response-data.ts +83 -0
- package/models/priority-enum.ts +1 -1
- package/models/rbm-action-base.ts +1 -1
- package/models/{deferred-result.ts → rbm-location-response.ts} +10 -10
- package/models/{tag.ts → rbm-suggestion-response.ts} +8 -8
- package/models/status-callback-message.ts +113 -0
- package/models/status-callback-type-enum.ts +33 -0
- package/models/status-callback.ts +80 -0
- package/package.json +1 -1
- package/tests/unit/api/toll-free-verification-api.test.ts +7 -0
- package/tests/unit/models/bxml/verbs/StartStream.test.ts +7 -5
- package/tests/unit/models/inbound-callback-type-enum.test.ts +9 -0
- package/tests/unit/models/status-callback-type-enum.test.ts +10 -0
- package/coverage/lcov-report/node-sdk/models/multi-channel-message-direction-enum.ts.html +0 -178
- package/dist/models/callback-type-enum.d.ts +0 -23
- package/dist/models/callback-type-enum.js +0 -27
- package/dist/models/message-callback-message.d.ts +0 -92
- package/dist/models/message-callback.d.ts +0 -62
- package/dist/models/multi-channel-callback-data.d.ts +0 -50
- package/dist/models/multi-channel-message-callback-data.d.ts +0 -69
- package/dist/models/multi-channel-message-data.d.ts +0 -75
- package/dist/models/multi-channel-message-direction-enum.d.ts +0 -21
- package/dist/models/multi-channel-message-direction-enum.js +0 -25
- package/dist/models/multi-channel-status-enum.d.ts +0 -23
- package/dist/models/multi-channel-status-enum.js +0 -27
- package/docs/CallbackTypeEnum.md +0 -15
- package/docs/DeferredResult.md +0 -22
- package/docs/MessageCallback.md +0 -33
- package/docs/MessageCallbackMessage.md +0 -43
- package/docs/MultiChannelCallbackData.md +0 -28
- package/docs/MultiChannelMessageCallbackData.md +0 -34
- package/docs/MultiChannelMessageData.md +0 -36
- package/docs/MultiChannelMessageDirectionEnum.md +0 -10
- package/docs/MultiChannelStatusEnum.md +0 -14
- package/models/callback-type-enum.ts +0 -33
- package/models/message-callback-message.ts +0 -104
- package/models/message-callback.ts +0 -74
- package/models/multi-channel-callback-data.ts +0 -62
- package/models/multi-channel-message-callback-data.ts +0 -83
- package/models/multi-channel-message-data.ts +0 -89
- package/models/multi-channel-message-direction-enum.ts +0 -31
- package/models/multi-channel-status-enum.ts +0 -33
- package/tests/unit/models/callback-type-enum.test.ts +0 -10
- package/tests/unit/models/multi-channel-message-direction-enum.test.ts +0 -8
- package/tests/unit/models/multi-channel-status-enum.test.ts +0 -10
- /package/dist/models/{deferred-result.js → callback.js} +0 -0
- /package/dist/models/{message-callback-message.js → error-source.js} +0 -0
- /package/dist/models/{message-callback.js → inbound-callback-message.js} +0 -0
- /package/dist/models/{multi-channel-callback-data.js → inbound-callback.js} +0 -0
- /package/dist/models/{multi-channel-message-callback-data.js → mms-message-content-file.js} +0 -0
- /package/dist/models/{multi-channel-message-data.js → multi-channel-error.js} +0 -0
- /package/dist/models/{tag.js → multi-channel-message-content.js} +0 -0
|
@@ -8,6 +8,8 @@ describe('StartStream', () => {
|
|
|
8
8
|
mode: 'unidirectional',
|
|
9
9
|
tracks: 'inbound',
|
|
10
10
|
destination: 'https://initial.com',
|
|
11
|
+
destinationUsername: 'initialDestUsername',
|
|
12
|
+
destinationPassword: 'initialDestPassword',
|
|
11
13
|
streamEventUrl: 'https://initial.com',
|
|
12
14
|
streamEventMethod: 'POST',
|
|
13
15
|
username: 'initialUsername',
|
|
@@ -19,7 +21,7 @@ describe('StartStream', () => {
|
|
|
19
21
|
|
|
20
22
|
test('should create a StartStream Verb', () => {
|
|
21
23
|
const startStream = new StartStream(attributes);
|
|
22
|
-
const expected = '<StartStream name="initialName" mode="unidirectional" tracks="inbound" destination="https://initial.com" streamEventUrl="https://initial.com" streamEventMethod="POST" username="initialUsername" password="initialPassword"/>';
|
|
24
|
+
const expected = '<StartStream name="initialName" mode="unidirectional" tracks="inbound" destination="https://initial.com" destinationUsername="initialDestUsername" destinationPassword="initialDestPassword" streamEventUrl="https://initial.com" streamEventMethod="POST" username="initialUsername" password="initialPassword"/>';
|
|
23
25
|
|
|
24
26
|
expect(startStream).toBeInstanceOf(StartStream);
|
|
25
27
|
expect(startStream).toBeInstanceOf(Verb);
|
|
@@ -28,9 +30,9 @@ describe('StartStream', () => {
|
|
|
28
30
|
|
|
29
31
|
test('should create a StartStream Verb with nested StreamParams', () => {
|
|
30
32
|
let startStream = new StartStream(attributes, streamParam1);
|
|
31
|
-
const expected = '<StartStream name="initialName" mode="unidirectional" tracks="inbound" destination="https://initial.com" streamEventUrl="https://initial.com" streamEventMethod="POST" username="initialUsername" password="initialPassword"><StreamParam name="streamParamName1" value="streamParamValue1"/></StartStream>';
|
|
32
|
-
const expectedSingle = '<StartStream name="initialName" mode="unidirectional" tracks="inbound" destination="https://initial.com" streamEventUrl="https://initial.com" streamEventMethod="POST" username="initialUsername" password="initialPassword"><StreamParam name="streamParamName1" value="streamParamValue1"/><StreamParam name="streamParamName2" value="streamParamValue2"/></StartStream>';
|
|
33
|
-
const expectedMultiple = '<StartStream name="initialName" mode="unidirectional" tracks="inbound" destination="https://initial.com" streamEventUrl="https://initial.com" streamEventMethod="POST" username="initialUsername" password="initialPassword"><StreamParam name="streamParamName1" value="streamParamValue1"/><StreamParam name="streamParamName2" value="streamParamValue2"/><StreamParam name="streamParamName1" value="streamParamValue1"/><StreamParam name="streamParamName2" value="streamParamValue2"/></StartStream>';
|
|
33
|
+
const expected = '<StartStream name="initialName" mode="unidirectional" tracks="inbound" destination="https://initial.com" destinationUsername="initialDestUsername" destinationPassword="initialDestPassword" streamEventUrl="https://initial.com" streamEventMethod="POST" username="initialUsername" password="initialPassword"><StreamParam name="streamParamName1" value="streamParamValue1"/></StartStream>';
|
|
34
|
+
const expectedSingle = '<StartStream name="initialName" mode="unidirectional" tracks="inbound" destination="https://initial.com" destinationUsername="initialDestUsername" destinationPassword="initialDestPassword" streamEventUrl="https://initial.com" streamEventMethod="POST" username="initialUsername" password="initialPassword"><StreamParam name="streamParamName1" value="streamParamValue1"/><StreamParam name="streamParamName2" value="streamParamValue2"/></StartStream>';
|
|
35
|
+
const expectedMultiple = '<StartStream name="initialName" mode="unidirectional" tracks="inbound" destination="https://initial.com" destinationUsername="initialDestUsername" destinationPassword="initialDestPassword" streamEventUrl="https://initial.com" streamEventMethod="POST" username="initialUsername" password="initialPassword"><StreamParam name="streamParamName1" value="streamParamValue1"/><StreamParam name="streamParamName2" value="streamParamValue2"/><StreamParam name="streamParamName1" value="streamParamValue1"/><StreamParam name="streamParamName2" value="streamParamValue2"/></StartStream>';
|
|
34
36
|
|
|
35
37
|
expect(startStream).toBeInstanceOf(StartStream);
|
|
36
38
|
expect(startStream).toBeInstanceOf(Verb);
|
|
@@ -45,7 +47,7 @@ describe('StartStream', () => {
|
|
|
45
47
|
|
|
46
48
|
test('should test the addStreamParams method when no verbs are initially nested', () => {
|
|
47
49
|
const startStream = new StartStream(attributes);
|
|
48
|
-
const expected = '<StartStream name="initialName" mode="unidirectional" tracks="inbound" destination="https://initial.com" streamEventUrl="https://initial.com" streamEventMethod="POST" username="initialUsername" password="initialPassword"><StreamParam name="streamParamName1" value="streamParamValue1"/></StartStream>';
|
|
50
|
+
const expected = '<StartStream name="initialName" mode="unidirectional" tracks="inbound" destination="https://initial.com" destinationUsername="initialDestUsername" destinationPassword="initialDestPassword" streamEventUrl="https://initial.com" streamEventMethod="POST" username="initialUsername" password="initialPassword"><StreamParam name="streamParamName1" value="streamParamValue1"/></StartStream>';
|
|
49
51
|
|
|
50
52
|
startStream.addStreamParams(streamParam1);
|
|
51
53
|
expect(startStream.toBxml()).toBe(expected);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { InboundCallbackTypeEnum } from '../../../models/inbound-callback-type-enum';
|
|
2
|
+
|
|
3
|
+
describe('InboundCallbackTypeEnum', () => {
|
|
4
|
+
test('should define the expected values', () => {
|
|
5
|
+
expect(InboundCallbackTypeEnum.MessageReceived).toBe('message-received');
|
|
6
|
+
expect(InboundCallbackTypeEnum.RequestLocationResponse).toBe('request-location-response');
|
|
7
|
+
expect(InboundCallbackTypeEnum.SuggestionResponse).toBe('suggestion-response');
|
|
8
|
+
});
|
|
9
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { StatusCallbackTypeEnum } from '../../../models/status-callback-type-enum';
|
|
2
|
+
|
|
3
|
+
describe('StatusCallbackTypeEnum', () => {
|
|
4
|
+
test('should define the expected values', () => {
|
|
5
|
+
expect(StatusCallbackTypeEnum.MessageSending).toBe('message-sending');
|
|
6
|
+
expect(StatusCallbackTypeEnum.MessageDelivered).toBe('message-delivered');
|
|
7
|
+
expect(StatusCallbackTypeEnum.MessageFailed).toBe('message-failed');
|
|
8
|
+
expect(StatusCallbackTypeEnum.MessageRead).toBe('message-read');
|
|
9
|
+
});
|
|
10
|
+
});
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
<!doctype html>
|
|
3
|
-
<html lang="en">
|
|
4
|
-
|
|
5
|
-
<head>
|
|
6
|
-
<title>Code coverage report for node-sdk/models/multi-channel-message-direction-enum.ts</title>
|
|
7
|
-
<meta charset="utf-8" />
|
|
8
|
-
<link rel="stylesheet" href="../../prettify.css" />
|
|
9
|
-
<link rel="stylesheet" href="../../base.css" />
|
|
10
|
-
<link rel="shortcut icon" type="image/x-icon" href="../../favicon.png" />
|
|
11
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
|
-
<style type='text/css'>
|
|
13
|
-
.coverage-summary .sorter {
|
|
14
|
-
background-image: url(../../sort-arrow-sprite.png);
|
|
15
|
-
}
|
|
16
|
-
</style>
|
|
17
|
-
</head>
|
|
18
|
-
|
|
19
|
-
<body>
|
|
20
|
-
<div class='wrapper'>
|
|
21
|
-
<div class='pad1'>
|
|
22
|
-
<h1><a href="../../index.html">All files</a> / <a href="index.html">node-sdk/models</a> multi-channel-message-direction-enum.ts</h1>
|
|
23
|
-
<div class='clearfix'>
|
|
24
|
-
|
|
25
|
-
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">100% </span>
|
|
27
|
-
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>1/1</span>
|
|
29
|
-
</div>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">100% </span>
|
|
34
|
-
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>0/0</span>
|
|
36
|
-
</div>
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">100% </span>
|
|
41
|
-
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>0/0</span>
|
|
43
|
-
</div>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">100% </span>
|
|
48
|
-
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>1/1</span>
|
|
50
|
-
</div>
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
</div>
|
|
54
|
-
<p class="quiet">
|
|
55
|
-
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
|
-
</p>
|
|
57
|
-
<template id="filterTemplate">
|
|
58
|
-
<div class="quiet">
|
|
59
|
-
Filter:
|
|
60
|
-
<input type="search" id="fileSearch">
|
|
61
|
-
</div>
|
|
62
|
-
</template>
|
|
63
|
-
</div>
|
|
64
|
-
<div class='status-line high'></div>
|
|
65
|
-
<pre><table class="coverage">
|
|
66
|
-
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
|
-
<a name='L2'></a><a href='#L2'>2</a>
|
|
68
|
-
<a name='L3'></a><a href='#L3'>3</a>
|
|
69
|
-
<a name='L4'></a><a href='#L4'>4</a>
|
|
70
|
-
<a name='L5'></a><a href='#L5'>5</a>
|
|
71
|
-
<a name='L6'></a><a href='#L6'>6</a>
|
|
72
|
-
<a name='L7'></a><a href='#L7'>7</a>
|
|
73
|
-
<a name='L8'></a><a href='#L8'>8</a>
|
|
74
|
-
<a name='L9'></a><a href='#L9'>9</a>
|
|
75
|
-
<a name='L10'></a><a href='#L10'>10</a>
|
|
76
|
-
<a name='L11'></a><a href='#L11'>11</a>
|
|
77
|
-
<a name='L12'></a><a href='#L12'>12</a>
|
|
78
|
-
<a name='L13'></a><a href='#L13'>13</a>
|
|
79
|
-
<a name='L14'></a><a href='#L14'>14</a>
|
|
80
|
-
<a name='L15'></a><a href='#L15'>15</a>
|
|
81
|
-
<a name='L16'></a><a href='#L16'>16</a>
|
|
82
|
-
<a name='L17'></a><a href='#L17'>17</a>
|
|
83
|
-
<a name='L18'></a><a href='#L18'>18</a>
|
|
84
|
-
<a name='L19'></a><a href='#L19'>19</a>
|
|
85
|
-
<a name='L20'></a><a href='#L20'>20</a>
|
|
86
|
-
<a name='L21'></a><a href='#L21'>21</a>
|
|
87
|
-
<a name='L22'></a><a href='#L22'>22</a>
|
|
88
|
-
<a name='L23'></a><a href='#L23'>23</a>
|
|
89
|
-
<a name='L24'></a><a href='#L24'>24</a>
|
|
90
|
-
<a name='L25'></a><a href='#L25'>25</a>
|
|
91
|
-
<a name='L26'></a><a href='#L26'>26</a>
|
|
92
|
-
<a name='L27'></a><a href='#L27'>27</a>
|
|
93
|
-
<a name='L28'></a><a href='#L28'>28</a>
|
|
94
|
-
<a name='L29'></a><a href='#L29'>29</a>
|
|
95
|
-
<a name='L30'></a><a href='#L30'>30</a>
|
|
96
|
-
<a name='L31'></a><a href='#L31'>31</a>
|
|
97
|
-
<a name='L32'></a><a href='#L32'>32</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
98
|
-
<span class="cline-any cline-neutral"> </span>
|
|
99
|
-
<span class="cline-any cline-neutral"> </span>
|
|
100
|
-
<span class="cline-any cline-neutral"> </span>
|
|
101
|
-
<span class="cline-any cline-neutral"> </span>
|
|
102
|
-
<span class="cline-any cline-neutral"> </span>
|
|
103
|
-
<span class="cline-any cline-neutral"> </span>
|
|
104
|
-
<span class="cline-any cline-neutral"> </span>
|
|
105
|
-
<span class="cline-any cline-neutral"> </span>
|
|
106
|
-
<span class="cline-any cline-neutral"> </span>
|
|
107
|
-
<span class="cline-any cline-neutral"> </span>
|
|
108
|
-
<span class="cline-any cline-neutral"> </span>
|
|
109
|
-
<span class="cline-any cline-neutral"> </span>
|
|
110
|
-
<span class="cline-any cline-neutral"> </span>
|
|
111
|
-
<span class="cline-any cline-neutral"> </span>
|
|
112
|
-
<span class="cline-any cline-neutral"> </span>
|
|
113
|
-
<span class="cline-any cline-neutral"> </span>
|
|
114
|
-
<span class="cline-any cline-neutral"> </span>
|
|
115
|
-
<span class="cline-any cline-neutral"> </span>
|
|
116
|
-
<span class="cline-any cline-neutral"> </span>
|
|
117
|
-
<span class="cline-any cline-neutral"> </span>
|
|
118
|
-
<span class="cline-any cline-neutral"> </span>
|
|
119
|
-
<span class="cline-any cline-yes">9x</span>
|
|
120
|
-
<span class="cline-any cline-neutral"> </span>
|
|
121
|
-
<span class="cline-any cline-neutral"> </span>
|
|
122
|
-
<span class="cline-any cline-neutral"> </span>
|
|
123
|
-
<span class="cline-any cline-neutral"> </span>
|
|
124
|
-
<span class="cline-any cline-neutral"> </span>
|
|
125
|
-
<span class="cline-any cline-neutral"> </span>
|
|
126
|
-
<span class="cline-any cline-neutral"> </span>
|
|
127
|
-
<span class="cline-any cline-neutral"> </span>
|
|
128
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">/* tslint:disable */
|
|
129
|
-
/* eslint-disable */
|
|
130
|
-
/**
|
|
131
|
-
* Bandwidth
|
|
132
|
-
* Bandwidth\'s Communication APIs
|
|
133
|
-
*
|
|
134
|
-
* The version of the OpenAPI document: 1.0.0
|
|
135
|
-
* Contact: letstalk@bandwidth.com
|
|
136
|
-
*
|
|
137
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
138
|
-
* https://openapi-generator.tech
|
|
139
|
-
* Do not edit the class manually.
|
|
140
|
-
*/
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
*
|
|
146
|
-
* @export
|
|
147
|
-
* @enum {string}
|
|
148
|
-
*/
|
|
149
|
-
|
|
150
|
-
export const MultiChannelMessageDirectionEnum = {
|
|
151
|
-
Inbound: 'INBOUND',
|
|
152
|
-
Outbound: 'OUTBOUND'
|
|
153
|
-
} as const;
|
|
154
|
-
|
|
155
|
-
export type MultiChannelMessageDirectionEnum = typeof MultiChannelMessageDirectionEnum[keyof typeof MultiChannelMessageDirectionEnum];
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
</pre></td></tr></table></pre>
|
|
160
|
-
|
|
161
|
-
<div class='push'></div><!-- for sticky footer -->
|
|
162
|
-
</div><!-- /wrapper -->
|
|
163
|
-
<div class='footer quiet pad2 space-top1 center small'>
|
|
164
|
-
Code coverage generated by
|
|
165
|
-
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
166
|
-
at 2025-06-03T18:25:28.102Z
|
|
167
|
-
</div>
|
|
168
|
-
<script src="../../prettify.js"></script>
|
|
169
|
-
<script>
|
|
170
|
-
window.onload = function () {
|
|
171
|
-
prettyPrint();
|
|
172
|
-
};
|
|
173
|
-
</script>
|
|
174
|
-
<script src="../../sorter.js"></script>
|
|
175
|
-
<script src="../../block-navigation.js"></script>
|
|
176
|
-
</body>
|
|
177
|
-
</html>
|
|
178
|
-
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Bandwidth
|
|
3
|
-
* Bandwidth\'s Communication APIs
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: letstalk@bandwidth.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Indicates the type of the callback: - `message-received` for inbound callbacks. - One of `message-sending`, `message-delivered`, `message-failed` for status callbacks.
|
|
14
|
-
* @export
|
|
15
|
-
* @enum {string}
|
|
16
|
-
*/
|
|
17
|
-
export declare const CallbackTypeEnum: {
|
|
18
|
-
readonly MessageReceived: "message-received";
|
|
19
|
-
readonly MessageSending: "message-sending";
|
|
20
|
-
readonly MessageDelivered: "message-delivered";
|
|
21
|
-
readonly MessageFailed: "message-failed";
|
|
22
|
-
};
|
|
23
|
-
export type CallbackTypeEnum = typeof CallbackTypeEnum[keyof typeof CallbackTypeEnum];
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Bandwidth
|
|
6
|
-
* Bandwidth\'s Communication APIs
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
* Contact: letstalk@bandwidth.com
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.CallbackTypeEnum = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Indicates the type of the callback: - `message-received` for inbound callbacks. - One of `message-sending`, `message-delivered`, `message-failed` for status callbacks.
|
|
19
|
-
* @export
|
|
20
|
-
* @enum {string}
|
|
21
|
-
*/
|
|
22
|
-
exports.CallbackTypeEnum = {
|
|
23
|
-
MessageReceived: 'message-received',
|
|
24
|
-
MessageSending: 'message-sending',
|
|
25
|
-
MessageDelivered: 'message-delivered',
|
|
26
|
-
MessageFailed: 'message-failed'
|
|
27
|
-
};
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Bandwidth
|
|
3
|
-
* Bandwidth\'s Communication APIs
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: letstalk@bandwidth.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { MessageDirectionEnum } from './message-direction-enum';
|
|
13
|
-
import type { PriorityEnum } from './priority-enum';
|
|
14
|
-
/**
|
|
15
|
-
* Message payload schema within a MessageCallback
|
|
16
|
-
* @export
|
|
17
|
-
* @interface MessageCallbackMessage
|
|
18
|
-
*/
|
|
19
|
-
export interface MessageCallbackMessage {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof MessageCallbackMessage
|
|
24
|
-
*/
|
|
25
|
-
'id': string;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {string}
|
|
29
|
-
* @memberof MessageCallbackMessage
|
|
30
|
-
*/
|
|
31
|
-
'owner': string;
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof MessageCallbackMessage
|
|
36
|
-
*/
|
|
37
|
-
'applicationId': string;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof MessageCallbackMessage
|
|
42
|
-
*/
|
|
43
|
-
'time': string;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {number}
|
|
47
|
-
* @memberof MessageCallbackMessage
|
|
48
|
-
*/
|
|
49
|
-
'segmentCount': number;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {MessageDirectionEnum}
|
|
53
|
-
* @memberof MessageCallbackMessage
|
|
54
|
-
*/
|
|
55
|
-
'direction': MessageDirectionEnum;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {Set<string>}
|
|
59
|
-
* @memberof MessageCallbackMessage
|
|
60
|
-
*/
|
|
61
|
-
'to': Set<string>;
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @type {string}
|
|
65
|
-
* @memberof MessageCallbackMessage
|
|
66
|
-
*/
|
|
67
|
-
'from': string;
|
|
68
|
-
/**
|
|
69
|
-
*
|
|
70
|
-
* @type {string}
|
|
71
|
-
* @memberof MessageCallbackMessage
|
|
72
|
-
*/
|
|
73
|
-
'text': string;
|
|
74
|
-
/**
|
|
75
|
-
*
|
|
76
|
-
* @type {string}
|
|
77
|
-
* @memberof MessageCallbackMessage
|
|
78
|
-
*/
|
|
79
|
-
'tag'?: string;
|
|
80
|
-
/**
|
|
81
|
-
* Optional media, applicable only for mms
|
|
82
|
-
* @type {Array<string>}
|
|
83
|
-
* @memberof MessageCallbackMessage
|
|
84
|
-
*/
|
|
85
|
-
'media'?: Array<string> | null;
|
|
86
|
-
/**
|
|
87
|
-
*
|
|
88
|
-
* @type {PriorityEnum}
|
|
89
|
-
* @memberof MessageCallbackMessage
|
|
90
|
-
*/
|
|
91
|
-
'priority'?: PriorityEnum;
|
|
92
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Bandwidth
|
|
3
|
-
* Bandwidth\'s Communication APIs
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: letstalk@bandwidth.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { CallbackTypeEnum } from './callback-type-enum';
|
|
13
|
-
import type { MessageCallbackMessage } from './message-callback-message';
|
|
14
|
-
/**
|
|
15
|
-
* Message Callback Schema
|
|
16
|
-
* @export
|
|
17
|
-
* @interface MessageCallback
|
|
18
|
-
*/
|
|
19
|
-
export interface MessageCallback {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof MessageCallback
|
|
24
|
-
*/
|
|
25
|
-
'time': string;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {CallbackTypeEnum}
|
|
29
|
-
* @memberof MessageCallback
|
|
30
|
-
*/
|
|
31
|
-
'type': CallbackTypeEnum;
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof MessageCallback
|
|
36
|
-
*/
|
|
37
|
-
'to': string;
|
|
38
|
-
/**
|
|
39
|
-
* A detailed description of the event described by the callback.
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof MessageCallback
|
|
42
|
-
*/
|
|
43
|
-
'description': string;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {MessageCallbackMessage}
|
|
47
|
-
* @memberof MessageCallback
|
|
48
|
-
*/
|
|
49
|
-
'message': MessageCallbackMessage;
|
|
50
|
-
/**
|
|
51
|
-
* Optional error code, applicable only when type is `message-failed`.
|
|
52
|
-
* @type {number}
|
|
53
|
-
* @memberof MessageCallback
|
|
54
|
-
*/
|
|
55
|
-
'errorCode'?: number | null;
|
|
56
|
-
/**
|
|
57
|
-
* The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to.
|
|
58
|
-
* @type {string}
|
|
59
|
-
* @memberof MessageCallback
|
|
60
|
-
*/
|
|
61
|
-
'carrierName'?: string | null;
|
|
62
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Bandwidth
|
|
3
|
-
* Bandwidth\'s Communication APIs
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: letstalk@bandwidth.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { MultiChannelMessageCallbackData } from './multi-channel-message-callback-data';
|
|
13
|
-
import type { MultiChannelStatusEnum } from './multi-channel-status-enum';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface MultiChannelCallbackData
|
|
18
|
-
*/
|
|
19
|
-
export interface MultiChannelCallbackData {
|
|
20
|
-
/**
|
|
21
|
-
* The time of the callback event.
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof MultiChannelCallbackData
|
|
24
|
-
*/
|
|
25
|
-
'time'?: string;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {MultiChannelStatusEnum}
|
|
29
|
-
* @memberof MultiChannelCallbackData
|
|
30
|
-
*/
|
|
31
|
-
'type'?: MultiChannelStatusEnum;
|
|
32
|
-
/**
|
|
33
|
-
* The phone number the message should be sent to in E164 format.
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof MultiChannelCallbackData
|
|
36
|
-
*/
|
|
37
|
-
'to'?: string;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof MultiChannelCallbackData
|
|
42
|
-
*/
|
|
43
|
-
'description'?: string;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {MultiChannelMessageCallbackData}
|
|
47
|
-
* @memberof MultiChannelCallbackData
|
|
48
|
-
*/
|
|
49
|
-
'message'?: MultiChannelMessageCallbackData;
|
|
50
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Bandwidth
|
|
3
|
-
* Bandwidth\'s Communication APIs
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: letstalk@bandwidth.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { MultiChannelMessageChannelEnum } from './multi-channel-message-channel-enum';
|
|
13
|
-
import type { MultiChannelMessageDirectionEnum } from './multi-channel-message-direction-enum';
|
|
14
|
-
import type { MultiChannelStatusEnum } from './multi-channel-status-enum';
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
* @interface MultiChannelMessageCallbackData
|
|
19
|
-
*/
|
|
20
|
-
export interface MultiChannelMessageCallbackData {
|
|
21
|
-
/**
|
|
22
|
-
* The ID of the message.
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof MultiChannelMessageCallbackData
|
|
25
|
-
*/
|
|
26
|
-
'messageId'?: string;
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {MultiChannelStatusEnum}
|
|
30
|
-
* @memberof MultiChannelMessageCallbackData
|
|
31
|
-
*/
|
|
32
|
-
'status'?: MultiChannelStatusEnum;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @type {MultiChannelMessageDirectionEnum}
|
|
36
|
-
* @memberof MultiChannelMessageCallbackData
|
|
37
|
-
*/
|
|
38
|
-
'direction'?: MultiChannelMessageDirectionEnum;
|
|
39
|
-
/**
|
|
40
|
-
* The sender ID of the message. This could be an alphanumeric sender ID.
|
|
41
|
-
* @type {string}
|
|
42
|
-
* @memberof MultiChannelMessageCallbackData
|
|
43
|
-
*/
|
|
44
|
-
'from'?: string;
|
|
45
|
-
/**
|
|
46
|
-
* The phone number the message should be sent to in E164 format.
|
|
47
|
-
* @type {string}
|
|
48
|
-
* @memberof MultiChannelMessageCallbackData
|
|
49
|
-
*/
|
|
50
|
-
'to'?: string;
|
|
51
|
-
/**
|
|
52
|
-
* The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard.
|
|
53
|
-
* @type {string}
|
|
54
|
-
* @memberof MultiChannelMessageCallbackData
|
|
55
|
-
*/
|
|
56
|
-
'applicationId'?: string;
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
59
|
-
* @type {MultiChannelMessageChannelEnum}
|
|
60
|
-
* @memberof MultiChannelMessageCallbackData
|
|
61
|
-
*/
|
|
62
|
-
'channel'?: MultiChannelMessageChannelEnum;
|
|
63
|
-
/**
|
|
64
|
-
* A custom string that will be included in callback events of the message. Max 1024 characters.
|
|
65
|
-
* @type {string}
|
|
66
|
-
* @memberof MultiChannelMessageCallbackData
|
|
67
|
-
*/
|
|
68
|
-
'tag'?: string;
|
|
69
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Bandwidth
|
|
3
|
-
* Bandwidth\'s Communication APIs
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: letstalk@bandwidth.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { MultiChannelMessageChannelEnum } from './multi-channel-message-channel-enum';
|
|
13
|
-
import type { MultiChannelMessageDirectionEnum } from './multi-channel-message-direction-enum';
|
|
14
|
-
import type { MultiChannelStatusEnum } from './multi-channel-status-enum';
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
* @interface MultiChannelMessageData
|
|
19
|
-
*/
|
|
20
|
-
export interface MultiChannelMessageData {
|
|
21
|
-
/**
|
|
22
|
-
* The ID of the message.
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof MultiChannelMessageData
|
|
25
|
-
*/
|
|
26
|
-
'messageId'?: string;
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {MultiChannelStatusEnum}
|
|
30
|
-
* @memberof MultiChannelMessageData
|
|
31
|
-
*/
|
|
32
|
-
'status'?: MultiChannelStatusEnum;
|
|
33
|
-
/**
|
|
34
|
-
* The time the message was received by the Bandwidth API.
|
|
35
|
-
* @type {string}
|
|
36
|
-
* @memberof MultiChannelMessageData
|
|
37
|
-
*/
|
|
38
|
-
'time'?: string;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {MultiChannelMessageDirectionEnum}
|
|
42
|
-
* @memberof MultiChannelMessageData
|
|
43
|
-
*/
|
|
44
|
-
'direction'?: MultiChannelMessageDirectionEnum;
|
|
45
|
-
/**
|
|
46
|
-
* The sender ID of the message. This could be an alphanumeric sender ID.
|
|
47
|
-
* @type {string}
|
|
48
|
-
* @memberof MultiChannelMessageData
|
|
49
|
-
*/
|
|
50
|
-
'from'?: string;
|
|
51
|
-
/**
|
|
52
|
-
* The phone number the message should be sent to in E164 format.
|
|
53
|
-
* @type {string}
|
|
54
|
-
* @memberof MultiChannelMessageData
|
|
55
|
-
*/
|
|
56
|
-
'to'?: string;
|
|
57
|
-
/**
|
|
58
|
-
* The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard.
|
|
59
|
-
* @type {string}
|
|
60
|
-
* @memberof MultiChannelMessageData
|
|
61
|
-
*/
|
|
62
|
-
'applicationId'?: string;
|
|
63
|
-
/**
|
|
64
|
-
*
|
|
65
|
-
* @type {MultiChannelMessageChannelEnum}
|
|
66
|
-
* @memberof MultiChannelMessageData
|
|
67
|
-
*/
|
|
68
|
-
'channel'?: MultiChannelMessageChannelEnum;
|
|
69
|
-
/**
|
|
70
|
-
* A custom string that will be included in callback events of the message. Max 1024 characters.
|
|
71
|
-
* @type {string}
|
|
72
|
-
* @memberof MultiChannelMessageData
|
|
73
|
-
*/
|
|
74
|
-
'tag'?: string;
|
|
75
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Bandwidth
|
|
3
|
-
* Bandwidth\'s Communication APIs
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: letstalk@bandwidth.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @enum {string}
|
|
16
|
-
*/
|
|
17
|
-
export declare const MultiChannelMessageDirectionEnum: {
|
|
18
|
-
readonly Inbound: "INBOUND";
|
|
19
|
-
readonly Outbound: "OUTBOUND";
|
|
20
|
-
};
|
|
21
|
-
export type MultiChannelMessageDirectionEnum = typeof MultiChannelMessageDirectionEnum[keyof typeof MultiChannelMessageDirectionEnum];
|