UNPKG

node-ovh-ts

Version:

OVH API wrapper library for TypeScript

1 lines 283 kB
{"version":3,"sources":["../src/handlers/Telephony.ts"],"sourcesContent":["/* WARNING: This file is auto-generated . Do not edit manually. */\n\nimport { TelephonyFax } from '../models/TelephonyFax';\nimport { TelephonyFaxConsumptionWayTypeEnum } from '../models/TelephonyFaxConsumptionWayTypeEnum';\nimport { TelephonyVoicefaxRoutingEnum } from '../models/TelephonyVoicefaxRoutingEnum';\nimport { TelephonyOvhPabxRecord } from '../models/TelephonyOvhPabxRecord';\nimport { TelephonyTemporaryLogsLink } from '../models/TelephonyTemporaryLogsLink';\nimport { TelephonyAbbreviatedNumber } from '../models/TelephonyAbbreviatedNumber';\nimport { TelephonyOvhPabxDialplanExtensionConditionTime } from '../models/TelephonyOvhPabxDialplanExtensionConditionTime';\nimport { TelephonyAccessoryOffer } from '../models/TelephonyAccessoryOffer';\nimport { TelephonyOvhPabxWhisperingModeEnum } from '../models/TelephonyOvhPabxWhisperingModeEnum';\nimport { TelephonyRedirect } from '../models/TelephonyRedirect';\nimport { TelephonyHistoryTollfreeConsumption } from '../models/TelephonyHistoryTollfreeConsumption';\nimport { TelephonyFaxProperties } from '../models/TelephonyFaxProperties';\nimport { TelephonyEasyPabx } from '../models/TelephonyEasyPabx';\nimport { TelephonyVoicemailMessageFolderGreetingEnum } from '../models/TelephonyVoicemailMessageFolderGreetingEnum';\nimport { TelephonyBillDocument } from '../models/TelephonyBillDocument';\nimport { TelephonyTimestampAndValue } from '../models/TelephonyTimestampAndValue';\nimport { TelephonyEasyHuntingTimeConditions } from '../models/TelephonyEasyHuntingTimeConditions';\nimport { TelephonyFaxCampaign } from '../models/TelephonyFaxCampaign';\nimport { TelephonyLineStatisticsTypeEnum } from '../models/TelephonyLineStatisticsTypeEnum';\nimport { TelephonyVoiceConsumptionPlanTypeEnum } from '../models/TelephonyVoiceConsumptionPlanTypeEnum';\nimport { TelephonyPhonebookMaster } from '../models/TelephonyPhonebookMaster';\nimport { TelephonyOvhPabxHuntingAgentQueue } from '../models/TelephonyOvhPabxHuntingAgentQueue';\nimport { TelephonyDefaultSipDomains } from '../models/TelephonyDefaultSipDomains';\nimport { TelephonyHistoryConsumption } from '../models/TelephonyHistoryConsumption';\nimport { TelephonyOvhPabxHuntingQueueRecordDisablingLanguageEnum } from '../models/TelephonyOvhPabxHuntingQueueRecordDisablingLanguageEnum';\nimport { OrderPrice } from '../models/OrderPrice';\nimport { TelephonyFaxScreenListTypeEnum } from '../models/TelephonyFaxScreenListTypeEnum';\nimport { TelephonyVoiceConsumptionDestinationTypeEnum } from '../models/TelephonyVoiceConsumptionDestinationTypeEnum';\nimport { TelephonyAbbreviatedNumberGroup } from '../models/TelephonyAbbreviatedNumberGroup';\nimport { TelephonyOvhPabxMenuEntry } from '../models/TelephonyOvhPabxMenuEntry';\nimport { TelephonyVoicemailNumbers } from '../models/TelephonyVoicemailNumbers';\nimport { TelephonySimultaneousChannelsDetails } from '../models/TelephonySimultaneousChannelsDetails';\nimport { TelephonySpecificNumber } from '../models/TelephonySpecificNumber';\nimport { TelephonyDirectoryWayType } from '../models/TelephonyDirectoryWayType';\nimport { TelephonyTrafficExtract } from '../models/TelephonyTrafficExtract';\nimport { TelephonyEasyHunting } from '../models/TelephonyEasyHunting';\nimport { TelephonyOvhPabxQueueActionEnum } from '../models/TelephonyOvhPabxQueueActionEnum';\nimport { TelephonyOvhPabxDialplan } from '../models/TelephonyOvhPabxDialplan';\nimport { TelephonyProcedure } from '../models/TelephonyProcedure';\nimport { TelephonyPreviousVoiceConsumption } from '../models/TelephonyPreviousVoiceConsumption';\nimport { TelephonyVoicemailMessages } from '../models/TelephonyVoicemailMessages';\nimport { TelephonyHardwareOffer } from '../models/TelephonyHardwareOffer';\nimport { TelephonyTelephonyService } from '../models/TelephonyTelephonyService';\nimport { TelephonyBillingAccount } from '../models/TelephonyBillingAccount';\nimport { TelephonyTimeConditionsDayEnum } from '../models/TelephonyTimeConditionsDayEnum';\nimport { TelephonyOvhPabxDialplanNumberPresentationEnum } from '../models/TelephonyOvhPabxDialplanNumberPresentationEnum';\nimport { TelephonyConferenceParticipants } from '../models/TelephonyConferenceParticipants';\nimport { TelephonyCarrierSipClusterInfo } from '../models/TelephonyCarrierSipClusterInfo';\nimport { TelephonyOvhPabxHuntingQueueStrategyEnum } from '../models/TelephonyOvhPabxHuntingQueueStrategyEnum';\nimport { TelephonyTrunkSimultaneousPacksRepartition } from '../models/TelephonyTrunkSimultaneousPacksRepartition';\nimport { TelephonyRateCodeInformation } from '../models/TelephonyRateCodeInformation';\nimport { TelephonyNumberTypeEnum } from '../models/TelephonyNumberTypeEnum';\nimport { TelephonyLineOptions } from '../models/TelephonyLineOptions';\nimport { TelephonyVoiceConsumption } from '../models/TelephonyVoiceConsumption';\nimport { TelephonyVxmlProperties } from '../models/TelephonyVxmlProperties';\nimport { TelephonyClick2CallUser } from '../models/TelephonyClick2CallUser';\nimport { TelephonyVxml } from '../models/TelephonyVxml';\nimport { TelephonyOutplanNotificationBlockEnum } from '../models/TelephonyOutplanNotificationBlockEnum';\nimport { TelephonyServiceNumberCountryEnum } from '../models/TelephonyServiceNumberCountryEnum';\nimport { TelephonyRmaPublicTypeEnum } from '../models/TelephonyRmaPublicTypeEnum';\nimport { TelephonyCallsGenerated } from '../models/TelephonyCallsGenerated';\nimport { TelephonyDirectoryHeadingPJ } from '../models/TelephonyDirectoryHeadingPJ';\nimport { TelephonySchedulerEvent } from '../models/TelephonySchedulerEvent';\nimport { TelephonyVoiceConsumptionWayTypeEnum } from '../models/TelephonyVoiceConsumptionWayTypeEnum';\nimport { TelephonyRmaChangeTypeEnum } from '../models/TelephonyRmaChangeTypeEnum';\nimport { TelephonyConferenceRoomsStatistics } from '../models/TelephonyConferenceRoomsStatistics';\nimport { TelephonyNumberDetailedZone } from '../models/TelephonyNumberDetailedZone';\nimport { TelephonyConference } from '../models/TelephonyConference';\nimport { TelephonyOvhPabxDialplanExtensionRuleActionEnum } from '../models/TelephonyOvhPabxDialplanExtensionRuleActionEnum';\nimport { TelephonyFaxCampaignSendTypeEnum } from '../models/TelephonyFaxCampaignSendTypeEnum';\nimport { TelephonyCarrierSip } from '../models/TelephonyCarrierSip';\nimport { TelephonyMiniPabxHunting } from '../models/TelephonyMiniPabxHunting';\nimport { TelephonySchedulerCategoryEnum } from '../models/TelephonySchedulerCategoryEnum';\nimport { TelephonyVoicemailGreetings } from '../models/TelephonyVoicemailGreetings';\nimport { TelephonyTelephonyGenericService } from '../models/TelephonyTelephonyGenericService';\nimport { TelephonyCarrierSipCustomerEndpoint } from '../models/TelephonyCarrierSipCustomerEndpoint';\nimport { TelephonyConferenceRoom } from '../models/TelephonyConferenceRoom';\nimport { TelephonyOvhPabxDialplanExtension } from '../models/TelephonyOvhPabxDialplanExtension';\nimport { TelephonyRepaymentConsumption } from '../models/TelephonyRepaymentConsumption';\nimport { TelephonyTimeConditionOptions } from '../models/TelephonyTimeConditionOptions';\nimport { TelephonyOvhPabxTts } from '../models/TelephonyOvhPabxTts';\nimport { TelephonySipDomainProductTypeEnum } from '../models/TelephonySipDomainProductTypeEnum';\nimport { TelephonyOfferTask } from '../models/TelephonyOfferTask';\nimport { TelephonyOvhPabxHuntingQueue } from '../models/TelephonyOvhPabxHuntingQueue';\nimport { TelephonyEasyMiniPabxHuntingAgent } from '../models/TelephonyEasyMiniPabxHuntingAgent';\nimport { TelephonyOldPhone } from '../models/TelephonyOldPhone';\nimport { TelephonyConferenceWebAccessTypeEnum } from '../models/TelephonyConferenceWebAccessTypeEnum';\nimport { TelephonyDatetimeAndIpvalue } from '../models/TelephonyDatetimeAndIpvalue';\nimport { TelephonyLinePhoneAssociable } from '../models/TelephonyLinePhoneAssociable';\nimport { TelephonyOfferChange } from '../models/TelephonyOfferChange';\nimport { TelephonyOvhPabxHunting } from '../models/TelephonyOvhPabxHunting';\nimport { TelephonyLinePhone } from '../models/TelephonyLinePhone';\nimport { TelephonyDiagnosticReport } from '../models/TelephonyDiagnosticReport';\nimport { TelephonyLineBlockingMode } from '../models/TelephonyLineBlockingMode';\nimport { TelephonyVoicemailProperties } from '../models/TelephonyVoicemailProperties';\nimport { TelephonyOvhPabxDialplanExtensionConditionScreenListTypeEnum } from '../models/TelephonyOvhPabxDialplanExtensionConditionScreenListTypeEnum';\nimport { TelephonyTask } from '../models/TelephonyTask';\nimport { TelephonyTrunk } from '../models/TelephonyTrunk';\nimport { TelephonyAntihackActionEnum } from '../models/TelephonyAntihackActionEnum';\nimport { TelephonyDocument } from '../models/TelephonyDocument';\nimport { TelephonyLineOffer } from '../models/TelephonyLineOffer';\nimport { TelephonyConferenceWebAccess } from '../models/TelephonyConferenceWebAccess';\nimport { TelephonyTaskStatusEnum } from '../models/TelephonyTaskStatusEnum';\nimport { ServicesService } from '../models/ServicesService';\nimport { TelephonyOvhPabxDialplanExtensionRule } from '../models/TelephonyOvhPabxDialplanExtensionRule';\nimport { TelephonyRsva } from '../models/TelephonyRsva';\nimport { TelephonyRma } from '../models/TelephonyRma';\nimport { TelephonyOvhPabxIvrMenuEntryActionEnum } from '../models/TelephonyOvhPabxIvrMenuEntryActionEnum';\nimport { TelephonyScreenListNatureEnum } from '../models/TelephonyScreenListNatureEnum';\nimport { TelephonyVoicemailMessageFolderDirectoryEnum } from '../models/TelephonyVoicemailMessageFolderDirectoryEnum';\nimport { TelephonyTimeConditionsPolicyEnum } from '../models/TelephonyTimeConditionsPolicyEnum';\nimport { TelephonyBannerAccess } from '../models/TelephonyBannerAccess';\nimport { TelephonyPcsFile } from '../models/TelephonyPcsFile';\nimport { TelephonyDetailedRateCodeInformation } from '../models/TelephonyDetailedRateCodeInformation';\nimport { TelephonyPhoneCredentials } from '../models/TelephonyPhoneCredentials';\nimport { TelephonyServiceVoicemailAudioFormatEnum } from '../models/TelephonyServiceVoicemailAudioFormatEnum';\nimport { TelephonyHistoryRepaymentConsumption } from '../models/TelephonyHistoryRepaymentConsumption';\nimport { TelephonyMiniPabx } from '../models/TelephonyMiniPabx';\nimport { TelephonyTokenExpirationEnum } from '../models/TelephonyTokenExpirationEnum';\nimport { TelephonyOvhPabxSound } from '../models/TelephonyOvhPabxSound';\nimport { TelephonyOvhPabxHuntingQueueLiveStatistics } from '../models/TelephonyOvhPabxHuntingQueueLiveStatistics';\nimport { TelephonyCarrierSipDetails } from '../models/TelephonyCarrierSipDetails';\nimport { TelephonyOvhPabxDialplanExtensionConditionScreenList } from '../models/TelephonyOvhPabxDialplanExtensionConditionScreenList';\nimport { TelephonyPhonebookContact } from '../models/TelephonyPhonebookContact';\nimport { TelephonyDirectoryInfo } from '../models/TelephonyDirectoryInfo';\nimport { TelephonyTrunkExternalDisplayedNumberValidation } from '../models/TelephonyTrunkExternalDisplayedNumberValidation';\nimport { TelephonyOvhPabxCustomStatus } from '../models/TelephonyOvhPabxCustomStatus';\nimport { TelephonyScreen } from '../models/TelephonyScreen';\nimport { TelephonyOvhPabxHuntingQueueLiveCalls } from '../models/TelephonyOvhPabxHuntingQueueLiveCalls';\nimport { TelephonyNumber } from '../models/TelephonyNumber';\nimport { TelephonyScheduler } from '../models/TelephonyScheduler';\nimport { TelephonyNumberCountryEnum } from '../models/TelephonyNumberCountryEnum';\nimport { TelephonyEasyPabxHunting } from '../models/TelephonyEasyPabxHunting';\nimport { TelephonyOfferTaskTypeEnum } from '../models/TelephonyOfferTaskTypeEnum';\nimport { TelephonyGenericScreen } from '../models/TelephonyGenericScreen';\nimport { TelephonyCity } from '../models/TelephonyCity';\nimport { TelephonyConferenceHistory } from '../models/TelephonyConferenceHistory';\nimport { TelephonyOvhPabxHuntingAgentLiveStatus } from '../models/TelephonyOvhPabxHuntingAgentLiveStatus';\nimport { TelephonyLine } from '../models/TelephonyLine';\nimport { TelephonyOvhPabxHuntingQueueRecordDisablingDigitEnum } from '../models/TelephonyOvhPabxHuntingQueueRecordDisablingDigitEnum';\nimport { TelephonyPortability } from '../models/TelephonyPortability';\nimport { TelephonyLineOffersAndContracts } from '../models/TelephonyLineOffersAndContracts';\nimport { TelephonyScreenListTypeEnum } from '../models/TelephonyScreenListTypeEnum';\nimport { TelephonyConferenceInformations } from '../models/TelephonyConferenceInformations';\nimport { TelephonyEasyHuntingScreenListsConditionsSettings } from '../models/TelephonyEasyHuntingScreenListsConditionsSettings';\nimport { TelephonyOvhPabxMenu } from '../models/TelephonyOvhPabxMenu';\nimport { TelephonyStatisticsTimeframeEnum } from '../models/TelephonyStatisticsTimeframeEnum';\nimport { TelephonyOvhPabxHuntingAgentStatusEnum } from '../models/TelephonyOvhPabxHuntingAgentStatusEnum';\nimport { TelephonySound } from '../models/TelephonySound';\nimport { TelephonyRegistrationInformations } from '../models/TelephonyRegistrationInformations';\nimport { TelephonyConsumptionThreshold } from '../models/TelephonyConsumptionThreshold';\nimport { SpareTelephonyTelephonySpare } from '../models/SpareTelephonyTelephonySpare';\nimport { TelephonyFaxCampaignRecipientsTypeEnum } from '../models/TelephonyFaxCampaignRecipientsTypeEnum';\nimport { TelephonyResetPhoneInfo } from '../models/TelephonyResetPhoneInfo';\nimport { TelephonyTrunkExternalDisplayedNumber } from '../models/TelephonyTrunkExternalDisplayedNumber';\nimport { TelephonyTones } from '../models/TelephonyTones';\nimport { TelephonyTypeEnum } from '../models/TelephonyTypeEnum';\nimport { TelephonyEntrepriseNumberInformationsTask } from '../models/TelephonyEntrepriseNumberInformationsTask';\nimport { TelephonyFaxConsumption } from '../models/TelephonyFaxConsumption';\nimport { TelephonyTimeCondition } from '../models/TelephonyTimeCondition';\nimport { TelephonyPortabilityDocument } from '../models/TelephonyPortabilityDocument';\nimport { TelephonyOvhPabxHuntingAgent } from '../models/TelephonyOvhPabxHuntingAgent';\nimport { TelephonyFaxQualityEnum } from '../models/TelephonyFaxQualityEnum';\nimport { TelephonyCallsGeneratorDialplanEnum } from '../models/TelephonyCallsGeneratorDialplanEnum';\nimport { TelephonyConferenceProperties } from '../models/TelephonyConferenceProperties';\nimport { TelephonyScreenList } from '../models/TelephonyScreenList';\nimport { TelephonyDiagnosticReportIndexEnum } from '../models/TelephonyDiagnosticReportIndexEnum';\nimport { TelephonyContactsExportFormatsEnum } from '../models/TelephonyContactsExportFormatsEnum';\nimport { TelephonyPhonebook } from '../models/TelephonyPhonebook';\nimport { TelephonyCallDiagnostics } from '../models/TelephonyCallDiagnostics';\nimport { TelephonyDdi } from '../models/TelephonyDdi';\nimport { TelephonyOfferTaskActionEnum } from '../models/TelephonyOfferTaskActionEnum';\nimport { TelephonyEasyHuntingScreenListsConditions } from '../models/TelephonyEasyHuntingScreenListsConditions';\nimport { TelephonyFaxScreen } from '../models/TelephonyFaxScreen';\nimport { TelephonyRmaReturn } from '../models/TelephonyRmaReturn';\nimport { TelephonyTonesTypeEnum } from '../models/TelephonyTonesTypeEnum';\nimport { TelephonyOvhPabxDialplanExtensionConditionTimeWeekDayEnum } from '../models/TelephonyOvhPabxDialplanExtensionConditionTimeWeekDayEnum';\nimport { TelephonyOvhPabx } from '../models/TelephonyOvhPabx';\nimport { TelephonyTerminationReasonEnum } from '../models/TelephonyTerminationReasonEnum';\nimport { TelephonyPhone } from '../models/TelephonyPhone';\nimport { TelephonyTelephonySearchService } from '../models/TelephonyTelephonySearchService';\nimport { TelephonyFaxCampaignDetail } from '../models/TelephonyFaxCampaignDetail';\nimport { TelephonyFunctionKey } from '../models/TelephonyFunctionKey';\nimport { TelephonyVoicemail } from '../models/TelephonyVoicemail';\nimport { TelephonyPortabilityFixErrorPossibleParameters } from '../models/TelephonyPortabilityFixErrorPossibleParameters';\nimport { TelephonyResellerPanelStatus } from '../models/TelephonyResellerPanelStatus';\nimport { TelephonyPortabilityStep } from '../models/TelephonyPortabilityStep';\nimport { TelephonyEventToken } from '../models/TelephonyEventToken';\nimport { TelephonyEasyHuntingTimeConditionsSettings } from '../models/TelephonyEasyHuntingTimeConditionsSettings';\nimport { TelephonyOvhPabxTtsVoiceEnum } from '../models/TelephonyOvhPabxTtsVoiceEnum';\nimport OVHBase from '../ovh';\n\nclass TelephonyHandler {\n ovh: OVHBase;\n\n constructor(ovh: OVHBase) {\n this.ovh = ovh;\n }\n\n /** List available services */\n list = (): Promise<string[]> => {\n return this.ovh.request('GET', '/telephony');\n };\n\n /** Get all available accessories */\n getAccessories = (): Promise<TelephonyAccessoryOffer[]> => {\n return this.ovh.request('GET', '/telephony/accessories');\n };\n\n /** List available services */\n listAliases = (): Promise<string[]> => {\n return this.ovh.request('GET', '/telephony/aliases');\n };\n\n /** Get this object properties */\n getAliasesByServiceName = (serviceName: string): Promise<TelephonyTelephonyGenericService> => {\n return this.ovh.request('GET', `/telephony/aliases/${serviceName}`);\n };\n\n /** Launch a contact change procedure */\n launchAliasesChangeContactByServiceName = (\n serviceName: string,\n body: { contactAdmin?: string; contactBilling?: string; contactTech?: string }\n ): Promise<number[]> => {\n return this.ovh.request('POST', `/telephony/aliases/${serviceName}/changeContact`, body);\n };\n\n /** Get this object properties */\n getAliasesServiceInfosByServiceName = (serviceName: string): Promise<ServicesService> => {\n return this.ovh.request('GET', `/telephony/aliases/${serviceName}/serviceInfos`);\n };\n\n /** Alter this object properties */\n updateAliasesServiceInfosByServiceName = (\n serviceName: string,\n body: ServicesService\n ): Promise<void> => {\n return this.ovh.request('PUT', `/telephony/aliases/${serviceName}/serviceInfos`, body);\n };\n\n /** Get all available SIP domains by country */\n getAvailableDefaultSipDomains = (): Promise<TelephonyDefaultSipDomains[]> => {\n return this.ovh.request('GET', '/telephony/availableDefaultSipDomains');\n };\n\n /** Get current order ids */\n getCurrentOrderIds = (): Promise<number[]> => {\n return this.ovh.request('GET', '/telephony/currentOrderIds');\n };\n\n /** Get all zip codes compatible for a number */\n getDirectoriesAvailableZipCodes = (): Promise<string[]> => {\n return this.ovh.request('GET', '/telephony/directories/availableZipCodes');\n };\n\n /** Get city informations from a zip code */\n getDirectoriesCities = (): Promise<TelephonyCity[]> => {\n return this.ovh.request('GET', '/telephony/directories/cities');\n };\n\n /** Get all available fax offer compatible */\n getFaxOffers = (): Promise<TelephonyLineOffer[]> => {\n return this.ovh.request('GET', '/telephony/fax/offers');\n };\n\n /** Get all available phone brands compatible with lines */\n getLineOfferPhones = (): Promise<TelephonyLinePhone[]> => {\n return this.ovh.request('GET', '/telephony/line/offer/phones');\n };\n\n /** Get all available line offer compatible */\n getLineOffers = (): Promise<TelephonyLineOffer[]> => {\n return this.ovh.request('GET', '/telephony/line/offers');\n };\n\n /** List available services */\n listLines = (): Promise<string[]> => {\n return this.ovh.request('GET', '/telephony/lines');\n };\n\n /** Get this object properties */\n getLinesByServiceName = (serviceName: string): Promise<TelephonyTelephonyGenericService> => {\n return this.ovh.request('GET', `/telephony/lines/${serviceName}`);\n };\n\n /** Launch a contact change procedure */\n launchLinesChangeContactByServiceName = (\n serviceName: string,\n body: { contactAdmin?: string; contactBilling?: string; contactTech?: string }\n ): Promise<number[]> => {\n return this.ovh.request('POST', `/telephony/lines/${serviceName}/changeContact`, body);\n };\n\n /** Get this object properties */\n getLinesServiceInfosByServiceName = (serviceName: string): Promise<ServicesService> => {\n return this.ovh.request('GET', `/telephony/lines/${serviceName}/serviceInfos`);\n };\n\n /** Alter this object properties */\n updateLinesServiceInfosByServiceName = (\n serviceName: string,\n body: ServicesService\n ): Promise<void> => {\n return this.ovh.request('PUT', `/telephony/lines/${serviceName}/serviceInfos`, body);\n };\n\n /** Get all available geographic zone with some details, from a country */\n getNumberDetailedZones = (): Promise<TelephonyNumberDetailedZone[]> => {\n return this.ovh.request('GET', '/telephony/number/detailedZones');\n };\n\n /** Get all available special range from a country */\n getNumberRanges = (): Promise<string[]> => {\n return this.ovh.request('GET', '/telephony/number/ranges');\n };\n\n /** Get all available specific number from a country */\n getNumberSpecificNumbers = (): Promise<TelephonySpecificNumber[]> => {\n return this.ovh.request('GET', '/telephony/number/specificNumbers');\n };\n\n /** Get all available geographic zone from a country */\n getNumberZones = (): Promise<string[]> => {\n return this.ovh.request('GET', '/telephony/number/zones');\n };\n\n /** Procedures linked to your nichandle */\n getProcedure = (): Promise<number[]> => {\n return this.ovh.request('GET', '/telephony/procedure');\n };\n\n /** Create a telephony procedure */\n createProcedure = (body: {\n bic?: string;\n iban?: string;\n ownerAddress?: string;\n ownerName?: string;\n paymentMeanID?: number;\n }): Promise<TelephonyProcedure> => {\n return this.ovh.request('POST', '/telephony/procedure', body);\n };\n\n /** Tells whether the procedure is necessary to order telephony products or not */\n getProcedureRequired = (): Promise<boolean> => {\n return this.ovh.request('GET', '/telephony/procedure/required');\n };\n\n /** Get this object properties */\n getProcedureById = (id: number): Promise<TelephonyProcedure> => {\n return this.ovh.request('GET', `/telephony/procedure/${id}`);\n };\n\n /** Cancel the given procedure. */\n postProcedureCancelById = (id: number): Promise<void> => {\n return this.ovh.request('POST', `/telephony/procedure/${id}/cancel`);\n };\n\n /** Generate a new password for the reseller panel */\n postResellerPanelGeneratePassword = (): Promise<void> => {\n return this.ovh.request('POST', '/telephony/resellerPanel/generatePassword');\n };\n\n /** Status of customer reseller panel */\n getResellerPanelStatus = (): Promise<TelephonyResellerPanelStatus> => {\n return this.ovh.request('GET', '/telephony/resellerPanel/status');\n };\n\n /** Search a service with its domain, to get its billing account and type */\n getSearchServices = (): Promise<TelephonyTelephonySearchService[]> => {\n return this.ovh.request('GET', '/telephony/searchServices');\n };\n\n /** Get all available SIP domains by country */\n postSetDefaultSipDomain = (body: {\n country: TelephonyServiceNumberCountryEnum;\n domain: string;\n type: TelephonySipDomainProductTypeEnum;\n }): Promise<void> => {\n return this.ovh.request('POST', '/telephony/setDefaultSipDomain', body);\n };\n\n /** Sounds attached to this telephony account */\n getSounds = (): Promise<number[]> => {\n return this.ovh.request('GET', '/telephony/sounds');\n };\n\n /** Create a new sound */\n createSounds = (body: { description?: string; filename: string }): Promise<TelephonySound> => {\n return this.ovh.request('POST', '/telephony/sounds', body);\n };\n\n /** Delete the sound */\n deleteSoundsById = (id: number): Promise<void> => {\n return this.ovh.request('DELETE', `/telephony/sounds/${id}`);\n };\n\n /** Get this object properties */\n getSoundsById = (id: number): Promise<TelephonySound> => {\n return this.ovh.request('GET', `/telephony/sounds/${id}`);\n };\n\n /** Alter this object properties */\n updateSoundsById = (id: number, body: TelephonySound): Promise<void> => {\n return this.ovh.request('PUT', `/telephony/sounds/${id}`, body);\n };\n\n /** List available services */\n listSpare = (): Promise<string[]> => {\n return this.ovh.request('GET', '/telephony/spare');\n };\n\n /** Get all available spare brands */\n getSpareBrands = (): Promise<string[]> => {\n return this.ovh.request('GET', '/telephony/spare/brands');\n };\n\n /** Delete the spare as if it was not belonging to OVH anymore */\n deleteSpareBySpare = (spare: string): Promise<void> => {\n return this.ovh.request('DELETE', `/telephony/spare/${spare}`);\n };\n\n /** Get this object properties */\n getSpareBySpare = (spare: string): Promise<SpareTelephonyTelephonySpare> => {\n return this.ovh.request('GET', `/telephony/spare/${spare}`);\n };\n\n /** Return the list of phone domains compatible to be replaced */\n getSpareCompatibleReplacementBySpare = (spare: string): Promise<string[]> => {\n return this.ovh.request('GET', `/telephony/spare/${spare}/compatibleReplacement`);\n };\n\n /** Replace the phone by its spare. The broken phone became a spare if it was bought. An RMA is created if the broken phone is under securitydeposit. */\n postSpareReplaceBySpare = (\n spare: string,\n body: { domain: string; ip: string }\n ): Promise<void> => {\n return this.ovh.request('POST', `/telephony/spare/${spare}/replace`, body);\n };\n\n /** Get this object properties */\n getSpareServiceInfosBySpare = (spare: string): Promise<ServicesService> => {\n return this.ovh.request('GET', `/telephony/spare/${spare}/serviceInfos`);\n };\n\n /** Alter this object properties */\n updateSpareServiceInfosBySpare = (spare: string, body: ServicesService): Promise<void> => {\n return this.ovh.request('PUT', `/telephony/spare/${spare}/serviceInfos`, body);\n };\n\n /** List available services */\n listTrunks = (): Promise<string[]> => {\n return this.ovh.request('GET', '/telephony/trunks');\n };\n\n /** Get this object properties */\n getTrunksByServiceName = (serviceName: string): Promise<TelephonyTelephonyGenericService> => {\n return this.ovh.request('GET', `/telephony/trunks/${serviceName}`);\n };\n\n /** Launch a contact change procedure */\n launchTrunksChangeContactByServiceName = (\n serviceName: string,\n body: { contactAdmin?: string; contactBilling?: string; contactTech?: string }\n ): Promise<number[]> => {\n return this.ovh.request('POST', `/telephony/trunks/${serviceName}/changeContact`, body);\n };\n\n /** Get this object properties */\n getTrunksServiceInfosByServiceName = (serviceName: string): Promise<ServicesService> => {\n return this.ovh.request('GET', `/telephony/trunks/${serviceName}/serviceInfos`);\n };\n\n /** Alter this object properties */\n updateTrunksServiceInfosByServiceName = (\n serviceName: string,\n body: ServicesService\n ): Promise<void> => {\n return this.ovh.request('PUT', `/telephony/trunks/${serviceName}/serviceInfos`, body);\n };\n\n /** Ask for a billing account termination. */\n deleteByBillingAccount = (billingAccount: string): Promise<void> => {\n return this.ovh.request('DELETE', `/telephony/${billingAccount}`);\n };\n\n /** Get this object properties */\n getByBillingAccount = (billingAccount: string): Promise<TelephonyBillingAccount> => {\n return this.ovh.request('GET', `/telephony/${billingAccount}`);\n };\n\n /** Alter this object properties */\n updateByBillingAccount = (\n billingAccount: string,\n body: TelephonyBillingAccount\n ): Promise<void> => {\n return this.ovh.request('PUT', `/telephony/${billingAccount}`, body);\n };\n\n /** Abbreviated numbers for the billing account */\n getAbbreviatedNumberByBillingAccount = (billingAccount: string): Promise<number[]> => {\n return this.ovh.request('GET', `/telephony/${billingAccount}/abbreviatedNumber`);\n };\n\n /** Create a new abbreviated number for the billing account */\n createAbbreviatedNumberByBillingAccount = (\n billingAccount: string,\n body: { abbreviatedNumber: number; destinationNumber: string; name: string; surname: string }\n ): Promise<TelephonyAbbreviatedNumberGroup> => {\n return this.ovh.request('POST', `/telephony/${billingAccount}/abbreviatedNumber`, body);\n };\n\n /** Delete the given abbreviated number */\n deleteAbbreviatedNumberByBillingAccountAndAbbreviatedNumber = (\n abbreviatedNumber: number,\n billingAccount: string\n ): Promise<void> => {\n return this.ovh.request(\n 'DELETE',\n `/telephony/${billingAccount}/abbreviatedNumber/${abbreviatedNumber}`\n );\n };\n\n /** Get this object properties */\n getAbbreviatedNumberByBillingAccountAndAbbreviatedNumber = (\n abbreviatedNumber: number,\n billingAccount: string\n ): Promise<TelephonyAbbreviatedNumberGroup> => {\n return this.ovh.request(\n 'GET',\n `/telephony/${billingAccount}/abbreviatedNumber/${abbreviatedNumber}`\n );\n };\n\n /** Alter this object properties */\n updateAbbreviatedNumberByBillingAccountAndAbbreviatedNumber = (\n abbreviatedNumber: number,\n billingAccount: string,\n body: TelephonyAbbreviatedNumberGroup\n ): Promise<void> => {\n return this.ovh.request(\n 'PUT',\n `/telephony/${billingAccount}/abbreviatedNumber/${abbreviatedNumber}`,\n body\n );\n };\n\n /** Get the allowed creditThreshold for this billing account */\n getAllowedCreditThresholdByBillingAccount = (billingAccount: string): Promise<OrderPrice[]> => {\n return this.ovh.request('GET', `/telephony/${billingAccount}/allowedCreditThreshold`);\n };\n\n /** Give all amounts availables for your billing account */\n getAmountSecurityDepositByBillingAccount = (billingAccount: string): Promise<OrderPrice[]> => {\n return this.ovh.request('GET', `/telephony/${billingAccount}/amountSecurityDeposit`);\n };\n\n /** Current billing account site (billing account features are overwritten by the site) */\n getBillingAccountSiteByBillingAccount = (billingAccount: string): Promise<string> => {\n return this.ovh.request('GET', `/telephony/${billingAccount}/billingAccountSite`);\n };\n\n /** Used to overwrite current billing account feature by the billing account site */\n postBillingAccountSiteByBillingAccount = (\n billingAccount: string,\n body: { billingAccountSite: string }\n ): Promise<void> => {\n return this.ovh.request('POST', `/telephony/${billingAccount}/billingAccountSite`, body);\n };\n\n /** Check if security deposit transfer is possible between two billing accounts */\n checkCanTransferSecurityDepositByBillingAccount = (\n billingAccount: string,\n body: { billingAccountDestination: string }\n ): Promise<boolean> => {\n return this.ovh.request(\n 'POST',\n `/telephony/${billingAccount}/canTransferSecurityDeposit`,\n body\n );\n };\n\n /** Cancel the billing account termination */\n postCancelTerminationByBillingAccount = (billingAccount: string): Promise<void> => {\n return this.ovh.request('POST', `/telephony/${billingAccount}/cancelTermination`);\n };\n\n /** Carrier SIP trunks associated with this billing account */\n getCarrierSipByBillingAccount = (billingAccount: string): Promise<string[]> => {\n return this.ovh.request('GET', `/telephony/${billingAccount}/carrierSip`);\n };\n\n /** Get this object properties */\n getCarrierSipByBillingAccountAndServiceName = (\n billingAccount: string,\n serviceName: string\n ): Promise<TelephonyCarrierSip> => {\n return this.ovh.request('GET', `/telephony/${billingAccount}/carrierSip/${serviceName}`);\n };\n\n /** Get the Call Detail Records of your Carrier SIP service */\n getCarrierSipCdrsByBillingAccountAndServiceName = (\n billingAccount: string,\n serviceName: string\n ): Promise<TelephonyDocument> => {\n return this.ovh.request('GET', `/telephony/${billingAccount}/carrierSip/${serviceName}/cdrs`);\n };\n\n /** Get details about the carrier sip cluster of your stack */\n getCarrierSipClusterDetailsByBillingAccountAndServiceName = (\n billingAccount: string,\n serviceName: string\n ): Promise<TelephonyCarrierSipClusterInfo> => {\n return this.ovh.request(\n 'GET',\n `/telephony/${billingAccount}/carrierSip/${serviceName}/clusterDetails`\n );\n };\n\n /** List of your remote sip endpoints (ips, ports, protocol) of your carrier sip trunk service */\n listCarrierSipEndpointsByBillingAccountAndServiceName = (\n billingAccount: string,\n serviceName: string\n ): Promise<number[]> => {\n return this.ovh.request(\n 'GET',\n `/telephony/${billingAccount}/carrierSip/${serviceName}/endpoints`\n );\n };\n\n /** Get this object properties */\n getCarrierSipEndpointsByBillingAccountAndServiceNameAndId = (\n billingAccount: string,\n id: number,\n serviceName: string\n ): Promise<TelephonyCarrierSipCustomerEndpoint> => {\n return this.ovh.request(\n 'GET',\n `/telephony/${billingAccount}/carrierSip/${serviceName}/endpoints/${id}`\n );\n };\n\n /** Get this object properties */\n getCarrierSipSettingsByBillingAccountAndServiceName = (\n billingAccount: string,\n serviceName: string\n ): Promise<TelephonyCarrierSipDetails> => {\n return this.ovh.request(\n 'GET',\n `/telephony/${billingAccount}/carrierSip/${serviceName}/settings`\n );\n };\n\n /** Alter this object properties */\n updateCarrierSipSettingsByBillingAccountAndServiceName = (\n billingAccount: string,\n serviceName: string,\n body: TelephonyCarrierSipDetails\n ): Promise<void> => {\n return this.ovh.request(\n 'PUT',\n `/telephony/${billingAccount}/carrierSip/${serviceName}/settings`,\n body\n );\n };\n\n /** Launch a contact change procedure */\n launchChangeContactByBillingAccount = (\n billingAccount: string,\n body: { contactAdmin?: string; contactBilling?: string; contactTech?: string }\n ): Promise<number[]> => {\n return this.ovh.request('POST', `/telephony/${billingAccount}/changeContact`, body);\n };\n\n /** Conferences associated with this billing account */\n getConferenceByBillingAccount = (billingAccount: string): Promise<string[]> => {\n return this.ovh.request('GET', `/telephony/${billingAccount}/conference`);\n };\n\n /** Get this object properties */\n getConferenceByBillingAccountAndServiceName = (\n billingAccount: string,\n serviceName: string\n ): Promise<TelephonyConference> => {\n return this.ovh.request('GET', `/telephony/${billingAccount}/conference/${serviceName}`);\n };\n\n /** Change the sound played at the beginning of the conference */\n updateConferenceAnnounceUploadByBillingAccountAndServiceName = (\n billingAccount: string,\n serviceName: string,\n body: { documentId: string }\n ): Promise<TelephonyTask> => {\n return this.ovh.request(\n 'POST',\n `/telephony/${billingAccount}/conference/${serviceName}/announceUpload`,\n body\n );\n };\n\n /** List your past conferences for this number */\n listConferenceHistoriesByBillingAccountAndServiceName = (\n billingAccount: string,\n serviceName: string\n ): Promise<number[]> => {\n return this.ovh.request(\n 'GET',\n `/telephony/${billingAccount}/conference/${serviceName}/histories`\n );\n };\n\n /** Get this object properties */\n getConferenceHistoriesByBillingAccountAndServiceNameAndId = (\n billingAccount: string,\n id: number,\n serviceName: string\n ): Promise<TelephonyConferenceHistory> => {\n return this.ovh.request(\n 'GET',\n `/telephony/${billingAccount}/conference/${serviceName}/histories/${id}`\n );\n };\n\n /** Get realtime conference informations */\n getConferenceInformationsByBillingAccountAndServiceName = (\n billingAccount: string,\n serviceName: string\n ): Promise<TelephonyConferenceInformations> => {\n return this.ovh.request(\n 'GET',\n `/telephony/${billingAccount}/conference/${serviceName}/informations`\n );\n };\n\n /** Lock the conference room */\n postConferenceLockByBillingAccountAndServiceName = (\n billingAccount: string,\n serviceName: string\n ): Promise<TelephonyTask> => {\n return this.ovh.request('POST', `/telephony/${billingAccount}/conference/${serviceName}/lock`);\n };\n\n /** Current participants of the associate conference */\n getConferenceParticipantsByBillingAccountAndServiceName = (\n billingAccount: string,\n serviceName: string\n ): Promise<number[]> => {\n return this.ovh.request(\n 'GET',\n `/telephony/${billingAccount}/conference/${serviceName}/participants`\n );\n };\n\n /** Get this object properties */\n getConferenceParticipantsByBillingAccountAndServiceNameAndId = (\n billingAccount: string,\n id: number,\n serviceName: string\n ): Promise<TelephonyConferenceParticipants> => {\n return this.ovh.request(\n 'GET',\n `/telephony/${billingAccount}/conference/${serviceName}/participants/${id}`\n );\n };\n\n /** Make a participant deaf in your conference room */\n postConferenceParticipantsDeafByBillingAccountAndServiceNameAndId = (\n billingAccount: string,\n id: number,\n serviceName: string\n ): Promise<TelephonyTask> => {\n return this.ovh.request(\n 'POST',\n `/telephony/${billingAccount}/conference/${serviceName}/participants/${id}/deaf`\n );\n };\n\n /** Change a participant level of audio transmission */\n updateConferenceParticipantsEnergyByBillingAccountAndServiceNameAndId = (\n billingAccount: string,\n id: number,\n serviceName: string,\n body: { value: number }\n ): Promise<TelephonyTask> => {\n return this.ovh.request(\n 'POST',\n `/telephony/${billingAccount}/conference/${serviceName}/participants/${id}/energy`,\n body\n );\n };\n\n /** Eject a participant from your conference room */\n postConferenceParticipantsKickByBillingAccountAndServiceNameAndId = (\n billingAccount: string,\n id: number,\n serviceName: string\n ): Promise<TelephonyTask> => {\n return this.ovh.request(\n 'POST',\n `/telephony/${billingAccount}/conference/${serviceName}/participants/${id}/kick`\n );\n };\n\n /** Mute a participant in your conference room */\n postConferenceParticipantsMuteByBillingAccountAndServiceNameAndId = (\n billingAccount: string,\n id: number,\n serviceName: string\n ): Promise<TelephonyTask> => {\n return this.ovh.request(\n 'POST',\n `/telephony/${billingAccount}/conference/${serviceName}/participants/${id}/mute`\n );\n };\n\n /** Make a participant undeaf your conference room */\n postConferenceParticipantsUndeafByBillingAccountAndServiceNameAndId = (\n billingAccount: string,\n id: number,\n serviceName: string\n ): Promise<TelephonyTask> => {\n return this.ovh.request(\n 'POST',\n `/telephony/${billingAccount}/conference/${serviceName}/participants/${id}/undeaf`\n );\n };\n\n /** Unmute a participant in your conference room */\n postConferenceParticipantsUnmuteByBillingAccountAndServiceNameAndId = (\n billingAccount: string,\n id: number,\n serviceName: string\n ): Promise<TelephonyTask> => {\n return this.ovh.request(\n 'POST',\n `/telephony/${billingAccount}/conference/${serviceName}/participants/${id}/unmute`\n );\n };\n\n /** List your conferences rooms for this number */\n listConferenceRoomsByBillingAccountAndServiceName = (\n billingAccount: string,\n serviceName: string\n ): Promise<number[]> => {\n return this.ovh.request('GET', `/telephony/${billingAccount}/conference/${serviceName}/rooms`);\n };\n\n /** Create a new conference room on your conference service */\n createConferenceRoomsByBillingAccountAndServiceName = (\n billingAccount: string,\n serviceName: string,\n body: { roomNumber?: number }\n ): Promise<TelephonyConferenceRoom> => {\n return this.ovh.request(\n 'POST',\n `/telephony/${billingAccount}/conference/${serviceName}/rooms`,\n body\n );\n };\n\n /** Get this object properties */\n getConferenceRoomsByBillingAccountAndServiceNameAndRoomNumber = (\n billingAccount: string,\n roomNumber: number,\n serviceName: string\n ): Promise<TelephonyConferenceRoom> => {\n return this.ovh.request(\n 'GET',\n `/telephony/${billingAccount}/conference/${serviceName}/rooms/${roomNumber}`\n );\n };\n\n /** Alter this object properties */\n updateConferenceRoomsByBillingAccountAndServiceNameAndRoomNumber = (\n billingAccount: string,\n roomNumber: number,\n serviceName: string,\n body: TelephonyConferenceRoom\n ): Promise<void> => {\n return this.ovh.request(\n 'PUT',\n `/telephony/${billingAccount}/conference/${serviceName}/rooms/${roomNumber}`,\n body\n );\n };\n\n /** List your past conferences for this room */\n listConferenceRoomsHistoriesByBillingAccountAndServiceNameAndRoomNumber = (\n billingAccount: string,\n roomNumber: number,\n serviceName: string\n ): Promise<number[]> => {\n return this.ovh.request(\n 'GET',\n `/telephony/${billingAccount}/conference/${serviceName}/rooms/${roomNumber}/histories`\n );\n };\n\n /** Get this object properties */\n getConferenceRoomsHistoriesByBillingAccountAndServiceNameAndRoomNumberAndId = (\n billingAccount: string,\n id: number,\n roomNumber: number,\n serviceName: string\n ): Promise<TelephonyConferenceHistory> => {\n return this.ovh.request(\n 'GET',\n `/telephony/${billingAccount}/conference/${serviceName}/rooms/${roomNumber}/histories/${id}`\n );\n };\n\n /** Lock the conference room */\n postConferenceRoomsLockByBillingAccountAndServiceNameAndRoomNumber = (\n billingAccount: string,\n roomNumber: number,\n serviceName: string\n ): Promise<TelephonyTask> => {\n return this.ovh.request(\n 'POST',\n `/telephony/${billingAccount}/conference/${serviceName}/rooms/${roomNumber}/lock`\n );\n };\n\n /** Current participants of the conference room */\n getConferenceRoomsParticipantsByBillingAccountAndServiceNameAndRoomNumber = (\n billingAccount: string,\n roomNumber: number,\n serviceName: string\n ): Promise<number[]> => {\n return this.ovh.request(\n 'GET',\n `/telephony/${billingAccount}/conference/${serviceName}/rooms/${roomNumber}/participants`\n );\n };\n\n /** Get this object properties */\n getConferenceRoomsParticipantsByBillingAccountAndServiceNameAndRoomNumberAndId = (\n billingAccount: string,\n id: number,\n roomNumber: number,\n serviceName: string\n ): Promise<TelephonyConferenceParticipants> => {\n return this.ovh.request(\n 'GET',\n `/telephony/${billingAccount}/conference/${serviceName}/rooms/${roomNumber}/participants/${id}`\n );\n };\n\n /** Make a participant deaf in your conference room */\n postConferenceRoomsParticipantsDeafByBillingAccountAndServiceNameAndRoomNumberAndId = (\n billingAccount: string,\n id: number,\n roomNumber: number,\n serviceName: string\n ): Promise<TelephonyTask> => {\n return this.ovh.request(\n 'POST',\n `/telephony/${billingAccount}/conference/${serviceName}/rooms/${roomNumber}/participants/${id}/deaf`\n );\n };\n\n /** Change a participant level of audio transmission */\n updateConferenceRoomsParticipantsEnergyByBillingAccountAndServiceNameAndRoomNumberAndId = (\n billingAccount: string,\n id: number,\n roomNumber: number,\n serviceName: string,\n body: { value: number }\n ): Promise<TelephonyTask> => {\n return this.ovh.request(\n 'POST',\n `/telephony/${billingAccount}/conference/${serviceName}/rooms/${roomNumber}/participants/${id}/energy`,\n body\n );\n };\n\n /** Eject a participant from your conference room */\n postConferenceRoomsParticipantsKickByBillingAccountAndServiceNameAndRoomNumberAndId = (\n billingAccount: string,\n id: number,\n roomNumber: number,\n serviceName: string\n ): Promise<TelephonyTask> => {\n return this.ovh.request(\n 'POST',\n `/telephony/${billingAccount}/conference/${serviceName}/rooms/${roomNumber}/participants/${id}/kick`\n );\n };\n\n /** Mute a participant in your conference room */\n postConferenceRoomsParticipantsMuteByBillingAccountAndServiceNameAndRoomNumberAndId = (\n billingAccount: string,\n id: number,\n roomNumber: number,\n serviceName: string\n ): Promise<TelephonyTask> => {\n return this.ovh.request(\n 'POST',\n `/telephony/${billingAccount}/conference/${serviceName}/rooms/${roomNumber}/participants/${id}/mute`\n );\n };\n\n /** Make a participant undeaf your conference room */\n postConferenceRoomsParticipantsUndeafByBillingAccountAndServiceNameAndRoomNumberAndId = (\n billingAccount: string,\n id: number,\n roomNumber: number,\n serviceName: string\n ): Promise<TelephonyTask> => {\n return this.ovh.request(\n 'POST',\n `/telephony/${billingAccount}/conference/${serviceName}/rooms/${roomNumber}/participants/${id}/undeaf`\n );\n };\n\n /** Unmute a participant in your conference room */\n postConferenceRoomsParticipantsUnmuteByBillingAccountAndServiceNameAndRoomNumberAndId = (\n billingAccount: string,\n id: number,\n roomNumber: number,\n serviceName: string\n ): Promise<TelephonyTask> => {\n return this.ovh.request(\n 'POST',\n `/telephony/${billingAccount}/conference/${serviceName}/rooms/${roomNumber}/participants/${id}/unmute`\n );\n };\n\n /** Unlock the conference room */\n postConferenceRoomsUnlockByBillingAccountAndServiceNameAndRoomNumber = (\n billingAccount: string,\n roomNumber: number,\n serviceName: string\n ): Promise<TelephonyTask> => {\n return this.ovh.request(\n 'POST',\n `/telephony/${billingAccount}/conference/${serviceName}/rooms/${roomNumber}/unlock`\n );\n };\n\n /** List your conference room web access */\n listConferenceRoomsWebAccessByBillingAccountAndServiceNameAndRoomNumber = (\n billingAccount: string,\n roomNumber: number,\n serviceName: string\n ): Promise<number[]> => {\n return this.ovh.request(\n 'GET',\n `/telephony/${billingAccount}/conference/${serviceName}/rooms/${roomNumber}/webAccess`\n );\n };\n\n /** Add a public web access to your conference */\n addConferenceRoomsWebAccessByBillingAccountAndServiceNameAndRoomNumber = (\n billingAccount: string,\n roomNumber: number,\n serviceName: string,\n body: { type: TelephonyConferenceWebAccessTypeEnum }\n ): Promise<TelephonyConferenceWebAccess> => {\n return this.ovh.request(\n 'POST',\n `/telephony/${billingAccount}/conference/${serviceName}/rooms/${roomNumber}/webAccess`,\n body\n );\n };\n\n /** Delete a public web access to your conference */\n deleteConferenceRoomsWebAccessByBillingAccountAndServiceNameAndRoomNumberAndId = (\n billingAccount: string,\n id: number,\n roomNumber: number,\n serviceName: string\n ): Promise<void> => {\n return this.ovh.request(\n 'DELETE',\n `/telephony/${billingAccount}/conference/${serviceName}/rooms/${roomNumber}/webAccess/${id}`\n );\n };\n\n /** Get this object properties */\n getConferenceRoomsWebAccessByBillingAccountAndServiceNameAndRoomNumberAndId = (\n billingAccount: string,\n id: number,\n roomNumber: number,\n serviceName: string\n ): Promise<TelephonyConferenceWebAccess> => {\n return this.ovh.request(\n 'GET',\n `/telephony/${billingAccount}/conference/${serviceName}/rooms/${roomNumber}/webAccess/${id}`\n );\n };\n\n /** Get realtime statistics about all rooms of your conference number */\n getConferenceRoomsStatsByBillingAccountAndServiceName = (\n billingAccount: string,\n serviceName: string\n ): Promise<TelephonyConferenceRoomsStatistics> => {\n return this.ovh.request(\n 'GET',\n `/telephony/${billingAccount}/conference/${serviceName}/roomsStats`\n );\n };\n\n /** Get this object properties */\n getConferenceSettingsByBillingAccountAndServiceName = (\n billingAccount: string,\n serviceName: string\n ): Promise<TelephonyConferenceProperties> => {\n return this.ovh.request(\n 'GET',\n `/telephony/${billingAccount}/conference/${serviceName}/settings`\n );\n };\n\n /** Alter this object properties */\n updateConferenceSettingsByBillingAccountAndServiceName = (\n billingAccount: string,\n serviceName: string,\n body: TelephonyConferenceProperties\n ): Promise<void> => {\n return this.ovh.request(\n 'PUT',\n `/telephony/${billingAccount}/conference/${serviceName}/settings`,\n body\n );\n };\n\n /** Unlock the conference room */\n postConferenceUnlockByBillingAccountAndServiceName = (\n billingAccount: string,\n serviceName: string\n ): Promise<TelephonyTask> => {\n return this.ovh.request(\n 'POST',\n `/telephony/${billingAccount}/conference/${serviceName}/unlock`\n );\n };\n\n /** List your conference web access */\n listConferenceWebAccessByBillingAccountAndServiceName = (\n billingAccount: string,\n serviceName: string\n ): Promise<number[]> => {\n return this.ovh.request(\n 'GET',\n `/telephony/${billingAccount}/conference/${serviceName}/webAccess`\n );\n };\n\n /** Add a public web access to your conference */\n addConferenceWe