@scaleway/sdk-webhosting 2.4.1 → 2.6.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.
@@ -78,24 +78,6 @@ export interface HostingDomainCustomDomain {
78
78
  */
79
79
  autoConfigDomainDns?: AutoConfigDomainDns;
80
80
  }
81
- export interface ControlPanel {
82
- /**
83
- * Control panel name.
84
- */
85
- name: string;
86
- /**
87
- * Define if the control panel type is available to order.
88
- */
89
- available: boolean;
90
- /**
91
- * URL of the control panel's logo.
92
- */
93
- logoUrl: string;
94
- /**
95
- * List of available languages for the control panel.
96
- */
97
- availableLanguages: StdLanguageCode[];
98
- }
99
81
  export interface OfferCommitment {
100
82
  /**
101
83
  * Offer commitment ID.
@@ -126,6 +108,24 @@ export interface OfferCommitment {
126
108
  */
127
109
  next?: OfferCommitment;
128
110
  }
111
+ export interface ControlPanel {
112
+ /**
113
+ * Control panel name.
114
+ */
115
+ name: string;
116
+ /**
117
+ * Define if the control panel type is available to order.
118
+ */
119
+ available: boolean;
120
+ /**
121
+ * URL of the control panel's logo.
122
+ */
123
+ logoUrl: string;
124
+ /**
125
+ * List of available languages for the control panel.
126
+ */
127
+ availableLanguages: StdLanguageCode[];
128
+ }
129
129
  export interface OfferOption {
130
130
  /**
131
131
  * Option ID.
@@ -284,6 +284,26 @@ export interface Nameserver {
284
284
  */
285
285
  isDefault: boolean;
286
286
  }
