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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (639) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +171 -4
  3. package/lib/.lazy.json +1 -0
  4. package/lib/_bundle/lazy.js +4 -0
  5. package/lib/_bundle/sdk.js +2 -0
  6. package/lib/_bundle/sdk.js.map +1 -0
  7. package/lib/credentials.d.ts +44 -0
  8. package/lib/credentials.d.ts.map +1 -0
  9. package/lib/credentials.js +1 -0
  10. package/lib/errors.d.ts +285 -0
  11. package/lib/errors.d.ts.map +1 -0
  12. package/lib/errors.js +1 -0
  13. package/lib/index.d.ts +48 -0
  14. package/lib/index.d.ts.map +1 -0
  15. package/lib/index.js +6 -0
  16. package/lib/pagination.d.ts +10 -0
  17. package/lib/pagination.d.ts.map +1 -0
  18. package/lib/pagination.js +1 -0
  19. package/lib/protocol.d.ts +48 -0
  20. package/lib/protocol.d.ts.map +1 -0
  21. package/lib/protocol.js +1 -0
  22. package/lib/retry.d.ts +31 -0
  23. package/lib/retry.d.ts.map +1 -0
  24. package/lib/retry.js +1 -0
  25. package/lib/services/account_contract_v3.d.ts +124 -0
  26. package/lib/services/account_contract_v3.d.ts.map +1 -0
  27. package/lib/services/account_contract_v3.js +2 -0
  28. package/lib/services/account_contract_v3.js.map +1 -0
  29. package/lib/services/account_iso_code_v3.d.ts +44 -0
  30. package/lib/services/account_iso_code_v3.d.ts.map +1 -0
  31. package/lib/services/account_iso_code_v3.js +2 -0
  32. package/lib/services/account_iso_code_v3.js.map +1 -0
  33. package/lib/services/account_organization_v3.d.ts +290 -0
  34. package/lib/services/account_organization_v3.d.ts.map +1 -0
  35. package/lib/services/account_organization_v3.js +2 -0
  36. package/lib/services/account_organization_v3.js.map +1 -0
  37. package/lib/services/account_project_v3.d.ts +173 -0
  38. package/lib/services/account_project_v3.d.ts.map +1 -0
  39. package/lib/services/account_project_v3.js +2 -0
  40. package/lib/services/account_project_v3.js.map +1 -0
  41. package/lib/services/account_unauthenticated_user_v3.d.ts +479 -0
  42. package/lib/services/account_unauthenticated_user_v3.d.ts.map +1 -0
  43. package/lib/services/account_unauthenticated_user_v3.js +35 -0
  44. package/lib/services/account_unauthenticated_user_v3.js.map +1 -0
  45. package/lib/services/account_unauthenticated_v3.d.ts +18 -0
  46. package/lib/services/account_unauthenticated_v3.d.ts.map +1 -0
  47. package/lib/services/account_unauthenticated_v3.js +2 -0
  48. package/lib/services/account_unauthenticated_v3.js.map +1 -0
  49. package/lib/services/account_user_v3.d.ts +522 -0
  50. package/lib/services/account_user_v3.d.ts.map +1 -0
  51. package/lib/services/account_user_v3.js +39 -0
  52. package/lib/services/account_user_v3.js.map +1 -0
  53. package/lib/services/annotations_v1.d.ts +260 -0
  54. package/lib/services/annotations_v1.d.ts.map +1 -0
  55. package/lib/services/annotations_v1.js +2 -0
  56. package/lib/services/annotations_v1.js.map +1 -0
  57. package/lib/services/baremetal_private_network_v1.d.ts +95 -0
  58. package/lib/services/baremetal_private_network_v1.d.ts.map +1 -0
  59. package/lib/services/baremetal_private_network_v1.js +2 -0
  60. package/lib/services/baremetal_private_network_v1.js.map +1 -0
  61. package/lib/services/baremetal_private_network_v3.d.ts +110 -0
  62. package/lib/services/baremetal_private_network_v3.d.ts.map +1 -0
  63. package/lib/services/baremetal_private_network_v3.js +2 -0
  64. package/lib/services/baremetal_private_network_v3.js.map +1 -0
  65. package/lib/services/baremetal_v1.d.ts +1089 -0
  66. package/lib/services/baremetal_v1.d.ts.map +1 -0
  67. package/lib/services/baremetal_v1.js +52 -0
  68. package/lib/services/baremetal_v1.js.map +1 -0
  69. package/lib/services/billing_electronic_billing_v2.d.ts +86 -0
  70. package/lib/services/billing_electronic_billing_v2.d.ts.map +1 -0
  71. package/lib/services/billing_electronic_billing_v2.js +2 -0
  72. package/lib/services/billing_electronic_billing_v2.js.map +1 -0
  73. package/lib/services/billing_v2.d.ts +187 -0
  74. package/lib/services/billing_v2.d.ts.map +1 -0
  75. package/lib/services/billing_v2.js +2 -0
  76. package/lib/services/billing_v2.js.map +1 -0
  77. package/lib/services/block_v1.d.ts +401 -0
  78. package/lib/services/block_v1.d.ts.map +1 -0
  79. package/lib/services/block_v1.js +27 -0
  80. package/lib/services/block_v1.js.map +1 -0
  81. package/lib/services/cockpit_global_v1.d.ts +75 -0
  82. package/lib/services/cockpit_global_v1.d.ts.map +1 -0
  83. package/lib/services/cockpit_global_v1.js +2 -0
  84. package/lib/services/cockpit_global_v1.js.map +1 -0
  85. package/lib/services/cockpit_regional_v1.d.ts +739 -0
  86. package/lib/services/cockpit_regional_v1.d.ts.map +1 -0
  87. package/lib/services/cockpit_regional_v1.js +47 -0
  88. package/lib/services/cockpit_regional_v1.js.map +1 -0
  89. package/lib/services/containers_v1.d.ts +822 -0
  90. package/lib/services/containers_v1.d.ts.map +1 -0
  91. package/lib/services/containers_v1.js +39 -0
  92. package/lib/services/containers_v1.js.map +1 -0
  93. package/lib/services/dedibox_billing_v1.d.ts +151 -0
  94. package/lib/services/dedibox_billing_v1.d.ts.map +1 -0
  95. package/lib/services/dedibox_billing_v1.js +2 -0
  96. package/lib/services/dedibox_billing_v1.js.map +1 -0
  97. package/lib/services/dedibox_ipv6_block_v1.d.ts +119 -0
  98. package/lib/services/dedibox_ipv6_block_v1.d.ts.map +1 -0
  99. package/lib/services/dedibox_ipv6_block_v1.js +2 -0
  100. package/lib/services/dedibox_ipv6_block_v1.js.map +1 -0
  101. package/lib/services/dedibox_rpn_san_v1.d.ts +486 -0
  102. package/lib/services/dedibox_rpn_san_v1.d.ts.map +1 -0
  103. package/lib/services/dedibox_rpn_san_v1.js +2 -0
  104. package/lib/services/dedibox_rpn_san_v1.js.map +1 -0
  105. package/lib/services/dedibox_rpn_v1.d.ts +68 -0
  106. package/lib/services/dedibox_rpn_v1.d.ts.map +1 -0
  107. package/lib/services/dedibox_rpn_v1.js +2 -0
  108. package/lib/services/dedibox_rpn_v1.js.map +1 -0
  109. package/lib/services/dedibox_rpn_v1_v1.d.ts +687 -0
  110. package/lib/services/dedibox_rpn_v1_v1.d.ts.map +1 -0
  111. package/lib/services/dedibox_rpn_v1_v1.js +30 -0
  112. package/lib/services/dedibox_rpn_v1_v1.js.map +1 -0
  113. package/lib/services/dedibox_rpn_v2_v1.d.ts +646 -0
  114. package/lib/services/dedibox_rpn_v2_v1.d.ts.map +1 -0
  115. package/lib/services/dedibox_rpn_v2_v1.js +27 -0
  116. package/lib/services/dedibox_rpn_v2_v1.js.map +1 -0
  117. package/lib/services/dedibox_v1.d.ts +1351 -0
  118. package/lib/services/dedibox_v1.d.ts.map +1 -0
  119. package/lib/services/dedibox_v1.js +70 -0
  120. package/lib/services/dedibox_v1.js.map +1 -0
  121. package/lib/services/generative_apis_openai_v1.d.ts +772 -0
  122. package/lib/services/generative_apis_openai_v1.d.ts.map +1 -0
  123. package/lib/services/generative_apis_openai_v1.js +24 -0
  124. package/lib/services/generative_apis_openai_v1.js.map +1 -0
  125. package/lib/services/generative_apis_v1.d.ts +82 -0
  126. package/lib/services/generative_apis_v1.d.ts.map +1 -0
  127. package/lib/services/generative_apis_v1.js +2 -0
  128. package/lib/services/generative_apis_v1.js.map +1 -0
  129. package/lib/services/index.d.ts +57 -0
  130. package/lib/services/index.d.ts.map +1 -0
  131. package/lib/services/index.js +56 -0
  132. package/lib/services/inference_v1.d.ts +460 -0
  133. package/lib/services/inference_v1.d.ts.map +1 -0
  134. package/lib/services/inference_v1.js +33 -0
  135. package/lib/services/inference_v1.js.map +1 -0
  136. package/lib/services/instance_v1.d.ts +2183 -0
  137. package/lib/services/instance_v1.d.ts.map +1 -0
  138. package/lib/services/instance_v1.js +112 -0
  139. package/lib/services/instance_v1.js.map +1 -0
  140. package/lib/services/iot_v1.d.ts +837 -0
  141. package/lib/services/iot_v1.d.ts.map +1 -0
  142. package/lib/services/iot_v1.js +50 -0
  143. package/lib/services/iot_v1.js.map +1 -0
  144. package/lib/services/ipam_v1.d.ts +244 -0
  145. package/lib/services/ipam_v1.d.ts.map +1 -0
  146. package/lib/services/ipam_v1.js +2 -0
  147. package/lib/services/ipam_v1.js.map +1 -0
  148. package/lib/services/k8s_v1.d.ts +1223 -0
  149. package/lib/services/k8s_v1.d.ts.map +1 -0
  150. package/lib/services/k8s_v1.js +61 -0
  151. package/lib/services/k8s_v1.js.map +1 -0
  152. package/lib/services/lb_zoned_v1.d.ts +1517 -0
  153. package/lib/services/lb_zoned_v1.d.ts.map +1 -0
  154. package/lib/services/lb_zoned_v1.js +75 -0
  155. package/lib/services/lb_zoned_v1.js.map +1 -0
  156. package/lib/services/marketplace_console_v2.d.ts +72 -0
  157. package/lib/services/marketplace_console_v2.d.ts.map +1 -0
  158. package/lib/services/marketplace_console_v2.js +2 -0
  159. package/lib/services/marketplace_console_v2.js.map +1 -0
  160. package/lib/services/marketplace_v2.d.ts +169 -0
  161. package/lib/services/marketplace_v2.d.ts.map +1 -0
  162. package/lib/services/marketplace_v2.js +2 -0
  163. package/lib/services/marketplace_v2.js.map +1 -0
  164. package/lib/services/mongodb_v1.d.ts +698 -0
  165. package/lib/services/mongodb_v1.d.ts.map +1 -0
  166. package/lib/services/mongodb_v1.js +43 -0
  167. package/lib/services/mongodb_v1.js.map +1 -0
  168. package/lib/services/partner_v1.d.ts +142 -0
  169. package/lib/services/partner_v1.d.ts.map +1 -0
  170. package/lib/services/partner_v1.js +2 -0
  171. package/lib/services/partner_v1.js.map +1 -0
  172. package/lib/services/rdb_encryption_v1.d.ts +17 -0
  173. package/lib/services/rdb_encryption_v1.d.ts.map +1 -0
  174. package/lib/services/rdb_encryption_v1.js +2 -0
  175. package/lib/services/rdb_encryption_v1.js.map +1 -0
  176. package/lib/services/rdb_v1.d.ts +1422 -0
  177. package/lib/services/rdb_v1.d.ts.map +1 -0
  178. package/lib/services/rdb_v1.js +87 -0
  179. package/lib/services/rdb_v1.js.map +1 -0
  180. package/lib/services/redis_v1.d.ts +602 -0
  181. package/lib/services/redis_v1.d.ts.map +1 -0
  182. package/lib/services/redis_v1.js +42 -0
  183. package/lib/services/redis_v1.js.map +1 -0
  184. package/lib/services/registry_v1.d.ts +281 -0
  185. package/lib/services/registry_v1.d.ts.map +1 -0
  186. package/lib/services/registry_v1.js +2 -0
  187. package/lib/services/registry_v1.js.map +1 -0
  188. package/lib/services/reseller_v1.d.ts +81 -0
  189. package/lib/services/reseller_v1.d.ts.map +1 -0
  190. package/lib/services/reseller_v1.js +2 -0
  191. package/lib/services/reseller_v1.js.map +1 -0
  192. package/lib/services/vpc_gw_v2.d.ts +640 -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 +1755 -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 +479 -0
  448. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts.map +1 -0
  449. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js +2 -0
  450. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js.map +1 -0
  451. package/lib/unstable-services/qaas_v1alpha1.d.ts +764 -0
  452. package/lib/unstable-services/qaas_v1alpha1.d.ts.map +1 -0
  453. package/lib/unstable-services/qaas_v1alpha1.js +51 -0
  454. package/lib/unstable-services/qaas_v1alpha1.js.map +1 -0
  455. package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts +794 -0
  456. package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts.map +1 -0
  457. package/lib/unstable-services/s2s_vpn_v1alpha1.js +45 -0
  458. package/lib/unstable-services/s2s_vpn_v1alpha1.js.map +1 -0
  459. package/lib/unstable-services/search_v1alpha1.d.ts +120 -0
  460. package/lib/unstable-services/search_v1alpha1.d.ts.map +1 -0
  461. package/lib/unstable-services/search_v1alpha1.js +2 -0
  462. package/lib/unstable-services/search_v1alpha1.js.map +1 -0
  463. package/lib/unstable-services/searchdb_v1alpha1.d.ts +424 -0
  464. package/lib/unstable-services/searchdb_v1alpha1.d.ts.map +1 -0
  465. package/lib/unstable-services/searchdb_v1alpha1.js +29 -0
  466. package/lib/unstable-services/searchdb_v1alpha1.js.map +1 -0
  467. package/lib/unstable-services/secret_manager_v1beta1.d.ts +407 -0
  468. package/lib/unstable-services/secret_manager_v1beta1.d.ts.map +1 -0
  469. package/lib/unstable-services/secret_manager_v1beta1.js +32 -0
  470. package/lib/unstable-services/secret_manager_v1beta1.js.map +1 -0
  471. package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts +331 -0
  472. package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts.map +1 -0
  473. package/lib/unstable-services/serverless_jobs_v1alpha1.js +28 -0
  474. package/lib/unstable-services/serverless_jobs_v1alpha1.js.map +1 -0
  475. package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts +546 -0
  476. package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts.map +1 -0
  477. package/lib/unstable-services/serverless_jobs_v1alpha2.js +35 -0
  478. package/lib/unstable-services/serverless_jobs_v1alpha2.js.map +1 -0
  479. package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts +239 -0
  480. package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts.map +1 -0
  481. package/lib/unstable-services/serverless_sqldb_v1alpha1.js +2 -0
  482. package/lib/unstable-services/serverless_sqldb_v1alpha1.js.map +1 -0
  483. package/lib/unstable-services/transactional_email_v1alpha1.d.ts +936 -0
  484. package/lib/unstable-services/transactional_email_v1alpha1.d.ts.map +1 -0
  485. package/lib/unstable-services/transactional_email_v1alpha1.js +46 -0
  486. package/lib/unstable-services/transactional_email_v1alpha1.js.map +1 -0
  487. package/lib/unstable-services.lazy/apple_silicon_private_network_v1alpha1.js +1 -0
  488. package/lib/unstable-services.lazy/apple_silicon_v1alpha1.js +3 -0
  489. package/lib/unstable-services.lazy/audit_trail_v1alpha1.js +3 -0
  490. package/lib/unstable-services.lazy/autoscaling_v1alpha2.js +1 -0
  491. package/lib/unstable-services.lazy/billing_fin_ops_v2beta1.js +1 -0
  492. package/lib/unstable-services.lazy/billing_v2beta1.js +3 -0
  493. package/lib/unstable-services.lazy/block_v1alpha1.js +3 -0
  494. package/lib/unstable-services.lazy/data_orchestrator_v1alpha2.js +3 -0
  495. package/lib/unstable-services.lazy/datalab_v1beta1.js +1 -0
  496. package/lib/unstable-services.lazy/dataviz_v1alpha1.js +3 -0
  497. package/lib/unstable-services.lazy/datawarehouse_v1beta1.js +3 -0
  498. package/lib/unstable-services.lazy/domain_registrar_v2beta1.js +3 -0
  499. package/lib/unstable-services.lazy/domain_suggestion_v2beta1.js +1 -0
  500. package/lib/unstable-services.lazy/domain_v2beta1.js +3 -0
  501. package/lib/unstable-services.lazy/edge_services_v1beta1.js +3 -0
  502. package/lib/unstable-services.lazy/environmental_footprint_user_v1alpha1.js +1 -0
  503. package/lib/unstable-services.lazy/file_v1alpha1.js +3 -0
  504. package/lib/unstable-services.lazy/flexible_ip_v1alpha1.js +1 -0
  505. package/lib/unstable-services.lazy/functions_v1beta1.js +3 -0
  506. package/lib/unstable-services.lazy/iam_unauthenticated_v1alpha1.js +1 -0
  507. package/lib/unstable-services.lazy/iam_v1alpha1.js +3 -0
  508. package/lib/unstable-services.lazy/index.js +3 -0
  509. package/lib/unstable-services.lazy/instance_v2alpha1.js +3 -0
  510. package/lib/unstable-services.lazy/instance_volume_v2alpha1.js +3 -0
  511. package/lib/unstable-services.lazy/interlink_v1beta1.js +3 -0
  512. package/lib/unstable-services.lazy/kafka_v1alpha1.js +3 -0
  513. package/lib/unstable-services.lazy/key_manager_v1alpha1.js +3 -0
  514. package/lib/unstable-services.lazy/mailbox_v1alpha1.js +3 -0
  515. package/lib/unstable-services.lazy/messageq_v1alpha1.js +3 -0
  516. package/lib/unstable-services.lazy/mnq_console_v1beta1.js +1 -0
  517. package/lib/unstable-services.lazy/mnq_nats_v1beta1.js +1 -0
  518. package/lib/unstable-services.lazy/mnq_sns_v1beta1.js +1 -0
  519. package/lib/unstable-services.lazy/mnq_sqs_v1beta1.js +1 -0
  520. package/lib/unstable-services.lazy/mongodb_v1alpha1.js +3 -0
  521. package/lib/unstable-services.lazy/product_catalog_public_catalog_v2alpha1.js +1 -0
  522. package/lib/unstable-services.lazy/qaas_v1alpha1.js +3 -0
  523. package/lib/unstable-services.lazy/s2s_vpn_v1alpha1.js +3 -0
  524. package/lib/unstable-services.lazy/search_v1alpha1.js +1 -0
  525. package/lib/unstable-services.lazy/searchdb_v1alpha1.js +3 -0
  526. package/lib/unstable-services.lazy/secret_manager_v1beta1.js +3 -0
  527. package/lib/unstable-services.lazy/serverless_jobs_v1alpha1.js +3 -0
  528. package/lib/unstable-services.lazy/serverless_jobs_v1alpha2.js +3 -0
  529. package/lib/unstable-services.lazy/serverless_sqldb_v1alpha1.js +1 -0
  530. package/lib/unstable-services.lazy/transactional_email_v1alpha1.js +3 -0
  531. package/package.json +89 -2
  532. package/src/credentials.ts +104 -0
  533. package/src/errors.ts +307 -0
  534. package/src/index.ts +52 -0
  535. package/src/pagination.ts +65 -0
  536. package/src/protocol.ts +496 -0
  537. package/src/retry.ts +47 -0
  538. package/src/services/account_contract_v3.ts +441 -0
  539. package/src/services/account_iso_code_v3.ts +165 -0
  540. package/src/services/account_organization_v3.ts +947 -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 +2137 -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 +5395 -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 +1113 -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,1353 @@
