@scaleway/sdk-webhosting 1.1.3 → 1.2.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.
@@ -6,6 +6,114 @@ const marshalling_gen = require("./marshalling.gen.cjs");
6
6
  const jsonContentHeaders = {
7
7
  "Content-Type": "application/json; charset=utf-8"
8
8
  };
9
+ class BackupAPI extends sdkClient.API {
10
+ /**
11
+ * Locality of this API.
12
+ * type ∈ {'zone','region','global','unspecified'}
13
+ */
14
+ static LOCALITY = sdkClient.toApiLocality({
15
+ regions: ["fr-par", "nl-ams", "pl-waw"]
16
+ });
17
+ pageOfListBackups = (request) => this.client.fetch(
18
+ {
19
+ method: "GET",
20
+ path: `/webhosting/v1/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${sdkClient.validatePathParam("hostingId", request.hostingId)}/backups`,
21
+ urlParams: sdkClient.urlParams(
22
+ ["order_by", request.orderBy],
23
+ ["page", request.page],
24
+ [
25
+ "page_size",
26
+ request.pageSize ?? this.client.settings.defaultPageSize
27
+ ]
28
+ )
29
+ },
30
+ marshalling_gen.unmarshalListBackupsResponse
31
+ );
32
+ /**
33
+ * List all available backups for a hosting account.. List all available backups for a hosting account.
34
+ *
35
+ * @param request - The request {@link BackupApiListBackupsRequest}
36
+ * @returns A Promise of ListBackupsResponse
37
+ */
38
+ listBackups = (request) => sdkClient.enrichForPagination("backups", this.pageOfListBackups, request);
39
+ /**
40
+ * Get info about a backup specified by the backup ID.. Get info about a backup specified by the backup ID.
41
+ *
42
+ * @param request - The request {@link BackupApiGetBackupRequest}
43
+ * @returns A Promise of Backup
44
+ */
45
+ getBackup = (request) => this.client.fetch(
46
+ {
47
+ method: "GET",
48
+ path: `/webhosting/v1/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${sdkClient.validatePathParam("hostingId", request.hostingId)}/backups/${sdkClient.validatePathParam("backupId", request.backupId)}`
49
+ },
50
+ marshalling_gen.unmarshalBackup
51
+ );
52
+ /**
53
+ * Waits for {@link Backup} to be in a final state.
54
+ *
55
+ * @param request - The request {@link BackupApiGetBackupRequest}
56
+ * @param options - The waiting options
57
+ * @returns A Promise of Backup
58
+ */
59
+ waitForBackup = (request, options) => sdkClient.waitForResource(
60
+ options?.stop ?? ((res) => Promise.resolve(
61
+ !content_gen.BACKUP_TRANSIENT_STATUSES.includes(res.status)
62
+ )),
63
+ this.getBackup,
64
+ request,
65
+ options
66
+ );
67
+ /**
68
+ * Restore an entire backup to your hosting environment.. Restore an entire backup to your hosting environment.
69
+ *
70
+ * @param request - The request {@link BackupApiRestoreBackupRequest}
71
+ * @returns A Promise of RestoreBackupResponse
72
+ */
73
+ restoreBackup = (request) => this.client.fetch(
74
+ {
75
+ body: "{}",
76
+ headers: jsonContentHeaders,
77
+ method: "POST",
78
+ path: `/webhosting/v1/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${sdkClient.validatePathParam("hostingId", request.hostingId)}/backups/${sdkClient.validatePathParam("backupId", request.backupId)}/restore`
79
+ },
80
+ marshalling_gen.unmarshalRestoreBackupResponse
81
+ );
82
+ /**
83
+ * List items within a specific backup, grouped by type.. List items within a specific backup, grouped by type.
84
+ *
85
+ * @param request - The request {@link BackupApiListBackupItemsRequest}
86
+ * @returns A Promise of ListBackupItemsResponse
87
+ */
88
+ listBackupItems = (request) => this.client.fetch(
89
+ {
90
+ method: "GET",
91
+ path: `/webhosting/v1/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${sdkClient.validatePathParam("hostingId", request.hostingId)}/backup-items`,
92
+ urlParams: sdkClient.urlParams(["backup_id", request.backupId])
93
+ },
94
+ marshalling_gen.unmarshalListBackupItemsResponse
95
+ );
96
+ /**
97
+ * Restore specific items from a backup (e.g., a database or mailbox).. Restore specific items from a backup (e.g., a database or mailbox).
98
+ *
99
+ * @param request - The request {@link BackupApiRestoreBackupItemsRequest}
100
+ * @returns A Promise of RestoreBackupItemsResponse
101
+ */
102
+ restoreBackupItems = (request) => this.client.fetch(
103
+ {
104
+ body: JSON.stringify(
105
+ marshalling_gen.marshalBackupApiRestoreBackupItemsRequest(
106
+ request,
107
+ this.client.settings
108
+ )
109
+ ),
110
+ headers: jsonContentHeaders,
111
+ method: "POST",
112
+ path: `/webhosting/v1/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${sdkClient.validatePathParam("hostingId", request.hostingId)}/restore-backup-items`
113
+ },
114
+ marshalling_gen.unmarshalRestoreBackupItemsResponse
115
+ );
116
+ }
9
117
  class ControlPanelAPI extends sdkClient.API {
10
118
  /**
11
119
  * Locality of this API.
@@ -265,6 +373,7 @@ class DnsAPI extends sdkClient.API {
265
373
  /**
266
374
  * Check whether you own this domain or not.. Check whether you own this domain or not.
267
375
  *
376
+ * @deprecated
268
377
  * @param request - The request {@link DnsApiCheckUserOwnsDomainRequest}
269
378
  * @returns A Promise of CheckUserOwnsDomainResponse
270
379
  */
@@ -429,6 +538,7 @@ class HostingAPI extends sdkClient.API {
429
538
  ],
430
539
  ["project_id", request.projectId],
431
540
  ["statuses", request.statuses],
541
+ ["subdomain", request.subdomain],
432
542
  ["tags", request.tags]
433
543
  )
