@newfold/huapi-js 2.2048.0 → 2.2058.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.2048.0",
13
+ "version": "2.2058.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, AccountAddonList200, AccountAddonListParams, AccountEventList200, AccountEventListParams, AccountFeatures200, AccountFeaturesParams, AccountHostingList200, AccountHostingListParams, AccountHostingListV2200, AccountHostingListV2Params, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, AccountPurchaseHosting200, AccountPurchaseHosting400, AccountPurchaseHosting401, AccountPurchaseHosting403, AccountPurchaseHosting404, AccountPurchaseHosting502, AccountPurchaseHostingBody, AccountPurchaseOrder200, AccountPurchaseOrder400, AccountPurchaseOrder401, AccountPurchaseOrder403, AccountPurchaseOrder404, AccountPurchaseProducts200, AccountPurchaseProducts400, AccountPurchaseProducts401, AccountPurchaseProducts403, AccountPurchaseProducts502, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsCloudflareExternalNsCheckParams, AddonsInfo200, AddonsJetpackValidate200, AddonsLlmBalance200, AddonsLlmKeys200, AddonsLlmKeysCreate200, AddonsLlmKeysCreateBody, AddonsLlmKeysDelete200, AddonsLlmKeysDeleteBody, AddonsLlmKeysParams, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsDomainAssign200, AddonsSpamexpertsDomainAssignBody, AddonsSpamexpertsSso200, AddonsSync200, AddonsWorkflows200, AddonsWorkflowsParams, AllUserMonarxDetails200, Announcements200, BackupCreateOndemandV1200, BackupCreateOndemandV1400, BackupCreateOndemandV1403, BackupCreateOndemandV1404, BackupCreateOndemandV1409, BackupCreateOndemandV1Body, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupCustomDeleteV1200, BackupCustomDeleteV1400, BackupCustomDeleteV1403, BackupCustomDeleteV1404, BackupCustomDeleteV1409, BackupCustomDeleteV1Body, BackupDownloadV2200, BackupDownloadV2400, BackupDownloadV2403, BackupDownloadV2404, BackupDownloadV2409, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupListV3200, BackupListV3Params, BackupMeta200, BackupMetaParams, BackupPrefSetStatus200, BackupPrefSetStatusBody, BackupRestoreV2200, BackupRestoreV2Body, BackupRestoreV3200, BackupRestoreV3400, BackupRestoreV3403, BackupRestoreV3404, BackupRestoreV3409, BackupRestoreV3Body, BackupSettings200, BackupSettingsCreate200, BackupSettingsCreateBody, BackupSettingsUpdate200, BackupSettingsUpdateBody, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupStatusV3200, BackupStatusV3400, BackupStatusV3Params, BackupUsage200, BackupsJetpackBackup200, BullhornAnnouncements200, 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, DomainEmailDeliverability200, DomainHealth200, DomainHealthParams, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, EntriJwt200, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedConsole200, HostingAdvancedConsoleParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedImagesParams, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerHealthcheck200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedServerV2200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingBackups200, 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, HostingEmailSetupInfo200, HostingEmailSetupInfo404, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamCustomSettingsUpdateBody, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailSpamSettingsUpdateBody, HostingEmailTestSend200, HostingEmailTestSend403, HostingEmailTestSend404, HostingEmailTestSend512, HostingEmailTestSendBody, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingLicenseInfo200, HostingLicenseInfoParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingMonarxAddonsList200, HostingMonarxAddonsListParams, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingPasswordUpdate200, HostingPasswordUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoBody, HostingRepoList200Item, HostingRepoLog200, HostingRepoLogParams, HostingRepoSync200, HostingRepoSyncBody, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingSendEmailSetupInfo404, HostingSendEmailSetupInfoBody, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSiteAddV3200, HostingSiteAddV3Body, HostingSitesV2200, HostingSitesV2Params, HostingSpamexpertsEligibleDomains200, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, MonarxAddonReportUrl200, MonarxAddonReportUrlParams, MonarxAddonSealGeneration200, MonarxAddonSealGenerationParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, PublicImages200, PublicImagesParams, PublicImagesV2200, PublicImagesV2Params, PublicRegions200, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstallBody, SitePluginInstaller200, SitePluginInstallerBody, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteThemeInstall200, SiteThemeInstallBody, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SiteWpGenerate200, SiteWpGenerateBody, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBackupsXcitium200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesOnboardingSteps200, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisPurgeBody, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisToggleBody, SitesPerformanceRedisUninstall200, SitesPerformanceScans200, SitesPerformanceScansAdd200, SitesPerformanceScansAddBody, SitesPerformanceScansList200, SitesPerformanceScansListParams, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionInheritanceParams, 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, UserBillingAccounts200, UserBillingAccounts401, UserBillingAccounts502, UserHosting200, UserHostingOverview200, UserHostingOverviewParams, UserHostingParams, UserProducts200, UserProducts401, UserProducts502, UserProservices200, UserServers200, UserServersParams, UserSpamexperts200, WaldaiSso200, WaldaiSso404, WaldaiSso502, WebzaiSso200, WeeblySso200, XcitiumBackupCreate200, XcitiumBackupCreateBody, XcitiumBackupDownload200, XcitiumBackupDownloadBody, XcitiumBackupList200, XcitiumBackupListParams, XcitiumBackupRestore200, XcitiumBackupRestoreBody, XcitiumPlanInfo200, XcitiumSso200 } from './index.schemas';
4
+ import type { AccessLogs200, AccessLogsParams, AccountAddonList200, AccountAddonListParams, AccountEventList200, AccountEventListParams, AccountFeatures200, AccountFeaturesParams, AccountHostingList200, AccountHostingListParams, AccountHostingListV2200, AccountHostingListV2Params, AccountPublicKey200, AccountPublicKey404, AccountPublicKeyCreate200, AccountPublicKeyCreate409, AccountPublicKeyCreateBody, AccountPublicKeyDelete200, AccountPublicKeyDelete404, AccountPublicKeyToggle200, AccountPublicKeyToggle409, AccountPublicKeyToggleBody, AccountPublicKeys200, AccountPurchaseHosting200, AccountPurchaseHosting400, AccountPurchaseHosting401, AccountPurchaseHosting403, AccountPurchaseHosting404, AccountPurchaseHosting502, AccountPurchaseHostingBody, AccountPurchaseOrder200, AccountPurchaseOrder400, AccountPurchaseOrder401, AccountPurchaseOrder403, AccountPurchaseOrder404, AccountPurchaseProducts200, AccountPurchaseProducts400, AccountPurchaseProducts401, AccountPurchaseProducts403, AccountPurchaseProducts502, ActivityLog200, ActivityLogParams, AddCron200, AddCron400, AddCronBody, AddHostingRedirects200, AddHostingRedirectsBody, AddIndex200, AddIndexBody, AddPrivacy200, AddPrivacyBody, AddSiteIpaddress200, AddSiteIpaddressBody, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsCloudflareExternalNsCheckParams, AddonsInfo200, AddonsJetpackValidate200, AddonsLlmBalance200, AddonsLlmKeys200, AddonsLlmKeysCreate200, AddonsLlmKeysCreateBody, AddonsLlmKeysDelete200, AddonsLlmKeysDeleteBody, AddonsLlmKeysParams, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSitelockSsoV2Params, AddonsSpamexpertsDomainAssign200, AddonsSpamexpertsDomainAssignBody, AddonsSpamexpertsSso200, AddonsSync200, AddonsWorkflows200, AddonsWorkflowsParams, AllUserMonarxDetails200, Announcements200, BackupCreateOndemandV1200, BackupCreateOndemandV1400, BackupCreateOndemandV1403, BackupCreateOndemandV1404, BackupCreateOndemandV1409, BackupCreateOndemandV1Body, BackupCreateV2200, BackupCreateV2Body, BackupCreateV3200, BackupCreateV3Body, BackupCustomDeleteV1200, BackupCustomDeleteV1400, BackupCustomDeleteV1403, BackupCustomDeleteV1404, BackupCustomDeleteV1409, BackupCustomDeleteV1Body, BackupDownloadV2200, BackupDownloadV2400, BackupDownloadV2403, BackupDownloadV2404, BackupDownloadV2409, BackupDownloadV2Body, BackupInitiate200, BackupInitiateBody, BackupList200, BackupListParams, BackupListV2200, BackupListV3200, BackupListV3Params, BackupMeta200, BackupMetaParams, BackupPrefSetStatus200, BackupPrefSetStatusBody, BackupRestoreV2200, BackupRestoreV2Body, BackupRestoreV3200, BackupRestoreV3400, BackupRestoreV3403, BackupRestoreV3404, BackupRestoreV3409, BackupRestoreV3Body, BackupSettings200, BackupSettingsCreate200, BackupSettingsCreateBody, BackupSettingsUpdate200, BackupSettingsUpdateBody, BackupStatus200, BackupStatusParams, BackupStatusV2200, BackupStatusV2Params, BackupStatusV3200, BackupStatusV3400, BackupStatusV3Params, BackupUsage200, BackupsJetpackBackup200, BullhornAnnouncements200, 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, DomainEmailDeliverability200, DomainHealth200, DomainHealthParams, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsParams, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EditPrivacyBody, EmailSso200, EmailSso400, EmailSso512, EmailSsoParams, EntriJwt200, ErrorPagesAdd200, ErrorPagesAddBody, ErrorPagesDelete200, ErrorPagesDeleteBody, ErrorPagesFetch200, ErrorPagesFetchParams, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedConsole200, HostingAdvancedConsoleParams, HostingAdvancedDns200, HostingAdvancedDnsParams, HostingAdvancedDnsUpdate200, HostingAdvancedDnsUpdateBody, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesBody, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedImagesParams, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedServer200, HostingAdvancedServerHealthcheck200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedServerV2200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingBackups200, 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, HostingEmailSetupInfo200, HostingEmailSetupInfo404, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamCustomSettingsUpdateBody, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailSpamSettingsUpdateBody, HostingEmailTestSend200, HostingEmailTestSend403, HostingEmailTestSend404, HostingEmailTestSend512, HostingEmailTestSendBody, HostingEmailUpdate200, HostingEmailUpdate400, HostingEmailUpdate403, HostingEmailUpdate512, HostingEmailUpdateBody, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpBody, HostingFtpList200, HostingFtpUpdate200, HostingFtpUpdateBody, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLead400, HostingLeadParams, HostingLicenseInfo200, HostingLicenseInfoParams, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingMonarxAddonsList200, HostingMonarxAddonsListParams, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingOnboardingDataUpdateBody, HostingPasswordUpdate200, HostingPasswordUpdateBody, HostingRedirect200, HostingRedirectBody, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoBody, HostingRepoList200Item, HostingRepoLog200, HostingRepoLogParams, HostingRepoSync200, HostingRepoSyncBody, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingSendEmailSetupInfo404, HostingSendEmailSetupInfoBody, HostingServerHits200, HostingServerHitsParams, HostingShellInfo200, HostingShellToggle200, HostingShellToggleBody, HostingSiteAdd200, HostingSiteAddBody, HostingSiteAddV2200, HostingSiteAddV2Body, HostingSiteAddV3200, HostingSiteAddV3Body, HostingSitesV2200, HostingSitesV2Params, HostingSpamexpertsEligibleDomains200, HostingSshInfo200, HostingVisitors200, HostingVisitorsParams, HostingVpsSshKeySync200, HostingVpsSshKeySync404, HostingVpsSshKeySync500, HotlinkconfigAdd200, HotlinkconfigAddBody, HotlinkconfigDelete200, HotlinkconfigDeleteBody, HotlinkconfigDetails200, HotlinkconfigDetailsParams, Index200, IndexBody, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListFilesV2Params, ListIndex200, ListIndexParams, MonarxAddonReportUrl200, MonarxAddonReportUrlParams, MonarxAddonSealGeneration200, MonarxAddonSealGenerationParams, PasswordGenerate200, PasswordScore200, PasswordScoreParams, PhpErrors200, PhpErrorsParams, Privacy200, PrivacyBody, PrivacyUser200, PrivacyUserBody, ProductLicenseDetails200, ProductLicenseDetailsParams, PublicImages200, PublicImagesParams, PublicImagesV2200, PublicImagesV2Params, PublicRegions200, RepairDatabase200, RepairDatabaseBody, ResetSite200, ResetSiteBody, Site200, SiteAddonCloudflare200, SiteAddonCloudflare400, SiteAddonWpsolution200, SiteAddonWpsolution400, SiteAddonWpsolutionBody, SiteBody, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressBody, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstallBody, SitePluginInstaller200, SitePluginInstallerBody, SitePluginUpdate200, SitePluginUpdateBody, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsParams, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SiteQualityMetrics200, SiteQualityMetricsParams, SiteStatus200, SiteThemeInstall200, SiteThemeInstallBody, SiteUpdate200, SiteUpdate400, SiteUpdateBody, SiteUsers200, SiteUsersV2200, SiteUsersV2Params, SiteWpGenerate200, SiteWpGenerateBody, SitesAccessLogs200, SitesAccessLogsDownloadParams, SitesAccessLogsParams, SitesAtomicMetrics200, SitesAtomicMetricsParams, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBackupsXcitium200, SitesBatch200, SitesBatchBody, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainParams, SitesDomainUrl200, SitesDomainUrlBody, SitesDomainsCreate200, SitesDomainsCreateBody, SitesDomainsV2200, SitesDomainsV2Params, SitesErrorLogs200, SitesErrorLogsDownloadParams, SitesErrorLogsParams, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesListV3Params, SitesMetricDimensions200, SitesMetricDimensionsParams, SitesMetricsDimensionAveraged200, SitesMetricsDimensionAveragedParams, SitesOnboardingSteps200, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEdgecache200, SitesPerformanceEdgecacheBody, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisPurgeBody, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisToggleBody, SitesPerformanceRedisUninstall200, SitesPerformanceScans200, SitesPerformanceScansAdd200, SitesPerformanceScansAddBody, SitesPerformanceScansList200, SitesPerformanceScansListParams, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockParams, SitesSecuritySitelockV2200, SitesSecuritySitelockV2Params, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSecuritySslStatusParams, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionInheritanceParams, 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, SshKeyListV4Params, SshKeyV2200, SshKeyV2Body, Sso200, SsoParams, StagingSitePromote200, StagingSitePromote409, StagingSitePromoteBody, UpdateCron200, UpdateCronBody, UserBillingAccounts200, UserBillingAccounts401, UserBillingAccounts502, UserHosting200, UserHostingOverview200, UserHostingOverviewParams, UserHostingParams, UserProducts200, UserProducts401, UserProducts502, UserProservices200, UserServers200, UserServersParams, UserSpamexperts200, WaldaiSso200, WaldaiSso404, WaldaiSso502, WebzaiSso200, WeeblySso200, XcitiumBackupCreate200, XcitiumBackupCreateBody, XcitiumBackupDownload200, XcitiumBackupDownloadBody, XcitiumBackupList200, XcitiumBackupListParams, XcitiumBackupRestore200, XcitiumBackupRestoreBody, XcitiumPlanInfo200, XcitiumSso200 } 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
  /**
@@ -6554,6 +6554,36 @@ export declare const useSshKeyGenerate: <TError = AxiosError<unknown, any>, TCon
6554
6554
  hostingId: number;
6555
6555
  data: SshKeyGenerateBody;
6556
6556
  }, TContext>;
6557
+ /**
6558
+ * Reinstalls a customer SSH public key from HAL storage onto the VPS server. Used when a key exists in the panel database but is missing from the server (for example after a reimage).
6559
+ * @summary Sync a VPS SSH public key to the server
6560
+ */
6561
+ export declare const hostingVpsSshKeySync: (hostingId: string, id: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingVpsSshKeySync200>>;
6562
+ export declare const getHostingVpsSshKeySyncMutationOptions: <TError = AxiosError<HostingVpsSshKeySync500 | HostingVpsSshKeySync404, any>, TContext = unknown>(options?: {
6563
+ mutation?: UseMutationOptions<AxiosResponse<HostingVpsSshKeySync200, any>, TError, {
6564
+ hostingId: string;
6565
+ id: number;
6566
+ }, TContext> | undefined;
6567
+ axios?: AxiosRequestConfig<any> | undefined;
6568
+ } | undefined) => UseMutationOptions<AxiosResponse<HostingVpsSshKeySync200, any>, TError, {
6569
+ hostingId: string;
6570
+ id: number;
6571
+ }, TContext>;
6572
+ export declare type HostingVpsSshKeySyncMutationResult = NonNullable<Awaited<ReturnType<typeof hostingVpsSshKeySync>>>;
6573
+ export declare type HostingVpsSshKeySyncMutationError = AxiosError<HostingVpsSshKeySync404 | HostingVpsSshKeySync500>;
6574
+ /**
6575
+ * @summary Sync a VPS SSH public key to the server
6576
+ */
6577
+ export declare const useHostingVpsSshKeySync: <TError = AxiosError<HostingVpsSshKeySync500 | HostingVpsSshKeySync404, any>, TContext = unknown>(options?: {
6578
+ mutation?: UseMutationOptions<AxiosResponse<HostingVpsSshKeySync200, any>, TError, {
6579
+ hostingId: string;
6580
+ id: number;
6581
+ }, TContext> | undefined;
6582
+ axios?: AxiosRequestConfig<any> | undefined;
6583
+ } | undefined) => UseMutationResult<AxiosResponse<HostingVpsSshKeySync200, any>, TError, {
6584
+ hostingId: string;
6585
+ id: number;
6586
+ }, TContext>;
6557
6587
  /**
6558
6588
  * Returns a SSO login token for a hosting account by default, or directly to various apps within the hosting account by using the optional query parameter.
6559
6589
  * @summary sso
@@ -10350,7 +10380,7 @@ export declare function useSshKeyListV2<TData = Awaited<ReturnType<typeof sshKey
10350
10380
  queryKey: QueryKey;
10351
10381
  };
10352
10382
  /**
10353
- * Deletes an SSH key
10383
+ * Deletes an SSH key. VPS/dedicated: id required, optional remote. Shared: name and authorize.
10354
10384
  * @summary ssh key delete
10355
10385
  */
10356
10386
  export declare const sshKeyV2: (hostingId: string, sshKeyV2Body: SshKeyV2Body, options?: AxiosRequestConfig) => Promise<AxiosResponse<SshKeyV2200>>;
@@ -10923,12 +10953,12 @@ export declare function useSitesInfoV3<TData = Awaited<ReturnType<typeof sitesIn
10923
10953
  queryKey: QueryKey;
10924
10954
  };
