@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,747 @@
1
+ import * as API from "@distilled.cloud/core/api";
2
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-scaleway). Do not edit.
3
+ import * as S from "@distilled.cloud/core/schema-lite";
4
+ import * as __L from "@distilled.cloud/core/schema-lite";
5
+ import { ScalewayServiceErrors } from "../errors.ts";
6
+ import { paginateByTotalCount } from "../pagination.ts";
7
+ import { ScalewayProtocol, type ScalewayOpError, type ScalewayOpContext } from "../protocol.ts";
8
+ import * as Retry from "../retry.ts";
9
+ import * as T from "../traits.ts";
10
+ // Schema table, filled on first reach (see __S at the end).
11
+ const __s: any[] = [];
12
+
13
+ export type { ScalewayOpError, ScalewayOpContext };
14
+
15
+ /** Span facts shared by every operation (com.distilled.telemetry#service). */
16
+ const TELEMETRY = {
17
+ system: "scaleway-api",
18
+ responseHeaders: [
19
+ { header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
20
+ { header: "request-id", name: "http.response.header.request-id", transform: "list" },
21
+ ],
22
+ prefix: "Scaleway",
23
+ service: "ServerlessSqldbV1alpha1",
24
+ labels: "scaleway",
25
+ propagate: "w3c",
26
+ } as const;
27
+
28
+ export type CreateDatabaseRequestRegion = "fr-par";
29
+ export interface CreateDatabaseRequest {
30
+ /** The region you want to target */
31
+ region?: CreateDatabaseRequestRegion | (string & {}) | undefined;
32
+ /** The ID of your Scaleway project. */
33
+ project_id: string;
34
+ /** The name of the Serverless SQL Database to be created. */
35
+ name: string;
36
+ /** The minimum number of CPU units for your Serverless SQL Database. */
37
+ cpu_min: number;
38
+ /** The maximum number of CPU units for your Serverless SQL Database. */
39
+ cpu_max: number;
40
+ /** The ID of the backup to create the database from. */
41
+ from_backup_id?: string | null | undefined;
42
+ /** The major version of the postgreSQL requested. */
43
+ version?: string | undefined;
44
+ }
45
+ export type DatabaseStatus =
46
+ | "unknown_status"
47
+ | "error"
48
+ | "creating"
49
+ | "ready"
50
+ | "deleting"
51
+ | "restoring"
52
+ | "locked";
53
+ export interface Version {
54
+ /** Major number of the PostgreSQL engine. */
55
+ name?: string | undefined;
56
+ /** The SRN of the version. */
57
+ srn?: string | undefined;
58
+ /** Date of End Of Life. (RFC 3339 format) */
59
+ end_of_life_at?: string | null | undefined;
60
+ /** The region you want to target */
61
+ region?: string | undefined;
62
+ }
63
+ export interface Database {
64
+ /** UUID that uniquely identifies your Serverless SQL DB Database. */
65
+ id?: string | undefined;
66
+ /** The SRN of the database. */
67
+ srn?: string | undefined;
68
+ /** Name of the database. */
69
+ name?: string | undefined;
70
+ /** Status of the Serverless SQL Ddatabase. One of `unknown_status` | `ready` | `creating` | `deleting` | `error` | `restoring` | `locked`. */
71
+ status?: DatabaseStatus | undefined;
72
+ /** Endpoint of the database. */
73
+ endpoint?: string | undefined;
74
+ /** The ID of your Scaleway organization. */
75
+ organization_id?: string | undefined;
76
+ /** Project ID the database belongs to. */
77
+ project_id?: string | undefined;
78
+ /** Region of the database. */
79
+ region?: string | undefined;
80
+ /** Creation date. (RFC 3339 format) */
81
+ created_at?: string | null | undefined;
82
+ /** The minimum number of CPU units for your Serverless SQL Database. */
83
+ cpu_min?: number | undefined;
84
+ /** The maximum number of CPU units for your Serverless SQL Database. */
85
+ cpu_max?: number | undefined;
86
+ /** The current number of CPU units allocated to your Serverless SQL Database. */
87
+ cpu_current?: number | undefined;
88
+ /** Whether your Serverless SQL Database is running or not. */
89
+ started?: boolean | undefined;
90
+ /** The major version of the underlying database engine. (deprecated in favor of `version`). */
91
+ engine_major_version?: number | undefined;
92
+ /** The major version of the underlying database engine. */
93
+ version?: Version | undefined;
94
+ }
95
+ export type DeleteDatabaseRequestRegion = "fr-par";
96
+ export interface DeleteDatabaseRequest {
97
+ /** The region you want to target */
98
+ region?: DeleteDatabaseRequestRegion | (string & {}) | undefined;
99
+ /** UUID of the Serverless SQL Database. */
100
+ database_id: string;
101
+ }
102
+ export type ExportDatabaseBackupRequestRegion = "fr-par";
103
+ export interface ExportDatabaseBackupRequest {
104
+ /** The region you want to target */
105
+ region?: ExportDatabaseBackupRequestRegion | (string & {}) | undefined;
106
+ /** UUID of the Serverless SQL Database backup. */
107
+ backup_id: string;
108
+ }
109
+ export type DatabaseBackupStatus = "unknown_status" | "error" | "ready" | "locked";
110
+ export interface DatabaseBackup {
111
+ /** UUID that uniquely identifies a Serverless SQL Database backup. */
112
+ id?: string | undefined;
113
+ /** The SRN of the database backup. */
114
+ srn?: string | undefined;
115
+ /** Status of the Serverless SQL Database backup. One of `unknown_status` | `error` | `ready` | `locked`. */
116
+ status?: DatabaseBackupStatus | undefined;
117
+ /** The ID of your Scaleway organization. */
118
+ organization_id?: string | undefined;
119
+ /** UUID of the Scaleway project. */
120
+ project_id?: string | undefined;
121
+ /** UUID of the source Serverless SQL Database the backup is created from. */
122
+ database_id?: string | undefined;
123
+ /** Creation date. (RFC 3339 format) */
124
+ created_at?: string | null | undefined;
125
+ /** Expiration date. (RFC 3339 format) */
126
+ expires_at?: string | null | undefined;
127
+ /** Size (in bytes) of the database backup file. (in bytes) */
128
+ size?: number | null | undefined;
129
+ /** Size (in bytes) of the database when backup has been done. (in bytes) */
130
+ db_size?: number | null | undefined;
131
+ /** Download URL of the exported database backup. */
132
+ download_url?: string | null | undefined;
133
+ /** Expiration date of the download URL. (RFC 3339 format) */
134
+ download_url_expires_at?: string | null | undefined;
135
+ /** Region of the database backup. */
136
+ region?: string | undefined;
137
+ }
138
+ export type GetDatabaseRequestRegion = "fr-par";
139
+ export interface GetDatabaseRequest {
140
+ /** The region you want to target */
141
+ region?: GetDatabaseRequestRegion | (string & {}) | undefined;
142
+ /** UUID of the Serverless SQL DB database. */
143
+ database_id: string;
144
+ }
145
+ export type GetDatabaseBackupRequestRegion = "fr-par";
146
+ export interface GetDatabaseBackupRequest {
147
+ /** The region you want to target */
148
+ region?: GetDatabaseBackupRequestRegion | (string & {}) | undefined;
149
+ /** UUID of the Serverless SQL Database backup. */
150
+ backup_id: string;
151
+ }
152
+ export type ListDatabaseBackupsRequestRegion = "fr-par";
153
+ export type ListDatabaseBackupsRequestOrderBy = "created_at_desc" | "created_at_asc";
154
+ export interface ListDatabaseBackupsRequest {
155
+ /** The region you want to target */
156
+ region?: ListDatabaseBackupsRequestRegion | (string & {}) | undefined;
157
+ /** Filter by the UUID of the Scaleway organization. (UUID format) */
158
+ organization_id?: string | undefined;
159
+ /** Filter by the UUID of the Scaleway project. (UUID format) */
160
+ project_id?: string | undefined;
161
+ /** Filter by the UUID of the Serverless SQL Database. */
162
+ database_id: string;
163
+ /** Page number. */
164
+ page?: number | undefined;
165
+ /** Page size. */
166
+ page_size?: number | undefined;
167
+ /** Sorting criteria. One of `created_at_asc`, `created_at_desc`. */
168
+ order_by?: ListDatabaseBackupsRequestOrderBy | (string & {}) | undefined;
169
+ }
170
+ /** List of the backups. */
171
+ export type ListDatabaseBackupsResponseBackupsList = Array<DatabaseBackup>;
172
+ export interface ListDatabaseBackupsResponse {
173
+ /** List of the backups. */
174
+ backups: ListDatabaseBackupsResponseBackupsList;
175
+ /** Length of the backups list. */
176
+ total_count?: number | undefined;
177
+ }
178
+ export type ListDatabasesRequestRegion = "fr-par";
179
+ export type ListDatabasesRequestOrderBy =
180
+ | "created_at_asc"
181
+ | "created_at_desc"
182
+ | "name_asc"
183
+ | "name_desc";
184
+ export interface ListDatabasesRequest {
185
+ /** The region you want to target */
186
+ region?: ListDatabasesRequestRegion | (string & {}) | undefined;
187
+ /** Filter by the UUID of the Scaleway organization. (UUID format) */
188
+ organization_id?: string | undefined;
189
+ /** UUID of the Scaleway project. */
190
+ project_id: string;
191
+ /** Page number. */
192
+ page?: number | undefined;
193
+ /** Page size. */
194
+ page_size?: number | undefined;
195
+ /** Filter by the name of the database. */
196
+ name?: string | undefined;
197
+ /** Sorting criteria. One of `created_at_asc`, `created_at_desc`, `name_asc`, `name_desc`. */
198
+ order_by?: ListDatabasesRequestOrderBy | (string & {}) | undefined;
199
+ }
200
+ /** List of the databases. */
201
+ export type ListDatabasesResponseDatabasesList = Array<Database>;
202
+ export interface ListDatabasesResponse {
203
+ /** List of the databases. */
204
+ databases: ListDatabasesResponseDatabasesList;
205
+ /** Total count of Serverless SQL Databases. */
206
+ total_count?: number | undefined;
207
+ }
208
+ export type ListVersionsRequestRegion = "fr-par";
209
+ export interface ListVersionsRequest {
210
+ /** The region you want to target */
211
+ region?: ListVersionsRequestRegion | (string & {}) | undefined;
212
+ version?: string | undefined;
213
+ page?: number | undefined;
214
+ page_size?: number | undefined;
215
+ }
216
+ /** Available PostgreSQL versions. */
217
+ export type ListVersionsResponseVersionsList = Array<Version>;
218
+ export interface ListVersionsResponse {
219
+ /** Available PostgreSQL versions. */
220
+ versions: ListVersionsResponseVersionsList;
221
+ /** Total count of versions available. */
222
+ total_count?: number | undefined;
223
+ }
224
+ export type RestoreDatabaseFromBackupRequestRegion = "fr-par";
225
+ export interface RestoreDatabaseFromBackupRequest {
226
+ /** The region you want to target */
227
+ region?: RestoreDatabaseFromBackupRequestRegion | (string & {}) | undefined;
228
+ /** UUID of the Serverless SQL Database. */
229
+ database_id: string;
230
+ /** UUID of the Serverless SQL Database backup to restore. */
231
+ backup_id: string;
232
+ }
233
+ export type UpdateDatabaseRequestRegion = "fr-par";
234
+ export interface UpdateDatabaseRequest {
235
+ /** The region you want to target */
236
+ region?: UpdateDatabaseRequestRegion | (string & {}) | undefined;
237
+ /** UUID of the Serverless SQL Database. */
238
+ database_id: string;
239
+ /** The minimum number of CPU units for your Serverless SQL Database. */
240
+ cpu_min?: number | null | undefined;
241
+ /** The maximum number of CPU units for your Serverless SQL Database. */
242
+ cpu_max?: number | null | undefined;
243
+ }
244
+ export type CreateDatabaseError = ScalewayOpError;
245
+ /** Create a new Serverless SQL Database You must provide the following parameters: `organization_id`, `project_id`, `name`, `cpu_min`, `cpu_max`. You can also provide `from_backup_id` to create a database from a backup. */
246
+ export const createDatabase: API.OperationMethod<
247
+ CreateDatabaseRequest,
248
+ Database,
249
+ CreateDatabaseError,
250
+ ScalewayOpContext
251
+ > = /*@__PURE__*/ API.make(() => ({
252
+ input: __S(0, __c0, 0) as any as S.Schema<CreateDatabaseRequest>,
253
+ output: __S(8, __c2, 0) as any as S.Schema<Database>,
254
+ errors: [],
255
+ serviceErrors: ScalewayServiceErrors,
256
+ protocol: ScalewayProtocol,
257
+ retry: Retry.Retry,
258
+ telemetry: TELEMETRY,
259
+ span: "CreateDatabase",
260
+ }));
261
+
262
+ export type DeleteDatabaseError = ScalewayOpError;
263
+ /** Delete a database Deletes a database. You must provide the `database_id` parameter. All data stored in the database will be permanently deleted. */
264
+ export const deleteDatabase: API.OperationMethod<
265
+ DeleteDatabaseRequest,
266
+ Database,
267
+ DeleteDatabaseError,
268
+ ScalewayOpContext
269
+ > = /*@__PURE__*/ API.make(() => ({
270
+ input: __S(12, __c3, 0) as any as S.Schema<DeleteDatabaseRequest>,
271
+ output: __S(8, __c2, 0) as any as S.Schema<Database>,
272
+ errors: [],
273
+ serviceErrors: ScalewayServiceErrors,
274
+ protocol: ScalewayProtocol,
275
+ retry: Retry.Retry,
276
+ telemetry: TELEMETRY,
277
+ span: "DeleteDatabase",
278
+ }));
279
+
280
+ export type ExportDatabaseBackupError = ScalewayOpError;
281
+ /** Export a database backup Export a database backup providing a download link once the export process is completed. You must provide the `backup_id` parameter. */
282
+ export const exportDatabaseBackup: API.OperationMethod<
283
+ ExportDatabaseBackupRequest,
284
+ DatabaseBackup,
285
+ ExportDatabaseBackupError,
286
+ ScalewayOpContext
287
+ > = /*@__PURE__*/ API.make(() => ({
288
+ input: __S(16, __c4, 0) as any as S.Schema<ExportDatabaseBackupRequest>,
289
+ output: __S(20, __c5, 0) as any as S.Schema<DatabaseBackup>,
290
+ errors: [],
291
+ serviceErrors: ScalewayServiceErrors,
292
+ protocol: ScalewayProtocol,
293
+ retry: Retry.Retry,
294
+ telemetry: TELEMETRY,
295
+ span: "ExportDatabaseBackup",
296
+ }));
297
+
298
+ export type GetDatabaseError = ScalewayOpError;
299
+ /** Get a database information Retrieve information about your Serverless SQL Database. You must provide the `database_id` parameter. */
300
+ export const getDatabase: API.OperationMethod<
301
+ GetDatabaseRequest,
302
+ Database,
303
+ GetDatabaseError,
304
+ ScalewayOpContext
305
+ > = /*@__PURE__*/ API.make(() => ({
306
+ input: __S(24, __c6, 0) as any as S.Schema<GetDatabaseRequest>,
307
+ output: __S(8, __c2, 0) as any as S.Schema<Database>,
308
+ errors: [],
309
+ serviceErrors: ScalewayServiceErrors,
310
+ protocol: ScalewayProtocol,
311
+ retry: Retry.Retry,
312
+ telemetry: TELEMETRY,
313
+ span: "GetDatabase",
314
+ }));
315
+
316
+ export type GetDatabaseBackupError = ScalewayOpError;
317
+ /** Get a database backup information Retrieve information about your Serverless SQL Database backup. You must provide the `backup_id` parameter. */
318
+ export const getDatabaseBackup: API.OperationMethod<
319
+ GetDatabaseBackupRequest,
320
+ DatabaseBackup,
321
+ GetDatabaseBackupError,
322
+ ScalewayOpContext
323
+ > = /*@__PURE__*/ API.make(() => ({
324
+ input: __S(28, __c7, 0) as any as S.Schema<GetDatabaseBackupRequest>,
325
+ output: __S(20, __c5, 0) as any as S.Schema<DatabaseBackup>,
326
+ errors: [],
327
+ serviceErrors: ScalewayServiceErrors,
328
+ protocol: ScalewayProtocol,
329
+ retry: Retry.Retry,
330
+ telemetry: TELEMETRY,
331
+ span: "GetDatabaseBackup",
332
+ }));
333
+
334
+ export type ListDatabaseBackupsError = ScalewayOpError;
335
+ /** List your Serverless SQL Database backups List all Serverless SQL Database backups for a given Scaleway Project or Database. By default, the backups returned in the list are ordered by creation date in descending order, though this can be modified via the order_by field. */
336
+ export const listDatabaseBackups: API.PaginatedOperationMethod<
337
+ ListDatabaseBackupsRequest,
338
+ ListDatabaseBackupsResponse,
339
+ ListDatabaseBackupsError,
340
+ ScalewayOpContext,
341
+ DatabaseBackup
342
+ > = /*@__PURE__*/ API.makePaginated(
343
+ () => ({
344
+ input: __S(32, __c8, 0) as any as S.Schema<ListDatabaseBackupsRequest>,
345
+ output: __S(34, __c8, 2) as any as S.Schema<ListDatabaseBackupsResponse>,
346
+ errors: [],
347
+ serviceErrors: ScalewayServiceErrors,
348
+ protocol: ScalewayProtocol,
349
+ retry: Retry.Retry,
350
+ telemetry: TELEMETRY,
351
+ span: "ListDatabaseBackups",
352
+ pagination: {
353
+ mode: "page",
354
+ inputToken: "page",
355
+ outputToken: "total_count",
356
+ items: "backups",
357
+ pageSize: "page_size",
358
+ } as const,
359
+ }),
360
+ paginateByTotalCount,
361
+ ) as any;
362
+
363
+ export type ListDatabasesError = ScalewayOpError;
364
+ /** List your Serverless SQL Databases List all Serverless SQL Databases for a given Scaleway Organization or Scaleway Project. By default, the databases returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. For the `name` parameter, the value you include will be checked against the whole name string to see if it includes the string you put in the parameter. */
365
+ export const listDatabases: API.PaginatedOperationMethod<
366
+ ListDatabasesRequest,
367
+ ListDatabasesResponse,
368
+ ListDatabasesError,
369
+ ScalewayOpContext,
370
+ Database
371
+ > = /*@__PURE__*/ API.makePaginated(
372
+ () => ({
373
+ input: __S(36, __c9, 0) as any as S.Schema<ListDatabasesRequest>,
374
+ output: __S(38, __c9, 2) as any as S.Schema<ListDatabasesResponse>,
375
+ errors: [],
376
+ serviceErrors: ScalewayServiceErrors,
377
+ protocol: ScalewayProtocol,
378
+ retry: Retry.Retry,
379
+ telemetry: TELEMETRY,
380
+ span: "ListDatabases",
381
+ pagination: {
382
+ mode: "page",
383
+ inputToken: "page",
384
+ outputToken: "total_count",
385
+ items: "databases",
386
+ pageSize: "page_size",
387
+ } as const,
388
+ }),
389
+ paginateByTotalCount,
390
+ ) as any;
391
+
392
+ export type ListVersionsError = ScalewayOpError;
393
+ /** List available PostgreSQL major versions */
394
+ export const listVersions: API.PaginatedOperationMethod<
395
+ ListVersionsRequest,
396
+ ListVersionsResponse,
397
+ ListVersionsError,
398
+ ScalewayOpContext,
399
+ Version
400
+ > = /*@__PURE__*/ API.makePaginated(
401
+ () => ({
402
+ input: __S(40, __c10, 0) as any as S.Schema<ListVersionsRequest>,
403
+ output: __S(42, __c10, 2) as any as S.Schema<ListVersionsResponse>,
404
+ errors: [],
405
+ serviceErrors: ScalewayServiceErrors,
406
+ protocol: ScalewayProtocol,
407
+ retry: Retry.Retry,
408
+ telemetry: TELEMETRY,
409
+ span: "ListVersions",
410
+ pagination: {
411
+ mode: "page",
412
+ inputToken: "page",
413
+ outputToken: "total_count",
414
+ items: "versions",
415
+ pageSize: "page_size",
416
+ } as const,
417
+ }),
418
+ paginateByTotalCount,
419
+ ) as any;
420
+
421
+ export type RestoreDatabaseFromBackupError = ScalewayOpError;
422
+ /** Restore a database from a backup Restore a database from a backup. You must provide the `backup_id` parameter. */
423
+ export const restoreDatabaseFromBackup: API.OperationMethod<
424
+ RestoreDatabaseFromBackupRequest,
425
+ Database,
426
+ RestoreDatabaseFromBackupError,
427
+ ScalewayOpContext
428
+ > = /*@__PURE__*/ API.make(() => ({
429
+ input: __S(44, __c11, 0) as any as S.Schema<RestoreDatabaseFromBackupRequest>,
430
+ output: __S(8, __c2, 0) as any as S.Schema<Database>,
431
+ errors: [],
432
+ serviceErrors: ScalewayServiceErrors,
433
+ protocol: ScalewayProtocol,
434
+ retry: Retry.Retry,
435
+ telemetry: TELEMETRY,
436
+ span: "RestoreDatabaseFromBackup",
437
+ }));
438
+
439
+ export type UpdateDatabaseError = ScalewayOpError;
440
+ /** Update database information Update CPU limits of your Serverless SQL Database. You must provide the `database_id` parameter. */
441
+ export const updateDatabase: API.OperationMethod<
442
+ UpdateDatabaseRequest,
443
+ Database,
444
+ UpdateDatabaseError,
445
+ ScalewayOpContext
446
+ > = /*@__PURE__*/ API.make(() => ({
447
+ input: __S(48, __c12, 0) as any as S.Schema<UpdateDatabaseRequest>,
448
+ output: __S(8, __c2, 0) as any as S.Schema<Database>,
449
+ errors: [],
450
+ serviceErrors: ScalewayServiceErrors,
451
+ protocol: ScalewayProtocol,
452
+ retry: Retry.Retry,
453
+ telemetry: TELEMETRY,
454
+ span: "UpdateDatabase",
455
+ }));
456
+
457
+ // Schema builders: each runs one schema initializer, on that schema's first use.
458
+ function __c0(j: number): any {
459
+ switch (j) {
460
+ case 0:
461
+ return S.suspend(() =>
462
+ S.Struct({
463
+ region: S.optional(S.String.pipe(T.Label())),
464
+ project_id: S.String,
465
+ name: S.String,
466
+ cpu_min: S.Number,
467
+ cpu_max: S.Number,
468
+ from_backup_id: S.optional(S.NullOr(S.String)),
469
+ version: S.optional(S.String),
470
+ }).pipe(
471
+ T.Http({
472
+ method: "POST",
473
+ uri: "/serverless-sqldb/v1alpha1/regions/{region}/databases",
474
+ code: 200,
475
+ baseUrl: "https://api.scaleway.com",
476
+ }),
477
+ ),
478
+ ).annotate({ identifier: "CreateDatabaseRequest" });
479
+ }
480
+ }
481
+ function __c1(j: number): any {
482
+ switch (j) {
483
+ case 0:
484
+ return S.suspend(() =>
485
+ S.Struct({
486
+ name: S.optional(S.String),
487
+ srn: S.optional(S.String),
488
+ end_of_life_at: S.optional(S.NullOr(S.String)),
489
+ region: S.optional(S.String),
490
+ }),
491
+ ).annotate({ identifier: "Version" });
492
+ }
493
+ }
494
+ function __c2(j: number): any {
495
+ switch (j) {
496
+ case 0:
497
+ return S.suspend(() =>
498
+ S.Struct({
499
+ id: S.optional(S.String),
500
+ srn: S.optional(S.String),
501
+ name: S.optional(S.String),
502
+ status: S.optional(S.String),
503
+ endpoint: S.optional(S.String),
504
+ organization_id: S.optional(S.String),
505
+ project_id: S.optional(S.String),
506
+ region: S.optional(S.String),
507
+ created_at: S.optional(S.NullOr(S.String)),
508
+ cpu_min: S.optional(S.Number),
509
+ cpu_max: S.optional(S.Number),
510
+ cpu_current: S.optional(S.Number),
511
+ started: S.optional(S.Boolean),
512
+ engine_major_version: S.optional(S.Number),
513
+ version: S.optional(__S(4, __c1, 0)),
514
+ }),
515
+ ).annotate({ identifier: "Database" });
516
+ }
517
+ }
518
+ function __c3(j: number): any {
519
+ switch (j) {
520
+ case 0:
521
+ return S.suspend(() =>
522
+ S.Struct({
523
+ region: S.optional(S.String.pipe(T.Label())),
524
+ database_id: S.String.pipe(T.Label()),
525
+ }).pipe(
526
+ T.Http({
527
+ method: "DELETE",
528
+ uri: "/serverless-sqldb/v1alpha1/regions/{region}/databases/{database_id}",
529
+ code: 200,
530
+ baseUrl: "https://api.scaleway.com",
531
+ }),
532
+ ),
533
+ ).annotate({ identifier: "DeleteDatabaseRequest" });
534
+ }
535
+ }
536
+ function __c4(j: number): any {
537
+ switch (j) {
538
+ case 0:
539
+ return S.suspend(() =>
540
+ S.Struct({
541
+ region: S.optional(S.String.pipe(T.Label())),
542
+ backup_id: S.String.pipe(T.Label()),
543
+ }).pipe(
544
+ T.Http({
545
+ method: "POST",
546
+ uri: "/serverless-sqldb/v1alpha1/regions/{region}/backups/{backup_id}/export",
547
+ code: 200,
548
+ baseUrl: "https://api.scaleway.com",
549
+ }),
550
+ ),
551
+ ).annotate({ identifier: "ExportDatabaseBackupRequest" });
552
+ }
553
+ }
554
+ function __c5(j: number): any {
555
+ switch (j) {
556
+ case 0:
557
+ return S.suspend(() =>
558
+ S.Struct({
559
+ id: S.optional(S.String),
560
+ srn: S.optional(S.String),
561
+ status: S.optional(S.String),
562
+ organization_id: S.optional(S.String),
563
+ project_id: S.optional(S.String),
564
+ database_id: S.optional(S.String),
565
+ created_at: S.optional(S.NullOr(S.String)),
566
+ expires_at: S.optional(S.NullOr(S.String)),
567
+ size: S.optional(S.NullOr(S.Number)),
568
+ db_size: S.optional(S.NullOr(S.Number)),
569
+ download_url: S.optional(S.NullOr(S.String)),
570
+ download_url_expires_at: S.optional(S.NullOr(S.String)),
571
+ region: S.optional(S.String),
572
+ }),
573
+ ).annotate({ identifier: "DatabaseBackup" });
574
+ }
575
+ }
576
+ function __c6(j: number): any {
577
+ switch (j) {
578
+ case 0:
579
+ return S.suspend(() =>
580
+ S.Struct({
581
+ region: S.optional(S.String.pipe(T.Label())),
582
+ database_id: S.String.pipe(T.Label()),
583
+ }).pipe(
584
+ T.Http({
585
+ method: "GET",
586
+ uri: "/serverless-sqldb/v1alpha1/regions/{region}/databases/{database_id}",
587
+ code: 200,
588
+ baseUrl: "https://api.scaleway.com",
589
+ }),
590
+ ),
591
+ ).annotate({ identifier: "GetDatabaseRequest" });
592
+ }
593
+ }
594
+ function __c7(j: number): any {
595
+ switch (j) {
596
+ case 0:
597
+ return S.suspend(() =>
598
+ S.Struct({
599
+ region: S.optional(S.String.pipe(T.Label())),
600
+ backup_id: S.String.pipe(T.Label()),
601
+ }).pipe(
602
+ T.Http({
603
+ method: "GET",
604
+ uri: "/serverless-sqldb/v1alpha1/regions/{region}/backups/{backup_id}",
605
+ code: 200,
606
+ baseUrl: "https://api.scaleway.com",
607
+ }),
608
+ ),
609
+ ).annotate({ identifier: "GetDatabaseBackupRequest" });
610
+ }
611
+ }
612
+ function __c8(j: number): any {
613
+ switch (j) {
614
+ case 0:
615
+ return S.suspend(() =>
616
+ S.Struct({
617
+ region: S.optional(S.String.pipe(T.Label())),
618
+ organization_id: S.optional(S.String.pipe(T.Query())),
619
+ project_id: S.optional(S.String.pipe(T.Query())),
620
+ database_id: S.String.pipe(T.Query()),
621
+ page: S.optional(S.Number.pipe(T.Query())),
622
+ page_size: S.optional(S.Number.pipe(T.Query())),
623
+ order_by: S.optional(S.String.pipe(T.Query())),
624
+ }).pipe(
625
+ T.Http({
626
+ method: "GET",
627
+ uri: "/serverless-sqldb/v1alpha1/regions/{region}/backups",
628
+ code: 200,
629
+ baseUrl: "https://api.scaleway.com",
630
+ }),
631
+ ),
632
+ ).annotate({ identifier: "ListDatabaseBackupsRequest" });
633
+ case 1:
634
+ return S.Array(__S(20, __c5, 0));
635
+ case 2:
636
+ return S.suspend(() =>
637
+ S.Struct({
638
+ backups: __S(33, __c8, 1),
639
+ total_count: S.optional(S.Number),
640
+ }),
641
+ ).annotate({ identifier: "ListDatabaseBackupsResponse" });
642
+ }
643
+ }
644
+ function __c9(j: number): any {
645
+ switch (j) {
646
+ case 0:
647
+ return S.suspend(() =>
648
+ S.Struct({
649
+ region: S.optional(S.String.pipe(T.Label())),
650
+ organization_id: S.optional(S.String.pipe(T.Query())),
651
+ project_id: S.String.pipe(T.Query()),
652
+ page: S.optional(S.Number.pipe(T.Query())),
653
+ page_size: S.optional(S.Number.pipe(T.Query())),
654
+ name: S.optional(S.String.pipe(T.Query())),
655
+ order_by: S.optional(S.String.pipe(T.Query())),
656
+ }).pipe(
657
+ T.Http({
658
+ method: "GET",
659
+ uri: "/serverless-sqldb/v1alpha1/regions/{region}/databases",
660
+ code: 200,
661
+ baseUrl: "https://api.scaleway.com",
662
+ }),
663
+ ),
664
+ ).annotate({ identifier: "ListDatabasesRequest" });
665
+ case 1:
666
+ return S.Array(__S(8, __c2, 0));
667
+ case 2:
668
+ return S.suspend(() =>
669
+ S.Struct({
670
+ databases: __S(37, __c9, 1),
671
+ total_count: S.optional(S.Number),
672
+ }),
673
+ ).annotate({ identifier: "ListDatabasesResponse" });
674
+ }
675
+ }
676
+ function __c10(j: number): any {
677
+ switch (j) {
678
+ case 0:
679
+ return S.suspend(() =>
680
+ S.Struct({
681
+ region: S.optional(S.String.pipe(T.Label())),
682
+ version: S.optional(S.String.pipe(T.Query())),
683
+ page: S.optional(S.Number.pipe(T.Query())),
684
+ page_size: S.optional(S.Number.pipe(T.Query())),
685
+ }).pipe(
686
+ T.Http({
687
+ method: "GET",
688
+ uri: "/serverless-sqldb/v1alpha1/regions/{region}/versions",
689
+ code: 200,
690
+ baseUrl: "https://api.scaleway.com",
691
+ }),
692
+ ),
693
+ ).annotate({ identifier: "ListVersionsRequest" });
694
+ case 1:
695
+ return S.Array(__S(4, __c1, 0));
696
+ case 2:
697
+ return S.suspend(() =>
698
+ S.Struct({
699
+ versions: __S(41, __c10, 1),
700
+ total_count: S.optional(S.Number),
701
+ }),
702
+ ).annotate({ identifier: "ListVersionsResponse" });
703
+ }
704
+ }
705
+ function __c11(j: number): any {
706
+ switch (j) {
707
+ case 0:
708
+ return S.suspend(() =>
709
+ S.Struct({
710
+ region: S.optional(S.String.pipe(T.Label())),
711
+ database_id: S.String.pipe(T.Label()),
712
+ backup_id: S.String,
713
+ }).pipe(
714
+ T.Http({
715
+ method: "POST",
716
+ uri: "/serverless-sqldb/v1alpha1/regions/{region}/databases/{database_id}/restore",
717
+ code: 200,
718
+ baseUrl: "https://api.scaleway.com",
719
+ }),
720
+ ),
721
+ ).annotate({ identifier: "RestoreDatabaseFromBackupRequest" });
722
+ }
723
+ }
724
+ function __c12(j: number): any {
725
+ switch (j) {
726
+ case 0:
727
+ return S.suspend(() =>
728
+ S.Struct({
729
+ region: S.optional(S.String.pipe(T.Label())),
730
+ database_id: S.String.pipe(T.Label()),
731
+ cpu_min: S.optional(S.NullOr(S.Number)),
732
+ cpu_max: S.optional(S.NullOr(S.Number)),
733
+ }).pipe(
734
+ T.Http({
735
+ method: "PATCH",
736
+ uri: "/serverless-sqldb/v1alpha1/regions/{region}/databases/{database_id}",
737
+ code: 200,
738
+ baseUrl: "https://api.scaleway.com",
739
+ }),
740
+ ),
741
+ ).annotate({ identifier: "UpdateDatabaseRequest" });
742
+ }
743
+ }
744
+ // Schema table: entry i is schema j of builder f, made on first reach.
745
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
746
+ return (__s[i] ??= __L.at(f, j));
747
+ }