@scaleway/sdk 2.57.0 → 2.59.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/api/audit_trail/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/audit_trail/v1alpha1/marshalling.gen.cjs +12 -0
- package/dist/api/audit_trail/v1alpha1/marshalling.gen.js +12 -0
- package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +28 -0
- package/dist/api/iam/v1alpha1/api.gen.cjs +63 -7
- package/dist/api/iam/v1alpha1/api.gen.d.ts +35 -8
- package/dist/api/iam/v1alpha1/api.gen.js +64 -8
- package/dist/api/iam/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.cjs +23 -0
- package/dist/api/iam/v1alpha1/marshalling.gen.d.ts +4 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.js +23 -0
- package/dist/api/iam/v1alpha1/types.gen.d.ts +31 -3
- package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +8 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +7 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.js +9 -1
- package/dist/api/ipam/v1/api.gen.cjs +1 -0
- package/dist/api/ipam/v1/api.gen.js +1 -0
- package/dist/api/ipam/v1/types.gen.d.ts +5 -0
- package/dist/api/k8s/v1/marshalling.gen.cjs +1 -2
- package/dist/api/k8s/v1/marshalling.gen.js +1 -2
- package/dist/api/k8s/v1/types.gen.d.ts +2 -7
- package/dist/api/marketplace/v2/types.gen.d.ts +5 -2
- package/dist/api/mnq/v1beta1/api.gen.cjs +47 -42
- package/dist/api/mnq/v1beta1/api.gen.d.ts +51 -49
- package/dist/api/mnq/v1beta1/api.gen.js +47 -42
- package/dist/api/mnq/v1beta1/types.gen.d.ts +37 -32
- package/dist/api/tem/v1alpha1/types.gen.d.ts +1 -1
- package/dist/api/vpcgw/index.gen.cjs +2 -0
- package/dist/api/vpcgw/index.gen.d.ts +1 -0
- package/dist/api/vpcgw/index.gen.js +3 -1
- package/dist/api/vpcgw/v2/api.gen.cjs +517 -0
- package/dist/api/vpcgw/v2/api.gen.d.ts +267 -0
- package/dist/api/vpcgw/v2/api.gen.js +517 -0
- package/dist/api/vpcgw/v2/content.gen.cjs +15 -0
- package/dist/api/vpcgw/v2/content.gen.d.ts +5 -0
- package/dist/api/vpcgw/v2/content.gen.js +15 -0
- package/dist/api/vpcgw/v2/index.gen.cjs +7 -0
- package/dist/api/vpcgw/v2/index.gen.d.ts +3 -0
- package/dist/api/vpcgw/v2/index.gen.js +7 -0
- package/dist/api/vpcgw/v2/marshalling.gen.cjs +259 -0
- package/dist/api/vpcgw/v2/marshalling.gen.d.ts +22 -0
- package/dist/api/vpcgw/v2/marshalling.gen.js +259 -0
- package/dist/api/vpcgw/v2/types.gen.d.ts +450 -0
- package/dist/api/webhosting/v1/api.gen.cjs +41 -2
- package/dist/api/webhosting/v1/api.gen.d.ts +26 -2
- package/dist/api/webhosting/v1/api.gen.js +42 -3
- package/dist/api/webhosting/v1/index.gen.cjs +1 -0
- package/dist/api/webhosting/v1/index.gen.d.ts +2 -2
- package/dist/api/webhosting/v1/index.gen.js +2 -1
- package/dist/api/webhosting/v1/marshalling.gen.cjs +137 -51
- package/dist/api/webhosting/v1/marshalling.gen.d.ts +4 -1
- package/dist/api/webhosting/v1/marshalling.gen.js +138 -52
- package/dist/api/webhosting/v1/types.gen.d.ts +144 -60
- package/dist/scw/constants.cjs +1 -1
- package/dist/scw/constants.d.ts +2 -2
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { Money, Region } from '../../../bridge';
|
|
2
2
|
import type { LanguageCode as StdLanguageCode } from '../../std/types.gen';
|
|
3
|
-
export type
|
|
3
|
+
export type DnsRecordStatus = 'unknown_status' | 'valid' | 'invalid';
|
|
4
|
+
export type DnsRecordType = 'unknown_type' | 'a' | 'cname' | 'mx' | 'txt' | 'ns' | 'aaaa';
|
|
5
|
+
export type DnsRecordsStatus = 'unknown_status' | 'valid' | 'invalid';
|
|
4
6
|
export type HostingStatus = 'unknown_status' | 'delivering' | 'ready' | 'deleting' | 'error' | 'locked' | 'migrating';
|
|
5
7
|
export type HostingSummaryStatus = 'unknown_status' | 'delivering' | 'ready' | 'deleting' | 'error' | 'locked' | 'migrating';
|
|
6
8
|
export type ListDatabaseUsersRequestOrderBy = 'username_asc' | 'username_desc';
|
|
@@ -10,8 +12,16 @@ export type ListHostingsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
|
|
|
10
12
|
export type ListMailAccountsRequestOrderBy = 'username_asc' | 'username_desc' | 'domain_asc' | 'domain_desc';
|
|
11
13
|
export type ListOffersRequestOrderBy = 'price_asc';
|
|
12
14
|
export type ListWebsitesRequestOrderBy = 'domain_asc' | 'domain_desc';
|
|
15
|
+
export type NameserverStatus = 'unknown_status' | 'valid' | 'invalid';
|
|
13
16
|
export type OfferOptionName = 'unknown_name' | 'domain_count' | 'email_count' | 'storage_gb' | 'vcpu_count' | 'ram_gb' | 'backup' | 'dedicated_ip';
|
|
14
17
|
export type OfferOptionWarning = 'unknown_warning' | 'quota_exceeded_warning';
|
|
18
|
+
export type PlatformPlatformGroup = 'unknown_group' | 'default' | 'premium';
|
|
19
|
+
export interface PlatformControlPanelUrls {
|
|
20
|
+
/** URL to connect to the hosting control panel dashboard. */
|
|
21
|
+
dashboard: string;
|
|
22
|
+
/** URL to connect to the hosting Webmail interface. */
|
|
23
|
+
webmail: string;
|
|
24
|
+
}
|
|
15
25
|
export interface OfferOption {
|
|
16
26
|
/** Option ID. */
|
|
17
27
|
id: string;
|
|
@@ -30,6 +40,18 @@ export interface OfferOption {
|
|
|
30
40
|
maxValue: number;
|
|
31
41
|
/** Defines a warning if the maximum value for the option has been reached. */
|
|
32
42
|
quotaWarning: OfferOptionWarning;
|
|
43
|
+
/** Price of the option for 1 value. */
|
|
44
|
+
price?: Money;
|
|
45
|
+
}
|
|
46
|
+
export interface PlatformControlPanel {
|
|
47
|
+
/** Name of the control panel. */
|
|
48
|
+
name: string;
|
|
49
|
+
/** URL to connect to cPanel dashboard and to Webmail interface. */
|
|
50
|
+
urls?: PlatformControlPanelUrls;
|
|
51
|
+
}
|
|
52
|
+
export interface CreateDatabaseRequestUser {
|
|
53
|
+
username: string;
|
|
54
|
+
password: string;
|
|
33
55
|
}
|
|
34
56
|
export interface CreateHostingRequestDomainConfiguration {
|
|
35
57
|
updateNameservers: boolean;
|
|
@@ -43,17 +65,71 @@ export interface OfferOptionRequest {
|
|
|
43
65
|
/** The option requested quantity to set for the Web Hosting plan. */
|
|
44
66
|
quantity: number;
|
|
45
67
|
}
|
|
46
|
-
export interface
|
|
47
|
-
|
|
48
|
-
|
|
68
|
+
export interface DnsRecord {
|
|
69
|
+
/** Record name. */
|
|
70
|
+
name: string;
|
|
71
|
+
/** Record type. */
|
|
72
|
+
type: DnsRecordType;
|
|
73
|
+
/** Record time-to-live. */
|
|
74
|
+
ttl: number;
|
|
75
|
+
/** Record value. */
|
|
76
|
+
value: string;
|
|
77
|
+
/** Record priority level. */
|
|
78
|
+
priority?: number;
|
|
79
|
+
/** Record status. */
|
|
80
|
+
status: DnsRecordStatus;
|
|
49
81
|
}
|
|
50
|
-
export interface
|
|
51
|
-
/**
|
|
82
|
+
export interface Nameserver {
|
|
83
|
+
/** Hostname of the nameserver. */
|
|
84
|
+
hostname: string;
|
|
85
|
+
/** Status of the nameserver. */
|
|
86
|
+
status: NameserverStatus;
|
|
87
|
+
/** Defines whether the nameserver is the default one. */
|
|
88
|
+
isDefault: boolean;
|
|
89
|
+
}
|
|
90
|
+
export interface HostingUser {
|
|
91
|
+
/** Main Web Hosting cPanel username. */
|
|
92
|
+
username: string;
|
|
93
|
+
/**
|
|
94
|
+
* One-time-password used for the first login or reset password, empty after
|
|
95
|
+
* first use.
|
|
96
|
+
*/
|
|
97
|
+
oneTimePassword?: string;
|
|
98
|
+
/** Contact email used for the hosting. */
|
|
99
|
+
contactEmail: string;
|
|
100
|
+
}
|
|
101
|
+
export interface Offer {
|
|
102
|
+
/** Offer ID. */
|
|
52
103
|
id: string;
|
|
53
|
-
/**
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
|
|
104
|
+
/** Unique identifier used for billing. */
|
|
105
|
+
billingOperationPath: string;
|
|
106
|
+
/** Options available for the offer. */
|
|
107
|
+
options: OfferOption[];
|
|
108
|
+
/** Price of the offer. */
|
|
109
|
+
price?: Money;
|
|
110
|
+
/**
|
|
111
|
+
* If a hosting_id was specified in the call, defines whether the offer is
|
|
112
|
+
* available for a specified hosting plan to migrate (update) to.
|
|
113
|
+
*/
|
|
114
|
+
available: boolean;
|
|
115
|
+
/** Name of the control panel. */
|
|
116
|
+
controlPanelName: string;
|
|
117
|
+
/** Indicates if the offer has reached its end of life. */
|
|
118
|
+
endOfLife: boolean;
|
|
119
|
+
}
|
|
120
|
+
export interface Platform {
|
|
121
|
+
/** Hostname of the host platform. */
|
|
122
|
+
hostname: string;
|
|
123
|
+
/** Number of the host platform. */
|
|
124
|
+
number: number;
|
|
125
|
+
/** Group name of the hosting's host platform. */
|
|
126
|
+
groupName: PlatformPlatformGroup;
|
|
127
|
+
/** IPv4 address of the hosting's host platform. */
|
|
128
|
+
ipv4: string;
|
|
129
|
+
/** IPv6 address of the hosting's host platform. */
|
|
130
|
+
ipv6: string;
|
|
131
|
+
/** Details of the platform control panel. */
|
|
132
|
+
controlPanel?: PlatformControlPanel;
|
|
57
133
|
}
|
|
58
134
|
export interface ControlPanel {
|
|
59
135
|
/** Control panel name. */
|
|
@@ -88,6 +164,8 @@ export interface HostingSummary {
|
|
|
88
164
|
id: string;
|
|
89
165
|
/** ID of the Scaleway Project the Web Hosting plan belongs to. */
|
|
90
166
|
projectId: string;
|
|
167
|
+
/** Date on which the Web Hosting plan was created. */
|
|
168
|
+
createdAt?: Date;
|
|
91
169
|
/** Date on which the Web Hosting plan was last updated. */
|
|
92
170
|
updatedAt?: Date;
|
|
93
171
|
/** Status of the Web Hosting plan. */
|
|
@@ -96,6 +174,10 @@ export interface HostingSummary {
|
|
|
96
174
|
domain: string;
|
|
97
175
|
/** Whether the hosting is protected or not. */
|
|
98
176
|
protected: boolean;
|
|
177
|
+
/** DNS status of the Web Hosting plan. */
|
|
178
|
+
dnsStatus: DnsRecordsStatus;
|
|
179
|
+
/** Name of the active offer for the Web Hosting plan. */
|
|
180
|
+
offerName: string;
|
|
99
181
|
/** Region where the Web Hosting plan is hosted. */
|
|
100
182
|
region: Region;
|
|
101
183
|
}
|
|
@@ -105,25 +187,6 @@ export interface MailAccount {
|
|
|
105
187
|
/** Username part address of the mail account address. */
|
|
106
188
|
username: string;
|
|
107
189
|
}
|
|
108
|
-
export interface Offer {
|
|
109
|
-
/** Offer ID. */
|
|
110
|
-
id: string;
|
|
111
|
-
/** Unique identifier used for billing. */
|
|
112
|
-
billingOperationPath: string;
|
|
113
|
-
/** Options available for the offer. */
|
|
114
|
-
options: OfferOption[];
|
|
115
|
-
/** Price of the offer. */
|
|
116
|
-
price?: Money;
|
|
117
|
-
/**
|
|
118
|
-
* If a hosting_id was specified in the call, defines whether the offer is
|
|
119
|
-
* available for a specified hosting plan to migrate (update) to.
|
|
120
|
-
*/
|
|
121
|
-
available: boolean;
|
|
122
|
-
/** Name of the control panel. */
|
|
123
|
-
controlPanelName: string;
|
|
124
|
-
/** Indicates if the offer has reached its end of life. */
|
|
125
|
-
endOfLife: boolean;
|
|
126
|
-
}
|
|
127
190
|
export interface Website {
|
|
128
191
|
/** The domain of the website. */
|
|
129
192
|
domain: string;
|
|
@@ -132,6 +195,10 @@ export interface Website {
|
|
|
132
195
|
/** The SSL status of the website. */
|
|
133
196
|
sslStatus: boolean;
|
|
134
197
|
}
|
|
198
|
+
export interface CheckUserOwnsDomainResponse {
|
|
199
|
+
/** Indicates whether the specified project owns the domain. */
|
|
200
|
+
ownsDomain: boolean;
|
|
201
|
+
}
|
|
135
202
|
export type ControlPanelApiListControlPanelsRequest = {
|
|
136
203
|
/**
|
|
137
204
|
* Region to target. If none is passed will use default region from the
|
|
@@ -182,6 +249,18 @@ export type DatabaseApiCreateDatabaseRequest = {
|
|
|
182
249
|
hostingId: string;
|
|
183
250
|
/** Name of the database to be created. */
|
|
184
251
|
databaseName: string;
|
|
252
|
+
/**
|
|
253
|
+
* (Optional) Username and password to create a user and link to the database.
|
|
254
|
+
*
|
|
255
|
+
* One-of ('user'): at most one of 'newUser', 'existingUsername' could be set.
|
|
256
|
+
*/
|
|
257
|
+
newUser?: CreateDatabaseRequestUser;
|
|
258
|
+
/**
|
|
259
|
+
* (Optional) Username to link an existing user to the database.
|
|
260
|
+
*
|
|
261
|
+
* One-of ('user'): at most one of 'newUser', 'existingUsername' could be set.
|
|
262
|
+
*/
|
|
263
|
+
existingUsername?: string;
|
|
185
264
|
};
|
|
186
265
|
export type DatabaseApiCreateDatabaseUserRequest = {
|
|
187
266
|
/**
|
|
@@ -289,6 +368,34 @@ export type DatabaseApiUnassignDatabaseUserRequest = {
|
|
|
289
368
|
/** Name of the user to unassign. */
|
|
290
369
|
username: string;
|
|
291
370
|
};
|
|
371
|
+
export type DnsApiCheckUserOwnsDomainRequest = {
|
|
372
|
+
/**
|
|
373
|
+
* Region to target. If none is passed will use default region from the
|
|
374
|
+
* config.
|
|
375
|
+
*/
|
|
376
|
+
region?: Region;
|
|
377
|
+
/** Domain for which ownership is to be verified. */
|
|
378
|
+
domain: string;
|
|
379
|
+
/** ID of the project currently in use. */
|
|
380
|
+
projectId?: string;
|
|
381
|
+
};
|
|
382
|
+
export type DnsApiGetDomainDnsRecordsRequest = {
|
|
383
|
+
/**
|
|
384
|
+
* Region to target. If none is passed will use default region from the
|
|
385
|
+
* config.
|
|
386
|
+
*/
|
|
387
|
+
region?: Region;
|
|
388
|
+
/** Domain associated with the DNS records. */
|
|
389
|
+
domain: string;
|
|
390
|
+
};
|
|
391
|
+
export interface DnsRecords {
|
|
392
|
+
/** List of DNS records. */
|
|
393
|
+
records: DnsRecord[];
|
|
394
|
+
/** List of nameservers. */
|
|
395
|
+
nameServers: Nameserver[];
|
|
396
|
+
/** Status of the records. */
|
|
397
|
+
status: DnsRecordsStatus;
|
|
398
|
+
}
|
|
292
399
|
export type FtpAccountApiChangeFtpAccountPasswordRequest = {
|
|
293
400
|
/**
|
|
294
401
|
* Region to target. If none is passed will use default region from the
|
|
@@ -359,45 +466,22 @@ export interface Hosting {
|
|
|
359
466
|
createdAt?: Date;
|
|
360
467
|
/** Status of the Web Hosting plan. */
|
|
361
468
|
status: HostingStatus;
|
|
362
|
-
/** Hostname of the host platform. */
|
|
363
|
-
platformHostname: string;
|
|
364
|
-
/** Number of the host platform. */
|
|
365
|
-
platformNumber: number;
|
|
366
|
-
/** ID of the active offer for the Web Hosting plan. */
|
|
367
|
-
offerId: string;
|
|
368
|
-
/** Name of the active offer for the Web Hosting plan. */
|
|
369
|
-
offerName: string;
|
|
370
469
|
/** Main domain associated with the Web Hosting plan. */
|
|
371
470
|
domain: string;
|
|
471
|
+
/** Details of the Web Hosting plan offer and options. */
|
|
472
|
+
offer?: Offer;
|
|
473
|
+
/** Details of the hosting platform. */
|
|
474
|
+
platform?: Platform;
|
|
372
475
|
/** List of tags associated with the Web Hosting plan. */
|
|
373
476
|
tags: string[];
|
|
374
|
-
/** List of the Web Hosting plan options. */
|
|
375
|
-
options: HostingOption[];
|
|
376
477
|
/** DNS status of the Web Hosting plan. */
|
|
377
|
-
dnsStatus:
|
|
378
|
-
/**
|
|
379
|
-
cpanelUrls?: HostingCpanelUrls;
|
|
380
|
-
/** Main Web Hosting cPanel username. */
|
|
381
|
-
username: string;
|
|
382
|
-
/** Indicates if the hosting offer has reached its end of life. */
|
|
383
|
-
offerEndOfLife: boolean;
|
|
384
|
-
/** Name of the control panel. */
|
|
385
|
-
controlPanelName: string;
|
|
386
|
-
/** Group of the hosting's host server/platform. */
|
|
387
|
-
platformGroup: string;
|
|
388
|
-
/** IPv4 address of the hosting's host server. */
|
|
478
|
+
dnsStatus: DnsRecordsStatus;
|
|
479
|
+
/** Current IPv4 address of the hosting. */
|
|
389
480
|
ipv4: string;
|
|
390
|
-
/** IPv6 address of the hosting's host server. */
|
|
391
|
-
ipv6: string;
|
|
392
481
|
/** Whether the hosting is protected or not. */
|
|
393
482
|
protected: boolean;
|
|
394
|
-
/**
|
|
395
|
-
|
|
396
|
-
* first use.
|
|
397
|
-
*/
|
|
398
|
-
oneTimePassword: string;
|
|
399
|
-
/** Contact email used for the hosting. */
|
|
400
|
-
contactEmail: string;
|
|
483
|
+
/** Details of the hosting user. */
|
|
484
|
+
user?: HostingUser;
|
|
401
485
|
/** Region where the Web Hosting plan is hosted. */
|
|
402
486
|
region: Region;
|
|
403
487
|
}
|
package/dist/scw/constants.cjs
CHANGED
package/dist/scw/constants.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "v2.
|
|
2
|
-
export declare const userAgent = "scaleway-sdk-js/v2.
|
|
1
|
+
export declare const version = "v2.58.0";
|
|
2
|
+
export declare const userAgent = "scaleway-sdk-js/v2.58.0";
|
package/dist/scw/constants.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.59.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Scaleway SDK.",
|
|
6
6
|
"keywords": [
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"bundledDependencies": [
|
|
40
40
|
"@scaleway/random-name"
|
|
41
41
|
],
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "7a604bd8a0f9bd48cee89c4ed009d808b91b24e6"
|
|
43
43
|
}
|