From c516fdf963a11b69c54286f900b5482d49ca35aa Mon Sep 17 00:00:00 2001 From: Twilio Date: Fri, 15 Jun 2018 14:17:37 -0700 Subject: [PATCH] [Librarian] Regenerated @ e518c327946fd45ea6c42fdfe845b2b7284a3bc9 --- CHANGES.md | 11 + lib/rest/Accounts.d.ts | 32 - lib/rest/Api.d.ts | 152 -- lib/rest/Chat.d.ts | 39 - lib/rest/Fax.d.ts | 32 - lib/rest/IpMessaging.d.ts | 39 - lib/rest/Lookups.d.ts | 32 - lib/rest/Messaging.d.ts | 32 - lib/rest/Monitor.d.ts | 37 - lib/rest/Notify.d.ts | 37 - lib/rest/Preview.d.ts | 110 -- lib/rest/Pricing.d.ts | 42 - lib/rest/Proxy.d.ts | 32 - lib/rest/Studio.d.ts | 32 - lib/rest/Sync.d.ts | 32 - lib/rest/Taskrouter.d.ts | 32 - lib/rest/Trunking.d.ts | 32 - lib/rest/Twilio.d.ts | 151 -- lib/rest/Twilio.js | 16 +- lib/rest/Video.d.ts | 42 - lib/rest/Wireless.d.ts | 42 - lib/rest/accounts/V1.d.ts | 26 - lib/rest/api/V2010.d.ts | 74 - lib/rest/api/v2010/account/call.js | 35 +- lib/rest/api/v2010/account/call/feedback.js | 2 +- lib/rest/chat/V1.d.ts | 28 - lib/rest/chat/V2.d.ts | 28 - lib/rest/fax/V1.d.ts | 26 - lib/rest/ipMessaging/V1.d.ts | 28 - lib/rest/ipMessaging/V2.d.ts | 28 - lib/rest/lookups/V1.d.ts | 26 - lib/rest/messaging/V1.d.ts | 26 - lib/rest/monitor/V1.d.ts | 28 - lib/rest/notify/V1.d.ts | 28 - lib/rest/preview/AccSecurity.d.ts | 26 - lib/rest/preview/BulkExports.d.ts | 28 - lib/rest/preview/DeployedDevices.d.ts | 26 - lib/rest/preview/HostedNumbers.d.ts | 28 - lib/rest/preview/Marketplace.d.ts | 28 - lib/rest/preview/Proxy.d.ts | 26 - lib/rest/preview/Studio.d.ts | 26 - lib/rest/preview/Sync.d.ts | 26 - lib/rest/preview/Understand.d.ts | 26 - lib/rest/preview/Wireless.d.ts | 30 - lib/rest/pricing/V1.d.ts | 30 - lib/rest/proxy/V1.d.ts | 26 - lib/rest/proxy/v1/service.js | 10 +- lib/rest/proxy/v1/service/session.js | 13 +- .../proxy/v1/service/session/interaction.js | 2 +- .../proxy/v1/service/session/participant.js | 2 +- .../session/participant/messageInteraction.js | 14 +- lib/rest/studio/V1.d.ts | 26 - lib/rest/sync/V1.d.ts | 26 - lib/rest/taskrouter/V1.d.ts | 26 - lib/rest/trunking/V1.d.ts | 26 - lib/rest/trunking/v1/trunk.js | 12 +- lib/rest/video/V1.d.ts | 30 - lib/rest/wireless/V1.d.ts | 30 - lib/twiml/FaxResponse.d.ts | 70 - lib/twiml/MessagingResponse.d.ts | 175 -- lib/twiml/VoiceResponse.d.ts | 1431 ----------------- spec/integration/rest/Twilio.spec.js | 44 - 62 files changed, 68 insertions(+), 3584 deletions(-) delete mode 100644 lib/rest/Accounts.d.ts delete mode 100644 lib/rest/Api.d.ts delete mode 100644 lib/rest/Chat.d.ts delete mode 100644 lib/rest/Fax.d.ts delete mode 100644 lib/rest/IpMessaging.d.ts delete mode 100644 lib/rest/Lookups.d.ts delete mode 100644 lib/rest/Messaging.d.ts delete mode 100644 lib/rest/Monitor.d.ts delete mode 100644 lib/rest/Notify.d.ts delete mode 100644 lib/rest/Preview.d.ts delete mode 100644 lib/rest/Pricing.d.ts delete mode 100644 lib/rest/Proxy.d.ts delete mode 100644 lib/rest/Studio.d.ts delete mode 100644 lib/rest/Sync.d.ts delete mode 100644 lib/rest/Taskrouter.d.ts delete mode 100644 lib/rest/Trunking.d.ts delete mode 100644 lib/rest/Twilio.d.ts delete mode 100644 lib/rest/Video.d.ts delete mode 100644 lib/rest/Wireless.d.ts delete mode 100644 lib/rest/accounts/V1.d.ts delete mode 100644 lib/rest/api/V2010.d.ts delete mode 100644 lib/rest/chat/V1.d.ts delete mode 100644 lib/rest/chat/V2.d.ts delete mode 100644 lib/rest/fax/V1.d.ts delete mode 100644 lib/rest/ipMessaging/V1.d.ts delete mode 100644 lib/rest/ipMessaging/V2.d.ts delete mode 100644 lib/rest/lookups/V1.d.ts delete mode 100644 lib/rest/messaging/V1.d.ts delete mode 100644 lib/rest/monitor/V1.d.ts delete mode 100644 lib/rest/notify/V1.d.ts delete mode 100644 lib/rest/preview/AccSecurity.d.ts delete mode 100644 lib/rest/preview/BulkExports.d.ts delete mode 100644 lib/rest/preview/DeployedDevices.d.ts delete mode 100644 lib/rest/preview/HostedNumbers.d.ts delete mode 100644 lib/rest/preview/Marketplace.d.ts delete mode 100644 lib/rest/preview/Proxy.d.ts delete mode 100644 lib/rest/preview/Studio.d.ts delete mode 100644 lib/rest/preview/Sync.d.ts delete mode 100644 lib/rest/preview/Understand.d.ts delete mode 100644 lib/rest/preview/Wireless.d.ts delete mode 100644 lib/rest/pricing/V1.d.ts delete mode 100644 lib/rest/proxy/V1.d.ts delete mode 100644 lib/rest/studio/V1.d.ts delete mode 100644 lib/rest/sync/V1.d.ts delete mode 100644 lib/rest/taskrouter/V1.d.ts delete mode 100644 lib/rest/trunking/V1.d.ts delete mode 100644 lib/rest/video/V1.d.ts delete mode 100644 lib/rest/wireless/V1.d.ts delete mode 100644 lib/twiml/FaxResponse.d.ts delete mode 100644 lib/twiml/MessagingResponse.d.ts delete mode 100644 lib/twiml/VoiceResponse.d.ts delete mode 100644 spec/integration/rest/Twilio.spec.js diff --git a/CHANGES.md b/CHANGES.md index 1480880ca7..d09f81d22e 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,17 @@ twilio-node changelog ===================== +[2018-06-15] Version 3.17.3 +---------------------------- +**Library** +- PR #354: Add validateSslCertificate to node client. Thanks to @mbichoffe! +- PR #355: Add addText method to TwiML classes. Thanks to @ekarson! +- PR #356: Update nsp to latest. Thanks to @ekarson! + +**Twiml** +- Add methods to helper libraries to inject arbitrary text under a TwiML node + + [2018-06-05] Version 3.17.2 ---------------------------- **Library** diff --git a/lib/rest/Accounts.d.ts b/lib/rest/Accounts.d.ts deleted file mode 100644 index bd9a1ac2cc..0000000000 --- a/lib/rest/Accounts.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Domain = require('../base/Domain'); -import TwilioClient = require('./Twilio'); -import V1 = require('./accounts/V1'); -import { CredentialListInstance } from './accounts/v1/credential'; - - -/** - * Initialize accounts domain - */ -declare class Accounts extends Domain { - /** - * Initialize accounts domain - * - * @param twilio - The twilio client - */ - constructor(twilio: TwilioClient); - - /** - * Credential resource - */ - readonly credentials: CredentialListInstance; - readonly v1: V1; -} - -export = Accounts; diff --git a/lib/rest/Api.d.ts b/lib/rest/Api.d.ts deleted file mode 100644 index a2e0585402..0000000000 --- a/lib/rest/Api.d.ts +++ /dev/null @@ -1,152 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Domain = require('../base/Domain'); -import TwilioClient = require('./Twilio'); -import V2010 = require('./api/V2010'); -import { AccountContext } from './api/v2010/account'; -import { AccountListInstance } from './api/v2010/account'; -import { AddressListInstance } from './api/v2010/account/address'; -import { ApplicationListInstance } from './api/v2010/account/application'; -import { AuthorizedConnectAppListInstance } from './api/v2010/account/authorizedConnectApp'; -import { AvailablePhoneNumberCountryListInstance } from './api/v2010/account/availablePhoneNumber'; -import { CallListInstance } from './api/v2010/account/call'; -import { ConferenceListInstance } from './api/v2010/account/conference'; -import { ConnectAppListInstance } from './api/v2010/account/connectApp'; -import { IncomingPhoneNumberListInstance } from './api/v2010/account/incomingPhoneNumber'; -import { KeyListInstance } from './api/v2010/account/key'; -import { MessageListInstance } from './api/v2010/account/message'; -import { NewKeyListInstance } from './api/v2010/account/newKey'; -import { NewSigningKeyListInstance } from './api/v2010/account/newSigningKey'; -import { NotificationListInstance } from './api/v2010/account/notification'; -import { OutgoingCallerIdListInstance } from './api/v2010/account/outgoingCallerId'; -import { QueueListInstance } from './api/v2010/account/queue'; -import { RecordingListInstance } from './api/v2010/account/recording'; -import { ShortCodeListInstance } from './api/v2010/account/shortCode'; -import { SigningKeyListInstance } from './api/v2010/account/signingKey'; -import { SipListInstance } from './api/v2010/account/sip'; -import { TokenListInstance } from './api/v2010/account/token'; -import { TranscriptionListInstance } from './api/v2010/account/transcription'; -import { UsageListInstance } from './api/v2010/account/usage'; -import { ValidationRequestListInstance } from './api/v2010/account/validationRequest'; - - -/** - * Initialize api domain - */ -declare class Api extends Domain { - /** - * Initialize api domain - * - * @param twilio - The twilio client - */ - constructor(twilio: TwilioClient); - - /** - * Main account resource - */ - readonly account: AccountContext; - /** - * Account resource - */ - readonly accounts: AccountListInstance; - /** - * Address resource - */ - readonly addresses: AddressListInstance; - /** - * Application resource - */ - readonly applications: ApplicationListInstance; - /** - * AuthorizedConnectApp resource - */ - readonly authorizedConnectApps: AuthorizedConnectAppListInstance; - /** - * AvailablePhoneNumberCountry resource - */ - readonly availablePhoneNumbers: AvailablePhoneNumberCountryListInstance; - /** - * Call resource - */ - readonly calls: CallListInstance; - /** - * Conference resource - */ - readonly conferences: ConferenceListInstance; - /** - * ConnectApp resource - */ - readonly connectApps: ConnectAppListInstance; - /** - * IncomingPhoneNumber resource - */ - readonly incomingPhoneNumbers: IncomingPhoneNumberListInstance; - /** - * Key resource - */ - readonly keys: KeyListInstance; - /** - * Message resource - */ - readonly messages: MessageListInstance; - /** - * NewKey resource - */ - readonly newKeys: NewKeyListInstance; - /** - * NewSigningKey resource - */ - readonly newSigningKeys: NewSigningKeyListInstance; - /** - * Notification resource - */ - readonly notifications: NotificationListInstance; - /** - * OutgoingCallerId resource - */ - readonly outgoingCallerIds: OutgoingCallerIdListInstance; - /** - * Queue resource - */ - readonly queues: QueueListInstance; - /** - * Recording resource - */ - readonly recordings: RecordingListInstance; - /** - * ShortCode resource - */ - readonly shortCodes: ShortCodeListInstance; - /** - * SigningKey resource - */ - readonly signingKeys: SigningKeyListInstance; - /** - * Sip resource - */ - readonly sip: SipListInstance; - /** - * Token resource - */ - readonly tokens: TokenListInstance; - /** - * Transcription resource - */ - readonly transcriptions: TranscriptionListInstance; - /** - * Usage resource - */ - readonly usage: UsageListInstance; - readonly v2010: V2010; - /** - * ValidationRequest resource - */ - readonly validationRequests: ValidationRequestListInstance; -} - -export = Api; diff --git a/lib/rest/Chat.d.ts b/lib/rest/Chat.d.ts deleted file mode 100644 index 8f386fe960..0000000000 --- a/lib/rest/Chat.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Domain = require('../base/Domain'); -import TwilioClient = require('./Twilio'); -import V1 = require('./chat/V1'); -import V2 = require('./chat/V2'); -import { CredentialListInstance } from './chat/v2/credential'; -import { ServiceListInstance } from './chat/v2/service'; - - -/** - * Initialize chat domain - */ -declare class Chat extends Domain { - /** - * Initialize chat domain - * - * @param twilio - The twilio client - */ - constructor(twilio: TwilioClient); - - /** - * Credential resource - */ - readonly credentials: CredentialListInstance; - /** - * Service resource - */ - readonly services: ServiceListInstance; - readonly v1: V1; - readonly v2: V2; -} - -export = Chat; diff --git a/lib/rest/Fax.d.ts b/lib/rest/Fax.d.ts deleted file mode 100644 index 17c9e72caa..0000000000 --- a/lib/rest/Fax.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Domain = require('../base/Domain'); -import TwilioClient = require('./Twilio'); -import V1 = require('./fax/V1'); -import { FaxListInstance } from './fax/v1/fax'; - - -/** - * Initialize fax domain - */ -declare class Fax extends Domain { - /** - * Initialize fax domain - * - * @param twilio - The twilio client - */ - constructor(twilio: TwilioClient); - - /** - * Fax resource - */ - readonly faxes: FaxListInstance; - readonly v1: V1; -} - -export = Fax; diff --git a/lib/rest/IpMessaging.d.ts b/lib/rest/IpMessaging.d.ts deleted file mode 100644 index 4cd1e36da9..0000000000 --- a/lib/rest/IpMessaging.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Domain = require('../base/Domain'); -import TwilioClient = require('./Twilio'); -import V1 = require('./ipMessaging/V1'); -import V2 = require('./ipMessaging/V2'); -import { CredentialListInstance } from './ipMessaging/v2/credential'; -import { ServiceListInstance } from './ipMessaging/v2/service'; - - -/** - * Initialize ip_messaging domain - */ -declare class IpMessaging extends Domain { - /** - * Initialize ip_messaging domain - * - * @param twilio - The twilio client - */ - constructor(twilio: TwilioClient); - - /** - * Credential resource - */ - readonly credentials: CredentialListInstance; - /** - * Service resource - */ - readonly services: ServiceListInstance; - readonly v1: V1; - readonly v2: V2; -} - -export = IpMessaging; diff --git a/lib/rest/Lookups.d.ts b/lib/rest/Lookups.d.ts deleted file mode 100644 index 0bbc904bcb..0000000000 --- a/lib/rest/Lookups.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Domain = require('../base/Domain'); -import TwilioClient = require('./Twilio'); -import V1 = require('./lookups/V1'); -import { PhoneNumberListInstance } from './lookups/v1/phoneNumber'; - - -/** - * Initialize lookups domain - */ -declare class Lookups extends Domain { - /** - * Initialize lookups domain - * - * @param twilio - The twilio client - */ - constructor(twilio: TwilioClient); - - /** - * PhoneNumber resource - */ - readonly phoneNumbers: PhoneNumberListInstance; - readonly v1: V1; -} - -export = Lookups; diff --git a/lib/rest/Messaging.d.ts b/lib/rest/Messaging.d.ts deleted file mode 100644 index c0b56a1113..0000000000 --- a/lib/rest/Messaging.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Domain = require('../base/Domain'); -import TwilioClient = require('./Twilio'); -import V1 = require('./messaging/V1'); -import { ServiceListInstance } from './messaging/v1/service'; - - -/** - * Initialize messaging domain - */ -declare class Messaging extends Domain { - /** - * Initialize messaging domain - * - * @param twilio - The twilio client - */ - constructor(twilio: TwilioClient); - - /** - * Service resource - */ - readonly services: ServiceListInstance; - readonly v1: V1; -} - -export = Messaging; diff --git a/lib/rest/Monitor.d.ts b/lib/rest/Monitor.d.ts deleted file mode 100644 index 23e31dc790..0000000000 --- a/lib/rest/Monitor.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Domain = require('../base/Domain'); -import TwilioClient = require('./Twilio'); -import V1 = require('./monitor/V1'); -import { AlertListInstance } from './monitor/v1/alert'; -import { EventListInstance } from './monitor/v1/event'; - - -/** - * Initialize monitor domain - */ -declare class Monitor extends Domain { - /** - * Initialize monitor domain - * - * @param twilio - The twilio client - */ - constructor(twilio: TwilioClient); - - /** - * Alert resource - */ - readonly alerts: AlertListInstance; - /** - * Event resource - */ - readonly events: EventListInstance; - readonly v1: V1; -} - -export = Monitor; diff --git a/lib/rest/Notify.d.ts b/lib/rest/Notify.d.ts deleted file mode 100644 index ee95e3b3ea..0000000000 --- a/lib/rest/Notify.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Domain = require('../base/Domain'); -import TwilioClient = require('./Twilio'); -import V1 = require('./notify/V1'); -import { CredentialListInstance } from './notify/v1/credential'; -import { ServiceListInstance } from './notify/v1/service'; - - -/** - * Initialize notify domain - */ -declare class Notify extends Domain { - /** - * Initialize notify domain - * - * @param twilio - The twilio client - */ - constructor(twilio: TwilioClient); - - /** - * Credential resource - */ - readonly credentials: CredentialListInstance; - /** - * Service resource - */ - readonly services: ServiceListInstance; - readonly v1: V1; -} - -export = Notify; diff --git a/lib/rest/Preview.d.ts b/lib/rest/Preview.d.ts deleted file mode 100644 index 859a89c64c..0000000000 --- a/lib/rest/Preview.d.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import AccSecurity = require('./preview/AccSecurity'); -import BulkExports = require('./preview/BulkExports'); -import DeployedDevices = require('./preview/DeployedDevices'); -import Domain = require('../base/Domain'); -import HostedNumbers = require('./preview/HostedNumbers'); -import Marketplace = require('./preview/Marketplace'); -import Proxy = require('./preview/Proxy'); -import Studio = require('./preview/Studio'); -import Sync = require('./preview/Sync'); -import TwilioClient = require('./Twilio'); -import Understand = require('./preview/Understand'); -import Wireless = require('./preview/Wireless'); -import { AssistantListInstance } from './preview/understand/assistant'; -import { AuthorizationDocumentListInstance } from './preview/hosted_numbers/authorizationDocument'; -import { AvailableAddOnListInstance } from './preview/marketplace/availableAddOn'; -import { CommandListInstance } from './preview/wireless/command'; -import { ExportConfigurationListInstance } from './preview/bulk_exports/exportConfiguration'; -import { ExportListInstance } from './preview/bulk_exports/export'; -import { FleetListInstance } from './preview/deployed_devices/fleet'; -import { FlowListInstance } from './preview/studio/flow'; -import { HostedNumberOrderListInstance } from './preview/hosted_numbers/hostedNumberOrder'; -import { InstalledAddOnListInstance } from './preview/marketplace/installedAddOn'; -import { RatePlanListInstance } from './preview/wireless/ratePlan'; -import { ServiceListInstance } from './preview/sync/service'; -import { SimListInstance } from './preview/wireless/sim'; - - -/** - * Initialize preview domain - */ -declare class Preview extends Domain { - /** - * Initialize preview domain - * - * @param twilio - The twilio client - */ - constructor(twilio: TwilioClient); - - readonly acc_security: AccSecurity; - /** - * Assistant resource - */ - readonly assistants: AssistantListInstance; - /** - * AuthorizationDocument resource - */ - readonly authorizationDocuments: AuthorizationDocumentListInstance; - /** - * AvailableAddOn resource - */ - readonly availableAddOns: AvailableAddOnListInstance; - readonly bulk_exports: BulkExports; - /** - * Command resource - */ - readonly commands: CommandListInstance; - readonly deployed_devices: DeployedDevices; - /** - * ExportConfiguration resource - */ - readonly exportConfiguration: ExportConfigurationListInstance; - /** - * Export resource - */ - readonly exports: ExportListInstance; - /** - * Fleet resource - */ - readonly fleets: FleetListInstance; - /** - * Flow resource - */ - readonly flows: FlowListInstance; - /** - * HostedNumberOrder resource - */ - readonly hostedNumberOrders: HostedNumberOrderListInstance; - readonly hosted_numbers: HostedNumbers; - /** - * InstalledAddOn resource - */ - readonly installedAddOns: InstalledAddOnListInstance; - readonly marketplace: Marketplace; - readonly proxy: Proxy; - /** - * RatePlan resource - */ - readonly ratePlans: RatePlanListInstance; - /** - * Service resource - */ - readonly services: ServiceListInstance; - /** - * Sim resource - */ - readonly sims: SimListInstance; - readonly studio: Studio; - readonly sync: Sync; - readonly understand: Understand; - readonly wireless: Wireless; -} - -export = Preview; diff --git a/lib/rest/Pricing.d.ts b/lib/rest/Pricing.d.ts deleted file mode 100644 index 2837ceb76c..0000000000 --- a/lib/rest/Pricing.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Domain = require('../base/Domain'); -import TwilioClient = require('./Twilio'); -import V1 = require('./pricing/V1'); -import { MessagingListInstance } from './pricing/v1/messaging'; -import { PhoneNumberListInstance } from './pricing/v1/phoneNumber'; -import { VoiceListInstance } from './pricing/v1/voice'; - - -/** - * Initialize pricing domain - */ -declare class Pricing extends Domain { - /** - * Initialize pricing domain - * - * @param twilio - The twilio client - */ - constructor(twilio: TwilioClient); - - /** - * Messaging resource - */ - readonly messaging: MessagingListInstance; - /** - * PhoneNumber resource - */ - readonly phoneNumbers: PhoneNumberListInstance; - readonly v1: V1; - /** - * Voice resource - */ - readonly voice: VoiceListInstance; -} - -export = Pricing; diff --git a/lib/rest/Proxy.d.ts b/lib/rest/Proxy.d.ts deleted file mode 100644 index 24402d5672..0000000000 --- a/lib/rest/Proxy.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Domain = require('../base/Domain'); -import TwilioClient = require('./Twilio'); -import V1 = require('./proxy/V1'); -import { ServiceListInstance } from './proxy/v1/service'; - - -/** - * Initialize proxy domain - */ -declare class Proxy extends Domain { - /** - * Initialize proxy domain - * - * @param twilio - The twilio client - */ - constructor(twilio: TwilioClient); - - /** - * Service resource - */ - readonly services: ServiceListInstance; - readonly v1: V1; -} - -export = Proxy; diff --git a/lib/rest/Studio.d.ts b/lib/rest/Studio.d.ts deleted file mode 100644 index b873425387..0000000000 --- a/lib/rest/Studio.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Domain = require('../base/Domain'); -import TwilioClient = require('./Twilio'); -import V1 = require('./studio/V1'); -import { FlowListInstance } from './studio/v1/flow'; - - -/** - * Initialize studio domain - */ -declare class Studio extends Domain { - /** - * Initialize studio domain - * - * @param twilio - The twilio client - */ - constructor(twilio: TwilioClient); - - /** - * Flow resource - */ - readonly flows: FlowListInstance; - readonly v1: V1; -} - -export = Studio; diff --git a/lib/rest/Sync.d.ts b/lib/rest/Sync.d.ts deleted file mode 100644 index 8444d10b20..0000000000 --- a/lib/rest/Sync.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Domain = require('../base/Domain'); -import TwilioClient = require('./Twilio'); -import V1 = require('./sync/V1'); -import { ServiceListInstance } from './sync/v1/service'; - - -/** - * Initialize sync domain - */ -declare class Sync extends Domain { - /** - * Initialize sync domain - * - * @param twilio - The twilio client - */ - constructor(twilio: TwilioClient); - - /** - * Service resource - */ - readonly services: ServiceListInstance; - readonly v1: V1; -} - -export = Sync; diff --git a/lib/rest/Taskrouter.d.ts b/lib/rest/Taskrouter.d.ts deleted file mode 100644 index 49d5a6ab08..0000000000 --- a/lib/rest/Taskrouter.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Domain = require('../base/Domain'); -import TwilioClient = require('./Twilio'); -import V1 = require('./taskrouter/V1'); -import { WorkspaceListInstance } from './taskrouter/v1/workspace'; - - -/** - * Initialize taskrouter domain - */ -declare class Taskrouter extends Domain { - /** - * Initialize taskrouter domain - * - * @param twilio - The twilio client - */ - constructor(twilio: TwilioClient); - - readonly v1: V1; - /** - * Workspace resource - */ - readonly workspaces: WorkspaceListInstance; -} - -export = Taskrouter; diff --git a/lib/rest/Trunking.d.ts b/lib/rest/Trunking.d.ts deleted file mode 100644 index f6dec781ed..0000000000 --- a/lib/rest/Trunking.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Domain = require('../base/Domain'); -import TwilioClient = require('./Twilio'); -import V1 = require('./trunking/V1'); -import { TrunkListInstance } from './trunking/v1/trunk'; - - -/** - * Initialize trunking domain - */ -declare class Trunking extends Domain { - /** - * Initialize trunking domain - * - * @param twilio - The twilio client - */ - constructor(twilio: TwilioClient); - - /** - * Trunk resource - */ - readonly trunks: TrunkListInstance; - readonly v1: V1; -} - -export = Trunking; diff --git a/lib/rest/Twilio.d.ts b/lib/rest/Twilio.d.ts deleted file mode 100644 index 72a8108b54..0000000000 --- a/lib/rest/Twilio.d.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Accounts = require('./Accounts'); -import Api = require('./Api'); -import Chat = require('./Chat'); -import Fax = require('./Fax'); -import IpMessaging = require('./IpMessaging'); -import Lookups = require('./Lookups'); -import Messaging = require('./Messaging'); -import Monitor = require('./Monitor'); -import Notify = require('./Notify'); -import Preview = require('./Preview'); -import Pricing = require('./Pricing'); -import Proxy = require('./Proxy'); -import RequestClient = require('../base/RequestClient'); -import Studio = require('./Studio'); -import Sync = require('./Sync'); -import Taskrouter = require('./Taskrouter'); -import Trunking = require('./Trunking'); -import Video = require('./Video'); -import Wireless = require('./Wireless'); - -declare class Twilio { - /** - * Twilio Client to interact with the Rest API - * - * @param username - The username used for authentication. This is normally account sid, but if using key/secret auth will be the api key sid. - * @param password - The password used for authentication. This is normally auth token, but if using key/secret auth will be the secret. - * @param opts - Options to alter the behavior of the Twilio Client - * - * @returns A new instance of Twilio client - */ - constructor(username: string, password: string, opts?: Twilio.TwilioClientOptions); - - private _accounts?: Accounts; - private _api?: Api; - private _chat?: Chat; - private _fax?: Fax; - private _ipMessaging?: IpMessaging; - private _lookups?: Lookups; - private _messaging?: Messaging; - private _monitor?: Monitor; - private _notify?: Notify; - private _preview?: Preview; - private _pricing?: Pricing; - private _proxy?: Proxy; - private _studio?: Studio; - private _sync?: Sync; - private _taskrouter?: Taskrouter; - private _trunking?: Trunking; - private _video?: Video; - private _wireless?: Wireless; - accounts: Accounts; - addresses: (typeof Api.prototype.account.addresses); - api: Api; - applications: (typeof Api.prototype.account.applications); - authorizedConnectApps: (typeof Api.prototype.account.authorizedConnectApps); - availablePhoneNumbers: (typeof Api.prototype.account.availablePhoneNumbers); - calls: (typeof Api.prototype.account.calls); - chat: Chat; - conferences: (typeof Api.prototype.account.conferences); - connectApps: (typeof Api.prototype.account.connectApps); - fax: Fax; - incomingPhoneNumbers: (typeof Api.prototype.account.incomingPhoneNumbers); - ipMessaging: IpMessaging; - keys: (typeof Api.prototype.account.keys); - lookups: Lookups; - messages: (typeof Api.prototype.account.messages); - messaging: Messaging; - monitor: Monitor; - newKeys: (typeof Api.prototype.account.newKeys); - newSigningKeys: (typeof Api.prototype.account.newSigningKeys); - notifications: (typeof Api.prototype.account.notifications); - notify: Notify; - outgoingCallerIds: (typeof Api.prototype.account.outgoingCallerIds); - preview: Preview; - pricing: Pricing; - proxy: Proxy; - queues: (typeof Api.prototype.account.queues); - recordings: (typeof Api.prototype.account.recordings); - /** - * Makes a request to the Twilio API using the configured http client. - * Authentication information is automatically added if none is provided. - * - * @param opts - The options argument - */ - request(opts?: Twilio.RequestOptions): any; - shortCodes: (typeof Api.prototype.account.shortCodes); - signingKeys: (typeof Api.prototype.account.signingKeys); - sip: (typeof Api.prototype.account.sip); - studio: Studio; - sync: Sync; - taskrouter: Taskrouter; - tokens: (typeof Api.prototype.account.tokens); - transcriptions: (typeof Api.prototype.account.transcriptions); - trunking: Trunking; - usage: (typeof Api.prototype.account.usage); - validationRequests: (typeof Api.prototype.account.validationRequests); - video: Video; - wireless: Wireless; -} - -declare namespace Twilio { - - /** - * Options to pass to the Twilio Client constructor - * - * @property httpClient - The client used for http requests. Defaults to RequestClient - * @property accountSid - The default accountSid. This is set to username if not provided - * @property env - The environment object. Defaults to process.env - * @property httpClient - Twilio region to use. Defaults to none - */ - export interface TwilioClientOptions { - accountSid?: string; - env?: object; - httpClient?: RequestClient; - region?: string; - } - - /** - * Options for the request - * - * @property method - The http method - * @property uri - The request uri - * @property username - The username used for auth - * @property password - The password used for auth - * @property headers - The request headers - * @property params - The request params - * @property data - The request data - * @property timeout - The request timeout in milliseconds - * @property allowRedirects - Should the client follow redirects - */ - export interface RequestOptions { - allowRedirects?: boolean; - data?: object; - headers?: object; - method: string; - params?: object; - password?: string; - timeout?: number; - uri: string; - username?: string; - } - -} -export = Twilio; diff --git a/lib/rest/Twilio.js b/lib/rest/Twilio.js index 819dc29344..b5b826c249 100644 --- a/lib/rest/Twilio.js +++ b/lib/rest/Twilio.js @@ -234,14 +234,14 @@ Twilio.prototype.request = function request(opts) { /* jshint ignore:end */ Twilio.prototype.validateSslCert = function validateSslCert() { return this.httpClient.request({ - method: 'GET', - uri: 'https://api.twilio.com:8443/2010-04-01/.json', - }).then((response) => { - if (response.statusCode < 200 || response.statusCode >= 300) { - throw RestException(response); - } - - return response; + method: 'GET', + uri: 'https://api.twilio.com:8443/2010-04-01/.json', + }).then((response) => { + if (response.statusCode < 200 || response.statusCode >= 300) { + throw RestException(response); + } + + return response; }); }; diff --git a/lib/rest/Video.d.ts b/lib/rest/Video.d.ts deleted file mode 100644 index 91ce481c01..0000000000 --- a/lib/rest/Video.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Domain = require('../base/Domain'); -import TwilioClient = require('./Twilio'); -import V1 = require('./video/V1'); -import { CompositionListInstance } from './video/v1/composition'; -import { RecordingListInstance } from './video/v1/recording'; -import { RoomListInstance } from './video/v1/room'; - - -/** - * Initialize video domain - */ -declare class Video extends Domain { - /** - * Initialize video domain - * - * @param twilio - The twilio client - */ - constructor(twilio: TwilioClient); - - /** - * Composition resource - */ - readonly compositions: CompositionListInstance; - /** - * Recording resource - */ - readonly recordings: RecordingListInstance; - /** - * Room resource - */ - readonly rooms: RoomListInstance; - readonly v1: V1; -} - -export = Video; diff --git a/lib/rest/Wireless.d.ts b/lib/rest/Wireless.d.ts deleted file mode 100644 index dea7d84b35..0000000000 --- a/lib/rest/Wireless.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Domain = require('../base/Domain'); -import TwilioClient = require('./Twilio'); -import V1 = require('./wireless/V1'); -import { CommandListInstance } from './wireless/v1/command'; -import { RatePlanListInstance } from './wireless/v1/ratePlan'; -import { SimListInstance } from './wireless/v1/sim'; - - -/** - * Initialize wireless domain - */ -declare class Wireless extends Domain { - /** - * Initialize wireless domain - * - * @param twilio - The twilio client - */ - constructor(twilio: TwilioClient); - - /** - * Command resource - */ - readonly commands: CommandListInstance; - /** - * RatePlan resource - */ - readonly ratePlans: RatePlanListInstance; - /** - * Sim resource - */ - readonly sims: SimListInstance; - readonly v1: V1; -} - -export = Wireless; diff --git a/lib/rest/accounts/V1.d.ts b/lib/rest/accounts/V1.d.ts deleted file mode 100644 index 33cc2db9f3..0000000000 --- a/lib/rest/accounts/V1.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Version = require('../../base/Version'); -import { CredentialListInstance } from './v1/credential'; - - -/** - * Initialize the V1 version of Accounts - */ -declare class V1 extends Version { - /** - * Initialize the V1 version of Accounts - * - * @param domain - The twilio domain - */ - constructor(domain: any); - - readonly credentials: CredentialListInstance; -} - -export = V1; diff --git a/lib/rest/api/V2010.d.ts b/lib/rest/api/V2010.d.ts deleted file mode 100644 index e2bb2f6da1..0000000000 --- a/lib/rest/api/V2010.d.ts +++ /dev/null @@ -1,74 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Version = require('../../base/Version'); -import { AccountContext } from './v2010/account'; -import { AccountListInstance } from './v2010/account'; -import { AddressListInstance } from './v2010/account/address'; -import { ApplicationListInstance } from './v2010/account/application'; -import { AuthorizedConnectAppListInstance } from './v2010/account/authorizedConnectApp'; -import { AvailablePhoneNumberCountryListInstance } from './v2010/account/availablePhoneNumber'; -import { CallListInstance } from './v2010/account/call'; -import { ConferenceListInstance } from './v2010/account/conference'; -import { ConnectAppListInstance } from './v2010/account/connectApp'; -import { IncomingPhoneNumberListInstance } from './v2010/account/incomingPhoneNumber'; -import { KeyListInstance } from './v2010/account/key'; -import { MessageListInstance } from './v2010/account/message'; -import { NewKeyListInstance } from './v2010/account/newKey'; -import { NewSigningKeyListInstance } from './v2010/account/newSigningKey'; -import { NotificationListInstance } from './v2010/account/notification'; -import { OutgoingCallerIdListInstance } from './v2010/account/outgoingCallerId'; -import { QueueListInstance } from './v2010/account/queue'; -import { RecordingListInstance } from './v2010/account/recording'; -import { ShortCodeListInstance } from './v2010/account/shortCode'; -import { SigningKeyListInstance } from './v2010/account/signingKey'; -import { SipListInstance } from './v2010/account/sip'; -import { TokenListInstance } from './v2010/account/token'; -import { TranscriptionListInstance } from './v2010/account/transcription'; -import { UsageListInstance } from './v2010/account/usage'; -import { ValidationRequestListInstance } from './v2010/account/validationRequest'; - - -/** - * Initialize the V2010 version of Api - */ -declare class V2010 extends Version { - /** - * Initialize the V2010 version of Api - * - * @param domain - The twilio domain - */ - constructor(domain: any); - - account: AccountContext; - readonly accounts: AccountListInstance; - readonly addresses: AddressListInstance; - readonly applications: ApplicationListInstance; - readonly authorizedConnectApps: AuthorizedConnectAppListInstance; - readonly availablePhoneNumbers: AvailablePhoneNumberCountryListInstance; - readonly calls: CallListInstance; - readonly conferences: ConferenceListInstance; - readonly connectApps: ConnectAppListInstance; - readonly incomingPhoneNumbers: IncomingPhoneNumberListInstance; - readonly keys: KeyListInstance; - readonly messages: MessageListInstance; - readonly newKeys: NewKeyListInstance; - readonly newSigningKeys: NewSigningKeyListInstance; - readonly notifications: NotificationListInstance; - readonly outgoingCallerIds: OutgoingCallerIdListInstance; - readonly queues: QueueListInstance; - readonly recordings: RecordingListInstance; - readonly shortCodes: ShortCodeListInstance; - readonly signingKeys: SigningKeyListInstance; - readonly sip: SipListInstance; - readonly tokens: TokenListInstance; - readonly transcriptions: TranscriptionListInstance; - readonly usage: UsageListInstance; - readonly validationRequests: ValidationRequestListInstance; -} - -export = V2010; diff --git a/lib/rest/api/v2010/account/call.js b/lib/rest/api/v2010/account/call.js index 710f265ab5..044bc7414e 100644 --- a/lib/rest/api/v2010/account/call.js +++ b/lib/rest/api/v2010/account/call.js @@ -71,7 +71,8 @@ CallList = function CallList(version, accountSid) { * @instance * * @param {object} opts - ... - * @param {string} opts.to - Phone number, SIP address or client identifier to call + * @param {string} opts.to - + * Phone number, SIP address, or client identifier to call * @param {string} opts.from - Twilio number from which to originate the call * @param {string} [opts.method] - HTTP method to use to fetch TwiML * @param {string} [opts.fallbackUrl] - Fallback URL in case of error @@ -90,7 +91,7 @@ CallList = function CallList(version, accountSid) { * @param {string} [opts.recordingStatusCallback] - * A URL that Twilio will send a webhook request to when the recording is available for access. * @param {string} [opts.recordingStatusCallbackMethod] - - * The HTTP method Twilio should use when requesting the above URL. + * The HTTP method Twilio should use when requesting the `RecordingStatusCallback` URL. * @param {string} [opts.sipAuthUsername] - The sip_auth_username * @param {string} [opts.sipAuthPassword] - The sip_auth_password * @param {string} [opts.machineDetection] - @@ -102,7 +103,7 @@ CallList = function CallList(version, accountSid) { * @param {string} [opts.trim] - * Set this parameter to control trimming of silence on the recording. * @param {string} [opts.callerId] - - * The phone number, SIP address or Client identifier that made this Call. Phone numbers are in E.164 format (e.g. +16175551212). SIP addresses are formatted as `name@company.com`. + * The phone number, SIP address, or Client identifier that made this Call. Phone numbers are in E.164 format (e.g., +16175551212). SIP addresses are formatted as `name@company.com`. * @param {string} [opts.url] - Url from which to fetch TwiML * @param {string} [opts.applicationSid] - * ApplicationSid that configures from where to fetch TwiML @@ -548,40 +549,40 @@ CallPage.prototype.getInstance = function getInstance(payload) { * The unique id of the Account responsible for creating this Call * @property {string} annotation - The annotation provided for the Call * @property {string} answeredBy - - * If this call was initiated with answering machine detection, either `human` or `machine`. Empty otherwise. - * @property {string} apiVersion - The API Version the Call was created through + * Either `human` or `machine` if this Call was initiated with answering machine detection. Empty otherwise. + * @property {string} apiVersion - The API Version used to create the Call * @property {string} callerName - - * If this call was an incoming call to a phone number with Caller ID Lookup enabled, the caller's name. Empty otherwise. + * The caller's name if this Call was an incoming call to a phone number with Caller ID Lookup enabled. Empty otherwise. * @property {Date} dateCreated - The date that this resource was created * @property {Date} dateUpdated - The date that this resource was last updated * @property {string} direction - - * A string describing the direction of the call. `inbound` for inbound calls, `outbound-api` for calls initiated via the REST API or `outbound-dial` for calls initiated by a `Dial` verb. - * @property {string} duration - The length of the call in seconds. + * A string describing the direction of the Call. `inbound` for inbound calls, `outbound-api` for calls initiated via the REST API or `outbound-dial` for calls initiated by a `Dial` verb. + * @property {string} duration - The length of the Call in seconds. * @property {Date} endTime - * The end time of the Call. Null if the call did not complete successfully. * @property {string} forwardedFrom - - * If this Call was an incoming call forwarded from another number, the forwarding phone number (depends on carrier supporting forwarding). Empty otherwise. + * The forwarding phone number if this Call was an incoming call forwarded from another number (depends on carrier supporting forwarding). Empty otherwise. * @property {string} from - - * The phone number, SIP address or Client identifier that made this Call. Phone numbers are in E.164 format (e.g. +16175551212). SIP addresses are formatted as `name@company.com`. Client identifiers are formatted `client:name`. + * The phone number, SIP address or Client identifier that made this Call. Phone numbers are in E.164 format (e.g., +16175551212). SIP addresses are formatted as `name@company.com`. Client identifiers are formatted `client:name`. * @property {string} fromFormatted - * The phone number, SIP address or Client identifier that made this Call. Formatted for display. * @property {string} groupSid - - * A 34 character Group Sid associated with this Call. Empty if no Group is associated with the Call. + * A 34-character Group Sid associated with this Call. Empty if no Group is associated with the Call. * @property {string} parentCallSid - - * A 34 character string that uniquely identifies the Call that created this leg. + * A 34-character string that uniquely identifies the Call that created this leg. * @property {string} phoneNumberSid - - * If the call was inbound, this is the Sid of the IncomingPhoneNumber that received the call. If the call was outbound, it is the Sid of the OutgoingCallerId from which the call was placed. + * If the call was inbound, this is the Sid of the `IncomingPhoneNumber` that received the call. If the call was outbound, it is the Sid of the `OutgoingCallerId` from which the call was placed. * @property {number} price - - * The charge for this call, in the currency associated with the account. Populated after the call is completed. May not be immediately available. + * The charge for this Call, in the currency associated with the account. Populated after the call is completed. May not be immediately available. * @property {string} priceUnit - The currency in which `Price` is measured. * @property {string} sid - - * A 34 character string that uniquely identifies this resource. + * A 34-character string that uniquely identifies the Call resource. * @property {Date} startTime - * The start time of the Call. Null if the call has not yet been dialed. - * @property {call.status} status - A string representing the status of the call. + * @property {call.status} status - A string representing the status of the Call. * @property {string} subresourceUris - Call Instance Subresources * @property {string} to - - * The phone number, SIP address or Client identifier that received this Call. Phone numbers are in E.164 format (e.g. +16175551212). SIP addresses are formatted as `name@company.com`. Client identifiers are formatted `client:name`. + * The phone number, SIP address or Client identifier that received this Call. Phone numbers are in E.164 format (e.g., +16175551212). SIP addresses are formatted as `name@company.com`. Client identifiers are formatted `client:name`. * @property {string} toFormatted - * The phone number, SIP address or Client identifier that received this Call. Formatted for display. * @property {string} uri - diff --git a/lib/rest/api/v2010/account/call/feedback.js b/lib/rest/api/v2010/account/call/feedback.js index 35c48a8e36..3abba879b7 100644 --- a/lib/rest/api/v2010/account/call/feedback.js +++ b/lib/rest/api/v2010/account/call/feedback.js @@ -31,7 +31,7 @@ var FeedbackContext; * @param {Twilio.Api.V2010} version - Version of the resource * @param {string} accountSid - The account_sid * @param {string} callSid - - * A 34 character string that uniquely identifies this resource. + * A 34-character string that uniquely identifies the Call resource. */ /* jshint ignore:end */ FeedbackList = function FeedbackList(version, accountSid, callSid) { diff --git a/lib/rest/chat/V1.d.ts b/lib/rest/chat/V1.d.ts deleted file mode 100644 index 0ad5347b86..0000000000 --- a/lib/rest/chat/V1.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Version = require('../../base/Version'); -import { CredentialListInstance } from './v1/credential'; -import { ServiceListInstance } from './v1/service'; - - -/** - * Initialize the V1 version of Chat - */ -declare class V1 extends Version { - /** - * Initialize the V1 version of Chat - * - * @param domain - The twilio domain - */ - constructor(domain: any); - - readonly credentials: CredentialListInstance; - readonly services: ServiceListInstance; -} - -export = V1; diff --git a/lib/rest/chat/V2.d.ts b/lib/rest/chat/V2.d.ts deleted file mode 100644 index aa7f71b83b..0000000000 --- a/lib/rest/chat/V2.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Version = require('../../base/Version'); -import { CredentialListInstance } from './v2/credential'; -import { ServiceListInstance } from './v2/service'; - - -/** - * Initialize the V2 version of Chat - */ -declare class V2 extends Version { - /** - * Initialize the V2 version of Chat - * - * @param domain - The twilio domain - */ - constructor(domain: any); - - readonly credentials: CredentialListInstance; - readonly services: ServiceListInstance; -} - -export = V2; diff --git a/lib/rest/fax/V1.d.ts b/lib/rest/fax/V1.d.ts deleted file mode 100644 index dce50c3fb4..0000000000 --- a/lib/rest/fax/V1.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Version = require('../../base/Version'); -import { FaxListInstance } from './v1/fax'; - - -/** - * Initialize the V1 version of Fax - */ -declare class V1 extends Version { - /** - * Initialize the V1 version of Fax - * - * @param domain - The twilio domain - */ - constructor(domain: any); - - readonly faxes: FaxListInstance; -} - -export = V1; diff --git a/lib/rest/ipMessaging/V1.d.ts b/lib/rest/ipMessaging/V1.d.ts deleted file mode 100644 index 01b23d7cdf..0000000000 --- a/lib/rest/ipMessaging/V1.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Version = require('../../base/Version'); -import { CredentialListInstance } from './v1/credential'; -import { ServiceListInstance } from './v1/service'; - - -/** - * Initialize the V1 version of IpMessaging - */ -declare class V1 extends Version { - /** - * Initialize the V1 version of IpMessaging - * - * @param domain - The twilio domain - */ - constructor(domain: any); - - readonly credentials: CredentialListInstance; - readonly services: ServiceListInstance; -} - -export = V1; diff --git a/lib/rest/ipMessaging/V2.d.ts b/lib/rest/ipMessaging/V2.d.ts deleted file mode 100644 index f08c927aa3..0000000000 --- a/lib/rest/ipMessaging/V2.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Version = require('../../base/Version'); -import { CredentialListInstance } from './v2/credential'; -import { ServiceListInstance } from './v2/service'; - - -/** - * Initialize the V2 version of IpMessaging - */ -declare class V2 extends Version { - /** - * Initialize the V2 version of IpMessaging - * - * @param domain - The twilio domain - */ - constructor(domain: any); - - readonly credentials: CredentialListInstance; - readonly services: ServiceListInstance; -} - -export = V2; diff --git a/lib/rest/lookups/V1.d.ts b/lib/rest/lookups/V1.d.ts deleted file mode 100644 index 902b5f1810..0000000000 --- a/lib/rest/lookups/V1.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Version = require('../../base/Version'); -import { PhoneNumberListInstance } from './v1/phoneNumber'; - - -/** - * Initialize the V1 version of Lookups - */ -declare class V1 extends Version { - /** - * Initialize the V1 version of Lookups - * - * @param domain - The twilio domain - */ - constructor(domain: any); - - readonly phoneNumbers: PhoneNumberListInstance; -} - -export = V1; diff --git a/lib/rest/messaging/V1.d.ts b/lib/rest/messaging/V1.d.ts deleted file mode 100644 index f0259fba4b..0000000000 --- a/lib/rest/messaging/V1.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Version = require('../../base/Version'); -import { ServiceListInstance } from './v1/service'; - - -/** - * Initialize the V1 version of Messaging - */ -declare class V1 extends Version { - /** - * Initialize the V1 version of Messaging - * - * @param domain - The twilio domain - */ - constructor(domain: any); - - readonly services: ServiceListInstance; -} - -export = V1; diff --git a/lib/rest/monitor/V1.d.ts b/lib/rest/monitor/V1.d.ts deleted file mode 100644 index 047d506aac..0000000000 --- a/lib/rest/monitor/V1.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Version = require('../../base/Version'); -import { AlertListInstance } from './v1/alert'; -import { EventListInstance } from './v1/event'; - - -/** - * Initialize the V1 version of Monitor - */ -declare class V1 extends Version { - /** - * Initialize the V1 version of Monitor - * - * @param domain - The twilio domain - */ - constructor(domain: any); - - readonly alerts: AlertListInstance; - readonly events: EventListInstance; -} - -export = V1; diff --git a/lib/rest/notify/V1.d.ts b/lib/rest/notify/V1.d.ts deleted file mode 100644 index fb93790c99..0000000000 --- a/lib/rest/notify/V1.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Version = require('../../base/Version'); -import { CredentialListInstance } from './v1/credential'; -import { ServiceListInstance } from './v1/service'; - - -/** - * Initialize the V1 version of Notify - */ -declare class V1 extends Version { - /** - * Initialize the V1 version of Notify - * - * @param domain - The twilio domain - */ - constructor(domain: any); - - readonly credentials: CredentialListInstance; - readonly services: ServiceListInstance; -} - -export = V1; diff --git a/lib/rest/preview/AccSecurity.d.ts b/lib/rest/preview/AccSecurity.d.ts deleted file mode 100644 index 1a9a265b01..0000000000 --- a/lib/rest/preview/AccSecurity.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Version = require('../../base/Version'); -import { ServiceListInstance } from './acc_security/service'; - - -/** - * Initialize the AccSecurity version of Preview - */ -declare class AccSecurity extends Version { - /** - * Initialize the AccSecurity version of Preview - * - * @param domain - The twilio domain - */ - constructor(domain: any); - - readonly services: ServiceListInstance; -} - -export = AccSecurity; diff --git a/lib/rest/preview/BulkExports.d.ts b/lib/rest/preview/BulkExports.d.ts deleted file mode 100644 index 14bc6d661f..0000000000 --- a/lib/rest/preview/BulkExports.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Version = require('../../base/Version'); -import { ExportConfigurationListInstance } from './bulk_exports/exportConfiguration'; -import { ExportListInstance } from './bulk_exports/export'; - - -/** - * Initialize the BulkExports version of Preview - */ -declare class BulkExports extends Version { - /** - * Initialize the BulkExports version of Preview - * - * @param domain - The twilio domain - */ - constructor(domain: any); - - readonly exportConfiguration: ExportConfigurationListInstance; - readonly exports: ExportListInstance; -} - -export = BulkExports; diff --git a/lib/rest/preview/DeployedDevices.d.ts b/lib/rest/preview/DeployedDevices.d.ts deleted file mode 100644 index 1618d53d66..0000000000 --- a/lib/rest/preview/DeployedDevices.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Version = require('../../base/Version'); -import { FleetListInstance } from './deployed_devices/fleet'; - - -/** - * Initialize the DeployedDevices version of Preview - */ -declare class DeployedDevices extends Version { - /** - * Initialize the DeployedDevices version of Preview - * - * @param domain - The twilio domain - */ - constructor(domain: any); - - readonly fleets: FleetListInstance; -} - -export = DeployedDevices; diff --git a/lib/rest/preview/HostedNumbers.d.ts b/lib/rest/preview/HostedNumbers.d.ts deleted file mode 100644 index 327a695cd8..0000000000 --- a/lib/rest/preview/HostedNumbers.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Version = require('../../base/Version'); -import { AuthorizationDocumentListInstance } from './hosted_numbers/authorizationDocument'; -import { HostedNumberOrderListInstance } from './hosted_numbers/hostedNumberOrder'; - - -/** - * Initialize the HostedNumbers version of Preview - */ -declare class HostedNumbers extends Version { - /** - * Initialize the HostedNumbers version of Preview - * - * @param domain - The twilio domain - */ - constructor(domain: any); - - readonly authorizationDocuments: AuthorizationDocumentListInstance; - readonly hostedNumberOrders: HostedNumberOrderListInstance; -} - -export = HostedNumbers; diff --git a/lib/rest/preview/Marketplace.d.ts b/lib/rest/preview/Marketplace.d.ts deleted file mode 100644 index 8560e1c304..0000000000 --- a/lib/rest/preview/Marketplace.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Version = require('../../base/Version'); -import { AvailableAddOnListInstance } from './marketplace/availableAddOn'; -import { InstalledAddOnListInstance } from './marketplace/installedAddOn'; - - -/** - * Initialize the Marketplace version of Preview - */ -declare class Marketplace extends Version { - /** - * Initialize the Marketplace version of Preview - * - * @param domain - The twilio domain - */ - constructor(domain: any); - - readonly availableAddOns: AvailableAddOnListInstance; - readonly installedAddOns: InstalledAddOnListInstance; -} - -export = Marketplace; diff --git a/lib/rest/preview/Proxy.d.ts b/lib/rest/preview/Proxy.d.ts deleted file mode 100644 index 58e1de6ca4..0000000000 --- a/lib/rest/preview/Proxy.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Version = require('../../base/Version'); -import { ServiceListInstance } from './proxy/service'; - - -/** - * Initialize the Proxy version of Preview - */ -declare class Proxy extends Version { - /** - * Initialize the Proxy version of Preview - * - * @param domain - The twilio domain - */ - constructor(domain: any); - - readonly services: ServiceListInstance; -} - -export = Proxy; diff --git a/lib/rest/preview/Studio.d.ts b/lib/rest/preview/Studio.d.ts deleted file mode 100644 index f07df3f103..0000000000 --- a/lib/rest/preview/Studio.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Version = require('../../base/Version'); -import { FlowListInstance } from './studio/flow'; - - -/** - * Initialize the Studio version of Preview - */ -declare class Studio extends Version { - /** - * Initialize the Studio version of Preview - * - * @param domain - The twilio domain - */ - constructor(domain: any); - - readonly flows: FlowListInstance; -} - -export = Studio; diff --git a/lib/rest/preview/Sync.d.ts b/lib/rest/preview/Sync.d.ts deleted file mode 100644 index 880252cf97..0000000000 --- a/lib/rest/preview/Sync.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Version = require('../../base/Version'); -import { ServiceListInstance } from './sync/service'; - - -/** - * Initialize the Sync version of Preview - */ -declare class Sync extends Version { - /** - * Initialize the Sync version of Preview - * - * @param domain - The twilio domain - */ - constructor(domain: any); - - readonly services: ServiceListInstance; -} - -export = Sync; diff --git a/lib/rest/preview/Understand.d.ts b/lib/rest/preview/Understand.d.ts deleted file mode 100644 index bee83ec387..0000000000 --- a/lib/rest/preview/Understand.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Version = require('../../base/Version'); -import { AssistantListInstance } from './understand/assistant'; - - -/** - * Initialize the Understand version of Preview - */ -declare class Understand extends Version { - /** - * Initialize the Understand version of Preview - * - * @param domain - The twilio domain - */ - constructor(domain: any); - - readonly assistants: AssistantListInstance; -} - -export = Understand; diff --git a/lib/rest/preview/Wireless.d.ts b/lib/rest/preview/Wireless.d.ts deleted file mode 100644 index 67a0c9e90d..0000000000 --- a/lib/rest/preview/Wireless.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Version = require('../../base/Version'); -import { CommandListInstance } from './wireless/command'; -import { RatePlanListInstance } from './wireless/ratePlan'; -import { SimListInstance } from './wireless/sim'; - - -/** - * Initialize the Wireless version of Preview - */ -declare class Wireless extends Version { - /** - * Initialize the Wireless version of Preview - * - * @param domain - The twilio domain - */ - constructor(domain: any); - - readonly commands: CommandListInstance; - readonly ratePlans: RatePlanListInstance; - readonly sims: SimListInstance; -} - -export = Wireless; diff --git a/lib/rest/pricing/V1.d.ts b/lib/rest/pricing/V1.d.ts deleted file mode 100644 index 7575da6387..0000000000 --- a/lib/rest/pricing/V1.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Version = require('../../base/Version'); -import { MessagingListInstance } from './v1/messaging'; -import { PhoneNumberListInstance } from './v1/phoneNumber'; -import { VoiceListInstance } from './v1/voice'; - - -/** - * Initialize the V1 version of Pricing - */ -declare class V1 extends Version { - /** - * Initialize the V1 version of Pricing - * - * @param domain - The twilio domain - */ - constructor(domain: any); - - readonly messaging: MessagingListInstance; - readonly phoneNumbers: PhoneNumberListInstance; - readonly voice: VoiceListInstance; -} - -export = V1; diff --git a/lib/rest/proxy/V1.d.ts b/lib/rest/proxy/V1.d.ts deleted file mode 100644 index 31f62ac035..0000000000 --- a/lib/rest/proxy/V1.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Version = require('../../base/Version'); -import { ServiceListInstance } from './v1/service'; - - -/** - * Initialize the V1 version of Proxy - */ -declare class V1 extends Version { - /** - * Initialize the V1 version of Proxy - * - * @param domain - The twilio domain - */ - constructor(domain: any); - - readonly services: ServiceListInstance; -} - -export = V1; diff --git a/lib/rest/proxy/v1/service.js b/lib/rest/proxy/v1/service.js index 385d096e81..9ea33885a9 100644 --- a/lib/rest/proxy/v1/service.js +++ b/lib/rest/proxy/v1/service.js @@ -306,7 +306,7 @@ ServiceList = function ServiceList(version) { * Default TTL for Sessions in Service, in seconds. * @param {string} [opts.callbackUrl] - URL Twilio will send callbacks to * @param {service.geo_match_level} [opts.geoMatchLevel] - - * Whether to limit proxy numbers in the same areacode. + * Whether proxy number selected must be in the same area code as the participant identifier. * @param {service.number_selection_behavior} [opts.numberSelectionBehavior] - * What behavior to use when choosing a proxy number. * @param {string} [opts.interceptCallbackUrl] - @@ -431,13 +431,13 @@ ServicePage.prototype.getInstance = function getInstance(payload) { * @property {service.number_selection_behavior} numberSelectionBehavior - * What behavior to use when choosing a proxy number. * @property {service.geo_match_level} geoMatchLevel - - * Whether to limit proxy numbers in the same areacode. + * Whether proxy number selected must be in the same area code as the participant identifier. * @property {string} interceptCallbackUrl - * A URL for Twilio call before each Interaction. * @property {string} outOfSessionCallbackUrl - * A URL for Twilio call when a new Interaction has no Session. * @property {Date} dateCreated - The date this Service was created - * @property {Date} dateUpdated - The date this Service was updated + * @property {Date} dateUpdated - The date this Service was last updated * @property {string} url - The URL of this resource. * @property {string} links - Nested resource URLs. * @@ -529,7 +529,7 @@ ServiceInstance.prototype.remove = function remove(callback) { * Default TTL for Sessions in Service, in seconds. * @param {string} [opts.callbackUrl] - URL Twilio will send callbacks to * @param {service.geo_match_level} [opts.geoMatchLevel] - - * Whether to find proxy numbers in the same areacode. + * Whether proxy number selected must be in the same area code as the participant identifier. * @param {service.number_selection_behavior} [opts.numberSelectionBehavior] - * What behavior to use when choosing a proxy number. * @param {string} [opts.interceptCallbackUrl] - @@ -724,7 +724,7 @@ ServiceContext.prototype.remove = function remove(callback) { * Default TTL for Sessions in Service, in seconds. * @param {string} [opts.callbackUrl] - URL Twilio will send callbacks to * @param {service.geo_match_level} [opts.geoMatchLevel] - - * Whether to find proxy numbers in the same areacode. + * Whether proxy number selected must be in the same area code as the participant identifier. * @param {service.number_selection_behavior} [opts.numberSelectionBehavior] - * What behavior to use when choosing a proxy number. * @param {string} [opts.interceptCallbackUrl] - diff --git a/lib/rest/proxy/v1/service/session.js b/lib/rest/proxy/v1/service/session.js index 7523b8ca51..9401fac904 100644 --- a/lib/rest/proxy/v1/service/session.js +++ b/lib/rest/proxy/v1/service/session.js @@ -440,16 +440,17 @@ SessionPage.prototype.getInstance = function getInstance(payload) { * @property {string} accountSid - Account Sid. * @property {Date} dateStarted - The date this Session was started * @property {Date} dateEnded - The date this Session was ended - * @property {Date} dateLastInteraction - The date this Session was interaction - * @property {Date} dateExpiry - The date this Session was expiry + * @property {Date} dateLastInteraction - + * The date this Session last had an interaction + * @property {Date} dateExpiry - The date this Session should expire * @property {string} uniqueName - - * A unique, developer assigned name of this Session. + * A unique, developer assigned identifier for this Session. * @property {session.status} status - The Status of this Session * @property {string} closedReason - Reason Session ended. * @property {number} ttl - TTL for a Session, in seconds. * @property {session.mode} mode - The Mode of this Session * @property {Date} dateCreated - The date this Session was created - * @property {Date} dateUpdated - The date this Session was updated + * @property {Date} dateUpdated - The date this Session was last updated * @property {string} url - The URL of this resource. * @property {string} links - Nested resource URLs. * @@ -540,7 +541,7 @@ SessionInstance.prototype.remove = function remove(callback) { * * @param {object|function} opts - ... * @param {string} [opts.uniqueName] - The unique_name - * @param {Date} [opts.dateExpiry] - The date this Session should ge expired + * @param {Date} [opts.dateExpiry] - The date this Session should expire * @param {number} [opts.ttl] - TTL for a Session, in seconds. * @param {session.mode} [opts.mode] - The mode * @param {session.status} [opts.status] - The Status of this Session @@ -716,7 +717,7 @@ SessionContext.prototype.remove = function remove(callback) { * * @param {object|function} opts - ... * @param {string} [opts.uniqueName] - The unique_name - * @param {Date} [opts.dateExpiry] - The date this Session should ge expired + * @param {Date} [opts.dateExpiry] - The date this Session should expire * @param {number} [opts.ttl] - TTL for a Session, in seconds. * @param {session.mode} [opts.mode] - The mode * @param {session.status} [opts.status] - The Status of this Session diff --git a/lib/rest/proxy/v1/service/session/interaction.js b/lib/rest/proxy/v1/service/session/interaction.js index 177e8a8940..49a99976a2 100644 --- a/lib/rest/proxy/v1/service/session/interaction.js +++ b/lib/rest/proxy/v1/service/session/interaction.js @@ -413,7 +413,7 @@ InteractionPage.prototype.getInstance = function getInstance(payload) { * @property {string} outboundResourceUrl - * The URL of the Twilio outbound resource. * @property {Date} dateCreated - The date this Interaction was created - * @property {Date} dateUpdated - The date this Interaction was updated + * @property {Date} dateUpdated - The date this Interaction was last updated * @property {string} url - The URL of this resource. * * @param {Twilio.Proxy.V1} version - Version of the resource diff --git a/lib/rest/proxy/v1/service/session/participant.js b/lib/rest/proxy/v1/service/session/participant.js index 8619d7f3c9..a8292bf584 100644 --- a/lib/rest/proxy/v1/service/session/participant.js +++ b/lib/rest/proxy/v1/service/session/participant.js @@ -449,7 +449,7 @@ ParticipantPage.prototype.getInstance = function getInstance(payload) { * @property {string} proxyIdentifierSid - Proxy Identifier Sid. * @property {Date} dateDeleted - The date this Participant was deleted * @property {Date} dateCreated - The date this Participant was created - * @property {Date} dateUpdated - The date this Participant was updated + * @property {Date} dateUpdated - The date this Participant was last updated * @property {string} url - The URL of this resource. * @property {string} links - Nested resource URLs. * diff --git a/lib/rest/proxy/v1/service/session/participant/messageInteraction.js b/lib/rest/proxy/v1/service/session/participant/messageInteraction.js index 8a2c04336c..9d719398bc 100644 --- a/lib/rest/proxy/v1/service/session/participant/messageInteraction.js +++ b/lib/rest/proxy/v1/service/session/participant/messageInteraction.js @@ -442,12 +442,13 @@ MessageInteractionPage.prototype.getInstance = function getInstance(payload) { * @property {string} data - Message body * @property {message_interaction.type} type - The Type of this Message Interaction * @property {string} participantSid - Participant Sid. - * @property {string} inboundParticipantSid - Inbound Participant Sid. - * @property {string} inboundResourceSid - Inbound message resource Sid. + * @property {string} inboundParticipantSid - + * Always empty for Message Interactions. + * @property {string} inboundResourceSid - Always empty for Message Interactions. * @property {message_interaction.resource_status} inboundResourceStatus - - * The Inbound Resource Status of this Message Interaction - * @property {string} inboundResourceType - Message - * @property {string} inboundResourceUrl - The URL of the Twilio message resource. + * Always empty for Message Interactions. + * @property {string} inboundResourceType - Always empty for Message Interactions. + * @property {string} inboundResourceUrl - Always empty for Message Interactions. * @property {string} outboundParticipantSid - Outbound Participant Sid. * @property {string} outboundResourceSid - Outbound message resource Sid. * @property {message_interaction.resource_status} outboundResourceStatus - @@ -455,7 +456,8 @@ MessageInteractionPage.prototype.getInstance = function getInstance(payload) { * @property {string} outboundResourceType - Message * @property {string} outboundResourceUrl - The URL of the Twilio message resource. * @property {Date} dateCreated - The date this Message Interaction was created - * @property {Date} dateUpdated - The date this Message Interaction was updated + * @property {Date} dateUpdated - + * The date this Message Interaction was last updated * @property {string} url - The URL of this resource. * * @param {Twilio.Proxy.V1} version - Version of the resource diff --git a/lib/rest/studio/V1.d.ts b/lib/rest/studio/V1.d.ts deleted file mode 100644 index 07d4a3ce9f..0000000000 --- a/lib/rest/studio/V1.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Version = require('../../base/Version'); -import { FlowListInstance } from './v1/flow'; - - -/** - * Initialize the V1 version of Studio - */ -declare class V1 extends Version { - /** - * Initialize the V1 version of Studio - * - * @param domain - The twilio domain - */ - constructor(domain: any); - - readonly flows: FlowListInstance; -} - -export = V1; diff --git a/lib/rest/sync/V1.d.ts b/lib/rest/sync/V1.d.ts deleted file mode 100644 index d97e62bfe8..0000000000 --- a/lib/rest/sync/V1.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Version = require('../../base/Version'); -import { ServiceListInstance } from './v1/service'; - - -/** - * Initialize the V1 version of Sync - */ -declare class V1 extends Version { - /** - * Initialize the V1 version of Sync - * - * @param domain - The twilio domain - */ - constructor(domain: any); - - readonly services: ServiceListInstance; -} - -export = V1; diff --git a/lib/rest/taskrouter/V1.d.ts b/lib/rest/taskrouter/V1.d.ts deleted file mode 100644 index 0f17e313cc..0000000000 --- a/lib/rest/taskrouter/V1.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Version = require('../../base/Version'); -import { WorkspaceListInstance } from './v1/workspace'; - - -/** - * Initialize the V1 version of Taskrouter - */ -declare class V1 extends Version { - /** - * Initialize the V1 version of Taskrouter - * - * @param domain - The twilio domain - */ - constructor(domain: any); - - readonly workspaces: WorkspaceListInstance; -} - -export = V1; diff --git a/lib/rest/trunking/V1.d.ts b/lib/rest/trunking/V1.d.ts deleted file mode 100644 index a60c7b84fe..0000000000 --- a/lib/rest/trunking/V1.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Version = require('../../base/Version'); -import { TrunkListInstance } from './v1/trunk'; - - -/** - * Initialize the V1 version of Trunking - */ -declare class V1 extends Version { - /** - * Initialize the V1 version of Trunking - * - * @param domain - The twilio domain - */ - constructor(domain: any); - - readonly trunks: TrunkListInstance; -} - -export = V1; diff --git a/lib/rest/trunking/v1/trunk.js b/lib/rest/trunking/v1/trunk.js index 87585bc34c..b6bdac1b43 100644 --- a/lib/rest/trunking/v1/trunk.js +++ b/lib/rest/trunking/v1/trunk.js @@ -76,7 +76,8 @@ TrunkList = function TrunkList(version) { * @param {trunk.recording_setting} [opts.recording] - * The recording settings for this trunk. * @param {boolean} [opts.secure] - The Secure Trunking settings for this trunk. - * @param {boolean} [opts.cnamLookupEnabled] - The cnam_lookup_enabled + * @param {boolean} [opts.cnamLookupEnabled] - + * The Caller ID Name (CNAM) lookup setting for this trunk. * @param {function} [callback] - Callback to handle processed record * * @returns {Promise} Resolves to processed TrunkInstance @@ -431,7 +432,8 @@ TrunkPage.prototype.getInstance = function getInstance(payload) { * @property {string} friendlyName - A human-readable name for the Trunk. * @property {boolean} secure - The Secure Trunking settings for this trunk. * @property {string} recording - The recording settings for this trunk. - * @property {boolean} cnamLookupEnabled - The cnam_lookup_enabled + * @property {boolean} cnamLookupEnabled - + * The Caller ID Name (CNAM) lookup setting for this trunk. * @property {string} authType - * The types of authentication you have mapped to your domain. * @property {string} authTypeSet - The auth_type_set @@ -537,7 +539,8 @@ TrunkInstance.prototype.remove = function remove(callback) { * @param {trunk.recording_setting} [opts.recording] - * The recording settings for this trunk. * @param {boolean} [opts.secure] - The Secure Trunking settings for this trunk. - * @param {boolean} [opts.cnamLookupEnabled] - The cnam_lookup_enabled + * @param {boolean} [opts.cnamLookupEnabled] - + * The Caller ID Name (CNAM) lookup setting for this trunk. * @param {function} [callback] - Callback to handle processed record * * @returns {Promise} Resolves to processed TrunkInstance @@ -747,7 +750,8 @@ TrunkContext.prototype.remove = function remove(callback) { * @param {trunk.recording_setting} [opts.recording] - * The recording settings for this trunk. * @param {boolean} [opts.secure] - The Secure Trunking settings for this trunk. - * @param {boolean} [opts.cnamLookupEnabled] - The cnam_lookup_enabled + * @param {boolean} [opts.cnamLookupEnabled] - + * The Caller ID Name (CNAM) lookup setting for this trunk. * @param {function} [callback] - Callback to handle processed record * * @returns {Promise} Resolves to processed TrunkInstance diff --git a/lib/rest/video/V1.d.ts b/lib/rest/video/V1.d.ts deleted file mode 100644 index fea5528831..0000000000 --- a/lib/rest/video/V1.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Version = require('../../base/Version'); -import { CompositionListInstance } from './v1/composition'; -import { RecordingListInstance } from './v1/recording'; -import { RoomListInstance } from './v1/room'; - - -/** - * Initialize the V1 version of Video - */ -declare class V1 extends Version { - /** - * Initialize the V1 version of Video - * - * @param domain - The twilio domain - */ - constructor(domain: any); - - readonly compositions: CompositionListInstance; - readonly recordings: RecordingListInstance; - readonly rooms: RoomListInstance; -} - -export = V1; diff --git a/lib/rest/wireless/V1.d.ts b/lib/rest/wireless/V1.d.ts deleted file mode 100644 index cd9f8f2da2..0000000000 --- a/lib/rest/wireless/V1.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import Version = require('../../base/Version'); -import { CommandListInstance } from './v1/command'; -import { RatePlanListInstance } from './v1/ratePlan'; -import { SimListInstance } from './v1/sim'; - - -/** - * Initialize the V1 version of Wireless - */ -declare class V1 extends Version { - /** - * Initialize the V1 version of Wireless - * - * @param domain - The twilio domain - */ - constructor(domain: any); - - readonly commands: CommandListInstance; - readonly ratePlans: RatePlanListInstance; - readonly sims: SimListInstance; -} - -export = V1; diff --git a/lib/twiml/FaxResponse.d.ts b/lib/twiml/FaxResponse.d.ts deleted file mode 100644 index f8f244150c..0000000000 --- a/lib/twiml/FaxResponse.d.ts +++ /dev/null @@ -1,70 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import { HttpMethod, Url, PhoneNumber, Sid } from '../interfaces'; - -/** - * TwiML for Faxes - */ -declare class FaxResponse { - /** - * TwiML for Faxes - */ - constructor(); - - /** - * TwiML Verb - * - * @param attributes - TwiML attributes - */ - receive(attributes?: FaxResponse.ReceiveAttributes): void; - /** - * Convert to TwiML - * - * @returns TwiML XML - */ - toString(): any; -} - -declare namespace FaxResponse { - - /** - * Attributes for TwiML for Faxes - */ - export interface FaxResponseAttributes { - } - - /** - * Attributes for TwiML Verb - */ - export interface ReceiveAttributes { - /** - * Receive action URL - */ - action?: string; - /** - * Receive action URL method - */ - method?: string; - } - - /** - * Attributes for TwiML Verb - */ - export interface ReceiveAttributes { - /** - * Receive action URL - */ - action?: string; - /** - * Receive action URL method - */ - method?: string; - } - -} -export = FaxResponse; diff --git a/lib/twiml/MessagingResponse.d.ts b/lib/twiml/MessagingResponse.d.ts deleted file mode 100644 index edb8e54d5c..0000000000 --- a/lib/twiml/MessagingResponse.d.ts +++ /dev/null @@ -1,175 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import { HttpMethod, Url, PhoneNumber, Sid } from '../interfaces'; - -/** - * TwiML for Messages - */ -declare class MessagingResponse { - /** - * TwiML for Messages - */ - constructor(); - - /** - * TwiML Verb - * - * @param attributes - TwiML attributes - * @param body - Message Body - * - * @returns Message - */ - message(attributes?: MessagingResponse.MessageAttributes, body?: string): MessagingResponse.Message; - /** - * TwiML Verb - * - * @param attributes - TwiML attributes - * @param url - Redirect URL - */ - redirect(attributes: MessagingResponse.RedirectAttributes, url: string): void; - /** - * Convert to TwiML - * - * @returns TwiML XML - */ - toString(): any; -} - -declare namespace MessagingResponse { - - /** - * Attributes for TwiML for Messages - */ - export interface MessagingResponseAttributes { - } - - /** - * Attributes for TwiML Verb - */ - export interface MessageAttributes { - /** - * Action URL - */ - action?: string; - /** - * Phone Number to send Message from - */ - from?: string; - /** - * Action URL Method - */ - method?: string; - /** - * Status callback URL. Deprecated in favor of action. - */ - statusCallback?: string; - /** - * Phone Number to send Message to - */ - to?: string; - } - - /** - * Attributes for TwiML Verb - */ - export interface RedirectAttributes { - /** - * Redirect URL method - */ - method?: string; - } - - /** - * Attributes for TwiML Verb - */ - export interface MessageAttributes { - /** - * Action URL - */ - action?: string; - /** - * Phone Number to send Message from - */ - from?: string; - /** - * Action URL Method - */ - method?: string; - /** - * Status callback URL. Deprecated in favor of action. - */ - statusCallback?: string; - /** - * Phone Number to send Message to - */ - to?: string; - } - - /** - * Attributes for TwiML Verb - */ - export interface RedirectAttributes { - /** - * Redirect URL method - */ - method?: string; - } - - /** - * Attributes for TwiML Noun - */ - export interface BodyAttributes { - } - - /** - * Attributes for TwiML Noun - */ - export interface MediaAttributes { - } - - /** - * Attributes for TwiML Noun - */ - export interface BodyAttributes { - } - - /** - * Attributes for TwiML Noun - */ - export interface MediaAttributes { - } - - /** - * TwiML Verb - */ - export class Message { - /** - * TwiML Verb - * - * @param message - TwiML Verb - */ - constructor(message: any); - - /** - * TwiML Noun - * - * @param attributes - TwiML attributes - * @param message - Message Body - */ - body(attributes: MessagingResponse.BodyAttributes, message: string): void; - /** - * TwiML Noun - * - * @param attributes - TwiML attributes - * @param url - Media URL - */ - media(attributes: MessagingResponse.MediaAttributes, url: string): void; - } - -} -export = MessagingResponse; diff --git a/lib/twiml/VoiceResponse.d.ts b/lib/twiml/VoiceResponse.d.ts deleted file mode 100644 index 84a69fb7e0..0000000000 --- a/lib/twiml/VoiceResponse.d.ts +++ /dev/null @@ -1,1431 +0,0 @@ -/** - * This code was generated by - * \ / _ _ _| _ _ - * | (_)\/(_)(_|\/| |(/_ v1.0.0 - * / / - */ - -import { HttpMethod, Url, PhoneNumber, Sid } from '../interfaces'; - -/** - * TwiML for Voice - */ -declare class VoiceResponse { - /** - * TwiML for Voice - */ - constructor(); - - /** - * TwiML Verb - * - * @param attributes - TwiML attributes - * @param number - Phone number to dial - * - * @returns Dial - */ - dial(attributes?: VoiceResponse.DialAttributes, number?: string): VoiceResponse.Dial; - /** - * TwiML Verb - * - * @param attributes - TwiML attributes - */ - echo(attributes?: VoiceResponse.EchoAttributes): void; - /** - * TwiML Noun - * - * @param attributes - TwiML attributes - * @param name - Friendly name - * - * @returns Enqueue - */ - enqueue(attributes?: VoiceResponse.EnqueueAttributes, name?: string): VoiceResponse.Enqueue; - /** - * TwiML Verb - * - * @param attributes - TwiML attributes - * - * @returns Gather - */ - gather(attributes?: VoiceResponse.GatherAttributes): VoiceResponse.Gather; - /** - * TwiML Verb - * - * @param attributes - TwiML attributes - */ - hangup(attributes?: VoiceResponse.HangupAttributes): void; - /** - * TwiML Verb - * - * @param attributes - TwiML attributes - */ - leave(attributes?: VoiceResponse.LeaveAttributes): void; - /** - * TwiML Verb - * - * @param attributes - TwiML attributes - */ - pause(attributes?: VoiceResponse.PauseAttributes): void; - /** - * TwiML Verb - * - * @param attributes - TwiML attributes - * @param url - Media URL - */ - play(attributes?: VoiceResponse.PlayAttributes, url?: string): void; - /** - * TwiML Noun - * - * @param attributes - TwiML attributes - * @param name - Queue name - */ - queue(attributes: VoiceResponse.QueueAttributes, name: string): void; - /** - * TwiML Verb - * - * @param attributes - TwiML attributes - */ - record(attributes?: VoiceResponse.RecordAttributes): void; - /** - * TwiML Verb - * - * @param attributes - TwiML attributes - * @param url - Redirect URL - */ - redirect(attributes: VoiceResponse.RedirectAttributes, url: string): void; - /** - * TwiML Verb - * - * @param attributes - TwiML attributes - */ - reject(attributes?: VoiceResponse.RejectAttributes): void; - /** - * TwiML Verb - * - * @param attributes - TwiML attributes - * @param message - Message to say - */ - say(attributes: VoiceResponse.SayAttributes, message: string): void; - /** - * TwiML Noun - * - * @param attributes - TwiML attributes - * @param message - Message body - */ - sms(attributes: VoiceResponse.SmsAttributes, message: string): void; - /** - * Convert to TwiML - * - * @returns TwiML XML - */ - toString(): any; -} - -declare namespace VoiceResponse { - - type ConferenceBeep = 'true'|'false'|'onEnter'|'onExit'; - - type ConferenceRegion = 'us1'|'ie1'|'sg1'|'br1'|'au1'|'jp1'; - - type RejectReason = 'rejected'|'busy'; - - type DialTrim = 'trim-silence'|'do-not-trim'; - - type ConferenceEvent = 'start'|'end'|'join'|'leave'|'mute'|'hold'|'speaker'; - - type DialRingTone = 'at'|'au'|'bg'|'br'|'be'|'ch'|'cl'|'cn'|'cz'|'de'|'dk'|'ee'|'es'|'fi'|'fr'|'gr'|'hu'|'il'|'in'|'it'|'lt'|'jp'|'mx'|'my'|'nl'|'no'|'nz'|'ph'|'pl'|'pt'|'ru'|'se'|'sg'|'th'|'uk'|'us'|'us-old'|'tw'|'ve'|'za'; - - type SayLanguage = 'da-DK'|'de-DE'|'en-AU'|'en-CA'|'en-GB'|'en-IN'|'en-US'|'ca-ES'|'es-ES'|'es-MX'|'fi-FI'|'fr-CA'|'fr-FR'|'it-IT'|'ja-JP'|'ko-KR'|'nb-NO'|'nl-NL'|'pl-PL'|'pt-BR'|'pt-PT'|'ru-RU'|'sv-SE'|'zh-CN'|'zh-HK'|'zh-TW'; - - type NumberEvent = 'initiated'|'ringing'|'answered'|'completed'; - - type SipEvent = 'initiated'|'ringing'|'answered'|'completed'; - - type GatherLanguage = 'af-ZA'|'id-ID'|'ms-MY'|'ca-ES'|'cs-CZ'|'da-DK'|'de-DE'|'en-AU'|'en-CA'|'en-GB'|'en-IN'|'en-IE'|'en-NZ'|'en-PH'|'en-ZA'|'en-US'|'es-AR'|'es-BO'|'es-CL'|'es-CO'|'es-CR'|'es-EC'|'es-SV'|'es-ES'|'es-US'|'es-GT'|'es-HN'|'es-MX'|'es-NI'|'es-PA'|'es-PY'|'es-PE'|'es-PR'|'es-DO'|'es-UY'|'es-VE'|'eu-ES'|'il-PH'|'fr-CA'|'fr-FR'|'gl-ES'|'hr-HR'|'zu-ZA'|'is-IS'|'it-IT'|'lt-LT'|'hu-HU'|'nl-NL'|'nb-NO'|'pl-PL'|'pt-BR'|'pt-PT'|'ro-RO'|'sk-SK'|'sl-SI'|'fi-FI'|'sv-SE'|'vi-VN'|'tr-TR'|'el-GR'|'bg-BG'|'ru-RU'|'sr-RS'|'uk-UA'|'he-IL'|'ar-IL'|'ar-JO'|'ar-AE'|'ar-BH'|'ar-DZ'|'ar-SA'|'ar-IQ'|'ar-KW'|'ar-MA'|'ar-TN'|'ar-OM'|'ar-PS'|'ar-QA'|'ar-LB'|'ar-EG'|'fa-IR'|'hi-IN'|'th-TH'|'ko-KR'|'cmn-Hant-TW'|'yue-Hant-HK'|'ja-JP'|'cmn-Hans-HK'|'cmn-Hans-CN'; - - type ConferenceRecordingEvent = 'started'|'stopped'|'paused'|'resumed'|'completed'|'failed'; - - type ClientEvent = 'initiated'|'ringing'|'answered'|'completed'; - - type ConferenceTrim = 'trim-silence'|'do-not-trim'; - - type SayVoice = 'man'|'woman'|'alice'; - - type RecordTrim = 'trim-silence'|'do-not-trim'; - - type ConferenceRecord = 'do-not-record'|'record-from-start'; - - type DialRecord = 'do-not-record'|'record-from-answer'|'record-from-ringing'|'record-from-answer-dual'|'record-from-ringing-dual'; - - type DialRecordingEvent = 'in-progress'|'completed'|'failed'; - - type GatherInput = 'dtmf'|'speech'; - - /** - * Attributes for TwiML for Voice - */ - export interface VoiceResponseAttributes { - } - - /** - * Attributes for TwiML Verb - */ - export interface DialAttributes { - /** - * Action URL - */ - action?: string; - /** - * Preserve the ringing behavior of the inbound call until the Dialed call picks up - */ - answerOnBridge?: boolean; - /** - * Caller ID to display - */ - callerId?: string; - /** - * Hangup call on star press - */ - hangupOnStar?: boolean; - /** - * Action URL method - */ - method?: string; - /** - * Record the call - */ - record?: DialRecord; - /** - * Recording status callback URL - */ - recordingStatusCallback?: string; - /** - * Recording status callback events - */ - recordingStatusCallbackEvent?: DialRecordingEvent; - /** - * Recording status callback URL method - */ - recordingStatusCallbackMethod?: string; - /** - * Ringtone allows you to override the ringback tone that Twilio will play back to the caller while executing the Dial - */ - ringTone?: DialRingTone; - /** - * Max time length - */ - timeLimit?: number; - /** - * Time to wait for answer - */ - timeout?: number; - /** - * Trim the recording - */ - trim?: DialTrim; - } - - /** - * Attributes for TwiML Verb - */ - export interface EchoAttributes { - } - - /** - * Attributes for TwiML Noun - */ - export interface EnqueueAttributes { - /** - * Action URL - */ - action?: string; - /** - * Action URL method - */ - method?: string; - /** - * Wait URL - */ - waitUrl?: string; - /** - * Wait URL method - */ - waitUrlMethod?: string; - /** - * TaskRouter Workflow SID - */ - workflowSid?: string; - } - - /** - * Attributes for TwiML Verb - */ - export interface GatherAttributes { - /** - * Action URL - */ - action?: string; - /** - * Stop playing media upon speech - */ - bargeIn?: boolean; - /** - * Finish gather on key - */ - finishOnKey?: string; - /** - * Speech recognition hints - */ - hints?: string; - /** - * Input type Twilio should accept - */ - input?: GatherInput; - /** - * Language to use - */ - language?: GatherLanguage; - /** - * Max allowed time for speech input - */ - maxSpeechTime?: number; - /** - * Action URL method - */ - method?: string; - /** - * Number of digits to collect - */ - numDigits?: number; - /** - * Partial result callback URL - */ - partialResultCallback?: string; - /** - * Partial result callback URL method - */ - partialResultCallbackMethod?: string; - /** - * Profanity Filter on speech - */ - profanityFilter?: boolean; - /** - * Time to wait to gather speech input and it should be either auto or a positive integer. - */ - speechTimeout?: string; - /** - * Time to wait to gather input - */ - timeout?: number; - } - - /** - * Attributes for TwiML Verb - */ - export interface HangupAttributes { - } - - /** - * Attributes for TwiML Verb - */ - export interface LeaveAttributes { - } - - /** - * Attributes for TwiML Verb - */ - export interface PauseAttributes { - /** - * Length in seconds to pause - */ - length?: number; - } - - /** - * Attributes for TwiML Verb - */ - export interface PlayAttributes { - /** - * Play DTMF tones for digits - */ - digits?: string; - /** - * Times to loop media - */ - loop?: number; - } - - /** - * Attributes for TwiML Noun - */ - export interface QueueAttributes { - /** - * Action URL method - */ - method?: string; - /** - * TaskRouter Activity SID - */ - postWorkActivitySid?: string; - /** - * TaskRouter Reservation SID - */ - reservationSid?: string; - /** - * Action URL - */ - url?: string; - } - - /** - * Attributes for TwiML Verb - */ - export interface RecordAttributes { - /** - * Action URL - */ - action?: string; - /** - * Finish recording on key - */ - finishOnKey?: string; - /** - * Max time to record in seconds - */ - maxLength?: number; - /** - * Action URL method - */ - method?: string; - /** - * Play beep - */ - playBeep?: boolean; - /** - * Status callback URL - */ - recordingStatusCallback?: string; - /** - * Status callback URL method - */ - recordingStatusCallbackMethod?: string; - /** - * Timeout to begin recording - */ - timeout?: number; - /** - * Transcribe the recording - */ - transcribe?: boolean; - /** - * Transcribe callback URL - */ - transcribeCallback?: string; - /** - * Trim the recording - */ - trim?: RecordTrim; - } - - /** - * Attributes for TwiML Verb - */ - export interface RedirectAttributes { - /** - * Redirect URL method - */ - method?: string; - } - - /** - * Attributes for TwiML Verb - */ - export interface RejectAttributes { - /** - * Rejection reason - */ - reason?: RejectReason; - } - - /** - * Attributes for TwiML Verb - */ - export interface SayAttributes { - /** - * Message langauge - */ - language?: SayLanguage; - /** - * Times to loop message - */ - loop?: number; - /** - * Voice to use - */ - voice?: SayVoice; - } - - /** - * Attributes for TwiML Noun - */ - export interface SmsAttributes { - /** - * Action URL - */ - action?: string; - /** - * Number to send message from - */ - from?: string; - /** - * Action URL method - */ - method?: string; - /** - * Status callback URL - */ - statusCallback?: string; - /** - * Number to send message to - */ - to?: string; - } - - /** - * Attributes for TwiML Verb - */ - export interface DialAttributes { - /** - * Action URL - */ - action?: string; - /** - * Preserve the ringing behavior of the inbound call until the Dialed call picks up - */ - answerOnBridge?: boolean; - /** - * Caller ID to display - */ - callerId?: string; - /** - * Hangup call on star press - */ - hangupOnStar?: boolean; - /** - * Action URL method - */ - method?: string; - /** - * Record the call - */ - record?: DialRecord; - /** - * Recording status callback URL - */ - recordingStatusCallback?: string; - /** - * Recording status callback events - */ - recordingStatusCallbackEvent?: DialRecordingEvent; - /** - * Recording status callback URL method - */ - recordingStatusCallbackMethod?: string; - /** - * Ringtone allows you to override the ringback tone that Twilio will play back to the caller while executing the Dial - */ - ringTone?: DialRingTone; - /** - * Max time length - */ - timeLimit?: number; - /** - * Time to wait for answer - */ - timeout?: number; - /** - * Trim the recording - */ - trim?: DialTrim; - } - - /** - * Attributes for TwiML Verb - */ - export interface EchoAttributes { - } - - /** - * Attributes for TwiML Noun - */ - export interface EnqueueAttributes { - /** - * Action URL - */ - action?: string; - /** - * Action URL method - */ - method?: string; - /** - * Wait URL - */ - waitUrl?: string; - /** - * Wait URL method - */ - waitUrlMethod?: string; - /** - * TaskRouter Workflow SID - */ - workflowSid?: string; - } - - /** - * Attributes for TwiML Verb - */ - export interface GatherAttributes { - /** - * Action URL - */ - action?: string; - /** - * Stop playing media upon speech - */ - bargeIn?: boolean; - /** - * Finish gather on key - */ - finishOnKey?: string; - /** - * Speech recognition hints - */ - hints?: string; - /** - * Input type Twilio should accept - */ - input?: GatherInput; - /** - * Language to use - */ - language?: GatherLanguage; - /** - * Max allowed time for speech input - */ - maxSpeechTime?: number; - /** - * Action URL method - */ - method?: string; - /** - * Number of digits to collect - */ - numDigits?: number; - /** - * Partial result callback URL - */ - partialResultCallback?: string; - /** - * Partial result callback URL method - */ - partialResultCallbackMethod?: string; - /** - * Profanity Filter on speech - */ - profanityFilter?: boolean; - /** - * Time to wait to gather speech input and it should be either auto or a positive integer. - */ - speechTimeout?: string; - /** - * Time to wait to gather input - */ - timeout?: number; - } - - /** - * Attributes for TwiML Verb - */ - export interface HangupAttributes { - } - - /** - * Attributes for TwiML Verb - */ - export interface LeaveAttributes { - } - - /** - * Attributes for TwiML Verb - */ - export interface PauseAttributes { - /** - * Length in seconds to pause - */ - length?: number; - } - - /** - * Attributes for TwiML Verb - */ - export interface PlayAttributes { - /** - * Play DTMF tones for digits - */ - digits?: string; - /** - * Times to loop media - */ - loop?: number; - } - - /** - * Attributes for TwiML Noun - */ - export interface QueueAttributes { - /** - * Action URL method - */ - method?: string; - /** - * TaskRouter Activity SID - */ - postWorkActivitySid?: string; - /** - * TaskRouter Reservation SID - */ - reservationSid?: string; - /** - * Action URL - */ - url?: string; - } - - /** - * Attributes for TwiML Verb - */ - export interface RecordAttributes { - /** - * Action URL - */ - action?: string; - /** - * Finish recording on key - */ - finishOnKey?: string; - /** - * Max time to record in seconds - */ - maxLength?: number; - /** - * Action URL method - */ - method?: string; - /** - * Play beep - */ - playBeep?: boolean; - /** - * Status callback URL - */ - recordingStatusCallback?: string; - /** - * Status callback URL method - */ - recordingStatusCallbackMethod?: string; - /** - * Timeout to begin recording - */ - timeout?: number; - /** - * Transcribe the recording - */ - transcribe?: boolean; - /** - * Transcribe callback URL - */ - transcribeCallback?: string; - /** - * Trim the recording - */ - trim?: RecordTrim; - } - - /** - * Attributes for TwiML Verb - */ - export interface RedirectAttributes { - /** - * Redirect URL method - */ - method?: string; - } - - /** - * Attributes for TwiML Verb - */ - export interface RejectAttributes { - /** - * Rejection reason - */ - reason?: RejectReason; - } - - /** - * Attributes for TwiML Verb - */ - export interface SayAttributes { - /** - * Message langauge - */ - language?: SayLanguage; - /** - * Times to loop message - */ - loop?: number; - /** - * Voice to use - */ - voice?: SayVoice; - } - - /** - * Attributes for TwiML Noun - */ - export interface SmsAttributes { - /** - * Action URL - */ - action?: string; - /** - * Number to send message from - */ - from?: string; - /** - * Action URL method - */ - method?: string; - /** - * Status callback URL - */ - statusCallback?: string; - /** - * Number to send message to - */ - to?: string; - } - - /** - * Attributes for TwiML Noun - */ - export interface ClientAttributes { - /** - * Client URL Method - */ - method?: string; - /** - * Status Callback URL - */ - statusCallback?: string; - /** - * Events to trigger status callback - */ - statusCallbackEvent?: ClientEvent; - /** - * Status Callback URL Method - */ - statusCallbackMethod?: string; - /** - * Client URL - */ - url?: string; - } - - /** - * Attributes for TwiML Noun - */ - export interface ConferenceAttributes { - /** - * Play beep when joining - */ - beep?: ConferenceBeep; - /** - * End the conferenceon exit - */ - endConferenceOnExit?: boolean; - /** - * Event callback URL - */ - eventCallbackUrl?: string; - /** - * Maximum number of participants - */ - maxParticipants?: number; - /** - * Join the conference muted - */ - muted?: boolean; - /** - * Record the conference - */ - record?: ConferenceRecord; - /** - * Recording status callback URL - */ - recordingStatusCallback?: string; - /** - * Recording status callback events - */ - recordingStatusCallbackEvent?: ConferenceRecordingEvent; - /** - * Recording status callback URL method - */ - recordingStatusCallbackMethod?: string; - /** - * Conference region - */ - region?: ConferenceRegion; - /** - * Start the conference on enter - */ - startConferenceOnEnter?: boolean; - /** - * Status callback URL - */ - statusCallback?: string; - /** - * Events to call status callback URL - */ - statusCallbackEvent?: ConferenceEvent; - /** - * Status callback URL method - */ - statusCallbackMethod?: string; - /** - * Trim the conference recording - */ - trim?: ConferenceTrim; - /** - * Wait URL method - */ - waitMethod?: string; - /** - * Wait URL - */ - waitUrl?: string; - /** - * Call whisper - */ - whisper?: string; - } - - /** - * Attributes for TwiML Noun - */ - export interface NumberAttributes { - /** - * TwiML URL method - */ - method?: string; - /** - * DTMF tones to play when the call is answered - */ - sendDigits?: string; - /** - * Status callback URL - */ - statusCallback?: string; - /** - * Events to call status callback - */ - statusCallbackEvent?: NumberEvent; - /** - * Status callback URL method - */ - statusCallbackMethod?: string; - /** - * TwiML URL - */ - url?: string; - } - - /** - * Attributes for TwiML Noun - */ - export interface QueueAttributes { - /** - * Action URL method - */ - method?: string; - /** - * TaskRouter Activity SID - */ - postWorkActivitySid?: string; - /** - * TaskRouter Reservation SID - */ - reservationSid?: string; - /** - * Action URL - */ - url?: string; - } - - /** - * Attributes for TwiML Noun - */ - export interface SimAttributes { - } - - /** - * Attributes for TwiML Noun - */ - export interface SipAttributes { - /** - * Action URL method - */ - method?: string; - /** - * SIP Password - */ - password?: string; - /** - * Status callback URL - */ - statusCallback?: string; - /** - * Status callback events - */ - statusCallbackEvent?: SipEvent; - /** - * Status callback URL method - */ - statusCallbackMethod?: string; - /** - * Action URL - */ - url?: string; - /** - * SIP Username - */ - username?: string; - } - - /** - * Attributes for TwiML Noun - */ - export interface TaskAttributes { - /** - * Task priority - */ - priority?: number; - /** - * Timeout associated with task - */ - timeout?: number; - } - - /** - * Attributes for TwiML Verb - */ - export interface SayAttributes { - /** - * Message langauge - */ - language?: SayLanguage; - /** - * Times to loop message - */ - loop?: number; - /** - * Voice to use - */ - voice?: SayVoice; - } - - /** - * Attributes for TwiML Verb - */ - export interface PauseAttributes { - /** - * Length in seconds to pause - */ - length?: number; - } - - /** - * Attributes for TwiML Verb - */ - export interface PlayAttributes { - /** - * Play DTMF tones for digits - */ - digits?: string; - /** - * Times to loop media - */ - loop?: number; - } - - /** - * Attributes for TwiML Noun - */ - export interface ClientAttributes { - /** - * Client URL Method - */ - method?: string; - /** - * Status Callback URL - */ - statusCallback?: string; - /** - * Events to trigger status callback - */ - statusCallbackEvent?: ClientEvent; - /** - * Status Callback URL Method - */ - statusCallbackMethod?: string; - /** - * Client URL - */ - url?: string; - } - - /** - * Attributes for TwiML Noun - */ - export interface ConferenceAttributes { - /** - * Play beep when joining - */ - beep?: ConferenceBeep; - /** - * End the conferenceon exit - */ - endConferenceOnExit?: boolean; - /** - * Event callback URL - */ - eventCallbackUrl?: string; - /** - * Maximum number of participants - */ - maxParticipants?: number; - /** - * Join the conference muted - */ - muted?: boolean; - /** - * Record the conference - */ - record?: ConferenceRecord; - /** - * Recording status callback URL - */ - recordingStatusCallback?: string; - /** - * Recording status callback events - */ - recordingStatusCallbackEvent?: ConferenceRecordingEvent; - /** - * Recording status callback URL method - */ - recordingStatusCallbackMethod?: string; - /** - * Conference region - */ - region?: ConferenceRegion; - /** - * Start the conference on enter - */ - startConferenceOnEnter?: boolean; - /** - * Status callback URL - */ - statusCallback?: string; - /** - * Events to call status callback URL - */ - statusCallbackEvent?: ConferenceEvent; - /** - * Status callback URL method - */ - statusCallbackMethod?: string; - /** - * Trim the conference recording - */ - trim?: ConferenceTrim; - /** - * Wait URL method - */ - waitMethod?: string; - /** - * Wait URL - */ - waitUrl?: string; - /** - * Call whisper - */ - whisper?: string; - } - - /** - * Attributes for TwiML Noun - */ - export interface NumberAttributes { - /** - * TwiML URL method - */ - method?: string; - /** - * DTMF tones to play when the call is answered - */ - sendDigits?: string; - /** - * Status callback URL - */ - statusCallback?: string; - /** - * Events to call status callback - */ - statusCallbackEvent?: NumberEvent; - /** - * Status callback URL method - */ - statusCallbackMethod?: string; - /** - * TwiML URL - */ - url?: string; - } - - /** - * Attributes for TwiML Noun - */ - export interface QueueAttributes { - /** - * Action URL method - */ - method?: string; - /** - * TaskRouter Activity SID - */ - postWorkActivitySid?: string; - /** - * TaskRouter Reservation SID - */ - reservationSid?: string; - /** - * Action URL - */ - url?: string; - } - - /** - * Attributes for TwiML Noun - */ - export interface SimAttributes { - } - - /** - * Attributes for TwiML Noun - */ - export interface SipAttributes { - /** - * Action URL method - */ - method?: string; - /** - * SIP Password - */ - password?: string; - /** - * Status callback URL - */ - statusCallback?: string; - /** - * Status callback events - */ - statusCallbackEvent?: SipEvent; - /** - * Status callback URL method - */ - statusCallbackMethod?: string; - /** - * Action URL - */ - url?: string; - /** - * SIP Username - */ - username?: string; - } - - /** - * Attributes for TwiML Noun - */ - export interface TaskAttributes { - /** - * Task priority - */ - priority?: number; - /** - * Timeout associated with task - */ - timeout?: number; - } - - /** - * Attributes for TwiML Verb - */ - export interface SayAttributes { - /** - * Message langauge - */ - language?: SayLanguage; - /** - * Times to loop message - */ - loop?: number; - /** - * Voice to use - */ - voice?: SayVoice; - } - - /** - * Attributes for TwiML Verb - */ - export interface PauseAttributes { - /** - * Length in seconds to pause - */ - length?: number; - } - - /** - * Attributes for TwiML Verb - */ - export interface PlayAttributes { - /** - * Play DTMF tones for digits - */ - digits?: string; - /** - * Times to loop media - */ - loop?: number; - } - - /** - * TwiML Verb - */ - export class Gather { - /** - * TwiML Verb - * - * @param gather - TwiML Verb - */ - constructor(gather: any); - - /** - * TwiML Verb - * - * @param attributes - TwiML attributes - */ - pause(attributes?: VoiceResponse.PauseAttributes): void; - /** - * TwiML Verb - * - * @param attributes - TwiML attributes - * @param url - Media URL - */ - play(attributes?: VoiceResponse.PlayAttributes, url?: string): void; - /** - * TwiML Verb - * - * @param attributes - TwiML attributes - * @param message - Message to say - */ - say(attributes: VoiceResponse.SayAttributes, message: string): void; - } - - /** - * TwiML Noun - */ - export class Enqueue { - /** - * TwiML Noun - * - * @param enqueue - TwiML Noun - */ - constructor(enqueue: any); - - /** - * TwiML Noun - * - * @param attributes - TwiML attributes - * @param body - TaskRouter task attributes - */ - task(attributes: VoiceResponse.TaskAttributes, body: string): void; - } - - /** - * TwiML Verb - */ - export class Dial { - /** - * TwiML Verb - * - * @param dial - TwiML Verb - */ - constructor(dial: any); - - /** - * TwiML Noun - * - * @param attributes - TwiML attributes - * @param name - Client name - */ - client(attributes: VoiceResponse.ClientAttributes, name: string): void; - /** - * TwiML Noun - * - * @param attributes - TwiML attributes - * @param name - Conference name - */ - conference(attributes: VoiceResponse.ConferenceAttributes, name: string): void; - /** - * TwiML Noun - * - * @param attributes - TwiML attributes - * @param phoneNumber - Phone Number to dial - */ - number(attributes: VoiceResponse.NumberAttributes, phoneNumber: string): void; - /** - * TwiML Noun - * - * @param attributes - TwiML attributes - * @param name - Queue name - */ - queue(attributes: VoiceResponse.QueueAttributes, name: string): void; - /** - * TwiML Noun - * - * @param attributes - TwiML attributes - * @param simSid - SIM SID - */ - sim(attributes: VoiceResponse.SimAttributes, simSid: string): void; - /** - * TwiML Noun - * - * @param attributes - TwiML attributes - * @param sipUrl - SIP URL - */ - sip(attributes: VoiceResponse.SipAttributes, sipUrl: string): void; - } - -} -export = VoiceResponse; diff --git a/spec/integration/rest/Twilio.spec.js b/spec/integration/rest/Twilio.spec.js deleted file mode 100644 index bf64fc11e6..0000000000 --- a/spec/integration/rest/Twilio.spec.js +++ /dev/null @@ -1,44 +0,0 @@ -'use strict'; -var proxyquire = require('proxyquire'); -var _ = require('lodash'); /* jshint ignore:line */ -var Holodeck = require('../holodeck'); /* jshint ignore:line */ -var Response = require( - '../../../lib/http/response'); /* jshint ignore:line */ -var RestException = require( - '../../../lib/base/RestException'); /* jshint ignore:line */ -var Twilio = require('../../../lib'); /* jshint ignore:line */ - -var client; -var holodeck; - -describe('validateSslCert', function() { - beforeEach(function() { - holodeck = new Holodeck(); - client = new Twilio('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', 'AUTHTOKEN', { - httpClient: holodeck, - }); - }); - - it('Should successfully validate a working SSL certificate', function() { - holodeck.mock(new Response(200, '')); - - let resp = client.validateSslCert(); - - resp.finally(() => { - expect(resp.isFulfilled()).toBe(true); - done(); - - }); - }); - - it('should fail to validate a broken SSL certificate', function(done) { - holodeck.mock(new Response(504, '')); - - let resp = client.validateSslCert(); - - resp.finally(() => { - expect(resp.isRejected()).toBe(true); - done(); - }); - }); - });