@scaleway/sdk 2.0.0-alpha.15 → 2.0.0-alpha.17

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 (37) hide show
  1. package/dist/api/baremetal/v1/marshalling.gen.js +4 -4
  2. package/dist/api/billing/v2alpha1/api.gen.js +32 -1
  3. package/dist/api/billing/v2alpha1/marshalling.gen.js +46 -1
  4. package/dist/api/cockpit/v1beta1/marshalling.gen.js +3 -1
  5. package/dist/api/container/v1beta1/marshalling.gen.js +3 -3
  6. package/dist/api/function/v1beta1/api.gen.js +36 -0
  7. package/dist/api/function/v1beta1/marshalling.gen.js +3 -3
  8. package/dist/api/iam/v1alpha1/api.gen.js +27 -1
  9. package/dist/api/iam/v1alpha1/marshalling.gen.js +26 -1
  10. package/dist/api/iam/v1alpha1/validation-rules.gen.js +10 -1
  11. package/dist/api/instance/v1/content.gen.js +4 -1
  12. package/dist/api/instance/v1/index.js +1 -1
  13. package/dist/api/instance/v1/marshalling.gen.js +34 -32
  14. package/dist/api/ipfs/v1alpha1/marshalling.gen.js +0 -7
  15. package/dist/api/jobs/index.js +2 -0
  16. package/dist/api/jobs/v1alpha1/api.gen.js +111 -0
  17. package/dist/api/jobs/v1alpha1/content.gen.js +7 -0
  18. package/dist/api/jobs/v1alpha1/index.gen.js +7 -0
  19. package/dist/api/jobs/v1alpha1/marshalling.gen.js +84 -0
  20. package/dist/api/jobs/v1alpha1/validation-rules.gen.js +45 -0
  21. package/dist/api/k8s/v1/marshalling.gen.js +4 -4
  22. package/dist/api/lb/v1/marshalling.gen.js +24 -24
  23. package/dist/api/rdb/v1/marshalling.gen.js +11 -4
  24. package/dist/api/registry/v1/marshalling.gen.js +4 -4
  25. package/dist/api/secret/v1alpha1/api.gen.js +2 -2
  26. package/dist/api/secret/v1alpha1/marshalling.gen.js +6 -1
  27. package/dist/api/std/index.gen.js +1 -0
  28. package/dist/api/tem/v1alpha1/api.gen.js +8 -2
  29. package/dist/api/tem/v1alpha1/marshalling.gen.js +13 -0
  30. package/dist/api/test/v1/marshalling.gen.js +4 -4
  31. package/dist/api/vpcgw/v1/marshalling.gen.js +9 -3
  32. package/dist/index.cjs +873 -472
  33. package/dist/index.d.ts +2032 -1396
  34. package/dist/index.js +30 -26
  35. package/dist/node_modules/@scaleway/random-name/dist/index.js +13 -0
  36. package/dist/scw/constants.js +1 -1
  37. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -43,29 +43,33 @@ import * as index$f from './api/ipam/index.js';
43
43
  export { index$f as IPAM };
44
44
  import * as index$g from './api/ipfs/index.js';
45
45
  export { index$g as IPFS };