10925
10955
  /**
10926
- * List all SSH keys on a server or account. Finds all keys in user's .ssh/ directory.
10956
+ * List SSH public keys. Shared hosting reads keys from the account .ssh directory via gap_ssh_key_list. VPS/Dedicated hosting reads customer keys via server_pubkey_list, or server_pubkey_scan when scan=true.
10927
10957
  * @summary ssh keys list
10928
10958
  */
10929
- export declare const sshKeyListV4: (hostingId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<SshKeyListV4200>>;
10930
- export declare const getSshKeyListV4QueryKey: (hostingId: string) => readonly [`/v4/hosting/${string}/ssh/keys`];
10931
- export declare const getSshKeyListV4QueryOptions: <TData = AxiosResponse<SshKeyListV4200, any>, TError = AxiosError<unknown, any>>(hostingId: string, options?: {
10959
+ export declare const sshKeyListV4: (hostingId: string, params?: SshKeyListV4Params, options?: AxiosRequestConfig) => Promise<AxiosResponse<SshKeyListV4200>>;
10960
+ export declare const getSshKeyListV4QueryKey: (hostingId: string, params?: SshKeyListV4Params) => readonly [`/v4/hosting/${string}/ssh/keys`, ...SshKeyListV4Params[]];
10961
+ export declare const getSshKeyListV4QueryOptions: <TData = AxiosResponse<SshKeyListV4200, any>, TError = AxiosError<unknown, any>>(hostingId: string, params?: SshKeyListV4Params, options?: {
10932
10962
  query?: Partial<UseQueryOptions<AxiosResponse<SshKeyListV4200, any>, TError, TData, QueryKey>> | undefined;
10933
10963
  axios?: AxiosRequestConfig<any> | undefined;
10934
10964
  } | undefined) => UseQueryOptions<AxiosResponse<SshKeyListV4200, any>, TError, TData, QueryKey> & {
@@ -10936,19 +10966,19 @@ export declare const getSshKeyListV4QueryOptions: <TData = AxiosResponse<SshKeyL
10936
10966
  };
10937
10967
  export declare type SshKeyListV4QueryResult = NonNullable<Awaited<ReturnType<typeof sshKeyListV4>>>;
10938
10968
  export declare type SshKeyListV4QueryError = AxiosError<unknown>;
10939
- export declare function useSshKeyListV4<TData = Awaited<ReturnType<typeof sshKeyListV4>>, TError = AxiosError<unknown>>(hostingId: string, options: {
10969
+ export declare function useSshKeyListV4<TData = Awaited<ReturnType<typeof sshKeyListV4>>, TError = AxiosError<unknown>>(hostingId: string, params: undefined | SshKeyListV4Params, options: {
10940
10970
  query: Partial<UseQueryOptions<Awaited<ReturnType<typeof sshKeyListV4>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof sshKeyListV4>>, TError, TData>, 'initialData'>;
10941
10971
  axios?: AxiosRequestConfig;
10942
10972
  }): DefinedUseQueryResult<TData, TError> & {
10943
10973
  queryKey: QueryKey;
10944
10974
  };
10945
- export declare function useSshKeyListV4<TData = Awaited<ReturnType<typeof sshKeyListV4>>, TError = AxiosError<unknown>>(hostingId: string, options?: {
10975
+ export declare function useSshKeyListV4<TData = Awaited<ReturnType<typeof sshKeyListV4>>, TError = AxiosError<unknown>>(hostingId: string, params?: SshKeyListV4Params, options?: {
10946
10976
  query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof sshKeyListV4>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof sshKeyListV4>>, TError, TData>, 'initialData'>;
10947
10977
  axios?: AxiosRequestConfig;
10948
10978
  }): UseQueryResult<TData, TError> & {
10949
10979
  queryKey: QueryKey;
10950
10980
  };
10951
- export declare function useSshKeyListV4<TData = Awaited<ReturnType<typeof sshKeyListV4>>, TError = AxiosError<unknown>>(hostingId: string, options?: {
10981
+ export declare function useSshKeyListV4<TData = Awaited<ReturnType<typeof sshKeyListV4>>, TError = AxiosError<unknown>>(hostingId: string, params?: SshKeyListV4Params, options?: {
10952
10982
  query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof sshKeyListV4>>, TError, TData>>;
10953
10983
  axios?: AxiosRequestConfig;
10954
10984
  }): UseQueryResult<TData, TError> & {
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.2048.0
6
+ * OpenAPI spec version: 1.2058.0
7
7
  */
8
8
  import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
9
9
  import axios from 'axios';
@@ -5040,6 +5040,28 @@ export const useSshKeyGenerate = (options) => {
5040
5040
  const mutationOptions = getSshKeyGenerateMutationOptions(options);
5041
5041
  return useMutation(mutationOptions);
5042
5042
  };
5043
+ /**
5044
+ * Reinstalls a customer SSH public key from HAL storage onto the VPS server. Used when a key exists in the panel database but is missing from the server (for example after a reimage).
5045
+ * @summary Sync a VPS SSH public key to the server
5046
+ */
5047
+ export const hostingVpsSshKeySync = (hostingId, id, options) => {
5048
+ return axios.post(`/v1/hosting/${hostingId}/ssh/keys/${id}/sync`, undefined, options);
5049
+ };
5050
+ export const getHostingVpsSshKeySyncMutationOptions = (options) => {
5051
+ const { mutation: mutationOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
5052
+ const mutationFn = (props) => {
5053
+ const { hostingId, id } = props !== null && props !== void 0 ? props : {};
5054
+ return hostingVpsSshKeySync(hostingId, id, axiosOptions);
5055
+ };
5056
+ return Object.assign({ mutationFn }, mutationOptions);
5057
+ };
5058
+ /**
5059
+ * @summary Sync a VPS SSH public key to the server
5060
+ */
5061
+ export const useHostingVpsSshKeySync = (options) => {
5062
+ const mutationOptions = getHostingVpsSshKeySyncMutationOptions(options);
5063
+ return useMutation(mutationOptions);
5064
+ };
5043
5065
  /**
5044
5066
  * Returns a SSO login token for a hosting account by default, or directly to various apps within the hosting account by using the optional query parameter.
5045
5067
  * @summary sso
@@ -8006,7 +8028,7 @@ export function useSshKeyListV2(hostingId, options) {
8006
8028
  return query;
8007
8029
  }
8008
8030
  /**
8009
- * Deletes an SSH key
8031
+ * Deletes an SSH key. VPS/dedicated: id required, optional remote. Shared: name and authorize.
8010
8032
  * @summary ssh key delete
8011
8033
  */
8012
8034
  export const sshKeyV2 = (hostingId, sshKeyV2Body, options) => {
@@ -8458,27 +8480,27 @@ export function useSitesInfoV3(siteId, options) {
8458
8480
  return query;
8459
8481
  }
8460
8482
  /**
8461
- * List all SSH keys on a server or account. Finds all keys in user's .ssh/ directory.
8483
+ * List SSH public keys. Shared hosting reads keys from the account .ssh directory via gap_ssh_key_list. VPS/Dedicated hosting reads customer keys via server_pubkey_list, or server_pubkey_scan when scan=true.
8462
8484
  * @summary ssh keys list
8463
8485
  */
8464
- export const sshKeyListV4 = (hostingId, options) => {
8465
- return axios.get(`/v4/hosting/${hostingId}/ssh/keys`, options);
8486
+ export const sshKeyListV4 = (hostingId, params, options) => {
8487
+ return axios.get(`/v4/hosting/${hostingId}/ssh/keys`, Object.assign(Object.assign({}, options), { params: Object.assign(Object.assign({}, params), options === null || options === void 0 ? void 0 : options.params) }));
8466
8488
  };
8467
- export const getSshKeyListV4QueryKey = (hostingId) => {
8468
- return [`/v4/hosting/${hostingId}/ssh/keys`];
8489
+ export const getSshKeyListV4QueryKey = (hostingId, params) => {
8490
+ return [`/v4/hosting/${hostingId}/ssh/keys`, ...(params ? [params] : [])];
8469
8491
  };
8470
- export const getSshKeyListV4QueryOptions = (hostingId, options) => {
8492
+ export const getSshKeyListV4QueryOptions = (hostingId, params, options) => {
8471
8493
  var _a;
8472
8494
  const { query: queryOptions, axios: axiosOptions } = options !== null && options !== void 0 ? options : {};
8473
- const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getSshKeyListV4QueryKey(hostingId);
8474
- const queryFn = ({ signal }) => sshKeyListV4(hostingId, Object.assign({ signal }, axiosOptions));
8495
+ const queryKey = (_a = queryOptions === null || queryOptions === void 0 ? void 0 : queryOptions.queryKey) !== null && _a !== void 0 ? _a : getSshKeyListV4QueryKey(hostingId, params);
8496
+ const queryFn = ({ signal }) => sshKeyListV4(hostingId, params, Object.assign({ signal }, axiosOptions));
8475
8497
  return Object.assign({ queryKey, queryFn, enabled: !!(hostingId) }, queryOptions);
8476
8498
  };
8477
8499
  /**
8478
8500
  * @summary ssh keys list
8479
8501
  */
8480
- export function useSshKeyListV4(hostingId, options) {
8481
- const queryOptions = getSshKeyListV4QueryOptions(hostingId, options);
8502
+ export function useSshKeyListV4(hostingId, params, options) {
8503
+ const queryOptions = getSshKeyListV4QueryOptions(hostingId, params, options);
8482
8504
  const query = useQuery(queryOptions);
8483
8505
  query.queryKey = queryOptions.queryKey;
8484
8506
  return query;
@@ -1,5 +1,5 @@
1
1
  import { http } from 'msw';
2
- import type { AccessLogs200, AccountAddonList200, AccountEventList200, AccountFeatures200, AccountHostingList200, AccountHostingListV2200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, AccountPurchaseHosting200, AccountPurchaseOrder200, AccountPurchaseProducts200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsInfo200, AddonsJetpackValidate200, AddonsLlmBalance200, AddonsLlmKeys200, AddonsLlmKeysCreate200, AddonsLlmKeysDelete200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsDomainAssign200, AddonsSpamexpertsSso200, AddonsSync200, AddonsWorkflows200, AllUserMonarxDetails200, Announcements200, BackupCreateOndemandV1200, BackupCreateV2200, BackupCreateV3200, BackupCustomDeleteV1200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupListV3200, BackupMeta200, BackupPrefSetStatus200, BackupRestoreV2200, BackupRestoreV3200, BackupSettings200, BackupSettingsCreate200, BackupSettingsUpdate200, BackupStatus200, BackupStatusV2200, BackupStatusV3200, BackupUsage200, BackupsJetpackBackup200, BullhornAnnouncements200, 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, DomainEmailDeliverability200, DomainHealth200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EmailSso200, EntriJwt200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedConsole200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerHealthcheck200, HostingAdvancedServerStatus200, HostingAdvancedServerV2200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingBackups200, 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, HostingEmailSetupInfo200, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailTestSend200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLicenseInfo200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingMonarxAddonsList200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingPasswordUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSiteAddV3200, HostingSitesV2200, HostingSpamexpertsEligibleDomains200, HostingSshInfo200, HostingVisitors200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, MonarxAddonReportUrl200, MonarxAddonSealGeneration200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, PublicImages200, PublicImagesV2200, PublicRegions200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstaller200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteThemeInstall200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SiteWpGenerate200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBackupsXcitium200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesOnboardingSteps200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisUninstall200, SitesPerformanceScans200, SitesPerformanceScansAdd200, SitesPerformanceScansList200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, UserBillingAccounts200, UserHosting200, UserHostingOverview200, UserProducts200, UserProservices200, UserServers200, UserSpamexperts200, WaldaiSso200, WebzaiSso200, WeeblySso200, XcitiumBackupCreate200, XcitiumBackupDownload200, XcitiumBackupList200, XcitiumBackupRestore200, XcitiumPlanInfo200, XcitiumSso200 } from './index.schemas';
2
+ import type { AccessLogs200, AccountAddonList200, AccountEventList200, AccountFeatures200, AccountHostingList200, AccountHostingListV2200, AccountPublicKey200, AccountPublicKeyCreate200, AccountPublicKeyDelete200, AccountPublicKeyToggle200, AccountPublicKeys200, AccountPurchaseHosting200, AccountPurchaseOrder200, AccountPurchaseProducts200, ActivityLog200, AddCron200, AddHostingRedirects200, AddIndex200, AddPrivacy200, AddSiteIpaddress200, AddonsCloudflare200, AddonsCloudflareExternalNsCheck200, AddonsInfo200, AddonsJetpackValidate200, AddonsLlmBalance200, AddonsLlmKeys200, AddonsLlmKeysCreate200, AddonsLlmKeysDelete200, AddonsSitelockSso200, AddonsSitelockSsoV2200, AddonsSpamexpertsDomainAssign200, AddonsSpamexpertsSso200, AddonsSync200, AddonsWorkflows200, AllUserMonarxDetails200, Announcements200, BackupCreateOndemandV1200, BackupCreateV2200, BackupCreateV3200, BackupCustomDeleteV1200, BackupDownloadV2200, BackupInitiate200, BackupList200, BackupListV2200, BackupListV3200, BackupMeta200, BackupPrefSetStatus200, BackupRestoreV2200, BackupRestoreV3200, BackupSettings200, BackupSettingsCreate200, BackupSettingsUpdate200, BackupStatus200, BackupStatusV2200, BackupStatusV3200, BackupUsage200, BackupsJetpackBackup200, BullhornAnnouncements200, 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, DomainEmailDeliverability200, DomainHealth200, DomainInfo200, DomainUnassign200, DomainZoneeditorUrl200, Domains200, DomainsSetEntriUsed200, DomainsUnsetEntriUsed200, EditPrivacy200, EmailSso200, EntriJwt200, ErrorPagesAdd200, ErrorPagesDelete200, ErrorPagesFetch200, HostingAccount200, HostingAddons200, HostingAdvancedConsole200, HostingAdvancedDns200, HostingAdvancedDnsUpdate200, HostingAdvancedDomainServices200, HostingAdvancedDomainServicesCheck200, HostingAdvancedImages200, HostingAdvancedPassword200, HostingAdvancedServer200, HostingAdvancedServerHealthcheck200, HostingAdvancedServerStatus200, HostingAdvancedServerV2200, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingBackups200, 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, HostingEmailSetupInfo200, HostingEmailSpamCustomSettings200, HostingEmailSpamCustomSettingsUpdate200, HostingEmailSpamEmpty200, HostingEmailSpamSettings200, HostingEmailSpamSettingsUpdate200, HostingEmailTestSend200, HostingEmailUpdate200, HostingFixownership200, HostingFtp200, HostingFtpAdd200, HostingFtpList200, HostingFtpUpdate200, HostingInfo200, HostingInfoDiskUsage200, HostingLead200, HostingLicenseInfo200, HostingMigrationInfo200, HostingMigrationSiteScanStatus200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsEvent200, HostingMonarxAddonsList200, HostingNameservers200, HostingNameserversV2200, HostingOnboardingData200, HostingOnboardingDataUpdate200, HostingPasswordUpdate200, HostingRedirect200, HostingRedirects200Item, HostingRedirectsV2200Item, HostingRepo200, HostingRepoList200Item, HostingRepoLog200, HostingRepoSync200, HostingResellerSsoWhm200, HostingSendEmailSetupInfo200, HostingServerHits200, HostingShellInfo200, HostingShellToggle200, HostingSiteAdd200, HostingSiteAddV2200, HostingSiteAddV3200, HostingSitesV2200, HostingSpamexpertsEligibleDomains200, HostingSshInfo200, HostingVisitors200, HostingVpsSshKeySync200, HotlinkconfigAdd200, HotlinkconfigDelete200, HotlinkconfigDetails200, Index200, JetpackBackupStatus200, ListCrons200, ListFilesV2200, ListIndex200, MonarxAddonReportUrl200, MonarxAddonSealGeneration200, PasswordGenerate200, PasswordScore200, PhpErrors200, Privacy200, PrivacyUser200, ProductLicenseDetails200, PublicImages200, PublicImagesV2200, PublicRegions200, RepairDatabase200, ResetSite200, Site200, SiteAddonCloudflare200, SiteAddonWpsolution200, SiteInfoResponseModelV2, SiteIpaddress200, SiteIpaddressList200Item, SiteMalwareStatus200, SiteMalwareStatusV2200, SitePendingDomainDelete200, SitePluginInstall200, SitePluginInstaller200, SitePluginUpdate200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsToggle200, SitePluginsUpdate200, SiteQualityMetrics200, SiteStatus200, SiteThemeInstall200, SiteUpdate200, SiteUsers200, SiteUsersV2200, SiteWpGenerate200, SitesAccessLogs200, SitesAtomicMetrics200, SitesAutoupdatesResponse, SitesBackups200, SitesBackupsCodeguard200, SitesBackupsDetails200, SitesBackupsXcitium200, SitesBatch200, SitesDatabaseInfo200, SitesDatabasePasswordsync200, SitesDns200, SitesDomain200, SitesDomainUrl200, SitesDomainsCreate200, SitesDomainsV2200, SitesErrorLogs200, SitesHasBackups200, SitesInfo200, SitesJetpackPurchase200, SitesListV2200, SitesListV3200, SitesMetricDimensions200, SitesMetricsDimensionAveraged200, SitesOnboardingSteps200, SitesPerformanceCachepurge200, SitesPerformanceEdgecache200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEndurancePageCache200, SitesPerformanceRedisPurge200, SitesPerformanceRedisStatus200, SitesPerformanceRedisToggle200, SitesPerformanceRedisUninstall200, SitesPerformanceScans200, SitesPerformanceScansAdd200, SitesPerformanceScansList200, SitesSecurityBundle200, SitesSecurityCheckCore200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityResetCoreFiles200, SitesSecuritySitelock200, SitesSecuritySitelockV2200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsPhpVersionInheritance200, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersions200, SitesSshUserCreate200, SitesSshUserDelete200, SitesSshUserList200, SitesSshUserListV2200, SitesSshUserUpdate200, SitesSsl200, SitesSso200, SitesVersion200, SshKey200, SshKeyFetch200, SshKeyGenerate200, SshKeyImport200, SshKeyImportV2200, SshKeyImportV3200, SshKeyList200, SshKeyListV2200, SshKeyListV3200, SshKeyListV4200, SshKeyV2200, Sso200, StagingSitePromote200, UpdateCron200, UserBillingAccounts200, UserHosting200, UserHostingOverview200, UserProducts200, UserProservices200, UserServers200, UserSpamexperts200, WaldaiSso200, WebzaiSso200, WeeblySso200, XcitiumBackupCreate200, XcitiumBackupDownload200, XcitiumBackupList200, XcitiumBackupRestore200, XcitiumPlanInfo200, XcitiumSso200 } 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;
@@ -208,6 +208,7 @@ export declare const getSshKeyImportResponseMock: (overrideResponse?: Partial<Ss
208
208
  export declare const getSshKeyListResponseMock: (overrideResponse?: Partial<SshKeyList200>) => SshKeyList200;
209
209
  export declare const getSshKeyResponseMock: (overrideResponse?: Partial<SshKey200>) => SshKey200;
210
210
  export declare const getSshKeyGenerateResponseMock: (overrideResponse?: Partial<SshKeyGenerate200>) => SshKeyGenerate200;
211
+ export declare const getHostingVpsSshKeySyncResponseMock: (overrideResponse?: Partial<HostingVpsSshKeySync200>) => HostingVpsSshKeySync200;
211
212
  export declare const getSsoResponseMock: (overrideResponse?: Partial<Sso200>) => Sso200;
212
213
  export declare const getHostingVisitorsResponseMock: (overrideResponse?: Partial<HostingVisitors200>) => HostingVisitors200;
213
214
  export declare const getPublicImagesResponseMock: (overrideResponse?: Partial<PublicImages200>) => PublicImages200;
@@ -553,6 +554,7 @@ export declare const getSshKeyImportMockHandler: (overrideResponse?: SshKeyImpor
553
554
  export declare const getSshKeyListMockHandler: (overrideResponse?: SshKeyList200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<SshKeyList200> | SshKeyList200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
554
555
  export declare const getSshKeyMockHandler: (overrideResponse?: SshKey200 | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<SshKey200> | SshKey200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
555
556
  export declare const getSshKeyGenerateMockHandler: (overrideResponse?: SshKeyGenerate200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SshKeyGenerate200> | SshKeyGenerate200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
557
+ export declare const getHostingVpsSshKeySyncMockHandler: (overrideResponse?: HostingVpsSshKeySync200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<HostingVpsSshKeySync200> | HostingVpsSshKeySync200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
556
558
  export declare const getSsoMockHandler: (overrideResponse?: Sso200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<Sso200> | Sso200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
557
559
  export declare const getHostingVisitorsMockHandler: (overrideResponse?: HostingVisitors200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<HostingVisitors200> | HostingVisitors200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
558
560
  export declare const getPublicImagesMockHandler: (overrideResponse?: PublicImages200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<PublicImages200> | PublicImages200) | undefined) => import("msw/lib/core/handlers/HttpHandler").HttpHandler;
package/src/index.msw.js CHANGED
@@ -4,7 +4,7 @@ import { __awaiter } from "tslib";
4
4
  * Do not edit manually.
5
5
  * Hosting UAPI
6
6
  * Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
7
- * OpenAPI spec version: 1.2048.0
7
+ * OpenAPI spec version: 1.2058.0
8
8
  */
9
9
  import { faker } from '@faker-js/faker';
10
10
  import { HttpResponse, delay, http } from 'msw';
@@ -219,6 +219,7 @@ export const getSshKeyImportResponseMock = (overrideResponse = {}) => (Object.as
219
219
  export const getSshKeyListResponseMock = (overrideResponse = {}) => (Object.assign({ keys: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ file: faker.helpers.arrayElement([faker.word.sample(), undefined]), haspub: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), key: faker.helpers.arrayElement([faker.word.sample(), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
220
220
  export const getSshKeyResponseMock = (overrideResponse = {}) => (Object.assign({ deleted: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), key_name: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
221
221
  export const getSshKeyGenerateResponseMock = (overrideResponse = {}) => (Object.assign({ key_name: faker.helpers.arrayElement([faker.word.sample(), undefined]), private_key_path: faker.helpers.arrayElement([faker.word.sample(), undefined]), public_key_path: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
222
+ export const getHostingVpsSshKeySyncResponseMock = (overrideResponse = {}) => (Object.assign({ id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]), username: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
222
223
  export const getSsoResponseMock = (overrideResponse = {}) => (Object.assign({ url: faker.word.sample() }, overrideResponse));
223
224
  export const getHostingVisitorsResponseMock = (overrideResponse = {}) => (Object.assign({ daily: faker.helpers.arrayElement([{ data: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ bandwidth: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), date: faker.helpers.arrayElement([faker.word.sample(), undefined]), hits: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), interval_end: faker.helpers.arrayElement([faker.word.sample(), undefined]), interval_start: faker.helpers.arrayElement([faker.word.sample(), undefined]), pages: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), visits: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) })), undefined]), total: faker.helpers.arrayElement([{ total_bandwidth: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_hits: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_pages: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, undefined]) }, undefined]), is_linked_domain: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), linked_domain: faker.helpers.arrayElement([faker.word.sample(), undefined]), total_bandwidth: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_hits: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_pages: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_unique_visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total_visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), visitors: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ bandwidth: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), hits: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), interval_end: faker.helpers.arrayElement([faker.word.sample(), undefined]), interval_start: faker.helpers.arrayElement([faker.word.sample(), undefined]), unique_visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), visitors: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) })), undefined]) }, overrideResponse));
224
225
  export const getPublicImagesResponseMock = (overrideResponse = {}) => (Object.assign({ limit: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined })]), undefined]), n_rows: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined })]), undefined]), page: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined })]), undefined]), rows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ ai_key_enabled: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), app: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), arch_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), cpanel_default: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined })]), undefined]), current: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined })]), undefined]), date_added: faker.helpers.arrayElement([faker.word.sample(), undefined]), docker_default: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined })]), undefined]), id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), faker.number.int({ min: undefined, max: undefined })]), undefined]), links: faker.helpers.arrayElement([{ community: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), doc: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), forums: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), lts: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), manage_link: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), min_cpus: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), min_disk: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), min_ram: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]), os_name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), os_version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), readme: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), software: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), title: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), type: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), user_image: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]) }, overrideResponse));
