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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (639) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +171 -4
  3. package/lib/.lazy.json +1 -0
  4. package/lib/_bundle/lazy.js +4 -0
  5. package/lib/_bundle/sdk.js +2 -0
  6. package/lib/_bundle/sdk.js.map +1 -0
  7. package/lib/credentials.d.ts +44 -0
  8. package/lib/credentials.d.ts.map +1 -0
  9. package/lib/credentials.js +1 -0
  10. package/lib/errors.d.ts +285 -0
  11. package/lib/errors.d.ts.map +1 -0
  12. package/lib/errors.js +1 -0
  13. package/lib/index.d.ts +48 -0
  14. package/lib/index.d.ts.map +1 -0
  15. package/lib/index.js +6 -0
  16. package/lib/pagination.d.ts +10 -0
  17. package/lib/pagination.d.ts.map +1 -0
  18. package/lib/pagination.js +1 -0
  19. package/lib/protocol.d.ts +48 -0
  20. package/lib/protocol.d.ts.map +1 -0
  21. package/lib/protocol.js +1 -0
  22. package/lib/retry.d.ts +31 -0
  23. package/lib/retry.d.ts.map +1 -0
  24. package/lib/retry.js +1 -0
  25. package/lib/services/account_contract_v3.d.ts +124 -0
  26. package/lib/services/account_contract_v3.d.ts.map +1 -0
  27. package/lib/services/account_contract_v3.js +2 -0
  28. package/lib/services/account_contract_v3.js.map +1 -0
  29. package/lib/services/account_iso_code_v3.d.ts +44 -0
  30. package/lib/services/account_iso_code_v3.d.ts.map +1 -0
  31. package/lib/services/account_iso_code_v3.js +2 -0
  32. package/lib/services/account_iso_code_v3.js.map +1 -0
  33. package/lib/services/account_organization_v3.d.ts +290 -0
  34. package/lib/services/account_organization_v3.d.ts.map +1 -0
  35. package/lib/services/account_organization_v3.js +2 -0
  36. package/lib/services/account_organization_v3.js.map +1 -0
  37. package/lib/services/account_project_v3.d.ts +173 -0
  38. package/lib/services/account_project_v3.d.ts.map +1 -0
  39. package/lib/services/account_project_v3.js +2 -0
  40. package/lib/services/account_project_v3.js.map +1 -0
  41. package/lib/services/account_unauthenticated_user_v3.d.ts +479 -0
  42. package/lib/services/account_unauthenticated_user_v3.d.ts.map +1 -0
  43. package/lib/services/account_unauthenticated_user_v3.js +35 -0
  44. package/lib/services/account_unauthenticated_user_v3.js.map +1 -0
  45. package/lib/services/account_unauthenticated_v3.d.ts +18 -0
  46. package/lib/services/account_unauthenticated_v3.d.ts.map +1 -0
  47. package/lib/services/account_unauthenticated_v3.js +2 -0
  48. package/lib/services/account_unauthenticated_v3.js.map +1 -0
  49. package/lib/services/account_user_v3.d.ts +522 -0
  50. package/lib/services/account_user_v3.d.ts.map +1 -0
  51. package/lib/services/account_user_v3.js +39 -0
  52. package/lib/services/account_user_v3.js.map +1 -0
  53. package/lib/services/annotations_v1.d.ts +260 -0
  54. package/lib/services/annotations_v1.d.ts.map +1 -0
  55. package/lib/services/annotations_v1.js +2 -0
  56. package/lib/services/annotations_v1.js.map +1 -0
  57. package/lib/services/baremetal_private_network_v1.d.ts +95 -0
  58. package/lib/services/baremetal_private_network_v1.d.ts.map +1 -0
  59. package/lib/services/baremetal_private_network_v1.js +2 -0
  60. package/lib/services/baremetal_private_network_v1.js.map +1 -0
  61. package/lib/services/baremetal_private_network_v3.d.ts +110 -0
  62. package/lib/services/baremetal_private_network_v3.d.ts.map +1 -0
  63. package/lib/services/baremetal_private_network_v3.js +2 -0
  64. package/lib/services/baremetal_private_network_v3.js.map +1 -0
  65. package/lib/services/baremetal_v1.d.ts +1089 -0
  66. package/lib/services/baremetal_v1.d.ts.map +1 -0
  67. package/lib/services/baremetal_v1.js +52 -0
  68. package/lib/services/baremetal_v1.js.map +1 -0
  69. package/lib/services/billing_electronic_billing_v2.d.ts +86 -0
  70. package/lib/services/billing_electronic_billing_v2.d.ts.map +1 -0
  71. package/lib/services/billing_electronic_billing_v2.js +2 -0
  72. package/lib/services/billing_electronic_billing_v2.js.map +1 -0
  73. package/lib/services/billing_v2.d.ts +187 -0
  74. package/lib/services/billing_v2.d.ts.map +1 -0
  75. package/lib/services/billing_v2.js +2 -0
  76. package/lib/services/billing_v2.js.map +1 -0
  77. package/lib/services/block_v1.d.ts +401 -0
  78. package/lib/services/block_v1.d.ts.map +1 -0
  79. package/lib/services/block_v1.js +27 -0
  80. package/lib/services/block_v1.js.map +1 -0
  81. package/lib/services/cockpit_global_v1.d.ts +75 -0
  82. package/lib/services/cockpit_global_v1.d.ts.map +1 -0
  83. package/lib/services/cockpit_global_v1.js +2 -0
  84. package/lib/services/cockpit_global_v1.js.map +1 -0
  85. package/lib/services/cockpit_regional_v1.d.ts +739 -0
  86. package/lib/services/cockpit_regional_v1.d.ts.map +1 -0
  87. package/lib/services/cockpit_regional_v1.js +47 -0
  88. package/lib/services/cockpit_regional_v1.js.map +1 -0
  89. package/lib/services/containers_v1.d.ts +822 -0
  90. package/lib/services/containers_v1.d.ts.map +1 -0
  91. package/lib/services/containers_v1.js +39 -0
  92. package/lib/services/containers_v1.js.map +1 -0
  93. package/lib/services/dedibox_billing_v1.d.ts +151 -0
  94. package/lib/services/dedibox_billing_v1.d.ts.map +1 -0
  95. package/lib/services/dedibox_billing_v1.js +2 -0
  96. package/lib/services/dedibox_billing_v1.js.map +1 -0
  97. package/lib/services/dedibox_ipv6_block_v1.d.ts +119 -0
  98. package/lib/services/dedibox_ipv6_block_v1.d.ts.map +1 -0
  99. package/lib/services/dedibox_ipv6_block_v1.js +2 -0
  100. package/lib/services/dedibox_ipv6_block_v1.js.map +1 -0
  101. package/lib/services/dedibox_rpn_san_v1.d.ts +486 -0
  102. package/lib/services/dedibox_rpn_san_v1.d.ts.map +1 -0
  103. package/lib/services/dedibox_rpn_san_v1.js +2 -0
  104. package/lib/services/dedibox_rpn_san_v1.js.map +1 -0
  105. package/lib/services/dedibox_rpn_v1.d.ts +68 -0
  106. package/lib/services/dedibox_rpn_v1.d.ts.map +1 -0
  107. package/lib/services/dedibox_rpn_v1.js +2 -0
  108. package/lib/services/dedibox_rpn_v1.js.map +1 -0
  109. package/lib/services/dedibox_rpn_v1_v1.d.ts +687 -0
  110. package/lib/services/dedibox_rpn_v1_v1.d.ts.map +1 -0
  111. package/lib/services/dedibox_rpn_v1_v1.js +30 -0
  112. package/lib/services/dedibox_rpn_v1_v1.js.map +1 -0
  113. package/lib/services/dedibox_rpn_v2_v1.d.ts +646 -0
  114. package/lib/services/dedibox_rpn_v2_v1.d.ts.map +1 -0
  115. package/lib/services/dedibox_rpn_v2_v1.js +27 -0
  116. package/lib/services/dedibox_rpn_v2_v1.js.map +1 -0
  117. package/lib/services/dedibox_v1.d.ts +1351 -0
  118. package/lib/services/dedibox_v1.d.ts.map +1 -0
  119. package/lib/services/dedibox_v1.js +70 -0
  120. package/lib/services/dedibox_v1.js.map +1 -0
  121. package/lib/services/generative_apis_openai_v1.d.ts +772 -0
  122. package/lib/services/generative_apis_openai_v1.d.ts.map +1 -0
  123. package/lib/services/generative_apis_openai_v1.js +24 -0
  124. package/lib/services/generative_apis_openai_v1.js.map +1 -0
  125. package/lib/services/generative_apis_v1.d.ts +82 -0
  126. package/lib/services/generative_apis_v1.d.ts.map +1 -0
  127. package/lib/services/generative_apis_v1.js +2 -0
  128. package/lib/services/generative_apis_v1.js.map +1 -0
  129. package/lib/services/index.d.ts +57 -0
  130. package/lib/services/index.d.ts.map +1 -0
  131. package/lib/services/index.js +56 -0
  132. package/lib/services/inference_v1.d.ts +460 -0
  133. package/lib/services/inference_v1.d.ts.map +1 -0
  134. package/lib/services/inference_v1.js +33 -0
  135. package/lib/services/inference_v1.js.map +1 -0
  136. package/lib/services/instance_v1.d.ts +2183 -0
  137. package/lib/services/instance_v1.d.ts.map +1 -0
  138. package/lib/services/instance_v1.js +112 -0
  139. package/lib/services/instance_v1.js.map +1 -0
  140. package/lib/services/iot_v1.d.ts +837 -0
  141. package/lib/services/iot_v1.d.ts.map +1 -0
  142. package/lib/services/iot_v1.js +50 -0
  143. package/lib/services/iot_v1.js.map +1 -0
  144. package/lib/services/ipam_v1.d.ts +244 -0
  145. package/lib/services/ipam_v1.d.ts.map +1 -0
  146. package/lib/services/ipam_v1.js +2 -0
  147. package/lib/services/ipam_v1.js.map +1 -0
  148. package/lib/services/k8s_v1.d.ts +1223 -0
  149. package/lib/services/k8s_v1.d.ts.map +1 -0
  150. package/lib/services/k8s_v1.js +61 -0
  151. package/lib/services/k8s_v1.js.map +1 -0
  152. package/lib/services/lb_zoned_v1.d.ts +1517 -0
  153. package/lib/services/lb_zoned_v1.d.ts.map +1 -0
  154. package/lib/services/lb_zoned_v1.js +75 -0
  155. package/lib/services/lb_zoned_v1.js.map +1 -0
  156. package/lib/services/marketplace_console_v2.d.ts +72 -0
  157. package/lib/services/marketplace_console_v2.d.ts.map +1 -0
  158. package/lib/services/marketplace_console_v2.js +2 -0
  159. package/lib/services/marketplace_console_v2.js.map +1 -0
  160. package/lib/services/marketplace_v2.d.ts +169 -0
  161. package/lib/services/marketplace_v2.d.ts.map +1 -0
  162. package/lib/services/marketplace_v2.js +2 -0
  163. package/lib/services/marketplace_v2.js.map +1 -0
  164. package/lib/services/mongodb_v1.d.ts +698 -0
  165. package/lib/services/mongodb_v1.d.ts.map +1 -0
  166. package/lib/services/mongodb_v1.js +43 -0
  167. package/lib/services/mongodb_v1.js.map +1 -0
  168. package/lib/services/partner_v1.d.ts +142 -0
  169. package/lib/services/partner_v1.d.ts.map +1 -0
  170. package/lib/services/partner_v1.js +2 -0
  171. package/lib/services/partner_v1.js.map +1 -0
  172. package/lib/services/rdb_encryption_v1.d.ts +17 -0
  173. package/lib/services/rdb_encryption_v1.d.ts.map +1 -0
  174. package/lib/services/rdb_encryption_v1.js +2 -0
  175. package/lib/services/rdb_encryption_v1.js.map +1 -0
  176. package/lib/services/rdb_v1.d.ts +1422 -0
  177. package/lib/services/rdb_v1.d.ts.map +1 -0
  178. package/lib/services/rdb_v1.js +87 -0
  179. package/lib/services/rdb_v1.js.map +1 -0
  180. package/lib/services/redis_v1.d.ts +602 -0
  181. package/lib/services/redis_v1.d.ts.map +1 -0
  182. package/lib/services/redis_v1.js +42 -0
  183. package/lib/services/redis_v1.js.map +1 -0
  184. package/lib/services/registry_v1.d.ts +281 -0
  185. package/lib/services/registry_v1.d.ts.map +1 -0
  186. package/lib/services/registry_v1.js +2 -0
  187. package/lib/services/registry_v1.js.map +1 -0
  188. package/lib/services/reseller_v1.d.ts +81 -0
  189. package/lib/services/reseller_v1.d.ts.map +1 -0
  190. package/lib/services/reseller_v1.js +2 -0
  191. package/lib/services/reseller_v1.js.map +1 -0
  192. package/lib/services/vpc_gw_v2.d.ts +635 -0
  193. package/lib/services/vpc_gw_v2.d.ts.map +1 -0
  194. package/lib/services/vpc_gw_v2.js +46 -0
  195. package/lib/services/vpc_gw_v2.js.map +1 -0
  196. package/lib/services/vpc_private_network_with_nics_v2.d.ts +114 -0
  197. package/lib/services/vpc_private_network_with_nics_v2.d.ts.map +1 -0
  198. package/lib/services/vpc_private_network_with_nics_v2.js +2 -0
  199. package/lib/services/vpc_private_network_with_nics_v2.js.map +1 -0
  200. package/lib/services/vpc_routes_with_nexthop_v2.d.ts +87 -0
  201. package/lib/services/vpc_routes_with_nexthop_v2.d.ts.map +1 -0
  202. package/lib/services/vpc_routes_with_nexthop_v2.js +2 -0
  203. package/lib/services/vpc_routes_with_nexthop_v2.js.map +1 -0
  204. package/lib/services/vpc_v2.d.ts +875 -0
  205. package/lib/services/vpc_v2.d.ts.map +1 -0
  206. package/lib/services/vpc_v2.js +54 -0
  207. package/lib/services/vpc_v2.js.map +1 -0
  208. package/lib/services/webhosting_backup_v1.d.ts +182 -0
  209. package/lib/services/webhosting_backup_v1.d.ts.map +1 -0
  210. package/lib/services/webhosting_backup_v1.js +2 -0
  211. package/lib/services/webhosting_backup_v1.js.map +1 -0
  212. package/lib/services/webhosting_control_panel_v1.d.ts +37 -0
  213. package/lib/services/webhosting_control_panel_v1.d.ts.map +1 -0
  214. package/lib/services/webhosting_control_panel_v1.js +2 -0
  215. package/lib/services/webhosting_control_panel_v1.js.map +1 -0
  216. package/lib/services/webhosting_database_v1.d.ts +195 -0
  217. package/lib/services/webhosting_database_v1.d.ts.map +1 -0
  218. package/lib/services/webhosting_database_v1.js +2 -0
  219. package/lib/services/webhosting_database_v1.js.map +1 -0
  220. package/lib/services/webhosting_dedibox_v1.d.ts +232 -0
  221. package/lib/services/webhosting_dedibox_v1.d.ts.map +1 -0
  222. package/lib/services/webhosting_dedibox_v1.js +2 -0
  223. package/lib/services/webhosting_dedibox_v1.js.map +1 -0
  224. package/lib/services/webhosting_dns_v1.d.ts +177 -0
  225. package/lib/services/webhosting_dns_v1.d.ts.map +1 -0
  226. package/lib/services/webhosting_dns_v1.js +2 -0
  227. package/lib/services/webhosting_dns_v1.js.map +1 -0
  228. package/lib/services/webhosting_free_domain_v1.d.ts +51 -0
  229. package/lib/services/webhosting_free_domain_v1.d.ts.map +1 -0
  230. package/lib/services/webhosting_free_domain_v1.js +2 -0
  231. package/lib/services/webhosting_free_domain_v1.js.map +1 -0
  232. package/lib/services/webhosting_ftp_account_v1.d.ts +79 -0
  233. package/lib/services/webhosting_ftp_account_v1.d.ts.map +1 -0
  234. package/lib/services/webhosting_ftp_account_v1.js +2 -0
  235. package/lib/services/webhosting_ftp_account_v1.js.map +1 -0
  236. package/lib/services/webhosting_hosting_v1.d.ts +502 -0
  237. package/lib/services/webhosting_hosting_v1.d.ts.map +1 -0
  238. package/lib/services/webhosting_hosting_v1.js +27 -0
  239. package/lib/services/webhosting_hosting_v1.js.map +1 -0
  240. package/lib/services/webhosting_mail_account_v1.d.ts +84 -0
  241. package/lib/services/webhosting_mail_account_v1.d.ts.map +1 -0
  242. package/lib/services/webhosting_mail_account_v1.js +2 -0
  243. package/lib/services/webhosting_mail_account_v1.js.map +1 -0
  244. package/lib/services/webhosting_offer_v1.d.ts +122 -0
  245. package/lib/services/webhosting_offer_v1.d.ts.map +1 -0
  246. package/lib/services/webhosting_offer_v1.js +2 -0
  247. package/lib/services/webhosting_offer_v1.js.map +1 -0
  248. package/lib/services/webhosting_website_v1.d.ts +75 -0
  249. package/lib/services/webhosting_website_v1.d.ts.map +1 -0
  250. package/lib/services/webhosting_website_v1.js +2 -0
  251. package/lib/services/webhosting_website_v1.js.map +1 -0
  252. package/lib/services.lazy/account_contract_v3.js +1 -0
  253. package/lib/services.lazy/account_iso_code_v3.js +1 -0
  254. package/lib/services.lazy/account_organization_v3.js +1 -0
  255. package/lib/services.lazy/account_project_v3.js +1 -0
  256. package/lib/services.lazy/account_unauthenticated_user_v3.js +3 -0
  257. package/lib/services.lazy/account_unauthenticated_v3.js +1 -0
  258. package/lib/services.lazy/account_user_v3.js +3 -0
  259. package/lib/services.lazy/annotations_v1.js +1 -0
  260. package/lib/services.lazy/baremetal_private_network_v1.js +1 -0
  261. package/lib/services.lazy/baremetal_private_network_v3.js +1 -0
  262. package/lib/services.lazy/baremetal_v1.js +3 -0
  263. package/lib/services.lazy/billing_electronic_billing_v2.js +1 -0
  264. package/lib/services.lazy/billing_v2.js +1 -0
  265. package/lib/services.lazy/block_v1.js +3 -0
  266. package/lib/services.lazy/cockpit_global_v1.js +1 -0
  267. package/lib/services.lazy/cockpit_regional_v1.js +3 -0
  268. package/lib/services.lazy/containers_v1.js +3 -0
  269. package/lib/services.lazy/dedibox_billing_v1.js +1 -0
  270. package/lib/services.lazy/dedibox_ipv6_block_v1.js +1 -0
  271. package/lib/services.lazy/dedibox_rpn_san_v1.js +1 -0
  272. package/lib/services.lazy/dedibox_rpn_v1.js +1 -0
  273. package/lib/services.lazy/dedibox_rpn_v1_v1.js +3 -0
  274. package/lib/services.lazy/dedibox_rpn_v2_v1.js +3 -0
  275. package/lib/services.lazy/dedibox_v1.js +3 -0
  276. package/lib/services.lazy/generative_apis_openai_v1.js +3 -0
  277. package/lib/services.lazy/generative_apis_v1.js +1 -0
  278. package/lib/services.lazy/index.js +3 -0
  279. package/lib/services.lazy/inference_v1.js +3 -0
  280. package/lib/services.lazy/instance_v1.js +3 -0
  281. package/lib/services.lazy/iot_v1.js +3 -0
  282. package/lib/services.lazy/ipam_v1.js +1 -0
  283. package/lib/services.lazy/k8s_v1.js +3 -0
  284. package/lib/services.lazy/lb_zoned_v1.js +3 -0
  285. package/lib/services.lazy/marketplace_console_v2.js +1 -0
  286. package/lib/services.lazy/marketplace_v2.js +1 -0
  287. package/lib/services.lazy/mongodb_v1.js +3 -0
  288. package/lib/services.lazy/partner_v1.js +1 -0
  289. package/lib/services.lazy/rdb_encryption_v1.js +1 -0
  290. package/lib/services.lazy/rdb_v1.js +3 -0
  291. package/lib/services.lazy/redis_v1.js +3 -0
  292. package/lib/services.lazy/registry_v1.js +1 -0
  293. package/lib/services.lazy/reseller_v1.js +1 -0
  294. package/lib/services.lazy/vpc_gw_v2.js +3 -0
  295. package/lib/services.lazy/vpc_private_network_with_nics_v2.js +1 -0
  296. package/lib/services.lazy/vpc_routes_with_nexthop_v2.js +1 -0
  297. package/lib/services.lazy/vpc_v2.js +3 -0
  298. package/lib/services.lazy/webhosting_backup_v1.js +1 -0
  299. package/lib/services.lazy/webhosting_control_panel_v1.js +1 -0
  300. package/lib/services.lazy/webhosting_database_v1.js +1 -0
  301. package/lib/services.lazy/webhosting_dedibox_v1.js +1 -0
  302. package/lib/services.lazy/webhosting_dns_v1.js +1 -0
  303. package/lib/services.lazy/webhosting_free_domain_v1.js +1 -0
  304. package/lib/services.lazy/webhosting_ftp_account_v1.js +1 -0
  305. package/lib/services.lazy/webhosting_hosting_v1.js +3 -0
  306. package/lib/services.lazy/webhosting_mail_account_v1.js +1 -0
  307. package/lib/services.lazy/webhosting_offer_v1.js +1 -0
  308. package/lib/services.lazy/webhosting_website_v1.js +1 -0
  309. package/lib/traits.d.ts +25 -0
  310. package/lib/traits.d.ts.map +1 -0
  311. package/lib/traits.js +1 -0
  312. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts +119 -0
  313. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts.map +1 -0
  314. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js +2 -0
  315. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js.map +1 -0
  316. package/lib/unstable-services/apple_silicon_v1alpha1.d.ts +569 -0
  317. package/lib/unstable-services/apple_silicon_v1alpha1.d.ts.map +1 -0
  318. package/lib/unstable-services/apple_silicon_v1alpha1.js +38 -0
  319. package/lib/unstable-services/apple_silicon_v1alpha1.js.map +1 -0
  320. package/lib/unstable-services/audit_trail_v1alpha1.d.ts +1082 -0
  321. package/lib/unstable-services/audit_trail_v1alpha1.d.ts.map +1 -0
  322. package/lib/unstable-services/audit_trail_v1alpha1.js +47 -0
  323. package/lib/unstable-services/audit_trail_v1alpha1.js.map +1 -0
  324. package/lib/unstable-services/autoscaling_v1alpha2.d.ts +368 -0
  325. package/lib/unstable-services/autoscaling_v1alpha2.d.ts.map +1 -0
  326. package/lib/unstable-services/autoscaling_v1alpha2.js +2 -0
  327. package/lib/unstable-services/autoscaling_v1alpha2.js.map +1 -0
  328. package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts +78 -0
  329. package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts.map +1 -0
  330. package/lib/unstable-services/billing_fin_ops_v2beta1.js +2 -0
  331. package/lib/unstable-services/billing_fin_ops_v2beta1.js.map +1 -0
  332. package/lib/unstable-services/billing_v2beta1.d.ts +411 -0
  333. package/lib/unstable-services/billing_v2beta1.d.ts.map +1 -0
  334. package/lib/unstable-services/billing_v2beta1.js +25 -0
  335. package/lib/unstable-services/billing_v2beta1.js.map +1 -0
  336. package/lib/unstable-services/block_v1alpha1.d.ts +372 -0
  337. package/lib/unstable-services/block_v1alpha1.d.ts.map +1 -0
  338. package/lib/unstable-services/block_v1alpha1.js +27 -0
  339. package/lib/unstable-services/block_v1alpha1.js.map +1 -0
  340. package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts +440 -0
  341. package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts.map +1 -0
  342. package/lib/unstable-services/data_orchestrator_v1alpha2.js +27 -0
  343. package/lib/unstable-services/data_orchestrator_v1alpha2.js.map +1 -0
  344. package/lib/unstable-services/datalab_v1beta1.d.ts +322 -0
  345. package/lib/unstable-services/datalab_v1beta1.d.ts.map +1 -0
  346. package/lib/unstable-services/datalab_v1beta1.js +2 -0
  347. package/lib/unstable-services/datalab_v1beta1.js.map +1 -0
  348. package/lib/unstable-services/dataviz_v1alpha1.d.ts +456 -0
  349. package/lib/unstable-services/dataviz_v1alpha1.d.ts.map +1 -0
  350. package/lib/unstable-services/dataviz_v1alpha1.js +34 -0
  351. package/lib/unstable-services/dataviz_v1alpha1.js.map +1 -0
  352. package/lib/unstable-services/datawarehouse_v1beta1.d.ts +492 -0
  353. package/lib/unstable-services/datawarehouse_v1beta1.d.ts.map +1 -0
  354. package/lib/unstable-services/datawarehouse_v1beta1.js +34 -0
  355. package/lib/unstable-services/datawarehouse_v1beta1.js.map +1 -0
  356. package/lib/unstable-services/domain_registrar_v2beta1.d.ts +1087 -0
  357. package/lib/unstable-services/domain_registrar_v2beta1.d.ts.map +1 -0
  358. package/lib/unstable-services/domain_registrar_v2beta1.js +50 -0
  359. package/lib/unstable-services/domain_registrar_v2beta1.js.map +1 -0
  360. package/lib/unstable-services/domain_suggestion_v2beta1.d.ts +19 -0
  361. package/lib/unstable-services/domain_suggestion_v2beta1.d.ts.map +1 -0
  362. package/lib/unstable-services/domain_suggestion_v2beta1.js +2 -0
  363. package/lib/unstable-services/domain_suggestion_v2beta1.js.map +1 -0
  364. package/lib/unstable-services/domain_v2beta1.d.ts +520 -0
  365. package/lib/unstable-services/domain_v2beta1.d.ts.map +1 -0
  366. package/lib/unstable-services/domain_v2beta1.js +44 -0
  367. package/lib/unstable-services/domain_v2beta1.js.map +1 -0
  368. package/lib/unstable-services/edge_services_v1beta1.d.ts +1153 -0
  369. package/lib/unstable-services/edge_services_v1beta1.d.ts.map +1 -0
  370. package/lib/unstable-services/edge_services_v1beta1.js +81 -0
  371. package/lib/unstable-services/edge_services_v1beta1.js.map +1 -0
  372. package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts +149 -0
  373. package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts.map +1 -0
  374. package/lib/unstable-services/environmental_footprint_user_v1alpha1.js +2 -0
  375. package/lib/unstable-services/environmental_footprint_user_v1alpha1.js.map +1 -0
  376. package/lib/unstable-services/file_v1alpha1.d.ts +350 -0
  377. package/lib/unstable-services/file_v1alpha1.d.ts.map +1 -0
  378. package/lib/unstable-services/file_v1alpha1.js +24 -0
  379. package/lib/unstable-services/file_v1alpha1.js.map +1 -0
  380. package/lib/unstable-services/flexible_ip_v1alpha1.d.ts +241 -0
  381. package/lib/unstable-services/flexible_ip_v1alpha1.d.ts.map +1 -0
  382. package/lib/unstable-services/flexible_ip_v1alpha1.js +2 -0
  383. package/lib/unstable-services/flexible_ip_v1alpha1.js.map +1 -0
  384. package/lib/unstable-services/functions_v1beta1.d.ts +852 -0
  385. package/lib/unstable-services/functions_v1beta1.d.ts.map +1 -0
  386. package/lib/unstable-services/functions_v1beta1.js +49 -0
  387. package/lib/unstable-services/functions_v1beta1.js.map +1 -0
  388. package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts +257 -0
  389. package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts.map +1 -0
  390. package/lib/unstable-services/iam_unauthenticated_v1alpha1.js +2 -0
  391. package/lib/unstable-services/iam_unauthenticated_v1alpha1.js.map +1 -0
  392. package/lib/unstable-services/iam_v1alpha1.d.ts +1506 -0
  393. package/lib/unstable-services/iam_v1alpha1.d.ts.map +1 -0
  394. package/lib/unstable-services/iam_v1alpha1.js +105 -0
  395. package/lib/unstable-services/iam_v1alpha1.js.map +1 -0
  396. package/lib/unstable-services/index.d.ts +44 -0
  397. package/lib/unstable-services/index.d.ts.map +1 -0
  398. package/lib/unstable-services/index.js +43 -0
  399. package/lib/unstable-services/instance_v2alpha1.d.ts +1745 -0
  400. package/lib/unstable-services/instance_v2alpha1.d.ts.map +1 -0
  401. package/lib/unstable-services/instance_v2alpha1.js +81 -0
  402. package/lib/unstable-services/instance_v2alpha1.js.map +1 -0
  403. package/lib/unstable-services/instance_volume_v2alpha1.d.ts +333 -0
  404. package/lib/unstable-services/instance_volume_v2alpha1.d.ts.map +1 -0
  405. package/lib/unstable-services/instance_volume_v2alpha1.js +26 -0
  406. package/lib/unstable-services/instance_volume_v2alpha1.js.map +1 -0
  407. package/lib/unstable-services/interlink_v1beta1.d.ts +636 -0
  408. package/lib/unstable-services/interlink_v1beta1.d.ts.map +1 -0
  409. package/lib/unstable-services/interlink_v1beta1.js +39 -0
  410. package/lib/unstable-services/interlink_v1beta1.js.map +1 -0
  411. package/lib/unstable-services/kafka_v1alpha1.d.ts +451 -0
  412. package/lib/unstable-services/kafka_v1alpha1.d.ts.map +1 -0
  413. package/lib/unstable-services/kafka_v1alpha1.js +27 -0
  414. package/lib/unstable-services/kafka_v1alpha1.js.map +1 -0
  415. package/lib/unstable-services/key_manager_v1alpha1.d.ts +515 -0
  416. package/lib/unstable-services/key_manager_v1alpha1.d.ts.map +1 -0
  417. package/lib/unstable-services/key_manager_v1alpha1.js +36 -0
  418. package/lib/unstable-services/key_manager_v1alpha1.js.map +1 -0
  419. package/lib/unstable-services/mailbox_v1alpha1.d.ts +438 -0
  420. package/lib/unstable-services/mailbox_v1alpha1.d.ts.map +1 -0
  421. package/lib/unstable-services/mailbox_v1alpha1.js +39 -0
  422. package/lib/unstable-services/mailbox_v1alpha1.js.map +1 -0
  423. package/lib/unstable-services/messageq_v1alpha1.d.ts +420 -0
  424. package/lib/unstable-services/messageq_v1alpha1.d.ts.map +1 -0
  425. package/lib/unstable-services/messageq_v1alpha1.js +29 -0
  426. package/lib/unstable-services/messageq_v1alpha1.js.map +1 -0
  427. package/lib/unstable-services/mnq_console_v1beta1.d.ts +32 -0
  428. package/lib/unstable-services/mnq_console_v1beta1.d.ts.map +1 -0
  429. package/lib/unstable-services/mnq_console_v1beta1.js +2 -0
  430. package/lib/unstable-services/mnq_console_v1beta1.js.map +1 -0
  431. package/lib/unstable-services/mnq_nats_v1beta1.d.ts +177 -0
  432. package/lib/unstable-services/mnq_nats_v1beta1.d.ts.map +1 -0
  433. package/lib/unstable-services/mnq_nats_v1beta1.js +2 -0
  434. package/lib/unstable-services/mnq_nats_v1beta1.js.map +1 -0
  435. package/lib/unstable-services/mnq_sns_v1beta1.d.ts +155 -0
  436. package/lib/unstable-services/mnq_sns_v1beta1.d.ts.map +1 -0
  437. package/lib/unstable-services/mnq_sns_v1beta1.js +2 -0
  438. package/lib/unstable-services/mnq_sns_v1beta1.js.map +1 -0
  439. package/lib/unstable-services/mnq_sqs_v1beta1.d.ts +155 -0
  440. package/lib/unstable-services/mnq_sqs_v1beta1.d.ts.map +1 -0
  441. package/lib/unstable-services/mnq_sqs_v1beta1.js +2 -0
  442. package/lib/unstable-services/mnq_sqs_v1beta1.js.map +1 -0
  443. package/lib/unstable-services/mongodb_v1alpha1.d.ts +604 -0
  444. package/lib/unstable-services/mongodb_v1alpha1.d.ts.map +1 -0
  445. package/lib/unstable-services/mongodb_v1alpha1.js +37 -0
  446. package/lib/unstable-services/mongodb_v1alpha1.js.map +1 -0
  447. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts +477 -0
  448. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts.map +1 -0
  449. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js +2 -0
  450. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js.map +1 -0
  451. package/lib/unstable-services/qaas_v1alpha1.d.ts +764 -0
  452. package/lib/unstable-services/qaas_v1alpha1.d.ts.map +1 -0
  453. package/lib/unstable-services/qaas_v1alpha1.js +51 -0
  454. package/lib/unstable-services/qaas_v1alpha1.js.map +1 -0
  455. package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts +794 -0
  456. package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts.map +1 -0
  457. package/lib/unstable-services/s2s_vpn_v1alpha1.js +45 -0
  458. package/lib/unstable-services/s2s_vpn_v1alpha1.js.map +1 -0
  459. package/lib/unstable-services/search_v1alpha1.d.ts +120 -0
  460. package/lib/unstable-services/search_v1alpha1.d.ts.map +1 -0
  461. package/lib/unstable-services/search_v1alpha1.js +2 -0
  462. package/lib/unstable-services/search_v1alpha1.js.map +1 -0
  463. package/lib/unstable-services/searchdb_v1alpha1.d.ts +424 -0
  464. package/lib/unstable-services/searchdb_v1alpha1.d.ts.map +1 -0
  465. package/lib/unstable-services/searchdb_v1alpha1.js +29 -0
  466. package/lib/unstable-services/searchdb_v1alpha1.js.map +1 -0
  467. package/lib/unstable-services/secret_manager_v1beta1.d.ts +407 -0
  468. package/lib/unstable-services/secret_manager_v1beta1.d.ts.map +1 -0
  469. package/lib/unstable-services/secret_manager_v1beta1.js +32 -0
  470. package/lib/unstable-services/secret_manager_v1beta1.js.map +1 -0
  471. package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts +331 -0
  472. package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts.map +1 -0
  473. package/lib/unstable-services/serverless_jobs_v1alpha1.js +28 -0
  474. package/lib/unstable-services/serverless_jobs_v1alpha1.js.map +1 -0
  475. package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts +546 -0
  476. package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts.map +1 -0
  477. package/lib/unstable-services/serverless_jobs_v1alpha2.js +35 -0
  478. package/lib/unstable-services/serverless_jobs_v1alpha2.js.map +1 -0
  479. package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts +239 -0
  480. package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts.map +1 -0
  481. package/lib/unstable-services/serverless_sqldb_v1alpha1.js +2 -0
  482. package/lib/unstable-services/serverless_sqldb_v1alpha1.js.map +1 -0
  483. package/lib/unstable-services/transactional_email_v1alpha1.d.ts +936 -0
  484. package/lib/unstable-services/transactional_email_v1alpha1.d.ts.map +1 -0
  485. package/lib/unstable-services/transactional_email_v1alpha1.js +46 -0
  486. package/lib/unstable-services/transactional_email_v1alpha1.js.map +1 -0
  487. package/lib/unstable-services.lazy/apple_silicon_private_network_v1alpha1.js +1 -0
  488. package/lib/unstable-services.lazy/apple_silicon_v1alpha1.js +3 -0
  489. package/lib/unstable-services.lazy/audit_trail_v1alpha1.js +3 -0
  490. package/lib/unstable-services.lazy/autoscaling_v1alpha2.js +1 -0
  491. package/lib/unstable-services.lazy/billing_fin_ops_v2beta1.js +1 -0
  492. package/lib/unstable-services.lazy/billing_v2beta1.js +3 -0
  493. package/lib/unstable-services.lazy/block_v1alpha1.js +3 -0
  494. package/lib/unstable-services.lazy/data_orchestrator_v1alpha2.js +3 -0
  495. package/lib/unstable-services.lazy/datalab_v1beta1.js +1 -0
  496. package/lib/unstable-services.lazy/dataviz_v1alpha1.js +3 -0
  497. package/lib/unstable-services.lazy/datawarehouse_v1beta1.js +3 -0
  498. package/lib/unstable-services.lazy/domain_registrar_v2beta1.js +3 -0
  499. package/lib/unstable-services.lazy/domain_suggestion_v2beta1.js +1 -0
  500. package/lib/unstable-services.lazy/domain_v2beta1.js +3 -0
  501. package/lib/unstable-services.lazy/edge_services_v1beta1.js +3 -0
  502. package/lib/unstable-services.lazy/environmental_footprint_user_v1alpha1.js +1 -0
  503. package/lib/unstable-services.lazy/file_v1alpha1.js +3 -0
  504. package/lib/unstable-services.lazy/flexible_ip_v1alpha1.js +1 -0
  505. package/lib/unstable-services.lazy/functions_v1beta1.js +3 -0
  506. package/lib/unstable-services.lazy/iam_unauthenticated_v1alpha1.js +1 -0
  507. package/lib/unstable-services.lazy/iam_v1alpha1.js +3 -0
  508. package/lib/unstable-services.lazy/index.js +3 -0
  509. package/lib/unstable-services.lazy/instance_v2alpha1.js +3 -0
  510. package/lib/unstable-services.lazy/instance_volume_v2alpha1.js +3 -0
  511. package/lib/unstable-services.lazy/interlink_v1beta1.js +3 -0
  512. package/lib/unstable-services.lazy/kafka_v1alpha1.js +3 -0
  513. package/lib/unstable-services.lazy/key_manager_v1alpha1.js +3 -0
  514. package/lib/unstable-services.lazy/mailbox_v1alpha1.js +3 -0
  515. package/lib/unstable-services.lazy/messageq_v1alpha1.js +3 -0
  516. package/lib/unstable-services.lazy/mnq_console_v1beta1.js +1 -0
  517. package/lib/unstable-services.lazy/mnq_nats_v1beta1.js +1 -0
  518. package/lib/unstable-services.lazy/mnq_sns_v1beta1.js +1 -0
  519. package/lib/unstable-services.lazy/mnq_sqs_v1beta1.js +1 -0
  520. package/lib/unstable-services.lazy/mongodb_v1alpha1.js +3 -0
  521. package/lib/unstable-services.lazy/product_catalog_public_catalog_v2alpha1.js +1 -0
  522. package/lib/unstable-services.lazy/qaas_v1alpha1.js +3 -0
  523. package/lib/unstable-services.lazy/s2s_vpn_v1alpha1.js +3 -0
  524. package/lib/unstable-services.lazy/search_v1alpha1.js +1 -0
  525. package/lib/unstable-services.lazy/searchdb_v1alpha1.js +3 -0
  526. package/lib/unstable-services.lazy/secret_manager_v1beta1.js +3 -0
  527. package/lib/unstable-services.lazy/serverless_jobs_v1alpha1.js +3 -0
  528. package/lib/unstable-services.lazy/serverless_jobs_v1alpha2.js +3 -0
  529. package/lib/unstable-services.lazy/serverless_sqldb_v1alpha1.js +1 -0
  530. package/lib/unstable-services.lazy/transactional_email_v1alpha1.js +3 -0
  531. package/package.json +89 -2
  532. package/src/credentials.ts +104 -0
  533. package/src/errors.ts +307 -0
  534. package/src/index.ts +52 -0
  535. package/src/pagination.ts +65 -0
  536. package/src/protocol.ts +496 -0
  537. package/src/retry.ts +47 -0
  538. package/src/services/account_contract_v3.ts +441 -0
  539. package/src/services/account_iso_code_v3.ts +165 -0
  540. package/src/services/account_organization_v3.ts +946 -0
  541. package/src/services/account_project_v3.ts +530 -0
  542. package/src/services/account_unauthenticated_user_v3.ts +1445 -0
  543. package/src/services/account_unauthenticated_v3.ts +92 -0
  544. package/src/services/account_user_v3.ts +1657 -0
  545. package/src/services/annotations_v1.ts +897 -0
  546. package/src/services/baremetal_private_network_v1.ts +327 -0
  547. package/src/services/baremetal_private_network_v3.ts +376 -0
  548. package/src/services/baremetal_v1.ts +3072 -0
  549. package/src/services/billing_electronic_billing_v2.ts +323 -0
  550. package/src/services/billing_v2.ts +662 -0
  551. package/src/services/block_v1.ts +1282 -0
  552. package/src/services/cockpit_global_v1.ts +282 -0
  553. package/src/services/cockpit_regional_v1.ts +2177 -0
  554. package/src/services/containers_v1.ts +2110 -0
  555. package/src/services/dedibox_billing_v1.ts +621 -0
  556. package/src/services/dedibox_ipv6_block_v1.ts +468 -0
  557. package/src/services/dedibox_rpn_san_v1.ts +1185 -0
  558. package/src/services/dedibox_rpn_v1.ts +207 -0
  559. package/src/services/dedibox_rpn_v1_v1.ts +1763 -0
  560. package/src/services/dedibox_rpn_v2_v1.ts +1654 -0
  561. package/src/services/dedibox_v1.ts +3765 -0
  562. package/src/services/generative_apis_openai_v1.ts +1692 -0
  563. package/src/services/generative_apis_v1.ts +251 -0
  564. package/src/services/index.ts +57 -0
  565. package/src/services/inference_v1.ts +1353 -0
  566. package/src/services/instance_v1.ts +6611 -0
  567. package/src/services/iot_v1.ts +2419 -0
  568. package/src/services/ipam_v1.ts +716 -0
  569. package/src/services/k8s_v1.ts +3108 -0
  570. package/src/services/lb_zoned_v1.ts +4533 -0
  571. package/src/services/marketplace_console_v2.ts +198 -0
  572. package/src/services/marketplace_v2.ts +625 -0
  573. package/src/services/mongodb_v1.ts +2104 -0
  574. package/src/services/partner_v1.ts +462 -0
  575. package/src/services/rdb_encryption_v1.ts +83 -0
  576. package/src/services/rdb_v1.ts +4211 -0
  577. package/src/services/redis_v1.ts +1918 -0
  578. package/src/services/registry_v1.ts +863 -0
  579. package/src/services/reseller_v1.ts +258 -0
  580. package/src/services/vpc_gw_v2.ts +2130 -0
  581. package/src/services/vpc_private_network_with_nics_v2.ts +311 -0
  582. package/src/services/vpc_routes_with_nexthop_v2.ts +226 -0
  583. package/src/services/vpc_v2.ts +2533 -0
  584. package/src/services/webhosting_backup_v1.ts +578 -0
  585. package/src/services/webhosting_control_panel_v1.ts +130 -0
  586. package/src/services/webhosting_database_v1.ts +682 -0
  587. package/src/services/webhosting_dedibox_v1.ts +480 -0
  588. package/src/services/webhosting_dns_v1.ts +471 -0
  589. package/src/services/webhosting_free_domain_v1.ts +190 -0
  590. package/src/services/webhosting_ftp_account_v1.ts +280 -0
  591. package/src/services/webhosting_hosting_v1.ts +1309 -0
  592. package/src/services/webhosting_mail_account_v1.ts +291 -0
  593. package/src/services/webhosting_offer_v1.ts +289 -0
  594. package/src/services/webhosting_website_v1.ts +274 -0
  595. package/src/traits.ts +63 -0
  596. package/src/unstable-services/apple_silicon_private_network_v1alpha1.ts +395 -0
  597. package/src/unstable-services/apple_silicon_v1alpha1.ts +1685 -0
  598. package/src/unstable-services/audit_trail_v1alpha1.ts +3220 -0
  599. package/src/unstable-services/autoscaling_v1alpha2.ts +1103 -0
  600. package/src/unstable-services/billing_fin_ops_v2beta1.ts +195 -0
  601. package/src/unstable-services/billing_v2beta1.ts +1203 -0
  602. package/src/unstable-services/block_v1alpha1.ts +1239 -0
  603. package/src/unstable-services/data_orchestrator_v1alpha2.ts +1230 -0
  604. package/src/unstable-services/datalab_v1beta1.ts +852 -0
  605. package/src/unstable-services/dataviz_v1alpha1.ts +1478 -0
  606. package/src/unstable-services/datawarehouse_v1beta1.ts +1504 -0
  607. package/src/unstable-services/domain_registrar_v2beta1.ts +2979 -0
  608. package/src/unstable-services/domain_suggestion_v2beta1.ts +86 -0
  609. package/src/unstable-services/domain_v2beta1.ts +1794 -0
  610. package/src/unstable-services/edge_services_v1beta1.ts +3724 -0
  611. package/src/unstable-services/environmental_footprint_user_v1alpha1.ts +429 -0
  612. package/src/unstable-services/file_v1alpha1.ts +1016 -0
  613. package/src/unstable-services/flexible_ip_v1alpha1.ts +804 -0
  614. package/src/unstable-services/functions_v1beta1.ts +2410 -0
  615. package/src/unstable-services/iam_unauthenticated_v1alpha1.ts +863 -0
  616. package/src/unstable-services/iam_v1alpha1.ts +4919 -0
  617. package/src/unstable-services/index.ts +44 -0
  618. package/src/unstable-services/instance_v2alpha1.ts +5377 -0
  619. package/src/unstable-services/instance_volume_v2alpha1.ts +1111 -0
  620. package/src/unstable-services/interlink_v1beta1.ts +1791 -0
  621. package/src/unstable-services/kafka_v1alpha1.ts +1275 -0
  622. package/src/unstable-services/key_manager_v1alpha1.ts +1618 -0
  623. package/src/unstable-services/mailbox_v1alpha1.ts +1561 -0
  624. package/src/unstable-services/messageq_v1alpha1.ts +1266 -0
  625. package/src/unstable-services/mnq_console_v1beta1.ts +111 -0
  626. package/src/unstable-services/mnq_nats_v1beta1.ts +608 -0
  627. package/src/unstable-services/mnq_sns_v1beta1.ts +523 -0
  628. package/src/unstable-services/mnq_sqs_v1beta1.ts +523 -0
  629. package/src/unstable-services/mongodb_v1alpha1.ts +1789 -0
  630. package/src/unstable-services/product_catalog_public_catalog_v2alpha1.ts +1109 -0
  631. package/src/unstable-services/qaas_v1alpha1.ts +2404 -0
  632. package/src/unstable-services/s2s_vpn_v1alpha1.ts +2173 -0
  633. package/src/unstable-services/search_v1alpha1.ts +349 -0
  634. package/src/unstable-services/searchdb_v1alpha1.ts +1273 -0
  635. package/src/unstable-services/secret_manager_v1beta1.ts +1255 -0
  636. package/src/unstable-services/serverless_jobs_v1alpha1.ts +1017 -0
  637. package/src/unstable-services/serverless_jobs_v1alpha2.ts +1516 -0
  638. package/src/unstable-services/serverless_sqldb_v1alpha1.ts +747 -0
  639. package/src/unstable-services/transactional_email_v1alpha1.ts +2495 -0
