@scaleway/sdk 2.45.0 → 2.47.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 (275) hide show
  1. package/dist/api/account/index.gen.d.ts +6 -0
  2. package/dist/api/applesilicon/index.gen.d.ts +5 -0
  3. package/dist/api/baremetal/index.gen.d.ts +5 -0
  4. package/dist/api/baremetal/v1/api.gen.cjs +3 -1
  5. package/dist/api/baremetal/v1/api.gen.js +3 -1
  6. package/dist/api/baremetal/v1/index.gen.d.ts +1 -1
  7. package/dist/api/baremetal/v1/marshalling.gen.cjs +61 -1
  8. package/dist/api/baremetal/v1/marshalling.gen.js +61 -1
  9. package/dist/api/baremetal/v1/types.gen.d.ts +120 -1
  10. package/dist/api/billing/index.gen.d.ts +6 -0
  11. package/dist/api/block/index.gen.d.ts +5 -0
  12. package/dist/api/cockpit/index.gen.d.ts +6 -0
  13. package/dist/api/cockpit/v1/types.gen.d.ts +1 -1
  14. package/dist/api/container/index.gen.d.ts +5 -0
  15. package/dist/api/container/v1beta1/api.gen.cjs +0 -23
  16. package/dist/api/container/v1beta1/api.gen.d.ts +1 -9
  17. package/dist/api/container/v1beta1/api.gen.js +1 -24
  18. package/dist/api/container/v1beta1/index.gen.d.ts +1 -1
  19. package/dist/api/container/v1beta1/types.gen.d.ts +0 -12
  20. package/dist/api/dedibox/index.gen.d.ts +5 -0
  21. package/dist/api/document_db/index.gen.d.ts +5 -0
  22. package/dist/api/domain/index.gen.d.ts +5 -0
  23. package/dist/api/edge_services/index.gen.d.ts +5 -0
  24. package/dist/api/edge_services/v1alpha1/api.gen.cjs +599 -0
  25. package/dist/api/edge_services/v1alpha1/api.gen.js +599 -0
  26. package/dist/api/edge_services/v1alpha1/content.gen.cjs +8 -0
  27. package/dist/api/edge_services/v1alpha1/content.gen.js +8 -0
  28. package/dist/api/edge_services/v1alpha1/index.gen.cjs +7 -0
  29. package/dist/api/edge_services/v1alpha1/index.gen.js +7 -0
  30. package/dist/api/edge_services/v1alpha1/marshalling.gen.cjs +434 -0
  31. package/dist/api/edge_services/v1alpha1/marshalling.gen.js +434 -0
  32. package/dist/api/flexibleip/index.gen.d.ts +5 -0
  33. package/dist/api/function/index.gen.d.ts +5 -0
  34. package/dist/api/function/v1beta1/api.gen.cjs +0 -23
  35. package/dist/api/function/v1beta1/api.gen.d.ts +1 -9
  36. package/dist/api/function/v1beta1/api.gen.js +1 -24
  37. package/dist/api/function/v1beta1/index.gen.d.ts +1 -1
  38. package/dist/api/function/v1beta1/types.gen.d.ts +0 -12
  39. package/dist/api/iam/index.gen.d.ts +5 -0
  40. package/dist/api/iam/v1alpha1/api.gen.cjs +1 -1
  41. package/dist/api/iam/v1alpha1/api.gen.d.ts +1 -1
  42. package/dist/api/iam/v1alpha1/api.gen.js +1 -1
  43. package/dist/api/iam/v1alpha1/index.gen.d.ts +1 -1
  44. package/dist/api/iam/v1alpha1/marshalling.gen.cjs +17 -3
  45. package/dist/api/iam/v1alpha1/marshalling.gen.js +17 -3
  46. package/dist/api/iam/v1alpha1/types.gen.d.ts +27 -3
  47. package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +12 -0
  48. package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +11 -0
  49. package/dist/api/iam/v1alpha1/validation-rules.gen.js +12 -0
  50. package/dist/api/index.d.ts +65 -35
  51. package/dist/api/index.gen.d.ts +43 -0
  52. package/dist/api/inference/index.gen.d.ts +5 -0
  53. package/dist/api/inference/v1beta1/api.gen.cjs +306 -0
  54. package/dist/api/inference/v1beta1/api.gen.js +306 -0
  55. package/dist/api/inference/v1beta1/content.gen.cjs +8 -0
  56. package/dist/api/inference/v1beta1/content.gen.js +8 -0
  57. package/dist/api/inference/v1beta1/index.gen.cjs +8 -0
  58. package/dist/api/inference/v1beta1/index.gen.js +8 -0
  59. package/dist/api/inference/v1beta1/marshalling.gen.cjs +273 -0
  60. package/dist/api/inference/v1beta1/marshalling.gen.js +273 -0
  61. package/dist/api/inference/v1beta1/validation-rules.gen.cjs +56 -0
  62. package/dist/api/inference/v1beta1/validation-rules.gen.js +56 -0
  63. package/dist/api/instance/index.gen.d.ts +5 -0
  64. package/dist/api/instance/v1/marshalling.gen.cjs +1 -0
  65. package/dist/api/instance/v1/marshalling.gen.js +1 -0
  66. package/dist/api/instance/v1/types.gen.d.ts +22 -8
  67. package/dist/api/instance/v1/types.private.gen.d.ts +2 -2
  68. package/dist/api/iot/index.gen.d.ts +5 -0
  69. package/dist/api/ipam/index.gen.d.ts +5 -0
  70. package/dist/api/ipam/v1/api.gen.cjs +67 -2
  71. package/dist/api/ipam/v1/api.gen.d.ts +38 -3
  72. package/dist/api/ipam/v1/api.gen.js +68 -3
  73. package/dist/api/ipam/v1/index.gen.d.ts +1 -1
  74. package/dist/api/ipam/v1/marshalling.gen.cjs +18 -0
  75. package/dist/api/ipam/v1/marshalling.gen.d.ts +4 -1
  76. package/dist/api/ipam/v1/marshalling.gen.js +18 -0
  77. package/dist/api/ipam/v1/types.gen.d.ts +59 -5
  78. package/dist/api/ipfs/index.gen.d.ts +5 -0
  79. package/dist/api/jobs/index.gen.d.ts +5 -0
  80. package/dist/api/k8s/index.gen.d.ts +5 -0
  81. package/dist/api/k8s/v1/api.gen.cjs +17 -0
  82. package/dist/api/k8s/v1/api.gen.d.ts +10 -1
  83. package/dist/api/k8s/v1/api.gen.js +17 -0
  84. package/dist/api/k8s/v1/index.gen.d.ts +1 -1
  85. package/dist/api/k8s/v1/types.gen.d.ts +13 -0
  86. package/dist/api/k8s/v1/validation-rules.gen.cjs +65 -0
  87. package/dist/api/k8s/v1/validation-rules.gen.d.ts +62 -0
  88. package/dist/api/k8s/v1/validation-rules.gen.js +66 -1
  89. package/dist/api/key_manager/index.gen.d.ts +5 -0
  90. package/dist/api/key_manager/v1alpha1/api.gen.cjs +31 -0
  91. package/dist/api/key_manager/v1alpha1/api.gen.d.ts +17 -1
  92. package/dist/api/key_manager/v1alpha1/api.gen.js +32 -1
  93. package/dist/api/key_manager/v1alpha1/index.gen.d.ts +1 -1
  94. package/dist/api/key_manager/v1alpha1/marshalling.gen.cjs +7 -0
  95. package/dist/api/key_manager/v1alpha1/marshalling.gen.d.ts +2 -1
  96. package/dist/api/key_manager/v1alpha1/marshalling.gen.js +7 -0
  97. package/dist/api/key_manager/v1alpha1/types.gen.d.ts +33 -0
  98. package/dist/api/lb/index.gen.d.ts +5 -0
  99. package/dist/api/llm_inference/index.gen.d.ts +5 -0
  100. package/dist/api/marketplace/index.gen.d.ts +5 -0
  101. package/dist/api/mnq/index.gen.cjs +4 -0
  102. package/dist/api/mnq/index.gen.d.ts +5 -0
  103. package/dist/api/mnq/index.gen.js +4 -0
  104. package/dist/api/qaas/index.gen.d.ts +5 -0
  105. package/dist/api/qaas/v1alpha1/api.gen.cjs +527 -0
  106. package/dist/api/qaas/v1alpha1/api.gen.d.ts +256 -0
  107. package/dist/api/qaas/v1alpha1/api.gen.js +527 -0
  108. package/dist/api/qaas/v1alpha1/content.gen.cjs +19 -0
  109. package/dist/api/qaas/v1alpha1/content.gen.d.ts +7 -0
  110. package/dist/api/qaas/v1alpha1/content.gen.js +19 -0
  111. package/dist/api/qaas/v1alpha1/index.gen.cjs +10 -0
  112. package/dist/api/qaas/v1alpha1/index.gen.d.ts +4 -0
  113. package/dist/api/qaas/v1alpha1/index.gen.js +10 -0
  114. package/dist/api/qaas/v1alpha1/marshalling.gen.cjs +320 -0
  115. package/dist/api/qaas/v1alpha1/marshalling.gen.d.ts +22 -0
  116. package/dist/api/qaas/v1alpha1/marshalling.gen.js +320 -0
  117. package/dist/api/qaas/v1alpha1/types.gen.d.ts +470 -0
  118. package/dist/api/qaas/v1alpha1/validation-rules.gen.cjs +14 -0
  119. package/dist/api/qaas/v1alpha1/validation-rules.gen.d.ts +10 -0
  120. package/dist/api/qaas/v1alpha1/validation-rules.gen.js +14 -0
  121. package/dist/api/rdb/index.gen.d.ts +5 -0
  122. package/dist/api/redis/index.gen.d.ts +5 -0
  123. package/dist/api/registry/index.gen.d.ts +5 -0
  124. package/dist/api/secret/index.gen.d.ts +6 -0
  125. package/dist/api/serverless_sqldb/index.gen.d.ts +5 -0
  126. package/dist/api/tem/index.gen.cjs +4 -0
  127. package/dist/api/tem/index.gen.d.ts +5 -0
  128. package/dist/api/tem/index.gen.js +4 -0
  129. package/dist/api/tem/v1alpha1/api.gen.cjs +32 -0
  130. package/dist/api/tem/v1alpha1/api.gen.d.ts +17 -1
  131. package/dist/api/tem/v1alpha1/api.gen.js +33 -1
  132. package/dist/api/tem/v1alpha1/content.gen.cjs +4 -1
  133. package/dist/api/tem/v1alpha1/content.gen.js +4 -1
  134. package/dist/api/tem/v1alpha1/index.gen.d.ts +1 -1
  135. package/dist/api/tem/v1alpha1/marshalling.gen.cjs +36 -0
  136. package/dist/api/tem/v1alpha1/marshalling.gen.d.ts +3 -1
  137. package/dist/api/tem/v1alpha1/marshalling.gen.js +36 -0
  138. package/dist/api/tem/v1alpha1/types.gen.d.ts +52 -1
  139. package/dist/api/tem/v1alpha1/validation-rules.gen.cjs +11 -0
  140. package/dist/api/tem/v1alpha1/validation-rules.gen.d.ts +10 -0
  141. package/dist/api/tem/v1alpha1/validation-rules.gen.js +11 -0
  142. package/dist/api/test/index.gen.d.ts +5 -0
  143. package/dist/api/vpc/index.gen.d.ts +6 -0
  144. package/dist/api/vpc/v2/marshalling.gen.cjs +1 -0
  145. package/dist/api/vpc/v2/marshalling.gen.js +1 -0
  146. package/dist/api/vpc/v2/types.gen.d.ts +3 -0
  147. package/dist/api/vpcgw/index.gen.d.ts +5 -0
  148. package/dist/api/webhosting/index.gen.cjs +6 -0
  149. package/dist/api/webhosting/index.gen.d.ts +6 -0
  150. package/dist/api/webhosting/index.gen.js +6 -0
  151. package/dist/api/webhosting/v1/api.gen.cjs +620 -0
  152. package/dist/api/webhosting/v1/api.gen.d.ts +326 -0
  153. package/dist/api/webhosting/v1/api.gen.js +620 -0
  154. package/dist/api/webhosting/v1/content.gen.cjs +14 -0
  155. package/dist/api/webhosting/v1/content.gen.d.ts +5 -0
  156. package/dist/api/webhosting/v1/content.gen.js +14 -0
  157. package/dist/api/webhosting/v1/index.gen.cjs +15 -0
  158. package/dist/api/webhosting/v1/index.gen.d.ts +4 -0
  159. package/dist/api/webhosting/v1/index.gen.js +15 -0
  160. package/dist/api/webhosting/v1/marshalling.gen.cjs +391 -0
  161. package/dist/api/webhosting/v1/marshalling.gen.d.ts +29 -0
  162. package/dist/api/webhosting/v1/marshalling.gen.js +391 -0
  163. package/dist/api/webhosting/v1/types.gen.d.ts +698 -0
  164. package/dist/api/webhosting/v1/validation-rules.gen.cjs +82 -0
  165. package/dist/api/webhosting/v1/validation-rules.gen.d.ts +72 -0
  166. package/dist/api/webhosting/v1/validation-rules.gen.js +82 -0
  167. package/dist/index.cjs +92 -70
  168. package/dist/index.js +92 -70
  169. package/dist/scw/constants.cjs +1 -1
  170. package/dist/scw/constants.d.ts +2 -2
  171. package/dist/scw/constants.js +1 -1
  172. package/package.json +2 -2
  173. package/dist/api/account/index.d.ts +0 -2
  174. package/dist/api/applesilicon/index.d.ts +0 -1
  175. package/dist/api/baremetal/index.d.ts +0 -1
  176. package/dist/api/billing/index.d.ts +0 -2
  177. package/dist/api/block/index.d.ts +0 -1
  178. package/dist/api/cockpit/index.d.ts +0 -2
  179. package/dist/api/container/index.d.ts +0 -1
  180. package/dist/api/dedibox/index.d.ts +0 -1
  181. package/dist/api/document_db/index.d.ts +0 -1
  182. package/dist/api/domain/index.d.ts +0 -1
  183. package/dist/api/edge_services/index.d.ts +0 -1
  184. package/dist/api/flexibleip/index.d.ts +0 -1
  185. package/dist/api/function/index.d.ts +0 -1
  186. package/dist/api/iam/index.d.ts +0 -1
  187. package/dist/api/instance/index.d.ts +0 -1
  188. package/dist/api/iot/index.d.ts +0 -1
  189. package/dist/api/ipam/index.d.ts +0 -1
  190. package/dist/api/ipfs/index.d.ts +0 -1
  191. package/dist/api/jobs/index.d.ts +0 -1
  192. package/dist/api/k8s/index.d.ts +0 -1
  193. package/dist/api/key_manager/index.d.ts +0 -1
  194. package/dist/api/lb/index.d.ts +0 -1
  195. package/dist/api/llm_inference/index.d.ts +0 -1
  196. package/dist/api/marketplace/index.d.ts +0 -1
  197. package/dist/api/mnq/index.d.ts +0 -1
  198. package/dist/api/rdb/index.d.ts +0 -1
  199. package/dist/api/redis/index.d.ts +0 -1
  200. package/dist/api/registry/index.d.ts +0 -1
  201. package/dist/api/secret/index.d.ts +0 -2
  202. package/dist/api/serverless_sqldb/index.d.ts +0 -1
  203. package/dist/api/tem/index.d.ts +0 -1
  204. package/dist/api/test/index.d.ts +0 -1
  205. package/dist/api/vpc/index.d.ts +0 -2
  206. package/dist/api/vpcgw/index.d.ts +0 -1
  207. package/dist/api/webhosting/index.d.ts +0 -1
  208. /package/dist/api/account/{index.cjs → index.gen.cjs} +0 -0
  209. /package/dist/api/account/{index.js → index.gen.js} +0 -0
  210. /package/dist/api/applesilicon/{index.cjs → index.gen.cjs} +0 -0
  211. /package/dist/api/applesilicon/{index.js → index.gen.js} +0 -0
  212. /package/dist/api/baremetal/{index.cjs → index.gen.cjs} +0 -0
  213. /package/dist/api/baremetal/{index.js → index.gen.js} +0 -0
  214. /package/dist/api/billing/{index.cjs → index.gen.cjs} +0 -0
  215. /package/dist/api/billing/{index.js → index.gen.js} +0 -0
  216. /package/dist/api/block/{index.cjs → index.gen.cjs} +0 -0
  217. /package/dist/api/block/{index.js → index.gen.js} +0 -0
  218. /package/dist/api/cockpit/{index.cjs → index.gen.cjs} +0 -0
  219. /package/dist/api/cockpit/{index.js → index.gen.js} +0 -0
  220. /package/dist/api/container/{index.cjs → index.gen.cjs} +0 -0
  221. /package/dist/api/container/{index.js → index.gen.js} +0 -0
  222. /package/dist/api/dedibox/{index.cjs → index.gen.cjs} +0 -0
  223. /package/dist/api/dedibox/{index.js → index.gen.js} +0 -0
  224. /package/dist/api/document_db/{index.cjs → index.gen.cjs} +0 -0
  225. /package/dist/api/document_db/{index.js → index.gen.js} +0 -0
  226. /package/dist/api/domain/{index.cjs → index.gen.cjs} +0 -0
  227. /package/dist/api/domain/{index.js → index.gen.js} +0 -0
  228. /package/dist/api/{flexibleip/index.cjs → edge_services/index.gen.cjs} +0 -0
  229. /package/dist/api/{flexibleip/index.js → edge_services/index.gen.js} +0 -0
  230. /package/dist/api/{iam/index.cjs → flexibleip/index.gen.cjs} +0 -0
  231. /package/dist/api/{iam/index.js → flexibleip/index.gen.js} +0 -0
  232. /package/dist/api/function/{index.cjs → index.gen.cjs} +0 -0
  233. /package/dist/api/function/{index.js → index.gen.js} +0 -0
  234. /package/dist/api/{ipfs/index.cjs → iam/index.gen.cjs} +0 -0
  235. /package/dist/api/{ipfs/index.js → iam/index.gen.js} +0 -0
  236. /package/dist/api/{llm_inference/index.cjs → inference/index.gen.cjs} +0 -0
  237. /package/dist/api/{llm_inference/index.js → inference/index.gen.js} +0 -0
  238. /package/dist/api/instance/{index.cjs → index.gen.cjs} +0 -0
  239. /package/dist/api/instance/{index.js → index.gen.js} +0 -0
  240. /package/dist/api/iot/{index.cjs → index.gen.cjs} +0 -0
  241. /package/dist/api/iot/{index.js → index.gen.js} +0 -0
  242. /package/dist/api/ipam/{index.cjs → index.gen.cjs} +0 -0
  243. /package/dist/api/ipam/{index.js → index.gen.js} +0 -0
  244. /package/dist/api/{jobs/index.cjs → ipfs/index.gen.cjs} +0 -0
  245. /package/dist/api/{jobs/index.js → ipfs/index.gen.js} +0 -0
  246. /package/dist/api/{key_manager/index.cjs → jobs/index.gen.cjs} +0 -0
  247. /package/dist/api/{key_manager/index.js → jobs/index.gen.js} +0 -0
  248. /package/dist/api/k8s/{index.cjs → index.gen.cjs} +0 -0
  249. /package/dist/api/k8s/{index.js → index.gen.js} +0 -0
  250. /package/dist/api/{serverless_sqldb/index.cjs → key_manager/index.gen.cjs} +0 -0
  251. /package/dist/api/{serverless_sqldb/index.js → key_manager/index.gen.js} +0 -0
  252. /package/dist/api/lb/{index.cjs → index.gen.cjs} +0 -0
  253. /package/dist/api/lb/{index.js → index.gen.js} +0 -0
  254. /package/dist/api/{mnq/index.cjs → llm_inference/index.gen.cjs} +0 -0
  255. /package/dist/api/{mnq/index.js → llm_inference/index.gen.js} +0 -0
  256. /package/dist/api/marketplace/{index.cjs → index.gen.cjs} +0 -0
  257. /package/dist/api/marketplace/{index.js → index.gen.js} +0 -0
  258. /package/dist/api/{tem/index.cjs → qaas/index.gen.cjs} +0 -0
  259. /package/dist/api/{tem/index.js → qaas/index.gen.js} +0 -0
  260. /package/dist/api/rdb/{index.cjs → index.gen.cjs} +0 -0
  261. /package/dist/api/rdb/{index.js → index.gen.js} +0 -0
  262. /package/dist/api/redis/{index.cjs → index.gen.cjs} +0 -0
  263. /package/dist/api/redis/{index.js → index.gen.js} +0 -0
  264. /package/dist/api/registry/{index.cjs → index.gen.cjs} +0 -0
  265. /package/dist/api/registry/{index.js → index.gen.js} +0 -0
  266. /package/dist/api/secret/{index.cjs → index.gen.cjs} +0 -0
  267. /package/dist/api/secret/{index.js → index.gen.js} +0 -0
  268. /package/dist/api/{webhosting/index.cjs → serverless_sqldb/index.gen.cjs} +0 -0
  269. /package/dist/api/{webhosting/index.js → serverless_sqldb/index.gen.js} +0 -0
  270. /package/dist/api/test/{index.cjs → index.gen.cjs} +0 -0
  271. /package/dist/api/test/{index.js → index.gen.js} +0 -0
  272. /package/dist/api/vpc/{index.cjs → index.gen.cjs} +0 -0
  273. /package/dist/api/vpc/{index.js → index.gen.js} +0 -0
  274. /package/dist/api/vpcgw/{index.cjs → index.gen.cjs} +0 -0
  275. /package/dist/api/vpcgw/{index.js → index.gen.js} +0 -0
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file is automatically generated from /scripts/generate.js PLEASE DO NOT
3
+ * EDIT HERE
4
+ */
5
+ export * as v2 from './v2/index.gen';
6
+ export * as v3 from './v3/index.gen';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file is automatically generated from /scripts/generate.js PLEASE DO NOT
3
+ * EDIT HERE
4
+ */
5
+ export * as v1alpha1 from './v1alpha1/index.gen';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file is automatically generated from /scripts/generate.js PLEASE DO NOT
3
+ * EDIT HERE
4
+ */
5
+ export * as v1 from './v1/index';
@@ -16,7 +16,9 @@ class API extends api.API {
16
16
  "fr-par-1",
17
17
  "fr-par-2",
18
18
  "nl-ams-1",
19
- "nl-ams-2"
19
+ "nl-ams-2",
20
+ "pl-waw-2",
21
+ "pl-waw-3"
20
22
  ];
