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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (639) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +175 -2
  3. package/lib/.lazy.json +1 -0
  4. package/lib/_bundle/lazy.js +4 -0
  5. package/lib/_bundle/sdk.js +2 -0
  6. package/lib/_bundle/sdk.js.map +1 -0
  7. package/lib/credentials.d.ts +44 -0
  8. package/lib/credentials.d.ts.map +1 -0
  9. package/lib/credentials.js +1 -0
  10. package/lib/errors.d.ts +285 -0
  11. package/lib/errors.d.ts.map +1 -0
  12. package/lib/errors.js +1 -0
  13. package/lib/index.d.ts +48 -0
  14. package/lib/index.d.ts.map +1 -0
  15. package/lib/index.js +6 -0
  16. package/lib/pagination.d.ts +10 -0
  17. package/lib/pagination.d.ts.map +1 -0
  18. package/lib/pagination.js +1 -0
  19. package/lib/protocol.d.ts +48 -0
  20. package/lib/protocol.d.ts.map +1 -0
  21. package/lib/protocol.js +1 -0
  22. package/lib/retry.d.ts +31 -0
  23. package/lib/retry.d.ts.map +1 -0
  24. package/lib/retry.js +1 -0
  25. package/lib/services/account_contract_v3.d.ts +124 -0
  26. package/lib/services/account_contract_v3.d.ts.map +1 -0
  27. package/lib/services/account_contract_v3.js +2 -0
  28. package/lib/services/account_contract_v3.js.map +1 -0
  29. package/lib/services/account_iso_code_v3.d.ts +44 -0
  30. package/lib/services/account_iso_code_v3.d.ts.map +1 -0
  31. package/lib/services/account_iso_code_v3.js +2 -0
  32. package/lib/services/account_iso_code_v3.js.map +1 -0
  33. package/lib/services/account_organization_v3.d.ts +290 -0
  34. package/lib/services/account_organization_v3.d.ts.map +1 -0
  35. package/lib/services/account_organization_v3.js +2 -0
  36. package/lib/services/account_organization_v3.js.map +1 -0
  37. package/lib/services/account_project_v3.d.ts +173 -0
  38. package/lib/services/account_project_v3.d.ts.map +1 -0
  39. package/lib/services/account_project_v3.js +2 -0
  40. package/lib/services/account_project_v3.js.map +1 -0
  41. package/lib/services/account_unauthenticated_user_v3.d.ts +479 -0
  42. package/lib/services/account_unauthenticated_user_v3.d.ts.map +1 -0
  43. package/lib/services/account_unauthenticated_user_v3.js +35 -0
  44. package/lib/services/account_unauthenticated_user_v3.js.map +1 -0
  45. package/lib/services/account_unauthenticated_v3.d.ts +18 -0
  46. package/lib/services/account_unauthenticated_v3.d.ts.map +1 -0
  47. package/lib/services/account_unauthenticated_v3.js +2 -0
  48. package/lib/services/account_unauthenticated_v3.js.map +1 -0
  49. package/lib/services/account_user_v3.d.ts +522 -0
  50. package/lib/services/account_user_v3.d.ts.map +1 -0
  51. package/lib/services/account_user_v3.js +39 -0
  52. package/lib/services/account_user_v3.js.map +1 -0
  53. package/lib/services/annotations_v1.d.ts +260 -0
  54. package/lib/services/annotations_v1.d.ts.map +1 -0
  55. package/lib/services/annotations_v1.js +2 -0
  56. package/lib/services/annotations_v1.js.map +1 -0
  57. package/lib/services/baremetal_private_network_v1.d.ts +95 -0
  58. package/lib/services/baremetal_private_network_v1.d.ts.map +1 -0
  59. package/lib/services/baremetal_private_network_v1.js +2 -0
  60. package/lib/services/baremetal_private_network_v1.js.map +1 -0
  61. package/lib/services/baremetal_private_network_v3.d.ts +110 -0
  62. package/lib/services/baremetal_private_network_v3.d.ts.map +1 -0
  63. package/lib/services/baremetal_private_network_v3.js +2 -0
  64. package/lib/services/baremetal_private_network_v3.js.map +1 -0
  65. package/lib/services/baremetal_v1.d.ts +1089 -0
  66. package/lib/services/baremetal_v1.d.ts.map +1 -0
  67. package/lib/services/baremetal_v1.js +52 -0
  68. package/lib/services/baremetal_v1.js.map +1 -0
  69. package/lib/services/billing_electronic_billing_v2.d.ts +86 -0
  70. package/lib/services/billing_electronic_billing_v2.d.ts.map +1 -0
  71. package/lib/services/billing_electronic_billing_v2.js +2 -0
  72. package/lib/services/billing_electronic_billing_v2.js.map +1 -0
  73. package/lib/services/billing_v2.d.ts +187 -0
  74. package/lib/services/billing_v2.d.ts.map +1 -0
  75. package/lib/services/billing_v2.js +2 -0
  76. package/lib/services/billing_v2.js.map +1 -0
  77. package/lib/services/block_v1.d.ts +401 -0
  78. package/lib/services/block_v1.d.ts.map +1 -0
  79. package/lib/services/block_v1.js +27 -0
  80. package/lib/services/block_v1.js.map +1 -0
  81. package/lib/services/cockpit_global_v1.d.ts +75 -0
  82. package/lib/services/cockpit_global_v1.d.ts.map +1 -0
  83. package/lib/services/cockpit_global_v1.js +2 -0
  84. package/lib/services/cockpit_global_v1.js.map +1 -0
  85. package/lib/services/cockpit_regional_v1.d.ts +739 -0
  86. package/lib/services/cockpit_regional_v1.d.ts.map +1 -0
  87. package/lib/services/cockpit_regional_v1.js +47 -0
  88. package/lib/services/cockpit_regional_v1.js.map +1 -0
  89. package/lib/services/containers_v1.d.ts +822 -0
  90. package/lib/services/containers_v1.d.ts.map +1 -0
  91. package/lib/services/containers_v1.js +39 -0
  92. package/lib/services/containers_v1.js.map +1 -0
  93. package/lib/services/dedibox_billing_v1.d.ts +151 -0
  94. package/lib/services/dedibox_billing_v1.d.ts.map +1 -0
  95. package/lib/services/dedibox_billing_v1.js +2 -0
  96. package/lib/services/dedibox_billing_v1.js.map +1 -0
  97. package/lib/services/dedibox_ipv6_block_v1.d.ts +119 -0
  98. package/lib/services/dedibox_ipv6_block_v1.d.ts.map +1 -0
  99. package/lib/services/dedibox_ipv6_block_v1.js +2 -0
  100. package/lib/services/dedibox_ipv6_block_v1.js.map +1 -0
  101. package/lib/services/dedibox_rpn_san_v1.d.ts +486 -0
  102. package/lib/services/dedibox_rpn_san_v1.d.ts.map +1 -0
  103. package/lib/services/dedibox_rpn_san_v1.js +2 -0
  104. package/lib/services/dedibox_rpn_san_v1.js.map +1 -0
  105. package/lib/services/dedibox_rpn_v1.d.ts +68 -0
  106. package/lib/services/dedibox_rpn_v1.d.ts.map +1 -0
  107. package/lib/services/dedibox_rpn_v1.js +2 -0
  108. package/lib/services/dedibox_rpn_v1.js.map +1 -0
  109. package/lib/services/dedibox_rpn_v1_v1.d.ts +687 -0
  110. package/lib/services/dedibox_rpn_v1_v1.d.ts.map +1 -0
  111. package/lib/services/dedibox_rpn_v1_v1.js +30 -0
  112. package/lib/services/dedibox_rpn_v1_v1.js.map +1 -0
  113. package/lib/services/dedibox_rpn_v2_v1.d.ts +646 -0
  114. package/lib/services/dedibox_rpn_v2_v1.d.ts.map +1 -0
  115. package/lib/services/dedibox_rpn_v2_v1.js +27 -0
  116. package/lib/services/dedibox_rpn_v2_v1.js.map +1 -0
  117. package/lib/services/dedibox_v1.d.ts +1351 -0
  118. package/lib/services/dedibox_v1.d.ts.map +1 -0
  119. package/lib/services/dedibox_v1.js +70 -0
  120. package/lib/services/dedibox_v1.js.map +1 -0
  121. package/lib/services/generative_apis_openai_v1.d.ts +772 -0
  122. package/lib/services/generative_apis_openai_v1.d.ts.map +1 -0
  123. package/lib/services/generative_apis_openai_v1.js +24 -0
  124. package/lib/services/generative_apis_openai_v1.js.map +1 -0
  125. package/lib/services/generative_apis_v1.d.ts +82 -0
  126. package/lib/services/generative_apis_v1.d.ts.map +1 -0
  127. package/lib/services/generative_apis_v1.js +2 -0
  128. package/lib/services/generative_apis_v1.js.map +1 -0
  129. package/lib/services/index.d.ts +57 -0
  130. package/lib/services/index.d.ts.map +1 -0
  131. package/lib/services/index.js +56 -0
  132. package/lib/services/inference_v1.d.ts +460 -0
  133. package/lib/services/inference_v1.d.ts.map +1 -0
  134. package/lib/services/inference_v1.js +33 -0
  135. package/lib/services/inference_v1.js.map +1 -0
  136. package/lib/services/instance_v1.d.ts +2183 -0
  137. package/lib/services/instance_v1.d.ts.map +1 -0
  138. package/lib/services/instance_v1.js +112 -0
  139. package/lib/services/instance_v1.js.map +1 -0
  140. package/lib/services/iot_v1.d.ts +837 -0
  141. package/lib/services/iot_v1.d.ts.map +1 -0
  142. package/lib/services/iot_v1.js +50 -0
  143. package/lib/services/iot_v1.js.map +1 -0
  144. package/lib/services/ipam_v1.d.ts +244 -0
  145. package/lib/services/ipam_v1.d.ts.map +1 -0
  146. package/lib/services/ipam_v1.js +2 -0
  147. package/lib/services/ipam_v1.js.map +1 -0
  148. package/lib/services/k8s_v1.d.ts +1223 -0
  149. package/lib/services/k8s_v1.d.ts.map +1 -0
  150. package/lib/services/k8s_v1.js +61 -0
  151. package/lib/services/k8s_v1.js.map +1 -0
  152. package/lib/services/lb_zoned_v1.d.ts +1517 -0
  153. package/lib/services/lb_zoned_v1.d.ts.map +1 -0
  154. package/lib/services/lb_zoned_v1.js +75 -0
  155. package/lib/services/lb_zoned_v1.js.map +1 -0
  156. package/lib/services/marketplace_console_v2.d.ts +72 -0
  157. package/lib/services/marketplace_console_v2.d.ts.map +1 -0
  158. package/lib/services/marketplace_console_v2.js +2 -0
  159. package/lib/services/marketplace_console_v2.js.map +1 -0
  160. package/lib/services/marketplace_v2.d.ts +169 -0
  161. package/lib/services/marketplace_v2.d.ts.map +1 -0
  162. package/lib/services/marketplace_v2.js +2 -0
  163. package/lib/services/marketplace_v2.js.map +1 -0
  164. package/lib/services/mongodb_v1.d.ts +698 -0
  165. package/lib/services/mongodb_v1.d.ts.map +1 -0
  166. package/lib/services/mongodb_v1.js +43 -0
  167. package/lib/services/mongodb_v1.js.map +1 -0
  168. package/lib/services/partner_v1.d.ts +142 -0
  169. package/lib/services/partner_v1.d.ts.map +1 -0
  170. package/lib/services/partner_v1.js +2 -0
  171. package/lib/services/partner_v1.js.map +1 -0
  172. package/lib/services/rdb_encryption_v1.d.ts +17 -0
  173. package/lib/services/rdb_encryption_v1.d.ts.map +1 -0
  174. package/lib/services/rdb_encryption_v1.js +2 -0
  175. package/lib/services/rdb_encryption_v1.js.map +1 -0
  176. package/lib/services/rdb_v1.d.ts +1422 -0
  177. package/lib/services/rdb_v1.d.ts.map +1 -0
  178. package/lib/services/rdb_v1.js +87 -0
  179. package/lib/services/rdb_v1.js.map +1 -0
  180. package/lib/services/redis_v1.d.ts +602 -0
  181. package/lib/services/redis_v1.d.ts.map +1 -0
  182. package/lib/services/redis_v1.js +42 -0
  183. package/lib/services/redis_v1.js.map +1 -0
  184. package/lib/services/registry_v1.d.ts +281 -0
  185. package/lib/services/registry_v1.d.ts.map +1 -0
  186. package/lib/services/registry_v1.js +2 -0
  187. package/lib/services/registry_v1.js.map +1 -0
  188. package/lib/services/reseller_v1.d.ts +81 -0
  189. package/lib/services/reseller_v1.d.ts.map +1 -0
  190. package/lib/services/reseller_v1.js +2 -0
  191. package/lib/services/reseller_v1.js.map +1 -0
  192. package/lib/services/vpc_gw_v2.d.ts +635 -0
  193. package/lib/services/vpc_gw_v2.d.ts.map +1 -0
  194. package/lib/services/vpc_gw_v2.js +46 -0
  195. package/lib/services/vpc_gw_v2.js.map +1 -0
  196. package/lib/services/vpc_private_network_with_nics_v2.d.ts +114 -0
  197. package/lib/services/vpc_private_network_with_nics_v2.d.ts.map +1 -0
  198. package/lib/services/vpc_private_network_with_nics_v2.js +2 -0
  199. package/lib/services/vpc_private_network_with_nics_v2.js.map +1 -0
  200. package/lib/services/vpc_routes_with_nexthop_v2.d.ts +87 -0
  201. package/lib/services/vpc_routes_with_nexthop_v2.d.ts.map +1 -0
  202. package/lib/services/vpc_routes_with_nexthop_v2.js +2 -0
  203. package/lib/services/vpc_routes_with_nexthop_v2.js.map +1 -0
  204. package/lib/services/vpc_v2.d.ts +875 -0
  205. package/lib/services/vpc_v2.d.ts.map +1 -0
  206. package/lib/services/vpc_v2.js +54 -0
  207. package/lib/services/vpc_v2.js.map +1 -0
  208. package/lib/services/webhosting_backup_v1.d.ts +182 -0
  209. package/lib/services/webhosting_backup_v1.d.ts.map +1 -0
  210. package/lib/services/webhosting_backup_v1.js +2 -0
  211. package/lib/services/webhosting_backup_v1.js.map +1 -0
  212. package/lib/services/webhosting_control_panel_v1.d.ts +37 -0
  213. package/lib/services/webhosting_control_panel_v1.d.ts.map +1 -0
  214. package/lib/services/webhosting_control_panel_v1.js +2 -0
  215. package/lib/services/webhosting_control_panel_v1.js.map +1 -0
  216. package/lib/services/webhosting_database_v1.d.ts +195 -0
  217. package/lib/services/webhosting_database_v1.d.ts.map +1 -0
  218. package/lib/services/webhosting_database_v1.js +2 -0
  219. package/lib/services/webhosting_database_v1.js.map +1 -0
  220. package/lib/services/webhosting_dedibox_v1.d.ts +232 -0
  221. package/lib/services/webhosting_dedibox_v1.d.ts.map +1 -0
  222. package/lib/services/webhosting_dedibox_v1.js +2 -0
  223. package/lib/services/webhosting_dedibox_v1.js.map +1 -0
  224. package/lib/services/webhosting_dns_v1.d.ts +177 -0
  225. package/lib/services/webhosting_dns_v1.d.ts.map +1 -0
  226. package/lib/services/webhosting_dns_v1.js +2 -0
  227. package/lib/services/webhosting_dns_v1.js.map +1 -0
  228. package/lib/services/webhosting_free_domain_v1.d.ts +51 -0
  229. package/lib/services/webhosting_free_domain_v1.d.ts.map +1 -0
  230. package/lib/services/webhosting_free_domain_v1.js +2 -0
  231. package/lib/services/webhosting_free_domain_v1.js.map +1 -0
  232. package/lib/services/webhosting_ftp_account_v1.d.ts +79 -0
  233. package/lib/services/webhosting_ftp_account_v1.d.ts.map +1 -0
  234. package/lib/services/webhosting_ftp_account_v1.js +2 -0
  235. package/lib/services/webhosting_ftp_account_v1.js.map +1 -0
  236. package/lib/services/webhosting_hosting_v1.d.ts +502 -0
  237. package/lib/services/webhosting_hosting_v1.d.ts.map +1 -0
  238. package/lib/services/webhosting_hosting_v1.js +27 -0
  239. package/lib/services/webhosting_hosting_v1.js.map +1 -0
  240. package/lib/services/webhosting_mail_account_v1.d.ts +84 -0
  241. package/lib/services/webhosting_mail_account_v1.d.ts.map +1 -0
  242. package/lib/services/webhosting_mail_account_v1.js +2 -0
  243. package/lib/services/webhosting_mail_account_v1.js.map +1 -0
  244. package/lib/services/webhosting_offer_v1.d.ts +122 -0
  245. package/lib/services/webhosting_offer_v1.d.ts.map +1 -0
  246. package/lib/services/webhosting_offer_v1.js +2 -0
  247. package/lib/services/webhosting_offer_v1.js.map +1 -0
  248. package/lib/services/webhosting_website_v1.d.ts +75 -0
  249. package/lib/services/webhosting_website_v1.d.ts.map +1 -0
  250. package/lib/services/webhosting_website_v1.js +2 -0
  251. package/lib/services/webhosting_website_v1.js.map +1 -0
  252. package/lib/services.lazy/account_contract_v3.js +1 -0
  253. package/lib/services.lazy/account_iso_code_v3.js +1 -0
  254. package/lib/services.lazy/account_organization_v3.js +1 -0
  255. package/lib/services.lazy/account_project_v3.js +1 -0
  256. package/lib/services.lazy/account_unauthenticated_user_v3.js +3 -0
  257. package/lib/services.lazy/account_unauthenticated_v3.js +1 -0
  258. package/lib/services.lazy/account_user_v3.js +3 -0
  259. package/lib/services.lazy/annotations_v1.js +1 -0
  260. package/lib/services.lazy/baremetal_private_network_v1.js +1 -0
  261. package/lib/services.lazy/baremetal_private_network_v3.js +1 -0
  262. package/lib/services.lazy/baremetal_v1.js +3 -0
  263. package/lib/services.lazy/billing_electronic_billing_v2.js +1 -0
  264. package/lib/services.lazy/billing_v2.js +1 -0
  265. package/lib/services.lazy/block_v1.js +3 -0
  266. package/lib/services.lazy/cockpit_global_v1.js +1 -0
  267. package/lib/services.lazy/cockpit_regional_v1.js +3 -0
  268. package/lib/services.lazy/containers_v1.js +3 -0
  269. package/lib/services.lazy/dedibox_billing_v1.js +1 -0
  270. package/lib/services.lazy/dedibox_ipv6_block_v1.js +1 -0
  271. package/lib/services.lazy/dedibox_rpn_san_v1.js +1 -0
  272. package/lib/services.lazy/dedibox_rpn_v1.js +1 -0
  273. package/lib/services.lazy/dedibox_rpn_v1_v1.js +3 -0
  274. package/lib/services.lazy/dedibox_rpn_v2_v1.js +3 -0
  275. package/lib/services.lazy/dedibox_v1.js +3 -0
  276. package/lib/services.lazy/generative_apis_openai_v1.js +3 -0
  277. package/lib/services.lazy/generative_apis_v1.js +1 -0
  278. package/lib/services.lazy/index.js +3 -0
  279. package/lib/services.lazy/inference_v1.js +3 -0
  280. package/lib/services.lazy/instance_v1.js +3 -0
  281. package/lib/services.lazy/iot_v1.js +3 -0
  282. package/lib/services.lazy/ipam_v1.js +1 -0
  283. package/lib/services.lazy/k8s_v1.js +3 -0
  284. package/lib/services.lazy/lb_zoned_v1.js +3 -0
  285. package/lib/services.lazy/marketplace_console_v2.js +1 -0
  286. package/lib/services.lazy/marketplace_v2.js +1 -0
  287. package/lib/services.lazy/mongodb_v1.js +3 -0
  288. package/lib/services.lazy/partner_v1.js +1 -0
  289. package/lib/services.lazy/rdb_encryption_v1.js +1 -0
  290. package/lib/services.lazy/rdb_v1.js +3 -0
  291. package/lib/services.lazy/redis_v1.js +3 -0
  292. package/lib/services.lazy/registry_v1.js +1 -0
  293. package/lib/services.lazy/reseller_v1.js +1 -0
  294. package/lib/services.lazy/vpc_gw_v2.js +3 -0
  295. package/lib/services.lazy/vpc_private_network_with_nics_v2.js +1 -0
  296. package/lib/services.lazy/vpc_routes_with_nexthop_v2.js +1 -0
  297. package/lib/services.lazy/vpc_v2.js +3 -0
  298. package/lib/services.lazy/webhosting_backup_v1.js +1 -0
  299. package/lib/services.lazy/webhosting_control_panel_v1.js +1 -0
  300. package/lib/services.lazy/webhosting_database_v1.js +1 -0
  301. package/lib/services.lazy/webhosting_dedibox_v1.js +1 -0
  302. package/lib/services.lazy/webhosting_dns_v1.js +1 -0
  303. package/lib/services.lazy/webhosting_free_domain_v1.js +1 -0
  304. package/lib/services.lazy/webhosting_ftp_account_v1.js +1 -0
  305. package/lib/services.lazy/webhosting_hosting_v1.js +3 -0
  306. package/lib/services.lazy/webhosting_mail_account_v1.js +1 -0
  307. package/lib/services.lazy/webhosting_offer_v1.js +1 -0
  308. package/lib/services.lazy/webhosting_website_v1.js +1 -0
  309. package/lib/traits.d.ts +25 -0
  310. package/lib/traits.d.ts.map +1 -0
  311. package/lib/traits.js +1 -0
  312. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts +119 -0
  313. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts.map +1 -0
  314. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js +2 -0
  315. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js.map +1 -0
  316. package/lib/unstable-services/apple_silicon_v1alpha1.d.ts +569 -0
  317. package/lib/unstable-services/apple_silicon_v1alpha1.d.ts.map +1 -0
  318. package/lib/unstable-services/apple_silicon_v1alpha1.js +38 -0
  319. package/lib/unstable-services/apple_silicon_v1alpha1.js.map +1 -0
  320. package/lib/unstable-services/audit_trail_v1alpha1.d.ts +1082 -0
  321. package/lib/unstable-services/audit_trail_v1alpha1.d.ts.map +1 -0
  322. package/lib/unstable-services/audit_trail_v1alpha1.js +47 -0
  323. package/lib/unstable-services/audit_trail_v1alpha1.js.map +1 -0
  324. package/lib/unstable-services/autoscaling_v1alpha2.d.ts +368 -0
  325. package/lib/unstable-services/autoscaling_v1alpha2.d.ts.map +1 -0
  326. package/lib/unstable-services/autoscaling_v1alpha2.js +2 -0
  327. package/lib/unstable-services/autoscaling_v1alpha2.js.map +1 -0
  328. package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts +78 -0
  329. package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts.map +1 -0
  330. package/lib/unstable-services/billing_fin_ops_v2beta1.js +2 -0
  331. package/lib/unstable-services/billing_fin_ops_v2beta1.js.map +1 -0
  332. package/lib/unstable-services/billing_v2beta1.d.ts +411 -0
  333. package/lib/unstable-services/billing_v2beta1.d.ts.map +1 -0
  334. package/lib/unstable-services/billing_v2beta1.js +25 -0
  335. package/lib/unstable-services/billing_v2beta1.js.map +1 -0
  336. package/lib/unstable-services/block_v1alpha1.d.ts +372 -0
  337. package/lib/unstable-services/block_v1alpha1.d.ts.map +1 -0
  338. package/lib/unstable-services/block_v1alpha1.js +27 -0
  339. package/lib/unstable-services/block_v1alpha1.js.map +1 -0
  340. package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts +440 -0
  341. package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts.map +1 -0
  342. package/lib/unstable-services/data_orchestrator_v1alpha2.js +27 -0
  343. package/lib/unstable-services/data_orchestrator_v1alpha2.js.map +1 -0
  344. package/lib/unstable-services/datalab_v1beta1.d.ts +322 -0
  345. package/lib/unstable-services/datalab_v1beta1.d.ts.map +1 -0
  346. package/lib/unstable-services/datalab_v1beta1.js +2 -0
  347. package/lib/unstable-services/datalab_v1beta1.js.map +1 -0
  348. package/lib/unstable-services/dataviz_v1alpha1.d.ts +456 -0
  349. package/lib/unstable-services/dataviz_v1alpha1.d.ts.map +1 -0
  350. package/lib/unstable-services/dataviz_v1alpha1.js +34 -0
  351. package/lib/unstable-services/dataviz_v1alpha1.js.map +1 -0
  352. package/lib/unstable-services/datawarehouse_v1beta1.d.ts +492 -0
  353. package/lib/unstable-services/datawarehouse_v1beta1.d.ts.map +1 -0
  354. package/lib/unstable-services/datawarehouse_v1beta1.js +34 -0
  355. package/lib/unstable-services/datawarehouse_v1beta1.js.map +1 -0
  356. package/lib/unstable-services/domain_registrar_v2beta1.d.ts +1087 -0
  357. package/lib/unstable-services/domain_registrar_v2beta1.d.ts.map +1 -0
  358. package/lib/unstable-services/domain_registrar_v2beta1.js +50 -0
  359. package/lib/unstable-services/domain_registrar_v2beta1.js.map +1 -0
  360. package/lib/unstable-services/domain_suggestion_v2beta1.d.ts +19 -0
  361. package/lib/unstable-services/domain_suggestion_v2beta1.d.ts.map +1 -0
  362. package/lib/unstable-services/domain_suggestion_v2beta1.js +2 -0
  363. package/lib/unstable-services/domain_suggestion_v2beta1.js.map +1 -0
  364. package/lib/unstable-services/domain_v2beta1.d.ts +520 -0
  365. package/lib/unstable-services/domain_v2beta1.d.ts.map +1 -0
  366. package/lib/unstable-services/domain_v2beta1.js +44 -0
  367. package/lib/unstable-services/domain_v2beta1.js.map +1 -0
  368. package/lib/unstable-services/edge_services_v1beta1.d.ts +1153 -0
  369. package/lib/unstable-services/edge_services_v1beta1.d.ts.map +1 -0
  370. package/lib/unstable-services/edge_services_v1beta1.js +81 -0
  371. package/lib/unstable-services/edge_services_v1beta1.js.map +1 -0
  372. package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts +149 -0
  373. package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts.map +1 -0
  374. package/lib/unstable-services/environmental_footprint_user_v1alpha1.js +2 -0
  375. package/lib/unstable-services/environmental_footprint_user_v1alpha1.js.map +1 -0
  376. package/lib/unstable-services/file_v1alpha1.d.ts +350 -0
  377. package/lib/unstable-services/file_v1alpha1.d.ts.map +1 -0
  378. package/lib/unstable-services/file_v1alpha1.js +24 -0
  379. package/lib/unstable-services/file_v1alpha1.js.map +1 -0
  380. package/lib/unstable-services/flexible_ip_v1alpha1.d.ts +241 -0
  381. package/lib/unstable-services/flexible_ip_v1alpha1.d.ts.map +1 -0
  382. package/lib/unstable-services/flexible_ip_v1alpha1.js +2 -0
  383. package/lib/unstable-services/flexible_ip_v1alpha1.js.map +1 -0
  384. package/lib/unstable-services/functions_v1beta1.d.ts +852 -0
  385. package/lib/unstable-services/functions_v1beta1.d.ts.map +1 -0
  386. package/lib/unstable-services/functions_v1beta1.js +49 -0
  387. package/lib/unstable-services/functions_v1beta1.js.map +1 -0
  388. package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts +257 -0
  389. package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts.map +1 -0
  390. package/lib/unstable-services/iam_unauthenticated_v1alpha1.js +2 -0
  391. package/lib/unstable-services/iam_unauthenticated_v1alpha1.js.map +1 -0
  392. package/lib/unstable-services/iam_v1alpha1.d.ts +1506 -0
  393. package/lib/unstable-services/iam_v1alpha1.d.ts.map +1 -0
  394. package/lib/unstable-services/iam_v1alpha1.js +105 -0
  395. package/lib/unstable-services/iam_v1alpha1.js.map +1 -0
  396. package/lib/unstable-services/index.d.ts +44 -0
  397. package/lib/unstable-services/index.d.ts.map +1 -0
  398. package/lib/unstable-services/index.js +43 -0
  399. package/lib/unstable-services/instance_v2alpha1.d.ts +1745 -0
  400. package/lib/unstable-services/instance_v2alpha1.d.ts.map +1 -0
  401. package/lib/unstable-services/instance_v2alpha1.js +81 -0
  402. package/lib/unstable-services/instance_v2alpha1.js.map +1 -0
  403. package/lib/unstable-services/instance_volume_v2alpha1.d.ts +333 -0
  404. package/lib/unstable-services/instance_volume_v2alpha1.d.ts.map +1 -0
  405. package/lib/unstable-services/instance_volume_v2alpha1.js +26 -0
  406. package/lib/unstable-services/instance_volume_v2alpha1.js.map +1 -0
  407. package/lib/unstable-services/interlink_v1beta1.d.ts +636 -0
  408. package/lib/unstable-services/interlink_v1beta1.d.ts.map +1 -0
  409. package/lib/unstable-services/interlink_v1beta1.js +39 -0
  410. package/lib/unstable-services/interlink_v1beta1.js.map +1 -0
  411. package/lib/unstable-services/kafka_v1alpha1.d.ts +451 -0
  412. package/lib/unstable-services/kafka_v1alpha1.d.ts.map +1 -0
  413. package/lib/unstable-services/kafka_v1alpha1.js +27 -0
  414. package/lib/unstable-services/kafka_v1alpha1.js.map +1 -0
  415. package/lib/unstable-services/key_manager_v1alpha1.d.ts +515 -0
  416. package/lib/unstable-services/key_manager_v1alpha1.d.ts.map +1 -0
  417. package/lib/unstable-services/key_manager_v1alpha1.js +36 -0
  418. package/lib/unstable-services/key_manager_v1alpha1.js.map +1 -0
  419. package/lib/unstable-services/mailbox_v1alpha1.d.ts +438 -0
  420. package/lib/unstable-services/mailbox_v1alpha1.d.ts.map +1 -0
  421. package/lib/unstable-services/mailbox_v1alpha1.js +39 -0
  422. package/lib/unstable-services/mailbox_v1alpha1.js.map +1 -0
  423. package/lib/unstable-services/messageq_v1alpha1.d.ts +420 -0
  424. package/lib/unstable-services/messageq_v1alpha1.d.ts.map +1 -0
  425. package/lib/unstable-services/messageq_v1alpha1.js +29 -0
  426. package/lib/unstable-services/messageq_v1alpha1.js.map +1 -0
  427. package/lib/unstable-services/mnq_console_v1beta1.d.ts +32 -0
  428. package/lib/unstable-services/mnq_console_v1beta1.d.ts.map +1 -0
  429. package/lib/unstable-services/mnq_console_v1beta1.js +2 -0
  430. package/lib/unstable-services/mnq_console_v1beta1.js.map +1 -0
  431. package/lib/unstable-services/mnq_nats_v1beta1.d.ts +177 -0
  432. package/lib/unstable-services/mnq_nats_v1beta1.d.ts.map +1 -0
  433. package/lib/unstable-services/mnq_nats_v1beta1.js +2 -0
  434. package/lib/unstable-services/mnq_nats_v1beta1.js.map +1 -0
  435. package/lib/unstable-services/mnq_sns_v1beta1.d.ts +155 -0
  436. package/lib/unstable-services/mnq_sns_v1beta1.d.ts.map +1 -0
  437. package/lib/unstable-services/mnq_sns_v1beta1.js +2 -0
  438. package/lib/unstable-services/mnq_sns_v1beta1.js.map +1 -0
  439. package/lib/unstable-services/mnq_sqs_v1beta1.d.ts +155 -0
  440. package/lib/unstable-services/mnq_sqs_v1beta1.d.ts.map +1 -0
  441. package/lib/unstable-services/mnq_sqs_v1beta1.js +2 -0
  442. package/lib/unstable-services/mnq_sqs_v1beta1.js.map +1 -0
  443. package/lib/unstable-services/mongodb_v1alpha1.d.ts +604 -0
  444. package/lib/unstable-services/mongodb_v1alpha1.d.ts.map +1 -0
  445. package/lib/unstable-services/mongodb_v1alpha1.js +37 -0
  446. package/lib/unstable-services/mongodb_v1alpha1.js.map +1 -0
  447. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts +477 -0
  448. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts.map +1 -0
  449. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js +2 -0
  450. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js.map +1 -0
  451. package/lib/unstable-services/qaas_v1alpha1.d.ts +764 -0
  452. package/lib/unstable-services/qaas_v1alpha1.d.ts.map +1 -0
  453. package/lib/unstable-services/qaas_v1alpha1.js +51 -0
  454. package/lib/unstable-services/qaas_v1alpha1.js.map +1 -0
  455. package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts +794 -0
  456. package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts.map +1 -0
  457. package/lib/unstable-services/s2s_vpn_v1alpha1.js +45 -0
  458. package/lib/unstable-services/s2s_vpn_v1alpha1.js.map +1 -0
  459. package/lib/unstable-services/search_v1alpha1.d.ts +120 -0
  460. package/lib/unstable-services/search_v1alpha1.d.ts.map +1 -0
  461. package/lib/unstable-services/search_v1alpha1.js +2 -0
  462. package/lib/unstable-services/search_v1alpha1.js.map +1 -0
  463. package/lib/unstable-services/searchdb_v1alpha1.d.ts +424 -0
  464. package/lib/unstable-services/searchdb_v1alpha1.d.ts.map +1 -0
  465. package/lib/unstable-services/searchdb_v1alpha1.js +29 -0
  466. package/lib/unstable-services/searchdb_v1alpha1.js.map +1 -0
  467. package/lib/unstable-services/secret_manager_v1beta1.d.ts +407 -0
  468. package/lib/unstable-services/secret_manager_v1beta1.d.ts.map +1 -0
  469. package/lib/unstable-services/secret_manager_v1beta1.js +32 -0
  470. package/lib/unstable-services/secret_manager_v1beta1.js.map +1 -0
  471. package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts +331 -0
  472. package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts.map +1 -0
  473. package/lib/unstable-services/serverless_jobs_v1alpha1.js +28 -0
  474. package/lib/unstable-services/serverless_jobs_v1alpha1.js.map +1 -0
  475. package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts +546 -0
  476. package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts.map +1 -0
  477. package/lib/unstable-services/serverless_jobs_v1alpha2.js +35 -0
  478. package/lib/unstable-services/serverless_jobs_v1alpha2.js.map +1 -0
  479. package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts +239 -0
  480. package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts.map +1 -0
  481. package/lib/unstable-services/serverless_sqldb_v1alpha1.js +2 -0
  482. package/lib/unstable-services/serverless_sqldb_v1alpha1.js.map +1 -0
  483. package/lib/unstable-services/transactional_email_v1alpha1.d.ts +936 -0
  484. package/lib/unstable-services/transactional_email_v1alpha1.d.ts.map +1 -0
  485. package/lib/unstable-services/transactional_email_v1alpha1.js +46 -0
  486. package/lib/unstable-services/transactional_email_v1alpha1.js.map +1 -0
  487. package/lib/unstable-services.lazy/apple_silicon_private_network_v1alpha1.js +1 -0
  488. package/lib/unstable-services.lazy/apple_silicon_v1alpha1.js +3 -0
  489. package/lib/unstable-services.lazy/audit_trail_v1alpha1.js +3 -0
  490. package/lib/unstable-services.lazy/autoscaling_v1alpha2.js +1 -0
  491. package/lib/unstable-services.lazy/billing_fin_ops_v2beta1.js +1 -0
  492. package/lib/unstable-services.lazy/billing_v2beta1.js +3 -0
  493. package/lib/unstable-services.lazy/block_v1alpha1.js +3 -0
  494. package/lib/unstable-services.lazy/data_orchestrator_v1alpha2.js +3 -0
  495. package/lib/unstable-services.lazy/datalab_v1beta1.js +1 -0
  496. package/lib/unstable-services.lazy/dataviz_v1alpha1.js +3 -0
  497. package/lib/unstable-services.lazy/datawarehouse_v1beta1.js +3 -0
  498. package/lib/unstable-services.lazy/domain_registrar_v2beta1.js +3 -0
  499. package/lib/unstable-services.lazy/domain_suggestion_v2beta1.js +1 -0
  500. package/lib/unstable-services.lazy/domain_v2beta1.js +3 -0
  501. package/lib/unstable-services.lazy/edge_services_v1beta1.js +3 -0
  502. package/lib/unstable-services.lazy/environmental_footprint_user_v1alpha1.js +1 -0
  503. package/lib/unstable-services.lazy/file_v1alpha1.js +3 -0
  504. package/lib/unstable-services.lazy/flexible_ip_v1alpha1.js +1 -0
  505. package/lib/unstable-services.lazy/functions_v1beta1.js +3 -0
  506. package/lib/unstable-services.lazy/iam_unauthenticated_v1alpha1.js +1 -0
  507. package/lib/unstable-services.lazy/iam_v1alpha1.js +3 -0
  508. package/lib/unstable-services.lazy/index.js +3 -0
  509. package/lib/unstable-services.lazy/instance_v2alpha1.js +3 -0
  510. package/lib/unstable-services.lazy/instance_volume_v2alpha1.js +3 -0
  511. package/lib/unstable-services.lazy/interlink_v1beta1.js +3 -0
  512. package/lib/unstable-services.lazy/kafka_v1alpha1.js +3 -0
  513. package/lib/unstable-services.lazy/key_manager_v1alpha1.js +3 -0
  514. package/lib/unstable-services.lazy/mailbox_v1alpha1.js +3 -0
  515. package/lib/unstable-services.lazy/messageq_v1alpha1.js +3 -0
  516. package/lib/unstable-services.lazy/mnq_console_v1beta1.js +1 -0
  517. package/lib/unstable-services.lazy/mnq_nats_v1beta1.js +1 -0
  518. package/lib/unstable-services.lazy/mnq_sns_v1beta1.js +1 -0
  519. package/lib/unstable-services.lazy/mnq_sqs_v1beta1.js +1 -0
  520. package/lib/unstable-services.lazy/mongodb_v1alpha1.js +3 -0
  521. package/lib/unstable-services.lazy/product_catalog_public_catalog_v2alpha1.js +1 -0
  522. package/lib/unstable-services.lazy/qaas_v1alpha1.js +3 -0
  523. package/lib/unstable-services.lazy/s2s_vpn_v1alpha1.js +3 -0
  524. package/lib/unstable-services.lazy/search_v1alpha1.js +1 -0
  525. package/lib/unstable-services.lazy/searchdb_v1alpha1.js +3 -0
  526. package/lib/unstable-services.lazy/secret_manager_v1beta1.js +3 -0
  527. package/lib/unstable-services.lazy/serverless_jobs_v1alpha1.js +3 -0
  528. package/lib/unstable-services.lazy/serverless_jobs_v1alpha2.js +3 -0
  529. package/lib/unstable-services.lazy/serverless_sqldb_v1alpha1.js +1 -0
  530. package/lib/unstable-services.lazy/transactional_email_v1alpha1.js +3 -0
  531. package/package.json +94 -3
  532. package/src/credentials.ts +104 -0
  533. package/src/errors.ts +307 -0
  534. package/src/index.ts +52 -0
  535. package/src/pagination.ts +65 -0
  536. package/src/protocol.ts +496 -0
  537. package/src/retry.ts +47 -0
  538. package/src/services/account_contract_v3.ts +441 -0
  539. package/src/services/account_iso_code_v3.ts +165 -0
  540. package/src/services/account_organization_v3.ts +946 -0
  541. package/src/services/account_project_v3.ts +530 -0
  542. package/src/services/account_unauthenticated_user_v3.ts +1445 -0
  543. package/src/services/account_unauthenticated_v3.ts +92 -0
  544. package/src/services/account_user_v3.ts +1657 -0
  545. package/src/services/annotations_v1.ts +897 -0
  546. package/src/services/baremetal_private_network_v1.ts +327 -0
  547. package/src/services/baremetal_private_network_v3.ts +376 -0
  548. package/src/services/baremetal_v1.ts +3072 -0
  549. package/src/services/billing_electronic_billing_v2.ts +323 -0
  550. package/src/services/billing_v2.ts +662 -0
  551. package/src/services/block_v1.ts +1282 -0
  552. package/src/services/cockpit_global_v1.ts +282 -0
  553. package/src/services/cockpit_regional_v1.ts +2177 -0
  554. package/src/services/containers_v1.ts +2110 -0
  555. package/src/services/dedibox_billing_v1.ts +621 -0
  556. package/src/services/dedibox_ipv6_block_v1.ts +468 -0
  557. package/src/services/dedibox_rpn_san_v1.ts +1185 -0
  558. package/src/services/dedibox_rpn_v1.ts +207 -0
  559. package/src/services/dedibox_rpn_v1_v1.ts +1763 -0
  560. package/src/services/dedibox_rpn_v2_v1.ts +1654 -0
  561. package/src/services/dedibox_v1.ts +3765 -0
  562. package/src/services/generative_apis_openai_v1.ts +1692 -0
  563. package/src/services/generative_apis_v1.ts +251 -0
  564. package/src/services/index.ts +57 -0
  565. package/src/services/inference_v1.ts +1353 -0
  566. package/src/services/instance_v1.ts +6611 -0
  567. package/src/services/iot_v1.ts +2419 -0
  568. package/src/services/ipam_v1.ts +716 -0
  569. package/src/services/k8s_v1.ts +3108 -0
  570. package/src/services/lb_zoned_v1.ts +4533 -0
  571. package/src/services/marketplace_console_v2.ts +198 -0
  572. package/src/services/marketplace_v2.ts +625 -0
  573. package/src/services/mongodb_v1.ts +2104 -0
  574. package/src/services/partner_v1.ts +462 -0
  575. package/src/services/rdb_encryption_v1.ts +83 -0
  576. package/src/services/rdb_v1.ts +4211 -0
  577. package/src/services/redis_v1.ts +1918 -0
  578. package/src/services/registry_v1.ts +863 -0
  579. package/src/services/reseller_v1.ts +258 -0
  580. package/src/services/vpc_gw_v2.ts +2130 -0
  581. package/src/services/vpc_private_network_with_nics_v2.ts +311 -0
  582. package/src/services/vpc_routes_with_nexthop_v2.ts +226 -0
  583. package/src/services/vpc_v2.ts +2533 -0
  584. package/src/services/webhosting_backup_v1.ts +578 -0
  585. package/src/services/webhosting_control_panel_v1.ts +130 -0
  586. package/src/services/webhosting_database_v1.ts +682 -0
  587. package/src/services/webhosting_dedibox_v1.ts +480 -0
  588. package/src/services/webhosting_dns_v1.ts +471 -0
  589. package/src/services/webhosting_free_domain_v1.ts +190 -0
  590. package/src/services/webhosting_ftp_account_v1.ts +280 -0
  591. package/src/services/webhosting_hosting_v1.ts +1309 -0
  592. package/src/services/webhosting_mail_account_v1.ts +291 -0
  593. package/src/services/webhosting_offer_v1.ts +289 -0
  594. package/src/services/webhosting_website_v1.ts +274 -0
  595. package/src/traits.ts +63 -0
  596. package/src/unstable-services/apple_silicon_private_network_v1alpha1.ts +395 -0
  597. package/src/unstable-services/apple_silicon_v1alpha1.ts +1685 -0
  598. package/src/unstable-services/audit_trail_v1alpha1.ts +3220 -0
  599. package/src/unstable-services/autoscaling_v1alpha2.ts +1103 -0
  600. package/src/unstable-services/billing_fin_ops_v2beta1.ts +195 -0
  601. package/src/unstable-services/billing_v2beta1.ts +1203 -0
  602. package/src/unstable-services/block_v1alpha1.ts +1239 -0
  603. package/src/unstable-services/data_orchestrator_v1alpha2.ts +1230 -0
  604. package/src/unstable-services/datalab_v1beta1.ts +852 -0
  605. package/src/unstable-services/dataviz_v1alpha1.ts +1478 -0
  606. package/src/unstable-services/datawarehouse_v1beta1.ts +1504 -0
  607. package/src/unstable-services/domain_registrar_v2beta1.ts +2979 -0
  608. package/src/unstable-services/domain_suggestion_v2beta1.ts +86 -0
  609. package/src/unstable-services/domain_v2beta1.ts +1794 -0
  610. package/src/unstable-services/edge_services_v1beta1.ts +3724 -0
  611. package/src/unstable-services/environmental_footprint_user_v1alpha1.ts +429 -0
  612. package/src/unstable-services/file_v1alpha1.ts +1016 -0
  613. package/src/unstable-services/flexible_ip_v1alpha1.ts +804 -0
  614. package/src/unstable-services/functions_v1beta1.ts +2410 -0
  615. package/src/unstable-services/iam_unauthenticated_v1alpha1.ts +863 -0
  616. package/src/unstable-services/iam_v1alpha1.ts +4919 -0
  617. package/src/unstable-services/index.ts +44 -0
  618. package/src/unstable-services/instance_v2alpha1.ts +5377 -0
  619. package/src/unstable-services/instance_volume_v2alpha1.ts +1111 -0
  620. package/src/unstable-services/interlink_v1beta1.ts +1791 -0
  621. package/src/unstable-services/kafka_v1alpha1.ts +1275 -0
  622. package/src/unstable-services/key_manager_v1alpha1.ts +1618 -0
  623. package/src/unstable-services/mailbox_v1alpha1.ts +1561 -0
  624. package/src/unstable-services/messageq_v1alpha1.ts +1266 -0
  625. package/src/unstable-services/mnq_console_v1beta1.ts +111 -0
  626. package/src/unstable-services/mnq_nats_v1beta1.ts +608 -0
  627. package/src/unstable-services/mnq_sns_v1beta1.ts +523 -0
  628. package/src/unstable-services/mnq_sqs_v1beta1.ts +523 -0
  629. package/src/unstable-services/mongodb_v1alpha1.ts +1789 -0
  630. package/src/unstable-services/product_catalog_public_catalog_v2alpha1.ts +1109 -0
  631. package/src/unstable-services/qaas_v1alpha1.ts +2404 -0
  632. package/src/unstable-services/s2s_vpn_v1alpha1.ts +2173 -0
  633. package/src/unstable-services/search_v1alpha1.ts +349 -0
  634. package/src/unstable-services/searchdb_v1alpha1.ts +1273 -0
  635. package/src/unstable-services/secret_manager_v1beta1.ts +1255 -0
  636. package/src/unstable-services/serverless_jobs_v1alpha1.ts +1017 -0
  637. package/src/unstable-services/serverless_jobs_v1alpha2.ts +1516 -0
  638. package/src/unstable-services/serverless_sqldb_v1alpha1.ts +747 -0
  639. package/src/unstable-services/transactional_email_v1alpha1.ts +2495 -0
