twilio 5.10.2 → 5.10.4

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.
Files changed (34) hide show
  1. package/lib/rest/accounts/V1.d.ts +5 -0
  2. package/lib/rest/accounts/V1.js +8 -0
  3. package/lib/rest/accounts/v1/messagingGeopermissions.d.ts +76 -0
  4. package/lib/rest/accounts/v1/messagingGeopermissions.js +98 -0
  5. package/lib/rest/api/v2010/account/conference/participant.d.ts +1 -1
  6. package/lib/rest/api/v2010/account/message.d.ts +6 -6
  7. package/lib/rest/chat/v1/service.d.ts +3 -3
  8. package/lib/rest/chat/v2/service/binding.d.ts +3 -3
  9. package/lib/rest/chat/v2/service/channel/invite.d.ts +3 -3
  10. package/lib/rest/chat/v2/service/channel/member.d.ts +3 -3
  11. package/lib/rest/chat/v2/service/channel/message.d.ts +3 -3
  12. package/lib/rest/chat/v2/service/channel/webhook.d.ts +3 -3
  13. package/lib/rest/chat/v2/service/channel.d.ts +3 -3
  14. package/lib/rest/chat/v2/service/role.d.ts +3 -3
  15. package/lib/rest/chat/v2/service/user/userBinding.d.ts +3 -3
  16. package/lib/rest/chat/v2/service/user/userChannel.d.ts +5 -5
  17. package/lib/rest/chat/v2/service/user.d.ts +3 -3
  18. package/lib/rest/chat/v2/service.d.ts +3 -3
  19. package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +1 -1
  20. package/lib/rest/intelligence/v2/customOperator.d.ts +1 -1
  21. package/lib/rest/intelligence/v2/operator.d.ts +1 -1
  22. package/lib/rest/intelligence/v2/operatorType.d.ts +1 -1
  23. package/lib/rest/intelligence/v2/prebuiltOperator.d.ts +1 -1
  24. package/lib/rest/intelligence/v2/transcript/operatorResult.d.ts +1 -1
  25. package/lib/rest/intelligence/v2/transcript/sentence.d.ts +9 -9
  26. package/lib/rest/intelligence/v2/transcript.d.ts +1 -1
  27. package/lib/rest/messaging/v1/tollfreeVerification.d.ts +50 -2
  28. package/lib/rest/messaging/v1/tollfreeVerification.js +54 -0
  29. package/lib/rest/messaging/v2/channelsSender.d.ts +3 -3
  30. package/lib/rest/numbers/v1/portingPortIn.d.ts +6 -0
  31. package/lib/rest/numbers/v1/portingPortIn.js +2 -0
  32. package/lib/rest/trusthub/v1/complianceInquiries.d.ts +10 -2
  33. package/lib/rest/trusthub/v1/complianceInquiries.js +7 -6
  34. package/package.json +1 -1
@@ -4,6 +4,7 @@ import { AuthTokenPromotionListInstance } from "./v1/authTokenPromotion";
4
4
  import { BulkConsentsListInstance } from "./v1/bulkConsents";
5
5
  import { BulkContactsListInstance } from "./v1/bulkContacts";
6
6
  import { CredentialListInstance } from "./v1/credential";
7
+ import { MessagingGeopermissionsListInstance } from "./v1/messagingGeopermissions";
7
8
  import { SafelistListInstance } from "./v1/safelist";
8
9
  import { SecondaryAuthTokenListInstance } from "./v1/secondaryAuthToken";