434
544
  },
@@ -542,6 +652,41 @@ class HostingAPI extends sdkClient.API {
542
652
  },
543
653
  marshalling_gen.unmarshalResourceSummary
544
654
  );
655
+ /**
656
+ * Attach a custom domain to a webhosting.
657
+ *
658
+ * @param request - The request {@link HostingApiAddCustomDomainRequest}
659
+ * @returns A Promise of HostingSummary
660
+ */
661
+ addCustomDomain = (request) => this.client.fetch(
662
+ {
663
+ body: JSON.stringify(
664
+ marshalling_gen.marshalHostingApiAddCustomDomainRequest(
665
+ request,
666
+ this.client.settings
667
+ )
668
+ ),
669
+ headers: jsonContentHeaders,
670
+ method: "POST",
671
+ path: `/webhosting/v1/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${sdkClient.validatePathParam("hostingId", request.hostingId)}/add-custom-domain`
672
+ },
673
+ marshalling_gen.unmarshalHostingSummary
674
+ );
675
+ /**
676
+ * Detach a custom domain from a webhosting.
677
+ *
678
+ * @param request - The request {@link HostingApiRemoveCustomDomainRequest}
679
+ * @returns A Promise of HostingSummary
680
+ */
681
+ removeCustomDomain = (request) => this.client.fetch(
682
+ {
683
+ body: "{}",
684
+ headers: jsonContentHeaders,
685
+ method: "POST",
686
+ path: `/webhosting/v1/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${sdkClient.validatePathParam("hostingId", request.hostingId)}/remove-custom-domain`
687
+ },
688
+ marshalling_gen.unmarshalHostingSummary
689
+ );
545
690
  }
546
691
  class FtpAccountAPI extends sdkClient.API {
547
692
  /**
@@ -745,6 +890,7 @@ class WebsiteAPI extends sdkClient.API {
745
890
  */
746
891
  listWebsites = (request) => sdkClient.enrichForPagination("websites", this.pageOfListWebsites, request);
747
892
  }
893
+ exports.BackupAPI = BackupAPI;
748
894
  exports.ControlPanelAPI = ControlPanelAPI;
749
895
  exports.DatabaseAPI = DatabaseAPI;
750
896
  exports.DnsAPI = DnsAPI;
