@scaleway/sdk-webhosting 1.1.3 → 1.3.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.
@@ -1,9 +1,143 @@
1
1
  import { API, toApiLocality, urlParams, validatePathParam, enrichForPagination, waitForResource } from "@scaleway/sdk-client";
2
- import { DOMAIN_TRANSIENT_STATUSES, HOSTING_TRANSIENT_STATUSES } from "./content.gen.js";
3
- import { unmarshalListControlPanelsResponse, marshalDatabaseApiCreateDatabaseRequest, unmarshalDatabase, unmarshalListDatabasesResponse, marshalDatabaseApiCreateDatabaseUserRequest, unmarshalDatabaseUser, unmarshalListDatabaseUsersResponse, marshalDatabaseApiChangeDatabaseUserPasswordRequest, marshalDatabaseApiAssignDatabaseUserRequest, marshalDatabaseApiUnassignDatabaseUserRequest, unmarshalDnsRecords, marshalDnsApiCheckUserOwnsDomainRequest, unmarshalCheckUserOwnsDomainResponse, marshalDnsApiSyncDomainDnsRecordsRequest, unmarshalSearchDomainsResponse, unmarshalDomain, unmarshalListOffersResponse, marshalHostingApiCreateHostingRequest, unmarshalHosting, unmarshalListHostingsResponse, marshalHostingApiUpdateHostingRequest, unmarshalSession, unmarshalResetHostingPasswordResponse, unmarshalResourceSummary, marshalFtpAccountApiCreateFtpAccountRequest, unmarshalFtpAccount, unmarshalListFtpAccountsResponse, marshalFtpAccountApiChangeFtpAccountPasswordRequest, marshalMailAccountApiCreateMailAccountRequest, unmarshalMailAccount, unmarshalListMailAccountsResponse, marshalMailAccountApiRemoveMailAccountRequest, marshalMailAccountApiChangeMailAccountPasswordRequest, unmarshalListWebsitesResponse } from "./marshalling.gen.js";
2
+ import { BACKUP_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, HOSTING_TRANSIENT_STATUSES } from "./content.gen.js";
3
+ import { unmarshalListBackupsResponse, unmarshalBackup, unmarshalRestoreBackupResponse, unmarshalListBackupItemsResponse, marshalBackupApiRestoreBackupItemsRequest, unmarshalRestoreBackupItemsResponse, unmarshalProgress, unmarshalListRecentProgressesResponse, unmarshalListControlPanelsResponse, marshalDatabaseApiCreateDatabaseRequest, unmarshalDatabase, unmarshalListDatabasesResponse, marshalDatabaseApiCreateDatabaseUserRequest, unmarshalDatabaseUser, unmarshalListDatabaseUsersResponse, marshalDatabaseApiChangeDatabaseUserPasswordRequest, marshalDatabaseApiAssignDatabaseUserRequest, marshalDatabaseApiUnassignDatabaseUserRequest, unmarshalDnsRecords, marshalDnsApiCheckUserOwnsDomainRequest, unmarshalCheckUserOwnsDomainResponse, marshalDnsApiSyncDomainDnsRecordsRequest, unmarshalSearchDomainsResponse, unmarshalDomain, unmarshalListOffersResponse, marshalHostingApiCreateHostingRequest, unmarshalHosting, unmarshalListHostingsResponse, marshalHostingApiUpdateHostingRequest, unmarshalSession, unmarshalResetHostingPasswordResponse, unmarshalResourceSummary, marshalHostingApiAddCustomDomainRequest, unmarshalHostingSummary, marshalHostingApiRemoveCustomDomainRequest, marshalFreeDomainApiCheckFreeDomainAvailabilityRequest, unmarshalCheckFreeDomainAvailabilityResponse, unmarshalListFreeRootDomainsResponse, marshalFtpAccountApiCreateFtpAccountRequest, unmarshalFtpAccount, unmarshalListFtpAccountsResponse, marshalFtpAccountApiChangeFtpAccountPasswordRequest, marshalMailAccountApiCreateMailAccountRequest, unmarshalMailAccount, unmarshalListMailAccountsResponse, marshalMailAccountApiRemoveMailAccountRequest, marshalMailAccountApiChangeMailAccountPasswordRequest, unmarshalListWebsitesResponse } from "./marshalling.gen.js";
4
4
  const jsonContentHeaders = {
5
5
  "Content-Type": "application/json; charset=utf-8"
6
6
  };
