@newfold/huapi-js 2.1437.0 → 2.1441.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4967 @@
1
+ /**
2
+ * Generated by orval v7.1.1 🍺
3
+ * Do not edit manually.
4
+ * Hosting UAPI
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.1441.0
7
+ */
8
+ export declare type SshKeyListV4200RowsItem = {
9
+ authorize?: boolean;
10
+ created_at?: string;
11
+ name?: string;
12
+ type?: string;
13
+ };
14
+ export declare type SshKeyListV4200 = {
15
+ rows?: SshKeyListV4200RowsItem[];
16
+ };
17
+ export declare type SitesListV3200 = {
18
+ items?: SiteInfoResponseModelV2[];
19
+ /** page size */
20
+ limit?: number;
21
+ /** current page number */
22
+ page?: number;
23
+ /** total number of pages */
24
+ pages?: number;
25
+ /** total number of sites */
26
+ rows?: number;
27
+ /** total number of sites returned */
28
+ total?: number;
29
+ };
30
+ export declare type SitesListV3Params = {
31
+ limit?: number;
32
+ page?: number;
33
+ search?: string;
34
+ };
35
+ export declare type SshKeyListV3200RowsItem = {
36
+ authorize?: boolean;
37
+ mtime?: string;
38
+ name?: string;
39
+ type?: string;
40
+ };
41
+ export declare type SshKeyListV3200 = {
42
+ rows?: SshKeyListV3200RowsItem[];
43
+ };
44
+ export declare type SshKeyImportV3200 = {
45
+ /** @nullable */
46
+ public_key_name?: string | null;
47
+ };
48
+ export declare type SshKeyImportV3Body = {
49
+ /** The SSH key's filename */
50
+ name: string;
51
+ /** A note to log alongside the secure_action_log entry. */
52
+ note?: string;
53
+ /** A Valid SSH public key */
54
+ pubkey?: string;
55
+ /** The entity that initiated the GAP call */
56
+ source?: string;
57
+ };
58
+ export declare type BackupCreateV3200 = {
59
+ message?: string;
60
+ tracking_id?: number;
61
+ };
62
+ /**
63
+ * The type of the backup
64
+ */
65
+ export declare type BackupCreateV3BodyBackupType = typeof BackupCreateV3BodyBackupType[keyof typeof BackupCreateV3BodyBackupType];
66
+ export declare const BackupCreateV3BodyBackupType: {
67
+ readonly home: "home";
68
+ readonly db: "db";
69
+ readonly home_db: "home_db";
70
+ };
71
+ export declare type BackupCreateV3Body = {
72
+ /** The type of the backup */
73
+ backup_type?: BackupCreateV3BodyBackupType;
74
+ };
75
+ export declare type SiteUsersV2200UsersItemMeta = {
76
+ maestro_web_pro?: string;
77
+ maestro_wpp_identifier?: string;
78
+ };
79
+ export declare type SiteUsersV2200UsersItem = {
80
+ display_name?: string;
81
+ id: number;
82
+ meta?: SiteUsersV2200UsersItemMeta;
83
+ post_count?: number;
84
+ role: string;
85
+ user_email: string;
86
+ user_id: number;
87
+ user_login: string;
88
+ user_nicename: string;
89
+ };
90
+ export declare type SiteUsersV2200 = {
91
+ /** Total number of users that linked to the site */
92
+ total_users: number;
93
+ users: SiteUsersV2200UsersItem[];
94
+ };
95
+ export declare type SiteUsersV2Params = {
96
+ limit?: number;
97
+ page?: number;
98
+ search?: string;
99
+ };
100
+ export declare type SitesSshUserListV2200 = {
101
+ users?: SSHUsersV2Response[];
102
+ };
103
+ export declare type SitesSecuritySitelockV2200 = {
104
+ /** @nullable */
105
+ addon_id?: number | null;
106
+ /** @nullable */
107
+ billing_code?: string | null;
108
+ /** @nullable */
109
+ domain_name?: string | null;
110
+ domains?: string[];
111
+ /** @nullable */
112
+ has_cdn?: boolean | null;
113
+ is_migrated?: boolean;
114
+ message?: string;
115
+ /** @nullable */
116
+ plan?: string | null;
117
+ /** @nullable */
118
+ platform_id?: string | null;
119
+ /**
120
+ * Sitelock can be attached directly to a site, or it will fallback and return the sitelock for entire hosting account
121
+ * @nullable
122
+ */
123
+ scope?: string | null;
124
+ /** @nullable */
125
+ source?: string | null;
126
+ success?: number;
127
+ upgrade_levels?: string[];
128
+ };
129
+ export declare type SitesSecuritySitelockV2Source = typeof SitesSecuritySitelockV2Source[keyof typeof SitesSecuritySitelockV2Source];
130
+ export declare const SitesSecuritySitelockV2Source: {
131
+ readonly hal: "hal";
132
+ readonly fg: "fg";
133
+ readonly halfg: "halfg";
134
+ };
135
+ export declare type SitesSecuritySitelockV2Params = {
136
+ /**
137
+ * fetch the sitelock data based on source(fg/hal)
138
+ */
139
+ source?: SitesSecuritySitelockV2Source;
140
+ };
141
+ export declare type SiteMalwareStatusV2200 = {
142
+ /**
143
+ * addon state
144
+ * @nullable
145
+ */
146
+ addon_state?: string | null;
147
+ /**
148
+ * malware status given by jetpack protect addon
149
+ * @nullable
150
+ */
151
+ malware_state?: string | null;
152
+ /**
153
+ * plugin state
154
+ * @nullable
155
+ */
156
+ plugin_state?: string | null;
157
+ /**
158
+ * scanner state
159
+ * @nullable
160
+ */
161
+ scanner_state?: string | null;
162
+ };
163
+ /**
164
+ * @nullable
165
+ */
166
+ export declare type SitesDomainsV2200DomainsItemSetupProgress = {
167
+ /**
168
+ * Result of domain cdn validation (null=not started,0=started,1=succeeded,2=skipped)
169
+ * @nullable
170
+ */
171
+ validate_cdn?: number | null;
172
+ /**
173
+ * Most recent error logged during domain cdn validation. Remains set if validation tries run out. Gets reset by new validation job.
174
+ * @nullable
175
+ */
176
+ validate_cdn_error?: string | null;
177
+ /**
178
+ * Result of domain dns validation (null=not started,0=started,1=succeeded,2=skipped)
179
+ * @nullable
180
+ */
181
+ validate_dns?: number | null;
182
+ /**
183
+ * Whether dns_auto_repair was run on this domain (1=true)
184
+ * @nullable
185
+ */
186
+ validate_dns_auto_repair?: number | null;
187
+ /**
188
+ * Most recent error logged during domain dns validation. Remains set if validation tries run out. Gets reset by new validation job.
189
+ * @nullable
190
+ */
191
+ validate_dns_error?: string | null;
192
+ /**
193
+ * Most recent error logged during domain validation. Remains set if validation tries run out. Gets reset by new validation job.
194
+ * @nullable
195
+ */
196
+ validate_error?: string | null;
197
+ /**
198
+ * Result of domain ssl validation (null=not started,0=started,1=succeeded,2=skipped)
199
+ * @nullable
200
+ */
201
+ validate_ssl?: number | null;
202
+ /**
203
+ * Most recent error logged during domain ssl validation. Remains set if validation tries run out. Gets reset by new validation job.
204
+ * @nullable
205
+ */
206
+ validate_ssl_error?: string | null;
207
+ } | null;
208
+ export declare type SitesDomainsV2200DomainsItem = {
209
+ /** @nullable */
210
+ account_back_ref?: string | null;
211
+ /** @nullable */
212
+ authoritative?: boolean | null;
213
+ /** @nullable */
214
+ autogen_id?: number | null;
215
+ /** @nullable */
216
+ back_reference?: string | null;
217
+ base_domain?: string;
218
+ /** @nullable */
219
+ billing_account_id?: string | null;
220
+ /** @nullable */
221
+ billing_status?: string | null;
222
+ date_added?: string;
223
+ date_modified?: string;
224
+ /** @nullable */
225
+ date_ssl_exp?: string | null;
226
+ dns_status?: string;
227
+ /** @nullable */
228
+ docroot?: string | null;
229
+ domain?: string;
230
+ /** @nullable */
231
+ homedir?: string | null;
232
+ /** @nullable */
233
+ hosting_id?: number | null;
234
+ id?: number;
235
+ /**
236
+ * Whether the domain is internal to us, external, or cannot be determined
237
+ * @nullable
238
+ */
239
+ is_internal?: boolean | null;
240
+ /** @nullable */
241
+ nameservers?: string[] | null;
242
+ /** @nullable */
243
+ platform?: string | null;
244
+ /** @nullable */
245
+ platform_type?: string | null;
246
+ /** @nullable */
247
+ product_id?: string | null;
248
+ /** @nullable */
249
+ setup_progress?: SitesDomainsV2200DomainsItemSetupProgress;
250
+ /** @nullable */
251
+ ssl_issuer?: string | null;
252
+ /** @nullable */
253
+ ssl_status?: string | null;
254
+ /** @nullable */
255
+ ssl_type?: string | null;
256
+ status?: string;
257
+ /** @nullable */
258
+ third_party_dns?: boolean | null;
259
+ type?: string;
260
+ };
261
+ export declare type SitesDomainsV2200 = {
262
+ domains?: SitesDomainsV2200DomainsItem[];
263
+ limit?: number;
264
+ page?: number;
265
+ total?: number;
266
+ };
267
+ export declare type SitesDomainsV2Params = {
268
+ scan?: boolean;
269
+ };
270
+ export declare type SitesListV2200 = {
271
+ items?: SitesListV2200ItemsItem[];
272
+ /** page size */
273
+ limit?: number;
274
+ /** current page number */
275
+ page?: number;
276
+ /** total number of pages */
277
+ pages?: number;
278
+ /** total number of sites returned */
279
+ total?: number;
280
+ };
281
+ /**
282
+ * @nullable
283
+ */
284
+ export declare type SitesListV2200ItemsItemStaging = {
285
+ /**
286
+ * Applies to staging site only; The id of the current site's parent site
287
+ * @nullable
288
+ */
289
+ parent_site_id?: number | null;
290
+ /**
291
+ * Applies to parent site only; The id of the former parent site of the current site
292
+ * @nullable
293
+ */
294
+ promoted_from?: number | null;
295
+ /**
296
+ * Applies to staging site only; The id of the parent site of the current site that is being promoted
297
+ * @nullable
298
+ */
299
+ promoting_from?: number | null;
300
+ /**
301
+ * Applies to staging site only; The derived status based on promotion ids and jobs
302
+ * @nullable
303
+ */
304
+ promotion_status?: string | null;
305
+ /** A list of staging sites of the current site */
306
+ sites?: number[];
307
+ } | null;
308
+ export declare type SitesListV2200ItemsItemResourcesStorage = {
309
+ /** @nullable */
310
+ available?: number | null;
311
+ /** @nullable */
312
+ total?: number | null;
313
+ unit?: string;
314
+ /** @nullable */
315
+ used?: number | null;
316
+ };
317
+ export declare type SitesListV2200ItemsItemResources = {
318
+ storage?: SitesListV2200ItemsItemResourcesStorage;
319
+ /** @nullable */
320
+ workers?: number | null;
321
+ };
322
+ /**
323
+ * @nullable
324
+ */
325
+ export declare type SitesListV2200ItemsItemPendingUrlData = {
326
+ /**
327
+ * The root domain name
328
+ * @nullable
329
+ */
330
+ base_domain?: string | null;
331
+ /**
332
+ * The Fully Qualified Domain Name (FQDN)
333
+ * @nullable
334
+ */
335
+ domain?: string | null;
336
+ /**
337
+ * The current pending_url's HAL Domain ID
338
+ * @nullable
339
+ */
340
+ domain_id?: number | null;
341
+ /** @nullable */
342
+ error?: string | null;
343
+ /** Flag indicating whether the pending_url is temporary or not */
344
+ is_temp?: boolean;
345
+ /**
346
+ * Flag indicating whether the url_sync job has run out of attempts
347
+ * @nullable
348
+ */
349
+ job_failed?: boolean | null;
350
+ /** @nullable */
351
+ stage?: string | null;
352
+ /**
353
+ * Timestamp for when we will update the WP url, regardless of active sessions
354
+ * @nullable
355
+ */
356
+ wp_session?: string | null;
357
+ } | null;
358
+ /**
359
+ * Job ids for the site
360
+ * @nullable
361
+ */
362
+ export declare type SitesListV2200ItemsItemJobs = {
363
+ [key: string]: unknown;
364
+ } | null;
365
+ export declare type SitesListV2200ItemsItem = {
366
+ /** @nullable */
367
+ account_back_ref?: string | null;
368
+ account_id?: string;
369
+ /**
370
+ * the current status of the account this site belongs to
371
+ * @nullable
372
+ */
373
+ account_status?: string | null;
374
+ /** @nullable */
375
+ base_domain?: string | null;
376
+ /**
377
+ * False if site was added by site scanner
378
+ * @nullable
379
+ */
380
+ confirmed?: boolean | null;
381
+ /** @nullable */
382
+ datacenter?: string | null;
383
+ date_added?: string;
384
+ date_modified?: string;
385
+ detected_type?: string;
386
+ /** @nullable */
387
+ docpath?: string | null;
388
+ /** @nullable */
389
+ docroot?: string | null;
390
+ /** @nullable */
391
+ domain?: string | null;
392
+ edge_cache?: boolean;
393
+ handler_404?: string;
394
+ id?: number;
395
+ /** @nullable */
396
+ installed_id?: string | null;
397
+ /** True if docpath is public_html, otherwise False */
398
+ is_primary?: boolean;
399
+ /**
400
+ * Job ids for the site
401
+ * @nullable
402
+ */
403
+ jobs?: SitesListV2200ItemsItemJobs;
404
+ /** @nullable */
405
+ last_error?: string | null;
406
+ /** @nullable */
407
+ migration_id?: string | null;
408
+ /** @nullable */
409
+ name?: string | null;
410
+ /**
411
+ * Status of the site's onboarding
412
+ * @nullable
413
+ */
414
+ onboarding?: number | null;
415
+ path?: string;
416
+ /** @nullable */
417
+ pending_url?: string | null;
418
+ /** @nullable */
419
+ pending_url_data?: SitesListV2200ItemsItemPendingUrlData;
420
+ /**
421
+ * The Php Version. If unable to determine, it will be NULL
422
+ * @nullable
423
+ */
424
+ php_version?: string | null;
425
+ resources?: SitesListV2200ItemsItemResources;
426
+ /** @nullable */
427
+ staging?: SitesListV2200ItemsItemStaging;
428
+ status?: string;
429
+ subtype?: string;
430
+ type?: string;
431
+ /** @nullable */
432
+ url?: string | null;
433
+ /** @nullable */
434
+ url_is_provisional?: boolean | null;
435
+ /** @nullable */
436
+ version?: string | null;
437
+ /**
438
+ * The WP Version
439
+ * @nullable
440
+ */
441
+ version_ptr?: string | null;
442
+ };
443
+ export declare type SshKeyV2200 = {
444
+ deleted?: number;
445
+ key_name?: string;
446
+ };
447
+ export declare type SshKeyV2Body = {
448
+ authorize: boolean;
449
+ name: string;
450
+ note?: string;
451
+ source?: string;
452
+ };
453
+ export declare type SshKeyListV2200RowsItem = {
454
+ key?: string;
455
+ mtime?: string;
456
+ name?: string;
457
+ type?: string;
458
+ };
459
+ export declare type SshKeyListV2200 = {
460
+ rows?: SshKeyListV2200RowsItem[];
461
+ };
462
+ export declare type SshKeyImportV2200 = {
463
+ /** @nullable */
464
+ private_key_name?: string | null;
465
+ /** @nullable */
466
+ public_key_name?: string | null;
467
+ };
468
+ export declare type SshKeyImportV2Body = {
469
+ /** The SSH key's filename */
470
+ name: string;
471
+ /** A note to log alongside the secure_action_log entry. */
472
+ note?: string;
473
+ /**
474
+ * The SSH key's password. Must be four or more secure characters.
475
+ * @minLength 4
476
+ */
477
+ pass?: string;
478
+ /** A Valid SSH private key */
479
+ privkey?: string;
480
+ /** A Valid SSH public key */
481
+ pubkey?: string;
482
+ /** The entity that initiated the GAP call */
483
+ source?: string;
484
+ };
485
+ export declare type HostingSiteAddV2200 = {
486
+ id?: number;
487
+ status?: string;
488
+ url?: string;
489
+ };
490
+ /**
491
+ * Datacenter to host site in.
492
+ */
493
+ export declare type HostingSiteAddV2BodyDatacenter = typeof HostingSiteAddV2BodyDatacenter[keyof typeof HostingSiteAddV2BodyDatacenter];
494
+ export declare const HostingSiteAddV2BodyDatacenter: {
495
+ readonly 'Amsterdam,_Netherlands': "Amsterdam, Netherlands";
496
+ readonly 'Ashburn,_Virginia': "Ashburn, Virginia";
497
+ readonly 'Dallas,_Texas': "Dallas, Texas";
498
+ readonly 'Los_Angeles,_California': "Los Angeles, California";
499
+ };
500
+ export declare type HostingSiteAddV2Body = {
501
+ /** Admin email for the site user */
502
+ admin_email?: string;
503
+ /** Admin user for the site */
504
+ admin_user?: string;
505
+ /** HAL site id to clone */
506
+ clone_site_id?: number;
507
+ /** Datacenter to host site in. */
508
+ datacenter?: HostingSiteAddV2BodyDatacenter;
509
+ /** Disk space in GiB */
510
+ disk_limit_gib?: number;
511
+ /** domain for the site to be added */
512
+ domain?: string;
513
+ /** flag that causes the domain vhost to be forced to the new docroot */
514
+ force_vhost?: boolean;
515
+ /** toggle between wordpress/lightweight for non-existent static file */
516
+ handler_404?: boolean;
517
+ /** Migrate an existing wordpress site */
518
+ migration_id?: string;
519
+ /** When provided, parent_site_id will be set in the new site's meta to indicate it's a child (staging) site of the parent. */
520
+ parent_site_id?: number;
521
+ /** Installation Path */
522
+ path?: string;
523
+ /** Skip domain pointer order */
524
+ skip_pointer?: boolean;
525
+ /** flag indicating whether this site is for a self serve wp migration or not */
526
+ ss_wp_mig?: boolean;
527
+ /** Site Subtype */
528
+ subtype: string;
529
+ /** title of the site to be added */
530
+ title?: string;
531
+ /** Number of PHP workers */
532
+ workers?: number;
533
+ };
534
+ export declare type HostingSitesV2200UsedSitesDetails = {
535
+ /** Includes all active sites count */
536
+ sites_active?: number;
537
+ /** Count of sites with configuration issues i.e. orphaned_db orphaned_config orphaned_broken_cfg orphaned_invalid_user orphaned_load orphaned docroot_mismatch */
538
+ sites_misconfigured?: number;
539
+ /** All remaining site statuses including those marked as failed, will be accounted here i.e. failed_create */
540
+ sites_other?: number;
541
+ /** Count of sites that are in pending statuses i.e. pending_create pending_reset pending_delete etc */
542
+ sites_pending?: number;
543
+ };
544
+ export declare type HostingSitesV2200 = {
545
+ /**
546
+ * Remaining number of sites the customer can create. Max sites - used sites. Null means 'unlimited'.
547
+ * @nullable
548
+ */
549
+ available_sites?: number | null;
550
+ items?: HostingSitesV2200ItemsItem[];
551
+ /** page size */
552
+ limit?: number;
553
+ /**
554
+ * Maximum number of sites the customer can have. Null means 'unlimited'.
555
+ * @nullable
556
+ */
557
+ max_sites?: number | null;
558
+ /** current page number */
559
+ page?: number;
560
+ /** total number of pages */
561
+ pages?: number;
562
+ /** total number of sites returned */
563
+ total?: number;
564
+ /** 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. */
565
+ used_sites?: number;
566
+ used_sites_details?: HostingSitesV2200UsedSitesDetails;
567
+ };
568
+ /**
569
+ * @nullable
570
+ */
571
+ export declare type HostingSitesV2200ItemsItemStaging = {
572
+ /**
573
+ * Applies to staging site only; The id of the current site's parent site
574
+ * @nullable
575
+ */
576
+ parent_site_id?: number | null;
577
+ /**
578
+ * Applies to parent site only; The id of the former parent site of the current site
579
+ * @nullable
580
+ */
581
+ promoted_from?: number | null;
582
+ /**
583
+ * Applies to staging site only; The id of the parent site of the current site that is being promoted
584
+ * @nullable
585
+ */
586
+ promoting_from?: number | null;
587
+ /**
588
+ * Applies to staging site only; The derived status based on promotion ids and jobs
589
+ * @nullable
590
+ */
591
+ promotion_status?: string | null;
592
+ /** A list of staging sites of the current site */
593
+ sites?: number[];
594
+ } | null;
595
+ export declare type HostingSitesV2200ItemsItemResourcesStorage = {
596
+ /** @nullable */
597
+ available?: number | null;
598
+ /** @nullable */
599
+ total?: number | null;
600
+ unit?: string;
601
+ /** @nullable */
602
+ used?: number | null;
603
+ };
604
+ export declare type HostingSitesV2200ItemsItemResources = {
605
+ storage?: HostingSitesV2200ItemsItemResourcesStorage;
606
+ /** @nullable */
607
+ workers?: number | null;
608
+ };
609
+ /**
610
+ * @nullable
611
+ */
612
+ export declare type HostingSitesV2200ItemsItemPendingUrlData = {
613
+ /**
614
+ * The root domain name
615
+ * @nullable
616
+ */
617
+ base_domain?: string | null;
618
+ /**
619
+ * The Fully Qualified Domain Name (FQDN)
620
+ * @nullable
621
+ */
622
+ domain?: string | null;
623
+ /**
624
+ * The current pending_url's HAL Domain ID
625
+ * @nullable
626
+ */
627
+ domain_id?: number | null;
628
+ /** @nullable */
629
+ error?: string | null;
630
+ /** Flag indicating whether the pending_url is temporary or not */
631
+ is_temp?: boolean;
632
+ /**
633
+ * Flag indicating whether the url_sync job has run out of attempts
634
+ * @nullable
635
+ */
636
+ job_failed?: boolean | null;
637
+ /** @nullable */
638
+ stage?: string | null;
639
+ /**
640
+ * Timestamp for when we will update the WP url, regardless of active sessions
641
+ * @nullable
642
+ */
643
+ wp_session?: string | null;
644
+ } | null;
645
+ /**
646
+ * Job ids for the site
647
+ * @nullable
648
+ */
649
+ export declare type HostingSitesV2200ItemsItemJobs = {
650
+ [key: string]: unknown;
651
+ } | null;
652
+ export declare type HostingSitesV2200ItemsItem = {
653
+ /** @nullable */
654
+ account_back_ref?: string | null;
655
+ account_id?: string;
656
+ /**
657
+ * the current status of the account this site belongs to
658
+ * @nullable
659
+ */
660
+ account_status?: string | null;
661
+ /** @nullable */
662
+ base_domain?: string | null;
663
+ /**
664
+ * False if site was added by site scanner
665
+ * @nullable
666
+ */
667
+ confirmed?: boolean | null;
668
+ /** @nullable */
669
+ datacenter?: string | null;
670
+ date_added?: string;
671
+ date_modified?: string;
672
+ detected_type?: string;
673
+ /** @nullable */
674
+ docpath?: string | null;
675
+ /** @nullable */
676
+ docroot?: string | null;
677
+ /** @nullable */
678
+ domain?: string | null;
679
+ edge_cache?: boolean;
680
+ handler_404?: string;
681
+ id?: number;
682
+ /** @nullable */
683
+ installed_id?: string | null;
684
+ /** True if docpath is public_html, otherwise False */
685
+ is_primary?: boolean;
686
+ /**
687
+ * Job ids for the site
688
+ * @nullable
689
+ */
690
+ jobs?: HostingSitesV2200ItemsItemJobs;
691
+ /** @nullable */
692
+ last_error?: string | null;
693
+ /** @nullable */
694
+ migration_id?: string | null;
695
+ /** @nullable */
696
+ name?: string | null;
697
+ /**
698
+ * Status of the site's onboarding
699
+ * @nullable
700
+ */
701
+ onboarding?: number | null;
702
+ path?: string;
703
+ /** @nullable */
704
+ pending_url?: string | null;
705
+ /** @nullable */
706
+ pending_url_data?: HostingSitesV2200ItemsItemPendingUrlData;
707
+ /**
708
+ * The Php Version. If unable to determine, it will be NULL
709
+ * @nullable
710
+ */
711
+ php_version?: string | null;
712
+ resources?: HostingSitesV2200ItemsItemResources;
713
+ /** @nullable */
714
+ staging?: HostingSitesV2200ItemsItemStaging;
715
+ status?: string;
716
+ subtype?: string;
717
+ type?: string;
718
+ /** @nullable */
719
+ url?: string | null;
720
+ /** @nullable */
721
+ url_is_provisional?: boolean | null;
722
+ /** @nullable */
723
+ version?: string | null;
724
+ /**
725
+ * The WP Version
726
+ * @nullable
727
+ */
728
+ version_ptr?: string | null;
729
+ };
730
+ export declare type HostingSitesV2Params = {
731
+ limit?: number;
732
+ page?: number;
733
+ /**
734
+ * If passed, will only return staging sites of that parent site on this hosting account
735
+ */
736
+ parent_site_id?: number;
737
+ search?: string;
738
+ };
739
+ export declare type HostingRedirectsV2200Item = {
740
+ docroot?: string;
741
+ domain?: string;
742
+ http_status_code?: number;
743
+ redirect_www?: number;
744
+ src?: string;
745
+ type?: string;
746
+ url?: string;
747
+ wildcard?: number;
748
+ };
749
+ export declare type HostingNameserversV2200HostsItem = {
750
+ host?: string;
751
+ ips?: string[];
752
+ };
753
+ export declare type HostingNameserversV2200 = {
754
+ brand: string;
755
+ hosts: HostingNameserversV2200HostsItem[];
756
+ id: number;
757
+ is_default?: string;
758
+ };
759
+ export declare type ListFilesV2200FilesItem = {
760
+ file?: string;
761
+ path?: string;
762
+ size?: number;
763
+ type?: string;
764
+ };
765
+ export declare type ListFilesV2200 = {
766
+ files?: ListFilesV2200FilesItem[];
767
+ };
768
+ export declare type ListFilesV2Params = {
769
+ dir: string;
770
+ showdotfiles?: boolean;
771
+ };
772
+ export declare type HostingDomainsUnassignV2200 = {
773
+ [key: string]: unknown;
774
+ };
775
+ export declare type HostingDomainsUnassignV2Body = {
776
+ /** The domain id to be unassigned */
777
+ domain_id: number;
778
+ /** The site id to be unassigned */
779
+ site_id: number;
780
+ };
781
+ export declare type DbListV2200DatabasesItemUserlistItem = {
782
+ db?: string;
783
+ user?: string;
784
+ };
785
+ export declare type DbListV2200DatabasesItem = {
786
+ db?: string;
787
+ sitename?: string;
788
+ sizemib?: string;
789
+ usercount?: number;
790
+ userlist?: DbListV2200DatabasesItemUserlistItem[];
791
+ };
792
+ export declare type DbListV2200 = {
793
+ databases?: DbListV2200DatabasesItem[];
794
+ };
795
+ export declare type BackupStatusV2200 = {
796
+ /** @nullable */
797
+ backup_download_url?: string | null;
798
+ status?: string;
799
+ };
800
+ export declare type BackupStatusV2Params = {
801
+ tracking_id: number;
802
+ };
803
+ export declare type BackupRestoreV2200 = {
804
+ message?: string;
805
+ tracking_id?: number;
806
+ };
807
+ export declare type BackupRestoreV2Body = {
808
+ /** Backup Volume store ID to get the backup */
809
+ backup_id: string;
810
+ dbs?: string[];
811
+ /** Restore date */
812
+ restore_date: string;
813
+ /** Restore type */
814
+ restore_type?: string;
815
+ /** Site id */
816
+ site_id?: number;
817
+ };
818
+ export declare type BackupListV2200BackupsItem = {
819
+ backup_creation_time?: string;
820
+ backup_id?: string;
821
+ /** @nullable */
822
+ databases?: string[] | null;
823
+ type?: string;
824
+ };
825
+ export declare type BackupListV2200 = {
826
+ backups?: BackupListV2200BackupsItem[];
827
+ };
828
+ export declare type BackupDownloadV2200 = {
829
+ message?: string;
830
+ tracking_id?: number;
831
+ };
832
+ export declare type BackupDownloadV2Body = {
833
+ /** Backup Volume store ID to get the backup */
834
+ backup_id: string;
835
+ /** Type of the backup */
836
+ backup_type?: string;
837
+ dbs?: string[];
838
+ /** Site id */
839
+ site_id?: number;
840
+ };
841
+ export declare type BackupCreateV2200 = {
842
+ message?: string;
843
+ tracking_id?: number;
844
+ };
845
+ export declare type BackupCreateV2Body = {
846
+ /** The type of the backup */
847
+ backup_type?: string[];
848
+ };
849
+ export declare type AddonsSitelockSsoV2200 = {
850
+ /** @nullable */
851
+ site_url?: string | null;
852
+ sitelock_id?: string;
853
+ url?: string;
854
+ };
855
+ export declare type AddonsSitelockSsoV2Params = {
856
+ /**
857
+ * fetch the sso data based on source(fg/hal)
858
+ */
859
+ source?: string;
860
+ };
861
+ export declare type SiteAddonWpsolution400 = {
862
+ error?: string;
863
+ };
864
+ export declare type SiteAddonWpsolution200 = {
865
+ [key: string]: unknown;
866
+ };
867
+ /**
868
+ * wpsolution addon subtype
869
+ */
870
+ export declare type SiteAddonWpsolutionBodySubtype = typeof SiteAddonWpsolutionBodySubtype[keyof typeof SiteAddonWpsolutionBodySubtype];
871
+ export declare const SiteAddonWpsolutionBodySubtype: {
872
+ readonly creator: "creator";
873
+ readonly commerce: "commerce";
874
+ };
875
+ export declare type SiteAddonWpsolutionBody = {
876
+ /** wpsolution product instance id */
877
+ prod_inst_id: string;
878
+ /** wpsolution addon subtype */
879
+ subtype: SiteAddonWpsolutionBodySubtype;
880
+ };
881
+ export declare type SitesVersion200 = {
882
+ current?: string;
883
+ latest?: string;
884
+ update?: boolean;
885
+ };
886
+ export declare type SiteUsers200UsersItemMeta = {
887
+ maestro_web_pro?: string;
888
+ maestro_wpp_identifier?: string;
889
+ };
890
+ export declare type SiteUsers200UsersItem = {
891
+ display_name?: string;
892
+ id: number;
893
+ meta?: SiteUsers200UsersItemMeta;
894
+ post_count?: number;
895
+ role: string;
896
+ user_email: string;
897
+ user_id: number;
898
+ user_login: string;
899
+ user_nicename: string;
900
+ };
901
+ export declare type SiteUsers200 = {
902
+ users: SiteUsers200UsersItem[];
903
+ };
904
+ export declare type SiteStatus200 = {
905
+ /** @nullable */
906
+ cloudflare_ready?: boolean | null;
907
+ pending_url?: string;
908
+ url?: string;
909
+ };
910
+ export declare type StagingSitePromote409DetailsLimitsItem = {
911
+ /**
912
+ * Respective limit that exceeded.
913
+ * @nullable
914
+ */
915
+ limit?: string | null;
916
+ /**
917
+ * maximum limit allowed.
918
+ * @nullable
919
+ */
920
+ max?: string | null;
921
+ /**
922
+ * site Id where the respective limit is exceeded.
923
+ * @nullable
924
+ */
925
+ site_id?: string | null;
926
+ /**
927
+ * Type of limit exceeded.
928
+ * @nullable
929
+ */
930
+ type?: string | null;
931
+ /**
932
+ * current usage.
933
+ * @nullable
934
+ */
935
+ used?: number | null;
936
+ };
937
+ /**
938
+ * @nullable
939
+ */
940
+ export declare type StagingSitePromote409Details = {
941
+ limits?: StagingSitePromote409DetailsLimitsItem[];
942
+ } | null;
943
+ export declare type StagingSitePromote409 = {
944
+ /** @nullable */
945
+ details?: StagingSitePromote409Details;
946
+ /** @nullable */
947
+ error?: string | null;
948
+ };
949
+ export declare type StagingSitePromote200 = {
950
+ /** @nullable */
951
+ job_id?: number | null;
952
+ };
953
+ export declare type StagingSitePromoteBody = {
954
+ /** Will only run site promote validation checks in hal if passed as true */
955
+ validate_only?: boolean;
956
+ };
957
+ export declare type SitesSso200OtherItem = {
958
+ added?: string;
959
+ addon_id?: number;
960
+ domain?: string;
961
+ subtype?: string;
962
+ type?: string;
963
+ };
964
+ export declare type SitesSso200 = {
965
+ /** @nullable */
966
+ other?: SitesSso200OtherItem[] | null;
967
+ /** @nullable */
968
+ sso?: string | null;
969
+ /** @nullable */
970
+ type?: string | null;
971
+ };
972
+ export declare type SitesSsoBounceName = typeof SitesSsoBounceName[keyof typeof SitesSsoBounceName];
973
+ export declare const SitesSsoBounceName: {
974
+ readonly jetpackbackup: "jetpackbackup";
975
+ readonly jetpackdashboard: "jetpackdashboard";
976
+ readonly staging: "staging";
977
+ readonly updatecore: "updatecore";
978
+ readonly password: "password";
979
+ readonly profile: "profile";
980
+ readonly plugins: "plugins";
981
+ readonly themes: "themes";
982
+ readonly phpmyadmin: "phpmyadmin";
983
+ readonly filemanager: "filemanager";
984
+ readonly store: "store";
985
+ readonly wpmigration: "wpmigration";
986
+ readonly mypluginsandtools: "mypluginsandtools";
987
+ };
988
+ export declare type SitesSsoParams = {
989
+ addon_id?: string;
990
+ bounce_name?: SitesSsoBounceName;
991
+ user_email?: string;
992
+ user_id?: string;
993
+ };
994
+ export declare type SitesSsl200 = {
995
+ domain?: string;
996
+ domain_dns_status?: string;
997
+ /** @nullable */
998
+ expiration?: string | null;
999
+ /** @nullable */
1000
+ issuer?: string | null;
1001
+ /** @nullable */
1002
+ product?: string | null;
1003
+ /** @nullable */
1004
+ provider?: string | null;
1005
+ status?: string;
1006
+ /** @nullable */
1007
+ type?: string | null;
1008
+ upgradeable?: boolean;
1009
+ };
1010
+ export declare type SitesSshUserUpdate200 = {
1011
+ [key: string]: unknown;
1012
+ };
1013
+ export declare type SitesSshUserUpdateBody = {
1014
+ /** optional flag to generate public key */
1015
+ generate_pubkey?: boolean;
1016
+ /** optional password */
1017
+ pass?: string;
1018
+ /** optional public key */
1019
+ pubkey?: string;
1020
+ /** username of user */
1021
+ ssh_user: string;
1022
+ };
1023
+ export declare type SitesSshUserDelete200 = {
1024
+ [key: string]: unknown;
1025
+ };
1026
+ export declare type SitesSshUserDeleteBody = {
1027
+ /** Tenant Public Key ID. Optional for non-global and required for global user. If supplied with ssh username for a global user, this attribute takes priority over ssh username and deletes by public key id. */
1028
+ public_key_id?: number;
1029
+ /** SSH User Name. Optional for global user and required for non-global user. */
1030
+ ssh_user?: string;
1031
+ };
1032
+ export declare type SitesSshUserCreate200 = {
1033
+ /**
1034
+ * optional private key
1035
+ * @nullable
1036
+ */
1037
+ private_key?: string | null;
1038
+ /**
1039
+ * optional public key
1040
+ * @nullable
1041
+ */
1042
+ public_key?: string | null;
1043
+ /**
1044
+ * global site public key id
1045
+ * @nullable
1046
+ */
1047
+ public_key_id?: number | null;
1048
+ };
1049
+ export declare type SitesSshUserCreateBody = {
1050
+ /** optional auto-generate key pair flag */
1051
+ generate_pubkey?: boolean;
1052
+ /** Pass as true to create as a global public key */
1053
+ is_global?: boolean;
1054
+ /** optional password */
1055
+ pass?: string;
1056
+ /** optional public key */
1057
+ pubkey?: string;
1058
+ /** username of user */
1059
+ ssh_user: string;
1060
+ };
1061
+ export declare type SitesSshUserList200 = {
1062
+ users?: string[];
1063
+ };
1064
+ export declare type SitesSettingsPhpVersions200 = {
1065
+ default?: string;
1066
+ deprecated?: string[];
1067
+ latest?: string;
1068
+ versions?: string[];
1069
+ };
1070
+ export declare type SitesSettingsPhpVersionUpdate200 = {
1071
+ success?: number;
1072
+ };
1073
+ export declare type SitesSettingsPhpVersionUpdateBody = {
1074
+ force?: boolean;
1075
+ /**
1076
+ * The version should match the pattern i.e. PHP 8.0
1077
+ * @pattern ^(PHP) ([0-9]+.[0-9])$
1078
+ */
1079
+ php_version: string;
1080
+ };
1081
+ export declare type SitesSettingsDebugToggle200 = {
1082
+ success?: number;
1083
+ };
1084
+ export declare type SitesSettingsDebugToggleBody = {
1085
+ enable?: boolean;
1086
+ };
1087
+ export declare type SitesSettingsDebug200 = {
1088
+ status?: number;
1089
+ };
1090
+ export declare type SitesSettingsComingSoonToggle200 = {
1091
+ success?: number;
1092
+ };
1093
+ export declare type SitesSettingsComingSoonToggleBody = {
1094
+ enable?: boolean;
1095
+ };
1096
+ export declare type SitesSettingsComingSoon200 = {
1097
+ enable?: boolean;
1098
+ };
1099
+ export declare type SitesSecuritySslStatus200 = {
1100
+ domain?: string;
1101
+ message?: string;
1102
+ product?: string;
1103
+ provider?: string;
1104
+ ssl_status?: string;
1105
+ upgradeable?: boolean;
1106
+ };
1107
+ export declare type SitesSecuritySslStatusParams = {
1108
+ /**
1109
+ * scans hal domains to get updated ssl information
1110
+ */
1111
+ domain_scan?: boolean;
1112
+ };
1113
+ export declare type SitesSecuritySslAcme200 = {
1114
+ message?: string;
1115
+ success?: number;
1116
+ };
1117
+ export declare type SitesSecuritySitelock200 = {
1118
+ /** @nullable */
1119
+ addon_id?: number | null;
1120
+ /** @nullable */
1121
+ billing_code?: string | null;
1122
+ /** @nullable */
1123
+ domain_name?: string | null;
1124
+ domains?: string[];
1125
+ /** @nullable */
1126
+ has_cdn?: boolean | null;
1127
+ is_migrated?: boolean;
1128
+ message?: string;
1129
+ /** @nullable */
1130
+ plan?: string | null;
1131
+ /** @nullable */
1132
+ platform_id?: string | null;
1133
+ /**
1134
+ * Sitelock can be attached directly to a site, or it will fallback and return the sitelock for entire hosting account
1135
+ * @nullable
1136
+ */
1137
+ scope?: string | null;
1138
+ /** @nullable */
1139
+ source?: string | null;
1140
+ success?: number;
1141
+ upgrade_levels?: string[];
1142
+ };
1143
+ export declare type SitesSecuritySitelockSource = typeof SitesSecuritySitelockSource[keyof typeof SitesSecuritySitelockSource];
1144
+ export declare const SitesSecuritySitelockSource: {
1145
+ readonly hal: "hal";
1146
+ readonly fg: "fg";
1147
+ readonly halfg: "halfg";
1148
+ };
1149
+ export declare type SitesSecuritySitelockParams = {
1150
+ /**
1151
+ * fetch the sitelock data based on source(fg/hal)
1152
+ */
1153
+ source?: SitesSecuritySitelockSource;
1154
+ };
1155
+ export declare type SitesSecurityHttpsEnableDisableSsl200 = {
1156
+ message?: string;
1157
+ redirection_status?: number;
1158
+ success?: number;
1159
+ };
1160
+ export declare type SitesSecurityHttpsEnableDisableSslBody = {
1161
+ /** enable or disable */
1162
+ forced_redirection?: string;
1163
+ };
1164
+ export declare type SitesSecurityHttpsRedirectionStatus200 = {
1165
+ message?: string;
1166
+ redirection_status?: number;
1167
+ success?: number;
1168
+ };
1169
+ export declare type SitesSecurityResetCoreFiles200 = {
1170
+ results?: string;
1171
+ success?: number;
1172
+ };
1173
+ export declare type SitesSecurityCheckCore200 = {
1174
+ results?: string;
1175
+ success?: number;
1176
+ };
1177
+ export declare type SitesSecurityBundle200 = {
1178
+ eligible?: boolean;
1179
+ };
1180
+ export declare type ResetSite200 = {
1181
+ previous_status: string;
1182
+ status: string;
1183
+ };
1184
+ export declare type ResetSiteBody = {
1185
+ /** Site subtype to morph to */
1186
+ subtype?: string;
1187
+ /** Site type to morph to */
1188
+ type?: string;
1189
+ };
1190
+ export declare type SiteQualityMetrics200OriginLoadingExperience = {
1191
+ [key: string]: unknown;
1192
+ };
1193
+ export declare type SiteQualityMetrics200LoadingExperience = {
1194
+ [key: string]: unknown;
1195
+ };
1196
+ export declare type SiteQualityMetrics200Audits = {
1197
+ [key: string]: unknown;
1198
+ };
1199
+ export declare type SiteQualityMetrics200AspectScores = {
1200
+ accessibility?: number;
1201
+ 'best-practices'?: number;
1202
+ performance?: number;
1203
+ seo?: number;
1204
+ };
1205
+ export declare type SiteQualityMetrics200AspectDetails = {
1206
+ performance?: SiteQualityMetrics200AspectDetailsPerformance;
1207
+ };
1208
+ export declare type SiteQualityMetrics200 = {
1209
+ aspect_details: SiteQualityMetrics200AspectDetails;
1210
+ aspect_scores: SiteQualityMetrics200AspectScores;
1211
+ audits: SiteQualityMetrics200Audits;
1212
+ loading_experience?: SiteQualityMetrics200LoadingExperience;
1213
+ origin_loading_experience?: SiteQualityMetrics200OriginLoadingExperience;
1214
+ strategy?: string;
1215
+ };
1216
+ export declare type SiteQualityMetrics200AspectDetailsPerformanceTotalBlockingTime = {
1217
+ [key: string]: unknown;
1218
+ };
1219
+ export declare type SiteQualityMetrics200AspectDetailsPerformanceSpeedIndex = {
1220
+ [key: string]: unknown;
1221
+ };
1222
+ export declare type SiteQualityMetrics200AspectDetailsPerformanceLargestContentfulPaint = {
1223
+ [key: string]: unknown;
1224
+ };
1225
+ export declare type SiteQualityMetrics200AspectDetailsPerformanceFirstContentfulPaint = {
1226
+ [key: string]: unknown;
1227
+ };
1228
+ export declare type SiteQualityMetrics200AspectDetailsPerformanceCumulativeLayoutShift = {
1229
+ [key: string]: unknown;
1230
+ };
1231
+ export declare type SiteQualityMetrics200AspectDetailsPerformance = {
1232
+ 'cumulative-layout-shift'?: SiteQualityMetrics200AspectDetailsPerformanceCumulativeLayoutShift;
1233
+ 'first-contentful-paint'?: SiteQualityMetrics200AspectDetailsPerformanceFirstContentfulPaint;
1234
+ 'largest-contentful-paint'?: SiteQualityMetrics200AspectDetailsPerformanceLargestContentfulPaint;
1235
+ 'speed-index'?: SiteQualityMetrics200AspectDetailsPerformanceSpeedIndex;
1236
+ 'total-blocking-time'?: SiteQualityMetrics200AspectDetailsPerformanceTotalBlockingTime;
1237
+ };
1238
+ export declare type SiteQualityMetricsStrategy = typeof SiteQualityMetricsStrategy[keyof typeof SiteQualityMetricsStrategy];
1239
+ export declare const SiteQualityMetricsStrategy: {
1240
+ readonly MOBILE: "MOBILE";
1241
+ readonly DESKTOP: "DESKTOP";
1242
+ readonly STRATEGY_UNSPECIFIED: "STRATEGY_UNSPECIFIED";
1243
+ };
1244
+ export declare type SiteQualityMetricsParams = {
1245
+ strategy: SiteQualityMetricsStrategy;
1246
+ };
1247
+ export declare type SitePluginsUpdate200 = {
1248
+ success: boolean;
1249
+ };
1250
+ export declare type SitePluginsUpdateBody = {
1251
+ /** The plugin id */
1252
+ id: string;
1253
+ };
1254
+ export declare type SitePluginsToggle200 = {
1255
+ success: boolean;
1256
+ };
1257
+ export declare type SitePluginsToggleBody = {
1258
+ /** activate or deactivate the plugin */
1259
+ activate: boolean;
1260
+ /** The plugin id */
1261
+ id: string;
1262
+ };
1263
+ export declare type SitePluginsAutoupdate200 = {
1264
+ success: boolean;
1265
+ };
1266
+ export declare type SitePluginsAutoupdateBody = {
1267
+ enable: boolean;
1268
+ };
1269
+ export declare type SitePluginUpdate200 = {
1270
+ id: string;
1271
+ status: string;
1272
+ };
1273
+ export declare type SitePluginUpdateBody = {
1274
+ /** activate or deactivate the plugin */
1275
+ activate: boolean;
1276
+ /** The plugin id */
1277
+ id: string;
1278
+ };
1279
+ export declare type SitePlugins200PluginsItem = {
1280
+ id: string;
1281
+ status: string;
1282
+ title: string;
1283
+ update: boolean;
1284
+ version?: string;
1285
+ };
1286
+ export declare type SitePlugins200 = {
1287
+ auto_update: boolean;
1288
+ plugins: SitePlugins200PluginsItem[];
1289
+ subtype: string;
1290
+ };
1291
+ export declare type SitePluginsParams = {
1292
+ plugin_id?: string;
1293
+ };
1294
+ export declare type CreatePhpInfo200 = {
1295
+ /** html file content */
1296
+ html?: string;
1297
+ };
1298
+ export declare type SitesPerformanceEndurancePageCache200 = {
1299
+ result?: string;
1300
+ status?: string;
1301
+ };
1302
+ export declare type SitesPerformanceEnduranceCacheLevel200Options = {
1303
+ [key: string]: unknown;
1304
+ };
1305
+ export declare type SitesPerformanceEnduranceCacheLevel200 = {
1306
+ options?: SitesPerformanceEnduranceCacheLevel200Options;
1307
+ };
1308
+ export declare type SitesPerformanceEnduranceCacheLevelBody = {
1309
+ /** @maximum 3 */
1310
+ endurance_cache_level?: number;
1311
+ };
1312
+ export declare type SitesPerformanceEnduranceCacheLevelStatus200 = {
1313
+ endurance_cache_level?: number;
1314
+ };
1315
+ export declare type SitesPerformanceEdgecache200 = {
1316
+ [key: string]: unknown;
1317
+ };
1318
+ export declare type SitesPerformanceEdgecacheBody = {
1319
+ /** Pass either 0 or 1 */
1320
+ edge_cache: number;
1321
+ };
1322
+ export declare type SitesPerformanceCachepurge200 = {
1323
+ success?: boolean;
1324
+ };
1325
+ export declare type SitesPerformanceCachepurgeBody = {
1326
+ /** */
1327
+ assets?: string[];
1328
+ /** Pass either 0, basic, premium, india or hostgator */
1329
+ cf?: string;
1330
+ /** Pass either 0 or 1 */
1331
+ epc?: number;
1332
+ /** */
1333
+ hosts: string[];
1334
+ };
1335
+ export declare type SitePendingDomainDelete200 = {
1336
+ [key: string]: unknown;
1337
+ };
1338
+ export declare type SitesMetricDimensions200 = {
1339
+ date_end?: string;
1340
+ date_start?: string;
1341
+ dimensions?: SitesMetricDimensions200Dimensions;
1342
+ elapsed?: number;
1343
+ metric?: string;
1344
+ };
1345
+ export declare type SitesMetricDimensions200DimensionsWpAdminAjaxActionItemDimension = {
1346
+ [key: string]: number;
1347
+ };
1348
+ export declare type SitesMetricDimensions200DimensionsWpAdminAjaxActionItem = {
1349
+ dimension?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItemDimension;
1350
+ timestamp?: number;
1351
+ };
1352
+ export declare type SitesMetricDimensions200DimensionsVisitorIsCrawlerItemDimension = {
1353
+ [key: string]: number;
1354
+ };
1355
+ export declare type SitesMetricDimensions200DimensionsVisitorIsCrawlerItem = {
1356
+ dimension?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItemDimension;
1357
+ timestamp?: number;
1358
+ };
1359
+ export declare type SitesMetricDimensions200DimensionsVisitorCountryCodeItemDimension = {
1360
+ [key: string]: number;
1361
+ };
1362
+ export declare type SitesMetricDimensions200DimensionsVisitorCountryCodeItem = {
1363
+ dimension?: SitesMetricDimensions200DimensionsVisitorCountryCodeItemDimension;
1364
+ timestamp?: number;
1365
+ };
1366
+ export declare type SitesMetricDimensions200DimensionsVisitorAsnItemDimension = {
1367
+ [key: string]: number;
1368
+ };
1369
+ export declare type SitesMetricDimensions200DimensionsVisitorAsnItem = {
1370
+ dimension?: SitesMetricDimensions200DimensionsVisitorAsnItemDimension;
1371
+ timestamp?: number;
1372
+ };
1373
+ export declare type SitesMetricDimensions200DimensionsPageRendererItemDimension = {
1374
+ [key: string]: number;
1375
+ };
1376
+ export declare type SitesMetricDimensions200DimensionsPageRendererItem = {
1377
+ dimension?: SitesMetricDimensions200DimensionsPageRendererItemDimension;
1378
+ timestamp?: number;
1379
+ };
1380
+ export declare type SitesMetricDimensions200DimensionsPageIsCachedItemDimension = {
1381
+ [key: string]: number;
1382
+ };
1383
+ export declare type SitesMetricDimensions200DimensionsPageIsCachedItem = {
1384
+ dimension?: SitesMetricDimensions200DimensionsPageIsCachedItemDimension;
1385
+ timestamp?: number;
1386
+ };
1387
+ export declare type SitesMetricDimensions200DimensionsHttpVersionItemDimension = {
1388
+ [key: string]: number;
1389
+ };
1390
+ export declare type SitesMetricDimensions200DimensionsHttpVersionItem = {
1391
+ dimension?: SitesMetricDimensions200DimensionsHttpVersionItemDimension;
1392
+ timestamp?: number;
1393
+ };
1394
+ export declare type SitesMetricDimensions200DimensionsHttpVerbItemDimension = {
1395
+ [key: string]: number;
1396
+ };
1397
+ export declare type SitesMetricDimensions200DimensionsHttpVerbItem = {
1398
+ dimension?: SitesMetricDimensions200DimensionsHttpVerbItemDimension;
1399
+ timestamp?: number;
1400
+ };
1401
+ export declare type SitesMetricDimensions200DimensionsHttpStatusItemDimension = {
1402
+ [key: string]: number;
1403
+ };
1404
+ export declare type SitesMetricDimensions200DimensionsHttpStatusItem = {
1405
+ dimension?: SitesMetricDimensions200DimensionsHttpStatusItemDimension;
1406
+ timestamp?: number;
1407
+ };
1408
+ export declare type SitesMetricDimensions200DimensionsHttpHostItemDimension = {
1409
+ [key: string]: number;
1410
+ };
1411
+ export declare type SitesMetricDimensions200DimensionsHttpHostItem = {
1412
+ dimension?: SitesMetricDimensions200DimensionsHttpHostItemDimension;
1413
+ timestamp?: number;
1414
+ };
1415
+ export declare type SitesMetricDimensions200Dimensions = {
1416
+ http_host?: SitesMetricDimensions200DimensionsHttpHostItem[];
1417
+ http_status?: SitesMetricDimensions200DimensionsHttpStatusItem[];
1418
+ http_verb?: SitesMetricDimensions200DimensionsHttpVerbItem[];
1419
+ http_version?: SitesMetricDimensions200DimensionsHttpVersionItem[];
1420
+ page_is_cached?: SitesMetricDimensions200DimensionsPageIsCachedItem[];
1421
+ page_renderer?: SitesMetricDimensions200DimensionsPageRendererItem[];
1422
+ visitor_asn?: SitesMetricDimensions200DimensionsVisitorAsnItem[];
1423
+ visitor_country_code?: SitesMetricDimensions200DimensionsVisitorCountryCodeItem[];
1424
+ visitor_is_crawler?: SitesMetricDimensions200DimensionsVisitorIsCrawlerItem[];
1425
+ wp_admin_ajax_action?: SitesMetricDimensions200DimensionsWpAdminAjaxActionItem[];
1426
+ };
1427
+ export declare type SitesMetricDimensionsParams = {
1428
+ start?: string;
1429
+ end?: string;
1430
+ };
1431
+ export declare type SitesMetricsDimensionAveraged200Metrics = {
1432
+ requests_persec?: number[];
1433
+ response_bytes_average?: number[];
1434
+ response_bytes_persec?: number[];
1435
+ response_time_average?: number[];
1436
+ };
1437
+ export declare type SitesMetricsDimensionAveraged200 = {
1438
+ date_end?: string;
1439
+ date_start?: string;
1440
+ dimension?: string;
1441
+ elapsed?: number;
1442
+ metrics?: SitesMetricsDimensionAveraged200Metrics;
1443
+ unit?: string;
1444
+ };
1445
+ export declare type SitesMetricsDimensionAveragedParams = {
1446
+ start?: string;
1447
+ end?: string;
1448
+ };
1449
+ export declare type SiteMalwareStatus200 = {
1450
+ /**
1451
+ * malware status given by jetpack protect addon
1452
+ * @nullable
1453
+ */
1454
+ malware_status?: string | null;
1455
+ /**
1456
+ * scanner state
1457
+ * @nullable
1458
+ */
1459
+ scanner_state?: string | null;
1460
+ };
1461
+ export declare type SitesErrorLogsDownloadSort = typeof SitesErrorLogsDownloadSort[keyof typeof SitesErrorLogsDownloadSort];
1462
+ export declare const SitesErrorLogsDownloadSort: {
1463
+ readonly asc: "asc";
1464
+ readonly desc: "desc";
1465
+ };
1466
+ export declare type SitesErrorLogsDownloadParams = {
1467
+ /**
1468
+ * Start time. Can be a unix time, a timestamp, or a {n}[dhm] format. Default is -1 day.
1469
+ */
1470
+ start?: string;
1471
+ /**
1472
+ * End time. Can be a unix time, a timestamp, now, or a {n}[dhm] format. Default is now.
1473
+ */
1474
+ end?: string;
1475
+ sort?: SitesErrorLogsDownloadSort;
1476
+ /**
1477
+ * Items to filter on. Supported filters include: severity
1478
+ */
1479
+ filter?: {
1480
+ severity?: string[];
1481
+ };
1482
+ };
1483
+ export declare type SitesErrorLogs200LogsItem = {
1484
+ datetime?: string;
1485
+ epoch?: number;
1486
+ file?: string;
1487
+ kind?: string;
1488
+ line?: number;
1489
+ message?: string;
1490
+ name?: string;
1491
+ severity?: string;
1492
+ };
1493
+ export declare type SitesErrorLogs200 = {
1494
+ datetime_end?: string;
1495
+ datetime_start?: string;
1496
+ logs?: SitesErrorLogs200LogsItem[];
1497
+ /** @nullable */
1498
+ page_id?: string | null;
1499
+ total?: number;
1500
+ };
1501
+ export declare type SitesErrorLogsSort = typeof SitesErrorLogsSort[keyof typeof SitesErrorLogsSort];
1502
+ export declare const SitesErrorLogsSort: {
1503
+ readonly asc: "asc";
1504
+ readonly desc: "desc";
1505
+ };
1506
+ export declare type SitesErrorLogsParams = {
1507
+ /**
1508
+ * Start time. Can be a unix time, a timestamp, or a {n}[dhm] format. Default is -1 day.
1509
+ */
1510
+ start?: string;
1511
+ /**
1512
+ * End time. Can be a unix time, a timestamp, now, or a {n}[dhm] format. Default is now.
1513
+ */
1514
+ end?: string;
1515
+ /**
1516
+ * max number of logs to return (default: 25)
1517
+ */
1518
+ limit?: number;
1519
+ page_id?: string;
1520
+ sort?: SitesErrorLogsSort;
1521
+ /**
1522
+ * Items to filter on. Supported filters include: severity
1523
+ */
1524
+ filter?: {
1525
+ severity?: string[];
1526
+ };
1527
+ };
1528
+ export declare type SitesAccessLogsDownloadSort = typeof SitesAccessLogsDownloadSort[keyof typeof SitesAccessLogsDownloadSort];
1529
+ export declare const SitesAccessLogsDownloadSort: {
1530
+ readonly asc: "asc";
1531
+ readonly desc: "desc";
1532
+ };
1533
+ export declare type SitesAccessLogsDownloadParams = {
1534
+ /**
1535
+ * Start time. Can be a unix time, a timestamp, or a {n}[dhm] format.
1536
+ */
1537
+ start?: string;
1538
+ /**
1539
+ * End time. Can be a unix time, a timestamp, now, or a {n}[dhm] format.
1540
+ */
1541
+ end?: string;
1542
+ sort?: SitesAccessLogsDownloadSort;
1543
+ /**
1544
+ * Items to filter on. Supported filters include: cached, renderer, request_type, status, user_ip
1545
+ */
1546
+ filter?: {
1547
+ cached?: string[];
1548
+ renderer?: string[];
1549
+ request_type?: string[];
1550
+ status?: number[];
1551
+ user_ip?: string[];
1552
+ };
1553
+ };
1554
+ export declare type SitesAccessLogs200LogsItem = {
1555
+ body_bytes_sent?: number;
1556
+ cached?: string;
1557
+ datetime?: string;
1558
+ epoch?: number;
1559
+ http_host?: string;
1560
+ http_referrer?: string;
1561
+ http_user_agent?: string;
1562
+ http_x_forwarded_for?: string;
1563
+ renderer?: string;
1564
+ request_completion?: string;
1565
+ request_time?: number;
1566
+ request_type?: string;
1567
+ request_url?: string;
1568
+ scheme?: string;
1569
+ status?: number;
1570
+ type?: string;
1571
+ user_ip?: string;
1572
+ };
1573
+ export declare type SitesAccessLogs200 = {
1574
+ datetime_end?: string;
1575
+ datetime_start?: string;
1576
+ logs?: SitesAccessLogs200LogsItem[];
1577
+ /** @nullable */
1578
+ page_id?: string | null;
1579
+ total?: number;
1580
+ };
1581
+ export declare type SitesAccessLogsSort = typeof SitesAccessLogsSort[keyof typeof SitesAccessLogsSort];
1582
+ export declare const SitesAccessLogsSort: {
1583
+ readonly asc: "asc";
1584
+ readonly desc: "desc";
1585
+ };
1586
+ export declare type SitesAccessLogsParams = {
1587
+ /**
1588
+ * Start time. Can be a unix time, a timestamp, or a {n}[dhm] format.
1589
+ */
1590
+ start?: string;
1591
+ /**
1592
+ * End time. Can be a unix time, a timestamp, now, or a {n}[dhm] format.
1593
+ */
1594
+ end?: string;
1595
+ /**
1596
+ * max number of logs to return (default: 25)
1597
+ */
1598
+ limit?: number;
1599
+ page_id?: string;
1600
+ sort?: SitesAccessLogsSort;
1601
+ /**
1602
+ * Items to filter on. Supported filters include: cached, renderer, request_type, status, user_ip
1603
+ */
1604
+ filter?: {
1605
+ cached?: string[];
1606
+ renderer?: string[];
1607
+ request_type?: string[];
1608
+ status?: number[];
1609
+ user_ip?: string[];
1610
+ };
1611
+ };
1612
+ export declare type AddSiteIpaddress200 = {
1613
+ success?: number;
1614
+ };
1615
+ export declare type AddSiteIpaddressBody = {
1616
+ /** ip to block for the site */
1617
+ blocked_ip: string;
1618
+ };
1619
+ export declare type SiteIpaddress200 = {
1620
+ success?: number;
1621
+ };
1622
+ export declare type SiteIpaddressBody = {
1623
+ /** ip to block for the site */
1624
+ blocked_ip: string;
1625
+ };
1626
+ export declare type SiteIpaddressList200Item = {
1627
+ beginning_ip?: string;
1628
+ ending_ip?: string;
1629
+ server_setting?: string;
1630
+ };
1631
+ export declare type ErrorPagesDelete200 = {
1632
+ [key: string]: unknown;
1633
+ };
1634
+ export declare type ErrorPagesDeleteBody = {
1635
+ /** Error code */
1636
+ error_code: string;
1637
+ };
1638
+ export declare type ErrorPagesAdd200 = {
1639
+ [key: string]: unknown;
1640
+ };
1641
+ export declare type ErrorPagesAddBody = {
1642
+ /** Error code */
1643
+ error_code: string;
1644
+ /** Html content */
1645
+ html_content: string;
1646
+ };
1647
+ export declare type ErrorPagesFetch200 = {
1648
+ /** Error page file path */
1649
+ error_page?: string;
1650
+ /** Html content */
1651
+ html_content?: string;
1652
+ };
1653
+ export declare type ErrorPagesFetchParams = {
1654
+ /**
1655
+ * Error code
1656
+ */
1657
+ error_code: string;
1658
+ };
1659
+ export declare type SitesDomainsCreate200 = {
1660
+ id?: number;
1661
+ status?: string;
1662
+ };
1663
+ export declare type SitesDomainsCreateBody = {
1664
+ /** The new domain to be added */
1665
+ domain: string;
1666
+ /** Forces the domain to be reassigned to the new docroot if true */
1667
+ force_vhost?: boolean;
1668
+ };
1669
+ export declare type SitesDomainUrl200 = {
1670
+ success?: boolean;
1671
+ };
1672
+ export declare type SitesDomainUrlBody = {
1673
+ force?: boolean;
1674
+ /** Option to create the temporary domain */
1675
+ temp_domain?: boolean;
1676
+ /** Optional to unassign the domain after switching to temporary domain */
1677
+ unassign_domain?: boolean;
1678
+ /** URL of the site to be updated */
1679
+ url?: string;
1680
+ };
1681
+ export declare type SitesDomain200Wanted = {
1682
+ a?: string[];
1683
+ ns?: string[];
1684
+ };
1685
+ export declare type SitesDomain200Detected = {
1686
+ a?: string[];
1687
+ ns?: string[];
1688
+ };
1689
+ export declare type SitesDomain200 = {
1690
+ a_match?: boolean;
1691
+ connected?: boolean;
1692
+ detected?: SitesDomain200Detected;
1693
+ /** @nullable */
1694
+ is_internal?: boolean | null;
1695
+ nameserver_match?: boolean;
1696
+ wanted?: SitesDomain200Wanted;
1697
+ };
1698
+ export declare type SitesDomainParams = {
1699
+ domain?: string;
1700
+ };
1701
+ export declare type SitesDns200RecordsItem = {
1702
+ name?: string;
1703
+ type?: string;
1704
+ value?: string;
1705
+ };
1706
+ export declare type SitesDns200 = {
1707
+ records?: SitesDns200RecordsItem[];
1708
+ source?: string;
1709
+ success?: boolean;
1710
+ };
1711
+ export declare type SitesDnsParams = {
1712
+ type?: string;
1713
+ };
1714
+ export declare type SitesDatabasePasswordsync200 = {
1715
+ [key: string]: unknown;
1716
+ };
1717
+ export declare type SitesDatabaseInfo200 = {
1718
+ /** @nullable */
1719
+ charset?: string | null;
1720
+ /** @nullable */
1721
+ collation?: string | null;
1722
+ };
1723
+ export declare type SiteAddonCloudflare400 = {
1724
+ error?: string;
1725
+ };
1726
+ export declare type SiteAddonCloudflare200 = {
1727
+ addon_id?: number;
1728
+ };
1729
+ export declare type BackupsJetpackBackup200 = {
1730
+ [key: string]: unknown;
1731
+ };
1732
+ export declare type JetpackBackupStatus200 = {
1733
+ /** @nullable */
1734
+ addon_back_reference?: string | null;
1735
+ addon_exists?: boolean;
1736
+ /** @nullable */
1737
+ addon_id?: string | null;
1738
+ can_upgrade?: boolean;
1739
+ has_active_addon?: boolean;
1740
+ has_active_plugin?: boolean;
1741
+ /** @nullable */
1742
+ next_url?: string | null;
1743
+ pending_upgrade?: boolean;
1744
+ /** @nullable */
1745
+ plan_name?: string | null;
1746
+ plugin_exists?: boolean;
1747
+ /** @nullable */
1748
+ status?: string | null;
1749
+ };
1750
+ export declare type SitesBackupsDetails200Jetpack = {
1751
+ /** @nullable */
1752
+ addon_back_reference?: string | null;
1753
+ addon_exists?: boolean;
1754
+ /** @nullable */
1755
+ addon_id?: string | null;
1756
+ can_purchase?: boolean;
1757
+ can_upgrade?: boolean;
1758
+ has_active_addon?: boolean;
1759
+ has_active_plugin?: boolean;
1760
+ /** @nullable */
1761
+ last_backup_date?: string | null;
1762
+ /** @nullable */
1763
+ next_url?: string | null;
1764
+ pending_upgrade?: boolean;
1765
+ /** @nullable */
1766
+ plan_name?: string | null;
1767
+ plugin_exists?: boolean;
1768
+ /** @nullable */
1769
+ status?: string | null;
1770
+ };
1771
+ export declare type SitesBackupsDetails200Codeguard = {
1772
+ activated?: boolean;
1773
+ /** @nullable */
1774
+ addon_back_reference?: string | null;
1775
+ addon_id?: string;
1776
+ can_upgrade?: boolean;
1777
+ /** @nullable */
1778
+ database_id?: string | null;
1779
+ /** @nullable */
1780
+ disabled?: boolean | null;
1781
+ /** @nullable */
1782
+ over_quota?: boolean | null;
1783
+ /** @nullable */
1784
+ plan_name?: string | null;
1785
+ seats_available?: number;
1786
+ seats_count?: number;
1787
+ status?: boolean;
1788
+ /** @nullable */
1789
+ url?: string | null;
1790
+ /** @nullable */
1791
+ website_id?: string | null;
1792
+ };
1793
+ export declare type SitesBackupsDetails200 = {
1794
+ codeguard?: SitesBackupsDetails200Codeguard;
1795
+ jetpack?: SitesBackupsDetails200Jetpack;
1796
+ };
1797
+ export declare type SitesBackupsCodeguard200 = {
1798
+ database_id?: number;
1799
+ success?: number;
1800
+ website_id?: number;
1801
+ };
1802
+ export declare type SitesHasBackups200 = {
1803
+ has_backups?: boolean;
1804
+ };
1805
+ export declare type SitesBackups200 = {
1806
+ has_backups?: boolean;
1807
+ };
1808
+ /**
1809
+ * autoupdate type
1810
+ */
1811
+ export declare type SitesAutoupdatesUpdateBodyType = typeof SitesAutoupdatesUpdateBodyType[keyof typeof SitesAutoupdatesUpdateBodyType];
1812
+ export declare const SitesAutoupdatesUpdateBodyType: {
1813
+ readonly core: "core";
1814
+ readonly plugins: "plugins";
1815
+ readonly themes: "themes";
1816
+ };
1817
+ export declare type SitesAutoupdatesUpdateBody = {
1818
+ /** true to enable, false for disable */
1819
+ enabled: boolean;
1820
+ /** autoupdate type */
1821
+ type: SitesAutoupdatesUpdateBodyType;
1822
+ };
1823
+ export declare type SitesAtomicMetrics200ViewsLastNDaysItem = {
1824
+ hits: number;
1825
+ name: string;
1826
+ };
1827
+ export declare type SitesAtomicMetrics200Views = {
1828
+ last_n_days?: SitesAtomicMetrics200ViewsLastNDaysItem[];
1829
+ total_hits?: number;
1830
+ };
1831
+ export declare type SitesAtomicMetrics200 = {
1832
+ raw?: SitesAtomicMetrics200Raw;
1833
+ views?: SitesAtomicMetrics200Views;
1834
+ };
1835
+ export declare type SitesAtomicMetrics200RawPeriodsItemDimension = {
1836
+ [key: string]: string | number | number;
1837
+ };
1838
+ export declare type SitesAtomicMetrics200RawPeriodsItem = {
1839
+ dimension: SitesAtomicMetrics200RawPeriodsItemDimension;
1840
+ timestamp: number;
1841
+ };
1842
+ export declare type SitesAtomicMetrics200RawMetric = string | string[];
1843
+ export declare type SitesAtomicMetrics200RawDimension = string | string[];
1844
+ export declare type SitesAtomicMetrics200Raw = {
1845
+ date_end?: string;
1846
+ date_start?: string;
1847
+ dimension?: SitesAtomicMetrics200RawDimension;
1848
+ metric?: SitesAtomicMetrics200RawMetric;
1849
+ periods?: SitesAtomicMetrics200RawPeriodsItem[];
1850
+ resolution?: number;
1851
+ };
1852
+ export declare type SitesAtomicMetricsParams = {
1853
+ metric?: string[];
1854
+ dimension?: string[];
1855
+ date_start?: string;
1856
+ date_end?: string;
1857
+ /**
1858
+ * Return hits grouped by day instead of raw periods
1859
+ */
1860
+ daywise?: boolean;
1861
+ };
1862
+ export declare type Site200 = {
1863
+ success: boolean;
1864
+ };
1865
+ export declare type SiteBody = {
1866
+ /** Will only run site delete validation checks in hal if passed as true */
1867
+ validate_only?: boolean;
1868
+ };
1869
+ export declare type SiteUpdate400 = {
1870
+ error?: string;
1871
+ };
1872
+ export declare type SiteUpdate200 = {
1873
+ success: boolean;
1874
+ };
1875
+ /**
1876
+ * WP version
1877
+ */
1878
+ export declare type SiteUpdateBodyVersionPtr = typeof SiteUpdateBodyVersionPtr[keyof typeof SiteUpdateBodyVersionPtr];
1879
+ export declare const SiteUpdateBodyVersionPtr: {
1880
+ readonly latest: "latest";
1881
+ readonly previous: "previous";
1882
+ readonly beta: "beta";
1883
+ };
1884
+ export declare type SiteUpdateBody = {
1885
+ /** Disk space in GiB */
1886
+ disk_limit_gib?: number;
1887
+ /** domain for the site to be added */
1888
+ domain?: string;
1889
+ /** toggle between wordpress/lightweight for non-existent static file */
1890
+ handler_404?: boolean;
1891
+ /** Status of the site's onboarding */
1892
+ onboarding?: number;
1893
+ /** filesystem path that follows the domain in the url */
1894
+ path?: string;
1895
+ /** Skip FG domain checks for HAL domain */
1896
+ skip_fg_checks?: boolean;
1897
+ /** title of the site to be updated */
1898
+ title?: string;
1899
+ /** WP version */
1900
+ version_ptr?: SiteUpdateBodyVersionPtr;
1901
+ /** Number of PHP workers */
1902
+ workers?: number;
1903
+ };
1904
+ /**
1905
+ * @nullable
1906
+ */
1907
+ export declare type SitesInfo200Staging = {
1908
+ /**
1909
+ * Applies to staging site only; The id of the current site's parent site
1910
+ * @nullable
1911
+ */
1912
+ parent_site_id?: number | null;
1913
+ /**
1914
+ * Applies to parent site only; The id of the former parent site of the current site
1915
+ * @nullable
1916
+ */
1917
+ promoted_from?: number | null;
1918
+ /**
1919
+ * Applies to staging site only; The id of the parent site of the current site that is being promoted
1920
+ * @nullable
1921
+ */
1922
+ promoting_from?: number | null;
1923
+ /**
1924
+ * Applies to staging site only; The derived status based on promotion ids and jobs
1925
+ * @nullable
1926
+ */
1927
+ promotion_status?: string | null;
1928
+ /** A list of staging sites of the current site */
1929
+ sites?: number[];
1930
+ } | null;
1931
+ export declare type SitesInfo200ResourcesStorage = {
1932
+ /** @nullable */
1933
+ available?: number | null;
1934
+ /** @nullable */
1935
+ total?: number | null;
1936
+ unit?: string;
1937
+ /** @nullable */
1938
+ used?: number | null;
1939
+ };
1940
+ export declare type SitesInfo200Resources = {
1941
+ storage?: SitesInfo200ResourcesStorage;
1942
+ /** @nullable */
1943
+ workers?: number | null;
1944
+ };
1945
+ /**
1946
+ * @nullable
1947
+ */
1948
+ export declare type SitesInfo200PendingUrlData = {
1949
+ /**
1950
+ * The root domain name
1951
+ * @nullable
1952
+ */
1953
+ base_domain?: string | null;
1954
+ /**
1955
+ * The Fully Qualified Domain Name (FQDN)
1956
+ * @nullable
1957
+ */
1958
+ domain?: string | null;
1959
+ /**
1960
+ * The current pending_url's HAL Domain ID
1961
+ * @nullable
1962
+ */
1963
+ domain_id?: number | null;
1964
+ /** @nullable */
1965
+ error?: string | null;
1966
+ /** Flag indicating whether the pending_url is temporary or not */
1967
+ is_temp?: boolean;
1968
+ /**
1969
+ * Flag indicating whether the url_sync job has run out of attempts
1970
+ * @nullable
1971
+ */
1972
+ job_failed?: boolean | null;
1973
+ /** @nullable */
1974
+ stage?: string | null;
1975
+ /**
1976
+ * Timestamp for when we will update the WP url, regardless of active sessions
1977
+ * @nullable
1978
+ */
1979
+ wp_session?: string | null;
1980
+ } | null;
1981
+ /**
1982
+ * @nullable
1983
+ */
1984
+ export declare type SitesInfo200Pagespeed = {
1985
+ lastrun?: string;
1986
+ performance?: string;
1987
+ strategy?: string;
1988
+ } | null;
1989
+ /**
1990
+ * Job ids for the site
1991
+ * @nullable
1992
+ */
1993
+ export declare type SitesInfo200Jobs = {
1994
+ [key: string]: unknown;
1995
+ } | null;
1996
+ export declare type SitesInfo200 = {
1997
+ /** @nullable */
1998
+ account_back_ref?: string | null;
1999
+ account_id?: string;
2000
+ /**
2001
+ * the current status of the account this site belongs to
2002
+ * @nullable
2003
+ */
2004
+ account_status?: string | null;
2005
+ /** @nullable */
2006
+ base_domain?: string | null;
2007
+ /**
2008
+ * False if site was added by site scanner
2009
+ * @nullable
2010
+ */
2011
+ confirmed?: boolean | null;
2012
+ /** @nullable */
2013
+ datacenter?: string | null;
2014
+ date_added?: string;
2015
+ date_modified?: string;
2016
+ detected_type?: string;
2017
+ /** @nullable */
2018
+ docpath?: string | null;
2019
+ /** @nullable */
2020
+ docroot?: string | null;
2021
+ /** @nullable */
2022
+ domain?: string | null;
2023
+ edge_cache?: boolean;
2024
+ /** @nullable */
2025
+ handler_404?: string | null;
2026
+ id?: number;
2027
+ /** @nullable */
2028
+ installed_id?: string | null;
2029
+ /** True if docpath is public_html, otherwise False */
2030
+ is_primary?: boolean;
2031
+ /**
2032
+ * Job ids for the site
2033
+ * @nullable
2034
+ */
2035
+ jobs?: SitesInfo200Jobs;
2036
+ /** @nullable */
2037
+ last_error?: string | null;
2038
+ /** @nullable */
2039
+ migration_id?: string | null;
2040
+ /** @nullable */
2041
+ name?: string | null;
2042
+ /**
2043
+ * Status of the site's onboarding
2044
+ * @nullable
2045
+ */
2046
+ onboarding?: number | null;
2047
+ /** @nullable */
2048
+ pagespeed?: SitesInfo200Pagespeed;
2049
+ path?: string;
2050
+ /** @nullable */
2051
+ pending_url?: string | null;
2052
+ /** @nullable */
2053
+ pending_url_data?: SitesInfo200PendingUrlData;
2054
+ /**
2055
+ * The Php Version. If unable to determine, it will be NULL
2056
+ * @nullable
2057
+ */
2058
+ php_version?: string | null;
2059
+ resources?: SitesInfo200Resources;
2060
+ /** @nullable */
2061
+ staging?: SitesInfo200Staging;
2062
+ status?: string;
2063
+ subtype?: string;
2064
+ type?: string;
2065
+ /** @nullable */
2066
+ url?: string | null;
2067
+ /** @nullable */
2068
+ url_is_provisional?: boolean | null;
2069
+ /** @nullable */
2070
+ version?: string | null;
2071
+ /**
2072
+ * The WP Version
2073
+ * @nullable
2074
+ */
2075
+ version_ptr?: string | null;
2076
+ };
2077
+ export declare type HostingVisitors200VisitorsItem = {
2078
+ bandwidth?: number;
2079
+ hits?: number;
2080
+ /** end date */
2081
+ interval_end?: string;
2082
+ /** start date */
2083
+ interval_start?: string;
2084
+ unique_visitors?: number;
2085
+ visitors?: number;
2086
+ };
2087
+ export declare type HostingVisitors200DailyTotal = {
2088
+ total_bandwidth?: number;
2089
+ total_hits?: number;
2090
+ total_pages?: number;
2091
+ total_visitors?: number;
2092
+ };
2093
+ export declare type HostingVisitors200DailyDataItem = {
2094
+ bandwidth?: number;
2095
+ date?: string;
2096
+ hits?: number;
2097
+ interval_end?: string;
2098
+ interval_start?: string;
2099
+ pages?: number;
2100
+ visits?: number;
2101
+ };
2102
+ export declare type HostingVisitors200Daily = {
2103
+ data?: HostingVisitors200DailyDataItem[];
2104
+ total?: HostingVisitors200DailyTotal;
2105
+ };
2106
+ export declare type HostingVisitors200 = {
2107
+ daily?: HostingVisitors200Daily;
2108
+ is_linked_domain?: boolean;
2109
+ linked_domain?: string;
2110
+ total_bandwidth?: number;
2111
+ total_hits?: number;
2112
+ total_pages?: number;
2113
+ total_unique_visitors?: number;
2114
+ total_visitors?: number;
2115
+ visitors?: HostingVisitors200VisitorsItem[];
2116
+ };
2117
+ export declare type HostingVisitorsSource = typeof HostingVisitorsSource[keyof typeof HostingVisitorsSource];
2118
+ export declare const HostingVisitorsSource: {
2119
+ readonly http: "http";
2120
+ readonly https: "https";
2121
+ readonly combined: "combined";
2122
+ };
2123
+ export declare type HostingVisitorsInterval = typeof HostingVisitorsInterval[keyof typeof HostingVisitorsInterval];
2124
+ export declare const HostingVisitorsInterval: {
2125
+ readonly NUMBER_1: 1;
2126
+ readonly NUMBER_24: 24;
2127
+ };
2128
+ export declare type HostingVisitorsParams = {
2129
+ interval?: HostingVisitorsInterval;
2130
+ source?: HostingVisitorsSource;
2131
+ start: string;
2132
+ end: string;
2133
+ domain: string;
2134
+ };
2135
+ export declare type Sso200 = {
2136
+ url: string;
2137
+ };
2138
+ export declare type SsoApp = typeof SsoApp[keyof typeof SsoApp];
2139
+ export declare const SsoApp: {
2140
+ readonly accesslogs: "accesslogs";
2141
+ readonly awstats: "awstats";
2142
+ readonly cronjobs: "cronjobs";
2143
+ readonly domainredirects: "domainredirects";
2144
+ readonly directoryprivacy: "directoryprivacy";
2145
+ readonly errorlogs: "errorlogs";
2146
+ readonly emailaccounts: "emailaccounts";
2147
+ readonly emailforwarders: "emailforwarders";
2148
+ readonly emailfilters: "emailfilters";
2149
+ readonly emailglobalfilters: "emailglobalfilters";
2150
+ readonly emailspamfilters: "emailspamfilters";
2151
+ readonly emailautoresponders: "emailautoresponders";
2152
+ readonly emailrouting: "emailrouting";
2153
+ readonly ftp: "ftp";
2154
+ readonly filemanager: "filemanager";
2155
+ readonly ipblocker: "ipblocker";
2156
+ readonly indexmanager: "indexmanager";
2157
+ readonly mysql: "mysql";
2158
+ readonly phpmyadmin: "phpmyadmin";
2159
+ readonly sshkeys: "sshkeys";
2160
+ readonly sslsigningrequests: "sslsigningrequests";
2161
+ readonly ssluploadcert: "ssluploadcert";
2162
+ readonly sslviewlogs: "sslviewlogs";
2163
+ readonly sslmanager: "sslmanager";
2164
+ readonly softaculous: "softaculous";
2165
+ readonly zoneeditor: "zoneeditor";
2166
+ };
2167
+ export declare type SsoParams = {
2168
+ app?: SsoApp;
2169
+ dir?: string;
2170
+ domain?: string;
2171
+ db_name?: string;
2172
+ bounce?: string;
2173
+ };
2174
+ export declare type SshKeyGenerate200 = {
2175
+ key_name?: string;
2176
+ private_key_path?: string;
2177
+ public_key_path?: string;
2178
+ };
2179
+ /**
2180
+ * The SSH key's encryption method for authentication (rsa or dsa). Defaults to rsa.
2181
+ */
2182
+ export declare type SshKeyGenerateBodyEncType = typeof SshKeyGenerateBodyEncType[keyof typeof SshKeyGenerateBodyEncType];
2183
+ export declare const SshKeyGenerateBodyEncType: {
2184
+ readonly rsa: "rsa";
2185
+ readonly dsa: "dsa";
2186
+ readonly ed25519: "ed25519";
2187
+ readonly ecdsa: "ecdsa";
2188
+ };
2189
+ /**
2190
+ * A positive integer of 1024 or more. Defaults to 2048 bits.
2191
+ */
2192
+ export declare type SshKeyGenerateBodyBits = typeof SshKeyGenerateBodyBits[keyof typeof SshKeyGenerateBodyBits];
2193
+ export declare const SshKeyGenerateBodyBits: {
2194
+ readonly NUMBER_1024: 1024;
2195
+ readonly NUMBER_2048: 2048;
2196
+ readonly NUMBER_4096: 4096;
2197
+ };
2198
+ export declare type SshKeyGenerateBody = {
2199
+ /** A positive integer of 1024 or more. Defaults to 2048 bits. */
2200
+ bits?: SshKeyGenerateBodyBits;
2201
+ /** The SSH key's encryption method for authentication (rsa or dsa). Defaults to rsa. */
2202
+ enc_type?: SshKeyGenerateBodyEncType;
2203
+ /** The SSH key's filename */
2204
+ name: string;
2205
+ /** A note to log alongside the secure_action_log entry. */
2206
+ note?: string;
2207
+ /**
2208
+ * The SSH key's password. Must be four or more secure characters.
2209
+ * @minLength 4
2210
+ */
2211
+ pass?: string;
2212
+ /** The entity that initiated the GAP call */
2213
+ source?: string;
2214
+ };
2215
+ export declare type SshKey200 = {
2216
+ deleted?: number;
2217
+ key_name?: string;
2218
+ };
2219
+ export declare type SshKeyBody = {
2220
+ name: string;
2221
+ note?: string;
2222
+ source?: string;
2223
+ };
2224
+ export declare type SshKeyList200KeysItem = {
2225
+ file?: string;
2226
+ haspub?: number;
2227
+ key?: string;
2228
+ name?: string;
2229
+ };
2230
+ export declare type SshKeyList200 = {
2231
+ keys?: SshKeyList200KeysItem[];
2232
+ };
2233
+ export declare type SshKeyImport200 = {
2234
+ key_name?: string;
2235
+ };
2236
+ export declare type SshKeyImportBody = {
2237
+ /** The SSH key's filename */
2238
+ name: string;
2239
+ /** A note to log alongside the secure_action_log entry. */
2240
+ note?: string;
2241
+ /**
2242
+ * The SSH key's password. Must be four or more secure characters.
2243
+ * @minLength 4
2244
+ */
2245
+ pass?: string;
2246
+ /** A Valid SSH private key */
2247
+ privkey?: string;
2248
+ /** A Valid SSH public key */
2249
+ pubkey?: string;
2250
+ /** The entity that initiated the GAP call */
2251
+ source?: string;
2252
+ };
2253
+ export declare type SshKeyFetch200 = {
2254
+ key?: string;
2255
+ key_name?: string;
2256
+ type?: string;
2257
+ };
2258
+ export declare type SshKeyFetchParams = {
2259
+ name: string;
2260
+ };
2261
+ export declare type HostingSshInfo200 = {
2262
+ credential?: string;
2263
+ ip?: string;
2264
+ status?: string;
2265
+ success?: boolean;
2266
+ username?: string;
2267
+ };
2268
+ export declare type SitesBatch200 = {
2269
+ success?: boolean;
2270
+ };
2271
+ export declare type SitesBatchBodySitesItem = {
2272
+ /** Disk space in GiB */
2273
+ disk_limit_gib?: number;
2274
+ /** site_id of the site to be updated */
2275
+ site_id?: number;
2276
+ /** Number of PHP workers */
2277
+ workers?: number;
2278
+ };
2279
+ export declare type SitesBatchBody = {
2280
+ sites?: SitesBatchBodySitesItem[];
2281
+ };
2282
+ export declare type HostingSiteAdd200 = {
2283
+ id?: number;
2284
+ status?: string;
2285
+ success: boolean;
2286
+ };
2287
+ /**
2288
+ * Datacenter to host site in.
2289
+ */
2290
+ export declare type HostingSiteAddBodyDatacenter = typeof HostingSiteAddBodyDatacenter[keyof typeof HostingSiteAddBodyDatacenter];
2291
+ export declare const HostingSiteAddBodyDatacenter: {
2292
+ readonly 'Amsterdam,_Netherlands': "Amsterdam, Netherlands";
2293
+ readonly 'Ashburn,_Virginia': "Ashburn, Virginia";
2294
+ readonly 'Dallas,_Texas': "Dallas, Texas";
2295
+ readonly 'Los_Angeles,_California': "Los Angeles, California";
2296
+ };
2297
+ export declare type HostingSiteAddBody = {
2298
+ /** Admin email for the site user */
2299
+ admin_email?: string;
2300
+ /** Admin user for the site */
2301
+ admin_user?: string;
2302
+ /** HAL site id to clone */
2303
+ clone_site_id?: number;
2304
+ /** Datacenter to host site in. */
2305
+ datacenter?: HostingSiteAddBodyDatacenter;
2306
+ /** Disk space in GiB */
2307
+ disk_limit_gib?: number;
2308
+ /** domain for the site to be added */
2309
+ domain?: string;
2310
+ /** flag that causes the domain vhost to be forced to the new docroot */
2311
+ force_vhost?: boolean;
2312
+ /** toggle between wordpress/lightweight for non-existent static file */
2313
+ handler_404?: boolean;
2314
+ /** Migrate an existing wordpress site */
2315
+ migration_id?: string;
2316
+ /** When provided, parent_site_id will be set in the new site's meta to indicate it's a child (staging) site of the parent. */
2317
+ parent_site_id?: number;
2318
+ /** Installation Path */
2319
+ path?: string;
2320
+ /** flag indicating whether this site is for a self serve wp migration or not */
2321
+ ss_wp_mig?: boolean;
2322
+ /** Site Subtype */
2323
+ subtype: string;
2324
+ /** title of the site to be added */
2325
+ title?: string;
2326
+ /** Number of PHP workers */
2327
+ workers?: number;
2328
+ };
2329
+ export declare type HostingShellInfo200 = {
2330
+ enabled?: boolean;
2331
+ };
2332
+ export declare type HostingShellToggle200 = {
2333
+ enabled?: boolean;
2334
+ };
2335
+ export declare type HostingShellToggleBody = {
2336
+ /** boolean flag to enable or disable hosting shell */
2337
+ enabled: boolean;
2338
+ };
2339
+ export declare type HostingServerHits200ServerHitsLastNDaysItem = {
2340
+ hits: number;
2341
+ name: string;
2342
+ };
2343
+ export declare type HostingServerHits200ServerHits = {
2344
+ last_n_days: HostingServerHits200ServerHitsLastNDaysItem[];
2345
+ total_hits: number;
2346
+ };
2347
+ export declare type HostingServerHits200 = {
2348
+ server_hits: HostingServerHits200ServerHits;
2349
+ };
2350
+ export declare type HostingServerHitsParams = {
2351
+ /**
2352
+ * The source of the traffic (http, https, combined)
2353
+ */
2354
+ source?: string;
2355
+ /**
2356
+ * The start date for fetching the server hits. Format is YYYY-MM-DD HH:MM:SS
2357
+ */
2358
+ start?: string;
2359
+ /**
2360
+ * The end date for fetching the server hits. Format is YYYY-MM-DD HH:MM:SS
2361
+ */
2362
+ end?: string;
2363
+ /**
2364
+ * The domain for which to fetch the server hits
2365
+ */
2366
+ domain: string;
2367
+ /**
2368
+ * The number of intervals (days) to fetch. Default is 30
2369
+ */
2370
+ interval?: number;
2371
+ };
2372
+ export declare type HostingResellerSsoWhm200 = {
2373
+ url?: string;
2374
+ };
2375
+ export declare type AddHostingRedirects200 = {
2376
+ success?: number;
2377
+ };
2378
+ export declare type AddHostingRedirectsBody = {
2379
+ /** domain to redirect */
2380
+ domain: string;
2381
+ /** 3 (default) indicates redirect with or without www,2-Do Not Redirect www,1 only redirect with www */
2382
+ redirect_www?: number;
2383
+ /** path or or sub directory */
2384
+ src?: string;
2385
+ /** Permanent-301 notifies the visitors browser to update its records, Temporary-302 does not update browser bookmark */
2386
+ type?: string;
2387
+ /** destination url */
2388
+ url: string;
2389
+ /** redirects all files within a directory to the same filename in the redirected directory */
2390
+ wildcard?: number;
2391
+ };
2392
+ export declare type HostingRedirect200 = {
2393
+ success?: number;
2394
+ };
2395
+ export declare type HostingRedirectBody = {
2396
+ /** domain to redirect */
2397
+ domain: string;
2398
+ /** docroot pointing to directory of redirect. If undefined cpanel looks up this field */
2399
+ redirect?: string;
2400
+ /** path or or sub directory */
2401
+ src?: string;
2402
+ };
2403
+ export declare type HostingRedirects200Item = {
2404
+ docroot?: string;
2405
+ domain?: string;
2406
+ http_status_code?: number;
2407
+ redirect_www?: boolean;
2408
+ src?: string;
2409
+ type?: string;
2410
+ url?: string;
2411
+ wildcard?: boolean;
2412
+ };
2413
+ export declare type ProductLicenseDetails200 = {
2414
+ wpsolution?: ProductLicenseDetails200Wpsolution;
2415
+ };
2416
+ export declare type ProductLicenseDetails200WpsolutionCreatorItem = {
2417
+ expirationDate?: string;
2418
+ prodInstId?: string;
2419
+ };
2420
+ export declare type ProductLicenseDetails200WpsolutionCommerceItem = {
2421
+ expirationDate?: string;
2422
+ prodInstId?: string;
2423
+ };
2424
+ export declare type ProductLicenseDetails200Wpsolution = {
2425
+ commerce?: ProductLicenseDetails200WpsolutionCommerceItem[];
2426
+ creator?: ProductLicenseDetails200WpsolutionCreatorItem[];
2427
+ };
2428
+ export declare type ProductLicenseDetailsProductName = typeof ProductLicenseDetailsProductName[keyof typeof ProductLicenseDetailsProductName];
2429
+ export declare const ProductLicenseDetailsProductName: {
2430
+ readonly wpsolution: "wpsolution";
2431
+ };
2432
+ export declare type ProductLicenseDetailsParams = {
2433
+ product_name: ProductLicenseDetailsProductName;
2434
+ };
2435
+ export declare type PhpErrors200 = {
2436
+ /** @nullable */
2437
+ content?: string | null;
2438
+ /** @nullable */
2439
+ date?: string | null;
2440
+ };
2441
+ export declare type PhpErrorsParams = {
2442
+ domain: string;
2443
+ };
2444
+ export declare type PasswordScore200 = {
2445
+ score?: number;
2446
+ };
2447
+ export declare type PasswordScoreParams = {
2448
+ password: string;
2449
+ };
2450
+ export declare type PasswordGenerate200 = {
2451
+ password?: string;
2452
+ };
2453
+ export declare type HostingOnboardingDataUpdate200 = {
2454
+ completed?: boolean;
2455
+ };
2456
+ export declare type HostingOnboardingDataUpdateBody = {
2457
+ completed?: boolean;
2458
+ };
2459
+ export declare type HostingOnboardingData200 = {
2460
+ /** @nullable */
2461
+ completed?: boolean | null;
2462
+ };
2463
+ export declare type HostingNameservers200 = {
2464
+ nameservers: string[];
2465
+ };
2466
+ export declare type HostingMigrationSiteScanStatus200 = {
2467
+ callback_url?: string;
2468
+ transferable?: boolean;
2469
+ };
2470
+ export declare type HostingMigrationSiteScanStatusParams = {
2471
+ /**
2472
+ * valid domain, URI format is preferred
2473
+ */
2474
+ prospect_url: string;
2475
+ };
2476
+ export declare type HostingMigrationInfo200 = {
2477
+ domain?: string;
2478
+ feasible?: string;
2479
+ hostname?: string;
2480
+ incoming_domain?: string;
2481
+ is_valid_migration_id?: boolean;
2482
+ migration_id?: string;
2483
+ site_url?: string;
2484
+ };
2485
+ export declare type HostingMigrationInfoParams = {
2486
+ migration_id: string;
2487
+ };
2488
+ export declare type HostingMigrationsEvent200 = {
2489
+ success?: boolean;
2490
+ };
2491
+ export declare type HostingMigrationsEventBodyEventName = typeof HostingMigrationsEventBodyEventName[keyof typeof HostingMigrationsEventBodyEventName];
2492
+ export declare const HostingMigrationsEventBodyEventName: {
2493
+ readonly inReview: "inReview";
2494
+ readonly approved: "approved";
2495
+ readonly disapproved: "disapproved";
2496
+ readonly propagationComplete: "propagationComplete";
2497
+ readonly propagationTimeout: "propagationTimeout";
2498
+ readonly transferComplete: "transferComplete";
2499
+ readonly failedCreate: "failedCreate";
2500
+ };
2501
+ export declare type HostingMigrationsEventBody = {
2502
+ event_name: HostingMigrationsEventBodyEventName;
2503
+ /** The migration id that corresponds to CWM */
2504
+ migration_id: string;
2505
+ };
2506
+ export declare type HostingMigrations200 = {
2507
+ success?: boolean;
2508
+ };
2509
+ export declare type HostingMigrationsBody = {
2510
+ /** The migration id that corresponds to CWM */
2511
+ migration_id: string;
2512
+ };
2513
+ export declare type HostingMigrationStatus200RowsItem = {
2514
+ id?: string;
2515
+ status?: string;
2516
+ subtype?: string;
2517
+ type?: string;
2518
+ };
2519
+ export declare type HostingMigrationStatus200 = {
2520
+ rows?: HostingMigrationStatus200RowsItem[];
2521
+ };
2522
+ export declare type HostingLead400 = {
2523
+ [key: string]: unknown;
2524
+ };
2525
+ export declare type HostingLead200ResponseItem = {
2526
+ clientRequestId?: string;
2527
+ data?: HostingLead200ResponseItemData;
2528
+ errors?: string;
2529
+ messageId?: string;
2530
+ providerApplicationName?: string;
2531
+ status?: string;
2532
+ };
2533
+ /**
2534
+ * @nullable
2535
+ */
2536
+ export declare type HostingLead200 = {
2537
+ response?: HostingLead200ResponseItem[];
2538
+ } | null;
2539
+ export declare type HostingLead200ResponseItemData = {
2540
+ leadId?: string;
2541
+ message?: string;
2542
+ };
2543
+ export declare type HostingLeadParams = {
2544
+ phone?: string;
2545
+ };
2546
+ export declare type HostingInfoDiskUsage200 = {
2547
+ /** @nullable */
2548
+ disklastupdated?: string | null;
2549
+ disklimit?: string;
2550
+ diskused?: string;
2551
+ /** @nullable */
2552
+ fileslimit?: number | null;
2553
+ /** @nullable */
2554
+ filesused?: number | null;
2555
+ };
2556
+ export declare type HostingInfo200 = {
2557
+ ip?: string;
2558
+ };
2559
+ export declare type Index200 = {
2560
+ /**
2561
+ * docroot path
2562
+ */
2563
+ file?: string;
2564
+ /** */
2565
+ success?: number;
2566
+ };
2567
+ export declare type IndexBody = {
2568
+ /** docroot path */
2569
+ docpath: string;
2570
+ };
2571
+ export declare type AddIndex200 = {
2572
+ /**
2573
+ * docroot path
2574
+ */
2575
+ file?: string;
2576
+ /** */
2577
+ status?: string;
2578
+ };
2579
+ /**
2580
+ * index type
2581
+ */
2582
+ export declare type AddIndexBodyType = typeof AddIndexBodyType[keyof typeof AddIndexBodyType];
2583
+ export declare const AddIndexBodyType: {
2584
+ readonly fancy: "fancy";
2585
+ readonly standard: "standard";
2586
+ readonly default: "default";
2587
+ };
2588
+ /**
2589
+ * action name
2590
+ */
2591
+ export declare type AddIndexBodyAction = typeof AddIndexBodyAction[keyof typeof AddIndexBodyAction];
2592
+ export declare const AddIndexBodyAction: {
2593
+ readonly view: "view";
2594
+ readonly enable: "enable";
2595
+ readonly disable: "disable";
2596
+ };
2597
+ export declare type AddIndexBody = {
2598
+ /** action name */
2599
+ action?: AddIndexBodyAction;
2600
+ /** docroot path */
2601
+ docpath: string;
2602
+ /** index type */
2603
+ type?: AddIndexBodyType;
2604
+ };
2605
+ export declare type ListIndex200IndexesItem = {
2606
+ index_options?: string[];
2607
+ /** docroot path */
2608
+ path?: string;
2609
+ /** index status */
2610
+ status?: string;
2611
+ /** index type */
2612
+ type?: string;
2613
+ };
2614
+ export declare type ListIndex200 = {
2615
+ indexes?: ListIndex200IndexesItem[];
2616
+ };
2617
+ export declare type ListIndexParams = {
2618
+ path?: string;
2619
+ };
2620
+ export declare type HotlinkconfigDelete200 = {
2621
+ [key: string]: unknown;
2622
+ };
2623
+ export declare type HotlinkconfigDeleteBody = {
2624
+ docpath: string;
2625
+ };
2626
+ export declare type HotlinkconfigAdd200 = {
2627
+ [key: string]: unknown;
2628
+ };
2629
+ export declare type HotlinkconfigAddBody = {
2630
+ direct_request: number;
2631
+ docpath: string;
2632
+ file_types: string[];
2633
+ protocol_type: string;
2634
+ redirect_url?: string;
2635
+ };
2636
+ export declare type HotlinkconfigDetails200 = {
2637
+ direct_request?: number;
2638
+ file_types?: string[];
2639
+ protocol_type?: string;
2640
+ redirect_url?: string;
2641
+ };
2642
+ export declare type HotlinkconfigDetailsParams = {
2643
+ docpath: string;
2644
+ };
2645
+ export declare type HostingRepoLog200 = {
2646
+ /** The output or logs from Git operations such as clone, pull, or deploy */
2647
+ log?: string;
2648
+ /** The file path where the Git repository is cloned */
2649
+ path?: string;
2650
+ };
2651
+ export declare type HostingRepoLogParams = {
2652
+ path: string;
2653
+ };
2654
+ export declare type HostingRepo200 = {
2655
+ /** Directory path where the repository was cloned and should now be deleted */
2656
+ path?: string;
2657
+ /** The URL of the remote Git repository to be deleted */
2658
+ repo_url?: string;
2659
+ success?: boolean;
2660
+ };
2661
+ export declare type HostingRepoBody = {
2662
+ /** Directory path where the repository was cloned and should now be deleted */
2663
+ path?: string;
2664
+ };
2665
+ export declare type HostingRepoSync200 = {
2666
+ /** The type of action taken */
2667
+ action?: string;
2668
+ /** Branch to checkout to */
2669
+ branch?: string;
2670
+ /** Deploy log */
2671
+ log?: string;
2672
+ /** Path to clone repo into */
2673
+ path?: string;
2674
+ /** The Clone URL */
2675
+ repo_url?: string;
2676
+ success?: boolean;
2677
+ };
2678
+ export declare type HostingRepoSyncBody = {
2679
+ /** Branch to checkout to */
2680
+ branch?: string;
2681
+ /** Flag to check if it is to not_deploy(clone) or deploy */
2682
+ clone?: boolean;
2683
+ /** Path to clone repo into */
2684
+ path?: string;
2685
+ /** The Clone URL */
2686
+ repo_url: string;
2687
+ };
2688
+ export declare type HostingRepoList200Item = {
2689
+ /** The checked-out Git branch for the repository */
2690
+ branch?: string;
2691
+ /** The file path where the repository is cloned */
2692
+ path?: string;
2693
+ /** The remote Git repository URL from which the repository was cloned */
2694
+ repo_url?: string;
2695
+ };
2696
+ export declare type HostingFtp200 = {
2697
+ status?: number;
2698
+ /** Username */
2699
+ user?: string;
2700
+ };
2701
+ export declare type HostingFtpBody = {
2702
+ /** 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. */
2703
+ destroy?: boolean;
2704
+ /** Optional: A note to log alongside the secure_action_log entry. */
2705
+ note?: string;
2706
+ /** Optional: The entity that initiated the GAP call, eg. i_cluster, admin_user, script, cron, addon_$type($id) */
2707
+ source?: string;
2708
+ /** Username for FTP account to delete. */
2709
+ user: string;
2710
+ };
2711
+ export declare type HostingFtpUpdate200 = {
2712
+ status?: number;
2713
+ };
2714
+ /**
2715
+ * Must pass either password or quota.
2716
+ */
2717
+ export declare type HostingFtpUpdateBodyUserTypeSet = typeof HostingFtpUpdateBodyUserTypeSet[keyof typeof HostingFtpUpdateBodyUserTypeSet];
2718
+ export declare const HostingFtpUpdateBodyUserTypeSet: {
2719
+ readonly password: "password";
2720
+ readonly quota: "quota";
2721
+ };
2722
+ export declare type HostingFtpUpdateBody = {
2723
+ /** Domain for the user */
2724
+ domain?: string;
2725
+ /** Update password for user */
2726
+ password?: string;
2727
+ /** Update quota for user. Quota value should be greater than or equal to 0. */
2728
+ quota?: number;
2729
+ /** Username for FTP account. */
2730
+ user: string;
2731
+ /** Must pass either password or quota. */
2732
+ user_type_set?: HostingFtpUpdateBodyUserTypeSet;
2733
+ };
2734
+ export declare type HostingFtpAdd200 = {
2735
+ pass?: string;
2736
+ user?: string;
2737
+ };
2738
+ export declare type HostingFtpAddBody = {
2739
+ /** 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. */
2740
+ domain?: string;
2741
+ /** Path to FTP folder. Default is /. (will be relative from homedir) */
2742
+ folder?: string;
2743
+ /** Optional: A note to log alongside the secure_action_log entry. */
2744
+ note?: string;
2745
+ /** Optional password. One will be generated if not included */
2746
+ pass?: string;
2747
+ /** Optional: The entity that initiated the GAP call, eg. i_cluster, admin_user, script, cron, addon_$type($id) */
2748
+ source?: string;
2749
+ /** Text to prepended in random username generation. */
2750
+ type?: string;
2751
+ /** Optional username. If not included then type is required and will generate a random username. Good for temp ftp user. Do not append domain. */
2752
+ user: string;
2753
+ user_type_set?: string;
2754
+ };
2755
+ export declare type HostingFtpList200SpecialFtpAccountsItem = {
2756
+ account?: string;
2757
+ domain?: string;
2758
+ homedir?: string;
2759
+ type?: string;
2760
+ user?: string;
2761
+ };
2762
+ export declare type HostingFtpList200FtpAccountsItem = {
2763
+ account?: string;
2764
+ domain?: string;
2765
+ homedir?: string;
2766
+ type?: string;
2767
+ user?: string;
2768
+ };
2769
+ export declare type HostingFtpList200 = {
2770
+ ftp_accounts?: HostingFtpList200FtpAccountsItem[];
2771
+ server_name?: string;
2772
+ special_ftp_accounts?: HostingFtpList200SpecialFtpAccountsItem[];
2773
+ };
2774
+ export declare type HostingFixownership200 = {
2775
+ success?: boolean;
2776
+ };
2777
+ export declare type HostingEmailFolderList404 = {
2778
+ /** Error message */
2779
+ error?: string;
2780
+ };
2781
+ export declare type HostingEmailFolderList200FoldersItem = {
2782
+ /** Child folders of the parent folder */
2783
+ children?: FolderNode[];
2784
+ /** The name of the parent folder */
2785
+ name?: string;
2786
+ };
2787
+ export declare type HostingEmailFolderList200 = {
2788
+ /** The number of email folders returned */
2789
+ count?: number;
2790
+ /** List of email address folders */
2791
+ folders?: HostingEmailFolderList200FoldersItem[];
2792
+ };
2793
+ export declare type EmailSso512 = {
2794
+ /** Customer error code */
2795
+ error?: string;
2796
+ };
2797
+ export declare type EmailSso400 = {
2798
+ /** Customer error code */
2799
+ error?: string;
2800
+ };
2801
+ export declare type EmailSso200 = {
2802
+ url: string;
2803
+ };
2804
+ export declare type EmailSsoParams = {
2805
+ email?: string;
2806
+ };
2807
+ export declare type HostingEmailSettings512 = {
2808
+ /** Customer error code */
2809
+ error?: string;
2810
+ };
2811
+ export declare type HostingEmailSettings404 = {
2812
+ /** Customer error code */
2813
+ error?: string;
2814
+ };
2815
+ export declare type HostingEmailSettings403 = {
2816
+ /** Customer error code */
2817
+ error?: string;
2818
+ };
2819
+ export declare type HostingEmailSettings200 = {
2820
+ /**
2821
+ * New status of account_incoming - ADDRESS ONLY
2822
+ * @nullable
2823
+ */
2824
+ account_incoming?: string | null;
2825
+ /**
2826
+ * New status of account_login - ADDRESS ONLY
2827
+ * @nullable
2828
+ */
2829
+ account_login?: string | null;
2830
+ /**
2831
+ * New status of account_outgoing - ADDRESS ONLY
2832
+ * @nullable
2833
+ */
2834
+ account_outgoing?: string | null;
2835
+ /** The address that was updated */
2836
+ address?: string;
2837
+ /**
2838
+ * New status of automatic plus-addressed folder creation - ADDRESS or SYSTEM
2839
+ * @nullable
2840
+ */
2841
+ autofolders?: string | null;
2842
+ /**
2843
+ * New status of utf8 folder usage - SYSTEM ONLY
2844
+ * @nullable
2845
+ */
2846
+ utf8_folders?: string | null;
2847
+ };
2848
+ /**
2849
+ * Whether to toggle utf8 folder usage on or off - SYSTEM ONLY
2850
+ */
2851
+ export declare type HostingEmailSettingsBodyUtf8Folders = typeof HostingEmailSettingsBodyUtf8Folders[keyof typeof HostingEmailSettingsBodyUtf8Folders];
2852
+ export declare const HostingEmailSettingsBodyUtf8Folders: {
2853
+ readonly enable: "enable";
2854
+ readonly disable: "disable";
2855
+ };
2856
+ /**
2857
+ * the type of account
2858
+ */
2859
+ export declare type HostingEmailSettingsBodyType = typeof HostingEmailSettingsBodyType[keyof typeof HostingEmailSettingsBodyType];
2860
+ export declare const HostingEmailSettingsBodyType: {
2861
+ readonly address: "address";
2862
+ readonly system: "system";
2863
+ };
2864
+ /**
2865
+ * Whether to toggle automatic plus-addressed folder creation on or off - ADDRESS or SYSTEM
2866
+ */
2867
+ export declare type HostingEmailSettingsBodyAutofolders = typeof HostingEmailSettingsBodyAutofolders[keyof typeof HostingEmailSettingsBodyAutofolders];
2868
+ export declare const HostingEmailSettingsBodyAutofolders: {
2869
+ readonly enable: "enable";
2870
+ readonly disable: "disable";
2871
+ };
2872
+ /**
2873
+ * Whether to suspend or unsuspend account_outgoing - ADDRESS ONLY
2874
+ */
2875
+ export declare type HostingEmailSettingsBodyAccountOutgoing = typeof HostingEmailSettingsBodyAccountOutgoing[keyof typeof HostingEmailSettingsBodyAccountOutgoing];
2876
+ export declare const HostingEmailSettingsBodyAccountOutgoing: {
2877
+ readonly hold: "hold";
2878
+ readonly suspend: "suspend";
2879
+ readonly unsuspend: "unsuspend";
2880
+ };
2881
+ /**
2882
+ * Whether to suspend or unsuspend account_login - ADDRESS ONLY
2883
+ */
2884
+ export declare type HostingEmailSettingsBodyAccountLogin = typeof HostingEmailSettingsBodyAccountLogin[keyof typeof HostingEmailSettingsBodyAccountLogin];
2885
+ export declare const HostingEmailSettingsBodyAccountLogin: {
2886
+ readonly suspend: "suspend";
2887
+ readonly unsuspend: "unsuspend";
2888
+ };
2889
+ /**
2890
+ * Whether to suspend or unsuspend account_incoming - ADDRESS ONLY
2891
+ */
2892
+ export declare type HostingEmailSettingsBodyAccountIncoming = typeof HostingEmailSettingsBodyAccountIncoming[keyof typeof HostingEmailSettingsBodyAccountIncoming];
2893
+ export declare const HostingEmailSettingsBodyAccountIncoming: {
2894
+ readonly suspend: "suspend";
2895
+ readonly unsuspend: "unsuspend";
2896
+ };
2897
+ export declare type HostingEmailSettingsBody = {
2898
+ /** Whether to suspend or unsuspend account_incoming - ADDRESS ONLY */
2899
+ account_incoming?: HostingEmailSettingsBodyAccountIncoming;
2900
+ /** Whether to suspend or unsuspend account_login - ADDRESS ONLY */
2901
+ account_login?: HostingEmailSettingsBodyAccountLogin;
2902
+ /** Whether to suspend or unsuspend account_outgoing - ADDRESS ONLY */
2903
+ account_outgoing?: HostingEmailSettingsBodyAccountOutgoing;
2904
+ /** The email address to update settings on - ADDRESS ONLY */
2905
+ address?: string;
2906
+ /** Whether to toggle automatic plus-addressed folder creation on or off - ADDRESS or SYSTEM */
2907
+ autofolders?: HostingEmailSettingsBodyAutofolders;
2908
+ /** the type of account */
2909
+ type: HostingEmailSettingsBodyType;
2910
+ /** Whether to toggle utf8 folder usage on or off - SYSTEM ONLY */
2911
+ utf8_folders?: HostingEmailSettingsBodyUtf8Folders;
2912
+ };
2913
+ export declare type HostingEmailForwarderDelete400 = {
2914
+ /** Customer error code */
2915
+ error?: string;
2916
+ };
2917
+ export declare type HostingEmailForwarderDelete200 = {
2918
+ [key: string]: unknown;
2919
+ };
2920
+ export declare type HostingEmailForwarderDeleteParams = {
2921
+ /**
2922
+ * The source address or domain of the forwarder to be deleted
2923
+ */
2924
+ source: string;
2925
+ /**
2926
+ * The destination of the forwarder to be deleted
2927
+ */
2928
+ destination: string;
2929
+ };
2930
+ export declare type HostingEmailForwarderAdd512 = {
2931
+ /** Customer error code */
2932
+ error?: string;
2933
+ };
2934
+ export declare type HostingEmailForwarderAdd409 = {
2935
+ /** Customer error code */
2936
+ error?: string;
2937
+ };
2938
+ export declare type HostingEmailForwarderAdd403 = {
2939
+ /** Customer error code */
2940
+ error?: string;
2941
+ };
2942
+ export declare type HostingEmailForwarderAdd400 = {
2943
+ /** Customer error code */
2944
+ error?: string;
2945
+ };
2946
+ export declare type HostingEmailForwarderAdd200 = {
2947
+ [key: string]: unknown;
2948
+ };
2949
+ /**
2950
+ * The type of forwarder to add (defaults to 'account')
2951
+ */
2952
+ export declare type HostingEmailForwarderAddBodyType = typeof HostingEmailForwarderAddBodyType[keyof typeof HostingEmailForwarderAddBodyType];
2953
+ export declare const HostingEmailForwarderAddBodyType: {
2954
+ readonly account: "account";
2955
+ readonly domain: "domain";
2956
+ };
2957
+ /**
2958
+ * The type of forwarder destination (defaults to 'email')
2959
+ */
2960
+ export declare type HostingEmailForwarderAddBodyDestinationType = typeof HostingEmailForwarderAddBodyDestinationType[keyof typeof HostingEmailForwarderAddBodyDestinationType];
2961
+ export declare const HostingEmailForwarderAddBodyDestinationType: {
2962
+ readonly domain: "domain";
2963
+ readonly discard: "discard";
2964
+ readonly discard_with_error: "discard_with_error";
2965
+ readonly email: "email";
2966
+ readonly pipe: "pipe";
2967
+ readonly system: "system";
2968
+ };
2969
+ export declare type HostingEmailForwarderAddBody = {
2970
+ /** The forwarding destination - can be an email address, system username, script path, or error message string */
2971
+ destination?: string;
2972
+ /** The type of forwarder destination (defaults to 'email') */
2973
+ destination_type: HostingEmailForwarderAddBodyDestinationType;
2974
+ /** The source (email address or domain) of the forwarder being added */
2975
+ source: string;
2976
+ /** The type of forwarder to add (defaults to 'account') */
2977
+ type: HostingEmailForwarderAddBodyType;
2978
+ };
2979
+ export declare type HostingEmailForwardersList200ForwardersItem = {
2980
+ /** Where the email will be forwarded to */
2981
+ destination?: string;
2982
+ /** Where the email to be forwarded is coming from */
2983
+ source?: string;
2984
+ /**
2985
+ * The type of forwarder
2986
+ * @nullable
2987
+ */
2988
+ type?: string | null;
2989
+ };
2990
+ export declare type HostingEmailForwardersList200 = {
2991
+ /** List of forwarders */
2992
+ forwarders?: HostingEmailForwardersList200ForwardersItem[];
2993
+ };
2994
+ export declare type HostingEmailForwardersListType = typeof HostingEmailForwardersListType[keyof typeof HostingEmailForwardersListType];
2995
+ export declare const HostingEmailForwardersListType: {
2996
+ readonly account: "account";
2997
+ readonly domain: "domain";
2998
+ };
2999
+ export declare type HostingEmailForwardersListParams = {
3000
+ /**
3001
+ * The type of forwarder list to query (default: account)
3002
+ */
3003
+ type: HostingEmailForwardersListType;
3004
+ /**
3005
+ * The domain to query forwarders by
3006
+ */
3007
+ domain?: string;
3008
+ };
3009
+ export declare type HostingEmailFiltersDelete404 = {
3010
+ /** Error message */
3011
+ error?: string;
3012
+ };
3013
+ export declare type HostingEmailFiltersDelete400 = {
3014
+ /** Error message */
3015
+ error?: string;
3016
+ };
3017
+ export declare type HostingEmailFiltersDelete200 = {
3018
+ [key: string]: unknown;
3019
+ };
3020
+ export declare type HostingEmailFiltersDeleteParams = {
3021
+ /**
3022
+ * The email account address to query filters by
3023
+ */
3024
+ address?: string;
3025
+ /**
3026
+ * Filter name to delete.
3027
+ */
3028
+ name?: string;
3029
+ };
3030
+ export declare type HostingEmailFiltersUpdate200 = {
3031
+ [key: string]: unknown;
3032
+ };
3033
+ export declare type HostingEmailFiltersUpdateBodyRulesItem = {
3034
+ /** The match type (e.g., contains, equals, regex) */
3035
+ match?: string;
3036
+ /** The match operation (e.g., or, and, not) */
3037
+ opt?: string;
3038
+ /** The part of the email to match against (e.g., header_from, header_subject, body) */
3039
+ part?: string;
3040
+ /** The value to match against */
3041
+ val?: string;
3042
+ };
3043
+ export declare type HostingEmailFiltersUpdateBodyActionsItem = {
3044
+ /** The name of the action (e.g., move, copy, forward) */
3045
+ action?: string;
3046
+ /** The destination for the action (e.g., folder name, email address, script path, etc) */
3047
+ dest?: string;
3048
+ };
3049
+ export declare type HostingEmailFiltersUpdateBody = {
3050
+ /** list of actions to be taken when the filter matches */
3051
+ actions?: HostingEmailFiltersUpdateBodyActionsItem[];
3052
+ /** email address to add filters for */
3053
+ address?: string;
3054
+ /** name for the filter to be added */
3055
+ name?: string;
3056
+ /** The new name of the filter, if it has been updated */
3057
+ new_name?: string;
3058
+ /** list of rules to be applied to the filter */
3059
+ rules?: HostingEmailFiltersUpdateBodyRulesItem[];
3060
+ };
3061
+ export declare type HostingEmailFiltersAdd200 = {
3062
+ [key: string]: unknown;
3063
+ };
3064
+ export declare type HostingEmailFiltersAddBodyRulesItem = {
3065
+ /** The match type (e.g., contains, equals, regex) */
3066
+ match?: string;
3067
+ /** The match operation (e.g., or, and, not) */
3068
+ opt?: string;
3069
+ /** The part of the email to match against (e.g., header_from, header_subject, body) */
3070
+ part?: string;
3071
+ /** The value to match against */
3072
+ val?: string;
3073
+ };
3074
+ export declare type HostingEmailFiltersAddBodyActionsItem = {
3075
+ /** The name of the action (e.g., move, copy, forward) */
3076
+ action?: string;
3077
+ /** The destination for the action (e.g., folder name, email address, script path, etc) */
3078
+ dest?: string;
3079
+ };
3080
+ export declare type HostingEmailFiltersAddBody = {
3081
+ /** list of actions to be taken when the filter matches */
3082
+ actions?: HostingEmailFiltersAddBodyActionsItem[];
3083
+ /** email address to add filters for */
3084
+ address?: string;
3085
+ /** name for the filter to be added */
3086
+ name?: string;
3087
+ /** list of rules to be applied to the filter */
3088
+ rules?: HostingEmailFiltersAddBodyRulesItem[];
3089
+ };
3090
+ export declare type HostingEmailFiltersList200FiltersItemRulesItem = {
3091
+ /** Match type (e.g., contains, equals) */
3092
+ match?: string;
3093
+ /** The match operation (or, and, not, etc) */
3094
+ opt?: string;
3095
+ /** The part to match against */
3096
+ part?: string;
3097
+ /** The value to match against */
3098
+ val?: string;
3099
+ };
3100
+ export declare type HostingEmailFiltersList200FiltersItemActionsItem = {
3101
+ /** The name of the action (e.g., move, copy, forward) */
3102
+ action?: string;
3103
+ /** The destination for the action (e.g., folder name, email address, script path, etc) */
3104
+ dest?: string;
3105
+ };
3106
+ export declare type HostingEmailFiltersList200FiltersItem = {
3107
+ /** Where the email will be forwarded to */
3108
+ actions?: HostingEmailFiltersList200FiltersItemActionsItem[];
3109
+ /** Whether the filter is enabled */
3110
+ enabled?: boolean;
3111
+ /** The name of the filter */
3112
+ name?: string;
3113
+ /** The rules that the filter applies */
3114
+ rules?: HostingEmailFiltersList200FiltersItemRulesItem[];
3115
+ /** Whether the filter is unescaped */
3116
+ unescaped?: boolean;
3117
+ };
3118
+ export declare type HostingEmailFiltersList200 = {
3119
+ /** The number of filters */
3120
+ count?: number;
3121
+ /** List of filters */
3122
+ filters?: HostingEmailFiltersList200FiltersItem[];
3123
+ };
3124
+ export declare type HostingEmailFiltersListParams = {
3125
+ /**
3126
+ * The email account address to query filters by
3127
+ */
3128
+ address?: string;
3129
+ };
3130
+ export declare type HostingEmailUpdate512 = {
3131
+ /** Customer error code */
3132
+ error?: string;
3133
+ };
3134
+ export declare type HostingEmailUpdate403 = {
3135
+ /** Customer error code */
3136
+ error?: string;
3137
+ };
3138
+ export declare type HostingEmailUpdate400 = {
3139
+ /** Customer error code */
3140
+ error?: string;
3141
+ };
3142
+ export declare type HostingEmailUpdate200 = {
3143
+ [key: string]: unknown;
3144
+ };
3145
+ export declare type HostingEmailUpdateBody = {
3146
+ /** The email address to update */
3147
+ address: string;
3148
+ /** The quota for the email in MiB (optional) (default: 0 = unlimited) */
3149
+ disk_limit_mib?: number;
3150
+ /** The password for the email */
3151
+ password?: string;
3152
+ };
3153
+ export declare type HostingEmailList200 = {
3154
+ /** List of email resources */
3155
+ rows?: HostingEmailList200RowsItem[];
3156
+ };
3157
+ /**
3158
+ * List of suspensions that affect the entire user account
3159
+ * @nullable
3160
+ */
3161
+ export declare type HostingEmailList200RowsItemSystemSuspensions = {
3162
+ /** @nullable */
3163
+ receive?: boolean | null;
3164
+ /** @nullable */
3165
+ relay?: boolean | null;
3166
+ /** @nullable */
3167
+ sendmail?: boolean | null;
3168
+ } | null;
3169
+ /**
3170
+ * State of email box suspensions
3171
+ * @nullable
3172
+ */
3173
+ export declare type HostingEmailList200RowsItemBoxSuspensions = {
3174
+ /**
3175
+ * Incoming email is rejected
3176
+ * @nullable
3177
+ */
3178
+ incoming?: boolean | null;
3179
+ /**
3180
+ * Email authentication is disabled
3181
+ * @nullable
3182
+ */
3183
+ login?: boolean | null;
3184
+ /**
3185
+ * Outgoing email is rejected
3186
+ * @nullable
3187
+ */
3188
+ outgoing?: boolean | null;
3189
+ /**
3190
+ * Outgoing email is held in queue
3191
+ * @nullable
3192
+ */
3193
+ outgoing_hold?: boolean | null;
3194
+ } | null;
3195
+ export declare type HostingEmailList200RowsItem = {
3196
+ /** The email address */
3197
+ address?: string;
3198
+ /**
3199
+ * Autocreate folders with plus addressing status
3200
+ * @nullable
3201
+ */
3202
+ autofolders?: boolean | null;
3203
+ /**
3204
+ * State of email box suspensions
3205
+ * @nullable
3206
+ */
3207
+ box_suspensions?: HostingEmailList200RowsItemBoxSuspensions;
3208
+ /**
3209
+ * The maximum amount of disk space that may be used by the email
3210
+ * @nullable
3211
+ */
3212
+ disk_limit_mib?: number | null;
3213
+ /**
3214
+ * The amount of disk space used by the email box
3215
+ * @nullable
3216
+ */
3217
+ disk_used_mib?: number | null;
3218
+ /**
3219
+ * The percentage of disk space used by the email box
3220
+ * @nullable
3221
+ */
3222
+ disk_used_percent?: number | null;
3223
+ /**
3224
+ * The email domain
3225
+ * @nullable
3226
+ */
3227
+ domain?: string | null;
3228
+ /**
3229
+ * The number of files in the email
3230
+ * @nullable
3231
+ */
3232
+ files?: number | null;
3233
+ /**
3234
+ * List of suspensions that affect the entire user account
3235
+ * @nullable
3236
+ */
3237
+ system_suspensions?: HostingEmailList200RowsItemSystemSuspensions;
3238
+ /** The type of email */
3239
+ type?: string;
3240
+ /**
3241
+ * If mail folders support utf8 encoding
3242
+ * @nullable
3243
+ */
3244
+ utf8_folders?: boolean | null;
3245
+ };
3246
+ export declare type HostingEmailDelete200 = {
3247
+ [key: string]: unknown;
3248
+ };
3249
+ export declare type HostingEmailDeleteParams = {
3250
+ address: string;
3251
+ };
3252
+ export declare type HostingEmailAdd512 = {
3253
+ /** Customer error code */
3254
+ error?: string;
3255
+ };
3256
+ export declare type HostingEmailAdd409 = {
3257
+ /** Customer error code */
3258
+ error?: string;
3259
+ };
3260
+ export declare type HostingEmailAdd403 = {
3261
+ /** Customer error code */
3262
+ error?: string;
3263
+ };
3264
+ export declare type HostingEmailAdd400 = {
3265
+ /** Customer error code */
3266
+ error?: string;
3267
+ };
3268
+ export declare type HostingEmailAdd200 = {
3269
+ /** The address that was created */
3270
+ address?: string;
3271
+ };
3272
+ /**
3273
+ * The type of email to add (defaults to 'box')
3274
+ */
3275
+ export declare type HostingEmailAddBodyType = typeof HostingEmailAddBodyType[keyof typeof HostingEmailAddBodyType];
3276
+ export declare const HostingEmailAddBodyType: {
3277
+ readonly box: "box";
3278
+ readonly domainalias: "domainalias";
3279
+ readonly alias: "alias";
3280
+ readonly forwarder: "forwarder";
3281
+ readonly discard: "discard";
3282
+ readonly pipe: "pipe";
3283
+ readonly list: "list";
3284
+ };
3285
+ export declare type HostingEmailAddBody = {
3286
+ /** The email address to add */
3287
+ address: string;
3288
+ /** The quota for the email in MiB (optional) (default: 0 = unlimited) */
3289
+ disk_limit_mib?: number;
3290
+ /** The password for the email */
3291
+ password: string;
3292
+ /** The type of email to add (defaults to 'box') */
3293
+ type?: HostingEmailAddBodyType;
3294
+ };
3295
+ /**
3296
+ * @nullable
3297
+ */
3298
+ export declare type HostingEcommerceInfo200 = {
3299
+ addon_id?: number;
3300
+ /** eCommerce addon back reference (a.k.a. prodInstId) */
3301
+ back_ref?: string;
3302
+ level?: string;
3303
+ name?: string;
3304
+ status?: string;
3305
+ /** @nullable */
3306
+ subtype?: string | null;
3307
+ type?: string;
3308
+ } | null;
3309
+ export declare type HostingDomainsUnassign200 = {
3310
+ queued?: boolean;
3311
+ };
3312
+ export declare type HostingDomainsUnassignBody = {
3313
+ /** The domain id to be unassigned */
3314
+ domain_id: number;
3315
+ };
3316
+ export declare type DomainDnsImport200 = {
3317
+ success?: boolean;
3318
+ };
3319
+ export declare type DomainDnsImportBody = {
3320
+ /** The file to upload */
3321
+ file: Blob;
3322
+ };
3323
+ export declare type DomainDnsImportParams = {
3324
+ domain: string;
3325
+ };
3326
+ export declare type DomainDnsExport200 = {
3327
+ content?: string;
3328
+ };
3329
+ export declare type DomainDnsExportParams = {
3330
+ domain: string;
3331
+ };
3332
+ export declare type Domains200DomainsItem = {
3333
+ /** @nullable */
3334
+ autogen_id?: string | null;
3335
+ /**
3336
+ * ssl exipry date
3337
+ * @nullable
3338
+ */
3339
+ date_ssl_exp?: string | null;
3340
+ docroot: string;
3341
+ domain: string;
3342
+ id: number;
3343
+ /**
3344
+ * ssl issuer
3345
+ * @nullable
3346
+ */
3347
+ ssl_issuer?: string | null;
3348
+ /** ssl status */
3349
+ ssl_status?: string;
3350
+ /** status */
3351
+ status?: string;
3352
+ type: string;
3353
+ };
3354
+ export declare type Domains200 = {
3355
+ domains: Domains200DomainsItem[];
3356
+ };
3357
+ export declare type DomainsType = typeof DomainsType[keyof typeof DomainsType];
3358
+ export declare const DomainsType: {
3359
+ readonly addon: "addon";
3360
+ readonly main: "main";
3361
+ readonly parked: "parked";
3362
+ readonly sub: "sub";
3363
+ readonly unassigned: "unassigned";
3364
+ };
3365
+ export declare type DomainsParams = {
3366
+ type?: DomainsType;
3367
+ };
3368
+ export declare type HostingDomainAvailability200 = {
3369
+ /** @nullable */
3370
+ assignable?: boolean | null;
3371
+ /** @nullable */
3372
+ assigned?: boolean | null;
3373
+ /** @nullable */
3374
+ assigned_to_this_product?: boolean | null;
3375
+ /** @nullable */
3376
+ can_assign?: boolean | null;
3377
+ /** @nullable */
3378
+ registered?: boolean | null;
3379
+ };
3380
+ export declare type HostingDomainAvailabilityParams = {
3381
+ domain: string;
3382
+ };
3383
+ export declare type HostingDomainAssign200 = {
3384
+ [key: string]: unknown;
3385
+ };
3386
+ export declare type HostingDomainAssignBody = {
3387
+ /** The domain name to be assigned */
3388
+ domain: string;
3389
+ /** HAL site id that will be passed to FG for domain assignment. Must be passed if path isn't. */
3390
+ site_id: string;
3391
+ /** Skip domain pointer order */
3392
+ skip_pointer?: boolean;
3393
+ };
3394
+ export declare type PrivacyUser200 = {
3395
+ /** Success/failure status */
3396
+ status?: number;
3397
+ };
3398
+ export declare type PrivacyUserBody = {
3399
+ /** directory's path whose user needs to be removed */
3400
+ docpath: string;
3401
+ /** user names to delete */
3402
+ htuser: string[];
3403
+ };
3404
+ export declare type EditPrivacy200 = {
3405
+ /**
3406
+ * docroot path
3407
+ */
3408
+ file?: string;
3409
+ /** */
3410
+ status?: string;
3411
+ };
3412
+ /**
3413
+ * action name
3414
+ */
3415
+ export declare type EditPrivacyBodyAction = typeof EditPrivacyBodyAction[keyof typeof EditPrivacyBodyAction];
3416
+ export declare const EditPrivacyBodyAction: {
3417
+ readonly view: "view";
3418
+ readonly enable: "enable";
3419
+ readonly disable: "disable";
3420
+ };
3421
+ export declare type EditPrivacyBody = {
3422
+ /** action name */
3423
+ action?: EditPrivacyBodyAction;
3424
+ /** directory that has to be protected */
3425
+ docpath: string;
3426
+ /** user to add for ppd */
3427
+ htuser: string;
3428
+ /** password that is required to lock the folder */
3429
+ pass: string;
3430
+ };
3431
+ export declare type Privacy200 = {
3432
+ /**
3433
+ * docroot path
3434
+ */
3435
+ file?: string;
3436
+ /** */
3437
+ status?: string;
3438
+ };
3439
+ /**
3440
+ * action name
3441
+ */
3442
+ export declare type PrivacyBodyAction = typeof PrivacyBodyAction[keyof typeof PrivacyBodyAction];
3443
+ export declare const PrivacyBodyAction: {
3444
+ readonly view: "view";
3445
+ readonly enable: "enable";
3446
+ readonly disable: "disable";
3447
+ };
3448
+ export declare type PrivacyBody = {
3449
+ /** action name */
3450
+ action?: PrivacyBodyAction;
3451
+ /** directory that has to be protected */
3452
+ docpath: string;
3453
+ };
3454
+ export declare type AddPrivacy200 = {
3455
+ /**
3456
+ * docroot path
3457
+ */
3458
+ file?: string;
3459
+ /** */
3460
+ status?: string;
3461
+ };
3462
+ /**
3463
+ * action name
3464
+ */
3465
+ export declare type AddPrivacyBodyAction = typeof AddPrivacyBodyAction[keyof typeof AddPrivacyBodyAction];
3466
+ export declare const AddPrivacyBodyAction: {
3467
+ readonly view: "view";
3468
+ readonly enable: "enable";
3469
+ readonly disable: "disable";
3470
+ };
3471
+ export declare type AddPrivacyBody = {
3472
+ /** action name */
3473
+ action?: AddPrivacyBodyAction;
3474
+ /** directory that has to be protected */
3475
+ docpath: string;
3476
+ /** user who can have an access to specific folder on their website */
3477
+ htuser: string;
3478
+ /** password that is required to lock the folder */
3479
+ pass: string;
3480
+ };
3481
+ export declare type DirectoryPrivacy200DirectoryItem = {
3482
+ /** @nullable */
3483
+ directory_path?: string | null;
3484
+ /** @nullable */
3485
+ directory_users?: string[] | null;
3486
+ };
3487
+ export declare type DirectoryPrivacy200 = {
3488
+ directory?: DirectoryPrivacy200DirectoryItem[];
3489
+ };
3490
+ export declare type DirectoryPrivacyParams = {
3491
+ docpath?: string;
3492
+ };
3493
+ export declare type DbMultipleUserDatabase200 = {
3494
+ [key: string]: unknown;
3495
+ };
3496
+ export declare type DbMultipleUserDatabaseBody = {
3497
+ /** Database names */
3498
+ db: string[];
3499
+ /** Database usernames */
3500
+ dbuser: string[];
3501
+ };
3502
+ export declare type DbUserRename200 = {
3503
+ success?: number;
3504
+ };
3505
+ export declare type DbUserRenameBody = {
3506
+ /** username mapped to DB */
3507
+ dbuser: string;
3508
+ /** updating username to new username in DB */
3509
+ new_dbuser: string;
3510
+ };
3511
+ export declare type DbUserList200UsersItem = {
3512
+ dblist?: string[];
3513
+ shortuser?: string;
3514
+ user?: string;
3515
+ };
3516
+ export declare type DbUserList200 = {
3517
+ users?: DbUserList200UsersItem[];
3518
+ };
3519
+ export declare type DbUserDelete200 = {
3520
+ dbuser?: string;
3521
+ };
3522
+ export declare type DbUserDeleteBody = {
3523
+ /** The complete database username */
3524
+ dbuser: string;
3525
+ };
3526
+ export declare type DbUserAdd200 = {
3527
+ password?: string;
3528
+ username?: string;
3529
+ };
3530
+ /**
3531
+ * Set for wanting either mysql or postgres
3532
+ */
3533
+ export declare type DbUserAddBodyDbType = typeof DbUserAddBodyDbType[keyof typeof DbUserAddBodyDbType];
3534
+ export declare const DbUserAddBodyDbType: {
3535
+ readonly mysql: "mysql";
3536
+ readonly postgres: "postgres";
3537
+ };
3538
+ export declare type DbUserAddBody = {
3539
+ /** Database name. */
3540
+ database?: string;
3541
+ /** Set for wanting either mysql or postgres */
3542
+ db_type?: DbUserAddBodyDbType;
3543
+ /** username to be created for the DB */
3544
+ dbuser: string;
3545
+ /**
3546
+ * Database password for this new user. If not provided one will be generated.
3547
+ * @minLength 12
3548
+ */
3549
+ password?: string;
3550
+ /** An array of user privileges. */
3551
+ privileges?: string[];
3552
+ /**
3553
+ * The account type; eg, cg for codeguard, used for auto-generated usernames. Max 2 characters.
3554
+ * @minLength 1
3555
+ * @maxLength 2
3556
+ */
3557
+ type?: string;
3558
+ };
3559
+ export declare type DbUserPrivsSet200 = {
3560
+ status?: number;
3561
+ };
3562
+ /**
3563
+ * Type of database
3564
+ */
3565
+ export declare type DbUserPrivsSetBodyType = typeof DbUserPrivsSetBodyType[keyof typeof DbUserPrivsSetBodyType];
3566
+ export declare const DbUserPrivsSetBodyType: {
3567
+ readonly mysql: "mysql";
3568
+ readonly postgres: "postgres";
3569
+ };
3570
+ export declare type DbUserPrivsSetBody = {
3571
+ /** Database name. */
3572
+ database?: string;
3573
+ /** Database user names. */
3574
+ dbusers?: string[];
3575
+ /** An array of user privileges. */
3576
+ privileges?: string[];
3577
+ /** Type of database */
3578
+ type?: DbUserPrivsSetBodyType;
3579
+ };
3580
+ export declare type DbUserPrivsGet200 = {
3581
+ privileges?: string[];
3582
+ };
3583
+ export declare type DbUserPrivsGetParams = {
3584
+ database: string;
3585
+ dbuser: string;
3586
+ };
3587
+ export declare type DbUserPasswordSet200 = {
3588
+ dbuser?: string;
3589
+ };
3590
+ export declare type DbUserPasswordSetBody = {
3591
+ /** Database user name. */
3592
+ dbuser: string;
3593
+ /** Database password to be updated. */
3594
+ password: string;
3595
+ };
3596
+ export declare type DbUsage200 = {
3597
+ db_count?: number;
3598
+ /** @nullable */
3599
+ db_limit?: number | null;
3600
+ };
3601
+ export declare type RepairDatabase200TablesItem = {
3602
+ status?: string;
3603
+ table?: string;
3604
+ };
3605
+ export declare type RepairDatabase200 = {
3606
+ tables?: RepairDatabase200TablesItem[];
3607
+ };
3608
+ export declare type RepairDatabaseBody = {
3609
+ /** A valid database name. */
3610
+ database: string;
3611
+ };
3612
+ export declare type DbCheckDatabase200TablesItem = {
3613
+ status?: string;
3614
+ table?: string;
3615
+ };
3616
+ export declare type DbCheckDatabase200 = {
3617
+ tables?: DbCheckDatabase200TablesItem[];
3618
+ };
3619
+ /**
3620
+ * Type of database
3621
+ */
3622
+ export declare type DbCheckDatabaseBodyType = typeof DbCheckDatabaseBodyType[keyof typeof DbCheckDatabaseBodyType];
3623
+ export declare const DbCheckDatabaseBodyType: {
3624
+ readonly mysql: "mysql";
3625
+ readonly postgres: "postgres";
3626
+ };
3627
+ export declare type DbCheckDatabaseBody = {
3628
+ /** A valid database name. */
3629
+ database: string;
3630
+ /** Type of database */
3631
+ type?: DbCheckDatabaseBodyType;
3632
+ };
3633
+ export declare type HostingDbAuthorizedHostsDelete200 = {
3634
+ success?: number;
3635
+ };
3636
+ export declare type HostingDbAuthorizedHostsDeleteBody = {
3637
+ host: string;
3638
+ };
3639
+ export declare type HostingDbAuthorizedHostsUpdate200 = {
3640
+ success?: number;
3641
+ };
3642
+ export declare type HostingDbAuthorizedHostsUpdateBody = {
3643
+ host: string;
3644
+ label?: string;
3645
+ new_host?: string;
3646
+ };
3647
+ export declare type HostingDbAuthorizedHostsAdd200 = {
3648
+ success?: number;
3649
+ };
3650
+ export declare type HostingDbAuthorizedHostsAddBody = {
3651
+ host: string;
3652
+ label?: string;
3653
+ };
3654
+ export declare type HostingDbAuthorizedHosts200RemoteIpsItem = {
3655
+ host?: string;
3656
+ label?: string;
3657
+ };
3658
+ export declare type HostingDbAuthorizedHosts200 = {
3659
+ remote_ips?: HostingDbAuthorizedHosts200RemoteIpsItem[];
3660
+ };
3661
+ export declare type Db200 = {
3662
+ dbname?: string;
3663
+ status?: number;
3664
+ type?: string;
3665
+ };
3666
+ /**
3667
+ * Type of database
3668
+ */
3669
+ export declare type DbBodyType = typeof DbBodyType[keyof typeof DbBodyType];
3670
+ export declare const DbBodyType: {
3671
+ readonly mysql: "mysql";
3672
+ readonly postgres: "postgres";
3673
+ };
3674
+ export declare type DbBody = {
3675
+ /** The name of the database to delete.First 8 characters of account username will be prepended.ex: {username}_{dbname} */
3676
+ dbname: string;
3677
+ /** Type of database */
3678
+ type?: DbBodyType;
3679
+ };
3680
+ export declare type DbAdd200 = {
3681
+ dbname?: string;
3682
+ status?: number;
3683
+ type?: string;
3684
+ };
3685
+ /**
3686
+ * Type of database to add
3687
+ */
3688
+ export declare type DbAddBodyType = typeof DbAddBodyType[keyof typeof DbAddBodyType];
3689
+ export declare const DbAddBodyType: {
3690
+ readonly mysql: "mysql";
3691
+ readonly postgres: "postgres";
3692
+ };
3693
+ export declare type DbAddBody = {
3694
+ /**
3695
+ * The database name. Account username_ will be prepended. Max length is 54 characters
3696
+ * @maxLength 54
3697
+ */
3698
+ dbname: string;
3699
+ /** Type of database to add */
3700
+ type?: DbAddBodyType;
3701
+ };
3702
+ export declare type CronLastRun200 = {
3703
+ /** @nullable */
3704
+ last_run?: string | null;
3705
+ };
3706
+ export declare type CronLastRunParams = {
3707
+ command: string;
3708
+ };
3709
+ export declare type Cron200 = {
3710
+ success?: boolean;
3711
+ };
3712
+ export declare type CronBody = {
3713
+ /** unique key for cron that is being updated */
3714
+ key: number;
3715
+ };
3716
+ export declare type UpdateCron200 = {
3717
+ key?: number;
3718
+ };
3719
+ export declare type UpdateCronBody = {
3720
+ /** command to run as a cron, needs to be a valid string */
3721
+ command: string;
3722
+ /** The day of the month on which the cron job runs. An integer between 1 and 31. * - Every day. *\/2 - Every other day. 1,15 - On the 1st and 15th of the month. */
3723
+ day: string;
3724
+ /** The hour of the day on which the cron job runs. An integer between 0 and 23. * - Every hour. *\/2 - Every other hour. 0,12 - Every 12 hours. */
3725
+ hour: string;
3726
+ /** unique key for cron that is being updated */
3727
+ key: number;
3728
+ /** The minute of the hour on which the cron job runs. An integer between 0 and 59. * - Once per minute. *\/2 - Every other minute. *\/10 - Every 10 minutes. 0,30 - Every 30 minutes. */
3729
+ minute: string;
3730
+ /** The month of the year on which the cron job runs. An integer between 1 and 12. * - Every month. *\/2 - Every other month. *\/6 - Every six months. */
3731
+ month: string;
3732
+ /** Type of command (command, variable, comment, blank, unparsed) */
3733
+ type?: string;
3734
+ /** The day of the week on which the cron job runs, 0-6. 0 - Sunday. 1 - Monday. 2 - Tuesday. 3 - Wednesday. 4 - Thursday. 5 - Friday. 6 - Saturday. * - Every day. */
3735
+ weekday: string;
3736
+ };
3737
+ export declare type AddCron400 = {
3738
+ error?: string;
3739
+ };
3740
+ export declare type AddCron200 = {
3741
+ key?: string;
3742
+ };
3743
+ export declare type AddCronBody = {
3744
+ /**
3745
+ * command to run as a cron, needs to be a valid string
3746
+ * @minLength 1
3747
+ */
3748
+ command: string;
3749
+ /** The day of the month on which the cron job runs. An integer between 1 and 31. * - Every day. *\/2 - Every other day. 1,15 - On the 1st and 15th of the month. */
3750
+ day?: string;
3751
+ /** The hour of the day on which the cron job runs. An integer between 0 and 23. * - Every hour. *\/2 - Every other hour. 0,12 - Every 12 hours. */
3752
+ hour?: string;
3753
+ /** The minute of the hour on which the cron job runs. An integer between 0 and 59. * - Once per minute. *\/2 - Every other minute. *\/10 - Every 10 minutes. 0,30 - Every 30 minutes. */
3754
+ minute?: string;
3755
+ /** The month of the year on which the cron job runs. An integer between 1 and 12. * - Every month. *\/2 - Every other month. *\/6 - Every six months. */
3756
+ month?: string;
3757
+ /** The day of the week on which the cron job runs, 0-6. 0 - Sunday. 1 - Monday. 2 - Tuesday. 3 - Wednesday. 4 - Thursday. 5 - Friday. 6 - Saturday. * - Every day. */
3758
+ weekday?: string;
3759
+ };
3760
+ export declare type ListCrons200RowsItem = {
3761
+ command?: string;
3762
+ day?: string;
3763
+ email?: string;
3764
+ hour?: string;
3765
+ /** */
3766
+ key?: number;
3767
+ line?: string;
3768
+ minute?: string;
3769
+ month?: string;
3770
+ type?: string;
3771
+ weekday?: string;
3772
+ };
3773
+ export declare type ListCrons200 = {
3774
+ rows?: ListCrons200RowsItem[];
3775
+ };
3776
+ export declare type HostingCapabilities200 = {
3777
+ advanced_hosting?: boolean;
3778
+ cbs_backups?: boolean;
3779
+ cpanel?: boolean;
3780
+ is_sitelock_migrated?: boolean;
3781
+ reset_password?: boolean;
3782
+ server_controls?: boolean;
3783
+ sites?: boolean;
3784
+ whm?: boolean;
3785
+ };
3786
+ export declare type HostingAdvancedSystemConsole200 = {
3787
+ url?: string;
3788
+ };
3789
+ /**
3790
+ * @nullable
3791
+ */
3792
+ export declare type HostingAdvancedSsoWhm200SslSetup = {
3793
+ /** @nullable */
3794
+ dns_updated?: number | null;
3795
+ /** @nullable */
3796
+ dns_zone_with_us?: number | null;
3797
+ /** @nullable */
3798
+ domain?: string | null;
3799
+ /** @nullable */
3800
+ required?: number | null;
3801
+ /** @nullable */
3802
+ server_hostname?: string | null;
3803
+ /** @nullable */
3804
+ server_ip?: string | null;
3805
+ } | null;
3806
+ export declare type HostingAdvancedSsoWhm200 = {
3807
+ /** @nullable */
3808
+ ssl_setup?: HostingAdvancedSsoWhm200SslSetup;
3809
+ url?: string;
3810
+ };
3811
+ export declare type HostingAdvancedPassword200 = {
3812
+ success?: boolean;
3813
+ };
3814
+ export declare type HostingAdvancedPasswordBody = {
3815
+ /** The username to be updated */
3816
+ account_username?: string;
3817
+ /**
3818
+ * The password to be updated to
3819
+ * @minLength 6
3820
+ */
3821
+ password: string;
3822
+ };
3823
+ export declare type HostingAdvancedServerStatus200Actions = {
3824
+ [key: string]: unknown;
3825
+ };
3826
+ export declare type HostingAdvancedServerStatus200 = {
3827
+ actions?: HostingAdvancedServerStatus200Actions;
3828
+ status?: string;
3829
+ uptime?: string;
3830
+ uptime_seconds?: number;
3831
+ };
3832
+ export declare type HostingAdvancedServerStatusBody = {
3833
+ /** action to be performed */
3834
+ action?: string;
3835
+ };
3836
+ export declare type HostingAdvancedServer200Ips = {
3837
+ other_ips?: string[];
3838
+ /** primary IP of server */
3839
+ primary_ip?: string;
3840
+ };
3841
+ export declare type HostingAdvancedServer200Actions = {
3842
+ [key: string]: unknown;
3843
+ };
3844
+ export declare type HostingAdvancedServer200 = {
3845
+ actions?: HostingAdvancedServer200Actions;
3846
+ /** hostname of server */
3847
+ hostname?: string;
3848
+ ips?: HostingAdvancedServer200Ips;
3849
+ /** Operating system name */
3850
+ os_name?: string;
3851
+ /** Operating system version */
3852
+ os_version?: string;
3853
+ status?: string;
3854
+ uptime?: string;
3855
+ uptime_seconds?: number;
3856
+ };
3857
+ export declare type HostingAdvancedDomainServices200 = {
3858
+ success?: number;
3859
+ };
3860
+ export declare type HostingAdvancedDomainServicesBody = {
3861
+ /** the domain name to be configured */
3862
+ domain: string;
3863
+ };
3864
+ export declare type HostingAdvancedDomainServicesCheck200 = {
3865
+ /** 1 if domain services need to be configured, 0 if not */
3866
+ configure_domain_services?: number;
3867
+ /** Whether a user exists that HAL doesn't know about; should disable some functionality if 0 and configure_domain_services is 1 */
3868
+ managed_cpanel_user_exists?: number;
3869
+ };
3870
+ export declare type HostingAdvancedDnsUpdate200 = {
3871
+ [key: string]: unknown;
3872
+ };
3873
+ export declare type HostingAdvancedDnsUpdateBody = {
3874
+ /** Domain name */
3875
+ domain: string;
3876
+ /** Server Hostname */
3877
+ hostname: string;
3878
+ /** Server IP */
3879
+ server_ip: string;
3880
+ };
3881
+ export declare type HostingAdvancedDns200DnsItem = {
3882
+ /** @nullable */
3883
+ content?: string | null;
3884
+ /** @nullable */
3885
+ name?: string | null;
3886
+ /** @nullable */
3887
+ ttl?: number | null;
3888
+ /** @nullable */
3889
+ type?: string | null;
3890
+ };
3891
+ export declare type HostingAdvancedDns200 = {
3892
+ dns?: HostingAdvancedDns200DnsItem[];
3893
+ };
3894
+ export declare type HostingAdvancedDnsParams = {
3895
+ hostname: string;
3896
+ domain: string;
3897
+ dns_with_us?: number;
3898
+ };
3899
+ export declare type HostingAddons200RowsItemMeta = {
3900
+ [key: string]: string | number | boolean;
3901
+ };
3902
+ export declare type HostingAddons200RowsItem = {
3903
+ /** @nullable */
3904
+ back_reference?: string | null;
3905
+ id?: string;
3906
+ meta?: HostingAddons200RowsItemMeta;
3907
+ /** @nullable */
3908
+ ssh_hostname?: string | null;
3909
+ status?: string;
3910
+ status_user?: string;
3911
+ subtype?: string;
3912
+ type?: string;
3913
+ };
3914
+ export declare type HostingAddons200 = {
3915
+ rows?: HostingAddons200RowsItem[];
3916
+ };
3917
+ export declare type HostingAddonsParams = {
3918
+ status?: string;
3919
+ subtype?: string;
3920
+ type?: string;
3921
+ };
3922
+ export declare type ActivityLog200ActivityItem = {
3923
+ /** @nullable */
3924
+ account_id?: string | null;
3925
+ /** @nullable */
3926
+ addon_id?: string | null;
3927
+ data?: string;
3928
+ date_entry?: string;
3929
+ /** @nullable */
3930
+ domain_id?: string | null;
3931
+ event?: string;
3932
+ site_id?: string;
3933
+ status?: string;
3934
+ tenant_id?: string;
3935
+ };
3936
+ export declare type ActivityLog200 = {
3937
+ activity?: ActivityLog200ActivityItem[];
3938
+ };
3939
+ export declare type ActivityLogParams = {
3940
+ days?: number;
3941
+ };
3942
+ export declare type HostingAccount200ResourcesWorkers = {
3943
+ /** @nullable */
3944
+ available?: number | null;
3945
+ /** @nullable */
3946
+ total?: number | null;
3947
+ /** @nullable */
3948
+ used?: number | null;
3949
+ };
3950
+ export declare type HostingAccount200ResourcesStorage = {
3951
+ /** @nullable */
3952
+ available?: number | null;
3953
+ /** @nullable */
3954
+ total?: number | null;
3955
+ unit?: string;
3956
+ /** @nullable */
3957
+ used?: number | null;
3958
+ };
3959
+ /**
3960
+ * @nullable
3961
+ */
3962
+ export declare type HostingAccount200Resources = {
3963
+ staging?: HostingAccount200ResourcesStaging;
3964
+ storage?: HostingAccount200ResourcesStorage;
3965
+ workers?: HostingAccount200ResourcesWorkers;
3966
+ } | null;
3967
+ export declare type HostingAccount200 = {
3968
+ account_id?: string;
3969
+ advanced?: boolean;
3970
+ billing?: HostingAccount200Billing;
3971
+ brand?: string;
3972
+ id?: string;
3973
+ panel?: string;
3974
+ plan_key?: string;
3975
+ platform?: string;
3976
+ /** @nullable */
3977
+ resources?: HostingAccount200Resources;
3978
+ /** @nullable */
3979
+ ssh_hostname?: string | null;
3980
+ status?: string;
3981
+ type?: string;
3982
+ username?: string;
3983
+ };
3984
+ export declare type HostingAccount200ResourcesStagingWorkers = {
3985
+ /** @nullable */
3986
+ available?: number | null;
3987
+ /** @nullable */
3988
+ total?: number | null;
3989
+ /** @nullable */
3990
+ used?: number | null;
3991
+ };
3992
+ export declare type HostingAccount200ResourcesStagingStorage = {
3993
+ /** @nullable */
3994
+ available?: number | null;
3995
+ /** @nullable */
3996
+ total?: number | null;
3997
+ unit?: string;
3998
+ /** @nullable */
3999
+ used?: number | null;
4000
+ };
4001
+ export declare type HostingAccount200ResourcesStaging = {
4002
+ storage?: HostingAccount200ResourcesStagingStorage;
4003
+ workers?: HostingAccount200ResourcesStagingWorkers;
4004
+ };
4005
+ export declare type HostingAccount200Billing = {
4006
+ prod_code?: string;
4007
+ product_name?: string;
4008
+ subbrand?: string;
4009
+ };
4010
+ export declare type DomainZoneeditorUrl200 = {
4011
+ url: string;
4012
+ };
4013
+ export declare type DomainUnassign200 = {
4014
+ [key: string]: unknown;
4015
+ };
4016
+ export declare type AccessLogs200LogsItem = {
4017
+ /** @nullable */
4018
+ date?: string | null;
4019
+ /** @nullable */
4020
+ device?: string | null;
4021
+ /** @nullable */
4022
+ host?: string | null;
4023
+ /** @nullable */
4024
+ ip?: string | null;
4025
+ /** @nullable */
4026
+ request?: string | null;
4027
+ /** @nullable */
4028
+ response_code?: number | null;
4029
+ /** @nullable */
4030
+ response_size?: number | null;
4031
+ /** @nullable */
4032
+ server_ip?: string | null;
4033
+ };
4034
+ export declare type AccessLogs200 = {
4035
+ logs?: AccessLogs200LogsItem[];
4036
+ };
4037
+ export declare type AccessLogsType = typeof AccessLogsType[keyof typeof AccessLogsType];
4038
+ export declare const AccessLogsType: {
4039
+ readonly error: "error";
4040
+ readonly all: "all";
4041
+ };
4042
+ export declare type AccessLogsParams = {
4043
+ /**
4044
+ * Access logs type
4045
+ */
4046
+ type?: AccessLogsType;
4047
+ };
4048
+ export declare type DomainDnszoneReset200 = {
4049
+ [key: string]: unknown;
4050
+ };
4051
+ export declare type DomainDnseditorEdit200 = {
4052
+ success?: number;
4053
+ };
4054
+ export declare type DomainDnseditorEditBody = {
4055
+ /** It describes dns point value for each type of record */
4056
+ content?: string;
4057
+ /** Flag of each DNS record it has */
4058
+ flag?: string;
4059
+ /** name type of dns record */
4060
+ name?: string;
4061
+ /** actual cotent on which the records points to */
4062
+ orig_content?: string;
4063
+ /** actual name that records holds */
4064
+ orig_name?: string;
4065
+ /** Port of SRV DNS record */
4066
+ port?: string;
4067
+ /** Priority of each DNS record, Default priority would be set to one */
4068
+ preference?: string;
4069
+ /** Priority of each DNS record, Default priority would be set to one */
4070
+ priority?: string;
4071
+ /** protocal of DNS record */
4072
+ protocol?: string;
4073
+ /** Tag of each DNS record */
4074
+ tag?: string;
4075
+ /** Target of SRV DNS record example.domain.com */
4076
+ target?: string;
4077
+ /** manage domain DNS records (A, MX, CNAME, TXT and SRV Records) for individual services */
4078
+ ttl?: string;
4079
+ /** Add host records for your domain name, such as A Records, MX Records, or IPV6 (AAAA). Choose MANAGE to see the full list of supported records */
4080
+ type?: string;
4081
+ /** Weight of each DNS record it holds */
4082
+ weight?: string;
4083
+ };
4084
+ export declare type DomainDnseditorAdd200 = {
4085
+ success?: number;
4086
+ };
4087
+ export declare type DomainDnseditorAddBodyRecordsItem = {
4088
+ /** It describes dns point value for each type of record */
4089
+ content?: string;
4090
+ /** mail server that domain of DNS record points to */
4091
+ exchange?: string;
4092
+ /** Flag of each DNS record it has */
4093
+ flag?: string;
4094
+ /** name type of dns record */
4095
+ name?: string;
4096
+ /** mail server that domain of DNS record points to */
4097
+ nsdname?: string;
4098
+ /** Port of SRV DNS record */
4099
+ port?: string;
4100
+ /** Priority of each DNS record, Default priority would be set to one */
4101
+ priority?: string;
4102
+ /** protocal of DNS record */
4103
+ protocol?: string;
4104
+ /** Tag of each DNS record */
4105
+ tag?: string;
4106
+ /** Target of SRV DNS record example.domain.com */
4107
+ target?: string;
4108
+ /** manage domain DNS records (A, MX, CNAME, TXT and SRV Records) for individual services */
4109
+ ttl?: string;
4110
+ /** Add host records for your domain name, such as A Records, MX Records, or IPV6 (AAAA). Choose MANAGE to see the full list of supported records */
4111
+ type?: string;
4112
+ /** mail server that domain of DNS record points to */
4113
+ value?: string;
4114
+ /** Weight of each DNS record it holds */
4115
+ weight?: string;
4116
+ };
4117
+ export declare type DomainDnseditorAddBody = {
4118
+ records?: DomainDnseditorAddBodyRecordsItem[];
4119
+ };
4120
+ export declare type DomainDnseditorList200DnsRecordsItem = {
4121
+ /**
4122
+ * It describes dns point value for each type of record
4123
+ * @nullable
4124
+ */
4125
+ content?: string | null;
4126
+ /**
4127
+ * Flag of each DNS record it has
4128
+ * @nullable
4129
+ */
4130
+ flag?: string | null;
4131
+ /** name type of dns record with domain name */
4132
+ name?: string;
4133
+ /**
4134
+ * Port of SRV DNS record
4135
+ * @nullable
4136
+ */
4137
+ port?: string | null;
4138
+ /**
4139
+ * Priority of each DNS record, Default priority would be set to one
4140
+ * @nullable
4141
+ */
4142
+ preference?: string | null;
4143
+ /**
4144
+ * Priority of each DNS record, Default priority would be set to one
4145
+ * @nullable
4146
+ */
4147
+ priority?: string | null;
4148
+ /**
4149
+ * Tag of each DNS record
4150
+ * @nullable
4151
+ */
4152
+ tag?: string | null;
4153
+ /**
4154
+ * Target of SRV DNS record example.domain.com
4155
+ * @nullable
4156
+ */
4157
+ target?: string | null;
4158
+ /** How long the DNS record is valid for */
4159
+ ttl?: number;
4160
+ /** manage domain DNS records (A, MX, CNAME, TXT and SRV Records) for individual services */
4161
+ type?: string;
4162
+ /**
4163
+ * Tag value for CAA Record
4164
+ * @nullable
4165
+ */
4166
+ value?: string | null;
4167
+ /**
4168
+ * Weight of each DNS record it holds
4169
+ * @nullable
4170
+ */
4171
+ weight?: string | null;
4172
+ };
4173
+ export declare type DomainDnseditorList200 = {
4174
+ dns_records?: DomainDnseditorList200DnsRecordsItem[];
4175
+ };
4176
+ export declare type DomainDnseditor200 = {
4177
+ success?: number;
4178
+ };
4179
+ export declare type DomainDnseditorBodyRecordsItem = {
4180
+ /** It describes dns point value for each type of record */
4181
+ content?: string;
4182
+ /** mail server that domain of DNS record points to */
4183
+ exchange?: string;
4184
+ /** Flag of each DNS record it has */
4185
+ flag?: string;
4186
+ /** name type of dns record */
4187
+ name?: string;
4188
+ /** mail server that domain of DNS record points to */
4189
+ nsdname?: string;
4190
+ /** Port of SRV DNS record */
4191
+ port?: string;
4192
+ /** Priority of each DNS record, Default priority would be set to one */
4193
+ priority?: string;
4194
+ /** protocal of DNS record */
4195
+ protocol?: string;
4196
+ /** Tag of each DNS record */
4197
+ tag?: string;
4198
+ /** Target of SRV DNS record example.domain.com */
4199
+ target?: string;
4200
+ /** manage domain DNS records (A, MX, CNAME, TXT and SRV Records) for individual services */
4201
+ ttl?: string;
4202
+ /** Add host records for your domain name, such as A Records, MX Records, or IPV6 (AAAA). Choose MANAGE to see the full list of supported records */
4203
+ type?: string;
4204
+ /** mail server that domain of DNS record points to */
4205
+ value?: string;
4206
+ /** Weight of each DNS record it holds */
4207
+ weight?: string;
4208
+ };
4209
+ export declare type DomainDnseditorBody = {
4210
+ records?: DomainDnseditorBodyRecordsItem[];
4211
+ };
4212
+ export declare type DomainCertUninstall200 = {
4213
+ [key: string]: unknown;
4214
+ };
4215
+ export declare type DomainCertUpdate200 = {
4216
+ [key: string]: unknown;
4217
+ };
4218
+ export declare type DomainCertUpdateBody = {
4219
+ enable: boolean;
4220
+ };
4221
+ export declare type DomainCertInstall200 = {
4222
+ [key: string]: unknown;
4223
+ };
4224
+ export declare type DomainCertInstallBody = {
4225
+ /** cabundle */
4226
+ cabundle?: string;
4227
+ /** raw private key or path to private key on userbox */
4228
+ crt: string;
4229
+ /** private key */
4230
+ key?: string;
4231
+ };
4232
+ export declare type DomainCerts200CertsItem = {
4233
+ /** certificate id */
4234
+ cert_id?: string;
4235
+ /** domain name */
4236
+ domain?: string;
4237
+ /** exipry date */
4238
+ expires_on?: string;
4239
+ /** issued date */
4240
+ issued_on?: string;
4241
+ };
4242
+ export declare type DomainCerts200 = {
4243
+ certs?: DomainCerts200CertsItem[];
4244
+ };
4245
+ /**
4246
+ * @nullable
4247
+ */
4248
+ export declare type DomainInfo200SetupProgress = {
4249
+ /**
4250
+ * Result of domain cdn validation (null=not started,0=started,1=succeeded,2=skipped)
4251
+ * @nullable
4252
+ */
4253
+ validate_cdn?: number | null;
4254
+ /**
4255
+ * Most recent error logged during domain cdn validation. Remains set if validation tries run out. Gets reset by new validation job.
4256
+ * @nullable
4257
+ */
4258
+ validate_cdn_error?: string | null;
4259
+ /**
4260
+ * Result of domain dns validation (null=not started,0=started,1=succeeded,2=skipped)
4261
+ * @nullable
4262
+ */
4263
+ validate_dns?: number | null;
4264
+ /**
4265
+ * Whether dns_auto_repair was run on this domain (1=true)
4266
+ * @nullable
4267
+ */
4268
+ validate_dns_auto_repair?: number | null;
4269
+ /**
4270
+ * Most recent error logged during domain dns validation. Remains set if validation tries run out. Gets reset by new validation job.
4271
+ * @nullable
4272
+ */
4273
+ validate_dns_error?: string | null;
4274
+ /**
4275
+ * Most recent error logged during domain validation. Remains set if validation tries run out. Gets reset by new validation job.
4276
+ * @nullable
4277
+ */
4278
+ validate_error?: string | null;
4279
+ /**
4280
+ * Result of domain ssl validation (null=not started,0=started,1=succeeded,2=skipped)
4281
+ * @nullable
4282
+ */
4283
+ validate_ssl?: number | null;
4284
+ /**
4285
+ * Most recent error logged during domain ssl validation. Remains set if validation tries run out. Gets reset by new validation job.
4286
+ * @nullable
4287
+ */
4288
+ validate_ssl_error?: string | null;
4289
+ } | null;
4290
+ export declare type DomainInfo200 = {
4291
+ /** @nullable */
4292
+ account_back_ref?: string | null;
4293
+ /** @nullable */
4294
+ authoritative?: boolean | null;
4295
+ /** @nullable */
4296
+ autogen_id?: number | null;
4297
+ /** @nullable */
4298
+ back_reference?: string | null;
4299
+ base_domain?: string;
4300
+ /** @nullable */
4301
+ billing_account_id?: string | null;
4302
+ /** @nullable */
4303
+ billing_status?: string | null;
4304
+ date_added?: string;
4305
+ date_modified?: string;
4306
+ /** @nullable */
4307
+ date_ssl_exp?: string | null;
4308
+ dns_status?: string;
4309
+ /** @nullable */
4310
+ docroot?: string | null;
4311
+ domain?: string;
4312
+ /** @nullable */
4313
+ homedir?: string | null;
4314
+ /** @nullable */
4315
+ hosting_id?: number | null;
4316
+ id?: number;
4317
+ /**
4318
+ * Whether the domain is internal to us, external, or cannot be determined
4319
+ * @nullable
4320
+ */
4321
+ is_internal?: boolean | null;
4322
+ /** @nullable */
4323
+ nameservers?: string[] | null;
4324
+ /** @nullable */
4325
+ platform?: string | null;
4326
+ /** @nullable */
4327
+ platform_type?: string | null;
4328
+ /** @nullable */
4329
+ product_id?: string | null;
4330
+ /** @nullable */
4331
+ setup_progress?: DomainInfo200SetupProgress;
4332
+ /** @nullable */
4333
+ ssl_issuer?: string | null;
4334
+ /** @nullable */
4335
+ ssl_status?: string | null;
4336
+ /** @nullable */
4337
+ ssl_type?: string | null;
4338
+ status?: string;
4339
+ /** @nullable */
4340
+ third_party_dns?: boolean | null;
4341
+ type?: string;
4342
+ };
4343
+ export declare type WeeblySso200 = {
4344
+ sso?: string;
4345
+ };
4346
+ export declare type WebzaiSso200 = {
4347
+ sso?: string;
4348
+ };
4349
+ export declare type AddonsSpamexpertsSso200 = {
4350
+ url?: string;
4351
+ };
4352
+ export declare type AddonsJetpackValidate200 = {
4353
+ is_connected?: boolean;
4354
+ };
4355
+ export declare type AddonsInfo200 = {
4356
+ id?: string;
4357
+ };
4358
+ export declare type AddonsCloudflare200 = {
4359
+ status?: string;
4360
+ };
4361
+ /**
4362
+ * @nullable
4363
+ */
4364
+ export declare type BackupMeta200CbsEventProcessing = {
4365
+ /** @nullable */
4366
+ action?: string | null;
4367
+ /** @nullable */
4368
+ client_tracking_id?: string | null;
4369
+ /** @nullable */
4370
+ type?: string | null;
4371
+ } | null;
4372
+ export declare type BackupMeta200CbsDownloadablesItem = {
4373
+ /** @nullable */
4374
+ id?: string | null;
4375
+ /** @nullable */
4376
+ time_req_completed?: number | null;
4377
+ /** @nullable */
4378
+ type?: string | null;
4379
+ /** @nullable */
4380
+ url?: string | null;
4381
+ };
4382
+ export declare type BackupMeta200 = {
4383
+ /** @nullable */
4384
+ cbs_downloadables?: BackupMeta200CbsDownloadablesItem[] | null;
4385
+ /** @nullable */
4386
+ cbs_event_processing?: BackupMeta200CbsEventProcessing;
4387
+ /** @nullable */
4388
+ cbs_last_restore_timestamp?: string | null;
4389
+ };
4390
+ export declare type BackupList200HomeItemBackupStatus = {
4391
+ /** @nullable */
4392
+ download_url?: string | null;
4393
+ status?: string;
4394
+ tracking_id?: number;
4395
+ };
4396
+ export declare type BackupList200HomeItem = {
4397
+ backup_id?: string;
4398
+ backup_status?: BackupList200HomeItemBackupStatus;
4399
+ time_created?: string;
4400
+ };
4401
+ export declare type BackupList200 = {
4402
+ home?: BackupList200HomeItem[];
4403
+ };
4404
+ export declare type BackupListBackupType = typeof BackupListBackupType[keyof typeof BackupListBackupType];
4405
+ export declare const BackupListBackupType: {
4406
+ readonly full: "full";
4407
+ readonly home: "home";
4408
+ readonly mysql: "mysql";
4409
+ };
4410
+ export declare type BackupListParams = {
4411
+ backup_type: BackupListBackupType;
4412
+ };
4413
+ export declare type BackupStatus200 = {
4414
+ /** @nullable */
4415
+ download_url?: string | null;
4416
+ /** @nullable */
4417
+ message?: string | null;
4418
+ status?: string;
4419
+ };
4420
+ export declare type BackupStatusParams = {
4421
+ tracking_id: number;
4422
+ };
4423
+ export declare type BackupInitiate200 = {
4424
+ message?: string;
4425
+ tracking_id?: number;
4426
+ };
4427
+ /**
4428
+ * The type of the backup
4429
+ */
4430
+ export declare type BackupInitiateBodyBackupType = typeof BackupInitiateBodyBackupType[keyof typeof BackupInitiateBodyBackupType];
4431
+ export declare const BackupInitiateBodyBackupType: {
4432
+ readonly home: "home";
4433
+ readonly mysql: "mysql";
4434
+ readonly full: "full";
4435
+ };
4436
+ export declare type BackupInitiateBody = {
4437
+ /** The type of the backup */
4438
+ backup_type: BackupInitiateBodyBackupType;
4439
+ /** Backup Volume store ID to get the backup */
4440
+ backup_volume_store_id: string;
4441
+ };
4442
+ export declare type AddonsSitelockSso200 = {
4443
+ site_url?: string;
4444
+ sitelock_id?: string;
4445
+ url?: string;
4446
+ };
4447
+ export declare type CodeguardWebsiteBackupRestore200 = {
4448
+ status?: string;
4449
+ };
4450
+ export declare type CodeguardWebsiteBackupRestoreBody = {
4451
+ /** The commit id to restore the website from. */
4452
+ commit_id?: string;
4453
+ /** The id of the website the given database is associated with. */
4454
+ website_id?: number;
4455
+ };
4456
+ export declare type CodeguardWebsiteBackupCreate200 = {
4457
+ status?: string;
4458
+ };
4459
+ export declare type CodeguardWebsiteBackupCreateBody = {
4460
+ /** The id for the website to create a backup for. This id can be obtained through a call to the website_list action. */
4461
+ website_id?: number;
4462
+ };
4463
+ export declare type CodeguardWebsiteBackupList200BackupsItem = {
4464
+ commit_id?: string;
4465
+ event_time?: string;
4466
+ modifications?: number;
4467
+ new_content?: boolean;
4468
+ };
4469
+ export declare type CodeguardWebsiteBackupList200 = {
4470
+ backups?: CodeguardWebsiteBackupList200BackupsItem[];
4471
+ };
4472
+ export declare type CodeguardWebsiteBackupListParams = {
4473
+ website_id?: number;
4474
+ };
4475
+ export declare type CodeguardWebsiteList200WebsiteListItemWebsite = {
4476
+ activated?: boolean;
4477
+ id?: number;
4478
+ url?: string;
4479
+ };
4480
+ export declare type CodeguardWebsiteList200WebsiteListItem = {
4481
+ website?: CodeguardWebsiteList200WebsiteListItemWebsite;
4482
+ };
4483
+ export declare type CodeguardWebsiteList200 = {
4484
+ website_list?: CodeguardWebsiteList200WebsiteListItem[];
4485
+ };
4486
+ export declare type CodeguardPlanInfo200SeatsItem = {
4487
+ activated?: boolean;
4488
+ url?: string;
4489
+ website_id?: number;
4490
+ };
4491
+ export declare type CodeguardPlanInfo200 = {
4492
+ back_reference?: string;
4493
+ can_upgrade?: boolean;
4494
+ /** @nullable */
4495
+ disabled?: boolean | null;
4496
+ /** @nullable */
4497
+ over_quota?: boolean | null;
4498
+ plan_name?: string;
4499
+ seat_count?: number;
4500
+ seat_limit?: number;
4501
+ seats?: CodeguardPlanInfo200SeatsItem[];
4502
+ size?: number;
4503
+ size_limit?: number;
4504
+ status?: string;
4505
+ };
4506
+ export declare type CodeguardLoginLink200 = {
4507
+ link?: string;
4508
+ };
4509
+ export declare type CodeguardDatabaseBackupRestore200 = {
4510
+ status?: string;
4511
+ };
4512
+ export declare type CodeguardDatabaseBackupRestoreBody = {
4513
+ /** The commit_id for the backup to restore */
4514
+ commit_id?: string;
4515
+ /** The id for the database to create a new backup for. */
4516
+ database_id?: number;
4517
+ /** The id of the website the given database is associated with. */
4518
+ website_id?: number;
4519
+ };
4520
+ export declare type CodeguardDatabaseBackupCreate200 = {
4521
+ status?: string;
4522
+ };
4523
+ export declare type CodeguardDatabaseBackupCreateBody = {
4524
+ /** The id for the database to create a new backup for. */
4525
+ database_id?: number;
4526
+ /** The id of the website the given database is associated with. */
4527
+ website_id?: number;
4528
+ };
4529
+ export declare type CodeguardDatabaseBackupList200BackupsItem = {
4530
+ commit_id?: string;
4531
+ event_time?: string;
4532
+ };
4533
+ export declare type CodeguardDatabaseBackupList200 = {
4534
+ backups?: CodeguardDatabaseBackupList200BackupsItem[];
4535
+ };
4536
+ export declare type CodeguardDatabaseBackupListParams = {
4537
+ database_id?: number;
4538
+ website_id?: number;
4539
+ };
4540
+ export declare type CodeguardDatabaseList200DatabasesItemDatabaseBackup = {
4541
+ account?: string;
4542
+ commit_id?: string;
4543
+ id?: number;
4544
+ website_id?: number;
4545
+ };
4546
+ export declare type CodeguardDatabaseList200DatabasesItem = {
4547
+ database_backup?: CodeguardDatabaseList200DatabasesItemDatabaseBackup;
4548
+ };
4549
+ export declare type CodeguardDatabaseList200 = {
4550
+ databases?: CodeguardDatabaseList200DatabasesItem[];
4551
+ status?: number;
4552
+ };
4553
+ export declare type CodeguardBackupRestore200 = {
4554
+ database_success?: boolean;
4555
+ website_success?: boolean;
4556
+ };
4557
+ export declare type CodeguardBackupRestoreBody = {
4558
+ /** The commit id to restore the database from. */
4559
+ database_commit_id?: string;
4560
+ /** The id of the database the given database is associated with. */
4561
+ database_id?: number;
4562
+ /** The commit id to restore the website from. */
4563
+ website_commit_id?: string;
4564
+ /** The id of the website the given database is associated with. */
4565
+ website_id?: number;
4566
+ };
4567
+ export declare type CodeguardBackupDownload200 = {
4568
+ status?: string;
4569
+ };
4570
+ export declare type CodeguardBackupDownloadBody = {
4571
+ /** The commit id to restore the database from. */
4572
+ database_commit_id?: string;
4573
+ /** The commit id to restore the website from. */
4574
+ website_commit_id?: string;
4575
+ /** The id of the website the given database is associated with. */
4576
+ website_id?: number;
4577
+ };
4578
+ export declare type CodeguardBackupCreate200 = {
4579
+ database_success?: number;
4580
+ status?: string;
4581
+ website_success?: number;
4582
+ };
4583
+ export declare type CodeguardBackupCreateBody = {
4584
+ /** The id of the database the given database is associated with. */
4585
+ database_id?: number;
4586
+ /** The id of the website the given database is associated with. */
4587
+ website_id?: number;
4588
+ };
4589
+ export declare type CodeguardBackupList200BackupsItemDatabaseBackupsItem = {
4590
+ commit_id?: string;
4591
+ event_time?: string;
4592
+ id?: number;
4593
+ recommended?: boolean;
4594
+ };
4595
+ export declare type CodeguardBackupList200BackupsItem = {
4596
+ database_backups?: CodeguardBackupList200BackupsItemDatabaseBackupsItem[];
4597
+ event_time?: string;
4598
+ website_commit_id?: string;
4599
+ };
4600
+ export declare type CodeguardBackupList200 = {
4601
+ backups?: CodeguardBackupList200BackupsItem[];
4602
+ };
4603
+ export declare type CodeguardBackupListParams = {
4604
+ website_id: number;
4605
+ };
4606
+ export declare type AccountPublicKeyDelete404 = {
4607
+ error?: string;
4608
+ };
4609
+ export declare type AccountPublicKeyDelete200 = {
4610
+ [key: string]: unknown;
4611
+ };
4612
+ export declare type AccountPublicKeyToggle409 = {
4613
+ error?: string;
4614
+ };
4615
+ export declare type AccountPublicKeyToggle200 = {
4616
+ /** Creates a background validation task. */
4617
+ job_id?: number;
4618
+ };
4619
+ export declare type AccountPublicKeyToggleBody = {
4620
+ /** boolean flag to enable or disable a public key */
4621
+ enabled: boolean;
4622
+ };
4623
+ export declare type AccountPublicKey404 = {
4624
+ error?: string;
4625
+ };
4626
+ export declare type AccountPublicKey200 = {
4627
+ /**
4628
+ * Public key last modified datetime stamp
4629
+ * @nullable
4630
+ */
4631
+ date_modified?: string | null;
4632
+ /** Public key ID */
4633
+ id?: number;
4634
+ /** Public key is active flag */
4635
+ is_active?: boolean;
4636
+ /** Public key nickname */
4637
+ name?: string;
4638
+ /** public key */
4639
+ public_key?: string;
4640
+ };
4641
+ export declare type AccountPublicKeyCreate409 = {
4642
+ error?: string;
4643
+ };
4644
+ export declare type AccountPublicKeyCreate200 = {
4645
+ /**
4646
+ * Public key last modified datetime stamp
4647
+ * @nullable
4648
+ */
4649
+ date_modified?: string | null;
4650
+ /** Public key ID */
4651
+ id?: number;
4652
+ /** Public key is active flag */
4653
+ is_active?: boolean;
4654
+ /** Public key nickname */
4655
+ name?: string;
4656
+ /** Public key */
4657
+ public_key?: string;
4658
+ };
4659
+ export declare type AccountPublicKeyCreateBody = {
4660
+ /** Public key flag toggle (default: true) */
4661
+ is_active?: boolean;
4662
+ /** Public key nickname */
4663
+ name: string;
4664
+ /** Public key */
4665
+ public_key: string;
4666
+ };
4667
+ export declare type AccountPublicKeys200PublicKeysItem = {
4668
+ /**
4669
+ * Public key last modified datetime stamp
4670
+ * @nullable
4671
+ */
4672
+ date_modified?: string | null;
4673
+ /** Public key ID */
4674
+ id?: number;
4675
+ /** Public key is active flag */
4676
+ is_active?: boolean;
4677
+ /** Public key nickname */
4678
+ name?: string;
4679
+ public_key?: string;
4680
+ };
4681
+ export declare type AccountPublicKeys200 = {
4682
+ public_keys?: AccountPublicKeys200PublicKeysItem[];
4683
+ };
4684
+ export declare type AccountHostingList200AccountsItem = {
4685
+ /** Jarvis Account ID, HAL tenant_back_ref */
4686
+ account_id?: string;
4687
+ current_sites?: number;
4688
+ feature_set?: string;
4689
+ /** HAL Account ID */
4690
+ hosting_id?: string;
4691
+ max_sites?: string;
4692
+ platform?: string;
4693
+ /** HAL Account back_reference */
4694
+ prod_inst_id?: string;
4695
+ /** Returns preferred Data center location for their hosting plan */
4696
+ region_desc?: string;
4697
+ /** Returns type of accounts where the hosting plan's data center is located */
4698
+ region_type?: string;
4699
+ status?: string;
4700
+ };
4701
+ export declare type AccountHostingList200 = {
4702
+ accounts?: AccountHostingList200AccountsItem[];
4703
+ };
4704
+ export declare type AccountEventList200EventsItem = {
4705
+ /**
4706
+ * ID of HAL Addon associated with this event
4707
+ * @nullable
4708
+ */
4709
+ addon_id?: number | null;
4710
+ /** How many times this event has triggered between date_first and date_last */
4711
+ count?: number;
4712
+ /** UTC timestamp of first occurrence of this event */
4713
+ date_first?: string;
4714
+ /** UTC timestamp of most recent occurrence of this event */
4715
+ date_last?: string;
4716
+ /**
4717
+ * ID of HAL Domain associated with this event
4718
+ * @nullable
4719
+ */
4720
+ domain_id?: number | null;
4721
+ /** Name of the event this entry was triggered by */
4722
+ event?: string;
4723
+ /** ID of HAL Account associated with this event */
4724
+ hosting_id?: number;
4725
+ /**
4726
+ * ID of HAL Site associated with this event
4727
+ * @nullable
4728
+ */
4729
+ site_id?: number | null;
4730
+ /** ID of HAL Tenant associated with this event */
4731
+ tenant_id?: number;
4732
+ };
4733
+ export declare type AccountEventList200 = {
4734
+ events?: AccountEventList200EventsItem[];
4735
+ /** Date of most recent event update. Can pass back in when determining whether to query new data */
4736
+ utc?: string;
4737
+ };
4738
+ export declare type AccountEventListParams = {
4739
+ /**
4740
+ * ID of the HAL Addon to query event info about
4741
+ */
4742
+ addon_id?: number;
4743
+ /**
4744
+ * ID of the HAL Domain to query event info about
4745
+ */
4746
+ domain_id?: number;
4747
+ /**
4748
+ * ID of the HAL Site to query event info about
4749
+ */
4750
+ site_id?: number;
4751
+ /**
4752
+ * Date-time to check for new events *after*; ISO format.
4753
+ */
4754
+ date_last?: string;
4755
+ };
4756
+ export interface FolderNode {
4757
+ /** Child folders of the child folder */
4758
+ children?: FolderNode[];
4759
+ /** The name of the child folder */
4760
+ name?: string;
4761
+ }
4762
+ /**
4763
+ * @nullable
4764
+ */
4765
+ export declare type SiteInfoResponseModelV2Staging = {
4766
+ /**
4767
+ * Applies to staging site only; The id of the current site's parent site
4768
+ * @nullable
4769
+ */
4770
+ parent_site_id?: number | null;
4771
+ /**
4772
+ * Applies to parent site only; The id of the former parent site of the current site
4773
+ * @nullable
4774
+ */
4775
+ promoted_from?: number | null;
4776
+ /**
4777
+ * Applies to staging site only; The id of the parent site of the current site that is being promoted
4778
+ * @nullable
4779
+ */
4780
+ promoting_from?: number | null;
4781
+ /**
4782
+ * Applies to staging site only; The derived status based on promotion ids and jobs
4783
+ * @nullable
4784
+ */
4785
+ promotion_status?: string | null;
4786
+ /** A list of staging sites of the current site */
4787
+ sites?: number[];
4788
+ } | null;
4789
+ export declare type SiteInfoResponseModelV2ResourcesStorage = {
4790
+ /** @nullable */
4791
+ available?: number | null;
4792
+ /** @nullable */
4793
+ total?: number | null;
4794
+ unit?: string;
4795
+ /** @nullable */
4796
+ used?: number | null;
4797
+ };
4798
+ /**
4799
+ * @nullable
4800
+ */
4801
+ export declare type SiteInfoResponseModelV2Resources = {
4802
+ storage?: SiteInfoResponseModelV2ResourcesStorage;
4803
+ /** @nullable */
4804
+ workers?: number | null;
4805
+ } | null;
4806
+ /**
4807
+ * @nullable
4808
+ */
4809
+ export declare type SiteInfoResponseModelV2PendingUrlData = {
4810
+ /**
4811
+ * The root domain name
4812
+ * @nullable
4813
+ */
4814
+ base_domain?: string | null;
4815
+ /**
4816
+ * The Fully Qualified Domain Name (FQDN)
4817
+ * @nullable
4818
+ */
4819
+ domain?: string | null;
4820
+ /**
4821
+ * The current pending_url's HAL Domain ID
4822
+ * @nullable
4823
+ */
4824
+ domain_id?: number | null;
4825
+ /** @nullable */
4826
+ error?: string | null;
4827
+ /** Flag indicating whether the pending_url is temporary or not */
4828
+ is_temp?: boolean;
4829
+ /**
4830
+ * Flag indicating whether the url_sync job has run out of attempts
4831
+ * @nullable
4832
+ */
4833
+ job_failed?: boolean | null;
4834
+ /** @nullable */
4835
+ stage?: string | null;
4836
+ /**
4837
+ * Timestamp for when we will update the WP url, regardless of active sessions
4838
+ * @nullable
4839
+ */
4840
+ wp_session?: string | null;
4841
+ } | null;
4842
+ /**
4843
+ * @nullable
4844
+ */
4845
+ export declare type SiteInfoResponseModelV2Pagespeed = {
4846
+ lastrun?: string;
4847
+ performance?: string;
4848
+ strategy?: string;
4849
+ } | null;
4850
+ /**
4851
+ * Job ids for the site
4852
+ * @nullable
4853
+ */
4854
+ export declare type SiteInfoResponseModelV2Jobs = {
4855
+ [key: string]: unknown;
4856
+ } | null;
4857
+ export declare type SiteInfoResponseModelV2DomainPtrsItem = {
4858
+ [key: string]: unknown;
4859
+ };
4860
+ export interface SiteInfoResponseModelV2 {
4861
+ /** @nullable */
4862
+ account_back_ref?: string | null;
4863
+ account_id?: string;
4864
+ /**
4865
+ * the current status of the account this site belongs to
4866
+ * @nullable
4867
+ */
4868
+ account_status?: string | null;
4869
+ /** @nullable */
4870
+ base_domain?: string | null;
4871
+ /**
4872
+ * False if site was added by site scanner
4873
+ * @nullable
4874
+ */
4875
+ confirmed?: boolean | null;
4876
+ /** @nullable */
4877
+ datacenter?: string | null;
4878
+ date_added?: string;
4879
+ date_modified?: string;
4880
+ detected_type?: string;
4881
+ /** @nullable */
4882
+ docpath?: string | null;
4883
+ /** @nullable */
4884
+ docroot?: string | null;
4885
+ /** @nullable */
4886
+ domain?: string | null;
4887
+ /** @nullable */
4888
+ domain_ptrs?: SiteInfoResponseModelV2DomainPtrsItem[] | null;
4889
+ edge_cache?: boolean;
4890
+ /** @nullable */
4891
+ handler_404?: string | null;
4892
+ id?: string;
4893
+ /** @nullable */
4894
+ installed_id?: string | null;
4895
+ /**
4896
+ * True if docpath is public_html, otherwise False
4897
+ * @nullable
4898
+ */
4899
+ is_primary?: boolean | null;
4900
+ /**
4901
+ * Job ids for the site
4902
+ * @nullable
4903
+ */
4904
+ jobs?: SiteInfoResponseModelV2Jobs;
4905
+ /** @nullable */
4906
+ last_error?: string | null;
4907
+ /** @nullable */
4908
+ migration_id?: string | null;
4909
+ /** @nullable */
4910
+ name?: string | null;
4911
+ /**
4912
+ * Status of the site's onboarding
4913
+ * @nullable
4914
+ */
4915
+ onboarding?: number | null;
4916
+ /** @nullable */
4917
+ pagespeed?: SiteInfoResponseModelV2Pagespeed;
4918
+ /** @nullable */
4919
+ path?: string | null;
4920
+ /** @nullable */
4921
+ pending_url?: string | null;
4922
+ /** @nullable */
4923
+ pending_url_data?: SiteInfoResponseModelV2PendingUrlData;
4924
+ /**
4925
+ * The Php Version. If unable to determine, it will be NULL
4926
+ * @nullable
4927
+ */
4928
+ php_version?: string | null;
4929
+ /** @nullable */
4930
+ resources?: SiteInfoResponseModelV2Resources;
4931
+ /** @nullable */
4932
+ staging?: SiteInfoResponseModelV2Staging;
4933
+ status?: string;
4934
+ /** @nullable */
4935
+ subtype?: string | null;
4936
+ type?: string;
4937
+ /** @nullable */
4938
+ url?: string | null;
4939
+ /** @nullable */
4940
+ url_is_provisional?: boolean | null;
4941
+ /** @nullable */
4942
+ version?: string | null;
4943
+ /**
4944
+ * The WP Version
4945
+ * @nullable
4946
+ */
4947
+ version_ptr?: string | null;
4948
+ }
4949
+ export interface SitesAutoupdatesResponse {
4950
+ /** @nullable */
4951
+ core?: boolean | null;
4952
+ /** @nullable */
4953
+ plugins?: boolean | null;
4954
+ /** @nullable */
4955
+ themes?: boolean | null;
4956
+ }
4957
+ export interface SSHUsersV2Response {
4958
+ installed?: boolean;
4959
+ is_active?: boolean;
4960
+ /** @nullable */
4961
+ job_id?: number | null;
4962
+ /** @nullable */
4963
+ public_key_id?: number | null;
4964
+ /** @nullable */
4965
+ ssh_hostname?: string | null;
4966
+ user?: string;
4967
+ }