UNPKG

@signalwire/compatibility-api

Version:
4 lines 12.3 MB
{ "version": 3, "sources": ["../package.json", "../lib/base/RestException.js", "../lib/http/response.js", "../lib/http/request.js", "../lib/base/RequestClient.js", "../lib/base/Domain.js", "../lib/base/Page.js", "../lib/base/deserialize.js", "../lib/base/values.js", "../lib/rest/accounts/v1/authTokenPromotion.js", "../lib/rest/accounts/v1/credential/aws.js", "../lib/rest/accounts/v1/credential/publicKey.js", "../lib/rest/accounts/v1/credential.js", "../lib/rest/accounts/v1/secondaryAuthToken.js", "../lib/base/Version.js", "../lib/rest/accounts/V1.js", "../lib/rest/Accounts.js", "../lib/rest/api/v2010/account/address/dependentPhoneNumber.js", "../lib/base/serialize.js", "../lib/rest/api/v2010/account/address.js", "../lib/rest/api/v2010/account/application.js", "../lib/rest/api/v2010/account/authorizedConnectApp.js", "../lib/rest/api/v2010/account/availablePhoneNumber/local.js", "../lib/rest/api/v2010/account/availablePhoneNumber/machineToMachine.js", "../lib/rest/api/v2010/account/availablePhoneNumber/mobile.js", "../lib/rest/api/v2010/account/availablePhoneNumber/national.js", "../lib/rest/api/v2010/account/availablePhoneNumber/sharedCost.js", "../lib/rest/api/v2010/account/availablePhoneNumber/tollFree.js", "../lib/rest/api/v2010/account/availablePhoneNumber/voip.js", "../lib/rest/api/v2010/account/availablePhoneNumber.js", "../lib/rest/api/v2010/account/balance.js", "../lib/rest/api/v2010/account/call/event.js", "../lib/rest/api/v2010/account/call/feedback.js", "../lib/rest/api/v2010/account/call/feedbackSummary.js", "../lib/rest/api/v2010/account/call/notification.js", "../lib/rest/api/v2010/account/call/payment.js", "../lib/rest/api/v2010/account/call/recording.js", "../lib/rest/api/v2010/account/call/siprec.js", "../lib/rest/api/v2010/account/call/stream.js", "../lib/rest/api/v2010/account/call.js", "../lib/rest/api/v2010/account/conference/participant.js", "../lib/rest/api/v2010/account/conference/recording.js", "../lib/rest/api/v2010/account/conference.js", "../lib/rest/api/v2010/account/connectApp.js", "../lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn/assignedAddOnExtension.js", "../lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn.js", "../lib/rest/api/v2010/account/incomingPhoneNumber/local.js", "../lib/rest/api/v2010/account/incomingPhoneNumber/mobile.js", "../lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.js", "../lib/rest/api/v2010/account/incomingPhoneNumber.js", "../lib/rest/api/v2010/account/key.js", "../lib/rest/api/v2010/account/message/feedback.js", "../lib/rest/api/v2010/account/message/media.js", "../lib/rest/api/v2010/account/message.js", "../lib/rest/api/v2010/account/newKey.js", "../lib/rest/api/v2010/account/newSigningKey.js", "../lib/rest/api/v2010/account/notification.js", "../lib/rest/api/v2010/account/outgoingCallerId.js", "../lib/rest/api/v2010/account/queue/member.js", "../lib/rest/api/v2010/account/queue.js", "../lib/rest/api/v2010/account/recording/addOnResult/payload.js", "../lib/rest/api/v2010/account/recording/addOnResult.js", "../lib/rest/api/v2010/account/recording/transcription.js", "../lib/rest/api/v2010/account/recording.js", "../lib/rest/api/v2010/account/shortCode.js", "../lib/rest/api/v2010/account/signingKey.js", "../lib/rest/api/v2010/account/sip/credentialList/credential.js", "../lib/rest/api/v2010/account/sip/credentialList.js", "../lib/rest/api/v2010/account/sip/domain/authTypes/authCallsMapping/authCallsCredentialListMapping.js", "../lib/rest/api/v2010/account/sip/domain/authTypes/authCallsMapping/authCallsIpAccessControlListMapping.js", "../lib/rest/api/v2010/account/sip/domain/authTypes/authCallsMapping.js", "../lib/rest/api/v2010/account/sip/domain/authTypes/authRegistrationsMapping/authRegistrationsCredentialListMapping.js", "../lib/rest/api/v2010/account/sip/domain/authTypes/authRegistrationsMapping.js", "../lib/rest/api/v2010/account/sip/domain/authTypes.js", "../lib/rest/api/v2010/account/sip/domain/credentialListMapping.js", "../lib/rest/api/v2010/account/sip/domain/ipAccessControlListMapping.js", "../lib/rest/api/v2010/account/sip/domain.js", "../lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.js", "../lib/rest/api/v2010/account/sip/ipAccessControlList.js", "../lib/rest/api/v2010/account/sip.js", "../lib/rest/api/v2010/account/token.js", "../lib/rest/api/v2010/account/transcription.js", "../lib/rest/api/v2010/account/usage/record/allTime.js", "../lib/rest/api/v2010/account/usage/record/daily.js", "../lib/rest/api/v2010/account/usage/record/lastMonth.js", "../lib/rest/api/v2010/account/usage/record/monthly.js", "../lib/rest/api/v2010/account/usage/record/thisMonth.js", "../lib/rest/api/v2010/account/usage/record/today.js", "../lib/rest/api/v2010/account/usage/record/yearly.js", "../lib/rest/api/v2010/account/usage/record/yesterday.js", "../lib/rest/api/v2010/account/usage/record.js", "../lib/rest/api/v2010/account/usage/trigger.js", "../lib/rest/api/v2010/account/usage.js", "../lib/rest/api/v2010/account/validationRequest.js", "../lib/rest/api/v2010/account.js", "../lib/rest/api/V2010.js", "../lib/rest/Api.js", "../lib/rest/autopilot/v1/assistant/defaults.js", "../lib/rest/autopilot/v1/assistant/dialogue.js", "../lib/rest/autopilot/v1/assistant/fieldType/fieldValue.js", "../lib/rest/autopilot/v1/assistant/fieldType.js", "../lib/rest/autopilot/v1/assistant/modelBuild.js", "../lib/rest/autopilot/v1/assistant/query.js", "../lib/rest/autopilot/v1/assistant/styleSheet.js", "../lib/rest/autopilot/v1/assistant/task/field.js", "../lib/rest/autopilot/v1/assistant/task/sample.js", "../lib/rest/autopilot/v1/assistant/task/taskActions.js", "../lib/rest/autopilot/v1/assistant/task/taskStatistics.js", "../lib/rest/autopilot/v1/assistant/task.js", "../lib/rest/autopilot/v1/assistant/webhook.js", "../lib/rest/autopilot/v1/assistant.js", "../lib/rest/autopilot/v1/restoreAssistant.js", "../lib/rest/autopilot/V1.js", "../lib/rest/Autopilot.js", "../lib/rest/chat/v1/credential.js", "../lib/rest/chat/v1/service/channel/invite.js", "../lib/rest/chat/v1/service/channel/member.js", "../lib/rest/chat/v1/service/channel/message.js", "../lib/rest/chat/v1/service/channel.js", "../lib/rest/chat/v1/service/role.js", "../lib/rest/chat/v1/service/user/userChannel.js", "../lib/rest/chat/v1/service/user.js", "../lib/rest/chat/v1/service.js", "../lib/rest/chat/V1.js", "../lib/rest/chat/v2/credential.js", "../lib/rest/chat/v2/service/binding.js", "../lib/rest/chat/v2/service/channel/invite.js", "../lib/rest/chat/v2/service/channel/member.js", "../lib/rest/chat/v2/service/channel/message.js", "../lib/rest/chat/v2/service/channel/webhook.js", "../lib/rest/chat/v2/service/channel.js", "../lib/rest/chat/v2/service/role.js", "../lib/rest/chat/v2/service/user/userBinding.js", "../lib/rest/chat/v2/service/user/userChannel.js", "../lib/rest/chat/v2/service/user.js", "../lib/rest/chat/v2/service.js", "../lib/rest/chat/V2.js", "../lib/rest/chat/v3/channel.js", "../lib/rest/chat/V3.js", "../lib/rest/Chat.js", "../lib/rest/conversations/v1/addressConfiguration.js", "../lib/rest/conversations/v1/configuration/webhook.js", "../lib/rest/conversations/v1/configuration.js", "../lib/rest/conversations/v1/conversation/message/deliveryReceipt.js", "../lib/rest/conversations/v1/conversation/message.js", "../lib/rest/conversations/v1/conversation/participant.js", "../lib/rest/conversations/v1/conversation/webhook.js", "../lib/rest/conversations/v1/conversation.js", "../lib/rest/conversations/v1/credential.js", "../lib/rest/conversations/v1/participantConversation.js", "../lib/rest/conversations/v1/role.js", "../lib/rest/conversations/v1/service/binding.js", "../lib/rest/conversations/v1/service/configuration/notification.js", "../lib/rest/conversations/v1/service/configuration/webhook.js", "../lib/rest/conversations/v1/service/configuration.js", "../lib/rest/conversations/v1/service/conversation/message/deliveryReceipt.js", "../lib/rest/conversations/v1/service/conversation/message.js", "../lib/rest/conversations/v1/service/conversation/participant.js", "../lib/rest/conversations/v1/service/conversation/webhook.js", "../lib/rest/conversations/v1/service/conversation.js", "../lib/rest/conversations/v1/service/participantConversation.js", "../lib/rest/conversations/v1/service/role.js", "../lib/rest/conversations/v1/service/user/userConversation.js", "../lib/rest/conversations/v1/service/user.js", "../lib/rest/conversations/v1/service.js", "../lib/rest/conversations/v1/user/userConversation.js", "../lib/rest/conversations/v1/user.js", "../lib/rest/conversations/V1.js", "../lib/rest/Conversations.js", "../lib/rest/events/v1/eventType.js", "../lib/rest/events/v1/schema/version.js", "../lib/rest/events/v1/schema.js", "../lib/rest/events/v1/sink/sinkTest.js", "../lib/rest/events/v1/sink/sinkValidate.js", "../lib/rest/events/v1/sink.js", "../lib/rest/events/v1/subscription/subscribedEvent.js", "../lib/rest/events/v1/subscription.js", "../lib/rest/events/V1.js", "../lib/rest/Events.js", "../lib/rest/fax/v1/fax/faxMedia.js", "../lib/rest/fax/v1/fax.js", "../lib/rest/fax/V1.js", "../lib/rest/Fax.js", "../lib/rest/flexApi/v1/channel.js", "../lib/rest/flexApi/v1/configuration.js", "../lib/rest/flexApi/v1/flexFlow.js", "../lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelInvite.js", "../lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.js", "../lib/rest/flexApi/v1/interaction/interactionChannel.js", "../lib/rest/flexApi/v1/interaction.js", "../lib/rest/flexApi/v1/webChannel.js", "../lib/rest/flexApi/V1.js", "../lib/rest/FlexApi.js", "../lib/rest/frontlineApi/v1/user.js", "../lib/rest/frontlineApi/V1.js", "../lib/rest/FrontlineApi.js", "../lib/rest/insights/v1/annotation.js", "../lib/rest/insights/v1/call/summary.js", "../lib/rest/insights/v1/call/event.js", "../lib/rest/insights/v1/call/metric.js", "../lib/rest/insights/v1/call.js", "../lib/rest/insights/v1/callSummaries.js", "../lib/rest/insights/v1/conference/conferenceParticipant.js", "../lib/rest/insights/v1/conference.js", "../lib/rest/insights/v1/room/participant.js", "../lib/rest/insights/v1/room.js", "../lib/rest/insights/v1/setting.js", "../lib/rest/insights/V1.js", "../lib/rest/Insights.js", "../lib/rest/ipMessaging/v1/credential.js", "../lib/rest/ipMessaging/v1/service/channel/invite.js", "../lib/rest/ipMessaging/v1/service/channel/member.js", "../lib/rest/ipMessaging/v1/service/channel/message.js", "../lib/rest/ipMessaging/v1/service/channel.js", "../lib/rest/ipMessaging/v1/service/role.js", "../lib/rest/ipMessaging/v1/service/user/userChannel.js", "../lib/rest/ipMessaging/v1/service/user.js", "../lib/rest/ipMessaging/v1/service.js", "../lib/rest/ipMessaging/V1.js", "../lib/rest/ipMessaging/v2/credential.js", "../lib/rest/ipMessaging/v2/service/binding.js", "../lib/rest/ipMessaging/v2/service/channel/invite.js", "../lib/rest/ipMessaging/v2/service/channel/member.js", "../lib/rest/ipMessaging/v2/service/channel/message.js", "../lib/rest/ipMessaging/v2/service/channel/webhook.js", "../lib/rest/ipMessaging/v2/service/channel.js", "../lib/rest/ipMessaging/v2/service/role.js", "../lib/rest/ipMessaging/v2/service/user/userBinding.js", "../lib/rest/ipMessaging/v2/service/user/userChannel.js", "../lib/rest/ipMessaging/v2/service/user.js", "../lib/rest/ipMessaging/v2/service.js", "../lib/rest/ipMessaging/V2.js", "../lib/rest/IpMessaging.js", "../lib/rest/lookups/v1/phoneNumber.js", "../lib/rest/lookups/V1.js", "../lib/rest/Lookups.js", "../lib/rest/media/v1/mediaProcessor.js", "../lib/rest/media/v1/mediaRecording.js", "../lib/rest/media/v1/playerStreamer/playbackGrant.js", "../lib/rest/media/v1/playerStreamer.js", "../lib/rest/media/V1.js", "../lib/rest/Media.js", "../lib/rest/messaging/v1/brandRegistration/brandVetting.js", "../lib/rest/messaging/v1/brandRegistration.js", "../lib/rest/messaging/v1/deactivation.js", "../lib/rest/messaging/v1/externalCampaign.js", "../lib/rest/messaging/v1/service/alphaSender.js", "../lib/rest/messaging/v1/service/phoneNumber.js", "../lib/rest/messaging/v1/service/shortCode.js", "../lib/rest/messaging/v1/service/usAppToPerson.js", "../lib/rest/messaging/v1/service/usAppToPersonUsecase.js", "../lib/rest/messaging/v1/service.js", "../lib/rest/messaging/v1/usecase.js", "../lib/rest/messaging/V1.js", "../lib/rest/Messaging.js", "../lib/rest/monitor/v1/alert.js", "../lib/rest/monitor/v1/event.js", "../lib/rest/monitor/V1.js", "../lib/rest/Monitor.js", "../lib/rest/notify/v1/credential.js", "../lib/rest/notify/v1/service/binding.js", "../lib/rest/notify/v1/service/notification.js", "../lib/rest/notify/v1/service.js", "../lib/rest/notify/V1.js", "../lib/rest/Notify.js", "../lib/rest/numbers/v2/regulatoryCompliance/bundle/bundleCopy.js", "../lib/rest/numbers/v2/regulatoryCompliance/bundle/evaluation.js", "../lib/rest/numbers/v2/regulatoryCompliance/bundle/itemAssignment.js", "../lib/rest/numbers/v2/regulatoryCompliance/bundle/replaceItems.js", "../lib/rest/numbers/v2/regulatoryCompliance/bundle.js", "../lib/rest/numbers/v2/regulatoryCompliance/endUser.js", "../lib/rest/numbers/v2/regulatoryCompliance/endUserType.js", "../lib/rest/numbers/v2/regulatoryCompliance/regulation.js", "../lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.js", "../lib/rest/numbers/v2/regulatoryCompliance/supportingDocumentType.js", "../lib/rest/numbers/v2/regulatoryCompliance.js", "../lib/rest/numbers/V2.js", "../lib/rest/Numbers.js", "../lib/rest/preview/bulk_exports/exportConfiguration.js", "../lib/rest/preview/bulk_exports/export/day.js", "../lib/rest/preview/bulk_exports/export/exportCustomJob.js", "../lib/rest/preview/bulk_exports/export/job.js", "../lib/rest/preview/bulk_exports/export.js", "../lib/rest/preview/BulkExports.js", "../lib/rest/preview/deployed_devices/fleet/certificate.js", "../lib/rest/preview/deployed_devices/fleet/deployment.js", "../lib/rest/preview/deployed_devices/fleet/device.js", "../lib/rest/preview/deployed_devices/fleet/key.js", "../lib/rest/preview/deployed_devices/fleet.js", "../lib/rest/preview/DeployedDevices.js", "../lib/rest/preview/hosted_numbers/authorizationDocument/dependentHostedNumberOrder.js", "../lib/rest/preview/hosted_numbers/authorizationDocument.js", "../lib/rest/preview/hosted_numbers/hostedNumberOrder.js", "../lib/rest/preview/HostedNumbers.js", "../lib/rest/preview/marketplace/availableAddOn/availableAddOnExtension.js", "../lib/rest/preview/marketplace/availableAddOn.js", "../lib/rest/preview/marketplace/installedAddOn/installedAddOnExtension.js", "../lib/rest/preview/marketplace/installedAddOn.js", "../lib/rest/preview/Marketplace.js", "../lib/rest/preview/sync/service/document/documentPermission.js", "../lib/rest/preview/sync/service/document.js", "../lib/rest/preview/sync/service/syncList/syncListItem.js", "../lib/rest/preview/sync/service/syncList/syncListPermission.js", "../lib/rest/preview/sync/service/syncList.js", "../lib/rest/preview/sync/service/syncMap/syncMapItem.js", "../lib/rest/preview/sync/service/syncMap/syncMapPermission.js", "../lib/rest/preview/sync/service/syncMap.js", "../lib/rest/preview/sync/service.js", "../lib/rest/preview/Sync.js", "../lib/rest/preview/trusted_comms/brandedChannel/channel.js", "../lib/rest/preview/trusted_comms/brandedChannel.js", "../lib/rest/preview/trusted_comms/brandsInformation.js", "../lib/rest/preview/trusted_comms/cps.js", "../lib/rest/preview/trusted_comms/currentCall.js", "../lib/rest/preview/TrustedComms.js", "../lib/rest/preview/understand/assistant/assistantFallbackActions.js", "../lib/rest/preview/understand/assistant/assistantInitiationActions.js", "../lib/rest/preview/understand/assistant/dialogue.js", "../lib/rest/preview/understand/assistant/fieldType/fieldValue.js", "../lib/rest/preview/understand/assistant/fieldType.js", "../lib/rest/preview/understand/assistant/modelBuild.js", "../lib/rest/preview/understand/assistant/query.js", "../lib/rest/preview/understand/assistant/styleSheet.js", "../lib/rest/preview/understand/assistant/task/field.js", "../lib/rest/preview/understand/assistant/task/sample.js", "../lib/rest/preview/understand/assistant/task/taskActions.js", "../lib/rest/preview/understand/assistant/task/taskStatistics.js", "../lib/rest/preview/understand/assistant/task.js", "../lib/rest/preview/understand/assistant.js", "../lib/rest/preview/Understand.js", "../lib/rest/preview/wireless/command.js", "../lib/rest/preview/wireless/ratePlan.js", "../lib/rest/preview/wireless/sim/usage.js", "../lib/rest/preview/wireless/sim.js", "../lib/rest/preview/Wireless.js", "../lib/rest/Preview.js", "../lib/rest/pricing/v1/messaging/country.js", "../lib/rest/pricing/v1/messaging.js", "../lib/rest/pricing/v1/phoneNumber/country.js", "../lib/rest/pricing/v1/phoneNumber.js", "../lib/rest/pricing/v1/voice/country.js", "../lib/rest/pricing/v1/voice/number.js", "../lib/rest/pricing/v1/voice.js", "../lib/rest/pricing/V1.js", "../lib/rest/pricing/v2/country.js", "../lib/rest/pricing/v2/number.js", "../lib/rest/pricing/v2/voice/country.js", "../lib/rest/pricing/v2/voice/number.js", "../lib/rest/pricing/v2/voice.js", "../lib/rest/pricing/V2.js", "../lib/rest/Pricing.js", "../lib/rest/proxy/v1/service/phoneNumber.js", "../lib/rest/proxy/v1/service/session/interaction.js", "../lib/rest/proxy/v1/service/session/participant/messageInteraction.js", "../lib/rest/proxy/v1/service/session/participant.js", "../lib/rest/proxy/v1/service/session.js", "../lib/rest/proxy/v1/service/shortCode.js", "../lib/rest/proxy/v1/service.js", "../lib/rest/proxy/V1.js", "../lib/rest/Proxy.js", "../lib/rest/serverless/v1/service/asset/assetVersion.js", "../lib/rest/serverless/v1/service/asset.js", "../lib/rest/serverless/v1/service/build/buildStatus.js", "../lib/rest/serverless/v1/service/build.js", "../lib/rest/serverless/v1/service/environment/deployment.js", "../lib/rest/serverless/v1/service/environment/log.js", "../lib/rest/serverless/v1/service/environment/variable.js", "../lib/rest/serverless/v1/service/environment.js", "../lib/rest/serverless/v1/service/function/functionVersion/functionVersionContent.js", "../lib/rest/serverless/v1/service/function/functionVersion.js", "../lib/rest/serverless/v1/service/function.js", "../lib/rest/serverless/v1/service.js", "../lib/rest/serverless/V1.js", "../lib/rest/Serverless.js", "../lib/rest/studio/v1/flow/engagement/engagementContext.js", "../lib/rest/studio/v1/flow/engagement/step/stepContext.js", "../lib/rest/studio/v1/flow/engagement/step.js", "../lib/rest/studio/v1/flow/engagement.js", "../lib/rest/studio/v1/flow/execution/executionContext.js", "../lib/rest/studio/v1/flow/execution/executionStep/executionStepContext.js", "../lib/rest/studio/v1/flow/execution/executionStep.js", "../lib/rest/studio/v1/flow/execution.js", "../lib/rest/studio/v1/flow.js", "../lib/rest/studio/V1.js", "../lib/rest/studio/v2/flow/execution/executionContext.js", "../lib/rest/studio/v2/flow/execution/executionStep/executionStepContext.js", "../lib/rest/studio/v2/flow/execution/executionStep.js", "../lib/rest/studio/v2/flow/execution.js", "../lib/rest/studio/v2/flow/flowRevision.js", "../lib/rest/studio/v2/flow/testUser.js", "../lib/rest/studio/v2/flow.js", "../lib/rest/studio/v2/flowValidate.js", "../lib/rest/studio/V2.js", "../lib/rest/Studio.js", "../lib/rest/sync/v1/service/document/documentPermission.js", "../lib/rest/sync/v1/service/document.js", "../lib/rest/sync/v1/service/syncList/syncListItem.js", "../lib/rest/sync/v1/service/syncList/syncListPermission.js", "../lib/rest/sync/v1/service/syncList.js", "../lib/rest/sync/v1/service/syncMap/syncMapItem.js", "../lib/rest/sync/v1/service/syncMap/syncMapPermission.js", "../lib/rest/sync/v1/service/syncMap.js", "../lib/rest/sync/v1/service/syncStream/streamMessage.js", "../lib/rest/sync/v1/service/syncStream.js", "../lib/rest/sync/v1/service.js", "../lib/rest/sync/V1.js", "../lib/rest/Sync.js", "../lib/rest/taskrouter/v1/workspace/activity.js", "../lib/rest/taskrouter/v1/workspace/event.js", "../lib/rest/taskrouter/v1/workspace/taskChannel.js", "../lib/rest/taskrouter/v1/workspace/task/reservation.js", "../lib/rest/taskrouter/v1/workspace/task.js", "../lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueCumulativeStatistics.js", "../lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueRealTimeStatistics.js", "../lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueStatistics.js", "../lib/rest/taskrouter/v1/workspace/taskQueue/taskQueuesStatistics.js", "../lib/rest/taskrouter/v1/workspace/taskQueue.js", "../lib/rest/taskrouter/v1/workspace/worker/reservation.js", "../lib/rest/taskrouter/v1/workspace/worker/workerChannel.js", "../lib/rest/taskrouter/v1/workspace/worker/workerStatistics.js", "../lib/rest/taskrouter/v1/workspace/worker/workersCumulativeStatistics.js", "../lib/rest/taskrouter/v1/workspace/worker/workersRealTimeStatistics.js", "../lib/rest/taskrouter/v1/workspace/worker/workersStatistics.js", "../lib/rest/taskrouter/v1/workspace/worker.js", "../lib/rest/taskrouter/v1/workspace/workflow/workflowCumulativeStatistics.js", "../lib/rest/taskrouter/v1/workspace/workflow/workflowRealTimeStatistics.js", "../lib/rest/taskrouter/v1/workspace/workflow/workflowStatistics.js", "../lib/rest/taskrouter/v1/workspace/workflow.js", "../lib/rest/taskrouter/v1/workspace/workspaceCumulativeStatistics.js", "../lib/rest/taskrouter/v1/workspace/workspaceRealTimeStatistics.js", "../lib/rest/taskrouter/v1/workspace/workspaceStatistics.js", "../lib/rest/taskrouter/v1/workspace.js", "../lib/rest/taskrouter/V1.js", "../lib/rest/Taskrouter.js", "../lib/rest/trunking/v1/trunk/credentialList.js", "../lib/rest/trunking/v1/trunk/ipAccessControlList.js", "../lib/rest/trunking/v1/trunk/originationUrl.js", "../lib/rest/trunking/v1/trunk/phoneNumber.js", "../lib/rest/trunking/v1/trunk/recording.js", "../lib/rest/trunking/v1/trunk.js", "../lib/rest/trunking/V1.js", "../lib/rest/Trunking.js", "../lib/rest/trusthub/v1/customerProfiles/customerProfilesChannelEndpointAssignment.js", "../lib/rest/trusthub/v1/customerProfiles/customerProfilesEntityAssignments.js", "../lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.js", "../lib/rest/trusthub/v1/customerProfiles.js", "../lib/rest/trusthub/v1/endUser.js", "../lib/rest/trusthub/v1/endUserType.js", "../lib/rest/trusthub/v1/policies.js", "../lib/rest/trusthub/v1/supportingDocument.js", "../lib/rest/trusthub/v1/supportingDocumentType.js", "../lib/rest/trusthub/v1/trustProducts/trustProductsChannelEndpointAssignment.js", "../lib/rest/trusthub/v1/trustProducts/trustProductsEntityAssignments.js", "../lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.js", "../lib/rest/trusthub/v1/trustProducts.js", "../lib/rest/trusthub/V1.js", "../lib/rest/Trusthub.js", "../lib/rest/verify/v2/form.js", "../lib/rest/verify/v2/service/accessToken.js", "../lib/rest/verify/v2/service/entity/challenge/notification.js", "../lib/rest/verify/v2/service/entity/challenge.js", "../lib/rest/verify/v2/service/entity/factor.js", "../lib/rest/verify/v2/service/entity/newFactor.js", "../lib/rest/verify/v2/service/entity.js", "../lib/rest/verify/v2/service/messagingConfiguration.js", "../lib/rest/verify/v2/service/rateLimit/bucket.js", "../lib/rest/verify/v2/service/rateLimit.js", "../lib/rest/verify/v2/service/verificationCheck.js", "../lib/rest/verify/v2/service/verification.js", "../lib/rest/verify/v2/service/webhook.js", "../lib/rest/verify/v2/service.js", "../lib/rest/verify/v2/template.js", "../lib/rest/verify/v2/verificationAttempt.js", "../lib/rest/verify/v2/verificationAttemptsSummary.js", "../lib/rest/verify/V2.js", "../lib/rest/Verify.js", "../lib/rest/video/v1/compositionHook.js", "../lib/rest/video/v1/composition.js", "../lib/rest/video/v1/compositionSettings.js", "../lib/rest/video/v1/recording.js", "../lib/rest/video/v1/recordingSettings.js", "../lib/rest/video/v1/room/roomParticipant/roomParticipantPublishedTrack.js", "../lib/rest/video/v1/room/roomParticipant/roomParticipantSubscribeRule.js", "../lib/rest/video/v1/room/roomParticipant/roomParticipantSubscribedTrack.js", "../lib/rest/video/v1/room/roomParticipant.js", "../lib/rest/video/v1/room/roomRecordingRule.js", "../lib/rest/video/v1/room/recording.js", "../lib/rest/video/v1/room.js", "../lib/rest/video/V1.js", "../lib/rest/Video.js", "../lib/rest/voice/v1/archivedCall.js", "../lib/rest/voice/v1/byocTrunk.js", "../lib/rest/voice/v1/connectionPolicy/connectionPolicyTarget.js", "../lib/rest/voice/v1/connectionPolicy.js", "../lib/rest/voice/v1/dialingPermissions/bulkCountryUpdate.js", "../lib/rest/voice/v1/dialingPermissions/country/highriskSpecialPrefix.js", "../lib/rest/voice/v1/dialingPermissions/country.js", "../lib/rest/voice/v1/dialingPermissions/settings.js", "../lib/rest/voice/v1/dialingPermissions.js", "../lib/rest/voice/v1/ipRecord.js", "../lib/rest/voice/v1/sourceIpMapping.js", "../lib/rest/voice/V1.js", "../lib/rest/Voice.js", "../lib/rest/wireless/v1/command.js", "../lib/rest/wireless/v1/ratePlan.js", "../lib/rest/wireless/v1/sim/dataSession.js", "../lib/rest/wireless/v1/sim/usageRecord.js", "../lib/rest/wireless/v1/sim.js", "../lib/rest/wireless/v1/usageRecord.js", "../lib/rest/wireless/V1.js", "../lib/rest/Wireless.js", "../lib/rest/supersim/v1/esimProfile.js", "../lib/rest/supersim/v1/fleet.js", "../lib/rest/supersim/v1/ipCommand.js", "../lib/rest/supersim/v1/networkAccessProfile/networkAccessProfileNetwork.js", "../lib/rest/supersim/v1/networkAccessProfile.js", "../lib/rest/supersim/v1/network.js", "../lib/rest/supersim/v1/sim/billingPeriod.js", "../lib/rest/supersim/v1/sim.js", "../lib/rest/supersim/v1/smsCommand.js", "../lib/rest/supersim/v1/usageRecord.js", "../lib/rest/supersim/V1.js", "../lib/rest/Supersim.js", "../lib/rest/bulkexports/v1/exportConfiguration.js", "../lib/rest/bulkexports/v1/export/day.js", "../lib/rest/bulkexports/v1/export/exportCustomJob.js", "../lib/rest/bulkexports/v1/export/job.js", "../lib/rest/bulkexports/v1/export.js", "../lib/rest/bulkexports/V1.js", "../lib/rest/Bulkexports.js", "../lib/rest/Twilio.js", "../lib/webhooks/webhooks.js", "../lib/base/obsolete.js", "../lib/jwt/AccessToken.js", "../lib/jwt/ClientCapability.js", "../lib/jwt/taskrouter/TaskRouterCapability.js", "../lib/jwt/taskrouter/util.js", "../lib/twiml/TwiML.js", "../lib/twiml/VoiceResponse.js", "../lib/twiml/MessagingResponse.js", "../lib/twiml/FaxResponse.js", "../lib/index.js", "../index.js", "../src/index.ts", "../src/helpers.ts"], "sourcesContent": ["{\n \"name\": \"@signalwire/compatibility-api\",\n \"description\": \"SignalWire Compatibility API\",\n \"author\": \"SignalWire Team <open.source@signalwire.com>\",\n \"license\": \"MIT\",\n \"version\": \"3.1.4\",\n \"keywords\": [\n \"signalwire\",\n \"voice\",\n \"laml\",\n \"sms\",\n \"rest\",\n \"api\"\n ],\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/signalwire/compatibility-api-js\"\n },\n \"bugs\": {\n \"url\": \"https://github.com/signalwire/compatibility-api-js/issues\"\n },\n \"homepage\": \"https://developer.signalwire.com/compatibility-api\",\n \"dependencies\": {\n \"axios\": \"^0.26.1\",\n \"dayjs\": \"^1.8.29\",\n \"https-proxy-agent\": \"^5.0.0\",\n \"jsonwebtoken\": \"9.0.0\",\n \"lodash\": \"^4.17.21\",\n \"q\": \"2.0.x\",\n \"qs\": \"^6.9.4\",\n \"rootpath\": \"^0.1.2\",\n \"scmp\": \"^2.1.0\",\n \"url-parse\": \"^1.5.9\",\n \"xmlbuilder\": \"^13.0.2\"\n },\n \"devDependencies\": {\n \"@types/node\": \"9.6.57\",\n \"esbuild\": \"^0.17.19\",\n \"esbuild-node-externals\": \"^1.7.0\",\n \"eslint\": \"^7.28.0\",\n \"express\": \"^4.17.1\",\n \"jasmine\": \"~3.5.0\",\n \"jsdoc\": \"^4.0.2\",\n \"jshint\": \"^2.11.0\",\n \"mock-fs\": \"^4.12.0\",\n \"nock\": \"^10.0.6\",\n \"node-mocks-http\": \"^1.8.1\",\n \"nyc\": \"^15.1.0\",\n \"proxyquire\": \"^2.1.3\",\n \"typescript\": \"^2.9.2\"\n },\n \"scripts\": {\n \"test\": \"npm run test:javascript && npm run test:typescript\",\n \"test:javascript\": \"jasmine spec/**/**.spec.js\",\n \"test:typescript\": \"tsc examples/typescript/example.ts --noEmit --strict\",\n \"jshint\": \"jshint lib/rest/** lib/base/** lib/http/**\",\n \"jscs\": \"eslint lib/base/**/**.js lib/http/**/**.js --fix\",\n \"check\": \"npm run jshint && npm run jscs\",\n \"ci\": \"npm run nyc && npm run nsp\",\n \"coverage\": \"nyc npm test\",\n \"jsdoc\": \"jsdoc -r lib -d docs\",\n \"nsp\": \"if [ `npm --version | cut -d'.' -f1` -ge \\\"6\\\" ]; then npm audit --production; else echo \\\"npm audit is not available for npm < 6.0\\\"; fi\",\n \"nyc\": \"if [ `node --version | cut -d'.' -f1 | cut -c2-` -ge \\\"8\\\" ]; then npm run coverage; else npm test; fi\",\n \"tsc\": \"tsc -p tsconfig.cjs.json\",\n \"tsc:esm\": \"tsc -p tsconfig.esm.json\",\n \"build\": \"node build.js\"\n },\n \"files\": [\n \"dist\",\n \"lib\",\n \"src\",\n \"index.js\",\n \"index.d.ts\",\n \"compatibility-api.d.ts\"\n ],\n \"main\": \"dist/index.node.js\",\n \"exports\": {\n \"require\": \"./dist/index.node.js\",\n \"default\": \"./dist/index.node.mjs\"\n },\n \"types\": \"./compatibility-api.d.ts\",\n \"engines\": {\n \"node\": \">=12\"\n }\n}\n", "'use strict';\n\nclass RestException extends Error {\n constructor(response) {\n super('[HTTP ' + response.statusCode + '] Failed to execute request');\n\n const body = typeof response.body === 'string' ? JSON.parse(response.body) : response.body;\n this.status = response.statusCode;\n this.message = body.message;\n this.code = body.code;\n this.moreInfo = body.more_info; /* jshint ignore:line */\n this.details = body.details;\n }\n}\n\nmodule.exports = RestException;\n", "'use strict';\n\nvar Response = function(statusCode, body, headers) {\n this.statusCode = statusCode;\n this.body = body;\n this.headers = headers;\n};\n\nResponse.prototype.toString = function() {\n return 'HTTP ' + this.statusCode + ' ' + this.body;\n};\n\nmodule.exports = Response;\n", "'use strict';\n\nvar _ = require('lodash');\n\nvar Request = function(opts) {\n opts = opts || {};\n\n this.method = opts.method || this.ANY;\n this.url = opts.url || this.ANY;\n this.auth = opts.auth || this.ANY;\n this.params = opts.params || this.ANY;\n this.data = opts.data || this.ANY;\n this.headers = opts.headers || this.ANY;\n this.ca = opts.ca;\n};\n\nRequest.prototype.ANY = '*';\n\nRequest.prototype.attributeEqual = function(lhs, rhs) {\n if (lhs === this.ANY || rhs === this.ANY) {\n return true;\n }\n\n lhs = lhs || undefined;\n rhs = rhs || undefined;\n\n return _.isEqual(lhs, rhs);\n};\n\nRequest.prototype.isEqual = function(other) {\n return (this.attributeEqual(this.method, other.method) &&\n this.attributeEqual(this.url, other.url) &&\n this.attributeEqual(this.auth, other.auth) &&\n this.attributeEqual(this.params, other.params) &&\n this.attributeEqual(this.data, other.data) &&\n this.attributeEqual(this.headers, other.headers));\n};\n\nRequest.prototype.toString = function() {\n var auth = '';\n if (this.auth && this.auth !== this.ANY) {\n auth = this.auth + ' ';\n }\n\n var params = '';\n if (this.params && this.params !== this.ANY) {\n params = '?' + _.join(_.chain(_.keys(this.params))\n .map(function(key) { return key + '=' + this.params[key]; }.bind(this))\n .value(), '&');\n }\n\n var data = '';\n if (this.data && this.data !== this.ANY) {\n if (this.method === 'GET') {\n data = '\\n -G';\n }\n\n data = data + '\\n' + _.join(\n _.map(this.data, function(value, key) {\n return ' -d ' + key + '=' + value;\n }), '\\n');\n }\n\n var headers = '';\n if (this.headers && this.headers !== this.ANY) {\n headers = '\\n' + _.join(\n _.map(this.headers, function(value, key) {\n return ' -H ' + key + '=' + value;\n }), '\\n');\n }\n\n return auth + this.method + ' ' + this.url + params + data + headers;\n};\n\nmodule.exports = Request;\n", "'use strict';\n\nvar _ = require('lodash');\nvar axios = require('axios');\nvar fs = require('fs');\nvar HttpsProxyAgent = require('https-proxy-agent');\nvar Q = require('q');\nvar qs = require('qs');\nvar Response = require('../http/response');\nvar Request = require('../http/request');\n\naxios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';\n\nvar RequestClient = function () { };\n\n/**\n * Make http request\n * @param {object} opts - The options argument\n * @param {string} opts.method - The http method\n * @param {string} opts.uri - The request uri\n * @param {string} [opts.username] - The username used for auth\n * @param {string} [opts.password] - The password used for auth\n * @param {object} [opts.headers] - The request headers\n * @param {object} [opts.params] - The request params\n * @param {object} [opts.data] - The request data\n * @param {int} [opts.timeout=30000] - The request timeout in milliseconds\n * @param {boolean} [opts.allowRedirects] - Should the client follow redirects\n * @param {boolean} [opts.forever] - Set to true to use the forever-agent\n * @param {string} [opts.logLevel] - Show debug logs\n */\nRequestClient.prototype.request = function (opts) {\n opts = opts || {};\n if (!opts.method) {\n throw new Error('http method is required');\n }\n\n if (!opts.uri) {\n throw new Error('uri is required');\n }\n\n var deferred = Q.defer();\n var headers = opts.headers || {};\n\n if (!headers.Connection && !headers.connection && opts.forever) {\n headers.Connection = 'keep-alive';\n } else if (!headers.Connection && !headers.connection) {\n headers.Connection = 'close';\n }\n\n if (opts.username && opts.password) {\n var b64Auth = Buffer.from(opts.username + ':' + opts.password).toString('base64');\n headers.Authorization = 'Basic ' + b64Auth;\n }\n\n var options = {\n timeout: opts.timeout || 30000,\n maxRedirects: opts.allowRedirects ? 10 : 0, // Same number of allowed redirects as request module default\n url: opts.uri,\n method: opts.method,\n headers: opts.headers,\n httpsAgent: process.env.HTTP_PROXY ? new HttpsProxyAgent(process.env.HTTP_PROXY) : undefined,\n proxy: false,\n validateStatus: status => status >= 100 && status < 600,\n };\n\n if (process.env.TWILIO_CA_BUNDLE !== undefined) {\n if (this.ca === undefined) {\n this.ca = fs.readFileSync(process.env.TWILIO_CA_BUNDLE);\n }\n options.ca = this.ca;\n }\n\n if (!_.isNull(opts.data)) {\n options.data = qs.stringify(opts.data, { arrayFormat: 'repeat' });\n }\n\n if (!_.isNull(opts.params)) {\n options.params = opts.params;\n options.paramsSerializer = (params) => {\n return qs.stringify(params, { arrayFormat: 'repeat' });\n };\n }\n\n var optionsRequest = {\n method: options.method,\n url: options.url,\n auth: b64Auth || null,\n params: options.params,\n data: opts.data,\n headers: options.headers,\n ca: options.ca\n };\n\n if (opts.logLevel === 'debug') {\n this.logRequest(options)\n }\n\n var _this = this;\n this.lastResponse = undefined;\n this.lastRequest = new Request(optionsRequest);\n\n axios(options).then((response) => {\n if (opts.logLevel === 'debug') {\n console.log(`response.statusCode: ${response.status}`)\n console.log(`response.headers: ${JSON.stringify(response.headers)}`)\n }\n _this.lastResponse = new Response(response.status, response.data, response.headers);\n deferred.resolve({\n statusCode: response.status,\n body: response.data,\n headers: response.headers,\n });\n }).catch((error) => {\n _this.lastResponse = undefined;\n deferred.reject(error);\n });\n\n return deferred.promise;\n};\n\nRequestClient.prototype.filterLoggingHeaders = function (headers){\n return Object.keys(headers).filter((header) => {\n return !'authorization'.includes(header.toLowerCase());\n });\n}\n\nRequestClient.prototype.logRequest = function (options){\n console.log('-- BEGIN Twilio API Request --');\n console.log(`${options.method} ${options.url}`);\n\n if (options.params) {\n console.log('Querystring:');\n console.log(options.params);\n }\n\n if (options.headers) {\n console.log('Headers:');\n const filteredHeaderKeys = this.filterLoggingHeaders(options.headers);\n filteredHeaderKeys.forEach((header) => console.log(`${header}: ${options.headers[header]}`));\n }\n\n console.log('-- END Twilio API Request --');\n}\n\nmodule.exports = RequestClient;\n", "'use strict';\nvar _ = require('lodash');\n\n/**\n * Base domain object\n *\n * @constructor\n *\n * @param {Twilio} twilio - A Twilio Client\n * @param {string} baseUrl - Base url for this domain\n */\nfunction Domain(twilio, baseUrl) {\n this.twilio = twilio;\n this.baseUrl = baseUrl;\n}\n\n/**\n * Turn a uri into an absolute url\n *\n * @param {string} uri uri to transform\n * @return {string} absolute url\n */\nDomain.prototype.absoluteUrl = function(uri) {\n return _.trim(this.baseUrl, '/') + '/' + _.trim(uri, '/');\n};\n\n/**\n * Make request to this domain\n *\n * @param {object} opts request options\n * @return {Promise} request promise\n */\nDomain.prototype.request = function(opts) {\n return this.twilio.request(_.assign({}, opts, {\n uri: this.absoluteUrl(opts.uri),\n }));\n};\n\nmodule.exports = Domain;\n", "'use strict';\n\nvar _ = require('lodash');\nvar RestException = require('./RestException');\n\n/**\n * @constructor\n *\n * @description Base page object to maintain request state.\n *\n * @param {Version} version - A twilio version instance\n * @param {Object} response - The http response\n * @param {Object} solution - path solution\n */\nfunction Page(version, response, solution) {\n var payload = this.processResponse(response);\n\n this._version = version;\n this._payload = payload;\n this._solution = solution;\n\n this.nextPageUrl = this.getNextPageUrl();\n this.previousPageUrl = this.getPreviousPageUrl();\n\n this.instances = this.loadInstances(this.loadPage(payload));\n}\n\n/**\n * @constant META_KEYS\n * @description meta keys returned in a list request\n */\nPage.prototype.META_KEYS = [\n 'end',\n 'first_page_uri',\n 'last_page_uri',\n 'next_page_uri',\n 'num_pages',\n 'page',\n 'page_size',\n 'previous_page_uri',\n 'start',\n 'total',\n 'uri',\n];\n\n/**\n * Get the url of the previous page of records\n *\n * @return {string|undefined} url of the previous page\n */\nPage.prototype.getPreviousPageUrl = function() {\n if ('meta' in this._payload && 'previous_page_url' in this._payload.meta && this._payload.meta.previous_page_url) { // jshint ignore:line\n return this._payload.meta.previous_page_url; // jshint ignore:line\n }\n\n if ('previous_page_uri' in this._payload && this._payload.previous_page_uri) { // jshint ignore:line\n return this._version._domain.absoluteUrl(this._payload.previous_page_uri); // jshint ignore:line\n }\n\n return undefined;\n};\n\n/**\n * Get the url of the next page of records\n *\n * @return {string|undefined} url of the next page\n */\nPage.prototype.getNextPageUrl = function() {\n if ('meta' in this._payload && 'next_page_url' in this._payload.meta && this._payload.meta.next_page_url) { // jshint ignore:line\n return this._payload.meta.next_page_url; // jshint ignore:line\n }\n\n if ('next_page_uri' in this._payload && this._payload.next_page_uri) { // jshint ignore:line\n return this._version._domain.absoluteUrl(this._payload.next_page_uri); // jshint ignore:line\n }\n\n return undefined;\n};\n\n/**\n * Build a new instance given a json payload\n * @abstract\n *\n * @param {object} payload - Payload response from the API\n * @return {object} instance of a resource\n */\nPage.prototype.getInstance = function(payload) {\n throw new Error('Page.get_instance() must be implemented in the derived class');\n};\n\n/**\n * Load a list of records\n *\n * @param {object} resources json payload of records\n * @return {Array} list of resources\n */\nPage.prototype.loadInstances = function(resources) {\n return _.map(resources, function(resource) {\n return this.getInstance(resource);\n }.bind(this));\n};\n\n/**\n * Fetch the next page of records\n *\n * @return {promise} promise that resolves to next page of results\n */\nPage.prototype.nextPage = function() {\n if (!this.nextPageUrl) {\n return undefined;\n }\n\n var promise = this._version._domain.twilio.request({\n method: 'GET',\n uri: this.nextPageUrl,\n });\n\n promise = promise.then(function(response) {\n return new this.constructor(this._version, response, this._solution);\n }.bind(this));\n\n return promise;\n};\n\n/**\n * Fetch the previous page of records\n *\n * @return {promise} promise that resolves to previous page of results\n */\nPage.prototype.previousPage = function() {\n if (!this.previousPageUrl) {\n return undefined;\n }\n\n var promise = this._version._domain.twilio.request({\n method: 'GET',\n uri: this.previousPageUrl,\n });\n\n promise = promise.then(function(response) {\n return new this.constructor(this._version, response, this._solution);\n }.bind(this));\n\n return promise;\n};\n\n/**\n * Parse json response from API\n * @throws {Error} If non 200 status code is returned\n *\n * @param {object} response API response\n * @return {object} json parsed response\n */\nPage.prototype.processResponse = function(response) {\n if (response.statusCode !== 200) {\n throw new RestException(response);\n }\n\n if (typeof response.body === 'string') {\n return JSON.parse(response.body);\n }\n return response.body;\n};\n\n/**\n * Load a page of records\n * @throws {Error} If records cannot be deserialized\n *\n * @param {object} payload json payload\n * @return {array} the page of records\n */\nPage.prototype.loadPage = function(payload) {\n if ('meta' in payload && 'key' in payload.meta) {\n return payload[payload.meta.key];\n }\n\n var keys = _.chain(payload)\n .keys()\n .difference(this.META_KEYS)\n .value();\n\n if (keys.length === 1) {\n return payload[keys[0]];\n }\n\n throw new Error('Page Records cannot be deserialized');\n};\n\nmodule.exports = Page;\n", "'use strict';\n\nvar _ = require('lodash');\nvar dayjs = require('dayjs');\nvar utc = require('dayjs/plugin/utc');\n\ndayjs.extend(utc);\n\n/**\n * @namespace deserialize\n */\n\nfunction parseDate(s, format) {\n var m = dayjs.utc(s, format);\n if (m.isValid()) {\n return m.toDate();\n }\n\n return s;\n}\n\nfunction parseNumber(n, parser) {\n var parsed = parser(n);\n if (isNaN(parsed)) {\n return n;\n }\n\n return parsed;\n}\n\n/**\n * @function iso8601Date\n * @memberOf deserialize\n * @description parse a string into a Date object\n *\n * @param {string} s date string in YYYY-MM-DD format\n * @return {Date} Date object\n */\nfunction iso8601Date(s) {\n return parseDate(s, 'YYYY-MM-DD');\n}\n\n/**\n * @function iso8601DateTime\n * @memberOf deserialize\n * @description parse a string into a Date object\n *\n * @param {String} s date string in YYYY-MM-DD[T]HH:mm:ss[Z] format\n * @return {Date} Date object\n */\nfunction iso8601DateTime(s) {\n return parseDate(s, 'YYYY-MM-DD[T]HH:mm:ss[Z]');\n}\n\n/**\n * @function rfc2822DateTime\n * @memberOf deserialize\n * @description parse a string into a Date object\n *\n * @param {String} s date string in ddd, DD MMM YYYY HH:mm:ss [+0000] format\n * @return {Date} Date object\n */\nfunction rfc2822DateTime(s) {\n return parseDate(s, 'ddd, DD MMM YYYY HH:mm:ss [+0000]');\n}\n\n/**\n * @function decimal\n * @memberOf deserialize\n * @description parse a string into a decimal\n *\n * @param {string} d decimal value as string\n * @return {number} number object\n */\nfunction decimal(d) {\n return parseNumber(d, parseFloat);\n}\n\n/**\n * @function integer\n * @memberOf deserialize\n * @description parse a string into a integer\n *\n * @param {string} i integer value as string\n * @return {number} number object\n */\nfunction integer(i) {\n return parseNumber(i, _.parseInt);\n}\n\nmodule.exports = {\n iso8601Date: iso8601Date,\n iso8601DateTime: iso8601DateTime,\n rfc2822DateTime: rfc2822DateTime,\n decimal: decimal,\n integer: integer,\n};\n", "'use strict';\nvar _ = require('lodash');\n\n/**\n * @namespace values\n */\n\n/**\n * @function of\n * @memberOf values\n * @description removes all undefined values of an object\n *\n * @param {object} obj object to filter\n * @return {object} object with no undefined values\n */\nfunction of(obj) {\n return _.omitBy(obj, _.isUndefined);\n}\n\nmodule.exports = {\n of: of,\n};\n", "'use strict';\n\n/* jshint ignore:start */\n/**\n * This code was generated by\n * \\ / _ _ _| _ _\n * | (_)\\/(_)(_|\\/| |(/_ v1.0.0\n * / /\n */\n/* jshint ignore:end */\n\nvar Q = require('q'); /* jshint ignore:line */\nvar _ = require('lodash'); /* jshint ignore:line */\nvar util = require('util'); /* jshint ignore:line */\nvar Page = require('../../../base/Page'); /* jshint ignore:line */\nvar deserialize = require(\n '../../../base/deserialize'); /* jshint ignore:line */\nvar values = require('../../../base/values'); /* jshint ignore:line */\n\nvar AuthTokenPromotionList;\nvar AuthTokenPromotionPage;\nvar AuthTokenPromotionInstance;\nvar AuthTokenPromotionContext;\n\n/* jshint ignore:start */\n/**\n * Initialize the AuthTokenPromotionList\n *\n * @constructor Twilio.Accounts.V1.AuthTokenPromotionList\n *\n * @param {Twilio.Accounts.V1} version - Version of the resource\n */\n/* jshint ignore:end */\nAuthTokenPromotionList = function AuthTokenPromotionList(version) {\n /* jshint ignore:start */\n /**\n * @function authTokenPromotion\n * @memberof Twilio.Accounts.V1#\n *\n * @param {string} sid - sid of instance\n *\n * @returns {Twilio.Accounts.V1.AuthTokenPromotionContext}\n */\n /* jshint ignore:end */\n function AuthTokenPromotionListInstance(sid) {\n return AuthTokenPromotionListInstance.get(sid);\n }\n\n AuthTokenPromotionListInstance._version = version;\n // Path Solution\n AuthTokenPromotionListInstance._solution = {};\n /* jshint ignore:start */\n /**\n * Constructs a auth_token_promotion\n *\n * @function get\n * @memberof Twilio.Accounts.V1.AuthTokenPromotionList#\n *\n * @returns {Twilio.Accounts.V1.AuthTokenPromotionContext}\n */\n /* jshint ignore:end */\n AuthTokenPromotionListInstance.get = function get() {\n return new AuthTokenPromotionContext(this._version);\n };\n\n /* jshint ignore:start */\n /**\n * Provide a user-friendly representation\n *\n * @function toJSON\n * @memberof Twilio.Accounts.V1.AuthTokenPromotionList#\n *\n * @returns Object\n */\n /* jshint ignore:end */\n AuthTokenPromotionListInstance.toJSON = function toJSON() {\n return this._solution;\n };\n\n AuthTokenPromotionListInstance[util.inspect.custom] = function inspect(depth,\n options) {\n return util.inspect(this.toJSON(), options);\n };\n\n return AuthTokenPromotionListInstance;\n};\n\n\n/* jshint ignore:start */\n/**\n * Initialize the AuthTokenPromotionPage\n *\n * @constructor Twilio.Accounts.V1.AuthTokenPromotionPage\n *\n * @param {V1} version - Version of the resource\n * @param {Response<string>} response - Response from the API\n * @param {AuthTokenPromotionSolution} solution - Path solution\n *\n * @returns AuthTokenPromotionPage\n */\n/* jshint ignore:end */\nAuthTokenPromotionPage = function AuthTokenPromotionPage(version, response,\n solution) {\n // Path Solution\n this._solution = solution;\n\n Page.prototype.constructor.call(this, version, response, this._solution);\n};\n\n_.extend(AuthTokenPromotionPage.prototype, Page.prototype);\nAuthTokenPromotionPage.prototype.constructor = AuthTokenPromotionPage;\n\n/* jshint ignore:start */\n/**\n * Build an instance of AuthTokenPromotionInstance\n *\n * @function getInstance\n * @memberof Twilio.Accounts.V1.AuthTokenPromotionPage#\n *\n * @param {AuthTokenPromotionPayload} payload - Payload response from the API\n *\n * @returns AuthTokenPromotionInstance\n */\n/* jshint ignore:end */\nAuthTokenPromotionPage.prototype.getInstance = function getInstance(payload) {\n return new AuthTokenPromotionInstance(this._version, payload);\n};\n\n/* jshint ignore:start */\n/**\n * Provide a user-friendly representation\n *\n * @function toJSON\n * @memberof Twilio.Accounts.V1.AuthTokenPromotionPage#\n *\n * @returns Object\n */\n/* jshint ignore:end */\nAuthTokenPromotionPage.prototype.toJSON = function toJSON() {\n let clone = {};\n _.forOwn(this, function(value, key) {\n if (!_.startsWith(key, '_') && ! _.isFunction(value)) {\n clone[key] = value;\n }\n });\n return clone;\n};\n\nAuthTokenPromotionPage.prototype[util.inspect.custom] = function inspect(depth,\n options) {\n return util.inspect(this.toJSON(), options);\n};\n\n\n/* jshint ignore:start */\n/**\n * Initialize the AuthTokenPromotionContext\n *\n * @constructor Twilio.Accounts.V1.AuthTokenPromotionInstance\n *\n * @property {string} accountSid -\n * The SID of the Account that the secondary Auth Token was created for\n * @property {string} authToken - The promoted Auth Token\n * @property {Date} dateCreated -\n * The ISO 8601 formatted date and time in UTC when the resource was created\n * @property {Date} dateUpdated -\n * The ISO 8601 formatted date and time in UTC when the resource was last updated\n * @property {string} url -\n * The URI for this resource, relative to `https://accounts.twilio.com`\n *\n * @param {V1} version - Version of the resource\n * @param {AuthTokenPromotionPayload} payload - The instance payload\n */\n/* jshint ignore:end */\nAuthTokenPromotionInstance = function AuthTokenPromotionInstance(version,\n p