287
+ export interface HostingCommitment {
288
+ /**
289
+ * Offer commitment for the specified hosting.
290
+ */
291
+ offerCommitment?: OfferCommitment;
292
+ /**
293
+ * Date and time the commitment started.
294
+ */
295
+ startAt?: Date;
296
+ /**
297
+ * Date and time the commitment ends.
298
+ */
299
+ endAt?: Date;
300
+ /**
301
+ * The hosting may be deleted, automatically renewed, or switched to
302
+ its configured post-commitment offer, which may have a different
303
+ price and billing period.
304
+ */
305
+ deleteHostingAtEnd: boolean;
306
+ }
287
307
  export interface HostingUser {
288
308
  /**
289
309
  * Main Web Hosting control panel username.
@@ -464,7 +484,7 @@ export interface HostingSummary {
464
484
  /**
465
485
  * @deprecated Main domain associated with the Web Hosting plan (deprecated, use domain_info).
466
486
  */
467
- domain: string;
487
+ domain?: string;
468
488
  /**
469
489
  * Whether the hosting is protected or not.
470
490
  */
@@ -472,7 +492,7 @@ export interface HostingSummary {
472
492
  /**
473
493
  * @deprecated DNS status of the Web Hosting plan.
474
494
  */
475
- dnsStatus: DnsRecordsStatus;
495
+ dnsStatus?: DnsRecordsStatus;
476
496
  /**
477
497
  * Name of the active offer for the Web Hosting plan.
478
498
  */
@@ -480,7 +500,7 @@ export interface HostingSummary {
480
500
  /**
481
501
  * @deprecated Main domain status of the Web Hosting plan.
482
502
  */
483
- domainStatus: DomainStatus;
503
+ domainStatus?: DomainStatus;
484
504
  /**
485
505
  * Region where the Web Hosting plan is hosted.
486
506
  */
@@ -956,19 +976,19 @@ export type DnsApiSyncDomainDnsRecordsRequest = {
956
976
  /**
957
977
  * @deprecated Whether or not to synchronize the web records (deprecated, use auto_config_domain_dns).
958
978
  */
959
- updateWebRecords: boolean;
979
+ updateWebRecords?: boolean;
960
980
  /**
961
981
  * @deprecated Whether or not to synchronize the mail records (deprecated, use auto_config_domain_dns).
962
982
  */
963
- updateMailRecords: boolean;
983
+ updateMailRecords?: boolean;
964
984
  /**
965
985
  * @deprecated Whether or not to synchronize all types of records. This one has priority (deprecated, use auto_config_domain_dns).
966
986
  */
967
- updateAllRecords: boolean;
987
+ updateAllRecords?: boolean;
968
988
  /**
969
989
  * @deprecated Whether or not to synchronize domain nameservers (deprecated, use auto_config_domain_dns).
970
990
  */
971
- updateNameservers: boolean;
991
+ updateNameservers?: boolean;
972
992
  /**
973
993
  * @deprecated Custom records to synchronize.
974
994
  */
@@ -994,7 +1014,7 @@ export interface DnsRecords {
994
1014
  /**
995
1015
  * @deprecated Records dns auto configuration settings (deprecated, use auto_config_domain_dns).
996
1016
  */
997
- dnsConfig: DomainDnsAction[];
1017
+ dnsConfig?: DomainDnsAction[];
998
1018
  /**
999
1019
  * Whether or not to synchronize each types of records.
1000
1020
  */
@@ -1024,7 +1044,7 @@ export interface Domain {
1024
1044
  /**
1025
1045
  * @deprecated A list of DNS-related actions that can be auto configured for the domain (deprecated, use auto_config_domain_dns instead).
1026
1046
  */
1027
- availableDnsActions: DomainDnsAction[];
1047
+ availableDnsActions?: DomainDnsAction[];
1028
1048
  /**
1029
1049
  * Whether or not to synchronize each type of record.
1030
1050
  */
@@ -1162,7 +1182,7 @@ export interface Hosting {
1162
1182
  /**
1163
1183
  * @deprecated Main domain associated with the Web Hosting plan (deprecated, use domain_info).
1164
1184
  */
1165
- domain: string;
1185
+ domain?: string;
1166
1186
  /**
1167
1187
  * Details of the Web Hosting plan offer and options.
1168
1188
  */
@@ -1178,7 +1198,7 @@ export interface Hosting {
1178
1198
  /**
1179
1199
  * @deprecated DNS status of the Web Hosting plan (deprecated, use domain_info).
1180
1200
  */
1181
- dnsStatus: DnsRecordsStatus;
1201
+ dnsStatus?: DnsRecordsStatus;
1182
1202
  /**
1183
1203
  * Current IPv4 address of the hosting.
1184
1204
  */
@@ -1194,7 +1214,7 @@ export interface Hosting {
1194
1214
  /**
1195
1215
  * @deprecated Main domain status of the Web Hosting plan (deprecated, use domain_info).
1196
1216
  */
1197
- domainStatus: DomainStatus;
1217
+ domainStatus?: DomainStatus;
1198
1218
  /**
1199
1219
  * Region where the Web Hosting plan is hosted.
1200
1220
  */
@@ -1203,6 +1223,10 @@ export interface Hosting {
1203
1223
  * Domain configuration block (subdomain, optional custom domain, and DNS settings).
1204
1224
  */
1205
1225
  domainInfo?: HostingDomain;
1226
+ /**
1227
+ * Commitment details to which the hosting is engaged.
1228
+ */
1229
+ commitment?: HostingCommitment;
1206
1230
  }
1207
1231
  export type HostingApiAddCustomDomainRequest = {
1208
1232
  /**
@@ -1267,6 +1291,10 @@ export type HostingApiCreateHostingRequest = {
1267
1291
  * Indicates whether to update hosting domain name servers and DNS records for domains managed by Scaleway Elements (deprecated, use auto_update_* fields instead).
1268
1292
  */
1269
1293
  autoConfigDomainDns?: AutoConfigDomainDns;
1294
+ /**
1295
+ * Offer commitment ID to which the hosting will be engaged.
1296
+ */
1297
+ offerCommitmentId?: string;
1270
1298
  };
1271
1299
  export type HostingApiCreateSessionRequest = {
1272
1300
  /**
@@ -1716,7 +1744,7 @@ export interface ResetHostingPasswordResponse {
1716
1744
  /**
1717
1745
  * @deprecated New temporary password (deprecated, use password_b64 instead).
1718
1746
  */
1719
- oneTimePassword: string;
1747
+ oneTimePassword?: string;
1720
1748
  /**
1721
1749
  * New temporary password, encoded in base64.
1722
1750
  */
File without changes
@@ -1,4 +1,5 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
+ //#region src/v1/validation-rules.gen.ts
2
3
  var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
3
4
  BackupApiListBackupsRequest: () => BackupApiListBackupsRequest,
4
5
  ControlPanelApiListControlPanelsRequest: () => ControlPanelApiListControlPanelsRequest,
@@ -11,74 +12,75 @@ var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
11
12
  OfferApiListOffersRequest: () => OfferApiListOffersRequest,
12
13
  WebsiteApiListWebsitesRequest: () => WebsiteApiListWebsitesRequest
13
14
  });
14
- const BackupApiListBackupsRequest = {
15
+ var BackupApiListBackupsRequest = {
15
16
  page: { greaterThan: 0 },
16
17
  pageSize: {
17
18
  greaterThan: 0,
18
19
  lessThanOrEqual: 100
19
20
  }
20
21
  };
21
- const ControlPanelApiListControlPanelsRequest = {
22
+ var ControlPanelApiListControlPanelsRequest = {
22
23
  page: { greaterThan: 0 },
23
24
  pageSize: {
24
25
  greaterThan: 0,
25
26
  lessThanOrEqual: 100
26
27
  }
27
28
  };
28
- const DatabaseApiListDatabaseUsersRequest = {
29
+ var DatabaseApiListDatabaseUsersRequest = {
29
30
  page: { greaterThan: 0 },
30
31
  pageSize: {
31
32
  greaterThan: 0,
32
33
  lessThanOrEqual: 100
33
34
  }
34
35
  };
35
- const DatabaseApiListDatabasesRequest = {
36
+ var DatabaseApiListDatabasesRequest = {
36
37
  page: { greaterThan: 0 },
37
38
  pageSize: {
38
39
  greaterThan: 0,
39
40
  lessThanOrEqual: 100
40
41
  }
41
42
  };
42
- const FreeDomainApiListFreeRootDomainsRequest = {
43
+ var FreeDomainApiListFreeRootDomainsRequest = {
43
44
  page: { greaterThan: 0 },
44
45
  pageSize: {
45
46
  greaterThan: 0,
46
47
  lessThanOrEqual: 100
47
48
  }
48
49
  };
49
- const FtpAccountApiListFtpAccountsRequest = {
50
+ var FtpAccountApiListFtpAccountsRequest = {
50
51
  page: { greaterThan: 0 },
51
52
  pageSize: {
52
53
  greaterThan: 0,
53
54
  lessThanOrEqual: 100
54
55
  }
55
56
  };
56
- const HostingApiListHostingsRequest = {
57
+ var HostingApiListHostingsRequest = {
57
58
  page: { greaterThan: 0 },
58
59
  pageSize: {
59
60
  greaterThan: 0,
60
61
  lessThanOrEqual: 100
61
62
  }
62
63
  };
63
- const MailAccountApiListMailAccountsRequest = {
64
+ var MailAccountApiListMailAccountsRequest = {
64
65
  page: { greaterThan: 0 },
65
66
  pageSize: {
66
67
  greaterThan: 0,
67
68
  lessThanOrEqual: 100
68
69
  }
69
70
  };
70
- const OfferApiListOffersRequest = {
71
+ var OfferApiListOffersRequest = {
71
72
  page: { greaterThan: 0 },
72
73
  pageSize: {
73
74
  greaterThan: 0,
74
75
  lessThanOrEqual: 100
75
76
  }
76
77
  };
77
- const WebsiteApiListWebsitesRequest = {
78
+ var WebsiteApiListWebsitesRequest = {
78
79
  page: { greaterThan: 0 },
79
80
  pageSize: {
80
81
  greaterThan: 0,
81
82
  lessThanOrEqual: 100
82
83
  }
83
84
  };
84
- export { validation_rules_gen_exports };
85
+ //#endregion
86
+ export { BackupApiListBackupsRequest, ControlPanelApiListControlPanelsRequest, DatabaseApiListDatabaseUsersRequest, DatabaseApiListDatabasesRequest, FreeDomainApiListFreeRootDomainsRequest, FtpAccountApiListFtpAccountsRequest, HostingApiListHostingsRequest, MailAccountApiListMailAccountsRequest, OfferApiListOffersRequest, WebsiteApiListWebsitesRequest, validation_rules_gen_exports };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-webhosting",
3
- "version": "2.4.1",
3
+ "version": "2.6.0",
4
4
  "description": "Scaleway SDK webhosting",
5
5
  "license": "Apache-2.0",
6
6
  "files": [
@@ -26,14 +26,14 @@
26
26
  "node": ">=20.19.6"
27
27
  },
28
28
  "dependencies": {
29
- "@scaleway/random-name": "5.1.2",
30
- "@scaleway/sdk-std": "2.2.1"
29
+ "@scaleway/random-name": "5.1.4",
30
+ "@scaleway/sdk-std": "2.2.2"
31
31
  },
32
32
  "peerDependencies": {
33
- "@scaleway/sdk-client": "^2.2.1"
33
+ "@scaleway/sdk-client": "^2.2.2"
34
34
  },
35
35
  "devDependencies": {
36
- "@scaleway/sdk-client": "^2.2.1"
36
+ "@scaleway/sdk-client": "^2.2.2"
37
37
  },
38
38
  "scripts": {
39
39
  "package:check": "pnpm publint",