@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,1657 @@
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: "AccountUserV3",
25
+ labels: "scaleway",
26
+ propagate: "w3c",
27
+ } as const;
28
+
29
+ export interface ChangeUserEmailRequest {
30
+ /** ID of the user. (UUID format) */
31
+ user_id: string;
32
+ /** New user email to update. */
33
+ email?: string | undefined;
34
+ }
35
+ export interface ChangeUserEmailResponse {
36
+ /** Email address for an already pending change request. */
37
+ pending_email?: string | undefined;
38
+ }
39
+ export interface ChangeUserPasswordRequest {
40
+ /** ID of the user. (UUID format) */
41
+ user_id: string;
42
+ /** Used to set or update a new password. */
43
+ new_password?: string | Redacted.Redacted<string> | undefined;
44
+ /** Current user password to check. */
45
+ current_password?: string | Redacted.Redacted<string> | null | undefined;
46
+ }
47
+ export interface ChangeUserPasswordResponse {}
48
+ export interface ConfirmPhoneValidationRequest {
49
+ /** ID of the phone validation. (UUID format) */
50
+ phone_validation_id: string;
51
+ /** Code required to validate the phone number. */
52
+ code?: string | undefined;
53
+ }
54
+ export interface ConfirmPhoneValidationResponse {}
55
+ export interface CreateMFAOTPRequest {
56
+ /** User ID of the MFA OTP. (UUID format) */
57
+ user_id?: string | undefined;
58
+ }
59
+ export interface MFAOTP {
60
+ /** ID of the MFA OTP. */
61
+ id?: string | undefined;
62
+ /** Secret of the MFA OTP. */
63
+ secret?: string | Redacted.Redacted<string> | null | undefined;
64
+ /** The SRN of the MFA OTP. */
65
+ srn?: string | undefined;
66
+ }
67
+ export interface DeleteMFAOTPRequest {
68
+ /** ID of the MFA OTP. (UUID format) */
69
+ mfa_otp_id: string;
70
+ }
71
+ export interface DeleteMFAOTPResponse {}
72
+ export interface DeleteWebAuthnAuthenticatorRequest {
73
+ /** ID of the WebAuthn Authenticator to delete. */
74
+ authenticator_id?: string | undefined;
75
+ }
76
+ export interface DeleteWebAuthnAuthenticatorResponse {}
77
+ export interface AuthenticatorAssertionResponse {
78
+ /** JSON representation of the client data. */
79
+ client_data_json?: string | undefined;
80
+ /** Data about the authenticator that performed the authentication. */
81
+ authenticator_data?: string | undefined;
82
+ /** Signature by the authenticator key of the authentication ceremony data. */
83
+ signature?: string | undefined;
84
+ }
85
+ export interface AuthenticationResponse {
86
+ /** Unique identifier of the key used by the authenticator. */
87
+ raw_id?: string | undefined;
88
+ /** Response provided by the authenticator to the authentication challenge. */
89
+ response: AuthenticatorAssertionResponse;
90
+ }
91
+ export interface FinishWebAuthnAuthenticatorUpgradeRequest {
92
+ /** ID of the user. */
93
+ user_id?: string | undefined;
94
+ /** ID of the WebAuthn authenticator to upgrade. */
95
+ authenticator_id?: string | undefined;
96
+ /** ID of the upgrade ceremony. */
97
+ ceremony_id?: string | undefined;
98
+ /** Response to the upgrade challenge. */
99
+ authentication_response?: AuthenticationResponse | undefined;
100
+ /** The domain on which the upgrade is occurring. */
101
+ origin?: string | undefined;
102
+ }
103
+ export type FinishWebAuthnAuthenticatorUpgradeResponse2 = unknown;
104
+ export interface AuthenticatorAttestationResponse {
105
+ /** JSON representation of the client data. */
106
+ client_data_json?: string | undefined;
107
+ /** Data about the authenticator that performed the authentication. */
108
+ authenticator_data?: string | undefined;
109
+ /** Public key that allows to verify signature. */
110
+ public_key?: string | undefined;
111
+ /** Algorithm used for the signature (see https://www.iana.org/assignments/cose/cose.xhtml#algorithms). */
112
+ public_key_algorithm?: number | undefined;
113
+ /** Attestation Object. */
114
+ attestation_object?: string | undefined;
115
+ }
116
+ export interface RegistrationResponse {
117
+ /** Unique identifier of the key used by the authenticator. */
118
+ raw_id?: string | undefined;
119
+ /** Response provided by the authenticator to the authentication challenge. */
120
+ response?: AuthenticatorAttestationResponse | undefined;
121
+ }
122
+ export interface FinishWebAuthnRegistrationRequest {
123
+ /** ID of the user. */
124
+ user_id?: string | undefined;
125
+ /** ID of the ceremony. */
126
+ ceremony_id?: string | undefined;
127
+ /** Response to the challenge. */
128
+ registration_response?: RegistrationResponse | undefined;
129
+ /** Name of the WebAuthn Authenticator to create. */
130
+ authenticator_name?: string | undefined;
131
+ /** The domain on which the registration is occurring. */
132
+ origin?: string | undefined;
133
+ }
134
+ export interface FinishWebAuthnRegistrationResponse {
135
+ /** ID of the WebAuthn authenticator. */
136
+ authenticator_id?: string | undefined;
137
+ /** Set to true when the authenticator was created with UV verification. This indicates that the authenticator supports user verification and was verified during registration. */
138
+ uv_verified?: boolean | undefined;
139
+ }
140
+ export interface GetUserRequest {
141
+ /** ID of the user. */
142
+ user_id: string;
143
+ }
144
+ export interface UserMFAMethods {
145
+ /** True if the user has setup a TOTP. */
146
+ totp?: boolean | undefined;
147
+ /** True if the user has at least one WebAuthn authenticator. */
148
+ web_authn?: boolean | undefined;
149
+ }
150
+ export type ScalewayStdLanguageCode = "unknown_language_code" | "en_US" | "fr_FR" | "de_DE";
151
+ export interface User {
152
+ /** ID of the user. (UUID format) */
153
+ id?: string | undefined;
154
+ /** First name of the user. */
155
+ first_name?: string | undefined;
156
+ /** Last name of the user. */
157
+ last_name?: string | undefined;
158
+ /** Email of the user. */
159
+ email?: string | undefined;
160
+ /** Phone number of the user. */
161
+ phone_number?: string | undefined;
162
+ /** Date the user was created. (RFC 3339 format) */
163
+ created_at?: string | null | undefined;
164
+ /** Date the user was updated. (RFC 3339 format) */
165
+ updated_at?: string | null | undefined;
166
+ /** Defines whether multi-factor authentication is enabled for the user. */
167
+ mfa?: boolean | undefined;
168
+ /** Defines for each multi-factor authentication method whether the user has it enabled or not. */
169
+ mfa_methods?: UserMFAMethods | undefined;
170
+ /** Locale of the user. */
171
+ locale?: ScalewayStdLanguageCode | undefined;
172
+ /** Defines whether the user has a password set. */
173
+ has_password?: boolean | undefined;
174
+ /** Defines whether the user has a professional email or not. */
175
+ is_professional_email?: boolean | undefined;
176
+ /** The SRN of the usr. */
177
+ srn?: string | undefined;
178
+ }
179
+ export interface GetUserPreferencesRequest {
180
+ /** ID of the user. (UUID format) */
181
+ user_id: string;
182
+ }
183
+ export type UserPreferencesConsoleTheme =
184
+ | "unknown_console_theme"
185
+ | "light"
186
+ | "dark"
187
+ | "system"
188
+ | "darker";
189
+ /** Pinned products. */
190
+ export type UserPreferencesPinnedProductsList = Array<string>;
191
+ export type UserPreferencesSideBarTemplate =
192
+ | "unknown_side_bar_template"
193
+ | "default_template"
194
+ | "web_cloud";
195
+ export type UserPreferencesProductsToDisplayProductsIdMap = { [key: string]: boolean | undefined };
196
+ export interface UserPreferencesProductsToDisplay {
197
+ products_id?: UserPreferencesProductsToDisplayProductsIdMap | undefined;
198
+ }
199
+ export interface UserPreferences {
200
+ /** ID of the user. (UUID format) */
201
+ user_id?: string | undefined;
202
+ /** Console theme preference. */
203
+ console_theme?: UserPreferencesConsoleTheme | undefined;
204
+ /** Pinned products. */
205
+ pinned_products?: UserPreferencesPinnedProductsList | undefined;
206
+ /** Send SMS on login from a new IP. */
207
+ send_sms_new_ip_login?: boolean | undefined;
208
+ /** Receive SMS notifications. */
209
+ receive_sms_notifications?: boolean | undefined;
210
+ /** Selected sidebar template (e.g. default, web_cloud). Precisely one of predefined_template, custom_template can be set. */
211
+ predefined_template?: UserPreferencesSideBarTemplate | null | undefined;
212
+ /** Custom sidebar configuration defining which products are visible. Precisely one of predefined_template, custom_template can be set. */
213
+ custom_template?: UserPreferencesProductsToDisplay | null | undefined;
214
+ }
215
+ export type ListMailingListSubscriptionsRequestOrderBy = "name_asc" | "name_desc";
216
+ export interface ListMailingListSubscriptionsRequest {
217
+ /** ID of the user. (UUID format) */
218
+ user_id: string;
219
+ /** ID of the organization. Must be defined if you want to list mailing lists subscriptions related to the organization. (UUID format) */
220
+ organization_id?: string | undefined;
221
+ /** Page number to return, from the paginated results. */
222
+ page?: number | undefined;
223
+ /** Number of mailing list subscriptions to return. */
224
+ page_size?: number | undefined;
225
+ /** Sort order of mailing list subscriptions in the response. */
226
+ order_by?: ListMailingListSubscriptionsRequestOrderBy | (string & {}) | undefined;
227
+ }
228
+ export type MailingListSubscriptionType = "unknown_type" | "newsletter";
229
+ export interface MailingListSubscription {
230
+ /** ID of the mailing list. (UUID format) */
231
+ id?: string | undefined;
232
+ /** Name of the mailing list. */
233
+ name?: string | undefined;
234
+ /** Description of the mailing list. */
235
+ description?: string | undefined;
236
+ /** Status of the subscription. */
237
+ subscribed?: boolean | undefined;
238
+ /** Type of the subscription. */
239
+ type?: MailingListSubscriptionType | undefined;
240
+ /** The SRN of the mailing list. */
241
+ srn?: string | undefined;
242
+ }
243
+ /** List of mailing list subscriptions. */
244
+ export type ListMailingListSubscriptionsResponseMailingListSubscriptionsList =
245
+ Array<MailingListSubscription>;
246
+ export interface ListMailingListSubscriptionsResponse {
247
+ /** Number of mailing list subscriptions. */
248
+ total_count?: number | undefined;
249
+ /** List of mailing list subscriptions. */
250
+ mailing_list_subscriptions: ListMailingListSubscriptionsResponseMailingListSubscriptionsList;
251
+ }
252
+ export type ListMFAOTPsRequestOrderBy = "created_at_asc" | "created_at_desc";
253
+ export interface ListMFAOTPsRequest {
254
+ /** Page number for the returned MFA OTPs. */
255
+ page?: number | undefined;
256
+ /** Maximum number of MFA OTP per page. */
257
+ page_size?: number | undefined;
258
+ /** Sort order of the returned MFA OTPs. */
259
+ order_by?: ListMFAOTPsRequestOrderBy | (string & {}) | undefined;
260
+ /** Filter out by a user ID. (UUID format) */
261
+ user_id: string;
262
+ }
263
+ /** Paginated returned MFA OTPs. */
264
+ export type ListMFAOTPsResponseMfaOtpsList = Array<MFAOTP>;
265
+ export interface ListMFAOTPsResponse {
266
+ /** Total number of MFA OTPs. */
267
+ total_count?: number | undefined;
268
+ /** Paginated returned MFA OTPs. */
269
+ mfa_otps: ListMFAOTPsResponseMfaOtpsList;
270
+ }
271
+ export type ListUserOrganizationsRequestOrderBy = "name_asc" | "name_desc";
272
+ export interface ListUserOrganizationsRequest {
273
+ /** ID of the user. (UUID format) */
274
+ user_id: string;
275
+ /** Page number to return, from the paginated results. */
276
+ page?: number | undefined;
277
+ /** Number of Organization summaries to return. */
278
+ page_size?: number | undefined;
279
+ /** Sort order of Organization summaries in the response. */
280
+ order_by?: ListUserOrganizationsRequestOrderBy | (string & {}) | undefined;
281
+ }
282
+ export type OrganizationType = "unknown_type" | "individual" | "professional" | "internal";
283
+ export type OrganizationCorporateIndustry =
284
+ | "unknown_corporate_industry"
285
+ | "consulting_services"
286
+ | "cybersecurity_software"
287
+ | "ecommerce_retail"
288
+ | "education"
289
+ | "energy"
290
+ | "financial_services_insurance"
291
+ | "gaming_entertainment"
292
+ | "hospitality_leisure"
293
+ | "lifescience_healthcare_pharmaceuticals"
294
+ | "manufacturing"
295
+ | "media_press_tv"
296
+ | "public_sector"
297
+ | "telecommunications"
298
+ | "technology"
299
+ | "other";
300
+ export interface OrganizationSummary {
301
+ /** ID of the Organization. (UUID format) */
302
+ id?: string | undefined;
303
+ /** Name of the Organization. */
304
+ name?: string | undefined;
305
+ /** Defines whether the user_id created the Organization. */
306
+ owner?: boolean | undefined;
307
+ /** Defines whether we have locking warnings. */
308
+ locked?: boolean | undefined;
309
+ /** Defines whether MFA is required for the Organization. */
310
+ mfa_enforced?: boolean | undefined;
311
+ /** Organization's picture URL. */
312
+ picture_link?: string | null | undefined;
313
+ /** Organization Type. */
314
+ organization_type?: OrganizationType | undefined;
315
+ /** Organization Corporate Industry. */
316
+ corporate_industry?: OrganizationCorporateIndustry | undefined;
317
+ /** Deprecated. Defines whether the organization is a startup. */
318
+ is_startup?: boolean | undefined;
319
+ /** The SRN of the organization. */
320
+ srn?: string | undefined;
321
+ }
322
+ /** List of user's Organization summaries. */
323
+ export type ListUserOrganizationsResponseOrganizationsList = Array<OrganizationSummary>;
324
+ export interface ListUserOrganizationsResponse {
325
+ /** List of user's Organization summaries. */
326
+ organizations: ListUserOrganizationsResponseOrganizationsList;
327
+ /** Total count of Organization summaries. */
328
+ total_count?: number | undefined;
329
+ }
330
+ export type ListUserWebAuthnAuthenticatorsRequestOrderBy =
331
+ | "created_at_asc"
332
+ | "created_at_desc"
333
+ | "uv_verified_asc"
334
+ | "uv_verified_desc"
335
+ | "name_asc"
336
+ | "name_desc"
337
+ | "last_login_at_asc"
338
+ | "last_login_at_desc";
339
+ export interface ListUserWebAuthnAuthenticatorsRequest {
340
+ /** ID of the user. */
341
+ user_id: string;
342
+ /** Page number to return. */
343
+ page?: number | undefined;
344
+ /** Number of WebAuthn Authenticators to return. */
345
+ page_size?: number | undefined;
346
+ /** Sort order of WebAuthn Authenticators in the response. */
347
+ order_by?: ListUserWebAuthnAuthenticatorsRequestOrderBy | (string & {}) | undefined;
348
+ /** If set, filters authenticators by uv verified status. */
349
+ uv_verified?: boolean | undefined;
350
+ }
351
+ export interface WebAuthnAuthenticator {
352
+ /** ID of the WebAuthn Authenticator. */
353
+ id?: string | undefined;
354
+ /** Name of the WebAuthn Authenticator. */
355
+ name?: string | undefined;
356
+ /** Date the WebAuthn Authenticator was created. (RFC 3339 format) */
357
+ created_at?: string | null | undefined;
358
+ /** Date the WebAuthn Authenticator was last successfully used for a LogIn. Date the WebAuthn Authenticator was last successfully used for a LogIn, will be omitted if the WebAuthn Authenticator has never been used. (RFC 3339 format) */
359
+ last_login_at?: string | null | undefined;
360
+ /** Indicates whether the authenticator has been verified to perform User Verification (UV) by the legitimate owner. This flag prevents an attack where a lost, non-UV authenticator (e.g., a PIN-less hardware key used only as a second factor) is found by an attacker who then adds a PIN to it to bypass MFA via a passwordless login. To mitigate this, the system will not trust the authenticator for single-factor (passwordless) login until it successfully performs UV in conjunction with another trusted factor. */
361
+ uv_verified?: boolean | undefined;
362
+ }
363
+ /** List of the user's WebAuthn Authenticators. */
364
+ export type ListUserWebAuthnAuthenticatorsResponseAuthenticatorsList = Array<WebAuthnAuthenticator>;
365
+ export interface ListUserWebAuthnAuthenticatorsResponse {
366
+ /** List of the user's WebAuthn Authenticators. */
367
+ authenticators: ListUserWebAuthnAuthenticatorsResponseAuthenticatorsList;
368
+ /** Total count of WebAuthn Authenticators. */
369
+ total_count?: number | undefined;
370
+ }
371
+ export interface SendPhoneValidationRequest {
372
+ /** ID of the user. (UUID format) */
373
+ user_id?: string | undefined;
374
+ /** Phone number to validate. Must be in international format (E.164). */
375
+ phone_number?: string | undefined;
376
+ }
377
+ export interface PhoneValidation {
378
+ /** ID of the phone validation. (UUID format) */
379
+ id?: string | undefined;
380
+ /** The SRN of the phone validation. */
381
+ srn?: string | undefined;
382
+ }
383
+ /** Map of mailing list subscriptions IDs with their subscription status. */
384
+ export type SetMailingListSubscriptionsRequestMailingListSubscribedMap = {
385
+ [key: string]: boolean | undefined;
386
+ };
387
+ export interface SetMailingListSubscriptionsRequest {
388
+ /** ID of the user. (UUID format) */
389
+ user_id: string;
390
+ /** Map of mailing list subscriptions IDs with their subscription status. */
391
+ mailing_list_subscribed?: SetMailingListSubscriptionsRequestMailingListSubscribedMap | undefined;
392
+ /** ID of the organization. Must be defined if you want to set mailing list subscriptions related to the organization. (UUID format) */
393
+ organization_id?: string | null | undefined;
394
+ }
395
+ /** List of mailing list subscriptions. */
396
+ export type SetMailingListSubscriptionsResponseMailingListSubscriptionsList =
397
+ Array<MailingListSubscription>;
398
+ export interface SetMailingListSubscriptionsResponse {
399
+ /** List of mailing list subscriptions. */
400
+ mailing_list_subscriptions?:
401
+ | SetMailingListSubscriptionsResponseMailingListSubscriptionsList
402
+ | undefined;
403
+ }
404
+ export interface StartWebAuthnAuthenticatorUpgradeRequest {
405
+ /** ID of the user. */
406
+ user_id?: string | undefined;
407
+ /** ID of the WebAuthn authenticator to upgrade. */
408
+ authenticator_id?: string | undefined;
409
+ /** The domain on which the upgrade is occurring. */
410
+ origin?: string | undefined;
411
+ }
412
+ export interface PublicKeyCredentialDescriptor {
413
+ /** Unique identifier of the key. */
414
+ id?: string | undefined;
415
+ }
416
+ /** List of credentials, if any, which can be used to perform the ceremony. */
417
+ export type PublicKeyCredentialRequestOptionsAllowCredentialsList =
418
+ Array<PublicKeyCredentialDescriptor>;
419
+ export type UserVerificationRequirement =
420
+ | "user_verification_requirement_unknown"
421
+ | "user_verification_requirement_required"
422
+ | "user_verification_requirement_preferred"
423
+ | "user_verification_requirement_discouraged";
424
+ export interface PublicKeyCredentialRequestOptions {
425
+ /** Random bytes constituting the challenge to solve for the credentials assertion. */
426
+ challenge?: string | undefined;
427
+ /** Maximum duration of the authentication ceremony (milliseconds). */
428
+ timeout?: number | undefined;
429
+ /** List of credentials, if any, which can be used to perform the ceremony. */
430
+ allow_credentials?: PublicKeyCredentialRequestOptionsAllowCredentialsList | undefined;
431
+ /** User verification requirement for this authentication ceremony. */
432
+ user_verification?: UserVerificationRequirement | undefined;
433
+ }
434
+ export interface StartWebAuthnAuthenticatorUpgradeResponse {
435
+ /** ID of the upgrade ceremony. */
436
+ ceremony_id?: string | undefined;
437
+ /** Challenge details for the upgrade. */
438
+ public_key_credential_request_options?: PublicKeyCredentialRequestOptions | undefined;
439
+ }
440
+ export interface StartWebAuthnRegistrationRequest {
441
+ /** ID of the user. */
442
+ user_id?: string | undefined;
443
+ /** The domain on which the registration is occurring. */
444
+ origin?: string | undefined;
445
+ }
446
+ export interface PublicKeyCredentialParameters {
447
+ /** COSE identifier of the algorithm (see https://www.iana.org/assignments/cose/cose.xhtml#algorithms). */
448
+ alg?: number | undefined;
449
+ }
450
+ /** List of algorithms supported by the relying party. */
451
+ export type PublicKeyCredentialCreationOptionsPubKeyCredParamsList =
452
+ Array<PublicKeyCredentialParameters>;
453
+ /** List of credentials that cannot be used to fulfill the ceremony. */
454
+ export type PublicKeyCredentialCreationOptionsExcludeCredentialsList =
455
+ Array<PublicKeyCredentialDescriptor>;
456
+ export interface PublicKeyCredentialCreationOptions {
457
+ /** Random bytes constituting the challenge to solve for the credentials creation. */
458
+ challenge?: string | undefined;
459
+ /** List of algorithms supported by the relying party. */
460
+ pub_key_cred_params?: PublicKeyCredentialCreationOptionsPubKeyCredParamsList | undefined;
461
+ /** Maximum duration of the registration ceremony (milliseconds). */
462
+ timeout?: number | undefined;
463
+ /** List of credentials that cannot be used to fulfill the ceremony. */
464
+ exclude_credentials?: PublicKeyCredentialCreationOptionsExcludeCredentialsList | undefined;
465
+ }
466
+ export interface StartWebAuthnRegistrationResponse {
467
+ /** ID of the ceremony. */
468
+ id?: string | undefined;
469
+ /** Challenge details for registration. */
470
+ public_key_credential_creation_options?: PublicKeyCredentialCreationOptions | undefined;
471
+ }
472
+ export interface UpdateUserRequest {
473
+ /** ID of the user. (UUID format) */
474
+ user_id: string;
475
+ /** First name of the user. */
476
+ first_name?: string | null | undefined;
477
+ /** Last name of the user. */
478
+ last_name?: string | null | undefined;
479
+ /** Locale of the user. */
480
+ locale?: ScalewayStdLanguageCode | (string & {}) | undefined;
481
+ }
482
+ /** Pinned products. */
483
+ export type UpdateUserPreferencesRequestPinnedProductsList = Array<unknown>;
484
+ export interface UpdateUserPreferencesRequest {
485
+ /** ID of the user. (UUID format) */
486
+ user_id: string;
487
+ /** Console theme preference. */
488
+ console_theme?: UserPreferencesConsoleTheme | (string & {}) | undefined;
489
+ /** Pinned products. */
490
+ pinned_products?: UpdateUserPreferencesRequestPinnedProductsList | null | undefined;
491
+ /** Send SMS on login from a new IP. */
492
+ send_sms_new_ip_login?: boolean | null | undefined;
493
+ /** Receive SMS notifications. */
494
+ receive_sms_notifications?: boolean | null | undefined;
495
+ /** Pick a predefined sibe bar template. Precisely one of predefined_template, custom_template can be set. */
496
+ predefined_template?: UserPreferencesSideBarTemplate | (string & {}) | null | undefined;
497
+ /** Define a custom side bar. Precisely one of predefined_template, custom_template can be set. */
498
+ custom_template?: UserPreferencesProductsToDisplay | null | undefined;
499
+ }
500
+ export interface UpdateWebAuthnAuthenticatorRequest {
501
+ /** ID of the WebAuthn Authenticator to update. */
502
+ authenticator_id?: string | undefined;
503
+ /** New name for the WebAuthn Authenticator. */
504
+ authenticator_name?: string | null | undefined;
505
+ }
506
+ export interface ValidateMFAOTPRequest {
507
+ /** ID of the MFA OTP. (UUID format) */
508
+ mfa_otp_id: string;
509
+ /** One time password of the MFA OTP. */
510
+ otp?: string | Redacted.Redacted<string> | undefined;
511
+ }
512
+ /** Backup codes of the MFA OTP. */
513
+ export type ValidateMFAOTPResponseBackupCodesList = Array<string>;
514
+ export interface ValidateMFAOTPResponse {
515
+ /** Backup codes of the MFA OTP. */
516
+ backup_codes?: ValidateMFAOTPResponseBackupCodesList | undefined;
517
+ }
518
+ export type ChangeUserEmailError = ScalewayOpError;
519
+ /** Update user email Update the user email associated with the given ID. */
520
+ export const changeUserEmail: API.OperationMethod<
521
+ ChangeUserEmailRequest,
522
+ ChangeUserEmailResponse,
523
+ ChangeUserEmailError,
524
+ ScalewayOpContext
525
+ > = /*@__PURE__*/ API.make(() => ({
526
+ input: __S(0, __c0, 0) as any as S.Schema<ChangeUserEmailRequest>,
527
+ output: __S(1, __c0, 1) as any as S.Schema<ChangeUserEmailResponse>,
528
+ errors: [],
529
+ serviceErrors: ScalewayServiceErrors,
530
+ protocol: ScalewayProtocol,
531
+ retry: Retry.Retry,
532
+ telemetry: TELEMETRY,
533
+ span: "ChangeUserEmail",
534
+ }));
535
+
536
+ export type ChangeUserPasswordError = ScalewayOpError;
537
+ /** Update user password Update the user password associated with the given ID. */
538
+ export const changeUserPassword: API.OperationMethod<
539
+ ChangeUserPasswordRequest,
540
+ ChangeUserPasswordResponse,
541
+ ChangeUserPasswordError,
542
+ ScalewayOpContext
543
+ > = /*@__PURE__*/ API.make(() => ({
544
+ input: __S(8, __c1, 0) as any as S.Schema<ChangeUserPasswordRequest>,
545
+ output: __S(16, __c2, 0) as any as S.Schema<ChangeUserPasswordResponse>,
546
+ errors: [],
547
+ serviceErrors: ScalewayServiceErrors,
548
+ protocol: ScalewayProtocol,
549
+ retry: Retry.Retry,
550
+ telemetry: TELEMETRY,
551
+ span: "ChangeUserPassword",
552
+ }));
553
+
554
+ export type ConfirmPhoneValidationError = ScalewayOpError;
555
+ /** Confirm the phone number validation */
556
+ export const confirmPhoneValidation: API.OperationMethod<
557
+ ConfirmPhoneValidationRequest,
558
+ ConfirmPhoneValidationResponse,
559
+ ConfirmPhoneValidationError,
560
+ ScalewayOpContext
561
+ > = /*@__PURE__*/ API.make(() => ({
562
+ input: __S(128, __c16, 0) as any as S.Schema<ConfirmPhoneValidationRequest>,
563
+ output: __S(16, __c2, 0) as any as S.Schema<ConfirmPhoneValidationResponse>,
564
+ errors: [],
565
+ serviceErrors: ScalewayServiceErrors,
566
+ protocol: ScalewayProtocol,
567
+ retry: Retry.Retry,
568
+ telemetry: TELEMETRY,
569
+ span: "ConfirmPhoneValidation",
570
+ }));
571
+
572
+ export type CreateMFAOTPError = ScalewayOpError;
573
+ /** Create MFA OTP */
574
+ export const createMFAOTP: API.OperationMethod<
575
+ CreateMFAOTPRequest,
576
+ MFAOTP,
577
+ CreateMFAOTPError,
578
+ ScalewayOpContext
579
+ > = /*@__PURE__*/ API.make(() => ({
580
+ input: __S(152, __c19, 0) as any as S.Schema<CreateMFAOTPRequest>,
581
+ output: __S(160, __c20, 0) as any as S.Schema<MFAOTP>,
582
+ errors: [],
583
+ serviceErrors: ScalewayServiceErrors,
584
+ protocol: ScalewayProtocol,
585
+ retry: Retry.Retry,
586
+ telemetry: TELEMETRY,
587
+ span: "CreateMFAOTP",
588
+ }));
589
+
590
+ export type DeleteMFAOTPError = ScalewayOpError;
591
+ /** Delete MFA OTP */
592
+ export const deleteMFAOTP: API.OperationMethod<
593
+ DeleteMFAOTPRequest,
594
+ DeleteMFAOTPResponse,
595
+ DeleteMFAOTPError,
596
+ ScalewayOpContext
597
+ > = /*@__PURE__*/ API.make(() => ({
598
+ input: __S(168, __c21, 0) as any as S.Schema<DeleteMFAOTPRequest>,
599
+ output: __S(16, __c2, 0) as any as S.Schema<DeleteMFAOTPResponse>,
600
+ errors: [],
601
+ serviceErrors: ScalewayServiceErrors,
602
+ protocol: ScalewayProtocol,
603
+ retry: Retry.Retry,
604
+ telemetry: TELEMETRY,
605
+ span: "DeleteMFAOTP",
606
+ }));
607
+
608
+ export type DeleteWebAuthnAuthenticatorError = ScalewayOpError;
609
+ /** Delete WebAuthn Authenticator Delete the WebAuthn authenticator with the given ID. */
610
+ export const deleteWebAuthnAuthenticator: API.OperationMethod<
611
+ DeleteWebAuthnAuthenticatorRequest,
612
+ DeleteWebAuthnAuthenticatorResponse,
613
+ DeleteWebAuthnAuthenticatorError,
614
+ ScalewayOpContext
615
+ > = /*@__PURE__*/ API.make(() => ({
616
+ input: __S(176, __c22, 0) as any as S.Schema<DeleteWebAuthnAuthenticatorRequest>,
617
+ output: __S(16, __c2, 0) as any as S.Schema<DeleteWebAuthnAuthenticatorResponse>,
618
+ errors: [],
619
+ serviceErrors: ScalewayServiceErrors,
620
+ protocol: ScalewayProtocol,
621
+ retry: Retry.Retry,
622
+ telemetry: TELEMETRY,
623
+ span: "DeleteWebAuthnAuthenticator",
624
+ }));
625
+
626
+ export type FinishWebAuthnAuthenticatorUpgradeError = ScalewayOpError;
627
+ /** Finish WebAuthn Authenticator Upgrade Finish a WebAuthn authenticator upgrade ceremony. On success, the authenticator's UV status is upgraded. */
628
+ export const finishWebAuthnAuthenticatorUpgrade: API.OperationMethod<
629
+ FinishWebAuthnAuthenticatorUpgradeRequest,
630
+ FinishWebAuthnAuthenticatorUpgradeResponse2,
631
+ FinishWebAuthnAuthenticatorUpgradeError,
632
+ ScalewayOpContext
633
+ > = /*@__PURE__*/ API.make(() => ({
634
+ input: __S(186, __c23, 2) as any as S.Schema<FinishWebAuthnAuthenticatorUpgradeRequest>,
635
+ output: __S(187, __c23, 3) as any as S.Schema<FinishWebAuthnAuthenticatorUpgradeResponse2>,
636
+ errors: [],
637
+ serviceErrors: ScalewayServiceErrors,
638
+ protocol: ScalewayProtocol,
639
+ retry: Retry.Retry,
640
+ telemetry: TELEMETRY,
641
+ span: "FinishWebAuthnAuthenticatorUpgrade",
642
+ }));
643
+
644
+ export type FinishWebAuthnRegistrationError = ScalewayOpError;
645
+ /** Finish WebAuthn Registration Finish a WebAuthn registration ceremony for the given user and ceremony IDs. */
646
+ export const finishWebAuthnRegistration: API.OperationMethod<
647
+ FinishWebAuthnRegistrationRequest,
648
+ FinishWebAuthnRegistrationResponse,
649
+ FinishWebAuthnRegistrationError,
650
+ ScalewayOpContext
651
+ > = /*@__PURE__*/ API.make(() => ({
652
+ input: __S(194, __c24, 2) as any as S.Schema<FinishWebAuthnRegistrationRequest>,
653
+ output: __S(195, __c24, 3) as any as S.Schema<FinishWebAuthnRegistrationResponse>,
654
+ errors: [],
655
+ serviceErrors: ScalewayServiceErrors,
656
+ protocol: ScalewayProtocol,
657
+ retry: Retry.Retry,
658
+ telemetry: TELEMETRY,
659
+ span: "FinishWebAuthnRegistration",
660
+ }));
661
+
662
+ export type GetUserError = ScalewayOpError;
663
+ /** Get user information Get the user associated with the given ID. */
664
+ export const getUser: API.OperationMethod<GetUserRequest, User, GetUserError, ScalewayOpContext> =
665
+ /*@__PURE__*/ API.make(() => ({
666
+ input: __S(200, __c25, 0) as any as S.Schema<GetUserRequest>,
667
+ output: __S(209, __c26, 1) as any as S.Schema<User>,
668
+ errors: [],
669
+ serviceErrors: ScalewayServiceErrors,
670
+ protocol: ScalewayProtocol,
671
+ retry: Retry.Retry,
672
+ telemetry: TELEMETRY,
673
+ span: "GetUser",
674
+ }));
675
+
676
+ export type GetUserPreferencesError = ScalewayOpError;
677
+ /** Get User Preferences */
678
+ export const getUserPreferences: API.OperationMethod<
679
+ GetUserPreferencesRequest,
680
+ UserPreferences,
681
+ GetUserPreferencesError,
682
+ ScalewayOpContext
683
+ > = /*@__PURE__*/ API.make(() => ({
684
+ input: __S(216, __c27, 0) as any as S.Schema<GetUserPreferencesRequest>,
685
+ output: __S(233, __c29, 1) as any as S.Schema<UserPreferences>,
686
+ errors: [],
687
+ serviceErrors: ScalewayServiceErrors,
688
+ protocol: ScalewayProtocol,
689
+ retry: Retry.Retry,
690
+ telemetry: TELEMETRY,
691
+ span: "GetUserPreferences",
692
+ }));
693
+
694
+ export type ListMailingListSubscriptionsError = ScalewayOpError;
695
+ /** List mailing list subscriptions */
696
+ export const listMailingListSubscriptions: API.PaginatedOperationMethod<
697
+ ListMailingListSubscriptionsRequest,
698
+ ListMailingListSubscriptionsResponse,
699
+ ListMailingListSubscriptionsError,
700
+ ScalewayOpContext,
701
+ MailingListSubscription
702
+ > = /*@__PURE__*/ API.makePaginated(
703
+ () => ({
704
+ input: __S(24, __c3, 0) as any as S.Schema<ListMailingListSubscriptionsRequest>,
705
+ output: __S(25, __c3, 1) as any as S.Schema<ListMailingListSubscriptionsResponse>,
706
+ errors: [],
707
+ serviceErrors: ScalewayServiceErrors,
708
+ protocol: ScalewayProtocol,
709
+ retry: Retry.Retry,
710
+ telemetry: TELEMETRY,
711
+ span: "ListMailingListSubscriptions",
712
+ pagination: {
713
+ mode: "page",
714
+ inputToken: "page",
715
+ outputToken: "total_count",
716
+ items: "mailing_list_subscriptions",
717
+ pageSize: "page_size",
718
+ } as const,
719
+ }),
720
+ paginateByTotalCount,
721
+ ) as any;
722
+
723
+ export type ListMFAOTPsError = ScalewayOpError;
724
+ /** List MFA OTPs */
725
+ export const listMFAOTPs: API.PaginatedOperationMethod<
726
+ ListMFAOTPsRequest,
727
+ ListMFAOTPsResponse,
728
+ ListMFAOTPsError,
729
+ ScalewayOpContext,
730
+ MFAOTP
731
+ > = /*@__PURE__*/ API.makePaginated(
732
+ () => ({
733
+ input: __S(40, __c5, 0) as any as S.Schema<ListMFAOTPsRequest>,
734
+ output: __S(42, __c5, 2) as any as S.Schema<ListMFAOTPsResponse>,
735
+ errors: [],
736
+ serviceErrors: ScalewayServiceErrors,
737
+ protocol: ScalewayProtocol,
738
+ retry: Retry.Retry,
739
+ telemetry: TELEMETRY,
740
+ span: "ListMFAOTPs",
741
+ pagination: {
742
+ mode: "page",
743
+ inputToken: "page",
744
+ outputToken: "total_count",
745
+ items: "mfa_otps",
746
+ pageSize: "page_size",
747
+ } as const,
748
+ }),
749
+ paginateByTotalCount,
750
+ ) as any;
751
+
752
+ export type ListUserOrganizationsError = ScalewayOpError;
753
+ /** Organizations of the user Get the list of Organizations associated with the given user ID. */
754
+ export const listUserOrganizations: API.PaginatedOperationMethod<
755
+ ListUserOrganizationsRequest,
756
+ ListUserOrganizationsResponse,
757
+ ListUserOrganizationsError,
758
+ ScalewayOpContext,
759
+ OrganizationSummary
760
+ > = /*@__PURE__*/ API.makePaginated(
761
+ () => ({
762
+ input: __S(48, __c6, 0) as any as S.Schema<ListUserOrganizationsRequest>,
763
+ output: __S(51, __c6, 3) as any as S.Schema<ListUserOrganizationsResponse>,
764
+ errors: [],
765
+ serviceErrors: ScalewayServiceErrors,
766
+ protocol: ScalewayProtocol,
767
+ retry: Retry.Retry,
768
+ telemetry: TELEMETRY,
769
+ span: "ListUserOrganizations",
770
+ pagination: {
771
+ mode: "page",
772
+ inputToken: "page",
773
+ outputToken: "total_count",
774
+ items: "organizations",
775
+ pageSize: "page_size",
776
+ } as const,
777
+ }),
778
+ paginateByTotalCount,
779
+ ) as any;
780
+
781
+ export type ListUserWebAuthnAuthenticatorsError = ScalewayOpError;
782
+ export const listUserWebAuthnAuthenticators: API.PaginatedOperationMethod<
783
+ ListUserWebAuthnAuthenticatorsRequest,
784
+ ListUserWebAuthnAuthenticatorsResponse,
785
+ ListUserWebAuthnAuthenticatorsError,
786
+ ScalewayOpContext,
787
+ WebAuthnAuthenticator
788
+ > = /*@__PURE__*/ API.makePaginated(
789
+ () => ({
790
+ input: __S(56, __c7, 0) as any as S.Schema<ListUserWebAuthnAuthenticatorsRequest>,
791
+ output: __S(58, __c7, 2) as any as S.Schema<ListUserWebAuthnAuthenticatorsResponse>,
792
+ errors: [],
793
+ serviceErrors: ScalewayServiceErrors,
794
+ protocol: ScalewayProtocol,
795
+ retry: Retry.Retry,
796
+ telemetry: TELEMETRY,
797
+ span: "ListUserWebAuthnAuthenticators",
798
+ pagination: {
799
+ mode: "page",
800
+ inputToken: "page",
801
+ outputToken: "total_count",
802
+ items: "authenticators",
803
+ pageSize: "page_size",
804
+ } as const,
805
+ }),
806
+ paginateByTotalCount,
807
+ ) as any;
808
+
809
+ export type SendPhoneValidationError = ScalewayOpError;
810
+ /** Send a phone number for validation */
811
+ export const sendPhoneValidation: API.OperationMethod<
812
+ SendPhoneValidationRequest,
813
+ PhoneValidation,
814
+ SendPhoneValidationError,
815
+ ScalewayOpContext
816
+ > = /*@__PURE__*/ API.make(() => ({
817
+ input: __S(72, __c9, 0) as any as S.Schema<SendPhoneValidationRequest>,
818
+ output: __S(73, __c9, 1) as any as S.Schema<PhoneValidation>,
819
+ errors: [],
820
+ serviceErrors: ScalewayServiceErrors,
821
+ protocol: ScalewayProtocol,
822
+ retry: Retry.Retry,
823
+ telemetry: TELEMETRY,
824
+ span: "SendPhoneValidation",
825
+ }));
826
+
827
+ export type SetMailingListSubscriptionsError = ScalewayOpError;
828
+ /** Set mailing list subscriptions */
829
+ export const setMailingListSubscriptions: API.OperationMethod<
830
+ SetMailingListSubscriptionsRequest,
831
+ SetMailingListSubscriptionsResponse,
832
+ SetMailingListSubscriptionsError,
833
+ ScalewayOpContext
834
+ > = /*@__PURE__*/ API.make(() => ({
835
+ input: __S(80, __c10, 0) as any as S.Schema<SetMailingListSubscriptionsRequest>,
836
+ output: __S(81, __c10, 1) as any as S.Schema<SetMailingListSubscriptionsResponse>,
837
+ errors: [],
838
+ serviceErrors: ScalewayServiceErrors,
839
+ protocol: ScalewayProtocol,
840
+ retry: Retry.Retry,
841
+ telemetry: TELEMETRY,
842
+ span: "SetMailingListSubscriptions",
843
+ }));
844
+
845
+ export type StartWebAuthnAuthenticatorUpgradeError = ScalewayOpError;
846
+ /** Start WebAuthn Authenticator Upgrade Start a WebAuthn authenticator upgrade ceremony to add user verification (UV) to an existing authenticator. */
847
+ export const startWebAuthnAuthenticatorUpgrade: API.OperationMethod<
848
+ StartWebAuthnAuthenticatorUpgradeRequest,
849
+ StartWebAuthnAuthenticatorUpgradeResponse,
850
+ StartWebAuthnAuthenticatorUpgradeError,
851
+ ScalewayOpContext
852
+ > = /*@__PURE__*/ API.make(() => ({
853
+ input: __S(88, __c11, 0) as any as S.Schema<StartWebAuthnAuthenticatorUpgradeRequest>,
854
+ output: __S(90, __c11, 2) as any as S.Schema<StartWebAuthnAuthenticatorUpgradeResponse>,
855
+ errors: [],
856
+ serviceErrors: ScalewayServiceErrors,
857
+ protocol: ScalewayProtocol,
858
+ retry: Retry.Retry,
859
+ telemetry: TELEMETRY,
860
+ span: "StartWebAuthnAuthenticatorUpgrade",
861
+ }));
862
+
863
+ export type StartWebAuthnRegistrationError = ScalewayOpError;
864
+ /** Start WebAuthn Registration Start a WebAuthn registration ceremony for the given user ID. */
865
+ export const startWebAuthnRegistration: API.OperationMethod<
866
+ StartWebAuthnRegistrationRequest,
867
+ StartWebAuthnRegistrationResponse,
868
+ StartWebAuthnRegistrationError,
869
+ ScalewayOpContext
870
+ > = /*@__PURE__*/ API.make(() => ({
871
+ input: __S(104, __c13, 0) as any as S.Schema<StartWebAuthnRegistrationRequest>,
872
+ output: __S(108, __c13, 4) as any as S.Schema<StartWebAuthnRegistrationResponse>,
873
+ errors: [],
874
+ serviceErrors: ScalewayServiceErrors,
875
+ protocol: ScalewayProtocol,
876
+ retry: Retry.Retry,
877
+ telemetry: TELEMETRY,
878
+ span: "StartWebAuthnRegistration",
879
+ }));
880
+
881
+ export type UpdateUserError = ScalewayOpError;
882
+ /** Update user information Patch the user associated with the given ID. */
883
+ export const updateUser: API.OperationMethod<
884
+ UpdateUserRequest,
885
+ User,
886
+ UpdateUserError,
887
+ ScalewayOpContext
888
+ > = /*@__PURE__*/ API.make(() => ({
889
+ input: __S(112, __c14, 0) as any as S.Schema<UpdateUserRequest>,
890
+ output: __S(209, __c26, 1) as any as S.Schema<User>,
891
+ errors: [],
892
+ serviceErrors: ScalewayServiceErrors,
893
+ protocol: ScalewayProtocol,
894
+ retry: Retry.Retry,
895
+ telemetry: TELEMETRY,
896
+ span: "UpdateUser",
897
+ }));
898
+
899
+ export type UpdateUserPreferencesError = ScalewayOpError;
900
+ /** Update User Preferences */
901
+ export const updateUserPreferences: API.OperationMethod<
902
+ UpdateUserPreferencesRequest,
903
+ UserPreferences,
904
+ UpdateUserPreferencesError,
905
+ ScalewayOpContext
906
+ > = /*@__PURE__*/ API.make(() => ({
907
+ input: __S(121, __c15, 1) as any as S.Schema<UpdateUserPreferencesRequest>,
908
+ output: __S(233, __c29, 1) as any as S.Schema<UserPreferences>,
909
+ errors: [],
910
+ serviceErrors: ScalewayServiceErrors,
911
+ protocol: ScalewayProtocol,
912
+ retry: Retry.Retry,
913
+ telemetry: TELEMETRY,
914
+ span: "UpdateUserPreferences",
915
+ }));
916
+
917
+ export type UpdateWebAuthnAuthenticatorError = ScalewayOpError;
918
+ /** Update WebAuthn Authenticator Update the WebAuthn authenticator with the given ID. */
919
+ export const updateWebAuthnAuthenticator: API.OperationMethod<
920
+ UpdateWebAuthnAuthenticatorRequest,
921
+ WebAuthnAuthenticator,
922
+ UpdateWebAuthnAuthenticatorError,
923
+ ScalewayOpContext
924
+ > = /*@__PURE__*/ API.make(() => ({
925
+ input: __S(136, __c17, 0) as any as S.Schema<UpdateWebAuthnAuthenticatorRequest>,
926
+ output: __S(64, __c8, 0) as any as S.Schema<WebAuthnAuthenticator>,
927
+ errors: [],
928
+ serviceErrors: ScalewayServiceErrors,
929
+ protocol: ScalewayProtocol,
930
+ retry: Retry.Retry,
931
+ telemetry: TELEMETRY,
932
+ span: "UpdateWebAuthnAuthenticator",
933
+ }));
934
+
935
+ export type ValidateMFAOTPError = ScalewayOpError;
936
+ /** Validate MFA OTP */
937
+ export const validateMFAOTP: API.OperationMethod<
938
+ ValidateMFAOTPRequest,
939
+ ValidateMFAOTPResponse,
940
+ ValidateMFAOTPError,
941
+ ScalewayOpContext
942
+ > = /*@__PURE__*/ API.make(() => ({
943
+ input: __S(144, __c18, 0) as any as S.Schema<ValidateMFAOTPRequest>,
944
+ output: __S(145, __c18, 1) as any as S.Schema<ValidateMFAOTPResponse>,
945
+ errors: [],
946
+ serviceErrors: ScalewayServiceErrors,
947
+ protocol: ScalewayProtocol,
948
+ retry: Retry.Retry,
949
+ telemetry: TELEMETRY,
950
+ span: "ValidateMFAOTP",
951
+ }));
952
+
953
+ // Schema builders: each runs one schema initializer, on that schema's first use.
954
+ function __c0(j: number): any {
955
+ switch (j) {
956
+ case 0:
957
+ return S.suspend(() =>
958
+ S.Struct({
959
+ user_id: S.String.pipe(T.Label()),
960
+ email: S.optional(S.String),
961
+ }).pipe(
962
+ T.Http({
963
+ method: "POST",
964
+ uri: "/account/v3/users/{user_id}/change-email",
965
+ code: 200,
966
+ baseUrl: "https://api.scaleway.com",
967
+ }),
968
+ ),
969
+ ).annotate({ identifier: "ChangeUserEmailRequest" });
970
+ case 1:
971
+ return S.suspend(() =>
972
+ S.Struct({
973
+ pending_email: S.optional(S.String),
974
+ }),
975
+ ).annotate({ identifier: "ChangeUserEmailResponse" });
976
+ }
977
+ }
978
+ function __c1(j: number): any {
979
+ switch (j) {
980
+ case 0:
981
+ return S.suspend(() =>
982
+ S.Struct({
983
+ user_id: S.String.pipe(T.Label()),
984
+ new_password: S.optional(S.String.pipe(T.SensitiveValue({}))),
985
+ current_password: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
986
+ }).pipe(
987
+ T.Http({
988
+ method: "POST",
989
+ uri: "/account/v3/users/{user_id}/change-password",
990
+ code: 200,
991
+ baseUrl: "https://api.scaleway.com",
992
+ }),
993
+ ),
994
+ ).annotate({ identifier: "ChangeUserPasswordRequest" });
995
+ }
996
+ }
997
+ function __c2(j: number): any {
998
+ switch (j) {
999
+ case 0:
1000
+ return S.suspend(() => S.Struct({})).annotate({ identifier: "ChangeUserPasswordResponse" });
1001
+ }
1002
+ }
1003
+ function __c3(j: number): any {
1004
+ switch (j) {
1005
+ case 0:
1006
+ return S.suspend(() =>
1007
+ S.Struct({
1008
+ user_id: S.String.pipe(T.Label()),
1009
+ organization_id: S.optional(S.String.pipe(T.Query())),
1010
+ page: S.optional(S.Number.pipe(T.Query())),
1011
+ page_size: S.optional(S.Number.pipe(T.Query())),
1012
+ order_by: S.optional(S.String.pipe(T.Query())),
1013
+ }).pipe(
1014
+ T.Http({
1015
+ method: "GET",
1016
+ uri: "/account/v3/users/{user_id}/mailing-list-subscriptions",
1017
+ code: 200,
1018
+ baseUrl: "https://api.scaleway.com",
1019
+ }),
1020
+ ),
1021
+ ).annotate({ identifier: "ListMailingListSubscriptionsRequest" });
1022
+ case 1:
1023
+ return S.suspend(() =>
1024
+ S.Struct({
1025
+ total_count: S.optional(S.Number),
1026
+ mailing_list_subscriptions: __S(33, __c4, 1),
1027
+ }),
1028
+ ).annotate({ identifier: "ListMailingListSubscriptionsResponse" });
1029
+ }
1030
+ }
1031
+ function __c4(j: number): any {
1032
+ switch (j) {
1033
+ case 0:
1034
+ return S.suspend(() =>
1035
+ S.Struct({
1036
+ id: S.optional(S.String),
1037
+ name: S.optional(S.String),
1038
+ description: S.optional(S.String),
1039
+ subscribed: S.optional(S.Boolean),
1040
+ type: S.optional(S.String),
1041
+ srn: S.optional(S.String),
1042
+ }),
1043
+ ).annotate({ identifier: "MailingListSubscription" });
1044
+ case 1:
1045
+ return S.Array(__S(32, __c4, 0));
1046
+ }
1047
+ }
1048
+ function __c5(j: number): any {
1049
+ switch (j) {
1050
+ case 0:
1051
+ return S.suspend(() =>
1052
+ S.Struct({
1053
+ page: S.optional(S.Number.pipe(T.Query())),
1054
+ page_size: S.optional(S.Number.pipe(T.Query())),
1055
+ order_by: S.optional(S.String.pipe(T.Query())),
1056
+ user_id: S.String.pipe(T.Query()),
1057
+ }).pipe(
1058
+ T.Http({
1059
+ method: "GET",
1060
+ uri: "/account/v3/mfa/otps",
1061
+ code: 200,
1062
+ baseUrl: "https://api.scaleway.com",
1063
+ }),
1064
+ ),
1065
+ ).annotate({ identifier: "ListMFAOTPsRequest" });
1066
+ case 1:
1067
+ return S.Array(__S(160, __c20, 0));
1068
+ case 2:
1069
+ return S.suspend(() =>
1070
+ S.Struct({
1071
+ total_count: S.optional(S.Number),
1072
+ mfa_otps: __S(41, __c5, 1),
1073
+ }),
1074
+ ).annotate({ identifier: "ListMFAOTPsResponse" });
1075
+ }
1076
+ }
1077
+ function __c6(j: number): any {
1078
+ switch (j) {
1079
+ case 0:
1080
+ return S.suspend(() =>
1081
+ S.Struct({
1082
+ user_id: S.String.pipe(T.Label()),
1083
+ page: S.optional(S.Number.pipe(T.Query())),
1084
+ page_size: S.optional(S.Number.pipe(T.Query())),
1085
+ order_by: S.optional(S.String.pipe(T.Query())),
1086
+ }).pipe(
1087
+ T.Http({
1088
+ method: "GET",
1089
+ uri: "/account/v3/users/{user_id}/organizations",
1090
+ code: 200,
1091
+ baseUrl: "https://api.scaleway.com",
1092
+ }),
1093
+ ),
1094
+ ).annotate({ identifier: "ListUserOrganizationsRequest" });
1095
+ case 1:
1096
+ return S.suspend(() =>
1097
+ S.Struct({
1098
+ id: S.optional(S.String),
1099
+ name: S.optional(S.String),
1100
+ owner: S.optional(S.Boolean),
1101
+ locked: S.optional(S.Boolean),
1102
+ mfa_enforced: S.optional(S.Boolean),
1103
+ picture_link: S.optional(S.NullOr(S.String)),
1104
+ organization_type: S.optional(S.String),
1105
+ corporate_industry: S.optional(S.String),
1106
+ is_startup: S.optional(S.Boolean),
1107
+ srn: S.optional(S.String),
1108
+ }),
1109
+ ).annotate({ identifier: "OrganizationSummary" });
1110
+ case 2:
1111
+ return S.Array(__S(49, __c6, 1));
1112
+ case 3:
1113
+ return S.suspend(() =>
1114
+ S.Struct({
1115
+ organizations: __S(50, __c6, 2),
1116
+ total_count: S.optional(S.Number),
1117
+ }),
1118
+ ).annotate({ identifier: "ListUserOrganizationsResponse" });
1119
+ }
1120
+ }
1121
+ function __c7(j: number): any {
1122
+ switch (j) {
1123
+ case 0:
1124
+ return S.suspend(() =>
1125
+ S.Struct({
1126
+ user_id: S.String.pipe(T.Label()),
1127
+ page: S.optional(S.Number.pipe(T.Query())),
1128
+ page_size: S.optional(S.Number.pipe(T.Query())),
1129
+ order_by: S.optional(S.String.pipe(T.Query())),
1130
+ uv_verified: S.optional(S.Boolean.pipe(T.Query())),
1131
+ }).pipe(
1132
+ T.Http({
1133
+ method: "GET",
1134
+ uri: "/account/v3/users/{user_id}/webauthn-authenticators",
1135
+ code: 200,
1136
+ baseUrl: "https://api.scaleway.com",
1137
+ }),
1138
+ ),
1139
+ ).annotate({ identifier: "ListUserWebAuthnAuthenticatorsRequest" });
1140
+ case 1:
1141
+ return S.Array(__S(64, __c8, 0));
1142
+ case 2:
1143
+ return S.suspend(() =>
1144
+ S.Struct({
1145
+ authenticators: __S(57, __c7, 1),
1146
+ total_count: S.optional(S.Number),
1147
+ }),
1148
+ ).annotate({ identifier: "ListUserWebAuthnAuthenticatorsResponse" });
1149
+ }
1150
+ }
1151
+ function __c8(j: number): any {
1152
+ switch (j) {
1153
+ case 0:
1154
+ return S.suspend(() =>
1155
+ S.Struct({
1156
+ id: S.optional(S.String),
1157
+ name: S.optional(S.String),
1158
+ created_at: S.optional(S.NullOr(S.String)),
1159
+ last_login_at: S.optional(S.NullOr(S.String)),
1160
+ uv_verified: S.optional(S.Boolean),
1161
+ }),
1162
+ ).annotate({ identifier: "WebAuthnAuthenticator" });
1163
+ }
1164
+ }
1165
+ function __c9(j: number): any {
1166
+ switch (j) {
1167
+ case 0:
1168
+ return S.suspend(() =>
1169
+ S.Struct({
1170
+ user_id: S.optional(S.String),
1171
+ phone_number: S.optional(S.String),
1172
+ }).pipe(
1173
+ T.Http({
1174
+ method: "POST",
1175
+ uri: "/account/v3/phone-validations",
1176
+ code: 200,
1177
+ baseUrl: "https://api.scaleway.com",
1178
+ }),
1179
+ ),
1180
+ ).annotate({ identifier: "SendPhoneValidationRequest" });
1181
+ case 1:
1182
+ return S.suspend(() =>
1183
+ S.Struct({
1184
+ id: S.optional(S.String),
1185
+ srn: S.optional(S.String),
1186
+ }),
1187
+ ).annotate({ identifier: "PhoneValidation" });
1188
+ }
1189
+ }
1190
+ function __c10(j: number): any {
1191
+ switch (j) {
1192
+ case 0:
1193
+ return S.suspend(() =>
1194
+ S.Struct({
1195
+ user_id: S.String.pipe(T.Label()),
1196
+ mailing_list_subscribed: S.optional(__S(224, __c28, 0)),
1197
+ organization_id: S.optional(S.NullOr(S.String)),
1198
+ }).pipe(
1199
+ T.Http({
1200
+ method: "PUT",
1201
+ uri: "/account/v3/users/{user_id}/mailing-list-subscriptions",
1202
+ code: 200,
1203
+ baseUrl: "https://api.scaleway.com",
1204
+ }),
1205
+ ),
1206
+ ).annotate({ identifier: "SetMailingListSubscriptionsRequest" });
1207
+ case 1:
1208
+ return S.suspend(() =>
1209
+ S.Struct({
1210
+ mailing_list_subscriptions: S.optional(__S(33, __c4, 1)),
1211
+ }),
1212
+ ).annotate({ identifier: "SetMailingListSubscriptionsResponse" });
1213
+ }
1214
+ }
1215
+ function __c11(j: number): any {
1216
+ switch (j) {
1217
+ case 0:
1218
+ return S.suspend(() =>
1219
+ S.Struct({
1220
+ user_id: S.optional(S.String),
1221
+ authenticator_id: S.optional(S.String),
1222
+ origin: S.optional(S.String),
1223
+ }).pipe(
1224
+ T.Http({
1225
+ method: "POST",
1226
+ uri: "/account/v3/start-webauthn-authenticator-upgrade",
1227
+ code: 200,
1228
+ baseUrl: "https://api.scaleway.com",
1229
+ }),
1230
+ ),
1231
+ ).annotate({ identifier: "StartWebAuthnAuthenticatorUpgradeRequest" });
1232
+ case 1:
1233
+ return S.suspend(() =>
1234
+ S.Struct({
1235
+ challenge: S.optional(S.String),
1236
+ timeout: S.optional(S.Number),
1237
+ allow_credentials: S.optional(__S(97, __c12, 1)),
1238
+ user_verification: S.optional(S.String),
1239
+ }),
1240
+ ).annotate({ identifier: "PublicKeyCredentialRequestOptions" });
1241
+ case 2:
1242
+ return S.suspend(() =>
1243
+ S.Struct({
1244
+ ceremony_id: S.optional(S.String),
1245
+ public_key_credential_request_options: S.optional(__S(89, __c11, 1)),
1246
+ }),
1247
+ ).annotate({ identifier: "StartWebAuthnAuthenticatorUpgradeResponse" });
1248
+ }
1249
+ }
1250
+ function __c12(j: number): any {
1251
+ switch (j) {
1252
+ case 0:
1253
+ return S.suspend(() =>
1254
+ S.Struct({
1255
+ id: S.optional(S.String),
1256
+ }),
1257
+ ).annotate({ identifier: "PublicKeyCredentialDescriptor" });
1258
+ case 1:
1259
+ return S.Array(__S(96, __c12, 0));
1260
+ }
1261
+ }
1262
+ function __c13(j: number): any {
1263
+ switch (j) {
1264
+ case 0:
1265
+ return S.suspend(() =>
1266
+ S.Struct({
1267
+ user_id: S.optional(S.String),
1268
+ origin: S.optional(S.String),
1269
+ }).pipe(
1270
+ T.Http({
1271
+ method: "POST",
1272
+ uri: "/account/v3/start-webauthn-registration",
1273
+ code: 200,
1274
+ baseUrl: "https://api.scaleway.com",
1275
+ }),
1276
+ ),
1277
+ ).annotate({ identifier: "StartWebAuthnRegistrationRequest" });
1278
+ case 1:
1279
+ return S.suspend(() =>
1280
+ S.Struct({
1281
+ alg: S.optional(S.Number),
1282
+ }),
1283
+ ).annotate({ identifier: "PublicKeyCredentialParameters" });
1284
+ case 2:
1285
+ return S.Array(__S(105, __c13, 1));
1286
+ case 3:
1287
+ return S.suspend(() =>
1288
+ S.Struct({
1289
+ challenge: S.optional(S.String),
1290
+ pub_key_cred_params: S.optional(__S(106, __c13, 2)),
1291
+ timeout: S.optional(S.Number),
1292
+ exclude_credentials: S.optional(__S(97, __c12, 1)),
1293
+ }),
1294
+ ).annotate({ identifier: "PublicKeyCredentialCreationOptions" });
1295
+ case 4:
1296
+ return S.suspend(() =>
1297
+ S.Struct({
1298
+ id: S.optional(S.String),
1299
+ public_key_credential_creation_options: S.optional(__S(107, __c13, 3)),
1300
+ }),
1301
+ ).annotate({ identifier: "StartWebAuthnRegistrationResponse" });
1302
+ }
1303
+ }
1304
+ function __c14(j: number): any {
1305
+ switch (j) {
1306
+ case 0:
1307
+ return S.suspend(() =>
1308
+ S.Struct({
1309
+ user_id: S.String.pipe(T.Label()),
1310
+ first_name: S.optional(S.NullOr(S.String)),
1311
+ last_name: S.optional(S.NullOr(S.String)),
1312
+ locale: S.optional(S.String),
1313
+ }).pipe(
1314
+ T.Http({
1315
+ method: "PATCH",
1316
+ uri: "/account/v3/users/{user_id}",
1317
+ code: 200,
1318
+ baseUrl: "https://api.scaleway.com",
1319
+ }),
1320
+ ),
1321
+ ).annotate({ identifier: "UpdateUserRequest" });
1322
+ }
1323
+ }
1324
+ function __c15(j: number): any {
1325
+ switch (j) {
1326
+ case 0:
1327
+ return S.Array(S.Unknown);
1328
+ case 1:
1329
+ return S.suspend(() =>
1330
+ S.Struct({
1331
+ user_id: S.String.pipe(T.Label()),
1332
+ console_theme: S.optional(S.String),
1333
+ pinned_products: S.optional(S.NullOr(__S(120, __c15, 0))),
1334
+ send_sms_new_ip_login: S.optional(S.NullOr(S.Boolean)),
1335
+ receive_sms_notifications: S.optional(S.NullOr(S.Boolean)),
1336
+ predefined_template: S.optional(S.NullOr(S.String)),
1337
+ custom_template: S.optional(S.NullOr(__S(232, __c29, 0))),
1338
+ }).pipe(
1339
+ T.Http({
1340
+ method: "PATCH",
1341
+ uri: "/account/v3/users/{user_id}/preferences",
1342
+ code: 200,
1343
+ baseUrl: "https://api.scaleway.com",
1344
+ }),
1345
+ ),
1346
+ ).annotate({ identifier: "UpdateUserPreferencesRequest" });
1347
+ }
1348
+ }
1349
+ function __c16(j: number): any {
1350
+ switch (j) {
1351
+ case 0:
1352
+ return S.suspend(() =>
1353
+ S.Struct({
1354
+ phone_validation_id: S.String.pipe(T.Label()),
1355
+ code: S.optional(S.String),
1356
+ }).pipe(
1357
+ T.Http({
1358
+ method: "POST",
1359
+ uri: "/account/v3/phone-validations/{phone_validation_id}/confirm",
1360
+ code: 200,
1361
+ baseUrl: "https://api.scaleway.com",
1362
+ }),
1363
+ ),
1364
+ ).annotate({ identifier: "ConfirmPhoneValidationRequest" });
1365
+ }
1366
+ }
1367
+ function __c17(j: number): any {
1368
+ switch (j) {
1369
+ case 0:
1370
+ return S.suspend(() =>
1371
+ S.Struct({
1372
+ authenticator_id: S.optional(S.String),
1373
+ authenticator_name: S.optional(S.NullOr(S.String)),
1374
+ }).pipe(
1375
+ T.Http({
1376
+ method: "POST",
1377
+ uri: "/account/v3/update-webauthn-authenticator",
1378
+ code: 200,
1379
+ baseUrl: "https://api.scaleway.com",
1380
+ }),
1381
+ ),
1382
+ ).annotate({ identifier: "UpdateWebAuthnAuthenticatorRequest" });
1383
+ }
1384
+ }
1385
+ function __c18(j: number): any {
1386
+ switch (j) {
1387
+ case 0:
1388
+ return S.suspend(() =>
1389
+ S.Struct({
1390
+ mfa_otp_id: S.String.pipe(T.Label()),
1391
+ otp: S.optional(S.String.pipe(T.SensitiveValue({}))),
1392
+ }).pipe(
1393
+ T.Http({
1394
+ method: "POST",
1395
+ uri: "/account/v3/mfa/otps/{mfa_otp_id}/validate",
1396
+ code: 200,
1397
+ baseUrl: "https://api.scaleway.com",
1398
+ }),
1399
+ ),
1400
+ ).annotate({ identifier: "ValidateMFAOTPRequest" });
1401
+ case 1:
1402
+ return S.suspend(() =>
1403
+ S.Struct({
1404
+ backup_codes: S.optional(__S(240, __c30, 0)),
1405
+ }),
1406
+ ).annotate({ identifier: "ValidateMFAOTPResponse" });
1407
+ }
1408
+ }
1409
+ function __c19(j: number): any {
1410
+ switch (j) {
1411
+ case 0:
1412
+ return S.suspend(() =>
1413
+ S.Struct({
1414
+ user_id: S.optional(S.String),
1415
+ }).pipe(
1416
+ T.Http({
1417
+ method: "POST",
1418
+ uri: "/account/v3/mfa/otps",
1419
+ code: 200,
1420
+ baseUrl: "https://api.scaleway.com",
1421
+ }),
1422
+ ),
1423
+ ).annotate({ identifier: "CreateMFAOTPRequest" });
1424
+ }
1425
+ }
1426
+ function __c20(j: number): any {
1427
+ switch (j) {
1428
+ case 0:
1429
+ return S.suspend(() =>
1430
+ S.Struct({
1431
+ id: S.optional(S.String),
1432
+ secret: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
1433
+ srn: S.optional(S.String),
1434
+ }),
1435
+ ).annotate({ identifier: "MFAOTP" });
1436
+ }
1437
+ }
1438
+ function __c21(j: number): any {
1439
+ switch (j) {
1440
+ case 0:
1441
+ return S.suspend(() =>
1442
+ S.Struct({
1443
+ mfa_otp_id: S.String.pipe(T.Label()),
1444
+ }).pipe(
1445
+ T.Http({
1446
+ method: "DELETE",
1447
+ uri: "/account/v3/mfa/otps/{mfa_otp_id}",
1448
+ code: 200,
1449
+ baseUrl: "https://api.scaleway.com",
1450
+ }),
1451
+ ),
1452
+ ).annotate({ identifier: "DeleteMFAOTPRequest" });
1453
+ }
1454
+ }
1455
+ function __c22(j: number): any {
1456
+ switch (j) {
1457
+ case 0:
1458
+ return S.suspend(() =>
1459
+ S.Struct({
1460
+ authenticator_id: S.optional(S.String),
1461
+ }).pipe(
1462
+ T.Http({
1463
+ method: "POST",
1464
+ uri: "/account/v3/delete-webauthn-authenticator",
1465
+ code: 200,
1466
+ baseUrl: "https://api.scaleway.com",
1467
+ }),
1468
+ ),
1469
+ ).annotate({ identifier: "DeleteWebAuthnAuthenticatorRequest" });
1470
+ }
1471
+ }
1472
+ function __c23(j: number): any {
1473
+ switch (j) {
1474
+ case 0:
1475
+ return S.suspend(() =>
1476
+ S.Struct({
1477
+ client_data_json: S.optional(S.String),
1478
+ authenticator_data: S.optional(S.String),
1479
+ signature: S.optional(S.String),
1480
+ }),
1481
+ ).annotate({ identifier: "AuthenticatorAssertionResponse" });
1482
+ case 1:
1483
+ return S.suspend(() =>
1484
+ S.Struct({
1485
+ raw_id: S.optional(S.String),
1486
+ response: __S(184, __c23, 0),
1487
+ }),
1488
+ ).annotate({ identifier: "AuthenticationResponse" });
1489
+ case 2:
1490
+ return S.suspend(() =>
1491
+ S.Struct({
1492
+ user_id: S.optional(S.String),
1493
+ authenticator_id: S.optional(S.String),
1494
+ ceremony_id: S.optional(S.String),
1495
+ authentication_response: S.optional(__S(185, __c23, 1)),
1496
+ origin: S.optional(S.String),
1497
+ }).pipe(
1498
+ T.Http({
1499
+ method: "POST",
1500
+ uri: "/account/v3/finish-webauthn-authenticator-upgrade",
1501
+ code: 200,
1502
+ baseUrl: "https://api.scaleway.com",
1503
+ }),
1504
+ ),
1505
+ ).annotate({ identifier: "FinishWebAuthnAuthenticatorUpgradeRequest" });
1506
+ case 3:
1507
+ return S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
1508
+ identifier: "FinishWebAuthnAuthenticatorUpgradeResponse2",
1509
+ });
1510
+ }
1511
+ }
1512
+ function __c24(j: number): any {
1513
+ switch (j) {
1514
+ case 0:
1515
+ return S.suspend(() =>
1516
+ S.Struct({
1517
+ client_data_json: S.optional(S.String),
1518
+ authenticator_data: S.optional(S.String),
1519
+ public_key: S.optional(S.String),
1520
+ public_key_algorithm: S.optional(S.Number),
1521
+ attestation_object: S.optional(S.String),
1522
+ }),
1523
+ ).annotate({ identifier: "AuthenticatorAttestationResponse" });
1524
+ case 1:
1525
+ return S.suspend(() =>
1526
+ S.Struct({
1527
+ raw_id: S.optional(S.String),
1528
+ response: S.optional(__S(192, __c24, 0)),
1529
+ }),
1530
+ ).annotate({ identifier: "RegistrationResponse" });
1531
+ case 2:
1532
+ return S.suspend(() =>
1533
+ S.Struct({
1534
+ user_id: S.optional(S.String),
1535
+ ceremony_id: S.optional(S.String),
1536
+ registration_response: S.optional(__S(193, __c24, 1)),
1537
+ authenticator_name: S.optional(S.String),
1538
+ origin: S.optional(S.String),
1539
+ }).pipe(
1540
+ T.Http({
1541
+ method: "POST",
1542
+ uri: "/account/v3/finish-webauthn-registration",
1543
+ code: 200,
1544
+ baseUrl: "https://api.scaleway.com",
1545
+ }),
1546
+ ),
1547
+ ).annotate({ identifier: "FinishWebAuthnRegistrationRequest" });
1548
+ case 3:
1549
+ return S.suspend(() =>
1550
+ S.Struct({
1551
+ authenticator_id: S.optional(S.String),
1552
+ uv_verified: S.optional(S.Boolean),
1553
+ }),
1554
+ ).annotate({ identifier: "FinishWebAuthnRegistrationResponse" });
1555
+ }
1556
+ }
1557
+ function __c25(j: number): any {
1558
+ switch (j) {
1559
+ case 0:
1560
+ return S.suspend(() =>
1561
+ S.Struct({
1562
+ user_id: S.String.pipe(T.Label()),
1563
+ }).pipe(
1564
+ T.Http({
1565
+ method: "GET",
1566
+ uri: "/account/v3/users/{user_id}",
1567
+ code: 200,
1568
+ baseUrl: "https://api.scaleway.com",
1569
+ }),
1570
+ ),
1571
+ ).annotate({ identifier: "GetUserRequest" });
1572
+ }
1573
+ }
1574
+ function __c26(j: number): any {
1575
+ switch (j) {
1576
+ case 0:
1577
+ return S.suspend(() =>
1578
+ S.Struct({
1579
+ totp: S.optional(S.Boolean),
1580
+ web_authn: S.optional(S.Boolean),
1581
+ }),
1582
+ ).annotate({ identifier: "UserMFAMethods" });
1583
+ case 1:
1584
+ return S.suspend(() =>
1585
+ S.Struct({
1586
+ id: S.optional(S.String),
1587
+ first_name: S.optional(S.String),
1588
+ last_name: S.optional(S.String),
1589
+ email: S.optional(S.String),
1590
+ phone_number: S.optional(S.String),
1591
+ created_at: S.optional(S.NullOr(S.String)),
1592
+ updated_at: S.optional(S.NullOr(S.String)),
1593
+ mfa: S.optional(S.Boolean),
1594
+ mfa_methods: S.optional(__S(208, __c26, 0)),
1595
+ locale: S.optional(S.String),
1596
+ has_password: S.optional(S.Boolean),
1597
+ is_professional_email: S.optional(S.Boolean),
1598
+ srn: S.optional(S.String),
1599
+ }),
1600
+ ).annotate({ identifier: "User" });
1601
+ }
1602
+ }
1603
+ function __c27(j: number): any {
1604
+ switch (j) {
1605
+ case 0:
1606
+ return S.suspend(() =>
1607
+ S.Struct({
1608
+ user_id: S.String.pipe(T.Label()),
1609
+ }).pipe(
1610
+ T.Http({
1611
+ method: "GET",
1612
+ uri: "/account/v3/users/{user_id}/preferences",
1613
+ code: 200,
1614
+ baseUrl: "https://api.scaleway.com",
1615
+ }),
1616
+ ),
1617
+ ).annotate({ identifier: "GetUserPreferencesRequest" });
1618
+ }
1619
+ }
1620
+ function __c28(j: number): any {
1621
+ switch (j) {
1622
+ case 0:
1623
+ return S.Record(S.String, S.Boolean);
1624
+ }
1625
+ }
1626
+ function __c29(j: number): any {
1627
+ switch (j) {
1628
+ case 0:
1629
+ return S.suspend(() =>
1630
+ S.Struct({
1631
+ products_id: S.optional(__S(224, __c28, 0)),
1632
+ }),
1633
+ ).annotate({ identifier: "UserPreferencesProductsToDisplay" });
1634
+ case 1:
1635
+ return S.suspend(() =>
1636
+ S.Struct({
1637
+ user_id: S.optional(S.String),
1638
+ console_theme: S.optional(S.String),
1639
+ pinned_products: S.optional(__S(240, __c30, 0)),
1640
+ send_sms_new_ip_login: S.optional(S.Boolean),
1641
+ receive_sms_notifications: S.optional(S.Boolean),
1642
+ predefined_template: S.optional(S.NullOr(S.String)),
1643
+ custom_template: S.optional(S.NullOr(__S(232, __c29, 0))),
1644
+ }),
1645
+ ).annotate({ identifier: "UserPreferences" });
1646
+ }
1647
+ }
1648
+ function __c30(j: number): any {
1649
+ switch (j) {
1650
+ case 0:
1651
+ return S.Array(S.String);
1652
+ }
1653
+ }
1654
+ // Schema table: entry i is schema j of builder f, made on first reach.
1655
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
1656
+ return (__s[i] ??= __L.at(f, j));
1657
+ }