twilio 4.19.3 → 4.20.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.
Files changed (86) hide show
  1. package/lib/rest/Preview.d.ts +0 -5
  2. package/lib/rest/Preview.js +0 -7
  3. package/lib/rest/PreviewBase.d.ts +0 -3
  4. package/lib/rest/PreviewBase.js +0 -5
  5. package/lib/rest/Twilio.d.ts +0 -5
  6. package/lib/rest/Twilio.js +0 -5
  7. package/lib/rest/api/v2010/account/authorizedConnectApp.d.ts +0 -12
  8. package/lib/rest/api/v2010/account/authorizedConnectApp.js +0 -4
  9. package/lib/rest/events/v1/subscription/subscribedEvent.d.ts +3 -3
  10. package/lib/rest/numbers/V1.d.ts +5 -0
  11. package/lib/rest/numbers/V1.js +7 -0
  12. package/lib/rest/numbers/v1/portingPortInFetch.d.ts +136 -0
  13. package/lib/rest/numbers/v1/portingPortInFetch.js +126 -0
  14. package/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts +2 -0
  15. package/lib/rest/taskrouter/v1/workspace/task/reservation.js +2 -0
  16. package/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts +2 -0
  17. package/lib/rest/taskrouter/v1/workspace/worker/reservation.js +2 -0
  18. package/lib/rest/trusthub/v1/complianceTollfreeInquiries.d.ts +40 -1
  19. package/lib/rest/trusthub/v1/complianceTollfreeInquiries.js +39 -0
  20. package/package.json +1 -1
  21. package/lib/rest/Autopilot.d.ts +0 -14
  22. package/lib/rest/Autopilot.js +0 -22
  23. package/lib/rest/AutopilotBase.d.ts +0 -13
  24. package/lib/rest/AutopilotBase.js +0 -31
  25. package/lib/rest/autopilot/V1.d.ts +0 -20
  26. package/lib/rest/autopilot/V1.js +0 -43
  27. package/lib/rest/autopilot/v1/assistant/defaults.d.ts +0 -143
  28. package/lib/rest/autopilot/v1/assistant/defaults.js +0 -142
  29. package/lib/rest/autopilot/v1/assistant/dialogue.d.ts +0 -108
  30. package/lib/rest/autopilot/v1/assistant/dialogue.js +0 -120
  31. package/lib/rest/autopilot/v1/assistant/fieldType/fieldValue.d.ts +0 -288
  32. package/lib/rest/autopilot/v1/assistant/fieldType/fieldValue.js +0 -249
  33. package/lib/rest/autopilot/v1/assistant/fieldType.d.ts +0 -324
  34. package/lib/rest/autopilot/v1/assistant/fieldType.js +0 -277
  35. package/lib/rest/autopilot/v1/assistant/modelBuild.d.ts +0 -326
  36. package/lib/rest/autopilot/v1/assistant/modelBuild.js +0 -266
  37. package/lib/rest/autopilot/v1/assistant/query.d.ts +0 -374
  38. package/lib/rest/autopilot/v1/assistant/query.js +0 -288
  39. package/lib/rest/autopilot/v1/assistant/styleSheet.d.ts +0 -143
  40. package/lib/rest/autopilot/v1/assistant/styleSheet.js +0 -142
  41. package/lib/rest/autopilot/v1/assistant/task/field.d.ts +0 -274
  42. package/lib/rest/autopilot/v1/assistant/task/field.js +0 -243
  43. package/lib/rest/autopilot/v1/assistant/task/sample.d.ts +0 -334
  44. package/lib/rest/autopilot/v1/assistant/task/sample.js +0 -280
  45. package/lib/rest/autopilot/v1/assistant/task/taskActions.d.ts +0 -151
  46. package/lib/rest/autopilot/v1/assistant/task/taskActions.js +0 -150
  47. package/lib/rest/autopilot/v1/assistant/task/taskStatistics.d.ts +0 -115
  48. package/lib/rest/autopilot/v1/assistant/task/taskStatistics.js +0 -125
  49. package/lib/rest/autopilot/v1/assistant/task.d.ts +0 -362
  50. package/lib/rest/autopilot/v1/assistant/task.js +0 -326
  51. package/lib/rest/autopilot/v1/assistant/webhook.d.ts +0 -330
  52. package/lib/rest/autopilot/v1/assistant/webhook.js +0 -278
  53. package/lib/rest/autopilot/v1/assistant.d.ts +0 -438
  54. package/lib/rest/autopilot/v1/assistant.js +0 -392
  55. package/lib/rest/autopilot/v1/restoreAssistant.d.ts +0 -119
  56. package/lib/rest/autopilot/v1/restoreAssistant.js +0 -96
  57. package/lib/rest/preview/Understand.d.ts +0 -15
  58. package/lib/rest/preview/Understand.js +0 -36
  59. package/lib/rest/preview/understand/assistant/assistantFallbackActions.d.ts +0 -131
  60. package/lib/rest/preview/understand/assistant/assistantFallbackActions.js +0 -142
  61. package/lib/rest/preview/understand/assistant/assistantInitiationActions.d.ts +0 -131
  62. package/lib/rest/preview/understand/assistant/assistantInitiationActions.js +0 -142
  63. package/lib/rest/preview/understand/assistant/dialogue.d.ts +0 -105
  64. package/lib/rest/preview/understand/assistant/dialogue.js +0 -120
  65. package/lib/rest/preview/understand/assistant/fieldType/fieldValue.d.ts +0 -285
  66. package/lib/rest/preview/understand/assistant/fieldType/fieldValue.js +0 -249
  67. package/lib/rest/preview/understand/assistant/fieldType.d.ts +0 -318
  68. package/lib/rest/preview/understand/assistant/fieldType.js +0 -277
  69. package/lib/rest/preview/understand/assistant/modelBuild.d.ts +0 -320
  70. package/lib/rest/preview/understand/assistant/modelBuild.js +0 -266
  71. package/lib/rest/preview/understand/assistant/query.d.ts +0 -361
  72. package/lib/rest/preview/understand/assistant/query.js +0 -286
  73. package/lib/rest/preview/understand/assistant/styleSheet.d.ts +0 -140
  74. package/lib/rest/preview/understand/assistant/styleSheet.js +0 -142
  75. package/lib/rest/preview/understand/assistant/task/field.d.ts +0 -271
  76. package/lib/rest/preview/understand/assistant/task/field.js +0 -243
  77. package/lib/rest/preview/understand/assistant/task/sample.d.ts +0 -331
  78. package/lib/rest/preview/understand/assistant/task/sample.js +0 -280
  79. package/lib/rest/preview/understand/assistant/task/taskActions.d.ts +0 -145
  80. package/lib/rest/preview/understand/assistant/task/taskActions.js +0 -150
  81. package/lib/rest/preview/understand/assistant/task/taskStatistics.d.ts +0 -112
  82. package/lib/rest/preview/understand/assistant/task/taskStatistics.js +0 -125
  83. package/lib/rest/preview/understand/assistant/task.d.ts +0 -356
  84. package/lib/rest/preview/understand/assistant/task.js +0 -326
  85. package/lib/rest/preview/understand/assistant.d.ts +0 -422
  86. package/lib/rest/preview/understand/assistant.js +0 -392