1
+ import * as API from "@distilled.cloud/core/api";
2
+ import { BinaryStream } from "@distilled.cloud/core/protocol-rest";
3
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-scaleway). Do not edit.
4
+ import * as S from "@distilled.cloud/core/schema-lite";
5
+ import * as __L from "@distilled.cloud/core/schema-lite";
6
+ import type * as Redacted from "effect/Redacted";
7
+ import { ScalewayServiceErrors } from "../errors.ts";
8
+ import { paginateByTotalCount } from "../pagination.ts";
9
+ import { ScalewayProtocol, type ScalewayOpError, type ScalewayOpContext } from "../protocol.ts";
10
+ import * as Retry from "../retry.ts";
11
+ import * as T from "../traits.ts";
12
+ // Schema table, filled on first reach (see __S at the end).
13
+ const __s: any[] = [];
14
+
15
+ export type { ScalewayOpError, ScalewayOpContext };
16
+
17
+ /** Span facts shared by every operation (com.distilled.telemetry#service). */
18
+ const TELEMETRY = {
19
+ system: "scaleway-api",
20
+ responseHeaders: [
21
+ { header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
22
+ { header: "request-id", name: "http.response.header.request-id", transform: "list" },
23
+ ],
24
+ prefix: "Scaleway",
25
+ service: "InferenceV1",
26
+ labels: "scaleway",
27
+ propagate: "w3c",
28
+ } as const;
29
+
30
+ export type CreateDeploymentRequestRegion = "fr-par";
31
+ /** List of tags to apply to the deployment. */
32
+ export type CreateDeploymentRequestTagsList = Array<string>;
33
+ export interface EndpointPrivateNetworkDetails {
34
+ /** (UUID format) */
35
+ private_network_id?: string | undefined;
36
+ }
37
+ export interface EndpointSpec {
38
+ /** Set the endpoint as public. Precisely one of public_network, private_network can be set. */
39
+ public_network?: unknown | null | undefined;
40
+ /** Set the endpoint as private. Private endpoints are only accessible from the Private Network. Precisely one of public_network, private_network can be set. */
41
+ private_network?: EndpointPrivateNetworkDetails | null | undefined;
42
+ /** Disable the authentication on the endpoint. By default, deployments are protected by IAM authentication. When setting this field to true, the authentication will be disabled. */
43
+ disable_auth?: boolean | undefined;
44
+ }
45
+ /** List of endpoints to create. */
46
+ export type CreateDeploymentRequestEndpointsList = Array<EndpointSpec>;
47
+ export interface DeploymentQuantization {
48
+ /** The number of bits each model parameter should be quantized to. The quantization method is chosen based on this value. */
49
+ bits: number;
50
+ }
51
+ export interface CreateDeploymentRequest {
52
+ /** The region you want to target */
53
+ region?: CreateDeploymentRequestRegion | (string & {}) | undefined;
54
+ /** Name of the deployment. */
55
+ name: string;
56
+ /** ID of the Project to create the deployment in. (UUID format) */
57
+ project_id: string;
58
+ /** ID of the model to use. (UUID format) */
59
+ model_id: string;
60
+ /** Accept the model's End User License Agreement (EULA). If the model has an EULA, you must accept it before proceeding. The terms of the EULA can be retrieved using the `GetModelEula` API call. */
61
+ accept_eula?: boolean | null | undefined;
62
+ /** Name of the node type to use. */
63
+ node_type_name: string;
64
+ /** List of tags to apply to the deployment. */
65
+ tags?: CreateDeploymentRequestTagsList | undefined;
66
+ /** Defines the minimum size of the pool. */
67
+ min_size?: number | null | undefined;
68
+ /** Defines the maximum size of the pool. Currently, autoscaling is not yet supported, and this value must be equal to `min_size`. */
69
+ max_size?: number | null | undefined;
70
+ /** List of endpoints to create. */
71
+ endpoints: CreateDeploymentRequestEndpointsList;
72
+ /** Quantization settings to apply to this deployment. */
73
+ quantization?: DeploymentQuantization | undefined;
74
+ }
75
+ export type DeploymentStatus =
76
+ | "unknown_status"
77
+ | "creating"
78
+ | "deploying"
79
+ | "ready"
80
+ | "error"
81
+ | "deleting"
82
+ | "locked"
83
+ | "scaling"
84
+ | "deleted";
85
+ /** List of tags applied to the deployment. */
86
+ export type DeploymentTagsList = Array<string>;
87
+ export interface Endpoint {
88
+ /** Unique identifier. (UUID format) */
89
+ id?: string | undefined;
90
+ /** URL of the endpoint. For private endpoints, the URL will be accessible only from the Private Network. In addition, private endpoints will expose a CA certificate that can be used to verify the server's identity. This CA certificate can be retrieved using the `GetDeploymentCertificate` API call. */
91
+ url?: string | undefined;
92
+ /** Defines whether the endpoint is public. Precisely one of public_network, private_network can be set. */
93
+ public_network?: unknown | null | undefined;
94
+ /** Details of the Private Network. Precisely one of public_network, private_network can be set. */
95
+ private_network?: EndpointPrivateNetworkDetails | null | undefined;
96
+ /** Defines whether the authentication is disabled. */
97
+ disable_auth?: boolean | undefined;
98
+ }
99
+ /** List of endpoints. */
100
+ export type DeploymentEndpointsList = Array<Endpoint>;
101
+ export interface Deployment {
102
+ /** Unique identifier. (UUID format) */
103
+ id?: string | undefined;
104
+ /** Name of the deployment. */
105
+ name?: string | undefined;
106
+ /** Project ID. (UUID format) */
107
+ project_id?: string | undefined;
108
+ /** Status of the deployment. */
109
+ status?: DeploymentStatus | undefined;
110
+ /** List of tags applied to the deployment. */
111
+ tags?: DeploymentTagsList | undefined;
112
+ /** Node type of the deployment. */
113
+ node_type_name?: string | undefined;
114
+ /** List of endpoints. */
115
+ endpoints?: DeploymentEndpointsList | undefined;
116
+ /** Current size of the pool. */
117
+ size?: number | undefined;
118
+ /** Defines the minimum size of the pool. */
119
+ min_size?: number | undefined;
120
+ /** Defines the maximum size of the pool. Currently, autoscaling is not yet supported, and this value must be equal to `min_size`. */
121
+ max_size?: number | undefined;
122
+ /** Displays information if your deployment is in error state. */
123
+ error_message?: string | null | undefined;
124
+ /** ID of the model used for the deployment. (UUID format) */
125
+ model_id?: string | undefined;
126
+ /** Quantization parameters for this deployment. */
127
+ quantization?: DeploymentQuantization | undefined;
128
+ /** Name of the deployed model. */
129
+ model_name?: string | undefined;
130
+ /** Creation date of the deployment. (RFC 3339 format) */
131
+ created_at?: string | null | undefined;
132
+ /** Last modification date of the deployment. (RFC 3339 format) */
133
+ updated_at?: string | null | undefined;
134
+ /** Region of the deployment. */
135
+ region?: string | undefined;
136
+ /** SRN of the deployment. */
137
+ srn?: string | undefined;
138
+ }
139
+ export type CreateEndpointRequestRegion = "fr-par";
140
+ export interface CreateEndpointRequest {
141
+ /** The region you want to target */
142
+ region?: CreateEndpointRequestRegion | (string & {}) | undefined;
143
+ /** ID of the deployment to create the endpoint for. (UUID format) */
144
+ deployment_id: string;
145
+ /** Specification of the endpoint. */
146
+ endpoint: EndpointSpec;
147
+ }
148
+ export type CreateModelRequestRegion = "fr-par";
149
+ export interface ModelSource {
150
+ url?: string | undefined;
151
+ /** Precisely one of secret can be set. */
152
+ secret?: string | Redacted.Redacted<string> | null | undefined;
153
+ }
154
+ export interface CreateModelRequest {
155
+ /** The region you want to target */
156
+ region?: CreateModelRequestRegion | (string & {}) | undefined;
157
+ /** Name of the model. */
158
+ name: string;
159
+ /** ID of the Project to import the model in. (UUID format) */
160
+ project_id: string;
161
+ /** Where to import the model from. */
162
+ source: ModelSource;
163
+ }
164
+ /** List of tags applied to the model. */
165
+ export type ModelTagsList = Array<string>;
166
+ export type ModelStatus = "unknown_status" | "preparing" | "downloading" | "ready" | "error";
167
+ export interface ModelSupportedQuantization {
168
+ /** Number of bits for this supported quantization. */
169
+ quantization_bits?: number | undefined;
170
+ /** Tells whether this quantization is allowed for this node type. */
171
+ allowed?: boolean | undefined;
172
+ /** Maximum inference context size available for this node type and quantization. */
173
+ max_context_size?: number | undefined;
174
+ }
175
+ /** Supported quantizations. */
176
+ export type ModelSupportedNodeQuantizationsList = Array<ModelSupportedQuantization>;
177
+ export interface ModelSupportedNode {
178
+ /** Supported node type. */
179
+ node_type_name?: string | undefined;
180
+ /** Supported quantizations. */
181
+ quantizations?: ModelSupportedNodeQuantizationsList | undefined;
182
+ }
183
+ /** List of supported node types. */
184
+ export type ModelSupportInfoNodesList = Array<ModelSupportedNode>;
185
+ export interface ModelSupportInfo {
186
+ /** List of supported node types. */
187
+ nodes?: ModelSupportInfoNodesList | undefined;
188
+ }
189
+ /** Supported nodes types with quantization options and context lengths. */
190
+ export type ModelNodesSupportList = Array<ModelSupportInfo>;
191
+ export interface Model {
192
+ /** Unique identifier. (UUID format) */
193
+ id?: string | undefined;
194
+ /** Unique Name identifier. */
195
+ name?: string | undefined;
196
+ /** Project ID. (UUID format) */
197
+ project_id?: string | undefined;
198
+ /** List of tags applied to the model. */
199
+ tags?: ModelTagsList | undefined;
200
+ /** Status of the model. */
201
+ status?: ModelStatus | undefined;
202
+ /** Purpose of the model. */
203
+ description?: string | undefined;
204
+ /** Displays information if your model is in error state. */
205
+ error_message?: string | null | undefined;
206
+ /** Defines whether the model has an end user license agreement. */
207
+ has_eula?: boolean | undefined;
208
+ /** Creation date of the model. (RFC 3339 format) */
209
+ created_at?: string | null | undefined;
210
+ /** Last modification date of the model. (RFC 3339 format) */
211
+ updated_at?: string | null | undefined;
212
+ /** Region of the model. */
213
+ region?: string | undefined;
214
+ /** Supported nodes types with quantization options and context lengths. */
215
+ nodes_support?: ModelNodesSupportList | undefined;
216
+ /** Size, in bits, of the model parameters. */
217
+ parameter_size_bits?: number | undefined;
218
+ /** Total size, in bytes, of the model files. */
219
+ size_bytes?: number | undefined;
220
+ /** SRN of the model. */
221
+ srn?: string | undefined;
222
+ }
223
+ export type DeleteDeploymentRequestRegion = "fr-par";
224
+ export interface DeleteDeploymentRequest {
225
+ /** The region you want to target */
226
+ region?: DeleteDeploymentRequestRegion | (string & {}) | undefined;
227
+ /** ID of the deployment to delete. (UUID format) */
228
+ deployment_id: string;
229
+ }
230
+ export type DeleteEndpointRequestRegion = "fr-par";
231
+ export interface DeleteEndpointRequest {
232
+ /** The region you want to target */
233
+ region?: DeleteEndpointRequestRegion | (string & {}) | undefined;
234
+ /** ID of the endpoint to delete. (UUID format) */
235
+ endpoint_id: string;
236
+ }
237
+ export interface DeleteEndpointResponse {}
238
+ export type DeleteModelRequestRegion = "fr-par";
239
+ export interface DeleteModelRequest {
240
+ /** The region you want to target */
241
+ region?: DeleteModelRequestRegion | (string & {}) | undefined;
242
+ /** ID of the model to delete. (UUID format) */
243
+ model_id: string;
244
+ }
245
+ export interface DeleteModelResponse {}
246
+ export type GetDeploymentRequestRegion = "fr-par";
247
+ export interface GetDeploymentRequest {
248
+ /** The region you want to target */
249
+ region?: GetDeploymentRequestRegion | (string & {}) | undefined;
250
+ /** ID of the deployment to get. (UUID format) */
251
+ deployment_id: string;
252
+ }
253
+ export type GetDeploymentCertificateRequestRegion = "fr-par";
254
+ export interface GetDeploymentCertificateRequest {
255
+ /** The region you want to target */
256
+ region?: GetDeploymentCertificateRequestRegion | (string & {}) | undefined;
257
+ /** (UUID format) */
258
+ deployment_id: string;
259
+ }
260
+ export interface ScalewayStdFile {
261
+ name?: string | undefined;
262
+ content_type?: string | undefined;
263
+ content?: string | undefined;
264
+ }
265
+ export interface GetDeploymentCertificateRawRequest {
266
+ /** The region you want to target */
267
+ region?: GetDeploymentCertificateRequestRegion | (string & {}) | undefined;
268
+ /** (UUID format) */
269
+ deployment_id: string;
270
+ }
271
+ export interface GetDeploymentCertificateRawResponse {
272
+ body: BinaryStream;
273
+ /** Media type of the body, from the response's `Content-Type` header (e.g. `image/jpeg`). */
274
+ contentType?: string | undefined;
275
+ }
276
+ export type GetModelRequestRegion = "fr-par";
277
+ export interface GetModelRequest {
278
+ /** The region you want to target */
279
+ region?: GetModelRequestRegion | (string & {}) | undefined;
280
+ /** ID of the model to get. (UUID format) */
281
+ model_id: string;
282
+ }
283
+ export type GetModelEulaRequestRegion = "fr-par";
284
+ export interface GetModelEulaRequest {
285
+ /** The region you want to target */
286
+ region?: GetModelEulaRequestRegion | (string & {}) | undefined;
287
+ /** ID of the model to get the Eula for. (UUID format) */
288
+ model_id: string;
289
+ }
290
+ export interface Eula {
291
+ /** Content of the end user license agreement. */
292
+ content?: string | undefined;
293
+ }
294
+ export type ListDeploymentsRequestRegion = "fr-par";
295
+ export type ListDeploymentsRequestOrderBy =
296
+ | "created_at_desc"
297
+ | "created_at_asc"
298
+ | "name_asc"
299
+ | "name_desc";
300
+ export type ListDeploymentsRequestTagsList = Array<string>;
301
+ export interface ListDeploymentsRequest {
302
+ /** The region you want to target */
303
+ region?: ListDeploymentsRequestRegion | (string & {}) | undefined;
304
+ /** Page number to return. */
305
+ page?: number | undefined;
306
+ /** Maximum number of deployments to return per page. */
307
+ page_size?: number | undefined;
308
+ /** Order in which to return results. */
309
+ order_by?: ListDeploymentsRequestOrderBy | (string & {}) | undefined;
310
+ /** Filter by Project ID. (UUID format) */
311
+ project_id?: string | undefined;
312
+ /** Filter by Organization ID. (UUID format) */
313
+ organization_id?: string | undefined;
314
+ /** Filter by deployment name. */
315
+ name?: string | undefined;
316
+ /** Filter by tags. */
317
+ tags?: ListDeploymentsRequestTagsList | undefined;
318
+ }
319
+ /** List of deployments on the current page. */
320
+ export type ListDeploymentsResponseDeploymentsList = Array<Deployment>;
321
+ export interface ListDeploymentsResponse {
322
+ /** List of deployments on the current page. */
323
+ deployments: ListDeploymentsResponseDeploymentsList;
324
+ /** Total number of deployments. */
325
+ total_count?: number | undefined;
326
+ }
327
+ export type ListModelsRequestRegion = "fr-par";
328
+ export type ListModelsRequestOrderBy =
329
+ | "display_rank_asc"
330
+ | "created_at_asc"
331
+ | "created_at_desc"
332
+ | "name_asc"
333
+ | "name_desc";
334
+ export type ListModelsRequestTagsList = Array<string>;
335
+ export interface ListModelsRequest {
336
+ /** The region you want to target */
337
+ region?: ListModelsRequestRegion | (string & {}) | undefined;
338
+ /** Order in which to return results. */
339
+ order_by?: ListModelsRequestOrderBy | (string & {}) | undefined;
340
+ /** Page number to return. */
341
+ page?: number | undefined;
342
+ /** Maximum number of models to return per page. */
343
+ page_size?: number | undefined;
344
+ /** Filter by Project ID. (UUID format) */
345
+ project_id?: string | undefined;
346
+ /** Filter by Organization ID. (UUID format) */
347
+ organization_id?: string | undefined;
348
+ /** Filter by model name. */
349
+ name?: string | undefined;
350
+ /** Filter by tags. */
351
+ tags?: ListModelsRequestTagsList | undefined;
352
+ }
353
+ /** List of models on the current page. */
354
+ export type ListModelsResponseModelsList = Array<Model>;
355
+ export interface ListModelsResponse {
356
+ /** List of models on the current page. */
357
+ models: ListModelsResponseModelsList;
358
+ /** Total number of models. */
359
+ total_count?: number | undefined;
360
+ }
361
+ export type ListNodeTypesRequestRegion = "fr-par";
362
+ export interface ListNodeTypesRequest {
363
+ /** The region you want to target */
364
+ region?: ListNodeTypesRequestRegion | (string & {}) | undefined;
365
+ /** Page number to return. */
366
+ page?: number | undefined;
367
+ /** Maximum number of node types to return per page. */
368
+ page_size?: number | undefined;
369
+ /** Include disabled node types in the response. */
370
+ include_disabled_types: boolean;
371
+ }
372
+ export type NodeTypeStock = "unknown_stock" | "low_stock" | "out_of_stock" | "available";
373
+ export interface NodeType {
374
+ /** Name of the node type. */
375
+ name?: string | undefined;
376
+ /** Current stock status for the node type. */
377
+ stock_status?: NodeTypeStock | undefined;
378
+ /** Current specs of the offer. */
379
+ description?: string | undefined;
380
+ /** Number of virtual CPUs. */
381
+ vcpus?: number | undefined;
382
+ /** Quantity of RAM. (in bytes) */
383
+ memory?: number | undefined;
384
+ /** Quantity of GPU RAM. (in bytes) */
385
+ vram?: number | undefined;
386
+ /** The node type is currently disabled. */
387
+ disabled?: boolean | undefined;
388
+ /** The node type is currently in beta. */
389
+ beta?: boolean | undefined;
390
+ /** Creation date of the node type. (RFC 3339 format) */
391
+ created_at?: string | null | undefined;
392
+ /** Last modification date of the node type. (RFC 3339 format) */
393
+ updated_at?: string | null | undefined;
394
+ /** Number of GPUs. */
395
+ gpus?: number | undefined;
396
+ /** Region of the node type. */
397
+ region?: string | undefined;
398
+ }
399
+ /** List of node types. */
400
+ export type ListNodeTypesResponseNodeTypesList = Array<NodeType>;
401
+ export interface ListNodeTypesResponse {
402
+ /** List of node types. */
403
+ node_types: ListNodeTypesResponseNodeTypesList;
404
+ /** Total number of node types. */
405
+ total_count?: number | undefined;
406
+ }
407
+ export type UpdateDeploymentRequestRegion = "fr-par";
408
+ /** List of tags to apply to the deployment. */
409
+ export type UpdateDeploymentRequestTagsList = Array<unknown>;
410
+ export interface UpdateDeploymentRequest {
411
+ /** The region you want to target */
412
+ region?: UpdateDeploymentRequestRegion | (string & {}) | undefined;
413
+ /** ID of the deployment to update. (UUID format) */
414
+ deployment_id: string;
415
+ /** Name of the deployment. */
416
+ name?: string | null | undefined;
417
+ /** List of tags to apply to the deployment. */
418
+ tags?: UpdateDeploymentRequestTagsList | null | undefined;
419
+ /** Defines the new minimum size of the pool. */
420
+ min_size?: number | null | undefined;
421
+ /** Defines the maximum size of the pool. Currently, autoscaling is not yet supported, and this value must be equal to `min_size`. */
422
+ max_size?: number | null | undefined;
423
+ /** Id of the model to set to the deployment. */
424
+ model_id?: string | null | undefined;
425
+ /** Quantization to use to the deployment. */
426
+ quantization?: DeploymentQuantization | undefined;
427
+ }
428
+ export type UpdateEndpointRequestRegion = "fr-par";
429
+ export interface UpdateEndpointRequest {
430
+ /** The region you want to target */
431
+ region?: UpdateEndpointRequestRegion | (string & {}) | undefined;
432
+ /** ID of the endpoint to update. (UUID format) */
433
+ endpoint_id: string;
434
+ /** Disable the authentication on the endpoint. By default, deployments are protected by IAM authentication. When setting this field to true, the authentication will be disabled. */
435
+ disable_auth?: boolean | null | undefined;
436
+ }
437
+ export type VerifyModelRequestRegion = "fr-par";
438
+ export interface VerifyModelRequest {
439
+ /** The region you want to target */
440
+ region?: VerifyModelRequestRegion | (string & {}) | undefined;
441
+ /** Where to verify the model from. */
442
+ source: ModelSource;
443
+ }
444
+ export type VerifyModelResponseNodesList = Array<ModelSupportedNode>;
445
+ export interface VerifyModelResponse {
446
+ nodes?: VerifyModelResponseNodesList | undefined;
447
+ size_bytes?: number | undefined;
448
+ }
449
+ export type CreateDeploymentError = ScalewayOpError;
450
+ /** Create a deployment Create a new inference deployment related to a specific model. */
451
+ export const createDeployment: API.OperationMethod<
452
+ CreateDeploymentRequest,
453
+ Deployment,
454
+ CreateDeploymentError,
455
+ ScalewayOpContext
456
+ > = /*@__PURE__*/ API.make(() => ({
457
+ input: __S(1, __c0, 1) as any as S.Schema<CreateDeploymentRequest>,
458
+ output: __S(18, __c4, 2) as any as S.Schema<Deployment>,
459
+ errors: [],
460
+ serviceErrors: ScalewayServiceErrors,
461
+ protocol: ScalewayProtocol,
462
+ retry: Retry.Retry,
463
+ telemetry: TELEMETRY,
464
+ span: "CreateDeployment",
465
+ }));
466
+
467
+ export type CreateEndpointError = ScalewayOpError;
468
+ /** Create an endpoint Create a new Endpoint related to a specific deployment. */
469
+ export const createEndpoint: API.OperationMethod<
470
+ CreateEndpointRequest,
471
+ Endpoint,
472
+ CreateEndpointError,
473
+ ScalewayOpContext
474
+ > = /*@__PURE__*/ API.make(() => ({
475
+ input: __S(20, __c5, 0) as any as S.Schema<CreateEndpointRequest>,
476
+ output: __S(9, __c2, 1) as any as S.Schema<Endpoint>,
477
+ errors: [],
478
+ serviceErrors: ScalewayServiceErrors,
479
+ protocol: ScalewayProtocol,
480
+ retry: Retry.Retry,
481
+ telemetry: TELEMETRY,
482
+ span: "CreateEndpoint",
483
+ }));
484
+
485
+ export type CreateModelError = ScalewayOpError;
486
+ /** Import a model Import a new model to your model library. */
487
+ export const createModel: API.OperationMethod<
488
+ CreateModelRequest,
489
+ Model,
490
+ CreateModelError,
491
+ ScalewayOpContext
492
+ > = /*@__PURE__*/ API.make(() => ({
493
+ input: __S(52, __c13, 0) as any as S.Schema<CreateModelRequest>,
494
+ output: __S(62, __c15, 2) as any as S.Schema<Model>,
495
+ errors: [],
496
+ serviceErrors: ScalewayServiceErrors,
497
+ protocol: ScalewayProtocol,
498
+ retry: Retry.Retry,
499
+ telemetry: TELEMETRY,
500
+ span: "CreateModel",
501
+ }));
502
+
503
+ export type DeleteDeploymentError = ScalewayOpError;
504
+ /** Delete a deployment Delete an existing inference deployment. */
505
+ export const deleteDeployment: API.OperationMethod<
506
+ DeleteDeploymentRequest,
507
+ Deployment,
508
+ DeleteDeploymentError,
509
+ ScalewayOpContext
510
+ > = /*@__PURE__*/ API.make(() => ({
511
+ input: __S(68, __c17, 0) as any as S.Schema<DeleteDeploymentRequest>,
512
+ output: __S(18, __c4, 2) as any as S.Schema<Deployment>,
513
+ errors: [],
514
+ serviceErrors: ScalewayServiceErrors,
515
+ protocol: ScalewayProtocol,
516
+ retry: Retry.Retry,
517
+ telemetry: TELEMETRY,
518
+ span: "DeleteDeployment",
519
+ }));
520
+
521
+ export type DeleteEndpointError = ScalewayOpError;
522
+ /** Delete an endpoint Delete an existing Endpoint. */
523
+ export const deleteEndpoint: API.OperationMethod<
524
+ DeleteEndpointRequest,
525
+ DeleteEndpointResponse,
526
+ DeleteEndpointError,
527
+ ScalewayOpContext
528
+ > = /*@__PURE__*/ API.make(() => ({
529
+ input: __S(72, __c18, 0) as any as S.Schema<DeleteEndpointRequest>,
530
+ output: __S(76, __c19, 0) as any as S.Schema<DeleteEndpointResponse>,
531
+ errors: [],
532
+ serviceErrors: ScalewayServiceErrors,
533
+ protocol: ScalewayProtocol,
534
+ retry: Retry.Retry,
535
+ telemetry: TELEMETRY,
536
+ span: "DeleteEndpoint",
537
+ }));
538
+
539
+ export type DeleteModelError = ScalewayOpError;
540
+ /** Delete a model Delete an existing model from your model library. */
541
+ export const deleteModel: API.OperationMethod<
542
+ DeleteModelRequest,
543
+ DeleteModelResponse,
544
+ DeleteModelError,
545
+ ScalewayOpContext
546
+ > = /*@__PURE__*/ API.make(() => ({
547
+ input: __S(80, __c20, 0) as any as S.Schema<DeleteModelRequest>,
548
+ output: __S(76, __c19, 0) as any as S.Schema<DeleteModelResponse>,
549
+ errors: [],
550
+ serviceErrors: ScalewayServiceErrors,
551
+ protocol: ScalewayProtocol,
552
+ retry: Retry.Retry,
553
+ telemetry: TELEMETRY,
554
+ span: "DeleteModel",
555
+ }));
556
+
557
+ export type GetDeploymentError = ScalewayOpError;
558
+ /** Get a deployment Get the deployment for the given ID. */
559
+ export const getDeployment: API.OperationMethod<
560
+ GetDeploymentRequest,
561
+ Deployment,
562
+ GetDeploymentError,
563
+ ScalewayOpContext
564
+ > = /*@__PURE__*/ API.make(() => ({
565
+ input: __S(84, __c21, 0) as any as S.Schema<GetDeploymentRequest>,
566
+ output: __S(18, __c4, 2) as any as S.Schema<Deployment>,
567
+ errors: [],
568
+ serviceErrors: ScalewayServiceErrors,
569
+ protocol: ScalewayProtocol,
570
+ retry: Retry.Retry,
571
+ telemetry: TELEMETRY,
572
+ span: "GetDeployment",
573
+ }));
574
+
575
+ export type GetDeploymentCertificateError = ScalewayOpError;
576
+ /** Get the CA certificate Get the CA certificate used for the deployment of private endpoints. The CA certificate will be returned as a PEM file. */
577
+ export const getDeploymentCertificate: API.OperationMethod<
578
+ GetDeploymentCertificateRequest,
579
+ ScalewayStdFile,
580
+ GetDeploymentCertificateError,
581
+ ScalewayOpContext
582
+ > = /*@__PURE__*/ API.make(() => ({
583
+ input: __S(88, __c22, 0) as any as S.Schema<GetDeploymentCertificateRequest>,
584
+ output: __S(89, __c22, 1) as any as S.Schema<ScalewayStdFile>,
585
+ errors: [],
586
+ serviceErrors: ScalewayServiceErrors,
587
+ protocol: ScalewayProtocol,
588
+ retry: Retry.Retry,
589
+ telemetry: TELEMETRY,
590
+ span: "GetDeploymentCertificate",
591
+ }));
592
+
593
+ export type GetDeploymentCertificateRawError = ScalewayOpError;
594
+ /** The file `getDeploymentCertificate` returns, as bytes (`?dl=1`), rather than the JSON file object. */
595
+ export const getDeploymentCertificateRaw: API.OperationMethod<
596
+ GetDeploymentCertificateRawRequest,
597
+ GetDeploymentCertificateRawResponse,
598
+ GetDeploymentCertificateRawError,
599
+ ScalewayOpContext
600
+ > = /*@__PURE__*/ API.make(() => ({
601
+ input: __S(92, __c23, 0) as any as S.Schema<GetDeploymentCertificateRawRequest>,
602
+ output: __S(93, __c23, 1) as any as S.Schema<GetDeploymentCertificateRawResponse>,
603
+ errors: [],
604
+ serviceErrors: ScalewayServiceErrors,
605
+ protocol: ScalewayProtocol,
606
+ retry: Retry.Retry,
607
+ telemetry: TELEMETRY,
608
+ span: "GetDeploymentCertificateRaw",
609
+ }));
610
+
611
+ export type GetModelError = ScalewayOpError;
612
+ /** Get a model Get the model for the given ID. */
613
+ export const getModel: API.OperationMethod<
614
+ GetModelRequest,
615
+ Model,
616
+ GetModelError,
617
+ ScalewayOpContext
618
+ > = /*@__PURE__*/ API.make(() => ({
619
+ input: __S(96, __c24, 0) as any as S.Schema<GetModelRequest>,
620
+ output: __S(62, __c15, 2) as any as S.Schema<Model>,
621
+ errors: [],
622
+ serviceErrors: ScalewayServiceErrors,
623
+ protocol: ScalewayProtocol,
624
+ retry: Retry.Retry,
625
+ telemetry: TELEMETRY,
626
+ span: "GetModel",
627
+ }));
628
+
629
+ export type GetModelEulaError = ScalewayOpError;
630
+ /** Get a model EULA Get the EULA for the given model ID. */
631
+ export const getModelEula: API.OperationMethod<
632
+ GetModelEulaRequest,
633
+ Eula,
634
+ GetModelEulaError,
635
+ ScalewayOpContext
636
+ > = /*@__PURE__*/ API.make(() => ({
637
+ input: __S(24, __c6, 0) as any as S.Schema<GetModelEulaRequest>,
638
+ output: __S(25, __c6, 1) as any as S.Schema<Eula>,
639
+ errors: [],
640
+ serviceErrors: ScalewayServiceErrors,
641
+ protocol: ScalewayProtocol,
642
+ retry: Retry.Retry,
643
+ telemetry: TELEMETRY,
644
+ span: "GetModelEula",
645
+ }));
646
+
647
+ export type ListDeploymentsError = ScalewayOpError;
648
+ /** List inference deployments List all your inference deployments. */
649
+ export const listDeployments: API.PaginatedOperationMethod<
650
+ ListDeploymentsRequest,
651
+ ListDeploymentsResponse,
652
+ ListDeploymentsError,
653
+ ScalewayOpContext,
654
+ Deployment
655
+ > = /*@__PURE__*/ API.makePaginated(
656
+ () => ({
657
+ input: __S(28, __c7, 0) as any as S.Schema<ListDeploymentsRequest>,
658
+ output: __S(30, __c7, 2) as any as S.Schema<ListDeploymentsResponse>,
659
+ errors: [],
660
+ serviceErrors: ScalewayServiceErrors,
661
+ protocol: ScalewayProtocol,
662
+ retry: Retry.Retry,
663
+ telemetry: TELEMETRY,
664
+ span: "ListDeployments",
665
+ pagination: {
666
+ mode: "page",
667
+ inputToken: "page",
668
+ outputToken: "total_count",
669
+ items: "deployments",
670
+ pageSize: "page_size",
671
+ } as const,
672
+ }),
673
+ paginateByTotalCount,
674
+ ) as any;
675
+
676
+ export type ListModelsError = ScalewayOpError;
677
+ /** List models List all available models. */
678
+ export const listModels: API.PaginatedOperationMethod<
679
+ ListModelsRequest,
680
+ ListModelsResponse,
681
+ ListModelsError,
682
+ ScalewayOpContext,
683
+ Model
684
+ > = /*@__PURE__*/ API.makePaginated(
685
+ () => ({
686
+ input: __S(32, __c8, 0) as any as S.Schema<ListModelsRequest>,
687
+ output: __S(34, __c8, 2) as any as S.Schema<ListModelsResponse>,
688
+ errors: [],
689
+ serviceErrors: ScalewayServiceErrors,
690
+ protocol: ScalewayProtocol,
691
+ retry: Retry.Retry,
692
+ telemetry: TELEMETRY,
693
+ span: "ListModels",
694
+ pagination: {
695
+ mode: "page",
696
+ inputToken: "page",
697
+ outputToken: "total_count",
698
+ items: "models",
699
+ pageSize: "page_size",
700
+ } as const,
701
+ }),
702
+ paginateByTotalCount,
703
+ ) as any;
704
+
705
+ export type ListNodeTypesError = ScalewayOpError;
706
+ /** List available node types List all available node types. By default, the node types returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field. */
707
+ export const listNodeTypes: API.PaginatedOperationMethod<
708
+ ListNodeTypesRequest,
709
+ ListNodeTypesResponse,
710
+ ListNodeTypesError,
711
+ ScalewayOpContext,
712
+ NodeType
713
+ > = /*@__PURE__*/ API.makePaginated(
714
+ () => ({
715
+ input: __S(36, __c9, 0) as any as S.Schema<ListNodeTypesRequest>,
716
+ output: __S(39, __c9, 3) as any as S.Schema<ListNodeTypesResponse>,
717
+ errors: [],
718
+ serviceErrors: ScalewayServiceErrors,
719
+ protocol: ScalewayProtocol,
720
+ retry: Retry.Retry,
721
+ telemetry: TELEMETRY,
722
+ span: "ListNodeTypes",
723
+ pagination: {
724
+ mode: "page",
725
+ inputToken: "page",
726
+ outputToken: "total_count",
727
+ items: "node_types",
728
+ pageSize: "page_size",
729
+ } as const,
730
+ }),
731
+ paginateByTotalCount,
732
+ ) as any;
733
+
734
+ export type UpdateDeploymentError = ScalewayOpError;
735
+ /** Update a deployment Update an existing inference deployment. */
736
+ export const updateDeployment: API.OperationMethod<
737
+ UpdateDeploymentRequest,
738
+ Deployment,
739
+ UpdateDeploymentError,
740
+ ScalewayOpContext
741
+ > = /*@__PURE__*/ API.make(() => ({
742
+ input: __S(41, __c10, 1) as any as S.Schema<UpdateDeploymentRequest>,
743
+ output: __S(18, __c4, 2) as any as S.Schema<Deployment>,
744
+ errors: [],
745
+ serviceErrors: ScalewayServiceErrors,
746
+ protocol: ScalewayProtocol,
747
+ retry: Retry.Retry,
748
+ telemetry: TELEMETRY,
749
+ span: "UpdateDeployment",
750
+ }));
751
+
752
+ export type UpdateEndpointError = ScalewayOpError;
753
+ /** Update an endpoint Update an existing Endpoint. */
754
+ export const updateEndpoint: API.OperationMethod<
755
+ UpdateEndpointRequest,
756
+ Endpoint,
757
+ UpdateEndpointError,
758
+ ScalewayOpContext
759
+ > = /*@__PURE__*/ API.make(() => ({
760
+ input: __S(44, __c11, 0) as any as S.Schema<UpdateEndpointRequest>,
761
+ output: __S(9, __c2, 1) as any as S.Schema<Endpoint>,
762
+ errors: [],
763
+ serviceErrors: ScalewayServiceErrors,
764
+ protocol: ScalewayProtocol,
765
+ retry: Retry.Retry,
766
+ telemetry: TELEMETRY,
767
+ span: "UpdateEndpoint",
768
+ }));
769
+
770
+ export type VerifyModelError = ScalewayOpError;
771
+ /** Verify a model Verify a model should be good to be deployed on Generative APIs - Dedicated Deployment. */
772
+ export const verifyModel: API.OperationMethod<
773
+ VerifyModelRequest,
774
+ VerifyModelResponse,
775
+ VerifyModelError,
776
+ ScalewayOpContext
777
+ > = /*@__PURE__*/ API.make(() => ({
778
+ input: __S(48, __c12, 0) as any as S.Schema<VerifyModelRequest>,
779
+ output: __S(49, __c12, 1) as any as S.Schema<VerifyModelResponse>,
780
+ errors: [],
781
+ serviceErrors: ScalewayServiceErrors,
782
+ protocol: ScalewayProtocol,
783
+ retry: Retry.Retry,
784
+ telemetry: TELEMETRY,
785
+ span: "VerifyModel",
786
+ }));
787
+
788
+ // Schema builders: each runs one schema initializer, on that schema's first use.
789
+ function __c0(j: number): any {
790
+ switch (j) {
791
+ case 0:
792
+ return S.Array(__S(4, __c1, 0));
793
+ case 1:
794
+ return S.suspend(() =>
795
+ S.Struct({
796
+ region: S.optional(S.String.pipe(T.Label())),
797
+ name: S.String,
798
+ project_id: S.String,
799
+ model_id: S.String,
800
+ accept_eula: S.optional(S.NullOr(S.Boolean)),
801
+ node_type_name: S.String,
802
+ tags: S.optional(__S(12, __c3, 0)),
803
+ min_size: S.optional(S.NullOr(S.Number)),
804
+ max_size: S.optional(S.NullOr(S.Number)),
805
+ endpoints: __S(0, __c0, 0),
806
+ quantization: S.optional(__S(16, __c4, 0)),
807
+ }).pipe(
808
+ T.Http({
809
+ method: "POST",
810
+ uri: "/inference/v1/regions/{region}/deployments",
811
+ code: 200,
812
+ baseUrl: "https://api.scaleway.com",
813
+ }),
814
+ ),
815
+ ).annotate({ identifier: "CreateDeploymentRequest" });
816
+ }
817
+ }
818
+ function __c1(j: number): any {
819
+ switch (j) {
820
+ case 0:
821
+ return S.suspend(() =>
822
+ S.Struct({
823
+ public_network: S.optional(S.NullOr(S.Unknown)),
824
+ private_network: S.optional(S.NullOr(__S(8, __c2, 0))),
825
+ disable_auth: S.optional(S.Boolean),
826
+ }),
827
+ ).annotate({ identifier: "EndpointSpec" });
828
+ }
829
+ }
830
+ function __c2(j: number): any {
831
+ switch (j) {
832
+ case 0:
833
+ return S.suspend(() =>
834
+ S.Struct({
835
+ private_network_id: S.optional(S.String),
836
+ }),
837
+ ).annotate({ identifier: "EndpointPrivateNetworkDetails" });
838
+ case 1:
839
+ return S.suspend(() =>
840
+ S.Struct({
841
+ id: S.optional(S.String),
842
+ url: S.optional(S.String),
843
+ public_network: S.optional(S.NullOr(S.Unknown)),
844
+ private_network: S.optional(S.NullOr(__S(8, __c2, 0))),
845
+ disable_auth: S.optional(S.Boolean),
846
+ }),
847
+ ).annotate({ identifier: "Endpoint" });
848
+ }
849
+ }
850
+ function __c3(j: number): any {
851
+ switch (j) {
852
+ case 0:
853
+ return S.Array(S.String);
854
+ }
855
+ }
856
+ function __c4(j: number): any {
857
+ switch (j) {
858
+ case 0:
859
+ return S.suspend(() =>
860
+ S.Struct({
861
+ bits: S.Number,
862
+ }),
863
+ ).annotate({ identifier: "DeploymentQuantization" });
864
+ case 1:
865
+ return S.Array(__S(9, __c2, 1));
866
+ case 2:
867
+ return S.suspend(() =>
868
+ S.Struct({
869
+ id: S.optional(S.String),
870
+ name: S.optional(S.String),
871
+ project_id: S.optional(S.String),
872
+ status: S.optional(S.String),
873
+ tags: S.optional(__S(12, __c3, 0)),
874
+ node_type_name: S.optional(S.String),
875
+ endpoints: S.optional(__S(17, __c4, 1)),
876
+ size: S.optional(S.Number),
877
+ min_size: S.optional(S.Number),
878
+ max_size: S.optional(S.Number),
879
+ error_message: S.optional(S.NullOr(S.String)),
880
+ model_id: S.optional(S.String),
881
+ quantization: S.optional(__S(16, __c4, 0)),
882
+ model_name: S.optional(S.String),
883
+ created_at: S.optional(S.NullOr(S.String)),
884
+ updated_at: S.optional(S.NullOr(S.String)),
885
+ region: S.optional(S.String),
886
+ srn: S.optional(S.String),
887
+ }),
888
+ ).annotate({ identifier: "Deployment" });
889
+ }
890
+ }
891
+ function __c5(j: number): any {
892
+ switch (j) {
893
+ case 0:
894
+ return S.suspend(() =>
895
+ S.Struct({
896
+ region: S.optional(S.String.pipe(T.Label())),
897
+ deployment_id: S.String,
898
+ endpoint: __S(4, __c1, 0),
899
+ }).pipe(
900
+ T.Http({
901
+ method: "POST",
902
+ uri: "/inference/v1/regions/{region}/endpoints",
903
+ code: 200,
904
+ baseUrl: "https://api.scaleway.com",
905
+ }),
906
+ ),
907
+ ).annotate({ identifier: "CreateEndpointRequest" });
908
+ }
909
+ }
910
+ function __c6(j: number): any {
911
+ switch (j) {
912
+ case 0:
913
+ return S.suspend(() =>
914
+ S.Struct({
915
+ region: S.optional(S.String.pipe(T.Label())),
916
+ model_id: S.String.pipe(T.Label()),
917
+ }).pipe(
918
+ T.Http({
919
+ method: "GET",
920
+ uri: "/inference/v1/regions/{region}/models/{model_id}/eula",
921
+ code: 200,
922
+ baseUrl: "https://api.scaleway.com",
923
+ }),
924
+ ),
925
+ ).annotate({ identifier: "GetModelEulaRequest" });
926
+ case 1:
927
+ return S.suspend(() =>
928
+ S.Struct({
929
+ content: S.optional(S.String),
930
+ }),
931
+ ).annotate({ identifier: "Eula" });
932
+ }
933
+ }
934
+ function __c7(j: number): any {
935
+ switch (j) {
936
+ case 0:
937
+ return S.suspend(() =>
938
+ S.Struct({
939
+ region: S.optional(S.String.pipe(T.Label())),
940
+ page: S.optional(S.Number.pipe(T.Query())),
941
+ page_size: S.optional(S.Number.pipe(T.Query())),
942
+ order_by: S.optional(S.String.pipe(T.Query())),
943
+ project_id: S.optional(S.String.pipe(T.Query())),
944
+ organization_id: S.optional(S.String.pipe(T.Query())),
945
+ name: S.optional(S.String.pipe(T.Query())),
946
+ tags: S.optional(__S(12, __c3, 0).pipe(T.Query())),
947
+ }).pipe(
948
+ T.Http({
949
+ method: "GET",
950
+ uri: "/inference/v1/regions/{region}/deployments",
951
+ code: 200,
952
+ baseUrl: "https://api.scaleway.com",
953
+ }),
954
+ ),
955
+ ).annotate({ identifier: "ListDeploymentsRequest" });
956
+ case 1:
957
+ return S.Array(__S(18, __c4, 2));
958
+ case 2:
959
+ return S.suspend(() =>
960
+ S.Struct({
961
+ deployments: __S(29, __c7, 1),
962
+ total_count: S.optional(S.Number),
963
+ }),
964
+ ).annotate({ identifier: "ListDeploymentsResponse" });
965
+ }
966
+ }
967
+ function __c8(j: number): any {
968
+ switch (j) {
969
+ case 0:
970
+ return S.suspend(() =>
971
+ S.Struct({
972
+ region: S.optional(S.String.pipe(T.Label())),
973
+ order_by: S.optional(S.String.pipe(T.Query())),
974
+ page: S.optional(S.Number.pipe(T.Query())),
975
+ page_size: S.optional(S.Number.pipe(T.Query())),
976
+ project_id: S.optional(S.String.pipe(T.Query())),
977
+ organization_id: S.optional(S.String.pipe(T.Query())),
978
+ name: S.optional(S.String.pipe(T.Query())),
979
+ tags: S.optional(__S(12, __c3, 0).pipe(T.Query())),
980
+ }).pipe(
981
+ T.Http({
982
+ method: "GET",
983
+ uri: "/inference/v1/regions/{region}/models",
984
+ code: 200,
985
+ baseUrl: "https://api.scaleway.com",
986
+ }),
987
+ ),
988
+ ).annotate({ identifier: "ListModelsRequest" });
989
+ case 1:
990
+ return S.Array(__S(62, __c15, 2));
991
+ case 2:
992
+ return S.suspend(() =>
993
+ S.Struct({
994
+ models: __S(33, __c8, 1),
995
+ total_count: S.optional(S.Number),
996
+ }),
997
+ ).annotate({ identifier: "ListModelsResponse" });
998
+ }
999
+ }
1000
+ function __c9(j: number): any {
1001
+ switch (j) {
1002
+ case 0:
1003
+ return S.suspend(() =>
1004
+ S.Struct({
1005
+ region: S.optional(S.String.pipe(T.Label())),
1006
+ page: S.optional(S.Number.pipe(T.Query())),
1007
+ page_size: S.optional(S.Number.pipe(T.Query())),
1008
+ include_disabled_types: S.Boolean.pipe(T.Query()),
1009
+ }).pipe(
1010
+ T.Http({
1011
+ method: "GET",
1012
+ uri: "/inference/v1/regions/{region}/node-types",
1013
+ code: 200,
1014
+ baseUrl: "https://api.scaleway.com",
1015
+ }),
1016
+ ),
1017
+ ).annotate({ identifier: "ListNodeTypesRequest" });
1018
+ case 1:
1019
+ return S.suspend(() =>
1020
+ S.Struct({
1021
+ name: S.optional(S.String),
1022
+ stock_status: S.optional(S.String),
1023
+ description: S.optional(S.String),
1024
+ vcpus: S.optional(S.Number),
1025
+ memory: S.optional(S.Number),
1026
+ vram: S.optional(S.Number),
1027
+ disabled: S.optional(S.Boolean),
1028
+ beta: S.optional(S.Boolean),
1029
+ created_at: S.optional(S.NullOr(S.String)),
1030
+ updated_at: S.optional(S.NullOr(S.String)),
1031
+ gpus: S.optional(S.Number),
1032
+ region: S.optional(S.String),
1033
+ }),
1034
+ ).annotate({ identifier: "NodeType" });
1035
+ case 2:
1036
+ return S.Array(__S(37, __c9, 1));
1037
+ case 3:
1038
+ return S.suspend(() =>
1039
+ S.Struct({
1040
+ node_types: __S(38, __c9, 2),
1041
+ total_count: S.optional(S.Number),
1042
+ }),
1043
+ ).annotate({ identifier: "ListNodeTypesResponse" });
1044
+ }
1045
+ }
1046
+ function __c10(j: number): any {
1047
+ switch (j) {
1048
+ case 0:
1049
+ return S.Array(S.Unknown);
1050
+ case 1:
1051
+ return S.suspend(() =>
1052
+ S.Struct({
1053
+ region: S.optional(S.String.pipe(T.Label())),
1054
+ deployment_id: S.String.pipe(T.Label()),
1055
+ name: S.optional(S.NullOr(S.String)),
1056
+ tags: S.optional(S.NullOr(__S(40, __c10, 0))),
1057
+ min_size: S.optional(S.NullOr(S.Number)),
1058
+ max_size: S.optional(S.NullOr(S.Number)),
1059
+ model_id: S.optional(S.NullOr(S.String)),
1060
+ quantization: S.optional(__S(16, __c4, 0)),
1061
+ }).pipe(
1062
+ T.Http({
1063
+ method: "PATCH",
1064
+ uri: "/inference/v1/regions/{region}/deployments/{deployment_id}",
1065
+ code: 200,
1066
+ baseUrl: "https://api.scaleway.com",
1067
+ }),
1068
+ ),
1069
+ ).annotate({ identifier: "UpdateDeploymentRequest" });
1070
+ }
1071
+ }
1072
+ function __c11(j: number): any {
1073
+ switch (j) {
1074
+ case 0:
1075
+ return S.suspend(() =>
1076
+ S.Struct({
1077
+ region: S.optional(S.String.pipe(T.Label())),
1078
+ endpoint_id: S.String.pipe(T.Label()),
1079
+ disable_auth: S.optional(S.NullOr(S.Boolean)),
1080
+ }).pipe(
1081
+ T.Http({
1082
+ method: "PATCH",
1083
+ uri: "/inference/v1/regions/{region}/endpoints/{endpoint_id}",
1084
+ code: 200,
1085
+ baseUrl: "https://api.scaleway.com",
1086
+ }),
1087
+ ),
1088
+ ).annotate({ identifier: "UpdateEndpointRequest" });
1089
+ }
1090
+ }
1091
+ function __c12(j: number): any {
1092
+ switch (j) {
1093
+ case 0:
1094
+ return S.suspend(() =>
1095
+ S.Struct({
1096
+ region: S.optional(S.String.pipe(T.Label())),
1097
+ source: __S(56, __c14, 0),
1098
+ }).pipe(
1099
+ T.Http({
1100
+ method: "POST",
1101
+ uri: "/inference/v1/regions/{region}/verify-model",
1102
+ code: 200,
1103
+ baseUrl: "https://api.scaleway.com",
1104
+ }),
1105
+ ),
1106
+ ).annotate({ identifier: "VerifyModelRequest" });
1107
+ case 1:
1108
+ return S.suspend(() =>
1109
+ S.Struct({
1110
+ nodes: S.optional(__S(67, __c16, 3)),
1111
+ size_bytes: S.optional(S.Number),
1112
+ }),
1113
+ ).annotate({ identifier: "VerifyModelResponse" });
1114
+ }
1115
+ }
1116
+ function __c13(j: number): any {
1117
+ switch (j) {
1118
+ case 0:
1119
+ return S.suspend(() =>
1120
+ S.Struct({
1121
+ region: S.optional(S.String.pipe(T.Label())),
1122
+ name: S.String,
1123
+ project_id: S.String,
1124
+ source: __S(56, __c14, 0),
1125
+ }).pipe(
1126
+ T.Http({
1127
+ method: "POST",
1128
+ uri: "/inference/v1/regions/{region}/models",
1129
+ code: 200,
1130
+ baseUrl: "https://api.scaleway.com",
1131
+ }),
1132
+ ),
1133
+ ).annotate({ identifier: "CreateModelRequest" });
1134
+ }
1135
+ }
1136
+ function __c14(j: number): any {
1137
+ switch (j) {
1138
+ case 0:
1139
+ return S.suspend(() =>
1140
+ S.Struct({
1141
+ url: S.optional(S.String),
1142
+ secret: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
1143
+ }),
1144
+ ).annotate({ identifier: "ModelSource" });
1145
+ }
1146
+ }
1147
+ function __c15(j: number): any {
1148
+ switch (j) {
1149
+ case 0:
1150
+ return S.suspend(() =>
1151
+ S.Struct({
1152
+ nodes: S.optional(__S(67, __c16, 3)),
1153
+ }),
1154
+ ).annotate({ identifier: "ModelSupportInfo" });
1155
+ case 1:
1156
+ return S.Array(__S(60, __c15, 0));
1157
+ case 2:
1158
+ return S.suspend(() =>
1159
+ S.Struct({
1160
+ id: S.optional(S.String),
1161
+ name: S.optional(S.String),
1162
+ project_id: S.optional(S.String),
1163
+ tags: S.optional(__S(12, __c3, 0)),
1164
+ status: S.optional(S.String),
1165
+ description: S.optional(S.String),
1166
+ error_message: S.optional(S.NullOr(S.String)),
1167
+ has_eula: S.optional(S.Boolean),
1168
+ created_at: S.optional(S.NullOr(S.String)),
1169
+ updated_at: S.optional(S.NullOr(S.String)),
1170
+ region: S.optional(S.String),
1171
+ nodes_support: S.optional(__S(61, __c15, 1)),
1172
+ parameter_size_bits: S.optional(S.Number),
1173
+ size_bytes: S.optional(S.Number),
1174
+ srn: S.optional(S.String),
1175
+ }),
1176
+ ).annotate({ identifier: "Model" });
1177
+ }
1178
+ }
1179
+ function __c16(j: number): any {
1180
+ switch (j) {
1181
+ case 0:
1182
+ return S.suspend(() =>
1183
+ S.Struct({
1184
+ quantization_bits: S.optional(S.Number),
1185
+ allowed: S.optional(S.Boolean),
1186
+ max_context_size: S.optional(S.Number),
1187
+ }),
1188
+ ).annotate({ identifier: "ModelSupportedQuantization" });
1189
+ case 1:
1190
+ return S.Array(__S(64, __c16, 0));
1191
+ case 2:
1192
+ return S.suspend(() =>
1193
+ S.Struct({
1194
+ node_type_name: S.optional(S.String),
1195
+ quantizations: S.optional(__S(65, __c16, 1)),
1196
+ }),
1197
+ ).annotate({ identifier: "ModelSupportedNode" });
1198
+ case 3:
1199
+ return S.Array(__S(66, __c16, 2));
1200
+ }
1201
+ }
1202
+ function __c17(j: number): any {
1203
+ switch (j) {
1204
+ case 0:
1205
+ return S.suspend(() =>
1206
+ S.Struct({
1207
+ region: S.optional(S.String.pipe(T.Label())),
1208
+ deployment_id: S.String.pipe(T.Label()),
1209
+ }).pipe(
1210
+ T.Http({
1211
+ method: "DELETE",
1212
+ uri: "/inference/v1/regions/{region}/deployments/{deployment_id}",
1213
+ code: 200,
1214
+ baseUrl: "https://api.scaleway.com",
1215
+ }),
1216
+ ),
1217
+ ).annotate({ identifier: "DeleteDeploymentRequest" });
1218
+ }
1219
+ }
1220
+ function __c18(j: number): any {
1221
+ switch (j) {
1222
+ case 0:
1223
+ return S.suspend(() =>
1224
+ S.Struct({
1225
+ region: S.optional(S.String.pipe(T.Label())),
1226
+ endpoint_id: S.String.pipe(T.Label()),
1227
+ }).pipe(
1228
+ T.Http({
1229
+ method: "DELETE",
1230
+ uri: "/inference/v1/regions/{region}/endpoints/{endpoint_id}",
1231
+ code: 200,
1232
+ baseUrl: "https://api.scaleway.com",
1233
+ }),
1234
+ ),
1235
+ ).annotate({ identifier: "DeleteEndpointRequest" });
1236
+ }
1237
+ }
1238
+ function __c19(j: number): any {
1239
+ switch (j) {
1240
+ case 0:
1241
+ return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteEndpointResponse" });
1242
+ }
1243
+ }
1244
+ function __c20(j: number): any {
1245
+ switch (j) {
1246
+ case 0:
1247
+ return S.suspend(() =>
1248
+ S.Struct({
1249
+ region: S.optional(S.String.pipe(T.Label())),
1250
+ model_id: S.String.pipe(T.Label()),
1251
+ }).pipe(
1252
+ T.Http({
1253
+ method: "DELETE",
1254
+ uri: "/inference/v1/regions/{region}/models/{model_id}",
1255
+ code: 200,
1256
+ baseUrl: "https://api.scaleway.com",
1257
+ }),
1258
+ ),
1259
+ ).annotate({ identifier: "DeleteModelRequest" });
1260
+ }
1261
+ }
1262
+ function __c21(j: number): any {
1263
+ switch (j) {
1264
+ case 0:
1265
+ return S.suspend(() =>
1266
+ S.Struct({
1267
+ region: S.optional(S.String.pipe(T.Label())),
1268
+ deployment_id: S.String.pipe(T.Label()),
1269
+ }).pipe(
1270
+ T.Http({
1271
+ method: "GET",
1272
+ uri: "/inference/v1/regions/{region}/deployments/{deployment_id}",
1273
+ code: 200,
1274
+ baseUrl: "https://api.scaleway.com",
1275
+ }),
1276
+ ),
1277
+ ).annotate({ identifier: "GetDeploymentRequest" });
1278
+ }
1279
+ }
1280
+ function __c22(j: number): any {
1281
+ switch (j) {
1282
+ case 0:
1283
+ return S.suspend(() =>
1284
+ S.Struct({
1285
+ region: S.optional(S.String.pipe(T.Label())),
1286
+ deployment_id: S.String.pipe(T.Label()),
1287
+ }).pipe(
1288
+ T.Http({
1289
+ method: "GET",
1290
+ uri: "/inference/v1/regions/{region}/deployments/{deployment_id}/certificate",
1291
+ code: 200,
1292
+ baseUrl: "https://api.scaleway.com",
1293
+ }),
1294
+ ),
1295
+ ).annotate({ identifier: "GetDeploymentCertificateRequest" });
1296
+ case 1:
1297
+ return S.suspend(() =>
1298
+ S.Struct({
1299
+ name: S.optional(S.String),
1300
+ content_type: S.optional(S.String),
1301
+ content: S.optional(S.String),
1302
+ }),
1303
+ ).annotate({ identifier: "ScalewayStdFile" });
1304
+ }
1305
+ }
1306
+ function __c23(j: number): any {
1307
+ switch (j) {
1308
+ case 0:
1309
+ return S.suspend(() =>
1310
+ S.Struct({
1311
+ region: S.optional(S.String.pipe(T.Label())),
1312
+ deployment_id: S.String.pipe(T.Label()),
1313
+ }).pipe(
1314
+ T.Http({
1315
+ method: "GET",
1316
+ uri: "/inference/v1/regions/{region}/deployments/{deployment_id}/certificate",
1317
+ code: 200,
1318
+ baseUrl: "https://api.scaleway.com",
1319
+ rawDownload: true,
1320
+ }),
1321
+ ),
1322
+ ).annotate({ identifier: "GetDeploymentCertificateRawRequest" });
1323
+ case 1:
1324
+ return S.suspend(() =>
1325
+ S.Struct({
1326
+ body: BinaryStream.pipe(T.RawResponse(), T.BinaryResponse()),
1327
+ contentType: S.optional(S.String.pipe(T.Header("Content-Type"))),
1328
+ }),
1329
+ ).annotate({ identifier: "GetDeploymentCertificateRawResponse" });
1330
+ }
1331
+ }
1332
+ function __c24(j: number): any {
1333
+ switch (j) {
1334
+ case 0:
1335
+ return S.suspend(() =>
1336
+ S.Struct({
1337
+ region: S.optional(S.String.pipe(T.Label())),
1338
+ model_id: S.String.pipe(T.Label()),
1339
+ }).pipe(
1340
+ T.Http({
1341
+ method: "GET",
1342
+ uri: "/inference/v1/regions/{region}/models/{model_id}",
1343
+ code: 200,
1344
+ baseUrl: "https://api.scaleway.com",
1345
+ }),
1346
+ ),
1347
+ ).annotate({ identifier: "GetModelRequest" });
1348
+ }
1349
+ }
1350
+ // Schema table: entry i is schema j of builder f, made on first reach.
1351
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
1352
+ return (__s[i] ??= __L.at(f, j));
1353
+ }