@@ -1,6 +1,65 @@
1
- import { API as ParentAPI } from '@scaleway/sdk-client';
2
1
  import type { ApiLocality, WaitForOptions } from '@scaleway/sdk-client';
3
- import type { CheckUserOwnsDomainResponse, ControlPanelApiListControlPanelsRequest, Database, DatabaseApiAssignDatabaseUserRequest, DatabaseApiChangeDatabaseUserPasswordRequest, DatabaseApiCreateDatabaseRequest, DatabaseApiCreateDatabaseUserRequest, DatabaseApiDeleteDatabaseRequest, DatabaseApiDeleteDatabaseUserRequest, DatabaseApiGetDatabaseRequest, DatabaseApiGetDatabaseUserRequest, DatabaseApiListDatabaseUsersRequest, DatabaseApiListDatabasesRequest, DatabaseApiUnassignDatabaseUserRequest, DatabaseUser, DnsApiCheckUserOwnsDomainRequest, DnsApiGetDomainDnsRecordsRequest, DnsApiGetDomainRequest, DnsApiSearchDomainsRequest, DnsApiSyncDomainDnsRecordsRequest, DnsRecords, Domain, FtpAccount, FtpAccountApiChangeFtpAccountPasswordRequest, FtpAccountApiCreateFtpAccountRequest, FtpAccountApiListFtpAccountsRequest, FtpAccountApiRemoveFtpAccountRequest, Hosting, HostingApiCreateHostingRequest, HostingApiCreateSessionRequest, HostingApiDeleteHostingRequest, HostingApiGetHostingRequest, HostingApiGetResourceSummaryRequest, HostingApiListHostingsRequest, HostingApiResetHostingPasswordRequest, HostingApiUpdateHostingRequest, ListControlPanelsResponse, ListDatabaseUsersResponse, ListDatabasesResponse, ListFtpAccountsResponse, ListHostingsResponse, ListMailAccountsResponse, ListOffersResponse, ListWebsitesResponse, MailAccount, MailAccountApiChangeMailAccountPasswordRequest, MailAccountApiCreateMailAccountRequest, MailAccountApiListMailAccountsRequest, MailAccountApiRemoveMailAccountRequest, OfferApiListOffersRequest, ResetHostingPasswordResponse, ResourceSummary, SearchDomainsResponse, Session, WebsiteApiListWebsitesRequest } from './types.gen';
2
+ import { API as ParentAPI } from '@scaleway/sdk-client';
3
+ import type { Backup, BackupApiGetBackupRequest, BackupApiListBackupItemsRequest, BackupApiListBackupsRequest, BackupApiRestoreBackupItemsRequest, BackupApiRestoreBackupRequest, CheckUserOwnsDomainResponse, ControlPanelApiListControlPanelsRequest, Database, DatabaseApiAssignDatabaseUserRequest, DatabaseApiChangeDatabaseUserPasswordRequest, DatabaseApiCreateDatabaseRequest, DatabaseApiCreateDatabaseUserRequest, DatabaseApiDeleteDatabaseRequest, DatabaseApiDeleteDatabaseUserRequest, DatabaseApiGetDatabaseRequest, DatabaseApiGetDatabaseUserRequest, DatabaseApiListDatabasesRequest, DatabaseApiListDatabaseUsersRequest, DatabaseApiUnassignDatabaseUserRequest, DatabaseUser, DnsApiCheckUserOwnsDomainRequest, DnsApiGetDomainDnsRecordsRequest, DnsApiGetDomainRequest, DnsApiSearchDomainsRequest, DnsApiSyncDomainDnsRecordsRequest, DnsRecords, Domain, FtpAccount, FtpAccountApiChangeFtpAccountPasswordRequest, FtpAccountApiCreateFtpAccountRequest, FtpAccountApiListFtpAccountsRequest, FtpAccountApiRemoveFtpAccountRequest, Hosting, HostingApiAddCustomDomainRequest, HostingApiCreateHostingRequest, HostingApiCreateSessionRequest, HostingApiDeleteHostingRequest, HostingApiGetHostingRequest, HostingApiGetResourceSummaryRequest, HostingApiListHostingsRequest, HostingApiRemoveCustomDomainRequest, HostingApiResetHostingPasswordRequest, HostingApiUpdateHostingRequest, HostingSummary, ListBackupItemsResponse, ListBackupsResponse, ListControlPanelsResponse, ListDatabasesResponse, ListDatabaseUsersResponse, ListFtpAccountsResponse, ListHostingsResponse, ListMailAccountsResponse, ListOffersResponse, ListWebsitesResponse, MailAccount, MailAccountApiChangeMailAccountPasswordRequest, MailAccountApiCreateMailAccountRequest, MailAccountApiListMailAccountsRequest, MailAccountApiRemoveMailAccountRequest, OfferApiListOffersRequest, ResetHostingPasswordResponse, ResourceSummary, RestoreBackupItemsResponse, RestoreBackupResponse, SearchDomainsResponse, Session, WebsiteApiListWebsitesRequest } from './types.gen';
4
+ /**
5
+ * Web Hosting backup API.
6
+
7
+ This API allows you to list and restore backups for your cPanel and WordPress Web Hosting service.
8
+ */
9
+ export declare class BackupAPI extends ParentAPI {
10
+ /**
11
+ * Locality of this API.
12
+ * type ∈ {'zone','region','global','unspecified'}
13
+ */
14
+ static readonly LOCALITY: ApiLocality;
15
+ protected pageOfListBackups: (request: Readonly<BackupApiListBackupsRequest>) => Promise<ListBackupsResponse>;
16
+ /**
17
+ * List all available backups for a hosting account.. List all available backups for a hosting account.
18
+ *
19
+ * @param request - The request {@link BackupApiListBackupsRequest}
20
+ * @returns A Promise of ListBackupsResponse
21
+ */
22
+ listBackups: (request: Readonly<BackupApiListBackupsRequest>) => Promise<ListBackupsResponse> & {
23
+ all: () => Promise<Backup[]>;
24
+ [Symbol.asyncIterator]: () => AsyncGenerator<Backup[], void, void>;
25
+ };
26
+ /**
27
+ * Get info about a backup specified by the backup ID.. Get info about a backup specified by the backup ID.
28
+ *
29
+ * @param request - The request {@link BackupApiGetBackupRequest}
30
+ * @returns A Promise of Backup
31
+ */
32
+ getBackup: (request: Readonly<BackupApiGetBackupRequest>) => Promise<Backup>;
33
+ /**
34
+ * Waits for {@link Backup} to be in a final state.
35
+ *
36
+ * @param request - The request {@link BackupApiGetBackupRequest}
37
+ * @param options - The waiting options
38
+ * @returns A Promise of Backup
39
+ */
40
+ waitForBackup: (request: Readonly<BackupApiGetBackupRequest>, options?: Readonly<WaitForOptions<Backup>>) => Promise<Backup>;
41
+ /**
42
+ * Restore an entire backup to your hosting environment.. Restore an entire backup to your hosting environment.
43
+ *
44
+ * @param request - The request {@link BackupApiRestoreBackupRequest}
45
+ * @returns A Promise of RestoreBackupResponse
46
+ */
47
+ restoreBackup: (request: Readonly<BackupApiRestoreBackupRequest>) => Promise<RestoreBackupResponse>;
48
+ /**
49
+ * List items within a specific backup, grouped by type.. List items within a specific backup, grouped by type.
50
+ *
51
+ * @param request - The request {@link BackupApiListBackupItemsRequest}
52
+ * @returns A Promise of ListBackupItemsResponse
53
+ */
54
+ listBackupItems: (request: Readonly<BackupApiListBackupItemsRequest>) => Promise<ListBackupItemsResponse>;
55
+ /**
56
+ * Restore specific items from a backup (e.g., a database or mailbox).. Restore specific items from a backup (e.g., a database or mailbox).
57
+ *
58
+ * @param request - The request {@link BackupApiRestoreBackupItemsRequest}
59
+ * @returns A Promise of RestoreBackupItemsResponse
60
+ */
61
+ restoreBackupItems: (request: Readonly<BackupApiRestoreBackupItemsRequest>) => Promise<RestoreBackupItemsResponse>;
62
+ }
4
63
  /**
5
64
  * Web Hosting Control Panel API.
6
65
 
@@ -142,6 +201,7 @@ export declare class DnsAPI extends ParentAPI {
142
201
  /**
143
202
  * Check whether you own this domain or not.. Check whether you own this domain or not.
144
203
  *
204
+ * @deprecated
145
205
  * @param request - The request {@link DnsApiCheckUserOwnsDomainRequest}
146
206
  * @returns A Promise of CheckUserOwnsDomainResponse
147
207
  */