@@ -381,7 +382,7 @@ export const getSitesListV3ResponseMock = (overrideResponse = {}) => (Object.ass
381
382
  [faker.string.alphanumeric(5)]: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ account_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), account_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), account_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), base_domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), brand_protection_clicked: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), confirmed: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), datacenter: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_added: faker.helpers.arrayElement([faker.word.sample(), undefined]), date_modified: faker.helpers.arrayElement([faker.word.sample(), undefined]), detected_type: faker.helpers.arrayElement([faker.word.sample(), undefined]), docpath: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), docroot: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain_ptrs: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({})), undefined]), edge_cache: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), handler_404: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), has_woocommerce: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), id: faker.helpers.arrayElement([faker.word.sample(), undefined]), install_blu_ai: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), install_blu_ai_store: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), installed_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), is_primary: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), jobs: faker.helpers.arrayElement([{}, undefined]), last_error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), migration_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), onboarding: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), onboarding_call_clicked: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), options: faker.helpers.arrayElement([{ nfd_origin_prompt: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), site_description: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), site_title: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), pagespeed: faker.helpers.arrayElement([{ lastrun: faker.helpers.arrayElement([faker.word.sample(), undefined]), performance: faker.helpers.arrayElement([faker.word.sample(), undefined]), strategy: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), parent_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), path: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), pending_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), pending_url_data: faker.helpers.arrayElement([{ base_domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), is_temp: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), job_failed: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), stage: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), wp_session: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), php_version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), pro_services_clicked: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), resources: faker.helpers.arrayElement([{ storage: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), unit: faker.helpers.arrayElement([faker.word.sample(), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), staging: faker.helpers.arrayElement([{ parent_site_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), promoted_from: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), promoting_from: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), promotion_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sites: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.number.int({ min: undefined, max: undefined }))), undefined]) }, undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), subtype: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), tenweb_upgrade_date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), url_is_provisional: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), version_ptr: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }))
