Skip to content

Commit

Permalink
[Librarian] Regenerated @ 93a2de5505384cb61be7440d3563d93d5cf980df 51…
Browse files Browse the repository at this point in the history
…46479cf5e06841f2d634d763cfd8acec49eb7e
  • Loading branch information
twilio-dx committed Jun 27, 2024
1 parent 20434b9 commit e11935a
Show file tree
Hide file tree
Showing 9 changed files with 1,533 additions and 10 deletions.
19 changes: 19 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
twilio-node changelog
=====================

[2024-06-27] Version 5.2.1
--------------------------
**Api**
- Add `transcription` resource
- Add beta feature request managed cert

**Flex**
- Changed mount name for flex_team v2 api

**Intelligence**
- Add `X-Rate-Limit-Limit`, `X-Rate-Limit-Remaining`, and `X-Rate-Limit-Config` as Response Headers to Operator resources

**Numbers**
- Added include_constraints query parameter to the Regulations API

**Twiml**
- Add support for `<Transcription>` noun


[2024-06-18] Version 5.2.0
--------------------------
**Library - Chore**
Expand Down
5 changes: 5 additions & 0 deletions src/rest/PreviewIam.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import PreviewIamBase from "./PreviewIamBase";

class PreviewIam extends PreviewIamBase {}

export = PreviewIam;
25 changes: 25 additions & 0 deletions src/rest/PreviewIamBase.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* This code was generated by
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
*
* NOTE: This class is auto generated by OpenAPI Generator.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

import Domain from "../base/Domain";

class PreviewIamBase extends Domain {
/**
* Initialize previewIam domain
*
* @param twilio - The twilio client
*/
constructor(twilio: any) {
super(twilio, "https://preview-iam.twilio.com");
}
}

export = PreviewIamBase;
11 changes: 11 additions & 0 deletions src/rest/Twilio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import Conversations from "./Conversations";
import Events from "./Events";
import FlexApi from "./FlexApi";
import FrontlineApi from "./FrontlineApi";
import PreviewIam from "./PreviewIam";
import Insights from "./Insights";
import Intelligence from "./Intelligence";
import IpMessaging from "./IpMessaging";
Expand Down Expand Up @@ -95,6 +96,8 @@ class Twilio extends Client {
_flexApi?: FlexApi;
/** (Twilio.FrontlineApi) - frontlineApi domain */
_frontlineApi?: FrontlineApi;
/** (Twilio.PreviewIam) - previewIam domain */
_previewIam?: PreviewIam;
/** (Twilio.Insights) - insights domain */
_insights?: Insights;
/** (Twilio.Intelligence) - intelligence domain */
Expand Down Expand Up @@ -174,6 +177,7 @@ class Twilio extends Client {
this.events;
this.flexApi;
this.frontlineApi;
this.previewIam;
this.insights;
this.intelligence;
this.ipMessaging;
Expand Down Expand Up @@ -251,6 +255,13 @@ class Twilio extends Client {
(this._frontlineApi = new (require("./FrontlineApi"))(this))
);
}
/** Getter for (Twilio.PreviewIam) domain */
get previewIam(): PreviewIam {
return (
this._previewIam ??
(this._previewIam = new (require("./PreviewIam"))(this))
);
}
/** Getter for (Twilio.Insights) domain */
get insights(): Insights {
return (
Expand Down
21 changes: 21 additions & 0 deletions src/rest/api/v2010/account/call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import { PaymentListInstance } from "./call/payment";
import { RecordingListInstance } from "./call/recording";
import { SiprecListInstance } from "./call/siprec";
import { StreamListInstance } from "./call/stream";
import { TranscriptionListInstance } from "./call/transcription";
import { UserDefinedMessageListInstance } from "./call/userDefinedMessage";
import { UserDefinedMessageSubscriptionListInstance } from "./call/userDefinedMessageSubscription";
import TwiML from "../../../../twiml/TwiML";
Expand Down Expand Up @@ -243,6 +244,7 @@ export interface CallContext {
recordings: RecordingListInstance;
siprec: SiprecListInstance;
streams: StreamListInstance;
transcriptions: TranscriptionListInstance;
userDefinedMessages: UserDefinedMessageListInstance;
userDefinedMessageSubscriptions: UserDefinedMessageSubscriptionListInstance;

Expand Down Expand Up @@ -313,6 +315,7 @@ export class CallContextImpl implements CallContext {
protected _recordings?: RecordingListInstance;
protected _siprec?: SiprecListInstance;
protected _streams?: StreamListInstance;
protected _transcriptions?: TranscriptionListInstance;
protected _userDefinedMessages?: UserDefinedMessageListInstance;
protected _userDefinedMessageSubscriptions?: UserDefinedMessageSubscriptionListInstance;

Expand Down Expand Up @@ -395,6 +398,17 @@ export class CallContextImpl implements CallContext {
return this._streams;
}

get transcriptions(): TranscriptionListInstance {
this._transcriptions =
this._transcriptions ||
TranscriptionListInstance(
this._version,
this._solution.accountSid,
this._solution.sid
);
return this._transcriptions;
}

get userDefinedMessages(): UserDefinedMessageListInstance {
this._userDefinedMessages =
this._userDefinedMessages ||
Expand Down Expand Up @@ -819,6 +833,13 @@ export class CallInstance {
return this._proxy.streams;
}

/**
* Access the transcriptions.
*/
transcriptions(): TranscriptionListInstance {
return this._proxy.transcriptions;
}

/**
* Access the userDefinedMessages.
*/
Expand Down
Loading

0 comments on commit e11935a

Please sign in to comment.