21
23
  pageOfListServers = (request = {}) => this.client.fetch(
22
24
  {
@@ -14,7 +14,9 @@ class API extends API$1 {
14
14
  "fr-par-1",
15
15
  "fr-par-2",
16
16
  "nl-ams-1",
17
- "nl-ams-2"
17
+ "nl-ams-2",
18
+ "pl-waw-2",
19
+ "pl-waw-3"
18
20
  ];
19
21
  pageOfListServers = (request = {}) => this.client.fetch(
20
22
  {
@@ -1,4 +1,4 @@
1
1
  export { API, PrivateNetworkAPI } from './api.gen';
2
2
  export * from './content.gen';
3
- export type { AddOptionServerRequest, BMCAccess, CPU, CreateServerRequest, CreateServerRequestInstall, DeleteOptionServerRequest, DeleteServerRequest, Disk, GetBMCAccessRequest, GetOSRequest, GetOfferRequest, GetOptionRequest, GetServerMetricsRequest, GetServerMetricsResponse, GetServerRequest, IP, IPReverseStatus, IPVersion, InstallServerRequest, ListOSRequest, ListOSResponse, ListOffersRequest, ListOffersResponse, ListOptionsRequest, ListOptionsResponse, ListServerEventsRequest, ListServerEventsRequestOrderBy, ListServerEventsResponse, ListServerPrivateNetworksRequestOrderBy, ListServerPrivateNetworksResponse, ListServersRequest, ListServersRequestOrderBy, ListServersResponse, ListSettingsRequest, ListSettingsRequestOrderBy, ListSettingsResponse, Memory, OS, OSOSField, Offer, OfferOptionOffer, OfferStock, OfferSubscriptionPeriod, Option, PersistentMemory, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiDeleteServerPrivateNetworkRequest, PrivateNetworkApiListServerPrivateNetworksRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, RaidController, RebootServerRequest, Server, ServerBootType, ServerEvent, ServerInstall, ServerInstallStatus, ServerOption, ServerOptionOptionStatus, ServerPingStatus, ServerPrivateNetwork, ServerPrivateNetworkStatus, ServerRescueServer, ServerStatus, SetServerPrivateNetworksResponse, Setting, SettingType, StartBMCAccessRequest, StartServerRequest, StopBMCAccessRequest, StopServerRequest, UpdateIPRequest, UpdateServerRequest, UpdateSettingRequest, } from './types.gen';
3
+ export type { AddOptionServerRequest, BMCAccess, CPU, CertificationOption, CreateServerRequest, CreateServerRequestInstall, DeleteOptionServerRequest, DeleteServerRequest, Disk, GetBMCAccessRequest, GetOSRequest, GetOfferRequest, GetOptionRequest, GetServerMetricsRequest, GetServerMetricsResponse, GetServerRequest, IP, IPReverseStatus, IPVersion, InstallServerRequest, LicenseOption, ListOSRequest, ListOSResponse, ListOffersRequest, ListOffersResponse, ListOptionsRequest, ListOptionsResponse, ListServerEventsRequest, ListServerEventsRequestOrderBy, ListServerEventsResponse, ListServerPrivateNetworksRequestOrderBy, ListServerPrivateNetworksResponse, ListServersRequest, ListServersRequestOrderBy, ListServersResponse, ListSettingsRequest, ListSettingsRequestOrderBy, ListSettingsResponse, Memory, OS, OSOSField, Offer, OfferOptionOffer, OfferStock, OfferSubscriptionPeriod, Option, PersistentMemory, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiDeleteServerPrivateNetworkRequest, PrivateNetworkApiListServerPrivateNetworksRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, PrivateNetworkOption, PublicBandwidthOption, RaidController, RebootServerRequest, RemoteAccessOption, Server, ServerBootType, ServerEvent, ServerInstall, ServerInstallStatus, ServerOption, ServerOptionOptionStatus, ServerPingStatus, ServerPrivateNetwork, ServerPrivateNetworkStatus, ServerRescueServer, ServerStatus, SetServerPrivateNetworksResponse, Setting, SettingType, StartBMCAccessRequest, StartServerRequest, StopBMCAccessRequest, StopServerRequest, UpdateIPRequest, UpdateServerRequest, UpdateSettingRequest, } from './types.gen';
4
4
  export * as ValidationRules from './validation-rules.gen';
@@ -38,6 +38,7 @@ const unmarshalOS = (data) => {
38
38
  }
39
39
  return {
40
40
  allowed: data.allowed,
41
+ customPartitioningSupported: data.custom_partitioning_supported,
41
42
  enabled: data.enabled,
42
43
  id: data.id,
43
44
  licenseRequired: data.license_required,
@@ -51,6 +52,50 @@ const unmarshalOS = (data) => {
51
52
  version: data.version
52
53
  };
53
54
  };
55
+ const unmarshalCertificationOption = (data) => {
56
+ if (!json.isJSONObject(data)) {
57
+ throw new TypeError(
58
+ `Unmarshalling the type 'CertificationOption' failed as data isn't a dictionary.`
59
+ );
60
+ }
61
+ return {};
62
+ };
63
+ const unmarshalLicenseOption = (data) => {
64
+ if (!json.isJSONObject(data)) {
65
+ throw new TypeError(
66
+ `Unmarshalling the type 'LicenseOption' failed as data isn't a dictionary.`
67
+ );
68
+ }
69
+ return {
70
+ osId: data.os_id
71
+ };
72
+ };
73
+ const unmarshalPrivateNetworkOption = (data) => {
74
+ if (!json.isJSONObject(data)) {
75
+ throw new TypeError(
76
+ `Unmarshalling the type 'PrivateNetworkOption' failed as data isn't a dictionary.`
77
+ );
78
+ }
79
+ return {};
80
+ };
81
+ const unmarshalPublicBandwidthOption = (data) => {
82
+ if (!json.isJSONObject(data)) {
83
+ throw new TypeError(
84
+ `Unmarshalling the type 'PublicBandwidthOption' failed as data isn't a dictionary.`
85
+ );
86
+ }
87
+ return {
88
+ bandwidthInBps: data.bandwidth_in_bps
89
+ };
90
+ };
91
+ const unmarshalRemoteAccessOption = (data) => {
92
+ if (!json.isJSONObject(data)) {
93
+ throw new TypeError(
94
+ `Unmarshalling the type 'RemoteAccessOption' failed as data isn't a dictionary.`
95
+ );
96
+ }
97
+ return {};
98
+ };
54
99
  const unmarshalCPU = (data) => {
55
100
  if (!json.isJSONObject(data)) {
56
101
  throw new TypeError(
@@ -96,12 +141,17 @@ const unmarshalOfferOptionOffer = (data) => {
96
141
  );
97
142
  }
98
143
  return {
144
+ certification: data.certification ? unmarshalCertificationOption(data.certification) : void 0,
99
145
  enabled: data.enabled,
100
146
  id: data.id,
147
+ license: data.license ? unmarshalLicenseOption(data.license) : void 0,
101
148
  manageable: data.manageable,
102
149
  name: data.name,
103
150
  osId: data.os_id,
104
151
  price: data.price ? customMarshalling.unmarshalMoney(data.price) : void 0,
152
+ privateNetwork: data.private_network ? unmarshalPrivateNetworkOption(data.private_network) : void 0,
153
+ publicBandwidth: data.public_bandwidth ? unmarshalPublicBandwidthOption(data.public_bandwidth) : void 0,
154
+ remoteAccess: data.remote_access ? unmarshalRemoteAccessOption(data.remote_access) : void 0,
105
155
  subscriptionPeriod: data.subscription_period
106
156
  };
107
157
  };
@@ -173,9 +223,14 @@ const unmarshalOption = (data) => {
173
223
  );
174
224
  }
175
225
  return {
226
+ certification: data.certification ? unmarshalCertificationOption(data.certification) : void 0,
176
227
  id: data.id,
228
+ license: data.license ? unmarshalLicenseOption(data.license) : void 0,
177
229
  manageable: data.manageable,
178
- name: data.name
230
+ name: data.name,
231
+ privateNetwork: data.private_network ? unmarshalPrivateNetworkOption(data.private_network) : void 0,
232
+ publicBandwidth: data.public_bandwidth ? unmarshalPublicBandwidthOption(data.public_bandwidth) : void 0,
233
+ remoteAccess: data.remote_access ? unmarshalRemoteAccessOption(data.remote_access) : void 0
179
234
  };
180
235
  };
181
236
  const unmarshalServerPrivateNetwork = (data) => {
@@ -218,10 +273,15 @@ const unmarshalServerOption = (data) => {
218
273
  );
219
274
  }
220
275
  return {
276
+ certification: data.certification ? unmarshalCertificationOption(data.certification) : void 0,
221
277
  expiresAt: marshalling.unmarshalDate(data.expires_at),
222
278
  id: data.id,
279
+ license: data.license ? unmarshalLicenseOption(data.license) : void 0,
223
280
  manageable: data.manageable,
224
281
  name: data.name,
282
+ privateNetwork: data.private_network ? unmarshalPrivateNetworkOption(data.private_network) : void 0,
283
+ publicBandwidth: data.public_bandwidth ? unmarshalPublicBandwidthOption(data.public_bandwidth) : void 0,
284
+ remoteAccess: data.remote_access ? unmarshalRemoteAccessOption(data.remote_access) : void 0,
225
285
  status: data.status
226
286
  };
227
287
  };
@@ -36,6 +36,7 @@ const unmarshalOS = (data) => {
36
36
  }
37
37
  return {
38
38
  allowed: data.allowed,
39
+ customPartitioningSupported: data.custom_partitioning_supported,
39
40
  enabled: data.enabled,
40
41
  id: data.id,
41
42
  licenseRequired: data.license_required,
@@ -49,6 +50,50 @@ const unmarshalOS = (data) => {
49
50
  version: data.version
50
51
  };
51
52
  };
53
+ const unmarshalCertificationOption = (data) => {
54
+ if (!isJSONObject(data)) {
55
+ throw new TypeError(
56
+ `Unmarshalling the type 'CertificationOption' failed as data isn't a dictionary.`
57
+ );
58
+ }
59
+ return {};
60
+ };
61
+ const unmarshalLicenseOption = (data) => {
62
+ if (!isJSONObject(data)) {
63
+ throw new TypeError(
64
+ `Unmarshalling the type 'LicenseOption' failed as data isn't a dictionary.`
65
+ );
66
+ }
67
+ return {
68
+ osId: data.os_id
69
+ };
70
+ };
71
+ const unmarshalPrivateNetworkOption = (data) => {
72
+ if (!isJSONObject(data)) {
73
+ throw new TypeError(
74
+ `Unmarshalling the type 'PrivateNetworkOption' failed as data isn't a dictionary.`
75
+ );
76
+ }
77
+ return {};
78
+ };
79
+ const unmarshalPublicBandwidthOption = (data) => {
80
+ if (!isJSONObject(data)) {
81
+ throw new TypeError(
82
+ `Unmarshalling the type 'PublicBandwidthOption' failed as data isn't a dictionary.`
83
+ );
84
+ }
85
+ return {
86
+ bandwidthInBps: data.bandwidth_in_bps
87
+ };
88
+ };
89
+ const unmarshalRemoteAccessOption = (data) => {
90
+ if (!isJSONObject(data)) {
91
+ throw new TypeError(
92
+ `Unmarshalling the type 'RemoteAccessOption' failed as data isn't a dictionary.`
93
+ );
94
+ }
95
+ return {};
96
+ };
52
97
  const unmarshalCPU = (data) => {
53
98
  if (!isJSONObject(data)) {
54
99
  throw new TypeError(
@@ -94,12 +139,17 @@ const unmarshalOfferOptionOffer = (data) => {
94
139
  );
95
140
  }
96
141
  return {
142
+ certification: data.certification ? unmarshalCertificationOption(data.certification) : void 0,
97
143
  enabled: data.enabled,
98
144
  id: data.id,
145
+ license: data.license ? unmarshalLicenseOption(data.license) : void 0,
99
146
  manageable: data.manageable,
100
147
  name: data.name,
101
148
  osId: data.os_id,
102
149
  price: data.price ? unmarshalMoney(data.price) : void 0,
150
+ privateNetwork: data.private_network ? unmarshalPrivateNetworkOption(data.private_network) : void 0,
151
+ publicBandwidth: data.public_bandwidth ? unmarshalPublicBandwidthOption(data.public_bandwidth) : void 0,
152
+ remoteAccess: data.remote_access ? unmarshalRemoteAccessOption(data.remote_access) : void 0,
103
153
  subscriptionPeriod: data.subscription_period
104
154
  };
105
155
  };
@@ -171,9 +221,14 @@ const unmarshalOption = (data) => {
171
221
  );
172
222
  }
173
223
  return {
224
+ certification: data.certification ? unmarshalCertificationOption(data.certification) : void 0,
174
225
  id: data.id,
226
+ license: data.license ? unmarshalLicenseOption(data.license) : void 0,
175
227
  manageable: data.manageable,
176
- name: data.name
228
+ name: data.name,
229
+ privateNetwork: data.private_network ? unmarshalPrivateNetworkOption(data.private_network) : void 0,
230
+ publicBandwidth: data.public_bandwidth ? unmarshalPublicBandwidthOption(data.public_bandwidth) : void 0,
231
+ remoteAccess: data.remote_access ? unmarshalRemoteAccessOption(data.remote_access) : void 0
177
232
  };
178
233
  };
179
234
  const unmarshalServerPrivateNetwork = (data) => {
@@ -216,10 +271,15 @@ const unmarshalServerOption = (data) => {
216
271
  );
217
272
  }
218
273
  return {
274
+ certification: data.certification ? unmarshalCertificationOption(data.certification) : void 0,
219
275
  expiresAt: unmarshalDate(data.expires_at),
220
276
  id: data.id,
277
+ license: data.license ? unmarshalLicenseOption(data.license) : void 0,
221
278
  manageable: data.manageable,
222
279
  name: data.name,
280
+ privateNetwork: data.private_network ? unmarshalPrivateNetworkOption(data.private_network) : void 0,
281
+ publicBandwidth: data.public_bandwidth ? unmarshalPublicBandwidthOption(data.public_bandwidth) : void 0,
282
+ remoteAccess: data.remote_access ? unmarshalRemoteAccessOption(data.remote_access) : void 0,
223
283
  status: data.status
224
284
  };
225
285
  };
