@scaleway/sdk 1.5.0 → 1.6.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 (35) hide show
  1. package/dist/api/applesilicon/v1alpha1/api.gen.js +1 -1
  2. package/dist/api/baremetal/v1/api.gen.js +2 -2
  3. package/dist/api/cockpit/v1beta1/api.gen.js +51 -1
  4. package/dist/api/cockpit/v1beta1/marshalling.gen.js +44 -1
  5. package/dist/api/container/v1beta1/api.gen.js +1 -1
  6. package/dist/api/flexibleip/v1alpha1/api.gen.js +1 -1
  7. package/dist/api/function/v1beta1/api.gen.js +1 -1
  8. package/dist/api/function/v1beta1/marshalling.gen.js +0 -20
  9. package/dist/api/iam/v1alpha1/validation-rules.gen.js +10 -10
  10. package/dist/api/instance/v1/api.gen.js +86 -67
  11. package/dist/api/iot/v1/api.gen.js +1 -1
  12. package/dist/api/k8s/v1/api.gen.js +1 -1
  13. package/dist/api/lb/v1/api.gen.js +2 -2
  14. package/dist/api/lb/v1/marshalling.gen.js +33 -19
  15. package/dist/api/mnq/v1alpha1/api.gen.js +1 -1
  16. package/dist/api/rdb/v1/api.gen.js +1 -1
  17. package/dist/api/redis/v1/api.gen.js +1 -1
  18. package/dist/api/redis/v1/marshalling.gen.js +2 -0
  19. package/dist/api/registry/v1/api.gen.js +1 -1
  20. package/dist/api/secret/v1alpha1/api.gen.js +1 -1
  21. package/dist/api/secret/v1alpha1/marshalling.gen.js +14 -2
  22. package/dist/api/tem/v1alpha1/api.gen.js +1 -1
  23. package/dist/api/vpc/v1/api.gen.js +2 -2
  24. package/dist/api/vpcgw/v1/api.gen.js +1 -1
  25. package/dist/api/webhosting/v1alpha1/api.gen.js +1 -1
  26. package/dist/index.cjs +276 -121
  27. package/dist/index.d.ts +669 -504
  28. package/dist/internal/async/interval-retrier.js +6 -0
  29. package/dist/internal/logger/level-resolver.js +3 -3
  30. package/dist/scw/client-ini-factory.js +6 -0
  31. package/dist/scw/client-ini-profile.js +18 -0
  32. package/dist/scw/client-settings.js +12 -0
  33. package/dist/scw/constants.js +1 -1
  34. package/dist/scw/errors/standard/quotas-exceeded-error.js +6 -0
  35. package/package.json +2 -2
@@ -70,6 +70,12 @@ const tryAtIntervals = async function (retry, strategy, timeout) {
70
70
  * @public
71
71
  */
72
72
 
73
+ /**
74
+ * The options to wait until a resource is ready.
75
+ *
76
+ * @public
77
+ */
78
+
73
79
  /**
74
80
  * Fetches resource several times until an expected condition is reached, timeouts, or throws an exception.
75
81
  *
@@ -1,13 +1,13 @@
1
1
  // eslint-disable-next-line eslint-comments/disable-enable-pair
2
2
  /* eslint-disable @typescript-eslint/naming-convention */
3
- let LevelResolver;
4
- (function (LevelResolver) {
3
+ let LevelResolver = /*#__PURE__*/function (LevelResolver) {
5
4
  LevelResolver[LevelResolver["silent"] = 0] = "silent";
6
5
  LevelResolver[LevelResolver["error"] = 1] = "error";
7
6
  LevelResolver[LevelResolver["warn"] = 2] = "warn";
8
7
  LevelResolver[LevelResolver["info"] = 3] = "info";
9
8
  LevelResolver[LevelResolver["debug"] = 4] = "debug";
10
- })(LevelResolver || (LevelResolver = {}));
9
+ return LevelResolver;
10
+ }({});
11
11
  const shouldLog = (currentLevel, level) => LevelResolver[level] <= currentLevel;
12
12
 
13
13
  export { LevelResolver, shouldLog };
@@ -1,6 +1,12 @@
1
1
  import { authenticateWithSecrets } from './auth.js';
2
2
  import { hasAuthenticationSecrets } from './client-ini-profile.js';
3
3
 
4
+ /**
5
+ * A factory to build {@link Settings}.
6
+ *
7
+ * @public
8
+ */
9
+
4
10
  /**
5
11
  * Instantiates the SDK from a configuration {@link Profile}.
6
12
  *
@@ -1,5 +1,23 @@
1
1
  import { isAccessKey, isSecretKey } from '../internal/validations/string-validation.js';
2
2
 
3
+ /**
4
+ * Holds access key and secret key.
5
+ *
6
+ * @public
7
+ */
8
+
9
+ /**
10
+ * Holds default values of a Scaleway profile.
11
+ *
12
+ * @public
13
+ */
14
+
15
+ /**
16
+ * Holds values of a Scaleway profile.
17
+ *
18
+ * @public
19
+ */
20
+
3
21
  /**
4
22
  * Verifies that the payload contains both the accessKey and the secretKey.
5
23
  *
@@ -1,5 +1,17 @@
1
1
  import { isOrganizationId, isProjectId, isRegion, isZone, isURL } from '../internal/validations/string-validation.js';
2
2
 
3
+ /**
4
+ * Holds default values of settings.
5
+ *
6
+ * @public
7
+ */
8
+
9
+ /**
10
+ * Settings hold the values of all client options.
11
+ *
12
+ * @public
13
+ */
14
+
3
15
  /**
4
16
  * Validates the content of a {@link Settings} object.
5
17
  *
@@ -1,4 +1,4 @@
1
- const version = 'v1.4.0';
1
+ const version = 'v1.5.0';
2
2
  const userAgent = `scaleway-sdk-js/${version}`;
3
3
 
4
4
  export { userAgent, version };
@@ -7,6 +7,12 @@ import { ScalewayError } from '../scw-error.js';
7
7
  * @public
8
8
  */
9
9
 
10
+ /**
11
+ * Details of an {@link QuotasExceededError} error.
12
+ *
13
+ * @public
14
+ */
15
+
10
16
  /**
11
17
  * Build the default message for {@link QuotasExceededError}.
12
18
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk",
3
- "version": "1.5.0",
3
+ "version": "1.6.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": "a3aad988f8b23ba9b3554a3e59693a0f018546ea"
38
+ "gitHead": "5d5bb4ab4cbd585b82597b854749659957664a80"
39
39
  }