@scaleway/sdk-webhosting 2.3.0 → 2.4.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 +1 -1
- package/dist/_virtual/_rolldown/runtime.js +11 -0
- package/dist/index.gen.js +2 -4
- package/dist/v1/api.gen.js +788 -1044
- package/dist/v1/content.gen.js +12 -19
- package/dist/v1/index.gen.d.ts +1 -1
- package/dist/v1/index.gen.js +74 -72
- package/dist/v1/marshalling.gen.js +435 -705
- package/dist/v1/types.gen.d.ts +49 -13
- package/dist/v1/validation-rules.gen.js +64 -82
- package/package.json +4 -4
package/dist/v1/types.gen.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import type { Money, Region as ScwRegion } from '@scaleway/sdk-client';
|
|
|
2
2
|
import type { LanguageCode as StdLanguageCode } from '@scaleway/sdk-std';
|
|
3
3
|
export type BackupItemType = 'unknown_backup_item_type' | 'full' | 'web' | 'mail' | 'db' | 'db_user' | 'ftp_user' | 'dns_zone' | 'cron_job' | 'ssl_certificate';
|
|
4
4
|
export type BackupStatus = 'unknown_backup_status' | 'active' | 'locked' | 'disabled' | 'damaged' | 'restoring';
|
|
5
|
+
export type BillingMode = 'unknown_billing_mode' | 'sample' | 'purchase_order';
|
|
5
6
|
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';
|
|
7
|
+
export type CommitmentType = 'unknown_commitment_type' | 'first_commitment' | 'next_commitment';
|
|
6
8
|
export type DnsRecordStatus = 'unknown_status' | 'valid' | 'invalid';
|
|
7
9
|
export type DnsRecordType = 'unknown_type' | 'a' | 'cname' | 'mx' | 'txt' | 'ns' | 'aaaa';
|
|
8
10
|
export type DnsRecordsStatus = 'unknown_status' | 'valid' | 'invalid';
|
|
@@ -94,6 +96,36 @@ export interface ControlPanel {
|
|
|
94
96
|
*/
|
|
95
97
|
availableLanguages: StdLanguageCode[];
|
|
96
98
|
}
|
|
99
|
+
export interface OfferCommitment {
|
|
100
|
+
/**
|
|
101
|
+
* Offer commitment ID.
|
|
102
|
+
*/
|
|
103
|
+
id: string;
|
|
104
|
+
/**
|
|
105
|
+
* Offer commitment type.
|
|
106
|
+
*/
|
|
107
|
+
type: CommitmentType;
|
|
108
|
+
/**
|
|
109
|
+
* Offer commitment name.
|
|
110
|
+
*/
|
|
111
|
+
billingMode: BillingMode;
|
|
112
|
+
/**
|
|
113
|
+
* Unique identifier used for billing.
|
|
114
|
+
*/
|
|
115
|
+
billingOperationPath: string;
|
|
116
|
+
/**
|
|
117
|
+
* Price of the offer commitment.
|
|
118
|
+
*/
|
|
119
|
+
price?: Money;
|
|
120
|
+
/**
|
|
121
|
+
* Duration of the offer commitment in months.
|
|
122
|
+
*/
|
|
123
|
+
durationInMonth: number;
|
|
124
|
+
/**
|
|
125
|
+
* Next offer commitment.
|
|
126
|
+
*/
|
|
127
|
+
next?: OfferCommitment;
|
|
128
|
+
}
|
|
97
129
|
export interface OfferOption {
|
|
98
130
|
/**
|
|
99
131
|
* Option ID.
|
|
@@ -311,6 +343,10 @@ export interface Offer {
|
|
|
311
343
|
* Lists available control panels for the specified offer.
|
|
312
344
|
*/
|
|
313
345
|
controlPanels: ControlPanel[];
|
|
346
|
+
/**
|
|
347
|
+
* Lists available offer commitments for the specified offer.
|
|
348
|
+
*/
|
|
349
|
+
commitments: OfferCommitment[];
|
|
314
350
|
/**
|
|
315
351
|
* Region where the offer is hosted.
|
|
316
352
|
*/
|
|
@@ -428,7 +464,7 @@ export interface HostingSummary {
|
|
|
428
464
|
/**
|
|
429
465
|
* @deprecated Main domain associated with the Web Hosting plan (deprecated, use domain_info).
|
|
430
466
|
*/
|
|
431
|
-
domain
|
|
467
|
+
domain: string;
|
|
432
468
|
/**
|
|
433
469
|
* Whether the hosting is protected or not.
|
|
434
470
|
*/
|
|
@@ -436,7 +472,7 @@ export interface HostingSummary {
|
|
|
436
472
|
/**
|
|
437
473
|
* @deprecated DNS status of the Web Hosting plan.
|
|
438
474
|
*/
|
|
439
|
-
dnsStatus
|
|
475
|
+
dnsStatus: DnsRecordsStatus;
|
|
440
476
|
/**
|
|
441
477
|
* Name of the active offer for the Web Hosting plan.
|
|
442
478
|
*/
|
|
@@ -444,7 +480,7 @@ export interface HostingSummary {
|
|
|
444
480
|
/**
|
|
445
481
|
* @deprecated Main domain status of the Web Hosting plan.
|
|
446
482
|
*/
|
|
447
|
-
domainStatus
|
|
483
|
+
domainStatus: DomainStatus;
|
|
448
484
|
/**
|
|
449
485
|
* Region where the Web Hosting plan is hosted.
|
|
450
486
|
*/
|
|
@@ -920,19 +956,19 @@ export type DnsApiSyncDomainDnsRecordsRequest = {
|
|
|
920
956
|
/**
|
|
921
957
|
* @deprecated Whether or not to synchronize the web records (deprecated, use auto_config_domain_dns).
|
|
922
958
|
*/
|
|
923
|
-
updateWebRecords
|
|
959
|
+
updateWebRecords: boolean;
|
|
924
960
|
/**
|
|
925
961
|
* @deprecated Whether or not to synchronize the mail records (deprecated, use auto_config_domain_dns).
|
|
926
962
|
*/
|
|
927
|
-
updateMailRecords
|
|
963
|
+
updateMailRecords: boolean;
|
|
928
964
|
/**
|
|
929
965
|
* @deprecated Whether or not to synchronize all types of records. This one has priority (deprecated, use auto_config_domain_dns).
|
|
930
966
|
*/
|
|
931
|
-
updateAllRecords
|
|
967
|
+
updateAllRecords: boolean;
|
|
932
968
|
/**
|
|
933
969
|
* @deprecated Whether or not to synchronize domain nameservers (deprecated, use auto_config_domain_dns).
|
|
934
970
|
*/
|
|
935
|
-
updateNameservers
|
|
971
|
+
updateNameservers: boolean;
|
|
936
972
|
/**
|
|
937
973
|
* @deprecated Custom records to synchronize.
|
|
938
974
|
*/
|
|
@@ -958,7 +994,7 @@ export interface DnsRecords {
|
|
|
958
994
|
/**
|
|
959
995
|
* @deprecated Records dns auto configuration settings (deprecated, use auto_config_domain_dns).
|
|
960
996
|
*/
|
|
961
|
-
dnsConfig
|
|
997
|
+
dnsConfig: DomainDnsAction[];
|
|
962
998
|
/**
|
|
963
999
|
* Whether or not to synchronize each types of records.
|
|
964
1000
|
*/
|
|
@@ -988,7 +1024,7 @@ export interface Domain {
|
|
|
988
1024
|
/**
|
|
989
1025
|
* @deprecated A list of DNS-related actions that can be auto configured for the domain (deprecated, use auto_config_domain_dns instead).
|
|
990
1026
|
*/
|
|
991
|
-
availableDnsActions
|
|
1027
|
+
availableDnsActions: DomainDnsAction[];
|
|
992
1028
|
/**
|
|
993
1029
|
* Whether or not to synchronize each type of record.
|
|
994
1030
|
*/
|
|
@@ -1126,7 +1162,7 @@ export interface Hosting {
|
|
|
1126
1162
|
/**
|
|
1127
1163
|
* @deprecated Main domain associated with the Web Hosting plan (deprecated, use domain_info).
|
|
1128
1164
|
*/
|
|
1129
|
-
domain
|
|
1165
|
+
domain: string;
|
|
1130
1166
|
/**
|
|
1131
1167
|
* Details of the Web Hosting plan offer and options.
|
|
1132
1168
|
*/
|
|
@@ -1142,7 +1178,7 @@ export interface Hosting {
|
|
|
1142
1178
|
/**
|
|
1143
1179
|
* @deprecated DNS status of the Web Hosting plan (deprecated, use domain_info).
|
|
1144
1180
|
*/
|
|
1145
|
-
dnsStatus
|
|
1181
|
+
dnsStatus: DnsRecordsStatus;
|
|
1146
1182
|
/**
|
|
1147
1183
|
* Current IPv4 address of the hosting.
|
|
1148
1184
|
*/
|
|
@@ -1158,7 +1194,7 @@ export interface Hosting {
|
|
|
1158
1194
|
/**
|
|
1159
1195
|
* @deprecated Main domain status of the Web Hosting plan (deprecated, use domain_info).
|
|
1160
1196
|
*/
|
|
1161
|
-
domainStatus
|
|
1197
|
+
domainStatus: DomainStatus;
|
|
1162
1198
|
/**
|
|
1163
1199
|
* Region where the Web Hosting plan is hosted.
|
|
1164
1200
|
*/
|
|
@@ -1680,7 +1716,7 @@ export interface ResetHostingPasswordResponse {
|
|
|
1680
1716
|
/**
|
|
1681
1717
|
* @deprecated New temporary password (deprecated, use password_b64 instead).
|
|
1682
1718
|
*/
|
|
1683
|
-
oneTimePassword
|
|
1719
|
+
oneTimePassword: string;
|
|
1684
1720
|
/**
|
|
1685
1721
|
* New temporary password, encoded in base64.
|
|
1686
1722
|
*/
|
|
@@ -1,102 +1,84 @@
|
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
|
|
3
|
+
BackupApiListBackupsRequest: () => BackupApiListBackupsRequest,
|
|
4
|
+
ControlPanelApiListControlPanelsRequest: () => ControlPanelApiListControlPanelsRequest,
|
|
5
|
+
DatabaseApiListDatabaseUsersRequest: () => DatabaseApiListDatabaseUsersRequest,
|
|
6
|
+
DatabaseApiListDatabasesRequest: () => DatabaseApiListDatabasesRequest,
|
|
7
|
+
FreeDomainApiListFreeRootDomainsRequest: () => FreeDomainApiListFreeRootDomainsRequest,
|
|
8
|
+
FtpAccountApiListFtpAccountsRequest: () => FtpAccountApiListFtpAccountsRequest,
|
|
9
|
+
HostingApiListHostingsRequest: () => HostingApiListHostingsRequest,
|
|
10
|
+
MailAccountApiListMailAccountsRequest: () => MailAccountApiListMailAccountsRequest,
|
|
11
|
+
OfferApiListOffersRequest: () => OfferApiListOffersRequest,
|
|
12
|
+
WebsiteApiListWebsitesRequest: () => WebsiteApiListWebsitesRequest
|
|
13
|
+
});
|
|
1
14
|
const BackupApiListBackupsRequest = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
lessThanOrEqual: 100
|
|
8
|
-
}
|
|
15
|
+
page: { greaterThan: 0 },
|
|
16
|
+
pageSize: {
|
|
17
|
+
greaterThan: 0,
|
|
18
|
+
lessThanOrEqual: 100
|
|
19
|
+
}
|
|
9
20
|
};
|
|
10
21
|
const ControlPanelApiListControlPanelsRequest = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
lessThanOrEqual: 100
|
|
17
|
-
}
|
|
22
|
+
page: { greaterThan: 0 },
|
|
23
|
+
pageSize: {
|
|
24
|
+
greaterThan: 0,
|
|
25
|
+
lessThanOrEqual: 100
|
|
26
|
+
}
|
|
18
27
|
};
|
|
19
28
|
const DatabaseApiListDatabaseUsersRequest = {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
lessThanOrEqual: 100
|
|
26
|
-
}
|
|
29
|
+
page: { greaterThan: 0 },
|
|
30
|
+
pageSize: {
|
|
31
|
+
greaterThan: 0,
|
|
32
|
+
lessThanOrEqual: 100
|
|
33
|
+
}
|
|
27
34
|
};
|
|
28
35
|
const DatabaseApiListDatabasesRequest = {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
lessThanOrEqual: 100
|
|
35
|
-
}
|
|
36
|
+
page: { greaterThan: 0 },
|
|
37
|
+
pageSize: {
|
|
38
|
+
greaterThan: 0,
|
|
39
|
+
lessThanOrEqual: 100
|
|
40
|
+
}
|
|
36
41
|
};
|
|
37
42
|
const FreeDomainApiListFreeRootDomainsRequest = {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
lessThanOrEqual: 100
|
|
44
|
-
}
|
|
43
|
+
page: { greaterThan: 0 },
|
|
44
|
+
pageSize: {
|
|
45
|
+
greaterThan: 0,
|
|
46
|
+
lessThanOrEqual: 100
|
|
47
|
+
}
|
|
45
48
|
};
|
|
46
49
|
const FtpAccountApiListFtpAccountsRequest = {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
lessThanOrEqual: 100
|
|
53
|
-
}
|
|
50
|
+
page: { greaterThan: 0 },
|
|
51
|
+
pageSize: {
|
|
52
|
+
greaterThan: 0,
|
|
53
|
+
lessThanOrEqual: 100
|
|
54
|
+
}
|
|
54
55
|
};
|
|
55
56
|
const HostingApiListHostingsRequest = {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
lessThanOrEqual: 100
|
|
62
|
-
}
|
|
57
|
+
page: { greaterThan: 0 },
|
|
58
|
+
pageSize: {
|
|
59
|
+
greaterThan: 0,
|
|
60
|
+
lessThanOrEqual: 100
|
|
61
|
+
}
|
|
63
62
|
};
|
|
64
63
|
const MailAccountApiListMailAccountsRequest = {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
lessThanOrEqual: 100
|
|
71
|
-
}
|
|
64
|
+
page: { greaterThan: 0 },
|
|
65
|
+
pageSize: {
|
|
66
|
+
greaterThan: 0,
|
|
67
|
+
lessThanOrEqual: 100
|
|
68
|
+
}
|
|
72
69
|
};
|
|
73
70
|
const OfferApiListOffersRequest = {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
lessThanOrEqual: 100
|
|
80
|
-
}
|
|
71
|
+
page: { greaterThan: 0 },
|
|
72
|
+
pageSize: {
|
|
73
|
+
greaterThan: 0,
|
|
74
|
+
lessThanOrEqual: 100
|
|
75
|
+
}
|
|
81
76
|
};
|
|
82
77
|
const WebsiteApiListWebsitesRequest = {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
lessThanOrEqual: 100
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
export {
|
|
92
|
-
BackupApiListBackupsRequest,
|
|
93
|
-
ControlPanelApiListControlPanelsRequest,
|
|
94
|
-
DatabaseApiListDatabaseUsersRequest,
|
|
95
|
-
DatabaseApiListDatabasesRequest,
|
|
96
|
-
FreeDomainApiListFreeRootDomainsRequest,
|
|
97
|
-
FtpAccountApiListFtpAccountsRequest,
|
|
98
|
-
HostingApiListHostingsRequest,
|
|
99
|
-
MailAccountApiListMailAccountsRequest,
|
|
100
|
-
OfferApiListOffersRequest,
|
|
101
|
-
WebsiteApiListWebsitesRequest
|
|
78
|
+
page: { greaterThan: 0 },
|
|
79
|
+
pageSize: {
|
|
80
|
+
greaterThan: 0,
|
|
81
|
+
lessThanOrEqual: 100
|
|
82
|
+
}
|
|
102
83
|
};
|
|
84
|
+
export { validation_rules_gen_exports };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-webhosting",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "Scaleway SDK webhosting",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@scaleway/random-name": "5.1.2",
|
|
30
|
-
"@scaleway/sdk-std": "2.
|
|
30
|
+
"@scaleway/sdk-std": "2.2.1"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@scaleway/sdk-client": "^2.1
|
|
33
|
+
"@scaleway/sdk-client": "^2.2.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^2.1
|
|
36
|
+
"@scaleway/sdk-client": "^2.2.1"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"package:check": "pnpm publint",
|