Skip to content

Commit e3d6e80

Browse files
committed
[Librarian] Regenerated @ 5627c63bd23f159fdbe112bf727f87b79c3d4f74
1 parent 7519b2f commit e3d6e80

File tree

9 files changed

+1595
-9
lines changed

9 files changed

+1595
-9
lines changed

CHANGES.md

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

4+
[2023-07-14] Version 4.14.0
5+
---------------------------
6+
**Library - Fix**
7+
- [PR #945](https://github.com/twilio/twilio-node/pull/945): bump dayjs version (fixes #934). Thanks to [@titanism](https://github.com/titanism)!
8+
9+
**Flex**
10+
- Adding `interaction_context_sid` as optional parameter in Interactions API
11+
12+
**Messaging**
13+
- Making visiblity public for tollfree_verification API
14+
15+
**Numbers**
16+
- Remove Sms capability property from HNO creation under version `/v2` of HNO API. **(breaking change)**
17+
- Update required properties in LOA creation under version `/v2` of Authorization document API. **(breaking change)**
18+
19+
**Taskrouter**
20+
- Add api to fetch task queue statistics for multiple TaskQueues
21+
22+
**Verify**
23+
- Add `RiskCheck` optional parameter on Verification creation.
24+
25+
**Twiml**
26+
- Add Google Voices and languages
27+
28+
429
[2023-06-28] Version 4.13.0
530
---------------------------
631
**Library - Fix**

src/rest/flexApi/v1/interaction.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ export interface InteractionListInstanceCreateOptions {
2727
channel: any;
2828
/** The Interaction\\\'s routing logic. */
2929
routing: any;
30+
/** The Interaction context sid is used for adding a context lookup sid */
31+
interactionContextSid?: string;
3032
}
3133

3234
export interface InteractionContext {
@@ -124,6 +126,7 @@ interface InteractionResource {
124126
routing: any;
125127
url: string;
126128
links: Record<string, string>;
129+
interaction_context_sid: string;
127130
}
128131

129132
export class InteractionInstance {
@@ -140,6 +143,7 @@ export class InteractionInstance {
140143
this.routing = payload.routing;
141144
this.url = payload.url;
142145
this.links = payload.links;
146+
this.interactionContextSid = payload.interaction_context_sid;
143147

144148
this._solution = { sid: sid || this.sid };
145149
}
@@ -158,6 +162,7 @@ export class InteractionInstance {
158162
routing: any;
159163
url: string;
160164
links: Record<string, string>;
165+
interactionContextSid: string;
161166

162167
private get _proxy(): InteractionContext {
163168
this._context =
@@ -198,6 +203,7 @@ export class InteractionInstance {
198203
routing: this.routing,
199204
url: this.url,
200205
links: this.links,
206+
interactionContextSid: this.interactionContextSid,
201207
};
202208
}
203209

@@ -268,6 +274,8 @@ export function InteractionListInstance(version: V1): InteractionListInstance {
268274
data["Channel"] = serialize.object(params["channel"]);
269275

270276
data["Routing"] = serialize.object(params["routing"]);
277+
if (params["interactionContextSid"] !== undefined)
278+
data["InteractionContextSid"] = params["interactionContextSid"];
271279

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

src/rest/messaging/V1.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import { ExternalCampaignListInstance } from "./v1/externalCampaign";
2323
import { LinkshorteningMessagingServiceListInstance } from "./v1/linkshorteningMessagingService";
2424
import { LinkshorteningMessagingServiceDomainAssociationListInstance } from "./v1/linkshorteningMessagingServiceDomainAssociation";
2525
import { ServiceListInstance } from "./v1/service";
26+
import { TollfreeVerificationListInstance } from "./v1/tollfreeVerification";
2627
import { UsecaseListInstance } from "./v1/usecase";
2728

2829
export default class V1 extends Version {
@@ -53,6 +54,8 @@ export default class V1 extends Version {
5354
protected _linkshorteningMessagingServiceDomainAssociation?: LinkshorteningMessagingServiceDomainAssociationListInstance;
5455
/** services - { Twilio.Messaging.V1.ServiceListInstance } resource */
5556
protected _services?: ServiceListInstance;
57+
/** tollfreeVerifications - { Twilio.Messaging.V1.TollfreeVerificationListInstance } resource */
58+
protected _tollfreeVerifications?: TollfreeVerificationListInstance;
5659
/** usecases - { Twilio.Messaging.V1.UsecaseListInstance } resource */
5760
protected _usecases?: UsecaseListInstance;
5861

@@ -119,6 +122,13 @@ export default class V1 extends Version {
119122
return this._services;
120123
}
121124

125+
/** Getter for tollfreeVerifications resource */
126+
get tollfreeVerifications(): TollfreeVerificationListInstance {
127+
this._tollfreeVerifications =
128+
this._tollfreeVerifications || TollfreeVerificationListInstance(this);
129+
return this._tollfreeVerifications;
130+
}
131+
122132
/** Getter for usecases resource */
123133
get usecases(): UsecaseListInstance {
124134
this._usecases = this._usecases || UsecaseListInstance(this);

0 commit comments

Comments
 (0)