@newfold/huapi-js 2.1898.0 → 2.1902.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.1898.0
6
+ * OpenAPI spec version: 1.1902.0
7
7
  */
8
8
  export declare type SshKeyListV4200RowsItem = {
9
9
  authorize?: boolean;
@@ -453,84 +453,6 @@ export declare type SitesDomainsV2200 = {
453
453
  export declare type SitesDomainsV2Params = {
454
454
  scan?: boolean;
455
455
  };
456
- export declare type SitesListV2200ItemsItem = {
457
- /** @nullable */
458
- account_back_ref?: string | null;
459
- account_id?: string;
460
- /**
461
- * the current status of the account this site belongs to
462
- * @nullable
463
- */
464
- account_status?: string | null;
465
- /** @nullable */
466
- base_domain?: string | null;
467
- /**
468
- * False if site was added by site scanner
469
- * @nullable
470
- */
471
- confirmed?: boolean | null;
472
- /** @nullable */
473
- datacenter?: string | null;
474
- date_added?: string;
475
- date_modified?: string;
476
- detected_type?: string;
477
- /** @nullable */
478
- docpath?: string | null;
479
- /** @nullable */
480
- docroot?: string | null;
481
- /** @nullable */
482
- domain?: string | null;
483
- edge_cache?: boolean;
484
- handler_404?: string;
485
- id?: number;
486
- /** @nullable */
487
- installed_id?: string | null;
488
- /** True if docpath is public_html, otherwise False */
489
- is_primary?: boolean;
490
- /**
491
- * Job ids for the site
492
- * @nullable
493
- */
494
- jobs?: SitesListV2200ItemsItemJobs;
495
- /** @nullable */
496
- last_error?: string | null;
497
- /** @nullable */
498
- migration_id?: string | null;
499
- /** @nullable */
500
- name?: string | null;
501
- /**
502
- * Status of the site's onboarding
503
- * @nullable
504
- */
505
- onboarding?: number | null;
506
- path?: string;
507
- /** @nullable */
508
- pending_url?: string | null;
509
- /** @nullable */
510
- pending_url_data?: SitesListV2200ItemsItemPendingUrlData;
511
- /**
512
- * The Php Version. If unable to determine, it will be NULL
513
- * @nullable
514
- */
515
- php_version?: string | null;
516
- resources?: SitesListV2200ItemsItemResources;
517
- /** @nullable */
518
- staging?: SitesListV2200ItemsItemStaging;
519
- status?: string;
520
- subtype?: string;
521
- type?: string;
522
- /** @nullable */
523
- url?: string | null;
524
- /** @nullable */
525
- url_is_provisional?: boolean | null;
526
- /** @nullable */
527
- version?: string | null;
528
- /**
529
- * The WP Version
530
- * @nullable
531
- */
532
- version_ptr?: string | null;
533
- };
534
456
  export declare type SitesListV2200 = {
535
457
  items?: SitesListV2200ItemsItem[];
536
458
  /** page size */
@@ -626,6 +548,84 @@ export declare type SitesListV2200ItemsItemPendingUrlData = {
626
548
  export declare type SitesListV2200ItemsItemJobs = {
627
549
  [key: string]: unknown;
628
550
  } | null;
551
+ export declare type SitesListV2200ItemsItem = {
552
+ /** @nullable */
553
+ account_back_ref?: string | null;
554
+ account_id?: string;
555
+ /**
556
+ * the current status of the account this site belongs to
557
+ * @nullable
558
+ */
559
+ account_status?: string | null;
560
+ /** @nullable */
561
+ base_domain?: string | null;
562
+ /**
563
+ * False if site was added by site scanner
564
+ * @nullable
565
+ */
566
+ confirmed?: boolean | null;
567
+ /** @nullable */
568
+ datacenter?: string | null;
569
+ date_added?: string;
570
+ date_modified?: string;
571
+ detected_type?: string;
572
+ /** @nullable */
573
+ docpath?: string | null;
574
+ /** @nullable */
575
+ docroot?: string | null;
576
+ /** @nullable */
577
+ domain?: string | null;
578
+ edge_cache?: boolean;
579
+ handler_404?: string;
580
+ id?: number;
581
+ /** @nullable */
582
+ installed_id?: string | null;
583
+ /** True if docpath is public_html, otherwise False */
584
+ is_primary?: boolean;
585
+ /**
586
+ * Job ids for the site
587
+ * @nullable
588
+ */
589
+ jobs?: SitesListV2200ItemsItemJobs;
590
+ /** @nullable */
591
+ last_error?: string | null;
592
+ /** @nullable */
593
+ migration_id?: string | null;
594
+ /** @nullable */
595
+ name?: string | null;
596
+ /**
597
+ * Status of the site's onboarding
598
+ * @nullable
599
+ */
600
+ onboarding?: number | null;
601
+ path?: string;
602
+ /** @nullable */
603
+ pending_url?: string | null;
604
+ /** @nullable */
605
+ pending_url_data?: SitesListV2200ItemsItemPendingUrlData;
606
+ /**
607
+ * The Php Version. If unable to determine, it will be NULL
608
+ * @nullable
609
+ */
610
+ php_version?: string | null;
611
+ resources?: SitesListV2200ItemsItemResources;
612
+ /** @nullable */
613
+ staging?: SitesListV2200ItemsItemStaging;
614
+ status?: string;
615
+ subtype?: string;
616
+ type?: string;
617
+ /** @nullable */
618
+ url?: string | null;
619
+ /** @nullable */
620
+ url_is_provisional?: boolean | null;
621
+ /** @nullable */
622
+ version?: string | null;
623
+ /**
624
+ * The WP Version
625
+ * @nullable
626
+ */
627
+ version_ptr?: string | null;
628
+ };
629
629
  export declare type SshKeyV2200 = {
630
630
  deleted?: number;
631
631
  key_name?: string;
@@ -2784,6 +2784,28 @@ export declare type JetpackBackupStatus200 = {
2784
2784
  /** @nullable */
2785
2785
  status?: string | null;
2786
2786
  };
2787
+ export declare type SitesBackupsDetails200Xcitium = {
2788
+ activated?: boolean;
2789
+ /** @nullable */
2790
+ addon_back_reference?: string | null;
2791
+ addon_id?: string;
2792
+ can_upgrade?: boolean;
2793
+ /** @nullable */
2794
+ database_id?: string | null;
2795
+ /** @nullable */
2796
+ disabled?: boolean | null;
2797
+ /** @nullable */
2798
+ over_quota?: boolean | null;
2799
+ /** @nullable */
2800
+ plan_name?: string | null;
2801
+ seats_available?: number;
2802
+ seats_count?: number;
2803
+ status?: boolean;
2804
+ /** @nullable */
2805
+ url?: string | null;
2806
+ /** @nullable */
2807
+ website_id?: string | null;
2808
+ };
2787
2809
  export declare type SitesBackupsDetails200Jetpack = {
2788
2810
  /** @nullable */
2789
2811
  addon_back_reference?: string | null;
@@ -2832,6 +2854,7 @@ export declare type SitesBackupsDetails200Codeguard = {
2832
2854
  export declare type SitesBackupsDetails200 = {
2833
2855
  codeguard?: SitesBackupsDetails200Codeguard;
2834
2856
  jetpack?: SitesBackupsDetails200Jetpack;
2857
+ xcitium?: SitesBackupsDetails200Xcitium;
2835
2858
  };
2836
2859
  export declare type SitesBackupsCodeguard200 = {
2837
2860
  database_id?: number;
@@ -2980,6 +3003,71 @@ export declare type SitesInfo200Staging = {
2980
3003
  /** A list of staging sites of the current site */
2981
3004
  sites?: number[];
2982
3005
  } | null;
3006
+ export declare type SitesInfo200ResourcesStorage = {
3007
+ /** @nullable */
3008
+ available?: number | null;
3009
+ /** @nullable */
3010
+ total?: number | null;
3011
+ unit?: string;
3012
+ /** @nullable */
3013
+ used?: number | null;
3014
+ };
3015
+ export declare type SitesInfo200Resources = {
3016
+ storage?: SitesInfo200ResourcesStorage;
3017
+ /** @nullable */
3018
+ workers?: number | null;
3019
+ };
3020
+ /**
3021
+ * @nullable
3022
+ */
3023
+ export declare type SitesInfo200PendingUrlData = {
3024
+ /**
3025
+ * The root domain name
3026
+ * @nullable
3027
+ */
3028
+ base_domain?: string | null;
3029
+ /**
3030
+ * The Fully Qualified Domain Name (FQDN)
3031
+ * @nullable
3032
+ */
3033
+ domain?: string | null;
3034
+ /**
3035
+ * The current pending_url's HAL Domain ID
3036
+ * @nullable
3037
+ */
3038
+ domain_id?: number | null;
3039
+ /** @nullable */
3040
+ error?: string | null;
3041
+ /** Flag indicating whether the pending_url is temporary or not */
3042
+ is_temp?: boolean;
3043
+ /**
3044
+ * Flag indicating whether the url_sync job has run out of attempts
3045
+ * @nullable
3046
+ */
3047
+ job_failed?: boolean | null;
3048
+ /** @nullable */
3049
+ stage?: string | null;
3050
+ /**
3051
+ * Timestamp for when we will update the WP url, regardless of active sessions
3052
+ * @nullable
3053
+ */
3054
+ wp_session?: string | null;
3055
+ } | null;
3056
+ /**
3057
+ * @nullable
3058
+ */
3059
+ export declare type SitesInfo200Pagespeed = {
3060
+ lastrun?: string;
3061
+ performance?: string;
3062
+ strategy?: string;
3063
+ } | null;
3064
+ /**
3065
+ * Job ids for the site
3066
+ * @nullable
3067
+ */
3068
+ export declare type SitesInfo200Jobs = {
3069
+ [key: string]: unknown;
3070
+ } | null;
2983
3071
  export declare type SitesInfo200 = {
2984
3072
  /** @nullable */
2985
3073
  account_back_ref?: string | null;
@@ -3063,71 +3151,6 @@ export declare type SitesInfo200 = {
3063
3151
  /** @nullable */
3064
3152
  wp_multi_site?: SitesInfo200WpMultiSite;
3065
3153
  };
3066
- export declare type SitesInfo200ResourcesStorage = {
3067
- /** @nullable */
3068
- available?: number | null;
3069
- /** @nullable */
3070
- total?: number | null;
3071
- unit?: string;
3072
- /** @nullable */
3073
- used?: number | null;
3074
- };
3075
- export declare type SitesInfo200Resources = {
3076
- storage?: SitesInfo200ResourcesStorage;
3077
- /** @nullable */
3078
- workers?: number | null;
3079
- };
3080
- /**
3081
- * @nullable
3082
- */
3083
- export declare type SitesInfo200PendingUrlData = {
3084
- /**
3085
- * The root domain name
3086
- * @nullable
3087
- */
3088
- base_domain?: string | null;
3089
- /**
3090
- * The Fully Qualified Domain Name (FQDN)
3091
- * @nullable
3092
- */
3093
- domain?: string | null;
3094
- /**
3095
- * The current pending_url's HAL Domain ID
3096
- * @nullable
3097
- */
3098
- domain_id?: number | null;
3099
- /** @nullable */
3100
- error?: string | null;
3101
- /** Flag indicating whether the pending_url is temporary or not */
3102
- is_temp?: boolean;
3103
- /**
3104
- * Flag indicating whether the url_sync job has run out of attempts
3105
- * @nullable
3106
- */
3107
- job_failed?: boolean | null;
3108
- /** @nullable */
3109
- stage?: string | null;
3110
- /**
3111
- * Timestamp for when we will update the WP url, regardless of active sessions
3112
- * @nullable
3113
- */
3114
- wp_session?: string | null;
3115
- } | null;
3116
- /**
3117
- * @nullable
3118
- */
3119
- export declare type SitesInfo200Pagespeed = {
3120
- lastrun?: string;
3121
- performance?: string;
3122
- strategy?: string;
3123
- } | null;
3124
- /**
3125
- * Job ids for the site
3126
- * @nullable
3127
- */
3128
- export declare type SitesInfo200Jobs = {
3129
- [key: string]: unknown;
3130
- } | null;
3131
3154
  /**
3132
3155
  * Links
3133
3156
  * @nullable
@@ -5738,28 +5761,6 @@ export declare type ActivityLog200 = {
5738
5761
  export declare type ActivityLogParams = {
5739
5762
  days?: number;
5740
5763
  };
5741
- export declare type HostingAccount200 = {
5742
- account_id?: string;
5743
- account_limits?: HostingAccount200AccountLimits;
5744
- /** The timestamp that the hosting addon was created */
5745
- addon_date_added?: string;
5746
- advanced?: boolean;
5747
- billing?: HostingAccount200Billing;
5748
- brand?: string;
5749
- id?: string;
5750
- panel?: string;
5751
- plan_key?: string;
5752
- platform?: string;
5753
- /** @nullable */
5754
- resources?: HostingAccount200Resources;
5755
- /** @nullable */
5756
- server_status?: string | null;
5757
- /** @nullable */
5758
- ssh_hostname?: string | null;
5759
- status?: string;
5760
- type?: string;
5761
- username?: string;
5762
- };
5763
5764
  export declare type HostingAccount200ResourcesWorkers = {
5764
5765
  /** @nullable */
5765
5766
  available?: number | null;
@@ -5777,6 +5778,14 @@ export declare type HostingAccount200ResourcesStorage = {
5777
5778
  /** @nullable */
5778
5779
  used?: number | null;
5779
5780
  };
5781
+ /**
5782
+ * @nullable
5783
+ */
5784
+ export declare type HostingAccount200Resources = {
5785
+ staging?: HostingAccount200ResourcesStaging;
5786
+ storage?: HostingAccount200ResourcesStorage;
5787
+ workers?: HostingAccount200ResourcesWorkers;
5788
+ } | null;
5780
5789
  export declare type HostingAccount200ResourcesStagingWorkers = {
5781
5790
  /** @nullable */
5782
5791
  available?: number | null;
@@ -5798,14 +5807,6 @@ export declare type HostingAccount200ResourcesStaging = {
5798
5807
  storage?: HostingAccount200ResourcesStagingStorage;
5799
5808
  workers?: HostingAccount200ResourcesStagingWorkers;
5800
5809
  };
5801
- /**
5802
- * @nullable
5803
- */
5804
- export declare type HostingAccount200Resources = {
5805
- staging?: HostingAccount200ResourcesStaging;
5806
- storage?: HostingAccount200ResourcesStorage;
5807
- workers?: HostingAccount200ResourcesWorkers;
5808
- } | null;
5809
5810
  export declare type HostingAccount200Billing = {
5810
5811
  prod_code?: string;
5811
5812
  product_name?: string;
@@ -5823,6 +5824,28 @@ export declare type HostingAccount200AccountLimits = {
5823
5824
  */
5824
5825
  sites?: number | null;
5825
5826
  };
5827
+ export declare type HostingAccount200 = {
5828
+ account_id?: string;
5829
+ account_limits?: HostingAccount200AccountLimits;
5830
+ /** The timestamp that the hosting addon was created */
5831
+ addon_date_added?: string;
5832
+ advanced?: boolean;
5833
+ billing?: HostingAccount200Billing;
5834
+ brand?: string;
5835
+ id?: string;
5836
+ panel?: string;
5837
+ plan_key?: string;
5838
+ platform?: string;
5839
+ /** @nullable */
5840
+ resources?: HostingAccount200Resources;
5841
+ /** @nullable */
5842
+ server_status?: string | null;
5843
+ /** @nullable */
5844
+ ssh_hostname?: string | null;
5845
+ status?: string;
5846
+ type?: string;
5847
+ username?: string;
5848
+ };
5826
5849
  export declare type DomainZoneeditorUrl200 = {
5827
5850
  url: string;
5828
5851
  };
@@ -6510,10 +6533,6 @@ export declare type BackupCreateOndemandV1Body = {
6510
6533
  /** Whether to include a link to the backup tarball */
6511
6534
  include_backup_tar_link?: BackupCreateOndemandV1BodyIncludeBackupTarLink;
6512
6535
  };
6513
- export declare type BackupMeta200 = {
6514
- account?: BackupMeta200Account;
6515
- site?: BackupMeta200Site;
6516
- };
6517
6536
  /**
6518
6537
  * @nullable
6519
6538
  */
@@ -6547,6 +6566,10 @@ export declare type BackupMeta200Site = {
6547
6566
  /** @nullable */
6548
6567
  cbs_restore_consent_info?: BackupMeta200SiteCbsRestoreConsentInfo;
6549
6568
  };
6569
+ export declare type BackupMeta200 = {
6570
+ account?: BackupMeta200Account;
6571
+ site?: BackupMeta200Site;
6572
+ };
6550
6573
  /**
6551
6574
  * @nullable
6552
6575
  */
@@ -6587,6 +6610,9 @@ export declare type BackupMeta200Account = {
6587
6610
  export declare type BackupMetaParams = {
6588
6611
  site_id?: number;
6589
6612
  };
6613
+ export declare type BackupList200 = {
6614
+ home?: BackupList200HomeItem[];
6615
+ };
6590
6616
  export declare type BackupList200HomeItemBackupStatus = {
6591
6617
  /** @nullable */
6592
6618
  download_url?: string | null;
@@ -6598,9 +6624,6 @@ export declare type BackupList200HomeItem = {
6598
6624
  backup_status?: BackupList200HomeItemBackupStatus;
6599
6625
  time_created?: string;
6600
6626
  };
6601
- export declare type BackupList200 = {
6602
- home?: BackupList200HomeItem[];
6603
- };
6604
6627
  export declare type BackupListBackupType = typeof BackupListBackupType[keyof typeof BackupListBackupType];
6605
6628
  export declare const BackupListBackupType: {
6606
6629
  readonly full: "full";
@@ -6639,6 +6662,105 @@ export declare type BackupInitiateBody = {
6639
6662
  /** Backup Volume store ID to get the backup */
6640
6663
  backup_volume_store_id: string;
6641
6664
  };
6665
+ export declare type XcitiumSso200 = {
6666
+ /** URL that allows SSOing in to manage the Xcitium backup account */
6667
+ url?: string;
6668
+ };
6669
+ export declare type XcitiumPlanInfo200SeatsItem = {
6670
+ /** Whether this site can create or can download xcitium backups */
6671
+ activated?: boolean;
6672
+ /**
6673
+ * Site url for this xcitium backup
6674
+ * @nullable
6675
+ */
6676
+ url?: string | null;
6677
+ /**
6678
+ * The xcitium identifier for this backup
6679
+ * @nullable
6680
+ */
6681
+ website_id?: string | null;
6682
+ };
6683
+ export declare type XcitiumPlanInfo200 = {
6684
+ /** Whether backups can be created or downloaded from xcitium */
6685
+ activated?: boolean;
6686
+ /**
6687
+ * Back reference of the xcitium addon
6688
+ * @nullable
6689
+ */
6690
+ back_reference?: string | null;
6691
+ /** Whether the xcitium addon is upgradable to a higher tier */
6692
+ can_upgrade?: boolean;
6693
+ /** Whether the xcitium addon has been disabled */
6694
+ disabled?: boolean;
6695
+ /** Whether backup size has gone over the storage limit for the xcitium plan */
6696
+ over_quota?: boolean;
6697
+ /** Displayable plan name that the xcitium addon is on */
6698
+ plan_name?: string;
6699
+ /** Current number of sites added to the xcitium plan */
6700
+ seat_count?: string;
6701
+ /** Max number of sites that can be added to the xcitium plan */
6702
+ seat_limit?: string;
6703
+ seats?: XcitiumPlanInfo200SeatsItem[];
6704
+ /** Current size (in gib) of backups under the xcitium plan */
6705
+ size?: string;
6706
+ /** Max size (in gib) that can be backed up under the xcitium plan */
6707
+ size_limit?: string;
6708
+ /** Status of the xcitium addon */
6709
+ status?: string;
6710
+ };
6711
+ export declare type XcitiumBackupRestore200 = {
6712
+ database_success?: boolean;
6713
+ website_success?: boolean;
6714
+ };
6715
+ export declare type XcitiumBackupRestoreBody = {
6716
+ /** The commit id to restore the database from. */
6717
+ database_commit_id?: string;
6718
+ /** The id of the database the given database is associated with. */
6719
+ database_id?: number;
6720
+ /** The commit id to restore the website from. */
6721
+ website_commit_id?: string;
6722
+ /** The id of the website the given database is associated with. */
6723
+ website_id?: number;
6724
+ };
6725
+ export declare type XcitiumBackupDownload200 = {
6726
+ database_success?: number;
6727
+ website_success?: number;
6728
+ };
6729
+ export declare type XcitiumBackupDownloadBody = {
6730
+ /** The commit id to restore the database from. */
6731
+ database_commit_id?: string;
6732
+ /** The commit id to restore the website from. */
6733
+ website_commit_id?: string;
6734
+ /** The id of the website the given database is associated with. */
6735
+ website_id?: number;
6736
+ };
6737
+ export declare type XcitiumBackupCreate200 = {
6738
+ database_success?: number;
6739
+ website_success?: number;
6740
+ };
6741
+ export declare type XcitiumBackupCreateBody = {
6742
+ /** The id of the database the given database is associated with. */
6743
+ database_id?: number;
6744
+ /** The id of the website the given database is associated with. */
6745
+ website_id?: number;
6746
+ };
6747
+ export declare type XcitiumBackupList200BackupsItemDatabaseBackupsItem = {
6748
+ commit_id?: string;
6749
+ event_time?: string;
6750
+ id?: number;
6751
+ recommended?: boolean;
6752
+ };
6753
+ export declare type XcitiumBackupList200BackupsItem = {
6754
+ database_backups?: XcitiumBackupList200BackupsItemDatabaseBackupsItem[];
6755
+ event_time?: string;
6756
+ website_commit_id?: string;
6757
+ };
6758
+ export declare type XcitiumBackupList200 = {
6759
+ backups?: XcitiumBackupList200BackupsItem[];
6760
+ };
6761
+ export declare type XcitiumBackupListParams = {
6762
+ website_id: number;
6763
+ };
6642
6764
  export declare type AddonsSitelockSso200 = {
6643
6765
  site_url?: string;
6644
6766
  sitelock_id?: string;