@distilled.cloud/scaleway 0.0.0 → 1.0.0-rc.21

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 (639) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +171 -4
  3. package/lib/.lazy.json +1 -0
  4. package/lib/_bundle/lazy.js +4 -0
  5. package/lib/_bundle/sdk.js +2 -0
  6. package/lib/_bundle/sdk.js.map +1 -0
  7. package/lib/credentials.d.ts +44 -0
  8. package/lib/credentials.d.ts.map +1 -0
  9. package/lib/credentials.js +1 -0
  10. package/lib/errors.d.ts +285 -0
  11. package/lib/errors.d.ts.map +1 -0
  12. package/lib/errors.js +1 -0
  13. package/lib/index.d.ts +48 -0
  14. package/lib/index.d.ts.map +1 -0
  15. package/lib/index.js +6 -0
  16. package/lib/pagination.d.ts +10 -0
  17. package/lib/pagination.d.ts.map +1 -0
  18. package/lib/pagination.js +1 -0
  19. package/lib/protocol.d.ts +48 -0
  20. package/lib/protocol.d.ts.map +1 -0
  21. package/lib/protocol.js +1 -0
  22. package/lib/retry.d.ts +31 -0
  23. package/lib/retry.d.ts.map +1 -0
  24. package/lib/retry.js +1 -0
  25. package/lib/services/account_contract_v3.d.ts +124 -0
  26. package/lib/services/account_contract_v3.d.ts.map +1 -0
  27. package/lib/services/account_contract_v3.js +2 -0
  28. package/lib/services/account_contract_v3.js.map +1 -0
  29. package/lib/services/account_iso_code_v3.d.ts +44 -0
  30. package/lib/services/account_iso_code_v3.d.ts.map +1 -0
  31. package/lib/services/account_iso_code_v3.js +2 -0
  32. package/lib/services/account_iso_code_v3.js.map +1 -0
  33. package/lib/services/account_organization_v3.d.ts +290 -0
  34. package/lib/services/account_organization_v3.d.ts.map +1 -0
  35. package/lib/services/account_organization_v3.js +2 -0
  36. package/lib/services/account_organization_v3.js.map +1 -0
  37. package/lib/services/account_project_v3.d.ts +173 -0
  38. package/lib/services/account_project_v3.d.ts.map +1 -0
  39. package/lib/services/account_project_v3.js +2 -0
  40. package/lib/services/account_project_v3.js.map +1 -0
  41. package/lib/services/account_unauthenticated_user_v3.d.ts +479 -0
  42. package/lib/services/account_unauthenticated_user_v3.d.ts.map +1 -0
  43. package/lib/services/account_unauthenticated_user_v3.js +35 -0
  44. package/lib/services/account_unauthenticated_user_v3.js.map +1 -0
  45. package/lib/services/account_unauthenticated_v3.d.ts +18 -0
  46. package/lib/services/account_unauthenticated_v3.d.ts.map +1 -0
  47. package/lib/services/account_unauthenticated_v3.js +2 -0
  48. package/lib/services/account_unauthenticated_v3.js.map +1 -0
  49. package/lib/services/account_user_v3.d.ts +522 -0
  50. package/lib/services/account_user_v3.d.ts.map +1 -0
  51. package/lib/services/account_user_v3.js +39 -0
  52. package/lib/services/account_user_v3.js.map +1 -0
  53. package/lib/services/annotations_v1.d.ts +260 -0
  54. package/lib/services/annotations_v1.d.ts.map +1 -0
  55. package/lib/services/annotations_v1.js +2 -0
  56. package/lib/services/annotations_v1.js.map +1 -0
  57. package/lib/services/baremetal_private_network_v1.d.ts +95 -0
  58. package/lib/services/baremetal_private_network_v1.d.ts.map +1 -0
  59. package/lib/services/baremetal_private_network_v1.js +2 -0
  60. package/lib/services/baremetal_private_network_v1.js.map +1 -0
  61. package/lib/services/baremetal_private_network_v3.d.ts +110 -0
  62. package/lib/services/baremetal_private_network_v3.d.ts.map +1 -0
  63. package/lib/services/baremetal_private_network_v3.js +2 -0
  64. package/lib/services/baremetal_private_network_v3.js.map +1 -0
  65. package/lib/services/baremetal_v1.d.ts +1089 -0
  66. package/lib/services/baremetal_v1.d.ts.map +1 -0
  67. package/lib/services/baremetal_v1.js +52 -0
  68. package/lib/services/baremetal_v1.js.map +1 -0
  69. package/lib/services/billing_electronic_billing_v2.d.ts +86 -0
  70. package/lib/services/billing_electronic_billing_v2.d.ts.map +1 -0
  71. package/lib/services/billing_electronic_billing_v2.js +2 -0
  72. package/lib/services/billing_electronic_billing_v2.js.map +1 -0
  73. package/lib/services/billing_v2.d.ts +187 -0
  74. package/lib/services/billing_v2.d.ts.map +1 -0
  75. package/lib/services/billing_v2.js +2 -0
  76. package/lib/services/billing_v2.js.map +1 -0
  77. package/lib/services/block_v1.d.ts +401 -0
  78. package/lib/services/block_v1.d.ts.map +1 -0
  79. package/lib/services/block_v1.js +27 -0
  80. package/lib/services/block_v1.js.map +1 -0
  81. package/lib/services/cockpit_global_v1.d.ts +75 -0
  82. package/lib/services/cockpit_global_v1.d.ts.map +1 -0
  83. package/lib/services/cockpit_global_v1.js +2 -0
  84. package/lib/services/cockpit_global_v1.js.map +1 -0
  85. package/lib/services/cockpit_regional_v1.d.ts +739 -0
  86. package/lib/services/cockpit_regional_v1.d.ts.map +1 -0
  87. package/lib/services/cockpit_regional_v1.js +47 -0
  88. package/lib/services/cockpit_regional_v1.js.map +1 -0
  89. package/lib/services/containers_v1.d.ts +822 -0
  90. package/lib/services/containers_v1.d.ts.map +1 -0
  91. package/lib/services/containers_v1.js +39 -0
  92. package/lib/services/containers_v1.js.map +1 -0
  93. package/lib/services/dedibox_billing_v1.d.ts +151 -0
  94. package/lib/services/dedibox_billing_v1.d.ts.map +1 -0
  95. package/lib/services/dedibox_billing_v1.js +2 -0
  96. package/lib/services/dedibox_billing_v1.js.map +1 -0
  97. package/lib/services/dedibox_ipv6_block_v1.d.ts +119 -0
  98. package/lib/services/dedibox_ipv6_block_v1.d.ts.map +1 -0
  99. package/lib/services/dedibox_ipv6_block_v1.js +2 -0
  100. package/lib/services/dedibox_ipv6_block_v1.js.map +1 -0
  101. package/lib/services/dedibox_rpn_san_v1.d.ts +486 -0
  102. package/lib/services/dedibox_rpn_san_v1.d.ts.map +1 -0
  103. package/lib/services/dedibox_rpn_san_v1.js +2 -0
  104. package/lib/services/dedibox_rpn_san_v1.js.map +1 -0
  105. package/lib/services/dedibox_rpn_v1.d.ts +68 -0
  106. package/lib/services/dedibox_rpn_v1.d.ts.map +1 -0
  107. package/lib/services/dedibox_rpn_v1.js +2 -0
  108. package/lib/services/dedibox_rpn_v1.js.map +1 -0
  109. package/lib/services/dedibox_rpn_v1_v1.d.ts +687 -0
  110. package/lib/services/dedibox_rpn_v1_v1.d.ts.map +1 -0
  111. package/lib/services/dedibox_rpn_v1_v1.js +30 -0
  112. package/lib/services/dedibox_rpn_v1_v1.js.map +1 -0
  113. package/lib/services/dedibox_rpn_v2_v1.d.ts +646 -0
  114. package/lib/services/dedibox_rpn_v2_v1.d.ts.map +1 -0
  115. package/lib/services/dedibox_rpn_v2_v1.js +27 -0
  116. package/lib/services/dedibox_rpn_v2_v1.js.map +1 -0
  117. package/lib/services/dedibox_v1.d.ts +1351 -0
  118. package/lib/services/dedibox_v1.d.ts.map +1 -0
  119. package/lib/services/dedibox_v1.js +70 -0
  120. package/lib/services/dedibox_v1.js.map +1 -0
  121. package/lib/services/generative_apis_openai_v1.d.ts +772 -0
  122. package/lib/services/generative_apis_openai_v1.d.ts.map +1 -0
  123. package/lib/services/generative_apis_openai_v1.js +24 -0
  124. package/lib/services/generative_apis_openai_v1.js.map +1 -0
  125. package/lib/services/generative_apis_v1.d.ts +82 -0
  126. package/lib/services/generative_apis_v1.d.ts.map +1 -0
  127. package/lib/services/generative_apis_v1.js +2 -0
  128. package/lib/services/generative_apis_v1.js.map +1 -0
  129. package/lib/services/index.d.ts +57 -0
  130. package/lib/services/index.d.ts.map +1 -0
  131. package/lib/services/index.js +56 -0
  132. package/lib/services/inference_v1.d.ts +460 -0
  133. package/lib/services/inference_v1.d.ts.map +1 -0
  134. package/lib/services/inference_v1.js +33 -0
  135. package/lib/services/inference_v1.js.map +1 -0
  136. package/lib/services/instance_v1.d.ts +2183 -0
  137. package/lib/services/instance_v1.d.ts.map +1 -0
  138. package/lib/services/instance_v1.js +112 -0
  139. package/lib/services/instance_v1.js.map +1 -0
  140. package/lib/services/iot_v1.d.ts +837 -0
  141. package/lib/services/iot_v1.d.ts.map +1 -0
  142. package/lib/services/iot_v1.js +50 -0
  143. package/lib/services/iot_v1.js.map +1 -0
  144. package/lib/services/ipam_v1.d.ts +244 -0
  145. package/lib/services/ipam_v1.d.ts.map +1 -0
  146. package/lib/services/ipam_v1.js +2 -0
  147. package/lib/services/ipam_v1.js.map +1 -0
  148. package/lib/services/k8s_v1.d.ts +1223 -0
  149. package/lib/services/k8s_v1.d.ts.map +1 -0
  150. package/lib/services/k8s_v1.js +61 -0
  151. package/lib/services/k8s_v1.js.map +1 -0
  152. package/lib/services/lb_zoned_v1.d.ts +1517 -0
  153. package/lib/services/lb_zoned_v1.d.ts.map +1 -0
  154. package/lib/services/lb_zoned_v1.js +75 -0
  155. package/lib/services/lb_zoned_v1.js.map +1 -0
  156. package/lib/services/marketplace_console_v2.d.ts +72 -0
  157. package/lib/services/marketplace_console_v2.d.ts.map +1 -0
  158. package/lib/services/marketplace_console_v2.js +2 -0
  159. package/lib/services/marketplace_console_v2.js.map +1 -0
  160. package/lib/services/marketplace_v2.d.ts +169 -0
  161. package/lib/services/marketplace_v2.d.ts.map +1 -0
  162. package/lib/services/marketplace_v2.js +2 -0
  163. package/lib/services/marketplace_v2.js.map +1 -0
  164. package/lib/services/mongodb_v1.d.ts +698 -0
  165. package/lib/services/mongodb_v1.d.ts.map +1 -0
  166. package/lib/services/mongodb_v1.js +43 -0
  167. package/lib/services/mongodb_v1.js.map +1 -0
  168. package/lib/services/partner_v1.d.ts +142 -0
  169. package/lib/services/partner_v1.d.ts.map +1 -0
  170. package/lib/services/partner_v1.js +2 -0
  171. package/lib/services/partner_v1.js.map +1 -0
  172. package/lib/services/rdb_encryption_v1.d.ts +17 -0
  173. package/lib/services/rdb_encryption_v1.d.ts.map +1 -0
  174. package/lib/services/rdb_encryption_v1.js +2 -0
  175. package/lib/services/rdb_encryption_v1.js.map +1 -0
  176. package/lib/services/rdb_v1.d.ts +1422 -0
  177. package/lib/services/rdb_v1.d.ts.map +1 -0
  178. package/lib/services/rdb_v1.js +87 -0
  179. package/lib/services/rdb_v1.js.map +1 -0
  180. package/lib/services/redis_v1.d.ts +602 -0
  181. package/lib/services/redis_v1.d.ts.map +1 -0
  182. package/lib/services/redis_v1.js +42 -0
  183. package/lib/services/redis_v1.js.map +1 -0
  184. package/lib/services/registry_v1.d.ts +281 -0
  185. package/lib/services/registry_v1.d.ts.map +1 -0
  186. package/lib/services/registry_v1.js +2 -0
  187. package/lib/services/registry_v1.js.map +1 -0
  188. package/lib/services/reseller_v1.d.ts +81 -0
  189. package/lib/services/reseller_v1.d.ts.map +1 -0
  190. package/lib/services/reseller_v1.js +2 -0
  191. package/lib/services/reseller_v1.js.map +1 -0
  192. package/lib/services/vpc_gw_v2.d.ts +635 -0
  193. package/lib/services/vpc_gw_v2.d.ts.map +1 -0
  194. package/lib/services/vpc_gw_v2.js +46 -0
  195. package/lib/services/vpc_gw_v2.js.map +1 -0
  196. package/lib/services/vpc_private_network_with_nics_v2.d.ts +114 -0
  197. package/lib/services/vpc_private_network_with_nics_v2.d.ts.map +1 -0
  198. package/lib/services/vpc_private_network_with_nics_v2.js +2 -0
  199. package/lib/services/vpc_private_network_with_nics_v2.js.map +1 -0
  200. package/lib/services/vpc_routes_with_nexthop_v2.d.ts +87 -0
  201. package/lib/services/vpc_routes_with_nexthop_v2.d.ts.map +1 -0
  202. package/lib/services/vpc_routes_with_nexthop_v2.js +2 -0
  203. package/lib/services/vpc_routes_with_nexthop_v2.js.map +1 -0
  204. package/lib/services/vpc_v2.d.ts +875 -0
  205. package/lib/services/vpc_v2.d.ts.map +1 -0
  206. package/lib/services/vpc_v2.js +54 -0
  207. package/lib/services/vpc_v2.js.map +1 -0
  208. package/lib/services/webhosting_backup_v1.d.ts +182 -0
  209. package/lib/services/webhosting_backup_v1.d.ts.map +1 -0
  210. package/lib/services/webhosting_backup_v1.js +2 -0
  211. package/lib/services/webhosting_backup_v1.js.map +1 -0
  212. package/lib/services/webhosting_control_panel_v1.d.ts +37 -0
  213. package/lib/services/webhosting_control_panel_v1.d.ts.map +1 -0
  214. package/lib/services/webhosting_control_panel_v1.js +2 -0
  215. package/lib/services/webhosting_control_panel_v1.js.map +1 -0
  216. package/lib/services/webhosting_database_v1.d.ts +195 -0
  217. package/lib/services/webhosting_database_v1.d.ts.map +1 -0
  218. package/lib/services/webhosting_database_v1.js +2 -0
  219. package/lib/services/webhosting_database_v1.js.map +1 -0
  220. package/lib/services/webhosting_dedibox_v1.d.ts +232 -0
  221. package/lib/services/webhosting_dedibox_v1.d.ts.map +1 -0
  222. package/lib/services/webhosting_dedibox_v1.js +2 -0
  223. package/lib/services/webhosting_dedibox_v1.js.map +1 -0
  224. package/lib/services/webhosting_dns_v1.d.ts +177 -0
  225. package/lib/services/webhosting_dns_v1.d.ts.map +1 -0
  226. package/lib/services/webhosting_dns_v1.js +2 -0
  227. package/lib/services/webhosting_dns_v1.js.map +1 -0
  228. package/lib/services/webhosting_free_domain_v1.d.ts +51 -0
  229. package/lib/services/webhosting_free_domain_v1.d.ts.map +1 -0
  230. package/lib/services/webhosting_free_domain_v1.js +2 -0
  231. package/lib/services/webhosting_free_domain_v1.js.map +1 -0
  232. package/lib/services/webhosting_ftp_account_v1.d.ts +79 -0
  233. package/lib/services/webhosting_ftp_account_v1.d.ts.map +1 -0
  234. package/lib/services/webhosting_ftp_account_v1.js +2 -0
  235. package/lib/services/webhosting_ftp_account_v1.js.map +1 -0
  236. package/lib/services/webhosting_hosting_v1.d.ts +502 -0
  237. package/lib/services/webhosting_hosting_v1.d.ts.map +1 -0
  238. package/lib/services/webhosting_hosting_v1.js +27 -0
  239. package/lib/services/webhosting_hosting_v1.js.map +1 -0
  240. package/lib/services/webhosting_mail_account_v1.d.ts +84 -0
  241. package/lib/services/webhosting_mail_account_v1.d.ts.map +1 -0
  242. package/lib/services/webhosting_mail_account_v1.js +2 -0
  243. package/lib/services/webhosting_mail_account_v1.js.map +1 -0
  244. package/lib/services/webhosting_offer_v1.d.ts +122 -0
  245. package/lib/services/webhosting_offer_v1.d.ts.map +1 -0
  246. package/lib/services/webhosting_offer_v1.js +2 -0
  247. package/lib/services/webhosting_offer_v1.js.map +1 -0
  248. package/lib/services/webhosting_website_v1.d.ts +75 -0
  249. package/lib/services/webhosting_website_v1.d.ts.map +1 -0
  250. package/lib/services/webhosting_website_v1.js +2 -0
  251. package/lib/services/webhosting_website_v1.js.map +1 -0
  252. package/lib/services.lazy/account_contract_v3.js +1 -0
  253. package/lib/services.lazy/account_iso_code_v3.js +1 -0
  254. package/lib/services.lazy/account_organization_v3.js +1 -0
  255. package/lib/services.lazy/account_project_v3.js +1 -0
  256. package/lib/services.lazy/account_unauthenticated_user_v3.js +3 -0
  257. package/lib/services.lazy/account_unauthenticated_v3.js +1 -0
  258. package/lib/services.lazy/account_user_v3.js +3 -0
  259. package/lib/services.lazy/annotations_v1.js +1 -0
  260. package/lib/services.lazy/baremetal_private_network_v1.js +1 -0
  261. package/lib/services.lazy/baremetal_private_network_v3.js +1 -0
  262. package/lib/services.lazy/baremetal_v1.js +3 -0
  263. package/lib/services.lazy/billing_electronic_billing_v2.js +1 -0
  264. package/lib/services.lazy/billing_v2.js +1 -0
  265. package/lib/services.lazy/block_v1.js +3 -0
  266. package/lib/services.lazy/cockpit_global_v1.js +1 -0
  267. package/lib/services.lazy/cockpit_regional_v1.js +3 -0
  268. package/lib/services.lazy/containers_v1.js +3 -0
  269. package/lib/services.lazy/dedibox_billing_v1.js +1 -0
  270. package/lib/services.lazy/dedibox_ipv6_block_v1.js +1 -0
  271. package/lib/services.lazy/dedibox_rpn_san_v1.js +1 -0
  272. package/lib/services.lazy/dedibox_rpn_v1.js +1 -0
  273. package/lib/services.lazy/dedibox_rpn_v1_v1.js +3 -0
  274. package/lib/services.lazy/dedibox_rpn_v2_v1.js +3 -0
  275. package/lib/services.lazy/dedibox_v1.js +3 -0
  276. package/lib/services.lazy/generative_apis_openai_v1.js +3 -0
  277. package/lib/services.lazy/generative_apis_v1.js +1 -0
  278. package/lib/services.lazy/index.js +3 -0
  279. package/lib/services.lazy/inference_v1.js +3 -0
  280. package/lib/services.lazy/instance_v1.js +3 -0
  281. package/lib/services.lazy/iot_v1.js +3 -0
  282. package/lib/services.lazy/ipam_v1.js +1 -0
  283. package/lib/services.lazy/k8s_v1.js +3 -0
  284. package/lib/services.lazy/lb_zoned_v1.js +3 -0
  285. package/lib/services.lazy/marketplace_console_v2.js +1 -0
  286. package/lib/services.lazy/marketplace_v2.js +1 -0
  287. package/lib/services.lazy/mongodb_v1.js +3 -0
  288. package/lib/services.lazy/partner_v1.js +1 -0
  289. package/lib/services.lazy/rdb_encryption_v1.js +1 -0
  290. package/lib/services.lazy/rdb_v1.js +3 -0
  291. package/lib/services.lazy/redis_v1.js +3 -0
  292. package/lib/services.lazy/registry_v1.js +1 -0
  293. package/lib/services.lazy/reseller_v1.js +1 -0
  294. package/lib/services.lazy/vpc_gw_v2.js +3 -0
  295. package/lib/services.lazy/vpc_private_network_with_nics_v2.js +1 -0
  296. package/lib/services.lazy/vpc_routes_with_nexthop_v2.js +1 -0
  297. package/lib/services.lazy/vpc_v2.js +3 -0
  298. package/lib/services.lazy/webhosting_backup_v1.js +1 -0
  299. package/lib/services.lazy/webhosting_control_panel_v1.js +1 -0
  300. package/lib/services.lazy/webhosting_database_v1.js +1 -0
  301. package/lib/services.lazy/webhosting_dedibox_v1.js +1 -0
  302. package/lib/services.lazy/webhosting_dns_v1.js +1 -0
  303. package/lib/services.lazy/webhosting_free_domain_v1.js +1 -0
  304. package/lib/services.lazy/webhosting_ftp_account_v1.js +1 -0
  305. package/lib/services.lazy/webhosting_hosting_v1.js +3 -0
  306. package/lib/services.lazy/webhosting_mail_account_v1.js +1 -0
  307. package/lib/services.lazy/webhosting_offer_v1.js +1 -0
  308. package/lib/services.lazy/webhosting_website_v1.js +1 -0
  309. package/lib/traits.d.ts +25 -0
  310. package/lib/traits.d.ts.map +1 -0
  311. package/lib/traits.js +1 -0
  312. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts +119 -0
  313. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts.map +1 -0
  314. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js +2 -0
  315. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js.map +1 -0
  316. package/lib/unstable-services/apple_silicon_v1alpha1.d.ts +569 -0
  317. package/lib/unstable-services/apple_silicon_v1alpha1.d.ts.map +1 -0
  318. package/lib/unstable-services/apple_silicon_v1alpha1.js +38 -0
  319. package/lib/unstable-services/apple_silicon_v1alpha1.js.map +1 -0
  320. package/lib/unstable-services/audit_trail_v1alpha1.d.ts +1082 -0
  321. package/lib/unstable-services/audit_trail_v1alpha1.d.ts.map +1 -0
  322. package/lib/unstable-services/audit_trail_v1alpha1.js +47 -0
  323. package/lib/unstable-services/audit_trail_v1alpha1.js.map +1 -0
  324. package/lib/unstable-services/autoscaling_v1alpha2.d.ts +368 -0
  325. package/lib/unstable-services/autoscaling_v1alpha2.d.ts.map +1 -0
  326. package/lib/unstable-services/autoscaling_v1alpha2.js +2 -0
  327. package/lib/unstable-services/autoscaling_v1alpha2.js.map +1 -0
  328. package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts +78 -0
  329. package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts.map +1 -0
  330. package/lib/unstable-services/billing_fin_ops_v2beta1.js +2 -0
  331. package/lib/unstable-services/billing_fin_ops_v2beta1.js.map +1 -0
  332. package/lib/unstable-services/billing_v2beta1.d.ts +411 -0
  333. package/lib/unstable-services/billing_v2beta1.d.ts.map +1 -0
  334. package/lib/unstable-services/billing_v2beta1.js +25 -0
  335. package/lib/unstable-services/billing_v2beta1.js.map +1 -0
  336. package/lib/unstable-services/block_v1alpha1.d.ts +372 -0
  337. package/lib/unstable-services/block_v1alpha1.d.ts.map +1 -0
  338. package/lib/unstable-services/block_v1alpha1.js +27 -0
  339. package/lib/unstable-services/block_v1alpha1.js.map +1 -0
  340. package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts +440 -0
  341. package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts.map +1 -0
  342. package/lib/unstable-services/data_orchestrator_v1alpha2.js +27 -0
  343. package/lib/unstable-services/data_orchestrator_v1alpha2.js.map +1 -0
  344. package/lib/unstable-services/datalab_v1beta1.d.ts +322 -0
  345. package/lib/unstable-services/datalab_v1beta1.d.ts.map +1 -0
  346. package/lib/unstable-services/datalab_v1beta1.js +2 -0
  347. package/lib/unstable-services/datalab_v1beta1.js.map +1 -0
  348. package/lib/unstable-services/dataviz_v1alpha1.d.ts +456 -0
  349. package/lib/unstable-services/dataviz_v1alpha1.d.ts.map +1 -0
  350. package/lib/unstable-services/dataviz_v1alpha1.js +34 -0
  351. package/lib/unstable-services/dataviz_v1alpha1.js.map +1 -0
  352. package/lib/unstable-services/datawarehouse_v1beta1.d.ts +492 -0
  353. package/lib/unstable-services/datawarehouse_v1beta1.d.ts.map +1 -0
  354. package/lib/unstable-services/datawarehouse_v1beta1.js +34 -0
  355. package/lib/unstable-services/datawarehouse_v1beta1.js.map +1 -0
  356. package/lib/unstable-services/domain_registrar_v2beta1.d.ts +1087 -0
  357. package/lib/unstable-services/domain_registrar_v2beta1.d.ts.map +1 -0
  358. package/lib/unstable-services/domain_registrar_v2beta1.js +50 -0
  359. package/lib/unstable-services/domain_registrar_v2beta1.js.map +1 -0
  360. package/lib/unstable-services/domain_suggestion_v2beta1.d.ts +19 -0
  361. package/lib/unstable-services/domain_suggestion_v2beta1.d.ts.map +1 -0
  362. package/lib/unstable-services/domain_suggestion_v2beta1.js +2 -0
  363. package/lib/unstable-services/domain_suggestion_v2beta1.js.map +1 -0
  364. package/lib/unstable-services/domain_v2beta1.d.ts +520 -0
  365. package/lib/unstable-services/domain_v2beta1.d.ts.map +1 -0
  366. package/lib/unstable-services/domain_v2beta1.js +44 -0
  367. package/lib/unstable-services/domain_v2beta1.js.map +1 -0
  368. package/lib/unstable-services/edge_services_v1beta1.d.ts +1153 -0
  369. package/lib/unstable-services/edge_services_v1beta1.d.ts.map +1 -0
  370. package/lib/unstable-services/edge_services_v1beta1.js +81 -0
  371. package/lib/unstable-services/edge_services_v1beta1.js.map +1 -0
  372. package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts +149 -0
  373. package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts.map +1 -0
  374. package/lib/unstable-services/environmental_footprint_user_v1alpha1.js +2 -0
  375. package/lib/unstable-services/environmental_footprint_user_v1alpha1.js.map +1 -0
  376. package/lib/unstable-services/file_v1alpha1.d.ts +350 -0
  377. package/lib/unstable-services/file_v1alpha1.d.ts.map +1 -0
  378. package/lib/unstable-services/file_v1alpha1.js +24 -0
  379. package/lib/unstable-services/file_v1alpha1.js.map +1 -0
  380. package/lib/unstable-services/flexible_ip_v1alpha1.d.ts +241 -0
  381. package/lib/unstable-services/flexible_ip_v1alpha1.d.ts.map +1 -0
  382. package/lib/unstable-services/flexible_ip_v1alpha1.js +2 -0
  383. package/lib/unstable-services/flexible_ip_v1alpha1.js.map +1 -0
  384. package/lib/unstable-services/functions_v1beta1.d.ts +852 -0
  385. package/lib/unstable-services/functions_v1beta1.d.ts.map +1 -0
  386. package/lib/unstable-services/functions_v1beta1.js +49 -0
  387. package/lib/unstable-services/functions_v1beta1.js.map +1 -0
  388. package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts +257 -0
  389. package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts.map +1 -0
  390. package/lib/unstable-services/iam_unauthenticated_v1alpha1.js +2 -0
  391. package/lib/unstable-services/iam_unauthenticated_v1alpha1.js.map +1 -0
  392. package/lib/unstable-services/iam_v1alpha1.d.ts +1506 -0
  393. package/lib/unstable-services/iam_v1alpha1.d.ts.map +1 -0
  394. package/lib/unstable-services/iam_v1alpha1.js +105 -0
  395. package/lib/unstable-services/iam_v1alpha1.js.map +1 -0
  396. package/lib/unstable-services/index.d.ts +44 -0
  397. package/lib/unstable-services/index.d.ts.map +1 -0
  398. package/lib/unstable-services/index.js +43 -0
  399. package/lib/unstable-services/instance_v2alpha1.d.ts +1745 -0
  400. package/lib/unstable-services/instance_v2alpha1.d.ts.map +1 -0
  401. package/lib/unstable-services/instance_v2alpha1.js +81 -0
  402. package/lib/unstable-services/instance_v2alpha1.js.map +1 -0
  403. package/lib/unstable-services/instance_volume_v2alpha1.d.ts +333 -0
  404. package/lib/unstable-services/instance_volume_v2alpha1.d.ts.map +1 -0
  405. package/lib/unstable-services/instance_volume_v2alpha1.js +26 -0
  406. package/lib/unstable-services/instance_volume_v2alpha1.js.map +1 -0
  407. package/lib/unstable-services/interlink_v1beta1.d.ts +636 -0
  408. package/lib/unstable-services/interlink_v1beta1.d.ts.map +1 -0
  409. package/lib/unstable-services/interlink_v1beta1.js +39 -0
  410. package/lib/unstable-services/interlink_v1beta1.js.map +1 -0
  411. package/lib/unstable-services/kafka_v1alpha1.d.ts +451 -0
  412. package/lib/unstable-services/kafka_v1alpha1.d.ts.map +1 -0
  413. package/lib/unstable-services/kafka_v1alpha1.js +27 -0
  414. package/lib/unstable-services/kafka_v1alpha1.js.map +1 -0
  415. package/lib/unstable-services/key_manager_v1alpha1.d.ts +515 -0
  416. package/lib/unstable-services/key_manager_v1alpha1.d.ts.map +1 -0
  417. package/lib/unstable-services/key_manager_v1alpha1.js +36 -0
  418. package/lib/unstable-services/key_manager_v1alpha1.js.map +1 -0
  419. package/lib/unstable-services/mailbox_v1alpha1.d.ts +438 -0
  420. package/lib/unstable-services/mailbox_v1alpha1.d.ts.map +1 -0
  421. package/lib/unstable-services/mailbox_v1alpha1.js +39 -0
  422. package/lib/unstable-services/mailbox_v1alpha1.js.map +1 -0
  423. package/lib/unstable-services/messageq_v1alpha1.d.ts +420 -0
  424. package/lib/unstable-services/messageq_v1alpha1.d.ts.map +1 -0
  425. package/lib/unstable-services/messageq_v1alpha1.js +29 -0
  426. package/lib/unstable-services/messageq_v1alpha1.js.map +1 -0
  427. package/lib/unstable-services/mnq_console_v1beta1.d.ts +32 -0
  428. package/lib/unstable-services/mnq_console_v1beta1.d.ts.map +1 -0
  429. package/lib/unstable-services/mnq_console_v1beta1.js +2 -0
  430. package/lib/unstable-services/mnq_console_v1beta1.js.map +1 -0
  431. package/lib/unstable-services/mnq_nats_v1beta1.d.ts +177 -0
  432. package/lib/unstable-services/mnq_nats_v1beta1.d.ts.map +1 -0
  433. package/lib/unstable-services/mnq_nats_v1beta1.js +2 -0
  434. package/lib/unstable-services/mnq_nats_v1beta1.js.map +1 -0
  435. package/lib/unstable-services/mnq_sns_v1beta1.d.ts +155 -0
  436. package/lib/unstable-services/mnq_sns_v1beta1.d.ts.map +1 -0
  437. package/lib/unstable-services/mnq_sns_v1beta1.js +2 -0
  438. package/lib/unstable-services/mnq_sns_v1beta1.js.map +1 -0
  439. package/lib/unstable-services/mnq_sqs_v1beta1.d.ts +155 -0
  440. package/lib/unstable-services/mnq_sqs_v1beta1.d.ts.map +1 -0
  441. package/lib/unstable-services/mnq_sqs_v1beta1.js +2 -0
  442. package/lib/unstable-services/mnq_sqs_v1beta1.js.map +1 -0
  443. package/lib/unstable-services/mongodb_v1alpha1.d.ts +604 -0
  444. package/lib/unstable-services/mongodb_v1alpha1.d.ts.map +1 -0
  445. package/lib/unstable-services/mongodb_v1alpha1.js +37 -0
  446. package/lib/unstable-services/mongodb_v1alpha1.js.map +1 -0
  447. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts +477 -0
  448. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts.map +1 -0
  449. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js +2 -0
  450. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js.map +1 -0
  451. package/lib/unstable-services/qaas_v1alpha1.d.ts +764 -0
  452. package/lib/unstable-services/qaas_v1alpha1.d.ts.map +1 -0
  453. package/lib/unstable-services/qaas_v1alpha1.js +51 -0
  454. package/lib/unstable-services/qaas_v1alpha1.js.map +1 -0
  455. package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts +794 -0
  456. package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts.map +1 -0
  457. package/lib/unstable-services/s2s_vpn_v1alpha1.js +45 -0
  458. package/lib/unstable-services/s2s_vpn_v1alpha1.js.map +1 -0
  459. package/lib/unstable-services/search_v1alpha1.d.ts +120 -0
  460. package/lib/unstable-services/search_v1alpha1.d.ts.map +1 -0
  461. package/lib/unstable-services/search_v1alpha1.js +2 -0
  462. package/lib/unstable-services/search_v1alpha1.js.map +1 -0
  463. package/lib/unstable-services/searchdb_v1alpha1.d.ts +424 -0
  464. package/lib/unstable-services/searchdb_v1alpha1.d.ts.map +1 -0
  465. package/lib/unstable-services/searchdb_v1alpha1.js +29 -0
  466. package/lib/unstable-services/searchdb_v1alpha1.js.map +1 -0
  467. package/lib/unstable-services/secret_manager_v1beta1.d.ts +407 -0
  468. package/lib/unstable-services/secret_manager_v1beta1.d.ts.map +1 -0
  469. package/lib/unstable-services/secret_manager_v1beta1.js +32 -0
  470. package/lib/unstable-services/secret_manager_v1beta1.js.map +1 -0
  471. package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts +331 -0
  472. package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts.map +1 -0
  473. package/lib/unstable-services/serverless_jobs_v1alpha1.js +28 -0
  474. package/lib/unstable-services/serverless_jobs_v1alpha1.js.map +1 -0
  475. package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts +546 -0
  476. package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts.map +1 -0
  477. package/lib/unstable-services/serverless_jobs_v1alpha2.js +35 -0
  478. package/lib/unstable-services/serverless_jobs_v1alpha2.js.map +1 -0
  479. package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts +239 -0
  480. package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts.map +1 -0
  481. package/lib/unstable-services/serverless_sqldb_v1alpha1.js +2 -0
  482. package/lib/unstable-services/serverless_sqldb_v1alpha1.js.map +1 -0
  483. package/lib/unstable-services/transactional_email_v1alpha1.d.ts +936 -0
  484. package/lib/unstable-services/transactional_email_v1alpha1.d.ts.map +1 -0
  485. package/lib/unstable-services/transactional_email_v1alpha1.js +46 -0
  486. package/lib/unstable-services/transactional_email_v1alpha1.js.map +1 -0
  487. package/lib/unstable-services.lazy/apple_silicon_private_network_v1alpha1.js +1 -0
  488. package/lib/unstable-services.lazy/apple_silicon_v1alpha1.js +3 -0
  489. package/lib/unstable-services.lazy/audit_trail_v1alpha1.js +3 -0
  490. package/lib/unstable-services.lazy/autoscaling_v1alpha2.js +1 -0
  491. package/lib/unstable-services.lazy/billing_fin_ops_v2beta1.js +1 -0
  492. package/lib/unstable-services.lazy/billing_v2beta1.js +3 -0
  493. package/lib/unstable-services.lazy/block_v1alpha1.js +3 -0
  494. package/lib/unstable-services.lazy/data_orchestrator_v1alpha2.js +3 -0
  495. package/lib/unstable-services.lazy/datalab_v1beta1.js +1 -0
  496. package/lib/unstable-services.lazy/dataviz_v1alpha1.js +3 -0
  497. package/lib/unstable-services.lazy/datawarehouse_v1beta1.js +3 -0
  498. package/lib/unstable-services.lazy/domain_registrar_v2beta1.js +3 -0
  499. package/lib/unstable-services.lazy/domain_suggestion_v2beta1.js +1 -0
  500. package/lib/unstable-services.lazy/domain_v2beta1.js +3 -0
  501. package/lib/unstable-services.lazy/edge_services_v1beta1.js +3 -0
  502. package/lib/unstable-services.lazy/environmental_footprint_user_v1alpha1.js +1 -0
  503. package/lib/unstable-services.lazy/file_v1alpha1.js +3 -0
  504. package/lib/unstable-services.lazy/flexible_ip_v1alpha1.js +1 -0
  505. package/lib/unstable-services.lazy/functions_v1beta1.js +3 -0
  506. package/lib/unstable-services.lazy/iam_unauthenticated_v1alpha1.js +1 -0
  507. package/lib/unstable-services.lazy/iam_v1alpha1.js +3 -0
  508. package/lib/unstable-services.lazy/index.js +3 -0
  509. package/lib/unstable-services.lazy/instance_v2alpha1.js +3 -0
  510. package/lib/unstable-services.lazy/instance_volume_v2alpha1.js +3 -0
  511. package/lib/unstable-services.lazy/interlink_v1beta1.js +3 -0
  512. package/lib/unstable-services.lazy/kafka_v1alpha1.js +3 -0
  513. package/lib/unstable-services.lazy/key_manager_v1alpha1.js +3 -0
  514. package/lib/unstable-services.lazy/mailbox_v1alpha1.js +3 -0
  515. package/lib/unstable-services.lazy/messageq_v1alpha1.js +3 -0
  516. package/lib/unstable-services.lazy/mnq_console_v1beta1.js +1 -0
  517. package/lib/unstable-services.lazy/mnq_nats_v1beta1.js +1 -0
  518. package/lib/unstable-services.lazy/mnq_sns_v1beta1.js +1 -0
  519. package/lib/unstable-services.lazy/mnq_sqs_v1beta1.js +1 -0
  520. package/lib/unstable-services.lazy/mongodb_v1alpha1.js +3 -0
  521. package/lib/unstable-services.lazy/product_catalog_public_catalog_v2alpha1.js +1 -0
  522. package/lib/unstable-services.lazy/qaas_v1alpha1.js +3 -0
  523. package/lib/unstable-services.lazy/s2s_vpn_v1alpha1.js +3 -0
  524. package/lib/unstable-services.lazy/search_v1alpha1.js +1 -0
  525. package/lib/unstable-services.lazy/searchdb_v1alpha1.js +3 -0
  526. package/lib/unstable-services.lazy/secret_manager_v1beta1.js +3 -0
  527. package/lib/unstable-services.lazy/serverless_jobs_v1alpha1.js +3 -0
  528. package/lib/unstable-services.lazy/serverless_jobs_v1alpha2.js +3 -0
  529. package/lib/unstable-services.lazy/serverless_sqldb_v1alpha1.js +1 -0
  530. package/lib/unstable-services.lazy/transactional_email_v1alpha1.js +3 -0
  531. package/package.json +89 -2
  532. package/src/credentials.ts +104 -0
  533. package/src/errors.ts +307 -0
  534. package/src/index.ts +52 -0
  535. package/src/pagination.ts +65 -0
  536. package/src/protocol.ts +496 -0
  537. package/src/retry.ts +47 -0
  538. package/src/services/account_contract_v3.ts +441 -0
  539. package/src/services/account_iso_code_v3.ts +165 -0
  540. package/src/services/account_organization_v3.ts +946 -0
  541. package/src/services/account_project_v3.ts +530 -0
  542. package/src/services/account_unauthenticated_user_v3.ts +1445 -0
  543. package/src/services/account_unauthenticated_v3.ts +92 -0
  544. package/src/services/account_user_v3.ts +1657 -0
  545. package/src/services/annotations_v1.ts +897 -0
  546. package/src/services/baremetal_private_network_v1.ts +327 -0
  547. package/src/services/baremetal_private_network_v3.ts +376 -0
  548. package/src/services/baremetal_v1.ts +3072 -0
  549. package/src/services/billing_electronic_billing_v2.ts +323 -0
  550. package/src/services/billing_v2.ts +662 -0
  551. package/src/services/block_v1.ts +1282 -0
  552. package/src/services/cockpit_global_v1.ts +282 -0
  553. package/src/services/cockpit_regional_v1.ts +2177 -0
  554. package/src/services/containers_v1.ts +2110 -0
  555. package/src/services/dedibox_billing_v1.ts +621 -0
  556. package/src/services/dedibox_ipv6_block_v1.ts +468 -0
  557. package/src/services/dedibox_rpn_san_v1.ts +1185 -0
  558. package/src/services/dedibox_rpn_v1.ts +207 -0
  559. package/src/services/dedibox_rpn_v1_v1.ts +1763 -0
  560. package/src/services/dedibox_rpn_v2_v1.ts +1654 -0
  561. package/src/services/dedibox_v1.ts +3765 -0
  562. package/src/services/generative_apis_openai_v1.ts +1692 -0
  563. package/src/services/generative_apis_v1.ts +251 -0
  564. package/src/services/index.ts +57 -0
  565. package/src/services/inference_v1.ts +1353 -0
  566. package/src/services/instance_v1.ts +6611 -0
  567. package/src/services/iot_v1.ts +2419 -0
  568. package/src/services/ipam_v1.ts +716 -0
  569. package/src/services/k8s_v1.ts +3108 -0
  570. package/src/services/lb_zoned_v1.ts +4533 -0
  571. package/src/services/marketplace_console_v2.ts +198 -0
  572. package/src/services/marketplace_v2.ts +625 -0
  573. package/src/services/mongodb_v1.ts +2104 -0
  574. package/src/services/partner_v1.ts +462 -0
  575. package/src/services/rdb_encryption_v1.ts +83 -0
  576. package/src/services/rdb_v1.ts +4211 -0
  577. package/src/services/redis_v1.ts +1918 -0
  578. package/src/services/registry_v1.ts +863 -0
  579. package/src/services/reseller_v1.ts +258 -0
  580. package/src/services/vpc_gw_v2.ts +2130 -0
  581. package/src/services/vpc_private_network_with_nics_v2.ts +311 -0
  582. package/src/services/vpc_routes_with_nexthop_v2.ts +226 -0
  583. package/src/services/vpc_v2.ts +2533 -0
  584. package/src/services/webhosting_backup_v1.ts +578 -0
  585. package/src/services/webhosting_control_panel_v1.ts +130 -0
  586. package/src/services/webhosting_database_v1.ts +682 -0
  587. package/src/services/webhosting_dedibox_v1.ts +480 -0
  588. package/src/services/webhosting_dns_v1.ts +471 -0
  589. package/src/services/webhosting_free_domain_v1.ts +190 -0
  590. package/src/services/webhosting_ftp_account_v1.ts +280 -0
  591. package/src/services/webhosting_hosting_v1.ts +1309 -0
  592. package/src/services/webhosting_mail_account_v1.ts +291 -0
  593. package/src/services/webhosting_offer_v1.ts +289 -0
  594. package/src/services/webhosting_website_v1.ts +274 -0
  595. package/src/traits.ts +63 -0
  596. package/src/unstable-services/apple_silicon_private_network_v1alpha1.ts +395 -0
  597. package/src/unstable-services/apple_silicon_v1alpha1.ts +1685 -0
  598. package/src/unstable-services/audit_trail_v1alpha1.ts +3220 -0
  599. package/src/unstable-services/autoscaling_v1alpha2.ts +1103 -0
  600. package/src/unstable-services/billing_fin_ops_v2beta1.ts +195 -0
  601. package/src/unstable-services/billing_v2beta1.ts +1203 -0
  602. package/src/unstable-services/block_v1alpha1.ts +1239 -0
  603. package/src/unstable-services/data_orchestrator_v1alpha2.ts +1230 -0
  604. package/src/unstable-services/datalab_v1beta1.ts +852 -0
  605. package/src/unstable-services/dataviz_v1alpha1.ts +1478 -0
  606. package/src/unstable-services/datawarehouse_v1beta1.ts +1504 -0
  607. package/src/unstable-services/domain_registrar_v2beta1.ts +2979 -0
  608. package/src/unstable-services/domain_suggestion_v2beta1.ts +86 -0
  609. package/src/unstable-services/domain_v2beta1.ts +1794 -0
  610. package/src/unstable-services/edge_services_v1beta1.ts +3724 -0
  611. package/src/unstable-services/environmental_footprint_user_v1alpha1.ts +429 -0
  612. package/src/unstable-services/file_v1alpha1.ts +1016 -0
  613. package/src/unstable-services/flexible_ip_v1alpha1.ts +804 -0
  614. package/src/unstable-services/functions_v1beta1.ts +2410 -0
  615. package/src/unstable-services/iam_unauthenticated_v1alpha1.ts +863 -0
  616. package/src/unstable-services/iam_v1alpha1.ts +4919 -0
  617. package/src/unstable-services/index.ts +44 -0
  618. package/src/unstable-services/instance_v2alpha1.ts +5377 -0
  619. package/src/unstable-services/instance_volume_v2alpha1.ts +1111 -0
  620. package/src/unstable-services/interlink_v1beta1.ts +1791 -0
  621. package/src/unstable-services/kafka_v1alpha1.ts +1275 -0
  622. package/src/unstable-services/key_manager_v1alpha1.ts +1618 -0
  623. package/src/unstable-services/mailbox_v1alpha1.ts +1561 -0
  624. package/src/unstable-services/messageq_v1alpha1.ts +1266 -0
  625. package/src/unstable-services/mnq_console_v1beta1.ts +111 -0
  626. package/src/unstable-services/mnq_nats_v1beta1.ts +608 -0
  627. package/src/unstable-services/mnq_sns_v1beta1.ts +523 -0
  628. package/src/unstable-services/mnq_sqs_v1beta1.ts +523 -0
  629. package/src/unstable-services/mongodb_v1alpha1.ts +1789 -0
  630. package/src/unstable-services/product_catalog_public_catalog_v2alpha1.ts +1109 -0
  631. package/src/unstable-services/qaas_v1alpha1.ts +2404 -0
  632. package/src/unstable-services/s2s_vpn_v1alpha1.ts +2173 -0
  633. package/src/unstable-services/search_v1alpha1.ts +349 -0
  634. package/src/unstable-services/searchdb_v1alpha1.ts +1273 -0
  635. package/src/unstable-services/secret_manager_v1beta1.ts +1255 -0
  636. package/src/unstable-services/serverless_jobs_v1alpha1.ts +1017 -0
  637. package/src/unstable-services/serverless_jobs_v1alpha2.ts +1516 -0
  638. package/src/unstable-services/serverless_sqldb_v1alpha1.ts +747 -0
  639. package/src/unstable-services/transactional_email_v1alpha1.ts +2495 -0
