twilio 5.10.1 → 5.10.2

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.
@@ -1,5 +1,5 @@
1
1
  import TokenManager from "./TokenManager";
2
- import { TokenListInstanceCreateOptions } from "../../rest/iam/v1/token";
2
+ import { TokenListInstanceCreateOptions } from "../../rest/oauth/v2/token";
3
3
  export default class ApiTokenManager implements TokenManager {
4
4
  private params;
5
5
  constructor(params: TokenListInstanceCreateOptions);
@@ -3,9 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const token_1 = require("../../rest/iam/v1/token");
7
- const IamBase_1 = __importDefault(require("../../rest/IamBase"));
8
- const V1_1 = __importDefault(require("../../rest/iam/V1"));
6
+ const token_1 = require("../../rest/oauth/v2/token");
7
+ const OauthBase_1 = __importDefault(require("../../rest/OauthBase"));
8
+ const V2_1 = __importDefault(require("../../rest/oauth/V2"));
9
9
  const NoAuthCredentialProvider_1 = __importDefault(require("../../credential_provider/NoAuthCredentialProvider"));
10
10
  const BaseTwilio_1 = require("../../base/BaseTwilio");
11
11
  class ApiTokenManager {
@@ -19,7 +19,7 @@ class ApiTokenManager {
19
19
  const noAuthCredentialProvider = new NoAuthCredentialProvider_1.default.NoAuthCredentialProvider();
20
20
  const client = new BaseTwilio_1.Client();
21
21
  client.setCredentialProvider(noAuthCredentialProvider);
22
- const tokenListInstance = (0, token_1.TokenListInstance)(new V1_1.default(new IamBase_1.default(client)));
22
+ const tokenListInstance = (0, token_1.TokenListInstance)(new V2_1.default(new OauthBase_1.default(client)));
23
23
  return tokenListInstance
24
24
  .create(this.params)
25
25
  .then((token) => {
@@ -1,5 +1,5 @@
1
1
  import TokenManager from "./TokenManager";
2
- import { TokenListInstanceCreateOptions } from "../../rest/iam/v1/token";
2
+ import { TokenListInstanceCreateOptions } from "../../rest/oauth/v2/token";
3
3
  export default class OrgsTokenManager implements TokenManager {
4
4
  private readonly params;
5
5
  constructor(params: TokenListInstanceCreateOptions);
@@ -3,9 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const token_1 = require("../../rest/iam/v1/token");
7
- const IamBase_1 = __importDefault(require("../../rest/IamBase"));
8
- const V1_1 = __importDefault(require("../../rest/iam/V1"));
6
+ const token_1 = require("../../rest/oauth/v2/token");
7
+ const OauthBase_1 = __importDefault(require("../../rest/OauthBase"));
8
+ const V2_1 = __importDefault(require("../../rest/oauth/V2"));
9
9
  const NoAuthCredentialProvider_1 = __importDefault(require("../../credential_provider/NoAuthCredentialProvider"));
10
10
  const BaseTwilio_1 = require("../../base/BaseTwilio");
11
11
  class OrgsTokenManager {
@@ -19,7 +19,7 @@ class OrgsTokenManager {
19
19
  const noAuthCredentialProvider = new NoAuthCredentialProvider_1.default.NoAuthCredentialProvider();
20
20
  const client = new BaseTwilio_1.Client();
21
21
  client.setCredentialProvider(noAuthCredentialProvider);
22
- const tokenListInstance = (0, token_1.TokenListInstance)(new V1_1.default(new IamBase_1.default(client)));
22
+ const tokenListInstance = (0, token_1.TokenListInstance)(new V2_1.default(new OauthBase_1.default(client)));
23
23
  return tokenListInstance
24
24
  .create(this.params)
25
25
  .then((token) => {
@@ -3,14 +3,14 @@ import Page, { TwilioResponsePayload } from "../../../../base/Page";
3
3
  import Response from "../../../../http/response";
4
4
  import V1 from "../../V1";
5
5
  /**
6
- * The push technology to use for the Binding. Can be: `apn`, `gcm`, or `fcm`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
6
+ * The push technology to use for the Binding. Can be: `apn`, `gcm`, `fcm`, or `twilsock`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
7
7
  */
8
- export type BindingBindingType = "apn" | "gcm" | "fcm";
8
+ export type BindingBindingType = "apn" | "gcm" | "fcm" | "twilsock";
9
9
  /**
10
10
  * Options to pass to each
11
11
  */
12
12
  export interface BindingListInstanceEachOptions {
13
- /** The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. */
13
+ /** The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, `fcm`, or `twilsock`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. */
14
14
  bindingType?: Array<BindingBindingType>;
15
15
  /** The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details. */
16
16
  identity?: Array<string>;
@@ -27,7 +27,7 @@ export interface BindingListInstanceEachOptions {
27
27
  * Options to pass to list
28
28
  */
29
29
  export interface BindingListInstanceOptions {
30
- /** The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. */
30
+ /** The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, `fcm`, or `twilsock`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. */
31
31
  bindingType?: Array<BindingBindingType>;
32
32
  /** The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details. */
33
33
  identity?: Array<string>;
@@ -40,7 +40,7 @@ export interface BindingListInstanceOptions {
40
40
  * Options to pass to page
41
41
  */
42
42
  export interface BindingListInstancePageOptions {
43
- /** The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. */
43
+ /** The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, `fcm`, or `twilsock`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. */
44
44
  bindingType?: Array<BindingBindingType>;
45
45
  /** The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details. */
46
46
  identity?: Array<string>;
@@ -8,7 +8,7 @@ import { WebhookListInstance } from "./conversation/webhook";
8
8
  /**
9
9
  * Current state of this conversation. Can be either `initializing`, `active`, `inactive` or `closed` and defaults to `active`
10
10
  */
11
- export type ConversationState = "inactive" | "active" | "closed";
11
+ export type ConversationState = "inactive" | "active" | "closed" | "initializing";
12
12
  export type ConversationWebhookEnabledType = "true" | "false";
13
13
  /**
14
14
  * Options to pass to remove a ConversationInstance
@@ -1,9 +1,68 @@
1
1
  import { inspect, InspectOptions } from "util";
2
2
  import V2 from "../V2";
3
+ export declare class CallForwarding {
4
+ "callForwardingEnabled"?: boolean;
5
+ "errorCode"?: number;
6
+ }
7
+ export declare class CallerName {
8
+ "callerName"?: string;
9
+ "callerType"?: string;
10
+ "errorCode"?: number;
11
+ }
12
+ export declare class IdentityMatch {
13
+ "firstNameMatch"?: string;
14
+ "lastNameMatch"?: string;
15
+ "addressLinesMatch"?: string;
16
+ "cityMatch"?: string;
17
+ "stateMatch"?: string;
18
+ "postalCodeMatch"?: string;
19
+ "addressCountryMatch"?: string;
20
+ "nationalIdMatch"?: string;
21
+ "dateOfBirthMatch"?: string;
22
+ "summaryScore"?: number;
23
+ "errorCode"?: number;
24
+ "errorMessage"?: string;
25
+ }
26
+ export declare class LastSimSwap {
27
+ "lastSimSwapDate"?: Date;
28
+ "swappedPeriod"?: string;
29
+ "swappedInPeriod"?: boolean;
30
+ }
31
+ export declare class LineStatus {
32
+ "status"?: string;
33
+ "errorCode"?: number;
34
+ }
35
+ export declare class LineTypeIntelligence {
36
+ "mobileCountryCode"?: string;
37
+ "mobileNetworkCode"?: string;
38
+ "carrierName"?: string;
39
+ "type"?: string;
40
+ "errorCode"?: number;
41
+ }
42
+ export declare class ReassignedNumber {
43
+ "lastVerifiedDate"?: string;
44
+ "isNumberReassigned"?: string;
45
+ "errorCode"?: string;
46
+ }
47
+ export declare class SimSwap {
48
+ "lastSimSwap"?: LastSimSwap;
49
+ "carrierName"?: string;
50
+ "mobileCountryCode"?: string;
51
+ "mobileNetworkCode"?: string;
52
+ "errorCode"?: number;
53
+ }
54
+ export declare class SmsPumpingRisk {
55
+ "carrierRiskCategory"?: string;
56
+ "numberBlocked"?: boolean;
57
+ "numberBlockedDate"?: Date;
58
+ "numberBlockedLast3Months"?: boolean;
59
+ "smsPumpingRiskScore"?: number;
60
+ "errorCode"?: number;
61
+ }
3
62
  /**
4
63
  * Contains reasons why a phone number is invalid. Possible values: TOO_SHORT, TOO_LONG, INVALID_BUT_POSSIBLE, INVALID_COUNTRY_CODE, INVALID_LENGTH, NOT_A_NUMBER.
5
64
  */
6
- export type PhoneNumberValidationError = "TOO_SHORT" | "TOO_LONG" | "INVALID_BUT_POSSIBLE" | "INVALID_COUNTRY_CODE" | "INVALID_LENGTH" | "NOT_A_NUMBER";
65
+ export type ValidationError = "TOO_SHORT" | "TOO_LONG" | "INVALID_BUT_POSSIBLE" | "INVALID_COUNTRY_CODE" | "INVALID_LENGTH" | "NOT_A_NUMBER";
7
66
  /**
8
67
  * Options to pass to fetch a PhoneNumberInstance
9
68
  */
@@ -86,15 +145,15 @@ interface PhoneNumberResource {
86
145
  phone_number: string;
87
146
  national_format: string;
88
147
  valid: boolean;
89
- validation_errors: Array<PhoneNumberValidationError>;
90
- caller_name: any;
91
- sim_swap: any;
92
- call_forwarding: any;
93
- line_status: any;
94
- line_type_intelligence: any;
95
- identity_match: any;
96
- reassigned_number: any;
97
- sms_pumping_risk: any;
148
+ validation_errors: Array<ValidationError>;
149
+ caller_name: CallerName;
150
+ sim_swap: SimSwap;
151
+ call_forwarding: CallForwarding;
152
+ line_type_intelligence: LineTypeIntelligence;
153
+ line_status: LineStatus;
154
+ identity_match: IdentityMatch;
155
+ reassigned_number: ReassignedNumber;
156
+ sms_pumping_risk: SmsPumpingRisk;
98
157
  phone_number_quality_score: any;
99
158
  pre_fill: any;
100
159
  url: string;
@@ -127,39 +186,15 @@ export declare class PhoneNumberInstance {
127
186
  /**
128
187
  * Contains reasons why a phone number is invalid. Possible values: TOO_SHORT, TOO_LONG, INVALID_BUT_POSSIBLE, INVALID_COUNTRY_CODE, INVALID_LENGTH, NOT_A_NUMBER.
129
188
  */
130
- validationErrors: Array<PhoneNumberValidationError>;
131
- /**
132
- * An object that contains caller name information based on [CNAM](https://support.twilio.com/hc/en-us/articles/360051670533-Getting-Started-with-CNAM-Caller-ID).
133
- */
134
- callerName: any;
135
- /**
136
- * An object that contains information on the last date the subscriber identity module (SIM) was changed for a mobile phone number.
137
- */
138
- simSwap: any;
139
- /**
140
- * An object that contains information on the unconditional call forwarding status of mobile phone number.
141
- */
142
- callForwarding: any;
143
- /**
144
- * An object that contains line status information for a mobile phone number.
145
- */
146
- lineStatus: any;
147
- /**
148
- * An object that contains line type information including the carrier name, mobile country code, and mobile network code.
149
- */
150
- lineTypeIntelligence: any;
151
- /**
152
- * An object that contains identity match information. The result of comparing user-provided information including name, address, date of birth, national ID, against authoritative phone-based data sources
153
- */
154
- identityMatch: any;
155
- /**
156
- * An object that contains reassigned number information. Reassigned Numbers will return a phone number\'s reassignment status given a phone number and date
157
- */
158
- reassignedNumber: any;
159
- /**
160
- * An object that contains information on if a phone number has been currently or previously blocked by Verify Fraud Guard for receiving malicious SMS pumping traffic as well as other signals associated with risky carriers and low conversion rates.
161
- */
162
- smsPumpingRisk: any;
189
+ validationErrors: Array<ValidationError>;
190
+ callerName: CallerName;
191
+ simSwap: SimSwap;
192
+ callForwarding: CallForwarding;
193
+ lineTypeIntelligence: LineTypeIntelligence;
194
+ lineStatus: LineStatus;
195
+ identityMatch: IdentityMatch;
196
+ reassignedNumber: ReassignedNumber;
197
+ smsPumpingRisk: SmsPumpingRisk;
163
198
  /**
164
199
  * An object that contains information of a mobile phone number quality score. Quality score will return a risk score about the phone number.
165
200
  */
@@ -201,15 +236,15 @@ export declare class PhoneNumberInstance {
201
236
  phoneNumber: string;
202
237
  nationalFormat: string;
203
238
  valid: boolean;
204
- validationErrors: PhoneNumberValidationError[];
205
- callerName: any;
206
- simSwap: any;
207
- callForwarding: any;
208
- lineStatus: any;
209
- lineTypeIntelligence: any;
210
- identityMatch: any;
211
- reassignedNumber: any;
212
- smsPumpingRisk: any;
239
+ validationErrors: ValidationError[];
240
+ callerName: CallerName;
241
+ simSwap: SimSwap;
242
+ callForwarding: CallForwarding;
243
+ lineTypeIntelligence: LineTypeIntelligence;
244
+ lineStatus: LineStatus;
245
+ identityMatch: IdentityMatch;
246
+ reassignedNumber: ReassignedNumber;
247
+ smsPumpingRisk: SmsPumpingRisk;
213
248
  phoneNumberQualityScore: any;
214
249
  preFill: any;
215
250
  url: string;
@@ -13,12 +13,39 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.PhoneNumberInstance = exports.PhoneNumberContextImpl = void 0;
16
+ exports.PhoneNumberInstance = exports.PhoneNumberContextImpl = exports.SmsPumpingRisk = exports.SimSwap = exports.ReassignedNumber = exports.LineTypeIntelligence = exports.LineStatus = exports.LastSimSwap = exports.IdentityMatch = exports.CallerName = exports.CallForwarding = void 0;
17
17
  exports.PhoneNumberListInstance = PhoneNumberListInstance;
18
18
  const util_1 = require("util");
19
19
  const deserialize = require("../../../base/deserialize");
20
20
  const serialize = require("../../../base/serialize");
21
21
  const utility_1 = require("../../../base/utility");
22
+ class CallForwarding {
23
+ }
24
+ exports.CallForwarding = CallForwarding;
25
+ class CallerName {
26
+ }
27
+ exports.CallerName = CallerName;
28
+ class IdentityMatch {
29
+ }
30
+ exports.IdentityMatch = IdentityMatch;
31
+ class LastSimSwap {
32
+ }
33
+ exports.LastSimSwap = LastSimSwap;
34
+ class LineStatus {
35
+ }
36
+ exports.LineStatus = LineStatus;
37
+ class LineTypeIntelligence {
38
+ }
39
+ exports.LineTypeIntelligence = LineTypeIntelligence;
40
+ class ReassignedNumber {
41
+ }
42
+ exports.ReassignedNumber = ReassignedNumber;
43
+ class SimSwap {
44
+ }
45
+ exports.SimSwap = SimSwap;
46
+ class SmsPumpingRisk {
47
+ }
48
+ exports.SmsPumpingRisk = SmsPumpingRisk;
22
49
  class PhoneNumberContextImpl {
23
50
  constructor(_version, phoneNumber) {
24
51
  this._version = _version;
@@ -105,8 +132,8 @@ class PhoneNumberInstance {
105
132
  this.callerName = payload.caller_name;
106
133
  this.simSwap = payload.sim_swap;
107
134
  this.callForwarding = payload.call_forwarding;
108
- this.lineStatus = payload.line_status;
109
135
  this.lineTypeIntelligence = payload.line_type_intelligence;
136
+ this.lineStatus = payload.line_status;
110
137
  this.identityMatch = payload.identity_match;
111
138
  this.reassignedNumber = payload.reassigned_number;
112
139
  this.smsPumpingRisk = payload.sms_pumping_risk;
@@ -140,8 +167,8 @@ class PhoneNumberInstance {
140
167
  callerName: this.callerName,
141
168
  simSwap: this.simSwap,
142
169
  callForwarding: this.callForwarding,
143
- lineStatus: this.lineStatus,
144
170
  lineTypeIntelligence: this.lineTypeIntelligence,
171
+ lineStatus: this.lineStatus,
145
172
  identityMatch: this.identityMatch,
146
173
  reassignedNumber: this.reassignedNumber,
147
174
  smsPumpingRisk: this.smsPumpingRisk,
@@ -12,11 +12,11 @@ export declare class CallerName {
12
12
  export declare class IdentityMatch {
13
13
  "firstNameMatch"?: string;
14
14
  "lastNameMatch"?: string;
15
- "addressLineMatch"?: string;
15
+ "addressLinesMatch"?: string;
16
16
  "cityMatch"?: string;
17
17
  "stateMatch"?: string;
18
18
  "postalCodeMatch"?: string;
19
- "countryCodeMatch"?: string;
19
+ "addressCountryMatch"?: string;
20
20
  "nationalIdMatch"?: string;
21
21
  "dateOfBirthMatch"?: string;
22
22
  "summaryScore"?: number;
@@ -45,16 +45,13 @@ export declare class LineStatus {
45
45
  "errorCode"?: number;
46
46
  }
47
47
  export declare class LineTypeIntelligence {
48
- "type"?: string;
49
- "carrierName"?: string;
50
48
  "mobileCountryCode"?: string;
51
49
  "mobileNetworkCode"?: string;
50
+ "carrierName"?: string;
51
+ "type"?: string;
52
52
  "errorCode"?: number;
53
53
  }
54
- export declare class LookupRequest1 {
55
- "phoneNumbers"?: Array<LookupRequestWithCorId>;
56
- }
57
- export declare class LookupRequestWithCorId {
54
+ export declare class LookupBatchRequest {
58
55
  /**
59
56
  * Unique identifier used to match request with response
60
57
  */
@@ -63,10 +60,10 @@ export declare class LookupRequestWithCorId {
63
60
  "fields"?: Array<string>;
64
61
  "countryCode"?: string;
65
62
  "identityMatch"?: IdentityMatchParameters;
66
- "reassignedNumber"?: ReassignedNumberRequest;
67
- "smsPumpingRisk"?: SmsPumpingRiskParameters;
63
+ "reassignedNumber"?: ReassignedNumberParameters;
64
+ "smsPumpingRisk"?: RiskParameters;
68
65
  }
69
- export declare class LookupResponseWithCorId {
66
+ export declare class LookupBatchResponse {
70
67
  /**
71
68
  * Unique identifier used to match request with response
72
69
  */
@@ -87,17 +84,25 @@ export declare class LookupResponseWithCorId {
87
84
  "lineTypeIntelligence"?: LineTypeIntelligence;
88
85
  "lineStatus"?: LineStatus;
89
86
  "identityMatch"?: IdentityMatch;
90
- "reassignedNumber"?: ReassignedNumberResponse;
87
+ "reassignedNumber"?: ReassignedNumber;
91
88
  "smsPumpingRisk"?: SmsPumpingRisk;
89
+ "phoneNumberQualityScore"?: any | null;
90
+ "preFill"?: any | null;
92
91
  }
93
- export declare class ReassignedNumberRequest {
94
- "lastVerifiedDate"?: string;
92
+ export declare class LookupRequest {
93
+ "phoneNumbers"?: Array<LookupBatchRequest>;
95
94
  }
96
- export declare class ReassignedNumberResponse {
95
+ export declare class ReassignedNumber {
97
96
  "lastVerifiedDate"?: string;
98
97
  "isNumberReassigned"?: string;
99
98
  "errorCode"?: string;
100
99
  }
100
+ export declare class ReassignedNumberParameters {
101
+ "lastVerifiedDate"?: string;
102
+ }
103
+ export declare class RiskParameters {
104
+ "partnerSubId"?: string;
105
+ }
101
106
  export declare class SimSwap {
102
107
  "lastSimSwap"?: LastSimSwap;
103
108
  "carrierName"?: string;
@@ -113,15 +118,12 @@ export declare class SmsPumpingRisk {
113
118
  "smsPumpingRiskScore"?: number;
114
119
  "errorCode"?: number;
115
120
  }
116
- export declare class SmsPumpingRiskParameters {
117
- "partnerSubId"?: string;
118
- }
119
121
  /**
120
122
  * Options to pass to create a QueryInstance
121
123
  */
122
124
  export interface QueryListInstanceCreateOptions {
123
125
  /** */
124
- lookupRequest1?: LookupRequest1;
126
+ lookupRequest?: LookupRequest;
125
127
  }
126
128
  export interface QuerySolution {
127
129
  }
@@ -146,7 +148,7 @@ export interface QueryListInstance {
146
148
  *
147
149
  * @returns Resolves to processed QueryInstance
148
150
  */
149
- create(params: LookupRequest1, headers?: any, callback?: (error: Error | null, item?: QueryInstance) => any): Promise<QueryInstance>;
151
+ create(params: LookupRequest, headers?: any, callback?: (error: Error | null, item?: QueryInstance) => any): Promise<QueryInstance>;
150
152
  /**
151
153
  * Provide a user-friendly representation
152
154
  */
@@ -155,19 +157,19 @@ export interface QueryListInstance {
155
157
  }
156
158
  export declare function QueryListInstance(version: V2): QueryListInstance;
157
159
  interface QueryResource {
158
- phone_numbers: Array<LookupResponseWithCorId>;
160
+ phone_numbers: Array<LookupBatchResponse>;
159
161
  }
160
162
  export declare class QueryInstance {
161
163
  protected _version: V2;
162
164
  constructor(_version: V2, payload: QueryResource);
163
- phoneNumbers: Array<LookupResponseWithCorId>;
165
+ phoneNumbers: Array<LookupBatchResponse>;
164
166
  /**
165
167
  * Provide a user-friendly representation
166
168
  *
167
169
  * @returns Object
168
170
  */
169
171
  toJSON(): {
170
- phoneNumbers: LookupResponseWithCorId[];
172
+ phoneNumbers: LookupBatchResponse[];
171
173
  };
172
174
  [inspect.custom](_depth: any, options: InspectOptions): string;
173
175
  }
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.QueryInstance = exports.SmsPumpingRiskParameters = exports.SmsPumpingRisk = exports.SimSwap = exports.ReassignedNumberResponse = exports.ReassignedNumberRequest = exports.LookupResponseWithCorId = exports.LookupRequestWithCorId = exports.LookupRequest1 = exports.LineTypeIntelligence = exports.LineStatus = exports.LastSimSwap = exports.IdentityMatchParameters = exports.IdentityMatch = exports.CallerName = exports.CallForwarding = void 0;
16
+ exports.QueryInstance = exports.SmsPumpingRisk = exports.SimSwap = exports.RiskParameters = exports.ReassignedNumberParameters = exports.ReassignedNumber = exports.LookupRequest = exports.LookupBatchResponse = exports.LookupBatchRequest = exports.LineTypeIntelligence = exports.LineStatus = exports.LastSimSwap = exports.IdentityMatchParameters = exports.IdentityMatch = exports.CallerName = exports.CallForwarding = void 0;
17
17
  exports.QueryListInstance = QueryListInstance;
18
18
  const util_1 = require("util");
19
19
  const deserialize = require("../../../base/deserialize");
@@ -39,30 +39,30 @@ exports.LineStatus = LineStatus;
39
39
  class LineTypeIntelligence {
40
40
  }
41
41
  exports.LineTypeIntelligence = LineTypeIntelligence;
42
- class LookupRequest1 {
42
+ class LookupBatchRequest {
43
43
  }
44
- exports.LookupRequest1 = LookupRequest1;
45
- class LookupRequestWithCorId {
44
+ exports.LookupBatchRequest = LookupBatchRequest;
45
+ class LookupBatchResponse {
46
46
  }
47
- exports.LookupRequestWithCorId = LookupRequestWithCorId;
48
- class LookupResponseWithCorId {
47
+ exports.LookupBatchResponse = LookupBatchResponse;
48
+ class LookupRequest {
49
49
  }
50
- exports.LookupResponseWithCorId = LookupResponseWithCorId;
51
- class ReassignedNumberRequest {
50
+ exports.LookupRequest = LookupRequest;
51
+ class ReassignedNumber {
52
52
  }
53
- exports.ReassignedNumberRequest = ReassignedNumberRequest;
54
- class ReassignedNumberResponse {
53
+ exports.ReassignedNumber = ReassignedNumber;
54
+ class ReassignedNumberParameters {
55
55
  }
56
- exports.ReassignedNumberResponse = ReassignedNumberResponse;
56
+ exports.ReassignedNumberParameters = ReassignedNumberParameters;
57
+ class RiskParameters {
58
+ }
59
+ exports.RiskParameters = RiskParameters;
57
60
  class SimSwap {
58
61
  }
59
62
  exports.SimSwap = SimSwap;
60
63
  class SmsPumpingRisk {
61
64
  }
62
65
  exports.SmsPumpingRisk = SmsPumpingRisk;
63
- class SmsPumpingRiskParameters {
64
- }
65
- exports.SmsPumpingRiskParameters = SmsPumpingRiskParameters;
66
66
  function QueryListInstance(version) {
67
67
  const instance = {};
68
68
  instance._version = version;
@@ -256,12 +256,25 @@ interface TollfreeVerificationResource {
256
256
  message_volume: string;
257
257
  additional_information: string;
258
258
  tollfree_phone_number_sid: string;
259
+ tollfree_phone_number: string;
259
260
  status: TollfreeVerificationStatus;
260
261
  url: string;
261
262
  rejection_reason: string;
262
263
  error_code: number;
263
264
  edit_expiration: Date;
264
265
  edit_allowed: boolean;
266
+ business_registration_number: string;
267
+ business_registration_authority: string;
268
+ business_registration_country: string;
269
+ business_type: string;
270
+ business_registration_phone_number: string;
271
+ doing_business_as: string;
272
+ opt_in_confirmation_message: string;
273
+ help_message_sample: string;
274
+ privacy_policy_url: string;
275
+ terms_and_conditions_url: string;
276
+ age_gated_content: boolean;
277
+ opt_in_keywords: Array<string>;
265
278
  rejection_reasons: Array<any>;
266
279
  resource_links: any;
267
280
  external_reference_id: string;
@@ -380,6 +393,10 @@ export declare class TollfreeVerificationInstance {
380
393
  * The SID of the Phone Number associated with the Tollfree Verification.
381
394
  */
382
395
  tollfreePhoneNumberSid: string;
396
+ /**
397
+ * The E.164 formatted toll-free phone number associated with the verification.
398
+ */
399
+ tollfreePhoneNumber: string;
383
400
  status: TollfreeVerificationStatus;
384
401
  /**
385
402
  * The absolute URL of the Tollfree Verification resource.
@@ -401,6 +418,54 @@ export declare class TollfreeVerificationInstance {
401
418
  * If a rejected verification is allowed to be edited/resubmitted. Some rejection reasons allow editing and some do not.
402
419
  */
403
420
  editAllowed: boolean;
421
+ /**
422
+ * A legally recognized business registration number
423
+ */
424
+ businessRegistrationNumber: string;
425
+ /**
426
+ * The organizational authority for business registrations
427
+ */
428
+ businessRegistrationAuthority: string;
429
+ /**
430
+ * Country business is registered in
431
+ */
432
+ businessRegistrationCountry: string;
433
+ /**
434
+ * The type of business, valid values are PRIVATE_PROFIT, PUBLIC_PROFIT, NON_PROFIT, SOLE_PROPRIETOR, GOVERNMENT
435
+ */
436
+ businessType: string;
437
+ /**
438
+ * The E.164 formatted number associated with the business.
439
+ */
440
+ businessRegistrationPhoneNumber: string;
441
+ /**
442
+ * Trade name, sub entity, or downstream business name of business being submitted for verification
443
+ */
444
+ doingBusinessAs: string;
445
+ /**
446
+ * The confirmation message sent to users when they opt in to receive messages.
447
+ */
448
+ optInConfirmationMessage: string;
449
+ /**
450
+ * A sample help message provided to users.
451
+ */
452
+ helpMessageSample: string;
453
+ /**
454
+ * The URL to the privacy policy for the business or organization.
455
+ */
456
+ privacyPolicyUrl: string;
457
+ /**
458
+ * The URL to the terms and conditions for the business or organization.
459
+ */
460
+ termsAndConditionsUrl: string;
461
+ /**
462
+ * Indicates if the content is age gated.
463
+ */
464
+ ageGatedContent: boolean;
465
+ /**
466
+ * List of keywords that users can text in to opt in to receive messages.
467
+ */
468
+ optInKeywords: Array<string>;
404
469
  /**
405
470
  * A list of rejection reasons and codes describing why a Tollfree Verification has been rejected.
406
471
  */
@@ -481,12 +546,25 @@ export declare class TollfreeVerificationInstance {
481
546
  messageVolume: string;
482
547
  additionalInformation: string;
483
548
  tollfreePhoneNumberSid: string;
549
+ tollfreePhoneNumber: string;
484
550
  status: TollfreeVerificationStatus;
485
551
  url: string;
486
552
  rejectionReason: string;
487
553
  errorCode: number;
488
554
  editExpiration: Date;
489
555
  editAllowed: boolean;
556
+ businessRegistrationNumber: string;
557
+ businessRegistrationAuthority: string;
558
+ businessRegistrationCountry: string;
559
+ businessType: string;
560
+ businessRegistrationPhoneNumber: string;
561
+ doingBusinessAs: string;
562
+ optInConfirmationMessage: string;
563
+ helpMessageSample: string;
564
+ privacyPolicyUrl: string;
565
+ termsAndConditionsUrl: string;
566
+ ageGatedContent: boolean;
567
+ optInKeywords: string[];
490
568
  rejectionReasons: any[];
491
569
  resourceLinks: any;
492
570
  externalReferenceId: string;