bandwidth-sdk 7.3.0 → 7.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +2 -0
- package/README.md +1 -0
- package/bandwidth.yml +145 -33
- package/configuration.ts +1 -1
- package/coverage/clover.xml +11 -6
- package/coverage/coverage-final.json +5 -4
- package/coverage/lcov-report/index.html +7 -7
- 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 +1 -1
- 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 +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 +1 -1
- 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 +2 -2
- 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 +2 -2
- package/coverage/lcov-report/node-sdk/models/business-registration-issuing-country-enum.ts.html +217 -0
- package/coverage/lcov-report/node-sdk/models/business-registration-type-enum.ts.html +52 -4
- 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 +1 -1
- 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/completed-lookup-status-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/deactivation-event-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/in-progress-lookup-status-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 +20 -5
- package/coverage/lcov-report/node-sdk/models/index.ts.html +7 -4
- package/coverage/lcov-report/node-sdk/models/latest-message-delivery-status-enum.ts.html +7 -4
- package/coverage/lcov-report/node-sdk/models/line-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/list-message-direction-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 +1 -1
- package/coverage/lcov-report/node-sdk/models/product-type-enum.ts.html +1 -1
- 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/rbm-open-url-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/rbm-web-view-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.info +16 -5
- package/dist/configuration.js +1 -1
- package/dist/models/business-entity-type-enum.d.ts +1 -1
- package/dist/models/business-entity-type-enum.js +1 -1
- package/dist/models/business-registration-issuing-country-enum.d.ts +34 -0
- package/dist/models/business-registration-issuing-country-enum.js +38 -0
- package/dist/models/business-registration-type-enum.d.ts +17 -1
- package/dist/models/business-registration-type-enum.js +18 -2
- package/dist/models/callback.d.ts +2 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/latest-message-delivery-status-enum.d.ts +2 -1
- package/dist/models/latest-message-delivery-status-enum.js +3 -2
- package/dist/models/message-request.d.ts +1 -1
- package/dist/models/message.d.ts +1 -1
- package/dist/models/multi-channel-channel-list-object-base.d.ts +1 -1
- package/dist/models/multi-channel-channel-list-request-object.d.ts +1 -1
- package/dist/models/multi-channel-channel-list-response-object.d.ts +1 -1
- package/dist/models/status-callback-message.d.ts +1 -1
- package/dist/models/tfv-status.d.ts +1 -1
- package/dist/models/tfv-submission-info.d.ts +4 -2
- package/dist/models/verification-request.d.ts +5 -3
- package/dist/models/verification-update-request.d.ts +5 -3
- package/docs/BusinessEntityTypeEnum.md +1 -1
- package/docs/BusinessRegistrationIssuingCountryEnum.md +41 -0
- package/docs/BusinessRegistrationTypeEnum.md +33 -1
- package/docs/InboundCallbackMessage.md +1 -1
- package/docs/LatestMessageDeliveryStatusEnum.md +3 -1
- package/docs/Message.md +1 -1
- package/docs/MessageRequest.md +1 -1
- package/docs/MultiChannelChannelListMMSObject.md +1 -1
- package/docs/MultiChannelChannelListMMSResponseObject.md +1 -1
- package/docs/MultiChannelChannelListObjectBase.md +1 -1
- package/docs/MultiChannelChannelListRBMObject.md +1 -1
- package/docs/MultiChannelChannelListRBMResponseObject.md +1 -1
- package/docs/MultiChannelChannelListRequestObject.md +1 -1
- package/docs/MultiChannelChannelListResponseObject.md +1 -1
- package/docs/MultiChannelChannelListSMSObject.md +1 -1
- package/docs/MultiChannelChannelListSMSResponseObject.md +1 -1
- package/docs/StatusCallbackMessage.md +1 -1
- package/docs/TfvStatus.md +1 -1
- package/docs/TfvSubmissionInfo.md +3 -1
- package/docs/VerificationRequest.md +5 -3
- package/docs/VerificationUpdateRequest.md +4 -2
- package/models/business-entity-type-enum.ts +1 -1
- package/models/business-registration-issuing-country-enum.ts +44 -0
- package/models/business-registration-type-enum.ts +18 -2
- package/models/callback.ts +1 -1
- package/models/index.ts +1 -0
- package/models/latest-message-delivery-status-enum.ts +3 -2
- package/models/message-request.ts +1 -1
- package/models/message.ts +1 -1
- package/models/multi-channel-channel-list-object-base.ts +1 -1
- package/models/multi-channel-channel-list-request-object.ts +1 -1
- package/models/multi-channel-channel-list-response-object.ts +1 -1
- package/models/status-callback-message.ts +1 -1
- package/models/tfv-status.ts +1 -1
- package/models/tfv-submission-info.ts +6 -2
- package/models/verification-request.ts +7 -3
- package/models/verification-update-request.ts +7 -3
- package/package.json +1 -1
- package/tests/smoke/phone-number-lookup-api.test.ts +0 -2
- package/tests/unit/api/toll-free-verification-api.test.ts +2 -1
- package/tests/unit/models/business-registration-issuing-country-enum.test.ts +23 -0
- package/tests/unit/models/business-registration-type-enum.test.ts +16 -0
- package/tests/unit/models/latest-message-delivery-status-enum.test.ts +1 -0
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { Address } from './address';
|
|
13
13
|
import type { BusinessEntityTypeEnum } from './business-entity-type-enum';
|
|
14
|
+
import type { BusinessRegistrationIssuingCountryEnum } from './business-registration-issuing-country-enum';
|
|
14
15
|
import type { BusinessRegistrationTypeEnum } from './business-registration-type-enum';
|
|
15
16
|
import type { Contact } from './contact';
|
|
16
17
|
import type { OptInWorkflow } from './opt-in-workflow';
|
|
@@ -55,9 +56,10 @@ export interface TfvSubmissionInfo {
|
|
|
55
56
|
*/
|
|
56
57
|
'businessDba'?: string;
|
|
57
58
|
/**
|
|
58
|
-
*
|
|
59
|
+
* Government-issued business identifying number. **Note:** If this field is provided, it is strongly recommended to also provide `businessRegistrationType` and `businessRegistrationIssuingCountry`. Submissions missing these fields have a high likelihood of rejection.
|
|
59
60
|
*/
|
|
60
61
|
'businessRegistrationNumber'?: string | null;
|
|
61
62
|
'businessRegistrationType'?: BusinessRegistrationTypeEnum | null;
|
|
62
|
-
'
|
|
63
|
+
'businessRegistrationIssuingCountry'?: BusinessRegistrationIssuingCountryEnum;
|
|
64
|
+
'businessEntityType'?: BusinessEntityTypeEnum;
|
|
63
65
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { Address } from './address';
|
|
13
13
|
import type { BusinessEntityTypeEnum } from './business-entity-type-enum';
|
|
14
|
+
import type { BusinessRegistrationIssuingCountryEnum } from './business-registration-issuing-country-enum';
|
|
14
15
|
import type { BusinessRegistrationTypeEnum } from './business-registration-type-enum';
|
|
15
16
|
import type { Contact } from './contact';
|
|
16
17
|
import type { OptInWorkflow } from './opt-in-workflow';
|
|
@@ -56,11 +57,12 @@ export interface VerificationRequest {
|
|
|
56
57
|
*/
|
|
57
58
|
'businessDba'?: string;
|
|
58
59
|
/**
|
|
59
|
-
*
|
|
60
|
+
* Government-issued business identifying number. **Note:** If this field is provided, it is strongly recommended to also provide `businessRegistrationType` and `businessRegistrationIssuingCountry`. Submissions missing these fields have a high likelihood of rejection.
|
|
60
61
|
*/
|
|
61
62
|
'businessRegistrationNumber'?: string | null;
|
|
62
63
|
'businessRegistrationType'?: BusinessRegistrationTypeEnum | null;
|
|
63
|
-
'
|
|
64
|
+
'businessRegistrationIssuingCountry'?: BusinessRegistrationIssuingCountryEnum;
|
|
65
|
+
'businessEntityType': BusinessEntityTypeEnum;
|
|
64
66
|
/**
|
|
65
67
|
* A message that gets sent to users requesting help.
|
|
66
68
|
*/
|
|
@@ -70,7 +72,7 @@ export interface VerificationRequest {
|
|
|
70
72
|
*/
|
|
71
73
|
'ageGatedContent'?: boolean;
|
|
72
74
|
/**
|
|
73
|
-
* The token provided by Campaign Verify to validate your political use case. Only required for 527 political organizations. If you are not a 527 political organization, this field should be omitted.
|
|
75
|
+
* The token provided by Campaign Verify to validate your political use case. Only required for 527 political organizations. If you are not a 527 political organization, this field should be omitted. Supplying an empty string will likely result in rejection.
|
|
74
76
|
*/
|
|
75
77
|
'cvToken'?: string | null;
|
|
76
78
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { Address } from './address';
|
|
13
13
|
import type { BusinessEntityTypeEnum } from './business-entity-type-enum';
|
|
14
|
+
import type { BusinessRegistrationIssuingCountryEnum } from './business-registration-issuing-country-enum';
|
|
14
15
|
import type { BusinessRegistrationTypeEnum } from './business-registration-type-enum';
|
|
15
16
|
import type { Contact } from './contact';
|
|
16
17
|
import type { OptInWorkflow } from './opt-in-workflow';
|
|
@@ -55,11 +56,12 @@ export interface VerificationUpdateRequest {
|
|
|
55
56
|
*/
|
|
56
57
|
'businessDba'?: string;
|
|
57
58
|
/**
|
|
58
|
-
*
|
|
59
|
+
* Government-issued business identifying number. **Note:** If this field is provided, it is strongly recommended to also provide `businessRegistrationType` and `businessRegistrationIssuingCountry`. Submissions missing these fields have a high likelihood of rejection.
|
|
59
60
|
*/
|
|
60
61
|
'businessRegistrationNumber'?: string | null;
|
|
61
62
|
'businessRegistrationType'?: BusinessRegistrationTypeEnum | null;
|
|
62
|
-
'businessEntityType'?: BusinessEntityTypeEnum
|
|
63
|
+
'businessEntityType'?: BusinessEntityTypeEnum;
|
|
64
|
+
'businessRegistrationIssuingCountry'?: BusinessRegistrationIssuingCountryEnum;
|
|
63
65
|
/**
|
|
64
66
|
* A message that gets sent to users requesting help.
|
|
65
67
|
*/
|
|
@@ -69,7 +71,7 @@ export interface VerificationUpdateRequest {
|
|
|
69
71
|
*/
|
|
70
72
|
'ageGatedContent'?: boolean;
|
|
71
73
|
/**
|
|
72
|
-
* The token provided by Campaign Verify to validate your political use case. Only required for 527 political organizations. If you are not a 527 political organization, this field should be omitted.
|
|
74
|
+
* The token provided by Campaign Verify to validate your political use case. Only required for 527 political organizations. If you are not a 527 political organization, this field should be omitted. Supplying an empty string will likely result in rejection.
|
|
73
75
|
*/
|
|
74
76
|
'cvToken'?: string | null;
|
|
75
77
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# BusinessEntityTypeEnum
|
|
2
2
|
|
|
3
|
-
The type of registered business.
|
|
3
|
+
The type of registered business.
|
|
4
4
|
|
|
5
5
|
## Enum
|
|
6
6
|
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# BusinessRegistrationIssuingCountryEnum
|
|
2
|
+
|
|
3
|
+
The country issuing the business registration in ISO-3166-1 alpha-3 format. Alpha-2 country codes are acceptable, but the application will convert them to alpha-3 when received, so alpha-3 is encouraged. **Note:** If this field is omitted but `businessRegistrationType` is provided, the application will attempt to infer the country based on the registration type. However, if the application cannot confidently infer the country, the submission may be rejected. To ensure the highest likelihood of acceptance, it is recommended to provide both `businessRegistrationType` and `businessRegistrationIssuingCountry`. | Registration Type | Supported Countries | |----------------------|------------------------------------| | EIN | USA | | CBN | CAN | | NEQ | CAN | | PROVINCIAL_NUMBER | CAN | | CRN | GBR, HKG | | VAT | GBR, IRL, BRA, NLD | | ACN | AUS | | ABN | AUS | | BRN | HKG | | SIREN | FRA | | SIRET | FRA | | NZBN | NZL | | UST_IDNR | DEU | | CIF | ESP | | NIF | ESP | | CNPJ | BRA | | UID | CHE | | OTHER | Must Provide Country Code |
|
|
4
|
+
|
|
5
|
+
## Enum
|
|
6
|
+
|
|
7
|
+
* `Usa` (value: `'USA'`)
|
|
8
|
+
|
|
9
|
+
* `Can` (value: `'CAN'`)
|
|
10
|
+
|
|
11
|
+
* `Hkg` (value: `'HKG'`)
|
|
12
|
+
|
|
13
|
+
* `Gbr` (value: `'GBR'`)
|
|
14
|
+
|
|
15
|
+
* `Irl` (value: `'IRL'`)
|
|
16
|
+
|
|
17
|
+
* `Bra` (value: `'BRA'`)
|
|
18
|
+
|
|
19
|
+
* `Nld` (value: `'NLD'`)
|
|
20
|
+
|
|
21
|
+
* `Aus` (value: `'AUS'`)
|
|
22
|
+
|
|
23
|
+
* `Fra` (value: `'FRA'`)
|
|
24
|
+
|
|
25
|
+
* `Nzl` (value: `'NZL'`)
|
|
26
|
+
|
|
27
|
+
* `Deu` (value: `'DEU'`)
|
|
28
|
+
|
|
29
|
+
* `Esp` (value: `'ESP'`)
|
|
30
|
+
|
|
31
|
+
* `Che` (value: `'CHE'`)
|
|
32
|
+
|
|
33
|
+
* `Cyp` (value: `'CYP'`)
|
|
34
|
+
|
|
35
|
+
* `Ind` (value: `'IND'`)
|
|
36
|
+
|
|
37
|
+
* `Chn` (value: `'CHN'`)
|
|
38
|
+
|
|
39
|
+
* `Bgr` (value: `'BGR'`)
|
|
40
|
+
|
|
41
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# BusinessRegistrationTypeEnum
|
|
2
2
|
|
|
3
|
-
The type of business registration number.
|
|
3
|
+
The type of business registration number.
|
|
4
4
|
|
|
5
5
|
## Enum
|
|
6
6
|
|
|
@@ -8,4 +8,36 @@ The type of business registration number. Optional until early 2026; required if
|
|
|
8
8
|
|
|
9
9
|
* `Cbn` (value: `'CBN'`)
|
|
10
10
|
|
|
11
|
+
* `Neq` (value: `'NEQ'`)
|
|
12
|
+
|
|
13
|
+
* `ProvincialNumber` (value: `'PROVINCIAL_NUMBER'`)
|
|
14
|
+
|
|
15
|
+
* `Crn` (value: `'CRN'`)
|
|
16
|
+
|
|
17
|
+
* `Vat` (value: `'VAT'`)
|
|
18
|
+
|
|
19
|
+
* `Acn` (value: `'ACN'`)
|
|
20
|
+
|
|
21
|
+
* `Abn` (value: `'ABN'`)
|
|
22
|
+
|
|
23
|
+
* `Brn` (value: `'BRN'`)
|
|
24
|
+
|
|
25
|
+
* `Siren` (value: `'SIREN'`)
|
|
26
|
+
|
|
27
|
+
* `Siret` (value: `'SIRET'`)
|
|
28
|
+
|
|
29
|
+
* `Nzbn` (value: `'NZBN'`)
|
|
30
|
+
|
|
31
|
+
* `UstIdnr` (value: `'UST_IDNR'`)
|
|
32
|
+
|
|
33
|
+
* `Cif` (value: `'CIF'`)
|
|
34
|
+
|
|
35
|
+
* `Nif` (value: `'NIF'`)
|
|
36
|
+
|
|
37
|
+
* `Cnpj` (value: `'CNPJ'`)
|
|
38
|
+
|
|
39
|
+
* `Uid` (value: `'UID'`)
|
|
40
|
+
|
|
41
|
+
* `Other` (value: `'OTHER'`)
|
|
42
|
+
|
|
11
43
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**id** | **string** | A unique identifier of the message. | [default to undefined]
|
|
9
9
|
**owner** | **string** | The Bandwidth phone number or alphanumeric identifier associated with the message. | [default to undefined]
|
|
10
|
-
**applicationId** | **string** | The ID of the Application your from number or senderId is associated with in the Bandwidth
|
|
10
|
+
**applicationId** | **string** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | [default to undefined]
|
|
11
11
|
**time** | **string** | | [default to undefined]
|
|
12
12
|
**segmentCount** | **number** | The number of segments the user\'s message is broken into before sending over carrier networks. | [default to undefined]
|
|
13
13
|
**direction** | [**MessageDirectionEnum**](MessageDirectionEnum.md) | | [default to undefined]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# LatestMessageDeliveryStatusEnum
|
|
2
2
|
|
|
3
|
-
[DNI-Only](#section/DNI-Only). The current delivery status of the phone number. - ACTIVE: A message was successfully sent to the number (delivery code 0). - DEACTIVATED: A message was not delivered to a number (delivery code 720) - UNKNOWN: Bandwidth cannot find an delivery status entry for the number.
|
|
3
|
+
[DNI-Only](#section/DNI-Only). The current delivery status of the phone number. - ACTIVE: A message was successfully sent to the number (delivery code 0). - DEACTIVATED: A message was not delivered to a number (delivery code 720) - UNKNOWN: Bandwidth cannot find an delivery status entry for the number. - NOT_ENABLED: The phone number is not enabled for messaging, so there is no delivery status information.
|
|
4
4
|
|
|
5
5
|
## Enum
|
|
6
6
|
|
|
@@ -10,4 +10,6 @@
|
|
|
10
10
|
|
|
11
11
|
* `Unknown` (value: `'UNKNOWN'`)
|
|
12
12
|
|
|
13
|
+
* `NotEnabled` (value: `'NOT_ENABLED'`)
|
|
14
|
+
|
|
13
15
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/Message.md
CHANGED
|
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**id** | **string** | The id of the message. | [optional] [default to undefined]
|
|
9
9
|
**owner** | **string** | The Bandwidth phone number associated with the message. | [optional] [default to undefined]
|
|
10
|
-
**applicationId** | **string** | The ID of the Application your from number or senderId is associated with in the Bandwidth
|
|
10
|
+
**applicationId** | **string** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | [optional] [default to undefined]
|
|
11
11
|
**time** | **string** | The datetime stamp of the message in ISO 8601 | [optional] [default to undefined]
|
|
12
12
|
**segmentCount** | **number** | The number of segments the user\'s message is broken into before sending over carrier networks. | [optional] [default to undefined]
|
|
13
13
|
**direction** | [**MessageDirectionEnum**](MessageDirectionEnum.md) | | [optional] [default to undefined]
|
package/docs/MessageRequest.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**applicationId** | **string** | The ID of the Application your from number or senderId is associated with in the Bandwidth
|
|
8
|
+
**applicationId** | **string** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | [default to undefined]
|
|
9
9
|
**to** | **Set<string>** | The phone number(s) the message should be sent to in E164 format. | [default to undefined]
|
|
10
10
|
**from** | **string** | Either an alphanumeric sender ID or the sender\'s Bandwidth phone number in E.164 format, which must be hosted within Bandwidth and linked to the account that is generating the message. Alphanumeric Sender IDs can contain up to 11 characters, upper-case letters A-Z, lower-case letters a-z, numbers 0-9, space, hyphen -, plus +, underscore _ and ampersand &. Alphanumeric Sender IDs must contain at least one letter. | [default to undefined]
|
|
11
11
|
**text** | **string** | The contents of the text message. Must be 2048 characters or less. | [optional] [default to undefined]
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**from** | **string** | The sender ID of the message. This could be an alphanumeric sender ID. | [default to undefined]
|
|
9
|
-
**applicationId** | **string** | The ID of the Application your from number or senderId is associated with in the Bandwidth
|
|
9
|
+
**applicationId** | **string** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | [default to undefined]
|
|
10
10
|
**channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | [default to undefined]
|
|
11
11
|
**content** | [**MmsMessageContent**](MmsMessageContent.md) | | [default to undefined]
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**from** | **string** | The sender ID of the message. This could be an alphanumeric sender ID. | [default to undefined]
|
|
9
|
-
**applicationId** | **string** | The ID of the Application your from number or senderId is associated with in the Bandwidth
|
|
9
|
+
**applicationId** | **string** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | [default to undefined]
|
|
10
10
|
**channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | [default to undefined]
|
|
11
11
|
**content** | [**MmsMessageContent**](MmsMessageContent.md) | | [default to undefined]
|
|
12
12
|
**owner** | **string** | The Bandwidth senderId associated with the message. Identical to \'from\'. | [default to undefined]
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**from** | **string** | The sender ID of the message. This could be an alphanumeric sender ID. | [default to undefined]
|
|
9
|
-
**applicationId** | **string** | The ID of the Application your from number or senderId is associated with in the Bandwidth
|
|
9
|
+
**applicationId** | **string** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | [default to undefined]
|
|
10
10
|
**channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | [default to undefined]
|
|
11
11
|
|
|
12
12
|
## Example
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**from** | **string** | The sender ID of the message. This could be an alphanumeric sender ID. | [default to undefined]
|
|
9
|
-
**applicationId** | **string** | The ID of the Application your from number or senderId is associated with in the Bandwidth
|
|
9
|
+
**applicationId** | **string** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | [default to undefined]
|
|
10
10
|
**channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | [default to undefined]
|
|
11
11
|
**content** | [**MultiChannelChannelListRBMObjectAllOfContent**](MultiChannelChannelListRBMObjectAllOfContent.md) | | [default to undefined]
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**from** | **string** | The sender ID of the message. This could be an alphanumeric sender ID. | [default to undefined]
|
|
9
|
-
**applicationId** | **string** | The ID of the Application your from number or senderId is associated with in the Bandwidth
|
|
9
|
+
**applicationId** | **string** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | [default to undefined]
|
|
10
10
|
**channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | [default to undefined]
|
|
11
11
|
**content** | [**MultiChannelChannelListRBMObjectAllOfContent**](MultiChannelChannelListRBMObjectAllOfContent.md) | | [default to undefined]
|
|
12
12
|
**owner** | **string** | The Bandwidth senderId associated with the message. Identical to \'from\'. | [default to undefined]
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**from** | **string** | The sender ID of the message. This could be an alphanumeric sender ID. | [default to undefined]
|
|
9
|
-
**applicationId** | **string** | The ID of the Application your from number or senderId is associated with in the Bandwidth
|
|
9
|
+
**applicationId** | **string** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | [default to undefined]
|
|
10
10
|
**channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | [default to undefined]
|
|
11
11
|
**content** | [**MmsMessageContent**](MmsMessageContent.md) | | [default to undefined]
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**from** | **string** | The sender ID of the message. This could be an alphanumeric sender ID. | [default to undefined]
|
|
9
|
-
**applicationId** | **string** | The ID of the Application your from number or senderId is associated with in the Bandwidth
|
|
9
|
+
**applicationId** | **string** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | [default to undefined]
|
|
10
10
|
**channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | [default to undefined]
|
|
11
11
|
**content** | [**MmsMessageContent**](MmsMessageContent.md) | | [default to undefined]
|
|
12
12
|
**owner** | **string** | The Bandwidth senderId associated with the message. Identical to \'from\'. | [default to undefined]
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**from** | **string** | The sender ID of the message. This could be an alphanumeric sender ID. | [default to undefined]
|
|
9
|
-
**applicationId** | **string** | The ID of the Application your from number or senderId is associated with in the Bandwidth
|
|
9
|
+
**applicationId** | **string** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | [default to undefined]
|
|
10
10
|
**channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | [default to undefined]
|
|
11
11
|
**content** | [**SmsMessageContent**](SmsMessageContent.md) | | [default to undefined]
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**from** | **string** | The sender ID of the message. This could be an alphanumeric sender ID. | [default to undefined]
|
|
9
|
-
**applicationId** | **string** | The ID of the Application your from number or senderId is associated with in the Bandwidth
|
|
9
|
+
**applicationId** | **string** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | [default to undefined]
|
|
10
10
|
**channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | [default to undefined]
|
|
11
11
|
**content** | [**SmsMessageContent**](SmsMessageContent.md) | | [default to undefined]
|
|
12
12
|
**owner** | **string** | The Bandwidth senderId associated with the message. Identical to \'from\'. | [default to undefined]
|
|
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
9
|
**id** | **string** | A unique identifier of the message. | [default to undefined]
|
|
10
10
|
**owner** | **string** | The Bandwidth phone number or alphanumeric identifier associated with the message. | [default to undefined]
|
|
11
|
-
**applicationId** | **string** | The ID of the Application your from number or senderId is associated with in the Bandwidth
|
|
11
|
+
**applicationId** | **string** | The ID of the Application your from number or senderId is associated with in the Bandwidth App. | [default to undefined]
|
|
12
12
|
**time** | **string** | | [default to undefined]
|
|
13
13
|
**segmentCount** | **number** | The number of segments the user\'s message is broken into before sending over carrier networks. | [default to undefined]
|
|
14
14
|
**direction** | [**MessageDirectionEnum**](MessageDirectionEnum.md) | | [default to undefined]
|
package/docs/TfvStatus.md
CHANGED
|
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
|
|
|
15
15
|
**submission** | [**TfvSubmissionInfo**](TfvSubmissionInfo.md) | | [optional] [default to undefined]
|
|
16
16
|
**blocked** | **boolean** | Whether a Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. | [optional] [default to undefined]
|
|
17
17
|
**blockedReason** | **string** | The reason why the Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. | [optional] [default to undefined]
|
|
18
|
-
**cvToken** | **string** | The token provided by Campaign Verify to validate your political use case. Only required for 527 political organizations. If you are not a 527 political organization, this field should be omitted.
|
|
18
|
+
**cvToken** | **string** | The token provided by Campaign Verify to validate your political use case. Only required for 527 political organizations. If you are not a 527 political organization, this field should be omitted. Supplying an empty string will likely result in rejection. | [optional] [default to undefined]
|
|
19
19
|
|
|
20
20
|
## Example
|
|
21
21
|
|
|
@@ -17,8 +17,9 @@ Name | Type | Description | Notes
|
|
|
17
17
|
**privacyPolicyUrl** | **string** | The Toll-Free Verification request privacy policy URL. | [optional] [default to undefined]
|
|
18
18
|
**termsAndConditionsUrl** | **string** | The Toll-Free Verification request terms and conditions policy URL. | [optional] [default to undefined]
|
|
19
19
|
**businessDba** | **string** | The company \'Doing Business As\'. | [optional] [default to undefined]
|
|
20
|
-
**businessRegistrationNumber** | **string** |
|
|
20
|
+
**businessRegistrationNumber** | **string** | Government-issued business identifying number. **Note:** If this field is provided, it is strongly recommended to also provide `businessRegistrationType` and `businessRegistrationIssuingCountry`. Submissions missing these fields have a high likelihood of rejection. | [optional] [default to undefined]
|
|
21
21
|
**businessRegistrationType** | [**BusinessRegistrationTypeEnum**](BusinessRegistrationTypeEnum.md) | | [optional] [default to undefined]
|
|
22
|
+
**businessRegistrationIssuingCountry** | [**BusinessRegistrationIssuingCountryEnum**](BusinessRegistrationIssuingCountryEnum.md) | | [optional] [default to undefined]
|
|
22
23
|
**businessEntityType** | [**BusinessEntityTypeEnum**](BusinessEntityTypeEnum.md) | | [optional] [default to undefined]
|
|
23
24
|
|
|
24
25
|
## Example
|
|
@@ -41,6 +42,7 @@ const instance: TfvSubmissionInfo = {
|
|
|
41
42
|
businessDba,
|
|
42
43
|
businessRegistrationNumber,
|
|
43
44
|
businessRegistrationType,
|
|
45
|
+
businessRegistrationIssuingCountry,
|
|
44
46
|
businessEntityType,
|
|
45
47
|
};
|
|
46
48
|
```
|
|
@@ -18,12 +18,13 @@ Name | Type | Description | Notes
|
|
|
18
18
|
**privacyPolicyUrl** | **string** | The Toll-Free Verification request privacy policy URL. | [optional] [default to undefined]
|
|
19
19
|
**termsAndConditionsUrl** | **string** | The Toll-Free Verification request terms and conditions policy URL. | [optional] [default to undefined]
|
|
20
20
|
**businessDba** | **string** | The company \'Doing Business As\'. | [optional] [default to undefined]
|
|
21
|
-
**businessRegistrationNumber** | **string** |
|
|
21
|
+
**businessRegistrationNumber** | **string** | Government-issued business identifying number. **Note:** If this field is provided, it is strongly recommended to also provide `businessRegistrationType` and `businessRegistrationIssuingCountry`. Submissions missing these fields have a high likelihood of rejection. | [optional] [default to undefined]
|
|
22
22
|
**businessRegistrationType** | [**BusinessRegistrationTypeEnum**](BusinessRegistrationTypeEnum.md) | | [optional] [default to undefined]
|
|
23
|
-
**
|
|
23
|
+
**businessRegistrationIssuingCountry** | [**BusinessRegistrationIssuingCountryEnum**](BusinessRegistrationIssuingCountryEnum.md) | | [optional] [default to undefined]
|
|
24
|
+
**businessEntityType** | [**BusinessEntityTypeEnum**](BusinessEntityTypeEnum.md) | | [default to undefined]
|
|
24
25
|
**helpMessageResponse** | **string** | A message that gets sent to users requesting help. | [optional] [default to undefined]
|
|
25
26
|
**ageGatedContent** | **boolean** | Indicates whether the content is age-gated. | [optional] [default to undefined]
|
|
26
|
-
**cvToken** | **string** | The token provided by Campaign Verify to validate your political use case. Only required for 527 political organizations. If you are not a 527 political organization, this field should be omitted.
|
|
27
|
+
**cvToken** | **string** | The token provided by Campaign Verify to validate your political use case. Only required for 527 political organizations. If you are not a 527 political organization, this field should be omitted. Supplying an empty string will likely result in rejection. | [optional] [default to undefined]
|
|
27
28
|
|
|
28
29
|
## Example
|
|
29
30
|
|
|
@@ -46,6 +47,7 @@ const instance: VerificationRequest = {
|
|
|
46
47
|
businessDba,
|
|
47
48
|
businessRegistrationNumber,
|
|
48
49
|
businessRegistrationType,
|
|
50
|
+
businessRegistrationIssuingCountry,
|
|
49
51
|
businessEntityType,
|
|
50
52
|
helpMessageResponse,
|
|
51
53
|
ageGatedContent,
|
|
@@ -17,12 +17,13 @@ Name | Type | Description | Notes
|
|
|
17
17
|
**privacyPolicyUrl** | **string** | The Toll-Free Verification request privacy policy URL. | [optional] [default to undefined]
|
|
18
18
|
**termsAndConditionsUrl** | **string** | The Toll-Free Verification request terms and conditions policy URL. | [optional] [default to undefined]
|
|
19
19
|
**businessDba** | **string** | The company \'Doing Business As\'. | [optional] [default to undefined]
|
|
20
|
-
**businessRegistrationNumber** | **string** |
|
|
20
|
+
**businessRegistrationNumber** | **string** | Government-issued business identifying number. **Note:** If this field is provided, it is strongly recommended to also provide `businessRegistrationType` and `businessRegistrationIssuingCountry`. Submissions missing these fields have a high likelihood of rejection. | [optional] [default to undefined]
|
|
21
21
|
**businessRegistrationType** | [**BusinessRegistrationTypeEnum**](BusinessRegistrationTypeEnum.md) | | [optional] [default to undefined]
|
|
22
22
|
**businessEntityType** | [**BusinessEntityTypeEnum**](BusinessEntityTypeEnum.md) | | [optional] [default to undefined]
|
|
23
|
+
**businessRegistrationIssuingCountry** | [**BusinessRegistrationIssuingCountryEnum**](BusinessRegistrationIssuingCountryEnum.md) | | [optional] [default to undefined]
|
|
23
24
|
**helpMessageResponse** | **string** | A message that gets sent to users requesting help. | [optional] [default to undefined]
|
|
24
25
|
**ageGatedContent** | **boolean** | Indicates whether the content is age-gated. | [optional] [default to undefined]
|
|
25
|
-
**cvToken** | **string** | The token provided by Campaign Verify to validate your political use case. Only required for 527 political organizations. If you are not a 527 political organization, this field should be omitted.
|
|
26
|
+
**cvToken** | **string** | The token provided by Campaign Verify to validate your political use case. Only required for 527 political organizations. If you are not a 527 political organization, this field should be omitted. Supplying an empty string will likely result in rejection. | [optional] [default to undefined]
|
|
26
27
|
|
|
27
28
|
## Example
|
|
28
29
|
|
|
@@ -45,6 +46,7 @@ const instance: VerificationUpdateRequest = {
|
|
|
45
46
|
businessRegistrationNumber,
|
|
46
47
|
businessRegistrationType,
|
|
47
48
|
businessEntityType,
|
|
49
|
+
businessRegistrationIssuingCountry,
|
|
48
50
|
helpMessageResponse,
|
|
49
51
|
ageGatedContent,
|
|
50
52
|
cvToken,
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* The type of registered business.
|
|
18
|
+
* The type of registered business.
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
21
|
export const BusinessEntityTypeEnum = {
|
|
@@ -0,0 +1,44 @@
|
|
|
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 country issuing the business registration in ISO-3166-1 alpha-3 format. Alpha-2 country codes are acceptable, but the application will convert them to alpha-3 when received, so alpha-3 is encouraged. **Note:** If this field is omitted but `businessRegistrationType` is provided, the application will attempt to infer the country based on the registration type. However, if the application cannot confidently infer the country, the submission may be rejected. To ensure the highest likelihood of acceptance, it is recommended to provide both `businessRegistrationType` and `businessRegistrationIssuingCountry`. | Registration Type | Supported Countries | |----------------------|------------------------------------| | EIN | USA | | CBN | CAN | | NEQ | CAN | | PROVINCIAL_NUMBER | CAN | | CRN | GBR, HKG | | VAT | GBR, IRL, BRA, NLD | | ACN | AUS | | ABN | AUS | | BRN | HKG | | SIREN | FRA | | SIRET | FRA | | NZBN | NZL | | UST_IDNR | DEU | | CIF | ESP | | NIF | ESP | | CNPJ | BRA | | UID | CHE | | OTHER | Must Provide Country Code |
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
export const BusinessRegistrationIssuingCountryEnum = {
|
|
22
|
+
Usa: 'USA',
|
|
23
|
+
Can: 'CAN',
|
|
24
|
+
Hkg: 'HKG',
|
|
25
|
+
Gbr: 'GBR',
|
|
26
|
+
Irl: 'IRL',
|
|
27
|
+
Bra: 'BRA',
|
|
28
|
+
Nld: 'NLD',
|
|
29
|
+
Aus: 'AUS',
|
|
30
|
+
Fra: 'FRA',
|
|
31
|
+
Nzl: 'NZL',
|
|
32
|
+
Deu: 'DEU',
|
|
33
|
+
Esp: 'ESP',
|
|
34
|
+
Che: 'CHE',
|
|
35
|
+
Cyp: 'CYP',
|
|
36
|
+
Ind: 'IND',
|
|
37
|
+
Chn: 'CHN',
|
|
38
|
+
Bgr: 'BGR'
|
|
39
|
+
} as const;
|
|
40
|
+
|
|
41
|
+
export type BusinessRegistrationIssuingCountryEnum = typeof BusinessRegistrationIssuingCountryEnum[keyof typeof BusinessRegistrationIssuingCountryEnum];
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
@@ -15,12 +15,28 @@
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* The type of business registration number.
|
|
18
|
+
* The type of business registration number.
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
21
|
export const BusinessRegistrationTypeEnum = {
|
|
22
22
|
Ein: 'EIN',
|
|
23
|
-
Cbn: 'CBN'
|
|
23
|
+
Cbn: 'CBN',
|
|
24
|
+
Neq: 'NEQ',
|
|
25
|
+
ProvincialNumber: 'PROVINCIAL_NUMBER',
|
|
26
|
+
Crn: 'CRN',
|
|
27
|
+
Vat: 'VAT',
|
|
28
|
+
Acn: 'ACN',
|
|
29
|
+
Abn: 'ABN',
|
|
30
|
+
Brn: 'BRN',
|
|
31
|
+
Siren: 'SIREN',
|
|
32
|
+
Siret: 'SIRET',
|
|
33
|
+
Nzbn: 'NZBN',
|
|
34
|
+
UstIdnr: 'UST_IDNR',
|
|
35
|
+
Cif: 'CIF',
|
|
36
|
+
Nif: 'NIF',
|
|
37
|
+
Cnpj: 'CNPJ',
|
|
38
|
+
Uid: 'UID',
|
|
39
|
+
Other: 'OTHER'
|
|
24
40
|
} as const;
|
|
25
41
|
|
|
26
42
|
export type BusinessRegistrationTypeEnum = typeof BusinessRegistrationTypeEnum[keyof typeof BusinessRegistrationTypeEnum];
|
package/models/callback.ts
CHANGED
|
@@ -30,6 +30,6 @@ import type { StatusCallback } from './status-callback';
|
|
|
30
30
|
* @type Callback
|
|
31
31
|
* Callbacks are divided into two types based on direction of the related message: - `statusCallback` indicates status of an outbound MT SMS, MMS, or RBM message. - `inboundCallback` indicates an inbound MO message or a multichannel message client\'s response to a suggestion or location request.
|
|
32
32
|
*/
|
|
33
|
-
export type Callback = { type: 'message-delivered' } & StatusCallback | { type: 'message-failed' } & StatusCallback | { type: 'message-read' } & StatusCallback | { type: 'message-received' } & InboundCallback | { type: 'message-sent' } & StatusCallback | { type: 'request-location-response' } & InboundCallback | { type: 'suggestion-response' } & InboundCallback;
|
|
33
|
+
export type Callback = { type: 'message-delivered' } & StatusCallback | { type: 'message-failed' } & StatusCallback | { type: 'message-read' } & StatusCallback | { type: 'message-received' } & InboundCallback | { type: 'message-sending' } & StatusCallback | { type: 'message-sent' } & StatusCallback | { type: 'request-location-response' } & InboundCallback | { type: 'suggestion-response' } & InboundCallback;
|
|
34
34
|
|
|
35
35
|
|
package/models/index.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './blocked-webhook';
|
|
|
7
7
|
export * from './bridge-complete-callback';
|
|
8
8
|
export * from './bridge-target-complete-callback';
|
|
9
9
|
export * from './business-entity-type-enum';
|
|
10
|
+
export * from './business-registration-issuing-country-enum';
|
|
10
11
|
export * from './business-registration-type-enum';
|
|
11
12
|
export * from './call-direction-enum';
|
|
12
13
|
export * from './call-recording-metadata';
|
|
@@ -15,13 +15,14 @@
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* [DNI-Only](#section/DNI-Only). The current delivery status of the phone number. - ACTIVE: A message was successfully sent to the number (delivery code 0). - DEACTIVATED: A message was not delivered to a number (delivery code 720) - UNKNOWN: Bandwidth cannot find an delivery status entry for the number.
|
|
18
|
+
* [DNI-Only](#section/DNI-Only). The current delivery status of the phone number. - ACTIVE: A message was successfully sent to the number (delivery code 0). - DEACTIVATED: A message was not delivered to a number (delivery code 720) - UNKNOWN: Bandwidth cannot find an delivery status entry for the number. - NOT_ENABLED: The phone number is not enabled for messaging, so there is no delivery status information.
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
21
|
export const LatestMessageDeliveryStatusEnum = {
|
|
22
22
|
Active: 'ACTIVE',
|
|
23
23
|
Deactivated: 'DEACTIVATED',
|
|
24
|
-
Unknown: 'UNKNOWN'
|
|
24
|
+
Unknown: 'UNKNOWN',
|
|
25
|
+
NotEnabled: 'NOT_ENABLED'
|
|
25
26
|
} as const;
|
|
26
27
|
|
|
27
28
|
export type LatestMessageDeliveryStatusEnum = typeof LatestMessageDeliveryStatusEnum[keyof typeof LatestMessageDeliveryStatusEnum];
|
|
@@ -19,7 +19,7 @@ import type { PriorityEnum } from './priority-enum';
|
|
|
19
19
|
|
|
20
20
|
export interface MessageRequest {
|
|
21
21
|
/**
|
|
22
|
-
* The ID of the Application your from number or senderId is associated with in the Bandwidth
|
|
22
|
+
* The ID of the Application your from number or senderId is associated with in the Bandwidth App.
|
|
23
23
|
*/
|
|
24
24
|
'applicationId': string;
|
|
25
25
|
/**
|
package/models/message.ts
CHANGED
|
@@ -30,7 +30,7 @@ export interface Message {
|
|
|
30
30
|
*/
|
|
31
31
|
'owner'?: string;
|
|
32
32
|
/**
|
|
33
|
-
* The ID of the Application your from number or senderId is associated with in the Bandwidth
|
|
33
|
+
* The ID of the Application your from number or senderId is associated with in the Bandwidth App.
|
|
34
34
|
*/
|
|
35
35
|
'applicationId'?: string;
|
|
36
36
|
/**
|
|
@@ -23,7 +23,7 @@ export interface MultiChannelChannelListObjectBase {
|
|
|
23
23
|
*/
|
|
24
24
|
'from': string;
|
|
25
25
|
/**
|
|
26
|
-
* The ID of the Application your from number or senderId is associated with in the Bandwidth
|
|
26
|
+
* The ID of the Application your from number or senderId is associated with in the Bandwidth App.
|
|
27
27
|
*/
|
|
28
28
|
'applicationId': string;
|
|
29
29
|
'channel': MultiChannelMessageChannelEnum;
|
|
@@ -35,7 +35,7 @@ export interface MultiChannelChannelListRequestObject {
|
|
|
35
35
|
*/
|
|
36
36
|
'from': string;
|
|
37
37
|
/**
|
|
38
|
-
* The ID of the Application your from number or senderId is associated with in the Bandwidth
|
|
38
|
+
* The ID of the Application your from number or senderId is associated with in the Bandwidth App.
|
|
39
39
|
*/
|
|
40
40
|
'applicationId': string;
|
|
41
41
|
'channel': MultiChannelMessageChannelEnum;
|
|
@@ -35,7 +35,7 @@ export interface MultiChannelChannelListResponseObject {
|
|
|
35
35
|
*/
|
|
36
36
|
'from': string;
|
|
37
37
|
/**
|
|
38
|
-
* The ID of the Application your from number or senderId is associated with in the Bandwidth
|
|
38
|
+
* The ID of the Application your from number or senderId is associated with in the Bandwidth App.
|
|
39
39
|
*/
|
|
40
40
|
'applicationId': string;
|
|
41
41
|
'channel': MultiChannelMessageChannelEnum;
|
|
@@ -36,7 +36,7 @@ export interface StatusCallbackMessage {
|
|
|
36
36
|
*/
|
|
37
37
|
'owner': string;
|
|
38
38
|
/**
|
|
39
|
-
* The ID of the Application your from number or senderId is associated with in the Bandwidth
|
|
39
|
+
* The ID of the Application your from number or senderId is associated with in the Bandwidth App.
|
|
40
40
|
*/
|
|
41
41
|
'applicationId': string;
|
|
42
42
|
'time': string;
|