@rc-ex/core 1.3.15 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/FormData.d.ts +0 -1
- package/lib/Utils.d.ts +0 -1
- package/lib/definitions/AccountInfo.d.ts +1 -6
- package/lib/definitions/AccountPhoneNumberInfo.d.ts +8 -2
- package/lib/definitions/AccountRegionalSettings.d.ts +2 -1
- package/lib/definitions/AccountServiceInfo.d.ts +2 -2
- package/lib/definitions/AccountServiceInfoRequest.d.ts +2 -2
- package/lib/definitions/AccountStatusInfo.d.ts +3 -1
- package/lib/definitions/ActivePermissionResource.d.ts +1 -1
- package/lib/definitions/AddPhoneNumberRequestItem.d.ts +4 -0
- package/lib/definitions/AddPhoneNumbersResponseItem.d.ts +4 -0
- package/lib/definitions/AssignPhoneNumberRequest.d.ts +6 -2
- package/lib/definitions/AssignedCountryInfo.d.ts +3 -1
- package/lib/definitions/Attachment.d.ts +0 -2
- package/lib/definitions/AuthCodeTokenRequest.d.ts +31 -0
- package/lib/definitions/{CreateContentRequest.js → AuthCodeTokenRequest.js} +1 -1
- package/lib/definitions/AuthCodeTokenRequest.js.map +1 -0
- package/lib/definitions/AuthorizeParameters.d.ts +92 -0
- package/lib/definitions/AuthorizeParameters.js +3 -0
- package/lib/definitions/AuthorizeParameters.js.map +1 -0
- package/lib/definitions/AuthorizeRequest.d.ts +39 -42
- package/lib/definitions/BaseCallLogRecord.d.ts +0 -1
- package/lib/definitions/BaseTokenRequest.d.ts +41 -0
- package/lib/definitions/{GreetingResource.js → BaseTokenRequest.js} +1 -1
- package/lib/definitions/BaseTokenRequest.js.map +1 -0
- package/lib/definitions/BatchListResponse.d.ts +2 -2
- package/lib/definitions/{PackageInfo.d.ts → BillingPackageInfo.d.ts} +2 -2
- package/lib/definitions/BillingPackageInfo.js +3 -0
- package/lib/definitions/BillingPackageInfo.js.map +1 -0
- package/lib/definitions/CallFlipNumberListResource.d.ts +8 -0
- package/lib/definitions/CallFlipNumberListResource.js +3 -0
- package/lib/definitions/CallFlipNumberListResource.js.map +1 -0
- package/lib/definitions/CallFlipNumberResource.d.ts +28 -0
- package/lib/definitions/CallFlipNumberResource.js +3 -0
- package/lib/definitions/CallFlipNumberResource.js.map +1 -0
- package/lib/definitions/{AnsweringRuleInfo.d.ts → CallHandlingRuleInfo.d.ts} +2 -2
- package/lib/definitions/CallHandlingRuleInfo.js +3 -0
- package/lib/definitions/CallHandlingRuleInfo.js.map +1 -0
- package/lib/definitions/CallLogRecord.d.ts +0 -1
- package/lib/definitions/CallLogRecordLegInfo.d.ts +0 -1
- package/lib/definitions/CallParty.d.ts +5 -0
- package/lib/definitions/CallQueueDetails.d.ts +5 -1
- package/lib/definitions/CallQueueDetailsForUpdate.d.ts +36 -0
- package/lib/definitions/CallQueueDetailsForUpdate.js +3 -0
- package/lib/definitions/CallQueueDetailsForUpdate.js.map +1 -0
- package/lib/definitions/CallQueueInfo.d.ts +5 -1
- package/lib/definitions/{CallQueues.d.ts → CallQueueList.d.ts} +2 -2
- package/lib/definitions/{PagingResource.js → CallQueueList.js} +1 -1
- package/lib/definitions/CallQueueList.js.map +1 -0
- package/lib/definitions/CallQueueMember.d.ts +2 -2
- package/lib/definitions/{GreetingResource.d.ts → CallRecordingGreetingResource.d.ts} +2 -2
- package/lib/definitions/CallRecordingGreetingResource.js +3 -0
- package/lib/definitions/CallRecordingGreetingResource.js.map +1 -0
- package/lib/definitions/CallRecordingSettingsResource.d.ts +2 -2
- package/lib/definitions/ClientAuthJwtModel.d.ts +15 -0
- package/lib/definitions/ClientAuthJwtModel.js +3 -0
- package/lib/definitions/ClientAuthJwtModel.js.map +1 -0
- package/lib/definitions/ClientCredentialsBase.d.ts +13 -0
- package/lib/definitions/ClientCredentialsBase.js +3 -0
- package/lib/definitions/ClientCredentialsBase.js.map +1 -0
- package/lib/definitions/ClientCredentialsByAccount.d.ts +18 -0
- package/lib/definitions/ClientCredentialsByAccount.js +3 -0
- package/lib/definitions/ClientCredentialsByAccount.js.map +1 -0
- package/lib/definitions/ClientCredentialsByBrand.d.ts +18 -0
- package/lib/definitions/ClientCredentialsByBrand.js +3 -0
- package/lib/definitions/ClientCredentialsByBrand.js.map +1 -0
- package/lib/definitions/ClientCredentialsByPartnerAccount.d.ts +23 -0
- package/lib/definitions/ClientCredentialsByPartnerAccount.js +3 -0
- package/lib/definitions/ClientCredentialsByPartnerAccount.js.map +1 -0
- package/lib/definitions/ClientCredentialsTokenRequest.d.ts +28 -0
- package/lib/definitions/ClientCredentialsTokenRequest.js +3 -0
- package/lib/definitions/ClientCredentialsTokenRequest.js.map +1 -0
- package/lib/definitions/CommonEmergencyLocationAddressInfo.d.ts +2 -1
- package/lib/definitions/CommonEmergencyLocationAddressInfoAu.d.ts +2 -1
- package/lib/definitions/CommonEmergencyLocationAddressInfoDefault.d.ts +2 -1
- package/lib/definitions/CommonEmergencyLocationAddressInfoFr.d.ts +2 -1
- package/lib/definitions/CompanyAnsweringRuleRequest.d.ts +2 -1
- package/lib/definitions/CompanyPhoneNumberInfo.d.ts +10 -6
- package/lib/definitions/ContentBodyFormatted.d.ts +1 -1
- package/lib/definitions/ContentContextData.d.ts +1 -2
- package/lib/definitions/ContentModel.d.ts +66 -71
- package/lib/definitions/CostCenterBase.d.ts +19 -0
- package/lib/definitions/CostCenterBase.js +3 -0
- package/lib/definitions/CostCenterBase.js.map +1 -0
- package/lib/definitions/CostCenterItem.d.ts +30 -0
- package/lib/definitions/CostCenterItem.js +3 -0
- package/lib/definitions/CostCenterItem.js.map +1 -0
- package/lib/definitions/CostCenterList.d.ts +8 -0
- package/lib/definitions/CostCenterList.js +3 -0
- package/lib/definitions/CostCenterList.js.map +1 -0
- package/lib/definitions/CountryInfoDictionaryModel.d.ts +5 -5
- package/lib/definitions/CountryInfoShortModel.d.ts +5 -6
- package/lib/definitions/CreateFaxMessageRequest.d.ts +1 -1
- package/lib/definitions/CreateSiteRequest.d.ts +7 -0
- package/lib/definitions/CreateSocialMessagingContentRequest.d.ts +110 -0
- package/lib/definitions/CreateSocialMessagingContentRequest.js +3 -0
- package/lib/definitions/CreateSocialMessagingContentRequest.js.map +1 -0
- package/lib/definitions/CreateUserEmergencyLocationRequest.d.ts +2 -1
- package/lib/definitions/CustomCompanyGreetingInfo.d.ts +1 -1
- package/lib/definitions/DeletePhoneNumbersRequestItem.d.ts +1 -1
- package/lib/definitions/DeviceCodeTokenRequest.d.ts +19 -0
- package/lib/definitions/DeviceCodeTokenRequest.js +3 -0
- package/lib/definitions/DeviceCodeTokenRequest.js.map +1 -0
- package/lib/definitions/DeviceEmergencyInfo.d.ts +2 -2
- package/lib/definitions/DeviceEmergencyServiceAddressResourceAu.d.ts +2 -1
- package/lib/definitions/DeviceEmergencyServiceAddressResourceDefault.d.ts +2 -1
- package/lib/definitions/DeviceEmergencyServiceAddressResourceFr.d.ts +2 -1
- package/lib/definitions/DeviceResource.d.ts +2 -1
- package/lib/definitions/EmailRecipientInfo.d.ts +2 -2
- package/lib/definitions/EmergencyAddressInfo.d.ts +2 -1
- package/lib/definitions/EmergencyLocationRequestResource.d.ts +2 -1
- package/lib/definitions/EmergencyLocationResponseResource.d.ts +2 -1
- package/lib/definitions/EmergencyServiceAddressResource.d.ts +2 -1
- package/lib/definitions/EventRecurrenceInfo.d.ts +25 -0
- package/lib/definitions/EventRecurrenceInfo.js +3 -0
- package/lib/definitions/EventRecurrenceInfo.js.map +1 -0
- package/lib/definitions/ExtensionBulkUpdateInfo.d.ts +2 -1
- package/lib/definitions/ExtensionBulkUpdateTaskResult.d.ts +3 -3
- package/lib/definitions/ExtensionBulkUpdateTaskResultAffectedItems.d.ts +7 -0
- package/lib/definitions/ExtensionBulkUpdateTaskResultAffectedItems.js +3 -0
- package/lib/definitions/ExtensionBulkUpdateTaskResultAffectedItems.js.map +1 -0
- package/lib/definitions/ExtensionCreationRequest.d.ts +2 -2
- package/lib/definitions/ExtensionCreationResponse.d.ts +2 -4
- package/lib/definitions/ExtensionRegionalSettingRequest.d.ts +1 -1
- package/lib/definitions/ExtensionStatusInfo.d.ts +2 -9
- package/lib/definitions/ExtensionUpdateRequest.d.ts +2 -1
- package/lib/definitions/FaxResponseTo.d.ts +11 -0
- package/lib/definitions/GetAccountInfoResponse.d.ts +2 -2
- package/lib/definitions/GetConferencingInfoResponse.d.ts +5 -0
- package/lib/definitions/GetCountryInfoNumberParser.d.ts +5 -4
- package/lib/definitions/GetExtensionInfoResponse.d.ts +11 -3
- package/lib/definitions/GetExtensionListInfoResponse.d.ts +8 -4
- package/lib/definitions/GetMessageInfoResponse.d.ts +0 -4
- package/lib/definitions/GetSMSMessageInfoResponse.d.ts +0 -4
- package/lib/definitions/GetTokenRequest.d.ts +90 -45
- package/lib/definitions/GuestTokenRequest.d.ts +27 -0
- package/lib/definitions/{AnsweringRuleInfo.js → GuestTokenRequest.js} +1 -1
- package/lib/definitions/GuestTokenRequest.js.map +1 -0
- package/lib/definitions/IdentityExtraValues.d.ts +1 -1
- package/lib/definitions/IdentityModel.d.ts +33 -65
- package/lib/definitions/IvrPinTokenRequest.d.ts +17 -0
- package/lib/definitions/IvrPinTokenRequest.js +3 -0
- package/lib/definitions/IvrPinTokenRequest.js.map +1 -0
- package/lib/definitions/JobStatusResponse.d.ts +7 -0
- package/lib/definitions/JobStatusResponseResponse.d.ts +39 -0
- package/lib/definitions/JobStatusResponseResponse.js +3 -0
- package/lib/definitions/JobStatusResponseResponse.js.map +1 -0
- package/lib/definitions/JwtTokenRequest.d.ts +20 -0
- package/lib/definitions/JwtTokenRequest.js +3 -0
- package/lib/definitions/JwtTokenRequest.js.map +1 -0
- package/lib/definitions/LanguageInfo.d.ts +2 -1
- package/lib/definitions/ListAccountPhoneNumbersParameters.d.ts +4 -2
- package/lib/definitions/ListAccountPhoneNumbersV2Parameters.d.ts +3 -1
- package/lib/definitions/ListCallMonitoringGroupsParameters.d.ts +4 -0
- package/lib/definitions/ListCompanyMessageTemplatesParameters.d.ts +11 -0
- package/lib/definitions/ListCompanyMessageTemplatesParameters.js +3 -0
- package/lib/definitions/ListCompanyMessageTemplatesParameters.js.map +1 -0
- package/lib/definitions/ListDirectoryEntriesParameters.d.ts +5 -0
- package/lib/definitions/ListEmergencyLocationsParameters.d.ts +1 -0
- package/lib/definitions/ListExtensionPhoneNumbersParameters.d.ts +4 -2
- package/lib/definitions/ListExtensionsParameters.d.ts +2 -2
- package/lib/definitions/ListMeetingRecordingsResponse.d.ts +4 -4
- package/lib/definitions/{SocMsgListContentsParameters.d.ts → ListSocialMessagingContentsParameters.d.ts} +25 -17
- package/lib/definitions/ListSocialMessagingContentsParameters.js +3 -0
- package/lib/definitions/ListSocialMessagingContentsParameters.js.map +1 -0
- package/lib/definitions/{SocMsgListIdentitiesParameters.d.ts → ListSocialMessagingIdentitiesParameters.d.ts} +14 -10
- package/lib/definitions/ListSocialMessagingIdentitiesParameters.js +3 -0
- package/lib/definitions/ListSocialMessagingIdentitiesParameters.js.map +1 -0
- package/lib/definitions/ListUserMessageTemplatesParameters.d.ts +15 -0
- package/lib/definitions/ListUserMessageTemplatesParameters.js +3 -0
- package/lib/definitions/ListUserMessageTemplatesParameters.js.map +1 -0
- package/lib/definitions/LocationUpdatesEmergencyAddressInfoRequest.d.ts +2 -1
- package/lib/definitions/MeetingsCountryResource.d.ts +6 -0
- package/lib/definitions/MeetingsResource.d.ts +4 -4
- package/lib/definitions/MessageListResponse.d.ts +2 -2
- package/lib/definitions/MessageStatusCounts.d.ts +2 -1
- package/lib/definitions/MessageStoreCallerInfoResponseTo.d.ts +4 -0
- package/lib/definitions/MessageTemplateInfo.d.ts +11 -0
- package/lib/definitions/MessageTemplateInfo.js +3 -0
- package/lib/definitions/MessageTemplateInfo.js.map +1 -0
- package/lib/definitions/MessageTemplateRequest.d.ts +17 -0
- package/lib/definitions/MessageTemplateRequest.js +3 -0
- package/lib/definitions/MessageTemplateRequest.js.map +1 -0
- package/lib/definitions/MessageTemplateResponse.d.ts +23 -0
- package/lib/definitions/MessageTemplateResponse.js +3 -0
- package/lib/definitions/MessageTemplateResponse.js.map +1 -0
- package/lib/definitions/MessageTemplateUpdateRequest.d.ts +16 -0
- package/lib/definitions/MessageTemplateUpdateRequest.js +3 -0
- package/lib/definitions/MessageTemplateUpdateRequest.js.map +1 -0
- package/lib/definitions/MessageTemplatesListResponse.d.ts +8 -0
- package/lib/definitions/MessageTemplatesListResponse.js +3 -0
- package/lib/definitions/MessageTemplatesListResponse.js.map +1 -0
- package/lib/definitions/MetaData.d.ts +12 -0
- package/lib/definitions/{CallQueues.js → MetaData.js} +1 -1
- package/lib/definitions/MetaData.js.map +1 -0
- package/lib/definitions/MetaDataValues.d.ts +11 -0
- package/lib/definitions/MetaDataValues.js +3 -0
- package/lib/definitions/MetaDataValues.js.map +1 -0
- package/lib/definitions/MissedCallExtensionInfoExternalNumber.d.ts +1 -1
- package/lib/definitions/OptOutListResponse.d.ts +2 -2
- package/lib/definitions/OtpTokenRequest.d.ts +19 -0
- package/lib/definitions/OtpTokenRequest.js +3 -0
- package/lib/definitions/OtpTokenRequest.js.map +1 -0
- package/lib/definitions/PhoneNumberInfoIntId.d.ts +2 -2
- package/lib/definitions/ReadDirectoryEntryParameters.d.ts +11 -0
- package/lib/definitions/ReadDirectoryEntryParameters.js +3 -0
- package/lib/definitions/ReadDirectoryEntryParameters.js.map +1 -0
- package/lib/definitions/ReadGlipPostsNewParameters.d.ts +1 -1
- package/lib/definitions/RefreshTokenRequest.d.ts +18 -0
- package/lib/definitions/RefreshTokenRequest.js +3 -0
- package/lib/definitions/RefreshTokenRequest.js.map +1 -0
- package/lib/definitions/RegSessionModel.d.ts +6 -0
- package/lib/definitions/RegSessionModelSettings.d.ts +18 -1
- package/lib/definitions/RegionalSettings.d.ts +2 -1
- package/lib/definitions/RegistrantBaseModel.d.ts +4 -0
- package/lib/definitions/RegistrantBaseModelWithQuestionnaire.d.ts +4 -0
- package/lib/definitions/RegistrantMinimalModel.d.ts +4 -0
- package/lib/definitions/RegistrantModelResponsePostWithQuestionnaire.d.ts +4 -0
- package/lib/definitions/RegistrantModelWithQuestionnaire.d.ts +4 -0
- package/lib/definitions/RevokeTokenRequest.d.ts +7 -3
- package/lib/definitions/RoleResource.d.ts +1 -1
- package/lib/definitions/RolesCountryResource.d.ts +6 -0
- package/lib/definitions/RolesRegionalSettingsResource.d.ts +2 -0
- package/lib/definitions/RopcTokenRequest.d.ts +38 -0
- package/lib/definitions/RopcTokenRequest.js +3 -0
- package/lib/definitions/RopcTokenRequest.js.map +1 -0
- package/lib/definitions/SearchDirectoryEntriesParameters.d.ts +5 -0
- package/lib/definitions/ServiceInfo.d.ts +1 -1
- package/lib/definitions/ServiceInfoContractedCountryId.d.ts +7 -0
- package/lib/definitions/ServiceInfoContractedCountryId.js +3 -0
- package/lib/definitions/ServiceInfoContractedCountryId.js.map +1 -0
- package/lib/definitions/ServiceInfoPlan.d.ts +17 -0
- package/lib/definitions/ServiceInfoPlan.js +3 -0
- package/lib/definitions/ServiceInfoPlan.js.map +1 -0
- package/lib/definitions/ServiceInfoUBrand.d.ts +11 -0
- package/lib/definitions/{ContentAttachment.js → ServiceInfoUBrand.js} +1 -1
- package/lib/definitions/ServiceInfoUBrand.js.map +1 -0
- package/lib/definitions/ServiceInfoV2.d.ts +15 -0
- package/lib/definitions/SipRegistrationDeviceEmergencyInfoAddress.d.ts +2 -1
- package/lib/definitions/Site.d.ts +16 -0
- package/lib/definitions/{PackageInfo.js → Site.js} +1 -1
- package/lib/definitions/Site.js.map +1 -0
- package/lib/definitions/SiteInfo.d.ts +4 -0
- package/lib/definitions/SiteUpdateRequest.d.ts +7 -0
- package/lib/definitions/SmsRequestCountryInfo.d.ts +2 -1
- package/lib/definitions/SocMsgContentAttachment.d.ts +77 -0
- package/lib/definitions/SocMsgContentAttachment.js +3 -0
- package/lib/definitions/SocMsgContentAttachment.js.map +1 -0
- package/lib/definitions/TMCreateEventRequest.d.ts +2 -19
- package/lib/definitions/TMCreateTaskRequest.d.ts +4 -4
- package/lib/definitions/TMEventInfo.d.ts +2 -17
- package/lib/definitions/TMMessageAttachmentInfo.d.ts +2 -17
- package/lib/definitions/TMTaskInfo.d.ts +2 -3
- package/lib/definitions/TMUpdateTaskRequest.d.ts +2 -2
- package/lib/definitions/{TMTaskInfoRecurrence.d.ts → TaskRecurrenceInfo.d.ts} +11 -5
- package/lib/definitions/TaskRecurrenceInfo.js +3 -0
- package/lib/definitions/TaskRecurrenceInfo.js.map +1 -0
- package/lib/definitions/TaxLocation.d.ts +38 -0
- package/lib/definitions/{SiteResource.js → TaxLocation.js} +1 -1
- package/lib/definitions/TaxLocation.js.map +1 -0
- package/lib/definitions/TokenInfo.d.ts +22 -16
- package/lib/definitions/UnconditionalForwardingInfo.d.ts +2 -2
- package/lib/definitions/UserAnsweringRuleList.d.ts +2 -2
- package/lib/definitions/UserPhoneNumberInfo.d.ts +4 -4
- package/lib/definitions/UserTransitionInfo.d.ts +2 -2
- package/lib/paths/Cx/SocialMessaging/V1/Contents/index.d.ts +17 -19
- package/lib/paths/Cx/SocialMessaging/V1/Contents/index.js +15 -17
- package/lib/paths/Cx/SocialMessaging/V1/Contents/index.js.map +1 -1
- package/lib/paths/Cx/SocialMessaging/V1/Identities/index.d.ts +8 -10
- package/lib/paths/Cx/SocialMessaging/V1/Identities/index.js +6 -8
- package/lib/paths/Cx/SocialMessaging/V1/Identities/index.js.map +1 -1
- package/lib/paths/Restapi/Account/CallQueues/index.d.ts +4 -3
- package/lib/paths/Restapi/Account/CallQueues/index.js +2 -2
- package/lib/paths/Restapi/Account/CallQueues/index.js.map +1 -1
- package/lib/paths/Restapi/Account/Directory/Entries/index.d.ts +2 -1
- package/lib/paths/Restapi/Account/Directory/Entries/index.js +2 -2
- package/lib/paths/Restapi/Account/Directory/Entries/index.js.map +1 -1
- package/lib/paths/Restapi/Account/Extension/AnsweringRule/index.d.ts +3 -3
- package/lib/paths/Restapi/Account/Extension/AnsweringRule/index.js.map +1 -1
- package/lib/paths/Restapi/Account/Extension/Greeting/Content/index.d.ts +0 -1
- package/lib/paths/Restapi/Account/Extension/MessageStore/Content/index.d.ts +0 -1
- package/lib/paths/Restapi/Account/Extension/MessageStoreTemplates/index.d.ts +57 -0
- package/lib/paths/Restapi/Account/Extension/MessageStoreTemplates/index.js +84 -0
- package/lib/paths/Restapi/Account/Extension/MessageStoreTemplates/index.js.map +1 -0
- package/lib/paths/Restapi/Account/Extension/ProfileImage/index.d.ts +0 -1
- package/lib/paths/Restapi/Account/Extension/index.d.ts +2 -0
- package/lib/paths/Restapi/Account/Extension/index.js +4 -0
- package/lib/paths/Restapi/Account/Extension/index.js.map +1 -1
- package/lib/paths/Restapi/Account/Greeting/Content/index.d.ts +0 -1
- package/lib/paths/Restapi/Account/IvrPrompts/Content/index.d.ts +3 -1
- package/lib/paths/Restapi/Account/IvrPrompts/Content/index.js +3 -0
- package/lib/paths/Restapi/Account/IvrPrompts/Content/index.js.map +1 -1
- package/lib/paths/Restapi/Account/MessageStoreTemplates/index.d.ts +54 -0
- package/lib/paths/Restapi/Account/MessageStoreTemplates/index.js +81 -0
- package/lib/paths/Restapi/Account/MessageStoreTemplates/index.js.map +1 -0
- package/lib/paths/Restapi/Account/Recording/Content/index.d.ts +0 -1
- package/lib/paths/Restapi/Account/ServiceInfo/index.d.ts +1 -1
- package/lib/paths/Restapi/Account/ServiceInfo/index.js +1 -1
- package/lib/paths/Restapi/Account/index.d.ts +2 -0
- package/lib/paths/Restapi/Account/index.js +4 -0
- package/lib/paths/Restapi/Account/index.js.map +1 -1
- package/lib/paths/Restapi/Oauth/Authorize/index.d.ts +18 -3
- package/lib/paths/Restapi/Oauth/Authorize/index.js +18 -4
- package/lib/paths/Restapi/Oauth/Authorize/index.js.map +1 -1
- package/lib/paths/Restapi/Oauth/Revoke/index.d.ts +6 -4
- package/lib/paths/Restapi/Oauth/Revoke/index.js +6 -4
- package/lib/paths/Restapi/Oauth/Revoke/index.js.map +1 -1
- package/lib/paths/Restapi/Oauth/Token/index.d.ts +6 -3
- package/lib/paths/Restapi/Oauth/Token/index.js +6 -3
- package/lib/paths/Restapi/Oauth/Token/index.js.map +1 -1
- package/lib/paths/Restapi/Oauth/index.d.ts +0 -4
- package/lib/paths/Restapi/Oauth/index.js +0 -8
- package/lib/paths/Restapi/Oauth/index.js.map +1 -1
- package/lib/paths/Restapi/V2/Accounts/CostCenters/index.d.ts +18 -0
- package/lib/paths/Restapi/{Oauth/SessionInfo → V2/Accounts/CostCenters}/index.js +6 -5
- package/lib/paths/Restapi/V2/Accounts/CostCenters/index.js.map +1 -0
- package/lib/paths/Restapi/V2/Accounts/Extensions/CallFlipNumbers/index.d.ts +45 -0
- package/lib/paths/Restapi/V2/Accounts/Extensions/CallFlipNumbers/index.js +55 -0
- package/lib/paths/Restapi/V2/Accounts/Extensions/CallFlipNumbers/index.js.map +1 -0
- package/lib/paths/Restapi/V2/Accounts/Extensions/index.d.ts +2 -0
- package/lib/paths/Restapi/V2/Accounts/Extensions/index.js +4 -0
- package/lib/paths/Restapi/V2/Accounts/Extensions/index.js.map +1 -1
- package/lib/paths/Restapi/V2/Accounts/PhoneNumbers/BulkAdd/index.d.ts +1 -1
- package/lib/paths/Restapi/V2/Accounts/PhoneNumbers/BulkAdd/index.js +1 -1
- package/lib/paths/Restapi/V2/Accounts/PhoneNumbers/Replace/index.d.ts +1 -1
- package/lib/paths/Restapi/V2/Accounts/PhoneNumbers/Replace/index.js +1 -1
- package/lib/paths/Restapi/V2/Accounts/PhoneNumbers/index.d.ts +6 -6
- package/lib/paths/Restapi/V2/Accounts/PhoneNumbers/index.js +6 -6
- package/lib/paths/Restapi/V2/Accounts/index.d.ts +2 -0
- package/lib/paths/Restapi/V2/Accounts/index.js +4 -0
- package/lib/paths/Restapi/V2/Accounts/index.js.map +1 -1
- package/lib/paths/TeamMessaging/V1/Chats/Posts/index.d.ts +5 -1
- package/lib/paths/TeamMessaging/V1/Chats/Posts/index.js +5 -1
- package/lib/paths/TeamMessaging/V1/Chats/Posts/index.js.map +1 -1
- package/lib/types.d.ts +0 -2
- package/package.json +5 -5
- package/src/definitions/AccountInfo.ts +1 -7
- package/src/definitions/AccountPhoneNumberInfo.ts +9 -2
- package/src/definitions/AccountRegionalSettings.ts +2 -1
- package/src/definitions/AccountServiceInfo.ts +2 -2
- package/src/definitions/AccountServiceInfoRequest.ts +2 -2
- package/src/definitions/AccountStatusInfo.ts +3 -1
- package/src/definitions/ActivePermissionResource.ts +1 -1
- package/src/definitions/AddPhoneNumberRequestItem.ts +5 -0
- package/src/definitions/AddPhoneNumbersResponseItem.ts +5 -0
- package/src/definitions/AssignPhoneNumberRequest.ts +7 -2
- package/src/definitions/AssignedCountryInfo.ts +3 -1
- package/src/definitions/AuthCodeTokenRequest.ts +35 -0
- package/src/definitions/AuthorizeParameters.ts +107 -0
- package/src/definitions/AuthorizeRequest.ts +39 -44
- package/src/definitions/BaseCallLogRecord.ts +0 -1
- package/src/definitions/BaseTokenRequest.ts +59 -0
- package/src/definitions/BatchListResponse.ts +2 -2
- package/src/definitions/{PackageInfo.ts → BillingPackageInfo.ts} +2 -2
- package/src/definitions/CallFlipNumberListResource.ts +10 -0
- package/src/definitions/CallFlipNumberResource.ts +33 -0
- package/src/definitions/{AnsweringRuleInfo.ts → CallHandlingRuleInfo.ts} +2 -2
- package/src/definitions/CallLogRecord.ts +0 -1
- package/src/definitions/CallLogRecordLegInfo.ts +0 -1
- package/src/definitions/CallParty.ts +6 -0
- package/src/definitions/CallQueueDetails.ts +6 -1
- package/src/definitions/CallQueueDetailsForUpdate.ts +45 -0
- package/src/definitions/CallQueueInfo.ts +7 -1
- package/src/definitions/{CallQueues.ts → CallQueueList.ts} +2 -2
- package/src/definitions/CallQueueMember.ts +2 -2
- package/src/definitions/{GreetingResource.ts → CallRecordingGreetingResource.ts} +2 -2
- package/src/definitions/CallRecordingSettingsResource.ts +2 -2
- package/src/definitions/ClientAuthJwtModel.ts +17 -0
- package/src/definitions/ClientCredentialsBase.ts +14 -0
- package/src/definitions/ClientCredentialsByAccount.ts +20 -0
- package/src/definitions/ClientCredentialsByBrand.ts +20 -0
- package/src/definitions/ClientCredentialsByPartnerAccount.ts +26 -0
- package/src/definitions/ClientCredentialsTokenRequest.ts +32 -0
- package/src/definitions/CommonEmergencyLocationAddressInfo.ts +2 -1
- package/src/definitions/CommonEmergencyLocationAddressInfoAu.ts +2 -1
- package/src/definitions/CommonEmergencyLocationAddressInfoDefault.ts +2 -1
- package/src/definitions/CommonEmergencyLocationAddressInfoFr.ts +2 -1
- package/src/definitions/CompanyAnsweringRuleRequest.ts +2 -1
- package/src/definitions/CompanyPhoneNumberInfo.ts +11 -6
- package/src/definitions/ContentBodyFormatted.ts +1 -1
- package/src/definitions/ContentContextData.ts +1 -2
- package/src/definitions/ContentModel.ts +68 -72
- package/src/definitions/CostCenterBase.ts +22 -0
- package/src/definitions/CostCenterItem.ts +36 -0
- package/src/definitions/CostCenterList.ts +10 -0
- package/src/definitions/CountryInfoDictionaryModel.ts +5 -5
- package/src/definitions/CountryInfoShortModel.ts +5 -6
- package/src/definitions/CreateFaxMessageRequest.ts +1 -1
- package/src/definitions/CreateSiteRequest.ts +9 -0
- package/src/definitions/CreateSocialMessagingContentRequest.ts +126 -0
- package/src/definitions/CreateUserEmergencyLocationRequest.ts +2 -1
- package/src/definitions/CustomCompanyGreetingInfo.ts +1 -1
- package/src/definitions/DeletePhoneNumbersRequestItem.ts +1 -1
- package/src/definitions/DeviceCodeTokenRequest.ts +21 -0
- package/src/definitions/DeviceEmergencyInfo.ts +2 -2
- package/src/definitions/DeviceEmergencyServiceAddressResourceAu.ts +2 -1
- package/src/definitions/DeviceEmergencyServiceAddressResourceDefault.ts +2 -1
- package/src/definitions/DeviceEmergencyServiceAddressResourceFr.ts +2 -1
- package/src/definitions/DeviceResource.ts +2 -1
- package/src/definitions/EmailRecipientInfo.ts +2 -2
- package/src/definitions/EmergencyAddressInfo.ts +2 -1
- package/src/definitions/EmergencyLocationRequestResource.ts +2 -1
- package/src/definitions/EmergencyLocationResponseResource.ts +2 -1
- package/src/definitions/EmergencyServiceAddressResource.ts +2 -1
- package/src/definitions/EventRecurrenceInfo.ts +29 -0
- package/src/definitions/ExtensionBulkUpdateInfo.ts +2 -1
- package/src/definitions/ExtensionBulkUpdateTaskResult.ts +3 -3
- package/src/definitions/ExtensionBulkUpdateTaskResultAffectedItems.ts +9 -0
- package/src/definitions/ExtensionCreationRequest.ts +2 -2
- package/src/definitions/ExtensionCreationResponse.ts +2 -3
- package/src/definitions/ExtensionRegionalSettingRequest.ts +1 -1
- package/src/definitions/ExtensionStatusInfo.ts +2 -10
- package/src/definitions/ExtensionUpdateRequest.ts +2 -1
- package/src/definitions/FaxResponseTo.ts +13 -0
- package/src/definitions/GetAccountInfoResponse.ts +2 -2
- package/src/definitions/GetConferencingInfoResponse.ts +6 -0
- package/src/definitions/GetCountryInfoNumberParser.ts +5 -4
- package/src/definitions/GetExtensionInfoResponse.ts +13 -3
- package/src/definitions/GetExtensionListInfoResponse.ts +9 -4
- package/src/definitions/GetMessageInfoResponse.ts +0 -5
- package/src/definitions/GetSMSMessageInfoResponse.ts +0 -5
- package/src/definitions/GetTokenRequest.ts +93 -46
- package/src/definitions/GuestTokenRequest.ts +31 -0
- package/src/definitions/IdentityExtraValues.ts +1 -1
- package/src/definitions/IdentityModel.ts +33 -65
- package/src/definitions/IvrPinTokenRequest.ts +19 -0
- package/src/definitions/JobStatusResponse.ts +10 -0
- package/src/definitions/JobStatusResponseResponse.ts +48 -0
- package/src/definitions/JwtTokenRequest.ts +22 -0
- package/src/definitions/LanguageInfo.ts +2 -1
- package/src/definitions/ListAccountPhoneNumbersParameters.ts +4 -2
- package/src/definitions/ListAccountPhoneNumbersV2Parameters.ts +3 -1
- package/src/definitions/ListCallMonitoringGroupsParameters.ts +5 -0
- package/src/definitions/ListCompanyMessageTemplatesParameters.ts +12 -0
- package/src/definitions/ListDirectoryEntriesParameters.ts +6 -0
- package/src/definitions/ListEmergencyLocationsParameters.ts +1 -0
- package/src/definitions/ListExtensionPhoneNumbersParameters.ts +4 -2
- package/src/definitions/ListExtensionsParameters.ts +2 -2
- package/src/definitions/ListMeetingRecordingsResponse.ts +4 -4
- package/src/definitions/ListSocialMessagingContentsParameters.ts +85 -0
- package/src/definitions/ListSocialMessagingIdentitiesParameters.ts +61 -0
- package/src/definitions/ListUserMessageTemplatesParameters.ts +17 -0
- package/src/definitions/LocationUpdatesEmergencyAddressInfoRequest.ts +2 -1
- package/src/definitions/MeetingsCountryResource.ts +6 -0
- package/src/definitions/MeetingsResource.ts +4 -4
- package/src/definitions/MessageListResponse.ts +2 -2
- package/src/definitions/MessageStatusCounts.ts +2 -1
- package/src/definitions/MessageStoreCallerInfoResponseTo.ts +5 -0
- package/src/definitions/MessageTemplateInfo.ts +12 -0
- package/src/definitions/MessageTemplateRequest.ts +21 -0
- package/src/definitions/MessageTemplateResponse.ts +29 -0
- package/src/definitions/MessageTemplateUpdateRequest.ts +20 -0
- package/src/definitions/MessageTemplatesListResponse.ts +10 -0
- package/src/definitions/MetaData.ts +14 -0
- package/src/definitions/MetaDataValues.ts +13 -0
- package/src/definitions/MissedCallExtensionInfoExternalNumber.ts +1 -1
- package/src/definitions/OptOutListResponse.ts +2 -2
- package/src/definitions/OtpTokenRequest.ts +21 -0
- package/src/definitions/PhoneNumberInfoIntId.ts +2 -2
- package/src/definitions/ReadDirectoryEntryParameters.ts +12 -0
- package/src/definitions/ReadGlipPostsNewParameters.ts +1 -1
- package/src/definitions/RefreshTokenRequest.ts +20 -0
- package/src/definitions/RegSessionModel.ts +7 -0
- package/src/definitions/RegSessionModelSettings.ts +22 -1
- package/src/definitions/RegionalSettings.ts +2 -1
- package/src/definitions/RegistrantBaseModel.ts +5 -0
- package/src/definitions/RegistrantBaseModelWithQuestionnaire.ts +5 -0
- package/src/definitions/RegistrantMinimalModel.ts +5 -0
- package/src/definitions/RegistrantModelResponsePostWithQuestionnaire.ts +5 -0
- package/src/definitions/RegistrantModelWithQuestionnaire.ts +5 -0
- package/src/definitions/RevokeTokenRequest.ts +7 -3
- package/src/definitions/RoleResource.ts +9 -1
- package/src/definitions/RolesCountryResource.ts +6 -0
- package/src/definitions/RolesRegionalSettingsResource.ts +2 -0
- package/src/definitions/RopcTokenRequest.ts +43 -0
- package/src/definitions/SearchDirectoryEntriesParameters.ts +6 -0
- package/src/definitions/ServiceInfo.ts +1 -1
- package/src/definitions/ServiceInfoContractedCountryId.ts +8 -0
- package/src/definitions/ServiceInfoPlan.ts +20 -0
- package/src/definitions/ServiceInfoUBrand.ts +12 -0
- package/src/definitions/ServiceInfoV2.ts +19 -0
- package/src/definitions/SipRegistrationDeviceEmergencyInfoAddress.ts +2 -1
- package/src/definitions/Site.ts +18 -0
- package/src/definitions/SiteInfo.ts +5 -0
- package/src/definitions/SiteUpdateRequest.ts +9 -0
- package/src/definitions/SmsRequestCountryInfo.ts +2 -1
- package/src/definitions/SocMsgContentAttachment.ts +86 -0
- package/src/definitions/TMCreateEventRequest.ts +3 -22
- package/src/definitions/TMCreateTaskRequest.ts +4 -4
- package/src/definitions/TMEventInfo.ts +3 -20
- package/src/definitions/TMMessageAttachmentInfo.ts +2 -20
- package/src/definitions/TMTaskInfo.ts +2 -3
- package/src/definitions/TMUpdateTaskRequest.ts +2 -2
- package/src/definitions/{TMTaskInfoRecurrence.ts → TaskRecurrenceInfo.ts} +11 -5
- package/src/definitions/TaxLocation.ts +45 -0
- package/src/definitions/TokenInfo.ts +22 -16
- package/src/definitions/UnconditionalForwardingInfo.ts +2 -2
- package/src/definitions/UserAnsweringRuleList.ts +2 -2
- package/src/definitions/UserPhoneNumberInfo.ts +4 -4
- package/src/definitions/UserTransitionInfo.ts +2 -2
- package/src/paths/Cx/SocialMessaging/V1/Contents/index.ts +23 -20
- package/src/paths/Cx/SocialMessaging/V1/Identities/index.ts +8 -10
- package/src/paths/Restapi/Account/CallQueues/index.ts +6 -5
- package/src/paths/Restapi/Account/Directory/Entries/index.ts +6 -2
- package/src/paths/Restapi/Account/Extension/AnsweringRule/index.ts +5 -5
- package/src/paths/Restapi/Account/Extension/MessageStoreTemplates/index.ts +115 -0
- package/src/paths/Restapi/Account/Extension/index.ts +5 -0
- package/src/paths/Restapi/Account/IvrPrompts/Content/index.ts +3 -0
- package/src/paths/Restapi/Account/MessageStoreTemplates/index.ts +112 -0
- package/src/paths/Restapi/Account/ServiceInfo/index.ts +1 -1
- package/src/paths/Restapi/Account/index.ts +5 -0
- package/src/paths/Restapi/Oauth/Authorize/index.ts +19 -4
- package/src/paths/Restapi/Oauth/Revoke/index.ts +6 -4
- package/src/paths/Restapi/Oauth/Token/index.ts +6 -3
- package/src/paths/Restapi/Oauth/index.ts +0 -10
- package/src/paths/Restapi/V2/Accounts/CostCenters/index.ts +28 -0
- package/src/paths/Restapi/V2/Accounts/Extensions/CallFlipNumbers/index.ts +67 -0
- package/src/paths/Restapi/V2/Accounts/Extensions/index.ts +5 -0
- package/src/paths/Restapi/V2/Accounts/PhoneNumbers/BulkAdd/index.ts +1 -1
- package/src/paths/Restapi/V2/Accounts/PhoneNumbers/Replace/index.ts +1 -1
- package/src/paths/Restapi/V2/Accounts/PhoneNumbers/index.ts +6 -6
- package/src/paths/Restapi/V2/Accounts/index.ts +5 -0
- package/src/paths/TeamMessaging/V1/Chats/Posts/index.ts +5 -1
- package/src/samples.md +1546 -1216
- package/lib/definitions/AnsweringRuleInfo.js.map +0 -1
- package/lib/definitions/CallQueues.js.map +0 -1
- package/lib/definitions/ContentAttachment.d.ts +0 -76
- package/lib/definitions/ContentAttachment.js.map +0 -1
- package/lib/definitions/CreateContentRequest.d.ts +0 -131
- package/lib/definitions/CreateContentRequest.js.map +0 -1
- package/lib/definitions/EmergencyLocationInfoRequest.d.ts +0 -38
- package/lib/definitions/EmergencyLocationInfoRequest.js +0 -3
- package/lib/definitions/EmergencyLocationInfoRequest.js.map +0 -1
- package/lib/definitions/GreetingResource.js.map +0 -1
- package/lib/definitions/IntrospectTokenRequest.d.ts +0 -13
- package/lib/definitions/IntrospectTokenRequest.js +0 -3
- package/lib/definitions/IntrospectTokenRequest.js.map +0 -1
- package/lib/definitions/MeetingRecordingsNavigationInfo.d.ts +0 -16
- package/lib/definitions/MeetingRecordingsNavigationInfo.js +0 -3
- package/lib/definitions/MeetingRecordingsNavigationInfo.js.map +0 -1
- package/lib/definitions/MeetingRecordingsNavigationInfoUri.d.ts +0 -10
- package/lib/definitions/MeetingRecordingsNavigationInfoUri.js +0 -3
- package/lib/definitions/MeetingRecordingsNavigationInfoUri.js.map +0 -1
- package/lib/definitions/MeetingRecordingsPagingInfo.d.ts +0 -33
- package/lib/definitions/MeetingRecordingsPagingInfo.js +0 -3
- package/lib/definitions/MeetingRecordingsPagingInfo.js.map +0 -1
- package/lib/definitions/MeetingsNavigationInfo.d.ts +0 -16
- package/lib/definitions/MeetingsNavigationInfo.js +0 -3
- package/lib/definitions/MeetingsNavigationInfo.js.map +0 -1
- package/lib/definitions/MeetingsNavigationInfoUri.d.ts +0 -7
- package/lib/definitions/MeetingsNavigationInfoUri.js +0 -3
- package/lib/definitions/MeetingsNavigationInfoUri.js.map +0 -1
- package/lib/definitions/MeetingsPagingInfo.d.ts +0 -27
- package/lib/definitions/MeetingsPagingInfo.js +0 -3
- package/lib/definitions/MeetingsPagingInfo.js.map +0 -1
- package/lib/definitions/PackageInfo.js.map +0 -1
- package/lib/definitions/PagingResource.d.ts +0 -32
- package/lib/definitions/PagingResource.js.map +0 -1
- package/lib/definitions/SessionInfoResponse.d.ts +0 -42
- package/lib/definitions/SessionInfoResponse.js +0 -3
- package/lib/definitions/SessionInfoResponse.js.map +0 -1
- package/lib/definitions/SiteResource.d.ts +0 -14
- package/lib/definitions/SiteResource.js.map +0 -1
- package/lib/definitions/SocMsgListContentsParameters.js +0 -3
- package/lib/definitions/SocMsgListContentsParameters.js.map +0 -1
- package/lib/definitions/SocMsgListIdentitiesParameters.js +0 -3
- package/lib/definitions/SocMsgListIdentitiesParameters.js.map +0 -1
- package/lib/definitions/TMCreateTaskRequestRecurrence.d.ts +0 -25
- package/lib/definitions/TMCreateTaskRequestRecurrence.js +0 -3
- package/lib/definitions/TMCreateTaskRequestRecurrence.js.map +0 -1
- package/lib/definitions/TMTaskInfoRecurrence.js +0 -3
- package/lib/definitions/TMTaskInfoRecurrence.js.map +0 -1
- package/lib/definitions/TMUpdateTaskRequestRecurrence.d.ts +0 -24
- package/lib/definitions/TMUpdateTaskRequestRecurrence.js +0 -3
- package/lib/definitions/TMUpdateTaskRequestRecurrence.js.map +0 -1
- package/lib/definitions/TokenIntrospectionResponse.d.ts +0 -47
- package/lib/definitions/TokenIntrospectionResponse.js +0 -3
- package/lib/definitions/TokenIntrospectionResponse.js.map +0 -1
- package/lib/paths/Restapi/Oauth/Introspect/index.d.ts +0 -24
- package/lib/paths/Restapi/Oauth/Introspect/index.js +0 -30
- package/lib/paths/Restapi/Oauth/Introspect/index.js.map +0 -1
- package/lib/paths/Restapi/Oauth/SessionInfo/index.d.ts +0 -17
- package/lib/paths/Restapi/Oauth/SessionInfo/index.js.map +0 -1
- package/src/definitions/ContentAttachment.ts +0 -85
- package/src/definitions/CreateContentRequest.ts +0 -147
- package/src/definitions/EmergencyLocationInfoRequest.ts +0 -47
- package/src/definitions/IntrospectTokenRequest.ts +0 -15
- package/src/definitions/MeetingRecordingsNavigationInfo.ts +0 -21
- package/src/definitions/MeetingRecordingsNavigationInfoUri.ts +0 -11
- package/src/definitions/MeetingRecordingsPagingInfo.ts +0 -39
- package/src/definitions/MeetingsNavigationInfo.ts +0 -21
- package/src/definitions/MeetingsNavigationInfoUri.ts +0 -8
- package/src/definitions/MeetingsPagingInfo.ts +0 -33
- package/src/definitions/PagingResource.ts +0 -37
- package/src/definitions/SessionInfoResponse.ts +0 -50
- package/src/definitions/SiteResource.ts +0 -16
- package/src/definitions/SocMsgListContentsParameters.ts +0 -70
- package/src/definitions/SocMsgListIdentitiesParameters.ts +0 -50
- package/src/definitions/TMCreateTaskRequestRecurrence.ts +0 -29
- package/src/definitions/TMUpdateTaskRequestRecurrence.ts +0 -28
- package/src/definitions/TokenIntrospectionResponse.ts +0 -56
- package/src/paths/Restapi/Oauth/Introspect/index.ts +0 -42
- package/src/paths/Restapi/Oauth/SessionInfo/index.ts +0 -27
|
@@ -7,7 +7,7 @@ interface TokenInfo {
|
|
|
7
7
|
access_token?: string;
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Access token TTL (time-to-live) in seconds
|
|
11
11
|
* Required
|
|
12
12
|
* Format: int32
|
|
13
13
|
* Example: 7199
|
|
@@ -15,68 +15,74 @@ interface TokenInfo {
|
|
|
15
15
|
expires_in?: number;
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* OAuth refresh token (
|
|
18
|
+
* OAuth refresh token (if issued)
|
|
19
19
|
* Example: U1BCMDFUMDRKV1MwMXxzLFL4ec6A0XMsUv9wLriecyxS_w
|
|
20
20
|
*/
|
|
21
21
|
refresh_token?: string;
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Refresh token TTL (time-to-live) in seconds
|
|
25
25
|
* Format: int32
|
|
26
26
|
* Example: 604799
|
|
27
27
|
*/
|
|
28
28
|
refresh_token_expires_in?: number;
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* The list of space separated application permissions (OAuth scopes)
|
|
32
32
|
* Required
|
|
33
33
|
* Example: AccountInfo CallLog ExtensionInfo Messages SMS
|
|
34
34
|
*/
|
|
35
35
|
scope?: string;
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
* Type of token. The only supported value is `bearer`. This value should be used when specifying access token in `Authorization` header of subsequent API requests
|
|
38
|
+
* Type of the token. The only supported value is `bearer`. This value should be used when specifying access token in `Authorization` header of subsequent API requests
|
|
39
39
|
* Required
|
|
40
40
|
* Example: bearer
|
|
41
41
|
*/
|
|
42
|
-
token_type?:
|
|
42
|
+
token_type?: 'bearer';
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
|
-
* Token owner (extension
|
|
45
|
+
* Token owner's identifier. Contains RingCentral user (extension) ID
|
|
46
46
|
* Example: 256440016
|
|
47
47
|
*/
|
|
48
48
|
owner_id?: string;
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* Client application instance identifier that matches the value provided by the client,
|
|
52
|
+
* or generated by the server if a client has not provided this value
|
|
52
53
|
* Example: 8zXq6oaLT7WvwWITlGiA1A
|
|
53
54
|
*/
|
|
54
55
|
endpoint_id?: string;
|
|
55
56
|
|
|
56
57
|
/**
|
|
57
|
-
*
|
|
58
|
+
* OpenID Connect ID token (if OpenID Connect flow was activated during authorization)
|
|
58
59
|
*/
|
|
59
60
|
id_token?: string;
|
|
60
61
|
|
|
61
62
|
/**
|
|
62
|
-
*
|
|
63
|
+
* Remaining time in seconds until session expiration due to absolute timeout.
|
|
64
|
+
* Returned only if absolute session timeout is enforced
|
|
65
|
+
* Format: int32
|
|
63
66
|
*/
|
|
64
|
-
|
|
67
|
+
session_expires_in?: number;
|
|
65
68
|
|
|
66
69
|
/**
|
|
67
|
-
* Absolute value of session expiration time
|
|
70
|
+
* Absolute value of session expiration time in ISO date formatted string.
|
|
71
|
+
* Returned only if absolute session timeout is enforced
|
|
68
72
|
* Format: date-time
|
|
73
|
+
* Example: 2023-04-01T12:00:01Z
|
|
69
74
|
*/
|
|
70
75
|
session_expiration_time?: string;
|
|
71
76
|
|
|
72
77
|
/**
|
|
73
|
-
*
|
|
74
|
-
*
|
|
78
|
+
* OAuth session ID
|
|
79
|
+
* Required
|
|
75
80
|
*/
|
|
76
|
-
|
|
81
|
+
session_id?: string;
|
|
77
82
|
|
|
78
83
|
/**
|
|
79
|
-
* Nominal session idle timeout in seconds
|
|
84
|
+
* Nominal value of session idle timeout in seconds.
|
|
85
|
+
* Returned only if idle session timeout is enforced
|
|
80
86
|
* Format: int32
|
|
81
87
|
*/
|
|
82
88
|
session_idle_timeout?: number;
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
interface UnconditionalForwardingInfo {
|
|
7
7
|
/**
|
|
8
8
|
* Phone number to which the call is forwarded. In addition to
|
|
9
|
-
* common
|
|
9
|
+
* common E.164 format, the following number patterns are supported: 11xxxxxxxxxxx,
|
|
10
10
|
* 444xxxxxxxxxxx, 616xxxxxxxxxxx, 1700yyyy; where xxxxxxxxxxx is a phone number in
|
|
11
|
-
*
|
|
11
|
+
* E.164 format (without '+' sign) and yyyy is an external short extension number.
|
|
12
12
|
* Max number of digits is 15
|
|
13
13
|
*/
|
|
14
14
|
phoneNumber?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type CallHandlingRuleInfo from './CallHandlingRuleInfo';
|
|
2
2
|
import type EnumeratedPagingModel from './EnumeratedPagingModel';
|
|
3
3
|
import type PageNavigationModel from './PageNavigationModel';
|
|
4
4
|
|
|
@@ -13,7 +13,7 @@ interface UserAnsweringRuleList {
|
|
|
13
13
|
/**
|
|
14
14
|
* List of answering rules
|
|
15
15
|
*/
|
|
16
|
-
records?:
|
|
16
|
+
records?: CallHandlingRuleInfo[];
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
*/
|
|
@@ -60,16 +60,16 @@ interface UserPhoneNumberInfo {
|
|
|
60
60
|
primary?: boolean;
|
|
61
61
|
|
|
62
62
|
/**
|
|
63
|
-
* Status of a phone number. If the value is
|
|
63
|
+
* Status of a phone number. If the value is `Normal`, the phone
|
|
64
64
|
* number is ready to be used. Otherwise, it is an external number not yet
|
|
65
65
|
* ported to RingCentral
|
|
66
66
|
*/
|
|
67
|
-
status?: 'Normal' | 'Pending' | 'PortedIn' | 'Temporary';
|
|
67
|
+
status?: 'Normal' | 'Pending' | 'PortedIn' | 'Temporary' | 'Unknown';
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
|
-
*
|
|
70
|
+
* Type of a phone number
|
|
71
71
|
*/
|
|
72
|
-
type?: 'VoiceFax' | '
|
|
72
|
+
type?: 'VoiceFax' | 'VoiceOnly' | 'FaxOnly';
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
75
|
* Extension subtype, if applicable. For any unsupported subtypes the 'Unknown' value will be returned
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* For NotActivated extensions only. Welcome email settings
|
|
2
|
+
* For `NotActivated` extensions only. Welcome email settings
|
|
3
3
|
*
|
|
4
4
|
*/
|
|
5
5
|
interface UserTransitionInfo {
|
|
@@ -11,7 +11,7 @@ interface UserTransitionInfo {
|
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Specifies if a welcome/activation email is sent to the new users (within extension status changing from
|
|
14
|
-
*
|
|
14
|
+
* `Unassigned` to `NotActivated/Disabled`)
|
|
15
15
|
*/
|
|
16
16
|
sendWelcomeEmail?: boolean;
|
|
17
17
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
1
|
+
import type CreateSocialMessagingContentRequest from '../../../../../definitions/CreateSocialMessagingContentRequest';
|
|
2
|
+
import type ListSocialMessagingContentsParameters from '../../../../../definitions/ListSocialMessagingContentsParameters';
|
|
3
3
|
import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types';
|
|
4
4
|
|
|
5
5
|
class Index {
|
|
@@ -19,15 +19,14 @@ class Index {
|
|
|
19
19
|
return `${this._parent.path()}/contents`;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Returns a list of social messaging contents ordered by creation date. The default order is descending.
|
|
23
23
|
*
|
|
24
|
-
* The account context of this request is determined by the RC Account
|
|
25
|
-
* in the Authorization header.
|
|
24
|
+
* The account context of this request is determined by the RC Account ID associated with
|
|
25
|
+
* the access token provided in the Authorization header.
|
|
26
26
|
*
|
|
27
|
-
* The query parameters provided
|
|
27
|
+
* The query parameters provided in request will be considered an AND operation to filter the list.
|
|
28
28
|
*
|
|
29
|
-
* A query parameter not specified or
|
|
30
|
-
* filtering the list.
|
|
29
|
+
* A query parameter which is not specified or provided with the null value will be ignored.
|
|
31
30
|
*
|
|
32
31
|
* HTTP Method: get
|
|
33
32
|
* Endpoint: /cx/social-messaging/v1/contents
|
|
@@ -35,7 +34,7 @@ class Index {
|
|
|
35
34
|
* App Permission: SocialMessaging
|
|
36
35
|
*/
|
|
37
36
|
public async list(
|
|
38
|
-
queryParams?:
|
|
37
|
+
queryParams?: ListSocialMessagingContentsParameters,
|
|
39
38
|
restRequestConfig?: RestRequestConfig,
|
|
40
39
|
): Promise<string> {
|
|
41
40
|
const r = await this.rc.get<string>(this.path(false), queryParams, restRequestConfig);
|
|
@@ -43,26 +42,26 @@ class Index {
|
|
|
43
42
|
}
|
|
44
43
|
|
|
45
44
|
/**
|
|
46
|
-
* Creates new content for use in discussions.
|
|
45
|
+
* Creates the new social messaging content for use in discussions.
|
|
47
46
|
*
|
|
48
|
-
* This request is used to reply to already
|
|
47
|
+
* This request is used to reply to an already posted content or to initiate a discussion. If authorized, the
|
|
49
48
|
* authenticated user will be used as the content author.
|
|
50
49
|
*
|
|
51
50
|
* Content will be created and pushed asynchronously to the channel. When the content is successfully pushed to
|
|
52
|
-
* the channel, the Content.Exported event will be reported.
|
|
51
|
+
* the channel, the `Content.Exported` event will be reported.
|
|
53
52
|
*
|
|
54
|
-
* The account context of this request is determined by the RC Account
|
|
53
|
+
* The account context of this request is determined by the RC Account ID associated with the access token provided
|
|
55
54
|
* in the Authorization header.
|
|
56
55
|
*
|
|
57
56
|
* Replying to customer content is usually possible unless the channel or conversation is read only. Composing
|
|
58
57
|
* content, on the contrary, depends on the channel itself.
|
|
59
58
|
*
|
|
60
|
-
*
|
|
59
|
+
* - The channel may not support it and be purely reactive like Instagram, Messenger, etc.
|
|
61
60
|
*
|
|
62
|
-
*
|
|
61
|
+
* - Some channels (usually public accounts, like Twitter or Facebook pages) allow content publishing
|
|
63
62
|
* without targeting specific individuals.
|
|
64
63
|
*
|
|
65
|
-
*
|
|
64
|
+
* - Some channels (usually non-public media) require specific targeting (phone number for SMS, email address
|
|
66
65
|
* for email, customer_id, etc.) to be able to create content. This is channel-specific and detailed under the
|
|
67
66
|
* generic parameters.
|
|
68
67
|
*
|
|
@@ -72,16 +71,20 @@ class Index {
|
|
|
72
71
|
* App Permission: SocialMessaging
|
|
73
72
|
*/
|
|
74
73
|
public async post(
|
|
75
|
-
|
|
74
|
+
createSocialMessagingContentRequest: CreateSocialMessagingContentRequest,
|
|
76
75
|
restRequestConfig?: RestRequestConfig,
|
|
77
76
|
): Promise<string> {
|
|
78
|
-
const r = await this.rc.post<string>(
|
|
77
|
+
const r = await this.rc.post<string>(
|
|
78
|
+
this.path(false),
|
|
79
|
+
createSocialMessagingContentRequest,
|
|
80
|
+
undefined,
|
|
81
|
+
restRequestConfig,
|
|
82
|
+
);
|
|
79
83
|
return r.data;
|
|
80
84
|
}
|
|
81
85
|
|
|
82
86
|
/**
|
|
83
|
-
*
|
|
84
|
-
*
|
|
87
|
+
* Returns the social messaging content by ID specified in path.
|
|
85
88
|
* HTTP Method: get
|
|
86
89
|
* Endpoint: /cx/social-messaging/v1/contents/{contentId}
|
|
87
90
|
* Rate Limit Group: Light
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type ListSocialMessagingIdentitiesParameters from '../../../../../definitions/ListSocialMessagingIdentitiesParameters';
|
|
2
2
|
import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types';
|
|
3
3
|
|
|
4
4
|
class Index {
|
|
@@ -18,15 +18,14 @@ class Index {
|
|
|
18
18
|
return `${this._parent.path()}/identities`;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Returns a list of identities ordered by creation date. The default order is descending.
|
|
22
22
|
*
|
|
23
|
-
* The account context of this request is determined by the RC Account
|
|
24
|
-
* in the Authorization header.
|
|
23
|
+
* The account context of this request is determined by the RC Account ID associated with
|
|
24
|
+
* the access token provided in the Authorization header.
|
|
25
25
|
*
|
|
26
|
-
* The query parameters provided
|
|
26
|
+
* The query parameters provided will be considered an AND operation to filter the list.
|
|
27
27
|
*
|
|
28
|
-
* A query parameter not specified or
|
|
29
|
-
* filtering the list.
|
|
28
|
+
* A query parameter which is not specified or provided with the null value will be ignored.
|
|
30
29
|
*
|
|
31
30
|
* HTTP Method: get
|
|
32
31
|
* Endpoint: /cx/social-messaging/v1/identities
|
|
@@ -34,7 +33,7 @@ class Index {
|
|
|
34
33
|
* App Permission: SocialMessaging
|
|
35
34
|
*/
|
|
36
35
|
public async list(
|
|
37
|
-
queryParams?:
|
|
36
|
+
queryParams?: ListSocialMessagingIdentitiesParameters,
|
|
38
37
|
restRequestConfig?: RestRequestConfig,
|
|
39
38
|
): Promise<string> {
|
|
40
39
|
const r = await this.rc.get<string>(this.path(false), queryParams, restRequestConfig);
|
|
@@ -42,8 +41,7 @@ class Index {
|
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
/**
|
|
45
|
-
*
|
|
46
|
-
*
|
|
44
|
+
* Returns an identity by ID specified in path.
|
|
47
45
|
* HTTP Method: get
|
|
48
46
|
* Endpoint: /cx/social-messaging/v1/identities/{identityId}
|
|
49
47
|
* Rate Limit Group: Light
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import BulkAssign from './BulkAssign';
|
|
2
2
|
import Presence from './Presence';
|
|
3
3
|
import Members from './Members';
|
|
4
|
+
import type CallQueueDetailsForUpdate from '../../../../definitions/CallQueueDetailsForUpdate';
|
|
4
5
|
import type CallQueueDetails from '../../../../definitions/CallQueueDetails';
|
|
5
|
-
import type
|
|
6
|
+
import type CallQueueList from '../../../../definitions/CallQueueList';
|
|
6
7
|
import type ListCallQueuesParameters from '../../../../definitions/ListCallQueuesParameters';
|
|
7
8
|
import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types';
|
|
8
9
|
|
|
@@ -33,8 +34,8 @@ class Index {
|
|
|
33
34
|
public async list(
|
|
34
35
|
queryParams?: ListCallQueuesParameters,
|
|
35
36
|
restRequestConfig?: RestRequestConfig,
|
|
36
|
-
): Promise<
|
|
37
|
-
const r = await this.rc.get<
|
|
37
|
+
): Promise<CallQueueList> {
|
|
38
|
+
const r = await this.rc.get<CallQueueList>(this.path(false), queryParams, restRequestConfig);
|
|
38
39
|
return r.data;
|
|
39
40
|
}
|
|
40
41
|
|
|
@@ -64,13 +65,13 @@ class Index {
|
|
|
64
65
|
* User Permission: EditUserInfo
|
|
65
66
|
*/
|
|
66
67
|
public async put(
|
|
67
|
-
|
|
68
|
+
callQueueDetailsForUpdate: CallQueueDetailsForUpdate,
|
|
68
69
|
restRequestConfig?: RestRequestConfig,
|
|
69
70
|
): Promise<CallQueueDetails> {
|
|
70
71
|
if (this.groupId === null) {
|
|
71
72
|
throw new Error('groupId must be specified.');
|
|
72
73
|
}
|
|
73
|
-
const r = await this.rc.put<CallQueueDetails>(this.path(),
|
|
74
|
+
const r = await this.rc.put<CallQueueDetails>(this.path(), callQueueDetailsForUpdate, undefined, restRequestConfig);
|
|
74
75
|
return r.data;
|
|
75
76
|
}
|
|
76
77
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import Search from './Search';
|
|
2
2
|
import type ContactResource from '../../../../../definitions/ContactResource';
|
|
3
|
+
import type ReadDirectoryEntryParameters from '../../../../../definitions/ReadDirectoryEntryParameters';
|
|
3
4
|
import type DirectoryResource from '../../../../../definitions/DirectoryResource';
|
|
4
5
|
import type ListDirectoryEntriesParameters from '../../../../../definitions/ListDirectoryEntriesParameters';
|
|
5
6
|
import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types';
|
|
@@ -42,11 +43,14 @@ class Index {
|
|
|
42
43
|
* Rate Limit Group: Medium
|
|
43
44
|
* App Permission: ReadAccounts
|
|
44
45
|
*/
|
|
45
|
-
public async get(
|
|
46
|
+
public async get(
|
|
47
|
+
queryParams?: ReadDirectoryEntryParameters,
|
|
48
|
+
restRequestConfig?: RestRequestConfig,
|
|
49
|
+
): Promise<ContactResource> {
|
|
46
50
|
if (this.entryId === null) {
|
|
47
51
|
throw new Error('entryId must be specified.');
|
|
48
52
|
}
|
|
49
|
-
const r = await this.rc.get<ContactResource>(this.path(),
|
|
53
|
+
const r = await this.rc.get<ContactResource>(this.path(), queryParams, restRequestConfig);
|
|
50
54
|
return r.data;
|
|
51
55
|
}
|
|
52
56
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type UpdateAnsweringRuleRequest from '../../../../../definitions/UpdateAnsweringRuleRequest';
|
|
2
|
-
import type
|
|
2
|
+
import type CallHandlingRuleInfo from '../../../../../definitions/CallHandlingRuleInfo';
|
|
3
3
|
import type ReadAnsweringRuleParameters from '../../../../../definitions/ReadAnsweringRuleParameters';
|
|
4
4
|
import type CustomAnsweringRuleInfo from '../../../../../definitions/CustomAnsweringRuleInfo';
|
|
5
5
|
import type CreateAnsweringRuleRequest from '../../../../../definitions/CreateAnsweringRuleRequest';
|
|
@@ -71,11 +71,11 @@ class Index {
|
|
|
71
71
|
public async get(
|
|
72
72
|
queryParams?: ReadAnsweringRuleParameters,
|
|
73
73
|
restRequestConfig?: RestRequestConfig,
|
|
74
|
-
): Promise<
|
|
74
|
+
): Promise<CallHandlingRuleInfo> {
|
|
75
75
|
if (this.ruleId === null) {
|
|
76
76
|
throw new Error('ruleId must be specified.');
|
|
77
77
|
}
|
|
78
|
-
const r = await this.rc.get<
|
|
78
|
+
const r = await this.rc.get<CallHandlingRuleInfo>(this.path(), queryParams, restRequestConfig);
|
|
79
79
|
return r.data;
|
|
80
80
|
}
|
|
81
81
|
|
|
@@ -90,11 +90,11 @@ class Index {
|
|
|
90
90
|
public async put(
|
|
91
91
|
updateAnsweringRuleRequest: UpdateAnsweringRuleRequest,
|
|
92
92
|
restRequestConfig?: RestRequestConfig,
|
|
93
|
-
): Promise<
|
|
93
|
+
): Promise<CallHandlingRuleInfo> {
|
|
94
94
|
if (this.ruleId === null) {
|
|
95
95
|
throw new Error('ruleId must be specified.');
|
|
96
96
|
}
|
|
97
|
-
const r = await this.rc.put<
|
|
97
|
+
const r = await this.rc.put<CallHandlingRuleInfo>(
|
|
98
98
|
this.path(),
|
|
99
99
|
updateAnsweringRuleRequest,
|
|
100
100
|
undefined,
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import type MessageTemplateUpdateRequest from '../../../../../definitions/MessageTemplateUpdateRequest';
|
|
2
|
+
import type MessageTemplateResponse from '../../../../../definitions/MessageTemplateResponse';
|
|
3
|
+
import type MessageTemplateRequest from '../../../../../definitions/MessageTemplateRequest';
|
|
4
|
+
import type MessageTemplatesListResponse from '../../../../../definitions/MessageTemplatesListResponse';
|
|
5
|
+
import type ListUserMessageTemplatesParameters from '../../../../../definitions/ListUserMessageTemplatesParameters';
|
|
6
|
+
import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types';
|
|
7
|
+
|
|
8
|
+
class Index {
|
|
9
|
+
public rc: RingCentralInterface;
|
|
10
|
+
public _parent: ParentInterface;
|
|
11
|
+
public templateId: string | null;
|
|
12
|
+
|
|
13
|
+
public constructor(_parent: ParentInterface, templateId: string | null = null) {
|
|
14
|
+
this._parent = _parent;
|
|
15
|
+
this.rc = _parent.rc;
|
|
16
|
+
this.templateId = templateId;
|
|
17
|
+
}
|
|
18
|
+
public path(withParameter = true): string {
|
|
19
|
+
if (withParameter && this.templateId !== null) {
|
|
20
|
+
return `${this._parent.path()}/message-store-templates/${this.templateId}`;
|
|
21
|
+
}
|
|
22
|
+
return `${this._parent.path()}/message-store-templates`;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Returns a list of user's personal text message templates.
|
|
26
|
+
* HTTP Method: get
|
|
27
|
+
* Endpoint: /restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/message-store-templates
|
|
28
|
+
* Rate Limit Group: Light
|
|
29
|
+
* App Permission: ReadAccounts
|
|
30
|
+
*/
|
|
31
|
+
public async list(
|
|
32
|
+
queryParams?: ListUserMessageTemplatesParameters,
|
|
33
|
+
restRequestConfig?: RestRequestConfig,
|
|
34
|
+
): Promise<MessageTemplatesListResponse> {
|
|
35
|
+
const r = await this.rc.get<MessageTemplatesListResponse>(this.path(false), queryParams, restRequestConfig);
|
|
36
|
+
return r.data;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Creates a user personal text message template.
|
|
41
|
+
* Maximum number of personal templates is 25 per user.
|
|
42
|
+
* Max length of the `body` property is 1000 symbols (2-byte UTF-16 encoded).
|
|
43
|
+
*
|
|
44
|
+
* HTTP Method: post
|
|
45
|
+
* Endpoint: /restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/message-store-templates
|
|
46
|
+
* Rate Limit Group: Medium
|
|
47
|
+
* App Permission: EditExtensions
|
|
48
|
+
*/
|
|
49
|
+
public async post(
|
|
50
|
+
messageTemplateRequest: MessageTemplateRequest,
|
|
51
|
+
restRequestConfig?: RestRequestConfig,
|
|
52
|
+
): Promise<MessageTemplateResponse> {
|
|
53
|
+
const r = await this.rc.post<MessageTemplateResponse>(
|
|
54
|
+
this.path(false),
|
|
55
|
+
messageTemplateRequest,
|
|
56
|
+
undefined,
|
|
57
|
+
restRequestConfig,
|
|
58
|
+
);
|
|
59
|
+
return r.data;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Returns a user personal text message template by ID.
|
|
64
|
+
* HTTP Method: get
|
|
65
|
+
* Endpoint: /restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/message-store-templates/{templateId}
|
|
66
|
+
* Rate Limit Group: Light
|
|
67
|
+
* App Permission: ReadAccounts
|
|
68
|
+
*/
|
|
69
|
+
public async get(restRequestConfig?: RestRequestConfig): Promise<MessageTemplateResponse> {
|
|
70
|
+
if (this.templateId === null) {
|
|
71
|
+
throw new Error('templateId must be specified.');
|
|
72
|
+
}
|
|
73
|
+
const r = await this.rc.get<MessageTemplateResponse>(this.path(), undefined, restRequestConfig);
|
|
74
|
+
return r.data;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Updates a user personal text message template.
|
|
79
|
+
* HTTP Method: put
|
|
80
|
+
* Endpoint: /restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/message-store-templates/{templateId}
|
|
81
|
+
* Rate Limit Group: Medium
|
|
82
|
+
* App Permission: EditExtensions
|
|
83
|
+
*/
|
|
84
|
+
public async put(
|
|
85
|
+
messageTemplateUpdateRequest: MessageTemplateUpdateRequest,
|
|
86
|
+
restRequestConfig?: RestRequestConfig,
|
|
87
|
+
): Promise<MessageTemplateResponse> {
|
|
88
|
+
if (this.templateId === null) {
|
|
89
|
+
throw new Error('templateId must be specified.');
|
|
90
|
+
}
|
|
91
|
+
const r = await this.rc.put<MessageTemplateResponse>(
|
|
92
|
+
this.path(),
|
|
93
|
+
messageTemplateUpdateRequest,
|
|
94
|
+
undefined,
|
|
95
|
+
restRequestConfig,
|
|
96
|
+
);
|
|
97
|
+
return r.data;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Deletes a user personal text message template.
|
|
102
|
+
* HTTP Method: delete
|
|
103
|
+
* Endpoint: /restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/message-store-templates/{templateId}
|
|
104
|
+
* Rate Limit Group: Medium
|
|
105
|
+
* App Permission: EditExtensions
|
|
106
|
+
*/
|
|
107
|
+
public async delete(restRequestConfig?: RestRequestConfig): Promise<string> {
|
|
108
|
+
if (this.templateId === null) {
|
|
109
|
+
throw new Error('templateId must be specified.');
|
|
110
|
+
}
|
|
111
|
+
const r = await this.rc.delete<string>(this.path(), {}, undefined, restRequestConfig);
|
|
112
|
+
return r.data;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
export default Index;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import MessageStoreTemplates from './MessageStoreTemplates';
|
|
1
2
|
import NotificationSettings from './NotificationSettings';
|
|
2
3
|
import CallQueuePresence from './CallQueuePresence';
|
|
3
4
|
import VideoConfiguration from './VideoConfiguration';
|
|
@@ -287,5 +288,9 @@ class Index {
|
|
|
287
288
|
public notificationSettings(): NotificationSettings {
|
|
288
289
|
return new NotificationSettings(this);
|
|
289
290
|
}
|
|
291
|
+
|
|
292
|
+
public messageStoreTemplates(templateId: string | null = null): MessageStoreTemplates {
|
|
293
|
+
return new MessageStoreTemplates(this, templateId);
|
|
294
|
+
}
|
|
290
295
|
}
|
|
291
296
|
export default Index;
|
|
@@ -14,6 +14,9 @@ class Index {
|
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* Returns media content of an IVR prompt by ID.
|
|
17
|
+
*
|
|
18
|
+
* **This API must be called via media API entry point, e.g. https://media.ringcentral.com**
|
|
19
|
+
*
|
|
17
20
|
* HTTP Method: get
|
|
18
21
|
* Endpoint: /restapi/{apiVersion}/account/{accountId}/ivr-prompts/{promptId}/content
|
|
19
22
|
* Rate Limit Group: Heavy
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import type MessageTemplateUpdateRequest from '../../../../definitions/MessageTemplateUpdateRequest';
|
|
2
|
+
import type MessageTemplateResponse from '../../../../definitions/MessageTemplateResponse';
|
|
3
|
+
import type MessageTemplateRequest from '../../../../definitions/MessageTemplateRequest';
|
|
4
|
+
import type MessageTemplatesListResponse from '../../../../definitions/MessageTemplatesListResponse';
|
|
5
|
+
import type ListCompanyMessageTemplatesParameters from '../../../../definitions/ListCompanyMessageTemplatesParameters';
|
|
6
|
+
import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types';
|
|
7
|
+
|
|
8
|
+
class Index {
|
|
9
|
+
public rc: RingCentralInterface;
|
|
10
|
+
public _parent: ParentInterface;
|
|
11
|
+
public templateId: string | null;
|
|
12
|
+
|
|
13
|
+
public constructor(_parent: ParentInterface, templateId: string | null = null) {
|
|
14
|
+
this._parent = _parent;
|
|
15
|
+
this.rc = _parent.rc;
|
|
16
|
+
this.templateId = templateId;
|
|
17
|
+
}
|
|
18
|
+
public path(withParameter = true): string {
|
|
19
|
+
if (withParameter && this.templateId !== null) {
|
|
20
|
+
return `${this._parent.path()}/message-store-templates/${this.templateId}`;
|
|
21
|
+
}
|
|
22
|
+
return `${this._parent.path()}/message-store-templates`;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Returns a list of company text message templates.
|
|
26
|
+
* HTTP Method: get
|
|
27
|
+
* Endpoint: /restapi/{apiVersion}/account/{accountId}/message-store-templates
|
|
28
|
+
* Rate Limit Group: Light
|
|
29
|
+
* App Permission: ReadAccounts
|
|
30
|
+
*/
|
|
31
|
+
public async list(
|
|
32
|
+
queryParams?: ListCompanyMessageTemplatesParameters,
|
|
33
|
+
restRequestConfig?: RestRequestConfig,
|
|
34
|
+
): Promise<MessageTemplatesListResponse> {
|
|
35
|
+
const r = await this.rc.get<MessageTemplatesListResponse>(this.path(false), queryParams, restRequestConfig);
|
|
36
|
+
return r.data;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Creates a new text message template on a company level. Maximum number of company templates is 50.
|
|
41
|
+
* HTTP Method: post
|
|
42
|
+
* Endpoint: /restapi/{apiVersion}/account/{accountId}/message-store-templates
|
|
43
|
+
* Rate Limit Group: Medium
|
|
44
|
+
* App Permission: EditAccounts
|
|
45
|
+
*/
|
|
46
|
+
public async post(
|
|
47
|
+
messageTemplateRequest: MessageTemplateRequest,
|
|
48
|
+
restRequestConfig?: RestRequestConfig,
|
|
49
|
+
): Promise<MessageTemplateResponse> {
|
|
50
|
+
const r = await this.rc.post<MessageTemplateResponse>(
|
|
51
|
+
this.path(false),
|
|
52
|
+
messageTemplateRequest,
|
|
53
|
+
undefined,
|
|
54
|
+
restRequestConfig,
|
|
55
|
+
);
|
|
56
|
+
return r.data;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Returns a company text message template by ID.
|
|
61
|
+
* HTTP Method: get
|
|
62
|
+
* Endpoint: /restapi/{apiVersion}/account/{accountId}/message-store-templates/{templateId}
|
|
63
|
+
* Rate Limit Group: Light
|
|
64
|
+
* App Permission: ReadAccounts
|
|
65
|
+
*/
|
|
66
|
+
public async get(restRequestConfig?: RestRequestConfig): Promise<MessageTemplateResponse> {
|
|
67
|
+
if (this.templateId === null) {
|
|
68
|
+
throw new Error('templateId must be specified.');
|
|
69
|
+
}
|
|
70
|
+
const r = await this.rc.get<MessageTemplateResponse>(this.path(), undefined, restRequestConfig);
|
|
71
|
+
return r.data;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Updates a company text message template.
|
|
76
|
+
* HTTP Method: put
|
|
77
|
+
* Endpoint: /restapi/{apiVersion}/account/{accountId}/message-store-templates/{templateId}
|
|
78
|
+
* Rate Limit Group: Medium
|
|
79
|
+
* App Permission: EditAccounts
|
|
80
|
+
*/
|
|
81
|
+
public async put(
|
|
82
|
+
messageTemplateUpdateRequest: MessageTemplateUpdateRequest,
|
|
83
|
+
restRequestConfig?: RestRequestConfig,
|
|
84
|
+
): Promise<MessageTemplateResponse> {
|
|
85
|
+
if (this.templateId === null) {
|
|
86
|
+
throw new Error('templateId must be specified.');
|
|
87
|
+
}
|
|
88
|
+
const r = await this.rc.put<MessageTemplateResponse>(
|
|
89
|
+
this.path(),
|
|
90
|
+
messageTemplateUpdateRequest,
|
|
91
|
+
undefined,
|
|
92
|
+
restRequestConfig,
|
|
93
|
+
);
|
|
94
|
+
return r.data;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Deletes a company text message template.
|
|
99
|
+
* HTTP Method: delete
|
|
100
|
+
* Endpoint: /restapi/{apiVersion}/account/{accountId}/message-store-templates/{templateId}
|
|
101
|
+
* Rate Limit Group: Medium
|
|
102
|
+
* App Permission: EditAccounts
|
|
103
|
+
*/
|
|
104
|
+
public async delete(restRequestConfig?: RestRequestConfig): Promise<string> {
|
|
105
|
+
if (this.templateId === null) {
|
|
106
|
+
throw new Error('templateId must be specified.');
|
|
107
|
+
}
|
|
108
|
+
const r = await this.rc.delete<string>(this.path(), {}, undefined, restRequestConfig);
|
|
109
|
+
return r.data;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
export default Index;
|