@@ -225,8 +285,8 @@ export declare class HostingAPI extends ParentAPI {
225
285
  * @returns A Promise of ListHostingsResponse
226
286
  */
227
287
  listHostings: (request?: Readonly<HostingApiListHostingsRequest>) => Promise<ListHostingsResponse> & {
228
- all: () => Promise<import("./types.gen").HostingSummary[]>;
229
- [Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen").HostingSummary[], void, void>;
288
+ all: () => Promise<HostingSummary[]>;
289
+ [Symbol.asyncIterator]: () => AsyncGenerator<HostingSummary[], void, void>;
230
290
  };
231
291
  /**
232
292
  * Get a Web Hosting plan. Get the details of one of your existing Web Hosting plans, specified by its `hosting_id`.
@@ -278,6 +338,20 @@ export declare class HostingAPI extends ParentAPI {
278
338
  * @returns A Promise of ResourceSummary
279
339
  */
280
340
  getResourceSummary: (request: Readonly<HostingApiGetResourceSummaryRequest>) => Promise<ResourceSummary>;
341
+ /**
342
+ * Attach a custom domain to a webhosting.
343
+ *
344
+ * @param request - The request {@link HostingApiAddCustomDomainRequest}
345
+ * @returns A Promise of HostingSummary
346
+ */
347
+ addCustomDomain: (request: Readonly<HostingApiAddCustomDomainRequest>) => Promise<HostingSummary>;
348
+ /**
349
+ * Detach a custom domain from a webhosting.
350
+ *
351
+ * @param request - The request {@link HostingApiRemoveCustomDomainRequest}
352
+ * @returns A Promise of HostingSummary
353
+ */
354
+ removeCustomDomain: (request: Readonly<HostingApiRemoveCustomDomainRequest>) => Promise<HostingSummary>;
281
355
  }
282
356
  /**
283
357
  * Web Hosting FTP Account API.
@@ -1,9 +1,117 @@
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, 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, 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
+ }
7
115
  class ControlPanelAPI extends API {
8
116
  /**
9
117
  * Locality of this API.
@@ -263,6 +371,7 @@ class DnsAPI extends API {
263
371
  /**
264
372
  * Check whether you own this domain or not.. Check whether you own this domain or not.
265
373
  *
374
+ * @deprecated
266
375
  * @param request - The request {@link DnsApiCheckUserOwnsDomainRequest}
267
376
  * @returns A Promise of CheckUserOwnsDomainResponse
268
377
  */
@@ -427,6 +536,7 @@ class HostingAPI extends API {
427
536
  ],
428
537
  ["project_id", request.projectId],
429
538
  ["statuses", request.statuses],
539
+ ["subdomain", request.subdomain],
430
540
  ["tags", request.tags]
431
541
  )
