@newfold/huapi-js 2.1496.0 → 2.1503.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 CHANGED
@@ -10,7 +10,7 @@
10
10
  "tslib": "2.7.0"
11
11
  },
12
12
  "module": "dist/index.ts",
13
- "version": "2.1496.0",
13
+ "version": "2.1503.0",
14
14
  "sideEffects": false,
15
15
  "main": "./src/index.js",
16
16
  "types": "./src/index.d.ts",
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.1496.0
6
+ * OpenAPI spec version: 1.1503.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
@@ -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,10 +4,11 @@ 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.1496.0
7
+ * OpenAPI spec version: 1.1503.0
8
8
  */
9
9
  import { faker } from '@faker-js/faker';
10
10
  import { HttpResponse, delay, http } from 'msw';
11
+ import { FilterAction, FilterRuleMatch, FilterRuleOpt, FilterRulePart } from './index.schemas';
11
12
  export const getAccountEventListResponseMock = (overrideResponse = {}) => (Object.assign({ events: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ addon_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), count: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), date_first: faker.helpers.arrayElement([faker.word.sample(), undefined]), date_last: faker.helpers.arrayElement([faker.word.sample(), undefined]), domain_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), event: faker.helpers.arrayElement([faker.word.sample(), undefined]), hosting_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), site_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), tenant_id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) })), undefined]), utc: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
12
13
  export const getAccountFeaturesResponseMock = (overrideResponse = {}) => (Object.assign({ rows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ back_reference: faker.helpers.arrayElement([faker.word.sample(), undefined]), feature_set: faker.helpers.arrayElement([faker.word.sample(), undefined]), info: faker.helpers.arrayElement([{ addon_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), addon_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), brand: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), brand_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), data_center: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_added: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_modified: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), feature_set: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), homedir: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ip: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), limit_remote: faker.helpers.arrayElement([{ quota_kib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), meta: faker.helpers.arrayElement([{ main_domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), prev_tenant: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), ns: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), operating_system: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), platform: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), server_type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), ssh_hostname: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), tenant_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), tenant_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), username: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), limit: faker.helpers.arrayElement([{ disk_limit_gib: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), package: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), panel: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), used: faker.helpers.arrayElement([{ disk_usage: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), sites_active: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), staging_sites: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]) })), undefined]), total_count: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
13
14
  export const getAccountHostingListResponseMock = (overrideResponse = {}) => (Object.assign({ accounts: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ account_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), current_sites: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), feature_set: faker.helpers.arrayElement([faker.word.sample(), undefined]), hosting_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), max_sites: faker.helpers.arrayElement([faker.word.sample(), undefined]), platform: faker.helpers.arrayElement([faker.word.sample(), undefined]), prod_inst_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), region_desc: faker.helpers.arrayElement([faker.word.sample(), undefined]), region_type: faker.helpers.arrayElement([faker.word.sample(), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
@@ -112,13 +113,17 @@ export const getHostingEmailAutoresponderUpdateResponseMock = (overrideResponse
112
113
  export const getHostingEmailAutoresponderCreateResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
113
114
  export const getHostingEmailAutoresponderDeleteResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
114
115
  export const getHostingEmailAutoresponderListResponseMock = (overrideResponse = {}) => (Object.assign({ autoresponders: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ email: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), subject: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]) }, overrideResponse));
115
- export const getHostingEmailFiltersListResponseMock = (overrideResponse = {}) => (Object.assign({ count: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), filters: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ actions: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ action: faker.helpers.arrayElement([faker.word.sample(), undefined]), dest: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]), enabled: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]), rules: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ match: faker.helpers.arrayElement([faker.word.sample(), undefined]), opt: faker.helpers.arrayElement([faker.word.sample(), undefined]), part: faker.helpers.arrayElement([faker.word.sample(), undefined]), val: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]), unescaped: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) })), undefined]) }, overrideResponse));
116
+ export const getHostingEmailFiltersListResponseMock = (overrideResponse = {}) => (Object.assign({ count: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), filters: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ actions: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ action: faker.helpers.arrayElement([faker.helpers.arrayElement(Object.values(FilterAction)), undefined]), dest: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]), enabled: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]), rules: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ match: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.helpers.arrayElement(Object.values(FilterRuleMatch)), null]), undefined]), opt: faker.helpers.arrayElement([faker.helpers.arrayElement(Object.values(FilterRuleOpt)), undefined]), part: faker.helpers.arrayElement([faker.helpers.arrayElement(Object.values(FilterRulePart)), undefined]), val: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]), unescaped: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) })), undefined]) }, overrideResponse));
116
117
  export const getHostingEmailFiltersAddResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
