@scaleway/sdk-webhosting 1.3.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/v1/api.gen.cjs +27 -1
- package/dist/v1/api.gen.d.ts +17 -4
- package/dist/v1/api.gen.js +28 -2
- package/dist/v1/index.gen.cjs +2 -0
- package/dist/v1/index.gen.d.ts +1 -1
- package/dist/v1/index.gen.js +4 -2
- package/dist/v1/marshalling.gen.cjs +17 -12
- package/dist/v1/marshalling.gen.d.ts +3 -1
- package/dist/v1/marshalling.gen.js +18 -13
- package/dist/v1/types.gen.d.ts +28 -0
- package/package.json +4 -4
package/dist/v1/api.gen.cjs
CHANGED
|
@@ -679,7 +679,7 @@ class HostingAPI extends sdkClient.API {
|
|
|
679
679
|
marshalling_gen.unmarshalResourceSummary
|
|
680
680
|
);
|
|
681
681
|
/**
|
|
682
|
-
* Attach a custom domain to a webhosting.
|
|
682
|
+
* Attach a custom domain to a webhosting as an alias to the main domain.
|
|
683
683
|
*
|
|
684
684
|
* @param request - The request {@link HostingApiAddCustomDomainRequest}
|
|
685
685
|
* @returns A Promise of HostingSummary
|
|
@@ -970,6 +970,32 @@ class WebsiteAPI extends sdkClient.API {
|
|
|
970
970
|
* @returns A Promise of ListWebsitesResponse
|
|
971
971
|
*/
|
|
972
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
|
+
});
|
|
973
999
|
}
|
|
974
1000
|
exports.BackupAPI = BackupAPI;
|
|
975
1001
|
exports.ControlPanelAPI = ControlPanelAPI;
|
package/dist/v1/api.gen.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
2
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, WebsiteApiListWebsitesRequest } from './types.gen.js';
|
|
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
|
|
|
@@ -353,7 +353,7 @@ export declare class HostingAPI extends ParentAPI {
|
|
|
353
353
|
*/
|
|
354
354
|
getResourceSummary: (request: Readonly<HostingApiGetResourceSummaryRequest>) => Promise<ResourceSummary>;
|
|
355
355
|
/**
|
|
356
|
-
* Attach a custom domain to a webhosting.
|
|
356
|
+
* Attach a custom domain to a webhosting as an alias to the main domain.
|
|
357
357
|
*
|
|
358
358
|
* @param request - The request {@link HostingApiAddCustomDomainRequest}
|
|
359
359
|
* @returns A Promise of HostingSummary
|
|
@@ -498,7 +498,20 @@ export declare class WebsiteAPI extends ParentAPI {
|
|
|
498
498
|
* @returns A Promise of ListWebsitesResponse
|
|
499
499
|
*/
|
|
500
500
|
listWebsites: (request: Readonly<WebsiteApiListWebsitesRequest>) => Promise<ListWebsitesResponse> & {
|
|
501
|
-
all: () => Promise<
|
|
502
|
-
[Symbol.asyncIterator]: () => AsyncGenerator<
|
|
501
|
+
all: () => Promise<Website[]>;
|
|
502
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<Website[], void, void>;
|
|
503
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>;
|
|
504
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, 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";
|
|
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
|
};
|
|
@@ -677,7 +677,7 @@ class HostingAPI extends API {
|
|
|
677
677
|
unmarshalResourceSummary
|
|
678
678
|
);
|
|
679
679
|
/**
|
|
680
|
-
* Attach a custom domain to a webhosting.
|
|
680
|
+
* Attach a custom domain to a webhosting as an alias to the main domain.
|
|
681
681
|
*
|
|
682
682
|
* @param request - The request {@link HostingApiAddCustomDomainRequest}
|
|
683
683
|
* @returns A Promise of HostingSummary
|
|
@@ -968,6 +968,32 @@ class WebsiteAPI extends API {
|
|
|
968
968
|
* @returns A Promise of ListWebsitesResponse
|
|
969
969
|
*/
|
|
970
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
|
+
});
|
|
971
997
|
}
|
|
972
998
|
export {
|
|
973
999
|
BackupAPI,
|
package/dist/v1/index.gen.cjs
CHANGED
|
@@ -36,6 +36,7 @@ exports.marshalHostingApiUpdateHostingRequest = marshalling_gen.marshalHostingAp
|
|
|
36
36
|
exports.marshalMailAccountApiChangeMailAccountPasswordRequest = marshalling_gen.marshalMailAccountApiChangeMailAccountPasswordRequest;
|
|
37
37
|
exports.marshalMailAccountApiCreateMailAccountRequest = marshalling_gen.marshalMailAccountApiCreateMailAccountRequest;
|
|
38
38
|
exports.marshalMailAccountApiRemoveMailAccountRequest = marshalling_gen.marshalMailAccountApiRemoveMailAccountRequest;
|
|
39
|
+
exports.marshalWebsiteApiCreateWebsiteRequest = marshalling_gen.marshalWebsiteApiCreateWebsiteRequest;
|
|
39
40
|
exports.unmarshalBackup = marshalling_gen.unmarshalBackup;
|
|
40
41
|
exports.unmarshalCheckFreeDomainAvailabilityResponse = marshalling_gen.unmarshalCheckFreeDomainAvailabilityResponse;
|
|
41
42
|
exports.unmarshalCheckUserOwnsDomainResponse = marshalling_gen.unmarshalCheckUserOwnsDomainResponse;
|
|
@@ -66,4 +67,5 @@ exports.unmarshalRestoreBackupItemsResponse = marshalling_gen.unmarshalRestoreBa
|
|
|
66
67
|
exports.unmarshalRestoreBackupResponse = marshalling_gen.unmarshalRestoreBackupResponse;
|
|
67
68
|
exports.unmarshalSearchDomainsResponse = marshalling_gen.unmarshalSearchDomainsResponse;
|
|
68
69
|
exports.unmarshalSession = marshalling_gen.unmarshalSession;
|
|
70
|
+
exports.unmarshalWebsite = marshalling_gen.unmarshalWebsite;
|
|
69
71
|
exports.ValidationRules = validationRules_gen;
|
package/dist/v1/index.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { BackupAPI, ControlPanelAPI, DatabaseAPI, DnsAPI, FreeDomainAPI, FtpAccountAPI, HostingAPI, MailAccountAPI, OfferAPI, WebsiteAPI, } from './api.gen.js';
|
|
2
2
|
export * from './content.gen.js';
|
|
3
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';
|
|
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
5
|
export * as ValidationRules from './validation-rules.gen.js';
|
package/dist/v1/index.gen.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
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, 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";
|
|
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,
|
|
@@ -36,6 +36,7 @@ export {
|
|
|
36
36
|
marshalMailAccountApiChangeMailAccountPasswordRequest,
|
|
37
37
|
marshalMailAccountApiCreateMailAccountRequest,
|
|
38
38
|
marshalMailAccountApiRemoveMailAccountRequest,
|
|
39
|
+
marshalWebsiteApiCreateWebsiteRequest,
|
|
39
40
|
unmarshalBackup,
|
|
40
41
|
unmarshalCheckFreeDomainAvailabilityResponse,
|
|
41
42
|
unmarshalCheckUserOwnsDomainResponse,
|
|
@@ -65,5 +66,6 @@ export {
|
|
|
65
66
|
unmarshalRestoreBackupItemsResponse,
|
|
66
67
|
unmarshalRestoreBackupResponse,
|
|
67
68
|
unmarshalSearchDomainsResponse,
|
|
68
|
-
unmarshalSession
|
|
69
|
+
unmarshalSession,
|
|
70
|
+
unmarshalWebsite
|
|
69
71
|
};
|
|
@@ -118,6 +118,18 @@ const unmarshalMailAccount = (data) => {
|
|
|
118
118
|
username: data.username
|
|
119
119
|
};
|
|
120
120
|
};
|
|
121
|
+
const unmarshalWebsite = (data) => {
|
|
122
|
+
if (!sdkClient.isJSONObject(data)) {
|
|
123
|
+
throw new TypeError(
|
|
124
|
+
`Unmarshalling the type 'Website' failed as data isn't a dictionary.`
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
return {
|
|
128
|
+
domain: data.domain,
|
|
129
|
+
path: data.path,
|
|
130
|
+
sslStatus: data.ssl_status
|
|
131
|
+
};
|
|
132
|
+
};
|
|
121
133
|
const unmarshalFreeDomain = (data) => {
|
|
122
134
|
if (!sdkClient.isJSONObject(data)) {
|
|
123
135
|
throw new TypeError(
|
|
@@ -501,18 +513,6 @@ const unmarshalListRecentProgressesResponse = (data) => {
|
|
|
501
513
|
)
|
|
502
514
|
};
|
|
503
515
|
};
|
|
504
|
-
const unmarshalWebsite = (data) => {
|
|
505
|
-
if (!sdkClient.isJSONObject(data)) {
|
|
506
|
-
throw new TypeError(
|
|
507
|
-
`Unmarshalling the type 'Website' failed as data isn't a dictionary.`
|
|
508
|
-
);
|
|
509
|
-
}
|
|
510
|
-
return {
|
|
511
|
-
domain: data.domain,
|
|
512
|
-
path: data.path,
|
|
513
|
-
sslStatus: data.ssl_status
|
|
514
|
-
};
|
|
515
|
-
};
|
|
516
516
|
const unmarshalListWebsitesResponse = (data) => {
|
|
517
517
|
if (!sdkClient.isJSONObject(data)) {
|
|
518
518
|
throw new TypeError(
|
|
@@ -744,6 +744,9 @@ const marshalMailAccountApiRemoveMailAccountRequest = (request, defaults) => ({
|
|
|
744
744
|
domain: request.domain,
|
|
745
745
|
username: request.username
|
|
746
746
|
});
|
|
747
|
+
const marshalWebsiteApiCreateWebsiteRequest = (request, defaults) => ({
|
|
748
|
+
domain_name: request.domainName
|
|
749
|
+
});
|
|
747
750
|
exports.marshalBackupApiRestoreBackupItemsRequest = marshalBackupApiRestoreBackupItemsRequest;
|
|
748
751
|
exports.marshalDatabaseApiAssignDatabaseUserRequest = marshalDatabaseApiAssignDatabaseUserRequest;
|
|
749
752
|
exports.marshalDatabaseApiChangeDatabaseUserPasswordRequest = marshalDatabaseApiChangeDatabaseUserPasswordRequest;
|
|
@@ -762,6 +765,7 @@ exports.marshalHostingApiUpdateHostingRequest = marshalHostingApiUpdateHostingRe
|
|
|
762
765
|
exports.marshalMailAccountApiChangeMailAccountPasswordRequest = marshalMailAccountApiChangeMailAccountPasswordRequest;
|
|
763
766
|
exports.marshalMailAccountApiCreateMailAccountRequest = marshalMailAccountApiCreateMailAccountRequest;
|
|
764
767
|
exports.marshalMailAccountApiRemoveMailAccountRequest = marshalMailAccountApiRemoveMailAccountRequest;
|
|
768
|
+
exports.marshalWebsiteApiCreateWebsiteRequest = marshalWebsiteApiCreateWebsiteRequest;
|
|
765
769
|
exports.unmarshalBackup = unmarshalBackup;
|
|
766
770
|
exports.unmarshalCheckFreeDomainAvailabilityResponse = unmarshalCheckFreeDomainAvailabilityResponse;
|
|
767
771
|
exports.unmarshalCheckUserOwnsDomainResponse = unmarshalCheckUserOwnsDomainResponse;
|
|
@@ -792,3 +796,4 @@ exports.unmarshalRestoreBackupItemsResponse = unmarshalRestoreBackupItemsRespons
|
|
|
792
796
|
exports.unmarshalRestoreBackupResponse = unmarshalRestoreBackupResponse;
|
|
793
797
|
exports.unmarshalSearchDomainsResponse = unmarshalSearchDomainsResponse;
|
|
794
798
|
exports.unmarshalSession = unmarshalSession;
|
|
799
|
+
exports.unmarshalWebsite = unmarshalWebsite;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { DefaultValues } from '@scaleway/sdk-client';
|
|
2
|
-
import type { Backup, BackupApiRestoreBackupItemsRequest, CheckFreeDomainAvailabilityResponse, CheckUserOwnsDomainResponse, Database, DatabaseApiAssignDatabaseUserRequest, DatabaseApiChangeDatabaseUserPasswordRequest, DatabaseApiCreateDatabaseRequest, DatabaseApiCreateDatabaseUserRequest, DatabaseApiUnassignDatabaseUserRequest, DatabaseUser, DnsApiCheckUserOwnsDomainRequest, DnsApiSyncDomainDnsRecordsRequest, DnsRecords, Domain, FreeDomainApiCheckFreeDomainAvailabilityRequest, FtpAccount, FtpAccountApiChangeFtpAccountPasswordRequest, FtpAccountApiCreateFtpAccountRequest, Hosting, HostingApiAddCustomDomainRequest, HostingApiCreateHostingRequest, HostingApiRemoveCustomDomainRequest, HostingApiUpdateHostingRequest, HostingSummary, ListBackupItemsResponse, ListBackupsResponse, ListControlPanelsResponse, ListDatabaseUsersResponse, ListDatabasesResponse, ListFreeRootDomainsResponse, ListFtpAccountsResponse, ListHostingsResponse, ListMailAccountsResponse, ListOffersResponse, ListRecentProgressesResponse, ListWebsitesResponse, MailAccount, MailAccountApiChangeMailAccountPasswordRequest, MailAccountApiCreateMailAccountRequest, MailAccountApiRemoveMailAccountRequest, Progress, ResetHostingPasswordResponse, ResourceSummary, RestoreBackupItemsResponse, RestoreBackupResponse, SearchDomainsResponse, Session } from './types.gen.js';
|
|
2
|
+
import type { Backup, BackupApiRestoreBackupItemsRequest, CheckFreeDomainAvailabilityResponse, CheckUserOwnsDomainResponse, Database, DatabaseApiAssignDatabaseUserRequest, DatabaseApiChangeDatabaseUserPasswordRequest, DatabaseApiCreateDatabaseRequest, DatabaseApiCreateDatabaseUserRequest, DatabaseApiUnassignDatabaseUserRequest, DatabaseUser, DnsApiCheckUserOwnsDomainRequest, DnsApiSyncDomainDnsRecordsRequest, DnsRecords, Domain, FreeDomainApiCheckFreeDomainAvailabilityRequest, FtpAccount, FtpAccountApiChangeFtpAccountPasswordRequest, FtpAccountApiCreateFtpAccountRequest, Hosting, HostingApiAddCustomDomainRequest, HostingApiCreateHostingRequest, HostingApiRemoveCustomDomainRequest, HostingApiUpdateHostingRequest, HostingSummary, ListBackupItemsResponse, ListBackupsResponse, ListControlPanelsResponse, ListDatabaseUsersResponse, ListDatabasesResponse, ListFreeRootDomainsResponse, ListFtpAccountsResponse, ListHostingsResponse, ListMailAccountsResponse, ListOffersResponse, ListRecentProgressesResponse, ListWebsitesResponse, MailAccount, MailAccountApiChangeMailAccountPasswordRequest, MailAccountApiCreateMailAccountRequest, MailAccountApiRemoveMailAccountRequest, Progress, ResetHostingPasswordResponse, ResourceSummary, RestoreBackupItemsResponse, RestoreBackupResponse, SearchDomainsResponse, Session, Website, WebsiteApiCreateWebsiteRequest } from './types.gen.js';
|
|
3
3
|
export declare const unmarshalBackup: (data: unknown) => Backup;
|
|
4
4
|
export declare const unmarshalDatabaseUser: (data: unknown) => DatabaseUser;
|
|
5
5
|
export declare const unmarshalDatabase: (data: unknown) => Database;
|
|
6
6
|
export declare const unmarshalFtpAccount: (data: unknown) => FtpAccount;
|
|
7
7
|
export declare const unmarshalHostingSummary: (data: unknown) => HostingSummary;
|
|
8
8
|
export declare const unmarshalMailAccount: (data: unknown) => MailAccount;
|
|
9
|
+
export declare const unmarshalWebsite: (data: unknown) => Website;
|
|
9
10
|
export declare const unmarshalCheckFreeDomainAvailabilityResponse: (data: unknown) => CheckFreeDomainAvailabilityResponse;
|
|
10
11
|
export declare const unmarshalCheckUserOwnsDomainResponse: (data: unknown) => CheckUserOwnsDomainResponse;
|
|
11
12
|
export declare const unmarshalDnsRecords: (data: unknown) => DnsRecords;
|
|
@@ -48,3 +49,4 @@ export declare const marshalHostingApiUpdateHostingRequest: (request: HostingApi
|
|
|
48
49
|
export declare const marshalMailAccountApiChangeMailAccountPasswordRequest: (request: MailAccountApiChangeMailAccountPasswordRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
49
50
|
export declare const marshalMailAccountApiCreateMailAccountRequest: (request: MailAccountApiCreateMailAccountRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
50
51
|
export declare const marshalMailAccountApiRemoveMailAccountRequest: (request: MailAccountApiRemoveMailAccountRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
52
|
+
export declare const marshalWebsiteApiCreateWebsiteRequest: (request: WebsiteApiCreateWebsiteRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
@@ -116,6 +116,18 @@ const unmarshalMailAccount = (data) => {
|
|
|
116
116
|
username: data.username
|
|
117
117
|
};
|
|
118
118
|
};
|
|
119
|
+
const unmarshalWebsite = (data) => {
|
|
120
|
+
if (!isJSONObject(data)) {
|
|
121
|
+
throw new TypeError(
|
|
122
|
+
`Unmarshalling the type 'Website' failed as data isn't a dictionary.`
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
return {
|
|
126
|
+
domain: data.domain,
|
|
127
|
+
path: data.path,
|
|
128
|
+
sslStatus: data.ssl_status
|
|
129
|
+
};
|
|
130
|
+
};
|
|
119
131
|
const unmarshalFreeDomain = (data) => {
|
|
120
132
|
if (!isJSONObject(data)) {
|
|
121
133
|
throw new TypeError(
|
|
@@ -499,18 +511,6 @@ const unmarshalListRecentProgressesResponse = (data) => {
|
|
|
499
511
|
)
|
|
500
512
|
};
|
|
501
513
|
};
|
|
502
|
-
const unmarshalWebsite = (data) => {
|
|
503
|
-
if (!isJSONObject(data)) {
|
|
504
|
-
throw new TypeError(
|
|
505
|
-
`Unmarshalling the type 'Website' failed as data isn't a dictionary.`
|
|
506
|
-
);
|
|
507
|
-
}
|
|
508
|
-
return {
|
|
509
|
-
domain: data.domain,
|
|
510
|
-
path: data.path,
|
|
511
|
-
sslStatus: data.ssl_status
|
|
512
|
-
};
|
|
513
|
-
};
|
|
514
514
|
const unmarshalListWebsitesResponse = (data) => {
|
|
515
515
|
if (!isJSONObject(data)) {
|
|
516
516
|
throw new TypeError(
|
|
@@ -742,6 +742,9 @@ const marshalMailAccountApiRemoveMailAccountRequest = (request, defaults) => ({
|
|
|
742
742
|
domain: request.domain,
|
|
743
743
|
username: request.username
|
|
744
744
|
});
|
|
745
|
+
const marshalWebsiteApiCreateWebsiteRequest = (request, defaults) => ({
|
|
746
|
+
domain_name: request.domainName
|
|
747
|
+
});
|
|
745
748
|
export {
|
|
746
749
|
marshalBackupApiRestoreBackupItemsRequest,
|
|
747
750
|
marshalDatabaseApiAssignDatabaseUserRequest,
|
|
@@ -761,6 +764,7 @@ export {
|
|
|
761
764
|
marshalMailAccountApiChangeMailAccountPasswordRequest,
|
|
762
765
|
marshalMailAccountApiCreateMailAccountRequest,
|
|
763
766
|
marshalMailAccountApiRemoveMailAccountRequest,
|
|
767
|
+
marshalWebsiteApiCreateWebsiteRequest,
|
|
764
768
|
unmarshalBackup,
|
|
765
769
|
unmarshalCheckFreeDomainAvailabilityResponse,
|
|
766
770
|
unmarshalCheckUserOwnsDomainResponse,
|
|
@@ -790,5 +794,6 @@ export {
|
|
|
790
794
|
unmarshalRestoreBackupItemsResponse,
|
|
791
795
|
unmarshalRestoreBackupResponse,
|
|
792
796
|
unmarshalSearchDomainsResponse,
|
|
793
|
-
unmarshalSession
|
|
797
|
+
unmarshalSession,
|
|
798
|
+
unmarshalWebsite
|
|
794
799
|
};
|
package/dist/v1/types.gen.d.ts
CHANGED
|
@@ -1668,6 +1668,34 @@ export interface Session {
|
|
|
1668
1668
|
*/
|
|
1669
1669
|
url: string;
|
|
1670
1670
|
}
|
|
1671
|
+
export type WebsiteApiCreateWebsiteRequest = {
|
|
1672
|
+
/**
|
|
1673
|
+
* Region to target. If none is passed will use default region from the config.
|
|
1674
|
+
*/
|
|
1675
|
+
region?: ScwRegion;
|
|
1676
|
+
/**
|
|
1677
|
+
* Hosting ID to which the website is attached to.
|
|
1678
|
+
*/
|
|
1679
|
+
hostingId: string;
|
|
1680
|
+
/**
|
|
1681
|
+
* The new domain name or subdomain to use for the website.
|
|
1682
|
+
*/
|
|
1683
|
+
domainName: string;
|
|
1684
|
+
};
|
|
1685
|
+
export type WebsiteApiDeleteWebsiteRequest = {
|
|
1686
|
+
/**
|
|
1687
|
+
* Region to target. If none is passed will use default region from the config.
|
|
1688
|
+
*/
|
|
1689
|
+
region?: ScwRegion;
|
|
1690
|
+
/**
|
|
1691
|
+
* Hosting ID to which the website is detached from.
|
|
1692
|
+
*/
|
|
1693
|
+
hostingId: string;
|
|
1694
|
+
/**
|
|
1695
|
+
* The new domain name or subdomain attached to the website.
|
|
1696
|
+
*/
|
|
1697
|
+
domainName: string;
|
|
1698
|
+
};
|
|
1671
1699
|
export type WebsiteApiListWebsitesRequest = {
|
|
1672
1700
|
/**
|
|
1673
1701
|
* Region to target. If none is passed will use default region from the config.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-webhosting",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Scaleway SDK webhosting",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@scaleway/random-name": "5.1.2",
|
|
33
|
-
"@scaleway/sdk-std": "1.
|
|
33
|
+
"@scaleway/sdk-std": "1.2.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^1.3.
|
|
36
|
+
"@scaleway/sdk-client": "^1.3.3"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@scaleway/sdk-client": "^1.3.
|
|
39
|
+
"@scaleway/sdk-client": "^1.3.3"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"package:check": "pnpm publint",
|