@@ -0,0 +1,2495 @@
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 { ScalewayServiceErrors } from "../errors.ts";
6
+ import { paginateByTotalCount } from "../pagination.ts";
7
+ import { ScalewayProtocol, type ScalewayOpError, type ScalewayOpContext } from "../protocol.ts";
8
+ import * as Retry from "../retry.ts";
9
+ import * as T from "../traits.ts";
10
+ // Schema table, filled on first reach (see __S at the end).
11
+ const __s: any[] = [];
12
+
13
+ export type { ScalewayOpError, ScalewayOpContext };
14
+
15
+ /** Span facts shared by every operation (com.distilled.telemetry#service). */
16
+ const TELEMETRY = {
17
+ system: "scaleway-api",
18
+ responseHeaders: [
19
+ { header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
20
+ { header: "request-id", name: "http.response.header.request-id", transform: "list" },
21
+ ],
22
+ prefix: "Scaleway",
23
+ service: "TransactionalEmailV1alpha1",
24
+ labels: "scaleway",
25
+ propagate: "w3c",
26
+ } as const;
27
+
28
+ export type BulkCreateBlocklistsRequestRegion = "fr-par";
29
+ /** Email blocked by the blocklist. */
30
+ export type BulkCreateBlocklistsRequestEmailsList = Array<string>;
31
+ export type BlocklistType = "unknown_type" | "mailbox_full" | "mailbox_not_found";
32
+ export interface BulkCreateBlocklistsRequest {
33
+ /** The region you want to target */
34
+ region?: BulkCreateBlocklistsRequestRegion | (string & {}) | undefined;
35
+ /** Domain ID linked to the blocklist. (UUID format) */
36
+ domain_id?: string | undefined;
37
+ /** Email blocked by the blocklist. */
38
+ emails?: BulkCreateBlocklistsRequestEmailsList | undefined;
39
+ /** Type of blocklist. */
40
+ type?: BlocklistType | (string & {}) | undefined;
41
+ /** Reason to block the email. */
42
+ reason?: string | null | undefined;
43
+ }
44
+ export interface Blocklist {
45
+ /** ID of the blocklist. */
46
+ id?: string | undefined;
47
+ /** Domain ID linked to the blocklist. */
48
+ domain_id?: string | undefined;
49
+ /** Date and time of the blocklist creation. (RFC 3339 format) */
50
+ created_at?: string | null | undefined;
51
+ /** Date and time of the blocklist's last update. (RFC 3339 format) */
52
+ updated_at?: string | null | undefined;
53
+ /** Date and time when the blocklist ends. Empty if the blocklist has no end. (RFC 3339 format) */
54
+ ends_at?: string | null | undefined;
55
+ /** Email blocked by the blocklist. */
56
+ email?: string | undefined;
57
+ /** Type of block for this email. */
58
+ type?: BlocklistType | undefined;
59
+ /** Reason to block this email. */
60
+ reason?: string | undefined;
61
+ /** True if this blocklist was created manually. False for an automatic Transactional Email blocklist. */
62
+ custom?: boolean | undefined;
63
+ }
64
+ /** List of blocklist created. */
65
+ export type BulkCreateBlocklistsResponseBlocklistsList = Array<Blocklist>;
66
+ export interface BulkCreateBlocklistsResponse {
67
+ /** List of blocklist created. */
68
+ blocklists?: BulkCreateBlocklistsResponseBlocklistsList | undefined;
69
+ }
70
+ export type CancelEmailRequestRegion = "fr-par";
71
+ export interface CancelEmailRequest {
72
+ /** The region you want to target */
73
+ region?: CancelEmailRequestRegion | (string & {}) | undefined;
74
+ /** ID of the email to cancel. (UUID format) */
75
+ email_id: string;
76
+ }
77
+ export type EmailRcptType = "unknown_rcpt_type" | "to" | "cc" | "bcc";
78
+ export type EmailStatus = "unknown" | "new" | "sending" | "sent" | "failed" | "canceled";
79
+ export interface EmailTry {
80
+ /** Rank number of this attempt to send the email. */
81
+ rank?: number | undefined;
82
+ /** Date of the attempt to send the email. (RFC 3339 format) */
83
+ tried_at?: string | null | undefined;
84
+ /** The SMTP status code received after the attempt. 0 if the attempt did not reach an SMTP server. */
85
+ code?: number | undefined;
86
+ /** The SMTP message received. If the attempt did not reach an SMTP server, the message returned explains what happened. */
87
+ message?: string | undefined;
88
+ }
89
+ /** Information about the last three attempts to send the email. */
90
+ export type EmailLastTriesList = Array<EmailTry>;
91
+ export type EmailFlag =
92
+ | "unknown_flag"
93
+ | "soft_bounce"
94
+ | "hard_bounce"
95
+ | "spam"
96
+ | "mailbox_full"
97
+ | "mailbox_not_found"
98
+ | "greylisted"
99
+ | "send_before_expiration"
100
+ | "blocklisted";
101
+ /** Flags categorize emails. They allow you to obtain more information about recurring errors, for example. */
102
+ export type EmailFlagsList = Array<EmailFlag>;
103
+ export interface Email {
104
+ /** Technical ID of the email. */
105
+ id?: string | undefined;
106
+ /** Message ID of the email. */
107
+ message_id?: string | undefined;
108
+ /** ID of the Project to which the email belongs. */
109
+ project_id?: string | undefined;
110
+ /** Email address of the sender. */
111
+ mail_from?: string | undefined;
112
+ /** Deprecated. Email address of the recipient. */
113
+ rcpt_to?: string | undefined;
114
+ /** Email address of the recipient. */
115
+ mail_rcpt?: string | undefined;
116
+ /** Type of recipient. */
117
+ rcpt_type?: EmailRcptType | undefined;
118
+ /** Subject of the email. */
119
+ subject?: string | undefined;
120
+ /** Creation date of the email object. (RFC 3339 format) */
121
+ created_at?: string | null | undefined;
122
+ /** Last update of the email object. (RFC 3339 format) */
123
+ updated_at?: string | null | undefined;
124
+ /** Status of the email. */
125
+ status?: EmailStatus | undefined;
126
+ /** Additional status information. */
127
+ status_details?: string | null | undefined;
128
+ /** Number of attempts to send the email. */
129
+ try_count?: number | undefined;
130
+ /** Information about the last three attempts to send the email. */
131
+ last_tries?: EmailLastTriesList | undefined;
132
+ /** Flags categorize emails. They allow you to obtain more information about recurring errors, for example. */
133
+ flags?: EmailFlagsList | undefined;
134
+ }
135
+ export type CheckDomainRequestRegion = "fr-par";
136
+ export interface CheckDomainRequest {
137
+ /** The region you want to target */
138
+ region?: CheckDomainRequestRegion | (string & {}) | undefined;
139
+ /** ID of the domain to check. (UUID format) */
140
+ domain_id: string;
141
+ }
142
+ export type DomainStatus =
143
+ | "unknown"
144
+ | "checked"
145
+ | "unchecked"
146
+ | "invalid"
147
+ | "locked"
148
+ | "revoked"
149
+ | "pending"
150
+ | "autoconfiguring";
151
+ export interface DomainStatistics {
152
+ total_count?: number | undefined;
153
+ sent_count?: number | undefined;
154
+ failed_count?: number | undefined;
155
+ canceled_count?: number | undefined;
156
+ }
157
+ export type DomainReputationStatus = "unknown_status" | "excellent" | "good" | "average" | "bad";
158
+ export interface DomainReputation {
159
+ /** Status of your domain's reputation. */
160
+ status?: DomainReputationStatus | undefined;
161
+ /** A range from 0 to 100 that determines your domain's reputation score. A score of `0` means a bad domain reputation and a score of `100` means an excellent domain reputation. */
162
+ score?: number | undefined;
163
+ /** Time and date the score was calculated. (RFC 3339 format) */
164
+ scored_at?: string | null | undefined;
165
+ /** The previously-calculated domain's reputation score. */
166
+ previous_score?: number | null | undefined;
167
+ /** Time and date the previous reputation score was calculated. (RFC 3339 format) */
168
+ previous_scored_at?: string | null | undefined;
169
+ }
170
+ export interface DomainRecordsDMARC {
171
+ /** Name of the DMARC TXT record. */
172
+ name?: string | undefined;
173
+ /** Value of the DMARC TXT record. */
174
+ value?: string | undefined;
175
+ }
176
+ export interface DomainRecordsDKIM {
177
+ /** Name of the DKIM TXT record. */
178
+ name?: string | undefined;
179
+ /** Value of the DKIM TXT record. */
180
+ value?: string | undefined;
181
+ }
182
+ export interface DomainRecordsSPF {
183
+ /** Name of the SPF TXT record. */
184
+ name?: string | undefined;
185
+ /** Value of the SPF TXT record. */
186
+ value?: string | undefined;
187
+ }
188
+ export interface DomainRecordsMX {
189
+ /** Name of the MX record. */
190
+ name?: string | undefined;
191
+ /** Value of the MX record. */
192
+ value?: string | undefined;
193
+ }
194
+ export interface DomainRecords {
195
+ /** DMARC TXT record specification. */
196
+ dmarc?: DomainRecordsDMARC | undefined;
197
+ /** DKIM TXT record specification. */
198
+ dkim?: DomainRecordsDKIM | undefined;
199
+ /** SPF TXT record specification. */
200
+ spf?: DomainRecordsSPF | undefined;
201
+ /** MX record specification. */
202
+ mx?: DomainRecordsMX | undefined;
203
+ }
204
+ export interface Domain {
205
+ /** ID of the domain. */
206
+ id?: string | undefined;
207
+ /** ID of the domain's Organization. */
208
+ organization_id?: string | undefined;
209
+ /** ID of the domain's Project. */
210
+ project_id?: string | undefined;
211
+ /** Domain name (example.com). */
212
+ name?: string | undefined;
213
+ /** Status of the domain. */
214
+ status?: DomainStatus | undefined;
215
+ /** Date and time of domain creation. (RFC 3339 format) */
216
+ created_at?: string | null | undefined;
217
+ /** Date and time of the next scheduled check. (RFC 3339 format) */
218
+ next_check_at?: string | null | undefined;
219
+ /** Date and time the domain was last valid. (RFC 3339 format) */
220
+ last_valid_at?: string | null | undefined;
221
+ /** Date and time of the domain's deletion. (RFC 3339 format) */
222
+ revoked_at?: string | null | undefined;
223
+ /** Deprecated. Error message returned if the last check failed. */
224
+ last_error?: string | null | undefined;
225
+ /** Snippet of the SPF record to register in the DNS zone. */
226
+ spf_config?: string | undefined;
227
+ /** DKIM public key to record in the DNS zone. */
228
+ dkim_config?: string | undefined;
229
+ /** Domain's statistics. */
230
+ statistics?: DomainStatistics | undefined;
231
+ /** The domain's reputation is available when your domain is checked and has sent enough emails. */
232
+ reputation?: DomainReputation | undefined;
233
+ /** List of records to configure to validate a domain. */
234
+ records?: DomainRecords | undefined;
235
+ /** Status of auto-configuration for the domain's DNS zone. */
236
+ autoconfig?: boolean | undefined;
237
+ /** The region you want to target */
238
+ region?: string | undefined;
239
+ }
240
+ export type CreateDomainRequestRegion = "fr-par";
241
+ export interface CreateDomainRequest {
242
+ /** The region you want to target */
243
+ region?: CreateDomainRequestRegion | (string & {}) | undefined;
244
+ /** ID of the project to which the domain belongs. (UUID format) */
245
+ project_id?: string | undefined;
246
+ /** Fully qualified domain dame. */
247
+ domain_name?: string | undefined;
248
+ /** Deprecated. Accept Scaleway's Terms of Service. */
249
+ accept_tos?: boolean | undefined;
250
+ /** Activate auto-configuration of the domain's DNS zone. */
251
+ autoconfig?: boolean | undefined;
252
+ }
253
+ export type CreateEmailRequestRegion = "fr-par";
254
+ export interface CreateEmailRequestAddress {
255
+ /** Email address. */
256
+ email?: string | undefined;
257
+ /** (Optional) Name displayed. */
258
+ name?: string | null | undefined;
259
+ }
260
+ /** An array of the primary recipient's information. */
261
+ export type CreateEmailRequestToList = Array<CreateEmailRequestAddress>;
262
+ /** An array of the carbon copy recipient's information. */
263
+ export type CreateEmailRequestCcList = Array<CreateEmailRequestAddress>;
264
+ /** An array of the blind carbon copy recipient's information. */
265
+ export type CreateEmailRequestBccList = Array<CreateEmailRequestAddress>;
266
+ export interface CreateEmailRequestAttachment {
267
+ /** Filename of the attachment. */
268
+ name?: string | undefined;
269
+ /** MIME type of the attachment. */
270
+ type?: string | undefined;
271
+ /** Content of the attachment encoded in base64. */
272
+ content?: string | undefined;
273
+ }
274
+ /** Array of attachments. */
275
+ export type CreateEmailRequestAttachmentsList = Array<CreateEmailRequestAttachment>;
276
+ export interface CreateEmailRequestHeader {
277
+ /** Email header key. */
278
+ key?: string | undefined;
279
+ /** Email header value. */
280
+ value?: string | undefined;
281
+ }
282
+ /** Array of additional headers as key-value. */
283
+ export type CreateEmailRequestAdditionalHeadersList = Array<CreateEmailRequestHeader>;
284
+ export interface CreateEmailRequest {
285
+ /** The region you want to target */
286
+ region?: CreateEmailRequestRegion | (string & {}) | undefined;
287
+ /** Sender information. Must be from a checked domain declared in the Project. */
288
+ from: CreateEmailRequestAddress;
289
+ /** An array of the primary recipient's information. */
290
+ to?: CreateEmailRequestToList | undefined;
291
+ /** An array of the carbon copy recipient's information. */
292
+ cc?: CreateEmailRequestCcList | undefined;
293
+ /** An array of the blind carbon copy recipient's information. */
294
+ bcc?: CreateEmailRequestBccList | undefined;
295
+ /** Subject of the email. */
296
+ subject?: string | undefined;
297
+ /** Text content. */
298
+ text?: string | undefined;
299
+ /** HTML content. */
300
+ html?: string | undefined;
301
+ /** ID of the Project in which to create the email. (UUID format) */
302
+ project_id?: string | undefined;
303
+ /** Array of attachments. */
304
+ attachments?: CreateEmailRequestAttachmentsList | undefined;
305
+ /** Maximum date to deliver the email. (RFC 3339 format) */
306
+ send_before?: string | null | undefined;
307
+ /** Array of additional headers as key-value. */
308
+ additional_headers?: CreateEmailRequestAdditionalHeadersList | undefined;
309
+ }
310
+ /** Single page of emails matching the requested criteria. */
311
+ export type CreateEmailResponseEmailsList = Array<Email>;
312
+ export interface CreateEmailResponse {
313
+ /** Single page of emails matching the requested criteria. */
314
+ emails?: CreateEmailResponseEmailsList | undefined;
315
+ }
316
+ export type CreateWebhookRequestRegion = "fr-par";
317
+ export type WebhookEventType =
318
+ | "unknown_type"
319
+ | "email_queued"
320
+ | "email_dropped"
321
+ | "email_deferred"
322
+ | "email_delivered"
323
+ | "email_spam"
324
+ | "email_mailbox_not_found"
325
+ | "email_blocklisted"
326
+ | "blocklist_created";
327
+ /** List of event types that will trigger an event. */
328
+ export type CreateWebhookRequestEventTypesList = Array<WebhookEventType | (string & {})>;
329
+ export interface CreateWebhookRequest {
330
+ /** The region you want to target */
331
+ region?: CreateWebhookRequestRegion | (string & {}) | undefined;
332
+ /** ID of the Domain to watch for triggering events. (UUID format) */
333
+ domain_id?: string | undefined;
334
+ /** ID of the project to which the Webhook belongs. (UUID format) */
335
+ project_id?: string | undefined;
336
+ /** Name of the Webhook. */
337
+ name?: string | undefined;
338
+ /** List of event types that will trigger an event. */
339
+ event_types?: CreateWebhookRequestEventTypesList | undefined;
340
+ /** Scaleway SNS ARN topic to push the events to. */
341
+ sns_arn?: string | undefined;
342
+ }
343
+ /** List of event types that will trigger a Webhook Event. */
344
+ export type WebhookEventTypesList = Array<WebhookEventType>;
345
+ export interface Webhook {
346
+ /** ID of the Webhook. */
347
+ id?: string | undefined;
348
+ /** ID of the Domain to watch for triggering events. */
349
+ domain_id?: string | undefined;
350
+ /** ID of the Webhook Organization. */
351
+ organization_id?: string | undefined;
352
+ /** ID of the Webhook Project. */
353
+ project_id?: string | undefined;
354
+ /** Name of the Webhook. */
355
+ name?: string | undefined;
356
+ /** List of event types that will trigger a Webhook Event. */
357
+ event_types?: WebhookEventTypesList | undefined;
358
+ /** Scaleway SNS ARN topic to push the events to. */
359
+ sns_arn?: string | undefined;
360
+ /** Date and time of the Webhook creation. (RFC 3339 format) */
361
+ created_at?: string | null | undefined;
362
+ /** Date and time of last Webhook updates. (RFC 3339 format) */
363
+ updated_at?: string | null | undefined;
364
+ }
365
+ export type DeleteBlocklistRequestRegion = "fr-par";
366
+ export interface DeleteBlocklistRequest {
367
+ /** The region you want to target */
368
+ region?: DeleteBlocklistRequestRegion | (string & {}) | undefined;
369
+ /** ID of the blocklist to delete. (UUID format) */
370
+ blocklist_id: string;
371
+ }
372
+ export interface DeleteBlocklistResponse {}
373
+ export type DeleteWebhookRequestRegion = "fr-par";
374
+ export interface DeleteWebhookRequest {
375
+ /** The region you want to target */
376
+ region?: DeleteWebhookRequestRegion | (string & {}) | undefined;
377
+ /** ID of the Webhook to delete. (UUID format) */
378
+ webhook_id: string;
379
+ }
380
+ export interface DeleteWebhookResponse {}
381
+ export type GetDomainRequestRegion = "fr-par";
382
+ export interface GetDomainRequest {
383
+ /** The region you want to target */
384
+ region?: GetDomainRequestRegion | (string & {}) | undefined;
385
+ /** ID of the domain. (UUID format) */
386
+ domain_id: string;
387
+ }
388
+ export type GetDomainLastStatusRequestRegion = "fr-par";
389
+ export interface GetDomainLastStatusRequest {
390
+ /** The region you want to target */
391
+ region?: GetDomainLastStatusRequestRegion | (string & {}) | undefined;
392
+ /** ID of the domain to get records status. (UUID format) */
393
+ domain_id: string;
394
+ }
395
+ export type DomainLastStatusRecordStatus =
396
+ | "unknown_record_status"
397
+ | "valid"
398
+ | "invalid"
399
+ | "not_found";
400
+ export interface DomainLastStatusSpfRecord {
401
+ /** Status of the SPF record's configuration. */
402
+ status?: DomainLastStatusRecordStatus | undefined;
403
+ /** Time and date the SPF record was last valid. (RFC 3339 format) */
404
+ last_valid_at?: string | null | undefined;
405
+ /** An error text displays in case the record is not valid. */
406
+ error?: string | null | undefined;
407
+ }
408
+ export interface DomainLastStatusDkimRecord {
409
+ /** Status of the DKIM record's configuration. */
410
+ status?: DomainLastStatusRecordStatus | undefined;
411
+ /** Time and date the DKIM record was last valid. (RFC 3339 format) */
412
+ last_valid_at?: string | null | undefined;
413
+ /** An error text displays in case the record is not valid. */
414
+ error?: string | null | undefined;
415
+ }
416
+ export interface DomainLastStatusDmarcRecord {
417
+ /** Status of the DMARC record's configuration. */
418
+ status?: DomainLastStatusRecordStatus | undefined;
419
+ /** Time and date the DMARC record was last valid. (RFC 3339 format) */
420
+ last_valid_at?: string | null | undefined;
421
+ /** An error text displays in case the record is not valid. */
422
+ error?: string | null | undefined;
423
+ }
424
+ export interface DomainLastStatusMXRecord {
425
+ /** Status of the MX record's configuration. Status of the MX record's configuration. This record is optional to validate a domain, but highly recommended. */
426
+ status?: DomainLastStatusRecordStatus | undefined;
427
+ /** Time and date the MX record was last valid. (RFC 3339 format) */
428
+ last_valid_at?: string | null | undefined;
429
+ /** An error text displays in case the record is not valid. */
430
+ error?: string | null | undefined;
431
+ }
432
+ export type DomainLastStatusAutoconfigStateReason =
433
+ | "unknown_reason"
434
+ | "permission_denied"
435
+ | "domain_not_found";
436
+ export interface DomainLastStatusAutoconfigState {
437
+ /** Enable or disable the auto-configuration of domain DNS records. */
438
+ enabled?: boolean | undefined;
439
+ /** Whether the domain can be auto-configured or not. */
440
+ autoconfigurable?: boolean | undefined;
441
+ /** The reason that the domain cannot be auto-configurable. */
442
+ reason?: DomainLastStatusAutoconfigStateReason | undefined;
443
+ }
444
+ export interface DomainLastStatus {
445
+ /** The ID of the domain. */
446
+ domain_id?: string | undefined;
447
+ /** The domain name (example.com). */
448
+ domain_name?: string | undefined;
449
+ /** The SPF record verification data. */
450
+ spf_record?: DomainLastStatusSpfRecord | undefined;
451
+ /** The DKIM record verification data. */
452
+ dkim_record?: DomainLastStatusDkimRecord | undefined;
453
+ /** The DMARC record verification data. */
454
+ dmarc_record?: DomainLastStatusDmarcRecord | undefined;
455
+ /** The MX record verification data. */
456
+ mx_record?: DomainLastStatusMXRecord | undefined;
457
+ /** The verification state of domain auto-configuration. */
458
+ autoconfig_state?: DomainLastStatusAutoconfigState | undefined;
459
+ }
460
+ export type GetEmailRequestRegion = "fr-par";
461
+ export interface GetEmailRequest {
462
+ /** The region you want to target */
463
+ region?: GetEmailRequestRegion | (string & {}) | undefined;
464
+ /** ID of the email to retrieve. (UUID format) */
465
+ email_id: string;
466
+ }
467
+ export type GetProjectConsumptionRequestRegion = "fr-par";
468
+ export interface GetProjectConsumptionRequest {
469
+ /** The region you want to target */
470
+ region?: GetProjectConsumptionRequestRegion | (string & {}) | undefined;
471
+ /** ID of the project. (UUID format) */
472
+ project_id: string;
473
+ }
474
+ export interface ProjectConsumption {
475
+ /** ID of the project. */
476
+ project_id?: string | undefined;
477
+ /** Number of domains in the project. */
478
+ domains_count?: number | undefined;
479
+ /** Number of dedicated IP in the project. */
480
+ dedicated_ips_count?: number | undefined;
481
+ /** Number of emails sent during the current month in the project. */
482
+ monthly_emails_count?: number | undefined;
483
+ /** Number of webhooks in the project. */
484
+ webhooks_count?: number | undefined;
485
+ /** Number of custom blocklists in the project. */
486
+ custom_blocklists_count?: number | undefined;
487
+ }
488
+ export type GetProjectSettingsRequestRegion = "fr-par";
489
+ export interface GetProjectSettingsRequest {
490
+ /** The region you want to target */
491
+ region?: GetProjectSettingsRequestRegion | (string & {}) | undefined;
492
+ /** ID of the project. (UUID format) */
493
+ project_id: string;
494
+ }
495
+ export type ProjectSettingsPeriodicReportFrequency =
496
+ | "unknown_frequency"
497
+ | "monthly"
498
+ | "weekly"
499
+ | "daily";
500
+ export interface ProjectSettingsPeriodicReport {
501
+ /** Enable or disable periodic report notifications. */
502
+ enabled?: boolean | undefined;
503
+ /** At which frequency you receive periodic report notifications. */
504
+ frequency?: ProjectSettingsPeriodicReportFrequency | undefined;
505
+ /** At which hour you receive periodic report notifications. */
506
+ sending_hour?: number | undefined;
507
+ /** On which day you receive periodic report notifications (1-7 weekly, 1-28 monthly). */
508
+ sending_day?: number | undefined;
509
+ }
510
+ export interface ProjectSettings {
511
+ /** Information about your periodic report. */
512
+ periodic_report?: ProjectSettingsPeriodicReport | undefined;
513
+ }
514
+ export type GetStatisticsRequestRegion = "fr-par";
515
+ export interface GetStatisticsRequest {
516
+ /** The region you want to target */
517
+ region?: GetStatisticsRequestRegion | (string & {}) | undefined;
518
+ /** (Optional) Number of emails for this Project. (UUID format) */
519
+ project_id?: string | undefined;
520
+ /** (Optional) Number of emails sent from this domain (must be coherent with the `project_id` and the `organization_id`). (UUID format) */
521
+ domain_id?: string | undefined;
522
+ /** (Optional) Number of emails created after this date. (RFC 3339 format) */
523
+ since?: string | undefined;
524
+ /** (Optional) Number of emails created before this date. (RFC 3339 format) */
525
+ until?: string | undefined;
526
+ /** (Optional) Number of emails sent with this sender's email address. */
527
+ mail_from?: string | undefined;
528
+ }
529
+ export interface Statistics {
530
+ /** Total number of emails matching the requested criteria. */
531
+ total_count?: number | undefined;
532
+ /** Number of emails still in the `new` transient state. This means emails received from the API but not yet processed. */
533
+ new_count?: number | undefined;
534
+ /** Number of emails still in the `sending` transient state. This means emails received from the API but not yet in their final status. */
535
+ sending_count?: number | undefined;
536
+ /** Number of emails in the final `sent` state. This means emails that have been delivered to the target mail system. */
537
+ sent_count?: number | undefined;
538
+ /** Number of emails in the final `failed` state. This means emails that have been refused by the target mail system with a final error status. */
539
+ failed_count?: number | undefined;
540
+ /** Number of emails in the final `canceled` state. This means emails that have been canceled upon request. */
541
+ canceled_count?: number | undefined;
542
+ }
543
+ export type GetWebhookRequestRegion = "fr-par";
544
+ export interface GetWebhookRequest {
545
+ /** The region you want to target */
546
+ region?: GetWebhookRequestRegion | (string & {}) | undefined;
547
+ /** ID of the Webhook to check. (UUID format) */
548
+ webhook_id: string;
549
+ }
550
+ export type ListBlocklistsRequestRegion = "fr-par";
551
+ export type ListBlocklistsRequestOrderBy =
552
+ | "created_at_desc"
553
+ | "created_at_asc"
554
+ | "ends_at_desc"
555
+ | "ends_at_asc";
556
+ export interface ListBlocklistsRequest {
557
+ /** The region you want to target */
558
+ region?: ListBlocklistsRequestRegion | (string & {}) | undefined;
559
+ /** (Optional) List blocklist corresponding to specific criteria. */
560
+ order_by?: ListBlocklistsRequestOrderBy | (string & {}) | undefined;
561
+ /** (Optional) Requested page number. Value must be greater or equal to 1. */
562
+ page?: number | undefined;
563
+ /** (Optional) Requested page size. Value must be between 1 and 100. */
564
+ page_size?: number | undefined;
565
+ /** (Optional) Filter by a domain ID. (UUID format) */
566
+ domain_id: string;
567
+ /** (Optional) Filter by an email address. */
568
+ email?: string | undefined;
569
+ /** (Optional) Filter by a blocklist type. */
570
+ type?: BlocklistType | (string & {}) | undefined;
571
+ /** (Optional) Filter by custom blocklist (true) or automatic Transactional Email blocklist (false). */
572
+ custom?: boolean | undefined;
573
+ }
574
+ /** Single page of blocklists matching the requested criteria. */
575
+ export type ListBlocklistsResponseBlocklistsList = Array<Blocklist>;
576
+ export interface ListBlocklistsResponse {
577
+ /** Number of blocklists matching the requested criteria. */
578
+ total_count?: number | undefined;
579
+ /** Single page of blocklists matching the requested criteria. */
580
+ blocklists: ListBlocklistsResponseBlocklistsList;
581
+ }
582
+ export type ListDomainsRequestRegion = "fr-par";
583
+ export type ListDomainsRequestStatusList = Array<DomainStatus | (string & {})>;
584
+ export interface ListDomainsRequest {
585
+ /** The region you want to target */
586
+ region?: ListDomainsRequestRegion | (string & {}) | undefined;
587
+ /** Requested page number. Value must be greater or equal to 1. */
588
+ page?: number | undefined;
589
+ /** Requested page size. Value must be between 1 and 1000. */
590
+ page_size?: number | undefined;
591
+ /** (Optional) ID of the Project in which to list the domains. (UUID format) */
592
+ project_id?: string | undefined;
593
+ /** (Optional) List domains under specific statuses. */
594
+ status?: ListDomainsRequestStatusList | undefined;
595
+ /** (Optional) ID of the Organization in which to list the domains. (UUID format) */
596
+ organization_id?: string | undefined;
597
+ /** (Optional) Names of the domains to list. */
598
+ name?: string | undefined;
599
+ }
600
+ /** Single page of domains matching the requested criteria. */
601
+ export type ListDomainsResponseDomainsList = Array<Domain>;
602
+ export interface ListDomainsResponse {
603
+ /** Number of domains that match the request (without pagination). */
604
+ total_count?: number | undefined;
605
+ /** Single page of domains matching the requested criteria. */
606
+ domains: ListDomainsResponseDomainsList;
607
+ }
608
+ export type ListEmailsRequestRegion = "fr-par";
609
+ export type ListEmailsRequestStatusesList = Array<EmailStatus | (string & {})>;
610
+ export type ListEmailsRequestOrderBy =
611
+ | "created_at_desc"
612
+ | "created_at_asc"
613
+ | "updated_at_desc"
614
+ | "updated_at_asc"
615
+ | "status_desc"
616
+ | "status_asc"
617
+ | "mail_from_desc"
618
+ | "mail_from_asc"
619
+ | "mail_rcpt_desc"
620
+ | "mail_rcpt_asc"
621
+ | "subject_desc"
622
+ | "subject_asc";
623
+ export type ListEmailsRequestFlagsList = Array<EmailFlag | (string & {})>;
624
+ export interface ListEmailsRequest {
625
+ /** The region you want to target */
626
+ region?: ListEmailsRequestRegion | (string & {}) | undefined;
627
+ page?: number | undefined;
628
+ page_size?: number | undefined;
629
+ /** (Optional) ID of the Project in which to list the emails. (UUID format) */
630
+ project_id?: string | undefined;
631
+ /** (Optional) ID of the domain for which to list the emails. (UUID format) */
632
+ domain_id?: string | undefined;
633
+ /** (Optional) ID of the message for which to list the emails. (UUID format) */
634
+ message_id?: string | undefined;
635
+ /** (Optional) List emails created after this date. (RFC 3339 format) */
636
+ since?: string | undefined;
637
+ /** (Optional) List emails created before this date. (RFC 3339 format) */
638
+ until?: string | undefined;
639
+ /** (Optional) List emails sent with this sender's email address. */
640
+ mail_from?: string | undefined;
641
+ /** Deprecated. List emails sent to this recipient's email address. */
642
+ mail_to?: string | undefined;
643
+ /** (Optional) List emails sent to this recipient's email address. */
644
+ mail_rcpt?: string | undefined;
645
+ /** (Optional) List emails with any of these statuses. */
646
+ statuses?: ListEmailsRequestStatusesList | undefined;
647
+ /** (Optional) List emails with this subject. */
648
+ subject?: string | undefined;
649
+ /** (Optional) List emails by searching to all fields. */
650
+ search?: string | undefined;
651
+ /** (Optional) List emails corresponding to specific criteria. */
652
+ order_by?: ListEmailsRequestOrderBy | (string & {}) | undefined;
653
+ /** (Optional) List emails containing only specific flags. */
654
+ flags?: ListEmailsRequestFlagsList | undefined;
655
+ }
656
+ /** Single page of emails matching the requested criteria. */
657
+ export type ListEmailsResponseEmailsList = Array<Email>;
658
+ export interface ListEmailsResponse {
659
+ /** Number of emails matching the requested criteria. */
660
+ total_count?: number | undefined;
661
+ /** Single page of emails matching the requested criteria. */
662
+ emails: ListEmailsResponseEmailsList;
663
+ }
664
+ export type ListOffersRequestRegion = "fr-par";
665
+ export interface ListOffersRequest {
666
+ /** The region you want to target */
667
+ region?: ListOffersRequestRegion | (string & {}) | undefined;
668
+ }
669
+ export type OfferName = "unknown_name" | "essential" | "scale";
670
+ export interface Offer {
671
+ /** Name of the offer. */
672
+ name?: OfferName | undefined;
673
+ /** Date and time of the offer creation. (RFC 3339 format) */
674
+ created_at?: string | null | undefined;
675
+ /** Period of commitment. (in seconds) */
676
+ commitment_period?: string | null | undefined;
677
+ /** Service Level Agreement percentage of the offer. */
678
+ sla?: number | undefined;
679
+ /** Max number of checked domains that can be associated with the offer. */
680
+ max_domains?: number | undefined;
681
+ /** Max number of dedicated IPs that can be associated with the offer. */
682
+ max_dedicated_ips?: number | undefined;
683
+ /** Number of emails included in the offer per month. */
684
+ included_monthly_emails?: number | undefined;
685
+ /** Max number of webhooks that can be associated with the offer. */
686
+ max_webhooks_per_domain?: number | undefined;
687
+ /** Max number of active custom blocklists that can be associated with the offer. */
688
+ max_custom_blocklists_per_domain?: number | undefined;
689
+ }
690
+ /** Single page of offers matching the requested criteria. */
691
+ export type ListOffersResponseOffersList = Array<Offer>;
692
+ export interface ListOffersResponse {
693
+ /** Number of offers matching the requested criteria. */
694
+ total_count?: number | undefined;
695
+ /** Single page of offers matching the requested criteria. */
696
+ offers?: ListOffersResponseOffersList | undefined;
697
+ }
698
+ export type ListOfferSubscriptionsRequestRegion = "fr-par";
699
+ export interface ListOfferSubscriptionsRequest {
700
+ /** The region you want to target */
701
+ region?: ListOfferSubscriptionsRequestRegion | (string & {}) | undefined;
702
+ /** (Optional) Requested page number. Value must be greater or equal to 1. */
703
+ page?: number | undefined;
704
+ /** (Optional) Requested page size. Value must be between 1 and 100. */
705
+ page_size?: number | undefined;
706
+ /** (Optional) Name of the offer associated with the Project. */
707
+ offer_name?: OfferName | (string & {}) | undefined;
708
+ /** Subscriptions of this Organization. One-of `scope`: at most one of `organization_id`, `project_id`. */
709
+ organization_id?: string | undefined;
710
+ /** Subscriptions of this Project. One-of `scope`: at most one of `organization_id`, `project_id`. */
711
+ project_id?: string | undefined;
712
+ }
713
+ export interface OfferSubscription {
714
+ /** ID of the offer-subscription Organization. */
715
+ organization_id?: string | undefined;
716
+ /** ID of the offer-subscription Project. */
717
+ project_id?: string | undefined;
718
+ /** Name of the offer associated with the Project. */
719
+ offer_name?: OfferName | undefined;
720
+ /** Date and time of the subscription. (RFC 3339 format) */
721
+ subscribed_at?: string | null | undefined;
722
+ /** Date and time of the end of the offer-subscription commitment. (RFC 3339 format) */
723
+ cancellation_available_at?: string | null | undefined;
724
+ /** Service Level Agreement percentage of the offer-subscription. */
725
+ sla?: number | undefined;
726
+ /** Max number of domains that can be associated with the offer-subscription for a particular Project. */
727
+ max_domains?: number | undefined;
728
+ /** Max number of dedicated IPs that can be associated with the offer-subscription for a particular Project. */
729
+ max_dedicated_ips?: number | undefined;
730
+ /** Max number of webhooks that can be associated with the offer-subscription for a particular Project. */
731
+ max_webhooks_per_domain?: number | undefined;
732
+ /** Max number of custom blocklists that can be associated with the offer-subscription for a particular Project. */
733
+ max_custom_blocklists_per_domain?: number | undefined;
734
+ /** Number of emails included in the offer-subscription per month. */
735
+ included_monthly_emails?: number | undefined;
736
+ }
737
+ /** Single page of offer-subscriptions matching the requested criteria. */
738
+ export type ListOfferSubscriptionsResponseOfferSubscriptionsList = Array<OfferSubscription>;
739
+ export interface ListOfferSubscriptionsResponse {
740
+ /** Number of offer-subscriptions matching the requested criteria. */
741
+ total_count?: number | undefined;
742
+ /** Single page of offer-subscriptions matching the requested criteria. */
743
+ offer_subscriptions: ListOfferSubscriptionsResponseOfferSubscriptionsList;
744
+ }
745
+ export type ListPoolsRequestRegion = "fr-par";
746
+ export interface ListPoolsRequest {
747
+ /** The region you want to target */
748
+ region?: ListPoolsRequestRegion | (string & {}) | undefined;
749
+ /** Requested page number. Value must be greater or equal to 1. */
750
+ page?: number | undefined;
751
+ /** Requested page size. Value must be between 1 and 1000. */
752
+ page_size?: number | undefined;
753
+ /** ID of the Project. (UUID format) */
754
+ project_id: string;
755
+ }
756
+ export type PoolStatus = "unknown_status" | "disabled" | "creating" | "ready" | "error";
757
+ /** IPs of the pool. (IP address) */
758
+ export type PoolIpsList = Array<string>;
759
+ export interface Pool {
760
+ /** ID of the Project. */
761
+ project_id?: string | undefined;
762
+ /** Status of the pool. */
763
+ status?: PoolStatus | undefined;
764
+ /** Details of the pool. */
765
+ details?: string | null | undefined;
766
+ /** Zone of the pool. */
767
+ zone?: string | null | undefined;
768
+ /** IPs of the pool. (IP address) */
769
+ ips?: PoolIpsList | undefined;
770
+ /** Reverse hostname of all IPs of the pool. */
771
+ reverse?: string | null | undefined;
772
+ }
773
+ /** Single page of pools matching the requested criteria. */
774
+ export type ListPoolsResponsePoolsList = Array<Pool>;
775
+ export interface ListPoolsResponse {
776
+ /** Number of pools matching the requested criteria. */
777
+ total_count?: number | undefined;
778
+ /** Single page of pools matching the requested criteria. */
779
+ pools: ListPoolsResponsePoolsList;
780
+ }
781
+ export type ListWebhookEventsRequestRegion = "fr-par";
782
+ export type ListWebhookEventsRequestOrderBy = "created_at_desc" | "created_at_asc";
783
+ export type ListWebhookEventsRequestEventTypesList = Array<WebhookEventType | (string & {})>;
784
+ export type WebhookEventStatus = "unknown_status" | "sending" | "sent" | "failed";
785
+ export type ListWebhookEventsRequestStatusesList = Array<WebhookEventStatus | (string & {})>;
786
+ export interface ListWebhookEventsRequest {
787
+ /** The region you want to target */
788
+ region?: ListWebhookEventsRequestRegion | (string & {}) | undefined;
789
+ /** ID of the Webhook linked to the events. (UUID format) */
790
+ webhook_id: string;
791
+ /** (Optional) List Webhook events corresponding to specific criteria. */
792
+ order_by?: ListWebhookEventsRequestOrderBy | (string & {}) | undefined;
793
+ /** Requested page number. Value must be greater or equal to 1. */
794
+ page?: number | undefined;
795
+ /** Requested page size. Value must be between 1 and 100. */
796
+ page_size?: number | undefined;
797
+ /** ID of the email linked to the events. (UUID format) */
798
+ email_id?: string | undefined;
799
+ /** List of event types linked to the events. */
800
+ event_types?: ListWebhookEventsRequestEventTypesList | undefined;
801
+ /** List of event statuses. */
802
+ statuses?: ListWebhookEventsRequestStatusesList | undefined;
803
+ /** ID of the webhook Project. (UUID format) */
804
+ project_id?: string | undefined;
805
+ /** ID of the webhook Organization. (UUID format) */
806
+ organization_id?: string | undefined;
807
+ /** ID of the domain to watch for triggering events. (UUID format) */
808
+ domain_id?: string | undefined;
809
+ }
810
+ export interface WebhookEvent {
811
+ /** ID of the Webhook Event. */
812
+ id?: string | undefined;
813
+ /** ID of the Webhook that triggers the Event. */
814
+ webhook_id?: string | undefined;
815
+ /** ID of the Webhook Event Organization. */
816
+ organization_id?: string | undefined;
817
+ /** ID of the Webhook Event Project. */
818
+ project_id?: string | undefined;
819
+ /** ID of the webhook event domain. */
820
+ domain_id?: string | undefined;
821
+ /** Type of the Webhook Event. */
822
+ type?: WebhookEventType | undefined;
823
+ /** Status of the Webhook Event. */
824
+ status?: WebhookEventStatus | undefined;
825
+ /** Data sent to the Webhook destination. */
826
+ data?: string | undefined;
827
+ /** Date and time of the Webhook Event creation. (RFC 3339 format) */
828
+ created_at?: string | null | undefined;
829
+ /** Date and time of last Webhook Event updates. (RFC 3339 format) */
830
+ updated_at?: string | null | undefined;
831
+ /** Optional Email ID if the event is triggered by an Email resource. */
832
+ email_id?: string | null | undefined;
833
+ }
834
+ /** Single page of Webhook events matching the requested criteria. */
835
+ export type ListWebhookEventsResponseWebhookEventsList = Array<WebhookEvent>;
836
+ export interface ListWebhookEventsResponse {
837
+ /** Number of Webhook events matching the requested criteria. */
838
+ total_count?: number | undefined;
839
+ /** Single page of Webhook events matching the requested criteria. */
840
+ webhook_events: ListWebhookEventsResponseWebhookEventsList;
841
+ }
842
+ export type ListWebhooksRequestRegion = "fr-par";
843
+ export type ListWebhooksRequestOrderBy = "created_at_desc" | "created_at_asc";
844
+ export interface ListWebhooksRequest {
845
+ /** The region you want to target */
846
+ region?: ListWebhooksRequestRegion | (string & {}) | undefined;
847
+ /** (Optional) List Webhooks corresponding to specific criteria. */
848
+ order_by?: ListWebhooksRequestOrderBy | (string & {}) | undefined;
849
+ /** (Optional) Requested page number. Value must be greater or equal to 1. */
850
+ page?: number | undefined;
851
+ /** (Optional) Requested page size. Value must be between 1 and 100. */
852
+ page_size?: number | undefined;
853
+ /** (Optional) ID of the Project for which to list the Webhooks. (UUID format) */
854
+ project_id?: string | undefined;
855
+ /** (Optional) ID of the Organization for which to list the Webhooks. (UUID format) */
856
+ organization_id?: string | undefined;
857
+ /** (Optional) ID of the Domain for which to list the Webhooks. (UUID format) */
858
+ domain_id?: string | undefined;
859
+ }
860
+ /** Single page of Webhooks matching the requested criteria. */
861
+ export type ListWebhooksResponseWebhooksList = Array<Webhook>;
862
+ export interface ListWebhooksResponse {
863
+ /** Number of Webhooks matching the requested criteria. */
864
+ total_count?: number | undefined;
865
+ /** Single page of Webhooks matching the requested criteria. */
866
+ webhooks: ListWebhooksResponseWebhooksList;
867
+ }
868
+ export type RevokeDomainRequestRegion = "fr-par";
869
+ export interface RevokeDomainRequest {
870
+ /** The region you want to target */
871
+ region?: RevokeDomainRequestRegion | (string & {}) | undefined;
872
+ /** ID of the domain to delete. (UUID format) */
873
+ domain_id: string;
874
+ }
875
+ export type UpdateDomainRequestRegion = "fr-par";
876
+ export interface UpdateDomainRequest {
877
+ /** The region you want to target */
878
+ region?: UpdateDomainRequestRegion | (string & {}) | undefined;
879
+ /** ID of the domain to update. (UUID format) */
880
+ domain_id: string;
881
+ /** (Optional) If set to true, activate auto-configuration of the domain's DNS zone. */
882
+ autoconfig?: boolean | null | undefined;
883
+ }
884
+ export type UpdateOfferSubscriptionRequestRegion = "fr-par";
885
+ export interface UpdateOfferSubscriptionRequest {
886
+ /** The region you want to target */
887
+ region?: UpdateOfferSubscriptionRequestRegion | (string & {}) | undefined;
888
+ /** ID of the Project. (UUID format) */
889
+ project_id?: string | undefined;
890
+ /** Name of the offer-subscription. */
891
+ name?: OfferName | (string & {}) | undefined;
892
+ }
893
+ export type UpdateProjectSettingsRequestRegion = "fr-par";
894
+ export interface UpdateProjectSettingsRequestUpdatePeriodicReport {
895
+ /** (Optional) Enable or disable periodic report notifications. */
896
+ enabled?: boolean | null | undefined;
897
+ /** (Optional) Frequency at which you receive periodic report notifications. */
898
+ frequency?: ProjectSettingsPeriodicReportFrequency | (string & {}) | undefined;
899
+ /** (Optional) Hour at which you receive periodic report notifications. */
900
+ sending_hour?: number | null | undefined;
901
+ /** (Optional) On which day you receive periodic report notifications (1-7 weekly, 1-28 monthly). */
902
+ sending_day?: number | null | undefined;
903
+ }
904
+ export interface UpdateProjectSettingsRequest {
905
+ /** The region you want to target */
906
+ region?: UpdateProjectSettingsRequestRegion | (string & {}) | undefined;
907
+ /** ID of the project. (UUID format) */
908
+ project_id: string;
909
+ /** Periodic report update details - all fields are optional. */
910
+ periodic_report?: UpdateProjectSettingsRequestUpdatePeriodicReport | undefined;
911
+ }
912
+ export type UpdateWebhookRequestRegion = "fr-par";
913
+ /** List of event types to update. */
914
+ export type UpdateWebhookRequestEventTypesList = Array<WebhookEventType | (string & {})>;
915
+ export interface UpdateWebhookRequest {
916
+ /** The region you want to target */
917
+ region?: UpdateWebhookRequestRegion | (string & {}) | undefined;
918
+ /** ID of the Webhook to update. (UUID format) */
919
+ webhook_id: string;
920
+ /** Name of the Webhook to update. */
921
+ name?: string | null | undefined;
922
+ /** List of event types to update. */
923
+ event_types?: UpdateWebhookRequestEventTypesList | undefined;
924
+ /** Scaleway SNS ARN topic to update. */
925
+ sns_arn?: string | null | undefined;
926
+ }
927
+ export type BulkCreateBlocklistsError = ScalewayOpError;
928
+ /** Bulk create blocklists Create multiple blocklists in a specific Project or Organization using the `region` parameter. */
929
+ export const bulkCreateBlocklists: API.OperationMethod<
930
+ BulkCreateBlocklistsRequest,
931
+ BulkCreateBlocklistsResponse,
932
+ BulkCreateBlocklistsError,
933
+ ScalewayOpContext
934
+ > = /*@__PURE__*/ API.make(() => ({
935
+ input: __S(0, __c0, 0) as any as S.Schema<BulkCreateBlocklistsRequest>,
936
+ output: __S(1, __c0, 1) as any as S.Schema<BulkCreateBlocklistsResponse>,
937
+ errors: [],
938
+ serviceErrors: ScalewayServiceErrors,
939
+ protocol: ScalewayProtocol,
940
+ retry: Retry.Retry,
941
+ telemetry: TELEMETRY,
942
+ span: "BulkCreateBlocklists",
943
+ }));
944
+
945
+ export type CancelEmailError = ScalewayOpError;
946
+ /** Cancel an email You can cancel the sending of an email if it has not been sent yet. You must specify the `region` and the `email_id` of the email you want to cancel. */
947
+ export const cancelEmail: API.OperationMethod<
948
+ CancelEmailRequest,
949
+ Email,
950
+ CancelEmailError,
951
+ ScalewayOpContext
952
+ > = /*@__PURE__*/ API.make(() => ({
953
+ input: __S(24, __c3, 0) as any as S.Schema<CancelEmailRequest>,
954
+ output: __S(34, __c4, 2) as any as S.Schema<Email>,
955
+ errors: [],
956
+ serviceErrors: ScalewayServiceErrors,
957
+ protocol: ScalewayProtocol,
958
+ retry: Retry.Retry,
959
+ telemetry: TELEMETRY,
960
+ span: "CancelEmail",
961
+ }));
962
+
963
+ export type CheckDomainError = ScalewayOpError;
964
+ /** Domain DNS check Perform an immediate DNS check of a domain using the `region` and `domain_id` parameters. */
965
+ export const checkDomain: API.OperationMethod<
966
+ CheckDomainRequest,
967
+ Domain,
968
+ CheckDomainError,
969
+ ScalewayOpContext
970
+ > = /*@__PURE__*/ API.make(() => ({
971
+ input: __S(144, __c18, 0) as any as S.Schema<CheckDomainRequest>,
972
+ output: __S(156, __c19, 4) as any as S.Schema<Domain>,
973
+ errors: [],
974
+ serviceErrors: ScalewayServiceErrors,
975
+ protocol: ScalewayProtocol,
976
+ retry: Retry.Retry,
977
+ telemetry: TELEMETRY,
978
+ span: "CheckDomain",
979
+ }));
980
+
981
+ export type CreateDomainError = ScalewayOpError;
982
+ /** Register a domain in a project You must specify the `region`, `project_id` and `domain_name` to register a domain in a specific Project. */
983
+ export const createDomain: API.OperationMethod<
984
+ CreateDomainRequest,
985
+ Domain,
986
+ CreateDomainError,
987
+ ScalewayOpContext
988
+ > = /*@__PURE__*/ API.make(() => ({
989
+ input: __S(224, __c28, 0) as any as S.Schema<CreateDomainRequest>,
990
+ output: __S(156, __c19, 4) as any as S.Schema<Domain>,
991
+ errors: [],
992
+ serviceErrors: ScalewayServiceErrors,
993
+ protocol: ScalewayProtocol,
994
+ retry: Retry.Retry,
995
+ telemetry: TELEMETRY,
996
+ span: "CreateDomain",
997
+ }));
998
+
999
+ export type CreateEmailError = ScalewayOpError;
1000
+ /** Send an email You must specify the `region`, the sender and the recipient's information and the `project_id` to send an email from a checked domain. */
1001
+ export const createEmail: API.OperationMethod<
1002
+ CreateEmailRequest,
1003
+ CreateEmailResponse,
1004
+ CreateEmailError,
1005
+ ScalewayOpContext
1006
+ > = /*@__PURE__*/ API.make(() => ({
1007
+ input: __S(238, __c29, 6) as any as S.Schema<CreateEmailRequest>,
1008
+ output: __S(239, __c29, 7) as any as S.Schema<CreateEmailResponse>,
1009
+ errors: [],
1010
+ serviceErrors: ScalewayServiceErrors,
1011
+ protocol: ScalewayProtocol,
1012
+ retry: Retry.Retry,
1013
+ telemetry: TELEMETRY,
1014
+ span: "CreateEmail",
1015
+ }));
1016
+
1017
+ export type CreateWebhookError = ScalewayOpError;
1018
+ /** Create a Webhook Create a new Webhook triggered by a list of event types and pushed to a Scaleway SNS ARN. */
1019
+ export const createWebhook: API.OperationMethod<
1020
+ CreateWebhookRequest,
1021
+ Webhook,
1022
+ CreateWebhookError,
1023
+ ScalewayOpContext
1024
+ > = /*@__PURE__*/ API.make(() => ({
1025
+ input: __S(248, __c31, 0) as any as S.Schema<CreateWebhookRequest>,
1026
+ output: __S(256, __c32, 0) as any as S.Schema<Webhook>,
1027
+ errors: [],
1028
+ serviceErrors: ScalewayServiceErrors,
1029
+ protocol: ScalewayProtocol,
1030
+ retry: Retry.Retry,
1031
+ telemetry: TELEMETRY,
1032
+ span: "CreateWebhook",
1033
+ }));
1034
+
1035
+ export type DeleteBlocklistError = ScalewayOpError;
1036
+ /** Delete a blocklist You must specify the blocklist you want to delete by the `region` and `blocklist_id`. */
1037
+ export const deleteBlocklist: API.OperationMethod<
1038
+ DeleteBlocklistRequest,
1039
+ DeleteBlocklistResponse,
1040
+ DeleteBlocklistError,
1041
+ ScalewayOpContext
1042
+ > = /*@__PURE__*/ API.make(() => ({
1043
+ input: __S(264, __c33, 0) as any as S.Schema<DeleteBlocklistRequest>,
1044
+ output: __S(272, __c34, 0) as any as S.Schema<DeleteBlocklistResponse>,
1045
+ errors: [],
1046
+ serviceErrors: ScalewayServiceErrors,
1047
+ protocol: ScalewayProtocol,
1048
+ retry: Retry.Retry,
1049
+ telemetry: TELEMETRY,
1050
+ span: "DeleteBlocklist",
1051
+ }));
1052
+
1053
+ export type DeleteWebhookError = ScalewayOpError;
1054
+ /** Delete a Webhook You must specify the Webhook you want to delete by the `region` and `webhook_id`. Deleting a Webhook is permanent and cannot be undone. */
1055
+ export const deleteWebhook: API.OperationMethod<
1056
+ DeleteWebhookRequest,
1057
+ DeleteWebhookResponse,
1058
+ DeleteWebhookError,
1059
+ ScalewayOpContext
1060
+ > = /*@__PURE__*/ API.make(() => ({
1061
+ input: __S(280, __c35, 0) as any as S.Schema<DeleteWebhookRequest>,
1062
+ output: __S(272, __c34, 0) as any as S.Schema<DeleteWebhookResponse>,
1063
+ errors: [],
1064
+ serviceErrors: ScalewayServiceErrors,
1065
+ protocol: ScalewayProtocol,
1066
+ retry: Retry.Retry,
1067
+ telemetry: TELEMETRY,
1068
+ span: "DeleteWebhook",
1069
+ }));
1070
+
1071
+ export type GetDomainError = ScalewayOpError;
1072
+ /** Get information about a domain Retrieve information about a specific domain using the `region` and `domain_id` parameters. Monitor your domain's reputation and improve **average** and **bad** reputation statuses, using your domain's **Email activity** tab on the [Scaleway console](https://console.scaleway.com/transactional-email/domains) to get a more detailed report. Check out our [dedicated documentation](https://www.scaleway.com/en/docs/managed-services/transactional-email/reference-content/understanding-tem-reputation-score/) to improve your domain's reputation. */
1073
+ export const getDomain: API.OperationMethod<
1074
+ GetDomainRequest,
1075
+ Domain,
1076
+ GetDomainError,
1077
+ ScalewayOpContext
1078
+ > = /*@__PURE__*/ API.make(() => ({
1079
+ input: __S(288, __c36, 0) as any as S.Schema<GetDomainRequest>,
1080
+ output: __S(156, __c19, 4) as any as S.Schema<Domain>,
1081
+ errors: [],
1082
+ serviceErrors: ScalewayServiceErrors,
1083
+ protocol: ScalewayProtocol,
1084
+ retry: Retry.Retry,
1085
+ telemetry: TELEMETRY,
1086
+ span: "GetDomain",
1087
+ }));
1088
+
1089
+ export type GetDomainLastStatusError = ScalewayOpError;
1090
+ /** Display SPF, DKIM, DMARC and MX records status and potential errors Display SPF, DKIM, DMARC and MX records status and potential errors, including the found records to make debugging easier. */
1091
+ export const getDomainLastStatus: API.OperationMethod<
1092
+ GetDomainLastStatusRequest,
1093
+ DomainLastStatus,
1094
+ GetDomainLastStatusError,
1095
+ ScalewayOpContext
1096
+ > = /*@__PURE__*/ API.make(() => ({
1097
+ input: __S(296, __c37, 0) as any as S.Schema<GetDomainLastStatusRequest>,
1098
+ output: __S(299, __c37, 3) as any as S.Schema<DomainLastStatus>,
1099
+ errors: [],
1100
+ serviceErrors: ScalewayServiceErrors,
1101
+ protocol: ScalewayProtocol,
1102
+ retry: Retry.Retry,
1103
+ telemetry: TELEMETRY,
1104
+ span: "GetDomainLastStatus",
1105
+ }));
1106
+
1107
+ export type GetEmailError = ScalewayOpError;
1108
+ /** Get an email Retrieve information about a specific email using the `email_id` and `region` parameters. */
1109
+ export const getEmail: API.OperationMethod<
1110
+ GetEmailRequest,
1111
+ Email,
1112
+ GetEmailError,
1113
+ ScalewayOpContext
1114
+ > = /*@__PURE__*/ API.make(() => ({
1115
+ input: __S(48, __c6, 0) as any as S.Schema<GetEmailRequest>,
1116
+ output: __S(34, __c4, 2) as any as S.Schema<Email>,
1117
+ errors: [],
1118
+ serviceErrors: ScalewayServiceErrors,
1119
+ protocol: ScalewayProtocol,
1120
+ retry: Retry.Retry,
1121
+ telemetry: TELEMETRY,
1122
+ span: "GetEmail",
1123
+ }));
1124
+
1125
+ export type GetProjectConsumptionError = ScalewayOpError;
1126
+ /** Get project resource consumption. */
1127
+ export const getProjectConsumption: API.OperationMethod<
1128
+ GetProjectConsumptionRequest,
1129
+ ProjectConsumption,
1130
+ GetProjectConsumptionError,
1131
+ ScalewayOpContext
1132
+ > = /*@__PURE__*/ API.make(() => ({
1133
+ input: __S(56, __c7, 0) as any as S.Schema<GetProjectConsumptionRequest>,
1134
+ output: __S(57, __c7, 1) as any as S.Schema<ProjectConsumption>,
1135
+ errors: [],
1136
+ serviceErrors: ScalewayServiceErrors,
1137
+ protocol: ScalewayProtocol,
1138
+ retry: Retry.Retry,
1139
+ telemetry: TELEMETRY,
1140
+ span: "GetProjectConsumption",
1141
+ }));
1142
+
1143
+ export type GetProjectSettingsError = ScalewayOpError;
1144
+ /** List project settings Retrieve the project settings including periodic reports. */
1145
+ export const getProjectSettings: API.OperationMethod<
1146
+ GetProjectSettingsRequest,
1147
+ ProjectSettings,
1148
+ GetProjectSettingsError,
1149
+ ScalewayOpContext
1150
+ > = /*@__PURE__*/ API.make(() => ({
1151
+ input: __S(64, __c8, 0) as any as S.Schema<GetProjectSettingsRequest>,
1152
+ output: __S(73, __c9, 1) as any as S.Schema<ProjectSettings>,
1153
+ errors: [],
1154
+ serviceErrors: ScalewayServiceErrors,
1155
+ protocol: ScalewayProtocol,
1156
+ retry: Retry.Retry,
1157
+ telemetry: TELEMETRY,
1158
+ span: "GetProjectSettings",
1159
+ }));
1160
+
1161
+ export type GetStatisticsError = ScalewayOpError;
1162
+ /** Email statuses Get information on your emails' statuses. */
1163
+ export const getStatistics: API.OperationMethod<
1164
+ GetStatisticsRequest,
1165
+ Statistics,
1166
+ GetStatisticsError,
1167
+ ScalewayOpContext
1168
+ > = /*@__PURE__*/ API.make(() => ({
1169
+ input: __S(80, __c10, 0) as any as S.Schema<GetStatisticsRequest>,
1170
+ output: __S(81, __c10, 1) as any as S.Schema<Statistics>,
1171
+ errors: [],
1172
+ serviceErrors: ScalewayServiceErrors,
1173
+ protocol: ScalewayProtocol,
1174
+ retry: Retry.Retry,
1175
+ telemetry: TELEMETRY,
1176
+ span: "GetStatistics",
1177
+ }));
1178
+
1179
+ export type GetWebhookError = ScalewayOpError;
1180
+ /** Get information about a Webhook Retrieve information about a specific Webhook using the `webhook_id` and `region` parameters. */
1181
+ export const getWebhook: API.OperationMethod<
1182
+ GetWebhookRequest,
1183
+ Webhook,
1184
+ GetWebhookError,
1185
+ ScalewayOpContext
1186
+ > = /*@__PURE__*/ API.make(() => ({
1187
+ input: __S(88, __c11, 0) as any as S.Schema<GetWebhookRequest>,
1188
+ output: __S(256, __c32, 0) as any as S.Schema<Webhook>,
1189
+ errors: [],
1190
+ serviceErrors: ScalewayServiceErrors,
1191
+ protocol: ScalewayProtocol,
1192
+ retry: Retry.Retry,
1193
+ telemetry: TELEMETRY,
1194
+ span: "GetWebhook",
1195
+ }));
1196
+
1197
+ export type ListBlocklistsError = ScalewayOpError;
1198
+ /** List blocklists Retrieve the list of blocklists. */
1199
+ export const listBlocklists: API.PaginatedOperationMethod<
1200
+ ListBlocklistsRequest,
1201
+ ListBlocklistsResponse,
1202
+ ListBlocklistsError,
1203
+ ScalewayOpContext,
1204
+ Blocklist
1205
+ > = /*@__PURE__*/ API.makePaginated(
1206
+ () => ({
1207
+ input: __S(96, __c12, 0) as any as S.Schema<ListBlocklistsRequest>,
1208
+ output: __S(97, __c12, 1) as any as S.Schema<ListBlocklistsResponse>,
1209
+ errors: [],
1210
+ serviceErrors: ScalewayServiceErrors,
1211
+ protocol: ScalewayProtocol,
1212
+ retry: Retry.Retry,
1213
+ telemetry: TELEMETRY,
1214
+ span: "ListBlocklists",
1215
+ pagination: {
1216
+ mode: "page",
1217
+ inputToken: "page",
1218
+ outputToken: "total_count",
1219
+ items: "blocklists",
1220
+ pageSize: "page_size",
1221
+ } as const,
1222
+ }),
1223
+ paginateByTotalCount,
1224
+ ) as any;
1225
+
1226
+ export type ListDomainsError = ScalewayOpError;
1227
+ /** List domains Retrieve domains in a specific Project or in a specific Organization using the `region` parameter. */
1228
+ export const listDomains: API.PaginatedOperationMethod<
1229
+ ListDomainsRequest,
1230
+ ListDomainsResponse,
1231
+ ListDomainsError,
1232
+ ScalewayOpContext,
1233
+ Domain
1234
+ > = /*@__PURE__*/ API.makePaginated(
1235
+ () => ({
1236
+ input: __S(104, __c13, 0) as any as S.Schema<ListDomainsRequest>,
1237
+ output: __S(106, __c13, 2) as any as S.Schema<ListDomainsResponse>,
1238
+ errors: [],
1239
+ serviceErrors: ScalewayServiceErrors,
1240
+ protocol: ScalewayProtocol,
1241
+ retry: Retry.Retry,
1242
+ telemetry: TELEMETRY,
1243
+ span: "ListDomains",
1244
+ pagination: {
1245
+ mode: "page",
1246
+ inputToken: "page",
1247
+ outputToken: "total_count",
1248
+ items: "domains",
1249
+ pageSize: "page_size",
1250
+ } as const,
1251
+ }),
1252
+ paginateByTotalCount,
1253
+ ) as any;
1254
+
1255
+ export type ListEmailsError = ScalewayOpError;
1256
+ /** List emails Retrieve the list of emails sent from a specific domain or for a specific Project or Organization. You must specify the `region`. */
1257
+ export const listEmails: API.PaginatedOperationMethod<
1258
+ ListEmailsRequest,
1259
+ ListEmailsResponse,
1260
+ ListEmailsError,
1261
+ ScalewayOpContext,
1262
+ Email
1263
+ > = /*@__PURE__*/ API.makePaginated(
1264
+ () => ({
1265
+ input: __S(112, __c14, 0) as any as S.Schema<ListEmailsRequest>,
1266
+ output: __S(113, __c14, 1) as any as S.Schema<ListEmailsResponse>,
1267
+ errors: [],
1268
+ serviceErrors: ScalewayServiceErrors,
1269
+ protocol: ScalewayProtocol,
1270
+ retry: Retry.Retry,
1271
+ telemetry: TELEMETRY,
1272
+ span: "ListEmails",
1273
+ pagination: {
1274
+ mode: "page",
1275
+ inputToken: "page",
1276
+ outputToken: "total_count",
1277
+ items: "emails",
1278
+ pageSize: "page_size",
1279
+ } as const,
1280
+ }),
1281
+ paginateByTotalCount,
1282
+ ) as any;
1283
+
1284
+ export type ListOffersError = ScalewayOpError;
1285
+ /** List the available offers. Retrieve the list of the available and free-of-charge offers you can subscribe to. */
1286
+ export const listOffers: API.OperationMethod<
1287
+ ListOffersRequest,
1288
+ ListOffersResponse,
1289
+ ListOffersError,
1290
+ ScalewayOpContext
1291
+ > = /*@__PURE__*/ API.make(() => ({
1292
+ input: __S(120, __c15, 0) as any as S.Schema<ListOffersRequest>,
1293
+ output: __S(123, __c15, 3) as any as S.Schema<ListOffersResponse>,
1294
+ errors: [],
1295
+ serviceErrors: ScalewayServiceErrors,
1296
+ protocol: ScalewayProtocol,
1297
+ retry: Retry.Retry,
1298
+ telemetry: TELEMETRY,
1299
+ span: "ListOffers",
1300
+ }));
1301
+
1302
+ export type ListOfferSubscriptionsError = ScalewayOpError;
1303
+ /** Get information about subscribed offers Retrieve information about the offers you are subscribed to using the `project_id` and `region` parameters. */
1304
+ export const listOfferSubscriptions: API.PaginatedOperationMethod<
1305
+ ListOfferSubscriptionsRequest,
1306
+ ListOfferSubscriptionsResponse,
1307
+ ListOfferSubscriptionsError,
1308
+ ScalewayOpContext,
1309
+ OfferSubscription
1310
+ > = /*@__PURE__*/ API.makePaginated(
1311
+ () => ({
1312
+ input: __S(128, __c16, 0) as any as S.Schema<ListOfferSubscriptionsRequest>,
1313
+ output: __S(130, __c16, 2) as any as S.Schema<ListOfferSubscriptionsResponse>,
1314
+ errors: [],
1315
+ serviceErrors: ScalewayServiceErrors,
1316
+ protocol: ScalewayProtocol,
1317
+ retry: Retry.Retry,
1318
+ telemetry: TELEMETRY,
1319
+ span: "ListOfferSubscriptions",
1320
+ pagination: {
1321
+ mode: "page",
1322
+ inputToken: "page",
1323
+ outputToken: "total_count",
1324
+ items: "offer_subscriptions",
1325
+ pageSize: "page_size",
1326
+ } as const,
1327
+ }),
1328
+ paginateByTotalCount,
1329
+ ) as any;
1330
+
1331
+ export type ListPoolsError = ScalewayOpError;
1332
+ /** Get information about a sending pool. Retrieve information about a sending pool, including its creation status and configuration parameters. */
1333
+ export const listPools: API.PaginatedOperationMethod<
1334
+ ListPoolsRequest,
1335
+ ListPoolsResponse,
1336
+ ListPoolsError,
1337
+ ScalewayOpContext,
1338
+ Pool
1339
+ > = /*@__PURE__*/ API.makePaginated(
1340
+ () => ({
1341
+ input: __S(160, __c20, 0) as any as S.Schema<ListPoolsRequest>,
1342
+ output: __S(163, __c20, 3) as any as S.Schema<ListPoolsResponse>,
1343
+ errors: [],
1344
+ serviceErrors: ScalewayServiceErrors,
1345
+ protocol: ScalewayProtocol,
1346
+ retry: Retry.Retry,
1347
+ telemetry: TELEMETRY,
1348
+ span: "ListPools",
1349
+ pagination: {
1350
+ mode: "page",
1351
+ inputToken: "page",
1352
+ outputToken: "total_count",
1353
+ items: "pools",
1354
+ pageSize: "page_size",
1355
+ } as const,
1356
+ }),
1357
+ paginateByTotalCount,
1358
+ ) as any;
1359
+
1360
+ export type ListWebhookEventsError = ScalewayOpError;
1361
+ /** List Webhook triggered events Retrieve the list of Webhook events triggered from a specific Webhook or for a specific Project or Organization. You must specify the `region`. */
1362
+ export const listWebhookEvents: API.PaginatedOperationMethod<
1363
+ ListWebhookEventsRequest,
1364
+ ListWebhookEventsResponse,
1365
+ ListWebhookEventsError,
1366
+ ScalewayOpContext,
1367
+ WebhookEvent
1368
+ > = /*@__PURE__*/ API.makePaginated(
1369
+ () => ({
1370
+ input: __S(168, __c21, 0) as any as S.Schema<ListWebhookEventsRequest>,
1371
+ output: __S(171, __c21, 3) as any as S.Schema<ListWebhookEventsResponse>,
1372
+ errors: [],
1373
+ serviceErrors: ScalewayServiceErrors,
1374
+ protocol: ScalewayProtocol,
1375
+ retry: Retry.Retry,
1376
+ telemetry: TELEMETRY,
1377
+ span: "ListWebhookEvents",
1378
+ pagination: {
1379
+ mode: "page",
1380
+ inputToken: "page",
1381
+ outputToken: "total_count",
1382
+ items: "webhook_events",
1383
+ pageSize: "page_size",
1384
+ } as const,
1385
+ }),
1386
+ paginateByTotalCount,
1387
+ ) as any;
1388
+
1389
+ export type ListWebhooksError = ScalewayOpError;
1390
+ /** List Webhooks Retrieve Webhooks in a specific Project or in a specific Organization using the `region` parameter. */
1391
+ export const listWebhooks: API.PaginatedOperationMethod<
1392
+ ListWebhooksRequest,
1393
+ ListWebhooksResponse,
1394
+ ListWebhooksError,
1395
+ ScalewayOpContext,
1396
+ Webhook
1397
+ > = /*@__PURE__*/ API.makePaginated(
1398
+ () => ({
1399
+ input: __S(176, __c22, 0) as any as S.Schema<ListWebhooksRequest>,
1400
+ output: __S(178, __c22, 2) as any as S.Schema<ListWebhooksResponse>,
1401
+ errors: [],
1402
+ serviceErrors: ScalewayServiceErrors,
1403
+ protocol: ScalewayProtocol,
1404
+ retry: Retry.Retry,
1405
+ telemetry: TELEMETRY,
1406
+ span: "ListWebhooks",
1407
+ pagination: {
1408
+ mode: "page",
1409
+ inputToken: "page",
1410
+ outputToken: "total_count",
1411
+ items: "webhooks",
1412
+ pageSize: "page_size",
1413
+ } as const,
1414
+ }),
1415
+ paginateByTotalCount,
1416
+ ) as any;
1417
+
1418
+ export type RevokeDomainError = ScalewayOpError;
1419
+ /** Delete a domain You must specify the domain you want to delete by the `region` and `domain_id`. Deleting a domain is permanent and cannot be undone. */
1420
+ export const revokeDomain: API.OperationMethod<
1421
+ RevokeDomainRequest,
1422
+ Domain,
1423
+ RevokeDomainError,
1424
+ ScalewayOpContext
1425
+ > = /*@__PURE__*/ API.make(() => ({
1426
+ input: __S(184, __c23, 0) as any as S.Schema<RevokeDomainRequest>,
1427
+ output: __S(156, __c19, 4) as any as S.Schema<Domain>,
1428
+ errors: [],
1429
+ serviceErrors: ScalewayServiceErrors,
1430
+ protocol: ScalewayProtocol,
1431
+ retry: Retry.Retry,
1432
+ telemetry: TELEMETRY,
1433
+ span: "RevokeDomain",
1434
+ }));
1435
+
1436
+ export type UpdateDomainError = ScalewayOpError;
1437
+ /** Update a domain Update a domain auto-configuration. */
1438
+ export const updateDomain: API.OperationMethod<
1439
+ UpdateDomainRequest,
1440
+ Domain,
1441
+ UpdateDomainError,
1442
+ ScalewayOpContext
1443
+ > = /*@__PURE__*/ API.make(() => ({
1444
+ input: __S(192, __c24, 0) as any as S.Schema<UpdateDomainRequest>,
1445
+ output: __S(156, __c19, 4) as any as S.Schema<Domain>,
1446
+ errors: [],
1447
+ serviceErrors: ScalewayServiceErrors,
1448
+ protocol: ScalewayProtocol,
1449
+ retry: Retry.Retry,
1450
+ telemetry: TELEMETRY,
1451
+ span: "UpdateDomain",
1452
+ }));
1453
+
1454
+ export type UpdateOfferSubscriptionError = ScalewayOpError;
1455
+ /** Update a subscribed offer */
1456
+ export const updateOfferSubscription: API.OperationMethod<
1457
+ UpdateOfferSubscriptionRequest,
1458
+ OfferSubscription,
1459
+ UpdateOfferSubscriptionError,
1460
+ ScalewayOpContext
1461
+ > = /*@__PURE__*/ API.make(() => ({
1462
+ input: __S(200, __c25, 0) as any as S.Schema<UpdateOfferSubscriptionRequest>,
1463
+ output: __S(136, __c17, 0) as any as S.Schema<OfferSubscription>,
1464
+ errors: [],
1465
+ serviceErrors: ScalewayServiceErrors,
1466
+ protocol: ScalewayProtocol,
1467
+ retry: Retry.Retry,
1468
+ telemetry: TELEMETRY,
1469
+ span: "UpdateOfferSubscription",
1470
+ }));
1471
+
1472
+ export type UpdateProjectSettingsError = ScalewayOpError;
1473
+ /** Update project settings Update the project settings including periodic reports. */
1474
+ export const updateProjectSettings: API.OperationMethod<
1475
+ UpdateProjectSettingsRequest,
1476
+ ProjectSettings,
1477
+ UpdateProjectSettingsError,
1478
+ ScalewayOpContext
1479
+ > = /*@__PURE__*/ API.make(() => ({
1480
+ input: __S(209, __c26, 1) as any as S.Schema<UpdateProjectSettingsRequest>,
1481
+ output: __S(73, __c9, 1) as any as S.Schema<ProjectSettings>,
1482
+ errors: [],
1483
+ serviceErrors: ScalewayServiceErrors,
1484
+ protocol: ScalewayProtocol,
1485
+ retry: Retry.Retry,
1486
+ telemetry: TELEMETRY,
1487
+ span: "UpdateProjectSettings",
1488
+ }));
1489
+
1490
+ export type UpdateWebhookError = ScalewayOpError;
1491
+ /** Update a Webhook Update a Webhook events type, SNS ARN or name. */
1492
+ export const updateWebhook: API.OperationMethod<
1493
+ UpdateWebhookRequest,
1494
+ Webhook,
1495
+ UpdateWebhookError,
1496
+ ScalewayOpContext
1497
+ > = /*@__PURE__*/ API.make(() => ({
1498
+ input: __S(216, __c27, 0) as any as S.Schema<UpdateWebhookRequest>,
1499
+ output: __S(256, __c32, 0) as any as S.Schema<Webhook>,
1500
+ errors: [],
1501
+ serviceErrors: ScalewayServiceErrors,
1502
+ protocol: ScalewayProtocol,
1503
+ retry: Retry.Retry,
1504
+ telemetry: TELEMETRY,
1505
+ span: "UpdateWebhook",
1506
+ }));
1507
+
1508
+ // Schema builders: each runs one schema initializer, on that schema's first use.
1509
+ function __c0(j: number): any {
1510
+ switch (j) {
1511
+ case 0:
1512
+ return S.suspend(() =>
1513
+ S.Struct({
1514
+ region: S.optional(S.String.pipe(T.Label())),
1515
+ domain_id: S.optional(S.String),
1516
+ emails: S.optional(__S(16, __c2, 0)),
1517
+ type: S.optional(S.String),
1518
+ reason: S.optional(S.NullOr(S.String)),
1519
+ }).pipe(
1520
+ T.Http({
1521
+ method: "POST",
1522
+ uri: "/transactional-email/v1alpha1/regions/{region}/blocklists",
1523
+ code: 200,
1524
+ baseUrl: "https://api.scaleway.com",
1525
+ }),
1526
+ ),
1527
+ ).annotate({ identifier: "BulkCreateBlocklistsRequest" });
1528
+ case 1:
1529
+ return S.suspend(() =>
1530
+ S.Struct({
1531
+ blocklists: S.optional(__S(9, __c1, 1)),
1532
+ }),
1533
+ ).annotate({ identifier: "BulkCreateBlocklistsResponse" });
1534
+ }
1535
+ }
1536
+ function __c1(j: number): any {
1537
+ switch (j) {
1538
+ case 0:
1539
+ return S.suspend(() =>
1540
+ S.Struct({
1541
+ id: S.optional(S.String),
1542
+ domain_id: S.optional(S.String),
1543
+ created_at: S.optional(S.NullOr(S.String)),
1544
+ updated_at: S.optional(S.NullOr(S.String)),
1545
+ ends_at: S.optional(S.NullOr(S.String)),
1546
+ email: S.optional(S.String),
1547
+ type: S.optional(S.String),
1548
+ reason: S.optional(S.String),
1549
+ custom: S.optional(S.Boolean),
1550
+ }),
1551
+ ).annotate({ identifier: "Blocklist" });
1552
+ case 1:
1553
+ return S.Array(__S(8, __c1, 0));
1554
+ }
1555
+ }
1556
+ function __c2(j: number): any {
1557
+ switch (j) {
1558
+ case 0:
1559
+ return S.Array(S.String);
1560
+ }
1561
+ }
1562
+ function __c3(j: number): any {
1563
+ switch (j) {
1564
+ case 0:
1565
+ return S.suspend(() =>
1566
+ S.Struct({
1567
+ region: S.optional(S.String.pipe(T.Label())),
1568
+ email_id: S.String.pipe(T.Label()),
1569
+ }).pipe(
1570
+ T.Http({
1571
+ method: "POST",
1572
+ uri: "/transactional-email/v1alpha1/regions/{region}/emails/{email_id}/cancel",
1573
+ code: 200,
1574
+ baseUrl: "https://api.scaleway.com",
1575
+ }),
1576
+ ),
1577
+ ).annotate({ identifier: "CancelEmailRequest" });
1578
+ }
1579
+ }
1580
+ function __c4(j: number): any {
1581
+ switch (j) {
1582
+ case 0:
1583
+ return S.suspend(() =>
1584
+ S.Struct({
1585
+ rank: S.optional(S.Number),
1586
+ tried_at: S.optional(S.NullOr(S.String)),
1587
+ code: S.optional(S.Number),
1588
+ message: S.optional(S.String),
1589
+ }),
1590
+ ).annotate({ identifier: "EmailTry" });
1591
+ case 1:
1592
+ return S.Array(__S(32, __c4, 0));
1593
+ case 2:
1594
+ return S.suspend(() =>
1595
+ S.Struct({
1596
+ id: S.optional(S.String),
1597
+ message_id: S.optional(S.String),
1598
+ project_id: S.optional(S.String),
1599
+ mail_from: S.optional(S.String),
1600
+ rcpt_to: S.optional(S.String),
1601
+ mail_rcpt: S.optional(S.String),
1602
+ rcpt_type: S.optional(S.String),
1603
+ subject: S.optional(S.String),
1604
+ created_at: S.optional(S.NullOr(S.String)),
1605
+ updated_at: S.optional(S.NullOr(S.String)),
1606
+ status: S.optional(S.String),
1607
+ status_details: S.optional(S.NullOr(S.String)),
1608
+ try_count: S.optional(S.Number),
1609
+ last_tries: S.optional(__S(33, __c4, 1)),
1610
+ flags: S.optional(__S(40, __c5, 0)),
1611
+ }),
1612
+ ).annotate({ identifier: "Email" });
1613
+ }
1614
+ }
1615
+ function __c5(j: number): any {
1616
+ switch (j) {
1617
+ case 0:
1618
+ return S.Array(S.String);
1619
+ }
1620
+ }
1621
+ function __c6(j: number): any {
1622
+ switch (j) {
1623
+ case 0:
1624
+ return S.suspend(() =>
1625
+ S.Struct({
1626
+ region: S.optional(S.String.pipe(T.Label())),
1627
+ email_id: S.String.pipe(T.Label()),
1628
+ }).pipe(
1629
+ T.Http({
1630
+ method: "GET",
1631
+ uri: "/transactional-email/v1alpha1/regions/{region}/emails/{email_id}",
1632
+ code: 200,
1633
+ baseUrl: "https://api.scaleway.com",
1634
+ }),
1635
+ ),
1636
+ ).annotate({ identifier: "GetEmailRequest" });
1637
+ }
1638
+ }
1639
+ function __c7(j: number): any {
1640
+ switch (j) {
1641
+ case 0:
1642
+ return S.suspend(() =>
1643
+ S.Struct({
1644
+ region: S.optional(S.String.pipe(T.Label())),
1645
+ project_id: S.String.pipe(T.Query()),
1646
+ }).pipe(
1647
+ T.Http({
1648
+ method: "GET",
1649
+ uri: "/transactional-email/v1alpha1/regions/{region}/project-consumption",
1650
+ code: 200,
1651
+ baseUrl: "https://api.scaleway.com",
1652
+ }),
1653
+ ),
1654
+ ).annotate({ identifier: "GetProjectConsumptionRequest" });
1655
+ case 1:
1656
+ return S.suspend(() =>
1657
+ S.Struct({
1658
+ project_id: S.optional(S.String),
1659
+ domains_count: S.optional(S.Number),
1660
+ dedicated_ips_count: S.optional(S.Number),
1661
+ monthly_emails_count: S.optional(S.Number),
1662
+ webhooks_count: S.optional(S.Number),
1663
+ custom_blocklists_count: S.optional(S.Number),
1664
+ }),
1665
+ ).annotate({ identifier: "ProjectConsumption" });
1666
+ }
1667
+ }
1668
+ function __c8(j: number): any {
1669
+ switch (j) {
1670
+ case 0:
1671
+ return S.suspend(() =>
1672
+ S.Struct({
1673
+ region: S.optional(S.String.pipe(T.Label())),
1674
+ project_id: S.String.pipe(T.Label()),
1675
+ }).pipe(
1676
+ T.Http({
1677
+ method: "GET",
1678
+ uri: "/transactional-email/v1alpha1/regions/{region}/project/{project_id}/settings",
1679
+ code: 200,
1680
+ baseUrl: "https://api.scaleway.com",
1681
+ }),
1682
+ ),
1683
+ ).annotate({ identifier: "GetProjectSettingsRequest" });
1684
+ }
1685
+ }
1686
+ function __c9(j: number): any {
1687
+ switch (j) {
1688
+ case 0:
1689
+ return S.suspend(() =>
1690
+ S.Struct({
1691
+ enabled: S.optional(S.Boolean),
1692
+ frequency: S.optional(S.String),
1693
+ sending_hour: S.optional(S.Number),
1694
+ sending_day: S.optional(S.Number),
1695
+ }),
1696
+ ).annotate({ identifier: "ProjectSettingsPeriodicReport" });
1697
+ case 1:
1698
+ return S.suspend(() =>
1699
+ S.Struct({
1700
+ periodic_report: S.optional(__S(72, __c9, 0)),
1701
+ }),
1702
+ ).annotate({ identifier: "ProjectSettings" });
1703
+ }
1704
+ }
1705
+ function __c10(j: number): any {
1706
+ switch (j) {
1707
+ case 0:
1708
+ return S.suspend(() =>
1709
+ S.Struct({
1710
+ region: S.optional(S.String.pipe(T.Label())),
1711
+ project_id: S.optional(S.String.pipe(T.Query())),
1712
+ domain_id: S.optional(S.String.pipe(T.Query())),
1713
+ since: S.optional(S.String.pipe(T.Query())),
1714
+ until: S.optional(S.String.pipe(T.Query())),
1715
+ mail_from: S.optional(S.String.pipe(T.Query())),
1716
+ }).pipe(
1717
+ T.Http({
1718
+ method: "GET",
1719
+ uri: "/transactional-email/v1alpha1/regions/{region}/statistics",
1720
+ code: 200,
1721
+ baseUrl: "https://api.scaleway.com",
1722
+ }),
1723
+ ),
1724
+ ).annotate({ identifier: "GetStatisticsRequest" });
1725
+ case 1:
1726
+ return S.suspend(() =>
1727
+ S.Struct({
1728
+ total_count: S.optional(S.Number),
1729
+ new_count: S.optional(S.Number),
1730
+ sending_count: S.optional(S.Number),
1731
+ sent_count: S.optional(S.Number),
1732
+ failed_count: S.optional(S.Number),
1733
+ canceled_count: S.optional(S.Number),
1734
+ }),
1735
+ ).annotate({ identifier: "Statistics" });
1736
+ }
1737
+ }
1738
+ function __c11(j: number): any {
1739
+ switch (j) {
1740
+ case 0:
1741
+ return S.suspend(() =>
1742
+ S.Struct({
1743
+ region: S.optional(S.String.pipe(T.Label())),
1744
+ webhook_id: S.String.pipe(T.Label()),
1745
+ }).pipe(
1746
+ T.Http({
1747
+ method: "GET",
1748
+ uri: "/transactional-email/v1alpha1/regions/{region}/webhooks/{webhook_id}",
1749
+ code: 200,
1750
+ baseUrl: "https://api.scaleway.com",
1751
+ }),
1752
+ ),
1753
+ ).annotate({ identifier: "GetWebhookRequest" });
1754
+ }
1755
+ }
1756
+ function __c12(j: number): any {
1757
+ switch (j) {
1758
+ case 0:
1759
+ return S.suspend(() =>
1760
+ S.Struct({
1761
+ region: S.optional(S.String.pipe(T.Label())),
1762
+ order_by: S.optional(S.String.pipe(T.Query())),
1763
+ page: S.optional(S.Number.pipe(T.Query())),
1764
+ page_size: S.optional(S.Number.pipe(T.Query())),
1765
+ domain_id: S.String.pipe(T.Query()),
1766
+ email: S.optional(S.String.pipe(T.Query())),
1767
+ type: S.optional(S.String.pipe(T.Query())),
1768
+ custom: S.optional(S.Boolean.pipe(T.Query())),
1769
+ }).pipe(
1770
+ T.Http({
1771
+ method: "GET",
1772
+ uri: "/transactional-email/v1alpha1/regions/{region}/blocklists",
1773
+ code: 200,
1774
+ baseUrl: "https://api.scaleway.com",
1775
+ }),
1776
+ ),
1777
+ ).annotate({ identifier: "ListBlocklistsRequest" });
1778
+ case 1:
1779
+ return S.suspend(() =>
1780
+ S.Struct({
1781
+ total_count: S.optional(S.Number),
1782
+ blocklists: __S(9, __c1, 1),
1783
+ }),
1784
+ ).annotate({ identifier: "ListBlocklistsResponse" });
1785
+ }
1786
+ }
1787
+ function __c13(j: number): any {
1788
+ switch (j) {
1789
+ case 0:
1790
+ return S.suspend(() =>
1791
+ S.Struct({
1792
+ region: S.optional(S.String.pipe(T.Label())),
1793
+ page: S.optional(S.Number.pipe(T.Query())),
1794
+ page_size: S.optional(S.Number.pipe(T.Query())),
1795
+ project_id: S.optional(S.String.pipe(T.Query())),
1796
+ status: S.optional(__S(40, __c5, 0).pipe(T.Query())),
1797
+ organization_id: S.optional(S.String.pipe(T.Query())),
1798
+ name: S.optional(S.String.pipe(T.Query())),
1799
+ }).pipe(
1800
+ T.Http({
1801
+ method: "GET",
1802
+ uri: "/transactional-email/v1alpha1/regions/{region}/domains",
1803
+ code: 200,
1804
+ baseUrl: "https://api.scaleway.com",
1805
+ }),
1806
+ ),
1807
+ ).annotate({ identifier: "ListDomainsRequest" });
1808
+ case 1:
1809
+ return S.Array(__S(156, __c19, 4));
1810
+ case 2:
1811
+ return S.suspend(() =>
1812
+ S.Struct({
1813
+ total_count: S.optional(S.Number),
1814
+ domains: __S(105, __c13, 1),
1815
+ }),
1816
+ ).annotate({ identifier: "ListDomainsResponse" });
1817
+ }
1818
+ }
1819
+ function __c14(j: number): any {
1820
+ switch (j) {
1821
+ case 0:
1822
+ return S.suspend(() =>
1823
+ S.Struct({
1824
+ region: S.optional(S.String.pipe(T.Label())),
1825
+ page: S.optional(S.Number.pipe(T.Query())),
1826
+ page_size: S.optional(S.Number.pipe(T.Query())),
1827
+ project_id: S.optional(S.String.pipe(T.Query())),
1828
+ domain_id: S.optional(S.String.pipe(T.Query())),
1829
+ message_id: S.optional(S.String.pipe(T.Query())),
1830
+ since: S.optional(S.String.pipe(T.Query())),
1831
+ until: S.optional(S.String.pipe(T.Query())),
1832
+ mail_from: S.optional(S.String.pipe(T.Query())),
1833
+ mail_to: S.optional(S.String.pipe(T.Query())),
1834
+ mail_rcpt: S.optional(S.String.pipe(T.Query())),
1835
+ statuses: S.optional(__S(40, __c5, 0).pipe(T.Query())),
1836
+ subject: S.optional(S.String.pipe(T.Query())),
1837
+ search: S.optional(S.String.pipe(T.Query())),
1838
+ order_by: S.optional(S.String.pipe(T.Query())),
1839
+ flags: S.optional(__S(40, __c5, 0).pipe(T.Query())),
1840
+ }).pipe(
1841
+ T.Http({
1842
+ method: "GET",
1843
+ uri: "/transactional-email/v1alpha1/regions/{region}/emails",
1844
+ code: 200,
1845
+ baseUrl: "https://api.scaleway.com",
1846
+ }),
1847
+ ),
1848
+ ).annotate({ identifier: "ListEmailsRequest" });
1849
+ case 1:
1850
+ return S.suspend(() =>
1851
+ S.Struct({
1852
+ total_count: S.optional(S.Number),
1853
+ emails: __S(240, __c30, 0),
1854
+ }),
1855
+ ).annotate({ identifier: "ListEmailsResponse" });
1856
+ }
1857
+ }
1858
+ function __c15(j: number): any {
1859
+ switch (j) {
1860
+ case 0:
1861
+ return S.suspend(() =>
1862
+ S.Struct({
1863
+ region: S.optional(S.String.pipe(T.Label())),
1864
+ }).pipe(
1865
+ T.Http({
1866
+ method: "GET",
1867
+ uri: "/transactional-email/v1alpha1/regions/{region}/offers",
1868
+ code: 200,
1869
+ baseUrl: "https://api.scaleway.com",
1870
+ }),
1871
+ ),
1872
+ ).annotate({ identifier: "ListOffersRequest" });
1873
+ case 1:
1874
+ return S.suspend(() =>
1875
+ S.Struct({
1876
+ name: S.optional(S.String),
1877
+ created_at: S.optional(S.NullOr(S.String)),
1878
+ commitment_period: S.optional(S.NullOr(S.String)),
1879
+ sla: S.optional(S.Number),
1880
+ max_domains: S.optional(S.Number),
1881
+ max_dedicated_ips: S.optional(S.Number),
1882
+ included_monthly_emails: S.optional(S.Number),
1883
+ max_webhooks_per_domain: S.optional(S.Number),
1884
+ max_custom_blocklists_per_domain: S.optional(S.Number),
1885
+ }),
1886
+ ).annotate({ identifier: "Offer" });
1887
+ case 2:
1888
+ return S.Array(__S(121, __c15, 1));
1889
+ case 3:
1890
+ return S.suspend(() =>
1891
+ S.Struct({
1892
+ total_count: S.optional(S.Number),
1893
+ offers: S.optional(__S(122, __c15, 2)),
1894
+ }),
1895
+ ).annotate({ identifier: "ListOffersResponse" });
1896
+ }
1897
+ }
1898
+ function __c16(j: number): any {
1899
+ switch (j) {
1900
+ case 0:
1901
+ return S.suspend(() =>
1902
+ S.Struct({
1903
+ region: S.optional(S.String.pipe(T.Label())),
1904
+ page: S.optional(S.Number.pipe(T.Query())),
1905
+ page_size: S.optional(S.Number.pipe(T.Query())),
1906
+ offer_name: S.optional(S.String.pipe(T.Query())),
1907
+ organization_id: S.optional(S.String.pipe(T.Query())),
1908
+ project_id: S.optional(S.String.pipe(T.Query())),
1909
+ }).pipe(
1910
+ T.Http({
1911
+ method: "GET",
1912
+ uri: "/transactional-email/v1alpha1/regions/{region}/offer-subscriptions",
1913
+ code: 200,
1914
+ baseUrl: "https://api.scaleway.com",
1915
+ }),
1916
+ ),
1917
+ ).annotate({ identifier: "ListOfferSubscriptionsRequest" });
1918
+ case 1:
1919
+ return S.Array(__S(136, __c17, 0));
1920
+ case 2:
1921
+ return S.suspend(() =>
1922
+ S.Struct({
1923
+ total_count: S.optional(S.Number),
1924
+ offer_subscriptions: __S(129, __c16, 1),
1925
+ }),
1926
+ ).annotate({ identifier: "ListOfferSubscriptionsResponse" });
1927
+ }
1928
+ }
1929
+ function __c17(j: number): any {
1930
+ switch (j) {
1931
+ case 0:
1932
+ return S.suspend(() =>
1933
+ S.Struct({
1934
+ organization_id: S.optional(S.String),
1935
+ project_id: S.optional(S.String),
1936
+ offer_name: S.optional(S.String),
1937
+ subscribed_at: S.optional(S.NullOr(S.String)),
1938
+ cancellation_available_at: S.optional(S.NullOr(S.String)),
1939
+ sla: S.optional(S.Number),
1940
+ max_domains: S.optional(S.Number),
1941
+ max_dedicated_ips: S.optional(S.Number),
1942
+ max_webhooks_per_domain: S.optional(S.Number),
1943
+ max_custom_blocklists_per_domain: S.optional(S.Number),
1944
+ included_monthly_emails: S.optional(S.Number),
1945
+ }),
1946
+ ).annotate({ identifier: "OfferSubscription" });
1947
+ }
1948
+ }
1949
+ function __c18(j: number): any {
1950
+ switch (j) {
1951
+ case 0:
1952
+ return S.suspend(() =>
1953
+ S.Struct({
1954
+ region: S.optional(S.String.pipe(T.Label())),
1955
+ domain_id: S.String.pipe(T.Label()),
1956
+ }).pipe(
1957
+ T.Http({
1958
+ method: "POST",
1959
+ uri: "/transactional-email/v1alpha1/regions/{region}/domains/{domain_id}/check",
1960
+ code: 200,
1961
+ baseUrl: "https://api.scaleway.com",
1962
+ }),
1963
+ ),
1964
+ ).annotate({ identifier: "CheckDomainRequest" });
1965
+ }
1966
+ }
1967
+ function __c19(j: number): any {
1968
+ switch (j) {
1969
+ case 0:
1970
+ return S.suspend(() =>
1971
+ S.Struct({
1972
+ total_count: S.optional(S.Number),
1973
+ sent_count: S.optional(S.Number),
1974
+ failed_count: S.optional(S.Number),
1975
+ canceled_count: S.optional(S.Number),
1976
+ }),
1977
+ ).annotate({ identifier: "DomainStatistics" });
1978
+ case 1:
1979
+ return S.suspend(() =>
1980
+ S.Struct({
1981
+ status: S.optional(S.String),
1982
+ score: S.optional(S.Number),
1983
+ scored_at: S.optional(S.NullOr(S.String)),
1984
+ previous_score: S.optional(S.NullOr(S.Number)),
1985
+ previous_scored_at: S.optional(S.NullOr(S.String)),
1986
+ }),
1987
+ ).annotate({ identifier: "DomainReputation" });
1988
+ case 2:
1989
+ return S.suspend(() =>
1990
+ S.Struct({
1991
+ name: S.optional(S.String),
1992
+ value: S.optional(S.String),
1993
+ }),
1994
+ ).annotate({ identifier: "DomainRecordsDMARC" });
1995
+ case 3:
1996
+ return S.suspend(() =>
1997
+ S.Struct({
1998
+ dmarc: S.optional(__S(154, __c19, 2)),
1999
+ dkim: S.optional(__S(154, __c19, 2)),
2000
+ spf: S.optional(__S(154, __c19, 2)),
2001
+ mx: S.optional(__S(154, __c19, 2)),
2002
+ }),
2003
+ ).annotate({ identifier: "DomainRecords" });
2004
+ case 4:
2005
+ return S.suspend(() =>
2006
+ S.Struct({
2007
+ id: S.optional(S.String),
2008
+ organization_id: S.optional(S.String),
2009
+ project_id: S.optional(S.String),
2010
+ name: S.optional(S.String),
2011
+ status: S.optional(S.String),
2012
+ created_at: S.optional(S.NullOr(S.String)),
2013
+ next_check_at: S.optional(S.NullOr(S.String)),
2014
+ last_valid_at: S.optional(S.NullOr(S.String)),
2015
+ revoked_at: S.optional(S.NullOr(S.String)),
2016
+ last_error: S.optional(S.NullOr(S.String)),
2017
+ spf_config: S.optional(S.String),
2018
+ dkim_config: S.optional(S.String),
2019
+ statistics: S.optional(__S(152, __c19, 0)),
2020
+ reputation: S.optional(__S(153, __c19, 1)),
2021
+ records: S.optional(__S(155, __c19, 3)),
2022
+ autoconfig: S.optional(S.Boolean),
2023
+ region: S.optional(S.String),
2024
+ }),
2025
+ ).annotate({ identifier: "Domain" });
2026
+ }
2027
+ }
2028
+ function __c20(j: number): any {
2029
+ switch (j) {
2030
+ case 0:
2031
+ return S.suspend(() =>
2032
+ S.Struct({
2033
+ region: S.optional(S.String.pipe(T.Label())),
2034
+ page: S.optional(S.Number.pipe(T.Query())),
2035
+ page_size: S.optional(S.Number.pipe(T.Query())),
2036
+ project_id: S.String.pipe(T.Query()),
2037
+ }).pipe(
2038
+ T.Http({
2039
+ method: "GET",
2040
+ uri: "/transactional-email/v1alpha1/regions/{region}/pools",
2041
+ code: 200,
2042
+ baseUrl: "https://api.scaleway.com",
2043
+ }),
2044
+ ),
2045
+ ).annotate({ identifier: "ListPoolsRequest" });
2046
+ case 1:
2047
+ return S.suspend(() =>
2048
+ S.Struct({
2049
+ project_id: S.optional(S.String),
2050
+ status: S.optional(S.String),
2051
+ details: S.optional(S.NullOr(S.String)),
2052
+ zone: S.optional(S.NullOr(S.String)),
2053
+ ips: S.optional(__S(16, __c2, 0)),
2054
+ reverse: S.optional(S.NullOr(S.String)),
2055
+ }),
2056
+ ).annotate({ identifier: "Pool" });
2057
+ case 2:
2058
+ return S.Array(__S(161, __c20, 1));
2059
+ case 3:
2060
+ return S.suspend(() =>
2061
+ S.Struct({
2062
+ total_count: S.optional(S.Number),
2063
+ pools: __S(162, __c20, 2),
2064
+ }),
2065
+ ).annotate({ identifier: "ListPoolsResponse" });
2066
+ }
2067
+ }
2068
+ function __c21(j: number): any {
2069
+ switch (j) {
2070
+ case 0:
2071
+ return S.suspend(() =>
2072
+ S.Struct({
2073
+ region: S.optional(S.String.pipe(T.Label())),
2074
+ webhook_id: S.String.pipe(T.Label()),
2075
+ order_by: S.optional(S.String.pipe(T.Query())),
2076
+ page: S.optional(S.Number.pipe(T.Query())),
2077
+ page_size: S.optional(S.Number.pipe(T.Query())),
2078
+ email_id: S.optional(S.String.pipe(T.Query())),
2079
+ event_types: S.optional(__S(40, __c5, 0).pipe(T.Query())),
2080
+ statuses: S.optional(__S(40, __c5, 0).pipe(T.Query())),
2081
+ project_id: S.optional(S.String.pipe(T.Query())),
2082
+ organization_id: S.optional(S.String.pipe(T.Query())),
2083
+ domain_id: S.optional(S.String.pipe(T.Query())),
2084
+ }).pipe(
2085
+ T.Http({
2086
+ method: "GET",
2087
+ uri: "/transactional-email/v1alpha1/regions/{region}/webhooks/{webhook_id}/events",
2088
+ code: 200,
2089
+ baseUrl: "https://api.scaleway.com",
2090
+ }),
2091
+ ),
2092
+ ).annotate({ identifier: "ListWebhookEventsRequest" });
2093
+ case 1:
2094
+ return S.suspend(() =>
2095
+ S.Struct({
2096
+ id: S.optional(S.String),
2097
+ webhook_id: S.optional(S.String),
2098
+ organization_id: S.optional(S.String),
2099
+ project_id: S.optional(S.String),
2100
+ domain_id: S.optional(S.String),
2101
+ type: S.optional(S.String),
2102
+ status: S.optional(S.String),
2103
+ data: S.optional(S.String),
2104
+ created_at: S.optional(S.NullOr(S.String)),
2105
+ updated_at: S.optional(S.NullOr(S.String)),
2106
+ email_id: S.optional(S.NullOr(S.String)),
2107
+ }),
2108
+ ).annotate({ identifier: "WebhookEvent" });
2109
+ case 2:
2110
+ return S.Array(__S(169, __c21, 1));
2111
+ case 3:
2112
+ return S.suspend(() =>
2113
+ S.Struct({
2114
+ total_count: S.optional(S.Number),
2115
+ webhook_events: __S(170, __c21, 2),
2116
+ }),
2117
+ ).annotate({ identifier: "ListWebhookEventsResponse" });
2118
+ }
2119
+ }
2120
+ function __c22(j: number): any {
2121
+ switch (j) {
2122
+ case 0:
2123
+ return S.suspend(() =>
2124
+ S.Struct({
2125
+ region: S.optional(S.String.pipe(T.Label())),
2126
+ order_by: S.optional(S.String.pipe(T.Query())),
2127
+ page: S.optional(S.Number.pipe(T.Query())),
2128
+ page_size: S.optional(S.Number.pipe(T.Query())),
2129
+ project_id: S.optional(S.String.pipe(T.Query())),
2130
+ organization_id: S.optional(S.String.pipe(T.Query())),
2131
+ domain_id: S.optional(S.String.pipe(T.Query())),
2132
+ }).pipe(
2133
+ T.Http({
2134
+ method: "GET",
2135
+ uri: "/transactional-email/v1alpha1/regions/{region}/webhooks",
2136
+ code: 200,
2137
+ baseUrl: "https://api.scaleway.com",
2138
+ }),
2139
+ ),
2140
+ ).annotate({ identifier: "ListWebhooksRequest" });
2141
+ case 1:
2142
+ return S.Array(__S(256, __c32, 0));
2143
+ case 2:
2144
+ return S.suspend(() =>
2145
+ S.Struct({
2146
+ total_count: S.optional(S.Number),
2147
+ webhooks: __S(177, __c22, 1),
2148
+ }),
2149
+ ).annotate({ identifier: "ListWebhooksResponse" });
2150
+ }
2151
+ }
2152
+ function __c23(j: number): any {
2153
+ switch (j) {
2154
+ case 0:
2155
+ return S.suspend(() =>
2156
+ S.Struct({
2157
+ region: S.optional(S.String.pipe(T.Label())),
2158
+ domain_id: S.String.pipe(T.Label()),
2159
+ }).pipe(
2160
+ T.Http({
2161
+ method: "POST",
2162
+ uri: "/transactional-email/v1alpha1/regions/{region}/domains/{domain_id}/revoke",
2163
+ code: 200,
2164
+ baseUrl: "https://api.scaleway.com",
2165
+ }),
2166
+ ),
2167
+ ).annotate({ identifier: "RevokeDomainRequest" });
2168
+ }
2169
+ }
2170
+ function __c24(j: number): any {
2171
+ switch (j) {
2172
+ case 0:
2173
+ return S.suspend(() =>
2174
+ S.Struct({
2175
+ region: S.optional(S.String.pipe(T.Label())),
2176
+ domain_id: S.String.pipe(T.Label()),
2177
+ autoconfig: S.optional(S.NullOr(S.Boolean)),
2178
+ }).pipe(
2179
+ T.Http({
2180
+ method: "PATCH",
2181
+ uri: "/transactional-email/v1alpha1/regions/{region}/domains/{domain_id}",
2182
+ code: 200,
2183
+ baseUrl: "https://api.scaleway.com",
2184
+ }),
2185
+ ),
2186
+ ).annotate({ identifier: "UpdateDomainRequest" });
2187
+ }
2188
+ }
2189
+ function __c25(j: number): any {
2190
+ switch (j) {
2191
+ case 0:
2192
+ return S.suspend(() =>
2193
+ S.Struct({
2194
+ region: S.optional(S.String.pipe(T.Label())),
2195
+ project_id: S.optional(S.String),
2196
+ name: S.optional(S.String),
2197
+ }).pipe(
2198
+ T.Http({
2199
+ method: "PATCH",
2200
+ uri: "/transactional-email/v1alpha1/regions/{region}/offer-subscriptions",
2201
+ code: 200,
2202
+ baseUrl: "https://api.scaleway.com",
2203
+ }),
2204
+ ),
2205
+ ).annotate({ identifier: "UpdateOfferSubscriptionRequest" });
2206
+ }
2207
+ }
2208
+ function __c26(j: number): any {
2209
+ switch (j) {
2210
+ case 0:
2211
+ return S.suspend(() =>
2212
+ S.Struct({
2213
+ enabled: S.optional(S.NullOr(S.Boolean)),
2214
+ frequency: S.optional(S.String),
2215
+ sending_hour: S.optional(S.NullOr(S.Number)),
2216
+ sending_day: S.optional(S.NullOr(S.Number)),
2217
+ }),
2218
+ ).annotate({ identifier: "UpdateProjectSettingsRequestUpdatePeriodicReport" });
2219
+ case 1:
2220
+ return S.suspend(() =>
2221
+ S.Struct({
2222
+ region: S.optional(S.String.pipe(T.Label())),
2223
+ project_id: S.String.pipe(T.Label()),
2224
+ periodic_report: S.optional(__S(208, __c26, 0)),
2225
+ }).pipe(
2226
+ T.Http({
2227
+ method: "PATCH",
2228
+ uri: "/transactional-email/v1alpha1/regions/{region}/project/{project_id}/settings",
2229
+ code: 200,
2230
+ baseUrl: "https://api.scaleway.com",
2231
+ }),
2232
+ ),
2233
+ ).annotate({ identifier: "UpdateProjectSettingsRequest" });
2234
+ }
2235
+ }
2236
+ function __c27(j: number): any {
2237
+ switch (j) {
2238
+ case 0:
2239
+ return S.suspend(() =>
2240
+ S.Struct({
2241
+ region: S.optional(S.String.pipe(T.Label())),
2242
+ webhook_id: S.String.pipe(T.Label()),
2243
+ name: S.optional(S.NullOr(S.String)),
2244
+ event_types: S.optional(__S(40, __c5, 0)),
2245
+ sns_arn: S.optional(S.NullOr(S.String)),
2246
+ }).pipe(
2247
+ T.Http({
2248
+ method: "PATCH",
2249
+ uri: "/transactional-email/v1alpha1/regions/{region}/webhooks/{webhook_id}",
2250
+ code: 200,
2251
+ baseUrl: "https://api.scaleway.com",
2252
+ }),
2253
+ ),
2254
+ ).annotate({ identifier: "UpdateWebhookRequest" });
2255
+ }
2256
+ }
2257
+ function __c28(j: number): any {
2258
+ switch (j) {
2259
+ case 0:
2260
+ return S.suspend(() =>
2261
+ S.Struct({
2262
+ region: S.optional(S.String.pipe(T.Label())),
2263
+ project_id: S.optional(S.String),
2264
+ domain_name: S.optional(S.String),
2265
+ accept_tos: S.optional(S.Boolean),
2266
+ autoconfig: S.optional(S.Boolean),
2267
+ }).pipe(
2268
+ T.Http({
2269
+ method: "POST",
2270
+ uri: "/transactional-email/v1alpha1/regions/{region}/domains",
2271
+ code: 200,
2272
+ baseUrl: "https://api.scaleway.com",
2273
+ }),
2274
+ ),
2275
+ ).annotate({ identifier: "CreateDomainRequest" });
2276
+ }
2277
+ }
2278
+ function __c29(j: number): any {
2279
+ switch (j) {
2280
+ case 0:
2281
+ return S.suspend(() =>
2282
+ S.Struct({
2283
+ email: S.optional(S.String),
2284
+ name: S.optional(S.NullOr(S.String)),
2285
+ }),
2286
+ ).annotate({ identifier: "CreateEmailRequestAddress" });
2287
+ case 1:
2288
+ return S.Array(__S(232, __c29, 0));
2289
+ case 2:
2290
+ return S.suspend(() =>
2291
+ S.Struct({
2292
+ name: S.optional(S.String),
2293
+ type: S.optional(S.String),
2294
+ content: S.optional(S.String),
2295
+ }),
2296
+ ).annotate({ identifier: "CreateEmailRequestAttachment" });
2297
+ case 3:
2298
+ return S.Array(__S(234, __c29, 2));
2299
+ case 4:
2300
+ return S.suspend(() =>
2301
+ S.Struct({
2302
+ key: S.optional(S.String),
2303
+ value: S.optional(S.String),
2304
+ }),
2305
+ ).annotate({ identifier: "CreateEmailRequestHeader" });
2306
+ case 5:
2307
+ return S.Array(__S(236, __c29, 4));
2308
+ case 6:
2309
+ return S.suspend(() =>
2310
+ S.Struct({
2311
+ region: S.optional(S.String.pipe(T.Label())),
2312
+ from: __S(232, __c29, 0),
2313
+ to: S.optional(__S(233, __c29, 1)),
2314
+ cc: S.optional(__S(233, __c29, 1)),
2315
+ bcc: S.optional(__S(233, __c29, 1)),
2316
+ subject: S.optional(S.String),
2317
+ text: S.optional(S.String),
2318
+ html: S.optional(S.String),
2319
+ project_id: S.optional(S.String),
2320
+ attachments: S.optional(__S(235, __c29, 3)),
2321
+ send_before: S.optional(S.NullOr(S.String)),
2322
+ additional_headers: S.optional(__S(237, __c29, 5)),
2323
+ }).pipe(
2324
+ T.Http({
2325
+ method: "POST",
2326
+ uri: "/transactional-email/v1alpha1/regions/{region}/emails",
2327
+ code: 200,
2328
+ baseUrl: "https://api.scaleway.com",
2329
+ }),
2330
+ ),
2331
+ ).annotate({ identifier: "CreateEmailRequest" });
2332
+ case 7:
2333
+ return S.suspend(() =>
2334
+ S.Struct({
2335
+ emails: S.optional(__S(240, __c30, 0)),
2336
+ }),
2337
+ ).annotate({ identifier: "CreateEmailResponse" });
2338
+ }
2339
+ }
2340
+ function __c30(j: number): any {
2341
+ switch (j) {
2342
+ case 0:
2343
+ return S.Array(__S(34, __c4, 2));
2344
+ }
2345
+ }
2346
+ function __c31(j: number): any {
2347
+ switch (j) {
2348
+ case 0:
2349
+ return S.suspend(() =>
2350
+ S.Struct({
2351
+ region: S.optional(S.String.pipe(T.Label())),
2352
+ domain_id: S.optional(S.String),
2353
+ project_id: S.optional(S.String),
2354
+ name: S.optional(S.String),
2355
+ event_types: S.optional(__S(40, __c5, 0)),
2356
+ sns_arn: S.optional(S.String),
2357
+ }).pipe(
2358
+ T.Http({
2359
+ method: "POST",
2360
+ uri: "/transactional-email/v1alpha1/regions/{region}/webhooks",
2361
+ code: 200,
2362
+ baseUrl: "https://api.scaleway.com",
2363
+ }),
2364
+ ),
2365
+ ).annotate({ identifier: "CreateWebhookRequest" });
2366
+ }
2367
+ }
2368
+ function __c32(j: number): any {
2369
+ switch (j) {
2370
+ case 0:
2371
+ return S.suspend(() =>
2372
+ S.Struct({
2373
+ id: S.optional(S.String),
2374
+ domain_id: S.optional(S.String),
2375
+ organization_id: S.optional(S.String),
2376
+ project_id: S.optional(S.String),
2377
+ name: S.optional(S.String),
2378
+ event_types: S.optional(__S(40, __c5, 0)),
2379
+ sns_arn: S.optional(S.String),
2380
+ created_at: S.optional(S.NullOr(S.String)),
2381
+ updated_at: S.optional(S.NullOr(S.String)),
2382
+ }),
2383
+ ).annotate({ identifier: "Webhook" });
2384
+ }
2385
+ }
2386
+ function __c33(j: number): any {
2387
+ switch (j) {
2388
+ case 0:
2389
+ return S.suspend(() =>
2390
+ S.Struct({
2391
+ region: S.optional(S.String.pipe(T.Label())),
2392
+ blocklist_id: S.String.pipe(T.Label()),
2393
+ }).pipe(
2394
+ T.Http({
2395
+ method: "DELETE",
2396
+ uri: "/transactional-email/v1alpha1/regions/{region}/blocklists/{blocklist_id}",
2397
+ code: 200,
2398
+ baseUrl: "https://api.scaleway.com",
2399
+ }),
2400
+ ),
2401
+ ).annotate({ identifier: "DeleteBlocklistRequest" });
2402
+ }
2403
+ }
2404
+ function __c34(j: number): any {
2405
+ switch (j) {
2406
+ case 0:
2407
+ return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteBlocklistResponse" });
2408
+ }
2409
+ }
2410
+ function __c35(j: number): any {
2411
+ switch (j) {
2412
+ case 0:
2413
+ return S.suspend(() =>
2414
+ S.Struct({
2415
+ region: S.optional(S.String.pipe(T.Label())),
2416
+ webhook_id: S.String.pipe(T.Label()),
2417
+ }).pipe(
2418
+ T.Http({
2419
+ method: "DELETE",
2420
+ uri: "/transactional-email/v1alpha1/regions/{region}/webhooks/{webhook_id}",
2421
+ code: 200,
2422
+ baseUrl: "https://api.scaleway.com",
2423
+ }),
2424
+ ),
2425
+ ).annotate({ identifier: "DeleteWebhookRequest" });
2426
+ }
2427
+ }
2428
+ function __c36(j: number): any {
2429
+ switch (j) {
2430
+ case 0:
2431
+ return S.suspend(() =>
2432
+ S.Struct({
2433
+ region: S.optional(S.String.pipe(T.Label())),
2434
+ domain_id: S.String.pipe(T.Label()),
2435
+ }).pipe(
2436
+ T.Http({
2437
+ method: "GET",
2438
+ uri: "/transactional-email/v1alpha1/regions/{region}/domains/{domain_id}",
2439
+ code: 200,
2440
+ baseUrl: "https://api.scaleway.com",
2441
+ }),
2442
+ ),
2443
+ ).annotate({ identifier: "GetDomainRequest" });
2444
+ }
2445
+ }
2446
+ function __c37(j: number): any {
2447
+ switch (j) {
2448
+ case 0:
2449
+ return S.suspend(() =>
2450
+ S.Struct({
2451
+ region: S.optional(S.String.pipe(T.Label())),
2452
+ domain_id: S.String.pipe(T.Label()),
2453
+ }).pipe(
2454
+ T.Http({
2455
+ method: "GET",
2456
+ uri: "/transactional-email/v1alpha1/regions/{region}/domains/{domain_id}/verification",
2457
+ code: 200,
2458
+ baseUrl: "https://api.scaleway.com",
2459
+ }),
2460
+ ),
2461
+ ).annotate({ identifier: "GetDomainLastStatusRequest" });
2462
+ case 1:
2463
+ return S.suspend(() =>
2464
+ S.Struct({
2465
+ status: S.optional(S.String),
2466
+ last_valid_at: S.optional(S.NullOr(S.String)),
2467
+ error: S.optional(S.NullOr(S.String)),
2468
+ }),
2469
+ ).annotate({ identifier: "DomainLastStatusSpfRecord" });
2470
+ case 2:
2471
+ return S.suspend(() =>
2472
+ S.Struct({
2473
+ enabled: S.optional(S.Boolean),
2474
+ autoconfigurable: S.optional(S.Boolean),
2475
+ reason: S.optional(S.String),
2476
+ }),
2477
+ ).annotate({ identifier: "DomainLastStatusAutoconfigState" });
2478
+ case 3:
2479
+ return S.suspend(() =>
2480
+ S.Struct({
2481
+ domain_id: S.optional(S.String),
2482
+ domain_name: S.optional(S.String),
2483
+ spf_record: S.optional(__S(297, __c37, 1)),
2484
+ dkim_record: S.optional(__S(297, __c37, 1)),
2485
+ dmarc_record: S.optional(__S(297, __c37, 1)),
2486
+ mx_record: S.optional(__S(297, __c37, 1)),
2487
+ autoconfig_state: S.optional(__S(298, __c37, 2)),
2488
+ }),
2489
+ ).annotate({ identifier: "DomainLastStatus" });
2490
+ }
2491
+ }
2492
+ // Schema table: entry i is schema j of builder f, made on first reach.
2493
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
2494
+ return (__s[i] ??= __L.at(f, j));
2495
+ }