@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,434 @@
1
+ import { isJSONObject } from "../../../helpers/json.js";
2
+ import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from "../../../helpers/marshalling.js";
3
+ import "../../../vendor/base64/index.js";
4
+ const unmarshalScalewayLb = (data) => {
5
+ if (!isJSONObject(data)) {
6
+ throw new TypeError(
7
+ `Unmarshalling the type 'ScalewayLb' failed as data isn't a dictionary.`
8
+ );
9
+ }
10
+ return {
11
+ domainName: data.domain_name,
12
+ frontendId: data.frontend_id,
13
+ id: data.id,
14
+ isSsl: data.is_ssl,
15
+ zone: data.zone
16
+ };
17
+ };
18
+ const unmarshalScalewayLbBackendConfig = (data) => {
19
+ if (!isJSONObject(data)) {
20
+ throw new TypeError(
21
+ `Unmarshalling the type 'ScalewayLbBackendConfig' failed as data isn't a dictionary.`
22
+ );
23
+ }
24
+ return {
25
+ lbs: unmarshalArrayOfObject(data.lbs, unmarshalScalewayLb)
26
+ };
27
+ };
28
+ const unmarshalScalewayS3BackendConfig = (data) => {
29
+ if (!isJSONObject(data)) {
30
+ throw new TypeError(
31
+ `Unmarshalling the type 'ScalewayS3BackendConfig' failed as data isn't a dictionary.`
32
+ );
33
+ }
34
+ return {
35
+ bucketName: data.bucket_name,
36
+ bucketRegion: data.bucket_region,
37
+ isWebsite: data.is_website
38
+ };
39
+ };
40
+ const unmarshalBackendStage = (data) => {
41
+ if (!isJSONObject(data)) {
42
+ throw new TypeError(
43
+ `Unmarshalling the type 'BackendStage' failed as data isn't a dictionary.`
44
+ );
45
+ }
46
+ return {
47
+ createdAt: unmarshalDate(data.created_at),
48
+ id: data.id,
49
+ pipelineId: data.pipeline_id,
50
+ projectId: data.project_id,
51
+ scalewayLb: data.scaleway_lb ? unmarshalScalewayLbBackendConfig(data.scaleway_lb) : void 0,
52
+ scalewayS3: data.scaleway_s3 ? unmarshalScalewayS3BackendConfig(data.scaleway_s3) : void 0,
53
+ updatedAt: unmarshalDate(data.updated_at)
54
+ };
55
+ };
56
+ const unmarshalCacheStage = (data) => {
57
+ if (!isJSONObject(data)) {
58
+ throw new TypeError(
59
+ `Unmarshalling the type 'CacheStage' failed as data isn't a dictionary.`
60
+ );
61
+ }
62
+ return {
63
+ backendStageId: data.backend_stage_id,
64
+ createdAt: unmarshalDate(data.created_at),
65
+ fallbackTtl: data.fallback_ttl,
66
+ id: data.id,
67
+ pipelineId: data.pipeline_id,
68
+ projectId: data.project_id,
69
+ updatedAt: unmarshalDate(data.updated_at)
70
+ };
71
+ };
72
+ const unmarshalDNSStage = (data) => {
73
+ if (!isJSONObject(data)) {
74
+ throw new TypeError(
75
+ `Unmarshalling the type 'DNSStage' failed as data isn't a dictionary.`
76
+ );
77
+ }
78
+ return {
79
+ backendStageId: data.backend_stage_id,
80
+ cacheStageId: data.cache_stage_id,
81
+ createdAt: unmarshalDate(data.created_at),
82
+ fqdns: data.fqdns,
83
+ id: data.id,
84
+ pipelineId: data.pipeline_id,
85
+ projectId: data.project_id,
86
+ tlsStageId: data.tls_stage_id,
87
+ type: data.type,
88
+ updatedAt: unmarshalDate(data.updated_at)
89
+ };
90
+ };
91
+ const unmarshalPipelineError = (data) => {
92
+ if (!isJSONObject(data)) {
93
+ throw new TypeError(
94
+ `Unmarshalling the type 'PipelineError' failed as data isn't a dictionary.`
95
+ );
96
+ }
97
+ return {
98
+ code: data.code,
99
+ message: data.message,
100
+ severity: data.severity,
101
+ stage: data.stage,
102
+ type: data.type
103
+ };
104
+ };
105
+ const unmarshalPipeline = (data) => {
106
+ if (!isJSONObject(data)) {
107
+ throw new TypeError(
108
+ `Unmarshalling the type 'Pipeline' failed as data isn't a dictionary.`
109
+ );
110
+ }
111
+ return {
112
+ createdAt: unmarshalDate(data.created_at),
113
+ description: data.description,
114
+ dnsStageId: data.dns_stage_id,
115
+ errors: unmarshalArrayOfObject(data.errors, unmarshalPipelineError),
116
+ id: data.id,
117
+ name: data.name,
118
+ projectId: data.project_id,
119
+ status: data.status,
120
+ updatedAt: unmarshalDate(data.updated_at)
121
+ };
122
+ };
123
+ const unmarshalPurgeRequest = (data) => {
124
+ if (!isJSONObject(data)) {
125
+ throw new TypeError(
126
+ `Unmarshalling the type 'PurgeRequest' failed as data isn't a dictionary.`
127
+ );
128
+ }
129
+ return {
130
+ all: data.all,
131
+ assets: data.assets,
132
+ createdAt: unmarshalDate(data.created_at),
133
+ id: data.id,
134
+ pipelineId: data.pipeline_id,
135
+ status: data.status,
136
+ updatedAt: unmarshalDate(data.updated_at)
137
+ };
138
+ };
139
+ const unmarshalTLSSecret = (data) => {
140
+ if (!isJSONObject(data)) {
141
+ throw new TypeError(
142
+ `Unmarshalling the type 'TLSSecret' failed as data isn't a dictionary.`
143
+ );
144
+ }
145
+ return {
146
+ region: data.region,
147
+ secretId: data.secret_id
148
+ };
149
+ };
150
+ const unmarshalTLSStage = (data) => {
151
+ if (!isJSONObject(data)) {
152
+ throw new TypeError(
153
+ `Unmarshalling the type 'TLSStage' failed as data isn't a dictionary.`
154
+ );
155
+ }
156
+ return {
157
+ backendStageId: data.backend_stage_id,
158
+ cacheStageId: data.cache_stage_id,
159
+ certificateExpiresAt: unmarshalDate(data.certificate_expires_at),
160
+ createdAt: unmarshalDate(data.created_at),
161
+ id: data.id,
162
+ managedCertificate: data.managed_certificate,
163
+ pipelineId: data.pipeline_id,
164
+ projectId: data.project_id,
165
+ secrets: unmarshalArrayOfObject(data.secrets, unmarshalTLSSecret),
166
+ updatedAt: unmarshalDate(data.updated_at)
167
+ };
168
+ };
169
+ const unmarshalCheckDomainResponse = (data) => {
170
+ if (!isJSONObject(data)) {
171
+ throw new TypeError(
172
+ `Unmarshalling the type 'CheckDomainResponse' failed as data isn't a dictionary.`
173
+ );
174
+ }
175
+ return {
176
+ isValid: data.is_valid
177
+ };
178
+ };
179
+ const unmarshalCheckLbOriginResponse = (data) => {
180
+ if (!isJSONObject(data)) {
181
+ throw new TypeError(
182
+ `Unmarshalling the type 'CheckLbOriginResponse' failed as data isn't a dictionary.`
183
+ );
184
+ }
185
+ return {
186
+ errorType: data.error_type,
187
+ isValid: data.is_valid
188
+ };
189
+ };
190
+ const unmarshalCheckPEMChainResponse = (data) => {
191
+ if (!isJSONObject(data)) {
192
+ throw new TypeError(
193
+ `Unmarshalling the type 'CheckPEMChainResponse' failed as data isn't a dictionary.`
194
+ );
195
+ }
196
+ return {
197
+ isValid: data.is_valid
198
+ };
199
+ };
200
+ const unmarshalListBackendStagesResponse = (data) => {
201
+ if (!isJSONObject(data)) {
202
+ throw new TypeError(
203
+ `Unmarshalling the type 'ListBackendStagesResponse' failed as data isn't a dictionary.`
204
+ );
205
+ }
206
+ return {
207
+ stages: unmarshalArrayOfObject(data.stages, unmarshalBackendStage),
208
+ totalCount: data.total_count
209
+ };
210
+ };
211
+ const unmarshalListCacheStagesResponse = (data) => {
212
+ if (!isJSONObject(data)) {
213
+ throw new TypeError(
214
+ `Unmarshalling the type 'ListCacheStagesResponse' failed as data isn't a dictionary.`
215
+ );
216
+ }
217
+ return {
218
+ stages: unmarshalArrayOfObject(data.stages, unmarshalCacheStage),
219
+ totalCount: data.total_count
220
+ };
221
+ };
222
+ const unmarshalListDNSStagesResponse = (data) => {
223
+ if (!isJSONObject(data)) {
224
+ throw new TypeError(
225
+ `Unmarshalling the type 'ListDNSStagesResponse' failed as data isn't a dictionary.`
226
+ );
227
+ }
228
+ return {
229
+ stages: unmarshalArrayOfObject(data.stages, unmarshalDNSStage),
230
+ totalCount: data.total_count
231
+ };
232
+ };
233
+ const unmarshalListPipelinesResponse = (data) => {
234
+ if (!isJSONObject(data)) {
235
+ throw new TypeError(
236
+ `Unmarshalling the type 'ListPipelinesResponse' failed as data isn't a dictionary.`
237
+ );
238
+ }
239
+ return {
240
+ pipelines: unmarshalArrayOfObject(data.pipelines, unmarshalPipeline),
241
+ totalCount: data.total_count
242
+ };
243
+ };
244
+ const unmarshalListPurgeRequestsResponse = (data) => {
245
+ if (!isJSONObject(data)) {
246
+ throw new TypeError(
247
+ `Unmarshalling the type 'ListPurgeRequestsResponse' failed as data isn't a dictionary.`
248
+ );
249
+ }
250
+ return {
251
+ purgeRequests: unmarshalArrayOfObject(
252
+ data.purge_requests,
253
+ unmarshalPurgeRequest
254
+ ),
255
+ totalCount: data.total_count
256
+ };
257
+ };
258
+ const unmarshalListTLSStagesResponse = (data) => {
259
+ if (!isJSONObject(data)) {
260
+ throw new TypeError(
261
+ `Unmarshalling the type 'ListTLSStagesResponse' failed as data isn't a dictionary.`
262
+ );
263
+ }
264
+ return {
265
+ stages: unmarshalArrayOfObject(data.stages, unmarshalTLSStage),
266
+ totalCount: data.total_count
267
+ };
268
+ };
269
+ const marshalCheckDomainRequest = (request, defaults) => ({
270
+ cname: request.cname,
271
+ fqdn: request.fqdn,
272
+ project_id: request.projectId ?? defaults.defaultProjectId
273
+ });
274
+ const marshalScalewayLb = (request, defaults) => ({
275
+ domain_name: request.domainName,
276
+ frontend_id: request.frontendId,
277
+ id: request.id,
278
+ is_ssl: request.isSsl,
279
+ zone: request.zone
280
+ });
281
+ const marshalCheckLbOriginRequest = (request, defaults) => ({
282
+ lb: request.lb !== void 0 ? marshalScalewayLb(request.lb) : void 0
283
+ });
284
+ const marshalCheckPEMChainRequestSecretChain = (request, defaults) => ({
285
+ secret_id: request.secretId,
286
+ secret_region: request.secretRegion
287
+ });
288
+ const marshalCheckPEMChainRequest = (request, defaults) => ({
289
+ fqdn: request.fqdn,
290
+ project_id: request.projectId ?? defaults.defaultProjectId,
291
+ ...resolveOneOf([
292
+ {
293
+ param: "secret",
294
+ value: request.secret !== void 0 ? marshalCheckPEMChainRequestSecretChain(request.secret) : void 0
295
+ },
296
+ { param: "raw", value: request.raw }
297
+ ])
298
+ });
299
+ const marshalScalewayLbBackendConfig = (request, defaults) => ({
300
+ lbs: request.lbs.map((elt) => marshalScalewayLb(elt))
301
+ });
302
+ const marshalScalewayS3BackendConfig = (request, defaults) => ({
303
+ bucket_name: request.bucketName,
304
+ bucket_region: request.bucketRegion,
305
+ is_website: request.isWebsite
306
+ });
307
+ const marshalCreateBackendStageRequest = (request, defaults) => ({
308
+ project_id: request.projectId ?? defaults.defaultProjectId,
309
+ ...resolveOneOf([
310
+ {
311
+ param: "scaleway_s3",
312
+ value: request.scalewayS3 !== void 0 ? marshalScalewayS3BackendConfig(request.scalewayS3) : void 0
313
+ },
314
+ {
315
+ param: "scaleway_lb",
316
+ value: request.scalewayLb !== void 0 ? marshalScalewayLbBackendConfig(request.scalewayLb) : void 0
317
+ }
318
+ ])
319
+ });
320
+ const marshalCreateCacheStageRequest = (request, defaults) => ({
321
+ fallback_ttl: request.fallbackTtl,
322
+ project_id: request.projectId ?? defaults.defaultProjectId,
323
+ ...resolveOneOf([
324
+ { param: "backend_stage_id", value: request.backendStageId }
325
+ ])
326
+ });
327
+ const marshalCreateDNSStageRequest = (request, defaults) => ({
328
+ fqdns: request.fqdns,
329
+ project_id: request.projectId ?? defaults.defaultProjectId,
330
+ ...resolveOneOf([
331
+ { param: "tls_stage_id", value: request.tlsStageId },
332
+ { param: "cache_stage_id", value: request.cacheStageId },
333
+ { param: "backend_stage_id", value: request.backendStageId }
334
+ ])
335
+ });
336
+ const marshalCreatePipelineRequest = (request, defaults) => ({
337
+ description: request.description,
338
+ name: request.name,
339
+ project_id: request.projectId ?? defaults.defaultProjectId,
340
+ ...resolveOneOf([{ param: "dns_stage_id", value: request.dnsStageId }])
341
+ });
342
+ const marshalCreatePurgeRequestRequest = (request, defaults) => ({
343
+ pipeline_id: request.pipelineId,
344
+ ...resolveOneOf([
345
+ { param: "assets", value: request.assets },
346
+ { param: "all", value: request.all }
347
+ ])
348
+ });
349
+ const marshalTLSSecret = (request, defaults) => ({
350
+ region: request.region,
351
+ secret_id: request.secretId
352
+ });
353
+ const marshalCreateTLSStageRequest = (request, defaults) => ({
354
+ managed_certificate: request.managedCertificate,
355
+ project_id: request.projectId ?? defaults.defaultProjectId,
356
+ secrets: request.secrets !== void 0 ? request.secrets.map((elt) => marshalTLSSecret(elt)) : void 0,
357
+ ...resolveOneOf([
358
+ { param: "cache_stage_id", value: request.cacheStageId },
359
+ { param: "backend_stage_id", value: request.backendStageId }
360
+ ])
361
+ });
362
+ const marshalUpdateBackendStageRequest = (request, defaults) => ({
363
+ ...resolveOneOf([
364
+ {
365
+ param: "scaleway_s3",
366
+ value: request.scalewayS3 !== void 0 ? marshalScalewayS3BackendConfig(request.scalewayS3) : void 0
367
+ },
368
+ {
369
+ param: "scaleway_lb",
370
+ value: request.scalewayLb !== void 0 ? marshalScalewayLbBackendConfig(request.scalewayLb) : void 0
371
+ }
372
+ ])
373
+ });
374
+ const marshalUpdateCacheStageRequest = (request, defaults) => ({
375
+ fallback_ttl: request.fallbackTtl,
376
+ ...resolveOneOf([
377
+ { param: "backend_stage_id", value: request.backendStageId }
378
+ ])
379
+ });
380
+ const marshalUpdateDNSStageRequest = (request, defaults) => ({
381
+ fqdns: request.fqdns,
382
+ ...resolveOneOf([
383
+ { param: "tls_stage_id", value: request.tlsStageId },
384
+ { param: "cache_stage_id", value: request.cacheStageId },
385
+ { param: "backend_stage_id", value: request.backendStageId }
386
+ ])
387
+ });
388
+ const marshalUpdatePipelineRequest = (request, defaults) => ({
389
+ description: request.description,
390
+ name: request.name,
391
+ ...resolveOneOf([{ param: "dns_stage_id", value: request.dnsStageId }])
392
+ });
393
+ const marshalTLSSecretsConfig = (request, defaults) => ({
394
+ tls_secrets: request.tlsSecrets.map((elt) => marshalTLSSecret(elt))
395
+ });
396
+ const marshalUpdateTLSStageRequest = (request, defaults) => ({
397
+ managed_certificate: request.managedCertificate,
398
+ tls_secrets_config: request.tlsSecretsConfig !== void 0 ? marshalTLSSecretsConfig(request.tlsSecretsConfig) : void 0,
399
+ ...resolveOneOf([
400
+ { param: "cache_stage_id", value: request.cacheStageId },
401
+ { param: "backend_stage_id", value: request.backendStageId }
402
+ ])
403
+ });
404
+ export {
405
+ marshalCheckDomainRequest,
406
+ marshalCheckLbOriginRequest,
407
+ marshalCheckPEMChainRequest,
408
+ marshalCreateBackendStageRequest,
409
+ marshalCreateCacheStageRequest,
410
+ marshalCreateDNSStageRequest,
411
+ marshalCreatePipelineRequest,
412
+ marshalCreatePurgeRequestRequest,
413
+ marshalCreateTLSStageRequest,
414
+ marshalUpdateBackendStageRequest,
415
+ marshalUpdateCacheStageRequest,
416
+ marshalUpdateDNSStageRequest,
417
+ marshalUpdatePipelineRequest,
418
+ marshalUpdateTLSStageRequest,
419
+ unmarshalBackendStage,
420
+ unmarshalCacheStage,
421
+ unmarshalCheckDomainResponse,
422
+ unmarshalCheckLbOriginResponse,
423
+ unmarshalCheckPEMChainResponse,
424
+ unmarshalDNSStage,
425
+ unmarshalListBackendStagesResponse,
426
+ unmarshalListCacheStagesResponse,
427
+ unmarshalListDNSStagesResponse,
428
+ unmarshalListPipelinesResponse,
429
+ unmarshalListPurgeRequestsResponse,
430
+ unmarshalListTLSStagesResponse,
431
+ unmarshalPipeline,
432
+ unmarshalPurgeRequest,
433
+ unmarshalTLSStage
434
+ };
@@ -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 v1beta1 from './v1beta1/index.gen';
@@ -453,29 +453,6 @@ class API extends api.API {
453
453
  },