382
383
  }, undefined]), items: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ account_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), account_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), account_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), base_domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), brand_protection_clicked: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), confirmed: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), datacenter: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_added: faker.helpers.arrayElement([faker.word.sample(), undefined]), date_modified: faker.helpers.arrayElement([faker.word.sample(), undefined]), detected_type: faker.helpers.arrayElement([faker.word.sample(), undefined]), docpath: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), docroot: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain_ptrs: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({})), undefined]), edge_cache: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), handler_404: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), has_woocommerce: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), id: faker.helpers.arrayElement([faker.word.sample(), undefined]), install_blu_ai: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), install_blu_ai_store: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), installed_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), is_primary: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), jobs: faker.helpers.arrayElement([{}, undefined]), last_error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), migration_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), onboarding: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), onboarding_call_clicked: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), options: faker.helpers.arrayElement([{ nfd_origin_prompt: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), site_description: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), site_title: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), pagespeed: faker.helpers.arrayElement([{ lastrun: faker.helpers.arrayElement([faker.word.sample(), undefined]), performance: faker.helpers.arrayElement([faker.word.sample(), undefined]), strategy: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), parent_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), path: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), pending_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), pending_url_data: faker.helpers.arrayElement([{ base_domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), is_temp: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), job_failed: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), stage: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), wp_session: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), php_version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), pro_services_clicked: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), resources: faker.helpers.arrayElement([{ storage: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), unit: faker.helpers.arrayElement([faker.word.sample(), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), staging: faker.helpers.arrayElement([{ parent_site_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), promoted_from: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), promoting_from: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), promotion_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sites: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.number.int({ min: undefined, max: undefined }))), undefined]) }, undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), subtype: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), tenweb_upgrade_date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), url_is_provisional: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), version_ptr: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) })), undefined]), limit: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), page: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), pages: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), rows: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), total: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
