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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (639) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +171 -4
  3. package/lib/.lazy.json +1 -0
  4. package/lib/_bundle/lazy.js +4 -0
  5. package/lib/_bundle/sdk.js +2 -0
  6. package/lib/_bundle/sdk.js.map +1 -0
  7. package/lib/credentials.d.ts +44 -0
  8. package/lib/credentials.d.ts.map +1 -0
  9. package/lib/credentials.js +1 -0
  10. package/lib/errors.d.ts +285 -0
  11. package/lib/errors.d.ts.map +1 -0
  12. package/lib/errors.js +1 -0
  13. package/lib/index.d.ts +48 -0
  14. package/lib/index.d.ts.map +1 -0
  15. package/lib/index.js +6 -0
  16. package/lib/pagination.d.ts +10 -0
  17. package/lib/pagination.d.ts.map +1 -0
  18. package/lib/pagination.js +1 -0
  19. package/lib/protocol.d.ts +48 -0
  20. package/lib/protocol.d.ts.map +1 -0
  21. package/lib/protocol.js +1 -0
  22. package/lib/retry.d.ts +31 -0
  23. package/lib/retry.d.ts.map +1 -0
  24. package/lib/retry.js +1 -0
  25. package/lib/services/account_contract_v3.d.ts +124 -0
  26. package/lib/services/account_contract_v3.d.ts.map +1 -0
  27. package/lib/services/account_contract_v3.js +2 -0
  28. package/lib/services/account_contract_v3.js.map +1 -0
  29. package/lib/services/account_iso_code_v3.d.ts +44 -0
  30. package/lib/services/account_iso_code_v3.d.ts.map +1 -0
  31. package/lib/services/account_iso_code_v3.js +2 -0
  32. package/lib/services/account_iso_code_v3.js.map +1 -0
  33. package/lib/services/account_organization_v3.d.ts +290 -0
  34. package/lib/services/account_organization_v3.d.ts.map +1 -0
  35. package/lib/services/account_organization_v3.js +2 -0
  36. package/lib/services/account_organization_v3.js.map +1 -0
  37. package/lib/services/account_project_v3.d.ts +173 -0
  38. package/lib/services/account_project_v3.d.ts.map +1 -0
  39. package/lib/services/account_project_v3.js +2 -0
  40. package/lib/services/account_project_v3.js.map +1 -0
  41. package/lib/services/account_unauthenticated_user_v3.d.ts +479 -0
  42. package/lib/services/account_unauthenticated_user_v3.d.ts.map +1 -0
  43. package/lib/services/account_unauthenticated_user_v3.js +35 -0
  44. package/lib/services/account_unauthenticated_user_v3.js.map +1 -0
  45. package/lib/services/account_unauthenticated_v3.d.ts +18 -0
  46. package/lib/services/account_unauthenticated_v3.d.ts.map +1 -0
  47. package/lib/services/account_unauthenticated_v3.js +2 -0
  48. package/lib/services/account_unauthenticated_v3.js.map +1 -0
  49. package/lib/services/account_user_v3.d.ts +522 -0
  50. package/lib/services/account_user_v3.d.ts.map +1 -0
  51. package/lib/services/account_user_v3.js +39 -0
  52. package/lib/services/account_user_v3.js.map +1 -0
  53. package/lib/services/annotations_v1.d.ts +260 -0
  54. package/lib/services/annotations_v1.d.ts.map +1 -0
  55. package/lib/services/annotations_v1.js +2 -0
  56. package/lib/services/annotations_v1.js.map +1 -0
  57. package/lib/services/baremetal_private_network_v1.d.ts +95 -0
  58. package/lib/services/baremetal_private_network_v1.d.ts.map +1 -0
  59. package/lib/services/baremetal_private_network_v1.js +2 -0
  60. package/lib/services/baremetal_private_network_v1.js.map +1 -0
  61. package/lib/services/baremetal_private_network_v3.d.ts +110 -0
  62. package/lib/services/baremetal_private_network_v3.d.ts.map +1 -0
  63. package/lib/services/baremetal_private_network_v3.js +2 -0
  64. package/lib/services/baremetal_private_network_v3.js.map +1 -0
  65. package/lib/services/baremetal_v1.d.ts +1089 -0
  66. package/lib/services/baremetal_v1.d.ts.map +1 -0
  67. package/lib/services/baremetal_v1.js +52 -0
  68. package/lib/services/baremetal_v1.js.map +1 -0
  69. package/lib/services/billing_electronic_billing_v2.d.ts +86 -0
  70. package/lib/services/billing_electronic_billing_v2.d.ts.map +1 -0
  71. package/lib/services/billing_electronic_billing_v2.js +2 -0
  72. package/lib/services/billing_electronic_billing_v2.js.map +1 -0
  73. package/lib/services/billing_v2.d.ts +187 -0
  74. package/lib/services/billing_v2.d.ts.map +1 -0
  75. package/lib/services/billing_v2.js +2 -0
  76. package/lib/services/billing_v2.js.map +1 -0
  77. package/lib/services/block_v1.d.ts +401 -0
  78. package/lib/services/block_v1.d.ts.map +1 -0
  79. package/lib/services/block_v1.js +27 -0
  80. package/lib/services/block_v1.js.map +1 -0
  81. package/lib/services/cockpit_global_v1.d.ts +75 -0
  82. package/lib/services/cockpit_global_v1.d.ts.map +1 -0
  83. package/lib/services/cockpit_global_v1.js +2 -0
  84. package/lib/services/cockpit_global_v1.js.map +1 -0
  85. package/lib/services/cockpit_regional_v1.d.ts +739 -0
  86. package/lib/services/cockpit_regional_v1.d.ts.map +1 -0
  87. package/lib/services/cockpit_regional_v1.js +47 -0
  88. package/lib/services/cockpit_regional_v1.js.map +1 -0
  89. package/lib/services/containers_v1.d.ts +822 -0
  90. package/lib/services/containers_v1.d.ts.map +1 -0
  91. package/lib/services/containers_v1.js +39 -0
  92. package/lib/services/containers_v1.js.map +1 -0
  93. package/lib/services/dedibox_billing_v1.d.ts +151 -0
  94. package/lib/services/dedibox_billing_v1.d.ts.map +1 -0
  95. package/lib/services/dedibox_billing_v1.js +2 -0
  96. package/lib/services/dedibox_billing_v1.js.map +1 -0
  97. package/lib/services/dedibox_ipv6_block_v1.d.ts +119 -0
  98. package/lib/services/dedibox_ipv6_block_v1.d.ts.map +1 -0
  99. package/lib/services/dedibox_ipv6_block_v1.js +2 -0
  100. package/lib/services/dedibox_ipv6_block_v1.js.map +1 -0
  101. package/lib/services/dedibox_rpn_san_v1.d.ts +486 -0
  102. package/lib/services/dedibox_rpn_san_v1.d.ts.map +1 -0
  103. package/lib/services/dedibox_rpn_san_v1.js +2 -0
  104. package/lib/services/dedibox_rpn_san_v1.js.map +1 -0
  105. package/lib/services/dedibox_rpn_v1.d.ts +68 -0
  106. package/lib/services/dedibox_rpn_v1.d.ts.map +1 -0
  107. package/lib/services/dedibox_rpn_v1.js +2 -0
  108. package/lib/services/dedibox_rpn_v1.js.map +1 -0
  109. package/lib/services/dedibox_rpn_v1_v1.d.ts +687 -0
  110. package/lib/services/dedibox_rpn_v1_v1.d.ts.map +1 -0
  111. package/lib/services/dedibox_rpn_v1_v1.js +30 -0
  112. package/lib/services/dedibox_rpn_v1_v1.js.map +1 -0
  113. package/lib/services/dedibox_rpn_v2_v1.d.ts +646 -0
  114. package/lib/services/dedibox_rpn_v2_v1.d.ts.map +1 -0
  115. package/lib/services/dedibox_rpn_v2_v1.js +27 -0
  116. package/lib/services/dedibox_rpn_v2_v1.js.map +1 -0
  117. package/lib/services/dedibox_v1.d.ts +1351 -0
  118. package/lib/services/dedibox_v1.d.ts.map +1 -0
  119. package/lib/services/dedibox_v1.js +70 -0
  120. package/lib/services/dedibox_v1.js.map +1 -0
  121. package/lib/services/generative_apis_openai_v1.d.ts +772 -0
  122. package/lib/services/generative_apis_openai_v1.d.ts.map +1 -0
  123. package/lib/services/generative_apis_openai_v1.js +24 -0
  124. package/lib/services/generative_apis_openai_v1.js.map +1 -0
  125. package/lib/services/generative_apis_v1.d.ts +82 -0
  126. package/lib/services/generative_apis_v1.d.ts.map +1 -0
  127. package/lib/services/generative_apis_v1.js +2 -0
  128. package/lib/services/generative_apis_v1.js.map +1 -0
  129. package/lib/services/index.d.ts +57 -0
  130. package/lib/services/index.d.ts.map +1 -0
  131. package/lib/services/index.js +56 -0
  132. package/lib/services/inference_v1.d.ts +460 -0
  133. package/lib/services/inference_v1.d.ts.map +1 -0
  134. package/lib/services/inference_v1.js +33 -0
  135. package/lib/services/inference_v1.js.map +1 -0
  136. package/lib/services/instance_v1.d.ts +2183 -0
  137. package/lib/services/instance_v1.d.ts.map +1 -0
  138. package/lib/services/instance_v1.js +112 -0
  139. package/lib/services/instance_v1.js.map +1 -0
  140. package/lib/services/iot_v1.d.ts +837 -0
  141. package/lib/services/iot_v1.d.ts.map +1 -0
  142. package/lib/services/iot_v1.js +50 -0
  143. package/lib/services/iot_v1.js.map +1 -0
  144. package/lib/services/ipam_v1.d.ts +244 -0
  145. package/lib/services/ipam_v1.d.ts.map +1 -0
  146. package/lib/services/ipam_v1.js +2 -0
  147. package/lib/services/ipam_v1.js.map +1 -0
  148. package/lib/services/k8s_v1.d.ts +1223 -0
  149. package/lib/services/k8s_v1.d.ts.map +1 -0
  150. package/lib/services/k8s_v1.js +61 -0
  151. package/lib/services/k8s_v1.js.map +1 -0
  152. package/lib/services/lb_zoned_v1.d.ts +1517 -0
  153. package/lib/services/lb_zoned_v1.d.ts.map +1 -0
  154. package/lib/services/lb_zoned_v1.js +75 -0
  155. package/lib/services/lb_zoned_v1.js.map +1 -0
  156. package/lib/services/marketplace_console_v2.d.ts +72 -0
  157. package/lib/services/marketplace_console_v2.d.ts.map +1 -0
  158. package/lib/services/marketplace_console_v2.js +2 -0
  159. package/lib/services/marketplace_console_v2.js.map +1 -0
  160. package/lib/services/marketplace_v2.d.ts +169 -0
  161. package/lib/services/marketplace_v2.d.ts.map +1 -0
  162. package/lib/services/marketplace_v2.js +2 -0
  163. package/lib/services/marketplace_v2.js.map +1 -0
  164. package/lib/services/mongodb_v1.d.ts +698 -0
  165. package/lib/services/mongodb_v1.d.ts.map +1 -0
  166. package/lib/services/mongodb_v1.js +43 -0
  167. package/lib/services/mongodb_v1.js.map +1 -0
  168. package/lib/services/partner_v1.d.ts +142 -0
  169. package/lib/services/partner_v1.d.ts.map +1 -0
  170. package/lib/services/partner_v1.js +2 -0
  171. package/lib/services/partner_v1.js.map +1 -0
  172. package/lib/services/rdb_encryption_v1.d.ts +17 -0
  173. package/lib/services/rdb_encryption_v1.d.ts.map +1 -0
  174. package/lib/services/rdb_encryption_v1.js +2 -0
  175. package/lib/services/rdb_encryption_v1.js.map +1 -0
  176. package/lib/services/rdb_v1.d.ts +1422 -0
  177. package/lib/services/rdb_v1.d.ts.map +1 -0
  178. package/lib/services/rdb_v1.js +87 -0
  179. package/lib/services/rdb_v1.js.map +1 -0
  180. package/lib/services/redis_v1.d.ts +602 -0
  181. package/lib/services/redis_v1.d.ts.map +1 -0
  182. package/lib/services/redis_v1.js +42 -0
  183. package/lib/services/redis_v1.js.map +1 -0
  184. package/lib/services/registry_v1.d.ts +281 -0
  185. package/lib/services/registry_v1.d.ts.map +1 -0
  186. package/lib/services/registry_v1.js +2 -0
  187. package/lib/services/registry_v1.js.map +1 -0
  188. package/lib/services/reseller_v1.d.ts +81 -0
  189. package/lib/services/reseller_v1.d.ts.map +1 -0
  190. package/lib/services/reseller_v1.js +2 -0
  191. package/lib/services/reseller_v1.js.map +1 -0
  192. package/lib/services/vpc_gw_v2.d.ts +635 -0
  193. package/lib/services/vpc_gw_v2.d.ts.map +1 -0
  194. package/lib/services/vpc_gw_v2.js +46 -0
  195. package/lib/services/vpc_gw_v2.js.map +1 -0
  196. package/lib/services/vpc_private_network_with_nics_v2.d.ts +114 -0
  197. package/lib/services/vpc_private_network_with_nics_v2.d.ts.map +1 -0
  198. package/lib/services/vpc_private_network_with_nics_v2.js +2 -0
  199. package/lib/services/vpc_private_network_with_nics_v2.js.map +1 -0
  200. package/lib/services/vpc_routes_with_nexthop_v2.d.ts +87 -0
  201. package/lib/services/vpc_routes_with_nexthop_v2.d.ts.map +1 -0
  202. package/lib/services/vpc_routes_with_nexthop_v2.js +2 -0
  203. package/lib/services/vpc_routes_with_nexthop_v2.js.map +1 -0
  204. package/lib/services/vpc_v2.d.ts +875 -0
  205. package/lib/services/vpc_v2.d.ts.map +1 -0
  206. package/lib/services/vpc_v2.js +54 -0
  207. package/lib/services/vpc_v2.js.map +1 -0
  208. package/lib/services/webhosting_backup_v1.d.ts +182 -0
  209. package/lib/services/webhosting_backup_v1.d.ts.map +1 -0
  210. package/lib/services/webhosting_backup_v1.js +2 -0
  211. package/lib/services/webhosting_backup_v1.js.map +1 -0
  212. package/lib/services/webhosting_control_panel_v1.d.ts +37 -0
  213. package/lib/services/webhosting_control_panel_v1.d.ts.map +1 -0
  214. package/lib/services/webhosting_control_panel_v1.js +2 -0
  215. package/lib/services/webhosting_control_panel_v1.js.map +1 -0
  216. package/lib/services/webhosting_database_v1.d.ts +195 -0
  217. package/lib/services/webhosting_database_v1.d.ts.map +1 -0
  218. package/lib/services/webhosting_database_v1.js +2 -0
  219. package/lib/services/webhosting_database_v1.js.map +1 -0
  220. package/lib/services/webhosting_dedibox_v1.d.ts +232 -0
  221. package/lib/services/webhosting_dedibox_v1.d.ts.map +1 -0
  222. package/lib/services/webhosting_dedibox_v1.js +2 -0
  223. package/lib/services/webhosting_dedibox_v1.js.map +1 -0
  224. package/lib/services/webhosting_dns_v1.d.ts +177 -0
  225. package/lib/services/webhosting_dns_v1.d.ts.map +1 -0
  226. package/lib/services/webhosting_dns_v1.js +2 -0
  227. package/lib/services/webhosting_dns_v1.js.map +1 -0
  228. package/lib/services/webhosting_free_domain_v1.d.ts +51 -0
  229. package/lib/services/webhosting_free_domain_v1.d.ts.map +1 -0
  230. package/lib/services/webhosting_free_domain_v1.js +2 -0
  231. package/lib/services/webhosting_free_domain_v1.js.map +1 -0
  232. package/lib/services/webhosting_ftp_account_v1.d.ts +79 -0
  233. package/lib/services/webhosting_ftp_account_v1.d.ts.map +1 -0
  234. package/lib/services/webhosting_ftp_account_v1.js +2 -0
  235. package/lib/services/webhosting_ftp_account_v1.js.map +1 -0
  236. package/lib/services/webhosting_hosting_v1.d.ts +502 -0
  237. package/lib/services/webhosting_hosting_v1.d.ts.map +1 -0
  238. package/lib/services/webhosting_hosting_v1.js +27 -0
  239. package/lib/services/webhosting_hosting_v1.js.map +1 -0
  240. package/lib/services/webhosting_mail_account_v1.d.ts +84 -0
  241. package/lib/services/webhosting_mail_account_v1.d.ts.map +1 -0
  242. package/lib/services/webhosting_mail_account_v1.js +2 -0
  243. package/lib/services/webhosting_mail_account_v1.js.map +1 -0
  244. package/lib/services/webhosting_offer_v1.d.ts +122 -0
  245. package/lib/services/webhosting_offer_v1.d.ts.map +1 -0
  246. package/lib/services/webhosting_offer_v1.js +2 -0
  247. package/lib/services/webhosting_offer_v1.js.map +1 -0
  248. package/lib/services/webhosting_website_v1.d.ts +75 -0
  249. package/lib/services/webhosting_website_v1.d.ts.map +1 -0
  250. package/lib/services/webhosting_website_v1.js +2 -0
  251. package/lib/services/webhosting_website_v1.js.map +1 -0
  252. package/lib/services.lazy/account_contract_v3.js +1 -0
  253. package/lib/services.lazy/account_iso_code_v3.js +1 -0
  254. package/lib/services.lazy/account_organization_v3.js +1 -0
  255. package/lib/services.lazy/account_project_v3.js +1 -0
  256. package/lib/services.lazy/account_unauthenticated_user_v3.js +3 -0
  257. package/lib/services.lazy/account_unauthenticated_v3.js +1 -0
  258. package/lib/services.lazy/account_user_v3.js +3 -0
  259. package/lib/services.lazy/annotations_v1.js +1 -0
  260. package/lib/services.lazy/baremetal_private_network_v1.js +1 -0
  261. package/lib/services.lazy/baremetal_private_network_v3.js +1 -0
  262. package/lib/services.lazy/baremetal_v1.js +3 -0
  263. package/lib/services.lazy/billing_electronic_billing_v2.js +1 -0
  264. package/lib/services.lazy/billing_v2.js +1 -0
  265. package/lib/services.lazy/block_v1.js +3 -0
  266. package/lib/services.lazy/cockpit_global_v1.js +1 -0
  267. package/lib/services.lazy/cockpit_regional_v1.js +3 -0
  268. package/lib/services.lazy/containers_v1.js +3 -0
  269. package/lib/services.lazy/dedibox_billing_v1.js +1 -0
  270. package/lib/services.lazy/dedibox_ipv6_block_v1.js +1 -0
  271. package/lib/services.lazy/dedibox_rpn_san_v1.js +1 -0
  272. package/lib/services.lazy/dedibox_rpn_v1.js +1 -0
  273. package/lib/services.lazy/dedibox_rpn_v1_v1.js +3 -0
  274. package/lib/services.lazy/dedibox_rpn_v2_v1.js +3 -0
  275. package/lib/services.lazy/dedibox_v1.js +3 -0
  276. package/lib/services.lazy/generative_apis_openai_v1.js +3 -0
  277. package/lib/services.lazy/generative_apis_v1.js +1 -0
  278. package/lib/services.lazy/index.js +3 -0
  279. package/lib/services.lazy/inference_v1.js +3 -0
  280. package/lib/services.lazy/instance_v1.js +3 -0
  281. package/lib/services.lazy/iot_v1.js +3 -0
  282. package/lib/services.lazy/ipam_v1.js +1 -0
  283. package/lib/services.lazy/k8s_v1.js +3 -0
  284. package/lib/services.lazy/lb_zoned_v1.js +3 -0
  285. package/lib/services.lazy/marketplace_console_v2.js +1 -0
  286. package/lib/services.lazy/marketplace_v2.js +1 -0
  287. package/lib/services.lazy/mongodb_v1.js +3 -0
  288. package/lib/services.lazy/partner_v1.js +1 -0
  289. package/lib/services.lazy/rdb_encryption_v1.js +1 -0
  290. package/lib/services.lazy/rdb_v1.js +3 -0
  291. package/lib/services.lazy/redis_v1.js +3 -0
  292. package/lib/services.lazy/registry_v1.js +1 -0
  293. package/lib/services.lazy/reseller_v1.js +1 -0
  294. package/lib/services.lazy/vpc_gw_v2.js +3 -0
  295. package/lib/services.lazy/vpc_private_network_with_nics_v2.js +1 -0
  296. package/lib/services.lazy/vpc_routes_with_nexthop_v2.js +1 -0
  297. package/lib/services.lazy/vpc_v2.js +3 -0
  298. package/lib/services.lazy/webhosting_backup_v1.js +1 -0
  299. package/lib/services.lazy/webhosting_control_panel_v1.js +1 -0
  300. package/lib/services.lazy/webhosting_database_v1.js +1 -0
  301. package/lib/services.lazy/webhosting_dedibox_v1.js +1 -0
  302. package/lib/services.lazy/webhosting_dns_v1.js +1 -0
  303. package/lib/services.lazy/webhosting_free_domain_v1.js +1 -0
  304. package/lib/services.lazy/webhosting_ftp_account_v1.js +1 -0
  305. package/lib/services.lazy/webhosting_hosting_v1.js +3 -0
  306. package/lib/services.lazy/webhosting_mail_account_v1.js +1 -0
  307. package/lib/services.lazy/webhosting_offer_v1.js +1 -0
  308. package/lib/services.lazy/webhosting_website_v1.js +1 -0
  309. package/lib/traits.d.ts +25 -0
  310. package/lib/traits.d.ts.map +1 -0
  311. package/lib/traits.js +1 -0
  312. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts +119 -0
  313. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts.map +1 -0
  314. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js +2 -0
  315. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js.map +1 -0
  316. package/lib/unstable-services/apple_silicon_v1alpha1.d.ts +569 -0
  317. package/lib/unstable-services/apple_silicon_v1alpha1.d.ts.map +1 -0
  318. package/lib/unstable-services/apple_silicon_v1alpha1.js +38 -0
  319. package/lib/unstable-services/apple_silicon_v1alpha1.js.map +1 -0
  320. package/lib/unstable-services/audit_trail_v1alpha1.d.ts +1082 -0
  321. package/lib/unstable-services/audit_trail_v1alpha1.d.ts.map +1 -0
  322. package/lib/unstable-services/audit_trail_v1alpha1.js +47 -0
  323. package/lib/unstable-services/audit_trail_v1alpha1.js.map +1 -0
  324. package/lib/unstable-services/autoscaling_v1alpha2.d.ts +368 -0
  325. package/lib/unstable-services/autoscaling_v1alpha2.d.ts.map +1 -0
  326. package/lib/unstable-services/autoscaling_v1alpha2.js +2 -0
  327. package/lib/unstable-services/autoscaling_v1alpha2.js.map +1 -0
  328. package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts +78 -0
  329. package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts.map +1 -0
  330. package/lib/unstable-services/billing_fin_ops_v2beta1.js +2 -0
  331. package/lib/unstable-services/billing_fin_ops_v2beta1.js.map +1 -0
  332. package/lib/unstable-services/billing_v2beta1.d.ts +411 -0
  333. package/lib/unstable-services/billing_v2beta1.d.ts.map +1 -0
  334. package/lib/unstable-services/billing_v2beta1.js +25 -0
  335. package/lib/unstable-services/billing_v2beta1.js.map +1 -0
  336. package/lib/unstable-services/block_v1alpha1.d.ts +372 -0
  337. package/lib/unstable-services/block_v1alpha1.d.ts.map +1 -0
  338. package/lib/unstable-services/block_v1alpha1.js +27 -0
  339. package/lib/unstable-services/block_v1alpha1.js.map +1 -0
  340. package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts +440 -0
  341. package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts.map +1 -0
  342. package/lib/unstable-services/data_orchestrator_v1alpha2.js +27 -0
  343. package/lib/unstable-services/data_orchestrator_v1alpha2.js.map +1 -0
  344. package/lib/unstable-services/datalab_v1beta1.d.ts +322 -0
  345. package/lib/unstable-services/datalab_v1beta1.d.ts.map +1 -0
  346. package/lib/unstable-services/datalab_v1beta1.js +2 -0
  347. package/lib/unstable-services/datalab_v1beta1.js.map +1 -0
  348. package/lib/unstable-services/dataviz_v1alpha1.d.ts +456 -0
  349. package/lib/unstable-services/dataviz_v1alpha1.d.ts.map +1 -0
  350. package/lib/unstable-services/dataviz_v1alpha1.js +34 -0
  351. package/lib/unstable-services/dataviz_v1alpha1.js.map +1 -0
  352. package/lib/unstable-services/datawarehouse_v1beta1.d.ts +492 -0
  353. package/lib/unstable-services/datawarehouse_v1beta1.d.ts.map +1 -0
  354. package/lib/unstable-services/datawarehouse_v1beta1.js +34 -0
  355. package/lib/unstable-services/datawarehouse_v1beta1.js.map +1 -0
  356. package/lib/unstable-services/domain_registrar_v2beta1.d.ts +1087 -0
  357. package/lib/unstable-services/domain_registrar_v2beta1.d.ts.map +1 -0
  358. package/lib/unstable-services/domain_registrar_v2beta1.js +50 -0
  359. package/lib/unstable-services/domain_registrar_v2beta1.js.map +1 -0
  360. package/lib/unstable-services/domain_suggestion_v2beta1.d.ts +19 -0
  361. package/lib/unstable-services/domain_suggestion_v2beta1.d.ts.map +1 -0
  362. package/lib/unstable-services/domain_suggestion_v2beta1.js +2 -0
  363. package/lib/unstable-services/domain_suggestion_v2beta1.js.map +1 -0
  364. package/lib/unstable-services/domain_v2beta1.d.ts +520 -0
  365. package/lib/unstable-services/domain_v2beta1.d.ts.map +1 -0
  366. package/lib/unstable-services/domain_v2beta1.js +44 -0
  367. package/lib/unstable-services/domain_v2beta1.js.map +1 -0
  368. package/lib/unstable-services/edge_services_v1beta1.d.ts +1153 -0
  369. package/lib/unstable-services/edge_services_v1beta1.d.ts.map +1 -0
  370. package/lib/unstable-services/edge_services_v1beta1.js +81 -0
  371. package/lib/unstable-services/edge_services_v1beta1.js.map +1 -0
  372. package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts +149 -0
  373. package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts.map +1 -0
  374. package/lib/unstable-services/environmental_footprint_user_v1alpha1.js +2 -0
  375. package/lib/unstable-services/environmental_footprint_user_v1alpha1.js.map +1 -0
  376. package/lib/unstable-services/file_v1alpha1.d.ts +350 -0
  377. package/lib/unstable-services/file_v1alpha1.d.ts.map +1 -0
  378. package/lib/unstable-services/file_v1alpha1.js +24 -0
  379. package/lib/unstable-services/file_v1alpha1.js.map +1 -0
  380. package/lib/unstable-services/flexible_ip_v1alpha1.d.ts +241 -0
  381. package/lib/unstable-services/flexible_ip_v1alpha1.d.ts.map +1 -0
  382. package/lib/unstable-services/flexible_ip_v1alpha1.js +2 -0
  383. package/lib/unstable-services/flexible_ip_v1alpha1.js.map +1 -0
  384. package/lib/unstable-services/functions_v1beta1.d.ts +852 -0
  385. package/lib/unstable-services/functions_v1beta1.d.ts.map +1 -0
  386. package/lib/unstable-services/functions_v1beta1.js +49 -0
  387. package/lib/unstable-services/functions_v1beta1.js.map +1 -0
  388. package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts +257 -0
  389. package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts.map +1 -0
  390. package/lib/unstable-services/iam_unauthenticated_v1alpha1.js +2 -0
  391. package/lib/unstable-services/iam_unauthenticated_v1alpha1.js.map +1 -0
  392. package/lib/unstable-services/iam_v1alpha1.d.ts +1506 -0
  393. package/lib/unstable-services/iam_v1alpha1.d.ts.map +1 -0
  394. package/lib/unstable-services/iam_v1alpha1.js +105 -0
  395. package/lib/unstable-services/iam_v1alpha1.js.map +1 -0
  396. package/lib/unstable-services/index.d.ts +44 -0
  397. package/lib/unstable-services/index.d.ts.map +1 -0
  398. package/lib/unstable-services/index.js +43 -0
  399. package/lib/unstable-services/instance_v2alpha1.d.ts +1745 -0
  400. package/lib/unstable-services/instance_v2alpha1.d.ts.map +1 -0
  401. package/lib/unstable-services/instance_v2alpha1.js +81 -0
  402. package/lib/unstable-services/instance_v2alpha1.js.map +1 -0
  403. package/lib/unstable-services/instance_volume_v2alpha1.d.ts +333 -0
  404. package/lib/unstable-services/instance_volume_v2alpha1.d.ts.map +1 -0
  405. package/lib/unstable-services/instance_volume_v2alpha1.js +26 -0
  406. package/lib/unstable-services/instance_volume_v2alpha1.js.map +1 -0
  407. package/lib/unstable-services/interlink_v1beta1.d.ts +636 -0
  408. package/lib/unstable-services/interlink_v1beta1.d.ts.map +1 -0
  409. package/lib/unstable-services/interlink_v1beta1.js +39 -0
  410. package/lib/unstable-services/interlink_v1beta1.js.map +1 -0
  411. package/lib/unstable-services/kafka_v1alpha1.d.ts +451 -0
  412. package/lib/unstable-services/kafka_v1alpha1.d.ts.map +1 -0
  413. package/lib/unstable-services/kafka_v1alpha1.js +27 -0
  414. package/lib/unstable-services/kafka_v1alpha1.js.map +1 -0
  415. package/lib/unstable-services/key_manager_v1alpha1.d.ts +515 -0
  416. package/lib/unstable-services/key_manager_v1alpha1.d.ts.map +1 -0
  417. package/lib/unstable-services/key_manager_v1alpha1.js +36 -0
  418. package/lib/unstable-services/key_manager_v1alpha1.js.map +1 -0
  419. package/lib/unstable-services/mailbox_v1alpha1.d.ts +438 -0
  420. package/lib/unstable-services/mailbox_v1alpha1.d.ts.map +1 -0
  421. package/lib/unstable-services/mailbox_v1alpha1.js +39 -0
  422. package/lib/unstable-services/mailbox_v1alpha1.js.map +1 -0
  423. package/lib/unstable-services/messageq_v1alpha1.d.ts +420 -0
  424. package/lib/unstable-services/messageq_v1alpha1.d.ts.map +1 -0
  425. package/lib/unstable-services/messageq_v1alpha1.js +29 -0
  426. package/lib/unstable-services/messageq_v1alpha1.js.map +1 -0
  427. package/lib/unstable-services/mnq_console_v1beta1.d.ts +32 -0
  428. package/lib/unstable-services/mnq_console_v1beta1.d.ts.map +1 -0
  429. package/lib/unstable-services/mnq_console_v1beta1.js +2 -0
  430. package/lib/unstable-services/mnq_console_v1beta1.js.map +1 -0
  431. package/lib/unstable-services/mnq_nats_v1beta1.d.ts +177 -0
  432. package/lib/unstable-services/mnq_nats_v1beta1.d.ts.map +1 -0
  433. package/lib/unstable-services/mnq_nats_v1beta1.js +2 -0
  434. package/lib/unstable-services/mnq_nats_v1beta1.js.map +1 -0
  435. package/lib/unstable-services/mnq_sns_v1beta1.d.ts +155 -0
  436. package/lib/unstable-services/mnq_sns_v1beta1.d.ts.map +1 -0
  437. package/lib/unstable-services/mnq_sns_v1beta1.js +2 -0
  438. package/lib/unstable-services/mnq_sns_v1beta1.js.map +1 -0
  439. package/lib/unstable-services/mnq_sqs_v1beta1.d.ts +155 -0
  440. package/lib/unstable-services/mnq_sqs_v1beta1.d.ts.map +1 -0
  441. package/lib/unstable-services/mnq_sqs_v1beta1.js +2 -0
  442. package/lib/unstable-services/mnq_sqs_v1beta1.js.map +1 -0
  443. package/lib/unstable-services/mongodb_v1alpha1.d.ts +604 -0
  444. package/lib/unstable-services/mongodb_v1alpha1.d.ts.map +1 -0
  445. package/lib/unstable-services/mongodb_v1alpha1.js +37 -0
  446. package/lib/unstable-services/mongodb_v1alpha1.js.map +1 -0
  447. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts +477 -0
  448. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts.map +1 -0
  449. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js +2 -0
  450. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js.map +1 -0
  451. package/lib/unstable-services/qaas_v1alpha1.d.ts +764 -0
  452. package/lib/unstable-services/qaas_v1alpha1.d.ts.map +1 -0
  453. package/lib/unstable-services/qaas_v1alpha1.js +51 -0
  454. package/lib/unstable-services/qaas_v1alpha1.js.map +1 -0
  455. package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts +794 -0
  456. package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts.map +1 -0
  457. package/lib/unstable-services/s2s_vpn_v1alpha1.js +45 -0
  458. package/lib/unstable-services/s2s_vpn_v1alpha1.js.map +1 -0
  459. package/lib/unstable-services/search_v1alpha1.d.ts +120 -0
  460. package/lib/unstable-services/search_v1alpha1.d.ts.map +1 -0
  461. package/lib/unstable-services/search_v1alpha1.js +2 -0
  462. package/lib/unstable-services/search_v1alpha1.js.map +1 -0
  463. package/lib/unstable-services/searchdb_v1alpha1.d.ts +424 -0
  464. package/lib/unstable-services/searchdb_v1alpha1.d.ts.map +1 -0
  465. package/lib/unstable-services/searchdb_v1alpha1.js +29 -0
  466. package/lib/unstable-services/searchdb_v1alpha1.js.map +1 -0
  467. package/lib/unstable-services/secret_manager_v1beta1.d.ts +407 -0
  468. package/lib/unstable-services/secret_manager_v1beta1.d.ts.map +1 -0
  469. package/lib/unstable-services/secret_manager_v1beta1.js +32 -0
  470. package/lib/unstable-services/secret_manager_v1beta1.js.map +1 -0
  471. package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts +331 -0
  472. package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts.map +1 -0
  473. package/lib/unstable-services/serverless_jobs_v1alpha1.js +28 -0
  474. package/lib/unstable-services/serverless_jobs_v1alpha1.js.map +1 -0
  475. package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts +546 -0
  476. package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts.map +1 -0
  477. package/lib/unstable-services/serverless_jobs_v1alpha2.js +35 -0
  478. package/lib/unstable-services/serverless_jobs_v1alpha2.js.map +1 -0
  479. package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts +239 -0
  480. package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts.map +1 -0
  481. package/lib/unstable-services/serverless_sqldb_v1alpha1.js +2 -0
  482. package/lib/unstable-services/serverless_sqldb_v1alpha1.js.map +1 -0
  483. package/lib/unstable-services/transactional_email_v1alpha1.d.ts +936 -0
  484. package/lib/unstable-services/transactional_email_v1alpha1.d.ts.map +1 -0
  485. package/lib/unstable-services/transactional_email_v1alpha1.js +46 -0
  486. package/lib/unstable-services/transactional_email_v1alpha1.js.map +1 -0
  487. package/lib/unstable-services.lazy/apple_silicon_private_network_v1alpha1.js +1 -0
  488. package/lib/unstable-services.lazy/apple_silicon_v1alpha1.js +3 -0
  489. package/lib/unstable-services.lazy/audit_trail_v1alpha1.js +3 -0
  490. package/lib/unstable-services.lazy/autoscaling_v1alpha2.js +1 -0
  491. package/lib/unstable-services.lazy/billing_fin_ops_v2beta1.js +1 -0
  492. package/lib/unstable-services.lazy/billing_v2beta1.js +3 -0
  493. package/lib/unstable-services.lazy/block_v1alpha1.js +3 -0
  494. package/lib/unstable-services.lazy/data_orchestrator_v1alpha2.js +3 -0
  495. package/lib/unstable-services.lazy/datalab_v1beta1.js +1 -0
  496. package/lib/unstable-services.lazy/dataviz_v1alpha1.js +3 -0
  497. package/lib/unstable-services.lazy/datawarehouse_v1beta1.js +3 -0
  498. package/lib/unstable-services.lazy/domain_registrar_v2beta1.js +3 -0
  499. package/lib/unstable-services.lazy/domain_suggestion_v2beta1.js +1 -0
  500. package/lib/unstable-services.lazy/domain_v2beta1.js +3 -0
  501. package/lib/unstable-services.lazy/edge_services_v1beta1.js +3 -0
  502. package/lib/unstable-services.lazy/environmental_footprint_user_v1alpha1.js +1 -0
  503. package/lib/unstable-services.lazy/file_v1alpha1.js +3 -0
  504. package/lib/unstable-services.lazy/flexible_ip_v1alpha1.js +1 -0
  505. package/lib/unstable-services.lazy/functions_v1beta1.js +3 -0
  506. package/lib/unstable-services.lazy/iam_unauthenticated_v1alpha1.js +1 -0
  507. package/lib/unstable-services.lazy/iam_v1alpha1.js +3 -0
  508. package/lib/unstable-services.lazy/index.js +3 -0
  509. package/lib/unstable-services.lazy/instance_v2alpha1.js +3 -0
  510. package/lib/unstable-services.lazy/instance_volume_v2alpha1.js +3 -0
  511. package/lib/unstable-services.lazy/interlink_v1beta1.js +3 -0
  512. package/lib/unstable-services.lazy/kafka_v1alpha1.js +3 -0
  513. package/lib/unstable-services.lazy/key_manager_v1alpha1.js +3 -0
  514. package/lib/unstable-services.lazy/mailbox_v1alpha1.js +3 -0
  515. package/lib/unstable-services.lazy/messageq_v1alpha1.js +3 -0
  516. package/lib/unstable-services.lazy/mnq_console_v1beta1.js +1 -0
  517. package/lib/unstable-services.lazy/mnq_nats_v1beta1.js +1 -0
  518. package/lib/unstable-services.lazy/mnq_sns_v1beta1.js +1 -0
  519. package/lib/unstable-services.lazy/mnq_sqs_v1beta1.js +1 -0
  520. package/lib/unstable-services.lazy/mongodb_v1alpha1.js +3 -0
  521. package/lib/unstable-services.lazy/product_catalog_public_catalog_v2alpha1.js +1 -0
  522. package/lib/unstable-services.lazy/qaas_v1alpha1.js +3 -0
  523. package/lib/unstable-services.lazy/s2s_vpn_v1alpha1.js +3 -0
  524. package/lib/unstable-services.lazy/search_v1alpha1.js +1 -0
  525. package/lib/unstable-services.lazy/searchdb_v1alpha1.js +3 -0
  526. package/lib/unstable-services.lazy/secret_manager_v1beta1.js +3 -0
  527. package/lib/unstable-services.lazy/serverless_jobs_v1alpha1.js +3 -0
  528. package/lib/unstable-services.lazy/serverless_jobs_v1alpha2.js +3 -0
  529. package/lib/unstable-services.lazy/serverless_sqldb_v1alpha1.js +1 -0
  530. package/lib/unstable-services.lazy/transactional_email_v1alpha1.js +3 -0
  531. package/package.json +89 -2
  532. package/src/credentials.ts +104 -0
  533. package/src/errors.ts +307 -0
  534. package/src/index.ts +52 -0
  535. package/src/pagination.ts +65 -0
  536. package/src/protocol.ts +496 -0
  537. package/src/retry.ts +47 -0
  538. package/src/services/account_contract_v3.ts +441 -0
  539. package/src/services/account_iso_code_v3.ts +165 -0
  540. package/src/services/account_organization_v3.ts +946 -0
  541. package/src/services/account_project_v3.ts +530 -0
  542. package/src/services/account_unauthenticated_user_v3.ts +1445 -0
  543. package/src/services/account_unauthenticated_v3.ts +92 -0
  544. package/src/services/account_user_v3.ts +1657 -0
  545. package/src/services/annotations_v1.ts +897 -0
  546. package/src/services/baremetal_private_network_v1.ts +327 -0
  547. package/src/services/baremetal_private_network_v3.ts +376 -0
  548. package/src/services/baremetal_v1.ts +3072 -0
  549. package/src/services/billing_electronic_billing_v2.ts +323 -0
  550. package/src/services/billing_v2.ts +662 -0
  551. package/src/services/block_v1.ts +1282 -0
  552. package/src/services/cockpit_global_v1.ts +282 -0
  553. package/src/services/cockpit_regional_v1.ts +2177 -0
  554. package/src/services/containers_v1.ts +2110 -0
  555. package/src/services/dedibox_billing_v1.ts +621 -0
  556. package/src/services/dedibox_ipv6_block_v1.ts +468 -0
  557. package/src/services/dedibox_rpn_san_v1.ts +1185 -0
  558. package/src/services/dedibox_rpn_v1.ts +207 -0
  559. package/src/services/dedibox_rpn_v1_v1.ts +1763 -0
  560. package/src/services/dedibox_rpn_v2_v1.ts +1654 -0
  561. package/src/services/dedibox_v1.ts +3765 -0
  562. package/src/services/generative_apis_openai_v1.ts +1692 -0
  563. package/src/services/generative_apis_v1.ts +251 -0
  564. package/src/services/index.ts +57 -0
  565. package/src/services/inference_v1.ts +1353 -0
  566. package/src/services/instance_v1.ts +6611 -0
  567. package/src/services/iot_v1.ts +2419 -0
  568. package/src/services/ipam_v1.ts +716 -0
  569. package/src/services/k8s_v1.ts +3108 -0
  570. package/src/services/lb_zoned_v1.ts +4533 -0
  571. package/src/services/marketplace_console_v2.ts +198 -0
  572. package/src/services/marketplace_v2.ts +625 -0
  573. package/src/services/mongodb_v1.ts +2104 -0
  574. package/src/services/partner_v1.ts +462 -0
  575. package/src/services/rdb_encryption_v1.ts +83 -0
  576. package/src/services/rdb_v1.ts +4211 -0
  577. package/src/services/redis_v1.ts +1918 -0
  578. package/src/services/registry_v1.ts +863 -0
  579. package/src/services/reseller_v1.ts +258 -0
  580. package/src/services/vpc_gw_v2.ts +2130 -0
  581. package/src/services/vpc_private_network_with_nics_v2.ts +311 -0
  582. package/src/services/vpc_routes_with_nexthop_v2.ts +226 -0
  583. package/src/services/vpc_v2.ts +2533 -0
  584. package/src/services/webhosting_backup_v1.ts +578 -0
  585. package/src/services/webhosting_control_panel_v1.ts +130 -0
  586. package/src/services/webhosting_database_v1.ts +682 -0
  587. package/src/services/webhosting_dedibox_v1.ts +480 -0
  588. package/src/services/webhosting_dns_v1.ts +471 -0
  589. package/src/services/webhosting_free_domain_v1.ts +190 -0
  590. package/src/services/webhosting_ftp_account_v1.ts +280 -0
  591. package/src/services/webhosting_hosting_v1.ts +1309 -0
  592. package/src/services/webhosting_mail_account_v1.ts +291 -0
  593. package/src/services/webhosting_offer_v1.ts +289 -0
  594. package/src/services/webhosting_website_v1.ts +274 -0
  595. package/src/traits.ts +63 -0
  596. package/src/unstable-services/apple_silicon_private_network_v1alpha1.ts +395 -0
  597. package/src/unstable-services/apple_silicon_v1alpha1.ts +1685 -0
  598. package/src/unstable-services/audit_trail_v1alpha1.ts +3220 -0
  599. package/src/unstable-services/autoscaling_v1alpha2.ts +1103 -0
  600. package/src/unstable-services/billing_fin_ops_v2beta1.ts +195 -0
  601. package/src/unstable-services/billing_v2beta1.ts +1203 -0
  602. package/src/unstable-services/block_v1alpha1.ts +1239 -0
  603. package/src/unstable-services/data_orchestrator_v1alpha2.ts +1230 -0
  604. package/src/unstable-services/datalab_v1beta1.ts +852 -0
  605. package/src/unstable-services/dataviz_v1alpha1.ts +1478 -0
  606. package/src/unstable-services/datawarehouse_v1beta1.ts +1504 -0
  607. package/src/unstable-services/domain_registrar_v2beta1.ts +2979 -0
  608. package/src/unstable-services/domain_suggestion_v2beta1.ts +86 -0
  609. package/src/unstable-services/domain_v2beta1.ts +1794 -0
  610. package/src/unstable-services/edge_services_v1beta1.ts +3724 -0
  611. package/src/unstable-services/environmental_footprint_user_v1alpha1.ts +429 -0
  612. package/src/unstable-services/file_v1alpha1.ts +1016 -0
  613. package/src/unstable-services/flexible_ip_v1alpha1.ts +804 -0
  614. package/src/unstable-services/functions_v1beta1.ts +2410 -0
  615. package/src/unstable-services/iam_unauthenticated_v1alpha1.ts +863 -0
  616. package/src/unstable-services/iam_v1alpha1.ts +4919 -0
  617. package/src/unstable-services/index.ts +44 -0
  618. package/src/unstable-services/instance_v2alpha1.ts +5377 -0
  619. package/src/unstable-services/instance_volume_v2alpha1.ts +1111 -0
  620. package/src/unstable-services/interlink_v1beta1.ts +1791 -0
  621. package/src/unstable-services/kafka_v1alpha1.ts +1275 -0
  622. package/src/unstable-services/key_manager_v1alpha1.ts +1618 -0
  623. package/src/unstable-services/mailbox_v1alpha1.ts +1561 -0
  624. package/src/unstable-services/messageq_v1alpha1.ts +1266 -0
  625. package/src/unstable-services/mnq_console_v1beta1.ts +111 -0
  626. package/src/unstable-services/mnq_nats_v1beta1.ts +608 -0
  627. package/src/unstable-services/mnq_sns_v1beta1.ts +523 -0
  628. package/src/unstable-services/mnq_sqs_v1beta1.ts +523 -0
  629. package/src/unstable-services/mongodb_v1alpha1.ts +1789 -0
  630. package/src/unstable-services/product_catalog_public_catalog_v2alpha1.ts +1109 -0
  631. package/src/unstable-services/qaas_v1alpha1.ts +2404 -0
  632. package/src/unstable-services/s2s_vpn_v1alpha1.ts +2173 -0
  633. package/src/unstable-services/search_v1alpha1.ts +349 -0
  634. package/src/unstable-services/searchdb_v1alpha1.ts +1273 -0
  635. package/src/unstable-services/secret_manager_v1beta1.ts +1255 -0
  636. package/src/unstable-services/serverless_jobs_v1alpha1.ts +1017 -0
  637. package/src/unstable-services/serverless_jobs_v1alpha2.ts +1516 -0
  638. package/src/unstable-services/serverless_sqldb_v1alpha1.ts +747 -0
  639. package/src/unstable-services/transactional_email_v1alpha1.ts +2495 -0
