@distilled.cloud/cloudflare 0.0.0 → 0.2.0-alpha

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 (560) hide show
  1. package/lib/auth.d.ts +13 -0
  2. package/lib/auth.d.ts.map +1 -0
  3. package/lib/auth.js +12 -0
  4. package/lib/auth.js.map +1 -0
  5. package/lib/category.d.ts +2 -0
  6. package/lib/category.d.ts.map +1 -0
  7. package/lib/category.js +2 -0
  8. package/lib/category.js.map +1 -0
  9. package/lib/client/api.d.ts +14 -0
  10. package/lib/client/api.d.ts.map +1 -0
  11. package/lib/client/api.js +197 -0
  12. package/lib/client/api.js.map +1 -0
  13. package/lib/client/index.d.ts +8 -0
  14. package/lib/client/index.d.ts.map +1 -0
  15. package/lib/client/index.js +8 -0
  16. package/lib/client/index.js.map +1 -0
  17. package/lib/credentials.d.ts +14 -0
  18. package/lib/credentials.d.ts.map +1 -0
  19. package/lib/credentials.js +17 -0
  20. package/lib/credentials.js.map +1 -0
  21. package/lib/errors.d.ts +48 -0
  22. package/lib/errors.d.ts.map +1 -0
  23. package/lib/errors.js +38 -0
  24. package/lib/errors.js.map +1 -0
  25. package/lib/index.d.ts +10 -0
  26. package/lib/index.d.ts.map +1 -0
  27. package/lib/index.js +10 -0
  28. package/lib/index.js.map +1 -0
  29. package/lib/retry.d.ts +14 -0
  30. package/lib/retry.d.ts.map +1 -0
  31. package/lib/retry.js +14 -0
  32. package/lib/retry.js.map +1 -0
  33. package/lib/schemas.d.ts +29 -0
  34. package/lib/schemas.d.ts.map +1 -0
  35. package/lib/schemas.js +34 -0
  36. package/lib/schemas.js.map +1 -0
  37. package/lib/services/abuse-reports.d.ts +224 -0
  38. package/lib/services/abuse-reports.d.ts.map +1 -0
  39. package/lib/services/abuse-reports.js +353 -0
  40. package/lib/services/abuse-reports.js.map +1 -0
  41. package/lib/services/accounts.d.ts +682 -0
  42. package/lib/services/accounts.d.ts.map +1 -0
  43. package/lib/services/accounts.js +805 -0
  44. package/lib/services/accounts.js.map +1 -0
  45. package/lib/services/acm.d.ts +73 -0
  46. package/lib/services/acm.d.ts.map +1 -0
  47. package/lib/services/acm.js +76 -0
  48. package/lib/services/acm.js.map +1 -0
  49. package/lib/services/addressing.d.ts +1208 -0
  50. package/lib/services/addressing.d.ts.map +1 -0
  51. package/lib/services/addressing.js +1776 -0
  52. package/lib/services/addressing.js.map +1 -0
  53. package/lib/services/ai-gateway.d.ts +956 -0
  54. package/lib/services/ai-gateway.d.ts.map +1 -0
  55. package/lib/services/ai-gateway.js +1706 -0
  56. package/lib/services/ai-gateway.js.map +1 -0
  57. package/lib/services/ai.d.ts +243 -0
  58. package/lib/services/ai.d.ts.map +1 -0
  59. package/lib/services/ai.js +299 -0
  60. package/lib/services/ai.js.map +1 -0
  61. package/lib/services/aisearch.d.ts +915 -0
  62. package/lib/services/aisearch.d.ts.map +1 -0
  63. package/lib/services/aisearch.js +2425 -0
  64. package/lib/services/aisearch.js.map +1 -0
  65. package/lib/services/alerting.d.ts +718 -0
  66. package/lib/services/alerting.d.ts.map +1 -0
  67. package/lib/services/alerting.js +1388 -0
  68. package/lib/services/alerting.js.map +1 -0
  69. package/lib/services/api-gateway.d.ts +830 -0
  70. package/lib/services/api-gateway.d.ts.map +1 -0
  71. package/lib/services/api-gateway.js +1548 -0
  72. package/lib/services/api-gateway.js.map +1 -0
  73. package/lib/services/argo.d.ts +101 -0
  74. package/lib/services/argo.d.ts.map +1 -0
  75. package/lib/services/argo.js +105 -0
  76. package/lib/services/argo.js.map +1 -0
  77. package/lib/services/audit-logs.d.ts +46 -0
  78. package/lib/services/audit-logs.d.ts.map +1 -0
  79. package/lib/services/audit-logs.js +37 -0
  80. package/lib/services/audit-logs.js.map +1 -0
  81. package/lib/services/billing.d.ts +62 -0
  82. package/lib/services/billing.d.ts.map +1 -0
  83. package/lib/services/billing.js +100 -0
  84. package/lib/services/billing.js.map +1 -0
  85. package/lib/services/bot-management.d.ts +124 -0
  86. package/lib/services/bot-management.d.ts.map +1 -0
  87. package/lib/services/bot-management.js +262 -0
  88. package/lib/services/bot-management.js.map +1 -0
  89. package/lib/services/botnet-feed.d.ts +65 -0
  90. package/lib/services/botnet-feed.d.ts.map +1 -0
  91. package/lib/services/botnet-feed.js +84 -0
  92. package/lib/services/botnet-feed.js.map +1 -0
  93. package/lib/services/brand-protection.d.ts +188 -0
  94. package/lib/services/brand-protection.d.ts.map +1 -0
  95. package/lib/services/brand-protection.js +214 -0
  96. package/lib/services/brand-protection.js.map +1 -0
  97. package/lib/services/browser-rendering.d.ts +857 -0
  98. package/lib/services/browser-rendering.d.ts.map +1 -0
  99. package/lib/services/browser-rendering.js +1141 -0
  100. package/lib/services/browser-rendering.js.map +1 -0
  101. package/lib/services/cache.d.ts +287 -0
  102. package/lib/services/cache.d.ts.map +1 -0
  103. package/lib/services/cache.js +330 -0
  104. package/lib/services/cache.js.map +1 -0
  105. package/lib/services/calls.d.ts +202 -0
  106. package/lib/services/calls.d.ts.map +1 -0
  107. package/lib/services/calls.js +175 -0
  108. package/lib/services/calls.js.map +1 -0
  109. package/lib/services/certificate-authorities.d.ts +40 -0
  110. package/lib/services/certificate-authorities.d.ts.map +1 -0
  111. package/lib/services/certificate-authorities.js +49 -0
  112. package/lib/services/certificate-authorities.js.map +1 -0
  113. package/lib/services/client-certificates.d.ts +254 -0
  114. package/lib/services/client-certificates.d.ts.map +1 -0
  115. package/lib/services/client-certificates.js +350 -0
  116. package/lib/services/client-certificates.js.map +1 -0
  117. package/lib/services/cloud-connector.d.ts +59 -0
  118. package/lib/services/cloud-connector.d.ts.map +1 -0
  119. package/lib/services/cloud-connector.js +84 -0
  120. package/lib/services/cloud-connector.js.map +1 -0
  121. package/lib/services/cloudforce-one.d.ts +1318 -0
  122. package/lib/services/cloudforce-one.d.ts.map +1 -0
  123. package/lib/services/cloudforce-one.js +1684 -0
  124. package/lib/services/cloudforce-one.js.map +1 -0
  125. package/lib/services/connectivity.d.ts +248 -0
  126. package/lib/services/connectivity.d.ts.map +1 -0
  127. package/lib/services/connectivity.js +377 -0
  128. package/lib/services/connectivity.js.map +1 -0
  129. package/lib/services/content-scanning.d.ts +131 -0
  130. package/lib/services/content-scanning.d.ts.map +1 -0
  131. package/lib/services/content-scanning.js +156 -0
  132. package/lib/services/content-scanning.js.map +1 -0
  133. package/lib/services/custom-certificates.d.ts +211 -0
  134. package/lib/services/custom-certificates.d.ts.map +1 -0
  135. package/lib/services/custom-certificates.js +309 -0
  136. package/lib/services/custom-certificates.js.map +1 -0
  137. package/lib/services/custom-hostnames.d.ts +525 -0
  138. package/lib/services/custom-hostnames.d.ts.map +1 -0
  139. package/lib/services/custom-hostnames.js +1164 -0
  140. package/lib/services/custom-hostnames.js.map +1 -0
  141. package/lib/services/custom-nameservers.d.ts +67 -0
  142. package/lib/services/custom-nameservers.d.ts.map +1 -0
  143. package/lib/services/custom-nameservers.js +80 -0
  144. package/lib/services/custom-nameservers.js.map +1 -0
  145. package/lib/services/custom-pages.d.ts +74 -0
  146. package/lib/services/custom-pages.d.ts.map +1 -0
  147. package/lib/services/custom-pages.js +125 -0
  148. package/lib/services/custom-pages.js.map +1 -0
  149. package/lib/services/d1.d.ts +326 -0
  150. package/lib/services/d1.d.ts.map +1 -0
  151. package/lib/services/d1.js +448 -0
  152. package/lib/services/d1.js.map +1 -0
  153. package/lib/services/dcv-delegation.d.ts +24 -0
  154. package/lib/services/dcv-delegation.d.ts.map +1 -0
  155. package/lib/services/dcv-delegation.js +24 -0
  156. package/lib/services/dcv-delegation.js.map +1 -0
  157. package/lib/services/diagnostics.d.ts +175 -0
  158. package/lib/services/diagnostics.d.ts.map +1 -0
  159. package/lib/services/diagnostics.js +273 -0
  160. package/lib/services/diagnostics.js.map +1 -0
  161. package/lib/services/dns-firewall.d.ts +288 -0
  162. package/lib/services/dns-firewall.d.ts.map +1 -0
  163. package/lib/services/dns-firewall.js +373 -0
  164. package/lib/services/dns-firewall.js.map +1 -0
  165. package/lib/services/dns.d.ts +2946 -0
  166. package/lib/services/dns.d.ts.map +1 -0
  167. package/lib/services/dns.js +4511 -0
  168. package/lib/services/dns.js.map +1 -0
  169. package/lib/services/durable-objects.d.ts +61 -0
  170. package/lib/services/durable-objects.d.ts.map +1 -0
  171. package/lib/services/durable-objects.js +66 -0
  172. package/lib/services/durable-objects.js.map +1 -0
  173. package/lib/services/email-routing.d.ts +542 -0
  174. package/lib/services/email-routing.d.ts.map +1 -0
  175. package/lib/services/email-routing.js +662 -0
  176. package/lib/services/email-routing.js.map +1 -0
  177. package/lib/services/email-security.d.ts +1131 -0
  178. package/lib/services/email-security.d.ts.map +1 -0
  179. package/lib/services/email-security.js +2065 -0
  180. package/lib/services/email-security.js.map +1 -0
  181. package/lib/services/filters.d.ts +157 -0
  182. package/lib/services/filters.d.ts.map +1 -0
  183. package/lib/services/filters.js +135 -0
  184. package/lib/services/filters.js.map +1 -0
  185. package/lib/services/firewall.d.ts +1080 -0
  186. package/lib/services/firewall.d.ts.map +1 -0
  187. package/lib/services/firewall.js +1881 -0
  188. package/lib/services/firewall.js.map +1 -0
  189. package/lib/services/healthchecks.d.ts +464 -0
  190. package/lib/services/healthchecks.d.ts.map +1 -0
  191. package/lib/services/healthchecks.js +838 -0
  192. package/lib/services/healthchecks.js.map +1 -0
  193. package/lib/services/hostnames.d.ts +74 -0
  194. package/lib/services/hostnames.d.ts.map +1 -0
  195. package/lib/services/hostnames.js +100 -0
  196. package/lib/services/hostnames.js.map +1 -0
  197. package/lib/services/hyperdrive.d.ts +203 -0
  198. package/lib/services/hyperdrive.d.ts.map +1 -0
  199. package/lib/services/hyperdrive.js +299 -0
  200. package/lib/services/hyperdrive.js.map +1 -0
  201. package/lib/services/iam.d.ts +554 -0
  202. package/lib/services/iam.d.ts.map +1 -0
  203. package/lib/services/iam.js +743 -0
  204. package/lib/services/iam.js.map +1 -0
  205. package/lib/services/images.d.ts +403 -0
  206. package/lib/services/images.d.ts.map +1 -0
  207. package/lib/services/images.js +417 -0
  208. package/lib/services/images.js.map +1 -0
  209. package/lib/services/intel.d.ts +768 -0
  210. package/lib/services/intel.d.ts.map +1 -0
  211. package/lib/services/intel.js +1179 -0
  212. package/lib/services/intel.js.map +1 -0
  213. package/lib/services/ips.d.ts +28 -0
  214. package/lib/services/ips.d.ts.map +1 -0
  215. package/lib/services/ips.js +39 -0
  216. package/lib/services/ips.js.map +1 -0
  217. package/lib/services/keyless-certificates.d.ts +177 -0
  218. package/lib/services/keyless-certificates.d.ts.map +1 -0
  219. package/lib/services/keyless-certificates.js +216 -0
  220. package/lib/services/keyless-certificates.js.map +1 -0
  221. package/lib/services/kv.d.ts +339 -0
  222. package/lib/services/kv.d.ts.map +1 -0
  223. package/lib/services/kv.js +402 -0
  224. package/lib/services/kv.js.map +1 -0
  225. package/lib/services/leaked-credential-checks.d.ts +119 -0
  226. package/lib/services/leaked-credential-checks.d.ts.map +1 -0
  227. package/lib/services/leaked-credential-checks.js +130 -0
  228. package/lib/services/leaked-credential-checks.js.map +1 -0
  229. package/lib/services/load-balancers.d.ts +1767 -0
  230. package/lib/services/load-balancers.d.ts.map +1 -0
  231. package/lib/services/load-balancers.js +3068 -0
  232. package/lib/services/load-balancers.js.map +1 -0
  233. package/lib/services/logpush.d.ts +401 -0
  234. package/lib/services/logpush.d.ts.map +1 -0
  235. package/lib/services/logpush.js +724 -0
  236. package/lib/services/logpush.js.map +1 -0
  237. package/lib/services/logs.d.ts +125 -0
  238. package/lib/services/logs.d.ts.map +1 -0
  239. package/lib/services/logs.js +145 -0
  240. package/lib/services/logs.js.map +1 -0
  241. package/lib/services/magic-cloud-networking.d.ts +1599 -0
  242. package/lib/services/magic-cloud-networking.d.ts.map +1 -0
  243. package/lib/services/magic-cloud-networking.js +5205 -0
  244. package/lib/services/magic-cloud-networking.js.map +1 -0
  245. package/lib/services/magic-network-monitoring.d.ts +379 -0
  246. package/lib/services/magic-network-monitoring.d.ts.map +1 -0
  247. package/lib/services/magic-network-monitoring.js +535 -0
  248. package/lib/services/magic-network-monitoring.js.map +1 -0
  249. package/lib/services/magic-transit.d.ts +3650 -0
  250. package/lib/services/magic-transit.d.ts.map +1 -0
  251. package/lib/services/magic-transit.js +6120 -0
  252. package/lib/services/magic-transit.js.map +1 -0
  253. package/lib/services/managed-transforms.d.ts +79 -0
  254. package/lib/services/managed-transforms.d.ts.map +1 -0
  255. package/lib/services/managed-transforms.js +107 -0
  256. package/lib/services/managed-transforms.js.map +1 -0
  257. package/lib/services/memberships.d.ts +172 -0
  258. package/lib/services/memberships.d.ts.map +1 -0
  259. package/lib/services/memberships.js +282 -0
  260. package/lib/services/memberships.js.map +1 -0
  261. package/lib/services/mtls-certificates.d.ts +140 -0
  262. package/lib/services/mtls-certificates.d.ts.map +1 -0
  263. package/lib/services/mtls-certificates.js +173 -0
  264. package/lib/services/mtls-certificates.js.map +1 -0
  265. package/lib/services/network-interconnects.d.ts +410 -0
  266. package/lib/services/network-interconnects.d.ts.map +1 -0
  267. package/lib/services/network-interconnects.js +583 -0
  268. package/lib/services/network-interconnects.js.map +1 -0
  269. package/lib/services/organizations.d.ts +201 -0
  270. package/lib/services/organizations.d.ts.map +1 -0
  271. package/lib/services/organizations.js +355 -0
  272. package/lib/services/organizations.js.map +1 -0
  273. package/lib/services/origin-ca-certificates.d.ts +99 -0
  274. package/lib/services/origin-ca-certificates.d.ts.map +1 -0
  275. package/lib/services/origin-ca-certificates.js +156 -0
  276. package/lib/services/origin-ca-certificates.js.map +1 -0
  277. package/lib/services/origin-post-quantum-encryption.d.ts +50 -0
  278. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -0
  279. package/lib/services/origin-post-quantum-encryption.js +60 -0
  280. package/lib/services/origin-post-quantum-encryption.js.map +1 -0
  281. package/lib/services/origin-tls-client-auth.d.ts +273 -0
  282. package/lib/services/origin-tls-client-auth.d.ts.map +1 -0
  283. package/lib/services/origin-tls-client-auth.js +401 -0
  284. package/lib/services/origin-tls-client-auth.js.map +1 -0
  285. package/lib/services/page-rules.d.ts +773 -0
  286. package/lib/services/page-rules.d.ts.map +1 -0
  287. package/lib/services/page-rules.js +1365 -0
  288. package/lib/services/page-rules.js.map +1 -0
  289. package/lib/services/page-shield.d.ts +426 -0
  290. package/lib/services/page-shield.d.ts.map +1 -0
  291. package/lib/services/page-shield.js +484 -0
  292. package/lib/services/page-shield.js.map +1 -0
  293. package/lib/services/pages.d.ts +1654 -0
  294. package/lib/services/pages.d.ts.map +1 -0
  295. package/lib/services/pages.js +2954 -0
  296. package/lib/services/pages.js.map +1 -0
  297. package/lib/services/pipelines.d.ts +1461 -0
  298. package/lib/services/pipelines.d.ts.map +1 -0
  299. package/lib/services/pipelines.js +2912 -0
  300. package/lib/services/pipelines.js.map +1 -0
  301. package/lib/services/queues.d.ts +807 -0
  302. package/lib/services/queues.d.ts.map +1 -0
  303. package/lib/services/queues.js +1194 -0
  304. package/lib/services/queues.js.map +1 -0
  305. package/lib/services/r2-data-catalog.d.ts +341 -0
  306. package/lib/services/r2-data-catalog.d.ts.map +1 -0
  307. package/lib/services/r2-data-catalog.js +499 -0
  308. package/lib/services/r2-data-catalog.js.map +1 -0
  309. package/lib/services/r2.d.ts +1041 -0
  310. package/lib/services/r2.d.ts.map +1 -0
  311. package/lib/services/r2.js +1384 -0
  312. package/lib/services/r2.js.map +1 -0
  313. package/lib/services/radar.d.ts +9276 -0
  314. package/lib/services/radar.d.ts.map +1 -0
  315. package/lib/services/radar.js +20491 -0
  316. package/lib/services/radar.js.map +1 -0
  317. package/lib/services/rate-limits.d.ts +315 -0
  318. package/lib/services/rate-limits.d.ts.map +1 -0
  319. package/lib/services/rate-limits.js +521 -0
  320. package/lib/services/rate-limits.js.map +1 -0
  321. package/lib/services/realtime-kit.d.ts +2728 -0
  322. package/lib/services/realtime-kit.d.ts.map +1 -0
  323. package/lib/services/realtime-kit.js +5401 -0
  324. package/lib/services/realtime-kit.js.map +1 -0
  325. package/lib/services/registrar.d.ts +81 -0
  326. package/lib/services/registrar.d.ts.map +1 -0
  327. package/lib/services/registrar.js +154 -0
  328. package/lib/services/registrar.js.map +1 -0
  329. package/lib/services/request-tracers.d.ts +61 -0
  330. package/lib/services/request-tracers.d.ts.map +1 -0
  331. package/lib/services/request-tracers.js +82 -0
  332. package/lib/services/request-tracers.js.map +1 -0
  333. package/lib/services/resource-sharing.d.ts +540 -0
  334. package/lib/services/resource-sharing.d.ts.map +1 -0
  335. package/lib/services/resource-sharing.js +846 -0
  336. package/lib/services/resource-sharing.js.map +1 -0
  337. package/lib/services/rules.d.ts +297 -0
  338. package/lib/services/rules.d.ts.map +1 -0
  339. package/lib/services/rules.js +396 -0
  340. package/lib/services/rules.js.map +1 -0
  341. package/lib/services/rulesets.d.ts +3300 -0
  342. package/lib/services/rulesets.d.ts.map +1 -0
  343. package/lib/services/rulesets.js +7852 -0
  344. package/lib/services/rulesets.js.map +1 -0
  345. package/lib/services/rum.d.ts +289 -0
  346. package/lib/services/rum.d.ts.map +1 -0
  347. package/lib/services/rum.js +409 -0
  348. package/lib/services/rum.js.map +1 -0
  349. package/lib/services/schema-validation.d.ts +240 -0
  350. package/lib/services/schema-validation.d.ts.map +1 -0
  351. package/lib/services/schema-validation.js +306 -0
  352. package/lib/services/schema-validation.js.map +1 -0
  353. package/lib/services/secrets-store.d.ts +321 -0
  354. package/lib/services/secrets-store.d.ts.map +1 -0
  355. package/lib/services/secrets-store.js +385 -0
  356. package/lib/services/secrets-store.js.map +1 -0
  357. package/lib/services/security-center.d.ts +102 -0
  358. package/lib/services/security-center.d.ts.map +1 -0
  359. package/lib/services/security-center.js +170 -0
  360. package/lib/services/security-center.js.map +1 -0
  361. package/lib/services/security-txt.d.ts +105 -0
  362. package/lib/services/security-txt.d.ts.map +1 -0
  363. package/lib/services/security-txt.js +136 -0
  364. package/lib/services/security-txt.js.map +1 -0
  365. package/lib/services/snippets.d.ts +138 -0
  366. package/lib/services/snippets.d.ts.map +1 -0
  367. package/lib/services/snippets.js +178 -0
  368. package/lib/services/snippets.js.map +1 -0
  369. package/lib/services/spectrum.d.ts +316 -0
  370. package/lib/services/spectrum.d.ts.map +1 -0
  371. package/lib/services/spectrum.js +510 -0
  372. package/lib/services/spectrum.js.map +1 -0
  373. package/lib/services/speed.d.ts +227 -0
  374. package/lib/services/speed.d.ts.map +1 -0
  375. package/lib/services/speed.js +444 -0
  376. package/lib/services/speed.js.map +1 -0
  377. package/lib/services/ssl.d.ts +370 -0
  378. package/lib/services/ssl.d.ts.map +1 -0
  379. package/lib/services/ssl.js +732 -0
  380. package/lib/services/ssl.js.map +1 -0
  381. package/lib/services/stream.d.ts +1014 -0
  382. package/lib/services/stream.d.ts.map +1 -0
  383. package/lib/services/stream.js +1049 -0
  384. package/lib/services/stream.js.map +1 -0
  385. package/lib/services/token-validation.d.ts +547 -0
  386. package/lib/services/token-validation.d.ts.map +1 -0
  387. package/lib/services/token-validation.js +768 -0
  388. package/lib/services/token-validation.js.map +1 -0
  389. package/lib/services/turnstile.d.ts +248 -0
  390. package/lib/services/turnstile.d.ts.map +1 -0
  391. package/lib/services/turnstile.js +308 -0
  392. package/lib/services/turnstile.js.map +1 -0
  393. package/lib/services/url-normalization.d.ts +53 -0
  394. package/lib/services/url-normalization.d.ts.map +1 -0
  395. package/lib/services/url-normalization.js +52 -0
  396. package/lib/services/url-normalization.js.map +1 -0
  397. package/lib/services/url-scanner.d.ts +612 -0
  398. package/lib/services/url-scanner.d.ts.map +1 -0
  399. package/lib/services/url-scanner.js +915 -0
  400. package/lib/services/url-scanner.js.map +1 -0
  401. package/lib/services/user.d.ts +441 -0
  402. package/lib/services/user.d.ts.map +1 -0
  403. package/lib/services/user.js +567 -0
  404. package/lib/services/user.js.map +1 -0
  405. package/lib/services/vectorize.d.ts +282 -0
  406. package/lib/services/vectorize.d.ts.map +1 -0
  407. package/lib/services/vectorize.js +340 -0
  408. package/lib/services/vectorize.js.map +1 -0
  409. package/lib/services/waiting-rooms.d.ts +1009 -0
  410. package/lib/services/waiting-rooms.d.ts.map +1 -0
  411. package/lib/services/waiting-rooms.js +1757 -0
  412. package/lib/services/waiting-rooms.js.map +1 -0
  413. package/lib/services/web3.d.ts +274 -0
  414. package/lib/services/web3.d.ts.map +1 -0
  415. package/lib/services/web3.js +362 -0
  416. package/lib/services/web3.js.map +1 -0
  417. package/lib/services/workers-for-platforms.d.ts +1224 -0
  418. package/lib/services/workers-for-platforms.d.ts.map +1 -0
  419. package/lib/services/workers-for-platforms.js +2078 -0
  420. package/lib/services/workers-for-platforms.js.map +1 -0
  421. package/lib/services/workers.d.ts +3498 -0
  422. package/lib/services/workers.d.ts.map +1 -0
  423. package/lib/services/workers.js +5967 -0
  424. package/lib/services/workers.js.map +1 -0
  425. package/lib/services/workflows.d.ts +359 -0
  426. package/lib/services/workflows.d.ts.map +1 -0
  427. package/lib/services/workflows.js +516 -0
  428. package/lib/services/workflows.js.map +1 -0
  429. package/lib/services/zaraz.d.ts +300 -0
  430. package/lib/services/zaraz.d.ts.map +1 -0
  431. package/lib/services/zaraz.js +298 -0
  432. package/lib/services/zaraz.js.map +1 -0
  433. package/lib/services/zero-trust.d.ts +15449 -0
  434. package/lib/services/zero-trust.d.ts.map +1 -0
  435. package/lib/services/zero-trust.js +29194 -0
  436. package/lib/services/zero-trust.js.map +1 -0
  437. package/lib/services/zones.d.ts +1278 -0
  438. package/lib/services/zones.d.ts.map +1 -0
  439. package/lib/services/zones.js +2416 -0
  440. package/lib/services/zones.js.map +1 -0
  441. package/lib/traits.d.ts +28 -0
  442. package/lib/traits.d.ts.map +1 -0
  443. package/lib/traits.js +26 -0
  444. package/lib/traits.js.map +1 -0
  445. package/package.json +67 -5
  446. package/src/auth.ts +14 -0
  447. package/src/category.ts +1 -0
  448. package/src/client/api.ts +269 -0
  449. package/src/client/index.ts +7 -0
  450. package/src/credentials.ts +30 -0
  451. package/src/errors.ts +65 -0
  452. package/src/index.ts +9 -0
  453. package/src/retry.ts +35 -0
  454. package/src/schemas.ts +51 -0
  455. package/src/services/abuse-reports.ts +747 -0
  456. package/src/services/accounts.ts +1947 -0
  457. package/src/services/acm.ts +170 -0
  458. package/src/services/addressing.ts +3947 -0
  459. package/src/services/ai-gateway.ts +3335 -0
  460. package/src/services/ai.ts +727 -0
  461. package/src/services/aisearch.ts +4750 -0
  462. package/src/services/alerting.ts +2947 -0
  463. package/src/services/api-gateway.ts +3391 -0
  464. package/src/services/argo.ts +254 -0
  465. package/src/services/audit-logs.ts +90 -0
  466. package/src/services/billing.ts +172 -0
  467. package/src/services/bot-management.ts +541 -0
  468. package/src/services/botnet-feed.ts +193 -0
  469. package/src/services/brand-protection.ts +553 -0
  470. package/src/services/browser-rendering.ts +2707 -0
  471. package/src/services/cache.ts +827 -0
  472. package/src/services/calls.ts +483 -0
  473. package/src/services/certificate-authorities.ts +110 -0
  474. package/src/services/client-certificates.ts +718 -0
  475. package/src/services/cloud-connector.ts +181 -0
  476. package/src/services/cloudforce-one.ts +3876 -0
  477. package/src/services/connectivity.ts +629 -0
  478. package/src/services/content-scanning.ts +385 -0
  479. package/src/services/custom-certificates.ts +611 -0
  480. package/src/services/custom-hostnames.ts +2453 -0
  481. package/src/services/custom-nameservers.ts +182 -0
  482. package/src/services/custom-pages.ts +264 -0
  483. package/src/services/d1.ts +1034 -0
  484. package/src/services/dcv-delegation.ts +52 -0
  485. package/src/services/diagnostics.ts +603 -0
  486. package/src/services/dns-firewall.ts +823 -0
  487. package/src/services/dns.ts +8897 -0
  488. package/src/services/durable-objects.ts +148 -0
  489. package/src/services/email-routing.ts +1602 -0
  490. package/src/services/email-security.ts +4283 -0
  491. package/src/services/filters.ts +370 -0
  492. package/src/services/firewall.ts +3896 -0
  493. package/src/services/healthchecks.ts +1750 -0
  494. package/src/services/hostnames.ts +218 -0
  495. package/src/services/hyperdrive.ts +592 -0
  496. package/src/services/iam.ts +1668 -0
  497. package/src/services/images.ts +1086 -0
  498. package/src/services/intel.ts +2768 -0
  499. package/src/services/ips.ts +88 -0
  500. package/src/services/keyless-certificates.ts +462 -0
  501. package/src/services/kv.ts +1011 -0
  502. package/src/services/leaked-credential-checks.ts +325 -0
  503. package/src/services/load-balancers.ts +6438 -0
  504. package/src/services/logpush.ts +1667 -0
  505. package/src/services/logs.ts +375 -0
  506. package/src/services/magic-cloud-networking.ts +10020 -0
  507. package/src/services/magic-network-monitoring.ts +1156 -0
  508. package/src/services/magic-transit.ts +13050 -0
  509. package/src/services/managed-transforms.ts +237 -0
  510. package/src/services/memberships.ts +615 -0
  511. package/src/services/mtls-certificates.ts +374 -0
  512. package/src/services/network-interconnects.ts +1253 -0
  513. package/src/services/organizations.ts +674 -0
  514. package/src/services/origin-ca-certificates.ts +303 -0
  515. package/src/services/origin-post-quantum-encryption.ts +128 -0
  516. package/src/services/origin-tls-client-auth.ts +878 -0
  517. package/src/services/page-rules.ts +2612 -0
  518. package/src/services/page-shield.ts +1195 -0
  519. package/src/services/pages.ts +5709 -0
  520. package/src/services/pipelines.ts +6000 -0
  521. package/src/services/queues.ts +2629 -0
  522. package/src/services/r2-data-catalog.ts +1119 -0
  523. package/src/services/r2.ts +3348 -0
  524. package/src/services/radar.ts +42152 -0
  525. package/src/services/rate-limits.ts +1150 -0
  526. package/src/services/realtime-kit.ts +11079 -0
  527. package/src/services/registrar.ts +295 -0
  528. package/src/services/request-tracers.ts +158 -0
  529. package/src/services/resource-sharing.ts +1832 -0
  530. package/src/services/rules.ts +837 -0
  531. package/src/services/rulesets.ts +15144 -0
  532. package/src/services/rum.ts +901 -0
  533. package/src/services/schema-validation.ts +733 -0
  534. package/src/services/secrets-store.ts +860 -0
  535. package/src/services/security-center.ts +397 -0
  536. package/src/services/security-txt.ts +315 -0
  537. package/src/services/snippets.ts +420 -0
  538. package/src/services/spectrum.ts +1103 -0
  539. package/src/services/speed.ts +1056 -0
  540. package/src/services/ssl.ts +1587 -0
  541. package/src/services/stream.ts +2756 -0
  542. package/src/services/token-validation.ts +1585 -0
  543. package/src/services/turnstile.ts +643 -0
  544. package/src/services/url-normalization.ts +129 -0
  545. package/src/services/url-scanner.ts +1851 -0
  546. package/src/services/user.ts +1384 -0
  547. package/src/services/vectorize.ts +816 -0
  548. package/src/services/waiting-rooms.ts +3807 -0
  549. package/src/services/web3.ts +834 -0
  550. package/src/services/workers-for-platforms.ts +3859 -0
  551. package/src/services/workers.ts +11637 -0
  552. package/src/services/workflows.ts +1124 -0
  553. package/src/services/zaraz.ts +797 -0
  554. package/src/services/zero-trust.ts +58933 -0
  555. package/src/services/zones.ts +4875 -0
  556. package/src/traits.ts +47 -0
  557. package/README.md +0 -15
  558. package/bun.lock +0 -26
  559. package/index.ts +0 -1
  560. package/tsconfig.json +0 -29