383
384
  export const getSitesInfoV3ResponseMock = (overrideResponse = {}) => (Object.assign({ account_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), account_id: faker.helpers.arrayElement([faker.word.sample(), undefined]), account_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), base_domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), brand_protection_clicked: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), confirmed: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), datacenter: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), date_added: faker.helpers.arrayElement([faker.word.sample(), undefined]), date_modified: faker.helpers.arrayElement([faker.word.sample(), undefined]), detected_type: faker.helpers.arrayElement([faker.word.sample(), undefined]), docpath: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), docroot: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain_ptrs: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({})), undefined]), edge_cache: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), handler_404: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), has_woocommerce: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), id: faker.helpers.arrayElement([faker.word.sample(), undefined]), install_blu_ai: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), install_blu_ai_store: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), installed_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), is_primary: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), jobs: faker.helpers.arrayElement([{}, undefined]), last_error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), migration_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), name: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), onboarding: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), onboarding_call_clicked: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), options: faker.helpers.arrayElement([{ nfd_origin_prompt: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), site_description: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), site_title: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), pagespeed: faker.helpers.arrayElement([{ lastrun: faker.helpers.arrayElement([faker.word.sample(), undefined]), performance: faker.helpers.arrayElement([faker.word.sample(), undefined]), strategy: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, undefined]), parent_back_ref: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), path: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), pending_url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), pending_url_data: faker.helpers.arrayElement([{ base_domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), domain_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), error: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), is_temp: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), job_failed: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), stage: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), wp_session: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, undefined]), php_version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), pro_services_clicked: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), resources: faker.helpers.arrayElement([{ storage: faker.helpers.arrayElement([{ available: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), total: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), unit: faker.helpers.arrayElement([faker.word.sample(), undefined]), used: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), workers: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]) }, undefined]), staging: faker.helpers.arrayElement([{ parent_site_id: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), promoted_from: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), promoting_from: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), null]), undefined]), promotion_status: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), sites: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.number.int({ min: undefined, max: undefined }))), undefined]) }, undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]), subtype: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), tenweb_upgrade_date: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]), url: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), url_is_provisional: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), version: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]), version_ptr: faker.helpers.arrayElement([faker.helpers.arrayElement([faker.word.sample(), null]), undefined]) }, overrideResponse));
