@newfold/huapi-js 2.1365.0 → 2.1398.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.
@@ -3,7 +3,7 @@
3
3
  * Do not edit manually.
4
4
  * Hosting UAPI
5
5
  * Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
6
- * OpenAPI spec version: 1.1365.0
6
+ * OpenAPI spec version: 1.1398.0
7
7
  */
8
8
  export declare type SshKeyListV4200RowsItem = {
9
9
  authorize?: boolean;
@@ -55,6 +55,23 @@ export declare type SshKeyImportV3Body = {
55
55
  /** The entity that initiated the GAP call */
56
56
  source?: string;
57
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
+ };
58
75
  export declare type SiteUsersV2200UsersItemMeta = {
59
76
  maestro_web_pro?: string;
60
77
  maestro_wpp_identifier?: string;
@@ -277,63 +294,6 @@ export declare type SitesListV2200ItemsItemStaging = {
277
294
  /** A list of staging sites of the current site */
278
295
  sites?: number[];
279
296
  } | null;
280
- export declare type SitesListV2200ItemsItemResourcesStorage = {
281
- /** @nullable */
282
- available?: number | null;
283
- /** @nullable */
284
- total?: number | null;
285
- unit?: string;
286
- /** @nullable */
287
- used?: number | null;
288
- };
289
- export declare type SitesListV2200ItemsItemResources = {
290
- storage?: SitesListV2200ItemsItemResourcesStorage;
291
- /** @nullable */
292
- workers?: number | null;
293
- };
294
- /**
295
- * @nullable
296
- */
297
- export declare type SitesListV2200ItemsItemPendingUrlData = {
298
- /**
299
- * The root domain name
300
- * @nullable
301
- */
302
- base_domain?: string | null;
303
- /**
304
- * The Fully Qualified Domain Name (FQDN)
305
- * @nullable
306
- */
307
- domain?: string | null;
308
- /**
309
- * The current pending_url's HAL Domain ID
310
- * @nullable
311
- */
312
- domain_id?: number | null;
313
- /** @nullable */
314
- error?: string | null;
315
- /** Flag indicating whether the pending_url is temporary or not */
316
- is_temp?: boolean;
317
- /**
318
- * Flag indicating whether the url_sync job has run out of attempts
319
- * @nullable
320
- */
321
- job_failed?: boolean | null;
322
- /** @nullable */
323
- stage?: string | null;
324
- /**
325
- * Timestamp for when we will update the WP url, regardless of active sessions
326
- * @nullable
327
- */
328
- wp_session?: string | null;
329
- } | null;
330
- /**
331
- * Job ids for the site
332
- * @nullable
333
- */
334
- export declare type SitesListV2200ItemsItemJobs = {
335
- [key: string]: unknown;
336
- } | null;
337
297
  export declare type SitesListV2200ItemsItem = {
338
298
  /** @nullable */
339
299
  account_back_ref?: string | null;
@@ -351,6 +311,8 @@ export declare type SitesListV2200ItemsItem = {
351
311
  date_modified?: string;
352
312
  detected_type?: string;
353
313
  /** @nullable */
314
+ docpath?: string | null;
315
+ /** @nullable */
354
316
  docroot?: string | null;
355
317
  /** @nullable */
356
318
  domain?: string | null;
@@ -416,6 +378,63 @@ export declare type SitesListV2200 = {
416
378
  /** total number of sites returned */
417
379
  total?: number;
418
380
  };
381
+ export declare type SitesListV2200ItemsItemResourcesStorage = {
382
+ /** @nullable */
383
+ available?: number | null;
384
+ /** @nullable */
385
+ total?: number | null;
386
+ unit?: string;
387
+ /** @nullable */
388
+ used?: number | null;
389
+ };
390
+ export declare type SitesListV2200ItemsItemResources = {
391
+ storage?: SitesListV2200ItemsItemResourcesStorage;
392
+ /** @nullable */
393
+ workers?: number | null;
394
+ };
395
+ /**
396
+ * @nullable
397
+ */
398
+ export declare type SitesListV2200ItemsItemPendingUrlData = {
399
+ /**
400
+ * The root domain name
401
+ * @nullable
402
+ */
403
+ base_domain?: string | null;
404
+ /**
405
+ * The Fully Qualified Domain Name (FQDN)
406
+ * @nullable
407
+ */
408
+ domain?: string | null;
409
+ /**
410
+ * The current pending_url's HAL Domain ID
411
+ * @nullable
412
+ */
413
+ domain_id?: number | null;
414
+ /** @nullable */
415
+ error?: string | null;
416
+ /** Flag indicating whether the pending_url is temporary or not */
417
+ is_temp?: boolean;
418
+ /**
419
+ * Flag indicating whether the url_sync job has run out of attempts
420
+ * @nullable
421
+ */
422
+ job_failed?: boolean | null;
423
+ /** @nullable */
424
+ stage?: string | null;
425
+ /**
426
+ * Timestamp for when we will update the WP url, regardless of active sessions
427
+ * @nullable
428
+ */
429
+ wp_session?: string | null;
430
+ } | null;
431
+ /**
432
+ * Job ids for the site
433
+ * @nullable
434
+ */
435
+ export declare type SitesListV2200ItemsItemJobs = {
436
+ [key: string]: unknown;
437
+ } | null;
419
438
  export declare type SshKeyV2200 = {
420
439
  deleted?: number;
421
440
  key_name?: string;
@@ -631,6 +650,8 @@ export declare type HostingSitesV2200ItemsItem = {
631
650
  date_modified?: string;
632
651
  detected_type?: string;
633
652
  /** @nullable */
653
+ docpath?: string | null;
654
+ /** @nullable */
634
655
  docroot?: string | null;
635
656
  /** @nullable */
636
657
  domain?: string | null;
@@ -1158,9 +1179,6 @@ export declare type SiteQualityMetrics200AspectScores = {
1158
1179
  performance?: number;
1159
1180
  seo?: number;
1160
1181
  };
1161
- export declare type SiteQualityMetrics200AspectDetails = {
1162
- performance?: SiteQualityMetrics200AspectDetailsPerformance;
1163
- };
1164
1182
  export declare type SiteQualityMetrics200 = {
1165
1183
  aspect_details: SiteQualityMetrics200AspectDetails;
1166
1184
  aspect_scores: SiteQualityMetrics200AspectScores;
@@ -1191,6 +1209,9 @@ export declare type SiteQualityMetrics200AspectDetailsPerformance = {
1191
1209
  'speed-index'?: SiteQualityMetrics200AspectDetailsPerformanceSpeedIndex;
1192
1210
  'total-blocking-time'?: SiteQualityMetrics200AspectDetailsPerformanceTotalBlockingTime;
1193
1211
  };
1212
+ export declare type SiteQualityMetrics200AspectDetails = {
1213
+ performance?: SiteQualityMetrics200AspectDetailsPerformance;
1214
+ };
1194
1215
  export declare type SiteQualityMetricsStrategy = typeof SiteQualityMetricsStrategy[keyof typeof SiteQualityMetricsStrategy];
1195
1216
  export declare const SiteQualityMetricsStrategy: {
1196
1217
  readonly MOBILE: "MOBILE";
@@ -1966,6 +1987,8 @@ export declare type SitesInfo200 = {
1966
1987
  date_modified?: string;
1967
1988
  detected_type?: string;
1968
1989
  /** @nullable */
1990
+ docpath?: string | null;
1991
+ /** @nullable */
1969
1992
  docroot?: string | null;
1970
1993
  /** @nullable */
1971
1994
  domain?: string | null;
@@ -2033,17 +2056,6 @@ export declare type HostingVisitors200VisitorsItem = {
2033
2056
  unique_visitors?: number;
2034
2057
  visitors?: number;
2035
2058
  };
2036
- export declare type HostingVisitors200 = {
2037
- daily?: HostingVisitors200Daily;
2038
- is_linked_domain?: boolean;
2039
- linked_domain?: string;
2040
- total_bandwidth?: number;
2041
- total_hits?: number;
2042
- total_pages?: number;
2043
- total_unique_visitors?: number;
2044
- total_visitors?: number;
2045
- visitors?: HostingVisitors200VisitorsItem[];
2046
- };
2047
2059
  export declare type HostingVisitors200DailyTotal = {
2048
2060
  total_bandwidth?: number;
2049
2061
  total_hits?: number;
@@ -2063,6 +2075,17 @@ export declare type HostingVisitors200Daily = {
2063
2075
  data?: HostingVisitors200DailyDataItem[];
2064
2076
  total?: HostingVisitors200DailyTotal;
2065
2077
  };
2078
+ export declare type HostingVisitors200 = {
2079
+ daily?: HostingVisitors200Daily;
2080
+ is_linked_domain?: boolean;
2081
+ linked_domain?: string;
2082
+ total_bandwidth?: number;
2083
+ total_hits?: number;
2084
+ total_pages?: number;
2085
+ total_unique_visitors?: number;
2086
+ total_visitors?: number;
2087
+ visitors?: HostingVisitors200VisitorsItem[];
2088
+ };
2066
2089
  export declare type HostingVisitorsSource = typeof HostingVisitorsSource[keyof typeof HostingVisitorsSource];
2067
2090
  export declare const HostingVisitorsSource: {
2068
2091
  readonly http: "http";
@@ -2452,16 +2475,6 @@ export declare type HostingMigrationsEventBody = {
2452
2475
  /** The migration id that corresponds to CWM */
2453
2476
  migration_id: string;
2454
2477
  };
2455
- export declare type HostingMigrationsCheck200 = {
2456
- description?: string;
2457
- transferable?: boolean;
2458
- };
2459
- export declare type HostingMigrationsCheckParams = {
2460
- /**
2461
- * Migration ID to be checked if already used to migrate site on the hosting account
2462
- */
2463
- migration_id: string;
2464
- };
2465
2478
  export declare type HostingMigrations200 = {
2466
2479
  success?: boolean;
2467
2480
  };
@@ -2601,6 +2614,57 @@ export declare type HotlinkconfigDetails200 = {
2601
2614
  export declare type HotlinkconfigDetailsParams = {
2602
2615
  docpath: string;
2603
2616
  };
2617
+ export declare type HostingRepoLog200 = {
2618
+ /** The output or logs from Git operations such as clone, pull, or deploy */
2619
+ log?: string;
2620
+ /** The file path where the Git repository is cloned */
2621
+ path?: string;
2622
+ };
2623
+ export declare type HostingRepoLogParams = {
2624
+ path: string;
2625
+ };
2626
+ export declare type HostingRepo200 = {
2627
+ /** Directory path where the repository was cloned and should now be deleted */
2628
+ path?: string;
2629
+ /** The URL of the remote Git repository to be deleted */
2630
+ repo_url?: string;
2631
+ success?: boolean;
2632
+ };
2633
+ export declare type HostingRepoBody = {
2634
+ /** Directory path where the repository was cloned and should now be deleted */
2635
+ path?: string;
2636
+ };
2637
+ export declare type HostingRepoSync200 = {
2638
+ /** The type of action taken */
2639
+ action?: string;
2640
+ /** Branch to checkout to */
2641
+ branch?: string;
2642
+ /** Deploy log */
2643
+ log?: string;
2644
+ /** Path to clone repo into */
2645
+ path?: string;
2646
+ /** The Clone URL */
2647
+ repo_url?: string;
2648
+ success?: boolean;
2649
+ };
2650
+ export declare type HostingRepoSyncBody = {
2651
+ /** Branch to checkout to */
2652
+ branch?: string;
2653
+ /** Flag to check if it is to not_deploy(clone) or deploy */
2654
+ clone?: boolean;
2655
+ /** Path to clone repo into */
2656
+ path?: string;
2657
+ /** The Clone URL */
2658
+ repo_url: string;
2659
+ };
2660
+ export declare type HostingRepoList200Item = {
2661
+ /** The checked-out Git branch for the repository */
2662
+ branch?: string;
2663
+ /** The file path where the repository is cloned */
2664
+ path?: string;
2665
+ /** The remote Git repository URL from which the repository was cloned */
2666
+ repo_url?: string;
2667
+ };
2604
2668
  export declare type HostingFtp200 = {
2605
2669
  status?: number;
2606
2670
  /** Username */
@@ -2682,23 +2746,30 @@ export declare type HostingFtpList200 = {
2682
2746
  export declare type HostingFixownership200 = {
2683
2747
  success?: boolean;
2684
2748
  };
2685
- export declare type ListFiles200FilesItem = {
2686
- file?: string;
2687
- path?: string;
2688
- size?: number;
2689
- type?: string;
2749
+ export declare type HostingEmailFolderList404 = {
2750
+ /** Error message */
2751
+ error?: string;
2690
2752
  };
2691
- export declare type ListFiles200 = {
2692
- files?: ListFiles200FilesItem[];
2753
+ export declare type HostingEmailFolderList200FoldersItem = {
2754
+ /** Child folders of the parent folder */
2755
+ children?: FolderNode[];
2756
+ /** The name of the parent folder */
2757
+ name?: string;
2693
2758
  };
2694
- export declare type ListFilesParams = {
2695
- path: string;
2696
- showdotfiles?: boolean;
2759
+ export declare type HostingEmailFolderList200 = {
2760
+ /** The number of email folders returned */
2761
+ count?: number;
2762
+ /** List of email address folders */
2763
+ folders?: HostingEmailFolderList200FoldersItem[];
2697
2764
  };
2698
2765
  export declare type HostingEmailSuspend512 = {
2699
2766
  /** Customer error code */
2700
2767
  error?: string;
2701
2768
  };
2769
+ export declare type HostingEmailSuspend404 = {
2770
+ /** Error message */
2771
+ error?: string;
2772
+ };
2702
2773
  export declare type HostingEmailSuspend403 = {
2703
2774
  /** Customer error code */
2704
2775
  error?: string;
@@ -2732,6 +2803,20 @@ export declare type HostingEmailSuspendBody = {
2732
2803
  /** The function to suspend */
2733
2804
  type: HostingEmailSuspendBodyType;
2734
2805
  };
2806
+ export declare type EmailSso512 = {
2807
+ /** Customer error code */
2808
+ error?: string;
2809
+ };
2810
+ export declare type EmailSso400 = {
2811
+ /** Customer error code */
2812
+ error?: string;
2813
+ };
2814
+ export declare type EmailSso200 = {
2815
+ url: string;
2816
+ };
2817
+ export declare type EmailSsoParams = {
2818
+ email: string;
2819
+ };
2735
2820
  export declare type HostingEmailForwarderDelete400 = {
2736
2821
  /** Customer error code */
2737
2822
  error?: string;
@@ -2851,19 +2936,82 @@ export declare type HostingEmailUpdateBody = {
2851
2936
  /** The quota for the email (optional) (default: 0 = unlimited) */
2852
2937
  quota?: number;
2853
2938
  };
2939
+ /**
2940
+ * List of suspensions that affect the entire user account
2941
+ * @nullable
2942
+ */
2943
+ export declare type HostingEmailList200RowsItemSystemSuspensions = {
2944
+ /** @nullable */
2945
+ receive?: boolean | null;
2946
+ /** @nullable */
2947
+ relay?: boolean | null;
2948
+ /** @nullable */
2949
+ sendmail?: boolean | null;
2950
+ } | null;
2951
+ /**
2952
+ * State of email box suspensions
2953
+ * @nullable
2954
+ */
2955
+ export declare type HostingEmailList200RowsItemBoxSuspensions = {
2956
+ /**
2957
+ * Incoming email is rejected
2958
+ * @nullable
2959
+ */
2960
+ incoming?: boolean | null;
2961
+ /**
2962
+ * Email authentication is disabled
2963
+ * @nullable
2964
+ */
2965
+ login?: boolean | null;
2966
+ /**
2967
+ * Outgoing email is rejected
2968
+ * @nullable
2969
+ */
2970
+ outgoing?: boolean | null;
2971
+ /**
2972
+ * Outgoing email is held in queue
2973
+ * @nullable
2974
+ */
2975
+ outgoing_hold?: boolean | null;
2976
+ } | null;
2854
2977
  export declare type HostingEmailList200RowsItem = {
2855
2978
  /** The email address */
2856
2979
  address?: string;
2857
2980
  /**
2858
- * The amount of disk space used by the email
2981
+ * State of email box suspensions
2982
+ * @nullable
2983
+ */
2984
+ box_suspensions?: HostingEmailList200RowsItemBoxSuspensions;
2985
+ /**
2986
+ * The amount of disk space used by the email box
2859
2987
  * @nullable
2860
2988
  */
2861
2989
  disk_used_kib?: number | null;
2990
+ /**
2991
+ * The percentage of disk space used by the email box
2992
+ * @nullable
2993
+ */
2994
+ disk_used_percent?: number | null;
2995
+ /**
2996
+ * The email domain
2997
+ * @nullable
2998
+ */
2999
+ domain?: string | null;
2862
3000
  /**
2863
3001
  * The number of files in the email
2864
3002
  * @nullable
2865
3003
  */
2866
3004
  files?: number | null;
3005
+ /**
3006
+ * The maximum amount of disk space that may be used by the email
3007
+ * @nullable
3008
+ */
3009
+ quota?: number | null;
3010
+ /**
3011
+ * List of suspensions that affect the entire user account
3012
+ * @nullable
3013
+ */
3014
+ system_suspensions?: HostingEmailList200RowsItemSystemSuspensions;
2867
3015
  /** The type of email */
2868
3016
  type?: string;
2869
3017
  };
@@ -3286,22 +3434,6 @@ export declare type HostingDbAuthorizedHosts200RemoteIpsItem = {
3286
3434
  export declare type HostingDbAuthorizedHosts200 = {
3287
3435
  remote_ips?: HostingDbAuthorizedHosts200RemoteIpsItem[];
3288
3436
  };
3289
- export declare type DbList200DatabasesItemUserlistItem = {
3290
- db?: string;
3291
- user?: string;
3292
- };
3293
- export declare type DbList200DatabasesItem = {
3294
- db?: string;
3295
- sitename?: string;
3296
- size?: string;
3297
- sizemeg?: string;
3298
- usercount?: number;
3299
- userlist?: DbList200DatabasesItemUserlistItem[];
3300
- };
3301
- export declare type DbList200 = {
3302
- databases?: DbList200DatabasesItem[];
3303
- status?: boolean;
3304
- };
3305
3437
  export declare type Db200 = {
3306
3438
  dbname?: string;
3307
3439
  status?: number;
@@ -3417,14 +3549,6 @@ export declare type ListCrons200RowsItem = {
3417
3549
  export declare type ListCrons200 = {
3418
3550
  rows?: ListCrons200RowsItem[];
3419
3551
  };
3420
- export declare type AddonCloudflare200 = {
3421
- addon_id?: number;
3422
- status?: string;
3423
- };
3424
- export declare type AddonCloudflareBody = {
3425
- /** The domain. */
3426
- domain: string;
3427
- };
3428
3552
  export declare type HostingCapabilities200 = {
3429
3553
  advanced_hosting?: boolean;
3430
3554
  cbs_backups?: boolean;
@@ -3548,9 +3672,6 @@ export declare type HostingAdvancedDnsParams = {
3548
3672
  domain: string;
3549
3673
  dns_with_us?: number;
3550
3674
  };
3551
- export declare type HostingAddons200 = {
3552
- rows?: HostingAddons200RowsItem[];
3553
- };
3554
3675
  export declare type HostingAddons200RowsItemMeta = {
3555
3676
  [key: string]: string | number | boolean;
3556
3677
  };
@@ -3566,6 +3687,9 @@ export declare type HostingAddons200RowsItem = {
3566
3687
  subtype?: string;
3567
3688
  type?: string;
3568
3689
  };
3690
+ export declare type HostingAddons200 = {
3691
+ rows?: HostingAddons200RowsItem[];
3692
+ };
3569
3693
  export declare type HostingAddonsParams = {
3570
3694
  status?: string;
3571
3695
  subtype?: string;
@@ -3591,6 +3715,23 @@ export declare type ActivityLog200 = {
3591
3715
  export declare type ActivityLogParams = {
3592
3716
  days?: number;
3593
3717
  };
3718
+ export declare type HostingAccount200 = {
3719
+ account_id?: string;
3720
+ advanced?: boolean;
3721
+ billing?: HostingAccount200Billing;
3722
+ brand?: string;
3723
+ id?: string;
3724
+ panel?: string;
3725
+ plan_key?: string;
3726
+ platform?: string;
3727
+ /** @nullable */
3728
+ resources?: HostingAccount200Resources;
3729
+ /** @nullable */
3730
+ ssh_hostname?: string | null;
3731
+ status?: string;
3732
+ type?: string;
3733
+ username?: string;
3734
+ };
3594
3735
  export declare type HostingAccount200ResourcesWorkers = {
3595
3736
  /** @nullable */
3596
3737
  available?: number | null;
@@ -3616,23 +3757,6 @@ export declare type HostingAccount200Resources = {
3616
3757
  storage?: HostingAccount200ResourcesStorage;
3617
3758
  workers?: HostingAccount200ResourcesWorkers;
3618
3759
  } | null;
3619
- export declare type HostingAccount200 = {
3620
- account_id?: string;
3621
- advanced?: boolean;
3622
- billing?: HostingAccount200Billing;
3623
- brand?: string;
3624
- id?: string;
3625
- panel?: string;
3626
- plan_key?: string;
3627
- platform?: string;
3628
- /** @nullable */
3629
- resources?: HostingAccount200Resources;
3630
- /** @nullable */
3631
- ssh_hostname?: string | null;
3632
- status?: string;
3633
- type?: string;
3634
- username?: string;
3635
- };
3636
3760
  export declare type HostingAccount200ResourcesStagingWorkers = {
3637
3761
  /** @nullable */
3638
3762
  available?: number | null;
@@ -4376,6 +4500,12 @@ export declare type AccountEventListParams = {
4376
4500
  */
4377
4501
  date_last?: string;
4378
4502
  };
4503
+ export interface FolderNode {
4504
+ /** Child folders of the child folder */
4505
+ children?: FolderNode[];
4506
+ /** The name of the child folder */
4507
+ name?: string;
4508
+ }
4379
4509
  /**
4380
4510
  * @nullable
4381
4511
  */
@@ -4491,6 +4621,8 @@ export interface SiteInfoResponseModelV2 {
4491
4621
  date_modified?: string;
4492
4622
  detected_type?: string;
4493
4623
  /** @nullable */
4624
+ docpath?: string | null;
4625
+ /** @nullable */
4494
4626
  docroot?: string | null;
4495
4627
  /** @nullable */
4496
4628
  domain?: string | null;
@@ -1,4 +1,10 @@
1
1
  // eslint-disable-next-line @typescript-eslint/no-redeclare
2
+ export const BackupCreateV3BodyBackupType = {
3
+ home: 'home',
4
+ db: 'db',
5
+ home_db: 'home_db',
6
+ };
7
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
2
8
  export const SitesSecuritySitelockV2Source = {
3
9
  hal: 'hal',
4
10
  fg: 'fg',