432
542
  },
@@ -540,6 +650,41 @@ class HostingAPI extends API {
540
650
  },
541
651
  unmarshalResourceSummary
542
652
  );
653
+ /**
654
+ * Attach a custom domain to a webhosting.
655
+ *
656
+ * @param request - The request {@link HostingApiAddCustomDomainRequest}
657
+ * @returns A Promise of HostingSummary
658
+ */
659
+ addCustomDomain = (request) => this.client.fetch(
660
+ {
661
+ body: JSON.stringify(
662
+ marshalHostingApiAddCustomDomainRequest(
663
+ request,
664
+ this.client.settings
665
+ )
666
+ ),
667
+ headers: jsonContentHeaders,
668
+ method: "POST",
669
+ path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/add-custom-domain`
670
+ },
671
+ unmarshalHostingSummary
672
+ );
673
+ /**
674
+ * Detach a custom domain from a webhosting.
675
+ *
676
+ * @param request - The request {@link HostingApiRemoveCustomDomainRequest}
677
+ * @returns A Promise of HostingSummary
678
+ */
679
+ removeCustomDomain = (request) => this.client.fetch(
680
+ {
681
+ body: "{}",
682
+ headers: jsonContentHeaders,
683
+ method: "POST",
684
+ path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/remove-custom-domain`
685
+ },
686
+ unmarshalHostingSummary
687
+ );
543
688
  }
