node-ovh-ts
Version:
OVH API wrapper library for TypeScript
1 lines • 115 kB
Source Map (JSON)
{"version":3,"sources":["../src/handlers/Me.ts"],"sourcesContent":["/* WARNING: This file is auto-generated . Do not edit manually. */\n\nimport { AuthCredentialStateEnum } from '../models/AuthCredentialStateEnum';\nimport { NichandleNicAutorenewInfos } from '../models/NichandleNicAutorenewInfos';\nimport { NichandleAuthenticationRoleEnum } from '../models/NichandleAuthenticationRoleEnum';\nimport { MePaymentMeanPaypal } from '../models/MePaymentMeanPaypal';\nimport { NichandleDomainTaskProgressBar } from '../models/NichandleDomainTaskProgressBar';\nimport { BillingPayment } from '../models/BillingPayment';\nimport { MePaymentTransaction } from '../models/MePaymentTransaction';\nimport { TelephonyMailDomain2Service } from '../models/TelephonyMailDomain2Service';\nimport { MeConsentCampaign } from '../models/MeConsentCampaign';\nimport { MePaymentMeanBankAccountChallengeCreation } from '../models/MePaymentMeanBankAccountChallengeCreation';\nimport { BillingCreditBalance } from '../models/BillingCreditBalance';\nimport { BillingMovement } from '../models/BillingMovement';\nimport { MePaymentMeanCreditCard } from '../models/MePaymentMeanCreditCard';\nimport { XdslSetting } from '../models/XdslSetting';\nimport { NichandleUser } from '../models/NichandleUser';\nimport { MeIncidentServiceMigration } from '../models/MeIncidentServiceMigration';\nimport { BillingOrderRegisteredPaymentMean } from '../models/BillingOrderRegisteredPaymentMean';\nimport { DedicatedServerPartitionRaidEnum } from '../models/DedicatedServerPartitionRaidEnum';\nimport { DomainTask } from '../models/DomainTask';\nimport { MeBillingGroupService } from '../models/MeBillingGroupService';\nimport { BillingBill } from '../models/BillingBill';\nimport { NichandleDomainTaskArgument } from '../models/NichandleDomainTaskArgument';\nimport { TelephonyDefaultIpRestriction } from '../models/TelephonyDefaultIpRestriction';\nimport { NichandleIpxe } from '../models/NichandleIpxe';\nimport { NichandleSubAccount } from '../models/NichandleSubAccount';\nimport { NichandleEmailChangeTask } from '../models/NichandleEmailChangeTask';\nimport { BillingOvhAccount } from '../models/BillingOvhAccount';\nimport { BillingOrderRetractionReasonEnum } from '../models/BillingOrderRetractionReasonEnum';\nimport { NichandleAccessRestrictionU2FAccount } from '../models/NichandleAccessRestrictionU2FAccount';\nimport { MePaymentMeanBankAccount } from '../models/MePaymentMeanBankAccount';\nimport { MeSupportLevelLevel } from '../models/MeSupportLevelLevel';\nimport { NichandleAccessRestrictionIpRestrictionRuleEnum } from '../models/NichandleAccessRestrictionIpRestrictionRuleEnum';\nimport { MeIncidentOrder } from '../models/MeIncidentOrder';\nimport { BillingBillDetail } from '../models/BillingBillDetail';\nimport { NichandleDeveloperModeRestriction } from '../models/NichandleDeveloperModeRestriction';\nimport { NichandleAccessRestrictionU2FRegisterChallenge } from '../models/NichandleAccessRestrictionU2FRegisterChallenge';\nimport { NichandleSshKey } from '../models/NichandleSshKey';\nimport { MeConsumptionTransaction } from '../models/MeConsumptionTransaction';\nimport { DedicatedInstallationTemplateTemplatePartitioningSchemes } from '../models/DedicatedInstallationTemplateTemplatePartitioningSchemes';\nimport { DomainOperationStatusEnum } from '../models/DomainOperationStatusEnum';\nimport { MeAbuseAbuse } from '../models/MeAbuseAbuse';\nimport { NichandleAccessRestrictionTOTPSecret } from '../models/NichandleAccessRestrictionTOTPSecret';\nimport { BillingOrderConsumptionDetails } from '../models/BillingOrderConsumptionDetails';\nimport { MePaymentMethodDetails } from '../models/MePaymentMethodDetails';\nimport { MePaymentMeanBankAccountStateEnum } from '../models/MePaymentMeanBankAccountStateEnum';\nimport { BillingReverseBill } from '../models/BillingReverseBill';\nimport { NichandleAccessRestrictionU2FSignChallenge } from '../models/NichandleAccessRestrictionU2FSignChallenge';\nimport { BillingOrderAssociatedObject } from '../models/BillingOrderAssociatedObject';\nimport { MePaymentMeanBankAccountValidation } from '../models/MePaymentMeanBankAccountValidation';\nimport { TelephonyProtocolEnum } from '../models/TelephonyProtocolEnum';\nimport { DedicatedTemplateOsHardwareRaidEnum } from '../models/DedicatedTemplateOsHardwareRaidEnum';\nimport { NichandleNichandle } from '../models/NichandleNichandle';\nimport { NichandleAccessRestrictionSmsAccount } from '../models/NichandleAccessRestrictionSmsAccount';\nimport { BillingOrderOrderStatusEnum } from '../models/BillingOrderOrderStatusEnum';\nimport { ContactFieldInformation } from '../models/ContactFieldInformation';\nimport { MeGeolocationContinentCountryLocation } from '../models/MeGeolocationContinentCountryLocation';\nimport { MeCreditBalanceMovement } from '../models/MeCreditBalanceMovement';\nimport { AgreementsContract } from '../models/AgreementsContract';\nimport { ApiLog } from '../models/ApiLog';\nimport { MePaymentMeanPaypalValidation } from '../models/MePaymentMeanPaypalValidation';\nimport { DedicatedInstallationTemplateHardwareRaid } from '../models/DedicatedInstallationTemplateHardwareRaid';\nimport { NichandleAuthenticationGroup } from '../models/NichandleAuthenticationGroup';\nimport { DedicatedInstallationTemplateTemplatePartitions } from '../models/DedicatedInstallationTemplateTemplatePartitions';\nimport { BillingCategoryEnum } from '../models/BillingCategoryEnum';\nimport { MeCreditBalance } from '../models/MeCreditBalance';\nimport { NichandleAccessRestrictionSOTPValidate } from '../models/NichandleAccessRestrictionSOTPValidate';\nimport { MeBillingPurchaseOrderCreation } from '../models/MeBillingPurchaseOrderCreation';\nimport { BillingOrderPayWithPaymentMethod } from '../models/BillingOrderPayWithPaymentMethod';\nimport { MePaymentTransactionStatusEnum } from '../models/MePaymentTransactionStatusEnum';\nimport { NichandleIpRestriction } from '../models/NichandleIpRestriction';\nimport { AgreementsContractAgreement } from '../models/AgreementsContractAgreement';\nimport { TelephonySettings } from '../models/TelephonySettings';\nimport { MeConsentConsent } from '../models/MeConsentConsent';\nimport { MeMigration } from '../models/MeMigration';\nimport { MeTagTag } from '../models/MeTagTag';\nimport { DebtDebt } from '../models/DebtDebt';\nimport { NichandleDocumentDocument } from '../models/NichandleDocumentDocument';\nimport { BillingOrderDetail } from '../models/BillingOrderDetail';\nimport { DebtOperation } from '../models/DebtOperation';\nimport { NichandleChangeContactTaskStateEnum } from '../models/NichandleChangeContactTaskStateEnum';\nimport { BillingArchiveTypeEnum } from '../models/BillingArchiveTypeEnum';\nimport { NichandleAccessRestrictionSOTPSecret } from '../models/NichandleAccessRestrictionSOTPSecret';\nimport { DedicatedTemplateOsFileSystemEnum } from '../models/DedicatedTemplateOsFileSystemEnum';\nimport { MeMigrationContract } from '../models/MeMigrationContract';\nimport { BillingWithdrawalDetail } from '../models/BillingWithdrawalDetail';\nimport { RecommendationsProductRangesEnum } from '../models/RecommendationsProductRangesEnum';\nimport { AuthApiApplication } from '../models/AuthApiApplication';\nimport { MePaymentMeanCreditCardChallengeCreation } from '../models/MePaymentMeanCreditCardChallengeCreation';\nimport { NichandleAccessRestrictionSmsCode } from '../models/NichandleAccessRestrictionSmsCode';\nimport { MeBillingGroupBillingGroup } from '../models/MeBillingGroupBillingGroup';\nimport { MePaymentMethodFinalize } from '../models/MePaymentMethodFinalize';\nimport { MePaymentAvailablePaymentMethod } from '../models/MePaymentAvailablePaymentMethod';\nimport { IpCampusEnum } from '../models/IpCampusEnum';\nimport { InsightAccess } from '../models/InsightAccess';\nimport { DebtBalance } from '../models/DebtBalance';\nimport { NichandleChangeEmailTaskStateEnum } from '../models/NichandleChangeEmailTaskStateEnum';\nimport { MeCreditCodeRedeem } from '../models/MeCreditCodeRedeem';\nimport { MeIncidentMigrateServices } from '../models/MeIncidentMigrateServices';\nimport { NichandleAccessRestrictionSOTPAccount } from '../models/NichandleAccessRestrictionSOTPAccount';\nimport { BillingOrder } from '../models/BillingOrder';\nimport { DedicatedTemplateOsLanguageEnum } from '../models/DedicatedTemplateOsLanguageEnum';\nimport { AuditLog } from '../models/AuditLog';\nimport { ConsumptionConsumptionExportFormatsEnum } from '../models/ConsumptionConsumptionExportFormatsEnum';\nimport { NichandleEmailNotification } from '../models/NichandleEmailNotification';\nimport { BillingOrderFollowUp } from '../models/BillingOrderFollowUp';\nimport { BillingItemDetail } from '../models/BillingItemDetail';\nimport { BillingOrderPaymentMeans } from '../models/BillingOrderPaymentMeans';\nimport { BillingReversableBillDetail } from '../models/BillingReversableBillDetail';\nimport { AuthApiCredential } from '../models/AuthApiCredential';\nimport { NichandleAuthenticationProvider } from '../models/NichandleAuthenticationProvider';\nimport { BillingAutomaticPaymentMean } from '../models/BillingAutomaticPaymentMean';\nimport { MeBillingGroupServiceCreate } from '../models/MeBillingGroupServiceCreate';\nimport { BillingOrderPaymentMethods } from '../models/BillingOrderPaymentMethods';\nimport { NichandleSubAccountConsumerKey } from '../models/NichandleSubAccountConsumerKey';\nimport { DedicatedInstallationTemplateTemplates } from '../models/DedicatedInstallationTemplateTemplates';\nimport { NichandleCountryEnum } from '../models/NichandleCountryEnum';\nimport { BillingDepositDetail } from '../models/BillingDepositDetail';\nimport { BillingDeposit } from '../models/BillingDeposit';\nimport { MePaymentMeanPaypalChallengeCreation } from '../models/MePaymentMeanPaypalChallengeCreation';\nimport { BillingWithdrawal } from '../models/BillingWithdrawal';\nimport { DedicatedTemplatePartitionTypeEnum } from '../models/DedicatedTemplatePartitionTypeEnum';\nimport { NichandleIpRestrictionDefaultRule } from '../models/NichandleIpRestrictionDefaultRule';\nimport { MeBillingPurchaseOrderPurchaseOrder } from '../models/MeBillingPurchaseOrderPurchaseOrder';\nimport { MePaymentMethodValidation } from '../models/MePaymentMethodValidation';\nimport { BillingRefundDetail } from '../models/BillingRefundDetail';\nimport { NichandleVipStatus } from '../models/NichandleVipStatus';\nimport { NichandleVoucherStatus } from '../models/NichandleVoucherStatus';\nimport { NichandleAccessRestrictionTOTPAccount } from '../models/NichandleAccessRestrictionTOTPAccount';\nimport { NichandleAuthenticationProviderExtensions } from '../models/NichandleAuthenticationProviderExtensions';\nimport { MePaymentPaymentMethod } from '../models/MePaymentPaymentMethod';\nimport { MePaymentMeanBankAccountCreation } from '../models/MePaymentMeanBankAccountCreation';\nimport { MePaymentMethodCreation } from '../models/MePaymentMethodCreation';\nimport { DomainOperationFunctionEnum } from '../models/DomainOperationFunctionEnum';\nimport { MePaymentMeanCreditCardCreation } from '../models/MePaymentMeanCreditCardCreation';\nimport { NichandleIpv4Org } from '../models/NichandleIpv4Org';\nimport { NichandleAccessRestrictionSmsSecret } from '../models/NichandleAccessRestrictionSmsSecret';\nimport { MePaymentMeanPaypalCreation } from '../models/MePaymentMeanPaypalCreation';\nimport { MeAgreementsContractAgreement } from '../models/MeAgreementsContractAgreement';\nimport { MeBillingPurchaseOrderUpdate } from '../models/MeBillingPurchaseOrderUpdate';\nimport { MeTagCreation } from '../models/MeTagCreation';\nimport { NichandleContactChangeTask } from '../models/NichandleContactChangeTask';\nimport { MeCreditBalanceTypeEnum } from '../models/MeCreditBalanceTypeEnum';\nimport { NichandleOvhCompanyEnum } from '../models/NichandleOvhCompanyEnum';\nimport { MePartnerLevelLevel } from '../models/MePartnerLevelLevel';\nimport { NichandleSubscription } from '../models/NichandleSubscription';\nimport { MePaymentMeanCreditCardValidation } from '../models/MePaymentMeanCreditCardValidation';\nimport { MeContactContact } from '../models/MeContactContact';\nimport { MePaymentMethodStatusEnum } from '../models/MePaymentMethodStatusEnum';\nimport { AgreementsAgreementStateEnum } from '../models/AgreementsAgreementStateEnum';\nimport { BillingSlaOperationService } from '../models/BillingSlaOperationService';\nimport { BillingFidelityAccount } from '../models/BillingFidelityAccount';\nimport { BillingRefund } from '../models/BillingRefund';\nimport { DebtEntryAssociatedObject } from '../models/DebtEntryAssociatedObject';\nimport { BillingReusablePaymentMeanEnum } from '../models/BillingReusablePaymentMeanEnum';\nimport { MePaymentMethodChallenge } from '../models/MePaymentMethodChallenge';\nimport { RecommendationsRecommendations } from '../models/RecommendationsRecommendations';\nimport { MePaymentMeanDeferred } from '../models/MePaymentMeanDeferred';\nimport { BillingFidelityMovement } from '../models/BillingFidelityMovement';\nimport { MeTagAvailableTag } from '../models/MeTagAvailableTag';\nimport { NichandleIpRegistryEnum } from '../models/NichandleIpRegistryEnum';\nimport { BillingSlaOperation } from '../models/BillingSlaOperation';\nimport OVHBase from '../ovh';\n\nclass MeHandler {\n ovh: OVHBase;\n\n constructor(ovh: OVHBase) {\n this.ovh = ovh;\n }\n\n /** Get details about your nichandle */\n get = (): Promise<NichandleNichandle> => {\n return this.ovh.request('GET', '/me');\n };\n\n /** Update details of your nichandle */\n update = (body: NichandleNichandle): Promise<void> => {\n return this.ovh.request('PUT', '/me', body);\n };\n\n /** Retrieve abuse cases list */\n getAbuse = (): Promise<string[]> => {\n return this.ovh.request('GET', '/me/abuse');\n };\n\n /** Check specific abuse case */\n checkAbuseById = (id: string): Promise<MeAbuseAbuse> => {\n return this.ovh.request('GET', `/me/abuse/${id}`);\n };\n\n /** Delete this Two-Factor */\n deleteAccessRestrictionBackupCode = (): Promise<void> => {\n return this.ovh.request('DELETE', '/me/accessRestriction/backupCode');\n };\n\n /** Get this object properties */\n getAccessRestrictionBackupCode = (): Promise<NichandleAccessRestrictionSOTPAccount> => {\n return this.ovh.request('GET', '/me/accessRestriction/backupCode');\n };\n\n /** Add a SOTP access restriction */\n addAccessRestrictionBackupCode = (): Promise<NichandleAccessRestrictionSOTPSecret> => {\n return this.ovh.request('POST', '/me/accessRestriction/backupCode');\n };\n\n /** Disable this SOTP account */\n disableAccessRestrictionBackupCode = (body: { code: string }): Promise<void> => {\n return this.ovh.request('POST', '/me/accessRestriction/backupCode/disable', body);\n };\n\n /** Enable this SOTP account */\n enableAccessRestrictionBackupCode = (body: { code: string }): Promise<void> => {\n return this.ovh.request('POST', '/me/accessRestriction/backupCode/enable', body);\n };\n\n /** Validate your SOTP account */\n validateAccessRestrictionBackupCode = (body: {\n code: string;\n }): Promise<NichandleAccessRestrictionSOTPValidate> => {\n return this.ovh.request('POST', '/me/accessRestriction/backupCode/validate', body);\n };\n\n /** Get this object properties */\n getAccessRestrictionDeveloperMode = (): Promise<NichandleDeveloperModeRestriction> => {\n return this.ovh.request('GET', '/me/accessRestriction/developerMode');\n };\n\n /** Alter this object properties */\n updateAccessRestrictionDeveloperMode = (\n body: NichandleDeveloperModeRestriction\n ): Promise<void> => {\n return this.ovh.request('PUT', '/me/accessRestriction/developerMode', body);\n };\n\n /** List of IP restrictions */\n listAccessRestrictionIp = (): Promise<number[]> => {\n return this.ovh.request('GET', '/me/accessRestriction/ip');\n };\n\n /** Add an IP access restriction */\n addAccessRestrictionIp = (body: {\n ip: string;\n rule: NichandleAccessRestrictionIpRestrictionRuleEnum;\n warning: boolean;\n }): Promise<void> => {\n return this.ovh.request('POST', '/me/accessRestriction/ip', body);\n };\n\n /** Delete this restriction rule */\n deleteAccessRestrictionIpById = (id: number): Promise<void> => {\n return this.ovh.request('DELETE', `/me/accessRestriction/ip/${id}`);\n };\n\n /** Get this object properties */\n getAccessRestrictionIpById = (id: number): Promise<NichandleIpRestriction> => {\n return this.ovh.request('GET', `/me/accessRestriction/ip/${id}`);\n };\n\n /** Alter this object properties */\n updateAccessRestrictionIpById = (id: number, body: NichandleIpRestriction): Promise<void> => {\n return this.ovh.request('PUT', `/me/accessRestriction/ip/${id}`, body);\n };\n\n /** Get this object properties */\n getAccessRestrictionIpDefaultRule = (): Promise<NichandleIpRestrictionDefaultRule> => {\n return this.ovh.request('GET', '/me/accessRestriction/ipDefaultRule');\n };\n\n /** Alter this object properties */\n updateAccessRestrictionIpDefaultRule = (\n body: NichandleIpRestrictionDefaultRule\n ): Promise<void> => {\n return this.ovh.request('PUT', '/me/accessRestriction/ipDefaultRule', body);\n };\n\n /** List of Sms accounts */\n listAccessRestrictionSms = (): Promise<number[]> => {\n return this.ovh.request('GET', '/me/accessRestriction/sms');\n };\n\n /** Add a SMS access restriction */\n addAccessRestrictionSms = (body: {\n phone: string;\n }): Promise<NichandleAccessRestrictionSmsSecret> => {\n return this.ovh.request('POST', '/me/accessRestriction/sms', body);\n };\n\n /** Delete this Two-Factor */\n deleteAccessRestrictionSmsById = (id: number): Promise<void> => {\n return this.ovh.request('DELETE', `/me/accessRestriction/sms/${id}`);\n };\n\n /** Get this object properties */\n getAccessRestrictionSmsById = (id: number): Promise<NichandleAccessRestrictionSmsAccount> => {\n return this.ovh.request('GET', `/me/accessRestriction/sms/${id}`);\n };\n\n /** Alter this object properties */\n updateAccessRestrictionSmsById = (\n id: number,\n body: NichandleAccessRestrictionSmsAccount\n ): Promise<void> => {\n return this.ovh.request('PUT', `/me/accessRestriction/sms/${id}`, body);\n };\n\n /** Disable this SMS account */\n disableAccessRestrictionSmsById = (id: number, body: { code: string }): Promise<void> => {\n return this.ovh.request('POST', `/me/accessRestriction/sms/${id}/disable`, body);\n };\n\n /** Enable this SMS account */\n enableAccessRestrictionSmsById = (id: number, body: { code: string }): Promise<void> => {\n return this.ovh.request('POST', `/me/accessRestriction/sms/${id}/enable`, body);\n };\n\n /** Send a SMS to this account */\n sendAccessRestrictionSmsCodeById = (id: number): Promise<NichandleAccessRestrictionSmsCode> => {\n return this.ovh.request('POST', `/me/accessRestriction/sms/${id}/sendCode`);\n };\n\n /** Validate your SMS account */\n validateAccessRestrictionSmsById = (id: number, body: { code: string }): Promise<void> => {\n return this.ovh.request('POST', `/me/accessRestriction/sms/${id}/validate`, body);\n };\n\n /** List of TOTP accounts */\n listAccessRestrictionTotp = (): Promise<number[]> => {\n return this.ovh.request('GET', '/me/accessRestriction/totp');\n };\n\n /** Add a TOTP access restriction */\n addAccessRestrictionTotp = (): Promise<NichandleAccessRestrictionTOTPSecret> => {\n return this.ovh.request('POST', '/me/accessRestriction/totp');\n };\n\n /** Delete this Two-Factor */\n deleteAccessRestrictionTotpById = (id: number): Promise<void> => {\n return this.ovh.request('DELETE', `/me/accessRestriction/totp/${id}`);\n };\n\n /** Get this object properties */\n getAccessRestrictionTotpById = (id: number): Promise<NichandleAccessRestrictionTOTPAccount> => {\n return this.ovh.request('GET', `/me/accessRestriction/totp/${id}`);\n };\n\n /** Alter this object properties */\n updateAccessRestrictionTotpById = (\n id: number,\n body: NichandleAccessRestrictionTOTPAccount\n ): Promise<void> => {\n return this.ovh.request('PUT', `/me/accessRestriction/totp/${id}`, body);\n };\n\n /** Disable this TOTP account */\n disableAccessRestrictionTotpById = (id: number, body: { code: string }): Promise<void> => {\n return this.ovh.request('POST', `/me/accessRestriction/totp/${id}/disable`, body);\n };\n\n /** Enable this TOTP account */\n enableAccessRestrictionTotpById = (id: number, body: { code: string }): Promise<void> => {\n return this.ovh.request('POST', `/me/accessRestriction/totp/${id}/enable`, body);\n };\n\n /** Validate your TOTP account */\n validateAccessRestrictionTotpById = (id: number, body: { code: string }): Promise<void> => {\n return this.ovh.request('POST', `/me/accessRestriction/totp/${id}/validate`, body);\n };\n\n /** List of U2F accounts */\n listAccessRestrictionU2f = (): Promise<number[]> => {\n return this.ovh.request('GET', '/me/accessRestriction/u2f');\n };\n\n /** Add a U2F access restriction */\n addAccessRestrictionU2f = (): Promise<NichandleAccessRestrictionU2FRegisterChallenge> => {\n return this.ovh.request('POST', '/me/accessRestriction/u2f');\n };\n\n /** Delete this Two-Factor */\n deleteAccessRestrictionU2fById = (id: number): Promise<void> => {\n return this.ovh.request('DELETE', `/me/accessRestriction/u2f/${id}`);\n };\n\n /** Get this object properties */\n getAccessRestrictionU2fById = (id: number): Promise<NichandleAccessRestrictionU2FAccount> => {\n return this.ovh.request('GET', `/me/accessRestriction/u2f/${id}`);\n };\n\n /** Alter this object properties */\n updateAccessRestrictionU2fById = (\n id: number,\n body: NichandleAccessRestrictionU2FAccount\n ): Promise<void> => {\n return this.ovh.request('PUT', `/me/accessRestriction/u2f/${id}`, body);\n };\n\n /** Get an U2F Challenge */\n postAccessRestrictionU2fChallengeById = (\n id: number\n ): Promise<NichandleAccessRestrictionU2FSignChallenge> => {\n return this.ovh.request('POST', `/me/accessRestriction/u2f/${id}/challenge`);\n };\n\n /** Disable this U2F account */\n disableAccessRestrictionU2fById = (\n id: number,\n body: { clientData: string; signatureData: string }\n ): Promise<void> => {\n return this.ovh.request('POST', `/me/accessRestriction/u2f/${id}/disable`, body);\n };\n\n /** Enable this U2F account */\n enableAccessRestrictionU2fById = (\n id: number,\n body: { clientData: string; signatureData: string }\n ): Promise<void> => {\n return this.ovh.request('POST', `/me/accessRestriction/u2f/${id}/enable`, body);\n };\n\n /** Validate your U2F account */\n validateAccessRestrictionU2fById = (\n id: number,\n body: { clientData: string; registrationData: string }\n ): Promise<void> => {\n return this.ovh.request('POST', `/me/accessRestriction/u2f/${id}/validate`, body);\n };\n\n /** List of contracts signed between you and OVH */\n listAgreements = (): Promise<number[]> => {\n return this.ovh.request('GET', '/me/agreements');\n };\n\n /** Get this object properties */\n getAgreementsById = (id: number): Promise<AgreementsContractAgreement> => {\n return this.ovh.request('GET', `/me/agreements/${id}`);\n };\n\n /** Accept this contract */\n postAgreementsAcceptById = (id: number): Promise<string> => {\n return this.ovh.request('POST', `/me/agreements/${id}/accept`);\n };\n\n /** Get this object properties */\n getAgreementsContractById = (id: number): Promise<AgreementsContract> => {\n return this.ovh.request('GET', `/me/agreements/${id}/contract`);\n };\n\n /** Retrieve all applications */\n getApiApplication = (): Promise<number[]> => {\n return this.ovh.request('GET', '/me/api/application');\n };\n\n /** Delete an application. It will revoke all credential belonging to this application */\n deleteApiApplicationByApplicationId = (applicationId: number): Promise<void> => {\n return this.ovh.request('DELETE', `/me/api/application/${applicationId}`);\n };\n\n /** Retrieve information about an application */\n getApiApplicationByApplicationId = (applicationId: number): Promise<AuthApiApplication> => {\n return this.ovh.request('GET', `/me/api/application/${applicationId}`);\n };\n\n /** Retrieve all credentials */\n getApiCredential = (): Promise<number[]> => {\n return this.ovh.request('GET', '/me/api/credential');\n };\n\n /** Delete a credential */\n deleteApiCredentialByCredentialId = (credentialId: number): Promise<void> => {\n return this.ovh.request('DELETE', `/me/api/credential/${credentialId}`);\n };\n\n /** Retrieve information about a credential */\n getApiCredentialByCredentialId = (credentialId: number): Promise<AuthApiCredential> => {\n return this.ovh.request('GET', `/me/api/credential/${credentialId}`);\n };\n\n /** Edit a credential */\n updateApiCredentialByCredentialId = (\n credentialId: number,\n body: AuthApiCredential\n ): Promise<void> => {\n return this.ovh.request('PUT', `/me/api/credential/${credentialId}`, body);\n };\n\n /** Get associated application */\n getApiCredentialApplicationByCredentialId = (\n credentialId: number\n ): Promise<AuthApiApplication> => {\n return this.ovh.request('GET', `/me/api/credential/${credentialId}/application`);\n };\n\n /** List of Api calls done with your account */\n listApiLogsSelf = (): Promise<number[]> => {\n return this.ovh.request('GET', '/me/api/logs/self');\n };\n\n /** Get this object properties */\n getApiLogsSelfByLogId = (logId: number): Promise<ApiLog> => {\n return this.ovh.request('GET', `/me/api/logs/self/${logId}`);\n };\n\n /** List of Api calls done on services you have access to */\n listApiLogsServices = (): Promise<number[]> => {\n return this.ovh.request('GET', '/me/api/logs/services');\n };\n\n /** Get this object properties */\n getApiLogsServicesByLogId = (logId: number): Promise<ApiLog> => {\n return this.ovh.request('GET', `/me/api/logs/services/${logId}`);\n };\n\n /** Get this object properties */\n getAutorenew = (): Promise<NichandleNicAutorenewInfos> => {\n return this.ovh.request('GET', '/me/autorenew');\n };\n\n /** Activate auto renew for this nic */\n postAutorenew = (body: { renewDay: number }): Promise<void> => {\n return this.ovh.request('POST', '/me/autorenew', body);\n };\n\n /** Alter this object properties */\n updateAutorenew = (body: NichandleNicAutorenewInfos): Promise<void> => {\n return this.ovh.request('PUT', '/me/autorenew', body);\n };\n\n /** List available payment methods in this Nic's country */\n listAvailableAutomaticPaymentMeans = (): Promise<BillingAutomaticPaymentMean> => {\n return this.ovh.request('GET', '/me/availableAutomaticPaymentMeans');\n };\n\n /** List of all the bills the logged account has */\n listBill = (): Promise<string[]> => {\n return this.ovh.request('GET', '/me/bill');\n };\n\n /** Exports a bundle of invoices */\n exportBill = (body: {\n archiveType: BillingArchiveTypeEnum;\n endDate?: Date;\n ids?: string[];\n startDate?: Date;\n }): Promise<void> => {\n return this.ovh.request('POST', '/me/bill/export', body);\n };\n\n /** Get this object properties */\n getBillByBillId = (billId: string): Promise<BillingBill> => {\n return this.ovh.request('GET', `/me/bill/${billId}`);\n };\n\n /** Get this object properties */\n getBillDebtByBillId = (billId: string): Promise<DebtDebt> => {\n return this.ovh.request('GET', `/me/bill/${billId}/debt`);\n };\n\n /** All operations related to these debts */\n getBillDebtOperationByBillId = (billId: string): Promise<number[]> => {\n return this.ovh.request('GET', `/me/bill/${billId}/debt/operation`);\n };\n\n /** Get this object properties */\n getBillDebtOperationByBillIdAndOperationId = (\n billId: string,\n operationId: number\n ): Promise<DebtOperation> => {\n return this.ovh.request('GET', `/me/bill/${billId}/debt/operation/${operationId}`);\n };\n\n /** Return main data about the object related to this debt operation */\n getBillDebtOperationAssociatedObjectByBillIdAndOperationId = (\n billId: string,\n operationId: number\n ): Promise<DebtEntryAssociatedObject> => {\n return this.ovh.request(\n 'GET',\n `/me/bill/${billId}/debt/operation/${operationId}/associatedObject`\n );\n };\n\n /** Create an order in order to pay this order's debt */\n createBillDebtPayByBillId = (billId: string): Promise<BillingOrder> => {\n return this.ovh.request('POST', `/me/bill/${billId}/debt/pay`);\n };\n\n /** Give access to all entries of the bill */\n getBillDetailsByBillId = (billId: string): Promise<string[]> => {\n return this.ovh.request('GET', `/me/bill/${billId}/details`);\n };\n\n /** Get this object properties */\n getBillDetailsByBillIdAndBillDetailId = (\n billDetailId: string,\n billId: string\n ): Promise<BillingBillDetail> => {\n return this.ovh.request('GET', `/me/bill/${billId}/details/${billDetailId}`);\n };\n\n /** Get this object properties */\n getBillPaymentByBillId = (billId: string): Promise<BillingPayment> => {\n return this.ovh.request('GET', `/me/bill/${billId}/payment`);\n };\n\n /** Retrieve all billing groups */\n getBillingGroup = (): Promise<number[]> => {\n return this.ovh.request('GET', '/me/billing/group');\n };\n\n /** Create a new billing group */\n createBillingGroup = (body: MeBillingGroupBillingGroup): Promise<MeBillingGroupBillingGroup> => {\n return this.ovh.request('POST', '/me/billing/group', body);\n };\n\n /** Delete a billing group */\n deleteBillingGroupByGroupId = (groupId: number): Promise<void> => {\n return this.ovh.request('DELETE', `/me/billing/group/${groupId}`);\n };\n\n /** Retrieve information about a billing group */\n getBillingGroupByGroupId = (groupId: number): Promise<MeBillingGroupBillingGroup> => {\n return this.ovh.request('GET', `/me/billing/group/${groupId}`);\n };\n\n /** Edit billing group */\n updateBillingGroupByGroupId = (\n groupId: number,\n body: MeBillingGroupBillingGroup\n ): Promise<void> => {\n return this.ovh.request('PUT', `/me/billing/group/${groupId}`, body);\n };\n\n /** Retrieve billing group service ID list */\n getBillingGroupServiceByGroupId = (groupId: number): Promise<number[]> => {\n return this.ovh.request('GET', `/me/billing/group/${groupId}/service`);\n };\n\n /** Associate a service to a billing group */\n postBillingGroupServiceByGroupId = (\n groupId: number,\n body: MeBillingGroupServiceCreate\n ): Promise<MeBillingGroupService> => {\n return this.ovh.request('POST', `/me/billing/group/${groupId}/service`, body);\n };\n\n /** Unlink a service from a billing group */\n deleteBillingGroupServiceByGroupIdAndServiceId = (\n groupId: number,\n serviceId: number\n ): Promise<void> => {\n return this.ovh.request('DELETE', `/me/billing/group/${groupId}/service/${serviceId}`);\n };\n\n /** Retrieve information about a billing group service */\n getBillingGroupServiceByGroupIdAndServiceId = (\n groupId: number,\n serviceId: number\n ): Promise<MeBillingGroupService> => {\n return this.ovh.request('GET', `/me/billing/group/${groupId}/service/${serviceId}`);\n };\n\n /** Send invoices through postal mail */\n sendBillingInvoicesByPostalMail = (): Promise<boolean> => {\n return this.ovh.request('GET', '/me/billing/invoicesByPostalMail');\n };\n\n /** Enable or disable invoices by postal mail */\n enableBillingInvoicesByPostalMail = (body: { enable: boolean }): Promise<void> => {\n return this.ovh.request('POST', '/me/billing/invoicesByPostalMail', body);\n };\n\n /** Retrieve all purchase orders */\n getBillingPurchaseOrder = (): Promise<number[]> => {\n return this.ovh.request('GET', '/me/billing/purchaseOrder');\n };\n\n /** Create a purchase order */\n createBillingPurchaseOrder = (\n body: MeBillingPurchaseOrderCreation\n ): Promise<MeBillingPurchaseOrderPurchaseOrder> => {\n return this.ovh.request('POST', '/me/billing/purchaseOrder', body);\n };\n\n /** Delete a purchase order */\n deleteBillingPurchaseOrderById = (id: number): Promise<void> => {\n return this.ovh.request('DELETE', `/me/billing/purchaseOrder/${id}`);\n };\n\n /** Retrieve information about a purchase order */\n getBillingPurchaseOrderById = (id: number): Promise<MeBillingPurchaseOrderPurchaseOrder> => {\n return this.ovh.request('GET', `/me/billing/purchaseOrder/${id}`);\n };\n\n /** Update a purchase order */\n updateBillingPurchaseOrderById = (\n id: number,\n body: MeBillingPurchaseOrderUpdate\n ): Promise<void> => {\n return this.ovh.request('PUT', `/me/billing/purchaseOrder/${id}`, body);\n };\n\n /** Get your Bring your own IP token */\n getBringYourOwnIpToken = (): Promise<string> => {\n return this.ovh.request('GET', '/me/bringYourOwnIp/token');\n };\n\n /** Get all certificates of the account */\n getCertificates = (): Promise<string[]> => {\n return this.ovh.request('GET', '/me/certificates');\n };\n\n /** Initiate an email change procedure */\n postChangeEmail = (body: { newEmail: string }): Promise<NichandleEmailChangeTask> => {\n return this.ovh.request('POST', '/me/changeEmail', body);\n };\n\n /** Initiate a password change procedure */\n postChangePassword = (): Promise<void> => {\n return this.ovh.request('POST', '/me/changePassword');\n };\n\n /** List all consent campaign available */\n listConsent = (): Promise<MeConsentCampaign[]> => {\n return this.ovh.request('GET', '/me/consent');\n };\n\n /** Retrieve information about a consent campaign */\n getConsentByCampaignName = (campaignName: string): Promise<MeConsentCampaign> => {\n return this.ovh.request('GET', `/me/consent/${campaignName}`);\n };\n\n /** Get decision value for a consent campaign */\n getConsentDecisionByCampaignName = (campaignName: string): Promise<MeConsentConsent> => {\n return this.ovh.request('GET', `/me/consent/${campaignName}/decision`);\n };\n\n /** Update decision of a consent campaign */\n updateConsentDecisionByCampaignName = (\n campaignName: string,\n body: { value: boolean }\n ): Promise<void> => {\n return this.ovh.request('PUT', `/me/consent/${campaignName}/decision`, body);\n };\n\n /** Get on-going consumptions for all services */\n getConsumptionUsageCurrent = (): Promise<MeConsumptionTransaction[]> => {\n return this.ovh.request('GET', '/me/consumption/usage/current');\n };\n\n /** Get forecasted consumptions for all services */\n getConsumptionUsageForecast = (): Promise<MeConsumptionTransaction[]> => {\n return this.ovh.request('GET', '/me/consumption/usage/forecast');\n };\n\n /** Get list of transactions between two dates */\n getConsumptionUsageHistory = (): Promise<MeConsumptionTransaction[]> => {\n return this.ovh.request('GET', '/me/consumption/usage/history');\n };\n\n /** Retrieve every contact your created */\n getContact = (): Promise<number[]> => {\n return this.ovh.request('GET', '/me/contact');\n };\n\n /** Create a new contact */\n createContact = (body: MeContactContact): Promise<MeContactContact> => {\n return this.ovh.request('POST', '/me/contact', body);\n };\n\n /** Retrieve information about a contact */\n getContactByContactId = (contactId: number): Promise<MeContactContact> => {\n return this.ovh.request('GET', `/me/contact/${contactId}`);\n };\n\n /** Update an existing contact */\n updateContactByContactId = (\n contactId: number,\n body: MeContactContact\n ): Promise<MeContactContact> => {\n return this.ovh.request('PUT', `/me/contact/${contactId}`, body);\n };\n\n /** Display mandatory/read-only informations of a contact */\n getContactFieldsByContactId = (contactId: number): Promise<ContactFieldInformation[]> => {\n return this.ovh.request('GET', `/me/contact/${contactId}/fields`);\n };\n\n /** Retrieve all credit balances */\n getCreditBalance = (): Promise<string[]> => {\n return this.ovh.request('GET', '/me/credit/balance');\n };\n\n /** Retrieve a credit balance */\n getCreditBalanceByBalanceName = (balanceName: string): Promise<MeCreditBalance> => {\n return this.ovh.request('GET', `/me/credit/balance/${balanceName}`);\n };\n\n /** Retrieve movements for a specific balance */\n getCreditBalanceMovementByBalanceName = (balanceName: string): Promise<number[]> => {\n return this.ovh.request('GET', `/me/credit/balance/${balanceName}/movement`);\n };\n\n /** Retrieve a specific movement for a credit balance */\n getCreditBalanceMovementByBalanceNameAndMovementId = (\n balanceName: string,\n movementId: number\n ): Promise<MeCreditBalanceMovement> => {\n return this.ovh.request('GET', `/me/credit/balance/${balanceName}/movement/${movementId}`);\n };\n\n /** Validate a code to generate associated credit movement */\n validateCreditCode = (body: MeCreditCodeRedeem): Promise<MeCreditBalanceMovement> => {\n return this.ovh.request('POST', '/me/credit/code', body);\n };\n\n /** Get this object properties */\n getDebtAccount = (): Promise<DebtBalance> => {\n return this.ovh.request('GET', '/me/debtAccount');\n };\n\n /** All debts related to your account */\n getDebtAccountDebt = (): Promise<number[]> => {\n return this.ovh.request('GET', '/me/debtAccount/debt');\n };\n\n /** Get this object properties */\n getDebtAccountDebtByDebtId = (debtId: number): Promise<DebtDebt> => {\n return this.ovh.request('GET', `/me/debtAccount/debt/${debtId}`);\n };\n\n /** All operations related to these debts */\n getDebtAccountDebtOperationByDebtId = (debtId: number): Promise<number[]> => {\n return this.ovh.request('GET', `/me/debtAccount/debt/${debtId}/operation`);\n };\n\n /** Get this object properties */\n getDebtAccountDebtOperationByDebtIdAndOperationId = (\n debtId: number,\n operationId: number\n ): Promise<DebtOperation> => {\n return this.ovh.request('GET', `/me/debtAccount/debt/${debtId}/operation/${operationId}`);\n };\n\n /** Return main data about the object related to this debt operation */\n getDebtAccountDebtOperationAssociatedObjectByDebtIdAndOperationId = (\n debtId: number,\n operationId: number\n ): Promise<DebtEntryAssociatedObject> => {\n return this.ovh.request(\n 'GET',\n `/me/debtAccount/debt/${debtId}/operation/${operationId}/associatedObject`\n );\n };\n\n /** Create an order in order to pay this order's debt */\n createDebtAccountDebtPayByDebtId = (debtId: number): Promise<BillingOrder> => {\n return this.ovh.request('POST', `/me/debtAccount/debt/${debtId}/pay`);\n };\n\n /** Create an order in order to pay all your due debts */\n createDebtAccountPay = (): Promise<BillingOrder> => {\n return this.ovh.request('POST', '/me/debtAccount/pay');\n };\n\n /** List of all the deposits made to your prepaid account or debt account */\n listDeposit = (): Promise<string[]> => {\n return this.ovh.request('GET', '/me/deposit');\n };\n\n /** Get this object properties */\n getDepositByDepositId = (depositId: string): Promise<BillingDeposit> => {\n return this.ovh.request('GET', `/me/deposit/${depositId}`);\n };\n\n /** Give access to all entries of this deposit */\n getDepositDetailsByDepositId = (depositId: string): Promise<string[]> => {\n return this.ovh.request('GET', `/me/deposit/${depositId}/details`);\n };\n\n /** Get this object properties */\n getDepositDetailsByDepositIdAndDepositDetailId = (\n depositDetailId: string,\n depositId: string\n ): Promise<BillingDepositDetail> => {\n return this.ovh.request('GET', `/me/deposit/${depositId}/details/${depositDetailId}`);\n };\n\n /** Get invoices paid by this deposit */\n getDepositPaidBillsByDepositId = (depositId: string): Promise<string[]> => {\n return this.ovh.request('GET', `/me/deposit/${depositId}/paidBills`);\n };\n\n /** Get this object properties */\n getDepositPaidBillsByDepositIdAndBillId = (\n billId: string,\n depositId: string\n ): Promise<BillingBill> => {\n return this.ovh.request('GET', `/me/deposit/${depositId}/paidBills/${billId}`);\n };\n\n /** Get this object properties */\n getDepositPaidBillsDebtByDepositIdAndBillId = (\n billId: string,\n depositId: string\n ): Promise<DebtDebt> => {\n return this.ovh.request('GET', `/me/deposit/${depositId}/paidBills/${billId}/debt`);\n };\n\n /** All operations related to these debts */\n getDepositPaidBillsDebtOperationByDepositIdAndBillId = (\n billId: string,\n depositId: string\n ): Promise<number[]> => {\n return this.ovh.request('GET', `/me/deposit/${depositId}/paidBills/${billId}/debt/operation`);\n };\n\n /** Get this object properties */\n getDepositPaidBillsDebtOperationByDepositIdAndBillIdAndOperationId = (\n billId: string,\n depositId: string,\n operationId: number\n ): Promise<DebtOperation> => {\n return this.ovh.request(\n 'GET',\n `/me/deposit/${depositId}/paidBills/${billId}/debt/operation/${operationId}`\n );\n };\n\n /** Return main data about the object related to this debt operation */\n getDepositPaidBillsDebtOperationAssociatedObjectByDepositIdAndBillIdAndOperationId = (\n billId: string,\n depositId: string,\n operationId: number\n ): Promise<DebtEntryAssociatedObject> => {\n return this.ovh.request(\n 'GET',\n `/me/deposit/${depositId}/paidBills/${billId}/debt/operation/${operationId}/associatedObject`\n );\n };\n\n /** Create an order in order to pay this order's debt */\n createDepositPaidBillsDebtPayByDepositIdAndBillId = (\n billId: string,\n depositId: string\n ): Promise<BillingOrder> => {\n return this.ovh.request('POST', `/me/deposit/${depositId}/paidBills/${billId}/debt/pay`);\n };\n\n /** Give access to all entries of the bill */\n getDepositPaidBillsDetailsByDepositIdAndBillId = (\n billId: string,\n depositId: string\n ): Promise<string[]> => {\n return this.ovh.request('GET', `/me/deposit/${depositId}/paidBills/${billId}/details`);\n };\n\n /** Get this object properties */\n getDepositPaidBillsDetailsByDepositIdAndBillIdAndBillDetailId = (\n billDetailId: string,\n billId: string,\n depositId: string\n ): Promise<BillingBillDetail> => {\n return this.ovh.request(\n 'GET',\n `/me/deposit/${depositId}/paidBills/${billId}/details/${billDetailId}`\n );\n };\n\n /** Get this object properties */\n getDepositPaidBillsPaymentByDepositIdAndBillId = (\n billId: string,\n depositId: string\n ): Promise<BillingPayment> => {\n return this.ovh.request('GET', `/me/deposit/${depositId}/paidBills/${billId}/payment`);\n };\n\n /** Get this object properties */\n getDepositPaymentByDepositId = (depositId: string): Promise<BillingPayment> => {\n return this.ovh.request('GET', `/me/deposit/${depositId}/payment`);\n };\n\n /** List of documents added in your account */\n listDocument = (): Promise<string[]> => {\n return this.ovh.request('GET', '/me/document');\n };\n\n /** Create new document */\n createDocument = (body: { name: string; tags?: string }): Promise<NichandleDocumentDocument> => {\n return this.ovh.request('POST', '/me/document', body);\n };\n\n /** Add CORS support on your container */\n addDocumentCors = (body: { origin: string }): Promise<void> => {\n return this.ovh.request('POST', '/me/document/cors', body);\n };\n\n /** Delete a document */\n deleteDocumentById = (id: string): Promise<void> => {\n return this.ovh.request('DELETE', `/me/document/${id}`);\n };\n\n /** Get this object properties */\n getDocumentById = (id: string): Promise<NichandleDocumentDocument> => {\n return this.ovh.request('GET', `/me/document/${id}`);\n };\n\n /** Alter this object properties */\n updateDocumentById = (id: string, body: NichandleDocumentDocument): Promise<void> => {\n return this.ovh.request('PUT', `/me/document/${id}`, body);\n };\n\n /** Get the fax custom domains linked to the customer account */\n getFaxCustomDomains = (): Promise<number[]> => {\n return this.ovh.request('GET', '/me/fax/customDomains');\n };\n\n /** Create a custom domain for your fax services */\n createFaxCustomDomains = (body: { domain: string }): Promise<TelephonyMailDomain2Service> => {\n return this.ovh.request('POST', '/me/fax/customDomains', body);\n };\n\n /** Delete a custom domain of your fax services */\n deleteFaxCustomDomainsById = (id: number): Promise<void> => {\n return this.ovh.request('DELETE', `/me/fax/customDomains/${id}`);\n };\n\n /** Get this object properties */\n getFaxCustomDomainsById = (id: number): Promise<TelephonyMailDomain2Service> => {\n return this.ovh.request('GET', `/me/fax/customDomains/${id}`);\n };\n\n /** Get this object properties */\n getFidelityAccount = (): Promise<BillingFidelityAccount> => {\n return this.ovh.request('GET', '/me/fidelityAccount');\n };\n\n /** Alter this object properties */\n updateFidelityAccount = (body: BillingFidelityAccount): Promise<void> => {\n return this.ovh.request('PUT', '/me/fidelityAccount', body);\n };\n\n /** Generate an order that can be paid in order to credit the fidelity account */\n postFidelityAccountCreditOrder = (body: { amount: number }): Promise<BillingOrder> => {\n return this.ovh.request('POST', '/me/fidelityAccount/creditOrder', body);\n };\n\n /** List of entries of the fidelity account */\n listFidelityAccountMovements = (): Promise<number[]> => {\n return this.ovh.request('GET', '/me/fidelityAccount/movements');\n };\n\n /** Get this object properties */\n getFidelityAccountMovementsByMovementId = (\n movementId: number\n ): Promise<BillingFidelityMovement> => {\n return this.ovh.request('GET', `/me/fidelityAccount/movements/${movementId}`);\n };\n\n /** Fetch visitor country & region */\n postGeolocation = (): Promise<MeGeolocationContinentCountryLocation> => {\n return this.ovh.request('POST', '/me/geolocation');\n };\n\n /** Retrieve all groups of this account */\n getIdentityGroup = (): Promise<string[]> => {\n return this.ovh.request('GET', '/me/identity/group');\n };\n\n /** Create a new group */\n createIdentityGroup = (body: {\n description?: string;\n name: string;\n role?: NichandleAuthenticationRoleEnum;\n }): Promise<NichandleAuthenticationGroup> => {\n return this.ovh.request('POST', '/me/identity/group', body);\n };\n\n /** Delete this object */\n deleteIdentityGroupByGroup = (group: string): Promise<void> => {\n return this.ovh.request('DELETE', `/me/identity/group/${group}`);\n };\n\n /** Get this object properties */\n getIdentityGroupByGroup = (group: string): Promise<NichandleAuthenticationGroup> => {\n return this.ovh.request('GET', `/me/identity/group/${group}`);\n };\n\n /** Alter a group */\n updateIdentityGroupByGroup = (\n group: string,\n body: { description?: string; role?: NichandleAuthenticationRoleEnum }\n ): Promise<void> => {\n return this.ovh.request('PUT', `/me/identity/group/${group}`, body);\n };\n\n /** Remove the identity provider */\n deleteIdentityProvider = (): Promise<void> => {\n return this.ovh.request('DELETE', '/me/identity/provider');\n };\n\n /** Identity provider linked to this account */\n getIdentityProvider = (): Promise<NichandleAuthenticationProvider> => {\n return this.ovh.request('GET', '/me/identity/provider');\n };\n\n /** Define an identity provider (SAML 2.0) */\n postIdentityProvider = (body: {\n extensions?: NichandleAuthenticationProviderExtensions;\n groupAttributeName?: string;\n metadata: string;\n }): Promise<NichandleAuthenticationProvider> => {\n return this.ovh.request('POST', '/me/identity/provider', body);\n };\n\n /** Alter the provider */\n updateIdentityProvider = (body: {\n extensions?: NichandleAuthenticationProviderExtensions;\n groupAttributeName?: string;\n }): Promise<void> => {\n return this.ovh.request('PUT', '/me/identity/provider', body);\n };\n\n /** Retrieve all users of this account */\n getIdentityUser = (): Promise<string[]> => {\n return this.ovh.request('GET', '/me/identity/user');\n };\n\n /** Create a new user */\n createIdentityUser = (body: {\n description?: string;\n email: string;\n group?: string;\n login: string;\n password: string;\n }): Promise<void> => {\n return this.ovh.request('POST', '/me/identity/user', body);\n };\n\n /** Delete this object */\n deleteIdentityUserByUser = (user: string): Promise<void> => {\n return this.ovh.request('DELETE', `/me/identity/user/${user}`);\n };\n\n /** Get this object properties */\n getIdentityUserByUser = (user: string): Promise<NichandleUser> => {\n return this.ovh.request('GET', `/me/identity/user/${user}`);\n };\n\n /** Alter a user */\n updateIdentityUserByUser = (\n user: string,\n body: { description?: string; email?: string; group?: string }\n ): Promise<void> => {\n return this.ovh.request('PUT', `/me/identity/user/${user}`, body);\n };\n\n /** Disable this user */\n disableIdentityUserByUser = (user: string): Promise<void> => {\n return this.ovh.request('POST', `/me/identity/user/${user}/disable`);\n };\n\n /** Enable this user */\n enableIdentityUserByUser = (user: string): Promise<void> => {\n return this.ovh.request('POST', `/me/identity/user/${user}/enable`);\n };\n\n /** Get all services you can migrate */\n getIncidentSbgMigrateServices = (): Promise<MeIncidentServiceMigration[]> => {\n return this.ovh.request('GET', '/me/incident/sbg/migrateServices');\n };\n\n /** Ask for impacted services migration */\n postIncidentSbgMigrateServices = (body: MeInciden