@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,1618 @@
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 type * as Redacted from "effect/Redacted";
6
+ import { ScalewayServiceErrors } from "../errors.ts";
7
+ import { paginateByTotalCount } from "../pagination.ts";
8
+ import { ScalewayProtocol, type ScalewayOpError, type ScalewayOpContext } from "../protocol.ts";
9
+ import * as Retry from "../retry.ts";
10
+ import * as T from "../traits.ts";
11
+ // Schema table, filled on first reach (see __S at the end).
12
+ const __s: any[] = [];
13
+
14
+ export type { ScalewayOpError, ScalewayOpContext };
15
+
16
+ /** Span facts shared by every operation (com.distilled.telemetry#service). */
17
+ const TELEMETRY = {
18
+ system: "scaleway-api",
19
+ responseHeaders: [
20
+ { header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
21
+ { header: "request-id", name: "http.response.header.request-id", transform: "list" },
22
+ ],
23
+ prefix: "Scaleway",
24
+ service: "KeyManagerV1alpha1",
25
+ labels: "scaleway",
26
+ propagate: "w3c",
27
+ } as const;
28
+
29
+ export type CreateKeyRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
30
+ export type KeyAlgorithmSymmetricEncryption = "unknown_symmetric_encryption" | "aes_256_gcm";
31
+ export type KeyAlgorithmAsymmetricEncryption =
32
+ | "unknown_asymmetric_encryption"
33
+ | "rsa_oaep_2048_sha256"
34
+ | "rsa_oaep_3072_sha256"
35
+ | "rsa_oaep_4096_sha256";
36
+ export type KeyAlgorithmAsymmetricSigning =
37
+ | "unknown_asymmetric_signing"
38
+ | "ec_p256_sha256"
39
+ | "ec_p384_sha384"
40
+ | "rsa_pss_2048_sha256"
41
+ | "rsa_pss_3072_sha256"
42
+ | "rsa_pss_4096_sha256"
43
+ | "rsa_pkcs1_2048_sha256"
44
+ | "rsa_pkcs1_3072_sha256"
45
+ | "rsa_pkcs1_4096_sha256"
46
+ | "ml_dsa_44"
47
+ | "ml_dsa_65"
48
+ | "ml_dsa_87"
49
+ | "ec_secp256k1_sha256";
50
+ export type KeyAlgorithmKeyEncapsulation =
51
+ | "unknown_key_encapsulation"
52
+ | "ml_kem_768"
53
+ | "ml_kem_1024";
54
+ export interface KeyUsage {
55
+ /** Encrypt and decrypt arbitrary payloads using a symmetric encryption algorithm. See the `Key.Algorithm.SymmetricEncryption` enum for a description of values. Precisely one of symmetric_encryption, asymmetric_encryption, asymmetric_signing, key_encapsulation can be set. */
56
+ symmetric_encryption?: KeyAlgorithmSymmetricEncryption | (string & {}) | null | undefined;
57
+ /** Encrypt and decrypt arbitrary payloads using an asymmetric encryption algorithm. See the `Key.Algorithm.AsymmetricEncryption` enum for a description of values. Precisely one of symmetric_encryption, asymmetric_encryption, asymmetric_signing, key_encapsulation can be set. */
58
+ asymmetric_encryption?: KeyAlgorithmAsymmetricEncryption | (string & {}) | null | undefined;
59
+ /** Sign and verify arbitrary messages using an asymmetric signing algorithm. See the `Key.Algorithm.AsymmetricSigning` enum for a description of values. Precisely one of symmetric_encryption, asymmetric_encryption, asymmetric_signing, key_encapsulation can be set. */
60
+ asymmetric_signing?: KeyAlgorithmAsymmetricSigning | (string & {}) | null | undefined;
61
+ /** Wrap and unwrap key using a key encapsulation algorithm. See the `Key.Algorithm.KeyEncapulation` enum for a description of values. Precisely one of symmetric_encryption, asymmetric_encryption, asymmetric_signing, key_encapsulation can be set. */
62
+ key_encapsulation?: KeyAlgorithmKeyEncapsulation | (string & {}) | null | undefined;
63
+ }
64
+ /** (Optional) List of the key's tags. */
65
+ export type CreateKeyRequestTagsList = Array<string>;
66
+ export interface KeyRotationPolicy {
67
+ /** Rotation period. Time interval between two key rotations. The minimum duration is 24 hours and the maximum duration is 1 year (876000 hours). (in seconds) */
68
+ rotation_period?: string | null | undefined;
69
+ /** Key next rotation date. Timestamp indicating the next scheduled rotation. (RFC 3339 format) */
70
+ next_rotation_at?: string | null | undefined;
71
+ }
72
+ export type KeyOrigin = "unknown_origin" | "scaleway_kms" | "external";
73
+ export type KeyProtectionLevel = "unknown_protection_level" | "software" | "hsm";
74
+ export interface CreateKeyRequest {
75
+ /** The region you want to target */
76
+ region?: CreateKeyRequestRegion | (string & {}) | undefined;
77
+ /** ID of the Project containing the key. (UUID format) */
78
+ project_id?: string | undefined;
79
+ /** (Optional) Name of the key. */
80
+ name?: string | null | undefined;
81
+ /** Key usage. See the `Key.Usage` enum for a description of possible values. */
82
+ usage?: KeyUsage | undefined;
83
+ /** (Optional) Description of the key. */
84
+ description?: string | null | undefined;
85
+ /** (Optional) List of the key's tags. */
86
+ tags?: CreateKeyRequestTagsList | undefined;
87
+ /** (Optional) Rotation policy of the key. If not specified, no rotation policy will be applied to the key. */
88
+ rotation_policy?: KeyRotationPolicy | undefined;
89
+ /** (Optional) Defines whether key protection is applied to a key. Protected keys can be used but not deleted. Default value is `false`. */
90
+ unprotected?: boolean | undefined;
91
+ /** Key origin. Refer to the `Key.Origin` enum for a description of values. */
92
+ origin?: KeyOrigin | (string & {}) | undefined;
93
+ /** Key Protection level. Refer to the `Key.Protection` enum for a description of values. */
94
+ protection_level?: KeyProtectionLevel | (string & {}) | undefined;
95
+ }
96
+ export type KeyState =
97
+ | "unknown_state"
98
+ | "enabled"
99
+ | "disabled"
100
+ | "pending_key_material"
101
+ | "scheduled_for_deletion";
102
+ /** List of the key's tags. */
103
+ export type KeyTagsList = Array<string>;
104
+ export interface Key {
105
+ /** ID of the key. (UUID format) */
106
+ id?: string | undefined;
107
+ /** The SRN of the key. */
108
+ srn?: string | undefined;
109
+ /** ID of the Project containing the key. (UUID format) */
110
+ project_id?: string | undefined;
111
+ /** Name of the key. */
112
+ name?: string | undefined;
113
+ /** Key usage. See the `Key.Usage` enum for a description of possible values. */
114
+ usage?: KeyUsage | undefined;
115
+ /** Key state. See the `Key.State` enum for a description of possible values. */
116
+ state?: KeyState | undefined;
117
+ /** Number of key rotations. The rotation count tracks the number of times the key has been rotated. */
118
+ rotation_count?: number | undefined;
119
+ /** Key creation date. (RFC 3339 format) */
120
+ created_at?: string | null | undefined;
121
+ /** Key last modification date. (RFC 3339 format) */
122
+ updated_at?: string | null | undefined;
123
+ /** Returns `true` if key protection is applied to the key. */
124
+ protected?: boolean | undefined;
125
+ /** Returns `true` if the key is locked. */
126
+ locked?: boolean | undefined;
127
+ /** Description of the key. */
128
+ description?: string | null | undefined;
129
+ /** List of the key's tags. */
130
+ tags?: KeyTagsList | undefined;
131
+ /** Key last rotation date. (RFC 3339 format) */
132
+ rotated_at?: string | null | undefined;
133
+ /** Key rotation policy. */
134
+ rotation_policy?: KeyRotationPolicy | undefined;
135
+ /** Key origin. Refer to the `Key.Origin` enum for a description of values. */
136
+ origin?: KeyOrigin | undefined;
137
+ /** Returns the time at which deletion was requested. (RFC 3339 format) */
138
+ deletion_requested_at?: string | null | undefined;
139
+ /** Key protection level. Refer to the `Key.ProtectionLevel` enum for a description of values. */
140
+ protection_level?: KeyProtectionLevel | undefined;
141
+ /** Region where the key is stored. */
142
+ region?: string | undefined;
143
+ }
144
+ export type DecryptRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
145
+ export interface DecryptRequest {
146
+ /** The region you want to target */
147
+ region?: DecryptRequestRegion | (string & {}) | undefined;
148
+ /** ID of the key to decrypt with. The key must have an usage set to `symmetric_encryption` or `asymmetric_encryption`. (UUID format) */
149
+ key_id: string;
150
+ /** Ciphertext data to decrypt. Data size must be between 1 and 131071 bytes. */
151
+ ciphertext?: string | undefined;
152
+ /** (Optional) Additional authenticated data. The additional data must match the value passed in the encryption request. Only supported by keys with a usage set to `symmetric_encryption`. */
153
+ associated_data?: string | null | undefined;
154
+ }
155
+ export interface DecryptResponse {
156
+ /** ID of the key used for decryption. (UUID format) */
157
+ key_id?: string | undefined;
158
+ /** Key's decrypted data. */
159
+ plaintext?: string | Redacted.Redacted<string> | undefined;
160
+ /** (Optional) Data encrypted with the latest key rotation. If the data was already encrypted with the latest key rotation, no output will be returned in the response object. */
161
+ ciphertext?: string | null | undefined;
162
+ }
163
+ export type DeleteKeyRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
164
+ export interface DeleteKeyRequest {
165
+ /** The region you want to target */
166
+ region?: DeleteKeyRequestRegion | (string & {}) | undefined;
167
+ /** ID of the key to delete. (UUID format) */
168
+ key_id: string;
169
+ }
170
+ export interface DeleteKeyResponse {}
171
+ export type DeleteKeyMaterialRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
172
+ export interface DeleteKeyMaterialRequest {
173
+ /** The region you want to target */
174
+ region?: DeleteKeyMaterialRequestRegion | (string & {}) | undefined;
175
+ /** ID of the key of which to delete the key material. (UUID format) */
176
+ key_id: string;
177
+ /** (Optional) Rotation index of which to delete the key material. Default to latest rotation if not set. */
178
+ key_rotation_index?: number | null | undefined;
179
+ }
180
+ export interface DeleteKeyMaterialResponse {}
181
+ export type DisableKeyRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
182
+ export interface DisableKeyRequest {
183
+ /** The region you want to target */
184
+ region?: DisableKeyRequestRegion | (string & {}) | undefined;
185
+ /** ID of the key to disable. (UUID format) */
186
+ key_id: string;
187
+ }
188
+ export type EnableKeyRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
189
+ export interface EnableKeyRequest {
190
+ /** The region you want to target */
191
+ region?: EnableKeyRequestRegion | (string & {}) | undefined;
192
+ /** ID of the key to enable. (UUID format) */
193
+ key_id: string;
194
+ }
195
+ export type EncryptRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
196
+ export interface EncryptRequest {
197
+ /** The region you want to target */
198
+ region?: EncryptRequestRegion | (string & {}) | undefined;
199
+ /** ID of the key to use for encryption. The key must have an usage set to `symmetric_encryption` or `asymmetric_encryption`. (UUID format) */
200
+ key_id: string;
201
+ /** Plaintext data to encrypt. Data size must be between 1 and 65535 bytes. */
202
+ plaintext?: string | Redacted.Redacted<string> | undefined;
203
+ /** (Optional) Additional authenticated data. Additional data which will not be encrypted, but authenticated and appended to the encrypted payload. Only supported by keys with a usage set to `symmetric_encryption`. */
204
+ associated_data?: string | null | undefined;
205
+ }
206
+ export interface EncryptResponse {
207
+ /** ID of the key used for encryption. (UUID format) */
208
+ key_id?: string | undefined;
209
+ /** Key's encrypted data. */
210
+ ciphertext?: string | undefined;
211
+ }
212
+ export type GenerateDataKeyRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
213
+ export type DataKeyAlgorithmSymmetricEncryption = "unknown_symmetric_encryption" | "aes_256_gcm";
214
+ export interface GenerateDataKeyRequest {
215
+ /** The region you want to target */
216
+ region?: GenerateDataKeyRequestRegion | (string & {}) | undefined;
217
+ /** ID of the key. (UUID format) */
218
+ key_id: string;
219
+ /** Algorithm with which the data encryption key will be used to encrypt and decrypt arbitrary payloads. See the `DataKey.Algorithm.SymmetricEncryption` enum for a description of values. */
220
+ algorithm?: DataKeyAlgorithmSymmetricEncryption | (string & {}) | undefined;
221
+ /** (Optional) Defines whether to return the data encryption key's plaintext in the response object. Default value is `false`, meaning that the plaintext is returned. Set it to `true` if you do not wish the plaintext to be returned in the response object. */
222
+ without_plaintext?: boolean | undefined;
223
+ }
224
+ export interface DataKey {
225
+ /** ID of the data encryption key. (UUID format) */
226
+ key_id?: string | undefined;
227
+ /** Symmetric encryption algorithm of the data encryption key (`AES-256-GCM`). */
228
+ algorithm?: DataKeyAlgorithmSymmetricEncryption | undefined;
229
+ /** Data encryption key ciphertext. Your data encryption key's ciphertext can be stored safely. It can only be decrypted through the keys you create in Key Manager, using the relevant key ID. */
230
+ ciphertext?: string | undefined;
231
+ /** Data encryption key plaintext. (Optional) Your data encryption key's plaintext allows you to use the key immediately upon creation. It must neither be stored or shared. */
232
+ plaintext?: string | Redacted.Redacted<string> | null | undefined;
233
+ /** Data encryption key creation date. (RFC 3339 format) */
234
+ created_at?: string | null | undefined;
235
+ }
236
+ export type GenerateKeyMaterialImportParametersRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
237
+ export type GenerateKeyMaterialImportParametersRequestWrappingAlgorithm =
238
+ | "unknown_wrapping_algorithm"
239
+ | "rsa_oaep_2048_sha256"
240
+ | "rsa_oaep_3072_sha256"
241
+ | "rsa_oaep_4096_sha256";
242
+ export interface GenerateKeyMaterialImportParametersRequest {
243
+ /** The region you want to target */
244
+ region?: GenerateKeyMaterialImportParametersRequestRegion | (string & {}) | undefined;
245
+ /** ID of the key into which to import the key material. (UUID format) */
246
+ key_id: string;
247
+ /** The wrapping algorithm the client will use to encrypt the key material. Supported values are: `rsa_oaep_2048_sha256`, `rsa_oaep_3072_sha256`, `rsa_oaep_4096_sha256`. */
248
+ wrapping_algorithm?:
249
+ | GenerateKeyMaterialImportParametersRequestWrappingAlgorithm
250
+ | (string & {})
251
+ | undefined;
252
+ }
253
+ export interface GenerateKeyMaterialImportParametersResponse {
254
+ /** ID of the target key. (UUID format) */
255
+ key_id?: string | undefined;
256
+ /** The public key to wrap the key material. */
257
+ public_key?: string | undefined;
258
+ /** The token generated to authorize the import operation. */
259
+ import_token?: string | Redacted.Redacted<string> | undefined;
260
+ }
261
+ export type GetKeyRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
262
+ export interface GetKeyRequest {
263
+ /** The region you want to target */
264
+ region?: GetKeyRequestRegion | (string & {}) | undefined;
265
+ /** ID of the key to target. (UUID format) */
266
+ key_id: string;
267
+ }
268
+ export type GetPublicKeyRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
269
+ export interface GetPublicKeyRequest {
270
+ /** The region you want to target */
271
+ region?: GetPublicKeyRequestRegion | (string & {}) | undefined;
272
+ /** ID of the key. (UUID format) */
273
+ key_id: string;
274
+ }
275
+ export interface PublicKey {
276
+ pem?: string | undefined;
277
+ }
278
+ export type ImportKeyMaterialRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
279
+ export interface ImportKeyMaterialRequestEncryptedKeyMaterial {
280
+ /** The encrypted key material to import. This material must be encrypted using the public key and the exact wrapping algorithm returned by the `GetKeyMaterialImportParameters` method. */
281
+ data?: string | undefined;
282
+ /** The secure import token returned by the `GetKeyMaterialImportParameters` method. */
283
+ import_token?: string | Redacted.Redacted<string> | undefined;
284
+ }
285
+ export interface ImportKeyMaterialRequest {
286
+ /** The region you want to target */
287
+ region?: ImportKeyMaterialRequestRegion | (string & {}) | undefined;
288
+ /** ID of the key in which to import key material. The key's origin must be `external`. (UUID format) */
289
+ key_id: string;
290
+ /** The key material. Deprecated. Use `encrypted_key_material` instead. The key material is a random sequence of bytes used to derive a cryptographic key. Precisely one of key_material, encrypted_key_material can be set. */
291
+ key_material?: string | null | undefined;
292
+ /** (Optional) Salt value to pass the key derivation function. A salt is random data added to key material to ensure unique derived keys, even if the input is similar. It helps strengthen security when the key material has low randomness (low entropy). */
293
+ salt?: string | null | undefined;
294
+ /** The encrypted key material to import. This material must be encrypted using the public key and the exact wrapping algorithm returned by the `GetKeyMaterialImportParameters` method. Precisely one of key_material, encrypted_key_material can be set. */
295
+ encrypted_key_material?: ImportKeyMaterialRequestEncryptedKeyMaterial | null | undefined;
296
+ }
297
+ export type ListAlgorithmsRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
298
+ export type ListAlgorithmsRequestUsage =
299
+ | "unknown_usage"
300
+ | "symmetric_encryption"
301
+ | "asymmetric_encryption"
302
+ | "asymmetric_signing"
303
+ | "key_encapsulation";
304
+ export type ListAlgorithmsRequestUsagesList = Array<ListAlgorithmsRequestUsage | (string & {})>;
305
+ export interface ListAlgorithmsRequest {
306
+ /** The region you want to target */
307
+ region?: ListAlgorithmsRequestRegion | (string & {}) | undefined;
308
+ /** Filter by key usage. */
309
+ usages?: ListAlgorithmsRequestUsagesList | undefined;
310
+ }
311
+ export interface ListAlgorithmsResponseAlgorithm {
312
+ usage?: string | undefined;
313
+ name?: string | undefined;
314
+ recommended?: boolean | undefined;
315
+ }
316
+ /** Returns a list of algorithms matching the requested criteria. */
317
+ export type ListAlgorithmsResponseAlgorithmsList = Array<ListAlgorithmsResponseAlgorithm>;
318
+ export interface ListAlgorithmsResponse {
319
+ /** Returns a list of algorithms matching the requested criteria. */
320
+ algorithms?: ListAlgorithmsResponseAlgorithmsList | undefined;
321
+ }
322
+ export type ListKeyRotationsRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
323
+ export type ListKeyRotationsRequestOrderBy = "created_at_asc" | "created_at_desc";
324
+ export type KeyRotationStatus = "unknown_status" | "enabled" | "deleted";
325
+ export type ListKeyRotationsRequestStatusList = Array<KeyRotationStatus | (string & {})>;
326
+ export interface ListKeyRotationsRequest {
327
+ /** The region you want to target */
328
+ region?: ListKeyRotationsRequestRegion | (string & {}) | undefined;
329
+ /** ID of the key to list rotations for. (UUID format) */
330
+ key_id: string;
331
+ order_by?: ListKeyRotationsRequestOrderBy | (string & {}) | undefined;
332
+ page?: number | undefined;
333
+ page_size?: number | undefined;
334
+ /** (Optional) Filter key rotations by their status. See the `KeyRotation.Status` enum for a description of possible values. */
335
+ status?: ListKeyRotationsRequestStatusList | undefined;
336
+ }
337
+ export interface KeyRotation {
338
+ /** ID of the associated key. (UUID format) */
339
+ key_id?: string | undefined;
340
+ /** Index of the key rotation. The rotation index tracks the specific version of the key material. */
341
+ index?: number | undefined;
342
+ /** Status of the key rotation. See the `KeyRotation.Status` enum for a description of possible values. */
343
+ status?: KeyRotationStatus | undefined;
344
+ /** Returns `true` if the key was rotated manually, or `false` if it was rotated automatically by a rotation policy. */
345
+ manually_rotated?: boolean | undefined;
346
+ /** Key rotation creation date. (RFC 3339 format) */
347
+ created_at?: string | null | undefined;
348
+ /** Key rotation last modification date. (RFC 3339 format) */
349
+ updated_at?: string | null | undefined;
350
+ /** Key rotation deletion date. (RFC 3339 format) */
351
+ deleted_at?: string | null | undefined;
352
+ }
353
+ /** Single page of key rotations matching the requested criteria. */
354
+ export type ListKeyRotationsResponseRotationsList = Array<KeyRotation>;
355
+ export interface ListKeyRotationsResponse {
356
+ /** Single page of key rotations matching the requested criteria. */
357
+ rotations: ListKeyRotationsResponseRotationsList;
358
+ /** Total count of key rotations matching the requested criteria. */
359
+ total_count?: number | undefined;
360
+ }
361
+ export type ListKeysRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
362
+ export type ListKeysRequestOrderBy =
363
+ | "name_asc"
364
+ | "name_desc"
365
+ | "created_at_asc"
366
+ | "created_at_desc"
367
+ | "updated_at_asc"
368
+ | "updated_at_desc";
369
+ export type ListKeysRequestTagsList = Array<string>;
370
+ export type ListKeysRequestUsage =
371
+ | "unknown_usage"
372
+ | "symmetric_encryption"
373
+ | "asymmetric_encryption"
374
+ | "asymmetric_signing"
375
+ | "key_encapsulation";
376
+ export interface ListKeysRequest {
377
+ /** The region you want to target */
378
+ region?: ListKeysRequestRegion | (string & {}) | undefined;
379
+ /** (Optional) Filter by Organization ID. (UUID format) */
380
+ organization_id?: string | undefined;
381
+ /** (Optional) Filter by Project ID. (UUID format) */
382
+ project_id?: string | undefined;
383
+ order_by?: ListKeysRequestOrderBy | (string & {}) | undefined;
384
+ page?: number | undefined;
385
+ page_size?: number | undefined;
386
+ /** (Optional) List of tags to filter on. */
387
+ tags?: ListKeysRequestTagsList | undefined;
388
+ /** (Optional) Filter by key name. */
389
+ name?: string | undefined;
390
+ /** (Optional) Filter keys by usage. Select from symmetric encryption, asymmetric encryption, asymmetric signing or key_encapsulation. */
391
+ usage?: ListKeysRequestUsage | (string & {}) | undefined;
392
+ /** Filter keys based on their deletion status. By default, only keys not scheduled for deletion are returned in the output. */
393
+ scheduled_for_deletion: boolean;
394
+ /** (Optional) Filter keys by protection level. Select from software or hsm. */
395
+ protection_level?: KeyProtectionLevel | (string & {}) | undefined;
396
+ }
397
+ /** Single page of keys matching the requested criteria. */
398
+ export type ListKeysResponseKeysList = Array<Key>;
399
+ export interface ListKeysResponse {
400
+ /** Single page of keys matching the requested criteria. */
401
+ keys: ListKeysResponseKeysList;
402
+ /** Total count of keys matching the requested criteria. */
403
+ total_count?: number | undefined;
404
+ }
405
+ export type ProtectKeyRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
406
+ export interface ProtectKeyRequest {
407
+ /** The region you want to target */
408
+ region?: ProtectKeyRequestRegion | (string & {}) | undefined;
409
+ /** ID of the key to apply key protection to. (UUID format) */
410
+ key_id: string;
411
+ }
412
+ export type RestoreKeyRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
413
+ export interface RestoreKeyRequest {
414
+ /** The region you want to target */
415
+ region?: RestoreKeyRequestRegion | (string & {}) | undefined;
416
+ key_id: string;
417
+ }
418
+ export type RotateKeyRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
419
+ export interface RotateKeyRequest {
420
+ /** The region you want to target */
421
+ region?: RotateKeyRequestRegion | (string & {}) | undefined;
422
+ /** ID of the key to rotate. (UUID format) */
423
+ key_id: string;
424
+ }
425
+ export type SignRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
426
+ export interface SignRequest {
427
+ /** The region you want to target */
428
+ region?: SignRequestRegion | (string & {}) | undefined;
429
+ /** ID of the key to use for signing. (UUID format) */
430
+ key_id: string;
431
+ /** Pre-hashed digest of the message to sign. For ECDSA and RSA keys, the digest generated using the key's hashing algorithm: 32 bytes (SHA-256) or 48 bytes (SHA-384). The 64-byte bound only exists for the ML-DSA backward-compatibility case below. Also accepted for ML-DSA for backward compatibility only; signatures may not conform to the ML-DSA spec, not recommended for new usage. Prefer `message` or `external_mu` for ML-DSA. One of digest, msg, external_mu is required. */
432
+ digest?: string | null | undefined;
433
+ /** Full message to sign as-is. Only supported for ML-DSA keys (`raw` signing): the server computes the U+03BC message representative internally before signing. Between 1 and 4096 bytes. One of digest, msg, external_mu is required. */
434
+ msg?: string | null | undefined;
435
+ /** ML-DSA pre-hashed U+03BC message representative, exactly 64 bytes. Must equal SHAKE256(tr U+2016 0x00 U+2016 0x00 U+2016 message), where `tr` is the SHAKE256 of the key's public key. Signatures produced from other pre-hash computations (e.g. HashML-DSA) cannot be verified through this API. One of digest, msg, external_mu is required. */
436
+ external_mu?: string | null | undefined;
437
+ }
438
+ export interface SignResponse {
439
+ /** ID of the key used to generate the signature. (UUID format) */
440
+ key_id?: string | undefined;
441
+ /** The message signature. */
442
+ signature?: string | undefined;
443
+ }
444
+ export type UnprotectKeyRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
445
+ export interface UnprotectKeyRequest {
446
+ /** The region you want to target */
447
+ region?: UnprotectKeyRequestRegion | (string & {}) | undefined;
448
+ /** ID of the key to remove key protection from. (UUID format) */
449
+ key_id: string;
450
+ }
451
+ export type UnwrapKeyRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
452
+ export interface UnwrapKeyRequest {
453
+ /** The region you want to target */
454
+ region?: UnwrapKeyRequestRegion | (string & {}) | undefined;
455
+ key_id: string;
456
+ ciphertext?: string | undefined;
457
+ associated_data?: string | null | undefined;
458
+ }
459
+ export interface UnwrapKeyResponse {
460
+ /** (UUID format) */
461
+ key_id?: string | undefined;
462
+ plaintext?: string | Redacted.Redacted<string> | undefined;
463
+ }
464
+ export type UpdateKeyRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
465
+ /** (Optional) Updated list of the key's tags. */
466
+ export type UpdateKeyRequestTagsList = Array<unknown>;
467
+ export interface UpdateKeyRequest {
468
+ /** The region you want to target */
469
+ region?: UpdateKeyRequestRegion | (string & {}) | undefined;
470
+ /** ID of the key to update. (UUID format) */
471
+ key_id: string;
472
+ /** (Optional) Updated name of the key. */
473
+ name?: string | null | undefined;
474
+ /** (Optional) Updated description of the key. */
475
+ description?: string | null | undefined;
476
+ /** (Optional) Updated list of the key's tags. */
477
+ tags?: UpdateKeyRequestTagsList | null | undefined;
478
+ /** (Optional) Updated rotation policy of the key. If not specified, the key's existing rotation policy applies. */
479
+ rotation_policy?: KeyRotationPolicy | undefined;
480
+ }
481
+ export type VerifyRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
482
+ export interface VerifyRequest {
483
+ /** The region you want to target */
484
+ region?: VerifyRequestRegion | (string & {}) | undefined;
485
+ /** ID of the key to use for signature verification. (UUID format) */
486
+ key_id: string;
487
+ /** Digest that was signed. For ECDSA and RSA keys, the digest of the original message, generated using the key's hashing algorithm. One of digest, msg is required. */
488
+ digest?: string | null | undefined;
489
+ /** Message that was signed. For ML-DSA keys, the full original message. This also verifies signatures made with `raw` or `external_mu`: send the message whose U+03BC was signed, not the U+03BC itself (a U+03BC payload always fails). Messages over 4096 bytes cannot be verified through this endpoint. One of digest, msg is required. */
490
+ msg?: string | null | undefined;
491
+ /** The message signature to verify. */
492
+ signature?: string | undefined;
493
+ }
494
+ export interface VerifyResponse {
495
+ /** ID of the key used for verification. (UUID format) */
496
+ key_id?: string | undefined;
497
+ /** Defines whether the signature is valid. Returns `true` if the signature is valid for the digest and key, and `false` otherwise. */
498
+ valid?: boolean | undefined;
499
+ }
500
+ export type WrapKeyRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
501
+ export interface WrapKeyRequest {
502
+ /** The region you want to target */
503
+ region?: WrapKeyRequestRegion | (string & {}) | undefined;
504
+ key_id: string;
505
+ plaintext?: string | Redacted.Redacted<string> | undefined;
506
+ associated_data?: string | null | undefined;
507
+ }
508
+ export interface WrapKeyResponse {
509
+ /** (UUID format) */
510
+ key_id?: string | undefined;
511
+ ciphertext?: string | undefined;
512
+ }
513
+ export type CreateKeyError = ScalewayOpError;
514
+ /** Create a key Create a key in a given region specified by the `region` parameter. You can use keys to encrypt or decrypt arbitrary payloads, to sign and verify messages or to generate data encryption keys. **Data encryption keys are not stored in Key Manager**. */
515
+ export const createKey: API.OperationMethod<
516
+ CreateKeyRequest,
517
+ Key,
518
+ CreateKeyError,
519
+ ScalewayOpContext
520
+ > = /*@__PURE__*/ API.make(() => ({
521
+ input: __S(0, __c0, 0) as any as S.Schema<CreateKeyRequest>,
522
+ output: __S(7, __c1, 3) as any as S.Schema<Key>,
523
+ errors: [],
524
+ serviceErrors: ScalewayServiceErrors,
525
+ protocol: ScalewayProtocol,
526
+ retry: Retry.Retry,
527
+ telemetry: TELEMETRY,
528
+ span: "CreateKey",
529
+ }));
530
+
531
+ export type DecryptError = ScalewayOpError;
532
+ /** Decrypt an encrypted payload Decrypt an encrypted payload using an existing key, specified by the `key_id` parameter. The maximum payload size that can be decrypted is equivalent to the encrypted output of 64 KB of data (around 131 KB). */
533
+ export const decrypt: API.OperationMethod<
534
+ DecryptRequest,
535
+ DecryptResponse,
536
+ DecryptError,
537
+ ScalewayOpContext
538
+ > = /*@__PURE__*/ API.make(() => ({
539
+ input: __S(8, __c2, 0) as any as S.Schema<DecryptRequest>,
540
+ output: __S(9, __c2, 1) as any as S.Schema<DecryptResponse>,
541
+ errors: [],
542
+ serviceErrors: ScalewayServiceErrors,
543
+ protocol: ScalewayProtocol,
544
+ retry: Retry.Retry,
545
+ telemetry: TELEMETRY,
546
+ span: "Decrypt",
547
+ }));
548
+
549
+ export type DeleteKeyError = ScalewayOpError;
550
+ /** Delete a key Permanently delete a key specified by the `region` and `key_id` parameters. This action is irreversible. Any data encrypted with this key, including data encryption keys, will no longer be decipherable. */
551
+ export const deleteKey: API.OperationMethod<
552
+ DeleteKeyRequest,
553
+ DeleteKeyResponse,
554
+ DeleteKeyError,
555
+ ScalewayOpContext
556
+ > = /*@__PURE__*/ API.make(() => ({
557
+ input: __S(56, __c14, 0) as any as S.Schema<DeleteKeyRequest>,
558
+ output: __S(60, __c15, 0) as any as S.Schema<DeleteKeyResponse>,
559
+ errors: [],
560
+ serviceErrors: ScalewayServiceErrors,
561
+ protocol: ScalewayProtocol,
562
+ retry: Retry.Retry,
563
+ telemetry: TELEMETRY,
564
+ span: "DeleteKey",
565
+ }));
566
+
567
+ export type DeleteKeyMaterialError = ScalewayOpError;
568
+ /** Delete key material Delete previously imported key material. This renders the associated cryptographic key unusable for any operation. The key's origin must be `external`. */
569
+ export const deleteKeyMaterial: API.OperationMethod<
570
+ DeleteKeyMaterialRequest,
571
+ DeleteKeyMaterialResponse,
572
+ DeleteKeyMaterialError,
573
+ ScalewayOpContext
574
+ > = /*@__PURE__*/ API.make(() => ({
575
+ input: __S(80, __c20, 0) as any as S.Schema<DeleteKeyMaterialRequest>,
576
+ output: __S(60, __c15, 0) as any as S.Schema<DeleteKeyMaterialResponse>,
577
+ errors: [],
578
+ serviceErrors: ScalewayServiceErrors,
579
+ protocol: ScalewayProtocol,
580
+ retry: Retry.Retry,
581
+ telemetry: TELEMETRY,
582
+ span: "DeleteKeyMaterial",
583
+ }));
584
+
585
+ export type DisableKeyError = ScalewayOpError;
586
+ /** Disable key Disable a given key, preventing it to be used for cryptographic operations. Disabling a key renders it unusable. You must specify the `region` and `key_id` parameters. */
587
+ export const disableKey: API.OperationMethod<
588
+ DisableKeyRequest,
589
+ Key,
590
+ DisableKeyError,
591
+ ScalewayOpContext
592
+ > = /*@__PURE__*/ API.make(() => ({
593
+ input: __S(84, __c21, 0) as any as S.Schema<DisableKeyRequest>,
594
+ output: __S(7, __c1, 3) as any as S.Schema<Key>,
595
+ errors: [],
596
+ serviceErrors: ScalewayServiceErrors,
597
+ protocol: ScalewayProtocol,
598
+ retry: Retry.Retry,
599
+ telemetry: TELEMETRY,
600
+ span: "DisableKey",
601
+ }));
602
+
603
+ export type EnableKeyError = ScalewayOpError;
604
+ /** Enable key Enable a given key to be used for cryptographic operations. Enabling a key allows you to make a disabled key usable again. You must specify the `region` and `key_id` parameters. */
605
+ export const enableKey: API.OperationMethod<
606
+ EnableKeyRequest,
607
+ Key,
608
+ EnableKeyError,
609
+ ScalewayOpContext
610
+ > = /*@__PURE__*/ API.make(() => ({
611
+ input: __S(88, __c22, 0) as any as S.Schema<EnableKeyRequest>,
612
+ output: __S(7, __c1, 3) as any as S.Schema<Key>,
613
+ errors: [],
614
+ serviceErrors: ScalewayServiceErrors,
615
+ protocol: ScalewayProtocol,
616
+ retry: Retry.Retry,
617
+ telemetry: TELEMETRY,
618
+ span: "EnableKey",
619
+ }));
620
+
621
+ export type EncryptError = ScalewayOpError;
622
+ /** Encrypt a payload Encrypt a payload using an existing key, specified by the `key_id` parameter. The maximum payload size that can be encrypted is 64 KB of plaintext. */
623
+ export const encrypt: API.OperationMethod<
624
+ EncryptRequest,
625
+ EncryptResponse,
626
+ EncryptError,
627
+ ScalewayOpContext
628
+ > = /*@__PURE__*/ API.make(() => ({
629
+ input: __S(92, __c23, 0) as any as S.Schema<EncryptRequest>,
630
+ output: __S(96, __c24, 0) as any as S.Schema<EncryptResponse>,
631
+ errors: [],
632
+ serviceErrors: ScalewayServiceErrors,
633
+ protocol: ScalewayProtocol,
634
+ retry: Retry.Retry,
635
+ telemetry: TELEMETRY,
636
+ span: "Encrypt",
637
+ }));
638
+
639
+ export type GenerateDataKeyError = ScalewayOpError;
640
+ /** Create a data encryption key Create a new data encryption key for cryptographic operations outside of Key Manager. The data encryption key is encrypted and must be decrypted using the key you have created in Key Manager. The data encryption key is returned in plaintext and ciphertext but it should only be stored in its encrypted form (ciphertext). Key Manager does not store your data encryption key. To retrieve your key's plaintext, use the `Decrypt` method with your key's ID and ciphertext. */
641
+ export const generateDataKey: API.OperationMethod<
642
+ GenerateDataKeyRequest,
643
+ DataKey,
644
+ GenerateDataKeyError,
645
+ ScalewayOpContext
646
+ > = /*@__PURE__*/ API.make(() => ({
647
+ input: __S(100, __c25, 0) as any as S.Schema<GenerateDataKeyRequest>,
648
+ output: __S(101, __c25, 1) as any as S.Schema<DataKey>,
649
+ errors: [],
650
+ serviceErrors: ScalewayServiceErrors,
651
+ protocol: ScalewayProtocol,
652
+ retry: Retry.Retry,
653
+ telemetry: TELEMETRY,
654
+ span: "GenerateDataKey",
655
+ }));
656
+
657
+ export type GenerateKeyMaterialImportParametersError = ScalewayOpError;
658
+ /** Generate key material import parameters Retrieve the cryptographic parameters (public key and import token) required to securely import key material into an existing key. The key's origin must be `external`. */
659
+ export const generateKeyMaterialImportParameters: API.OperationMethod<
660
+ GenerateKeyMaterialImportParametersRequest,
661
+ GenerateKeyMaterialImportParametersResponse,
662
+ GenerateKeyMaterialImportParametersError,
663
+ ScalewayOpContext
664
+ > = /*@__PURE__*/ API.make(() => ({
665
+ input: __S(104, __c26, 0) as any as S.Schema<GenerateKeyMaterialImportParametersRequest>,
666
+ output: __S(105, __c26, 1) as any as S.Schema<GenerateKeyMaterialImportParametersResponse>,
667
+ errors: [],
668
+ serviceErrors: ScalewayServiceErrors,
669
+ protocol: ScalewayProtocol,
670
+ retry: Retry.Retry,
671
+ telemetry: TELEMETRY,
672
+ span: "GenerateKeyMaterialImportParameters",
673
+ }));
674
+
675
+ export type GetKeyError = ScalewayOpError;
676
+ /** Get key metadata Retrieve metadata for a specified key using the `region` and `key_id` parameters. */
677
+ export const getKey: API.OperationMethod<GetKeyRequest, Key, GetKeyError, ScalewayOpContext> =
678
+ /*@__PURE__*/ API.make(() => ({
679
+ input: __S(108, __c27, 0) as any as S.Schema<GetKeyRequest>,
680
+ output: __S(7, __c1, 3) as any as S.Schema<Key>,
681
+ errors: [],
682
+ serviceErrors: ScalewayServiceErrors,
683
+ protocol: ScalewayProtocol,
684
+ retry: Retry.Retry,
685
+ telemetry: TELEMETRY,
686
+ span: "GetKey",
687
+ }));
688
+
689
+ export type GetPublicKeyError = ScalewayOpError;
690
+ /** Get the public key in PEM format. Retrieves the public portion of an asymmetric cryptographic key in PEM format. */
691
+ export const getPublicKey: API.OperationMethod<
692
+ GetPublicKeyRequest,
693
+ PublicKey,
694
+ GetPublicKeyError,
695
+ ScalewayOpContext
696
+ > = /*@__PURE__*/ API.make(() => ({
697
+ input: __S(12, __c3, 0) as any as S.Schema<GetPublicKeyRequest>,
698
+ output: __S(13, __c3, 1) as any as S.Schema<PublicKey>,
699
+ errors: [],
700
+ serviceErrors: ScalewayServiceErrors,
701
+ protocol: ScalewayProtocol,
702
+ retry: Retry.Retry,
703
+ telemetry: TELEMETRY,
704
+ span: "GetPublicKey",
705
+ }));
706
+
707
+ export type ImportKeyMaterialError = ScalewayOpError;
708
+ /** Import key material Import externally generated key material into Key Manager to derive a new cryptographic key. The key's origin must be `external`. */
709
+ export const importKeyMaterial: API.OperationMethod<
710
+ ImportKeyMaterialRequest,
711
+ Key,
712
+ ImportKeyMaterialError,
713
+ ScalewayOpContext
714
+ > = /*@__PURE__*/ API.make(() => ({
715
+ input: __S(17, __c4, 1) as any as S.Schema<ImportKeyMaterialRequest>,
716
+ output: __S(7, __c1, 3) as any as S.Schema<Key>,
717
+ errors: [],
718
+ serviceErrors: ScalewayServiceErrors,
719
+ protocol: ScalewayProtocol,
720
+ retry: Retry.Retry,
721
+ telemetry: TELEMETRY,
722
+ span: "ImportKeyMaterial",
723
+ }));
724
+
725
+ export type ListAlgorithmsError = ScalewayOpError;
726
+ /** List all available algorithms Lists all cryptographic algorithms supported by the Key Manager service. */
727
+ export const listAlgorithms: API.OperationMethod<
728
+ ListAlgorithmsRequest,
729
+ ListAlgorithmsResponse,
730
+ ListAlgorithmsError,
731
+ ScalewayOpContext
732
+ > = /*@__PURE__*/ API.make(() => ({
733
+ input: __S(20, __c5, 0) as any as S.Schema<ListAlgorithmsRequest>,
734
+ output: __S(23, __c5, 3) as any as S.Schema<ListAlgorithmsResponse>,
735
+ errors: [],
736
+ serviceErrors: ScalewayServiceErrors,
737
+ protocol: ScalewayProtocol,
738
+ retry: Retry.Retry,
739
+ telemetry: TELEMETRY,
740
+ span: "ListAlgorithms",
741
+ }));
742
+
743
+ export type ListKeyRotationsError = ScalewayOpError;
744
+ /** List key rotations Retrieve a list of all rotations associated with a specific key. The `key_id` and `region` parameters in the path are required. */
745
+ export const listKeyRotations: API.PaginatedOperationMethod<
746
+ ListKeyRotationsRequest,
747
+ ListKeyRotationsResponse,
748
+ ListKeyRotationsError,
749
+ ScalewayOpContext,
750
+ KeyRotation
751
+ > = /*@__PURE__*/ API.makePaginated(
752
+ () => ({
753
+ input: __S(28, __c7, 0) as any as S.Schema<ListKeyRotationsRequest>,
754
+ output: __S(31, __c7, 3) as any as S.Schema<ListKeyRotationsResponse>,
755
+ errors: [],
756
+ serviceErrors: ScalewayServiceErrors,
757
+ protocol: ScalewayProtocol,
758
+ retry: Retry.Retry,
759
+ telemetry: TELEMETRY,
760
+ span: "ListKeyRotations",
761
+ pagination: {
762
+ mode: "page",
763
+ inputToken: "page",
764
+ outputToken: "total_count",
765
+ items: "rotations",
766
+ pageSize: "page_size",
767
+ } as const,
768
+ }),
769
+ paginateByTotalCount,
770
+ ) as any;
771
+
772
+ export type ListKeysError = ScalewayOpError;
773
+ /** List keys Retrieve a list of keys across all Projects in an Organization or within a specific Project. If the user has permissions for all current and future projects: Either organization_id or project_id is required. If the user has permissions for all current projects or only specific projects: The project_id is required. The `region` parameter in path is needed in both case. */
774
+ export const listKeys: API.PaginatedOperationMethod<
775
+ ListKeysRequest,
776
+ ListKeysResponse,
777
+ ListKeysError,
778
+ ScalewayOpContext,
779
+ Key
780
+ > = /*@__PURE__*/ API.makePaginated(
781
+ () => ({
782
+ input: __S(32, __c8, 0) as any as S.Schema<ListKeysRequest>,
783
+ output: __S(34, __c8, 2) as any as S.Schema<ListKeysResponse>,
784
+ errors: [],
785
+ serviceErrors: ScalewayServiceErrors,
786
+ protocol: ScalewayProtocol,
787
+ retry: Retry.Retry,
788
+ telemetry: TELEMETRY,
789
+ span: "ListKeys",
790
+ pagination: {
791
+ mode: "page",
792
+ inputToken: "page",
793
+ outputToken: "total_count",
794
+ items: "keys",
795
+ pageSize: "page_size",
796
+ } as const,
797
+ }),
798
+ paginateByTotalCount,
799
+ ) as any;
800
+
801
+ export type ProtectKeyError = ScalewayOpError;
802
+ /** Apply key protection Apply protection to a given key specified by the `key_id` parameter. Applying key protection means that your key can be used and modified, but it cannot be deleted. */
803
+ export const protectKey: API.OperationMethod<
804
+ ProtectKeyRequest,
805
+ Key,
806
+ ProtectKeyError,
807
+ ScalewayOpContext
808
+ > = /*@__PURE__*/ API.make(() => ({
809
+ input: __S(36, __c9, 0) as any as S.Schema<ProtectKeyRequest>,
810
+ output: __S(7, __c1, 3) as any as S.Schema<Key>,
811
+ errors: [],
812
+ serviceErrors: ScalewayServiceErrors,
813
+ protocol: ScalewayProtocol,
814
+ retry: Retry.Retry,
815
+ telemetry: TELEMETRY,
816
+ span: "ProtectKey",
817
+ }));
818
+
819
+ export type RestoreKeyError = ScalewayOpError;
820
+ /** Restore a key Restore a key and all its rotations scheduled for deletion specified by the `region` and `key_id` parameters. */
821
+ export const restoreKey: API.OperationMethod<
822
+ RestoreKeyRequest,
823
+ Key,
824
+ RestoreKeyError,
825
+ ScalewayOpContext
826
+ > = /*@__PURE__*/ API.make(() => ({
827
+ input: __S(40, __c10, 0) as any as S.Schema<RestoreKeyRequest>,
828
+ output: __S(7, __c1, 3) as any as S.Schema<Key>,
829
+ errors: [],
830
+ serviceErrors: ScalewayServiceErrors,
831
+ protocol: ScalewayProtocol,
832
+ retry: Retry.Retry,
833
+ telemetry: TELEMETRY,
834
+ span: "RestoreKey",
835
+ }));
836
+
837
+ export type RotateKeyError = ScalewayOpError;
838
+ /** Rotate a key Generate a new version of an existing key with new key material. Previous key versions remain usable to decrypt previously encrypted data, but the key's new version will be used for subsequent encryption operations and data key generation. */
839
+ export const rotateKey: API.OperationMethod<
840
+ RotateKeyRequest,
841
+ Key,
842
+ RotateKeyError,
843
+ ScalewayOpContext
844
+ > = /*@__PURE__*/ API.make(() => ({
845
+ input: __S(44, __c11, 0) as any as S.Schema<RotateKeyRequest>,
846
+ output: __S(7, __c1, 3) as any as S.Schema<Key>,
847
+ errors: [],
848
+ serviceErrors: ScalewayServiceErrors,
849
+ protocol: ScalewayProtocol,
850
+ retry: Retry.Retry,
851
+ telemetry: TELEMETRY,
852
+ span: "RotateKey",
853
+ }));
854
+
855
+ export type SignError = ScalewayOpError;
856
+ /** Sign a message digest Use a given key to sign a message digest. The key must have its usage set to `asymmetric_signing`. The digest must be created using the same digest algorithm that is defined in the key's algorithm configuration. */
857
+ export const sign: API.OperationMethod<SignRequest, SignResponse, SignError, ScalewayOpContext> =
858
+ /*@__PURE__*/ API.make(() => ({
859
+ input: __S(48, __c12, 0) as any as S.Schema<SignRequest>,
860
+ output: __S(49, __c12, 1) as any as S.Schema<SignResponse>,
861
+ errors: [],
862
+ serviceErrors: ScalewayServiceErrors,
863
+ protocol: ScalewayProtocol,
864
+ retry: Retry.Retry,
865
+ telemetry: TELEMETRY,
866
+ span: "Sign",
867
+ }));
868
+
869
+ export type UnprotectKeyError = ScalewayOpError;
870
+ /** Remove key protection Remove key protection from a given key specified by the `key_id` parameter. Removing key protection means that your key can be deleted anytime. */
871
+ export const unprotectKey: API.OperationMethod<
872
+ UnprotectKeyRequest,
873
+ Key,
874
+ UnprotectKeyError,
875
+ ScalewayOpContext
876
+ > = /*@__PURE__*/ API.make(() => ({
877
+ input: __S(52, __c13, 0) as any as S.Schema<UnprotectKeyRequest>,
878
+ output: __S(7, __c1, 3) as any as S.Schema<Key>,
879
+ errors: [],
880
+ serviceErrors: ScalewayServiceErrors,
881
+ protocol: ScalewayProtocol,
882
+ retry: Retry.Retry,
883
+ telemetry: TELEMETRY,
884
+ span: "UnprotectKey",
885
+ }));
886
+
887
+ export type UnwrapKeyError = ScalewayOpError;
888
+ /** Unwrap a key Unwrap (decrypt) a wrapped key using an existing key, specified by the `key_id` parameter. The key must use ML-KEM algorithm. The maximum key size that can be unwrapped is 4 KB of ciphertext. */
889
+ export const unwrapKey: API.OperationMethod<
890
+ UnwrapKeyRequest,
891
+ UnwrapKeyResponse,
892
+ UnwrapKeyError,
893
+ ScalewayOpContext
894
+ > = /*@__PURE__*/ API.make(() => ({
895
+ input: __S(64, __c16, 0) as any as S.Schema<UnwrapKeyRequest>,
896
+ output: __S(65, __c16, 1) as any as S.Schema<UnwrapKeyResponse>,
897
+ errors: [],
898
+ serviceErrors: ScalewayServiceErrors,
899
+ protocol: ScalewayProtocol,
900
+ retry: Retry.Retry,
901
+ telemetry: TELEMETRY,
902
+ span: "UnwrapKey",
903
+ }));
904
+
905
+ export type UpdateKeyError = ScalewayOpError;
906
+ /** Update a key Modify a key's metadata including name, description and tags, specified by the `key_id` and `region` parameters. */
907
+ export const updateKey: API.OperationMethod<
908
+ UpdateKeyRequest,
909
+ Key,
910
+ UpdateKeyError,
911
+ ScalewayOpContext
912
+ > = /*@__PURE__*/ API.make(() => ({
913
+ input: __S(69, __c17, 1) as any as S.Schema<UpdateKeyRequest>,
914
+ output: __S(7, __c1, 3) as any as S.Schema<Key>,
915
+ errors: [],
916
+ serviceErrors: ScalewayServiceErrors,
917
+ protocol: ScalewayProtocol,
918
+ retry: Retry.Retry,
919
+ telemetry: TELEMETRY,
920
+ span: "UpdateKey",
921
+ }));
922
+
923
+ export type VerifyError = ScalewayOpError;
924
+ /** Verify a message signature Use a given key to verify a message signature against a message digest. The key must have its usage set to `asymmetric_signing`. The message digest must be generated using the same digest algorithm that is defined in the key's algorithm configuration. */
925
+ export const verify: API.OperationMethod<
926
+ VerifyRequest,
927
+ VerifyResponse,
928
+ VerifyError,
929
+ ScalewayOpContext
930
+ > = /*@__PURE__*/ API.make(() => ({
931
+ input: __S(72, __c18, 0) as any as S.Schema<VerifyRequest>,
932
+ output: __S(73, __c18, 1) as any as S.Schema<VerifyResponse>,
933
+ errors: [],
934
+ serviceErrors: ScalewayServiceErrors,
935
+ protocol: ScalewayProtocol,
936
+ retry: Retry.Retry,
937
+ telemetry: TELEMETRY,
938
+ span: "Verify",
939
+ }));
940
+
941
+ export type WrapKeyError = ScalewayOpError;
942
+ /** Wrap a key Wrap (encrypt) a key using an existing key, specified by the `key_id` parameter. The key must use ML-KEM algorithm. The maximum key size that can be wrapped is 2 KB of plaintext. */
943
+ export const wrapKey: API.OperationMethod<
944
+ WrapKeyRequest,
945
+ WrapKeyResponse,
946
+ WrapKeyError,
947
+ ScalewayOpContext
948
+ > = /*@__PURE__*/ API.make(() => ({
949
+ input: __S(76, __c19, 0) as any as S.Schema<WrapKeyRequest>,
950
+ output: __S(96, __c24, 0) as any as S.Schema<WrapKeyResponse>,
951
+ errors: [],
952
+ serviceErrors: ScalewayServiceErrors,
953
+ protocol: ScalewayProtocol,
954
+ retry: Retry.Retry,
955
+ telemetry: TELEMETRY,
956
+ span: "WrapKey",
957
+ }));
958
+
959
+ // Schema builders: each runs one schema initializer, on that schema's first use.
960
+ function __c0(j: number): any {
961
+ switch (j) {
962
+ case 0:
963
+ return S.suspend(() =>
964
+ S.Struct({
965
+ region: S.optional(S.String.pipe(T.Label())),
966
+ project_id: S.optional(S.String),
967
+ name: S.optional(S.NullOr(S.String)),
968
+ usage: S.optional(__S(4, __c1, 0)),
969
+ description: S.optional(S.NullOr(S.String)),
970
+ tags: S.optional(__S(5, __c1, 1)),
971
+ rotation_policy: S.optional(__S(6, __c1, 2)),
972
+ unprotected: S.optional(S.Boolean),
973
+ origin: S.optional(S.String),
974
+ protection_level: S.optional(S.String),
975
+ }).pipe(
976
+ T.Http({
977
+ method: "POST",
978
+ uri: "/key-manager/v1alpha1/regions/{region}/keys",
979
+ code: 200,
980
+ baseUrl: "https://api.scaleway.com",
981
+ }),
982
+ ),
983
+ ).annotate({ identifier: "CreateKeyRequest" });
984
+ }
985
+ }
986
+ function __c1(j: number): any {
987
+ switch (j) {
988
+ case 0:
989
+ return S.suspend(() =>
990
+ S.Struct({
991
+ symmetric_encryption: S.optional(S.NullOr(S.String)),
992
+ asymmetric_encryption: S.optional(S.NullOr(S.String)),
993
+ asymmetric_signing: S.optional(S.NullOr(S.String)),
994
+ key_encapsulation: S.optional(S.NullOr(S.String)),
995
+ }),
996
+ ).annotate({ identifier: "KeyUsage" });
997
+ case 1:
998
+ return S.Array(S.String);
999
+ case 2:
1000
+ return S.suspend(() =>
1001
+ S.Struct({
1002
+ rotation_period: S.optional(S.NullOr(S.String)),
1003
+ next_rotation_at: S.optional(S.NullOr(S.String)),
1004
+ }),
1005
+ ).annotate({ identifier: "KeyRotationPolicy" });
1006
+ case 3:
1007
+ return S.suspend(() =>
1008
+ S.Struct({
1009
+ id: S.optional(S.String),
1010
+ srn: S.optional(S.String),
1011
+ project_id: S.optional(S.String),
1012
+ name: S.optional(S.String),
1013
+ usage: S.optional(__S(4, __c1, 0)),
1014
+ state: S.optional(S.String),
1015
+ rotation_count: S.optional(S.Number),
1016
+ created_at: S.optional(S.NullOr(S.String)),
1017
+ updated_at: S.optional(S.NullOr(S.String)),
1018
+ protected: S.optional(S.Boolean),
1019
+ locked: S.optional(S.Boolean),
1020
+ description: S.optional(S.NullOr(S.String)),
1021
+ tags: S.optional(__S(5, __c1, 1)),
1022
+ rotated_at: S.optional(S.NullOr(S.String)),
1023
+ rotation_policy: S.optional(__S(6, __c1, 2)),
1024
+ origin: S.optional(S.String),
1025
+ deletion_requested_at: S.optional(S.NullOr(S.String)),
1026
+ protection_level: S.optional(S.String),
1027
+ region: S.optional(S.String),
1028
+ }),
1029
+ ).annotate({ identifier: "Key" });
1030
+ }
1031
+ }
1032
+ function __c2(j: number): any {
1033
+ switch (j) {
1034
+ case 0:
1035
+ return S.suspend(() =>
1036
+ S.Struct({
1037
+ region: S.optional(S.String.pipe(T.Label())),
1038
+ key_id: S.String.pipe(T.Label()),
1039
+ ciphertext: S.optional(S.String),
1040
+ associated_data: S.optional(S.NullOr(S.String)),
1041
+ }).pipe(
1042
+ T.Http({
1043
+ method: "POST",
1044
+ uri: "/key-manager/v1alpha1/regions/{region}/keys/{key_id}/decrypt",
1045
+ code: 200,
1046
+ baseUrl: "https://api.scaleway.com",
1047
+ }),
1048
+ ),
1049
+ ).annotate({ identifier: "DecryptRequest" });
1050
+ case 1:
1051
+ return S.suspend(() =>
1052
+ S.Struct({
1053
+ key_id: S.optional(S.String),
1054
+ plaintext: S.optional(S.String.pipe(T.SensitiveValue({}))),
1055
+ ciphertext: S.optional(S.NullOr(S.String)),
1056
+ }),
1057
+ ).annotate({ identifier: "DecryptResponse" });
1058
+ }
1059
+ }
1060
+ function __c3(j: number): any {
1061
+ switch (j) {
1062
+ case 0:
1063
+ return S.suspend(() =>
1064
+ S.Struct({
1065
+ region: S.optional(S.String.pipe(T.Label())),
1066
+ key_id: S.String.pipe(T.Label()),
1067
+ }).pipe(
1068
+ T.Http({
1069
+ method: "GET",
1070
+ uri: "/key-manager/v1alpha1/regions/{region}/keys/{key_id}/public-key",
1071
+ code: 200,
1072
+ baseUrl: "https://api.scaleway.com",
1073
+ }),
1074
+ ),
1075
+ ).annotate({ identifier: "GetPublicKeyRequest" });
1076
+ case 1:
1077
+ return S.suspend(() =>
1078
+ S.Struct({
1079
+ pem: S.optional(S.String),
1080
+ }),
1081
+ ).annotate({ identifier: "PublicKey" });
1082
+ }
1083
+ }
1084
+ function __c4(j: number): any {
1085
+ switch (j) {
1086
+ case 0:
1087
+ return S.suspend(() =>
1088
+ S.Struct({
1089
+ data: S.optional(S.String),
1090
+ import_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
1091
+ }),
1092
+ ).annotate({ identifier: "ImportKeyMaterialRequestEncryptedKeyMaterial" });
1093
+ case 1:
1094
+ return S.suspend(() =>
1095
+ S.Struct({
1096
+ region: S.optional(S.String.pipe(T.Label())),
1097
+ key_id: S.String.pipe(T.Label()),
1098
+ key_material: S.optional(S.NullOr(S.String)),
1099
+ salt: S.optional(S.NullOr(S.String)),
1100
+ encrypted_key_material: S.optional(S.NullOr(__S(16, __c4, 0))),
1101
+ }).pipe(
1102
+ T.Http({
1103
+ method: "POST",
1104
+ uri: "/key-manager/v1alpha1/regions/{region}/keys/{key_id}/import-key-material",
1105
+ code: 200,
1106
+ baseUrl: "https://api.scaleway.com",
1107
+ }),
1108
+ ),
1109
+ ).annotate({ identifier: "ImportKeyMaterialRequest" });
1110
+ }
1111
+ }
1112
+ function __c5(j: number): any {
1113
+ switch (j) {
1114
+ case 0:
1115
+ return S.suspend(() =>
1116
+ S.Struct({
1117
+ region: S.optional(S.String.pipe(T.Label())),
1118
+ usages: S.optional(__S(24, __c6, 0).pipe(T.Query())),
1119
+ }).pipe(
1120
+ T.Http({
1121
+ method: "GET",
1122
+ uri: "/key-manager/v1alpha1/regions/{region}/algorithms",
1123
+ code: 200,
1124
+ baseUrl: "https://api.scaleway.com",
1125
+ }),
1126
+ ),
1127
+ ).annotate({ identifier: "ListAlgorithmsRequest" });
1128
+ case 1:
1129
+ return S.suspend(() =>
1130
+ S.Struct({
1131
+ usage: S.optional(S.String),
1132
+ name: S.optional(S.String),
1133
+ recommended: S.optional(S.Boolean),
1134
+ }),
1135
+ ).annotate({ identifier: "ListAlgorithmsResponseAlgorithm" });
1136
+ case 2:
1137
+ return S.Array(__S(21, __c5, 1));
1138
+ case 3:
1139
+ return S.suspend(() =>
1140
+ S.Struct({
1141
+ algorithms: S.optional(__S(22, __c5, 2)),
1142
+ }),
1143
+ ).annotate({ identifier: "ListAlgorithmsResponse" });
1144
+ }
1145
+ }
1146
+ function __c6(j: number): any {
1147
+ switch (j) {
1148
+ case 0:
1149
+ return S.Array(S.String);
1150
+ }
1151
+ }
1152
+ function __c7(j: number): any {
1153
+ switch (j) {
1154
+ case 0:
1155
+ return S.suspend(() =>
1156
+ S.Struct({
1157
+ region: S.optional(S.String.pipe(T.Label())),
1158
+ key_id: S.String.pipe(T.Label()),
1159
+ order_by: S.optional(S.String.pipe(T.Query())),
1160
+ page: S.optional(S.Number.pipe(T.Query())),
1161
+ page_size: S.optional(S.Number.pipe(T.Query())),
1162
+ status: S.optional(__S(24, __c6, 0).pipe(T.Query())),
1163
+ }).pipe(
1164
+ T.Http({
1165
+ method: "GET",
1166
+ uri: "/key-manager/v1alpha1/regions/{region}/keys/{key_id}/rotations",
1167
+ code: 200,
1168
+ baseUrl: "https://api.scaleway.com",
1169
+ }),
1170
+ ),
1171
+ ).annotate({ identifier: "ListKeyRotationsRequest" });
1172
+ case 1:
1173
+ return S.suspend(() =>
1174
+ S.Struct({
1175
+ key_id: S.optional(S.String),
1176
+ index: S.optional(S.Number),
1177
+ status: S.optional(S.String),
1178
+ manually_rotated: S.optional(S.Boolean),
1179
+ created_at: S.optional(S.NullOr(S.String)),
1180
+ updated_at: S.optional(S.NullOr(S.String)),
1181
+ deleted_at: S.optional(S.NullOr(S.String)),
1182
+ }),
1183
+ ).annotate({ identifier: "KeyRotation" });
1184
+ case 2:
1185
+ return S.Array(__S(29, __c7, 1));
1186
+ case 3:
1187
+ return S.suspend(() =>
1188
+ S.Struct({
1189
+ rotations: __S(30, __c7, 2),
1190
+ total_count: S.optional(S.Number),
1191
+ }),
1192
+ ).annotate({ identifier: "ListKeyRotationsResponse" });
1193
+ }
1194
+ }
1195
+ function __c8(j: number): any {
1196
+ switch (j) {
1197
+ case 0:
1198
+ return S.suspend(() =>
1199
+ S.Struct({
1200
+ region: S.optional(S.String.pipe(T.Label())),
1201
+ organization_id: S.optional(S.String.pipe(T.Query())),
1202
+ project_id: S.optional(S.String.pipe(T.Query())),
1203
+ order_by: S.optional(S.String.pipe(T.Query())),
1204
+ page: S.optional(S.Number.pipe(T.Query())),
1205
+ page_size: S.optional(S.Number.pipe(T.Query())),
1206
+ tags: S.optional(__S(5, __c1, 1).pipe(T.Query())),
1207
+ name: S.optional(S.String.pipe(T.Query())),
1208
+ usage: S.optional(S.String.pipe(T.Query())),
1209
+ scheduled_for_deletion: S.Boolean.pipe(T.Query()),
1210
+ protection_level: S.optional(S.String.pipe(T.Query())),
1211
+ }).pipe(
1212
+ T.Http({
1213
+ method: "GET",
1214
+ uri: "/key-manager/v1alpha1/regions/{region}/keys",
1215
+ code: 200,
1216
+ baseUrl: "https://api.scaleway.com",
1217
+ }),
1218
+ ),
1219
+ ).annotate({ identifier: "ListKeysRequest" });
1220
+ case 1:
1221
+ return S.Array(__S(7, __c1, 3));
1222
+ case 2:
1223
+ return S.suspend(() =>
1224
+ S.Struct({
1225
+ keys: __S(33, __c8, 1),
1226
+ total_count: S.optional(S.Number),
1227
+ }),
1228
+ ).annotate({ identifier: "ListKeysResponse" });
1229
+ }
1230
+ }
1231
+ function __c9(j: number): any {
1232
+ switch (j) {
1233
+ case 0:
1234
+ return S.suspend(() =>
1235
+ S.Struct({
1236
+ region: S.optional(S.String.pipe(T.Label())),
1237
+ key_id: S.String.pipe(T.Label()),
1238
+ }).pipe(
1239
+ T.Http({
1240
+ method: "POST",
1241
+ uri: "/key-manager/v1alpha1/regions/{region}/keys/{key_id}/protect",
1242
+ code: 200,
1243
+ baseUrl: "https://api.scaleway.com",
1244
+ }),
1245
+ ),
1246
+ ).annotate({ identifier: "ProtectKeyRequest" });
1247
+ }
1248
+ }
1249
+ function __c10(j: number): any {
1250
+ switch (j) {
1251
+ case 0:
1252
+ return S.suspend(() =>
1253
+ S.Struct({
1254
+ region: S.optional(S.String.pipe(T.Label())),
1255
+ key_id: S.String.pipe(T.Label()),
1256
+ }).pipe(
1257
+ T.Http({
1258
+ method: "POST",
1259
+ uri: "/key-manager/v1alpha1/regions/{region}/keys/{key_id}/restore",
1260
+ code: 200,
1261
+ baseUrl: "https://api.scaleway.com",
1262
+ }),
1263
+ ),
1264
+ ).annotate({ identifier: "RestoreKeyRequest" });
1265
+ }
1266
+ }
1267
+ function __c11(j: number): any {
1268
+ switch (j) {
1269
+ case 0:
1270
+ return S.suspend(() =>
1271
+ S.Struct({
1272
+ region: S.optional(S.String.pipe(T.Label())),
1273
+ key_id: S.String.pipe(T.Label()),
1274
+ }).pipe(
1275
+ T.Http({
1276
+ method: "POST",
1277
+ uri: "/key-manager/v1alpha1/regions/{region}/keys/{key_id}/rotate",
1278
+ code: 200,
1279
+ baseUrl: "https://api.scaleway.com",
1280
+ }),
1281
+ ),
1282
+ ).annotate({ identifier: "RotateKeyRequest" });
1283
+ }
1284
+ }
1285
+ function __c12(j: number): any {
1286
+ switch (j) {
1287
+ case 0:
1288
+ return S.suspend(() =>
1289
+ S.Struct({
1290
+ region: S.optional(S.String.pipe(T.Label())),
1291
+ key_id: S.String.pipe(T.Label()),
1292
+ digest: S.optional(S.NullOr(S.String)),
1293
+ msg: S.optional(S.NullOr(S.String)),
1294
+ external_mu: S.optional(S.NullOr(S.String)),
1295
+ }).pipe(
1296
+ T.Http({
1297
+ method: "POST",
1298
+ uri: "/key-manager/v1alpha1/regions/{region}/keys/{key_id}/sign",
1299
+ code: 200,
1300
+ baseUrl: "https://api.scaleway.com",
1301
+ }),
1302
+ ),
1303
+ ).annotate({ identifier: "SignRequest" });
1304
+ case 1:
1305
+ return S.suspend(() =>
1306
+ S.Struct({
1307
+ key_id: S.optional(S.String),
1308
+ signature: S.optional(S.String),
1309
+ }),
1310
+ ).annotate({ identifier: "SignResponse" });
1311
+ }
1312
+ }
1313
+ function __c13(j: number): any {
1314
+ switch (j) {
1315
+ case 0:
1316
+ return S.suspend(() =>
1317
+ S.Struct({
1318
+ region: S.optional(S.String.pipe(T.Label())),
1319
+ key_id: S.String.pipe(T.Label()),
1320
+ }).pipe(
1321
+ T.Http({
1322
+ method: "POST",
1323
+ uri: "/key-manager/v1alpha1/regions/{region}/keys/{key_id}/unprotect",
1324
+ code: 200,
1325
+ baseUrl: "https://api.scaleway.com",
1326
+ }),
1327
+ ),
1328
+ ).annotate({ identifier: "UnprotectKeyRequest" });
1329
+ }
1330
+ }
1331
+ function __c14(j: number): any {
1332
+ switch (j) {
1333
+ case 0:
1334
+ return S.suspend(() =>
1335
+ S.Struct({
1336
+ region: S.optional(S.String.pipe(T.Label())),
1337
+ key_id: S.String.pipe(T.Label()),
1338
+ }).pipe(
1339
+ T.Http({
1340
+ method: "DELETE",
1341
+ uri: "/key-manager/v1alpha1/regions/{region}/keys/{key_id}",
1342
+ code: 200,
1343
+ baseUrl: "https://api.scaleway.com",
1344
+ }),
1345
+ ),
1346
+ ).annotate({ identifier: "DeleteKeyRequest" });
1347
+ }
1348
+ }
1349
+ function __c15(j: number): any {
1350
+ switch (j) {
1351
+ case 0:
1352
+ return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteKeyResponse" });
1353
+ }
1354
+ }
1355
+ function __c16(j: number): any {
1356
+ switch (j) {
1357
+ case 0:
1358
+ return S.suspend(() =>
1359
+ S.Struct({
1360
+ region: S.optional(S.String.pipe(T.Label())),
1361
+ key_id: S.String.pipe(T.Label()),
1362
+ ciphertext: S.optional(S.String),
1363
+ associated_data: S.optional(S.NullOr(S.String)),
1364
+ }).pipe(
1365
+ T.Http({
1366
+ method: "POST",
1367
+ uri: "/key-manager/v1alpha1/regions/{region}/keys/{key_id}/unwrap",
1368
+ code: 200,
1369
+ baseUrl: "https://api.scaleway.com",
1370
+ }),
1371
+ ),
1372
+ ).annotate({ identifier: "UnwrapKeyRequest" });
1373
+ case 1:
1374
+ return S.suspend(() =>
1375
+ S.Struct({
1376
+ key_id: S.optional(S.String),
1377
+ plaintext: S.optional(S.String.pipe(T.SensitiveValue({}))),
1378
+ }),
1379
+ ).annotate({ identifier: "UnwrapKeyResponse" });
1380
+ }
1381
+ }
1382
+ function __c17(j: number): any {
1383
+ switch (j) {
1384
+ case 0:
1385
+ return S.Array(S.Unknown);
1386
+ case 1:
1387
+ return S.suspend(() =>
1388
+ S.Struct({
1389
+ region: S.optional(S.String.pipe(T.Label())),
1390
+ key_id: S.String.pipe(T.Label()),
1391
+ name: S.optional(S.NullOr(S.String)),
1392
+ description: S.optional(S.NullOr(S.String)),
1393
+ tags: S.optional(S.NullOr(__S(68, __c17, 0))),
1394
+ rotation_policy: S.optional(__S(6, __c1, 2)),
1395
+ }).pipe(
1396
+ T.Http({
1397
+ method: "PATCH",
1398
+ uri: "/key-manager/v1alpha1/regions/{region}/keys/{key_id}",
1399
+ code: 200,
1400
+ baseUrl: "https://api.scaleway.com",
1401
+ }),
1402
+ ),
1403
+ ).annotate({ identifier: "UpdateKeyRequest" });
1404
+ }
1405
+ }
1406
+ function __c18(j: number): any {
1407
+ switch (j) {
1408
+ case 0:
1409
+ return S.suspend(() =>
1410
+ S.Struct({
1411
+ region: S.optional(S.String.pipe(T.Label())),
1412
+ key_id: S.String.pipe(T.Label()),
1413
+ digest: S.optional(S.NullOr(S.String)),
1414
+ msg: S.optional(S.NullOr(S.String)),
1415
+ signature: S.optional(S.String),
1416
+ }).pipe(
1417
+ T.Http({
1418
+ method: "POST",
1419
+ uri: "/key-manager/v1alpha1/regions/{region}/keys/{key_id}/verify",
1420
+ code: 200,
1421
+ baseUrl: "https://api.scaleway.com",
1422
+ }),
1423
+ ),
1424
+ ).annotate({ identifier: "VerifyRequest" });
1425
+ case 1:
1426
+ return S.suspend(() =>
1427
+ S.Struct({
1428
+ key_id: S.optional(S.String),
1429
+ valid: S.optional(S.Boolean),
1430
+ }),
1431
+ ).annotate({ identifier: "VerifyResponse" });
1432
+ }
1433
+ }
1434
+ function __c19(j: number): any {
1435
+ switch (j) {
1436
+ case 0:
1437
+ return S.suspend(() =>
1438
+ S.Struct({
1439
+ region: S.optional(S.String.pipe(T.Label())),
1440
+ key_id: S.String.pipe(T.Label()),
1441
+ plaintext: S.optional(S.String.pipe(T.SensitiveValue({}))),
1442
+ associated_data: S.optional(S.NullOr(S.String)),
1443
+ }).pipe(
1444
+ T.Http({
1445
+ method: "POST",
1446
+ uri: "/key-manager/v1alpha1/regions/{region}/keys/{key_id}/wrap",
1447
+ code: 200,
1448
+ baseUrl: "https://api.scaleway.com",
1449
+ }),
1450
+ ),
1451
+ ).annotate({ identifier: "WrapKeyRequest" });
1452
+ }
1453
+ }
1454
+ function __c20(j: number): any {
1455
+ switch (j) {
1456
+ case 0:
1457
+ return S.suspend(() =>
1458
+ S.Struct({
1459
+ region: S.optional(S.String.pipe(T.Label())),
1460
+ key_id: S.String.pipe(T.Label()),
1461
+ key_rotation_index: S.optional(S.NullOr(S.Number)),
1462
+ }).pipe(
1463
+ T.Http({
1464
+ method: "POST",
1465
+ uri: "/key-manager/v1alpha1/regions/{region}/keys/{key_id}/delete-key-material",
1466
+ code: 200,
1467
+ baseUrl: "https://api.scaleway.com",
1468
+ }),
1469
+ ),
1470
+ ).annotate({ identifier: "DeleteKeyMaterialRequest" });
1471
+ }
1472
+ }
1473
+ function __c21(j: number): any {
1474
+ switch (j) {
1475
+ case 0:
1476
+ return S.suspend(() =>
1477
+ S.Struct({
1478
+ region: S.optional(S.String.pipe(T.Label())),
1479
+ key_id: S.String.pipe(T.Label()),
1480
+ }).pipe(
1481
+ T.Http({
1482
+ method: "POST",
1483
+ uri: "/key-manager/v1alpha1/regions/{region}/keys/{key_id}/disable",
1484
+ code: 200,
1485
+ baseUrl: "https://api.scaleway.com",
1486
+ }),
1487
+ ),
1488
+ ).annotate({ identifier: "DisableKeyRequest" });
1489
+ }
1490
+ }
1491
+ function __c22(j: number): any {
1492
+ switch (j) {
1493
+ case 0:
1494
+ return S.suspend(() =>
1495
+ S.Struct({
1496
+ region: S.optional(S.String.pipe(T.Label())),
1497
+ key_id: S.String.pipe(T.Label()),
1498
+ }).pipe(
1499
+ T.Http({
1500
+ method: "POST",
1501
+ uri: "/key-manager/v1alpha1/regions/{region}/keys/{key_id}/enable",
1502
+ code: 200,
1503
+ baseUrl: "https://api.scaleway.com",
1504
+ }),
1505
+ ),
1506
+ ).annotate({ identifier: "EnableKeyRequest" });
1507
+ }
1508
+ }
1509
+ function __c23(j: number): any {
1510
+ switch (j) {
1511
+ case 0:
1512
+ return S.suspend(() =>
1513
+ S.Struct({
1514
+ region: S.optional(S.String.pipe(T.Label())),
1515
+ key_id: S.String.pipe(T.Label()),
1516
+ plaintext: S.optional(S.String.pipe(T.SensitiveValue({}))),
1517
+ associated_data: S.optional(S.NullOr(S.String)),
1518
+ }).pipe(
1519
+ T.Http({
1520
+ method: "POST",
1521
+ uri: "/key-manager/v1alpha1/regions/{region}/keys/{key_id}/encrypt",
1522
+ code: 200,
1523
+ baseUrl: "https://api.scaleway.com",
1524
+ }),
1525
+ ),
1526
+ ).annotate({ identifier: "EncryptRequest" });
1527
+ }
1528
+ }
1529
+ function __c24(j: number): any {
1530
+ switch (j) {
1531
+ case 0:
1532
+ return S.suspend(() =>
1533
+ S.Struct({
1534
+ key_id: S.optional(S.String),
1535
+ ciphertext: S.optional(S.String),
1536
+ }),
1537
+ ).annotate({ identifier: "EncryptResponse" });
1538
+ }
1539
+ }
1540
+ function __c25(j: number): any {
1541
+ switch (j) {
1542
+ case 0:
1543
+ return S.suspend(() =>
1544
+ S.Struct({
1545
+ region: S.optional(S.String.pipe(T.Label())),
1546
+ key_id: S.String.pipe(T.Label()),
1547
+ algorithm: S.optional(S.String),
1548
+ without_plaintext: S.optional(S.Boolean),
1549
+ }).pipe(
1550
+ T.Http({
1551
+ method: "POST",
1552
+ uri: "/key-manager/v1alpha1/regions/{region}/keys/{key_id}/generate-data-key",
1553
+ code: 200,
1554
+ baseUrl: "https://api.scaleway.com",
1555
+ }),
1556
+ ),
1557
+ ).annotate({ identifier: "GenerateDataKeyRequest" });
1558
+ case 1:
1559
+ return S.suspend(() =>
1560
+ S.Struct({
1561
+ key_id: S.optional(S.String),
1562
+ algorithm: S.optional(S.String),
1563
+ ciphertext: S.optional(S.String),
1564
+ plaintext: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
1565
+ created_at: S.optional(S.NullOr(S.String)),
1566
+ }),
1567
+ ).annotate({ identifier: "DataKey" });
1568
+ }
1569
+ }
1570
+ function __c26(j: number): any {
1571
+ switch (j) {
1572
+ case 0:
1573
+ return S.suspend(() =>
1574
+ S.Struct({
1575
+ region: S.optional(S.String.pipe(T.Label())),
1576
+ key_id: S.String.pipe(T.Label()),
1577
+ wrapping_algorithm: S.optional(S.String),
1578
+ }).pipe(
1579
+ T.Http({
1580
+ method: "POST",
1581
+ uri: "/key-manager/v1alpha1/regions/{region}/keys/{key_id}/import-parameters",
1582
+ code: 200,
1583
+ baseUrl: "https://api.scaleway.com",
1584
+ }),
1585
+ ),
1586
+ ).annotate({ identifier: "GenerateKeyMaterialImportParametersRequest" });
1587
+ case 1:
1588
+ return S.suspend(() =>
1589
+ S.Struct({
1590
+ key_id: S.optional(S.String),
1591
+ public_key: S.optional(S.String),
1592
+ import_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
1593
+ }),
1594
+ ).annotate({ identifier: "GenerateKeyMaterialImportParametersResponse" });
1595
+ }
1596
+ }
1597
+ function __c27(j: number): any {
1598
+ switch (j) {
1599
+ case 0:
1600
+ return S.suspend(() =>
1601
+ S.Struct({
1602
+ region: S.optional(S.String.pipe(T.Label())),
1603
+ key_id: S.String.pipe(T.Label()),
1604
+ }).pipe(
1605
+ T.Http({
1606
+ method: "GET",
1607
+ uri: "/key-manager/v1alpha1/regions/{region}/keys/{key_id}",
1608
+ code: 200,
1609
+ baseUrl: "https://api.scaleway.com",
1610
+ }),
1611
+ ),
1612
+ ).annotate({ identifier: "GetKeyRequest" });
1613
+ }
1614
+ }
1615
+ // Schema table: entry i is schema j of builder f, made on first reach.
1616
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
1617
+ return (__s[i] ??= __L.at(f, j));
1618
+ }