544
689
  class FtpAccountAPI extends API {
545
690
  /**
@@ -744,6 +889,7 @@ class WebsiteAPI extends API {
744
889
  listWebsites = (request) => enrichForPagination("websites", this.pageOfListWebsites, request);
745
890
  }
746
891
  export {
892
+ BackupAPI,
747
893
  ControlPanelAPI,
748
894
  DatabaseAPI,
749
895
  DnsAPI,
@@ -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';
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,6 +4,7 @@ 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;
@@ -12,9 +13,11 @@ exports.HostingAPI = api_gen.HostingAPI;
12
13
  exports.MailAccountAPI = api_gen.MailAccountAPI;
13
14
  exports.OfferAPI = api_gen.OfferAPI;
14
15
  exports.WebsiteAPI = api_gen.WebsiteAPI;
16
+ exports.BACKUP_TRANSIENT_STATUSES = content_gen.BACKUP_TRANSIENT_STATUSES;
15
17
  exports.DOMAIN_AVAILABILITY_TRANSIENT_STATUSES = content_gen.DOMAIN_AVAILABILITY_TRANSIENT_STATUSES;
16
18
  exports.DOMAIN_TRANSIENT_STATUSES = content_gen.DOMAIN_TRANSIENT_STATUSES;
17
19
  exports.HOSTING_TRANSIENT_STATUSES = content_gen.HOSTING_TRANSIENT_STATUSES;
20
+ exports.marshalBackupApiRestoreBackupItemsRequest = marshalling_gen.marshalBackupApiRestoreBackupItemsRequest;
18
21
  exports.marshalDatabaseApiAssignDatabaseUserRequest = marshalling_gen.marshalDatabaseApiAssignDatabaseUserRequest;
19
22
  exports.marshalDatabaseApiChangeDatabaseUserPasswordRequest = marshalling_gen.marshalDatabaseApiChangeDatabaseUserPasswordRequest;
20
23
  exports.marshalDatabaseApiCreateDatabaseRequest = marshalling_gen.marshalDatabaseApiCreateDatabaseRequest;
@@ -24,11 +27,13 @@ exports.marshalDnsApiCheckUserOwnsDomainRequest = marshalling_gen.marshalDnsApiC
24
27
  exports.marshalDnsApiSyncDomainDnsRecordsRequest = marshalling_gen.marshalDnsApiSyncDomainDnsRecordsRequest;
25
28
  exports.marshalFtpAccountApiChangeFtpAccountPasswordRequest = marshalling_gen.marshalFtpAccountApiChangeFtpAccountPasswordRequest;
26
29
  exports.marshalFtpAccountApiCreateFtpAccountRequest = marshalling_gen.marshalFtpAccountApiCreateFtpAccountRequest;
30
+ exports.marshalHostingApiAddCustomDomainRequest = marshalling_gen.marshalHostingApiAddCustomDomainRequest;
27
31
  exports.marshalHostingApiCreateHostingRequest = marshalling_gen.marshalHostingApiCreateHostingRequest;
28
32
  exports.marshalHostingApiUpdateHostingRequest = marshalling_gen.marshalHostingApiUpdateHostingRequest;
29
33
  exports.marshalMailAccountApiChangeMailAccountPasswordRequest = marshalling_gen.marshalMailAccountApiChangeMailAccountPasswordRequest;
30
34
  exports.marshalMailAccountApiCreateMailAccountRequest = marshalling_gen.marshalMailAccountApiCreateMailAccountRequest;
31
35
  exports.marshalMailAccountApiRemoveMailAccountRequest = marshalling_gen.marshalMailAccountApiRemoveMailAccountRequest;
36
+ exports.unmarshalBackup = marshalling_gen.unmarshalBackup;
32
37
  exports.unmarshalCheckUserOwnsDomainResponse = marshalling_gen.unmarshalCheckUserOwnsDomainResponse;
33
38
  exports.unmarshalDatabase = marshalling_gen.unmarshalDatabase;
34
39
  exports.unmarshalDatabaseUser = marshalling_gen.unmarshalDatabaseUser;
@@ -36,6 +41,9 @@ exports.unmarshalDnsRecords = marshalling_gen.unmarshalDnsRecords;
36
41
  exports.unmarshalDomain = marshalling_gen.unmarshalDomain;
37
42
  exports.unmarshalFtpAccount = marshalling_gen.unmarshalFtpAccount;
38
43
  exports.unmarshalHosting = marshalling_gen.unmarshalHosting;
44
+ exports.unmarshalHostingSummary = marshalling_gen.unmarshalHostingSummary;
45
+ exports.unmarshalListBackupItemsResponse = marshalling_gen.unmarshalListBackupItemsResponse;
46
+ exports.unmarshalListBackupsResponse = marshalling_gen.unmarshalListBackupsResponse;
39
47
  exports.unmarshalListControlPanelsResponse = marshalling_gen.unmarshalListControlPanelsResponse;
40
48
  exports.unmarshalListDatabaseUsersResponse = marshalling_gen.unmarshalListDatabaseUsersResponse;
41
49
  exports.unmarshalListDatabasesResponse = marshalling_gen.unmarshalListDatabasesResponse;
@@ -47,6 +55,8 @@ exports.unmarshalListWebsitesResponse = marshalling_gen.unmarshalListWebsitesRes
47
55
  exports.unmarshalMailAccount = marshalling_gen.unmarshalMailAccount;
48
56
  exports.unmarshalResetHostingPasswordResponse = marshalling_gen.unmarshalResetHostingPasswordResponse;
49
57
  exports.unmarshalResourceSummary = marshalling_gen.unmarshalResourceSummary;
58
+ exports.unmarshalRestoreBackupItemsResponse = marshalling_gen.unmarshalRestoreBackupItemsResponse;
59
+ exports.unmarshalRestoreBackupResponse = marshalling_gen.unmarshalRestoreBackupResponse;
50
60
  exports.unmarshalSearchDomainsResponse = marshalling_gen.unmarshalSearchDomainsResponse;
51
61
  exports.unmarshalSession = marshalling_gen.unmarshalSession;
52
62
  exports.ValidationRules = validationRules_gen;
@@ -1,5 +1,5 @@
1
- export { ControlPanelAPI, DatabaseAPI, DnsAPI, FtpAccountAPI, HostingAPI, MailAccountAPI, OfferAPI, WebsiteAPI, } from './api.gen';
1
+ export { BackupAPI, ControlPanelAPI, DatabaseAPI, DnsAPI, FtpAccountAPI, HostingAPI, MailAccountAPI, OfferAPI, WebsiteAPI, } from './api.gen';
2
2
  export * from './content.gen';
3
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';
4
+ export type { AutoConfigDomainDns, Backup, BackupApiGetBackupRequest, BackupApiListBackupItemsRequest, BackupApiListBackupsRequest, BackupApiRestoreBackupItemsRequest, BackupApiRestoreBackupRequest, BackupItem, BackupItemGroup, BackupItemType, BackupStatus, CheckUserOwnsDomainResponse, ControlPanel, ControlPanelApiListControlPanelsRequest, CreateDatabaseRequestUser, CreateHostingRequestDomainConfiguration, Database, DatabaseApiAssignDatabaseUserRequest, DatabaseApiChangeDatabaseUserPasswordRequest, DatabaseApiCreateDatabaseRequest, DatabaseApiCreateDatabaseUserRequest, DatabaseApiDeleteDatabaseRequest, DatabaseApiDeleteDatabaseUserRequest, DatabaseApiGetDatabaseRequest, DatabaseApiGetDatabaseUserRequest, DatabaseApiListDatabasesRequest, DatabaseApiListDatabaseUsersRequest, DatabaseApiUnassignDatabaseUserRequest, DatabaseUser, DnsApiCheckUserOwnsDomainRequest, DnsApiGetDomainDnsRecordsRequest, DnsApiGetDomainRequest, DnsApiSearchDomainsRequest, DnsApiSyncDomainDnsRecordsRequest, DnsRecord, DnsRecordStatus, DnsRecords, DnsRecordsStatus, DnsRecordType, Domain, DomainAction, DomainAvailability, DomainAvailabilityAction, DomainAvailabilityStatus, DomainDnsAction, DomainStatus, DomainZoneOwner, 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, ListDatabasesRequestOrderBy, ListDatabasesResponse, ListDatabaseUsersRequestOrderBy, ListDatabaseUsersResponse, 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, RestoreBackupItemsResponse, RestoreBackupResponse, SearchDomainsResponse, Session, SyncDomainDnsRecordsRequestRecord, Website, WebsiteApiListWebsitesRequest, } from './types.gen';
5
5
  export * as ValidationRules from './validation-rules.gen';
@@ -1,8 +1,10 @@
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, 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, marshalFtpAccountApiChangeFtpAccountPasswordRequest, marshalFtpAccountApiCreateFtpAccountRequest, marshalHostingApiAddCustomDomainRequest, marshalHostingApiCreateHostingRequest, marshalHostingApiUpdateHostingRequest, marshalMailAccountApiChangeMailAccountPasswordRequest, marshalMailAccountApiCreateMailAccountRequest, marshalMailAccountApiRemoveMailAccountRequest, unmarshalBackup, unmarshalCheckUserOwnsDomainResponse, unmarshalDatabase, unmarshalDatabaseUser, unmarshalDnsRecords, unmarshalDomain, unmarshalFtpAccount, unmarshalHosting, unmarshalHostingSummary, unmarshalListBackupItemsResponse, unmarshalListBackupsResponse, unmarshalListControlPanelsResponse, unmarshalListDatabaseUsersResponse, unmarshalListDatabasesResponse, unmarshalListFtpAccountsResponse, unmarshalListHostingsResponse, unmarshalListMailAccountsResponse, unmarshalListOffersResponse, unmarshalListWebsitesResponse, unmarshalMailAccount, 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,
@@ -15,6 +17,7 @@ export {
15
17
  OfferAPI,
16
18
  validationRules_gen as ValidationRules,
17
19
  WebsiteAPI,
20
+ marshalBackupApiRestoreBackupItemsRequest,
18
21
  marshalDatabaseApiAssignDatabaseUserRequest,
19
22
  marshalDatabaseApiChangeDatabaseUserPasswordRequest,
20
23
  marshalDatabaseApiCreateDatabaseRequest,
@@ -24,11 +27,13 @@ export {
24
27
  marshalDnsApiSyncDomainDnsRecordsRequest,
25
28
  marshalFtpAccountApiChangeFtpAccountPasswordRequest,
26
29
  marshalFtpAccountApiCreateFtpAccountRequest,
30
+ marshalHostingApiAddCustomDomainRequest,
27
31
  marshalHostingApiCreateHostingRequest,
28
32
  marshalHostingApiUpdateHostingRequest,
29
33
  marshalMailAccountApiChangeMailAccountPasswordRequest,
30
34
  marshalMailAccountApiCreateMailAccountRequest,
31
35
  marshalMailAccountApiRemoveMailAccountRequest,
36
+ unmarshalBackup,
32
37
  unmarshalCheckUserOwnsDomainResponse,
33
38
  unmarshalDatabase,
34
39
  unmarshalDatabaseUser,
@@ -36,6 +41,9 @@ export {
36
41
  unmarshalDomain,
37
42
  unmarshalFtpAccount,
38
43
  unmarshalHosting,
44
+ unmarshalHostingSummary,
45
+ unmarshalListBackupItemsResponse,
46
+ unmarshalListBackupsResponse,
39
47
  unmarshalListControlPanelsResponse,
40
48
  unmarshalListDatabaseUsersResponse,
41
49
  unmarshalListDatabasesResponse,
@@ -47,6 +55,8 @@ export {
47
55
  unmarshalMailAccount,
48
56
  unmarshalResetHostingPasswordResponse,
49
57
  unmarshalResourceSummary,
58
+ unmarshalRestoreBackupItemsResponse,
59
+ unmarshalRestoreBackupResponse,
50
60
  unmarshalSearchDomainsResponse,
51
61
  unmarshalSession
52
62
  };