@scaleway/sdk-webhosting 1.2.0 → 1.4.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.
- package/dist/index.gen.d.ts +1 -1
- package/dist/v1/api.gen.cjs +110 -2
- package/dist/v1/api.gen.d.ts +66 -9
- package/dist/v1/api.gen.js +111 -3
- package/dist/v1/content.gen.d.ts +1 -1
- package/dist/v1/index.gen.cjs +9 -0
- package/dist/v1/index.gen.d.ts +5 -5
- package/dist/v1/index.gen.js +12 -3
- package/dist/v1/marshalling.gen.cjs +107 -8
- package/dist/v1/marshalling.gen.d.ts +9 -1
- package/dist/v1/marshalling.gen.js +108 -9
- package/dist/v1/types.gen.d.ts +174 -0
- package/dist/v1/validation-rules.gen.cjs +10 -0
- package/dist/v1/validation-rules.gen.d.ts +9 -0
- package/dist/v1/validation-rules.gen.js +10 -0
- package/package.json +4 -4
package/dist/index.gen.d.ts
CHANGED
package/dist/v1/api.gen.cjs
CHANGED
|
@@ -113,6 +113,32 @@ class BackupAPI extends sdkClient.API {
|
|
|
113
113
|
},
|
|
114
114
|
marshalling_gen.unmarshalRestoreBackupItemsResponse
|
|
115
115
|
);
|
|
116
|
+
/**
|
|
117
|
+
* Retrieve detailed information about a specific progress by its ID.. Retrieve detailed information about a specific progress by its ID.
|
|
118
|
+
*
|
|
119
|
+
* @param request - The request {@link BackupApiGetProgressRequest}
|
|
120
|
+
* @returns A Promise of Progress
|
|
121
|
+
*/
|
|
122
|
+
getProgress = (request) => this.client.fetch(
|
|
123
|
+
{
|
|
124
|
+
method: "GET",
|
|
125
|
+
path: `/webhosting/v1/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${sdkClient.validatePathParam("hostingId", request.hostingId)}/progresses/${sdkClient.validatePathParam("progressId", request.progressId)}`
|
|
126
|
+
},
|
|
127
|
+
marshalling_gen.unmarshalProgress
|
|
128
|
+
);
|
|
129
|
+
/**
|
|
130
|
+
* List recent progresses associated with a specific backup, grouped by type.. List recent progresses associated with a specific backup, grouped by type.
|
|
131
|
+
*
|
|
132
|
+
* @param request - The request {@link BackupApiListRecentProgressesRequest}
|
|
133
|
+
* @returns A Promise of ListRecentProgressesResponse
|
|
134
|
+
*/
|
|
135
|
+
listRecentProgresses = (request) => this.client.fetch(
|
|
136
|
+
{
|
|
137
|
+
method: "GET",
|
|
138
|
+
path: `/webhosting/v1/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${sdkClient.validatePathParam("hostingId", request.hostingId)}/progresses`
|
|
139
|
+
},
|
|
140
|
+
marshalling_gen.unmarshalListRecentProgressesResponse
|
|
141
|
+
);
|
|
116
142
|
}
|
|
117
143
|
class ControlPanelAPI extends sdkClient.API {
|
|
118
144
|
/**
|
|
@@ -653,7 +679,7 @@ class HostingAPI extends sdkClient.API {
|
|
|
653
679
|
marshalling_gen.unmarshalResourceSummary
|
|
654
680
|
);
|
|
655
681
|
/**
|
|
656
|
-
* Attach a custom domain to a webhosting.
|
|
682
|
+
* Attach a custom domain to a webhosting as an alias to the main domain.
|
|
657
683
|
*
|
|
658
684
|
* @param request - The request {@link HostingApiAddCustomDomainRequest}
|
|
659
685
|
* @returns A Promise of HostingSummary
|
|
@@ -680,7 +706,12 @@ class HostingAPI extends sdkClient.API {
|
|
|
680
706
|
*/
|
|
681
707
|
removeCustomDomain = (request) => this.client.fetch(
|
|
682
708
|
{
|
|
683
|
-
body:
|
|
709
|
+
body: JSON.stringify(
|
|
710
|
+
marshalling_gen.marshalHostingApiRemoveCustomDomainRequest(
|
|
711
|
+
request,
|
|
712
|
+
this.client.settings
|
|
713
|
+
)
|
|
714
|
+
),
|
|
684
715
|
headers: jsonContentHeaders,
|
|
685
716
|
method: "POST",
|
|
686
717
|
path: `/webhosting/v1/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${sdkClient.validatePathParam("hostingId", request.hostingId)}/remove-custom-domain`
|
|
@@ -688,6 +719,56 @@ class HostingAPI extends sdkClient.API {
|
|
|
688
719
|
marshalling_gen.unmarshalHostingSummary
|
|
689
720
|
);
|
|
690
721
|
}
|
|
722
|
+
class FreeDomainAPI extends sdkClient.API {
|
|
723
|
+
/**
|
|
724
|
+
* Locality of this API.
|
|
725
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
726
|
+
*/
|
|
727
|
+
static LOCALITY = sdkClient.toApiLocality({
|
|
728
|
+
regions: ["fr-par", "nl-ams", "pl-waw"]
|
|
729
|
+
});
|
|
730
|
+
/**
|
|
731
|
+
* Check whether a given slug and free domain combination is available.. Check whether a given slug and free domain combination is available.
|
|
732
|
+
*
|
|
733
|
+
* @param request - The request {@link FreeDomainApiCheckFreeDomainAvailabilityRequest}
|
|
734
|
+
* @returns A Promise of CheckFreeDomainAvailabilityResponse
|
|
735
|
+
*/
|
|
736
|
+
checkFreeDomainAvailability = (request) => this.client.fetch(
|
|
737
|
+
{
|
|
738
|
+
body: JSON.stringify(
|
|
739
|
+
marshalling_gen.marshalFreeDomainApiCheckFreeDomainAvailabilityRequest(
|
|
740
|
+
request,
|
|
741
|
+
this.client.settings
|
|
742
|
+
)
|
|
743
|
+
),
|
|
744
|
+
headers: jsonContentHeaders,
|
|
745
|
+
method: "POST",
|
|
746
|
+
path: `/webhosting/v1/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/free-domains/check-availability`
|
|
747
|
+
},
|
|
748
|
+
marshalling_gen.unmarshalCheckFreeDomainAvailabilityResponse
|
|
749
|
+
);
|
|
750
|
+
pageOfListFreeRootDomains = (request = {}) => this.client.fetch(
|
|
751
|
+
{
|
|
752
|
+
method: "GET",
|
|
753
|
+
path: `/webhosting/v1/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/free-domains/root-domains`,
|
|
754
|
+
urlParams: sdkClient.urlParams(
|
|
755
|
+
["page", request.page],
|
|
756
|
+
[
|
|
757
|
+
"page_size",
|
|
758
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
759
|
+
]
|
|
760
|
+
)
|
|
761
|
+
},
|
|
762
|
+
marshalling_gen.unmarshalListFreeRootDomainsResponse
|
|
763
|
+
);
|
|
764
|
+
/**
|
|
765
|
+
* Retrieve the list of free root domains available for a Web Hosting.. Retrieve the list of free root domains available for a Web Hosting.
|
|
766
|
+
*
|
|
767
|
+
* @param request - The request {@link FreeDomainApiListFreeRootDomainsRequest}
|
|
768
|
+
* @returns A Promise of ListFreeRootDomainsResponse
|
|
769
|
+
*/
|
|
770
|
+
listFreeRootDomains = (request = {}) => sdkClient.enrichForPagination("rootDomains", this.pageOfListFreeRootDomains, request);
|
|
771
|
+
}
|
|
691
772
|
class FtpAccountAPI extends sdkClient.API {
|
|
692
773
|
/**
|
|
693
774
|
* Locality of this API.
|
|
@@ -889,11 +970,38 @@ class WebsiteAPI extends sdkClient.API {
|
|
|
889
970
|
* @returns A Promise of ListWebsitesResponse
|
|
890
971
|
*/
|
|
891
972
|
listWebsites = (request) => sdkClient.enrichForPagination("websites", this.pageOfListWebsites, request);
|
|
973
|
+
/**
|
|
974
|
+
* Create a new website and attach it to a webhosting.
|
|
975
|
+
*
|
|
976
|
+
* @param request - The request {@link WebsiteApiCreateWebsiteRequest}
|
|
977
|
+
* @returns A Promise of Website
|
|
978
|
+
*/
|
|
979
|
+
createWebsite = (request) => this.client.fetch(
|
|
980
|
+
{
|
|
981
|
+
body: JSON.stringify(
|
|
982
|
+
marshalling_gen.marshalWebsiteApiCreateWebsiteRequest(request, this.client.settings)
|
|
983
|
+
),
|
|
984
|
+
headers: jsonContentHeaders,
|
|
985
|
+
method: "POST",
|
|
986
|
+
path: `/webhosting/v1/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${sdkClient.validatePathParam("hostingId", request.hostingId)}/websites`
|
|
987
|
+
},
|
|
988
|
+
marshalling_gen.unmarshalWebsite
|
|
989
|
+
);
|
|
990
|
+
/**
|
|
991
|
+
* Delete a website from a webhosting.
|
|
992
|
+
*
|
|
993
|
+
* @param request - The request {@link WebsiteApiDeleteWebsiteRequest}
|
|
994
|
+
*/
|
|
995
|
+
deleteWebsite = (request) => this.client.fetch({
|
|
996
|
+
method: "DELETE",
|
|
997
|
+
path: `/webhosting/v1/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${sdkClient.validatePathParam("hostingId", request.hostingId)}/websites/${sdkClient.validatePathParam("domainName", request.domainName)}`
|
|
998
|
+
});
|
|
892
999
|
}
|
|
893
1000
|
exports.BackupAPI = BackupAPI;
|
|
894
1001
|
exports.ControlPanelAPI = ControlPanelAPI;
|
|
895
1002
|
exports.DatabaseAPI = DatabaseAPI;
|
|
896
1003
|
exports.DnsAPI = DnsAPI;
|
|
1004
|
+
exports.FreeDomainAPI = FreeDomainAPI;
|
|
897
1005
|
exports.FtpAccountAPI = FtpAccountAPI;
|
|
898
1006
|
exports.HostingAPI = HostingAPI;
|
|
899
1007
|
exports.MailAccountAPI = MailAccountAPI;
|
package/dist/v1/api.gen.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ApiLocality, WaitForOptions } from '@scaleway/sdk-client';
|
|
2
1
|
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
3
|
-
import type {
|
|
2
|
+
import type { ApiLocality, WaitForOptions } from '@scaleway/sdk-client';
|
|
3
|
+
import type { Backup, BackupApiGetBackupRequest, BackupApiGetProgressRequest, BackupApiListBackupItemsRequest, BackupApiListBackupsRequest, BackupApiListRecentProgressesRequest, BackupApiRestoreBackupItemsRequest, BackupApiRestoreBackupRequest, CheckFreeDomainAvailabilityResponse, CheckUserOwnsDomainResponse, ControlPanelApiListControlPanelsRequest, Database, DatabaseApiAssignDatabaseUserRequest, DatabaseApiChangeDatabaseUserPasswordRequest, DatabaseApiCreateDatabaseRequest, DatabaseApiCreateDatabaseUserRequest, DatabaseApiDeleteDatabaseRequest, DatabaseApiDeleteDatabaseUserRequest, DatabaseApiGetDatabaseRequest, DatabaseApiGetDatabaseUserRequest, DatabaseApiListDatabaseUsersRequest, DatabaseApiListDatabasesRequest, DatabaseApiUnassignDatabaseUserRequest, DatabaseUser, DnsApiCheckUserOwnsDomainRequest, DnsApiGetDomainDnsRecordsRequest, DnsApiGetDomainRequest, DnsApiSearchDomainsRequest, DnsApiSyncDomainDnsRecordsRequest, DnsRecords, Domain, FreeDomainApiCheckFreeDomainAvailabilityRequest, FreeDomainApiListFreeRootDomainsRequest, FtpAccount, FtpAccountApiChangeFtpAccountPasswordRequest, FtpAccountApiCreateFtpAccountRequest, FtpAccountApiListFtpAccountsRequest, FtpAccountApiRemoveFtpAccountRequest, Hosting, HostingApiAddCustomDomainRequest, HostingApiCreateHostingRequest, HostingApiCreateSessionRequest, HostingApiDeleteHostingRequest, HostingApiGetHostingRequest, HostingApiGetResourceSummaryRequest, HostingApiListHostingsRequest, HostingApiRemoveCustomDomainRequest, HostingApiResetHostingPasswordRequest, HostingApiUpdateHostingRequest, HostingSummary, ListBackupItemsResponse, ListBackupsResponse, ListControlPanelsResponse, ListDatabaseUsersResponse, ListDatabasesResponse, ListFreeRootDomainsResponse, ListFtpAccountsResponse, ListHostingsResponse, ListMailAccountsResponse, ListOffersResponse, ListRecentProgressesResponse, ListWebsitesResponse, MailAccount, MailAccountApiChangeMailAccountPasswordRequest, MailAccountApiCreateMailAccountRequest, MailAccountApiListMailAccountsRequest, MailAccountApiRemoveMailAccountRequest, OfferApiListOffersRequest, Progress, ResetHostingPasswordResponse, ResourceSummary, RestoreBackupItemsResponse, RestoreBackupResponse, SearchDomainsResponse, Session, Website, WebsiteApiCreateWebsiteRequest, WebsiteApiDeleteWebsiteRequest, WebsiteApiListWebsitesRequest } from './types.gen.js';
|
|
4
4
|
/**
|
|
5
5
|
* Web Hosting backup API.
|
|
6
6
|
|
|
@@ -59,6 +59,20 @@ export declare class BackupAPI extends ParentAPI {
|
|
|
59
59
|
* @returns A Promise of RestoreBackupItemsResponse
|
|
60
60
|
*/
|
|
61
61
|
restoreBackupItems: (request: Readonly<BackupApiRestoreBackupItemsRequest>) => Promise<RestoreBackupItemsResponse>;
|
|
62
|
+
/**
|
|
63
|
+
* Retrieve detailed information about a specific progress by its ID.. Retrieve detailed information about a specific progress by its ID.
|
|
64
|
+
*
|
|
65
|
+
* @param request - The request {@link BackupApiGetProgressRequest}
|
|
66
|
+
* @returns A Promise of Progress
|
|
67
|
+
*/
|
|
68
|
+
getProgress: (request: Readonly<BackupApiGetProgressRequest>) => Promise<Progress>;
|
|
69
|
+
/**
|
|
70
|
+
* List recent progresses associated with a specific backup, grouped by type.. List recent progresses associated with a specific backup, grouped by type.
|
|
71
|
+
*
|
|
72
|
+
* @param request - The request {@link BackupApiListRecentProgressesRequest}
|
|
73
|
+
* @returns A Promise of ListRecentProgressesResponse
|
|
74
|
+
*/
|
|
75
|
+
listRecentProgresses: (request: Readonly<BackupApiListRecentProgressesRequest>) => Promise<ListRecentProgressesResponse>;
|
|
62
76
|
}
|
|
63
77
|
/**
|
|
64
78
|
* Web Hosting Control Panel API.
|
|
@@ -79,8 +93,8 @@ export declare class ControlPanelAPI extends ParentAPI {
|
|
|
79
93
|
* @returns A Promise of ListControlPanelsResponse
|
|
80
94
|
*/
|
|
81
95
|
listControlPanels: (request?: Readonly<ControlPanelApiListControlPanelsRequest>) => Promise<ListControlPanelsResponse> & {
|
|
82
|
-
all: () => Promise<import("./types.gen").ControlPanel[]>;
|
|
83
|
-
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen").ControlPanel[], void, void>;
|
|
96
|
+
all: () => Promise<import("./types.gen.js").ControlPanel[]>;
|
|
97
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen.js").ControlPanel[], void, void>;
|
|
84
98
|
};
|
|
85
99
|
}
|
|
86
100
|
/**
|
|
@@ -255,8 +269,8 @@ export declare class OfferAPI extends ParentAPI {
|
|
|
255
269
|
* @returns A Promise of ListOffersResponse
|
|
256
270
|
*/
|
|
257
271
|
listOffers: (request?: Readonly<OfferApiListOffersRequest>) => Promise<ListOffersResponse> & {
|
|
258
|
-
all: () => Promise<import("./types.gen").Offer[]>;
|
|
259
|
-
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen").Offer[], void, void>;
|
|
272
|
+
all: () => Promise<import("./types.gen.js").Offer[]>;
|
|
273
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen.js").Offer[], void, void>;
|
|
260
274
|
};
|
|
261
275
|
}
|
|
262
276
|
/**
|
|
@@ -339,7 +353,7 @@ export declare class HostingAPI extends ParentAPI {
|
|
|
339
353
|
*/
|
|
340
354
|
getResourceSummary: (request: Readonly<HostingApiGetResourceSummaryRequest>) => Promise<ResourceSummary>;
|
|
341
355
|
/**
|
|
342
|
-
* Attach a custom domain to a webhosting.
|
|
356
|
+
* Attach a custom domain to a webhosting as an alias to the main domain.
|
|
343
357
|
*
|
|
344
358
|
* @param request - The request {@link HostingApiAddCustomDomainRequest}
|
|
345
359
|
* @returns A Promise of HostingSummary
|
|
@@ -353,6 +367,36 @@ export declare class HostingAPI extends ParentAPI {
|
|
|
353
367
|
*/
|
|
354
368
|
removeCustomDomain: (request: Readonly<HostingApiRemoveCustomDomainRequest>) => Promise<HostingSummary>;
|
|
355
369
|
}
|
|
370
|
+
/**
|
|
371
|
+
* Web Hosting free domain API.
|
|
372
|
+
|
|
373
|
+
This API allows you to list and check a free domain's validity.
|
|
374
|
+
*/
|
|
375
|
+
export declare class FreeDomainAPI extends ParentAPI {
|
|
376
|
+
/**
|
|
377
|
+
* Locality of this API.
|
|
378
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
379
|
+
*/
|
|
380
|
+
static readonly LOCALITY: ApiLocality;
|
|
381
|
+
/**
|
|
382
|
+
* Check whether a given slug and free domain combination is available.. Check whether a given slug and free domain combination is available.
|
|
383
|
+
*
|
|
384
|
+
* @param request - The request {@link FreeDomainApiCheckFreeDomainAvailabilityRequest}
|
|
385
|
+
* @returns A Promise of CheckFreeDomainAvailabilityResponse
|
|
386
|
+
*/
|
|
387
|
+
checkFreeDomainAvailability: (request: Readonly<FreeDomainApiCheckFreeDomainAvailabilityRequest>) => Promise<CheckFreeDomainAvailabilityResponse>;
|
|
388
|
+
protected pageOfListFreeRootDomains: (request?: Readonly<FreeDomainApiListFreeRootDomainsRequest>) => Promise<ListFreeRootDomainsResponse>;
|
|
389
|
+
/**
|
|
390
|
+
* Retrieve the list of free root domains available for a Web Hosting.. Retrieve the list of free root domains available for a Web Hosting.
|
|
391
|
+
*
|
|
392
|
+
* @param request - The request {@link FreeDomainApiListFreeRootDomainsRequest}
|
|
393
|
+
* @returns A Promise of ListFreeRootDomainsResponse
|
|
394
|
+
*/
|
|
395
|
+
listFreeRootDomains: (request?: Readonly<FreeDomainApiListFreeRootDomainsRequest>) => Promise<ListFreeRootDomainsResponse> & {
|
|
396
|
+
all: () => Promise<string[]>;
|
|
397
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<string[], void, void>;
|
|
398
|
+
};
|
|
399
|
+
}
|
|
356
400
|
/**
|
|
357
401
|
* Web Hosting FTP Account API.
|
|
358
402
|
|
|
@@ -454,7 +498,20 @@ export declare class WebsiteAPI extends ParentAPI {
|
|
|
454
498
|
* @returns A Promise of ListWebsitesResponse
|
|
455
499
|
*/
|
|
456
500
|
listWebsites: (request: Readonly<WebsiteApiListWebsitesRequest>) => Promise<ListWebsitesResponse> & {
|
|
457
|
-
all: () => Promise<
|
|
458
|
-
[Symbol.asyncIterator]: () => AsyncGenerator<
|
|
501
|
+
all: () => Promise<Website[]>;
|
|
502
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<Website[], void, void>;
|
|
459
503
|
};
|
|
504
|
+
/**
|
|
505
|
+
* Create a new website and attach it to a webhosting.
|
|
506
|
+
*
|
|
507
|
+
* @param request - The request {@link WebsiteApiCreateWebsiteRequest}
|
|
508
|
+
* @returns A Promise of Website
|
|
509
|
+
*/
|
|
510
|
+
createWebsite: (request: Readonly<WebsiteApiCreateWebsiteRequest>) => Promise<Website>;
|
|
511
|
+
/**
|
|
512
|
+
* Delete a website from a webhosting.
|
|
513
|
+
*
|
|
514
|
+
* @param request - The request {@link WebsiteApiDeleteWebsiteRequest}
|
|
515
|
+
*/
|
|
516
|
+
deleteWebsite: (request: Readonly<WebsiteApiDeleteWebsiteRequest>) => Promise<void>;
|
|
460
517
|
}
|
package/dist/v1/api.gen.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { API, toApiLocality, urlParams, validatePathParam, enrichForPagination, waitForResource } from "@scaleway/sdk-client";
|
|
2
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";
|
|
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, marshalWebsiteApiCreateWebsiteRequest, unmarshalWebsite } from "./marshalling.gen.js";
|
|
4
4
|
const jsonContentHeaders = {
|
|
5
5
|
"Content-Type": "application/json; charset=utf-8"
|
|
6
6
|
};
|
|
@@ -111,6 +111,32 @@ class BackupAPI extends API {
|
|
|
111
111
|
},
|
|
112
112
|
unmarshalRestoreBackupItemsResponse
|
|
113
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
|
+
);
|
|
114
140
|
}
|
|
115
141
|
class ControlPanelAPI extends API {
|
|
116
142
|
/**
|
|
@@ -651,7 +677,7 @@ class HostingAPI extends API {
|
|
|
651
677
|
unmarshalResourceSummary
|
|
652
678
|
);
|
|
653
679
|
/**
|
|
654
|
-
* Attach a custom domain to a webhosting.
|
|
680
|
+
* Attach a custom domain to a webhosting as an alias to the main domain.
|
|
655
681
|
*
|
|
656
682
|
* @param request - The request {@link HostingApiAddCustomDomainRequest}
|
|
657
683
|
* @returns A Promise of HostingSummary
|
|
@@ -678,7 +704,12 @@ class HostingAPI extends API {
|
|
|
678
704
|
*/
|
|
679
705
|
removeCustomDomain = (request) => this.client.fetch(
|
|
680
706
|
{
|
|
681
|
-
body:
|
|
707
|
+
body: JSON.stringify(
|
|
708
|
+
marshalHostingApiRemoveCustomDomainRequest(
|
|
709
|
+
request,
|
|
710
|
+
this.client.settings
|
|
711
|
+
)
|
|
712
|
+
),
|
|
682
713
|
headers: jsonContentHeaders,
|
|
683
714
|
method: "POST",
|
|
684
715
|
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/remove-custom-domain`
|
|
@@ -686,6 +717,56 @@ class HostingAPI extends API {
|
|
|
686
717
|
unmarshalHostingSummary
|
|
687
718
|
);
|
|
688
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);
|
|
769
|
+
}
|
|
689
770
|
class FtpAccountAPI extends API {
|
|
690
771
|
/**
|
|
691
772
|
* Locality of this API.
|
|
@@ -887,12 +968,39 @@ class WebsiteAPI extends API {
|
|
|
887
968
|
* @returns A Promise of ListWebsitesResponse
|
|
888
969
|
*/
|
|
889
970
|
listWebsites = (request) => enrichForPagination("websites", this.pageOfListWebsites, request);
|
|
971
|
+
/**
|
|
972
|
+
* Create a new website and attach it to a webhosting.
|
|
973
|
+
*
|
|
974
|
+
* @param request - The request {@link WebsiteApiCreateWebsiteRequest}
|
|
975
|
+
* @returns A Promise of Website
|
|
976
|
+
*/
|
|
977
|
+
createWebsite = (request) => this.client.fetch(
|
|
978
|
+
{
|
|
979
|
+
body: JSON.stringify(
|
|
980
|
+
marshalWebsiteApiCreateWebsiteRequest(request, this.client.settings)
|
|
981
|
+
),
|
|
982
|
+
headers: jsonContentHeaders,
|
|
983
|
+
method: "POST",
|
|
984
|
+
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/websites`
|
|
985
|
+
},
|
|
986
|
+
unmarshalWebsite
|
|
987
|
+
);
|
|
988
|
+
/**
|
|
989
|
+
* Delete a website from a webhosting.
|
|
990
|
+
*
|
|
991
|
+
* @param request - The request {@link WebsiteApiDeleteWebsiteRequest}
|
|
992
|
+
*/
|
|
993
|
+
deleteWebsite = (request) => this.client.fetch({
|
|
994
|
+
method: "DELETE",
|
|
995
|
+
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${validatePathParam("hostingId", request.hostingId)}/websites/${validatePathParam("domainName", request.domainName)}`
|
|
996
|
+
});
|
|
890
997
|
}
|
|
891
998
|
export {
|
|
892
999
|
BackupAPI,
|
|
893
1000
|
ControlPanelAPI,
|
|
894
1001
|
DatabaseAPI,
|
|
895
1002
|
DnsAPI,
|
|
1003
|
+
FreeDomainAPI,
|
|
896
1004
|
FtpAccountAPI,
|
|
897
1005
|
HostingAPI,
|
|
898
1006
|
MailAccountAPI,
|
package/dist/v1/content.gen.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BackupStatus, DomainAvailabilityStatus, DomainStatus, HostingStatus } from './types.gen';
|
|
1
|
+
import type { BackupStatus, DomainAvailabilityStatus, DomainStatus, HostingStatus } from './types.gen.js';
|
|
2
2
|
/** Lists transient statutes of the enum {@link BackupStatus}. */
|
|
3
3
|
export declare const BACKUP_TRANSIENT_STATUSES: BackupStatus[];
|
|
4
4
|
/** Lists transient statutes of the enum {@link DomainAvailabilityStatus}. */
|
package/dist/v1/index.gen.cjs
CHANGED
|
@@ -8,6 +8,7 @@ exports.BackupAPI = api_gen.BackupAPI;
|
|
|
8
8
|
exports.ControlPanelAPI = api_gen.ControlPanelAPI;
|
|
9
9
|
exports.DatabaseAPI = api_gen.DatabaseAPI;
|
|
10
10
|
exports.DnsAPI = api_gen.DnsAPI;
|
|
11
|
+
exports.FreeDomainAPI = api_gen.FreeDomainAPI;
|
|
11
12
|
exports.FtpAccountAPI = api_gen.FtpAccountAPI;
|
|
12
13
|
exports.HostingAPI = api_gen.HostingAPI;
|
|
13
14
|
exports.MailAccountAPI = api_gen.MailAccountAPI;
|
|
@@ -25,15 +26,19 @@ exports.marshalDatabaseApiCreateDatabaseUserRequest = marshalling_gen.marshalDat
|
|
|
25
26
|
exports.marshalDatabaseApiUnassignDatabaseUserRequest = marshalling_gen.marshalDatabaseApiUnassignDatabaseUserRequest;
|
|
26
27
|
exports.marshalDnsApiCheckUserOwnsDomainRequest = marshalling_gen.marshalDnsApiCheckUserOwnsDomainRequest;
|
|
27
28
|
exports.marshalDnsApiSyncDomainDnsRecordsRequest = marshalling_gen.marshalDnsApiSyncDomainDnsRecordsRequest;
|
|
29
|
+
exports.marshalFreeDomainApiCheckFreeDomainAvailabilityRequest = marshalling_gen.marshalFreeDomainApiCheckFreeDomainAvailabilityRequest;
|
|
28
30
|
exports.marshalFtpAccountApiChangeFtpAccountPasswordRequest = marshalling_gen.marshalFtpAccountApiChangeFtpAccountPasswordRequest;
|
|
29
31
|
exports.marshalFtpAccountApiCreateFtpAccountRequest = marshalling_gen.marshalFtpAccountApiCreateFtpAccountRequest;
|
|
30
32
|
exports.marshalHostingApiAddCustomDomainRequest = marshalling_gen.marshalHostingApiAddCustomDomainRequest;
|
|
31
33
|
exports.marshalHostingApiCreateHostingRequest = marshalling_gen.marshalHostingApiCreateHostingRequest;
|
|
34
|
+
exports.marshalHostingApiRemoveCustomDomainRequest = marshalling_gen.marshalHostingApiRemoveCustomDomainRequest;
|
|
32
35
|
exports.marshalHostingApiUpdateHostingRequest = marshalling_gen.marshalHostingApiUpdateHostingRequest;
|
|
33
36
|
exports.marshalMailAccountApiChangeMailAccountPasswordRequest = marshalling_gen.marshalMailAccountApiChangeMailAccountPasswordRequest;
|
|
34
37
|
exports.marshalMailAccountApiCreateMailAccountRequest = marshalling_gen.marshalMailAccountApiCreateMailAccountRequest;
|
|
35
38
|
exports.marshalMailAccountApiRemoveMailAccountRequest = marshalling_gen.marshalMailAccountApiRemoveMailAccountRequest;
|
|
39
|
+
exports.marshalWebsiteApiCreateWebsiteRequest = marshalling_gen.marshalWebsiteApiCreateWebsiteRequest;
|
|
36
40
|
exports.unmarshalBackup = marshalling_gen.unmarshalBackup;
|
|
41
|
+
exports.unmarshalCheckFreeDomainAvailabilityResponse = marshalling_gen.unmarshalCheckFreeDomainAvailabilityResponse;
|
|
37
42
|
exports.unmarshalCheckUserOwnsDomainResponse = marshalling_gen.unmarshalCheckUserOwnsDomainResponse;
|
|
38
43
|
exports.unmarshalDatabase = marshalling_gen.unmarshalDatabase;
|
|
39
44
|
exports.unmarshalDatabaseUser = marshalling_gen.unmarshalDatabaseUser;
|
|
@@ -47,16 +52,20 @@ exports.unmarshalListBackupsResponse = marshalling_gen.unmarshalListBackupsRespo
|
|
|
47
52
|
exports.unmarshalListControlPanelsResponse = marshalling_gen.unmarshalListControlPanelsResponse;
|
|
48
53
|
exports.unmarshalListDatabaseUsersResponse = marshalling_gen.unmarshalListDatabaseUsersResponse;
|
|
49
54
|
exports.unmarshalListDatabasesResponse = marshalling_gen.unmarshalListDatabasesResponse;
|
|
55
|
+
exports.unmarshalListFreeRootDomainsResponse = marshalling_gen.unmarshalListFreeRootDomainsResponse;
|
|
50
56
|
exports.unmarshalListFtpAccountsResponse = marshalling_gen.unmarshalListFtpAccountsResponse;
|
|
51
57
|
exports.unmarshalListHostingsResponse = marshalling_gen.unmarshalListHostingsResponse;
|
|
52
58
|
exports.unmarshalListMailAccountsResponse = marshalling_gen.unmarshalListMailAccountsResponse;
|
|
53
59
|
exports.unmarshalListOffersResponse = marshalling_gen.unmarshalListOffersResponse;
|
|
60
|
+
exports.unmarshalListRecentProgressesResponse = marshalling_gen.unmarshalListRecentProgressesResponse;
|
|
54
61
|
exports.unmarshalListWebsitesResponse = marshalling_gen.unmarshalListWebsitesResponse;
|
|
55
62
|
exports.unmarshalMailAccount = marshalling_gen.unmarshalMailAccount;
|
|
63
|
+
exports.unmarshalProgress = marshalling_gen.unmarshalProgress;
|
|
56
64
|
exports.unmarshalResetHostingPasswordResponse = marshalling_gen.unmarshalResetHostingPasswordResponse;
|
|
57
65
|
exports.unmarshalResourceSummary = marshalling_gen.unmarshalResourceSummary;
|
|
58
66
|
exports.unmarshalRestoreBackupItemsResponse = marshalling_gen.unmarshalRestoreBackupItemsResponse;
|
|
59
67
|
exports.unmarshalRestoreBackupResponse = marshalling_gen.unmarshalRestoreBackupResponse;
|
|
60
68
|
exports.unmarshalSearchDomainsResponse = marshalling_gen.unmarshalSearchDomainsResponse;
|
|
61
69
|
exports.unmarshalSession = marshalling_gen.unmarshalSession;
|
|
70
|
+
exports.unmarshalWebsite = marshalling_gen.unmarshalWebsite;
|
|
62
71
|
exports.ValidationRules = validationRules_gen;
|
package/dist/v1/index.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { BackupAPI, 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, Backup, BackupApiGetBackupRequest, BackupApiListBackupItemsRequest, BackupApiListBackupsRequest, BackupApiRestoreBackupItemsRequest, BackupApiRestoreBackupRequest, BackupItem, BackupItemGroup, BackupItemType, BackupStatus, CheckUserOwnsDomainResponse, ControlPanel, ControlPanelApiListControlPanelsRequest, CreateDatabaseRequestUser, CreateHostingRequestDomainConfiguration, Database, DatabaseApiAssignDatabaseUserRequest, DatabaseApiChangeDatabaseUserPasswordRequest, DatabaseApiCreateDatabaseRequest, DatabaseApiCreateDatabaseUserRequest, DatabaseApiDeleteDatabaseRequest, DatabaseApiDeleteDatabaseUserRequest, DatabaseApiGetDatabaseRequest, DatabaseApiGetDatabaseUserRequest,
|
|
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, WebsiteApiCreateWebsiteRequest, WebsiteApiDeleteWebsiteRequest, WebsiteApiListWebsitesRequest, } from './types.gen.js';
|
|
5
|
+
export * as ValidationRules from './validation-rules.gen.js';
|
package/dist/v1/index.gen.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BackupAPI, ControlPanelAPI, DatabaseAPI, DnsAPI, FtpAccountAPI, HostingAPI, MailAccountAPI, OfferAPI, WebsiteAPI } from "./api.gen.js";
|
|
1
|
+
import { BackupAPI, ControlPanelAPI, DatabaseAPI, DnsAPI, FreeDomainAPI, FtpAccountAPI, HostingAPI, MailAccountAPI, OfferAPI, WebsiteAPI } from "./api.gen.js";
|
|
2
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";
|
|
3
|
+
import { marshalBackupApiRestoreBackupItemsRequest, marshalDatabaseApiAssignDatabaseUserRequest, marshalDatabaseApiChangeDatabaseUserPasswordRequest, marshalDatabaseApiCreateDatabaseRequest, marshalDatabaseApiCreateDatabaseUserRequest, marshalDatabaseApiUnassignDatabaseUserRequest, marshalDnsApiCheckUserOwnsDomainRequest, marshalDnsApiSyncDomainDnsRecordsRequest, marshalFreeDomainApiCheckFreeDomainAvailabilityRequest, marshalFtpAccountApiChangeFtpAccountPasswordRequest, marshalFtpAccountApiCreateFtpAccountRequest, marshalHostingApiAddCustomDomainRequest, marshalHostingApiCreateHostingRequest, marshalHostingApiRemoveCustomDomainRequest, marshalHostingApiUpdateHostingRequest, marshalMailAccountApiChangeMailAccountPasswordRequest, marshalMailAccountApiCreateMailAccountRequest, marshalMailAccountApiRemoveMailAccountRequest, marshalWebsiteApiCreateWebsiteRequest, 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, unmarshalWebsite } from "./marshalling.gen.js";
|
|
4
4
|
import * as validationRules_gen from "./validation-rules.gen.js";
|
|
5
5
|
export {
|
|
6
6
|
BACKUP_TRANSIENT_STATUSES,
|
|
@@ -10,6 +10,7 @@ export {
|
|
|
10
10
|
DOMAIN_TRANSIENT_STATUSES,
|
|
11
11
|
DatabaseAPI,
|
|
12
12
|
DnsAPI,
|
|
13
|
+
FreeDomainAPI,
|
|
13
14
|
FtpAccountAPI,
|
|
14
15
|
HOSTING_TRANSIENT_STATUSES,
|
|
15
16
|
HostingAPI,
|
|
@@ -25,15 +26,19 @@ export {
|
|
|
25
26
|
marshalDatabaseApiUnassignDatabaseUserRequest,
|
|
26
27
|
marshalDnsApiCheckUserOwnsDomainRequest,
|
|
27
28
|
marshalDnsApiSyncDomainDnsRecordsRequest,
|
|
29
|
+
marshalFreeDomainApiCheckFreeDomainAvailabilityRequest,
|
|
28
30
|
marshalFtpAccountApiChangeFtpAccountPasswordRequest,
|
|
29
31
|
marshalFtpAccountApiCreateFtpAccountRequest,
|
|
30
32
|
marshalHostingApiAddCustomDomainRequest,
|
|
31
33
|
marshalHostingApiCreateHostingRequest,
|
|
34
|
+
marshalHostingApiRemoveCustomDomainRequest,
|
|
32
35
|
marshalHostingApiUpdateHostingRequest,
|
|
33
36
|
marshalMailAccountApiChangeMailAccountPasswordRequest,
|
|
34
37
|
marshalMailAccountApiCreateMailAccountRequest,
|
|
35
38
|
marshalMailAccountApiRemoveMailAccountRequest,
|
|
39
|
+
marshalWebsiteApiCreateWebsiteRequest,
|
|
36
40
|
unmarshalBackup,
|
|
41
|
+
unmarshalCheckFreeDomainAvailabilityResponse,
|
|
37
42
|
unmarshalCheckUserOwnsDomainResponse,
|
|
38
43
|
unmarshalDatabase,
|
|
39
44
|
unmarshalDatabaseUser,
|
|
@@ -47,16 +52,20 @@ export {
|
|
|
47
52
|
unmarshalListControlPanelsResponse,
|
|
48
53
|
unmarshalListDatabaseUsersResponse,
|
|
49
54
|
unmarshalListDatabasesResponse,
|
|
55
|
+
unmarshalListFreeRootDomainsResponse,
|
|
50
56
|
unmarshalListFtpAccountsResponse,
|
|
51
57
|
unmarshalListHostingsResponse,
|
|
52
58
|
unmarshalListMailAccountsResponse,
|
|
53
59
|
unmarshalListOffersResponse,
|
|
60
|
+
unmarshalListRecentProgressesResponse,
|
|
54
61
|
unmarshalListWebsitesResponse,
|
|
55
62
|
unmarshalMailAccount,
|
|
63
|
+
unmarshalProgress,
|
|
56
64
|
unmarshalResetHostingPasswordResponse,
|
|
57
65
|
unmarshalResourceSummary,
|
|
58
66
|
unmarshalRestoreBackupItemsResponse,
|
|
59
67
|
unmarshalRestoreBackupResponse,
|
|
60
68
|
unmarshalSearchDomainsResponse,
|
|
61
|
-
unmarshalSession
|
|
69
|
+
unmarshalSession,
|
|
70
|
+
unmarshalWebsite
|
|
62
71
|
};
|