@scaleway/sdk 2.36.0 → 2.38.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/cockpit/v1/api.gen.cjs +21 -0
- package/dist/api/cockpit/v1/api.gen.d.ts +9 -1
- package/dist/api/cockpit/v1/api.gen.js +22 -1
- package/dist/api/cockpit/v1/index.gen.d.ts +1 -1
- package/dist/api/cockpit/v1/marshalling.gen.cjs +4 -0
- package/dist/api/cockpit/v1/marshalling.gen.d.ts +2 -1
- package/dist/api/cockpit/v1/marshalling.gen.js +4 -0
- package/dist/api/cockpit/v1/types.gen.d.ts +12 -0
- package/dist/api/cockpit/v1/validation-rules.gen.cjs +8 -0
- package/dist/api/cockpit/v1/validation-rules.gen.d.ts +7 -0
- package/dist/api/cockpit/v1/validation-rules.gen.js +9 -1
- package/dist/api/edge_services/index.d.ts +1 -0
- package/dist/api/edge_services/v1alpha1/api.gen.d.ts +300 -0
- package/dist/api/edge_services/v1alpha1/content.gen.d.ts +5 -0
- package/dist/api/edge_services/v1alpha1/index.gen.d.ts +3 -0
- package/dist/api/edge_services/v1alpha1/marshalling.gen.d.ts +31 -0
- package/dist/api/edge_services/v1alpha1/types.gen.d.ts +692 -0
- package/dist/api/inference/v1beta1/types.gen.d.ts +1 -1
- package/dist/api/instance/v1/marshalling.gen.cjs +2 -2
- package/dist/api/instance/v1/marshalling.gen.js +2 -2
- package/dist/api/instance/v1/types.gen.d.ts +2 -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/lb/v1/marshalling.gen.cjs +2 -0
- package/dist/api/lb/v1/marshalling.gen.js +2 -0
- package/dist/api/lb/v1/types.gen.d.ts +16 -0
- package/dist/api/marketplace/v2/types.gen.d.ts +19 -6
- package/dist/api/secret/v1beta1/marshalling.gen.cjs +1 -0
- package/dist/api/secret/v1beta1/marshalling.gen.js +1 -0
- package/dist/api/secret/v1beta1/types.gen.d.ts +1 -0
- package/dist/api/vpc/v2/api.gen.cjs +57 -0
- package/dist/api/vpc/v2/api.gen.d.ts +29 -1
- package/dist/api/vpc/v2/api.gen.js +58 -1
- package/dist/api/vpc/v2/index.gen.cjs +2 -0
- package/dist/api/vpc/v2/index.gen.d.ts +2 -1
- package/dist/api/vpc/v2/index.gen.js +3 -1
- package/dist/api/vpc/v2/marshalling.gen.cjs +37 -0
- package/dist/api/vpc/v2/marshalling.gen.d.ts +4 -1
- package/dist/api/vpc/v2/marshalling.gen.js +37 -0
- package/dist/api/vpc/v2/types.gen.d.ts +78 -0
- package/dist/api/vpc/v2/validation-rules.gen.cjs +8 -0
- package/dist/api/vpc/v2/validation-rules.gen.d.ts +5 -0
- package/dist/api/vpc/v2/validation-rules.gen.js +8 -0
- package/dist/api/webhosting/v1alpha1/marshalling.gen.cjs +1 -0
- package/dist/api/webhosting/v1alpha1/marshalling.gen.js +1 -0
- package/dist/api/webhosting/v1alpha1/types.gen.d.ts +2 -0
- package/dist/bridge.d.ts +2 -1
- package/dist/scw/constants.cjs +1 -1
- package/dist/scw/constants.d.ts +2 -2
- package/dist/scw/constants.js +1 -1
- package/dist/scw/custom-marshalling.d.ts +13 -0
- package/dist/scw/custom-types.d.ts +8 -0
- package/package.json +2 -2
|
@@ -42,6 +42,28 @@ export interface PrivateNetwork {
|
|
|
42
42
|
/** Defines whether managed DHCP is enabled for this Private Network. */
|
|
43
43
|
dhcpEnabled: boolean;
|
|
44
44
|
}
|
|
45
|
+
export interface Route {
|
|
46
|
+
/** Route ID. */
|
|
47
|
+
id: string;
|
|
48
|
+
/** Route description. */
|
|
49
|
+
description: string;
|
|
50
|
+
/** Tags of the Route. */
|
|
51
|
+
tags: string[];
|
|
52
|
+
/** VPC the Route belongs to. */
|
|
53
|
+
vpcId: string;
|
|
54
|
+
/** Destination of the Route. */
|
|
55
|
+
destination: string;
|
|
56
|
+
/** ID of the nexthop resource. */
|
|
57
|
+
nexthopResourceId?: string;
|
|
58
|
+
/** ID of the nexthop private network. */
|
|
59
|
+
nexthopPrivateNetworkId?: string;
|
|
60
|
+
/** Date the Route was created. */
|
|
61
|
+
createdAt?: Date;
|
|
62
|
+
/** Date the Route was last modified. */
|
|
63
|
+
updatedAt?: Date;
|
|
64
|
+
/** Region of the Route. */
|
|
65
|
+
region: Region;
|
|
66
|
+
}
|
|
45
67
|
export interface VPC {
|
|
46
68
|
/** VPC ID. */
|
|
47
69
|
id: string;
|
|
@@ -97,6 +119,25 @@ export type CreatePrivateNetworkRequest = {
|
|
|
97
119
|
/** VPC in which to create the Private Network. */
|
|
98
120
|
vpcId?: string;
|
|
99
121
|
};
|
|
122
|
+
export type CreateRouteRequest = {
|
|
123
|
+
/**
|
|
124
|
+
* Region to target. If none is passed will use default region from the
|
|
125
|
+
* config.
|
|
126
|
+
*/
|
|
127
|
+
region?: Region;
|
|
128
|
+
/** Route description. */
|
|
129
|
+
description: string;
|
|
130
|
+
/** Tags of the Route. */
|
|
131
|
+
tags?: string[];
|
|
132
|
+
/** VPC the Route belongs to. */
|
|
133
|
+
vpcId: string;
|
|
134
|
+
/** Destination of the Route. */
|
|
135
|
+
destination: string;
|
|
136
|
+
/** ID of the nexthop resource. */
|
|
137
|
+
nexthopResourceId?: string;
|
|
138
|
+
/** ID of the nexthop private network. */
|
|
139
|
+
nexthopPrivateNetworkId?: string;
|
|
140
|
+
};
|
|
100
141
|
export type CreateVPCRequest = {
|
|
101
142
|
/**
|
|
102
143
|
* Region to target. If none is passed will use default region from the
|
|
@@ -121,6 +162,15 @@ export type DeletePrivateNetworkRequest = {
|
|
|
121
162
|
/** Private Network ID. */
|
|
122
163
|
privateNetworkId: string;
|
|
123
164
|
};
|
|
165
|
+
export type DeleteRouteRequest = {
|
|
166
|
+
/**
|
|
167
|
+
* Region to target. If none is passed will use default region from the
|
|
168
|
+
* config.
|
|
169
|
+
*/
|
|
170
|
+
region?: Region;
|
|
171
|
+
/** Route ID. */
|
|
172
|
+
routeId: string;
|
|
173
|
+
};
|
|
124
174
|
export type DeleteSubnetsRequest = {
|
|
125
175
|
/**
|
|
126
176
|
* Region to target. If none is passed will use default region from the
|
|
@@ -170,6 +220,15 @@ export type GetPrivateNetworkRequest = {
|
|
|
170
220
|
/** Private Network ID. */
|
|
171
221
|
privateNetworkId: string;
|
|
172
222
|
};
|
|
223
|
+
export type GetRouteRequest = {
|
|
224
|
+
/**
|
|
225
|
+
* Region to target. If none is passed will use default region from the
|
|
226
|
+
* config.
|
|
227
|
+
*/
|
|
228
|
+
region?: Region;
|
|
229
|
+
/** Route ID. */
|
|
230
|
+
routeId: string;
|
|
231
|
+
};
|
|
173
232
|
export type GetVPCRequest = {
|
|
174
233
|
/**
|
|
175
234
|
* Region to target. If none is passed will use default region from the
|
|
@@ -364,6 +423,25 @@ export type UpdatePrivateNetworkRequest = {
|
|
|
364
423
|
/** Tags for the Private Network. */
|
|
365
424
|
tags?: string[];
|
|
366
425
|
};
|
|
426
|
+
export type UpdateRouteRequest = {
|
|
427
|
+
/**
|
|
428
|
+
* Region to target. If none is passed will use default region from the
|
|
429
|
+
* config.
|
|
430
|
+
*/
|
|
431
|
+
region?: Region;
|
|
432
|
+
/** Route ID. */
|
|
433
|
+
routeId: string;
|
|
434
|
+
/** Route description. */
|
|
435
|
+
description?: string;
|
|
436
|
+
/** Tags of the Route. */
|
|
437
|
+
tags?: string[];
|
|
438
|
+
/** Destination of the Route. */
|
|
439
|
+
destination?: string;
|
|
440
|
+
/** ID of the nexthop resource. */
|
|
441
|
+
nexthopResourceId?: string;
|
|
442
|
+
/** ID of the nexthop private network. */
|
|
443
|
+
nexthopPrivateNetworkId?: string;
|
|
444
|
+
};
|
|
367
445
|
export type UpdateVPCRequest = {
|
|
368
446
|
/**
|
|
369
447
|
* Region to target. If none is passed will use default region from the
|
|
@@ -76,6 +76,8 @@ export interface ControlPanel {
|
|
|
76
76
|
available: boolean;
|
|
77
77
|
/** URL of this control panel's logo. */
|
|
78
78
|
logoUrl: string;
|
|
79
|
+
/** List of available languages for the control panel. */
|
|
80
|
+
availableLanguages: StdLanguageCode[];
|
|
79
81
|
}
|
|
80
82
|
export interface Hosting {
|
|
81
83
|
/** ID of the Web Hosting plan. */
|
package/dist/bridge.d.ts
CHANGED
|
@@ -5,7 +5,8 @@ export type { WaitForOptions } from './internal/async/interval-retrier';
|
|
|
5
5
|
export { API } from './scw/api';
|
|
6
6
|
export type { DefaultValues } from './scw/client-settings';
|
|
7
7
|
export type { Money, ServiceInfo, ScwFile, TimeSeries, } from './scw/custom-types';
|
|
8
|
-
export {
|
|
8
|
+
export { Decimal } from './scw/custom-types';
|
|
9
|
+
export { marshalScwFile, marshalMoney, marshalTimeSeries, marshalDecimal, unmarshalMoney, unmarshalScwFile, unmarshalServiceInfo, unmarshalTimeSeries, unmarshalTimeSeriesPoint, unmarshalDecimal, } from './scw/custom-marshalling';
|
|
9
10
|
export { enrichForPagination } from './scw/fetch/resource-paginator';
|
|
10
11
|
export type { Region, Zone } from './scw/locality';
|
|
11
12
|
export { resolveOneOf, unmarshalDate, unmarshalArrayOfObject, unmarshalMapOfObject, urlParams, validatePathParam, } from './helpers/marshalling';
|
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.37.0";
|
|
2
|
+
export declare const userAgent = "scaleway-sdk-js/v2.37.0";
|
package/dist/scw/constants.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Money, ScwFile, ServiceInfo, TimeSeries, TimeSeriesPoint } from './custom-types';
|
|
2
|
+
import { Decimal } from './custom-types';
|
|
2
3
|
/**
|
|
3
4
|
* Unmarshals {@link Money}
|
|
4
5
|
*
|
|
@@ -33,6 +34,12 @@ export declare const unmarshalTimeSeriesPoint: (data: unknown) => TimeSeriesPoin
|
|
|
33
34
|
* @internal
|
|
34
35
|
*/
|
|
35
36
|
export declare const unmarshalTimeSeries: (data: unknown) => TimeSeries;
|
|
37
|
+
/**
|
|
38
|
+
* Unmarshals {@link Decimal}
|
|
39
|
+
*
|
|
40
|
+
* @internal
|
|
41
|
+
*/
|
|
42
|
+
export declare const unmarshalDecimal: (data: unknown) => Decimal;
|
|
36
43
|
/**
|
|
37
44
|
* Marshals {@link ScwFile}.
|
|
38
45
|
*
|
|
@@ -57,3 +64,9 @@ export declare const marshalTimeSeriesPoint: (obj: TimeSeriesPoint) => Record<st
|
|
|
57
64
|
* @internal
|
|
58
65
|
*/
|
|
59
66
|
export declare const marshalTimeSeries: (obj: TimeSeries) => Record<string, unknown>;
|
|
67
|
+
/**
|
|
68
|
+
* Marshals {@link Decimal}
|
|
69
|
+
*
|
|
70
|
+
* @internal
|
|
71
|
+
*/
|
|
72
|
+
export declare const marshalDecimal: (obj: Decimal) => string;
|
|
@@ -63,3 +63,11 @@ export interface ScwFile {
|
|
|
63
63
|
/** Content of the file in base64. */
|
|
64
64
|
content: string;
|
|
65
65
|
}
|
|
66
|
+
/** A representation of a decimal value, such as 2.5.
|
|
67
|
+
* Comparable to language-native decimal formats, such as Java's BigDecimal or Python's decimal.Decimal.
|
|
68
|
+
* Lookup protobuf google.type.Decimal for details */
|
|
69
|
+
export declare class Decimal {
|
|
70
|
+
private readonly str;
|
|
71
|
+
constructor(v: string);
|
|
72
|
+
toString: () => string;
|
|
73
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.38.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": "21d0735f42beb56422452c9cf68095a212c94dc8"
|
|
43
43
|
}
|