@@ -0,0 +1,1478 @@
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: "DatavizV1alpha1",
26
+ labels: "scaleway",
27
+ propagate: "w3c",
28
+ } as const;
29
+
30
+ export interface CreateCertificateRequest {
31
+ /** Region to target. If none is passed will use default region from the config. */
32
+ region?: string | undefined;
33
+ deployment_id: string;
34
+ name: string;
35
+ content: string;
36
+ }
37
+ export interface Certificate {
38
+ id?: string | undefined;
39
+ name?: string | undefined;
40
+ deployment_id?: string | undefined;
41
+ content?: string | undefined;
42
+ created_at?: string | undefined;
43
+ /** Region to target. If none is passed will use default region from the config. */
44
+ region?: string | undefined;
45
+ srn?: string | undefined;
46
+ }
47
+ /** Tags. */
48
+ export type CreateDeploymentRequestTagsList = Array<string>;
49
+ export type VolumeType = "unknown_type" | "sbs_5k" | "sbs_15k";
50
+ export interface Volume {
51
+ /** Type of the Volume. */
52
+ type?: VolumeType | (string & {}) | undefined;
53
+ /** Size of the Volume. */
54
+ size_bytes?: number | undefined;
55
+ }
56
+ export interface EndpointSpecPrivateNetworkDetails {
57
+ private_network_id?: string | undefined;
58
+ }
59
+ export interface EndpointSpec {
60
+ /** One-of ('details'): at most one of 'public', 'privateNetwork' could be set. */
61
+ public?: unknown | undefined;
62
+ /** One-of ('details'): at most one of 'public', 'privateNetwork' could be set. */
63
+ private_network?: EndpointSpecPrivateNetworkDetails | undefined;
64
+ }
65
+ /** Endpoints to access the deployment. */
66
+ export type CreateDeploymentRequestEndpointsList = Array<EndpointSpec>;
67
+ export interface CreateDeploymentRequest {
68
+ /** Region to target. If none is passed will use default region from the config. */
69
+ region?: string | undefined;
70
+ /** Project ID in which to create the deployment. */
71
+ project_id?: string | undefined;
72
+ /** Name of the deployment. */
73
+ name: string;
74
+ /** Tags. */
75
+ tags?: CreateDeploymentRequestTagsList | undefined;
76
+ /** Number of nodes. */
77
+ node_count: number;
78
+ /** Node type to use. */
79
+ node_type: string;
80
+ /** Username for the deployment user. */
81
+ user_name?: string | undefined;
82
+ /** Password for the deployment user. */
83
+ password?: string | Redacted.Redacted<string> | undefined;
84
+ /** Volume for storing data. */
85
+ volume?: Volume | undefined;
86
+ /** Endpoints to access the deployment. */
87
+ endpoints?: CreateDeploymentRequestEndpointsList | undefined;
88
+ /** The DataViz version to use. */
89
+ version: string;
90
+ }
91
+ export type DeploymentStatus =
92
+ | "unknown_status"
93
+ | "ready"
94
+ | "creating"
95
+ | "initializing"
96
+ | "upgrading"
97
+ | "deleting"
98
+ | "error"
99
+ | "locked"
100
+ | "locking"
101
+ | "unlocking";
102
+ /** Tags of the deployment. */
103
+ export type DeploymentTagsList = Array<string>;
104
+ export interface EndpointService {
105
+ name?: string | undefined;
106
+ port?: number | undefined;
107
+ url?: string | undefined;
108
+ }
109
+ /** List of available services, their ports and URLs. */
110
+ export type EndpointServicesList = Array<EndpointService>;
111
+ export type EndpointPrivateNetworkDetails = EndpointSpecPrivateNetworkDetails;
112
+ export interface Endpoint {
113
+ /** Unique identifier of the endpoint. */
114
+ id?: string | undefined;
115
+ /** List of available services, their ports and URLs. */
116
+ services?: EndpointServicesList | undefined;
117
+ /** Region of the endpoint. */
118
+ region?: string | undefined;
119
+ /** The SRN of the endpoint. */
120
+ srn?: string | undefined;
121
+ /** One-of ('details'): at most one of 'public', 'privateNetwork' could be set. */
122
+ public?: unknown | undefined;
123
+ /** One-of ('details'): at most one of 'public', 'privateNetwork' could be set. */
124
+ private_network?: EndpointSpecPrivateNetworkDetails | undefined;
125
+ }
126
+ /** Exposed endpoints. */
127
+ export type DeploymentEndpointsList = Array<Endpoint>;
128
+ export interface Deployment {
129
+ /** Unique identifier of the deployment. */
130
+ id?: string | undefined;
131
+ /** Name of the deployment. */
132
+ name?: string | undefined;
133
+ /** ID of the Organization containing the deployment. */
134
+ organization_id?: string | undefined;
135
+ /** ID of the Project containing the deployment. */
136
+ project_id?: string | undefined;
137
+ /** Status of the deployment. */
138
+ status?: DeploymentStatus | undefined;
139
+ /** Tags of the deployment. */
140
+ tags?: DeploymentTagsList | undefined;
141
+ /** Number of nodes. */
142
+ node_count?: number | undefined;
143
+ /** Node type used. */
144
+ node_type?: string | undefined;
145
+ /** Volume type and size. */
146
+ volume?: Volume | undefined;
147
+ /** Exposed endpoints. */
148
+ endpoints?: DeploymentEndpointsList | undefined;
149
+ /** Date the deployment was created. */
150
+ created_at?: string | undefined;
151
+ /** Date the deployment was last updated. */
152
+ updated_at?: string | undefined;
153
+ /** DataViz version of the deployment. */
154
+ version?: string | undefined;
155
+ /** Region of the deployment. */
156
+ region?: string | undefined;
157
+ /** The SRN of the deployment. */
158
+ srn?: string | undefined;
159
+ }
160
+ export interface CreateEndpointRequest {
161
+ /** Region to target. If none is passed will use default region from the config. */
162
+ region?: string | undefined;
163
+ /** ID of the deployment. */
164
+ deployment_id: string;
165
+ /** Specification of the endpoint you want to create. */
166
+ endpoint_spec?: EndpointSpec | undefined;
167
+ }
168
+ export interface CreateUserRequest {
169
+ /** Region to target. If none is passed will use default region from the config. */
170
+ region?: string | undefined;
171
+ /** ID of the deployment. */
172
+ deployment_id: string;
173
+ /** Username of the deployment user. */
174
+ username: string;
175
+ /** Password of the deployment user. */
176
+ password: string | Redacted.Redacted<string>;
177
+ }
178
+ export interface User {
179
+ /** Username of the deployment user. */
180
+ username?: string | undefined;
181
+ /** ID of the deployment. */
182
+ deployment_id?: string | undefined;
183
+ /** Region of the user. */
184
+ region?: string | undefined;
185
+ /** The SRN of the user. */
186
+ srn?: string | undefined;
187
+ }
188
+ export interface DeleteCertificateRequest {
189
+ /** Region to target. If none is passed will use default region from the config. */
190
+ region?: string | undefined;
191
+ deployment_id: string;
192
+ certificate_id: string;
193
+ }
194
+ export interface DeleteCertificateResponse {}
195
+ export interface DeleteDeploymentRequest {
196
+ /** Region to target. If none is passed will use default region from the config. */
197
+ region?: string | undefined;
198
+ /** ID of the deployment. */
199
+ deployment_id: string;
200
+ }
201
+ export interface DeleteEndpointRequest {
202
+ /** Region to target. If none is passed will use default region from the config. */
203
+ region?: string | undefined;
204
+ /** ID of the endpoint. */
205
+ endpoint_id: string;
206
+ }
207
+ export interface DeleteEndpointResponse {}
208
+ export interface DeleteUserRequest {
209
+ /** Region to target. If none is passed will use default region from the config. */
210
+ region?: string | undefined;
211
+ /** ID of the deployment. */
212
+ deployment_id: string;
213
+ /** Username of the deployment user. */
214
+ username: string;
215
+ }
216
+ export interface DeleteUserResponse {}
217
+ export interface DownloadDeploymentCertificateAuthorityRequest {
218
+ /** Region to target. If none is passed will use default region from the config. */
219
+ region?: string | undefined;
220
+ deployment_id: string;
221
+ }
222
+ export interface ScalewayStdFile {
223
+ name?: string | undefined;
224
+ content_type?: string | undefined;
225
+ content?: string | undefined;
226
+ }
227
+ export interface DownloadDeploymentCertificateAuthorityRawRequest {
228
+ /** Region to target. If none is passed will use default region from the config. */
229
+ region?: string | undefined;
230
+ deployment_id: string;
231
+ }
232
+ export interface DownloadDeploymentCertificateAuthorityRawResponse {
233
+ body: BinaryStream;
234
+ /** Media type of the body, from the response's `Content-Type` header (e.g. `image/jpeg`). */
235
+ contentType?: string | undefined;
236
+ }
237
+ export interface GetCertificateRequest {
238
+ /** Region to target. If none is passed will use default region from the config. */
239
+ region?: string | undefined;
240
+ deployment_id: string;
241
+ certificate_id: string;
242
+ }
243
+ export interface GetDeploymentRequest {
244
+ /** Region to target. If none is passed will use default region from the config. */
245
+ region?: string | undefined;
246
+ /** ID of the deployment. */
247
+ deployment_id: string;
248
+ }
249
+ export type ListCertificatesRequestOrderBy =
250
+ | "name_asc"
251
+ | "name_desc"
252
+ | "created_at_asc"
253
+ | "created_at_desc";
254
+ export interface ListCertificatesRequest {
255
+ /** Region to target. If none is passed will use default region from the config. */
256
+ region?: string | undefined;
257
+ deployment_id: string;
258
+ name?: string | undefined;
259
+ order_by?: ListCertificatesRequestOrderBy | (string & {}) | undefined;
260
+ page?: number | undefined;
261
+ page_size?: number | undefined;
262
+ }
263
+ export type ListCertificatesResponseCertificatesList = Array<Certificate>;
264
+ export interface ListCertificatesResponse {
265
+ certificates: ListCertificatesResponseCertificatesList;
266
+ total_count?: number | undefined;
267
+ }
268
+ export type ListDeploymentsRequestOrderBy =
269
+ | "created_at_asc"
270
+ | "created_at_desc"
271
+ | "name_asc"
272
+ | "name_desc"
273
+ | "updated_at_asc"
274
+ | "updated_at_desc";
275
+ export type ListDeploymentsRequestTagsList = Array<string>;
276
+ export interface ListDeploymentsRequest {
277
+ /** Region to target. If none is passed will use default region from the config. */
278
+ region?: string | undefined;
279
+ /** Deployment name to filter for, only deployments with this string within their name will be returned. */
280
+ name?: string | undefined;
281
+ /** Sort order for deployments in the response. */
282
+ order_by?: ListDeploymentsRequestOrderBy | (string & {}) | undefined;
283
+ /** Organization ID to filter for, only deployments from this Organization will be returned. */
284
+ organization_id?: string | undefined;
285
+ /** Page number to return, from the paginated results. */
286
+ page?: number | undefined;
287
+ /** Number of deployments to return per page. */
288
+ page_size?: number | undefined;
289
+ /** Project ID to filter for, only deployments from this Project will be returned. */
290
+ project_id?: string | undefined;
291
+ /** Tags to filter for, only deployments with one or more matching tags will be returned. */
292
+ tags?: ListDeploymentsRequestTagsList | undefined;
293
+ }
294
+ /** List of deployments. */
295
+ export type ListDeploymentsResponseDeploymentsList = Array<Deployment>;
296
+ export interface ListDeploymentsResponse {
297
+ /** List of deployments. */
298
+ deployments: ListDeploymentsResponseDeploymentsList;
299
+ /** Number of deployments in result set. */
300
+ total_count?: number | undefined;
301
+ }
302
+ export type ListNodeTypesRequestOrderBy =
303
+ | "name_asc"
304
+ | "name_desc"
305
+ | "vcpus_asc"
306
+ | "vcpus_desc"
307
+ | "memory_asc"
308
+ | "memory_desc";
309
+ export interface ListNodeTypesRequest {
310
+ /** Region to target. If none is passed will use default region from the config. */
311
+ region?: string | undefined;
312
+ /** Sort order for versions in the response. */
313
+ order_by?: ListNodeTypesRequestOrderBy | (string & {}) | undefined;
314
+ /** Page number to return, from the paginated results. */
315
+ page?: number | undefined;
316
+ /** Number of node types to return per page. */
317
+ page_size?: number | undefined;
318
+ }
319
+ export type NodeTypeStockStatus = "unknown_stock" | "low_stock" | "out_of_stock" | "available";
320
+ export interface NodeTypeVolumeType {
321
+ type?: VolumeType | undefined;
322
+ description?: string | undefined;
323
+ min_size_bytes?: number | undefined;
324
+ max_size_bytes?: number | undefined;
325
+ chunk_size_bytes?: number | undefined;
326
+ }
327
+ /** Available storage options for the node type. */
328
+ export type NodeTypeAvailableVolumeTypesList = Array<NodeTypeVolumeType>;
329
+ export interface NodeType {
330
+ /** Stock status for the node type. */
331
+ stock_status?: NodeTypeStockStatus | undefined;
332
+ /** Name of the node type. */
333
+ name?: string | undefined;
334
+ /** Description of the node type. */
335
+ description?: string | undefined;
336
+ /** Number of vCPUs available. */
337
+ vcpus?: number | undefined;
338
+ /** Amount of memory available. */
339
+ memory_bytes?: number | undefined;
340
+ /** Defines whether the node type is disabled. */
341
+ disabled?: boolean | undefined;
342
+ /** Defines whether the node type is in beta. */
343
+ beta?: boolean | undefined;
344
+ /** Instance range associated with the node type offer. */
345
+ instance_range?: string | undefined;
346
+ /** Available storage options for the node type. */
347
+ available_volume_types?: NodeTypeAvailableVolumeTypesList | undefined;
348
+ /** Region of the node type. */
349
+ region?: string | undefined;
350
+ /** The SRN of the node type. */
351
+ srn?: string | undefined;
352
+ }
353
+ /** List of node types compatible. */
354
+ export type ListNodeTypesResponseNodeTypesList = Array<NodeType>;
355
+ export interface ListNodeTypesResponse {
356
+ /** List of node types compatible. */
357
+ node_types: ListNodeTypesResponseNodeTypesList;
358
+ /** Number of node types in result set. */
359
+ total_count?: number | undefined;
360
+ }
361
+ export type ListUsersRequestOrderBy = "name_asc" | "name_desc";
362
+ export interface ListUsersRequest {
363
+ /** Region to target. If none is passed will use default region from the config. */
364
+ region?: string | undefined;
365
+ deployment_id: string;
366
+ name?: string | undefined;
367
+ order_by?: ListUsersRequestOrderBy | (string & {}) | undefined;
368
+ page?: number | undefined;
369
+ page_size?: number | undefined;
370
+ }
371
+ export type ListUsersResponseUsersList = Array<User>;
372
+ export interface ListUsersResponse {
373
+ users: ListUsersResponseUsersList;
374
+ total_count?: number | undefined;
375
+ }
376
+ export type ListVersionsRequestOrderBy = "version_asc" | "version_desc";
377
+ export interface ListVersionsRequest {
378
+ /** Region to target. If none is passed will use default region from the config. */
379
+ region?: string | undefined;
380
+ /** Sort order for versions in the response. */
381
+ order_by?: ListVersionsRequestOrderBy | (string & {}) | undefined;
382
+ /** Page number to return, from the paginated results. */
383
+ page?: number | undefined;
384
+ /** Number of versions to return per page. */
385
+ page_size?: number | undefined;
386
+ /** Engine version to filter for, only versions with this version will be returned. */
387
+ version?: string | undefined;
388
+ }
389
+ export interface Version {
390
+ /** DataViz version. */
391
+ version?: string | undefined;
392
+ /** Date the version support ends. */
393
+ end_of_life?: string | undefined;
394
+ /** Defines whether the version is disabled. */
395
+ disabled?: boolean | undefined;
396
+ /** Defines whether the version is in beta. */
397
+ beta?: boolean | undefined;
398
+ /** Region of the version. */
399
+ region?: string | undefined;
400
+ /** The SRN of the version. */
401
+ srn?: string | undefined;
402
+ }
403
+ /** List of versions. */
404
+ export type ListVersionsResponseVersionsList = Array<Version>;
405
+ export interface ListVersionsResponse {
406
+ /** List of versions. */
407
+ versions: ListVersionsResponseVersionsList;
408
+ /** Number of versions in result set. */
409
+ total_count?: number | undefined;
410
+ }
411
+ /** Tags to update. */
412
+ export type UpdateDeploymentRequestTagsList = Array<string>;
413
+ export interface UpdateDeploymentRequest {
414
+ /** Region to target. If none is passed will use default region from the config. */
415
+ region?: string | undefined;
416
+ /** ID of the deployment. */
417
+ deployment_id: string;
418
+ /** New name for the deployment. */
419
+ name?: string | undefined;
420
+ /** Tags to update. */
421
+ tags?: UpdateDeploymentRequestTagsList | undefined;
422
+ }
423
+ export interface UpdateUserRequest {
424
+ /** Region to target. If none is passed will use default region from the config. */
425
+ region?: string | undefined;
426
+ /** ID of the deployment. */
427
+ deployment_id: string;
428
+ /** Username of the deployment user. */
429
+ username: string;
430
+ /** Password of the deployment user. */
431
+ password?: string | Redacted.Redacted<string> | undefined;
432
+ }
433
+ export interface UpgradeDeploymentRequest {
434
+ /** Region to target. If none is passed will use default region from the config. */
435
+ region?: string | undefined;
436
+ /** ID of the deployment. */
437
+ deployment_id: string;
438
+ /** Target number of nodes. One-of ('upgradeTarget'): at most one of 'nodeCount', 'volumeSizeBytes' could be set. */
439
+ node_count?: number | undefined;
440
+ /** Target volume size. One-of ('upgradeTarget'): at most one of 'nodeCount', 'volumeSizeBytes' could be set. */
441
+ volume_size_bytes?: number | undefined;
442
+ }
443
+ export type CreateCertificateError = ScalewayOpError;
444
+ /** Derived from scaleway-sdk-js (`API.createCertificate`): Scaleway publishes no OpenAPI document for this route. */
445
+ export const createCertificate: API.OperationMethod<
446
+ CreateCertificateRequest,
447
+ Certificate,
448
+ CreateCertificateError,
449
+ ScalewayOpContext
450
+ > = /*@__PURE__*/ API.make(() => ({
451
+ input: __S(0, __c0, 0) as any as S.Schema<CreateCertificateRequest>,
452
+ output: __S(8, __c1, 0) as any as S.Schema<Certificate>,
453
+ errors: [],
454
+ serviceErrors: ScalewayServiceErrors,
455
+ protocol: ScalewayProtocol,
456
+ retry: Retry.Retry,
457
+ telemetry: TELEMETRY,
458
+ span: "CreateCertificate",
459
+ }));
460
+
461
+ export type CreateDeploymentError = ScalewayOpError;
462
+ /** Create a new DataViz deployment. Derived from scaleway-sdk-js (`API.createDeployment`): Scaleway publishes no OpenAPI document for this route. */
463
+ export const createDeployment: API.OperationMethod<
464
+ CreateDeploymentRequest,
465
+ Deployment,
466
+ CreateDeploymentError,
467
+ ScalewayOpContext
468
+ > = /*@__PURE__*/ API.make(() => ({
469
+ input: __S(17, __c2, 1) as any as S.Schema<CreateDeploymentRequest>,
470
+ output: __S(43, __c5, 3) as any as S.Schema<Deployment>,
471
+ errors: [],
472
+ serviceErrors: ScalewayServiceErrors,
473
+ protocol: ScalewayProtocol,
474
+ retry: Retry.Retry,
475
+ telemetry: TELEMETRY,
476
+ span: "CreateDeployment",
477
+ }));
478
+
479
+ export type CreateEndpointError = ScalewayOpError;
480
+ /** Create a new endpoint for a deployment. Derived from scaleway-sdk-js (`API.createEndpoint`): Scaleway publishes no OpenAPI document for this route. */
481
+ export const createEndpoint: API.OperationMethod<
482
+ CreateEndpointRequest,
483
+ Endpoint,
484
+ CreateEndpointError,
485
+ ScalewayOpContext
486
+ > = /*@__PURE__*/ API.make(() => ({
487
+ input: __S(128, __c16, 0) as any as S.Schema<CreateEndpointRequest>,
488
+ output: __S(35, __c4, 3) as any as S.Schema<Endpoint>,
489
+ errors: [],
490
+ serviceErrors: ScalewayServiceErrors,
491
+ protocol: ScalewayProtocol,
492
+ retry: Retry.Retry,
493
+ telemetry: TELEMETRY,
494
+ span: "CreateEndpoint",
495
+ }));
496
+
497
+ export type CreateUserError = ScalewayOpError;
498
+ /** Create a new user. Derived from scaleway-sdk-js (`API.createUser`): Scaleway publishes no OpenAPI document for this route. */
499
+ export const createUser: API.OperationMethod<
500
+ CreateUserRequest,
501
+ User,
502
+ CreateUserError,
503
+ ScalewayOpContext
504
+ > = /*@__PURE__*/ API.make(() => ({
505
+ input: __S(136, __c17, 0) as any as S.Schema<CreateUserRequest>,
506
+ output: __S(144, __c18, 0) as any as S.Schema<User>,
507
+ errors: [],
508
+ serviceErrors: ScalewayServiceErrors,
509
+ protocol: ScalewayProtocol,
510
+ retry: Retry.Retry,
511
+ telemetry: TELEMETRY,
512
+ span: "CreateUser",
513
+ }));
514
+
515
+ export type DeleteCertificateError = ScalewayOpError;
516
+ /** Derived from scaleway-sdk-js (`API.deleteCertificate`): Scaleway publishes no OpenAPI document for this route. */
517
+ export const deleteCertificate: API.OperationMethod<
518
+ DeleteCertificateRequest,
519
+ DeleteCertificateResponse,
520
+ DeleteCertificateError,
521
+ ScalewayOpContext
522
+ > = /*@__PURE__*/ API.make(() => ({
523
+ input: __S(152, __c19, 0) as any as S.Schema<DeleteCertificateRequest>,
524
+ output: __S(160, __c20, 0) as any as S.Schema<DeleteCertificateResponse>,
525
+ errors: [],
526
+ serviceErrors: ScalewayServiceErrors,
527
+ protocol: ScalewayProtocol,
528
+ retry: Retry.Retry,
529
+ telemetry: TELEMETRY,
530
+ span: "DeleteCertificate",
531
+ }));
532
+
533
+ export type DeleteDeploymentError = ScalewayOpError;
534
+ /** Delete a DataViz deployment. Derived from scaleway-sdk-js (`API.deleteDeployment`): Scaleway publishes no OpenAPI document for this route. */
535
+ export const deleteDeployment: API.OperationMethod<
536
+ DeleteDeploymentRequest,
537
+ Deployment,
538
+ DeleteDeploymentError,
539
+ ScalewayOpContext
540
+ > = /*@__PURE__*/ API.make(() => ({
541
+ input: __S(168, __c21, 0) as any as S.Schema<DeleteDeploymentRequest>,
542
+ output: __S(43, __c5, 3) as any as S.Schema<Deployment>,
543
+ errors: [],
544
+ serviceErrors: ScalewayServiceErrors,
545
+ protocol: ScalewayProtocol,
546
+ retry: Retry.Retry,
547
+ telemetry: TELEMETRY,
548
+ span: "DeleteDeployment",
549
+ }));
550
+
551
+ export type DeleteEndpointError = ScalewayOpError;
552
+ /** Delete an existing endpoint. Derived from scaleway-sdk-js (`API.deleteEndpoint`): Scaleway publishes no OpenAPI document for this route. */
553
+ export const deleteEndpoint: API.OperationMethod<
554
+ DeleteEndpointRequest,
555
+ DeleteEndpointResponse,
556
+ DeleteEndpointError,
557
+ ScalewayOpContext
558
+ > = /*@__PURE__*/ API.make(() => ({
559
+ input: __S(176, __c22, 0) as any as S.Schema<DeleteEndpointRequest>,
560
+ output: __S(160, __c20, 0) as any as S.Schema<DeleteEndpointResponse>,
561
+ errors: [],
562
+ serviceErrors: ScalewayServiceErrors,
563
+ protocol: ScalewayProtocol,
564
+ retry: Retry.Retry,
565
+ telemetry: TELEMETRY,
566
+ span: "DeleteEndpoint",
567
+ }));
568
+
569
+ export type DeleteUserError = ScalewayOpError;
570
+ /** Delete an existing user. Derived from scaleway-sdk-js (`API.deleteUser`): Scaleway publishes no OpenAPI document for this route. */
571
+ export const deleteUser: API.OperationMethod<
572
+ DeleteUserRequest,
573
+ DeleteUserResponse,
574
+ DeleteUserError,
575
+ ScalewayOpContext
576
+ > = /*@__PURE__*/ API.make(() => ({
577
+ input: __S(184, __c23, 0) as any as S.Schema<DeleteUserRequest>,
578
+ output: __S(160, __c20, 0) as any as S.Schema<DeleteUserResponse>,
579
+ errors: [],
580
+ serviceErrors: ScalewayServiceErrors,
581
+ protocol: ScalewayProtocol,
582
+ retry: Retry.Retry,
583
+ telemetry: TELEMETRY,
584
+ span: "DeleteUser",
585
+ }));
586
+
587
+ export type DownloadDeploymentCertificateAuthorityError = ScalewayOpError;
588
+ /** Derived from scaleway-sdk-js (`API.downloadDeploymentCertificateAuthority`): Scaleway publishes no OpenAPI document for this route. */
589
+ export const downloadDeploymentCertificateAuthority: API.OperationMethod<
590
+ DownloadDeploymentCertificateAuthorityRequest,
591
+ ScalewayStdFile,
592
+ DownloadDeploymentCertificateAuthorityError,
593
+ ScalewayOpContext
594
+ > = /*@__PURE__*/ API.make(() => ({
595
+ input: __S(192, __c24, 0) as any as S.Schema<DownloadDeploymentCertificateAuthorityRequest>,
596
+ output: __S(193, __c24, 1) as any as S.Schema<ScalewayStdFile>,
597
+ errors: [],
598
+ serviceErrors: ScalewayServiceErrors,
599
+ protocol: ScalewayProtocol,
600
+ retry: Retry.Retry,
601
+ telemetry: TELEMETRY,
602
+ span: "DownloadDeploymentCertificateAuthority",
603
+ }));
604
+
605
+ export type DownloadDeploymentCertificateAuthorityRawError = ScalewayOpError;
606
+ /** Derived from scaleway-sdk-js (`API.downloadDeploymentCertificateAuthority`): Scaleway publishes no OpenAPI document for this route. The file itself, as bytes (`?dl=1`), rather than the JSON file object. */
607
+ export const downloadDeploymentCertificateAuthorityRaw: API.OperationMethod<
608
+ DownloadDeploymentCertificateAuthorityRawRequest,
609
+ DownloadDeploymentCertificateAuthorityRawResponse,
610
+ DownloadDeploymentCertificateAuthorityRawError,
611
+ ScalewayOpContext
612
+ > = /*@__PURE__*/ API.make(() => ({
613
+ input: __S(200, __c25, 0) as any as S.Schema<DownloadDeploymentCertificateAuthorityRawRequest>,
614
+ output: __S(201, __c25, 1) as any as S.Schema<DownloadDeploymentCertificateAuthorityRawResponse>,
615
+ errors: [],
616
+ serviceErrors: ScalewayServiceErrors,
617
+ protocol: ScalewayProtocol,
618
+ retry: Retry.Retry,
619
+ telemetry: TELEMETRY,
620
+ span: "DownloadDeploymentCertificateAuthorityRaw",
621
+ }));
622
+
623
+ export type GetCertificateError = ScalewayOpError;
624
+ /** Derived from scaleway-sdk-js (`API.getCertificate`): Scaleway publishes no OpenAPI document for this route. */
625
+ export const getCertificate: API.OperationMethod<
626
+ GetCertificateRequest,
627
+ Certificate,
628
+ GetCertificateError,
629
+ ScalewayOpContext
630
+ > = /*@__PURE__*/ API.make(() => ({
631
+ input: __S(48, __c6, 0) as any as S.Schema<GetCertificateRequest>,
632
+ output: __S(8, __c1, 0) as any as S.Schema<Certificate>,
633
+ errors: [],
634
+ serviceErrors: ScalewayServiceErrors,
635
+ protocol: ScalewayProtocol,
636
+ retry: Retry.Retry,
637
+ telemetry: TELEMETRY,
638
+ span: "GetCertificate",
639
+ }));
640
+
641
+ export type GetDeploymentError = ScalewayOpError;
642
+ /** Retrieve a specific DataViz deployment. Derived from scaleway-sdk-js (`API.getDeployment`): Scaleway publishes no OpenAPI document for this route. */
643
+ export const getDeployment: API.OperationMethod<
644
+ GetDeploymentRequest,
645
+ Deployment,
646
+ GetDeploymentError,
647
+ ScalewayOpContext
648
+ > = /*@__PURE__*/ API.make(() => ({
649
+ input: __S(56, __c7, 0) as any as S.Schema<GetDeploymentRequest>,
650
+ output: __S(43, __c5, 3) as any as S.Schema<Deployment>,
651
+ errors: [],
652
+ serviceErrors: ScalewayServiceErrors,
653
+ protocol: ScalewayProtocol,
654
+ retry: Retry.Retry,
655
+ telemetry: TELEMETRY,
656
+ span: "GetDeployment",
657
+ }));
658
+
659
+ export type ListCertificatesError = ScalewayOpError;
660
+ /** Derived from scaleway-sdk-js (`API.listCertificates`): Scaleway publishes no OpenAPI document for this route. */
661
+ export const listCertificates: API.PaginatedOperationMethod<
662
+ ListCertificatesRequest,
663
+ ListCertificatesResponse,
664
+ ListCertificatesError,
665
+ ScalewayOpContext,
666
+ Certificate
667
+ > = /*@__PURE__*/ API.makePaginated(
668
+ () => ({
669
+ input: __S(64, __c8, 0) as any as S.Schema<ListCertificatesRequest>,
670
+ output: __S(66, __c8, 2) as any as S.Schema<ListCertificatesResponse>,
671
+ errors: [],
672
+ serviceErrors: ScalewayServiceErrors,
673
+ protocol: ScalewayProtocol,
674
+ retry: Retry.Retry,
675
+ telemetry: TELEMETRY,
676
+ span: "ListCertificates",
677
+ pagination: {
678
+ mode: "page",
679
+ inputToken: "page",
680
+ outputToken: "total_count",
681
+ items: "certificates",
682
+ pageSize: "page_size",
683
+ } as const,
684
+ }),
685
+ paginateByTotalCount,
686
+ ) as any;
687
+
688
+ export type ListDeploymentsError = ScalewayOpError;
689
+ /** Retrieve a list of DataViz deployments. Derived from scaleway-sdk-js (`API.listDeployments`): Scaleway publishes no OpenAPI document for this route. */
690
+ export const listDeployments: API.PaginatedOperationMethod<
691
+ ListDeploymentsRequest,
692
+ ListDeploymentsResponse,
693
+ ListDeploymentsError,
694
+ ScalewayOpContext,
695
+ Deployment
696
+ > = /*@__PURE__*/ API.makePaginated(
697
+ () => ({
698
+ input: __S(72, __c9, 0) as any as S.Schema<ListDeploymentsRequest>,
699
+ output: __S(74, __c9, 2) as any as S.Schema<ListDeploymentsResponse>,
700
+ errors: [],
701
+ serviceErrors: ScalewayServiceErrors,
702
+ protocol: ScalewayProtocol,
703
+ retry: Retry.Retry,
704
+ telemetry: TELEMETRY,
705
+ span: "ListDeployments",
706
+ pagination: {
707
+ mode: "page",
708
+ inputToken: "page",
709
+ outputToken: "total_count",
710
+ items: "deployments",
711
+ pageSize: "page_size",
712
+ } as const,
713
+ }),
714
+ paginateByTotalCount,
715
+ ) as any;
716
+
717
+ export type ListNodeTypesError = ScalewayOpError;
718
+ /** Retrieve a list of available node types. Derived from scaleway-sdk-js (`API.listNodeTypes`): Scaleway publishes no OpenAPI document for this route. */
719
+ export const listNodeTypes: API.PaginatedOperationMethod<
720
+ ListNodeTypesRequest,
721
+ ListNodeTypesResponse,
722
+ ListNodeTypesError,
723
+ ScalewayOpContext,
724
+ NodeType
725
+ > = /*@__PURE__*/ API.makePaginated(
726
+ () => ({
727
+ input: __S(80, __c10, 0) as any as S.Schema<ListNodeTypesRequest>,
728
+ output: __S(85, __c10, 5) as any as S.Schema<ListNodeTypesResponse>,
729
+ errors: [],
730
+ serviceErrors: ScalewayServiceErrors,
731
+ protocol: ScalewayProtocol,
732
+ retry: Retry.Retry,
733
+ telemetry: TELEMETRY,
734
+ span: "ListNodeTypes",
735
+ pagination: {
736
+ mode: "page",
737
+ inputToken: "page",
738
+ outputToken: "total_count",
739
+ items: "node_types",
740
+ pageSize: "page_size",
741
+ } as const,
742
+ }),
743
+ paginateByTotalCount,
744
+ ) as any;
745
+
746
+ export type ListUsersError = ScalewayOpError;
747
+ /** Retrieve a list of deployment users. Derived from scaleway-sdk-js (`API.listUsers`): Scaleway publishes no OpenAPI document for this route. */
748
+ export const listUsers: API.PaginatedOperationMethod<
749
+ ListUsersRequest,
750
+ ListUsersResponse,
751
+ ListUsersError,
752
+ ScalewayOpContext,
753
+ User
754
+ > = /*@__PURE__*/ API.makePaginated(
755
+ () => ({
756
+ input: __S(88, __c11, 0) as any as S.Schema<ListUsersRequest>,
757
+ output: __S(90, __c11, 2) as any as S.Schema<ListUsersResponse>,
758
+ errors: [],
759
+ serviceErrors: ScalewayServiceErrors,
760
+ protocol: ScalewayProtocol,
761
+ retry: Retry.Retry,
762
+ telemetry: TELEMETRY,
763
+ span: "ListUsers",
764
+ pagination: {
765
+ mode: "page",
766
+ inputToken: "page",
767
+ outputToken: "total_count",
768
+ items: "users",
769
+ pageSize: "page_size",
770
+ } as const,
771
+ }),
772
+ paginateByTotalCount,
773
+ ) as any;
774
+
775
+ export type ListVersionsError = ScalewayOpError;
776
+ /** List available DataViz versions. Derived from scaleway-sdk-js (`API.listVersions`): Scaleway publishes no OpenAPI document for this route. */
777
+ export const listVersions: API.PaginatedOperationMethod<
778
+ ListVersionsRequest,
779
+ ListVersionsResponse,
780
+ ListVersionsError,
781
+ ScalewayOpContext,
782
+ Version
783
+ > = /*@__PURE__*/ API.makePaginated(
784
+ () => ({
785
+ input: __S(96, __c12, 0) as any as S.Schema<ListVersionsRequest>,
786
+ output: __S(99, __c12, 3) as any as S.Schema<ListVersionsResponse>,
787
+ errors: [],
788
+ serviceErrors: ScalewayServiceErrors,
789
+ protocol: ScalewayProtocol,
790
+ retry: Retry.Retry,
791
+ telemetry: TELEMETRY,
792
+ span: "ListVersions",
793
+ pagination: {
794
+ mode: "page",
795
+ inputToken: "page",
796
+ outputToken: "total_count",
797
+ items: "versions",
798
+ pageSize: "page_size",
799
+ } as const,
800
+ }),
801
+ paginateByTotalCount,
802
+ ) as any;
803
+
804
+ export type UpdateDeploymentError = ScalewayOpError;
805
+ /** Update a DataViz deployment. Derived from scaleway-sdk-js (`API.updateDeployment`): Scaleway publishes no OpenAPI document for this route. */
806
+ export const updateDeployment: API.OperationMethod<
807
+ UpdateDeploymentRequest,
808
+ Deployment,
809
+ UpdateDeploymentError,
810
+ ScalewayOpContext
811
+ > = /*@__PURE__*/ API.make(() => ({
812
+ input: __S(104, __c13, 0) as any as S.Schema<UpdateDeploymentRequest>,
813
+ output: __S(43, __c5, 3) as any as S.Schema<Deployment>,
814
+ errors: [],
815
+ serviceErrors: ScalewayServiceErrors,
816
+ protocol: ScalewayProtocol,
817
+ retry: Retry.Retry,
818
+ telemetry: TELEMETRY,
819
+ span: "UpdateDeployment",
820
+ }));
821
+
822
+ export type UpdateUserError = ScalewayOpError;
823
+ /** Update an existing user. Derived from scaleway-sdk-js (`API.updateUser`): Scaleway publishes no OpenAPI document for this route. */
824
+ export const updateUser: API.OperationMethod<
825
+ UpdateUserRequest,
826
+ User,
827
+ UpdateUserError,
828
+ ScalewayOpContext
829
+ > = /*@__PURE__*/ API.make(() => ({
830
+ input: __S(112, __c14, 0) as any as S.Schema<UpdateUserRequest>,
831
+ output: __S(144, __c18, 0) as any as S.Schema<User>,
832
+ errors: [],
833
+ serviceErrors: ScalewayServiceErrors,
834
+ protocol: ScalewayProtocol,
835
+ retry: Retry.Retry,
836
+ telemetry: TELEMETRY,
837
+ span: "UpdateUser",
838
+ }));
839
+
840
+ export type UpgradeDeploymentError = ScalewayOpError;
841
+ /** Upgrade a DataViz deployment. Derived from scaleway-sdk-js (`API.upgradeDeployment`): Scaleway publishes no OpenAPI document for this route. */
842
+ export const upgradeDeployment: API.OperationMethod<
843
+ UpgradeDeploymentRequest,
844
+ Deployment,
845
+ UpgradeDeploymentError,
846
+ ScalewayOpContext
847
+ > = /*@__PURE__*/ API.make(() => ({
848
+ input: __S(120, __c15, 0) as any as S.Schema<UpgradeDeploymentRequest>,
849
+ output: __S(43, __c5, 3) as any as S.Schema<Deployment>,
850
+ errors: [],
851
+ serviceErrors: ScalewayServiceErrors,
852
+ protocol: ScalewayProtocol,
853
+ retry: Retry.Retry,
854
+ telemetry: TELEMETRY,
855
+ span: "UpgradeDeployment",
856
+ }));
857
+
858
+ // Schema builders: each runs one schema initializer, on that schema's first use.
859
+ function __c0(j: number): any {
860
+ switch (j) {
861
+ case 0:
862
+ return S.suspend(() =>
863
+ S.Struct({
864
+ region: S.optional(S.String.pipe(T.Label())),
865
+ deployment_id: S.String.pipe(T.Label()),
866
+ name: S.String,
867
+ content: S.String,
868
+ }).pipe(
869
+ T.Http({
870
+ method: "POST",
871
+ uri: "/dataviz/v1alpha1/regions/{region}/deployments/{deployment_id}/certificates",
872
+ code: 200,
873
+ baseUrl: "https://api.scaleway.com",
874
+ }),
875
+ ),
876
+ ).annotate({ identifier: "CreateCertificateRequest" });
877
+ }
878
+ }
879
+ function __c1(j: number): any {
880
+ switch (j) {
881
+ case 0:
882
+ return S.suspend(() =>
883
+ S.Struct({
884
+ id: S.optional(S.String),
885
+ name: S.optional(S.String),
886
+ deployment_id: S.optional(S.String),
887
+ content: S.optional(S.String),
888
+ created_at: S.optional(S.String),
889
+ region: S.optional(S.String),
890
+ srn: S.optional(S.String),
891
+ }),
892
+ ).annotate({ identifier: "Certificate" });
893
+ }
894
+ }
895
+ function __c2(j: number): any {
896
+ switch (j) {
897
+ case 0:
898
+ return S.Array(__S(24, __c3, 0));
899
+ case 1:
900
+ return S.suspend(() =>
901
+ S.Struct({
902
+ region: S.optional(S.String.pipe(T.Label())),
903
+ project_id: S.optional(S.String),
904
+ name: S.String,
905
+ tags: S.optional(__S(40, __c5, 0)),
906
+ node_count: S.Number,
907
+ node_type: S.String,
908
+ user_name: S.optional(S.String),
909
+ password: S.optional(S.String.pipe(T.SensitiveValue({}))),
910
+ volume: S.optional(__S(41, __c5, 1)),
911
+ endpoints: S.optional(__S(16, __c2, 0)),
912
+ version: S.String,
913
+ }).pipe(
914
+ T.Http({
915
+ method: "POST",
916
+ uri: "/dataviz/v1alpha1/regions/{region}/deployments",
917
+ code: 200,
918
+ baseUrl: "https://api.scaleway.com",
919
+ }),
920
+ ),
921
+ ).annotate({ identifier: "CreateDeploymentRequest" });
922
+ }
923
+ }
924
+ function __c3(j: number): any {
925
+ switch (j) {
926
+ case 0:
927
+ return S.suspend(() =>
928
+ S.Struct({
929
+ public: S.optional(S.Unknown),
930
+ private_network: S.optional(__S(32, __c4, 0)),
931
+ }),
932
+ ).annotate({ identifier: "EndpointSpec" });
933
+ }
934
+ }
935
+ function __c4(j: number): any {
936
+ switch (j) {
937
+ case 0:
938
+ return S.suspend(() =>
939
+ S.Struct({
940
+ private_network_id: S.optional(S.String),
941
+ }),
942
+ ).annotate({ identifier: "EndpointSpecPrivateNetworkDetails" });
943
+ case 1:
944
+ return S.suspend(() =>
945
+ S.Struct({
946
+ name: S.optional(S.String),
947
+ port: S.optional(S.Number),
948
+ url: S.optional(S.String),
949
+ }),
950
+ ).annotate({ identifier: "EndpointService" });
951
+ case 2:
952
+ return S.Array(__S(33, __c4, 1));
953
+ case 3:
954
+ return S.suspend(() =>
955
+ S.Struct({
956
+ id: S.optional(S.String),
957
+ services: S.optional(__S(34, __c4, 2)),
958
+ region: S.optional(S.String),
959
+ srn: S.optional(S.String),
960
+ public: S.optional(S.Unknown),
961
+ private_network: S.optional(__S(32, __c4, 0)),
962
+ }),
963
+ ).annotate({ identifier: "Endpoint" });
964
+ }
965
+ }
966
+ function __c5(j: number): any {
967
+ switch (j) {
968
+ case 0:
969
+ return S.Array(S.String);
970
+ case 1:
971
+ return S.suspend(() =>
972
+ S.Struct({
973
+ type: S.optional(S.String),
974
+ size_bytes: S.optional(S.Number),
975
+ }),
976
+ ).annotate({ identifier: "Volume" });
977
+ case 2:
978
+ return S.Array(__S(35, __c4, 3));
979
+ case 3:
980
+ return S.suspend(() =>
981
+ S.Struct({
982
+ id: S.optional(S.String),
983
+ name: S.optional(S.String),
984
+ organization_id: S.optional(S.String),
985
+ project_id: S.optional(S.String),
986
+ status: S.optional(S.String),
987
+ tags: S.optional(__S(40, __c5, 0)),
988
+ node_count: S.optional(S.Number),
989
+ node_type: S.optional(S.String),
990
+ volume: S.optional(__S(41, __c5, 1)),
991
+ endpoints: S.optional(__S(42, __c5, 2)),
992
+ created_at: S.optional(S.String),
993
+ updated_at: S.optional(S.String),
994
+ version: S.optional(S.String),
995
+ region: S.optional(S.String),
996
+ srn: S.optional(S.String),
997
+ }),
998
+ ).annotate({ identifier: "Deployment" });
999
+ }
1000
+ }
1001
+ function __c6(j: number): any {
1002
+ switch (j) {
1003
+ case 0:
1004
+ return S.suspend(() =>
1005
+ S.Struct({
1006
+ region: S.optional(S.String.pipe(T.Label())),
1007
+ deployment_id: S.String.pipe(T.Label()),
1008
+ certificate_id: S.String.pipe(T.Label()),
1009
+ }).pipe(
1010
+ T.Http({
1011
+ method: "GET",
1012
+ uri: "/dataviz/v1alpha1/regions/{region}/deployments/{deployment_id}/certificates/{certificate_id}",
1013
+ code: 200,
1014
+ baseUrl: "https://api.scaleway.com",
1015
+ }),
1016
+ ),
1017
+ ).annotate({ identifier: "GetCertificateRequest" });
1018
+ }
1019
+ }
1020
+ function __c7(j: number): any {
1021
+ switch (j) {
1022
+ case 0:
1023
+ return S.suspend(() =>
1024
+ S.Struct({
1025
+ region: S.optional(S.String.pipe(T.Label())),
1026
+ deployment_id: S.String.pipe(T.Label()),
1027
+ }).pipe(
1028
+ T.Http({
1029
+ method: "GET",
1030
+ uri: "/dataviz/v1alpha1/regions/{region}/deployments/{deployment_id}",
1031
+ code: 200,
1032
+ baseUrl: "https://api.scaleway.com",
1033
+ }),
1034
+ ),
1035
+ ).annotate({ identifier: "GetDeploymentRequest" });
1036
+ }
1037
+ }
1038
+ function __c8(j: number): any {
1039
+ switch (j) {
1040
+ case 0:
1041
+ return S.suspend(() =>
1042
+ S.Struct({
1043
+ region: S.optional(S.String.pipe(T.Label())),
1044
+ deployment_id: S.String.pipe(T.Label()),
1045
+ name: S.optional(S.String.pipe(T.Query())),
1046
+ order_by: S.optional(S.String.pipe(T.Query())),
1047
+ page: S.optional(S.Number.pipe(T.Query())),
1048
+ page_size: S.optional(S.Number.pipe(T.Query())),
1049
+ }).pipe(
1050
+ T.Http({
1051
+ method: "GET",
1052
+ uri: "/dataviz/v1alpha1/regions/{region}/deployments/{deployment_id}/certificates",
1053
+ code: 200,
1054
+ baseUrl: "https://api.scaleway.com",
1055
+ }),
1056
+ ),
1057
+ ).annotate({ identifier: "ListCertificatesRequest" });
1058
+ case 1:
1059
+ return S.Array(__S(8, __c1, 0));
1060
+ case 2:
1061
+ return S.suspend(() =>
1062
+ S.Struct({
1063
+ certificates: __S(65, __c8, 1),
1064
+ total_count: S.optional(S.Number),
1065
+ }),
1066
+ ).annotate({ identifier: "ListCertificatesResponse" });
1067
+ }
1068
+ }
1069
+ function __c9(j: number): any {
1070
+ switch (j) {
1071
+ case 0:
1072
+ return S.suspend(() =>
1073
+ S.Struct({
1074
+ region: S.optional(S.String.pipe(T.Label())),
1075
+ name: S.optional(S.String.pipe(T.Query())),
1076
+ order_by: S.optional(S.String.pipe(T.Query())),
1077
+ organization_id: S.optional(S.String.pipe(T.Query())),
1078
+ page: S.optional(S.Number.pipe(T.Query())),
1079
+ page_size: S.optional(S.Number.pipe(T.Query())),
1080
+ project_id: S.optional(S.String.pipe(T.Query())),
1081
+ tags: S.optional(__S(40, __c5, 0).pipe(T.Query())),
1082
+ }).pipe(
1083
+ T.Http({
1084
+ method: "GET",
1085
+ uri: "/dataviz/v1alpha1/regions/{region}/deployments",
1086
+ code: 200,
1087
+ baseUrl: "https://api.scaleway.com",
1088
+ }),
1089
+ ),
1090
+ ).annotate({ identifier: "ListDeploymentsRequest" });
1091
+ case 1:
1092
+ return S.Array(__S(43, __c5, 3));
1093
+ case 2:
1094
+ return S.suspend(() =>
1095
+ S.Struct({
1096
+ deployments: __S(73, __c9, 1),
1097
+ total_count: S.optional(S.Number),
1098
+ }),
1099
+ ).annotate({ identifier: "ListDeploymentsResponse" });
1100
+ }
1101
+ }
1102
+ function __c10(j: number): any {
1103
+ switch (j) {
1104
+ case 0:
1105
+ return S.suspend(() =>
1106
+ S.Struct({
1107
+ region: S.optional(S.String.pipe(T.Label())),
1108
+ order_by: S.optional(S.String.pipe(T.Query())),
1109
+ page: S.optional(S.Number.pipe(T.Query())),
1110
+ page_size: S.optional(S.Number.pipe(T.Query())),
1111
+ }).pipe(
1112
+ T.Http({
1113
+ method: "GET",
1114
+ uri: "/dataviz/v1alpha1/regions/{region}/node-types",
1115
+ code: 200,
1116
+ baseUrl: "https://api.scaleway.com",
1117
+ }),
1118
+ ),
1119
+ ).annotate({ identifier: "ListNodeTypesRequest" });
1120
+ case 1:
1121
+ return S.suspend(() =>
1122
+ S.Struct({
1123
+ type: S.optional(S.String),
1124
+ description: S.optional(S.String),
1125
+ min_size_bytes: S.optional(S.Number),
1126
+ max_size_bytes: S.optional(S.Number),
1127
+ chunk_size_bytes: S.optional(S.Number),
1128
+ }),
1129
+ ).annotate({ identifier: "NodeTypeVolumeType" });
1130
+ case 2:
1131
+ return S.Array(__S(81, __c10, 1));
1132
+ case 3:
1133
+ return S.suspend(() =>
1134
+ S.Struct({
1135
+ stock_status: S.optional(S.String),
1136
+ name: S.optional(S.String),
1137
+ description: S.optional(S.String),
1138
+ vcpus: S.optional(S.Number),
1139
+ memory_bytes: S.optional(S.Number),
1140
+ disabled: S.optional(S.Boolean),
1141
+ beta: S.optional(S.Boolean),
1142
+ instance_range: S.optional(S.String),
1143
+ available_volume_types: S.optional(__S(82, __c10, 2)),
1144
+ region: S.optional(S.String),
1145
+ srn: S.optional(S.String),
1146
+ }),
1147
+ ).annotate({ identifier: "NodeType" });
1148
+ case 4:
1149
+ return S.Array(__S(83, __c10, 3));
1150
+ case 5:
1151
+ return S.suspend(() =>
1152
+ S.Struct({
1153
+ node_types: __S(84, __c10, 4),
1154
+ total_count: S.optional(S.Number),
1155
+ }),
1156
+ ).annotate({ identifier: "ListNodeTypesResponse" });
1157
+ }
1158
+ }
1159
+ function __c11(j: number): any {
1160
+ switch (j) {
1161
+ case 0:
1162
+ return S.suspend(() =>
1163
+ S.Struct({
1164
+ region: S.optional(S.String.pipe(T.Label())),
1165
+ deployment_id: S.String.pipe(T.Label()),
1166
+ name: S.optional(S.String.pipe(T.Query())),
1167
+ order_by: S.optional(S.String.pipe(T.Query())),
1168
+ page: S.optional(S.Number.pipe(T.Query())),
1169
+ page_size: S.optional(S.Number.pipe(T.Query())),
1170
+ }).pipe(
1171
+ T.Http({
1172
+ method: "GET",
1173
+ uri: "/dataviz/v1alpha1/regions/{region}/deployments/{deployment_id}/users",
1174
+ code: 200,
1175
+ baseUrl: "https://api.scaleway.com",
1176
+ }),
1177
+ ),
1178
+ ).annotate({ identifier: "ListUsersRequest" });
1179
+ case 1:
1180
+ return S.Array(__S(144, __c18, 0));
1181
+ case 2:
1182
+ return S.suspend(() =>
1183
+ S.Struct({
1184
+ users: __S(89, __c11, 1),
1185
+ total_count: S.optional(S.Number),
1186
+ }),
1187
+ ).annotate({ identifier: "ListUsersResponse" });
1188
+ }
1189
+ }
1190
+ function __c12(j: number): any {
1191
+ switch (j) {
1192
+ case 0:
1193
+ return S.suspend(() =>
1194
+ S.Struct({
1195
+ region: S.optional(S.String.pipe(T.Label())),
1196
+ order_by: S.optional(S.String.pipe(T.Query())),
1197
+ page: S.optional(S.Number.pipe(T.Query())),
1198
+ page_size: S.optional(S.Number.pipe(T.Query())),
1199
+ version: S.optional(S.String.pipe(T.Query())),
1200
+ }).pipe(
1201
+ T.Http({
1202
+ method: "GET",
1203
+ uri: "/dataviz/v1alpha1/regions/{region}/versions",
1204
+ code: 200,
1205
+ baseUrl: "https://api.scaleway.com",
1206
+ }),
1207
+ ),
1208
+ ).annotate({ identifier: "ListVersionsRequest" });
1209
+ case 1:
1210
+ return S.suspend(() =>
1211
+ S.Struct({
1212
+ version: S.optional(S.String),
1213
+ end_of_life: S.optional(S.String),
1214
+ disabled: S.optional(S.Boolean),
1215
+ beta: S.optional(S.Boolean),
1216
+ region: S.optional(S.String),
1217
+ srn: S.optional(S.String),
1218
+ }),
1219
+ ).annotate({ identifier: "Version" });
1220
+ case 2:
1221
+ return S.Array(__S(97, __c12, 1));
1222
+ case 3:
1223
+ return S.suspend(() =>
1224
+ S.Struct({
1225
+ versions: __S(98, __c12, 2),
1226
+ total_count: S.optional(S.Number),
1227
+ }),
1228
+ ).annotate({ identifier: "ListVersionsResponse" });
1229
+ }
1230
+ }
1231
+ function __c13(j: number): any {
1232
+ switch (j) {
1233
+ case 0:
1234
+ return S.suspend(() =>
1235
+ S.Struct({
1236
+ region: S.optional(S.String.pipe(T.Label())),
1237
+ deployment_id: S.String.pipe(T.Label()),
1238
+ name: S.optional(S.String),
1239
+ tags: S.optional(__S(40, __c5, 0)),
1240
+ }).pipe(
1241
+ T.Http({
1242
+ method: "PATCH",
1243
+ uri: "/dataviz/v1alpha1/regions/{region}/deployments/{deployment_id}",
1244
+ code: 200,
1245
+ baseUrl: "https://api.scaleway.com",
1246
+ }),
1247
+ ),
1248
+ ).annotate({ identifier: "UpdateDeploymentRequest" });
1249
+ }
1250
+ }
1251
+ function __c14(j: number): any {
1252
+ switch (j) {
1253
+ case 0:
1254
+ return S.suspend(() =>
1255
+ S.Struct({
1256
+ region: S.optional(S.String.pipe(T.Label())),
1257
+ deployment_id: S.String.pipe(T.Label()),
1258
+ username: S.String.pipe(T.Label()),
1259
+ password: S.optional(S.String.pipe(T.SensitiveValue({}))),
1260
+ }).pipe(
1261
+ T.Http({
1262
+ method: "PATCH",
1263
+ uri: "/dataviz/v1alpha1/regions/{region}/deployments/{deployment_id}/users/{username}",
1264
+ code: 200,
1265
+ baseUrl: "https://api.scaleway.com",
1266
+ }),
1267
+ ),
1268
+ ).annotate({ identifier: "UpdateUserRequest" });
1269
+ }
1270
+ }
1271
+ function __c15(j: number): any {
1272
+ switch (j) {
1273
+ case 0:
1274
+ return S.suspend(() =>
1275
+ S.Struct({
1276
+ region: S.optional(S.String.pipe(T.Label())),
1277
+ deployment_id: S.String.pipe(T.Label()),
1278
+ node_count: S.optional(S.Number),
1279
+ volume_size_bytes: S.optional(S.Number),
1280
+ }).pipe(
1281
+ T.Http({
1282
+ method: "POST",
1283
+ uri: "/dataviz/v1alpha1/regions/{region}/deployments/{deployment_id}/upgrade",
1284
+ code: 200,
1285
+ baseUrl: "https://api.scaleway.com",
1286
+ }),
1287
+ ),
1288
+ ).annotate({ identifier: "UpgradeDeploymentRequest" });
1289
+ }
1290
+ }
1291
+ function __c16(j: number): any {
1292
+ switch (j) {
1293
+ case 0:
1294
+ return S.suspend(() =>
1295
+ S.Struct({
1296
+ region: S.optional(S.String.pipe(T.Label())),
1297
+ deployment_id: S.String,
1298
+ endpoint_spec: S.optional(__S(24, __c3, 0)),
1299
+ }).pipe(
1300
+ T.Http({
1301
+ method: "POST",
1302
+ uri: "/dataviz/v1alpha1/regions/{region}/endpoints",
1303
+ code: 200,
1304
+ baseUrl: "https://api.scaleway.com",
1305
+ }),
1306
+ ),
1307
+ ).annotate({ identifier: "CreateEndpointRequest" });
1308
+ }
1309
+ }
1310
+ function __c17(j: number): any {
1311
+ switch (j) {
1312
+ case 0:
1313
+ return S.suspend(() =>
1314
+ S.Struct({
1315
+ region: S.optional(S.String.pipe(T.Label())),
1316
+ deployment_id: S.String.pipe(T.Label()),
1317
+ username: S.String,
1318
+ password: S.String.pipe(T.SensitiveValue({})),
1319
+ }).pipe(
1320
+ T.Http({
1321
+ method: "POST",
1322
+ uri: "/dataviz/v1alpha1/regions/{region}/deployments/{deployment_id}/users",
1323
+ code: 200,
1324
+ baseUrl: "https://api.scaleway.com",
1325
+ }),
1326
+ ),
1327
+ ).annotate({ identifier: "CreateUserRequest" });
1328
+ }
1329
+ }
1330
+ function __c18(j: number): any {
1331
+ switch (j) {
1332
+ case 0:
1333
+ return S.suspend(() =>
1334
+ S.Struct({
1335
+ username: S.optional(S.String),
1336
+ deployment_id: S.optional(S.String),
1337
+ region: S.optional(S.String),
1338
+ srn: S.optional(S.String),
1339
+ }),
1340
+ ).annotate({ identifier: "User" });
1341
+ }
1342
+ }
1343
+ function __c19(j: number): any {
1344
+ switch (j) {
1345
+ case 0:
1346
+ return S.suspend(() =>
1347
+ S.Struct({
1348
+ region: S.optional(S.String.pipe(T.Label())),
1349
+ deployment_id: S.String.pipe(T.Label()),
1350
+ certificate_id: S.String.pipe(T.Label()),
1351
+ }).pipe(
1352
+ T.Http({
1353
+ method: "DELETE",
1354
+ uri: "/dataviz/v1alpha1/regions/{region}/deployments/{deployment_id}/certificates/{certificate_id}",
1355
+ code: 200,
1356
+ baseUrl: "https://api.scaleway.com",
1357
+ }),
1358
+ ),
1359
+ ).annotate({ identifier: "DeleteCertificateRequest" });
1360
+ }
1361
+ }
1362
+ function __c20(j: number): any {
1363
+ switch (j) {
1364
+ case 0:
1365
+ return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteCertificateResponse" });
1366
+ }
1367
+ }
1368
+ function __c21(j: number): any {
1369
+ switch (j) {
1370
+ case 0:
1371
+ return S.suspend(() =>
1372
+ S.Struct({
1373
+ region: S.optional(S.String.pipe(T.Label())),
1374
+ deployment_id: S.String.pipe(T.Label()),
1375
+ }).pipe(
1376
+ T.Http({
1377
+ method: "DELETE",
1378
+ uri: "/dataviz/v1alpha1/regions/{region}/deployments/{deployment_id}",
1379
+ code: 200,
1380
+ baseUrl: "https://api.scaleway.com",
1381
+ }),
1382
+ ),
1383
+ ).annotate({ identifier: "DeleteDeploymentRequest" });
1384
+ }
1385
+ }
1386
+ function __c22(j: number): any {
1387
+ switch (j) {
1388
+ case 0:
1389
+ return S.suspend(() =>
1390
+ S.Struct({
1391
+ region: S.optional(S.String.pipe(T.Label())),
1392
+ endpoint_id: S.String.pipe(T.Label()),
1393
+ }).pipe(
1394
+ T.Http({
1395
+ method: "DELETE",
1396
+ uri: "/dataviz/v1alpha1/regions/{region}/endpoints/{endpoint_id}",
1397
+ code: 200,
1398
+ baseUrl: "https://api.scaleway.com",
1399
+ }),
1400
+ ),
1401
+ ).annotate({ identifier: "DeleteEndpointRequest" });
1402
+ }
1403
+ }
1404
+ function __c23(j: number): any {
1405
+ switch (j) {
1406
+ case 0:
1407
+ return S.suspend(() =>
1408
+ S.Struct({
1409
+ region: S.optional(S.String.pipe(T.Label())),
1410
+ deployment_id: S.String.pipe(T.Label()),
1411
+ username: S.String.pipe(T.Label()),
1412
+ }).pipe(
1413
+ T.Http({
1414
+ method: "DELETE",
1415
+ uri: "/dataviz/v1alpha1/regions/{region}/deployments/{deployment_id}/users/{username}",
1416
+ code: 200,
1417
+ baseUrl: "https://api.scaleway.com",
1418
+ }),
1419
+ ),
1420
+ ).annotate({ identifier: "DeleteUserRequest" });
1421
+ }
1422
+ }
1423
+ function __c24(j: number): any {
1424
+ switch (j) {
1425
+ case 0:
1426
+ return S.suspend(() =>
1427
+ S.Struct({
1428
+ region: S.optional(S.String.pipe(T.Label())),
1429
+ deployment_id: S.String.pipe(T.Label()),
1430
+ }).pipe(
1431
+ T.Http({
1432
+ method: "GET",
1433
+ uri: "/dataviz/v1alpha1/regions/{region}/deployments/{deployment_id}/certificate-authority",
1434
+ code: 200,
1435
+ baseUrl: "https://api.scaleway.com",
1436
+ }),
1437
+ ),
1438
+ ).annotate({ identifier: "DownloadDeploymentCertificateAuthorityRequest" });
1439
+ case 1:
1440
+ return S.suspend(() =>
1441
+ S.Struct({
1442
+ name: S.optional(S.String),
1443
+ content_type: S.optional(S.String),
1444
+ content: S.optional(S.String),
1445
+ }),
1446
+ ).annotate({ identifier: "ScalewayStdFile" });
1447
+ }
1448
+ }
1449
+ function __c25(j: number): any {
1450
+ switch (j) {
1451
+ case 0:
1452
+ return S.suspend(() =>
1453
+ S.Struct({
1454
+ region: S.optional(S.String.pipe(T.Label())),
1455
+ deployment_id: S.String.pipe(T.Label()),
1456
+ }).pipe(
1457
+ T.Http({
1458
+ method: "GET",
1459
+ uri: "/dataviz/v1alpha1/regions/{region}/deployments/{deployment_id}/certificate-authority",
1460
+ code: 200,
1461
+ baseUrl: "https://api.scaleway.com",
1462
+ rawDownload: true,
1463
+ }),
1464
+ ),
1465
+ ).annotate({ identifier: "DownloadDeploymentCertificateAuthorityRawRequest" });
1466
+ case 1:
1467
+ return S.suspend(() =>
1468
+ S.Struct({
1469
+ body: BinaryStream.pipe(T.RawResponse(), T.BinaryResponse()),
1470
+ contentType: S.optional(S.String.pipe(T.Header("Content-Type"))),
1471
+ }),
1472
+ ).annotate({ identifier: "DownloadDeploymentCertificateAuthorityRawResponse" });
1473
+ }
1474
+ }
1475
+ // Schema table: entry i is schema j of builder f, made on first reach.
1476
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
1477
+ return (__s[i] ??= __L.at(f, j));
1478
+ }