@newfold/huapi-js 1.401.0 → 1.413.0-alpha.1
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 +0 -0
- package/orval.config.d.ts +2 -0
- package/orval.config.js +17 -0
- package/package.json +2 -1
- package/src/index.d.ts +52 -1470
- package/src/index.js +48 -366
- package/src/index.msw.d.ts +565 -0
- package/src/index.msw.js +306 -0
- package/src/index.schemas.d.ts +996 -0
- package/src/index.schemas.js +85 -0
package/src/index.d.ts
CHANGED
|
@@ -3,942 +3,12 @@
|
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Hosting UAPI
|
|
5
5
|
* Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
|
|
6
|
-
* OpenAPI spec version: 1.
|
|
6
|
+
* OpenAPI spec version: 1.413.0
|
|
7
7
|
*/
|
|
8
8
|
import axios from 'axios';
|
|
9
9
|
import type { AxiosRequestConfig, AxiosResponse, AxiosError } from 'axios';
|
|
10
10
|
import type { UseQueryOptions, UseMutationOptions, UseQueryResult, QueryKey } from '@tanstack/react-query';
|
|
11
|
-
|
|
12
|
-
name?: string;
|
|
13
|
-
type?: string;
|
|
14
|
-
mtime?: string;
|
|
15
|
-
key?: string;
|
|
16
|
-
};
|
|
17
|
-
export declare type SshKeyListV2200 = {
|
|
18
|
-
rows?: SshKeyListV2200RowsItem[];
|
|
19
|
-
};
|
|
20
|
-
export declare type HostingSitesV2200ItemsItem = {
|
|
21
|
-
id?: string;
|
|
22
|
-
name?: string;
|
|
23
|
-
url?: string;
|
|
24
|
-
docroot?: string;
|
|
25
|
-
status?: string;
|
|
26
|
-
pending_url?: string;
|
|
27
|
-
};
|
|
28
|
-
export declare type HostingSitesV2200 = {
|
|
29
|
-
total?: number;
|
|
30
|
-
page?: number;
|
|
31
|
-
limit?: number;
|
|
32
|
-
/** Maximum number of sites the customer can have. Null means 'unlimited'. */
|
|
33
|
-
max_sites?: number | null;
|
|
34
|
-
/** Current number of sites in use by the customer. its normal for this value to be different than the total number of sites in the list. */
|
|
35
|
-
used_sites?: number;
|
|
36
|
-
/** Remaining number of sites the customer can create. Max sites - used sites. Null means 'unlimited'. */
|
|
37
|
-
available_sites?: number | null;
|
|
38
|
-
items?: HostingSitesV2200ItemsItem[];
|
|
39
|
-
};
|
|
40
|
-
export declare type SitesVersion200 = {
|
|
41
|
-
current?: string;
|
|
42
|
-
latest?: string;
|
|
43
|
-
update?: boolean;
|
|
44
|
-
};
|
|
45
|
-
export declare type SiteUsers200UsersItemMeta = {
|
|
46
|
-
maestro_web_pro?: string;
|
|
47
|
-
maestro_wpp_identifier?: string;
|
|
48
|
-
};
|
|
49
|
-
export declare type SiteUsers200UsersItem = {
|
|
50
|
-
display_name?: string;
|
|
51
|
-
id: number;
|
|
52
|
-
meta?: SiteUsers200UsersItemMeta;
|
|
53
|
-
post_count?: number;
|
|
54
|
-
role: string;
|
|
55
|
-
user_email: string;
|
|
56
|
-
user_id: number;
|
|
57
|
-
user_login: string;
|
|
58
|
-
user_nicename: string;
|
|
59
|
-
};
|
|
60
|
-
export declare type SiteUsers200 = {
|
|
61
|
-
users: SiteUsers200UsersItem[];
|
|
62
|
-
};
|
|
63
|
-
export declare type SitesSso200 = {
|
|
64
|
-
sso?: string;
|
|
65
|
-
};
|
|
66
|
-
export declare type SitesSsoBounceName = typeof SitesSsoBounceName[keyof typeof SitesSsoBounceName];
|
|
67
|
-
export declare const SitesSsoBounceName: {
|
|
68
|
-
readonly jetpackbackup: "jetpackbackup";
|
|
69
|
-
readonly jetpackdashboard: "jetpackdashboard";
|
|
70
|
-
readonly staging: "staging";
|
|
71
|
-
readonly updatecore: "updatecore";
|
|
72
|
-
};
|
|
73
|
-
export declare type SitesSsoParams = {
|
|
74
|
-
bounce_name?: SitesSsoBounceName;
|
|
75
|
-
user_email?: string;
|
|
76
|
-
user_id?: string;
|
|
77
|
-
};
|
|
78
|
-
export declare type SitesSettingsPhpVersions200 = {
|
|
79
|
-
versions?: string[];
|
|
80
|
-
};
|
|
81
|
-
export declare type SitesSettingsPhpVersionUpdate200 = {
|
|
82
|
-
success?: number;
|
|
83
|
-
};
|
|
84
|
-
export declare type SitesSettingsPhpVersionUpdateBody = {
|
|
85
|
-
/** The version should match the pattern i.e. PHP 8.0 */
|
|
86
|
-
php_version: string;
|
|
87
|
-
force?: boolean;
|
|
88
|
-
};
|
|
89
|
-
export declare type SitesSettingsDebugToggle200 = {
|
|
90
|
-
success?: number;
|
|
91
|
-
};
|
|
92
|
-
export declare type SitesSettingsDebugToggleBody = {
|
|
93
|
-
enable?: boolean;
|
|
94
|
-
};
|
|
95
|
-
export declare type SitesSettingsDebug200 = {
|
|
96
|
-
status?: number;
|
|
97
|
-
};
|
|
98
|
-
export declare type SitesSettingsComingSoonToggle200 = {
|
|
99
|
-
success?: number;
|
|
100
|
-
};
|
|
101
|
-
export declare type SitesSettingsComingSoonToggleBody = {
|
|
102
|
-
enable?: boolean;
|
|
103
|
-
};
|
|
104
|
-
export declare type SitesSettingsComingSoon200 = {
|
|
105
|
-
enable?: boolean;
|
|
106
|
-
};
|
|
107
|
-
export declare type SitesSettingsAutoupdatesTheme200 = {
|
|
108
|
-
success?: number;
|
|
109
|
-
};
|
|
110
|
-
export declare type SitesSettingsAutoupdatesThemeBody = {
|
|
111
|
-
enable?: boolean;
|
|
112
|
-
};
|
|
113
|
-
export declare type SitesSettingsAutoupdatesCore200 = {
|
|
114
|
-
success?: number;
|
|
115
|
-
};
|
|
116
|
-
export declare type SitesSettingsAutoupdatesCoreBody = {
|
|
117
|
-
enable?: boolean;
|
|
118
|
-
};
|
|
119
|
-
export declare type SitesSettingsAutoupdates200 = {
|
|
120
|
-
auto_update_plugin?: boolean;
|
|
121
|
-
auto_update_theme?: boolean;
|
|
122
|
-
auto_update_core?: boolean;
|
|
123
|
-
};
|
|
124
|
-
export declare type SiteSettingsAutoupdatePlugins200 = {
|
|
125
|
-
status?: number;
|
|
126
|
-
};
|
|
127
|
-
export declare type SitesSecuritySslStatus200 = {
|
|
128
|
-
status?: string;
|
|
129
|
-
message?: string;
|
|
130
|
-
};
|
|
131
|
-
export declare type SitesSecuritySslAcme200 = {
|
|
132
|
-
success?: number;
|
|
133
|
-
message?: string;
|
|
134
|
-
};
|
|
135
|
-
export declare type SitesSecuritySitelock200 = {
|
|
136
|
-
addon_id?: number;
|
|
137
|
-
plan?: string;
|
|
138
|
-
success?: number;
|
|
139
|
-
subscription_id?: string;
|
|
140
|
-
upgrade_levels?: string[];
|
|
141
|
-
};
|
|
142
|
-
export declare type SitesSecurityHttpsEnableDisableSsl200 = {
|
|
143
|
-
success?: number;
|
|
144
|
-
redirection_status?: number;
|
|
145
|
-
message?: string;
|
|
146
|
-
};
|
|
147
|
-
export declare type SitesSecurityHttpsEnableDisableSslBody = {
|
|
148
|
-
/** enable or disable */
|
|
149
|
-
forced_redirection?: string;
|
|
150
|
-
};
|
|
151
|
-
export declare type SitesSecurityHttpsRedirectionStatus200 = {
|
|
152
|
-
success?: number;
|
|
153
|
-
redirection_status?: number;
|
|
154
|
-
message?: string;
|
|
155
|
-
};
|
|
156
|
-
export declare type SitesSecurityResetCoreFiles200 = {
|
|
157
|
-
results?: string;
|
|
158
|
-
success?: number;
|
|
159
|
-
};
|
|
160
|
-
export declare type SitesSecurityCheckCore200 = {
|
|
161
|
-
results?: string;
|
|
162
|
-
success?: number;
|
|
163
|
-
};
|
|
164
|
-
export declare type ResetSite200 = {
|
|
165
|
-
site_id?: string;
|
|
166
|
-
status?: string;
|
|
167
|
-
success: boolean;
|
|
168
|
-
};
|
|
169
|
-
export declare type SitePluginsUpdate200 = {
|
|
170
|
-
success: boolean;
|
|
171
|
-
};
|
|
172
|
-
export declare type SitePluginsUpdateBody = {
|
|
173
|
-
/** The plugin id */
|
|
174
|
-
id: string;
|
|
175
|
-
};
|
|
176
|
-
export declare type SitePluginsToggle200 = {
|
|
177
|
-
success: boolean;
|
|
178
|
-
};
|
|
179
|
-
export declare type SitePluginsToggleBody = {
|
|
180
|
-
/** The plugin id */
|
|
181
|
-
id: string;
|
|
182
|
-
/** activate or deactivate the plugin */
|
|
183
|
-
activate: boolean;
|
|
184
|
-
};
|
|
185
|
-
export declare type SitePluginsAutoupdate200 = {
|
|
186
|
-
success: boolean;
|
|
187
|
-
};
|
|
188
|
-
export declare type SitePluginsAutoupdateBody = {
|
|
189
|
-
enable: boolean;
|
|
190
|
-
};
|
|
191
|
-
export declare type SitePlugins200PluginsItem = {
|
|
192
|
-
id: string;
|
|
193
|
-
status: string;
|
|
194
|
-
title: string;
|
|
195
|
-
update: boolean;
|
|
196
|
-
};
|
|
197
|
-
export declare type SitePlugins200 = {
|
|
198
|
-
subtype: string;
|
|
199
|
-
auto_update: boolean;
|
|
200
|
-
plugins: SitePlugins200PluginsItem[];
|
|
201
|
-
};
|
|
202
|
-
export declare type SitesPerformanceEndurancePageCache200 = {
|
|
203
|
-
result?: string;
|
|
204
|
-
status?: string;
|
|
205
|
-
};
|
|
206
|
-
export declare type SitesPerformanceEnduranceCacheLevel200Options = {
|
|
207
|
-
[key: string]: any;
|
|
208
|
-
};
|
|
209
|
-
export declare type SitesPerformanceEnduranceCacheLevel200 = {
|
|
210
|
-
options?: SitesPerformanceEnduranceCacheLevel200Options;
|
|
211
|
-
};
|
|
212
|
-
export declare type SitesPerformanceEnduranceCacheLevelBody = {
|
|
213
|
-
endurance_cache_level?: number;
|
|
214
|
-
};
|
|
215
|
-
export declare type SitesPerformanceEnduranceCacheLevelStatus200 = {
|
|
216
|
-
endurance_cache_level?: number;
|
|
217
|
-
};
|
|
218
|
-
export declare type SitesPerformanceCachepurge200 = {
|
|
219
|
-
success?: boolean;
|
|
220
|
-
};
|
|
221
|
-
export declare type SitesPerformanceCachepurgeBody = {
|
|
222
|
-
/** */
|
|
223
|
-
assets?: string[];
|
|
224
|
-
/** */
|
|
225
|
-
hosts: string[];
|
|
226
|
-
/** Pass either 0, basic, premium, india or hostgator */
|
|
227
|
-
cf?: string;
|
|
228
|
-
/** Pass either 0 or 1 */
|
|
229
|
-
epc?: number;
|
|
230
|
-
};
|
|
231
|
-
export declare type SitesDomainUrl200 = {
|
|
232
|
-
success?: boolean;
|
|
233
|
-
};
|
|
234
|
-
export declare type SitesDomainUrlBody = {
|
|
235
|
-
force?: boolean;
|
|
236
|
-
/** Option to create the temporary domain */
|
|
237
|
-
temp_domain?: boolean;
|
|
238
|
-
/** URL of the site to be updated */
|
|
239
|
-
url?: string;
|
|
240
|
-
};
|
|
241
|
-
export declare type SitesDomain200Wanted = {
|
|
242
|
-
a?: string[];
|
|
243
|
-
ns?: string[];
|
|
244
|
-
};
|
|
245
|
-
export declare type SitesDomain200Detected = {
|
|
246
|
-
a?: string[];
|
|
247
|
-
ns?: string[];
|
|
248
|
-
};
|
|
249
|
-
export declare type SitesDomain200 = {
|
|
250
|
-
connected?: boolean;
|
|
251
|
-
a_match?: boolean;
|
|
252
|
-
nameserver_match?: boolean;
|
|
253
|
-
detected?: SitesDomain200Detected;
|
|
254
|
-
wanted?: SitesDomain200Wanted;
|
|
255
|
-
};
|
|
256
|
-
export declare type SitesDns200RecordsItem = {
|
|
257
|
-
name?: string;
|
|
258
|
-
value?: string;
|
|
259
|
-
type?: string;
|
|
260
|
-
};
|
|
261
|
-
export declare type SitesDns200 = {
|
|
262
|
-
success?: boolean;
|
|
263
|
-
source?: string;
|
|
264
|
-
records?: SitesDns200RecordsItem[];
|
|
265
|
-
};
|
|
266
|
-
export declare type SitesDnsParams = {
|
|
267
|
-
type?: string;
|
|
268
|
-
};
|
|
269
|
-
export declare type JetpackBackupStatus200 = {
|
|
270
|
-
has_active_plugin?: boolean;
|
|
271
|
-
has_active_addon?: boolean;
|
|
272
|
-
};
|
|
273
|
-
export declare type SitesBackupsDetails200Jetpack = {
|
|
274
|
-
plugin_exists?: boolean;
|
|
275
|
-
addon_exists?: boolean;
|
|
276
|
-
};
|
|
277
|
-
export declare type SitesBackupsDetails200Codeguard = {
|
|
278
|
-
addon_id?: string;
|
|
279
|
-
status?: boolean;
|
|
280
|
-
seats_available?: number;
|
|
281
|
-
seats_count?: number;
|
|
282
|
-
website_id?: string | null;
|
|
283
|
-
database_id?: string | null;
|
|
284
|
-
activated?: boolean;
|
|
285
|
-
url?: string | null;
|
|
286
|
-
};
|
|
287
|
-
export declare type SitesBackupsDetails200 = {
|
|
288
|
-
codeguard?: SitesBackupsDetails200Codeguard;
|
|
289
|
-
jetpack?: SitesBackupsDetails200Jetpack;
|
|
290
|
-
};
|
|
291
|
-
export declare type SitesHasBackups200 = {
|
|
292
|
-
has_backups?: boolean;
|
|
293
|
-
};
|
|
294
|
-
export declare type SitesBackups200 = {
|
|
295
|
-
has_backups?: boolean;
|
|
296
|
-
};
|
|
297
|
-
/**
|
|
298
|
-
* autoupdate type
|
|
299
|
-
*/
|
|
300
|
-
export declare type SitesAutoupdatesUpdateBodyType = typeof SitesAutoupdatesUpdateBodyType[keyof typeof SitesAutoupdatesUpdateBodyType];
|
|
301
|
-
export declare const SitesAutoupdatesUpdateBodyType: {
|
|
302
|
-
readonly core: "core";
|
|
303
|
-
readonly plugins: "plugins";
|
|
304
|
-
readonly themes: "themes";
|
|
305
|
-
};
|
|
306
|
-
export declare type SitesAutoupdatesUpdateBody = {
|
|
307
|
-
/** autoupdate type */
|
|
308
|
-
type: SitesAutoupdatesUpdateBodyType;
|
|
309
|
-
/** true to enable, false for disable */
|
|
310
|
-
enabled: boolean;
|
|
311
|
-
};
|
|
312
|
-
export declare type Site200 = {
|
|
313
|
-
success: boolean;
|
|
314
|
-
};
|
|
315
|
-
export declare type SiteUpdate400 = {
|
|
316
|
-
error?: string;
|
|
317
|
-
};
|
|
318
|
-
export declare type SiteUpdate200 = {
|
|
319
|
-
success: boolean;
|
|
320
|
-
};
|
|
321
|
-
export declare type SiteUpdateBody = {
|
|
322
|
-
/** title of the site to be updated */
|
|
323
|
-
title?: string;
|
|
324
|
-
/** domain for the site to be added */
|
|
325
|
-
domain?: string;
|
|
326
|
-
/** filesystem path that follows the domain in the url */
|
|
327
|
-
path?: string;
|
|
328
|
-
};
|
|
329
|
-
export declare type SitesInfo200Meta = {
|
|
330
|
-
pending_url?: string;
|
|
331
|
-
} | null;
|
|
332
|
-
export declare type SitesInfo200 = {
|
|
333
|
-
id: string;
|
|
334
|
-
docroot: string;
|
|
335
|
-
uuid: string;
|
|
336
|
-
date_added: string;
|
|
337
|
-
date_modified: string;
|
|
338
|
-
name: string;
|
|
339
|
-
type: string;
|
|
340
|
-
subtype: string;
|
|
341
|
-
status: string;
|
|
342
|
-
url: string;
|
|
343
|
-
version: string;
|
|
344
|
-
versionLatest?: string;
|
|
345
|
-
php_version?: string;
|
|
346
|
-
updatable?: boolean;
|
|
347
|
-
pending_url?: string;
|
|
348
|
-
meta?: SitesInfo200Meta;
|
|
349
|
-
};
|
|
350
|
-
export declare type SitesList200ItemsItem = {
|
|
351
|
-
id?: string;
|
|
352
|
-
name?: string;
|
|
353
|
-
url?: string;
|
|
354
|
-
docroot?: string;
|
|
355
|
-
status?: string;
|
|
356
|
-
};
|
|
357
|
-
export declare type SitesList200 = {
|
|
358
|
-
items?: SitesList200ItemsItem[];
|
|
359
|
-
};
|
|
360
|
-
export declare type Sso200 = {
|
|
361
|
-
url: string;
|
|
362
|
-
};
|
|
363
|
-
export declare type SsoApp = typeof SsoApp[keyof typeof SsoApp];
|
|
364
|
-
export declare const SsoApp: {
|
|
365
|
-
readonly phpmyadmin: "phpmyadmin";
|
|
366
|
-
readonly filemanager: "filemanager";
|
|
367
|
-
readonly cronjobs: "cronjobs";
|
|
368
|
-
readonly accesslogs: "accesslogs";
|
|
369
|
-
readonly errorlogs: "errorlogs";
|
|
370
|
-
readonly domainredirects: "domainredirects";
|
|
371
|
-
readonly sshkeys: "sshkeys";
|
|
372
|
-
readonly ftp: "ftp";
|
|
373
|
-
readonly sslsigningrequests: "sslsigningrequests";
|
|
374
|
-
readonly ssluploadcert: "ssluploadcert";
|
|
375
|
-
readonly sslviewlogs: "sslviewlogs";
|
|
376
|
-
readonly emailaccounts: "emailaccounts";
|
|
377
|
-
readonly emailforwarders: "emailforwarders";
|
|
378
|
-
readonly emailfilters: "emailfilters";
|
|
379
|
-
readonly emailglobalfilters: "emailglobalfilters";
|
|
380
|
-
readonly emailspamfilters: "emailspamfilters";
|
|
381
|
-
readonly emailautoresponders: "emailautoresponders";
|
|
382
|
-
readonly emailrouting: "emailrouting";
|
|
383
|
-
};
|
|
384
|
-
export declare type SsoParams = {
|
|
385
|
-
app?: SsoApp;
|
|
386
|
-
};
|
|
387
|
-
export declare type SshKeyGenerate200 = {
|
|
388
|
-
key_name?: string;
|
|
389
|
-
private_key_path?: string;
|
|
390
|
-
public_key_path?: string;
|
|
391
|
-
};
|
|
392
|
-
/**
|
|
393
|
-
* The SSH key's encryption method for authentication (rsa or dsa). Defaults to rsa.
|
|
394
|
-
*/
|
|
395
|
-
export declare type SshKeyGenerateBodyEncType = typeof SshKeyGenerateBodyEncType[keyof typeof SshKeyGenerateBodyEncType];
|
|
396
|
-
export declare const SshKeyGenerateBodyEncType: {
|
|
397
|
-
readonly rsa: "rsa";
|
|
398
|
-
readonly dsa: "dsa";
|
|
399
|
-
readonly ed25519: "ed25519";
|
|
400
|
-
readonly ecdsa: "ecdsa";
|
|
401
|
-
};
|
|
402
|
-
/**
|
|
403
|
-
* A positive integer of 1024 or more. Defaults to 2048 bits.
|
|
404
|
-
*/
|
|
405
|
-
export declare type SshKeyGenerateBodyBits = typeof SshKeyGenerateBodyBits[keyof typeof SshKeyGenerateBodyBits];
|
|
406
|
-
export declare const SshKeyGenerateBodyBits: {
|
|
407
|
-
readonly NUMBER_1024: 1024;
|
|
408
|
-
readonly NUMBER_2048: 2048;
|
|
409
|
-
readonly NUMBER_4096: 4096;
|
|
410
|
-
};
|
|
411
|
-
export declare type SshKeyGenerateBody = {
|
|
412
|
-
/** A positive integer of 1024 or more. Defaults to 2048 bits. */
|
|
413
|
-
bits?: SshKeyGenerateBodyBits;
|
|
414
|
-
/** The SSH key's encryption method for authentication (rsa or dsa). Defaults to rsa. */
|
|
415
|
-
enc_type?: SshKeyGenerateBodyEncType;
|
|
416
|
-
/** The SSH key's filename */
|
|
417
|
-
name: string;
|
|
418
|
-
/** A note to log alongside the secure_action_log entry. */
|
|
419
|
-
note?: string;
|
|
420
|
-
/** The SSH key's password. Must be four or more secure characters. */
|
|
421
|
-
pass?: string;
|
|
422
|
-
/** The entity that initiated the GAP call */
|
|
423
|
-
source?: string;
|
|
424
|
-
};
|
|
425
|
-
export declare type SshKey200 = {
|
|
426
|
-
deleted?: number;
|
|
427
|
-
key_name?: string;
|
|
428
|
-
};
|
|
429
|
-
export declare type SshKeyBody = {
|
|
430
|
-
name: string;
|
|
431
|
-
note?: string;
|
|
432
|
-
source?: string;
|
|
433
|
-
};
|
|
434
|
-
export declare type SshKeyList200KeysItem = {
|
|
435
|
-
file?: string;
|
|
436
|
-
haspub?: number;
|
|
437
|
-
key?: string;
|
|
438
|
-
name?: string;
|
|
439
|
-
};
|
|
440
|
-
export declare type SshKeyList200 = {
|
|
441
|
-
keys?: SshKeyList200KeysItem[];
|
|
442
|
-
};
|
|
443
|
-
export declare type SshKeyImport200 = {
|
|
444
|
-
key_name?: string;
|
|
445
|
-
};
|
|
446
|
-
export declare type SshKeyImportBody = {
|
|
447
|
-
/** A Valid SSH key */
|
|
448
|
-
key: string;
|
|
449
|
-
/** The SSH key's filename */
|
|
450
|
-
name: string;
|
|
451
|
-
/** A note to log alongside the secure_action_log entry. */
|
|
452
|
-
note?: string;
|
|
453
|
-
/** The SSH key's password. Must be four or more secure characters. */
|
|
454
|
-
pass?: string;
|
|
455
|
-
/** The entity that initiated the GAP call */
|
|
456
|
-
source?: string;
|
|
457
|
-
};
|
|
458
|
-
export declare type SshKeyFetch200 = {
|
|
459
|
-
key_name?: string;
|
|
460
|
-
key?: string;
|
|
461
|
-
type?: string;
|
|
462
|
-
};
|
|
463
|
-
export declare type SshKeyFetchPrivate = typeof SshKeyFetchPrivate[keyof typeof SshKeyFetchPrivate];
|
|
464
|
-
export declare const SshKeyFetchPrivate: {
|
|
465
|
-
readonly NUMBER_0: "0";
|
|
466
|
-
readonly NUMBER_1: "1";
|
|
467
|
-
};
|
|
468
|
-
export declare type SshKeyFetchParams = {
|
|
469
|
-
name: string;
|
|
470
|
-
private?: SshKeyFetchPrivate;
|
|
471
|
-
};
|
|
472
|
-
export declare type HostingSshInfo200 = {
|
|
473
|
-
status?: string;
|
|
474
|
-
success?: boolean;
|
|
475
|
-
};
|
|
476
|
-
export declare type HostingSiteAdd200 = {
|
|
477
|
-
id?: number;
|
|
478
|
-
status?: string;
|
|
479
|
-
success: boolean;
|
|
480
|
-
};
|
|
481
|
-
export declare type HostingSiteAddBody = {
|
|
482
|
-
/** domain for the site to be added */
|
|
483
|
-
domain?: string;
|
|
484
|
-
/** Installation Path */
|
|
485
|
-
path?: string;
|
|
486
|
-
/** Site Subtype */
|
|
487
|
-
subtype: string;
|
|
488
|
-
/** title of the site to be added */
|
|
489
|
-
title: string;
|
|
490
|
-
};
|
|
491
|
-
export declare type HostingSites200RowsItemMeta = {
|
|
492
|
-
pending_url?: string;
|
|
493
|
-
} | null;
|
|
494
|
-
export declare type HostingSites200RowsItem = {
|
|
495
|
-
id?: string;
|
|
496
|
-
name?: string;
|
|
497
|
-
url?: string;
|
|
498
|
-
docroot?: string;
|
|
499
|
-
status?: string;
|
|
500
|
-
pending_url?: string;
|
|
501
|
-
meta?: HostingSites200RowsItemMeta;
|
|
502
|
-
};
|
|
503
|
-
export declare type HostingSites200 = {
|
|
504
|
-
n_rows?: number;
|
|
505
|
-
n_pages?: number;
|
|
506
|
-
limit?: number;
|
|
507
|
-
/** Maximum number of sites the customer can have. Null means 'unlimited'. */
|
|
508
|
-
max_sites?: number | null;
|
|
509
|
-
/** Current number of sites in use by the customer. its normal for this value to be different than the total number of sites in the list. */
|
|
510
|
-
used_sites?: number;
|
|
511
|
-
/** Remaining number of sites the customer can create. Max sites - used sites. Value will be always be 1 if the customer has unlimited sites */
|
|
512
|
-
available_sites?: number;
|
|
513
|
-
rows?: HostingSites200RowsItem[];
|
|
514
|
-
};
|
|
515
|
-
export declare type HostingShellInfo200 = {
|
|
516
|
-
enabled?: boolean;
|
|
517
|
-
};
|
|
518
|
-
export declare type HostingShellToggle200 = {
|
|
519
|
-
enabled?: boolean;
|
|
520
|
-
};
|
|
521
|
-
export declare type HostingShellToggleBody = {
|
|
522
|
-
/** boolean flag to enable or disable hosting shell */
|
|
523
|
-
enabled: boolean;
|
|
524
|
-
};
|
|
525
|
-
export declare type HostingNameservers200 = {
|
|
526
|
-
nameservers: string[];
|
|
527
|
-
};
|
|
528
|
-
export declare type HostingMigrationSiteScanStatus200 = {
|
|
529
|
-
transferable?: boolean;
|
|
530
|
-
callback_url?: string;
|
|
531
|
-
};
|
|
532
|
-
export declare type HostingMigrationSiteScanStatusParams = {
|
|
533
|
-
/**
|
|
534
|
-
* valid domain, URI format is preferred
|
|
535
|
-
*/
|
|
536
|
-
prospect_url: string;
|
|
537
|
-
};
|
|
538
|
-
export declare type HostingMigrationInfo200 = {
|
|
539
|
-
migration_id?: string;
|
|
540
|
-
domain?: string;
|
|
541
|
-
site_url?: string;
|
|
542
|
-
hostname?: string;
|
|
543
|
-
feasible?: string;
|
|
544
|
-
source_type?: string;
|
|
545
|
-
product_type?: string;
|
|
546
|
-
incoming_domain?: string;
|
|
547
|
-
};
|
|
548
|
-
export declare type HostingMigrationInfoParams = {
|
|
549
|
-
migration_id: string;
|
|
550
|
-
};
|
|
551
|
-
export declare type HostingMigrationsEvent200 = {
|
|
552
|
-
success?: boolean;
|
|
553
|
-
};
|
|
554
|
-
export declare type HostingMigrationsEventBodyEventName = typeof HostingMigrationsEventBodyEventName[keyof typeof HostingMigrationsEventBodyEventName];
|
|
555
|
-
export declare const HostingMigrationsEventBodyEventName: {
|
|
556
|
-
readonly inReview: "inReview";
|
|
557
|
-
readonly approved: "approved";
|
|
558
|
-
readonly disapproved: "disapproved";
|
|
559
|
-
readonly propagationComplete: "propagationComplete";
|
|
560
|
-
readonly propagationTimeout: "propagationTimeout";
|
|
561
|
-
readonly transferComplete: "transferComplete";
|
|
562
|
-
readonly failedCreate: "failedCreate";
|
|
563
|
-
};
|
|
564
|
-
export declare type HostingMigrationsEventBody = {
|
|
565
|
-
/** The migration id that corresponds to CWM */
|
|
566
|
-
migration_id: string;
|
|
567
|
-
event_name: HostingMigrationsEventBodyEventName;
|
|
568
|
-
};
|
|
569
|
-
export declare type HostingMigrations200 = {
|
|
570
|
-
success?: boolean;
|
|
571
|
-
};
|
|
572
|
-
export declare type HostingMigrationsBody = {
|
|
573
|
-
/** The migration id that corresponds to CWM */
|
|
574
|
-
migration_id: string;
|
|
575
|
-
};
|
|
576
|
-
export declare type HostingMigrationStatus200RowsItem = {
|
|
577
|
-
id?: string;
|
|
578
|
-
type?: string;
|
|
579
|
-
subtype?: string;
|
|
580
|
-
status?: string;
|
|
581
|
-
};
|
|
582
|
-
export declare type HostingMigrationStatus200 = {
|
|
583
|
-
rows?: HostingMigrationStatus200RowsItem[];
|
|
584
|
-
};
|
|
585
|
-
export declare type HostingInfoDiskUsage200 = {
|
|
586
|
-
diskused?: string;
|
|
587
|
-
disklimit?: string;
|
|
588
|
-
};
|
|
589
|
-
export declare type HostingInfo200 = {
|
|
590
|
-
ip?: string;
|
|
591
|
-
};
|
|
592
|
-
export declare type HostingFtp200 = {
|
|
593
|
-
status?: number;
|
|
594
|
-
/** Username */
|
|
595
|
-
user?: string;
|
|
596
|
-
};
|
|
597
|
-
export declare type HostingFtpBody = {
|
|
598
|
-
/** Username for FTP account to delete. */
|
|
599
|
-
user: string;
|
|
600
|
-
/** Tear down FTP account home directory. Defaults to false (i.e., do not destroy). WARNING: There are many cases where destroying the ftp directory would be undesirable. */
|
|
601
|
-
destroy?: boolean;
|
|
602
|
-
/** Optional: A note to log alongside the secure_action_log entry. */
|
|
603
|
-
note?: string;
|
|
604
|
-
/** Optional: The entity that initiated the GAP call, eg. i_cluster, admin_user, script, cron, addon_$type($id) */
|
|
605
|
-
source?: string;
|
|
606
|
-
};
|
|
607
|
-
export declare type HostingFtpUpdate200 = {
|
|
608
|
-
status?: number;
|
|
609
|
-
};
|
|
610
|
-
/**
|
|
611
|
-
* Must pass either password or quota.
|
|
612
|
-
*/
|
|
613
|
-
export declare type HostingFtpUpdateBodyUserTypeSet = typeof HostingFtpUpdateBodyUserTypeSet[keyof typeof HostingFtpUpdateBodyUserTypeSet];
|
|
614
|
-
export declare const HostingFtpUpdateBodyUserTypeSet: {
|
|
615
|
-
readonly password: "password";
|
|
616
|
-
readonly quota: "quota";
|
|
617
|
-
};
|
|
618
|
-
export declare type HostingFtpUpdateBody = {
|
|
619
|
-
/** Username for FTP account. */
|
|
620
|
-
user: string;
|
|
621
|
-
/** Update quota for user. Quota value should be greater than or equal to 0. */
|
|
622
|
-
quota?: number;
|
|
623
|
-
/** Update password for user */
|
|
624
|
-
password?: string;
|
|
625
|
-
/** Must pass either password or quota. */
|
|
626
|
-
user_type_set?: HostingFtpUpdateBodyUserTypeSet;
|
|
627
|
-
};
|
|
628
|
-
export declare type HostingFtpAdd200 = {
|
|
629
|
-
user?: string;
|
|
630
|
-
pass?: string;
|
|
631
|
-
};
|
|
632
|
-
export declare type HostingFtpAddBody = {
|
|
633
|
-
/** Optional username. If not included then type is required and will generate a random username. Good for temp ftp user. Do not append domain. */
|
|
634
|
-
user: string;
|
|
635
|
-
/** Optional password. One will be generated if not included */
|
|
636
|
-
pass?: string;
|
|
637
|
-
/** Optional domain. If provided, returns the username as $user@$domain instead of just $user. Either way, FTP logins must still be fully qualified as $user@some-domain-on-account. */
|
|
638
|
-
domain?: string;
|
|
639
|
-
/** Path to FTP folder. Default is /. (will be relative from homedir) */
|
|
640
|
-
folder?: string;
|
|
641
|
-
/** Text to prepended in random username generation. */
|
|
642
|
-
type?: string;
|
|
643
|
-
/** Optional: A note to log alongside the secure_action_log entry. */
|
|
644
|
-
note?: string;
|
|
645
|
-
/** Optional: The entity that initiated the GAP call, eg. i_cluster, admin_user, script, cron, addon_$type($id) */
|
|
646
|
-
source?: string;
|
|
647
|
-
user_type_set?: string;
|
|
648
|
-
};
|
|
649
|
-
export declare type HostingFtpList200SpecialFtpAccountsItem = {
|
|
650
|
-
user?: string;
|
|
651
|
-
homedir?: string;
|
|
652
|
-
type?: string;
|
|
653
|
-
};
|
|
654
|
-
export declare type HostingFtpList200FtpAccountsItem = {
|
|
655
|
-
user?: string;
|
|
656
|
-
homedir?: string;
|
|
657
|
-
type?: string;
|
|
658
|
-
};
|
|
659
|
-
export declare type HostingFtpList200 = {
|
|
660
|
-
ftp_accounts?: HostingFtpList200FtpAccountsItem[];
|
|
661
|
-
special_ftp_accounts?: HostingFtpList200SpecialFtpAccountsItem[];
|
|
662
|
-
};
|
|
663
|
-
export declare type Domains200DomainsItem = {
|
|
664
|
-
docroot: string;
|
|
665
|
-
domain: string;
|
|
666
|
-
type: string;
|
|
667
|
-
id: number;
|
|
668
|
-
};
|
|
669
|
-
export declare type Domains200 = {
|
|
670
|
-
domains: Domains200DomainsItem[];
|
|
671
|
-
};
|
|
672
|
-
export declare type DomainsType = typeof DomainsType[keyof typeof DomainsType];
|
|
673
|
-
export declare const DomainsType: {
|
|
674
|
-
readonly addon: "addon";
|
|
675
|
-
readonly main: "main";
|
|
676
|
-
readonly parked: "parked";
|
|
677
|
-
readonly sub: "sub";
|
|
678
|
-
readonly unassigned: "unassigned";
|
|
679
|
-
};
|
|
680
|
-
export declare type DomainsParams = {
|
|
681
|
-
type?: DomainsType;
|
|
682
|
-
};
|
|
683
|
-
export declare type AddonCloudflare200 = {
|
|
684
|
-
status?: string;
|
|
685
|
-
addon_id?: number;
|
|
686
|
-
};
|
|
687
|
-
export declare type AddonCloudflareBody = {
|
|
688
|
-
/** The domain. */
|
|
689
|
-
domain: string;
|
|
690
|
-
};
|
|
691
|
-
export declare type HostingCapabilities200 = {
|
|
692
|
-
server_controls?: boolean;
|
|
693
|
-
sites?: boolean;
|
|
694
|
-
cpanel?: boolean;
|
|
695
|
-
whm?: boolean;
|
|
696
|
-
advanced_hosting?: boolean;
|
|
697
|
-
};
|
|
698
|
-
export declare type HostingAdvancedSystemConsole200 = {
|
|
699
|
-
url?: string;
|
|
700
|
-
};
|
|
701
|
-
export declare type HostingAdvancedSsoWhm200 = {
|
|
702
|
-
url?: string;
|
|
703
|
-
};
|
|
704
|
-
export declare type HostingAdvancedPassword200 = {
|
|
705
|
-
success?: boolean;
|
|
706
|
-
};
|
|
707
|
-
export declare type HostingAdvancedPasswordBody = {
|
|
708
|
-
/** The username to be updated */
|
|
709
|
-
user?: string;
|
|
710
|
-
/** The password to be updated to */
|
|
711
|
-
password: string;
|
|
712
|
-
};
|
|
713
|
-
export declare type HostingAdvancedServerStatus200Actions = {
|
|
714
|
-
[key: string]: any;
|
|
715
|
-
};
|
|
716
|
-
export declare type HostingAdvancedServerStatus200 = {
|
|
717
|
-
status?: string;
|
|
718
|
-
uptime?: string;
|
|
719
|
-
uptime_seconds?: number;
|
|
720
|
-
actions?: HostingAdvancedServerStatus200Actions;
|
|
721
|
-
};
|
|
722
|
-
export declare type HostingAdvancedServerStatusBody = {
|
|
723
|
-
/** action to be performed */
|
|
724
|
-
action?: string;
|
|
725
|
-
};
|
|
726
|
-
export declare type HostingAdvancedServer200Actions = {
|
|
727
|
-
[key: string]: any;
|
|
728
|
-
};
|
|
729
|
-
export declare type HostingAdvancedServer200 = {
|
|
730
|
-
status?: string;
|
|
731
|
-
uptime?: string;
|
|
732
|
-
uptime_seconds?: number;
|
|
733
|
-
actions?: HostingAdvancedServer200Actions;
|
|
734
|
-
};
|
|
735
|
-
export declare type HostingAdvancedCrontab200RowsItem = {
|
|
736
|
-
command?: string;
|
|
737
|
-
day?: string;
|
|
738
|
-
hour?: string;
|
|
739
|
-
key?: string;
|
|
740
|
-
line?: string;
|
|
741
|
-
minute?: string;
|
|
742
|
-
month?: string;
|
|
743
|
-
type?: string;
|
|
744
|
-
weekday?: string;
|
|
745
|
-
};
|
|
746
|
-
export declare type HostingAdvancedCrontab200 = {
|
|
747
|
-
rows?: HostingAdvancedCrontab200RowsItem[];
|
|
748
|
-
};
|
|
749
|
-
export declare type HostingAddons200RowsItem = {
|
|
750
|
-
id?: string;
|
|
751
|
-
type?: string;
|
|
752
|
-
subtype?: string;
|
|
753
|
-
status?: string;
|
|
754
|
-
status_user?: string;
|
|
755
|
-
};
|
|
756
|
-
export declare type HostingAddons200 = {
|
|
757
|
-
rows?: HostingAddons200RowsItem[];
|
|
758
|
-
};
|
|
759
|
-
export declare type HostingAddonsParams = {
|
|
760
|
-
status?: string;
|
|
761
|
-
subtype?: string;
|
|
762
|
-
type?: string;
|
|
763
|
-
};
|
|
764
|
-
export declare type HostingAccount200 = {
|
|
765
|
-
id?: string;
|
|
766
|
-
account_id?: string;
|
|
767
|
-
brand?: string;
|
|
768
|
-
platform?: string;
|
|
769
|
-
username?: string;
|
|
770
|
-
status?: string;
|
|
771
|
-
type?: string;
|
|
772
|
-
advanced?: boolean;
|
|
773
|
-
plan?: string;
|
|
774
|
-
};
|
|
775
|
-
export declare type AddonsInfo200 = {
|
|
776
|
-
id?: string;
|
|
777
|
-
};
|
|
778
|
-
export declare type AddonsCloudflare200 = {
|
|
779
|
-
status?: string;
|
|
780
|
-
};
|
|
781
|
-
export declare type AddonsSitelockSso200 = {
|
|
782
|
-
site_url?: string;
|
|
783
|
-
sitelock_id?: string;
|
|
784
|
-
url?: string;
|
|
785
|
-
};
|
|
786
|
-
export declare type CodeguardWebsiteBackupRestore200 = {
|
|
787
|
-
status?: string;
|
|
788
|
-
};
|
|
789
|
-
export declare type CodeguardWebsiteBackupRestoreBody = {
|
|
790
|
-
/** The id of the website the given database is associated with. */
|
|
791
|
-
website_id?: number;
|
|
792
|
-
/** The commit id to restore the website from. */
|
|
793
|
-
commit_id?: string;
|
|
794
|
-
};
|
|
795
|
-
export declare type CodeguardWebsiteBackupCreate200 = {
|
|
796
|
-
status?: string;
|
|
797
|
-
};
|
|
798
|
-
export declare type CodeguardWebsiteBackupCreateBody = {
|
|
799
|
-
/** The id for the website to create a backup for. This id can be obtained through a call to the website_list action. */
|
|
800
|
-
website_id?: number;
|
|
801
|
-
};
|
|
802
|
-
export declare type CodeguardWebsiteBackupList200BackupsItem = {
|
|
803
|
-
commit_id?: string;
|
|
804
|
-
event_time?: string;
|
|
805
|
-
modifications?: number;
|
|
806
|
-
new_content?: boolean;
|
|
807
|
-
};
|
|
808
|
-
export declare type CodeguardWebsiteBackupList200 = {
|
|
809
|
-
backups?: CodeguardWebsiteBackupList200BackupsItem[];
|
|
810
|
-
};
|
|
811
|
-
export declare type CodeguardWebsiteBackupListParams = {
|
|
812
|
-
website_id?: number;
|
|
813
|
-
};
|
|
814
|
-
export declare type CodeguardWebsiteList200WebsiteListItemWebsite = {
|
|
815
|
-
id?: number;
|
|
816
|
-
activated?: boolean;
|
|
817
|
-
url?: string;
|
|
818
|
-
};
|
|
819
|
-
export declare type CodeguardWebsiteList200WebsiteListItem = {
|
|
820
|
-
website?: CodeguardWebsiteList200WebsiteListItemWebsite;
|
|
821
|
-
};
|
|
822
|
-
export declare type CodeguardWebsiteList200 = {
|
|
823
|
-
website_list?: CodeguardWebsiteList200WebsiteListItem[];
|
|
824
|
-
};
|
|
825
|
-
export declare type CodeguardPlanInfo200SeatsItem = {
|
|
826
|
-
url?: string;
|
|
827
|
-
activated?: boolean;
|
|
828
|
-
website_id?: number;
|
|
829
|
-
};
|
|
830
|
-
export declare type CodeguardPlanInfo200 = {
|
|
831
|
-
size?: number;
|
|
832
|
-
size_limit?: number;
|
|
833
|
-
seat_count?: number;
|
|
834
|
-
seat_limit?: number;
|
|
835
|
-
status?: string;
|
|
836
|
-
plan_name?: string;
|
|
837
|
-
seats?: CodeguardPlanInfo200SeatsItem[];
|
|
838
|
-
};
|
|
839
|
-
export declare type CodeguardLoginLink200 = {
|
|
840
|
-
link?: string;
|
|
841
|
-
};
|
|
842
|
-
export declare type CodeguardDatabaseBackupRestore200 = {
|
|
843
|
-
status?: string;
|
|
844
|
-
};
|
|
845
|
-
export declare type CodeguardDatabaseBackupRestoreBody = {
|
|
846
|
-
/** The id for the database to create a new backup for. */
|
|
847
|
-
database_id?: number;
|
|
848
|
-
/** The id of the website the given database is associated with. */
|
|
849
|
-
website_id?: number;
|
|
850
|
-
/** The commit_id for the backup to restore */
|
|
851
|
-
commit_id?: string;
|
|
852
|
-
};
|
|
853
|
-
export declare type CodeguardDatabaseBackupCreate200 = {
|
|
854
|
-
status?: string;
|
|
855
|
-
};
|
|
856
|
-
export declare type CodeguardDatabaseBackupCreateBody = {
|
|
857
|
-
/** The id for the database to create a new backup for. */
|
|
858
|
-
database_id?: number;
|
|
859
|
-
/** The id of the website the given database is associated with. */
|
|
860
|
-
website_id?: number;
|
|
861
|
-
};
|
|
862
|
-
export declare type CodeguardDatabaseBackupList200BackupsItem = {
|
|
863
|
-
commit_id?: string;
|
|
864
|
-
event_time?: string;
|
|
865
|
-
};
|
|
866
|
-
export declare type CodeguardDatabaseBackupList200 = {
|
|
867
|
-
backups?: CodeguardDatabaseBackupList200BackupsItem[];
|
|
868
|
-
};
|
|
869
|
-
export declare type CodeguardDatabaseBackupListParams = {
|
|
870
|
-
database_id?: number;
|
|
871
|
-
website_id?: number;
|
|
872
|
-
};
|
|
873
|
-
export declare type CodeguardDatabaseList200DatabasesItemDatabaseBackup = {
|
|
874
|
-
id?: number;
|
|
875
|
-
account?: string;
|
|
876
|
-
website_id?: number;
|
|
877
|
-
commit_id?: string;
|
|
878
|
-
};
|
|
879
|
-
export declare type CodeguardDatabaseList200DatabasesItem = {
|
|
880
|
-
database_backup?: CodeguardDatabaseList200DatabasesItemDatabaseBackup;
|
|
881
|
-
};
|
|
882
|
-
export declare type CodeguardDatabaseList200 = {
|
|
883
|
-
status?: number;
|
|
884
|
-
databases?: CodeguardDatabaseList200DatabasesItem[];
|
|
885
|
-
};
|
|
886
|
-
export declare type CodeguardBackupRestore200 = {
|
|
887
|
-
website_success?: boolean;
|
|
888
|
-
database_success?: boolean;
|
|
889
|
-
};
|
|
890
|
-
export declare type CodeguardBackupRestoreBody = {
|
|
891
|
-
/** The id of the website the given database is associated with. */
|
|
892
|
-
website_id?: number;
|
|
893
|
-
/** The commit id to restore the website from. */
|
|
894
|
-
website_commit_id?: string;
|
|
895
|
-
/** The id of the database the given database is associated with. */
|
|
896
|
-
database_id?: number;
|
|
897
|
-
/** The commit id to restore the database from. */
|
|
898
|
-
database_commit_id?: string;
|
|
899
|
-
};
|
|
900
|
-
export declare type CodeguardBackupDownload200 = {
|
|
901
|
-
status?: string;
|
|
902
|
-
};
|
|
903
|
-
export declare type CodeguardBackupDownloadBody = {
|
|
904
|
-
/** The id of the website the given database is associated with. */
|
|
905
|
-
website_id?: number;
|
|
906
|
-
/** The commit id to restore the website from. */
|
|
907
|
-
website_commit_id?: string;
|
|
908
|
-
/** The commit id to restore the database from. */
|
|
909
|
-
database_commit_id?: string;
|
|
910
|
-
};
|
|
911
|
-
export declare type CodeguardBackupCreate200 = {
|
|
912
|
-
status?: string;
|
|
913
|
-
};
|
|
914
|
-
export declare type CodeguardBackupCreateBody = {
|
|
915
|
-
/** The id of the website the given database is associated with. */
|
|
916
|
-
website_id?: number;
|
|
917
|
-
/** The id of the database the given database is associated with. */
|
|
918
|
-
database_id?: number;
|
|
919
|
-
};
|
|
920
|
-
export declare type CodeguardBackupList200BackupsItemDatabaseBackupsItem = {
|
|
921
|
-
id?: number;
|
|
922
|
-
commit_id?: string;
|
|
923
|
-
event_time?: string;
|
|
924
|
-
recommended?: boolean;
|
|
925
|
-
};
|
|
926
|
-
export declare type CodeguardBackupList200BackupsItem = {
|
|
927
|
-
website_commit_id?: string;
|
|
928
|
-
event_time?: string;
|
|
929
|
-
database_backups?: CodeguardBackupList200BackupsItemDatabaseBackupsItem[];
|
|
930
|
-
};
|
|
931
|
-
export declare type CodeguardBackupList200 = {
|
|
932
|
-
backups?: CodeguardBackupList200BackupsItem[];
|
|
933
|
-
};
|
|
934
|
-
export declare type CodeguardBackupListParams = {
|
|
935
|
-
website_id: number;
|
|
936
|
-
};
|
|
937
|
-
export interface SitesAutoupdatesResponse {
|
|
938
|
-
plugins?: boolean | null;
|
|
939
|
-
core?: boolean | null;
|
|
940
|
-
themes?: boolean | null;
|
|
941
|
-
}
|
|
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, HostingAdvancedCrontab200, HostingAdvancedServer200, HostingAdvancedServerStatus200, HostingAdvancedServerStatusBody, HostingAdvancedPassword200, HostingAdvancedPasswordBody, HostingAdvancedSsoWhm200, HostingAdvancedSystemConsole200, HostingCapabilities200, AddonCloudflare200, AddonCloudflareBody, DbAdd200, DbAddBody, Db200, DbBody, DbList200, Domains200, DomainsParams, HostingFtpList200, HostingFtpAdd200, HostingFtpAddBody, HostingFtpUpdate200, HostingFtpUpdateBody, 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 './index.schemas';
|
|
942
12
|
declare type AwaitedInput<T> = PromiseLike<T> | T;
|
|
943
13
|
declare type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
944
14
|
/**
|
|
@@ -1360,6 +430,56 @@ export declare const useAddonCloudflare: <TError = AxiosError<unknown, any>, TCo
|
|
|
1360
430
|
hostingId: number;
|
|
1361
431
|
data: AddonCloudflareBody;
|
|
1362
432
|
}, TContext>;
|
|
433
|
+
/**
|
|
434
|
+
* Add a new db to an account
|
|
435
|
+
* @summary Create a database for an account
|
|
436
|
+
*/
|
|
437
|
+
export declare const dbAdd: (hostingId: number, dbAddBody: DbAddBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<DbAdd200>>;
|
|
438
|
+
export declare type DbAddMutationResult = NonNullable<Awaited<ReturnType<typeof dbAdd>>>;
|
|
439
|
+
export declare type DbAddMutationBody = DbAddBody;
|
|
440
|
+
export declare type DbAddMutationError = AxiosError<unknown>;
|
|
441
|
+
export declare const useDbAdd: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
442
|
+
mutation?: UseMutationOptions<AxiosResponse<DbAdd200, any>, TError, {
|
|
443
|
+
hostingId: number;
|
|
444
|
+
data: DbAddBody;
|
|
445
|
+
}, TContext> | undefined;
|
|
446
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
447
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<DbAdd200, any>, TError, {
|
|
448
|
+
hostingId: number;
|
|
449
|
+
data: DbAddBody;
|
|
450
|
+
}, TContext>;
|
|
451
|
+
/**
|
|
452
|
+
* Delete db account
|
|
453
|
+
* @summary Delete db account
|
|
454
|
+
*/
|
|
455
|
+
export declare const db: (hostingId: number, dbBody: DbBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<Db200>>;
|
|
456
|
+
export declare type DbMutationResult = NonNullable<Awaited<ReturnType<typeof db>>>;
|
|
457
|
+
export declare type DbMutationBody = DbBody;
|
|
458
|
+
export declare type DbMutationError = AxiosError<unknown>;
|
|
459
|
+
export declare const useDb: <TError = AxiosError<unknown, any>, TContext = unknown>(options?: {
|
|
460
|
+
mutation?: UseMutationOptions<AxiosResponse<Db200, any>, TError, {
|
|
461
|
+
hostingId: number;
|
|
462
|
+
data: DbBody;
|
|
463
|
+
}, TContext> | undefined;
|
|
464
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
465
|
+
} | undefined) => import("@tanstack/react-query").UseMutationResult<AxiosResponse<Db200, any>, TError, {
|
|
466
|
+
hostingId: number;
|
|
467
|
+
data: DbBody;
|
|
468
|
+
}, TContext>;
|
|
469
|
+
/**
|
|
470
|
+
* List all DB name
|
|
471
|
+
* @summary Get list of database name
|
|
472
|
+
*/
|
|
473
|
+
export declare const dbList: (hostingId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<DbList200>>;
|
|
474
|
+
export declare const getDbListQueryKey: (hostingId: number) => string[];
|
|
475
|
+
export declare type DbListQueryResult = NonNullable<Awaited<ReturnType<typeof dbList>>>;
|
|
476
|
+
export declare type DbListQueryError = AxiosError<unknown>;
|
|
477
|
+
export declare const useDbList: <TData = AxiosResponse<DbList200, any>, TError = AxiosError<unknown, any>>(hostingId: number, options?: {
|
|
478
|
+
query?: UseQueryOptions<AxiosResponse<DbList200, any>, TError, TData, QueryKey> | undefined;
|
|
479
|
+
axios?: AxiosRequestConfig<any> | undefined;
|
|
480
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
481
|
+
queryKey: QueryKey;
|
|
482
|
+
};
|
|
1363
483
|
/**
|
|
1364
484
|
* Returns a list of domains
|
|
1365
485
|
* @summary domain list
|
|
@@ -2420,542 +1540,4 @@ export declare const useSshKeyListV2: <TData = AxiosResponse<SshKeyListV2200, an
|
|
|
2420
1540
|
} | undefined) => UseQueryResult<TData, TError> & {
|
|
2421
1541
|
queryKey: QueryKey;
|
|
2422
1542
|
};
|
|
2423
|
-
export declare const getCodeguardBackupListMock: () => {
|
|
2424
|
-
backups: {
|
|
2425
|
-
website_commit_id: string | undefined;
|
|
2426
|
-
event_time: string | undefined;
|
|
2427
|
-
database_backups: {
|
|
2428
|
-
id: number | undefined;
|
|
2429
|
-
commit_id: string | undefined;
|
|
2430
|
-
event_time: string | undefined;
|
|
2431
|
-
recommended: boolean | undefined;
|
|
2432
|
-
}[] | undefined;
|
|
2433
|
-
}[] | undefined;
|
|
2434
|
-
};
|
|
2435
|
-
export declare const getCodeguardBackupCreateMock: () => {
|
|
2436
|
-
status: string | undefined;
|
|
2437
|
-
};
|
|
2438
|
-
export declare const getCodeguardBackupDownloadMock: () => {
|
|
2439
|
-
status: string | undefined;
|
|
2440
|
-
};
|
|
2441
|
-
export declare const getCodeguardBackupRestoreMock: () => {
|
|
2442
|
-
website_success: boolean | undefined;
|
|
2443
|
-
database_success: boolean | undefined;
|
|
2444
|
-
};
|
|
2445
|
-
export declare const getCodeguardDatabaseListMock: () => {
|
|
2446
|
-
status: number | undefined;
|
|
2447
|
-
databases: {
|
|
2448
|
-
database_backup: {
|
|
2449
|
-
id: number | undefined;
|
|
2450
|
-
account: string | undefined;
|
|
2451
|
-
website_id: number | undefined;
|
|
2452
|
-
commit_id: string | undefined;
|
|
2453
|
-
} | undefined;
|
|
2454
|
-
}[] | undefined;
|
|
2455
|
-
};
|
|
2456
|
-
export declare const getCodeguardDatabaseBackupListMock: () => {
|
|
2457
|
-
backups: {
|
|
2458
|
-
commit_id: string | undefined;
|
|
2459
|
-
event_time: string | undefined;
|
|
2460
|
-
}[] | undefined;
|
|
2461
|
-
};
|
|
2462
|
-
export declare const getCodeguardDatabaseBackupCreateMock: () => {
|
|
2463
|
-
status: string | undefined;
|
|
2464
|
-
};
|
|
2465
|
-
export declare const getCodeguardDatabaseBackupRestoreMock: () => {
|
|
2466
|
-
status: string | undefined;
|
|
2467
|
-
};
|
|
2468
|
-
export declare const getCodeguardLoginLinkMock: () => {
|
|
2469
|
-
link: string | undefined;
|
|
2470
|
-
};
|
|
2471
|
-
export declare const getCodeguardPlanInfoMock: () => {
|
|
2472
|
-
size: number | undefined;
|
|
2473
|
-
size_limit: number | undefined;
|
|
2474
|
-
seat_count: number | undefined;
|
|
2475
|
-
seat_limit: number | undefined;
|
|
2476
|
-
status: string | undefined;
|
|
2477
|
-
plan_name: string | undefined;
|
|
2478
|
-
seats: {
|
|
2479
|
-
url: string | undefined;
|
|
2480
|
-
activated: boolean | undefined;
|
|
2481
|
-
website_id: number | undefined;
|
|
2482
|
-
}[] | undefined;
|
|
2483
|
-
};
|
|
2484
|
-
export declare const getCodeguardWebsiteListMock: () => {
|
|
2485
|
-
website_list: {
|
|
2486
|
-
website: {
|
|
2487
|
-
id: number | undefined;
|
|
2488
|
-
activated: boolean | undefined;
|
|
2489
|
-
url: string | undefined;
|
|
2490
|
-
} | undefined;
|
|
2491
|
-
}[] | undefined;
|
|
2492
|
-
};
|
|
2493
|
-
export declare const getCodeguardWebsiteBackupListMock: () => {
|
|
2494
|
-
backups: {
|
|
2495
|
-
commit_id: string | undefined;
|
|
2496
|
-
event_time: string | undefined;
|
|
2497
|
-
modifications: number | undefined;
|
|
2498
|
-
new_content: boolean | undefined;
|
|
2499
|
-
}[] | undefined;
|
|
2500
|
-
};
|
|
2501
|
-
export declare const getCodeguardWebsiteBackupCreateMock: () => {
|
|
2502
|
-
status: string | undefined;
|
|
2503
|
-
};
|
|
2504
|
-
export declare const getCodeguardWebsiteBackupRestoreMock: () => {
|
|
2505
|
-
status: string | undefined;
|
|
2506
|
-
};
|
|
2507
|
-
export declare const getAddonsSitelockSsoMock: () => {
|
|
2508
|
-
site_url: string | undefined;
|
|
2509
|
-
sitelock_id: string | undefined;
|
|
2510
|
-
url: string | undefined;
|
|
2511
|
-
};
|
|
2512
|
-
export declare const getAddonsCloudflareMock: () => {
|
|
2513
|
-
status: string | undefined;
|
|
2514
|
-
};
|
|
2515
|
-
export declare const getAddonsInfoMock: () => {
|
|
2516
|
-
id: string | undefined;
|
|
2517
|
-
};
|
|
2518
|
-
export declare const getHostingAccountMock: () => {
|
|
2519
|
-
id: string | undefined;
|
|
2520
|
-
account_id: string | undefined;
|
|
2521
|
-
brand: string | undefined;
|
|
2522
|
-
platform: string | undefined;
|
|
2523
|
-
username: string | undefined;
|
|
2524
|
-
status: string | undefined;
|
|
2525
|
-
type: string | undefined;
|
|
2526
|
-
advanced: boolean | undefined;
|
|
2527
|
-
plan: string | undefined;
|
|
2528
|
-
};
|
|
2529
|
-
export declare const getHostingAddonsMock: () => {
|
|
2530
|
-
rows: {
|
|
2531
|
-
id: string | undefined;
|
|
2532
|
-
type: string | undefined;
|
|
2533
|
-
subtype: string | undefined;
|
|
2534
|
-
status: string | undefined;
|
|
2535
|
-
status_user: string | undefined;
|
|
2536
|
-
}[] | undefined;
|
|
2537
|
-
};
|
|
2538
|
-
export declare const getHostingAdvancedCrontabMock: () => {
|
|
2539
|
-
rows: {
|
|
2540
|
-
command: string | undefined;
|
|
2541
|
-
day: string | undefined;
|
|
2542
|
-
hour: string | undefined;
|
|
2543
|
-
key: string | undefined;
|
|
2544
|
-
line: string | undefined;
|
|
2545
|
-
minute: string | undefined;
|
|
2546
|
-
month: string | undefined;
|
|
2547
|
-
type: string | undefined;
|
|
2548
|
-
weekday: string | undefined;
|
|
2549
|
-
}[] | undefined;
|
|
2550
|
-
};
|
|
2551
|
-
export declare const getHostingAdvancedServerMock: () => {
|
|
2552
|
-
status: string | undefined;
|
|
2553
|
-
uptime: string | undefined;
|
|
2554
|
-
uptime_seconds: number | undefined;
|
|
2555
|
-
actions: {} | undefined;
|
|
2556
|
-
};
|
|
2557
|
-
export declare const getHostingAdvancedServerStatusMock: () => {
|
|
2558
|
-
status: string | undefined;
|
|
2559
|
-
uptime: string | undefined;
|
|
2560
|
-
uptime_seconds: number | undefined;
|
|
2561
|
-
actions: {} | undefined;
|
|
2562
|
-
};
|
|
2563
|
-
export declare const getHostingAdvancedPasswordMock: () => {
|
|
2564
|
-
success: boolean | undefined;
|
|
2565
|
-
};
|
|
2566
|
-
export declare const getHostingAdvancedSsoWhmMock: () => {
|
|
2567
|
-
url: string | undefined;
|
|
2568
|
-
};
|
|
2569
|
-
export declare const getHostingAdvancedSystemConsoleMock: () => {
|
|
2570
|
-
url: string | undefined;
|
|
2571
|
-
};
|
|
2572
|
-
export declare const getHostingCapabilitiesMock: () => {
|
|
2573
|
-
server_controls: boolean | undefined;
|
|
2574
|
-
sites: boolean | undefined;
|
|
2575
|
-
cpanel: boolean | undefined;
|
|
2576
|
-
whm: boolean | undefined;
|
|
2577
|
-
advanced_hosting: boolean | undefined;
|
|
2578
|
-
};
|
|
2579
|
-
export declare const getAddonCloudflareMock: () => {
|
|
2580
|
-
status: string | undefined;
|
|
2581
|
-
addon_id: number | undefined;
|
|
2582
|
-
};
|
|
2583
|
-
export declare const getDomainsMock: () => {
|
|
2584
|
-
domains: {
|
|
2585
|
-
docroot: string;
|
|
2586
|
-
domain: string;
|
|
2587
|
-
type: string;
|
|
2588
|
-
id: number;
|
|
2589
|
-
}[];
|
|
2590
|
-
};
|
|
2591
|
-
export declare const getHostingFtpListMock: () => {
|
|
2592
|
-
ftp_accounts: {
|
|
2593
|
-
user: string | undefined;
|
|
2594
|
-
homedir: string | undefined;
|
|
2595
|
-
type: string | undefined;
|
|
2596
|
-
}[] | undefined;
|
|
2597
|
-
special_ftp_accounts: {
|
|
2598
|
-
user: string | undefined;
|
|
2599
|
-
homedir: string | undefined;
|
|
2600
|
-
type: string | undefined;
|
|
2601
|
-
}[] | undefined;
|
|
2602
|
-
};
|
|
2603
|
-
export declare const getHostingFtpAddMock: () => {
|
|
2604
|
-
user: string | undefined;
|
|
2605
|
-
pass: string | undefined;
|
|
2606
|
-
};
|
|
2607
|
-
export declare const getHostingFtpUpdateMock: () => {
|
|
2608
|
-
status: number | undefined;
|
|
2609
|
-
};
|
|
2610
|
-
export declare const getHostingFtpMock: () => {
|
|
2611
|
-
status: number | undefined;
|
|
2612
|
-
user: string | undefined;
|
|
2613
|
-
};
|
|
2614
|
-
export declare const getHostingInfoMock: () => {
|
|
2615
|
-
ip: string | undefined;
|
|
2616
|
-
};
|
|
2617
|
-
export declare const getHostingInfoDiskUsageMock: () => {
|
|
2618
|
-
diskused: string | undefined;
|
|
2619
|
-
disklimit: string | undefined;
|
|
2620
|
-
};
|
|
2621
|
-
export declare const getHostingMigrationStatusMock: () => {
|
|
2622
|
-
rows: {
|
|
2623
|
-
id: string | undefined;
|
|
2624
|
-
type: string | undefined;
|
|
2625
|
-
subtype: string | undefined;
|
|
2626
|
-
status: string | undefined;
|
|
2627
|
-
}[] | undefined;
|
|
2628
|
-
};
|
|
2629
|
-
export declare const getHostingMigrationsMock: () => {
|
|
2630
|
-
success: boolean | undefined;
|
|
2631
|
-
};
|
|
2632
|
-
export declare const getHostingMigrationsEventMock: () => {
|
|
2633
|
-
success: boolean | undefined;
|
|
2634
|
-
};
|
|
2635
|
-
export declare const getHostingMigrationInfoMock: () => {
|
|
2636
|
-
migration_id: string | undefined;
|
|
2637
|
-
domain: string | undefined;
|
|
2638
|
-
site_url: string | undefined;
|
|
2639
|
-
hostname: string | undefined;
|
|
2640
|
-
feasible: string | undefined;
|
|
2641
|
-
source_type: string | undefined;
|
|
2642
|
-
product_type: string | undefined;
|
|
2643
|
-
incoming_domain: string | undefined;
|
|
2644
|
-
};
|
|
2645
|
-
export declare const getHostingMigrationSiteScanStatusMock: () => {
|
|
2646
|
-
transferable: boolean | undefined;
|
|
2647
|
-
callback_url: string | undefined;
|
|
2648
|
-
};
|
|
2649
|
-
export declare const getHostingNameserversMock: () => {
|
|
2650
|
-
nameservers: string[];
|
|
2651
|
-
};
|
|
2652
|
-
export declare const getHostingShellToggleMock: () => {
|
|
2653
|
-
enabled: boolean | undefined;
|
|
2654
|
-
};
|
|
2655
|
-
export declare const getHostingShellInfoMock: () => {
|
|
2656
|
-
enabled: boolean | undefined;
|
|
2657
|
-
};
|
|
2658
|
-
export declare const getHostingSitesMock: () => {
|
|
2659
|
-
n_rows: number | undefined;
|
|
2660
|
-
n_pages: number | undefined;
|
|
2661
|
-
limit: number | undefined;
|
|
2662
|
-
max_sites: number | null | undefined;
|
|
2663
|
-
used_sites: number | undefined;
|
|
2664
|
-
available_sites: number | undefined;
|
|
2665
|
-
rows: {
|
|
2666
|
-
id: string | undefined;
|
|
2667
|
-
name: string | undefined;
|
|
2668
|
-
url: string | undefined;
|
|
2669
|
-
docroot: string | undefined;
|
|
2670
|
-
status: string | undefined;
|
|
2671
|
-
pending_url: string | undefined;
|
|
2672
|
-
meta: {
|
|
2673
|
-
pending_url: string | undefined;
|
|
2674
|
-
} | undefined;
|
|
2675
|
-
}[] | undefined;
|
|
2676
|
-
};
|
|
2677
|
-
export declare const getHostingSiteAddMock: () => {
|
|
2678
|
-
id: number | undefined;
|
|
2679
|
-
status: string | undefined;
|
|
2680
|
-
success: boolean;
|
|
2681
|
-
};
|
|
2682
|
-
export declare const getHostingSshInfoMock: () => {
|
|
2683
|
-
status: string | undefined;
|
|
2684
|
-
success: boolean | undefined;
|
|
2685
|
-
};
|
|
2686
|
-
export declare const getSshKeyFetchMock: () => {
|
|
2687
|
-
key_name: string | undefined;
|
|
2688
|
-
key: string | undefined;
|
|
2689
|
-
type: string | undefined;
|
|
2690
|
-
};
|
|
2691
|
-
export declare const getSshKeyImportMock: () => {
|
|
2692
|
-
key_name: string | undefined;
|
|
2693
|
-
};
|
|
2694
|
-
export declare const getSshKeyListMock: () => {
|
|
2695
|
-
keys: {
|
|
2696
|
-
file: string | undefined;
|
|
2697
|
-
haspub: number | undefined;
|
|
2698
|
-
key: string | undefined;
|
|
2699
|
-
name: string | undefined;
|
|
2700
|
-
}[] | undefined;
|
|
2701
|
-
};
|
|
2702
|
-
export declare const getSshKeyMock: () => {
|
|
2703
|
-
deleted: number | undefined;
|
|
2704
|
-
key_name: string | undefined;
|
|
2705
|
-
};
|
|
2706
|
-
export declare const getSshKeyGenerateMock: () => {
|
|
2707
|
-
key_name: string | undefined;
|
|
2708
|
-
private_key_path: string | undefined;
|
|
2709
|
-
public_key_path: string | undefined;
|
|
2710
|
-
};
|
|
2711
|
-
export declare const getSsoMock: () => {
|
|
2712
|
-
url: string;
|
|
2713
|
-
};
|
|
2714
|
-
export declare const getSitesListMock: () => {
|
|
2715
|
-
items: {
|
|
2716
|
-
id: string | undefined;
|
|
2717
|
-
name: string | undefined;
|
|
2718
|
-
url: string | undefined;
|
|
2719
|
-
docroot: string | undefined;
|
|
2720
|
-
status: string | undefined;
|
|
2721
|
-
}[] | undefined;
|
|
2722
|
-
};
|
|
2723
|
-
export declare const getSitesInfoMock: () => {
|
|
2724
|
-
id: string;
|
|
2725
|
-
docroot: string;
|
|
2726
|
-
uuid: string;
|
|
2727
|
-
date_added: string;
|
|
2728
|
-
date_modified: string;
|
|
2729
|
-
name: string;
|
|
2730
|
-
type: string;
|
|
2731
|
-
subtype: string;
|
|
2732
|
-
status: string;
|
|
2733
|
-
url: string;
|
|
2734
|
-
version: string;
|
|
2735
|
-
versionLatest: string | undefined;
|
|
2736
|
-
php_version: string | undefined;
|
|
2737
|
-
updatable: boolean | undefined;
|
|
2738
|
-
pending_url: string | undefined;
|
|
2739
|
-
meta: {
|
|
2740
|
-
pending_url: string | undefined;
|
|
2741
|
-
} | undefined;
|
|
2742
|
-
};
|
|
2743
|
-
export declare const getSiteUpdateMock: () => {
|
|
2744
|
-
success: boolean;
|
|
2745
|
-
};
|
|
2746
|
-
export declare const getSiteMock: () => {
|
|
2747
|
-
success: boolean;
|
|
2748
|
-
};
|
|
2749
|
-
export declare const getSitesAutoupdatesInfoMock: () => {
|
|
2750
|
-
plugins: boolean | undefined;
|
|
2751
|
-
core: boolean | undefined;
|
|
2752
|
-
themes: boolean | undefined;
|
|
2753
|
-
};
|
|
2754
|
-
export declare const getSitesAutoupdatesUpdateMock: () => {
|
|
2755
|
-
plugins: boolean | undefined;
|
|
2756
|
-
core: boolean | undefined;
|
|
2757
|
-
themes: boolean | undefined;
|
|
2758
|
-
};
|
|
2759
|
-
export declare const getSitesBackupsMock: () => {
|
|
2760
|
-
has_backups: boolean | undefined;
|
|
2761
|
-
};
|
|
2762
|
-
export declare const getSitesHasBackupsMock: () => {
|
|
2763
|
-
has_backups: boolean | undefined;
|
|
2764
|
-
};
|
|
2765
|
-
export declare const getSitesBackupsDetailsMock: () => {
|
|
2766
|
-
codeguard: {
|
|
2767
|
-
addon_id: string | undefined;
|
|
2768
|
-
status: boolean | undefined;
|
|
2769
|
-
seats_available: number | undefined;
|
|
2770
|
-
seats_count: number | undefined;
|
|
2771
|
-
website_id: string | null | undefined;
|
|
2772
|
-
database_id: string | null | undefined;
|
|
2773
|
-
activated: boolean | undefined;
|
|
2774
|
-
url: string | null | undefined;
|
|
2775
|
-
} | undefined;
|
|
2776
|
-
jetpack: {
|
|
2777
|
-
plugin_exists: boolean | undefined;
|
|
2778
|
-
addon_exists: boolean | undefined;
|
|
2779
|
-
} | undefined;
|
|
2780
|
-
};
|
|
2781
|
-
export declare const getJetpackBackupStatusMock: () => {
|
|
2782
|
-
has_active_plugin: boolean | undefined;
|
|
2783
|
-
has_active_addon: boolean | undefined;
|
|
2784
|
-
};
|
|
2785
|
-
export declare const getSitesDnsMock: () => {
|
|
2786
|
-
success: boolean | undefined;
|
|
2787
|
-
source: string | undefined;
|
|
2788
|
-
records: {
|
|
2789
|
-
name: string | undefined;
|
|
2790
|
-
value: string | undefined;
|
|
2791
|
-
type: string | undefined;
|
|
2792
|
-
}[] | undefined;
|
|
2793
|
-
};
|
|
2794
|
-
export declare const getSitesDomainMock: () => {
|
|
2795
|
-
connected: boolean | undefined;
|
|
2796
|
-
a_match: boolean | undefined;
|
|
2797
|
-
nameserver_match: boolean | undefined;
|
|
2798
|
-
detected: {
|
|
2799
|
-
a: string[] | undefined;
|
|
2800
|
-
ns: string[] | undefined;
|
|
2801
|
-
} | undefined;
|
|
2802
|
-
wanted: {
|
|
2803
|
-
a: string[] | undefined;
|
|
2804
|
-
ns: string[] | undefined;
|
|
2805
|
-
} | undefined;
|
|
2806
|
-
};
|
|
2807
|
-
export declare const getSitesDomainUrlMock: () => {
|
|
2808
|
-
success: boolean | undefined;
|
|
2809
|
-
};
|
|
2810
|
-
export declare const getSitesPerformanceCachepurgeMock: () => {
|
|
2811
|
-
success: boolean | undefined;
|
|
2812
|
-
};
|
|
2813
|
-
export declare const getSitesPerformanceEnduranceCacheLevelStatusMock: () => {
|
|
2814
|
-
endurance_cache_level: number | undefined;
|
|
2815
|
-
};
|
|
2816
|
-
export declare const getSitesPerformanceEnduranceCacheLevelMock: () => {
|
|
2817
|
-
options: {} | undefined;
|
|
2818
|
-
};
|
|
2819
|
-
export declare const getSitesPerformanceEndurancePageCacheMock: () => {
|
|
2820
|
-
result: string | undefined;
|
|
2821
|
-
status: string | undefined;
|
|
2822
|
-
};
|
|
2823
|
-
export declare const getSitePluginsMock: () => {
|
|
2824
|
-
subtype: string;
|
|
2825
|
-
auto_update: boolean;
|
|
2826
|
-
plugins: {
|
|
2827
|
-
id: string;
|
|
2828
|
-
status: string;
|
|
2829
|
-
title: string;
|
|
2830
|
-
update: boolean;
|
|
2831
|
-
}[];
|
|
2832
|
-
};
|
|
2833
|
-
export declare const getSitePluginsAutoupdateMock: () => {
|
|
2834
|
-
success: boolean;
|
|
2835
|
-
};
|
|
2836
|
-
export declare const getSitePluginsToggleMock: () => {
|
|
2837
|
-
success: boolean;
|
|
2838
|
-
};
|
|
2839
|
-
export declare const getSitePluginsUpdateMock: () => {
|
|
2840
|
-
success: boolean;
|
|
2841
|
-
};
|
|
2842
|
-
export declare const getResetSiteMock: () => {
|
|
2843
|
-
site_id: string | undefined;
|
|
2844
|
-
status: string | undefined;
|
|
2845
|
-
success: boolean;
|
|
2846
|
-
};
|
|
2847
|
-
export declare const getSitesSecurityCheckCoreMock: () => {
|
|
2848
|
-
results: string | undefined;
|
|
2849
|
-
success: number | undefined;
|
|
2850
|
-
};
|
|
2851
|
-
export declare const getSitesSecurityResetCoreFilesMock: () => {
|
|
2852
|
-
results: string | undefined;
|
|
2853
|
-
success: number | undefined;
|
|
2854
|
-
};
|
|
2855
|
-
export declare const getSitesSecurityHttpsRedirectionStatusMock: () => {
|
|
2856
|
-
success: number | undefined;
|
|
2857
|
-
redirection_status: number | undefined;
|
|
2858
|
-
message: string | undefined;
|
|
2859
|
-
};
|
|
2860
|
-
export declare const getSitesSecurityHttpsEnableDisableSslMock: () => {
|
|
2861
|
-
success: number | undefined;
|
|
2862
|
-
redirection_status: number | undefined;
|
|
2863
|
-
message: string | undefined;
|
|
2864
|
-
};
|
|
2865
|
-
export declare const getSitesSecuritySitelockMock: () => {
|
|
2866
|
-
addon_id: number | undefined;
|
|
2867
|
-
plan: string | undefined;
|
|
2868
|
-
success: number | undefined;
|
|
2869
|
-
subscription_id: string | undefined;
|
|
2870
|
-
upgrade_levels: string[] | undefined;
|
|
2871
|
-
};
|
|
2872
|
-
export declare const getSitesSecuritySslAcmeMock: () => {
|
|
2873
|
-
success: number | undefined;
|
|
2874
|
-
message: string | undefined;
|
|
2875
|
-
};
|
|
2876
|
-
export declare const getSitesSecuritySslStatusMock: () => {
|
|
2877
|
-
status: string | undefined;
|
|
2878
|
-
message: string | undefined;
|
|
2879
|
-
};
|
|
2880
|
-
export declare const getSiteSettingsAutoupdatePluginsMock: () => {
|
|
2881
|
-
status: number | undefined;
|
|
2882
|
-
};
|
|
2883
|
-
export declare const getSitesSettingsAutoupdatesMock: () => {
|
|
2884
|
-
auto_update_plugin: boolean | undefined;
|
|
2885
|
-
auto_update_theme: boolean | undefined;
|
|
2886
|
-
auto_update_core: boolean | undefined;
|
|
2887
|
-
};
|
|
2888
|
-
export declare const getSitesSettingsAutoupdatesCoreMock: () => {
|
|
2889
|
-
success: number | undefined;
|
|
2890
|
-
};
|
|
2891
|
-
export declare const getSitesSettingsAutoupdatesThemeMock: () => {
|
|
2892
|
-
success: number | undefined;
|
|
2893
|
-
};
|
|
2894
|
-
export declare const getSitesSettingsComingSoonMock: () => {
|
|
2895
|
-
enable: boolean | undefined;
|
|
2896
|
-
};
|
|
2897
|
-
export declare const getSitesSettingsComingSoonToggleMock: () => {
|
|
2898
|
-
success: number | undefined;
|
|
2899
|
-
};
|
|
2900
|
-
export declare const getSitesSettingsDebugMock: () => {
|
|
2901
|
-
status: number | undefined;
|
|
2902
|
-
};
|
|
2903
|
-
export declare const getSitesSettingsDebugToggleMock: () => {
|
|
2904
|
-
success: number | undefined;
|
|
2905
|
-
};
|
|
2906
|
-
export declare const getSitesSettingsPhpVersionUpdateMock: () => {
|
|
2907
|
-
success: number | undefined;
|
|
2908
|
-
};
|
|
2909
|
-
export declare const getSitesSettingsPhpVersionsMock: () => {
|
|
2910
|
-
versions: string[] | undefined;
|
|
2911
|
-
};
|
|
2912
|
-
export declare const getSitesSsoMock: () => {
|
|
2913
|
-
sso: string | undefined;
|
|
2914
|
-
};
|
|
2915
|
-
export declare const getSiteUsersMock: () => {
|
|
2916
|
-
users: {
|
|
2917
|
-
display_name: string | undefined;
|
|
2918
|
-
id: number;
|
|
2919
|
-
meta: {
|
|
2920
|
-
maestro_web_pro: string | undefined;
|
|
2921
|
-
maestro_wpp_identifier: string | undefined;
|
|
2922
|
-
} | undefined;
|
|
2923
|
-
post_count: number | undefined;
|
|
2924
|
-
role: string;
|
|
2925
|
-
user_email: string;
|
|
2926
|
-
user_id: number;
|
|
2927
|
-
user_login: string;
|
|
2928
|
-
user_nicename: string;
|
|
2929
|
-
}[];
|
|
2930
|
-
};
|
|
2931
|
-
export declare const getSitesVersionMock: () => {
|
|
2932
|
-
current: string | undefined;
|
|
2933
|
-
latest: string | undefined;
|
|
2934
|
-
update: boolean | undefined;
|
|
2935
|
-
};
|
|
2936
|
-
export declare const getHostingSitesV2Mock: () => {
|
|
2937
|
-
total: number | undefined;
|
|
2938
|
-
page: number | undefined;
|
|
2939
|
-
limit: number | undefined;
|
|
2940
|
-
max_sites: number | null | undefined;
|
|
2941
|
-
used_sites: number | undefined;
|
|
2942
|
-
available_sites: number | null | undefined;
|
|
2943
|
-
items: {
|
|
2944
|
-
id: string | undefined;
|
|
2945
|
-
name: string | undefined;
|
|
2946
|
-
url: string | undefined;
|
|
2947
|
-
docroot: string | undefined;
|
|
2948
|
-
status: string | undefined;
|
|
2949
|
-
pending_url: string | undefined;
|
|
2950
|
-
}[] | undefined;
|
|
2951
|
-
};
|
|
2952
|
-
export declare const getSshKeyListV2Mock: () => {
|
|
2953
|
-
rows: {
|
|
2954
|
-
name: string | undefined;
|
|
2955
|
-
type: string | undefined;
|
|
2956
|
-
mtime: string | undefined;
|
|
2957
|
-
key: string | undefined;
|
|
2958
|
-
}[] | undefined;
|
|
2959
|
-
};
|
|
2960
|
-
export declare const getHostingUAPIMSW: () => import("msw").RestHandler<import("msw/lib/glossary-58eca5a8").M<import("msw/lib/glossary-58eca5a8").c>>[];
|
|
2961
1543
|
export {};
|