@newfold/huapi-js 1.4.1 → 1.388.0-alpha.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/README.md +79 -6
- package/package.json +4 -5
- package/src/orval-generated/index.d.ts +1323 -148
- package/src/orval-generated/index.js +1611 -189
- package/src/orval-generated/index.msw.d.ts +444 -32
- package/src/orval-generated/index.msw.js +368 -67
- package/src/orval-generated/models/addonCloudflare200.d.ts +11 -0
- package/src/orval-generated/models/{addonsCodeguardBackupsParams.js → addonCloudflare200.js} +2 -2
- package/src/orval-generated/models/addonCloudflareBody.d.ts +11 -0
- package/src/orval-generated/models/{addonsCodeguardBackupRestore200.js → addonCloudflareBody.js} +2 -2
- package/src/orval-generated/models/{addonsCodeguardBackupRestore200.d.ts → addonsCloudflare200.d.ts} +3 -3
- package/src/orval-generated/models/{addonsCodeguardBackups200BackupsItemDatabaseBackupsItem.js → addonsCloudflare200.js} +2 -2
- package/src/orval-generated/models/addonsInfo200.d.ts +10 -0
- package/src/orval-generated/models/{addonsCodeguardBackupRestoreBody.js → addonsInfo200.js} +2 -2
- package/src/orval-generated/models/addonsSitelockSso200.d.ts +12 -0
- package/src/orval-generated/models/addonsSitelockSso200.js +9 -0
- package/src/orval-generated/models/{addonsCodeguardWebsiteBackupCreate200.d.ts → codeguardBackupCreate200.d.ts} +3 -3
- package/src/orval-generated/models/codeguardBackupCreate200.js +9 -0
- package/src/orval-generated/models/codeguardBackupCreateBody.d.ts +13 -0
- package/src/orval-generated/models/codeguardBackupCreateBody.js +9 -0
- package/src/orval-generated/models/{addonsCodeguardDatabaseBackupCreate200.d.ts → codeguardBackupDownload200.d.ts} +3 -3
- package/src/orval-generated/models/codeguardBackupDownload200.js +9 -0
- package/src/orval-generated/models/codeguardBackupDownloadBody.d.ts +15 -0
- package/src/orval-generated/models/codeguardBackupDownloadBody.js +9 -0
- package/src/orval-generated/models/codeguardBackupList200.d.ts +11 -0
- package/src/orval-generated/models/codeguardBackupList200BackupsItem.d.ts +13 -0
- package/src/orval-generated/models/{addonsCodeguardBackups200BackupsItemDatabaseBackupsItem.d.ts → codeguardBackupList200BackupsItemDatabaseBackupsItem.d.ts} +4 -4
- package/src/orval-generated/models/codeguardBackupList200BackupsItemDatabaseBackupsItem.js +9 -0
- package/src/orval-generated/models/{addonsCodeguardBackupsParams.d.ts → codeguardBackupListParams.d.ts} +3 -3
- package/src/orval-generated/models/codeguardBackupListParams.js +9 -0
- package/src/orval-generated/models/codeguardBackupRestore200.d.ts +11 -0
- package/src/orval-generated/models/codeguardBackupRestore200.js +9 -0
- package/src/orval-generated/models/{addonsCodeguardBackupRestoreBody.d.ts → codeguardBackupRestoreBody.d.ts} +3 -3
- package/src/orval-generated/models/codeguardBackupRestoreBody.js +9 -0
- package/src/orval-generated/models/{addonsCodeguardWebsiteBackupRestore200.d.ts → codeguardDatabaseBackupCreate200.d.ts} +3 -3
- package/src/orval-generated/models/codeguardDatabaseBackupCreate200.js +9 -0
- package/src/orval-generated/models/{addonsCodeguardDatabaseBackupCreateBody.d.ts → codeguardDatabaseBackupCreateBody.d.ts} +3 -3
- package/src/orval-generated/models/codeguardDatabaseBackupCreateBody.js +9 -0
- package/src/orval-generated/models/codeguardDatabaseBackupList200.d.ts +11 -0
- package/src/orval-generated/models/{addonsCodeguardDatabaseBackupList200BackupsItem.d.ts → codeguardDatabaseBackupList200BackupsItem.d.ts} +3 -3
- package/src/orval-generated/models/codeguardDatabaseBackupList200BackupsItem.js +9 -0
- package/src/orval-generated/models/{addonsCodeguardDatabaseBackupListParams.d.ts → codeguardDatabaseBackupListParams.d.ts} +3 -3
- package/src/orval-generated/models/codeguardDatabaseBackupListParams.js +9 -0
- package/src/orval-generated/models/codeguardDatabaseBackupRestore200.d.ts +10 -0
- package/src/orval-generated/models/codeguardDatabaseBackupRestore200.js +9 -0
- package/src/orval-generated/models/{addonsCodeguardDatabaseBackupRestoreBody.d.ts → codeguardDatabaseBackupRestoreBody.d.ts} +3 -3
- package/src/orval-generated/models/codeguardDatabaseBackupRestoreBody.js +9 -0
- package/src/orval-generated/models/codeguardDatabaseList200.d.ts +12 -0
- package/src/orval-generated/models/codeguardDatabaseList200DatabasesItem.d.ts +11 -0
- package/src/orval-generated/models/{addonsCodeguardDatabaseList200DatabasesItemDatabaseBackup.d.ts → codeguardDatabaseList200DatabasesItemDatabaseBackup.d.ts} +3 -3
- package/src/orval-generated/models/codeguardDatabaseList200DatabasesItemDatabaseBackup.js +9 -0
- package/src/orval-generated/models/{addonsCodeguardLoginLinkGenerate200.d.ts → codeguardLoginLink200.d.ts} +3 -3
- package/src/orval-generated/models/codeguardLoginLink200.js +9 -0
- package/src/orval-generated/models/codeguardPlanInfo200.d.ts +17 -0
- package/src/orval-generated/models/codeguardPlanInfo200SeatsItem.d.ts +12 -0
- package/src/orval-generated/models/codeguardPlanInfo200SeatsItem.js +9 -0
- package/src/orval-generated/models/codeguardWebsiteBackupCreate200.d.ts +10 -0
- package/src/orval-generated/models/codeguardWebsiteBackupCreate200.js +9 -0
- package/src/orval-generated/models/{addonsCodeguardWebsiteBackupCreateBody.d.ts → codeguardWebsiteBackupCreateBody.d.ts} +3 -3
- package/src/orval-generated/models/codeguardWebsiteBackupCreateBody.js +9 -0
- package/src/orval-generated/models/codeguardWebsiteBackupList200.d.ts +11 -0
- package/src/orval-generated/models/{addonsCodeguardWebsiteBackupList200BackupsItem.d.ts → codeguardWebsiteBackupList200BackupsItem.d.ts} +3 -3
- package/src/orval-generated/models/codeguardWebsiteBackupList200BackupsItem.js +9 -0
- package/src/orval-generated/models/{addonsCodeguardWebsiteBackupListParams.d.ts → codeguardWebsiteBackupListParams.d.ts} +3 -3
- package/src/orval-generated/models/codeguardWebsiteBackupListParams.js +9 -0
- package/src/orval-generated/models/codeguardWebsiteBackupRestore200.d.ts +10 -0
- package/src/orval-generated/models/codeguardWebsiteBackupRestore200.js +9 -0
- package/src/orval-generated/models/{addonsCodeguardWebsiteBackupRestoreBody.d.ts → codeguardWebsiteBackupRestoreBody.d.ts} +3 -3
- package/src/orval-generated/models/codeguardWebsiteBackupRestoreBody.js +9 -0
- package/src/orval-generated/models/codeguardWebsiteList200.d.ts +11 -0
- package/src/orval-generated/models/codeguardWebsiteList200WebsiteListItem.d.ts +11 -0
- package/src/orval-generated/models/{addonsCodeguardWebsiteList200WebsiteListItemWebsite.d.ts → codeguardWebsiteList200WebsiteListItemWebsite.d.ts} +3 -3
- package/src/orval-generated/models/codeguardWebsiteList200WebsiteListItemWebsite.js +9 -0
- package/src/orval-generated/models/domains200.d.ts +11 -0
- package/src/orval-generated/models/domains200.js +2 -0
- package/src/orval-generated/models/domains200DomainsItem.d.ts +13 -0
- package/src/orval-generated/models/domains200DomainsItem.js +9 -0
- package/src/orval-generated/models/domainsParams.d.ts +11 -0
- package/src/orval-generated/models/domainsParams.js +2 -0
- package/src/orval-generated/models/domainsType.d.ts +15 -0
- package/src/orval-generated/models/domainsType.js +18 -0
- package/src/orval-generated/models/hostingAccount200.d.ts +17 -0
- package/src/orval-generated/models/hostingAccount200.js +9 -0
- package/src/orval-generated/models/hostingAddons200.d.ts +2 -2
- package/src/orval-generated/models/hostingAddons200RowsItem.d.ts +3 -2
- package/src/orval-generated/models/hostingAddons200RowsItem.js +2 -2
- package/src/orval-generated/models/hostingAddonsParams.d.ts +2 -2
- package/src/orval-generated/models/hostingAddonsParams.js +2 -2
- package/src/orval-generated/models/hostingAdvancedPassword200.d.ts +10 -0
- package/src/orval-generated/models/hostingAdvancedPassword200.js +9 -0
- package/src/orval-generated/models/hostingAdvancedPasswordBody.d.ts +13 -0
- package/src/orval-generated/models/hostingAdvancedPasswordBody.js +9 -0
- package/src/orval-generated/models/hostingAdvancedServer200.d.ts +14 -0
- package/src/orval-generated/models/hostingAdvancedServer200.js +2 -0
- package/src/orval-generated/models/{addonsCodeguardWebsiteBackupRestore400Error.d.ts → hostingAdvancedServer200Actions.d.ts} +3 -3
- package/src/orval-generated/models/hostingAdvancedServer200Actions.js +9 -0
- package/src/orval-generated/models/hostingAdvancedServerStatus200.d.ts +14 -0
- package/src/orval-generated/models/hostingAdvancedServerStatus200.js +2 -0
- package/src/orval-generated/models/hostingAdvancedServerStatus200Actions.d.ts +10 -0
- package/src/orval-generated/models/hostingAdvancedServerStatus200Actions.js +9 -0
- package/src/orval-generated/models/hostingAdvancedServerStatusBody.d.ts +11 -0
- package/src/orval-generated/models/hostingAdvancedServerStatusBody.js +9 -0
- package/src/orval-generated/models/hostingAdvancedSsoWhm200.d.ts +10 -0
- package/src/orval-generated/models/hostingAdvancedSsoWhm200.js +9 -0
- package/src/orval-generated/models/hostingAdvancedSystemConsole200.d.ts +10 -0
- package/src/orval-generated/models/hostingAdvancedSystemConsole200.js +9 -0
- package/src/orval-generated/models/hostingCapabilities200.d.ts +14 -0
- package/src/orval-generated/models/hostingCapabilities200.js +9 -0
- package/src/orval-generated/models/hostingFtp200.d.ts +10 -0
- package/src/orval-generated/models/hostingFtp200.js +9 -0
- package/src/orval-generated/models/hostingFtpAdd200.d.ts +11 -0
- package/src/orval-generated/models/hostingFtpAdd200.js +9 -0
- package/src/orval-generated/models/hostingFtpAddBody.d.ts +24 -0
- package/src/orval-generated/models/hostingFtpAddBody.js +9 -0
- package/src/orval-generated/models/hostingFtpBody.d.ts +17 -0
- package/src/orval-generated/models/hostingFtpBody.js +9 -0
- package/src/orval-generated/models/hostingFtpList200.d.ts +6 -4
- package/src/orval-generated/models/{hostingFtpList200FtpAccountItem.d.ts → hostingFtpList200FtpAccountsItem.d.ts} +4 -3
- package/src/orval-generated/models/hostingFtpList200FtpAccountsItem.js +9 -0
- package/src/orval-generated/models/hostingFtpList200SpecialFtpAccountsItem.d.ts +12 -0
- package/src/orval-generated/models/hostingFtpList200SpecialFtpAccountsItem.js +9 -0
- package/src/orval-generated/models/hostingInfo200.d.ts +3 -3
- package/src/orval-generated/models/hostingInfo200.js +2 -2
- package/src/orval-generated/models/hostingInfoDiskUsage200.d.ts +11 -0
- package/src/orval-generated/models/hostingInfoDiskUsage200.js +9 -0
- package/src/orval-generated/models/hostingMigrationInfo200.d.ts +17 -0
- package/src/orval-generated/models/hostingMigrationInfo200.js +9 -0
- package/src/orval-generated/models/hostingMigrationInfoParams.d.ts +10 -0
- package/src/orval-generated/models/hostingMigrationInfoParams.js +9 -0
- package/src/orval-generated/models/hostingMigrationSiteScanStatus200.d.ts +11 -0
- package/src/orval-generated/models/hostingMigrationSiteScanStatus200.js +9 -0
- package/src/orval-generated/models/hostingMigrationSiteScanStatusParams.d.ts +13 -0
- package/src/orval-generated/models/hostingMigrationSiteScanStatusParams.js +9 -0
- package/src/orval-generated/models/hostingMigrationStatus200.d.ts +11 -0
- package/src/orval-generated/models/hostingMigrationStatus200.js +2 -0
- package/src/orval-generated/models/hostingMigrationStatus200RowsItem.d.ts +13 -0
- package/src/orval-generated/models/hostingMigrationStatus200RowsItem.js +9 -0
- package/src/orval-generated/models/hostingMigrations200.d.ts +10 -0
- package/src/orval-generated/models/hostingMigrations200.js +9 -0
- package/src/orval-generated/models/hostingMigrationsBody.d.ts +11 -0
- package/src/orval-generated/models/hostingMigrationsBody.js +9 -0
- package/src/orval-generated/models/hostingMigrationsEvent200.d.ts +10 -0
- package/src/orval-generated/models/hostingMigrationsEvent200.js +9 -0
- package/src/orval-generated/models/hostingMigrationsEventBody.d.ts +13 -0
- package/src/orval-generated/models/hostingMigrationsEventBody.js +2 -0
- package/src/orval-generated/models/hostingMigrationsEventBodyEventName.d.ts +17 -0
- package/src/orval-generated/models/hostingMigrationsEventBodyEventName.js +20 -0
- package/src/orval-generated/models/hostingNameservers200.d.ts +10 -0
- package/src/orval-generated/models/hostingNameservers200.js +9 -0
- package/src/orval-generated/models/hostingShellInfo200.d.ts +10 -0
- package/src/orval-generated/models/hostingShellInfo200.js +9 -0
- package/src/orval-generated/models/hostingShellToggle200.d.ts +10 -0
- package/src/orval-generated/models/hostingShellToggle200.js +9 -0
- package/src/orval-generated/models/hostingShellToggleBody.d.ts +11 -0
- package/src/orval-generated/models/hostingShellToggleBody.js +9 -0
- package/src/orval-generated/models/hostingSiteAdd200.d.ts +12 -0
- package/src/orval-generated/models/hostingSiteAdd200.js +9 -0
- package/src/orval-generated/models/hostingSiteAddBody.d.ts +17 -0
- package/src/orval-generated/models/hostingSiteAddBody.js +9 -0
- package/src/orval-generated/models/hostingSites200.d.ts +11 -2
- package/src/orval-generated/models/hostingSites200RowsItem.d.ts +7 -2
- package/src/orval-generated/models/hostingSites200RowsItem.js +0 -7
- package/src/orval-generated/models/hostingSites200RowsItemMeta.d.ts +10 -0
- package/src/orval-generated/models/hostingSites200RowsItemMeta.js +9 -0
- package/src/orval-generated/models/hostingSitesV2200.d.ts +20 -0
- package/src/orval-generated/models/hostingSitesV2200.js +2 -0
- package/src/orval-generated/models/hostingSitesV2200ItemsItem.d.ts +15 -0
- package/src/orval-generated/models/hostingSitesV2200ItemsItem.js +9 -0
- package/src/orval-generated/models/{addonsCodeguardDatabaseBackupRestore200.d.ts → hostingSshInfo200.d.ts} +4 -3
- package/src/orval-generated/models/hostingSshInfo200.js +9 -0
- package/src/orval-generated/models/index.d.ts +174 -37
- package/src/orval-generated/models/index.js +174 -37
- package/src/orval-generated/models/jetpackBackupStatus200.d.ts +11 -0
- package/src/orval-generated/models/jetpackBackupStatus200.js +9 -0
- package/src/orval-generated/models/resetSite200.d.ts +12 -0
- package/src/orval-generated/models/resetSite200.js +9 -0
- package/src/orval-generated/models/site200.d.ts +10 -0
- package/src/orval-generated/models/site200.js +9 -0
- package/src/orval-generated/models/sitePlugins200.d.ts +13 -0
- package/src/orval-generated/models/sitePlugins200.js +2 -0
- package/src/orval-generated/models/sitePlugins200PluginsItem.d.ts +13 -0
- package/src/orval-generated/models/sitePlugins200PluginsItem.js +9 -0
- package/src/orval-generated/models/sitePluginsAutoupdate200.d.ts +10 -0
- package/src/orval-generated/models/sitePluginsAutoupdate200.js +9 -0
- package/src/orval-generated/models/sitePluginsAutoupdateBody.d.ts +10 -0
- package/src/orval-generated/models/sitePluginsAutoupdateBody.js +9 -0
- package/src/orval-generated/models/sitePluginsToggle200.d.ts +10 -0
- package/src/orval-generated/models/sitePluginsToggle200.js +9 -0
- package/src/orval-generated/models/sitePluginsToggleBody.d.ts +13 -0
- package/src/orval-generated/models/sitePluginsToggleBody.js +9 -0
- package/src/orval-generated/models/sitePluginsUpdate200.d.ts +10 -0
- package/src/orval-generated/models/sitePluginsUpdate200.js +9 -0
- package/src/orval-generated/models/sitePluginsUpdateBody.d.ts +11 -0
- package/src/orval-generated/models/sitePluginsUpdateBody.js +9 -0
- package/src/orval-generated/models/siteSettingsAutoupdatePlugins200.d.ts +10 -0
- package/src/orval-generated/models/siteSettingsAutoupdatePlugins200.js +9 -0
- package/src/orval-generated/models/siteUpdate200.d.ts +10 -0
- package/src/orval-generated/models/siteUpdate200.js +9 -0
- package/src/orval-generated/models/siteUpdate400.d.ts +10 -0
- package/src/orval-generated/models/siteUpdate400.js +9 -0
- package/src/orval-generated/models/siteUpdateBody.d.ts +15 -0
- package/src/orval-generated/models/siteUpdateBody.js +9 -0
- package/src/orval-generated/models/siteUsers200.d.ts +11 -0
- package/src/orval-generated/models/siteUsers200.js +2 -0
- package/src/orval-generated/models/siteUsers200UsersItem.d.ts +19 -0
- package/src/orval-generated/models/siteUsers200UsersItem.js +2 -0
- package/src/orval-generated/models/siteUsers200UsersItemMeta.d.ts +11 -0
- package/src/orval-generated/models/siteUsers200UsersItemMeta.js +9 -0
- package/src/orval-generated/models/sitesAutoupdatesResponse.d.ts +12 -0
- package/src/orval-generated/models/sitesAutoupdatesResponse.js +9 -0
- package/src/orval-generated/models/sitesAutoupdatesUpdateBody.d.ts +14 -0
- package/src/orval-generated/models/sitesAutoupdatesUpdateBody.js +2 -0
- package/src/orval-generated/models/sitesAutoupdatesUpdateBodyType.d.ts +16 -0
- package/src/orval-generated/models/sitesAutoupdatesUpdateBodyType.js +16 -0
- package/src/orval-generated/models/sitesBackups200.d.ts +10 -0
- package/src/orval-generated/models/sitesBackups200.js +9 -0
- package/src/orval-generated/models/sitesBackupsDetails200.d.ts +13 -0
- package/src/orval-generated/models/sitesBackupsDetails200.js +2 -0
- package/src/orval-generated/models/sitesBackupsDetails200Codeguard.d.ts +17 -0
- package/src/orval-generated/models/sitesBackupsDetails200Codeguard.js +9 -0
- package/src/orval-generated/models/sitesBackupsDetails200Jetpack.d.ts +11 -0
- package/src/orval-generated/models/sitesBackupsDetails200Jetpack.js +9 -0
- package/src/orval-generated/models/sitesDns200.d.ts +13 -0
- package/src/orval-generated/models/sitesDns200.js +2 -0
- package/src/orval-generated/models/sitesDns200RecordsItem.d.ts +12 -0
- package/src/orval-generated/models/sitesDns200RecordsItem.js +9 -0
- package/src/orval-generated/models/sitesDnsParams.d.ts +10 -0
- package/src/orval-generated/models/sitesDnsParams.js +9 -0
- package/src/orval-generated/models/sitesDomain200.d.ts +16 -0
- package/src/orval-generated/models/sitesDomain200.js +2 -0
- package/src/orval-generated/models/sitesDomain200Detected.d.ts +11 -0
- package/src/orval-generated/models/sitesDomain200Detected.js +9 -0
- package/src/orval-generated/models/sitesDomain200Wanted.d.ts +11 -0
- package/src/orval-generated/models/sitesDomain200Wanted.js +9 -0
- package/src/orval-generated/models/sitesDomainUrl200.d.ts +10 -0
- package/src/orval-generated/models/sitesDomainUrl200.js +9 -0
- package/src/orval-generated/models/sitesDomainUrlBody.d.ts +14 -0
- package/src/orval-generated/models/sitesDomainUrlBody.js +9 -0
- package/src/orval-generated/models/sitesHasBackups200.d.ts +10 -0
- package/src/orval-generated/models/sitesHasBackups200.js +9 -0
- package/src/orval-generated/models/sitesInfo200.d.ts +8 -2
- package/src/orval-generated/models/sitesInfo200.js +0 -7
- package/src/orval-generated/models/sitesInfo200Meta.d.ts +10 -0
- package/src/orval-generated/models/sitesInfo200Meta.js +9 -0
- package/src/orval-generated/models/sitesList200.d.ts +11 -0
- package/src/orval-generated/models/sitesList200.js +2 -0
- package/src/orval-generated/models/sitesList200ItemsItem.d.ts +14 -0
- package/src/orval-generated/models/sitesList200ItemsItem.js +9 -0
- package/src/orval-generated/models/sitesPerformanceCachepurge200.d.ts +10 -0
- package/src/orval-generated/models/sitesPerformanceCachepurge200.js +9 -0
- package/src/orval-generated/models/sitesPerformanceCachepurgeBody.d.ts +17 -0
- package/src/orval-generated/models/sitesPerformanceCachepurgeBody.js +9 -0
- package/src/orval-generated/models/sitesPerformanceEnduranceCacheLevel200.d.ts +11 -0
- package/src/orval-generated/models/sitesPerformanceEnduranceCacheLevel200.js +2 -0
- package/src/orval-generated/models/sitesPerformanceEnduranceCacheLevel200Options.d.ts +10 -0
- package/src/orval-generated/models/sitesPerformanceEnduranceCacheLevel200Options.js +9 -0
- package/src/orval-generated/models/sitesPerformanceEnduranceCacheLevelBody.d.ts +10 -0
- package/src/orval-generated/models/sitesPerformanceEnduranceCacheLevelBody.js +9 -0
- package/src/orval-generated/models/sitesPerformanceEnduranceCacheLevelStatus200.d.ts +10 -0
- package/src/orval-generated/models/sitesPerformanceEnduranceCacheLevelStatus200.js +9 -0
- package/src/orval-generated/models/sitesPerformanceEndurancePageCache200.d.ts +11 -0
- package/src/orval-generated/models/sitesPerformanceEndurancePageCache200.js +9 -0
- package/src/orval-generated/models/sitesSecurityCheckCore200.d.ts +11 -0
- package/src/orval-generated/models/sitesSecurityCheckCore200.js +9 -0
- package/src/orval-generated/models/sitesSecurityHttpsEnableDisableSsl200.d.ts +12 -0
- package/src/orval-generated/models/sitesSecurityHttpsEnableDisableSsl200.js +9 -0
- package/src/orval-generated/models/sitesSecurityHttpsEnableDisableSslBody.d.ts +11 -0
- package/src/orval-generated/models/sitesSecurityHttpsEnableDisableSslBody.js +9 -0
- package/src/orval-generated/models/sitesSecurityHttpsRedirectionStatus200.d.ts +12 -0
- package/src/orval-generated/models/sitesSecurityHttpsRedirectionStatus200.js +9 -0
- package/src/orval-generated/models/sitesSecurityResetCoreFiles200.d.ts +11 -0
- package/src/orval-generated/models/sitesSecurityResetCoreFiles200.js +9 -0
- package/src/orval-generated/models/sitesSecuritySitelock200.d.ts +14 -0
- package/src/orval-generated/models/sitesSecuritySitelock200.js +9 -0
- package/src/orval-generated/models/sitesSecuritySslAcme200.d.ts +11 -0
- package/src/orval-generated/models/sitesSecuritySslAcme200.js +9 -0
- package/src/orval-generated/models/sitesSecuritySslStatus200.d.ts +11 -0
- package/src/orval-generated/models/sitesSecuritySslStatus200.js +9 -0
- package/src/orval-generated/models/sitesSettingsAutoupdates200.d.ts +12 -0
- package/src/orval-generated/models/sitesSettingsAutoupdates200.js +9 -0
- package/src/orval-generated/models/sitesSettingsAutoupdatesCore200.d.ts +10 -0
- package/src/orval-generated/models/sitesSettingsAutoupdatesCore200.js +9 -0
- package/src/orval-generated/models/sitesSettingsAutoupdatesCoreBody.d.ts +10 -0
- package/src/orval-generated/models/sitesSettingsAutoupdatesCoreBody.js +9 -0
- package/src/orval-generated/models/sitesSettingsAutoupdatesTheme200.d.ts +10 -0
- package/src/orval-generated/models/sitesSettingsAutoupdatesTheme200.js +9 -0
- package/src/orval-generated/models/sitesSettingsAutoupdatesThemeBody.d.ts +10 -0
- package/src/orval-generated/models/sitesSettingsAutoupdatesThemeBody.js +9 -0
- package/src/orval-generated/models/sitesSettingsComingSoon200.d.ts +10 -0
- package/src/orval-generated/models/sitesSettingsComingSoon200.js +9 -0
- package/src/orval-generated/models/sitesSettingsComingSoonToggle200.d.ts +10 -0
- package/src/orval-generated/models/sitesSettingsComingSoonToggle200.js +9 -0
- package/src/orval-generated/models/sitesSettingsComingSoonToggleBody.d.ts +10 -0
- package/src/orval-generated/models/sitesSettingsComingSoonToggleBody.js +9 -0
- package/src/orval-generated/models/sitesSettingsDebug200.d.ts +10 -0
- package/src/orval-generated/models/sitesSettingsDebug200.js +9 -0
- package/src/orval-generated/models/sitesSettingsDebugToggle200.d.ts +10 -0
- package/src/orval-generated/models/sitesSettingsDebugToggle200.js +9 -0
- package/src/orval-generated/models/sitesSettingsDebugToggleBody.d.ts +10 -0
- package/src/orval-generated/models/sitesSettingsDebugToggleBody.js +9 -0
- package/src/orval-generated/models/sitesSettingsPhpVersionUpdate200.d.ts +10 -0
- package/src/orval-generated/models/sitesSettingsPhpVersionUpdate200.js +9 -0
- package/src/orval-generated/models/sitesSettingsPhpVersionUpdateBody.d.ts +12 -0
- package/src/orval-generated/models/sitesSettingsPhpVersionUpdateBody.js +9 -0
- package/src/orval-generated/models/sitesSettingsPhpVersions200.d.ts +10 -0
- package/src/orval-generated/models/sitesSettingsPhpVersions200.js +9 -0
- package/src/orval-generated/models/sitesSso200.d.ts +2 -2
- package/src/orval-generated/models/sitesSso200.js +2 -2
- package/src/orval-generated/models/sitesSsoBounceName.d.ts +14 -0
- package/src/orval-generated/models/sitesSsoBounceName.js +17 -0
- package/src/orval-generated/models/sitesSsoParams.d.ts +13 -0
- package/src/orval-generated/models/sitesSsoParams.js +2 -0
- package/src/orval-generated/models/sitesVersion200.d.ts +12 -0
- package/src/orval-generated/models/sitesVersion200.js +9 -0
- package/src/orval-generated/models/sshKey200.d.ts +11 -0
- package/src/orval-generated/models/sshKey200.js +9 -0
- package/src/orval-generated/models/sshKeyBody.d.ts +12 -0
- package/src/orval-generated/models/sshKeyBody.js +9 -0
- package/src/orval-generated/models/sshKeyFetch200.d.ts +12 -0
- package/src/orval-generated/models/sshKeyFetch200.js +9 -0
- package/src/orval-generated/models/sshKeyFetchParams.d.ts +12 -0
- package/src/orval-generated/models/sshKeyFetchParams.js +2 -0
- package/src/orval-generated/models/sshKeyFetchPrivate.d.ts +12 -0
- package/src/orval-generated/models/sshKeyFetchPrivate.js +15 -0
- package/src/orval-generated/models/sshKeyGenerate200.d.ts +12 -0
- package/src/orval-generated/models/sshKeyGenerate200.js +9 -0
- package/src/orval-generated/models/sshKeyGenerateBody.d.ts +23 -0
- package/src/orval-generated/models/sshKeyGenerateBody.js +2 -0
- package/src/orval-generated/models/sshKeyGenerateBodyBits.d.ts +16 -0
- package/src/orval-generated/models/sshKeyGenerateBodyBits.js +16 -0
- package/src/orval-generated/models/sshKeyGenerateBodyEncType.d.ts +17 -0
- package/src/orval-generated/models/sshKeyGenerateBodyEncType.js +17 -0
- package/src/orval-generated/models/sshKeyImport200.d.ts +10 -0
- package/src/orval-generated/models/sshKeyImport200.js +9 -0
- package/src/orval-generated/models/sshKeyImportBody.d.ts +19 -0
- package/src/orval-generated/models/sshKeyImportBody.js +9 -0
- package/src/orval-generated/models/sshKeyList200.d.ts +11 -0
- package/src/orval-generated/models/sshKeyList200.js +2 -0
- package/src/orval-generated/models/sshKeyList200KeysItem.d.ts +13 -0
- package/src/orval-generated/models/sshKeyList200KeysItem.js +9 -0
- package/src/orval-generated/models/sshKeyListV2200.d.ts +11 -0
- package/src/orval-generated/models/sshKeyListV2200.js +2 -0
- package/src/orval-generated/models/sshKeyListV2200RowsItem.d.ts +13 -0
- package/src/orval-generated/models/sshKeyListV2200RowsItem.js +9 -0
- package/src/orval-generated/models/sso200.d.ts +3 -3
- package/src/orval-generated/models/sso200.js +2 -2
- package/src/orval-generated/models/ssoApp.d.ts +28 -0
- package/src/orval-generated/models/ssoApp.js +31 -0
- package/src/orval-generated/models/ssoParams.d.ts +11 -0
- package/src/orval-generated/models/ssoParams.js +2 -0
- package/src/orval-generated/models/addonsCodeguardBackups200.d.ts +0 -11
- package/src/orval-generated/models/addonsCodeguardBackups200BackupsItem.d.ts +0 -13
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupCreate200.js +0 -9
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupCreateBody.js +0 -9
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupList200.d.ts +0 -11
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupList200BackupsItem.js +0 -9
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupListParams.js +0 -9
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupRestore200.js +0 -9
- package/src/orval-generated/models/addonsCodeguardDatabaseBackupRestoreBody.js +0 -9
- package/src/orval-generated/models/addonsCodeguardDatabaseList200.d.ts +0 -12
- package/src/orval-generated/models/addonsCodeguardDatabaseList200DatabasesItem.d.ts +0 -11
- package/src/orval-generated/models/addonsCodeguardDatabaseList200DatabasesItemDatabaseBackup.js +0 -9
- package/src/orval-generated/models/addonsCodeguardLoginLinkGenerate200.js +0 -9
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupCreate200.js +0 -9
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupCreateBody.js +0 -9
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupList200.d.ts +0 -11
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupList200BackupsItem.js +0 -9
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupListParams.js +0 -9
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupRestore200.js +0 -9
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupRestore400.d.ts +0 -12
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupRestore400Error.js +0 -9
- package/src/orval-generated/models/addonsCodeguardWebsiteBackupRestoreBody.js +0 -9
- package/src/orval-generated/models/addonsCodeguardWebsiteList200.d.ts +0 -11
- package/src/orval-generated/models/addonsCodeguardWebsiteList200WebsiteListItem.d.ts +0 -11
- package/src/orval-generated/models/addonsCodeguardWebsiteList200WebsiteListItemWebsite.js +0 -9
- package/src/orval-generated/models/hostingFtpList200FtpAccountItem.js +0 -9
- /package/src/orval-generated/models/{addonsCodeguardBackups200.js → codeguardBackupList200.js} +0 -0
- /package/src/orval-generated/models/{addonsCodeguardBackups200BackupsItem.js → codeguardBackupList200BackupsItem.js} +0 -0
- /package/src/orval-generated/models/{addonsCodeguardDatabaseBackupList200.js → codeguardDatabaseBackupList200.js} +0 -0
- /package/src/orval-generated/models/{addonsCodeguardDatabaseList200.js → codeguardDatabaseList200.js} +0 -0
- /package/src/orval-generated/models/{addonsCodeguardDatabaseList200DatabasesItem.js → codeguardDatabaseList200DatabasesItem.js} +0 -0
- /package/src/orval-generated/models/{addonsCodeguardWebsiteBackupList200.js → codeguardPlanInfo200.js} +0 -0
- /package/src/orval-generated/models/{addonsCodeguardWebsiteBackupRestore400.js → codeguardWebsiteBackupList200.js} +0 -0
- /package/src/orval-generated/models/{addonsCodeguardWebsiteList200.js → codeguardWebsiteList200.js} +0 -0
- /package/src/orval-generated/models/{addonsCodeguardWebsiteList200WebsiteListItem.js → codeguardWebsiteList200WebsiteListItem.js} +0 -0
|
@@ -1,223 +1,440 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v6.
|
|
2
|
+
* Generated by orval v6.12.1 🍺
|
|
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:
|
|
6
|
+
* OpenAPI spec version: 1.388.0
|
|
7
7
|
*/
|
|
8
8
|
import * as axios from 'axios';
|
|
9
|
-
import type { AxiosResponse, AxiosError } from 'axios';
|
|
10
|
-
import { UseQueryOptions, UseMutationOptions, UseQueryResult, QueryKey } from 'react-query';
|
|
11
|
-
import type {
|
|
9
|
+
import type { AxiosRequestConfig, AxiosResponse, AxiosError } from 'axios';
|
|
10
|
+
import type { UseQueryOptions, UseMutationOptions, UseQueryResult, QueryKey } from '@tanstack/react-query';
|
|
11
|
+
import type { CodeguardBackupList200, CodeguardBackupListParams, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseList200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardLoginLink200, CodeguardPlanInfo200, CodeguardWebsiteList200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestoreBody, AddonsSitelockSso200, AddonsCloudflare200, AddonsInfo200, HostingAccount200, HostingAddons200, HostingAddonsParams, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, AddonCloudflare200, AddonCloudflareBody, Domains200, DomainsParams, HostingFtpList200, HostingFtpAdd200, HostingFtpAddBody, HostingFtp200, HostingFtpBody, HostingInfo200, HostingInfoDiskUsage200, HostingMigrationStatus200, HostingMigrations200, HostingMigrationsBody, HostingMigrationsEvent200, HostingMigrationsEventBody, HostingMigrationInfo200, HostingMigrationInfoParams, HostingMigrationSiteScanStatus200, HostingMigrationSiteScanStatusParams, HostingNameservers200, HostingShellToggle200, HostingShellToggleBody, HostingShellInfo200, HostingSites200, HostingSiteAdd200, HostingSiteAddBody, HostingSshInfo200, SshKeyFetch200, SshKeyFetchParams, SshKeyImport200, SshKeyImportBody, SshKeyList200, SshKey200, SshKeyBody, SshKeyGenerate200, SshKeyGenerateBody, Sso200, SsoParams, SitesList200, SitesInfo200, SiteUpdate200, SiteUpdate400, SiteUpdateBody, Site200, SitesAutoupdatesResponse, SitesAutoupdatesUpdateBody, SitesBackups200, SitesHasBackups200, SitesBackupsDetails200, JetpackBackupStatus200, SitesDns200, SitesDnsParams, SitesDomain200, SitesDomainUrl200, SitesDomainUrlBody, SitesPerformanceCachepurge200, SitesPerformanceCachepurgeBody, SitesPerformanceEnduranceCacheLevelStatus200, SitesPerformanceEnduranceCacheLevel200, SitesPerformanceEnduranceCacheLevelBody, SitesPerformanceEndurancePageCache200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, ResetSite200, SitesSecurityCheckCore200, SitesSecurityResetCoreFiles200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecuritySitelock200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SiteSettingsAutoupdatePlugins200, SitesSettingsAutoupdates200, SitesSettingsAutoupdatesCore200, SitesSettingsAutoupdatesCoreBody, SitesSettingsAutoupdatesTheme200, SitesSettingsAutoupdatesThemeBody, SitesSettingsComingSoon200, SitesSettingsComingSoonToggle200, SitesSettingsComingSoonToggleBody, SitesSettingsDebug200, SitesSettingsDebugToggle200, SitesSettingsDebugToggleBody, SitesSettingsPhpVersionUpdate200, SitesSettingsPhpVersionUpdateBody, SitesSettingsPhpVersions200, SitesSso200, SitesSsoParams, SiteUsers200, SitesVersion200, HostingSitesV2200, SshKeyListV2200 } from './models';
|
|
12
12
|
declare type AwaitedInput<T> = PromiseLike<T> | T;
|
|
13
13
|
declare type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
* @summary
|
|
15
|
+
* Returns a combined backup list with website commit ids and corresponding database commits
|
|
16
|
+
* @summary backup list
|
|
17
17
|
*/
|
|
18
|
-
export declare const
|
|
19
|
-
export declare const
|
|
20
|
-
export declare type
|
|
21
|
-
export declare type
|
|
22
|
-
export declare const
|
|
23
|
-
query?: UseQueryOptions<axios.AxiosResponse<
|
|
18
|
+
export declare const codeguardBackupList: (addonId: number, params: CodeguardBackupListParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<CodeguardBackupList200>>;
|
|
19
|
+
export declare const getCodeguardBackupListQueryKey: (addonId: number, params: CodeguardBackupListParams) => (string | CodeguardBackupListParams)[];
|
|
20
|
+
export declare type CodeguardBackupListQueryResult = NonNullable<Awaited<ReturnType<typeof codeguardBackupList>>>;
|
|
21
|
+
export declare type CodeguardBackupListQueryError = AxiosError<unknown>;
|
|
22
|
+
export declare const useCodeguardBackupList: <TData = axios.AxiosResponse<CodeguardBackupList200, any>, TError = axios.AxiosError<unknown, any>>(addonId: number, params: CodeguardBackupListParams, options?: {
|
|
23
|
+
query?: UseQueryOptions<axios.AxiosResponse<CodeguardBackupList200, any>, TError, TData, QueryKey> | undefined;
|
|
24
24
|
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
25
25
|
} | undefined) => UseQueryResult<TData, TError> & {
|
|
26
26
|
queryKey: QueryKey;
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
30
|
-
* @summary
|
|
29
|
+
* Creates the website backup
|
|
30
|
+
* @summary backup create
|
|
31
31
|
*/
|
|
32
|
-
export declare const
|
|
33
|
-
export declare
|
|
34
|
-
export declare type
|
|
35
|
-
export declare type
|
|
36
|
-
export declare const
|
|
37
|
-
|
|
32
|
+
export declare const codeguardBackupCreate: (addonId: number, codeguardBackupCreateBody: CodeguardBackupCreateBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<CodeguardBackupCreate200>>;
|
|
33
|
+
export declare type CodeguardBackupCreateMutationResult = NonNullable<Awaited<ReturnType<typeof codeguardBackupCreate>>>;
|
|
34
|
+
export declare type CodeguardBackupCreateMutationBody = CodeguardBackupCreateBody;
|
|
35
|
+
export declare type CodeguardBackupCreateMutationError = AxiosError<unknown>;
|
|
36
|
+
export declare const useCodeguardBackupCreate: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
37
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<CodeguardBackupCreate200, any>, TError, {
|
|
38
|
+
addonId: number;
|
|
39
|
+
data: CodeguardBackupCreateBody;
|
|
40
|
+
}, TContext> | undefined;
|
|
41
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
42
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<CodeguardBackupCreate200, any>, TError, {
|
|
43
|
+
addonId: number;
|
|
44
|
+
data: CodeguardBackupCreateBody;
|
|
45
|
+
}, TContext>;
|
|
46
|
+
/**
|
|
47
|
+
* Queues the backup download.
|
|
48
|
+
* @summary backup download
|
|
49
|
+
*/
|
|
50
|
+
export declare const codeguardBackupDownload: (addonId: number, codeguardBackupDownloadBody: CodeguardBackupDownloadBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<CodeguardBackupDownload200>>;
|
|
51
|
+
export declare type CodeguardBackupDownloadMutationResult = NonNullable<Awaited<ReturnType<typeof codeguardBackupDownload>>>;
|
|
52
|
+
export declare type CodeguardBackupDownloadMutationBody = CodeguardBackupDownloadBody;
|
|
53
|
+
export declare type CodeguardBackupDownloadMutationError = AxiosError<unknown>;
|
|
54
|
+
export declare const useCodeguardBackupDownload: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
55
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<CodeguardBackupDownload200, any>, TError, {
|
|
56
|
+
addonId: number;
|
|
57
|
+
data: CodeguardBackupDownloadBody;
|
|
58
|
+
}, TContext> | undefined;
|
|
59
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
60
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<CodeguardBackupDownload200, any>, TError, {
|
|
61
|
+
addonId: number;
|
|
62
|
+
data: CodeguardBackupDownloadBody;
|
|
63
|
+
}, TContext>;
|
|
64
|
+
/**
|
|
65
|
+
* Restores a website and database backup
|
|
66
|
+
* @summary backups restore
|
|
67
|
+
*/
|
|
68
|
+
export declare const codeguardBackupRestore: (addonId: number, codeguardBackupRestoreBody: CodeguardBackupRestoreBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<CodeguardBackupRestore200>>;
|
|
69
|
+
export declare type CodeguardBackupRestoreMutationResult = NonNullable<Awaited<ReturnType<typeof codeguardBackupRestore>>>;
|
|
70
|
+
export declare type CodeguardBackupRestoreMutationBody = CodeguardBackupRestoreBody;
|
|
71
|
+
export declare type CodeguardBackupRestoreMutationError = AxiosError<unknown>;
|
|
72
|
+
export declare const useCodeguardBackupRestore: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
73
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<CodeguardBackupRestore200, any>, TError, {
|
|
74
|
+
addonId: number;
|
|
75
|
+
data: CodeguardBackupRestoreBody;
|
|
76
|
+
}, TContext> | undefined;
|
|
77
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
78
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<CodeguardBackupRestore200, any>, TError, {
|
|
79
|
+
addonId: number;
|
|
80
|
+
data: CodeguardBackupRestoreBody;
|
|
81
|
+
}, TContext>;
|
|
82
|
+
/**
|
|
83
|
+
* Returns all database records CodeGuard maintains for this user's account.
|
|
84
|
+
* @summary database list
|
|
85
|
+
*/
|
|
86
|
+
export declare const codeguardDatabaseList: (addonId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<CodeguardDatabaseList200>>;
|
|
87
|
+
export declare const getCodeguardDatabaseListQueryKey: (addonId: number) => string[];
|
|
88
|
+
export declare type CodeguardDatabaseListQueryResult = NonNullable<Awaited<ReturnType<typeof codeguardDatabaseList>>>;
|
|
89
|
+
export declare type CodeguardDatabaseListQueryError = AxiosError<unknown>;
|
|
90
|
+
export declare const useCodeguardDatabaseList: <TData = axios.AxiosResponse<CodeguardDatabaseList200, any>, TError = axios.AxiosError<unknown, any>>(addonId: number, options?: {
|
|
91
|
+
query?: UseQueryOptions<axios.AxiosResponse<CodeguardDatabaseList200, any>, TError, TData, QueryKey> | undefined;
|
|
38
92
|
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
39
93
|
} | undefined) => UseQueryResult<TData, TError> & {
|
|
40
94
|
queryKey: QueryKey;
|
|
41
95
|
};
|
|
42
96
|
/**
|
|
43
|
-
* Returns
|
|
44
|
-
* @summary
|
|
97
|
+
* Returns all database backup records CodeGuard maintains for this user's account.
|
|
98
|
+
* @summary database backup list
|
|
45
99
|
*/
|
|
46
|
-
export declare const
|
|
47
|
-
export declare const
|
|
48
|
-
export declare type
|
|
49
|
-
export declare type
|
|
50
|
-
export declare const
|
|
51
|
-
query?: UseQueryOptions<axios.AxiosResponse<
|
|
100
|
+
export declare const codeguardDatabaseBackupList: (addonId: number, params?: CodeguardDatabaseBackupListParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<CodeguardDatabaseBackupList200>>;
|
|
101
|
+
export declare const getCodeguardDatabaseBackupListQueryKey: (addonId: number, params?: CodeguardDatabaseBackupListParams) => (string | CodeguardDatabaseBackupListParams)[];
|
|
102
|
+
export declare type CodeguardDatabaseBackupListQueryResult = NonNullable<Awaited<ReturnType<typeof codeguardDatabaseBackupList>>>;
|
|
103
|
+
export declare type CodeguardDatabaseBackupListQueryError = AxiosError<unknown>;
|
|
104
|
+
export declare const useCodeguardDatabaseBackupList: <TData = axios.AxiosResponse<CodeguardDatabaseBackupList200, any>, TError = axios.AxiosError<unknown, any>>(addonId: number, params?: CodeguardDatabaseBackupListParams, options?: {
|
|
105
|
+
query?: UseQueryOptions<axios.AxiosResponse<CodeguardDatabaseBackupList200, any>, TError, TData, QueryKey> | undefined;
|
|
52
106
|
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
53
107
|
} | undefined) => UseQueryResult<TData, TError> & {
|
|
54
108
|
queryKey: QueryKey;
|
|
55
109
|
};
|
|
56
110
|
/**
|
|
57
111
|
* Queue the creation of a database backup.
|
|
58
|
-
* @summary
|
|
59
|
-
*/
|
|
60
|
-
export declare const
|
|
61
|
-
export declare type
|
|
62
|
-
export declare type
|
|
63
|
-
export declare type
|
|
64
|
-
export declare const
|
|
65
|
-
mutation?: UseMutationOptions<axios.AxiosResponse<
|
|
112
|
+
* @summary database backup create
|
|
113
|
+
*/
|
|
114
|
+
export declare const codeguardDatabaseBackupCreate: (addonId: number, codeguardDatabaseBackupCreateBody: CodeguardDatabaseBackupCreateBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<CodeguardDatabaseBackupCreate200>>;
|
|
115
|
+
export declare type CodeguardDatabaseBackupCreateMutationResult = NonNullable<Awaited<ReturnType<typeof codeguardDatabaseBackupCreate>>>;
|
|
116
|
+
export declare type CodeguardDatabaseBackupCreateMutationBody = CodeguardDatabaseBackupCreateBody;
|
|
117
|
+
export declare type CodeguardDatabaseBackupCreateMutationError = AxiosError<unknown>;
|
|
118
|
+
export declare const useCodeguardDatabaseBackupCreate: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
119
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<CodeguardDatabaseBackupCreate200, any>, TError, {
|
|
66
120
|
addonId: number;
|
|
67
|
-
data:
|
|
121
|
+
data: CodeguardDatabaseBackupCreateBody;
|
|
68
122
|
}, TContext> | undefined;
|
|
69
123
|
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
70
|
-
} | undefined) => import("react-query").UseMutationResult<axios.AxiosResponse<
|
|
124
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<CodeguardDatabaseBackupCreate200, any>, TError, {
|
|
71
125
|
addonId: number;
|
|
72
|
-
data:
|
|
126
|
+
data: CodeguardDatabaseBackupCreateBody;
|
|
73
127
|
}, TContext>;
|
|
74
128
|
/**
|
|
75
|
-
*
|
|
76
|
-
* @summary
|
|
77
|
-
*/
|
|
78
|
-
export declare const
|
|
79
|
-
export declare type
|
|
80
|
-
export declare type
|
|
81
|
-
export declare type
|
|
82
|
-
export declare const
|
|
83
|
-
mutation?: UseMutationOptions<axios.AxiosResponse<
|
|
129
|
+
* Restores a database backup
|
|
130
|
+
* @summary database backup restore
|
|
131
|
+
*/
|
|
132
|
+
export declare const codeguardDatabaseBackupRestore: (addonId: number, codeguardDatabaseBackupRestoreBody: CodeguardDatabaseBackupRestoreBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<CodeguardDatabaseBackupRestore200>>;
|
|
133
|
+
export declare type CodeguardDatabaseBackupRestoreMutationResult = NonNullable<Awaited<ReturnType<typeof codeguardDatabaseBackupRestore>>>;
|
|
134
|
+
export declare type CodeguardDatabaseBackupRestoreMutationBody = CodeguardDatabaseBackupRestoreBody;
|
|
135
|
+
export declare type CodeguardDatabaseBackupRestoreMutationError = AxiosError<unknown>;
|
|
136
|
+
export declare const useCodeguardDatabaseBackupRestore: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
137
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<CodeguardDatabaseBackupRestore200, any>, TError, {
|
|
84
138
|
addonId: number;
|
|
85
|
-
data:
|
|
139
|
+
data: CodeguardDatabaseBackupRestoreBody;
|
|
86
140
|
}, TContext> | undefined;
|
|
87
141
|
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
88
|
-
} | undefined) => import("react-query").UseMutationResult<axios.AxiosResponse<
|
|
142
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<CodeguardDatabaseBackupRestore200, any>, TError, {
|
|
89
143
|
addonId: number;
|
|
90
|
-
data:
|
|
144
|
+
data: CodeguardDatabaseBackupRestoreBody;
|
|
91
145
|
}, TContext>;
|
|
92
146
|
/**
|
|
93
|
-
*
|
|
94
|
-
* @summary
|
|
147
|
+
* Returns an oauth login URL that can be used to access CodeGuard dashboard for a user.
|
|
148
|
+
* @summary login link
|
|
149
|
+
*/
|
|
150
|
+
export declare const codeguardLoginLink: (addonId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<CodeguardLoginLink200>>;
|
|
151
|
+
export declare const getCodeguardLoginLinkQueryKey: (addonId: number) => string[];
|
|
152
|
+
export declare type CodeguardLoginLinkQueryResult = NonNullable<Awaited<ReturnType<typeof codeguardLoginLink>>>;
|
|
153
|
+
export declare type CodeguardLoginLinkQueryError = AxiosError<unknown>;
|
|
154
|
+
export declare const useCodeguardLoginLink: <TData = axios.AxiosResponse<CodeguardLoginLink200, any>, TError = axios.AxiosError<unknown, any>>(addonId: number, options?: {
|
|
155
|
+
query?: UseQueryOptions<axios.AxiosResponse<CodeguardLoginLink200, any>, TError, TData, QueryKey> | undefined;
|
|
156
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
157
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
158
|
+
queryKey: QueryKey;
|
|
159
|
+
};
|
|
160
|
+
/**
|
|
161
|
+
* Returns the subscribed plan and usage info
|
|
162
|
+
* @summary plan info
|
|
95
163
|
*/
|
|
96
|
-
export declare const
|
|
97
|
-
export declare const
|
|
98
|
-
export declare type
|
|
99
|
-
export declare type
|
|
100
|
-
export declare const
|
|
101
|
-
query?: UseQueryOptions<axios.AxiosResponse<
|
|
164
|
+
export declare const codeguardPlanInfo: (addonId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<CodeguardPlanInfo200>>;
|
|
165
|
+
export declare const getCodeguardPlanInfoQueryKey: (addonId: number) => string[];
|
|
166
|
+
export declare type CodeguardPlanInfoQueryResult = NonNullable<Awaited<ReturnType<typeof codeguardPlanInfo>>>;
|
|
167
|
+
export declare type CodeguardPlanInfoQueryError = AxiosError<unknown>;
|
|
168
|
+
export declare const useCodeguardPlanInfo: <TData = axios.AxiosResponse<CodeguardPlanInfo200, any>, TError = axios.AxiosError<unknown, any>>(addonId: number, options?: {
|
|
169
|
+
query?: UseQueryOptions<axios.AxiosResponse<CodeguardPlanInfo200, any>, TError, TData, QueryKey> | undefined;
|
|
102
170
|
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
103
171
|
} | undefined) => UseQueryResult<TData, TError> & {
|
|
104
172
|
queryKey: QueryKey;
|
|
105
173
|
};
|
|
106
174
|
/**
|
|
107
|
-
*
|
|
108
|
-
* @summary
|
|
175
|
+
* Returns all website records CodeGuard maintains for this user's account.
|
|
176
|
+
* @summary website list
|
|
109
177
|
*/
|
|
110
|
-
export declare const
|
|
111
|
-
export declare const
|
|
112
|
-
export declare type
|
|
113
|
-
export declare type
|
|
114
|
-
export declare const
|
|
115
|
-
query?: UseQueryOptions<axios.AxiosResponse<
|
|
178
|
+
export declare const codeguardWebsiteList: (addonId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<CodeguardWebsiteList200>>;
|
|
179
|
+
export declare const getCodeguardWebsiteListQueryKey: (addonId: number) => string[];
|
|
180
|
+
export declare type CodeguardWebsiteListQueryResult = NonNullable<Awaited<ReturnType<typeof codeguardWebsiteList>>>;
|
|
181
|
+
export declare type CodeguardWebsiteListQueryError = AxiosError<unknown>;
|
|
182
|
+
export declare const useCodeguardWebsiteList: <TData = axios.AxiosResponse<CodeguardWebsiteList200, any>, TError = axios.AxiosError<unknown, any>>(addonId: number, options?: {
|
|
183
|
+
query?: UseQueryOptions<axios.AxiosResponse<CodeguardWebsiteList200, any>, TError, TData, QueryKey> | undefined;
|
|
116
184
|
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
117
185
|
} | undefined) => UseQueryResult<TData, TError> & {
|
|
118
186
|
queryKey: QueryKey;
|
|
119
187
|
};
|
|
120
188
|
/**
|
|
121
|
-
*
|
|
122
|
-
* @summary
|
|
189
|
+
* Returns all website backup records CodeGuard maintains for this user's account.
|
|
190
|
+
* @summary website backup list
|
|
123
191
|
*/
|
|
124
|
-
export declare const
|
|
125
|
-
export declare const
|
|
126
|
-
export declare type
|
|
127
|
-
export declare type
|
|
128
|
-
export declare const
|
|
129
|
-
query?: UseQueryOptions<axios.AxiosResponse<
|
|
192
|
+
export declare const codeguardWebsiteBackupList: (addonId: number, params?: CodeguardWebsiteBackupListParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<CodeguardWebsiteBackupList200>>;
|
|
193
|
+
export declare const getCodeguardWebsiteBackupListQueryKey: (addonId: number, params?: CodeguardWebsiteBackupListParams) => (string | CodeguardWebsiteBackupListParams)[];
|
|
194
|
+
export declare type CodeguardWebsiteBackupListQueryResult = NonNullable<Awaited<ReturnType<typeof codeguardWebsiteBackupList>>>;
|
|
195
|
+
export declare type CodeguardWebsiteBackupListQueryError = AxiosError<unknown>;
|
|
196
|
+
export declare const useCodeguardWebsiteBackupList: <TData = axios.AxiosResponse<CodeguardWebsiteBackupList200, any>, TError = axios.AxiosError<unknown, any>>(addonId: number, params?: CodeguardWebsiteBackupListParams, options?: {
|
|
197
|
+
query?: UseQueryOptions<axios.AxiosResponse<CodeguardWebsiteBackupList200, any>, TError, TData, QueryKey> | undefined;
|
|
130
198
|
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
131
199
|
} | undefined) => UseQueryResult<TData, TError> & {
|
|
132
200
|
queryKey: QueryKey;
|
|
133
201
|
};
|
|
134
202
|
/**
|
|
135
|
-
*
|
|
136
|
-
* @summary
|
|
203
|
+
* Initiate the creation of a new backup for a given website
|
|
204
|
+
* @summary website backup create
|
|
137
205
|
*/
|
|
138
|
-
export declare const
|
|
139
|
-
export declare type
|
|
140
|
-
export declare type
|
|
141
|
-
export declare type
|
|
142
|
-
export declare const
|
|
143
|
-
mutation?: UseMutationOptions<axios.AxiosResponse<
|
|
206
|
+
export declare const codeguardWebsiteBackupCreate: (addonId: number, codeguardWebsiteBackupCreateBody: CodeguardWebsiteBackupCreateBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<CodeguardWebsiteBackupCreate200>>;
|
|
207
|
+
export declare type CodeguardWebsiteBackupCreateMutationResult = NonNullable<Awaited<ReturnType<typeof codeguardWebsiteBackupCreate>>>;
|
|
208
|
+
export declare type CodeguardWebsiteBackupCreateMutationBody = CodeguardWebsiteBackupCreateBody;
|
|
209
|
+
export declare type CodeguardWebsiteBackupCreateMutationError = AxiosError<unknown>;
|
|
210
|
+
export declare const useCodeguardWebsiteBackupCreate: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
211
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<CodeguardWebsiteBackupCreate200, any>, TError, {
|
|
144
212
|
addonId: number;
|
|
145
|
-
data:
|
|
213
|
+
data: CodeguardWebsiteBackupCreateBody;
|
|
146
214
|
}, TContext> | undefined;
|
|
147
215
|
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
148
|
-
} | undefined) => import("react-query").UseMutationResult<axios.AxiosResponse<
|
|
216
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<CodeguardWebsiteBackupCreate200, any>, TError, {
|
|
149
217
|
addonId: number;
|
|
150
|
-
data:
|
|
218
|
+
data: CodeguardWebsiteBackupCreateBody;
|
|
151
219
|
}, TContext>;
|
|
152
220
|
/**
|
|
153
|
-
* Restores
|
|
154
|
-
* @summary
|
|
221
|
+
* Restores a website backup
|
|
222
|
+
* @summary website backup restore
|
|
155
223
|
*/
|
|
156
|
-
export declare const
|
|
157
|
-
export declare type
|
|
158
|
-
export declare type
|
|
159
|
-
export declare type
|
|
160
|
-
export declare const
|
|
161
|
-
mutation?: UseMutationOptions<axios.AxiosResponse<
|
|
224
|
+
export declare const codeguardWebsiteBackupRestore: (addonId: number, codeguardWebsiteBackupRestoreBody: CodeguardWebsiteBackupRestoreBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<CodeguardWebsiteBackupRestore200>>;
|
|
225
|
+
export declare type CodeguardWebsiteBackupRestoreMutationResult = NonNullable<Awaited<ReturnType<typeof codeguardWebsiteBackupRestore>>>;
|
|
226
|
+
export declare type CodeguardWebsiteBackupRestoreMutationBody = CodeguardWebsiteBackupRestoreBody;
|
|
227
|
+
export declare type CodeguardWebsiteBackupRestoreMutationError = AxiosError<unknown>;
|
|
228
|
+
export declare const useCodeguardWebsiteBackupRestore: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
229
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<CodeguardWebsiteBackupRestore200, any>, TError, {
|
|
162
230
|
addonId: number;
|
|
163
|
-
data:
|
|
231
|
+
data: CodeguardWebsiteBackupRestoreBody;
|
|
164
232
|
}, TContext> | undefined;
|
|
165
233
|
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
166
|
-
} | undefined) => import("react-query").UseMutationResult<axios.AxiosResponse<
|
|
234
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<CodeguardWebsiteBackupRestore200, any>, TError, {
|
|
167
235
|
addonId: number;
|
|
168
|
-
data:
|
|
236
|
+
data: CodeguardWebsiteBackupRestoreBody;
|
|
169
237
|
}, TContext>;
|
|
170
238
|
/**
|
|
171
|
-
*
|
|
172
|
-
* @summary
|
|
239
|
+
* Returns an oauth login URL that can be used to access Sitelock dashboard for a user.
|
|
240
|
+
* @summary sso
|
|
173
241
|
*/
|
|
174
|
-
export declare const
|
|
175
|
-
export declare
|
|
176
|
-
export declare type
|
|
177
|
-
export declare type
|
|
178
|
-
export declare const
|
|
179
|
-
|
|
242
|
+
export declare const addonsSitelockSso: (addonId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<AddonsSitelockSso200>>;
|
|
243
|
+
export declare const getAddonsSitelockSsoQueryKey: (addonId: number) => string[];
|
|
244
|
+
export declare type AddonsSitelockSsoQueryResult = NonNullable<Awaited<ReturnType<typeof addonsSitelockSso>>>;
|
|
245
|
+
export declare type AddonsSitelockSsoQueryError = AxiosError<unknown>;
|
|
246
|
+
export declare const useAddonsSitelockSso: <TData = axios.AxiosResponse<AddonsSitelockSso200, any>, TError = axios.AxiosError<unknown, any>>(addonId: number, options?: {
|
|
247
|
+
query?: UseQueryOptions<axios.AxiosResponse<AddonsSitelockSso200, any>, TError, TData, QueryKey> | undefined;
|
|
248
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
249
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
250
|
+
queryKey: QueryKey;
|
|
251
|
+
};
|
|
252
|
+
/**
|
|
253
|
+
* Decom and delete cloudflare basic addon
|
|
254
|
+
* @summary Uninstall cloudflare basic addon
|
|
255
|
+
*/
|
|
256
|
+
export declare const addonsCloudflare: (addonId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<AddonsCloudflare200>>;
|
|
257
|
+
export declare type AddonsCloudflareMutationResult = NonNullable<Awaited<ReturnType<typeof addonsCloudflare>>>;
|
|
258
|
+
export declare type AddonsCloudflareMutationError = AxiosError<unknown>;
|
|
259
|
+
export declare const useAddonsCloudflare: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
260
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<AddonsCloudflare200, any>, TError, {
|
|
180
261
|
addonId: number;
|
|
181
|
-
data: AddonsCodeguardDatabaseBackupRestoreBody;
|
|
182
262
|
}, TContext> | undefined;
|
|
183
263
|
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
184
|
-
} | undefined) => import("react-query").UseMutationResult<axios.AxiosResponse<
|
|
264
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<AddonsCloudflare200, any>, TError, {
|
|
185
265
|
addonId: number;
|
|
186
|
-
data: AddonsCodeguardDatabaseBackupRestoreBody;
|
|
187
266
|
}, TContext>;
|
|
188
267
|
/**
|
|
189
|
-
*
|
|
190
|
-
* @summary
|
|
268
|
+
* Returns addon information
|
|
269
|
+
* @summary info
|
|
191
270
|
*/
|
|
192
|
-
export declare const
|
|
193
|
-
export declare const
|
|
194
|
-
export declare type
|
|
195
|
-
export declare type
|
|
196
|
-
export declare const
|
|
197
|
-
query?: UseQueryOptions<axios.AxiosResponse<
|
|
271
|
+
export declare const addonsInfo: (addonId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<AddonsInfo200>>;
|
|
272
|
+
export declare const getAddonsInfoQueryKey: (addonId: string) => string[];
|
|
273
|
+
export declare type AddonsInfoQueryResult = NonNullable<Awaited<ReturnType<typeof addonsInfo>>>;
|
|
274
|
+
export declare type AddonsInfoQueryError = AxiosError<unknown>;
|
|
275
|
+
export declare const useAddonsInfo: <TData = axios.AxiosResponse<AddonsInfo200, any>, TError = axios.AxiosError<unknown, any>>(addonId: string, options?: {
|
|
276
|
+
query?: UseQueryOptions<axios.AxiosResponse<AddonsInfo200, any>, TError, TData, QueryKey> | undefined;
|
|
277
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
278
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
279
|
+
queryKey: QueryKey;
|
|
280
|
+
};
|
|
281
|
+
/**
|
|
282
|
+
* Returns HAL hosting account-level information
|
|
283
|
+
* @summary HAL Hosting Account Info
|
|
284
|
+
*/
|
|
285
|
+
export declare const hostingAccount: (hostingId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingAccount200>>;
|
|
286
|
+
export declare const getHostingAccountQueryKey: (hostingId: string) => string[];
|
|
287
|
+
export declare type HostingAccountQueryResult = NonNullable<Awaited<ReturnType<typeof hostingAccount>>>;
|
|
288
|
+
export declare type HostingAccountQueryError = AxiosError<unknown>;
|
|
289
|
+
export declare const useHostingAccount: <TData = axios.AxiosResponse<HostingAccount200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: string, options?: {
|
|
290
|
+
query?: UseQueryOptions<axios.AxiosResponse<HostingAccount200, any>, TError, TData, QueryKey> | undefined;
|
|
198
291
|
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
199
292
|
} | undefined) => UseQueryResult<TData, TError> & {
|
|
200
293
|
queryKey: QueryKey;
|
|
201
294
|
};
|
|
202
295
|
/**
|
|
203
|
-
*
|
|
204
|
-
* @summary
|
|
296
|
+
* Returns a list of addons.
|
|
297
|
+
* @summary addon list
|
|
205
298
|
*/
|
|
206
|
-
export declare const hostingAddons: (hostingId: number, params?: HostingAddonsParams
|
|
207
|
-
export declare const getHostingAddonsQueryKey: (hostingId: number, params?: HostingAddonsParams
|
|
299
|
+
export declare const hostingAddons: (hostingId: number, params?: HostingAddonsParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingAddons200>>;
|
|
300
|
+
export declare const getHostingAddonsQueryKey: (hostingId: number, params?: HostingAddonsParams) => (string | HostingAddonsParams)[];
|
|
208
301
|
export declare type HostingAddonsQueryResult = NonNullable<Awaited<ReturnType<typeof hostingAddons>>>;
|
|
209
302
|
export declare type HostingAddonsQueryError = AxiosError<unknown>;
|
|
210
|
-
export declare const useHostingAddons: <TData = axios.AxiosResponse<HostingAddons200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: number, params?: HostingAddonsParams
|
|
303
|
+
export declare const useHostingAddons: <TData = axios.AxiosResponse<HostingAddons200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: number, params?: HostingAddonsParams, options?: {
|
|
211
304
|
query?: UseQueryOptions<axios.AxiosResponse<HostingAddons200, any>, TError, TData, QueryKey> | undefined;
|
|
212
305
|
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
213
306
|
} | undefined) => UseQueryResult<TData, TError> & {
|
|
214
307
|
queryKey: QueryKey;
|
|
215
308
|
};
|
|
216
309
|
/**
|
|
217
|
-
*
|
|
218
|
-
* @summary
|
|
310
|
+
* Returns the hosting server info
|
|
311
|
+
* @summary server status/info
|
|
219
312
|
*/
|
|
220
|
-
export declare const
|
|
313
|
+
export declare const hostingAdvancedServer: (hostingId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingAdvancedServer200>>;
|
|
314
|
+
export declare const getHostingAdvancedServerQueryKey: (hostingId: number) => string[];
|
|
315
|
+
export declare type HostingAdvancedServerQueryResult = NonNullable<Awaited<ReturnType<typeof hostingAdvancedServer>>>;
|
|
316
|
+
export declare type HostingAdvancedServerQueryError = AxiosError<unknown>;
|
|
317
|
+
export declare const useHostingAdvancedServer: <TData = axios.AxiosResponse<HostingAdvancedServer200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
318
|
+
query?: UseQueryOptions<axios.AxiosResponse<HostingAdvancedServer200, any>, TError, TData, QueryKey> | undefined;
|
|
319
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
320
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
321
|
+
queryKey: QueryKey;
|
|
322
|
+
};
|
|
323
|
+
/**
|
|
324
|
+
* Allows for managing server status
|
|
325
|
+
* @summary server_status
|
|
326
|
+
*/
|
|
327
|
+
export declare const hostingAdvancedServerStatus: (hostingId: number, hostingAdvancedServerStatusBody: HostingAdvancedServerStatusBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingAdvancedServerStatus200>>;
|
|
328
|
+
export declare type HostingAdvancedServerStatusMutationResult = NonNullable<Awaited<ReturnType<typeof hostingAdvancedServerStatus>>>;
|
|
329
|
+
export declare type HostingAdvancedServerStatusMutationBody = HostingAdvancedServerStatusBody;
|
|
330
|
+
export declare type HostingAdvancedServerStatusMutationError = AxiosError<unknown>;
|
|
331
|
+
export declare const useHostingAdvancedServerStatus: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
332
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<HostingAdvancedServerStatus200, any>, TError, {
|
|
333
|
+
hostingId: number;
|
|
334
|
+
data: HostingAdvancedServerStatusBody;
|
|
335
|
+
}, TContext> | undefined;
|
|
336
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
337
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<HostingAdvancedServerStatus200, any>, TError, {
|
|
338
|
+
hostingId: number;
|
|
339
|
+
data: HostingAdvancedServerStatusBody;
|
|
340
|
+
}, TContext>;
|
|
341
|
+
/**
|
|
342
|
+
* Update user account's password
|
|
343
|
+
* @summary Update user account password
|
|
344
|
+
*/
|
|
345
|
+
export declare const hostingAdvancedPassword: (hostingId: number, hostingAdvancedPasswordBody: HostingAdvancedPasswordBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingAdvancedPassword200>>;
|
|
346
|
+
export declare type HostingAdvancedPasswordMutationResult = NonNullable<Awaited<ReturnType<typeof hostingAdvancedPassword>>>;
|
|
347
|
+
export declare type HostingAdvancedPasswordMutationBody = HostingAdvancedPasswordBody;
|
|
348
|
+
export declare type HostingAdvancedPasswordMutationError = AxiosError<unknown>;
|
|
349
|
+
export declare const useHostingAdvancedPassword: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
350
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<HostingAdvancedPassword200, any>, TError, {
|
|
351
|
+
hostingId: number;
|
|
352
|
+
data: HostingAdvancedPasswordBody;
|
|
353
|
+
}, TContext> | undefined;
|
|
354
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
355
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<HostingAdvancedPassword200, any>, TError, {
|
|
356
|
+
hostingId: number;
|
|
357
|
+
data: HostingAdvancedPasswordBody;
|
|
358
|
+
}, TContext>;
|
|
359
|
+
/**
|
|
360
|
+
* Returns the hosting sso_whm login url
|
|
361
|
+
* @summary hosting sso_whm
|
|
362
|
+
*/
|
|
363
|
+
export declare const hostingAdvancedSsoWhm: (hostingId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingAdvancedSsoWhm200>>;
|
|
364
|
+
export declare const getHostingAdvancedSsoWhmQueryKey: (hostingId: number) => string[];
|
|
365
|
+
export declare type HostingAdvancedSsoWhmQueryResult = NonNullable<Awaited<ReturnType<typeof hostingAdvancedSsoWhm>>>;
|
|
366
|
+
export declare type HostingAdvancedSsoWhmQueryError = AxiosError<unknown>;
|
|
367
|
+
export declare const useHostingAdvancedSsoWhm: <TData = axios.AxiosResponse<HostingAdvancedSsoWhm200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
368
|
+
query?: UseQueryOptions<axios.AxiosResponse<HostingAdvancedSsoWhm200, any>, TError, TData, QueryKey> | undefined;
|
|
369
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
370
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
371
|
+
queryKey: QueryKey;
|
|
372
|
+
};
|
|
373
|
+
/**
|
|
374
|
+
* Returns the hosting system_console url
|
|
375
|
+
* @summary hosting system_console
|
|
376
|
+
*/
|
|
377
|
+
export declare const hostingAdvancedSystemConsole: (hostingId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingAdvancedSystemConsole200>>;
|
|
378
|
+
export declare const getHostingAdvancedSystemConsoleQueryKey: (hostingId: number) => string[];
|
|
379
|
+
export declare type HostingAdvancedSystemConsoleQueryResult = NonNullable<Awaited<ReturnType<typeof hostingAdvancedSystemConsole>>>;
|
|
380
|
+
export declare type HostingAdvancedSystemConsoleQueryError = AxiosError<unknown>;
|
|
381
|
+
export declare const useHostingAdvancedSystemConsole: <TData = axios.AxiosResponse<HostingAdvancedSystemConsole200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
382
|
+
query?: UseQueryOptions<axios.AxiosResponse<HostingAdvancedSystemConsole200, any>, TError, TData, QueryKey> | undefined;
|
|
383
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
384
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
385
|
+
queryKey: QueryKey;
|
|
386
|
+
};
|
|
387
|
+
/**
|
|
388
|
+
* Returns the hosting capabilities
|
|
389
|
+
* @summary hosting capabilities
|
|
390
|
+
*/
|
|
391
|
+
export declare const hostingCapabilities: (hostingId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingCapabilities200>>;
|
|
392
|
+
export declare const getHostingCapabilitiesQueryKey: (hostingId: number) => string[];
|
|
393
|
+
export declare type HostingCapabilitiesQueryResult = NonNullable<Awaited<ReturnType<typeof hostingCapabilities>>>;
|
|
394
|
+
export declare type HostingCapabilitiesQueryError = AxiosError<unknown>;
|
|
395
|
+
export declare const useHostingCapabilities: <TData = axios.AxiosResponse<HostingCapabilities200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
396
|
+
query?: UseQueryOptions<axios.AxiosResponse<HostingCapabilities200, any>, TError, TData, QueryKey> | undefined;
|
|
397
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
398
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
399
|
+
queryKey: QueryKey;
|
|
400
|
+
};
|
|
401
|
+
/**
|
|
402
|
+
* Creates cloudflare basic addon
|
|
403
|
+
* @summary Install cloudflare basic addon
|
|
404
|
+
*/
|
|
405
|
+
export declare const addonCloudflare: (hostingId: number, addonCloudflareBody: AddonCloudflareBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<AddonCloudflare200>>;
|
|
406
|
+
export declare type AddonCloudflareMutationResult = NonNullable<Awaited<ReturnType<typeof addonCloudflare>>>;
|
|
407
|
+
export declare type AddonCloudflareMutationBody = AddonCloudflareBody;
|
|
408
|
+
export declare type AddonCloudflareMutationError = AxiosError<unknown>;
|
|
409
|
+
export declare const useAddonCloudflare: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
410
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<AddonCloudflare200, any>, TError, {
|
|
411
|
+
hostingId: number;
|
|
412
|
+
data: AddonCloudflareBody;
|
|
413
|
+
}, TContext> | undefined;
|
|
414
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
415
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<AddonCloudflare200, any>, TError, {
|
|
416
|
+
hostingId: number;
|
|
417
|
+
data: AddonCloudflareBody;
|
|
418
|
+
}, TContext>;
|
|
419
|
+
/**
|
|
420
|
+
* Returns a list of domains
|
|
421
|
+
* @summary domain list
|
|
422
|
+
*/
|
|
423
|
+
export declare const domains: (hostingId: number, params?: DomainsParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<Domains200>>;
|
|
424
|
+
export declare const getDomainsQueryKey: (hostingId: number, params?: DomainsParams) => (string | DomainsParams)[];
|
|
425
|
+
export declare type DomainsQueryResult = NonNullable<Awaited<ReturnType<typeof domains>>>;
|
|
426
|
+
export declare type DomainsQueryError = AxiosError<unknown>;
|
|
427
|
+
export declare const useDomains: <TData = axios.AxiosResponse<Domains200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: number, params?: DomainsParams, options?: {
|
|
428
|
+
query?: UseQueryOptions<axios.AxiosResponse<Domains200, any>, TError, TData, QueryKey> | undefined;
|
|
429
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
430
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
431
|
+
queryKey: QueryKey;
|
|
432
|
+
};
|
|
433
|
+
/**
|
|
434
|
+
* Returns a list of FTP accounts.
|
|
435
|
+
* @summary ftp list
|
|
436
|
+
*/
|
|
437
|
+
export declare const hostingFtpList: (hostingId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingFtpList200>>;
|
|
221
438
|
export declare const getHostingFtpListQueryKey: (hostingId: number) => string[];
|
|
222
439
|
export declare type HostingFtpListQueryResult = NonNullable<Awaited<ReturnType<typeof hostingFtpList>>>;
|
|
223
440
|
export declare type HostingFtpListQueryError = AxiosError<unknown>;
|
|
@@ -228,38 +445,355 @@ export declare const useHostingFtpList: <TData = axios.AxiosResponse<HostingFtpL
|
|
|
228
445
|
queryKey: QueryKey;
|
|
229
446
|
};
|
|
230
447
|
/**
|
|
231
|
-
*
|
|
448
|
+
* Add ftp account
|
|
449
|
+
* @summary Add ftp account
|
|
450
|
+
*/
|
|
451
|
+
export declare const hostingFtpAdd: (hostingId: number, hostingFtpAddBody: HostingFtpAddBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingFtpAdd200>>;
|
|
452
|
+
export declare type HostingFtpAddMutationResult = NonNullable<Awaited<ReturnType<typeof hostingFtpAdd>>>;
|
|
453
|
+
export declare type HostingFtpAddMutationBody = HostingFtpAddBody;
|
|
454
|
+
export declare type HostingFtpAddMutationError = AxiosError<unknown>;
|
|
455
|
+
export declare const useHostingFtpAdd: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
456
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<HostingFtpAdd200, any>, TError, {
|
|
457
|
+
hostingId: number;
|
|
458
|
+
data: HostingFtpAddBody;
|
|
459
|
+
}, TContext> | undefined;
|
|
460
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
461
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<HostingFtpAdd200, any>, TError, {
|
|
462
|
+
hostingId: number;
|
|
463
|
+
data: HostingFtpAddBody;
|
|
464
|
+
}, TContext>;
|
|
465
|
+
/**
|
|
466
|
+
* Delete ftp account
|
|
467
|
+
* @summary Delete ftp account
|
|
468
|
+
*/
|
|
469
|
+
export declare const hostingFtp: (hostingId: number, hostingFtpBody: HostingFtpBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingFtp200>>;
|
|
470
|
+
export declare type HostingFtpMutationResult = NonNullable<Awaited<ReturnType<typeof hostingFtp>>>;
|
|
471
|
+
export declare type HostingFtpMutationBody = HostingFtpBody;
|
|
472
|
+
export declare type HostingFtpMutationError = AxiosError<unknown>;
|
|
473
|
+
export declare const useHostingFtp: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
474
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<HostingFtp200, any>, TError, {
|
|
475
|
+
hostingId: number;
|
|
476
|
+
data: HostingFtpBody;
|
|
477
|
+
}, TContext> | undefined;
|
|
478
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
479
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<HostingFtp200, any>, TError, {
|
|
480
|
+
hostingId: number;
|
|
481
|
+
data: HostingFtpBody;
|
|
482
|
+
}, TContext>;
|
|
483
|
+
/**
|
|
484
|
+
* Returns hosting account info
|
|
485
|
+
* @summary Hosting info
|
|
486
|
+
*/
|
|
487
|
+
export declare const hostingInfo: (hostingId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingInfo200>>;
|
|
488
|
+
export declare const getHostingInfoQueryKey: (hostingId: number) => string[];
|
|
489
|
+
export declare type HostingInfoQueryResult = NonNullable<Awaited<ReturnType<typeof hostingInfo>>>;
|
|
490
|
+
export declare type HostingInfoQueryError = AxiosError<unknown>;
|
|
491
|
+
export declare const useHostingInfo: <TData = axios.AxiosResponse<HostingInfo200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
492
|
+
query?: UseQueryOptions<axios.AxiosResponse<HostingInfo200, any>, TError, TData, QueryKey> | undefined;
|
|
493
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
494
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
495
|
+
queryKey: QueryKey;
|
|
496
|
+
};
|
|
497
|
+
/**
|
|
498
|
+
* Returns the hosting account's disk usage
|
|
499
|
+
* @summary info disk usage
|
|
500
|
+
*/
|
|
501
|
+
export declare const hostingInfoDiskUsage: (hostingId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingInfoDiskUsage200>>;
|
|
502
|
+
export declare const getHostingInfoDiskUsageQueryKey: (hostingId: number) => string[];
|
|
503
|
+
export declare type HostingInfoDiskUsageQueryResult = NonNullable<Awaited<ReturnType<typeof hostingInfoDiskUsage>>>;
|
|
504
|
+
export declare type HostingInfoDiskUsageQueryError = AxiosError<unknown>;
|
|
505
|
+
export declare const useHostingInfoDiskUsage: <TData = axios.AxiosResponse<HostingInfoDiskUsage200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
506
|
+
query?: UseQueryOptions<axios.AxiosResponse<HostingInfoDiskUsage200, any>, TError, TData, QueryKey> | undefined;
|
|
507
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
508
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
509
|
+
queryKey: QueryKey;
|
|
510
|
+
};
|
|
511
|
+
/**
|
|
512
|
+
* Gets the Wordpress migration status
|
|
513
|
+
* @summary Wordpress migration status
|
|
514
|
+
*/
|
|
515
|
+
export declare const hostingMigrationStatus: (hostingId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingMigrationStatus200>>;
|
|
516
|
+
export declare const getHostingMigrationStatusQueryKey: (hostingId: number) => string[];
|
|
517
|
+
export declare type HostingMigrationStatusQueryResult = NonNullable<Awaited<ReturnType<typeof hostingMigrationStatus>>>;
|
|
518
|
+
export declare type HostingMigrationStatusQueryError = AxiosError<unknown>;
|
|
519
|
+
export declare const useHostingMigrationStatus: <TData = axios.AxiosResponse<HostingMigrationStatus200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
520
|
+
query?: UseQueryOptions<axios.AxiosResponse<HostingMigrationStatus200, any>, TError, TData, QueryKey> | undefined;
|
|
521
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
522
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
523
|
+
queryKey: QueryKey;
|
|
524
|
+
};
|
|
525
|
+
/**
|
|
526
|
+
* Adds the wordpressmigrate addon for a given migration id and hosting account
|
|
527
|
+
* @summary start the migration process for a site
|
|
528
|
+
*/
|
|
529
|
+
export declare const hostingMigrations: (hostingId: string, hostingMigrationsBody: HostingMigrationsBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingMigrations200>>;
|
|
530
|
+
export declare type HostingMigrationsMutationResult = NonNullable<Awaited<ReturnType<typeof hostingMigrations>>>;
|
|
531
|
+
export declare type HostingMigrationsMutationBody = HostingMigrationsBody;
|
|
532
|
+
export declare type HostingMigrationsMutationError = AxiosError<unknown>;
|
|
533
|
+
export declare const useHostingMigrations: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
534
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<HostingMigrations200, any>, TError, {
|
|
535
|
+
hostingId: string;
|
|
536
|
+
data: HostingMigrationsBody;
|
|
537
|
+
}, TContext> | undefined;
|
|
538
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
539
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<HostingMigrations200, any>, TError, {
|
|
540
|
+
hostingId: string;
|
|
541
|
+
data: HostingMigrationsBody;
|
|
542
|
+
}, TContext>;
|
|
543
|
+
/**
|
|
544
|
+
* Post migration event to CWM
|
|
545
|
+
* @summary hosting migrations event
|
|
546
|
+
*/
|
|
547
|
+
export declare const hostingMigrationsEvent: (hostingId: string, hostingMigrationsEventBody: HostingMigrationsEventBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingMigrationsEvent200>>;
|
|
548
|
+
export declare type HostingMigrationsEventMutationResult = NonNullable<Awaited<ReturnType<typeof hostingMigrationsEvent>>>;
|
|
549
|
+
export declare type HostingMigrationsEventMutationBody = HostingMigrationsEventBody;
|
|
550
|
+
export declare type HostingMigrationsEventMutationError = AxiosError<unknown>;
|
|
551
|
+
export declare const useHostingMigrationsEvent: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
552
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<HostingMigrationsEvent200, any>, TError, {
|
|
553
|
+
hostingId: string;
|
|
554
|
+
data: HostingMigrationsEventBody;
|
|
555
|
+
}, TContext> | undefined;
|
|
556
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
557
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<HostingMigrationsEvent200, any>, TError, {
|
|
558
|
+
hostingId: string;
|
|
559
|
+
data: HostingMigrationsEventBody;
|
|
560
|
+
}, TContext>;
|
|
561
|
+
/**
|
|
562
|
+
* Gets the Wordpress migration information
|
|
563
|
+
* @summary Wordpress migration information
|
|
564
|
+
*/
|
|
565
|
+
export declare const hostingMigrationInfo: (hostingId: number, params: HostingMigrationInfoParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingMigrationInfo200>>;
|
|
566
|
+
export declare const getHostingMigrationInfoQueryKey: (hostingId: number, params: HostingMigrationInfoParams) => (string | HostingMigrationInfoParams)[];
|
|
567
|
+
export declare type HostingMigrationInfoQueryResult = NonNullable<Awaited<ReturnType<typeof hostingMigrationInfo>>>;
|
|
568
|
+
export declare type HostingMigrationInfoQueryError = AxiosError<unknown>;
|
|
569
|
+
export declare const useHostingMigrationInfo: <TData = axios.AxiosResponse<HostingMigrationInfo200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: number, params: HostingMigrationInfoParams, options?: {
|
|
570
|
+
query?: UseQueryOptions<axios.AxiosResponse<HostingMigrationInfo200, any>, TError, TData, QueryKey> | undefined;
|
|
571
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
572
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
573
|
+
queryKey: QueryKey;
|
|
574
|
+
};
|
|
575
|
+
/**
|
|
576
|
+
* Provides the status of SiteMigration site_scan and deeplink to WordPress admin page
|
|
577
|
+
* @summary SiteMigration site_scan status
|
|
578
|
+
*/
|
|
579
|
+
export declare const hostingMigrationSiteScanStatus: (hostingId: number, params: HostingMigrationSiteScanStatusParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingMigrationSiteScanStatus200>>;
|
|
580
|
+
export declare const getHostingMigrationSiteScanStatusQueryKey: (hostingId: number, params: HostingMigrationSiteScanStatusParams) => (string | HostingMigrationSiteScanStatusParams)[];
|
|
581
|
+
export declare type HostingMigrationSiteScanStatusQueryResult = NonNullable<Awaited<ReturnType<typeof hostingMigrationSiteScanStatus>>>;
|
|
582
|
+
export declare type HostingMigrationSiteScanStatusQueryError = AxiosError<unknown>;
|
|
583
|
+
export declare const useHostingMigrationSiteScanStatus: <TData = axios.AxiosResponse<HostingMigrationSiteScanStatus200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: number, params: HostingMigrationSiteScanStatusParams, options?: {
|
|
584
|
+
query?: UseQueryOptions<axios.AxiosResponse<HostingMigrationSiteScanStatus200, any>, TError, TData, QueryKey> | undefined;
|
|
585
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
586
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
587
|
+
queryKey: QueryKey;
|
|
588
|
+
};
|
|
589
|
+
/**
|
|
590
|
+
* Returns the hosting brand nameservers
|
|
591
|
+
* @summary hosting nameservers
|
|
592
|
+
*/
|
|
593
|
+
export declare const hostingNameservers: (hostingId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingNameservers200>>;
|
|
594
|
+
export declare const getHostingNameserversQueryKey: (hostingId: number) => string[];
|
|
595
|
+
export declare type HostingNameserversQueryResult = NonNullable<Awaited<ReturnType<typeof hostingNameservers>>>;
|
|
596
|
+
export declare type HostingNameserversQueryError = AxiosError<unknown>;
|
|
597
|
+
export declare const useHostingNameservers: <TData = axios.AxiosResponse<HostingNameservers200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
598
|
+
query?: UseQueryOptions<axios.AxiosResponse<HostingNameservers200, any>, TError, TData, QueryKey> | undefined;
|
|
599
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
600
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
601
|
+
queryKey: QueryKey;
|
|
602
|
+
};
|
|
603
|
+
/**
|
|
604
|
+
* Enable or disable shell access on an account by setting the shell.SSH key access must be established separately.
|
|
605
|
+
* @summary hosting shell toggle
|
|
606
|
+
*/
|
|
607
|
+
export declare const hostingShellToggle: (hostingId: string, hostingShellToggleBody: HostingShellToggleBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingShellToggle200>>;
|
|
608
|
+
export declare type HostingShellToggleMutationResult = NonNullable<Awaited<ReturnType<typeof hostingShellToggle>>>;
|
|
609
|
+
export declare type HostingShellToggleMutationBody = HostingShellToggleBody;
|
|
610
|
+
export declare type HostingShellToggleMutationError = AxiosError<unknown>;
|
|
611
|
+
export declare const useHostingShellToggle: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
612
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<HostingShellToggle200, any>, TError, {
|
|
613
|
+
hostingId: string;
|
|
614
|
+
data: HostingShellToggleBody;
|
|
615
|
+
}, TContext> | undefined;
|
|
616
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
617
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<HostingShellToggle200, any>, TError, {
|
|
618
|
+
hostingId: string;
|
|
619
|
+
data: HostingShellToggleBody;
|
|
620
|
+
}, TContext>;
|
|
621
|
+
/**
|
|
622
|
+
* Determine shell access status for an account.
|
|
623
|
+
* @summary hosting shell_status
|
|
624
|
+
*/
|
|
625
|
+
export declare const hostingShellInfo: (hostingId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingShellInfo200>>;
|
|
626
|
+
export declare const getHostingShellInfoQueryKey: (hostingId: string) => string[];
|
|
627
|
+
export declare type HostingShellInfoQueryResult = NonNullable<Awaited<ReturnType<typeof hostingShellInfo>>>;
|
|
628
|
+
export declare type HostingShellInfoQueryError = AxiosError<unknown>;
|
|
629
|
+
export declare const useHostingShellInfo: <TData = axios.AxiosResponse<HostingShellInfo200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: string, options?: {
|
|
630
|
+
query?: UseQueryOptions<axios.AxiosResponse<HostingShellInfo200, any>, TError, TData, QueryKey> | undefined;
|
|
631
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
632
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
633
|
+
queryKey: QueryKey;
|
|
634
|
+
};
|
|
635
|
+
/**
|
|
636
|
+
* Returns a list of sites.
|
|
637
|
+
* @summary sites list
|
|
638
|
+
*/
|
|
639
|
+
export declare const hostingSites: (hostingId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingSites200>>;
|
|
640
|
+
export declare const getHostingSitesQueryKey: (hostingId: number) => string[];
|
|
641
|
+
export declare type HostingSitesQueryResult = NonNullable<Awaited<ReturnType<typeof hostingSites>>>;
|
|
642
|
+
export declare type HostingSitesQueryError = AxiosError<unknown>;
|
|
643
|
+
export declare const useHostingSites: <TData = axios.AxiosResponse<HostingSites200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
644
|
+
query?: UseQueryOptions<axios.AxiosResponse<HostingSites200, any>, TError, TData, QueryKey> | undefined;
|
|
645
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
646
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
647
|
+
queryKey: QueryKey;
|
|
648
|
+
};
|
|
649
|
+
/**
|
|
650
|
+
* Add a site to the current hosting.
|
|
651
|
+
* @summary sites add
|
|
652
|
+
*/
|
|
653
|
+
export declare const hostingSiteAdd: (hostingId: number, hostingSiteAddBody: HostingSiteAddBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingSiteAdd200>>;
|
|
654
|
+
export declare type HostingSiteAddMutationResult = NonNullable<Awaited<ReturnType<typeof hostingSiteAdd>>>;
|
|
655
|
+
export declare type HostingSiteAddMutationBody = HostingSiteAddBody;
|
|
656
|
+
export declare type HostingSiteAddMutationError = AxiosError<unknown>;
|
|
657
|
+
export declare const useHostingSiteAdd: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
658
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<HostingSiteAdd200, any>, TError, {
|
|
659
|
+
hostingId: number;
|
|
660
|
+
data: HostingSiteAddBody;
|
|
661
|
+
}, TContext> | undefined;
|
|
662
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
663
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<HostingSiteAdd200, any>, TError, {
|
|
664
|
+
hostingId: number;
|
|
665
|
+
data: HostingSiteAddBody;
|
|
666
|
+
}, TContext>;
|
|
667
|
+
/**
|
|
668
|
+
* Returns the hosting account's SSH information
|
|
669
|
+
* @summary ssh info
|
|
670
|
+
*/
|
|
671
|
+
export declare const hostingSshInfo: (hostingId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingSshInfo200>>;
|
|
672
|
+
export declare const getHostingSshInfoQueryKey: (hostingId: number) => string[];
|
|
673
|
+
export declare type HostingSshInfoQueryResult = NonNullable<Awaited<ReturnType<typeof hostingSshInfo>>>;
|
|
674
|
+
export declare type HostingSshInfoQueryError = AxiosError<unknown>;
|
|
675
|
+
export declare const useHostingSshInfo: <TData = axios.AxiosResponse<HostingSshInfo200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
676
|
+
query?: UseQueryOptions<axios.AxiosResponse<HostingSshInfo200, any>, TError, TData, QueryKey> | undefined;
|
|
677
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
678
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
679
|
+
queryKey: QueryKey;
|
|
680
|
+
};
|
|
681
|
+
/**
|
|
682
|
+
* Fetches an SSH public (or optionally private) key.
|
|
683
|
+
* @summary ssh key fetch
|
|
684
|
+
*/
|
|
685
|
+
export declare const sshKeyFetch: (hostingId: string, params: SshKeyFetchParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<SshKeyFetch200>>;
|
|
686
|
+
export declare const getSshKeyFetchQueryKey: (hostingId: string, params: SshKeyFetchParams) => (string | SshKeyFetchParams)[];
|
|
687
|
+
export declare type SshKeyFetchQueryResult = NonNullable<Awaited<ReturnType<typeof sshKeyFetch>>>;
|
|
688
|
+
export declare type SshKeyFetchQueryError = AxiosError<unknown>;
|
|
689
|
+
export declare const useSshKeyFetch: <TData = axios.AxiosResponse<SshKeyFetch200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: string, params: SshKeyFetchParams, options?: {
|
|
690
|
+
query?: UseQueryOptions<axios.AxiosResponse<SshKeyFetch200, any>, TError, TData, QueryKey> | undefined;
|
|
691
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
692
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
693
|
+
queryKey: QueryKey;
|
|
694
|
+
};
|
|
695
|
+
/**
|
|
696
|
+
* Import public/private ssh key
|
|
697
|
+
* @summary Import ssh key
|
|
698
|
+
*/
|
|
699
|
+
export declare const sshKeyImport: (hostingId: number, sshKeyImportBody: SshKeyImportBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SshKeyImport200>>;
|
|
700
|
+
export declare type SshKeyImportMutationResult = NonNullable<Awaited<ReturnType<typeof sshKeyImport>>>;
|
|
701
|
+
export declare type SshKeyImportMutationBody = SshKeyImportBody;
|
|
702
|
+
export declare type SshKeyImportMutationError = AxiosError<unknown>;
|
|
703
|
+
export declare const useSshKeyImport: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
704
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<SshKeyImport200, any>, TError, {
|
|
705
|
+
hostingId: number;
|
|
706
|
+
data: SshKeyImportBody;
|
|
707
|
+
}, TContext> | undefined;
|
|
708
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
709
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<SshKeyImport200, any>, TError, {
|
|
710
|
+
hostingId: number;
|
|
711
|
+
data: SshKeyImportBody;
|
|
712
|
+
}, TContext>;
|
|
713
|
+
/**
|
|
714
|
+
* List all SSH keys on a server or account. Finds all keys in user's .ssh/ diretory.
|
|
715
|
+
* @deprecated
|
|
716
|
+
* @summary Deprecated - ssh keys list
|
|
717
|
+
*/
|
|
718
|
+
export declare const sshKeyList: (hostingId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<SshKeyList200>>;
|
|
719
|
+
export declare const getSshKeyListQueryKey: (hostingId: string) => string[];
|
|
720
|
+
export declare type SshKeyListQueryResult = NonNullable<Awaited<ReturnType<typeof sshKeyList>>>;
|
|
721
|
+
export declare type SshKeyListQueryError = AxiosError<unknown>;
|
|
722
|
+
export declare const useSshKeyList: <TData = axios.AxiosResponse<SshKeyList200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: string, options?: {
|
|
723
|
+
query?: UseQueryOptions<axios.AxiosResponse<SshKeyList200, any>, TError, TData, QueryKey> | undefined;
|
|
724
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
725
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
726
|
+
queryKey: QueryKey;
|
|
727
|
+
};
|
|
728
|
+
/**
|
|
729
|
+
* Deletes an SSH key
|
|
730
|
+
* @summary ssh key delete
|
|
731
|
+
*/
|
|
732
|
+
export declare const sshKey: (hostingId: string, sshKeyBody: SshKeyBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SshKey200>>;
|
|
733
|
+
export declare type SshKeyMutationResult = NonNullable<Awaited<ReturnType<typeof sshKey>>>;
|
|
734
|
+
export declare type SshKeyMutationBody = SshKeyBody;
|
|
735
|
+
export declare type SshKeyMutationError = AxiosError<unknown>;
|
|
736
|
+
export declare const useSshKey: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
737
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<SshKey200, any>, TError, {
|
|
738
|
+
hostingId: string;
|
|
739
|
+
data: SshKeyBody;
|
|
740
|
+
}, TContext> | undefined;
|
|
741
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
742
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<SshKey200, any>, TError, {
|
|
743
|
+
hostingId: string;
|
|
744
|
+
data: SshKeyBody;
|
|
745
|
+
}, TContext>;
|
|
746
|
+
/**
|
|
747
|
+
* Generates public/private ssh keys
|
|
748
|
+
* @summary Generate ssh key
|
|
749
|
+
*/
|
|
750
|
+
export declare const sshKeyGenerate: (hostingId: number, sshKeyGenerateBody: SshKeyGenerateBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SshKeyGenerate200>>;
|
|
751
|
+
export declare type SshKeyGenerateMutationResult = NonNullable<Awaited<ReturnType<typeof sshKeyGenerate>>>;
|
|
752
|
+
export declare type SshKeyGenerateMutationBody = SshKeyGenerateBody;
|
|
753
|
+
export declare type SshKeyGenerateMutationError = AxiosError<unknown>;
|
|
754
|
+
export declare const useSshKeyGenerate: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
755
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<SshKeyGenerate200, any>, TError, {
|
|
756
|
+
hostingId: number;
|
|
757
|
+
data: SshKeyGenerateBody;
|
|
758
|
+
}, TContext> | undefined;
|
|
759
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
760
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<SshKeyGenerate200, any>, TError, {
|
|
761
|
+
hostingId: number;
|
|
762
|
+
data: SshKeyGenerateBody;
|
|
763
|
+
}, TContext>;
|
|
764
|
+
/**
|
|
765
|
+
* 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.
|
|
232
766
|
* @summary sso
|
|
233
767
|
*/
|
|
234
|
-
export declare const sso: (hostingId: number, options?:
|
|
235
|
-
export declare const getSsoQueryKey: (hostingId: number) => string[];
|
|
768
|
+
export declare const sso: (hostingId: number, params?: SsoParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<Sso200>>;
|
|
769
|
+
export declare const getSsoQueryKey: (hostingId: number, params?: SsoParams) => (string | SsoParams)[];
|
|
236
770
|
export declare type SsoQueryResult = NonNullable<Awaited<ReturnType<typeof sso>>>;
|
|
237
771
|
export declare type SsoQueryError = AxiosError<unknown>;
|
|
238
|
-
export declare const useSso: <TData = axios.AxiosResponse<Sso200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
772
|
+
export declare const useSso: <TData = axios.AxiosResponse<Sso200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: number, params?: SsoParams, options?: {
|
|
239
773
|
query?: UseQueryOptions<axios.AxiosResponse<Sso200, any>, TError, TData, QueryKey> | undefined;
|
|
240
774
|
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
241
775
|
} | undefined) => UseQueryResult<TData, TError> & {
|
|
242
776
|
queryKey: QueryKey;
|
|
243
777
|
};
|
|
244
778
|
/**
|
|
245
|
-
*
|
|
246
|
-
* @summary
|
|
779
|
+
* Returns site list.
|
|
780
|
+
* @summary Site list for an account
|
|
247
781
|
*/
|
|
248
|
-
export declare const
|
|
249
|
-
export declare const
|
|
250
|
-
export declare type
|
|
251
|
-
export declare type
|
|
252
|
-
export declare const
|
|
253
|
-
query?: UseQueryOptions<axios.AxiosResponse<
|
|
782
|
+
export declare const sitesList: (options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesList200>>;
|
|
783
|
+
export declare const getSitesListQueryKey: () => string[];
|
|
784
|
+
export declare type SitesListQueryResult = NonNullable<Awaited<ReturnType<typeof sitesList>>>;
|
|
785
|
+
export declare type SitesListQueryError = AxiosError<unknown>;
|
|
786
|
+
export declare const useSitesList: <TData = axios.AxiosResponse<SitesList200, any>, TError = axios.AxiosError<unknown, any>>(options?: {
|
|
787
|
+
query?: UseQueryOptions<axios.AxiosResponse<SitesList200, any>, TError, TData, QueryKey> | undefined;
|
|
254
788
|
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
255
789
|
} | undefined) => UseQueryResult<TData, TError> & {
|
|
256
790
|
queryKey: QueryKey;
|
|
257
791
|
};
|
|
258
792
|
/**
|
|
259
|
-
*
|
|
260
|
-
* @summary
|
|
793
|
+
* Returns site information.
|
|
794
|
+
* @summary info
|
|
261
795
|
*/
|
|
262
|
-
export declare const sitesInfo: (siteId: number, options?:
|
|
796
|
+
export declare const sitesInfo: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesInfo200>>;
|
|
263
797
|
export declare const getSitesInfoQueryKey: (siteId: number) => string[];
|
|
264
798
|
export declare type SitesInfoQueryResult = NonNullable<Awaited<ReturnType<typeof sitesInfo>>>;
|
|
265
799
|
export declare type SitesInfoQueryError = AxiosError<unknown>;
|
|
@@ -270,15 +804,656 @@ export declare const useSitesInfo: <TData = axios.AxiosResponse<SitesInfo200, an
|
|
|
270
804
|
queryKey: QueryKey;
|
|
271
805
|
};
|
|
272
806
|
/**
|
|
273
|
-
*
|
|
274
|
-
* @summary
|
|
807
|
+
* Allows for updating a site's attributes
|
|
808
|
+
* @summary site update
|
|
275
809
|
*/
|
|
276
|
-
export declare const
|
|
277
|
-
export declare
|
|
278
|
-
export declare type
|
|
279
|
-
export declare type
|
|
280
|
-
export declare const
|
|
281
|
-
|
|
810
|
+
export declare const siteUpdate: (siteId: number, siteUpdateBody: SiteUpdateBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SiteUpdate200>>;
|
|
811
|
+
export declare type SiteUpdateMutationResult = NonNullable<Awaited<ReturnType<typeof siteUpdate>>>;
|
|
812
|
+
export declare type SiteUpdateMutationBody = SiteUpdateBody;
|
|
813
|
+
export declare type SiteUpdateMutationError = AxiosError<SiteUpdate400>;
|
|
814
|
+
export declare const useSiteUpdate: <TError = axios.AxiosError<SiteUpdate400, any>, TContext = unknown>(options?: {
|
|
815
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<SiteUpdate200, any>, TError, {
|
|
816
|
+
siteId: number;
|
|
817
|
+
data: SiteUpdateBody;
|
|
818
|
+
}, TContext> | undefined;
|
|
819
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
820
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<SiteUpdate200, any>, TError, {
|
|
821
|
+
siteId: number;
|
|
822
|
+
data: SiteUpdateBody;
|
|
823
|
+
}, TContext>;
|
|
824
|
+
/**
|
|
825
|
+
* Allows deleting a site
|
|
826
|
+
* @summary site delete
|
|
827
|
+
*/
|
|
828
|
+
export declare const site: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<Site200>>;
|
|
829
|
+
export declare type SiteMutationResult = NonNullable<Awaited<ReturnType<typeof site>>>;
|
|
830
|
+
export declare type SiteMutationError = AxiosError<unknown>;
|
|
831
|
+
export declare const useSite: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
832
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<Site200, any>, TError, {
|
|
833
|
+
siteId: number;
|
|
834
|
+
}, TContext> | undefined;
|
|
835
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
836
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<Site200, any>, TError, {
|
|
837
|
+
siteId: number;
|
|
838
|
+
}, TContext>;
|
|
839
|
+
/**
|
|
840
|
+
* Returns the autoupdate status of the site's core, themes, and plugins
|
|
841
|
+
* @summary settings autoupdates
|
|
842
|
+
*/
|
|
843
|
+
export declare const sitesAutoupdatesInfo: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesAutoupdatesResponse>>;
|
|
844
|
+
export declare const getSitesAutoupdatesInfoQueryKey: (siteId: number) => string[];
|
|
845
|
+
export declare type SitesAutoupdatesInfoQueryResult = NonNullable<Awaited<ReturnType<typeof sitesAutoupdatesInfo>>>;
|
|
846
|
+
export declare type SitesAutoupdatesInfoQueryError = AxiosError<unknown>;
|
|
847
|
+
export declare const useSitesAutoupdatesInfo: <TData = axios.AxiosResponse<SitesAutoupdatesResponse, any>, TError = axios.AxiosError<unknown, any>>(siteId: number, options?: {
|
|
848
|
+
query?: UseQueryOptions<axios.AxiosResponse<SitesAutoupdatesResponse, any>, TError, TData, QueryKey> | undefined;
|
|
849
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
850
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
851
|
+
queryKey: QueryKey;
|
|
852
|
+
};
|
|
853
|
+
/**
|
|
854
|
+
* Enable / disable core, themes, or plugins autoupdates
|
|
855
|
+
* @summary settings autoupdates toggle
|
|
856
|
+
*/
|
|
857
|
+
export declare const sitesAutoupdatesUpdate: (siteId: number, sitesAutoupdatesUpdateBody: SitesAutoupdatesUpdateBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesAutoupdatesResponse>>;
|
|
858
|
+
export declare type SitesAutoupdatesUpdateMutationResult = NonNullable<Awaited<ReturnType<typeof sitesAutoupdatesUpdate>>>;
|
|
859
|
+
export declare type SitesAutoupdatesUpdateMutationBody = SitesAutoupdatesUpdateBody;
|
|
860
|
+
export declare type SitesAutoupdatesUpdateMutationError = AxiosError<unknown>;
|
|
861
|
+
export declare const useSitesAutoupdatesUpdate: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
862
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<SitesAutoupdatesResponse, any>, TError, {
|
|
863
|
+
siteId: number;
|
|
864
|
+
data: SitesAutoupdatesUpdateBody;
|
|
865
|
+
}, TContext> | undefined;
|
|
866
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
867
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<SitesAutoupdatesResponse, any>, TError, {
|
|
868
|
+
siteId: number;
|
|
869
|
+
data: SitesAutoupdatesUpdateBody;
|
|
870
|
+
}, TContext>;
|
|
871
|
+
/**
|
|
872
|
+
* Returns whether the site has either Codeguard or Jetpack-backup.
|
|
873
|
+
* @deprecated
|
|
874
|
+
* @summary Deprecated - has backup
|
|
875
|
+
*/
|
|
876
|
+
export declare const sitesBackups: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesBackups200>>;
|
|
877
|
+
export declare const getSitesBackupsQueryKey: (siteId: number) => string[];
|
|
878
|
+
export declare type SitesBackupsQueryResult = NonNullable<Awaited<ReturnType<typeof sitesBackups>>>;
|
|
879
|
+
export declare type SitesBackupsQueryError = AxiosError<unknown>;
|
|
880
|
+
export declare const useSitesBackups: <TData = axios.AxiosResponse<SitesBackups200, any>, TError = axios.AxiosError<unknown, any>>(siteId: number, options?: {
|
|
881
|
+
query?: UseQueryOptions<axios.AxiosResponse<SitesBackups200, any>, TError, TData, QueryKey> | undefined;
|
|
882
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
883
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
884
|
+
queryKey: QueryKey;
|
|
885
|
+
};
|
|
886
|
+
/**
|
|
887
|
+
* Returns whether the site has either Codeguard or Jetpack-backup.
|
|
888
|
+
* @summary has backups
|
|
889
|
+
*/
|
|
890
|
+
export declare const sitesHasBackups: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesHasBackups200>>;
|
|
891
|
+
export declare const getSitesHasBackupsQueryKey: (siteId: number) => string[];
|
|
892
|
+
export declare type SitesHasBackupsQueryResult = NonNullable<Awaited<ReturnType<typeof sitesHasBackups>>>;
|
|
893
|
+
export declare type SitesHasBackupsQueryError = AxiosError<unknown>;
|
|
894
|
+
export declare const useSitesHasBackups: <TData = axios.AxiosResponse<SitesHasBackups200, any>, TError = axios.AxiosError<unknown, any>>(siteId: number, options?: {
|
|
895
|
+
query?: UseQueryOptions<axios.AxiosResponse<SitesHasBackups200, any>, TError, TData, QueryKey> | undefined;
|
|
896
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
897
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
898
|
+
queryKey: QueryKey;
|
|
899
|
+
};
|
|
900
|
+
/**
|
|
901
|
+
* Returns details about the backup options available for the site, i.e. details about the codeguard backup addon and the jetpack based on if one or both of them are added to the account.
|
|
902
|
+
* @summary site backup details
|
|
903
|
+
*/
|
|
904
|
+
export declare const sitesBackupsDetails: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesBackupsDetails200>>;
|
|
905
|
+
export declare const getSitesBackupsDetailsQueryKey: (siteId: number) => string[];
|
|
906
|
+
export declare type SitesBackupsDetailsQueryResult = NonNullable<Awaited<ReturnType<typeof sitesBackupsDetails>>>;
|
|
907
|
+
export declare type SitesBackupsDetailsQueryError = AxiosError<unknown>;
|
|
908
|
+
export declare const useSitesBackupsDetails: <TData = axios.AxiosResponse<SitesBackupsDetails200, any>, TError = axios.AxiosError<unknown, any>>(siteId: number, options?: {
|
|
909
|
+
query?: UseQueryOptions<axios.AxiosResponse<SitesBackupsDetails200, any>, TError, TData, QueryKey> | undefined;
|
|
910
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
911
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
912
|
+
queryKey: QueryKey;
|
|
913
|
+
};
|
|
914
|
+
/**
|
|
915
|
+
* The products supported jetpack-backup addon and jetpack-backup plugin
|
|
916
|
+
* @summary Returns the status of the jetpack-backup product
|
|
917
|
+
*/
|
|
918
|
+
export declare const jetpackBackupStatus: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<JetpackBackupStatus200>>;
|
|
919
|
+
export declare const getJetpackBackupStatusQueryKey: (siteId: number) => string[];
|
|
920
|
+
export declare type JetpackBackupStatusQueryResult = NonNullable<Awaited<ReturnType<typeof jetpackBackupStatus>>>;
|
|
921
|
+
export declare type JetpackBackupStatusQueryError = AxiosError<unknown>;
|
|
922
|
+
export declare const useJetpackBackupStatus: <TData = axios.AxiosResponse<JetpackBackupStatus200, any>, TError = axios.AxiosError<unknown, any>>(siteId: number, options?: {
|
|
923
|
+
query?: UseQueryOptions<axios.AxiosResponse<JetpackBackupStatus200, any>, TError, TData, QueryKey> | undefined;
|
|
924
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
925
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
926
|
+
queryKey: QueryKey;
|
|
927
|
+
};
|
|
928
|
+
/**
|
|
929
|
+
* Returns a list of DNS records for the site's domain.
|
|
930
|
+
* @summary dns
|
|
931
|
+
*/
|
|
932
|
+
export declare const sitesDns: (siteId: string, params?: SitesDnsParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesDns200>>;
|
|
933
|
+
export declare const getSitesDnsQueryKey: (siteId: string, params?: SitesDnsParams) => (string | SitesDnsParams)[];
|
|
934
|
+
export declare type SitesDnsQueryResult = NonNullable<Awaited<ReturnType<typeof sitesDns>>>;
|
|
935
|
+
export declare type SitesDnsQueryError = AxiosError<unknown>;
|
|
936
|
+
export declare const useSitesDns: <TData = axios.AxiosResponse<SitesDns200, any>, TError = axios.AxiosError<unknown, any>>(siteId: string, params?: SitesDnsParams, options?: {
|
|
937
|
+
query?: UseQueryOptions<axios.AxiosResponse<SitesDns200, any>, TError, TData, QueryKey> | undefined;
|
|
938
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
939
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
940
|
+
queryKey: QueryKey;
|
|
941
|
+
};
|
|
942
|
+
/**
|
|
943
|
+
* Determines if the domain has the correct DNS setup for site
|
|
944
|
+
* @summary Domain DNS setup for site
|
|
945
|
+
*/
|
|
946
|
+
export declare const sitesDomain: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesDomain200>>;
|
|
947
|
+
export declare const getSitesDomainQueryKey: (siteId: number) => string[];
|
|
948
|
+
export declare type SitesDomainQueryResult = NonNullable<Awaited<ReturnType<typeof sitesDomain>>>;
|
|
949
|
+
export declare type SitesDomainQueryError = AxiosError<unknown>;
|
|
950
|
+
export declare const useSitesDomain: <TData = axios.AxiosResponse<SitesDomain200, any>, TError = axios.AxiosError<unknown, any>>(siteId: number, options?: {
|
|
951
|
+
query?: UseQueryOptions<axios.AxiosResponse<SitesDomain200, any>, TError, TData, QueryKey> | undefined;
|
|
952
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
953
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
954
|
+
queryKey: QueryKey;
|
|
955
|
+
};
|
|
956
|
+
/**
|
|
957
|
+
* Add or promote pending site url
|
|
958
|
+
* @summary Add pending site url
|
|
959
|
+
*/
|
|
960
|
+
export declare const sitesDomainUrl: (siteId: number, sitesDomainUrlBody: SitesDomainUrlBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesDomainUrl200>>;
|
|
961
|
+
export declare type SitesDomainUrlMutationResult = NonNullable<Awaited<ReturnType<typeof sitesDomainUrl>>>;
|
|
962
|
+
export declare type SitesDomainUrlMutationBody = SitesDomainUrlBody;
|
|
963
|
+
export declare type SitesDomainUrlMutationError = AxiosError<unknown>;
|
|
964
|
+
export declare const useSitesDomainUrl: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
965
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<SitesDomainUrl200, any>, TError, {
|
|
966
|
+
siteId: number;
|
|
967
|
+
data: SitesDomainUrlBody;
|
|
968
|
+
}, TContext> | undefined;
|
|
969
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
970
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<SitesDomainUrl200, any>, TError, {
|
|
971
|
+
siteId: number;
|
|
972
|
+
data: SitesDomainUrlBody;
|
|
973
|
+
}, TContext>;
|
|
974
|
+
/**
|
|
975
|
+
* cache purge site and url
|
|
976
|
+
* @summary cache purge url
|
|
977
|
+
*/
|
|
978
|
+
export declare const sitesPerformanceCachepurge: (siteId: number, sitesPerformanceCachepurgeBody: SitesPerformanceCachepurgeBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesPerformanceCachepurge200>>;
|
|
979
|
+
export declare type SitesPerformanceCachepurgeMutationResult = NonNullable<Awaited<ReturnType<typeof sitesPerformanceCachepurge>>>;
|
|
980
|
+
export declare type SitesPerformanceCachepurgeMutationBody = SitesPerformanceCachepurgeBody;
|
|
981
|
+
export declare type SitesPerformanceCachepurgeMutationError = AxiosError<unknown>;
|
|
982
|
+
export declare const useSitesPerformanceCachepurge: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
983
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<SitesPerformanceCachepurge200, any>, TError, {
|
|
984
|
+
siteId: number;
|
|
985
|
+
data: SitesPerformanceCachepurgeBody;
|
|
986
|
+
}, TContext> | undefined;
|
|
987
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
988
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<SitesPerformanceCachepurge200, any>, TError, {
|
|
989
|
+
siteId: number;
|
|
990
|
+
data: SitesPerformanceCachepurgeBody;
|
|
991
|
+
}, TContext>;
|
|
992
|
+
/**
|
|
993
|
+
* Returns the status of endurance_cache_level
|
|
994
|
+
* @summary Get status of endurance cache level
|
|
995
|
+
*/
|
|
996
|
+
export declare const sitesPerformanceEnduranceCacheLevelStatus: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesPerformanceEnduranceCacheLevelStatus200>>;
|
|
997
|
+
export declare const getSitesPerformanceEnduranceCacheLevelStatusQueryKey: (siteId: number) => string[];
|
|
998
|
+
export declare type SitesPerformanceEnduranceCacheLevelStatusQueryResult = NonNullable<Awaited<ReturnType<typeof sitesPerformanceEnduranceCacheLevelStatus>>>;
|
|
999
|
+
export declare type SitesPerformanceEnduranceCacheLevelStatusQueryError = AxiosError<unknown>;
|
|
1000
|
+
export declare const useSitesPerformanceEnduranceCacheLevelStatus: <TData = axios.AxiosResponse<SitesPerformanceEnduranceCacheLevelStatus200, any>, TError = axios.AxiosError<unknown, any>>(siteId: number, options?: {
|
|
1001
|
+
query?: UseQueryOptions<axios.AxiosResponse<SitesPerformanceEnduranceCacheLevelStatus200, any>, TError, TData, QueryKey> | undefined;
|
|
1002
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
1003
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1004
|
+
queryKey: QueryKey;
|
|
1005
|
+
};
|
|
1006
|
+
/**
|
|
1007
|
+
* Set endurance cache level to 0, 1,2 or 3
|
|
1008
|
+
* @summary Set endurance cache level
|
|
1009
|
+
*/
|
|
1010
|
+
export declare const sitesPerformanceEnduranceCacheLevel: (siteId: number, sitesPerformanceEnduranceCacheLevelBody: SitesPerformanceEnduranceCacheLevelBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesPerformanceEnduranceCacheLevel200>>;
|
|
1011
|
+
export declare type SitesPerformanceEnduranceCacheLevelMutationResult = NonNullable<Awaited<ReturnType<typeof sitesPerformanceEnduranceCacheLevel>>>;
|
|
1012
|
+
export declare type SitesPerformanceEnduranceCacheLevelMutationBody = SitesPerformanceEnduranceCacheLevelBody;
|
|
1013
|
+
export declare type SitesPerformanceEnduranceCacheLevelMutationError = AxiosError<unknown>;
|
|
1014
|
+
export declare const useSitesPerformanceEnduranceCacheLevel: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1015
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<SitesPerformanceEnduranceCacheLevel200, any>, TError, {
|
|
1016
|
+
siteId: number;
|
|
1017
|
+
data: SitesPerformanceEnduranceCacheLevelBody;
|
|
1018
|
+
}, TContext> | undefined;
|
|
1019
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
1020
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<SitesPerformanceEnduranceCacheLevel200, any>, TError, {
|
|
1021
|
+
siteId: number;
|
|
1022
|
+
data: SitesPerformanceEnduranceCacheLevelBody;
|
|
1023
|
+
}, TContext>;
|
|
1024
|
+
/**
|
|
1025
|
+
* Update the endurance page cache
|
|
1026
|
+
* @summary update the endurance cache page
|
|
1027
|
+
*/
|
|
1028
|
+
export declare const sitesPerformanceEndurancePageCache: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesPerformanceEndurancePageCache200>>;
|
|
1029
|
+
export declare type SitesPerformanceEndurancePageCacheMutationResult = NonNullable<Awaited<ReturnType<typeof sitesPerformanceEndurancePageCache>>>;
|
|
1030
|
+
export declare type SitesPerformanceEndurancePageCacheMutationError = AxiosError<unknown>;
|
|
1031
|
+
export declare const useSitesPerformanceEndurancePageCache: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1032
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<SitesPerformanceEndurancePageCache200, any>, TError, {
|
|
1033
|
+
siteId: number;
|
|
1034
|
+
}, TContext> | undefined;
|
|
1035
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
1036
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<SitesPerformanceEndurancePageCache200, any>, TError, {
|
|
1037
|
+
siteId: number;
|
|
1038
|
+
}, TContext>;
|
|
1039
|
+
/**
|
|
1040
|
+
* Returns a list of the site's plugins
|
|
1041
|
+
* @summary plugins
|
|
1042
|
+
*/
|
|
1043
|
+
export declare const sitePlugins: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitePlugins200>>;
|
|
1044
|
+
export declare const getSitePluginsQueryKey: (siteId: number) => string[];
|
|
1045
|
+
export declare type SitePluginsQueryResult = NonNullable<Awaited<ReturnType<typeof sitePlugins>>>;
|
|
1046
|
+
export declare type SitePluginsQueryError = AxiosError<unknown>;
|
|
1047
|
+
export declare const useSitePlugins: <TData = axios.AxiosResponse<SitePlugins200, any>, TError = axios.AxiosError<unknown, any>>(siteId: number, options?: {
|
|
1048
|
+
query?: UseQueryOptions<axios.AxiosResponse<SitePlugins200, any>, TError, TData, QueryKey> | undefined;
|
|
1049
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
1050
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1051
|
+
queryKey: QueryKey;
|
|
1052
|
+
};
|
|
1053
|
+
/**
|
|
1054
|
+
* Enables / disables plugin auto-updates
|
|
1055
|
+
* @deprecated
|
|
1056
|
+
* @summary plugins autoupdate
|
|
1057
|
+
*/
|
|
1058
|
+
export declare const sitePluginsAutoupdate: (siteId: string, sitePluginsAutoupdateBody: SitePluginsAutoupdateBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitePluginsAutoupdate200>>;
|
|
1059
|
+
export declare type SitePluginsAutoupdateMutationResult = NonNullable<Awaited<ReturnType<typeof sitePluginsAutoupdate>>>;
|
|
1060
|
+
export declare type SitePluginsAutoupdateMutationBody = SitePluginsAutoupdateBody;
|
|
1061
|
+
export declare type SitePluginsAutoupdateMutationError = AxiosError<unknown>;
|
|
1062
|
+
export declare const useSitePluginsAutoupdate: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1063
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<SitePluginsAutoupdate200, any>, TError, {
|
|
1064
|
+
siteId: string;
|
|
1065
|
+
data: SitePluginsAutoupdateBody;
|
|
1066
|
+
}, TContext> | undefined;
|
|
1067
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
1068
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<SitePluginsAutoupdate200, any>, TError, {
|
|
1069
|
+
siteId: string;
|
|
1070
|
+
data: SitePluginsAutoupdateBody;
|
|
1071
|
+
}, TContext>;
|
|
1072
|
+
/**
|
|
1073
|
+
* Enables / disables a plugin
|
|
1074
|
+
* @summary plugins toggle
|
|
1075
|
+
*/
|
|
1076
|
+
export declare const sitePluginsToggle: (siteId: string, sitePluginsToggleBody: SitePluginsToggleBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitePluginsToggle200>>;
|
|
1077
|
+
export declare type SitePluginsToggleMutationResult = NonNullable<Awaited<ReturnType<typeof sitePluginsToggle>>>;
|
|
1078
|
+
export declare type SitePluginsToggleMutationBody = SitePluginsToggleBody;
|
|
1079
|
+
export declare type SitePluginsToggleMutationError = AxiosError<unknown>;
|
|
1080
|
+
export declare const useSitePluginsToggle: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1081
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<SitePluginsToggle200, any>, TError, {
|
|
1082
|
+
siteId: string;
|
|
1083
|
+
data: SitePluginsToggleBody;
|
|
1084
|
+
}, TContext> | undefined;
|
|
1085
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
1086
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<SitePluginsToggle200, any>, TError, {
|
|
1087
|
+
siteId: string;
|
|
1088
|
+
data: SitePluginsToggleBody;
|
|
1089
|
+
}, TContext>;
|
|
1090
|
+
/**
|
|
1091
|
+
* Updates a plugin
|
|
1092
|
+
* @summary plugins update
|
|
1093
|
+
*/
|
|
1094
|
+
export declare const sitePluginsUpdate: (siteId: string, sitePluginsUpdateBody: SitePluginsUpdateBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitePluginsUpdate200>>;
|
|
1095
|
+
export declare type SitePluginsUpdateMutationResult = NonNullable<Awaited<ReturnType<typeof sitePluginsUpdate>>>;
|
|
1096
|
+
export declare type SitePluginsUpdateMutationBody = SitePluginsUpdateBody;
|
|
1097
|
+
export declare type SitePluginsUpdateMutationError = AxiosError<unknown>;
|
|
1098
|
+
export declare const useSitePluginsUpdate: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1099
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<SitePluginsUpdate200, any>, TError, {
|
|
1100
|
+
siteId: string;
|
|
1101
|
+
data: SitePluginsUpdateBody;
|
|
1102
|
+
}, TContext> | undefined;
|
|
1103
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
1104
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<SitePluginsUpdate200, any>, TError, {
|
|
1105
|
+
siteId: string;
|
|
1106
|
+
data: SitePluginsUpdateBody;
|
|
1107
|
+
}, TContext>;
|
|
1108
|
+
/**
|
|
1109
|
+
* Resets a site - deletes/reinstalls the site.
|
|
1110
|
+
* @summary reset site
|
|
1111
|
+
*/
|
|
1112
|
+
export declare const resetSite: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<ResetSite200>>;
|
|
1113
|
+
export declare type ResetSiteMutationResult = NonNullable<Awaited<ReturnType<typeof resetSite>>>;
|
|
1114
|
+
export declare type ResetSiteMutationError = AxiosError<unknown>;
|
|
1115
|
+
export declare const useResetSite: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1116
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<ResetSite200, any>, TError, {
|
|
1117
|
+
siteId: number;
|
|
1118
|
+
}, TContext> | undefined;
|
|
1119
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
1120
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<ResetSite200, any>, TError, {
|
|
1121
|
+
siteId: number;
|
|
1122
|
+
}, TContext>;
|
|
1123
|
+
/**
|
|
1124
|
+
* Performs a checksum of the site's core files to verify integrity.
|
|
1125
|
+
* @summary core files checksum
|
|
1126
|
+
*/
|
|
1127
|
+
export declare const sitesSecurityCheckCore: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSecurityCheckCore200>>;
|
|
1128
|
+
export declare const getSitesSecurityCheckCoreQueryKey: (siteId: number) => string[];
|
|
1129
|
+
export declare type SitesSecurityCheckCoreQueryResult = NonNullable<Awaited<ReturnType<typeof sitesSecurityCheckCore>>>;
|
|
1130
|
+
export declare type SitesSecurityCheckCoreQueryError = AxiosError<unknown>;
|
|
1131
|
+
export declare const useSitesSecurityCheckCore: <TData = axios.AxiosResponse<SitesSecurityCheckCore200, any>, TError = axios.AxiosError<unknown, any>>(siteId: number, options?: {
|
|
1132
|
+
query?: UseQueryOptions<axios.AxiosResponse<SitesSecurityCheckCore200, any>, TError, TData, QueryKey> | undefined;
|
|
1133
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
1134
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1135
|
+
queryKey: QueryKey;
|
|
1136
|
+
};
|
|
1137
|
+
/**
|
|
1138
|
+
* Resets the site's core files.
|
|
1139
|
+
* @summary core files reset
|
|
1140
|
+
*/
|
|
1141
|
+
export declare const sitesSecurityResetCoreFiles: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSecurityResetCoreFiles200>>;
|
|
1142
|
+
export declare type SitesSecurityResetCoreFilesMutationResult = NonNullable<Awaited<ReturnType<typeof sitesSecurityResetCoreFiles>>>;
|
|
1143
|
+
export declare type SitesSecurityResetCoreFilesMutationError = AxiosError<unknown>;
|
|
1144
|
+
export declare const useSitesSecurityResetCoreFiles: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1145
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<SitesSecurityResetCoreFiles200, any>, TError, {
|
|
1146
|
+
siteId: number;
|
|
1147
|
+
}, TContext> | undefined;
|
|
1148
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
1149
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<SitesSecurityResetCoreFiles200, any>, TError, {
|
|
1150
|
+
siteId: number;
|
|
1151
|
+
}, TContext>;
|
|
1152
|
+
/**
|
|
1153
|
+
* Returns the HTTPS redirection status.
|
|
1154
|
+
* @summary https redirection status
|
|
1155
|
+
*/
|
|
1156
|
+
export declare const sitesSecurityHttpsRedirectionStatus: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSecurityHttpsRedirectionStatus200>>;
|
|
1157
|
+
export declare const getSitesSecurityHttpsRedirectionStatusQueryKey: (siteId: number) => string[];
|
|
1158
|
+
export declare type SitesSecurityHttpsRedirectionStatusQueryResult = NonNullable<Awaited<ReturnType<typeof sitesSecurityHttpsRedirectionStatus>>>;
|
|
1159
|
+
export declare type SitesSecurityHttpsRedirectionStatusQueryError = AxiosError<unknown>;
|
|
1160
|
+
export declare const useSitesSecurityHttpsRedirectionStatus: <TData = axios.AxiosResponse<SitesSecurityHttpsRedirectionStatus200, any>, TError = axios.AxiosError<unknown, any>>(siteId: number, options?: {
|
|
1161
|
+
query?: UseQueryOptions<axios.AxiosResponse<SitesSecurityHttpsRedirectionStatus200, any>, TError, TData, QueryKey> | undefined;
|
|
1162
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
1163
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1164
|
+
queryKey: QueryKey;
|
|
1165
|
+
};
|
|
1166
|
+
/**
|
|
1167
|
+
* Enables / disables HTTPS redirection.
|
|
1168
|
+
* @summary https redirection toggle
|
|
1169
|
+
*/
|
|
1170
|
+
export declare const sitesSecurityHttpsEnableDisableSsl: (siteId: number, sitesSecurityHttpsEnableDisableSslBody: SitesSecurityHttpsEnableDisableSslBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSecurityHttpsEnableDisableSsl200>>;
|
|
1171
|
+
export declare type SitesSecurityHttpsEnableDisableSslMutationResult = NonNullable<Awaited<ReturnType<typeof sitesSecurityHttpsEnableDisableSsl>>>;
|
|
1172
|
+
export declare type SitesSecurityHttpsEnableDisableSslMutationBody = SitesSecurityHttpsEnableDisableSslBody;
|
|
1173
|
+
export declare type SitesSecurityHttpsEnableDisableSslMutationError = AxiosError<unknown>;
|
|
1174
|
+
export declare const useSitesSecurityHttpsEnableDisableSsl: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1175
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<SitesSecurityHttpsEnableDisableSsl200, any>, TError, {
|
|
1176
|
+
siteId: number;
|
|
1177
|
+
data: SitesSecurityHttpsEnableDisableSslBody;
|
|
1178
|
+
}, TContext> | undefined;
|
|
1179
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
1180
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<SitesSecurityHttpsEnableDisableSsl200, any>, TError, {
|
|
1181
|
+
siteId: number;
|
|
1182
|
+
data: SitesSecurityHttpsEnableDisableSslBody;
|
|
1183
|
+
}, TContext>;
|
|
1184
|
+
/**
|
|
1185
|
+
* Returns the site's sitelock information.
|
|
1186
|
+
* @summary sitelock info
|
|
1187
|
+
*/
|
|
1188
|
+
export declare const sitesSecuritySitelock: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSecuritySitelock200>>;
|
|
1189
|
+
export declare const getSitesSecuritySitelockQueryKey: (siteId: number) => string[];
|
|
1190
|
+
export declare type SitesSecuritySitelockQueryResult = NonNullable<Awaited<ReturnType<typeof sitesSecuritySitelock>>>;
|
|
1191
|
+
export declare type SitesSecuritySitelockQueryError = AxiosError<unknown>;
|
|
1192
|
+
export declare const useSitesSecuritySitelock: <TData = axios.AxiosResponse<SitesSecuritySitelock200, any>, TError = axios.AxiosError<unknown, any>>(siteId: number, options?: {
|
|
1193
|
+
query?: UseQueryOptions<axios.AxiosResponse<SitesSecuritySitelock200, any>, TError, TData, QueryKey> | undefined;
|
|
1194
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
1195
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1196
|
+
queryKey: QueryKey;
|
|
1197
|
+
};
|
|
1198
|
+
/**
|
|
1199
|
+
* Disables / enables cPanel to generate Let's Encrypt SSLs for the site.
|
|
1200
|
+
* @summary ssl lets encrypt toggle
|
|
1201
|
+
*/
|
|
1202
|
+
export declare const sitesSecuritySslAcme: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSecuritySslAcme200>>;
|
|
1203
|
+
export declare type SitesSecuritySslAcmeMutationResult = NonNullable<Awaited<ReturnType<typeof sitesSecuritySslAcme>>>;
|
|
1204
|
+
export declare type SitesSecuritySslAcmeMutationError = AxiosError<unknown>;
|
|
1205
|
+
export declare const useSitesSecuritySslAcme: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1206
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<SitesSecuritySslAcme200, any>, TError, {
|
|
1207
|
+
siteId: number;
|
|
1208
|
+
}, TContext> | undefined;
|
|
1209
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
1210
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<SitesSecuritySslAcme200, any>, TError, {
|
|
1211
|
+
siteId: number;
|
|
1212
|
+
}, TContext>;
|
|
1213
|
+
/**
|
|
1214
|
+
* Returns the site's SSL Status
|
|
1215
|
+
* @summary ssl status
|
|
1216
|
+
*/
|
|
1217
|
+
export declare const sitesSecuritySslStatus: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSecuritySslStatus200>>;
|
|
1218
|
+
export declare const getSitesSecuritySslStatusQueryKey: (siteId: number) => string[];
|
|
1219
|
+
export declare type SitesSecuritySslStatusQueryResult = NonNullable<Awaited<ReturnType<typeof sitesSecuritySslStatus>>>;
|
|
1220
|
+
export declare type SitesSecuritySslStatusQueryError = AxiosError<unknown>;
|
|
1221
|
+
export declare const useSitesSecuritySslStatus: <TData = axios.AxiosResponse<SitesSecuritySslStatus200, any>, TError = axios.AxiosError<unknown, any>>(siteId: number, options?: {
|
|
1222
|
+
query?: UseQueryOptions<axios.AxiosResponse<SitesSecuritySslStatus200, any>, TError, TData, QueryKey> | undefined;
|
|
1223
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
1224
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1225
|
+
queryKey: QueryKey;
|
|
1226
|
+
};
|
|
1227
|
+
/**
|
|
1228
|
+
* Returns status of plugin autoupdate for site
|
|
1229
|
+
* @deprecated
|
|
1230
|
+
* @summary plugins autoupdate status
|
|
1231
|
+
*/
|
|
1232
|
+
export declare const siteSettingsAutoupdatePlugins: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SiteSettingsAutoupdatePlugins200>>;
|
|
1233
|
+
export declare const getSiteSettingsAutoupdatePluginsQueryKey: (siteId: number) => string[];
|
|
1234
|
+
export declare type SiteSettingsAutoupdatePluginsQueryResult = NonNullable<Awaited<ReturnType<typeof siteSettingsAutoupdatePlugins>>>;
|
|
1235
|
+
export declare type SiteSettingsAutoupdatePluginsQueryError = AxiosError<unknown>;
|
|
1236
|
+
export declare const useSiteSettingsAutoupdatePlugins: <TData = axios.AxiosResponse<SiteSettingsAutoupdatePlugins200, any>, TError = axios.AxiosError<unknown, any>>(siteId: number, options?: {
|
|
1237
|
+
query?: UseQueryOptions<axios.AxiosResponse<SiteSettingsAutoupdatePlugins200, any>, TError, TData, QueryKey> | undefined;
|
|
1238
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
1239
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1240
|
+
queryKey: QueryKey;
|
|
1241
|
+
};
|
|
1242
|
+
/**
|
|
1243
|
+
* Returns the autoupdate status of the site's core, themes, and plugins
|
|
1244
|
+
* @deprecated
|
|
1245
|
+
* @summary settings autoupdates
|
|
1246
|
+
*/
|
|
1247
|
+
export declare const sitesSettingsAutoupdates: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSettingsAutoupdates200>>;
|
|
1248
|
+
export declare const getSitesSettingsAutoupdatesQueryKey: (siteId: number) => string[];
|
|
1249
|
+
export declare type SitesSettingsAutoupdatesQueryResult = NonNullable<Awaited<ReturnType<typeof sitesSettingsAutoupdates>>>;
|
|
1250
|
+
export declare type SitesSettingsAutoupdatesQueryError = AxiosError<unknown>;
|
|
1251
|
+
export declare const useSitesSettingsAutoupdates: <TData = axios.AxiosResponse<SitesSettingsAutoupdates200, any>, TError = axios.AxiosError<unknown, any>>(siteId: number, options?: {
|
|
1252
|
+
query?: UseQueryOptions<axios.AxiosResponse<SitesSettingsAutoupdates200, any>, TError, TData, QueryKey> | undefined;
|
|
1253
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
1254
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1255
|
+
queryKey: QueryKey;
|
|
1256
|
+
};
|
|
1257
|
+
/**
|
|
1258
|
+
* Enables WP Core autoupdates
|
|
1259
|
+
* @deprecated
|
|
1260
|
+
* @summary settings autoupdates core enable
|
|
1261
|
+
*/
|
|
1262
|
+
export declare const sitesSettingsAutoupdatesCore: (siteId: number, sitesSettingsAutoupdatesCoreBody: SitesSettingsAutoupdatesCoreBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSettingsAutoupdatesCore200>>;
|
|
1263
|
+
export declare type SitesSettingsAutoupdatesCoreMutationResult = NonNullable<Awaited<ReturnType<typeof sitesSettingsAutoupdatesCore>>>;
|
|
1264
|
+
export declare type SitesSettingsAutoupdatesCoreMutationBody = SitesSettingsAutoupdatesCoreBody;
|
|
1265
|
+
export declare type SitesSettingsAutoupdatesCoreMutationError = AxiosError<unknown>;
|
|
1266
|
+
export declare const useSitesSettingsAutoupdatesCore: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1267
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<SitesSettingsAutoupdatesCore200, any>, TError, {
|
|
1268
|
+
siteId: number;
|
|
1269
|
+
data: SitesSettingsAutoupdatesCoreBody;
|
|
1270
|
+
}, TContext> | undefined;
|
|
1271
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
1272
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<SitesSettingsAutoupdatesCore200, any>, TError, {
|
|
1273
|
+
siteId: number;
|
|
1274
|
+
data: SitesSettingsAutoupdatesCoreBody;
|
|
1275
|
+
}, TContext>;
|
|
1276
|
+
/**
|
|
1277
|
+
* Enables theme autoupdates
|
|
1278
|
+
* @deprecated
|
|
1279
|
+
* @summary settings autoupdate theme enable
|
|
1280
|
+
*/
|
|
1281
|
+
export declare const sitesSettingsAutoupdatesTheme: (siteId: number, sitesSettingsAutoupdatesThemeBody: SitesSettingsAutoupdatesThemeBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSettingsAutoupdatesTheme200>>;
|
|
1282
|
+
export declare type SitesSettingsAutoupdatesThemeMutationResult = NonNullable<Awaited<ReturnType<typeof sitesSettingsAutoupdatesTheme>>>;
|
|
1283
|
+
export declare type SitesSettingsAutoupdatesThemeMutationBody = SitesSettingsAutoupdatesThemeBody;
|
|
1284
|
+
export declare type SitesSettingsAutoupdatesThemeMutationError = AxiosError<unknown>;
|
|
1285
|
+
export declare const useSitesSettingsAutoupdatesTheme: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1286
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<SitesSettingsAutoupdatesTheme200, any>, TError, {
|
|
1287
|
+
siteId: number;
|
|
1288
|
+
data: SitesSettingsAutoupdatesThemeBody;
|
|
1289
|
+
}, TContext> | undefined;
|
|
1290
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
1291
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<SitesSettingsAutoupdatesTheme200, any>, TError, {
|
|
1292
|
+
siteId: number;
|
|
1293
|
+
data: SitesSettingsAutoupdatesThemeBody;
|
|
1294
|
+
}, TContext>;
|
|
1295
|
+
/**
|
|
1296
|
+
* Returns whether the coming soon setting is enable or disabled
|
|
1297
|
+
* @summary settings coming soon page status
|
|
1298
|
+
*/
|
|
1299
|
+
export declare const sitesSettingsComingSoon: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSettingsComingSoon200>>;
|
|
1300
|
+
export declare const getSitesSettingsComingSoonQueryKey: (siteId: number) => string[];
|
|
1301
|
+
export declare type SitesSettingsComingSoonQueryResult = NonNullable<Awaited<ReturnType<typeof sitesSettingsComingSoon>>>;
|
|
1302
|
+
export declare type SitesSettingsComingSoonQueryError = AxiosError<unknown>;
|
|
1303
|
+
export declare const useSitesSettingsComingSoon: <TData = axios.AxiosResponse<SitesSettingsComingSoon200, any>, TError = axios.AxiosError<unknown, any>>(siteId: number, options?: {
|
|
1304
|
+
query?: UseQueryOptions<axios.AxiosResponse<SitesSettingsComingSoon200, any>, TError, TData, QueryKey> | undefined;
|
|
1305
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
1306
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1307
|
+
queryKey: QueryKey;
|
|
1308
|
+
};
|
|
1309
|
+
/**
|
|
1310
|
+
* Enables/disables the coming soon (under-construction) page
|
|
1311
|
+
* @summary settings coming soon toggle
|
|
1312
|
+
*/
|
|
1313
|
+
export declare const sitesSettingsComingSoonToggle: (siteId: number, sitesSettingsComingSoonToggleBody: SitesSettingsComingSoonToggleBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSettingsComingSoonToggle200>>;
|
|
1314
|
+
export declare type SitesSettingsComingSoonToggleMutationResult = NonNullable<Awaited<ReturnType<typeof sitesSettingsComingSoonToggle>>>;
|
|
1315
|
+
export declare type SitesSettingsComingSoonToggleMutationBody = SitesSettingsComingSoonToggleBody;
|
|
1316
|
+
export declare type SitesSettingsComingSoonToggleMutationError = AxiosError<unknown>;
|
|
1317
|
+
export declare const useSitesSettingsComingSoonToggle: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1318
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<SitesSettingsComingSoonToggle200, any>, TError, {
|
|
1319
|
+
siteId: number;
|
|
1320
|
+
data: SitesSettingsComingSoonToggleBody;
|
|
1321
|
+
}, TContext> | undefined;
|
|
1322
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
1323
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<SitesSettingsComingSoonToggle200, any>, TError, {
|
|
1324
|
+
siteId: number;
|
|
1325
|
+
data: SitesSettingsComingSoonToggleBody;
|
|
1326
|
+
}, TContext>;
|
|
1327
|
+
/**
|
|
1328
|
+
* Returns the site's debug mode status
|
|
1329
|
+
* @summary settings debug status
|
|
1330
|
+
*/
|
|
1331
|
+
export declare const sitesSettingsDebug: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSettingsDebug200>>;
|
|
1332
|
+
export declare const getSitesSettingsDebugQueryKey: (siteId: number) => string[];
|
|
1333
|
+
export declare type SitesSettingsDebugQueryResult = NonNullable<Awaited<ReturnType<typeof sitesSettingsDebug>>>;
|
|
1334
|
+
export declare type SitesSettingsDebugQueryError = AxiosError<unknown>;
|
|
1335
|
+
export declare const useSitesSettingsDebug: <TData = axios.AxiosResponse<SitesSettingsDebug200, any>, TError = axios.AxiosError<unknown, any>>(siteId: number, options?: {
|
|
1336
|
+
query?: UseQueryOptions<axios.AxiosResponse<SitesSettingsDebug200, any>, TError, TData, QueryKey> | undefined;
|
|
1337
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
1338
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1339
|
+
queryKey: QueryKey;
|
|
1340
|
+
};
|
|
1341
|
+
/**
|
|
1342
|
+
* Enables or disables the output and display of site generated errors on the site
|
|
1343
|
+
* @summary settings debug toggle
|
|
1344
|
+
*/
|
|
1345
|
+
export declare const sitesSettingsDebugToggle: (siteId: number, sitesSettingsDebugToggleBody: SitesSettingsDebugToggleBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSettingsDebugToggle200>>;
|
|
1346
|
+
export declare type SitesSettingsDebugToggleMutationResult = NonNullable<Awaited<ReturnType<typeof sitesSettingsDebugToggle>>>;
|
|
1347
|
+
export declare type SitesSettingsDebugToggleMutationBody = SitesSettingsDebugToggleBody;
|
|
1348
|
+
export declare type SitesSettingsDebugToggleMutationError = AxiosError<unknown>;
|
|
1349
|
+
export declare const useSitesSettingsDebugToggle: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1350
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<SitesSettingsDebugToggle200, any>, TError, {
|
|
1351
|
+
siteId: number;
|
|
1352
|
+
data: SitesSettingsDebugToggleBody;
|
|
1353
|
+
}, TContext> | undefined;
|
|
1354
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
1355
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<SitesSettingsDebugToggle200, any>, TError, {
|
|
1356
|
+
siteId: number;
|
|
1357
|
+
data: SitesSettingsDebugToggleBody;
|
|
1358
|
+
}, TContext>;
|
|
1359
|
+
/**
|
|
1360
|
+
* Updates the site's PHP version
|
|
1361
|
+
* @summary settings php version update
|
|
1362
|
+
*/
|
|
1363
|
+
export declare const sitesSettingsPhpVersionUpdate: (siteId: number, sitesSettingsPhpVersionUpdateBody: SitesSettingsPhpVersionUpdateBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSettingsPhpVersionUpdate200>>;
|
|
1364
|
+
export declare type SitesSettingsPhpVersionUpdateMutationResult = NonNullable<Awaited<ReturnType<typeof sitesSettingsPhpVersionUpdate>>>;
|
|
1365
|
+
export declare type SitesSettingsPhpVersionUpdateMutationBody = SitesSettingsPhpVersionUpdateBody;
|
|
1366
|
+
export declare type SitesSettingsPhpVersionUpdateMutationError = AxiosError<unknown>;
|
|
1367
|
+
export declare const useSitesSettingsPhpVersionUpdate: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
1368
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<SitesSettingsPhpVersionUpdate200, any>, TError, {
|
|
1369
|
+
siteId: number;
|
|
1370
|
+
data: SitesSettingsPhpVersionUpdateBody;
|
|
1371
|
+
}, TContext> | undefined;
|
|
1372
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
1373
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<axios.AxiosResponse<SitesSettingsPhpVersionUpdate200, any>, TError, {
|
|
1374
|
+
siteId: number;
|
|
1375
|
+
data: SitesSettingsPhpVersionUpdateBody;
|
|
1376
|
+
}, TContext>;
|
|
1377
|
+
/**
|
|
1378
|
+
* Gets the list of PHP versions available/installed
|
|
1379
|
+
* @summary settings php versions list
|
|
1380
|
+
*/
|
|
1381
|
+
export declare const sitesSettingsPhpVersions: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSettingsPhpVersions200>>;
|
|
1382
|
+
export declare const getSitesSettingsPhpVersionsQueryKey: (siteId: number) => string[];
|
|
1383
|
+
export declare type SitesSettingsPhpVersionsQueryResult = NonNullable<Awaited<ReturnType<typeof sitesSettingsPhpVersions>>>;
|
|
1384
|
+
export declare type SitesSettingsPhpVersionsQueryError = AxiosError<unknown>;
|
|
1385
|
+
export declare const useSitesSettingsPhpVersions: <TData = axios.AxiosResponse<SitesSettingsPhpVersions200, any>, TError = axios.AxiosError<unknown, any>>(siteId: number, options?: {
|
|
1386
|
+
query?: UseQueryOptions<axios.AxiosResponse<SitesSettingsPhpVersions200, any>, TError, TData, QueryKey> | undefined;
|
|
1387
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
1388
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1389
|
+
queryKey: QueryKey;
|
|
1390
|
+
};
|
|
1391
|
+
/**
|
|
1392
|
+
* Returns an SSO token or login URL for the site (if supported).
|
|
1393
|
+
* @summary sso
|
|
1394
|
+
*/
|
|
1395
|
+
export declare const sitesSso: (siteId: number, params?: SitesSsoParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesSso200>>;
|
|
1396
|
+
export declare const getSitesSsoQueryKey: (siteId: number, params?: SitesSsoParams) => (string | SitesSsoParams)[];
|
|
1397
|
+
export declare type SitesSsoQueryResult = NonNullable<Awaited<ReturnType<typeof sitesSso>>>;
|
|
1398
|
+
export declare type SitesSsoQueryError = AxiosError<unknown>;
|
|
1399
|
+
export declare const useSitesSso: <TData = axios.AxiosResponse<SitesSso200, any>, TError = axios.AxiosError<unknown, any>>(siteId: number, params?: SitesSsoParams, options?: {
|
|
1400
|
+
query?: UseQueryOptions<axios.AxiosResponse<SitesSso200, any>, TError, TData, QueryKey> | undefined;
|
|
1401
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
1402
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1403
|
+
queryKey: QueryKey;
|
|
1404
|
+
};
|
|
1405
|
+
/**
|
|
1406
|
+
* Returns a list of the site's users
|
|
1407
|
+
* @summary users
|
|
1408
|
+
*/
|
|
1409
|
+
export declare const siteUsers: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SiteUsers200>>;
|
|
1410
|
+
export declare const getSiteUsersQueryKey: (siteId: number) => string[];
|
|
1411
|
+
export declare type SiteUsersQueryResult = NonNullable<Awaited<ReturnType<typeof siteUsers>>>;
|
|
1412
|
+
export declare type SiteUsersQueryError = AxiosError<unknown>;
|
|
1413
|
+
export declare const useSiteUsers: <TData = axios.AxiosResponse<SiteUsers200, any>, TError = axios.AxiosError<unknown, any>>(siteId: number, options?: {
|
|
1414
|
+
query?: UseQueryOptions<axios.AxiosResponse<SiteUsers200, any>, TError, TData, QueryKey> | undefined;
|
|
1415
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
1416
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1417
|
+
queryKey: QueryKey;
|
|
1418
|
+
};
|
|
1419
|
+
/**
|
|
1420
|
+
* Returns site version information.
|
|
1421
|
+
* @summary version
|
|
1422
|
+
*/
|
|
1423
|
+
export declare const sitesVersion: (siteId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<SitesVersion200>>;
|
|
1424
|
+
export declare const getSitesVersionQueryKey: (siteId: number) => string[];
|
|
1425
|
+
export declare type SitesVersionQueryResult = NonNullable<Awaited<ReturnType<typeof sitesVersion>>>;
|
|
1426
|
+
export declare type SitesVersionQueryError = AxiosError<unknown>;
|
|
1427
|
+
export declare const useSitesVersion: <TData = axios.AxiosResponse<SitesVersion200, any>, TError = axios.AxiosError<unknown, any>>(siteId: number, options?: {
|
|
1428
|
+
query?: UseQueryOptions<axios.AxiosResponse<SitesVersion200, any>, TError, TData, QueryKey> | undefined;
|
|
1429
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
1430
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1431
|
+
queryKey: QueryKey;
|
|
1432
|
+
};
|
|
1433
|
+
/**
|
|
1434
|
+
* Returns a list of sites.
|
|
1435
|
+
* @summary sites list v2
|
|
1436
|
+
*/
|
|
1437
|
+
export declare const hostingSitesV2: (hostingId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<HostingSitesV2200>>;
|
|
1438
|
+
export declare const getHostingSitesV2QueryKey: (hostingId: number) => string[];
|
|
1439
|
+
export declare type HostingSitesV2QueryResult = NonNullable<Awaited<ReturnType<typeof hostingSitesV2>>>;
|
|
1440
|
+
export declare type HostingSitesV2QueryError = AxiosError<unknown>;
|
|
1441
|
+
export declare const useHostingSitesV2: <TData = axios.AxiosResponse<HostingSitesV2200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
1442
|
+
query?: UseQueryOptions<axios.AxiosResponse<HostingSitesV2200, any>, TError, TData, QueryKey> | undefined;
|
|
1443
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
1444
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
1445
|
+
queryKey: QueryKey;
|
|
1446
|
+
};
|
|
1447
|
+
/**
|
|
1448
|
+
* List all SSH keys on a server or account. Finds all keys in user's .ssh/ diretory.
|
|
1449
|
+
* @summary ssh keys list
|
|
1450
|
+
*/
|
|
1451
|
+
export declare const sshKeyListV2: (hostingId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<SshKeyListV2200>>;
|
|
1452
|
+
export declare const getSshKeyListV2QueryKey: (hostingId: string) => string[];
|
|
1453
|
+
export declare type SshKeyListV2QueryResult = NonNullable<Awaited<ReturnType<typeof sshKeyListV2>>>;
|
|
1454
|
+
export declare type SshKeyListV2QueryError = AxiosError<unknown>;
|
|
1455
|
+
export declare const useSshKeyListV2: <TData = axios.AxiosResponse<SshKeyListV2200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: string, options?: {
|
|
1456
|
+
query?: UseQueryOptions<axios.AxiosResponse<SshKeyListV2200, any>, TError, TData, QueryKey> | undefined;
|
|
282
1457
|
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
283
1458
|
} | undefined) => UseQueryResult<TData, TError> & {
|
|
284
1459
|
queryKey: QueryKey;
|