@scaleway/sdk-webhosting 1.1.3 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.gen.d.ts +1 -1
- package/dist/v1/api.gen.cjs +228 -0
- package/dist/v1/api.gen.d.ts +127 -9
- package/dist/v1/api.gen.js +230 -2
- package/dist/v1/content.gen.cjs +4 -1
- package/dist/v1/content.gen.d.ts +3 -1
- package/dist/v1/content.gen.js +4 -1
- package/dist/v1/index.gen.cjs +17 -0
- package/dist/v1/index.gen.d.ts +5 -5
- package/dist/v1/index.gen.js +20 -3
- package/dist/v1/marshalling.gen.cjs +243 -29
- package/dist/v1/marshalling.gen.d.ts +15 -1
- package/dist/v1/marshalling.gen.js +243 -29
- package/dist/v1/types.gen.d.ts +406 -25
- package/dist/v1/validation-rules.gen.cjs +20 -0
- package/dist/v1/validation-rules.gen.d.ts +18 -0
- package/dist/v1/validation-rules.gen.js +20 -0
- package/package.json +6 -6
package/dist/v1/types.gen.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { Money, Region as ScwRegion } from '@scaleway/sdk-client';
|
|
2
2
|
import type { LanguageCode as StdLanguageCode } from '@scaleway/sdk-std';
|
|
3
|
+
export type BackupItemType = 'unknown_backup_item_type' | 'full' | 'web' | 'mail' | 'db' | 'db_user' | 'ftp_user' | 'dns_zone' | 'cron_job' | 'ssl_certificate';
|
|
4
|
+
export type BackupStatus = 'unknown_backup_status' | 'active' | 'locked' | 'disabled' | 'damaged' | 'restoring';
|
|
5
|
+
export type CheckFreeDomainAvailabilityResponseUnavailableReason = 'unavailable_reason_unknown' | 'unavailable_reason_already_used' | 'unavailable_reason_too_short' | 'unavailable_reason_too_long' | 'unavailable_reason_invalid_characters' | 'unavailable_reason_starts_or_ends_with_hyphen' | 'unavailable_reason_contains_dots' | 'unavailable_reason_contains_reserved_keyword';
|
|
3
6
|
export type DnsRecordStatus = 'unknown_status' | 'valid' | 'invalid';
|
|
4
7
|
export type DnsRecordType = 'unknown_type' | 'a' | 'cname' | 'mx' | 'txt' | 'ns' | 'aaaa';
|
|
5
8
|
export type DnsRecordsStatus = 'unknown_status' | 'valid' | 'invalid';
|
|
@@ -9,7 +12,8 @@ export type DomainAvailabilityStatus = 'unknown_status' | 'available' | 'not_ava
|
|
|
9
12
|
export type DomainDnsAction = 'unknown_dns_action' | 'auto_config_all_records' | 'auto_config_web_records' | 'auto_config_mail_records' | 'auto_config_nameservers' | 'auto_config_none';
|
|
10
13
|
export type DomainStatus = 'unknown_status' | 'valid' | 'invalid' | 'validating' | 'error';
|
|
11
14
|
export type DomainZoneOwner = 'unknown_zone_owner' | 'external' | 'scaleway' | 'online' | 'webhosting';
|
|
12
|
-
export type HostingStatus = 'unknown_status' | 'delivering' | 'ready' | 'deleting' | 'error' | 'locked' | 'migrating';
|
|
15
|
+
export type HostingStatus = 'unknown_status' | 'delivering' | 'ready' | 'deleting' | 'error' | 'locked' | 'migrating' | 'updating';
|
|
16
|
+
export type ListBackupsRequestOrderBy = 'created_at_desc' | 'created_at_asc';
|
|
13
17
|
export type ListDatabaseUsersRequestOrderBy = 'username_asc' | 'username_desc';
|
|
14
18
|
export type ListDatabasesRequestOrderBy = 'database_name_asc' | 'database_name_desc';
|
|
15
19
|
export type ListFtpAccountsRequestOrderBy = 'username_asc' | 'username_desc';
|
|
@@ -21,6 +25,29 @@ export type NameserverStatus = 'unknown_status' | 'valid' | 'invalid';
|
|
|
21
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';
|
|
22
26
|
export type OfferOptionWarning = 'unknown_warning' | 'quota_exceeded_warning' | 'usage_low_warning';
|
|
23
27
|
export type PlatformPlatformGroup = 'unknown_group' | 'default' | 'premium';
|
|
28
|
+
export type ProgressStatus = 'unknown_status' | 'pending' | 'processing' | 'completed' | 'partially_completed' | 'failed' | 'aborted' | 'never_finished';
|
|
29
|
+
export interface AutoConfigDomainDns {
|
|
30
|
+
/**
|
|
31
|
+
* Whether or not to synchronize domain nameservers.
|
|
32
|
+
*/
|
|
33
|
+
nameservers: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Whether or not to synchronize web records.
|
|
36
|
+
*/
|
|
37
|
+
webRecords: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Whether or not to synchronize mail records.
|
|
40
|
+
*/
|
|
41
|
+
mailRecords: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Whether or not to synchronize all types of records. Takes priority over the other fields.
|
|
44
|
+
*/
|
|
45
|
+
allRecords: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* No automatic domain configuration. Users must configure their domain for the Web Hosting to work.
|
|
48
|
+
*/
|
|
49
|
+
none: boolean;
|
|
50
|
+
}
|
|
24
51
|
export interface PlatformControlPanelUrls {
|
|
25
52
|
/**
|
|
26
53
|
* URL to connect to the hosting control panel dashboard.
|
|
@@ -31,6 +58,24 @@ export interface PlatformControlPanelUrls {
|
|
|
31
58
|
*/
|
|
32
59
|
webmail: string;
|
|
33
60
|
}
|
|
61
|
+
export interface HostingDomainCustomDomain {
|
|
62
|
+
/**
|
|
63
|
+
* Custom domain linked to the hosting plan.
|
|
64
|
+
*/
|
|
65
|
+
domain: string;
|
|
66
|
+
/**
|
|
67
|
+
* Status of the custom domain verification.
|
|
68
|
+
*/
|
|
69
|
+
domainStatus: DomainStatus;
|
|
70
|
+
/**
|
|
71
|
+
* Status of the DNS configuration for the custom domain.
|
|
72
|
+
*/
|
|
73
|
+
dnsStatus: DnsRecordsStatus;
|
|
74
|
+
/**
|
|
75
|
+
* Indicates whether to auto-configure DNS for this domain.
|
|
76
|
+
*/
|
|
77
|
+
autoConfigDomainDns?: AutoConfigDomainDns;
|
|
78
|
+
}
|
|
34
79
|
export interface OfferOption {
|
|
35
80
|
/**
|
|
36
81
|
* Option ID.
|
|
@@ -75,31 +120,55 @@ export interface PlatformControlPanel {
|
|
|
75
120
|
*/
|
|
76
121
|
urls?: PlatformControlPanelUrls;
|
|
77
122
|
}
|
|
78
|
-
export interface
|
|
79
|
-
username: string;
|
|
80
|
-
password: string;
|
|
81
|
-
}
|
|
82
|
-
export interface AutoConfigDomainDns {
|
|
123
|
+
export interface BackupItem {
|
|
83
124
|
/**
|
|
84
|
-
*
|
|
125
|
+
* ID of the item.
|
|
85
126
|
*/
|
|
86
|
-
|
|
127
|
+
id: string;
|
|
87
128
|
/**
|
|
88
|
-
*
|
|
129
|
+
* Name of the item (e.g., `database name`, `email address`).
|
|
89
130
|
*/
|
|
90
|
-
|
|
131
|
+
name: string;
|
|
91
132
|
/**
|
|
92
|
-
*
|
|
133
|
+
* Type of the item (e.g., email, database, FTP).
|
|
93
134
|
*/
|
|
94
|
-
|
|
135
|
+
type: BackupItemType;
|
|
95
136
|
/**
|
|
96
|
-
*
|
|
137
|
+
* Size of the item in bytes.
|
|
97
138
|
*/
|
|
98
|
-
|
|
139
|
+
size: number;
|
|
99
140
|
/**
|
|
100
|
-
*
|
|
141
|
+
* Status of the item. Available values are `active`, `damaged`, and `restoring`.
|
|
101
142
|
*/
|
|
102
|
-
|
|
143
|
+
status: BackupStatus;
|
|
144
|
+
/**
|
|
145
|
+
* Date and time at which this item was backed up.
|
|
146
|
+
*/
|
|
147
|
+
createdAt?: Date;
|
|
148
|
+
}
|
|
149
|
+
export interface HostingDomain {
|
|
150
|
+
/**
|
|
151
|
+
* Optional free subdomain linked to the Web Hosting plan.
|
|
152
|
+
*/
|
|
153
|
+
subdomain: string;
|
|
154
|
+
/**
|
|
155
|
+
* Optional custom domain linked to the Web Hosting plan.
|
|
156
|
+
*/
|
|
157
|
+
customDomain?: HostingDomainCustomDomain;
|
|
158
|
+
}
|
|
159
|
+
export interface FreeDomain {
|
|
160
|
+
/**
|
|
161
|
+
* Custom prefix used for the free domain.
|
|
162
|
+
*/
|
|
163
|
+
slug: string;
|
|
164
|
+
/**
|
|
165
|
+
* Free root domain provided by Web Hosting, selected from the list returned by `ListFreeRootDomains`.
|
|
166
|
+
*/
|
|
167
|
+
rootDomain: string;
|
|
168
|
+
}
|
|
169
|
+
export interface CreateDatabaseRequestUser {
|
|
170
|
+
username: string;
|
|
171
|
+
password: string;
|
|
103
172
|
}
|
|
104
173
|
export interface CreateHostingRequestDomainConfiguration {
|
|
105
174
|
updateNameservers: boolean;
|
|
@@ -220,6 +289,10 @@ export interface Offer {
|
|
|
220
289
|
* Defines a warning if the maximum value for an option in the offer is exceeded.
|
|
221
290
|
*/
|
|
222
291
|
quotaWarning: OfferOptionWarning;
|
|
292
|
+
/**
|
|
293
|
+
* Region where the offer is hosted.
|
|
294
|
+
*/
|
|
295
|
+
region: ScwRegion;
|
|
223
296
|
}
|
|
224
297
|
export interface Platform {
|
|
225
298
|
/**
|
|
@@ -247,6 +320,38 @@ export interface Platform {
|
|
|
247
320
|
*/
|
|
248
321
|
controlPanel?: PlatformControlPanel;
|
|
249
322
|
}
|
|
323
|
+
export interface BackupItemGroup {
|
|
324
|
+
/**
|
|
325
|
+
* Type of items (e.g., email, database, FTP).
|
|
326
|
+
*/
|
|
327
|
+
type: BackupItemType;
|
|
328
|
+
/**
|
|
329
|
+
* List of individual backup items of this type.
|
|
330
|
+
*/
|
|
331
|
+
items: BackupItem[];
|
|
332
|
+
}
|
|
333
|
+
export interface Backup {
|
|
334
|
+
/**
|
|
335
|
+
* ID of the backup.
|
|
336
|
+
*/
|
|
337
|
+
id: string;
|
|
338
|
+
/**
|
|
339
|
+
* Total size of the backup in bytes.
|
|
340
|
+
*/
|
|
341
|
+
size: number;
|
|
342
|
+
/**
|
|
343
|
+
* Creation date of the backup.
|
|
344
|
+
*/
|
|
345
|
+
createdAt?: Date;
|
|
346
|
+
/**
|
|
347
|
+
* Status of the backup. Available values are `active`, `locked`, and `restoring`.
|
|
348
|
+
*/
|
|
349
|
+
status: BackupStatus;
|
|
350
|
+
/**
|
|
351
|
+
* Total number of restorable items in the backup.
|
|
352
|
+
*/
|
|
353
|
+
totalItems: number;
|
|
354
|
+
}
|
|
250
355
|
export interface ControlPanel {
|
|
251
356
|
/**
|
|
252
357
|
* Control panel name.
|
|
@@ -317,9 +422,9 @@ export interface HostingSummary {
|
|
|
317
422
|
*/
|
|
318
423
|
status: HostingStatus;
|
|
319
424
|
/**
|
|
320
|
-
* Main domain associated with the Web Hosting plan.
|
|
425
|
+
* @deprecated Main domain associated with the Web Hosting plan (deprecated, use domain_info).
|
|
321
426
|
*/
|
|
322
|
-
domain
|
|
427
|
+
domain?: string;
|
|
323
428
|
/**
|
|
324
429
|
* Whether the hosting is protected or not.
|
|
325
430
|
*/
|
|
@@ -333,13 +438,17 @@ export interface HostingSummary {
|
|
|
333
438
|
*/
|
|
334
439
|
offerName: string;
|
|
335
440
|
/**
|
|
336
|
-
* Main domain status of the Web Hosting plan.
|
|
441
|
+
* @deprecated Main domain status of the Web Hosting plan.
|
|
337
442
|
*/
|
|
338
|
-
domainStatus
|
|
443
|
+
domainStatus?: DomainStatus;
|
|
339
444
|
/**
|
|
340
445
|
* Region where the Web Hosting plan is hosted.
|
|
341
446
|
*/
|
|
342
447
|
region: ScwRegion;
|
|
448
|
+
/**
|
|
449
|
+
* Domain configuration block (subdomain, optional custom domain, and DNS settings).
|
|
450
|
+
*/
|
|
451
|
+
domainInfo?: HostingDomain;
|
|
343
452
|
}
|
|
344
453
|
export interface MailAccount {
|
|
345
454
|
/**
|
|
@@ -351,6 +460,24 @@ export interface MailAccount {
|
|
|
351
460
|
*/
|
|
352
461
|
username: string;
|
|
353
462
|
}
|
|
463
|
+
export interface ProgressSummary {
|
|
464
|
+
/**
|
|
465
|
+
* ID of the progress.
|
|
466
|
+
*/
|
|
467
|
+
id: string;
|
|
468
|
+
/**
|
|
469
|
+
* Total number of backup items included in the progress.
|
|
470
|
+
*/
|
|
471
|
+
backupItemsCount: number;
|
|
472
|
+
/**
|
|
473
|
+
* Completion percentage of the progress.
|
|
474
|
+
*/
|
|
475
|
+
percentage: number;
|
|
476
|
+
/**
|
|
477
|
+
* Current status of the progress operation.
|
|
478
|
+
*/
|
|
479
|
+
status: ProgressStatus;
|
|
480
|
+
}
|
|
354
481
|
export interface Website {
|
|
355
482
|
/**
|
|
356
483
|
* The domain of the website.
|
|
@@ -391,6 +518,122 @@ export interface DomainAvailability {
|
|
|
391
518
|
*/
|
|
392
519
|
price?: Money;
|
|
393
520
|
}
|
|
521
|
+
export type BackupApiGetBackupRequest = {
|
|
522
|
+
/**
|
|
523
|
+
* Region to target. If none is passed will use default region from the config.
|
|
524
|
+
*/
|
|
525
|
+
region?: ScwRegion;
|
|
526
|
+
/**
|
|
527
|
+
* UUID of the hosting account.
|
|
528
|
+
*/
|
|
529
|
+
hostingId: string;
|
|
530
|
+
/**
|
|
531
|
+
* ID of the backup to retrieve.
|
|
532
|
+
*/
|
|
533
|
+
backupId: string;
|
|
534
|
+
};
|
|
535
|
+
export type BackupApiGetProgressRequest = {
|
|
536
|
+
/**
|
|
537
|
+
* Region to target. If none is passed will use default region from the config.
|
|
538
|
+
*/
|
|
539
|
+
region?: ScwRegion;
|
|
540
|
+
/**
|
|
541
|
+
* ID of the hosting associated with the progress.
|
|
542
|
+
*/
|
|
543
|
+
hostingId: string;
|
|
544
|
+
/**
|
|
545
|
+
* ID of the progress to retrieve.
|
|
546
|
+
*/
|
|
547
|
+
progressId: string;
|
|
548
|
+
};
|
|
549
|
+
export type BackupApiListBackupItemsRequest = {
|
|
550
|
+
/**
|
|
551
|
+
* Region to target. If none is passed will use default region from the config.
|
|
552
|
+
*/
|
|
553
|
+
region?: ScwRegion;
|
|
554
|
+
/**
|
|
555
|
+
* UUID of the hosting account.
|
|
556
|
+
*/
|
|
557
|
+
hostingId: string;
|
|
558
|
+
/**
|
|
559
|
+
* ID of the backup to list items from.
|
|
560
|
+
*/
|
|
561
|
+
backupId: string;
|
|
562
|
+
};
|
|
563
|
+
export type BackupApiListBackupsRequest = {
|
|
564
|
+
/**
|
|
565
|
+
* Region to target. If none is passed will use default region from the config.
|
|
566
|
+
*/
|
|
567
|
+
region?: ScwRegion;
|
|
568
|
+
/**
|
|
569
|
+
* UUID of the hosting account.
|
|
570
|
+
*/
|
|
571
|
+
hostingId: string;
|
|
572
|
+
/**
|
|
573
|
+
* Page number to retrieve.
|
|
574
|
+
*/
|
|
575
|
+
page?: number;
|
|
576
|
+
/**
|
|
577
|
+
* Number of backups to return per page.
|
|
578
|
+
*/
|
|
579
|
+
pageSize?: number;
|
|
580
|
+
/**
|
|
581
|
+
* Order in which to return the list of backups.
|
|
582
|
+
*/
|
|
583
|
+
orderBy?: ListBackupsRequestOrderBy;
|
|
584
|
+
};
|
|
585
|
+
export type BackupApiListRecentProgressesRequest = {
|
|
586
|
+
/**
|
|
587
|
+
* Region to target. If none is passed will use default region from the config.
|
|
588
|
+
*/
|
|
589
|
+
region?: ScwRegion;
|
|
590
|
+
/**
|
|
591
|
+
* ID of the hosting linked to the progress.
|
|
592
|
+
*/
|
|
593
|
+
hostingId: string;
|
|
594
|
+
};
|
|
595
|
+
export type BackupApiRestoreBackupItemsRequest = {
|
|
596
|
+
/**
|
|
597
|
+
* Region to target. If none is passed will use default region from the config.
|
|
598
|
+
*/
|
|
599
|
+
region?: ScwRegion;
|
|
600
|
+
/**
|
|
601
|
+
* UUID of the hosting account.
|
|
602
|
+
*/
|
|
603
|
+
hostingId: string;
|
|
604
|
+
/**
|
|
605
|
+
* List of backup item IDs to restore individually.
|
|
606
|
+
*/
|
|
607
|
+
itemIds?: string[];
|
|
608
|
+
};
|
|
609
|
+
export type BackupApiRestoreBackupRequest = {
|
|
610
|
+
/**
|
|
611
|
+
* Region to target. If none is passed will use default region from the config.
|
|
612
|
+
*/
|
|
613
|
+
region?: ScwRegion;
|
|
614
|
+
/**
|
|
615
|
+
* UUID of the hosting account.
|
|
616
|
+
*/
|
|
617
|
+
hostingId: string;
|
|
618
|
+
/**
|
|
619
|
+
* ID of the backup to fully restore.
|
|
620
|
+
*/
|
|
621
|
+
backupId: string;
|
|
622
|
+
};
|
|
623
|
+
export interface CheckFreeDomainAvailabilityResponse {
|
|
624
|
+
/**
|
|
625
|
+
* The free domain that was checked.
|
|
626
|
+
*/
|
|
627
|
+
freeDomain?: FreeDomain;
|
|
628
|
+
/**
|
|
629
|
+
* Whether the free domain is available.
|
|
630
|
+
*/
|
|
631
|
+
isAvailable: boolean;
|
|
632
|
+
/**
|
|
633
|
+
* Reason the domain is unavailable, if applicable.
|
|
634
|
+
*/
|
|
635
|
+
reason?: CheckFreeDomainAvailabilityResponseUnavailableReason;
|
|
636
|
+
}
|
|
394
637
|
export interface CheckUserOwnsDomainResponse {
|
|
395
638
|
/**
|
|
396
639
|
* Indicates whether the specified project owns the domain.
|
|
@@ -730,6 +973,10 @@ export interface Domain {
|
|
|
730
973
|
* Zone owner of the domain.
|
|
731
974
|
*/
|
|
732
975
|
owner: DomainZoneOwner;
|
|
976
|
+
/**
|
|
977
|
+
* Main domain for this zone.
|
|
978
|
+
*/
|
|
979
|
+
zoneDomainName: string;
|
|
733
980
|
/**
|
|
734
981
|
* A list of actions that can be performed on the domain.
|
|
735
982
|
*/
|
|
@@ -743,6 +990,34 @@ export interface Domain {
|
|
|
743
990
|
*/
|
|
744
991
|
autoConfigDomainDns?: AutoConfigDomainDns;
|
|
745
992
|
}
|
|
993
|
+
export type FreeDomainApiCheckFreeDomainAvailabilityRequest = {
|
|
994
|
+
/**
|
|
995
|
+
* Region to target. If none is passed will use default region from the config.
|
|
996
|
+
*/
|
|
997
|
+
region?: ScwRegion;
|
|
998
|
+
/**
|
|
999
|
+
* Custom prefix used for the free domain.
|
|
1000
|
+
*/
|
|
1001
|
+
slug: string;
|
|
1002
|
+
/**
|
|
1003
|
+
* Free root domain provided by Web Hosting, selected from the list returned by `ListFreeRootDomains`.
|
|
1004
|
+
*/
|
|
1005
|
+
rootDomain: string;
|
|
1006
|
+
};
|
|
1007
|
+
export type FreeDomainApiListFreeRootDomainsRequest = {
|
|
1008
|
+
/**
|
|
1009
|
+
* Region to target. If none is passed will use default region from the config.
|
|
1010
|
+
*/
|
|
1011
|
+
region?: ScwRegion;
|
|
1012
|
+
/**
|
|
1013
|
+
* Page number to return, from the paginated results (must be a positive integer).
|
|
1014
|
+
*/
|
|
1015
|
+
page?: number;
|
|
1016
|
+
/**
|
|
1017
|
+
* Number of free root domains to return (must be a positive integer lower or equal to 100).
|
|
1018
|
+
*/
|
|
1019
|
+
pageSize?: number;
|
|
1020
|
+
};
|
|
746
1021
|
export type FtpAccountApiChangeFtpAccountPasswordRequest = {
|
|
747
1022
|
/**
|
|
748
1023
|
* Region to target. If none is passed will use default region from the config.
|
|
@@ -845,9 +1120,9 @@ export interface Hosting {
|
|
|
845
1120
|
*/
|
|
846
1121
|
status: HostingStatus;
|
|
847
1122
|
/**
|
|
848
|
-
* Main domain associated with the Web Hosting plan.
|
|
1123
|
+
* @deprecated Main domain associated with the Web Hosting plan (deprecated, use domain_info).
|
|
849
1124
|
*/
|
|
850
|
-
domain
|
|
1125
|
+
domain?: string;
|
|
851
1126
|
/**
|
|
852
1127
|
* Details of the Web Hosting plan offer and options.
|
|
853
1128
|
*/
|
|
@@ -861,7 +1136,7 @@ export interface Hosting {
|
|
|
861
1136
|
*/
|
|
862
1137
|
tags: string[];
|
|
863
1138
|
/**
|
|
864
|
-
* @deprecated DNS status of the Web Hosting plan.
|
|
1139
|
+
* @deprecated DNS status of the Web Hosting plan (deprecated, use domain_info).
|
|
865
1140
|
*/
|
|
866
1141
|
dnsStatus?: DnsRecordsStatus;
|
|
867
1142
|
/**
|
|
@@ -877,14 +1152,32 @@ export interface Hosting {
|
|
|
877
1152
|
*/
|
|
878
1153
|
user?: HostingUser;
|
|
879
1154
|
/**
|
|
880
|
-
* Main domain status of the Web Hosting plan.
|
|
1155
|
+
* @deprecated Main domain status of the Web Hosting plan (deprecated, use domain_info).
|
|
881
1156
|
*/
|
|
882
|
-
domainStatus
|
|
1157
|
+
domainStatus?: DomainStatus;
|
|
883
1158
|
/**
|
|
884
1159
|
* Region where the Web Hosting plan is hosted.
|
|
885
1160
|
*/
|
|
886
1161
|
region: ScwRegion;
|
|
1162
|
+
/**
|
|
1163
|
+
* Domain configuration block (subdomain, optional custom domain, and DNS settings).
|
|
1164
|
+
*/
|
|
1165
|
+
domainInfo?: HostingDomain;
|
|
887
1166
|
}
|
|
1167
|
+
export type HostingApiAddCustomDomainRequest = {
|
|
1168
|
+
/**
|
|
1169
|
+
* Region to target. If none is passed will use default region from the config.
|
|
1170
|
+
*/
|
|
1171
|
+
region?: ScwRegion;
|
|
1172
|
+
/**
|
|
1173
|
+
* Hosting ID to which the custom domain is attached to.
|
|
1174
|
+
*/
|
|
1175
|
+
hostingId: string;
|
|
1176
|
+
/**
|
|
1177
|
+
* The custom domain name to attach to the hosting.
|
|
1178
|
+
*/
|
|
1179
|
+
domainName: string;
|
|
1180
|
+
};
|
|
888
1181
|
export type HostingApiCreateHostingRequest = {
|
|
889
1182
|
/**
|
|
890
1183
|
* Region to target. If none is passed will use default region from the config.
|
|
@@ -910,6 +1203,10 @@ export type HostingApiCreateHostingRequest = {
|
|
|
910
1203
|
* Domain name to link to the Web Hosting plan. You must already own this domain name, and have completed the DNS validation process beforehand.
|
|
911
1204
|
*/
|
|
912
1205
|
domain: string;
|
|
1206
|
+
/**
|
|
1207
|
+
* The name prefix to use as a free subdomain (for example, `mysite`) assigned to the Web Hosting plan. The full domain will be automatically created by adding it to the fixed base domain (e.g. `mysite.scw.site`). You do not need to include the base domain yourself.
|
|
1208
|
+
*/
|
|
1209
|
+
subdomain?: string;
|
|
913
1210
|
/**
|
|
914
1211
|
* List of the Web Hosting plan options IDs with their quantities.
|
|
915
1212
|
*/
|
|
@@ -1012,6 +1309,24 @@ export type HostingApiListHostingsRequest = {
|
|
|
1012
1309
|
* Name of the control panel to filter for, only Web Hosting plans from this control panel will be returned.
|
|
1013
1310
|
*/
|
|
1014
1311
|
controlPanels?: string[];
|
|
1312
|
+
/**
|
|
1313
|
+
* Optional free subdomain linked to the Web Hosting plan.
|
|
1314
|
+
*/
|
|
1315
|
+
subdomain?: string;
|
|
1316
|
+
};
|
|
1317
|
+
export type HostingApiRemoveCustomDomainRequest = {
|
|
1318
|
+
/**
|
|
1319
|
+
* Region to target. If none is passed will use default region from the config.
|
|
1320
|
+
*/
|
|
1321
|
+
region?: ScwRegion;
|
|
1322
|
+
/**
|
|
1323
|
+
* Hosting ID to which the custom domain is detached from.
|
|
1324
|
+
*/
|
|
1325
|
+
hostingId: string;
|
|
1326
|
+
/**
|
|
1327
|
+
* The custom domain name to detach from the hosting.
|
|
1328
|
+
*/
|
|
1329
|
+
domainName: string;
|
|
1015
1330
|
};
|
|
1016
1331
|
export type HostingApiResetHostingPasswordRequest = {
|
|
1017
1332
|
/**
|
|
@@ -1053,6 +1368,26 @@ export type HostingApiUpdateHostingRequest = {
|
|
|
1053
1368
|
*/
|
|
1054
1369
|
protected?: boolean;
|
|
1055
1370
|
};
|
|
1371
|
+
export interface ListBackupItemsResponse {
|
|
1372
|
+
/**
|
|
1373
|
+
* Total number of backup item groups.
|
|
1374
|
+
*/
|
|
1375
|
+
totalCount: number;
|
|
1376
|
+
/**
|
|
1377
|
+
* List of backup item groups categorized by type.
|
|
1378
|
+
*/
|
|
1379
|
+
groups: BackupItemGroup[];
|
|
1380
|
+
}
|
|
1381
|
+
export interface ListBackupsResponse {
|
|
1382
|
+
/**
|
|
1383
|
+
* Total number of available backups.
|
|
1384
|
+
*/
|
|
1385
|
+
totalCount: number;
|
|
1386
|
+
/**
|
|
1387
|
+
* List of available backups.
|
|
1388
|
+
*/
|
|
1389
|
+
backups: Backup[];
|
|
1390
|
+
}
|
|
1056
1391
|
export interface ListControlPanelsResponse {
|
|
1057
1392
|
/**
|
|
1058
1393
|
* Number of control panels returned.
|
|
@@ -1083,6 +1418,16 @@ export interface ListDatabasesResponse {
|
|
|
1083
1418
|
*/
|
|
1084
1419
|
databases: Database[];
|
|
1085
1420
|
}
|
|
1421
|
+
export interface ListFreeRootDomainsResponse {
|
|
1422
|
+
/**
|
|
1423
|
+
* List of free root domains available for the Web Hosting.
|
|
1424
|
+
*/
|
|
1425
|
+
rootDomains: string[];
|
|
1426
|
+
/**
|
|
1427
|
+
* Total number of free root domains available.
|
|
1428
|
+
*/
|
|
1429
|
+
totalCount: number;
|
|
1430
|
+
}
|
|
1086
1431
|
export interface ListFtpAccountsResponse {
|
|
1087
1432
|
/**
|
|
1088
1433
|
* Total number of FTP accounts.
|
|
@@ -1123,6 +1468,12 @@ export interface ListOffersResponse {
|
|
|
1123
1468
|
*/
|
|
1124
1469
|
offers: Offer[];
|
|
1125
1470
|
}
|
|
1471
|
+
export interface ListRecentProgressesResponse {
|
|
1472
|
+
/**
|
|
1473
|
+
* List of summarized progress entries.
|
|
1474
|
+
*/
|
|
1475
|
+
progresses: ProgressSummary[];
|
|
1476
|
+
}
|
|
1126
1477
|
export interface ListWebsitesResponse {
|
|
1127
1478
|
/**
|
|
1128
1479
|
* Total number of websites.
|
|
@@ -1247,6 +1598,24 @@ export type OfferApiListOffersRequest = {
|
|
|
1247
1598
|
*/
|
|
1248
1599
|
controlPanels?: string[];
|
|
1249
1600
|
};
|
|
1601
|
+
export interface Progress {
|
|
1602
|
+
/**
|
|
1603
|
+
* ID of the progress.
|
|
1604
|
+
*/
|
|
1605
|
+
id: string;
|
|
1606
|
+
/**
|
|
1607
|
+
* Groups of backup items included in this progress.
|
|
1608
|
+
*/
|
|
1609
|
+
backupItemGroups: BackupItemGroup[];
|
|
1610
|
+
/**
|
|
1611
|
+
* Completion percentage of the progress.
|
|
1612
|
+
*/
|
|
1613
|
+
percentage: number;
|
|
1614
|
+
/**
|
|
1615
|
+
* Current status of the progress operation.
|
|
1616
|
+
*/
|
|
1617
|
+
status: ProgressStatus;
|
|
1618
|
+
}
|
|
1250
1619
|
export interface ResetHostingPasswordResponse {
|
|
1251
1620
|
/**
|
|
1252
1621
|
* @deprecated New temporary password (deprecated, use password_b64 instead).
|
|
@@ -1275,6 +1644,18 @@ export interface ResourceSummary {
|
|
|
1275
1644
|
*/
|
|
1276
1645
|
websitesCount: number;
|
|
1277
1646
|
}
|
|
1647
|
+
export interface RestoreBackupItemsResponse {
|
|
1648
|
+
/**
|
|
1649
|
+
* Identifier used to track the item restoration progress.
|
|
1650
|
+
*/
|
|
1651
|
+
progressId: string;
|
|
1652
|
+
}
|
|
1653
|
+
export interface RestoreBackupResponse {
|
|
1654
|
+
/**
|
|
1655
|
+
* Identifier used to track the backup restoration progress.
|
|
1656
|
+
*/
|
|
1657
|
+
progressId: string;
|
|
1658
|
+
}
|
|
1278
1659
|
export interface SearchDomainsResponse {
|
|
1279
1660
|
/**
|
|
1280
1661
|
* List of domains availability.
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const BackupApiListBackupsRequest = {
|
|
4
|
+
page: {
|
|
5
|
+
greaterThan: 0
|
|
6
|
+
},
|
|
7
|
+
pageSize: {
|
|
8
|
+
greaterThan: 0,
|
|
9
|
+
lessThanOrEqual: 100
|
|
10
|
+
}
|
|
11
|
+
};
|
|
3
12
|
const ControlPanelApiListControlPanelsRequest = {
|
|
4
13
|
page: {
|
|
5
14
|
greaterThan: 0
|
|
@@ -27,6 +36,15 @@ const DatabaseApiListDatabasesRequest = {
|
|
|
27
36
|
lessThanOrEqual: 100
|
|
28
37
|
}
|
|
29
38
|
};
|
|
39
|
+
const FreeDomainApiListFreeRootDomainsRequest = {
|
|
40
|
+
page: {
|
|
41
|
+
greaterThan: 0
|
|
42
|
+
},
|
|
43
|
+
pageSize: {
|
|
44
|
+
greaterThan: 0,
|
|
45
|
+
lessThanOrEqual: 100
|
|
46
|
+
}
|
|
47
|
+
};
|
|
30
48
|
const FtpAccountApiListFtpAccountsRequest = {
|
|
31
49
|
page: {
|
|
32
50
|
greaterThan: 0
|
|
@@ -72,9 +90,11 @@ const WebsiteApiListWebsitesRequest = {
|
|
|
72
90
|
lessThanOrEqual: 100
|
|
73
91
|
}
|
|
74
92
|
};
|
|
93
|
+
exports.BackupApiListBackupsRequest = BackupApiListBackupsRequest;
|
|
75
94
|
exports.ControlPanelApiListControlPanelsRequest = ControlPanelApiListControlPanelsRequest;
|
|
76
95
|
exports.DatabaseApiListDatabaseUsersRequest = DatabaseApiListDatabaseUsersRequest;
|
|
77
96
|
exports.DatabaseApiListDatabasesRequest = DatabaseApiListDatabasesRequest;
|
|
97
|
+
exports.FreeDomainApiListFreeRootDomainsRequest = FreeDomainApiListFreeRootDomainsRequest;
|
|
78
98
|
exports.FtpAccountApiListFtpAccountsRequest = FtpAccountApiListFtpAccountsRequest;
|
|
79
99
|
exports.HostingApiListHostingsRequest = HostingApiListHostingsRequest;
|
|
80
100
|
exports.MailAccountApiListMailAccountsRequest = MailAccountApiListMailAccountsRequest;
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
export declare const BackupApiListBackupsRequest: {
|
|
2
|
+
page: {
|
|
3
|
+
greaterThan: number;
|
|
4
|
+
};
|
|
5
|
+
pageSize: {
|
|
6
|
+
greaterThan: number;
|
|
7
|
+
lessThanOrEqual: number;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
1
10
|
export declare const ControlPanelApiListControlPanelsRequest: {
|
|
2
11
|
page: {
|
|
3
12
|
greaterThan: number;
|
|
@@ -25,6 +34,15 @@ export declare const DatabaseApiListDatabasesRequest: {
|
|
|
25
34
|
lessThanOrEqual: number;
|
|
26
35
|
};
|
|
27
36
|
};
|
|
37
|
+
export declare const FreeDomainApiListFreeRootDomainsRequest: {
|
|
38
|
+
page: {
|
|
39
|
+
greaterThan: number;
|
|
40
|
+
};
|
|
41
|
+
pageSize: {
|
|
42
|
+
greaterThan: number;
|
|
43
|
+
lessThanOrEqual: number;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
28
46
|
export declare const FtpAccountApiListFtpAccountsRequest: {
|
|
29
47
|
page: {
|
|
30
48
|
greaterThan: number;
|