Skip to content

Commit 4b1ec09

Browse files
committed
[Librarian] Regenerated @ d9b0f7b0297f064eec2f219b29fd4193559c54f3 405f363a58346c6557d4194de16d9911b797e208
1 parent 1ae2ef7 commit 4b1ec09

File tree

13 files changed

+360
-93
lines changed

13 files changed

+360
-93
lines changed

CHANGES.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
twilio-node changelog
22
=====================
33

4+
[2025-01-13] Version 5.4.2
5+
--------------------------
6+
**Messaging**
7+
- Adds validity period Default value in service resource documentation
8+
9+
410
[2025-01-09] Version 5.4.1
511
--------------------------
612
**Numbers**

src/rest/api/v2010/account/call/transcription.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export interface TranscriptionListInstanceCreateOptions {
6565
hints?: string;
6666
/** The provider will add punctuation to recognition result */
6767
enableAutomaticPunctuation?: boolean;
68-
/** 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. */
68+
/** 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 . */
6969
intelligenceService?: string;
7070
}
7171

src/rest/conversations/v1/configuration/webhook.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export type WebhookTarget = "webhook" | "flex";
2828
export interface WebhookContextUpdateOptions {
2929
/** The HTTP method to be used when sending a webhook request. */
3030
method?: string;
31-
/** The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved` */
31+
/** 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` */
3232
filters?: Array<string>;
3333
/** The absolute url the pre-event webhook request should be sent to. */
3434
preWebhookUrl?: string;
@@ -212,7 +212,7 @@ export class WebhookInstance {
212212
accountSid: string;
213213
method: WebhookMethod;
214214
/**
215-
* The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`
215+
* 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`
216216
*/
217217
filters: Array<string>;
218218
/**

src/rest/iam/V1.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import IamBase from "../IamBase";
1616
import Version from "../../base/Version";
1717
import { ApiKeyListInstance } from "./v1/apiKey";
1818
import { GetApiKeysListInstance } from "./v1/getApiKeys";
19-
import { NewApiKeyListInstance } from "./v1/newApiKey";
19+
import { KeyListInstance } from "./v1/key";
2020

2121
export default class V1 extends Version {
2222
/**
@@ -32,8 +32,8 @@ export default class V1 extends Version {
3232
protected _apiKey?: ApiKeyListInstance;
3333
/** getApiKeys - { Twilio.Iam.V1.GetApiKeysListInstance } resource */
3434
protected _getApiKeys?: GetApiKeysListInstance;
35-
/** newApiKey - { Twilio.Iam.V1.NewApiKeyListInstance } resource */
36-
protected _newApiKey?: NewApiKeyListInstance;
35+
/** keys - { Twilio.Iam.V1.KeyListInstance } resource */
36+
protected _keys?: KeyListInstance;
3737

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

50-
/** Getter for newApiKey resource */
51-
get newApiKey(): NewApiKeyListInstance {
52-
this._newApiKey = this._newApiKey || NewApiKeyListInstance(this);
53-
return this._newApiKey;
50+
/** Getter for keys resource */
51+
get keys(): KeyListInstance {
52+
this._keys = this._keys || KeyListInstance(this);
53+
return this._keys;
5454
}
5555
}

src/rest/iam/v1/newApiKey.ts src/rest/iam/v1/key.ts

+22-22
Original file line numberDiff line numberDiff line change
@@ -18,41 +18,41 @@ const deserialize = require("../../../base/deserialize");
1818
const serialize = require("../../../base/serialize");
1919
import { isValidPathParam } from "../../../base/utility";
2020

21-
export type NewApiKeyKeytype = "restricted";
21+
export type KeyKeytype = "restricted";
2222

2323
/**
24-
* Options to pass to create a NewApiKeyInstance
24+
* Options to pass to create a KeyInstance
2525
*/
26-
export interface NewApiKeyListInstanceCreateOptions {
26+
export interface KeyListInstanceCreateOptions {
2727
/** The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource. */
2828
accountSid: string;
2929
/** A descriptive string that you create to describe the resource. It can be up to 64 characters long. */
3030
friendlyName?: string;
3131
/** */
32-
keyType?: NewApiKeyKeytype;
32+
keyType?: KeyKeytype;
3333
/** 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). */
3434
policy?: any;
3535
}
3636

37-
export interface NewApiKeySolution {}
37+
export interface KeySolution {}
3838

39-
export interface NewApiKeyListInstance {
39+
export interface KeyListInstance {
4040
_version: V1;
41-
_solution: NewApiKeySolution;
41+
_solution: KeySolution;
4242
_uri: string;
4343

4444
/**
45-
* Create a NewApiKeyInstance
45+
* Create a KeyInstance
4646
*
4747
* @param params - Parameter for request
4848
* @param callback - Callback to handle processed record
4949
*
50-
* @returns Resolves to processed NewApiKeyInstance
50+
* @returns Resolves to processed KeyInstance
5151
*/
5252
create(
53-
params: NewApiKeyListInstanceCreateOptions,
54-
callback?: (error: Error | null, item?: NewApiKeyInstance) => any
55-
): Promise<NewApiKeyInstance>;
53+
params: KeyListInstanceCreateOptions,
54+
callback?: (error: Error | null, item?: KeyInstance) => any
55+
): Promise<KeyInstance>;
5656

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

64-
export function NewApiKeyListInstance(version: V1): NewApiKeyListInstance {
65-
const instance = {} as NewApiKeyListInstance;
64+
export function KeyListInstance(version: V1): KeyListInstance {
65+
const instance = {} as KeyListInstance;
6666

6767
instance._version = version;
6868
instance._solution = {};
6969
instance._uri = `/Keys`;
7070

7171
instance.create = function create(
72-
params: NewApiKeyListInstanceCreateOptions,
73-
callback?: (error: Error | null, items: NewApiKeyInstance) => any
74-
): Promise<NewApiKeyInstance> {
72+
params: KeyListInstanceCreateOptions,
73+
callback?: (error: Error | null, items: KeyInstance) => any
74+
): Promise<KeyInstance> {
7575
if (params === null || params === undefined) {
7676
throw new Error('Required parameter "params" missing.');
7777
}
@@ -102,7 +102,7 @@ export function NewApiKeyListInstance(version: V1): NewApiKeyListInstance {
102102
});
103103

104104
operationPromise = operationPromise.then(
105-
(payload) => new NewApiKeyInstance(operationVersion, payload)
105+
(payload) => new KeyInstance(operationVersion, payload)
106106
);
107107

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

129-
interface NewApiKeyPayload extends NewApiKeyResource {}
129+
interface KeyPayload extends KeyResource {}
130130

131-
interface NewApiKeyResource {
131+
interface KeyResource {
132132
sid: string;
133133
friendly_name: string;
134134
date_created: Date;
@@ -137,8 +137,8 @@ interface NewApiKeyResource {
137137
policy: any;
138138
}
139139

140-
export class NewApiKeyInstance {
141-
constructor(protected _version: V1, payload: NewApiKeyResource) {
140+
export class KeyInstance {
141+
constructor(protected _version: V1, payload: KeyResource) {
142142
this.sid = payload.sid;
143143
this.friendlyName = payload.friendly_name;
144144
this.dateCreated = deserialize.rfc2822DateTime(payload.date_created);

src/rest/marketplace/V1.ts

+9
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import MarketplaceBase from "../MarketplaceBase";
1616
import Version from "../../base/Version";
1717
import { AvailableAddOnListInstance } from "./v1/availableAddOn";
1818
import { InstalledAddOnListInstance } from "./v1/installedAddOn";
19+
import { ModuleDataListInstance } from "./v1/moduleData";
1920
import { ModuleDataManagementListInstance } from "./v1/moduleDataManagement";
2021
import { ReferralConversionListInstance } from "./v1/referralConversion";
2122

@@ -33,6 +34,8 @@ export default class V1 extends Version {
3334
protected _availableAddOns?: AvailableAddOnListInstance;
3435
/** installedAddOns - { Twilio.Marketplace.V1.InstalledAddOnListInstance } resource */
3536
protected _installedAddOns?: InstalledAddOnListInstance;
37+
/** moduleData - { Twilio.Marketplace.V1.ModuleDataListInstance } resource */
38+
protected _moduleData?: ModuleDataListInstance;
3639
/** moduleDataManagement - { Twilio.Marketplace.V1.ModuleDataManagementListInstance } resource */
3740
protected _moduleDataManagement?: ModuleDataManagementListInstance;
3841
/** referralConversion - { Twilio.Marketplace.V1.ReferralConversionListInstance } resource */
@@ -52,6 +55,12 @@ export default class V1 extends Version {
5255
return this._installedAddOns;
5356
}
5457

58+
/** Getter for moduleData resource */
59+
get moduleData(): ModuleDataListInstance {
60+
this._moduleData = this._moduleData || ModuleDataListInstance(this);
61+
return this._moduleData;
62+
}
63+
5564
/** Getter for moduleDataManagement resource */
5665
get moduleDataManagement(): ModuleDataManagementListInstance {
5766
this._moduleDataManagement =

src/rest/marketplace/v1/availableAddOn.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ interface AvailableAddOnResource {
160160
friendly_name: string;
161161
description: string;
162162
pricing_type: string;
163-
configuration_schema: any;
163+
configuration_schema: Record<string, object>;
164164
url: string;
165165
links: Record<string, string>;
166166
}
@@ -204,7 +204,7 @@ export class AvailableAddOnInstance {
204204
/**
205205
* The JSON object with the configuration that must be provided when installing a given Add-on.
206206
*/
207-
configurationSchema: any;
207+
configurationSchema: Record<string, object>;
208208
/**
209209
* The absolute URL of the resource.
210210
*/

src/rest/marketplace/v1/installedAddOn.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ interface InstalledAddOnResource {
296296
account_sid: string;
297297
friendly_name: string;
298298
description: string;
299-
configuration: any;
299+
configuration: Record<string, object>;
300300
unique_name: string;
301301
date_created: Date;
302302
date_updated: Date;
@@ -346,7 +346,7 @@ export class InstalledAddOnInstance {
346346
/**
347347
* The JSON object that represents the current configuration of installed Add-on.
348348
*/
349-
configuration: any;
349+
configuration: Record<string, object>;
350350
/**
351351
* An application-defined string that uniquely identifies the resource.
352352
*/

0 commit comments

Comments
 (0)