@@ -14,6 +14,18 @@ export type ServerPingStatus = 'ping_status_unknown' | 'ping_status_up' | 'ping_
14
14
  export type ServerPrivateNetworkStatus = 'unknown' | 'attaching' | 'attached' | 'error' | 'detaching' | 'locked';
15
15
  export type ServerStatus = 'unknown' | 'delivering' | 'ready' | 'stopping' | 'stopped' | 'starting' | 'error' | 'deleting' | 'locked' | 'out_of_stock' | 'ordered' | 'resetting';
16
16
  export type SettingType = 'unknown' | 'smtp';
17
+ export interface CertificationOption {
18
+ }
19
+ export interface LicenseOption {
20
+ osId: string;
21
+ }
22
+ export interface PrivateNetworkOption {
23
+ }
24
+ export interface PublicBandwidthOption {
25
+ bandwidthInBps: number;
26
+ }
27
+ export interface RemoteAccessOption {
28
+ }
17
29
  export interface OSOSField {
18
30
  editable: boolean;
19
31
  required: boolean;
@@ -63,8 +75,43 @@ export interface OfferOptionOffer {
63
75
  price?: Money;
64
76
  /** Boolean to know if option could be managed. */
65
77
  manageable: boolean;
66
- /** ID of the OS linked to the option. */
78
+ /** @deprecated Deprecated, use LicenseOptionVars.os_id instead. */
67
79
  osId?: string;
80
+ /**
81
+ * License option, contains the ID of the OS linked to the option.
82
+ *
83
+ * One-of ('option'): at most one of 'license', 'publicBandwidth',
84
+ * 'privateNetwork', 'remoteAccess', 'certification' could be set.
85
+ */
86
+ license?: LicenseOption;
87
+ /**
88
+ * Public_bandwidth option, contains the bandwidth_in_bps.
89
+ *
90
+ * One-of ('option'): at most one of 'license', 'publicBandwidth',
91
+ * 'privateNetwork', 'remoteAccess', 'certification' could be set.
92
+ */
93
+ publicBandwidth?: PublicBandwidthOption;
94
+ /**
95
+ * Private_network option.
96
+ *
97
+ * One-of ('option'): at most one of 'license', 'publicBandwidth',
98
+ * 'privateNetwork', 'remoteAccess', 'certification' could be set.
99
+ */
100
+ privateNetwork?: PrivateNetworkOption;
101
+ /**
102
+ * Remote_access option.
103
+ *
104
+ * One-of ('option'): at most one of 'license', 'publicBandwidth',
105
+ * 'privateNetwork', 'remoteAccess', 'certification' could be set.
106
+ */
107
+ remoteAccess?: RemoteAccessOption;
108
+ /**
109
+ * Certification option.
110
+ *
111
+ * One-of ('option'): at most one of 'license', 'publicBandwidth',
112
+ * 'privateNetwork', 'remoteAccess', 'certification' could be set.
113
+ */
114
+ certification?: CertificationOption;
68
115
  }
69
116
  export interface PersistentMemory {
70
117
  /** Capacity of the memory in bytes. */
@@ -125,6 +172,41 @@ export interface ServerOption {
125
172
  manageable: boolean;
126
173
  /** Auto expiration date for compatible options. */
127
174
  expiresAt?: Date;
175
+ /**
176
+ * License option, contains the ID of the OS linked to the option.
177
+ *
178
+ * One-of ('option'): at most one of 'license', 'publicBandwidth',
179
+ * 'privateNetwork', 'remoteAccess', 'certification' could be set.
180
+ */
181
+ license?: LicenseOption;
182
+ /**
183
+ * Public_bandwidth option, contains the bandwidth_in_bps.
184
+ *
185
+ * One-of ('option'): at most one of 'license', 'publicBandwidth',
186
+ * 'privateNetwork', 'remoteAccess', 'certification' could be set.
187
+ */
188
+ publicBandwidth?: PublicBandwidthOption;
189
+ /**
190
+ * Private_network option.
191
+ *
192
+ * One-of ('option'): at most one of 'license', 'publicBandwidth',
193
+ * 'privateNetwork', 'remoteAccess', 'certification' could be set.
194
+ */
195
+ privateNetwork?: PrivateNetworkOption;
196
+ /**
197
+ * Remote_access option.
198
+ *
199
+ * One-of ('option'): at most one of 'license', 'publicBandwidth',
200
+ * 'privateNetwork', 'remoteAccess', 'certification' could be set.
201
+ */
202
+ remoteAccess?: RemoteAccessOption;
203
+ /**
204
+ * Certification option.
205
+ *
206
+ * One-of ('option'): at most one of 'license', 'publicBandwidth',
207
+ * 'privateNetwork', 'remoteAccess', 'certification' could be set.
208
+ */
209
+ certification?: CertificationOption;
128
210
  }
129
211
  export interface ServerRescueServer {
130
212
  /** Rescue user name. */
@@ -173,6 +255,8 @@ export interface OS {
173
255
  licenseRequired: boolean;
174
256
  /** Defines if a specific Organization is allowed to install this OS type. */
175
257
  allowed: boolean;
258
+ /** Defines if custom partitioning is supported by this OS. */
259
+ customPartitioningSupported: boolean;
176
260
  }
177
261
  export interface Offer {
178
262
  /** ID of the offer. */
@@ -238,6 +322,41 @@ export interface Option {
238
322
  name: string;
239
323
  /** Defines whether the option is manageable (could be added or removed). */
240
324
  manageable: boolean;
325
+ /**
326
+ * License option, contains the ID of the OS linked to the option.
327
+ *
328
+ * One-of ('option'): at most one of 'license', 'publicBandwidth',
329
+ * 'privateNetwork', 'remoteAccess', 'certification' could be set.
330
+ */
331
+ license?: LicenseOption;
332
+ /**
333
+ * Public_bandwidth option, contains the bandwidth_in_bps.
334
+ *
335
+ * One-of ('option'): at most one of 'license', 'publicBandwidth',
336
+ * 'privateNetwork', 'remoteAccess', 'certification' could be set.
337
+ */
338
+ publicBandwidth?: PublicBandwidthOption;
339
+ /**
340
+ * Private_network option.
341
+ *
342
+ * One-of ('option'): at most one of 'license', 'publicBandwidth',
343
+ * 'privateNetwork', 'remoteAccess', 'certification' could be set.
344
+ */
345
+ privateNetwork?: PrivateNetworkOption;
346
+ /**
347
+ * Remote_access option.
348
+ *
349
+ * One-of ('option'): at most one of 'license', 'publicBandwidth',
350
+ * 'privateNetwork', 'remoteAccess', 'certification' could be set.
351
+ */
352
+ remoteAccess?: RemoteAccessOption;
353
+ /**
354
+ * Certification option.
355
+ *
356
+ * One-of ('option'): at most one of 'license', 'publicBandwidth',
357
+ * 'privateNetwork', 'remoteAccess', 'certification' could be set.
358
+ */
359
+ certification?: CertificationOption;
241
360
  }
242
361
  export interface ServerEvent {
243
362
  /** ID of the server to which the action will be applied. */
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file is automatically generated from /scripts/generate.js PLEASE DO NOT
3
+ * EDIT HERE
4
+ */
5
+ export * as v2alpha1 from './v2alpha1/index.gen';
6
+ export * as v2beta1 from './v2beta1/index.gen';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file is automatically generated from /scripts/generate.js PLEASE DO NOT
3
+ * EDIT HERE
4
+ */
5
+ export * as v1alpha1 from './v1alpha1/index.gen';
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file is automatically generated from /scripts/generate.js PLEASE DO NOT
3
+ * EDIT HERE
4
+ */
5
+ export * as v1 from './v1/index.gen';
6
+ export * as v1beta1 from './v1beta1/index.gen';
@@ -1,6 +1,6 @@
1
1
  import type { Region } from '../../../bridge';
2
2
  export type DataSourceOrigin = 'unknown_origin' | 'scaleway' | 'external';
3
- export type DataSourceType = 'unknown_type' | 'metrics' | 'logs' | 'traces';
3
+ export type DataSourceType = 'unknown_type' | 'metrics' | 'logs' | 'traces' | 'alerts';
4
4
  export type GrafanaUserRole = 'unknown_role' | 'editor' | 'viewer';
5
5
  export type ListDataSourcesRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc' | 'type_asc' | 'type_desc';
6
6
  export type ListGrafanaUsersRequestOrderBy = 'login_asc' | 'login_desc';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file is automatically generated from /scripts/generate.js PLEASE DO NOT
3
+ * EDIT HERE
4
+ */
5
+ export * as v1beta1 from './v1beta1/index.gen';
@@ -407,29 +407,6 @@ class API extends api.API {
407
407
  },
408
408
  marshalling_gen.unmarshalDomain
409
409
  );
410
- /**
411
- * Create a JWT token. Deprecated in favor of CreateToken.
412
- *
413
- * @deprecated
414
- * @param request - The request {@link IssueJWTRequest}
415
- * @returns A Promise of Token
416
- */
417
- issueJWT = (request = {}) => this.client.fetch(
418
- {
419
- method: "GET",
420
- path: `/containers/v1beta1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/issue-jwt`,
421
- urlParams: marshalling.urlParams(
422
- ["expires_at", request.expiresAt],
423
- ...Object.entries(
424
- marshalling.resolveOneOf([
425
- { param: "container_id", value: request.containerId },
426
- { param: "namespace_id", value: request.namespaceId }
427
- ])
428
- )
429
- )
430
- },
431
- marshalling_gen.unmarshalToken
432
- );
433
410
  /**
434
411
  * Create a new revocable token.
435
412
  *
@@ -1,6 +1,6 @@
1
1
  import { API as ParentAPI } from '../../../bridge';
2
2
  import type { Region, WaitForOptions } from '../../../bridge';
3
- import type { Container, CreateContainerRequest, CreateCronRequest, CreateDomainRequest, CreateNamespaceRequest, CreateTokenRequest, CreateTriggerRequest, Cron, DeleteContainerRequest, DeleteCronRequest, DeleteDomainRequest, DeleteNamespaceRequest, DeleteTokenRequest, DeleteTriggerRequest, DeployContainerRequest, Domain, GetContainerRequest, GetCronRequest, GetDomainRequest, GetNamespaceRequest, GetTokenRequest, GetTriggerRequest, IssueJWTRequest, ListContainersRequest, ListContainersResponse, ListCronsRequest, ListCronsResponse, ListDomainsRequest, ListDomainsResponse, ListNamespacesRequest, ListNamespacesResponse, ListTokensRequest, ListTokensResponse, ListTriggersRequest, ListTriggersResponse, Namespace, Token, Trigger, UpdateContainerRequest, UpdateCronRequest, UpdateNamespaceRequest, UpdateTriggerRequest } from './types.gen';
3
+ import type { Container, CreateContainerRequest, CreateCronRequest, CreateDomainRequest, CreateNamespaceRequest, CreateTokenRequest, CreateTriggerRequest, Cron, DeleteContainerRequest, DeleteCronRequest, DeleteDomainRequest, DeleteNamespaceRequest, DeleteTokenRequest, DeleteTriggerRequest, DeployContainerRequest, Domain, GetContainerRequest, GetCronRequest, GetDomainRequest, GetNamespaceRequest, GetTokenRequest, GetTriggerRequest, ListContainersRequest, ListContainersResponse, ListCronsRequest, ListCronsResponse, ListDomainsRequest, ListDomainsResponse, ListNamespacesRequest, ListNamespacesResponse, ListTokensRequest, ListTokensResponse, ListTriggersRequest, ListTriggersResponse, Namespace, Token, Trigger, UpdateContainerRequest, UpdateCronRequest, UpdateNamespaceRequest, UpdateTriggerRequest } from './types.gen';
4
4
  /**
5
5
  * Serverless Containers API.
6
6
  *
@@ -204,14 +204,6 @@ export declare class API extends ParentAPI {
204
204
  * @returns A Promise of Domain
205
205
  */
206
206
  deleteDomain: (request: Readonly<DeleteDomainRequest>) => Promise<Domain>;
207
- /**
208
- * Create a JWT token. Deprecated in favor of CreateToken.
209
- *
210
- * @deprecated
211
- * @param request - The request {@link IssueJWTRequest}
212
- * @returns A Promise of Token
213
- */
214
- issueJWT: (request?: Readonly<IssueJWTRequest>) => Promise<Token>;
215
207
  /**
216
208
  * Create a new revocable token.
217
209
  *
@@ -4,7 +4,7 @@ import { validatePathParam, urlParams, resolveOneOf } from "../../../helpers/mar
4
4
  import "../../../vendor/base64/index.js";
5
5
  import { enrichForPagination } from "../../../scw/fetch/resource-paginator.js";
6
6
  import { NAMESPACE_TRANSIENT_STATUSES, CONTAINER_TRANSIENT_STATUSES, CRON_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, TOKEN_TRANSIENT_STATUSES, TRIGGER_TRANSIENT_STATUSES } from "./content.gen.js";
7
- import { unmarshalListNamespacesResponse, unmarshalNamespace, marshalCreateNamespaceRequest, marshalUpdateNamespaceRequest, unmarshalListContainersResponse, unmarshalContainer, marshalCreateContainerRequest, marshalUpdateContainerRequest, unmarshalListCronsResponse, unmarshalCron, marshalCreateCronRequest, marshalUpdateCronRequest, unmarshalListDomainsResponse, unmarshalDomain, marshalCreateDomainRequest, unmarshalToken, marshalCreateTokenRequest, unmarshalListTokensResponse, marshalCreateTriggerRequest, unmarshalTrigger, unmarshalListTriggersResponse, marshalUpdateTriggerRequest } from "./marshalling.gen.js";
7
+ import { unmarshalListNamespacesResponse, unmarshalNamespace, marshalCreateNamespaceRequest, marshalUpdateNamespaceRequest, unmarshalListContainersResponse, unmarshalContainer, marshalCreateContainerRequest, marshalUpdateContainerRequest, unmarshalListCronsResponse, unmarshalCron, marshalCreateCronRequest, marshalUpdateCronRequest, unmarshalListDomainsResponse, unmarshalDomain, marshalCreateDomainRequest, marshalCreateTokenRequest, unmarshalToken, unmarshalListTokensResponse, marshalCreateTriggerRequest, unmarshalTrigger, unmarshalListTriggersResponse, marshalUpdateTriggerRequest } from "./marshalling.gen.js";
8
8
  const jsonContentHeaders = {
9
9
  "Content-Type": "application/json; charset=utf-8"
10
10
  };
@@ -405,29 +405,6 @@ class API extends API$1 {
405
405
  },
406
406
  unmarshalDomain
407
407
  );
408
- /**
409
- * Create a JWT token. Deprecated in favor of CreateToken.
410
- *
411
- * @deprecated
412
- * @param request - The request {@link IssueJWTRequest}
413
- * @returns A Promise of Token
414
- */
415
- issueJWT = (request = {}) => this.client.fetch(
416
- {
417
- method: "GET",
418
- path: `/containers/v1beta1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/issue-jwt`,
419
- urlParams: urlParams(
420
- ["expires_at", request.expiresAt],
421
- ...Object.entries(
422
- resolveOneOf([
423
- { param: "container_id", value: request.containerId },
424
- { param: "namespace_id", value: request.namespaceId }
425
- ])
426
- )
427
- )
428
- },
429
- unmarshalToken
430
- );
431
408
  /**
432
409
  * Create a new revocable token.
433
410
  *
@@ -1,4 +1,4 @@
1
1
  export { API } from './api.gen';
2
2
  export * from './content.gen';
3
- export type { Container, ContainerHttpOption, ContainerPrivacy, ContainerProtocol, ContainerSandbox, ContainerStatus, CreateContainerRequest, CreateCronRequest, CreateDomainRequest, CreateNamespaceRequest, CreateTokenRequest, CreateTriggerRequest, CreateTriggerRequestMnqNatsClientConfig, CreateTriggerRequestMnqSqsClientConfig, CreateTriggerRequestSqsClientConfig, Cron, CronStatus, DeleteContainerRequest, DeleteCronRequest, DeleteDomainRequest, DeleteNamespaceRequest, DeleteTokenRequest, DeleteTriggerRequest, DeployContainerRequest, Domain, DomainStatus, GetContainerRequest, GetCronRequest, GetDomainRequest, GetNamespaceRequest, GetTokenRequest, GetTriggerRequest, IssueJWTRequest, ListContainersRequest, ListContainersRequestOrderBy, ListContainersResponse, ListCronsRequest, ListCronsRequestOrderBy, ListCronsResponse, ListDomainsRequest, ListDomainsRequestOrderBy, ListDomainsResponse, ListNamespacesRequest, ListNamespacesRequestOrderBy, ListNamespacesResponse, ListTokensRequest, ListTokensRequestOrderBy, ListTokensResponse, ListTriggersRequest, ListTriggersRequestOrderBy, ListTriggersResponse, Namespace, NamespaceStatus, Secret, SecretHashedValue, Token, TokenStatus, Trigger, TriggerInputType, TriggerMnqNatsClientConfig, TriggerMnqSqsClientConfig, TriggerSqsClientConfig, TriggerStatus, UpdateContainerRequest, UpdateCronRequest, UpdateNamespaceRequest, UpdateTriggerRequest, UpdateTriggerRequestSqsClientConfig, } from './types.gen';
3
+ export type { Container, ContainerHttpOption, ContainerPrivacy, ContainerProtocol, ContainerSandbox, ContainerStatus, CreateContainerRequest, CreateCronRequest, CreateDomainRequest, CreateNamespaceRequest, CreateTokenRequest, CreateTriggerRequest, CreateTriggerRequestMnqNatsClientConfig, CreateTriggerRequestMnqSqsClientConfig, CreateTriggerRequestSqsClientConfig, Cron, CronStatus, DeleteContainerRequest, DeleteCronRequest, DeleteDomainRequest, DeleteNamespaceRequest, DeleteTokenRequest, DeleteTriggerRequest, DeployContainerRequest, Domain, DomainStatus, GetContainerRequest, GetCronRequest, GetDomainRequest, GetNamespaceRequest, GetTokenRequest, GetTriggerRequest, ListContainersRequest, ListContainersRequestOrderBy, ListContainersResponse, ListCronsRequest, ListCronsRequestOrderBy, ListCronsResponse, ListDomainsRequest, ListDomainsRequestOrderBy, ListDomainsResponse, ListNamespacesRequest, ListNamespacesRequestOrderBy, ListNamespacesResponse, ListTokensRequest, ListTokensRequestOrderBy, ListTokensResponse, ListTriggersRequest, ListTriggersRequestOrderBy, ListTriggersResponse, Namespace, NamespaceStatus, Secret, SecretHashedValue, Token, TokenStatus, Trigger, TriggerInputType, TriggerMnqNatsClientConfig, TriggerMnqSqsClientConfig, TriggerSqsClientConfig, TriggerStatus, UpdateContainerRequest, UpdateCronRequest, UpdateNamespaceRequest, UpdateTriggerRequest, UpdateTriggerRequestSqsClientConfig, } from './types.gen';
4
4
  export * as ValidationRules from './validation-rules.gen';
@@ -529,18 +529,6 @@ export type GetTriggerRequest = {
529
529
  /** ID of the trigger to get. */
530
530
  triggerId: string;
531
531
  };
532
- export type IssueJWTRequest = {
533
- /**
534
- * Region to target. If none is passed will use default region from the
535
- * config.
536
- */
537
- region?: Region;
538
- /** One-of ('scope'): at most one of 'containerId', 'namespaceId' could be set. */
539
- containerId?: string;
540
- /** One-of ('scope'): at most one of 'containerId', 'namespaceId' could be set. */
541
- namespaceId?: string;
542
- expiresAt?: Date;
543
- };
544
532
  export type ListContainersRequest = {
545
533
  /**
546
534
  * Region to target. If none is passed will use default region from the
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file is automatically generated from /scripts/generate.js PLEASE DO NOT
3
+ * EDIT HERE
4
+ */
5
+ export * as v1 from './v1/index.gen';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file is automatically generated from /scripts/generate.js PLEASE DO NOT
3
+ * EDIT HERE
4
+ */
5
+ export * as v1beta1 from './v1beta1/index.gen';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file is automatically generated from /scripts/generate.js PLEASE DO NOT
3
+ * EDIT HERE
4
+ */
5
+ export * as v2beta1 from './v2beta1/index.gen';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file is automatically generated from /scripts/generate.js PLEASE DO NOT
3
+ * EDIT HERE
4
+ */
5
+ export * as v1alpha1 from './v1alpha1/index.gen';