454
454
  marshalling_gen.unmarshalDomain
455
455
  );
456
- /**
457
- * Create a JWT token. Deprecated in favor of CreateToken.
458
- *
459
- * @deprecated
460
- * @param request - The request {@link IssueJWTRequest}
461
- * @returns A Promise of Token
462
- */
463
- issueJWT = (request = {}) => this.client.fetch(
464
- {
465
- method: "GET",
466
- path: `/functions/v1beta1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/issue-jwt`,
467
- urlParams: marshalling.urlParams(
468
- ["expires_at", request.expiresAt],
469
- ...Object.entries(
470
- marshalling.resolveOneOf([
471
- { param: "function_id", value: request.functionId },
472
- { param: "namespace_id", value: request.namespaceId }
473
- ])
474
- )
475
- )
476
- },
477
- marshalling_gen.unmarshalToken
478
- );
479
456
  /**
480
457
  * Create a new revocable token.
481
458
  *
@@ -1,6 +1,6 @@
1
1
  import { API as ParentAPI } from '../../../bridge';
2
2
  import type { Region, WaitForOptions } from '../../../bridge';
3
- import type { CreateCronRequest, CreateDomainRequest, CreateFunctionRequest, CreateNamespaceRequest, CreateTokenRequest, CreateTriggerRequest, Cron, DeleteCronRequest, DeleteDomainRequest, DeleteFunctionRequest, DeleteNamespaceRequest, DeleteTokenRequest, DeleteTriggerRequest, DeployFunctionRequest, Domain, DownloadURL, Function, GetCronRequest, GetDomainRequest, GetFunctionDownloadURLRequest, GetFunctionRequest, GetFunctionUploadURLRequest, GetNamespaceRequest, GetTokenRequest, GetTriggerRequest, IssueJWTRequest, ListCronsRequest, ListCronsResponse, ListDomainsRequest, ListDomainsResponse, ListFunctionRuntimesRequest, ListFunctionRuntimesResponse, ListFunctionsRequest, ListFunctionsResponse, ListNamespacesRequest, ListNamespacesResponse, ListTokensRequest, ListTokensResponse, ListTriggersRequest, ListTriggersResponse, Namespace, Token, Trigger, UpdateCronRequest, UpdateFunctionRequest, UpdateNamespaceRequest, UpdateTriggerRequest, UploadURL } from './types.gen';
3
+ import type { CreateCronRequest, CreateDomainRequest, CreateFunctionRequest, CreateNamespaceRequest, CreateTokenRequest, CreateTriggerRequest, Cron, DeleteCronRequest, DeleteDomainRequest, DeleteFunctionRequest, DeleteNamespaceRequest, DeleteTokenRequest, DeleteTriggerRequest, DeployFunctionRequest, Domain, DownloadURL, Function, GetCronRequest, GetDomainRequest, GetFunctionDownloadURLRequest, GetFunctionRequest, GetFunctionUploadURLRequest, GetNamespaceRequest, GetTokenRequest, GetTriggerRequest, ListCronsRequest, ListCronsResponse, ListDomainsRequest, ListDomainsResponse, ListFunctionRuntimesRequest, ListFunctionRuntimesResponse, ListFunctionsRequest, ListFunctionsResponse, ListNamespacesRequest, ListNamespacesResponse, ListTokensRequest, ListTokensResponse, ListTriggersRequest, ListTriggersResponse, Namespace, Token, Trigger, UpdateCronRequest, UpdateFunctionRequest, UpdateNamespaceRequest, UpdateTriggerRequest, UploadURL } from './types.gen';
4
4
  /**
5
5
  * Serverless Functions API.
6
6
  *
@@ -231,14 +231,6 @@ export declare class API extends ParentAPI {
231
231
  * @returns A Promise of Domain
232
232
  */