46
- import * as index$h from './api/k8s/index.js';
47
- export { index$h as K8S };
48
- import * as index$i from './api/lb/index.js';
49
- export { index$i as LB };
50
- import * as index$j from './api/marketplace/index.js';
51
- export { index$j as Marketplace };
52
- import * as index$k from './api/mnq/index.js';
53
- export { index$k as MNQ };
54
- import * as index$l from './api/rdb/index.js';
55
- export { index$l as RDB };
56
- import * as index$m from './api/redis/index.js';
57
- export { index$m as Redis };
58
- import * as index$n from './api/registry/index.js';
59
- export { index$n as Registry };
60
- import * as index$o from './api/secret/index.js';
61
- export { index$o as Secret };
62
- import * as index$p from './api/test/index.js';
63
- export { index$p as Test };
64
- import * as index$q from './api/tem/index.js';
65
- export { index$q as TransactionalEmail };
66
- import * as index$r from './api/vpc/index.js';
67
- export { index$r as VPC };
68
- import * as index$s from './api/vpcgw/index.js';
69
- export { index$s as VPCGW };
70
- import * as index$t from './api/webhosting/index.js';
71
- export { index$t as Webhosting };
46
+ import * as index$h from './api/jobs/index.js';
47
+ export { index$h as Jobs };
48
+ import * as index$i from './api/k8s/index.js';
49
+ export { index$i as K8S };
50
+ import * as index$j from './api/lb/index.js';
51
+ export { index$j as LB };
52
+ import * as index$k from './api/marketplace/index.js';
53
+ export { index$k as Marketplace };
54
+ import * as index$l from './api/mnq/index.js';
55
+ export { index$l as MNQ };
56
+ import * as index$m from './api/rdb/index.js';
57
+ export { index$m as RDB };
58
+ import * as index$n from './api/redis/index.js';
59
+ export { index$n as Redis };
60
+ import * as index$o from './api/registry/index.js';
61
+ export { index$o as Registry };
62
+ import * as index$p from './api/secret/index.js';
63
+ export { index$p as Secret };
64
+ import * as index_gen from './api/std/index.gen.js';
65
+ export { index_gen as Std };
66
+ import * as index$q from './api/test/index.js';
67
+ export { index$q as Test };
68
+ import * as index$r from './api/tem/index.js';
69
+ export { index$r as TransactionalEmail };
70
+ import * as index$s from './api/vpc/index.js';
71
+ export { index$s as VPC };
72
+ import * as index$t from './api/vpcgw/index.js';
73
+ export { index$t as VPCGW };
74
+ import * as index$u from './api/webhosting/index.js';
75
+ export { index$u as Webhosting };
@@ -0,0 +1,13 @@
1
+ const ADJECTIVES = ['admiring', 'adoring', 'affectionate', 'agitated', 'amazing', 'angry', 'awesome', 'beautiful', 'blissful', 'bold', 'boring', 'brave', 'busy', 'charming', 'clever', 'cool', 'compassionate', 'competent', 'condescending', 'confident', 'cranky', 'crazy', 'dazzling', 'determined', 'distracted', 'dreamy', 'eager', 'ecstatic', 'elastic', 'elated', 'elegant', 'eloquent', 'epic', 'exciting', 'fervent', 'festive', 'flamboyant', 'focused', 'friendly', 'frosty', 'funny', 'gallant', 'gifted', 'goofy', 'gracious', 'great', 'happy', 'hardcore', 'heuristic', 'hopeful', 'hungry', 'infallible', 'inspiring', 'interesting', 'intelligent', 'jolly', 'jovial', 'keen', 'kind', 'laughing', 'loving', 'lucid', 'magical', 'mystifying', 'modest', 'musing', 'naughty', 'nervous', 'nice', 'nifty', 'nostalgic', 'objective', 'optimistic', 'peaceful', 'pedantic', 'pensive', 'practical', 'priceless', 'quirky', 'quizzical', 'recursing', 'relaxed', 'reverent', 'romantic', 'sad', 'serene', 'sharp', 'silly', 'sleepy', 'stoic', 'strange', 'stupefied', 'suspicious', 'sweet', 'tender', 'thirsty', 'trusting', 'unruffled', 'upbeat', 'vibrant', 'vigilant', 'vigorous', 'wizardly', 'wonderful', 'xenodochial', 'youthful', 'zealous', 'zen'];
2
+ const NAMES = ['albattani', 'allen', 'almeida', 'antonelli', 'agnesi', 'archimedes', 'ardinghelli', 'aryabhata', 'austin', 'babbage', 'banach', 'banzai', 'bardeen', 'bartik', 'bassi', 'beaver', 'bell', 'benz', 'bhabha', 'bhaskara', 'black', 'blackburn', 'blackwell', 'bohr', 'booth', 'borg', 'bose', 'bouman', 'boyd', 'brahmagupta', 'brattain', 'brown', 'buck', 'burnell', 'cannon', 'carson', 'cartwright', 'carver', 'cerf', 'chandrasekhar', 'chaplygin', 'chatelet', 'chatterjee', 'chebyshev', 'cohen', 'chaum', 'clarke', 'colden', 'cori', 'cray', 'curran', 'curie', 'darwin', 'davinci', 'dewdney', 'dhawan', 'diffie', 'dijkstra', 'dirac', 'driscoll', 'dubinsky', 'easley', 'edison', 'einstein', 'elbakyan', 'elgamal', 'elion', 'ellis', 'engelbart', 'euclid', 'euler', 'faraday', 'feistel', 'fermat', 'fermi', 'feynman', 'franklin', 'gagarin', 'galileo', 'galois', 'ganguly', 'gates', 'gauss', 'germain', 'goldberg', 'goldstine', 'goldwasser', 'golick', 'goodall', 'gould', 'greider', 'grothendieck', 'haibt', 'hamilton', 'haslett', 'hawking', 'hellman', 'heisenberg', 'hermann', 'herschel', 'hertz', 'heyrovsky', 'hodgkin', 'hofstadter', 'hoover', 'hopper', 'hugle', 'hypatia', 'ishizaka', 'jackson', 'jang', 'jemison', 'jennings', 'jepsen', 'johnson', 'joliot', 'jones', 'kalam', 'kapitsa', 'kare', 'keldysh', 'keller', 'kepler', 'khayyam', 'khorana', 'kilby', 'kirch', 'knuth', 'kowalevski', 'lalande', 'lamarr', 'lamport', 'leakey', 'leavitt', 'lederberg', 'lehmann', 'lewin', 'lichterman', 'liskov', 'lovelace', 'lumiere', 'mahavira', 'margulis', 'matsumoto', 'maxwell', 'mayer', 'mccarthy', 'mcclintock', 'mclaren', 'mclean', 'mcnulty', 'mendel', 'mendeleev', 'meitner', 'meninsky', 'merkle', 'mestorf', 'mirzakhani', 'montalcini', 'moore', 'morse', 'murdock', 'moser', 'napier', 'nash', 'neumann', 'newton', 'nightingale', 'nobel', 'noether', 'northcutt', 'noyce', 'panini', 'pare', 'pascal', 'pasteur', 'payne', 'perlman', 'pike', 'poincare', 'poitras', 'proskuriakova', 'ptolemy', 'raman', 'ramanujan', 'ride', 'ritchie', 'rhodes', 'robinson', 'roentgen', 'rosalind', 'rubin', 'saha', 'sammet', 'sanderson', 'satoshi', 'shamir', 'shannon', 'shaw', 'shirley', 'shockley', 'shtern', 'sinoussi', 'snyder', 'solomon', 'spence', 'stonebraker', 'sutherland', 'swanson', 'swartz', 'swirles', 'taussig', 'tereshkova', 'tesla', 'tharp', 'thompson', 'torvalds', 'tu', 'turing', 'varahamihira', 'vaughan', 'visvesvaraya', 'volhard', 'villani', 'wescoff', 'wilbur', 'wiles', 'williams', 'williamson', 'wilson', 'wing', 'wozniak', 'wright', 'wu', 'yalow', 'yonath', 'zhukovsky'];
3
+ const randomName = function () {
4
+ let prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
5
+ let separator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '-';
6
+ const name = `${ADJECTIVES[Math.floor(Math.random() * ADJECTIVES.length)] ?? ''}${separator}${NAMES[Math.floor(Math.random() * NAMES.length)] ?? ''}`;
7
+ if (name === `boring${separator}wozniak`) {
8
+ return randomName(prefix, separator);
9
+ }
10
+ return prefix.length > 0 ? `${prefix}${separator}${name}` : name;
11
+ };
12
+
13
+ export { randomName as default };
@@ -1,4 +1,4 @@
1
- const version = 'v2.0.0-alpha.14';
1
+ const version = 'v2.0.0-alpha.16';
2
2
  const userAgent = `scaleway-sdk-js/${version}`;
3
3
 
4
4
  export { userAgent, version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk",
3
- "version": "2.0.0-alpha.15",
3
+ "version": "2.0.0-alpha.17",
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": "f1ccf454891957e771ceff60eedb1574c215e057"
38
+ "gitHead": "184bac5fac50897e97f16e511d14a2f7efddd186"
39
39
  }