@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.
Files changed (54) hide show
  1. package/dist/api/cockpit/v1/api.gen.cjs +21 -0
  2. package/dist/api/cockpit/v1/api.gen.d.ts +9 -1
  3. package/dist/api/cockpit/v1/api.gen.js +22 -1
  4. package/dist/api/cockpit/v1/index.gen.d.ts +1 -1
  5. package/dist/api/cockpit/v1/marshalling.gen.cjs +4 -0
  6. package/dist/api/cockpit/v1/marshalling.gen.d.ts +2 -1
  7. package/dist/api/cockpit/v1/marshalling.gen.js +4 -0
  8. package/dist/api/cockpit/v1/types.gen.d.ts +12 -0
  9. package/dist/api/cockpit/v1/validation-rules.gen.cjs +8 -0
  10. package/dist/api/cockpit/v1/validation-rules.gen.d.ts +7 -0
  11. package/dist/api/cockpit/v1/validation-rules.gen.js +9 -1
  12. package/dist/api/edge_services/index.d.ts +1 -0
  13. package/dist/api/edge_services/v1alpha1/api.gen.d.ts +300 -0
  14. package/dist/api/edge_services/v1alpha1/content.gen.d.ts +5 -0
  15. package/dist/api/edge_services/v1alpha1/index.gen.d.ts +3 -0
  16. package/dist/api/edge_services/v1alpha1/marshalling.gen.d.ts +31 -0
  17. package/dist/api/edge_services/v1alpha1/types.gen.d.ts +692 -0
  18. package/dist/api/inference/v1beta1/types.gen.d.ts +1 -1
  19. package/dist/api/instance/v1/marshalling.gen.cjs +2 -2
  20. package/dist/api/instance/v1/marshalling.gen.js +2 -2
  21. package/dist/api/instance/v1/types.gen.d.ts +2 -1
  22. package/dist/api/ipam/v1/api.gen.cjs +1 -0
  23. package/dist/api/ipam/v1/api.gen.js +1 -0
  24. package/dist/api/ipam/v1/types.gen.d.ts +5 -0
  25. package/dist/api/lb/v1/marshalling.gen.cjs +2 -0
  26. package/dist/api/lb/v1/marshalling.gen.js +2 -0
  27. package/dist/api/lb/v1/types.gen.d.ts +16 -0
  28. package/dist/api/marketplace/v2/types.gen.d.ts +19 -6
  29. package/dist/api/secret/v1beta1/marshalling.gen.cjs +1 -0
  30. package/dist/api/secret/v1beta1/marshalling.gen.js +1 -0
  31. package/dist/api/secret/v1beta1/types.gen.d.ts +1 -0
  32. package/dist/api/vpc/v2/api.gen.cjs +57 -0
  33. package/dist/api/vpc/v2/api.gen.d.ts +29 -1
  34. package/dist/api/vpc/v2/api.gen.js +58 -1
  35. package/dist/api/vpc/v2/index.gen.cjs +2 -0
  36. package/dist/api/vpc/v2/index.gen.d.ts +2 -1
  37. package/dist/api/vpc/v2/index.gen.js +3 -1
  38. package/dist/api/vpc/v2/marshalling.gen.cjs +37 -0
  39. package/dist/api/vpc/v2/marshalling.gen.d.ts +4 -1
  40. package/dist/api/vpc/v2/marshalling.gen.js +37 -0
  41. package/dist/api/vpc/v2/types.gen.d.ts +78 -0
  42. package/dist/api/vpc/v2/validation-rules.gen.cjs +8 -0
  43. package/dist/api/vpc/v2/validation-rules.gen.d.ts +5 -0
  44. package/dist/api/vpc/v2/validation-rules.gen.js +8 -0
  45. package/dist/api/webhosting/v1alpha1/marshalling.gen.cjs +1 -0
  46. package/dist/api/webhosting/v1alpha1/marshalling.gen.js +1 -0
  47. package/dist/api/webhosting/v1alpha1/types.gen.d.ts +2 -0
  48. package/dist/bridge.d.ts +2 -1
  49. package/dist/scw/constants.cjs +1 -1
  50. package/dist/scw/constants.d.ts +2 -2
  51. package/dist/scw/constants.js +1 -1
  52. package/dist/scw/custom-marshalling.d.ts +13 -0
  53. package/dist/scw/custom-types.d.ts +8 -0
  54. 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
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const Route = {
4
+ description: {
5
+ maxLength: 200
6
+ }
7
+ };
8
+ exports.Route = Route;
@@ -0,0 +1,5 @@
1
+ export declare const Route: {
2
+ description: {
3
+ maxLength: number;
4
+ };
5
+ };
@@ -0,0 +1,8 @@
1
+ const Route = {
2
+ description: {
3
+ maxLength: 200
4
+ }
5
+ };
6
+ export {
7
+ Route
8
+ };
@@ -105,6 +105,7 @@ const unmarshalControlPanel = (data) => {
105
105
  }
106
106
  return {
107
107
  available: data.available,
108
+ availableLanguages: data.available_languages,
108
109
  logoUrl: data.logo_url,
109
110
  name: data.name
110
111
  };
@@ -103,6 +103,7 @@ const unmarshalControlPanel = (data) => {
103
103
  }
104
104
  return {
105
105
  available: data.available,
106
+ availableLanguages: data.available_languages,
106
107
  logoUrl: data.logo_url,
107
108
  name: data.name
108
109
  };
@@ -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 { marshalScwFile, marshalMoney, marshalTimeSeries, unmarshalMoney, unmarshalScwFile, unmarshalServiceInfo, unmarshalTimeSeries, unmarshalTimeSeriesPoint, } from './scw/custom-marshalling';
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';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const version = "v2.35.0";
3
+ const version = "v2.37.0";
4
4
  const userAgent = `scaleway-sdk-js/${version}`;
5
5
  exports.userAgent = userAgent;
6
6
  exports.version = version;
@@ -1,2 +1,2 @@
1
- export declare const version = "v2.35.0";
2
- export declare const userAgent = "scaleway-sdk-js/v2.35.0";
1
+ export declare const version = "v2.37.0";
2
+ export declare const userAgent = "scaleway-sdk-js/v2.37.0";
@@ -1,4 +1,4 @@
1
- const version = "v2.35.0";
1
+ const version = "v2.37.0";
2
2
  const userAgent = `scaleway-sdk-js/${version}`;
3
3
  export {
4
4
  userAgent,
@@ -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.36.0",
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": "a911ac4c87debbc8605ce5f33dca19b1ad39c589"
42
+ "gitHead": "21d0735f42beb56422452c9cf68095a212c94dc8"
43
43
  }