twilio 5.0.1 → 5.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/lib/rest/Twilio.d.ts +0 -5
  2. package/lib/rest/Twilio.js +0 -5
  3. package/lib/rest/api/v2010/account/call.d.ts +22 -22
  4. package/lib/rest/api/v2010/account/conference/participant.d.ts +6 -0
  5. package/lib/rest/api/v2010/account/conference/participant.js +2 -0
  6. package/lib/rest/content/v1/content/approvalCreate.d.ts +3 -3
  7. package/lib/rest/content/v1/content/approvalCreate.js +7 -7
  8. package/lib/rest/content/v1/content/approvalFetch.d.ts +5 -5
  9. package/lib/rest/content/v1/content/approvalFetch.js +14 -14
  10. package/lib/rest/conversations/v1/service/conversation.d.ts +6 -6
  11. package/lib/rest/flexApi/v1/plugin.d.ts +4 -0
  12. package/lib/rest/flexApi/v1/plugin.js +4 -0
  13. package/lib/rest/numbers/v1/portingPortInFetch.d.ts +6 -0
  14. package/lib/rest/numbers/v1/portingPortInFetch.js +2 -0
  15. package/lib/rest/oauth/v1/token.d.ts +8 -4
  16. package/lib/rest/oauth/v1/token.js +7 -6
  17. package/lib/rest/trusthub/v1/complianceRegistrationInquiries.d.ts +84 -10
  18. package/lib/rest/trusthub/v1/complianceRegistrationInquiries.js +92 -28
  19. package/lib/rest/trusthub/v1/trustProducts.d.ts +16 -16
  20. package/lib/twiml/VoiceResponse.d.ts +2 -2
  21. package/package.json +1 -1
  22. package/lib/rest/Media.d.ts +0 -4
  23. package/lib/rest/Media.js +0 -8
  24. package/lib/rest/MediaBase.d.ts +0 -13
  25. package/lib/rest/MediaBase.js +0 -31
  26. package/lib/rest/media/V1.d.ts +0 -25
  27. package/lib/rest/media/V1.js +0 -51
  28. package/lib/rest/media/v1/mediaProcessor.d.ts +0 -317
  29. package/lib/rest/media/v1/mediaProcessor.js +0 -256
  30. package/lib/rest/media/v1/mediaRecording.d.ts +0 -309
  31. package/lib/rest/media/v1/mediaRecording.js +0 -226
  32. package/lib/rest/media/v1/playerStreamer/playbackGrant.d.ts +0 -151
  33. package/lib/rest/media/v1/playerStreamer/playbackGrant.js +0 -146
  34. package/lib/rest/media/v1/playerStreamer.d.ts +0 -327
  35. package/lib/rest/media/v1/playerStreamer.js +0 -264
@@ -12,7 +12,6 @@ import Insights from "./Insights";
12
12
  import Intelligence from "./Intelligence";
13
13
  import IpMessaging from "./IpMessaging";
14
14
  import Lookups from "./Lookups";
15
- import Media from "./Media";
16
15
  import PreviewMessaging from "./PreviewMessaging";
17
16
  import Messaging from "./Messaging";
18
17
  import Microvisor from "./Microvisor";
