@distilled.cloud/cloudflare 0.0.0-john

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