117
118
  export const getHostingEmailFiltersUpdateResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
118
119
  export const getHostingEmailFiltersDeleteResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
119
120
  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
121
  export const getHostingEmailForwarderAddResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
121
122
  export const getHostingEmailForwardDeleteResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
123
+ export const getHostingEmailKeysAddResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
124
+ 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));
125
+ export const getHostingEmailDomainRoutingResponseMock = (overrideResponse = {}) => (Object.assign({ domain: faker.helpers.arrayElement([faker.word.sample(), undefined]), route_type: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
126
+ export const getHostingEmailDomainRoutingSetResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
122
127
  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
128
  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
129
  export const getHostingEmailSpamCustomSettingsUpdateResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
@@ -1384,6 +1389,46 @@ export const getHostingEmailForwardDeleteMockHandler = (overrideResponse) => {
1384
1389
  });
1385
1390
  }));
1386
1391
  };
1392
+ export const getHostingEmailKeysAddMockHandler = (overrideResponse) => {
1393
+ return http.post('*/v1/hosting/:hostingId/emails/keys', (info) => __awaiter(void 0, void 0, void 0, function* () {
1394
+ yield delay(0);
1395
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
1396
+ ? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
1397
+ : getHostingEmailKeysAddResponseMock()), { status: 200,
1398
+ headers: { 'Content-Type': 'application/json' }
1399
+ });
1400
+ }));
1401
+ };
1402
+ export const getHostingEmailKeysListMockHandler = (overrideResponse) => {
1403
+ return http.get('*/v1/hosting/:hostingId/emails/keys', (info) => __awaiter(void 0, void 0, void 0, function* () {
1404
+ yield delay(0);
1405
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
1406
+ ? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
1407
+ : getHostingEmailKeysListResponseMock()), { status: 200,
1408
+ headers: { 'Content-Type': 'application/json' }
1409
+ });
1410
+ }));
1411
+ };
1412
+ export const getHostingEmailDomainRoutingMockHandler = (overrideResponse) => {
1413
+ return http.get('*/v1/hosting/:hostingId/emails/routing', (info) => __awaiter(void 0, void 0, void 0, function* () {
1414
+ yield delay(0);
1415
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
1416
+ ? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
1417
+ : getHostingEmailDomainRoutingResponseMock()), { status: 200,
1418
+ headers: { 'Content-Type': 'application/json' }
1419
+ });
1420
+ }));
1421
+ };
1422
+ export const getHostingEmailDomainRoutingSetMockHandler = (overrideResponse) => {
1423
+ return http.put('*/v1/hosting/:hostingId/emails/routing', (info) => __awaiter(void 0, void 0, void 0, function* () {
1424
+ yield delay(0);
1425
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
1426
+ ? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
1427
+ : getHostingEmailDomainRoutingSetResponseMock()), { status: 200,
1428
+ headers: { 'Content-Type': 'application/json' }
1429
+ });
1430
+ }));
1431
+ };
1387
1432
  export const getHostingEmailSettingsMockHandler = (overrideResponse) => {
1388
1433
  return http.post('*/v1/hosting/:hostingId/emails/settings', (info) => __awaiter(void 0, void 0, void 0, function* () {
1389
1434
  yield delay(0);
@@ -3044,6 +3089,10 @@ export const getHostingUAPIMock = () => [
3044
3089
  getHostingEmailForwardersListMockHandler(),
3045
3090
  getHostingEmailForwarderAddMockHandler(),
3046
3091
  getHostingEmailForwardDeleteMockHandler(),
3092
+ getHostingEmailKeysAddMockHandler(),
3093
+ getHostingEmailKeysListMockHandler(),
3094
+ getHostingEmailDomainRoutingMockHandler(),
3095
+ getHostingEmailDomainRoutingSetMockHandler(),
3047
3096
  getHostingEmailSettingsMockHandler(),
3048
3097
  getHostingEmailSpamCustomSettingsMockHandler(),
3049
3098
  getHostingEmailSpamCustomSettingsUpdateMockHandler(),
@@ -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.1496.0
6
+ * OpenAPI spec version: 1.1503.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;
@@ -1333,6 +1333,9 @@ export declare type SiteQualityMetrics200AspectScores = {
1333
1333
  performance?: number;
1334
1334
  seo?: number;
1335
1335
  };
1336
+ export declare type SiteQualityMetrics200AspectDetails = {
1337
+ performance?: SiteQualityMetrics200AspectDetailsPerformance;
1338
+ };
1336
1339
  export declare type SiteQualityMetrics200 = {
1337
1340
  aspect_details: SiteQualityMetrics200AspectDetails;
1338
1341
  aspect_scores: SiteQualityMetrics200AspectScores;
@@ -1363,9 +1366,6 @@ export declare type SiteQualityMetrics200AspectDetailsPerformance = {
1363
1366
  'speed-index'?: SiteQualityMetrics200AspectDetailsPerformanceSpeedIndex;
1364
1367
  'total-blocking-time'?: SiteQualityMetrics200AspectDetailsPerformanceTotalBlockingTime;
1365
1368
  };
1366
- export declare type SiteQualityMetrics200AspectDetails = {
1367
- performance?: SiteQualityMetrics200AspectDetailsPerformance;
1368
- };
1369
1369
  export declare type SiteQualityMetricsStrategy = typeof SiteQualityMetricsStrategy[keyof typeof SiteQualityMetricsStrategy];
1370
1370
  export declare const SiteQualityMetricsStrategy: {
1371
1371
  readonly MOBILE: "MOBILE";
@@ -1494,13 +1494,6 @@ export declare type SitesMetricDimensions200DimensionsVisitorCountryCodeItem = {
1494
1494
  dimension?: SitesMetricDimensions200DimensionsVisitorCountryCodeItemDimension;
1495
1495
  timestamp?: number;
1496
1496
  };
1497
- export declare type SitesMetricDimensions200DimensionsVisitorAsnItemDimension = {
1498
- [key: string]: number;
1499
- };
1500
- export declare type SitesMetricDimensions200DimensionsVisitorAsnItem = {
1501
- dimension?: SitesMetricDimensions200DimensionsVisitorAsnItemDimension;
1502
- timestamp?: number;
1503
- };
1504
1497
  export declare type SitesMetricDimensions200Dimensions = {
1505
1498
  http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
1506
1499
  http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
@@ -1513,6 +1506,13 @@ export declare type SitesMetricDimensions200Dimensions = {
1513
1506
  visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
1514
1507
  wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
1515
1508
  };
1509
+ export declare type SitesMetricDimensions200DimensionsVisitorAsnItemDimension = {
1510
+ [key: string]: number;
1511
+ };
1512
+ export declare type SitesMetricDimensions200DimensionsVisitorAsnItem = {
1513
+ dimension?: SitesMetricDimensions200DimensionsVisitorAsnItemDimension;
1514
+ timestamp?: number;
1515
+ };
1516
1516
  export declare type SitesMetricDimensions200DimensionsPageRendererItemDimension = {
1517
1517
  [key: string]: number;
1518
1518
  };
@@ -1959,6 +1959,10 @@ export declare type SitesAtomicMetrics200Views = {
1959
1959
  last_n_days?: SitesAtomicMetrics200ViewsLastNDaysItem[];
1960
1960
  total_hits?: number;
1961
1961
  };
1962
+ export declare type SitesAtomicMetrics200 = {
1963
+ raw?: SitesAtomicMetrics200Raw;
1964
+ views?: SitesAtomicMetrics200Views;
1965
+ };
1962
1966
  export declare type SitesAtomicMetrics200RawPeriodsItemDimension = {
1963
1967
  [key: string]: string | number | number;
1964
1968
  };
@@ -1976,10 +1980,6 @@ export declare type SitesAtomicMetrics200Raw = {
1976
1980
  periods?: SitesAtomicMetrics200RawPeriodsItem[];
1977
1981
  resolution?: number;
1978
1982
  };
1979
- export declare type SitesAtomicMetrics200 = {
1980
- raw?: SitesAtomicMetrics200Raw;
1981
- views?: SitesAtomicMetrics200Views;
1982
- };
1983
1983
  export declare type SitesAtomicMetricsParams = {
1984
1984
  metric?: string[];
1985
1985
  dimension?: string[];
@@ -2215,17 +2215,6 @@ export declare type HostingVisitors200VisitorsItem = {
2215
2215
  unique_visitors?: number;
2216
2216
  visitors?: number;
2217
2217
  };
2218
- export declare type HostingVisitors200 = {
2219
- daily?: HostingVisitors200Daily;
2220
- is_linked_domain?: boolean;
2221
- linked_domain?: string;
2222
- total_bandwidth?: number;
2223
- total_hits?: number;
2224
- total_pages?: number;
2225
- total_unique_visitors?: number;
2226
- total_visitors?: number;
2227
- visitors?: HostingVisitors200VisitorsItem[];
2228
- };
2229
2218
  export declare type HostingVisitors200DailyTotal = {
2230
2219
  total_bandwidth?: number;
2231
2220
  total_hits?: number;
@@ -2245,6 +2234,17 @@ export declare type HostingVisitors200Daily = {
2245
2234
  data?: HostingVisitors200DailyDataItem[];
2246
2235
  total?: HostingVisitors200DailyTotal;
2247
2236
  };
2237
+ export declare type HostingVisitors200 = {
2238
+ daily?: HostingVisitors200Daily;
2239
+ is_linked_domain?: boolean;
2240
+ linked_domain?: string;
2241
+ total_bandwidth?: number;
2242
+ total_hits?: number;
2243
+ total_pages?: number;
2244
+ total_unique_visitors?: number;
2245
+ total_visitors?: number;
2246
+ visitors?: HostingVisitors200VisitorsItem[];
2247
+ };
2248
2248
  export declare type HostingVisitorsSource = typeof HostingVisitorsSource[keyof typeof HostingVisitorsSource];
2249
2249
  export declare const HostingVisitorsSource: {
2250
2250
  readonly http: "http";
@@ -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
  };
@@ -3267,20 +3347,22 @@ export declare type HostingEmailFiltersUpdate200 = {
3267
3347
  [key: string]: unknown;
3268
3348
  };
3269
3349
  export declare type HostingEmailFiltersUpdateBodyRulesItem = {
3270
- /** The match type (e.g., contains, equals, regex) */
3271
- match?: string;
3272
- /** The match operation (e.g., or, and, not) */
3273
- opt?: string;
3274
- /** The part of the email to match against (e.g., header_from, header_subject, body) */
3275
- part?: string;
3276
- /** The value to match against */
3277
- val?: string;
3350
+ match?: FilterRuleMatch;
3351
+ opt?: FilterRuleOpt;
3352
+ part?: FilterRulePart;
3353
+ /**
3354
+ * The value to match against, not required for rule part 'error_message' or 'not_delivered'
3355
+ * @nullable
3356
+ */
3357
+ val?: string | null;
3278
3358
  };
3279
3359
  export declare type HostingEmailFiltersUpdateBodyActionsItem = {
3280
- /** The name of the action (e.g., move, copy, forward) */
3281
- action?: string;
3282
- /** The destination for the action (e.g., folder name, email address, script path, etc) */
3283
- dest?: string;
3360
+ action?: FilterAction;
3361
+ /**
3362
+ * The destination for the action (e.g., folder name, email address, script path, etc)
3363
+ * @nullable
3364
+ */
3365
+ dest?: string | null;
3284
3366
  };
3285
3367
  export declare type HostingEmailFiltersUpdateBody = {
3286
3368
  /** list of actions to be taken when the filter matches */
@@ -3298,20 +3380,22 @@ export declare type HostingEmailFiltersAdd200 = {
3298
3380
  [key: string]: unknown;
3299
3381
  };
3300
3382
  export declare type HostingEmailFiltersAddBodyRulesItem = {
3301
- /** The match type (e.g., contains, equals, regex) */
3302
- match?: string;
3303
- /** The match operation (e.g., or, and, not) */
3304
- opt?: string;
3305
- /** The part of the email to match against (e.g., header_from, header_subject, body) */
3306
- part?: string;
3307
- /** The value to match against */
3308
- val?: string;
3383
+ match?: FilterRuleMatch;
3384
+ opt?: FilterRuleOpt;
3385
+ part?: FilterRulePart;
3386
+ /**
3387
+ * The value to match against, not required for rule part 'error_message' or 'not_delivered'
3388
+ * @nullable
3389
+ */
3390
+ val?: string | null;
3309
3391
  };
3310
3392
  export declare type HostingEmailFiltersAddBodyActionsItem = {
3311
- /** The name of the action (e.g., move, copy, forward) */
3312
- action?: string;
3313
- /** The destination for the action (e.g., folder name, email address, script path, etc) */
3314
- dest?: string;
3393
+ action?: FilterAction;
3394
+ /**
3395
+ * The destination for the action (e.g., folder name, email address, script path, etc)
3396
+ * @nullable
3397
+ */
3398
+ dest?: string | null;
3315
3399
  };
3316
3400
  export declare type HostingEmailFiltersAddBody = {
3317
3401
  /** list of actions to be taken when the filter matches */
@@ -3323,27 +3407,23 @@ export declare type HostingEmailFiltersAddBody = {
3323
3407
  /** list of rules to be applied to the filter */
3324
3408
  rules?: HostingEmailFiltersAddBodyRulesItem[];
3325
3409
  };
3326
- export declare type HostingEmailFiltersList200 = {
3327
- /** The number of filters */
3328
- count?: number;
3329
- /** List of filters */
3330
- filters?: HostingEmailFiltersList200FiltersItem[];
3331
- };
3332
3410
  export declare type HostingEmailFiltersList200FiltersItemRulesItem = {
3333
- /** Match type (e.g., contains, equals) */
3334
- match?: string;
3335
- /** The match operation (or, and, not, etc) */
3336
- opt?: string;
3337
- /** The part to match against */
3338
- part?: string;
3339
- /** The value to match against */
3340
- val?: string;
3411
+ match?: FilterRuleMatch;
3412
+ opt?: FilterRuleOpt;
3413
+ part?: FilterRulePart;
3414
+ /**
3415
+ * The value to match against, not required for rule part 'error_message' or 'not_delivered'
3416
+ * @nullable
3417
+ */
3418
+ val?: string | null;
3341
3419
  };
3342
3420
  export declare type HostingEmailFiltersList200FiltersItemActionsItem = {
3343
- /** The name of the action (e.g., move, copy, forward) */
3344
- action?: string;
3345
- /** The destination for the action (e.g., folder name, email address, script path, etc) */
3346
- dest?: string;
3421
+ action?: FilterAction;
3422
+ /**
3423
+ * The destination for the action (e.g., folder name, email address, script path, etc)
3424
+ * @nullable
3425
+ */
3426
+ dest?: string | null;
3347
3427
  };
3348
3428
  export declare type HostingEmailFiltersList200FiltersItem = {
3349
3429
  /** Where the email will be forwarded to */
@@ -3357,6 +3437,12 @@ export declare type HostingEmailFiltersList200FiltersItem = {
3357
3437
  /** Whether the filter is unescaped */
3358
3438
  unescaped?: boolean;
3359
3439
  };
3440
+ export declare type HostingEmailFiltersList200 = {
3441
+ /** The number of filters */
3442
+ count?: number;
3443
+ /** List of filters */
3444
+ filters?: HostingEmailFiltersList200FiltersItem[];
3445
+ };
3360
3446
  export declare type HostingEmailFiltersListParams = {
3361
3447
  /**
3362
3448
  * The email account address to query filters by
@@ -4757,10 +4843,6 @@ export declare type BackupMeta200Site = {
4757
4843
  /** @nullable */
4758
4844
  cbs_downloadables?: BackupMeta200SiteCbsDownloadablesItem[] | null;
4759
4845
  };
4760
- export declare type BackupMeta200 = {
4761
- account?: BackupMeta200Account;
4762
- site?: BackupMeta200Site;
4763
- };
4764
4846
  /**
4765
4847
  * @nullable
4766
4848
  */
@@ -4790,6 +4872,10 @@ export declare type BackupMeta200Account = {
4790
4872
  /** @nullable */
4791
4873
  cbs_last_restore_timestamp?: string | null;
4792
4874
  };
4875
+ export declare type BackupMeta200 = {
4876
+ account?: BackupMeta200Account;
4877
+ site?: BackupMeta200Site;
4878
+ };
4793
4879
  export declare type BackupMetaParams = {
4794
4880
  site_id?: number;
4795
4881
  };
@@ -5638,6 +5724,65 @@ export declare const AutoresponderCharset: {
5638
5724
  readonly 'windows-1252': "windows-1252";
5639
5725
  readonly 'windows-31j': "windows-31j";
5640
5726
  };
5727
+ /**
5728
+ * Conjunction for succeeding rule
5729
+ */
5730
+ export declare type FilterRuleOpt = typeof FilterRuleOpt[keyof typeof FilterRuleOpt];
5731
+ export declare const FilterRuleOpt: {
5732
+ readonly or: "or";
5733
+ readonly and: "and";
5734
+ };
5735
+ /**
5736
+ * The type of match to perform
5737
+ * @nullable
5738
+ */
5739
+ export declare type FilterRuleMatch = typeof FilterRuleMatch[keyof typeof FilterRuleMatch] | null;
5740
+ export declare const FilterRuleMatch: {
5741
+ readonly matches: "matches";
5742
+ readonly does_not_match: "does not match";
5743
+ readonly contains: "contains";
5744
+ readonly does_not_contain: "does not contain";
5745
+ readonly begins: "begins";
5746
+ readonly does_not_begin: "does not begin";
5747
+ readonly ends: "ends";
5748
+ readonly does_not_end: "does not end";
5749
+ readonly is_above: "is above";
5750
+ readonly is_not_above: "is not above";
5751
+ readonly is_below: "is below";
5752
+ readonly is_not_below: "is not below";
5753
+ readonly equals: "equals";
5754
+ };
5755
+ /**
5756
+ * The part of the email to match
5757
+ */
5758
+ export declare type FilterRulePart = typeof FilterRulePart[keyof typeof FilterRulePart];
5759
+ export declare const FilterRulePart: {
5760
+ readonly spam_bar: "spam_bar";
5761
+ readonly spam_score: "spam_score";
5762
+ readonly spam_status: "spam_status";
5763
+ readonly list_id: "list_id";
5764
+ readonly from: "from";
5765
+ readonly subject: "subject";
5766
+ readonly to: "to";
5767
+ readonly reply_to_or_to: "reply_to_or_to";
5768
+ readonly body: "body";
5769
+ readonly any_header: "any_header";
5770
+ readonly faa_to_or_cc: "faa_to_or_cc";
5771
+ readonly not_delivered: "not_delivered";
5772
+ readonly error_message: "error_message";
5773
+ };
5774
+ /**
5775
+ * The action to take for the filter
5776
+ */
5777
+ export declare type FilterAction = typeof FilterAction[keyof typeof FilterAction];
5778
+ export declare const FilterAction: {
5779
+ readonly fail: "fail";
5780
+ readonly finish: "finish";
5781
+ readonly deliver: "deliver";
5782
+ readonly pipe: "pipe";
5783
+ readonly save: "save";
5784
+ readonly blackhole: "blackhole";
5785
+ };
5641
5786
  export interface FolderNode {
5642
5787
  /** Child folders of the child folder */
5643
5788
  children?: FolderNode[];
@@ -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',
@@ -539,6 +552,52 @@ export const AutoresponderCharset = {
539
552
  'windows-31j': 'windows-31j',
540
553
  };
541
554
  // eslint-disable-next-line @typescript-eslint/no-redeclare
555
+ export const FilterRuleOpt = {
556
+ or: 'or',
557
+ and: 'and',
558
+ };
559
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
560
+ export const FilterRuleMatch = {
561
+ matches: 'matches',
562
+ does_not_match: 'does not match',
563
+ contains: 'contains',
564
+ does_not_contain: 'does not contain',
565
+ begins: 'begins',
566
+ does_not_begin: 'does not begin',
567
+ ends: 'ends',
568
+ does_not_end: 'does not end',
569
+ is_above: 'is above',
570
+ is_not_above: 'is not above',
571
+ is_below: 'is below',
572
+ is_not_below: 'is not below',
573
+ equals: 'equals',
574
+ };
575
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
576
+ export const FilterRulePart = {
577
+ spam_bar: 'spam_bar',
578
+ spam_score: 'spam_score',
579
+ spam_status: 'spam_status',
580
+ list_id: 'list_id',
581
+ from: 'from',
582
+ subject: 'subject',
583
+ to: 'to',
584
+ reply_to_or_to: 'reply_to_or_to',
585
+ body: 'body',
586
+ any_header: 'any_header',
587
+ faa_to_or_cc: 'faa_to_or_cc',
588
+ not_delivered: 'not_delivered',
589
+ error_message: 'error_message',
590
+ };
591
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
592
+ export const FilterAction = {
593
+ fail: 'fail',
594
+ finish: 'finish',
595
+ deliver: 'deliver',
596
+ pipe: 'pipe',
597
+ save: 'save',
598
+ blackhole: 'blackhole',
599
+ };
600
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
542
601
  export const SpamCustomScoreSubtypes = {
543
602
  ACCESSDB: 'ACCESSDB',
544
603
  ACCT_PHISHING: 'ACCT_PHISHING',