233
233
  deleteDomain: (request: Readonly<DeleteDomainRequest>) => Promise<Domain>;
234
- /**
235
- * Create a JWT token. Deprecated in favor of CreateToken.
236
- *
237
- * @deprecated
238
- * @param request - The request {@link IssueJWTRequest}
239
- * @returns A Promise of Token
240
- */
241
- issueJWT: (request?: Readonly<IssueJWTRequest>) => Promise<Token>;
242
234
  /**
243
235
  * Create a new revocable token.
244
236
  *
@@ -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, FUNCTION_TRANSIENT_STATUSES, CRON_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, TOKEN_TRANSIENT_STATUSES, TRIGGER_TRANSIENT_STATUSES } from "./content.gen.js";
7
- import { unmarshalListNamespacesResponse, unmarshalNamespace, marshalCreateNamespaceRequest, marshalUpdateNamespaceRequest, unmarshalListFunctionsResponse, unmarshalFunction, marshalCreateFunctionRequest, marshalUpdateFunctionRequest, unmarshalListFunctionRuntimesResponse, unmarshalUploadURL, unmarshalDownloadURL, unmarshalListCronsResponse, unmarshalCron, marshalCreateCronRequest, marshalUpdateCronRequest, unmarshalListDomainsResponse, unmarshalDomain, marshalCreateDomainRequest, unmarshalToken, marshalCreateTokenRequest, unmarshalListTokensResponse, marshalCreateTriggerRequest, unmarshalTrigger, unmarshalListTriggersResponse, marshalUpdateTriggerRequest } from "./marshalling.gen.js";
7
+ import { unmarshalListNamespacesResponse, unmarshalNamespace, marshalCreateNamespaceRequest, marshalUpdateNamespaceRequest, unmarshalListFunctionsResponse, unmarshalFunction, marshalCreateFunctionRequest, marshalUpdateFunctionRequest, unmarshalListFunctionRuntimesResponse, unmarshalUploadURL, unmarshalDownloadURL, 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
  };
@@ -451,29 +451,6 @@ class API extends API$1 {
451
451
  },
452
452
  unmarshalDomain
453
453
  );
454
- /**
455
- * Create a JWT token. Deprecated in favor of CreateToken.
456
- *
457
- * @deprecated
458
- * @param request - The request {@link IssueJWTRequest}
459
- * @returns A Promise of Token
460
- */
461
- issueJWT = (request = {}) => this.client.fetch(
462
- {
463
- method: "GET",
464
- path: `/functions/v1beta1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/issue-jwt`,
465
- urlParams: urlParams(
466
- ["expires_at", request.expiresAt],
467
- ...Object.entries(
468
- resolveOneOf([
469
- { param: "function_id", value: request.functionId },
470
- { param: "namespace_id", value: request.namespaceId }
471
- ])
472
- )
473
- )
474
- },
475
- unmarshalToken
476
- );
477
454
  /**
478
455
  * Create a new revocable token.
479
456
  *
@@ -1,4 +1,4 @@
1
1
  export { API } from './api.gen';
2
2
  export * from './content.gen';
3
- export type { CreateCronRequest, CreateDomainRequest, CreateFunctionRequest, CreateNamespaceRequest, CreateTokenRequest, CreateTriggerRequest, CreateTriggerRequestMnqNatsClientConfig, CreateTriggerRequestMnqSqsClientConfig, CreateTriggerRequestSqsClientConfig, Cron, CronStatus, DeleteCronRequest, DeleteDomainRequest, DeleteFunctionRequest, DeleteNamespaceRequest, DeleteTokenRequest, DeleteTriggerRequest, DeployFunctionRequest, Domain, DomainStatus, DownloadURL, Function, FunctionHttpOption, FunctionPrivacy, FunctionRuntime, FunctionSandbox, FunctionStatus, GetCronRequest, GetDomainRequest, GetFunctionDownloadURLRequest, GetFunctionRequest, GetFunctionUploadURLRequest, GetNamespaceRequest, GetTokenRequest, GetTriggerRequest, IssueJWTRequest, ListCronsRequest, ListCronsRequestOrderBy, ListCronsResponse, ListDomainsRequest, ListDomainsRequestOrderBy, ListDomainsResponse, ListFunctionRuntimesRequest, ListFunctionRuntimesResponse, ListFunctionsRequest, ListFunctionsRequestOrderBy, ListFunctionsResponse, ListNamespacesRequest, ListNamespacesRequestOrderBy, ListNamespacesResponse, ListTokensRequest, ListTokensRequestOrderBy, ListTokensResponse, ListTriggersRequest, ListTriggersRequestOrderBy, ListTriggersResponse, Namespace, NamespaceStatus, Runtime, RuntimeStatus, Secret, SecretHashedValue, Token, TokenStatus, Trigger, TriggerInputType, TriggerMnqNatsClientConfig, TriggerMnqSqsClientConfig, TriggerSqsClientConfig, TriggerStatus, UpdateCronRequest, UpdateFunctionRequest, UpdateNamespaceRequest, UpdateTriggerRequest, UpdateTriggerRequestSqsClientConfig, UploadURL, } from './types.gen';
3
+ export type { CreateCronRequest, CreateDomainRequest, CreateFunctionRequest, CreateNamespaceRequest, CreateTokenRequest, CreateTriggerRequest, CreateTriggerRequestMnqNatsClientConfig, CreateTriggerRequestMnqSqsClientConfig, CreateTriggerRequestSqsClientConfig, Cron, CronStatus, DeleteCronRequest, DeleteDomainRequest, DeleteFunctionRequest, DeleteNamespaceRequest, DeleteTokenRequest, DeleteTriggerRequest, DeployFunctionRequest, Domain, DomainStatus, DownloadURL, Function, FunctionHttpOption, FunctionPrivacy, FunctionRuntime, FunctionSandbox, FunctionStatus, GetCronRequest, GetDomainRequest, GetFunctionDownloadURLRequest, GetFunctionRequest, GetFunctionUploadURLRequest, GetNamespaceRequest, GetTokenRequest, GetTriggerRequest, ListCronsRequest, ListCronsRequestOrderBy, ListCronsResponse, ListDomainsRequest, ListDomainsRequestOrderBy, ListDomainsResponse, ListFunctionRuntimesRequest, ListFunctionRuntimesResponse, ListFunctionsRequest, ListFunctionsRequestOrderBy, ListFunctionsResponse, ListNamespacesRequest, ListNamespacesRequestOrderBy, ListNamespacesResponse, ListTokensRequest, ListTokensRequestOrderBy, ListTokensResponse, ListTriggersRequest, ListTriggersRequestOrderBy, ListTriggersResponse, Namespace, NamespaceStatus, Runtime, RuntimeStatus, Secret, SecretHashedValue, Token, TokenStatus, Trigger, TriggerInputType, TriggerMnqNatsClientConfig, TriggerMnqSqsClientConfig, TriggerSqsClientConfig, TriggerStatus, UpdateCronRequest, UpdateFunctionRequest, UpdateNamespaceRequest, UpdateTriggerRequest, UpdateTriggerRequestSqsClientConfig, UploadURL, } from './types.gen';
4
4
  export * as ValidationRules from './validation-rules.gen';
@@ -547,18 +547,6 @@ export type GetTriggerRequest = {
547
547
  /** ID of the trigger to get. */
