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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (639) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +171 -4
  3. package/lib/.lazy.json +1 -0
  4. package/lib/_bundle/lazy.js +4 -0
  5. package/lib/_bundle/sdk.js +2 -0
  6. package/lib/_bundle/sdk.js.map +1 -0
  7. package/lib/credentials.d.ts +44 -0
  8. package/lib/credentials.d.ts.map +1 -0
  9. package/lib/credentials.js +1 -0
  10. package/lib/errors.d.ts +285 -0
  11. package/lib/errors.d.ts.map +1 -0
  12. package/lib/errors.js +1 -0
  13. package/lib/index.d.ts +48 -0
  14. package/lib/index.d.ts.map +1 -0
  15. package/lib/index.js +6 -0
  16. package/lib/pagination.d.ts +10 -0
  17. package/lib/pagination.d.ts.map +1 -0
  18. package/lib/pagination.js +1 -0
  19. package/lib/protocol.d.ts +48 -0
  20. package/lib/protocol.d.ts.map +1 -0
  21. package/lib/protocol.js +1 -0
  22. package/lib/retry.d.ts +31 -0
  23. package/lib/retry.d.ts.map +1 -0
  24. package/lib/retry.js +1 -0
  25. package/lib/services/account_contract_v3.d.ts +124 -0
  26. package/lib/services/account_contract_v3.d.ts.map +1 -0
  27. package/lib/services/account_contract_v3.js +2 -0
  28. package/lib/services/account_contract_v3.js.map +1 -0
  29. package/lib/services/account_iso_code_v3.d.ts +44 -0
  30. package/lib/services/account_iso_code_v3.d.ts.map +1 -0
  31. package/lib/services/account_iso_code_v3.js +2 -0
  32. package/lib/services/account_iso_code_v3.js.map +1 -0
  33. package/lib/services/account_organization_v3.d.ts +290 -0
  34. package/lib/services/account_organization_v3.d.ts.map +1 -0
  35. package/lib/services/account_organization_v3.js +2 -0
  36. package/lib/services/account_organization_v3.js.map +1 -0
  37. package/lib/services/account_project_v3.d.ts +173 -0
  38. package/lib/services/account_project_v3.d.ts.map +1 -0
  39. package/lib/services/account_project_v3.js +2 -0
  40. package/lib/services/account_project_v3.js.map +1 -0
  41. package/lib/services/account_unauthenticated_user_v3.d.ts +479 -0
  42. package/lib/services/account_unauthenticated_user_v3.d.ts.map +1 -0
  43. package/lib/services/account_unauthenticated_user_v3.js +35 -0
  44. package/lib/services/account_unauthenticated_user_v3.js.map +1 -0
  45. package/lib/services/account_unauthenticated_v3.d.ts +18 -0
  46. package/lib/services/account_unauthenticated_v3.d.ts.map +1 -0
  47. package/lib/services/account_unauthenticated_v3.js +2 -0
  48. package/lib/services/account_unauthenticated_v3.js.map +1 -0
  49. package/lib/services/account_user_v3.d.ts +522 -0
  50. package/lib/services/account_user_v3.d.ts.map +1 -0
  51. package/lib/services/account_user_v3.js +39 -0
  52. package/lib/services/account_user_v3.js.map +1 -0
  53. package/lib/services/annotations_v1.d.ts +260 -0
  54. package/lib/services/annotations_v1.d.ts.map +1 -0
  55. package/lib/services/annotations_v1.js +2 -0
  56. package/lib/services/annotations_v1.js.map +1 -0
  57. package/lib/services/baremetal_private_network_v1.d.ts +95 -0
  58. package/lib/services/baremetal_private_network_v1.d.ts.map +1 -0
  59. package/lib/services/baremetal_private_network_v1.js +2 -0
  60. package/lib/services/baremetal_private_network_v1.js.map +1 -0
  61. package/lib/services/baremetal_private_network_v3.d.ts +110 -0
  62. package/lib/services/baremetal_private_network_v3.d.ts.map +1 -0
  63. package/lib/services/baremetal_private_network_v3.js +2 -0
  64. package/lib/services/baremetal_private_network_v3.js.map +1 -0
  65. package/lib/services/baremetal_v1.d.ts +1089 -0
  66. package/lib/services/baremetal_v1.d.ts.map +1 -0
  67. package/lib/services/baremetal_v1.js +52 -0
  68. package/lib/services/baremetal_v1.js.map +1 -0
  69. package/lib/services/billing_electronic_billing_v2.d.ts +86 -0
  70. package/lib/services/billing_electronic_billing_v2.d.ts.map +1 -0
  71. package/lib/services/billing_electronic_billing_v2.js +2 -0
  72. package/lib/services/billing_electronic_billing_v2.js.map +1 -0
  73. package/lib/services/billing_v2.d.ts +187 -0
  74. package/lib/services/billing_v2.d.ts.map +1 -0
  75. package/lib/services/billing_v2.js +2 -0
  76. package/lib/services/billing_v2.js.map +1 -0
  77. package/lib/services/block_v1.d.ts +401 -0
  78. package/lib/services/block_v1.d.ts.map +1 -0
  79. package/lib/services/block_v1.js +27 -0
  80. package/lib/services/block_v1.js.map +1 -0
  81. package/lib/services/cockpit_global_v1.d.ts +75 -0
  82. package/lib/services/cockpit_global_v1.d.ts.map +1 -0
  83. package/lib/services/cockpit_global_v1.js +2 -0
  84. package/lib/services/cockpit_global_v1.js.map +1 -0
  85. package/lib/services/cockpit_regional_v1.d.ts +739 -0
  86. package/lib/services/cockpit_regional_v1.d.ts.map +1 -0
  87. package/lib/services/cockpit_regional_v1.js +47 -0
  88. package/lib/services/cockpit_regional_v1.js.map +1 -0
  89. package/lib/services/containers_v1.d.ts +822 -0
  90. package/lib/services/containers_v1.d.ts.map +1 -0
  91. package/lib/services/containers_v1.js +39 -0
  92. package/lib/services/containers_v1.js.map +1 -0
  93. package/lib/services/dedibox_billing_v1.d.ts +151 -0
  94. package/lib/services/dedibox_billing_v1.d.ts.map +1 -0
  95. package/lib/services/dedibox_billing_v1.js +2 -0
  96. package/lib/services/dedibox_billing_v1.js.map +1 -0
  97. package/lib/services/dedibox_ipv6_block_v1.d.ts +119 -0
  98. package/lib/services/dedibox_ipv6_block_v1.d.ts.map +1 -0
  99. package/lib/services/dedibox_ipv6_block_v1.js +2 -0
  100. package/lib/services/dedibox_ipv6_block_v1.js.map +1 -0
  101. package/lib/services/dedibox_rpn_san_v1.d.ts +486 -0
  102. package/lib/services/dedibox_rpn_san_v1.d.ts.map +1 -0
  103. package/lib/services/dedibox_rpn_san_v1.js +2 -0
  104. package/lib/services/dedibox_rpn_san_v1.js.map +1 -0
  105. package/lib/services/dedibox_rpn_v1.d.ts +68 -0
  106. package/lib/services/dedibox_rpn_v1.d.ts.map +1 -0
  107. package/lib/services/dedibox_rpn_v1.js +2 -0
  108. package/lib/services/dedibox_rpn_v1.js.map +1 -0
  109. package/lib/services/dedibox_rpn_v1_v1.d.ts +687 -0
  110. package/lib/services/dedibox_rpn_v1_v1.d.ts.map +1 -0
  111. package/lib/services/dedibox_rpn_v1_v1.js +30 -0
  112. package/lib/services/dedibox_rpn_v1_v1.js.map +1 -0
  113. package/lib/services/dedibox_rpn_v2_v1.d.ts +646 -0
  114. package/lib/services/dedibox_rpn_v2_v1.d.ts.map +1 -0
  115. package/lib/services/dedibox_rpn_v2_v1.js +27 -0
  116. package/lib/services/dedibox_rpn_v2_v1.js.map +1 -0
  117. package/lib/services/dedibox_v1.d.ts +1351 -0
  118. package/lib/services/dedibox_v1.d.ts.map +1 -0
  119. package/lib/services/dedibox_v1.js +70 -0
  120. package/lib/services/dedibox_v1.js.map +1 -0
  121. package/lib/services/generative_apis_openai_v1.d.ts +772 -0
  122. package/lib/services/generative_apis_openai_v1.d.ts.map +1 -0
  123. package/lib/services/generative_apis_openai_v1.js +24 -0
  124. package/lib/services/generative_apis_openai_v1.js.map +1 -0
  125. package/lib/services/generative_apis_v1.d.ts +82 -0
  126. package/lib/services/generative_apis_v1.d.ts.map +1 -0
  127. package/lib/services/generative_apis_v1.js +2 -0
  128. package/lib/services/generative_apis_v1.js.map +1 -0
  129. package/lib/services/index.d.ts +57 -0
  130. package/lib/services/index.d.ts.map +1 -0
  131. package/lib/services/index.js +56 -0
  132. package/lib/services/inference_v1.d.ts +460 -0
  133. package/lib/services/inference_v1.d.ts.map +1 -0
  134. package/lib/services/inference_v1.js +33 -0
  135. package/lib/services/inference_v1.js.map +1 -0
  136. package/lib/services/instance_v1.d.ts +2183 -0
  137. package/lib/services/instance_v1.d.ts.map +1 -0
  138. package/lib/services/instance_v1.js +112 -0
  139. package/lib/services/instance_v1.js.map +1 -0
  140. package/lib/services/iot_v1.d.ts +837 -0
  141. package/lib/services/iot_v1.d.ts.map +1 -0
  142. package/lib/services/iot_v1.js +50 -0
  143. package/lib/services/iot_v1.js.map +1 -0
  144. package/lib/services/ipam_v1.d.ts +244 -0
  145. package/lib/services/ipam_v1.d.ts.map +1 -0
  146. package/lib/services/ipam_v1.js +2 -0
  147. package/lib/services/ipam_v1.js.map +1 -0
  148. package/lib/services/k8s_v1.d.ts +1223 -0
  149. package/lib/services/k8s_v1.d.ts.map +1 -0
  150. package/lib/services/k8s_v1.js +61 -0
  151. package/lib/services/k8s_v1.js.map +1 -0
  152. package/lib/services/lb_zoned_v1.d.ts +1517 -0
  153. package/lib/services/lb_zoned_v1.d.ts.map +1 -0
  154. package/lib/services/lb_zoned_v1.js +75 -0
  155. package/lib/services/lb_zoned_v1.js.map +1 -0
  156. package/lib/services/marketplace_console_v2.d.ts +72 -0
  157. package/lib/services/marketplace_console_v2.d.ts.map +1 -0
  158. package/lib/services/marketplace_console_v2.js +2 -0
  159. package/lib/services/marketplace_console_v2.js.map +1 -0
  160. package/lib/services/marketplace_v2.d.ts +169 -0
  161. package/lib/services/marketplace_v2.d.ts.map +1 -0
  162. package/lib/services/marketplace_v2.js +2 -0
  163. package/lib/services/marketplace_v2.js.map +1 -0
  164. package/lib/services/mongodb_v1.d.ts +698 -0
  165. package/lib/services/mongodb_v1.d.ts.map +1 -0
  166. package/lib/services/mongodb_v1.js +43 -0
  167. package/lib/services/mongodb_v1.js.map +1 -0
  168. package/lib/services/partner_v1.d.ts +142 -0
  169. package/lib/services/partner_v1.d.ts.map +1 -0
  170. package/lib/services/partner_v1.js +2 -0
  171. package/lib/services/partner_v1.js.map +1 -0
  172. package/lib/services/rdb_encryption_v1.d.ts +17 -0
  173. package/lib/services/rdb_encryption_v1.d.ts.map +1 -0
  174. package/lib/services/rdb_encryption_v1.js +2 -0
  175. package/lib/services/rdb_encryption_v1.js.map +1 -0
  176. package/lib/services/rdb_v1.d.ts +1422 -0
  177. package/lib/services/rdb_v1.d.ts.map +1 -0
  178. package/lib/services/rdb_v1.js +87 -0
  179. package/lib/services/rdb_v1.js.map +1 -0
  180. package/lib/services/redis_v1.d.ts +602 -0
  181. package/lib/services/redis_v1.d.ts.map +1 -0
  182. package/lib/services/redis_v1.js +42 -0
  183. package/lib/services/redis_v1.js.map +1 -0
  184. package/lib/services/registry_v1.d.ts +281 -0
  185. package/lib/services/registry_v1.d.ts.map +1 -0
  186. package/lib/services/registry_v1.js +2 -0
  187. package/lib/services/registry_v1.js.map +1 -0
  188. package/lib/services/reseller_v1.d.ts +81 -0
  189. package/lib/services/reseller_v1.d.ts.map +1 -0
  190. package/lib/services/reseller_v1.js +2 -0
  191. package/lib/services/reseller_v1.js.map +1 -0
  192. package/lib/services/vpc_gw_v2.d.ts +640 -0
  193. package/lib/services/vpc_gw_v2.d.ts.map +1 -0
  194. package/lib/services/vpc_gw_v2.js +46 -0
  195. package/lib/services/vpc_gw_v2.js.map +1 -0
  196. package/lib/services/vpc_private_network_with_nics_v2.d.ts +114 -0
  197. package/lib/services/vpc_private_network_with_nics_v2.d.ts.map +1 -0
  198. package/lib/services/vpc_private_network_with_nics_v2.js +2 -0
  199. package/lib/services/vpc_private_network_with_nics_v2.js.map +1 -0
  200. package/lib/services/vpc_routes_with_nexthop_v2.d.ts +87 -0
  201. package/lib/services/vpc_routes_with_nexthop_v2.d.ts.map +1 -0
  202. package/lib/services/vpc_routes_with_nexthop_v2.js +2 -0
  203. package/lib/services/vpc_routes_with_nexthop_v2.js.map +1 -0
  204. package/lib/services/vpc_v2.d.ts +875 -0
  205. package/lib/services/vpc_v2.d.ts.map +1 -0
  206. package/lib/services/vpc_v2.js +54 -0
  207. package/lib/services/vpc_v2.js.map +1 -0
  208. package/lib/services/webhosting_backup_v1.d.ts +182 -0
  209. package/lib/services/webhosting_backup_v1.d.ts.map +1 -0
  210. package/lib/services/webhosting_backup_v1.js +2 -0
  211. package/lib/services/webhosting_backup_v1.js.map +1 -0
  212. package/lib/services/webhosting_control_panel_v1.d.ts +37 -0
  213. package/lib/services/webhosting_control_panel_v1.d.ts.map +1 -0
  214. package/lib/services/webhosting_control_panel_v1.js +2 -0
  215. package/lib/services/webhosting_control_panel_v1.js.map +1 -0
  216. package/lib/services/webhosting_database_v1.d.ts +195 -0
  217. package/lib/services/webhosting_database_v1.d.ts.map +1 -0
  218. package/lib/services/webhosting_database_v1.js +2 -0
  219. package/lib/services/webhosting_database_v1.js.map +1 -0
  220. package/lib/services/webhosting_dedibox_v1.d.ts +232 -0
  221. package/lib/services/webhosting_dedibox_v1.d.ts.map +1 -0
  222. package/lib/services/webhosting_dedibox_v1.js +2 -0
  223. package/lib/services/webhosting_dedibox_v1.js.map +1 -0
  224. package/lib/services/webhosting_dns_v1.d.ts +177 -0
  225. package/lib/services/webhosting_dns_v1.d.ts.map +1 -0
  226. package/lib/services/webhosting_dns_v1.js +2 -0
  227. package/lib/services/webhosting_dns_v1.js.map +1 -0
  228. package/lib/services/webhosting_free_domain_v1.d.ts +51 -0
  229. package/lib/services/webhosting_free_domain_v1.d.ts.map +1 -0
  230. package/lib/services/webhosting_free_domain_v1.js +2 -0
  231. package/lib/services/webhosting_free_domain_v1.js.map +1 -0
  232. package/lib/services/webhosting_ftp_account_v1.d.ts +79 -0
  233. package/lib/services/webhosting_ftp_account_v1.d.ts.map +1 -0
  234. package/lib/services/webhosting_ftp_account_v1.js +2 -0
  235. package/lib/services/webhosting_ftp_account_v1.js.map +1 -0
  236. package/lib/services/webhosting_hosting_v1.d.ts +502 -0
  237. package/lib/services/webhosting_hosting_v1.d.ts.map +1 -0
  238. package/lib/services/webhosting_hosting_v1.js +27 -0
  239. package/lib/services/webhosting_hosting_v1.js.map +1 -0
  240. package/lib/services/webhosting_mail_account_v1.d.ts +84 -0
  241. package/lib/services/webhosting_mail_account_v1.d.ts.map +1 -0
  242. package/lib/services/webhosting_mail_account_v1.js +2 -0
  243. package/lib/services/webhosting_mail_account_v1.js.map +1 -0
  244. package/lib/services/webhosting_offer_v1.d.ts +122 -0
  245. package/lib/services/webhosting_offer_v1.d.ts.map +1 -0
  246. package/lib/services/webhosting_offer_v1.js +2 -0
  247. package/lib/services/webhosting_offer_v1.js.map +1 -0
  248. package/lib/services/webhosting_website_v1.d.ts +75 -0
  249. package/lib/services/webhosting_website_v1.d.ts.map +1 -0
  250. package/lib/services/webhosting_website_v1.js +2 -0
  251. package/lib/services/webhosting_website_v1.js.map +1 -0
  252. package/lib/services.lazy/account_contract_v3.js +1 -0
  253. package/lib/services.lazy/account_iso_code_v3.js +1 -0
  254. package/lib/services.lazy/account_organization_v3.js +1 -0
  255. package/lib/services.lazy/account_project_v3.js +1 -0
  256. package/lib/services.lazy/account_unauthenticated_user_v3.js +3 -0
  257. package/lib/services.lazy/account_unauthenticated_v3.js +1 -0
  258. package/lib/services.lazy/account_user_v3.js +3 -0
  259. package/lib/services.lazy/annotations_v1.js +1 -0
  260. package/lib/services.lazy/baremetal_private_network_v1.js +1 -0
  261. package/lib/services.lazy/baremetal_private_network_v3.js +1 -0
  262. package/lib/services.lazy/baremetal_v1.js +3 -0
  263. package/lib/services.lazy/billing_electronic_billing_v2.js +1 -0
  264. package/lib/services.lazy/billing_v2.js +1 -0
  265. package/lib/services.lazy/block_v1.js +3 -0
  266. package/lib/services.lazy/cockpit_global_v1.js +1 -0
  267. package/lib/services.lazy/cockpit_regional_v1.js +3 -0
  268. package/lib/services.lazy/containers_v1.js +3 -0
  269. package/lib/services.lazy/dedibox_billing_v1.js +1 -0
  270. package/lib/services.lazy/dedibox_ipv6_block_v1.js +1 -0
  271. package/lib/services.lazy/dedibox_rpn_san_v1.js +1 -0
  272. package/lib/services.lazy/dedibox_rpn_v1.js +1 -0
  273. package/lib/services.lazy/dedibox_rpn_v1_v1.js +3 -0
  274. package/lib/services.lazy/dedibox_rpn_v2_v1.js +3 -0
  275. package/lib/services.lazy/dedibox_v1.js +3 -0
  276. package/lib/services.lazy/generative_apis_openai_v1.js +3 -0
  277. package/lib/services.lazy/generative_apis_v1.js +1 -0
  278. package/lib/services.lazy/index.js +3 -0
  279. package/lib/services.lazy/inference_v1.js +3 -0
  280. package/lib/services.lazy/instance_v1.js +3 -0
  281. package/lib/services.lazy/iot_v1.js +3 -0
  282. package/lib/services.lazy/ipam_v1.js +1 -0
  283. package/lib/services.lazy/k8s_v1.js +3 -0
  284. package/lib/services.lazy/lb_zoned_v1.js +3 -0
  285. package/lib/services.lazy/marketplace_console_v2.js +1 -0
  286. package/lib/services.lazy/marketplace_v2.js +1 -0
  287. package/lib/services.lazy/mongodb_v1.js +3 -0
  288. package/lib/services.lazy/partner_v1.js +1 -0
  289. package/lib/services.lazy/rdb_encryption_v1.js +1 -0
  290. package/lib/services.lazy/rdb_v1.js +3 -0
  291. package/lib/services.lazy/redis_v1.js +3 -0
  292. package/lib/services.lazy/registry_v1.js +1 -0
  293. package/lib/services.lazy/reseller_v1.js +1 -0
  294. package/lib/services.lazy/vpc_gw_v2.js +3 -0
  295. package/lib/services.lazy/vpc_private_network_with_nics_v2.js +1 -0
  296. package/lib/services.lazy/vpc_routes_with_nexthop_v2.js +1 -0
  297. package/lib/services.lazy/vpc_v2.js +3 -0
  298. package/lib/services.lazy/webhosting_backup_v1.js +1 -0
  299. package/lib/services.lazy/webhosting_control_panel_v1.js +1 -0
  300. package/lib/services.lazy/webhosting_database_v1.js +1 -0
  301. package/lib/services.lazy/webhosting_dedibox_v1.js +1 -0
  302. package/lib/services.lazy/webhosting_dns_v1.js +1 -0
  303. package/lib/services.lazy/webhosting_free_domain_v1.js +1 -0
  304. package/lib/services.lazy/webhosting_ftp_account_v1.js +1 -0
  305. package/lib/services.lazy/webhosting_hosting_v1.js +3 -0
  306. package/lib/services.lazy/webhosting_mail_account_v1.js +1 -0
  307. package/lib/services.lazy/webhosting_offer_v1.js +1 -0
  308. package/lib/services.lazy/webhosting_website_v1.js +1 -0
  309. package/lib/traits.d.ts +25 -0
  310. package/lib/traits.d.ts.map +1 -0
  311. package/lib/traits.js +1 -0
  312. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts +119 -0
  313. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts.map +1 -0
  314. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js +2 -0
  315. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js.map +1 -0
  316. package/lib/unstable-services/apple_silicon_v1alpha1.d.ts +569 -0
  317. package/lib/unstable-services/apple_silicon_v1alpha1.d.ts.map +1 -0
  318. package/lib/unstable-services/apple_silicon_v1alpha1.js +38 -0
  319. package/lib/unstable-services/apple_silicon_v1alpha1.js.map +1 -0
  320. package/lib/unstable-services/audit_trail_v1alpha1.d.ts +1082 -0
  321. package/lib/unstable-services/audit_trail_v1alpha1.d.ts.map +1 -0
  322. package/lib/unstable-services/audit_trail_v1alpha1.js +47 -0
  323. package/lib/unstable-services/audit_trail_v1alpha1.js.map +1 -0
  324. package/lib/unstable-services/autoscaling_v1alpha2.d.ts +368 -0
  325. package/lib/unstable-services/autoscaling_v1alpha2.d.ts.map +1 -0
  326. package/lib/unstable-services/autoscaling_v1alpha2.js +2 -0
  327. package/lib/unstable-services/autoscaling_v1alpha2.js.map +1 -0
  328. package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts +78 -0
  329. package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts.map +1 -0
  330. package/lib/unstable-services/billing_fin_ops_v2beta1.js +2 -0
  331. package/lib/unstable-services/billing_fin_ops_v2beta1.js.map +1 -0
  332. package/lib/unstable-services/billing_v2beta1.d.ts +411 -0
  333. package/lib/unstable-services/billing_v2beta1.d.ts.map +1 -0
  334. package/lib/unstable-services/billing_v2beta1.js +25 -0
  335. package/lib/unstable-services/billing_v2beta1.js.map +1 -0
  336. package/lib/unstable-services/block_v1alpha1.d.ts +372 -0
  337. package/lib/unstable-services/block_v1alpha1.d.ts.map +1 -0
  338. package/lib/unstable-services/block_v1alpha1.js +27 -0
  339. package/lib/unstable-services/block_v1alpha1.js.map +1 -0
  340. package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts +440 -0
  341. package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts.map +1 -0
  342. package/lib/unstable-services/data_orchestrator_v1alpha2.js +27 -0
  343. package/lib/unstable-services/data_orchestrator_v1alpha2.js.map +1 -0
  344. package/lib/unstable-services/datalab_v1beta1.d.ts +322 -0
  345. package/lib/unstable-services/datalab_v1beta1.d.ts.map +1 -0
  346. package/lib/unstable-services/datalab_v1beta1.js +2 -0
  347. package/lib/unstable-services/datalab_v1beta1.js.map +1 -0
  348. package/lib/unstable-services/dataviz_v1alpha1.d.ts +456 -0
  349. package/lib/unstable-services/dataviz_v1alpha1.d.ts.map +1 -0
  350. package/lib/unstable-services/dataviz_v1alpha1.js +34 -0
  351. package/lib/unstable-services/dataviz_v1alpha1.js.map +1 -0
  352. package/lib/unstable-services/datawarehouse_v1beta1.d.ts +492 -0
  353. package/lib/unstable-services/datawarehouse_v1beta1.d.ts.map +1 -0
  354. package/lib/unstable-services/datawarehouse_v1beta1.js +34 -0
  355. package/lib/unstable-services/datawarehouse_v1beta1.js.map +1 -0
  356. package/lib/unstable-services/domain_registrar_v2beta1.d.ts +1087 -0
  357. package/lib/unstable-services/domain_registrar_v2beta1.d.ts.map +1 -0
  358. package/lib/unstable-services/domain_registrar_v2beta1.js +50 -0
  359. package/lib/unstable-services/domain_registrar_v2beta1.js.map +1 -0
  360. package/lib/unstable-services/domain_suggestion_v2beta1.d.ts +19 -0
  361. package/lib/unstable-services/domain_suggestion_v2beta1.d.ts.map +1 -0
  362. package/lib/unstable-services/domain_suggestion_v2beta1.js +2 -0
  363. package/lib/unstable-services/domain_suggestion_v2beta1.js.map +1 -0
  364. package/lib/unstable-services/domain_v2beta1.d.ts +520 -0
  365. package/lib/unstable-services/domain_v2beta1.d.ts.map +1 -0
  366. package/lib/unstable-services/domain_v2beta1.js +44 -0
  367. package/lib/unstable-services/domain_v2beta1.js.map +1 -0
  368. package/lib/unstable-services/edge_services_v1beta1.d.ts +1153 -0
  369. package/lib/unstable-services/edge_services_v1beta1.d.ts.map +1 -0
  370. package/lib/unstable-services/edge_services_v1beta1.js +81 -0
  371. package/lib/unstable-services/edge_services_v1beta1.js.map +1 -0
  372. package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts +149 -0
  373. package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts.map +1 -0
  374. package/lib/unstable-services/environmental_footprint_user_v1alpha1.js +2 -0
  375. package/lib/unstable-services/environmental_footprint_user_v1alpha1.js.map +1 -0
  376. package/lib/unstable-services/file_v1alpha1.d.ts +350 -0
  377. package/lib/unstable-services/file_v1alpha1.d.ts.map +1 -0
  378. package/lib/unstable-services/file_v1alpha1.js +24 -0
  379. package/lib/unstable-services/file_v1alpha1.js.map +1 -0
  380. package/lib/unstable-services/flexible_ip_v1alpha1.d.ts +241 -0
  381. package/lib/unstable-services/flexible_ip_v1alpha1.d.ts.map +1 -0
  382. package/lib/unstable-services/flexible_ip_v1alpha1.js +2 -0
  383. package/lib/unstable-services/flexible_ip_v1alpha1.js.map +1 -0
  384. package/lib/unstable-services/functions_v1beta1.d.ts +852 -0
  385. package/lib/unstable-services/functions_v1beta1.d.ts.map +1 -0
  386. package/lib/unstable-services/functions_v1beta1.js +49 -0
  387. package/lib/unstable-services/functions_v1beta1.js.map +1 -0
  388. package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts +257 -0
  389. package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts.map +1 -0
  390. package/lib/unstable-services/iam_unauthenticated_v1alpha1.js +2 -0
  391. package/lib/unstable-services/iam_unauthenticated_v1alpha1.js.map +1 -0
  392. package/lib/unstable-services/iam_v1alpha1.d.ts +1506 -0
  393. package/lib/unstable-services/iam_v1alpha1.d.ts.map +1 -0
  394. package/lib/unstable-services/iam_v1alpha1.js +105 -0
  395. package/lib/unstable-services/iam_v1alpha1.js.map +1 -0
  396. package/lib/unstable-services/index.d.ts +44 -0
  397. package/lib/unstable-services/index.d.ts.map +1 -0
  398. package/lib/unstable-services/index.js +43 -0
  399. package/lib/unstable-services/instance_v2alpha1.d.ts +1755 -0
  400. package/lib/unstable-services/instance_v2alpha1.d.ts.map +1 -0
  401. package/lib/unstable-services/instance_v2alpha1.js +81 -0
  402. package/lib/unstable-services/instance_v2alpha1.js.map +1 -0
  403. package/lib/unstable-services/instance_volume_v2alpha1.d.ts +333 -0
  404. package/lib/unstable-services/instance_volume_v2alpha1.d.ts.map +1 -0
  405. package/lib/unstable-services/instance_volume_v2alpha1.js +26 -0
  406. package/lib/unstable-services/instance_volume_v2alpha1.js.map +1 -0
  407. package/lib/unstable-services/interlink_v1beta1.d.ts +636 -0
  408. package/lib/unstable-services/interlink_v1beta1.d.ts.map +1 -0
  409. package/lib/unstable-services/interlink_v1beta1.js +39 -0
  410. package/lib/unstable-services/interlink_v1beta1.js.map +1 -0
  411. package/lib/unstable-services/kafka_v1alpha1.d.ts +451 -0
  412. package/lib/unstable-services/kafka_v1alpha1.d.ts.map +1 -0
  413. package/lib/unstable-services/kafka_v1alpha1.js +27 -0
  414. package/lib/unstable-services/kafka_v1alpha1.js.map +1 -0
  415. package/lib/unstable-services/key_manager_v1alpha1.d.ts +515 -0
  416. package/lib/unstable-services/key_manager_v1alpha1.d.ts.map +1 -0
  417. package/lib/unstable-services/key_manager_v1alpha1.js +36 -0
  418. package/lib/unstable-services/key_manager_v1alpha1.js.map +1 -0
  419. package/lib/unstable-services/mailbox_v1alpha1.d.ts +438 -0
  420. package/lib/unstable-services/mailbox_v1alpha1.d.ts.map +1 -0
  421. package/lib/unstable-services/mailbox_v1alpha1.js +39 -0
  422. package/lib/unstable-services/mailbox_v1alpha1.js.map +1 -0
  423. package/lib/unstable-services/messageq_v1alpha1.d.ts +420 -0
  424. package/lib/unstable-services/messageq_v1alpha1.d.ts.map +1 -0
  425. package/lib/unstable-services/messageq_v1alpha1.js +29 -0
  426. package/lib/unstable-services/messageq_v1alpha1.js.map +1 -0
  427. package/lib/unstable-services/mnq_console_v1beta1.d.ts +32 -0
  428. package/lib/unstable-services/mnq_console_v1beta1.d.ts.map +1 -0
  429. package/lib/unstable-services/mnq_console_v1beta1.js +2 -0
  430. package/lib/unstable-services/mnq_console_v1beta1.js.map +1 -0
  431. package/lib/unstable-services/mnq_nats_v1beta1.d.ts +177 -0
  432. package/lib/unstable-services/mnq_nats_v1beta1.d.ts.map +1 -0
  433. package/lib/unstable-services/mnq_nats_v1beta1.js +2 -0
  434. package/lib/unstable-services/mnq_nats_v1beta1.js.map +1 -0
  435. package/lib/unstable-services/mnq_sns_v1beta1.d.ts +155 -0
  436. package/lib/unstable-services/mnq_sns_v1beta1.d.ts.map +1 -0
  437. package/lib/unstable-services/mnq_sns_v1beta1.js +2 -0
  438. package/lib/unstable-services/mnq_sns_v1beta1.js.map +1 -0
  439. package/lib/unstable-services/mnq_sqs_v1beta1.d.ts +155 -0
  440. package/lib/unstable-services/mnq_sqs_v1beta1.d.ts.map +1 -0
  441. package/lib/unstable-services/mnq_sqs_v1beta1.js +2 -0
  442. package/lib/unstable-services/mnq_sqs_v1beta1.js.map +1 -0
  443. package/lib/unstable-services/mongodb_v1alpha1.d.ts +604 -0
  444. package/lib/unstable-services/mongodb_v1alpha1.d.ts.map +1 -0
  445. package/lib/unstable-services/mongodb_v1alpha1.js +37 -0
  446. package/lib/unstable-services/mongodb_v1alpha1.js.map +1 -0
  447. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts +479 -0
  448. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts.map +1 -0
  449. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js +2 -0
  450. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js.map +1 -0
  451. package/lib/unstable-services/qaas_v1alpha1.d.ts +764 -0
  452. package/lib/unstable-services/qaas_v1alpha1.d.ts.map +1 -0
  453. package/lib/unstable-services/qaas_v1alpha1.js +51 -0
  454. package/lib/unstable-services/qaas_v1alpha1.js.map +1 -0
  455. package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts +794 -0
  456. package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts.map +1 -0
  457. package/lib/unstable-services/s2s_vpn_v1alpha1.js +45 -0
  458. package/lib/unstable-services/s2s_vpn_v1alpha1.js.map +1 -0
  459. package/lib/unstable-services/search_v1alpha1.d.ts +120 -0
  460. package/lib/unstable-services/search_v1alpha1.d.ts.map +1 -0
  461. package/lib/unstable-services/search_v1alpha1.js +2 -0
  462. package/lib/unstable-services/search_v1alpha1.js.map +1 -0
  463. package/lib/unstable-services/searchdb_v1alpha1.d.ts +424 -0
  464. package/lib/unstable-services/searchdb_v1alpha1.d.ts.map +1 -0
  465. package/lib/unstable-services/searchdb_v1alpha1.js +29 -0
  466. package/lib/unstable-services/searchdb_v1alpha1.js.map +1 -0
  467. package/lib/unstable-services/secret_manager_v1beta1.d.ts +407 -0
  468. package/lib/unstable-services/secret_manager_v1beta1.d.ts.map +1 -0
  469. package/lib/unstable-services/secret_manager_v1beta1.js +32 -0
  470. package/lib/unstable-services/secret_manager_v1beta1.js.map +1 -0
  471. package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts +331 -0
  472. package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts.map +1 -0
  473. package/lib/unstable-services/serverless_jobs_v1alpha1.js +28 -0
  474. package/lib/unstable-services/serverless_jobs_v1alpha1.js.map +1 -0
  475. package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts +546 -0
  476. package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts.map +1 -0
  477. package/lib/unstable-services/serverless_jobs_v1alpha2.js +35 -0
  478. package/lib/unstable-services/serverless_jobs_v1alpha2.js.map +1 -0
  479. package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts +239 -0
  480. package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts.map +1 -0
  481. package/lib/unstable-services/serverless_sqldb_v1alpha1.js +2 -0
  482. package/lib/unstable-services/serverless_sqldb_v1alpha1.js.map +1 -0
  483. package/lib/unstable-services/transactional_email_v1alpha1.d.ts +936 -0
  484. package/lib/unstable-services/transactional_email_v1alpha1.d.ts.map +1 -0
  485. package/lib/unstable-services/transactional_email_v1alpha1.js +46 -0
  486. package/lib/unstable-services/transactional_email_v1alpha1.js.map +1 -0
  487. package/lib/unstable-services.lazy/apple_silicon_private_network_v1alpha1.js +1 -0
  488. package/lib/unstable-services.lazy/apple_silicon_v1alpha1.js +3 -0
  489. package/lib/unstable-services.lazy/audit_trail_v1alpha1.js +3 -0
  490. package/lib/unstable-services.lazy/autoscaling_v1alpha2.js +1 -0
  491. package/lib/unstable-services.lazy/billing_fin_ops_v2beta1.js +1 -0
  492. package/lib/unstable-services.lazy/billing_v2beta1.js +3 -0
  493. package/lib/unstable-services.lazy/block_v1alpha1.js +3 -0
  494. package/lib/unstable-services.lazy/data_orchestrator_v1alpha2.js +3 -0
  495. package/lib/unstable-services.lazy/datalab_v1beta1.js +1 -0
  496. package/lib/unstable-services.lazy/dataviz_v1alpha1.js +3 -0
  497. package/lib/unstable-services.lazy/datawarehouse_v1beta1.js +3 -0
  498. package/lib/unstable-services.lazy/domain_registrar_v2beta1.js +3 -0
  499. package/lib/unstable-services.lazy/domain_suggestion_v2beta1.js +1 -0
  500. package/lib/unstable-services.lazy/domain_v2beta1.js +3 -0
  501. package/lib/unstable-services.lazy/edge_services_v1beta1.js +3 -0
  502. package/lib/unstable-services.lazy/environmental_footprint_user_v1alpha1.js +1 -0
  503. package/lib/unstable-services.lazy/file_v1alpha1.js +3 -0
  504. package/lib/unstable-services.lazy/flexible_ip_v1alpha1.js +1 -0
  505. package/lib/unstable-services.lazy/functions_v1beta1.js +3 -0
  506. package/lib/unstable-services.lazy/iam_unauthenticated_v1alpha1.js +1 -0
  507. package/lib/unstable-services.lazy/iam_v1alpha1.js +3 -0
  508. package/lib/unstable-services.lazy/index.js +3 -0
  509. package/lib/unstable-services.lazy/instance_v2alpha1.js +3 -0
  510. package/lib/unstable-services.lazy/instance_volume_v2alpha1.js +3 -0
  511. package/lib/unstable-services.lazy/interlink_v1beta1.js +3 -0
  512. package/lib/unstable-services.lazy/kafka_v1alpha1.js +3 -0
  513. package/lib/unstable-services.lazy/key_manager_v1alpha1.js +3 -0
  514. package/lib/unstable-services.lazy/mailbox_v1alpha1.js +3 -0
  515. package/lib/unstable-services.lazy/messageq_v1alpha1.js +3 -0
  516. package/lib/unstable-services.lazy/mnq_console_v1beta1.js +1 -0
  517. package/lib/unstable-services.lazy/mnq_nats_v1beta1.js +1 -0
  518. package/lib/unstable-services.lazy/mnq_sns_v1beta1.js +1 -0
  519. package/lib/unstable-services.lazy/mnq_sqs_v1beta1.js +1 -0
  520. package/lib/unstable-services.lazy/mongodb_v1alpha1.js +3 -0
  521. package/lib/unstable-services.lazy/product_catalog_public_catalog_v2alpha1.js +1 -0
  522. package/lib/unstable-services.lazy/qaas_v1alpha1.js +3 -0
  523. package/lib/unstable-services.lazy/s2s_vpn_v1alpha1.js +3 -0
  524. package/lib/unstable-services.lazy/search_v1alpha1.js +1 -0
  525. package/lib/unstable-services.lazy/searchdb_v1alpha1.js +3 -0
  526. package/lib/unstable-services.lazy/secret_manager_v1beta1.js +3 -0
  527. package/lib/unstable-services.lazy/serverless_jobs_v1alpha1.js +3 -0
  528. package/lib/unstable-services.lazy/serverless_jobs_v1alpha2.js +3 -0
  529. package/lib/unstable-services.lazy/serverless_sqldb_v1alpha1.js +1 -0
  530. package/lib/unstable-services.lazy/transactional_email_v1alpha1.js +3 -0
  531. package/package.json +89 -2
  532. package/src/credentials.ts +104 -0
  533. package/src/errors.ts +307 -0
  534. package/src/index.ts +52 -0
  535. package/src/pagination.ts +65 -0
  536. package/src/protocol.ts +496 -0
  537. package/src/retry.ts +47 -0
  538. package/src/services/account_contract_v3.ts +441 -0
  539. package/src/services/account_iso_code_v3.ts +165 -0
  540. package/src/services/account_organization_v3.ts +947 -0
  541. package/src/services/account_project_v3.ts +530 -0
  542. package/src/services/account_unauthenticated_user_v3.ts +1445 -0
  543. package/src/services/account_unauthenticated_v3.ts +92 -0
  544. package/src/services/account_user_v3.ts +1657 -0
  545. package/src/services/annotations_v1.ts +897 -0
  546. package/src/services/baremetal_private_network_v1.ts +327 -0
  547. package/src/services/baremetal_private_network_v3.ts +376 -0
  548. package/src/services/baremetal_v1.ts +3072 -0
  549. package/src/services/billing_electronic_billing_v2.ts +323 -0
  550. package/src/services/billing_v2.ts +662 -0
  551. package/src/services/block_v1.ts +1282 -0
  552. package/src/services/cockpit_global_v1.ts +282 -0
  553. package/src/services/cockpit_regional_v1.ts +2177 -0
  554. package/src/services/containers_v1.ts +2110 -0
  555. package/src/services/dedibox_billing_v1.ts +621 -0
  556. package/src/services/dedibox_ipv6_block_v1.ts +468 -0
  557. package/src/services/dedibox_rpn_san_v1.ts +1185 -0
  558. package/src/services/dedibox_rpn_v1.ts +207 -0
  559. package/src/services/dedibox_rpn_v1_v1.ts +1763 -0
  560. package/src/services/dedibox_rpn_v2_v1.ts +1654 -0
  561. package/src/services/dedibox_v1.ts +3765 -0
  562. package/src/services/generative_apis_openai_v1.ts +1692 -0
  563. package/src/services/generative_apis_v1.ts +251 -0
  564. package/src/services/index.ts +57 -0
  565. package/src/services/inference_v1.ts +1353 -0
  566. package/src/services/instance_v1.ts +6611 -0
  567. package/src/services/iot_v1.ts +2419 -0
  568. package/src/services/ipam_v1.ts +716 -0
  569. package/src/services/k8s_v1.ts +3108 -0
  570. package/src/services/lb_zoned_v1.ts +4533 -0
  571. package/src/services/marketplace_console_v2.ts +198 -0
  572. package/src/services/marketplace_v2.ts +625 -0
  573. package/src/services/mongodb_v1.ts +2104 -0
  574. package/src/services/partner_v1.ts +462 -0
  575. package/src/services/rdb_encryption_v1.ts +83 -0
  576. package/src/services/rdb_v1.ts +4211 -0
  577. package/src/services/redis_v1.ts +1918 -0
  578. package/src/services/registry_v1.ts +863 -0
  579. package/src/services/reseller_v1.ts +258 -0
  580. package/src/services/vpc_gw_v2.ts +2137 -0
  581. package/src/services/vpc_private_network_with_nics_v2.ts +311 -0
  582. package/src/services/vpc_routes_with_nexthop_v2.ts +226 -0
  583. package/src/services/vpc_v2.ts +2533 -0
  584. package/src/services/webhosting_backup_v1.ts +578 -0
  585. package/src/services/webhosting_control_panel_v1.ts +130 -0
  586. package/src/services/webhosting_database_v1.ts +682 -0
  587. package/src/services/webhosting_dedibox_v1.ts +480 -0
  588. package/src/services/webhosting_dns_v1.ts +471 -0
  589. package/src/services/webhosting_free_domain_v1.ts +190 -0
  590. package/src/services/webhosting_ftp_account_v1.ts +280 -0
  591. package/src/services/webhosting_hosting_v1.ts +1309 -0
  592. package/src/services/webhosting_mail_account_v1.ts +291 -0
  593. package/src/services/webhosting_offer_v1.ts +289 -0
  594. package/src/services/webhosting_website_v1.ts +274 -0
  595. package/src/traits.ts +63 -0
  596. package/src/unstable-services/apple_silicon_private_network_v1alpha1.ts +395 -0
  597. package/src/unstable-services/apple_silicon_v1alpha1.ts +1685 -0
  598. package/src/unstable-services/audit_trail_v1alpha1.ts +3220 -0
  599. package/src/unstable-services/autoscaling_v1alpha2.ts +1103 -0
  600. package/src/unstable-services/billing_fin_ops_v2beta1.ts +195 -0
  601. package/src/unstable-services/billing_v2beta1.ts +1203 -0
  602. package/src/unstable-services/block_v1alpha1.ts +1239 -0
  603. package/src/unstable-services/data_orchestrator_v1alpha2.ts +1230 -0
  604. package/src/unstable-services/datalab_v1beta1.ts +852 -0
  605. package/src/unstable-services/dataviz_v1alpha1.ts +1478 -0
  606. package/src/unstable-services/datawarehouse_v1beta1.ts +1504 -0
  607. package/src/unstable-services/domain_registrar_v2beta1.ts +2979 -0
  608. package/src/unstable-services/domain_suggestion_v2beta1.ts +86 -0
  609. package/src/unstable-services/domain_v2beta1.ts +1794 -0
  610. package/src/unstable-services/edge_services_v1beta1.ts +3724 -0
  611. package/src/unstable-services/environmental_footprint_user_v1alpha1.ts +429 -0
  612. package/src/unstable-services/file_v1alpha1.ts +1016 -0
  613. package/src/unstable-services/flexible_ip_v1alpha1.ts +804 -0
  614. package/src/unstable-services/functions_v1beta1.ts +2410 -0
  615. package/src/unstable-services/iam_unauthenticated_v1alpha1.ts +863 -0
  616. package/src/unstable-services/iam_v1alpha1.ts +4919 -0
  617. package/src/unstable-services/index.ts +44 -0
  618. package/src/unstable-services/instance_v2alpha1.ts +5395 -0
  619. package/src/unstable-services/instance_volume_v2alpha1.ts +1111 -0
  620. package/src/unstable-services/interlink_v1beta1.ts +1791 -0
  621. package/src/unstable-services/kafka_v1alpha1.ts +1275 -0
  622. package/src/unstable-services/key_manager_v1alpha1.ts +1618 -0
  623. package/src/unstable-services/mailbox_v1alpha1.ts +1561 -0
  624. package/src/unstable-services/messageq_v1alpha1.ts +1266 -0
  625. package/src/unstable-services/mnq_console_v1beta1.ts +111 -0
  626. package/src/unstable-services/mnq_nats_v1beta1.ts +608 -0
  627. package/src/unstable-services/mnq_sns_v1beta1.ts +523 -0
  628. package/src/unstable-services/mnq_sqs_v1beta1.ts +523 -0
  629. package/src/unstable-services/mongodb_v1alpha1.ts +1789 -0
  630. package/src/unstable-services/product_catalog_public_catalog_v2alpha1.ts +1113 -0
  631. package/src/unstable-services/qaas_v1alpha1.ts +2404 -0
  632. package/src/unstable-services/s2s_vpn_v1alpha1.ts +2173 -0
  633. package/src/unstable-services/search_v1alpha1.ts +349 -0
  634. package/src/unstable-services/searchdb_v1alpha1.ts +1273 -0
  635. package/src/unstable-services/secret_manager_v1beta1.ts +1255 -0
  636. package/src/unstable-services/serverless_jobs_v1alpha1.ts +1017 -0
  637. package/src/unstable-services/serverless_jobs_v1alpha2.ts +1516 -0
  638. package/src/unstable-services/serverless_sqldb_v1alpha1.ts +747 -0
  639. package/src/unstable-services/transactional_email_v1alpha1.ts +2495 -0
