Skip to content

Commit b86e2e0

Browse files
committed
[Librarian] Regenerated @ 922c1fef02b8c8fbbbe2315aa9b9d1dba49f3fc0
1 parent ed8ad97 commit b86e2e0

File tree

13 files changed

+98
-90
lines changed

13 files changed

+98
-90
lines changed

CHANGES.md

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

4+
[2023-10-19] Version 4.19.0
5+
---------------------------
6+
**Library - Chore**
7+
- [PR #966](https://github.com/twilio/twilio-node/pull/966): upgraded semver versions. Thanks to [@sbansla](https://github.com/sbansla)!
8+
- [PR #964](https://github.com/twilio/twilio-node/pull/964): added feature request issue template. Thanks to [@sbansla](https://github.com/sbansla)!
9+
10+
**Accounts**
11+
- Updated Safelist metadata to correct the docs.
12+
- Add Global SafeList API changes
13+
14+
**Api**
15+
- Added optional parameter `CallToken` for create participant api
16+
17+
**Flex**
18+
- Adding `offline_config` to Flex Configuration
19+
20+
**Intelligence**
21+
- Deleted `redacted` parameter from fetching transcript in v2 **(breaking change)**
22+
23+
**Lookups**
24+
- Add new `phone_number_quality_score` package to the lookup response
25+
- Remove `disposable_phone_number_risk` package **(breaking change)**
26+
27+
**Messaging**
28+
- Update US App To Person documentation with current `message_samples` requirements
29+
30+
**Taskrouter**
31+
- Remove beta_feature check on task_queue_bulk_real_time_statistics endpoint
32+
- Add `virtual_start_time` property to tasks
33+
- Updating `task_queue_data` format from `map` to `array` in the response of bulk get endpoint of TaskQueue Real Time Statistics API **(breaking change)**
34+
35+
436
[2023-10-05] Version 4.18.1
537
---------------------------
638
**Library - Fix**

src/rest/accounts/V1.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import AccountsBase from "../AccountsBase";
1616
import Version from "../../base/Version";
1717
import { AuthTokenPromotionListInstance } from "./v1/authTokenPromotion";
1818
import { CredentialListInstance } from "./v1/credential";
19+
import { SafelistListInstance } from "./v1/safelist";
1920
import { SecondaryAuthTokenListInstance } from "./v1/secondaryAuthToken";
2021

2122
export default class V1 extends Version {
@@ -32,6 +33,8 @@ export default class V1 extends Version {
3233
protected _authTokenPromotion?: AuthTokenPromotionListInstance;
3334
/** credentials - { Twilio.Accounts.V1.CredentialListInstance } resource */
3435
protected _credentials?: CredentialListInstance;
36+
/** safelist - { Twilio.Accounts.V1.SafelistListInstance } resource */
37+
protected _safelist?: SafelistListInstance;
3538
/** secondaryAuthToken - { Twilio.Accounts.V1.SecondaryAuthTokenListInstance } resource */
3639
protected _secondaryAuthToken?: SecondaryAuthTokenListInstance;
3740

@@ -48,6 +51,12 @@ export default class V1 extends Version {
4851
return this._credentials;
4952
}
5053

54+
/** Getter for safelist resource */
55+
get safelist(): SafelistListInstance {
56+
this._safelist = this._safelist || SafelistListInstance(this);
57+
return this._safelist;
58+
}
59+
5160
/** Getter for secondaryAuthToken resource */
5261
get secondaryAuthToken(): SecondaryAuthTokenListInstance {
5362
this._secondaryAuthToken =

src/rest/api/v2010/safelist.ts renamed to src/rest/accounts/v1/safelist.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
55
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
66
*
7-
* Twilio - Api
7+
* Twilio - Accounts
88
* This is the public Twilio REST API.
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator.
@@ -13,7 +13,7 @@
1313
*/
1414

1515
import { inspect, InspectOptions } from "util";
16-
import V2010 from "../V2010";
16+
import V1 from "../V1";
1717
const deserialize = require("../../../base/deserialize");
1818
const serialize = require("../../../base/serialize");
1919
import { isValidPathParam } from "../../../base/utility";
@@ -45,7 +45,7 @@ export interface SafelistListInstanceFetchOptions {
4545
export interface SafelistSolution {}
4646

4747
export interface SafelistListInstance {
48-
_version: V2010;
48+
_version: V1;
4949
_solution: SafelistSolution;
5050
_uri: string;
5151

@@ -115,12 +115,12 @@ export interface SafelistListInstance {
115115
[inspect.custom](_depth: any, options: InspectOptions): any;
116116
}
117117

118-
export function SafelistListInstance(version: V2010): SafelistListInstance {
118+
export function SafelistListInstance(version: V1): SafelistListInstance {
119119
const instance = {} as SafelistListInstance;
120120

121121
instance._version = version;
122122
instance._solution = {};
123-
instance._uri = `/SafeList/Numbers.json`;
123+
instance._uri = `/SafeList/Numbers`;
124124

125125
instance.create = function create(
126126
params: SafelistListInstanceCreateOptions,
@@ -256,7 +256,7 @@ interface SafelistResource {
256256
}
257257

258258
export class SafelistInstance {
259-
constructor(protected _version: V2010, payload: SafelistResource) {
259+
constructor(protected _version: V1, payload: SafelistResource) {
260260
this.sid = payload.sid;
261261
this.phoneNumber = payload.phone_number;
262262
}

src/rest/api/V2010.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import ApiBase from "../ApiBase";
1616
import Version from "../../base/Version";
1717
import { AccountListInstance } from "./v2010/account";
18-
import { SafelistListInstance } from "./v2010/safelist";
1918
import { AccountContext } from "./v2010/account";
2019

2120
export default class V2010 extends Version {
@@ -30,8 +29,6 @@ export default class V2010 extends Version {
3029

3130
/** accounts - { Twilio.Api.V2010.AccountListInstance } resource */
3231
protected _accounts?: AccountListInstance;
33-
/** safelist - { Twilio.Api.V2010.SafelistListInstance } resource */
34-
protected _safelist?: SafelistListInstance;
3532
/** account - { Twilio.Api.V2010.AccountContext } resource */
3633
protected _account?: AccountContext;
3734

@@ -41,12 +38,6 @@ export default class V2010 extends Version {
4138
return this._accounts;
4239
}
4340

44-
/** Getter for safelist resource */
45-
get safelist(): SafelistListInstance {
46-
this._safelist = this._safelist || SafelistListInstance(this);
47-
return this._safelist;
48-
}
49-
5041
/** Getter for account resource */
5142
get account(): AccountContext {
5243
this._account =

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ export interface ParticipantListInstanceCreateOptions {
156156
amdStatusCallbackMethod?: string;
157157
/** Whether to trim any leading and trailing silence from the participant recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`. */
158158
trim?: string;
159+
/** A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call\\\'s call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call. */
160+
callToken?: string;
159161
}
160162
/**
161163
* Options to pass to each
@@ -887,6 +889,8 @@ export function ParticipantListInstance(
887889
if (params["amdStatusCallbackMethod"] !== undefined)
888890
data["AmdStatusCallbackMethod"] = params["amdStatusCallbackMethod"];
889891
if (params["trim"] !== undefined) data["Trim"] = params["trim"];
892+
if (params["callToken"] !== undefined)
893+
data["CallToken"] = params["callToken"];
890894

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

src/rest/flexApi/v1/configuration.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ interface ConfigurationResource {
174174
flex_ui_status_report: any;
175175
agent_conv_end_methods: any;
176176
citrix_voice_vdi: any;
177+
offline_config: any;
177178
}
178179

179180
export class ConfigurationInstance {
@@ -228,6 +229,7 @@ export class ConfigurationInstance {
228229
this.flexUiStatusReport = payload.flex_ui_status_report;
229230
this.agentConvEndMethods = payload.agent_conv_end_methods;
230231
this.citrixVoiceVdi = payload.citrix_voice_vdi;
232+
this.offlineConfig = payload.offline_config;
231233

232234
this._solution = {};
233235
}
@@ -417,6 +419,10 @@ export class ConfigurationInstance {
417419
* Citrix voice vdi configuration and settings.
418420
*/
419421
citrixVoiceVdi: any;
422+
/**
423+
* Presence and presence ttl configuration
424+
*/
425+
offlineConfig: any;
420426

421427
private get _proxy(): ConfigurationContext {
422428
this._context =
@@ -508,6 +514,7 @@ export class ConfigurationInstance {
508514
flexUiStatusReport: this.flexUiStatusReport,
509515
agentConvEndMethods: this.agentConvEndMethods,
510516
citrixVoiceVdi: this.citrixVoiceVdi,
517+
offlineConfig: this.offlineConfig,
511518
};
512519
}
513520

src/rest/intelligence/v2/transcript.ts

Lines changed: 1 addition & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,6 @@ export type TranscriptStatus =
3030
| "failed"
3131
| "canceled";
3232

33-
/**
34-
* Options to pass to fetch a TranscriptInstance
35-
*/
36-
export interface TranscriptContextFetchOptions {
37-
/** Grant access to PII Redacted/Unredacted Transcript. The default is `true` to access redacted Transcript. */
38-
redacted?: boolean;
39-
}
40-
4133
/**
4234
* Options to pass to create a TranscriptInstance
4335
*/
@@ -161,18 +153,6 @@ export interface TranscriptContext {
161153
fetch(
162154
callback?: (error: Error | null, item?: TranscriptInstance) => any
163155
): Promise<TranscriptInstance>;
164-
/**
165-
* Fetch a TranscriptInstance
166-
*
167-
* @param params - Parameter for request
168-
* @param callback - Callback to handle processed record
169-
*
170-
* @returns Resolves to processed TranscriptInstance
171-
*/
172-
fetch(
173-
params: TranscriptContextFetchOptions,
174-
callback?: (error: Error | null, item?: TranscriptInstance) => any
175-
): Promise<TranscriptInstance>;
176156

177157
/**
178158
* Provide a user-friendly representation
@@ -240,32 +220,13 @@ export class TranscriptContextImpl implements TranscriptContext {
240220
}
241221

242222
fetch(
243-
params?:
244-
| TranscriptContextFetchOptions
245-
| ((error: Error | null, item?: TranscriptInstance) => any),
246223
callback?: (error: Error | null, item?: TranscriptInstance) => any
247224
): Promise<TranscriptInstance> {
248-
if (params instanceof Function) {
249-
callback = params;
250-
params = {};
251-
} else {
252-
params = params || {};
253-
}
254-
255-
let data: any = {};
256-
257-
if (params["redacted"] !== undefined)
258-
data["Redacted"] = serialize.bool(params["redacted"]);
259-
260-
const headers: any = {};
261-
262225
const instance = this;
263226
let operationVersion = instance._version,
264227
operationPromise = operationVersion.fetch({
265228
uri: instance._uri,
266229
method: "get",
267-
params: data,
268-
headers,
269230
});
270231

271232
operationPromise = operationPromise.then(
@@ -429,25 +390,8 @@ export class TranscriptInstance {
429390
*/
430391
fetch(
431392
callback?: (error: Error | null, item?: TranscriptInstance) => any
432-
): Promise<TranscriptInstance>;
433-
/**
434-
* Fetch a TranscriptInstance
435-
*
436-
* @param params - Parameter for request
437-
* @param callback - Callback to handle processed record
438-
*
439-
* @returns Resolves to processed TranscriptInstance
440-
*/
441-
fetch(
442-
params: TranscriptContextFetchOptions,
443-
callback?: (error: Error | null, item?: TranscriptInstance) => any
444-
): Promise<TranscriptInstance>;
445-
446-
fetch(
447-
params?: any,
448-
callback?: (error: Error | null, item?: TranscriptInstance) => any
449393
): Promise<TranscriptInstance> {
450-
return this._proxy.fetch(params, callback);
394+
return this._proxy.fetch(callback);
451395
}
452396

453397
/**

src/rest/intelligence/v2/transcript/media.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { isValidPathParam } from "../../../../base/utility";
2222
* Options to pass to fetch a MediaInstance
2323
*/
2424
export interface MediaContextFetchOptions {
25-
/** Grant access to PII Redacted/Unredacted Media. The default is `true` to access redacted media. */
25+
/** Grant access to PII Redacted/Unredacted Media. If redaction is enabled, the default is `true` to access redacted media. */
2626
redacted?: boolean;
2727
}
2828

src/rest/intelligence/v2/transcript/operatorResult.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ export type OperatorResultOperatorType =
3131
* Options to pass to fetch a OperatorResultInstance
3232
*/
3333
export interface OperatorResultContextFetchOptions {
34-
/** Grant access to PII redacted/unredacted Language Understanding operator. The default is True. */
34+
/** Grant access to PII redacted/unredacted Language Understanding operator. If redaction is enabled, the default is True. */
3535
redacted?: boolean;
3636
}
3737
/**
3838
* Options to pass to each
3939
*/
4040
export interface OperatorResultListInstanceEachOptions {
41-
/** Grant access to PII redacted/unredacted Language Understanding operator. The default is True. */
41+
/** Grant access to PII redacted/unredacted Language Understanding operator. If redaction is enabled, the default is True. */
4242
redacted?: boolean;
4343
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
4444
pageSize?: number;
@@ -57,7 +57,7 @@ export interface OperatorResultListInstanceEachOptions {
5757
* Options to pass to list
5858
*/
5959
export interface OperatorResultListInstanceOptions {
60-
/** Grant access to PII redacted/unredacted Language Understanding operator. The default is True. */
60+
/** Grant access to PII redacted/unredacted Language Understanding operator. If redaction is enabled, the default is True. */
6161
redacted?: boolean;
6262
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
6363
pageSize?: number;
@@ -69,7 +69,7 @@ export interface OperatorResultListInstanceOptions {
6969
* Options to pass to page
7070
*/
7171
export interface OperatorResultListInstancePageOptions {
72-
/** Grant access to PII redacted/unredacted Language Understanding operator. The default is True. */
72+
/** Grant access to PII redacted/unredacted Language Understanding operator. If redaction is enabled, the default is True. */
7373
redacted?: boolean;
7474
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
7575
pageSize?: number;

src/rest/intelligence/v2/transcript/sentence.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { isValidPathParam } from "../../../../base/utility";
2424
* Options to pass to each
2525
*/
2626
export interface SentenceListInstanceEachOptions {
27-
/** Grant access to PII Redacted/Unredacted Sentences. The default is `true` to access redacted sentences. */
27+
/** Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is `true` to access redacted sentences. */
2828
redacted?: boolean;
2929
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
3030
pageSize?: number;
@@ -40,7 +40,7 @@ export interface SentenceListInstanceEachOptions {
4040
* Options to pass to list
4141
*/
4242
export interface SentenceListInstanceOptions {
43-
/** Grant access to PII Redacted/Unredacted Sentences. The default is `true` to access redacted sentences. */
43+
/** Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is `true` to access redacted sentences. */
4444
redacted?: boolean;
4545
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
4646
pageSize?: number;
@@ -52,7 +52,7 @@ export interface SentenceListInstanceOptions {
5252
* Options to pass to page
5353
*/
5454
export interface SentenceListInstancePageOptions {
55-
/** Grant access to PII Redacted/Unredacted Sentences. The default is `true` to access redacted sentences. */
55+
/** Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is `true` to access redacted sentences. */
5656
redacted?: boolean;
5757
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
5858
pageSize?: number;

0 commit comments

Comments
 (0)