@newfold/huapi-js 2.1978.0 → 2.2000.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.1978.0
6
+ * OpenAPI spec version: 1.2000.0
7
7
  */
8
8
  export declare type SshKeyListV4200RowsItem = {
9
9
  authorize?: boolean;
@@ -574,6 +574,17 @@ export declare type SitesDomainsV2200DomainsItem = {
574
574
  export declare type SitesDomainsV2Params = {
575
575
  scan?: boolean;
576
576
  };
577
+ export declare type SitesListV2200 = {
578
+ items?: SitesListV2200ItemsItem[];
579
+ /** page size */
580
+ limit?: number;
581
+ /** current page number */
582
+ page?: number;
583
+ /** total number of pages */
584
+ pages?: number;
585
+ /** total number of sites returned */
586
+ total?: number;
587
+ };
577
588
  /**
578
589
  * @nullable
579
590
  */
@@ -601,6 +612,63 @@ export declare type SitesListV2200ItemsItemStaging = {
601
612
  /** A list of staging sites of the current site */
602
613
  sites?: number[];
603
614
  } | null;
615
+ export declare type SitesListV2200ItemsItemResourcesStorage = {
616
+ /** @nullable */
617
+ available?: number | null;
618
+ /** @nullable */
619
+ total?: number | null;
620
+ unit?: string;
621
+ /** @nullable */
622
+ used?: number | null;
623
+ };
624
+ export declare type SitesListV2200ItemsItemResources = {
625
+ storage?: SitesListV2200ItemsItemResourcesStorage;
626
+ /** @nullable */
627
+ workers?: number | null;
628
+ };
629
+ /**
630
+ * @nullable
631
+ */
632
+ export declare type SitesListV2200ItemsItemPendingUrlData = {
633
+ /**
634
+ * The root domain name
635
+ * @nullable
636
+ */
637
+ base_domain?: string | null;
638
+ /**
639
+ * The Fully Qualified Domain Name (FQDN)
640
+ * @nullable
641
+ */
642
+ domain?: string | null;
643
+ /**
644
+ * The current pending_url's HAL Domain ID
645
+ * @nullable
646
+ */
647
+ domain_id?: number | null;
648
+ /** @nullable */
649
+ error?: string | null;
650
+ /** Flag indicating whether the pending_url is temporary or not */
651
+ is_temp?: boolean;
652
+ /**
653
+ * Flag indicating whether the url_sync job has run out of attempts
654
+ * @nullable
655
+ */
656
+ job_failed?: boolean | null;
657
+ /** @nullable */
658
+ stage?: string | null;
659
+ /**
660
+ * Timestamp for when we will update the WP url, regardless of active sessions
661
+ * @nullable
662
+ */
663
+ wp_session?: string | null;
664
+ } | null;
665
+ /**
666
+ * Job ids for the site
667
+ * @nullable
668
+ */
669
+ export declare type SitesListV2200ItemsItemJobs = {
670
+ [key: string]: unknown;
671
+ } | null;
604
672
  export declare type SitesListV2200ItemsItem = {
605
673
  /** @nullable */
606
674
  account_back_ref?: string | null;
@@ -679,74 +747,6 @@ export declare type SitesListV2200ItemsItem = {
679
747
  */
680
748
  version_ptr?: string | null;
681
749
  };
682
- export declare type SitesListV2200 = {
683
- items?: SitesListV2200ItemsItem[];
684
- /** page size */
685
- limit?: number;
686
- /** current page number */
687
- page?: number;
688
- /** total number of pages */
689
- pages?: number;
690
- /** total number of sites returned */
691
- total?: number;
692
- };
693
- export declare type SitesListV2200ItemsItemResourcesStorage = {
694
- /** @nullable */
695
- available?: number | null;
696
- /** @nullable */
697
- total?: number | null;
698
- unit?: string;
699
- /** @nullable */
700
- used?: number | null;
701
- };
702
- export declare type SitesListV2200ItemsItemResources = {
703
- storage?: SitesListV2200ItemsItemResourcesStorage;
704
- /** @nullable */
705
- workers?: number | null;
706
- };
707
- /**
708
- * @nullable
709
- */
710
- export declare type SitesListV2200ItemsItemPendingUrlData = {
711
- /**
712
- * The root domain name
713
- * @nullable
714
- */
715
- base_domain?: string | null;
716
- /**
717
- * The Fully Qualified Domain Name (FQDN)
718
- * @nullable
719
- */
720
- domain?: string | null;
721
- /**
722
- * The current pending_url's HAL Domain ID
723
- * @nullable
724
- */
725
- domain_id?: number | null;
726
- /** @nullable */
727
- error?: string | null;
728
- /** Flag indicating whether the pending_url is temporary or not */
729
- is_temp?: boolean;
730
- /**
731
- * Flag indicating whether the url_sync job has run out of attempts
732
- * @nullable
733
- */
734
- job_failed?: boolean | null;
735
- /** @nullable */
736
- stage?: string | null;
737
- /**
738
- * Timestamp for when we will update the WP url, regardless of active sessions
739
- * @nullable
740
- */
741
- wp_session?: string | null;
742
- } | null;
743
- /**
744
- * Job ids for the site
745
- * @nullable
746
- */
747
- export declare type SitesListV2200ItemsItemJobs = {
748
- [key: string]: unknown;
749
- } | null;
750
750
  export declare type SshKeyV2200 = {
751
751
  deleted?: number;
752
752
  key_name?: string;
@@ -1477,12 +1477,51 @@ export declare type WaldaiSso200 = {
1477
1477
  /** SSO redirect URL for WaldAI dashboard */
1478
1478
  redirect_url: string;
1479
1479
  };
1480
+ export declare type UserSpamexperts200RowsItemMeta = {
1481
+ /** @nullable */
1482
+ domain?: string | null;
1483
+ /** @nullable */
1484
+ email?: string | null;
1485
+ };
1486
+ export declare type UserSpamexperts200RowsItem = {
1487
+ addon_id: number;
1488
+ /**
1489
+ * Back reference of the SpamExperts addon
1490
+ * @nullable
1491
+ */
1492
+ back_reference?: string | null;
1493
+ /**
1494
+ * Hosting back reference for grouping rows by package
1495
+ * @nullable
1496
+ */
1497
+ hosting_back_reference?: string | null;
1498
+ meta: UserSpamexperts200RowsItemMeta;
1499
+ status: string;
1500
+ };
1501
+ export declare type UserSpamexperts200 = {
1502
+ rows: UserSpamexperts200RowsItem[];
1503
+ };
1504
+ export declare type UserProservices200 = {
1505
+ /** Pro-services products from FG */
1506
+ products?: UserProservices200ProductsItem[];
1507
+ /** Number of pro-services products returned */
1508
+ total?: number;
1509
+ };
1480
1510
  export declare type UserProservices200ProductsItemProductProfileOptionsItem = {
1481
1511
  /** @nullable */
1482
1512
  profile_option?: number | null;
1483
1513
  /** @nullable */
1484
1514
  profile_value?: string | null;
1485
1515
  };
1516
+ /**
1517
+ * @nullable
1518
+ */
1519
+ export declare type UserProservices200ProductsItemIdentifier = {
1520
+ /** Identifier type: domain, ticket_id, or account_id */
1521
+ key?: string;
1522
+ /** Resolved identifier value from Pega or FG */
1523
+ value?: string;
1524
+ } | null;
1486
1525
  export declare type UserProservices200ProductsItem = {
1487
1526
  /** @nullable */
1488
1527
  auto_renew_flag?: boolean | null;
@@ -1498,6 +1537,8 @@ export declare type UserProservices200ProductsItem = {
1498
1537
  /** @nullable */
1499
1538
  generic_prod_type?: string | null;
1500
1539
  /** @nullable */
1540
+ identifier?: UserProservices200ProductsItemIdentifier;
1541
+ /** @nullable */
1501
1542
  life_cycle_state?: string | null;
1502
1543
  /**
1503
1544
  * prod_code of the parent product referenced by parent_prod_inst_id
@@ -1510,16 +1551,123 @@ export declare type UserProservices200ProductsItem = {
1510
1551
  prod_code?: string | null;
1511
1552
  /** @nullable */
1512
1553
  prod_inst_id?: string | null;
1554
+ /**
1555
+ * FG product instance display name
1556
+ * @nullable
1557
+ */
1558
+ prod_inst_name?: string | null;
1513
1559
  /** @nullable */
1514
1560
  prod_name?: string | null;
1515
1561
  /** FG product profile options */
1516
1562
  product_profile_options?: UserProservices200ProductsItemProductProfileOptionsItem[];
1563
+ /** Remaining revision days, Expired when the window has ended, or empty when not applicable */
1564
+ revision_window_days?: string;
1565
+ /** Pro-services status: Active or Completed */
1566
+ status?: string;
1517
1567
  };
1518
- export declare type UserProservices200 = {
1519
- /** Pro-services products from FG */
1520
- products?: UserProservices200ProductsItem[];
1521
- /** Number of pro-services products returned */
1522
- total?: number;
1568
+ export declare type UserProducts502 = {
1569
+ /** Error code */
1570
+ error?: string;
1571
+ };
1572
+ export declare type UserProducts401 = {
1573
+ /** Error code */
1574
+ error?: string;
1575
+ };
1576
+ export declare type UserProducts200ProductsItem = {
1577
+ /**
1578
+ * Account identifier
1579
+ * @nullable
1580
+ */
1581
+ account_id?: number | null;
1582
+ /**
1583
+ * Human-readable auto-renew status. Possible values: 'On' (auto-renew enabled) or 'Off' (auto-renew disabled).
1584
+ * @nullable
1585
+ */
1586
+ auto_renew?: string | null;
1587
+ /**
1588
+ * Whether auto-renew is enabled
1589
+ * @nullable
1590
+ */
1591
+ auto_renew_flag?: boolean | null;
1592
+ /**
1593
+ * Date when the product was created
1594
+ * @nullable
1595
+ */
1596
+ created_date?: string | null;
1597
+ /**
1598
+ * Product expiration date
1599
+ * @nullable
1600
+ */
1601
+ expiration_date?: string | null;
1602
+ /**
1603
+ * Generic product type
1604
+ * @nullable
1605
+ */
1606
+ generic_prod_type?: string | null;
1607
+ /**
1608
+ * Whether the product is a WP Cloud product (e.g. WP_CLOUD_1, WP_CLOUD_10, WP_CLOUD_25, WP_CLOUD_50, WP_CLOUD_100, WP_CLOUD_300, WP_CLOUD_600).
1609
+ * @nullable
1610
+ */
1611
+ is_cloud_product?: boolean | null;
1612
+ /**
1613
+ * Whether this product includes free foundation hosting
1614
+ * @nullable
1615
+ */
1616
+ is_free_foundation_hosting?: boolean | null;
1617
+ /**
1618
+ * Whether the Google Workspace product has been configured (i.e. configuredCdId equals 13).
1619
+ * @nullable
1620
+ */
1621
+ is_gw_product_configured?: boolean | null;
1622
+ /**
1623
+ * Parent product instance identifier
1624
+ * @nullable
1625
+ */
1626
+ parent_prod_inst_id?: string | null;
1627
+ /**
1628
+ * Internal product code
1629
+ * @nullable
1630
+ */
1631
+ prod_code?: string | null;
1632
+ /**
1633
+ * Product identifier
1634
+ * @nullable
1635
+ */
1636
+ prod_id?: number | null;
1637
+ /**
1638
+ * Product instance identifier
1639
+ * @nullable
1640
+ */
1641
+ prod_inst_id?: string | null;
1642
+ /**
1643
+ * Product instance name
1644
+ * @nullable
1645
+ */
1646
+ prod_inst_name?: string | null;
1647
+ /**
1648
+ * Product display name
1649
+ * @nullable
1650
+ */
1651
+ prod_name?: string | null;
1652
+ /**
1653
+ * Product type
1654
+ * @nullable
1655
+ */
1656
+ prod_type?: string | null;
1657
+ /**
1658
+ * Numeric duration of the subscription. The unit of this value is defined by subscription_unit (e.g. a value of 1 with subscription_unit 'Y' means 1 year, a value of 6 with subscription_unit 'M' means 6 months).
1659
+ * @nullable
1660
+ */
1661
+ subscription_term?: number | null;
1662
+ /**
1663
+ * Unit of the subscription term. Common values: 'Y' (year), 'M' (month). Use in conjunction with subscription_term to determine the full subscription length (e.g. subscription_term: 1, subscription_unit: 'Y' = 1 year).
1664
+ * @nullable
1665
+ */
1666
+ subscription_unit?: string | null;
1667
+ };
1668
+ export declare type UserProducts200 = {
1669
+ /** List of products associated with the account */
1670
+ products?: UserProducts200ProductsItem[];
1523
1671
  };
1524
1672
  export declare type AllUserMonarxDetails200RowsItem = {
1525
1673
  /** HAL Account back_reference, used to link to the product instance */
@@ -3855,6 +4003,21 @@ export declare type HostingSshInfo200 = {
3855
4003
  success?: boolean;
3856
4004
  username?: string;
3857
4005
  };
4006
+ export declare type HostingSpamexpertsEligibleDomains200RowsItem = {
4007
+ /** Domain name */
4008
+ domain?: string;
4009
+ /** HAL domain id */
4010
+ id?: number;
4011
+ /** Domain status on the hosting account */
4012
+ status?: string;
4013
+ /** Domain type */
4014
+ type?: string;
4015
+ };
4016
+ export declare type HostingSpamexpertsEligibleDomains200 = {
4017
+ /** Number of eligible domains returned */
4018
+ n_rows?: number;
4019
+ rows?: HostingSpamexpertsEligibleDomains200RowsItem[];
4020
+ };
3858
4021
  export declare type SitesBatch200 = {
3859
4022
  success?: boolean;
3860
4023
  };
@@ -5815,6 +5978,79 @@ export declare type HostingCapabilities200 = {
5815
5978
  sites?: boolean;
5816
5979
  whm?: boolean;
5817
5980
  };
5981
+ /**
5982
+ * @nullable
5983
+ */
5984
+ export declare type HostingBackups200Xcitium = {
5985
+ /**
5986
+ * back reference of the HAL addon
5987
+ * @nullable
5988
+ */
5989
+ addon_back_reference?: string | null;
5990
+ /** id of the HAL addon */
5991
+ addon_id?: number;
5992
+ /** whether the product for this addon can be upgraded */
5993
+ can_upgrade?: boolean;
5994
+ /**
5995
+ * displayable product tier or plan name
5996
+ * @nullable
5997
+ */
5998
+ plan_name?: string | null;
5999
+ /** status of the HAL addon */
6000
+ status?: string;
6001
+ } | null;
6002
+ export declare type HostingBackups200JetpackItem = {
6003
+ /**
6004
+ * back reference of the HAL addon
6005
+ * @nullable
6006
+ */
6007
+ addon_back_reference?: string | null;
6008
+ /** id of the HAL addon */
6009
+ addon_id?: number;
6010
+ /** whether the product for this addon can be upgraded */
6011
+ can_upgrade?: boolean;
6012
+ /**
6013
+ * displayable product tier or plan name
6014
+ * @nullable
6015
+ */
6016
+ plan_name?: string | null;
6017
+ /**
6018
+ * site id from the HAL addon meta
6019
+ * @nullable
6020
+ */
6021
+ site_id?: string | null;
6022
+ /** status of the HAL addon */
6023
+ status?: string;
6024
+ };
6025
+ /**
6026
+ * @nullable
6027
+ */
6028
+ export declare type HostingBackups200Codeguard = {
6029
+ /**
6030
+ * back reference of the HAL addon
6031
+ * @nullable
6032
+ */
6033
+ addon_back_reference?: string | null;
6034
+ /** id of the HAL addon */
6035
+ addon_id?: number;
6036
+ /** whether the product for this addon can be upgraded */
6037
+ can_upgrade?: boolean;
6038
+ /**
6039
+ * displayable product tier or plan name
6040
+ * @nullable
6041
+ */
6042
+ plan_name?: string | null;
6043
+ /** status of the HAL addon */
6044
+ status?: string;
6045
+ } | null;
6046
+ export declare type HostingBackups200 = {
6047
+ /** @nullable */
6048
+ codeguard?: HostingBackups200Codeguard;
6049
+ /** @nullable */
6050
+ jetpack?: HostingBackups200JetpackItem[] | null;
6051
+ /** @nullable */
6052
+ xcitium?: HostingBackups200Xcitium;
6053
+ };
5818
6054
  export declare type HostingAdvancedSystemConsole200 = {
5819
6055
  url?: string;
5820
6056
  };
@@ -5852,7 +6088,48 @@ export declare type HostingAdvancedPasswordBody = {
5852
6088
  */
5853
6089
  password: string;
5854
6090
  };
6091
+ /**
6092
+ * Server sync q_job state when server_reason is not_ready
6093
+ * @nullable
6094
+ */
6095
+ export declare type HostingAdvancedServerHealthcheck200ServerQJob = {
6096
+ /**
6097
+ * Remaining sync q_job retries (0 means exhausted)
6098
+ * @nullable
6099
+ */
6100
+ remaining?: number | null;
6101
+ /**
6102
+ * Sync q_job tries made so far
6103
+ * @nullable
6104
+ */
6105
+ tries?: number | null;
6106
+ } | null;
6107
+ /**
6108
+ * Hosting addon sync q_job state when addon_reason is not_ready
6109
+ * @nullable
6110
+ */
6111
+ export declare type HostingAdvancedServerHealthcheck200AddonQJob = {
6112
+ /**
6113
+ * Remaining sync q_job retries (0 means exhausted)
6114
+ * @nullable
6115
+ */
6116
+ remaining?: number | null;
6117
+ /**
6118
+ * Sync q_job tries made so far
6119
+ * @nullable
6120
+ */
6121
+ tries?: number | null;
6122
+ } | null;
5855
6123
  export declare type HostingAdvancedServerHealthcheck200 = {
6124
+ /**
6125
+ * Hosting addon sync q_job state when addon_reason is not_ready
6126
+ * @nullable
6127
+ */
6128
+ addon_q_job?: HostingAdvancedServerHealthcheck200AddonQJob;
6129
+ /** Resolved hosting addon health category (ok, not_ready, not_active) */
6130
+ addon_reason: string;
6131
+ /** Current hosting addon status */
6132
+ addon_status: string;
5856
6133
  /**
5857
6134
  * 1 if the panel responded (Windows servers)
5858
6135
  * @nullable
@@ -5868,7 +6145,14 @@ export declare type HostingAdvancedServerHealthcheck200 = {
5868
6145
  * @nullable
5869
6146
  */
5870
6147
  server_hello?: number | null;
5871
- /** Current server status */
6148
+ /**
6149
+ * Server sync q_job state when server_reason is not_ready
6150
+ * @nullable
6151
+ */
6152
+ server_q_job?: HostingAdvancedServerHealthcheck200ServerQJob;
6153
+ /** Resolved server health category (ok, stopped, not_ready, not_active) */
6154
+ server_reason: string;
6155
+ /** Current HAL server VM status */
5872
6156
  server_status: string;
5873
6157
  };
5874
6158
  export declare type HostingAdvancedServerStatus200Actions = {
@@ -6711,6 +6995,15 @@ export declare type AddonsSync200 = {
6711
6995
  export declare type AddonsSpamexpertsSso200 = {
6712
6996
  url?: string;
6713
6997
  };
6998
+ export declare type AddonsSpamexpertsDomainAssign200 = {
6999
+ [key: string]: unknown;
7000
+ };
7001
+ export declare type AddonsSpamexpertsDomainAssignBody = {
7002
+ /** The domain to assign to SpamExperts */
7003
+ domain: string;
7004
+ /** The email address to use for the SpamExperts account */
7005
+ email: string;
7006
+ };
6714
7007
  export declare type MonarxAddonReportUrl200 = {
6715
7008
  /** Tokenized Monarx iframe URL */
6716
7009
  report_url: string;
@@ -7096,6 +7389,14 @@ export declare type BackupMeta200SiteCbsBackupDeleteData = {
7096
7389
  */
7097
7390
  plan_type?: BackupMeta200SiteCbsBackupDeleteDataPlanType;
7098
7391
  } | null;
7392
+ export declare type BackupMeta200Account = {
7393
+ /** @nullable */
7394
+ cbs_downloadables?: BackupMeta200AccountCbsDownloadablesItem[] | null;
7395
+ /** @nullable */
7396
+ cbs_event_processing?: BackupMeta200AccountCbsEventProcessing;
7397
+ /** @nullable */
7398
+ cbs_last_restore_timestamp?: string | null;
7399
+ };
7099
7400
  /**
7100
7401
  * Backup plan type for the current account event processing context.
7101
7402
  * @nullable
@@ -7139,14 +7440,6 @@ export declare type BackupMeta200AccountCbsDownloadablesItem = {
7139
7440
  /** @nullable */
7140
7441
  url?: string | null;
7141
7442
  };
7142
- export declare type BackupMeta200Account = {
7143
- /** @nullable */
7144
- cbs_downloadables?: BackupMeta200AccountCbsDownloadablesItem[] | null;
7145
- /** @nullable */
7146
- cbs_event_processing?: BackupMeta200AccountCbsEventProcessing;
7147
- /** @nullable */
7148
- cbs_last_restore_timestamp?: string | null;
7149
- };
7150
7443
  export declare type BackupMetaParams = {
7151
7444
  site_id?: number;
7152
7445
  };
@@ -7412,7 +7705,13 @@ export declare type CodeguardWebsiteList200 = {
7412
7705
  };
7413
7706
  export declare type CodeguardPlanInfo200SeatsItem = {
7414
7707
  activated?: boolean;
7708
+ database_activated?: boolean;
7709
+ /** @nullable */
7710
+ database_id?: number | null;
7711
+ /** @nullable */
7712
+ site_id?: number | null;
7415
7713
  url?: string;
7714
+ website_activated?: boolean;
7416
7715
  website_id?: number;
7417
7716
  };
7418
7717
  export declare type CodeguardPlanInfo200 = {