├── .github ├── ISSUE_TEMPLATE │ └── config.yml └── workflows │ ├── pr-lint.yml │ └── test-and-deploy.yml ├── .php-cs-fixer.dist.php ├── CODE_OF_CONDUCT.md ├── Dockerfile ├── Dockerfile-dev ├── PULL_REQUEST_TEMPLATE.md ├── advanced-examples └── custom-http-client.md ├── composer.json ├── example ├── call.php ├── incomingPhoneNumber.php ├── message.php ├── messaging_bulk.php ├── orgs_api_example.php ├── public_oauth_example.php ├── record.php ├── signingKey.php ├── trunk.php └── twiML.php ├── phpdox.xml ├── sonar-project.properties └── src └── Twilio ├── AuthStrategy ├── AuthStrategy.php ├── BasicAuthStrategy.php ├── NoAuthStrategy.php └── TokenAuthStrategy.php ├── Base ├── BaseClient.php └── PhoneNumberCapabilities.php ├── CredentialProvider ├── ClientCredentialProvider.php ├── ClientCredentialProviderBuilder.php ├── CredentialProvider.php ├── NoAuthCredentialProvider.php ├── OrgsCredentialProvider.php └── OrgsCredentialProviderBuilder.php ├── Deserialize.php ├── Domain.php ├── Exceptions ├── ConfigurationException.php ├── DeserializeException.php ├── EnvironmentException.php ├── HttpException.php ├── RestException.php ├── TwilioException.php └── TwimlException.php ├── Http ├── BearerToken │ ├── ApiTokenManager.php │ ├── OrgsTokenManager.php │ └── TokenManager.php ├── Client.php ├── CurlClient.php ├── File.php ├── GuzzleClient.php └── Response.php ├── InstanceContext.php ├── InstanceResource.php ├── Jwt ├── AccessToken.php ├── Client │ └── ScopeURI.php ├── ClientToken.php ├── Grants │ ├── ChatGrant.php │ ├── Grant.php │ ├── PlaybackGrant.php │ ├── SyncGrant.php │ ├── TaskRouterGrant.php │ ├── VideoGrant.php │ └── VoiceGrant.php ├── JWT.php └── TaskRouter │ ├── CapabilityToken.php │ ├── Policy.php │ ├── TaskQueueCapability.php │ ├── WorkerCapability.php │ └── WorkspaceCapability.php ├── ListResource.php ├── Options.php ├── Page.php ├── Rest ├── Accounts.php ├── Accounts │ ├── V1.php │ └── V1 │ │ ├── AuthTokenPromotionContext.php │ │ ├── AuthTokenPromotionInstance.php │ │ ├── AuthTokenPromotionList.php │ │ ├── AuthTokenPromotionPage.php │ │ ├── BulkConsentsInstance.php │ │ ├── BulkConsentsList.php │ │ ├── BulkConsentsPage.php │ │ ├── BulkContactsInstance.php │ │ ├── BulkContactsList.php │ │ ├── BulkContactsPage.php │ │ ├── Credential │ │ ├── AwsContext.php │ │ ├── AwsInstance.php │ │ ├── AwsList.php │ │ ├── AwsOptions.php │ │ ├── AwsPage.php │ │ ├── PublicKeyContext.php │ │ ├── PublicKeyInstance.php │ │ ├── PublicKeyList.php │ │ ├── PublicKeyOptions.php │ │ └── PublicKeyPage.php │ │ ├── CredentialInstance.php │ │ ├── CredentialList.php │ │ ├── CredentialPage.php │ │ ├── SafelistInstance.php │ │ ├── SafelistList.php │ │ ├── SafelistOptions.php │ │ ├── SafelistPage.php │ │ ├── SecondaryAuthTokenContext.php │ │ ├── SecondaryAuthTokenInstance.php │ │ ├── SecondaryAuthTokenList.php │ │ └── SecondaryAuthTokenPage.php ├── AccountsBase.php ├── Api.php ├── Api │ ├── V2010.php │ └── V2010 │ │ ├── Account │ │ ├── Address │ │ │ ├── DependentPhoneNumberInstance.php │ │ │ ├── DependentPhoneNumberList.php │ │ │ └── DependentPhoneNumberPage.php │ │ ├── AddressContext.php │ │ ├── AddressInstance.php │ │ ├── AddressList.php │ │ ├── AddressOptions.php │ │ ├── AddressPage.php │ │ ├── ApplicationContext.php │ │ ├── ApplicationInstance.php │ │ ├── ApplicationList.php │ │ ├── ApplicationOptions.php │ │ ├── ApplicationPage.php │ │ ├── AuthorizedConnectAppContext.php │ │ ├── AuthorizedConnectAppInstance.php │ │ ├── AuthorizedConnectAppList.php │ │ ├── AuthorizedConnectAppPage.php │ │ ├── AvailablePhoneNumberCountry │ │ │ ├── LocalInstance.php │ │ │ ├── LocalList.php │ │ │ ├── LocalOptions.php │ │ │ ├── LocalPage.php │ │ │ ├── MachineToMachineInstance.php │ │ │ ├── MachineToMachineList.php │ │ │ ├── MachineToMachineOptions.php │ │ │ ├── MachineToMachinePage.php │ │ │ ├── MobileInstance.php │ │ │ ├── MobileList.php │ │ │ ├── MobileOptions.php │ │ │ ├── MobilePage.php │ │ │ ├── NationalInstance.php │ │ │ ├── NationalList.php │ │ │ ├── NationalOptions.php │ │ │ ├── NationalPage.php │ │ │ ├── SharedCostInstance.php │ │ │ ├── SharedCostList.php │ │ │ ├── SharedCostOptions.php │ │ │ ├── SharedCostPage.php │ │ │ ├── TollFreeInstance.php │ │ │ ├── TollFreeList.php │ │ │ ├── TollFreeOptions.php │ │ │ ├── TollFreePage.php │ │ │ ├── VoipInstance.php │ │ │ ├── VoipList.php │ │ │ ├── VoipOptions.php │ │ │ └── VoipPage.php │ │ ├── AvailablePhoneNumberCountryContext.php │ │ ├── AvailablePhoneNumberCountryInstance.php │ │ ├── AvailablePhoneNumberCountryList.php │ │ ├── AvailablePhoneNumberCountryPage.php │ │ ├── BalanceInstance.php │ │ ├── BalanceList.php │ │ ├── BalancePage.php │ │ ├── Call │ │ │ ├── EventInstance.php │ │ │ ├── EventList.php │ │ │ ├── EventPage.php │ │ │ ├── NotificationContext.php │ │ │ ├── NotificationInstance.php │ │ │ ├── NotificationList.php │ │ │ ├── NotificationOptions.php │ │ │ ├── NotificationPage.php │ │ │ ├── PaymentContext.php │ │ │ ├── PaymentInstance.php │ │ │ ├── PaymentList.php │ │ │ ├── PaymentOptions.php │ │ │ ├── PaymentPage.php │ │ │ ├── RecordingContext.php │ │ │ ├── RecordingInstance.php │ │ │ ├── RecordingList.php │ │ │ ├── RecordingOptions.php │ │ │ ├── RecordingPage.php │ │ │ ├── SiprecContext.php │ │ │ ├── SiprecInstance.php │ │ │ ├── SiprecList.php │ │ │ ├── SiprecOptions.php │ │ │ ├── SiprecPage.php │ │ │ ├── StreamContext.php │ │ │ ├── StreamInstance.php │ │ │ ├── StreamList.php │ │ │ ├── StreamOptions.php │ │ │ ├── StreamPage.php │ │ │ ├── TranscriptionContext.php │ │ │ ├── TranscriptionInstance.php │ │ │ ├── TranscriptionList.php │ │ │ ├── TranscriptionOptions.php │ │ │ ├── TranscriptionPage.php │ │ │ ├── UserDefinedMessageInstance.php │ │ │ ├── UserDefinedMessageList.php │ │ │ ├── UserDefinedMessageOptions.php │ │ │ ├── UserDefinedMessagePage.php │ │ │ ├── UserDefinedMessageSubscriptionContext.php │ │ │ ├── UserDefinedMessageSubscriptionInstance.php │ │ │ ├── UserDefinedMessageSubscriptionList.php │ │ │ ├── UserDefinedMessageSubscriptionOptions.php │ │ │ └── UserDefinedMessageSubscriptionPage.php │ │ ├── CallContext.php │ │ ├── CallInstance.php │ │ ├── CallList.php │ │ ├── CallOptions.php │ │ ├── CallPage.php │ │ ├── Conference │ │ │ ├── ParticipantContext.php │ │ │ ├── ParticipantInstance.php │ │ │ ├── ParticipantList.php │ │ │ ├── ParticipantOptions.php │ │ │ ├── ParticipantPage.php │ │ │ ├── RecordingContext.php │ │ │ ├── RecordingInstance.php │ │ │ ├── RecordingList.php │ │ │ ├── RecordingOptions.php │ │ │ └── RecordingPage.php │ │ ├── ConferenceContext.php │ │ ├── ConferenceInstance.php │ │ ├── ConferenceList.php │ │ ├── ConferenceOptions.php │ │ ├── ConferencePage.php │ │ ├── ConnectAppContext.php │ │ ├── ConnectAppInstance.php │ │ ├── ConnectAppList.php │ │ ├── ConnectAppOptions.php │ │ ├── ConnectAppPage.php │ │ ├── IncomingPhoneNumber │ │ │ ├── AssignedAddOn │ │ │ │ ├── AssignedAddOnExtensionContext.php │ │ │ │ ├── AssignedAddOnExtensionInstance.php │ │ │ │ ├── AssignedAddOnExtensionList.php │ │ │ │ └── AssignedAddOnExtensionPage.php │ │ │ ├── AssignedAddOnContext.php │ │ │ ├── AssignedAddOnInstance.php │ │ │ ├── AssignedAddOnList.php │ │ │ ├── AssignedAddOnPage.php │ │ │ ├── LocalInstance.php │ │ │ ├── LocalList.php │ │ │ ├── LocalOptions.php │ │ │ ├── LocalPage.php │ │ │ ├── MobileInstance.php │ │ │ ├── MobileList.php │ │ │ ├── MobileOptions.php │ │ │ ├── MobilePage.php │ │ │ ├── TollFreeInstance.php │ │ │ ├── TollFreeList.php │ │ │ ├── TollFreeOptions.php │ │ │ └── TollFreePage.php │ │ ├── IncomingPhoneNumberContext.php │ │ ├── IncomingPhoneNumberInstance.php │ │ ├── IncomingPhoneNumberList.php │ │ ├── IncomingPhoneNumberOptions.php │ │ ├── IncomingPhoneNumberPage.php │ │ ├── KeyContext.php │ │ ├── KeyInstance.php │ │ ├── KeyList.php │ │ ├── KeyOptions.php │ │ ├── KeyPage.php │ │ ├── Message │ │ │ ├── FeedbackInstance.php │ │ │ ├── FeedbackList.php │ │ │ ├── FeedbackOptions.php │ │ │ ├── FeedbackPage.php │ │ │ ├── MediaContext.php │ │ │ ├── MediaInstance.php │ │ │ ├── MediaList.php │ │ │ ├── MediaOptions.php │ │ │ └── MediaPage.php │ │ ├── MessageContext.php │ │ ├── MessageInstance.php │ │ ├── MessageList.php │ │ ├── MessageOptions.php │ │ ├── MessagePage.php │ │ ├── NewKeyInstance.php │ │ ├── NewKeyList.php │ │ ├── NewKeyOptions.php │ │ ├── NewKeyPage.php │ │ ├── NewSigningKeyInstance.php │ │ ├── NewSigningKeyList.php │ │ ├── NewSigningKeyOptions.php │ │ ├── NewSigningKeyPage.php │ │ ├── NotificationContext.php │ │ ├── NotificationInstance.php │ │ ├── NotificationList.php │ │ ├── NotificationOptions.php │ │ ├── NotificationPage.php │ │ ├── OutgoingCallerIdContext.php │ │ ├── OutgoingCallerIdInstance.php │ │ ├── OutgoingCallerIdList.php │ │ ├── OutgoingCallerIdOptions.php │ │ ├── OutgoingCallerIdPage.php │ │ ├── Queue │ │ │ ├── MemberContext.php │ │ │ ├── MemberInstance.php │ │ │ ├── MemberList.php │ │ │ ├── MemberOptions.php │ │ │ └── MemberPage.php │ │ ├── QueueContext.php │ │ ├── QueueInstance.php │ │ ├── QueueList.php │ │ ├── QueueOptions.php │ │ ├── QueuePage.php │ │ ├── Recording │ │ │ ├── AddOnResult │ │ │ │ ├── Payload │ │ │ │ │ ├── DataContext.php │ │ │ │ │ ├── DataInstance.php │ │ │ │ │ ├── DataList.php │ │ │ │ │ └── DataPage.php │ │ │ │ ├── PayloadContext.php │ │ │ │ ├── PayloadInstance.php │ │ │ │ ├── PayloadList.php │ │ │ │ └── PayloadPage.php │ │ │ ├── AddOnResultContext.php │ │ │ ├── AddOnResultInstance.php │ │ │ ├── AddOnResultList.php │ │ │ ├── AddOnResultPage.php │ │ │ ├── TranscriptionContext.php │ │ │ ├── TranscriptionInstance.php │ │ │ ├── TranscriptionList.php │ │ │ └── TranscriptionPage.php │ │ ├── RecordingContext.php │ │ ├── RecordingInstance.php │ │ ├── RecordingList.php │ │ ├── RecordingOptions.php │ │ ├── RecordingPage.php │ │ ├── ShortCodeContext.php │ │ ├── ShortCodeInstance.php │ │ ├── ShortCodeList.php │ │ ├── ShortCodeOptions.php │ │ ├── ShortCodePage.php │ │ ├── SigningKeyContext.php │ │ ├── SigningKeyInstance.php │ │ ├── SigningKeyList.php │ │ ├── SigningKeyOptions.php │ │ ├── SigningKeyPage.php │ │ ├── Sip │ │ │ ├── CredentialList │ │ │ │ ├── CredentialContext.php │ │ │ │ ├── CredentialInstance.php │ │ │ │ ├── CredentialList.php │ │ │ │ ├── CredentialOptions.php │ │ │ │ └── CredentialPage.php │ │ │ ├── CredentialListContext.php │ │ │ ├── CredentialListInstance.php │ │ │ ├── CredentialListList.php │ │ │ ├── CredentialListPage.php │ │ │ ├── Domain │ │ │ │ ├── AuthTypes │ │ │ │ │ ├── AuthTypeCalls │ │ │ │ │ │ ├── AuthCallsCredentialListMappingContext.php │ │ │ │ │ │ ├── AuthCallsCredentialListMappingInstance.php │ │ │ │ │ │ ├── AuthCallsCredentialListMappingList.php │ │ │ │ │ │ ├── AuthCallsCredentialListMappingPage.php │ │ │ │ │ │ ├── AuthCallsIpAccessControlListMappingContext.php │ │ │ │ │ │ ├── AuthCallsIpAccessControlListMappingInstance.php │ │ │ │ │ │ ├── AuthCallsIpAccessControlListMappingList.php │ │ │ │ │ │ └── AuthCallsIpAccessControlListMappingPage.php │ │ │ │ │ ├── AuthTypeCallsInstance.php │ │ │ │ │ ├── AuthTypeCallsList.php │ │ │ │ │ ├── AuthTypeCallsPage.php │ │ │ │ │ ├── AuthTypeRegistrations │ │ │ │ │ │ ├── AuthRegistrationsCredentialListMappingContext.php │ │ │ │ │ │ ├── AuthRegistrationsCredentialListMappingInstance.php │ │ │ │ │ │ ├── AuthRegistrationsCredentialListMappingList.php │ │ │ │ │ │ └── AuthRegistrationsCredentialListMappingPage.php │ │ │ │ │ ├── AuthTypeRegistrationsInstance.php │ │ │ │ │ ├── AuthTypeRegistrationsList.php │ │ │ │ │ └── AuthTypeRegistrationsPage.php │ │ │ │ ├── AuthTypesInstance.php │ │ │ │ ├── AuthTypesList.php │ │ │ │ ├── AuthTypesPage.php │ │ │ │ ├── CredentialListMappingContext.php │ │ │ │ ├── CredentialListMappingInstance.php │ │ │ │ ├── CredentialListMappingList.php │ │ │ │ ├── CredentialListMappingPage.php │ │ │ │ ├── IpAccessControlListMappingContext.php │ │ │ │ ├── IpAccessControlListMappingInstance.php │ │ │ │ ├── IpAccessControlListMappingList.php │ │ │ │ └── IpAccessControlListMappingPage.php │ │ │ ├── DomainContext.php │ │ │ ├── DomainInstance.php │ │ │ ├── DomainList.php │ │ │ ├── DomainOptions.php │ │ │ ├── DomainPage.php │ │ │ ├── IpAccessControlList │ │ │ │ ├── IpAddressContext.php │ │ │ │ ├── IpAddressInstance.php │ │ │ │ ├── IpAddressList.php │ │ │ │ ├── IpAddressOptions.php │ │ │ │ └── IpAddressPage.php │ │ │ ├── IpAccessControlListContext.php │ │ │ ├── IpAccessControlListInstance.php │ │ │ ├── IpAccessControlListList.php │ │ │ └── IpAccessControlListPage.php │ │ ├── SipInstance.php │ │ ├── SipList.php │ │ ├── SipPage.php │ │ ├── TokenInstance.php │ │ ├── TokenList.php │ │ ├── TokenOptions.php │ │ ├── TokenPage.php │ │ ├── TranscriptionContext.php │ │ ├── TranscriptionInstance.php │ │ ├── TranscriptionList.php │ │ ├── TranscriptionPage.php │ │ ├── Usage │ │ │ ├── Record │ │ │ │ ├── AllTimeInstance.php │ │ │ │ ├── AllTimeList.php │ │ │ │ ├── AllTimeOptions.php │ │ │ │ ├── AllTimePage.php │ │ │ │ ├── DailyInstance.php │ │ │ │ ├── DailyList.php │ │ │ │ ├── DailyOptions.php │ │ │ │ ├── DailyPage.php │ │ │ │ ├── LastMonthInstance.php │ │ │ │ ├── LastMonthList.php │ │ │ │ ├── LastMonthOptions.php │ │ │ │ ├── LastMonthPage.php │ │ │ │ ├── MonthlyInstance.php │ │ │ │ ├── MonthlyList.php │ │ │ │ ├── MonthlyOptions.php │ │ │ │ ├── MonthlyPage.php │ │ │ │ ├── ThisMonthInstance.php │ │ │ │ ├── ThisMonthList.php │ │ │ │ ├── ThisMonthOptions.php │ │ │ │ ├── ThisMonthPage.php │ │ │ │ ├── TodayInstance.php │ │ │ │ ├── TodayList.php │ │ │ │ ├── TodayOptions.php │ │ │ │ ├── TodayPage.php │ │ │ │ ├── YearlyInstance.php │ │ │ │ ├── YearlyList.php │ │ │ │ ├── YearlyOptions.php │ │ │ │ ├── YearlyPage.php │ │ │ │ ├── YesterdayInstance.php │ │ │ │ ├── YesterdayList.php │ │ │ │ ├── YesterdayOptions.php │ │ │ │ └── YesterdayPage.php │ │ │ ├── RecordInstance.php │ │ │ ├── RecordList.php │ │ │ ├── RecordOptions.php │ │ │ ├── RecordPage.php │ │ │ ├── TriggerContext.php │ │ │ ├── TriggerInstance.php │ │ │ ├── TriggerList.php │ │ │ ├── TriggerOptions.php │ │ │ └── TriggerPage.php │ │ ├── UsageInstance.php │ │ ├── UsageList.php │ │ ├── UsagePage.php │ │ ├── ValidationRequestInstance.php │ │ ├── ValidationRequestList.php │ │ ├── ValidationRequestOptions.php │ │ └── ValidationRequestPage.php │ │ ├── AccountContext.php │ │ ├── AccountInstance.php │ │ ├── AccountList.php │ │ ├── AccountOptions.php │ │ └── AccountPage.php ├── ApiBase.php ├── Assistants.php ├── Assistants │ ├── V1.php │ └── V1 │ │ ├── Assistant │ │ ├── AssistantsKnowledgeContext.php │ │ ├── AssistantsKnowledgeInstance.php │ │ ├── AssistantsKnowledgeList.php │ │ ├── AssistantsKnowledgePage.php │ │ ├── AssistantsToolContext.php │ │ ├── AssistantsToolInstance.php │ │ ├── AssistantsToolList.php │ │ ├── AssistantsToolPage.php │ │ ├── FeedbackInstance.php │ │ ├── FeedbackList.php │ │ ├── FeedbackModels.php │ │ ├── FeedbackPage.php │ │ ├── MessageInstance.php │ │ ├── MessageList.php │ │ ├── MessageModels.php │ │ └── MessagePage.php │ │ ├── AssistantContext.php │ │ ├── AssistantInstance.php │ │ ├── AssistantList.php │ │ ├── AssistantModels.php │ │ ├── AssistantPage.php │ │ ├── Knowledge │ │ ├── ChunkInstance.php │ │ ├── ChunkList.php │ │ ├── ChunkPage.php │ │ ├── KnowledgeStatusContext.php │ │ ├── KnowledgeStatusInstance.php │ │ ├── KnowledgeStatusList.php │ │ └── KnowledgeStatusPage.php │ │ ├── KnowledgeContext.php │ │ ├── KnowledgeInstance.php │ │ ├── KnowledgeList.php │ │ ├── KnowledgeModels.php │ │ ├── KnowledgeOptions.php │ │ ├── KnowledgePage.php │ │ ├── PolicyInstance.php │ │ ├── PolicyList.php │ │ ├── PolicyOptions.php │ │ ├── PolicyPage.php │ │ ├── Session │ │ ├── MessageInstance.php │ │ ├── MessageList.php │ │ └── MessagePage.php │ │ ├── SessionContext.php │ │ ├── SessionInstance.php │ │ ├── SessionList.php │ │ ├── SessionPage.php │ │ ├── ToolContext.php │ │ ├── ToolInstance.php │ │ ├── ToolList.php │ │ ├── ToolModels.php │ │ ├── ToolOptions.php │ │ └── ToolPage.php ├── AssistantsBase.php ├── Autopilot.php ├── Bulkexports.php ├── Bulkexports │ ├── V1.php │ └── V1 │ │ ├── Export │ │ ├── DayContext.php │ │ ├── DayInstance.php │ │ ├── DayList.php │ │ ├── DayPage.php │ │ ├── ExportCustomJobInstance.php │ │ ├── ExportCustomJobList.php │ │ ├── ExportCustomJobOptions.php │ │ ├── ExportCustomJobPage.php │ │ ├── JobContext.php │ │ ├── JobInstance.php │ │ ├── JobList.php │ │ └── JobPage.php │ │ ├── ExportConfigurationContext.php │ │ ├── ExportConfigurationInstance.php │ │ ├── ExportConfigurationList.php │ │ ├── ExportConfigurationOptions.php │ │ ├── ExportConfigurationPage.php │ │ ├── ExportContext.php │ │ ├── ExportInstance.php │ │ ├── ExportList.php │ │ └── ExportPage.php ├── BulkexportsBase.php ├── Chat.php ├── Chat │ ├── V1.php │ ├── V1 │ │ ├── CredentialContext.php │ │ ├── CredentialInstance.php │ │ ├── CredentialList.php │ │ ├── CredentialOptions.php │ │ ├── CredentialPage.php │ │ ├── Service │ │ │ ├── Channel │ │ │ │ ├── InviteContext.php │ │ │ │ ├── InviteInstance.php │ │ │ │ ├── InviteList.php │ │ │ │ ├── InviteOptions.php │ │ │ │ ├── InvitePage.php │ │ │ │ ├── MemberContext.php │ │ │ │ ├── MemberInstance.php │ │ │ │ ├── MemberList.php │ │ │ │ ├── MemberOptions.php │ │ │ │ ├── MemberPage.php │ │ │ │ ├── MessageContext.php │ │ │ │ ├── MessageInstance.php │ │ │ │ ├── MessageList.php │ │ │ │ ├── MessageOptions.php │ │ │ │ └── MessagePage.php │ │ │ ├── ChannelContext.php │ │ │ ├── ChannelInstance.php │ │ │ ├── ChannelList.php │ │ │ ├── ChannelOptions.php │ │ │ ├── ChannelPage.php │ │ │ ├── RoleContext.php │ │ │ ├── RoleInstance.php │ │ │ ├── RoleList.php │ │ │ ├── RolePage.php │ │ │ ├── User │ │ │ │ ├── UserChannelInstance.php │ │ │ │ ├── UserChannelList.php │ │ │ │ └── UserChannelPage.php │ │ │ ├── UserContext.php │ │ │ ├── UserInstance.php │ │ │ ├── UserList.php │ │ │ ├── UserOptions.php │ │ │ └── UserPage.php │ │ ├── ServiceContext.php │ │ ├── ServiceInstance.php │ │ ├── ServiceList.php │ │ ├── ServiceOptions.php │ │ └── ServicePage.php │ ├── V2.php │ ├── V2 │ │ ├── .openapi-generator-ignore │ │ ├── CredentialContext.php │ │ ├── CredentialInstance.php │ │ ├── CredentialList.php │ │ ├── CredentialOptions.php │ │ ├── CredentialPage.php │ │ ├── Service │ │ │ ├── BindingContext.php │ │ │ ├── BindingInstance.php │ │ │ ├── BindingList.php │ │ │ ├── BindingOptions.php │ │ │ ├── BindingPage.php │ │ │ ├── Channel │ │ │ │ ├── InviteContext.php │ │ │ │ ├── InviteInstance.php │ │ │ │ ├── InviteList.php │ │ │ │ ├── InviteOptions.php │ │ │ │ ├── InvitePage.php │ │ │ │ ├── MemberContext.php │ │ │ │ ├── MemberInstance.php │ │ │ │ ├── MemberList.php │ │ │ │ ├── MemberOptions.php │ │ │ │ ├── MemberPage.php │ │ │ │ ├── MessageContext.php │ │ │ │ ├── MessageInstance.php │ │ │ │ ├── MessageList.php │ │ │ │ ├── MessageOptions.php │ │ │ │ ├── MessagePage.php │ │ │ │ ├── WebhookContext.php │ │ │ │ ├── WebhookInstance.php │ │ │ │ ├── WebhookList.php │ │ │ │ ├── WebhookOptions.php │ │ │ │ └── WebhookPage.php │ │ │ ├── ChannelContext.php │ │ │ ├── ChannelInstance.php │ │ │ ├── ChannelList.php │ │ │ ├── ChannelOptions.php │ │ │ ├── ChannelPage.php │ │ │ ├── RoleContext.php │ │ │ ├── RoleInstance.php │ │ │ ├── RoleList.php │ │ │ ├── RolePage.php │ │ │ ├── User │ │ │ │ ├── UserBindingContext.php │ │ │ │ ├── UserBindingInstance.php │ │ │ │ ├── UserBindingList.php │ │ │ │ ├── UserBindingOptions.php │ │ │ │ ├── UserBindingPage.php │ │ │ │ ├── UserChannelContext.php │ │ │ │ ├── UserChannelInstance.php │ │ │ │ ├── UserChannelList.php │ │ │ │ ├── UserChannelOptions.php │ │ │ │ └── UserChannelPage.php │ │ │ ├── UserContext.php │ │ │ ├── UserInstance.php │ │ │ ├── UserList.php │ │ │ ├── UserOptions.php │ │ │ └── UserPage.php │ │ ├── ServiceContext.php │ │ ├── ServiceInstance.php │ │ ├── ServiceList.php │ │ ├── ServiceOptions.php │ │ └── ServicePage.php │ ├── V3.php │ └── V3 │ │ ├── .openapi-generator-ignore │ │ ├── ChannelContext.php │ │ ├── ChannelInstance.php │ │ ├── ChannelList.php │ │ ├── ChannelOptions.php │ │ └── ChannelPage.php ├── ChatBase.php ├── Client.php ├── Content.php ├── Content │ ├── V1.php │ ├── V1 │ │ ├── Content │ │ │ ├── ApprovalCreateInstance.php │ │ │ ├── ApprovalCreateList.php │ │ │ ├── ApprovalCreateModels.php │ │ │ ├── ApprovalCreatePage.php │ │ │ ├── ApprovalFetchContext.php │ │ │ ├── ApprovalFetchInstance.php │ │ │ ├── ApprovalFetchList.php │ │ │ └── ApprovalFetchPage.php │ │ ├── ContentAndApprovalsInstance.php │ │ ├── ContentAndApprovalsList.php │ │ ├── ContentAndApprovalsPage.php │ │ ├── ContentContext.php │ │ ├── ContentInstance.php │ │ ├── ContentList.php │ │ ├── ContentModels.php │ │ ├── ContentPage.php │ │ ├── LegacyContentInstance.php │ │ ├── LegacyContentList.php │ │ └── LegacyContentPage.php │ ├── V2.php │ └── V2 │ │ ├── ContentAndApprovalsInstance.php │ │ ├── ContentAndApprovalsList.php │ │ ├── ContentAndApprovalsOptions.php │ │ ├── ContentAndApprovalsPage.php │ │ ├── ContentInstance.php │ │ ├── ContentList.php │ │ ├── ContentOptions.php │ │ └── ContentPage.php ├── ContentBase.php ├── Conversations.php ├── Conversations │ ├── V1.php │ └── V1 │ │ ├── AddressConfigurationContext.php │ │ ├── AddressConfigurationInstance.php │ │ ├── AddressConfigurationList.php │ │ ├── AddressConfigurationOptions.php │ │ ├── AddressConfigurationPage.php │ │ ├── Configuration │ │ ├── WebhookContext.php │ │ ├── WebhookInstance.php │ │ ├── WebhookList.php │ │ ├── WebhookOptions.php │ │ └── WebhookPage.php │ │ ├── ConfigurationContext.php │ │ ├── ConfigurationInstance.php │ │ ├── ConfigurationList.php │ │ ├── ConfigurationOptions.php │ │ ├── ConfigurationPage.php │ │ ├── Conversation │ │ ├── Message │ │ │ ├── DeliveryReceiptContext.php │ │ │ ├── DeliveryReceiptInstance.php │ │ │ ├── DeliveryReceiptList.php │ │ │ └── DeliveryReceiptPage.php │ │ ├── MessageContext.php │ │ ├── MessageInstance.php │ │ ├── MessageList.php │ │ ├── MessageOptions.php │ │ ├── MessagePage.php │ │ ├── ParticipantContext.php │ │ ├── ParticipantInstance.php │ │ ├── ParticipantList.php │ │ ├── ParticipantOptions.php │ │ ├── ParticipantPage.php │ │ ├── WebhookContext.php │ │ ├── WebhookInstance.php │ │ ├── WebhookList.php │ │ ├── WebhookOptions.php │ │ └── WebhookPage.php │ │ ├── ConversationContext.php │ │ ├── ConversationInstance.php │ │ ├── ConversationList.php │ │ ├── ConversationOptions.php │ │ ├── ConversationPage.php │ │ ├── ConversationWithParticipantsInstance.php │ │ ├── ConversationWithParticipantsList.php │ │ ├── ConversationWithParticipantsOptions.php │ │ ├── ConversationWithParticipantsPage.php │ │ ├── CredentialContext.php │ │ ├── CredentialInstance.php │ │ ├── CredentialList.php │ │ ├── CredentialOptions.php │ │ ├── CredentialPage.php │ │ ├── ParticipantConversationInstance.php │ │ ├── ParticipantConversationList.php │ │ ├── ParticipantConversationOptions.php │ │ ├── ParticipantConversationPage.php │ │ ├── RoleContext.php │ │ ├── RoleInstance.php │ │ ├── RoleList.php │ │ ├── RolePage.php │ │ ├── Service │ │ ├── BindingContext.php │ │ ├── BindingInstance.php │ │ ├── BindingList.php │ │ ├── BindingOptions.php │ │ ├── BindingPage.php │ │ ├── Configuration │ │ │ ├── NotificationContext.php │ │ │ ├── NotificationInstance.php │ │ │ ├── NotificationList.php │ │ │ ├── NotificationOptions.php │ │ │ ├── NotificationPage.php │ │ │ ├── WebhookContext.php │ │ │ ├── WebhookInstance.php │ │ │ ├── WebhookList.php │ │ │ ├── WebhookOptions.php │ │ │ └── WebhookPage.php │ │ ├── ConfigurationContext.php │ │ ├── ConfigurationInstance.php │ │ ├── ConfigurationList.php │ │ ├── ConfigurationOptions.php │ │ ├── ConfigurationPage.php │ │ ├── Conversation │ │ │ ├── Message │ │ │ │ ├── DeliveryReceiptContext.php │ │ │ │ ├── DeliveryReceiptInstance.php │ │ │ │ ├── DeliveryReceiptList.php │ │ │ │ └── DeliveryReceiptPage.php │ │ │ ├── MessageContext.php │ │ │ ├── MessageInstance.php │ │ │ ├── MessageList.php │ │ │ ├── MessageOptions.php │ │ │ ├── MessagePage.php │ │ │ ├── ParticipantContext.php │ │ │ ├── ParticipantInstance.php │ │ │ ├── ParticipantList.php │ │ │ ├── ParticipantOptions.php │ │ │ ├── ParticipantPage.php │ │ │ ├── WebhookContext.php │ │ │ ├── WebhookInstance.php │ │ │ ├── WebhookList.php │ │ │ ├── WebhookOptions.php │ │ │ └── WebhookPage.php │ │ ├── ConversationContext.php │ │ ├── ConversationInstance.php │ │ ├── ConversationList.php │ │ ├── ConversationOptions.php │ │ ├── ConversationPage.php │ │ ├── ConversationWithParticipantsInstance.php │ │ ├── ConversationWithParticipantsList.php │ │ ├── ConversationWithParticipantsOptions.php │ │ ├── ConversationWithParticipantsPage.php │ │ ├── ParticipantConversationInstance.php │ │ ├── ParticipantConversationList.php │ │ ├── ParticipantConversationOptions.php │ │ ├── ParticipantConversationPage.php │ │ ├── RoleContext.php │ │ ├── RoleInstance.php │ │ ├── RoleList.php │ │ ├── RolePage.php │ │ ├── User │ │ │ ├── UserConversationContext.php │ │ │ ├── UserConversationInstance.php │ │ │ ├── UserConversationList.php │ │ │ ├── UserConversationOptions.php │ │ │ └── UserConversationPage.php │ │ ├── UserContext.php │ │ ├── UserInstance.php │ │ ├── UserList.php │ │ ├── UserOptions.php │ │ └── UserPage.php │ │ ├── ServiceContext.php │ │ ├── ServiceInstance.php │ │ ├── ServiceList.php │ │ ├── ServicePage.php │ │ ├── User │ │ ├── UserConversationContext.php │ │ ├── UserConversationInstance.php │ │ ├── UserConversationList.php │ │ ├── UserConversationOptions.php │ │ └── UserConversationPage.php │ │ ├── UserContext.php │ │ ├── UserInstance.php │ │ ├── UserList.php │ │ ├── UserOptions.php │ │ └── UserPage.php ├── ConversationsBase.php ├── Events.php ├── Events │ ├── V1.php │ └── V1 │ │ ├── EventTypeContext.php │ │ ├── EventTypeInstance.php │ │ ├── EventTypeList.php │ │ ├── EventTypeOptions.php │ │ ├── EventTypePage.php │ │ ├── Schema │ │ ├── SchemaVersionContext.php │ │ ├── SchemaVersionInstance.php │ │ ├── SchemaVersionList.php │ │ └── SchemaVersionPage.php │ │ ├── SchemaContext.php │ │ ├── SchemaInstance.php │ │ ├── SchemaList.php │ │ ├── SchemaPage.php │ │ ├── Sink │ │ ├── SinkTestInstance.php │ │ ├── SinkTestList.php │ │ ├── SinkTestPage.php │ │ ├── SinkValidateInstance.php │ │ ├── SinkValidateList.php │ │ └── SinkValidatePage.php │ │ ├── SinkContext.php │ │ ├── SinkInstance.php │ │ ├── SinkList.php │ │ ├── SinkOptions.php │ │ ├── SinkPage.php │ │ ├── Subscription │ │ ├── SubscribedEventContext.php │ │ ├── SubscribedEventInstance.php │ │ ├── SubscribedEventList.php │ │ ├── SubscribedEventOptions.php │ │ └── SubscribedEventPage.php │ │ ├── SubscriptionContext.php │ │ ├── SubscriptionInstance.php │ │ ├── SubscriptionList.php │ │ ├── SubscriptionOptions.php │ │ └── SubscriptionPage.php ├── EventsBase.php ├── FlexApi.php ├── FlexApi │ ├── V1.php │ ├── V1 │ │ ├── AssessmentsContext.php │ │ ├── AssessmentsInstance.php │ │ ├── AssessmentsList.php │ │ ├── AssessmentsOptions.php │ │ ├── AssessmentsPage.php │ │ ├── ChannelContext.php │ │ ├── ChannelInstance.php │ │ ├── ChannelList.php │ │ ├── ChannelOptions.php │ │ ├── ChannelPage.php │ │ ├── ConfigurationContext.php │ │ ├── ConfigurationInstance.php │ │ ├── ConfigurationList.php │ │ ├── ConfigurationOptions.php │ │ ├── ConfigurationPage.php │ │ ├── FlexFlowContext.php │ │ ├── FlexFlowInstance.php │ │ ├── FlexFlowList.php │ │ ├── FlexFlowOptions.php │ │ ├── FlexFlowPage.php │ │ ├── InsightsAssessmentsCommentInstance.php │ │ ├── InsightsAssessmentsCommentList.php │ │ ├── InsightsAssessmentsCommentOptions.php │ │ ├── InsightsAssessmentsCommentPage.php │ │ ├── InsightsConversationsInstance.php │ │ ├── InsightsConversationsList.php │ │ ├── InsightsConversationsOptions.php │ │ ├── InsightsConversationsPage.php │ │ ├── InsightsQuestionnairesCategoryContext.php │ │ ├── InsightsQuestionnairesCategoryInstance.php │ │ ├── InsightsQuestionnairesCategoryList.php │ │ ├── InsightsQuestionnairesCategoryOptions.php │ │ ├── InsightsQuestionnairesCategoryPage.php │ │ ├── InsightsQuestionnairesContext.php │ │ ├── InsightsQuestionnairesInstance.php │ │ ├── InsightsQuestionnairesList.php │ │ ├── InsightsQuestionnairesOptions.php │ │ ├── InsightsQuestionnairesPage.php │ │ ├── InsightsQuestionnairesQuestionContext.php │ │ ├── InsightsQuestionnairesQuestionInstance.php │ │ ├── InsightsQuestionnairesQuestionList.php │ │ ├── InsightsQuestionnairesQuestionOptions.php │ │ ├── InsightsQuestionnairesQuestionPage.php │ │ ├── InsightsSegmentsInstance.php │ │ ├── InsightsSegmentsList.php │ │ ├── InsightsSegmentsOptions.php │ │ ├── InsightsSegmentsPage.php │ │ ├── InsightsSessionContext.php │ │ ├── InsightsSessionInstance.php │ │ ├── InsightsSessionList.php │ │ ├── InsightsSessionOptions.php │ │ ├── InsightsSessionPage.php │ │ ├── InsightsSettingsAnswerSetsInstance.php │ │ ├── InsightsSettingsAnswerSetsList.php │ │ ├── InsightsSettingsAnswerSetsOptions.php │ │ ├── InsightsSettingsAnswerSetsPage.php │ │ ├── InsightsSettingsCommentInstance.php │ │ ├── InsightsSettingsCommentList.php │ │ ├── InsightsSettingsCommentOptions.php │ │ ├── InsightsSettingsCommentPage.php │ │ ├── InsightsUserRolesContext.php │ │ ├── InsightsUserRolesInstance.php │ │ ├── InsightsUserRolesList.php │ │ ├── InsightsUserRolesOptions.php │ │ ├── InsightsUserRolesPage.php │ │ ├── Interaction │ │ │ ├── InteractionChannel │ │ │ │ ├── InteractionChannelInviteInstance.php │ │ │ │ ├── InteractionChannelInviteList.php │ │ │ │ ├── InteractionChannelInvitePage.php │ │ │ │ ├── InteractionChannelParticipantContext.php │ │ │ │ ├── InteractionChannelParticipantInstance.php │ │ │ │ ├── InteractionChannelParticipantList.php │ │ │ │ ├── InteractionChannelParticipantOptions.php │ │ │ │ ├── InteractionChannelParticipantPage.php │ │ │ │ ├── InteractionTransferContext.php │ │ │ │ ├── InteractionTransferInstance.php │ │ │ │ ├── InteractionTransferList.php │ │ │ │ └── InteractionTransferPage.php │ │ │ ├── InteractionChannelContext.php │ │ │ ├── InteractionChannelInstance.php │ │ │ ├── InteractionChannelList.php │ │ │ ├── InteractionChannelOptions.php │ │ │ └── InteractionChannelPage.php │ │ ├── InteractionContext.php │ │ ├── InteractionInstance.php │ │ ├── InteractionList.php │ │ ├── InteractionOptions.php │ │ ├── InteractionPage.php │ │ ├── Plugin │ │ │ ├── PluginVersionsContext.php │ │ │ ├── PluginVersionsInstance.php │ │ │ ├── PluginVersionsList.php │ │ │ ├── PluginVersionsOptions.php │ │ │ └── PluginVersionsPage.php │ │ ├── PluginArchiveContext.php │ │ ├── PluginArchiveInstance.php │ │ ├── PluginArchiveList.php │ │ ├── PluginArchiveOptions.php │ │ ├── PluginArchivePage.php │ │ ├── PluginConfiguration │ │ │ ├── ConfiguredPluginContext.php │ │ │ ├── ConfiguredPluginInstance.php │ │ │ ├── ConfiguredPluginList.php │ │ │ ├── ConfiguredPluginOptions.php │ │ │ └── ConfiguredPluginPage.php │ │ ├── PluginConfigurationArchiveContext.php │ │ ├── PluginConfigurationArchiveInstance.php │ │ ├── PluginConfigurationArchiveList.php │ │ ├── PluginConfigurationArchiveOptions.php │ │ ├── PluginConfigurationArchivePage.php │ │ ├── PluginConfigurationContext.php │ │ ├── PluginConfigurationInstance.php │ │ ├── PluginConfigurationList.php │ │ ├── PluginConfigurationOptions.php │ │ ├── PluginConfigurationPage.php │ │ ├── PluginContext.php │ │ ├── PluginInstance.php │ │ ├── PluginList.php │ │ ├── PluginOptions.php │ │ ├── PluginPage.php │ │ ├── PluginReleaseContext.php │ │ ├── PluginReleaseInstance.php │ │ ├── PluginReleaseList.php │ │ ├── PluginReleaseOptions.php │ │ ├── PluginReleasePage.php │ │ ├── PluginVersionArchiveContext.php │ │ ├── PluginVersionArchiveInstance.php │ │ ├── PluginVersionArchiveList.php │ │ ├── PluginVersionArchiveOptions.php │ │ ├── PluginVersionArchivePage.php │ │ ├── ProvisioningStatusContext.php │ │ ├── ProvisioningStatusInstance.php │ │ ├── ProvisioningStatusList.php │ │ ├── ProvisioningStatusPage.php │ │ ├── WebChannelContext.php │ │ ├── WebChannelInstance.php │ │ ├── WebChannelList.php │ │ ├── WebChannelOptions.php │ │ └── WebChannelPage.php │ ├── V2.php │ └── V2 │ │ ├── FlexUserContext.php │ │ ├── FlexUserInstance.php │ │ ├── FlexUserList.php │ │ ├── FlexUserOptions.php │ │ ├── FlexUserPage.php │ │ ├── WebChannelsInstance.php │ │ ├── WebChannelsList.php │ │ ├── WebChannelsOptions.php │ │ └── WebChannelsPage.php ├── FlexApiBase.php ├── FrontlineApi.php ├── FrontlineApi │ ├── V1.php │ └── V1 │ │ ├── UserContext.php │ │ ├── UserInstance.php │ │ ├── UserList.php │ │ ├── UserOptions.php │ │ └── UserPage.php ├── FrontlineApiBase.php ├── Iam.php ├── Iam │ ├── V1.php │ └── V1 │ │ ├── ApiKeyContext.php │ │ ├── ApiKeyInstance.php │ │ ├── ApiKeyList.php │ │ ├── ApiKeyOptions.php │ │ ├── ApiKeyPage.php │ │ ├── GetApiKeysInstance.php │ │ ├── GetApiKeysList.php │ │ ├── GetApiKeysPage.php │ │ ├── NewApiKeyInstance.php │ │ ├── NewApiKeyList.php │ │ ├── NewApiKeyOptions.php │ │ ├── NewApiKeyPage.php │ │ ├── TokenInstance.php │ │ ├── TokenList.php │ │ ├── TokenOptions.php │ │ └── TokenPage.php ├── IamBase.php ├── Insights.php ├── Insights │ ├── V1.php │ └── V1 │ │ ├── Call │ │ ├── AnnotationContext.php │ │ ├── AnnotationInstance.php │ │ ├── AnnotationList.php │ │ ├── AnnotationOptions.php │ │ ├── AnnotationPage.php │ │ ├── CallSummaryContext.php │ │ ├── CallSummaryInstance.php │ │ ├── CallSummaryList.php │ │ ├── CallSummaryOptions.php │ │ ├── CallSummaryPage.php │ │ ├── EventInstance.php │ │ ├── EventList.php │ │ ├── EventOptions.php │ │ ├── EventPage.php │ │ ├── MetricInstance.php │ │ ├── MetricList.php │ │ ├── MetricOptions.php │ │ └── MetricPage.php │ │ ├── CallContext.php │ │ ├── CallInstance.php │ │ ├── CallList.php │ │ ├── CallPage.php │ │ ├── CallSummariesInstance.php │ │ ├── CallSummariesList.php │ │ ├── CallSummariesOptions.php │ │ ├── CallSummariesPage.php │ │ ├── Conference │ │ ├── ConferenceParticipantContext.php │ │ ├── ConferenceParticipantInstance.php │ │ ├── ConferenceParticipantList.php │ │ ├── ConferenceParticipantOptions.php │ │ └── ConferenceParticipantPage.php │ │ ├── ConferenceContext.php │ │ ├── ConferenceInstance.php │ │ ├── ConferenceList.php │ │ ├── ConferenceOptions.php │ │ ├── ConferencePage.php │ │ ├── Room │ │ ├── ParticipantContext.php │ │ ├── ParticipantInstance.php │ │ ├── ParticipantList.php │ │ └── ParticipantPage.php │ │ ├── RoomContext.php │ │ ├── RoomInstance.php │ │ ├── RoomList.php │ │ ├── RoomOptions.php │ │ ├── RoomPage.php │ │ ├── SettingContext.php │ │ ├── SettingInstance.php │ │ ├── SettingList.php │ │ ├── SettingOptions.php │ │ └── SettingPage.php ├── InsightsBase.php ├── Intelligence.php ├── Intelligence │ ├── V2.php │ └── V2 │ │ ├── CustomOperatorContext.php │ │ ├── CustomOperatorInstance.php │ │ ├── CustomOperatorList.php │ │ ├── CustomOperatorOptions.php │ │ ├── CustomOperatorPage.php │ │ ├── OperatorAttachmentContext.php │ │ ├── OperatorAttachmentInstance.php │ │ ├── OperatorAttachmentList.php │ │ ├── OperatorAttachmentPage.php │ │ ├── OperatorAttachmentsContext.php │ │ ├── OperatorAttachmentsInstance.php │ │ ├── OperatorAttachmentsList.php │ │ ├── OperatorAttachmentsPage.php │ │ ├── OperatorContext.php │ │ ├── OperatorInstance.php │ │ ├── OperatorList.php │ │ ├── OperatorOptions.php │ │ ├── OperatorPage.php │ │ ├── OperatorTypeContext.php │ │ ├── OperatorTypeInstance.php │ │ ├── OperatorTypeList.php │ │ ├── OperatorTypePage.php │ │ ├── PrebuiltOperatorContext.php │ │ ├── PrebuiltOperatorInstance.php │ │ ├── PrebuiltOperatorList.php │ │ ├── PrebuiltOperatorOptions.php │ │ ├── PrebuiltOperatorPage.php │ │ ├── ServiceContext.php │ │ ├── ServiceInstance.php │ │ ├── ServiceList.php │ │ ├── ServiceOptions.php │ │ ├── ServicePage.php │ │ ├── Transcript │ │ ├── MediaContext.php │ │ ├── MediaInstance.php │ │ ├── MediaList.php │ │ ├── MediaOptions.php │ │ ├── MediaPage.php │ │ ├── OperatorResultContext.php │ │ ├── OperatorResultInstance.php │ │ ├── OperatorResultList.php │ │ ├── OperatorResultOptions.php │ │ ├── OperatorResultPage.php │ │ ├── SentenceInstance.php │ │ ├── SentenceList.php │ │ ├── SentenceOptions.php │ │ └── SentencePage.php │ │ ├── TranscriptContext.php │ │ ├── TranscriptInstance.php │ │ ├── TranscriptList.php │ │ ├── TranscriptOptions.php │ │ └── TranscriptPage.php ├── IntelligenceBase.php ├── IpMessaging.php ├── IpMessaging │ ├── V1.php │ ├── V1 │ │ ├── CredentialContext.php │ │ ├── CredentialInstance.php │ │ ├── CredentialList.php │ │ ├── CredentialOptions.php │ │ ├── CredentialPage.php │ │ ├── Service │ │ │ ├── Channel │ │ │ │ ├── InviteContext.php │ │ │ │ ├── InviteInstance.php │ │ │ │ ├── InviteList.php │ │ │ │ ├── InviteOptions.php │ │ │ │ ├── InvitePage.php │ │ │ │ ├── MemberContext.php │ │ │ │ ├── MemberInstance.php │ │ │ │ ├── MemberList.php │ │ │ │ ├── MemberOptions.php │ │ │ │ ├── MemberPage.php │ │ │ │ ├── MessageContext.php │ │ │ │ ├── MessageInstance.php │ │ │ │ ├── MessageList.php │ │ │ │ ├── MessageOptions.php │ │ │ │ └── MessagePage.php │ │ │ ├── ChannelContext.php │ │ │ ├── ChannelInstance.php │ │ │ ├── ChannelList.php │ │ │ ├── ChannelOptions.php │ │ │ ├── ChannelPage.php │ │ │ ├── RoleContext.php │ │ │ ├── RoleInstance.php │ │ │ ├── RoleList.php │ │ │ ├── RolePage.php │ │ │ ├── User │ │ │ │ ├── UserChannelInstance.php │ │ │ │ ├── UserChannelList.php │ │ │ │ └── UserChannelPage.php │ │ │ ├── UserContext.php │ │ │ ├── UserInstance.php │ │ │ ├── UserList.php │ │ │ ├── UserOptions.php │ │ │ └── UserPage.php │ │ ├── ServiceContext.php │ │ ├── ServiceInstance.php │ │ ├── ServiceList.php │ │ ├── ServiceOptions.php │ │ └── ServicePage.php │ ├── V2.php │ └── V2 │ │ ├── CredentialContext.php │ │ ├── CredentialInstance.php │ │ ├── CredentialList.php │ │ ├── CredentialOptions.php │ │ ├── CredentialPage.php │ │ ├── Service │ │ ├── BindingContext.php │ │ ├── BindingInstance.php │ │ ├── BindingList.php │ │ ├── BindingOptions.php │ │ ├── BindingPage.php │ │ ├── Channel │ │ │ ├── InviteContext.php │ │ │ ├── InviteInstance.php │ │ │ ├── InviteList.php │ │ │ ├── InviteOptions.php │ │ │ ├── InvitePage.php │ │ │ ├── MemberContext.php │ │ │ ├── MemberInstance.php │ │ │ ├── MemberList.php │ │ │ ├── MemberOptions.php │ │ │ ├── MemberPage.php │ │ │ ├── MessageContext.php │ │ │ ├── MessageInstance.php │ │ │ ├── MessageList.php │ │ │ ├── MessageOptions.php │ │ │ ├── MessagePage.php │ │ │ ├── WebhookContext.php │ │ │ ├── WebhookInstance.php │ │ │ ├── WebhookList.php │ │ │ ├── WebhookOptions.php │ │ │ └── WebhookPage.php │ │ ├── ChannelContext.php │ │ ├── ChannelInstance.php │ │ ├── ChannelList.php │ │ ├── ChannelOptions.php │ │ ├── ChannelPage.php │ │ ├── RoleContext.php │ │ ├── RoleInstance.php │ │ ├── RoleList.php │ │ ├── RolePage.php │ │ ├── User │ │ │ ├── UserBindingContext.php │ │ │ ├── UserBindingInstance.php │ │ │ ├── UserBindingList.php │ │ │ ├── UserBindingOptions.php │ │ │ ├── UserBindingPage.php │ │ │ ├── UserChannelContext.php │ │ │ ├── UserChannelInstance.php │ │ │ ├── UserChannelList.php │ │ │ ├── UserChannelOptions.php │ │ │ └── UserChannelPage.php │ │ ├── UserContext.php │ │ ├── UserInstance.php │ │ ├── UserList.php │ │ ├── UserOptions.php │ │ └── UserPage.php │ │ ├── ServiceContext.php │ │ ├── ServiceInstance.php │ │ ├── ServiceList.php │ │ ├── ServiceOptions.php │ │ └── ServicePage.php ├── IpMessagingBase.php ├── Knowledge.php ├── Knowledge │ ├── V1.php │ └── V1 │ │ ├── Knowledge │ │ ├── ChunkInstance.php │ │ ├── ChunkList.php │ │ ├── ChunkPage.php │ │ ├── KnowledgeStatusContext.php │ │ ├── KnowledgeStatusInstance.php │ │ ├── KnowledgeStatusList.php │ │ └── KnowledgeStatusPage.php │ │ ├── KnowledgeContext.php │ │ ├── KnowledgeInstance.php │ │ ├── KnowledgeList.php │ │ ├── KnowledgeModels.php │ │ └── KnowledgePage.php ├── KnowledgeBase.php ├── Lookups.php ├── Lookups │ ├── V1.php │ ├── V1 │ │ ├── PhoneNumberContext.php │ │ ├── PhoneNumberInstance.php │ │ ├── PhoneNumberList.php │ │ ├── PhoneNumberOptions.php │ │ └── PhoneNumberPage.php │ ├── V2.php │ └── V2 │ │ ├── PhoneNumberContext.php │ │ ├── PhoneNumberInstance.php │ │ ├── PhoneNumberList.php │ │ ├── PhoneNumberOptions.php │ │ └── PhoneNumberPage.php ├── LookupsBase.php ├── Marketplace.php ├── Marketplace │ ├── V1.php │ └── V1 │ │ ├── AvailableAddOn │ │ ├── AvailableAddOnExtensionContext.php │ │ ├── AvailableAddOnExtensionInstance.php │ │ ├── AvailableAddOnExtensionList.php │ │ └── AvailableAddOnExtensionPage.php │ │ ├── AvailableAddOnContext.php │ │ ├── AvailableAddOnInstance.php │ │ ├── AvailableAddOnList.php │ │ ├── AvailableAddOnPage.php │ │ ├── InstalledAddOn │ │ ├── InstalledAddOnExtensionContext.php │ │ ├── InstalledAddOnExtensionInstance.php │ │ ├── InstalledAddOnExtensionList.php │ │ ├── InstalledAddOnExtensionPage.php │ │ ├── InstalledAddOnUsageInstance.php │ │ ├── InstalledAddOnUsageList.php │ │ ├── InstalledAddOnUsageModels.php │ │ └── InstalledAddOnUsagePage.php │ │ ├── InstalledAddOnContext.php │ │ ├── InstalledAddOnInstance.php │ │ ├── InstalledAddOnList.php │ │ ├── InstalledAddOnOptions.php │ │ ├── InstalledAddOnPage.php │ │ ├── ModuleDataInstance.php │ │ ├── ModuleDataList.php │ │ ├── ModuleDataManagementContext.php │ │ ├── ModuleDataManagementInstance.php │ │ ├── ModuleDataManagementList.php │ │ ├── ModuleDataManagementOptions.php │ │ ├── ModuleDataManagementPage.php │ │ ├── ModuleDataOptions.php │ │ ├── ModuleDataPage.php │ │ ├── ReferralConversionInstance.php │ │ ├── ReferralConversionList.php │ │ ├── ReferralConversionModels.php │ │ └── ReferralConversionPage.php ├── MarketplaceBase.php ├── Media.php ├── Messaging.php ├── Messaging │ ├── V1.php │ ├── V1 │ │ ├── BrandRegistration │ │ │ ├── BrandRegistrationOtpInstance.php │ │ │ ├── BrandRegistrationOtpList.php │ │ │ ├── BrandRegistrationOtpPage.php │ │ │ ├── BrandVettingContext.php │ │ │ ├── BrandVettingInstance.php │ │ │ ├── BrandVettingList.php │ │ │ ├── BrandVettingOptions.php │ │ │ └── BrandVettingPage.php │ │ ├── BrandRegistrationContext.php │ │ ├── BrandRegistrationInstance.php │ │ ├── BrandRegistrationList.php │ │ ├── BrandRegistrationOptions.php │ │ ├── BrandRegistrationPage.php │ │ ├── DeactivationsContext.php │ │ ├── DeactivationsInstance.php │ │ ├── DeactivationsList.php │ │ ├── DeactivationsOptions.php │ │ ├── DeactivationsPage.php │ │ ├── DomainCertsContext.php │ │ ├── DomainCertsInstance.php │ │ ├── DomainCertsList.php │ │ ├── DomainCertsPage.php │ │ ├── DomainConfigContext.php │ │ ├── DomainConfigInstance.php │ │ ├── DomainConfigList.php │ │ ├── DomainConfigMessagingServiceContext.php │ │ ├── DomainConfigMessagingServiceInstance.php │ │ ├── DomainConfigMessagingServiceList.php │ │ ├── DomainConfigMessagingServicePage.php │ │ ├── DomainConfigOptions.php │ │ ├── DomainConfigPage.php │ │ ├── ExternalCampaignInstance.php │ │ ├── ExternalCampaignList.php │ │ ├── ExternalCampaignOptions.php │ │ ├── ExternalCampaignPage.php │ │ ├── LinkshorteningMessagingServiceContext.php │ │ ├── LinkshorteningMessagingServiceDomainAssociationContext.php │ │ ├── LinkshorteningMessagingServiceDomainAssociationInstance.php │ │ ├── LinkshorteningMessagingServiceDomainAssociationList.php │ │ ├── LinkshorteningMessagingServiceDomainAssociationPage.php │ │ ├── LinkshorteningMessagingServiceInstance.php │ │ ├── LinkshorteningMessagingServiceList.php │ │ ├── LinkshorteningMessagingServicePage.php │ │ ├── RequestManagedCertContext.php │ │ ├── RequestManagedCertInstance.php │ │ ├── RequestManagedCertList.php │ │ ├── RequestManagedCertPage.php │ │ ├── Service │ │ │ ├── AlphaSenderContext.php │ │ │ ├── AlphaSenderInstance.php │ │ │ ├── AlphaSenderList.php │ │ │ ├── AlphaSenderPage.php │ │ │ ├── ChannelSenderContext.php │ │ │ ├── ChannelSenderInstance.php │ │ │ ├── ChannelSenderList.php │ │ │ ├── ChannelSenderPage.php │ │ │ ├── DestinationAlphaSenderContext.php │ │ │ ├── DestinationAlphaSenderInstance.php │ │ │ ├── DestinationAlphaSenderList.php │ │ │ ├── DestinationAlphaSenderOptions.php │ │ │ ├── DestinationAlphaSenderPage.php │ │ │ ├── PhoneNumberContext.php │ │ │ ├── PhoneNumberInstance.php │ │ │ ├── PhoneNumberList.php │ │ │ ├── PhoneNumberPage.php │ │ │ ├── ShortCodeContext.php │ │ │ ├── ShortCodeInstance.php │ │ │ ├── ShortCodeList.php │ │ │ ├── ShortCodePage.php │ │ │ ├── UsAppToPersonContext.php │ │ │ ├── UsAppToPersonInstance.php │ │ │ ├── UsAppToPersonList.php │ │ │ ├── UsAppToPersonOptions.php │ │ │ ├── UsAppToPersonPage.php │ │ │ ├── UsAppToPersonUsecaseInstance.php │ │ │ ├── UsAppToPersonUsecaseList.php │ │ │ ├── UsAppToPersonUsecaseOptions.php │ │ │ └── UsAppToPersonUsecasePage.php │ │ ├── ServiceContext.php │ │ ├── ServiceInstance.php │ │ ├── ServiceList.php │ │ ├── ServiceOptions.php │ │ ├── ServicePage.php │ │ ├── TollfreeVerificationContext.php │ │ ├── TollfreeVerificationInstance.php │ │ ├── TollfreeVerificationList.php │ │ ├── TollfreeVerificationOptions.php │ │ ├── TollfreeVerificationPage.php │ │ ├── UsecaseInstance.php │ │ ├── UsecaseList.php │ │ └── UsecasePage.php │ ├── V2.php │ └── V2 │ │ ├── ChannelsSenderContext.php │ │ ├── ChannelsSenderInstance.php │ │ ├── ChannelsSenderList.php │ │ ├── ChannelsSenderModels.php │ │ └── ChannelsSenderPage.php ├── MessagingBase.php ├── Microvisor.php ├── Microvisor │ ├── V1.php │ └── V1 │ │ ├── AccountConfigContext.php │ │ ├── AccountConfigInstance.php │ │ ├── AccountConfigList.php │ │ ├── AccountConfigPage.php │ │ ├── AccountSecretContext.php │ │ ├── AccountSecretInstance.php │ │ ├── AccountSecretList.php │ │ ├── AccountSecretPage.php │ │ ├── App │ │ ├── AppManifestContext.php │ │ ├── AppManifestInstance.php │ │ ├── AppManifestList.php │ │ └── AppManifestPage.php │ │ ├── AppContext.php │ │ ├── AppInstance.php │ │ ├── AppList.php │ │ ├── AppPage.php │ │ ├── Device │ │ ├── DeviceConfigContext.php │ │ ├── DeviceConfigInstance.php │ │ ├── DeviceConfigList.php │ │ ├── DeviceConfigPage.php │ │ ├── DeviceSecretContext.php │ │ ├── DeviceSecretInstance.php │ │ ├── DeviceSecretList.php │ │ └── DeviceSecretPage.php │ │ ├── DeviceContext.php │ │ ├── DeviceInstance.php │ │ ├── DeviceList.php │ │ ├── DeviceOptions.php │ │ └── DevicePage.php ├── MicrovisorBase.php ├── Monitor.php ├── Monitor │ ├── V1.php │ └── V1 │ │ ├── AlertContext.php │ │ ├── AlertInstance.php │ │ ├── AlertList.php │ │ ├── AlertOptions.php │ │ ├── AlertPage.php │ │ ├── EventContext.php │ │ ├── EventInstance.php │ │ ├── EventList.php │ │ ├── EventOptions.php │ │ └── EventPage.php ├── MonitorBase.php ├── Notify.php ├── Notify │ ├── V1.php │ └── V1 │ │ ├── CredentialContext.php │ │ ├── CredentialInstance.php │ │ ├── CredentialList.php │ │ ├── CredentialOptions.php │ │ ├── CredentialPage.php │ │ ├── Service │ │ ├── BindingContext.php │ │ ├── BindingInstance.php │ │ ├── BindingList.php │ │ ├── BindingOptions.php │ │ ├── BindingPage.php │ │ ├── NotificationInstance.php │ │ ├── NotificationList.php │ │ ├── NotificationOptions.php │ │ └── NotificationPage.php │ │ ├── ServiceContext.php │ │ ├── ServiceInstance.php │ │ ├── ServiceList.php │ │ ├── ServiceOptions.php │ │ └── ServicePage.php ├── NotifyBase.php ├── Numbers.php ├── Numbers │ ├── V1.php │ ├── V1 │ │ ├── BulkEligibilityContext.php │ │ ├── BulkEligibilityInstance.php │ │ ├── BulkEligibilityList.php │ │ ├── BulkEligibilityPage.php │ │ ├── EligibilityInstance.php │ │ ├── EligibilityList.php │ │ ├── EligibilityPage.php │ │ ├── PortingPortInContext.php │ │ ├── PortingPortInInstance.php │ │ ├── PortingPortInList.php │ │ ├── PortingPortInPage.php │ │ ├── PortingPortInPhoneNumberContext.php │ │ ├── PortingPortInPhoneNumberInstance.php │ │ ├── PortingPortInPhoneNumberList.php │ │ ├── PortingPortInPhoneNumberPage.php │ │ ├── PortingPortabilityContext.php │ │ ├── PortingPortabilityInstance.php │ │ ├── PortingPortabilityList.php │ │ ├── PortingPortabilityOptions.php │ │ ├── PortingPortabilityPage.php │ │ ├── PortingWebhookConfigurationDeleteContext.php │ │ ├── PortingWebhookConfigurationDeleteInstance.php │ │ ├── PortingWebhookConfigurationDeleteList.php │ │ ├── PortingWebhookConfigurationDeletePage.php │ │ ├── PortingWebhookConfigurationInstance.php │ │ ├── PortingWebhookConfigurationList.php │ │ ├── PortingWebhookConfigurationPage.php │ │ ├── SigningRequestConfigurationInstance.php │ │ ├── SigningRequestConfigurationList.php │ │ ├── SigningRequestConfigurationOptions.php │ │ ├── SigningRequestConfigurationPage.php │ │ ├── WebhookInstance.php │ │ ├── WebhookList.php │ │ └── WebhookPage.php │ ├── V2.php │ └── V2 │ │ ├── AuthorizationDocument │ │ ├── DependentHostedNumberOrderInstance.php │ │ ├── DependentHostedNumberOrderList.php │ │ ├── DependentHostedNumberOrderOptions.php │ │ └── DependentHostedNumberOrderPage.php │ │ ├── AuthorizationDocumentContext.php │ │ ├── AuthorizationDocumentInstance.php │ │ ├── AuthorizationDocumentList.php │ │ ├── AuthorizationDocumentOptions.php │ │ ├── AuthorizationDocumentPage.php │ │ ├── BulkHostedNumberOrderContext.php │ │ ├── BulkHostedNumberOrderInstance.php │ │ ├── BulkHostedNumberOrderList.php │ │ ├── BulkHostedNumberOrderOptions.php │ │ ├── BulkHostedNumberOrderPage.php │ │ ├── BundleCloneContext.php │ │ ├── BundleCloneInstance.php │ │ ├── BundleCloneList.php │ │ ├── BundleCloneOptions.php │ │ ├── BundleClonePage.php │ │ ├── HostedNumberOrderContext.php │ │ ├── HostedNumberOrderInstance.php │ │ ├── HostedNumberOrderList.php │ │ ├── HostedNumberOrderOptions.php │ │ ├── HostedNumberOrderPage.php │ │ ├── RegulatoryCompliance │ │ ├── Bundle │ │ │ ├── BundleCopyInstance.php │ │ │ ├── BundleCopyList.php │ │ │ ├── BundleCopyOptions.php │ │ │ ├── BundleCopyPage.php │ │ │ ├── EvaluationContext.php │ │ │ ├── EvaluationInstance.php │ │ │ ├── EvaluationList.php │ │ │ ├── EvaluationPage.php │ │ │ ├── ItemAssignmentContext.php │ │ │ ├── ItemAssignmentInstance.php │ │ │ ├── ItemAssignmentList.php │ │ │ ├── ItemAssignmentPage.php │ │ │ ├── ReplaceItemsInstance.php │ │ │ ├── ReplaceItemsList.php │ │ │ └── ReplaceItemsPage.php │ │ ├── BundleContext.php │ │ ├── BundleInstance.php │ │ ├── BundleList.php │ │ ├── BundleOptions.php │ │ ├── BundlePage.php │ │ ├── EndUserContext.php │ │ ├── EndUserInstance.php │ │ ├── EndUserList.php │ │ ├── EndUserOptions.php │ │ ├── EndUserPage.php │ │ ├── EndUserTypeContext.php │ │ ├── EndUserTypeInstance.php │ │ ├── EndUserTypeList.php │ │ ├── EndUserTypePage.php │ │ ├── RegulationContext.php │ │ ├── RegulationInstance.php │ │ ├── RegulationList.php │ │ ├── RegulationOptions.php │ │ ├── RegulationPage.php │ │ ├── SupportingDocumentContext.php │ │ ├── SupportingDocumentInstance.php │ │ ├── SupportingDocumentList.php │ │ ├── SupportingDocumentOptions.php │ │ ├── SupportingDocumentPage.php │ │ ├── SupportingDocumentTypeContext.php │ │ ├── SupportingDocumentTypeInstance.php │ │ ├── SupportingDocumentTypeList.php │ │ └── SupportingDocumentTypePage.php │ │ ├── RegulatoryComplianceInstance.php │ │ ├── RegulatoryComplianceList.php │ │ └── RegulatoryCompliancePage.php ├── NumbersBase.php ├── Oauth.php ├── Oauth │ ├── V1.php │ └── V1 │ │ ├── AuthorizeInstance.php │ │ ├── AuthorizeList.php │ │ ├── AuthorizeOptions.php │ │ ├── AuthorizePage.php │ │ ├── TokenInstance.php │ │ ├── TokenList.php │ │ ├── TokenOptions.php │ │ └── TokenPage.php ├── OauthBase.php ├── Preview.php ├── Preview │ ├── HostedNumbers.php │ ├── HostedNumbers │ │ ├── AuthorizationDocument │ │ │ ├── DependentHostedNumberOrderInstance.php │ │ │ ├── DependentHostedNumberOrderList.php │ │ │ ├── DependentHostedNumberOrderOptions.php │ │ │ └── DependentHostedNumberOrderPage.php │ │ ├── AuthorizationDocumentContext.php │ │ ├── AuthorizationDocumentInstance.php │ │ ├── AuthorizationDocumentList.php │ │ ├── AuthorizationDocumentOptions.php │ │ ├── AuthorizationDocumentPage.php │ │ ├── HostedNumberOrderContext.php │ │ ├── HostedNumberOrderInstance.php │ │ ├── HostedNumberOrderList.php │ │ ├── HostedNumberOrderOptions.php │ │ └── HostedNumberOrderPage.php │ ├── Marketplace.php │ ├── Marketplace │ │ ├── AvailableAddOn │ │ │ ├── AvailableAddOnExtensionContext.php │ │ │ ├── AvailableAddOnExtensionInstance.php │ │ │ ├── AvailableAddOnExtensionList.php │ │ │ └── AvailableAddOnExtensionPage.php │ │ ├── AvailableAddOnContext.php │ │ ├── AvailableAddOnInstance.php │ │ ├── AvailableAddOnList.php │ │ ├── AvailableAddOnPage.php │ │ ├── InstalledAddOn │ │ │ ├── InstalledAddOnExtensionContext.php │ │ │ ├── InstalledAddOnExtensionInstance.php │ │ │ ├── InstalledAddOnExtensionList.php │ │ │ └── InstalledAddOnExtensionPage.php │ │ ├── InstalledAddOnContext.php │ │ ├── InstalledAddOnInstance.php │ │ ├── InstalledAddOnList.php │ │ ├── InstalledAddOnOptions.php │ │ └── InstalledAddOnPage.php │ ├── Wireless.php │ └── Wireless │ │ ├── CommandContext.php │ │ ├── CommandInstance.php │ │ ├── CommandList.php │ │ ├── CommandOptions.php │ │ ├── CommandPage.php │ │ ├── RatePlanContext.php │ │ ├── RatePlanInstance.php │ │ ├── RatePlanList.php │ │ ├── RatePlanOptions.php │ │ ├── RatePlanPage.php │ │ ├── Sim │ │ ├── UsageContext.php │ │ ├── UsageInstance.php │ │ ├── UsageList.php │ │ ├── UsageOptions.php │ │ └── UsagePage.php │ │ ├── SimContext.php │ │ ├── SimInstance.php │ │ ├── SimList.php │ │ ├── SimOptions.php │ │ └── SimPage.php ├── PreviewBase.php ├── PreviewIam.php ├── PreviewIam │ ├── V1.php │ ├── V1 │ │ ├── AuthorizeInstance.php │ │ ├── AuthorizeList.php │ │ ├── AuthorizeOptions.php │ │ ├── AuthorizePage.php │ │ ├── TokenInstance.php │ │ ├── TokenList.php │ │ ├── TokenOptions.php │ │ └── TokenPage.php │ ├── Versionless.php │ └── Versionless │ │ ├── Organization │ │ ├── AccountContext.php │ │ ├── AccountInstance.php │ │ ├── AccountList.php │ │ ├── AccountPage.php │ │ ├── RoleAssignmentContext.php │ │ ├── RoleAssignmentInstance.php │ │ ├── RoleAssignmentList.php │ │ ├── RoleAssignmentModels.php │ │ ├── RoleAssignmentOptions.php │ │ ├── RoleAssignmentPage.php │ │ ├── UserContext.php │ │ ├── UserInstance.php │ │ ├── UserList.php │ │ ├── UserModels.php │ │ ├── UserOptions.php │ │ └── UserPage.php │ │ ├── OrganizationContext.php │ │ ├── OrganizationInstance.php │ │ ├── OrganizationList.php │ │ └── OrganizationPage.php ├── PreviewIamBase.php ├── PreviewMessaging.php ├── Pricing.php ├── Pricing │ ├── V1.php │ ├── V1 │ │ ├── Messaging │ │ │ ├── CountryContext.php │ │ │ ├── CountryInstance.php │ │ │ ├── CountryList.php │ │ │ └── CountryPage.php │ │ ├── MessagingInstance.php │ │ ├── MessagingList.php │ │ ├── MessagingPage.php │ │ ├── PhoneNumber │ │ │ ├── CountryContext.php │ │ │ ├── CountryInstance.php │ │ │ ├── CountryList.php │ │ │ └── CountryPage.php │ │ ├── PhoneNumberInstance.php │ │ ├── PhoneNumberList.php │ │ ├── PhoneNumberPage.php │ │ ├── Voice │ │ │ ├── CountryContext.php │ │ │ ├── CountryInstance.php │ │ │ ├── CountryList.php │ │ │ ├── CountryPage.php │ │ │ ├── NumberContext.php │ │ │ ├── NumberInstance.php │ │ │ ├── NumberList.php │ │ │ └── NumberPage.php │ │ ├── VoiceInstance.php │ │ ├── VoiceList.php │ │ └── VoicePage.php │ ├── V2.php │ └── V2 │ │ ├── CountryContext.php │ │ ├── CountryInstance.php │ │ ├── CountryList.php │ │ ├── CountryPage.php │ │ ├── NumberContext.php │ │ ├── NumberInstance.php │ │ ├── NumberList.php │ │ ├── NumberOptions.php │ │ ├── NumberPage.php │ │ ├── Voice │ │ ├── CountryContext.php │ │ ├── CountryInstance.php │ │ ├── CountryList.php │ │ ├── CountryPage.php │ │ ├── NumberContext.php │ │ ├── NumberInstance.php │ │ ├── NumberList.php │ │ ├── NumberOptions.php │ │ └── NumberPage.php │ │ ├── VoiceInstance.php │ │ ├── VoiceList.php │ │ └── VoicePage.php ├── PricingBase.php ├── Proxy.php ├── Proxy │ ├── V1.php │ └── V1 │ │ ├── Service │ │ ├── PhoneNumberContext.php │ │ ├── PhoneNumberInstance.php │ │ ├── PhoneNumberList.php │ │ ├── PhoneNumberOptions.php │ │ ├── PhoneNumberPage.php │ │ ├── Session │ │ │ ├── InteractionContext.php │ │ │ ├── InteractionInstance.php │ │ │ ├── InteractionList.php │ │ │ ├── InteractionPage.php │ │ │ ├── Participant │ │ │ │ ├── MessageInteractionContext.php │ │ │ │ ├── MessageInteractionInstance.php │ │ │ │ ├── MessageInteractionList.php │ │ │ │ ├── MessageInteractionOptions.php │ │ │ │ └── MessageInteractionPage.php │ │ │ ├── ParticipantContext.php │ │ │ ├── ParticipantInstance.php │ │ │ ├── ParticipantList.php │ │ │ ├── ParticipantOptions.php │ │ │ └── ParticipantPage.php │ │ ├── SessionContext.php │ │ ├── SessionInstance.php │ │ ├── SessionList.php │ │ ├── SessionOptions.php │ │ ├── SessionPage.php │ │ ├── ShortCodeContext.php │ │ ├── ShortCodeInstance.php │ │ ├── ShortCodeList.php │ │ ├── ShortCodeOptions.php │ │ └── ShortCodePage.php │ │ ├── ServiceContext.php │ │ ├── ServiceInstance.php │ │ ├── ServiceList.php │ │ ├── ServiceOptions.php │ │ └── ServicePage.php ├── ProxyBase.php ├── Routes.php ├── Routes │ ├── V2.php │ └── V2 │ │ ├── PhoneNumberContext.php │ │ ├── PhoneNumberInstance.php │ │ ├── PhoneNumberList.php │ │ ├── PhoneNumberOptions.php │ │ ├── PhoneNumberPage.php │ │ ├── SipDomainContext.php │ │ ├── SipDomainInstance.php │ │ ├── SipDomainList.php │ │ ├── SipDomainOptions.php │ │ ├── SipDomainPage.php │ │ ├── TrunkContext.php │ │ ├── TrunkInstance.php │ │ ├── TrunkList.php │ │ ├── TrunkOptions.php │ │ └── TrunkPage.php ├── RoutesBase.php ├── Serverless.php ├── Serverless │ ├── V1.php │ └── V1 │ │ ├── Service │ │ ├── Asset │ │ │ ├── AssetVersionContext.php │ │ │ ├── AssetVersionInstance.php │ │ │ ├── AssetVersionList.php │ │ │ └── AssetVersionPage.php │ │ ├── AssetContext.php │ │ ├── AssetInstance.php │ │ ├── AssetList.php │ │ ├── AssetPage.php │ │ ├── Build │ │ │ ├── BuildStatusContext.php │ │ │ ├── BuildStatusInstance.php │ │ │ ├── BuildStatusList.php │ │ │ └── BuildStatusPage.php │ │ ├── BuildContext.php │ │ ├── BuildInstance.php │ │ ├── BuildList.php │ │ ├── BuildOptions.php │ │ ├── BuildPage.php │ │ ├── Environment │ │ │ ├── DeploymentContext.php │ │ │ ├── DeploymentInstance.php │ │ │ ├── DeploymentList.php │ │ │ ├── DeploymentOptions.php │ │ │ ├── DeploymentPage.php │ │ │ ├── LogContext.php │ │ │ ├── LogInstance.php │ │ │ ├── LogList.php │ │ │ ├── LogOptions.php │ │ │ ├── LogPage.php │ │ │ ├── VariableContext.php │ │ │ ├── VariableInstance.php │ │ │ ├── VariableList.php │ │ │ ├── VariableOptions.php │ │ │ └── VariablePage.php │ │ ├── EnvironmentContext.php │ │ ├── EnvironmentInstance.php │ │ ├── EnvironmentList.php │ │ ├── EnvironmentOptions.php │ │ ├── EnvironmentPage.php │ │ ├── FunctionContext.php │ │ ├── FunctionInstance.php │ │ ├── FunctionList.php │ │ ├── FunctionPage.php │ │ └── TwilioFunction │ │ │ ├── FunctionVersion │ │ │ ├── FunctionVersionContentContext.php │ │ │ ├── FunctionVersionContentInstance.php │ │ │ ├── FunctionVersionContentList.php │ │ │ └── FunctionVersionContentPage.php │ │ │ ├── FunctionVersionContext.php │ │ │ ├── FunctionVersionInstance.php │ │ │ ├── FunctionVersionList.php │ │ │ └── FunctionVersionPage.php │ │ ├── ServiceContext.php │ │ ├── ServiceInstance.php │ │ ├── ServiceList.php │ │ ├── ServiceOptions.php │ │ └── ServicePage.php ├── ServerlessBase.php ├── Studio.php ├── Studio │ ├── V1.php │ ├── V1 │ │ ├── Flow │ │ │ ├── Engagement │ │ │ │ ├── EngagementContextContext.php │ │ │ │ ├── EngagementContextInstance.php │ │ │ │ ├── EngagementContextList.php │ │ │ │ ├── EngagementContextPage.php │ │ │ │ ├── Step │ │ │ │ │ ├── StepContextContext.php │ │ │ │ │ ├── StepContextInstance.php │ │ │ │ │ ├── StepContextList.php │ │ │ │ │ └── StepContextPage.php │ │ │ │ ├── StepContext.php │ │ │ │ ├── StepInstance.php │ │ │ │ ├── StepList.php │ │ │ │ └── StepPage.php │ │ │ ├── EngagementContext.php │ │ │ ├── EngagementInstance.php │ │ │ ├── EngagementList.php │ │ │ ├── EngagementOptions.php │ │ │ ├── EngagementPage.php │ │ │ ├── Execution │ │ │ │ ├── ExecutionContextContext.php │ │ │ │ ├── ExecutionContextInstance.php │ │ │ │ ├── ExecutionContextList.php │ │ │ │ ├── ExecutionContextPage.php │ │ │ │ ├── ExecutionStep │ │ │ │ │ ├── ExecutionStepContextContext.php │ │ │ │ │ ├── ExecutionStepContextInstance.php │ │ │ │ │ ├── ExecutionStepContextList.php │ │ │ │ │ └── ExecutionStepContextPage.php │ │ │ │ ├── ExecutionStepContext.php │ │ │ │ ├── ExecutionStepInstance.php │ │ │ │ ├── ExecutionStepList.php │ │ │ │ └── ExecutionStepPage.php │ │ │ ├── ExecutionContext.php │ │ │ ├── ExecutionInstance.php │ │ │ ├── ExecutionList.php │ │ │ ├── ExecutionOptions.php │ │ │ └── ExecutionPage.php │ │ ├── FlowContext.php │ │ ├── FlowInstance.php │ │ ├── FlowList.php │ │ └── FlowPage.php │ ├── V2.php │ └── V2 │ │ ├── Flow │ │ ├── Execution │ │ │ ├── ExecutionContextContext.php │ │ │ ├── ExecutionContextInstance.php │ │ │ ├── ExecutionContextList.php │ │ │ ├── ExecutionContextPage.php │ │ │ ├── ExecutionStep │ │ │ │ ├── ExecutionStepContextContext.php │ │ │ │ ├── ExecutionStepContextInstance.php │ │ │ │ ├── ExecutionStepContextList.php │ │ │ │ └── ExecutionStepContextPage.php │ │ │ ├── ExecutionStepContext.php │ │ │ ├── ExecutionStepInstance.php │ │ │ ├── ExecutionStepList.php │ │ │ └── ExecutionStepPage.php │ │ ├── ExecutionContext.php │ │ ├── ExecutionInstance.php │ │ ├── ExecutionList.php │ │ ├── ExecutionOptions.php │ │ ├── ExecutionPage.php │ │ ├── FlowRevisionContext.php │ │ ├── FlowRevisionInstance.php │ │ ├── FlowRevisionList.php │ │ ├── FlowRevisionPage.php │ │ ├── FlowTestUserContext.php │ │ ├── FlowTestUserInstance.php │ │ ├── FlowTestUserList.php │ │ └── FlowTestUserPage.php │ │ ├── FlowContext.php │ │ ├── FlowInstance.php │ │ ├── FlowList.php │ │ ├── FlowOptions.php │ │ ├── FlowPage.php │ │ ├── FlowValidateInstance.php │ │ ├── FlowValidateList.php │ │ ├── FlowValidateOptions.php │ │ └── FlowValidatePage.php ├── StudioBase.php ├── Supersim.php ├── Supersim │ ├── V1.php │ └── V1 │ │ ├── EsimProfileContext.php │ │ ├── EsimProfileInstance.php │ │ ├── EsimProfileList.php │ │ ├── EsimProfileOptions.php │ │ ├── EsimProfilePage.php │ │ ├── FleetContext.php │ │ ├── FleetInstance.php │ │ ├── FleetList.php │ │ ├── FleetOptions.php │ │ ├── FleetPage.php │ │ ├── IpCommandContext.php │ │ ├── IpCommandInstance.php │ │ ├── IpCommandList.php │ │ ├── IpCommandOptions.php │ │ ├── IpCommandPage.php │ │ ├── NetworkAccessProfile │ │ ├── NetworkAccessProfileNetworkContext.php │ │ ├── NetworkAccessProfileNetworkInstance.php │ │ ├── NetworkAccessProfileNetworkList.php │ │ └── NetworkAccessProfileNetworkPage.php │ │ ├── NetworkAccessProfileContext.php │ │ ├── NetworkAccessProfileInstance.php │ │ ├── NetworkAccessProfileList.php │ │ ├── NetworkAccessProfileOptions.php │ │ ├── NetworkAccessProfilePage.php │ │ ├── NetworkContext.php │ │ ├── NetworkInstance.php │ │ ├── NetworkList.php │ │ ├── NetworkOptions.php │ │ ├── NetworkPage.php │ │ ├── SettingsUpdateInstance.php │ │ ├── SettingsUpdateList.php │ │ ├── SettingsUpdateOptions.php │ │ ├── SettingsUpdatePage.php │ │ ├── Sim │ │ ├── BillingPeriodInstance.php │ │ ├── BillingPeriodList.php │ │ ├── BillingPeriodPage.php │ │ ├── SimIpAddressInstance.php │ │ ├── SimIpAddressList.php │ │ └── SimIpAddressPage.php │ │ ├── SimContext.php │ │ ├── SimInstance.php │ │ ├── SimList.php │ │ ├── SimOptions.php │ │ ├── SimPage.php │ │ ├── SmsCommandContext.php │ │ ├── SmsCommandInstance.php │ │ ├── SmsCommandList.php │ │ ├── SmsCommandOptions.php │ │ ├── SmsCommandPage.php │ │ ├── UsageRecordInstance.php │ │ ├── UsageRecordList.php │ │ ├── UsageRecordOptions.php │ │ └── UsageRecordPage.php ├── SupersimBase.php ├── Sync.php ├── Sync │ ├── V1.php │ └── V1 │ │ ├── Service │ │ ├── Document │ │ │ ├── DocumentPermissionContext.php │ │ │ ├── DocumentPermissionInstance.php │ │ │ ├── DocumentPermissionList.php │ │ │ └── DocumentPermissionPage.php │ │ ├── DocumentContext.php │ │ ├── DocumentInstance.php │ │ ├── DocumentList.php │ │ ├── DocumentOptions.php │ │ ├── DocumentPage.php │ │ ├── SyncList │ │ │ ├── SyncListItemContext.php │ │ │ ├── SyncListItemInstance.php │ │ │ ├── SyncListItemList.php │ │ │ ├── SyncListItemOptions.php │ │ │ ├── SyncListItemPage.php │ │ │ ├── SyncListPermissionContext.php │ │ │ ├── SyncListPermissionInstance.php │ │ │ ├── SyncListPermissionList.php │ │ │ └── SyncListPermissionPage.php │ │ ├── SyncListContext.php │ │ ├── SyncListInstance.php │ │ ├── SyncListList.php │ │ ├── SyncListOptions.php │ │ ├── SyncListPage.php │ │ ├── SyncMap │ │ │ ├── SyncMapItemContext.php │ │ │ ├── SyncMapItemInstance.php │ │ │ ├── SyncMapItemList.php │ │ │ ├── SyncMapItemOptions.php │ │ │ ├── SyncMapItemPage.php │ │ │ ├── SyncMapPermissionContext.php │ │ │ ├── SyncMapPermissionInstance.php │ │ │ ├── SyncMapPermissionList.php │ │ │ └── SyncMapPermissionPage.php │ │ ├── SyncMapContext.php │ │ ├── SyncMapInstance.php │ │ ├── SyncMapList.php │ │ ├── SyncMapOptions.php │ │ ├── SyncMapPage.php │ │ ├── SyncStream │ │ │ ├── StreamMessageInstance.php │ │ │ ├── StreamMessageList.php │ │ │ └── StreamMessagePage.php │ │ ├── SyncStreamContext.php │ │ ├── SyncStreamInstance.php │ │ ├── SyncStreamList.php │ │ ├── SyncStreamOptions.php │ │ └── SyncStreamPage.php │ │ ├── ServiceContext.php │ │ ├── ServiceInstance.php │ │ ├── ServiceList.php │ │ ├── ServiceOptions.php │ │ └── ServicePage.php ├── SyncBase.php ├── Taskrouter.php ├── Taskrouter │ ├── V1.php │ └── V1 │ │ ├── Workspace │ │ ├── ActivityContext.php │ │ ├── ActivityInstance.php │ │ ├── ActivityList.php │ │ ├── ActivityOptions.php │ │ ├── ActivityPage.php │ │ ├── EventContext.php │ │ ├── EventInstance.php │ │ ├── EventList.php │ │ ├── EventOptions.php │ │ ├── EventPage.php │ │ ├── Task │ │ │ ├── ReservationContext.php │ │ │ ├── ReservationInstance.php │ │ │ ├── ReservationList.php │ │ │ ├── ReservationOptions.php │ │ │ └── ReservationPage.php │ │ ├── TaskChannelContext.php │ │ ├── TaskChannelInstance.php │ │ ├── TaskChannelList.php │ │ ├── TaskChannelOptions.php │ │ ├── TaskChannelPage.php │ │ ├── TaskContext.php │ │ ├── TaskInstance.php │ │ ├── TaskList.php │ │ ├── TaskOptions.php │ │ ├── TaskPage.php │ │ ├── TaskQueue │ │ │ ├── TaskQueueBulkRealTimeStatisticsInstance.php │ │ │ ├── TaskQueueBulkRealTimeStatisticsList.php │ │ │ ├── TaskQueueBulkRealTimeStatisticsPage.php │ │ │ ├── TaskQueueCumulativeStatisticsContext.php │ │ │ ├── TaskQueueCumulativeStatisticsInstance.php │ │ │ ├── TaskQueueCumulativeStatisticsList.php │ │ │ ├── TaskQueueCumulativeStatisticsOptions.php │ │ │ ├── TaskQueueCumulativeStatisticsPage.php │ │ │ ├── TaskQueueRealTimeStatisticsContext.php │ │ │ ├── TaskQueueRealTimeStatisticsInstance.php │ │ │ ├── TaskQueueRealTimeStatisticsList.php │ │ │ ├── TaskQueueRealTimeStatisticsOptions.php │ │ │ ├── TaskQueueRealTimeStatisticsPage.php │ │ │ ├── TaskQueueStatisticsContext.php │ │ │ ├── TaskQueueStatisticsInstance.php │ │ │ ├── TaskQueueStatisticsList.php │ │ │ ├── TaskQueueStatisticsOptions.php │ │ │ ├── TaskQueueStatisticsPage.php │ │ │ ├── TaskQueuesStatisticsInstance.php │ │ │ ├── TaskQueuesStatisticsList.php │ │ │ ├── TaskQueuesStatisticsOptions.php │ │ │ └── TaskQueuesStatisticsPage.php │ │ ├── TaskQueueContext.php │ │ ├── TaskQueueInstance.php │ │ ├── TaskQueueList.php │ │ ├── TaskQueueOptions.php │ │ ├── TaskQueuePage.php │ │ ├── Worker │ │ │ ├── ReservationContext.php │ │ │ ├── ReservationInstance.php │ │ │ ├── ReservationList.php │ │ │ ├── ReservationOptions.php │ │ │ ├── ReservationPage.php │ │ │ ├── WorkerChannelContext.php │ │ │ ├── WorkerChannelInstance.php │ │ │ ├── WorkerChannelList.php │ │ │ ├── WorkerChannelOptions.php │ │ │ ├── WorkerChannelPage.php │ │ │ ├── WorkerStatisticsContext.php │ │ │ ├── WorkerStatisticsInstance.php │ │ │ ├── WorkerStatisticsList.php │ │ │ ├── WorkerStatisticsOptions.php │ │ │ ├── WorkerStatisticsPage.php │ │ │ ├── WorkersCumulativeStatisticsContext.php │ │ │ ├── WorkersCumulativeStatisticsInstance.php │ │ │ ├── WorkersCumulativeStatisticsList.php │ │ │ ├── WorkersCumulativeStatisticsOptions.php │ │ │ ├── WorkersCumulativeStatisticsPage.php │ │ │ ├── WorkersRealTimeStatisticsContext.php │ │ │ ├── WorkersRealTimeStatisticsInstance.php │ │ │ ├── WorkersRealTimeStatisticsList.php │ │ │ ├── WorkersRealTimeStatisticsOptions.php │ │ │ ├── WorkersRealTimeStatisticsPage.php │ │ │ ├── WorkersStatisticsContext.php │ │ │ ├── WorkersStatisticsInstance.php │ │ │ ├── WorkersStatisticsList.php │ │ │ ├── WorkersStatisticsOptions.php │ │ │ └── WorkersStatisticsPage.php │ │ ├── WorkerContext.php │ │ ├── WorkerInstance.php │ │ ├── WorkerList.php │ │ ├── WorkerOptions.php │ │ ├── WorkerPage.php │ │ ├── Workflow │ │ │ ├── WorkflowCumulativeStatisticsContext.php │ │ │ ├── WorkflowCumulativeStatisticsInstance.php │ │ │ ├── WorkflowCumulativeStatisticsList.php │ │ │ ├── WorkflowCumulativeStatisticsOptions.php │ │ │ ├── WorkflowCumulativeStatisticsPage.php │ │ │ ├── WorkflowRealTimeStatisticsContext.php │ │ │ ├── WorkflowRealTimeStatisticsInstance.php │ │ │ ├── WorkflowRealTimeStatisticsList.php │ │ │ ├── WorkflowRealTimeStatisticsOptions.php │ │ │ ├── WorkflowRealTimeStatisticsPage.php │ │ │ ├── WorkflowStatisticsContext.php │ │ │ ├── WorkflowStatisticsInstance.php │ │ │ ├── WorkflowStatisticsList.php │ │ │ ├── WorkflowStatisticsOptions.php │ │ │ └── WorkflowStatisticsPage.php │ │ ├── WorkflowContext.php │ │ ├── WorkflowInstance.php │ │ ├── WorkflowList.php │ │ ├── WorkflowOptions.php │ │ ├── WorkflowPage.php │ │ ├── WorkspaceCumulativeStatisticsContext.php │ │ ├── WorkspaceCumulativeStatisticsInstance.php │ │ ├── WorkspaceCumulativeStatisticsList.php │ │ ├── WorkspaceCumulativeStatisticsOptions.php │ │ ├── WorkspaceCumulativeStatisticsPage.php │ │ ├── WorkspaceRealTimeStatisticsContext.php │ │ ├── WorkspaceRealTimeStatisticsInstance.php │ │ ├── WorkspaceRealTimeStatisticsList.php │ │ ├── WorkspaceRealTimeStatisticsOptions.php │ │ ├── WorkspaceRealTimeStatisticsPage.php │ │ ├── WorkspaceStatisticsContext.php │ │ ├── WorkspaceStatisticsInstance.php │ │ ├── WorkspaceStatisticsList.php │ │ ├── WorkspaceStatisticsOptions.php │ │ └── WorkspaceStatisticsPage.php │ │ ├── WorkspaceContext.php │ │ ├── WorkspaceInstance.php │ │ ├── WorkspaceList.php │ │ ├── WorkspaceOptions.php │ │ └── WorkspacePage.php ├── TaskrouterBase.php ├── Trunking.php ├── Trunking │ ├── V1.php │ └── V1 │ │ ├── Trunk │ │ ├── CredentialListContext.php │ │ ├── CredentialListInstance.php │ │ ├── CredentialListList.php │ │ ├── CredentialListPage.php │ │ ├── IpAccessControlListContext.php │ │ ├── IpAccessControlListInstance.php │ │ ├── IpAccessControlListList.php │ │ ├── IpAccessControlListPage.php │ │ ├── OriginationUrlContext.php │ │ ├── OriginationUrlInstance.php │ │ ├── OriginationUrlList.php │ │ ├── OriginationUrlOptions.php │ │ ├── OriginationUrlPage.php │ │ ├── PhoneNumberContext.php │ │ ├── PhoneNumberInstance.php │ │ ├── PhoneNumberList.php │ │ ├── PhoneNumberPage.php │ │ ├── RecordingContext.php │ │ ├── RecordingInstance.php │ │ ├── RecordingList.php │ │ ├── RecordingOptions.php │ │ └── RecordingPage.php │ │ ├── TrunkContext.php │ │ ├── TrunkInstance.php │ │ ├── TrunkList.php │ │ ├── TrunkOptions.php │ │ └── TrunkPage.php ├── TrunkingBase.php ├── Trusthub.php ├── Trusthub │ ├── V1.php │ └── V1 │ │ ├── ComplianceInquiriesContext.php │ │ ├── ComplianceInquiriesInstance.php │ │ ├── ComplianceInquiriesList.php │ │ ├── ComplianceInquiriesOptions.php │ │ ├── ComplianceInquiriesPage.php │ │ ├── ComplianceRegistrationInquiriesContext.php │ │ ├── ComplianceRegistrationInquiriesInstance.php │ │ ├── ComplianceRegistrationInquiriesList.php │ │ ├── ComplianceRegistrationInquiriesOptions.php │ │ ├── ComplianceRegistrationInquiriesPage.php │ │ ├── ComplianceTollfreeInquiriesInstance.php │ │ ├── ComplianceTollfreeInquiriesList.php │ │ ├── ComplianceTollfreeInquiriesOptions.php │ │ ├── ComplianceTollfreeInquiriesPage.php │ │ ├── CustomerProfiles │ │ ├── CustomerProfilesChannelEndpointAssignmentContext.php │ │ ├── CustomerProfilesChannelEndpointAssignmentInstance.php │ │ ├── CustomerProfilesChannelEndpointAssignmentList.php │ │ ├── CustomerProfilesChannelEndpointAssignmentOptions.php │ │ ├── CustomerProfilesChannelEndpointAssignmentPage.php │ │ ├── CustomerProfilesEntityAssignmentsContext.php │ │ ├── CustomerProfilesEntityAssignmentsInstance.php │ │ ├── CustomerProfilesEntityAssignmentsList.php │ │ ├── CustomerProfilesEntityAssignmentsOptions.php │ │ ├── CustomerProfilesEntityAssignmentsPage.php │ │ ├── CustomerProfilesEvaluationsContext.php │ │ ├── CustomerProfilesEvaluationsInstance.php │ │ ├── CustomerProfilesEvaluationsList.php │ │ └── CustomerProfilesEvaluationsPage.php │ │ ├── CustomerProfilesContext.php │ │ ├── CustomerProfilesInstance.php │ │ ├── CustomerProfilesList.php │ │ ├── CustomerProfilesOptions.php │ │ ├── CustomerProfilesPage.php │ │ ├── EndUserContext.php │ │ ├── EndUserInstance.php │ │ ├── EndUserList.php │ │ ├── EndUserOptions.php │ │ ├── EndUserPage.php │ │ ├── EndUserTypeContext.php │ │ ├── EndUserTypeInstance.php │ │ ├── EndUserTypeList.php │ │ ├── EndUserTypePage.php │ │ ├── PoliciesContext.php │ │ ├── PoliciesInstance.php │ │ ├── PoliciesList.php │ │ ├── PoliciesPage.php │ │ ├── SupportingDocumentContext.php │ │ ├── SupportingDocumentInstance.php │ │ ├── SupportingDocumentList.php │ │ ├── SupportingDocumentOptions.php │ │ ├── SupportingDocumentPage.php │ │ ├── SupportingDocumentTypeContext.php │ │ ├── SupportingDocumentTypeInstance.php │ │ ├── SupportingDocumentTypeList.php │ │ ├── SupportingDocumentTypePage.php │ │ ├── TrustProducts │ │ ├── TrustProductsChannelEndpointAssignmentContext.php │ │ ├── TrustProductsChannelEndpointAssignmentInstance.php │ │ ├── TrustProductsChannelEndpointAssignmentList.php │ │ ├── TrustProductsChannelEndpointAssignmentOptions.php │ │ ├── TrustProductsChannelEndpointAssignmentPage.php │ │ ├── TrustProductsEntityAssignmentsContext.php │ │ ├── TrustProductsEntityAssignmentsInstance.php │ │ ├── TrustProductsEntityAssignmentsList.php │ │ ├── TrustProductsEntityAssignmentsOptions.php │ │ ├── TrustProductsEntityAssignmentsPage.php │ │ ├── TrustProductsEvaluationsContext.php │ │ ├── TrustProductsEvaluationsInstance.php │ │ ├── TrustProductsEvaluationsList.php │ │ └── TrustProductsEvaluationsPage.php │ │ ├── TrustProductsContext.php │ │ ├── TrustProductsInstance.php │ │ ├── TrustProductsList.php │ │ ├── TrustProductsOptions.php │ │ └── TrustProductsPage.php ├── TrusthubBase.php ├── Verify.php ├── Verify │ ├── V2.php │ └── V2 │ │ ├── FormContext.php │ │ ├── FormInstance.php │ │ ├── FormList.php │ │ ├── FormPage.php │ │ ├── SafelistContext.php │ │ ├── SafelistInstance.php │ │ ├── SafelistList.php │ │ ├── SafelistPage.php │ │ ├── Service │ │ ├── AccessTokenContext.php │ │ ├── AccessTokenInstance.php │ │ ├── AccessTokenList.php │ │ ├── AccessTokenOptions.php │ │ ├── AccessTokenPage.php │ │ ├── Entity │ │ │ ├── Challenge │ │ │ │ ├── NotificationInstance.php │ │ │ │ ├── NotificationList.php │ │ │ │ ├── NotificationOptions.php │ │ │ │ └── NotificationPage.php │ │ │ ├── ChallengeContext.php │ │ │ ├── ChallengeInstance.php │ │ │ ├── ChallengeList.php │ │ │ ├── ChallengeOptions.php │ │ │ ├── ChallengePage.php │ │ │ ├── FactorContext.php │ │ │ ├── FactorInstance.php │ │ │ ├── FactorList.php │ │ │ ├── FactorOptions.php │ │ │ ├── FactorPage.php │ │ │ ├── NewFactorInstance.php │ │ │ ├── NewFactorList.php │ │ │ ├── NewFactorOptions.php │ │ │ └── NewFactorPage.php │ │ ├── EntityContext.php │ │ ├── EntityInstance.php │ │ ├── EntityList.php │ │ ├── EntityPage.php │ │ ├── MessagingConfigurationContext.php │ │ ├── MessagingConfigurationInstance.php │ │ ├── MessagingConfigurationList.php │ │ ├── MessagingConfigurationPage.php │ │ ├── RateLimit │ │ │ ├── BucketContext.php │ │ │ ├── BucketInstance.php │ │ │ ├── BucketList.php │ │ │ ├── BucketOptions.php │ │ │ └── BucketPage.php │ │ ├── RateLimitContext.php │ │ ├── RateLimitInstance.php │ │ ├── RateLimitList.php │ │ ├── RateLimitOptions.php │ │ ├── RateLimitPage.php │ │ ├── VerificationCheckInstance.php │ │ ├── VerificationCheckList.php │ │ ├── VerificationCheckOptions.php │ │ ├── VerificationCheckPage.php │ │ ├── VerificationContext.php │ │ ├── VerificationInstance.php │ │ ├── VerificationList.php │ │ ├── VerificationOptions.php │ │ ├── VerificationPage.php │ │ ├── WebhookContext.php │ │ ├── WebhookInstance.php │ │ ├── WebhookList.php │ │ ├── WebhookOptions.php │ │ └── WebhookPage.php │ │ ├── ServiceContext.php │ │ ├── ServiceInstance.php │ │ ├── ServiceList.php │ │ ├── ServiceOptions.php │ │ ├── ServicePage.php │ │ ├── TemplateInstance.php │ │ ├── TemplateList.php │ │ ├── TemplateOptions.php │ │ ├── TemplatePage.php │ │ ├── VerificationAttemptContext.php │ │ ├── VerificationAttemptInstance.php │ │ ├── VerificationAttemptList.php │ │ ├── VerificationAttemptOptions.php │ │ ├── VerificationAttemptPage.php │ │ ├── VerificationAttemptsSummaryContext.php │ │ ├── VerificationAttemptsSummaryInstance.php │ │ ├── VerificationAttemptsSummaryList.php │ │ ├── VerificationAttemptsSummaryOptions.php │ │ └── VerificationAttemptsSummaryPage.php ├── VerifyBase.php ├── Video.php ├── Video │ ├── V1.php │ └── V1 │ │ ├── CompositionContext.php │ │ ├── CompositionHookContext.php │ │ ├── CompositionHookInstance.php │ │ ├── CompositionHookList.php │ │ ├── CompositionHookOptions.php │ │ ├── CompositionHookPage.php │ │ ├── CompositionInstance.php │ │ ├── CompositionList.php │ │ ├── CompositionOptions.php │ │ ├── CompositionPage.php │ │ ├── CompositionSettingsContext.php │ │ ├── CompositionSettingsInstance.php │ │ ├── CompositionSettingsList.php │ │ ├── CompositionSettingsOptions.php │ │ ├── CompositionSettingsPage.php │ │ ├── RecordingContext.php │ │ ├── RecordingInstance.php │ │ ├── RecordingList.php │ │ ├── RecordingOptions.php │ │ ├── RecordingPage.php │ │ ├── RecordingSettingsContext.php │ │ ├── RecordingSettingsInstance.php │ │ ├── RecordingSettingsList.php │ │ ├── RecordingSettingsOptions.php │ │ ├── RecordingSettingsPage.php │ │ ├── Room │ │ ├── Participant │ │ │ ├── AnonymizeContext.php │ │ │ ├── AnonymizeInstance.php │ │ │ ├── AnonymizeList.php │ │ │ ├── AnonymizePage.php │ │ │ ├── PublishedTrackContext.php │ │ │ ├── PublishedTrackInstance.php │ │ │ ├── PublishedTrackList.php │ │ │ ├── PublishedTrackPage.php │ │ │ ├── SubscribeRulesInstance.php │ │ │ ├── SubscribeRulesList.php │ │ │ ├── SubscribeRulesOptions.php │ │ │ ├── SubscribeRulesPage.php │ │ │ ├── SubscribedTrackContext.php │ │ │ ├── SubscribedTrackInstance.php │ │ │ ├── SubscribedTrackList.php │ │ │ └── SubscribedTrackPage.php │ │ ├── ParticipantContext.php │ │ ├── ParticipantInstance.php │ │ ├── ParticipantList.php │ │ ├── ParticipantOptions.php │ │ ├── ParticipantPage.php │ │ ├── RecordingRulesInstance.php │ │ ├── RecordingRulesList.php │ │ ├── RecordingRulesOptions.php │ │ ├── RecordingRulesPage.php │ │ ├── RoomRecordingContext.php │ │ ├── RoomRecordingInstance.php │ │ ├── RoomRecordingList.php │ │ ├── RoomRecordingOptions.php │ │ └── RoomRecordingPage.php │ │ ├── RoomContext.php │ │ ├── RoomInstance.php │ │ ├── RoomList.php │ │ ├── RoomOptions.php │ │ └── RoomPage.php ├── VideoBase.php ├── Voice.php ├── Voice │ ├── V1.php │ └── V1 │ │ ├── ArchivedCallContext.php │ │ ├── ArchivedCallInstance.php │ │ ├── ArchivedCallList.php │ │ ├── ArchivedCallPage.php │ │ ├── ByocTrunkContext.php │ │ ├── ByocTrunkInstance.php │ │ ├── ByocTrunkList.php │ │ ├── ByocTrunkOptions.php │ │ ├── ByocTrunkPage.php │ │ ├── ConnectionPolicy │ │ ├── ConnectionPolicyTargetContext.php │ │ ├── ConnectionPolicyTargetInstance.php │ │ ├── ConnectionPolicyTargetList.php │ │ ├── ConnectionPolicyTargetOptions.php │ │ └── ConnectionPolicyTargetPage.php │ │ ├── ConnectionPolicyContext.php │ │ ├── ConnectionPolicyInstance.php │ │ ├── ConnectionPolicyList.php │ │ ├── ConnectionPolicyOptions.php │ │ ├── ConnectionPolicyPage.php │ │ ├── DialingPermissions │ │ ├── BulkCountryUpdateInstance.php │ │ ├── BulkCountryUpdateList.php │ │ ├── BulkCountryUpdatePage.php │ │ ├── Country │ │ │ ├── HighriskSpecialPrefixInstance.php │ │ │ ├── HighriskSpecialPrefixList.php │ │ │ └── HighriskSpecialPrefixPage.php │ │ ├── CountryContext.php │ │ ├── CountryInstance.php │ │ ├── CountryList.php │ │ ├── CountryOptions.php │ │ ├── CountryPage.php │ │ ├── SettingsContext.php │ │ ├── SettingsInstance.php │ │ ├── SettingsList.php │ │ ├── SettingsOptions.php │ │ └── SettingsPage.php │ │ ├── DialingPermissionsInstance.php │ │ ├── DialingPermissionsList.php │ │ ├── DialingPermissionsPage.php │ │ ├── IpRecordContext.php │ │ ├── IpRecordInstance.php │ │ ├── IpRecordList.php │ │ ├── IpRecordOptions.php │ │ ├── IpRecordPage.php │ │ ├── SourceIpMappingContext.php │ │ ├── SourceIpMappingInstance.php │ │ ├── SourceIpMappingList.php │ │ └── SourceIpMappingPage.php ├── VoiceBase.php ├── Wireless.php ├── Wireless │ ├── V1.php │ └── V1 │ │ ├── CommandContext.php │ │ ├── CommandInstance.php │ │ ├── CommandList.php │ │ ├── CommandOptions.php │ │ ├── CommandPage.php │ │ ├── RatePlanContext.php │ │ ├── RatePlanInstance.php │ │ ├── RatePlanList.php │ │ ├── RatePlanOptions.php │ │ ├── RatePlanPage.php │ │ ├── Sim │ │ ├── DataSessionInstance.php │ │ ├── DataSessionList.php │ │ ├── DataSessionPage.php │ │ ├── UsageRecordInstance.php │ │ ├── UsageRecordList.php │ │ ├── UsageRecordOptions.php │ │ └── UsageRecordPage.php │ │ ├── SimContext.php │ │ ├── SimInstance.php │ │ ├── SimList.php │ │ ├── SimOptions.php │ │ ├── SimPage.php │ │ ├── UsageRecordInstance.php │ │ ├── UsageRecordList.php │ │ ├── UsageRecordOptions.php │ │ └── UsageRecordPage.php └── WirelessBase.php ├── Security └── RequestValidator.php ├── Serialize.php ├── Stream.php ├── TaskRouter ├── WorkflowConfiguration.php ├── WorkflowRule.php └── WorkflowRuleTarget.php ├── TwiML ├── Fax │ └── Receive.php ├── FaxResponse.php ├── GenericNode.php ├── Messaging │ ├── Body.php │ ├── Media.php │ ├── Message.php │ └── Redirect.php ├── MessagingResponse.php ├── TwiML.php ├── Video │ └── Room.php ├── Voice │ ├── Application.php │ ├── ApplicationSid.php │ ├── Assistant.php │ ├── Autopilot.php │ ├── Client.php │ ├── Conference.php │ ├── Config.php │ ├── Connect.php │ ├── Conversation.php │ ├── ConversationRelay.php │ ├── Dial.php │ ├── Echo_.php │ ├── Enqueue.php │ ├── Gather.php │ ├── Hangup.php │ ├── Identity.php │ ├── Language.php │ ├── Leave.php │ ├── Number.php │ ├── Parameter.php │ ├── Pause.php │ ├── Pay.php │ ├── Play.php │ ├── Prompt.php │ ├── Queue.php │ ├── Record.php │ ├── Redirect.php │ ├── Refer.php │ ├── ReferSip.php │ ├── Reject.php │ ├── Room.php │ ├── Say.php │ ├── Sim.php │ ├── Sip.php │ ├── Siprec.php │ ├── Sms.php │ ├── SsmlBreak.php │ ├── SsmlEmphasis.php │ ├── SsmlLang.php │ ├── SsmlP.php │ ├── SsmlPhoneme.php │ ├── SsmlProsody.php │ ├── SsmlS.php │ ├── SsmlSayAs.php │ ├── SsmlSub.php │ ├── SsmlW.php │ ├── Start.php │ ├── Stop.php │ ├── Stream.php │ ├── Task.php │ ├── Transcription.php │ └── VirtualAgent.php └── VoiceResponse.php ├── Values.php ├── Version.php ├── VersionInfo.php └── autoload.php /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | contact_links: 2 | - name: Twilio Support 3 | url: https://twilio.com/help/contact 4 | about: Get Support 5 | - name: Stack Overflow 6 | url: https://stackoverflow.com/questions/tagged/twilio-php+or+twilio+php 7 | about: Ask questions on Stack Overflow 8 | - name: Documentation 9 | url: https://www.twilio.com/docs/libraries/reference/twilio-php 10 | about: View Reference Documentation 11 | -------------------------------------------------------------------------------- /.github/workflows/pr-lint.yml: -------------------------------------------------------------------------------- 1 | name: Lint PR 2 | on: 3 | pull_request_target: 4 | types: [ opened, edited, synchronize, reopened ] 5 | 6 | jobs: 7 | validate: 8 | name: Validate title 9 | runs-on: ubuntu-latest 10 | steps: 11 | - uses: amannn/action-semantic-pull-request@v5 12 | with: 13 | types: | 14 | chore 15 | docs 16 | fix 17 | feat 18 | misc 19 | test 20 | env: 21 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 22 | -------------------------------------------------------------------------------- /.php-cs-fixer.dist.php: -------------------------------------------------------------------------------- 1 | setRules(['nullable_type_declaration_for_default_null_value' => true,]); 6 | 7 | return $config->setFinder(PhpCsFixer\Finder::create()->in(__DIR__.'/src')); 8 | 9 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM php:7.4 2 | 3 | RUN apt-get update -y && apt-get install -y zip 4 | 5 | RUN mkdir /twilio 6 | WORKDIR /twilio 7 | ENV PATH="vendor/bin:$PATH" 8 | 9 | COPY src src 10 | COPY tests tests 11 | COPY composer* ./ 12 | 13 | COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer 14 | RUN composer install --prefer-dist 15 | -------------------------------------------------------------------------------- /Dockerfile-dev: -------------------------------------------------------------------------------- 1 | ARG version 2 | FROM php:$version 3 | 4 | RUN curl --silent --show-error https://getcomposer.org/installer | php 5 | RUN mv composer.phar /usr/local/bin/composer 6 | 7 | RUN apt-get update -y && \ 8 | apt-get upgrade -y && \ 9 | apt-get dist-upgrade -y && \ 10 | apt-get -y autoremove && \ 11 | apt-get clean 12 | 13 | RUN apt-get install -y zip unzip git 14 | 15 | ENV COMPOSER_ALLOW_SUPERUSER=1 16 | WORKDIR /twilio 17 | -------------------------------------------------------------------------------- /PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 16 | 17 | # Fixes # 18 | 19 | A short description of what this PR does. 20 | 21 | ### Checklist 22 | - [x] I acknowledge that all my contributions will be made under the project's license 23 | - [ ] I have made a material change to the repo (functionality, testing, spelling, grammar) 24 | - [ ] I have read the [Contribution Guidelines](https://github.com/twilio/twilio-php/blob/main/CONTRIBUTING.md) and my PR follows them 25 | - [ ] I have titled the PR appropriately 26 | - [ ] I have updated my branch with the main branch 27 | - [ ] I have added tests that prove my fix is effective or that my feature works 28 | - [ ] I have added the necessary documentation about the functionality in the appropriate .md file 29 | - [ ] I have added inline documentation to the code I modified 30 | 31 | If you have questions, please file a [support ticket](https://twilio.com/help/contact), or create a GitHub Issue in this repository. 32 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "twilio/sdk", 3 | "type": "library", 4 | "description": "A PHP wrapper for Twilio's API", 5 | "keywords": ["twilio", "sms", "api"], 6 | "homepage": "https://github.com/twilio/twilio-php", 7 | "license": "MIT", 8 | "authors": [ 9 | { 10 | "name": "Twilio API Team", 11 | "email": "api@twilio.com" 12 | } 13 | ], 14 | "require": { 15 | "php": ">=7.1.0" 16 | }, 17 | "require-dev": { 18 | "guzzlehttp/guzzle": "^6.3 || ^7.0", 19 | "phpunit/phpunit": ">=7.0 < 10", 20 | "friendsofphp/php-cs-fixer": "^3.0" 21 | }, 22 | "suggest": { 23 | "guzzlehttp/guzzle": "An HTTP client to execute the API requests" 24 | }, 25 | "autoload": { 26 | "psr-4": { 27 | "Twilio\\": "src/Twilio/" 28 | } 29 | }, 30 | "autoload-dev": { 31 | "psr-4": { 32 | "": "src/Twilio/", 33 | "Twilio\\Tests\\": "tests/Twilio/" 34 | } 35 | }, 36 | "scripts": { 37 | "php84-fix": [ 38 | "@putenv PHP_CS_FIXER_IGNORE_ENV=1", 39 | "vendor/bin/php-cs-fixer -vvv fix --using-cache=no ." 40 | ] 41 | }, 42 | "config": { 43 | "lock": false 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /example/call.php: -------------------------------------------------------------------------------- 1 | calls->create( 24 | $to, 25 | $from, 26 | ["url" => "https://twilio.com"] 27 | ); 28 | print("Call made successfully with sid: ".$call->sid."\n\n"); 29 | 30 | // Get some calls 31 | $callsList = $client->calls->read([],null,2); 32 | foreach ($callsList as $call) { 33 | print("Call {$call->sid}: {$call->duration} seconds\n"); 34 | } -------------------------------------------------------------------------------- /example/incomingPhoneNumber.php: -------------------------------------------------------------------------------- 1 | availablePhoneNumbers("XX")->local->read(); 17 | 18 | // Buy the first phone number 19 | if(!empty($numbers)){ 20 | $local = $numbers[0]; 21 | return $client->incomingPhoneNumbers->create(["phoneNumber" => $local->phoneNumber]); 22 | } 23 | 24 | return null; 25 | } 26 | 27 | // Get a number 28 | $number = buyNumber(); 29 | print("Twilio purchased phoneNumber: ".$number->phoneNumber."\n"); -------------------------------------------------------------------------------- /example/message.php: -------------------------------------------------------------------------------- 1 | messages->create( 19 | $phoneNumber, 20 | [ 21 | 'from' => $twilioPurchasedNumber, 22 | 'body' => "Hey Jenny! Good luck on the bar exam!" 23 | ] 24 | ); 25 | print("Message sent successfully with sid = " . $message->sid ."\n\n"); 26 | 27 | // Print the last 10 messages 28 | $messageList = $client->messages->read([],10); 29 | foreach ($messageList as $msg) { 30 | print("ID:: ". $msg->sid . " | " . "From:: " . $msg->from . " | " . "TO:: " . $msg->to . " | " . " Status:: " . $msg->status . " | " . " Body:: ". $msg->body ."\n"); 31 | } 32 | -------------------------------------------------------------------------------- /example/orgs_api_example.php: -------------------------------------------------------------------------------- 1 | setClientId($clientId)->setClientSecret($clientSecret)->build(); 12 | 13 | $client = new Client(); 14 | $client->setCredentialProvider($orgsCredentialProvider); 15 | 16 | //list users 17 | $users = $client->previewIam->organization($orgSid)->users->read(); 18 | foreach ($users as $user) { 19 | printf("User SID: %s\n", $user->id); 20 | } 21 | -------------------------------------------------------------------------------- /example/public_oauth_example.php: -------------------------------------------------------------------------------- 1 | setClientId($clientId)->setClientSecret($clientSecret)->build(); 14 | 15 | $client = new Client(); 16 | $client->setCredentialProvider($clientCredentialProvider); 17 | $client->setAccountSid($accountSid); 18 | 19 | $messageList = $client->messages->read([],10); 20 | foreach ($messageList as $msg) { 21 | print("ID:: ". $msg->sid . " | " . "From:: " . $msg->from . " | " . "TO:: " . $msg->to . " | " . " Status:: " . $msg->status . " | " . " Body:: ". $msg->body ."\n"); 22 | } 23 | -------------------------------------------------------------------------------- /example/record.php: -------------------------------------------------------------------------------- 1 | usage->records->read([], 10); 12 | foreach ($recordList as $record) { 13 | print_r("Record(accountSid=" . $record->accountSid . ", apiVersion=" . $record->apiVersion . ", asOf=" . $record->asOf . ", category=" . $record->category . ", count=" . $record->count . ", countUnit=" . $record->countUnit . ", description=" . $record->description . ", endDate=" . $record->endDate->format("Y-m-d H:i:s") . ", price=" . $record->price . ", priceUnit=" . $record->priceUnit . ", startDate=" . $record->startDate->format("Y-m-d H:i:s") . ", uri=" . $record->uri . ", usage=" . $record->usage . ", usageUnit=" . $record->usageUnit . "\n"); 14 | } -------------------------------------------------------------------------------- /example/signingKey.php: -------------------------------------------------------------------------------- 1 | api->v2010->newSigningKeys->create(); 12 | 13 | // Switch to guzzle client as the default client 14 | $guzzleClient = new Client($signingKey->sid, $signingKey->secret, $sid, null, new \Twilio\Http\GuzzleClient(new \GuzzleHttp\Client)); 15 | 16 | // The phone number you are querying in E.164 or national format. 17 | // If the phone number is provided in national format, please also specify the country in the optional parameter CountryCode. 18 | // Otherwise, CountryCode will default to US. 19 | $number = "+XXXXXXXXXX"; 20 | 21 | // Make REST API requests 22 | $phone_number = $guzzleClient->lookups->v1->phoneNumbers($number) 23 | ->fetch([ 24 | "type" => ["carrier"] 25 | ]); 26 | 27 | print_r($phone_number->carrier); 28 | -------------------------------------------------------------------------------- /example/trunk.php: -------------------------------------------------------------------------------- 1 | trunking->v1->trunks->create( 12 | [ 13 | "friendlyName" => "shiny trunk", 14 | "secure" => false 15 | ] 16 | ); 17 | print("\n".$trunk."\n"); -------------------------------------------------------------------------------- /example/twiML.php: -------------------------------------------------------------------------------- 1 | 'woman' 9 | ]); 10 | 11 | $play = new \Twilio\TwiML\Voice\Play("https://api.twilio.com/cowbell.mp3", [ 12 | 'loop' => 5 13 | ]); 14 | 15 | $twiml = new VoiceResponse(); 16 | $twiml->append($say); 17 | $twiml->append($play); 18 | 19 | print("TwiML Say and Play: \n{$twiml->asXML()}\n"); 20 | 21 | 22 | // Gather, Redirect 23 | $twimlResponse = new VoiceResponse(); 24 | $gather = $twimlResponse->gather(); 25 | $gather->setNumDigits(10); 26 | $gather->say("Press 1"); 27 | $twimlResponse->redirect("https://example.com"); 28 | print("TwiML Gather and Redirect: \n{$twimlResponse->asXML()}\n"); 29 | 30 | 31 | // Dial 32 | $twimlResponse = new VoiceResponse(); 33 | 34 | // A valid phone number formatted with a '+' and a country code (e.g., +16175551212) 35 | $callerID = '+XXXXXXXX'; 36 | $dial = $twimlResponse->dial('', [ 37 | 'callerId' => $callerID, 38 | 'action' => 'https:///example.com', 39 | 'hangupOnStar' => true, 40 | ]); 41 | 42 | $dial->conference("My Room", ["beep" => "true"]); 43 | print("TwiML Dial: \n{$twimlResponse->asXML()}\n"); 44 | -------------------------------------------------------------------------------- /phpdox.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /sonar-project.properties: -------------------------------------------------------------------------------- 1 | sonar.projectKey=twilio_twilio-php 2 | sonar.projectName=twilio-php 3 | sonar.organization=twilio 4 | 5 | sonar.sources=src/ 6 | sonar.exclusions=src/Twilio/Rest/**/*, src/Twilio/TwiML/*/*, src/Twilio/TwiML/*Response.php 7 | sonar.tests=tests/ 8 | sonar.test.exclusions=tests/Twilio/Integration/**/* 9 | 10 | # For Code Coverage analysis 11 | sonar.php.coverage.reportPaths=coverage.xml 12 | -------------------------------------------------------------------------------- /src/Twilio/AuthStrategy/AuthStrategy.php: -------------------------------------------------------------------------------- 1 | authType = $authType; 15 | } 16 | 17 | public function getAuthType(): string { 18 | return $this->authType; 19 | } 20 | 21 | /** 22 | * Returns the value to be set in the authentication header 23 | * 24 | * @return string the authentication string 25 | */ 26 | abstract public function getAuthString(): string; 27 | } 28 | -------------------------------------------------------------------------------- /src/Twilio/AuthStrategy/BasicAuthStrategy.php: -------------------------------------------------------------------------------- 1 | username = $username; 18 | $this->password = $password; 19 | } 20 | 21 | /** 22 | * Returns the base64 encoded string concatenating the username and password 23 | * 24 | * @return string the base64 encoded string 25 | */ 26 | public function getAuthString(): string { 27 | return base64_encode($this->username . ':' . $this->password); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Twilio/AuthStrategy/NoAuthStrategy.php: -------------------------------------------------------------------------------- 1 | instance = new ClientCredentialProvider(); 17 | } 18 | 19 | public function setGrantType(string $grantType): ClientCredentialProviderBuilder { 20 | $this->instance->grantType = $grantType; 21 | return $this; 22 | } 23 | 24 | public function setClientId(string $clientId): ClientCredentialProviderBuilder { 25 | $this->instance->clientId = $clientId; 26 | return $this; 27 | } 28 | 29 | public function setClientSecret(string $clientSecret): ClientCredentialProviderBuilder { 30 | $this->instance->clientSecret = $clientSecret; 31 | return $this; 32 | } 33 | 34 | public function setTokenManager(TokenManager $tokenManager): ClientCredentialProviderBuilder { 35 | $this->instance->setTokenManager($tokenManager); 36 | return $this; 37 | } 38 | 39 | public function build(): ClientCredentialProvider 40 | { 41 | return $this->instance; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /src/Twilio/CredentialProvider/CredentialProvider.php: -------------------------------------------------------------------------------- 1 | authType = $authType; 17 | } 18 | 19 | public function getAuthType(): string { 20 | return $this->authType; 21 | } 22 | 23 | /** 24 | * Returns the authentication strategy for the credential provider 25 | * 26 | * @return AuthStrategy the authentication strategy for the credential provider 27 | */ 28 | abstract public function toAuthStrategy(): AuthStrategy; 29 | } 30 | -------------------------------------------------------------------------------- /src/Twilio/CredentialProvider/NoAuthCredentialProvider.php: -------------------------------------------------------------------------------- 1 | instance = new OrgsCredentialProvider(); 17 | } 18 | 19 | public function setGrantType(string $grantType): OrgsCredentialProviderBuilder { 20 | $this->instance->grantType = $grantType; 21 | return $this; 22 | } 23 | 24 | public function setClientId(string $clientId): OrgsCredentialProviderBuilder { 25 | $this->instance->clientId = $clientId; 26 | return $this; 27 | } 28 | 29 | public function setClientSecret(string $clientSecret): OrgsCredentialProviderBuilder { 30 | $this->instance->clientSecret = $clientSecret; 31 | return $this; 32 | } 33 | 34 | public function setTokenManager(TokenManager $tokenManager): OrgsCredentialProviderBuilder { 35 | $this->instance->setTokenManager($tokenManager); 36 | return $this; 37 | } 38 | 39 | public function build(): OrgsCredentialProvider 40 | { 41 | return $this->instance; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /src/Twilio/Deserialize.php: -------------------------------------------------------------------------------- 1 | 0) { 42 | return new PhoneNumberCapabilities($arr); 43 | } 44 | } 45 | } catch (\Exception $e) { 46 | // no-op 47 | } 48 | 49 | return $arr; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /src/Twilio/Exceptions/ConfigurationException.php: -------------------------------------------------------------------------------- 1 | statusCode = $statusCode; 24 | $this->moreInfo = $moreInfo; 25 | $this->details = $details; 26 | parent::__construct($message, $code); 27 | } 28 | 29 | /** 30 | * Get the HTTP Status Code of the RestException 31 | * @return int HTTP Status Code 32 | */ 33 | public function getStatusCode(): int { 34 | return $this->statusCode; 35 | } 36 | 37 | /** 38 | * Get more information of the RestException 39 | * @return string More error information 40 | */ 41 | public function getMoreInfo(): string { 42 | return $this->moreInfo; 43 | } 44 | 45 | /** 46 | * Get the details of the RestException 47 | * @return exception details 48 | */ 49 | public function getDetails(): array { 50 | return $this->details; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/Twilio/Exceptions/TwilioException.php: -------------------------------------------------------------------------------- 1 | options = $options; 23 | } 24 | 25 | public function getOptions(): array { 26 | return $this->options; 27 | } 28 | 29 | /** 30 | * Fetches the bearer token 31 | * @throws TwilioException 32 | */ 33 | public function fetchToken(?Client $client = null): string { 34 | if ($client === null) { 35 | $client = new Client(); 36 | } 37 | $noAuthCredentialProvider = new NoAuthCredentialProvider(); 38 | $client->setCredentialProvider($noAuthCredentialProvider); 39 | $base = new IamBase($client); 40 | $v1 = new V1($base); 41 | $tokenList = new TokenList($v1); 42 | 43 | try { 44 | return $tokenList->create( 45 | $this->options['grantType'], 46 | $this->options['clientId'], 47 | $this->options 48 | )->accessToken; 49 | } 50 | 51 | catch (TwilioException $e) { 52 | throw new TwilioException($e->getMessage()); 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Http/BearerToken/OrgsTokenManager.php: -------------------------------------------------------------------------------- 1 | options = $options; 23 | } 24 | 25 | public function getOptions(): array { 26 | return $this->options; 27 | } 28 | 29 | /** 30 | * Fetches the bearer token 31 | * @throws TwilioException 32 | */ 33 | public function fetchToken(?Client $client = null): string { 34 | if ($client === null) { 35 | $client = new Client(); 36 | } 37 | $noAuthCredentialProvider = new NoAuthCredentialProvider(); 38 | $client->setCredentialProvider($noAuthCredentialProvider); 39 | $base = new IamBase($client); 40 | $v1 = new V1($base); 41 | $tokenList = new TokenList($v1); 42 | 43 | try { 44 | return $tokenList->create( 45 | $this->options['grantType'], 46 | $this->options['clientId'], 47 | $this->options 48 | )->accessToken; 49 | } 50 | 51 | catch (TwilioException $e) { 52 | throw new TwilioException($e->getMessage()); 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Http/BearerToken/TokenManager.php: -------------------------------------------------------------------------------- 1 | fileName = $fileName; 29 | $this->contents = $contents; 30 | $this->contentType = $contentType; 31 | } 32 | 33 | /** 34 | * @return resource|string|mixed|null 35 | */ 36 | public function getContents() { 37 | return $this->contents; 38 | } 39 | 40 | public function getFileName(): string { 41 | return $this->fileName; 42 | } 43 | 44 | public function getContentType(): ?string { 45 | return $this->contentType; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/Twilio/Http/Response.php: -------------------------------------------------------------------------------- 1 | statusCode = $statusCode; 14 | $this->content = $content; 15 | $this->headers = $headers; 16 | } 17 | 18 | /** 19 | * @return mixed 20 | */ 21 | public function getContent() { 22 | return \json_decode($this->content, true); 23 | } 24 | 25 | public function getStatusCode(): int { 26 | return $this->statusCode; 27 | } 28 | 29 | public function getHeaders(): array { 30 | return $this->headers; 31 | } 32 | 33 | public function ok(): bool { 34 | return $this->getStatusCode() < 400; 35 | } 36 | 37 | public function __toString(): string { 38 | return '[Response] HTTP ' . $this->getStatusCode() . ' ' . $this->content; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/Twilio/InstanceContext.php: -------------------------------------------------------------------------------- 1 | version = $version; 14 | } 15 | 16 | public function __toString(): string { 17 | return '[InstanceContext]'; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/Twilio/InstanceResource.php: -------------------------------------------------------------------------------- 1 | version = $version; 15 | } 16 | 17 | public function toArray(): array { 18 | return $this->properties; 19 | } 20 | 21 | public function __toString(): string { 22 | return '[InstanceResource]'; 23 | } 24 | 25 | public function __isset($name): bool { 26 | return \array_key_exists($name, $this->properties); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/Twilio/Jwt/Grants/Grant.php: -------------------------------------------------------------------------------- 1 | grant; 18 | } 19 | 20 | /** 21 | * Set the playback grant that will allow access to a stream 22 | * 23 | * @param array $grant playback grant from Twilio API 24 | * @return $this updated grant 25 | */ 26 | public function setGrant(array $grant): self { 27 | $this->grant = $grant; 28 | return $this; 29 | } 30 | 31 | /** 32 | * Returns the grant type 33 | * 34 | * @return string type of the grant 35 | */ 36 | public function getGrantKey(): string { 37 | return 'player'; 38 | } 39 | 40 | /** 41 | * Returns the grant data 42 | * 43 | * @return array data of the grant 44 | */ 45 | public function getPayload(): array { 46 | $payload = []; 47 | if ($this->grant) { 48 | $payload = $this->grant; 49 | } 50 | return $payload; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/Twilio/Jwt/Grants/VideoGrant.php: -------------------------------------------------------------------------------- 1 | room; 18 | } 19 | 20 | /** 21 | * Set the room to allow access to in the grant 22 | * 23 | * @param string $roomSidOrName room sid or name 24 | * @return $this updated grant 25 | */ 26 | public function setRoom(string $roomSidOrName): self { 27 | $this->room = $roomSidOrName; 28 | return $this; 29 | } 30 | 31 | /** 32 | * Returns the grant type 33 | * 34 | * @return string type of the grant 35 | */ 36 | public function getGrantKey(): string { 37 | return 'video'; 38 | } 39 | 40 | /** 41 | * Returns the grant data 42 | * 43 | * @return array data of the grant 44 | */ 45 | public function getPayload(): array { 46 | $payload = []; 47 | if ($this->room) { 48 | $payload['room'] = $this->room; 49 | } 50 | return $payload; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/Twilio/Jwt/TaskRouter/Policy.php: -------------------------------------------------------------------------------- 1 | 11 | * @license http://creativecommons.org/licenses/MIT/ MIT 12 | */ 13 | class Policy { 14 | private $url; 15 | private $method; 16 | private $queryFilter; 17 | private $postFilter; 18 | private $allow; 19 | 20 | public function __construct(string $url, string $method, ?array $queryFilter = [], ?array $postFilter = [], bool $allow = true) { 21 | $this->url = $url; 22 | $this->method = $method; 23 | $this->queryFilter = $queryFilter; 24 | $this->postFilter = $postFilter; 25 | $this->allow = $allow; 26 | } 27 | 28 | public function addQueryFilter($queryFilter): void { 29 | $this->queryFilter[] = $queryFilter; 30 | } 31 | 32 | public function addPostFilter($postFilter): void { 33 | $this->postFilter[] = $postFilter; 34 | } 35 | 36 | public function toArray(): array { 37 | $policy_array = ['url' => $this->url, 'method' => $this->method, 'allow' => $this->allow]; 38 | if ($this->queryFilter !== null) { 39 | if (\count($this->queryFilter) > 0) { 40 | $policy_array['query_filter'] = $this->queryFilter; 41 | } else { 42 | $policy_array['query_filter'] = new \stdClass(); 43 | } 44 | } 45 | if ($this->postFilter !== null) { 46 | if (\count($this->postFilter) > 0) { 47 | $policy_array['post_filter'] = $this->postFilter; 48 | } else { 49 | $policy_array['post_filter'] = new \stdClass(); 50 | } 51 | } 52 | return $policy_array; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /src/Twilio/Jwt/TaskRouter/TaskQueueCapability.php: -------------------------------------------------------------------------------- 1 | 10 | * @license http://creativecommons.org/licenses/MIT/ MIT 11 | */ 12 | class TaskQueueCapability extends CapabilityToken { 13 | public function __construct(string $accountSid, string $authToken, string $workspaceSid, string $taskQueueSid, 14 | ?string $overrideBaseUrl = null, ?string $overrideBaseWSUrl = null) { 15 | parent::__construct($accountSid, $authToken, $workspaceSid, $taskQueueSid, null, $overrideBaseUrl, $overrideBaseWSUrl); 16 | } 17 | 18 | protected function setupResource(): void { 19 | $this->resourceUrl = $this->baseUrl . '/TaskQueues/' . $this->channelId; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/Twilio/Jwt/TaskRouter/WorkspaceCapability.php: -------------------------------------------------------------------------------- 1 | resourceUrl = $this->baseUrl; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/Twilio/ListResource.php: -------------------------------------------------------------------------------- 1 | version = $version; 14 | } 15 | 16 | public function __toString(): string { 17 | return '[ListResource]'; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/Twilio/Options.php: -------------------------------------------------------------------------------- 1 | options); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Accounts/V1/AuthTokenPromotionList.php: -------------------------------------------------------------------------------- 1 | solution = [ 37 | ]; 38 | } 39 | 40 | /** 41 | * Constructs a AuthTokenPromotionContext 42 | */ 43 | public function getContext( 44 | 45 | ): AuthTokenPromotionContext 46 | { 47 | return new AuthTokenPromotionContext( 48 | $this->version 49 | ); 50 | } 51 | 52 | /** 53 | * Provide a friendly representation 54 | * 55 | * @return string Machine friendly representation 56 | */ 57 | public function __toString(): string 58 | { 59 | return '[Twilio.Accounts.V1.AuthTokenPromotionList]'; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Accounts/V1/SecondaryAuthTokenList.php: -------------------------------------------------------------------------------- 1 | solution = [ 37 | ]; 38 | } 39 | 40 | /** 41 | * Constructs a SecondaryAuthTokenContext 42 | */ 43 | public function getContext( 44 | 45 | ): SecondaryAuthTokenContext 46 | { 47 | return new SecondaryAuthTokenContext( 48 | $this->version 49 | ); 50 | } 51 | 52 | /** 53 | * Provide a friendly representation 54 | * 55 | * @return string Machine friendly representation 56 | */ 57 | public function __toString(): string 58 | { 59 | return '[Twilio.Accounts.V1.SecondaryAuthTokenList]'; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Api/V2010/AccountPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return AccountInstance \Twilio\Rest\Api\V2010\AccountInstance 40 | */ 41 | public function buildInstance(array $payload): AccountInstance 42 | { 43 | return new AccountInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Api.V2010.AccountPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Assistants.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return ToolInstance \Twilio\Rest\Assistants\V1\ToolInstance 40 | */ 41 | public function buildInstance(array $payload): ToolInstance 42 | { 43 | return new ToolInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Assistants.V1.ToolPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Autopilot.php: -------------------------------------------------------------------------------- 1 | assistants instead. 10 | */ 11 | protected function getAssistants(): \Twilio\Rest\Autopilot\V1\AssistantList { 12 | echo "assistants is deprecated. Use v1->assistants instead."; 13 | return $this->v1->assistants; 14 | } 15 | 16 | /** 17 | * @deprecated Use v1->assistants(\$sid) instead. 18 | * @param string $sid The unique string that identifies the resource 19 | */ 20 | protected function contextAssistants(string $sid): \Twilio\Rest\Autopilot\V1\AssistantContext { 21 | echo "assistants(\$sid) is deprecated. Use v1->assistants(\$sid) instead."; 22 | return $this->v1->assistants($sid); 23 | } 24 | 25 | /** 26 | * @deprecated Use v1->restoreAssistant instead 27 | */ 28 | protected function getRestoreAssistant(): \Twilio\Rest\Autopilot\V1\RestoreAssistantList { 29 | echo "restoreAssistant is deprecated. Use v1->restoreAssistant instead."; 30 | return $this->v1->restoreAssistant; 31 | } 32 | } -------------------------------------------------------------------------------- /src/Twilio/Rest/Bulkexports/V1/Export/JobList.php: -------------------------------------------------------------------------------- 1 | solution = [ 37 | ]; 38 | } 39 | 40 | /** 41 | * Constructs a JobContext 42 | * 43 | * @param string $jobSid The unique string that that we created to identify the Bulk Export job 44 | */ 45 | public function getContext( 46 | string $jobSid 47 | 48 | ): JobContext 49 | { 50 | return new JobContext( 51 | $this->version, 52 | $jobSid 53 | ); 54 | } 55 | 56 | /** 57 | * Provide a friendly representation 58 | * 59 | * @return string Machine friendly representation 60 | */ 61 | public function __toString(): string 62 | { 63 | return '[Twilio.Bulkexports.V1.JobList]'; 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Chat/V1/ServicePage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return ServiceInstance \Twilio\Rest\Chat\V1\ServiceInstance 40 | */ 41 | public function buildInstance(array $payload): ServiceInstance 42 | { 43 | return new ServiceInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Chat.V1.ServicePage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Chat/V2/.openapi-generator-ignore: -------------------------------------------------------------------------------- 1 | # OpenAPI Generator Ignore 2 | # Generated by openapi-generator https://github.com/openapitools/openapi-generator 3 | 4 | # Use this file to prevent files from being overwritten by the generator. 5 | # The patterns follow closely to .gitignore or .dockerignore. 6 | 7 | # As an example, the C# client generator defines ApiClient.cs. 8 | # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: 9 | #ApiClient.cs 10 | 11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 12 | #foo/*/qux 13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 14 | 15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 16 | #foo/**/qux 17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 18 | 19 | # You can also negate patterns with an exclamation (!). 20 | # For example, you can ignore all files in a docs folder with the file extension .md: 21 | #docs/*.md 22 | # Then explicitly reverse the ignore rule for a single file: 23 | #!docs/README.md 24 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Chat/V2/ServicePage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return ServiceInstance \Twilio\Rest\Chat\V2\ServiceInstance 40 | */ 41 | public function buildInstance(array $payload): ServiceInstance 42 | { 43 | return new ServiceInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Chat.V2.ServicePage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Chat/V3/.openapi-generator-ignore: -------------------------------------------------------------------------------- 1 | # OpenAPI Generator Ignore 2 | # Generated by openapi-generator https://github.com/openapitools/openapi-generator 3 | 4 | # Use this file to prevent files from being overwritten by the generator. 5 | # The patterns follow closely to .gitignore or .dockerignore. 6 | 7 | # As an example, the C# client generator defines ApiClient.cs. 8 | # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: 9 | #ApiClient.cs 10 | 11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 12 | #foo/*/qux 13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 14 | 15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 16 | #foo/**/qux 17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 18 | 19 | # You can also negate patterns with an exclamation (!). 20 | # For example, you can ignore all files in a docs folder with the file extension .md: 21 | #docs/*.md 22 | # Then explicitly reverse the ignore rule for a single file: 23 | #!docs/README.md 24 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Chat/V3/ChannelPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return ChannelInstance \Twilio\Rest\Chat\V3\ChannelInstance 40 | */ 41 | public function buildInstance(array $payload): ChannelInstance 42 | { 43 | return new ChannelInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Chat.V3.ChannelPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Content.php: -------------------------------------------------------------------------------- 1 | contents instead. 11 | */ 12 | protected function getContents(): \Twilio\Rest\Content\V1\ContentList { 13 | echo "contents is deprecated. Use v1->contents instead."; 14 | return $this->v1->contents; 15 | } 16 | 17 | /** 18 | * @deprecated Use v1->contents(\$sid) instead. 19 | * @param string $sid The unique string that identifies the resource 20 | */ 21 | protected function contextContents(string $sid): \Twilio\Rest\Content\V1\ContentContext { 22 | echo "contents(\$sid) is deprecated. Use v1->contents(\$sid) instead."; 23 | return $this->v1->contents($sid); 24 | } 25 | } -------------------------------------------------------------------------------- /src/Twilio/Rest/Content/V1/ContentPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return ContentInstance \Twilio\Rest\Content\V1\ContentInstance 40 | */ 41 | public function buildInstance(array $payload): ContentInstance 42 | { 43 | return new ContentInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Content.V1.ContentPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Content/V2/ContentPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return ContentInstance \Twilio\Rest\Content\V2\ContentInstance 40 | */ 41 | public function buildInstance(array $payload): ContentInstance 42 | { 43 | return new ContentInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Content.V2.ContentPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Conversations/V1/Configuration/WebhookList.php: -------------------------------------------------------------------------------- 1 | solution = [ 37 | ]; 38 | } 39 | 40 | /** 41 | * Constructs a WebhookContext 42 | */ 43 | public function getContext( 44 | 45 | ): WebhookContext 46 | { 47 | return new WebhookContext( 48 | $this->version 49 | ); 50 | } 51 | 52 | /** 53 | * Provide a friendly representation 54 | * 55 | * @return string Machine friendly representation 56 | */ 57 | public function __toString(): string 58 | { 59 | return '[Twilio.Conversations.V1.WebhookList]'; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Events/V1/SchemaPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return SchemaInstance \Twilio\Rest\Events\V1\SchemaInstance 40 | */ 41 | public function buildInstance(array $payload): SchemaInstance 42 | { 43 | return new SchemaInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Events.V1.SchemaPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Events/V1/SinkPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return SinkInstance \Twilio\Rest\Events\V1\SinkInstance 40 | */ 41 | public function buildInstance(array $payload): SinkInstance 42 | { 43 | return new SinkInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Events.V1.SinkPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/FlexApi/V1/ChannelPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return ChannelInstance \Twilio\Rest\FlexApi\V1\ChannelInstance 40 | */ 41 | public function buildInstance(array $payload): ChannelInstance 42 | { 43 | return new ChannelInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.FlexApi.V1.ChannelPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/FlexApi/V1/ConfigurationList.php: -------------------------------------------------------------------------------- 1 | solution = [ 37 | ]; 38 | } 39 | 40 | /** 41 | * Constructs a ConfigurationContext 42 | */ 43 | public function getContext( 44 | 45 | ): ConfigurationContext 46 | { 47 | return new ConfigurationContext( 48 | $this->version 49 | ); 50 | } 51 | 52 | /** 53 | * Provide a friendly representation 54 | * 55 | * @return string Machine friendly representation 56 | */ 57 | public function __toString(): string 58 | { 59 | return '[Twilio.FlexApi.V1.ConfigurationList]'; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /src/Twilio/Rest/FlexApi/V1/FlexFlowPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return FlexFlowInstance \Twilio\Rest\FlexApi\V1\FlexFlowInstance 40 | */ 41 | public function buildInstance(array $payload): FlexFlowInstance 42 | { 43 | return new FlexFlowInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.FlexApi.V1.FlexFlowPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/FlexApi/V1/InsightsSessionList.php: -------------------------------------------------------------------------------- 1 | solution = [ 37 | ]; 38 | } 39 | 40 | /** 41 | * Constructs a InsightsSessionContext 42 | */ 43 | public function getContext( 44 | 45 | ): InsightsSessionContext 46 | { 47 | return new InsightsSessionContext( 48 | $this->version 49 | ); 50 | } 51 | 52 | /** 53 | * Provide a friendly representation 54 | * 55 | * @return string Machine friendly representation 56 | */ 57 | public function __toString(): string 58 | { 59 | return '[Twilio.FlexApi.V1.InsightsSessionList]'; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /src/Twilio/Rest/FlexApi/V1/InsightsUserRolesList.php: -------------------------------------------------------------------------------- 1 | solution = [ 37 | ]; 38 | } 39 | 40 | /** 41 | * Constructs a InsightsUserRolesContext 42 | */ 43 | public function getContext( 44 | 45 | ): InsightsUserRolesContext 46 | { 47 | return new InsightsUserRolesContext( 48 | $this->version 49 | ); 50 | } 51 | 52 | /** 53 | * Provide a friendly representation 54 | * 55 | * @return string Machine friendly representation 56 | */ 57 | public function __toString(): string 58 | { 59 | return '[Twilio.FlexApi.V1.InsightsUserRolesList]'; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /src/Twilio/Rest/FlexApi/V1/PluginPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return PluginInstance \Twilio\Rest\FlexApi\V1\PluginInstance 40 | */ 41 | public function buildInstance(array $payload): PluginInstance 42 | { 43 | return new PluginInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.FlexApi.V1.PluginPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/FlexApi/V1/ProvisioningStatusList.php: -------------------------------------------------------------------------------- 1 | solution = [ 37 | ]; 38 | } 39 | 40 | /** 41 | * Constructs a ProvisioningStatusContext 42 | */ 43 | public function getContext( 44 | 45 | ): ProvisioningStatusContext 46 | { 47 | return new ProvisioningStatusContext( 48 | $this->version 49 | ); 50 | } 51 | 52 | /** 53 | * Provide a friendly representation 54 | * 55 | * @return string Machine friendly representation 56 | */ 57 | public function __toString(): string 58 | { 59 | return '[Twilio.FlexApi.V1.ProvisioningStatusList]'; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /src/Twilio/Rest/FlexApi/V2/FlexUserPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return FlexUserInstance \Twilio\Rest\FlexApi\V2\FlexUserInstance 40 | */ 41 | public function buildInstance(array $payload): FlexUserInstance 42 | { 43 | return new FlexUserInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.FlexApi.V2.FlexUserPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/FrontlineApi.php: -------------------------------------------------------------------------------- 1 | users instead. 11 | */ 12 | protected function getUsers(): \Twilio\Rest\FrontlineApi\V1\UserList { 13 | echo "users is deprecated. Use v1->users instead."; 14 | return $this->v1->users; 15 | } 16 | 17 | /** 18 | * @deprecated Use v1->users(\$sid) instead. 19 | * @param string $sid The SID of the User resource to fetch 20 | */ 21 | protected function contextUsers(string $sid): \Twilio\Rest\FrontlineApi\V1\UserContext { 22 | echo "users(\$sid) is deprecated. Use v1->users(\$sid) instead."; 23 | return $this->v1->users($sid); 24 | } 25 | } -------------------------------------------------------------------------------- /src/Twilio/Rest/FrontlineApi/V1/UserPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return UserInstance \Twilio\Rest\FrontlineApi\V1\UserInstance 40 | */ 41 | public function buildInstance(array $payload): UserInstance 42 | { 43 | return new UserInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.FrontlineApi.V1.UserPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Iam.php: -------------------------------------------------------------------------------- 1 | solution = [ 37 | ]; 38 | } 39 | 40 | /** 41 | * Constructs a ApiKeyContext 42 | * 43 | * @param string $sid The Twilio-provided string that uniquely identifies the Key resource to delete. 44 | */ 45 | public function getContext( 46 | string $sid 47 | 48 | ): ApiKeyContext 49 | { 50 | return new ApiKeyContext( 51 | $this->version, 52 | $sid 53 | ); 54 | } 55 | 56 | /** 57 | * Provide a friendly representation 58 | * 59 | * @return string Machine friendly representation 60 | */ 61 | public function __toString(): string 62 | { 63 | return '[Twilio.Iam.V1.ApiKeyList]'; 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Iam/V1/ApiKeyPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return ApiKeyInstance \Twilio\Rest\Iam\V1\ApiKeyInstance 40 | */ 41 | public function buildInstance(array $payload): ApiKeyInstance 42 | { 43 | return new ApiKeyInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Iam.V1.ApiKeyPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Iam/V1/GetApiKeysPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return GetApiKeysInstance \Twilio\Rest\Iam\V1\GetApiKeysInstance 40 | */ 41 | public function buildInstance(array $payload): GetApiKeysInstance 42 | { 43 | return new GetApiKeysInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Iam.V1.GetApiKeysPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Iam/V1/NewApiKeyPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return NewApiKeyInstance \Twilio\Rest\Iam\V1\NewApiKeyInstance 40 | */ 41 | public function buildInstance(array $payload): NewApiKeyInstance 42 | { 43 | return new NewApiKeyInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Iam.V1.NewApiKeyPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Iam/V1/TokenPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return TokenInstance \Twilio\Rest\Iam\V1\TokenInstance 40 | */ 41 | public function buildInstance(array $payload): TokenInstance 42 | { 43 | return new TokenInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Iam.V1.TokenPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Insights/V1/CallList.php: -------------------------------------------------------------------------------- 1 | solution = [ 37 | ]; 38 | } 39 | 40 | /** 41 | * Constructs a CallContext 42 | * 43 | * @param string $sid 44 | */ 45 | public function getContext( 46 | string $sid 47 | 48 | ): CallContext 49 | { 50 | return new CallContext( 51 | $this->version, 52 | $sid 53 | ); 54 | } 55 | 56 | /** 57 | * Provide a friendly representation 58 | * 59 | * @return string Machine friendly representation 60 | */ 61 | public function __toString(): string 62 | { 63 | return '[Twilio.Insights.V1.CallList]'; 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Insights/V1/CallPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return CallInstance \Twilio\Rest\Insights\V1\CallInstance 40 | */ 41 | public function buildInstance(array $payload): CallInstance 42 | { 43 | return new CallInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Insights.V1.CallPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Insights/V1/RoomPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return RoomInstance \Twilio\Rest\Insights\V1\RoomInstance 40 | */ 41 | public function buildInstance(array $payload): RoomInstance 42 | { 43 | return new RoomInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Insights.V1.RoomPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Insights/V1/SettingList.php: -------------------------------------------------------------------------------- 1 | solution = [ 37 | ]; 38 | } 39 | 40 | /** 41 | * Constructs a SettingContext 42 | */ 43 | public function getContext( 44 | 45 | ): SettingContext 46 | { 47 | return new SettingContext( 48 | $this->version 49 | ); 50 | } 51 | 52 | /** 53 | * Provide a friendly representation 54 | * 55 | * @return string Machine friendly representation 56 | */ 57 | public function __toString(): string 58 | { 59 | return '[Twilio.Insights.V1.SettingList]'; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Insights/V1/SettingPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return SettingInstance \Twilio\Rest\Insights\V1\SettingInstance 40 | */ 41 | public function buildInstance(array $payload): SettingInstance 42 | { 43 | return new SettingInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Insights.V1.SettingPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Intelligence.php: -------------------------------------------------------------------------------- 1 | credentials instead. 11 | */ 12 | protected function getCredentials(): \Twilio\Rest\IpMessaging\V2\CredentialList { 13 | echo "credentials is deprecated. Use v2->credentials instead."; 14 | return $this->v2->credentials; 15 | } 16 | 17 | /** 18 | * @deprecated Use v2->credentials(\$sid) instead. 19 | * @param string $sid The sid 20 | */ 21 | protected function contextCredentials(string $sid): \Twilio\Rest\IpMessaging\V2\CredentialContext { 22 | echo "credentials(\$sid) is deprecated. Use v2->credentials(\$sid) instead."; 23 | return $this->v2->credentials($sid); 24 | } 25 | 26 | /** 27 | * @deprecated Use v2->services instead. 28 | */ 29 | protected function getServices(): \Twilio\Rest\IpMessaging\V2\ServiceList { 30 | echo "services is deprecated. Use v2->services instead."; 31 | return $this->v2->services; 32 | } 33 | 34 | /** 35 | * @deprecated Use v2->services(\$sid) instead. 36 | * @param string $sid The sid 37 | */ 38 | protected function contextServices(string $sid): \Twilio\Rest\IpMessaging\V2\ServiceContext { 39 | echo "services($sid) is deprecated. Use v2->services(\$sid) instead."; 40 | return $this->v2->services($sid); 41 | } 42 | } -------------------------------------------------------------------------------- /src/Twilio/Rest/Knowledge.php: -------------------------------------------------------------------------------- 1 | phoneNumbers instead. 11 | */ 12 | protected function getPhoneNumbers(): \Twilio\Rest\Lookups\V1\PhoneNumberList { 13 | echo "phoneNumbers is deprecated. Use v1->phoneNumbers instead."; 14 | return $this->v1->phoneNumbers; 15 | } 16 | 17 | /** 18 | * @deprecated Use v1->phoneNumbers(\$phoneNumber) instead. 19 | * @param string $phoneNumber The phone number to fetch in E.164 format 20 | */ 21 | protected function contextPhoneNumbers(string $phoneNumber): \Twilio\Rest\Lookups\V1\PhoneNumberContext { 22 | echo "phoneNumbers(\$phoneNumber) is deprecated. Use v1->phoneNumbers(\$phoneNumber) instead."; 23 | return $this->v1->phoneNumbers($phoneNumber); 24 | } 25 | } -------------------------------------------------------------------------------- /src/Twilio/Rest/Marketplace.php: -------------------------------------------------------------------------------- 1 | referralAccountSid = Values::array_get($payload, 'referral_account_sid'); 39 | } 40 | 41 | public function toArray(): array 42 | { 43 | return $this->jsonSerialize(); 44 | } 45 | 46 | public function jsonSerialize(): array 47 | { 48 | return [ 49 | 'referral_account_sid' => $this->referralAccountSid 50 | ]; 51 | } 52 | } 53 | 54 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Messaging/V1/DeactivationsList.php: -------------------------------------------------------------------------------- 1 | solution = [ 37 | ]; 38 | } 39 | 40 | /** 41 | * Constructs a DeactivationsContext 42 | */ 43 | public function getContext( 44 | 45 | ): DeactivationsContext 46 | { 47 | return new DeactivationsContext( 48 | $this->version 49 | ); 50 | } 51 | 52 | /** 53 | * Provide a friendly representation 54 | * 55 | * @return string Machine friendly representation 56 | */ 57 | public function __toString(): string 58 | { 59 | return '[Twilio.Messaging.V1.DeactivationsList]'; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Microvisor.php: -------------------------------------------------------------------------------- 1 | apps instead. 11 | */ 12 | protected function getApps(): \Twilio\Rest\Microvisor\V1\AppList { 13 | echo "apps is deprecated. Use v1->apps instead."; 14 | return $this->v1->apps; 15 | } 16 | 17 | /** 18 | * @deprecated Use v1->apps(\$sid) instead. 19 | * @param string $sid A string that uniquely identifies this App. 20 | */ 21 | protected function contextApps(string $sid): \Twilio\Rest\Microvisor\V1\AppContext { 22 | echo "apps(\$sid) is deprecated. Use v1->apps(\$sid) instead."; 23 | return $this->v1->apps($sid); 24 | } 25 | 26 | /** 27 | * @deprecated Use v1->devices instead. 28 | */ 29 | protected function getDevices(): \Twilio\Rest\Microvisor\V1\DeviceList { 30 | echo "devices is deprecated. Use v1->devices instead."; 31 | return $this->v1->devices; 32 | } 33 | 34 | /** 35 | * @deprecated Use v1->devices(\$sid) instead. 36 | * @param string $sid A string that uniquely identifies this Device. 37 | */ 38 | protected function contextDevices(string $sid): \Twilio\Rest\Microvisor\V1\DeviceContext { 39 | echo "devices(\$sid) is deprecated. Use v1->devices(\$sid) instead."; 40 | return $this->v1->devices($sid); 41 | } 42 | } -------------------------------------------------------------------------------- /src/Twilio/Rest/Microvisor/V1/AppPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return AppInstance \Twilio\Rest\Microvisor\V1\AppInstance 40 | */ 41 | public function buildInstance(array $payload): AppInstance 42 | { 43 | return new AppInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Microvisor.V1.AppPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Monitor.php: -------------------------------------------------------------------------------- 1 | alerts instead. 10 | */ 11 | protected function getAlerts(): \Twilio\Rest\Monitor\V1\AlertList { 12 | echo "alerts is deprecated. Use v1->alerts instead."; 13 | return $this->v1->alerts; 14 | } 15 | 16 | /** 17 | * @deprecated Use v1->alerts(\$sid) instead. 18 | * @param string $sid The SID that identifies the resource to fetch 19 | */ 20 | protected function contextAlerts(string $sid): \Twilio\Rest\Monitor\V1\AlertContext { 21 | echo "alerts(\$sid) is deprecated. Use v1->alerts(\$sid) instead."; 22 | return $this->v1->alerts($sid); 23 | } 24 | 25 | /** 26 | * @deprecated Use v1->events instead. 27 | */ 28 | protected function getEvents(): \Twilio\Rest\Monitor\V1\EventList { 29 | echo "events is deprecated. Use v1->events instead."; 30 | return $this->v1->events; 31 | } 32 | 33 | /** 34 | * @deprecated Use v1->events(\$sid) instead. 35 | * @param string $sid The SID that identifies the resource to fetch 36 | */ 37 | protected function contextEvents(string $sid): \Twilio\Rest\Monitor\V1\EventContext { 38 | echo "events(\$sid) is deprecated. Use v1->events(\$sid) instead."; 39 | return $this->v1->events($sid); 40 | } 41 | } -------------------------------------------------------------------------------- /src/Twilio/Rest/Monitor/V1/AlertPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return AlertInstance \Twilio\Rest\Monitor\V1\AlertInstance 40 | */ 41 | public function buildInstance(array $payload): AlertInstance 42 | { 43 | return new AlertInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Monitor.V1.AlertPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Monitor/V1/EventPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return EventInstance \Twilio\Rest\Monitor\V1\EventInstance 40 | */ 41 | public function buildInstance(array $payload): EventInstance 42 | { 43 | return new EventInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Monitor.V1.EventPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Notify.php: -------------------------------------------------------------------------------- 1 | credentials instead. 10 | */ 11 | protected function getCredentials(): \Twilio\Rest\Notify\V1\CredentialList { 12 | echo "credentials is deprecated. Use v1->credentials instead."; 13 | return $this->v1->credentials; 14 | } 15 | 16 | /** 17 | * @deprecated Use v1->credentials(\$sid) instead. 18 | * @param string $sid The unique string that identifies the resource 19 | */ 20 | protected function contextCredentials(string $sid): \Twilio\Rest\Notify\V1\CredentialContext { 21 | echo "credentials(\$sid) is deprecated. Use v1->credentials(\$sid) instead."; 22 | return $this->v1->credentials($sid); 23 | } 24 | 25 | /** 26 | * @deprecated Use v1->services instead. 27 | */ 28 | protected function getServices(): \Twilio\Rest\Notify\V1\ServiceList { 29 | echo "services is deprecated. Use v1->services instead."; 30 | return $this->v1->services; 31 | } 32 | 33 | /** 34 | * @deprecated Use v1->services(\$sid) instead. 35 | * @param string $sid The unique string that identifies the resource 36 | */ 37 | protected function contextServices(string $sid): \Twilio\Rest\Notify\V1\ServiceContext { 38 | echo "services(\$sid) is deprecated. Use v1->services(\$sid) instead."; 39 | return $this->v1->services($sid); 40 | } 41 | } -------------------------------------------------------------------------------- /src/Twilio/Rest/Notify/V1/ServicePage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return ServiceInstance \Twilio\Rest\Notify\V1\ServiceInstance 40 | */ 41 | public function buildInstance(array $payload): ServiceInstance 42 | { 43 | return new ServiceInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Notify.V1.ServicePage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Numbers.php: -------------------------------------------------------------------------------- 1 | regulatoryCompliance instead. 10 | */ 11 | protected function getRegulatoryCompliance(): \Twilio\Rest\Numbers\V2\RegulatoryComplianceList { 12 | echo "regulatoryCompliance is deprecated. Use v2->regulatoryCompliance instead."; 13 | return $this->v2->regulatoryCompliance; 14 | } 15 | 16 | } -------------------------------------------------------------------------------- /src/Twilio/Rest/Numbers/V1/WebhookPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return WebhookInstance \Twilio\Rest\Numbers\V1\WebhookInstance 40 | */ 41 | public function buildInstance(array $payload): WebhookInstance 42 | { 43 | return new WebhookInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Numbers.V1.WebhookPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Oauth/V1/AuthorizePage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return AuthorizeInstance \Twilio\Rest\Oauth\V1\AuthorizeInstance 40 | */ 41 | public function buildInstance(array $payload): AuthorizeInstance 42 | { 43 | return new AuthorizeInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Oauth.V1.AuthorizePage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Oauth/V1/TokenPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return TokenInstance \Twilio\Rest\Oauth\V1\TokenInstance 40 | */ 41 | public function buildInstance(array $payload): TokenInstance 42 | { 43 | return new TokenInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Oauth.V1.TokenPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Preview/Wireless/SimPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return SimInstance \Twilio\Rest\Preview\Wireless\SimInstance 40 | */ 41 | public function buildInstance(array $payload): SimInstance 42 | { 43 | return new SimInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Preview.Wireless.SimPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/PreviewIam.php: -------------------------------------------------------------------------------- 1 | token instead. 15 | */ 16 | protected function getToken(): TokenList { 17 | return $this->v1->token; 18 | } 19 | 20 | /** 21 | * @deprecated Use v1->authorize instead. 22 | */ 23 | protected function getAuthorize(): AuthorizeList { 24 | return $this->v1->authorize; 25 | } 26 | 27 | protected function contextOrganization(string $orgSid): OrganizationContext { 28 | if ($this->_organization === null) { 29 | $versionless = new Versionless($this); 30 | $this->_organization = $versionless->organization($orgSid); 31 | } 32 | return $this->_organization; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/Twilio/Rest/PreviewMessaging.php: -------------------------------------------------------------------------------- 1 | oauth instead. 10 | */ 11 | protected function getMessages(): \Twilio\Rest\PreviewMessaging\V1\MessageList { 12 | return $this->v1->messages; 13 | } 14 | 15 | /** 16 | * @deprecated Use v1->oauth() instead. 17 | */ 18 | protected function getBroadcasts(): \Twilio\Rest\PreviewMessaging\V1\BroadcastList { 19 | return $this->v1->broadcasts; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Pricing/V1/Voice/NumberList.php: -------------------------------------------------------------------------------- 1 | solution = [ 37 | ]; 38 | } 39 | 40 | /** 41 | * Constructs a NumberContext 42 | * 43 | * @param string $number The phone number to fetch. 44 | */ 45 | public function getContext( 46 | string $number 47 | 48 | ): NumberContext 49 | { 50 | return new NumberContext( 51 | $this->version, 52 | $number 53 | ); 54 | } 55 | 56 | /** 57 | * Provide a friendly representation 58 | * 59 | * @return string Machine friendly representation 60 | */ 61 | public function __toString(): string 62 | { 63 | return '[Twilio.Pricing.V1.NumberList]'; 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Pricing/V1/VoicePage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return VoiceInstance \Twilio\Rest\Pricing\V1\VoiceInstance 40 | */ 41 | public function buildInstance(array $payload): VoiceInstance 42 | { 43 | return new VoiceInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Pricing.V1.VoicePage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Pricing/V2/CountryPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return CountryInstance \Twilio\Rest\Pricing\V2\CountryInstance 40 | */ 41 | public function buildInstance(array $payload): CountryInstance 42 | { 43 | return new CountryInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Pricing.V2.CountryPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Pricing/V2/NumberPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return NumberInstance \Twilio\Rest\Pricing\V2\NumberInstance 40 | */ 41 | public function buildInstance(array $payload): NumberInstance 42 | { 43 | return new NumberInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Pricing.V2.NumberPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Pricing/V2/VoicePage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return VoiceInstance \Twilio\Rest\Pricing\V2\VoiceInstance 40 | */ 41 | public function buildInstance(array $payload): VoiceInstance 42 | { 43 | return new VoiceInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Pricing.V2.VoicePage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Proxy.php: -------------------------------------------------------------------------------- 1 | services instead. 11 | */ 12 | protected function getServices(): \Twilio\Rest\Proxy\V1\ServiceList { 13 | echo "services is deprecated. Use v1->services instead."; 14 | return $this->v1->services; 15 | } 16 | 17 | /** 18 | * @deprecated Use v1->services(\$sid) instead. 19 | * @param string $sid The unique string that identifies the resource 20 | */ 21 | protected function contextServices(string $sid): \Twilio\Rest\Proxy\V1\ServiceContext { 22 | echo "services(\$sid) is deprecated. Use v1->services(\$sid) instead."; 23 | return $this->v1->services($sid); 24 | } 25 | } -------------------------------------------------------------------------------- /src/Twilio/Rest/Proxy/V1/ServicePage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return ServiceInstance \Twilio\Rest\Proxy\V1\ServiceInstance 40 | */ 41 | public function buildInstance(array $payload): ServiceInstance 42 | { 43 | return new ServiceInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Proxy.V1.ServicePage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Routes/V2/PhoneNumberList.php: -------------------------------------------------------------------------------- 1 | solution = [ 37 | ]; 38 | } 39 | 40 | /** 41 | * Constructs a PhoneNumberContext 42 | * 43 | * @param string $phoneNumber The phone number in E.164 format 44 | */ 45 | public function getContext( 46 | string $phoneNumber 47 | 48 | ): PhoneNumberContext 49 | { 50 | return new PhoneNumberContext( 51 | $this->version, 52 | $phoneNumber 53 | ); 54 | } 55 | 56 | /** 57 | * Provide a friendly representation 58 | * 59 | * @return string Machine friendly representation 60 | */ 61 | public function __toString(): string 62 | { 63 | return '[Twilio.Routes.V2.PhoneNumberList]'; 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Routes/V2/SipDomainList.php: -------------------------------------------------------------------------------- 1 | solution = [ 37 | ]; 38 | } 39 | 40 | /** 41 | * Constructs a SipDomainContext 42 | * 43 | * @param string $sipDomain 44 | */ 45 | public function getContext( 46 | string $sipDomain 47 | 48 | ): SipDomainContext 49 | { 50 | return new SipDomainContext( 51 | $this->version, 52 | $sipDomain 53 | ); 54 | } 55 | 56 | /** 57 | * Provide a friendly representation 58 | * 59 | * @return string Machine friendly representation 60 | */ 61 | public function __toString(): string 62 | { 63 | return '[Twilio.Routes.V2.SipDomainList]'; 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Routes/V2/TrunkList.php: -------------------------------------------------------------------------------- 1 | solution = [ 37 | ]; 38 | } 39 | 40 | /** 41 | * Constructs a TrunkContext 42 | * 43 | * @param string $sipTrunkDomain The absolute URL of the SIP Trunk 44 | */ 45 | public function getContext( 46 | string $sipTrunkDomain 47 | 48 | ): TrunkContext 49 | { 50 | return new TrunkContext( 51 | $this->version, 52 | $sipTrunkDomain 53 | ); 54 | } 55 | 56 | /** 57 | * Provide a friendly representation 58 | * 59 | * @return string Machine friendly representation 60 | */ 61 | public function __toString(): string 62 | { 63 | return '[Twilio.Routes.V2.TrunkList]'; 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Routes/V2/TrunkPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return TrunkInstance \Twilio\Rest\Routes\V2\TrunkInstance 40 | */ 41 | public function buildInstance(array $payload): TrunkInstance 42 | { 43 | return new TrunkInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Routes.V2.TrunkPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Serverless.php: -------------------------------------------------------------------------------- 1 | services instead. 10 | */ 11 | protected function getServices(): \Twilio\Rest\Serverless\V1\ServiceList { 12 | echo "services is deprecated. Use v1->services instead."; 13 | return $this->v1->services; 14 | } 15 | 16 | /** 17 | * @deprecated Use v1->services(\$sid) instead. 18 | * @param string $sid The SID of the Service resource to fetch 19 | */ 20 | protected function contextServices(string $sid): \Twilio\Rest\Serverless\V1\ServiceContext { 21 | echo "services(\$sid) is deprecated. Use v1->services(\$sid) instead."; 22 | return $this->v1->services($sid); 23 | } 24 | } -------------------------------------------------------------------------------- /src/Twilio/Rest/Studio.php: -------------------------------------------------------------------------------- 1 | flows instead. 10 | */ 11 | protected function getFlows(): \Twilio\Rest\Studio\V2\FlowList { 12 | echo "flows is deprecated. Use v2->flows instead."; 13 | return $this->v2->flows; 14 | } 15 | 16 | /** 17 | * @deprecated Use v2->flows(\$sid) instead. 18 | * @param string $sid The SID that identifies the resource to fetch 19 | */ 20 | protected function contextFlows(string $sid): \Twilio\Rest\Studio\V2\FlowContext { 21 | echo "flows(\$sid) is deprecated. Use v2->flows(\$sid) instead."; 22 | return $this->v2->flows($sid); 23 | } 24 | 25 | /** 26 | * @deprecated Use v2->flowValidate instead. 27 | */ 28 | protected function getFlowValidate(): \Twilio\Rest\Studio\V2\FlowValidateList { 29 | echo "flowValidate is deprecated. Use v2->flowValidate instead."; 30 | return $this->v2->flowValidate; 31 | } 32 | } -------------------------------------------------------------------------------- /src/Twilio/Rest/Studio/V1/FlowPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return FlowInstance \Twilio\Rest\Studio\V1\FlowInstance 40 | */ 41 | public function buildInstance(array $payload): FlowInstance 42 | { 43 | return new FlowInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Studio.V1.FlowPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Studio/V2/FlowPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return FlowInstance \Twilio\Rest\Studio\V2\FlowInstance 40 | */ 41 | public function buildInstance(array $payload): FlowInstance 42 | { 43 | return new FlowInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Studio.V2.FlowPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Supersim/V1/FleetPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return FleetInstance \Twilio\Rest\Supersim\V1\FleetInstance 40 | */ 41 | public function buildInstance(array $payload): FleetInstance 42 | { 43 | return new FleetInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Supersim.V1.FleetPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Supersim/V1/SimPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return SimInstance \Twilio\Rest\Supersim\V1\SimInstance 40 | */ 41 | public function buildInstance(array $payload): SimInstance 42 | { 43 | return new SimInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Supersim.V1.SimPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Sync.php: -------------------------------------------------------------------------------- 1 | services instead. 9 | */ 10 | protected function getServices(): \Twilio\Rest\Sync\V1\ServiceList { 11 | echo "services is deprecated. Use v1->services instead."; 12 | return $this->v1->services; 13 | } 14 | 15 | /** 16 | * @deprecated Use v1->services(\$sid) instead. 17 | * @param string $sid The SID of the Service resource to fetch 18 | */ 19 | protected function contextServices(string $sid): \Twilio\Rest\Sync\V1\ServiceContext { 20 | echo "services(\$sid) is deprecated. Use v1->services(\$sid) instead."; 21 | return $this->v1->services($sid); 22 | } 23 | } -------------------------------------------------------------------------------- /src/Twilio/Rest/Sync/V1/ServicePage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return ServiceInstance \Twilio\Rest\Sync\V1\ServiceInstance 40 | */ 41 | public function buildInstance(array $payload): ServiceInstance 42 | { 43 | return new ServiceInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Sync.V1.ServicePage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Taskrouter.php: -------------------------------------------------------------------------------- 1 | workspaces instead. 10 | */ 11 | protected function getWorkspaces(): \Twilio\Rest\Taskrouter\V1\WorkspaceList { 12 | echo "workspaces is deprecated. Use v1->workspaces instead."; 13 | return $this->v1->workspaces; 14 | } 15 | 16 | /** 17 | * @deprecated Use v1->workspaces(\$sid) instead. 18 | * @param string $sid The SID of the resource to fetch 19 | */ 20 | protected function contextWorkspaces(string $sid): \Twilio\Rest\Taskrouter\V1\WorkspaceContext { 21 | echo "workspaces(\$sid) is deprecated. Use v1->workspaces(\$sid) instead."; 22 | return $this->v1->workspaces($sid); 23 | } 24 | } -------------------------------------------------------------------------------- /src/Twilio/Rest/Trunking.php: -------------------------------------------------------------------------------- 1 | trunks instead. 10 | */ 11 | protected function getTrunks(): \Twilio\Rest\Trunking\V1\TrunkList { 12 | echo "trunks is deprecated. Use v1->trunks instead."; 13 | return $this->v1->trunks; 14 | } 15 | 16 | /** 17 | * @deprecated Use v1->trunks(\$sid) instead. 18 | * @param string $sid The unique string that identifies the resource 19 | */ 20 | protected function contextTrunks(string $sid): \Twilio\Rest\Trunking\V1\TrunkContext { 21 | echo "trunks(\$sid) is deprecated. Use v1->trunks(\$sid) instead."; 22 | return $this->v1->trunks($sid); 23 | } 24 | } -------------------------------------------------------------------------------- /src/Twilio/Rest/Trunking/V1/TrunkPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return TrunkInstance \Twilio\Rest\Trunking\V1\TrunkInstance 40 | */ 41 | public function buildInstance(array $payload): TrunkInstance 42 | { 43 | return new TrunkInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Trunking.V1.TrunkPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Verify/V2/FormList.php: -------------------------------------------------------------------------------- 1 | solution = [ 37 | ]; 38 | } 39 | 40 | /** 41 | * Constructs a FormContext 42 | * 43 | * @param string $formType The Type of this Form. Currently only `form-push` is supported. 44 | */ 45 | public function getContext( 46 | string $formType 47 | 48 | ): FormContext 49 | { 50 | return new FormContext( 51 | $this->version, 52 | $formType 53 | ); 54 | } 55 | 56 | /** 57 | * Provide a friendly representation 58 | * 59 | * @return string Machine friendly representation 60 | */ 61 | public function __toString(): string 62 | { 63 | return '[Twilio.Verify.V2.FormList]'; 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Verify/V2/FormPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return FormInstance \Twilio\Rest\Verify\V2\FormInstance 40 | */ 41 | public function buildInstance(array $payload): FormInstance 42 | { 43 | return new FormInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Verify.V2.FormPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Verify/V2/ServicePage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return ServiceInstance \Twilio\Rest\Verify\V2\ServiceInstance 40 | */ 41 | public function buildInstance(array $payload): ServiceInstance 42 | { 43 | return new ServiceInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Verify.V2.ServicePage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Verify/V2/VerificationAttemptsSummaryList.php: -------------------------------------------------------------------------------- 1 | solution = [ 37 | ]; 38 | } 39 | 40 | /** 41 | * Constructs a VerificationAttemptsSummaryContext 42 | */ 43 | public function getContext( 44 | 45 | ): VerificationAttemptsSummaryContext 46 | { 47 | return new VerificationAttemptsSummaryContext( 48 | $this->version 49 | ); 50 | } 51 | 52 | /** 53 | * Provide a friendly representation 54 | * 55 | * @return string Machine friendly representation 56 | */ 57 | public function __toString(): string 58 | { 59 | return '[Twilio.Verify.V2.VerificationAttemptsSummaryList]'; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Video/V1/CompositionSettingsList.php: -------------------------------------------------------------------------------- 1 | solution = [ 37 | ]; 38 | } 39 | 40 | /** 41 | * Constructs a CompositionSettingsContext 42 | */ 43 | public function getContext( 44 | 45 | ): CompositionSettingsContext 46 | { 47 | return new CompositionSettingsContext( 48 | $this->version 49 | ); 50 | } 51 | 52 | /** 53 | * Provide a friendly representation 54 | * 55 | * @return string Machine friendly representation 56 | */ 57 | public function __toString(): string 58 | { 59 | return '[Twilio.Video.V1.CompositionSettingsList]'; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Video/V1/RecordingSettingsList.php: -------------------------------------------------------------------------------- 1 | solution = [ 37 | ]; 38 | } 39 | 40 | /** 41 | * Constructs a RecordingSettingsContext 42 | */ 43 | public function getContext( 44 | 45 | ): RecordingSettingsContext 46 | { 47 | return new RecordingSettingsContext( 48 | $this->version 49 | ); 50 | } 51 | 52 | /** 53 | * Provide a friendly representation 54 | * 55 | * @return string Machine friendly representation 56 | */ 57 | public function __toString(): string 58 | { 59 | return '[Twilio.Video.V1.RecordingSettingsList]'; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Video/V1/RoomPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return RoomInstance \Twilio\Rest\Video\V1\RoomInstance 40 | */ 41 | public function buildInstance(array $payload): RoomInstance 42 | { 43 | return new RoomInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Video.V1.RoomPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Voice/V1/DialingPermissions/SettingsList.php: -------------------------------------------------------------------------------- 1 | solution = [ 37 | ]; 38 | } 39 | 40 | /** 41 | * Constructs a SettingsContext 42 | */ 43 | public function getContext( 44 | 45 | ): SettingsContext 46 | { 47 | return new SettingsContext( 48 | $this->version 49 | ); 50 | } 51 | 52 | /** 53 | * Provide a friendly representation 54 | * 55 | * @return string Machine friendly representation 56 | */ 57 | public function __toString(): string 58 | { 59 | return '[Twilio.Voice.V1.SettingsList]'; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Voice/V1/IpRecordPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return IpRecordInstance \Twilio\Rest\Voice\V1\IpRecordInstance 40 | */ 41 | public function buildInstance(array $payload): IpRecordInstance 42 | { 43 | return new IpRecordInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Voice.V1.IpRecordPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/Rest/Wireless/V1/SimPage.php: -------------------------------------------------------------------------------- 1 | solution = $solution; 35 | } 36 | 37 | /** 38 | * @param array $payload Payload response from the API 39 | * @return SimInstance \Twilio\Rest\Wireless\V1\SimInstance 40 | */ 41 | public function buildInstance(array $payload): SimInstance 42 | { 43 | return new SimInstance($this->version, $payload); 44 | } 45 | 46 | /** 47 | * Provide a friendly representation 48 | * 49 | * @return string Machine friendly representation 50 | */ 51 | public function __toString(): string 52 | { 53 | return '[Twilio.Wireless.V1.SimPage]'; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Twilio/TaskRouter/WorkflowConfiguration.php: -------------------------------------------------------------------------------- 1 | 9 | * @license http://creativecommons.org/licenses/MIT/ MIT 10 | */ 11 | class WorkflowConfiguration implements \JsonSerializable { 12 | public $filters; 13 | public $default_filter; 14 | 15 | public function __construct(array $filters, $default_filter = null) { 16 | $this->filters = $filters; 17 | $this->default_filter = $default_filter; 18 | } 19 | 20 | public function toJSON() { 21 | return \json_encode($this); 22 | } 23 | 24 | public static function parse(string $json) { 25 | return \json_decode($json); 26 | } 27 | 28 | public static function fromJson(string $json): WorkflowConfiguration { 29 | $configJSON = self::parse($json); 30 | $default_filter = $configJSON->task_routing->default_filter; 31 | $filters = []; 32 | foreach ($configJSON->task_routing->filters as $filter) { 33 | // friendly_name and filter_friendly_name should map to same variable 34 | $friendly_name = $filter->filter_friendly_name ?? $filter->friendly_name; 35 | $filter = new WorkflowRule($filter->expression, $filter->targets, $friendly_name); 36 | $filters[] = $filter; 37 | } 38 | return new WorkflowConfiguration($filters, $default_filter); 39 | } 40 | 41 | public function jsonSerialize(): array { 42 | $json = []; 43 | $task_routing = []; 44 | $task_routing['filters'] = $this->filters; 45 | $task_routing['default_filter'] = $this->default_filter; 46 | $json['task_routing'] = $task_routing; 47 | return $json; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/Twilio/TaskRouter/WorkflowRule.php: -------------------------------------------------------------------------------- 1 | 9 | * @license http://creativecommons.org/licenses/MIT/ MIT 10 | */ 11 | class WorkflowRule implements \JsonSerializable { 12 | public $expression; 13 | public $friendly_name; 14 | public $targets; 15 | 16 | public function __construct(string $expression, array $targets, ?string $friendly_name = null) { 17 | $this->expression = $expression; 18 | $this->targets = $targets; 19 | $this->friendly_name = $friendly_name; 20 | } 21 | 22 | public function jsonSerialize(): array { 23 | $json = []; 24 | $json['expression'] = $this->expression; 25 | $json['targets'] = $this->targets; 26 | if ($this->friendly_name !== null) { 27 | $json['friendly_name'] = $this->friendly_name; 28 | } 29 | return $json; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/Twilio/TaskRouter/WorkflowRuleTarget.php: -------------------------------------------------------------------------------- 1 | 9 | * @license http://creativecommons.org/licenses/MIT/ MIT 10 | */ 11 | class WorkflowRuleTarget implements \JsonSerializable { 12 | public $queue; 13 | public $expression; 14 | public $priority; 15 | public $timeout; 16 | 17 | public function __construct(string $queue, ?int $priority = null, ?int $timeout = null, ?string $expression = null) { 18 | $this->queue = $queue; 19 | $this->priority = $priority; 20 | $this->timeout = $timeout; 21 | $this->expression = $expression; 22 | } 23 | 24 | public function jsonSerialize(): array { 25 | $json = []; 26 | $json['queue'] = $this->queue; 27 | if ($this->priority !== null) { 28 | $json['priority'] = $this->priority; 29 | } 30 | if ($this->timeout !== null) { 31 | $json['timeout'] = $this->timeout; 32 | } 33 | if ($this->expression !== null) { 34 | $json['expression'] = $this->expression; 35 | } 36 | return $json; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/Twilio/TwiML/FaxResponse.php: -------------------------------------------------------------------------------- 1 | nest(new Fax\Receive($attributes)); 28 | } 29 | } -------------------------------------------------------------------------------- /src/Twilio/TwiML/GenericNode.php: -------------------------------------------------------------------------------- 1 | name = $name; 19 | $this->value = $value; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/Twilio/TwiML/Messaging/Body.php: -------------------------------------------------------------------------------- 1 | setAttribute('method', $method); 32 | } 33 | } -------------------------------------------------------------------------------- /src/Twilio/TwiML/MessagingResponse.php: -------------------------------------------------------------------------------- 1 | nest(new Messaging\Message($body, $attributes)); 29 | } 30 | 31 | /** 32 | * Add Redirect child. 33 | * 34 | * @param string $url Redirect URL 35 | * @param array $attributes Optional attributes 36 | * @return Messaging\Redirect Child element. 37 | */ 38 | public function redirect($url, $attributes = []): Messaging\Redirect { 39 | return $this->nest(new Messaging\Redirect($url, $attributes)); 40 | } 41 | } -------------------------------------------------------------------------------- /src/Twilio/TwiML/Video/Room.php: -------------------------------------------------------------------------------- 1 | setAttribute('name', $name); 31 | } 32 | 33 | /** 34 | * Add Value attribute. 35 | * 36 | * @param string $value The value of the custom config 37 | */ 38 | public function setValue($value): self { 39 | return $this->setAttribute('value', $value); 40 | } 41 | } -------------------------------------------------------------------------------- /src/Twilio/TwiML/Voice/Echo_.php: -------------------------------------------------------------------------------- 1 | nest(new Parameter($attributes)); 30 | } 31 | } -------------------------------------------------------------------------------- /src/Twilio/TwiML/Voice/Identity.php: -------------------------------------------------------------------------------- 1 | setAttribute('name', $name); 31 | } 32 | 33 | /** 34 | * Add Value attribute. 35 | * 36 | * @param string $value The value of the custom parameter 37 | */ 38 | public function setValue($value): self { 39 | return $this->setAttribute('value', $value); 40 | } 41 | } -------------------------------------------------------------------------------- /src/Twilio/TwiML/Voice/Pause.php: -------------------------------------------------------------------------------- 1 | setAttribute('length', $length); 31 | } 32 | } -------------------------------------------------------------------------------- /src/Twilio/TwiML/Voice/Play.php: -------------------------------------------------------------------------------- 1 | setAttribute('loop', $loop); 32 | } 33 | 34 | /** 35 | * Add Digits attribute. 36 | * 37 | * @param string $digits Play DTMF tones for digits 38 | */ 39 | public function setDigits($digits): self { 40 | return $this->setAttribute('digits', $digits); 41 | } 42 | } -------------------------------------------------------------------------------- /src/Twilio/TwiML/Voice/Queue.php: -------------------------------------------------------------------------------- 1 | setAttribute('url', $url); 32 | } 33 | 34 | /** 35 | * Add Method attribute. 36 | * 37 | * @param string $method Action URL method 38 | */ 39 | public function setMethod($method): self { 40 | return $this->setAttribute('method', $method); 41 | } 42 | 43 | /** 44 | * Add ReservationSid attribute. 45 | * 46 | * @param string $reservationSid TaskRouter Reservation SID 47 | */ 48 | public function setReservationSid($reservationSid): self { 49 | return $this->setAttribute('reservationSid', $reservationSid); 50 | } 51 | 52 | /** 53 | * Add PostWorkActivitySid attribute. 54 | * 55 | * @param string $postWorkActivitySid TaskRouter Activity SID 56 | */ 57 | public function setPostWorkActivitySid($postWorkActivitySid): self { 58 | return $this->setAttribute('postWorkActivitySid', $postWorkActivitySid); 59 | } 60 | } -------------------------------------------------------------------------------- /src/Twilio/TwiML/Voice/Redirect.php: -------------------------------------------------------------------------------- 1 | setAttribute('method', $method); 32 | } 33 | } -------------------------------------------------------------------------------- /src/Twilio/TwiML/Voice/Refer.php: -------------------------------------------------------------------------------- 1 | nest(new ReferSip($sipUrl)); 32 | } 33 | 34 | /** 35 | * Add Action attribute. 36 | * 37 | * @param string $action Action URL 38 | */ 39 | public function setAction($action): self { 40 | return $this->setAttribute('action', $action); 41 | } 42 | 43 | /** 44 | * Add Method attribute. 45 | * 46 | * @param string $method Action URL method 47 | */ 48 | public function setMethod($method): self { 49 | return $this->setAttribute('method', $method); 50 | } 51 | } -------------------------------------------------------------------------------- /src/Twilio/TwiML/Voice/ReferSip.php: -------------------------------------------------------------------------------- 1 | nest(new Parameter($attributes)); 32 | } 33 | 34 | /** 35 | * Add Reason attribute. 36 | * 37 | * @param string $reason Rejection reason 38 | */ 39 | public function setReason($reason): self { 40 | return $this->setAttribute('reason', $reason); 41 | } 42 | } -------------------------------------------------------------------------------- /src/Twilio/TwiML/Voice/Room.php: -------------------------------------------------------------------------------- 1 | setAttribute('participantIdentity', $participantIdentity); 33 | } 34 | } -------------------------------------------------------------------------------- /src/Twilio/TwiML/Voice/Sim.php: -------------------------------------------------------------------------------- 1 | setAttribute('strength', $strength); 31 | } 32 | 33 | /** 34 | * Add Time attribute. 35 | * 36 | * @param string $time Set a pause to a specific length of time in seconds or 37 | * milliseconds, available values: [number]s, [number]ms 38 | */ 39 | public function setTime($time): self { 40 | return $this->setAttribute('time', $time); 41 | } 42 | } -------------------------------------------------------------------------------- /src/Twilio/TwiML/Voice/SsmlPhoneme.php: -------------------------------------------------------------------------------- 1 | setAttribute('alphabet', $alphabet); 32 | } 33 | 34 | /** 35 | * Add Ph attribute. 36 | * 37 | * @param string $ph Specifiy the phonetic symbols for pronunciation 38 | */ 39 | public function setPh($ph): self { 40 | return $this->setAttribute('ph', $ph); 41 | } 42 | } -------------------------------------------------------------------------------- /src/Twilio/TwiML/Voice/SsmlSayAs.php: -------------------------------------------------------------------------------- 1 | setAttribute('interpret-as', $interpretAs); 32 | } 33 | 34 | /** 35 | * Add Format attribute. 36 | * 37 | * @param string $format Specify the format of the date when interpret-as is 38 | * set to date 39 | */ 40 | public function setFormat($format): self { 41 | return $this->setAttribute('format', $format); 42 | } 43 | } -------------------------------------------------------------------------------- /src/Twilio/TwiML/Voice/SsmlSub.php: -------------------------------------------------------------------------------- 1 | setAttribute('alias', $alias); 33 | } 34 | } -------------------------------------------------------------------------------- /src/Twilio/TwiML/Voice/Stop.php: -------------------------------------------------------------------------------- 1 | nest(new Stream($attributes)); 30 | } 31 | 32 | /** 33 | * Add Siprec child. 34 | * 35 | * @param array $attributes Optional attributes 36 | * @return Siprec Child element. 37 | */ 38 | public function siprec($attributes = []): Siprec { 39 | return $this->nest(new Siprec($attributes)); 40 | } 41 | 42 | /** 43 | * Add Transcription child. 44 | * 45 | * @param array $attributes Optional attributes 46 | * @return Transcription Child element. 47 | */ 48 | public function transcription($attributes = []): Transcription { 49 | return $this->nest(new Transcription($attributes)); 50 | } 51 | } -------------------------------------------------------------------------------- /src/Twilio/TwiML/Voice/Task.php: -------------------------------------------------------------------------------- 1 | setAttribute('priority', $priority); 32 | } 33 | 34 | /** 35 | * Add Timeout attribute. 36 | * 37 | * @param int $timeout Timeout associated with task 38 | */ 39 | public function setTimeout($timeout): self { 40 | return $this->setAttribute('timeout', $timeout); 41 | } 42 | } -------------------------------------------------------------------------------- /src/Twilio/VersionInfo.php: -------------------------------------------------------------------------------- 1 |