@scaleway/sdk-webhosting 1.3.0 → 2.1.1
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/README.md +96 -0
- package/dist/v1/api.gen.d.ts +25 -5
- package/dist/v1/api.gen.js +133 -134
- package/dist/v1/content.gen.js +9 -3
- package/dist/v1/index.gen.d.ts +1 -1
- package/dist/v1/index.gen.js +5 -2
- package/dist/v1/marshalling.gen.d.ts +4 -1
- package/dist/v1/marshalling.gen.js +50 -59
- package/dist/v1/types.gen.d.ts +69 -19
- package/package.json +6 -9
- package/dist/index.gen.cjs +0 -4
- package/dist/v1/api.gen.cjs +0 -983
- package/dist/v1/content.gen.cjs +0 -15
- package/dist/v1/index.gen.cjs +0 -69
- package/dist/v1/marshalling.gen.cjs +0 -794
- package/dist/v1/validation-rules.gen.cjs +0 -102
|
@@ -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,
|
|
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, HostingApiMigrateControlPanelRequest, HostingApiRemoveCustomDomainRequest, HostingApiUpdateHostingRequest, HostingSummary, ListBackupItemsResponse, ListBackupsResponse, ListControlPanelsResponse, ListDatabasesResponse, ListDatabaseUsersResponse, 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;
|
|
@@ -43,8 +44,10 @@ export declare const marshalFtpAccountApiChangeFtpAccountPasswordRequest: (reque
|
|
|
43
44
|
export declare const marshalFtpAccountApiCreateFtpAccountRequest: (request: FtpAccountApiCreateFtpAccountRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
44
45
|
export declare const marshalHostingApiAddCustomDomainRequest: (request: HostingApiAddCustomDomainRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
45
46
|
export declare const marshalHostingApiCreateHostingRequest: (request: HostingApiCreateHostingRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
47
|
+
export declare const marshalHostingApiMigrateControlPanelRequest: (request: HostingApiMigrateControlPanelRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
46
48
|
export declare const marshalHostingApiRemoveCustomDomainRequest: (request: HostingApiRemoveCustomDomainRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
47
49
|
export declare const marshalHostingApiUpdateHostingRequest: (request: HostingApiUpdateHostingRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
48
50
|
export declare const marshalMailAccountApiChangeMailAccountPasswordRequest: (request: MailAccountApiChangeMailAccountPasswordRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
49
51
|
export declare const marshalMailAccountApiCreateMailAccountRequest: (request: MailAccountApiCreateMailAccountRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
50
52
|
export declare const marshalMailAccountApiRemoveMailAccountRequest: (request: MailAccountApiRemoveMailAccountRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
53
|
+
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(
|
|
@@ -218,6 +230,19 @@ const unmarshalPlatformControlPanelUrls = (data) => {
|
|
|
218
230
|
webmail: data.webmail
|
|
219
231
|
};
|
|
220
232
|
};
|
|
233
|
+
const unmarshalControlPanel = (data) => {
|
|
234
|
+
if (!isJSONObject(data)) {
|
|
235
|
+
throw new TypeError(
|
|
236
|
+
`Unmarshalling the type 'ControlPanel' failed as data isn't a dictionary.`
|
|
237
|
+
);
|
|
238
|
+
}
|
|
239
|
+
return {
|
|
240
|
+
available: data.available,
|
|
241
|
+
availableLanguages: data.available_languages,
|
|
242
|
+
logoUrl: data.logo_url,
|
|
243
|
+
name: data.name
|
|
244
|
+
};
|
|
245
|
+
};
|
|
221
246
|
const unmarshalOfferOption = (data) => {
|
|
222
247
|
if (!isJSONObject(data)) {
|
|
223
248
|
throw new TypeError(
|
|
@@ -269,6 +294,7 @@ const unmarshalOffer = (data) => {
|
|
|
269
294
|
available: data.available,
|
|
270
295
|
billingOperationPath: data.billing_operation_path,
|
|
271
296
|
controlPanelName: data.control_panel_name,
|
|
297
|
+
controlPanels: unmarshalArrayOfObject(data.control_panels, unmarshalControlPanel),
|
|
272
298
|
endOfLife: data.end_of_life,
|
|
273
299
|
id: data.id,
|
|
274
300
|
name: data.name,
|
|
@@ -366,19 +392,6 @@ const unmarshalListBackupsResponse = (data) => {
|
|
|
366
392
|
totalCount: data.total_count
|
|
367
393
|
};
|
|
368
394
|
};
|
|
369
|
-
const unmarshalControlPanel = (data) => {
|
|
370
|
-
if (!isJSONObject(data)) {
|
|
371
|
-
throw new TypeError(
|
|
372
|
-
`Unmarshalling the type 'ControlPanel' failed as data isn't a dictionary.`
|
|
373
|
-
);
|
|
374
|
-
}
|
|
375
|
-
return {
|
|
376
|
-
available: data.available,
|
|
377
|
-
availableLanguages: data.available_languages,
|
|
378
|
-
logoUrl: data.logo_url,
|
|
379
|
-
name: data.name
|
|
380
|
-
};
|
|
381
|
-
};
|
|
382
395
|
const unmarshalListControlPanelsResponse = (data) => {
|
|
383
396
|
if (!isJSONObject(data)) {
|
|
384
397
|
throw new TypeError(
|
|
@@ -386,10 +399,7 @@ const unmarshalListControlPanelsResponse = (data) => {
|
|
|
386
399
|
);
|
|
387
400
|
}
|
|
388
401
|
return {
|
|
389
|
-
controlPanels: unmarshalArrayOfObject(
|
|
390
|
-
data.control_panels,
|
|
391
|
-
unmarshalControlPanel
|
|
392
|
-
),
|
|
402
|
+
controlPanels: unmarshalArrayOfObject(data.control_panels, unmarshalControlPanel),
|
|
393
403
|
totalCount: data.total_count
|
|
394
404
|
};
|
|
395
405
|
};
|
|
@@ -455,10 +465,7 @@ const unmarshalListMailAccountsResponse = (data) => {
|
|
|
455
465
|
);
|
|
456
466
|
}
|
|
457
467
|
return {
|
|
458
|
-
mailAccounts: unmarshalArrayOfObject(
|
|
459
|
-
data.mail_accounts,
|
|
460
|
-
unmarshalMailAccount
|
|
461
|
-
),
|
|
468
|
+
mailAccounts: unmarshalArrayOfObject(data.mail_accounts, unmarshalMailAccount),
|
|
462
469
|
totalCount: data.total_count
|
|
463
470
|
};
|
|
464
471
|
};
|
|
@@ -493,22 +500,7 @@ const unmarshalListRecentProgressesResponse = (data) => {
|
|
|
493
500
|
);
|
|
494
501
|
}
|
|
495
502
|
return {
|
|
496
|
-
progresses: unmarshalArrayOfObject(
|
|
497
|
-
data.progresses,
|
|
498
|
-
unmarshalProgressSummary
|
|
499
|
-
)
|
|
500
|
-
};
|
|
501
|
-
};
|
|
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
|
|
503
|
+
progresses: unmarshalArrayOfObject(data.progresses, unmarshalProgressSummary)
|
|
512
504
|
};
|
|
513
505
|
};
|
|
514
506
|
const unmarshalListWebsitesResponse = (data) => {
|
|
@@ -529,10 +521,7 @@ const unmarshalProgress = (data) => {
|
|
|
529
521
|
);
|
|
530
522
|
}
|
|
531
523
|
return {
|
|
532
|
-
backupItemGroups: unmarshalArrayOfObject(
|
|
533
|
-
data.backup_item_groups,
|
|
534
|
-
unmarshalBackupItemGroup
|
|
535
|
-
),
|
|
524
|
+
backupItemGroups: unmarshalArrayOfObject(data.backup_item_groups, unmarshalBackupItemGroup),
|
|
536
525
|
id: data.id,
|
|
537
526
|
percentage: data.percentage,
|
|
538
527
|
status: data.status
|
|
@@ -604,10 +593,7 @@ const unmarshalSearchDomainsResponse = (data) => {
|
|
|
604
593
|
);
|
|
605
594
|
}
|
|
606
595
|
return {
|
|
607
|
-
domainsAvailable: unmarshalArrayOfObject(
|
|
608
|
-
data.domains_available,
|
|
609
|
-
unmarshalDomainAvailability
|
|
610
|
-
)
|
|
596
|
+
domainsAvailable: unmarshalArrayOfObject(data.domains_available, unmarshalDomainAvailability)
|
|
611
597
|
};
|
|
612
598
|
};
|
|
613
599
|
const unmarshalSession = (data) => {
|
|
@@ -640,7 +626,10 @@ const marshalDatabaseApiCreateDatabaseRequest = (request, defaults) => ({
|
|
|
640
626
|
param: "new_user",
|
|
641
627
|
value: request.newUser !== void 0 ? marshalCreateDatabaseRequestUser(request.newUser) : void 0
|
|
642
628
|
},
|
|
643
|
-
{
|
|
629
|
+
{
|
|
630
|
+
param: "existing_username",
|
|
631
|
+
value: request.existingUsername
|
|
632
|
+
}
|
|
644
633
|
])
|
|
645
634
|
});
|
|
646
635
|
const marshalDatabaseApiCreateDatabaseUserRequest = (request, defaults) => ({
|
|
@@ -666,9 +655,7 @@ const marshalSyncDomainDnsRecordsRequestRecord = (request, defaults) => ({
|
|
|
666
655
|
});
|
|
667
656
|
const marshalDnsApiSyncDomainDnsRecordsRequest = (request, defaults) => ({
|
|
668
657
|
auto_config_domain_dns: request.autoConfigDomainDns !== void 0 ? marshalAutoConfigDomainDns(request.autoConfigDomainDns) : void 0,
|
|
669
|
-
custom_records: request.customRecords !== void 0 ? request.customRecords.map(
|
|
670
|
-
(elt) => marshalSyncDomainDnsRecordsRequestRecord(elt)
|
|
671
|
-
) : void 0,
|
|
658
|
+
custom_records: request.customRecords !== void 0 ? request.customRecords.map((elt) => marshalSyncDomainDnsRecordsRequestRecord(elt)) : void 0,
|
|
672
659
|
update_all_records: request.updateAllRecords,
|
|
673
660
|
update_mail_records: request.updateMailRecords,
|
|
674
661
|
update_nameservers: request.updateNameservers,
|
|
@@ -702,29 +689,27 @@ const marshalOfferOptionRequest = (request, defaults) => ({
|
|
|
702
689
|
const marshalHostingApiCreateHostingRequest = (request, defaults) => ({
|
|
703
690
|
auto_config_domain_dns: request.autoConfigDomainDns !== void 0 ? marshalAutoConfigDomainDns(request.autoConfigDomainDns) : void 0,
|
|
704
691
|
domain: request.domain,
|
|
705
|
-
domain_configuration: request.domainConfiguration !== void 0 ? marshalCreateHostingRequestDomainConfiguration(
|
|
706
|
-
request.domainConfiguration
|
|
707
|
-
) : void 0,
|
|
692
|
+
domain_configuration: request.domainConfiguration !== void 0 ? marshalCreateHostingRequestDomainConfiguration(request.domainConfiguration) : void 0,
|
|
708
693
|
email: request.email,
|
|
709
694
|
language: request.language,
|
|
710
695
|
offer_id: request.offerId,
|
|
711
|
-
offer_options: request.offerOptions !== void 0 ? request.offerOptions.map(
|
|
712
|
-
(elt) => marshalOfferOptionRequest(elt)
|
|
713
|
-
) : void 0,
|
|
696
|
+
offer_options: request.offerOptions !== void 0 ? request.offerOptions.map((elt) => marshalOfferOptionRequest(elt)) : void 0,
|
|
714
697
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
715
698
|
skip_welcome_email: request.skipWelcomeEmail,
|
|
716
699
|
subdomain: request.subdomain,
|
|
717
700
|
tags: request.tags
|
|
718
701
|
});
|
|
702
|
+
const marshalHostingApiMigrateControlPanelRequest = (request, defaults) => ({
|
|
703
|
+
control_panel_name: request.controlPanelName,
|
|
704
|
+
offer_id: request.offerId
|
|
705
|
+
});
|
|
719
706
|
const marshalHostingApiRemoveCustomDomainRequest = (request, defaults) => ({
|
|
720
707
|
domain_name: request.domainName
|
|
721
708
|
});
|
|
722
709
|
const marshalHostingApiUpdateHostingRequest = (request, defaults) => ({
|
|
723
710
|
email: request.email,
|
|
724
711
|
offer_id: request.offerId,
|
|
725
|
-
offer_options: request.offerOptions !== void 0 ? request.offerOptions.map(
|
|
726
|
-
(elt) => marshalOfferOptionRequest(elt)
|
|
727
|
-
) : void 0,
|
|
712
|
+
offer_options: request.offerOptions !== void 0 ? request.offerOptions.map((elt) => marshalOfferOptionRequest(elt)) : void 0,
|
|
728
713
|
protected: request.protected,
|
|
729
714
|
tags: request.tags
|
|
730
715
|
});
|
|
@@ -742,6 +727,9 @@ const marshalMailAccountApiRemoveMailAccountRequest = (request, defaults) => ({
|
|
|
742
727
|
domain: request.domain,
|
|
743
728
|
username: request.username
|
|
744
729
|
});
|
|
730
|
+
const marshalWebsiteApiCreateWebsiteRequest = (request, defaults) => ({
|
|
731
|
+
domain_name: request.domainName
|
|
732
|
+
});
|
|
745
733
|
export {
|
|
746
734
|
marshalBackupApiRestoreBackupItemsRequest,
|
|
747
735
|
marshalDatabaseApiAssignDatabaseUserRequest,
|
|
@@ -756,11 +744,13 @@ export {
|
|
|
756
744
|
marshalFtpAccountApiCreateFtpAccountRequest,
|
|
757
745
|
marshalHostingApiAddCustomDomainRequest,
|
|
758
746
|
marshalHostingApiCreateHostingRequest,
|
|
747
|
+
marshalHostingApiMigrateControlPanelRequest,
|
|
759
748
|
marshalHostingApiRemoveCustomDomainRequest,
|
|
760
749
|
marshalHostingApiUpdateHostingRequest,
|
|
761
750
|
marshalMailAccountApiChangeMailAccountPasswordRequest,
|
|
762
751
|
marshalMailAccountApiCreateMailAccountRequest,
|
|
763
752
|
marshalMailAccountApiRemoveMailAccountRequest,
|
|
753
|
+
marshalWebsiteApiCreateWebsiteRequest,
|
|
764
754
|
unmarshalBackup,
|
|
765
755
|
unmarshalCheckFreeDomainAvailabilityResponse,
|
|
766
756
|
unmarshalCheckUserOwnsDomainResponse,
|
|
@@ -790,5 +780,6 @@ export {
|
|
|
790
780
|
unmarshalRestoreBackupItemsResponse,
|
|
791
781
|
unmarshalRestoreBackupResponse,
|
|
792
782
|
unmarshalSearchDomainsResponse,
|
|
793
|
-
unmarshalSession
|
|
783
|
+
unmarshalSession,
|
|
784
|
+
unmarshalWebsite
|
|
794
785
|
};
|
package/dist/v1/types.gen.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export type ListMailAccountsRequestOrderBy = 'username_asc' | 'username_desc' |
|
|
|
22
22
|
export type ListOffersRequestOrderBy = 'price_asc';
|
|
23
23
|
export type ListWebsitesRequestOrderBy = 'domain_asc' | 'domain_desc';
|
|
24
24
|
export type NameserverStatus = 'unknown_status' | 'valid' | 'invalid';
|
|
25
|
-
export type OfferOptionName = 'unknown_name' | 'domain_count' | 'email_count' | 'storage_gb' | 'vcpu_count' | 'ram_gb' | 'backup' | 'dedicated_ip' | 'email_storage_gb' | 'database_count' | 'support';
|
|
25
|
+
export type OfferOptionName = 'unknown_name' | 'domain_count' | 'email_count' | 'storage_gb' | 'vcpu_count' | 'ram_gb' | 'backup' | 'dedicated_ip' | 'email_storage_gb' | 'database_count' | 'support' | 'additional_email';
|
|
26
26
|
export type OfferOptionWarning = 'unknown_warning' | 'quota_exceeded_warning' | 'usage_low_warning';
|
|
27
27
|
export type PlatformPlatformGroup = 'unknown_group' | 'default' | 'premium';
|
|
28
28
|
export type ProgressStatus = 'unknown_status' | 'pending' | 'processing' | 'completed' | 'partially_completed' | 'failed' | 'aborted' | 'never_finished';
|
|
@@ -76,6 +76,24 @@ export interface HostingDomainCustomDomain {
|
|
|
76
76
|
*/
|
|
77
77
|
autoConfigDomainDns?: AutoConfigDomainDns;
|
|
78
78
|
}
|
|
79
|
+
export interface ControlPanel {
|
|
80
|
+
/**
|
|
81
|
+
* Control panel name.
|
|
82
|
+
*/
|
|
83
|
+
name: string;
|
|
84
|
+
/**
|
|
85
|
+
* Define if the control panel type is available to order.
|
|
86
|
+
*/
|
|
87
|
+
available: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* URL of the control panel's logo.
|
|
90
|
+
*/
|
|
91
|
+
logoUrl: string;
|
|
92
|
+
/**
|
|
93
|
+
* List of available languages for the control panel.
|
|
94
|
+
*/
|
|
95
|
+
availableLanguages: StdLanguageCode[];
|
|
96
|
+
}
|
|
79
97
|
export interface OfferOption {
|
|
80
98
|
/**
|
|
81
99
|
* Option ID.
|
|
@@ -289,6 +307,10 @@ export interface Offer {
|
|
|
289
307
|
* Defines a warning if the maximum value for an option in the offer is exceeded.
|
|
290
308
|
*/
|
|
291
309
|
quotaWarning: OfferOptionWarning;
|
|
310
|
+
/**
|
|
311
|
+
* Lists available control panels for the specified offer.
|
|
312
|
+
*/
|
|
313
|
+
controlPanels: ControlPanel[];
|
|
292
314
|
/**
|
|
293
315
|
* Region where the offer is hosted.
|
|
294
316
|
*/
|
|
@@ -352,24 +374,6 @@ export interface Backup {
|
|
|
352
374
|
*/
|
|
353
375
|
totalItems: number;
|
|
354
376
|
}
|
|
355
|
-
export interface ControlPanel {
|
|
356
|
-
/**
|
|
357
|
-
* Control panel name.
|
|
358
|
-
*/
|
|
359
|
-
name: string;
|
|
360
|
-
/**
|
|
361
|
-
* Define if the control panel type is available to order.
|
|
362
|
-
*/
|
|
363
|
-
available: boolean;
|
|
364
|
-
/**
|
|
365
|
-
* URL of the control panel's logo.
|
|
366
|
-
*/
|
|
367
|
-
logoUrl: string;
|
|
368
|
-
/**
|
|
369
|
-
* List of available languages for the control panel.
|
|
370
|
-
*/
|
|
371
|
-
availableLanguages: StdLanguageCode[];
|
|
372
|
-
}
|
|
373
377
|
export interface DatabaseUser {
|
|
374
378
|
/**
|
|
375
379
|
* Name of the database user.
|
|
@@ -1314,6 +1318,24 @@ export type HostingApiListHostingsRequest = {
|
|
|
1314
1318
|
*/
|
|
1315
1319
|
subdomain?: string;
|
|
1316
1320
|
};
|
|
1321
|
+
export type HostingApiMigrateControlPanelRequest = {
|
|
1322
|
+
/**
|
|
1323
|
+
* Region to target. If none is passed will use default region from the config.
|
|
1324
|
+
*/
|
|
1325
|
+
region?: ScwRegion;
|
|
1326
|
+
/**
|
|
1327
|
+
* Hosting ID to migrate to a new control panel.
|
|
1328
|
+
*/
|
|
1329
|
+
hostingId: string;
|
|
1330
|
+
/**
|
|
1331
|
+
* Control panel will migrate the hosting to a new server.
|
|
1332
|
+
*/
|
|
1333
|
+
controlPanelName: string;
|
|
1334
|
+
/**
|
|
1335
|
+
* Migration.
|
|
1336
|
+
*/
|
|
1337
|
+
offerId: string;
|
|
1338
|
+
};
|
|
1317
1339
|
export type HostingApiRemoveCustomDomainRequest = {
|
|
1318
1340
|
/**
|
|
1319
1341
|
* Region to target. If none is passed will use default region from the config.
|
|
@@ -1668,6 +1690,34 @@ export interface Session {
|
|
|
1668
1690
|
*/
|
|
1669
1691
|
url: string;
|
|
1670
1692
|
}
|
|
1693
|
+
export type WebsiteApiCreateWebsiteRequest = {
|
|
1694
|
+
/**
|
|
1695
|
+
* Region to target. If none is passed will use default region from the config.
|
|
1696
|
+
*/
|
|
1697
|
+
region?: ScwRegion;
|
|
1698
|
+
/**
|
|
1699
|
+
* Hosting ID to which the website is attached to.
|
|
1700
|
+
*/
|
|
1701
|
+
hostingId: string;
|
|
1702
|
+
/**
|
|
1703
|
+
* The new domain name or subdomain to use for the website.
|
|
1704
|
+
*/
|
|
1705
|
+
domainName: string;
|
|
1706
|
+
};
|
|
1707
|
+
export type WebsiteApiDeleteWebsiteRequest = {
|
|
1708
|
+
/**
|
|
1709
|
+
* Region to target. If none is passed will use default region from the config.
|
|
1710
|
+
*/
|
|
1711
|
+
region?: ScwRegion;
|
|
1712
|
+
/**
|
|
1713
|
+
* Hosting ID to which the website is detached from.
|
|
1714
|
+
*/
|
|
1715
|
+
hostingId: string;
|
|
1716
|
+
/**
|
|
1717
|
+
* The new domain name or subdomain attached to the website.
|
|
1718
|
+
*/
|
|
1719
|
+
domainName: string;
|
|
1720
|
+
};
|
|
1671
1721
|
export type WebsiteApiListWebsitesRequest = {
|
|
1672
1722
|
/**
|
|
1673
1723
|
* Region to target. If none is passed will use default region from the config.
|
package/package.json
CHANGED
|
@@ -1,23 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-webhosting",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Scaleway SDK webhosting",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
7
|
+
"README.md",
|
|
7
8
|
"dist"
|
|
8
9
|
],
|
|
9
10
|
"type": "module",
|
|
10
11
|
"exports": {
|
|
11
12
|
".": {
|
|
12
13
|
"types": "./dist/index.gen.d.ts",
|
|
13
|
-
"import": "./dist/index.gen.js",
|
|
14
|
-
"require": "./dist/index.gen.cjs",
|
|
15
14
|
"default": "./dist/index.gen.js"
|
|
16
15
|
},
|
|
17
16
|
"./*": {
|
|
18
17
|
"types": "./dist/*/index.gen.d.ts",
|
|
19
|
-
"import": "./dist/*/index.gen.js",
|
|
20
|
-
"require": "./dist/*/index.gen.cjs",
|
|
21
18
|
"default": "./dist/*/index.gen.js"
|
|
22
19
|
}
|
|
23
20
|
},
|
|
@@ -26,17 +23,17 @@
|
|
|
26
23
|
"directory": "packages_generated/webhosting"
|
|
27
24
|
},
|
|
28
25
|
"engines": {
|
|
29
|
-
"node": ">=20.19.
|
|
26
|
+
"node": ">=20.19.6"
|
|
30
27
|
},
|
|
31
28
|
"dependencies": {
|
|
32
29
|
"@scaleway/random-name": "5.1.2",
|
|
33
|
-
"@scaleway/sdk-std": "
|
|
30
|
+
"@scaleway/sdk-std": "2.1.0"
|
|
34
31
|
},
|
|
35
32
|
"peerDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^1.
|
|
33
|
+
"@scaleway/sdk-client": "^2.1.0"
|
|
37
34
|
},
|
|
38
35
|
"devDependencies": {
|
|
39
|
-
"@scaleway/sdk-client": "^1.
|
|
36
|
+
"@scaleway/sdk-client": "^2.1.0"
|
|
40
37
|
},
|
|
41
38
|
"scripts": {
|
|
42
39
|
"package:check": "pnpm publint",
|
package/dist/index.gen.cjs
DELETED