@newfold/huapi-js 0.1.0-beta.122 → 0.1.0-beta.128
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/orval-generated/index.d.ts +275 -179
- package/src/orval-generated/index.js +330 -221
- package/src/orval-generated/index.msw.d.ts +99 -73
- package/src/orval-generated/index.msw.js +83 -59
- package/src/orval-generated/models/addonsInfo200.d.ts +1 -1
- package/src/orval-generated/models/addonsInfo200.js +1 -1
- package/src/orval-generated/models/addonsSitelockSso200.d.ts +1 -1
- package/src/orval-generated/models/addonsSitelockSso200.js +1 -1
- package/src/orval-generated/models/codeguardBackupCreate200.d.ts +1 -1
- package/src/orval-generated/models/codeguardBackupCreate200.js +1 -1
- package/src/orval-generated/models/codeguardBackupCreateBody.d.ts +1 -1
- package/src/orval-generated/models/codeguardBackupCreateBody.js +1 -1
- package/src/orval-generated/models/codeguardBackupDownload200.d.ts +1 -1
- package/src/orval-generated/models/codeguardBackupDownload200.js +1 -1
- package/src/orval-generated/models/codeguardBackupDownloadBody.d.ts +1 -1
- package/src/orval-generated/models/codeguardBackupDownloadBody.js +1 -1
- package/src/orval-generated/models/codeguardBackupRestore200.d.ts +1 -1
- package/src/orval-generated/models/codeguardBackupRestore200.js +1 -1
- package/src/orval-generated/models/codeguardBackupRestoreBody.d.ts +1 -1
- package/src/orval-generated/models/codeguardBackupRestoreBody.js +1 -1
- package/src/orval-generated/models/codeguardBackups200.d.ts +1 -1
- package/src/orval-generated/models/codeguardBackups200BackupsItem.d.ts +1 -1
- package/src/orval-generated/models/codeguardBackups200BackupsItemDatabaseBackupsItem.d.ts +1 -1
- package/src/orval-generated/models/codeguardBackups200BackupsItemDatabaseBackupsItem.js +1 -1
- package/src/orval-generated/models/codeguardBackupsParams.d.ts +1 -1
- package/src/orval-generated/models/codeguardBackupsParams.js +1 -1
- package/src/orval-generated/models/codeguardDatabaseBackupCreate200.d.ts +1 -1
- package/src/orval-generated/models/codeguardDatabaseBackupCreate200.js +1 -1
- package/src/orval-generated/models/codeguardDatabaseBackupCreateBody.d.ts +1 -1
- package/src/orval-generated/models/codeguardDatabaseBackupCreateBody.js +1 -1
- package/src/orval-generated/models/codeguardDatabaseBackupList200.d.ts +1 -1
- package/src/orval-generated/models/codeguardDatabaseBackupList200BackupsItem.d.ts +1 -1
- package/src/orval-generated/models/codeguardDatabaseBackupList200BackupsItem.js +1 -1
- package/src/orval-generated/models/codeguardDatabaseBackupListParams.d.ts +1 -1
- package/src/orval-generated/models/codeguardDatabaseBackupListParams.js +1 -1
- package/src/orval-generated/models/codeguardDatabaseBackupRestore200.d.ts +1 -1
- package/src/orval-generated/models/codeguardDatabaseBackupRestore200.js +1 -1
- package/src/orval-generated/models/codeguardDatabaseBackupRestoreBody.d.ts +1 -1
- package/src/orval-generated/models/codeguardDatabaseBackupRestoreBody.js +1 -1
- package/src/orval-generated/models/codeguardDatabaseList200.d.ts +1 -1
- package/src/orval-generated/models/codeguardDatabaseList200DatabasesItem.d.ts +1 -1
- package/src/orval-generated/models/codeguardDatabaseList200DatabasesItemDatabaseBackup.d.ts +1 -1
- package/src/orval-generated/models/codeguardDatabaseList200DatabasesItemDatabaseBackup.js +1 -1
- package/src/orval-generated/models/codeguardLogin200.d.ts +1 -1
- package/src/orval-generated/models/codeguardLogin200.js +1 -1
- package/src/orval-generated/models/codeguardPlanInfo200.d.ts +1 -1
- package/src/orval-generated/models/codeguardPlanInfo200SeatsItem.d.ts +1 -1
- package/src/orval-generated/models/codeguardPlanInfo200SeatsItem.js +1 -1
- package/src/orval-generated/models/codeguardWebsiteBackupCreate200.d.ts +1 -1
- package/src/orval-generated/models/codeguardWebsiteBackupCreate200.js +1 -1
- package/src/orval-generated/models/codeguardWebsiteBackupCreateBody.d.ts +1 -1
- package/src/orval-generated/models/codeguardWebsiteBackupCreateBody.js +1 -1
- package/src/orval-generated/models/codeguardWebsiteBackupList200.d.ts +1 -1
- package/src/orval-generated/models/codeguardWebsiteBackupList200BackupsItem.d.ts +1 -1
- package/src/orval-generated/models/codeguardWebsiteBackupList200BackupsItem.js +1 -1
- package/src/orval-generated/models/codeguardWebsiteBackupListParams.d.ts +1 -1
- package/src/orval-generated/models/codeguardWebsiteBackupListParams.js +1 -1
- package/src/orval-generated/models/codeguardWebsiteBackupRestore200.d.ts +1 -1
- package/src/orval-generated/models/codeguardWebsiteBackupRestore200.js +1 -1
- package/src/orval-generated/models/codeguardWebsiteBackupRestore400.d.ts +1 -1
- package/src/orval-generated/models/codeguardWebsiteBackupRestore400Error.d.ts +1 -1
- package/src/orval-generated/models/codeguardWebsiteBackupRestore400Error.js +1 -1
- package/src/orval-generated/models/codeguardWebsiteBackupRestoreBody.d.ts +1 -1
- package/src/orval-generated/models/codeguardWebsiteBackupRestoreBody.js +1 -1
- package/src/orval-generated/models/codeguardWebsiteList200.d.ts +1 -1
- package/src/orval-generated/models/codeguardWebsiteList200WebsiteListItem.d.ts +1 -1
- package/src/orval-generated/models/codeguardWebsiteList200WebsiteListItemWebsite.d.ts +1 -1
- package/src/orval-generated/models/codeguardWebsiteList200WebsiteListItemWebsite.js +1 -1
- package/src/orval-generated/models/hostingAddons200.d.ts +1 -1
- package/src/orval-generated/models/hostingAddons200RowsItem.d.ts +1 -1
- package/src/orval-generated/models/hostingAddons200RowsItem.js +1 -1
- package/src/orval-generated/models/hostingAddonsParams.d.ts +1 -1
- package/src/orval-generated/models/hostingAddonsParams.js +1 -1
- package/src/orval-generated/models/hostingFtpList200.d.ts +1 -1
- package/src/orval-generated/models/hostingFtpList200FtpAccountItem.d.ts +1 -1
- package/src/orval-generated/models/hostingFtpList200FtpAccountItem.js +1 -1
- package/src/orval-generated/models/hostingInfo200.d.ts +1 -1
- package/src/orval-generated/models/hostingInfo200.js +1 -1
- package/src/orval-generated/models/hostingInfoDiskUsage200.d.ts +11 -0
- package/src/orval-generated/models/hostingInfoDiskUsage200.js +9 -0
- package/src/orval-generated/models/hostingSites200.d.ts +1 -1
- package/src/orval-generated/models/hostingSites200RowsItem.d.ts +1 -1
- package/src/orval-generated/models/hostingSites200RowsItem.js +1 -1
- package/src/orval-generated/models/hostingSshInfo200.d.ts +1 -1
- package/src/orval-generated/models/hostingSshInfo200.js +1 -1
- package/src/orval-generated/models/index.d.ts +61 -50
- package/src/orval-generated/models/index.js +61 -50
- package/src/orval-generated/models/sitePlugins200.d.ts +1 -1
- package/src/orval-generated/models/sitePlugins200PluginsItem.d.ts +1 -1
- package/src/orval-generated/models/sitePlugins200PluginsItem.js +1 -1
- package/src/orval-generated/models/sitePluginsAutoupdate200.d.ts +1 -1
- package/src/orval-generated/models/sitePluginsAutoupdate200.js +1 -1
- package/src/orval-generated/models/sitePluginsAutoupdateBody.d.ts +1 -1
- package/src/orval-generated/models/sitePluginsAutoupdateBody.js +1 -1
- package/src/orval-generated/models/sitePluginsToggle200.d.ts +1 -1
- package/src/orval-generated/models/sitePluginsToggle200.js +1 -1
- package/src/orval-generated/models/sitePluginsToggleBody.d.ts +1 -1
- package/src/orval-generated/models/sitePluginsToggleBody.js +1 -1
- package/src/orval-generated/models/sitePluginsUpdate200.d.ts +1 -1
- package/src/orval-generated/models/sitePluginsUpdate200.js +1 -1
- package/src/orval-generated/models/sitePluginsUpdateBody.d.ts +1 -1
- package/src/orval-generated/models/sitePluginsUpdateBody.js +1 -1
- package/src/orval-generated/models/siteUsers200.d.ts +1 -1
- package/src/orval-generated/models/siteUsers200UsersItem.d.ts +1 -1
- package/src/orval-generated/models/siteUsers200UsersItem.js +1 -1
- package/src/orval-generated/models/sitesDns200.d.ts +1 -1
- package/src/orval-generated/models/sitesDns200RecordsItem.d.ts +1 -1
- package/src/orval-generated/models/sitesDns200RecordsItem.js +1 -1
- package/src/orval-generated/models/sitesDnsParams.d.ts +1 -1
- package/src/orval-generated/models/sitesDnsParams.js +1 -1
- package/src/orval-generated/models/sitesInfo200.d.ts +1 -1
- package/src/orval-generated/models/sitesInfo200.js +1 -1
- package/src/orval-generated/models/sitesSecurityCheckCore200.d.ts +1 -1
- package/src/orval-generated/models/sitesSecurityCheckCore200.js +1 -1
- package/src/orval-generated/models/sitesSecurityHttpsEnableDisableSsl200.d.ts +1 -1
- package/src/orval-generated/models/sitesSecurityHttpsEnableDisableSsl200.js +1 -1
- package/src/orval-generated/models/sitesSecurityHttpsEnableDisableSslBody.d.ts +1 -1
- package/src/orval-generated/models/sitesSecurityHttpsEnableDisableSslBody.js +1 -1
- package/src/orval-generated/models/sitesSecurityHttpsRedirectionStatus200.d.ts +1 -1
- package/src/orval-generated/models/sitesSecurityHttpsRedirectionStatus200.js +1 -1
- package/src/orval-generated/models/sitesSecurityResetCoreFiles200.d.ts +1 -1
- package/src/orval-generated/models/sitesSecurityResetCoreFiles200.js +1 -1
- package/src/orval-generated/models/sitesSecuritySitelock200.d.ts +1 -1
- package/src/orval-generated/models/sitesSecuritySitelock200.js +1 -1
- package/src/orval-generated/models/sitesSecuritySslAcme200.d.ts +1 -1
- package/src/orval-generated/models/sitesSecuritySslAcme200.js +1 -1
- package/src/orval-generated/models/sitesSecuritySslStatus200.d.ts +1 -1
- package/src/orval-generated/models/sitesSecuritySslStatus200.js +1 -1
- 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/sitesSettingsDebug200.d.ts +10 -0
- package/src/orval-generated/models/sitesSettingsDebug200.js +9 -0
- package/src/orval-generated/models/sitesSettingsDebugBody.d.ts +10 -0
- package/src/orval-generated/models/sitesSettingsDebugBody.js +9 -0
- package/src/orval-generated/models/sitesSso200.d.ts +1 -1
- package/src/orval-generated/models/sitesSso200.js +1 -1
- 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/sso200.d.ts +1 -1
- package/src/orval-generated/models/sso200.js +1 -1
- package/src/orval-generated/models/ssoApp.d.ts +1 -1
- package/src/orval-generated/models/ssoApp.js +1 -1
- package/src/orval-generated/models/ssoParams.d.ts +1 -1
package/package.json
CHANGED
|
@@ -3,56 +3,14 @@
|
|
|
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: 0.1.0-beta.
|
|
6
|
+
* OpenAPI spec version: 0.1.0-beta.128
|
|
7
7
|
*/
|
|
8
8
|
import * as axios from 'axios';
|
|
9
9
|
import type { AxiosResponse, AxiosError } from 'axios';
|
|
10
10
|
import { UseQueryOptions, UseMutationOptions, UseQueryResult, QueryKey } from 'react-query';
|
|
11
|
-
import type {
|
|
11
|
+
import type { CodeguardBackups200, CodeguardBackupsParams, CodeguardBackupCreate200, CodeguardBackupCreateBody, CodeguardBackupDownload200, CodeguardBackupDownloadBody, CodeguardBackupRestore200, CodeguardBackupRestoreBody, CodeguardDatabaseList200, CodeguardDatabaseBackupList200, CodeguardDatabaseBackupListParams, CodeguardDatabaseBackupCreate200, CodeguardDatabaseBackupCreateBody, CodeguardDatabaseBackupRestore200, CodeguardDatabaseBackupRestoreBody, CodeguardLogin200, CodeguardPlanInfo200, CodeguardWebsiteList200, CodeguardWebsiteBackupList200, CodeguardWebsiteBackupListParams, CodeguardWebsiteBackupCreate200, CodeguardWebsiteBackupCreateBody, CodeguardWebsiteBackupRestore200, CodeguardWebsiteBackupRestore400, CodeguardWebsiteBackupRestoreBody, AddonsSitelockSso200, AddonsInfo200, HostingAddons200, HostingAddonsParams, HostingFtpList200, HostingInfo200, HostingInfoDiskUsage200, HostingSites200, HostingSshInfo200, SshKeyList200, Sso200, SsoParams, SitesDns200, SitesDnsParams, SitesInfo200, SitePlugins200, SitePluginsAutoupdate200, SitePluginsAutoupdateBody, SitePluginsToggle200, SitePluginsToggleBody, SitePluginsUpdate200, SitePluginsUpdateBody, SitesSecurityCheckCore200, SitesSecurityResetCoreFiles200, SitesSecurityHttpsRedirectionStatus200, SitesSecurityHttpsEnableDisableSsl200, SitesSecurityHttpsEnableDisableSslBody, SitesSecuritySitelock200, SitesSecuritySslAcme200, SitesSecuritySslStatus200, SitesSettingsAutoupdates200, SitesSettingsAutoupdatesCore200, SitesSettingsAutoupdatesCoreBody, SitesSettingsAutoupdatesTheme200, SitesSettingsAutoupdatesThemeBody, SitesSettingsDebug200, SitesSettingsDebugBody, SitesSso200, SiteUsers200 } 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
|
-
/**
|
|
15
|
-
* Returns addon information
|
|
16
|
-
* @summary info
|
|
17
|
-
*/
|
|
18
|
-
export declare const addonsInfo: (addonId: string, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<AddonsInfo200>>;
|
|
19
|
-
export declare const getAddonsInfoQueryKey: (addonId: string) => string[];
|
|
20
|
-
export declare type AddonsInfoQueryResult = NonNullable<Awaited<ReturnType<typeof addonsInfo>>>;
|
|
21
|
-
export declare type AddonsInfoQueryError = AxiosError<unknown>;
|
|
22
|
-
export declare const useAddonsInfo: <TData = axios.AxiosResponse<AddonsInfo200, any>, TError = axios.AxiosError<unknown, any>>(addonId: string, options?: {
|
|
23
|
-
query?: UseQueryOptions<axios.AxiosResponse<AddonsInfo200, any>, TError, TData, QueryKey> | undefined;
|
|
24
|
-
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
25
|
-
} | undefined) => UseQueryResult<TData, TError> & {
|
|
26
|
-
queryKey: QueryKey;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* Returns the subscribed plan and usage info
|
|
30
|
-
* @summary plan info
|
|
31
|
-
*/
|
|
32
|
-
export declare const codeguardPlanInfo: (addonId: number, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<CodeguardPlanInfo200>>;
|
|
33
|
-
export declare const getCodeguardPlanInfoQueryKey: (addonId: number) => string[];
|
|
34
|
-
export declare type CodeguardPlanInfoQueryResult = NonNullable<Awaited<ReturnType<typeof codeguardPlanInfo>>>;
|
|
35
|
-
export declare type CodeguardPlanInfoQueryError = AxiosError<unknown>;
|
|
36
|
-
export declare const useCodeguardPlanInfo: <TData = axios.AxiosResponse<CodeguardPlanInfo200, any>, TError = axios.AxiosError<unknown, any>>(addonId: number, options?: {
|
|
37
|
-
query?: UseQueryOptions<axios.AxiosResponse<CodeguardPlanInfo200, any>, TError, TData, QueryKey> | undefined;
|
|
38
|
-
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
39
|
-
} | undefined) => UseQueryResult<TData, TError> & {
|
|
40
|
-
queryKey: QueryKey;
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* Returns all website records CodeGuard maintains for this user's account.
|
|
44
|
-
* @summary website list
|
|
45
|
-
*/
|
|
46
|
-
export declare const codeguardWebsiteList: (addonId: number, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<CodeguardWebsiteList200>>;
|
|
47
|
-
export declare const getCodeguardWebsiteListQueryKey: (addonId: number) => string[];
|
|
48
|
-
export declare type CodeguardWebsiteListQueryResult = NonNullable<Awaited<ReturnType<typeof codeguardWebsiteList>>>;
|
|
49
|
-
export declare type CodeguardWebsiteListQueryError = AxiosError<unknown>;
|
|
50
|
-
export declare const useCodeguardWebsiteList: <TData = axios.AxiosResponse<CodeguardWebsiteList200, any>, TError = axios.AxiosError<unknown, any>>(addonId: number, options?: {
|
|
51
|
-
query?: UseQueryOptions<axios.AxiosResponse<CodeguardWebsiteList200, any>, TError, TData, QueryKey> | undefined;
|
|
52
|
-
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
53
|
-
} | undefined) => UseQueryResult<TData, TError> & {
|
|
54
|
-
queryKey: QueryKey;
|
|
55
|
-
};
|
|
56
14
|
/**
|
|
57
15
|
* Returns a combined backup list with website commit ids and corresponding database commits
|
|
58
16
|
* @summary backup list
|
|
@@ -86,15 +44,51 @@ export declare const useCodeguardBackupCreate: <TError = axios.AxiosError<unknow
|
|
|
86
44
|
data: CodeguardBackupCreateBody;
|
|
87
45
|
}, TContext>;
|
|
88
46
|
/**
|
|
89
|
-
*
|
|
90
|
-
* @summary
|
|
47
|
+
* Queues the backup download.
|
|
48
|
+
* @summary backup download
|
|
91
49
|
*/
|
|
92
|
-
export declare const
|
|
93
|
-
export declare
|
|
94
|
-
export declare type
|
|
95
|
-
export declare type
|
|
96
|
-
export declare const
|
|
97
|
-
|
|
50
|
+
export declare const codeguardBackupDownload: (addonId: number, codeguardBackupDownloadBody: CodeguardBackupDownloadBody, options?: axios.AxiosRequestConfig<any> | undefined) => 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("react-query").UseMutationResult<axios.AxiosResponse<CodeguardBackupDownload200, any>, TError, {
|
|
61
|
+
addonId: number;
|
|
62
|
+
data: CodeguardBackupDownloadBody;
|
|
63
|
+
}, TContext>;
|
|
64
|
+
/**
|
|
65
|
+
* Restores a website backup
|
|
66
|
+
* @summary website backup restore
|
|
67
|
+
*/
|
|
68
|
+
export declare const codeguardBackupRestore: (addonId: number, codeguardBackupRestoreBody: CodeguardBackupRestoreBody, options?: axios.AxiosRequestConfig<any> | undefined) => 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("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?: axios.AxiosRequestConfig<any> | undefined) => 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;
|
|
98
92
|
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
99
93
|
} | undefined) => UseQueryResult<TData, TError> & {
|
|
100
94
|
queryKey: QueryKey;
|
|
@@ -131,6 +125,66 @@ export declare const useCodeguardDatabaseBackupCreate: <TError = axios.AxiosErro
|
|
|
131
125
|
addonId: number;
|
|
132
126
|
data: CodeguardDatabaseBackupCreateBody;
|
|
133
127
|
}, TContext>;
|
|
128
|
+
/**
|
|
129
|
+
* Restores a database backup
|
|
130
|
+
* @summary database backup restore
|
|
131
|
+
*/
|
|
132
|
+
export declare const codeguardDatabaseBackupRestore: (addonId: number, codeguardDatabaseBackupRestoreBody: CodeguardDatabaseBackupRestoreBody, options?: axios.AxiosRequestConfig<any> | undefined) => 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, {
|
|
138
|
+
addonId: number;
|
|
139
|
+
data: CodeguardDatabaseBackupRestoreBody;
|
|
140
|
+
}, TContext> | undefined;
|
|
141
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
142
|
+
} | undefined) => import("react-query").UseMutationResult<axios.AxiosResponse<CodeguardDatabaseBackupRestore200, any>, TError, {
|
|
143
|
+
addonId: number;
|
|
144
|
+
data: CodeguardDatabaseBackupRestoreBody;
|
|
145
|
+
}, TContext>;
|
|
146
|
+
/**
|
|
147
|
+
* Returns an oauth login URL that can be used to access CodeGuard dashboard for a user.
|
|
148
|
+
* @summary login
|
|
149
|
+
*/
|
|
150
|
+
export declare const codeguardLogin: (addonId: number, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<CodeguardLogin200>>;
|
|
151
|
+
export declare const getCodeguardLoginQueryKey: (addonId: number) => string[];
|
|
152
|
+
export declare type CodeguardLoginQueryResult = NonNullable<Awaited<ReturnType<typeof codeguardLogin>>>;
|
|
153
|
+
export declare type CodeguardLoginQueryError = AxiosError<unknown>;
|
|
154
|
+
export declare const useCodeguardLogin: <TData = axios.AxiosResponse<CodeguardLogin200, any>, TError = axios.AxiosError<unknown, any>>(addonId: number, options?: {
|
|
155
|
+
query?: UseQueryOptions<axios.AxiosResponse<CodeguardLogin200, 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
|
|
163
|
+
*/
|
|
164
|
+
export declare const codeguardPlanInfo: (addonId: number, options?: axios.AxiosRequestConfig<any> | undefined) => 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;
|
|
170
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
171
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
172
|
+
queryKey: QueryKey;
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
* Returns all website records CodeGuard maintains for this user's account.
|
|
176
|
+
* @summary website list
|
|
177
|
+
*/
|
|
178
|
+
export declare const codeguardWebsiteList: (addonId: number, options?: axios.AxiosRequestConfig<any> | undefined) => 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;
|
|
184
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
185
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
186
|
+
queryKey: QueryKey;
|
|
187
|
+
};
|
|
134
188
|
/**
|
|
135
189
|
* Returns all website backup records CodeGuard maintains for this user's account.
|
|
136
190
|
* @summary website backup list
|
|
@@ -163,56 +217,6 @@ export declare const useCodeguardWebsiteBackupCreate: <TError = axios.AxiosError
|
|
|
163
217
|
addonId: number;
|
|
164
218
|
data: CodeguardWebsiteBackupCreateBody;
|
|
165
219
|
}, TContext>;
|
|
166
|
-
/**
|
|
167
|
-
* Queues the backup download.
|
|
168
|
-
* @summary backup download
|
|
169
|
-
*/
|
|
170
|
-
export declare const codeguardBackupDownload: (addonId: number, codeguardBackupDownloadBody: CodeguardBackupDownloadBody, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<CodeguardBackupDownload200>>;
|
|
171
|
-
export declare type CodeguardBackupDownloadMutationResult = NonNullable<Awaited<ReturnType<typeof codeguardBackupDownload>>>;
|
|
172
|
-
export declare type CodeguardBackupDownloadMutationBody = CodeguardBackupDownloadBody;
|
|
173
|
-
export declare type CodeguardBackupDownloadMutationError = AxiosError<unknown>;
|
|
174
|
-
export declare const useCodeguardBackupDownload: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
175
|
-
mutation?: UseMutationOptions<axios.AxiosResponse<CodeguardBackupDownload200, any>, TError, {
|
|
176
|
-
addonId: number;
|
|
177
|
-
data: CodeguardBackupDownloadBody;
|
|
178
|
-
}, TContext> | undefined;
|
|
179
|
-
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
180
|
-
} | undefined) => import("react-query").UseMutationResult<axios.AxiosResponse<CodeguardBackupDownload200, any>, TError, {
|
|
181
|
-
addonId: number;
|
|
182
|
-
data: CodeguardBackupDownloadBody;
|
|
183
|
-
}, TContext>;
|
|
184
|
-
/**
|
|
185
|
-
* Returns all database records CodeGuard maintains for this user's account.
|
|
186
|
-
* @summary database list
|
|
187
|
-
*/
|
|
188
|
-
export declare const codeguardDatabaseList: (addonId: number, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<CodeguardDatabaseList200>>;
|
|
189
|
-
export declare const getCodeguardDatabaseListQueryKey: (addonId: number) => string[];
|
|
190
|
-
export declare type CodeguardDatabaseListQueryResult = NonNullable<Awaited<ReturnType<typeof codeguardDatabaseList>>>;
|
|
191
|
-
export declare type CodeguardDatabaseListQueryError = AxiosError<unknown>;
|
|
192
|
-
export declare const useCodeguardDatabaseList: <TData = axios.AxiosResponse<CodeguardDatabaseList200, any>, TError = axios.AxiosError<unknown, any>>(addonId: number, options?: {
|
|
193
|
-
query?: UseQueryOptions<axios.AxiosResponse<CodeguardDatabaseList200, any>, TError, TData, QueryKey> | undefined;
|
|
194
|
-
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
195
|
-
} | undefined) => UseQueryResult<TData, TError> & {
|
|
196
|
-
queryKey: QueryKey;
|
|
197
|
-
};
|
|
198
|
-
/**
|
|
199
|
-
* Restores a website backup
|
|
200
|
-
* @summary website backup restore
|
|
201
|
-
*/
|
|
202
|
-
export declare const codeguardBackupRestore: (addonId: number, codeguardBackupRestoreBody: CodeguardBackupRestoreBody, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<CodeguardBackupRestore200>>;
|
|
203
|
-
export declare type CodeguardBackupRestoreMutationResult = NonNullable<Awaited<ReturnType<typeof codeguardBackupRestore>>>;
|
|
204
|
-
export declare type CodeguardBackupRestoreMutationBody = CodeguardBackupRestoreBody;
|
|
205
|
-
export declare type CodeguardBackupRestoreMutationError = AxiosError<unknown>;
|
|
206
|
-
export declare const useCodeguardBackupRestore: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
207
|
-
mutation?: UseMutationOptions<axios.AxiosResponse<CodeguardBackupRestore200, any>, TError, {
|
|
208
|
-
addonId: number;
|
|
209
|
-
data: CodeguardBackupRestoreBody;
|
|
210
|
-
}, TContext> | undefined;
|
|
211
|
-
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
212
|
-
} | undefined) => import("react-query").UseMutationResult<axios.AxiosResponse<CodeguardBackupRestore200, any>, TError, {
|
|
213
|
-
addonId: number;
|
|
214
|
-
data: CodeguardBackupRestoreBody;
|
|
215
|
-
}, TContext>;
|
|
216
220
|
/**
|
|
217
221
|
* Restores a website backup
|
|
218
222
|
* @summary website backup restore
|
|
@@ -231,24 +235,6 @@ export declare const useCodeguardWebsiteBackupRestore: <TError = axios.AxiosErro
|
|
|
231
235
|
addonId: number;
|
|
232
236
|
data: CodeguardWebsiteBackupRestoreBody;
|
|
233
237
|
}, TContext>;
|
|
234
|
-
/**
|
|
235
|
-
* Restores a database backup
|
|
236
|
-
* @summary database backup restore
|
|
237
|
-
*/
|
|
238
|
-
export declare const codeguardDatabaseBackupRestore: (addonId: number, codeguardDatabaseBackupRestoreBody: CodeguardDatabaseBackupRestoreBody, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<CodeguardDatabaseBackupRestore200>>;
|
|
239
|
-
export declare type CodeguardDatabaseBackupRestoreMutationResult = NonNullable<Awaited<ReturnType<typeof codeguardDatabaseBackupRestore>>>;
|
|
240
|
-
export declare type CodeguardDatabaseBackupRestoreMutationBody = CodeguardDatabaseBackupRestoreBody;
|
|
241
|
-
export declare type CodeguardDatabaseBackupRestoreMutationError = AxiosError<unknown>;
|
|
242
|
-
export declare const useCodeguardDatabaseBackupRestore: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
243
|
-
mutation?: UseMutationOptions<axios.AxiosResponse<CodeguardDatabaseBackupRestore200, any>, TError, {
|
|
244
|
-
addonId: number;
|
|
245
|
-
data: CodeguardDatabaseBackupRestoreBody;
|
|
246
|
-
}, TContext> | undefined;
|
|
247
|
-
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
248
|
-
} | undefined) => import("react-query").UseMutationResult<axios.AxiosResponse<CodeguardDatabaseBackupRestore200, any>, TError, {
|
|
249
|
-
addonId: number;
|
|
250
|
-
data: CodeguardDatabaseBackupRestoreBody;
|
|
251
|
-
}, TContext>;
|
|
252
238
|
/**
|
|
253
239
|
* Returns an oauth login URL that can be used to access Sitelock dashboard for a user.
|
|
254
240
|
* @summary sso
|
|
@@ -264,15 +250,15 @@ export declare const useAddonsSitelockSso: <TData = axios.AxiosResponse<AddonsSi
|
|
|
264
250
|
queryKey: QueryKey;
|
|
265
251
|
};
|
|
266
252
|
/**
|
|
267
|
-
* Returns
|
|
253
|
+
* Returns addon information
|
|
268
254
|
* @summary info
|
|
269
255
|
*/
|
|
270
|
-
export declare const
|
|
271
|
-
export declare const
|
|
272
|
-
export declare type
|
|
273
|
-
export declare type
|
|
274
|
-
export declare const
|
|
275
|
-
query?: UseQueryOptions<axios.AxiosResponse<
|
|
256
|
+
export declare const addonsInfo: (addonId: string, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<AddonsInfo200>>;
|
|
257
|
+
export declare const getAddonsInfoQueryKey: (addonId: string) => string[];
|
|
258
|
+
export declare type AddonsInfoQueryResult = NonNullable<Awaited<ReturnType<typeof addonsInfo>>>;
|
|
259
|
+
export declare type AddonsInfoQueryError = AxiosError<unknown>;
|
|
260
|
+
export declare const useAddonsInfo: <TData = axios.AxiosResponse<AddonsInfo200, any>, TError = axios.AxiosError<unknown, any>>(addonId: string, options?: {
|
|
261
|
+
query?: UseQueryOptions<axios.AxiosResponse<AddonsInfo200, any>, TError, TData, QueryKey> | undefined;
|
|
276
262
|
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
277
263
|
} | undefined) => UseQueryResult<TData, TError> & {
|
|
278
264
|
queryKey: QueryKey;
|
|
@@ -291,20 +277,6 @@ export declare const useHostingAddons: <TData = axios.AxiosResponse<HostingAddon
|
|
|
291
277
|
} | undefined) => UseQueryResult<TData, TError> & {
|
|
292
278
|
queryKey: QueryKey;
|
|
293
279
|
};
|
|
294
|
-
/**
|
|
295
|
-
* Returns the hosting account's SSH information
|
|
296
|
-
* @summary ssh info
|
|
297
|
-
*/
|
|
298
|
-
export declare const hostingSshInfo: (hostingId: number, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<HostingSshInfo200>>;
|
|
299
|
-
export declare const getHostingSshInfoQueryKey: (hostingId: number) => string[];
|
|
300
|
-
export declare type HostingSshInfoQueryResult = NonNullable<Awaited<ReturnType<typeof hostingSshInfo>>>;
|
|
301
|
-
export declare type HostingSshInfoQueryError = AxiosError<unknown>;
|
|
302
|
-
export declare const useHostingSshInfo: <TData = axios.AxiosResponse<HostingSshInfo200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
303
|
-
query?: UseQueryOptions<axios.AxiosResponse<HostingSshInfo200, any>, TError, TData, QueryKey> | undefined;
|
|
304
|
-
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
305
|
-
} | undefined) => UseQueryResult<TData, TError> & {
|
|
306
|
-
queryKey: QueryKey;
|
|
307
|
-
};
|
|
308
280
|
/**
|
|
309
281
|
* Returns a list of FTP accounts.
|
|
310
282
|
* @summary ftp list
|
|
@@ -320,43 +292,29 @@ export declare const useHostingFtpList: <TData = axios.AxiosResponse<HostingFtpL
|
|
|
320
292
|
queryKey: QueryKey;
|
|
321
293
|
};
|
|
322
294
|
/**
|
|
323
|
-
* Returns
|
|
324
|
-
* @summary
|
|
325
|
-
*/
|
|
326
|
-
export declare const sso: (hostingId: number, params?: SsoParams | undefined, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<Sso200>>;
|
|
327
|
-
export declare const getSsoQueryKey: (hostingId: number, params?: SsoParams | undefined) => (string | SsoParams)[];
|
|
328
|
-
export declare type SsoQueryResult = NonNullable<Awaited<ReturnType<typeof sso>>>;
|
|
329
|
-
export declare type SsoQueryError = AxiosError<unknown>;
|
|
330
|
-
export declare const useSso: <TData = axios.AxiosResponse<Sso200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: number, params?: SsoParams | undefined, options?: {
|
|
331
|
-
query?: UseQueryOptions<axios.AxiosResponse<Sso200, any>, TError, TData, QueryKey> | undefined;
|
|
332
|
-
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
333
|
-
} | undefined) => UseQueryResult<TData, TError> & {
|
|
334
|
-
queryKey: QueryKey;
|
|
335
|
-
};
|
|
336
|
-
/**
|
|
337
|
-
* Returns an SSO token or login URL for tthe site (if supported).
|
|
338
|
-
* @summary sso
|
|
295
|
+
* Returns hosting account information
|
|
296
|
+
* @summary info
|
|
339
297
|
*/
|
|
340
|
-
export declare const
|
|
341
|
-
export declare const
|
|
342
|
-
export declare type
|
|
343
|
-
export declare type
|
|
344
|
-
export declare const
|
|
345
|
-
query?: UseQueryOptions<axios.AxiosResponse<
|
|
298
|
+
export declare const hostingInfo: (hostingId: number, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<HostingInfo200>>;
|
|
299
|
+
export declare const getHostingInfoQueryKey: (hostingId: number) => string[];
|
|
300
|
+
export declare type HostingInfoQueryResult = NonNullable<Awaited<ReturnType<typeof hostingInfo>>>;
|
|
301
|
+
export declare type HostingInfoQueryError = AxiosError<unknown>;
|
|
302
|
+
export declare const useHostingInfo: <TData = axios.AxiosResponse<HostingInfo200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
303
|
+
query?: UseQueryOptions<axios.AxiosResponse<HostingInfo200, any>, TError, TData, QueryKey> | undefined;
|
|
346
304
|
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
347
305
|
} | undefined) => UseQueryResult<TData, TError> & {
|
|
348
306
|
queryKey: QueryKey;
|
|
349
307
|
};
|
|
350
308
|
/**
|
|
351
|
-
* Returns
|
|
352
|
-
* @summary info
|
|
309
|
+
* Returns the hosting account's disk usage
|
|
310
|
+
* @summary info disk usage
|
|
353
311
|
*/
|
|
354
|
-
export declare const
|
|
355
|
-
export declare const
|
|
356
|
-
export declare type
|
|
357
|
-
export declare type
|
|
358
|
-
export declare const
|
|
359
|
-
query?: UseQueryOptions<axios.AxiosResponse<
|
|
312
|
+
export declare const hostingInfoDiskUsage: (hostingId: number, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<HostingInfoDiskUsage200>>;
|
|
313
|
+
export declare const getHostingInfoDiskUsageQueryKey: (hostingId: number) => string[];
|
|
314
|
+
export declare type HostingInfoDiskUsageQueryResult = NonNullable<Awaited<ReturnType<typeof hostingInfoDiskUsage>>>;
|
|
315
|
+
export declare type HostingInfoDiskUsageQueryError = AxiosError<unknown>;
|
|
316
|
+
export declare const useHostingInfoDiskUsage: <TData = axios.AxiosResponse<HostingInfoDiskUsage200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
317
|
+
query?: UseQueryOptions<axios.AxiosResponse<HostingInfoDiskUsage200, any>, TError, TData, QueryKey> | undefined;
|
|
360
318
|
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
361
319
|
} | undefined) => UseQueryResult<TData, TError> & {
|
|
362
320
|
queryKey: QueryKey;
|
|
@@ -375,6 +333,48 @@ export declare const useHostingSites: <TData = axios.AxiosResponse<HostingSites2
|
|
|
375
333
|
} | undefined) => UseQueryResult<TData, TError> & {
|
|
376
334
|
queryKey: QueryKey;
|
|
377
335
|
};
|
|
336
|
+
/**
|
|
337
|
+
* Returns the hosting account's SSH information
|
|
338
|
+
* @summary ssh info
|
|
339
|
+
*/
|
|
340
|
+
export declare const hostingSshInfo: (hostingId: number, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<HostingSshInfo200>>;
|
|
341
|
+
export declare const getHostingSshInfoQueryKey: (hostingId: number) => string[];
|
|
342
|
+
export declare type HostingSshInfoQueryResult = NonNullable<Awaited<ReturnType<typeof hostingSshInfo>>>;
|
|
343
|
+
export declare type HostingSshInfoQueryError = AxiosError<unknown>;
|
|
344
|
+
export declare const useHostingSshInfo: <TData = axios.AxiosResponse<HostingSshInfo200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
345
|
+
query?: UseQueryOptions<axios.AxiosResponse<HostingSshInfo200, any>, TError, TData, QueryKey> | undefined;
|
|
346
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
347
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
348
|
+
queryKey: QueryKey;
|
|
349
|
+
};
|
|
350
|
+
/**
|
|
351
|
+
* List all SSH keys on a server or account. Finds all keys in user's .ssh/ diretory.
|
|
352
|
+
* @summary hosting ssh key_list
|
|
353
|
+
*/
|
|
354
|
+
export declare const sshKeyList: (hostingId: string, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<SshKeyList200>>;
|
|
355
|
+
export declare const getSshKeyListQueryKey: (hostingId: string) => string[];
|
|
356
|
+
export declare type SshKeyListQueryResult = NonNullable<Awaited<ReturnType<typeof sshKeyList>>>;
|
|
357
|
+
export declare type SshKeyListQueryError = AxiosError<unknown>;
|
|
358
|
+
export declare const useSshKeyList: <TData = axios.AxiosResponse<SshKeyList200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: string, options?: {
|
|
359
|
+
query?: UseQueryOptions<axios.AxiosResponse<SshKeyList200, any>, TError, TData, QueryKey> | undefined;
|
|
360
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
361
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
362
|
+
queryKey: QueryKey;
|
|
363
|
+
};
|
|
364
|
+
/**
|
|
365
|
+
* 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.
|
|
366
|
+
* @summary sso
|
|
367
|
+
*/
|
|
368
|
+
export declare const sso: (hostingId: number, params?: SsoParams | undefined, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<Sso200>>;
|
|
369
|
+
export declare const getSsoQueryKey: (hostingId: number, params?: SsoParams | undefined) => (string | SsoParams)[];
|
|
370
|
+
export declare type SsoQueryResult = NonNullable<Awaited<ReturnType<typeof sso>>>;
|
|
371
|
+
export declare type SsoQueryError = AxiosError<unknown>;
|
|
372
|
+
export declare const useSso: <TData = axios.AxiosResponse<Sso200, any>, TError = axios.AxiosError<unknown, any>>(hostingId: number, params?: SsoParams | undefined, options?: {
|
|
373
|
+
query?: UseQueryOptions<axios.AxiosResponse<Sso200, any>, TError, TData, QueryKey> | undefined;
|
|
374
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
375
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
376
|
+
queryKey: QueryKey;
|
|
377
|
+
};
|
|
378
378
|
/**
|
|
379
379
|
* Returns a list of DNS records for the site's domain.
|
|
380
380
|
* @summary dns
|
|
@@ -389,6 +389,20 @@ export declare const useSitesDns: <TData = axios.AxiosResponse<SitesDns200, any>
|
|
|
389
389
|
} | undefined) => UseQueryResult<TData, TError> & {
|
|
390
390
|
queryKey: QueryKey;
|
|
391
391
|
};
|
|
392
|
+
/**
|
|
393
|
+
* Returns site information.
|
|
394
|
+
* @summary info
|
|
395
|
+
*/
|
|
396
|
+
export declare const sitesInfo: (siteId: number, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<SitesInfo200>>;
|
|
397
|
+
export declare const getSitesInfoQueryKey: (siteId: number) => string[];
|
|
398
|
+
export declare type SitesInfoQueryResult = NonNullable<Awaited<ReturnType<typeof sitesInfo>>>;
|
|
399
|
+
export declare type SitesInfoQueryError = AxiosError<unknown>;
|
|
400
|
+
export declare const useSitesInfo: <TData = axios.AxiosResponse<SitesInfo200, any>, TError = axios.AxiosError<unknown, any>>(siteId: number, options?: {
|
|
401
|
+
query?: UseQueryOptions<axios.AxiosResponse<SitesInfo200, any>, TError, TData, QueryKey> | undefined;
|
|
402
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
403
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
404
|
+
queryKey: QueryKey;
|
|
405
|
+
};
|
|
392
406
|
/**
|
|
393
407
|
* Returns a list of the site's plugins
|
|
394
408
|
* @summary plugins
|
|
@@ -532,6 +546,21 @@ export declare const useSitesSecuritySitelock: <TData = axios.AxiosResponse<Site
|
|
|
532
546
|
} | undefined) => UseQueryResult<TData, TError> & {
|
|
533
547
|
queryKey: QueryKey;
|
|
534
548
|
};
|
|
549
|
+
/**
|
|
550
|
+
* Disables / enables cPanel to generate Let's Encrypt SSLs for the site.
|
|
551
|
+
* @summary ssl lets encrypt toggle
|
|
552
|
+
*/
|
|
553
|
+
export declare const sitesSecuritySslAcme: (siteId: number, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<SitesSecuritySslAcme200>>;
|
|
554
|
+
export declare type SitesSecuritySslAcmeMutationResult = NonNullable<Awaited<ReturnType<typeof sitesSecuritySslAcme>>>;
|
|
555
|
+
export declare type SitesSecuritySslAcmeMutationError = AxiosError<unknown>;
|
|
556
|
+
export declare const useSitesSecuritySslAcme: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
557
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<SitesSecuritySslAcme200, any>, TError, {
|
|
558
|
+
siteId: number;
|
|
559
|
+
}, TContext> | undefined;
|
|
560
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
561
|
+
} | undefined) => import("react-query").UseMutationResult<axios.AxiosResponse<SitesSecuritySslAcme200, any>, TError, {
|
|
562
|
+
siteId: number;
|
|
563
|
+
}, TContext>;
|
|
535
564
|
/**
|
|
536
565
|
* Returns the site's SSL Status
|
|
537
566
|
* @summary ssl status
|
|
@@ -547,20 +576,87 @@ export declare const useSitesSecuritySslStatus: <TData = axios.AxiosResponse<Sit
|
|
|
547
576
|
queryKey: QueryKey;
|
|
548
577
|
};
|
|
549
578
|
/**
|
|
550
|
-
*
|
|
551
|
-
* @summary
|
|
579
|
+
* Returns the autoupdate status of the site's core, themes, and plugins
|
|
580
|
+
* @summary settings autoupdates
|
|
552
581
|
*/
|
|
553
|
-
export declare const
|
|
554
|
-
export declare
|
|
555
|
-
export declare type
|
|
556
|
-
export declare
|
|
557
|
-
|
|
582
|
+
export declare const sitesSettingsAutoupdates: (siteId: number, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<SitesSettingsAutoupdates200>>;
|
|
583
|
+
export declare const getSitesSettingsAutoupdatesQueryKey: (siteId: number) => string[];
|
|
584
|
+
export declare type SitesSettingsAutoupdatesQueryResult = NonNullable<Awaited<ReturnType<typeof sitesSettingsAutoupdates>>>;
|
|
585
|
+
export declare type SitesSettingsAutoupdatesQueryError = AxiosError<unknown>;
|
|
586
|
+
export declare const useSitesSettingsAutoupdates: <TData = axios.AxiosResponse<SitesSettingsAutoupdates200, any>, TError = axios.AxiosError<unknown, any>>(siteId: number, options?: {
|
|
587
|
+
query?: UseQueryOptions<axios.AxiosResponse<SitesSettingsAutoupdates200, any>, TError, TData, QueryKey> | undefined;
|
|
588
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
589
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
590
|
+
queryKey: QueryKey;
|
|
591
|
+
};
|
|
592
|
+
/**
|
|
593
|
+
* Enables WP Core autoupdates
|
|
594
|
+
* @summary settings autoupdates core enable
|
|
595
|
+
*/
|
|
596
|
+
export declare const sitesSettingsAutoupdatesCore: (siteId: number, sitesSettingsAutoupdatesCoreBody: SitesSettingsAutoupdatesCoreBody, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<SitesSettingsAutoupdatesCore200>>;
|
|
597
|
+
export declare type SitesSettingsAutoupdatesCoreMutationResult = NonNullable<Awaited<ReturnType<typeof sitesSettingsAutoupdatesCore>>>;
|
|
598
|
+
export declare type SitesSettingsAutoupdatesCoreMutationBody = SitesSettingsAutoupdatesCoreBody;
|
|
599
|
+
export declare type SitesSettingsAutoupdatesCoreMutationError = AxiosError<unknown>;
|
|
600
|
+
export declare const useSitesSettingsAutoupdatesCore: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
601
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<SitesSettingsAutoupdatesCore200, any>, TError, {
|
|
558
602
|
siteId: number;
|
|
603
|
+
data: SitesSettingsAutoupdatesCoreBody;
|
|
559
604
|
}, TContext> | undefined;
|
|
560
605
|
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
561
|
-
} | undefined) => import("react-query").UseMutationResult<axios.AxiosResponse<
|
|
606
|
+
} | undefined) => import("react-query").UseMutationResult<axios.AxiosResponse<SitesSettingsAutoupdatesCore200, any>, TError, {
|
|
562
607
|
siteId: number;
|
|
608
|
+
data: SitesSettingsAutoupdatesCoreBody;
|
|
563
609
|
}, TContext>;
|
|
610
|
+
/**
|
|
611
|
+
* Enables theme autoupdates
|
|
612
|
+
* @summary settings autoupdate theme enable
|
|
613
|
+
*/
|
|
614
|
+
export declare const sitesSettingsAutoupdatesTheme: (siteId: number, sitesSettingsAutoupdatesThemeBody: SitesSettingsAutoupdatesThemeBody, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<SitesSettingsAutoupdatesTheme200>>;
|
|
615
|
+
export declare type SitesSettingsAutoupdatesThemeMutationResult = NonNullable<Awaited<ReturnType<typeof sitesSettingsAutoupdatesTheme>>>;
|
|
616
|
+
export declare type SitesSettingsAutoupdatesThemeMutationBody = SitesSettingsAutoupdatesThemeBody;
|
|
617
|
+
export declare type SitesSettingsAutoupdatesThemeMutationError = AxiosError<unknown>;
|
|
618
|
+
export declare const useSitesSettingsAutoupdatesTheme: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
619
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<SitesSettingsAutoupdatesTheme200, any>, TError, {
|
|
620
|
+
siteId: number;
|
|
621
|
+
data: SitesSettingsAutoupdatesThemeBody;
|
|
622
|
+
}, TContext> | undefined;
|
|
623
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
624
|
+
} | undefined) => import("react-query").UseMutationResult<axios.AxiosResponse<SitesSettingsAutoupdatesTheme200, any>, TError, {
|
|
625
|
+
siteId: number;
|
|
626
|
+
data: SitesSettingsAutoupdatesThemeBody;
|
|
627
|
+
}, TContext>;
|
|
628
|
+
/**
|
|
629
|
+
* Enables or disables the output and display of site generated errors on the site
|
|
630
|
+
* @summary settings debug toggle
|
|
631
|
+
*/
|
|
632
|
+
export declare const sitesSettingsDebug: (siteId: number, sitesSettingsDebugBody: SitesSettingsDebugBody, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<SitesSettingsDebug200>>;
|
|
633
|
+
export declare type SitesSettingsDebugMutationResult = NonNullable<Awaited<ReturnType<typeof sitesSettingsDebug>>>;
|
|
634
|
+
export declare type SitesSettingsDebugMutationBody = SitesSettingsDebugBody;
|
|
635
|
+
export declare type SitesSettingsDebugMutationError = AxiosError<unknown>;
|
|
636
|
+
export declare const useSitesSettingsDebug: <TError = axios.AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
637
|
+
mutation?: UseMutationOptions<axios.AxiosResponse<SitesSettingsDebug200, any>, TError, {
|
|
638
|
+
siteId: number;
|
|
639
|
+
data: SitesSettingsDebugBody;
|
|
640
|
+
}, TContext> | undefined;
|
|
641
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
642
|
+
} | undefined) => import("react-query").UseMutationResult<axios.AxiosResponse<SitesSettingsDebug200, any>, TError, {
|
|
643
|
+
siteId: number;
|
|
644
|
+
data: SitesSettingsDebugBody;
|
|
645
|
+
}, TContext>;
|
|
646
|
+
/**
|
|
647
|
+
* Returns an SSO token or login URL for tthe site (if supported).
|
|
648
|
+
* @summary sso
|
|
649
|
+
*/
|
|
650
|
+
export declare const sitesSso: (siteId: number, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<AxiosResponse<SitesSso200>>;
|
|
651
|
+
export declare const getSitesSsoQueryKey: (siteId: number) => string[];
|
|
652
|
+
export declare type SitesSsoQueryResult = NonNullable<Awaited<ReturnType<typeof sitesSso>>>;
|
|
653
|
+
export declare type SitesSsoQueryError = AxiosError<unknown>;
|
|
654
|
+
export declare const useSitesSso: <TData = axios.AxiosResponse<SitesSso200, any>, TError = axios.AxiosError<unknown, any>>(siteId: number, options?: {
|
|
655
|
+
query?: UseQueryOptions<axios.AxiosResponse<SitesSso200, any>, TError, TData, QueryKey> | undefined;
|
|
656
|
+
axios?: axios.AxiosRequestConfig<any> | undefined;
|
|
657
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
658
|
+
queryKey: QueryKey;
|
|
659
|
+
};
|
|
564
660
|
/**
|
|
565
661
|
* Returns a list of the site's users
|
|
566
662
|
* @summary users
|