twilio 5.12.1 → 5.12.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.
@@ -130,13 +130,13 @@ export interface CallListInstanceEachOptions {
130
130
  parentCallSid?: string;
131
131
  /** The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`. */
132
132
  status?: CallStatus;
133
- /** 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. */
133
+ /** 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. */
134
134
  startTime?: Date;
135
135
  /** Only include calls that started before this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started before this date. */
136
136
  startTimeBefore?: Date;
137
137
  /** Only include calls that started on or after this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on or after this date. */
138
138
  startTimeAfter?: Date;
139
- /** 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. */
139
+ /** 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. */
140
140
  endTime?: Date;
141
141
  /** Only include calls that ended before this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended before this date. */
142
142
  endTimeBefore?: Date;
@@ -163,13 +163,13 @@ export interface CallListInstanceOptions {
163
163
  parentCallSid?: string;
164
164
  /** The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`. */
165
165
  status?: CallStatus;
166
- /** 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. */
166
+ /** 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. */
167
167
  startTime?: Date;
168
168
  /** Only include calls that started before this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started before this date. */
169
169
  startTimeBefore?: Date;
170
170
  /** Only include calls that started on or after this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on or after this date. */
171
171
  startTimeAfter?: Date;
172
- /** 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. */
172
+ /** 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. */
173
173
  endTime?: Date;
174
174
  /** Only include calls that ended before this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended before this date. */
175
175
  endTimeBefore?: Date;
@@ -192,13 +192,13 @@ export interface CallListInstancePageOptions {
192
192
  parentCallSid?: string;
193
193
  /** The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`. */
194
194
  status?: CallStatus;
195
- /** 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. */
195
+ /** 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. */
196
196
  startTime?: Date;
197
197
  /** Only include calls that started before this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started before this date. */
198
198
  startTimeBefore?: Date;
199
199
  /** Only include calls that started on or after this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on or after this date. */
200
200
  startTimeAfter?: Date;
201
- /** 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. */
201
+ /** 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. */
202
202
  endTime?: Date;
203
203
  /** Only include calls that ended before this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended before this date. */
204
204
  endTimeBefore?: Date;
@@ -28,7 +28,7 @@ class CreateFlexInstanceContextImpl {
28
28
  constructor(_version) {
29
29
  this._version = _version;
30
30
  this._solution = {};
31
- this._uri = `/instances`;
31
+ this._uri = `/Instances`;
32
32
  }
33
33
  create(params, headers, callback) {
34
34
  if (params instanceof Function) {
@@ -83,7 +83,7 @@ export declare class MessagingV2ChannelsSenderProfile {
83
83
  */
84
84
  "accentColor"?: string | null;
85
85
  /**
86
- * The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other`
86
+ * The vertical of the sender. Allowed values are: - `Alcohol` - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Hotel and Lodging` - `Matrimony Service` - `Medical and Health` - `Non-profit` - `Online Gambling` - `OTC Drugs` - `Other` - `Physical Gambling` - `Professional Services` - `Public Service` - `Restaurant` - `Shopping and Retail` - `Travel and Transportation`
87
87
  */
88
88
  "vertical"?: string | null;
89
89
  /**
@@ -140,7 +140,7 @@ export declare class MessagingV2ChannelsSenderProfileGenericResponse {
140
140
  */
141
141
  "accentColor"?: string | null;
142
142
  /**
143
- * The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other`
143
+ * The vertical of the sender. Allowed values are: - `Alcohol` - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Hotel and Lodging` - `Matrimony Service` - `Medical and Health` - `Non-profit` - `Online Gambling` - `OTC Drugs` - `Other` - `Physical Gambling` - `Professional Services` - `Public Service` - `Restaurant` - `Shopping and Retail` - `Travel and Transportation`
144
144
  */
145
145
  "vertical"?: string | null;
146
146
  /**
@@ -54,6 +54,8 @@ export interface BundleListInstanceCreateOptions {
54
54
  export interface BundleListInstanceEachOptions {
55
55
  /** The verification status of the Bundle resource. Please refer to [Bundle Statuses](https://www.twilio.com/docs/phone-numbers/regulatory/api/bundles#bundle-statuses) for more details. */
56
56
  status?: BundleStatus;
57
+ /** A comma-separated list of Bundle SIDs to filter the results (maximum 20). Each Bundle SID must match `^BU[0-9a-fA-F]{32}$`. */
58
+ bundleSids?: string;
57
59
  /** The string that you assigned to describe the resource. The column can contain 255 variable characters. */
58
60
  friendlyName?: string;
59
61
  /** The unique string of a [Regulation resource](https://www.twilio.com/docs/phone-numbers/regulatory/api/regulations) that is associated to the Bundle resource. */
@@ -62,6 +64,8 @@ export interface BundleListInstanceEachOptions {
62
64
  isoCountry?: string;
63
65
  /** The type of phone number of the Bundle\'s ownership request. Can be `local`, `mobile`, `national`, or `toll-free`. */
64
66
  numberType?: string;
67
+ /** The end user type of the regulation of the Bundle. Can be `business` or `individual`. */
68
+ endUserType?: "business" | "individual";
65
69
  /** Indicates that the Bundle is a valid Bundle until a specified expiration date. */
66
70
  hasValidUntilDate?: boolean;
67
71
  /** Can be `valid-until` or `date-updated`. Defaults to `date-created`. */
@@ -89,6 +93,8 @@ export interface BundleListInstanceEachOptions {
89
93
  export interface BundleListInstanceOptions {
90
94
  /** The verification status of the Bundle resource. Please refer to [Bundle Statuses](https://www.twilio.com/docs/phone-numbers/regulatory/api/bundles#bundle-statuses) for more details. */
91
95
  status?: BundleStatus;
96
+ /** A comma-separated list of Bundle SIDs to filter the results (maximum 20). Each Bundle SID must match `^BU[0-9a-fA-F]{32}$`. */
97
+ bundleSids?: string;
92
98
  /** The string that you assigned to describe the resource. The column can contain 255 variable characters. */
93
99
  friendlyName?: string;
94
100
  /** The unique string of a [Regulation resource](https://www.twilio.com/docs/phone-numbers/regulatory/api/regulations) that is associated to the Bundle resource. */
@@ -97,6 +103,8 @@ export interface BundleListInstanceOptions {
97
103
  isoCountry?: string;
98
104
  /** The type of phone number of the Bundle\'s ownership request. Can be `local`, `mobile`, `national`, or `toll-free`. */
99
105
  numberType?: string;
106
+ /** The end user type of the regulation of the Bundle. Can be `business` or `individual`. */
107
+ endUserType?: "business" | "individual";
100
108
  /** Indicates that the Bundle is a valid Bundle until a specified expiration date. */
101
109
  hasValidUntilDate?: boolean;
102
110
  /** Can be `valid-until` or `date-updated`. Defaults to `date-created`. */
@@ -120,6 +128,8 @@ export interface BundleListInstanceOptions {
120
128
  export interface BundleListInstancePageOptions {
121
129
  /** The verification status of the Bundle resource. Please refer to [Bundle Statuses](https://www.twilio.com/docs/phone-numbers/regulatory/api/bundles#bundle-statuses) for more details. */
122
130
  status?: BundleStatus;
131
+ /** A comma-separated list of Bundle SIDs to filter the results (maximum 20). Each Bundle SID must match `^BU[0-9a-fA-F]{32}$`. */
132
+ bundleSids?: string;
123
133
  /** The string that you assigned to describe the resource. The column can contain 255 variable characters. */
124
134
  friendlyName?: string;
125
135
  /** The unique string of a [Regulation resource](https://www.twilio.com/docs/phone-numbers/regulatory/api/regulations) that is associated to the Bundle resource. */
@@ -128,6 +138,8 @@ export interface BundleListInstancePageOptions {
128
138
  isoCountry?: string;
129
139
  /** The type of phone number of the Bundle\'s ownership request. Can be `local`, `mobile`, `national`, or `toll-free`. */
130
140
  numberType?: string;
141
+ /** The end user type of the regulation of the Bundle. Can be `business` or `individual`. */
142
+ endUserType?: "business" | "individual";
131
143
  /** Indicates that the Bundle is a valid Bundle until a specified expiration date. */
132
144
  hasValidUntilDate?: boolean;
133
145
  /** Can be `valid-until` or `date-updated`. Defaults to `date-created`. */
@@ -419,6 +419,8 @@ function BundleListInstance(version) {
419
419
  let data = {};
420
420
  if (params["status"] !== undefined)
421
421
  data["Status"] = params["status"];
422
+ if (params["bundleSids"] !== undefined)
423
+ data["BundleSids"] = params["bundleSids"];
422
424
  if (params["friendlyName"] !== undefined)
423
425
  data["FriendlyName"] = params["friendlyName"];
424
426
  if (params["regulationSid"] !== undefined)
@@ -427,6 +429,8 @@ function BundleListInstance(version) {
427
429
  data["IsoCountry"] = params["isoCountry"];
428
430
  if (params["numberType"] !== undefined)
429
431
  data["NumberType"] = params["numberType"];
432
+ if (params["endUserType"] !== undefined)
433
+ data["EndUserType"] = params["endUserType"];
430
434
  if (params["hasValidUntilDate"] !== undefined)
431
435
  data["HasValidUntilDate"] = serialize.bool(params["hasValidUntilDate"]);
432
436
  if (params["sortBy"] !== undefined)
@@ -479,6 +483,8 @@ function BundleListInstance(version) {
479
483
  let data = {};
480
484
  if (params["status"] !== undefined)
481
485
  data["Status"] = params["status"];
486
+ if (params["bundleSids"] !== undefined)
487
+ data["BundleSids"] = params["bundleSids"];
482
488
  if (params["friendlyName"] !== undefined)
483
489
  data["FriendlyName"] = params["friendlyName"];
484
490
  if (params["regulationSid"] !== undefined)
@@ -487,6 +493,8 @@ function BundleListInstance(version) {
487
493
  data["IsoCountry"] = params["isoCountry"];
488
494
  if (params["numberType"] !== undefined)
489
495
  data["NumberType"] = params["numberType"];
496
+ if (params["endUserType"] !== undefined)
497
+ data["EndUserType"] = params["endUserType"];
490
498
  if (params["hasValidUntilDate"] !== undefined)
491
499
  data["HasValidUntilDate"] = serialize.bool(params["hasValidUntilDate"]);
492
500
  if (params["sortBy"] !== undefined)
@@ -13,6 +13,8 @@ export type TranscriptionsStatus = "started" | "stopped" | "failed";
13
13
  export interface TranscriptionsContextUpdateOptions {
14
14
  /** */
15
15
  status?: TranscriptionsStatus;
16
+ /** A collection of properties that describe transcription behaviour. */
17
+ configuration?: object;
16
18
  }
17
19
  /**
18
20
  * Options to pass to create a TranscriptionsInstance
@@ -78,6 +78,8 @@ class TranscriptionsContextImpl {
78
78
  let data = {};
79
79
  if (params["status"] !== undefined)
80
80
  data["Status"] = params["status"];
81
+ if (params["configuration"] !== undefined)
82
+ data["Configuration"] = serialize.object(params["configuration"]);
81
83
  const headers = {};
82
84
  headers["Content-Type"] = "application/x-www-form-urlencoded";
83
85
  headers["Accept"] = "application/json";
@@ -103,6 +105,8 @@ class TranscriptionsContextImpl {
103
105
  let data = {};
104
106
  if (params["status"] !== undefined)
105
107
  data["Status"] = params["status"];
108
+ if (params["configuration"] !== undefined)
109
+ data["Configuration"] = serialize.object(params["configuration"]);
106
110
  const headers = {};
107
111
  headers["Content-Type"] = "application/x-www-form-urlencoded";
108
112
  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.12.1",
4
+ "version": "5.12.2",
5
5
  "author": "API Team <api@twilio.com>",
6
6
  "contributors": [
7
7
  {