Skip to content

Commit

Permalink
chore: sync with main (#1047)
Browse files Browse the repository at this point in the history
* [Librarian] Regenerated @ 51e40434baa37a97b298d416220c6de10d9698c4 1ac2fcf2e173acdee4491031f59034933467a82c

* Release 5.3.6

---------

Co-authored-by: Twilio <team_interfaces+github@twilio.com>
  • Loading branch information
tiwarishubham635 and twilio-dx authored Nov 20, 2024
1 parent 13ab95f commit d8a038e
Show file tree
Hide file tree
Showing 32 changed files with 6,301 additions and 49 deletions.
15 changes: 15 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
twilio-node changelog
=====================

[2024-11-15] Version 5.3.6
--------------------------
**Library - Chore**
- [PR #1040](https://github.com/twilio/twilio-node/pull/1040): pass http agent options to client. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
- [PR #1041](https://github.com/twilio/twilio-node/pull/1041): remove preview sync api. Thanks to [@sbansla](https://github.com/sbansla)!

**Api**
- Added `ivr-virtual-agent-custom-voices` and `ivr-virtual-agent-genai` to `usage_record` API.
- Add open-api file tag to realtime_transcriptions

**Taskrouter**
- Add `api-tag` property to workers reservation
- Add `api-tag` property to task reservation


[2024-10-24] Version 5.3.5
--------------------------
**Conversations**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "twilio",
"description": "A Twilio helper library",
"version": "5.3.5",
"version": "5.3.6",
"author": "API Team <api@twilio.com>",
"contributors": [
{
Expand Down
6 changes: 6 additions & 0 deletions src/rest/PreviewBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@

import Domain from "../base/Domain";
import HostedNumbers from "./preview/HostedNumbers";
import Sync from "./preview/Sync";
import Marketplace from "./preview/Marketplace";
import Wireless from "./preview/Wireless";

class PreviewBase extends Domain {
_hosted_numbers?: HostedNumbers;
_sync?: Sync;
_marketplace?: Marketplace;
_wireless?: Wireless;

Expand All @@ -32,6 +34,10 @@ class PreviewBase extends Domain {
this._hosted_numbers = this._hosted_numbers || new HostedNumbers(this);
return this._hosted_numbers;
}
get sync(): Sync {
this._sync = this._sync || new Sync(this);
return this._sync;
}
get marketplace(): Marketplace {
this._marketplace = this._marketplace || new Marketplace(this);
return this._marketplace;
Expand Down
2 changes: 2 additions & 0 deletions src/rest/api/v2010/account/usage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ export type UsageCategory =
| "group-rooms-participant-minutes"
| "group-rooms-recorded-minutes"
| "imp-v1-usage"
| "ivr-virtual-agent-custom-voices"
| "ivr-virtual-agent-genai"
| "lookups"
| "marketplace"
| "marketplace-algorithmia-named-entity-recognition"
Expand Down
2 changes: 2 additions & 0 deletions src/rest/api/v2010/account/usage/record.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ export type RecordCategory =
| "group-rooms-participant-minutes"
| "group-rooms-recorded-minutes"
| "imp-v1-usage"
| "ivr-virtual-agent-custom-voices"
| "ivr-virtual-agent-genai"
| "lookups"
| "marketplace"
| "marketplace-algorithmia-named-entity-recognition"
Expand Down
2 changes: 2 additions & 0 deletions src/rest/api/v2010/account/usage/record/allTime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ export type AllTimeCategory =
| "group-rooms-participant-minutes"
| "group-rooms-recorded-minutes"
| "imp-v1-usage"
| "ivr-virtual-agent-custom-voices"
| "ivr-virtual-agent-genai"
| "lookups"
| "marketplace"
| "marketplace-algorithmia-named-entity-recognition"
Expand Down
2 changes: 2 additions & 0 deletions src/rest/api/v2010/account/usage/record/daily.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ export type DailyCategory =
| "group-rooms-participant-minutes"
| "group-rooms-recorded-minutes"
| "imp-v1-usage"
| "ivr-virtual-agent-custom-voices"
| "ivr-virtual-agent-genai"
| "lookups"
| "marketplace"
| "marketplace-algorithmia-named-entity-recognition"
Expand Down
2 changes: 2 additions & 0 deletions src/rest/api/v2010/account/usage/record/lastMonth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ export type LastMonthCategory =
| "group-rooms-participant-minutes"
| "group-rooms-recorded-minutes"
| "imp-v1-usage"
| "ivr-virtual-agent-custom-voices"
| "ivr-virtual-agent-genai"
| "lookups"
| "marketplace"
| "marketplace-algorithmia-named-entity-recognition"
Expand Down
2 changes: 2 additions & 0 deletions src/rest/api/v2010/account/usage/record/monthly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ export type MonthlyCategory =
| "group-rooms-participant-minutes"
| "group-rooms-recorded-minutes"
| "imp-v1-usage"
| "ivr-virtual-agent-custom-voices"
| "ivr-virtual-agent-genai"
| "lookups"
| "marketplace"
| "marketplace-algorithmia-named-entity-recognition"
Expand Down
2 changes: 2 additions & 0 deletions src/rest/api/v2010/account/usage/record/thisMonth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ export type ThisMonthCategory =
| "group-rooms-participant-minutes"
| "group-rooms-recorded-minutes"
| "imp-v1-usage"
| "ivr-virtual-agent-custom-voices"
| "ivr-virtual-agent-genai"
| "lookups"
| "marketplace"
| "marketplace-algorithmia-named-entity-recognition"
Expand Down
2 changes: 2 additions & 0 deletions src/rest/api/v2010/account/usage/record/today.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ export type TodayCategory =
| "group-rooms-participant-minutes"
| "group-rooms-recorded-minutes"
| "imp-v1-usage"
| "ivr-virtual-agent-custom-voices"
| "ivr-virtual-agent-genai"
| "lookups"
| "marketplace"
| "marketplace-algorithmia-named-entity-recognition"
Expand Down
2 changes: 2 additions & 0 deletions src/rest/api/v2010/account/usage/record/yearly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ export type YearlyCategory =
| "group-rooms-participant-minutes"
| "group-rooms-recorded-minutes"
| "imp-v1-usage"
| "ivr-virtual-agent-custom-voices"
| "ivr-virtual-agent-genai"
| "lookups"
| "marketplace"
| "marketplace-algorithmia-named-entity-recognition"
Expand Down
2 changes: 2 additions & 0 deletions src/rest/api/v2010/account/usage/record/yesterday.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ export type YesterdayCategory =
| "group-rooms-participant-minutes"
| "group-rooms-recorded-minutes"
| "imp-v1-usage"
| "ivr-virtual-agent-custom-voices"
| "ivr-virtual-agent-genai"
| "lookups"
| "marketplace"
| "marketplace-algorithmia-named-entity-recognition"
Expand Down
2 changes: 2 additions & 0 deletions src/rest/api/v2010/account/usage/trigger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ export type TriggerUsageCategory =
| "group-rooms-participant-minutes"
| "group-rooms-recorded-minutes"
| "imp-v1-usage"
| "ivr-virtual-agent-custom-voices"
| "ivr-virtual-agent-genai"
| "lookups"
| "marketplace"
| "marketplace-algorithmia-named-entity-recognition"
Expand Down
3 changes: 2 additions & 1 deletion src/rest/content/v1/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ export type CallToActionActionType =
| "URL"
| "PHONE_NUMBER"
| "COPY_CODE"
| "VOICE_CALL";
| "VOICE_CALL"
| "VOICE_CALL_REQUEST";

export class CardAction {
"type": CardActionType;
Expand Down
2 changes: 1 addition & 1 deletion src/rest/conversations/v1/conversationWithParticipants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export interface ConversationWithParticipantsListInstanceCreateOptions {
"bindings.email.address"?: string;
/** The default name that will be used when sending outbound emails in this conversation. */
"bindings.email.name"?: string;
/** The participant to be added to the conversation in JSON format. The parameters are as in [Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource). The maximum number of participants that can be added in a single request is 10. */
/** The participant to be added to the conversation in JSON format. The JSON object attributes are as parameters in [Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource). The maximum number of participants that can be added in a single request is 10. */
participant?: Array<string>;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export interface ConversationWithParticipantsListInstanceCreateOptions {
"bindings.email.address"?: string;
/** The default name that will be used when sending outbound emails in this conversation. */
"bindings.email.name"?: string;
/** The participant to be added to the conversation in JSON format. The parameters are as in [Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource). The maximum number of participants that can be added in a single request is 10. */
/** The participant to be added to the conversation in JSON format. The JSON object attributes are as parameters in [Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource). The maximum number of participants that can be added in a single request is 10. */
participant?: Array<string>;
}

Expand Down
3 changes: 2 additions & 1 deletion src/rest/insights/v1/conference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ export type ConferenceTag =
| "high_jitter"
| "high_latency"
| "low_mos"
| "detected_silence";
| "detected_silence"
| "no_concurrent_participants";

/**
* Options to pass to each
Expand Down
6 changes: 4 additions & 2 deletions src/rest/insights/v1/room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const serialize = require("../../../base/serialize");
import { isValidPathParam } from "../../../base/utility";
import { ParticipantListInstance } from "./room/participant";

export type RoomCodec = "VP8" | "H264" | "VP9";
export type RoomCodec = "VP8" | "H264" | "VP9" | "opus";

export type RoomCreatedMethod = "sdk" | "ad_hoc" | "api";

Expand Down Expand Up @@ -54,7 +54,9 @@ export type RoomTwilioRealm =
| "sg1"
| "in1"
| "de1"
| "gll";
| "gll"
| "stage_us1"
| "dev_us1";

/**
* Options to pass to each
Expand Down
6 changes: 4 additions & 2 deletions src/rest/insights/v1/room/participant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const deserialize = require("../../../../base/deserialize");
const serialize = require("../../../../base/serialize");
import { isValidPathParam } from "../../../../base/utility";

export type ParticipantCodec = "VP8" | "H264" | "VP9";
export type ParticipantCodec = "VP8" | "H264" | "VP9" | "opus";

export type ParticipantEdgeLocation =
| "ashburn"
Expand All @@ -45,7 +45,9 @@ export type ParticipantTwilioRealm =
| "sg1"
| "in1"
| "de1"
| "gll";
| "gll"
| "stage_us1"
| "dev_us1";

/**
* Options to pass to each
Expand Down
20 changes: 9 additions & 11 deletions src/rest/numbers/V1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import { PortingPortInPhoneNumberListInstance } from "./v1/portingPortInPhoneNum
import { PortingPortabilityListInstance } from "./v1/portingPortability";
import { PortingWebhookConfigurationListInstance } from "./v1/portingWebhookConfiguration";
import { PortingWebhookConfigurationDeleteListInstance } from "./v1/portingWebhookConfigurationDelete";
import { PortingWebhookConfigurationFetchListInstance } from "./v1/portingWebhookConfigurationFetch";
import { SigningRequestConfigurationListInstance } from "./v1/signingRequestConfiguration";
import { WebhookListInstance } from "./v1/webhook";

export default class V1 extends Version {
/**
Expand All @@ -48,10 +48,10 @@ export default class V1 extends Version {
protected _portingWebhookConfigurations?: PortingWebhookConfigurationListInstance;
/** portingWebhookConfigurationsDelete - { Twilio.Numbers.V1.PortingWebhookConfigurationDeleteListInstance } resource */
protected _portingWebhookConfigurationsDelete?: PortingWebhookConfigurationDeleteListInstance;
/** portingWebhookConfigurationFetch - { Twilio.Numbers.V1.PortingWebhookConfigurationFetchListInstance } resource */
protected _portingWebhookConfigurationFetch?: PortingWebhookConfigurationFetchListInstance;
/** signingRequestConfigurations - { Twilio.Numbers.V1.SigningRequestConfigurationListInstance } resource */
protected _signingRequestConfigurations?: SigningRequestConfigurationListInstance;
/** webhook - { Twilio.Numbers.V1.WebhookListInstance } resource */
protected _webhook?: WebhookListInstance;

/** Getter for bulkEligibilities resource */
get bulkEligibilities(): BulkEligibilityListInstance {
Expand Down Expand Up @@ -104,19 +104,17 @@ export default class V1 extends Version {
return this._portingWebhookConfigurationsDelete;
}

/** Getter for portingWebhookConfigurationFetch resource */
get portingWebhookConfigurationFetch(): PortingWebhookConfigurationFetchListInstance {
this._portingWebhookConfigurationFetch =
this._portingWebhookConfigurationFetch ||
PortingWebhookConfigurationFetchListInstance(this);
return this._portingWebhookConfigurationFetch;
}

/** Getter for signingRequestConfigurations resource */
get signingRequestConfigurations(): SigningRequestConfigurationListInstance {
this._signingRequestConfigurations =
this._signingRequestConfigurations ||
SigningRequestConfigurationListInstance(this);
return this._signingRequestConfigurations;
}

/** Getter for webhook resource */
get webhook(): WebhookListInstance {
this._webhook = this._webhook || WebhookListInstance(this);
return this._webhook;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,23 @@ const deserialize = require("../../../base/deserialize");
const serialize = require("../../../base/serialize");
import { isValidPathParam } from "../../../base/utility";

export interface PortingWebhookConfigurationFetchSolution {}
export interface WebhookSolution {}

export interface PortingWebhookConfigurationFetchListInstance {
export interface WebhookListInstance {
_version: V1;
_solution: PortingWebhookConfigurationFetchSolution;
_solution: WebhookSolution;
_uri: string;

/**
* Fetch a PortingWebhookConfigurationFetchInstance
* Fetch a WebhookInstance
*
* @param callback - Callback to handle processed record
*
* @returns Resolves to processed PortingWebhookConfigurationFetchInstance
* @returns Resolves to processed WebhookInstance
*/
fetch(
callback?: (
error: Error | null,
item?: PortingWebhookConfigurationFetchInstance
) => any
): Promise<PortingWebhookConfigurationFetchInstance>;
callback?: (error: Error | null, item?: WebhookInstance) => any
): Promise<WebhookInstance>;

/**
* Provide a user-friendly representation
Expand All @@ -46,30 +43,24 @@ export interface PortingWebhookConfigurationFetchListInstance {
[inspect.custom](_depth: any, options: InspectOptions): any;
}

export function PortingWebhookConfigurationFetchListInstance(
version: V1
): PortingWebhookConfigurationFetchListInstance {
const instance = {} as PortingWebhookConfigurationFetchListInstance;
export function WebhookListInstance(version: V1): WebhookListInstance {
const instance = {} as WebhookListInstance;

instance._version = version;
instance._solution = {};
instance._uri = `/Porting/Configuration/Webhook`;

instance.fetch = function fetch(
callback?: (
error: Error | null,
items: PortingWebhookConfigurationFetchInstance
) => any
): Promise<PortingWebhookConfigurationFetchInstance> {
callback?: (error: Error | null, items: WebhookInstance) => any
): Promise<WebhookInstance> {
let operationVersion = version,
operationPromise = operationVersion.fetch({
uri: instance._uri,
method: "get",
});

operationPromise = operationPromise.then(
(payload) =>
new PortingWebhookConfigurationFetchInstance(operationVersion, payload)
(payload) => new WebhookInstance(operationVersion, payload)
);

operationPromise = instance._version.setPromiseCallback(
Expand All @@ -93,10 +84,9 @@ export function PortingWebhookConfigurationFetchListInstance(
return instance;
}

interface PortingWebhookConfigurationFetchPayload
extends PortingWebhookConfigurationFetchResource {}
interface WebhookPayload extends WebhookResource {}

interface PortingWebhookConfigurationFetchResource {
interface WebhookResource {
url: string;
port_in_target_url: string;
port_out_target_url: string;
Expand All @@ -105,11 +95,8 @@ interface PortingWebhookConfigurationFetchResource {
port_out_target_date_created: Date;
}

export class PortingWebhookConfigurationFetchInstance {
constructor(
protected _version: V1,
payload: PortingWebhookConfigurationFetchResource
) {
export class WebhookInstance {
constructor(protected _version: V1, payload: WebhookResource) {
this.url = payload.url;
this.portInTargetUrl = payload.port_in_target_url;
this.portOutTargetUrl = payload.port_out_target_url;
Expand Down
Loading

0 comments on commit d8a038e

Please sign in to comment.