548
548
  triggerId: string;
549
549
  };
550
- export type IssueJWTRequest = {
551
- /**
552
- * Region to target. If none is passed will use default region from the
553
- * config.
554
- */
555
- region?: Region;
556
- /** One-of ('scope'): at most one of 'functionId', 'namespaceId' could be set. */
557
- functionId?: string;
558
- /** One-of ('scope'): at most one of 'functionId', 'namespaceId' could be set. */
559
- namespaceId?: string;
560
- expiresAt?: Date;
561
- };
562
550
  export type ListCronsRequest = {
563
551
  /**
564
552
  * 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 v1alpha1 from './v1alpha1/index.gen';
@@ -185,7 +185,7 @@ class API extends api.API {
185
185
  * @param request - The request {@link CreateUserRequest}
186
186
  * @returns A Promise of User
187
187
  */
188
- createUser = (request) => this.client.fetch(
188
+ createUser = (request = {}) => this.client.fetch(
189
189
  {
190
190
  body: JSON.stringify(
191
191
  marshalling_gen.marshalCreateUserRequest(request, this.client.settings)
@@ -102,7 +102,7 @@ export declare class API extends ParentAPI {
102
102
  * @param request - The request {@link CreateUserRequest}
103
103
  * @returns A Promise of User
104
104
  */
105
- createUser: (request: Readonly<CreateUserRequest>) => Promise<User>;
105
+ createUser: (request?: Readonly<CreateUserRequest>) => Promise<User>;
106
106
  protected pageOfListApplications: (request?: Readonly<ListApplicationsRequest>) => Promise<ListApplicationsResponse>;
107
107
  /**
108
108
  * List applications of an Organization. List the applications of an
@@ -183,7 +183,7 @@ class API extends API$1 {
183
183
  * @param request - The request {@link CreateUserRequest}
184
184
  * @returns A Promise of User
185
185
  */
186
- createUser = (request) => this.client.fetch(
186
+ createUser = (request = {}) => this.client.fetch(
187
187
  {
188
188
  body: JSON.stringify(
189
189
  marshalCreateUserRequest(request, this.client.settings)
@@ -1,3 +1,3 @@
1
1
  export { API } from './api.gen';
2
- export type { APIKey, AddGroupMemberRequest, AddGroupMembersRequest, Application, BearerType, ClonePolicyRequest, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserRequest, DeleteAPIKeyRequest, DeleteApplicationRequest, DeleteGroupRequest, DeleteJWTRequest, DeletePolicyRequest, DeleteSSHKeyRequest, DeleteUserRequest, EncodedJWT, GetAPIKeyRequest, GetApplicationRequest, GetGroupRequest, GetJWTRequest, GetLogRequest, GetPolicyRequest, GetQuotumRequest, GetSSHKeyRequest, GetUserRequest, Group, JWT, ListAPIKeysRequest, ListAPIKeysRequestOrderBy, ListAPIKeysResponse, ListApplicationsRequest, ListApplicationsRequestOrderBy, ListApplicationsResponse, ListGroupsRequest, ListGroupsRequestOrderBy, ListGroupsResponse, ListJWTsRequest, ListJWTsRequestOrderBy, ListJWTsResponse, ListLogsRequest, ListLogsRequestOrderBy, ListLogsResponse, ListPermissionSetsRequest, ListPermissionSetsRequestOrderBy, ListPermissionSetsResponse, ListPoliciesRequest, ListPoliciesRequestOrderBy, ListPoliciesResponse, ListQuotaRequest, ListQuotaRequestOrderBy, ListQuotaResponse, ListRulesRequest, ListRulesResponse, ListSSHKeysRequest, ListSSHKeysRequestOrderBy, ListSSHKeysResponse, ListUsersRequest, ListUsersRequestOrderBy, ListUsersResponse, Log, LogAction, LogResourceType, PermissionSet, PermissionSetScopeType, Policy, Quotum, RemoveGroupMemberRequest, Rule, RuleSpecs, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserRequest, User, UserStatus, UserType, } from './types.gen';
2
+ export type { APIKey, AddGroupMemberRequest, AddGroupMembersRequest, Application, BearerType, ClonePolicyRequest, CreateAPIKeyRequest, CreateApplicationRequest, CreateGroupRequest, CreateJWTRequest, CreatePolicyRequest, CreateSSHKeyRequest, CreateUserRequest, CreateUserRequestMember, DeleteAPIKeyRequest, DeleteApplicationRequest, DeleteGroupRequest, DeleteJWTRequest, DeletePolicyRequest, DeleteSSHKeyRequest, DeleteUserRequest, EncodedJWT, GetAPIKeyRequest, GetApplicationRequest, GetGroupRequest, GetJWTRequest, GetLogRequest, GetPolicyRequest, GetQuotumRequest, GetSSHKeyRequest, GetUserRequest, Group, JWT, ListAPIKeysRequest, ListAPIKeysRequestOrderBy, ListAPIKeysResponse, ListApplicationsRequest, ListApplicationsRequestOrderBy, ListApplicationsResponse, ListGroupsRequest, ListGroupsRequestOrderBy, ListGroupsResponse, ListJWTsRequest, ListJWTsRequestOrderBy, ListJWTsResponse, ListLogsRequest, ListLogsRequestOrderBy, ListLogsResponse, ListPermissionSetsRequest, ListPermissionSetsRequestOrderBy, ListPermissionSetsResponse, ListPoliciesRequest, ListPoliciesRequestOrderBy, ListPoliciesResponse, ListQuotaRequest, ListQuotaRequestOrderBy, ListQuotaResponse, ListRulesRequest, ListRulesResponse, ListSSHKeysRequest, ListSSHKeysRequestOrderBy, ListSSHKeysResponse, ListUsersRequest, ListUsersRequestOrderBy, ListUsersResponse, Log, LogAction, LogResourceType, PermissionSet, PermissionSetScopeType, Policy, Quotum, RemoveGroupMemberRequest, Rule, RuleSpecs, SSHKey, SetGroupMembersRequest, SetRulesRequest, SetRulesResponse, UpdateAPIKeyRequest, UpdateApplicationRequest, UpdateGroupRequest, UpdatePolicyRequest, UpdateSSHKeyRequest, UpdateUserRequest, User, UserStatus, UserType, } from './types.gen';
3
3
  export * as ValidationRules from './validation-rules.gen';
@@ -165,13 +165,15 @@ const unmarshalUser = (data) => {
165
165
  email: data.email,
166
166
  id: data.id,
167
167
  lastLoginAt: marshalling.unmarshalDate(data.last_login_at),
168
+ locked: data.locked,
168
169
  mfa: data.mfa,
169
170
  organizationId: data.organization_id,
170
171
  status: data.status,
171
172
  tags: data.tags,
172
173
  twoFactorEnabled: data.two_factor_enabled,
173
174
  type: data.type,
174
- updatedAt: marshalling.unmarshalDate(data.updated_at)
175
+ updatedAt: marshalling.unmarshalDate(data.updated_at),
176
+ username: data.username
175
177
  };
176
178
  };
177
179
  const unmarshalEncodedJWT = (data) => {
@@ -414,10 +416,22 @@ const marshalCreateSSHKeyRequest = (request, defaults) => ({
414
416
  project_id: request.projectId ?? defaults.defaultProjectId,
415
417
  public_key: request.publicKey
416
418
  });
417
- const marshalCreateUserRequest = (request, defaults) => ({
419
+ const marshalCreateUserRequestMember = (request, defaults) => ({
418
420
  email: request.email,
421
+ password: request.password,
422
+ send_password_email: request.sendPasswordEmail,
423
+ username: request.username
424
+ });
425
+ const marshalCreateUserRequest = (request, defaults) => ({
419
426
  organization_id: request.organizationId ?? defaults.defaultOrganizationId,
420
- tags: request.tags
427
+ tags: request.tags,
428
+ ...marshalling.resolveOneOf([
429
+ { param: "email", value: request.email },
430
+ {
431
+ param: "member",
432
+ value: request.member !== void 0 ? marshalCreateUserRequestMember(request.member) : void 0
433
+ }
434
+ ])
421
435
  });
422
436
  const marshalRemoveGroupMemberRequest = (request, defaults) => ({
423
437
  ...marshalling.resolveOneOf([