@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,863 @@
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 { ScalewayProtocol, type ScalewayOpError, type ScalewayOpContext } from "../protocol.ts";
8
+ import * as Retry from "../retry.ts";
9
+ import * as T from "../traits.ts";
10
+ // Schema table, filled on first reach (see __S at the end).
11
+ const __s: any[] = [];
12
+
13
+ export type { ScalewayOpError, ScalewayOpContext };
14
+
15
+ /** Span facts shared by every operation (com.distilled.telemetry#service). */
16
+ const TELEMETRY = {
17
+ system: "scaleway-api",
18
+ responseHeaders: [
19
+ { header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
20
+ { header: "request-id", name: "http.response.header.request-id", transform: "list" },
21
+ ],
22
+ prefix: "Scaleway",
23
+ service: "IamUnauthenticatedV1alpha1",
24
+ labels: "scaleway",
25
+ propagate: "w3c",
26
+ } as const;
27
+
28
+ export interface CheckLoginMFAOTPRequest {
29
+ /** The ID of the login object for which to check MFA OTP. */
30
+ login_id: string;
31
+ /** Either a one time password or a recovery code for the OTP method registered. */
32
+ one_time_password?: string | Redacted.Redacted<string> | undefined;
33
+ }
34
+ export interface CheckLoginMFAOTPResponse {}
35
+ export interface CommitLoginRequest {
36
+ /** The ID of the login object to log in on. */
37
+ login_id: string;
38
+ }
39
+ export interface JWT {
40
+ /** JWT ID. */
41
+ jti?: string | undefined;
42
+ /** ID of the user who issued the JWT. */
43
+ issuer_id?: string | undefined;
44
+ /** ID of the user targeted by the JWT. */
45
+ audience_id?: string | undefined;
46
+ /** Creation date of the JWT. (RFC 3339 format) */
47
+ created_at?: string | null | undefined;
48
+ /** Last update date of the JWT. (RFC 3339 format) */
49
+ updated_at?: string | null | undefined;
50
+ /** Expiration date of the JWT. (RFC 3339 format) */
51
+ expires_at?: string | null | undefined;
52
+ /** IP address used during the creation of the JWT. (IP address) */
53
+ ip?: string | undefined;
54
+ /** User-agent used during the creation of the JWT. */
55
+ user_agent?: string | undefined;
56
+ /** The SRN of the JWT. */
57
+ srn?: string | undefined;
58
+ }
59
+ export interface CommitLoginResponse {
60
+ /** A JWT authenticating the user. */
61
+ jwt?: JWT | undefined;
62
+ /** The plain text content of the JWT. */
63
+ token?: string | Redacted.Redacted<string> | undefined;
64
+ /** A token that can be used to renew the JWT. */
65
+ renew_token?: string | Redacted.Redacted<string> | undefined;
66
+ }
67
+ export interface CreateMagicCodeLoginRequest {
68
+ /** The UUID of the organization on which to login. */
69
+ organization_id?: string | undefined;
70
+ /** The username of the user that logs in. */
71
+ username?: string | undefined;
72
+ /** The magic code received via email. */
73
+ magic_code?: string | undefined;
74
+ }
75
+ export interface Login {
76
+ /** A UUID representing the login attempt. */
77
+ id?: string | undefined;
78
+ /** Whether the login attempt expects a MFA token. */
79
+ mfa_required?: boolean | undefined;
80
+ }
81
+ export type OAuth2IdentityProvider = "unknown_identity_provider" | "google" | "github";
82
+ export interface CreateOAuth2LoginRequest {
83
+ /** The UUID of the organization on which to login. */
84
+ organization_id?: string | undefined;
85
+ /** Identity provider to connect with. */
86
+ identity_provider?: OAuth2IdentityProvider | (string & {}) | undefined;
87
+ /** Code received from the identity provider. */
88
+ code?: string | undefined;
89
+ /** URI to which the identity provider will redirect after the authentication phase. */
90
+ remote_redirect_uri?: string | undefined;
91
+ }
92
+ export interface CreatePasswordLoginRequest {
93
+ /** The UUID of the organization on which to login. */
94
+ organization_id?: string | undefined;
95
+ /** The username of the user that logs in. */
96
+ username?: string | undefined;
97
+ /** The password of the user. */
98
+ password?: string | Redacted.Redacted<string> | undefined;
99
+ }
100
+ export type ScalewayStdHeaderValuesValuesList = Array<string>;
101
+ export interface ScalewayStdHeaderValues {
102
+ values?: ScalewayStdHeaderValuesValuesList | undefined;
103
+ }
104
+ export type CreateSamlLoginRequestHeadersMap = {
105
+ [key: string]: ScalewayStdHeaderValues | undefined;
106
+ };
107
+ export interface CreateSamlLoginRequest {
108
+ method?: string | undefined;
109
+ url?: string | undefined;
110
+ http_version?: string | undefined;
111
+ headers?: CreateSamlLoginRequestHeadersMap | undefined;
112
+ body?: string | undefined;
113
+ }
114
+ export type ScalewayStdHTTPResponseHeadersMap = {
115
+ [key: string]: ScalewayStdHeaderValues | undefined;
116
+ };
117
+ export interface ScalewayStdHTTPResponse {
118
+ status_code?: number | undefined;
119
+ headers?: ScalewayStdHTTPResponseHeadersMap | undefined;
120
+ body?: string | undefined;
121
+ }
122
+ export interface FinishLoginMFAWebAuthnRequest {
123
+ /** ID of the login object for which to finish a WebAuthn MFA. */
124
+ login_id: string;
125
+ /** ID of the authentication ceremony to finish. */
126
+ ceremony_id?: string | undefined;
127
+ /** The domain on which the authentication is occurring. */
128
+ origin?: string | undefined;
129
+ /** Unique identifier of the key used by the authenticator. */
130
+ raw_id?: string | undefined;
131
+ /** JSON representation of the client data. */
132
+ client_data_json?: string | undefined;
133
+ /** Data about the authenticator that performed the authentication. */
134
+ authenticator_data?: string | undefined;
135
+ /** Signature by the authenticator key of the authentication ceremony data. */
136
+ signature?: string | undefined;
137
+ }
138
+ export interface FinishLoginMFAWebAuthnResponse {}
139
+ export interface GetSamlMetadataRequest {
140
+ /** The ID of the SAML configuration to get the metadata for. */
141
+ saml_id: string;
142
+ }
143
+ export interface ScalewayStdFile {
144
+ name?: string | undefined;
145
+ content_type?: string | undefined;
146
+ content?: string | undefined;
147
+ }
148
+ export interface LoginInitiateMagicCodeRequest {
149
+ /** The UUID of the organization on which to login. */
150
+ organization_id?: string | undefined;
151
+ /** The username of the user that logs in. */
152
+ username?: string | undefined;
153
+ }
154
+ export interface LoginInitiateMagicCodeResponse {}
155
+ export interface LoginInitiateOAuth2Request {
156
+ /** The UUID of the organization on which to login. */
157
+ organization_id?: string | undefined;
158
+ /** Identity provider to connect with. */
159
+ identity_provider?: OAuth2IdentityProvider | (string & {}) | undefined;
160
+ /** URI to redirect to after login. */
161
+ local_redirect_uri?: string | undefined;
162
+ /** URI to which the identity provider will redirect after the authentication phase. */
163
+ remote_redirect_uri?: string | undefined;
164
+ }
165
+ export interface InitiateOAuth2LoginResponse {
166
+ /** URL to redirect the user to. */
167
+ url?: string | undefined;
168
+ /** Security token to check when receiving a code from the identity provider. */
169
+ security_token?: string | Redacted.Redacted<string> | undefined;
170
+ }
171
+ export interface LoginInitiateSamlRequest {
172
+ /** The UUID of the organization on which to login. */
173
+ organization_id?: string | undefined;
174
+ /** URI to redirect to after the SAML authentication phase. */
175
+ redirect_uri?: string | undefined;
176
+ }
177
+ export interface InitiateSamlLoginResponse {
178
+ /** The SAML AuthnRequest to send to the identity provider. */
179
+ saml_request?: string | undefined;
180
+ /** The relay state to send to the identity provider. */
181
+ relay_state?: string | undefined;
182
+ /** URL to redirect the user to for SAML authentication. */
183
+ url?: string | undefined;
184
+ }
185
+ export interface RenewJWTRequest {
186
+ /** The JWT ID of the JWT to renew. */
187
+ jti: string;
188
+ /** The renew token associated to the JWT to renew. */
189
+ renew_token?: string | Redacted.Redacted<string> | undefined;
190
+ }
191
+ export interface EncodedJWT {
192
+ /** The renewed JWT. */
193
+ jwt?: JWT | undefined;
194
+ /** The encoded token of the renewed JWT. */
195
+ token?: string | Redacted.Redacted<string> | undefined;
196
+ /** The encoded renew token. This token is necessary to renew the JWT. */
197
+ renew_token?: string | Redacted.Redacted<string> | undefined;
198
+ }
199
+ export interface SearchOrganizationRequest {
200
+ /** Search for an organization using its ID. One of organization_id, organization_alias is required. */
201
+ organization_id?: string | undefined;
202
+ /** Search for an organization using its alias. One of organization_id, organization_alias is required. */
203
+ organization_alias?: string | undefined;
204
+ }
205
+ export interface OrganizationSummary {
206
+ /** The ID of the organization. */
207
+ id?: string | undefined;
208
+ /** The name of the organization. */
209
+ name?: string | undefined;
210
+ /** Defines whether the organization supports login via Password. */
211
+ login_password_enabled?: boolean | undefined;
212
+ /** Defines whether the organization supports login via Magic Code. */
213
+ login_magic_code_enabled?: boolean | undefined;
214
+ /** Defines whether the organization supports login via OAuth2 SSO. */
215
+ login_oauth2_enabled?: boolean | undefined;
216
+ /** Defines whether the organization supports login via SAML SSO. */
217
+ login_saml_enabled?: boolean | undefined;
218
+ }
219
+ export interface StartLoginMFAWebAuthnRequest {
220
+ /** The ID of the login object for which to start a Webauthn MFA. */
221
+ login_id: string;
222
+ /** The URL origin of the request. */
223
+ origin?: string | undefined;
224
+ }
225
+ /** List of credentials, if any, which can be used to perform the ceremony. */
226
+ export type StartLoginMFAWebAuthnResponseAllowCredentialsList = Array<string>;
227
+ export interface StartLoginMFAWebAuthnResponse {
228
+ /** ID of the ceremony which will be needed for completion. */
229
+ ceremony_id?: string | undefined;
230
+ /** Random bytes constituting the challenge to solve for the credentials creation. */
231
+ challenge?: string | undefined;
232
+ /** Maximum duration of the authentication ceremony (milliseconds). (in seconds) */
233
+ timeout?: string | null | undefined;
234
+ /** List of credentials, if any, which can be used to perform the ceremony. */
235
+ allow_credentials?: StartLoginMFAWebAuthnResponseAllowCredentialsList | undefined;
236
+ }
237
+ export type CheckLoginMFAOTPError = ScalewayOpError;
238
+ /** Check MFA OTP for this login */
239
+ export const checkLoginMFAOTP: API.OperationMethod<
240
+ CheckLoginMFAOTPRequest,
241
+ CheckLoginMFAOTPResponse,
242
+ CheckLoginMFAOTPError,
243
+ ScalewayOpContext
244
+ > = /*@__PURE__*/ API.make(() => ({
245
+ input: __S(0, __c0, 0) as any as S.Schema<CheckLoginMFAOTPRequest>,
246
+ output: __S(4, __c1, 0) as any as S.Schema<CheckLoginMFAOTPResponse>,
247
+ errors: [],
248
+ serviceErrors: ScalewayServiceErrors,
249
+ protocol: ScalewayProtocol,
250
+ retry: Retry.Retry,
251
+ telemetry: TELEMETRY,
252
+ span: "CheckLoginMFAOTP",
253
+ }));
254
+
255
+ export type CommitLoginError = ScalewayOpError;
256
+ /** Finalize a login attempt */
257
+ export const commitLogin: API.OperationMethod<
258
+ CommitLoginRequest,
259
+ CommitLoginResponse,
260
+ CommitLoginError,
261
+ ScalewayOpContext
262
+ > = /*@__PURE__*/ API.make(() => ({
263
+ input: __S(8, __c2, 0) as any as S.Schema<CommitLoginRequest>,
264
+ output: __S(13, __c3, 1) as any as S.Schema<CommitLoginResponse>,
265
+ errors: [],
266
+ serviceErrors: ScalewayServiceErrors,
267
+ protocol: ScalewayProtocol,
268
+ retry: Retry.Retry,
269
+ telemetry: TELEMETRY,
270
+ span: "CommitLogin",
271
+ }));
272
+
273
+ export type CreateMagicCodeLoginError = ScalewayOpError;
274
+ /** Create a Login object via Magic Code authentication */
275
+ export const createMagicCodeLogin: API.OperationMethod<
276
+ CreateMagicCodeLoginRequest,
277
+ Login,
278
+ CreateMagicCodeLoginError,
279
+ ScalewayOpContext
280
+ > = /*@__PURE__*/ API.make(() => ({
281
+ input: __S(32, __c8, 0) as any as S.Schema<CreateMagicCodeLoginRequest>,
282
+ output: __S(36, __c9, 0) as any as S.Schema<Login>,
283
+ errors: [],
284
+ serviceErrors: ScalewayServiceErrors,
285
+ protocol: ScalewayProtocol,
286
+ retry: Retry.Retry,
287
+ telemetry: TELEMETRY,
288
+ span: "CreateMagicCodeLogin",
289
+ }));
290
+
291
+ export type CreateOAuth2LoginError = ScalewayOpError;
292
+ export const createOAuth2Login: API.OperationMethod<
293
+ CreateOAuth2LoginRequest,
294
+ Login,
295
+ CreateOAuth2LoginError,
296
+ ScalewayOpContext
297
+ > = /*@__PURE__*/ API.make(() => ({
298
+ input: __S(40, __c10, 0) as any as S.Schema<CreateOAuth2LoginRequest>,
299
+ output: __S(36, __c9, 0) as any as S.Schema<Login>,
300
+ errors: [],
301
+ serviceErrors: ScalewayServiceErrors,
302
+ protocol: ScalewayProtocol,
303
+ retry: Retry.Retry,
304
+ telemetry: TELEMETRY,
305
+ span: "CreateOAuth2Login",
306
+ }));
307
+
308
+ export type CreatePasswordLoginError = ScalewayOpError;
309
+ /** Create a Login object via Password authentication */
310
+ export const createPasswordLogin: API.OperationMethod<
311
+ CreatePasswordLoginRequest,
312
+ Login,
313
+ CreatePasswordLoginError,
314
+ ScalewayOpContext
315
+ > = /*@__PURE__*/ API.make(() => ({
316
+ input: __S(44, __c11, 0) as any as S.Schema<CreatePasswordLoginRequest>,
317
+ output: __S(36, __c9, 0) as any as S.Schema<Login>,
318
+ errors: [],
319
+ serviceErrors: ScalewayServiceErrors,
320
+ protocol: ScalewayProtocol,
321
+ retry: Retry.Retry,
322
+ telemetry: TELEMETRY,
323
+ span: "CreatePasswordLogin",
324
+ }));
325
+
326
+ export type CreateSamlLoginError = ScalewayOpError;
327
+ /** Create a Login object via SAML authentication */
328
+ export const createSamlLogin: API.OperationMethod<
329
+ CreateSamlLoginRequest,
330
+ ScalewayStdHTTPResponse,
331
+ CreateSamlLoginError,
332
+ ScalewayOpContext
333
+ > = /*@__PURE__*/ API.make(() => ({
334
+ input: __S(50, __c12, 2) as any as S.Schema<CreateSamlLoginRequest>,
335
+ output: __S(51, __c12, 3) as any as S.Schema<ScalewayStdHTTPResponse>,
336
+ errors: [],
337
+ serviceErrors: ScalewayServiceErrors,
338
+ protocol: ScalewayProtocol,
339
+ retry: Retry.Retry,
340
+ telemetry: TELEMETRY,
341
+ span: "CreateSamlLogin",
342
+ }));
343
+
344
+ export type FinishLoginMFAWebAuthnError = ScalewayOpError;
345
+ /** Finish a MFA Webauthn ceremony on this login */
346
+ export const finishLoginMFAWebAuthn: API.OperationMethod<
347
+ FinishLoginMFAWebAuthnRequest,
348
+ FinishLoginMFAWebAuthnResponse,
349
+ FinishLoginMFAWebAuthnError,
350
+ ScalewayOpContext
351
+ > = /*@__PURE__*/ API.make(() => ({
352
+ input: __S(56, __c14, 0) as any as S.Schema<FinishLoginMFAWebAuthnRequest>,
353
+ output: __S(4, __c1, 0) as any as S.Schema<FinishLoginMFAWebAuthnResponse>,
354
+ errors: [],
355
+ serviceErrors: ScalewayServiceErrors,
356
+ protocol: ScalewayProtocol,
357
+ retry: Retry.Retry,
358
+ telemetry: TELEMETRY,
359
+ span: "FinishLoginMFAWebAuthn",
360
+ }));
361
+
362
+ export type GetSamlMetadataError = ScalewayOpError;
363
+ /** Get the SAML metadata XML file for a given SAML ID */
364
+ export const getSamlMetadata: API.OperationMethod<
365
+ GetSamlMetadataRequest,
366
+ ScalewayStdFile,
367
+ GetSamlMetadataError,
368
+ ScalewayOpContext
369
+ > = /*@__PURE__*/ API.make(() => ({
370
+ input: __S(60, __c15, 0) as any as S.Schema<GetSamlMetadataRequest>,
371
+ output: __S(61, __c15, 1) as any as S.Schema<ScalewayStdFile>,
372
+ errors: [],
373
+ serviceErrors: ScalewayServiceErrors,
374
+ protocol: ScalewayProtocol,
375
+ retry: Retry.Retry,
376
+ telemetry: TELEMETRY,
377
+ span: "GetSamlMetadata",
378
+ }));
379
+
380
+ export type LoginInitiateMagicCodeError = ScalewayOpError;
381
+ /** Initiate a Magic Code login attempt and send an email with the code to the user */
382
+ export const loginInitiateMagicCode: API.OperationMethod<
383
+ LoginInitiateMagicCodeRequest,
384
+ LoginInitiateMagicCodeResponse,
385
+ LoginInitiateMagicCodeError,
386
+ ScalewayOpContext
387
+ > = /*@__PURE__*/ API.make(() => ({
388
+ input: __S(64, __c16, 0) as any as S.Schema<LoginInitiateMagicCodeRequest>,
389
+ output: __S(4, __c1, 0) as any as S.Schema<LoginInitiateMagicCodeResponse>,
390
+ errors: [],
391
+ serviceErrors: ScalewayServiceErrors,
392
+ protocol: ScalewayProtocol,
393
+ retry: Retry.Retry,
394
+ telemetry: TELEMETRY,
395
+ span: "LoginInitiateMagicCode",
396
+ }));
397
+
398
+ export type LoginInitiateOAuth2Error = ScalewayOpError;
399
+ export const loginInitiateOAuth2: API.OperationMethod<
400
+ LoginInitiateOAuth2Request,
401
+ InitiateOAuth2LoginResponse,
402
+ LoginInitiateOAuth2Error,
403
+ ScalewayOpContext
404
+ > = /*@__PURE__*/ API.make(() => ({
405
+ input: __S(68, __c17, 0) as any as S.Schema<LoginInitiateOAuth2Request>,
406
+ output: __S(69, __c17, 1) as any as S.Schema<InitiateOAuth2LoginResponse>,
407
+ errors: [],
408
+ serviceErrors: ScalewayServiceErrors,
409
+ protocol: ScalewayProtocol,
410
+ retry: Retry.Retry,
411
+ telemetry: TELEMETRY,
412
+ span: "LoginInitiateOAuth2",
413
+ }));
414
+
415
+ export type LoginInitiateSamlError = ScalewayOpError;
416
+ /** Initiate a SAML login attempt */
417
+ export const loginInitiateSaml: API.OperationMethod<
418
+ LoginInitiateSamlRequest,
419
+ InitiateSamlLoginResponse,
420
+ LoginInitiateSamlError,
421
+ ScalewayOpContext
422
+ > = /*@__PURE__*/ API.make(() => ({
423
+ input: __S(16, __c4, 0) as any as S.Schema<LoginInitiateSamlRequest>,
424
+ output: __S(17, __c4, 1) as any as S.Schema<InitiateSamlLoginResponse>,
425
+ errors: [],
426
+ serviceErrors: ScalewayServiceErrors,
427
+ protocol: ScalewayProtocol,
428
+ retry: Retry.Retry,
429
+ telemetry: TELEMETRY,
430
+ span: "LoginInitiateSaml",
431
+ }));
432
+
433
+ export type RenewJWTError = ScalewayOpError;
434
+ /** Renew a JWT */
435
+ export const renewJWT: API.OperationMethod<
436
+ RenewJWTRequest,
437
+ EncodedJWT,
438
+ RenewJWTError,
439
+ ScalewayOpContext
440
+ > = /*@__PURE__*/ API.make(() => ({
441
+ input: __S(20, __c5, 0) as any as S.Schema<RenewJWTRequest>,
442
+ output: __S(13, __c3, 1) as any as S.Schema<EncodedJWT>,
443
+ errors: [],
444
+ serviceErrors: ScalewayServiceErrors,
445
+ protocol: ScalewayProtocol,
446
+ retry: Retry.Retry,
447
+ telemetry: TELEMETRY,
448
+ span: "RenewJWT",
449
+ }));
450
+
451
+ export type SearchOrganizationError = ScalewayOpError;
452
+ /** Search for an organization */
453
+ export const searchOrganization: API.OperationMethod<
454
+ SearchOrganizationRequest,
455
+ OrganizationSummary,
456
+ SearchOrganizationError,
457
+ ScalewayOpContext
458
+ > = /*@__PURE__*/ API.make(() => ({
459
+ input: __S(24, __c6, 0) as any as S.Schema<SearchOrganizationRequest>,
460
+ output: __S(25, __c6, 1) as any as S.Schema<OrganizationSummary>,
461
+ errors: [],
462
+ serviceErrors: ScalewayServiceErrors,
463
+ protocol: ScalewayProtocol,
464
+ retry: Retry.Retry,
465
+ telemetry: TELEMETRY,
466
+ span: "SearchOrganization",
467
+ }));
468
+
469
+ export type StartLoginMFAWebAuthnError = ScalewayOpError;
470
+ /** Start a MFA Webauthn ceremony on this login */
471
+ export const startLoginMFAWebAuthn: API.OperationMethod<
472
+ StartLoginMFAWebAuthnRequest,
473
+ StartLoginMFAWebAuthnResponse,
474
+ StartLoginMFAWebAuthnError,
475
+ ScalewayOpContext
476
+ > = /*@__PURE__*/ API.make(() => ({
477
+ input: __S(28, __c7, 0) as any as S.Schema<StartLoginMFAWebAuthnRequest>,
478
+ output: __S(29, __c7, 1) as any as S.Schema<StartLoginMFAWebAuthnResponse>,
479
+ errors: [],
480
+ serviceErrors: ScalewayServiceErrors,
481
+ protocol: ScalewayProtocol,
482
+ retry: Retry.Retry,
483
+ telemetry: TELEMETRY,
484
+ span: "StartLoginMFAWebAuthn",
485
+ }));
486
+
487
+ // Schema builders: each runs one schema initializer, on that schema's first use.
488
+ function __c0(j: number): any {
489
+ switch (j) {
490
+ case 0:
491
+ return S.suspend(() =>
492
+ S.Struct({
493
+ login_id: S.String.pipe(T.Label()),
494
+ one_time_password: S.optional(S.String.pipe(T.SensitiveValue({}))),
495
+ }).pipe(
496
+ T.Http({
497
+ method: "POST",
498
+ uri: "/iam/v1alpha1/login/{login_id}/check-mfa-otp",
499
+ code: 200,
500
+ baseUrl: "https://api.scaleway.com",
501
+ }),
502
+ ),
503
+ ).annotate({ identifier: "CheckLoginMFAOTPRequest" });
504
+ }
505
+ }
506
+ function __c1(j: number): any {
507
+ switch (j) {
508
+ case 0:
509
+ return S.suspend(() => S.Struct({})).annotate({ identifier: "CheckLoginMFAOTPResponse" });
510
+ }
511
+ }
512
+ function __c2(j: number): any {
513
+ switch (j) {
514
+ case 0:
515
+ return S.suspend(() =>
516
+ S.Struct({
517
+ login_id: S.String.pipe(T.Label()),
518
+ }).pipe(
519
+ T.Http({
520
+ method: "POST",
521
+ uri: "/iam/v1alpha1/login/{login_id}/commit",
522
+ code: 200,
523
+ baseUrl: "https://api.scaleway.com",
524
+ }),
525
+ ),
526
+ ).annotate({ identifier: "CommitLoginRequest" });
527
+ }
528
+ }
529
+ function __c3(j: number): any {
530
+ switch (j) {
531
+ case 0:
532
+ return S.suspend(() =>
533
+ S.Struct({
534
+ jti: S.optional(S.String),
535
+ issuer_id: S.optional(S.String),
536
+ audience_id: S.optional(S.String),
537
+ created_at: S.optional(S.NullOr(S.String)),
538
+ updated_at: S.optional(S.NullOr(S.String)),
539
+ expires_at: S.optional(S.NullOr(S.String)),
540
+ ip: S.optional(S.String),
541
+ user_agent: S.optional(S.String),
542
+ srn: S.optional(S.String),
543
+ }),
544
+ ).annotate({ identifier: "JWT" });
545
+ case 1:
546
+ return S.suspend(() =>
547
+ S.Struct({
548
+ jwt: S.optional(__S(12, __c3, 0)),
549
+ token: S.optional(S.String.pipe(T.SensitiveValue({}))),
550
+ renew_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
551
+ }),
552
+ ).annotate({ identifier: "CommitLoginResponse" });
553
+ }
554
+ }
555
+ function __c4(j: number): any {
556
+ switch (j) {
557
+ case 0:
558
+ return S.suspend(() =>
559
+ S.Struct({
560
+ organization_id: S.optional(S.String),
561
+ redirect_uri: S.optional(S.String),
562
+ }).pipe(
563
+ T.Http({
564
+ method: "POST",
565
+ uri: "/iam/v1alpha1/initiate-saml-login",
566
+ code: 200,
567
+ baseUrl: "https://api.scaleway.com",
568
+ }),
569
+ ),
570
+ ).annotate({ identifier: "LoginInitiateSamlRequest" });
571
+ case 1:
572
+ return S.suspend(() =>
573
+ S.Struct({
574
+ saml_request: S.optional(S.String),
575
+ relay_state: S.optional(S.String),
576
+ url: S.optional(S.String),
577
+ }),
578
+ ).annotate({ identifier: "InitiateSamlLoginResponse" });
579
+ }
580
+ }
581
+ function __c5(j: number): any {
582
+ switch (j) {
583
+ case 0:
584
+ return S.suspend(() =>
585
+ S.Struct({
586
+ jti: S.String.pipe(T.Label()),
587
+ renew_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
588
+ }).pipe(
589
+ T.Http({
590
+ method: "POST",
591
+ uri: "/iam/v1alpha1/jwts/{jti}/renew",
592
+ code: 200,
593
+ baseUrl: "https://api.scaleway.com",
594
+ }),
595
+ ),
596
+ ).annotate({ identifier: "RenewJWTRequest" });
597
+ }
598
+ }
599
+ function __c6(j: number): any {
600
+ switch (j) {
601
+ case 0:
602
+ return S.suspend(() =>
603
+ S.Struct({
604
+ organization_id: S.optional(S.String.pipe(T.Query())),
605
+ organization_alias: S.optional(S.String.pipe(T.Query())),
606
+ }).pipe(
607
+ T.Http({
608
+ method: "GET",
609
+ uri: "/iam/v1alpha1/search-organization",
610
+ code: 200,
611
+ baseUrl: "https://api.scaleway.com",
612
+ }),
613
+ ),
614
+ ).annotate({ identifier: "SearchOrganizationRequest" });
615
+ case 1:
616
+ return S.suspend(() =>
617
+ S.Struct({
618
+ id: S.optional(S.String),
619
+ name: S.optional(S.String),
620
+ login_password_enabled: S.optional(S.Boolean),
621
+ login_magic_code_enabled: S.optional(S.Boolean),
622
+ login_oauth2_enabled: S.optional(S.Boolean),
623
+ login_saml_enabled: S.optional(S.Boolean),
624
+ }),
625
+ ).annotate({ identifier: "OrganizationSummary" });
626
+ }
627
+ }
628
+ function __c7(j: number): any {
629
+ switch (j) {
630
+ case 0:
631
+ return S.suspend(() =>
632
+ S.Struct({
633
+ login_id: S.String.pipe(T.Label()),
634
+ origin: S.optional(S.String),
635
+ }).pipe(
636
+ T.Http({
637
+ method: "POST",
638
+ uri: "/iam/v1alpha1/login/{login_id}/start-mfa-webauthn",
639
+ code: 200,
640
+ baseUrl: "https://api.scaleway.com",
641
+ }),
642
+ ),
643
+ ).annotate({ identifier: "StartLoginMFAWebAuthnRequest" });
644
+ case 1:
645
+ return S.suspend(() =>
646
+ S.Struct({
647
+ ceremony_id: S.optional(S.String),
648
+ challenge: S.optional(S.String),
649
+ timeout: S.optional(S.NullOr(S.String)),
650
+ allow_credentials: S.optional(__S(52, __c13, 0)),
651
+ }),
652
+ ).annotate({ identifier: "StartLoginMFAWebAuthnResponse" });
653
+ }
654
+ }
655
+ function __c8(j: number): any {
656
+ switch (j) {
657
+ case 0:
658
+ return S.suspend(() =>
659
+ S.Struct({
660
+ organization_id: S.optional(S.String),
661
+ username: S.optional(S.String),
662
+ magic_code: S.optional(S.String),
663
+ }).pipe(
664
+ T.Http({
665
+ method: "POST",
666
+ uri: "/iam/v1alpha1/magic-code-login",
667
+ code: 200,
668
+ baseUrl: "https://api.scaleway.com",
669
+ }),
670
+ ),
671
+ ).annotate({ identifier: "CreateMagicCodeLoginRequest" });
672
+ }
673
+ }
674
+ function __c9(j: number): any {
675
+ switch (j) {
676
+ case 0:
677
+ return S.suspend(() =>
678
+ S.Struct({
679
+ id: S.optional(S.String),
680
+ mfa_required: S.optional(S.Boolean),
681
+ }),
682
+ ).annotate({ identifier: "Login" });
683
+ }
684
+ }
685
+ function __c10(j: number): any {
686
+ switch (j) {
687
+ case 0:
688
+ return S.suspend(() =>
689
+ S.Struct({
690
+ organization_id: S.optional(S.String),
691
+ identity_provider: S.optional(S.String),
692
+ code: S.optional(S.String),
693
+ remote_redirect_uri: S.optional(S.String),
694
+ }).pipe(
695
+ T.Http({
696
+ method: "POST",
697
+ uri: "/iam/v1alpha1/oauth2-login",
698
+ code: 200,
699
+ baseUrl: "https://api.scaleway.com",
700
+ }),
701
+ ),
702
+ ).annotate({ identifier: "CreateOAuth2LoginRequest" });
703
+ }
704
+ }
705
+ function __c11(j: number): any {
706
+ switch (j) {
707
+ case 0:
708
+ return S.suspend(() =>
709
+ S.Struct({
710
+ organization_id: S.optional(S.String),
711
+ username: S.optional(S.String),
712
+ password: S.optional(S.String.pipe(T.SensitiveValue({}))),
713
+ }).pipe(
714
+ T.Http({
715
+ method: "POST",
716
+ uri: "/iam/v1alpha1/password-login",
717
+ code: 200,
718
+ baseUrl: "https://api.scaleway.com",
719
+ }),
720
+ ),
721
+ ).annotate({ identifier: "CreatePasswordLoginRequest" });
722
+ }
723
+ }
724
+ function __c12(j: number): any {
725
+ switch (j) {
726
+ case 0:
727
+ return S.suspend(() =>
728
+ S.Struct({
729
+ values: S.optional(__S(52, __c13, 0)),
730
+ }),
731
+ ).annotate({ identifier: "ScalewayStdHeaderValues" });
732
+ case 1:
733
+ return S.Record(S.String, __S(48, __c12, 0));
734
+ case 2:
735
+ return S.suspend(() =>
736
+ S.Struct({
737
+ method: S.optional(S.String),
738
+ url: S.optional(S.String),
739
+ http_version: S.optional(S.String),
740
+ headers: S.optional(__S(49, __c12, 1)),
741
+ body: S.optional(S.String),
742
+ }).pipe(
743
+ T.Http({
744
+ method: "POST",
745
+ uri: "/iam/v1alpha1/saml/*/login",
746
+ code: 200,
747
+ baseUrl: "https://api.scaleway.com",
748
+ }),
749
+ ),
750
+ ).annotate({ identifier: "CreateSamlLoginRequest" });
751
+ case 3:
752
+ return S.suspend(() =>
753
+ S.Struct({
754
+ status_code: S.optional(S.Number),
755
+ headers: S.optional(__S(49, __c12, 1)),
756
+ body: S.optional(S.String),
757
+ }),
758
+ ).annotate({ identifier: "ScalewayStdHTTPResponse" });
759
+ }
760
+ }
761
+ function __c13(j: number): any {
762
+ switch (j) {
763
+ case 0:
764
+ return S.Array(S.String);
765
+ }
766
+ }
767
+ function __c14(j: number): any {
768
+ switch (j) {
769
+ case 0:
770
+ return S.suspend(() =>
771
+ S.Struct({
772
+ login_id: S.String.pipe(T.Label()),
773
+ ceremony_id: S.optional(S.String),
774
+ origin: S.optional(S.String),
775
+ raw_id: S.optional(S.String),
776
+ client_data_json: S.optional(S.String),
777
+ authenticator_data: S.optional(S.String),
778
+ signature: S.optional(S.String),
779
+ }).pipe(
780
+ T.Http({
781
+ method: "POST",
782
+ uri: "/iam/v1alpha1/login/{login_id}/finish-mfa-webauthn",
783
+ code: 200,
784
+ baseUrl: "https://api.scaleway.com",
785
+ }),
786
+ ),
787
+ ).annotate({ identifier: "FinishLoginMFAWebAuthnRequest" });
788
+ }
789
+ }
790
+ function __c15(j: number): any {
791
+ switch (j) {
792
+ case 0:
793
+ return S.suspend(() =>
794
+ S.Struct({
795
+ saml_id: S.String.pipe(T.Label()),
796
+ }).pipe(
797
+ T.Http({
798
+ method: "GET",
799
+ uri: "/iam/v1alpha1/saml/{saml_id}/metadata",
800
+ code: 200,
801
+ baseUrl: "https://api.scaleway.com",
802
+ }),
803
+ ),
804
+ ).annotate({ identifier: "GetSamlMetadataRequest" });
805
+ case 1:
806
+ return S.suspend(() =>
807
+ S.Struct({
808
+ name: S.optional(S.String),
809
+ content_type: S.optional(S.String),
810
+ content: S.optional(S.String),
811
+ }),
812
+ ).annotate({ identifier: "ScalewayStdFile" });
813
+ }
814
+ }
815
+ function __c16(j: number): any {
816
+ switch (j) {
817
+ case 0:
818
+ return S.suspend(() =>
819
+ S.Struct({
820
+ organization_id: S.optional(S.String),
821
+ username: S.optional(S.String),
822
+ }).pipe(
823
+ T.Http({
824
+ method: "POST",
825
+ uri: "/iam/v1alpha1/initiate-magic-code-login",
826
+ code: 200,
827
+ baseUrl: "https://api.scaleway.com",
828
+ }),
829
+ ),
830
+ ).annotate({ identifier: "LoginInitiateMagicCodeRequest" });
831
+ }
832
+ }
833
+ function __c17(j: number): any {
834
+ switch (j) {
835
+ case 0:
836
+ return S.suspend(() =>
837
+ S.Struct({
838
+ organization_id: S.optional(S.String),
839
+ identity_provider: S.optional(S.String),
840
+ local_redirect_uri: S.optional(S.String),
841
+ remote_redirect_uri: S.optional(S.String),
842
+ }).pipe(
843
+ T.Http({
844
+ method: "POST",
845
+ uri: "/iam/v1alpha1/initiate-oauth2-login",
846
+ code: 200,
847
+ baseUrl: "https://api.scaleway.com",
848
+ }),
849
+ ),
850
+ ).annotate({ identifier: "LoginInitiateOAuth2Request" });
851
+ case 1:
852
+ return S.suspend(() =>
853
+ S.Struct({
854
+ url: S.optional(S.String),
855
+ security_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
856
+ }),
857
+ ).annotate({ identifier: "InitiateOAuth2LoginResponse" });
858
+ }
859
+ }
860
+ // Schema table: entry i is schema j of builder f, made on first reach.
861
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
862
+ return (__s[i] ??= __L.at(f, j));
863
+ }