@@ -89,8 +88,6 @@ declare class Twilio extends Client {
89
88
  _ipMessaging?: IpMessaging;
90
89
  /** (Twilio.Lookups) - lookups domain */
91
90
  _lookups?: Lookups;
92
- /** (Twilio.Media) - media domain */
93
- _media?: Media;
94
91
  /** (Twilio.PreviewMessaging) - previewMessaging domain */
95
92
  _previewMessaging?: PreviewMessaging;
96
93
  /** (Twilio.Messaging) - messaging domain */
@@ -173,8 +170,6 @@ declare class Twilio extends Client {
173
170
  get ipMessaging(): IpMessaging;
174
171
  /** Getter for (Twilio.Lookups) domain */
175
172
  get lookups(): Lookups;
176
- /** Getter for (Twilio.Media) domain */
177
- get media(): Media;
178
173
  /** Getter for (Twilio.PreviewMessaging) domain */
179
174
  get previewMessaging(): PreviewMessaging;
180
175
  /** Getter for (Twilio.Messaging) domain */
@@ -45,7 +45,6 @@ class Twilio extends BaseTwilio_1.Client {
45
45
  this.intelligence;
46
46
  this.ipMessaging;
47
47
  this.lookups;
48
- this.media;
49
48
  this.previewMessaging;
50
49
  this.messaging;
51
50
  this.microvisor;
@@ -128,10 +127,6 @@ class Twilio extends BaseTwilio_1.Client {
128
127
  get lookups() {
129
128
  return this._lookups ?? (this._lookups = new (require("./Lookups"))(this));
130
129
  }
131
- /** Getter for (Twilio.Media) domain */
132
- get media() {
133
- return this._media ?? (this._media = new (require("./Media"))(this));
134
- }
135
130
  /** Getter for (Twilio.PreviewMessaging) domain */
136
131
  get previewMessaging() {
137
132
  return (this._previewMessaging ??
@@ -124,17 +124,17 @@ export interface CallListInstanceEachOptions {
124
124
  parentCallSid?: string;
125
125
  /** The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`. */
126
126
  status?: CallStatus;
127
- /** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
127
+ /** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
128
128
  startTime?: Date;
129
- /** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
129
+ /** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
130
130
  startTimeBefore?: Date;
131
- /** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
131
+ /** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
132
132
  startTimeAfter?: Date;
133
- /** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
133
+ /** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
134
134
  endTime?: Date;
135
- /** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
135
+ /** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
136
136
  endTimeBefore?: Date;
137
- /** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
137
+ /** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
138
138
  endTimeAfter?: Date;
139
139
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
140
140
  pageSize?: number;
@@ -157,17 +157,17 @@ export interface CallListInstanceOptions {
157
157
  parentCallSid?: string;
158
158
  /** The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`. */
159
159
  status?: CallStatus;
160
- /** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
160
+ /** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
161
161
  startTime?: Date;
162
- /** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
162
+ /** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
163
163
  startTimeBefore?: Date;
164
- /** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
164
+ /** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
165
165
  startTimeAfter?: Date;
166
- /** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
166
+ /** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
167
167
  endTime?: Date;
168
- /** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
168
+ /** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
169
169
  endTimeBefore?: Date;
170
- /** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
170
+ /** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
171
171
  endTimeAfter?: Date;
172
172
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
173
173
  pageSize?: number;
@@ -186,17 +186,17 @@ export interface CallListInstancePageOptions {
186
186
  parentCallSid?: string;
187
187
  /** The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`. */
188
188
  status?: CallStatus;
189
- /** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
189
+ /** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
190
190
  startTime?: Date;
191
- /** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
191
+ /** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
192
192
  startTimeBefore?: Date;
193
- /** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
193
+ /** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
194
194
  startTimeAfter?: Date;
195
- /** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
195
+ /** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
196
196
  endTime?: Date;
197
- /** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
197
+ /** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
198
198
  endTimeBefore?: Date;
199
- /** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
199
+ /** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
200
200
  endTimeAfter?: Date;
201
201
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
202
202
  pageSize?: number;
@@ -330,11 +330,11 @@ export declare class CallInstance {
330
330
  */
331
331
  sid: string;
332
332
  /**
333
- * The date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
333
+ * The date and time in UTC that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
334
334
  */
335
335
  dateCreated: Date;
336
336
  /**
337
- * The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
337
+ * The date and time in UTC that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
338
338
  */
339
339
  dateUpdated: Date;
340
340
  /**
@@ -367,11 +367,11 @@ export declare class CallInstance {
367
367
  phoneNumberSid: string;
368
368
  status: CallStatus;
369
369
  /**
370
- * The start time of the call, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call has not yet been dialed.
370
+ * The start time of the call, given as UTC in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call has not yet been dialed.
371
371
  */
372
372
  startTime: Date;
373
373
  /**
374
- * The time the call ended, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call did not complete successfully.
374
+ * The time the call ended, given as UTC in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call did not complete successfully.
375
375
  */
376
376
  endTime: Date;
377
377
  /**
@@ -263,6 +263,7 @@ interface ParticipantResource {
263
263
  hold: boolean;
264
264
  start_conference_on_enter: boolean;
265
265
  status: ParticipantStatus;
266
+ queue_time: string;
266
267
  uri: string;
267
268
  }
268
269
  export declare class ParticipantInstance {
@@ -319,6 +320,10 @@ export declare class ParticipantInstance {
319
320
  */
320
321
  startConferenceOnEnter: boolean;
321
322
  status: ParticipantStatus;
323
+ /**
324
+ * The wait time in milliseconds before participant\'s call is placed. Only available in the response to a create participant request.
325
+ */
326
+ queueTime: string;
322
327
  /**
323
328
  * The URI of the resource, relative to `https://api.twilio.com`.
324
329
  */
@@ -376,6 +381,7 @@ export declare class ParticipantInstance {
376
381
  hold: boolean;
377
382
  startConferenceOnEnter: boolean;
378
383
  status: ParticipantStatus;
384
+ queueTime: string;
379
385
  uri: string;
380
386
  };
381
387
  [inspect.custom](_depth: any, options: InspectOptions): string;
@@ -131,6 +131,7 @@ class ParticipantInstance {
131
131
  this.hold = payload.hold;
132
132
  this.startConferenceOnEnter = payload.start_conference_on_enter;
133
133
  this.status = payload.status;
134
+ this.queueTime = payload.queue_time;
134
135
  this.uri = payload.uri;
135
136
  this._solution = {
136
137
  accountSid,
@@ -187,6 +188,7 @@ class ParticipantInstance {
187
188
  hold: this.hold,
188
189
  startConferenceOnEnter: this.startConferenceOnEnter,
189
190
  status: this.status,
191
+ queueTime: this.queueTime,
190
192
  uri: this.uri,
191
193
  };
192
194
  }
@@ -22,7 +22,7 @@ export interface ApprovalCreateListInstanceCreateOptions {
22
22
  contentApprovalRequest: ContentApprovalRequest;
23
23
  }
24
24
  export interface ApprovalCreateSolution {
25
- sid: string;
25
+ contentSid: string;
26
26
  }
27
27
  export interface ApprovalCreateListInstance {
28
28
  _version: V1;
@@ -43,7 +43,7 @@ export interface ApprovalCreateListInstance {
43
43
  toJSON(): any;
44
44
  [inspect.custom](_depth: any, options: InspectOptions): any;
45
45
  }
46
- export declare function ApprovalCreateListInstance(version: V1, sid: string): ApprovalCreateListInstance;
46
+ export declare function ApprovalCreateListInstance(version: V1, contentSid: string): ApprovalCreateListInstance;
47
47
  interface ApprovalCreateResource {
48
48
  name: string;
49
49
  category: string;
@@ -54,7 +54,7 @@ interface ApprovalCreateResource {
54
54
  }
55
55
  export declare class ApprovalCreateInstance {
56
56
  protected _version: V1;
57
- constructor(_version: V1, payload: ApprovalCreateResource, sid: string);
57
+ constructor(_version: V1, payload: ApprovalCreateResource, contentSid: string);
58
58
  name: string;
59
59
  category: string;
60
60
  contentType: string;
@@ -24,14 +24,14 @@ const utility_1 = require("../../../../base/utility");
24
24
  class ContentApprovalRequest {
25
25
  }
26
26
  exports.ContentApprovalRequest = ContentApprovalRequest;
27
- function ApprovalCreateListInstance(version, sid) {
28
- if (!(0, utility_1.isValidPathParam)(sid)) {
29
- throw new Error("Parameter 'sid' is not valid.");
27
+ function ApprovalCreateListInstance(version, contentSid) {
28
+ if (!(0, utility_1.isValidPathParam)(contentSid)) {
29
+ throw new Error("Parameter 'contentSid' is not valid.");
30
30
  }
31
31
  const instance = {};
32
32
  instance._version = version;
33
- instance._solution = { sid };
34
- instance._uri = `/Content/${sid}/ApprovalRequests/whatsapp`;
33
+ instance._solution = { contentSid };
34
+ instance._uri = `/Content/${contentSid}/ApprovalRequests/whatsapp`;
35
35
  instance.create = function create(params, callback) {
36
36
  if (params === null || params === undefined) {
37
37
  throw new Error('Required parameter "params" missing.');
@@ -46,7 +46,7 @@ function ApprovalCreateListInstance(version, sid) {
46
46
  data,
47
47
  headers,
48
48
  });
49
- operationPromise = operationPromise.then((payload) => new ApprovalCreateInstance(operationVersion, payload, instance._solution.sid));
49
+ operationPromise = operationPromise.then((payload) => new ApprovalCreateInstance(operationVersion, payload, instance._solution.contentSid));
50
50
  operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
51
51
  return operationPromise;
52
52
  };
@@ -60,7 +60,7 @@ function ApprovalCreateListInstance(version, sid) {
60
60
  }
61
61
  exports.ApprovalCreateListInstance = ApprovalCreateListInstance;
62
62
  class ApprovalCreateInstance {
63
- constructor(_version, payload, sid) {
63
+ constructor(_version, payload, contentSid) {
64
64
  this._version = _version;
65
65
  this.name = payload.name;
66
66
  this.category = payload.category;
@@ -17,13 +17,13 @@ export interface ApprovalFetchContext {
17
17
  [inspect.custom](_depth: any, options: InspectOptions): any;
18
18
  }
19
19
  export interface ApprovalFetchContextSolution {
20
- sid: string;
20
+ contentSid: string;
21
21
  }
22
22
  export declare class ApprovalFetchContextImpl implements ApprovalFetchContext {
23
23
  protected _version: V1;
24
24
  protected _solution: ApprovalFetchContextSolution;
25
25
  protected _uri: string;
26
- constructor(_version: V1, sid: string);
26
+ constructor(_version: V1, contentSid: string);
27
27
  fetch(callback?: (error: Error | null, item?: ApprovalFetchInstance) => any): Promise<ApprovalFetchInstance>;
28
28
  /**
29
29
  * Provide a user-friendly representation
@@ -43,7 +43,7 @@ export declare class ApprovalFetchInstance {
43
43
  protected _version: V1;
44
44
  protected _solution: ApprovalFetchContextSolution;
45
45
  protected _context?: ApprovalFetchContext;
46
- constructor(_version: V1, payload: ApprovalFetchResource, sid: string);
46
+ constructor(_version: V1, payload: ApprovalFetchResource, contentSid: string);
47
47
  /**
48
48
  * The unique string that that we created to identify the Content resource.
49
49
  */
@@ -83,7 +83,7 @@ export declare class ApprovalFetchInstance {
83
83
  [inspect.custom](_depth: any, options: InspectOptions): string;
84
84
  }
85
85
  export interface ApprovalFetchSolution {
86
- sid: string;
86
+ contentSid: string;
87
87
  }
88
88
  export interface ApprovalFetchListInstance {
89
89
  _version: V1;
@@ -97,5 +97,5 @@ export interface ApprovalFetchListInstance {
97
97
  toJSON(): any;
98
98
  [inspect.custom](_depth: any, options: InspectOptions): any;
99
99
  }
100
- export declare function ApprovalFetchListInstance(version: V1, sid: string): ApprovalFetchListInstance;
100
+ export declare function ApprovalFetchListInstance(version: V1, contentSid: string): ApprovalFetchListInstance;
101
101
  export {};
@@ -19,13 +19,13 @@ const deserialize = require("../../../../base/deserialize");
19
19
  const serialize = require("../../../../base/serialize");
20
20
  const utility_1 = require("../../../../base/utility");
21
21
  class ApprovalFetchContextImpl {
22
- constructor(_version, sid) {
22
+ constructor(_version, contentSid) {
23
23
  this._version = _version;
24
- if (!(0, utility_1.isValidPathParam)(sid)) {
25
- throw new Error("Parameter 'sid' is not valid.");
24
+ if (!(0, utility_1.isValidPathParam)(contentSid)) {
25
+ throw new Error("Parameter 'contentSid' is not valid.");
26
26
  }
27
- this._solution = { sid };
28
- this._uri = `/Content/${sid}/ApprovalRequests`;
27
+ this._solution = { contentSid };
28
+ this._uri = `/Content/${contentSid}/ApprovalRequests`;
29
29
  }
30
30
  fetch(callback) {
31
31
  const instance = this;
@@ -33,7 +33,7 @@ class ApprovalFetchContextImpl {
33
33
  uri: instance._uri,
34
34
  method: "get",
35
35
  });
36
- operationPromise = operationPromise.then((payload) => new ApprovalFetchInstance(operationVersion, payload, instance._solution.sid));
36
+ operationPromise = operationPromise.then((payload) => new ApprovalFetchInstance(operationVersion, payload, instance._solution.contentSid));
37
37
  operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
38
38
  return operationPromise;
39
39
  }
@@ -51,18 +51,18 @@ class ApprovalFetchContextImpl {
51
51
  }
52
52
  exports.ApprovalFetchContextImpl = ApprovalFetchContextImpl;
53
53
  class ApprovalFetchInstance {
54
- constructor(_version, payload, sid) {
54
+ constructor(_version, payload, contentSid) {
55
55
  this._version = _version;
56
56
  this.sid = payload.sid;
57
57
  this.accountSid = payload.account_sid;
58
58
  this.whatsapp = payload.whatsapp;
59
59
  this.url = payload.url;
60
- this._solution = { sid };
60
+ this._solution = { contentSid };
61
61
  }
62
62
  get _proxy() {
63
63
  this._context =
64
64
  this._context ||
65
- new ApprovalFetchContextImpl(this._version, this._solution.sid);
65
+ new ApprovalFetchContextImpl(this._version, this._solution.contentSid);
66
66
  return this._context;
67
67
  }
68
68
  /**
@@ -93,16 +93,16 @@ class ApprovalFetchInstance {
93
93
  }
94
94
  }
95
95
  exports.ApprovalFetchInstance = ApprovalFetchInstance;
96
- function ApprovalFetchListInstance(version, sid) {
97
- if (!(0, utility_1.isValidPathParam)(sid)) {
98
- throw new Error("Parameter 'sid' is not valid.");
96
+ function ApprovalFetchListInstance(version, contentSid) {
97
+ if (!(0, utility_1.isValidPathParam)(contentSid)) {
98
+ throw new Error("Parameter 'contentSid' is not valid.");
99
99
  }
100
100
  const instance = (() => instance.get());
101
101
  instance.get = function get() {
102
- return new ApprovalFetchContextImpl(version, sid);
102
+ return new ApprovalFetchContextImpl(version, contentSid);
103
103
  };
104
104
  instance._version = version;
105
- instance._solution = { sid };
105
+ instance._solution = { contentSid };
106
106
  instance._uri = ``;
107
107
  instance.toJSON = function toJSON() {
108
108
  return instance._solution;
@@ -77,9 +77,9 @@ export interface ConversationListInstanceCreateOptions {
77
77
  * Options to pass to each
78
78
  */
79
79
  export interface ConversationListInstanceEachOptions {
80
- /** Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters. */
80
+ /** Specifies the beginning of the date range for filtering Conversations based on their creation date. Conversations that were created on or after this date will be included in the results. The date must be in ISO8601 format, specifically starting at the beginning of the specified date (YYYY-MM-DDT00:00:00Z), for precise filtering. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. */
81
81
  startDate?: string;
82
- /** End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters. */
82
+ /** Defines the end of the date range for filtering conversations by their creation date. Only conversations that were created on or before this date will appear in the results. The date must be in ISO8601 format, specifically capturing up to the end of the specified date (YYYY-MM-DDT23:59:59Z), to ensure that conversations from the entire end day are included. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. */
83
83
  endDate?: string;
84
84
  /** State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` */
85
85
  state?: ConversationState;
@@ -96,9 +96,9 @@ export interface ConversationListInstanceEachOptions {
96
96
  * Options to pass to list
97
97
  */
98
98
  export interface ConversationListInstanceOptions {
99
- /** Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters. */
99
+ /** Specifies the beginning of the date range for filtering Conversations based on their creation date. Conversations that were created on or after this date will be included in the results. The date must be in ISO8601 format, specifically starting at the beginning of the specified date (YYYY-MM-DDT00:00:00Z), for precise filtering. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. */
100
100
  startDate?: string;
101
- /** End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters. */
101
+ /** Defines the end of the date range for filtering conversations by their creation date. Only conversations that were created on or before this date will appear in the results. The date must be in ISO8601 format, specifically capturing up to the end of the specified date (YYYY-MM-DDT23:59:59Z), to ensure that conversations from the entire end day are included. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. */
102
102
  endDate?: string;
103
103
  /** State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` */
104
104
  state?: ConversationState;
@@ -111,9 +111,9 @@ export interface ConversationListInstanceOptions {
111
111
  * Options to pass to page
112
112
  */
113
113
  export interface ConversationListInstancePageOptions {
114
- /** Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters. */
114
+ /** Specifies the beginning of the date range for filtering Conversations based on their creation date. Conversations that were created on or after this date will be included in the results. The date must be in ISO8601 format, specifically starting at the beginning of the specified date (YYYY-MM-DDT00:00:00Z), for precise filtering. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. */
115
115
  startDate?: string;
116
- /** End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters. */
116
+ /** Defines the end of the date range for filtering conversations by their creation date. Only conversations that were created on or before this date will appear in the results. The date must be in ISO8601 format, specifically capturing up to the end of the specified date (YYYY-MM-DDT23:59:59Z), to ensure that conversations from the entire end day are included. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. */
117
117
  endDate?: string;
118
118
  /** State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` */
119
119
  state?: ConversationState;
@@ -34,6 +34,10 @@ export interface PluginListInstanceCreateOptions {
34
34
  friendlyName?: string;
35
35
  /** A descriptive string that you create to describe the plugin resource. It can be up to 500 characters long */
36
36
  description?: string;
37
+ /** The version of Flex Plugins CLI used to create this plugin */
38
+ cliVersion?: string;
39
+ /** The validation status of the plugin, indicating whether it has been validated */
40
+ validateStatus?: string;
37
41
  }
38
42
  /**
39
43
  * Options to pass to each
@@ -179,6 +179,10 @@ function PluginListInstance(version) {
179
179
  data["FriendlyName"] = params["friendlyName"];
180
180
  if (params["description"] !== undefined)
181
181
  data["Description"] = params["description"];
182
+ if (params["cliVersion"] !== undefined)
183
+ data["CliVersion"] = params["cliVersion"];
184
+ if (params["validateStatus"] !== undefined)
185
+ data["ValidateStatus"] = params["validateStatus"];
182
186
  const headers = {};
183
187
  headers["Content-Type"] = "application/x-www-form-urlencoded";
184
188
  if (params["flexMetadata"] !== undefined)
@@ -41,6 +41,7 @@ interface PortingPortInFetchResource {
41
41
  target_port_in_date: Date;
42
42
  target_port_in_time_range_start: string;
43
43
  target_port_in_time_range_end: string;
44
+ port_in_request_status: string;
44
45
  losing_carrier_information: any;
45
46
  phone_numbers: Array<any>;
46
47
  documents: Array<string>;
@@ -78,6 +79,10 @@ export declare class PortingPortInFetchInstance {
78
79
  * Maximum hour in the future needs to be established with the Ops team for validation.
79
80
  */
80
81
  targetPortInTimeRangeEnd: string;
82
+ /**
83
+ * The status of the port in request. The possible values are: In progress, Completed, Expired, In review, Waiting for Signature, Action Required, and Canceled.
84
+ */
85
+ portInRequestStatus: string;
81
86
  /**
82
87
  * The information for the losing carrier.
83
88
  */
@@ -112,6 +117,7 @@ export declare class PortingPortInFetchInstance {
112
117
  targetPortInDate: Date;
113
118
  targetPortInTimeRangeStart: string;
114
119
  targetPortInTimeRangeEnd: string;
120
+ portInRequestStatus: string;
115
121
  losingCarrierInformation: any;
116
122
  phoneNumbers: any[];
117
123
  documents: string[];
@@ -60,6 +60,7 @@ class PortingPortInFetchInstance {
60
60
  this.targetPortInDate = deserialize.iso8601Date(payload.target_port_in_date);
61
61
  this.targetPortInTimeRangeStart = payload.target_port_in_time_range_start;
62
62
  this.targetPortInTimeRangeEnd = payload.target_port_in_time_range_end;
63
+ this.portInRequestStatus = payload.port_in_request_status;
63
64
  this.losingCarrierInformation = payload.losing_carrier_information;
64
65
  this.phoneNumbers = payload.phone_numbers;
65
66
  this.documents = payload.documents;
@@ -97,6 +98,7 @@ class PortingPortInFetchInstance {
97
98
  targetPortInDate: this.targetPortInDate,
98
99
  targetPortInTimeRangeStart: this.targetPortInTimeRangeStart,
99
100
  targetPortInTimeRangeEnd: this.targetPortInTimeRangeEnd,
101
+ portInRequestStatus: this.portInRequestStatus,
100
102
  losingCarrierInformation: this.losingCarrierInformation,
101
103
  phoneNumbers: this.phoneNumbers,
102
104
  documents: this.documents,
@@ -10,13 +10,17 @@ export interface TokenListInstanceCreateOptions {
10
10
  /** A 34 character string that uniquely identifies this OAuth App. */
11
11
  clientId: string;
12
12
  /** The credential for confidential OAuth App. */
13
- clientSecret: string;
13
+ clientSecret?: string;
14
14
  /** JWT token related to the authorization code grant type. */
15
15
  code?: string;
16
16
  /** The redirect uri */
17
17
  redirectUri?: string;
18
18
  /** The targeted audience uri */
19
19
  audience?: string;
20
+ /** JWT token related to refresh access token. */
21
+ refreshToken?: string;
22
+ /** The scope of token */
23
+ scope?: string;
20
24
  }
21
25
  export interface TokenSolution {
22
26
  }
@@ -45,7 +49,7 @@ interface TokenResource {
45
49
  refresh_token: string;
46
50
  id_token: string;
47
51
  token_type: string;
48
- expires_in: Date;
52
+ expires_in: number;
49
53
  }
50
54
  export declare class TokenInstance {
51
55
  protected _version: V1;
@@ -66,7 +70,7 @@ export declare class TokenInstance {
66
70
  * Token type
67
71
  */
68
72
  tokenType: string;
69
- expiresIn: Date;
73
+ expiresIn: number;
70
74
  /**
71
75
  * Provide a user-friendly representation
72
76
  *
@@ -77,7 +81,7 @@ export declare class TokenInstance {
77
81
  refreshToken: string;
78
82
  idToken: string;
79
83
  tokenType: string;
80
- expiresIn: Date;
84
+ expiresIn: number;
81
85
  };
82
86
  [inspect.custom](_depth: any, options: InspectOptions): string;
83
87
  }
@@ -32,20 +32,21 @@ function TokenListInstance(version) {
32
32
  if (params["clientId"] === null || params["clientId"] === undefined) {
33
33
  throw new Error("Required parameter \"params['clientId']\" missing.");
34
34
  }
35
- if (params["clientSecret"] === null ||
36
- params["clientSecret"] === undefined) {
37
- throw new Error("Required parameter \"params['clientSecret']\" missing.");
38
- }
39
35
  let data = {};
40
36
  data["GrantType"] = params["grantType"];
41
37
  data["ClientId"] = params["clientId"];
42
- data["ClientSecret"] = params["clientSecret"];
38
+ if (params["clientSecret"] !== undefined)
39
+ data["ClientSecret"] = params["clientSecret"];
43
40
  if (params["code"] !== undefined)
44
41
  data["Code"] = params["code"];
45
42
  if (params["redirectUri"] !== undefined)
46
43
  data["RedirectUri"] = params["redirectUri"];
47
44
  if (params["audience"] !== undefined)
48
45
  data["Audience"] = params["audience"];
46
+ if (params["refreshToken"] !== undefined)
47
+ data["RefreshToken"] = params["refreshToken"];
48
+ if (params["scope"] !== undefined)
49
+ data["Scope"] = params["scope"];
49
50
  const headers = {};
50
51
  headers["Content-Type"] = "application/x-www-form-urlencoded";
51
52
  let operationVersion = version, operationPromise = operationVersion.create({
@@ -74,7 +75,7 @@ class TokenInstance {
74
75
  this.refreshToken = payload.refresh_token;
75
76
  this.idToken = payload.id_token;
76
77
  this.tokenType = payload.token_type;
77
- this.expiresIn = deserialize.iso8601DateTime(payload.expires_in);
78
+ this.expiresIn = payload.expires_in;
78
79
  }
79
80
  /**
80
81
  * Provide a user-friendly representation