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

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