Skip to content

Commit 478c192

Browse files
committed
[Librarian] Regenerated @ 42b8ce059dcc13e9d9713dbf88dcec856be2bbc9
1 parent e470157 commit 478c192

17 files changed

+344
-1618
lines changed

CHANGES.md

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

4+
[2023-05-04] Version 4.11.0
5+
---------------------------
6+
**Library - Docs**
7+
- [PR #928](https://github.com/twilio/twilio-node/pull/928): consolidate. Thanks to [@stern-shawn](https://github.com/stern-shawn)!
8+
9+
**Conversations**
10+
- Remove `start_date`, `end_date` and `state` query parameters from list operation on Conversations resource **(breaking change)**
11+
12+
**Messaging**
13+
- Remove `messaging_service_sids` and `messaging_service_sid_action` from domain config endpoint **(breaking change)**
14+
- Add error_code and rejection_reason properties to tollfree verification API response
15+
16+
**Numbers**
17+
- Added the new Eligibility API under version `/v1`.
18+
19+
**Twiml**
20+
- Add support for new Amazon Polly voices (Q1 2023) for `Say` verb
21+
22+
423
[2023-04-05] Version 4.10.0
524
---------------------------
625
**Conversations**

src/rest/conversations/v1/conversation.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,6 @@ export interface ConversationListInstanceCreateOptions {
9090
* Options to pass to each
9191
*/
9292
export interface ConversationListInstanceEachOptions {
93-
/** Start date in ISO8601 format for sorting and filtering list of Conversations. */
94-
startDate?: string;
95-
/** End date in ISO8601 format for sorting and filtering list of Conversations. */
96-
endDate?: string;
97-
/** State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` */
98-
state?: ConversationState;
9993
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
10094
pageSize?: number;
10195
/** Function to process each record. If this and a positional callback are passed, this one will be used */
@@ -110,12 +104,6 @@ export interface ConversationListInstanceEachOptions {
110104
* Options to pass to list
111105
*/
112106
export interface ConversationListInstanceOptions {
113-
/** Start date in ISO8601 format for sorting and filtering list of Conversations. */
114-
startDate?: string;
115-
/** End date in ISO8601 format for sorting and filtering list of Conversations. */
116-
endDate?: string;
117-
/** State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` */
118-
state?: ConversationState;
119107
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
120108
pageSize?: number;
121109
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
@@ -126,12 +114,6 @@ export interface ConversationListInstanceOptions {
126114
* Options to pass to page
127115
*/
128116
export interface ConversationListInstancePageOptions {
129-
/** Start date in ISO8601 format for sorting and filtering list of Conversations. */
130-
startDate?: string;
131-
/** End date in ISO8601 format for sorting and filtering list of Conversations. */
132-
endDate?: string;
133-
/** State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` */
134-
state?: ConversationState;
135117
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
136118
pageSize?: number;
137119
/** Page Number, this value is simply for client state */
@@ -810,10 +792,6 @@ export function ConversationListInstance(
810792

811793
let data: any = {};
812794

813-
if (params["startDate"] !== undefined)
814-
data["StartDate"] = params["startDate"];
815-
if (params["endDate"] !== undefined) data["EndDate"] = params["endDate"];
816-
if (params["state"] !== undefined) data["State"] = params["state"];
817795
if (params["pageSize"] !== undefined) data["PageSize"] = params["pageSize"];
818796

819797
if (params.pageNumber !== undefined) data["Page"] = params.pageNumber;

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

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,6 @@ export interface ConversationListInstanceCreateOptions {
9090
* Options to pass to each
9191
*/
9292
export interface ConversationListInstanceEachOptions {
93-
/** Start date in ISO8601 format for sorting and filtering list of Conversations. */
94-
startDate?: string;
95-
/** End date in ISO8601 format for sorting and filtering list of Conversations. */
96-
endDate?: string;
97-
/** State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` */
98-
state?: ConversationState;
9993
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
10094
pageSize?: number;
10195
/** Function to process each record. If this and a positional callback are passed, this one will be used */
@@ -110,12 +104,6 @@ export interface ConversationListInstanceEachOptions {
110104
* Options to pass to list
111105
*/
112106
export interface ConversationListInstanceOptions {
113-
/** Start date in ISO8601 format for sorting and filtering list of Conversations. */
114-
startDate?: string;
115-
/** End date in ISO8601 format for sorting and filtering list of Conversations. */
116-
endDate?: string;
117-
/** State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` */
118-
state?: ConversationState;
119107
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
120108
pageSize?: number;
121109
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
@@ -126,12 +114,6 @@ export interface ConversationListInstanceOptions {
126114
* Options to pass to page
127115
*/
128116
export interface ConversationListInstancePageOptions {
129-
/** Start date in ISO8601 format for sorting and filtering list of Conversations. */
130-
startDate?: string;
131-
/** End date in ISO8601 format for sorting and filtering list of Conversations. */
132-
endDate?: string;
133-
/** State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` */
134-
state?: ConversationState;
135117
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
136118
pageSize?: number;
137119
/** Page Number, this value is simply for client state */
@@ -848,10 +830,6 @@ export function ConversationListInstance(
848830

849831
let data: any = {};
850832

851-
if (params["startDate"] !== undefined)
852-
data["StartDate"] = params["startDate"];
853-
if (params["endDate"] !== undefined) data["EndDate"] = params["endDate"];
854-
if (params["state"] !== undefined) data["State"] = params["state"];
855833
if (params["pageSize"] !== undefined) data["PageSize"] = params["pageSize"];
856834

857835
if (params.pageNumber !== undefined) data["Page"] = params.pageNumber;

src/rest/flexApi/v1/assessments.ts

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ export interface AssessmentsContextUpdateOptions {
3838
* Options to pass to create a AssessmentsInstance
3939
*/
4040
export interface AssessmentsListInstanceCreateOptions {
41-
/** The id of the category */
42-
categoryId: string;
41+
/** The SID of the category */
42+
categorySid: string;
4343
/** The name of the category */
4444
categoryName: string;
4545
/** Segment Id of the conversation */
@@ -52,16 +52,16 @@ export interface AssessmentsListInstanceCreateOptions {
5252
agentId: string;
5353
/** The offset of the conversation. */
5454
offset: number;
55-
/** The question Id selected for assessment */
55+
/** The question SID selected for assessment */
5656
metricId: string;
5757
/** The question name of the assessment */
5858
metricName: string;
5959
/** The answer text selected by user */
6060
answerText: string;
6161
/** The id of the answer selected by user */
6262
answerId: string;
63-
/** Questionnaire Id of the associated question */
64-
questionnaireId: string;
63+
/** Questionnaire SID of the associated question */
64+
questionnaireSid: string;
6565
/** The Token HTTP request header */
6666
token?: string;
6767
}
@@ -135,20 +135,20 @@ export interface AssessmentsContext {
135135
}
136136

137137
export interface AssessmentsContextSolution {
138-
assessmentId: string;
138+
assessmentSid: string;
139139
}
140140

141141
export class AssessmentsContextImpl implements AssessmentsContext {
142142
protected _solution: AssessmentsContextSolution;
143143
protected _uri: string;
144144

145-
constructor(protected _version: V1, assessmentId: string) {
146-
if (!isValidPathParam(assessmentId)) {
147-
throw new Error("Parameter 'assessmentId' is not valid.");
145+
constructor(protected _version: V1, assessmentSid: string) {
146+
if (!isValidPathParam(assessmentSid)) {
147+
throw new Error("Parameter 'assessmentSid' is not valid.");
148148
}
149149

150-
this._solution = { assessmentId };
151-
this._uri = `/Insights/QM/Assessments/${assessmentId}`;
150+
this._solution = { assessmentSid };
151+
this._uri = `/Insights/QualityManagement/Assessments/${assessmentSid}`;
152152
}
153153

154154
update(
@@ -197,7 +197,7 @@ export class AssessmentsContextImpl implements AssessmentsContext {
197197
new AssessmentsInstance(
198198
operationVersion,
199199
payload,
200-
instance._solution.assessmentId
200+
instance._solution.assessmentSid
201201
)
202202
);
203203

@@ -228,7 +228,7 @@ interface AssessmentsPayload extends TwilioResponsePayload {
228228

229229
interface AssessmentsResource {
230230
account_sid: string;
231-
assessment_id: string;
231+
assessment_sid: string;
232232
offset: number;
233233
report: boolean;
234234
weight: number;
@@ -250,10 +250,10 @@ export class AssessmentsInstance {
250250
constructor(
251251
protected _version: V1,
252252
payload: AssessmentsResource,
253-
assessmentId?: string
253+
assessmentSid?: string
254254
) {
255255
this.accountSid = payload.account_sid;
256-
this.assessmentId = payload.assessment_id;
256+
this.assessmentSid = payload.assessment_sid;
257257
this.offset = payload.offset;
258258
this.report = payload.report;
259259
this.weight = payload.weight;
@@ -267,17 +267,17 @@ export class AssessmentsInstance {
267267
this.timestamp = payload.timestamp;
268268
this.url = payload.url;
269269

270-
this._solution = { assessmentId: assessmentId || this.assessmentId };
270+
this._solution = { assessmentSid: assessmentSid || this.assessmentSid };
271271
}
272272

273273
/**
274274
* The unique SID identifier of the Account.
275275
*/
276276
accountSid: string;
277277
/**
278-
* The unique id of the assessment
278+
* The SID of the assessment
279279
*/
280-
assessmentId: string;
280+
assessmentSid: string;
281281
/**
282282
* Offset of the conversation
283283
*/
@@ -324,7 +324,7 @@ export class AssessmentsInstance {
324324
private get _proxy(): AssessmentsContext {
325325
this._context =
326326
this._context ||
327-
new AssessmentsContextImpl(this._version, this._solution.assessmentId);
327+
new AssessmentsContextImpl(this._version, this._solution.assessmentSid);
328328
return this._context;
329329
}
330330

@@ -356,7 +356,7 @@ export class AssessmentsInstance {
356356
toJSON() {
357357
return {
358358
accountSid: this.accountSid,
359-
assessmentId: this.assessmentId,
359+
assessmentSid: this.assessmentSid,
360360
offset: this.offset,
361361
report: this.report,
362362
weight: this.weight,
@@ -384,8 +384,8 @@ export interface AssessmentsListInstance {
384384
_solution: AssessmentsSolution;
385385
_uri: string;
386386

387-
(assessmentId: string): AssessmentsContext;
388-
get(assessmentId: string): AssessmentsContext;
387+
(assessmentSid: string): AssessmentsContext;
388+
get(assessmentSid: string): AssessmentsContext;
389389

390390
/**
391391
* Create a AssessmentsInstance
@@ -477,16 +477,16 @@ export interface AssessmentsListInstance {
477477
}
478478

479479
export function AssessmentsListInstance(version: V1): AssessmentsListInstance {
480-
const instance = ((assessmentId) =>
481-
instance.get(assessmentId)) as AssessmentsListInstance;
480+
const instance = ((assessmentSid) =>
481+
instance.get(assessmentSid)) as AssessmentsListInstance;
482482

483-
instance.get = function get(assessmentId): AssessmentsContext {
484-
return new AssessmentsContextImpl(version, assessmentId);
483+
instance.get = function get(assessmentSid): AssessmentsContext {
484+
return new AssessmentsContextImpl(version, assessmentSid);
485485
};
486486

487487
instance._version = version;
488488
instance._solution = {};
489-
instance._uri = `/Insights/QM/Assessments`;
489+
instance._uri = `/Insights/QualityManagement/Assessments`;
490490

491491
instance.create = function create(
492492
params: AssessmentsListInstanceCreateOptions,
@@ -496,8 +496,8 @@ export function AssessmentsListInstance(version: V1): AssessmentsListInstance {
496496
throw new Error('Required parameter "params" missing.');
497497
}
498498

499-
if (params["categoryId"] === null || params["categoryId"] === undefined) {
500-
throw new Error("Required parameter \"params['categoryId']\" missing.");
499+
if (params["categorySid"] === null || params["categorySid"] === undefined) {
500+
throw new Error("Required parameter \"params['categorySid']\" missing.");
501501
}
502502

503503
if (
@@ -544,17 +544,17 @@ export function AssessmentsListInstance(version: V1): AssessmentsListInstance {
544544
}
545545

546546
if (
547-
params["questionnaireId"] === null ||
548-
params["questionnaireId"] === undefined
547+
params["questionnaireSid"] === null ||
548+
params["questionnaireSid"] === undefined
549549
) {
550550
throw new Error(
551-
"Required parameter \"params['questionnaireId']\" missing."
551+
"Required parameter \"params['questionnaireSid']\" missing."
552552
);
553553
}
554554

555555
let data: any = {};
556556

557-
data["CategoryId"] = params["categoryId"];
557+
data["CategorySid"] = params["categorySid"];
558558

559559
data["CategoryName"] = params["categoryName"];
560560

@@ -576,7 +576,7 @@ export function AssessmentsListInstance(version: V1): AssessmentsListInstance {
576576

577577
data["AnswerId"] = params["answerId"];
578578

579-
data["QuestionnaireId"] = params["questionnaireId"];
579+
data["QuestionnaireSid"] = params["questionnaireSid"];
580580

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

src/rest/flexApi/v1/insightsAssessmentsComment.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ export function InsightsAssessmentsCommentListInstance(
227227

228228
instance._version = version;
229229
instance._solution = {};
230-
instance._uri = `/Insights/QM/Assessments/Comments`;
230+
instance._uri = `/Insights/QualityManagement/Assessments/Comments`;
231231

232232
instance.create = function create(
233233
params: InsightsAssessmentsCommentListInstanceCreateOptions,
@@ -416,7 +416,7 @@ interface InsightsAssessmentsCommentPayload extends TwilioResponsePayload {
416416

417417
interface InsightsAssessmentsCommentResource {
418418
account_sid: string;
419-
assessment_id: string;
419+
assessment_sid: string;
420420
comment: any;
421421
offset: number;
422422
report: boolean;
@@ -435,7 +435,7 @@ export class InsightsAssessmentsCommentInstance {
435435
payload: InsightsAssessmentsCommentResource
436436
) {
437437
this.accountSid = payload.account_sid;
438-
this.assessmentId = payload.assessment_id;
438+
this.assessmentSid = payload.assessment_sid;
439439
this.comment = payload.comment;
440440
this.offset = payload.offset;
441441
this.report = payload.report;
@@ -453,9 +453,9 @@ export class InsightsAssessmentsCommentInstance {
453453
*/
454454
accountSid: string;
455455
/**
456-
* The unique ID of the assessment.
456+
* The SID of the assessment.
457457
*/
458-
assessmentId: string;
458+
assessmentSid: string;
459459
/**
460460
* The comment added for assessment.
461461
*/
@@ -502,7 +502,7 @@ export class InsightsAssessmentsCommentInstance {
502502
toJSON() {
503503
return {
504504
accountSid: this.accountSid,
505-
assessmentId: this.assessmentId,
505+
assessmentSid: this.assessmentSid,
506506
comment: this.comment,
507507
offset: this.offset,
508508
report: this.report,

0 commit comments

Comments
 (0)