Skip to content

Commit

Permalink
[Librarian] Regenerated @ d9b0f7b0297f064eec2f219b29fd4193559c54f3 40…
Browse files Browse the repository at this point in the history
…5f363a58346c6557d4194de16d9911b797e208
  • Loading branch information
twilio-dx committed Jan 13, 2025
1 parent 1ae2ef7 commit 4b1ec09
Show file tree
Hide file tree
Showing 13 changed files with 360 additions and 93 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
twilio-node changelog
=====================

[2025-01-13] Version 5.4.2
--------------------------
**Messaging**
- Adds validity period Default value in service resource documentation


[2025-01-09] Version 5.4.1
--------------------------
**Numbers**
Expand Down
2 changes: 1 addition & 1 deletion src/rest/api/v2010/account/call/transcription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export interface TranscriptionListInstanceCreateOptions {
hints?: string;
/** The provider will add punctuation to recognition result */
enableAutomaticPunctuation?: boolean;
/** The SID or the unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription. */
/** The SID of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators . */
intelligenceService?: string;
}

Expand Down
4 changes: 2 additions & 2 deletions src/rest/conversations/v1/configuration/webhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export type WebhookTarget = "webhook" | "flex";
export interface WebhookContextUpdateOptions {
/** The HTTP method to be used when sending a webhook request. */
method?: string;
/** The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved` */
/** The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onMessageAdd`, `onMessageUpdate`, `onMessageRemove`, `onConversationUpdated`, `onConversationRemoved`, `onConversationAdd`, `onConversationAdded`, `onConversationRemove`, `onConversationUpdate`, `onConversationStateUpdated`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`, `onParticipantAdd`, `onParticipantRemove`, `onParticipantUpdate`, `onDeliveryUpdated`, `onUserAdded`, `onUserUpdate`, `onUserUpdated` */
filters?: Array<string>;
/** The absolute url the pre-event webhook request should be sent to. */
preWebhookUrl?: string;
Expand Down Expand Up @@ -212,7 +212,7 @@ export class WebhookInstance {
accountSid: string;
method: WebhookMethod;
/**
* The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`
* The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onMessageAdd`, `onMessageUpdate`, `onMessageRemove`, `onConversationUpdated`, `onConversationRemoved`, `onConversationAdd`, `onConversationAdded`, `onConversationRemove`, `onConversationUpdate`, `onConversationStateUpdated`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`, `onParticipantAdd`, `onParticipantRemove`, `onParticipantUpdate`, `onDeliveryUpdated`, `onUserAdded`, `onUserUpdate`, `onUserUpdated`
*/
filters: Array<string>;
/**
Expand Down
14 changes: 7 additions & 7 deletions src/rest/iam/V1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import IamBase from "../IamBase";
import Version from "../../base/Version";
import { ApiKeyListInstance } from "./v1/apiKey";
import { GetApiKeysListInstance } from "./v1/getApiKeys";
import { NewApiKeyListInstance } from "./v1/newApiKey";
import { KeyListInstance } from "./v1/key";

export default class V1 extends Version {
/**
Expand All @@ -32,8 +32,8 @@ export default class V1 extends Version {
protected _apiKey?: ApiKeyListInstance;
/** getApiKeys - { Twilio.Iam.V1.GetApiKeysListInstance } resource */
protected _getApiKeys?: GetApiKeysListInstance;
/** newApiKey - { Twilio.Iam.V1.NewApiKeyListInstance } resource */
protected _newApiKey?: NewApiKeyListInstance;
/** keys - { Twilio.Iam.V1.KeyListInstance } resource */
protected _keys?: KeyListInstance;

/** Getter for apiKey resource */
get apiKey(): ApiKeyListInstance {
Expand All @@ -47,9 +47,9 @@ export default class V1 extends Version {
return this._getApiKeys;
}

/** Getter for newApiKey resource */
get newApiKey(): NewApiKeyListInstance {
this._newApiKey = this._newApiKey || NewApiKeyListInstance(this);
return this._newApiKey;
/** Getter for keys resource */
get keys(): KeyListInstance {
this._keys = this._keys || KeyListInstance(this);
return this._keys;
}
}
44 changes: 22 additions & 22 deletions src/rest/iam/v1/newApiKey.ts → src/rest/iam/v1/key.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,41 +18,41 @@ const deserialize = require("../../../base/deserialize");
const serialize = require("../../../base/serialize");
import { isValidPathParam } from "../../../base/utility";

export type NewApiKeyKeytype = "restricted";
export type KeyKeytype = "restricted";

/**
* Options to pass to create a NewApiKeyInstance
* Options to pass to create a KeyInstance
*/
export interface NewApiKeyListInstanceCreateOptions {
export interface KeyListInstanceCreateOptions {
/** The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource. */
accountSid: string;
/** A descriptive string that you create to describe the resource. It can be up to 64 characters long. */
friendlyName?: string;
/** */
keyType?: NewApiKeyKeytype;
keyType?: KeyKeytype;
/** The \\\\`Policy\\\\` object is a collection that specifies the allowed Twilio permissions for the restricted key. For more information on the permissions available with restricted API keys, refer to the [Twilio documentation](https://www.twilio.com/docs/iam/api-keys/restricted-api-keys#permissions-available-with-restricted-api-keys). */
policy?: any;
}

export interface NewApiKeySolution {}
export interface KeySolution {}

export interface NewApiKeyListInstance {
export interface KeyListInstance {
_version: V1;
_solution: NewApiKeySolution;
_solution: KeySolution;
_uri: string;

/**
* Create a NewApiKeyInstance
* Create a KeyInstance
*
* @param params - Parameter for request
* @param callback - Callback to handle processed record
*
* @returns Resolves to processed NewApiKeyInstance
* @returns Resolves to processed KeyInstance
*/
create(
params: NewApiKeyListInstanceCreateOptions,
callback?: (error: Error | null, item?: NewApiKeyInstance) => any
): Promise<NewApiKeyInstance>;
params: KeyListInstanceCreateOptions,
callback?: (error: Error | null, item?: KeyInstance) => any
): Promise<KeyInstance>;

/**
* Provide a user-friendly representation
Expand All @@ -61,17 +61,17 @@ export interface NewApiKeyListInstance {
[inspect.custom](_depth: any, options: InspectOptions): any;
}

export function NewApiKeyListInstance(version: V1): NewApiKeyListInstance {
const instance = {} as NewApiKeyListInstance;
export function KeyListInstance(version: V1): KeyListInstance {
const instance = {} as KeyListInstance;

instance._version = version;
instance._solution = {};
instance._uri = `/Keys`;

instance.create = function create(
params: NewApiKeyListInstanceCreateOptions,
callback?: (error: Error | null, items: NewApiKeyInstance) => any
): Promise<NewApiKeyInstance> {
params: KeyListInstanceCreateOptions,
callback?: (error: Error | null, items: KeyInstance) => any
): Promise<KeyInstance> {
if (params === null || params === undefined) {
throw new Error('Required parameter "params" missing.');
}
Expand Down Expand Up @@ -102,7 +102,7 @@ export function NewApiKeyListInstance(version: V1): NewApiKeyListInstance {
});

operationPromise = operationPromise.then(
(payload) => new NewApiKeyInstance(operationVersion, payload)
(payload) => new KeyInstance(operationVersion, payload)
);

operationPromise = instance._version.setPromiseCallback(
Expand All @@ -126,9 +126,9 @@ export function NewApiKeyListInstance(version: V1): NewApiKeyListInstance {
return instance;
}

interface NewApiKeyPayload extends NewApiKeyResource {}
interface KeyPayload extends KeyResource {}

interface NewApiKeyResource {
interface KeyResource {
sid: string;
friendly_name: string;
date_created: Date;
Expand All @@ -137,8 +137,8 @@ interface NewApiKeyResource {
policy: any;
}

export class NewApiKeyInstance {
constructor(protected _version: V1, payload: NewApiKeyResource) {
export class KeyInstance {
constructor(protected _version: V1, payload: KeyResource) {
this.sid = payload.sid;
this.friendlyName = payload.friendly_name;
this.dateCreated = deserialize.rfc2822DateTime(payload.date_created);
Expand Down
9 changes: 9 additions & 0 deletions src/rest/marketplace/V1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import MarketplaceBase from "../MarketplaceBase";
import Version from "../../base/Version";
import { AvailableAddOnListInstance } from "./v1/availableAddOn";
import { InstalledAddOnListInstance } from "./v1/installedAddOn";
import { ModuleDataListInstance } from "./v1/moduleData";
import { ModuleDataManagementListInstance } from "./v1/moduleDataManagement";
import { ReferralConversionListInstance } from "./v1/referralConversion";

Expand All @@ -33,6 +34,8 @@ export default class V1 extends Version {
protected _availableAddOns?: AvailableAddOnListInstance;
/** installedAddOns - { Twilio.Marketplace.V1.InstalledAddOnListInstance } resource */
protected _installedAddOns?: InstalledAddOnListInstance;
/** moduleData - { Twilio.Marketplace.V1.ModuleDataListInstance } resource */
protected _moduleData?: ModuleDataListInstance;
/** moduleDataManagement - { Twilio.Marketplace.V1.ModuleDataManagementListInstance } resource */
protected _moduleDataManagement?: ModuleDataManagementListInstance;
/** referralConversion - { Twilio.Marketplace.V1.ReferralConversionListInstance } resource */
Expand All @@ -52,6 +55,12 @@ export default class V1 extends Version {
return this._installedAddOns;
}

/** Getter for moduleData resource */
get moduleData(): ModuleDataListInstance {
this._moduleData = this._moduleData || ModuleDataListInstance(this);
return this._moduleData;
}

/** Getter for moduleDataManagement resource */
get moduleDataManagement(): ModuleDataManagementListInstance {
this._moduleDataManagement =
Expand Down
4 changes: 2 additions & 2 deletions src/rest/marketplace/v1/availableAddOn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ interface AvailableAddOnResource {
friendly_name: string;
description: string;
pricing_type: string;
configuration_schema: any;
configuration_schema: Record<string, object>;
url: string;
links: Record<string, string>;
}
Expand Down Expand Up @@ -204,7 +204,7 @@ export class AvailableAddOnInstance {
/**
* The JSON object with the configuration that must be provided when installing a given Add-on.
*/
configurationSchema: any;
configurationSchema: Record<string, object>;
/**
* The absolute URL of the resource.
*/
Expand Down
4 changes: 2 additions & 2 deletions src/rest/marketplace/v1/installedAddOn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ interface InstalledAddOnResource {
account_sid: string;
friendly_name: string;
description: string;
configuration: any;
configuration: Record<string, object>;
unique_name: string;
date_created: Date;
date_updated: Date;
Expand Down Expand Up @@ -346,7 +346,7 @@ export class InstalledAddOnInstance {
/**
* The JSON object that represents the current configuration of installed Add-on.
*/
configuration: any;
configuration: Record<string, object>;
/**
* An application-defined string that uniquely identifies the resource.
*/
Expand Down
Loading

0 comments on commit 4b1ec09

Please sign in to comment.