Skip to content

Commit 015e56c

Browse files
committed
[Librarian] Regenerated @ 7e2caf2ef38bb07afedbc8ba24e3a235c57337ad 2deb312512e85217931fbc99141b334a5d6beaaf
1 parent cc0c0e8 commit 015e56c

File tree

12 files changed

+416
-139
lines changed

12 files changed

+416
-139
lines changed

CHANGES.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,46 @@
11
twilio-node changelog
22
=====================
33

4+
[2024-04-01] Version 5.0.2
5+
--------------------------
6+
**Library - Chore**
7+
- [PR #1014](https://github.com/twilio/twilio-node/pull/1014): remove media reference. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
8+
9+
**Api**
10+
- Add property `queue_time` to conference participant resource
11+
- Update RiskCheck documentation
12+
- Correct call filtering by start and end time documentation, clarifying that times are UTC.
13+
14+
**Flex**
15+
- Adding optional parameter to `plugins`
16+
17+
**Media**
18+
- Remove API: MediaProcessor
19+
20+
**Messaging**
21+
- Remove Sending-Window due to test failure
22+
- Add Sending-Window as a response property to Messaging Services, gated by a beta feature flag
23+
24+
**Numbers**
25+
- Correct valid_until_date field to be visible in Bundles resource
26+
- Adding port_in_status field to the Port In resource and phone_number_status and sid fields to the Port In Phone Number resource
27+
28+
**Oauth**
29+
- Modified token endpoint response
30+
- Added refresh_token and scope as optional parameter to token endpoint
31+
32+
**Trusthub**
33+
- Add update inquiry endpoint in compliance_registration.
34+
- Add new field in themeSetId in compliance_registration.
35+
36+
**Voice**
37+
- Correct call filtering by start and end time documentation, clarifying that times are UTC.
38+
39+
**Twiml**
40+
- Add support for new Google voices (Q1 2024) for `Say` verb - gu-IN voices
41+
- Add support for new Amazon Polly and Google voices (Q1 2024) for `Say` verb - Niamh (en-IE) and Sofie (da-DK) voices
42+
43+
444
[2024-03-14] Version 5.0.1
545
--------------------------
646
**Oauth**

src/rest/api/v2010/account/call.ts

Lines changed: 22 additions & 22 deletions
Large diffs are not rendered by default.

src/rest/api/v2010/account/conference/participant.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ interface ParticipantResource {
445445
hold: boolean;
446446
start_conference_on_enter: boolean;
447447
status: ParticipantStatus;
448+
queue_time: string;
448449
uri: string;
449450
}
450451

@@ -472,6 +473,7 @@ export class ParticipantInstance {
472473
this.hold = payload.hold;
473474
this.startConferenceOnEnter = payload.start_conference_on_enter;
474475
this.status = payload.status;
476+
this.queueTime = payload.queue_time;
475477
this.uri = payload.uri;
476478

477479
this._solution = {
@@ -530,6 +532,10 @@ export class ParticipantInstance {
530532
*/
531533
startConferenceOnEnter: boolean;
532534
status: ParticipantStatus;
535+
/**
536+
* The wait time in milliseconds before participant\'s call is placed. Only available in the response to a create participant request.
537+
*/
538+
queueTime: string;
533539
/**
534540
* The URI of the resource, relative to `https://api.twilio.com`.
535541
*/
@@ -623,6 +629,7 @@ export class ParticipantInstance {
623629
hold: this.hold,
624630
startConferenceOnEnter: this.startConferenceOnEnter,
625631
status: this.status,
632+
queueTime: this.queueTime,
626633
uri: this.uri,
627634
};
628635
}

src/rest/content/v1/content/approvalCreate.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export interface ApprovalCreateListInstanceCreateOptions {
4141
}
4242

4343
export interface ApprovalCreateSolution {
44-
sid: string;
44+
contentSid: string;
4545
}
4646

4747
export interface ApprovalCreateListInstance {
@@ -71,17 +71,17 @@ export interface ApprovalCreateListInstance {
7171

7272
export function ApprovalCreateListInstance(
7373
version: V1,
74-
sid: string
74+
contentSid: string
7575
): ApprovalCreateListInstance {
76-
if (!isValidPathParam(sid)) {
77-
throw new Error("Parameter 'sid' is not valid.");
76+
if (!isValidPathParam(contentSid)) {
77+
throw new Error("Parameter 'contentSid' is not valid.");
7878
}
7979

8080
const instance = {} as ApprovalCreateListInstance;
8181

8282
instance._version = version;
83-
instance._solution = { sid };
84-
instance._uri = `/Content/${sid}/ApprovalRequests/whatsapp`;
83+
instance._solution = { contentSid };
84+
instance._uri = `/Content/${contentSid}/ApprovalRequests/whatsapp`;
8585

8686
instance.create = function create(
8787
params: ContentApprovalRequest,
@@ -111,7 +111,7 @@ export function ApprovalCreateListInstance(
111111
new ApprovalCreateInstance(
112112
operationVersion,
113113
payload,
114-
instance._solution.sid
114+
instance._solution.contentSid
115115
)
116116
);
117117

@@ -151,7 +151,7 @@ export class ApprovalCreateInstance {
151151
constructor(
152152
protected _version: V1,
153153
payload: ApprovalCreateResource,
154-
sid: string
154+
contentSid: string
155155
) {
156156
this.name = payload.name;
157157
this.category = payload.category;

src/rest/content/v1/content/approvalFetch.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,20 @@ export interface ApprovalFetchContext {
3838
}
3939

4040
export interface ApprovalFetchContextSolution {
41-
sid: string;
41+
contentSid: string;
4242
}
4343

4444
export class ApprovalFetchContextImpl implements ApprovalFetchContext {
4545
protected _solution: ApprovalFetchContextSolution;
4646
protected _uri: string;
4747

48-
constructor(protected _version: V1, sid: string) {
49-
if (!isValidPathParam(sid)) {
50-
throw new Error("Parameter 'sid' is not valid.");
48+
constructor(protected _version: V1, contentSid: string) {
49+
if (!isValidPathParam(contentSid)) {
50+
throw new Error("Parameter 'contentSid' is not valid.");
5151
}
5252

53-
this._solution = { sid };
54-
this._uri = `/Content/${sid}/ApprovalRequests`;
53+
this._solution = { contentSid };
54+
this._uri = `/Content/${contentSid}/ApprovalRequests`;
5555
}
5656

5757
fetch(
@@ -69,7 +69,7 @@ export class ApprovalFetchContextImpl implements ApprovalFetchContext {
6969
new ApprovalFetchInstance(
7070
operationVersion,
7171
payload,
72-
instance._solution.sid
72+
instance._solution.contentSid
7373
)
7474
);
7575

@@ -110,14 +110,14 @@ export class ApprovalFetchInstance {
110110
constructor(
111111
protected _version: V1,
112112
payload: ApprovalFetchResource,
113-
sid: string
113+
contentSid: string
114114
) {
115115
this.sid = payload.sid;
116116
this.accountSid = payload.account_sid;
117117
this.whatsapp = payload.whatsapp;
118118
this.url = payload.url;
119119

120-
this._solution = { sid };
120+
this._solution = { contentSid };
121121
}
122122

123123
/**
@@ -140,7 +140,7 @@ export class ApprovalFetchInstance {
140140
private get _proxy(): ApprovalFetchContext {
141141
this._context =
142142
this._context ||
143-
new ApprovalFetchContextImpl(this._version, this._solution.sid);
143+
new ApprovalFetchContextImpl(this._version, this._solution.contentSid);
144144
return this._context;
145145
}
146146

@@ -177,7 +177,7 @@ export class ApprovalFetchInstance {
177177
}
178178

179179
export interface ApprovalFetchSolution {
180-
sid: string;
180+
contentSid: string;
181181
}
182182

183183
export interface ApprovalFetchListInstance {
@@ -197,20 +197,20 @@ export interface ApprovalFetchListInstance {
197197

198198
export function ApprovalFetchListInstance(
199199
version: V1,
200-
sid: string
200+
contentSid: string
201201
): ApprovalFetchListInstance {
202-
if (!isValidPathParam(sid)) {
203-
throw new Error("Parameter 'sid' is not valid.");
202+
if (!isValidPathParam(contentSid)) {
203+
throw new Error("Parameter 'contentSid' is not valid.");
204204
}
205205

206206
const instance = (() => instance.get()) as ApprovalFetchListInstance;
207207

208208
instance.get = function get(): ApprovalFetchContext {
209-
return new ApprovalFetchContextImpl(version, sid);
209+
return new ApprovalFetchContextImpl(version, contentSid);
210210
};
211211

212212
instance._version = version;
213-
instance._solution = { sid };
213+
instance._solution = { contentSid };
214214
instance._uri = ``;
215215

216216
instance.toJSON = function toJSON() {

src/rest/conversations/v1/service/conversation.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ export interface ConversationListInstanceCreateOptions {
9898
* Options to pass to each
9999
*/
100100
export interface ConversationListInstanceEachOptions {
101-
/** 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. */
101+
/** 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. */
102102
startDate?: string;
103-
/** 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. */
103+
/** 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. */
104104
endDate?: string;
105105
/** State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` */
106106
state?: ConversationState;
@@ -118,9 +118,9 @@ export interface ConversationListInstanceEachOptions {
118118
* Options to pass to list
119119
*/
120120
export interface ConversationListInstanceOptions {
121-
/** 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. */
121+
/** 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. */
122122
startDate?: string;
123-
/** 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. */
123+
/** 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. */
124124
endDate?: string;
125125
/** State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` */
126126
state?: ConversationState;
@@ -134,9 +134,9 @@ export interface ConversationListInstanceOptions {
134134
* Options to pass to page
135135
*/
136136
export interface ConversationListInstancePageOptions {
137-
/** 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. */
137+
/** 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. */
138138
startDate?: string;
139-
/** 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. */
139+
/** 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. */
140140
endDate?: string;
141141
/** State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` */
142142
state?: ConversationState;

src/rest/flexApi/v1/plugin.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ export interface PluginListInstanceCreateOptions {
5353
friendlyName?: string;
5454
/** A descriptive string that you create to describe the plugin resource. It can be up to 500 characters long */
5555
description?: string;
56+
/** The version of Flex Plugins CLI used to create this plugin */
57+
cliVersion?: string;
58+
/** The validation status of the plugin, indicating whether it has been validated */
59+
validateStatus?: string;
5660
}
5761
/**
5862
* Options to pass to each
@@ -579,6 +583,10 @@ export function PluginListInstance(version: V1): PluginListInstance {
579583
data["FriendlyName"] = params["friendlyName"];
580584
if (params["description"] !== undefined)
581585
data["Description"] = params["description"];
586+
if (params["cliVersion"] !== undefined)
587+
data["CliVersion"] = params["cliVersion"];
588+
if (params["validateStatus"] !== undefined)
589+
data["ValidateStatus"] = params["validateStatus"];
582590

583591
const headers: any = {};
584592
headers["Content-Type"] = "application/x-www-form-urlencoded";

src/rest/numbers/v1/portingPortInFetch.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ interface PortingPortInFetchResource {
106106
target_port_in_date: Date;
107107
target_port_in_time_range_start: string;
108108
target_port_in_time_range_end: string;
109+
port_in_request_status: string;
109110
losing_carrier_information: any;
110111
phone_numbers: Array<any>;
111112
documents: Array<string>;
@@ -129,6 +130,7 @@ export class PortingPortInFetchInstance {
129130
);
130131
this.targetPortInTimeRangeStart = payload.target_port_in_time_range_start;
131132
this.targetPortInTimeRangeEnd = payload.target_port_in_time_range_end;
133+
this.portInRequestStatus = payload.port_in_request_status;
132134
this.losingCarrierInformation = payload.losing_carrier_information;
133135
this.phoneNumbers = payload.phone_numbers;
134136
this.documents = payload.documents;
@@ -166,6 +168,10 @@ export class PortingPortInFetchInstance {
166168
* Maximum hour in the future needs to be established with the Ops team for validation.
167169
*/
168170
targetPortInTimeRangeEnd: string;
171+
/**
172+
* The status of the port in request. The possible values are: In progress, Completed, Expired, In review, Waiting for Signature, Action Required, and Canceled.
173+
*/
174+
portInRequestStatus: string;
169175
/**
170176
* The information for the losing carrier.
171177
*/
@@ -216,6 +222,7 @@ export class PortingPortInFetchInstance {
216222
targetPortInDate: this.targetPortInDate,
217223
targetPortInTimeRangeStart: this.targetPortInTimeRangeStart,
218224
targetPortInTimeRangeEnd: this.targetPortInTimeRangeEnd,
225+
portInRequestStatus: this.portInRequestStatus,
219226
losingCarrierInformation: this.losingCarrierInformation,
220227
phoneNumbers: this.phoneNumbers,
221228
documents: this.documents,

src/rest/oauth/v1/token.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,17 @@ export interface TokenListInstanceCreateOptions {
2727
/** A 34 character string that uniquely identifies this OAuth App. */
2828
clientId: string;
2929
/** The credential for confidential OAuth App. */
30-
clientSecret: string;
30+
clientSecret?: string;
3131
/** JWT token related to the authorization code grant type. */
3232
code?: string;
3333
/** The redirect uri */
3434
redirectUri?: string;
3535
/** The targeted audience uri */
3636
audience?: string;
37+
/** JWT token related to refresh access token. */
38+
refreshToken?: string;
39+
/** The scope of token */
40+
scope?: string;
3741
}
3842

3943
export interface TokenSolution {}
@@ -86,24 +90,20 @@ export function TokenListInstance(version: V1): TokenListInstance {
8690
throw new Error("Required parameter \"params['clientId']\" missing.");
8791
}
8892

89-
if (
90-
params["clientSecret"] === null ||
91-
params["clientSecret"] === undefined
92-
) {
93-
throw new Error("Required parameter \"params['clientSecret']\" missing.");
94-
}
95-
9693
let data: any = {};
9794

9895
data["GrantType"] = params["grantType"];
9996

10097
data["ClientId"] = params["clientId"];
101-
102-
data["ClientSecret"] = params["clientSecret"];
98+
if (params["clientSecret"] !== undefined)
99+
data["ClientSecret"] = params["clientSecret"];
103100
if (params["code"] !== undefined) data["Code"] = params["code"];
104101
if (params["redirectUri"] !== undefined)
105102
data["RedirectUri"] = params["redirectUri"];
106103
if (params["audience"] !== undefined) data["Audience"] = params["audience"];
104+
if (params["refreshToken"] !== undefined)
105+
data["RefreshToken"] = params["refreshToken"];
106+
if (params["scope"] !== undefined) data["Scope"] = params["scope"];
107107

108108
const headers: any = {};
109109
headers["Content-Type"] = "application/x-www-form-urlencoded";
@@ -148,7 +148,7 @@ interface TokenResource {
148148
refresh_token: string;
149149
id_token: string;
150150
token_type: string;
151-
expires_in: Date;
151+
expires_in: number;
152152
}
153153

154154
export class TokenInstance {
@@ -157,7 +157,7 @@ export class TokenInstance {
157157
this.refreshToken = payload.refresh_token;
158158
this.idToken = payload.id_token;
159159
this.tokenType = payload.token_type;
160-
this.expiresIn = deserialize.iso8601DateTime(payload.expires_in);
160+
this.expiresIn = payload.expires_in;
161161
}
162162

163163
/**
@@ -176,7 +176,7 @@ export class TokenInstance {
176176
* Token type
177177
*/
178178
tokenType: string;
179-
expiresIn: Date;
179+
expiresIn: number;
180180

181181
/**
182182
* Provide a user-friendly representation

0 commit comments

Comments
 (0)