@@ -0,0 +1,1516 @@
1
+ import * as API from "@distilled.cloud/core/api";
2
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-scaleway). Do not edit.
3
+ import * as S from "@distilled.cloud/core/schema-lite";
4
+ import * as __L from "@distilled.cloud/core/schema-lite";
5
+ import { ScalewayServiceErrors } from "../errors.ts";
6
+ import { paginateByTotalCount } from "../pagination.ts";
7
+ import { ScalewayProtocol, type ScalewayOpError, type ScalewayOpContext } from "../protocol.ts";
8
+ import * as Retry from "../retry.ts";
9
+ import * as T from "../traits.ts";
10
+ // Schema table, filled on first reach (see __S at the end).
11
+ const __s: any[] = [];
12
+
13
+ export type { ScalewayOpError, ScalewayOpContext };
14
+
15
+ /** Span facts shared by every operation (com.distilled.telemetry#service). */
16
+ const TELEMETRY = {
17
+ system: "scaleway-api",
18
+ responseHeaders: [
19
+ { header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
20
+ { header: "request-id", name: "http.response.header.request-id", transform: "list" },
21
+ ],
22
+ prefix: "Scaleway",
23
+ service: "ServerlessJobsV1alpha2",
24
+ labels: "scaleway",
25
+ propagate: "w3c",
26
+ } as const;
27
+
28
+ export type CreateJobDefinitionRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
29
+ /** Job startup command. Overrides the default defined in the job image. The main executable or entrypoint script to run. If both command and startup_command are provided, only startup_command will be used. */
30
+ export type CreateJobDefinitionRequestStartupCommandList = Array<string>;
31
+ /** Job arguments. Overrides the default arguments defined in the job image. Passed to the startup command at runtime. Environment variables and secrets can be included, and will be expanded before the arguments are used. */
32
+ export type CreateJobDefinitionRequestArgsList = Array<string>;
33
+ /** Environment variables of the job. */
34
+ export type CreateJobDefinitionRequestEnvironmentVariablesMap = {
35
+ [key: string]: string | undefined;
36
+ };
37
+ export interface CreateJobDefinitionRequestCronScheduleConfig {
38
+ schedule?: string | undefined;
39
+ timezone?: string | undefined;
40
+ }
41
+ export interface RetryPolicy {
42
+ /** Maximum number of retries upon a job failure. */
43
+ max_retries: number;
44
+ }
45
+ export interface CreateJobDefinitionRequest {
46
+ /** The region you want to target */
47
+ region?: CreateJobDefinitionRequestRegion | (string & {}) | undefined;
48
+ /** Name of the job definition. */
49
+ name: string;
50
+ /** CPU limit of the job (in mvCPU). */
51
+ cpu_limit: number;
52
+ /** Memory limit of the job (in MiB). */
53
+ memory_limit: number;
54
+ /** Local storage capacity of the job (in MiB). */
55
+ local_storage_capacity: number;
56
+ /** Image to use for the job. */
57
+ image_uri: string;
58
+ /** Startup command. If empty or not defined, the image's default command is used. Deprecated: please use startup_command instead. */
59
+ command?: string | undefined;
60
+ /** Job startup command. Overrides the default defined in the job image. The main executable or entrypoint script to run. If both command and startup_command are provided, only startup_command will be used. */
61
+ startup_command?: CreateJobDefinitionRequestStartupCommandList | undefined;
62
+ /** Job arguments. Overrides the default arguments defined in the job image. Passed to the startup command at runtime. Environment variables and secrets can be included, and will be expanded before the arguments are used. */
63
+ args?: CreateJobDefinitionRequestArgsList | undefined;
64
+ /** UUID of the Scaleway Project containing the job. */
65
+ project_id: string;
66
+ /** Environment variables of the job. */
67
+ environment_variables?: CreateJobDefinitionRequestEnvironmentVariablesMap | undefined;
68
+ /** Description of the job. */
69
+ description?: string | undefined;
70
+ /** Timeout of the job in seconds. (in seconds) */
71
+ job_timeout?: string | null | undefined;
72
+ /** Configure a cron for the job. */
73
+ cron_schedule?: CreateJobDefinitionRequestCronScheduleConfig | undefined;
74
+ /** Retry policy upon a job failure. */
75
+ retry_policy?: RetryPolicy | undefined;
76
+ }
77
+ /** Environment variables of the job. */
78
+ export type JobDefinitionEnvironmentVariablesMap = { [key: string]: string | undefined };
79
+ export interface CronSchedule {
80
+ /** UNIX cron schedule to run job (e.g., '* * * * *'). */
81
+ schedule: string;
82
+ /** Timezone for the cron schedule, in tz database format (e.g., 'Europe/Paris'). */
83
+ timezone: string;
84
+ }
85
+ /** Job startup command. */
86
+ export type JobDefinitionStartupCommandList = Array<string>;
87
+ /** Job arguments passed to the startup command at runtime. */
88
+ export type JobDefinitionArgsList = Array<string>;
89
+ export interface JobDefinition {
90
+ /** UUID of the job definition. (UUID format) */
91
+ id?: string | undefined;
92
+ /** SRN of the job definition. */
93
+ srn?: string | undefined;
94
+ /** Name of the job definition. */
95
+ name?: string | undefined;
96
+ /** UUID of the Scaleway Project containing the job. (UUID format) */
97
+ project_id?: string | undefined;
98
+ /** Creation date of the job definition. (RFC 3339 format) */
99
+ created_at?: string | null | undefined;
100
+ /** Last update date of the job definition. (RFC 3339 format) */
101
+ updated_at?: string | null | undefined;
102
+ /** CPU limit of the job (in mvCPU). */
103
+ cpu_limit?: number | undefined;
104
+ /** Memory limit of the job (in MiB). */
105
+ memory_limit?: number | undefined;
106
+ /** Local storage capacity of the job (in MiB). */
107
+ local_storage_capacity?: number | undefined;
108
+ /** Image to use for the job. */
109
+ image_uri?: string | undefined;
110
+ /** Deprecated, please use startup_command instead. */
111
+ command?: string | undefined;
112
+ /** Environment variables of the job. */
113
+ environment_variables?: JobDefinitionEnvironmentVariablesMap | undefined;
114
+ /** Timeout of the job in seconds. (in seconds) */
115
+ job_timeout?: string | null | undefined;
116
+ /** Description of the job. */
117
+ description?: string | undefined;
118
+ /** Configure a cron for the job. */
119
+ cron_schedule?: CronSchedule | undefined;
120
+ /** Job startup command. */
121
+ startup_command?: JobDefinitionStartupCommandList | undefined;
122
+ /** Job arguments passed to the startup command at runtime. */
123
+ args?: JobDefinitionArgsList | undefined;
124
+ /** Retry behaviour in case of job failure. */
125
+ retry_policy?: RetryPolicy | undefined;
126
+ /** Region in which the job definition exists. */
127
+ region?: string | undefined;
128
+ }
129
+ export type CreateSecretsRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
130
+ /** List of secrets to inject into the job. */
131
+ export type CreateSecretsRequestSecretsList = Array<unknown>;
132
+ export interface CreateSecretsRequest {
133
+ /** The region you want to target */
134
+ region?: CreateSecretsRequestRegion | (string & {}) | undefined;
135
+ /** UUID of the job definition. */
136
+ job_definition_id: string;
137
+ /** List of secrets to inject into the job. */
138
+ secrets: CreateSecretsRequestSecretsList;
139
+ }
140
+ /** List of secrets created. */
141
+ export type CreateSecretsResponseSecretsList = Array<unknown>;
142
+ export interface CreateSecretsResponse {
143
+ /** List of secrets created. */
144
+ secrets?: CreateSecretsResponseSecretsList | undefined;
145
+ }
146
+ export type CreateTriggerRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
147
+ /** Startup command that will be used by the triggered job. */
148
+ export type CreateTriggerRequestCronConfigStartupCommandList = Array<string>;
149
+ /** Arguments passed to the startup command used by the triggered job. */
150
+ export type CreateTriggerRequestCronConfigArgsList = Array<string>;
151
+ export interface CreateTriggerRequestCronConfig {
152
+ /** CRON schedule in UNIX format. */
153
+ schedule: string;
154
+ /** Time zone for the CRON schedule. */
155
+ timezone: string;
156
+ /** Startup command that will be used by the triggered job. */
157
+ startup_command?: CreateTriggerRequestCronConfigStartupCommandList | undefined;
158
+ /** Arguments passed to the startup command used by the triggered job. */
159
+ args?: CreateTriggerRequestCronConfigArgsList | undefined;
160
+ }
161
+ export interface CreateTriggerRequest {
162
+ /** The region you want to target */
163
+ region?: CreateTriggerRequestRegion | (string & {}) | undefined;
164
+ /** UUID of the job definition. */
165
+ job_definition_id: string;
166
+ /** Name of the trigger. */
167
+ name: string;
168
+ /** Configuration of the CRON trigger. One of cron_config is required. */
169
+ cron_config?: CreateTriggerRequestCronConfig | null | undefined;
170
+ }
171
+ /** Startup command that will be used by the triggered job. */
172
+ export type TriggerCronConfigStartupCommandList = Array<string>;
173
+ /** Arguments passed to the startup command used by the triggered job. */
174
+ export type TriggerCronConfigArgsList = Array<string>;
175
+ export interface TriggerCronConfig {
176
+ /** CRON schedule in UNIX format. */
177
+ schedule?: string | undefined;
178
+ /** Time zone for the CRON schedule. */
179
+ timezone?: string | undefined;
180
+ /** Startup command that will be used by the triggered job. */
181
+ startup_command?: TriggerCronConfigStartupCommandList | undefined;
182
+ /** Arguments passed to the startup command used by the triggered job. */
183
+ args?: TriggerCronConfigArgsList | undefined;
184
+ }
185
+ export interface Trigger {
186
+ /** UUID of the trigger. (UUID format) */
187
+ id?: string | undefined;
188
+ /** SRN of the trigger. */
189
+ srn?: string | undefined;
190
+ /** UUID of the job definition. (UUID format) */
191
+ job_definition_id?: string | undefined;
192
+ /** Human readable name of the trigger. */
193
+ name?: string | undefined;
194
+ /** Creation time of the trigger. (RFC 3339 format) */
195
+ created_at?: string | null | undefined;
196
+ /** Last update time of the trigger. (RFC 3339 format) */
197
+ updated_at?: string | null | undefined;
198
+ /** Configuration of the CRON trigger. Precisely one of cron_config can be set. */
199
+ cron_config?: TriggerCronConfig | null | undefined;
200
+ /** Region in which the trigger exists. */
201
+ region?: string | undefined;
202
+ }
203
+ export type DeleteJobDefinitionRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
204
+ export interface DeleteJobDefinitionRequest {
205
+ /** The region you want to target */
206
+ region?: DeleteJobDefinitionRequestRegion | (string & {}) | undefined;
207
+ /** UUID of the job definition to delete. */
208
+ job_definition_id: string;
209
+ }
210
+ export interface DeleteJobDefinitionResponse {}
211
+ export type DeleteSecretRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
212
+ export interface DeleteSecretRequest {
213
+ /** The region you want to target */
214
+ region?: DeleteSecretRequestRegion | (string & {}) | undefined;
215
+ /** UUID of the secret reference within the job. */
216
+ secret_id: string;
217
+ }
218
+ export interface DeleteSecretResponse {}
219
+ export type DeleteTriggerRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
220
+ export interface DeleteTriggerRequest {
221
+ /** The region you want to target */
222
+ region?: DeleteTriggerRequestRegion | (string & {}) | undefined;
223
+ /** UUID of the trigger. */
224
+ trigger_id: string;
225
+ }
226
+ export interface DeleteTriggerResponse {}
227
+ export type GetJobDefinitionRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
228
+ export interface GetJobDefinitionRequest {
229
+ /** The region you want to target */
230
+ region?: GetJobDefinitionRequestRegion | (string & {}) | undefined;
231
+ /** UUID of the job definition to get. */
232
+ job_definition_id: string;
233
+ }
234
+ export type GetJobRunRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
235
+ export interface GetJobRunRequest {
236
+ /** The region you want to target */
237
+ region?: GetJobRunRequestRegion | (string & {}) | undefined;
238
+ /** UUID of the job run to get. */
239
+ job_run_id: string;
240
+ }
241
+ export type JobRunState =
242
+ | "unknown_state"
243
+ | "initialized"
244
+ | "validated"
245
+ | "queued"
246
+ | "running"
247
+ | "succeeded"
248
+ | "failed"
249
+ | "interrupting"
250
+ | "interrupted"
251
+ | "retrying";
252
+ export type JobRunReason =
253
+ | "unknown_reason"
254
+ | "invalid_request"
255
+ | "timeout"
256
+ | "cancellation"
257
+ | "technical_error"
258
+ | "image_not_found"
259
+ | "invalid_image"
260
+ | "memory_usage_exceeded"
261
+ | "storage_usage_exceeded"
262
+ | "exited_with_error"
263
+ | "secret_disabled"
264
+ | "secret_not_found"
265
+ | "quota_exceeded"
266
+ | "application_not_started";
267
+ /** Environment variables of the job run. */
268
+ export type JobRunEnvironmentVariablesMap = { [key: string]: string | undefined };
269
+ /** Job startup command. */
270
+ export type JobRunStartupCommandList = Array<string>;
271
+ /** Job arguments passed to the startup command at runtime. */
272
+ export type JobRunArgsList = Array<string>;
273
+ export interface JobRun {
274
+ /** UUID of the job run. (UUID format) */
275
+ id?: string | undefined;
276
+ /** SRN of the job run. */
277
+ srn?: string | undefined;
278
+ /** UUID of the job definition. (UUID format) */
279
+ job_definition_id?: string | undefined;
280
+ /** Creation date of the job run. (RFC 3339 format) */
281
+ created_at?: string | null | undefined;
282
+ /** Last update date of the job run. (RFC 3339 format) */
283
+ updated_at?: string | null | undefined;
284
+ /** Start date of the job run. (RFC 3339 format) */
285
+ started_at?: string | null | undefined;
286
+ /** Termination date of the job run. (RFC 3339 format) */
287
+ terminated_at?: string | null | undefined;
288
+ /** Duration of the job run. (in seconds) */
289
+ run_duration?: string | null | undefined;
290
+ /** State of the job run. */
291
+ state?: JobRunState | undefined;
292
+ /** Reason for failure if the job failed. */
293
+ reason?: JobRunReason | undefined;
294
+ /** Exit code of the job. */
295
+ exit_code?: number | null | undefined;
296
+ /** Error message if the job failed. */
297
+ error_message?: string | null | undefined;
298
+ /** CPU limit of the job (in mvCPU). */
299
+ cpu_limit?: number | undefined;
300
+ /** Memory limit of the job (in MiB). */
301
+ memory_limit?: number | undefined;
302
+ /** Local storage capacity of the job (in MiB). */
303
+ local_storage_capacity?: number | undefined;
304
+ /** Deprecated, please use startup_command instead. */
305
+ command?: string | undefined;
306
+ /** Environment variables of the job run. */
307
+ environment_variables?: JobRunEnvironmentVariablesMap | undefined;
308
+ /** Job startup command. */
309
+ startup_command?: JobRunStartupCommandList | undefined;
310
+ /** Job arguments passed to the startup command at runtime. */
311
+ args?: JobRunArgsList | undefined;
312
+ /** Number of run attempts. */
313
+ attempts?: number | null | undefined;
314
+ /** Region in which the job run exists. */
315
+ region?: string | undefined;
316
+ }
317
+ export type GetSecretRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
318
+ export interface GetSecretRequest {
319
+ /** The region you want to target */
320
+ region?: GetSecretRequestRegion | (string & {}) | undefined;
321
+ /** UUID of the secret reference within the job. */
322
+ secret_id: string;
323
+ }
324
+ export type GetTriggerRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
325
+ export interface GetTriggerRequest {
326
+ /** The region you want to target */
327
+ region?: GetTriggerRequestRegion | (string & {}) | undefined;
328
+ /** UUID of the trigger. */
329
+ trigger_id: string;
330
+ }
331
+ export type ListJobDefinitionsRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
332
+ export type ListJobDefinitionsRequestOrderBy = "created_at_asc" | "created_at_desc";
333
+ export interface ListJobDefinitionsRequest {
334
+ /** The region you want to target */
335
+ region?: ListJobDefinitionsRequestRegion | (string & {}) | undefined;
336
+ page?: number | undefined;
337
+ page_size?: number | undefined;
338
+ order_by?: ListJobDefinitionsRequestOrderBy | (string & {}) | undefined;
339
+ project_id?: string | undefined;
340
+ organization_id?: string | undefined;
341
+ }
342
+ export type ListJobDefinitionsResponseJobDefinitionsList = Array<JobDefinition>;
343
+ export interface ListJobDefinitionsResponse {
344
+ job_definitions: ListJobDefinitionsResponseJobDefinitionsList;
345
+ total_count?: number | undefined;
346
+ }
347
+ export type ListJobRunsRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
348
+ export type ListJobRunsRequestOrderBy = "created_at_asc" | "created_at_desc";
349
+ export type ListJobRunsRequestStatesList = Array<JobRunState | (string & {})>;
350
+ export type ListJobRunsRequestReasonsList = Array<JobRunReason | (string & {})>;
351
+ export interface ListJobRunsRequest {
352
+ /** The region you want to target */
353
+ region?: ListJobRunsRequestRegion | (string & {}) | undefined;
354
+ page?: number | undefined;
355
+ page_size?: number | undefined;
356
+ order_by?: ListJobRunsRequestOrderBy | (string & {}) | undefined;
357
+ job_definition_id?: string | undefined;
358
+ project_id?: string | undefined;
359
+ organization_id?: string | undefined;
360
+ state?: JobRunState | (string & {}) | undefined;
361
+ states?: ListJobRunsRequestStatesList | undefined;
362
+ reasons?: ListJobRunsRequestReasonsList | undefined;
363
+ }
364
+ export type ListJobRunsResponseJobRunsList = Array<JobRun>;
365
+ export interface ListJobRunsResponse {
366
+ job_runs: ListJobRunsResponseJobRunsList;
367
+ total_count?: number | undefined;
368
+ }
369
+ export type ListSecretsRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
370
+ export interface ListSecretsRequest {
371
+ /** The region you want to target */
372
+ region?: ListSecretsRequestRegion | (string & {}) | undefined;
373
+ /** UUID of the job definition. */
374
+ job_definition_id: string;
375
+ }
376
+ /** List of secret references within a job definition. */
377
+ export type ListSecretsResponseSecretsList = Array<unknown>;
378
+ export interface ListSecretsResponse {
379
+ /** List of secret references within a job definition. */
380
+ secrets?: ListSecretsResponseSecretsList | undefined;
381
+ /** Total count of secret references within a job definition. */
382
+ total_count?: number | undefined;
383
+ }
384
+ export type ListTriggersRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
385
+ export type ListTriggersRequestOrderBy = "created_at_asc" | "created_at_desc";
386
+ export interface ListTriggersRequest {
387
+ /** The region you want to target */
388
+ region?: ListTriggersRequestRegion | (string & {}) | undefined;
389
+ /** UUID of the job definition. */
390
+ job_definition_id: string;
391
+ /** Page number from paginated list of triggers. */
392
+ page?: number | undefined;
393
+ /** Number of triggers per page. */
394
+ page_size?: number | undefined;
395
+ /** Sorting order of triggers. */
396
+ order_by?: ListTriggersRequestOrderBy | (string & {}) | undefined;
397
+ }
398
+ /** List of triggers. */
399
+ export type ListTriggersResponseTriggersList = Array<Trigger>;
400
+ export interface ListTriggersResponse {
401
+ /** List of triggers. */
402
+ triggers: ListTriggersResponseTriggersList;
403
+ /** Total count of triggers. */
404
+ total_count?: number | undefined;
405
+ }
406
+ export type StartJobDefinitionRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
407
+ /** Contextual startup command for this specific job run. Overrides the default defined in the job image. The main executable or entrypoint script to run. If both command and startup_command are provided, only startup_command will be used. */
408
+ export type StartJobDefinitionRequestStartupCommandList = Array<unknown>;
409
+ /** Contextual arguments for this specific job run. Overrides the default arguments defined in the job image. Passed to the contextual startup command at runtime. Environment variables and secrets can be included, and will be expanded before the arguments are used. */
410
+ export type StartJobDefinitionRequestArgsList = Array<unknown>;
411
+ /** Contextual environment variables for this specific job run. */
412
+ export type StartJobDefinitionRequestEnvironmentVariablesMap = {
413
+ [key: string]: string | undefined;
414
+ };
415
+ export interface StartJobDefinitionRequest {
416
+ /** The region you want to target */
417
+ region?: StartJobDefinitionRequestRegion | (string & {}) | undefined;
418
+ /** UUID of the job definition to start. */
419
+ job_definition_id: string;
420
+ /** Contextual startup command for this specific job run. If empty or not defined, the image's default command is used. Deprecated: please use startup_command instead. */
421
+ command?: string | null | undefined;
422
+ /** Contextual startup command for this specific job run. Overrides the default defined in the job image. The main executable or entrypoint script to run. If both command and startup_command are provided, only startup_command will be used. */
423
+ startup_command?: StartJobDefinitionRequestStartupCommandList | null | undefined;
424
+ /** Contextual arguments for this specific job run. Overrides the default arguments defined in the job image. Passed to the contextual startup command at runtime. Environment variables and secrets can be included, and will be expanded before the arguments are used. */
425
+ args?: StartJobDefinitionRequestArgsList | null | undefined;
426
+ /** Contextual environment variables for this specific job run. */
427
+ environment_variables?: StartJobDefinitionRequestEnvironmentVariablesMap | null | undefined;
428
+ /** Number of jobs to run. */
429
+ replicas?: number | null | undefined;
430
+ }
431
+ /** List of started job runs. */
432
+ export type StartJobDefinitionResponseJobRunsList = Array<JobRun>;
433
+ export interface StartJobDefinitionResponse {
434
+ /** List of started job runs. */
435
+ job_runs: StartJobDefinitionResponseJobRunsList;
436
+ }
437
+ export type StopJobRunRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
438
+ export interface StopJobRunRequest {
439
+ /** The region you want to target */
440
+ region?: StopJobRunRequestRegion | (string & {}) | undefined;
441
+ /** UUID of the job run to stop. */
442
+ job_run_id: string;
443
+ }
444
+ export type UpdateJobDefinitionRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
445
+ /** Job startup command. Overrides the default defined in the job image. The main executable or entrypoint script to run. If both command and startup_command are provided, only startup_command will be used. */
446
+ export type UpdateJobDefinitionRequestStartupCommandList = Array<unknown>;
447
+ /** Job arguments. Overrides the default arguments defined in the job image. Passed to the startup command at runtime. Environment variables and secrets can be included, and will be expanded before the arguments are used. */
448
+ export type UpdateJobDefinitionRequestArgsList = Array<unknown>;
449
+ /** Environment variables of the job. */
450
+ export type UpdateJobDefinitionRequestEnvironmentVariablesMap = {
451
+ [key: string]: string | undefined;
452
+ };
453
+ export interface UpdateJobDefinitionRequestCronScheduleConfig {
454
+ schedule?: string | null | undefined;
455
+ timezone?: string | null | undefined;
456
+ }
457
+ export interface UpdateJobDefinitionRequestUpdateRetryPolicy {
458
+ max_retries?: number | null | undefined;
459
+ }
460
+ export interface UpdateJobDefinitionRequest {
461
+ /** The region you want to target */
462
+ region?: UpdateJobDefinitionRequestRegion | (string & {}) | undefined;
463
+ /** UUID of the job definition to update. */
464
+ job_definition_id: string;
465
+ /** Name of the job definition. */
466
+ name?: string | null | undefined;
467
+ /** CPU limit of the job (in mvCPU). */
468
+ cpu_limit?: number | null | undefined;
469
+ /** Memory limit of the job (in MiB). */
470
+ memory_limit?: number | null | undefined;
471
+ /** Local storage capacity of the job (in MiB). */
472
+ local_storage_capacity?: number | null | undefined;
473
+ /** Image to use for the job. */
474
+ image_uri?: string | null | undefined;
475
+ /** Startup command. If empty or not defined, the image's default command is used. Deprecated: please use startup_command instead. */
476
+ command?: string | null | undefined;
477
+ /** Job startup command. Overrides the default defined in the job image. The main executable or entrypoint script to run. If both command and startup_command are provided, only startup_command will be used. */
478
+ startup_command?: UpdateJobDefinitionRequestStartupCommandList | null | undefined;
479
+ /** Job arguments. Overrides the default arguments defined in the job image. Passed to the startup command at runtime. Environment variables and secrets can be included, and will be expanded before the arguments are used. */
480
+ args?: UpdateJobDefinitionRequestArgsList | null | undefined;
481
+ /** Environment variables of the job. */
482
+ environment_variables?: UpdateJobDefinitionRequestEnvironmentVariablesMap | null | undefined;
483
+ /** Description of the job. */
484
+ description?: string | null | undefined;
485
+ /** Timeout of the job in seconds. (in seconds) */
486
+ job_timeout?: string | null | undefined;
487
+ /** Configure a cron for the job. */
488
+ cron_schedule?: UpdateJobDefinitionRequestCronScheduleConfig | undefined;
489
+ /** Retry policy upon a job failure. */
490
+ retry_policy?: UpdateJobDefinitionRequestUpdateRetryPolicy | undefined;
491
+ }
492
+ export type UpdateSecretRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
493
+ export interface UpdateSecretRequest {
494
+ /** The region you want to target */
495
+ region?: UpdateSecretRequestRegion | (string & {}) | undefined;
496
+ /** UUID of the secret reference within the job. */
497
+ secret_id: string;
498
+ /** Version of the secret in Secret Manager. */
499
+ secret_manager_version?: string | null | undefined;
500
+ /** Path of the secret to mount inside the job (either `path` or `env_var_name` must be set). Precisely one of path, env_var_name can be set. */
501
+ path?: string | null | undefined;
502
+ /** Environment variable name used to expose the secret inside the job (either `path` or `env_var_name` must be set). Precisely one of path, env_var_name can be set. */
503
+ env_var_name?: string | null | undefined;
504
+ }
505
+ export type UpdateTriggerRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
506
+ /** Startup command that will be used by the triggered job. */
507
+ export type UpdateTriggerRequestCronConfigStartupCommandList = Array<unknown>;
508
+ /** Arguments passed to the startup command used by the triggered job. */
509
+ export type UpdateTriggerRequestCronConfigArgsList = Array<unknown>;
510
+ export interface UpdateTriggerRequestCronConfig {
511
+ /** CRON schedule in UNIX format. */
512
+ schedule?: string | null | undefined;
513
+ /** Time zone for the CRON schedule. */
514
+ timezone?: string | null | undefined;
515
+ /** Startup command that will be used by the triggered job. */
516
+ startup_command?: UpdateTriggerRequestCronConfigStartupCommandList | null | undefined;
517
+ /** Arguments passed to the startup command used by the triggered job. */
518
+ args?: UpdateTriggerRequestCronConfigArgsList | null | undefined;
519
+ }
520
+ export interface UpdateTriggerRequest {
521
+ /** The region you want to target */
522
+ region?: UpdateTriggerRequestRegion | (string & {}) | undefined;
523
+ /** UUID of the trigger. */
524
+ trigger_id: string;
525
+ /** Name of the trigger. */
526
+ name?: string | null | undefined;
527
+ /** Configuration of the CRON trigger. Precisely one of cron_config can be set. */
528
+ cron_config?: UpdateTriggerRequestCronConfig | null | undefined;
529
+ }
530
+ export type CreateJobDefinitionError = ScalewayOpError;
531
+ /** Create a new job definition in a specified Project */
532
+ export const createJobDefinition: API.OperationMethod<
533
+ CreateJobDefinitionRequest,
534
+ JobDefinition,
535
+ CreateJobDefinitionError,
536
+ ScalewayOpContext
537
+ > = /*@__PURE__*/ API.make(() => ({
538
+ input: __S(1, __c0, 1) as any as S.Schema<CreateJobDefinitionRequest>,
539
+ output: __S(10, __c2, 2) as any as S.Schema<JobDefinition>,
540
+ errors: [],
541
+ serviceErrors: ScalewayServiceErrors,
542
+ protocol: ScalewayProtocol,
543
+ retry: Retry.Retry,
544
+ telemetry: TELEMETRY,
545
+ span: "CreateJobDefinition",
546
+ }));
547
+
548
+ export type CreateSecretsError = ScalewayOpError;
549
+ /** Create a secret reference within a job definition */
550
+ export const createSecrets: API.OperationMethod<
551
+ CreateSecretsRequest,
552
+ CreateSecretsResponse,
553
+ CreateSecretsError,
554
+ ScalewayOpContext
555
+ > = /*@__PURE__*/ API.make(() => ({
556
+ input: __S(16, __c4, 0) as any as S.Schema<CreateSecretsRequest>,
557
+ output: __S(17, __c4, 1) as any as S.Schema<CreateSecretsResponse>,
558
+ errors: [],
559
+ serviceErrors: ScalewayServiceErrors,
560
+ protocol: ScalewayProtocol,
561
+ retry: Retry.Retry,
562
+ telemetry: TELEMETRY,
563
+ span: "CreateSecrets",
564
+ }));
565
+
566
+ export type CreateTriggerError = ScalewayOpError;
567
+ /** Create a trigger */
568
+ export const createTrigger: API.OperationMethod<
569
+ CreateTriggerRequest,
570
+ Trigger,
571
+ CreateTriggerError,
572
+ ScalewayOpContext
573
+ > = /*@__PURE__*/ API.make(() => ({
574
+ input: __S(65, __c16, 1) as any as S.Schema<CreateTriggerRequest>,
575
+ output: __S(69, __c17, 1) as any as S.Schema<Trigger>,
576
+ errors: [],
577
+ serviceErrors: ScalewayServiceErrors,
578
+ protocol: ScalewayProtocol,
579
+ retry: Retry.Retry,
580
+ telemetry: TELEMETRY,
581
+ span: "CreateTrigger",
582
+ }));
583
+
584
+ export type DeleteJobDefinitionError = ScalewayOpError;
585
+ /** Delete an existing job definition by its unique identifier */
586
+ export const deleteJobDefinition: API.OperationMethod<
587
+ DeleteJobDefinitionRequest,
588
+ DeleteJobDefinitionResponse,
589
+ DeleteJobDefinitionError,
590
+ ScalewayOpContext
591
+ > = /*@__PURE__*/ API.make(() => ({
592
+ input: __S(72, __c18, 0) as any as S.Schema<DeleteJobDefinitionRequest>,
593
+ output: __S(76, __c19, 0) as any as S.Schema<DeleteJobDefinitionResponse>,
594
+ errors: [],
595
+ serviceErrors: ScalewayServiceErrors,
596
+ protocol: ScalewayProtocol,
597
+ retry: Retry.Retry,
598
+ telemetry: TELEMETRY,
599
+ span: "DeleteJobDefinition",
600
+ }));
601
+
602
+ export type DeleteSecretError = ScalewayOpError;
603
+ /** Delete a secret reference within a job definition */
604
+ export const deleteSecret: API.OperationMethod<
605
+ DeleteSecretRequest,
606
+ DeleteSecretResponse,
607
+ DeleteSecretError,
608
+ ScalewayOpContext
609
+ > = /*@__PURE__*/ API.make(() => ({
610
+ input: __S(80, __c20, 0) as any as S.Schema<DeleteSecretRequest>,
611
+ output: __S(76, __c19, 0) as any as S.Schema<DeleteSecretResponse>,
612
+ errors: [],
613
+ serviceErrors: ScalewayServiceErrors,
614
+ protocol: ScalewayProtocol,
615
+ retry: Retry.Retry,
616
+ telemetry: TELEMETRY,
617
+ span: "DeleteSecret",
618
+ }));
619
+
620
+ export type DeleteTriggerError = ScalewayOpError;
621
+ /** Delete a trigger */
622
+ export const deleteTrigger: API.OperationMethod<
623
+ DeleteTriggerRequest,
624
+ DeleteTriggerResponse,
625
+ DeleteTriggerError,
626
+ ScalewayOpContext
627
+ > = /*@__PURE__*/ API.make(() => ({
628
+ input: __S(84, __c21, 0) as any as S.Schema<DeleteTriggerRequest>,
629
+ output: __S(76, __c19, 0) as any as S.Schema<DeleteTriggerResponse>,
630
+ errors: [],
631
+ serviceErrors: ScalewayServiceErrors,
632
+ protocol: ScalewayProtocol,
633
+ retry: Retry.Retry,
634
+ telemetry: TELEMETRY,
635
+ span: "DeleteTrigger",
636
+ }));
637
+
638
+ export type GetJobDefinitionError = ScalewayOpError;
639
+ /** Get a job definition by its unique identifier */
640
+ export const getJobDefinition: API.OperationMethod<
641
+ GetJobDefinitionRequest,
642
+ JobDefinition,
643
+ GetJobDefinitionError,
644
+ ScalewayOpContext
645
+ > = /*@__PURE__*/ API.make(() => ({
646
+ input: __S(88, __c22, 0) as any as S.Schema<GetJobDefinitionRequest>,
647
+ output: __S(10, __c2, 2) as any as S.Schema<JobDefinition>,
648
+ errors: [],
649
+ serviceErrors: ScalewayServiceErrors,
650
+ protocol: ScalewayProtocol,
651
+ retry: Retry.Retry,
652
+ telemetry: TELEMETRY,
653
+ span: "GetJobDefinition",
654
+ }));
655
+
656
+ export type GetJobRunError = ScalewayOpError;
657
+ /** Get a job run by its unique identifier */
658
+ export const getJobRun: API.OperationMethod<
659
+ GetJobRunRequest,
660
+ JobRun,
661
+ GetJobRunError,
662
+ ScalewayOpContext
663
+ > = /*@__PURE__*/ API.make(() => ({
664
+ input: __S(92, __c23, 0) as any as S.Schema<GetJobRunRequest>,
665
+ output: __S(96, __c24, 0) as any as S.Schema<JobRun>,
666
+ errors: [],
667
+ serviceErrors: ScalewayServiceErrors,
668
+ protocol: ScalewayProtocol,
669
+ retry: Retry.Retry,
670
+ telemetry: TELEMETRY,
671
+ span: "GetJobRun",
672
+ }));
673
+
674
+ export type GetSecretError = ScalewayOpError;
675
+ /** Get a secret references within a job definition */
676
+ export const getSecret: API.OperationMethod<
677
+ GetSecretRequest,
678
+ unknown,
679
+ GetSecretError,
680
+ ScalewayOpContext
681
+ > = /*@__PURE__*/ API.make(() => ({
682
+ input: __S(100, __c25, 0) as any as S.Schema<GetSecretRequest>,
683
+ output: S.Unknown,
684
+ errors: [],
685
+ serviceErrors: ScalewayServiceErrors,
686
+ protocol: ScalewayProtocol,
687
+ retry: Retry.Retry,
688
+ telemetry: TELEMETRY,
689
+ span: "GetSecret",
690
+ }));
691
+
692
+ export type GetTriggerError = ScalewayOpError;
693
+ /** Get a trigger */
694
+ export const getTrigger: API.OperationMethod<
695
+ GetTriggerRequest,
696
+ Trigger,
697
+ GetTriggerError,
698
+ ScalewayOpContext
699
+ > = /*@__PURE__*/ API.make(() => ({
700
+ input: __S(104, __c26, 0) as any as S.Schema<GetTriggerRequest>,
701
+ output: __S(69, __c17, 1) as any as S.Schema<Trigger>,
702
+ errors: [],
703
+ serviceErrors: ScalewayServiceErrors,
704
+ protocol: ScalewayProtocol,
705
+ retry: Retry.Retry,
706
+ telemetry: TELEMETRY,
707
+ span: "GetTrigger",
708
+ }));
709
+
710
+ export type ListJobDefinitionsError = ScalewayOpError;
711
+ /** List all your job definitions with filters */
712
+ export const listJobDefinitions: API.PaginatedOperationMethod<
713
+ ListJobDefinitionsRequest,
714
+ ListJobDefinitionsResponse,
715
+ ListJobDefinitionsError,
716
+ ScalewayOpContext,
717
+ JobDefinition
718
+ > = /*@__PURE__*/ API.makePaginated(
719
+ () => ({
720
+ input: __S(24, __c6, 0) as any as S.Schema<ListJobDefinitionsRequest>,
721
+ output: __S(26, __c6, 2) as any as S.Schema<ListJobDefinitionsResponse>,
722
+ errors: [],
723
+ serviceErrors: ScalewayServiceErrors,
724
+ protocol: ScalewayProtocol,
725
+ retry: Retry.Retry,
726
+ telemetry: TELEMETRY,
727
+ span: "ListJobDefinitions",
728
+ pagination: {
729
+ mode: "page",
730
+ inputToken: "page",
731
+ outputToken: "total_count",
732
+ items: "job_definitions",
733
+ pageSize: "page_size",
734
+ } as const,
735
+ }),
736
+ paginateByTotalCount,
737
+ ) as any;
738
+
739
+ export type ListJobRunsError = ScalewayOpError;
740
+ /** List all job runs with filters */
741
+ export const listJobRuns: API.PaginatedOperationMethod<
742
+ ListJobRunsRequest,
743
+ ListJobRunsResponse,
744
+ ListJobRunsError,
745
+ ScalewayOpContext,
746
+ JobRun
747
+ > = /*@__PURE__*/ API.makePaginated(
748
+ () => ({
749
+ input: __S(29, __c7, 1) as any as S.Schema<ListJobRunsRequest>,
750
+ output: __S(30, __c7, 2) as any as S.Schema<ListJobRunsResponse>,
751
+ errors: [],
752
+ serviceErrors: ScalewayServiceErrors,
753
+ protocol: ScalewayProtocol,
754
+ retry: Retry.Retry,
755
+ telemetry: TELEMETRY,
756
+ span: "ListJobRuns",
757
+ pagination: {
758
+ mode: "page",
759
+ inputToken: "page",
760
+ outputToken: "total_count",
761
+ items: "job_runs",
762
+ pageSize: "page_size",
763
+ } as const,
764
+ }),
765
+ paginateByTotalCount,
766
+ ) as any;
767
+
768
+ export type ListSecretsError = ScalewayOpError;
769
+ /** List secrets references within a job definition */
770
+ export const listSecrets: API.OperationMethod<
771
+ ListSecretsRequest,
772
+ ListSecretsResponse,
773
+ ListSecretsError,
774
+ ScalewayOpContext
775
+ > = /*@__PURE__*/ API.make(() => ({
776
+ input: __S(36, __c9, 0) as any as S.Schema<ListSecretsRequest>,
777
+ output: __S(37, __c9, 1) as any as S.Schema<ListSecretsResponse>,
778
+ errors: [],
779
+ serviceErrors: ScalewayServiceErrors,
780
+ protocol: ScalewayProtocol,
781
+ retry: Retry.Retry,
782
+ telemetry: TELEMETRY,
783
+ span: "ListSecrets",
784
+ }));
785
+
786
+ export type ListTriggersError = ScalewayOpError;
787
+ /** List triggers of a job definition */
788
+ export const listTriggers: API.PaginatedOperationMethod<
789
+ ListTriggersRequest,
790
+ ListTriggersResponse,
791
+ ListTriggersError,
792
+ ScalewayOpContext,
793
+ Trigger
794
+ > = /*@__PURE__*/ API.makePaginated(
795
+ () => ({
796
+ input: __S(40, __c10, 0) as any as S.Schema<ListTriggersRequest>,
797
+ output: __S(42, __c10, 2) as any as S.Schema<ListTriggersResponse>,
798
+ errors: [],
799
+ serviceErrors: ScalewayServiceErrors,
800
+ protocol: ScalewayProtocol,
801
+ retry: Retry.Retry,
802
+ telemetry: TELEMETRY,
803
+ span: "ListTriggers",
804
+ pagination: {
805
+ mode: "page",
806
+ inputToken: "page",
807
+ outputToken: "total_count",
808
+ items: "triggers",
809
+ pageSize: "page_size",
810
+ } as const,
811
+ }),
812
+ paginateByTotalCount,
813
+ ) as any;
814
+
815
+ export type StartJobDefinitionError = ScalewayOpError;
816
+ /** Run an existing job definition using its unique identifier and create a new job run */
817
+ export const startJobDefinition: API.OperationMethod<
818
+ StartJobDefinitionRequest,
819
+ StartJobDefinitionResponse,
820
+ StartJobDefinitionError,
821
+ ScalewayOpContext
822
+ > = /*@__PURE__*/ API.make(() => ({
823
+ input: __S(44, __c11, 0) as any as S.Schema<StartJobDefinitionRequest>,
824
+ output: __S(45, __c11, 1) as any as S.Schema<StartJobDefinitionResponse>,
825
+ errors: [],
826
+ serviceErrors: ScalewayServiceErrors,
827
+ protocol: ScalewayProtocol,
828
+ retry: Retry.Retry,
829
+ telemetry: TELEMETRY,
830
+ span: "StartJobDefinition",
831
+ }));
832
+
833
+ export type StopJobRunError = ScalewayOpError;
834
+ /** Stop a job run using its unique identifier */
835
+ export const stopJobRun: API.OperationMethod<
836
+ StopJobRunRequest,
837
+ JobRun,
838
+ StopJobRunError,
839
+ ScalewayOpContext
840
+ > = /*@__PURE__*/ API.make(() => ({
841
+ input: __S(48, __c12, 0) as any as S.Schema<StopJobRunRequest>,
842
+ output: __S(96, __c24, 0) as any as S.Schema<JobRun>,
843
+ errors: [],
844
+ serviceErrors: ScalewayServiceErrors,
845
+ protocol: ScalewayProtocol,
846
+ retry: Retry.Retry,
847
+ telemetry: TELEMETRY,
848
+ span: "StopJobRun",
849
+ }));
850
+
851
+ export type UpdateJobDefinitionError = ScalewayOpError;
852
+ /** Update an existing job definition associated with the specified unique identifier */
853
+ export const updateJobDefinition: API.OperationMethod<
854
+ UpdateJobDefinitionRequest,
855
+ JobDefinition,
856
+ UpdateJobDefinitionError,
857
+ ScalewayOpContext
858
+ > = /*@__PURE__*/ API.make(() => ({
859
+ input: __S(54, __c13, 2) as any as S.Schema<UpdateJobDefinitionRequest>,
860
+ output: __S(10, __c2, 2) as any as S.Schema<JobDefinition>,
861
+ errors: [],
862
+ serviceErrors: ScalewayServiceErrors,
863
+ protocol: ScalewayProtocol,
864
+ retry: Retry.Retry,
865
+ telemetry: TELEMETRY,
866
+ span: "UpdateJobDefinition",
867
+ }));
868
+
869
+ export type UpdateSecretError = ScalewayOpError;
870
+ /** Update a secret reference within a job definition */
871
+ export const updateSecret: API.OperationMethod<
872
+ UpdateSecretRequest,
873
+ unknown,
874
+ UpdateSecretError,
875
+ ScalewayOpContext
876
+ > = /*@__PURE__*/ API.make(() => ({
877
+ input: __S(56, __c14, 0) as any as S.Schema<UpdateSecretRequest>,
878
+ output: S.Unknown,
879
+ errors: [],
880
+ serviceErrors: ScalewayServiceErrors,
881
+ protocol: ScalewayProtocol,
882
+ retry: Retry.Retry,
883
+ telemetry: TELEMETRY,
884
+ span: "UpdateSecret",
885
+ }));
886
+
887
+ export type UpdateTriggerError = ScalewayOpError;
888
+ /** Update a trigger */
889
+ export const updateTrigger: API.OperationMethod<
890
+ UpdateTriggerRequest,
891
+ Trigger,
892
+ UpdateTriggerError,
893
+ ScalewayOpContext
894
+ > = /*@__PURE__*/ API.make(() => ({
895
+ input: __S(61, __c15, 1) as any as S.Schema<UpdateTriggerRequest>,
896
+ output: __S(69, __c17, 1) as any as S.Schema<Trigger>,
897
+ errors: [],
898
+ serviceErrors: ScalewayServiceErrors,
899
+ protocol: ScalewayProtocol,
900
+ retry: Retry.Retry,
901
+ telemetry: TELEMETRY,
902
+ span: "UpdateTrigger",
903
+ }));
904
+
905
+ // Schema builders: each runs one schema initializer, on that schema's first use.
906
+ function __c0(j: number): any {
907
+ switch (j) {
908
+ case 0:
909
+ return S.suspend(() =>
910
+ S.Struct({
911
+ schedule: S.optional(S.String),
912
+ timezone: S.optional(S.String),
913
+ }),
914
+ ).annotate({ identifier: "CreateJobDefinitionRequestCronScheduleConfig" });
915
+ case 1:
916
+ return S.suspend(() =>
917
+ S.Struct({
918
+ region: S.optional(S.String.pipe(T.Label())),
919
+ name: S.String,
920
+ cpu_limit: S.Number,
921
+ memory_limit: S.Number,
922
+ local_storage_capacity: S.Number,
923
+ image_uri: S.String,
924
+ command: S.optional(S.String),
925
+ startup_command: S.optional(__S(4, __c1, 0)),
926
+ args: S.optional(__S(4, __c1, 0)),
927
+ project_id: S.String,
928
+ environment_variables: S.optional(__S(12, __c3, 0)),
929
+ description: S.optional(S.String),
930
+ job_timeout: S.optional(S.NullOr(S.String)),
931
+ cron_schedule: S.optional(__S(0, __c0, 0)),
932
+ retry_policy: S.optional(__S(8, __c2, 0)),
933
+ }).pipe(
934
+ T.Http({
935
+ method: "POST",
936
+ uri: "/serverless-jobs/v1alpha2/regions/{region}/job-definitions",
937
+ code: 200,
938
+ baseUrl: "https://api.scaleway.com",
939
+ }),
940
+ ),
941
+ ).annotate({ identifier: "CreateJobDefinitionRequest" });
942
+ }
943
+ }
944
+ function __c1(j: number): any {
945
+ switch (j) {
946
+ case 0:
947
+ return S.Array(S.String);
948
+ }
949
+ }
950
+ function __c2(j: number): any {
951
+ switch (j) {
952
+ case 0:
953
+ return S.suspend(() =>
954
+ S.Struct({
955
+ max_retries: S.Number,
956
+ }),
957
+ ).annotate({ identifier: "RetryPolicy" });
958
+ case 1:
959
+ return S.suspend(() =>
960
+ S.Struct({
961
+ schedule: S.String,
962
+ timezone: S.String,
963
+ }),
964
+ ).annotate({ identifier: "CronSchedule" });
965
+ case 2:
966
+ return S.suspend(() =>
967
+ S.Struct({
968
+ id: S.optional(S.String),
969
+ srn: S.optional(S.String),
970
+ name: S.optional(S.String),
971
+ project_id: S.optional(S.String),
972
+ created_at: S.optional(S.NullOr(S.String)),
973
+ updated_at: S.optional(S.NullOr(S.String)),
974
+ cpu_limit: S.optional(S.Number),
975
+ memory_limit: S.optional(S.Number),
976
+ local_storage_capacity: S.optional(S.Number),
977
+ image_uri: S.optional(S.String),
978
+ command: S.optional(S.String),
979
+ environment_variables: S.optional(__S(12, __c3, 0)),
980
+ job_timeout: S.optional(S.NullOr(S.String)),
981
+ description: S.optional(S.String),
982
+ cron_schedule: S.optional(__S(9, __c2, 1)),
983
+ startup_command: S.optional(__S(4, __c1, 0)),
984
+ args: S.optional(__S(4, __c1, 0)),
985
+ retry_policy: S.optional(__S(8, __c2, 0)),
986
+ region: S.optional(S.String),
987
+ }),
988
+ ).annotate({ identifier: "JobDefinition" });
989
+ }
990
+ }
991
+ function __c3(j: number): any {
992
+ switch (j) {
993
+ case 0:
994
+ return S.Record(S.String, S.String);
995
+ }
996
+ }
997
+ function __c4(j: number): any {
998
+ switch (j) {
999
+ case 0:
1000
+ return S.suspend(() =>
1001
+ S.Struct({
1002
+ region: S.optional(S.String.pipe(T.Label())),
1003
+ job_definition_id: S.String,
1004
+ secrets: __S(20, __c5, 0),
1005
+ }).pipe(
1006
+ T.Http({
1007
+ method: "POST",
1008
+ uri: "/serverless-jobs/v1alpha2/regions/{region}/secrets",
1009
+ code: 200,
1010
+ baseUrl: "https://api.scaleway.com",
1011
+ }),
1012
+ ),
1013
+ ).annotate({ identifier: "CreateSecretsRequest" });
1014
+ case 1:
1015
+ return S.suspend(() =>
1016
+ S.Struct({
1017
+ secrets: S.optional(__S(20, __c5, 0)),
1018
+ }),
1019
+ ).annotate({ identifier: "CreateSecretsResponse" });
1020
+ }
1021
+ }
1022
+ function __c5(j: number): any {
1023
+ switch (j) {
1024
+ case 0:
1025
+ return S.Array(S.Unknown);
1026
+ }
1027
+ }
1028
+ function __c6(j: number): any {
1029
+ switch (j) {
1030
+ case 0:
1031
+ return S.suspend(() =>
1032
+ S.Struct({
1033
+ region: S.optional(S.String.pipe(T.Label())),
1034
+ page: S.optional(S.Number.pipe(T.Query())),
1035
+ page_size: S.optional(S.Number.pipe(T.Query())),
1036
+ order_by: S.optional(S.String.pipe(T.Query())),
1037
+ project_id: S.optional(S.String.pipe(T.Query())),
1038
+ organization_id: S.optional(S.String.pipe(T.Query())),
1039
+ }).pipe(
1040
+ T.Http({
1041
+ method: "GET",
1042
+ uri: "/serverless-jobs/v1alpha2/regions/{region}/job-definitions",
1043
+ code: 200,
1044
+ baseUrl: "https://api.scaleway.com",
1045
+ }),
1046
+ ),
1047
+ ).annotate({ identifier: "ListJobDefinitionsRequest" });
1048
+ case 1:
1049
+ return S.Array(__S(10, __c2, 2));
1050
+ case 2:
1051
+ return S.suspend(() =>
1052
+ S.Struct({
1053
+ job_definitions: __S(25, __c6, 1),
1054
+ total_count: S.optional(S.Number),
1055
+ }),
1056
+ ).annotate({ identifier: "ListJobDefinitionsResponse" });
1057
+ }
1058
+ }
1059
+ function __c7(j: number): any {
1060
+ switch (j) {
1061
+ case 0:
1062
+ return S.Array(S.String);
1063
+ case 1:
1064
+ return S.suspend(() =>
1065
+ S.Struct({
1066
+ region: S.optional(S.String.pipe(T.Label())),
1067
+ page: S.optional(S.Number.pipe(T.Query())),
1068
+ page_size: S.optional(S.Number.pipe(T.Query())),
1069
+ order_by: S.optional(S.String.pipe(T.Query())),
1070
+ job_definition_id: S.optional(S.String.pipe(T.Query())),
1071
+ project_id: S.optional(S.String.pipe(T.Query())),
1072
+ organization_id: S.optional(S.String.pipe(T.Query())),
1073
+ state: S.optional(S.String.pipe(T.Query())),
1074
+ states: S.optional(__S(28, __c7, 0).pipe(T.Query())),
1075
+ reasons: S.optional(__S(28, __c7, 0).pipe(T.Query())),
1076
+ }).pipe(
1077
+ T.Http({
1078
+ method: "GET",
1079
+ uri: "/serverless-jobs/v1alpha2/regions/{region}/job-runs",
1080
+ code: 200,
1081
+ baseUrl: "https://api.scaleway.com",
1082
+ }),
1083
+ ),
1084
+ ).annotate({ identifier: "ListJobRunsRequest" });
1085
+ case 2:
1086
+ return S.suspend(() =>
1087
+ S.Struct({
1088
+ job_runs: __S(32, __c8, 0),
1089
+ total_count: S.optional(S.Number),
1090
+ }),
1091
+ ).annotate({ identifier: "ListJobRunsResponse" });
1092
+ }
1093
+ }
1094
+ function __c8(j: number): any {
1095
+ switch (j) {
1096
+ case 0:
1097
+ return S.Array(__S(96, __c24, 0));
1098
+ }
1099
+ }
1100
+ function __c9(j: number): any {
1101
+ switch (j) {
1102
+ case 0:
1103
+ return S.suspend(() =>
1104
+ S.Struct({
1105
+ region: S.optional(S.String.pipe(T.Label())),
1106
+ job_definition_id: S.String.pipe(T.Query()),
1107
+ }).pipe(
1108
+ T.Http({
1109
+ method: "GET",
1110
+ uri: "/serverless-jobs/v1alpha2/regions/{region}/secrets",
1111
+ code: 200,
1112
+ baseUrl: "https://api.scaleway.com",
1113
+ }),
1114
+ ),
1115
+ ).annotate({ identifier: "ListSecretsRequest" });
1116
+ case 1:
1117
+ return S.suspend(() =>
1118
+ S.Struct({
1119
+ secrets: S.optional(__S(20, __c5, 0)),
1120
+ total_count: S.optional(S.Number),
1121
+ }),
1122
+ ).annotate({ identifier: "ListSecretsResponse" });
1123
+ }
1124
+ }
1125
+ function __c10(j: number): any {
1126
+ switch (j) {
1127
+ case 0:
1128
+ return S.suspend(() =>
1129
+ S.Struct({
1130
+ region: S.optional(S.String.pipe(T.Label())),
1131
+ job_definition_id: S.String.pipe(T.Query()),
1132
+ page: S.optional(S.Number.pipe(T.Query())),
1133
+ page_size: S.optional(S.Number.pipe(T.Query())),
1134
+ order_by: S.optional(S.String.pipe(T.Query())),
1135
+ }).pipe(
1136
+ T.Http({
1137
+ method: "GET",
1138
+ uri: "/serverless-jobs/v1alpha2/regions/{region}/triggers",
1139
+ code: 200,
1140
+ baseUrl: "https://api.scaleway.com",
1141
+ }),
1142
+ ),
1143
+ ).annotate({ identifier: "ListTriggersRequest" });
1144
+ case 1:
1145
+ return S.Array(__S(69, __c17, 1));
1146
+ case 2:
1147
+ return S.suspend(() =>
1148
+ S.Struct({
1149
+ triggers: __S(41, __c10, 1),
1150
+ total_count: S.optional(S.Number),
1151
+ }),
1152
+ ).annotate({ identifier: "ListTriggersResponse" });
1153
+ }
1154
+ }
1155
+ function __c11(j: number): any {
1156
+ switch (j) {
1157
+ case 0:
1158
+ return S.suspend(() =>
1159
+ S.Struct({
1160
+ region: S.optional(S.String.pipe(T.Label())),
1161
+ job_definition_id: S.String.pipe(T.Label()),
1162
+ command: S.optional(S.NullOr(S.String)),
1163
+ startup_command: S.optional(S.NullOr(__S(20, __c5, 0))),
1164
+ args: S.optional(S.NullOr(__S(20, __c5, 0))),
1165
+ environment_variables: S.optional(S.NullOr(__S(12, __c3, 0))),
1166
+ replicas: S.optional(S.NullOr(S.Number)),
1167
+ }).pipe(
1168
+ T.Http({
1169
+ method: "POST",
1170
+ uri: "/serverless-jobs/v1alpha2/regions/{region}/job-definitions/{job_definition_id}/start",
1171
+ code: 200,
1172
+ baseUrl: "https://api.scaleway.com",
1173
+ }),
1174
+ ),
1175
+ ).annotate({ identifier: "StartJobDefinitionRequest" });
1176
+ case 1:
1177
+ return S.suspend(() =>
1178
+ S.Struct({
1179
+ job_runs: __S(32, __c8, 0),
1180
+ }),
1181
+ ).annotate({ identifier: "StartJobDefinitionResponse" });
1182
+ }
1183
+ }
1184
+ function __c12(j: number): any {
1185
+ switch (j) {
1186
+ case 0:
1187
+ return S.suspend(() =>
1188
+ S.Struct({
1189
+ region: S.optional(S.String.pipe(T.Label())),
1190
+ job_run_id: S.String.pipe(T.Label()),
1191
+ }).pipe(
1192
+ T.Http({
1193
+ method: "POST",
1194
+ uri: "/serverless-jobs/v1alpha2/regions/{region}/job-runs/{job_run_id}/stop",
1195
+ code: 200,
1196
+ baseUrl: "https://api.scaleway.com",
1197
+ }),
1198
+ ),
1199
+ ).annotate({ identifier: "StopJobRunRequest" });
1200
+ }
1201
+ }
1202
+ function __c13(j: number): any {
1203
+ switch (j) {
1204
+ case 0:
1205
+ return S.suspend(() =>
1206
+ S.Struct({
1207
+ schedule: S.optional(S.NullOr(S.String)),
1208
+ timezone: S.optional(S.NullOr(S.String)),
1209
+ }),
1210
+ ).annotate({ identifier: "UpdateJobDefinitionRequestCronScheduleConfig" });
1211
+ case 1:
1212
+ return S.suspend(() =>
1213
+ S.Struct({
1214
+ max_retries: S.optional(S.NullOr(S.Number)),
1215
+ }),
1216
+ ).annotate({ identifier: "UpdateJobDefinitionRequestUpdateRetryPolicy" });
1217
+ case 2:
1218
+ return S.suspend(() =>
1219
+ S.Struct({
1220
+ region: S.optional(S.String.pipe(T.Label())),
1221
+ job_definition_id: S.String.pipe(T.Label()),
1222
+ name: S.optional(S.NullOr(S.String)),
1223
+ cpu_limit: S.optional(S.NullOr(S.Number)),
1224
+ memory_limit: S.optional(S.NullOr(S.Number)),
1225
+ local_storage_capacity: S.optional(S.NullOr(S.Number)),
1226
+ image_uri: S.optional(S.NullOr(S.String)),
1227
+ command: S.optional(S.NullOr(S.String)),
1228
+ startup_command: S.optional(S.NullOr(__S(20, __c5, 0))),
1229
+ args: S.optional(S.NullOr(__S(20, __c5, 0))),
1230
+ environment_variables: S.optional(S.NullOr(__S(12, __c3, 0))),
1231
+ description: S.optional(S.NullOr(S.String)),
1232
+ job_timeout: S.optional(S.NullOr(S.String)),
1233
+ cron_schedule: S.optional(__S(52, __c13, 0)),
1234
+ retry_policy: S.optional(__S(53, __c13, 1)),
1235
+ }).pipe(
1236
+ T.Http({
1237
+ method: "PATCH",
1238
+ uri: "/serverless-jobs/v1alpha2/regions/{region}/job-definitions/{job_definition_id}",
1239
+ code: 200,
1240
+ baseUrl: "https://api.scaleway.com",
1241
+ }),
1242
+ ),
1243
+ ).annotate({ identifier: "UpdateJobDefinitionRequest" });
1244
+ }
1245
+ }
1246
+ function __c14(j: number): any {
1247
+ switch (j) {
1248
+ case 0:
1249
+ return S.suspend(() =>
1250
+ S.Struct({
1251
+ region: S.optional(S.String.pipe(T.Label())),
1252
+ secret_id: S.String.pipe(T.Label()),
1253
+ secret_manager_version: S.optional(S.NullOr(S.String)),
1254
+ path: S.optional(S.NullOr(S.String)),
1255
+ env_var_name: S.optional(S.NullOr(S.String)),
1256
+ }).pipe(
1257
+ T.Http({
1258
+ method: "PATCH",
1259
+ uri: "/serverless-jobs/v1alpha2/regions/{region}/secrets/{secret_id}",
1260
+ code: 200,
1261
+ baseUrl: "https://api.scaleway.com",
1262
+ }),
1263
+ ),
1264
+ ).annotate({ identifier: "UpdateSecretRequest" });
1265
+ }
1266
+ }
1267
+ function __c15(j: number): any {
1268
+ switch (j) {
1269
+ case 0:
1270
+ return S.suspend(() =>
1271
+ S.Struct({
1272
+ schedule: S.optional(S.NullOr(S.String)),
1273
+ timezone: S.optional(S.NullOr(S.String)),
1274
+ startup_command: S.optional(S.NullOr(__S(20, __c5, 0))),
1275
+ args: S.optional(S.NullOr(__S(20, __c5, 0))),
1276
+ }),
1277
+ ).annotate({ identifier: "UpdateTriggerRequestCronConfig" });
1278
+ case 1:
1279
+ return S.suspend(() =>
1280
+ S.Struct({
1281
+ region: S.optional(S.String.pipe(T.Label())),
1282
+ trigger_id: S.String.pipe(T.Label()),
1283
+ name: S.optional(S.NullOr(S.String)),
1284
+ cron_config: S.optional(S.NullOr(__S(60, __c15, 0))),
1285
+ }).pipe(
1286
+ T.Http({
1287
+ method: "PATCH",
1288
+ uri: "/serverless-jobs/v1alpha2/regions/{region}/triggers/{trigger_id}",
1289
+ code: 200,
1290
+ baseUrl: "https://api.scaleway.com",
1291
+ }),
1292
+ ),
1293
+ ).annotate({ identifier: "UpdateTriggerRequest" });
1294
+ }
1295
+ }
1296
+ function __c16(j: number): any {
1297
+ switch (j) {
1298
+ case 0:
1299
+ return S.suspend(() =>
1300
+ S.Struct({
1301
+ schedule: S.String,
1302
+ timezone: S.String,
1303
+ startup_command: S.optional(__S(4, __c1, 0)),
1304
+ args: S.optional(__S(4, __c1, 0)),
1305
+ }),
1306
+ ).annotate({ identifier: "CreateTriggerRequestCronConfig" });
1307
+ case 1:
1308
+ return S.suspend(() =>
1309
+ S.Struct({
1310
+ region: S.optional(S.String.pipe(T.Label())),
1311
+ job_definition_id: S.String,
1312
+ name: S.String,
1313
+ cron_config: S.optional(S.NullOr(__S(64, __c16, 0))),
1314
+ }).pipe(
1315
+ T.Http({
1316
+ method: "POST",
1317
+ uri: "/serverless-jobs/v1alpha2/regions/{region}/triggers",
1318
+ code: 200,
1319
+ baseUrl: "https://api.scaleway.com",
1320
+ }),
1321
+ ),
1322
+ ).annotate({ identifier: "CreateTriggerRequest" });
1323
+ }
1324
+ }
1325
+ function __c17(j: number): any {
1326
+ switch (j) {
1327
+ case 0:
1328
+ return S.suspend(() =>
1329
+ S.Struct({
1330
+ schedule: S.optional(S.String),
1331
+ timezone: S.optional(S.String),
1332
+ startup_command: S.optional(__S(4, __c1, 0)),
1333
+ args: S.optional(__S(4, __c1, 0)),
1334
+ }),
1335
+ ).annotate({ identifier: "TriggerCronConfig" });
1336
+ case 1:
1337
+ return S.suspend(() =>
1338
+ S.Struct({
1339
+ id: S.optional(S.String),
1340
+ srn: S.optional(S.String),
1341
+ job_definition_id: S.optional(S.String),
1342
+ name: S.optional(S.String),
1343
+ created_at: S.optional(S.NullOr(S.String)),
1344
+ updated_at: S.optional(S.NullOr(S.String)),
1345
+ cron_config: S.optional(S.NullOr(__S(68, __c17, 0))),
1346
+ region: S.optional(S.String),
1347
+ }),
1348
+ ).annotate({ identifier: "Trigger" });
1349
+ }
1350
+ }
1351
+ function __c18(j: number): any {
1352
+ switch (j) {
1353
+ case 0:
1354
+ return S.suspend(() =>
1355
+ S.Struct({
1356
+ region: S.optional(S.String.pipe(T.Label())),
1357
+ job_definition_id: S.String.pipe(T.Label()),
1358
+ }).pipe(
1359
+ T.Http({
1360
+ method: "DELETE",
1361
+ uri: "/serverless-jobs/v1alpha2/regions/{region}/job-definitions/{job_definition_id}",
1362
+ code: 200,
1363
+ baseUrl: "https://api.scaleway.com",
1364
+ }),
1365
+ ),
1366
+ ).annotate({ identifier: "DeleteJobDefinitionRequest" });
1367
+ }
1368
+ }
1369
+ function __c19(j: number): any {
1370
+ switch (j) {
1371
+ case 0:
1372
+ return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteJobDefinitionResponse" });
1373
+ }
1374
+ }
1375
+ function __c20(j: number): any {
1376
+ switch (j) {
1377
+ case 0:
1378
+ return S.suspend(() =>
1379
+ S.Struct({
1380
+ region: S.optional(S.String.pipe(T.Label())),
1381
+ secret_id: S.String.pipe(T.Label()),
1382
+ }).pipe(
1383
+ T.Http({
1384
+ method: "DELETE",
1385
+ uri: "/serverless-jobs/v1alpha2/regions/{region}/secrets/{secret_id}",
1386
+ code: 200,
1387
+ baseUrl: "https://api.scaleway.com",
1388
+ }),
1389
+ ),
1390
+ ).annotate({ identifier: "DeleteSecretRequest" });
1391
+ }
1392
+ }
1393
+ function __c21(j: number): any {
1394
+ switch (j) {
1395
+ case 0:
1396
+ return S.suspend(() =>
1397
+ S.Struct({
1398
+ region: S.optional(S.String.pipe(T.Label())),
1399
+ trigger_id: S.String.pipe(T.Label()),
1400
+ }).pipe(
1401
+ T.Http({
1402
+ method: "DELETE",
1403
+ uri: "/serverless-jobs/v1alpha2/regions/{region}/triggers/{trigger_id}",
1404
+ code: 200,
1405
+ baseUrl: "https://api.scaleway.com",
1406
+ }),
1407
+ ),
1408
+ ).annotate({ identifier: "DeleteTriggerRequest" });
1409
+ }
1410
+ }
1411
+ function __c22(j: number): any {
1412
+ switch (j) {
1413
+ case 0:
1414
+ return S.suspend(() =>
1415
+ S.Struct({
1416
+ region: S.optional(S.String.pipe(T.Label())),
1417
+ job_definition_id: S.String.pipe(T.Label()),
1418
+ }).pipe(
1419
+ T.Http({
1420
+ method: "GET",
1421
+ uri: "/serverless-jobs/v1alpha2/regions/{region}/job-definitions/{job_definition_id}",
1422
+ code: 200,
1423
+ baseUrl: "https://api.scaleway.com",
1424
+ }),
1425
+ ),
1426
+ ).annotate({ identifier: "GetJobDefinitionRequest" });
1427
+ }
1428
+ }
1429
+ function __c23(j: number): any {
1430
+ switch (j) {
1431
+ case 0:
1432
+ return S.suspend(() =>
1433
+ S.Struct({
1434
+ region: S.optional(S.String.pipe(T.Label())),
1435
+ job_run_id: S.String.pipe(T.Label()),
1436
+ }).pipe(
1437
+ T.Http({
1438
+ method: "GET",
1439
+ uri: "/serverless-jobs/v1alpha2/regions/{region}/job-runs/{job_run_id}",
1440
+ code: 200,
1441
+ baseUrl: "https://api.scaleway.com",
1442
+ }),
1443
+ ),
1444
+ ).annotate({ identifier: "GetJobRunRequest" });
1445
+ }
1446
+ }
1447
+ function __c24(j: number): any {
1448
+ switch (j) {
1449
+ case 0:
1450
+ return S.suspend(() =>
1451
+ S.Struct({
1452
+ id: S.optional(S.String),
1453
+ srn: S.optional(S.String),
1454
+ job_definition_id: S.optional(S.String),
1455
+ created_at: S.optional(S.NullOr(S.String)),
1456
+ updated_at: S.optional(S.NullOr(S.String)),
1457
+ started_at: S.optional(S.NullOr(S.String)),
1458
+ terminated_at: S.optional(S.NullOr(S.String)),
1459
+ run_duration: S.optional(S.NullOr(S.String)),
1460
+ state: S.optional(S.String),
1461
+ reason: S.optional(S.String),
1462
+ exit_code: S.optional(S.NullOr(S.Number)),
1463
+ error_message: S.optional(S.NullOr(S.String)),
1464
+ cpu_limit: S.optional(S.Number),
1465
+ memory_limit: S.optional(S.Number),
1466
+ local_storage_capacity: S.optional(S.Number),
1467
+ command: S.optional(S.String),
1468
+ environment_variables: S.optional(__S(12, __c3, 0)),
1469
+ startup_command: S.optional(__S(4, __c1, 0)),
1470
+ args: S.optional(__S(4, __c1, 0)),
1471
+ attempts: S.optional(S.NullOr(S.Number)),
1472
+ region: S.optional(S.String),
1473
+ }),
1474
+ ).annotate({ identifier: "JobRun" });
1475
+ }
1476
+ }
1477
+ function __c25(j: number): any {
1478
+ switch (j) {
1479
+ case 0:
1480
+ return S.suspend(() =>
1481
+ S.Struct({
1482
+ region: S.optional(S.String.pipe(T.Label())),
1483
+ secret_id: S.String.pipe(T.Label()),
1484
+ }).pipe(
1485
+ T.Http({
1486
+ method: "GET",
1487
+ uri: "/serverless-jobs/v1alpha2/regions/{region}/secrets/{secret_id}",
1488
+ code: 200,
1489
+ baseUrl: "https://api.scaleway.com",
1490
+ }),
1491
+ ),
1492
+ ).annotate({ identifier: "GetSecretRequest" });
1493
+ }
1494
+ }
1495
+ function __c26(j: number): any {
1496
+ switch (j) {
1497
+ case 0:
1498
+ return S.suspend(() =>
1499
+ S.Struct({
1500
+ region: S.optional(S.String.pipe(T.Label())),
1501
+ trigger_id: S.String.pipe(T.Label()),
1502
+ }).pipe(
1503
+ T.Http({
1504
+ method: "GET",
1505
+ uri: "/serverless-jobs/v1alpha2/regions/{region}/triggers/{trigger_id}",
1506
+ code: 200,
1507
+ baseUrl: "https://api.scaleway.com",
1508
+ }),
1509
+ ),
1510
+ ).annotate({ identifier: "GetTriggerRequest" });
1511
+ }
1512
+ }
1513
+ // Schema table: entry i is schema j of builder f, made on first reach.
1514
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
1515
+ return (__s[i] ??= __L.at(f, j));
1516
+ }