@scaleway/sdk 1.14.0 → 1.16.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/account/v2/api.gen.js +77 -60
  2. package/dist/api/applesilicon/v1alpha1/api.gen.js +174 -152
  3. package/dist/api/baremetal/v1/api.gen.js +434 -378
  4. package/dist/api/baremetal/v1/api.utils.js +19 -22
  5. package/dist/api/billing/v2alpha1/api.gen.js +21 -17
  6. package/dist/api/cockpit/v1beta1/api.gen.js +308 -232
  7. package/dist/api/container/v1beta1/api.gen.js +384 -337
  8. package/dist/api/domain/v2beta1/api.gen.js +754 -668
  9. package/dist/api/flexibleip/v1alpha1/api.gen.js +164 -151
  10. package/dist/api/function/v1beta1/api.gen.js +467 -407
  11. package/dist/api/iam/v1alpha1/api.gen.js +641 -557
  12. package/dist/api/instance/v1/api.gen.js +803 -677
  13. package/dist/api/instance/v1/api.utils.js +337 -325
  14. package/dist/api/instance/v1/content.gen.js +4 -1
  15. package/dist/api/instance/v1/index.js +1 -1
  16. package/dist/api/instance/v1/marshalling.gen.js +27 -4
  17. package/dist/api/iot/v1/api.gen.js +508 -452
  18. package/dist/api/ipfs/index.js +2 -0
  19. package/dist/api/ipfs/v1alpha1/api.gen.js +197 -0
  20. package/dist/api/ipfs/v1alpha1/content.gen.js +7 -0
  21. package/dist/api/ipfs/v1alpha1/index.gen.js +5 -0
  22. package/dist/api/ipfs/v1alpha1/marshalling.gen.js +125 -0
  23. package/dist/api/k8s/v1/api.gen.js +403 -342
  24. package/dist/api/k8s/v1/api.utils.js +7 -10
  25. package/dist/api/k8s/v1/marshalling.gen.js +19 -1
  26. package/dist/api/k8s/v1/validation-rules.gen.js +10 -1
  27. package/dist/api/lb/v1/api.gen.js +1501 -1363
  28. package/dist/api/lb/v1/api.utils.js +71 -75
  29. package/dist/api/lb/v1/marshalling.gen.js +6 -0
  30. package/dist/api/marketplace/v1/api.gen.js +35 -32
  31. package/dist/api/marketplace/v2/api.gen.js +117 -102
  32. package/dist/api/mnq/v1alpha1/api.gen.js +154 -137
  33. package/dist/api/rdb/v1/api.gen.js +897 -819
  34. package/dist/api/redis/v1/api.gen.js +358 -333
  35. package/dist/api/redis/v1/marshalling.gen.js +1 -0
  36. package/dist/api/registry/v1/api.gen.js +211 -189
  37. package/dist/api/secret/v1alpha1/api.gen.js +295 -246
  38. package/dist/api/secret/v1alpha1/marshalling.gen.js +10 -1
  39. package/dist/api/tem/v1alpha1/api.gen.js +182 -147
  40. package/dist/api/tem/v1alpha1/marshalling.gen.js +32 -1
  41. package/dist/api/test/v1/api.gen.js +116 -104
  42. package/dist/api/vpc/v1/api.gen.js +74 -65
  43. package/dist/api/vpc/v2/api.gen.js +200 -178
  44. package/dist/api/vpc/v2/marshalling.gen.js +1 -0
  45. package/dist/api/vpcgw/v1/api.gen.js +575 -501
  46. package/dist/api/webhosting/v1alpha1/api.gen.js +127 -117
  47. package/dist/api/webhosting/v1alpha1/content.gen.js +1 -1
  48. package/dist/index.cjs +924 -453
  49. package/dist/index.d.ts +2152 -1558
  50. package/dist/index.js +28 -26
  51. package/dist/internal/logger/console-logger.js +4 -5
  52. package/dist/scw/constants.js +1 -1
  53. package/dist/scw/errors/scw-error.js +2 -2
  54. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -35,29 +35,31 @@ import * as index$b from './api/instance/index.js';
35
35
  export { index$b as Instance };
36
36
  import * as index$c from './api/iot/index.js';
37
37
  export { index$c as IOT };
