@distilled.cloud/scaleway 0.0.0-stage → 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 +175 -2
  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 +94 -3
  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,2404 @@
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: "QaasV1alpha1",
24
+ labels: "scaleway",
25
+ propagate: "w3c",
26
+ } as const;
27
+
28
+ export interface CancelJobRequest {
29
+ /** Unique ID of the job. */
30
+ job_id: string;
31
+ }
32
+ /** Tags of the job. */
33
+ export type JobTagsList = Array<unknown>;
34
+ export type JobStatus =
35
+ | "unknown_status"
36
+ | "waiting"
37
+ | "error"
38
+ | "running"
39
+ | "completed"
40
+ | "cancelling"
41
+ | "cancelled";
42
+ export interface Job {
43
+ /** Unique ID of the job. */
44
+ id?: string | undefined;
45
+ /** Job name. */
46
+ name?: string | undefined;
47
+ /** Tags of the job. */
48
+ tags?: JobTagsList | null | undefined;
49
+ /** Session ID in which the job is executed. */
50
+ session_id?: string | undefined;
51
+ /** Time at which the job was created. (RFC 3339 format) */
52
+ created_at?: string | null | undefined;
53
+ /** Time at which the job was started. (RFC 3339 format) */
54
+ started_at?: string | null | undefined;
55
+ /** Time at which the job was updated. (RFC 3339 format) */
56
+ updated_at?: string | null | undefined;
57
+ /** Job status. */
58
+ status?: JobStatus | undefined;
59
+ /** Last progress message, if the job has started. */
60
+ progress_message?: string | null | undefined;
61
+ /** Duration of the job, if the job is finished. (in seconds) */
62
+ job_duration?: string | null | undefined;
63
+ /** Result of the job, if the job is finished. */
64
+ result_distribution?: string | null | undefined;
65
+ /** Computation model ID executed by the job. */
66
+ model_id?: string | null | undefined;
67
+ /** Execution parameters for this job. */
68
+ parameters?: string | null | undefined;
69
+ /** SRN of the job. */
70
+ srn?: string | undefined;
71
+ }
72
+ export interface CancelProcessRequest {
73
+ /** Unique ID of the process. */
74
+ process_id: string;
75
+ }
76
+ /** List of sessions generated by the process. */
77
+ export type ProcessAttachedSessionIdsList = Array<string>;
78
+ export type ProcessStatus =
79
+ | "unknown_status"
80
+ | "error"
81
+ | "starting"
82
+ | "running"
83
+ | "completed"
84
+ | "cancelling"
85
+ | "cancelled";
86
+ /** Tags of the process. */
87
+ export type ProcessTagsList = Array<string>;
88
+ export interface Process {
89
+ /** Unique ID of the process. */
90
+ id?: string | undefined;
91
+ /** Name of the process. */
92
+ name?: string | undefined;
93
+ /** Application ID for which the process has been created. */
94
+ application_id?: string | null | undefined;
95
+ /** Platform ID for which the process has been created. */
96
+ platform_id?: string | null | undefined;
97
+ /** List of sessions generated by the process. */
98
+ attached_session_ids?: ProcessAttachedSessionIdsList | undefined;
99
+ /** Time at which the process was created. (RFC 3339 format) */
100
+ created_at?: string | null | undefined;
101
+ /** Time at which the process started. (RFC 3339 format) */
102
+ started_at?: string | null | undefined;
103
+ /** Time at which the process was updated. (RFC 3339 format) */
104
+ updated_at?: string | null | undefined;
105
+ /** Time at which the process was finished. (RFC 3339 format) */
106
+ finished_at?: string | null | undefined;
107
+ /** Status of the process. */
108
+ status?: ProcessStatus | undefined;
109
+ /** Project ID in which the process has been created. (UUID format) */
110
+ project_id?: string | undefined;
111
+ /** Tags of the process. */
112
+ tags?: ProcessTagsList | undefined;
113
+ /** Progress of the process, from 0 to 1. */
114
+ progress?: number | null | undefined;
115
+ /** Any progress of the process. */
116
+ progress_message?: string | null | undefined;
117
+ /** Input payload of the process as JSON string. */
118
+ input?: string | null | undefined;
119
+ /** SRN of the process. */
120
+ srn?: string | undefined;
121
+ }
122
+ /** Tags of the job. */
123
+ export type CreateJobRequestTagsList = Array<unknown>;
124
+ export interface JobCircuit {
125
+ /** Circuit generated by Perceval that should be executed. Precisely one of perceval_circuit, qiskit_circuit can be set. */
126
+ perceval_circuit?: string | null | undefined;
127
+ /** Circuit generated by Qiskit that should be executed. Precisely one of perceval_circuit, qiskit_circuit can be set. */
128
+ qiskit_circuit?: string | null | undefined;
129
+ }
130
+ export interface CreateJobRequest {
131
+ /** Name of the job. */
132
+ name: string;
133
+ /** Tags of the job. */
134
+ tags?: CreateJobRequestTagsList | null | undefined;
135
+ /** Session in which the job is executed. */
136
+ session_id: string;
137
+ /** Quantum circuit that should be executed. */
138
+ circuit: JobCircuit;
139
+ /** Maximum duration of the job. (in seconds) */
140
+ max_duration?: string | null | undefined;
141
+ /** Computation model ID to be executed by the job. */
142
+ model_id?: string | null | undefined;
143
+ /** Execution parameters for this job. */
144
+ parameters?: string | null | undefined;
145
+ }
146
+ export interface CreateModelRequest {
147
+ /** Project ID to attach this model. */
148
+ project_id?: string | undefined;
149
+ /** The serialized model data. */
150
+ payload?: string | null | undefined;
151
+ }
152
+ export interface Model {
153
+ /** Unique ID of the model. */
154
+ id?: string | undefined;
155
+ /** Time at which the model was created. (RFC 3339 format) */
156
+ created_at?: string | null | undefined;
157
+ /** Storage URL of the model. */
158
+ url?: string | null | undefined;
159
+ /** Project ID in which the model has been created. */
160
+ project_id?: string | undefined;
161
+ /** SRN of the model. */
162
+ srn?: string | undefined;
163
+ }
164
+ /** Tags of the process. */
165
+ export type CreateProcessRequestTagsList = Array<string>;
166
+ export interface CreateProcessRequest {
167
+ /** ID of the project in which the process was created. (UUID format) */
168
+ project_id: string;
169
+ /** ID of the platform for which the process was created. */
170
+ platform_id?: string | null | undefined;
171
+ /** ID of the application for which the process was created. */
172
+ application_id?: string | null | undefined;
173
+ /** Name of the process. */
174
+ name?: string | undefined;
175
+ /** Process parameters in JSON format. */
176
+ input?: string | null | undefined;
177
+ /** Tags of the process. */
178
+ tags?: CreateProcessRequestTagsList | undefined;
179
+ }
180
+ /** Tags of the session. */
181
+ export type CreateSessionRequestTagsList = Array<unknown>;
182
+ export interface CreateSessionRequestBookingDemand {
183
+ /** (RFC 3339 format) */
184
+ started_at?: string | null | undefined;
185
+ /** (RFC 3339 format) */
186
+ finished_at?: string | null | undefined;
187
+ description?: string | null | undefined;
188
+ time_zone?: string | null | undefined;
189
+ }
190
+ export interface CreateSessionRequest {
191
+ /** ID of the Project in which the session was created. (UUID format) */
192
+ project_id: string;
193
+ /** ID of the Platform for which the session was created. */
194
+ platform_id: string;
195
+ /** Name of the session. */
196
+ name?: string | null | undefined;
197
+ /** Maximum idle duration before the session ends. (in seconds) */
198
+ max_idle_duration?: string | null | undefined;
199
+ /** Maximum duration before the session ends. (in seconds) */
200
+ max_duration?: string | null | undefined;
201
+ /** Tags of the session. */
202
+ tags?: CreateSessionRequestTagsList | null | undefined;
203
+ /** Deduplication ID of the session. */
204
+ deduplication_id?: string | null | undefined;
205
+ /** A booking demand to schedule the session, only applicable if the platform is bookable. */
206
+ booking_demand?: CreateSessionRequestBookingDemand | undefined;
207
+ /** Default computation model ID to be executed by job assigned to this session. */
208
+ model_id?: string | null | undefined;
209
+ /** Optional platform configuration parameters applied to this session. */
210
+ parameters?: string | null | undefined;
211
+ }
212
+ export type SessionStatus = "unknown_status" | "running" | "stopped" | "starting" | "stopping";
213
+ /** Tags of the session. */
214
+ export type SessionTagsList = Array<unknown>;
215
+ export type SessionOriginType = "unknown_origin_type" | "customer" | "process";
216
+ export interface Session {
217
+ /** Unique ID of the session. */
218
+ id?: string | undefined;
219
+ /** Name of the session. */
220
+ name?: string | undefined;
221
+ /** Platform ID for which the session has been created. */
222
+ platform_id?: string | undefined;
223
+ /** The time at which the session was created. (RFC 3339 format) */
224
+ created_at?: string | null | undefined;
225
+ /** The time at which the session started. (RFC 3339 format) */
226
+ started_at?: string | null | undefined;
227
+ /** The time at which the session was updated. (RFC 3339 format) */
228
+ updated_at?: string | null | undefined;
229
+ /** The time at which the session was terminated. (RFC 3339 format) */
230
+ terminated_at?: string | null | undefined;
231
+ /** Maximum idle time before the session ends. (in seconds) */
232
+ max_idle_duration?: string | null | undefined;
233
+ /** Maximum duration before the session ends. (in seconds) */
234
+ max_duration?: string | null | undefined;
235
+ /** Number of waiting jobs linked to the session. */
236
+ waiting_job_count?: number | undefined;
237
+ /** Number of finished jobs linked to the session. */
238
+ finished_job_count?: number | undefined;
239
+ /** Status of the session. */
240
+ status?: SessionStatus | undefined;
241
+ /** Project ID in which the session has been created. */
242
+ project_id?: string | undefined;
243
+ /** Tags of the session. */
244
+ tags?: SessionTagsList | null | undefined;
245
+ /** Deduplication ID of the session. */
246
+ deduplication_id?: string | undefined;
247
+ /** Resource type that creates the session. */
248
+ origin_type?: SessionOriginType | undefined;
249
+ /** Unique ID of the session's origin resource (if exists). */
250
+ origin_id?: string | null | undefined;
251
+ /** Any progress of the session. */
252
+ progress_message?: string | null | undefined;
253
+ /** An optional booking unique ID of an attached booking. */
254
+ booking_id?: string | null | undefined;
255
+ /** Default computation model ID to be executed by job assigned to this session. */
256
+ model_id?: string | null | undefined;
257
+ /** Platform configuration parameters applied to this session. */
258
+ parameters?: string | null | undefined;
259
+ /** SRN of the session. */
260
+ srn?: string | undefined;
261
+ }
262
+ export interface DeleteJobRequest {
263
+ /** Unique ID of the job. */
264
+ job_id: string;
265
+ }
266
+ export interface DeleteJobResponse {}
267
+ export interface DeleteProcessRequest {
268
+ /** Unique ID of the process. */
269
+ process_id: string;
270
+ }
271
+ export interface DeleteProcessResponse {}
272
+ export interface DeleteSessionRequest {
273
+ /** Unique ID of the session. */
274
+ session_id: string;
275
+ }
276
+ export interface DeleteSessionResponse {}
277
+ export interface GetApplicationRequest {
278
+ /** Unique ID of the application. */
279
+ application_id: string;
280
+ }
281
+ export type ApplicationType = "unknown_type" | "vqe";
282
+ /** List of compatible platform (by IDs) able to run this application. */
283
+ export type ApplicationCompatiblePlatformIdsList = Array<string>;
284
+ export interface Application {
285
+ /** Unique ID of the application. */
286
+ id?: string | undefined;
287
+ /** Name of the application. */
288
+ name?: string | undefined;
289
+ /** Type of the application. */
290
+ type?: ApplicationType | undefined;
291
+ /** List of compatible platform (by IDs) able to run this application. */
292
+ compatible_platform_ids?: ApplicationCompatiblePlatformIdsList | undefined;
293
+ /** JSON format describing the expected input. */
294
+ input_template?: string | undefined;
295
+ /** SRN of the application. */
296
+ srn?: string | undefined;
297
+ }
298
+ export interface GetBookingRequest {
299
+ /** Unique ID of the booking. */
300
+ booking_id: string;
301
+ }
302
+ export type BookingStatus =
303
+ | "unknown_status"
304
+ | "waiting"
305
+ | "validating"
306
+ | "validated"
307
+ | "cancelling"
308
+ | "cancelled"
309
+ | "error";
310
+ export interface Booking {
311
+ /** Unique ID of the booking. */
312
+ id?: string | undefined;
313
+ /** Time at which the booking was created. (RFC 3339 format) */
314
+ created_at?: string | null | undefined;
315
+ /** Time at which the booking starts. (RFC 3339 format) */
316
+ started_at?: string | null | undefined;
317
+ /** Time at which the booking was updated. (RFC 3339 format) */
318
+ updated_at?: string | null | undefined;
319
+ /** Time at which the booking finishes. (RFC 3339 format) */
320
+ finished_at?: string | null | undefined;
321
+ /** Status of the booking. */
322
+ status?: BookingStatus | undefined;
323
+ /** Description of the booking slot. */
324
+ description?: string | undefined;
325
+ /** Any progress message of the booking. */
326
+ progress_message?: string | undefined;
327
+ /** Time zone for the booking schedule, in tz database format (e.g. 'Europe/Paris'). */
328
+ time_zone?: string | null | undefined;
329
+ /** SRN of the booking. */
330
+ srn?: string | undefined;
331
+ }
332
+ export interface GetJobRequest {
333
+ /** Unique ID of the job you want to get. */
334
+ job_id: string;
335
+ }
336
+ export interface GetJobCircuitRequest {
337
+ /** Unique ID of the job. */
338
+ job_id: string;
339
+ }
340
+ export interface GetModelRequest {
341
+ /** Unique ID of the model. */
342
+ model_id: string;
343
+ }
344
+ export interface GetPlatformRequest {
345
+ /** Unique ID of the platform. */
346
+ platform_id: string;
347
+ }
348
+ export type PlatformType = "unknown_type" | "simulator" | "qpu";
349
+ export type PlatformTechnology =
350
+ | "unknown_technology"
351
+ | "photonic"
352
+ | "general_purpose"
353
+ | "trapped_ion"
354
+ | "superconducting"
355
+ | "neutral_atom";
356
+ export type PlatformAvailability =
357
+ | "unknown_availability"
358
+ | "available"
359
+ | "shortage"
360
+ | "scarce"
361
+ | "maintenance";
362
+ export interface GoogleTypeMoney {
363
+ currency_code?: string | undefined;
364
+ units?: number | undefined;
365
+ nanos?: number | undefined;
366
+ }
367
+ export interface PlatformHardware {
368
+ /** Product name of the hardware. */
369
+ name?: string | undefined;
370
+ /** Number of vCPUs available. */
371
+ vcpus?: number | undefined;
372
+ /** Number of GPUs available (0 if no GPU). */
373
+ gpus?: number | undefined;
374
+ /** Network topology of GPUs (PCIe, NVLink...). */
375
+ gpus_network?: string | undefined;
376
+ /** Amount of RAM available in byte. */
377
+ ram?: number | undefined;
378
+ /** Amount of VRAM available in byte (0 if no GPU). */
379
+ vram?: number | undefined;
380
+ }
381
+ export interface PlatformBookingRequirement {
382
+ /** Minimal duration of any booking based on this platform. (in seconds) */
383
+ min_duration?: string | null | undefined;
384
+ /** Maximal duration of any bookings based on this platform. (in seconds) */
385
+ max_duration?: string | null | undefined;
386
+ /** Allowed time to cancel a booking attached to this platform before the beginning of the session. (in seconds) */
387
+ max_cancellation_duration?: string | null | undefined;
388
+ /** Allowed planification time from now where the platform can be booked in the future. (in seconds) */
389
+ max_planification_duration?: string | null | undefined;
390
+ /** Minimum planification time before a platform can be booked. (in seconds) */
391
+ min_planification_duration?: string | null | undefined;
392
+ /** Maximum amount of booking allowed for one organization per week. */
393
+ max_booking_per_week?: number | undefined;
394
+ /** Maximum amount of booking allowed for one organization per day. */
395
+ max_booking_per_day?: number | undefined;
396
+ }
397
+ export interface Platform {
398
+ /** Unique ID of the platform. */
399
+ id?: string | undefined;
400
+ /** Version of the platform. */
401
+ version?: string | undefined;
402
+ /** Name of the platform. */
403
+ name?: string | undefined;
404
+ /** Name of the technological provider of the platform in lowercase (quandela, pasqal...). */
405
+ provider_name?: string | undefined;
406
+ /** Name of the running emulation backend or QPU model of the platform in lowercase (mosaiq, qsim, aer...). */
407
+ backend_name?: string | undefined;
408
+ /** Type of the platform (emulator or qpu). */
409
+ type?: PlatformType | undefined;
410
+ /** Quantum technology used by the platform (trapped-ion, photonic, superconducting qubits...). */
411
+ technology?: PlatformTechnology | undefined;
412
+ /** Maximum number of qubits supported by the platform (estimated for emulator). */
413
+ max_qubit_count?: number | undefined;
414
+ /** Maximum number of shots during a circuit execution. */
415
+ max_shot_count?: number | undefined;
416
+ /** Maximum number of circuit that can be executed in one call. */
417
+ max_circuit_count?: number | undefined;
418
+ /** Availability of the platform. */
419
+ availability?: PlatformAvailability | undefined;
420
+ /** Metadata provided by the platform. */
421
+ metadata?: string | undefined;
422
+ /** Price to be paid per hour (excluding free tiers). */
423
+ price_per_hour?: GoogleTypeMoney | undefined;
424
+ /** Price to be paid per shot (excluding free tiers). */
425
+ price_per_shot?: GoogleTypeMoney | undefined;
426
+ /** Price to be paid per circuit setup before its execution (excluding free tiers). */
427
+ price_per_circuit?: GoogleTypeMoney | undefined;
428
+ /** Specifications of the underlying hardware. */
429
+ hardware?: PlatformHardware | undefined;
430
+ /** Booking constraints to fit if the platform is bookable. */
431
+ booking_requirement?: PlatformBookingRequirement | undefined;
432
+ /** English description of the platform. */
433
+ description?: string | undefined;
434
+ /** Documentation link to external documentation to learn more on this platform. */
435
+ documentation_url?: string | undefined;
436
+ /** Specify if the platform is bookable. */
437
+ is_bookable?: boolean | undefined;
438
+ /** SRN of the platform. */
439
+ srn?: string | undefined;
440
+ }
441
+ export interface GetProcessRequest {
442
+ /** Unique ID of the process. */
443
+ process_id: string;
444
+ }
445
+ export interface GetSessionRequest {
446
+ /** Unique ID of the session. */
447
+ session_id: string;
448
+ }
449
+ export type ListApplicationsRequestOrderBy = "name_asc" | "name_desc" | "type_asc" | "type_desc";
450
+ export interface ListApplicationsRequest {
451
+ /** List applications with this name. */
452
+ name?: string | undefined;
453
+ /** List applications with this type. */
454
+ application_type?: ApplicationType | (string & {}) | undefined;
455
+ /** Page number. */
456
+ page?: number | undefined;
457
+ /** Maximum number of applications a to return per page. */
458
+ page_size?: number | undefined;
459
+ /** Sort order of the returned applications. */
460
+ order_by?: ListApplicationsRequestOrderBy | (string & {}) | undefined;
461
+ }
462
+ /** List of applications. */
463
+ export type ListApplicationsResponseApplicationsList = Array<Application>;
464
+ export interface ListApplicationsResponse {
465
+ /** Total number of applications. */
466
+ total_count?: number | undefined;
467
+ /** List of applications. */
468
+ applications: ListApplicationsResponseApplicationsList;
469
+ }
470
+ export type ListBookingsRequestOrderBy =
471
+ | "created_at_desc"
472
+ | "created_at_asc"
473
+ | "started_at_desc"
474
+ | "started_at_asc";
475
+ export interface ListBookingsRequest {
476
+ /** List bookings belonging to this project ID. (UUID format) */
477
+ project_id?: string | undefined;
478
+ /** List bookings attached to this platform ID. */
479
+ platform_id?: string | undefined;
480
+ /** Page number. */
481
+ page?: number | undefined;
482
+ /** Maximum number of results to return per page. */
483
+ page_size?: number | undefined;
484
+ /** Sort order of the returned results. */
485
+ order_by?: ListBookingsRequestOrderBy | (string & {}) | undefined;
486
+ }
487
+ /** List of bookings. */
488
+ export type ListBookingsResponseBookingsList = Array<Booking>;
489
+ export interface ListBookingsResponse {
490
+ /** Total number of bookings. */
491
+ total_count?: number | undefined;
492
+ /** List of bookings. */
493
+ bookings: ListBookingsResponseBookingsList;
494
+ }
495
+ export type ListJobResultsRequestOrderBy = "created_at_desc" | "created_at_asc";
496
+ export interface ListJobResultsRequest {
497
+ /** ID of the job. */
498
+ job_id: string;
499
+ /** Page number. */
500
+ page?: number | undefined;
501
+ /** Maximum number of results to return per page. */
502
+ page_size?: number | undefined;
503
+ /** Sort order of the returned results. */
504
+ order_by?: ListJobResultsRequestOrderBy | (string & {}) | undefined;
505
+ }
506
+ export interface JobResult {
507
+ /** ID of the parent job. */
508
+ job_id?: string | undefined;
509
+ /** Result in JSON format. */
510
+ result?: string | null | undefined;
511
+ /** URL to download a large result (optional). */
512
+ url?: string | null | undefined;
513
+ /** Creation time of the result. (RFC 3339 format) */
514
+ created_at?: string | null | undefined;
515
+ }
516
+ /** List of results. */
517
+ export type ListJobResultsResponseJobResultsList = Array<JobResult>;
518
+ export interface ListJobResultsResponse {
519
+ /** Total number of results. */
520
+ total_count?: number | undefined;
521
+ /** List of results. */
522
+ job_results: ListJobResultsResponseJobResultsList;
523
+ }
524
+ export type ListJobsRequestTagsList = Array<string>;
525
+ export type ListJobsRequestOrderBy =
526
+ | "created_at_desc"
527
+ | "created_at_asc"
528
+ | "status_asc"
529
+ | "status_desc"
530
+ | "platform_name_asc"
531
+ | "platform_name_desc"
532
+ | "name_asc"
533
+ | "name_desc"
534
+ | "session_name_asc"
535
+ | "session_name_desc";
536
+ export interface ListJobsRequest {
537
+ /** List jobs with these tags. */
538
+ tags?: ListJobsRequestTagsList | undefined;
539
+ /** Page number. */
540
+ page?: number | undefined;
541
+ /** Maximum number of jobs to return per page. */
542
+ page_size?: number | undefined;
543
+ /** Sort order of the returned jobs. */
544
+ order_by?: ListJobsRequestOrderBy | (string & {}) | undefined;
545
+ /** List jobs of this session. One-of `resource_id` with `session_id` / `project_id`; the API requires `session_id` in practice (a call with only `project_id` is rejected). */
546
+ session_id?: string | undefined;
547
+ /** List jobs of this Project. One-of `resource_id` with `session_id` / `project_id`; the API requires `session_id` in practice (a call with only `project_id` is rejected). */
548
+ project_id?: string | undefined;
549
+ }
550
+ /** List of jobs. */
551
+ export type ListJobsResponseJobsList = Array<Job>;
552
+ export interface ListJobsResponse {
553
+ /** Total number of jobs. */
554
+ total_count?: number | undefined;
555
+ /** List of jobs. */
556
+ jobs: ListJobsResponseJobsList;
557
+ }
558
+ export type ListModelsRequestOrderBy = "created_at_desc" | "created_at_asc";
559
+ export interface ListModelsRequest {
560
+ /** List models belonging to this project ID. */
561
+ project_id: string;
562
+ /** Page number. */
563
+ page?: number | undefined;
564
+ /** Maximum number of results to return per page. */
565
+ page_size?: number | undefined;
566
+ /** Sort order of the returned results. */
567
+ order_by?: ListModelsRequestOrderBy | (string & {}) | undefined;
568
+ }
569
+ /** List of models. */
570
+ export type ListModelsResponseModelsList = Array<Model>;
571
+ export interface ListModelsResponse {
572
+ /** Total number of models. */
573
+ total_count?: number | undefined;
574
+ /** List of models. */
575
+ models: ListModelsResponseModelsList;
576
+ }
577
+ export type ListPlatformsRequestOrderBy =
578
+ | "name_asc"
579
+ | "name_desc"
580
+ | "provider_name_asc"
581
+ | "provider_name_desc"
582
+ | "type_asc"
583
+ | "type_desc"
584
+ | "technology_asc"
585
+ | "technology_desc"
586
+ | "backend_name_asc"
587
+ | "backend_name_desc";
588
+ export interface ListPlatformsRequest {
589
+ /** List platforms with this provider name. */
590
+ provider_name?: string | undefined;
591
+ /** List platforms with this backend name. */
592
+ backend_name?: string | undefined;
593
+ /** List platforms with this name. */
594
+ name?: string | undefined;
595
+ /** List platforms with this type. */
596
+ platform_type?: PlatformType | (string & {}) | undefined;
597
+ /** List platforms with this technology. */
598
+ platform_technology?: PlatformTechnology | (string & {}) | undefined;
599
+ /** Page number. */
600
+ page?: number | undefined;
601
+ /** Maximum number of platforms to return per page. */
602
+ page_size?: number | undefined;
603
+ /** Sort order of the returned platforms. */
604
+ order_by?: ListPlatformsRequestOrderBy | (string & {}) | undefined;
605
+ }
606
+ /** List of platforms. */
607
+ export type ListPlatformsResponsePlatformsList = Array<Platform>;
608
+ export interface ListPlatformsResponse {
609
+ /** Total number of platforms. */
610
+ total_count?: number | undefined;
611
+ /** List of platforms. */
612
+ platforms: ListPlatformsResponsePlatformsList;
613
+ }
614
+ export type ListProcessesRequestTagsList = Array<string>;
615
+ export type ListProcessesRequestOrderBy =
616
+ | "created_at_desc"
617
+ | "created_at_asc"
618
+ | "name_asc"
619
+ | "name_desc"
620
+ | "started_at_asc"
621
+ | "started_at_desc"
622
+ | "status_asc"
623
+ | "status_desc";
624
+ export interface ListProcessesRequest {
625
+ /** List processes that have been created for this application. */
626
+ application_id?: string | undefined;
627
+ /** List processes with these tags. */
628
+ tags?: ListProcessesRequestTagsList | undefined;
629
+ /** Page number. */
630
+ page?: number | undefined;
631
+ /** Maximum number of processes to return per page. */
632
+ page_size?: number | undefined;
633
+ /** Sort order of the returned processes. */
634
+ order_by?: ListProcessesRequestOrderBy | (string & {}) | undefined;
635
+ /** List processes belonging to this project ID. (UUID format) */
636
+ project_id: string;
637
+ }
638
+ /** List of processes. */
639
+ export type ListProcessesResponseProcessesList = Array<Process>;
640
+ export interface ListProcessesResponse {
641
+ /** Total number of processes. */
642
+ total_count?: number | undefined;
643
+ /** List of processes. */
644
+ processes: ListProcessesResponseProcessesList;
645
+ }
646
+ export type ListProcessResultsRequestOrderBy = "created_at_desc" | "created_at_asc";
647
+ export interface ListProcessResultsRequest {
648
+ /** ID of the process. */
649
+ process_id: string;
650
+ /** Page number. */
651
+ page?: number | undefined;
652
+ /** Maximum number of results to return per page. */
653
+ page_size?: number | undefined;
654
+ /** Sort order of the returned results. */
655
+ order_by?: ListProcessResultsRequestOrderBy | (string & {}) | undefined;
656
+ }
657
+ export interface ProcessResult {
658
+ /** ID of the parent process. */
659
+ process_id?: string | undefined;
660
+ /** Result in JSON format. */
661
+ result?: string | undefined;
662
+ /** Creation time of the result. (RFC 3339 format) */
663
+ created_at?: string | null | undefined;
664
+ }
665
+ /** List of results. */
666
+ export type ListProcessResultsResponseProcessResultsList = Array<ProcessResult>;
667
+ export interface ListProcessResultsResponse {
668
+ /** Total number of results. */
669
+ total_count?: number | undefined;
670
+ /** List of results. */
671
+ process_results: ListProcessResultsResponseProcessResultsList;
672
+ }
673
+ export type ListSessionACLsRequestOrderBy = "access_asc" | "access_desc";
674
+ export interface ListSessionACLsRequest {
675
+ session_id: string;
676
+ page?: number | undefined;
677
+ page_size?: number | undefined;
678
+ order_by?: ListSessionACLsRequestOrderBy | (string & {}) | undefined;
679
+ }
680
+ export type SessionAccess =
681
+ | "unknown_access"
682
+ | "full"
683
+ | "read_session"
684
+ | "read_write_session"
685
+ | "read_job_result"
686
+ | "read_job_circuit"
687
+ | "read_job"
688
+ | "read_write_job";
689
+ export type ListSessionACLsResponseAclsList = Array<SessionAccess>;
690
+ export interface ListSessionACLsResponse {
691
+ total_count?: number | undefined;
692
+ acls: ListSessionACLsResponseAclsList;
693
+ }
694
+ export type ListSessionsRequestTagsList = Array<string>;
695
+ export type ListSessionsRequestOrderBy =
696
+ | "name_asc"
697
+ | "name_desc"
698
+ | "started_at_asc"
699
+ | "started_at_desc"
700
+ | "status_asc"
701
+ | "status_desc"
702
+ | "created_at_desc"
703
+ | "created_at_asc";
704
+ export interface ListSessionsRequest {
705
+ /** List sessions that have been created for this platform. */
706
+ platform_id?: string | undefined;
707
+ /** List sessions with these tags. */
708
+ tags?: ListSessionsRequestTagsList | undefined;
709
+ /** Page number. */
710
+ page?: number | undefined;
711
+ /** Maximum number of sessions to return per page. */
712
+ page_size?: number | undefined;
713
+ /** Sort order of the returned sessions. */
714
+ order_by?: ListSessionsRequestOrderBy | (string & {}) | undefined;
715
+ /** List sessions belonging to this project ID. (UUID format) */
716
+ project_id: string;
717
+ }
718
+ /** List of sessions. */
719
+ export type ListSessionsResponseSessionsList = Array<Session>;
720
+ export interface ListSessionsResponse {
721
+ /** Total number of sessions. */
722
+ total_count?: number | undefined;
723
+ /** List of sessions. */
724
+ sessions: ListSessionsResponseSessionsList;
725
+ }
726
+ export interface TerminateSessionRequest {
727
+ /** Unique ID of the session. */
728
+ session_id: string;
729
+ }
730
+ export interface UpdateBookingRequest {
731
+ /** Unique ID of the booking. */
732
+ booking_id: string;
733
+ /** Description of the booking slot. */
734
+ description?: string | null | undefined;
735
+ }
736
+ /** Tags of the job. */
737
+ export type UpdateJobRequestTagsList = Array<unknown>;
738
+ export interface UpdateJobRequest {
739
+ /** Unique ID of the job. */
740
+ job_id: string;
741
+ /** Name of the job. */
742
+ name?: string | null | undefined;
743
+ /** Tags of the job. */
744
+ tags?: UpdateJobRequestTagsList | null | undefined;
745
+ }
746
+ /** Tags of the process. */
747
+ export type UpdateProcessRequestTagsList = Array<unknown>;
748
+ export interface UpdateProcessRequest {
749
+ /** Unique ID of the process. */
750
+ process_id: string;
751
+ /** Name of the process. */
752
+ name?: string | null | undefined;
753
+ /** Tags of the process. */
754
+ tags?: UpdateProcessRequestTagsList | null | undefined;
755
+ }
756
+ /** Tags of the session. */
757
+ export type UpdateSessionRequestTagsList = Array<unknown>;
758
+ export interface UpdateSessionRequest {
759
+ /** Unique ID of the session. */
760
+ session_id: string;
761
+ /** Name of the session. */
762
+ name?: string | null | undefined;
763
+ /** Maximum idle duration before the session ends. (in seconds) */
764
+ max_idle_duration?: string | null | undefined;
765
+ /** Maximum time before the session ends. (in seconds) */
766
+ max_duration?: string | null | undefined;
767
+ /** Tags of the session. */
768
+ tags?: UpdateSessionRequestTagsList | null | undefined;
769
+ }
770
+ export type CancelJobError = ScalewayOpError;
771
+ /** Cancel a job Cancel the job corresponding to the provided **job ID**. */
772
+ export const cancelJob: API.OperationMethod<
773
+ CancelJobRequest,
774
+ Job,
775
+ CancelJobError,
776
+ ScalewayOpContext
777
+ > = /*@__PURE__*/ API.make(() => ({
778
+ input: __S(0, __c0, 0) as any as S.Schema<CancelJobRequest>,
779
+ output: __S(4, __c1, 0) as any as S.Schema<Job>,
780
+ errors: [],
781
+ serviceErrors: ScalewayServiceErrors,
782
+ protocol: ScalewayProtocol,
783
+ retry: Retry.Retry,
784
+ telemetry: TELEMETRY,
785
+ span: "CancelJob",
786
+ }));
787
+
788
+ export type CancelProcessError = ScalewayOpError;
789
+ /** Cancel a running process Cancel a process by its unique ID. Intermediate results are still available. */
790
+ export const cancelProcess: API.OperationMethod<
791
+ CancelProcessRequest,
792
+ Process,
793
+ CancelProcessError,
794
+ ScalewayOpContext
795
+ > = /*@__PURE__*/ API.make(() => ({
796
+ input: __S(12, __c3, 0) as any as S.Schema<CancelProcessRequest>,
797
+ output: __S(16, __c4, 0) as any as S.Schema<Process>,
798
+ errors: [],
799
+ serviceErrors: ScalewayServiceErrors,
800
+ protocol: ScalewayProtocol,
801
+ retry: Retry.Retry,
802
+ telemetry: TELEMETRY,
803
+ span: "CancelProcess",
804
+ }));
805
+
806
+ export type CreateJobError = ScalewayOpError;
807
+ /** Create a job Create a job to be executed inside a QPU session. */
808
+ export const createJob: API.OperationMethod<
809
+ CreateJobRequest,
810
+ Job,
811
+ CreateJobError,
812
+ ScalewayOpContext
813
+ > = /*@__PURE__*/ API.make(() => ({
814
+ input: __S(72, __c18, 0) as any as S.Schema<CreateJobRequest>,
815
+ output: __S(4, __c1, 0) as any as S.Schema<Job>,
816
+ errors: [],
817
+ serviceErrors: ScalewayServiceErrors,
818
+ protocol: ScalewayProtocol,
819
+ retry: Retry.Retry,
820
+ telemetry: TELEMETRY,
821
+ span: "CreateJob",
822
+ }));
823
+
824
+ export type CreateModelError = ScalewayOpError;
825
+ /** Create a new model Create and register a new model that can be executed through next jobs. A model can also be assigned to a Session. */
826
+ export const createModel: API.OperationMethod<
827
+ CreateModelRequest,
828
+ Model,
829
+ CreateModelError,
830
+ ScalewayOpContext
831
+ > = /*@__PURE__*/ API.make(() => ({
832
+ input: __S(120, __c30, 0) as any as S.Schema<CreateModelRequest>,
833
+ output: __S(124, __c31, 0) as any as S.Schema<Model>,
834
+ errors: [],
835
+ serviceErrors: ScalewayServiceErrors,
836
+ protocol: ScalewayProtocol,
837
+ retry: Retry.Retry,
838
+ telemetry: TELEMETRY,
839
+ span: "CreateModel",
840
+ }));
841
+
842
+ export type CreateProcessError = ScalewayOpError;
843
+ /** Create a process Create a new process for the specified application on a specified platform. */
844
+ export const createProcess: API.OperationMethod<
845
+ CreateProcessRequest,
846
+ Process,
847
+ CreateProcessError,
848
+ ScalewayOpContext
849
+ > = /*@__PURE__*/ API.make(() => ({
850
+ input: __S(136, __c34, 0) as any as S.Schema<CreateProcessRequest>,
851
+ output: __S(16, __c4, 0) as any as S.Schema<Process>,
852
+ errors: [],
853
+ serviceErrors: ScalewayServiceErrors,
854
+ protocol: ScalewayProtocol,
855
+ retry: Retry.Retry,
856
+ telemetry: TELEMETRY,
857
+ span: "CreateProcess",
858
+ }));
859
+
860
+ export type CreateSessionError = ScalewayOpError;
861
+ /** Create a session Create a new QPU session for the specified platform. Once ready, jobs can be sent to this session. */
862
+ export const createSession: API.OperationMethod<
863
+ CreateSessionRequest,
864
+ Session,
865
+ CreateSessionError,
866
+ ScalewayOpContext
867
+ > = /*@__PURE__*/ API.make(() => ({
868
+ input: __S(141, __c35, 1) as any as S.Schema<CreateSessionRequest>,
869
+ output: __S(144, __c36, 0) as any as S.Schema<Session>,
870
+ errors: [],
871
+ serviceErrors: ScalewayServiceErrors,
872
+ protocol: ScalewayProtocol,
873
+ retry: Retry.Retry,
874
+ telemetry: TELEMETRY,
875
+ span: "CreateSession",
876
+ }));
877
+
878
+ export type DeleteJobError = ScalewayOpError;
879
+ /** Delete a job Delete the job corresponding to the provided **job ID**. */
880
+ export const deleteJob: API.OperationMethod<
881
+ DeleteJobRequest,
882
+ DeleteJobResponse,
883
+ DeleteJobError,
884
+ ScalewayOpContext
885
+ > = /*@__PURE__*/ API.make(() => ({
886
+ input: __S(148, __c37, 0) as any as S.Schema<DeleteJobRequest>,
887
+ output: __S(152, __c38, 0) as any as S.Schema<DeleteJobResponse>,
888
+ errors: [],
889
+ serviceErrors: ScalewayServiceErrors,
890
+ protocol: ScalewayProtocol,
891
+ retry: Retry.Retry,
892
+ telemetry: TELEMETRY,
893
+ span: "DeleteJob",
894
+ }));
895
+
896
+ export type DeleteProcessError = ScalewayOpError;
897
+ /** Delete an existing process Delete a process by its unique ID and delete all its data. */
898
+ export const deleteProcess: API.OperationMethod<
899
+ DeleteProcessRequest,
900
+ DeleteProcessResponse,
901
+ DeleteProcessError,
902
+ ScalewayOpContext
903
+ > = /*@__PURE__*/ API.make(() => ({
904
+ input: __S(156, __c39, 0) as any as S.Schema<DeleteProcessRequest>,
905
+ output: __S(152, __c38, 0) as any as S.Schema<DeleteProcessResponse>,
906
+ errors: [],
907
+ serviceErrors: ScalewayServiceErrors,
908
+ protocol: ScalewayProtocol,
909
+ retry: Retry.Retry,
910
+ telemetry: TELEMETRY,
911
+ span: "DeleteProcess",
912
+ }));
913
+
914
+ export type DeleteSessionError = ScalewayOpError;
915
+ /** Delete an existing session Delete a session by its unique ID and delete all its attached jobs and bookings. */
916
+ export const deleteSession: API.OperationMethod<
917
+ DeleteSessionRequest,
918
+ DeleteSessionResponse,
919
+ DeleteSessionError,
920
+ ScalewayOpContext
921
+ > = /*@__PURE__*/ API.make(() => ({
922
+ input: __S(160, __c40, 0) as any as S.Schema<DeleteSessionRequest>,
923
+ output: __S(152, __c38, 0) as any as S.Schema<DeleteSessionResponse>,
924
+ errors: [],
925
+ serviceErrors: ScalewayServiceErrors,
926
+ protocol: ScalewayProtocol,
927
+ retry: Retry.Retry,
928
+ telemetry: TELEMETRY,
929
+ span: "DeleteSession",
930
+ }));
931
+
932
+ export type GetApplicationError = ScalewayOpError;
933
+ /** Get application information Retrieve information about the provided **application ID**, such as name, type and compatible platforms. */
934
+ export const getApplication: API.OperationMethod<
935
+ GetApplicationRequest,
936
+ Application,
937
+ GetApplicationError,
938
+ ScalewayOpContext
939
+ > = /*@__PURE__*/ API.make(() => ({
940
+ input: __S(164, __c41, 0) as any as S.Schema<GetApplicationRequest>,
941
+ output: __S(168, __c42, 0) as any as S.Schema<Application>,
942
+ errors: [],
943
+ serviceErrors: ScalewayServiceErrors,
944
+ protocol: ScalewayProtocol,
945
+ retry: Retry.Retry,
946
+ telemetry: TELEMETRY,
947
+ span: "GetApplication",
948
+ }));
949
+
950
+ export type GetBookingError = ScalewayOpError;
951
+ /** Get booking information Retrieve information about the provided **booking ID**, such as description, status and progress message. */
952
+ export const getBooking: API.OperationMethod<
953
+ GetBookingRequest,
954
+ Booking,
955
+ GetBookingError,
956
+ ScalewayOpContext
957
+ > = /*@__PURE__*/ API.make(() => ({
958
+ input: __S(24, __c6, 0) as any as S.Schema<GetBookingRequest>,
959
+ output: __S(28, __c7, 0) as any as S.Schema<Booking>,
960
+ errors: [],
961
+ serviceErrors: ScalewayServiceErrors,
962
+ protocol: ScalewayProtocol,
963
+ retry: Retry.Retry,
964
+ telemetry: TELEMETRY,
965
+ span: "GetBooking",
966
+ }));
967
+
968
+ export type GetJobError = ScalewayOpError;
969
+ /** Get job information Retrieve information about the provided **job ID**, mainly used to get the current status. */
970
+ export const getJob: API.OperationMethod<GetJobRequest, Job, GetJobError, ScalewayOpContext> =
971
+ /*@__PURE__*/ API.make(() => ({
972
+ input: __S(32, __c8, 0) as any as S.Schema<GetJobRequest>,
973
+ output: __S(4, __c1, 0) as any as S.Schema<Job>,
974
+ errors: [],
975
+ serviceErrors: ScalewayServiceErrors,
976
+ protocol: ScalewayProtocol,
977
+ retry: Retry.Retry,
978
+ telemetry: TELEMETRY,
979
+ span: "GetJob",
980
+ }));
981
+
982
+ export type GetJobCircuitError = ScalewayOpError;
983
+ /** Get a job circuit Retrieve the circuit of the provided **job ID**. */
984
+ export const getJobCircuit: API.OperationMethod<
985
+ GetJobCircuitRequest,
986
+ JobCircuit,
987
+ GetJobCircuitError,
988
+ ScalewayOpContext
989
+ > = /*@__PURE__*/ API.make(() => ({
990
+ input: __S(36, __c9, 0) as any as S.Schema<GetJobCircuitRequest>,
991
+ output: __S(76, __c19, 0) as any as S.Schema<JobCircuit>,
992
+ errors: [],
993
+ serviceErrors: ScalewayServiceErrors,
994
+ protocol: ScalewayProtocol,
995
+ retry: Retry.Retry,
996
+ telemetry: TELEMETRY,
997
+ span: "GetJobCircuit",
998
+ }));
999
+
1000
+ export type GetModelError = ScalewayOpError;
1001
+ /** Get model information Retrieve information about of the provided **model ID**. */
1002
+ export const getModel: API.OperationMethod<
1003
+ GetModelRequest,
1004
+ Model,
1005
+ GetModelError,
1006
+ ScalewayOpContext
1007
+ > = /*@__PURE__*/ API.make(() => ({
1008
+ input: __S(40, __c10, 0) as any as S.Schema<GetModelRequest>,
1009
+ output: __S(124, __c31, 0) as any as S.Schema<Model>,
1010
+ errors: [],
1011
+ serviceErrors: ScalewayServiceErrors,
1012
+ protocol: ScalewayProtocol,
1013
+ retry: Retry.Retry,
1014
+ telemetry: TELEMETRY,
1015
+ span: "GetModel",
1016
+ }));
1017
+
1018
+ export type GetPlatformError = ScalewayOpError;
1019
+ /** Get platform information Retrieve information about the provided **platform ID**, such as provider name, technology, and type. */
1020
+ export const getPlatform: API.OperationMethod<
1021
+ GetPlatformRequest,
1022
+ Platform,
1023
+ GetPlatformError,
1024
+ ScalewayOpContext
1025
+ > = /*@__PURE__*/ API.make(() => ({
1026
+ input: __S(44, __c11, 0) as any as S.Schema<GetPlatformRequest>,
1027
+ output: __S(51, __c12, 3) as any as S.Schema<Platform>,
1028
+ errors: [],
1029
+ serviceErrors: ScalewayServiceErrors,
1030
+ protocol: ScalewayProtocol,
1031
+ retry: Retry.Retry,
1032
+ telemetry: TELEMETRY,
1033
+ span: "GetPlatform",
1034
+ }));
1035
+
1036
+ export type GetProcessError = ScalewayOpError;
1037
+ /** Get process information Retrieve information about the provided **process ID**, such as name, status and progress. */
1038
+ export const getProcess: API.OperationMethod<
1039
+ GetProcessRequest,
1040
+ Process,
1041
+ GetProcessError,
1042
+ ScalewayOpContext
1043
+ > = /*@__PURE__*/ API.make(() => ({
1044
+ input: __S(52, __c13, 0) as any as S.Schema<GetProcessRequest>,
1045
+ output: __S(16, __c4, 0) as any as S.Schema<Process>,
1046
+ errors: [],
1047
+ serviceErrors: ScalewayServiceErrors,
1048
+ protocol: ScalewayProtocol,
1049
+ retry: Retry.Retry,
1050
+ telemetry: TELEMETRY,
1051
+ span: "GetProcess",
1052
+ }));
1053
+
1054
+ export type GetSessionError = ScalewayOpError;
1055
+ /** Get session information Retrieve information about the provided **session ID**, such as name and status. */
1056
+ export const getSession: API.OperationMethod<
1057
+ GetSessionRequest,
1058
+ Session,
1059
+ GetSessionError,
1060
+ ScalewayOpContext
1061
+ > = /*@__PURE__*/ API.make(() => ({
1062
+ input: __S(56, __c14, 0) as any as S.Schema<GetSessionRequest>,
1063
+ output: __S(144, __c36, 0) as any as S.Schema<Session>,
1064
+ errors: [],
1065
+ serviceErrors: ScalewayServiceErrors,
1066
+ protocol: ScalewayProtocol,
1067
+ retry: Retry.Retry,
1068
+ telemetry: TELEMETRY,
1069
+ span: "GetSession",
1070
+ }));
1071
+
1072
+ export type ListApplicationsError = ScalewayOpError;
1073
+ /** List all available applications Retrieve information about all applications. */
1074
+ export const listApplications: API.PaginatedOperationMethod<
1075
+ ListApplicationsRequest,
1076
+ ListApplicationsResponse,
1077
+ ListApplicationsError,
1078
+ ScalewayOpContext,
1079
+ Application
1080
+ > = /*@__PURE__*/ API.makePaginated(
1081
+ () => ({
1082
+ input: __S(60, __c15, 0) as any as S.Schema<ListApplicationsRequest>,
1083
+ output: __S(62, __c15, 2) as any as S.Schema<ListApplicationsResponse>,
1084
+ errors: [],
1085
+ serviceErrors: ScalewayServiceErrors,
1086
+ protocol: ScalewayProtocol,
1087
+ retry: Retry.Retry,
1088
+ telemetry: TELEMETRY,
1089
+ span: "ListApplications",
1090
+ pagination: {
1091
+ mode: "page",
1092
+ inputToken: "page",
1093
+ outputToken: "total_count",
1094
+ items: "applications",
1095
+ pageSize: "page_size",
1096
+ } as const,
1097
+ }),
1098
+ paginateByTotalCount,
1099
+ ) as any;
1100
+
1101
+ export type ListBookingsError = ScalewayOpError;
1102
+ /** List all bookings according the filter Retrieve information about all bookings of the provided **project ID** or ** platform ID**. */
1103
+ export const listBookings: API.PaginatedOperationMethod<
1104
+ ListBookingsRequest,
1105
+ ListBookingsResponse,
1106
+ ListBookingsError,
1107
+ ScalewayOpContext,
1108
+ Booking
1109
+ > = /*@__PURE__*/ API.makePaginated(
1110
+ () => ({
1111
+ input: __S(64, __c16, 0) as any as S.Schema<ListBookingsRequest>,
1112
+ output: __S(66, __c16, 2) as any as S.Schema<ListBookingsResponse>,
1113
+ errors: [],
1114
+ serviceErrors: ScalewayServiceErrors,
1115
+ protocol: ScalewayProtocol,
1116
+ retry: Retry.Retry,
1117
+ telemetry: TELEMETRY,
1118
+ span: "ListBookings",
1119
+ pagination: {
1120
+ mode: "page",
1121
+ inputToken: "page",
1122
+ outputToken: "total_count",
1123
+ items: "bookings",
1124
+ pageSize: "page_size",
1125
+ } as const,
1126
+ }),
1127
+ paginateByTotalCount,
1128
+ ) as any;
1129
+
1130
+ export type ListJobResultsError = ScalewayOpError;
1131
+ /** List all results of a job Retrieve all intermediate and final results of a job. */
1132
+ export const listJobResults: API.PaginatedOperationMethod<
1133
+ ListJobResultsRequest,
1134
+ ListJobResultsResponse,
1135
+ ListJobResultsError,
1136
+ ScalewayOpContext,
1137
+ JobResult
1138
+ > = /*@__PURE__*/ API.makePaginated(
1139
+ () => ({
1140
+ input: __S(68, __c17, 0) as any as S.Schema<ListJobResultsRequest>,
1141
+ output: __S(71, __c17, 3) as any as S.Schema<ListJobResultsResponse>,
1142
+ errors: [],
1143
+ serviceErrors: ScalewayServiceErrors,
1144
+ protocol: ScalewayProtocol,
1145
+ retry: Retry.Retry,
1146
+ telemetry: TELEMETRY,
1147
+ span: "ListJobResults",
1148
+ pagination: {
1149
+ mode: "page",
1150
+ inputToken: "page",
1151
+ outputToken: "total_count",
1152
+ items: "job_results",
1153
+ pageSize: "page_size",
1154
+ } as const,
1155
+ }),
1156
+ paginateByTotalCount,
1157
+ ) as any;
1158
+
1159
+ export type ListJobsError = ScalewayOpError;
1160
+ /** List all jobs within a project or session Retrieve information about all jobs within a given session. */
1161
+ export const listJobs: API.PaginatedOperationMethod<
1162
+ ListJobsRequest,
1163
+ ListJobsResponse,
1164
+ ListJobsError,
1165
+ ScalewayOpContext,
1166
+ Job
1167
+ > = /*@__PURE__*/ API.makePaginated(
1168
+ () => ({
1169
+ input: __S(80, __c20, 0) as any as S.Schema<ListJobsRequest>,
1170
+ output: __S(82, __c20, 2) as any as S.Schema<ListJobsResponse>,
1171
+ errors: [],
1172
+ serviceErrors: ScalewayServiceErrors,
1173
+ protocol: ScalewayProtocol,
1174
+ retry: Retry.Retry,
1175
+ telemetry: TELEMETRY,
1176
+ span: "ListJobs",
1177
+ pagination: {
1178
+ mode: "page",
1179
+ inputToken: "page",
1180
+ outputToken: "total_count",
1181
+ items: "jobs",
1182
+ pageSize: "page_size",
1183
+ } as const,
1184
+ }),
1185
+ paginateByTotalCount,
1186
+ ) as any;
1187
+
1188
+ export type ListModelsError = ScalewayOpError;
1189
+ /** List all models attached to the **project ID** Retrieve information about all models of the provided **project ID**. */
1190
+ export const listModels: API.PaginatedOperationMethod<
1191
+ ListModelsRequest,
1192
+ ListModelsResponse,
1193
+ ListModelsError,
1194
+ ScalewayOpContext,
1195
+ Model
1196
+ > = /*@__PURE__*/ API.makePaginated(
1197
+ () => ({
1198
+ input: __S(84, __c21, 0) as any as S.Schema<ListModelsRequest>,
1199
+ output: __S(86, __c21, 2) as any as S.Schema<ListModelsResponse>,
1200
+ errors: [],
1201
+ serviceErrors: ScalewayServiceErrors,
1202
+ protocol: ScalewayProtocol,
1203
+ retry: Retry.Retry,
1204
+ telemetry: TELEMETRY,
1205
+ span: "ListModels",
1206
+ pagination: {
1207
+ mode: "page",
1208
+ inputToken: "page",
1209
+ outputToken: "total_count",
1210
+ items: "models",
1211
+ pageSize: "page_size",
1212
+ } as const,
1213
+ }),
1214
+ paginateByTotalCount,
1215
+ ) as any;
1216
+
1217
+ export type ListPlatformsError = ScalewayOpError;
1218
+ /** List all available platforms Retrieve information about all platforms. */
1219
+ export const listPlatforms: API.PaginatedOperationMethod<
1220
+ ListPlatformsRequest,
1221
+ ListPlatformsResponse,
1222
+ ListPlatformsError,
1223
+ ScalewayOpContext,
1224
+ Platform
1225
+ > = /*@__PURE__*/ API.makePaginated(
1226
+ () => ({
1227
+ input: __S(88, __c22, 0) as any as S.Schema<ListPlatformsRequest>,
1228
+ output: __S(90, __c22, 2) as any as S.Schema<ListPlatformsResponse>,
1229
+ errors: [],
1230
+ serviceErrors: ScalewayServiceErrors,
1231
+ protocol: ScalewayProtocol,
1232
+ retry: Retry.Retry,
1233
+ telemetry: TELEMETRY,
1234
+ span: "ListPlatforms",
1235
+ pagination: {
1236
+ mode: "page",
1237
+ inputToken: "page",
1238
+ outputToken: "total_count",
1239
+ items: "platforms",
1240
+ pageSize: "page_size",
1241
+ } as const,
1242
+ }),
1243
+ paginateByTotalCount,
1244
+ ) as any;
1245
+
1246
+ export type ListProcessesError = ScalewayOpError;
1247
+ /** List all processes Retrieve information about all processes. */
1248
+ export const listProcesses: API.PaginatedOperationMethod<
1249
+ ListProcessesRequest,
1250
+ ListProcessesResponse,
1251
+ ListProcessesError,
1252
+ ScalewayOpContext,
1253
+ Process
1254
+ > = /*@__PURE__*/ API.makePaginated(
1255
+ () => ({
1256
+ input: __S(92, __c23, 0) as any as S.Schema<ListProcessesRequest>,
1257
+ output: __S(94, __c23, 2) as any as S.Schema<ListProcessesResponse>,
1258
+ errors: [],
1259
+ serviceErrors: ScalewayServiceErrors,
1260
+ protocol: ScalewayProtocol,
1261
+ retry: Retry.Retry,
1262
+ telemetry: TELEMETRY,
1263
+ span: "ListProcesses",
1264
+ pagination: {
1265
+ mode: "page",
1266
+ inputToken: "page",
1267
+ outputToken: "total_count",
1268
+ items: "processes",
1269
+ pageSize: "page_size",
1270
+ } as const,
1271
+ }),
1272
+ paginateByTotalCount,
1273
+ ) as any;
1274
+
1275
+ export type ListProcessResultsError = ScalewayOpError;
1276
+ /** List all results of a process Retrieve all intermediate and final result of a process. */
1277
+ export const listProcessResults: API.PaginatedOperationMethod<
1278
+ ListProcessResultsRequest,
1279
+ ListProcessResultsResponse,
1280
+ ListProcessResultsError,
1281
+ ScalewayOpContext,
1282
+ ProcessResult
1283
+ > = /*@__PURE__*/ API.makePaginated(
1284
+ () => ({
1285
+ input: __S(96, __c24, 0) as any as S.Schema<ListProcessResultsRequest>,
1286
+ output: __S(99, __c24, 3) as any as S.Schema<ListProcessResultsResponse>,
1287
+ errors: [],
1288
+ serviceErrors: ScalewayServiceErrors,
1289
+ protocol: ScalewayProtocol,
1290
+ retry: Retry.Retry,
1291
+ telemetry: TELEMETRY,
1292
+ span: "ListProcessResults",
1293
+ pagination: {
1294
+ mode: "page",
1295
+ inputToken: "page",
1296
+ outputToken: "total_count",
1297
+ items: "process_results",
1298
+ pageSize: "page_size",
1299
+ } as const,
1300
+ }),
1301
+ paginateByTotalCount,
1302
+ ) as any;
1303
+
1304
+ export type ListSessionACLsError = ScalewayOpError;
1305
+ export const listSessionACLs: API.PaginatedOperationMethod<
1306
+ ListSessionACLsRequest,
1307
+ ListSessionACLsResponse,
1308
+ ListSessionACLsError,
1309
+ ScalewayOpContext,
1310
+ SessionAccess
1311
+ > = /*@__PURE__*/ API.makePaginated(
1312
+ () => ({
1313
+ input: __S(100, __c25, 0) as any as S.Schema<ListSessionACLsRequest>,
1314
+ output: __S(102, __c25, 2) as any as S.Schema<ListSessionACLsResponse>,
1315
+ errors: [],
1316
+ serviceErrors: ScalewayServiceErrors,
1317
+ protocol: ScalewayProtocol,
1318
+ retry: Retry.Retry,
1319
+ telemetry: TELEMETRY,
1320
+ span: "ListSessionACLs",
1321
+ pagination: {
1322
+ mode: "page",
1323
+ inputToken: "page",
1324
+ outputToken: "total_count",
1325
+ items: "acls",
1326
+ pageSize: "page_size",
1327
+ } as const,
1328
+ }),
1329
+ paginateByTotalCount,
1330
+ ) as any;
1331
+
1332
+ export type ListSessionsError = ScalewayOpError;
1333
+ /** List all sessions Retrieve information about all QPU sessions. */
1334
+ export const listSessions: API.PaginatedOperationMethod<
1335
+ ListSessionsRequest,
1336
+ ListSessionsResponse,
1337
+ ListSessionsError,
1338
+ ScalewayOpContext,
1339
+ Session
1340
+ > = /*@__PURE__*/ API.makePaginated(
1341
+ () => ({
1342
+ input: __S(104, __c26, 0) as any as S.Schema<ListSessionsRequest>,
1343
+ output: __S(106, __c26, 2) as any as S.Schema<ListSessionsResponse>,
1344
+ errors: [],
1345
+ serviceErrors: ScalewayServiceErrors,
1346
+ protocol: ScalewayProtocol,
1347
+ retry: Retry.Retry,
1348
+ telemetry: TELEMETRY,
1349
+ span: "ListSessions",
1350
+ pagination: {
1351
+ mode: "page",
1352
+ inputToken: "page",
1353
+ outputToken: "total_count",
1354
+ items: "sessions",
1355
+ pageSize: "page_size",
1356
+ } as const,
1357
+ }),
1358
+ paginateByTotalCount,
1359
+ ) as any;
1360
+
1361
+ export type TerminateSessionError = ScalewayOpError;
1362
+ /** Terminate an existing session Terminate a session by its unique ID and cancel all its attached jobs and bookings. */
1363
+ export const terminateSession: API.OperationMethod<
1364
+ TerminateSessionRequest,
1365
+ Session,
1366
+ TerminateSessionError,
1367
+ ScalewayOpContext
1368
+ > = /*@__PURE__*/ API.make(() => ({
1369
+ input: __S(108, __c27, 0) as any as S.Schema<TerminateSessionRequest>,
1370
+ output: __S(144, __c36, 0) as any as S.Schema<Session>,
1371
+ errors: [],
1372
+ serviceErrors: ScalewayServiceErrors,
1373
+ protocol: ScalewayProtocol,
1374
+ retry: Retry.Retry,
1375
+ telemetry: TELEMETRY,
1376
+ span: "TerminateSession",
1377
+ }));
1378
+
1379
+ export type UpdateBookingError = ScalewayOpError;
1380
+ /** Update booking information Update booking information of the provided **booking ID**. */
1381
+ export const updateBooking: API.OperationMethod<
1382
+ UpdateBookingRequest,
1383
+ Booking,
1384
+ UpdateBookingError,
1385
+ ScalewayOpContext
1386
+ > = /*@__PURE__*/ API.make(() => ({
1387
+ input: __S(112, __c28, 0) as any as S.Schema<UpdateBookingRequest>,
1388
+ output: __S(28, __c7, 0) as any as S.Schema<Booking>,
1389
+ errors: [],
1390
+ serviceErrors: ScalewayServiceErrors,
1391
+ protocol: ScalewayProtocol,
1392
+ retry: Retry.Retry,
1393
+ telemetry: TELEMETRY,
1394
+ span: "UpdateBooking",
1395
+ }));
1396
+
1397
+ export type UpdateJobError = ScalewayOpError;
1398
+ /** Update job information Update job information about the provided **job ID**. */
1399
+ export const updateJob: API.OperationMethod<
1400
+ UpdateJobRequest,
1401
+ Job,
1402
+ UpdateJobError,
1403
+ ScalewayOpContext
1404
+ > = /*@__PURE__*/ API.make(() => ({
1405
+ input: __S(116, __c29, 0) as any as S.Schema<UpdateJobRequest>,
1406
+ output: __S(4, __c1, 0) as any as S.Schema<Job>,
1407
+ errors: [],
1408
+ serviceErrors: ScalewayServiceErrors,
1409
+ protocol: ScalewayProtocol,
1410
+ retry: Retry.Retry,
1411
+ telemetry: TELEMETRY,
1412
+ span: "UpdateJob",
1413
+ }));
1414
+
1415
+ export type UpdateProcessError = ScalewayOpError;
1416
+ /** Update process information Update process information of the provided **process ID**. */
1417
+ export const updateProcess: API.OperationMethod<
1418
+ UpdateProcessRequest,
1419
+ Process,
1420
+ UpdateProcessError,
1421
+ ScalewayOpContext
1422
+ > = /*@__PURE__*/ API.make(() => ({
1423
+ input: __S(128, __c32, 0) as any as S.Schema<UpdateProcessRequest>,
1424
+ output: __S(16, __c4, 0) as any as S.Schema<Process>,
1425
+ errors: [],
1426
+ serviceErrors: ScalewayServiceErrors,
1427
+ protocol: ScalewayProtocol,
1428
+ retry: Retry.Retry,
1429
+ telemetry: TELEMETRY,
1430
+ span: "UpdateProcess",
1431
+ }));
1432
+
1433
+ export type UpdateSessionError = ScalewayOpError;
1434
+ /** Update session information Update session information of the provided **session ID**. */
1435
+ export const updateSession: API.OperationMethod<
1436
+ UpdateSessionRequest,
1437
+ Session,
1438
+ UpdateSessionError,
1439
+ ScalewayOpContext
1440
+ > = /*@__PURE__*/ API.make(() => ({
1441
+ input: __S(132, __c33, 0) as any as S.Schema<UpdateSessionRequest>,
1442
+ output: __S(144, __c36, 0) as any as S.Schema<Session>,
1443
+ errors: [],
1444
+ serviceErrors: ScalewayServiceErrors,
1445
+ protocol: ScalewayProtocol,
1446
+ retry: Retry.Retry,
1447
+ telemetry: TELEMETRY,
1448
+ span: "UpdateSession",
1449
+ }));
1450
+
1451
+ // Schema builders: each runs one schema initializer, on that schema's first use.
1452
+ function __c0(j: number): any {
1453
+ switch (j) {
1454
+ case 0:
1455
+ return S.suspend(() =>
1456
+ S.Struct({
1457
+ job_id: S.String.pipe(T.Label()),
1458
+ }).pipe(
1459
+ T.Http({
1460
+ method: "POST",
1461
+ uri: "/qaas/v1alpha1/jobs/{job_id}/cancel",
1462
+ code: 200,
1463
+ baseUrl: "https://api.scaleway.com",
1464
+ }),
1465
+ ),
1466
+ ).annotate({ identifier: "CancelJobRequest" });
1467
+ }
1468
+ }
1469
+ function __c1(j: number): any {
1470
+ switch (j) {
1471
+ case 0:
1472
+ return S.suspend(() =>
1473
+ S.Struct({
1474
+ id: S.optional(S.String),
1475
+ name: S.optional(S.String),
1476
+ tags: S.optional(S.NullOr(__S(8, __c2, 0))),
1477
+ session_id: S.optional(S.String),
1478
+ created_at: S.optional(S.NullOr(S.String)),
1479
+ started_at: S.optional(S.NullOr(S.String)),
1480
+ updated_at: S.optional(S.NullOr(S.String)),
1481
+ status: S.optional(S.String),
1482
+ progress_message: S.optional(S.NullOr(S.String)),
1483
+ job_duration: S.optional(S.NullOr(S.String)),
1484
+ result_distribution: S.optional(S.NullOr(S.String)),
1485
+ model_id: S.optional(S.NullOr(S.String)),
1486
+ parameters: S.optional(S.NullOr(S.String)),
1487
+ srn: S.optional(S.String),
1488
+ }),
1489
+ ).annotate({ identifier: "Job" });
1490
+ }
1491
+ }
1492
+ function __c2(j: number): any {
1493
+ switch (j) {
1494
+ case 0:
1495
+ return S.Array(S.Unknown);
1496
+ }
1497
+ }
1498
+ function __c3(j: number): any {
1499
+ switch (j) {
1500
+ case 0:
1501
+ return S.suspend(() =>
1502
+ S.Struct({
1503
+ process_id: S.String.pipe(T.Label()),
1504
+ }).pipe(
1505
+ T.Http({
1506
+ method: "POST",
1507
+ uri: "/qaas/v1alpha1/processes/{process_id}/cancel",
1508
+ code: 200,
1509
+ baseUrl: "https://api.scaleway.com",
1510
+ }),
1511
+ ),
1512
+ ).annotate({ identifier: "CancelProcessRequest" });
1513
+ }
1514
+ }
1515
+ function __c4(j: number): any {
1516
+ switch (j) {
1517
+ case 0:
1518
+ return S.suspend(() =>
1519
+ S.Struct({
1520
+ id: S.optional(S.String),
1521
+ name: S.optional(S.String),
1522
+ application_id: S.optional(S.NullOr(S.String)),
1523
+ platform_id: S.optional(S.NullOr(S.String)),
1524
+ attached_session_ids: S.optional(__S(20, __c5, 0)),
1525
+ created_at: S.optional(S.NullOr(S.String)),
1526
+ started_at: S.optional(S.NullOr(S.String)),
1527
+ updated_at: S.optional(S.NullOr(S.String)),
1528
+ finished_at: S.optional(S.NullOr(S.String)),
1529
+ status: S.optional(S.String),
1530
+ project_id: S.optional(S.String),
1531
+ tags: S.optional(__S(20, __c5, 0)),
1532
+ progress: S.optional(S.NullOr(S.Number)),
1533
+ progress_message: S.optional(S.NullOr(S.String)),
1534
+ input: S.optional(S.NullOr(S.String)),
1535
+ srn: S.optional(S.String),
1536
+ }),
1537
+ ).annotate({ identifier: "Process" });
1538
+ }
1539
+ }
1540
+ function __c5(j: number): any {
1541
+ switch (j) {
1542
+ case 0:
1543
+ return S.Array(S.String);
1544
+ }
1545
+ }
1546
+ function __c6(j: number): any {
1547
+ switch (j) {
1548
+ case 0:
1549
+ return S.suspend(() =>
1550
+ S.Struct({
1551
+ booking_id: S.String.pipe(T.Label()),
1552
+ }).pipe(
1553
+ T.Http({
1554
+ method: "GET",
1555
+ uri: "/qaas/v1alpha1/bookings/{booking_id}",
1556
+ code: 200,
1557
+ baseUrl: "https://api.scaleway.com",
1558
+ }),
1559
+ ),
1560
+ ).annotate({ identifier: "GetBookingRequest" });
1561
+ }
1562
+ }
1563
+ function __c7(j: number): any {
1564
+ switch (j) {
1565
+ case 0:
1566
+ return S.suspend(() =>
1567
+ S.Struct({
1568
+ id: S.optional(S.String),
1569
+ created_at: S.optional(S.NullOr(S.String)),
1570
+ started_at: S.optional(S.NullOr(S.String)),
1571
+ updated_at: S.optional(S.NullOr(S.String)),
1572
+ finished_at: S.optional(S.NullOr(S.String)),
1573
+ status: S.optional(S.String),
1574
+ description: S.optional(S.String),
1575
+ progress_message: S.optional(S.String),
1576
+ time_zone: S.optional(S.NullOr(S.String)),
1577
+ srn: S.optional(S.String),
1578
+ }),
1579
+ ).annotate({ identifier: "Booking" });
1580
+ }
1581
+ }
1582
+ function __c8(j: number): any {
1583
+ switch (j) {
1584
+ case 0:
1585
+ return S.suspend(() =>
1586
+ S.Struct({
1587
+ job_id: S.String.pipe(T.Label()),
1588
+ }).pipe(
1589
+ T.Http({
1590
+ method: "GET",
1591
+ uri: "/qaas/v1alpha1/jobs/{job_id}",
1592
+ code: 200,
1593
+ baseUrl: "https://api.scaleway.com",
1594
+ }),
1595
+ ),
1596
+ ).annotate({ identifier: "GetJobRequest" });
1597
+ }
1598
+ }
1599
+ function __c9(j: number): any {
1600
+ switch (j) {
1601
+ case 0:
1602
+ return S.suspend(() =>
1603
+ S.Struct({
1604
+ job_id: S.String.pipe(T.Label()),
1605
+ }).pipe(
1606
+ T.Http({
1607
+ method: "GET",
1608
+ uri: "/qaas/v1alpha1/jobs/{job_id}/circuit",
1609
+ code: 200,
1610
+ baseUrl: "https://api.scaleway.com",
1611
+ }),
1612
+ ),
1613
+ ).annotate({ identifier: "GetJobCircuitRequest" });
1614
+ }
1615
+ }
1616
+ function __c10(j: number): any {
1617
+ switch (j) {
1618
+ case 0:
1619
+ return S.suspend(() =>
1620
+ S.Struct({
1621
+ model_id: S.String.pipe(T.Label()),
1622
+ }).pipe(
1623
+ T.Http({
1624
+ method: "GET",
1625
+ uri: "/qaas/v1alpha1/models/{model_id}",
1626
+ code: 200,
1627
+ baseUrl: "https://api.scaleway.com",
1628
+ }),
1629
+ ),
1630
+ ).annotate({ identifier: "GetModelRequest" });
1631
+ }
1632
+ }
1633
+ function __c11(j: number): any {
1634
+ switch (j) {
1635
+ case 0:
1636
+ return S.suspend(() =>
1637
+ S.Struct({
1638
+ platform_id: S.String.pipe(T.Label()),
1639
+ }).pipe(
1640
+ T.Http({
1641
+ method: "GET",
1642
+ uri: "/qaas/v1alpha1/platforms/{platform_id}",
1643
+ code: 200,
1644
+ baseUrl: "https://api.scaleway.com",
1645
+ }),
1646
+ ),
1647
+ ).annotate({ identifier: "GetPlatformRequest" });
1648
+ }
1649
+ }
1650
+ function __c12(j: number): any {
1651
+ switch (j) {
1652
+ case 0:
1653
+ return S.suspend(() =>
1654
+ S.Struct({
1655
+ currency_code: S.optional(S.String),
1656
+ units: S.optional(S.Number),
1657
+ nanos: S.optional(S.Number),
1658
+ }),
1659
+ ).annotate({ identifier: "GoogleTypeMoney" });
1660
+ case 1:
1661
+ return S.suspend(() =>
1662
+ S.Struct({
1663
+ name: S.optional(S.String),
1664
+ vcpus: S.optional(S.Number),
1665
+ gpus: S.optional(S.Number),
1666
+ gpus_network: S.optional(S.String),
1667
+ ram: S.optional(S.Number),
1668
+ vram: S.optional(S.Number),
1669
+ }),
1670
+ ).annotate({ identifier: "PlatformHardware" });
1671
+ case 2:
1672
+ return S.suspend(() =>
1673
+ S.Struct({
1674
+ min_duration: S.optional(S.NullOr(S.String)),
1675
+ max_duration: S.optional(S.NullOr(S.String)),
1676
+ max_cancellation_duration: S.optional(S.NullOr(S.String)),
1677
+ max_planification_duration: S.optional(S.NullOr(S.String)),
1678
+ min_planification_duration: S.optional(S.NullOr(S.String)),
1679
+ max_booking_per_week: S.optional(S.Number),
1680
+ max_booking_per_day: S.optional(S.Number),
1681
+ }),
1682
+ ).annotate({ identifier: "PlatformBookingRequirement" });
1683
+ case 3:
1684
+ return S.suspend(() =>
1685
+ S.Struct({
1686
+ id: S.optional(S.String),
1687
+ version: S.optional(S.String),
1688
+ name: S.optional(S.String),
1689
+ provider_name: S.optional(S.String),
1690
+ backend_name: S.optional(S.String),
1691
+ type: S.optional(S.String),
1692
+ technology: S.optional(S.String),
1693
+ max_qubit_count: S.optional(S.Number),
1694
+ max_shot_count: S.optional(S.Number),
1695
+ max_circuit_count: S.optional(S.Number),
1696
+ availability: S.optional(S.String),
1697
+ metadata: S.optional(S.String),
1698
+ price_per_hour: S.optional(__S(48, __c12, 0)),
1699
+ price_per_shot: S.optional(__S(48, __c12, 0)),
1700
+ price_per_circuit: S.optional(__S(48, __c12, 0)),
1701
+ hardware: S.optional(__S(49, __c12, 1)),
1702
+ booking_requirement: S.optional(__S(50, __c12, 2)),
1703
+ description: S.optional(S.String),
1704
+ documentation_url: S.optional(S.String),
1705
+ is_bookable: S.optional(S.Boolean),
1706
+ srn: S.optional(S.String),
1707
+ }),
1708
+ ).annotate({ identifier: "Platform" });
1709
+ }
1710
+ }
1711
+ function __c13(j: number): any {
1712
+ switch (j) {
1713
+ case 0:
1714
+ return S.suspend(() =>
1715
+ S.Struct({
1716
+ process_id: S.String.pipe(T.Label()),
1717
+ }).pipe(
1718
+ T.Http({
1719
+ method: "GET",
1720
+ uri: "/qaas/v1alpha1/processes/{process_id}",
1721
+ code: 200,
1722
+ baseUrl: "https://api.scaleway.com",
1723
+ }),
1724
+ ),
1725
+ ).annotate({ identifier: "GetProcessRequest" });
1726
+ }
1727
+ }
1728
+ function __c14(j: number): any {
1729
+ switch (j) {
1730
+ case 0:
1731
+ return S.suspend(() =>
1732
+ S.Struct({
1733
+ session_id: S.String.pipe(T.Label()),
1734
+ }).pipe(
1735
+ T.Http({
1736
+ method: "GET",
1737
+ uri: "/qaas/v1alpha1/sessions/{session_id}",
1738
+ code: 200,
1739
+ baseUrl: "https://api.scaleway.com",
1740
+ }),
1741
+ ),
1742
+ ).annotate({ identifier: "GetSessionRequest" });
1743
+ }
1744
+ }
1745
+ function __c15(j: number): any {
1746
+ switch (j) {
1747
+ case 0:
1748
+ return S.suspend(() =>
1749
+ S.Struct({
1750
+ name: S.optional(S.String.pipe(T.Query())),
1751
+ application_type: S.optional(S.String.pipe(T.Query())),
1752
+ page: S.optional(S.Number.pipe(T.Query())),
1753
+ page_size: S.optional(S.Number.pipe(T.Query())),
1754
+ order_by: S.optional(S.String.pipe(T.Query())),
1755
+ }).pipe(
1756
+ T.Http({
1757
+ method: "GET",
1758
+ uri: "/qaas/v1alpha1/applications",
1759
+ code: 200,
1760
+ baseUrl: "https://api.scaleway.com",
1761
+ }),
1762
+ ),
1763
+ ).annotate({ identifier: "ListApplicationsRequest" });
1764
+ case 1:
1765
+ return S.Array(__S(168, __c42, 0));
1766
+ case 2:
1767
+ return S.suspend(() =>
1768
+ S.Struct({
1769
+ total_count: S.optional(S.Number),
1770
+ applications: __S(61, __c15, 1),
1771
+ }),
1772
+ ).annotate({ identifier: "ListApplicationsResponse" });
1773
+ }
1774
+ }
1775
+ function __c16(j: number): any {
1776
+ switch (j) {
1777
+ case 0:
1778
+ return S.suspend(() =>
1779
+ S.Struct({
1780
+ project_id: S.optional(S.String.pipe(T.Query())),
1781
+ platform_id: S.optional(S.String.pipe(T.Query())),
1782
+ page: S.optional(S.Number.pipe(T.Query())),
1783
+ page_size: S.optional(S.Number.pipe(T.Query())),
1784
+ order_by: S.optional(S.String.pipe(T.Query())),
1785
+ }).pipe(
1786
+ T.Http({
1787
+ method: "GET",
1788
+ uri: "/qaas/v1alpha1/bookings",
1789
+ code: 200,
1790
+ baseUrl: "https://api.scaleway.com",
1791
+ }),
1792
+ ),
1793
+ ).annotate({ identifier: "ListBookingsRequest" });
1794
+ case 1:
1795
+ return S.Array(__S(28, __c7, 0));
1796
+ case 2:
1797
+ return S.suspend(() =>
1798
+ S.Struct({
1799
+ total_count: S.optional(S.Number),
1800
+ bookings: __S(65, __c16, 1),
1801
+ }),
1802
+ ).annotate({ identifier: "ListBookingsResponse" });
1803
+ }
1804
+ }
1805
+ function __c17(j: number): any {
1806
+ switch (j) {
1807
+ case 0:
1808
+ return S.suspend(() =>
1809
+ S.Struct({
1810
+ job_id: S.String.pipe(T.Label()),
1811
+ page: S.optional(S.Number.pipe(T.Query())),
1812
+ page_size: S.optional(S.Number.pipe(T.Query())),
1813
+ order_by: S.optional(S.String.pipe(T.Query())),
1814
+ }).pipe(
1815
+ T.Http({
1816
+ method: "GET",
1817
+ uri: "/qaas/v1alpha1/jobs/{job_id}/results",
1818
+ code: 200,
1819
+ baseUrl: "https://api.scaleway.com",
1820
+ }),
1821
+ ),
1822
+ ).annotate({ identifier: "ListJobResultsRequest" });
1823
+ case 1:
1824
+ return S.suspend(() =>
1825
+ S.Struct({
1826
+ job_id: S.optional(S.String),
1827
+ result: S.optional(S.NullOr(S.String)),
1828
+ url: S.optional(S.NullOr(S.String)),
1829
+ created_at: S.optional(S.NullOr(S.String)),
1830
+ }),
1831
+ ).annotate({ identifier: "JobResult" });
1832
+ case 2:
1833
+ return S.Array(__S(69, __c17, 1));
1834
+ case 3:
1835
+ return S.suspend(() =>
1836
+ S.Struct({
1837
+ total_count: S.optional(S.Number),
1838
+ job_results: __S(70, __c17, 2),
1839
+ }),
1840
+ ).annotate({ identifier: "ListJobResultsResponse" });
1841
+ }
1842
+ }
1843
+ function __c18(j: number): any {
1844
+ switch (j) {
1845
+ case 0:
1846
+ return S.suspend(() =>
1847
+ S.Struct({
1848
+ name: S.String,
1849
+ tags: S.optional(S.NullOr(__S(8, __c2, 0))),
1850
+ session_id: S.String,
1851
+ circuit: __S(76, __c19, 0),
1852
+ max_duration: S.optional(S.NullOr(S.String)),
1853
+ model_id: S.optional(S.NullOr(S.String)),
1854
+ parameters: S.optional(S.NullOr(S.String)),
1855
+ }).pipe(
1856
+ T.Http({
1857
+ method: "POST",
1858
+ uri: "/qaas/v1alpha1/jobs",
1859
+ code: 200,
1860
+ baseUrl: "https://api.scaleway.com",
1861
+ }),
1862
+ ),
1863
+ ).annotate({ identifier: "CreateJobRequest" });
1864
+ }
1865
+ }
1866
+ function __c19(j: number): any {
1867
+ switch (j) {
1868
+ case 0:
1869
+ return S.suspend(() =>
1870
+ S.Struct({
1871
+ perceval_circuit: S.optional(S.NullOr(S.String)),
1872
+ qiskit_circuit: S.optional(S.NullOr(S.String)),
1873
+ }),
1874
+ ).annotate({ identifier: "JobCircuit" });
1875
+ }
1876
+ }
1877
+ function __c20(j: number): any {
1878
+ switch (j) {
1879
+ case 0:
1880
+ return S.suspend(() =>
1881
+ S.Struct({
1882
+ tags: S.optional(__S(20, __c5, 0).pipe(T.Query())),
1883
+ page: S.optional(S.Number.pipe(T.Query())),
1884
+ page_size: S.optional(S.Number.pipe(T.Query())),
1885
+ order_by: S.optional(S.String.pipe(T.Query())),
1886
+ session_id: S.optional(S.String.pipe(T.Query())),
1887
+ project_id: S.optional(S.String.pipe(T.Query())),
1888
+ }).pipe(
1889
+ T.Http({
1890
+ method: "GET",
1891
+ uri: "/qaas/v1alpha1/jobs",
1892
+ code: 200,
1893
+ baseUrl: "https://api.scaleway.com",
1894
+ }),
1895
+ ),
1896
+ ).annotate({ identifier: "ListJobsRequest" });
1897
+ case 1:
1898
+ return S.Array(__S(4, __c1, 0));
1899
+ case 2:
1900
+ return S.suspend(() =>
1901
+ S.Struct({
1902
+ total_count: S.optional(S.Number),
1903
+ jobs: __S(81, __c20, 1),
1904
+ }),
1905
+ ).annotate({ identifier: "ListJobsResponse" });
1906
+ }
1907
+ }
1908
+ function __c21(j: number): any {
1909
+ switch (j) {
1910
+ case 0:
1911
+ return S.suspend(() =>
1912
+ S.Struct({
1913
+ project_id: S.String.pipe(T.Query()),
1914
+ page: S.optional(S.Number.pipe(T.Query())),
1915
+ page_size: S.optional(S.Number.pipe(T.Query())),
1916
+ order_by: S.optional(S.String.pipe(T.Query())),
1917
+ }).pipe(
1918
+ T.Http({
1919
+ method: "GET",
1920
+ uri: "/qaas/v1alpha1/models",
1921
+ code: 200,
1922
+ baseUrl: "https://api.scaleway.com",
1923
+ }),
1924
+ ),
1925
+ ).annotate({ identifier: "ListModelsRequest" });
1926
+ case 1:
1927
+ return S.Array(__S(124, __c31, 0));
1928
+ case 2:
1929
+ return S.suspend(() =>
1930
+ S.Struct({
1931
+ total_count: S.optional(S.Number),
1932
+ models: __S(85, __c21, 1),
1933
+ }),
1934
+ ).annotate({ identifier: "ListModelsResponse" });
1935
+ }
1936
+ }
1937
+ function __c22(j: number): any {
1938
+ switch (j) {
1939
+ case 0:
1940
+ return S.suspend(() =>
1941
+ S.Struct({
1942
+ provider_name: S.optional(S.String.pipe(T.Query())),
1943
+ backend_name: S.optional(S.String.pipe(T.Query())),
1944
+ name: S.optional(S.String.pipe(T.Query())),
1945
+ platform_type: S.optional(S.String.pipe(T.Query())),
1946
+ platform_technology: S.optional(S.String.pipe(T.Query())),
1947
+ page: S.optional(S.Number.pipe(T.Query())),
1948
+ page_size: S.optional(S.Number.pipe(T.Query())),
1949
+ order_by: S.optional(S.String.pipe(T.Query())),
1950
+ }).pipe(
1951
+ T.Http({
1952
+ method: "GET",
1953
+ uri: "/qaas/v1alpha1/platforms",
1954
+ code: 200,
1955
+ baseUrl: "https://api.scaleway.com",
1956
+ }),
1957
+ ),
1958
+ ).annotate({ identifier: "ListPlatformsRequest" });
1959
+ case 1:
1960
+ return S.Array(__S(51, __c12, 3));
1961
+ case 2:
1962
+ return S.suspend(() =>
1963
+ S.Struct({
1964
+ total_count: S.optional(S.Number),
1965
+ platforms: __S(89, __c22, 1),
1966
+ }),
1967
+ ).annotate({ identifier: "ListPlatformsResponse" });
1968
+ }
1969
+ }
1970
+ function __c23(j: number): any {
1971
+ switch (j) {
1972
+ case 0:
1973
+ return S.suspend(() =>
1974
+ S.Struct({
1975
+ application_id: S.optional(S.String.pipe(T.Query())),
1976
+ tags: S.optional(__S(20, __c5, 0).pipe(T.Query())),
1977
+ page: S.optional(S.Number.pipe(T.Query())),
1978
+ page_size: S.optional(S.Number.pipe(T.Query())),
1979
+ order_by: S.optional(S.String.pipe(T.Query())),
1980
+ project_id: S.String.pipe(T.Query()),
1981
+ }).pipe(
1982
+ T.Http({
1983
+ method: "GET",
1984
+ uri: "/qaas/v1alpha1/processes",
1985
+ code: 200,
1986
+ baseUrl: "https://api.scaleway.com",
1987
+ }),
1988
+ ),
1989
+ ).annotate({ identifier: "ListProcessesRequest" });
1990
+ case 1:
1991
+ return S.Array(__S(16, __c4, 0));
1992
+ case 2:
1993
+ return S.suspend(() =>
1994
+ S.Struct({
1995
+ total_count: S.optional(S.Number),
1996
+ processes: __S(93, __c23, 1),
1997
+ }),
1998
+ ).annotate({ identifier: "ListProcessesResponse" });
1999
+ }
2000
+ }
2001
+ function __c24(j: number): any {
2002
+ switch (j) {
2003
+ case 0:
2004
+ return S.suspend(() =>
2005
+ S.Struct({
2006
+ process_id: S.String.pipe(T.Label()),
2007
+ page: S.optional(S.Number.pipe(T.Query())),
2008
+ page_size: S.optional(S.Number.pipe(T.Query())),
2009
+ order_by: S.optional(S.String.pipe(T.Query())),
2010
+ }).pipe(
2011
+ T.Http({
2012
+ method: "GET",
2013
+ uri: "/qaas/v1alpha1/processes/{process_id}/results",
2014
+ code: 200,
2015
+ baseUrl: "https://api.scaleway.com",
2016
+ }),
2017
+ ),
2018
+ ).annotate({ identifier: "ListProcessResultsRequest" });
2019
+ case 1:
2020
+ return S.suspend(() =>
2021
+ S.Struct({
2022
+ process_id: S.optional(S.String),
2023
+ result: S.optional(S.String),
2024
+ created_at: S.optional(S.NullOr(S.String)),
2025
+ }),
2026
+ ).annotate({ identifier: "ProcessResult" });
2027
+ case 2:
2028
+ return S.Array(__S(97, __c24, 1));
2029
+ case 3:
2030
+ return S.suspend(() =>
2031
+ S.Struct({
2032
+ total_count: S.optional(S.Number),
2033
+ process_results: __S(98, __c24, 2),
2034
+ }),
2035
+ ).annotate({ identifier: "ListProcessResultsResponse" });
2036
+ }
2037
+ }
2038
+ function __c25(j: number): any {
2039
+ switch (j) {
2040
+ case 0:
2041
+ return S.suspend(() =>
2042
+ S.Struct({
2043
+ session_id: S.String.pipe(T.Label()),
2044
+ page: S.optional(S.Number.pipe(T.Query())),
2045
+ page_size: S.optional(S.Number.pipe(T.Query())),
2046
+ order_by: S.optional(S.String.pipe(T.Query())),
2047
+ }).pipe(
2048
+ T.Http({
2049
+ method: "GET",
2050
+ uri: "/qaas/v1alpha1/sessions/{session_id}/acls",
2051
+ code: 200,
2052
+ baseUrl: "https://api.scaleway.com",
2053
+ }),
2054
+ ),
2055
+ ).annotate({ identifier: "ListSessionACLsRequest" });
2056
+ case 1:
2057
+ return S.Array(S.String);
2058
+ case 2:
2059
+ return S.suspend(() =>
2060
+ S.Struct({
2061
+ total_count: S.optional(S.Number),
2062
+ acls: __S(101, __c25, 1),
2063
+ }),
2064
+ ).annotate({ identifier: "ListSessionACLsResponse" });
2065
+ }
2066
+ }
2067
+ function __c26(j: number): any {
2068
+ switch (j) {
2069
+ case 0:
2070
+ return S.suspend(() =>
2071
+ S.Struct({
2072
+ platform_id: S.optional(S.String.pipe(T.Query())),
2073
+ tags: S.optional(__S(20, __c5, 0).pipe(T.Query())),
2074
+ page: S.optional(S.Number.pipe(T.Query())),
2075
+ page_size: S.optional(S.Number.pipe(T.Query())),
2076
+ order_by: S.optional(S.String.pipe(T.Query())),
2077
+ project_id: S.String.pipe(T.Query()),
2078
+ }).pipe(
2079
+ T.Http({
2080
+ method: "GET",
2081
+ uri: "/qaas/v1alpha1/sessions",
2082
+ code: 200,
2083
+ baseUrl: "https://api.scaleway.com",
2084
+ }),
2085
+ ),
2086
+ ).annotate({ identifier: "ListSessionsRequest" });
2087
+ case 1:
2088
+ return S.Array(__S(144, __c36, 0));
2089
+ case 2:
2090
+ return S.suspend(() =>
2091
+ S.Struct({
2092
+ total_count: S.optional(S.Number),
2093
+ sessions: __S(105, __c26, 1),
2094
+ }),
2095
+ ).annotate({ identifier: "ListSessionsResponse" });
2096
+ }
2097
+ }
2098
+ function __c27(j: number): any {
2099
+ switch (j) {
2100
+ case 0:
2101
+ return S.suspend(() =>
2102
+ S.Struct({
2103
+ session_id: S.String.pipe(T.Label()),
2104
+ }).pipe(
2105
+ T.Http({
2106
+ method: "POST",
2107
+ uri: "/qaas/v1alpha1/sessions/{session_id}/terminate",
2108
+ code: 200,
2109
+ baseUrl: "https://api.scaleway.com",
2110
+ }),
2111
+ ),
2112
+ ).annotate({ identifier: "TerminateSessionRequest" });
2113
+ }
2114
+ }
2115
+ function __c28(j: number): any {
2116
+ switch (j) {
2117
+ case 0:
2118
+ return S.suspend(() =>
2119
+ S.Struct({
2120
+ booking_id: S.String.pipe(T.Label()),
2121
+ description: S.optional(S.NullOr(S.String)),
2122
+ }).pipe(
2123
+ T.Http({
2124
+ method: "PATCH",
2125
+ uri: "/qaas/v1alpha1/bookings/{booking_id}",
2126
+ code: 200,
2127
+ baseUrl: "https://api.scaleway.com",
2128
+ }),
2129
+ ),
2130
+ ).annotate({ identifier: "UpdateBookingRequest" });
2131
+ }
2132
+ }
2133
+ function __c29(j: number): any {
2134
+ switch (j) {
2135
+ case 0:
2136
+ return S.suspend(() =>
2137
+ S.Struct({
2138
+ job_id: S.String.pipe(T.Label()),
2139
+ name: S.optional(S.NullOr(S.String)),
2140
+ tags: S.optional(S.NullOr(__S(8, __c2, 0))),
2141
+ }).pipe(
2142
+ T.Http({
2143
+ method: "PATCH",
2144
+ uri: "/qaas/v1alpha1/jobs/{job_id}",
2145
+ code: 200,
2146
+ baseUrl: "https://api.scaleway.com",
2147
+ }),
2148
+ ),
2149
+ ).annotate({ identifier: "UpdateJobRequest" });
2150
+ }
2151
+ }
2152
+ function __c30(j: number): any {
2153
+ switch (j) {
2154
+ case 0:
2155
+ return S.suspend(() =>
2156
+ S.Struct({
2157
+ project_id: S.optional(S.String),
2158
+ payload: S.optional(S.NullOr(S.String)),
2159
+ }).pipe(
2160
+ T.Http({
2161
+ method: "POST",
2162
+ uri: "/qaas/v1alpha1/models",
2163
+ code: 200,
2164
+ baseUrl: "https://api.scaleway.com",
2165
+ }),
2166
+ ),
2167
+ ).annotate({ identifier: "CreateModelRequest" });
2168
+ }
2169
+ }
2170
+ function __c31(j: number): any {
2171
+ switch (j) {
2172
+ case 0:
2173
+ return S.suspend(() =>
2174
+ S.Struct({
2175
+ id: S.optional(S.String),
2176
+ created_at: S.optional(S.NullOr(S.String)),
2177
+ url: S.optional(S.NullOr(S.String)),
2178
+ project_id: S.optional(S.String),
2179
+ srn: S.optional(S.String),
2180
+ }),
2181
+ ).annotate({ identifier: "Model" });
2182
+ }
2183
+ }
2184
+ function __c32(j: number): any {
2185
+ switch (j) {
2186
+ case 0:
2187
+ return S.suspend(() =>
2188
+ S.Struct({
2189
+ process_id: S.String.pipe(T.Label()),
2190
+ name: S.optional(S.NullOr(S.String)),
2191
+ tags: S.optional(S.NullOr(__S(8, __c2, 0))),
2192
+ }).pipe(
2193
+ T.Http({
2194
+ method: "PATCH",
2195
+ uri: "/qaas/v1alpha1/processes/{process_id}",
2196
+ code: 200,
2197
+ baseUrl: "https://api.scaleway.com",
2198
+ }),
2199
+ ),
2200
+ ).annotate({ identifier: "UpdateProcessRequest" });
2201
+ }
2202
+ }
2203
+ function __c33(j: number): any {
2204
+ switch (j) {
2205
+ case 0:
2206
+ return S.suspend(() =>
2207
+ S.Struct({
2208
+ session_id: S.String.pipe(T.Label()),
2209
+ name: S.optional(S.NullOr(S.String)),
2210
+ max_idle_duration: S.optional(S.NullOr(S.String)),
2211
+ max_duration: S.optional(S.NullOr(S.String)),
2212
+ tags: S.optional(S.NullOr(__S(8, __c2, 0))),
2213
+ }).pipe(
2214
+ T.Http({
2215
+ method: "PATCH",
2216
+ uri: "/qaas/v1alpha1/sessions/{session_id}",
2217
+ code: 200,
2218
+ baseUrl: "https://api.scaleway.com",
2219
+ }),
2220
+ ),
2221
+ ).annotate({ identifier: "UpdateSessionRequest" });
2222
+ }
2223
+ }
2224
+ function __c34(j: number): any {
2225
+ switch (j) {
2226
+ case 0:
2227
+ return S.suspend(() =>
2228
+ S.Struct({
2229
+ project_id: S.String,
2230
+ platform_id: S.optional(S.NullOr(S.String)),
2231
+ application_id: S.optional(S.NullOr(S.String)),
2232
+ name: S.optional(S.String),
2233
+ input: S.optional(S.NullOr(S.String)),
2234
+ tags: S.optional(__S(20, __c5, 0)),
2235
+ }).pipe(
2236
+ T.Http({
2237
+ method: "POST",
2238
+ uri: "/qaas/v1alpha1/processes",
2239
+ code: 200,
2240
+ baseUrl: "https://api.scaleway.com",
2241
+ }),
2242
+ ),
2243
+ ).annotate({ identifier: "CreateProcessRequest" });
2244
+ }
2245
+ }
2246
+ function __c35(j: number): any {
2247
+ switch (j) {
2248
+ case 0:
2249
+ return S.suspend(() =>
2250
+ S.Struct({
2251
+ started_at: S.optional(S.NullOr(S.String)),
2252
+ finished_at: S.optional(S.NullOr(S.String)),
2253
+ description: S.optional(S.NullOr(S.String)),
2254
+ time_zone: S.optional(S.NullOr(S.String)),
2255
+ }),
2256
+ ).annotate({ identifier: "CreateSessionRequestBookingDemand" });
2257
+ case 1:
2258
+ return S.suspend(() =>
2259
+ S.Struct({
2260
+ project_id: S.String,
2261
+ platform_id: S.String,
2262
+ name: S.optional(S.NullOr(S.String)),
2263
+ max_idle_duration: S.optional(S.NullOr(S.String)),
2264
+ max_duration: S.optional(S.NullOr(S.String)),
2265
+ tags: S.optional(S.NullOr(__S(8, __c2, 0))),
2266
+ deduplication_id: S.optional(S.NullOr(S.String)),
2267
+ booking_demand: S.optional(__S(140, __c35, 0)),
2268
+ model_id: S.optional(S.NullOr(S.String)),
2269
+ parameters: S.optional(S.NullOr(S.String)),
2270
+ }).pipe(
2271
+ T.Http({
2272
+ method: "POST",
2273
+ uri: "/qaas/v1alpha1/sessions",
2274
+ code: 200,
2275
+ baseUrl: "https://api.scaleway.com",
2276
+ }),
2277
+ ),
2278
+ ).annotate({ identifier: "CreateSessionRequest" });
2279
+ }
2280
+ }
2281
+ function __c36(j: number): any {
2282
+ switch (j) {
2283
+ case 0:
2284
+ return S.suspend(() =>
2285
+ S.Struct({
2286
+ id: S.optional(S.String),
2287
+ name: S.optional(S.String),
2288
+ platform_id: S.optional(S.String),
2289
+ created_at: S.optional(S.NullOr(S.String)),
2290
+ started_at: S.optional(S.NullOr(S.String)),
2291
+ updated_at: S.optional(S.NullOr(S.String)),
2292
+ terminated_at: S.optional(S.NullOr(S.String)),
2293
+ max_idle_duration: S.optional(S.NullOr(S.String)),
2294
+ max_duration: S.optional(S.NullOr(S.String)),
2295
+ waiting_job_count: S.optional(S.Number),
2296
+ finished_job_count: S.optional(S.Number),
2297
+ status: S.optional(S.String),
2298
+ project_id: S.optional(S.String),
2299
+ tags: S.optional(S.NullOr(__S(8, __c2, 0))),
2300
+ deduplication_id: S.optional(S.String),
2301
+ origin_type: S.optional(S.String),
2302
+ origin_id: S.optional(S.NullOr(S.String)),
2303
+ progress_message: S.optional(S.NullOr(S.String)),
2304
+ booking_id: S.optional(S.NullOr(S.String)),
2305
+ model_id: S.optional(S.NullOr(S.String)),
2306
+ parameters: S.optional(S.NullOr(S.String)),
2307
+ srn: S.optional(S.String),
2308
+ }),
2309
+ ).annotate({ identifier: "Session" });
2310
+ }
2311
+ }
2312
+ function __c37(j: number): any {
2313
+ switch (j) {
2314
+ case 0:
2315
+ return S.suspend(() =>
2316
+ S.Struct({
2317
+ job_id: S.String.pipe(T.Label()),
2318
+ }).pipe(
2319
+ T.Http({
2320
+ method: "DELETE",
2321
+ uri: "/qaas/v1alpha1/jobs/{job_id}",
2322
+ code: 200,
2323
+ baseUrl: "https://api.scaleway.com",
2324
+ }),
2325
+ ),
2326
+ ).annotate({ identifier: "DeleteJobRequest" });
2327
+ }
2328
+ }
2329
+ function __c38(j: number): any {
2330
+ switch (j) {
2331
+ case 0:
2332
+ return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteJobResponse" });
2333
+ }
2334
+ }
2335
+ function __c39(j: number): any {
2336
+ switch (j) {
2337
+ case 0:
2338
+ return S.suspend(() =>
2339
+ S.Struct({
2340
+ process_id: S.String.pipe(T.Label()),
2341
+ }).pipe(
2342
+ T.Http({
2343
+ method: "DELETE",
2344
+ uri: "/qaas/v1alpha1/processes/{process_id}",
2345
+ code: 200,
2346
+ baseUrl: "https://api.scaleway.com",
2347
+ }),
2348
+ ),
2349
+ ).annotate({ identifier: "DeleteProcessRequest" });
2350
+ }
2351
+ }
2352
+ function __c40(j: number): any {
2353
+ switch (j) {
2354
+ case 0:
2355
+ return S.suspend(() =>
2356
+ S.Struct({
2357
+ session_id: S.String.pipe(T.Label()),
2358
+ }).pipe(
2359
+ T.Http({
2360
+ method: "DELETE",
2361
+ uri: "/qaas/v1alpha1/sessions/{session_id}",
2362
+ code: 200,
2363
+ baseUrl: "https://api.scaleway.com",
2364
+ }),
2365
+ ),
2366
+ ).annotate({ identifier: "DeleteSessionRequest" });
2367
+ }
2368
+ }
2369
+ function __c41(j: number): any {
2370
+ switch (j) {
2371
+ case 0:
2372
+ return S.suspend(() =>
2373
+ S.Struct({
2374
+ application_id: S.String.pipe(T.Label()),
2375
+ }).pipe(
2376
+ T.Http({
2377
+ method: "GET",
2378
+ uri: "/qaas/v1alpha1/applications/{application_id}",
2379
+ code: 200,
2380
+ baseUrl: "https://api.scaleway.com",
2381
+ }),
2382
+ ),
2383
+ ).annotate({ identifier: "GetApplicationRequest" });
2384
+ }
2385
+ }
2386
+ function __c42(j: number): any {
2387
+ switch (j) {
2388
+ case 0:
2389
+ return S.suspend(() =>
2390
+ S.Struct({
2391
+ id: S.optional(S.String),
2392
+ name: S.optional(S.String),
2393
+ type: S.optional(S.String),
2394
+ compatible_platform_ids: S.optional(__S(20, __c5, 0)),
2395
+ input_template: S.optional(S.String),
2396
+ srn: S.optional(S.String),
2397
+ }),
2398
+ ).annotate({ identifier: "Application" });
2399
+ }
2400
+ }
2401
+ // Schema table: entry i is schema j of builder f, made on first reach.
2402
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
2403
+ return (__s[i] ??= __L.at(f, j));
2404
+ }