diff --git a/lib/rest/api/v2010/account/authorizedConnectApp.d.ts b/lib/rest/api/v2010/account/authorizedConnectApp.d.ts index 8d56cc5af1..f32e8fa8ed 100644 --- a/lib/rest/api/v2010/account/authorizedConnectApp.d.ts +++ b/lib/rest/api/v2010/account/authorizedConnectApp.d.ts @@ -157,7 +157,7 @@ interface AuthorizedConnectAppResource { connect_app_sid: string; date_created: Date; date_updated: Date; - permissions: string; + permissions: AuthorizedConnectAppPermission[]; uri: string; } @@ -215,7 +215,7 @@ declare class AuthorizedConnectAppInstance extends SerializableClass { * @param callback - Callback to handle processed record */ fetch(callback?: (error: Error | null, items: AuthorizedConnectAppInstance) => any): void; - permissions: string; + permissions: AuthorizedConnectAppPermission[]; /** * Provide a user-friendly representation */ diff --git a/lib/rest/api/v2010/account/call.d.ts b/lib/rest/api/v2010/account/call.d.ts index 64880e8d35..7b51d40883 100644 --- a/lib/rest/api/v2010/account/call.d.ts +++ b/lib/rest/api/v2010/account/call.d.ts @@ -174,13 +174,13 @@ interface CallListInstanceCreateOptions { record?: boolean; recordingChannels?: string; recordingStatusCallback?: string; - recordingStatusCallbackEvent?: string[]; + recordingStatusCallbackEvent?: string | string[]; recordingStatusCallbackMethod?: string; sendDigits?: string; sipAuthPassword?: string; sipAuthUsername?: string; statusCallback?: string; - statusCallbackEvent?: string[]; + statusCallbackEvent?: string | string[]; statusCallbackMethod?: string; timeout?: number; to: string; diff --git a/lib/rest/api/v2010/account/call/feedback.d.ts b/lib/rest/api/v2010/account/call/feedback.d.ts index 887187585e..d0d08e898b 100644 --- a/lib/rest/api/v2010/account/call/feedback.d.ts +++ b/lib/rest/api/v2010/account/call/feedback.d.ts @@ -29,7 +29,7 @@ declare function FeedbackList(version: V2010, accountSid: string, callSid: strin * @property qualityScore - The call quality expressed as an integer from 1 to 5 */ interface FeedbackInstanceCreateOptions { - issue?: string[]; + issue?: FeedbackIssues | FeedbackIssues[]; qualityScore: number; } @@ -40,7 +40,7 @@ interface FeedbackInstanceCreateOptions { * @property qualityScore - The call quality expressed as an integer from 1 to 5 */ interface FeedbackInstanceUpdateOptions { - issue?: string[]; + issue?: FeedbackIssues | FeedbackIssues[]; qualityScore: number; } @@ -66,7 +66,7 @@ interface FeedbackResource { account_sid: string; date_created: Date; date_updated: Date; - issues: string; + issues: FeedbackIssues[]; quality_score: number; sid: string; } @@ -142,7 +142,7 @@ declare class FeedbackInstance extends SerializableClass { * @param callback - Callback to handle processed record */ fetch(callback?: (error: Error | null, items: FeedbackInstance) => any): void; - issues: string; + issues: FeedbackIssues[]; qualityScore: number; sid: string; /** diff --git a/lib/rest/api/v2010/account/call/feedbackSummary.d.ts b/lib/rest/api/v2010/account/call/feedbackSummary.d.ts index e103408145..1b52fc7f2c 100644 --- a/lib/rest/api/v2010/account/call/feedbackSummary.d.ts +++ b/lib/rest/api/v2010/account/call/feedbackSummary.d.ts @@ -73,7 +73,7 @@ interface FeedbackSummaryResource { date_updated: Date; end_date: Date; include_subaccounts: boolean; - issues: string; + issues: string[]; quality_score_average: number; quality_score_median: number; quality_score_standard_deviation: number; @@ -141,7 +141,7 @@ declare class FeedbackSummaryInstance extends SerializableClass { */ fetch(callback?: (error: Error | null, items: FeedbackSummaryInstance) => any): void; includeSubaccounts: boolean; - issues: string; + issues: string[]; qualityScoreAverage: number; qualityScoreMedian: number; qualityScoreStandardDeviation: number; diff --git a/lib/rest/api/v2010/account/call/recording.d.ts b/lib/rest/api/v2010/account/call/recording.d.ts index cb0854e5f9..7aefa03ea6 100644 --- a/lib/rest/api/v2010/account/call/recording.d.ts +++ b/lib/rest/api/v2010/account/call/recording.d.ts @@ -121,7 +121,7 @@ interface RecordingListInstance { interface RecordingListInstanceCreateOptions { recordingChannels?: string; recordingStatusCallback?: string; - recordingStatusCallbackEvent?: string[]; + recordingStatusCallbackEvent?: string | string[]; recordingStatusCallbackMethod?: string; trim?: string; } diff --git a/lib/rest/api/v2010/account/conference/participant.d.ts b/lib/rest/api/v2010/account/conference/participant.d.ts index 34037caab5..465bffd2d3 100644 --- a/lib/rest/api/v2010/account/conference/participant.d.ts +++ b/lib/rest/api/v2010/account/conference/participant.d.ts @@ -169,10 +169,10 @@ interface ParticipantListInstanceCreateOptions { coaching?: boolean; conferenceRecord?: string; conferenceRecordingStatusCallback?: string; - conferenceRecordingStatusCallbackEvent?: string[]; + conferenceRecordingStatusCallbackEvent?: string | string[]; conferenceRecordingStatusCallbackMethod?: string; conferenceStatusCallback?: string; - conferenceStatusCallbackEvent?: string[]; + conferenceStatusCallbackEvent?: string | string[]; conferenceStatusCallbackMethod?: string; conferenceTrim?: string; earlyMedia?: boolean; @@ -183,14 +183,14 @@ interface ParticipantListInstanceCreateOptions { record?: boolean; recordingChannels?: string; recordingStatusCallback?: string; - recordingStatusCallbackEvent?: string[]; + recordingStatusCallbackEvent?: string | string[]; recordingStatusCallbackMethod?: string; region?: string; sipAuthPassword?: string; sipAuthUsername?: string; startConferenceOnEnter?: boolean; statusCallback?: string; - statusCallbackEvent?: string[]; + statusCallbackEvent?: string | string[]; statusCallbackMethod?: string; timeout?: number; to: string; diff --git a/lib/rest/api/v2010/account/connectApp.d.ts b/lib/rest/api/v2010/account/connectApp.d.ts index 484cdd3432..8b2ad74a35 100644 --- a/lib/rest/api/v2010/account/connectApp.d.ts +++ b/lib/rest/api/v2010/account/connectApp.d.ts @@ -41,7 +41,7 @@ interface ConnectAppInstanceUpdateOptions { description?: string; friendlyName?: string; homepageUrl?: string; - permissions?: string[]; + permissions?: ConnectAppPermission | ConnectAppPermission[]; } interface ConnectAppListInstance { @@ -180,7 +180,7 @@ interface ConnectAppResource { description: string; friendly_name: string; homepage_url: string; - permissions: string; + permissions: ConnectAppPermission[]; sid: string; uri: string; } @@ -252,7 +252,7 @@ declare class ConnectAppInstance extends SerializableClass { fetch(callback?: (error: Error | null, items: ConnectAppInstance) => any): void; friendlyName: string; homepageUrl: string; - permissions: string; + permissions: ConnectAppPermission[]; /** * remove a ConnectAppInstance * diff --git a/lib/rest/api/v2010/account/message.d.ts b/lib/rest/api/v2010/account/message.d.ts index 0afae94c08..a34a0f84fb 100644 --- a/lib/rest/api/v2010/account/message.d.ts +++ b/lib/rest/api/v2010/account/message.d.ts @@ -138,7 +138,7 @@ interface MessageListInstanceCreateOptions { forceDelivery?: boolean; from?: string; maxPrice?: number; - mediaUrl?: string[]; + mediaUrl?: string | string[]; messagingServiceSid?: string; provideFeedback?: boolean; smartEncoded?: boolean; diff --git a/lib/rest/api/v2010/account/token.d.ts b/lib/rest/api/v2010/account/token.d.ts index dbb85d73a8..04d6156cea 100644 --- a/lib/rest/api/v2010/account/token.d.ts +++ b/lib/rest/api/v2010/account/token.d.ts @@ -48,7 +48,7 @@ interface TokenResource { account_sid: string; date_created: Date; date_updated: Date; - ice_servers: string; + ice_servers: string[]; password: string; ttl: string; username: string; @@ -72,7 +72,7 @@ declare class TokenInstance extends SerializableClass { accountSid: string; dateCreated: Date; dateUpdated: Date; - iceServers: string; + iceServers: string[]; password: string; /** * Provide a user-friendly representation diff --git a/lib/rest/chat/v1/service.d.ts b/lib/rest/chat/v1/service.d.ts index 9f4293050f..5a55b297c7 100644 --- a/lib/rest/chat/v1/service.d.ts +++ b/lib/rest/chat/v1/service.d.ts @@ -115,7 +115,7 @@ interface ServiceInstanceUpdateOptions { reachabilityEnabled?: boolean; readStatusEnabled?: boolean; typingIndicatorTimeout?: number; - webhookFilters?: string[]; + webhookFilters?: string | string[]; webhookMethod?: string; webhooks?: { onMessageSend?: { @@ -347,7 +347,7 @@ interface ServiceResource { sid: string; typing_indicator_timeout: number; url: string; - webhook_filters: string; + webhook_filters: string[]; webhook_method: string; webhooks: object; } @@ -458,7 +458,7 @@ declare class ServiceInstance extends SerializableClass { * Access the users */ users(): UserListInstance; - webhookFilters: string; + webhookFilters: string[]; webhookMethod: string; webhooks: object; } diff --git a/lib/rest/chat/v1/service/channel.d.ts b/lib/rest/chat/v1/service/channel.d.ts index b500c356c7..d537385455 100644 --- a/lib/rest/chat/v1/service/channel.d.ts +++ b/lib/rest/chat/v1/service/channel.d.ts @@ -153,7 +153,7 @@ interface ChannelListInstanceEachOptions { done?: Function; limit?: number; pageSize?: number; - type?: string[]; + type?: ChannelChannelType | ChannelChannelType[]; } /** @@ -174,7 +174,7 @@ interface ChannelListInstanceEachOptions { interface ChannelListInstanceOptions { limit?: number; pageSize?: number; - type?: string[]; + type?: ChannelChannelType | ChannelChannelType[]; } /** @@ -189,7 +189,7 @@ interface ChannelListInstancePageOptions { pageNumber?: number; pageSize?: number; pageToken?: string; - type?: string[]; + type?: ChannelChannelType | ChannelChannelType[]; } interface ChannelPayload extends ChannelResource, Page.TwilioResponsePayload { diff --git a/lib/rest/chat/v1/service/channel/invite.d.ts b/lib/rest/chat/v1/service/channel/invite.d.ts index 0bb1e20b86..c8f64c201b 100644 --- a/lib/rest/chat/v1/service/channel/invite.d.ts +++ b/lib/rest/chat/v1/service/channel/invite.d.ts @@ -127,7 +127,7 @@ interface InviteListInstanceCreateOptions { interface InviteListInstanceEachOptions { callback?: (item: InviteInstance, done: (err?: Error) => void) => void; done?: Function; - identity?: string[]; + identity?: string | string[]; limit?: number; pageSize?: number; } @@ -148,7 +148,7 @@ interface InviteListInstanceEachOptions { * efficient page size, i.e. min(limit, 1000) */ interface InviteListInstanceOptions { - identity?: string[]; + identity?: string | string[]; limit?: number; pageSize?: number; } @@ -162,7 +162,7 @@ interface InviteListInstanceOptions { * @property pageToken - PageToken provided by the API */ interface InviteListInstancePageOptions { - identity?: string[]; + identity?: string | string[]; pageNumber?: number; pageSize?: number; pageToken?: string; diff --git a/lib/rest/chat/v1/service/channel/member.d.ts b/lib/rest/chat/v1/service/channel/member.d.ts index 8ae0cc78c6..e86a44f6b7 100644 --- a/lib/rest/chat/v1/service/channel/member.d.ts +++ b/lib/rest/chat/v1/service/channel/member.d.ts @@ -138,7 +138,7 @@ interface MemberListInstanceCreateOptions { interface MemberListInstanceEachOptions { callback?: (item: MemberInstance, done: (err?: Error) => void) => void; done?: Function; - identity?: string[]; + identity?: string | string[]; limit?: number; pageSize?: number; } @@ -159,7 +159,7 @@ interface MemberListInstanceEachOptions { * efficient page size, i.e. min(limit, 1000) */ interface MemberListInstanceOptions { - identity?: string[]; + identity?: string | string[]; limit?: number; pageSize?: number; } @@ -173,7 +173,7 @@ interface MemberListInstanceOptions { * @property pageToken - PageToken provided by the API */ interface MemberListInstancePageOptions { - identity?: string[]; + identity?: string | string[]; pageNumber?: number; pageSize?: number; pageToken?: string; diff --git a/lib/rest/chat/v1/service/role.d.ts b/lib/rest/chat/v1/service/role.d.ts index c8e7e137f8..fa78bd8463 100644 --- a/lib/rest/chat/v1/service/role.d.ts +++ b/lib/rest/chat/v1/service/role.d.ts @@ -27,7 +27,7 @@ declare function RoleList(version: V1, serviceSid: string): RoleListInstance; * @property permission - A permission the role should have */ interface RoleInstanceUpdateOptions { - permission: string[]; + permission: string | string[]; } interface RoleListInstance { @@ -113,7 +113,7 @@ interface RoleListInstance { */ interface RoleListInstanceCreateOptions { friendlyName: string; - permission: string[]; + permission: string | string[]; type: RoleRoleType; } @@ -182,7 +182,7 @@ interface RoleResource { date_created: Date; date_updated: Date; friendly_name: string; - permissions: string; + permissions: string[]; service_sid: string; sid: string; type: RoleRoleType; @@ -252,7 +252,7 @@ declare class RoleInstance extends SerializableClass { */ fetch(callback?: (error: Error | null, items: RoleInstance) => any): void; friendlyName: string; - permissions: string; + permissions: string[]; /** * remove a RoleInstance * diff --git a/lib/rest/chat/v2/service.d.ts b/lib/rest/chat/v2/service.d.ts index d8bc6644a3..1e23aa5f39 100644 --- a/lib/rest/chat/v2/service.d.ts +++ b/lib/rest/chat/v2/service.d.ts @@ -105,7 +105,7 @@ interface ServiceInstanceUpdateOptions { reachabilityEnabled?: boolean; readStatusEnabled?: boolean; typingIndicatorTimeout?: number; - webhookFilters?: string[]; + webhookFilters?: string | string[]; webhookMethod?: string; } @@ -274,7 +274,7 @@ interface ServiceResource { sid: string; typing_indicator_timeout: number; url: string; - webhook_filters: string; + webhook_filters: string[]; webhook_method: string; } @@ -392,7 +392,7 @@ declare class ServiceInstance extends SerializableClass { * Access the users */ users(): UserListInstance; - webhookFilters: string; + webhookFilters: string[]; webhookMethod: string; } diff --git a/lib/rest/chat/v2/service/binding.d.ts b/lib/rest/chat/v2/service/binding.d.ts index 71381459d5..5af7685f23 100644 --- a/lib/rest/chat/v2/service/binding.d.ts +++ b/lib/rest/chat/v2/service/binding.d.ts @@ -109,10 +109,10 @@ interface BindingListInstance { * page size, i.e. min(limit, 1000) */ interface BindingListInstanceEachOptions { - bindingType?: string[]; + bindingType?: BindingBindingType | BindingBindingType[]; callback?: (item: BindingInstance, done: (err?: Error) => void) => void; done?: Function; - identity?: string[]; + identity?: string | string[]; limit?: number; pageSize?: number; } @@ -134,8 +134,8 @@ interface BindingListInstanceEachOptions { * efficient page size, i.e. min(limit, 1000) */ interface BindingListInstanceOptions { - bindingType?: string[]; - identity?: string[]; + bindingType?: BindingBindingType | BindingBindingType[]; + identity?: string | string[]; limit?: number; pageSize?: number; } @@ -150,8 +150,8 @@ interface BindingListInstanceOptions { * @property pageToken - PageToken provided by the API */ interface BindingListInstancePageOptions { - bindingType?: string[]; - identity?: string[]; + bindingType?: BindingBindingType | BindingBindingType[]; + identity?: string | string[]; pageNumber?: number; pageSize?: number; pageToken?: string; @@ -169,7 +169,7 @@ interface BindingResource { endpoint: string; identity: string; links: string; - message_types: string; + message_types: string[]; service_sid: string; sid: string; url: string; @@ -235,7 +235,7 @@ declare class BindingInstance extends SerializableClass { fetch(callback?: (error: Error | null, items: BindingInstance) => any): void; identity: string; links: string; - messageTypes: string; + messageTypes: string[]; /** * remove a BindingInstance * diff --git a/lib/rest/chat/v2/service/channel.d.ts b/lib/rest/chat/v2/service/channel.d.ts index f6f65065a5..3f20374f84 100644 --- a/lib/rest/chat/v2/service/channel.d.ts +++ b/lib/rest/chat/v2/service/channel.d.ts @@ -169,7 +169,7 @@ interface ChannelListInstanceEachOptions { done?: Function; limit?: number; pageSize?: number; - type?: string[]; + type?: ChannelChannelType | ChannelChannelType[]; } /** @@ -190,7 +190,7 @@ interface ChannelListInstanceEachOptions { interface ChannelListInstanceOptions { limit?: number; pageSize?: number; - type?: string[]; + type?: ChannelChannelType | ChannelChannelType[]; } /** @@ -205,7 +205,7 @@ interface ChannelListInstancePageOptions { pageNumber?: number; pageSize?: number; pageToken?: string; - type?: string[]; + type?: ChannelChannelType | ChannelChannelType[]; } interface ChannelPayload extends ChannelResource, Page.TwilioResponsePayload { diff --git a/lib/rest/chat/v2/service/channel/invite.d.ts b/lib/rest/chat/v2/service/channel/invite.d.ts index e1972fc439..fcb2e35a6f 100644 --- a/lib/rest/chat/v2/service/channel/invite.d.ts +++ b/lib/rest/chat/v2/service/channel/invite.d.ts @@ -127,7 +127,7 @@ interface InviteListInstanceCreateOptions { interface InviteListInstanceEachOptions { callback?: (item: InviteInstance, done: (err?: Error) => void) => void; done?: Function; - identity?: string[]; + identity?: string | string[]; limit?: number; pageSize?: number; } @@ -148,7 +148,7 @@ interface InviteListInstanceEachOptions { * efficient page size, i.e. min(limit, 1000) */ interface InviteListInstanceOptions { - identity?: string[]; + identity?: string | string[]; limit?: number; pageSize?: number; } @@ -162,7 +162,7 @@ interface InviteListInstanceOptions { * @property pageToken - PageToken provided by the API */ interface InviteListInstancePageOptions { - identity?: string[]; + identity?: string | string[]; pageNumber?: number; pageSize?: number; pageToken?: string; diff --git a/lib/rest/chat/v2/service/channel/member.d.ts b/lib/rest/chat/v2/service/channel/member.d.ts index 74a7143ff3..803fd563e0 100644 --- a/lib/rest/chat/v2/service/channel/member.d.ts +++ b/lib/rest/chat/v2/service/channel/member.d.ts @@ -158,7 +158,7 @@ interface MemberListInstanceCreateOptions { interface MemberListInstanceEachOptions { callback?: (item: MemberInstance, done: (err?: Error) => void) => void; done?: Function; - identity?: string[]; + identity?: string | string[]; limit?: number; pageSize?: number; } @@ -179,7 +179,7 @@ interface MemberListInstanceEachOptions { * efficient page size, i.e. min(limit, 1000) */ interface MemberListInstanceOptions { - identity?: string[]; + identity?: string | string[]; limit?: number; pageSize?: number; } @@ -193,7 +193,7 @@ interface MemberListInstanceOptions { * @property pageToken - PageToken provided by the API */ interface MemberListInstancePageOptions { - identity?: string[]; + identity?: string | string[]; pageNumber?: number; pageSize?: number; pageToken?: string; diff --git a/lib/rest/chat/v2/service/channel/webhook.d.ts b/lib/rest/chat/v2/service/channel/webhook.d.ts index 959b4958b4..2876669cc3 100644 --- a/lib/rest/chat/v2/service/channel/webhook.d.ts +++ b/lib/rest/chat/v2/service/channel/webhook.d.ts @@ -38,8 +38,8 @@ interface WebhookInstanceUpdateOptions { configuration?: { url?: string; method?: WebhookMethod; - filters?: string[]; - triggers?: string[]; + filters?: string | string[]; + triggers?: string | string[]; flowSid?: string; retryCount?: number; }; @@ -134,8 +134,8 @@ interface WebhookListInstanceCreateOptions { configuration?: { url?: string; method?: WebhookMethod; - filters?: string[]; - triggers?: string[]; + filters?: string | string[]; + triggers?: string | string[]; flowSid?: string; retryCount?: number; }; diff --git a/lib/rest/chat/v2/service/role.d.ts b/lib/rest/chat/v2/service/role.d.ts index 3273a3faf0..73ac9a2ce6 100644 --- a/lib/rest/chat/v2/service/role.d.ts +++ b/lib/rest/chat/v2/service/role.d.ts @@ -27,7 +27,7 @@ declare function RoleList(version: V2, serviceSid: string): RoleListInstance; * @property permission - A permission the role should have */ interface RoleInstanceUpdateOptions { - permission: string[]; + permission: string | string[]; } interface RoleListInstance { @@ -113,7 +113,7 @@ interface RoleListInstance { */ interface RoleListInstanceCreateOptions { friendlyName: string; - permission: string[]; + permission: string | string[]; type: RoleRoleType; } @@ -182,7 +182,7 @@ interface RoleResource { date_created: Date; date_updated: Date; friendly_name: string; - permissions: string; + permissions: string[]; service_sid: string; sid: string; type: RoleRoleType; @@ -252,7 +252,7 @@ declare class RoleInstance extends SerializableClass { */ fetch(callback?: (error: Error | null, items: RoleInstance) => any): void; friendlyName: string; - permissions: string; + permissions: string[]; /** * remove a RoleInstance * diff --git a/lib/rest/chat/v2/service/user/userBinding.d.ts b/lib/rest/chat/v2/service/user/userBinding.d.ts index 88dd4ac7e7..1c0c58ad51 100644 --- a/lib/rest/chat/v2/service/user/userBinding.d.ts +++ b/lib/rest/chat/v2/service/user/userBinding.d.ts @@ -109,7 +109,7 @@ interface UserBindingListInstance { * page size, i.e. min(limit, 1000) */ interface UserBindingListInstanceEachOptions { - bindingType?: string[]; + bindingType?: UserBindingBindingType | UserBindingBindingType[]; callback?: (item: UserBindingInstance, done: (err?: Error) => void) => void; done?: Function; limit?: number; @@ -132,7 +132,7 @@ interface UserBindingListInstanceEachOptions { * efficient page size, i.e. min(limit, 1000) */ interface UserBindingListInstanceOptions { - bindingType?: string[]; + bindingType?: UserBindingBindingType | UserBindingBindingType[]; limit?: number; pageSize?: number; } @@ -146,7 +146,7 @@ interface UserBindingListInstanceOptions { * @property pageToken - PageToken provided by the API */ interface UserBindingListInstancePageOptions { - bindingType?: string[]; + bindingType?: UserBindingBindingType | UserBindingBindingType[]; pageNumber?: number; pageSize?: number; pageToken?: string; @@ -163,7 +163,7 @@ interface UserBindingResource { date_updated: Date; endpoint: string; identity: string; - message_types: string; + message_types: string[]; service_sid: string; sid: string; url: string; @@ -232,7 +232,7 @@ declare class UserBindingInstance extends SerializableClass { */ fetch(callback?: (error: Error | null, items: UserBindingInstance) => any): void; identity: string; - messageTypes: string; + messageTypes: string[]; /** * remove a UserBindingInstance * diff --git a/lib/rest/conversations/v1/conversation/webhook.d.ts b/lib/rest/conversations/v1/conversation/webhook.d.ts index 47bd95a602..741af37801 100644 --- a/lib/rest/conversations/v1/conversation/webhook.d.ts +++ b/lib/rest/conversations/v1/conversation/webhook.d.ts @@ -40,8 +40,8 @@ interface WebhookInstanceUpdateOptions { configuration?: { url?: string; method?: WebhookMethod; - filters?: string[]; - triggers?: string[]; + filters?: string | string[]; + triggers?: string | string[]; flowSid?: string; }; } @@ -135,8 +135,8 @@ interface WebhookListInstanceCreateOptions { configuration?: { url?: string; method?: WebhookMethod; - filters?: string[]; - triggers?: string[]; + filters?: string | string[]; + triggers?: string | string[]; flowSid?: string; replayAfter?: number; }; diff --git a/lib/rest/conversations/v1/webhook.d.ts b/lib/rest/conversations/v1/webhook.d.ts index d35a2655da..6becc744aa 100644 --- a/lib/rest/conversations/v1/webhook.d.ts +++ b/lib/rest/conversations/v1/webhook.d.ts @@ -36,7 +36,7 @@ declare function WebhookList(version: V1): WebhookListInstance; * @property target - The routing target of the webhook. */ interface WebhookInstanceUpdateOptions { - filters?: string[]; + filters?: string | string[]; method?: string; postWebhookUrl?: string; preWebhookUrl?: string; @@ -63,7 +63,7 @@ interface WebhookPayload extends WebhookResource, Page.TwilioResponsePayload { interface WebhookResource { account_sid: string; - filters: string; + filters: string[]; method: WebhookMethod; post_webhook_url: string; pre_webhook_url: string; @@ -128,7 +128,7 @@ declare class WebhookInstance extends SerializableClass { * @param callback - Callback to handle processed record */ fetch(callback?: (error: Error | null, items: WebhookInstance) => any): void; - filters: string; + filters: string[]; method: WebhookMethod; postWebhookUrl: string; preWebhookUrl: string; diff --git a/lib/rest/flexApi/v1/configuration.d.ts b/lib/rest/flexApi/v1/configuration.d.ts index 510a3d3e98..37636115f6 100644 --- a/lib/rest/flexApi/v1/configuration.d.ts +++ b/lib/rest/flexApi/v1/configuration.d.ts @@ -60,7 +60,7 @@ interface ConfigurationResource { date_created: Date; date_updated: Date; features_enabled: string; - integrations: string; + integrations: string[]; messaging_service_instance_sid: string; outbound_call_flows: object; plugin_service_attributes: object; @@ -71,12 +71,12 @@ interface ConfigurationResource { service_version: string; status: ConfigurationStatus; taskrouter_offline_activity_sid: string; - taskrouter_skills: string; + taskrouter_skills: string[]; taskrouter_target_taskqueue_sid: string; taskrouter_target_workflow_sid: string; - taskrouter_taskqueues: string; - taskrouter_worker_attributes: object; - taskrouter_worker_channels: object; + taskrouter_taskqueues: string[]; + taskrouter_worker_attributes: string; + taskrouter_worker_channels: string; taskrouter_workspace_sid: string; ui_attributes: object; ui_language: string; @@ -158,7 +158,7 @@ declare class ConfigurationInstance extends SerializableClass { * @param callback - Callback to handle processed record */ fetch(opts?: ConfigurationInstanceFetchOptions, callback?: (error: Error | null, items: ConfigurationInstance) => any): void; - integrations: string; + integrations: string[]; messagingServiceInstanceSid: string; outboundCallFlows: object; pluginServiceAttributes: object; @@ -169,12 +169,12 @@ declare class ConfigurationInstance extends SerializableClass { serviceVersion: string; status: ConfigurationStatus; taskrouterOfflineActivitySid: string; - taskrouterSkills: string; + taskrouterSkills: string[]; taskrouterTargetTaskqueueSid: string; taskrouterTargetWorkflowSid: string; - taskrouterTaskqueues: string; - taskrouterWorkerAttributes: object; - taskrouterWorkerChannels: object; + taskrouterTaskqueues: string[]; + taskrouterWorkerAttributes: string; + taskrouterWorkerChannels: string; taskrouterWorkspaceSid: string; /** * Provide a user-friendly representation diff --git a/lib/rest/insights/v1/summary.d.ts b/lib/rest/insights/v1/summary.d.ts index 5f5f0950a7..8e0268672a 100644 --- a/lib/rest/insights/v1/summary.d.ts +++ b/lib/rest/insights/v1/summary.d.ts @@ -73,8 +73,8 @@ interface CallSummaryResource { sdk_edge: object; sip_edge: object; start_time: Date; - tags: string; - to: object; + tags: string[]; + to: string; url: string; } @@ -147,8 +147,8 @@ declare class CallSummaryInstance extends SerializableClass { sdkEdge: object; sipEdge: object; startTime: Date; - tags: string; - to: object; + tags: string[]; + to: string; /** * Provide a user-friendly representation */ diff --git a/lib/rest/ipMessaging/v1/service.d.ts b/lib/rest/ipMessaging/v1/service.d.ts index 9f4293050f..5a55b297c7 100644 --- a/lib/rest/ipMessaging/v1/service.d.ts +++ b/lib/rest/ipMessaging/v1/service.d.ts @@ -115,7 +115,7 @@ interface ServiceInstanceUpdateOptions { reachabilityEnabled?: boolean; readStatusEnabled?: boolean; typingIndicatorTimeout?: number; - webhookFilters?: string[]; + webhookFilters?: string | string[]; webhookMethod?: string; webhooks?: { onMessageSend?: { @@ -347,7 +347,7 @@ interface ServiceResource { sid: string; typing_indicator_timeout: number; url: string; - webhook_filters: string; + webhook_filters: string[]; webhook_method: string; webhooks: object; } @@ -458,7 +458,7 @@ declare class ServiceInstance extends SerializableClass { * Access the users */ users(): UserListInstance; - webhookFilters: string; + webhookFilters: string[]; webhookMethod: string; webhooks: object; } diff --git a/lib/rest/ipMessaging/v1/service/channel.d.ts b/lib/rest/ipMessaging/v1/service/channel.d.ts index b500c356c7..d537385455 100644 --- a/lib/rest/ipMessaging/v1/service/channel.d.ts +++ b/lib/rest/ipMessaging/v1/service/channel.d.ts @@ -153,7 +153,7 @@ interface ChannelListInstanceEachOptions { done?: Function; limit?: number; pageSize?: number; - type?: string[]; + type?: ChannelChannelType | ChannelChannelType[]; } /** @@ -174,7 +174,7 @@ interface ChannelListInstanceEachOptions { interface ChannelListInstanceOptions { limit?: number; pageSize?: number; - type?: string[]; + type?: ChannelChannelType | ChannelChannelType[]; } /** @@ -189,7 +189,7 @@ interface ChannelListInstancePageOptions { pageNumber?: number; pageSize?: number; pageToken?: string; - type?: string[]; + type?: ChannelChannelType | ChannelChannelType[]; } interface ChannelPayload extends ChannelResource, Page.TwilioResponsePayload { diff --git a/lib/rest/ipMessaging/v1/service/channel/invite.d.ts b/lib/rest/ipMessaging/v1/service/channel/invite.d.ts index 0bb1e20b86..c8f64c201b 100644 --- a/lib/rest/ipMessaging/v1/service/channel/invite.d.ts +++ b/lib/rest/ipMessaging/v1/service/channel/invite.d.ts @@ -127,7 +127,7 @@ interface InviteListInstanceCreateOptions { interface InviteListInstanceEachOptions { callback?: (item: InviteInstance, done: (err?: Error) => void) => void; done?: Function; - identity?: string[]; + identity?: string | string[]; limit?: number; pageSize?: number; } @@ -148,7 +148,7 @@ interface InviteListInstanceEachOptions { * efficient page size, i.e. min(limit, 1000) */ interface InviteListInstanceOptions { - identity?: string[]; + identity?: string | string[]; limit?: number; pageSize?: number; } @@ -162,7 +162,7 @@ interface InviteListInstanceOptions { * @property pageToken - PageToken provided by the API */ interface InviteListInstancePageOptions { - identity?: string[]; + identity?: string | string[]; pageNumber?: number; pageSize?: number; pageToken?: string; diff --git a/lib/rest/ipMessaging/v1/service/channel/member.d.ts b/lib/rest/ipMessaging/v1/service/channel/member.d.ts index 8ae0cc78c6..e86a44f6b7 100644 --- a/lib/rest/ipMessaging/v1/service/channel/member.d.ts +++ b/lib/rest/ipMessaging/v1/service/channel/member.d.ts @@ -138,7 +138,7 @@ interface MemberListInstanceCreateOptions { interface MemberListInstanceEachOptions { callback?: (item: MemberInstance, done: (err?: Error) => void) => void; done?: Function; - identity?: string[]; + identity?: string | string[]; limit?: number; pageSize?: number; } @@ -159,7 +159,7 @@ interface MemberListInstanceEachOptions { * efficient page size, i.e. min(limit, 1000) */ interface MemberListInstanceOptions { - identity?: string[]; + identity?: string | string[]; limit?: number; pageSize?: number; } @@ -173,7 +173,7 @@ interface MemberListInstanceOptions { * @property pageToken - PageToken provided by the API */ interface MemberListInstancePageOptions { - identity?: string[]; + identity?: string | string[]; pageNumber?: number; pageSize?: number; pageToken?: string; diff --git a/lib/rest/ipMessaging/v1/service/role.d.ts b/lib/rest/ipMessaging/v1/service/role.d.ts index c8e7e137f8..fa78bd8463 100644 --- a/lib/rest/ipMessaging/v1/service/role.d.ts +++ b/lib/rest/ipMessaging/v1/service/role.d.ts @@ -27,7 +27,7 @@ declare function RoleList(version: V1, serviceSid: string): RoleListInstance; * @property permission - A permission the role should have */ interface RoleInstanceUpdateOptions { - permission: string[]; + permission: string | string[]; } interface RoleListInstance { @@ -113,7 +113,7 @@ interface RoleListInstance { */ interface RoleListInstanceCreateOptions { friendlyName: string; - permission: string[]; + permission: string | string[]; type: RoleRoleType; } @@ -182,7 +182,7 @@ interface RoleResource { date_created: Date; date_updated: Date; friendly_name: string; - permissions: string; + permissions: string[]; service_sid: string; sid: string; type: RoleRoleType; @@ -252,7 +252,7 @@ declare class RoleInstance extends SerializableClass { */ fetch(callback?: (error: Error | null, items: RoleInstance) => any): void; friendlyName: string; - permissions: string; + permissions: string[]; /** * remove a RoleInstance * diff --git a/lib/rest/ipMessaging/v2/service.d.ts b/lib/rest/ipMessaging/v2/service.d.ts index d8bc6644a3..1e23aa5f39 100644 --- a/lib/rest/ipMessaging/v2/service.d.ts +++ b/lib/rest/ipMessaging/v2/service.d.ts @@ -105,7 +105,7 @@ interface ServiceInstanceUpdateOptions { reachabilityEnabled?: boolean; readStatusEnabled?: boolean; typingIndicatorTimeout?: number; - webhookFilters?: string[]; + webhookFilters?: string | string[]; webhookMethod?: string; } @@ -274,7 +274,7 @@ interface ServiceResource { sid: string; typing_indicator_timeout: number; url: string; - webhook_filters: string; + webhook_filters: string[]; webhook_method: string; } @@ -392,7 +392,7 @@ declare class ServiceInstance extends SerializableClass { * Access the users */ users(): UserListInstance; - webhookFilters: string; + webhookFilters: string[]; webhookMethod: string; } diff --git a/lib/rest/ipMessaging/v2/service/binding.d.ts b/lib/rest/ipMessaging/v2/service/binding.d.ts index 71381459d5..5af7685f23 100644 --- a/lib/rest/ipMessaging/v2/service/binding.d.ts +++ b/lib/rest/ipMessaging/v2/service/binding.d.ts @@ -109,10 +109,10 @@ interface BindingListInstance { * page size, i.e. min(limit, 1000) */ interface BindingListInstanceEachOptions { - bindingType?: string[]; + bindingType?: BindingBindingType | BindingBindingType[]; callback?: (item: BindingInstance, done: (err?: Error) => void) => void; done?: Function; - identity?: string[]; + identity?: string | string[]; limit?: number; pageSize?: number; } @@ -134,8 +134,8 @@ interface BindingListInstanceEachOptions { * efficient page size, i.e. min(limit, 1000) */ interface BindingListInstanceOptions { - bindingType?: string[]; - identity?: string[]; + bindingType?: BindingBindingType | BindingBindingType[]; + identity?: string | string[]; limit?: number; pageSize?: number; } @@ -150,8 +150,8 @@ interface BindingListInstanceOptions { * @property pageToken - PageToken provided by the API */ interface BindingListInstancePageOptions { - bindingType?: string[]; - identity?: string[]; + bindingType?: BindingBindingType | BindingBindingType[]; + identity?: string | string[]; pageNumber?: number; pageSize?: number; pageToken?: string; @@ -169,7 +169,7 @@ interface BindingResource { endpoint: string; identity: string; links: string; - message_types: string; + message_types: string[]; service_sid: string; sid: string; url: string; @@ -235,7 +235,7 @@ declare class BindingInstance extends SerializableClass { fetch(callback?: (error: Error | null, items: BindingInstance) => any): void; identity: string; links: string; - messageTypes: string; + messageTypes: string[]; /** * remove a BindingInstance * diff --git a/lib/rest/ipMessaging/v2/service/channel.d.ts b/lib/rest/ipMessaging/v2/service/channel.d.ts index f6f65065a5..3f20374f84 100644 --- a/lib/rest/ipMessaging/v2/service/channel.d.ts +++ b/lib/rest/ipMessaging/v2/service/channel.d.ts @@ -169,7 +169,7 @@ interface ChannelListInstanceEachOptions { done?: Function; limit?: number; pageSize?: number; - type?: string[]; + type?: ChannelChannelType | ChannelChannelType[]; } /** @@ -190,7 +190,7 @@ interface ChannelListInstanceEachOptions { interface ChannelListInstanceOptions { limit?: number; pageSize?: number; - type?: string[]; + type?: ChannelChannelType | ChannelChannelType[]; } /** @@ -205,7 +205,7 @@ interface ChannelListInstancePageOptions { pageNumber?: number; pageSize?: number; pageToken?: string; - type?: string[]; + type?: ChannelChannelType | ChannelChannelType[]; } interface ChannelPayload extends ChannelResource, Page.TwilioResponsePayload { diff --git a/lib/rest/ipMessaging/v2/service/channel/invite.d.ts b/lib/rest/ipMessaging/v2/service/channel/invite.d.ts index e1972fc439..fcb2e35a6f 100644 --- a/lib/rest/ipMessaging/v2/service/channel/invite.d.ts +++ b/lib/rest/ipMessaging/v2/service/channel/invite.d.ts @@ -127,7 +127,7 @@ interface InviteListInstanceCreateOptions { interface InviteListInstanceEachOptions { callback?: (item: InviteInstance, done: (err?: Error) => void) => void; done?: Function; - identity?: string[]; + identity?: string | string[]; limit?: number; pageSize?: number; } @@ -148,7 +148,7 @@ interface InviteListInstanceEachOptions { * efficient page size, i.e. min(limit, 1000) */ interface InviteListInstanceOptions { - identity?: string[]; + identity?: string | string[]; limit?: number; pageSize?: number; } @@ -162,7 +162,7 @@ interface InviteListInstanceOptions { * @property pageToken - PageToken provided by the API */ interface InviteListInstancePageOptions { - identity?: string[]; + identity?: string | string[]; pageNumber?: number; pageSize?: number; pageToken?: string; diff --git a/lib/rest/ipMessaging/v2/service/channel/member.d.ts b/lib/rest/ipMessaging/v2/service/channel/member.d.ts index 74a7143ff3..803fd563e0 100644 --- a/lib/rest/ipMessaging/v2/service/channel/member.d.ts +++ b/lib/rest/ipMessaging/v2/service/channel/member.d.ts @@ -158,7 +158,7 @@ interface MemberListInstanceCreateOptions { interface MemberListInstanceEachOptions { callback?: (item: MemberInstance, done: (err?: Error) => void) => void; done?: Function; - identity?: string[]; + identity?: string | string[]; limit?: number; pageSize?: number; } @@ -179,7 +179,7 @@ interface MemberListInstanceEachOptions { * efficient page size, i.e. min(limit, 1000) */ interface MemberListInstanceOptions { - identity?: string[]; + identity?: string | string[]; limit?: number; pageSize?: number; } @@ -193,7 +193,7 @@ interface MemberListInstanceOptions { * @property pageToken - PageToken provided by the API */ interface MemberListInstancePageOptions { - identity?: string[]; + identity?: string | string[]; pageNumber?: number; pageSize?: number; pageToken?: string; diff --git a/lib/rest/ipMessaging/v2/service/channel/webhook.d.ts b/lib/rest/ipMessaging/v2/service/channel/webhook.d.ts index 959b4958b4..2876669cc3 100644 --- a/lib/rest/ipMessaging/v2/service/channel/webhook.d.ts +++ b/lib/rest/ipMessaging/v2/service/channel/webhook.d.ts @@ -38,8 +38,8 @@ interface WebhookInstanceUpdateOptions { configuration?: { url?: string; method?: WebhookMethod; - filters?: string[]; - triggers?: string[]; + filters?: string | string[]; + triggers?: string | string[]; flowSid?: string; retryCount?: number; }; @@ -134,8 +134,8 @@ interface WebhookListInstanceCreateOptions { configuration?: { url?: string; method?: WebhookMethod; - filters?: string[]; - triggers?: string[]; + filters?: string | string[]; + triggers?: string | string[]; flowSid?: string; retryCount?: number; }; diff --git a/lib/rest/ipMessaging/v2/service/role.d.ts b/lib/rest/ipMessaging/v2/service/role.d.ts index 3273a3faf0..73ac9a2ce6 100644 --- a/lib/rest/ipMessaging/v2/service/role.d.ts +++ b/lib/rest/ipMessaging/v2/service/role.d.ts @@ -27,7 +27,7 @@ declare function RoleList(version: V2, serviceSid: string): RoleListInstance; * @property permission - A permission the role should have */ interface RoleInstanceUpdateOptions { - permission: string[]; + permission: string | string[]; } interface RoleListInstance { @@ -113,7 +113,7 @@ interface RoleListInstance { */ interface RoleListInstanceCreateOptions { friendlyName: string; - permission: string[]; + permission: string | string[]; type: RoleRoleType; } @@ -182,7 +182,7 @@ interface RoleResource { date_created: Date; date_updated: Date; friendly_name: string; - permissions: string; + permissions: string[]; service_sid: string; sid: string; type: RoleRoleType; @@ -252,7 +252,7 @@ declare class RoleInstance extends SerializableClass { */ fetch(callback?: (error: Error | null, items: RoleInstance) => any): void; friendlyName: string; - permissions: string; + permissions: string[]; /** * remove a RoleInstance * diff --git a/lib/rest/ipMessaging/v2/service/user/userBinding.d.ts b/lib/rest/ipMessaging/v2/service/user/userBinding.d.ts index 88dd4ac7e7..1c0c58ad51 100644 --- a/lib/rest/ipMessaging/v2/service/user/userBinding.d.ts +++ b/lib/rest/ipMessaging/v2/service/user/userBinding.d.ts @@ -109,7 +109,7 @@ interface UserBindingListInstance { * page size, i.e. min(limit, 1000) */ interface UserBindingListInstanceEachOptions { - bindingType?: string[]; + bindingType?: UserBindingBindingType | UserBindingBindingType[]; callback?: (item: UserBindingInstance, done: (err?: Error) => void) => void; done?: Function; limit?: number; @@ -132,7 +132,7 @@ interface UserBindingListInstanceEachOptions { * efficient page size, i.e. min(limit, 1000) */ interface UserBindingListInstanceOptions { - bindingType?: string[]; + bindingType?: UserBindingBindingType | UserBindingBindingType[]; limit?: number; pageSize?: number; } @@ -146,7 +146,7 @@ interface UserBindingListInstanceOptions { * @property pageToken - PageToken provided by the API */ interface UserBindingListInstancePageOptions { - bindingType?: string[]; + bindingType?: UserBindingBindingType | UserBindingBindingType[]; pageNumber?: number; pageSize?: number; pageToken?: string; @@ -163,7 +163,7 @@ interface UserBindingResource { date_updated: Date; endpoint: string; identity: string; - message_types: string; + message_types: string[]; service_sid: string; sid: string; url: string; @@ -232,7 +232,7 @@ declare class UserBindingInstance extends SerializableClass { */ fetch(callback?: (error: Error | null, items: UserBindingInstance) => any): void; identity: string; - messageTypes: string; + messageTypes: string[]; /** * remove a UserBindingInstance * diff --git a/lib/rest/lookups/v1/phoneNumber.d.ts b/lib/rest/lookups/v1/phoneNumber.d.ts index 210eea2046..6d2f7f7fb2 100644 --- a/lib/rest/lookups/v1/phoneNumber.d.ts +++ b/lib/rest/lookups/v1/phoneNumber.d.ts @@ -29,10 +29,10 @@ declare function PhoneNumberList(version: V1): PhoneNumberListInstance; * @property type - The type of information to return */ interface PhoneNumberInstanceFetchOptions { - addOns?: string[]; + addOns?: string | string[]; addOnsData?: object; countryCode?: string; - type?: string[]; + type?: string | string[]; } interface PhoneNumberListInstance { diff --git a/lib/rest/messaging/v1/service/alphaSender.d.ts b/lib/rest/messaging/v1/service/alphaSender.d.ts index 01165da6a8..e52525eeed 100644 --- a/lib/rest/messaging/v1/service/alphaSender.d.ts +++ b/lib/rest/messaging/v1/service/alphaSender.d.ts @@ -167,7 +167,7 @@ interface AlphaSenderPayload extends AlphaSenderResource, Page.TwilioResponsePay interface AlphaSenderResource { account_sid: string; alpha_sender: string; - capabilities: string; + capabilities: string[]; date_created: Date; date_updated: Date; service_sid: string; @@ -229,7 +229,7 @@ declare class AlphaSenderInstance extends SerializableClass { private _proxy: AlphaSenderContext; accountSid: string; alphaSender: string; - capabilities: string; + capabilities: string[]; dateCreated: Date; dateUpdated: Date; /** diff --git a/lib/rest/messaging/v1/service/phoneNumber.d.ts b/lib/rest/messaging/v1/service/phoneNumber.d.ts index 9891a17f8b..f97a9ccef4 100644 --- a/lib/rest/messaging/v1/service/phoneNumber.d.ts +++ b/lib/rest/messaging/v1/service/phoneNumber.d.ts @@ -166,7 +166,7 @@ interface PhoneNumberPayload extends PhoneNumberResource, Page.TwilioResponsePay interface PhoneNumberResource { account_sid: string; - capabilities: string; + capabilities: string[]; country_code: string; date_created: Date; date_updated: Date; @@ -229,7 +229,7 @@ declare class PhoneNumberInstance extends SerializableClass { private _proxy: PhoneNumberContext; accountSid: string; - capabilities: string; + capabilities: string[]; countryCode: string; dateCreated: Date; dateUpdated: Date; diff --git a/lib/rest/messaging/v1/service/shortCode.d.ts b/lib/rest/messaging/v1/service/shortCode.d.ts index aca7a46151..f3a7c88e3e 100644 --- a/lib/rest/messaging/v1/service/shortCode.d.ts +++ b/lib/rest/messaging/v1/service/shortCode.d.ts @@ -166,7 +166,7 @@ interface ShortCodePayload extends ShortCodeResource, Page.TwilioResponsePayload interface ShortCodeResource { account_sid: string; - capabilities: string; + capabilities: string[]; country_code: string; date_created: Date; date_updated: Date; @@ -229,7 +229,7 @@ declare class ShortCodeInstance extends SerializableClass { private _proxy: ShortCodeContext; accountSid: string; - capabilities: string; + capabilities: string[]; countryCode: string; dateCreated: Date; dateUpdated: Date; diff --git a/lib/rest/messaging/v1/session/webhook.d.ts b/lib/rest/messaging/v1/session/webhook.d.ts index e2ad0e041f..1b7cfa8918 100644 --- a/lib/rest/messaging/v1/session/webhook.d.ts +++ b/lib/rest/messaging/v1/session/webhook.d.ts @@ -43,8 +43,8 @@ interface WebhookInstanceUpdateOptions { configuration?: { url?: string; method?: WebhookMethod; - filters?: string[]; - triggers?: string[]; + filters?: string | string[]; + triggers?: string | string[]; flowSid?: string; retryCount?: number; bufferMessages?: boolean; @@ -144,8 +144,8 @@ interface WebhookListInstanceCreateOptions { configuration?: { url?: string; method?: WebhookMethod; - filters?: string[]; - triggers?: string[]; + filters?: string | string[]; + triggers?: string | string[]; flowSid?: string; retryCount?: number; replayAfter?: number; diff --git a/lib/rest/messaging/v1/webhook.d.ts b/lib/rest/messaging/v1/webhook.d.ts index 39e7a01498..3f9e3f4dee 100644 --- a/lib/rest/messaging/v1/webhook.d.ts +++ b/lib/rest/messaging/v1/webhook.d.ts @@ -41,7 +41,7 @@ interface WebhookInstanceUpdateOptions { preWebhookRetryCount?: number; preWebhookUrl?: string; target?: WebhookTarget; - webhookFilters?: string[]; + webhookFilters?: string | string[]; webhookMethod?: string; } @@ -72,7 +72,7 @@ interface WebhookResource { service_sid: string; target: WebhookTarget; url: string; - webhook_filters: string; + webhook_filters: string[]; webhook_method: string; } @@ -151,7 +151,7 @@ declare class WebhookInstance extends SerializableClass { */ update(opts?: WebhookInstanceUpdateOptions, callback?: (error: Error | null, items: WebhookInstance) => any): void; url: string; - webhookFilters: string; + webhookFilters: string[]; webhookMethod: string; } diff --git a/lib/rest/notify/v1/service/binding.d.ts b/lib/rest/notify/v1/service/binding.d.ts index 4ee0fb4e10..f2dba9e769 100644 --- a/lib/rest/notify/v1/service/binding.d.ts +++ b/lib/rest/notify/v1/service/binding.d.ts @@ -116,7 +116,7 @@ interface BindingListInstanceCreateOptions { endpoint?: string; identity: string; notificationProtocolVersion?: string; - tag?: string[]; + tag?: string | string[]; } /** @@ -145,11 +145,11 @@ interface BindingListInstanceEachOptions { callback?: (item: BindingInstance, done: (err?: Error) => void) => void; done?: Function; endDate?: Date; - identity?: string[]; + identity?: string | string[]; limit?: number; pageSize?: number; startDate?: Date; - tag?: string[]; + tag?: string | string[]; } /** @@ -172,11 +172,11 @@ interface BindingListInstanceEachOptions { */ interface BindingListInstanceOptions { endDate?: Date; - identity?: string[]; + identity?: string | string[]; limit?: number; pageSize?: number; startDate?: Date; - tag?: string[]; + tag?: string | string[]; } /** @@ -192,12 +192,12 @@ interface BindingListInstanceOptions { */ interface BindingListInstancePageOptions { endDate?: Date; - identity?: string[]; + identity?: string | string[]; pageNumber?: number; pageSize?: number; pageToken?: string; startDate?: Date; - tag?: string[]; + tag?: string | string[]; } interface BindingPayload extends BindingResource, Page.TwilioResponsePayload { @@ -216,7 +216,7 @@ interface BindingResource { notification_protocol_version: string; service_sid: string; sid: string; - tags: string; + tags: string[]; url: string; } @@ -296,7 +296,7 @@ declare class BindingInstance extends SerializableClass { remove(callback?: (error: Error | null, items: BindingInstance) => any): void; serviceSid: string; sid: string; - tags: string; + tags: string[]; /** * Provide a user-friendly representation */ diff --git a/lib/rest/notify/v1/service/notification.d.ts b/lib/rest/notify/v1/service/notification.d.ts index 8b4dc63b28..615aca4a34 100644 --- a/lib/rest/notify/v1/service/notification.d.ts +++ b/lib/rest/notify/v1/service/notification.d.ts @@ -64,18 +64,18 @@ interface NotificationListInstanceCreateOptions { alexa?: object; apn?: object; body?: string; - data?: object; - facebookMessenger?: object; - fcm?: object; - gcm?: object; - identity?: string[]; + data?: string; + facebookMessenger?: string; + fcm?: string; + gcm?: string; + identity?: string | string[]; priority?: NotificationPriority; - segment?: string[]; - sms?: object; + segment?: string | string[]; + sms?: string; sound?: string; - tag?: string[]; + tag?: string | string[]; title?: string; - toBinding?: string[]; + toBinding?: string | string[]; ttl?: number; } @@ -90,17 +90,17 @@ interface NotificationResource { body: string; data: object; date_created: Date; - facebook_messenger: object; - fcm: object; - gcm: object; - identities: string; + facebook_messenger: string; + fcm: string; + gcm: string; + identities: string[]; priority: NotificationPriority; - segments: string; + segments: string[]; service_sid: string; sid: string; sms: object; sound: string; - tags: string; + tags: string[]; title: string; ttl: number; } @@ -130,17 +130,17 @@ declare class NotificationInstance extends SerializableClass { body: string; data: object; dateCreated: Date; - facebookMessenger: object; - fcm: object; - gcm: object; - identities: string; + facebookMessenger: string; + fcm: string; + gcm: string; + identities: string[]; priority: NotificationPriority; - segments: string; + segments: string[]; serviceSid: string; sid: string; sms: object; sound: string; - tags: string; + tags: string[]; title: string; /** * Provide a user-friendly representation diff --git a/lib/rest/preview/hosted_numbers/authorizationDocument.d.ts b/lib/rest/preview/hosted_numbers/authorizationDocument.d.ts index 7ae0275db0..db6e8d1d99 100644 --- a/lib/rest/preview/hosted_numbers/authorizationDocument.d.ts +++ b/lib/rest/preview/hosted_numbers/authorizationDocument.d.ts @@ -39,11 +39,11 @@ declare function AuthorizationDocumentList(version: HostedNumbers): Authorizatio */ interface AuthorizationDocumentInstanceUpdateOptions { addressSid?: string; - ccEmails?: string[]; + ccEmails?: string | string[]; contactPhoneNumber?: string; contactTitle?: string; email?: string; - hostedNumberOrderSids?: string[]; + hostedNumberOrderSids?: string | string[]; status?: AuthorizationDocumentStatus; } @@ -134,11 +134,11 @@ interface AuthorizationDocumentListInstance { */ interface AuthorizationDocumentListInstanceCreateOptions { addressSid: string; - ccEmails?: string[]; + ccEmails?: string | string[]; contactPhoneNumber: string; contactTitle: string; email: string; - hostedNumberOrderSids: string[]; + hostedNumberOrderSids: string | string[]; } /** @@ -215,7 +215,7 @@ interface AuthorizationDocumentPayload extends AuthorizationDocumentResource, Pa interface AuthorizationDocumentResource { address_sid: string; - cc_emails: string; + cc_emails: string[]; date_created: Date; date_updated: Date; email: string; @@ -279,7 +279,7 @@ declare class AuthorizationDocumentInstance extends SerializableClass { private _proxy: AuthorizationDocumentContext; addressSid: string; - ccEmails: string; + ccEmails: string[]; dateCreated: Date; dateUpdated: Date; /** diff --git a/lib/rest/preview/hosted_numbers/authorizationDocument/dependentHostedNumberOrder.d.ts b/lib/rest/preview/hosted_numbers/authorizationDocument/dependentHostedNumberOrder.d.ts index ed11f52ea0..14f9c8f8ed 100644 --- a/lib/rest/preview/hosted_numbers/authorizationDocument/dependentHostedNumberOrder.d.ts +++ b/lib/rest/preview/hosted_numbers/authorizationDocument/dependentHostedNumberOrder.d.ts @@ -180,7 +180,7 @@ interface DependentHostedNumberOrderResource { address_sid: string; call_delay: number; capabilities: string; - cc_emails: string; + cc_emails: string[]; date_created: Date; date_updated: Date; email: string; @@ -194,7 +194,7 @@ interface DependentHostedNumberOrderResource { status: DependentHostedNumberOrderStatus; unique_name: string; verification_attempts: number; - verification_call_sids: string; + verification_call_sids: string[]; verification_code: string; verification_document_sid: string; verification_type: DependentHostedNumberOrderVerificationType; @@ -223,7 +223,7 @@ declare class DependentHostedNumberOrderInstance extends SerializableClass { addressSid: string; callDelay: number; capabilities: string; - ccEmails: string; + ccEmails: string[]; dateCreated: Date; dateUpdated: Date; email: string; @@ -241,7 +241,7 @@ declare class DependentHostedNumberOrderInstance extends SerializableClass { toJSON(): any; uniqueName: string; verificationAttempts: number; - verificationCallSids: string; + verificationCallSids: string[]; verificationCode: string; verificationDocumentSid: string; verificationType: DependentHostedNumberOrderVerificationType; diff --git a/lib/rest/preview/hosted_numbers/hostedNumberOrder.d.ts b/lib/rest/preview/hosted_numbers/hostedNumberOrder.d.ts index 1bf43ed3d3..6dcc63e55d 100644 --- a/lib/rest/preview/hosted_numbers/hostedNumberOrder.d.ts +++ b/lib/rest/preview/hosted_numbers/hostedNumberOrder.d.ts @@ -42,7 +42,7 @@ declare function HostedNumberOrderList(version: HostedNumbers): HostedNumberOrde */ interface HostedNumberOrderInstanceUpdateOptions { callDelay?: number; - ccEmails?: string[]; + ccEmails?: string | string[]; email?: string; extension?: string; friendlyName?: string; @@ -151,7 +151,7 @@ interface HostedNumberOrderListInstance { interface HostedNumberOrderListInstanceCreateOptions { accountSid?: string; addressSid?: string; - ccEmails?: string[]; + ccEmails?: string | string[]; email?: string; friendlyName?: string; phoneNumber: string; @@ -263,7 +263,7 @@ interface HostedNumberOrderResource { address_sid: string; call_delay: number; capabilities: string; - cc_emails: string; + cc_emails: string[]; date_created: Date; date_updated: Date; email: string; @@ -278,7 +278,7 @@ interface HostedNumberOrderResource { unique_name: string; url: string; verification_attempts: number; - verification_call_sids: string; + verification_call_sids: string[]; verification_code: string; verification_document_sid: string; verification_type: HostedNumberOrderVerificationType; @@ -346,7 +346,7 @@ declare class HostedNumberOrderInstance extends SerializableClass { addressSid: string; callDelay: number; capabilities: string; - ccEmails: string; + ccEmails: string[]; dateCreated: Date; dateUpdated: Date; email: string; @@ -384,7 +384,7 @@ declare class HostedNumberOrderInstance extends SerializableClass { update(opts?: HostedNumberOrderInstanceUpdateOptions, callback?: (error: Error | null, items: HostedNumberOrderInstance) => any): void; url: string; verificationAttempts: number; - verificationCallSids: string; + verificationCallSids: string[]; verificationCode: string; verificationDocumentSid: string; verificationType: HostedNumberOrderVerificationType; diff --git a/lib/rest/preview/trusted_comms/phoneCall.d.ts b/lib/rest/preview/trusted_comms/phoneCall.d.ts index 1e33e90641..1435126d89 100644 --- a/lib/rest/preview/trusted_comms/phoneCall.d.ts +++ b/lib/rest/preview/trusted_comms/phoneCall.d.ts @@ -83,13 +83,13 @@ interface PhoneCallListInstanceCreateOptions { record?: boolean; recordingChannels?: string; recordingStatusCallback?: string; - recordingStatusCallbackEvent?: string[]; + recordingStatusCallbackEvent?: string | string[]; recordingStatusCallbackMethod?: string; sendDigits?: string; sipAuthPassword?: string; sipAuthUsername?: string; statusCallback?: string; - statusCallbackEvent?: string[]; + statusCallbackEvent?: string | string[]; statusCallbackMethod?: string; timeout?: number; to: string; diff --git a/lib/rest/preview/wireless/ratePlan.d.ts b/lib/rest/preview/wireless/ratePlan.d.ts index d009d80984..c3475a1963 100644 --- a/lib/rest/preview/wireless/ratePlan.d.ts +++ b/lib/rest/preview/wireless/ratePlan.d.ts @@ -127,7 +127,7 @@ interface RatePlanListInstanceCreateOptions { dataLimit?: number; dataMetering?: string; friendlyName?: string; - internationalRoaming?: string[]; + internationalRoaming?: string | string[]; messagingEnabled?: boolean; nationalRoamingEnabled?: boolean; uniqueName?: string; @@ -202,7 +202,7 @@ interface RatePlanResource { date_created: Date; date_updated: Date; friendly_name: string; - international_roaming: string; + international_roaming: string[]; messaging_enabled: boolean; national_roaming_enabled: boolean; sid: string; @@ -282,7 +282,7 @@ declare class RatePlanInstance extends SerializableClass { */ fetch(callback?: (error: Error | null, items: RatePlanInstance) => any): void; friendlyName: string; - internationalRoaming: string; + internationalRoaming: string[]; messagingEnabled: boolean; nationalRoamingEnabled: boolean; /** diff --git a/lib/rest/pricing/v1/messaging/country.d.ts b/lib/rest/pricing/v1/messaging/country.d.ts index aabb5c02d5..b1dacb2060 100644 --- a/lib/rest/pricing/v1/messaging/country.d.ts +++ b/lib/rest/pricing/v1/messaging/country.d.ts @@ -146,9 +146,9 @@ interface CountryPayload extends CountryResource, Page.TwilioResponsePayload { interface CountryResource { country: string; - inbound_sms_prices?: string; + inbound_sms_prices?: string[]; iso_country: string; - outbound_sms_prices?: string; + outbound_sms_prices?: string[]; price_unit?: string; url: string; } @@ -197,9 +197,9 @@ declare class CountryInstance extends SerializableClass { * @param callback - Callback to handle processed record */ fetch(callback?: (error: Error | null, items: CountryInstance) => any): void; - inboundSmsPrices: string; + inboundSmsPrices: string[]; isoCountry: string; - outboundSmsPrices: string; + outboundSmsPrices: string[]; priceUnit: string; /** * Provide a user-friendly representation diff --git a/lib/rest/pricing/v1/phoneNumber/country.d.ts b/lib/rest/pricing/v1/phoneNumber/country.d.ts index 715d6b9fcf..1029e13487 100644 --- a/lib/rest/pricing/v1/phoneNumber/country.d.ts +++ b/lib/rest/pricing/v1/phoneNumber/country.d.ts @@ -147,7 +147,7 @@ interface CountryPayload extends CountryResource, Page.TwilioResponsePayload { interface CountryResource { country: string; iso_country: string; - phone_number_prices?: string; + phone_number_prices?: string[]; price_unit?: string; url: string; } @@ -197,7 +197,7 @@ declare class CountryInstance extends SerializableClass { */ fetch(callback?: (error: Error | null, items: CountryInstance) => any): void; isoCountry: string; - phoneNumberPrices: string; + phoneNumberPrices: string[]; priceUnit: string; /** * Provide a user-friendly representation diff --git a/lib/rest/pricing/v1/voice/country.d.ts b/lib/rest/pricing/v1/voice/country.d.ts index a4449462ae..2da16ff752 100644 --- a/lib/rest/pricing/v1/voice/country.d.ts +++ b/lib/rest/pricing/v1/voice/country.d.ts @@ -146,9 +146,9 @@ interface CountryPayload extends CountryResource, Page.TwilioResponsePayload { interface CountryResource { country: string; - inbound_call_prices?: string; + inbound_call_prices?: string[]; iso_country: string; - outbound_prefix_prices?: string; + outbound_prefix_prices?: string[]; price_unit?: string; url: string; } @@ -197,9 +197,9 @@ declare class CountryInstance extends SerializableClass { * @param callback - Callback to handle processed record */ fetch(callback?: (error: Error | null, items: CountryInstance) => any): void; - inboundCallPrices: string; + inboundCallPrices: string[]; isoCountry: string; - outboundPrefixPrices: string; + outboundPrefixPrices: string[]; priceUnit: string; /** * Provide a user-friendly representation diff --git a/lib/rest/pricing/v2/voice/country.d.ts b/lib/rest/pricing/v2/voice/country.d.ts index 54ff2c4edf..b460ba891c 100644 --- a/lib/rest/pricing/v2/voice/country.d.ts +++ b/lib/rest/pricing/v2/voice/country.d.ts @@ -146,9 +146,9 @@ interface CountryPayload extends CountryResource, Page.TwilioResponsePayload { interface CountryResource { country: string; - inbound_call_prices?: string; + inbound_call_prices?: string[]; iso_country: string; - outbound_prefix_prices?: string; + outbound_prefix_prices?: string[]; price_unit?: string; url: string; } @@ -197,9 +197,9 @@ declare class CountryInstance extends SerializableClass { * @param callback - Callback to handle processed record */ fetch(callback?: (error: Error | null, items: CountryInstance) => any): void; - inboundCallPrices: string; + inboundCallPrices: string[]; isoCountry: string; - outboundPrefixPrices: string; + outboundPrefixPrices: string[]; priceUnit: string; /** * Provide a user-friendly representation diff --git a/lib/rest/pricing/v2/voice/number.d.ts b/lib/rest/pricing/v2/voice/number.d.ts index b4b6e2e5d4..958e94cc31 100644 --- a/lib/rest/pricing/v2/voice/number.d.ts +++ b/lib/rest/pricing/v2/voice/number.d.ts @@ -52,7 +52,7 @@ interface NumberResource { inbound_call_price: string; iso_country: string; origination_number: string; - outbound_call_prices: string; + outbound_call_prices: string[]; price_unit: string; url: string; } @@ -107,7 +107,7 @@ declare class NumberInstance extends SerializableClass { inboundCallPrice: string; isoCountry: string; originationNumber: string; - outboundCallPrices: string; + outboundCallPrices: string[]; priceUnit: string; /** * Provide a user-friendly representation diff --git a/lib/rest/proxy/v1/service/session.d.ts b/lib/rest/proxy/v1/service/session.d.ts index eac21489d4..c85ff30afa 100644 --- a/lib/rest/proxy/v1/service/session.d.ts +++ b/lib/rest/proxy/v1/service/session.d.ts @@ -130,7 +130,7 @@ interface SessionListInstance { interface SessionListInstanceCreateOptions { dateExpiry?: Date; mode?: SessionMode; - participants?: string[]; + participants?: string | string[]; status?: SessionStatus; ttl?: number; uniqueName?: string; diff --git a/lib/rest/proxy/v1/service/session/participant/messageInteraction.d.ts b/lib/rest/proxy/v1/service/session/participant/messageInteraction.d.ts index 046bc74804..38f018861f 100644 --- a/lib/rest/proxy/v1/service/session/participant/messageInteraction.d.ts +++ b/lib/rest/proxy/v1/service/session/participant/messageInteraction.d.ts @@ -111,7 +111,7 @@ interface MessageInteractionListInstance { */ interface MessageInteractionListInstanceCreateOptions { body?: string; - mediaUrl?: string[]; + mediaUrl?: string | string[]; } /** diff --git a/lib/rest/serverless/v1/service/build.d.ts b/lib/rest/serverless/v1/service/build.d.ts index 7558c9949e..39d11766f6 100644 --- a/lib/rest/serverless/v1/service/build.d.ts +++ b/lib/rest/serverless/v1/service/build.d.ts @@ -107,9 +107,9 @@ interface BuildListInstance { * @property functionVersions - List of Function Version Sids. */ interface BuildListInstanceCreateOptions { - assetVersions?: string[]; + assetVersions?: string | string[]; dependencies?: string; - functionVersions?: string[]; + functionVersions?: string | string[]; } /** @@ -174,11 +174,11 @@ interface BuildPayload extends BuildResource, Page.TwilioResponsePayload { interface BuildResource { account_sid: string; - asset_versions: string; + asset_versions: string[]; date_created: Date; date_updated: Date; - dependencies: string; - function_versions: string; + dependencies: string[]; + function_versions: string[]; service_sid: string; sid: string; status: BuildStatus; @@ -240,17 +240,17 @@ declare class BuildInstance extends SerializableClass { private _proxy: BuildContext; accountSid: string; - assetVersions: string; + assetVersions: string[]; dateCreated: Date; dateUpdated: Date; - dependencies: string; + dependencies: string[]; /** * fetch a BuildInstance * * @param callback - Callback to handle processed record */ fetch(callback?: (error: Error | null, items: BuildInstance) => any): void; - functionVersions: string; + functionVersions: string[]; /** * remove a BuildInstance * diff --git a/lib/rest/taskrouter/v1/workspace/task.d.ts b/lib/rest/taskrouter/v1/workspace/task.d.ts index 46bea3b99c..4c620452b0 100644 --- a/lib/rest/taskrouter/v1/workspace/task.d.ts +++ b/lib/rest/taskrouter/v1/workspace/task.d.ts @@ -159,7 +159,7 @@ interface TaskListInstanceCreateOptions { * @property workflowSid - Returns the list of Tasks that are being controlled by the Workflow with the specified Sid value. */ interface TaskListInstanceEachOptions { - assignmentStatus?: string[]; + assignmentStatus?: string | string[]; callback?: (item: TaskInstance, done: (err?: Error) => void) => void; done?: Function; evaluateTaskAttributes?: string; @@ -198,7 +198,7 @@ interface TaskListInstanceEachOptions { * @property workflowSid - Returns the list of Tasks that are being controlled by the Workflow with the specified Sid value. */ interface TaskListInstanceOptions { - assignmentStatus?: string[]; + assignmentStatus?: string | string[]; evaluateTaskAttributes?: string; hasAddons?: boolean; limit?: number; @@ -228,7 +228,7 @@ interface TaskListInstanceOptions { * @property workflowSid - Returns the list of Tasks that are being controlled by the Workflow with the specified Sid value. */ interface TaskListInstancePageOptions { - assignmentStatus?: string[]; + assignmentStatus?: string | string[]; evaluateTaskAttributes?: string; hasAddons?: boolean; ordering?: string; diff --git a/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts b/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts index ac6953ec0b..eee0dc1fed 100644 --- a/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts +++ b/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts @@ -99,13 +99,13 @@ interface ReservationInstanceUpdateOptions { conferenceRecordingStatusCallback?: string; conferenceRecordingStatusCallbackMethod?: string; conferenceStatusCallback?: string; - conferenceStatusCallbackEvent?: string[]; + conferenceStatusCallbackEvent?: ReservationConferenceEvent | ReservationConferenceEvent[]; conferenceStatusCallbackMethod?: string; conferenceTrim?: string; dequeueFrom?: string; dequeuePostWorkActivitySid?: string; dequeueRecord?: string; - dequeueStatusCallbackEvent?: string[]; + dequeueStatusCallbackEvent?: string | string[]; dequeueStatusCallbackUrl?: string; dequeueTimeout?: number; dequeueTo?: string; @@ -130,7 +130,7 @@ interface ReservationInstanceUpdateOptions { sipAuthUsername?: string; startConferenceOnEnter?: boolean; statusCallback?: string; - statusCallbackEvent?: string[]; + statusCallbackEvent?: ReservationCallStatus | ReservationCallStatus[]; statusCallbackMethod?: string; supervisor?: string; supervisorMode?: ReservationSupervisorMode; diff --git a/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueRealTimeStatistics.d.ts b/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueRealTimeStatistics.d.ts index 2d6b0076e2..d203ebc6ab 100644 --- a/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueRealTimeStatistics.d.ts +++ b/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueRealTimeStatistics.d.ts @@ -48,7 +48,7 @@ interface TaskQueueRealTimeStatisticsPayload extends TaskQueueRealTimeStatistics interface TaskQueueRealTimeStatisticsResource { account_sid: string; - activity_statistics: string; + activity_statistics: string[]; longest_task_waiting_age: number; longest_task_waiting_sid: string; task_queue_sid: string; @@ -104,7 +104,7 @@ declare class TaskQueueRealTimeStatisticsInstance extends SerializableClass { private _proxy: TaskQueueRealTimeStatisticsContext; accountSid: string; - activityStatistics: string; + activityStatistics: string[]; /** * fetch a TaskQueueRealTimeStatisticsInstance * diff --git a/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts b/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts index 4d5fdb0006..50ec370503 100644 --- a/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts +++ b/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts @@ -95,13 +95,13 @@ interface ReservationInstanceUpdateOptions { conferenceRecordingStatusCallback?: string; conferenceRecordingStatusCallbackMethod?: string; conferenceStatusCallback?: string; - conferenceStatusCallbackEvent?: string[]; + conferenceStatusCallbackEvent?: ReservationConferenceEvent | ReservationConferenceEvent[]; conferenceStatusCallbackMethod?: string; conferenceTrim?: string; dequeueFrom?: string; dequeuePostWorkActivitySid?: string; dequeueRecord?: string; - dequeueStatusCallbackEvent?: string[]; + dequeueStatusCallbackEvent?: string | string[]; dequeueStatusCallbackUrl?: string; dequeueTimeout?: number; dequeueTo?: string; @@ -126,7 +126,7 @@ interface ReservationInstanceUpdateOptions { sipAuthUsername?: string; startConferenceOnEnter?: boolean; statusCallback?: string; - statusCallbackEvent?: string[]; + statusCallbackEvent?: ReservationCallStatus | ReservationCallStatus[]; statusCallbackMethod?: string; timeout?: number; to?: string; diff --git a/lib/rest/taskrouter/v1/workspace/worker/workersCumulativeStatistics.d.ts b/lib/rest/taskrouter/v1/workspace/worker/workersCumulativeStatistics.d.ts index cf56ceaddb..012978a7a7 100644 --- a/lib/rest/taskrouter/v1/workspace/worker/workersCumulativeStatistics.d.ts +++ b/lib/rest/taskrouter/v1/workspace/worker/workersCumulativeStatistics.d.ts @@ -54,7 +54,7 @@ interface WorkersCumulativeStatisticsPayload extends WorkersCumulativeStatistics interface WorkersCumulativeStatisticsResource { account_sid: string; - activity_durations: string; + activity_durations: string[]; end_time: Date; reservations_accepted: number; reservations_canceled: number; @@ -107,7 +107,7 @@ declare class WorkersCumulativeStatisticsInstance extends SerializableClass { private _proxy: WorkersCumulativeStatisticsContext; accountSid: string; - activityDurations: string; + activityDurations: string[]; endTime: Date; /** * fetch a WorkersCumulativeStatisticsInstance diff --git a/lib/rest/taskrouter/v1/workspace/worker/workersRealTimeStatistics.d.ts b/lib/rest/taskrouter/v1/workspace/worker/workersRealTimeStatistics.d.ts index ff712391b2..1d6466fd02 100644 --- a/lib/rest/taskrouter/v1/workspace/worker/workersRealTimeStatistics.d.ts +++ b/lib/rest/taskrouter/v1/workspace/worker/workersRealTimeStatistics.d.ts @@ -47,7 +47,7 @@ interface WorkersRealTimeStatisticsPayload extends WorkersRealTimeStatisticsReso interface WorkersRealTimeStatisticsResource { account_sid: string; - activity_statistics: string; + activity_statistics: string[]; total_workers: number; url: string; workspace_sid: string; @@ -93,7 +93,7 @@ declare class WorkersRealTimeStatisticsInstance extends SerializableClass { private _proxy: WorkersRealTimeStatisticsContext; accountSid: string; - activityStatistics: string; + activityStatistics: string[]; /** * fetch a WorkersRealTimeStatisticsInstance * diff --git a/lib/rest/taskrouter/v1/workspace/workspaceRealTimeStatistics.d.ts b/lib/rest/taskrouter/v1/workspace/workspaceRealTimeStatistics.d.ts index de1837cf72..3388df5a74 100644 --- a/lib/rest/taskrouter/v1/workspace/workspaceRealTimeStatistics.d.ts +++ b/lib/rest/taskrouter/v1/workspace/workspaceRealTimeStatistics.d.ts @@ -47,7 +47,7 @@ interface WorkspaceRealTimeStatisticsPayload extends WorkspaceRealTimeStatistics interface WorkspaceRealTimeStatisticsResource { account_sid: string; - activity_statistics: string; + activity_statistics: string[]; longest_task_waiting_age: number; longest_task_waiting_sid: string; tasks_by_priority: object; @@ -98,7 +98,7 @@ declare class WorkspaceRealTimeStatisticsInstance extends SerializableClass { private _proxy: WorkspaceRealTimeStatisticsContext; accountSid: string; - activityStatistics: string; + activityStatistics: string[]; /** * fetch a WorkspaceRealTimeStatisticsInstance * diff --git a/lib/rest/trunking/v1/trunk.d.ts b/lib/rest/trunking/v1/trunk.d.ts index 0ff641fb60..84d2099947 100644 --- a/lib/rest/trunking/v1/trunk.d.ts +++ b/lib/rest/trunking/v1/trunk.d.ts @@ -209,7 +209,7 @@ interface TrunkPayload extends TrunkResource, Page.TwilioResponsePayload { interface TrunkResource { account_sid: string; auth_type: string; - auth_type_set: string; + auth_type_set: string[]; cnam_lookup_enabled: boolean; date_created: Date; date_updated: Date; @@ -281,7 +281,7 @@ declare class TrunkInstance extends SerializableClass { private _proxy: TrunkContext; accountSid: string; authType: string; - authTypeSet: string; + authTypeSet: string[]; cnamLookupEnabled: boolean; /** * Access the credentialsLists diff --git a/lib/rest/video/v1/composition.d.ts b/lib/rest/video/v1/composition.d.ts index 13ceac8675..bea68a7c42 100644 --- a/lib/rest/video/v1/composition.d.ts +++ b/lib/rest/video/v1/composition.d.ts @@ -114,8 +114,8 @@ interface CompositionListInstance { * @property videoLayout - The JSON video layout description. */ interface CompositionListInstanceCreateOptions { - audioSources?: string[]; - audioSourcesExcluded?: string[]; + audioSources?: string | string[]; + audioSourcesExcluded?: string | string[]; format?: CompositionFormat; resolution?: string; roomSid: string; @@ -211,8 +211,8 @@ interface CompositionPayload extends CompositionResource, Page.TwilioResponsePay interface CompositionResource { account_sid: string; - audio_sources: string; - audio_sources_excluded: string; + audio_sources: string[]; + audio_sources_excluded: string[]; bitrate: number; date_completed: string; date_created: Date; @@ -282,8 +282,8 @@ declare class CompositionInstance extends SerializableClass { private _proxy: CompositionContext; accountSid: string; - audioSources: string; - audioSourcesExcluded: string; + audioSources: string[]; + audioSourcesExcluded: string[]; bitrate: number; dateCompleted: string; dateCreated: Date; diff --git a/lib/rest/video/v1/compositionHook.d.ts b/lib/rest/video/v1/compositionHook.d.ts index 5aacf1ed4a..5ff3aa8b96 100644 --- a/lib/rest/video/v1/compositionHook.d.ts +++ b/lib/rest/video/v1/compositionHook.d.ts @@ -39,8 +39,8 @@ declare function CompositionHookList(version: V1): CompositionHookListInstance; * @property videoLayout - The JSON video layout description. */ interface CompositionHookInstanceUpdateOptions { - audioSources?: string[]; - audioSourcesExcluded?: string[]; + audioSources?: string | string[]; + audioSourcesExcluded?: string | string[]; enabled?: boolean; format?: CompositionHookFormat; friendlyName: string; @@ -140,8 +140,8 @@ interface CompositionHookListInstance { * @property videoLayout - The JSON video layout description. */ interface CompositionHookListInstanceCreateOptions { - audioSources?: string[]; - audioSourcesExcluded?: string[]; + audioSources?: string | string[]; + audioSourcesExcluded?: string | string[]; enabled?: boolean; format?: CompositionHookFormat; friendlyName: string; @@ -238,8 +238,8 @@ interface CompositionHookPayload extends CompositionHookResource, Page.TwilioRes interface CompositionHookResource { account_sid: string; - audio_sources: string; - audio_sources_excluded: string; + audio_sources: string[]; + audio_sources_excluded: string[]; date_created: Date; date_updated: string; enabled: boolean; @@ -313,8 +313,8 @@ declare class CompositionHookInstance extends SerializableClass { private _proxy: CompositionHookContext; accountSid: string; - audioSources: string; - audioSourcesExcluded: string; + audioSources: string[]; + audioSourcesExcluded: string[]; dateCreated: Date; dateUpdated: string; enabled: boolean; diff --git a/lib/rest/video/v1/recording.d.ts b/lib/rest/video/v1/recording.d.ts index 4310dcd336..bd038e4909 100644 --- a/lib/rest/video/v1/recording.d.ts +++ b/lib/rest/video/v1/recording.d.ts @@ -122,7 +122,7 @@ interface RecordingListInstanceEachOptions { dateCreatedAfter?: Date; dateCreatedBefore?: Date; done?: Function; - groupingSid?: string[]; + groupingSid?: string | string[]; limit?: number; mediaType?: RecordingType; pageSize?: number; @@ -153,7 +153,7 @@ interface RecordingListInstanceEachOptions { interface RecordingListInstanceOptions { dateCreatedAfter?: Date; dateCreatedBefore?: Date; - groupingSid?: string[]; + groupingSid?: string | string[]; limit?: number; mediaType?: RecordingType; pageSize?: number; @@ -177,7 +177,7 @@ interface RecordingListInstanceOptions { interface RecordingListInstancePageOptions { dateCreatedAfter?: Date; dateCreatedBefore?: Date; - groupingSid?: string[]; + groupingSid?: string | string[]; mediaType?: RecordingType; pageNumber?: number; pageSize?: number; diff --git a/lib/rest/video/v1/room.d.ts b/lib/rest/video/v1/room.d.ts index 85d2a64430..6d0e720634 100644 --- a/lib/rest/video/v1/room.d.ts +++ b/lib/rest/video/v1/room.d.ts @@ -133,7 +133,7 @@ interface RoomListInstanceCreateOptions { statusCallbackMethod?: string; type?: RoomRoomType; uniqueName?: string; - videoCodecs?: string[]; + videoCodecs?: RoomVideoCodec | RoomVideoCodec[]; } /** @@ -238,7 +238,7 @@ interface RoomResource { type: RoomRoomType; unique_name: string; url: string; - video_codecs: string; + video_codecs: RoomVideoCodec[]; } interface RoomSolution { @@ -329,7 +329,7 @@ declare class RoomInstance extends SerializableClass { */ update(opts: RoomInstanceUpdateOptions, callback?: (error: Error | null, items: RoomInstance) => any): void; url: string; - videoCodecs: string; + videoCodecs: RoomVideoCodec[]; } diff --git a/lib/rest/video/v1/room/roomParticipant/roomParticipantSubscribeRule.d.ts b/lib/rest/video/v1/room/roomParticipant/roomParticipantSubscribeRule.d.ts index 5c2a0f31cc..b00e948415 100644 --- a/lib/rest/video/v1/room/roomParticipant/roomParticipantSubscribeRule.d.ts +++ b/lib/rest/video/v1/room/roomParticipant/roomParticipantSubscribeRule.d.ts @@ -60,7 +60,7 @@ interface SubscribeRulesResource { date_updated: Date; participant_sid: string; room_sid: string; - rules: string; + rules: string[]; } interface SubscribeRulesSolution { @@ -87,7 +87,7 @@ declare class SubscribeRulesInstance extends SerializableClass { dateUpdated: Date; participantSid: string; roomSid: string; - rules: string; + rules: string[]; /** * Provide a user-friendly representation */ diff --git a/lib/rest/voice/v1/dialingPermissions/country.d.ts b/lib/rest/voice/v1/dialingPermissions/country.d.ts index 96deb9055c..f6572d2541 100644 --- a/lib/rest/voice/v1/dialingPermissions/country.d.ts +++ b/lib/rest/voice/v1/dialingPermissions/country.d.ts @@ -189,7 +189,7 @@ interface CountryPayload extends CountryResource, Page.TwilioResponsePayload { interface CountryResource { continent: string; - country_codes: string; + country_codes: string[]; high_risk_special_numbers_enabled: boolean; high_risk_tollfraud_numbers_enabled: boolean; iso_code: string; @@ -246,7 +246,7 @@ declare class CountryInstance extends SerializableClass { private _proxy: CountryContext; continent: string; - countryCodes: string; + countryCodes: string[]; /** * fetch a CountryInstance * diff --git a/lib/rest/wireless/v1/ratePlan.d.ts b/lib/rest/wireless/v1/ratePlan.d.ts index 1bbd747913..738e8f9cdc 100644 --- a/lib/rest/wireless/v1/ratePlan.d.ts +++ b/lib/rest/wireless/v1/ratePlan.d.ts @@ -123,7 +123,7 @@ interface RatePlanListInstanceCreateOptions { dataLimit?: number; dataMetering?: string; friendlyName?: string; - internationalRoaming?: string[]; + internationalRoaming?: string | string[]; internationalRoamingDataLimit?: number; messagingEnabled?: boolean; nationalRoamingDataLimit?: number; @@ -200,7 +200,7 @@ interface RatePlanResource { date_created: Date; date_updated: Date; friendly_name: string; - international_roaming: string; + international_roaming: string[]; international_roaming_data_limit: number; messaging_enabled: boolean; national_roaming_data_limit: number; @@ -274,7 +274,7 @@ declare class RatePlanInstance extends SerializableClass { */ fetch(callback?: (error: Error | null, items: RatePlanInstance) => any): void; friendlyName: string; - internationalRoaming: string; + internationalRoaming: string[]; internationalRoamingDataLimit: number; messagingEnabled: boolean; nationalRoamingDataLimit: number; diff --git a/lib/twiml/VoiceResponse.d.ts b/lib/twiml/VoiceResponse.d.ts index d13632a1aa..fd2fd2cae8 100644 --- a/lib/twiml/VoiceResponse.d.ts +++ b/lib/twiml/VoiceResponse.d.ts @@ -251,7 +251,7 @@ declare namespace VoiceResponse { export interface ClientAttributes { method?: string; statusCallback?: string; - statusCallbackEvent?: string; + statusCallbackEvent?: ClientEvent[]; statusCallbackMethod?: string; url?: string; } @@ -286,12 +286,12 @@ declare namespace VoiceResponse { muted?: boolean; record?: ConferenceRecord; recordingStatusCallback?: string; - recordingStatusCallbackEvent?: string; + recordingStatusCallbackEvent?: ConferenceRecordingEvent[]; recordingStatusCallbackMethod?: string; region?: ConferenceRegion; startConferenceOnEnter?: boolean; statusCallback?: string; - statusCallbackEvent?: string; + statusCallbackEvent?: ConferenceEvent[]; statusCallbackMethod?: string; trim?: ConferenceTrim; waitMethod?: string; @@ -335,7 +335,7 @@ declare namespace VoiceResponse { method?: string; record?: DialRecord; recordingStatusCallback?: string; - recordingStatusCallbackEvent?: string; + recordingStatusCallbackEvent?: DialRecordingEvent[]; recordingStatusCallbackMethod?: string; ringTone?: DialRingTone; timeLimit?: number; @@ -387,7 +387,7 @@ declare namespace VoiceResponse { debug?: boolean; finishOnKey?: string; hints?: string; - input?: string; + input?: GatherInput[]; language?: GatherLanguage; maxSpeechTime?: number; method?: string; @@ -413,7 +413,7 @@ declare namespace VoiceResponse { method?: string; sendDigits?: string; statusCallback?: string; - statusCallbackEvent?: string; + statusCallbackEvent?: NumberEvent[]; statusCallbackMethod?: string; url?: string; } @@ -478,7 +478,7 @@ declare namespace VoiceResponse { statusCallbackMethod?: PayStatusCallbackMethod; timeout?: number; tokenType?: PayTokenType; - validCardTypes?: string; + validCardTypes?: PayValidCardTypes[]; } /** @@ -501,9 +501,9 @@ declare namespace VoiceResponse { * @property for_ - Name of the payment source data element */ export interface PromptAttributes { - attempt?: string; - cardType?: string; - errorType?: string; + attempt?: number[]; + cardType?: PromptCardType[]; + errorType?: PromptErrorType[]; for_?: PromptFor; } @@ -545,7 +545,7 @@ declare namespace VoiceResponse { method?: string; playBeep?: boolean; recordingStatusCallback?: string; - recordingStatusCallbackEvent?: string; + recordingStatusCallbackEvent?: RecordRecordingEvent[]; recordingStatusCallbackMethod?: string; timeout?: number; transcribe?: boolean; @@ -608,7 +608,7 @@ declare namespace VoiceResponse { method?: string; password?: string; statusCallback?: string; - statusCallbackEvent?: string; + statusCallbackEvent?: SipEvent[]; statusCallbackMethod?: string; url?: string; username?: string;