@@ -4,7 +4,6 @@ import { HostedNumberOrderListInstance } from "./preview/hosted_numbers/hostedNu
4
4
  import { AvailableAddOnListInstance } from "./preview/marketplace/availableAddOn";
5
5
  import { InstalledAddOnListInstance } from "./preview/marketplace/installedAddOn";
6
6
  import { ServiceListInstance } from "./preview/sync/service";
7
- import { AssistantListInstance } from "./preview/understand/assistant";
8
7
  import { CommandListInstance } from "./preview/wireless/command";
9
8
  import { RatePlanListInstance } from "./preview/wireless/ratePlan";
10
9
  import { SimListInstance } from "./preview/wireless/sim";
@@ -34,10 +33,6 @@ declare class Preview extends PreviewBase {
34
33
  * @deprecated - Use sync.services instead
35
34
  */
36
35
  get services(): ServiceListInstance;
37
- /**
38
- * @deprecated - Use understand.assistants instead
39
- */
40
- get assistants(): AssistantListInstance;
41
36
  /**
42
37
  * @deprecated - Use wireless.commands instead
43
38
  */
@@ -46,13 +46,6 @@ class Preview extends PreviewBase_1.default {
46
46
  console.warn("services is deprecated. Use sync.services instead.");
47
47
  return this.sync.services;
48
48
  }
49
- /**
50
- * @deprecated - Use understand.assistants instead
51
- */
52
- get assistants() {
53
- console.warn("assistants is deprecated. Use understand.assistants instead.");
54
- return this.understand.assistants;
55
- }
56
49
  /**
57
50
  * @deprecated - Use wireless.commands instead
58
51
  */
@@ -3,14 +3,12 @@ import DeployedDevices from "./preview/DeployedDevices";
3
3
  import HostedNumbers from "./preview/HostedNumbers";
4
4
  import Sync from "./preview/Sync";
5
5
  import Marketplace from "./preview/Marketplace";
6
- import Understand from "./preview/Understand";
7
6
  import Wireless from "./preview/Wireless";
8
7
  declare class PreviewBase extends Domain {
9
8
  _deployed_devices?: DeployedDevices;
10
9
  _hosted_numbers?: HostedNumbers;
11
10
  _sync?: Sync;
12
11
  _marketplace?: Marketplace;
13
- _understand?: Understand;
14
12
  _wireless?: Wireless;
15
13
  /**
16
14
  * Initialize preview domain
@@ -22,7 +20,6 @@ declare class PreviewBase extends Domain {
22
20
  get hosted_numbers(): HostedNumbers;
23
21
  get sync(): Sync;
24
22
  get marketplace(): Marketplace;
25
- get understand(): Understand;
26
23
  get wireless(): Wireless;
27
24
  }
28
25
  export = PreviewBase;
@@ -17,7 +17,6 @@ const DeployedDevices_1 = __importDefault(require("./preview/DeployedDevices"));
17
17
  const HostedNumbers_1 = __importDefault(require("./preview/HostedNumbers"));
18
18
  const Sync_1 = __importDefault(require("./preview/Sync"));
19
19
  const Marketplace_1 = __importDefault(require("./preview/Marketplace"));
20
- const Understand_1 = __importDefault(require("./preview/Understand"));
21
20
  const Wireless_1 = __importDefault(require("./preview/Wireless"));
22
21
  class PreviewBase extends Domain_1.default {
23
22
  /**
@@ -45,10 +44,6 @@ class PreviewBase extends Domain_1.default {
45
44
  this._marketplace = this._marketplace || new Marketplace_1.default(this);
46
45
  return this._marketplace;
47
46
  }
48
- get understand() {
49
- this._understand = this._understand || new Understand_1.default(this);
50
- return this._understand;
51
- }
52
47
  get wireless() {
53
48
  this._wireless = this._wireless || new Wireless_1.default(this);
54
49
  return this._wireless;
@@ -1,7 +1,6 @@
1
1
  import { Client, ClientOpts, RequestOpts } from "../base/BaseTwilio";
2
2
  import Accounts from "./Accounts";
3
3
  import Api from "./Api";
4
- import Autopilot from "./Autopilot";
5
4
  import Bulkexports from "./Bulkexports";
6
5
  import Chat from "./Chat";
7
6
  import Content from "./Content";
@@ -66,8 +65,6 @@ declare class Twilio extends Client {
66
65
  _accounts?: Accounts;
67
66
  /** (Twilio.Api) - api domain */
68
67
  _api?: Api;
69
- /** (Twilio.Autopilot) - autopilot domain */
70
- _autopilot?: Autopilot;
71
68
  /** (Twilio.Bulkexports) - bulkexports domain */
72
69
  _bulkexports?: Bulkexports;
73
70
  /** (Twilio.Chat) - chat domain */
@@ -148,8 +145,6 @@ declare class Twilio extends Client {
148
145
  get accounts(): Accounts;
149
146
  /** Getter for (Twilio.Api) domain */
150
147
  get api(): Api;
151
- /** Getter for (Twilio.Autopilot) domain */
152
- get autopilot(): Autopilot;
153
148
  /** Getter for (Twilio.Bulkexports) domain */
154
149
  get bulkexports(): Bulkexports;
155
150
  /** Getter for (Twilio.Chat) domain */
@@ -34,7 +34,6 @@ class Twilio extends BaseTwilio_1.Client {
34
34
  if (this.opts?.lazyLoading === false) {
35
35
  this.accounts;
36
36
  this.api;
37
- this.autopilot;
38
37
  this.bulkexports;
39
38
  this.chat;
40
39
  this.content;
@@ -78,10 +77,6 @@ class Twilio extends BaseTwilio_1.Client {
78
77
  get api() {
79
78
  return this._api ?? (this._api = new (require("./Api"))(this));
80
79
  }
81
- /** Getter for (Twilio.Autopilot) domain */
82
- get autopilot() {
83
- return (this._autopilot ?? (this._autopilot = new (require("./Autopilot"))(this)));
84
- }
85
80
  /** Getter for (Twilio.Bulkexports) domain */
86
81
  get bulkexports() {
87
82
  return (this._bulkexports ??
@@ -80,8 +80,6 @@ interface AuthorizedConnectAppResource {
80
80
  connect_app_friendly_name: string;
81
81
  connect_app_homepage_url: string;
82
82
  connect_app_sid: string;
83
- date_created: Date;
84
- date_updated: Date;
85
83
  permissions: Array<AuthorizedConnectAppPermission>;
86
84
  uri: string;
87
85
  }
@@ -114,14 +112,6 @@ export declare class AuthorizedConnectAppInstance {
114
112
  * The SID that we assigned to the Connect App.
115
113
  */
116
114
  connectAppSid: string;
117
- /**
118
- * The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
119
- */
120
- dateCreated: Date;
121
- /**
122
- * The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
123
- */
124
- dateUpdated: Date;
125
115
  /**
126
116
  * The set of permissions that you authorized for the Connect App. Can be: `get-all` or `post-all`.
127
117
  */
@@ -151,8 +141,6 @@ export declare class AuthorizedConnectAppInstance {
151
141
  connectAppFriendlyName: string;
152
142
  connectAppHomepageUrl: string;
153
143
  connectAppSid: string;
154
- dateCreated: Date;
155
- dateUpdated: Date;
156
144
  permissions: AuthorizedConnectAppPermission[];
157
145
  uri: string;
158
146
  };
@@ -66,8 +66,6 @@ class AuthorizedConnectAppInstance {
66
66
  this.connectAppFriendlyName = payload.connect_app_friendly_name;
67
67
  this.connectAppHomepageUrl = payload.connect_app_homepage_url;
68
68
  this.connectAppSid = payload.connect_app_sid;
69
- this.dateCreated = deserialize.rfc2822DateTime(payload.date_created);
70
- this.dateUpdated = deserialize.rfc2822DateTime(payload.date_updated);
71
69
  this.permissions = payload.permissions;
72
70
  this.uri = payload.uri;
73
71
  this._solution = {
@@ -104,8 +102,6 @@ class AuthorizedConnectAppInstance {
104
102
  connectAppFriendlyName: this.connectAppFriendlyName,
105
103
  connectAppHomepageUrl: this.connectAppHomepageUrl,
106
104
  connectAppSid: this.connectAppSid,
107
- dateCreated: this.dateCreated,
108
- dateUpdated: this.dateUpdated,
109
105
  permissions: this.permissions,
110
106
  uri: this.uri,
111
107
  };
@@ -7,7 +7,7 @@ import V1 from "../../V1";
7
7
  * Options to pass to update a SubscribedEventInstance
8
8
  */
9
9
  export interface SubscribedEventContextUpdateOptions {
10
- /** The schema version that the subscription should use. */
10
+ /** The schema version that the Subscription should use. */
11
11
  schemaVersion?: number;
12
12
  }
13
13
  /**
@@ -16,7 +16,7 @@ export interface SubscribedEventContextUpdateOptions {
16
16
  export interface SubscribedEventListInstanceCreateOptions {
17
17
  /** Type of event being subscribed to. */
18
18
  type: string;
19
- /** The schema version that the subscription should use. */
19
+ /** The schema version that the Subscription should use. */
20
20
  schemaVersion?: number;
21
21
  }
22
22
  /**
@@ -136,7 +136,7 @@ export declare class SubscribedEventInstance {
136
136
  */
137
137
  type: string;
138
138
  /**
139
- * The schema version that the subscription should use.
139
+ * The schema version that the Subscription should use.
140
140
  */
141
141
  schemaVersion: number;
142
142
  /**
@@ -2,6 +2,7 @@ import NumbersBase from "../NumbersBase";
2
2
  import Version from "../../base/Version";
3
3
  import { BulkEligibilityListInstance } from "./v1/bulkEligibility";
4
4
  import { PortingBulkPortabilityListInstance } from "./v1/portingBulkPortability";
5
+ import { PortingPortInFetchListInstance } from "./v1/portingPortInFetch";
5
6
  import { PortingPortabilityListInstance } from "./v1/portingPortability";
6
7
  export default class V1 extends Version {
7
8
  /**
@@ -14,12 +15,16 @@ export default class V1 extends Version {
14
15
  protected _bulkEligibilities?: BulkEligibilityListInstance;
15
16
  /** portingBulkPortabilities - { Twilio.Numbers.V1.PortingBulkPortabilityListInstance } resource */
16
17
  protected _portingBulkPortabilities?: PortingBulkPortabilityListInstance;
18
+ /** portingPortIns - { Twilio.Numbers.V1.PortingPortInFetchListInstance } resource */
19
+ protected _portingPortIns?: PortingPortInFetchListInstance;
17
20
  /** portingPortabilities - { Twilio.Numbers.V1.PortingPortabilityListInstance } resource */
18
21
  protected _portingPortabilities?: PortingPortabilityListInstance;
19
22
  /** Getter for bulkEligibilities resource */
20
23
  get bulkEligibilities(): BulkEligibilityListInstance;
21
24
  /** Getter for portingBulkPortabilities resource */
22
25
  get portingBulkPortabilities(): PortingBulkPortabilityListInstance;
26
+ /** Getter for portingPortIns resource */
27
+ get portingPortIns(): PortingPortInFetchListInstance;
23
28
  /** Getter for portingPortabilities resource */
24
29
  get portingPortabilities(): PortingPortabilityListInstance;
25
30
  }
@@ -19,6 +19,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  const Version_1 = __importDefault(require("../../base/Version"));
20
20
  const bulkEligibility_1 = require("./v1/bulkEligibility");
21
21
  const portingBulkPortability_1 = require("./v1/portingBulkPortability");
22
+ const portingPortInFetch_1 = require("./v1/portingPortInFetch");
22
23
  const portingPortability_1 = require("./v1/portingPortability");
23
24
  class V1 extends Version_1.default {
24
25
  /**
@@ -42,6 +43,12 @@ class V1 extends Version_1.default {
42
43
  (0, portingBulkPortability_1.PortingBulkPortabilityListInstance)(this);
43
44
  return this._portingBulkPortabilities;
44
45
  }
46
+ /** Getter for portingPortIns resource */
47
+ get portingPortIns() {
48
+ this._portingPortIns =
49
+ this._portingPortIns || (0, portingPortInFetch_1.PortingPortInFetchListInstance)(this);
50
+ return this._portingPortIns;
51
+ }
45
52
  /** Getter for portingPortabilities resource */
46
53
  get portingPortabilities() {
47
54
  this._portingPortabilities =
@@ -0,0 +1,136 @@
1
+ /// <reference types="node" />
2
+ import { inspect, InspectOptions } from "util";
3
+ import V1 from "../V1";
4
+ export interface PortingPortInFetchContext {
5
+ /**
6
+ * Fetch a PortingPortInFetchInstance
7
+ *
8
+ * @param callback - Callback to handle processed record
9
+ *
10
+ * @returns Resolves to processed PortingPortInFetchInstance
11
+ */
12
+ fetch(callback?: (error: Error | null, item?: PortingPortInFetchInstance) => any): Promise<PortingPortInFetchInstance>;
13
+ /**
14
+ * Provide a user-friendly representation
15
+ */
16
+ toJSON(): any;
17
+ [inspect.custom](_depth: any, options: InspectOptions): any;
18
+ }
19
+ export interface PortingPortInFetchContextSolution {
20
+ portInRequestSid: string;
21
+ }
22
+ export declare class PortingPortInFetchContextImpl implements PortingPortInFetchContext {
23
+ protected _version: V1;
24
+ protected _solution: PortingPortInFetchContextSolution;
25
+ protected _uri: string;
26
+ constructor(_version: V1, portInRequestSid: string);
27
+ fetch(callback?: (error: Error | null, item?: PortingPortInFetchInstance) => any): Promise<PortingPortInFetchInstance>;
28
+ /**
29
+ * Provide a user-friendly representation
30
+ *
31
+ * @returns Object
32
+ */
33
+ toJSON(): PortingPortInFetchContextSolution;
34
+ [inspect.custom](_depth: any, options: InspectOptions): string;
35
+ }
36
+ interface PortingPortInFetchResource {
37
+ port_in_request_sid: string;
38
+ url: string;
39
+ account_sid: string;
40
+ notification_emails: Array<string>;
41
+ target_port_in_date: Date;
42
+ target_port_in_time_range_start: string;
43
+ target_port_in_time_range_end: string;
44
+ losing_carrier_information: any;
45
+ phone_numbers: Array<any>;
46
+ documents: Array<string>;
47
+ }
48
+ export declare class PortingPortInFetchInstance {
49
+ protected _version: V1;
50
+ protected _solution: PortingPortInFetchContextSolution;
51
+ protected _context?: PortingPortInFetchContext;
52
+ constructor(_version: V1, payload: PortingPortInFetchResource, portInRequestSid?: string);
53
+ /**
54
+ * The SID of the Port In request. This is a unique identifier of the port in request.
55
+ */
56
+ portInRequestSid: string;
57
+ /**
58
+ * The URL of this Port In request
59
+ */
60
+ url: string;
61
+ /**
62
+ * The Account SID that the numbers will be added to after they are ported into Twilio.
63
+ */
64
+ accountSid: string;
65
+ /**
66
+ * List of emails for getting notifications about the LOA signing process. Allowed Max 10 emails.
67
+ */
68
+ notificationEmails: Array<string>;
69
+ /**
70
+ * Minimum number of days in the future (at least 2 days) needs to be established with the Ops team for validation.
71
+ */
72
+ targetPortInDate: Date;
73
+ /**
74
+ * Minimum hour in the future needs to be established with the Ops team for validation.
75
+ */
76
+ targetPortInTimeRangeStart: string;
77
+ /**
78
+ * Maximum hour in the future needs to be established with the Ops team for validation.
79
+ */
80
+ targetPortInTimeRangeEnd: string;
81
+ /**
82
+ * The information for the losing carrier.
83
+ */
84
+ losingCarrierInformation: any;
85
+ /**
86
+ * The list of phone numbers to Port in. Phone numbers are in E.164 format (e.g. +16175551212).
87
+ */
88
+ phoneNumbers: Array<any>;
89
+ /**
90
+ * The list of documents SID referencing a utility bills
91
+ */
92
+ documents: Array<string>;
93
+ private get _proxy();
94
+ /**
95
+ * Fetch a PortingPortInFetchInstance
96
+ *
97
+ * @param callback - Callback to handle processed record
98
+ *
99
+ * @returns Resolves to processed PortingPortInFetchInstance
100
+ */
101
+ fetch(callback?: (error: Error | null, item?: PortingPortInFetchInstance) => any): Promise<PortingPortInFetchInstance>;
102
+ /**
103
+ * Provide a user-friendly representation
104
+ *
105
+ * @returns Object
106
+ */
107
+ toJSON(): {
108
+ portInRequestSid: string;
109
+ url: string;
110
+ accountSid: string;
111
+ notificationEmails: string[];
112
+ targetPortInDate: Date;
113
+ targetPortInTimeRangeStart: string;
114
+ targetPortInTimeRangeEnd: string;
115
+ losingCarrierInformation: any;
116
+ phoneNumbers: any[];
117
+ documents: string[];
118
+ };
119
+ [inspect.custom](_depth: any, options: InspectOptions): string;
120
+ }
121
+ export interface PortingPortInFetchSolution {
122
+ }
123
+ export interface PortingPortInFetchListInstance {
124
+ _version: V1;
125
+ _solution: PortingPortInFetchSolution;
126
+ _uri: string;
127
+ (portInRequestSid: string): PortingPortInFetchContext;
128
+ get(portInRequestSid: string): PortingPortInFetchContext;
129
+ /**
130
+ * Provide a user-friendly representation
131
+ */
132
+ toJSON(): any;
133
+ [inspect.custom](_depth: any, options: InspectOptions): any;
134
+ }
135
+ export declare function PortingPortInFetchListInstance(version: V1): PortingPortInFetchListInstance;
136
+ export {};
@@ -0,0 +1,126 @@
1
+ "use strict";
2
+ /*
3
+ * This code was generated by
4
+ * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
5
+ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
6
+ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
7
+ *
8
+ * Twilio - Numbers
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.PortingPortInFetchListInstance = exports.PortingPortInFetchInstance = exports.PortingPortInFetchContextImpl = void 0;
17
+ const util_1 = require("util");
18
+ const deserialize = require("../../../base/deserialize");
19
+ const serialize = require("../../../base/serialize");
20
+ const utility_1 = require("../../../base/utility");
21
+ class PortingPortInFetchContextImpl {
22
+ constructor(_version, portInRequestSid) {
23
+ this._version = _version;
24
+ if (!(0, utility_1.isValidPathParam)(portInRequestSid)) {
25
+ throw new Error("Parameter 'portInRequestSid' is not valid.");
26
+ }
27
+ this._solution = { portInRequestSid };
28
+ this._uri = `/Porting/PortIn/${portInRequestSid}`;
29
+ }
30
+ fetch(callback) {
31
+ const instance = this;
32
+ let operationVersion = instance._version, operationPromise = operationVersion.fetch({
33
+ uri: instance._uri,
34
+ method: "get",
35
+ });
36
+ operationPromise = operationPromise.then((payload) => new PortingPortInFetchInstance(operationVersion, payload, instance._solution.portInRequestSid));
37
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
38
+ return operationPromise;
39
+ }
40
+ /**
41
+ * Provide a user-friendly representation
42
+ *
43
+ * @returns Object
44
+ */
45
+ toJSON() {
46
+ return this._solution;
47
+ }
48
+ [util_1.inspect.custom](_depth, options) {
49
+ return (0, util_1.inspect)(this.toJSON(), options);
50
+ }
51
+ }
52
+ exports.PortingPortInFetchContextImpl = PortingPortInFetchContextImpl;
53
+ class PortingPortInFetchInstance {
54
+ constructor(_version, payload, portInRequestSid) {
55
+ this._version = _version;
56
+ this.portInRequestSid = payload.port_in_request_sid;
57
+ this.url = payload.url;
58
+ this.accountSid = payload.account_sid;
59
+ this.notificationEmails = payload.notification_emails;
60
+ this.targetPortInDate = deserialize.iso8601Date(payload.target_port_in_date);
61
+ this.targetPortInTimeRangeStart = payload.target_port_in_time_range_start;
62
+ this.targetPortInTimeRangeEnd = payload.target_port_in_time_range_end;
63
+ this.losingCarrierInformation = payload.losing_carrier_information;
64
+ this.phoneNumbers = payload.phone_numbers;
65
+ this.documents = payload.documents;
66
+ this._solution = {
67
+ portInRequestSid: portInRequestSid || this.portInRequestSid,
68
+ };
69
+ }
70
+ get _proxy() {
71
+ this._context =
72
+ this._context ||
73
+ new PortingPortInFetchContextImpl(this._version, this._solution.portInRequestSid);
74
+ return this._context;
75
+ }
76
+ /**
77
+ * Fetch a PortingPortInFetchInstance
78
+ *
79
+ * @param callback - Callback to handle processed record
80
+ *
81
+ * @returns Resolves to processed PortingPortInFetchInstance
82
+ */
83
+ fetch(callback) {
84
+ return this._proxy.fetch(callback);
85
+ }
86
+ /**
87
+ * Provide a user-friendly representation
88
+ *
89
+ * @returns Object
90
+ */
91
+ toJSON() {
92
+ return {
93
+ portInRequestSid: this.portInRequestSid,
94
+ url: this.url,
95
+ accountSid: this.accountSid,
96
+ notificationEmails: this.notificationEmails,
97
+ targetPortInDate: this.targetPortInDate,
98
+ targetPortInTimeRangeStart: this.targetPortInTimeRangeStart,
99
+ targetPortInTimeRangeEnd: this.targetPortInTimeRangeEnd,
100
+ losingCarrierInformation: this.losingCarrierInformation,
101
+ phoneNumbers: this.phoneNumbers,
102
+ documents: this.documents,
103
+ };
104
+ }
105
+ [util_1.inspect.custom](_depth, options) {
106
+ return (0, util_1.inspect)(this.toJSON(), options);
107
+ }
108
+ }
109
+ exports.PortingPortInFetchInstance = PortingPortInFetchInstance;
110
+ function PortingPortInFetchListInstance(version) {
111
+ const instance = ((portInRequestSid) => instance.get(portInRequestSid));
112
+ instance.get = function get(portInRequestSid) {
113
+ return new PortingPortInFetchContextImpl(version, portInRequestSid);
114
+ };
115
+ instance._version = version;
116
+ instance._solution = {};
117
+ instance._uri = ``;
118
+ instance.toJSON = function toJSON() {
119
+ return instance._solution;
120
+ };
121
+ instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
122
+ return (0, util_1.inspect)(instance.toJSON(), options);
123
+ };
124
+ return instance;
125
+ }
126
+ exports.PortingPortInFetchListInstance = PortingPortInFetchListInstance;
@@ -119,6 +119,8 @@ export interface ReservationContextUpdateOptions {
119
119
  endConferenceOnCustomerExit?: boolean;
120
120
  /** Whether to play a notification beep when the customer joins. */
121
121
  beepOnCustomerEntrance?: boolean;
122
+ /** The jitter buffer size for conference. Can be: `small`, `medium`, `large`, `off`. */
123
+ jitterBufferSize?: string;
122
124
  }
123
125
  /**
124
126
  * Options to pass to each
@@ -166,6 +166,8 @@ class ReservationContextImpl {
166
166
  data["EndConferenceOnCustomerExit"] = serialize.bool(params["endConferenceOnCustomerExit"]);
167
167
  if (params["beepOnCustomerEntrance"] !== undefined)
168
168
  data["BeepOnCustomerEntrance"] = serialize.bool(params["beepOnCustomerEntrance"]);
169
+ if (params["jitterBufferSize"] !== undefined)
170
+ data["JitterBufferSize"] = params["jitterBufferSize"];
169
171
  const headers = {};
170
172
  headers["Content-Type"] = "application/x-www-form-urlencoded";
171
173
  if (params["ifMatch"] !== undefined)
@@ -114,6 +114,8 @@ export interface ReservationContextUpdateOptions {
114
114
  endConferenceOnCustomerExit?: boolean;
115
115
  /** Whether to play a notification beep when the customer joins. */
116
116
  beepOnCustomerEntrance?: boolean;
117
+ /** The jitter buffer size for conference. Can be: `small`, `medium`, `large`, `off`. */
118
+ jitterBufferSize?: string;
117
119
  }
118
120
  /**
119
121
  * Options to pass to each
@@ -162,6 +162,8 @@ class ReservationContextImpl {
162
162
  data["EndConferenceOnCustomerExit"] = serialize.bool(params["endConferenceOnCustomerExit"]);
163
163
  if (params["beepOnCustomerEntrance"] !== undefined)
164
164
  data["BeepOnCustomerEntrance"] = serialize.bool(params["beepOnCustomerEntrance"]);
165
+ if (params["jitterBufferSize"] !== undefined)
166
+ data["JitterBufferSize"] = params["jitterBufferSize"];
165
167
  const headers = {};
166
168
  headers["Content-Type"] = "application/x-www-form-urlencoded";
167
169
  if (params["ifMatch"] !== undefined)
@@ -1,14 +1,53 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
3
  import V1 from "../V1";
4
+ export type ComplianceTollfreeInquiriesOptInType = "VERBAL" | "WEB_FORM" | "PAPER_FORM" | "VIA_TEXT" | "MOBILE_QR_CODE";
4
5
  /**
5
6
  * Options to pass to create a ComplianceTollfreeInquiriesInstance
6
7
  */
7
8
  export interface ComplianceTollfreeInquiriesListInstanceCreateOptions {
8
9
  /** The Tollfree phone number to be verified */
9
10
  tollfreePhoneNumber: string;
10
- /** The notification email to be triggered when verification status is changed */
11
+ /** The email address to receive the notification about the verification result. */
11
12
  notificationEmail: string;
13
+ /** The name of the business or organization using the Tollfree number. */
14
+ businessName?: string;
15
+ /** The website of the business or organization using the Tollfree number. */
16
+ businessWebsite?: string;
17
+ /** The category of the use case for the Tollfree Number. List as many are applicable.. */
18
+ useCaseCategories?: Array<string>;
19
+ /** Use this to further explain how messaging is used by the business or organization. */
20
+ useCaseSummary?: string;
21
+ /** An example of message content, i.e. a sample message. */
22
+ productionMessageSample?: string;
23
+ /** Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL. */
24
+ optInImageUrls?: Array<string>;
25
+ /** */
26
+ optInType?: ComplianceTollfreeInquiriesOptInType;
27
+ /** Estimate monthly volume of messages from the Tollfree Number. */
28
+ messageVolume?: string;
29
+ /** The address of the business or organization using the Tollfree number. */
30
+ businessStreetAddress?: string;
31
+ /** The address of the business or organization using the Tollfree number. */
32
+ businessStreetAddress2?: string;
33
+ /** The city of the business or organization using the Tollfree number. */
34
+ businessCity?: string;
35
+ /** The state/province/region of the business or organization using the Tollfree number. */
36
+ businessStateProvinceRegion?: string;
37
+ /** The postal code of the business or organization using the Tollfree number. */
38
+ businessPostalCode?: string;
39
+ /** The country of the business or organization using the Tollfree number. */
40
+ businessCountry?: string;
41
+ /** Additional information to be provided for verification. */
42
+ additionalInformation?: string;
43
+ /** The first name of the contact for the business or organization using the Tollfree number. */
44
+ businessContactFirstName?: string;
45
+ /** The last name of the contact for the business or organization using the Tollfree number. */
46
+ businessContactLastName?: string;
47
+ /** The email address of the contact for the business or organization using the Tollfree number. */
48
+ businessContactEmail?: string;
49
+ /** The phone number of the contact for the business or organization using the Tollfree number. */
50
+ businessContactPhone?: string;
12
51
  }
13
52
  export interface ComplianceTollfreeInquiriesSolution {
14
53
  }
@@ -37,6 +37,45 @@ function ComplianceTollfreeInquiriesListInstance(version) {
37
37
  let data = {};
38
38
  data["TollfreePhoneNumber"] = params["tollfreePhoneNumber"];
39
39
  data["NotificationEmail"] = params["notificationEmail"];
40
+ if (params["businessName"] !== undefined)
41
+ data["BusinessName"] = params["businessName"];
42
+ if (params["businessWebsite"] !== undefined)
43
+ data["BusinessWebsite"] = params["businessWebsite"];
44
+ if (params["useCaseCategories"] !== undefined)
45
+ data["UseCaseCategories"] = serialize.map(params["useCaseCategories"], (e) => e);
46
+ if (params["useCaseSummary"] !== undefined)
47
+ data["UseCaseSummary"] = params["useCaseSummary"];
48
+ if (params["productionMessageSample"] !== undefined)
49
+ data["ProductionMessageSample"] = params["productionMessageSample"];
50
+ if (params["optInImageUrls"] !== undefined)
51
+ data["OptInImageUrls"] = serialize.map(params["optInImageUrls"], (e) => e);
52
+ if (params["optInType"] !== undefined)
53
+ data["OptInType"] = params["optInType"];
54
+ if (params["messageVolume"] !== undefined)
55
+ data["MessageVolume"] = params["messageVolume"];
56
+ if (params["businessStreetAddress"] !== undefined)
57
+ data["BusinessStreetAddress"] = params["businessStreetAddress"];
58
+ if (params["businessStreetAddress2"] !== undefined)
59
+ data["BusinessStreetAddress2"] = params["businessStreetAddress2"];
60
+ if (params["businessCity"] !== undefined)
61
+ data["BusinessCity"] = params["businessCity"];
62
+ if (params["businessStateProvinceRegion"] !== undefined)
63
+ data["BusinessStateProvinceRegion"] =
64
+ params["businessStateProvinceRegion"];
65
+ if (params["businessPostalCode"] !== undefined)
66
+ data["BusinessPostalCode"] = params["businessPostalCode"];
67
+ if (params["businessCountry"] !== undefined)
68
+ data["BusinessCountry"] = params["businessCountry"];
69
+ if (params["additionalInformation"] !== undefined)
70
+ data["AdditionalInformation"] = params["additionalInformation"];
71
+ if (params["businessContactFirstName"] !== undefined)
72
+ data["BusinessContactFirstName"] = params["businessContactFirstName"];
73
+ if (params["businessContactLastName"] !== undefined)
74
+ data["BusinessContactLastName"] = params["businessContactLastName"];
75
+ if (params["businessContactEmail"] !== undefined)
76
+ data["BusinessContactEmail"] = params["businessContactEmail"];
77
+ if (params["businessContactPhone"] !== undefined)
78
+ data["BusinessContactPhone"] = params["businessContactPhone"];
40
79
  const headers = {};
41
80
  headers["Content-Type"] = "application/x-www-form-urlencoded";
42
81
  let operationVersion = version, operationPromise = operationVersion.create({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "twilio",
3
3
  "description": "A Twilio helper library",
4
- "version": "4.19.3",
4
+ "version": "4.20.1",
5
5
  "author": "API Team <api@twilio.com>",
6
6
  "contributors": [
7
7
  {