9
10
  export default class V1 extends Version {
@@ -21,6 +22,8 @@ export default class V1 extends Version {
21
22
  protected _bulkContacts?: BulkContactsListInstance;
22
23
  /** credentials - { Twilio.Accounts.V1.CredentialListInstance } resource */
23
24
  protected _credentials?: CredentialListInstance;
25
+ /** messagingGeopermissions - { Twilio.Accounts.V1.MessagingGeopermissionsListInstance } resource */
26
+ protected _messagingGeopermissions?: MessagingGeopermissionsListInstance;
24
27
  /** safelist - { Twilio.Accounts.V1.SafelistListInstance } resource */
25
28
  protected _safelist?: SafelistListInstance;
26
29
  /** secondaryAuthToken - { Twilio.Accounts.V1.SecondaryAuthTokenListInstance } resource */
@@ -33,6 +36,8 @@ export default class V1 extends Version {
33
36
  get bulkContacts(): BulkContactsListInstance;
34
37
  /** Getter for credentials resource */
35
38
  get credentials(): CredentialListInstance;
39
+ /** Getter for messagingGeopermissions resource */
40
+ get messagingGeopermissions(): MessagingGeopermissionsListInstance;
36
41
  /** Getter for safelist resource */
37
42
  get safelist(): SafelistListInstance;
38
43
  /** Getter for secondaryAuthToken resource */
@@ -21,6 +21,7 @@ const authTokenPromotion_1 = require("./v1/authTokenPromotion");
21
21
  const bulkConsents_1 = require("./v1/bulkConsents");
22
22
  const bulkContacts_1 = require("./v1/bulkContacts");
23
23
  const credential_1 = require("./v1/credential");
24
+ const messagingGeopermissions_1 = require("./v1/messagingGeopermissions");
24
25
  const safelist_1 = require("./v1/safelist");
25
26
  const secondaryAuthToken_1 = require("./v1/secondaryAuthToken");
26
27
  class V1 extends Version_1.default {
@@ -53,6 +54,13 @@ class V1 extends Version_1.default {
53
54
  this._credentials = this._credentials || (0, credential_1.CredentialListInstance)(this);
54
55
  return this._credentials;
55
56
  }
57
+ /** Getter for messagingGeopermissions resource */
58
+ get messagingGeopermissions() {
59
+ this._messagingGeopermissions =
60
+ this._messagingGeopermissions ||
61
+ (0, messagingGeopermissions_1.MessagingGeopermissionsListInstance)(this);
62
+ return this._messagingGeopermissions;
63
+ }
56
64
  /** Getter for safelist resource */
57
65
  get safelist() {
58
66
  this._safelist = this._safelist || (0, safelist_1.SafelistListInstance)(this);
@@ -0,0 +1,76 @@
1
+ import { inspect, InspectOptions } from "util";
2
+ import V1 from "../V1";
3
+ /**
4
+ * Options to pass to fetch a MessagingGeopermissionsInstance
5
+ */
6
+ export interface MessagingGeopermissionsListInstanceFetchOptions {
7
+ /** The country code to filter the geo permissions. If provided, only the geo permission for the specified country will be returned. */
8
+ countryCode?: string;
9
+ }
10
+ /**
11
+ * Options to pass to update a MessagingGeopermissionsInstance
12
+ */
13
+ export interface MessagingGeopermissionsListInstanceUpdateOptions {
14
+ /** A list of objects where each object represents the Geo Permission to be updated. Each object contains the following fields: `country_code`, unique code for each country of Geo Permission; `type`, permission type of the Geo Permission i.e. country; `enabled`, configure true for enabling the Geo Permission, false for disabling the Geo Permission. */
15
+ permissions: Array<any>;
16
+ }
17
+ export interface MessagingGeopermissionsSolution {
18
+ }
19
+ export interface MessagingGeopermissionsListInstance {
20
+ _version: V1;
21
+ _solution: MessagingGeopermissionsSolution;
22
+ _uri: string;
23
+ /**
24
+ * Fetch a MessagingGeopermissionsInstance
25
+ *
26
+ * @param callback - Callback to handle processed record
27
+ *
28
+ * @returns Resolves to processed MessagingGeopermissionsInstance
29
+ */
30
+ fetch(callback?: (error: Error | null, item?: MessagingGeopermissionsInstance) => any): Promise<MessagingGeopermissionsInstance>;
31
+ /**
32
+ * Fetch a MessagingGeopermissionsInstance
33
+ *
34
+ * @param params - Parameter for request
35
+ * @param callback - Callback to handle processed record
36
+ *
37
+ * @returns Resolves to processed MessagingGeopermissionsInstance
38
+ */
39
+ fetch(params: MessagingGeopermissionsListInstanceFetchOptions, callback?: (error: Error | null, item?: MessagingGeopermissionsInstance) => any): Promise<MessagingGeopermissionsInstance>;
40
+ /**
41
+ * Update a MessagingGeopermissionsInstance
42
+ *
43
+ * @param params - Parameter for request
44
+ * @param callback - Callback to handle processed record
45
+ *
46
+ * @returns Resolves to processed MessagingGeopermissionsInstance
47
+ */
48
+ update(params: MessagingGeopermissionsListInstanceUpdateOptions, callback?: (error: Error | null, item?: MessagingGeopermissionsInstance) => any): Promise<MessagingGeopermissionsInstance>;
49
+ /**
50
+ * Provide a user-friendly representation
51
+ */
52
+ toJSON(): any;
53
+ [inspect.custom](_depth: any, options: InspectOptions): any;
54
+ }
55
+ export declare function MessagingGeopermissionsListInstance(version: V1): MessagingGeopermissionsListInstance;
56
+ interface MessagingGeopermissionsResource {
57
+ permissions: any;
58
+ }
59
+ export declare class MessagingGeopermissionsInstance {
60
+ protected _version: V1;
61
+ constructor(_version: V1, payload: MessagingGeopermissionsResource);
62
+ /**
63
+ * A list of objects where each object represents the result of processing a messaging Geo Permission. Each object contains the following fields: `country_code`, the country code of the country for which the permission was updated; `type`, the type of the permission i.e. country; `enabled`, true if the permission is enabled else false; `error_code`, an integer where 0 indicates success and any non-zero value represents an error; and `error_messages`, an array of strings describing specific validation errors encountered. If the request is successful, the error_messages array will be empty.
64
+ */
65
+ permissions: any;
66
+ /**
67
+ * Provide a user-friendly representation
68
+ *
69
+ * @returns Object
70
+ */
71
+ toJSON(): {
72
+ permissions: any;
73
+ };
74
+ [inspect.custom](_depth: any, options: InspectOptions): string;
75
+ }
76
+ export {};
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+ /*
3
+ * This code was generated by
4
+ * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
5
+ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
6
+ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
7
+ *
8
+ * Twilio - Accounts
9
+ * This is the public Twilio REST API.
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator.
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.MessagingGeopermissionsInstance = void 0;
17
+ exports.MessagingGeopermissionsListInstance = MessagingGeopermissionsListInstance;
18
+ const util_1 = require("util");
19
+ const deserialize = require("../../../base/deserialize");
20
+ const serialize = require("../../../base/serialize");
21
+ function MessagingGeopermissionsListInstance(version) {
22
+ const instance = {};
23
+ instance._version = version;
24
+ instance._solution = {};
25
+ instance._uri = `/Messaging/GeoPermissions`;
26
+ instance.fetch = function fetch(params, callback) {
27
+ if (params instanceof Function) {
28
+ callback = params;
29
+ params = {};
30
+ }
31
+ else {
32
+ params = params || {};
33
+ }
34
+ let data = {};
35
+ if (params["countryCode"] !== undefined)
36
+ data["CountryCode"] = params["countryCode"];
37
+ const headers = {};
38
+ headers["Accept"] = "application/json";
39
+ let operationVersion = version, operationPromise = operationVersion.fetch({
40
+ uri: instance._uri,
41
+ method: "get",
42
+ params: data,
43
+ headers,
44
+ });
45
+ operationPromise = operationPromise.then((payload) => new MessagingGeopermissionsInstance(operationVersion, payload));
46
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
47
+ return operationPromise;
48
+ };
49
+ instance.update = function update(params, callback) {
50
+ if (params === null || params === undefined) {
51
+ throw new Error('Required parameter "params" missing.');
52
+ }
53
+ if (params["permissions"] === null || params["permissions"] === undefined) {
54
+ throw new Error("Required parameter \"params['permissions']\" missing.");
55
+ }
56
+ let data = {};
57
+ data["Permissions"] = serialize.map(params["permissions"], (e) => serialize.object(e));
58
+ const headers = {};
59
+ headers["Content-Type"] = "application/x-www-form-urlencoded";
60
+ headers["Accept"] = "application/json";
61
+ let operationVersion = version, operationPromise = operationVersion.update({
62
+ uri: instance._uri,
63
+ method: "patch",
64
+ data,
65
+ headers,
66
+ });
67
+ operationPromise = operationPromise.then((payload) => new MessagingGeopermissionsInstance(operationVersion, payload));
68
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
69
+ return operationPromise;
70
+ };
71
+ instance.toJSON = function toJSON() {
72
+ return instance._solution;
73
+ };
74
+ instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
75
+ return (0, util_1.inspect)(instance.toJSON(), options);
76
+ };
77
+ return instance;
78
+ }
79
+ class MessagingGeopermissionsInstance {
80
+ constructor(_version, payload) {
81
+ this._version = _version;
82
+ this.permissions = payload.permissions;
83
+ }
84
+ /**
85
+ * Provide a user-friendly representation
86
+ *
87
+ * @returns Object
88
+ */
89
+ toJSON() {
90
+ return {
91
+ permissions: this.permissions,
92
+ };
93
+ }
94
+ [util_1.inspect.custom](_depth, options) {
95
+ return (0, util_1.inspect)(this.toJSON(), options);
96
+ }
97
+ }
98
+ exports.MessagingGeopermissionsInstance = MessagingGeopermissionsInstance;
@@ -135,7 +135,7 @@ export interface ParticipantListInstanceCreateOptions {
135
135
  trim?: string;
136
136
  /** A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call\\\'s call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call. */
137
137
  callToken?: string;
138
- /** The name that appears to the called party for this call. Must be between 2 and 255 characters. */
138
+ /** The name that populates the display name in the From header. Must be between 2 and 255 characters. Only applicable for calls to sip address. */
139
139
  callerDisplayName?: string;
140
140
  }
141
141
  /**
@@ -84,9 +84,9 @@ export interface MessageListInstanceCreateOptions {
84
84
  * Options to pass to each
85
85
  */
86
86
  export interface MessageListInstanceEachOptions {
87
- /** Filter by recipient. For example: Set this `to` parameter to `+15558881111` to retrieve a list of Message resources with `to` properties of `+15558881111` */
87
+ /** Filter by recipient. For example: Set this parameter to `+15558881111` to retrieve a list of Message resources sent to `+15558881111`. */
88
88
  to?: string;
89
- /** Filter by sender. For example: Set this `from` parameter to `+15552229999` to retrieve a list of Message resources with `from` properties of `+15552229999` */
89
+ /** Filter by sender. For example: Set this parameter to `+15552229999` to retrieve a list of Message resources sent by `+15552229999`. */
90
90
  from?: string;
91
91
  /** Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date). */
92
92
  dateSent?: Date;
@@ -107,9 +107,9 @@ export interface MessageListInstanceEachOptions {
107
107
  * Options to pass to list
108
108
  */
109
109
  export interface MessageListInstanceOptions {
110
- /** Filter by recipient. For example: Set this `to` parameter to `+15558881111` to retrieve a list of Message resources with `to` properties of `+15558881111` */
110
+ /** Filter by recipient. For example: Set this parameter to `+15558881111` to retrieve a list of Message resources sent to `+15558881111`. */
111
111
  to?: string;
112
- /** Filter by sender. For example: Set this `from` parameter to `+15552229999` to retrieve a list of Message resources with `from` properties of `+15552229999` */
112
+ /** Filter by sender. For example: Set this parameter to `+15552229999` to retrieve a list of Message resources sent by `+15552229999`. */
113
113
  from?: string;
114
114
  /** Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date). */
115
115
  dateSent?: Date;
@@ -126,9 +126,9 @@ export interface MessageListInstanceOptions {
126
126
  * Options to pass to page
127
127
  */
128
128
  export interface MessageListInstancePageOptions {
129
- /** Filter by recipient. For example: Set this `to` parameter to `+15558881111` to retrieve a list of Message resources with `to` properties of `+15558881111` */
129
+ /** Filter by recipient. For example: Set this parameter to `+15558881111` to retrieve a list of Message resources sent to `+15558881111`. */
130
130
  to?: string;
131
- /** Filter by sender. For example: Set this `from` parameter to `+15552229999` to retrieve a list of Message resources with `from` properties of `+15552229999` */
131
+ /** Filter by sender. For example: Set this parameter to `+15552229999` to retrieve a list of Message resources sent by `+15552229999`. */
132
132
  from?: string;
133
133
  /** Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date). */
134
134
  dateSent?: Date;
@@ -129,7 +129,7 @@ export interface ServiceListInstanceCreateOptions {
129
129
  * Options to pass to each
130
130
  */
131
131
  export interface ServiceListInstanceEachOptions {
132
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
132
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
133
133
  pageSize?: number;
134
134
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
135
135
  callback?: (item: ServiceInstance, done: (err?: Error) => void) => void;
@@ -142,7 +142,7 @@ export interface ServiceListInstanceEachOptions {
142
142
  * Options to pass to list
143
143
  */
144
144
  export interface ServiceListInstanceOptions {
145
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
145
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
146
146
  pageSize?: number;
147
147
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
148
148
  limit?: number;
@@ -151,7 +151,7 @@ export interface ServiceListInstanceOptions {
151
151
  * Options to pass to page
152
152
  */
153
153
  export interface ServiceListInstancePageOptions {
154
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
154
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
155
155
  pageSize?: number;
156
156
  /** Page Number, this value is simply for client state */
157
157
  pageNumber?: number;
@@ -14,7 +14,7 @@ export interface BindingListInstanceEachOptions {
14
14
  bindingType?: Array<BindingBindingType>;
15
15
  /** The [User](https://www.twilio.com/docs/chat/rest/user-resource)\'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details. */
16
16
  identity?: Array<string>;
17
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
17
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
18
18
  pageSize?: number;
19
19
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
20
20
  callback?: (item: BindingInstance, done: (err?: Error) => void) => void;
@@ -31,7 +31,7 @@ export interface BindingListInstanceOptions {
31
31
  bindingType?: Array<BindingBindingType>;
32
32
  /** The [User](https://www.twilio.com/docs/chat/rest/user-resource)\'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details. */
33
33
  identity?: Array<string>;
34
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
34
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
35
35
  pageSize?: number;
36
36
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
37
37
  limit?: number;
@@ -44,7 +44,7 @@ export interface BindingListInstancePageOptions {
44
44
  bindingType?: Array<BindingBindingType>;
45
45
  /** The [User](https://www.twilio.com/docs/chat/rest/user-resource)\'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details. */
46
46
  identity?: Array<string>;
47
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
47
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
48
48
  pageSize?: number;
49
49
  /** Page Number, this value is simply for client state */
50
50
  pageNumber?: number;
@@ -17,7 +17,7 @@ export interface InviteListInstanceCreateOptions {
17
17
  export interface InviteListInstanceEachOptions {
18
18
  /** The [User](https://www.twilio.com/docs/chat/rest/user-resource)\'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details. */
19
19
  identity?: Array<string>;
20
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
20
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
21
21
  pageSize?: number;
22
22
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
23
23
  callback?: (item: InviteInstance, done: (err?: Error) => void) => void;
@@ -32,7 +32,7 @@ export interface InviteListInstanceEachOptions {
32
32
  export interface InviteListInstanceOptions {
33
33
  /** The [User](https://www.twilio.com/docs/chat/rest/user-resource)\'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details. */
34
34
  identity?: Array<string>;
35
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
35
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
36
36
  pageSize?: number;
37
37
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
38
38
  limit?: number;
@@ -43,7 +43,7 @@ export interface InviteListInstanceOptions {
43
43
  export interface InviteListInstancePageOptions {
44
44
  /** The [User](https://www.twilio.com/docs/chat/rest/user-resource)\'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details. */
45
45
  identity?: Array<string>;
46
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
46
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
47
47
  pageSize?: number;
48
48
  /** Page Number, this value is simply for client state */
49
49
  pageNumber?: number;
@@ -56,7 +56,7 @@ export interface MemberListInstanceCreateOptions {
56
56
  export interface MemberListInstanceEachOptions {
57
57
  /** The [User](https://www.twilio.com/docs/chat/rest/user-resource)\'s `identity` value of the Member resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details. */
58
58
  identity?: Array<string>;
59
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
59
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
60
60
  pageSize?: number;
61
61
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
62
62
  callback?: (item: MemberInstance, done: (err?: Error) => void) => void;
@@ -71,7 +71,7 @@ export interface MemberListInstanceEachOptions {
71
71
  export interface MemberListInstanceOptions {
72
72
  /** The [User](https://www.twilio.com/docs/chat/rest/user-resource)\'s `identity` value of the Member resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details. */
73
73
  identity?: Array<string>;
74
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
74
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
75
75
  pageSize?: number;
76
76
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
77
77
  limit?: number;
@@ -82,7 +82,7 @@ export interface MemberListInstanceOptions {
82
82
  export interface MemberListInstancePageOptions {
83
83
  /** The [User](https://www.twilio.com/docs/chat/rest/user-resource)\'s `identity` value of the Member resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details. */
84
84
  identity?: Array<string>;
85
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
85
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
86
86
  pageSize?: number;
87
87
  /** Page Number, this value is simply for client state */
88
88
  pageNumber?: number;
@@ -57,7 +57,7 @@ export interface MessageListInstanceCreateOptions {
57
57
  export interface MessageListInstanceEachOptions {
58
58
  /** The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending) with `asc` as the default. */
59
59
  order?: MessageOrderType;
60
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
60
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
61
61
  pageSize?: number;
62
62
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
63
63
  callback?: (item: MessageInstance, done: (err?: Error) => void) => void;
@@ -72,7 +72,7 @@ export interface MessageListInstanceEachOptions {
72
72
  export interface MessageListInstanceOptions {
73
73
  /** The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending) with `asc` as the default. */
74
74
  order?: MessageOrderType;
75
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
75
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
76
76
  pageSize?: number;
77
77
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
78
78
  limit?: number;
@@ -83,7 +83,7 @@ export interface MessageListInstanceOptions {
83
83
  export interface MessageListInstancePageOptions {
84
84
  /** The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending) with `asc` as the default. */
85
85
  order?: MessageOrderType;
86
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
86
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
87
87
  pageSize?: number;
88
88
  /** Page Number, this value is simply for client state */
89
89
  pageNumber?: number;
@@ -47,7 +47,7 @@ export interface WebhookListInstanceCreateOptions {
47
47
  * Options to pass to each
48
48
  */
49
49
  export interface WebhookListInstanceEachOptions {
50
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
50
+ /** How many resources to return in each list page. The default is 5, and the maximum is 5. */
51
51
  pageSize?: number;
52
52
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
53
53
  callback?: (item: WebhookInstance, done: (err?: Error) => void) => void;
@@ -60,7 +60,7 @@ export interface WebhookListInstanceEachOptions {
60
60
  * Options to pass to list
61
61
  */
62
62
  export interface WebhookListInstanceOptions {
63
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
63
+ /** How many resources to return in each list page. The default is 5, and the maximum is 5. */
64
64
  pageSize?: number;
65
65
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
66
66
  limit?: number;
@@ -69,7 +69,7 @@ export interface WebhookListInstanceOptions {
69
69
  * Options to pass to page
70
70
  */
71
71
  export interface WebhookListInstancePageOptions {
72
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
72
+ /** How many resources to return in each list page. The default is 5, and the maximum is 5. */
73
73
  pageSize?: number;
74
74
  /** Page Number, this value is simply for client state */
75
75
  pageNumber?: number;
@@ -64,7 +64,7 @@ export interface ChannelListInstanceCreateOptions {
64
64
  export interface ChannelListInstanceEachOptions {
65
65
  /** The visibility of the Channels to read. Can be: `public` or `private` and defaults to `public`. */
66
66
  type?: Array<ChannelChannelType>;
67
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
67
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
68
68
  pageSize?: number;
69
69
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
70
70
  callback?: (item: ChannelInstance, done: (err?: Error) => void) => void;
@@ -79,7 +79,7 @@ export interface ChannelListInstanceEachOptions {
79
79
  export interface ChannelListInstanceOptions {
80
80
  /** The visibility of the Channels to read. Can be: `public` or `private` and defaults to `public`. */
81
81
  type?: Array<ChannelChannelType>;
82
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
82
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
83
83
  pageSize?: number;
84
84
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
85
85
  limit?: number;
@@ -90,7 +90,7 @@ export interface ChannelListInstanceOptions {
90
90
  export interface ChannelListInstancePageOptions {
91
91
  /** The visibility of the Channels to read. Can be: `public` or `private` and defaults to `public`. */
92
92
  type?: Array<ChannelChannelType>;
93
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
93
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
94
94
  pageSize?: number;
95
95
  /** Page Number, this value is simply for client state */
96
96
  pageNumber?: number;
@@ -28,7 +28,7 @@ export interface RoleListInstanceCreateOptions {
28
28
  * Options to pass to each
29
29
  */
30
30
  export interface RoleListInstanceEachOptions {
31
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
31
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
32
32
  pageSize?: number;
33
33
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
34
34
  callback?: (item: RoleInstance, done: (err?: Error) => void) => void;
@@ -41,7 +41,7 @@ export interface RoleListInstanceEachOptions {
41
41
  * Options to pass to list
42
42
  */
43
43
  export interface RoleListInstanceOptions {
44
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
44
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
45
45
  pageSize?: number;
46
46
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
47
47
  limit?: number;
@@ -50,7 +50,7 @@ export interface RoleListInstanceOptions {
50
50
  * Options to pass to page
51
51
  */
52
52
  export interface RoleListInstancePageOptions {
53
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
53
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
54
54
  pageSize?: number;
55
55
  /** Page Number, this value is simply for client state */
56
56
  pageNumber?: number;
@@ -12,7 +12,7 @@ export type UserBindingBindingType = "gcm" | "apn" | "fcm";
12
12
  export interface UserBindingListInstanceEachOptions {
13
13
  /** The push technology used by the User 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. */
14
14
  bindingType?: Array<UserBindingBindingType>;
15
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
15
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
16
16
  pageSize?: number;
17
17
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
18
18
  callback?: (item: UserBindingInstance, done: (err?: Error) => void) => void;
@@ -27,7 +27,7 @@ export interface UserBindingListInstanceEachOptions {
27
27
  export interface UserBindingListInstanceOptions {
28
28
  /** The push technology used by the User 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. */
29
29
  bindingType?: Array<UserBindingBindingType>;
30
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
30
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
31
31
  pageSize?: number;
32
32
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
33
33
  limit?: number;
@@ -38,7 +38,7 @@ export interface UserBindingListInstanceOptions {
38
38
  export interface UserBindingListInstancePageOptions {
39
39
  /** The push technology used by the User 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. */
40
40
  bindingType?: Array<UserBindingBindingType>;
41
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
41
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
42
42
  pageSize?: number;
43
43
  /** Page Number, this value is simply for client state */
44
44
  pageNumber?: number;
@@ -3,9 +3,9 @@ import Page, { TwilioResponsePayload } from "../../../../../base/Page";
3
3
  import Response from "../../../../../http/response";
4
4
  import V2 from "../../../V2";
5
5
  /**
6
- * The status of the User on the Channel. Can be: `joined`, `invited`, or `not_participating`.
6
+ * The status of the User on the Channel. Can be: `joined`, `invited`, or `notParticipating`.
7
7
  */
8
- export type UserChannelChannelStatus = "joined" | "invited" | "not_participating";
8
+ export type UserChannelChannelStatus = "joined" | "invited" | "notParticipating";
9
9
  /**
10
10
  * The push notification level of the User for the Channel. Can be: `default` or `muted`.
11
11
  */
@@ -33,7 +33,7 @@ export interface UserChannelContextUpdateOptions {
33
33
  * Options to pass to each
34
34
  */
35
35
  export interface UserChannelListInstanceEachOptions {
36
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
36
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
37
37
  pageSize?: number;
38
38
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
39
39
  callback?: (item: UserChannelInstance, done: (err?: Error) => void) => void;
@@ -46,7 +46,7 @@ export interface UserChannelListInstanceEachOptions {
46
46
  * Options to pass to list
47
47
  */
48
48
  export interface UserChannelListInstanceOptions {
49
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
49
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
50
50
  pageSize?: number;
51
51
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
52
52
  limit?: number;
@@ -55,7 +55,7 @@ export interface UserChannelListInstanceOptions {
55
55
  * Options to pass to page
56
56
  */
57
57
  export interface UserChannelListInstancePageOptions {
58
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
58
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
59
59
  pageSize?: number;
60
60
  /** Page Number, this value is simply for client state */
61
61
  pageNumber?: number;
@@ -37,7 +37,7 @@ export interface UserListInstanceCreateOptions {
37
37
  * Options to pass to each
38
38
  */
39
39
  export interface UserListInstanceEachOptions {
40
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
40
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
41
41
  pageSize?: number;
42
42
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
43
43
  callback?: (item: UserInstance, done: (err?: Error) => void) => void;
@@ -50,7 +50,7 @@ export interface UserListInstanceEachOptions {
50
50
  * Options to pass to list
51
51
  */
52
52
  export interface UserListInstanceOptions {
53
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
53
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
54
54
  pageSize?: number;
55
55
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
56
56
  limit?: number;
@@ -59,7 +59,7 @@ export interface UserListInstanceOptions {
59
59
  * Options to pass to page
60
60
  */
61
61
  export interface UserListInstancePageOptions {
62
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
62
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
63
63
  pageSize?: number;
64
64
  /** Page Number, this value is simply for client state */
65
65
  pageNumber?: number;
@@ -84,7 +84,7 @@ export interface ServiceListInstanceCreateOptions {
84
84
  * Options to pass to each
85
85
  */
86
86
  export interface ServiceListInstanceEachOptions {
87
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
87
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
88
88
  pageSize?: number;
89
89
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
90
90
  callback?: (item: ServiceInstance, done: (err?: Error) => void) => void;
@@ -97,7 +97,7 @@ export interface ServiceListInstanceEachOptions {
97
97
  * Options to pass to list
98
98
  */
99
99
  export interface ServiceListInstanceOptions {
100
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
100
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
101
101
  pageSize?: number;
102
102
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
103
103
  limit?: number;
@@ -106,7 +106,7 @@ export interface ServiceListInstanceOptions {
106
106
  * Options to pass to page
107
107
  */
108
108
  export interface ServiceListInstancePageOptions {
109
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
109
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
110
110
  pageSize?: number;
111
111
  /** Page Number, this value is simply for client state */
112
112
  pageNumber?: number;
@@ -8,7 +8,7 @@ import { InteractionTransferListInstance } from "./interactionChannel/interactio
8
8
  /**
9
9
  * The status of this channel.
10
10
  */
11
- export type InteractionChannelChannelStatus = "setup" | "active" | "failed" | "closed" | "inactive" | "pause";
11
+ export type InteractionChannelChannelStatus = "setup" | "active" | "failed" | "closed" | "inactive" | "pause" | "transfer";
12
12
  /**
13
13
  * The Interaction Channel\'s type. Can be: `sms`, `email`, `chat`, `whatsapp`, `web`, `messenger`, or `gbm`. **Note:** These can be different from the task channel type specified in the Routing attributes. Task channel type corresponds to channel capacity while this channel type is the actual media type
14
14
  */
@@ -5,7 +5,7 @@ import V2 from "../V2";
5
5
  /**
6
6
  * Custom Operator availability status. Possible values: internal, beta, public, retired.
7
7
  */
8
- export type CustomOperatorAvailability = "internal" | "beta" | "public" | "retired";
8
+ export type CustomOperatorAvailability = "internal" | "beta" | "public" | "retired" | "general-availability" | "deprecated";
9
9
  /**
10
10
  * Options to pass to update a CustomOperatorInstance
11
11
  */
@@ -5,7 +5,7 @@ import V2 from "../V2";
5
5
  /**
6
6
  * Operator availability status. Possible values: internal, beta, public, retired.
7
7
  */
8
- export type OperatorAvailability = "internal" | "beta" | "public" | "retired";
8
+ export type OperatorAvailability = "internal" | "beta" | "public" | "deprecated" | "general-availability" | "retired";
9
9
  /**
10
10
  * Options to pass to each
11
11
  */
@@ -9,7 +9,7 @@ export type OperatorTypeAvailability = "internal" | "beta" | "general-availabili
9
9
  /**
10
10
  * Operator Results for this Operator Type will follow this format. Possible values: text-classification, text-extraction, text-extraction-normalized, text-generation.
11
11
  */
12
- export type OperatorTypeOutputType = "text-classification" | "text-extraction" | "text-extraction-normalized" | "text-generation";
12
+ export type OperatorTypeOutputType = "text-classification" | "text-extraction" | "text-extraction-normalized" | "text-generation" | "json";
13
13
  /**
14
14
  * Operators with this Operator Type are executed using this provider. Possible values: twilio, amazon, openai.
15
15
  */
@@ -5,7 +5,7 @@ import V2 from "../V2";
5
5
  /**
6
6
  * Operator availability status. Possible values: internal, beta, public, retired.
7
7
  */
8
- export type PrebuiltOperatorAvailability = "internal" | "beta" | "public" | "retired";
8
+ export type PrebuiltOperatorAvailability = "internal" | "beta" | "public" | "retired" | "general-availability";
9
9
  /**
10
10
  * Options to pass to each
11
11
  */
@@ -5,7 +5,7 @@ import V2 from "../../V2";
5
5
  /**
6
6
  * The type of the applied Language Understanding Operator. One of conversation-classify, utterance-classify, extract, extract-normalize, or pii-extract
7
7
  */
8
- export type OperatorResultOperatorType = "conversation_classify" | "utterance_classify" | "extract" | "extract_normalize" | "pii_extract" | "text_generation" | "json";
8
+ export type OperatorResultOperatorType = "conversation-classify" | "utterance-classify" | "extract" | "extract-normalize" | "pii-extract" | "text-generation" | "json";
9
9
  /**
10
10
  * Options to pass to fetch a OperatorResultInstance
11
11
  */
@@ -117,11 +117,11 @@ interface SentencePayload extends TwilioResponsePayload {
117
117
  interface SentenceResource {
118
118
  media_channel: number;
119
119
  sentence_index: number;
120
- start_time: number;
121
- end_time: number;
120
+ start_time: string;
121
+ end_time: string;
122
122
  transcript: string;
123
123
  sid: string;
124
- confidence: number;
124
+ confidence: string;
125
125
  words: Array<any>;
126
126
  }
127
127
  export declare class SentenceInstance {
@@ -138,11 +138,11 @@ export declare class SentenceInstance {
138
138
  /**
139
139
  * Offset from the beginning of the transcript when this sentence starts.
140
140
  */
141
- startTime: number;
141
+ startTime: string;
142
142
  /**
143
143
  * Offset from the beginning of the transcript when this sentence ends.
144
144
  */
145
- endTime: number;
145
+ endTime: string;
146
146
  /**
147
147
  * Transcript text.
148
148
  */
@@ -151,7 +151,7 @@ export declare class SentenceInstance {
151
151
  * A 34 character string that uniquely identifies this Sentence.
152
152
  */
153
153
  sid: string;
154
- confidence: number;
154
+ confidence: string;
155
155
  /**
156
156
  * Detailed information for each of the words of the given Sentence.
157
157
  */
@@ -164,11 +164,11 @@ export declare class SentenceInstance {
164
164
  toJSON(): {
165
165
  mediaChannel: number;
166
166
  sentenceIndex: number;
167
- startTime: number;
168
- endTime: number;
167
+ startTime: string;
168
+ endTime: string;
169
169
  transcript: string;
170
170
  sid: string;
171
- confidence: number;
171
+ confidence: string;
172
172
  words: any[];
173
173
  };
174
174
  [inspect.custom](_depth: any, options: InspectOptions): string;
@@ -10,7 +10,7 @@ import { SentenceListInstance } from "./transcript/sentence";
10
10
  /**
11
11
  * The Status of this Transcript. One of `queued`, `in-progress`, `completed`, `failed` or `canceled`.
12
12
  */
13
- export type TranscriptStatus = "queued" | "in-progress" | "completed" | "failed" | "canceled";
13
+ export type TranscriptStatus = "queued" | "in-progress" | "completed" | "failed" | "canceled" | "error";
14
14
  /**
15
15
  * Options to pass to create a TranscriptInstance
16
16
  */
@@ -56,6 +56,30 @@ export interface TollfreeVerificationContextUpdateOptions {
56
56
  businessContactPhone?: string;
57
57
  /** Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to \\\'Website fixed\\\'. */
58
58
  editReason?: string;
59
+ /** A legaly recognized business registration number */
60
+ businessRegistrationNumber?: string;
61
+ /** The organizational authority for business registrations */
62
+ businessRegistrationAuthority?: string;
63
+ /** Country business is registered in */
64
+ businessRegistrationCountry?: string;
65
+ /** The type of business, valid values are PRIVATE_PROFIT, PUBLIC_PROFIT, NON_PROFIT, SOLE_PROPRIETOR, GOVERNMENT */
66
+ businessType?: string;
67
+ /** The E.164 formatted number associated with the business. */
68
+ businessRegistrationPhoneNumber?: string;
69
+ /** Trade name, sub entity, or downstream business name of business being submitted for verification */
70
+ doingBusinessAs?: string;
71
+ /** The confirmation message sent to users when they opt in to receive messages. */
72
+ optInConfirmationMessage?: string;
73
+ /** A sample help message provided to users. */
74
+ helpMessageSample?: string;
75
+ /** The URL to the privacy policy for the business or organization. */
76
+ privacyPolicyUrl?: string;
77
+ /** The URL to the terms and conditions for the business or organization. */
78
+ termsAndConditionsUrl?: string;
79
+ /** Indicates if the content is age gated. */
80
+ ageGatedContent?: boolean;
81
+ /** List of keywords that users can text in to opt in to receive messages. */
82
+ optInKeywords?: Array<string>;
59
83
  }
60
84
  /**
61
85
  * Options to pass to create a TollfreeVerificationInstance
@@ -107,6 +131,30 @@ export interface TollfreeVerificationListInstanceCreateOptions {
107
131
  businessContactPhone?: string;
108
132
  /** An optional external reference ID supplied by customer and echoed back on status retrieval. */
109
133
  externalReferenceId?: string;
134
+ /** A legally recognized business registration number */
135
+ businessRegistrationNumber?: string;
136
+ /** The organizational authority for business registrations */
137
+ businessRegistrationAuthority?: string;
138
+ /** Country business is registered in */
139
+ businessRegistrationCountry?: string;
140
+ /** The type of business, valid values are PRIVATE_PROFIT, PUBLIC_PROFIT, NON_PROFIT, SOLE_PROPRIETOR, GOVERNMENT */
141
+ businessType?: string;
142
+ /** The E.164 formatted number associated with the business. */
143
+ businessRegistrationPhoneNumber?: string;
144
+ /** Trade name, sub entity, or downstream business name of business being submitted for verification */
145
+ doingBusinessAs?: string;
146
+ /** The confirmation message sent to users when they opt in to receive messages. */
147
+ optInConfirmationMessage?: string;
148
+ /** A sample help message provided to users. */
149
+ helpMessageSample?: string;
150
+ /** The URL to the privacy policy for the business or organization. */
151
+ privacyPolicyUrl?: string;
152
+ /** The URL to the terms and conditions for the business or organization. */
153
+ termsAndConditionsUrl?: string;
154
+ /** Indicates if the content is age gated. */
155
+ ageGatedContent?: boolean;
156
+ /** List of keywords that users can text in to opt in to receive messages. */
157
+ optInKeywords?: Array<string>;
110
158
  }
111
159
  /**
112
160
  * Options to pass to each
@@ -455,7 +503,7 @@ export declare class TollfreeVerificationInstance {
455
503
  */
456
504
  privacyPolicyUrl: string;
457
505
  /**
458
- * The URL to the terms and conditions for the business or organization.
506
+ * The URL of the terms and conditions for the business or organization.
459
507
  */
460
508
  termsAndConditionsUrl: string;
461
509
  /**
@@ -463,7 +511,7 @@ export declare class TollfreeVerificationInstance {
463
511
  */
464
512
  ageGatedContent: boolean;
465
513
  /**
466
- * List of keywords that users can text in to opt in to receive messages.
514
+ * List of keywords that users can send to opt in or out of messages.
467
515
  */
468
516
  optInKeywords: Array<string>;
469
517
  /**
@@ -108,6 +108,33 @@ class TollfreeVerificationContextImpl {
108
108
  data["BusinessContactPhone"] = params["businessContactPhone"];
109
109
  if (params["editReason"] !== undefined)
110
110
  data["EditReason"] = params["editReason"];
111
+ if (params["businessRegistrationNumber"] !== undefined)
112
+ data["BusinessRegistrationNumber"] = params["businessRegistrationNumber"];
113
+ if (params["businessRegistrationAuthority"] !== undefined)
114
+ data["BusinessRegistrationAuthority"] =
115
+ params["businessRegistrationAuthority"];
116
+ if (params["businessRegistrationCountry"] !== undefined)
117
+ data["BusinessRegistrationCountry"] =
118
+ params["businessRegistrationCountry"];
119
+ if (params["businessType"] !== undefined)
120
+ data["BusinessType"] = params["businessType"];
121
+ if (params["businessRegistrationPhoneNumber"] !== undefined)
122
+ data["BusinessRegistrationPhoneNumber"] =
123
+ params["businessRegistrationPhoneNumber"];
124
+ if (params["doingBusinessAs"] !== undefined)
125
+ data["DoingBusinessAs"] = params["doingBusinessAs"];
126
+ if (params["optInConfirmationMessage"] !== undefined)
127
+ data["OptInConfirmationMessage"] = params["optInConfirmationMessage"];
128
+ if (params["helpMessageSample"] !== undefined)
129
+ data["HelpMessageSample"] = params["helpMessageSample"];
130
+ if (params["privacyPolicyUrl"] !== undefined)
131
+ data["PrivacyPolicyUrl"] = params["privacyPolicyUrl"];
132
+ if (params["termsAndConditionsUrl"] !== undefined)
133
+ data["TermsAndConditionsUrl"] = params["termsAndConditionsUrl"];
134
+ if (params["ageGatedContent"] !== undefined)
135
+ data["AgeGatedContent"] = serialize.bool(params["ageGatedContent"]);
136
+ if (params["optInKeywords"] !== undefined)
137
+ data["OptInKeywords"] = serialize.map(params["optInKeywords"], (e) => e);
111
138
  const headers = {};
112
139
  headers["Content-Type"] = "application/x-www-form-urlencoded";
113
140
  headers["Accept"] = "application/json";
@@ -374,6 +401,33 @@ function TollfreeVerificationListInstance(version) {
374
401
  data["BusinessContactPhone"] = params["businessContactPhone"];
375
402
  if (params["externalReferenceId"] !== undefined)
376
403
  data["ExternalReferenceId"] = params["externalReferenceId"];
404
+ if (params["businessRegistrationNumber"] !== undefined)
405
+ data["BusinessRegistrationNumber"] = params["businessRegistrationNumber"];
406
+ if (params["businessRegistrationAuthority"] !== undefined)
407
+ data["BusinessRegistrationAuthority"] =
408
+ params["businessRegistrationAuthority"];
409
+ if (params["businessRegistrationCountry"] !== undefined)
410
+ data["BusinessRegistrationCountry"] =
411
+ params["businessRegistrationCountry"];
412
+ if (params["businessType"] !== undefined)
413
+ data["BusinessType"] = params["businessType"];
414
+ if (params["businessRegistrationPhoneNumber"] !== undefined)
415
+ data["BusinessRegistrationPhoneNumber"] =
416
+ params["businessRegistrationPhoneNumber"];
417
+ if (params["doingBusinessAs"] !== undefined)
418
+ data["DoingBusinessAs"] = params["doingBusinessAs"];
419
+ if (params["optInConfirmationMessage"] !== undefined)
420
+ data["OptInConfirmationMessage"] = params["optInConfirmationMessage"];
421
+ if (params["helpMessageSample"] !== undefined)
422
+ data["HelpMessageSample"] = params["helpMessageSample"];
423
+ if (params["privacyPolicyUrl"] !== undefined)
424
+ data["PrivacyPolicyUrl"] = params["privacyPolicyUrl"];
425
+ if (params["termsAndConditionsUrl"] !== undefined)
426
+ data["TermsAndConditionsUrl"] = params["termsAndConditionsUrl"];
427
+ if (params["ageGatedContent"] !== undefined)
428
+ data["AgeGatedContent"] = serialize.bool(params["ageGatedContent"]);
429
+ if (params["optInKeywords"] !== undefined)
430
+ data["OptInKeywords"] = serialize.map(params["optInKeywords"], (e) => e);
377
431
  const headers = {};
378
432
  headers["Content-Type"] = "application/x-www-form-urlencoded";
379
433
  headers["Accept"] = "application/json";
@@ -242,8 +242,8 @@ export declare class MessagingV2RcsComplianceCountryResponse {
242
242
  /**
243
243
  * The default compliance registration SID (e.g., from CR-Google) that applies to all countries unless overridden in the `countries` array.
244
244
  */
245
- "registrationSid": string;
246
- "status": MessagingV2RcsCountryStatus;
245
+ "registrationSid"?: string;
246
+ "status"?: MessagingV2RcsCountryStatus;
247
247
  "carriers"?: Array<MessagingV2RcsCarrier>;
248
248
  }
249
249
  /**
@@ -257,7 +257,7 @@ export declare class MessagingV2RcsComplianceResponse {
257
257
  /**
258
258
  * A list of country-specific compliance details.
259
259
  */
260
- "countries": Array<MessagingV2RcsComplianceCountryResponse>;
260
+ "countries"?: Array<MessagingV2RcsComplianceCountryResponse>;
261
261
  }
262
262
  /**
263
263
  * The country-level status. Based on the aggregation of the carrier-level status.
@@ -226,6 +226,7 @@ interface PortingPortInResource {
226
226
  auto_cancel_approval_numbers: string;
227
227
  documents: Array<string>;
228
228
  date_created: Date;
229
+ support_ticket_id: number;
229
230
  }
230
231
  export declare class PortingPortInInstance {
231
232
  protected _version: V1;
@@ -287,6 +288,10 @@ export declare class PortingPortInInstance {
287
288
  */
288
289
  documents: Array<string>;
289
290
  dateCreated: Date;
291
+ /**
292
+ * Unique ID of the request\'s support ticket
293
+ */
294
+ supportTicketId: number;
290
295
  private get _proxy();
291
296
  /**
292
297
  * Remove a PortingPortInInstance
@@ -326,6 +331,7 @@ export declare class PortingPortInInstance {
326
331
  autoCancelApprovalNumbers: string;
327
332
  documents: string[];
328
333
  dateCreated: Date;
334
+ supportTicketId: number;
329
335
  };
330
336
  [inspect.custom](_depth: any, options: InspectOptions): string;
331
337
  }
@@ -99,6 +99,7 @@ class PortingPortInInstance {
99
99
  this.autoCancelApprovalNumbers = payload.auto_cancel_approval_numbers;
100
100
  this.documents = payload.documents;
101
101
  this.dateCreated = deserialize.iso8601DateTime(payload.date_created);
102
+ this.supportTicketId = deserialize.integer(payload.support_ticket_id);
102
103
  this._solution = {
103
104
  portInRequestSid: portInRequestSid || this.portInRequestSid,
104
105
  };
@@ -152,6 +153,7 @@ class PortingPortInInstance {
152
153
  autoCancelApprovalNumbers: this.autoCancelApprovalNumbers,
153
154
  documents: this.documents,
154
155
  dateCreated: this.dateCreated,
156
+ supportTicketId: this.supportTicketId,
155
157
  };
156
158
  }
157
159
  [util_1.inspect.custom](_depth, options) {
@@ -13,12 +13,12 @@ export interface ComplianceInquiriesContextUpdateOptions {
13
13
  * Options to pass to create a ComplianceInquiriesInstance
14
14
  */
15
15
  export interface ComplianceInquiriesListInstanceCreateOptions {
16
- /** The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile. */
17
- primaryProfileSid: string;
18
16
  /** The email address that approval status updates will be sent to. If not specified, the email address associated with your primary customer profile will be used. */
19
17
  notificationEmail?: string;
20
18
  /** Theme id for styling the inquiry form. */
21
19
  themeSetId?: string;
20
+ /** The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile. */
21
+ primaryProfileSid?: string;
22
22
  }
23
23
  export interface ComplianceInquiriesContext {
24
24
  /**
@@ -111,6 +111,14 @@ export interface ComplianceInquiriesListInstance {
111
111
  _uri: string;
112
112
  (customerId: string): ComplianceInquiriesContext;
113
113
  get(customerId: string): ComplianceInquiriesContext;
114
+ /**
115
+ * Create a ComplianceInquiriesInstance
116
+ *
117
+ * @param callback - Callback to handle processed record
118
+ *
119
+ * @returns Resolves to processed ComplianceInquiriesInstance
120
+ */
121
+ create(callback?: (error: Error | null, item?: ComplianceInquiriesInstance) => any): Promise<ComplianceInquiriesInstance>;
114
122
  /**
115
123
  * Create a ComplianceInquiriesInstance
116
124
  *
@@ -112,19 +112,20 @@ function ComplianceInquiriesListInstance(version) {
112
112
  instance._solution = {};
113
113
  instance._uri = `/ComplianceInquiries/Customers/Initialize`;
114
114
  instance.create = function create(params, callback) {
115
- if (params === null || params === undefined) {
116
- throw new Error('Required parameter "params" missing.');
115
+ if (params instanceof Function) {
116
+ callback = params;
117
+ params = {};
117
118
  }
118
- if (params["primaryProfileSid"] === null ||
119
- params["primaryProfileSid"] === undefined) {
120
- throw new Error("Required parameter \"params['primaryProfileSid']\" missing.");
119
+ else {
120
+ params = params || {};
121
121
  }
122
122
  let data = {};
123
- data["PrimaryProfileSid"] = params["primaryProfileSid"];
124
123
  if (params["notificationEmail"] !== undefined)
125
124
  data["NotificationEmail"] = params["notificationEmail"];
126
125
  if (params["themeSetId"] !== undefined)
127
126
  data["ThemeSetId"] = params["themeSetId"];
127
+ if (params["primaryProfileSid"] !== undefined)
128
+ data["PrimaryProfileSid"] = params["primaryProfileSid"];
128
129
  const headers = {};
129
130
  headers["Content-Type"] = "application/x-www-form-urlencoded";
130
131
  headers["Accept"] = "application/json";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "twilio",
3
3
  "description": "A Twilio helper library",
4
- "version": "5.10.2",
4
+ "version": "5.10.4",
5
5
  "author": "API Team <api@twilio.com>",
6
6
  "contributors": [
7
7
  {