@newfold/huapi-js 2.1496.0 → 2.1501.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.d.ts +127 -1
- package/src/index.js +97 -1
- package/src/index.msw.d.ts +9 -1
- package/src/index.msw.js +49 -1
- package/src/index.schemas.d.ts +203 -123
- package/src/index.schemas.js +13 -0
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DefinedInitialDataOptions, DefinedUseInfiniteQueryResult, DefinedUseQueryResult, InfiniteData, QueryKey, UndefinedInitialDataOptions, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import axios from 'axios';
|
|
3
3
|
import type { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
4
|
-
import type { AccessLogs200, AccessLogsParams, AccountEventList200, AccountEventListParams, AccountFeatures200, AccountFeaturesParams, AccountHostingList200, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupMeta200, BackupMetaParams, BackupRestoreV2200, BackupRestoreV2Body, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, CronLastRun200, CronLastRunParams, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbListV2200, DbMultipleUserDatabase200, DbMultipleUserDatabaseBody, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DirectoryPrivacy200, DirectoryPrivacyParams, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainDnsExport200, DomainDnsExportParams, DomainDnsImport200, DomainDnsImportBody, DomainDnsImportParams, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorAddBody, DomainDnseditorBody, DomainDnseditorEdit200, DomainDnseditorEditBody, DomainDnseditorList200, DomainDnszoneReset200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, HostingDomainsV2200, HostingDomainsV2Params, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAdd400, HostingEmailAdd403, HostingEmailAdd409, HostingEmailAdd512, HostingEmailAddBody, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderCreate400, HostingEmailAutoresponderCreateBody, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderDelete400, HostingEmailAutoresponderDelete404, HostingEmailAutoresponderDeleteParams, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderInfo404, HostingEmailAutoresponderInfoParams, HostingEmailAutoresponderList200, HostingEmailAutoresponderListParams, HostingEmailAutoresponderUpdate200, HostingEmailAutoresponderUpdate400, HostingEmailAutoresponderUpdateBody, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailFiltersAdd200, HostingEmailFiltersAddBody, HostingEmailFiltersDelete200, HostingEmailFiltersDelete400, HostingEmailFiltersDelete404, HostingEmailFiltersDeleteParams, HostingEmailFiltersList200, HostingEmailFiltersListParams, HostingEmailFiltersUpdate200, HostingEmailFiltersUpdateBody, HostingEmailFolderList200, HostingEmailFolderList404, HostingEmailForwardDelete200, HostingEmailForwardDeleteParams, HostingEmailForwarderAdd200, HostingEmailForwarderAdd400, HostingEmailForwarderAdd403, HostingEmailForwarderAdd409, HostingEmailForwarderAdd512, HostingEmailForwarderAddBody, HostingEmailForwardersList200, HostingEmailForwardersListParams, HostingEmailList200, HostingEmailSettings200, HostingEmailSettings403, HostingEmailSettings404, HostingEmailSettings512, HostingEmailSettingsBody, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamCustomSettingsUpdateBody, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailSpamSettingsUpdateBody, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoBody, HostingRepoList200Item, HostingRepoLog200, HostingRepoLogParams, HostingRepoSync200, HostingRepoSyncBody, HostingResellerSsoWhm200, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SitesVersion200, SshKey200, SshKeyBody, SshKeyFetch200, SshKeyFetchParams, SshKeyGenerate200, SshKeyGenerateBody, SshKeyImport200, SshKeyImportBody, SshKeyImportV2200, SshKeyImportV2Body, SshKeyImportV3200, SshKeyImportV3Body, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, SshKeyV2Body, Sso200, SsoParams, StagingSitePromote200, StagingSitePromote409, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
4
|
+
import type { AccessLogs200, AccessLogsParams, AccountEventList200, AccountEventListParams, AccountFeatures200, AccountFeaturesParams, AccountHostingList200, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsSso200, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupDownloadV2200, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupMeta200, BackupMetaParams, BackupRestoreV2200, BackupRestoreV2Body, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronBody, CronLastRun200, CronLastRunParams, Db200, DbAdd200, DbAddBody, DbBody, DbCheckDatabase200, DbCheckDatabaseBody, DbListV2200, DbMultipleUserDatabase200, DbMultipleUserDatabaseBody, DbUsage200, DbUserAdd200, DbUserAddBody, DbUserDelete200, DbUserDeleteBody, DbUserList200, DbUserPasswordSet200, DbUserPasswordSetBody, DbUserPrivsGet200, DbUserPrivsGetParams, DbUserPrivsSet200, DbUserPrivsSetBody, DbUserRename200, DbUserRenameBody, DirectoryPrivacy200, DirectoryPrivacyParams, DomainCertInstall200, DomainCertInstallBody, DomainCertUninstall200, DomainCertUpdate200, DomainCertUpdateBody, DomainCerts200, DomainDnsExport200, DomainDnsExportParams, DomainDnsImport200, DomainDnsImportBody, DomainDnsImportParams, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorAddBody, DomainDnseditorBody, DomainDnseditorEdit200, DomainDnseditorEditBody, DomainDnseditorList200, DomainDnszoneReset200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsAddBody, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsDeleteBody, HostingDbAuthorizedHostsUpdate200, HostingDbAuthorizedHostsUpdateBody, HostingDomainAssign200, HostingDomainAssignBody, HostingDomainAvailability200, HostingDomainAvailabilityParams, HostingDomainsUnassign200, HostingDomainsUnassignBody, HostingDomainsUnassignV2200, HostingDomainsUnassignV2Body, HostingDomainsV2200, HostingDomainsV2Params, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAdd400, HostingEmailAdd403, HostingEmailAdd409, HostingEmailAdd512, HostingEmailAddBody, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderCreate400, HostingEmailAutoresponderCreateBody, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderDelete400, HostingEmailAutoresponderDelete404, HostingEmailAutoresponderDeleteParams, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderInfo404, HostingEmailAutoresponderInfoParams, HostingEmailAutoresponderList200, HostingEmailAutoresponderListParams, HostingEmailAutoresponderUpdate200, HostingEmailAutoresponderUpdate400, HostingEmailAutoresponderUpdateBody, HostingEmailDelete200, HostingEmailDeleteParams, HostingEmailDomainRouting200, HostingEmailDomainRoutingParams, HostingEmailDomainRoutingSet200, HostingEmailDomainRoutingSetBody, HostingEmailFiltersAdd200, HostingEmailFiltersAddBody, HostingEmailFiltersDelete200, HostingEmailFiltersDelete400, HostingEmailFiltersDelete404, HostingEmailFiltersDeleteParams, HostingEmailFiltersList200, HostingEmailFiltersListParams, HostingEmailFiltersUpdate200, HostingEmailFiltersUpdateBody, HostingEmailFolderList200, HostingEmailFolderList404, HostingEmailForwardDelete200, HostingEmailForwardDeleteParams, HostingEmailForwarderAdd200, HostingEmailForwarderAdd400, HostingEmailForwarderAdd403, HostingEmailForwarderAdd409, HostingEmailForwarderAdd512, HostingEmailForwarderAddBody, HostingEmailForwardersList200, HostingEmailForwardersListParams, HostingEmailKeysAdd200, HostingEmailKeysAddBody, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSettings403, HostingEmailSettings404, HostingEmailSettings512, HostingEmailSettingsBody, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamCustomSettingsUpdateBody, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailSpamSettingsUpdateBody, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoBody, HostingRepoList200Item, HostingRepoLog200, HostingRepoLogParams, HostingRepoSync200, HostingRepoSyncBody, HostingResellerSsoWhm200, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSitesV2200, HostingSitesV2Params, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserCreateBody, SitesSshUserDelete200, SitesSshUserDeleteBody, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSshUserUpdateBody, SitesSsl200, SitesSso200, SitesSsoParams, SitesVersion200, SshKey200, SshKeyBody, SshKeyFetch200, SshKeyFetchParams, SshKeyGenerate200, SshKeyGenerateBody, SshKeyImport200, SshKeyImportBody, SshKeyImportV2200, SshKeyImportV2Body, SshKeyImportV3200, SshKeyImportV3Body, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, SshKeyV2Body, Sso200, SsoParams, StagingSitePromote200, StagingSitePromote409, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
5
5
|
declare type AwaitedInput<T> = PromiseLike<T> | T;
|
|
6
6
|
declare type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
7
7
|
/**
|
|
@@ -3406,6 +3406,132 @@ export declare const useHostingEmailForwardDelete: <TError = AxiosError<unknown,
|
|
|
3406
3406
|
hostingId: string;
|
|
3407
3407
|
params: HostingEmailForwardDeleteParams;
|
|
3408
3408
|
}, TContext>;
|
|
3409
|
+
/**
|
|
3410
|
+
* Generates a GnuPG (GPG) key.
|
|
3411
|
+
* @summary Encryption add
|
|
3412
|
+
*/
|
|
3413
|
+
export declare const hostingEmailKeysAdd: (hostingId: string, hostingEmailKeysAddBody: HostingEmailKeysAddBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingEmailKeysAdd200>>;
|
|
3414
|
+
export declare const getHostingEmailKeysAddMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
3415
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingEmailKeysAdd200, any>, TError, {
|
|
3416
|
+
hostingId: string;
|
|
3417
|
+
data: HostingEmailKeysAddBody;
|
|
3418
|
+
}, TContext> | undefined;
|
|
3419
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
3420
|
+
} | undefined) => UseMutationOptions<AxiosResponse<HostingEmailKeysAdd200, any>, TError, {
|
|
3421
|
+
hostingId: string;
|
|
3422
|
+
data: HostingEmailKeysAddBody;
|
|
3423
|
+
}, TContext>;
|
|
3424
|
+
export declare type HostingEmailKeysAddMutationResult = NonNullable<Awaited<ReturnType<typeof hostingEmailKeysAdd>>>;
|
|
3425
|
+
export declare type HostingEmailKeysAddMutationBody = HostingEmailKeysAddBody;
|
|
3426
|
+
export declare type HostingEmailKeysAddMutationError = AxiosError<unknown>;
|
|
3427
|
+
/**
|
|
3428
|
+
* @summary Encryption add
|
|
3429
|
+
*/
|
|
3430
|
+
export declare const useHostingEmailKeysAdd: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
3431
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingEmailKeysAdd200, any>, TError, {
|
|
3432
|
+
hostingId: string;
|
|
3433
|
+
data: HostingEmailKeysAddBody;
|
|
3434
|
+
}, TContext> | undefined;
|
|
3435
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
3436
|
+
} | undefined) => UseMutationResult<AxiosResponse<HostingEmailKeysAdd200, any>, TError, {
|
|
3437
|
+
hostingId: string;
|
|
3438
|
+
data: HostingEmailKeysAddBody;
|
|
3439
|
+
}, TContext>;
|
|
3440
|
+
/**
|
|
3441
|
+
* Lists the GnuPG (GPG) public and secret keys for the currently-authenticated account.
|
|
3442
|
+
* @summary Encryption lists
|
|
3443
|
+
*/
|
|
3444
|
+
export declare const hostingEmailKeysList: (hostingId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingEmailKeysList200>>;
|
|
3445
|
+
export declare const getHostingEmailKeysListQueryKey: (hostingId: string) => readonly [`/v1/hosting/${string}/emails/keys`];
|
|
3446
|
+
export declare const getHostingEmailKeysListQueryOptions: <TData = AxiosResponse<HostingEmailKeysList200, any>, TError = AxiosError<unknown, any>>(hostingId: string, options?: {
|
|
3447
|
+
query?: Partial<UseQueryOptions<AxiosResponse<HostingEmailKeysList200, any>, TError, TData, QueryKey>> | undefined;
|
|
3448
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
3449
|
+
} | undefined) => UseQueryOptions<AxiosResponse<HostingEmailKeysList200, any>, TError, TData, QueryKey> & {
|
|
3450
|
+
queryKey: QueryKey;
|
|
3451
|
+
};
|
|
3452
|
+
export declare type HostingEmailKeysListQueryResult = NonNullable<Awaited<ReturnType<typeof hostingEmailKeysList>>>;
|
|
3453
|
+
export declare type HostingEmailKeysListQueryError = AxiosError<unknown>;
|
|
3454
|
+
export declare function useHostingEmailKeysList<TData = Awaited<ReturnType<typeof hostingEmailKeysList>>, TError = AxiosError<unknown>>(hostingId: string, options: {
|
|
3455
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingEmailKeysList>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof hostingEmailKeysList>>, TError, TData>, 'initialData'>;
|
|
3456
|
+
axios?: AxiosRequestConfig;
|
|
3457
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
3458
|
+
queryKey: QueryKey;
|
|
3459
|
+
};
|
|
3460
|
+
export declare function useHostingEmailKeysList<TData = Awaited<ReturnType<typeof hostingEmailKeysList>>, TError = AxiosError<unknown>>(hostingId: string, options?: {
|
|
3461
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingEmailKeysList>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof hostingEmailKeysList>>, TError, TData>, 'initialData'>;
|
|
3462
|
+
axios?: AxiosRequestConfig;
|
|
3463
|
+
}): UseQueryResult<TData, TError> & {
|
|
3464
|
+
queryKey: QueryKey;
|
|
3465
|
+
};
|
|
3466
|
+
export declare function useHostingEmailKeysList<TData = Awaited<ReturnType<typeof hostingEmailKeysList>>, TError = AxiosError<unknown>>(hostingId: string, options?: {
|
|
3467
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingEmailKeysList>>, TError, TData>>;
|
|
3468
|
+
axios?: AxiosRequestConfig;
|
|
3469
|
+
}): UseQueryResult<TData, TError> & {
|
|
3470
|
+
queryKey: QueryKey;
|
|
3471
|
+
};
|
|
3472
|
+
/**
|
|
3473
|
+
* Gets the email routing type used when an email is delivered for a domain
|
|
3474
|
+
* @summary Email routing get
|
|
3475
|
+
*/
|
|
3476
|
+
export declare const hostingEmailDomainRouting: (hostingId: string, params: HostingEmailDomainRoutingParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingEmailDomainRouting200>>;
|
|
3477
|
+
export declare const getHostingEmailDomainRoutingQueryKey: (hostingId: string, params: HostingEmailDomainRoutingParams) => readonly [`/v1/hosting/${string}/emails/routing`, ...HostingEmailDomainRoutingParams[]];
|
|
3478
|
+
export declare const getHostingEmailDomainRoutingQueryOptions: <TData = AxiosResponse<HostingEmailDomainRouting200, any>, TError = AxiosError<unknown, any>>(hostingId: string, params: HostingEmailDomainRoutingParams, options?: {
|
|
3479
|
+
query?: Partial<UseQueryOptions<AxiosResponse<HostingEmailDomainRouting200, any>, TError, TData, QueryKey>> | undefined;
|
|
3480
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
3481
|
+
} | undefined) => UseQueryOptions<AxiosResponse<HostingEmailDomainRouting200, any>, TError, TData, QueryKey> & {
|
|
3482
|
+
queryKey: QueryKey;
|
|
3483
|
+
};
|
|
3484
|
+
export declare type HostingEmailDomainRoutingQueryResult = NonNullable<Awaited<ReturnType<typeof hostingEmailDomainRouting>>>;
|
|
3485
|
+
export declare type HostingEmailDomainRoutingQueryError = AxiosError<unknown>;
|
|
3486
|
+
export declare function useHostingEmailDomainRouting<TData = Awaited<ReturnType<typeof hostingEmailDomainRouting>>, TError = AxiosError<unknown>>(hostingId: string, params: HostingEmailDomainRoutingParams, options: {
|
|
3487
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingEmailDomainRouting>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof hostingEmailDomainRouting>>, TError, TData>, 'initialData'>;
|
|
3488
|
+
axios?: AxiosRequestConfig;
|
|
3489
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
3490
|
+
queryKey: QueryKey;
|
|
3491
|
+
};
|
|
3492
|
+
export declare function useHostingEmailDomainRouting<TData = Awaited<ReturnType<typeof hostingEmailDomainRouting>>, TError = AxiosError<unknown>>(hostingId: string, params: HostingEmailDomainRoutingParams, options?: {
|
|
3493
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingEmailDomainRouting>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof hostingEmailDomainRouting>>, TError, TData>, 'initialData'>;
|
|
3494
|
+
axios?: AxiosRequestConfig;
|
|
3495
|
+
}): UseQueryResult<TData, TError> & {
|
|
3496
|
+
queryKey: QueryKey;
|
|
3497
|
+
};
|
|
3498
|
+
export declare function useHostingEmailDomainRouting<TData = Awaited<ReturnType<typeof hostingEmailDomainRouting>>, TError = AxiosError<unknown>>(hostingId: string, params: HostingEmailDomainRoutingParams, options?: {
|
|
3499
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof hostingEmailDomainRouting>>, TError, TData>>;
|
|
3500
|
+
axios?: AxiosRequestConfig;
|
|
3501
|
+
}): UseQueryResult<TData, TError> & {
|
|
3502
|
+
queryKey: QueryKey;
|
|
3503
|
+
};
|
|
3504
|
+
/**
|
|
3505
|
+
* Sets the email routing type used when an email is delivered for a domain
|
|
3506
|
+
* @summary Email routing set
|
|
3507
|
+
*/
|
|
3508
|
+
export declare const hostingEmailDomainRoutingSet: (hostingId: string, hostingEmailDomainRoutingSetBody: HostingEmailDomainRoutingSetBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingEmailDomainRoutingSet200>>;
|
|
3509
|
+
export declare const getHostingEmailDomainRoutingSetMutationOptions: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
3510
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingEmailDomainRoutingSet200, any>, TError, {
|
|
3511
|
+
hostingId: string;
|
|
3512
|
+
data: HostingEmailDomainRoutingSetBody;
|
|
3513
|
+
}, TContext> | undefined;
|
|
3514
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
3515
|
+
} | undefined) => UseMutationOptions<AxiosResponse<HostingEmailDomainRoutingSet200, any>, TError, {
|
|
3516
|
+
hostingId: string;
|
|
3517
|
+
data: HostingEmailDomainRoutingSetBody;
|
|
3518
|
+
}, TContext>;
|
|
3519
|
+
export declare type HostingEmailDomainRoutingSetMutationResult = NonNullable<Awaited<ReturnType<typeof hostingEmailDomainRoutingSet>>>;
|
|
3520
|
+
export declare type HostingEmailDomainRoutingSetMutationBody = HostingEmailDomainRoutingSetBody;
|
|
3521
|
+
export declare type HostingEmailDomainRoutingSetMutationError = AxiosError<unknown>;
|
|
3522
|
+
/**
|
|
3523
|
+
* @summary Email routing set
|
|
3524
|
+
*/
|
|
3525
|
+
export declare const useHostingEmailDomainRoutingSet: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
3526
|
+
mutation?: UseMutationOptions<AxiosResponse<HostingEmailDomainRoutingSet200, any>, TError, {
|
|
3527
|
+
hostingId: string;
|
|
3528
|
+
data: HostingEmailDomainRoutingSetBody;
|
|
3529
|
+
}, TContext> | undefined;
|
|
3530
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
3531
|
+
} | undefined) => UseMutationResult<AxiosResponse<HostingEmailDomainRoutingSet200, any>, TError, {
|
|
3532
|
+
hostingId: string;
|
|
3533
|
+
data: HostingEmailDomainRoutingSetBody;
|
|
3534
|
+
}, TContext>;
|
|
3409
3535
|
/**
|
|
3410
3536
|
* Update an email address's settings, depending on address type
|
|
3411
3537
|
* @summary update email account settings
|
package/src/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Hosting UAPI
|
|
5
5
|
* Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
|
|
6
|
-
* OpenAPI spec version: 1.
|
|
6
|
+
* OpenAPI spec version: 1.1501.0
|
|
7
7
|
*/
|
|
8
8
|
import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
|
|
9
9
|
import axios from 'axios';
|
|
@@ -2613,6 +2613,102 @@ export const useHostingEmailForwardDelete = (options) => {
|
|
|
2613
2613
|
const mutationOptions = getHostingEmailForwardDeleteMutationOptions(options);
|
|
2614
2614
|
return useMutation(mutationOptions);
|
|
2615
2615
|
};
|
|
2616
|
+
/**
|
|
2617
|
+
* Generates a GnuPG (GPG) key.
|
|
2618
|
+
* @summary Encryption add
|
|
2619
|
+
*/
|
|
2620
|
+
export const hostingEmailKeysAdd = (hostingId, hostingEmailKeysAddBody, options) => {
|
|
2621
|
+
return axios.post(`/v1/hosting/${hostingId}/emails/keys`, hostingEmailKeysAddBody, options);
|
|
2622
|
+
};
|
|
2623
|
+
export const getHostingEmailKeysAddMutationOptions = (options) => {
|
|
2624
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
2625
|
+
const mutationFn = (props) => {
|
|
2626
|
+
const { hostingId, data } = props !== null && props !== void 0 ? props : {};
|
|
2627
|
+
return hostingEmailKeysAdd(hostingId, data, axiosOptions);
|
|
2628
|
+
};
|
|
2629
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
2630
|
+
};
|
|
2631
|
+
/**
|
|
2632
|
+
* @summary Encryption add
|
|
2633
|
+
*/
|
|
2634
|
+
export const useHostingEmailKeysAdd = (options) => {
|
|
2635
|
+
const mutationOptions = getHostingEmailKeysAddMutationOptions(options);
|
|
2636
|
+
return useMutation(mutationOptions);
|
|
2637
|
+
};
|
|
2638
|
+
/**
|
|
2639
|
+
* Lists the GnuPG (GPG) public and secret keys for the currently-authenticated account.
|
|
2640
|
+
* @summary Encryption lists
|
|
2641
|
+
*/
|
|
2642
|
+
export const hostingEmailKeysList = (hostingId, options) => {
|
|
2643
|
+
return axios.get(`/v1/hosting/${hostingId}/emails/keys`, options);
|
|
2644
|
+
};
|
|
2645
|
+
export const getHostingEmailKeysListQueryKey = (hostingId) => {
|
|
2646
|
+
return [`/v1/hosting/${hostingId}/emails/keys`];
|
|
2647
|
+
};
|
|
2648
|
+
export const getHostingEmailKeysListQueryOptions = (hostingId, options) => {
|
|
2649
|
+
var _a;
|
|
2650
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
2651
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getHostingEmailKeysListQueryKey(hostingId);
|
|
2652
|
+
const queryFn = ({ signal }) => hostingEmailKeysList(hostingId, Object.assign({ signal }, axiosOptions));
|
|
2653
|
+
return Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions);
|
|
2654
|
+
};
|
|
2655
|
+
/**
|
|
2656
|
+
* @summary Encryption lists
|
|
2657
|
+
*/
|
|
2658
|
+
export function useHostingEmailKeysList(hostingId, options) {
|
|
2659
|
+
const queryOptions = getHostingEmailKeysListQueryOptions(hostingId, options);
|
|
2660
|
+
const query = useQuery(queryOptions);
|
|
2661
|
+
query.queryKey = queryOptions.queryKey;
|
|
2662
|
+
return query;
|
|
2663
|
+
}
|
|
2664
|
+
/**
|
|
2665
|
+
* Gets the email routing type used when an email is delivered for a domain
|
|
2666
|
+
* @summary Email routing get
|
|
2667
|
+
*/
|
|
2668
|
+
export const hostingEmailDomainRouting = (hostingId, params, options) => {
|
|
2669
|
+
return axios.get(`/v1/hosting/${hostingId}/emails/routing`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
|
|
2670
|
+
};
|
|
2671
|
+
export const getHostingEmailDomainRoutingQueryKey = (hostingId, params) => {
|
|
2672
|
+
return [`/v1/hosting/${hostingId}/emails/routing`, ...(params ? [params] : [])];
|
|
2673
|
+
};
|
|
2674
|
+
export const getHostingEmailDomainRoutingQueryOptions = (hostingId, params, options) => {
|
|
2675
|
+
var _a;
|
|
2676
|
+
const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
2677
|
+
const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getHostingEmailDomainRoutingQueryKey(hostingId, params);
|
|
2678
|
+
const queryFn = ({ signal }) => hostingEmailDomainRouting(hostingId, params, Object.assign({ signal }, axiosOptions));
|
|
2679
|
+
return Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions);
|
|
2680
|
+
};
|
|
2681
|
+
/**
|
|
2682
|
+
* @summary Email routing get
|
|
2683
|
+
*/
|
|
2684
|
+
export function useHostingEmailDomainRouting(hostingId, params, options) {
|
|
2685
|
+
const queryOptions = getHostingEmailDomainRoutingQueryOptions(hostingId, params, options);
|
|
2686
|
+
const query = useQuery(queryOptions);
|
|
2687
|
+
query.queryKey = queryOptions.queryKey;
|
|
2688
|
+
return query;
|
|
2689
|
+
}
|
|
2690
|
+
/**
|
|
2691
|
+
* Sets the email routing type used when an email is delivered for a domain
|
|
2692
|
+
* @summary Email routing set
|
|
2693
|
+
*/
|
|
2694
|
+
export const hostingEmailDomainRoutingSet = (hostingId, hostingEmailDomainRoutingSetBody, options) => {
|
|
2695
|
+
return axios.put(`/v1/hosting/${hostingId}/emails/routing`, hostingEmailDomainRoutingSetBody, options);
|
|
2696
|
+
};
|
|
2697
|
+
export const getHostingEmailDomainRoutingSetMutationOptions = (options) => {
|
|
2698
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
|
|
2699
|
+
const mutationFn = (props) => {
|
|
2700
|
+
const { hostingId, data } = props !== null && props !== void 0 ? props : {};
|
|
2701
|
+
return hostingEmailDomainRoutingSet(hostingId, data, axiosOptions);
|
|
2702
|
+
};
|
|
2703
|
+
return Object.assign({ mutationFn }, mutationOptions);
|
|
2704
|
+
};
|
|
2705
|
+
/**
|
|
2706
|
+
* @summary Email routing set
|
|
2707
|
+
*/
|
|
2708
|
+
export const useHostingEmailDomainRoutingSet = (options) => {
|
|
2709
|
+
const mutationOptions = getHostingEmailDomainRoutingSetMutationOptions(options);
|
|
2710
|
+
return useMutation(mutationOptions);
|
|
2711
|
+
};
|
|
2616
2712
|
/**
|
|
2617
2713
|
* Update an email address's settings, depending on address type
|
|
2618
2714
|
* @summary update email account settings
|
package/src/index.msw.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { http } from 'msw';
|
|
2
|
-
import type { AccessLogs200, AccountEventList200, AccountFeatures200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, BackupCreateV2200, BackupCreateV3200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupMeta200, BackupRestoreV2200, BackupStatus200, BackupStatusV2200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronLastRun200, Db200, DbAdd200, DbCheckDatabase200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200, DomainDnszoneReset200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingDomainsV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderList200, HostingEmailAutoresponderUpdate200, HostingEmailDelete200, HostingEmailFiltersAdd200, HostingEmailFiltersDelete200, HostingEmailFiltersList200, HostingEmailFiltersUpdate200, HostingEmailFolderList200, HostingEmailForwardDelete200, HostingEmailForwarderAdd200, HostingEmailForwardersList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
2
|
+
import type { AccessLogs200, AccountEventList200, AccountFeatures200, AccountHostingList200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsInfo200, AddonsJetpackValidate200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsSso200, BackupCreateV2200, BackupCreateV3200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupMeta200, BackupRestoreV2200, BackupStatus200, BackupStatusV2200, BackupsJetpackBackup200, CodeguardBackupCreate200, CodeguardBackupDownload200, CodeguardBackupList200, CodeguardBackupRestore200, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupRestore200, CodeguardDatabaseList200, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupRestore200, CodeguardWebsiteList200, CreatePhpInfo200, Cron200, CronLastRun200, Db200, DbAdd200, DbCheckDatabase200, DbListV2200, DbMultipleUserDatabase200, DbUsage200, DbUserAdd200, DbUserDelete200, DbUserList200, DbUserPasswordSet200, DbUserPrivsGet200, DbUserPrivsSet200, DbUserRename200, DirectoryPrivacy200, DomainCertInstall200, DomainCertUninstall200, DomainCertUpdate200, DomainCerts200, DomainDnsExport200, DomainDnsImport200, DomainDnseditor200, DomainDnseditorAdd200, DomainDnseditorEdit200, DomainDnseditorList200, DomainDnszoneReset200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, EditPrivacy200, EmailSso200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, HostingDbAuthorizedHosts200, HostingDbAuthorizedHostsAdd200, HostingDbAuthorizedHostsDelete200, HostingDbAuthorizedHostsUpdate200, HostingDomainAssign200, HostingDomainAvailability200, HostingDomainsUnassign200, HostingDomainsUnassignV2200, HostingDomainsV2200, HostingEcommerceInfo200, HostingEmailAdd200, HostingEmailAutoresponderCreate200, HostingEmailAutoresponderDelete200, HostingEmailAutoresponderInfo200, HostingEmailAutoresponderList200, HostingEmailAutoresponderUpdate200, HostingEmailDelete200, HostingEmailDomainRouting200, HostingEmailDomainRoutingSet200, HostingEmailFiltersAdd200, HostingEmailFiltersDelete200, HostingEmailFiltersList200, HostingEmailFiltersUpdate200, HostingEmailFolderList200, HostingEmailForwardDelete200, HostingEmailForwarderAdd200, HostingEmailForwardersList200, HostingEmailKeysAdd200, HostingEmailKeysList200, HostingEmailList200, HostingEmailSettings200, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSitesV2200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, WebzaiSso200, WeeblySso200 } from './index.schemas';
|
|
3
3
|
export declare const getAccountEventListResponseMock: (overrideResponse?: Partial<AccountEventList200>) => AccountEventList200;
|
|
4
4
|
export declare const getAccountFeaturesResponseMock: (overrideResponse?: Partial<AccountFeatures200>) => AccountFeatures200;
|
|
5
5
|
export declare const getAccountHostingListResponseMock: (overrideResponse?: Partial<AccountHostingList200>) => AccountHostingList200;
|
|
@@ -109,6 +109,10 @@ export declare const getHostingEmailFiltersDeleteResponseMock: (overrideResponse
|
|
|
109
109
|
export declare const getHostingEmailForwardersListResponseMock: (overrideResponse?: Partial<HostingEmailForwardersList200>) => HostingEmailForwardersList200;
|
|
110
110
|
export declare const getHostingEmailForwarderAddResponseMock: (overrideResponse?: Partial<HostingEmailForwarderAdd200>) => HostingEmailForwarderAdd200;
|
|
111
111
|
export declare const getHostingEmailForwardDeleteResponseMock: (overrideResponse?: Partial<HostingEmailForwardDelete200>) => HostingEmailForwardDelete200;
|
|
112
|
+
export declare const getHostingEmailKeysAddResponseMock: (overrideResponse?: Partial<HostingEmailKeysAdd200>) => HostingEmailKeysAdd200;
|
|
113
|
+
export declare const getHostingEmailKeysListResponseMock: (overrideResponse?: Partial<HostingEmailKeysList200>) => HostingEmailKeysList200;
|
|
114
|
+
export declare const getHostingEmailDomainRoutingResponseMock: (overrideResponse?: Partial<HostingEmailDomainRouting200>) => HostingEmailDomainRouting200;
|
|
115
|
+
export declare const getHostingEmailDomainRoutingSetResponseMock: (overrideResponse?: Partial<HostingEmailDomainRoutingSet200>) => HostingEmailDomainRoutingSet200;
|
|
112
116
|
export declare const getHostingEmailSettingsResponseMock: (overrideResponse?: Partial<HostingEmailSettings200>) => HostingEmailSettings200;
|
|
113
117
|
export declare const getHostingEmailSpamCustomSettingsResponseMock: (overrideResponse?: Partial<HostingEmailSpamCustomSettings200>) => HostingEmailSpamCustomSettings200;
|
|
114
118
|
export declare const getHostingEmailSpamCustomSettingsUpdateResponseMock: (overrideResponse?: Partial<HostingEmailSpamCustomSettingsUpdate200>) => HostingEmailSpamCustomSettingsUpdate200;
|
|
@@ -371,6 +375,10 @@ export declare const getHostingEmailFiltersDeleteMockHandler: (overrideResponse?
|
|
|
371
375
|
export declare const getHostingEmailForwardersListMockHandler: (overrideResponse?: HostingEmailForwardersList200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingEmailForwardersList200> | HostingEmailForwardersList200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
372
376
|
export declare const getHostingEmailForwarderAddMockHandler: (overrideResponse?: HostingEmailForwarderAdd200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingEmailForwarderAdd200> | HostingEmailForwarderAdd200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
373
377
|
export declare const getHostingEmailForwardDeleteMockHandler: (overrideResponse?: HostingEmailForwardDelete200 | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<HostingEmailForwardDelete200> | HostingEmailForwardDelete200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
378
|
+
export declare const getHostingEmailKeysAddMockHandler: (overrideResponse?: HostingEmailKeysAdd200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingEmailKeysAdd200> | HostingEmailKeysAdd200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
379
|
+
export declare const getHostingEmailKeysListMockHandler: (overrideResponse?: HostingEmailKeysList200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingEmailKeysList200> | HostingEmailKeysList200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
380
|
+
export declare const getHostingEmailDomainRoutingMockHandler: (overrideResponse?: HostingEmailDomainRouting200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingEmailDomainRouting200> | HostingEmailDomainRouting200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
381
|
+
export declare const getHostingEmailDomainRoutingSetMockHandler: (overrideResponse?: HostingEmailDomainRoutingSet200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<HostingEmailDomainRoutingSet200> | HostingEmailDomainRoutingSet200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
374
382
|
export declare const getHostingEmailSettingsMockHandler: (overrideResponse?: HostingEmailSettings200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingEmailSettings200> | HostingEmailSettings200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
375
383
|
export declare const getHostingEmailSpamCustomSettingsMockHandler: (overrideResponse?: HostingEmailSpamCustomSettings200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingEmailSpamCustomSettings200> | HostingEmailSpamCustomSettings200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
|
376
384
|
export declare const getHostingEmailSpamCustomSettingsUpdateMockHandler: (overrideResponse?: HostingEmailSpamCustomSettingsUpdate200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<HostingEmailSpamCustomSettingsUpdate200> | HostingEmailSpamCustomSettingsUpdate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
|
package/src/index.msw.js
CHANGED
|
@@ -4,7 +4,7 @@ import { __awaiter } from "tslib";
|
|
|
4
4
|
* Do not edit manually.
|
|
5
5
|
* Hosting UAPI
|
|
6
6
|
* Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
|
|
7
|
-
* OpenAPI spec version: 1.
|
|
7
|
+
* OpenAPI spec version: 1.1501.0
|
|
8
8
|
*/
|
|
9
9
|
import { faker } from '@faker-js/faker';
|
|
10
10
|
import { HttpResponse, delay, http } from 'msw';
|
|
@@ -119,6 +119,10 @@ export const getHostingEmailFiltersDeleteResponseMock = (overrideResponse = {})
|
|
|
119
119
|
export const getHostingEmailForwardersListResponseMock = (overrideResponse = {}) => (Object.assign({ forwarders: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ destination: faker.helpers.arrayElement([faker.word.sample(), undefined]), destination_type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), source: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]) }, overrideResponse));
|
|
120
120
|
export const getHostingEmailForwarderAddResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
121
121
|
export const getHostingEmailForwardDeleteResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
122
|
+
export const getHostingEmailKeysAddResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
123
|
+
export const getHostingEmailKeysListResponseMock = (overrideResponse = {}) => (Object.assign({ keys: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ algo: faker.helpers.arrayElement([faker.word.sample(), undefined]), created: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), email: faker.helpers.arrayElement([faker.word.sample(), undefined]), expires: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), keyid: faker.helpers.arrayElement([faker.word.sample(), undefined]), keysize: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), uids: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
124
|
+
export const getHostingEmailDomainRoutingResponseMock = (overrideResponse = {}) => (Object.assign({ domain: faker.helpers.arrayElement([faker.word.sample(), undefined]), route_type: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
125
|
+
export const getHostingEmailDomainRoutingSetResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
122
126
|
export const getHostingEmailSettingsResponseMock = (overrideResponse = {}) => (Object.assign({ account_incoming: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), account_login: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), account_outgoing: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), address: faker.helpers.arrayElement([faker.word.sample(), undefined]), autofolders: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), utf8_folders: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, overrideResponse));
|
|
123
127
|
export const getHostingEmailSpamCustomSettingsResponseMock = (overrideResponse = {}) => (Object.assign({ allowlist: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), blocklist: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), custom_scores: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ subtype: faker.helpers.arrayElement([faker.word.sample(), undefined]), value: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) })), undefined]), spam_score: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, overrideResponse));
|
|
124
128
|
export const getHostingEmailSpamCustomSettingsUpdateResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
@@ -1384,6 +1388,46 @@ export const getHostingEmailForwardDeleteMockHandler = (overrideResponse) => {
|
|
|
1384
1388
|
});
|
|
1385
1389
|
}));
|
|
1386
1390
|
};
|
|
1391
|
+
export const getHostingEmailKeysAddMockHandler = (overrideResponse) => {
|
|
1392
|
+
return http.post('*/v1/hosting/:hostingId/emails/keys', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1393
|
+
yield delay(0);
|
|
1394
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1395
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1396
|
+
: getHostingEmailKeysAddResponseMock()), { status: 200,
|
|
1397
|
+
headers: { 'Content-Type': 'application/json' }
|
|
1398
|
+
});
|
|
1399
|
+
}));
|
|
1400
|
+
};
|
|
1401
|
+
export const getHostingEmailKeysListMockHandler = (overrideResponse) => {
|
|
1402
|
+
return http.get('*/v1/hosting/:hostingId/emails/keys', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1403
|
+
yield delay(0);
|
|
1404
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1405
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1406
|
+
: getHostingEmailKeysListResponseMock()), { status: 200,
|
|
1407
|
+
headers: { 'Content-Type': 'application/json' }
|
|
1408
|
+
});
|
|
1409
|
+
}));
|
|
1410
|
+
};
|
|
1411
|
+
export const getHostingEmailDomainRoutingMockHandler = (overrideResponse) => {
|
|
1412
|
+
return http.get('*/v1/hosting/:hostingId/emails/routing', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1413
|
+
yield delay(0);
|
|
1414
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1415
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1416
|
+
: getHostingEmailDomainRoutingResponseMock()), { status: 200,
|
|
1417
|
+
headers: { 'Content-Type': 'application/json' }
|
|
1418
|
+
});
|
|
1419
|
+
}));
|
|
1420
|
+
};
|
|
1421
|
+
export const getHostingEmailDomainRoutingSetMockHandler = (overrideResponse) => {
|
|
1422
|
+
return http.put('*/v1/hosting/:hostingId/emails/routing', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1423
|
+
yield delay(0);
|
|
1424
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1425
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1426
|
+
: getHostingEmailDomainRoutingSetResponseMock()), { status: 200,
|
|
1427
|
+
headers: { 'Content-Type': 'application/json' }
|
|
1428
|
+
});
|
|
1429
|
+
}));
|
|
1430
|
+
};
|
|
1387
1431
|
export const getHostingEmailSettingsMockHandler = (overrideResponse) => {
|
|
1388
1432
|
return http.post('*/v1/hosting/:hostingId/emails/settings', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1389
1433
|
yield delay(0);
|
|
@@ -3044,6 +3088,10 @@ export const getHostingUAPIMock = () => [
|
|
|
3044
3088
|
getHostingEmailForwardersListMockHandler(),
|
|
3045
3089
|
getHostingEmailForwarderAddMockHandler(),
|
|
3046
3090
|
getHostingEmailForwardDeleteMockHandler(),
|
|
3091
|
+
getHostingEmailKeysAddMockHandler(),
|
|
3092
|
+
getHostingEmailKeysListMockHandler(),
|
|
3093
|
+
getHostingEmailDomainRoutingMockHandler(),
|
|
3094
|
+
getHostingEmailDomainRoutingSetMockHandler(),
|
|
3047
3095
|
getHostingEmailSettingsMockHandler(),
|
|
3048
3096
|
getHostingEmailSpamCustomSettingsMockHandler(),
|
|
3049
3097
|
getHostingEmailSpamCustomSettingsUpdateMockHandler(),
|
package/src/index.schemas.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Hosting UAPI
|
|
5
5
|
* Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
|
|
6
|
-
* OpenAPI spec version: 1.
|
|
6
|
+
* OpenAPI spec version: 1.1501.0
|
|
7
7
|
*/
|
|
8
8
|
export declare type SshKeyListV4200RowsItem = {
|
|
9
9
|
authorize?: boolean;
|
|
@@ -541,84 +541,6 @@ export declare type HostingSitesV2200UsedSitesDetails = {
|
|
|
541
541
|
/** Count of sites that are in pending statuses i.e. pending_create pending_reset pending_delete etc */
|
|
542
542
|
sites_pending?: number;
|
|
543
543
|
};
|
|
544
|
-
export declare type HostingSitesV2200ItemsItem = {
|
|
545
|
-
/** @nullable */
|
|
546
|
-
account_back_ref?: string | null;
|
|
547
|
-
account_id?: string;
|
|
548
|
-
/**
|
|
549
|
-
* the current status of the account this site belongs to
|
|
550
|
-
* @nullable
|
|
551
|
-
*/
|
|
552
|
-
account_status?: string | null;
|
|
553
|
-
/** @nullable */
|
|
554
|
-
base_domain?: string | null;
|
|
555
|
-
/**
|
|
556
|
-
* False if site was added by site scanner
|
|
557
|
-
* @nullable
|
|
558
|
-
*/
|
|
559
|
-
confirmed?: boolean | null;
|
|
560
|
-
/** @nullable */
|
|
561
|
-
datacenter?: string | null;
|
|
562
|
-
date_added?: string;
|
|
563
|
-
date_modified?: string;
|
|
564
|
-
detected_type?: string;
|
|
565
|
-
/** @nullable */
|
|
566
|
-
docpath?: string | null;
|
|
567
|
-
/** @nullable */
|
|
568
|
-
docroot?: string | null;
|
|
569
|
-
/** @nullable */
|
|
570
|
-
domain?: string | null;
|
|
571
|
-
edge_cache?: boolean;
|
|
572
|
-
handler_404?: string;
|
|
573
|
-
id?: number;
|
|
574
|
-
/** @nullable */
|
|
575
|
-
installed_id?: string | null;
|
|
576
|
-
/** True if docpath is public_html, otherwise False */
|
|
577
|
-
is_primary?: boolean;
|
|
578
|
-
/**
|
|
579
|
-
* Job ids for the site
|
|
580
|
-
* @nullable
|
|
581
|
-
*/
|
|
582
|
-
jobs?: HostingSitesV2200ItemsItemJobs;
|
|
583
|
-
/** @nullable */
|
|
584
|
-
last_error?: string | null;
|
|
585
|
-
/** @nullable */
|
|
586
|
-
migration_id?: string | null;
|
|
587
|
-
/** @nullable */
|
|
588
|
-
name?: string | null;
|
|
589
|
-
/**
|
|
590
|
-
* Status of the site's onboarding
|
|
591
|
-
* @nullable
|
|
592
|
-
*/
|
|
593
|
-
onboarding?: number | null;
|
|
594
|
-
path?: string;
|
|
595
|
-
/** @nullable */
|
|
596
|
-
pending_url?: string | null;
|
|
597
|
-
/** @nullable */
|
|
598
|
-
pending_url_data?: HostingSitesV2200ItemsItemPendingUrlData;
|
|
599
|
-
/**
|
|
600
|
-
* The Php Version. If unable to determine, it will be NULL
|
|
601
|
-
* @nullable
|
|
602
|
-
*/
|
|
603
|
-
php_version?: string | null;
|
|
604
|
-
resources?: HostingSitesV2200ItemsItemResources;
|
|
605
|
-
/** @nullable */
|
|
606
|
-
staging?: HostingSitesV2200ItemsItemStaging;
|
|
607
|
-
status?: string;
|
|
608
|
-
subtype?: string;
|
|
609
|
-
type?: string;
|
|
610
|
-
/** @nullable */
|
|
611
|
-
url?: string | null;
|
|
612
|
-
/** @nullable */
|
|
613
|
-
url_is_provisional?: boolean | null;
|
|
614
|
-
/** @nullable */
|
|
615
|
-
version?: string | null;
|
|
616
|
-
/**
|
|
617
|
-
* The WP Version
|
|
618
|
-
* @nullable
|
|
619
|
-
*/
|
|
620
|
-
version_ptr?: string | null;
|
|
621
|
-
};
|
|
622
544
|
export declare type HostingSitesV2200 = {
|
|
623
545
|
/**
|
|
624
546
|
* Remaining number of sites the customer can create. Max sites - used sites. Null means 'unlimited'.
|
|
@@ -727,6 +649,84 @@ export declare type HostingSitesV2200ItemsItemPendingUrlData = {
|
|
|
727
649
|
export declare type HostingSitesV2200ItemsItemJobs = {
|
|
728
650
|
[key: string]: unknown;
|
|
729
651
|
} | null;
|
|
652
|
+
export declare type HostingSitesV2200ItemsItem = {
|
|
653
|
+
/** @nullable */
|
|
654
|
+
account_back_ref?: string | null;
|
|
655
|
+
account_id?: string;
|
|
656
|
+
/**
|
|
657
|
+
* the current status of the account this site belongs to
|
|
658
|
+
* @nullable
|
|
659
|
+
*/
|
|
660
|
+
account_status?: string | null;
|
|
661
|
+
/** @nullable */
|
|
662
|
+
base_domain?: string | null;
|
|
663
|
+
/**
|
|
664
|
+
* False if site was added by site scanner
|
|
665
|
+
* @nullable
|
|
666
|
+
*/
|
|
667
|
+
confirmed?: boolean | null;
|
|
668
|
+
/** @nullable */
|
|
669
|
+
datacenter?: string | null;
|
|
670
|
+
date_added?: string;
|
|
671
|
+
date_modified?: string;
|
|
672
|
+
detected_type?: string;
|
|
673
|
+
/** @nullable */
|
|
674
|
+
docpath?: string | null;
|
|
675
|
+
/** @nullable */
|
|
676
|
+
docroot?: string | null;
|
|
677
|
+
/** @nullable */
|
|
678
|
+
domain?: string | null;
|
|
679
|
+
edge_cache?: boolean;
|
|
680
|
+
handler_404?: string;
|
|
681
|
+
id?: number;
|
|
682
|
+
/** @nullable */
|
|
683
|
+
installed_id?: string | null;
|
|
684
|
+
/** True if docpath is public_html, otherwise False */
|
|
685
|
+
is_primary?: boolean;
|
|
686
|
+
/**
|
|
687
|
+
* Job ids for the site
|
|
688
|
+
* @nullable
|
|
689
|
+
*/
|
|
690
|
+
jobs?: HostingSitesV2200ItemsItemJobs;
|
|
691
|
+
/** @nullable */
|
|
692
|
+
last_error?: string | null;
|
|
693
|
+
/** @nullable */
|
|
694
|
+
migration_id?: string | null;
|
|
695
|
+
/** @nullable */
|
|
696
|
+
name?: string | null;
|
|
697
|
+
/**
|
|
698
|
+
* Status of the site's onboarding
|
|
699
|
+
* @nullable
|
|
700
|
+
*/
|
|
701
|
+
onboarding?: number | null;
|
|
702
|
+
path?: string;
|
|
703
|
+
/** @nullable */
|
|
704
|
+
pending_url?: string | null;
|
|
705
|
+
/** @nullable */
|
|
706
|
+
pending_url_data?: HostingSitesV2200ItemsItemPendingUrlData;
|
|
707
|
+
/**
|
|
708
|
+
* The Php Version. If unable to determine, it will be NULL
|
|
709
|
+
* @nullable
|
|
710
|
+
*/
|
|
711
|
+
php_version?: string | null;
|
|
712
|
+
resources?: HostingSitesV2200ItemsItemResources;
|
|
713
|
+
/** @nullable */
|
|
714
|
+
staging?: HostingSitesV2200ItemsItemStaging;
|
|
715
|
+
status?: string;
|
|
716
|
+
subtype?: string;
|
|
717
|
+
type?: string;
|
|
718
|
+
/** @nullable */
|
|
719
|
+
url?: string | null;
|
|
720
|
+
/** @nullable */
|
|
721
|
+
url_is_provisional?: boolean | null;
|
|
722
|
+
/** @nullable */
|
|
723
|
+
version?: string | null;
|
|
724
|
+
/**
|
|
725
|
+
* The WP Version
|
|
726
|
+
* @nullable
|
|
727
|
+
*/
|
|
728
|
+
version_ptr?: string | null;
|
|
729
|
+
};
|
|
730
730
|
export declare type HostingSitesV2Params = {
|
|
731
731
|
limit?: number;
|
|
732
732
|
page?: number;
|
|
@@ -1466,13 +1466,6 @@ export declare type SitesPerformanceCachepurgeBody = {
|
|
|
1466
1466
|
export declare type SitePendingDomainDelete200 = {
|
|
1467
1467
|
[key: string]: unknown;
|
|
1468
1468
|
};
|
|
1469
|
-
export declare type SitesMetricDimensions200 = {
|
|
1470
|
-
date_end?: string;
|
|
1471
|
-
date_start?: string;
|
|
1472
|
-
dimensions?: SitesMetricDimensions200Dimensions;
|
|
1473
|
-
elapsed?: number;
|
|
1474
|
-
metric?: string;
|
|
1475
|
-
};
|
|
1476
1469
|
export declare type SitesMetricDimensions200DimensionsWpAdminAjaxActionItemDimension = {
|
|
1477
1470
|
[key: string]: number;
|
|
1478
1471
|
};
|
|
@@ -1480,6 +1473,25 @@ export declare type SitesMetricDimensions200DimensionsWpAdminAjaxActionItem = {
|
|
|
1480
1473
|
dimension?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItemDimension;
|
|
1481
1474
|
timestamp?: number;
|
|
1482
1475
|
};
|
|
1476
|
+
export declare type SitesMetricDimensions200Dimensions = {
|
|
1477
|
+
http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
|
|
1478
|
+
http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
|
|
1479
|
+
http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
|
|
1480
|
+
http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
|
|
1481
|
+
page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
|
|
1482
|
+
page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
|
|
1483
|
+
visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
|
|
1484
|
+
visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
|
|
1485
|
+
visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
|
|
1486
|
+
wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
|
|
1487
|
+
};
|
|
1488
|
+
export declare type SitesMetricDimensions200 = {
|
|
1489
|
+
date_end?: string;
|
|
1490
|
+
date_start?: string;
|
|
1491
|
+
dimensions?: SitesMetricDimensions200Dimensions;
|
|
1492
|
+
elapsed?: number;
|
|
1493
|
+
metric?: string;
|
|
1494
|
+
};
|
|
1483
1495
|
export declare type SitesMetricDimensions200DimensionsVisitorIsCrawlerItemDimension = {
|
|
1484
1496
|
[key: string]: number;
|
|
1485
1497
|
};
|
|
@@ -1501,18 +1513,6 @@ export declare type SitesMetricDimensions200DimensionsVisitorAsnItem = {
|
|
|
1501
1513
|
dimension?: SitesMetricDimensions200DimensionsVisitorAsnItemDimension;
|
|
1502
1514
|
timestamp?: number;
|
|
1503
1515
|
};
|
|
1504
|
-
export declare type SitesMetricDimensions200Dimensions = {
|
|
1505
|
-
http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
|
|
1506
|
-
http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
|
|
1507
|
-
http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
|
|
1508
|
-
http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
|
|
1509
|
-
page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
|
|
1510
|
-
page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
|
|
1511
|
-
visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
|
|
1512
|
-
visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
|
|
1513
|
-
visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
|
|
1514
|
-
wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
|
|
1515
|
-
};
|
|
1516
1516
|
export declare type SitesMetricDimensions200DimensionsPageRendererItemDimension = {
|
|
1517
1517
|
[key: string]: number;
|
|
1518
1518
|
};
|
|
@@ -3135,6 +3135,86 @@ export declare type HostingEmailSettingsBody = {
|
|
|
3135
3135
|
/** Whether to toggle utf8 folder usage on or off - SYSTEM ONLY */
|
|
3136
3136
|
utf8_folders?: HostingEmailSettingsBodyUtf8Folders;
|
|
3137
3137
|
};
|
|
3138
|
+
export declare type HostingEmailDomainRoutingSet200 = {
|
|
3139
|
+
success?: boolean;
|
|
3140
|
+
};
|
|
3141
|
+
/**
|
|
3142
|
+
* Routing method responsible for handling incoming emails for the domain.
|
|
3143
|
+
*/
|
|
3144
|
+
export declare type HostingEmailDomainRoutingSetBodyRouteType = typeof HostingEmailDomainRoutingSetBodyRouteType[keyof typeof HostingEmailDomainRoutingSetBodyRouteType];
|
|
3145
|
+
export declare const HostingEmailDomainRoutingSetBodyRouteType: {
|
|
3146
|
+
readonly local: "local";
|
|
3147
|
+
readonly remote: "remote";
|
|
3148
|
+
readonly auto: "auto";
|
|
3149
|
+
};
|
|
3150
|
+
export declare type HostingEmailDomainRoutingSetBody = {
|
|
3151
|
+
/** The domain name for which email routing is being configured */
|
|
3152
|
+
domain?: string;
|
|
3153
|
+
/** Routing method responsible for handling incoming emails for the domain. */
|
|
3154
|
+
route_type?: HostingEmailDomainRoutingSetBodyRouteType;
|
|
3155
|
+
};
|
|
3156
|
+
export declare type HostingEmailDomainRouting200 = {
|
|
3157
|
+
domain?: string;
|
|
3158
|
+
route_type?: string;
|
|
3159
|
+
};
|
|
3160
|
+
export declare type HostingEmailDomainRoutingParams = {
|
|
3161
|
+
domain: string;
|
|
3162
|
+
};
|
|
3163
|
+
export declare type HostingEmailKeysList200KeysItem = {
|
|
3164
|
+
/** Specifies the cryptographic algorithm used for the key */
|
|
3165
|
+
algo?: string;
|
|
3166
|
+
/** The Unix timestamp when the key was created */
|
|
3167
|
+
created?: number;
|
|
3168
|
+
/** The user's email address */
|
|
3169
|
+
email?: string;
|
|
3170
|
+
/**
|
|
3171
|
+
* The Unix timestamp when the key expires or becomes invalid
|
|
3172
|
+
* @nullable
|
|
3173
|
+
*/
|
|
3174
|
+
expires?: number | null;
|
|
3175
|
+
/** The hexadecimal key ID is unique identifier for the key */
|
|
3176
|
+
keyid?: string;
|
|
3177
|
+
/** The length of the key in bits */
|
|
3178
|
+
keysize?: number;
|
|
3179
|
+
/** The type of the key */
|
|
3180
|
+
type?: string;
|
|
3181
|
+
/** The user ID associated with the key, includes a name, comment and email */
|
|
3182
|
+
uids?: string;
|
|
3183
|
+
};
|
|
3184
|
+
export declare type HostingEmailKeysList200 = {
|
|
3185
|
+
/** List of public and secret keys */
|
|
3186
|
+
keys?: HostingEmailKeysList200KeysItem[];
|
|
3187
|
+
};
|
|
3188
|
+
export declare type HostingEmailKeysAdd200 = {
|
|
3189
|
+
success?: boolean;
|
|
3190
|
+
};
|
|
3191
|
+
/**
|
|
3192
|
+
* The new key's size, in bytes
|
|
3193
|
+
*/
|
|
3194
|
+
export declare type HostingEmailKeysAddBodyKeysize = typeof HostingEmailKeysAddBodyKeysize[keyof typeof HostingEmailKeysAddBodyKeysize];
|
|
3195
|
+
export declare const HostingEmailKeysAddBodyKeysize: {
|
|
3196
|
+
readonly NUMBER_1024: 1024;
|
|
3197
|
+
readonly NUMBER_2048: 2048;
|
|
3198
|
+
readonly NUMBER_3072: 3072;
|
|
3199
|
+
readonly NUMBER_4096: 4096;
|
|
3200
|
+
};
|
|
3201
|
+
export declare type HostingEmailKeysAddBody = {
|
|
3202
|
+
/** A comment about the key. */
|
|
3203
|
+
comment?: string;
|
|
3204
|
+
/** The user's email address */
|
|
3205
|
+
email?: string;
|
|
3206
|
+
/**
|
|
3207
|
+
* The expiration duration in <days>d or <months>m or <year>y or <weeks>w format
|
|
3208
|
+
* @nullable
|
|
3209
|
+
*/
|
|
3210
|
+
expires_in?: string | null;
|
|
3211
|
+
/** The new key's size, in bytes */
|
|
3212
|
+
keysize?: HostingEmailKeysAddBodyKeysize;
|
|
3213
|
+
/** The name of the user for whom to generate the key */
|
|
3214
|
+
name?: string;
|
|
3215
|
+
/** The key's password */
|
|
3216
|
+
password?: string;
|
|
3217
|
+
};
|
|
3138
3218
|
export declare type HostingEmailForwardDelete200 = {
|
|
3139
3219
|
[key: string]: unknown;
|
|
3140
3220
|
};
|
|
@@ -4322,31 +4402,6 @@ export declare type ActivityLog200 = {
|
|
|
4322
4402
|
export declare type ActivityLogParams = {
|
|
4323
4403
|
days?: number;
|
|
4324
4404
|
};
|
|
4325
|
-
export declare type HostingAccount200ResourcesWorkers = {
|
|
4326
|
-
/** @nullable */
|
|
4327
|
-
available?: number | null;
|
|
4328
|
-
/** @nullable */
|
|
4329
|
-
total?: number | null;
|
|
4330
|
-
/** @nullable */
|
|
4331
|
-
used?: number | null;
|
|
4332
|
-
};
|
|
4333
|
-
export declare type HostingAccount200ResourcesStorage = {
|
|
4334
|
-
/** @nullable */
|
|
4335
|
-
available?: number | null;
|
|
4336
|
-
/** @nullable */
|
|
4337
|
-
total?: number | null;
|
|
4338
|
-
unit?: string;
|
|
4339
|
-
/** @nullable */
|
|
4340
|
-
used?: number | null;
|
|
4341
|
-
};
|
|
4342
|
-
/**
|
|
4343
|
-
* @nullable
|
|
4344
|
-
*/
|
|
4345
|
-
export declare type HostingAccount200Resources = {
|
|
4346
|
-
staging?: HostingAccount200ResourcesStaging;
|
|
4347
|
-
storage?: HostingAccount200ResourcesStorage;
|
|
4348
|
-
workers?: HostingAccount200ResourcesWorkers;
|
|
4349
|
-
} | null;
|
|
4350
4405
|
export declare type HostingAccount200 = {
|
|
4351
4406
|
account_id?: string;
|
|
4352
4407
|
advanced?: boolean;
|
|
@@ -4364,6 +4419,23 @@ export declare type HostingAccount200 = {
|
|
|
4364
4419
|
type?: string;
|
|
4365
4420
|
username?: string;
|
|
4366
4421
|
};
|
|
4422
|
+
export declare type HostingAccount200ResourcesWorkers = {
|
|
4423
|
+
/** @nullable */
|
|
4424
|
+
available?: number | null;
|
|
4425
|
+
/** @nullable */
|
|
4426
|
+
total?: number | null;
|
|
4427
|
+
/** @nullable */
|
|
4428
|
+
used?: number | null;
|
|
4429
|
+
};
|
|
4430
|
+
export declare type HostingAccount200ResourcesStorage = {
|
|
4431
|
+
/** @nullable */
|
|
4432
|
+
available?: number | null;
|
|
4433
|
+
/** @nullable */
|
|
4434
|
+
total?: number | null;
|
|
4435
|
+
unit?: string;
|
|
4436
|
+
/** @nullable */
|
|
4437
|
+
used?: number | null;
|
|
4438
|
+
};
|
|
4367
4439
|
export declare type HostingAccount200ResourcesStagingWorkers = {
|
|
4368
4440
|
/** @nullable */
|
|
4369
4441
|
available?: number | null;
|
|
@@ -4385,6 +4457,14 @@ export declare type HostingAccount200ResourcesStaging = {
|
|
|
4385
4457
|
storage?: HostingAccount200ResourcesStagingStorage;
|
|
4386
4458
|
workers?: HostingAccount200ResourcesStagingWorkers;
|
|
4387
4459
|
};
|
|
4460
|
+
/**
|
|
4461
|
+
* @nullable
|
|
4462
|
+
*/
|
|
4463
|
+
export declare type HostingAccount200Resources = {
|
|
4464
|
+
staging?: HostingAccount200ResourcesStaging;
|
|
4465
|
+
storage?: HostingAccount200ResourcesStorage;
|
|
4466
|
+
workers?: HostingAccount200ResourcesWorkers;
|
|
4467
|
+
} | null;
|
|
4388
4468
|
export declare type HostingAccount200Billing = {
|
|
4389
4469
|
prod_code?: string;
|
|
4390
4470
|
product_name?: string;
|
package/src/index.schemas.js
CHANGED
|
@@ -226,6 +226,19 @@ export const HostingEmailSettingsBodyAccountIncoming = {
|
|
|
226
226
|
unsuspend: 'unsuspend',
|
|
227
227
|
};
|
|
228
228
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
229
|
+
export const HostingEmailDomainRoutingSetBodyRouteType = {
|
|
230
|
+
local: 'local',
|
|
231
|
+
remote: 'remote',
|
|
232
|
+
auto: 'auto',
|
|
233
|
+
};
|
|
234
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
235
|
+
export const HostingEmailKeysAddBodyKeysize = {
|
|
236
|
+
NUMBER_1024: 1024,
|
|
237
|
+
NUMBER_2048: 2048,
|
|
238
|
+
NUMBER_3072: 3072,
|
|
239
|
+
NUMBER_4096: 4096,
|
|
240
|
+
};
|
|
241
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
229
242
|
export const HostingEmailForwardDeleteType = {
|
|
230
243
|
account: 'account',
|
|
231
244
|
domain: 'domain',
|