7
+ class BackupAPI extends API {
8
+ /**
9
+ * Locality of this API.
10
+ * type ∈ {'zone','region','global','unspecified'}
11
+ */
12
+ static LOCALITY = toApiLocality({
13
+ regions: ["fr-par", "nl-ams", "pl-waw"]
14
+ });
15
+ pageOfListBackups = (request) => this.client.fetch(
16
+ {
17
+ method: "GET",
18
+ path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/backups`,
19
+ urlParams: urlParams(
20
+ ["order_by", request.orderBy],
21
+ ["page", request.page],
22
+ [
23
+ "page_size",
24
+ request.pageSize ?? this.client.settings.defaultPageSize
25
+ ]
26
+ )
27
+ },
28
+ unmarshalListBackupsResponse
29
+ );
30
+ /**
31
+ * List all available backups for a hosting account.. List all available backups for a hosting account.
32
+ *
33
+ * @param request - The request {@link BackupApiListBackupsRequest}
34
+ * @returns A Promise of ListBackupsResponse
35
+ */
36
+ listBackups = (request) => enrichForPagination("backups", this.pageOfListBackups, request);
37
+ /**
38
+ * Get info about a backup specified by the backup ID.. Get info about a backup specified by the backup ID.
39
+ *
40
+ * @param request - The request {@link BackupApiGetBackupRequest}
41
+ * @returns A Promise of Backup
42
+ */
43
+ getBackup = (request) => this.client.fetch(
44
+ {
45
+ method: "GET",
46
+ path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/backups/${validatePathParam("backupId", request.backupId)}`
47
+ },
48
+ unmarshalBackup
49
+ );
50
+ /**
51
+ * Waits for {@link Backup} to be in a final state.
52
+ *
53
+ * @param request - The request {@link BackupApiGetBackupRequest}
54
+ * @param options - The waiting options
55
+ * @returns A Promise of Backup
56
+ */
57
+ waitForBackup = (request, options) => waitForResource(
58
+ options?.stop ?? ((res) => Promise.resolve(
59
+ !BACKUP_TRANSIENT_STATUSES.includes(res.status)
60
+ )),
61
+ this.getBackup,
62
+ request,
63
+ options
64
+ );
65
+ /**
66
+ * Restore an entire backup to your hosting environment.. Restore an entire backup to your hosting environment.
67
+ *
68
+ * @param request - The request {@link BackupApiRestoreBackupRequest}
69
+ * @returns A Promise of RestoreBackupResponse
70
+ */
71
+ restoreBackup = (request) => this.client.fetch(
72
+ {
73
+ body: "{}",
74
+ headers: jsonContentHeaders,
75
+ method: "POST",
76
+ path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/backups/${validatePathParam("backupId", request.backupId)}/restore`
77
+ },
78
+ unmarshalRestoreBackupResponse
79
+ );
80
+ /**
81
+ * List items within a specific backup, grouped by type.. List items within a specific backup, grouped by type.
82
+ *
83
+ * @param request - The request {@link BackupApiListBackupItemsRequest}
84
+ * @returns A Promise of ListBackupItemsResponse
85
+ */
86
+ listBackupItems = (request) => this.client.fetch(
87
+ {
88
+ method: "GET",
89
+ path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/backup-items`,
90
+ urlParams: urlParams(["backup_id", request.backupId])
91
+ },
92
+ unmarshalListBackupItemsResponse
93
+ );
94
+ /**
95
+ * Restore specific items from a backup (e.g., a database or mailbox).. Restore specific items from a backup (e.g., a database or mailbox).
96
+ *
97
+ * @param request - The request {@link BackupApiRestoreBackupItemsRequest}
98
+ * @returns A Promise of RestoreBackupItemsResponse
99
+ */
100
+ restoreBackupItems = (request) => this.client.fetch(
101
+ {
102
+ body: JSON.stringify(
103
+ marshalBackupApiRestoreBackupItemsRequest(
104
+ request,
105
+ this.client.settings
106
+ )
107
+ ),
108
+ headers: jsonContentHeaders,
109
+ method: "POST",
110
+ path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/restore-backup-items`
111
+ },
112
+ unmarshalRestoreBackupItemsResponse
113
+ );
114
+ /**
115
+ * Retrieve detailed information about a specific progress by its ID.. Retrieve detailed information about a specific progress by its ID.
116
+ *
117
+ * @param request - The request {@link BackupApiGetProgressRequest}
118
+ * @returns A Promise of Progress
119
+ */
120
+ getProgress = (request) => this.client.fetch(
121
+ {
122
+ method: "GET",
123
+ path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/progresses/${validatePathParam("progressId", request.progressId)}`
124
+ },
125
+ unmarshalProgress
126
+ );
127
+ /**
128
+ * List recent progresses associated with a specific backup, grouped by type.. List recent progresses associated with a specific backup, grouped by type.
129
+ *
130
+ * @param request - The request {@link BackupApiListRecentProgressesRequest}
131
+ * @returns A Promise of ListRecentProgressesResponse
132
+ */
133
+ listRecentProgresses = (request) => this.client.fetch(
134
+ {
135
+ method: "GET",
136
+ path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/progresses`
137
+ },
138
+ unmarshalListRecentProgressesResponse
139
+ );
140
+ }
7
141
  class ControlPanelAPI extends API {
8
142
  /**
9
143
  * Locality of this API.
@@ -263,6 +397,7 @@ class DnsAPI extends API {
263
397
  /**
264
398
  * Check whether you own this domain or not.. Check whether you own this domain or not.
265
399
  *
400
+ * @deprecated
266
401
  * @param request - The request {@link DnsApiCheckUserOwnsDomainRequest}
267
402
  * @returns A Promise of CheckUserOwnsDomainResponse
268
403
  */
@@ -427,6 +562,7 @@ class HostingAPI extends API {
427
562
  ],
428
563
  ["project_id", request.projectId],
429
564
  ["statuses", request.statuses],
565
+ ["subdomain", request.subdomain],
430
566
  ["tags", request.tags]
431
567
  )
432
568
  },
@@ -540,6 +676,96 @@ class HostingAPI extends API {
540
676
  },
541
677
  unmarshalResourceSummary
542
678
  );
679
+ /**
680
+ * Attach a custom domain to a webhosting.
681
+ *
682
+ * @param request - The request {@link HostingApiAddCustomDomainRequest}
683
+ * @returns A Promise of HostingSummary
684
+ */
685
+ addCustomDomain = (request) => this.client.fetch(
686
+ {
687
+ body: JSON.stringify(
688
+ marshalHostingApiAddCustomDomainRequest(
689
+ request,
690
+ this.client.settings
691
+ )
692
+ ),
693
+ headers: jsonContentHeaders,
694
+ method: "POST",
695
+ path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/add-custom-domain`
696
+ },
697
+ unmarshalHostingSummary
698
+ );
699
+ /**
700
+ * Detach a custom domain from a webhosting.
701
+ *
702
+ * @param request - The request {@link HostingApiRemoveCustomDomainRequest}
703
+ * @returns A Promise of HostingSummary
704
+ */
705
+ removeCustomDomain = (request) => this.client.fetch(
706
+ {
707
+ body: JSON.stringify(
708
+ marshalHostingApiRemoveCustomDomainRequest(
709
+ request,
710
+ this.client.settings
711
+ )
712
+ ),
713
+ headers: jsonContentHeaders,
714
+ method: "POST",
715
+ path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/remove-custom-domain`
716
+ },
717
+ unmarshalHostingSummary
718
+ );
719
+ }
720
+ class FreeDomainAPI extends API {
721
+ /**
722
+ * Locality of this API.
723
+ * type ∈ {'zone','region','global','unspecified'}
724
+ */
725
+ static LOCALITY = toApiLocality({
726
+ regions: ["fr-par", "nl-ams", "pl-waw"]
727
+ });
728
+ /**
729
+ * Check whether a given slug and free domain combination is available.. Check whether a given slug and free domain combination is available.
730
+ *
731
+ * @param request - The request {@link FreeDomainApiCheckFreeDomainAvailabilityRequest}
732
+ * @returns A Promise of CheckFreeDomainAvailabilityResponse
733
+ */
734
+ checkFreeDomainAvailability = (request) => this.client.fetch(
735
+ {
736
+ body: JSON.stringify(
737
+ marshalFreeDomainApiCheckFreeDomainAvailabilityRequest(
738
+ request,
739
+ this.client.settings
740
+ )
741
+ ),
742
+ headers: jsonContentHeaders,
743
+ method: "POST",
744
+ path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/free-domains/check-availability`
745
+ },
746
+ unmarshalCheckFreeDomainAvailabilityResponse
747
+ );
748
+ pageOfListFreeRootDomains = (request = {}) => this.client.fetch(
749
+ {
750
+ method: "GET",
751
+ path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/free-domains/root-domains`,
752
+ urlParams: urlParams(
753
+ ["page", request.page],
754
+ [
755
+ "page_size",
756
+ request.pageSize ?? this.client.settings.defaultPageSize
757
+ ]
758
+ )
759
+ },
760
+ unmarshalListFreeRootDomainsResponse
761
+ );
762
+ /**
763
+ * Retrieve the list of free root domains available for a Web Hosting.. Retrieve the list of free root domains available for a Web Hosting.
764
+ *
765
+ * @param request - The request {@link FreeDomainApiListFreeRootDomainsRequest}
766
+ * @returns A Promise of ListFreeRootDomainsResponse
767
+ */
768
+ listFreeRootDomains = (request = {}) => enrichForPagination("rootDomains", this.pageOfListFreeRootDomains, request);
543
769
  }
544
770
  class FtpAccountAPI extends API {
545
771
  /**
@@ -744,9 +970,11 @@ class WebsiteAPI extends API {
744
970
  listWebsites = (request) => enrichForPagination("websites", this.pageOfListWebsites, request);
745
971
  }
746
972
  export {
973
+ BackupAPI,
747
974
  ControlPanelAPI,
748
975
  DatabaseAPI,
749
976
  DnsAPI,
977
+ FreeDomainAPI,
750
978
  FtpAccountAPI,
751
979
  HostingAPI,
752
980
  MailAccountAPI,
@@ -1,12 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const BACKUP_TRANSIENT_STATUSES = ["restoring"];
3
4
  const DOMAIN_AVAILABILITY_TRANSIENT_STATUSES = ["validating"];
4
5
  const DOMAIN_TRANSIENT_STATUSES = ["validating"];
5
6
  const HOSTING_TRANSIENT_STATUSES = [
6
7
  "delivering",
7
8
  "deleting",
8
- "migrating"
9
+ "migrating",
10
+ "updating"
9
11
  ];
12
+ exports.BACKUP_TRANSIENT_STATUSES = BACKUP_TRANSIENT_STATUSES;
10
13
  exports.DOMAIN_AVAILABILITY_TRANSIENT_STATUSES = DOMAIN_AVAILABILITY_TRANSIENT_STATUSES;
11
14
  exports.DOMAIN_TRANSIENT_STATUSES = DOMAIN_TRANSIENT_STATUSES;
12
15
  exports.HOSTING_TRANSIENT_STATUSES = HOSTING_TRANSIENT_STATUSES;
@@ -1,4 +1,6 @@
1
- import type { DomainAvailabilityStatus, DomainStatus, HostingStatus } from './types.gen';
1
+ import type { BackupStatus, DomainAvailabilityStatus, DomainStatus, HostingStatus } from './types.gen.js';
2
+ /** Lists transient statutes of the enum {@link BackupStatus}. */
3
+ export declare const BACKUP_TRANSIENT_STATUSES: BackupStatus[];
2
4
  /** Lists transient statutes of the enum {@link DomainAvailabilityStatus}. */
3
5
  export declare const DOMAIN_AVAILABILITY_TRANSIENT_STATUSES: DomainAvailabilityStatus[];
4
6
  /** Lists transient statutes of the enum {@link DomainStatus}. */
@@ -1,11 +1,14 @@
1
+ const BACKUP_TRANSIENT_STATUSES = ["restoring"];
1
2
  const DOMAIN_AVAILABILITY_TRANSIENT_STATUSES = ["validating"];
2
3
  const DOMAIN_TRANSIENT_STATUSES = ["validating"];
3
4
  const HOSTING_TRANSIENT_STATUSES = [
4
5
  "delivering",
5
6
  "deleting",
6
- "migrating"
7
+ "migrating",
8
+ "updating"
7
9
  ];
8
10
  export {
11
+ BACKUP_TRANSIENT_STATUSES,
9
12
  DOMAIN_AVAILABILITY_TRANSIENT_STATUSES,
10
13
  DOMAIN_TRANSIENT_STATUSES,
11
14
  HOSTING_TRANSIENT_STATUSES
@@ -4,17 +4,21 @@ const api_gen = require("./api.gen.cjs");
4
4
  const content_gen = require("./content.gen.cjs");
5
5
  const marshalling_gen = require("./marshalling.gen.cjs");
6
6
  const validationRules_gen = require("./validation-rules.gen.cjs");
7
+ exports.BackupAPI = api_gen.BackupAPI;
7
8
  exports.ControlPanelAPI = api_gen.ControlPanelAPI;
8
9
  exports.DatabaseAPI = api_gen.DatabaseAPI;
9
10
  exports.DnsAPI = api_gen.DnsAPI;
11
+ exports.FreeDomainAPI = api_gen.FreeDomainAPI;
10
12
  exports.FtpAccountAPI = api_gen.FtpAccountAPI;
11
13
  exports.HostingAPI = api_gen.HostingAPI;
12
14
  exports.MailAccountAPI = api_gen.MailAccountAPI;
13
15
  exports.OfferAPI = api_gen.OfferAPI;
14
16
  exports.WebsiteAPI = api_gen.WebsiteAPI;
17
+ exports.BACKUP_TRANSIENT_STATUSES = content_gen.BACKUP_TRANSIENT_STATUSES;
15
18
  exports.DOMAIN_AVAILABILITY_TRANSIENT_STATUSES = content_gen.DOMAIN_AVAILABILITY_TRANSIENT_STATUSES;
16
19
  exports.DOMAIN_TRANSIENT_STATUSES = content_gen.DOMAIN_TRANSIENT_STATUSES;
17
20
  exports.HOSTING_TRANSIENT_STATUSES = content_gen.HOSTING_TRANSIENT_STATUSES;
21
+ exports.marshalBackupApiRestoreBackupItemsRequest = marshalling_gen.marshalBackupApiRestoreBackupItemsRequest;
18
22
  exports.marshalDatabaseApiAssignDatabaseUserRequest = marshalling_gen.marshalDatabaseApiAssignDatabaseUserRequest;
19
23
  exports.marshalDatabaseApiChangeDatabaseUserPasswordRequest = marshalling_gen.marshalDatabaseApiChangeDatabaseUserPasswordRequest;
20
24
  exports.marshalDatabaseApiCreateDatabaseRequest = marshalling_gen.marshalDatabaseApiCreateDatabaseRequest;
@@ -22,13 +26,18 @@ exports.marshalDatabaseApiCreateDatabaseUserRequest = marshalling_gen.marshalDat
22
26
  exports.marshalDatabaseApiUnassignDatabaseUserRequest = marshalling_gen.marshalDatabaseApiUnassignDatabaseUserRequest;
23
27
  exports.marshalDnsApiCheckUserOwnsDomainRequest = marshalling_gen.marshalDnsApiCheckUserOwnsDomainRequest;
24
28
  exports.marshalDnsApiSyncDomainDnsRecordsRequest = marshalling_gen.marshalDnsApiSyncDomainDnsRecordsRequest;
29
+ exports.marshalFreeDomainApiCheckFreeDomainAvailabilityRequest = marshalling_gen.marshalFreeDomainApiCheckFreeDomainAvailabilityRequest;
25
30
  exports.marshalFtpAccountApiChangeFtpAccountPasswordRequest = marshalling_gen.marshalFtpAccountApiChangeFtpAccountPasswordRequest;
26
31
  exports.marshalFtpAccountApiCreateFtpAccountRequest = marshalling_gen.marshalFtpAccountApiCreateFtpAccountRequest;
32
+ exports.marshalHostingApiAddCustomDomainRequest = marshalling_gen.marshalHostingApiAddCustomDomainRequest;
27
33
  exports.marshalHostingApiCreateHostingRequest = marshalling_gen.marshalHostingApiCreateHostingRequest;
34
+ exports.marshalHostingApiRemoveCustomDomainRequest = marshalling_gen.marshalHostingApiRemoveCustomDomainRequest;
28
35
  exports.marshalHostingApiUpdateHostingRequest = marshalling_gen.marshalHostingApiUpdateHostingRequest;
29
36
  exports.marshalMailAccountApiChangeMailAccountPasswordRequest = marshalling_gen.marshalMailAccountApiChangeMailAccountPasswordRequest;
30
37
  exports.marshalMailAccountApiCreateMailAccountRequest = marshalling_gen.marshalMailAccountApiCreateMailAccountRequest;
31
38
  exports.marshalMailAccountApiRemoveMailAccountRequest = marshalling_gen.marshalMailAccountApiRemoveMailAccountRequest;
39
+ exports.unmarshalBackup = marshalling_gen.unmarshalBackup;
40
+ exports.unmarshalCheckFreeDomainAvailabilityResponse = marshalling_gen.unmarshalCheckFreeDomainAvailabilityResponse;
32
41
  exports.unmarshalCheckUserOwnsDomainResponse = marshalling_gen.unmarshalCheckUserOwnsDomainResponse;
33
42
  exports.unmarshalDatabase = marshalling_gen.unmarshalDatabase;
34
43
  exports.unmarshalDatabaseUser = marshalling_gen.unmarshalDatabaseUser;
@@ -36,17 +45,25 @@ exports.unmarshalDnsRecords = marshalling_gen.unmarshalDnsRecords;
36
45
  exports.unmarshalDomain = marshalling_gen.unmarshalDomain;
37
46
  exports.unmarshalFtpAccount = marshalling_gen.unmarshalFtpAccount;
38
47
  exports.unmarshalHosting = marshalling_gen.unmarshalHosting;
48
+ exports.unmarshalHostingSummary = marshalling_gen.unmarshalHostingSummary;
49
+ exports.unmarshalListBackupItemsResponse = marshalling_gen.unmarshalListBackupItemsResponse;
50
+ exports.unmarshalListBackupsResponse = marshalling_gen.unmarshalListBackupsResponse;
39
51
  exports.unmarshalListControlPanelsResponse = marshalling_gen.unmarshalListControlPanelsResponse;
40
52
  exports.unmarshalListDatabaseUsersResponse = marshalling_gen.unmarshalListDatabaseUsersResponse;
41
53
  exports.unmarshalListDatabasesResponse = marshalling_gen.unmarshalListDatabasesResponse;
54
+ exports.unmarshalListFreeRootDomainsResponse = marshalling_gen.unmarshalListFreeRootDomainsResponse;
42
55
  exports.unmarshalListFtpAccountsResponse = marshalling_gen.unmarshalListFtpAccountsResponse;
43
56
  exports.unmarshalListHostingsResponse = marshalling_gen.unmarshalListHostingsResponse;
44
57
  exports.unmarshalListMailAccountsResponse = marshalling_gen.unmarshalListMailAccountsResponse;
45
58
  exports.unmarshalListOffersResponse = marshalling_gen.unmarshalListOffersResponse;
59
+ exports.unmarshalListRecentProgressesResponse = marshalling_gen.unmarshalListRecentProgressesResponse;
46
60
  exports.unmarshalListWebsitesResponse = marshalling_gen.unmarshalListWebsitesResponse;
47
61
  exports.unmarshalMailAccount = marshalling_gen.unmarshalMailAccount;
62
+ exports.unmarshalProgress = marshalling_gen.unmarshalProgress;
48
63
  exports.unmarshalResetHostingPasswordResponse = marshalling_gen.unmarshalResetHostingPasswordResponse;
49
64
  exports.unmarshalResourceSummary = marshalling_gen.unmarshalResourceSummary;
65
+ exports.unmarshalRestoreBackupItemsResponse = marshalling_gen.unmarshalRestoreBackupItemsResponse;
66
+ exports.unmarshalRestoreBackupResponse = marshalling_gen.unmarshalRestoreBackupResponse;
50
67
  exports.unmarshalSearchDomainsResponse = marshalling_gen.unmarshalSearchDomainsResponse;
51
68
  exports.unmarshalSession = marshalling_gen.unmarshalSession;
52
69
  exports.ValidationRules = validationRules_gen;
@@ -1,5 +1,5 @@
1
- export { ControlPanelAPI, DatabaseAPI, DnsAPI, FtpAccountAPI, HostingAPI, MailAccountAPI, OfferAPI, WebsiteAPI, } from './api.gen';
2
- export * from './content.gen';
3
- export * from './marshalling.gen';
4
- export type { AutoConfigDomainDns, CheckUserOwnsDomainResponse, ControlPanel, ControlPanelApiListControlPanelsRequest, CreateDatabaseRequestUser, CreateHostingRequestDomainConfiguration, Database, DatabaseApiAssignDatabaseUserRequest, DatabaseApiChangeDatabaseUserPasswordRequest, DatabaseApiCreateDatabaseRequest, DatabaseApiCreateDatabaseUserRequest, DatabaseApiDeleteDatabaseRequest, DatabaseApiDeleteDatabaseUserRequest, DatabaseApiGetDatabaseRequest, DatabaseApiGetDatabaseUserRequest, DatabaseApiListDatabaseUsersRequest, DatabaseApiListDatabasesRequest, DatabaseApiUnassignDatabaseUserRequest, DatabaseUser, DnsApiCheckUserOwnsDomainRequest, DnsApiGetDomainDnsRecordsRequest, DnsApiGetDomainRequest, DnsApiSearchDomainsRequest, DnsApiSyncDomainDnsRecordsRequest, DnsRecord, DnsRecordStatus, DnsRecordType, DnsRecords, DnsRecordsStatus, Domain, DomainAction, DomainAvailability, DomainAvailabilityAction, DomainAvailabilityStatus, DomainDnsAction, DomainStatus, DomainZoneOwner, FtpAccount, FtpAccountApiChangeFtpAccountPasswordRequest, FtpAccountApiCreateFtpAccountRequest, FtpAccountApiListFtpAccountsRequest, FtpAccountApiRemoveFtpAccountRequest, Hosting, HostingApiCreateHostingRequest, HostingApiCreateSessionRequest, HostingApiDeleteHostingRequest, HostingApiGetHostingRequest, HostingApiGetResourceSummaryRequest, HostingApiListHostingsRequest, HostingApiResetHostingPasswordRequest, HostingApiUpdateHostingRequest, HostingStatus, HostingSummary, HostingUser, ListControlPanelsResponse, ListDatabaseUsersRequestOrderBy, ListDatabaseUsersResponse, ListDatabasesRequestOrderBy, ListDatabasesResponse, ListFtpAccountsRequestOrderBy, ListFtpAccountsResponse, ListHostingsRequestOrderBy, ListHostingsResponse, ListMailAccountsRequestOrderBy, ListMailAccountsResponse, ListOffersRequestOrderBy, ListOffersResponse, ListWebsitesRequestOrderBy, ListWebsitesResponse, MailAccount, MailAccountApiChangeMailAccountPasswordRequest, MailAccountApiCreateMailAccountRequest, MailAccountApiListMailAccountsRequest, MailAccountApiRemoveMailAccountRequest, Nameserver, NameserverStatus, Offer, OfferApiListOffersRequest, OfferOption, OfferOptionName, OfferOptionRequest, OfferOptionWarning, Platform, PlatformControlPanel, PlatformControlPanelUrls, PlatformPlatformGroup, ResetHostingPasswordResponse, ResourceSummary, SearchDomainsResponse, Session, SyncDomainDnsRecordsRequestRecord, Website, WebsiteApiListWebsitesRequest, } from './types.gen';
5
- export * as ValidationRules from './validation-rules.gen';
1
+ export { BackupAPI, ControlPanelAPI, DatabaseAPI, DnsAPI, FreeDomainAPI, FtpAccountAPI, HostingAPI, MailAccountAPI, OfferAPI, WebsiteAPI, } from './api.gen.js';
2
+ export * from './content.gen.js';
3
+ export * from './marshalling.gen.js';
4
+ export type { AutoConfigDomainDns, Backup, BackupApiGetBackupRequest, BackupApiGetProgressRequest, BackupApiListBackupItemsRequest, BackupApiListBackupsRequest, BackupApiListRecentProgressesRequest, BackupApiRestoreBackupItemsRequest, BackupApiRestoreBackupRequest, BackupItem, BackupItemGroup, BackupItemType, BackupStatus, CheckFreeDomainAvailabilityResponse, CheckFreeDomainAvailabilityResponseUnavailableReason, CheckUserOwnsDomainResponse, ControlPanel, ControlPanelApiListControlPanelsRequest, CreateDatabaseRequestUser, CreateHostingRequestDomainConfiguration, Database, DatabaseApiAssignDatabaseUserRequest, DatabaseApiChangeDatabaseUserPasswordRequest, DatabaseApiCreateDatabaseRequest, DatabaseApiCreateDatabaseUserRequest, DatabaseApiDeleteDatabaseRequest, DatabaseApiDeleteDatabaseUserRequest, DatabaseApiGetDatabaseRequest, DatabaseApiGetDatabaseUserRequest, DatabaseApiListDatabaseUsersRequest, DatabaseApiListDatabasesRequest, DatabaseApiUnassignDatabaseUserRequest, DatabaseUser, DnsApiCheckUserOwnsDomainRequest, DnsApiGetDomainDnsRecordsRequest, DnsApiGetDomainRequest, DnsApiSearchDomainsRequest, DnsApiSyncDomainDnsRecordsRequest, DnsRecord, DnsRecordStatus, DnsRecordType, DnsRecords, DnsRecordsStatus, Domain, DomainAction, DomainAvailability, DomainAvailabilityAction, DomainAvailabilityStatus, DomainDnsAction, DomainStatus, DomainZoneOwner, FreeDomain, FreeDomainApiCheckFreeDomainAvailabilityRequest, FreeDomainApiListFreeRootDomainsRequest, FtpAccount, FtpAccountApiChangeFtpAccountPasswordRequest, FtpAccountApiCreateFtpAccountRequest, FtpAccountApiListFtpAccountsRequest, FtpAccountApiRemoveFtpAccountRequest, Hosting, HostingApiAddCustomDomainRequest, HostingApiCreateHostingRequest, HostingApiCreateSessionRequest, HostingApiDeleteHostingRequest, HostingApiGetHostingRequest, HostingApiGetResourceSummaryRequest, HostingApiListHostingsRequest, HostingApiRemoveCustomDomainRequest, HostingApiResetHostingPasswordRequest, HostingApiUpdateHostingRequest, HostingDomain, HostingDomainCustomDomain, HostingStatus, HostingSummary, HostingUser, ListBackupItemsResponse, ListBackupsRequestOrderBy, ListBackupsResponse, ListControlPanelsResponse, ListDatabaseUsersRequestOrderBy, ListDatabaseUsersResponse, ListDatabasesRequestOrderBy, ListDatabasesResponse, ListFreeRootDomainsResponse, ListFtpAccountsRequestOrderBy, ListFtpAccountsResponse, ListHostingsRequestOrderBy, ListHostingsResponse, ListMailAccountsRequestOrderBy, ListMailAccountsResponse, ListOffersRequestOrderBy, ListOffersResponse, ListRecentProgressesResponse, ListWebsitesRequestOrderBy, ListWebsitesResponse, MailAccount, MailAccountApiChangeMailAccountPasswordRequest, MailAccountApiCreateMailAccountRequest, MailAccountApiListMailAccountsRequest, MailAccountApiRemoveMailAccountRequest, Nameserver, NameserverStatus, Offer, OfferApiListOffersRequest, OfferOption, OfferOptionName, OfferOptionRequest, OfferOptionWarning, Platform, PlatformControlPanel, PlatformControlPanelUrls, PlatformPlatformGroup, Progress, ProgressStatus, ProgressSummary, ResetHostingPasswordResponse, ResourceSummary, RestoreBackupItemsResponse, RestoreBackupResponse, SearchDomainsResponse, Session, SyncDomainDnsRecordsRequestRecord, Website, WebsiteApiListWebsitesRequest, } from './types.gen.js';
5
+ export * as ValidationRules from './validation-rules.gen.js';
@@ -1,13 +1,16 @@
1
- import { ControlPanelAPI, DatabaseAPI, DnsAPI, FtpAccountAPI, HostingAPI, MailAccountAPI, OfferAPI, WebsiteAPI } from "./api.gen.js";
2
- import { DOMAIN_AVAILABILITY_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, HOSTING_TRANSIENT_STATUSES } from "./content.gen.js";
3
- import { marshalDatabaseApiAssignDatabaseUserRequest, marshalDatabaseApiChangeDatabaseUserPasswordRequest, marshalDatabaseApiCreateDatabaseRequest, marshalDatabaseApiCreateDatabaseUserRequest, marshalDatabaseApiUnassignDatabaseUserRequest, marshalDnsApiCheckUserOwnsDomainRequest, marshalDnsApiSyncDomainDnsRecordsRequest, marshalFtpAccountApiChangeFtpAccountPasswordRequest, marshalFtpAccountApiCreateFtpAccountRequest, marshalHostingApiCreateHostingRequest, marshalHostingApiUpdateHostingRequest, marshalMailAccountApiChangeMailAccountPasswordRequest, marshalMailAccountApiCreateMailAccountRequest, marshalMailAccountApiRemoveMailAccountRequest, unmarshalCheckUserOwnsDomainResponse, unmarshalDatabase, unmarshalDatabaseUser, unmarshalDnsRecords, unmarshalDomain, unmarshalFtpAccount, unmarshalHosting, unmarshalListControlPanelsResponse, unmarshalListDatabaseUsersResponse, unmarshalListDatabasesResponse, unmarshalListFtpAccountsResponse, unmarshalListHostingsResponse, unmarshalListMailAccountsResponse, unmarshalListOffersResponse, unmarshalListWebsitesResponse, unmarshalMailAccount, unmarshalResetHostingPasswordResponse, unmarshalResourceSummary, unmarshalSearchDomainsResponse, unmarshalSession } from "./marshalling.gen.js";
1
+ import { BackupAPI, ControlPanelAPI, DatabaseAPI, DnsAPI, FreeDomainAPI, FtpAccountAPI, HostingAPI, MailAccountAPI, OfferAPI, WebsiteAPI } from "./api.gen.js";
2
+ import { BACKUP_TRANSIENT_STATUSES, DOMAIN_AVAILABILITY_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, HOSTING_TRANSIENT_STATUSES } from "./content.gen.js";
3
+ import { marshalBackupApiRestoreBackupItemsRequest, marshalDatabaseApiAssignDatabaseUserRequest, marshalDatabaseApiChangeDatabaseUserPasswordRequest, marshalDatabaseApiCreateDatabaseRequest, marshalDatabaseApiCreateDatabaseUserRequest, marshalDatabaseApiUnassignDatabaseUserRequest, marshalDnsApiCheckUserOwnsDomainRequest, marshalDnsApiSyncDomainDnsRecordsRequest, marshalFreeDomainApiCheckFreeDomainAvailabilityRequest, marshalFtpAccountApiChangeFtpAccountPasswordRequest, marshalFtpAccountApiCreateFtpAccountRequest, marshalHostingApiAddCustomDomainRequest, marshalHostingApiCreateHostingRequest, marshalHostingApiRemoveCustomDomainRequest, marshalHostingApiUpdateHostingRequest, marshalMailAccountApiChangeMailAccountPasswordRequest, marshalMailAccountApiCreateMailAccountRequest, marshalMailAccountApiRemoveMailAccountRequest, unmarshalBackup, unmarshalCheckFreeDomainAvailabilityResponse, unmarshalCheckUserOwnsDomainResponse, unmarshalDatabase, unmarshalDatabaseUser, unmarshalDnsRecords, unmarshalDomain, unmarshalFtpAccount, unmarshalHosting, unmarshalHostingSummary, unmarshalListBackupItemsResponse, unmarshalListBackupsResponse, unmarshalListControlPanelsResponse, unmarshalListDatabaseUsersResponse, unmarshalListDatabasesResponse, unmarshalListFreeRootDomainsResponse, unmarshalListFtpAccountsResponse, unmarshalListHostingsResponse, unmarshalListMailAccountsResponse, unmarshalListOffersResponse, unmarshalListRecentProgressesResponse, unmarshalListWebsitesResponse, unmarshalMailAccount, unmarshalProgress, unmarshalResetHostingPasswordResponse, unmarshalResourceSummary, unmarshalRestoreBackupItemsResponse, unmarshalRestoreBackupResponse, unmarshalSearchDomainsResponse, unmarshalSession } from "./marshalling.gen.js";
4
4
  import * as validationRules_gen from "./validation-rules.gen.js";
5
5
  export {
6
+ BACKUP_TRANSIENT_STATUSES,
7
+ BackupAPI,
6
8
  ControlPanelAPI,
7
9
  DOMAIN_AVAILABILITY_TRANSIENT_STATUSES,
8
10
  DOMAIN_TRANSIENT_STATUSES,
9
11
  DatabaseAPI,
10
12
  DnsAPI,
13
+ FreeDomainAPI,
11
14
  FtpAccountAPI,
12
15
  HOSTING_TRANSIENT_STATUSES,
13
16
  HostingAPI,
@@ -15,6 +18,7 @@ export {
15
18
  OfferAPI,
16
19
  validationRules_gen as ValidationRules,
17
20
  WebsiteAPI,
21
+ marshalBackupApiRestoreBackupItemsRequest,
18
22
  marshalDatabaseApiAssignDatabaseUserRequest,
19
23
  marshalDatabaseApiChangeDatabaseUserPasswordRequest,
20
24
  marshalDatabaseApiCreateDatabaseRequest,
@@ -22,13 +26,18 @@ export {
22
26
  marshalDatabaseApiUnassignDatabaseUserRequest,
23
27
  marshalDnsApiCheckUserOwnsDomainRequest,
24
28
  marshalDnsApiSyncDomainDnsRecordsRequest,
29
+ marshalFreeDomainApiCheckFreeDomainAvailabilityRequest,
25
30
  marshalFtpAccountApiChangeFtpAccountPasswordRequest,
26
31
  marshalFtpAccountApiCreateFtpAccountRequest,
32
+ marshalHostingApiAddCustomDomainRequest,
27
33
  marshalHostingApiCreateHostingRequest,
34
+ marshalHostingApiRemoveCustomDomainRequest,
28
35
  marshalHostingApiUpdateHostingRequest,
29
36
  marshalMailAccountApiChangeMailAccountPasswordRequest,
30
37
  marshalMailAccountApiCreateMailAccountRequest,
31
38
  marshalMailAccountApiRemoveMailAccountRequest,
39
+ unmarshalBackup,
40
+ unmarshalCheckFreeDomainAvailabilityResponse,
32
41
  unmarshalCheckUserOwnsDomainResponse,
33
42
  unmarshalDatabase,
34
43
  unmarshalDatabaseUser,
@@ -36,17 +45,25 @@ export {
36
45
  unmarshalDomain,
37
46
  unmarshalFtpAccount,
38
47
  unmarshalHosting,
48
+ unmarshalHostingSummary,
49
+ unmarshalListBackupItemsResponse,
50
+ unmarshalListBackupsResponse,
39
51
  unmarshalListControlPanelsResponse,
40
52
  unmarshalListDatabaseUsersResponse,
41
53
  unmarshalListDatabasesResponse,
54
+ unmarshalListFreeRootDomainsResponse,
42
55
  unmarshalListFtpAccountsResponse,
43
56
  unmarshalListHostingsResponse,
44
57
  unmarshalListMailAccountsResponse,
45
58
  unmarshalListOffersResponse,
59
+ unmarshalListRecentProgressesResponse,
46
60
  unmarshalListWebsitesResponse,
47
61
  unmarshalMailAccount,
62
+ unmarshalProgress,
48
63
  unmarshalResetHostingPasswordResponse,
49
64
  unmarshalResourceSummary,
65
+ unmarshalRestoreBackupItemsResponse,
66
+ unmarshalRestoreBackupResponse,
50
67
  unmarshalSearchDomainsResponse,
51
68
  unmarshalSession
52
69
  };