384
- export const getSshKeyListV4ResponseMock = (overrideResponse = {}) => (Object.assign({ rows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ authorize: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), created_at: faker.helpers.arrayElement([faker.word.sample(), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
385
+ export const getSshKeyListV4ResponseMock = (overrideResponse = {}) => (Object.assign({ rows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ alg_type: faker.helpers.arrayElement([faker.word.sample(), undefined]), authorize: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), created_at: faker.helpers.arrayElement([faker.word.sample(), undefined]), id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]), pubkey: faker.helpers.arrayElement([faker.word.sample(), undefined]), remote: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
385
386
  export const getAccountEventListMockHandler = (overrideResponse) => {
386
387
  return http.get('*/v1/account/events', (info) => __awaiter(void 0, void 0, void 0, function* () {
387
388
  yield delay(0);
@@ -2462,6 +2463,16 @@ export const getSshKeyGenerateMockHandler = (overrideResponse) => {
2462
2463
  });
2463
2464
  }));
2464
2465
  };
2466
+ export const getHostingVpsSshKeySyncMockHandler = (overrideResponse) => {
2467
+ return http.post('*/v1/hosting/:hostingId/ssh/keys/:id/sync', (info) => __awaiter(void 0, void 0, void 0, function* () {
2468
+ yield delay(0);
2469
+ return new HttpResponse(JSON.stringify(overrideResponse !== undefined
2470
+ ? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
2471
+ : getHostingVpsSshKeySyncResponseMock()), { status: 200,
2472
+ headers: { 'Content-Type': 'application/json' }
2473
+ });
2474
+ }));
2475
+ };
2465
2476
  export const getSsoMockHandler = (overrideResponse) => {
2466
2477
  return http.get('*/v1/hosting/:hostingId/sso', (info) => __awaiter(void 0, void 0, void 0, function* () {
2467
2478
  yield delay(0);
@@ -4061,6 +4072,7 @@ export const getHostingUAPIMock = () => [
4061
4072
  getSshKeyListMockHandler(),
4062
4073
  getSshKeyMockHandler(),
4063
4074
  getSshKeyGenerateMockHandler(),
4075
+ getHostingVpsSshKeySyncMockHandler(),
4064
4076
  getSsoMockHandler(),
4065
4077
  getHostingVisitorsMockHandler(),
4066
4078
  getPublicImagesMockHandler(),
@@ -3,17 +3,32 @@
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.2048.0
6
+ * OpenAPI spec version: 1.2058.0
7
7
  */
8
8
  export declare type SshKeyListV4200RowsItem = {
9
+ /** SSH key algorithm from HAL for VPS/Dedicated keys (for example rsa, ed25519) */
10
+ alg_type?: string;
9
11
  authorize?: boolean;
10
12
  created_at?: string;
13
+ /** server_pubkey row id for advanced hosting */
14
+ id?: number;
11
15
  name?: string;
16
+ /** SSH public key content for advanced hosting */
17
+ pubkey?: string;
18
+ /** Present when scan=true; whether the key exists on the server only (remote) */
19
+ remote?: boolean;
20
+ /** Always public for listed keys */
12
21
  type?: string;
13
22
  };
14
23
  export declare type SshKeyListV4200 = {
15
24
  rows?: SshKeyListV4200RowsItem[];
16
25
  };
26
+ export declare type SshKeyListV4Params = {
27
+ /**
28
+ * When true, calls server_pubkey_scan to compare stored keys against keys installed on the server and returns remote. VPS/Dedicated only.
29
+ */
30
+ scan?: boolean;
31
+ };
17
32
  /**
18
33
  * @nullable
19
34
  */
@@ -59,12 +74,12 @@ export declare type SshKeyImportV3200 = {
59
74
  public_key_name?: string | null;
60
75
  };
61
76
  export declare type SshKeyImportV3Body = {
62
- /** The SSH key's filename */
63
- name: string;
77
+ /** The SSH key's filename. Required for non-advanced hosting; optional for advanced (VPS/dedicated) hosting. */
78
+ name?: string;
64
79
  /** A note to log alongside the secure_action_log entry. */
65
80
  note?: string;
66
81
  /** A Valid SSH public key */
67
- pubkey?: string;
82
+ pubkey: string;
68
83
  /** The entity that initiated the GAP call */
69
84
  source?: string;
70
85
  };
@@ -207,13 +222,6 @@ export declare type BackupStatusV3Params = {
207
222
  */
208
223
  client_tracking_id: string;
209
224
  };
210
- export declare type BackupListV3200 = {
211
- has_more?: boolean;
212
- items?: BackupListV3200ItemsItem[];
213
- limit?: number;
214
- offset?: number;
215
- total?: number;
216
- };
217
225
  /**
218
226
  * @nullable
219
227
  */
@@ -248,6 +256,13 @@ export declare type BackupListV3200ItemsItem = {
248
256
  timezone?: string;
249
257
  type?: string;
250
258
  };
259
+ export declare type BackupListV3200 = {
260
+ has_more?: boolean;
261
+ items?: BackupListV3200ItemsItem[];
262
+ limit?: number;
263
+ offset?: number;
264
+ total?: number;
265
+ };
251
266
  export declare type BackupListV3Params = {
252
267
  page?: number;
253
268
  limit?: number;
@@ -430,6 +445,12 @@ export declare type SiteMalwareStatusV2200 = {
430
445
  */
431
446
  scanner_state?: string | null;
432
447
  };
448
+ export declare type SitesDomainsV2200 = {
449
+ domains: SitesDomainsV2200DomainsItem[];
450
+ limit?: number;
451
+ page?: number;
452
+ total?: number;
453
+ };
433
454
  /**
434
455
  * Most recent errors logged during domain ssl validation. Remains set if validation tries run out. Gets reset by new validation job.
435
456
  * @nullable
@@ -566,26 +587,9 @@ export declare type SitesDomainsV2200DomainsItem = {
566
587
  */
567
588
  used_entri?: number | null;
568
589
  };
569
- export declare type SitesDomainsV2200 = {
570
- domains: SitesDomainsV2200DomainsItem[];
571
- limit?: number;
572
- page?: number;
573
- total?: number;
574
- };
575
590
  export declare type SitesDomainsV2Params = {
576
591
  scan?: boolean;
577
592
  };
578
- export declare type SitesListV2200 = {
579
- items?: SitesListV2200ItemsItem[];
580
- /** page size */
581
- limit?: number;
582
- /** current page number */
583
- page?: number;
584
- /** total number of pages */
585
- pages?: number;
586
- /** total number of sites returned */
587
- total?: number;
588
- };
589
593
  /**
590
594
  * @nullable
591
595
  */
@@ -613,63 +617,6 @@ export declare type SitesListV2200ItemsItemStaging = {
613
617
  /** A list of staging sites of the current site */
614
618
  sites?: number[];
615
619
  } | null;
616
- export declare type SitesListV2200ItemsItemResourcesStorage = {
617
- /** @nullable */
618
- available?: number | null;
619
- /** @nullable */
620
- total?: number | null;
621
- unit?: string;
622
- /** @nullable */
623
- used?: number | null;
624
- };
625
- export declare type SitesListV2200ItemsItemResources = {
626
- storage?: SitesListV2200ItemsItemResourcesStorage;
627
- /** @nullable */
628
- workers?: number | null;
629
- };
630
- /**
631
- * @nullable
632
- */
633
- export declare type SitesListV2200ItemsItemPendingUrlData = {
634
- /**
635
- * The root domain name
636
- * @nullable
637
- */
638
- base_domain?: string | null;
639
- /**
640
- * The Fully Qualified Domain Name (FQDN)
641
- * @nullable
642
- */
643
- domain?: string | null;
644
- /**
645
- * The current pending_url's HAL Domain ID
646
- * @nullable
647
- */
648
- domain_id?: number | null;
649
- /** @nullable */
650
- error?: string | null;
651
- /** Flag indicating whether the pending_url is temporary or not */
652
- is_temp?: boolean;
653
- /**
654
- * Flag indicating whether the url_sync job has run out of attempts
655
- * @nullable
656
- */
657
- job_failed?: boolean | null;
658
- /** @nullable */
659
- stage?: string | null;
660
- /**
661
- * Timestamp for when we will update the WP url, regardless of active sessions
662
- * @nullable
663
- */
664
- wp_session?: string | null;
665
- } | null;
666
- /**
667
- * Job ids for the site
668
- * @nullable
669
- */
670
- export declare type SitesListV2200ItemsItemJobs = {
671
- [key: string]: unknown;
672
- } | null;
673
620
  export declare type SitesListV2200ItemsItem = {
674
621
  /** @nullable */
675
622
  account_back_ref?: string | null;
@@ -748,16 +695,74 @@ export declare type SitesListV2200ItemsItem = {
748
695
  */
749
696
  version_ptr?: string | null;
750
697
  };
751
- export declare type PublicImagesV2200 = {
752
- /** Limit the number of images returned */
753
- limit?: PublicImagesV2200Limit;
754
- /** Number of images returned */
755
- n_rows?: PublicImagesV2200NRows;
756
- /** Page number */
757
- page?: PublicImagesV2200Page;
758
- /** List of images */
759
- rows?: PublicImagesV2200RowsItem[];
698
+ export declare type SitesListV2200 = {
699
+ items?: SitesListV2200ItemsItem[];
700
+ /** page size */
701
+ limit?: number;
702
+ /** current page number */
703
+ page?: number;
704
+ /** total number of pages */
705
+ pages?: number;
706
+ /** total number of sites returned */
707
+ total?: number;
708
+ };
709
+ export declare type SitesListV2200ItemsItemResourcesStorage = {
710
+ /** @nullable */
711
+ available?: number | null;
712
+ /** @nullable */
713
+ total?: number | null;
714
+ unit?: string;
715
+ /** @nullable */
716
+ used?: number | null;
717
+ };
718
+ export declare type SitesListV2200ItemsItemResources = {
719
+ storage?: SitesListV2200ItemsItemResourcesStorage;
720
+ /** @nullable */
721
+ workers?: number | null;
760
722
  };
723
+ /**
724
+ * @nullable
725
+ */
726
+ export declare type SitesListV2200ItemsItemPendingUrlData = {
727
+ /**
728
+ * The root domain name
729
+ * @nullable
730
+ */
731
+ base_domain?: string | null;
732
+ /**
733
+ * The Fully Qualified Domain Name (FQDN)
734
+ * @nullable
735
+ */
736
+ domain?: string | null;
737
+ /**
738
+ * The current pending_url's HAL Domain ID
739
+ * @nullable
740
+ */
741
+ domain_id?: number | null;
742
+ /** @nullable */
743
+ error?: string | null;
744
+ /** Flag indicating whether the pending_url is temporary or not */
745
+ is_temp?: boolean;
746
+ /**
747
+ * Flag indicating whether the url_sync job has run out of attempts
748
+ * @nullable
749
+ */
750
+ job_failed?: boolean | null;
751
+ /** @nullable */
752
+ stage?: string | null;
753
+ /**
754
+ * Timestamp for when we will update the WP url, regardless of active sessions
755
+ * @nullable
756
+ */
757
+ wp_session?: string | null;
758
+ } | null;
759
+ /**
760
+ * Job ids for the site
761
+ * @nullable
762
+ */
763
+ export declare type SitesListV2200ItemsItemJobs = {
764
+ [key: string]: unknown;
765
+ } | null;
761
766
  /**
762
767
  * User image
763
768
  * @nullable
@@ -918,6 +923,16 @@ export declare type PublicImagesV2200NRows = string | number;
918
923
  * Limit the number of images returned
919
924
  */
920
925
  export declare type PublicImagesV2200Limit = string | number;
926
+ export declare type PublicImagesV2200 = {
927
+ /** Limit the number of images returned */
928
+ limit?: PublicImagesV2200Limit;
929
+ /** Number of images returned */
930
+ n_rows?: PublicImagesV2200NRows;
931
+ /** Page number */
932
+ page?: PublicImagesV2200Page;
933
+ /** List of images */
934
+ rows?: PublicImagesV2200RowsItem[];
935
+ };
921
936
  export declare type PublicImagesV2Params = {
922
937
  /**
923
938
  * Brand identifier (e.g. bluehost).
@@ -926,12 +941,25 @@ export declare type PublicImagesV2Params = {
926
941
  };
927
942
  export declare type SshKeyV2200 = {
928
943
  deleted?: number;
944
+ /** Shared hosting only; key name from request or GAP */
929
945
  key_name?: string;
930
946
  };
947
+ /**
948
+ * VPS/dedicated optional: 1 = deauthorize + DB; omit or 0 = DB only
949
+ */
950
+ export declare type SshKeyV2BodyRemote = typeof SshKeyV2BodyRemote[keyof typeof SshKeyV2BodyRemote];
951
+ export declare const SshKeyV2BodyRemote: {
952
+ readonly NUMBER_0: 0;
953
+ readonly NUMBER_1: 1;
954
+ };
931
955
  export declare type SshKeyV2Body = {
932
- authorize: boolean;
933
- name: string;
956
+ authorize?: boolean;
957
+ /** server_pubkey row id (VPS/dedicated) */
958
+ id?: number;
959
+ name?: string;
934
960
  note?: string;
961
+ /** VPS/dedicated optional: 1 = deauthorize + DB; omit or 0 = DB only */
962
+ remote?: SshKeyV2BodyRemote;
935
963
  source?: string;
936
964
  };
937
965
  export declare type SshKeyListV2200RowsItem = {
@@ -1034,30 +1062,6 @@ export declare type HostingSitesV2200UsedSitesDetails = {
1034
1062
  /** Count of staging sites on specified hosting account */
1035
1063
  staging_sites?: number;
1036
1064
  };
1037
- export declare type HostingSitesV2200 = {
1038
- /**
1039
- * Remaining number of sites the customer can create. Max sites - used sites. Null means 'unlimited'.
1040
- * @nullable
1041
- */
1042
- available_sites?: number | null;
1043
- items?: HostingSitesV2200ItemsItem[];
1044
- /** page size */
1045
- limit?: number;
1046
- /**
1047
- * Maximum number of sites the customer can have. Null means 'unlimited'.
1048
- * @nullable
1049
- */
1050
- max_sites?: number | null;
1051
- /** current page number */
1052
- page?: number;
1053
- /** total number of pages */
1054
- pages?: number;
1055
- /** total number of sites returned */
1056
- total?: number;
1057
- /** Current number of sites in use by the customer. its normal for this value to be different than the total number of sites in the list. */
1058
- used_sites?: number;
1059
- used_sites_details?: HostingSitesV2200UsedSitesDetails;
1060
- };
1061
1065
  /**
1062
1066
  * @nullable
1063
1067
  */
@@ -1187,6 +1191,30 @@ export declare type HostingSitesV2200ItemsItem = {
1187
1191
  /** @nullable */
1188
1192
  wp_multi_site?: HostingSitesV2200ItemsItemWpMultiSite;
1189
1193
  };
1194
+ export declare type HostingSitesV2200 = {
1195
+ /**
1196
+ * Remaining number of sites the customer can create. Max sites - used sites. Null means 'unlimited'.
1197
+ * @nullable
1198
+ */
1199
+ available_sites?: number | null;
1200
+ items?: HostingSitesV2200ItemsItem[];
1201
+ /** page size */
1202
+ limit?: number;
1203
+ /**
1204
+ * Maximum number of sites the customer can have. Null means 'unlimited'.
1205
+ * @nullable
1206
+ */
1207
+ max_sites?: number | null;
1208
+ /** current page number */
1209
+ page?: number;
1210
+ /** total number of pages */
1211
+ pages?: number;
1212
+ /** total number of sites returned */
1213
+ total?: number;
1214
+ /** Current number of sites in use by the customer. its normal for this value to be different than the total number of sites in the list. */
1215
+ used_sites?: number;
1216
+ used_sites_details?: HostingSitesV2200UsedSitesDetails;
1217
+ };
1190
1218
  export declare type HostingSitesV2200ItemsItemResourcesStorage = {
1191
1219
  /** @nullable */
1192
1220
  available?: number | null;
@@ -1853,6 +1881,12 @@ export declare type UserServersParams = {
1853
1881
  */
1854
1882
  prod_inst_id?: string | null;
1855
1883
  };
1884
+ export declare type UserProservices200 = {
1885
+ /** Pro-services products from FG */
1886
+ products?: UserProservices200ProductsItem[];
1887
+ /** Number of pro-services products returned */
1888
+ total?: number;
1889
+ };
1856
1890
  export declare type UserProservices200ProductsItemProductProfileOptionsItem = {
1857
1891
  /** @nullable */
1858
1892
  profile_option?: number | null;
@@ -1911,12 +1945,6 @@ export declare type UserProservices200ProductsItem = {
1911
1945
  /** Pro-services status: Active or Completed */
1912
1946
  status?: string;
1913
1947
  };
1914
- export declare type UserProservices200 = {
1915
- /** Pro-services products from FG */
1916
- products?: UserProservices200ProductsItem[];
1917
- /** Number of pro-services products returned */
1918
- total?: number;
1919
- };
1920
1948
  export declare type UserProducts502 = {
1921
1949
  /** Error code */
1922
1950
  error?: string;
@@ -2072,6 +2100,10 @@ export declare type UserHostingOverviewParams = {
2072
2100
  */
2073
2101
  limit?: number;
2074
2102
  };
2103
+ export declare type UserHosting200 = {
2104
+ /** Information for the paginated hosting accounts */
2105
+ rows?: UserHosting200RowsItem[];
2106
+ };
2075
2107
  /**
2076
2108
  * Usage statistics for staging sites
2077
2109
  * @nullable
@@ -2301,10 +2333,6 @@ export declare type UserHosting200RowsItem = {
2301
2333
  */
2302
2334
  used_stage?: UserHosting200RowsItemUsedStage;
2303
2335
  };
2304
- export declare type UserHosting200 = {
2305
- /** Information for the paginated hosting accounts */
2306
- rows?: UserHosting200RowsItem[];
2307
- };
2308
2336
  /**
2309
2337
  * Region information for the account
2310
2338
  * @nullable
@@ -2601,6 +2629,9 @@ export declare type SitesVersion200 = {
2601
2629
  latest?: string;
2602
2630
  update?: boolean;
2603
2631
  };
2632
+ export declare type SiteUsers200 = {
2633
+ users: SiteUsers200UsersItem[];
2634
+ };
2604
2635
  export declare type SiteUsers200UsersItemMeta = {
2605
2636
  maestro_web_pro?: string;
2606
2637
  maestro_wpp_identifier?: string;
@@ -2616,9 +2647,6 @@ export declare type SiteUsers200UsersItem = {
2616
2647
  user_login: string;
2617
2648
  user_nicename: string;
2618
2649
  };
2619
- export declare type SiteUsers200 = {
2620
- users: SiteUsers200UsersItem[];
2621
- };
2622
2650
  export declare type SiteStatus200 = {
2623
2651
  /** @nullable */
2624
2652
  cloudflare_ready?: boolean | null;
@@ -2957,6 +2985,9 @@ export declare type SiteQualityMetrics200Audits = {
2957
2985
  export declare type SiteQualityMetrics200AspectScores = {
2958
2986
  performance?: number;
2959
2987
  };
2988
+ export declare type SiteQualityMetrics200AspectDetails = {
2989
+ performance?: SiteQualityMetrics200AspectDetailsPerformance;
2990
+ };
2960
2991
  export declare type SiteQualityMetrics200 = {
2961
2992
  aspect_details: SiteQualityMetrics200AspectDetails;
2962
2993
  aspect_scores: SiteQualityMetrics200AspectScores;
@@ -2987,9 +3018,6 @@ export declare type SiteQualityMetrics200AspectDetailsPerformance = {
2987
3018
  'speed-index'?: SiteQualityMetrics200AspectDetailsPerformanceSpeedIndex;
2988
3019
  'total-blocking-time'?: SiteQualityMetrics200AspectDetailsPerformanceTotalBlockingTime;
2989
3020
  };
2990
- export declare type SiteQualityMetrics200AspectDetails = {
2991
- performance?: SiteQualityMetrics200AspectDetailsPerformance;
2992
- };
2993
3021
  export declare type SiteQualityMetricsStrategy = typeof SiteQualityMetricsStrategy[keyof typeof SiteQualityMetricsStrategy];
2994
3022
  export declare const SiteQualityMetricsStrategy: {
2995
3023
  readonly MOBILE: "MOBILE";
@@ -3173,6 +3201,13 @@ export declare type SitePendingDomainDelete200 = {
3173
3201
  export declare type SitesOnboardingSteps200 = {
3174
3202
  steps?: SiteOnboardingStepModel[];
3175
3203
  };
3204
+ export declare type SitesMetricDimensions200 = {
3205
+ date_end?: string;
3206
+ date_start?: string;
3207
+ dimensions?: SitesMetricDimensions200Dimensions;
3208
+ elapsed?: number;
3209
+ metric?: string;
3210
+ };
3176
3211
  export declare type SitesMetricDimensions200DimensionsWpAdminAjaxActionItemDimension = {
3177
3212
  [key: string]: number;
3178
3213
  };
@@ -3222,25 +3257,6 @@ export declare type SitesMetricDimensions200DimensionsHttpVersionItem = {
3222
3257
  dimension?: SitesMetricDimensions200DimensionsHttpVersionItemDimension;
3223
3258
  timestamp?: number;
3224
3259
  };
3225
- export declare type SitesMetricDimensions200Dimensions = {
3226
- http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
3227
- http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
3228
- http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
3229
- http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
3230
- page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
3231
- page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
3232
- visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
3233
- visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
3234
- visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
3235
- wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
3236
- };
3237
- export declare type SitesMetricDimensions200 = {
3238
- date_end?: string;
3239
- date_start?: string;
3240
- dimensions?: SitesMetricDimensions200Dimensions;
3241
- elapsed?: number;
3242
- metric?: string;
3243
- };
3244
3260
  export declare type SitesMetricDimensions200DimensionsHttpVerbItemDimension = {
3245
3261
  [key: string]: number;
3246
3262
  };
@@ -3262,6 +3278,18 @@ export declare type SitesMetricDimensions200DimensionsHttpHostItem = {
3262
3278
  dimension?: SitesMetricDimensions200DimensionsHttpHostItemDimension;
3263
3279
  timestamp?: number;
3264
3280
  };
3281
+ export declare type SitesMetricDimensions200Dimensions = {
3282
+ http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
3283
+ http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
3284
+ http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
3285
+ http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
3286
+ page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
3287
+ page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
3288
+ visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
3289
+ visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
3290
+ visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
3291
+ wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
3292
+ };
3265
3293
  export declare type SitesMetricDimensionsParams = {
3266
3294
  start?: string;
3267
3295
  end?: string;
@@ -4107,9 +4135,6 @@ export declare type AccountPurchaseProducts400 = {
4107
4135
  /** Customer error code */
4108
4136
  error?: string;
4109
4137
  };
4110
- export declare type AccountPurchaseProducts200 = {
4111
- products?: AccountPurchaseProducts200ProductsItem[];
4112
- };
4113
4138
  export declare type AccountPurchaseProducts200ProductsItemTermsItem = {
4114
4139
  base_price?: string;
4115
4140
  final_price?: string;
@@ -4145,6 +4170,9 @@ export declare type AccountPurchaseProducts200ProductsItem = {
4145
4170
  specs?: AccountPurchaseProducts200ProductsItemSpecs;
4146
4171
  terms?: AccountPurchaseProducts200ProductsItemTermsItem[];
4147
4172
  };
4173
+ export declare type AccountPurchaseProducts200 = {
4174
+ products?: AccountPurchaseProducts200ProductsItem[];
4175
+ };
4148
4176
  export declare type PublicRegions200RowsItem = {
4149
4177
  /**
4150
4178
  * Hosting region city
@@ -4211,6 +4239,56 @@ export declare type PublicRegions200 = {
4211
4239
  /** List of regions */
4212
4240
  rows?: PublicRegions200RowsItem[];
4213
4241
  };
4242
+ export declare type PublicImages200 = {
4243
+ /** Limit the number of images returned */
4244
+ limit?: PublicImages200Limit;
4245
+ /** Number of images returned */
4246
+ n_rows?: PublicImages200NRows;
4247
+ /** Page number */
4248
+ page?: PublicImages200Page;
4249
+ /** List of images */
4250
+ rows?: PublicImages200RowsItem[];
4251
+ };
4252
+ /**
4253
+ * Links
4254
+ * @nullable
4255
+ */
4256
+ export declare type PublicImages200RowsItemLinks = {
4257
+ /**
4258
+ * Community URL
4259
+ * @nullable
4260
+ */
4261
+ community?: string | null;
4262
+ /**
4263
+ * Documentation URL
4264
+ * @nullable
4265
+ */
4266
+ doc?: string | null;
4267
+ /**
4268
+ * Forums URL
4269
+ * @nullable
4270
+ */
4271
+ forums?: string | null;
4272
+ } | null;
4273
+ /**
4274
+ * Image ID
4275
+ */
4276
+ export declare type PublicImages200RowsItemId = string | number;
4277
+ /**
4278
+ * Docker default
4279
+ * @nullable
4280
+ */
4281
+ export declare type PublicImages200RowsItemDockerDefault = string | number | null;
4282
+ /**
4283
+ * Current
4284
+ * @nullable
4285
+ */
4286
+ export declare type PublicImages200RowsItemCurrent = string | number | null;
4287
+ /**
4288
+ * Cpanel default
4289
+ * @nullable
4290
+ */
4291
+ export declare type PublicImages200RowsItemCpanelDefault = string | number | null;
4214
4292
  export declare type PublicImages200RowsItem = {
4215
4293
  /**
4216
4294
  * Whether the image supports third-party AI vendor API keys
@@ -4314,56 +4392,6 @@ export declare type PublicImages200RowsItem = {
4314
4392
  */
4315
4393
  user_image?: string | null;
4316
4394
  };
4317
- export declare type PublicImages200 = {
4318
- /** Limit the number of images returned */
4319
- limit?: PublicImages200Limit;
4320
- /** Number of images returned */
4321
- n_rows?: PublicImages200NRows;
4322
- /** Page number */
4323
- page?: PublicImages200Page;
4324
- /** List of images */
4325
- rows?: PublicImages200RowsItem[];
4326
- };
4327
- /**
4328
- * Links
4329
- * @nullable
4330
- */
4331
- export declare type PublicImages200RowsItemLinks = {
4332
- /**
4333
- * Community URL
4334
- * @nullable
4335
- */
4336
- community?: string | null;
4337
- /**
4338
- * Documentation URL
4339
- * @nullable
4340
- */
4341
- doc?: string | null;
4342
- /**
4343
- * Forums URL
4344
- * @nullable
4345
- */
4346
- forums?: string | null;
4347
- } | null;
4348
- /**
4349
- * Image ID
4350
- */
4351
- export declare type PublicImages200RowsItemId = string | number;
4352
- /**
4353
- * Docker default
4354
- * @nullable
4355
- */
4356
- export declare type PublicImages200RowsItemDockerDefault = string | number | null;
4357
- /**
4358
- * Current
4359
- * @nullable
4360
- */
4361
- export declare type PublicImages200RowsItemCurrent = string | number | null;
4362
- /**
4363
- * Cpanel default
4364
- * @nullable
4365
- */
4366
- export declare type PublicImages200RowsItemCpanelDefault = string | number | null;
4367
4395
  /**
4368
4396
  * Page number
4369
4397
  */
@@ -4396,17 +4424,6 @@ export declare type HostingVisitors200VisitorsItem = {
4396
4424
  unique_visitors?: number;
4397
4425
  visitors?: number;
4398
4426
  };
4399
- export declare type HostingVisitors200 = {
4400
- daily?: HostingVisitors200Daily;
4401
- is_linked_domain?: boolean;
4402
- linked_domain?: string;
4403
- total_bandwidth?: number;
4404
- total_hits?: number;
4405
- total_pages?: number;
4406
- total_unique_visitors?: number;
4407
- total_visitors?: number;
4408
- visitors?: HostingVisitors200VisitorsItem[];
4409
- };
4410
4427
  export declare type HostingVisitors200DailyTotal = {
4411
4428
  total_bandwidth?: number;
4412
4429
  total_hits?: number;
@@ -4426,6 +4443,17 @@ export declare type HostingVisitors200Daily = {
4426
4443
  data?: HostingVisitors200DailyDataItem[];
4427
4444
  total?: HostingVisitors200DailyTotal;
4428
4445
  };
4446
+ export declare type HostingVisitors200 = {
4447
+ daily?: HostingVisitors200Daily;
4448
+ is_linked_domain?: boolean;
4449
+ linked_domain?: string;
4450
+ total_bandwidth?: number;
4451
+ total_hits?: number;
4452
+ total_pages?: number;
4453
+ total_unique_visitors?: number;
4454
+ total_visitors?: number;
4455
+ visitors?: HostingVisitors200VisitorsItem[];
4456
+ };
4429
4457
  export declare type HostingVisitorsSource = typeof HostingVisitorsSource[keyof typeof HostingVisitorsSource];
4430
4458
  export declare const HostingVisitorsSource: {
4431
4459
  readonly http: "http";
@@ -4485,6 +4513,20 @@ export declare type SsoParams = {
4485
4513
  ssl_status?: number;
4486
4514
  bounce?: string;
4487
4515
  };
4516
+ export declare type HostingVpsSshKeySync500 = {
4517
+ error?: string;
4518
+ };
4519
+ export declare type HostingVpsSshKeySync404 = {
4520
+ error?: string;
4521
+ };
4522
+ export declare type HostingVpsSshKeySync200 = {
4523
+ /** The server_pubkey row id */
4524
+ id?: number;
4525
+ /** The SSH public key name */
4526
+ name?: string;
4527
+ /** The server account username the key was installed for */
4528
+ username?: string;
4529
+ };
4488
4530
  export declare type SshKeyGenerate200 = {
4489
4531
  key_name?: string;
4490
4532
  private_key_path?: string;
@@ -7917,7 +7959,7 @@ export declare type AddonsLlmKeysDelete200 = {
7917
7959
  [key: string]: unknown;
7918
7960
  };
7919
7961
  export declare type AddonsLlmKeysDeleteBody = {
7920
- /** the name of the key to be deleted */
7962
+ /** the name of the key to be deleted - must be at least 1 character */
7921
7963
  key_name: string;
7922
7964
  };
7923
7965
  export declare type AddonsLlmKeysCreate200 = {
@@ -7927,7 +7969,7 @@ export declare type AddonsLlmKeysCreate200 = {
7927
7969
  virtual_key?: string;
7928
7970
  };
7929
7971
  export declare type AddonsLlmKeysCreateBody = {
7930
- /** the name of the key to be added */
7972
+ /** the name of the key to be added - must be at least 1 character */
7931
7973
  key_name: string;
7932
7974
  };
7933
7975
  export declare type AddonsLlmKeys200 = {
@@ -44,6 +44,11 @@ export const SitesSecuritySitelockV2Source = {
44
44
  halfg: 'halfg',
45
45
  };
46
46
  // eslint-disable-next-line @typescript-eslint/no-redeclare
47
+ export const SshKeyV2BodyRemote = {
48
+ NUMBER_0: 0,
49
+ NUMBER_1: 1,
50
+ };
51
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
47
52
  export const HostingSiteAddV2BodyDatacenter = {
48
53
  'Amsterdam,_Netherlands': 'Amsterdam, Netherlands',
49
54
  'Ashburn,_Virginia': 'Ashburn, Virginia',