@@ -0,0 +1,2065 @@
1
+ /**
2
+ * Cloudflare EMAIL-SECURITY API
3
+ *
4
+ * Generated from Cloudflare TypeScript SDK.
5
+ * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service email-security
6
+ */
7
+ import * as Schema from "effect/Schema";
8
+ import * as API from "../client/api.js";
9
+ import * as T from "../traits";
10
+ import {} from "../errors";
11
+ export const GetInvestigateRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
12
+ postfixId: Schema.String.pipe(T.HttpPath("postfixId")),
13
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
14
+ }).pipe(T.Http({
15
+ method: "GET",
16
+ path: "/accounts/{account_id}/email-security/investigate/{postfixId}",
17
+ }));
18
+ export const GetInvestigateResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
19
+ id: Schema.String,
20
+ actionLog: Schema.Unknown,
21
+ clientRecipients: Schema.Array(Schema.String),
22
+ detectionReasons: Schema.Array(Schema.String),
23
+ isPhishSubmission: Schema.Boolean,
24
+ isQuarantined: Schema.Boolean,
25
+ postfixId: Schema.String,
26
+ properties: Schema.Struct({
27
+ allowlistedPattern: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
28
+ allowlistedPatternType: Schema.optional(Schema.Union([
29
+ Schema.Literals([
30
+ "quarantine_release",
31
+ "acceptable_sender",
32
+ "allowed_sender",
33
+ "allowed_recipient",
34
+ "domain_similarity",
35
+ "domain_recency",
36
+ "managed_acceptable_sender",
37
+ "outbound_ndr",
38
+ ]),
39
+ Schema.Null,
40
+ ])),
41
+ blocklistedMessage: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
42
+ blocklistedPattern: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
43
+ whitelistedPatternType: Schema.optional(Schema.Union([
44
+ Schema.Literals([
45
+ "quarantine_release",
46
+ "acceptable_sender",
47
+ "allowed_sender",
48
+ "allowed_recipient",
49
+ "domain_similarity",
50
+ "domain_recency",
51
+ "managed_acceptable_sender",
52
+ "outbound_ndr",
53
+ ]),
54
+ Schema.Null,
55
+ ])),
56
+ }).pipe(Schema.encodeKeys({
57
+ allowlistedPattern: "allowlisted_pattern",
58
+ allowlistedPatternType: "allowlisted_pattern_type",
59
+ blocklistedMessage: "blocklisted_message",
60
+ blocklistedPattern: "blocklisted_pattern",
61
+ whitelistedPatternType: "whitelisted_pattern_type",
62
+ })),
63
+ ts: Schema.String,
64
+ alertId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
65
+ deliveryMode: Schema.optional(Schema.Union([
66
+ Schema.Literal("DIRECT"),
67
+ Schema.Literal("BCC"),
68
+ Schema.Literal("JOURNAL"),
69
+ Schema.Literal("REVIEW_SUBMISSION"),
70
+ Schema.Literal("DMARC_UNVERIFIED"),
71
+ Schema.Literal("DMARC_FAILURE_REPORT"),
72
+ Schema.Literal("DMARC_AGGREGATE_REPORT"),
73
+ Schema.Literal("THREAT_INTEL_SUBMISSION"),
74
+ Schema.Literal("SIMULATION_SUBMISSION"),
75
+ Schema.Literal("API"),
76
+ Schema.Literal("RETRO_SCAN"),
77
+ Schema.Null,
78
+ ])),
79
+ edfHash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
80
+ envelopeFrom: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
81
+ envelopeTo: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
82
+ finalDisposition: Schema.optional(Schema.Union([
83
+ Schema.Literal("MALICIOUS"),
84
+ Schema.Literal("MALICIOUS-BEC"),
85
+ Schema.Literal("SUSPICIOUS"),
86
+ Schema.Literal("SPOOF"),
87
+ Schema.Literal("SPAM"),
88
+ Schema.Literal("BULK"),
89
+ Schema.Literal("ENCRYPTED"),
90
+ Schema.Literal("EXTERNAL"),
91
+ Schema.Literal("UNKNOWN"),
92
+ Schema.Literal("NONE"),
93
+ Schema.Null,
94
+ ])),
95
+ findings: Schema.optional(Schema.Union([
96
+ Schema.Array(Schema.Struct({
97
+ attachment: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
98
+ detail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
99
+ detection: Schema.optional(Schema.Union([
100
+ Schema.Literal("MALICIOUS"),
101
+ Schema.Literal("MALICIOUS-BEC"),
102
+ Schema.Literal("SUSPICIOUS"),
103
+ Schema.Literal("SPOOF"),
104
+ Schema.Literal("SPAM"),
105
+ Schema.Literal("BULK"),
106
+ Schema.Literal("ENCRYPTED"),
107
+ Schema.Literal("EXTERNAL"),
108
+ Schema.Literal("UNKNOWN"),
109
+ Schema.Literal("NONE"),
110
+ Schema.Null,
111
+ ])),
112
+ field: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
113
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
114
+ portion: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
115
+ reason: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
116
+ score: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
117
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
118
+ })),
119
+ Schema.Null,
120
+ ])),
121
+ from: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
122
+ fromName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
123
+ htmltextStructureHash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
124
+ messageId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
125
+ postfixIdOutbound: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
126
+ replyto: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
127
+ sentDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
128
+ subject: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
129
+ threatCategories: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
130
+ to: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
131
+ toName: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
132
+ validation: Schema.optional(Schema.Union([
133
+ Schema.Struct({
134
+ comment: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
135
+ dkim: Schema.optional(Schema.Union([
136
+ Schema.Literal("pass"),
137
+ Schema.Literal("neutral"),
138
+ Schema.Literal("fail"),
139
+ Schema.Literal("error"),
140
+ Schema.Literal("none"),
141
+ Schema.Null,
142
+ ])),
143
+ dmarc: Schema.optional(Schema.Union([
144
+ Schema.Literal("pass"),
145
+ Schema.Literal("neutral"),
146
+ Schema.Literal("fail"),
147
+ Schema.Literal("error"),
148
+ Schema.Literal("none"),
149
+ Schema.Null,
150
+ ])),
151
+ spf: Schema.optional(Schema.Union([
152
+ Schema.Literal("pass"),
153
+ Schema.Literal("neutral"),
154
+ Schema.Literal("fail"),
155
+ Schema.Literal("error"),
156
+ Schema.Literal("none"),
157
+ Schema.Null,
158
+ ])),
159
+ }),
160
+ Schema.Null,
161
+ ])),
162
+ }).pipe(Schema.encodeKeys({
163
+ id: "id",
164
+ actionLog: "action_log",
165
+ clientRecipients: "client_recipients",
166
+ detectionReasons: "detection_reasons",
167
+ isPhishSubmission: "is_phish_submission",
168
+ isQuarantined: "is_quarantined",
169
+ postfixId: "postfix_id",
170
+ properties: "properties",
171
+ ts: "ts",
172
+ alertId: "alert_id",
173
+ deliveryMode: "delivery_mode",
174
+ edfHash: "edf_hash",
175
+ envelopeFrom: "envelope_from",
176
+ envelopeTo: "envelope_to",
177
+ finalDisposition: "final_disposition",
178
+ findings: "findings",
179
+ from: "from",
180
+ fromName: "from_name",
181
+ htmltextStructureHash: "htmltext_structure_hash",
182
+ messageId: "message_id",
183
+ postfixIdOutbound: "postfix_id_outbound",
184
+ replyto: "replyto",
185
+ sentDate: "sent_date",
186
+ subject: "subject",
187
+ threatCategories: "threat_categories",
188
+ to: "to",
189
+ toName: "to_name",
190
+ validation: "validation",
191
+ }));
192
+ export const getInvestigate = API.make(() => ({
193
+ input: GetInvestigateRequest,
194
+ output: GetInvestigateResponse,
195
+ errors: [],
196
+ }));
197
+ export const ListInvestigatesRequest =
198
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
199
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
200
+ actionLog: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("action_log")),
201
+ alertId: Schema.optional(Schema.String).pipe(T.HttpQuery("alert_id")),
202
+ cursor: Schema.optional(Schema.String).pipe(T.HttpQuery("cursor")),
203
+ detectionsOnly: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("detections_only")),
204
+ domain: Schema.optional(Schema.String).pipe(T.HttpQuery("domain")),
205
+ end: Schema.optional(Schema.String).pipe(T.HttpQuery("end")),
206
+ finalDisposition: Schema.optional(Schema.Literals([
207
+ "MALICIOUS",
208
+ "SUSPICIOUS",
209
+ "SPOOF",
210
+ "SPAM",
211
+ "BULK",
212
+ "NONE",
213
+ ])).pipe(T.HttpQuery("final_disposition")),
214
+ messageAction: Schema.optional(Schema.Literals(["PREVIEW", "QUARANTINE_RELEASED", "MOVED"])).pipe(T.HttpQuery("message_action")),
215
+ messageId: Schema.optional(Schema.String).pipe(T.HttpQuery("message_id")),
216
+ metric: Schema.optional(Schema.String).pipe(T.HttpQuery("metric")),
217
+ query: Schema.optional(Schema.String).pipe(T.HttpQuery("query")),
218
+ recipient: Schema.optional(Schema.String).pipe(T.HttpQuery("recipient")),
219
+ sender: Schema.optional(Schema.String).pipe(T.HttpQuery("sender")),
220
+ start: Schema.optional(Schema.String).pipe(T.HttpQuery("start")),
221
+ subject: Schema.optional(Schema.String).pipe(T.HttpQuery("subject")),
222
+ }).pipe(T.Http({
223
+ method: "GET",
224
+ path: "/accounts/{account_id}/email-security/investigate",
225
+ }));
226
+ export const ListInvestigatesResponse =
227
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
228
+ id: Schema.String,
229
+ actionLog: Schema.Unknown,
230
+ clientRecipients: Schema.Array(Schema.String),
231
+ detectionReasons: Schema.Array(Schema.String),
232
+ isPhishSubmission: Schema.Boolean,
233
+ isQuarantined: Schema.Boolean,
234
+ postfixId: Schema.String,
235
+ properties: Schema.Struct({
236
+ allowlistedPattern: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
237
+ allowlistedPatternType: Schema.optional(Schema.Union([
238
+ Schema.Literals([
239
+ "quarantine_release",
240
+ "acceptable_sender",
241
+ "allowed_sender",
242
+ "allowed_recipient",
243
+ "domain_similarity",
244
+ "domain_recency",
245
+ "managed_acceptable_sender",
246
+ "outbound_ndr",
247
+ ]),
248
+ Schema.Null,
249
+ ])),
250
+ blocklistedMessage: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
251
+ blocklistedPattern: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
252
+ whitelistedPatternType: Schema.optional(Schema.Union([
253
+ Schema.Literals([
254
+ "quarantine_release",
255
+ "acceptable_sender",
256
+ "allowed_sender",
257
+ "allowed_recipient",
258
+ "domain_similarity",
259
+ "domain_recency",
260
+ "managed_acceptable_sender",
261
+ "outbound_ndr",
262
+ ]),
263
+ Schema.Null,
264
+ ])),
265
+ }).pipe(Schema.encodeKeys({
266
+ allowlistedPattern: "allowlisted_pattern",
267
+ allowlistedPatternType: "allowlisted_pattern_type",
268
+ blocklistedMessage: "blocklisted_message",
269
+ blocklistedPattern: "blocklisted_pattern",
270
+ whitelistedPatternType: "whitelisted_pattern_type",
271
+ })),
272
+ ts: Schema.String,
273
+ alertId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
274
+ deliveryMode: Schema.optional(Schema.Union([
275
+ Schema.Literal("DIRECT"),
276
+ Schema.Literal("BCC"),
277
+ Schema.Literal("JOURNAL"),
278
+ Schema.Literal("REVIEW_SUBMISSION"),
279
+ Schema.Literal("DMARC_UNVERIFIED"),
280
+ Schema.Literal("DMARC_FAILURE_REPORT"),
281
+ Schema.Literal("DMARC_AGGREGATE_REPORT"),
282
+ Schema.Literal("THREAT_INTEL_SUBMISSION"),
283
+ Schema.Literal("SIMULATION_SUBMISSION"),
284
+ Schema.Literal("API"),
285
+ Schema.Literal("RETRO_SCAN"),
286
+ Schema.Null,
287
+ ])),
288
+ edfHash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
289
+ envelopeFrom: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
290
+ envelopeTo: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
291
+ finalDisposition: Schema.optional(Schema.Union([
292
+ Schema.Literal("MALICIOUS"),
293
+ Schema.Literal("MALICIOUS-BEC"),
294
+ Schema.Literal("SUSPICIOUS"),
295
+ Schema.Literal("SPOOF"),
296
+ Schema.Literal("SPAM"),
297
+ Schema.Literal("BULK"),
298
+ Schema.Literal("ENCRYPTED"),
299
+ Schema.Literal("EXTERNAL"),
300
+ Schema.Literal("UNKNOWN"),
301
+ Schema.Literal("NONE"),
302
+ Schema.Null,
303
+ ])),
304
+ findings: Schema.optional(Schema.Union([
305
+ Schema.Array(Schema.Struct({
306
+ attachment: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
307
+ detail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
308
+ detection: Schema.optional(Schema.Union([
309
+ Schema.Literal("MALICIOUS"),
310
+ Schema.Literal("MALICIOUS-BEC"),
311
+ Schema.Literal("SUSPICIOUS"),
312
+ Schema.Literal("SPOOF"),
313
+ Schema.Literal("SPAM"),
314
+ Schema.Literal("BULK"),
315
+ Schema.Literal("ENCRYPTED"),
316
+ Schema.Literal("EXTERNAL"),
317
+ Schema.Literal("UNKNOWN"),
318
+ Schema.Literal("NONE"),
319
+ Schema.Null,
320
+ ])),
321
+ field: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
322
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
323
+ portion: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
324
+ reason: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
325
+ score: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
326
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
327
+ })),
328
+ Schema.Null,
329
+ ])),
330
+ from: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
331
+ fromName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
332
+ htmltextStructureHash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
333
+ messageId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
334
+ postfixIdOutbound: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
335
+ replyto: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
336
+ sentDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
337
+ subject: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
338
+ threatCategories: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
339
+ to: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
340
+ toName: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
341
+ validation: Schema.optional(Schema.Union([
342
+ Schema.Struct({
343
+ comment: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
344
+ dkim: Schema.optional(Schema.Union([
345
+ Schema.Literal("pass"),
346
+ Schema.Literal("neutral"),
347
+ Schema.Literal("fail"),
348
+ Schema.Literal("error"),
349
+ Schema.Literal("none"),
350
+ Schema.Null,
351
+ ])),
352
+ dmarc: Schema.optional(Schema.Union([
353
+ Schema.Literal("pass"),
354
+ Schema.Literal("neutral"),
355
+ Schema.Literal("fail"),
356
+ Schema.Literal("error"),
357
+ Schema.Literal("none"),
358
+ Schema.Null,
359
+ ])),
360
+ spf: Schema.optional(Schema.Union([
361
+ Schema.Literal("pass"),
362
+ Schema.Literal("neutral"),
363
+ Schema.Literal("fail"),
364
+ Schema.Literal("error"),
365
+ Schema.Literal("none"),
366
+ Schema.Null,
367
+ ])),
368
+ }),
369
+ Schema.Null,
370
+ ])),
371
+ }).pipe(Schema.encodeKeys({
372
+ id: "id",
373
+ actionLog: "action_log",
374
+ clientRecipients: "client_recipients",
375
+ detectionReasons: "detection_reasons",
376
+ isPhishSubmission: "is_phish_submission",
377
+ isQuarantined: "is_quarantined",
378
+ postfixId: "postfix_id",
379
+ properties: "properties",
380
+ ts: "ts",
381
+ alertId: "alert_id",
382
+ deliveryMode: "delivery_mode",
383
+ edfHash: "edf_hash",
384
+ envelopeFrom: "envelope_from",
385
+ envelopeTo: "envelope_to",
386
+ finalDisposition: "final_disposition",
387
+ findings: "findings",
388
+ from: "from",
389
+ fromName: "from_name",
390
+ htmltextStructureHash: "htmltext_structure_hash",
391
+ messageId: "message_id",
392
+ postfixIdOutbound: "postfix_id_outbound",
393
+ replyto: "replyto",
394
+ sentDate: "sent_date",
395
+ subject: "subject",
396
+ threatCategories: "threat_categories",
397
+ to: "to",
398
+ toName: "to_name",
399
+ validation: "validation",
400
+ })));
401
+ export const listInvestigates = API.make(() => ({
402
+ input: ListInvestigatesRequest,
403
+ output: ListInvestigatesResponse,
404
+ errors: [],
405
+ }));
406
+ export const GetInvestigateDetectionRequest =
407
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
408
+ postfixId: Schema.String.pipe(T.HttpPath("postfixId")),
409
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
410
+ }).pipe(T.Http({
411
+ method: "GET",
412
+ path: "/accounts/{account_id}/email-security/investigate/{postfixId}/detections",
413
+ }));
414
+ export const GetInvestigateDetectionResponse =
415
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
416
+ action: Schema.String,
417
+ attachments: Schema.Array(Schema.Struct({
418
+ size: Schema.Number,
419
+ contentType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
420
+ detection: Schema.optional(Schema.Union([
421
+ Schema.Literal("MALICIOUS"),
422
+ Schema.Literal("MALICIOUS-BEC"),
423
+ Schema.Literal("SUSPICIOUS"),
424
+ Schema.Literal("SPOOF"),
425
+ Schema.Literal("SPAM"),
426
+ Schema.Literal("BULK"),
427
+ Schema.Literal("ENCRYPTED"),
428
+ Schema.Literal("EXTERNAL"),
429
+ Schema.Literal("UNKNOWN"),
430
+ Schema.Literal("NONE"),
431
+ Schema.Null,
432
+ ])),
433
+ encrypted: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
434
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
435
+ }).pipe(Schema.encodeKeys({
436
+ size: "size",
437
+ contentType: "content_type",
438
+ detection: "detection",
439
+ encrypted: "encrypted",
440
+ name: "name",
441
+ }))),
442
+ headers: Schema.Array(Schema.Struct({
443
+ name: Schema.String,
444
+ value: Schema.String,
445
+ })),
446
+ links: Schema.Array(Schema.Struct({
447
+ href: Schema.String,
448
+ text: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
449
+ })),
450
+ senderInfo: Schema.Struct({
451
+ asName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
452
+ asNumber: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
453
+ geo: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
454
+ ip: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
455
+ pld: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
456
+ }).pipe(Schema.encodeKeys({
457
+ asName: "as_name",
458
+ asNumber: "as_number",
459
+ geo: "geo",
460
+ ip: "ip",
461
+ pld: "pld",
462
+ })),
463
+ threatCategories: Schema.Array(Schema.Struct({
464
+ id: Schema.Number,
465
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
466
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
467
+ })),
468
+ validation: Schema.Struct({
469
+ comment: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
470
+ dkim: Schema.optional(Schema.Union([
471
+ Schema.Literal("pass"),
472
+ Schema.Literal("neutral"),
473
+ Schema.Literal("fail"),
474
+ Schema.Literal("error"),
475
+ Schema.Literal("none"),
476
+ Schema.Null,
477
+ ])),
478
+ dmarc: Schema.optional(Schema.Union([
479
+ Schema.Literal("pass"),
480
+ Schema.Literal("neutral"),
481
+ Schema.Literal("fail"),
482
+ Schema.Literal("error"),
483
+ Schema.Literal("none"),
484
+ Schema.Null,
485
+ ])),
486
+ spf: Schema.optional(Schema.Union([
487
+ Schema.Literal("pass"),
488
+ Schema.Literal("neutral"),
489
+ Schema.Literal("fail"),
490
+ Schema.Literal("error"),
491
+ Schema.Literal("none"),
492
+ Schema.Null,
493
+ ])),
494
+ }),
495
+ finalDisposition: Schema.optional(Schema.Union([
496
+ Schema.Literal("MALICIOUS"),
497
+ Schema.Literal("MALICIOUS-BEC"),
498
+ Schema.Literal("SUSPICIOUS"),
499
+ Schema.Literal("SPOOF"),
500
+ Schema.Literal("SPAM"),
501
+ Schema.Literal("BULK"),
502
+ Schema.Literal("ENCRYPTED"),
503
+ Schema.Literal("EXTERNAL"),
504
+ Schema.Literal("UNKNOWN"),
505
+ Schema.Literal("NONE"),
506
+ Schema.Null,
507
+ ])),
508
+ }).pipe(Schema.encodeKeys({
509
+ action: "action",
510
+ attachments: "attachments",
511
+ headers: "headers",
512
+ links: "links",
513
+ senderInfo: "sender_info",
514
+ threatCategories: "threat_categories",
515
+ validation: "validation",
516
+ finalDisposition: "final_disposition",
517
+ }));
518
+ export const getInvestigateDetection = API.make(() => ({
519
+ input: GetInvestigateDetectionRequest,
520
+ output: GetInvestigateDetectionResponse,
521
+ errors: [],
522
+ }));
523
+ export const CreateInvestigateMoveRequest =
524
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
525
+ postfixId: Schema.String.pipe(T.HttpPath("postfixId")),
526
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
527
+ destination: Schema.Literals([
528
+ "Inbox",
529
+ "JunkEmail",
530
+ "DeletedItems",
531
+ "RecoverableItemsDeletions",
532
+ "RecoverableItemsPurges",
533
+ ]),
534
+ }).pipe(T.Http({
535
+ method: "POST",
536
+ path: "/accounts/{account_id}/email-security/investigate/{postfixId}/move",
537
+ }));
538
+ export const CreateInvestigateMoveResponse =
539
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
540
+ completedTimestamp: Schema.String,
541
+ itemCount: Schema.Number,
542
+ success: Schema.Boolean,
543
+ destination: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
544
+ messageId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
545
+ operation: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
546
+ recipient: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
547
+ status: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
548
+ }).pipe(Schema.encodeKeys({
549
+ completedTimestamp: "completed_timestamp",
550
+ itemCount: "item_count",
551
+ success: "success",
552
+ destination: "destination",
553
+ messageId: "message_id",
554
+ operation: "operation",
555
+ recipient: "recipient",
556
+ status: "status",
557
+ })));
558
+ export const createInvestigateMove = API.make(() => ({
559
+ input: CreateInvestigateMoveRequest,
560
+ output: CreateInvestigateMoveResponse,
561
+ errors: [],
562
+ }));
563
+ export const BulkInvestigateMoveRequest =
564
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
565
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
566
+ destination: Schema.Literals([
567
+ "Inbox",
568
+ "JunkEmail",
569
+ "DeletedItems",
570
+ "RecoverableItemsDeletions",
571
+ "RecoverableItemsPurges",
572
+ ]),
573
+ postfixIds: Schema.Array(Schema.String),
574
+ }).pipe(Schema.encodeKeys({
575
+ destination: "destination",
576
+ postfixIds: "postfix_ids",
577
+ }), T.Http({
578
+ method: "POST",
579
+ path: "/accounts/{account_id}/email-security/investigate/move",
580
+ }));
581
+ export const BulkInvestigateMoveResponse =
582
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
583
+ completedTimestamp: Schema.String,
584
+ itemCount: Schema.Number,
585
+ success: Schema.Boolean,
586
+ destination: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
587
+ messageId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
588
+ operation: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
589
+ recipient: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
590
+ status: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
591
+ }).pipe(Schema.encodeKeys({
592
+ completedTimestamp: "completed_timestamp",
593
+ itemCount: "item_count",
594
+ success: "success",
595
+ destination: "destination",
596
+ messageId: "message_id",
597
+ operation: "operation",
598
+ recipient: "recipient",
599
+ status: "status",
600
+ })));
601
+ export const bulkInvestigateMove = API.make(() => ({
602
+ input: BulkInvestigateMoveRequest,
603
+ output: BulkInvestigateMoveResponse,
604
+ errors: [],
605
+ }));
606
+ export const GetInvestigatePreviewRequest =
607
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
608
+ postfixId: Schema.String.pipe(T.HttpPath("postfixId")),
609
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
610
+ }).pipe(T.Http({
611
+ method: "GET",
612
+ path: "/accounts/{account_id}/email-security/investigate/{postfixId}/preview",
613
+ }));
614
+ export const GetInvestigatePreviewResponse =
615
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
616
+ screenshot: Schema.String,
617
+ });
618
+ export const getInvestigatePreview = API.make(() => ({
619
+ input: GetInvestigatePreviewRequest,
620
+ output: GetInvestigatePreviewResponse,
621
+ errors: [],
622
+ }));
623
+ export const CreateInvestigatePreviewRequest =
624
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
625
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
626
+ postfixId: Schema.String,
627
+ }).pipe(Schema.encodeKeys({ postfixId: "postfix_id" }), T.Http({
628
+ method: "POST",
629
+ path: "/accounts/{account_id}/email-security/investigate/preview",
630
+ }));
631
+ export const CreateInvestigatePreviewResponse =
632
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
633
+ screenshot: Schema.String,
634
+ });
635
+ export const createInvestigatePreview = API.make(() => ({
636
+ input: CreateInvestigatePreviewRequest,
637
+ output: CreateInvestigatePreviewResponse,
638
+ errors: [],
639
+ }));
640
+ export const GetInvestigateRawRequest =
641
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
642
+ postfixId: Schema.String.pipe(T.HttpPath("postfixId")),
643
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
644
+ }).pipe(T.Http({
645
+ method: "GET",
646
+ path: "/accounts/{account_id}/email-security/investigate/{postfixId}/raw",
647
+ }));
648
+ export const GetInvestigateRawResponse =
649
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
650
+ raw: Schema.String,
651
+ });
652
+ export const getInvestigateRaw = API.make(() => ({
653
+ input: GetInvestigateRawRequest,
654
+ output: GetInvestigateRawResponse,
655
+ errors: [],
656
+ }));
657
+ export const CreateInvestigateReclassifyRequest =
658
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
659
+ postfixId: Schema.String.pipe(T.HttpPath("postfixId")),
660
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
661
+ expectedDisposition: Schema.Literals([
662
+ "NONE",
663
+ "BULK",
664
+ "MALICIOUS",
665
+ "SPAM",
666
+ "SPOOF",
667
+ "SUSPICIOUS",
668
+ ]),
669
+ emlContent: Schema.optional(Schema.String),
670
+ escalatedSubmissionId: Schema.optional(Schema.String),
671
+ }).pipe(Schema.encodeKeys({
672
+ expectedDisposition: "expected_disposition",
673
+ emlContent: "eml_content",
674
+ escalatedSubmissionId: "escalated_submission_id",
675
+ }), T.Http({
676
+ method: "POST",
677
+ path: "/accounts/{account_id}/email-security/investigate/{postfixId}/reclassify",
678
+ }));
679
+ export const CreateInvestigateReclassifyResponse =
680
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
681
+ export const createInvestigateReclassify = API.make(() => ({
682
+ input: CreateInvestigateReclassifyRequest,
683
+ output: CreateInvestigateReclassifyResponse,
684
+ errors: [],
685
+ }));
686
+ export const BulkInvestigateReleaseRequest =
687
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
688
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
689
+ body: Schema.Array(Schema.String).pipe(T.HttpBody()),
690
+ }).pipe(T.Http({
691
+ method: "POST",
692
+ path: "/accounts/{account_id}/email-security/investigate/release",
693
+ }));
694
+ export const BulkInvestigateReleaseResponse =
695
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
696
+ postfixId: Schema.String,
697
+ delivered: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
698
+ failed: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
699
+ undelivered: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
700
+ }).pipe(Schema.encodeKeys({
701
+ postfixId: "postfix_id",
702
+ delivered: "delivered",
703
+ failed: "failed",
704
+ undelivered: "undelivered",
705
+ })));
706
+ export const bulkInvestigateRelease = API.make(() => ({
707
+ input: BulkInvestigateReleaseRequest,
708
+ output: BulkInvestigateReleaseResponse,
709
+ errors: [],
710
+ }));
711
+ export const GetInvestigateTraceRequest =
712
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
713
+ postfixId: Schema.String.pipe(T.HttpPath("postfixId")),
714
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
715
+ }).pipe(T.Http({
716
+ method: "GET",
717
+ path: "/accounts/{account_id}/email-security/investigate/{postfixId}/trace",
718
+ }));
719
+ export const GetInvestigateTraceResponse =
720
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
721
+ inbound: Schema.Struct({
722
+ lines: Schema.optional(Schema.Union([
723
+ Schema.Array(Schema.Struct({
724
+ lineno: Schema.Number,
725
+ message: Schema.String,
726
+ ts: Schema.String,
727
+ })),
728
+ Schema.Null,
729
+ ])),
730
+ pending: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
731
+ }),
732
+ outbound: Schema.Struct({
733
+ lines: Schema.optional(Schema.Union([
734
+ Schema.Array(Schema.Struct({
735
+ lineno: Schema.Number,
736
+ message: Schema.String,
737
+ ts: Schema.String,
738
+ })),
739
+ Schema.Null,
740
+ ])),
741
+ pending: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
742
+ }),
743
+ });
744
+ export const getInvestigateTrace = API.make(() => ({
745
+ input: GetInvestigateTraceRequest,
746
+ output: GetInvestigateTraceResponse,
747
+ errors: [],
748
+ }));
749
+ export const GetSettingAllowPolicyRequest =
750
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
751
+ policyId: Schema.Number.pipe(T.HttpPath("policyId")),
752
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
753
+ }).pipe(T.Http({
754
+ method: "GET",
755
+ path: "/accounts/{account_id}/email-security/settings/allow_policies/{policyId}",
756
+ }));
757
+ export const GetSettingAllowPolicyResponse =
758
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
759
+ id: Schema.Number,
760
+ createdAt: Schema.String,
761
+ isAcceptableSender: Schema.Boolean,
762
+ isExemptRecipient: Schema.Boolean,
763
+ isRegex: Schema.Boolean,
764
+ isTrustedSender: Schema.Boolean,
765
+ lastModified: Schema.String,
766
+ pattern: Schema.String,
767
+ patternType: Schema.Literals(["EMAIL", "DOMAIN", "IP", "UNKNOWN"]),
768
+ verifySender: Schema.Boolean,
769
+ comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
770
+ isRecipient: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
771
+ isSender: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
772
+ isSpoof: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
773
+ }).pipe(Schema.encodeKeys({
774
+ id: "id",
775
+ createdAt: "created_at",
776
+ isAcceptableSender: "is_acceptable_sender",
777
+ isExemptRecipient: "is_exempt_recipient",
778
+ isRegex: "is_regex",
779
+ isTrustedSender: "is_trusted_sender",
780
+ lastModified: "last_modified",
781
+ pattern: "pattern",
782
+ patternType: "pattern_type",
783
+ verifySender: "verify_sender",
784
+ comments: "comments",
785
+ isRecipient: "is_recipient",
786
+ isSender: "is_sender",
787
+ isSpoof: "is_spoof",
788
+ }));
789
+ export const getSettingAllowPolicy = API.make(() => ({
790
+ input: GetSettingAllowPolicyRequest,
791
+ output: GetSettingAllowPolicyResponse,
792
+ errors: [],
793
+ }));
794
+ export const ListSettingAllowPoliciesRequest =
795
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
796
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
797
+ direction: Schema.optional(Schema.Literals(["asc", "desc"])).pipe(T.HttpQuery("direction")),
798
+ isAcceptableSender: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("is_acceptable_sender")),
799
+ isExemptRecipient: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("is_exempt_recipient")),
800
+ isRecipient: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("is_recipient")),
801
+ isSender: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("is_sender")),
802
+ isSpoof: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("is_spoof")),
803
+ isTrustedSender: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("is_trusted_sender")),
804
+ order: Schema.optional(Schema.Literals(["pattern", "created_at"])).pipe(T.HttpQuery("order")),
805
+ pattern: Schema.optional(Schema.String).pipe(T.HttpQuery("pattern")),
806
+ patternType: Schema.optional(Schema.Literals(["EMAIL", "DOMAIN", "IP", "UNKNOWN"])).pipe(T.HttpQuery("pattern_type")),
807
+ search: Schema.optional(Schema.String).pipe(T.HttpQuery("search")),
808
+ verifySender: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("verify_sender")),
809
+ }).pipe(T.Http({
810
+ method: "GET",
811
+ path: "/accounts/{account_id}/email-security/settings/allow_policies",
812
+ }));
813
+ export const ListSettingAllowPoliciesResponse =
814
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
815
+ id: Schema.Number,
816
+ createdAt: Schema.String,
817
+ isAcceptableSender: Schema.Boolean,
818
+ isExemptRecipient: Schema.Boolean,
819
+ isRegex: Schema.Boolean,
820
+ isTrustedSender: Schema.Boolean,
821
+ lastModified: Schema.String,
822
+ pattern: Schema.String,
823
+ patternType: Schema.Literals(["EMAIL", "DOMAIN", "IP", "UNKNOWN"]),
824
+ verifySender: Schema.Boolean,
825
+ comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
826
+ isRecipient: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
827
+ isSender: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
828
+ isSpoof: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
829
+ }).pipe(Schema.encodeKeys({
830
+ id: "id",
831
+ createdAt: "created_at",
832
+ isAcceptableSender: "is_acceptable_sender",
833
+ isExemptRecipient: "is_exempt_recipient",
834
+ isRegex: "is_regex",
835
+ isTrustedSender: "is_trusted_sender",
836
+ lastModified: "last_modified",
837
+ pattern: "pattern",
838
+ patternType: "pattern_type",
839
+ verifySender: "verify_sender",
840
+ comments: "comments",
841
+ isRecipient: "is_recipient",
842
+ isSender: "is_sender",
843
+ isSpoof: "is_spoof",
844
+ })));
845
+ export const listSettingAllowPolicies = API.make(() => ({
846
+ input: ListSettingAllowPoliciesRequest,
847
+ output: ListSettingAllowPoliciesResponse,
848
+ errors: [],
849
+ }));
850
+ export const CreateSettingAllowPolicyRequest =
851
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
852
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
853
+ isAcceptableSender: Schema.Boolean,
854
+ isExemptRecipient: Schema.Boolean,
855
+ isRegex: Schema.Boolean,
856
+ isTrustedSender: Schema.Boolean,
857
+ pattern: Schema.String,
858
+ patternType: Schema.Literals(["EMAIL", "DOMAIN", "IP", "UNKNOWN"]),
859
+ verifySender: Schema.Boolean,
860
+ comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
861
+ isRecipient: Schema.optional(Schema.Boolean),
862
+ isSender: Schema.optional(Schema.Boolean),
863
+ isSpoof: Schema.optional(Schema.Boolean),
864
+ }).pipe(Schema.encodeKeys({
865
+ isAcceptableSender: "is_acceptable_sender",
866
+ isExemptRecipient: "is_exempt_recipient",
867
+ isRegex: "is_regex",
868
+ isTrustedSender: "is_trusted_sender",
869
+ pattern: "pattern",
870
+ patternType: "pattern_type",
871
+ verifySender: "verify_sender",
872
+ comments: "comments",
873
+ isRecipient: "is_recipient",
874
+ isSender: "is_sender",
875
+ isSpoof: "is_spoof",
876
+ }), T.Http({
877
+ method: "POST",
878
+ path: "/accounts/{account_id}/email-security/settings/allow_policies",
879
+ }));
880
+ export const CreateSettingAllowPolicyResponse =
881
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
882
+ id: Schema.Number,
883
+ createdAt: Schema.String,
884
+ isAcceptableSender: Schema.Boolean,
885
+ isExemptRecipient: Schema.Boolean,
886
+ isRegex: Schema.Boolean,
887
+ isTrustedSender: Schema.Boolean,
888
+ lastModified: Schema.String,
889
+ pattern: Schema.String,
890
+ patternType: Schema.Literals(["EMAIL", "DOMAIN", "IP", "UNKNOWN"]),
891
+ verifySender: Schema.Boolean,
892
+ comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
893
+ isRecipient: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
894
+ isSender: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
895
+ isSpoof: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
896
+ }).pipe(Schema.encodeKeys({
897
+ id: "id",
898
+ createdAt: "created_at",
899
+ isAcceptableSender: "is_acceptable_sender",
900
+ isExemptRecipient: "is_exempt_recipient",
901
+ isRegex: "is_regex",
902
+ isTrustedSender: "is_trusted_sender",
903
+ lastModified: "last_modified",
904
+ pattern: "pattern",
905
+ patternType: "pattern_type",
906
+ verifySender: "verify_sender",
907
+ comments: "comments",
908
+ isRecipient: "is_recipient",
909
+ isSender: "is_sender",
910
+ isSpoof: "is_spoof",
911
+ }));
912
+ export const createSettingAllowPolicy = API.make(() => ({
913
+ input: CreateSettingAllowPolicyRequest,
914
+ output: CreateSettingAllowPolicyResponse,
915
+ errors: [],
916
+ }));
917
+ export const PatchSettingAllowPolicyRequest =
918
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
919
+ policyId: Schema.Number.pipe(T.HttpPath("policyId")),
920
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
921
+ comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
922
+ isAcceptableSender: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
923
+ isExemptRecipient: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
924
+ isRegex: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
925
+ isTrustedSender: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
926
+ pattern: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
927
+ patternType: Schema.optional(Schema.Union([
928
+ Schema.Literal("EMAIL"),
929
+ Schema.Literal("DOMAIN"),
930
+ Schema.Literal("IP"),
931
+ Schema.Literal("UNKNOWN"),
932
+ Schema.Null,
933
+ ])),
934
+ verifySender: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
935
+ }).pipe(Schema.encodeKeys({
936
+ comments: "comments",
937
+ isAcceptableSender: "is_acceptable_sender",
938
+ isExemptRecipient: "is_exempt_recipient",
939
+ isRegex: "is_regex",
940
+ isTrustedSender: "is_trusted_sender",
941
+ pattern: "pattern",
942
+ patternType: "pattern_type",
943
+ verifySender: "verify_sender",
944
+ }), T.Http({
945
+ method: "PATCH",
946
+ path: "/accounts/{account_id}/email-security/settings/allow_policies/{policyId}",
947
+ }));
948
+ export const PatchSettingAllowPolicyResponse =
949
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
950
+ id: Schema.Number,
951
+ createdAt: Schema.String,
952
+ isAcceptableSender: Schema.Boolean,
953
+ isExemptRecipient: Schema.Boolean,
954
+ isRegex: Schema.Boolean,
955
+ isTrustedSender: Schema.Boolean,
956
+ lastModified: Schema.String,
957
+ pattern: Schema.String,
958
+ patternType: Schema.Literals(["EMAIL", "DOMAIN", "IP", "UNKNOWN"]),
959
+ verifySender: Schema.Boolean,
960
+ comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
961
+ isRecipient: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
962
+ isSender: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
963
+ isSpoof: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
964
+ }).pipe(Schema.encodeKeys({
965
+ id: "id",
966
+ createdAt: "created_at",
967
+ isAcceptableSender: "is_acceptable_sender",
968
+ isExemptRecipient: "is_exempt_recipient",
969
+ isRegex: "is_regex",
970
+ isTrustedSender: "is_trusted_sender",
971
+ lastModified: "last_modified",
972
+ pattern: "pattern",
973
+ patternType: "pattern_type",
974
+ verifySender: "verify_sender",
975
+ comments: "comments",
976
+ isRecipient: "is_recipient",
977
+ isSender: "is_sender",
978
+ isSpoof: "is_spoof",
979
+ }));
980
+ export const patchSettingAllowPolicy = API.make(() => ({
981
+ input: PatchSettingAllowPolicyRequest,
982
+ output: PatchSettingAllowPolicyResponse,
983
+ errors: [],
984
+ }));
985
+ export const DeleteSettingAllowPolicyRequest =
986
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
987
+ policyId: Schema.Number.pipe(T.HttpPath("policyId")),
988
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
989
+ }).pipe(T.Http({
990
+ method: "DELETE",
991
+ path: "/accounts/{account_id}/email-security/settings/allow_policies/{policyId}",
992
+ }));
993
+ export const DeleteSettingAllowPolicyResponse =
994
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
995
+ id: Schema.Number,
996
+ });
997
+ export const deleteSettingAllowPolicy = API.make(() => ({
998
+ input: DeleteSettingAllowPolicyRequest,
999
+ output: DeleteSettingAllowPolicyResponse,
1000
+ errors: [],
1001
+ }));
1002
+ export const GetSettingBlockSenderRequest =
1003
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1004
+ patternId: Schema.Number.pipe(T.HttpPath("patternId")),
1005
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1006
+ }).pipe(T.Http({
1007
+ method: "GET",
1008
+ path: "/accounts/{account_id}/email-security/settings/block_senders/{patternId}",
1009
+ }));
1010
+ export const GetSettingBlockSenderResponse =
1011
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1012
+ id: Schema.Number,
1013
+ createdAt: Schema.String,
1014
+ isRegex: Schema.Boolean,
1015
+ lastModified: Schema.String,
1016
+ pattern: Schema.String,
1017
+ patternType: Schema.Literals(["EMAIL", "DOMAIN", "IP", "UNKNOWN"]),
1018
+ comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1019
+ }).pipe(Schema.encodeKeys({
1020
+ id: "id",
1021
+ createdAt: "created_at",
1022
+ isRegex: "is_regex",
1023
+ lastModified: "last_modified",
1024
+ pattern: "pattern",
1025
+ patternType: "pattern_type",
1026
+ comments: "comments",
1027
+ }));
1028
+ export const getSettingBlockSender = API.make(() => ({
1029
+ input: GetSettingBlockSenderRequest,
1030
+ output: GetSettingBlockSenderResponse,
1031
+ errors: [],
1032
+ }));
1033
+ export const ListSettingBlockSendersRequest =
1034
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1035
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1036
+ direction: Schema.optional(Schema.Literals(["asc", "desc"])).pipe(T.HttpQuery("direction")),
1037
+ order: Schema.optional(Schema.Literals(["pattern", "created_at"])).pipe(T.HttpQuery("order")),
1038
+ pattern: Schema.optional(Schema.String).pipe(T.HttpQuery("pattern")),
1039
+ patternType: Schema.optional(Schema.Literals(["EMAIL", "DOMAIN", "IP", "UNKNOWN"])).pipe(T.HttpQuery("pattern_type")),
1040
+ search: Schema.optional(Schema.String).pipe(T.HttpQuery("search")),
1041
+ }).pipe(T.Http({
1042
+ method: "GET",
1043
+ path: "/accounts/{account_id}/email-security/settings/block_senders",
1044
+ }));
1045
+ export const ListSettingBlockSendersResponse =
1046
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
1047
+ id: Schema.Number,
1048
+ createdAt: Schema.String,
1049
+ isRegex: Schema.Boolean,
1050
+ lastModified: Schema.String,
1051
+ pattern: Schema.String,
1052
+ patternType: Schema.Literals(["EMAIL", "DOMAIN", "IP", "UNKNOWN"]),
1053
+ comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1054
+ }).pipe(Schema.encodeKeys({
1055
+ id: "id",
1056
+ createdAt: "created_at",
1057
+ isRegex: "is_regex",
1058
+ lastModified: "last_modified",
1059
+ pattern: "pattern",
1060
+ patternType: "pattern_type",
1061
+ comments: "comments",
1062
+ })));
1063
+ export const listSettingBlockSenders = API.make(() => ({
1064
+ input: ListSettingBlockSendersRequest,
1065
+ output: ListSettingBlockSendersResponse,
1066
+ errors: [],
1067
+ }));
1068
+ export const CreateSettingBlockSenderRequest =
1069
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1070
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1071
+ isRegex: Schema.Boolean,
1072
+ pattern: Schema.String,
1073
+ patternType: Schema.Literals(["EMAIL", "DOMAIN", "IP", "UNKNOWN"]),
1074
+ comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1075
+ }).pipe(Schema.encodeKeys({
1076
+ isRegex: "is_regex",
1077
+ pattern: "pattern",
1078
+ patternType: "pattern_type",
1079
+ comments: "comments",
1080
+ }), T.Http({
1081
+ method: "POST",
1082
+ path: "/accounts/{account_id}/email-security/settings/block_senders",
1083
+ }));
1084
+ export const CreateSettingBlockSenderResponse =
1085
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1086
+ id: Schema.Number,
1087
+ createdAt: Schema.String,
1088
+ isRegex: Schema.Boolean,
1089
+ lastModified: Schema.String,
1090
+ pattern: Schema.String,
1091
+ patternType: Schema.Literals(["EMAIL", "DOMAIN", "IP", "UNKNOWN"]),
1092
+ comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1093
+ }).pipe(Schema.encodeKeys({
1094
+ id: "id",
1095
+ createdAt: "created_at",
1096
+ isRegex: "is_regex",
1097
+ lastModified: "last_modified",
1098
+ pattern: "pattern",
1099
+ patternType: "pattern_type",
1100
+ comments: "comments",
1101
+ }));
1102
+ export const createSettingBlockSender = API.make(() => ({
1103
+ input: CreateSettingBlockSenderRequest,
1104
+ output: CreateSettingBlockSenderResponse,
1105
+ errors: [],
1106
+ }));
1107
+ export const PatchSettingBlockSenderRequest =
1108
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1109
+ patternId: Schema.Number.pipe(T.HttpPath("patternId")),
1110
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1111
+ comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1112
+ isRegex: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1113
+ pattern: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1114
+ patternType: Schema.optional(Schema.Union([
1115
+ Schema.Literal("EMAIL"),
1116
+ Schema.Literal("DOMAIN"),
1117
+ Schema.Literal("IP"),
1118
+ Schema.Literal("UNKNOWN"),
1119
+ Schema.Null,
1120
+ ])),
1121
+ }).pipe(Schema.encodeKeys({
1122
+ comments: "comments",
1123
+ isRegex: "is_regex",
1124
+ pattern: "pattern",
1125
+ patternType: "pattern_type",
1126
+ }), T.Http({
1127
+ method: "PATCH",
1128
+ path: "/accounts/{account_id}/email-security/settings/block_senders/{patternId}",
1129
+ }));
1130
+ export const PatchSettingBlockSenderResponse =
1131
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1132
+ id: Schema.Number,
1133
+ createdAt: Schema.String,
1134
+ isRegex: Schema.Boolean,
1135
+ lastModified: Schema.String,
1136
+ pattern: Schema.String,
1137
+ patternType: Schema.Literals(["EMAIL", "DOMAIN", "IP", "UNKNOWN"]),
1138
+ comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1139
+ }).pipe(Schema.encodeKeys({
1140
+ id: "id",
1141
+ createdAt: "created_at",
1142
+ isRegex: "is_regex",
1143
+ lastModified: "last_modified",
1144
+ pattern: "pattern",
1145
+ patternType: "pattern_type",
1146
+ comments: "comments",
1147
+ }));
1148
+ export const patchSettingBlockSender = API.make(() => ({
1149
+ input: PatchSettingBlockSenderRequest,
1150
+ output: PatchSettingBlockSenderResponse,
1151
+ errors: [],
1152
+ }));
1153
+ export const DeleteSettingBlockSenderRequest =
1154
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1155
+ patternId: Schema.Number.pipe(T.HttpPath("patternId")),
1156
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1157
+ }).pipe(T.Http({
1158
+ method: "DELETE",
1159
+ path: "/accounts/{account_id}/email-security/settings/block_senders/{patternId}",
1160
+ }));
1161
+ export const DeleteSettingBlockSenderResponse =
1162
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1163
+ id: Schema.Number,
1164
+ });
1165
+ export const deleteSettingBlockSender = API.make(() => ({
1166
+ input: DeleteSettingBlockSenderRequest,
1167
+ output: DeleteSettingBlockSenderResponse,
1168
+ errors: [],
1169
+ }));
1170
+ export const GetSettingDomainRequest =
1171
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1172
+ domainId: Schema.Number.pipe(T.HttpPath("domainId")),
1173
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1174
+ }).pipe(T.Http({
1175
+ method: "GET",
1176
+ path: "/accounts/{account_id}/email-security/settings/domains/{domainId}",
1177
+ }));
1178
+ export const GetSettingDomainResponse =
1179
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1180
+ id: Schema.Number,
1181
+ allowedDeliveryModes: Schema.Array(Schema.Literals(["DIRECT", "BCC", "JOURNAL", "API", "RETRO_SCAN"])),
1182
+ createdAt: Schema.String,
1183
+ domain: Schema.String,
1184
+ dropDispositions: Schema.Array(Schema.Literals([
1185
+ "MALICIOUS",
1186
+ "MALICIOUS-BEC",
1187
+ "SUSPICIOUS",
1188
+ "SPOOF",
1189
+ "SPAM",
1190
+ "BULK",
1191
+ "ENCRYPTED",
1192
+ "EXTERNAL",
1193
+ "UNKNOWN",
1194
+ "NONE",
1195
+ ])),
1196
+ ipRestrictions: Schema.Array(Schema.String),
1197
+ lastModified: Schema.String,
1198
+ lookbackHops: Schema.Number,
1199
+ regions: Schema.Array(Schema.Literals(["GLOBAL", "AU", "DE", "IN", "US"])),
1200
+ transport: Schema.String,
1201
+ authorization: Schema.optional(Schema.Union([
1202
+ Schema.Struct({
1203
+ authorized: Schema.Boolean,
1204
+ timestamp: Schema.String,
1205
+ statusMessage: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1206
+ }).pipe(Schema.encodeKeys({
1207
+ authorized: "authorized",
1208
+ timestamp: "timestamp",
1209
+ statusMessage: "status_message",
1210
+ })),
1211
+ Schema.Null,
1212
+ ])),
1213
+ dmarcStatus: Schema.optional(Schema.Union([
1214
+ Schema.Literal("none"),
1215
+ Schema.Literal("good"),
1216
+ Schema.Literal("invalid"),
1217
+ Schema.Null,
1218
+ ])),
1219
+ emailsProcessed: Schema.optional(Schema.Union([
1220
+ Schema.Struct({
1221
+ timestamp: Schema.String,
1222
+ totalEmailsProcessed: Schema.Number,
1223
+ totalEmailsProcessedPrevious: Schema.Number,
1224
+ }).pipe(Schema.encodeKeys({
1225
+ timestamp: "timestamp",
1226
+ totalEmailsProcessed: "total_emails_processed",
1227
+ totalEmailsProcessedPrevious: "total_emails_processed_previous",
1228
+ })),
1229
+ Schema.Null,
1230
+ ])),
1231
+ folder: Schema.optional(Schema.Union([
1232
+ Schema.Literal("AllItems"),
1233
+ Schema.Literal("Inbox"),
1234
+ Schema.Null,
1235
+ ])),
1236
+ inboxProvider: Schema.optional(Schema.Union([
1237
+ Schema.Literal("Microsoft"),
1238
+ Schema.Literal("Google"),
1239
+ Schema.Null,
1240
+ ])),
1241
+ integrationId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1242
+ o365TenantId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1243
+ requireTlsInbound: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1244
+ requireTlsOutbound: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1245
+ spfStatus: Schema.optional(Schema.Union([
1246
+ Schema.Literal("none"),
1247
+ Schema.Literal("good"),
1248
+ Schema.Literal("neutral"),
1249
+ Schema.Literal("open"),
1250
+ Schema.Literal("invalid"),
1251
+ Schema.Null,
1252
+ ])),
1253
+ }).pipe(Schema.encodeKeys({
1254
+ id: "id",
1255
+ allowedDeliveryModes: "allowed_delivery_modes",
1256
+ createdAt: "created_at",
1257
+ domain: "domain",
1258
+ dropDispositions: "drop_dispositions",
1259
+ ipRestrictions: "ip_restrictions",
1260
+ lastModified: "last_modified",
1261
+ lookbackHops: "lookback_hops",
1262
+ regions: "regions",
1263
+ transport: "transport",
1264
+ authorization: "authorization",
1265
+ dmarcStatus: "dmarc_status",
1266
+ emailsProcessed: "emails_processed",
1267
+ folder: "folder",
1268
+ inboxProvider: "inbox_provider",
1269
+ integrationId: "integration_id",
1270
+ o365TenantId: "o365_tenant_id",
1271
+ requireTlsInbound: "require_tls_inbound",
1272
+ requireTlsOutbound: "require_tls_outbound",
1273
+ spfStatus: "spf_status",
1274
+ }));
1275
+ export const getSettingDomain = API.make(() => ({
1276
+ input: GetSettingDomainRequest,
1277
+ output: GetSettingDomainResponse,
1278
+ errors: [],
1279
+ }));
1280
+ export const ListSettingDomainsRequest =
1281
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1282
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1283
+ activeDeliveryMode: Schema.optional(Schema.Literals(["DIRECT", "BCC", "JOURNAL", "API", "RETRO_SCAN"])).pipe(T.HttpQuery("active_delivery_mode")),
1284
+ allowedDeliveryMode: Schema.optional(Schema.Literals(["DIRECT", "BCC", "JOURNAL", "API", "RETRO_SCAN"])).pipe(T.HttpQuery("allowed_delivery_mode")),
1285
+ direction: Schema.optional(Schema.Literals(["asc", "desc"])).pipe(T.HttpQuery("direction")),
1286
+ domain: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("domain")),
1287
+ integrationId: Schema.optional(Schema.String).pipe(T.HttpQuery("integration_id")),
1288
+ order: Schema.optional(Schema.Literals(["domain", "created_at"])).pipe(T.HttpQuery("order")),
1289
+ search: Schema.optional(Schema.String).pipe(T.HttpQuery("search")),
1290
+ }).pipe(T.Http({
1291
+ method: "GET",
1292
+ path: "/accounts/{account_id}/email-security/settings/domains",
1293
+ }));
1294
+ export const ListSettingDomainsResponse =
1295
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
1296
+ id: Schema.Number,
1297
+ allowedDeliveryModes: Schema.Array(Schema.Literals(["DIRECT", "BCC", "JOURNAL", "API", "RETRO_SCAN"])),
1298
+ createdAt: Schema.String,
1299
+ domain: Schema.String,
1300
+ dropDispositions: Schema.Array(Schema.Literals([
1301
+ "MALICIOUS",
1302
+ "MALICIOUS-BEC",
1303
+ "SUSPICIOUS",
1304
+ "SPOOF",
1305
+ "SPAM",
1306
+ "BULK",
1307
+ "ENCRYPTED",
1308
+ "EXTERNAL",
1309
+ "UNKNOWN",
1310
+ "NONE",
1311
+ ])),
1312
+ ipRestrictions: Schema.Array(Schema.String),
1313
+ lastModified: Schema.String,
1314
+ lookbackHops: Schema.Number,
1315
+ regions: Schema.Array(Schema.Literals(["GLOBAL", "AU", "DE", "IN", "US"])),
1316
+ transport: Schema.String,
1317
+ authorization: Schema.optional(Schema.Union([
1318
+ Schema.Struct({
1319
+ authorized: Schema.Boolean,
1320
+ timestamp: Schema.String,
1321
+ statusMessage: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1322
+ }).pipe(Schema.encodeKeys({
1323
+ authorized: "authorized",
1324
+ timestamp: "timestamp",
1325
+ statusMessage: "status_message",
1326
+ })),
1327
+ Schema.Null,
1328
+ ])),
1329
+ dmarcStatus: Schema.optional(Schema.Union([
1330
+ Schema.Literal("none"),
1331
+ Schema.Literal("good"),
1332
+ Schema.Literal("invalid"),
1333
+ Schema.Null,
1334
+ ])),
1335
+ emailsProcessed: Schema.optional(Schema.Union([
1336
+ Schema.Struct({
1337
+ timestamp: Schema.String,
1338
+ totalEmailsProcessed: Schema.Number,
1339
+ totalEmailsProcessedPrevious: Schema.Number,
1340
+ }).pipe(Schema.encodeKeys({
1341
+ timestamp: "timestamp",
1342
+ totalEmailsProcessed: "total_emails_processed",
1343
+ totalEmailsProcessedPrevious: "total_emails_processed_previous",
1344
+ })),
1345
+ Schema.Null,
1346
+ ])),
1347
+ folder: Schema.optional(Schema.Union([
1348
+ Schema.Literal("AllItems"),
1349
+ Schema.Literal("Inbox"),
1350
+ Schema.Null,
1351
+ ])),
1352
+ inboxProvider: Schema.optional(Schema.Union([
1353
+ Schema.Literal("Microsoft"),
1354
+ Schema.Literal("Google"),
1355
+ Schema.Null,
1356
+ ])),
1357
+ integrationId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1358
+ o365TenantId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1359
+ requireTlsInbound: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1360
+ requireTlsOutbound: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1361
+ spfStatus: Schema.optional(Schema.Union([
1362
+ Schema.Literal("none"),
1363
+ Schema.Literal("good"),
1364
+ Schema.Literal("neutral"),
1365
+ Schema.Literal("open"),
1366
+ Schema.Literal("invalid"),
1367
+ Schema.Null,
1368
+ ])),
1369
+ }).pipe(Schema.encodeKeys({
1370
+ id: "id",
1371
+ allowedDeliveryModes: "allowed_delivery_modes",
1372
+ createdAt: "created_at",
1373
+ domain: "domain",
1374
+ dropDispositions: "drop_dispositions",
1375
+ ipRestrictions: "ip_restrictions",
1376
+ lastModified: "last_modified",
1377
+ lookbackHops: "lookback_hops",
1378
+ regions: "regions",
1379
+ transport: "transport",
1380
+ authorization: "authorization",
1381
+ dmarcStatus: "dmarc_status",
1382
+ emailsProcessed: "emails_processed",
1383
+ folder: "folder",
1384
+ inboxProvider: "inbox_provider",
1385
+ integrationId: "integration_id",
1386
+ o365TenantId: "o365_tenant_id",
1387
+ requireTlsInbound: "require_tls_inbound",
1388
+ requireTlsOutbound: "require_tls_outbound",
1389
+ spfStatus: "spf_status",
1390
+ })));
1391
+ export const listSettingDomains = API.make(() => ({
1392
+ input: ListSettingDomainsRequest,
1393
+ output: ListSettingDomainsResponse,
1394
+ errors: [],
1395
+ }));
1396
+ export const PatchSettingDomainRequest =
1397
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1398
+ domainId: Schema.Number.pipe(T.HttpPath("domainId")),
1399
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1400
+ ipRestrictions: Schema.Array(Schema.String),
1401
+ allowedDeliveryModes: Schema.optional(Schema.Array(Schema.Literals(["DIRECT", "BCC", "JOURNAL", "API", "RETRO_SCAN"]))),
1402
+ domain: Schema.optional(Schema.String),
1403
+ dropDispositions: Schema.optional(Schema.Array(Schema.Literals([
1404
+ "MALICIOUS",
1405
+ "MALICIOUS-BEC",
1406
+ "SUSPICIOUS",
1407
+ "SPOOF",
1408
+ "SPAM",
1409
+ "BULK",
1410
+ "ENCRYPTED",
1411
+ "EXTERNAL",
1412
+ "UNKNOWN",
1413
+ "NONE",
1414
+ ]))),
1415
+ folder: Schema.optional(Schema.Literals(["AllItems", "Inbox"])),
1416
+ integrationId: Schema.optional(Schema.String),
1417
+ lookbackHops: Schema.optional(Schema.Number),
1418
+ regions: Schema.optional(Schema.Array(Schema.Literals(["GLOBAL", "AU", "DE", "IN", "US"]))),
1419
+ requireTlsInbound: Schema.optional(Schema.Boolean),
1420
+ requireTlsOutbound: Schema.optional(Schema.Boolean),
1421
+ transport: Schema.optional(Schema.String),
1422
+ }).pipe(Schema.encodeKeys({
1423
+ ipRestrictions: "ip_restrictions",
1424
+ allowedDeliveryModes: "allowed_delivery_modes",
1425
+ domain: "domain",
1426
+ dropDispositions: "drop_dispositions",
1427
+ folder: "folder",
1428
+ integrationId: "integration_id",
1429
+ lookbackHops: "lookback_hops",
1430
+ regions: "regions",
1431
+ requireTlsInbound: "require_tls_inbound",
1432
+ requireTlsOutbound: "require_tls_outbound",
1433
+ transport: "transport",
1434
+ }), T.Http({
1435
+ method: "PATCH",
1436
+ path: "/accounts/{account_id}/email-security/settings/domains/{domainId}",
1437
+ }));
1438
+ export const PatchSettingDomainResponse =
1439
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1440
+ id: Schema.Number,
1441
+ allowedDeliveryModes: Schema.Array(Schema.Literals(["DIRECT", "BCC", "JOURNAL", "API", "RETRO_SCAN"])),
1442
+ createdAt: Schema.String,
1443
+ domain: Schema.String,
1444
+ dropDispositions: Schema.Array(Schema.Literals([
1445
+ "MALICIOUS",
1446
+ "MALICIOUS-BEC",
1447
+ "SUSPICIOUS",
1448
+ "SPOOF",
1449
+ "SPAM",
1450
+ "BULK",
1451
+ "ENCRYPTED",
1452
+ "EXTERNAL",
1453
+ "UNKNOWN",
1454
+ "NONE",
1455
+ ])),
1456
+ ipRestrictions: Schema.Array(Schema.String),
1457
+ lastModified: Schema.String,
1458
+ lookbackHops: Schema.Number,
1459
+ regions: Schema.Array(Schema.Literals(["GLOBAL", "AU", "DE", "IN", "US"])),
1460
+ transport: Schema.String,
1461
+ authorization: Schema.optional(Schema.Union([
1462
+ Schema.Struct({
1463
+ authorized: Schema.Boolean,
1464
+ timestamp: Schema.String,
1465
+ statusMessage: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1466
+ }).pipe(Schema.encodeKeys({
1467
+ authorized: "authorized",
1468
+ timestamp: "timestamp",
1469
+ statusMessage: "status_message",
1470
+ })),
1471
+ Schema.Null,
1472
+ ])),
1473
+ dmarcStatus: Schema.optional(Schema.Union([
1474
+ Schema.Literal("none"),
1475
+ Schema.Literal("good"),
1476
+ Schema.Literal("invalid"),
1477
+ Schema.Null,
1478
+ ])),
1479
+ emailsProcessed: Schema.optional(Schema.Union([
1480
+ Schema.Struct({
1481
+ timestamp: Schema.String,
1482
+ totalEmailsProcessed: Schema.Number,
1483
+ totalEmailsProcessedPrevious: Schema.Number,
1484
+ }).pipe(Schema.encodeKeys({
1485
+ timestamp: "timestamp",
1486
+ totalEmailsProcessed: "total_emails_processed",
1487
+ totalEmailsProcessedPrevious: "total_emails_processed_previous",
1488
+ })),
1489
+ Schema.Null,
1490
+ ])),
1491
+ folder: Schema.optional(Schema.Union([
1492
+ Schema.Literal("AllItems"),
1493
+ Schema.Literal("Inbox"),
1494
+ Schema.Null,
1495
+ ])),
1496
+ inboxProvider: Schema.optional(Schema.Union([
1497
+ Schema.Literal("Microsoft"),
1498
+ Schema.Literal("Google"),
1499
+ Schema.Null,
1500
+ ])),
1501
+ integrationId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1502
+ o365TenantId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1503
+ requireTlsInbound: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1504
+ requireTlsOutbound: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1505
+ spfStatus: Schema.optional(Schema.Union([
1506
+ Schema.Literal("none"),
1507
+ Schema.Literal("good"),
1508
+ Schema.Literal("neutral"),
1509
+ Schema.Literal("open"),
1510
+ Schema.Literal("invalid"),
1511
+ Schema.Null,
1512
+ ])),
1513
+ }).pipe(Schema.encodeKeys({
1514
+ id: "id",
1515
+ allowedDeliveryModes: "allowed_delivery_modes",
1516
+ createdAt: "created_at",
1517
+ domain: "domain",
1518
+ dropDispositions: "drop_dispositions",
1519
+ ipRestrictions: "ip_restrictions",
1520
+ lastModified: "last_modified",
1521
+ lookbackHops: "lookback_hops",
1522
+ regions: "regions",
1523
+ transport: "transport",
1524
+ authorization: "authorization",
1525
+ dmarcStatus: "dmarc_status",
1526
+ emailsProcessed: "emails_processed",
1527
+ folder: "folder",
1528
+ inboxProvider: "inbox_provider",
1529
+ integrationId: "integration_id",
1530
+ o365TenantId: "o365_tenant_id",
1531
+ requireTlsInbound: "require_tls_inbound",
1532
+ requireTlsOutbound: "require_tls_outbound",
1533
+ spfStatus: "spf_status",
1534
+ }));
1535
+ export const patchSettingDomain = API.make(() => ({
1536
+ input: PatchSettingDomainRequest,
1537
+ output: PatchSettingDomainResponse,
1538
+ errors: [],
1539
+ }));
1540
+ export const DeleteSettingDomainRequest =
1541
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1542
+ domainId: Schema.Number.pipe(T.HttpPath("domainId")),
1543
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1544
+ }).pipe(T.Http({
1545
+ method: "DELETE",
1546
+ path: "/accounts/{account_id}/email-security/settings/domains/{domainId}",
1547
+ }));
1548
+ export const DeleteSettingDomainResponse =
1549
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1550
+ id: Schema.Number,
1551
+ });
1552
+ export const deleteSettingDomain = API.make(() => ({
1553
+ input: DeleteSettingDomainRequest,
1554
+ output: DeleteSettingDomainResponse,
1555
+ errors: [],
1556
+ }));
1557
+ export const BulkDeleteSettingDomainsRequest =
1558
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1559
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1560
+ }).pipe(T.Http({
1561
+ method: "DELETE",
1562
+ path: "/accounts/{account_id}/email-security/settings/domains",
1563
+ }));
1564
+ export const BulkDeleteSettingDomainsResponse =
1565
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
1566
+ id: Schema.Number,
1567
+ }));
1568
+ export const bulkDeleteSettingDomains = API.make(() => ({
1569
+ input: BulkDeleteSettingDomainsRequest,
1570
+ output: BulkDeleteSettingDomainsResponse,
1571
+ errors: [],
1572
+ }));
1573
+ export const GetSettingImpersonationRegistryRequest =
1574
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1575
+ displayNameId: Schema.Number.pipe(T.HttpPath("displayNameId")),
1576
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1577
+ }).pipe(T.Http({
1578
+ method: "GET",
1579
+ path: "/accounts/{account_id}/email-security/settings/impersonation_registry/{displayNameId}",
1580
+ }));
1581
+ export const GetSettingImpersonationRegistryResponse =
1582
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1583
+ id: Schema.Number,
1584
+ createdAt: Schema.String,
1585
+ email: Schema.String,
1586
+ isEmailRegex: Schema.Boolean,
1587
+ lastModified: Schema.String,
1588
+ name: Schema.String,
1589
+ comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1590
+ directoryId: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1591
+ directoryNodeId: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1592
+ externalDirectoryNodeId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1593
+ provenance: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1594
+ }).pipe(Schema.encodeKeys({
1595
+ id: "id",
1596
+ createdAt: "created_at",
1597
+ email: "email",
1598
+ isEmailRegex: "is_email_regex",
1599
+ lastModified: "last_modified",
1600
+ name: "name",
1601
+ comments: "comments",
1602
+ directoryId: "directory_id",
1603
+ directoryNodeId: "directory_node_id",
1604
+ externalDirectoryNodeId: "external_directory_node_id",
1605
+ provenance: "provenance",
1606
+ }));
1607
+ export const getSettingImpersonationRegistry = API.make(() => ({
1608
+ input: GetSettingImpersonationRegistryRequest,
1609
+ output: GetSettingImpersonationRegistryResponse,
1610
+ errors: [],
1611
+ }));
1612
+ export const ListSettingImpersonationRegistriesRequest =
1613
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1614
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1615
+ direction: Schema.optional(Schema.Literals(["asc", "desc"])).pipe(T.HttpQuery("direction")),
1616
+ order: Schema.optional(Schema.Literals(["name", "email", "created_at"])).pipe(T.HttpQuery("order")),
1617
+ provenance: Schema.optional(Schema.Literals([
1618
+ "A1S_INTERNAL",
1619
+ "SNOOPY-CASB_OFFICE_365",
1620
+ "SNOOPY-OFFICE_365",
1621
+ "SNOOPY-GOOGLE_DIRECTORY",
1622
+ ])).pipe(T.HttpQuery("provenance")),
1623
+ search: Schema.optional(Schema.String).pipe(T.HttpQuery("search")),
1624
+ }).pipe(T.Http({
1625
+ method: "GET",
1626
+ path: "/accounts/{account_id}/email-security/settings/impersonation_registry",
1627
+ }));
1628
+ export const ListSettingImpersonationRegistriesResponse =
1629
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
1630
+ id: Schema.Number,
1631
+ createdAt: Schema.String,
1632
+ email: Schema.String,
1633
+ isEmailRegex: Schema.Boolean,
1634
+ lastModified: Schema.String,
1635
+ name: Schema.String,
1636
+ comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1637
+ directoryId: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1638
+ directoryNodeId: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1639
+ externalDirectoryNodeId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1640
+ provenance: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1641
+ }).pipe(Schema.encodeKeys({
1642
+ id: "id",
1643
+ createdAt: "created_at",
1644
+ email: "email",
1645
+ isEmailRegex: "is_email_regex",
1646
+ lastModified: "last_modified",
1647
+ name: "name",
1648
+ comments: "comments",
1649
+ directoryId: "directory_id",
1650
+ directoryNodeId: "directory_node_id",
1651
+ externalDirectoryNodeId: "external_directory_node_id",
1652
+ provenance: "provenance",
1653
+ })));
1654
+ export const listSettingImpersonationRegistries = API.make(() => ({
1655
+ input: ListSettingImpersonationRegistriesRequest,
1656
+ output: ListSettingImpersonationRegistriesResponse,
1657
+ errors: [],
1658
+ }));
1659
+ export const CreateSettingImpersonationRegistryRequest =
1660
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1661
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1662
+ email: Schema.String,
1663
+ isEmailRegex: Schema.Boolean,
1664
+ name: Schema.String,
1665
+ }).pipe(Schema.encodeKeys({
1666
+ email: "email",
1667
+ isEmailRegex: "is_email_regex",
1668
+ name: "name",
1669
+ }), T.Http({
1670
+ method: "POST",
1671
+ path: "/accounts/{account_id}/email-security/settings/impersonation_registry",
1672
+ }));
1673
+ export const CreateSettingImpersonationRegistryResponse =
1674
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1675
+ id: Schema.Number,
1676
+ createdAt: Schema.String,
1677
+ email: Schema.String,
1678
+ isEmailRegex: Schema.Boolean,
1679
+ lastModified: Schema.String,
1680
+ name: Schema.String,
1681
+ comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1682
+ directoryId: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1683
+ directoryNodeId: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1684
+ externalDirectoryNodeId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1685
+ provenance: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1686
+ }).pipe(Schema.encodeKeys({
1687
+ id: "id",
1688
+ createdAt: "created_at",
1689
+ email: "email",
1690
+ isEmailRegex: "is_email_regex",
1691
+ lastModified: "last_modified",
1692
+ name: "name",
1693
+ comments: "comments",
1694
+ directoryId: "directory_id",
1695
+ directoryNodeId: "directory_node_id",
1696
+ externalDirectoryNodeId: "external_directory_node_id",
1697
+ provenance: "provenance",
1698
+ }));
1699
+ export const createSettingImpersonationRegistry = API.make(() => ({
1700
+ input: CreateSettingImpersonationRegistryRequest,
1701
+ output: CreateSettingImpersonationRegistryResponse,
1702
+ errors: [],
1703
+ }));
1704
+ export const PatchSettingImpersonationRegistryRequest =
1705
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1706
+ displayNameId: Schema.Number.pipe(T.HttpPath("displayNameId")),
1707
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1708
+ email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1709
+ isEmailRegex: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1710
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1711
+ }).pipe(Schema.encodeKeys({
1712
+ email: "email",
1713
+ isEmailRegex: "is_email_regex",
1714
+ name: "name",
1715
+ }), T.Http({
1716
+ method: "PATCH",
1717
+ path: "/accounts/{account_id}/email-security/settings/impersonation_registry/{displayNameId}",
1718
+ }));
1719
+ export const PatchSettingImpersonationRegistryResponse =
1720
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1721
+ id: Schema.Number,
1722
+ createdAt: Schema.String,
1723
+ email: Schema.String,
1724
+ isEmailRegex: Schema.Boolean,
1725
+ lastModified: Schema.String,
1726
+ name: Schema.String,
1727
+ comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1728
+ directoryId: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1729
+ directoryNodeId: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1730
+ externalDirectoryNodeId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1731
+ provenance: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1732
+ }).pipe(Schema.encodeKeys({
1733
+ id: "id",
1734
+ createdAt: "created_at",
1735
+ email: "email",
1736
+ isEmailRegex: "is_email_regex",
1737
+ lastModified: "last_modified",
1738
+ name: "name",
1739
+ comments: "comments",
1740
+ directoryId: "directory_id",
1741
+ directoryNodeId: "directory_node_id",
1742
+ externalDirectoryNodeId: "external_directory_node_id",
1743
+ provenance: "provenance",
1744
+ }));
1745
+ export const patchSettingImpersonationRegistry = API.make(() => ({
1746
+ input: PatchSettingImpersonationRegistryRequest,
1747
+ output: PatchSettingImpersonationRegistryResponse,
1748
+ errors: [],
1749
+ }));
1750
+ export const DeleteSettingImpersonationRegistryRequest =
1751
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1752
+ displayNameId: Schema.Number.pipe(T.HttpPath("displayNameId")),
1753
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1754
+ }).pipe(T.Http({
1755
+ method: "DELETE",
1756
+ path: "/accounts/{account_id}/email-security/settings/impersonation_registry/{displayNameId}",
1757
+ }));
1758
+ export const DeleteSettingImpersonationRegistryResponse =
1759
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1760
+ id: Schema.Number,
1761
+ });
1762
+ export const deleteSettingImpersonationRegistry = API.make(() => ({
1763
+ input: DeleteSettingImpersonationRegistryRequest,
1764
+ output: DeleteSettingImpersonationRegistryResponse,
1765
+ errors: [],
1766
+ }));
1767
+ export const GetSettingTrustedDomainRequest =
1768
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1769
+ trustedDomainId: Schema.Number.pipe(T.HttpPath("trustedDomainId")),
1770
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1771
+ }).pipe(T.Http({
1772
+ method: "GET",
1773
+ path: "/accounts/{account_id}/email-security/settings/trusted_domains/{trustedDomainId}",
1774
+ }));
1775
+ export const GetSettingTrustedDomainResponse =
1776
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1777
+ id: Schema.Number,
1778
+ createdAt: Schema.String,
1779
+ isRecent: Schema.Boolean,
1780
+ isRegex: Schema.Boolean,
1781
+ isSimilarity: Schema.Boolean,
1782
+ lastModified: Schema.String,
1783
+ pattern: Schema.String,
1784
+ comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1785
+ }).pipe(Schema.encodeKeys({
1786
+ id: "id",
1787
+ createdAt: "created_at",
1788
+ isRecent: "is_recent",
1789
+ isRegex: "is_regex",
1790
+ isSimilarity: "is_similarity",
1791
+ lastModified: "last_modified",
1792
+ pattern: "pattern",
1793
+ comments: "comments",
1794
+ }));
1795
+ export const getSettingTrustedDomain = API.make(() => ({
1796
+ input: GetSettingTrustedDomainRequest,
1797
+ output: GetSettingTrustedDomainResponse,
1798
+ errors: [],
1799
+ }));
1800
+ export const ListSettingTrustedDomainsRequest =
1801
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1802
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1803
+ direction: Schema.optional(Schema.Literals(["asc", "desc"])).pipe(T.HttpQuery("direction")),
1804
+ isRecent: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("is_recent")),
1805
+ isSimilarity: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("is_similarity")),
1806
+ order: Schema.optional(Schema.Literals(["pattern", "created_at"])).pipe(T.HttpQuery("order")),
1807
+ pattern: Schema.optional(Schema.String).pipe(T.HttpQuery("pattern")),
1808
+ search: Schema.optional(Schema.String).pipe(T.HttpQuery("search")),
1809
+ }).pipe(T.Http({
1810
+ method: "GET",
1811
+ path: "/accounts/{account_id}/email-security/settings/trusted_domains",
1812
+ }));
1813
+ export const ListSettingTrustedDomainsResponse =
1814
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
1815
+ id: Schema.Number,
1816
+ createdAt: Schema.String,
1817
+ isRecent: Schema.Boolean,
1818
+ isRegex: Schema.Boolean,
1819
+ isSimilarity: Schema.Boolean,
1820
+ lastModified: Schema.String,
1821
+ pattern: Schema.String,
1822
+ comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1823
+ }).pipe(Schema.encodeKeys({
1824
+ id: "id",
1825
+ createdAt: "created_at",
1826
+ isRecent: "is_recent",
1827
+ isRegex: "is_regex",
1828
+ isSimilarity: "is_similarity",
1829
+ lastModified: "last_modified",
1830
+ pattern: "pattern",
1831
+ comments: "comments",
1832
+ })));
1833
+ export const listSettingTrustedDomains = API.make(() => ({
1834
+ input: ListSettingTrustedDomainsRequest,
1835
+ output: ListSettingTrustedDomainsResponse,
1836
+ errors: [],
1837
+ }));
1838
+ export const CreateSettingTrustedDomainRequest =
1839
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1840
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1841
+ isRecent: Schema.Boolean,
1842
+ isRegex: Schema.Boolean,
1843
+ isSimilarity: Schema.Boolean,
1844
+ pattern: Schema.String,
1845
+ comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1846
+ }).pipe(Schema.encodeKeys({
1847
+ isRecent: "is_recent",
1848
+ isRegex: "is_regex",
1849
+ isSimilarity: "is_similarity",
1850
+ pattern: "pattern",
1851
+ comments: "comments",
1852
+ }), T.Http({
1853
+ method: "POST",
1854
+ path: "/accounts/{account_id}/email-security/settings/trusted_domains",
1855
+ }));
1856
+ export const CreateSettingTrustedDomainResponse =
1857
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
1858
+ Schema.Struct({
1859
+ id: Schema.Number,
1860
+ createdAt: Schema.String,
1861
+ isRecent: Schema.Boolean,
1862
+ isRegex: Schema.Boolean,
1863
+ isSimilarity: Schema.Boolean,
1864
+ lastModified: Schema.String,
1865
+ pattern: Schema.String,
1866
+ comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1867
+ }).pipe(Schema.encodeKeys({
1868
+ id: "id",
1869
+ createdAt: "created_at",
1870
+ isRecent: "is_recent",
1871
+ isRegex: "is_regex",
1872
+ isSimilarity: "is_similarity",
1873
+ lastModified: "last_modified",
1874
+ pattern: "pattern",
1875
+ comments: "comments",
1876
+ })),
1877
+ Schema.Array(Schema.Struct({
1878
+ id: Schema.Number,
1879
+ createdAt: Schema.String,
1880
+ isRecent: Schema.Boolean,
1881
+ isRegex: Schema.Boolean,
1882
+ isSimilarity: Schema.Boolean,
1883
+ lastModified: Schema.String,
1884
+ pattern: Schema.String,
1885
+ comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1886
+ }).pipe(Schema.encodeKeys({
1887
+ id: "id",
1888
+ createdAt: "created_at",
1889
+ isRecent: "is_recent",
1890
+ isRegex: "is_regex",
1891
+ isSimilarity: "is_similarity",
1892
+ lastModified: "last_modified",
1893
+ pattern: "pattern",
1894
+ comments: "comments",
1895
+ }))),
1896
+ ]);
1897
+ export const createSettingTrustedDomain = API.make(() => ({
1898
+ input: CreateSettingTrustedDomainRequest,
1899
+ output: CreateSettingTrustedDomainResponse,
1900
+ errors: [],
1901
+ }));
1902
+ export const PatchSettingTrustedDomainRequest =
1903
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1904
+ trustedDomainId: Schema.Number.pipe(T.HttpPath("trustedDomainId")),
1905
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1906
+ comments: Schema.optional(Schema.String),
1907
+ isRecent: Schema.optional(Schema.Boolean),
1908
+ isRegex: Schema.optional(Schema.Boolean),
1909
+ isSimilarity: Schema.optional(Schema.Boolean),
1910
+ pattern: Schema.optional(Schema.String),
1911
+ }).pipe(Schema.encodeKeys({
1912
+ comments: "comments",
1913
+ isRecent: "is_recent",
1914
+ isRegex: "is_regex",
1915
+ isSimilarity: "is_similarity",
1916
+ pattern: "pattern",
1917
+ }), T.Http({
1918
+ method: "PATCH",
1919
+ path: "/accounts/{account_id}/email-security/settings/trusted_domains/{trustedDomainId}",
1920
+ }));
1921
+ export const PatchSettingTrustedDomainResponse =
1922
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1923
+ id: Schema.Number,
1924
+ createdAt: Schema.String,
1925
+ isRecent: Schema.Boolean,
1926
+ isRegex: Schema.Boolean,
1927
+ isSimilarity: Schema.Boolean,
1928
+ lastModified: Schema.String,
1929
+ pattern: Schema.String,
1930
+ comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1931
+ }).pipe(Schema.encodeKeys({
1932
+ id: "id",
1933
+ createdAt: "created_at",
1934
+ isRecent: "is_recent",
1935
+ isRegex: "is_regex",
1936
+ isSimilarity: "is_similarity",
1937
+ lastModified: "last_modified",
1938
+ pattern: "pattern",
1939
+ comments: "comments",
1940
+ }));
1941
+ export const patchSettingTrustedDomain = API.make(() => ({
1942
+ input: PatchSettingTrustedDomainRequest,
1943
+ output: PatchSettingTrustedDomainResponse,
1944
+ errors: [],
1945
+ }));
1946
+ export const DeleteSettingTrustedDomainRequest =
1947
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1948
+ trustedDomainId: Schema.Number.pipe(T.HttpPath("trustedDomainId")),
1949
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1950
+ }).pipe(T.Http({
1951
+ method: "DELETE",
1952
+ path: "/accounts/{account_id}/email-security/settings/trusted_domains/{trustedDomainId}",
1953
+ }));
1954
+ export const DeleteSettingTrustedDomainResponse =
1955
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1956
+ id: Schema.Number,
1957
+ });
1958
+ export const deleteSettingTrustedDomain = API.make(() => ({
1959
+ input: DeleteSettingTrustedDomainRequest,
1960
+ output: DeleteSettingTrustedDomainResponse,
1961
+ errors: [],
1962
+ }));
1963
+ export const ListSubmissionsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1964
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1965
+ end: Schema.optional(Schema.String).pipe(T.HttpQuery("end")),
1966
+ originalDisposition: Schema.optional(Schema.Literals([
1967
+ "MALICIOUS",
1968
+ "SUSPICIOUS",
1969
+ "SPOOF",
1970
+ "SPAM",
1971
+ "BULK",
1972
+ "NONE",
1973
+ ])).pipe(T.HttpQuery("original_disposition")),
1974
+ outcomeDisposition: Schema.optional(Schema.Literals([
1975
+ "MALICIOUS",
1976
+ "SUSPICIOUS",
1977
+ "SPOOF",
1978
+ "SPAM",
1979
+ "BULK",
1980
+ "NONE",
1981
+ ])).pipe(T.HttpQuery("outcome_disposition")),
1982
+ query: Schema.optional(Schema.Union([Schema.String, Schema.Null])).pipe(T.HttpQuery("query")),
1983
+ requestedDisposition: Schema.optional(Schema.Literals([
1984
+ "MALICIOUS",
1985
+ "SUSPICIOUS",
1986
+ "SPOOF",
1987
+ "SPAM",
1988
+ "BULK",
1989
+ "NONE",
1990
+ ])).pipe(T.HttpQuery("requested_disposition")),
1991
+ start: Schema.optional(Schema.String).pipe(T.HttpQuery("start")),
1992
+ status: Schema.optional(Schema.String).pipe(T.HttpQuery("status")),
1993
+ submissionId: Schema.optional(Schema.String).pipe(T.HttpQuery("submission_id")),
1994
+ type: Schema.optional(Schema.Literals(["TEAM", "USER"])).pipe(T.HttpQuery("type")),
1995
+ }).pipe(T.Http({
1996
+ method: "GET",
1997
+ path: "/accounts/{account_id}/email-security/submissions",
1998
+ }));
1999
+ export const ListSubmissionsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
2000
+ requestedTs: Schema.String,
2001
+ submissionId: Schema.String,
2002
+ originalDisposition: Schema.optional(Schema.Union([
2003
+ Schema.Literal("MALICIOUS"),
2004
+ Schema.Literal("MALICIOUS-BEC"),
2005
+ Schema.Literal("SUSPICIOUS"),
2006
+ Schema.Literal("SPOOF"),
2007
+ Schema.Literal("SPAM"),
2008
+ Schema.Literal("BULK"),
2009
+ Schema.Literal("ENCRYPTED"),
2010
+ Schema.Literal("EXTERNAL"),
2011
+ Schema.Literal("UNKNOWN"),
2012
+ Schema.Literal("NONE"),
2013
+ Schema.Null,
2014
+ ])),
2015
+ originalEdfHash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2016
+ outcome: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2017
+ outcomeDisposition: Schema.optional(Schema.Union([
2018
+ Schema.Literal("MALICIOUS"),
2019
+ Schema.Literal("MALICIOUS-BEC"),
2020
+ Schema.Literal("SUSPICIOUS"),
2021
+ Schema.Literal("SPOOF"),
2022
+ Schema.Literal("SPAM"),
2023
+ Schema.Literal("BULK"),
2024
+ Schema.Literal("ENCRYPTED"),
2025
+ Schema.Literal("EXTERNAL"),
2026
+ Schema.Literal("UNKNOWN"),
2027
+ Schema.Literal("NONE"),
2028
+ Schema.Null,
2029
+ ])),
2030
+ requestedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2031
+ requestedDisposition: Schema.optional(Schema.Union([
2032
+ Schema.Literal("MALICIOUS"),
2033
+ Schema.Literal("MALICIOUS-BEC"),
2034
+ Schema.Literal("SUSPICIOUS"),
2035
+ Schema.Literal("SPOOF"),
2036
+ Schema.Literal("SPAM"),
2037
+ Schema.Literal("BULK"),
2038
+ Schema.Literal("ENCRYPTED"),
2039
+ Schema.Literal("EXTERNAL"),
2040
+ Schema.Literal("UNKNOWN"),
2041
+ Schema.Literal("NONE"),
2042
+ Schema.Null,
2043
+ ])),
2044
+ status: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2045
+ subject: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2046
+ type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2047
+ }).pipe(Schema.encodeKeys({
2048
+ requestedTs: "requested_ts",
2049
+ submissionId: "submission_id",
2050
+ originalDisposition: "original_disposition",
2051
+ originalEdfHash: "original_edf_hash",
2052
+ outcome: "outcome",
2053
+ outcomeDisposition: "outcome_disposition",
2054
+ requestedBy: "requested_by",
2055
+ requestedDisposition: "requested_disposition",
2056
+ status: "status",
2057
+ subject: "subject",
2058
+ type: "type",
2059
+ })));
2060
+ export const listSubmissions = API.make(() => ({
2061
+ input: ListSubmissionsRequest,
2062
+ output: ListSubmissionsResponse,
2063
+ errors: [],
2064
+ }));
2065
+ //# sourceMappingURL=email-security.js.map