38
- import * as index$d from './api/k8s/index.js';
39
- export { index$d as K8S };
40
- import * as index$e from './api/lb/index.js';
41
- export { index$e as LB };
42
- import * as index$f from './api/marketplace/index.js';
43
- export { index$f as Marketplace };
44
- import * as index$g from './api/mnq/index.js';
45
- export { index$g as MNQ };
46
- import * as index$h from './api/rdb/index.js';
47
- export { index$h as RDB };
48
- import * as index$i from './api/redis/index.js';
49
- export { index$i as Redis };
50
- import * as index$j from './api/registry/index.js';
51
- export { index$j as Registry };
52
- import * as index$k from './api/secret/index.js';
53
- export { index$k as Secret };
54
- import * as index$l from './api/test/index.js';
55
- export { index$l as Test };
56
- import * as index$m from './api/tem/index.js';
57
- export { index$m as TransactionalEmail };
58
- import * as index$n from './api/vpc/index.js';
59
- export { index$n as VPC };
60
- import * as index$o from './api/vpcgw/index.js';
61
- export { index$o as VPCGW };
62
- import * as index$p from './api/webhosting/index.js';
63
- export { index$p as Webhosting };
38
+ import * as index$d from './api/ipfs/index.js';
39
+ export { index$d as IPFS };
40
+ import * as index$e from './api/k8s/index.js';
41
+ export { index$e as K8S };
42
+ import * as index$f from './api/lb/index.js';
43
+ export { index$f as LB };
44
+ import * as index$g from './api/marketplace/index.js';
45
+ export { index$g as Marketplace };
46
+ import * as index$h from './api/mnq/index.js';
47
+ export { index$h as MNQ };
48
+ import * as index$i from './api/rdb/index.js';
49
+ export { index$i as RDB };
50
+ import * as index$j from './api/redis/index.js';
51
+ export { index$j as Redis };
52
+ import * as index$k from './api/registry/index.js';
53
+ export { index$k as Registry };
54
+ import * as index$l from './api/secret/index.js';
55
+ export { index$l as Secret };
56
+ import * as index$m from './api/test/index.js';
57
+ export { index$m as Test };
58
+ import * as index$n from './api/tem/index.js';
59
+ export { index$n as TransactionalEmail };
60
+ import * as index$o from './api/vpc/index.js';
61
+ export { index$o as VPC };
62
+ import * as index$p from './api/vpcgw/index.js';
63
+ export { index$p as VPCGW };
64
+ import * as index$q from './api/webhosting/index.js';
65
+ export { index$q as Webhosting };
@@ -20,11 +20,6 @@ class ConsoleLogger {
20
20
  this.logLevel = logLevel;
21
21
  this.prefix = prefix;
22
22
  this.output = output;
23
- this.level = void 0;
24
- this.debug = this.makeMethod('debug');
25
- this.error = this.makeMethod('error');
26
- this.info = this.makeMethod('info');
27
- this.warn = this.makeMethod('warn');
28
23
  this.level = LevelResolver[this.logLevel];
29
24
  }
30
25
  makeMethod(method) {
@@ -34,6 +29,10 @@ class ConsoleLogger {
34
29
  }
35
30
  };
36
31
  }
32
+ debug = this.makeMethod('debug');
33
+ error = this.makeMethod('error');
34
+ info = this.makeMethod('info');
35
+ warn = this.makeMethod('warn');
37
36
  }
38
37
 
39
38
  export { ConsoleLogger };
@@ -1,4 +1,4 @@
1
- const version = 'v1.13.0';
1
+ const version = 'v1.15.0';
2
2
  const userAgent = `scaleway-sdk-js/${version}`;
3
3
 
4
4
  export { userAgent, version };
@@ -37,6 +37,8 @@ const buildDefaultMessage = (status, body) => {
37
37
  * @public
38
38
  */
39
39
  class ScalewayError extends Error {
40
+ /** The message originating from the payload. */
41
+
40
42
  constructor( /** The response status. */
41
43
  status, /** The response payload. */
42
44
  body, /** The augmented message. */
@@ -48,8 +50,6 @@ class ScalewayError extends Error {
48
50
  this.status = status;
49
51
  this.body = body;
50
52
  this.message = message;
51
- /** The message originating from the payload. */
52
- this.rawMessage = void 0;
53
53
  this.name = 'ScalewayError';
54
54
  this.rawMessage = typeof body === 'object' && typeof body.message === 'string' ? body.message : undefined;
55
55
  Object.setPrototypeOf(this, new.target.prototype); // restore prototype chain
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk",
3
- "version": "1.14.0",
3
+ "version": "1.16.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Scaleway SDK.",
6
6
  "keywords": [
@@ -35,5 +35,5 @@
35
35
  "bundledDependencies": [
36
36
  "@scaleway/random-name"
37
37
  ],
38
- "gitHead": "d61458f916f364649a14e96eae3b2d23b7cedef4"
38
+ "gitHead": "9cdaa1dc18ca1582ed16a74056e642fca7af94c4"
39
39
  }