@@ -0,0 +1,1561 @@
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: "MailboxV1alpha1",
25
+ labels: "scaleway",
26
+ propagate: "w3c",
27
+ } as const;
28
+
29
+ export interface BatchCreateMailboxesRequestMailboxParameters {
30
+ local_part?: string | undefined;
31
+ password?: string | Redacted.Redacted<string> | undefined;
32
+ }
33
+ /** Parameters for the mailboxes to create. */
34
+ export type BatchCreateMailboxesRequestMailboxesList =
35
+ Array<BatchCreateMailboxesRequestMailboxParameters>;
36
+ export type MailboxSubscriptionPeriod =
37
+ | "unknown_subscription_period"
38
+ | "canceled"
39
+ | "monthly"
40
+ | "yearly";
41
+ export interface BatchCreateMailboxesRequest {
42
+ /** Parameters for the mailboxes to create. */
43
+ mailboxes?: BatchCreateMailboxesRequestMailboxesList | undefined;
44
+ /** ID of the domain in which to create the mailboxes. (UUID format) */
45
+ domain_id?: string | undefined;
46
+ /** Subscription renewal period, it can be monthly or yearly. */
47
+ subscription_period?: MailboxSubscriptionPeriod | (string & {}) | undefined;
48
+ }
49
+ export type MailboxStatus =
50
+ | "unknown_status"
51
+ | "creating"
52
+ | "waiting_payment"
53
+ | "waiting_domain"
54
+ | "ready"
55
+ | "deletion_scheduled"
56
+ | "locked"
57
+ | "renewing"
58
+ | "deleting"
59
+ | "restoring"
60
+ | "payment_failed";
61
+ export interface Mailbox {
62
+ /** Unique identifier of the mailbox. (UUID format) */
63
+ id?: string | undefined;
64
+ /** ID of the Project to which the mailbox belongs. (UUID format) */
65
+ project_id?: string | undefined;
66
+ /** ID of the Organization to which the mailbox belongs. (UUID format) */
67
+ organization_id?: string | undefined;
68
+ /** ID of the domain to which the mailbox belongs. (UUID format) */
69
+ domain_id?: string | undefined;
70
+ /** Email address of the mailbox as local_part@domain. */
71
+ email?: string | undefined;
72
+ /** Status of the mailbox. */
73
+ status?: MailboxStatus | undefined;
74
+ /** Subscription renewal period, it can be monthly, yearly or canceled if the subscription has been canceled. */
75
+ subscription_period?: MailboxSubscriptionPeriod | undefined;
76
+ /** Date and time of subscription period start. (RFC 3339 format) */
77
+ subscription_period_started_at?: string | null | undefined;
78
+ /** Next subscription renewal period, it can be monthly or yearly or canceled if the subscription has been canceled. */
79
+ next_subscription_period?: MailboxSubscriptionPeriod | undefined;
80
+ /** Date and time when the next subscription period starts. (RFC 3339 format) */
81
+ next_subscription_period_starts_at?: string | null | undefined;
82
+ /** Date and time of mailbox creation. (RFC 3339 format) */
83
+ created_at?: string | null | undefined;
84
+ /** Date and time when the mailbox was last updated. (RFC 3339 format) */
85
+ updated_at?: string | null | undefined;
86
+ /** Date and time of the unrecoverable mailbox deletion. (RFC 3339 format) */
87
+ deletion_scheduled_at?: string | null | undefined;
88
+ }
89
+ /** Mailboxes created. */
90
+ export type BatchCreateMailboxesResponseMailboxesList = Array<Mailbox>;
91
+ export interface BatchCreateMailboxesResponse {
92
+ /** Mailboxes created. */
93
+ mailboxes?: BatchCreateMailboxesResponseMailboxesList | undefined;
94
+ }
95
+ export interface CreateAliasRequest {
96
+ /** Local part of the email address (e.g. local_part@domain.com). */
97
+ local_part?: string | undefined;
98
+ /** ID of the mailbox to associate with the alias. (UUID format) */
99
+ mailbox_id?: string | undefined;
100
+ /** (Optional) Description of the alias. */
101
+ description?: string | null | undefined;
102
+ }
103
+ export type AliasStatus = "unknown_status" | "provisioning" | "deleting" | "ready";
104
+ export interface Alias {
105
+ /** Unique identifier of the alias. (UUID format) */
106
+ id?: string | undefined;
107
+ /** Email address of the alias as local_part@domain. */
108
+ email?: string | undefined;
109
+ /** ID of the mailbox to which the alias belongs. (UUID format) */
110
+ mailbox_id?: string | undefined;
111
+ /** Description of the alias. */
112
+ description?: string | undefined;
113
+ /** Current status of the alias. */
114
+ status?: AliasStatus | undefined;
115
+ /** Date and time of alias creation. (RFC 3339 format) */
116
+ created_at?: string | null | undefined;
117
+ /** Date and time when the alias was last updated. (RFC 3339 format) */
118
+ updated_at?: string | null | undefined;
119
+ }
120
+ export interface CreateDomainRequest {
121
+ /** ID of the project to which the domain belongs. (UUID format) */
122
+ project_id?: string | undefined;
123
+ /** Fully qualified domain name. */
124
+ name?: string | undefined;
125
+ }
126
+ export type DomainStatus =
127
+ | "unknown_status"
128
+ | "creating"
129
+ | "waiting_validation"
130
+ | "validating"
131
+ | "validation_failed"
132
+ | "provisioning"
133
+ | "ready"
134
+ | "deleting";
135
+ export interface Domain {
136
+ /** Unique identifier of the domain. (UUID format) */
137
+ id?: string | undefined;
138
+ /** ID of the Project to which the domain belongs. (UUID format) */
139
+ project_id?: string | undefined;
140
+ /** ID of the Organization to which the domain belongs. (UUID format) */
141
+ organization_id?: string | undefined;
142
+ /** Fully qualified domain name. */
143
+ name?: string | undefined;
144
+ /** Status of the domain. */
145
+ status?: DomainStatus | undefined;
146
+ /** Number of mailboxes of the domain. */
147
+ mailbox_total_count?: number | undefined;
148
+ /** Date and time of domain creation. (RFC 3339 format) */
149
+ created_at?: string | null | undefined;
150
+ /** Date and time of the domain's last update. (RFC 3339 format) */
151
+ updated_at?: string | null | undefined;
152
+ /** URL of the domain's webmail. */
153
+ webmail_url?: string | undefined;
154
+ /** URL of the domain's IMAP service. */
155
+ imap_url?: string | undefined;
156
+ /** URL of the domain's POP3 service. */
157
+ pop3_url?: string | undefined;
158
+ /** URL of the domain's SMTP service. */
159
+ smtp_url?: string | undefined;
160
+ }
161
+ export interface CreateForwardingRequest {
162
+ /** ID of the mailbox for which to create the forwarding rule. (UUID format) */
163
+ mailbox_id?: string | undefined;
164
+ /** Destination email address to which incoming emails will be forwarded. Must not be the same as the mailbox's own email address. */
165
+ email?: string | undefined;
166
+ }
167
+ export type ForwardingStatus =
168
+ | "unknown_status"
169
+ | "provisioning"
170
+ | "ready"
171
+ | "updating"
172
+ | "deleting";
173
+ export interface Forwarding {
174
+ /** Unique identifier of the forwarding rule. (UUID format) */
175
+ id?: string | undefined;
176
+ /** Date and time of forwarding rule creation. (RFC 3339 format) */
177
+ created_at?: string | null | undefined;
178
+ /** Date and time when the forwarding rule was last updated. (RFC 3339 format) */
179
+ updated_at?: string | null | undefined;
180
+ /** ID of the mailbox to which the forwarding rule belongs. (UUID format) */
181
+ mailbox_id?: string | undefined;
182
+ /** Destination email address to which incoming emails are forwarded. */
183
+ email?: string | undefined;
184
+ /** Status of the forwarding rule. */
185
+ status?: ForwardingStatus | undefined;
186
+ }
187
+ export interface DeleteAliasRequest {
188
+ /** ID of the alias to delete. (UUID format) */
189
+ alias_id: string;
190
+ }
191
+ export interface DeleteDomainRequest {
192
+ /** ID of the domain to delete. (UUID format) */
193
+ domain_id: string;
194
+ }
195
+ export interface DeleteForwardingRequest {
196
+ /** ID of the forwarding rule to delete. (UUID format) */
197
+ forwarding_id: string;
198
+ }
199
+ export interface DeleteMailboxRequest {
200
+ /** ID of the mailbox to delete. (UUID format) */
201
+ mailbox_id: string;
202
+ }
203
+ export interface GetAliasRequest {
204
+ /** ID of the alias to get. (UUID format) */
205
+ alias_id: string;
206
+ }
207
+ export interface GetDomainRequest {
208
+ /** ID of the domain to get. (UUID format) */
209
+ domain_id: string;
210
+ }
211
+ export interface GetDomainRecordsRequest {
212
+ /** (Optional) ID of the domain in which to get the records. (UUID format) */
213
+ domain_id: string;
214
+ }
215
+ export type DomainRecordStatus =
216
+ | "unknown_status"
217
+ | "validating"
218
+ | "valid"
219
+ | "invalid"
220
+ | "not_found";
221
+ export type DomainRecordLevel = "unknown_level" | "required" | "recommended" | "optional";
222
+ export type DomainRecordDNSType =
223
+ | "unknown_dns_type"
224
+ | "cname_dns_type"
225
+ | "mx_dns_type"
226
+ | "srv_dns_type"
227
+ | "txt_dns_type";
228
+ export interface DomainRecord {
229
+ /** Unique identifier of the DNS record. (UUID format) */
230
+ id?: string | undefined;
231
+ /** ID of the domain to which the record belongs. (UUID format) */
232
+ domain_id?: string | undefined;
233
+ /** Status of the record. */
234
+ status?: DomainRecordStatus | undefined;
235
+ /** Level of requirement of the record. */
236
+ level?: DomainRecordLevel | undefined;
237
+ /** DNS type of the record. */
238
+ dns_type?: DomainRecordDNSType | undefined;
239
+ /** DNS name of the record. */
240
+ dns_name?: string | undefined;
241
+ /** DNS value of the record. */
242
+ dns_value?: string | undefined;
243
+ /** Error associated in case the record is not valid. */
244
+ error?: string | null | undefined;
245
+ /** Date and time of record creation. (RFC 3339 format) */
246
+ created_at?: string | null | undefined;
247
+ /** Date and time of record last updated. (RFC 3339 format) */
248
+ updated_at?: string | null | undefined;
249
+ }
250
+ export interface GetDomainRecordsResponse {
251
+ /** Record designed to automatically configure an email client with the appropriate mail server settings using a standardized XML file format. */
252
+ autoconfig?: DomainRecord | undefined;
253
+ /** Record designed to automate the discovery of server settings to configure email clients like Outlook. */
254
+ autodiscover?: DomainRecord | undefined;
255
+ /** Record that allows clients to interact with calendar data stored on a server. */
256
+ caldav?: DomainRecord | undefined;
257
+ /** Record that allows clients to interact with contact data stored on a server. */
258
+ carddav?: DomainRecord | undefined;
259
+ /** Record that allows the DKIM email authentication method to be employed to verify the authenticity of an email message. */
260
+ dkim?: DomainRecord | undefined;
261
+ /** Record that provides a mechanism for email receivers to determine if incoming messages are legitimate and were sent from authorized sources. */
262
+ dmarc?: DomainRecord | undefined;
263
+ /** Record that provides a unique token to validate a domain ownership. */
264
+ domain_validation?: DomainRecord | undefined;
265
+ /** Record that allows accessing the mailbox with the IMAP protocol. */
266
+ imap?: DomainRecord | undefined;
267
+ /** Record that directs emails to a mail server. */
268
+ mx?: DomainRecord | undefined;
269
+ /** Record that allows accessing the mailbox with the POP3 protocol. */
270
+ pop3?: DomainRecord | undefined;
271
+ /** Record that lists all the servers authorized to send emails from a particular domain. */
272
+ spf?: DomainRecord | undefined;
273
+ /** Record that allows the use of the SMTP submission mechanism. */
274
+ submission?: DomainRecord | undefined;
275
+ }
276
+ export interface GetForwardingRequest {
277
+ /** ID of the forwarding rule to get. (UUID format) */
278
+ forwarding_id: string;
279
+ }
280
+ export interface GetMailboxRequest {
281
+ /** ID of the mailbox to get. (UUID format) */
282
+ mailbox_id: string;
283
+ }
284
+ export interface GetMailboxForwardingRequest {
285
+ /** ID of the mailbox to get the forwarding settings for. (UUID format) */
286
+ mailbox_id: string;
287
+ }
288
+ export interface MailboxForwarding {
289
+ /** ID of the mailbox to which the forwarding settings belong. (UUID format) */
290
+ mailbox_id?: string | undefined;
291
+ /** Whether to keep a copy of forwarded emails in the local mailbox. */
292
+ keep_copy?: boolean | undefined;
293
+ /** Whether forwarding is enabled for the mailbox. When disabled, no emails are forwarded. */
294
+ enabled?: boolean | undefined;
295
+ /** Date and time of the forwarding settings creation. (RFC 3339 format) */
296
+ created_at?: string | null | undefined;
297
+ /** Date and time when the forwarding settings were last updated. (RFC 3339 format) */
298
+ updated_at?: string | null | undefined;
299
+ }
300
+ export type ListAliasesRequestOrderBy =
301
+ | "created_at_desc"
302
+ | "created_at_asc"
303
+ | "updated_at_desc"
304
+ | "updated_at_asc"
305
+ | "name_desc"
306
+ | "name_asc";
307
+ export interface ListAliasesRequest {
308
+ /** Order aliases by specific criteria. */
309
+ order_by?: ListAliasesRequestOrderBy | (string & {}) | undefined;
310
+ /** Requested page number. Value must be greater or equal to 1. */
311
+ page?: number | undefined;
312
+ /** Requested page size. Value must be between 1 and 100. */
313
+ page_size?: number | undefined;
314
+ /** ID of the mailbox for which to list aliases. (UUID format) */
315
+ mailbox_id?: string | undefined;
316
+ /** (Optional) Filter aliases by their status. */
317
+ status?: AliasStatus | (string & {}) | undefined;
318
+ /** Project ID to filter on. (UUID format) */
319
+ project_id: string;
320
+ }
321
+ /** Single page of aliases matching the requested criteria. */
322
+ export type ListAliasesResponseAliasesList = Array<Alias>;
323
+ export interface ListAliasesResponse {
324
+ /** Number of aliases that match the request (without pagination). */
325
+ total_count?: number | undefined;
326
+ /** Single page of aliases matching the requested criteria. */
327
+ aliases: ListAliasesResponseAliasesList;
328
+ }
329
+ export type ListDomainsRequestOrderBy =
330
+ | "created_at_desc"
331
+ | "created_at_asc"
332
+ | "updated_at_desc"
333
+ | "updated_at_asc"
334
+ | "name_desc"
335
+ | "name_asc"
336
+ | "mailbox_total_count_desc"
337
+ | "mailbox_total_count_asc";
338
+ export type ListDomainsRequestStatusesList = Array<DomainStatus | (string & {})>;
339
+ export interface ListDomainsRequest {
340
+ order_by?: ListDomainsRequestOrderBy | (string & {}) | undefined;
341
+ page?: number | undefined;
342
+ page_size?: number | undefined;
343
+ /** (UUID format) */
344
+ project_id?: string | undefined;
345
+ statuses?: ListDomainsRequestStatusesList | undefined;
346
+ search?: string | undefined;
347
+ }
348
+ /** Single page of domains matching the requested criteria. */
349
+ export type ListDomainsResponseDomainsList = Array<Domain>;
350
+ export interface ListDomainsResponse {
351
+ /** Number of domains that match the request (without pagination). */
352
+ total_count?: number | undefined;
353
+ /** Single page of domains matching the requested criteria. */
354
+ domains: ListDomainsResponseDomainsList;
355
+ }
356
+ export type ListForwardingsRequestOrderBy =
357
+ | "created_at_desc"
358
+ | "created_at_asc"
359
+ | "updated_at_desc"
360
+ | "updated_at_asc"
361
+ | "email_desc"
362
+ | "email_asc";
363
+ export interface ListForwardingsRequest {
364
+ /** Order forwardings by specific criteria. */
365
+ order_by?: ListForwardingsRequestOrderBy | (string & {}) | undefined;
366
+ /** Requested page number. Value must be greater or equal to 1. */
367
+ page?: number | undefined;
368
+ /** Requested page size. Value must be between 1 and 100. */
369
+ page_size?: number | undefined;
370
+ /** (Optional) ID of the mailbox for which to list forwarding rules. (UUID format) */
371
+ mailbox_id?: string | undefined;
372
+ /** (Optional) Filter forwarding rules by their status. */
373
+ status?: ForwardingStatus | (string & {}) | undefined;
374
+ /** List forwardings of this Project. One-of `scope`: at most one of `project_id`, `organization_id`. */
375
+ project_id?: string | undefined;
376
+ /** List forwardings of this Organization. One-of `scope`: at most one of `project_id`, `organization_id`. */
377
+ organization_id?: string | undefined;
378
+ }
379
+ /** Single page of forwarding rules matching the requested criteria. */
380
+ export type ListForwardingsResponseForwardingsList = Array<Forwarding>;
381
+ export interface ListForwardingsResponse {
382
+ /** Number of forwarding rules that match the request (without pagination). */
383
+ total_count?: number | undefined;
384
+ /** Single page of forwarding rules matching the requested criteria. */
385
+ forwardings: ListForwardingsResponseForwardingsList;
386
+ }
387
+ export type ListMailboxesRequestOrderBy =
388
+ | "created_at_desc"
389
+ | "created_at_asc"
390
+ | "updated_at_desc"
391
+ | "updated_at_asc"
392
+ | "email_desc"
393
+ | "email_asc";
394
+ export type ListMailboxesRequestStatusesList = Array<MailboxStatus | (string & {})>;
395
+ export interface ListMailboxesRequest {
396
+ /** Order matching mailbox by different criteria. */
397
+ order_by?: ListMailboxesRequestOrderBy | (string & {}) | undefined;
398
+ /** Requested page number. Value must be greater or equal to 1. */
399
+ page?: number | undefined;
400
+ /** Requested page size. Value must be between 1 and 1000. */
401
+ page_size?: number | undefined;
402
+ /** (Optional) ID of the domain in which to list the mailboxes. (UUID format) */
403
+ domain_id?: string | undefined;
404
+ /** (Optional) Filter mailboxes by their statuses. */
405
+ statuses?: ListMailboxesRequestStatusesList | undefined;
406
+ /** (Optional) Search term to filter mailboxes on name and local_part. */
407
+ search?: string | undefined;
408
+ /** (Optional) Project ID to filter mailboxes on. (UUID format) */
409
+ project_id?: string | undefined;
410
+ }
411
+ /** Mailboxes matching the requested criteria. */
412
+ export type ListMailboxesResponseMailboxesList = Array<Mailbox>;
413
+ export interface ListMailboxesResponse {
414
+ /** Number of mailboxes that match the request (without pagination). */
415
+ total_count?: number | undefined;
416
+ /** Mailboxes matching the requested criteria. */
417
+ mailboxes: ListMailboxesResponseMailboxesList;
418
+ }
419
+ export interface RestoreMailboxRequest {
420
+ /** ID of the mailbox to restore. (UUID format) */
421
+ mailbox_id: string;
422
+ }
423
+ export interface UpdateAliasRequest {
424
+ /** ID of the alias to update. (UUID format) */
425
+ alias_id: string;
426
+ /** (Optional) Description of the alias. */
427
+ description?: string | null | undefined;
428
+ }
429
+ export interface UpdateForwardingRequest {
430
+ /** ID of the forwarding rule to update. (UUID format) */
431
+ forwarding_id: string;
432
+ /** (Optional) New destination email address for the forwarding rule. Must not be the same as the mailbox's own email address. */
433
+ email?: string | null | undefined;
434
+ }
435
+ export interface UpdateMailboxRequest {
436
+ /** ID of the mailbox to update. (UUID format) */
437
+ mailbox_id: string;
438
+ /** (Optional) New subscription period for the mailbox. */
439
+ subscription_period?: MailboxSubscriptionPeriod | (string & {}) | undefined;
440
+ /** (Optional) New password of the mailbox. */
441
+ new_password?: string | Redacted.Redacted<string> | null | undefined;
442
+ }
443
+ export interface UpdateMailboxForwardingRequest {
444
+ /** ID of the mailbox to update the forwarding settings for. (UUID format) */
445
+ mailbox_id: string;
446
+ /** (Optional) Whether to keep a copy of forwarded emails in the local mailbox. */
447
+ keep_copy?: boolean | null | undefined;
448
+ /** (Optional) Enable or disable forwarding for the mailbox. */
449
+ enabled?: boolean | null | undefined;
450
+ }
451
+ export interface ValidateDomainRecordsRequest {
452
+ /** ID of the domain with which to validate the records. (UUID format) */
453
+ domain_id: string;
454
+ }
455
+ export interface ValidateDomainRecordsResponse {}
456
+ export type BatchCreateMailboxesError = ScalewayOpError;
457
+ /** Create one or more mailboxes. */
458
+ export const batchCreateMailboxes: API.OperationMethod<
459
+ BatchCreateMailboxesRequest,
460
+ BatchCreateMailboxesResponse,
461
+ BatchCreateMailboxesError,
462
+ ScalewayOpContext
463
+ > = /*@__PURE__*/ API.make(() => ({
464
+ input: __S(2, __c0, 2) as any as S.Schema<BatchCreateMailboxesRequest>,
465
+ output: __S(3, __c0, 3) as any as S.Schema<BatchCreateMailboxesResponse>,
466
+ errors: [],
467
+ serviceErrors: ScalewayServiceErrors,
468
+ protocol: ScalewayProtocol,
469
+ retry: Retry.Retry,
470
+ telemetry: TELEMETRY,
471
+ span: "BatchCreateMailboxes",
472
+ }));
473
+
474
+ export type CreateAliasError = ScalewayOpError;
475
+ /** Create an alias for a mailbox. */
476
+ export const createAlias: API.OperationMethod<
477
+ CreateAliasRequest,
478
+ Alias,
479
+ CreateAliasError,
480
+ ScalewayOpContext
481
+ > = /*@__PURE__*/ API.make(() => ({
482
+ input: __S(12, __c3, 0) as any as S.Schema<CreateAliasRequest>,
483
+ output: __S(16, __c4, 0) as any as S.Schema<Alias>,
484
+ errors: [],
485
+ serviceErrors: ScalewayServiceErrors,
486
+ protocol: ScalewayProtocol,
487
+ retry: Retry.Retry,
488
+ telemetry: TELEMETRY,
489
+ span: "CreateAlias",
490
+ }));
491
+
492
+ export type CreateDomainError = ScalewayOpError;
493
+ /** Register a domain in a project. You must specify a `project_id` and a `domain_name` to register a domain in a specific Project. */
494
+ export const createDomain: API.OperationMethod<
495
+ CreateDomainRequest,
496
+ Domain,
497
+ CreateDomainError,
498
+ ScalewayOpContext
499
+ > = /*@__PURE__*/ API.make(() => ({
500
+ input: __S(68, __c17, 0) as any as S.Schema<CreateDomainRequest>,
501
+ output: __S(72, __c18, 0) as any as S.Schema<Domain>,
502
+ errors: [],
503
+ serviceErrors: ScalewayServiceErrors,
504
+ protocol: ScalewayProtocol,
505
+ retry: Retry.Retry,
506
+ telemetry: TELEMETRY,
507
+ span: "CreateDomain",
508
+ }));
509
+
510
+ export type CreateForwardingError = ScalewayOpError;
511
+ /** Create a forwarding rule for a mailbox. All incoming emails to the mailbox will be redirected to the specified destination email address. A mailbox can have up to 5 forwarding rules. Forwarding to the mailbox's own email address is not allowed. */
512
+ export const createForwarding: API.OperationMethod<
513
+ CreateForwardingRequest,
514
+ Forwarding,
515
+ CreateForwardingError,
516
+ ScalewayOpContext
517
+ > = /*@__PURE__*/ API.make(() => ({
518
+ input: __S(92, __c23, 0) as any as S.Schema<CreateForwardingRequest>,
519
+ output: __S(96, __c24, 0) as any as S.Schema<Forwarding>,
520
+ errors: [],
521
+ serviceErrors: ScalewayServiceErrors,
522
+ protocol: ScalewayProtocol,
523
+ retry: Retry.Retry,
524
+ telemetry: TELEMETRY,
525
+ span: "CreateForwarding",
526
+ }));
527
+
528
+ export type DeleteAliasError = ScalewayOpError;
529
+ /** Delete an alias by its ID. */
530
+ export const deleteAlias: API.OperationMethod<
531
+ DeleteAliasRequest,
532
+ Alias,
533
+ DeleteAliasError,
534
+ ScalewayOpContext
535
+ > = /*@__PURE__*/ API.make(() => ({
536
+ input: __S(100, __c25, 0) as any as S.Schema<DeleteAliasRequest>,
537
+ output: __S(16, __c4, 0) as any as S.Schema<Alias>,
538
+ errors: [],
539
+ serviceErrors: ScalewayServiceErrors,
540
+ protocol: ScalewayProtocol,
541
+ retry: Retry.Retry,
542
+ telemetry: TELEMETRY,
543
+ span: "DeleteAlias",
544
+ }));
545
+
546
+ export type DeleteDomainError = ScalewayOpError;
547
+ /** Delete a domain by its ID. */
548
+ export const deleteDomain: API.OperationMethod<
549
+ DeleteDomainRequest,
550
+ Domain,
551
+ DeleteDomainError,
552
+ ScalewayOpContext
553
+ > = /*@__PURE__*/ API.make(() => ({
554
+ input: __S(104, __c26, 0) as any as S.Schema<DeleteDomainRequest>,
555
+ output: __S(72, __c18, 0) as any as S.Schema<Domain>,
556
+ errors: [],
557
+ serviceErrors: ScalewayServiceErrors,
558
+ protocol: ScalewayProtocol,
559
+ retry: Retry.Retry,
560
+ telemetry: TELEMETRY,
561
+ span: "DeleteDomain",
562
+ }));
563
+
564
+ export type DeleteForwardingError = ScalewayOpError;
565
+ /** Delete a forwarding rule by its ID. */
566
+ export const deleteForwarding: API.OperationMethod<
567
+ DeleteForwardingRequest,
568
+ Forwarding,
569
+ DeleteForwardingError,
570
+ ScalewayOpContext
571
+ > = /*@__PURE__*/ API.make(() => ({
572
+ input: __S(108, __c27, 0) as any as S.Schema<DeleteForwardingRequest>,
573
+ output: __S(96, __c24, 0) as any as S.Schema<Forwarding>,
574
+ errors: [],
575
+ serviceErrors: ScalewayServiceErrors,
576
+ protocol: ScalewayProtocol,
577
+ retry: Retry.Retry,
578
+ telemetry: TELEMETRY,
579
+ span: "DeleteForwarding",
580
+ }));
581
+
582
+ export type DeleteMailboxError = ScalewayOpError;
583
+ /** Delete a mailbox by its ID. */
584
+ export const deleteMailbox: API.OperationMethod<
585
+ DeleteMailboxRequest,
586
+ Mailbox,
587
+ DeleteMailboxError,
588
+ ScalewayOpContext
589
+ > = /*@__PURE__*/ API.make(() => ({
590
+ input: __S(112, __c28, 0) as any as S.Schema<DeleteMailboxRequest>,
591
+ output: __S(8, __c2, 0) as any as S.Schema<Mailbox>,
592
+ errors: [],
593
+ serviceErrors: ScalewayServiceErrors,
594
+ protocol: ScalewayProtocol,
595
+ retry: Retry.Retry,
596
+ telemetry: TELEMETRY,
597
+ span: "DeleteMailbox",
598
+ }));
599
+
600
+ export type GetAliasError = ScalewayOpError;
601
+ /** Get an alias by its ID. */
602
+ export const getAlias: API.OperationMethod<
603
+ GetAliasRequest,
604
+ Alias,
605
+ GetAliasError,
606
+ ScalewayOpContext
607
+ > = /*@__PURE__*/ API.make(() => ({
608
+ input: __S(116, __c29, 0) as any as S.Schema<GetAliasRequest>,
609
+ output: __S(16, __c4, 0) as any as S.Schema<Alias>,
610
+ errors: [],
611
+ serviceErrors: ScalewayServiceErrors,
612
+ protocol: ScalewayProtocol,
613
+ retry: Retry.Retry,
614
+ telemetry: TELEMETRY,
615
+ span: "GetAlias",
616
+ }));
617
+
618
+ export type GetDomainError = ScalewayOpError;
619
+ /** Get a domain by its ID. */
620
+ export const getDomain: API.OperationMethod<
621
+ GetDomainRequest,
622
+ Domain,
623
+ GetDomainError,
624
+ ScalewayOpContext
625
+ > = /*@__PURE__*/ API.make(() => ({
626
+ input: __S(120, __c30, 0) as any as S.Schema<GetDomainRequest>,
627
+ output: __S(72, __c18, 0) as any as S.Schema<Domain>,
628
+ errors: [],
629
+ serviceErrors: ScalewayServiceErrors,
630
+ protocol: ScalewayProtocol,
631
+ retry: Retry.Retry,
632
+ telemetry: TELEMETRY,
633
+ span: "GetDomain",
634
+ }));
635
+
636
+ export type GetDomainRecordsError = ScalewayOpError;
637
+ /** Get domain records by its ID. */
638
+ export const getDomainRecords: API.OperationMethod<
639
+ GetDomainRecordsRequest,
640
+ GetDomainRecordsResponse,
641
+ GetDomainRecordsError,
642
+ ScalewayOpContext
643
+ > = /*@__PURE__*/ API.make(() => ({
644
+ input: __S(20, __c5, 0) as any as S.Schema<GetDomainRecordsRequest>,
645
+ output: __S(22, __c5, 2) as any as S.Schema<GetDomainRecordsResponse>,
646
+ errors: [],
647
+ serviceErrors: ScalewayServiceErrors,
648
+ protocol: ScalewayProtocol,
649
+ retry: Retry.Retry,
650
+ telemetry: TELEMETRY,
651
+ span: "GetDomainRecords",
652
+ }));
653
+
654
+ export type GetForwardingError = ScalewayOpError;
655
+ /** Get a forwarding rule by its ID. */
656
+ export const getForwarding: API.OperationMethod<
657
+ GetForwardingRequest,
658
+ Forwarding,
659
+ GetForwardingError,
660
+ ScalewayOpContext
661
+ > = /*@__PURE__*/ API.make(() => ({
662
+ input: __S(24, __c6, 0) as any as S.Schema<GetForwardingRequest>,
663
+ output: __S(96, __c24, 0) as any as S.Schema<Forwarding>,
664
+ errors: [],
665
+ serviceErrors: ScalewayServiceErrors,
666
+ protocol: ScalewayProtocol,
667
+ retry: Retry.Retry,
668
+ telemetry: TELEMETRY,
669
+ span: "GetForwarding",
670
+ }));
671
+
672
+ export type GetMailboxError = ScalewayOpError;
673
+ /** Get a mailbox by its ID. */
674
+ export const getMailbox: API.OperationMethod<
675
+ GetMailboxRequest,
676
+ Mailbox,
677
+ GetMailboxError,
678
+ ScalewayOpContext
679
+ > = /*@__PURE__*/ API.make(() => ({
680
+ input: __S(28, __c7, 0) as any as S.Schema<GetMailboxRequest>,
681
+ output: __S(8, __c2, 0) as any as S.Schema<Mailbox>,
682
+ errors: [],
683
+ serviceErrors: ScalewayServiceErrors,
684
+ protocol: ScalewayProtocol,
685
+ retry: Retry.Retry,
686
+ telemetry: TELEMETRY,
687
+ span: "GetMailbox",
688
+ }));
689
+
690
+ export type GetMailboxForwardingError = ScalewayOpError;
691
+ export const getMailboxForwarding: API.OperationMethod<
692
+ GetMailboxForwardingRequest,
693
+ MailboxForwarding,
694
+ GetMailboxForwardingError,
695
+ ScalewayOpContext
696
+ > = /*@__PURE__*/ API.make(() => ({
697
+ input: __S(32, __c8, 0) as any as S.Schema<GetMailboxForwardingRequest>,
698
+ output: __S(36, __c9, 0) as any as S.Schema<MailboxForwarding>,
699
+ errors: [],
700
+ serviceErrors: ScalewayServiceErrors,
701
+ protocol: ScalewayProtocol,
702
+ retry: Retry.Retry,
703
+ telemetry: TELEMETRY,
704
+ span: "GetMailboxForwarding",
705
+ }));
706
+
707
+ export type ListAliasesError = ScalewayOpError;
708
+ /** List aliases for a mailbox. */
709
+ export const listAliases: API.PaginatedOperationMethod<
710
+ ListAliasesRequest,
711
+ ListAliasesResponse,
712
+ ListAliasesError,
713
+ ScalewayOpContext,
714
+ Alias
715
+ > = /*@__PURE__*/ API.makePaginated(
716
+ () => ({
717
+ input: __S(40, __c10, 0) as any as S.Schema<ListAliasesRequest>,
718
+ output: __S(42, __c10, 2) as any as S.Schema<ListAliasesResponse>,
719
+ errors: [],
720
+ serviceErrors: ScalewayServiceErrors,
721
+ protocol: ScalewayProtocol,
722
+ retry: Retry.Retry,
723
+ telemetry: TELEMETRY,
724
+ span: "ListAliases",
725
+ pagination: {
726
+ mode: "page",
727
+ inputToken: "page",
728
+ outputToken: "total_count",
729
+ items: "aliases",
730
+ pageSize: "page_size",
731
+ } as const,
732
+ }),
733
+ paginateByTotalCount,
734
+ ) as any;
735
+
736
+ export type ListDomainsError = ScalewayOpError;
737
+ /** List domains in an organization. The return list can be filtered with request parameters. */
738
+ export const listDomains: API.PaginatedOperationMethod<
739
+ ListDomainsRequest,
740
+ ListDomainsResponse,
741
+ ListDomainsError,
742
+ ScalewayOpContext,
743
+ Domain
744
+ > = /*@__PURE__*/ API.makePaginated(
745
+ () => ({
746
+ input: __S(44, __c11, 0) as any as S.Schema<ListDomainsRequest>,
747
+ output: __S(46, __c11, 2) as any as S.Schema<ListDomainsResponse>,
748
+ errors: [],
749
+ serviceErrors: ScalewayServiceErrors,
750
+ protocol: ScalewayProtocol,
751
+ retry: Retry.Retry,
752
+ telemetry: TELEMETRY,
753
+ span: "ListDomains",
754
+ pagination: {
755
+ mode: "page",
756
+ inputToken: "page",
757
+ outputToken: "total_count",
758
+ items: "domains",
759
+ pageSize: "page_size",
760
+ } as const,
761
+ }),
762
+ paginateByTotalCount,
763
+ ) as any;
764
+
765
+ export type ListForwardingsError = ScalewayOpError;
766
+ /** List forwarding rules in an organization. The return list can be filtered with request parameters. */
767
+ export const listForwardings: API.PaginatedOperationMethod<
768
+ ListForwardingsRequest,
769
+ ListForwardingsResponse,
770
+ ListForwardingsError,
771
+ ScalewayOpContext,
772
+ Forwarding
773
+ > = /*@__PURE__*/ API.makePaginated(
774
+ () => ({
775
+ input: __S(52, __c13, 0) as any as S.Schema<ListForwardingsRequest>,
776
+ output: __S(54, __c13, 2) as any as S.Schema<ListForwardingsResponse>,
777
+ errors: [],
778
+ serviceErrors: ScalewayServiceErrors,
779
+ protocol: ScalewayProtocol,
780
+ retry: Retry.Retry,
781
+ telemetry: TELEMETRY,
782
+ span: "ListForwardings",
783
+ pagination: {
784
+ mode: "page",
785
+ inputToken: "page",
786
+ outputToken: "total_count",
787
+ items: "forwardings",
788
+ pageSize: "page_size",
789
+ } as const,
790
+ }),
791
+ paginateByTotalCount,
792
+ ) as any;
793
+
794
+ export type ListMailboxesError = ScalewayOpError;
795
+ /** List mailboxes in an organization. The return list can be filtered with request parameters. */
796
+ export const listMailboxes: API.PaginatedOperationMethod<
797
+ ListMailboxesRequest,
798
+ ListMailboxesResponse,
799
+ ListMailboxesError,
800
+ ScalewayOpContext,
801
+ Mailbox
802
+ > = /*@__PURE__*/ API.makePaginated(
803
+ () => ({
804
+ input: __S(56, __c14, 0) as any as S.Schema<ListMailboxesRequest>,
805
+ output: __S(57, __c14, 1) as any as S.Schema<ListMailboxesResponse>,
806
+ errors: [],
807
+ serviceErrors: ScalewayServiceErrors,
808
+ protocol: ScalewayProtocol,
809
+ retry: Retry.Retry,
810
+ telemetry: TELEMETRY,
811
+ span: "ListMailboxes",
812
+ pagination: {
813
+ mode: "page",
814
+ inputToken: "page",
815
+ outputToken: "total_count",
816
+ items: "mailboxes",
817
+ pageSize: "page_size",
818
+ } as const,
819
+ }),
820
+ paginateByTotalCount,
821
+ ) as any;
822
+
823
+ export type RestoreMailboxError = ScalewayOpError;
824
+ /** Restore a mailbox in deletion scheduled status by its ID. */
825
+ export const restoreMailbox: API.OperationMethod<
826
+ RestoreMailboxRequest,
827
+ Mailbox,
828
+ RestoreMailboxError,
829
+ ScalewayOpContext
830
+ > = /*@__PURE__*/ API.make(() => ({
831
+ input: __S(60, __c15, 0) as any as S.Schema<RestoreMailboxRequest>,
832
+ output: __S(8, __c2, 0) as any as S.Schema<Mailbox>,
833
+ errors: [],
834
+ serviceErrors: ScalewayServiceErrors,
835
+ protocol: ScalewayProtocol,
836
+ retry: Retry.Retry,
837
+ telemetry: TELEMETRY,
838
+ span: "RestoreMailbox",
839
+ }));
840
+
841
+ export type UpdateAliasError = ScalewayOpError;
842
+ /** Update an alias by its ID. */
843
+ export const updateAlias: API.OperationMethod<
844
+ UpdateAliasRequest,
845
+ Alias,
846
+ UpdateAliasError,
847
+ ScalewayOpContext
848
+ > = /*@__PURE__*/ API.make(() => ({
849
+ input: __S(64, __c16, 0) as any as S.Schema<UpdateAliasRequest>,
850
+ output: __S(16, __c4, 0) as any as S.Schema<Alias>,
851
+ errors: [],
852
+ serviceErrors: ScalewayServiceErrors,
853
+ protocol: ScalewayProtocol,
854
+ retry: Retry.Retry,
855
+ telemetry: TELEMETRY,
856
+ span: "UpdateAlias",
857
+ }));
858
+
859
+ export type UpdateForwardingError = ScalewayOpError;
860
+ /** Update a forwarding rule's destination email address by its ID. */
861
+ export const updateForwarding: API.OperationMethod<
862
+ UpdateForwardingRequest,
863
+ Forwarding,
864
+ UpdateForwardingError,
865
+ ScalewayOpContext
866
+ > = /*@__PURE__*/ API.make(() => ({
867
+ input: __S(76, __c19, 0) as any as S.Schema<UpdateForwardingRequest>,
868
+ output: __S(96, __c24, 0) as any as S.Schema<Forwarding>,
869
+ errors: [],
870
+ serviceErrors: ScalewayServiceErrors,
871
+ protocol: ScalewayProtocol,
872
+ retry: Retry.Retry,
873
+ telemetry: TELEMETRY,
874
+ span: "UpdateForwarding",
875
+ }));
876
+
877
+ export type UpdateMailboxError = ScalewayOpError;
878
+ /** Update a mailbox subscription period or password with its ID. */
879
+ export const updateMailbox: API.OperationMethod<
880
+ UpdateMailboxRequest,
881
+ Mailbox,
882
+ UpdateMailboxError,
883
+ ScalewayOpContext
884
+ > = /*@__PURE__*/ API.make(() => ({
885
+ input: __S(80, __c20, 0) as any as S.Schema<UpdateMailboxRequest>,
886
+ output: __S(8, __c2, 0) as any as S.Schema<Mailbox>,
887
+ errors: [],
888
+ serviceErrors: ScalewayServiceErrors,
889
+ protocol: ScalewayProtocol,
890
+ retry: Retry.Retry,
891
+ telemetry: TELEMETRY,
892
+ span: "UpdateMailbox",
893
+ }));
894
+
895
+ export type UpdateMailboxForwardingError = ScalewayOpError;
896
+ export const updateMailboxForwarding: API.OperationMethod<
897
+ UpdateMailboxForwardingRequest,
898
+ MailboxForwarding,
899
+ UpdateMailboxForwardingError,
900
+ ScalewayOpContext
901
+ > = /*@__PURE__*/ API.make(() => ({
902
+ input: __S(84, __c21, 0) as any as S.Schema<UpdateMailboxForwardingRequest>,
903
+ output: __S(36, __c9, 0) as any as S.Schema<MailboxForwarding>,
904
+ errors: [],
905
+ serviceErrors: ScalewayServiceErrors,
906
+ protocol: ScalewayProtocol,
907
+ retry: Retry.Retry,
908
+ telemetry: TELEMETRY,
909
+ span: "UpdateMailboxForwarding",
910
+ }));
911
+
912
+ export type ValidateDomainRecordsError = ScalewayOpError;
913
+ /** Validate domain records by its ID. */
914
+ export const validateDomainRecords: API.OperationMethod<
915
+ ValidateDomainRecordsRequest,
916
+ ValidateDomainRecordsResponse,
917
+ ValidateDomainRecordsError,
918
+ ScalewayOpContext
919
+ > = /*@__PURE__*/ API.make(() => ({
920
+ input: __S(88, __c22, 0) as any as S.Schema<ValidateDomainRecordsRequest>,
921
+ output: __S(89, __c22, 1) as any as S.Schema<ValidateDomainRecordsResponse>,
922
+ errors: [],
923
+ serviceErrors: ScalewayServiceErrors,
924
+ protocol: ScalewayProtocol,
925
+ retry: Retry.Retry,
926
+ telemetry: TELEMETRY,
927
+ span: "ValidateDomainRecords",
928
+ }));
929
+
930
+ // Schema builders: each runs one schema initializer, on that schema's first use.
931
+ function __c0(j: number): any {
932
+ switch (j) {
933
+ case 0:
934
+ return S.suspend(() =>
935
+ S.Struct({
936
+ local_part: S.optional(S.String),
937
+ password: S.optional(S.String.pipe(T.SensitiveValue({}))),
938
+ }),
939
+ ).annotate({ identifier: "BatchCreateMailboxesRequestMailboxParameters" });
940
+ case 1:
941
+ return S.Array(__S(0, __c0, 0));
942
+ case 2:
943
+ return S.suspend(() =>
944
+ S.Struct({
945
+ mailboxes: S.optional(__S(1, __c0, 1)),
946
+ domain_id: S.optional(S.String),
947
+ subscription_period: S.optional(S.String),
948
+ }).pipe(
949
+ T.Http({
950
+ method: "POST",
951
+ uri: "/mailbox/v1alpha1/batch-create-mailboxes",
952
+ code: 200,
953
+ baseUrl: "https://api.scaleway.com",
954
+ }),
955
+ ),
956
+ ).annotate({ identifier: "BatchCreateMailboxesRequest" });
957
+ case 3:
958
+ return S.suspend(() =>
959
+ S.Struct({
960
+ mailboxes: S.optional(__S(4, __c1, 0)),
961
+ }),
962
+ ).annotate({ identifier: "BatchCreateMailboxesResponse" });
963
+ }
964
+ }
965
+ function __c1(j: number): any {
966
+ switch (j) {
967
+ case 0:
968
+ return S.Array(__S(8, __c2, 0));
969
+ }
970
+ }
971
+ function __c2(j: number): any {
972
+ switch (j) {
973
+ case 0:
974
+ return S.suspend(() =>
975
+ S.Struct({
976
+ id: S.optional(S.String),
977
+ project_id: S.optional(S.String),
978
+ organization_id: S.optional(S.String),
979
+ domain_id: S.optional(S.String),
980
+ email: S.optional(S.String),
981
+ status: S.optional(S.String),
982
+ subscription_period: S.optional(S.String),
983
+ subscription_period_started_at: S.optional(S.NullOr(S.String)),
984
+ next_subscription_period: S.optional(S.String),
985
+ next_subscription_period_starts_at: S.optional(S.NullOr(S.String)),
986
+ created_at: S.optional(S.NullOr(S.String)),
987
+ updated_at: S.optional(S.NullOr(S.String)),
988
+ deletion_scheduled_at: S.optional(S.NullOr(S.String)),
989
+ }),
990
+ ).annotate({ identifier: "Mailbox" });
991
+ }
992
+ }
993
+ function __c3(j: number): any {
994
+ switch (j) {
995
+ case 0:
996
+ return S.suspend(() =>
997
+ S.Struct({
998
+ local_part: S.optional(S.String),
999
+ mailbox_id: S.optional(S.String),
1000
+ description: S.optional(S.NullOr(S.String)),
1001
+ }).pipe(
1002
+ T.Http({
1003
+ method: "POST",
1004
+ uri: "/mailbox/v1alpha1/aliases",
1005
+ code: 200,
1006
+ baseUrl: "https://api.scaleway.com",
1007
+ }),
1008
+ ),
1009
+ ).annotate({ identifier: "CreateAliasRequest" });
1010
+ }
1011
+ }
1012
+ function __c4(j: number): any {
1013
+ switch (j) {
1014
+ case 0:
1015
+ return S.suspend(() =>
1016
+ S.Struct({
1017
+ id: S.optional(S.String),
1018
+ email: S.optional(S.String),
1019
+ mailbox_id: S.optional(S.String),
1020
+ description: S.optional(S.String),
1021
+ status: S.optional(S.String),
1022
+ created_at: S.optional(S.NullOr(S.String)),
1023
+ updated_at: S.optional(S.NullOr(S.String)),
1024
+ }),
1025
+ ).annotate({ identifier: "Alias" });
1026
+ }
1027
+ }
1028
+ function __c5(j: number): any {
1029
+ switch (j) {
1030
+ case 0:
1031
+ return S.suspend(() =>
1032
+ S.Struct({
1033
+ domain_id: S.String.pipe(T.Label()),
1034
+ }).pipe(
1035
+ T.Http({
1036
+ method: "GET",
1037
+ uri: "/mailbox/v1alpha1/domains/{domain_id}/records",
1038
+ code: 200,
1039
+ baseUrl: "https://api.scaleway.com",
1040
+ }),
1041
+ ),
1042
+ ).annotate({ identifier: "GetDomainRecordsRequest" });
1043
+ case 1:
1044
+ return S.suspend(() =>
1045
+ S.Struct({
1046
+ id: S.optional(S.String),
1047
+ domain_id: S.optional(S.String),
1048
+ status: S.optional(S.String),
1049
+ level: S.optional(S.String),
1050
+ dns_type: S.optional(S.String),
1051
+ dns_name: S.optional(S.String),
1052
+ dns_value: S.optional(S.String),
1053
+ error: S.optional(S.NullOr(S.String)),
1054
+ created_at: S.optional(S.NullOr(S.String)),
1055
+ updated_at: S.optional(S.NullOr(S.String)),
1056
+ }),
1057
+ ).annotate({ identifier: "DomainRecord" });
1058
+ case 2:
1059
+ return S.suspend(() =>
1060
+ S.Struct({
1061
+ autoconfig: S.optional(__S(21, __c5, 1)),
1062
+ autodiscover: S.optional(__S(21, __c5, 1)),
1063
+ caldav: S.optional(__S(21, __c5, 1)),
1064
+ carddav: S.optional(__S(21, __c5, 1)),
1065
+ dkim: S.optional(__S(21, __c5, 1)),
1066
+ dmarc: S.optional(__S(21, __c5, 1)),
1067
+ domain_validation: S.optional(__S(21, __c5, 1)),
1068
+ imap: S.optional(__S(21, __c5, 1)),
1069
+ mx: S.optional(__S(21, __c5, 1)),
1070
+ pop3: S.optional(__S(21, __c5, 1)),
1071
+ spf: S.optional(__S(21, __c5, 1)),
1072
+ submission: S.optional(__S(21, __c5, 1)),
1073
+ }),
1074
+ ).annotate({ identifier: "GetDomainRecordsResponse" });
1075
+ }
1076
+ }
1077
+ function __c6(j: number): any {
1078
+ switch (j) {
1079
+ case 0:
1080
+ return S.suspend(() =>
1081
+ S.Struct({
1082
+ forwarding_id: S.String.pipe(T.Label()),
1083
+ }).pipe(
1084
+ T.Http({
1085
+ method: "GET",
1086
+ uri: "/mailbox/v1alpha1/forwardings/{forwarding_id}",
1087
+ code: 200,
1088
+ baseUrl: "https://api.scaleway.com",
1089
+ }),
1090
+ ),
1091
+ ).annotate({ identifier: "GetForwardingRequest" });
1092
+ }
1093
+ }
1094
+ function __c7(j: number): any {
1095
+ switch (j) {
1096
+ case 0:
1097
+ return S.suspend(() =>
1098
+ S.Struct({
1099
+ mailbox_id: S.String.pipe(T.Label()),
1100
+ }).pipe(
1101
+ T.Http({
1102
+ method: "GET",
1103
+ uri: "/mailbox/v1alpha1/mailboxes/{mailbox_id}",
1104
+ code: 200,
1105
+ baseUrl: "https://api.scaleway.com",
1106
+ }),
1107
+ ),
1108
+ ).annotate({ identifier: "GetMailboxRequest" });
1109
+ }
1110
+ }
1111
+ function __c8(j: number): any {
1112
+ switch (j) {
1113
+ case 0:
1114
+ return S.suspend(() =>
1115
+ S.Struct({
1116
+ mailbox_id: S.String.pipe(T.Label()),
1117
+ }).pipe(
1118
+ T.Http({
1119
+ method: "GET",
1120
+ uri: "/mailbox/v1alpha1/mailboxes/{mailbox_id}/forwarding",
1121
+ code: 200,
1122
+ baseUrl: "https://api.scaleway.com",
1123
+ }),
1124
+ ),
1125
+ ).annotate({ identifier: "GetMailboxForwardingRequest" });
1126
+ }
1127
+ }
1128
+ function __c9(j: number): any {
1129
+ switch (j) {
1130
+ case 0:
1131
+ return S.suspend(() =>
1132
+ S.Struct({
1133
+ mailbox_id: S.optional(S.String),
1134
+ keep_copy: S.optional(S.Boolean),
1135
+ enabled: S.optional(S.Boolean),
1136
+ created_at: S.optional(S.NullOr(S.String)),
1137
+ updated_at: S.optional(S.NullOr(S.String)),
1138
+ }),
1139
+ ).annotate({ identifier: "MailboxForwarding" });
1140
+ }
1141
+ }
1142
+ function __c10(j: number): any {
1143
+ switch (j) {
1144
+ case 0:
1145
+ return S.suspend(() =>
1146
+ S.Struct({
1147
+ order_by: S.optional(S.String.pipe(T.Query())),
1148
+ page: S.optional(S.Number.pipe(T.Query())),
1149
+ page_size: S.optional(S.Number.pipe(T.Query())),
1150
+ mailbox_id: S.optional(S.String.pipe(T.Query())),
1151
+ status: S.optional(S.String.pipe(T.Query())),
1152
+ project_id: S.String.pipe(T.Query()),
1153
+ }).pipe(
1154
+ T.Http({
1155
+ method: "GET",
1156
+ uri: "/mailbox/v1alpha1/aliases",
1157
+ code: 200,
1158
+ baseUrl: "https://api.scaleway.com",
1159
+ }),
1160
+ ),
1161
+ ).annotate({ identifier: "ListAliasesRequest" });
1162
+ case 1:
1163
+ return S.Array(__S(16, __c4, 0));
1164
+ case 2:
1165
+ return S.suspend(() =>
1166
+ S.Struct({
1167
+ total_count: S.optional(S.Number),
1168
+ aliases: __S(41, __c10, 1),
1169
+ }),
1170
+ ).annotate({ identifier: "ListAliasesResponse" });
1171
+ }
1172
+ }
1173
+ function __c11(j: number): any {
1174
+ switch (j) {
1175
+ case 0:
1176
+ return S.suspend(() =>
1177
+ S.Struct({
1178
+ order_by: S.optional(S.String.pipe(T.Query())),
1179
+ page: S.optional(S.Number.pipe(T.Query())),
1180
+ page_size: S.optional(S.Number.pipe(T.Query())),
1181
+ project_id: S.optional(S.String.pipe(T.Query())),
1182
+ statuses: S.optional(__S(48, __c12, 0).pipe(T.Query())),
1183
+ search: S.optional(S.String.pipe(T.Query())),
1184
+ }).pipe(
1185
+ T.Http({
1186
+ method: "GET",
1187
+ uri: "/mailbox/v1alpha1/domains",
1188
+ code: 200,
1189
+ baseUrl: "https://api.scaleway.com",
1190
+ }),
1191
+ ),
1192
+ ).annotate({ identifier: "ListDomainsRequest" });
1193
+ case 1:
1194
+ return S.Array(__S(72, __c18, 0));
1195
+ case 2:
1196
+ return S.suspend(() =>
1197
+ S.Struct({
1198
+ total_count: S.optional(S.Number),
1199
+ domains: __S(45, __c11, 1),
1200
+ }),
1201
+ ).annotate({ identifier: "ListDomainsResponse" });
1202
+ }
1203
+ }
1204
+ function __c12(j: number): any {
1205
+ switch (j) {
1206
+ case 0:
1207
+ return S.Array(S.String);
1208
+ }
1209
+ }
1210
+ function __c13(j: number): any {
1211
+ switch (j) {
1212
+ case 0:
1213
+ return S.suspend(() =>
1214
+ S.Struct({
1215
+ order_by: S.optional(S.String.pipe(T.Query())),
1216
+ page: S.optional(S.Number.pipe(T.Query())),
1217
+ page_size: S.optional(S.Number.pipe(T.Query())),
1218
+ mailbox_id: S.optional(S.String.pipe(T.Query())),
1219
+ status: S.optional(S.String.pipe(T.Query())),
1220
+ project_id: S.optional(S.String.pipe(T.Query())),
1221
+ organization_id: S.optional(S.String.pipe(T.Query())),
1222
+ }).pipe(
1223
+ T.Http({
1224
+ method: "GET",
1225
+ uri: "/mailbox/v1alpha1/forwardings",
1226
+ code: 200,
1227
+ baseUrl: "https://api.scaleway.com",
1228
+ }),
1229
+ ),
1230
+ ).annotate({ identifier: "ListForwardingsRequest" });
1231
+ case 1:
1232
+ return S.Array(__S(96, __c24, 0));
1233
+ case 2:
1234
+ return S.suspend(() =>
1235
+ S.Struct({
1236
+ total_count: S.optional(S.Number),
1237
+ forwardings: __S(53, __c13, 1),
1238
+ }),
1239
+ ).annotate({ identifier: "ListForwardingsResponse" });
1240
+ }
1241
+ }
1242
+ function __c14(j: number): any {
1243
+ switch (j) {
1244
+ case 0:
1245
+ return S.suspend(() =>
1246
+ S.Struct({
1247
+ order_by: S.optional(S.String.pipe(T.Query())),
1248
+ page: S.optional(S.Number.pipe(T.Query())),
1249
+ page_size: S.optional(S.Number.pipe(T.Query())),
1250
+ domain_id: S.optional(S.String.pipe(T.Query())),
1251
+ statuses: S.optional(__S(48, __c12, 0).pipe(T.Query())),
1252
+ search: S.optional(S.String.pipe(T.Query())),
1253
+ project_id: S.optional(S.String.pipe(T.Query())),
1254
+ }).pipe(
1255
+ T.Http({
1256
+ method: "GET",
1257
+ uri: "/mailbox/v1alpha1/mailboxes",
1258
+ code: 200,
1259
+ baseUrl: "https://api.scaleway.com",
1260
+ }),
1261
+ ),
1262
+ ).annotate({ identifier: "ListMailboxesRequest" });
1263
+ case 1:
1264
+ return S.suspend(() =>
1265
+ S.Struct({
1266
+ total_count: S.optional(S.Number),
1267
+ mailboxes: __S(4, __c1, 0),
1268
+ }),
1269
+ ).annotate({ identifier: "ListMailboxesResponse" });
1270
+ }
1271
+ }
1272
+ function __c15(j: number): any {
1273
+ switch (j) {
1274
+ case 0:
1275
+ return S.suspend(() =>
1276
+ S.Struct({
1277
+ mailbox_id: S.String.pipe(T.Label()),
1278
+ }).pipe(
1279
+ T.Http({
1280
+ method: "POST",
1281
+ uri: "/mailbox/v1alpha1/mailboxes/{mailbox_id}/restore",
1282
+ code: 200,
1283
+ baseUrl: "https://api.scaleway.com",
1284
+ }),
1285
+ ),
1286
+ ).annotate({ identifier: "RestoreMailboxRequest" });
1287
+ }
1288
+ }
1289
+ function __c16(j: number): any {
1290
+ switch (j) {
1291
+ case 0:
1292
+ return S.suspend(() =>
1293
+ S.Struct({
1294
+ alias_id: S.String.pipe(T.Label()),
1295
+ description: S.optional(S.NullOr(S.String)),
1296
+ }).pipe(
1297
+ T.Http({
1298
+ method: "PATCH",
1299
+ uri: "/mailbox/v1alpha1/aliases/{alias_id}",
1300
+ code: 200,
1301
+ baseUrl: "https://api.scaleway.com",
1302
+ }),
1303
+ ),
1304
+ ).annotate({ identifier: "UpdateAliasRequest" });
1305
+ }
1306
+ }
1307
+ function __c17(j: number): any {
1308
+ switch (j) {
1309
+ case 0:
1310
+ return S.suspend(() =>
1311
+ S.Struct({
1312
+ project_id: S.optional(S.String),
1313
+ name: S.optional(S.String),
1314
+ }).pipe(
1315
+ T.Http({
1316
+ method: "POST",
1317
+ uri: "/mailbox/v1alpha1/domains",
1318
+ code: 200,
1319
+ baseUrl: "https://api.scaleway.com",
1320
+ }),
1321
+ ),
1322
+ ).annotate({ identifier: "CreateDomainRequest" });
1323
+ }
1324
+ }
1325
+ function __c18(j: number): any {
1326
+ switch (j) {
1327
+ case 0:
1328
+ return S.suspend(() =>
1329
+ S.Struct({
1330
+ id: S.optional(S.String),
1331
+ project_id: S.optional(S.String),
1332
+ organization_id: S.optional(S.String),
1333
+ name: S.optional(S.String),
1334
+ status: S.optional(S.String),
1335
+ mailbox_total_count: S.optional(S.Number),
1336
+ created_at: S.optional(S.NullOr(S.String)),
1337
+ updated_at: S.optional(S.NullOr(S.String)),
1338
+ webmail_url: S.optional(S.String),
1339
+ imap_url: S.optional(S.String),
1340
+ pop3_url: S.optional(S.String),
1341
+ smtp_url: S.optional(S.String),
1342
+ }),
1343
+ ).annotate({ identifier: "Domain" });
1344
+ }
1345
+ }
1346
+ function __c19(j: number): any {
1347
+ switch (j) {
1348
+ case 0:
1349
+ return S.suspend(() =>
1350
+ S.Struct({
1351
+ forwarding_id: S.String.pipe(T.Label()),
1352
+ email: S.optional(S.NullOr(S.String)),
1353
+ }).pipe(
1354
+ T.Http({
1355
+ method: "PATCH",
1356
+ uri: "/mailbox/v1alpha1/forwardings/{forwarding_id}",
1357
+ code: 200,
1358
+ baseUrl: "https://api.scaleway.com",
1359
+ }),
1360
+ ),
1361
+ ).annotate({ identifier: "UpdateForwardingRequest" });
1362
+ }
1363
+ }
1364
+ function __c20(j: number): any {
1365
+ switch (j) {
1366
+ case 0:
1367
+ return S.suspend(() =>
1368
+ S.Struct({
1369
+ mailbox_id: S.String.pipe(T.Label()),
1370
+ subscription_period: S.optional(S.String),
1371
+ new_password: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
1372
+ }).pipe(
1373
+ T.Http({
1374
+ method: "PATCH",
1375
+ uri: "/mailbox/v1alpha1/mailboxes/{mailbox_id}",
1376
+ code: 200,
1377
+ baseUrl: "https://api.scaleway.com",
1378
+ }),
1379
+ ),
1380
+ ).annotate({ identifier: "UpdateMailboxRequest" });
1381
+ }
1382
+ }
1383
+ function __c21(j: number): any {
1384
+ switch (j) {
1385
+ case 0:
1386
+ return S.suspend(() =>
1387
+ S.Struct({
1388
+ mailbox_id: S.String.pipe(T.Label()),
1389
+ keep_copy: S.optional(S.NullOr(S.Boolean)),
1390
+ enabled: S.optional(S.NullOr(S.Boolean)),
1391
+ }).pipe(
1392
+ T.Http({
1393
+ method: "PATCH",
1394
+ uri: "/mailbox/v1alpha1/mailboxes/{mailbox_id}/forwarding",
1395
+ code: 200,
1396
+ baseUrl: "https://api.scaleway.com",
1397
+ }),
1398
+ ),
1399
+ ).annotate({ identifier: "UpdateMailboxForwardingRequest" });
1400
+ }
1401
+ }
1402
+ function __c22(j: number): any {
1403
+ switch (j) {
1404
+ case 0:
1405
+ return S.suspend(() =>
1406
+ S.Struct({
1407
+ domain_id: S.String.pipe(T.Label()),
1408
+ }).pipe(
1409
+ T.Http({
1410
+ method: "POST",
1411
+ uri: "/mailbox/v1alpha1/domains/{domain_id}/validate-records",
1412
+ code: 200,
1413
+ baseUrl: "https://api.scaleway.com",
1414
+ }),
1415
+ ),
1416
+ ).annotate({ identifier: "ValidateDomainRecordsRequest" });
1417
+ case 1:
1418
+ return S.suspend(() => S.Struct({})).annotate({
1419
+ identifier: "ValidateDomainRecordsResponse",
1420
+ });
1421
+ }
1422
+ }
1423
+ function __c23(j: number): any {
1424
+ switch (j) {
1425
+ case 0:
1426
+ return S.suspend(() =>
1427
+ S.Struct({
1428
+ mailbox_id: S.optional(S.String),
1429
+ email: S.optional(S.String),
1430
+ }).pipe(
1431
+ T.Http({
1432
+ method: "POST",
1433
+ uri: "/mailbox/v1alpha1/forwardings",
1434
+ code: 200,
1435
+ baseUrl: "https://api.scaleway.com",
1436
+ }),
1437
+ ),
1438
+ ).annotate({ identifier: "CreateForwardingRequest" });
1439
+ }
1440
+ }
1441
+ function __c24(j: number): any {
1442
+ switch (j) {
1443
+ case 0:
1444
+ return S.suspend(() =>
1445
+ S.Struct({
1446
+ id: S.optional(S.String),
1447
+ created_at: S.optional(S.NullOr(S.String)),
1448
+ updated_at: S.optional(S.NullOr(S.String)),
1449
+ mailbox_id: S.optional(S.String),
1450
+ email: S.optional(S.String),
1451
+ status: S.optional(S.String),
1452
+ }),
1453
+ ).annotate({ identifier: "Forwarding" });
1454
+ }
1455
+ }
1456
+ function __c25(j: number): any {
1457
+ switch (j) {
1458
+ case 0:
1459
+ return S.suspend(() =>
1460
+ S.Struct({
1461
+ alias_id: S.String.pipe(T.Label()),
1462
+ }).pipe(
1463
+ T.Http({
1464
+ method: "DELETE",
1465
+ uri: "/mailbox/v1alpha1/aliases/{alias_id}",
1466
+ code: 200,
1467
+ baseUrl: "https://api.scaleway.com",
1468
+ }),
1469
+ ),
1470
+ ).annotate({ identifier: "DeleteAliasRequest" });
1471
+ }
1472
+ }
1473
+ function __c26(j: number): any {
1474
+ switch (j) {
1475
+ case 0:
1476
+ return S.suspend(() =>
1477
+ S.Struct({
1478
+ domain_id: S.String.pipe(T.Label()),
1479
+ }).pipe(
1480
+ T.Http({
1481
+ method: "DELETE",
1482
+ uri: "/mailbox/v1alpha1/domains/{domain_id}",
1483
+ code: 200,
1484
+ baseUrl: "https://api.scaleway.com",
1485
+ }),
1486
+ ),
1487
+ ).annotate({ identifier: "DeleteDomainRequest" });
1488
+ }
1489
+ }
1490
+ function __c27(j: number): any {
1491
+ switch (j) {
1492
+ case 0:
1493
+ return S.suspend(() =>
1494
+ S.Struct({
1495
+ forwarding_id: S.String.pipe(T.Label()),
1496
+ }).pipe(
1497
+ T.Http({
1498
+ method: "DELETE",
1499
+ uri: "/mailbox/v1alpha1/forwardings/{forwarding_id}",
1500
+ code: 200,
1501
+ baseUrl: "https://api.scaleway.com",
1502
+ }),
1503
+ ),
1504
+ ).annotate({ identifier: "DeleteForwardingRequest" });
1505
+ }
1506
+ }
1507
+ function __c28(j: number): any {
1508
+ switch (j) {
1509
+ case 0:
1510
+ return S.suspend(() =>
1511
+ S.Struct({
1512
+ mailbox_id: S.String.pipe(T.Label()),
1513
+ }).pipe(
1514
+ T.Http({
1515
+ method: "DELETE",
1516
+ uri: "/mailbox/v1alpha1/mailboxes/{mailbox_id}",
1517
+ code: 200,
1518
+ baseUrl: "https://api.scaleway.com",
1519
+ }),
1520
+ ),
1521
+ ).annotate({ identifier: "DeleteMailboxRequest" });
1522
+ }
1523
+ }
1524
+ function __c29(j: number): any {
1525
+ switch (j) {
1526
+ case 0:
1527
+ return S.suspend(() =>
1528
+ S.Struct({
1529
+ alias_id: S.String.pipe(T.Label()),
1530
+ }).pipe(
1531
+ T.Http({
1532
+ method: "GET",
1533
+ uri: "/mailbox/v1alpha1/aliases/{alias_id}",
1534
+ code: 200,
1535
+ baseUrl: "https://api.scaleway.com",
1536
+ }),
1537
+ ),
1538
+ ).annotate({ identifier: "GetAliasRequest" });
1539
+ }
1540
+ }
1541
+ function __c30(j: number): any {
1542
+ switch (j) {
1543
+ case 0:
1544
+ return S.suspend(() =>
1545
+ S.Struct({
1546
+ domain_id: S.String.pipe(T.Label()),
1547
+ }).pipe(
1548
+ T.Http({
1549
+ method: "GET",
1550
+ uri: "/mailbox/v1alpha1/domains/{domain_id}",
1551
+ code: 200,
1552
+ baseUrl: "https://api.scaleway.com",
1553
+ }),
1554
+ ),
1555
+ ).annotate({ identifier: "GetDomainRequest" });
1556
+ }
1557
+ }
1558
+ // Schema table: entry i is schema j of builder f, made on first reach.
1559
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
1560
+ return (__s[i] ??= __L.at(f, j));
1561
+ }