@@ -0,0 +1,1255 @@
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: "SecretManagerV1beta1",
25
+ labels: "scaleway",
26
+ propagate: "w3c",
27
+ } as const;
28
+
29
+ export type AccessSecretVersionRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
30
+ export interface AccessSecretVersionRequest {
31
+ /** The region you want to target */
32
+ region?: AccessSecretVersionRequestRegion | (string & {}) | undefined;
33
+ /** ID of the secret. (UUID format) */
34
+ secret_id: string;
35
+ /** Version number. The first version of the secret is numbered 1, and all subsequent revisions augment by 1. Value can be either: - a number (the revision number) - "latest" (the latest revision) - "latest_enabled" (the latest enabled revision). */
36
+ revision: string;
37
+ }
38
+ export type SecretType =
39
+ | "unknown_type"
40
+ | "opaque"
41
+ | "certificate"
42
+ | "key_value"
43
+ | "basic_credentials"
44
+ | "database_credentials"
45
+ | "ssh_key";
46
+ export interface AccessSecretVersionResponse {
47
+ /** ID of the secret. (UUID format) */
48
+ secret_id?: string | undefined;
49
+ /** Version number. The first version of the secret is numbered 1, and all subsequent revisions augment by 1. */
50
+ revision?: number | undefined;
51
+ /** The base64-encoded secret payload of the version. */
52
+ data?: string | Redacted.Redacted<string> | undefined;
53
+ /** The CRC32 checksum of the data as a base-10 integer. This field is only available if a CRC32 was supplied during the creation of the version. */
54
+ data_crc32?: number | null | undefined;
55
+ /** Type of the secret. See the `Secret.Type` enum for a description of values. */
56
+ type?: SecretType | undefined;
57
+ }
58
+ export type AccessSecretVersionByPathRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
59
+ export interface AccessSecretVersionByPathRequest {
60
+ /** The region you want to target */
61
+ region?: AccessSecretVersionByPathRequestRegion | (string & {}) | undefined;
62
+ /** Version number. The first version of the secret is numbered 1, and all subsequent revisions augment by 1. Value can be either: - an integer (the revision number) - "latest" (the latest revision) - "latest_enabled" (the latest enabled revision). */
63
+ revision: string;
64
+ /** Secret's path. */
65
+ secret_path: string;
66
+ /** Secret's name. */
67
+ secret_name: string;
68
+ /** ID of the Project to target. (UUID format) */
69
+ project_id: string;
70
+ }
71
+ export type AddSecretOwnerRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
72
+ export type Product = "unknown_product" | "edge_services" | "s2s_vpn";
73
+ export interface AddSecretOwnerRequest {
74
+ /** The region you want to target */
75
+ region?: AddSecretOwnerRequestRegion | (string & {}) | undefined;
76
+ /** ID of the secret. (UUID format) */
77
+ secret_id: string;
78
+ /** ID of the product to add. See `Product` enum for description of values. */
79
+ product?: Product | (string & {}) | undefined;
80
+ }
81
+ export interface AddSecretOwnerResponse {}
82
+ export type CreateSecretRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
83
+ /** List of the secret's tags. */
84
+ export type CreateSecretRequestTagsList = Array<string>;
85
+ export type EphemeralPolicyAction = "unknown_action" | "delete" | "disable";
86
+ export interface EphemeralPolicy {
87
+ /** Time frame, from one second and up to one year, during which the secret's versions are valid. (in seconds) */
88
+ time_to_live?: string | null | undefined;
89
+ /** Returns `true` if the version expires after a single user access. */
90
+ expires_once_accessed?: boolean | null | undefined;
91
+ /** Action to perform when the version of a secret expires. See the `EphemeralPolicy.Action` enum for a description of values. */
92
+ action?: EphemeralPolicyAction | (string & {}) | undefined;
93
+ }
94
+ export interface CreateSecretRequest {
95
+ /** The region you want to target */
96
+ region?: CreateSecretRequestRegion | (string & {}) | undefined;
97
+ /** ID of the Project containing the secret. (UUID format) */
98
+ project_id?: string | undefined;
99
+ /** Name of the secret. */
100
+ name?: string | undefined;
101
+ /** List of the secret's tags. */
102
+ tags?: CreateSecretRequestTagsList | undefined;
103
+ /** Description of the secret. */
104
+ description?: string | null | undefined;
105
+ /** Type of the secret. (Optional.) See the `Secret.Type` enum for a description of values. If not specified, the type is `Opaque`. */
106
+ type?: SecretType | (string & {}) | undefined;
107
+ /** Path of the secret. (Optional.) Location of the secret in the directory structure. If not specified, the path is `/`. */
108
+ path?: string | null | undefined;
109
+ /** Ephemeral policy of the secret. (Optional.) Policy that defines whether/when a secret's versions expire. By default, the policy is applied to all the secret's versions. */
110
+ ephemeral_policy?: EphemeralPolicy | undefined;
111
+ /** Returns `true` if secret protection is applied to a given secret. A protected secret cannot be deleted. */
112
+ protected?: boolean | undefined;
113
+ /** ID of the Scaleway Key Manager key. (Optional.) The Scaleway Key Manager key ID will be used to encrypt and decrypt secret versions. If not specified, Secret Manager will use a Key Manager internal key. (UUID format) */
114
+ key_id?: string | null | undefined;
115
+ }
116
+ export type SecretStatus = "unknown_status" | "ready" | "locked";
117
+ /** List of the secret's tags. */
118
+ export type SecretTagsList = Array<string>;
119
+ /** List of Scaleway resources that can access and manage the secret. */
120
+ export type SecretUsedByList = Array<Product>;
121
+ export interface Secret {
122
+ /** ID of the secret. (UUID format) */
123
+ id?: string | undefined;
124
+ /** The SRN of the secret. */
125
+ srn?: string | undefined;
126
+ /** ID of the Project containing the secret. (UUID format) */
127
+ project_id?: string | undefined;
128
+ /** Name of the secret. */
129
+ name?: string | undefined;
130
+ /** Current status of the secret. * `ready`: the secret can be read, modified and deleted. * `locked`: no action can be performed on the secret. This status can only be applied and removed by Scaleway. */
131
+ status?: SecretStatus | undefined;
132
+ /** Date and time of the secret's creation. (RFC 3339 format) */
133
+ created_at?: string | null | undefined;
134
+ /** Last update of the secret. (RFC 3339 format) */
135
+ updated_at?: string | null | undefined;
136
+ /** List of the secret's tags. */
137
+ tags?: SecretTagsList | undefined;
138
+ /** Number of versions for this secret. */
139
+ version_count?: number | undefined;
140
+ /** Updated description of the secret. */
141
+ description?: string | null | undefined;
142
+ /** Returns `true` for secrets that are managed by another product. */
143
+ managed?: boolean | undefined;
144
+ /** Returns `true` for protected secrets that cannot be deleted. */
145
+ protected?: boolean | undefined;
146
+ /** Type of the secret. See the `Secret.Type` enum for a description of values. */
147
+ type?: SecretType | undefined;
148
+ /** Path of the secret. Location of the secret in the directory structure. */
149
+ path?: string | undefined;
150
+ /** Ephemeral policy of the secret. (Optional.) Policy that defines whether/when a secret's versions expire. By default, the policy is applied to all the secret's versions. */
151
+ ephemeral_policy?: EphemeralPolicy | undefined;
152
+ /** List of Scaleway resources that can access and manage the secret. */
153
+ used_by?: SecretUsedByList | undefined;
154
+ /** Returns the time at which deletion was requested. (RFC 3339 format) */
155
+ deletion_requested_at?: string | null | undefined;
156
+ /** ID of the Scaleway Key Manager key. (Optional.) The Scaleway Key Manager key ID used to encrypt and decrypt secret versions. (UUID format) */
157
+ key_id?: string | null | undefined;
158
+ /** Region of the secret. */
159
+ region?: string | undefined;
160
+ }
161
+ export type CreateSecretVersionRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
162
+ export interface CreateSecretVersionRequest {
163
+ /** The region you want to target */
164
+ region?: CreateSecretVersionRequestRegion | (string & {}) | undefined;
165
+ /** ID of the secret. (UUID format) */
166
+ secret_id: string;
167
+ /** The base64-encoded secret payload of the version. */
168
+ data?: string | Redacted.Redacted<string> | undefined;
169
+ /** Description of the version. */
170
+ description?: string | null | undefined;
171
+ /** Disable the previous secret version. (Optional.) If there is no previous version or if the previous version was already disabled, does nothing. */
172
+ disable_previous?: boolean | null | undefined;
173
+ /** (Optional.) The CRC32 checksum of the data as a base-10 integer. If specified, Secret Manager will verify the integrity of the data received against the given CRC32 checksum. An error is returned if the CRC32 does not match. If, however, the CRC32 matches, it will be stored and returned along with the SecretVersion on future access requests. */
174
+ data_crc32?: number | null | undefined;
175
+ }
176
+ export type SecretVersionStatus =
177
+ | "unknown_status"
178
+ | "enabled"
179
+ | "disabled"
180
+ | "deleted"
181
+ | "scheduled_for_deletion";
182
+ export interface EphemeralProperties {
183
+ /** The version's expiration date. (Optional.) If not specified, the version does not have an expiration date. (RFC 3339 format) */
184
+ expires_at?: string | null | undefined;
185
+ /** Returns `true` if the version expires after a single user access. (Optional.) If not specified, the version can be accessed an unlimited amount of times. */
186
+ expires_once_accessed?: boolean | null | undefined;
187
+ /** Action to perform when the version of a secret expires. See `EphemeralPolicy.Action` enum for a description of values. */
188
+ action?: EphemeralPolicyAction | (string & {}) | undefined;
189
+ }
190
+ export interface SecretVersion {
191
+ /** Version number. The first version of the secret is numbered 1, and all subsequent revisions augment by 1. */
192
+ revision?: number | undefined;
193
+ /** The SRN of the secret version. */
194
+ srn?: string | undefined;
195
+ /** ID of the secret. (UUID format) */
196
+ secret_id?: string | undefined;
197
+ /** Current status of the version. * `unknown_status`: the version is in an invalid state. * `enabled`: the version is accessible. * `disabled`: the version is not accessible but can be enabled. * `scheduled_for_deletion`: the version is scheduled for deletion. It will be deleted in 7 days. * `deleted`: the version is permanently deleted. It is not possible to recover it. */
198
+ status?: SecretVersionStatus | undefined;
199
+ /** Date and time of the version's creation. (RFC 3339 format) */
200
+ created_at?: string | null | undefined;
201
+ /** Last update of the version. (RFC 3339 format) */
202
+ updated_at?: string | null | undefined;
203
+ /** Date and time of the version's deletion. (RFC 3339 format) */
204
+ deleted_at?: string | null | undefined;
205
+ /** Description of the version. */
206
+ description?: string | null | undefined;
207
+ /** Returns `true` if the version is the latest. */
208
+ latest?: boolean | undefined;
209
+ /** Properties of the ephemeral version. Returns the version's expiration date, whether it expires after being accessed once, and the action to perform (disable or delete) once the version expires. */
210
+ ephemeral_properties?: EphemeralProperties | undefined;
211
+ /** Returns the time at which deletion was requested. (RFC 3339 format) */
212
+ deletion_requested_at?: string | null | undefined;
213
+ /** Region of the version. */
214
+ region?: string | undefined;
215
+ }
216
+ export type DeleteSecretRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
217
+ export interface DeleteSecretRequest {
218
+ /** The region you want to target */
219
+ region?: DeleteSecretRequestRegion | (string & {}) | undefined;
220
+ /** ID of the secret. (UUID format) */
221
+ secret_id: string;
222
+ }
223
+ export interface DeleteSecretResponse {}
224
+ export type DeleteSecretVersionRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
225
+ export interface DeleteSecretVersionRequest {
226
+ /** The region you want to target */
227
+ region?: DeleteSecretVersionRequestRegion | (string & {}) | undefined;
228
+ /** ID of the secret. (UUID format) */
229
+ secret_id: string;
230
+ /** Version number. The first version of the secret is numbered 1, and all subsequent revisions augment by 1. Value can be either: - a number (the revision number) - "latest" (the latest revision) - "latest_enabled" (the latest enabled revision). */
231
+ revision: string;
232
+ }
233
+ export interface DeleteSecretVersionResponse {}
234
+ export type DisableSecretVersionRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
235
+ export interface DisableSecretVersionRequest {
236
+ /** The region you want to target */
237
+ region?: DisableSecretVersionRequestRegion | (string & {}) | undefined;
238
+ /** ID of the secret. (UUID format) */
239
+ secret_id: string;
240
+ /** Version number. The first version of the secret is numbered 1, and all subsequent revisions augment by 1. Value can be either: - a number (the revision number) - "latest" (the latest revision) - "latest_enabled" (the latest enabled revision). */
241
+ revision: string;
242
+ }
243
+ export type EnableSecretVersionRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
244
+ export interface EnableSecretVersionRequest {
245
+ /** The region you want to target */
246
+ region?: EnableSecretVersionRequestRegion | (string & {}) | undefined;
247
+ /** ID of the secret. (UUID format) */
248
+ secret_id: string;
249
+ /** Version number. The first version of the secret is numbered 1, and all subsequent revisions augment by 1. Value can be either: - a number (the revision number) - "latest" (the latest revision) - "latest_enabled" (the latest enabled revision). */
250
+ revision: string;
251
+ }
252
+ export type GetSecretRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
253
+ export interface GetSecretRequest {
254
+ /** The region you want to target */
255
+ region?: GetSecretRequestRegion | (string & {}) | undefined;
256
+ /** ID of the secret. (UUID format) */
257
+ secret_id: string;
258
+ }
259
+ export type GetSecretVersionRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
260
+ export interface GetSecretVersionRequest {
261
+ /** The region you want to target */
262
+ region?: GetSecretVersionRequestRegion | (string & {}) | undefined;
263
+ /** ID of the secret. (UUID format) */
264
+ secret_id: string;
265
+ /** Version number. The first version of the secret is numbered 1, and all subsequent revisions augment by 1. Value can be either: - a number (the revision number) - "latest" (the latest revision) - "latest_enabled" (the latest enabled revision). */
266
+ revision: string;
267
+ }
268
+ export type ListSecretsRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
269
+ export type ListSecretsRequestOrderBy =
270
+ | "name_asc"
271
+ | "name_desc"
272
+ | "created_at_asc"
273
+ | "created_at_desc"
274
+ | "updated_at_asc"
275
+ | "updated_at_desc";
276
+ export type ListSecretsRequestTagsList = Array<string>;
277
+ export interface ListSecretsRequest {
278
+ /** The region you want to target */
279
+ region?: ListSecretsRequestRegion | (string & {}) | undefined;
280
+ /** Filter by Organization ID (optional). (UUID format) */
281
+ organization_id?: string | undefined;
282
+ /** Filter by Project ID (optional). (UUID format) */
283
+ project_id?: string | undefined;
284
+ order_by?: ListSecretsRequestOrderBy | (string & {}) | undefined;
285
+ page?: number | undefined;
286
+ page_size?: number | undefined;
287
+ /** List of tags to filter on (optional). */
288
+ tags?: ListSecretsRequestTagsList | undefined;
289
+ /** Filter by secret name (optional). */
290
+ name?: string | undefined;
291
+ /** Filter by exact path (optional). */
292
+ path?: string | undefined;
293
+ /** Filter by ephemeral / not ephemeral (optional). */
294
+ ephemeral?: boolean | undefined;
295
+ /** Filter by secret type (optional). */
296
+ type?: SecretType | (string & {}) | undefined;
297
+ /** Filter by whether the secret was scheduled for deletion / not scheduled for deletion. By default, it will display only not scheduled for deletion secrets. */
298
+ scheduled_for_deletion: boolean;
299
+ }
300
+ /** Single page of secrets matching the requested criteria. */
301
+ export type ListSecretsResponseSecretsList = Array<Secret>;
302
+ export interface ListSecretsResponse {
303
+ /** Single page of secrets matching the requested criteria. */
304
+ secrets: ListSecretsResponseSecretsList;
305
+ /** Count of all secrets matching the requested criteria. */
306
+ total_count?: number | undefined;
307
+ }
308
+ export type ListSecretVersionsRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
309
+ export type ListSecretVersionsRequestStatusList = Array<SecretVersionStatus | (string & {})>;
310
+ export interface ListSecretVersionsRequest {
311
+ /** The region you want to target */
312
+ region?: ListSecretVersionsRequestRegion | (string & {}) | undefined;
313
+ /** ID of the secret. (UUID format) */
314
+ secret_id: string;
315
+ page?: number | undefined;
316
+ page_size?: number | undefined;
317
+ /** Filter results by status. */
318
+ status?: ListSecretVersionsRequestStatusList | undefined;
319
+ }
320
+ /** Single page of versions. */
321
+ export type ListSecretVersionsResponseVersionsList = Array<SecretVersion>;
322
+ export interface ListSecretVersionsResponse {
323
+ /** Single page of versions. */
324
+ versions: ListSecretVersionsResponseVersionsList;
325
+ /** Number of versions. */
326
+ total_count?: number | undefined;
327
+ }
328
+ export type ProtectSecretRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
329
+ export interface ProtectSecretRequest {
330
+ /** The region you want to target */
331
+ region?: ProtectSecretRequestRegion | (string & {}) | undefined;
332
+ /** ID of the secret to enable secret protection for. (UUID format) */
333
+ secret_id: string;
334
+ }
335
+ export type RestoreSecretRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
336
+ export interface RestoreSecretRequest {
337
+ /** The region you want to target */
338
+ region?: RestoreSecretRequestRegion | (string & {}) | undefined;
339
+ /** (UUID format) */
340
+ secret_id: string;
341
+ }
342
+ export type RestoreSecretVersionRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
343
+ export interface RestoreSecretVersionRequest {
344
+ /** The region you want to target */
345
+ region?: RestoreSecretVersionRequestRegion | (string & {}) | undefined;
346
+ /** (UUID format) */
347
+ secret_id: string;
348
+ revision: string;
349
+ }
350
+ export type UnprotectSecretRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
351
+ export interface UnprotectSecretRequest {
352
+ /** The region you want to target */
353
+ region?: UnprotectSecretRequestRegion | (string & {}) | undefined;
354
+ /** ID of the secret to disable secret protection for. (UUID format) */
355
+ secret_id: string;
356
+ }
357
+ export type UpdateSecretRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
358
+ /** Secret's updated list of tags (optional). */
359
+ export type UpdateSecretRequestTagsList = Array<unknown>;
360
+ export interface UpdateSecretRequest {
361
+ /** The region you want to target */
362
+ region?: UpdateSecretRequestRegion | (string & {}) | undefined;
363
+ /** ID of the secret. (UUID format) */
364
+ secret_id: string;
365
+ /** Secret's updated name (optional). */
366
+ name?: string | null | undefined;
367
+ /** Secret's updated list of tags (optional). */
368
+ tags?: UpdateSecretRequestTagsList | null | undefined;
369
+ /** Description of the secret. */
370
+ description?: string | null | undefined;
371
+ /** Path of the folder. (Optional.) Location of the folder in the directory structure. If not specified, the path is `/`. */
372
+ path?: string | null | undefined;
373
+ /** Ephemeral policy of the secret. (Optional.) Policy that defines whether/when a secret's versions expire. */
374
+ ephemeral_policy?: EphemeralPolicy | undefined;
375
+ }
376
+ export type UpdateSecretVersionRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
377
+ export interface UpdateSecretVersionRequest {
378
+ /** The region you want to target */
379
+ region?: UpdateSecretVersionRequestRegion | (string & {}) | undefined;
380
+ /** ID of the secret. (UUID format) */
381
+ secret_id: string;
382
+ /** Version number. The first version of the secret is numbered 1, and all subsequent revisions augment by 1. Value can be either: - a number (the revision number) - "latest" (the latest revision) - "latest_enabled" (the latest enabled revision). */
383
+ revision: string;
384
+ /** Description of the version. */
385
+ description?: string | null | undefined;
386
+ /** Ephemeral properties of the version. (Optional.) Properties that defines the version's expiration date, whether it expires after being accessed once, and the action to perform (disable or delete) once the version expires. */
387
+ ephemeral_properties?: EphemeralProperties | undefined;
388
+ }
389
+ export type AccessSecretVersionError = ScalewayOpError;
390
+ /** Access a secret's version using the secret's ID Access sensitive data in a secret's version specified by the `region`, `secret_id` and `revision` parameters. */
391
+ export const accessSecretVersion: API.OperationMethod<
392
+ AccessSecretVersionRequest,
393
+ AccessSecretVersionResponse,
394
+ AccessSecretVersionError,
395
+ ScalewayOpContext
396
+ > = /*@__PURE__*/ API.make(() => ({
397
+ input: __S(0, __c0, 0) as any as S.Schema<AccessSecretVersionRequest>,
398
+ output: __S(4, __c1, 0) as any as S.Schema<AccessSecretVersionResponse>,
399
+ errors: [],
400
+ serviceErrors: ScalewayServiceErrors,
401
+ protocol: ScalewayProtocol,
402
+ retry: Retry.Retry,
403
+ telemetry: TELEMETRY,
404
+ span: "AccessSecretVersion",
405
+ }));
406
+
407
+ export type AccessSecretVersionByPathError = ScalewayOpError;
408
+ /** Access a secret's version using the secret's name and path Access sensitive data in a secret's version specified by the `region`, `secret_name`, `secret_path` and `revision` parameters. */
409
+ export const accessSecretVersionByPath: API.OperationMethod<
410
+ AccessSecretVersionByPathRequest,
411
+ AccessSecretVersionResponse,
412
+ AccessSecretVersionByPathError,
413
+ ScalewayOpContext
414
+ > = /*@__PURE__*/ API.make(() => ({
415
+ input: __S(8, __c2, 0) as any as S.Schema<AccessSecretVersionByPathRequest>,
416
+ output: __S(4, __c1, 0) as any as S.Schema<AccessSecretVersionResponse>,
417
+ errors: [],
418
+ serviceErrors: ScalewayServiceErrors,
419
+ protocol: ScalewayProtocol,
420
+ retry: Retry.Retry,
421
+ telemetry: TELEMETRY,
422
+ span: "AccessSecretVersionByPath",
423
+ }));
424
+
425
+ export type AddSecretOwnerError = ScalewayOpError;
426
+ /** Allow a product to use the secret */
427
+ export const addSecretOwner: API.OperationMethod<
428
+ AddSecretOwnerRequest,
429
+ AddSecretOwnerResponse,
430
+ AddSecretOwnerError,
431
+ ScalewayOpContext
432
+ > = /*@__PURE__*/ API.make(() => ({
433
+ input: __S(48, __c12, 0) as any as S.Schema<AddSecretOwnerRequest>,
434
+ output: __S(52, __c13, 0) as any as S.Schema<AddSecretOwnerResponse>,
435
+ errors: [],
436
+ serviceErrors: ScalewayServiceErrors,
437
+ protocol: ScalewayProtocol,
438
+ retry: Retry.Retry,
439
+ telemetry: TELEMETRY,
440
+ span: "AddSecretOwner",
441
+ }));
442
+
443
+ export type CreateSecretError = ScalewayOpError;
444
+ /** Create a secret Create a secret in a given region specified by the `region` parameter. */
445
+ export const createSecret: API.OperationMethod<
446
+ CreateSecretRequest,
447
+ Secret,
448
+ CreateSecretError,
449
+ ScalewayOpContext
450
+ > = /*@__PURE__*/ API.make(() => ({
451
+ input: __S(56, __c14, 0) as any as S.Schema<CreateSecretRequest>,
452
+ output: __S(66, __c16, 2) as any as S.Schema<Secret>,
453
+ errors: [],
454
+ serviceErrors: ScalewayServiceErrors,
455
+ protocol: ScalewayProtocol,
456
+ retry: Retry.Retry,
457
+ telemetry: TELEMETRY,
458
+ span: "CreateSecret",
459
+ }));
460
+
461
+ export type CreateSecretVersionError = ScalewayOpError;
462
+ /** Create a version Create a version of a given secret specified by the `region` and `secret_id` parameters. */
463
+ export const createSecretVersion: API.OperationMethod<
464
+ CreateSecretVersionRequest,
465
+ SecretVersion,
466
+ CreateSecretVersionError,
467
+ ScalewayOpContext
468
+ > = /*@__PURE__*/ API.make(() => ({
469
+ input: __S(68, __c17, 0) as any as S.Schema<CreateSecretVersionRequest>,
470
+ output: __S(73, __c18, 1) as any as S.Schema<SecretVersion>,
471
+ errors: [],
472
+ serviceErrors: ScalewayServiceErrors,
473
+ protocol: ScalewayProtocol,
474
+ retry: Retry.Retry,
475
+ telemetry: TELEMETRY,
476
+ span: "CreateSecretVersion",
477
+ }));
478
+
479
+ export type DeleteSecretError = ScalewayOpError;
480
+ /** Delete a secret Delete a given secret specified by the `region` and `secret_id` parameters. */
481
+ export const deleteSecret: API.OperationMethod<
482
+ DeleteSecretRequest,
483
+ DeleteSecretResponse,
484
+ DeleteSecretError,
485
+ ScalewayOpContext
486
+ > = /*@__PURE__*/ API.make(() => ({
487
+ input: __S(76, __c19, 0) as any as S.Schema<DeleteSecretRequest>,
488
+ output: __S(52, __c13, 0) as any as S.Schema<DeleteSecretResponse>,
489
+ errors: [],
490
+ serviceErrors: ScalewayServiceErrors,
491
+ protocol: ScalewayProtocol,
492
+ retry: Retry.Retry,
493
+ telemetry: TELEMETRY,
494
+ span: "DeleteSecret",
495
+ }));
496
+
497
+ export type DeleteSecretVersionError = ScalewayOpError;
498
+ /** Delete a version Delete a secret's version and the sensitive data contained in it. Deleting a version is permanent and cannot be undone. */
499
+ export const deleteSecretVersion: API.OperationMethod<
500
+ DeleteSecretVersionRequest,
501
+ DeleteSecretVersionResponse,
502
+ DeleteSecretVersionError,
503
+ ScalewayOpContext
504
+ > = /*@__PURE__*/ API.make(() => ({
505
+ input: __S(80, __c20, 0) as any as S.Schema<DeleteSecretVersionRequest>,
506
+ output: __S(52, __c13, 0) as any as S.Schema<DeleteSecretVersionResponse>,
507
+ errors: [],
508
+ serviceErrors: ScalewayServiceErrors,
509
+ protocol: ScalewayProtocol,
510
+ retry: Retry.Retry,
511
+ telemetry: TELEMETRY,
512
+ span: "DeleteSecretVersion",
513
+ }));
514
+
515
+ export type DisableSecretVersionError = ScalewayOpError;
516
+ /** Disable a version Make a specific version inaccessible. You must specify the `region`, `secret_id` and `revision` parameters. */
517
+ export const disableSecretVersion: API.OperationMethod<
518
+ DisableSecretVersionRequest,
519
+ SecretVersion,
520
+ DisableSecretVersionError,
521
+ ScalewayOpContext
522
+ > = /*@__PURE__*/ API.make(() => ({
523
+ input: __S(84, __c21, 0) as any as S.Schema<DisableSecretVersionRequest>,
524
+ output: __S(73, __c18, 1) as any as S.Schema<SecretVersion>,
525
+ errors: [],
526
+ serviceErrors: ScalewayServiceErrors,
527
+ protocol: ScalewayProtocol,
528
+ retry: Retry.Retry,
529
+ telemetry: TELEMETRY,
530
+ span: "DisableSecretVersion",
531
+ }));
532
+
533
+ export type EnableSecretVersionError = ScalewayOpError;
534
+ /** Enable a version Make a specific version accessible. You must specify the `region`, `secret_id` and `revision` parameters. */
535
+ export const enableSecretVersion: API.OperationMethod<
536
+ EnableSecretVersionRequest,
537
+ SecretVersion,
538
+ EnableSecretVersionError,
539
+ ScalewayOpContext
540
+ > = /*@__PURE__*/ API.make(() => ({
541
+ input: __S(88, __c22, 0) as any as S.Schema<EnableSecretVersionRequest>,
542
+ output: __S(73, __c18, 1) as any as S.Schema<SecretVersion>,
543
+ errors: [],
544
+ serviceErrors: ScalewayServiceErrors,
545
+ protocol: ScalewayProtocol,
546
+ retry: Retry.Retry,
547
+ telemetry: TELEMETRY,
548
+ span: "EnableSecretVersion",
549
+ }));
550
+
551
+ export type GetSecretError = ScalewayOpError;
552
+ /** Get metadata using the secret's ID Retrieve the metadata of a secret specified by the `region` and `secret_id` parameters. */
553
+ export const getSecret: API.OperationMethod<
554
+ GetSecretRequest,
555
+ Secret,
556
+ GetSecretError,
557
+ ScalewayOpContext
558
+ > = /*@__PURE__*/ API.make(() => ({
559
+ input: __S(92, __c23, 0) as any as S.Schema<GetSecretRequest>,
560
+ output: __S(66, __c16, 2) as any as S.Schema<Secret>,
561
+ errors: [],
562
+ serviceErrors: ScalewayServiceErrors,
563
+ protocol: ScalewayProtocol,
564
+ retry: Retry.Retry,
565
+ telemetry: TELEMETRY,
566
+ span: "GetSecret",
567
+ }));
568
+
569
+ export type GetSecretVersionError = ScalewayOpError;
570
+ /** Get metadata of a secret's version using the secret's ID Retrieve the metadata of a secret's given version specified by the `region`, `secret_id` and `revision` parameters. */
571
+ export const getSecretVersion: API.OperationMethod<
572
+ GetSecretVersionRequest,
573
+ SecretVersion,
574
+ GetSecretVersionError,
575
+ ScalewayOpContext
576
+ > = /*@__PURE__*/ API.make(() => ({
577
+ input: __S(12, __c3, 0) as any as S.Schema<GetSecretVersionRequest>,
578
+ output: __S(73, __c18, 1) as any as S.Schema<SecretVersion>,
579
+ errors: [],
580
+ serviceErrors: ScalewayServiceErrors,
581
+ protocol: ScalewayProtocol,
582
+ retry: Retry.Retry,
583
+ telemetry: TELEMETRY,
584
+ span: "GetSecretVersion",
585
+ }));
586
+
587
+ export type ListSecretsError = ScalewayOpError;
588
+ /** List secrets Retrieve the list of secrets created within an Organization and/or 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. */
589
+ export const listSecrets: API.PaginatedOperationMethod<
590
+ ListSecretsRequest,
591
+ ListSecretsResponse,
592
+ ListSecretsError,
593
+ ScalewayOpContext,
594
+ Secret
595
+ > = /*@__PURE__*/ API.makePaginated(
596
+ () => ({
597
+ input: __S(16, __c4, 0) as any as S.Schema<ListSecretsRequest>,
598
+ output: __S(18, __c4, 2) as any as S.Schema<ListSecretsResponse>,
599
+ errors: [],
600
+ serviceErrors: ScalewayServiceErrors,
601
+ protocol: ScalewayProtocol,
602
+ retry: Retry.Retry,
603
+ telemetry: TELEMETRY,
604
+ span: "ListSecrets",
605
+ pagination: {
606
+ mode: "page",
607
+ inputToken: "page",
608
+ outputToken: "total_count",
609
+ items: "secrets",
610
+ pageSize: "page_size",
611
+ } as const,
612
+ }),
613
+ paginateByTotalCount,
614
+ ) as any;
615
+
616
+ export type ListSecretVersionsError = ScalewayOpError;
617
+ /** List versions of a secret using the secret's ID Retrieve the list of a given secret's versions specified by the `secret_id` and `region` parameters. */
618
+ export const listSecretVersions: API.PaginatedOperationMethod<
619
+ ListSecretVersionsRequest,
620
+ ListSecretVersionsResponse,
621
+ ListSecretVersionsError,
622
+ ScalewayOpContext,
623
+ SecretVersion
624
+ > = /*@__PURE__*/ API.makePaginated(
625
+ () => ({
626
+ input: __S(20, __c5, 0) as any as S.Schema<ListSecretVersionsRequest>,
627
+ output: __S(22, __c5, 2) as any as S.Schema<ListSecretVersionsResponse>,
628
+ errors: [],
629
+ serviceErrors: ScalewayServiceErrors,
630
+ protocol: ScalewayProtocol,
631
+ retry: Retry.Retry,
632
+ telemetry: TELEMETRY,
633
+ span: "ListSecretVersions",
634
+ pagination: {
635
+ mode: "page",
636
+ inputToken: "page",
637
+ outputToken: "total_count",
638
+ items: "versions",
639
+ pageSize: "page_size",
640
+ } as const,
641
+ }),
642
+ paginateByTotalCount,
643
+ ) as any;
644
+
645
+ export type ProtectSecretError = ScalewayOpError;
646
+ /** Enable secret protection Enable secret protection for a given secret specified by the `secret_id` parameter. Enabling secret protection means that your secret can be read and modified, but it cannot be deleted. */
647
+ export const protectSecret: API.OperationMethod<
648
+ ProtectSecretRequest,
649
+ Secret,
650
+ ProtectSecretError,
651
+ ScalewayOpContext
652
+ > = /*@__PURE__*/ API.make(() => ({
653
+ input: __S(24, __c6, 0) as any as S.Schema<ProtectSecretRequest>,
654
+ output: __S(66, __c16, 2) as any as S.Schema<Secret>,
655
+ errors: [],
656
+ serviceErrors: ScalewayServiceErrors,
657
+ protocol: ScalewayProtocol,
658
+ retry: Retry.Retry,
659
+ telemetry: TELEMETRY,
660
+ span: "ProtectSecret",
661
+ }));
662
+
663
+ export type RestoreSecretError = ScalewayOpError;
664
+ /** Restore a secret Restore a secret and all its versions scheduled for deletion specified by the `region` and `secret_id` parameters. */
665
+ export const restoreSecret: API.OperationMethod<
666
+ RestoreSecretRequest,
667
+ Secret,
668
+ RestoreSecretError,
669
+ ScalewayOpContext
670
+ > = /*@__PURE__*/ API.make(() => ({
671
+ input: __S(28, __c7, 0) as any as S.Schema<RestoreSecretRequest>,
672
+ output: __S(66, __c16, 2) as any as S.Schema<Secret>,
673
+ errors: [],
674
+ serviceErrors: ScalewayServiceErrors,
675
+ protocol: ScalewayProtocol,
676
+ retry: Retry.Retry,
677
+ telemetry: TELEMETRY,
678
+ span: "RestoreSecret",
679
+ }));
680
+
681
+ export type RestoreSecretVersionError = ScalewayOpError;
682
+ /** Restore a version Restore a secret's version specified by the `region`, `secret_id` and `revision` parameters. */
683
+ export const restoreSecretVersion: API.OperationMethod<
684
+ RestoreSecretVersionRequest,
685
+ SecretVersion,
686
+ RestoreSecretVersionError,
687
+ ScalewayOpContext
688
+ > = /*@__PURE__*/ API.make(() => ({
689
+ input: __S(32, __c8, 0) as any as S.Schema<RestoreSecretVersionRequest>,
690
+ output: __S(73, __c18, 1) as any as S.Schema<SecretVersion>,
691
+ errors: [],
692
+ serviceErrors: ScalewayServiceErrors,
693
+ protocol: ScalewayProtocol,
694
+ retry: Retry.Retry,
695
+ telemetry: TELEMETRY,
696
+ span: "RestoreSecretVersion",
697
+ }));
698
+
699
+ export type UnprotectSecretError = ScalewayOpError;
700
+ /** Disable secret protection Disable secret protection for a given secret specified by the `secret_id` parameter. Disabling secret protection means that your secret can be read, modified and deleted. */
701
+ export const unprotectSecret: API.OperationMethod<
702
+ UnprotectSecretRequest,
703
+ Secret,
704
+ UnprotectSecretError,
705
+ ScalewayOpContext
706
+ > = /*@__PURE__*/ API.make(() => ({
707
+ input: __S(36, __c9, 0) as any as S.Schema<UnprotectSecretRequest>,
708
+ output: __S(66, __c16, 2) as any as S.Schema<Secret>,
709
+ errors: [],
710
+ serviceErrors: ScalewayServiceErrors,
711
+ protocol: ScalewayProtocol,
712
+ retry: Retry.Retry,
713
+ telemetry: TELEMETRY,
714
+ span: "UnprotectSecret",
715
+ }));
716
+
717
+ export type UpdateSecretError = ScalewayOpError;
718
+ /** Update metadata of a secret Edit a secret's metadata such as name, tag(s), description and ephemeral policy. The secret to update is specified by the `secret_id` and `region` parameters. */
719
+ export const updateSecret: API.OperationMethod<
720
+ UpdateSecretRequest,
721
+ Secret,
722
+ UpdateSecretError,
723
+ ScalewayOpContext
724
+ > = /*@__PURE__*/ API.make(() => ({
725
+ input: __S(41, __c10, 1) as any as S.Schema<UpdateSecretRequest>,
726
+ output: __S(66, __c16, 2) as any as S.Schema<Secret>,
727
+ errors: [],
728
+ serviceErrors: ScalewayServiceErrors,
729
+ protocol: ScalewayProtocol,
730
+ retry: Retry.Retry,
731
+ telemetry: TELEMETRY,
732
+ span: "UpdateSecret",
733
+ }));
734
+
735
+ export type UpdateSecretVersionError = ScalewayOpError;
736
+ /** Update metadata of a version Edit the metadata of a secret's given version, specified by the `region`, `secret_id` and `revision` parameters. */
737
+ export const updateSecretVersion: API.OperationMethod<
738
+ UpdateSecretVersionRequest,
739
+ SecretVersion,
740
+ UpdateSecretVersionError,
741
+ ScalewayOpContext
742
+ > = /*@__PURE__*/ API.make(() => ({
743
+ input: __S(44, __c11, 0) as any as S.Schema<UpdateSecretVersionRequest>,
744
+ output: __S(73, __c18, 1) as any as S.Schema<SecretVersion>,
745
+ errors: [],
746
+ serviceErrors: ScalewayServiceErrors,
747
+ protocol: ScalewayProtocol,
748
+ retry: Retry.Retry,
749
+ telemetry: TELEMETRY,
750
+ span: "UpdateSecretVersion",
751
+ }));
752
+
753
+ // Schema builders: each runs one schema initializer, on that schema's first use.
754
+ function __c0(j: number): any {
755
+ switch (j) {
756
+ case 0:
757
+ return S.suspend(() =>
758
+ S.Struct({
759
+ region: S.optional(S.String.pipe(T.Label())),
760
+ secret_id: S.String.pipe(T.Label()),
761
+ revision: S.String.pipe(T.Label()),
762
+ }).pipe(
763
+ T.Http({
764
+ method: "GET",
765
+ uri: "/secret-manager/v1beta1/regions/{region}/secrets/{secret_id}/versions/{revision}/access",
766
+ code: 200,
767
+ baseUrl: "https://api.scaleway.com",
768
+ }),
769
+ ),
770
+ ).annotate({ identifier: "AccessSecretVersionRequest" });
771
+ }
772
+ }
773
+ function __c1(j: number): any {
774
+ switch (j) {
775
+ case 0:
776
+ return S.suspend(() =>
777
+ S.Struct({
778
+ secret_id: S.optional(S.String),
779
+ revision: S.optional(S.Number),
780
+ data: S.optional(S.String.pipe(T.SensitiveValue({}))),
781
+ data_crc32: S.optional(S.NullOr(S.Number)),
782
+ type: S.optional(S.String),
783
+ }),
784
+ ).annotate({ identifier: "AccessSecretVersionResponse" });
785
+ }
786
+ }
787
+ function __c2(j: number): any {
788
+ switch (j) {
789
+ case 0:
790
+ return S.suspend(() =>
791
+ S.Struct({
792
+ region: S.optional(S.String.pipe(T.Label())),
793
+ revision: S.String.pipe(T.Label()),
794
+ secret_path: S.String.pipe(T.Query()),
795
+ secret_name: S.String.pipe(T.Query()),
796
+ project_id: S.String.pipe(T.Query()),
797
+ }).pipe(
798
+ T.Http({
799
+ method: "GET",
800
+ uri: "/secret-manager/v1beta1/regions/{region}/secrets-by-path/versions/{revision}/access",
801
+ code: 200,
802
+ baseUrl: "https://api.scaleway.com",
803
+ }),
804
+ ),
805
+ ).annotate({ identifier: "AccessSecretVersionByPathRequest" });
806
+ }
807
+ }
808
+ function __c3(j: number): any {
809
+ switch (j) {
810
+ case 0:
811
+ return S.suspend(() =>
812
+ S.Struct({
813
+ region: S.optional(S.String.pipe(T.Label())),
814
+ secret_id: S.String.pipe(T.Label()),
815
+ revision: S.String.pipe(T.Label()),
816
+ }).pipe(
817
+ T.Http({
818
+ method: "GET",
819
+ uri: "/secret-manager/v1beta1/regions/{region}/secrets/{secret_id}/versions/{revision}",
820
+ code: 200,
821
+ baseUrl: "https://api.scaleway.com",
822
+ }),
823
+ ),
824
+ ).annotate({ identifier: "GetSecretVersionRequest" });
825
+ }
826
+ }
827
+ function __c4(j: number): any {
828
+ switch (j) {
829
+ case 0:
830
+ return S.suspend(() =>
831
+ S.Struct({
832
+ region: S.optional(S.String.pipe(T.Label())),
833
+ organization_id: S.optional(S.String.pipe(T.Query())),
834
+ project_id: S.optional(S.String.pipe(T.Query())),
835
+ order_by: S.optional(S.String.pipe(T.Query())),
836
+ page: S.optional(S.Number.pipe(T.Query())),
837
+ page_size: S.optional(S.Number.pipe(T.Query())),
838
+ tags: S.optional(__S(64, __c16, 0).pipe(T.Query())),
839
+ name: S.optional(S.String.pipe(T.Query())),
840
+ path: S.optional(S.String.pipe(T.Query())),
841
+ ephemeral: S.optional(S.Boolean.pipe(T.Query())),
842
+ type: S.optional(S.String.pipe(T.Query())),
843
+ scheduled_for_deletion: S.Boolean.pipe(T.Query()),
844
+ }).pipe(
845
+ T.Http({
846
+ method: "GET",
847
+ uri: "/secret-manager/v1beta1/regions/{region}/secrets",
848
+ code: 200,
849
+ baseUrl: "https://api.scaleway.com",
850
+ }),
851
+ ),
852
+ ).annotate({ identifier: "ListSecretsRequest" });
853
+ case 1:
854
+ return S.Array(__S(66, __c16, 2));
855
+ case 2:
856
+ return S.suspend(() =>
857
+ S.Struct({
858
+ secrets: __S(17, __c4, 1),
859
+ total_count: S.optional(S.Number),
860
+ }),
861
+ ).annotate({ identifier: "ListSecretsResponse" });
862
+ }
863
+ }
864
+ function __c5(j: number): any {
865
+ switch (j) {
866
+ case 0:
867
+ return S.suspend(() =>
868
+ S.Struct({
869
+ region: S.optional(S.String.pipe(T.Label())),
870
+ secret_id: S.String.pipe(T.Label()),
871
+ page: S.optional(S.Number.pipe(T.Query())),
872
+ page_size: S.optional(S.Number.pipe(T.Query())),
873
+ status: S.optional(__S(60, __c15, 0).pipe(T.Query())),
874
+ }).pipe(
875
+ T.Http({
876
+ method: "GET",
877
+ uri: "/secret-manager/v1beta1/regions/{region}/secrets/{secret_id}/versions",
878
+ code: 200,
879
+ baseUrl: "https://api.scaleway.com",
880
+ }),
881
+ ),
882
+ ).annotate({ identifier: "ListSecretVersionsRequest" });
883
+ case 1:
884
+ return S.Array(__S(73, __c18, 1));
885
+ case 2:
886
+ return S.suspend(() =>
887
+ S.Struct({
888
+ versions: __S(21, __c5, 1),
889
+ total_count: S.optional(S.Number),
890
+ }),
891
+ ).annotate({ identifier: "ListSecretVersionsResponse" });
892
+ }
893
+ }
894
+ function __c6(j: number): any {
895
+ switch (j) {
896
+ case 0:
897
+ return S.suspend(() =>
898
+ S.Struct({
899
+ region: S.optional(S.String.pipe(T.Label())),
900
+ secret_id: S.String.pipe(T.Label()),
901
+ }).pipe(
902
+ T.Http({
903
+ method: "POST",
904
+ uri: "/secret-manager/v1beta1/regions/{region}/secrets/{secret_id}/protect",
905
+ code: 200,
906
+ baseUrl: "https://api.scaleway.com",
907
+ }),
908
+ ),
909
+ ).annotate({ identifier: "ProtectSecretRequest" });
910
+ }
911
+ }
912
+ function __c7(j: number): any {
913
+ switch (j) {
914
+ case 0:
915
+ return S.suspend(() =>
916
+ S.Struct({
917
+ region: S.optional(S.String.pipe(T.Label())),
918
+ secret_id: S.String.pipe(T.Label()),
919
+ }).pipe(
920
+ T.Http({
921
+ method: "POST",
922
+ uri: "/secret-manager/v1beta1/regions/{region}/secrets/{secret_id}/restore",
923
+ code: 200,
924
+ baseUrl: "https://api.scaleway.com",
925
+ }),
926
+ ),
927
+ ).annotate({ identifier: "RestoreSecretRequest" });
928
+ }
929
+ }
930
+ function __c8(j: number): any {
931
+ switch (j) {
932
+ case 0:
933
+ return S.suspend(() =>
934
+ S.Struct({
935
+ region: S.optional(S.String.pipe(T.Label())),
936
+ secret_id: S.String.pipe(T.Label()),
937
+ revision: S.String.pipe(T.Label()),
938
+ }).pipe(
939
+ T.Http({
940
+ method: "POST",
941
+ uri: "/secret-manager/v1beta1/regions/{region}/secrets/{secret_id}/versions/{revision}/restore",
942
+ code: 200,
943
+ baseUrl: "https://api.scaleway.com",
944
+ }),
945
+ ),
946
+ ).annotate({ identifier: "RestoreSecretVersionRequest" });
947
+ }
948
+ }
949
+ function __c9(j: number): any {
950
+ switch (j) {
951
+ case 0:
952
+ return S.suspend(() =>
953
+ S.Struct({
954
+ region: S.optional(S.String.pipe(T.Label())),
955
+ secret_id: S.String.pipe(T.Label()),
956
+ }).pipe(
957
+ T.Http({
958
+ method: "POST",
959
+ uri: "/secret-manager/v1beta1/regions/{region}/secrets/{secret_id}/unprotect",
960
+ code: 200,
961
+ baseUrl: "https://api.scaleway.com",
962
+ }),
963
+ ),
964
+ ).annotate({ identifier: "UnprotectSecretRequest" });
965
+ }
966
+ }
967
+ function __c10(j: number): any {
968
+ switch (j) {
969
+ case 0:
970
+ return S.Array(S.Unknown);
971
+ case 1:
972
+ return S.suspend(() =>
973
+ S.Struct({
974
+ region: S.optional(S.String.pipe(T.Label())),
975
+ secret_id: S.String.pipe(T.Label()),
976
+ name: S.optional(S.NullOr(S.String)),
977
+ tags: S.optional(S.NullOr(__S(40, __c10, 0))),
978
+ description: S.optional(S.NullOr(S.String)),
979
+ path: S.optional(S.NullOr(S.String)),
980
+ ephemeral_policy: S.optional(__S(65, __c16, 1)),
981
+ }).pipe(
982
+ T.Http({
983
+ method: "PATCH",
984
+ uri: "/secret-manager/v1beta1/regions/{region}/secrets/{secret_id}",
985
+ code: 200,
986
+ baseUrl: "https://api.scaleway.com",
987
+ }),
988
+ ),
989
+ ).annotate({ identifier: "UpdateSecretRequest" });
990
+ }
991
+ }
992
+ function __c11(j: number): any {
993
+ switch (j) {
994
+ case 0:
995
+ return S.suspend(() =>
996
+ S.Struct({
997
+ region: S.optional(S.String.pipe(T.Label())),
998
+ secret_id: S.String.pipe(T.Label()),
999
+ revision: S.String.pipe(T.Label()),
1000
+ description: S.optional(S.NullOr(S.String)),
1001
+ ephemeral_properties: S.optional(__S(72, __c18, 0)),
1002
+ }).pipe(
1003
+ T.Http({
1004
+ method: "PATCH",
1005
+ uri: "/secret-manager/v1beta1/regions/{region}/secrets/{secret_id}/versions/{revision}",
1006
+ code: 200,
1007
+ baseUrl: "https://api.scaleway.com",
1008
+ }),
1009
+ ),
1010
+ ).annotate({ identifier: "UpdateSecretVersionRequest" });
1011
+ }
1012
+ }
1013
+ function __c12(j: number): any {
1014
+ switch (j) {
1015
+ case 0:
1016
+ return S.suspend(() =>
1017
+ S.Struct({
1018
+ region: S.optional(S.String.pipe(T.Label())),
1019
+ secret_id: S.String.pipe(T.Label()),
1020
+ product: S.optional(S.String),
1021
+ }).pipe(
1022
+ T.Http({
1023
+ method: "POST",
1024
+ uri: "/secret-manager/v1beta1/regions/{region}/secrets/{secret_id}/add-owner",
1025
+ code: 200,
1026
+ baseUrl: "https://api.scaleway.com",
1027
+ }),
1028
+ ),
1029
+ ).annotate({ identifier: "AddSecretOwnerRequest" });
1030
+ }
1031
+ }
1032
+ function __c13(j: number): any {
1033
+ switch (j) {
1034
+ case 0:
1035
+ return S.suspend(() => S.Struct({})).annotate({ identifier: "AddSecretOwnerResponse" });
1036
+ }
1037
+ }
1038
+ function __c14(j: number): any {
1039
+ switch (j) {
1040
+ case 0:
1041
+ return S.suspend(() =>
1042
+ S.Struct({
1043
+ region: S.optional(S.String.pipe(T.Label())),
1044
+ project_id: S.optional(S.String),
1045
+ name: S.optional(S.String),
1046
+ tags: S.optional(__S(64, __c16, 0)),
1047
+ description: S.optional(S.NullOr(S.String)),
1048
+ type: S.optional(S.String),
1049
+ path: S.optional(S.NullOr(S.String)),
1050
+ ephemeral_policy: S.optional(__S(65, __c16, 1)),
1051
+ protected: S.optional(S.Boolean),
1052
+ key_id: S.optional(S.NullOr(S.String)),
1053
+ }).pipe(
1054
+ T.Http({
1055
+ method: "POST",
1056
+ uri: "/secret-manager/v1beta1/regions/{region}/secrets",
1057
+ code: 200,
1058
+ baseUrl: "https://api.scaleway.com",
1059
+ }),
1060
+ ),
1061
+ ).annotate({ identifier: "CreateSecretRequest" });
1062
+ }
1063
+ }
1064
+ function __c15(j: number): any {
1065
+ switch (j) {
1066
+ case 0:
1067
+ return S.Array(S.String);
1068
+ }
1069
+ }
1070
+ function __c16(j: number): any {
1071
+ switch (j) {
1072
+ case 0:
1073
+ return S.Array(S.String);
1074
+ case 1:
1075
+ return S.suspend(() =>
1076
+ S.Struct({
1077
+ time_to_live: S.optional(S.NullOr(S.String)),
1078
+ expires_once_accessed: S.optional(S.NullOr(S.Boolean)),
1079
+ action: S.optional(S.String),
1080
+ }),
1081
+ ).annotate({ identifier: "EphemeralPolicy" });
1082
+ case 2:
1083
+ return S.suspend(() =>
1084
+ S.Struct({
1085
+ id: S.optional(S.String),
1086
+ srn: S.optional(S.String),
1087
+ project_id: S.optional(S.String),
1088
+ name: S.optional(S.String),
1089
+ status: S.optional(S.String),
1090
+ created_at: S.optional(S.NullOr(S.String)),
1091
+ updated_at: S.optional(S.NullOr(S.String)),
1092
+ tags: S.optional(__S(64, __c16, 0)),
1093
+ version_count: S.optional(S.Number),
1094
+ description: S.optional(S.NullOr(S.String)),
1095
+ managed: S.optional(S.Boolean),
1096
+ protected: S.optional(S.Boolean),
1097
+ type: S.optional(S.String),
1098
+ path: S.optional(S.String),
1099
+ ephemeral_policy: S.optional(__S(65, __c16, 1)),
1100
+ used_by: S.optional(__S(60, __c15, 0)),
1101
+ deletion_requested_at: S.optional(S.NullOr(S.String)),
1102
+ key_id: S.optional(S.NullOr(S.String)),
1103
+ region: S.optional(S.String),
1104
+ }),
1105
+ ).annotate({ identifier: "Secret" });
1106
+ }
1107
+ }
1108
+ function __c17(j: number): any {
1109
+ switch (j) {
1110
+ case 0:
1111
+ return S.suspend(() =>
1112
+ S.Struct({
1113
+ region: S.optional(S.String.pipe(T.Label())),
1114
+ secret_id: S.String.pipe(T.Label()),
1115
+ data: S.optional(S.String.pipe(T.SensitiveValue({}))),
1116
+ description: S.optional(S.NullOr(S.String)),
1117
+ disable_previous: S.optional(S.NullOr(S.Boolean)),
1118
+ data_crc32: S.optional(S.NullOr(S.Number)),
1119
+ }).pipe(
1120
+ T.Http({
1121
+ method: "POST",
1122
+ uri: "/secret-manager/v1beta1/regions/{region}/secrets/{secret_id}/versions",
1123
+ code: 200,
1124
+ baseUrl: "https://api.scaleway.com",
1125
+ }),
1126
+ ),
1127
+ ).annotate({ identifier: "CreateSecretVersionRequest" });
1128
+ }
1129
+ }
1130
+ function __c18(j: number): any {
1131
+ switch (j) {
1132
+ case 0:
1133
+ return S.suspend(() =>
1134
+ S.Struct({
1135
+ expires_at: S.optional(S.NullOr(S.String)),
1136
+ expires_once_accessed: S.optional(S.NullOr(S.Boolean)),
1137
+ action: S.optional(S.String),
1138
+ }),
1139
+ ).annotate({ identifier: "EphemeralProperties" });
1140
+ case 1:
1141
+ return S.suspend(() =>
1142
+ S.Struct({
1143
+ revision: S.optional(S.Number),
1144
+ srn: S.optional(S.String),
1145
+ secret_id: S.optional(S.String),
1146
+ status: S.optional(S.String),
1147
+ created_at: S.optional(S.NullOr(S.String)),
1148
+ updated_at: S.optional(S.NullOr(S.String)),
1149
+ deleted_at: S.optional(S.NullOr(S.String)),
1150
+ description: S.optional(S.NullOr(S.String)),
1151
+ latest: S.optional(S.Boolean),
1152
+ ephemeral_properties: S.optional(__S(72, __c18, 0)),
1153
+ deletion_requested_at: S.optional(S.NullOr(S.String)),
1154
+ region: S.optional(S.String),
1155
+ }),
1156
+ ).annotate({ identifier: "SecretVersion" });
1157
+ }
1158
+ }
1159
+ function __c19(j: number): any {
1160
+ switch (j) {
1161
+ case 0:
1162
+ return S.suspend(() =>
1163
+ S.Struct({
1164
+ region: S.optional(S.String.pipe(T.Label())),
1165
+ secret_id: S.String.pipe(T.Label()),
1166
+ }).pipe(
1167
+ T.Http({
1168
+ method: "DELETE",
1169
+ uri: "/secret-manager/v1beta1/regions/{region}/secrets/{secret_id}",
1170
+ code: 200,
1171
+ baseUrl: "https://api.scaleway.com",
1172
+ }),
1173
+ ),
1174
+ ).annotate({ identifier: "DeleteSecretRequest" });
1175
+ }
1176
+ }
1177
+ function __c20(j: number): any {
1178
+ switch (j) {
1179
+ case 0:
1180
+ return S.suspend(() =>
1181
+ S.Struct({
1182
+ region: S.optional(S.String.pipe(T.Label())),
1183
+ secret_id: S.String.pipe(T.Label()),
1184
+ revision: S.String.pipe(T.Label()),
1185
+ }).pipe(
1186
+ T.Http({
1187
+ method: "DELETE",
1188
+ uri: "/secret-manager/v1beta1/regions/{region}/secrets/{secret_id}/versions/{revision}",
1189
+ code: 200,
1190
+ baseUrl: "https://api.scaleway.com",
1191
+ }),
1192
+ ),
1193
+ ).annotate({ identifier: "DeleteSecretVersionRequest" });
1194
+ }
1195
+ }
1196
+ function __c21(j: number): any {
1197
+ switch (j) {
1198
+ case 0:
1199
+ return S.suspend(() =>
1200
+ S.Struct({
1201
+ region: S.optional(S.String.pipe(T.Label())),
1202
+ secret_id: S.String.pipe(T.Label()),
1203
+ revision: S.String.pipe(T.Label()),
1204
+ }).pipe(
1205
+ T.Http({
1206
+ method: "POST",
1207
+ uri: "/secret-manager/v1beta1/regions/{region}/secrets/{secret_id}/versions/{revision}/disable",
1208
+ code: 200,
1209
+ baseUrl: "https://api.scaleway.com",
1210
+ }),
1211
+ ),
1212
+ ).annotate({ identifier: "DisableSecretVersionRequest" });
1213
+ }
1214
+ }
1215
+ function __c22(j: number): any {
1216
+ switch (j) {
1217
+ case 0:
1218
+ return S.suspend(() =>
1219
+ S.Struct({
1220
+ region: S.optional(S.String.pipe(T.Label())),
1221
+ secret_id: S.String.pipe(T.Label()),
1222
+ revision: S.String.pipe(T.Label()),
1223
+ }).pipe(
1224
+ T.Http({
1225
+ method: "POST",
1226
+ uri: "/secret-manager/v1beta1/regions/{region}/secrets/{secret_id}/versions/{revision}/enable",
1227
+ code: 200,
1228
+ baseUrl: "https://api.scaleway.com",
1229
+ }),
1230
+ ),
1231
+ ).annotate({ identifier: "EnableSecretVersionRequest" });
1232
+ }
1233
+ }
1234
+ function __c23(j: number): any {
1235
+ switch (j) {
1236
+ case 0:
1237
+ return S.suspend(() =>
1238
+ S.Struct({
1239
+ region: S.optional(S.String.pipe(T.Label())),
1240
+ secret_id: S.String.pipe(T.Label()),
1241
+ }).pipe(
1242
+ T.Http({
1243
+ method: "GET",
1244
+ uri: "/secret-manager/v1beta1/regions/{region}/secrets/{secret_id}",
1245
+ code: 200,
1246
+ baseUrl: "https://api.scaleway.com",
1247
+ }),
1248
+ ),
1249
+ ).annotate({ identifier: "GetSecretRequest" });
1250
+ }
1251
+ }
1252
+ // Schema table: entry i is schema j of builder f, made on first reach.
1253
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
1254
+ return (__s[i] ??= __L.at(f, j));
1255
+ }