bandwidth-sdk 6.0.0 → 6.2.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 +6 -0
- package/api/messages-api.ts +105 -7
- package/api/transcriptions-api.ts +16 -16
- package/bandwidth.yml +266 -11
- package/configuration.ts +1 -1
- package/coverage/clover.xml +134 -95
- package/coverage/coverage-final.json +8 -5
- package/coverage/lcov-report/block-navigation.js +1 -1
- package/coverage/lcov-report/index.html +17 -17
- 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 +309 -15
- package/coverage/lcov-report/node-sdk/api/mfaapi.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/multi-channel-api.ts.html +1 -1
- 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 +1 -1
- package/coverage/lcov-report/node-sdk/api/transcriptions-api.ts.html +17 -17
- package/coverage/lcov-report/node-sdk/api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/base.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/common.ts.html +1 -1
- 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/business-entity-type-enum.ts.html +187 -0
- package/coverage/lcov-report/node-sdk/models/business-registration-type-enum.ts.html +178 -0
- 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 +5 -2
- 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/inbound-callback-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/index.html +50 -5
- package/coverage/lcov-report/node-sdk/models/index.ts.html +13 -4
- 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 +6 -3
- 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 +1 -1
- package/coverage/lcov-report/node-sdk/models/product-type-enum.ts.html +199 -0
- 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/status-callback-type-enum.ts.html +1 -1
- 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-report/sorter.js +21 -7
- package/coverage/lcov.info +245 -176
- package/dist/api/messages-api.d.ts +53 -4
- package/dist/api/messages-api.js +94 -10
- package/dist/api/transcriptions-api.d.ts +16 -16
- package/dist/api/transcriptions-api.js +16 -16
- package/dist/configuration.js +1 -1
- package/dist/models/business-entity-type-enum.d.ts +24 -0
- package/dist/models/business-entity-type-enum.js +28 -0
- package/dist/models/business-registration-type-enum.d.ts +21 -0
- package/dist/models/business-registration-type-enum.js +25 -0
- package/dist/models/bxml/verbs/StartStream.d.ts +2 -0
- package/dist/models/bxml/verbs/StopStream.d.ts +1 -0
- package/dist/models/call-transcription-metadata.d.ts +1 -1
- package/dist/models/conference-member.d.ts +1 -1
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/models/list-message-item.d.ts +36 -0
- package/dist/models/message-type-enum.d.ts +1 -0
- package/dist/models/message-type-enum.js +2 -1
- package/dist/models/multi-channel-message-response-data.d.ts +1 -1
- package/dist/models/opt-in-workflow.d.ts +6 -0
- package/dist/models/product-type-enum.d.ts +28 -0
- package/dist/models/product-type-enum.js +32 -0
- package/dist/models/tfv-submission-info.d.ts +20 -0
- package/dist/models/verification-request.d.ts +32 -0
- package/dist/models/verification-update-request.d.ts +32 -0
- package/docs/BusinessEntityTypeEnum.md +17 -0
- package/docs/BusinessRegistrationTypeEnum.md +11 -0
- package/docs/CallTranscriptionMetadata.md +1 -1
- package/docs/ConferenceMember.md +1 -1
- package/docs/ListMessageItem.md +12 -0
- package/docs/MessageTypeEnum.md +2 -0
- package/docs/MessagesApi.md +36 -0
- package/docs/MultiChannelMessageResponseData.md +2 -2
- package/docs/OptInWorkflow.md +2 -0
- package/docs/ProductTypeEnum.md +25 -0
- package/docs/TfvSubmissionInfo.md +6 -0
- package/docs/TranscriptionsApi.md +4 -4
- package/docs/VerificationRequest.md +10 -0
- package/docs/VerificationUpdateRequest.md +10 -0
- package/models/business-entity-type-enum.ts +34 -0
- package/models/business-registration-type-enum.ts +31 -0
- package/models/bxml/verbs/StartStream.ts +2 -0
- package/models/bxml/verbs/StopStream.ts +1 -0
- package/models/call-transcription-metadata.ts +1 -1
- package/models/conference-member.ts +1 -1
- package/models/index.ts +3 -0
- package/models/list-message-item.ts +36 -0
- package/models/message-type-enum.ts +2 -1
- package/models/multi-channel-message-response-data.ts +1 -1
- package/models/opt-in-workflow.ts +6 -0
- package/models/product-type-enum.ts +38 -0
- package/models/tfv-submission-info.ts +26 -0
- package/models/verification-request.ts +38 -0
- package/models/verification-update-request.ts +38 -0
- package/package.json +1 -1
- package/tests/smoke/bxml.test.ts +2 -1
- package/tests/smoke/messages-api.test.ts +6 -1
- package/tests/unit/api/messages-api.test.ts +6 -0
- package/tests/unit/models/business-entity-type-enum.test.ts +11 -0
- package/tests/unit/models/business-registration-type-enum.test.ts +8 -0
- package/tests/unit/models/bxml/verbs/StartStream.test.ts +7 -5
- package/tests/unit/models/bxml/verbs/StopStream.test.ts +3 -2
- package/tests/unit/models/message-type-enum.test.ts +1 -0
- package/tests/unit/models/product-type-enum.test.ts +15 -0
|
@@ -33,7 +33,7 @@ export interface CallTranscriptionMetadata {
|
|
|
33
33
|
*/
|
|
34
34
|
'transcriptionName'?: string;
|
|
35
35
|
/**
|
|
36
|
-
* A URL that may be used to retrieve the transcription itself. This points to the [Get Call Transcription](/apis/voice/#operation/
|
|
36
|
+
* A URL that may be used to retrieve the transcription itself. This points to the [Get Call Transcription](/apis/voice-apis/voice/#tag/Transcriptions/operation/getRealTimeTranscription) endpoint.
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof CallTranscriptionMetadata
|
|
39
39
|
*/
|
|
@@ -33,7 +33,7 @@ export interface ConferenceMember {
|
|
|
33
33
|
*/
|
|
34
34
|
'conferenceId'?: string;
|
|
35
35
|
/**
|
|
36
|
-
* A URL that may be used to retrieve information about or update the state of this conference member. This is the URL of this member\'s [Get Conference Member](/apis/voice/#operation/getConferenceMember) endpoint and [Modify Conference Member](/apis/voice/#operation/updateConferenceMember) endpoint.
|
|
36
|
+
* A URL that may be used to retrieve information about or update the state of this conference member. This is the URL of this member\'s [Get Conference Member](/apis/voice-apis/voice/#tag/Conferences/operation/getConferenceMember) endpoint and [Modify Conference Member](/apis/voice-apis/voice/#tag/Conferences/operation/updateConferenceMember) endpoint.
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof ConferenceMember
|
|
39
39
|
*/
|
package/models/index.ts
CHANGED
|
@@ -5,6 +5,8 @@ export * from './answer-callback';
|
|
|
5
5
|
export * from './blocked-webhook';
|
|
6
6
|
export * from './bridge-complete-callback';
|
|
7
7
|
export * from './bridge-target-complete-callback';
|
|
8
|
+
export * from './business-entity-type-enum';
|
|
9
|
+
export * from './business-registration-type-enum';
|
|
8
10
|
export * from './call-direction-enum';
|
|
9
11
|
export * from './call-recording-metadata';
|
|
10
12
|
export * from './call-state';
|
|
@@ -87,6 +89,7 @@ export * from './multi-channel-message-response-data-channel-list-inner';
|
|
|
87
89
|
export * from './opt-in-workflow';
|
|
88
90
|
export * from './page-info';
|
|
89
91
|
export * from './priority-enum';
|
|
92
|
+
export * from './product-type-enum';
|
|
90
93
|
export * from './rbm-action-base';
|
|
91
94
|
export * from './rbm-action-dial';
|
|
92
95
|
export * from './rbm-action-open-url';
|
|
@@ -131,6 +131,42 @@ export interface ListMessageItem {
|
|
|
131
131
|
* @memberof ListMessageItem
|
|
132
132
|
*/
|
|
133
133
|
'campaignId'?: string | null;
|
|
134
|
+
/**
|
|
135
|
+
* The Bandwidth latency of the message in seconds. Only available for accounts with the Advanced Quality Metrics feature enabled.
|
|
136
|
+
* @type {number}
|
|
137
|
+
* @memberof ListMessageItem
|
|
138
|
+
*/
|
|
139
|
+
'bwLatency'?: number | null;
|
|
140
|
+
/**
|
|
141
|
+
* The carrier latency of the message in seconds. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled.
|
|
142
|
+
* @type {number}
|
|
143
|
+
* @memberof ListMessageItem
|
|
144
|
+
*/
|
|
145
|
+
'carrierLatency'?: number | null;
|
|
146
|
+
/**
|
|
147
|
+
* The A3 country code of the calling number.
|
|
148
|
+
* @type {string}
|
|
149
|
+
* @memberof ListMessageItem
|
|
150
|
+
*/
|
|
151
|
+
'callingNumberCountryA3'?: string | null;
|
|
152
|
+
/**
|
|
153
|
+
* The A3 country code of the called number.
|
|
154
|
+
* @type {string}
|
|
155
|
+
* @memberof ListMessageItem
|
|
156
|
+
*/
|
|
157
|
+
'calledNumberCountryA3'?: string | null;
|
|
158
|
+
/**
|
|
159
|
+
* The messaging product associated with the message.
|
|
160
|
+
* @type {string}
|
|
161
|
+
* @memberof ListMessageItem
|
|
162
|
+
*/
|
|
163
|
+
'product'?: string | null;
|
|
164
|
+
/**
|
|
165
|
+
* The location ID associated with this message.
|
|
166
|
+
* @type {string}
|
|
167
|
+
* @memberof ListMessageItem
|
|
168
|
+
*/
|
|
169
|
+
'location'?: string | null;
|
|
134
170
|
}
|
|
135
171
|
|
|
136
172
|
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Bandwidth
|
|
5
|
+
* Bandwidth\'s Communication APIs
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: letstalk@bandwidth.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The type of product associated with the message.
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const ProductTypeEnum = {
|
|
24
|
+
LocalA2P: 'LOCAL_A2P',
|
|
25
|
+
P2P: 'P2P',
|
|
26
|
+
ShortCodeReach: 'SHORT_CODE_REACH',
|
|
27
|
+
TollFree: 'TOLL_FREE',
|
|
28
|
+
HostedShortCode: 'HOSTED_SHORT_CODE',
|
|
29
|
+
AlphaNumeric: 'ALPHA_NUMERIC',
|
|
30
|
+
RbmMedia: 'RBM_MEDIA',
|
|
31
|
+
RbmRich: 'RBM_RICH',
|
|
32
|
+
RbmConversational: 'RBM_CONVERSATIONAL'
|
|
33
|
+
} as const;
|
|
34
|
+
|
|
35
|
+
export type ProductTypeEnum = typeof ProductTypeEnum[keyof typeof ProductTypeEnum];
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
@@ -18,6 +18,12 @@
|
|
|
18
18
|
import type { Address } from './address';
|
|
19
19
|
// May contain unused imports in some cases
|
|
20
20
|
// @ts-ignore
|
|
21
|
+
import type { BusinessEntityTypeEnum } from './business-entity-type-enum';
|
|
22
|
+
// May contain unused imports in some cases
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import type { BusinessRegistrationTypeEnum } from './business-registration-type-enum';
|
|
25
|
+
// May contain unused imports in some cases
|
|
26
|
+
// @ts-ignore
|
|
21
27
|
import type { Contact } from './contact';
|
|
22
28
|
// May contain unused imports in some cases
|
|
23
29
|
// @ts-ignore
|
|
@@ -101,5 +107,25 @@ export interface TfvSubmissionInfo {
|
|
|
101
107
|
* @memberof TfvSubmissionInfo
|
|
102
108
|
*/
|
|
103
109
|
'businessDba'?: string;
|
|
110
|
+
/**
|
|
111
|
+
* US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025.
|
|
112
|
+
* @type {string}
|
|
113
|
+
* @memberof TfvSubmissionInfo
|
|
114
|
+
*/
|
|
115
|
+
'businessRegistrationNumber'?: string | null;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @type {BusinessRegistrationTypeEnum}
|
|
119
|
+
* @memberof TfvSubmissionInfo
|
|
120
|
+
*/
|
|
121
|
+
'businessRegistrationType'?: BusinessRegistrationTypeEnum | null;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @type {BusinessEntityTypeEnum}
|
|
125
|
+
* @memberof TfvSubmissionInfo
|
|
126
|
+
*/
|
|
127
|
+
'businessEntityType'?: BusinessEntityTypeEnum | null;
|
|
104
128
|
}
|
|
105
129
|
|
|
130
|
+
|
|
131
|
+
|
|
@@ -18,6 +18,12 @@
|
|
|
18
18
|
import type { Address } from './address';
|
|
19
19
|
// May contain unused imports in some cases
|
|
20
20
|
// @ts-ignore
|
|
21
|
+
import type { BusinessEntityTypeEnum } from './business-entity-type-enum';
|
|
22
|
+
// May contain unused imports in some cases
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import type { BusinessRegistrationTypeEnum } from './business-registration-type-enum';
|
|
25
|
+
// May contain unused imports in some cases
|
|
26
|
+
// @ts-ignore
|
|
21
27
|
import type { Contact } from './contact';
|
|
22
28
|
// May contain unused imports in some cases
|
|
23
29
|
// @ts-ignore
|
|
@@ -107,5 +113,37 @@ export interface VerificationRequest {
|
|
|
107
113
|
* @memberof VerificationRequest
|
|
108
114
|
*/
|
|
109
115
|
'businessDba'?: string;
|
|
116
|
+
/**
|
|
117
|
+
* US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025.
|
|
118
|
+
* @type {string}
|
|
119
|
+
* @memberof VerificationRequest
|
|
120
|
+
*/
|
|
121
|
+
'businessRegistrationNumber'?: string | null;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @type {BusinessRegistrationTypeEnum}
|
|
125
|
+
* @memberof VerificationRequest
|
|
126
|
+
*/
|
|
127
|
+
'businessRegistrationType'?: BusinessRegistrationTypeEnum | null;
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* @type {BusinessEntityTypeEnum}
|
|
131
|
+
* @memberof VerificationRequest
|
|
132
|
+
*/
|
|
133
|
+
'businessEntityType'?: BusinessEntityTypeEnum | null;
|
|
134
|
+
/**
|
|
135
|
+
* A message that gets sent to users requesting help.
|
|
136
|
+
* @type {string}
|
|
137
|
+
* @memberof VerificationRequest
|
|
138
|
+
*/
|
|
139
|
+
'helpMessageResponse'?: string | null;
|
|
140
|
+
/**
|
|
141
|
+
* Indicates whether the content is age-gated.
|
|
142
|
+
* @type {boolean}
|
|
143
|
+
* @memberof VerificationRequest
|
|
144
|
+
*/
|
|
145
|
+
'ageGatedContent'?: boolean;
|
|
110
146
|
}
|
|
111
147
|
|
|
148
|
+
|
|
149
|
+
|
|
@@ -18,6 +18,12 @@
|
|
|
18
18
|
import type { Address } from './address';
|
|
19
19
|
// May contain unused imports in some cases
|
|
20
20
|
// @ts-ignore
|
|
21
|
+
import type { BusinessEntityTypeEnum } from './business-entity-type-enum';
|
|
22
|
+
// May contain unused imports in some cases
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import type { BusinessRegistrationTypeEnum } from './business-registration-type-enum';
|
|
25
|
+
// May contain unused imports in some cases
|
|
26
|
+
// @ts-ignore
|
|
21
27
|
import type { Contact } from './contact';
|
|
22
28
|
// May contain unused imports in some cases
|
|
23
29
|
// @ts-ignore
|
|
@@ -101,5 +107,37 @@ export interface VerificationUpdateRequest {
|
|
|
101
107
|
* @memberof VerificationUpdateRequest
|
|
102
108
|
*/
|
|
103
109
|
'businessDba'?: string;
|
|
110
|
+
/**
|
|
111
|
+
* US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025.
|
|
112
|
+
* @type {string}
|
|
113
|
+
* @memberof VerificationUpdateRequest
|
|
114
|
+
*/
|
|
115
|
+
'businessRegistrationNumber'?: string | null;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @type {BusinessRegistrationTypeEnum}
|
|
119
|
+
* @memberof VerificationUpdateRequest
|
|
120
|
+
*/
|
|
121
|
+
'businessRegistrationType'?: BusinessRegistrationTypeEnum | null;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @type {BusinessEntityTypeEnum}
|
|
125
|
+
* @memberof VerificationUpdateRequest
|
|
126
|
+
*/
|
|
127
|
+
'businessEntityType'?: BusinessEntityTypeEnum | null;
|
|
128
|
+
/**
|
|
129
|
+
* A message that gets sent to users requesting help.
|
|
130
|
+
* @type {string}
|
|
131
|
+
* @memberof VerificationUpdateRequest
|
|
132
|
+
*/
|
|
133
|
+
'helpMessageResponse'?: string | null;
|
|
134
|
+
/**
|
|
135
|
+
* Indicates whether the content is age-gated.
|
|
136
|
+
* @type {boolean}
|
|
137
|
+
* @memberof VerificationUpdateRequest
|
|
138
|
+
*/
|
|
139
|
+
'ageGatedContent'?: boolean;
|
|
104
140
|
}
|
|
105
141
|
|
|
142
|
+
|
|
143
|
+
|
package/package.json
CHANGED
package/tests/smoke/bxml.test.ts
CHANGED
|
@@ -219,7 +219,8 @@ describe('BXML Integration Tests', () => {
|
|
|
219
219
|
};
|
|
220
220
|
|
|
221
221
|
const stopStreamAttributes: StopStreamAttributes = {
|
|
222
|
-
name: 'initialName'
|
|
222
|
+
name: 'initialName',
|
|
223
|
+
wait: true
|
|
223
224
|
};
|
|
224
225
|
|
|
225
226
|
const stopTranscriptionAttributes: StopTranscriptionAttributes = {
|
|
@@ -13,6 +13,7 @@ describe('MessagesApi', () => {
|
|
|
13
13
|
const smsTag = 'nodejs sdk test SMS tag';
|
|
14
14
|
const mediaUrl = 'https://cdn2.thecatapi.com/images/MTY3ODk4Mg.jpg';
|
|
15
15
|
const priority = PriorityEnum.High;
|
|
16
|
+
const callingNumberCountryA3 = 'USA';
|
|
16
17
|
const listMessageDirection = ListMessageDirectionEnum.Outbound;
|
|
17
18
|
const expirationTime = Date.now() + 1000 * 60 * 60 * 24 + 60;
|
|
18
19
|
const expiration = new Date(expirationTime).toISOString();
|
|
@@ -67,7 +68,10 @@ describe('MessagesApi', () => {
|
|
|
67
68
|
describe('listMessages', () => {
|
|
68
69
|
test('should list messages', async () => {
|
|
69
70
|
const { status, data } =
|
|
70
|
-
await messagesApi.listMessages(BW_ACCOUNT_ID, undefined, BW_NUMBER,
|
|
71
|
+
await messagesApi.listMessages(BW_ACCOUNT_ID, undefined, BW_NUMBER,
|
|
72
|
+
undefined, undefined, listMessageDirection, undefined, undefined,
|
|
73
|
+
undefined, undefined, undefined, undefined, undefined, undefined,
|
|
74
|
+
undefined, undefined, undefined, undefined, callingNumberCountryA3);
|
|
71
75
|
|
|
72
76
|
expect(status).toEqual(200);
|
|
73
77
|
expect(data.messages).toBeInstanceOf(Array);
|
|
@@ -75,6 +79,7 @@ describe('MessagesApi', () => {
|
|
|
75
79
|
expect(data.messages![0].messageId).toHaveLength(29);
|
|
76
80
|
expect(data.messages![0].sourceTn).toEqual(BW_NUMBER);
|
|
77
81
|
expect(data.messages![0].messageDirection).toEqual(listMessageDirection);
|
|
82
|
+
expect(data.messages![0].callingNumberCountryA3).toEqual(callingNumberCountryA3);
|
|
78
83
|
});
|
|
79
84
|
});
|
|
80
85
|
|
|
@@ -87,6 +87,12 @@ describe('MessagesApi', () => {
|
|
|
87
87
|
expect(data.messages![0].recipientCount).toBeInteger();
|
|
88
88
|
expect(data.messages![0].campaignClass).toBeString();
|
|
89
89
|
expect(data.messages![0].campaignId).toBeString();
|
|
90
|
+
expect(data.messages![0].bwLatency).toBeInteger();
|
|
91
|
+
expect(data.messages![0].carrierLatency).toBeInteger();
|
|
92
|
+
expect(data.messages![0].callingNumberCountryA3).toBeString();
|
|
93
|
+
expect(data.messages![0].calledNumberCountryA3).toBeString();
|
|
94
|
+
expect(data.messages![0].product).toBeString();
|
|
95
|
+
expect(data.messages![0].location).toBeString();
|
|
90
96
|
});
|
|
91
97
|
});
|
|
92
98
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BusinessEntityTypeEnum } from '../../../models/business-entity-type-enum';
|
|
2
|
+
|
|
3
|
+
describe('BusinessEntityTypeEnum', () => {
|
|
4
|
+
test('should define the expected values', () => {
|
|
5
|
+
expect(BusinessEntityTypeEnum.SoleProprietor).toBe('SOLE_PROPRIETOR');
|
|
6
|
+
expect(BusinessEntityTypeEnum.PrivateProfit).toBe('PRIVATE_PROFIT');
|
|
7
|
+
expect(BusinessEntityTypeEnum.PublicProfit).toBe('PUBLIC_PROFIT');
|
|
8
|
+
expect(BusinessEntityTypeEnum.NonProfit).toBe('NON_PROFIT');
|
|
9
|
+
expect(BusinessEntityTypeEnum.Government).toBe('GOVERNMENT');
|
|
10
|
+
});
|
|
11
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BusinessRegistrationTypeEnum } from '../../../models/business-registration-type-enum';
|
|
2
|
+
|
|
3
|
+
describe('BusinessRegistrationTypeEnum', () => {
|
|
4
|
+
test('should define the expected values', () => {
|
|
5
|
+
expect(BusinessRegistrationTypeEnum.Ein).toBe('EIN');
|
|
6
|
+
expect(BusinessRegistrationTypeEnum.Cbn).toBe('CBN');
|
|
7
|
+
});
|
|
8
|
+
});
|
|
@@ -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);
|
|
@@ -3,10 +3,11 @@ import { StopStream, StopStreamAttributes } from '../../../../../models/bxml/ver
|
|
|
3
3
|
|
|
4
4
|
describe('StopStream', () => {
|
|
5
5
|
const attributes: StopStreamAttributes = {
|
|
6
|
-
name: 'initialName'
|
|
6
|
+
name: 'initialName',
|
|
7
|
+
wait: true
|
|
7
8
|
};
|
|
8
9
|
|
|
9
|
-
const expected = '<StopStream name="initialName"/>';
|
|
10
|
+
const expected = '<StopStream name="initialName" wait="true"/>';
|
|
10
11
|
|
|
11
12
|
test('should create a StopStream Verb', () => {
|
|
12
13
|
const stopStream = new StopStream(attributes);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ProductTypeEnum } from '../../../models/product-type-enum';
|
|
2
|
+
|
|
3
|
+
describe('ProductTypeEnum', () => {
|
|
4
|
+
test('should define the expected values', () => {
|
|
5
|
+
expect(ProductTypeEnum.LocalA2P).toBe('LOCAL_A2P');
|
|
6
|
+
expect(ProductTypeEnum.P2P).toBe('P2P');
|
|
7
|
+
expect(ProductTypeEnum.ShortCodeReach).toBe('SHORT_CODE_REACH');
|
|
8
|
+
expect(ProductTypeEnum.TollFree).toBe('TOLL_FREE');
|
|
9
|
+
expect(ProductTypeEnum.HostedShortCode).toBe('HOSTED_SHORT_CODE');
|
|
10
|
+
expect(ProductTypeEnum.AlphaNumeric).toBe('ALPHA_NUMERIC');
|
|
11
|
+
expect(ProductTypeEnum.RbmMedia).toBe('RBM_MEDIA');
|
|
12
|
+
expect(ProductTypeEnum.RbmRich).toBe('RBM_RICH');
|
|
13
|
+
expect(ProductTypeEnum.RbmConversational).toBe('RBM_CONVERSATIONAL');
|
|
14
|
+
});
|
|
15
|
+
});
|