@scaleway/sdk 2.65.0 → 2.67.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/applesilicon/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.cjs +17 -0
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +17 -0
- package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +21 -0
- package/dist/api/audit_trail/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/audit_trail/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/audit_trail/v1alpha1/marshalling.gen.cjs +9 -0
- package/dist/api/audit_trail/v1alpha1/marshalling.gen.js +9 -0
- package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +24 -16
- package/dist/api/baremetal/v1/api.gen.d.ts +3 -3
- package/dist/api/baremetal/v1/types.gen.d.ts +33 -33
- package/dist/api/baremetal/v3/api.gen.d.ts +2 -2
- package/dist/api/baremetal/v3/types.gen.d.ts +5 -5
- package/dist/api/block/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/block/v1alpha1/types.gen.d.ts +17 -17
- package/dist/api/cockpit/v1/api.gen.cjs +14 -17
- package/dist/api/cockpit/v1/api.gen.d.ts +6 -9
- package/dist/api/cockpit/v1/api.gen.js +15 -18
- package/dist/api/cockpit/v1/index.gen.d.ts +1 -1
- package/dist/api/cockpit/v1/marshalling.gen.cjs +29 -26
- package/dist/api/cockpit/v1/marshalling.gen.d.ts +2 -2
- package/dist/api/cockpit/v1/marshalling.gen.js +29 -26
- package/dist/api/cockpit/v1/types.gen.d.ts +49 -34
- package/dist/api/cockpit/v1/validation-rules.gen.cjs +0 -10
- package/dist/api/cockpit/v1/validation-rules.gen.d.ts +0 -9
- package/dist/api/cockpit/v1/validation-rules.gen.js +0 -10
- package/dist/api/container/v1beta1/api.gen.cjs +5 -1
- package/dist/api/container/v1beta1/api.gen.d.ts +2 -2
- package/dist/api/container/v1beta1/api.gen.js +5 -1
- package/dist/api/container/v1beta1/types.gen.d.ts +32 -32
- package/dist/api/dedibox/v1/api.gen.d.ts +2 -2
- package/dist/api/dedibox/v1/types.gen.d.ts +51 -51
- package/dist/api/edge_services/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/edge_services/v1alpha1/marshalling.gen.cjs +21 -2
- package/dist/api/edge_services/v1alpha1/marshalling.gen.js +22 -3
- package/dist/api/edge_services/v1alpha1/types.gen.d.ts +34 -0
- package/dist/api/flexibleip/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/flexibleip/v1alpha1/types.gen.d.ts +14 -14
- package/dist/api/function/v1beta1/api.gen.cjs +5 -1
- package/dist/api/function/v1beta1/api.gen.d.ts +2 -2
- package/dist/api/function/v1beta1/api.gen.js +5 -1
- package/dist/api/function/v1beta1/types.gen.d.ts +35 -35
- package/dist/api/iot/v1/api.gen.d.ts +2 -2
- package/dist/api/iot/v1/types.gen.d.ts +38 -38
- package/dist/api/jobs/v1alpha1/api.gen.cjs +5 -1
- package/dist/api/jobs/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/jobs/v1alpha1/api.gen.js +5 -1
- package/dist/api/jobs/v1alpha1/types.gen.d.ts +19 -19
- package/dist/api/k8s/v1/api.gen.cjs +5 -1
- package/dist/api/k8s/v1/api.gen.d.ts +2 -2
- package/dist/api/k8s/v1/api.gen.js +5 -1
- package/dist/api/k8s/v1/marshalling.gen.cjs +1 -0
- package/dist/api/k8s/v1/marshalling.gen.js +1 -0
- package/dist/api/k8s/v1/types.gen.d.ts +42 -41
- package/dist/api/lb/v1/marshalling.gen.cjs +5 -0
- package/dist/api/lb/v1/marshalling.gen.js +5 -0
- package/dist/api/lb/v1/types.gen.d.ts +25 -0
- package/dist/api/marketplace/v2/types.gen.d.ts +3 -3
- package/dist/api/mnq/v1beta1/api.gen.d.ts +4 -4
- package/dist/api/mnq/v1beta1/types.gen.d.ts +31 -31
- package/dist/api/mongodb/v1alpha1/api.gen.d.ts +3 -3
- package/dist/api/mongodb/v1alpha1/types.gen.d.ts +24 -24
- package/dist/api/rdb/v1/api.gen.cjs +5 -1
- package/dist/api/rdb/v1/api.gen.d.ts +2 -2
- package/dist/api/rdb/v1/api.gen.js +5 -1
- package/dist/api/rdb/v1/types.gen.d.ts +67 -67
- package/dist/api/redis/v1/api.gen.d.ts +2 -2
- package/dist/api/redis/v1/types.gen.d.ts +28 -28
- package/dist/api/registry/v1/api.gen.cjs +5 -1
- package/dist/api/registry/v1/api.gen.d.ts +2 -2
- package/dist/api/registry/v1/api.gen.js +5 -1
- package/dist/api/registry/v1/types.gen.d.ts +14 -14
- package/dist/api/secret/v1beta1/api.gen.cjs +38 -1
- package/dist/api/secret/v1beta1/api.gen.d.ts +19 -3
- package/dist/api/secret/v1beta1/api.gen.js +38 -1
- package/dist/api/secret/v1beta1/index.gen.d.ts +1 -1
- package/dist/api/secret/v1beta1/marshalling.gen.cjs +2 -0
- package/dist/api/secret/v1beta1/marshalling.gen.js +2 -0
- package/dist/api/secret/v1beta1/types.gen.d.ts +52 -25
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/serverless_sqldb/v1alpha1/types.gen.d.ts +12 -12
- package/dist/api/tem/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/tem/v1alpha1/types.gen.d.ts +25 -25
- package/dist/api/vpcgw/v1/api.gen.cjs +6 -0
- package/dist/api/vpcgw/v1/api.gen.d.ts +4 -3
- package/dist/api/vpcgw/v1/api.gen.js +6 -0
- package/dist/api/vpcgw/v1/index.gen.d.ts +1 -1
- package/dist/api/vpcgw/v1/types.gen.d.ts +49 -44
- package/dist/api/vpcgw/v2/api.gen.d.ts +2 -2
- package/dist/api/vpcgw/v2/types.gen.d.ts +33 -33
- package/dist/api/webhosting/v1/marshalling.gen.cjs +7 -3
- package/dist/api/webhosting/v1/marshalling.gen.js +7 -3
- package/dist/api/webhosting/v1/types.gen.d.ts +14 -6
- package/dist/scw/client-settings.cjs +2 -2
- package/dist/scw/client-settings.d.ts +2 -2
- package/dist/scw/client-settings.js +2 -2
- 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
|
@@ -90,6 +90,7 @@ const unmarshalDnsRecords = (data) => {
|
|
|
90
90
|
);
|
|
91
91
|
}
|
|
92
92
|
return {
|
|
93
|
+
dnsConfig: data.dns_config,
|
|
93
94
|
nameServers: unmarshalArrayOfObject(data.name_servers, unmarshalNameserver),
|
|
94
95
|
records: unmarshalArrayOfObject(data.records, unmarshalDnsRecord),
|
|
95
96
|
status: data.status
|
|
@@ -201,8 +202,9 @@ const unmarshalHosting = (data) => {
|
|
|
201
202
|
}
|
|
202
203
|
return {
|
|
203
204
|
createdAt: unmarshalDate(data.created_at),
|
|
204
|
-
dnsStatus: data.dns_status,
|
|
205
|
+
dnsStatus: data.dns_status ? data.dns_status : void 0,
|
|
205
206
|
domain: data.domain,
|
|
207
|
+
domainStatus: data.domain_status,
|
|
206
208
|
id: data.id,
|
|
207
209
|
ipv4: data.ipv4,
|
|
208
210
|
offer: data.offer ? unmarshalOffer(data.offer) : void 0,
|
|
@@ -284,14 +286,16 @@ const unmarshalHostingSummary = (data) => {
|
|
|
284
286
|
}
|
|
285
287
|
return {
|
|
286
288
|
createdAt: unmarshalDate(data.created_at),
|
|
287
|
-
dnsStatus: data.dns_status,
|
|
289
|
+
dnsStatus: data.dns_status ? data.dns_status : void 0,
|
|
288
290
|
domain: data.domain,
|
|
291
|
+
domainStatus: data.domain_status,
|
|
292
|
+
hostingStatus: data.hosting_status,
|
|
289
293
|
id: data.id,
|
|
290
294
|
offerName: data.offer_name,
|
|
291
295
|
projectId: data.project_id,
|
|
292
296
|
protected: data.protected,
|
|
293
297
|
region: data.region,
|
|
294
|
-
status: data.status,
|
|
298
|
+
status: data.status ? data.status : void 0,
|
|
295
299
|
updatedAt: unmarshalDate(data.updated_at)
|
|
296
300
|
};
|
|
297
301
|
};
|
|
@@ -190,16 +190,20 @@ export interface HostingSummary {
|
|
|
190
190
|
createdAt?: Date;
|
|
191
191
|
/** Date on which the Web Hosting plan was last updated. */
|
|
192
192
|
updatedAt?: Date;
|
|
193
|
-
/** Status of the Web Hosting plan. */
|
|
194
|
-
status
|
|
193
|
+
/** @deprecated Status of the Web Hosting plan. */
|
|
194
|
+
status?: HostingSummaryStatus;
|
|
195
195
|
/** Main domain associated with the Web Hosting plan. */
|
|
196
196
|
domain: string;
|
|
197
197
|
/** Whether the hosting is protected or not. */
|
|
198
198
|
protected: boolean;
|
|
199
|
-
/** DNS status of the Web Hosting plan. */
|
|
200
|
-
dnsStatus
|
|
199
|
+
/** @deprecated DNS status of the Web Hosting plan. */
|
|
200
|
+
dnsStatus?: DnsRecordsStatus;
|
|
201
201
|
/** Name of the active offer for the Web Hosting plan. */
|
|
202
202
|
offerName: string;
|
|
203
|
+
/** Status of the Web Hosting plan. */
|
|
204
|
+
hostingStatus: HostingStatus;
|
|
205
|
+
/** Main domain status of the Web Hosting plan. */
|
|
206
|
+
domainStatus: DomainStatus;
|
|
203
207
|
/** Region where the Web Hosting plan is hosted. */
|
|
204
208
|
region: ScwRegion;
|
|
205
209
|
}
|
|
@@ -478,6 +482,8 @@ export interface DnsRecords {
|
|
|
478
482
|
nameServers: Nameserver[];
|
|
479
483
|
/** Status of the records. */
|
|
480
484
|
status: DnsRecordsStatus;
|
|
485
|
+
/** Records dns auto configuration settings. */
|
|
486
|
+
dnsConfig: DomainDnsAction[];
|
|
481
487
|
}
|
|
482
488
|
export interface Domain {
|
|
483
489
|
/** Name of the domain. */
|
|
@@ -569,14 +575,16 @@ export interface Hosting {
|
|
|
569
575
|
platform?: Platform;
|
|
570
576
|
/** List of tags associated with the Web Hosting plan. */
|
|
571
577
|
tags: string[];
|
|
572
|
-
/** DNS status of the Web Hosting plan. */
|
|
573
|
-
dnsStatus
|
|
578
|
+
/** @deprecated DNS status of the Web Hosting plan. */
|
|
579
|
+
dnsStatus?: DnsRecordsStatus;
|
|
574
580
|
/** Current IPv4 address of the hosting. */
|
|
575
581
|
ipv4: string;
|
|
576
582
|
/** Whether the hosting is protected or not. */
|
|
577
583
|
protected: boolean;
|
|
578
584
|
/** Details of the hosting user. */
|
|
579
585
|
user?: HostingUser;
|
|
586
|
+
/** Main domain status of the Web Hosting plan. */
|
|
587
|
+
domainStatus: DomainStatus;
|
|
580
588
|
/** Region where the Web Hosting plan is hosted. */
|
|
581
589
|
region: ScwRegion;
|
|
582
590
|
}
|
|
@@ -28,10 +28,10 @@ const assertValidSettings = (obj) => {
|
|
|
28
28
|
if (obj.defaultZone && !stringValidation.isZone(obj.defaultZone)) {
|
|
29
29
|
throw new Error(`Invalid default zone format '${obj.defaultZone}'`);
|
|
30
30
|
}
|
|
31
|
-
if (!stringValidation.isURL(obj.apiURL)) {
|
|
31
|
+
if (obj.apiURL && !stringValidation.isURL(obj.apiURL)) {
|
|
32
32
|
throw new Error(`Invalid URL ${obj.apiURL}`);
|
|
33
33
|
}
|
|
34
|
-
if (obj.apiURL
|
|
34
|
+
if (obj.apiURL?.endsWith("/")) {
|
|
35
35
|
throw new Error(
|
|
36
36
|
`Invalid URL ${obj.apiURL}: it should not have a trailing slash`
|
|
37
37
|
);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { NetworkInterceptors, RequestInterceptor, ResponseInterceptor } from '../internal/interceptors/types';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Profile } from './client-ini-profile.js';
|
|
3
3
|
/**
|
|
4
4
|
* Holds default values of settings.
|
|
5
5
|
*
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
8
|
-
export type DefaultValues =
|
|
8
|
+
export type DefaultValues = Profile & {
|
|
9
9
|
/**
|
|
10
10
|
* The default number of results when requesting a paginated resource.
|
|
11
11
|
*/
|
|
@@ -26,10 +26,10 @@ const assertValidSettings = (obj) => {
|
|
|
26
26
|
if (obj.defaultZone && !isZone(obj.defaultZone)) {
|
|
27
27
|
throw new Error(`Invalid default zone format '${obj.defaultZone}'`);
|
|
28
28
|
}
|
|
29
|
-
if (!isURL(obj.apiURL)) {
|
|
29
|
+
if (obj.apiURL && !isURL(obj.apiURL)) {
|
|
30
30
|
throw new Error(`Invalid URL ${obj.apiURL}`);
|
|
31
31
|
}
|
|
32
|
-
if (obj.apiURL
|
|
32
|
+
if (obj.apiURL?.endsWith("/")) {
|
|
33
33
|
throw new Error(
|
|
34
34
|
`Invalid URL ${obj.apiURL}: it should not have a trailing slash`
|
|
35
35
|
);
|
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.66.0";
|
|
2
|
+
export declare const userAgent = "scaleway-sdk-js/v2.66.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.67.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": "dfaaaf081c7ebd7475f2bdb08c91a796179a0038"
|
|
43
43
|
}
|