@distilled.cloud/cloudflare 0.2.6 → 0.3.0-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (493) hide show
  1. package/README.md +12 -2
  2. package/lib/auth.d.ts +3 -2
  3. package/lib/auth.d.ts.map +1 -1
  4. package/lib/auth.js +4 -3
  5. package/lib/auth.js.map +1 -1
  6. package/lib/client/api.d.ts +7 -9
  7. package/lib/client/api.d.ts.map +1 -1
  8. package/lib/client/api.js +60 -13
  9. package/lib/client/api.js.map +1 -1
  10. package/lib/credentials.d.ts +58 -4
  11. package/lib/credentials.d.ts.map +1 -1
  12. package/lib/credentials.js +126 -7
  13. package/lib/credentials.js.map +1 -1
  14. package/lib/errors.d.ts +12 -1
  15. package/lib/errors.d.ts.map +1 -1
  16. package/lib/sensitive.d.ts +5 -0
  17. package/lib/sensitive.d.ts.map +1 -0
  18. package/lib/sensitive.js +5 -0
  19. package/lib/sensitive.js.map +1 -0
  20. package/lib/services/abuse-reports.d.ts +116 -44
  21. package/lib/services/abuse-reports.d.ts.map +1 -1
  22. package/lib/services/abuse-reports.js +171 -110
  23. package/lib/services/abuse-reports.js.map +1 -1
  24. package/lib/services/accounts.d.ts +146 -62
  25. package/lib/services/accounts.d.ts.map +1 -1
  26. package/lib/services/accounts.js +208 -153
  27. package/lib/services/accounts.js.map +1 -1
  28. package/lib/services/acm.d.ts.map +1 -1
  29. package/lib/services/acm.js +8 -4
  30. package/lib/services/acm.js.map +1 -1
  31. package/lib/services/addressing.d.ts +200 -87
  32. package/lib/services/addressing.d.ts.map +1 -1
  33. package/lib/services/addressing.js +288 -201
  34. package/lib/services/addressing.js.map +1 -1
  35. package/lib/services/ai-gateway.d.ts +302 -121
  36. package/lib/services/ai-gateway.d.ts.map +1 -1
  37. package/lib/services/ai-gateway.js +407 -283
  38. package/lib/services/ai-gateway.js.map +1 -1
  39. package/lib/services/ai.d.ts +83 -29
  40. package/lib/services/ai.d.ts.map +1 -1
  41. package/lib/services/ai.js +95 -42
  42. package/lib/services/ai.js.map +1 -1
  43. package/lib/services/aisearch.d.ts +266 -112
  44. package/lib/services/aisearch.d.ts.map +1 -1
  45. package/lib/services/aisearch.js +510 -393
  46. package/lib/services/aisearch.js.map +1 -1
  47. package/lib/services/alerting.d.ts +249 -112
  48. package/lib/services/alerting.d.ts.map +1 -1
  49. package/lib/services/alerting.js +382 -325
  50. package/lib/services/alerting.js.map +1 -1
  51. package/lib/services/api-gateway.d.ts +458 -200
  52. package/lib/services/api-gateway.d.ts.map +1 -1
  53. package/lib/services/api-gateway.js +725 -618
  54. package/lib/services/api-gateway.js.map +1 -1
  55. package/lib/services/argo.d.ts.map +1 -1
  56. package/lib/services/argo.js +16 -8
  57. package/lib/services/argo.js.map +1 -1
  58. package/lib/services/billing.d.ts.map +1 -1
  59. package/lib/services/billing.js +4 -2
  60. package/lib/services/billing.js.map +1 -1
  61. package/lib/services/bot-management.d.ts.map +1 -1
  62. package/lib/services/bot-management.js +2 -2
  63. package/lib/services/bot-management.js.map +1 -1
  64. package/lib/services/botnet-feed.d.ts.map +1 -1
  65. package/lib/services/botnet-feed.js +10 -6
  66. package/lib/services/botnet-feed.js.map +1 -1
  67. package/lib/services/brand-protection.d.ts +8 -2
  68. package/lib/services/brand-protection.d.ts.map +1 -1
  69. package/lib/services/brand-protection.js +9 -2
  70. package/lib/services/brand-protection.js.map +1 -1
  71. package/lib/services/browser-rendering.d.ts.map +1 -1
  72. package/lib/services/browser-rendering.js +15 -14
  73. package/lib/services/browser-rendering.js.map +1 -1
  74. package/lib/services/cache.d.ts.map +1 -1
  75. package/lib/services/cache.js +49 -25
  76. package/lib/services/cache.js.map +1 -1
  77. package/lib/services/calls.d.ts +35 -14
  78. package/lib/services/calls.d.ts.map +1 -1
  79. package/lib/services/calls.js +35 -22
  80. package/lib/services/calls.js.map +1 -1
  81. package/lib/services/certificate-authorities.d.ts.map +1 -1
  82. package/lib/services/certificate-authorities.js +2 -2
  83. package/lib/services/certificate-authorities.js.map +1 -1
  84. package/lib/services/client-certificates.d.ts +57 -23
  85. package/lib/services/client-certificates.d.ts.map +1 -1
  86. package/lib/services/client-certificates.js +91 -62
  87. package/lib/services/client-certificates.js.map +1 -1
  88. package/lib/services/cloud-connector.d.ts +51 -22
  89. package/lib/services/cloud-connector.d.ts.map +1 -1
  90. package/lib/services/cloud-connector.js +57 -44
  91. package/lib/services/cloud-connector.js.map +1 -1
  92. package/lib/services/cloudforce-one.d.ts +119 -50
  93. package/lib/services/cloudforce-one.d.ts.map +1 -1
  94. package/lib/services/cloudforce-one.js +181 -124
  95. package/lib/services/cloudforce-one.js.map +1 -1
  96. package/lib/services/connectivity.d.ts +74 -31
  97. package/lib/services/connectivity.d.ts.map +1 -1
  98. package/lib/services/connectivity.js +84 -57
  99. package/lib/services/connectivity.js.map +1 -1
  100. package/lib/services/content-scanning.d.ts +40 -15
  101. package/lib/services/content-scanning.d.ts.map +1 -1
  102. package/lib/services/content-scanning.js +40 -21
  103. package/lib/services/content-scanning.js.map +1 -1
  104. package/lib/services/custom-certificates.d.ts +48 -19
  105. package/lib/services/custom-certificates.d.ts.map +1 -1
  106. package/lib/services/custom-certificates.js +80 -53
  107. package/lib/services/custom-certificates.js.map +1 -1
  108. package/lib/services/custom-hostnames.d.ts +116 -51
  109. package/lib/services/custom-hostnames.d.ts.map +1 -1
  110. package/lib/services/custom-hostnames.js +210 -170
  111. package/lib/services/custom-hostnames.js.map +1 -1
  112. package/lib/services/custom-nameservers.d.ts +32 -12
  113. package/lib/services/custom-nameservers.d.ts.map +1 -1
  114. package/lib/services/custom-nameservers.js +36 -21
  115. package/lib/services/custom-nameservers.js.map +1 -1
  116. package/lib/services/custom-pages.d.ts +26 -11
  117. package/lib/services/custom-pages.d.ts.map +1 -1
  118. package/lib/services/custom-pages.js +39 -24
  119. package/lib/services/custom-pages.js.map +1 -1
  120. package/lib/services/d1.d.ts +114 -48
  121. package/lib/services/d1.d.ts.map +1 -1
  122. package/lib/services/d1.js +150 -111
  123. package/lib/services/d1.js.map +1 -1
  124. package/lib/services/dcv-delegation.d.ts.map +1 -1
  125. package/lib/services/dcv-delegation.js +1 -1
  126. package/lib/services/dcv-delegation.js.map +1 -1
  127. package/lib/services/diagnostics.d.ts +59 -26
  128. package/lib/services/diagnostics.d.ts.map +1 -1
  129. package/lib/services/diagnostics.js +97 -82
  130. package/lib/services/diagnostics.js.map +1 -1
  131. package/lib/services/dns-firewall.d.ts +48 -19
  132. package/lib/services/dns-firewall.d.ts.map +1 -1
  133. package/lib/services/dns-firewall.js +75 -48
  134. package/lib/services/dns-firewall.js.map +1 -1
  135. package/lib/services/dns.d.ts +206 -87
  136. package/lib/services/dns.d.ts.map +1 -1
  137. package/lib/services/dns.js +335 -219
  138. package/lib/services/dns.js.map +1 -1
  139. package/lib/services/durable-objects.d.ts +44 -13
  140. package/lib/services/durable-objects.d.ts.map +1 -1
  141. package/lib/services/durable-objects.js +56 -19
  142. package/lib/services/durable-objects.js.map +1 -1
  143. package/lib/services/email-routing.d.ts +90 -34
  144. package/lib/services/email-routing.d.ts.map +1 -1
  145. package/lib/services/email-routing.js +133 -80
  146. package/lib/services/email-routing.js.map +1 -1
  147. package/lib/services/email-security.d.ts +439 -181
  148. package/lib/services/email-security.d.ts.map +1 -1
  149. package/lib/services/email-security.js +753 -557
  150. package/lib/services/email-security.js.map +1 -1
  151. package/lib/services/filters.d.ts +64 -24
  152. package/lib/services/filters.d.ts.map +1 -1
  153. package/lib/services/filters.js +61 -28
  154. package/lib/services/filters.js.map +1 -1
  155. package/lib/services/firewall.d.ts +455 -183
  156. package/lib/services/firewall.d.ts.map +1 -1
  157. package/lib/services/firewall.js +777 -574
  158. package/lib/services/firewall.js.map +1 -1
  159. package/lib/services/healthchecks.d.ts +76 -33
  160. package/lib/services/healthchecks.d.ts.map +1 -1
  161. package/lib/services/healthchecks.js +129 -100
  162. package/lib/services/healthchecks.js.map +1 -1
  163. package/lib/services/hostnames.d.ts +20 -8
  164. package/lib/services/hostnames.d.ts.map +1 -1
  165. package/lib/services/hostnames.js +32 -21
  166. package/lib/services/hostnames.js.map +1 -1
  167. package/lib/services/hyperdrive.d.ts.map +1 -1
  168. package/lib/services/hyperdrive.js +10 -9
  169. package/lib/services/hyperdrive.js.map +1 -1
  170. package/lib/services/iam.d.ts +162 -59
  171. package/lib/services/iam.d.ts.map +1 -1
  172. package/lib/services/iam.js +219 -119
  173. package/lib/services/iam.js.map +1 -1
  174. package/lib/services/images.d.ts +36 -12
  175. package/lib/services/images.d.ts.map +1 -1
  176. package/lib/services/images.js +59 -32
  177. package/lib/services/images.js.map +1 -1
  178. package/lib/services/intel.d.ts +159 -62
  179. package/lib/services/intel.d.ts.map +1 -1
  180. package/lib/services/intel.js +238 -151
  181. package/lib/services/intel.js.map +1 -1
  182. package/lib/services/ips.d.ts.map +1 -1
  183. package/lib/services/ips.js +1 -1
  184. package/lib/services/ips.js.map +1 -1
  185. package/lib/services/keyless-certificates.d.ts +36 -16
  186. package/lib/services/keyless-certificates.d.ts.map +1 -1
  187. package/lib/services/keyless-certificates.js +50 -37
  188. package/lib/services/keyless-certificates.js.map +1 -1
  189. package/lib/services/kv.d.ts +42 -12
  190. package/lib/services/kv.d.ts.map +1 -1
  191. package/lib/services/kv.js +87 -36
  192. package/lib/services/kv.js.map +1 -1
  193. package/lib/services/leaked-credential-checks.d.ts +16 -6
  194. package/lib/services/leaked-credential-checks.d.ts.map +1 -1
  195. package/lib/services/leaked-credential-checks.js +20 -12
  196. package/lib/services/leaked-credential-checks.js.map +1 -1
  197. package/lib/services/load-balancers.d.ts +373 -167
  198. package/lib/services/load-balancers.d.ts.map +1 -1
  199. package/lib/services/load-balancers.js +603 -490
  200. package/lib/services/load-balancers.js.map +1 -1
  201. package/lib/services/logpush.d.ts.map +1 -1
  202. package/lib/services/logpush.js +23 -15
  203. package/lib/services/logpush.js.map +1 -1
  204. package/lib/services/logs.d.ts.map +1 -1
  205. package/lib/services/logs.js +11 -7
  206. package/lib/services/logs.js.map +1 -1
  207. package/lib/services/magic-cloud-networking.d.ts +542 -249
  208. package/lib/services/magic-cloud-networking.d.ts.map +1 -1
  209. package/lib/services/magic-cloud-networking.js +890 -804
  210. package/lib/services/magic-cloud-networking.js.map +1 -1
  211. package/lib/services/magic-network-monitoring.d.ts.map +1 -1
  212. package/lib/services/magic-network-monitoring.js +44 -22
  213. package/lib/services/magic-network-monitoring.js.map +1 -1
  214. package/lib/services/magic-transit.d.ts +432 -196
  215. package/lib/services/magic-transit.d.ts.map +1 -1
  216. package/lib/services/magic-transit.js +730 -566
  217. package/lib/services/magic-transit.js.map +1 -1
  218. package/lib/services/managed-transforms.d.ts.map +1 -1
  219. package/lib/services/managed-transforms.js +8 -4
  220. package/lib/services/managed-transforms.js.map +1 -1
  221. package/lib/services/memberships.d.ts +54 -22
  222. package/lib/services/memberships.d.ts.map +1 -1
  223. package/lib/services/memberships.js +79 -53
  224. package/lib/services/memberships.js.map +1 -1
  225. package/lib/services/mtls-certificates.d.ts +41 -17
  226. package/lib/services/mtls-certificates.d.ts.map +1 -1
  227. package/lib/services/mtls-certificates.js +52 -33
  228. package/lib/services/mtls-certificates.js.map +1 -1
  229. package/lib/services/organizations.d.ts +56 -25
  230. package/lib/services/organizations.d.ts.map +1 -1
  231. package/lib/services/organizations.js +74 -59
  232. package/lib/services/organizations.js.map +1 -1
  233. package/lib/services/origin-ca-certificates.d.ts +30 -10
  234. package/lib/services/origin-ca-certificates.d.ts.map +1 -1
  235. package/lib/services/origin-ca-certificates.js +62 -35
  236. package/lib/services/origin-ca-certificates.js.map +1 -1
  237. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -1
  238. package/lib/services/origin-post-quantum-encryption.js +8 -4
  239. package/lib/services/origin-post-quantum-encryption.js.map +1 -1
  240. package/lib/services/origin-tls-client-auth.d.ts +60 -25
  241. package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
  242. package/lib/services/origin-tls-client-auth.js +94 -60
  243. package/lib/services/origin-tls-client-auth.js.map +1 -1
  244. package/lib/services/page-rules.d.ts.map +1 -1
  245. package/lib/services/page-rules.js +18 -10
  246. package/lib/services/page-rules.js.map +1 -1
  247. package/lib/services/page-shield.d.ts +145 -66
  248. package/lib/services/page-shield.d.ts.map +1 -1
  249. package/lib/services/page-shield.js +166 -130
  250. package/lib/services/page-shield.js.map +1 -1
  251. package/lib/services/pages.d.ts +520 -225
  252. package/lib/services/pages.d.ts.map +1 -1
  253. package/lib/services/pages.js +643 -567
  254. package/lib/services/pages.js.map +1 -1
  255. package/lib/services/pipelines.d.ts +461 -206
  256. package/lib/services/pipelines.d.ts.map +1 -1
  257. package/lib/services/pipelines.js +859 -780
  258. package/lib/services/pipelines.js.map +1 -1
  259. package/lib/services/queues.d.ts +177 -80
  260. package/lib/services/queues.d.ts.map +1 -1
  261. package/lib/services/queues.js +233 -177
  262. package/lib/services/queues.js.map +1 -1
  263. package/lib/services/r2-data-catalog.d.ts.map +1 -1
  264. package/lib/services/r2-data-catalog.js +30 -16
  265. package/lib/services/r2-data-catalog.js.map +1 -1
  266. package/lib/services/r2.d.ts +85 -39
  267. package/lib/services/r2.d.ts.map +1 -1
  268. package/lib/services/r2.js +146 -126
  269. package/lib/services/r2.js.map +1 -1
  270. package/lib/services/radar.d.ts +152 -63
  271. package/lib/services/radar.d.ts.map +1 -1
  272. package/lib/services/radar.js +421 -360
  273. package/lib/services/radar.js.map +1 -1
  274. package/lib/services/rate-limits.d.ts +76 -31
  275. package/lib/services/rate-limits.d.ts.map +1 -1
  276. package/lib/services/rate-limits.js +106 -82
  277. package/lib/services/rate-limits.js.map +1 -1
  278. package/lib/services/realtime-kit.d.ts.map +1 -1
  279. package/lib/services/realtime-kit.js +34 -33
  280. package/lib/services/realtime-kit.js.map +1 -1
  281. package/lib/services/registrar.d.ts +75 -35
  282. package/lib/services/registrar.d.ts.map +1 -1
  283. package/lib/services/registrar.js +116 -103
  284. package/lib/services/registrar.js.map +1 -1
  285. package/lib/services/request-tracers.d.ts.map +1 -1
  286. package/lib/services/request-tracers.js +5 -2
  287. package/lib/services/request-tracers.js.map +1 -1
  288. package/lib/services/resource-sharing.d.ts +132 -50
  289. package/lib/services/resource-sharing.d.ts.map +1 -1
  290. package/lib/services/resource-sharing.js +232 -149
  291. package/lib/services/resource-sharing.js.map +1 -1
  292. package/lib/services/rules.d.ts +86 -37
  293. package/lib/services/rules.d.ts.map +1 -1
  294. package/lib/services/rules.js +122 -87
  295. package/lib/services/rules.js.map +1 -1
  296. package/lib/services/rulesets.d.ts +75 -30
  297. package/lib/services/rulesets.d.ts.map +1 -1
  298. package/lib/services/rulesets.js +274 -222
  299. package/lib/services/rulesets.js.map +1 -1
  300. package/lib/services/rum.d.ts +40 -15
  301. package/lib/services/rum.d.ts.map +1 -1
  302. package/lib/services/rum.js +78 -45
  303. package/lib/services/rum.js.map +1 -1
  304. package/lib/services/schema-validation.d.ts +47 -14
  305. package/lib/services/schema-validation.d.ts.map +1 -1
  306. package/lib/services/schema-validation.js +102 -43
  307. package/lib/services/schema-validation.js.map +1 -1
  308. package/lib/services/secrets-store.d.ts +116 -44
  309. package/lib/services/secrets-store.d.ts.map +1 -1
  310. package/lib/services/secrets-store.js +145 -78
  311. package/lib/services/secrets-store.js.map +1 -1
  312. package/lib/services/security-center.d.ts +56 -22
  313. package/lib/services/security-center.d.ts.map +1 -1
  314. package/lib/services/security-center.js +90 -64
  315. package/lib/services/security-center.js.map +1 -1
  316. package/lib/services/security-txt.d.ts.map +1 -1
  317. package/lib/services/security-txt.js +1 -1
  318. package/lib/services/security-txt.js.map +1 -1
  319. package/lib/services/snippets.d.ts +85 -33
  320. package/lib/services/snippets.d.ts.map +1 -1
  321. package/lib/services/snippets.js +106 -63
  322. package/lib/services/snippets.js.map +1 -1
  323. package/lib/services/spectrum.d.ts +58 -24
  324. package/lib/services/spectrum.d.ts.map +1 -1
  325. package/lib/services/spectrum.js +90 -65
  326. package/lib/services/spectrum.js.map +1 -1
  327. package/lib/services/speed.d.ts +47 -17
  328. package/lib/services/speed.d.ts.map +1 -1
  329. package/lib/services/speed.js +51 -24
  330. package/lib/services/speed.js.map +1 -1
  331. package/lib/services/ssl.d.ts +77 -35
  332. package/lib/services/ssl.d.ts.map +1 -1
  333. package/lib/services/ssl.js +146 -123
  334. package/lib/services/ssl.js.map +1 -1
  335. package/lib/services/stream.d.ts +173 -77
  336. package/lib/services/stream.d.ts.map +1 -1
  337. package/lib/services/stream.js +167 -131
  338. package/lib/services/stream.js.map +1 -1
  339. package/lib/services/token-validation.d.ts +203 -88
  340. package/lib/services/token-validation.d.ts.map +1 -1
  341. package/lib/services/token-validation.js +238 -172
  342. package/lib/services/token-validation.js.map +1 -1
  343. package/lib/services/turnstile.d.ts +38 -14
  344. package/lib/services/turnstile.d.ts.map +1 -1
  345. package/lib/services/turnstile.js +72 -41
  346. package/lib/services/turnstile.js.map +1 -1
  347. package/lib/services/url-normalization.d.ts.map +1 -1
  348. package/lib/services/url-normalization.js +2 -2
  349. package/lib/services/url-normalization.js.map +1 -1
  350. package/lib/services/user.d.ts +106 -40
  351. package/lib/services/user.d.ts.map +1 -1
  352. package/lib/services/user.js +156 -89
  353. package/lib/services/user.js.map +1 -1
  354. package/lib/services/vectorize.d.ts +26 -11
  355. package/lib/services/vectorize.d.ts.map +1 -1
  356. package/lib/services/vectorize.js +46 -35
  357. package/lib/services/vectorize.js.map +1 -1
  358. package/lib/services/waiting-rooms.d.ts +244 -104
  359. package/lib/services/waiting-rooms.d.ts.map +1 -1
  360. package/lib/services/waiting-rooms.js +398 -296
  361. package/lib/services/waiting-rooms.js.map +1 -1
  362. package/lib/services/web3.d.ts +26 -11
  363. package/lib/services/web3.d.ts.map +1 -1
  364. package/lib/services/web3.js +62 -43
  365. package/lib/services/web3.js.map +1 -1
  366. package/lib/services/workers-for-platforms.d.ts +323 -153
  367. package/lib/services/workers-for-platforms.d.ts.map +1 -1
  368. package/lib/services/workers-for-platforms.js +331 -288
  369. package/lib/services/workers-for-platforms.js.map +1 -1
  370. package/lib/services/workers.d.ts +601 -272
  371. package/lib/services/workers.d.ts.map +1 -1
  372. package/lib/services/workers.js +771 -633
  373. package/lib/services/workers.js.map +1 -1
  374. package/lib/services/workflows.d.ts +130 -47
  375. package/lib/services/workflows.d.ts.map +1 -1
  376. package/lib/services/workflows.js +190 -107
  377. package/lib/services/workflows.js.map +1 -1
  378. package/lib/services/zaraz.d.ts +20 -8
  379. package/lib/services/zaraz.d.ts.map +1 -1
  380. package/lib/services/zaraz.js +20 -13
  381. package/lib/services/zaraz.js.map +1 -1
  382. package/lib/services/zero-trust.d.ts +5436 -2650
  383. package/lib/services/zero-trust.d.ts.map +1 -1
  384. package/lib/services/zero-trust.js +9008 -7934
  385. package/lib/services/zero-trust.js.map +1 -1
  386. package/lib/services/zones.d.ts +188 -84
  387. package/lib/services/zones.d.ts.map +1 -1
  388. package/lib/services/zones.js +257 -196
  389. package/lib/services/zones.js.map +1 -1
  390. package/package.json +3 -2
  391. package/src/auth.ts +4 -3
  392. package/src/client/api.ts +105 -13
  393. package/src/credentials.ts +253 -12
  394. package/src/errors.ts +17 -1
  395. package/src/sensitive.ts +4 -0
  396. package/src/services/abuse-reports.ts +416 -208
  397. package/src/services/accounts.ts +511 -306
  398. package/src/services/acm.ts +22 -14
  399. package/src/services/addressing.ts +865 -550
  400. package/src/services/ai-gateway.ts +1148 -710
  401. package/src/services/ai.ts +265 -91
  402. package/src/services/aisearch.ts +1460 -995
  403. package/src/services/alerting.ts +1027 -671
  404. package/src/services/api-gateway.ts +1628 -1129
  405. package/src/services/argo.ts +48 -32
  406. package/src/services/billing.ts +47 -43
  407. package/src/services/bot-management.ts +6 -2
  408. package/src/services/botnet-feed.ts +28 -16
  409. package/src/services/brand-protection.ts +28 -6
  410. package/src/services/browser-rendering.ts +23 -10
  411. package/src/services/cache.ts +147 -97
  412. package/src/services/calls.ts +107 -42
  413. package/src/services/certificate-authorities.ts +6 -2
  414. package/src/services/client-certificates.ts +270 -173
  415. package/src/services/cloud-connector.ts +149 -82
  416. package/src/services/cloudforce-one.ts +515 -287
  417. package/src/services/connectivity.ts +184 -107
  418. package/src/services/content-scanning.ts +115 -42
  419. package/src/services/custom-certificates.ts +200 -121
  420. package/src/services/custom-hostnames.ts +583 -395
  421. package/src/services/custom-nameservers.ts +98 -45
  422. package/src/services/custom-pages.ts +109 -62
  423. package/src/services/d1.ts +409 -235
  424. package/src/services/dcv-delegation.ts +3 -1
  425. package/src/services/diagnostics.ts +267 -193
  426. package/src/services/dns-firewall.ts +197 -116
  427. package/src/services/dns.ts +916 -536
  428. package/src/services/durable-objects.ts +126 -37
  429. package/src/services/email-routing.ts +375 -181
  430. package/src/services/email-security.ts +1881 -1112
  431. package/src/services/filters.ts +176 -58
  432. package/src/services/firewall.ts +1843 -1011
  433. package/src/services/healthchecks.ts +374 -258
  434. package/src/services/hostnames.ts +83 -47
  435. package/src/services/hyperdrive.ts +12 -9
  436. package/src/services/iam.ts +560 -259
  437. package/src/services/images.ts +148 -54
  438. package/src/services/intel.ts +677 -373
  439. package/src/services/ips.ts +1 -1
  440. package/src/services/keyless-certificates.ts +139 -92
  441. package/src/services/kv.ts +204 -86
  442. package/src/services/leaked-credential-checks.ts +58 -19
  443. package/src/services/load-balancers.ts +1755 -1200
  444. package/src/services/logpush.ts +100 -72
  445. package/src/services/logs.ts +29 -15
  446. package/src/services/magic-cloud-networking.ts +2453 -1726
  447. package/src/services/magic-network-monitoring.ts +163 -119
  448. package/src/services/magic-transit.ts +2153 -1530
  449. package/src/services/managed-transforms.ts +20 -12
  450. package/src/services/memberships.ts +196 -113
  451. package/src/services/mtls-certificates.ts +158 -88
  452. package/src/services/organizations.ts +185 -121
  453. package/src/services/origin-ca-certificates.ts +130 -64
  454. package/src/services/origin-post-quantum-encryption.ts +24 -16
  455. package/src/services/origin-tls-client-auth.ts +282 -158
  456. package/src/services/page-rules.ts +64 -44
  457. package/src/services/page-shield.ts +492 -316
  458. package/src/services/pages.ts +1612 -1154
  459. package/src/services/pipelines.ts +1735 -1280
  460. package/src/services/queues.ts +617 -419
  461. package/src/services/r2-data-catalog.ts +82 -50
  462. package/src/services/r2.ts +420 -239
  463. package/src/services/radar.ts +1107 -423
  464. package/src/services/rate-limits.ts +254 -152
  465. package/src/services/realtime-kit.ts +34 -33
  466. package/src/services/registrar.ts +262 -167
  467. package/src/services/request-tracers.ts +7 -4
  468. package/src/services/resource-sharing.ts +628 -378
  469. package/src/services/rules.ts +292 -176
  470. package/src/services/rulesets.ts +643 -426
  471. package/src/services/rum.ts +204 -111
  472. package/src/services/schema-validation.ts +240 -104
  473. package/src/services/secrets-store.ts +356 -166
  474. package/src/services/security-center.ts +196 -98
  475. package/src/services/security-txt.ts +2 -0
  476. package/src/services/snippets.ts +259 -117
  477. package/src/services/spectrum.ts +215 -128
  478. package/src/services/speed.ts +144 -46
  479. package/src/services/ssl.ts +420 -293
  480. package/src/services/stream.ts +496 -244
  481. package/src/services/token-validation.ts +583 -343
  482. package/src/services/turnstile.ts +206 -124
  483. package/src/services/url-normalization.ts +6 -2
  484. package/src/services/user.ts +480 -277
  485. package/src/services/vectorize.ts +123 -64
  486. package/src/services/waiting-rooms.ts +1156 -747
  487. package/src/services/web3.ts +178 -113
  488. package/src/services/workers-for-platforms.ts +814 -539
  489. package/src/services/workers.ts +1888 -1227
  490. package/src/services/workflows.ts +453 -205
  491. package/src/services/zaraz.ts +61 -25
  492. package/src/services/zero-trust.ts +17859 -12103
  493. package/src/services/zones.ts +690 -459
@@ -5,6 +5,7 @@
5
5
  * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service email-security
6
6
  */
7
7
 
8
+ import * as stream from "effect/Stream";
8
9
  import * as Schema from "effect/Schema";
9
10
  import type * as HttpClient from "effect/unstable/http/HttpClient";
10
11
  import * as API from "../client/api.ts";
@@ -331,38 +332,42 @@ export const GetInvestigateResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
331
332
  ]),
332
333
  ),
333
334
  },
334
- ).pipe(
335
- Schema.encodeKeys({
336
- id: "id",
337
- actionLog: "action_log",
338
- clientRecipients: "client_recipients",
339
- detectionReasons: "detection_reasons",
340
- isPhishSubmission: "is_phish_submission",
341
- isQuarantined: "is_quarantined",
342
- postfixId: "postfix_id",
343
- properties: "properties",
344
- ts: "ts",
345
- alertId: "alert_id",
346
- deliveryMode: "delivery_mode",
347
- edfHash: "edf_hash",
348
- envelopeFrom: "envelope_from",
349
- envelopeTo: "envelope_to",
350
- finalDisposition: "final_disposition",
351
- findings: "findings",
352
- from: "from",
353
- fromName: "from_name",
354
- htmltextStructureHash: "htmltext_structure_hash",
355
- messageId: "message_id",
356
- postfixIdOutbound: "postfix_id_outbound",
357
- replyto: "replyto",
358
- sentDate: "sent_date",
359
- subject: "subject",
360
- threatCategories: "threat_categories",
361
- to: "to",
362
- toName: "to_name",
363
- validation: "validation",
364
- }),
365
- ) as unknown as Schema.Schema<GetInvestigateResponse>;
335
+ )
336
+ .pipe(
337
+ Schema.encodeKeys({
338
+ id: "id",
339
+ actionLog: "action_log",
340
+ clientRecipients: "client_recipients",
341
+ detectionReasons: "detection_reasons",
342
+ isPhishSubmission: "is_phish_submission",
343
+ isQuarantined: "is_quarantined",
344
+ postfixId: "postfix_id",
345
+ properties: "properties",
346
+ ts: "ts",
347
+ alertId: "alert_id",
348
+ deliveryMode: "delivery_mode",
349
+ edfHash: "edf_hash",
350
+ envelopeFrom: "envelope_from",
351
+ envelopeTo: "envelope_to",
352
+ finalDisposition: "final_disposition",
353
+ findings: "findings",
354
+ from: "from",
355
+ fromName: "from_name",
356
+ htmltextStructureHash: "htmltext_structure_hash",
357
+ messageId: "message_id",
358
+ postfixIdOutbound: "postfix_id_outbound",
359
+ replyto: "replyto",
360
+ sentDate: "sent_date",
361
+ subject: "subject",
362
+ threatCategories: "threat_categories",
363
+ to: "to",
364
+ toName: "to_name",
365
+ validation: "validation",
366
+ }),
367
+ )
368
+ .pipe(
369
+ T.ResponsePath("result"),
370
+ ) as unknown as Schema.Schema<GetInvestigateResponse>;
366
371
 
367
372
  export type GetInvestigateError = DefaultErrors;
368
373
 
@@ -456,361 +461,514 @@ export const ListInvestigatesRequest =
456
461
  }),
457
462
  ) as unknown as Schema.Schema<ListInvestigatesRequest>;
458
463
 
459
- export type ListInvestigatesResponse = {
460
- id: string;
461
- actionLog: unknown;
462
- clientRecipients: string[];
463
- detectionReasons: string[];
464
- isPhishSubmission: boolean;
465
- isQuarantined: boolean;
466
- postfixId: string;
467
- properties: {
468
- allowlistedPattern?: string | null;
469
- allowlistedPatternType?:
470
- | "quarantine_release"
471
- | "acceptable_sender"
472
- | "allowed_sender"
473
- | "allowed_recipient"
474
- | "domain_similarity"
475
- | "domain_recency"
476
- | "managed_acceptable_sender"
477
- | "outbound_ndr"
464
+ export interface ListInvestigatesResponse {
465
+ result: {
466
+ id: string;
467
+ actionLog: unknown;
468
+ clientRecipients: string[];
469
+ detectionReasons: string[];
470
+ isPhishSubmission: boolean;
471
+ isQuarantined: boolean;
472
+ postfixId: string;
473
+ properties: {
474
+ allowlistedPattern?: string | null;
475
+ allowlistedPatternType?:
476
+ | "quarantine_release"
477
+ | "acceptable_sender"
478
+ | "allowed_sender"
479
+ | "allowed_recipient"
480
+ | "domain_similarity"
481
+ | "domain_recency"
482
+ | "managed_acceptable_sender"
483
+ | "outbound_ndr"
484
+ | null;
485
+ blocklistedMessage?: boolean | null;
486
+ blocklistedPattern?: string | null;
487
+ whitelistedPatternType?:
488
+ | "quarantine_release"
489
+ | "acceptable_sender"
490
+ | "allowed_sender"
491
+ | "allowed_recipient"
492
+ | "domain_similarity"
493
+ | "domain_recency"
494
+ | "managed_acceptable_sender"
495
+ | "outbound_ndr"
496
+ | null;
497
+ };
498
+ ts: string;
499
+ alertId?: string | null;
500
+ deliveryMode?:
501
+ | "DIRECT"
502
+ | "BCC"
503
+ | "JOURNAL"
504
+ | "REVIEW_SUBMISSION"
505
+ | "DMARC_UNVERIFIED"
506
+ | "DMARC_FAILURE_REPORT"
507
+ | "DMARC_AGGREGATE_REPORT"
508
+ | "THREAT_INTEL_SUBMISSION"
509
+ | "SIMULATION_SUBMISSION"
510
+ | "API"
511
+ | "RETRO_SCAN"
478
512
  | null;
479
- blocklistedMessage?: boolean | null;
480
- blocklistedPattern?: string | null;
481
- whitelistedPatternType?:
482
- | "quarantine_release"
483
- | "acceptable_sender"
484
- | "allowed_sender"
485
- | "allowed_recipient"
486
- | "domain_similarity"
487
- | "domain_recency"
488
- | "managed_acceptable_sender"
489
- | "outbound_ndr"
513
+ edfHash?: string | null;
514
+ envelopeFrom?: string | null;
515
+ envelopeTo?: string[] | null;
516
+ finalDisposition?:
517
+ | "MALICIOUS"
518
+ | "MALICIOUS-BEC"
519
+ | "SUSPICIOUS"
520
+ | "SPOOF"
521
+ | "SPAM"
522
+ | "BULK"
523
+ | "ENCRYPTED"
524
+ | "EXTERNAL"
525
+ | "UNKNOWN"
526
+ | "NONE"
490
527
  | null;
528
+ findings?:
529
+ | {
530
+ attachment?: string | null;
531
+ detail?: string | null;
532
+ detection?:
533
+ | "MALICIOUS"
534
+ | "MALICIOUS-BEC"
535
+ | "SUSPICIOUS"
536
+ | "SPOOF"
537
+ | "SPAM"
538
+ | "BULK"
539
+ | "ENCRYPTED"
540
+ | "EXTERNAL"
541
+ | "UNKNOWN"
542
+ | "NONE"
543
+ | null;
544
+ field?: string | null;
545
+ name?: string | null;
546
+ portion?: string | null;
547
+ reason?: string | null;
548
+ score?: number | null;
549
+ value?: string | null;
550
+ }[]
551
+ | null;
552
+ from?: string | null;
553
+ fromName?: string | null;
554
+ htmltextStructureHash?: string | null;
555
+ messageId?: string | null;
556
+ postfixIdOutbound?: string | null;
557
+ replyto?: string | null;
558
+ sentDate?: string | null;
559
+ subject?: string | null;
560
+ threatCategories?: string[] | null;
561
+ to?: string[] | null;
562
+ toName?: string[] | null;
563
+ validation?: {
564
+ comment?: string | null;
565
+ dkim?: "pass" | "neutral" | "fail" | "error" | "none" | null;
566
+ dmarc?: "pass" | "neutral" | "fail" | "error" | "none" | null;
567
+ spf?: "pass" | "neutral" | "fail" | "error" | "none" | null;
568
+ } | null;
569
+ }[];
570
+ resultInfo: {
571
+ count?: number | null;
572
+ page?: number | null;
573
+ perPage?: number | null;
574
+ totalCount?: number | null;
491
575
  };
492
- ts: string;
493
- alertId?: string | null;
494
- deliveryMode?:
495
- | "DIRECT"
496
- | "BCC"
497
- | "JOURNAL"
498
- | "REVIEW_SUBMISSION"
499
- | "DMARC_UNVERIFIED"
500
- | "DMARC_FAILURE_REPORT"
501
- | "DMARC_AGGREGATE_REPORT"
502
- | "THREAT_INTEL_SUBMISSION"
503
- | "SIMULATION_SUBMISSION"
504
- | "API"
505
- | "RETRO_SCAN"
506
- | null;
507
- edfHash?: string | null;
508
- envelopeFrom?: string | null;
509
- envelopeTo?: string[] | null;
510
- finalDisposition?:
511
- | "MALICIOUS"
512
- | "MALICIOUS-BEC"
513
- | "SUSPICIOUS"
514
- | "SPOOF"
515
- | "SPAM"
516
- | "BULK"
517
- | "ENCRYPTED"
518
- | "EXTERNAL"
519
- | "UNKNOWN"
520
- | "NONE"
521
- | null;
522
- findings?:
523
- | {
524
- attachment?: string | null;
525
- detail?: string | null;
526
- detection?:
527
- | "MALICIOUS"
528
- | "MALICIOUS-BEC"
529
- | "SUSPICIOUS"
530
- | "SPOOF"
531
- | "SPAM"
532
- | "BULK"
533
- | "ENCRYPTED"
534
- | "EXTERNAL"
535
- | "UNKNOWN"
536
- | "NONE"
537
- | null;
538
- field?: string | null;
539
- name?: string | null;
540
- portion?: string | null;
541
- reason?: string | null;
542
- score?: number | null;
543
- value?: string | null;
544
- }[]
545
- | null;
546
- from?: string | null;
547
- fromName?: string | null;
548
- htmltextStructureHash?: string | null;
549
- messageId?: string | null;
550
- postfixIdOutbound?: string | null;
551
- replyto?: string | null;
552
- sentDate?: string | null;
553
- subject?: string | null;
554
- threatCategories?: string[] | null;
555
- to?: string[] | null;
556
- toName?: string[] | null;
557
- validation?: {
558
- comment?: string | null;
559
- dkim?: "pass" | "neutral" | "fail" | "error" | "none" | null;
560
- dmarc?: "pass" | "neutral" | "fail" | "error" | "none" | null;
561
- spf?: "pass" | "neutral" | "fail" | "error" | "none" | null;
562
- } | null;
563
- }[];
576
+ }
564
577
 
565
578
  export const ListInvestigatesResponse =
566
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
567
- Schema.Struct({
568
- id: Schema.String,
569
- actionLog: Schema.Unknown,
570
- clientRecipients: Schema.Array(Schema.String),
571
- detectionReasons: Schema.Array(Schema.String),
572
- isPhishSubmission: Schema.Boolean,
573
- isQuarantined: Schema.Boolean,
574
- postfixId: Schema.String,
575
- properties: Schema.Struct({
576
- allowlistedPattern: Schema.optional(
577
- Schema.Union([Schema.String, Schema.Null]),
579
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
580
+ result: Schema.Array(
581
+ Schema.Struct({
582
+ id: Schema.String,
583
+ actionLog: Schema.Unknown,
584
+ clientRecipients: Schema.Array(Schema.String),
585
+ detectionReasons: Schema.Array(Schema.String),
586
+ isPhishSubmission: Schema.Boolean,
587
+ isQuarantined: Schema.Boolean,
588
+ postfixId: Schema.String,
589
+ properties: Schema.Struct({
590
+ allowlistedPattern: Schema.optional(
591
+ Schema.Union([Schema.String, Schema.Null]),
592
+ ),
593
+ allowlistedPatternType: Schema.optional(
594
+ Schema.Union([
595
+ Schema.Literals([
596
+ "quarantine_release",
597
+ "acceptable_sender",
598
+ "allowed_sender",
599
+ "allowed_recipient",
600
+ "domain_similarity",
601
+ "domain_recency",
602
+ "managed_acceptable_sender",
603
+ "outbound_ndr",
604
+ ]),
605
+ Schema.Null,
606
+ ]),
607
+ ),
608
+ blocklistedMessage: Schema.optional(
609
+ Schema.Union([Schema.Boolean, Schema.Null]),
610
+ ),
611
+ blocklistedPattern: Schema.optional(
612
+ Schema.Union([Schema.String, Schema.Null]),
613
+ ),
614
+ whitelistedPatternType: Schema.optional(
615
+ Schema.Union([
616
+ Schema.Literals([
617
+ "quarantine_release",
618
+ "acceptable_sender",
619
+ "allowed_sender",
620
+ "allowed_recipient",
621
+ "domain_similarity",
622
+ "domain_recency",
623
+ "managed_acceptable_sender",
624
+ "outbound_ndr",
625
+ ]),
626
+ Schema.Null,
627
+ ]),
628
+ ),
629
+ }).pipe(
630
+ Schema.encodeKeys({
631
+ allowlistedPattern: "allowlisted_pattern",
632
+ allowlistedPatternType: "allowlisted_pattern_type",
633
+ blocklistedMessage: "blocklisted_message",
634
+ blocklistedPattern: "blocklisted_pattern",
635
+ whitelistedPatternType: "whitelisted_pattern_type",
636
+ }),
578
637
  ),
579
- allowlistedPatternType: Schema.optional(
638
+ ts: Schema.String,
639
+ alertId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
640
+ deliveryMode: Schema.optional(
580
641
  Schema.Union([
581
- Schema.Literals([
582
- "quarantine_release",
583
- "acceptable_sender",
584
- "allowed_sender",
585
- "allowed_recipient",
586
- "domain_similarity",
587
- "domain_recency",
588
- "managed_acceptable_sender",
589
- "outbound_ndr",
590
- ]),
642
+ Schema.Literal("DIRECT"),
643
+ Schema.Literal("BCC"),
644
+ Schema.Literal("JOURNAL"),
645
+ Schema.Literal("REVIEW_SUBMISSION"),
646
+ Schema.Literal("DMARC_UNVERIFIED"),
647
+ Schema.Literal("DMARC_FAILURE_REPORT"),
648
+ Schema.Literal("DMARC_AGGREGATE_REPORT"),
649
+ Schema.Literal("THREAT_INTEL_SUBMISSION"),
650
+ Schema.Literal("SIMULATION_SUBMISSION"),
651
+ Schema.Literal("API"),
652
+ Schema.Literal("RETRO_SCAN"),
591
653
  Schema.Null,
592
654
  ]),
593
655
  ),
594
- blocklistedMessage: Schema.optional(
595
- Schema.Union([Schema.Boolean, Schema.Null]),
596
- ),
597
- blocklistedPattern: Schema.optional(
656
+ edfHash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
657
+ envelopeFrom: Schema.optional(
598
658
  Schema.Union([Schema.String, Schema.Null]),
599
659
  ),
600
- whitelistedPatternType: Schema.optional(
660
+ envelopeTo: Schema.optional(
661
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
662
+ ),
663
+ finalDisposition: Schema.optional(
601
664
  Schema.Union([
602
- Schema.Literals([
603
- "quarantine_release",
604
- "acceptable_sender",
605
- "allowed_sender",
606
- "allowed_recipient",
607
- "domain_similarity",
608
- "domain_recency",
609
- "managed_acceptable_sender",
610
- "outbound_ndr",
611
- ]),
665
+ Schema.Literal("MALICIOUS"),
666
+ Schema.Literal("MALICIOUS-BEC"),
667
+ Schema.Literal("SUSPICIOUS"),
668
+ Schema.Literal("SPOOF"),
669
+ Schema.Literal("SPAM"),
670
+ Schema.Literal("BULK"),
671
+ Schema.Literal("ENCRYPTED"),
672
+ Schema.Literal("EXTERNAL"),
673
+ Schema.Literal("UNKNOWN"),
674
+ Schema.Literal("NONE"),
612
675
  Schema.Null,
613
676
  ]),
614
677
  ),
615
- }).pipe(
616
- Schema.encodeKeys({
617
- allowlistedPattern: "allowlisted_pattern",
618
- allowlistedPatternType: "allowlisted_pattern_type",
619
- blocklistedMessage: "blocklisted_message",
620
- blocklistedPattern: "blocklisted_pattern",
621
- whitelistedPatternType: "whitelisted_pattern_type",
622
- }),
623
- ),
624
- ts: Schema.String,
625
- alertId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
626
- deliveryMode: Schema.optional(
627
- Schema.Union([
628
- Schema.Literal("DIRECT"),
629
- Schema.Literal("BCC"),
630
- Schema.Literal("JOURNAL"),
631
- Schema.Literal("REVIEW_SUBMISSION"),
632
- Schema.Literal("DMARC_UNVERIFIED"),
633
- Schema.Literal("DMARC_FAILURE_REPORT"),
634
- Schema.Literal("DMARC_AGGREGATE_REPORT"),
635
- Schema.Literal("THREAT_INTEL_SUBMISSION"),
636
- Schema.Literal("SIMULATION_SUBMISSION"),
637
- Schema.Literal("API"),
638
- Schema.Literal("RETRO_SCAN"),
639
- Schema.Null,
640
- ]),
641
- ),
642
- edfHash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
643
- envelopeFrom: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
644
- envelopeTo: Schema.optional(
645
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
646
- ),
647
- finalDisposition: Schema.optional(
648
- Schema.Union([
649
- Schema.Literal("MALICIOUS"),
650
- Schema.Literal("MALICIOUS-BEC"),
651
- Schema.Literal("SUSPICIOUS"),
652
- Schema.Literal("SPOOF"),
653
- Schema.Literal("SPAM"),
654
- Schema.Literal("BULK"),
655
- Schema.Literal("ENCRYPTED"),
656
- Schema.Literal("EXTERNAL"),
657
- Schema.Literal("UNKNOWN"),
658
- Schema.Literal("NONE"),
659
- Schema.Null,
660
- ]),
661
- ),
662
- findings: Schema.optional(
663
- Schema.Union([
664
- Schema.Array(
678
+ findings: Schema.optional(
679
+ Schema.Union([
680
+ Schema.Array(
681
+ Schema.Struct({
682
+ attachment: Schema.optional(
683
+ Schema.Union([Schema.String, Schema.Null]),
684
+ ),
685
+ detail: Schema.optional(
686
+ Schema.Union([Schema.String, Schema.Null]),
687
+ ),
688
+ detection: Schema.optional(
689
+ Schema.Union([
690
+ Schema.Literal("MALICIOUS"),
691
+ Schema.Literal("MALICIOUS-BEC"),
692
+ Schema.Literal("SUSPICIOUS"),
693
+ Schema.Literal("SPOOF"),
694
+ Schema.Literal("SPAM"),
695
+ Schema.Literal("BULK"),
696
+ Schema.Literal("ENCRYPTED"),
697
+ Schema.Literal("EXTERNAL"),
698
+ Schema.Literal("UNKNOWN"),
699
+ Schema.Literal("NONE"),
700
+ Schema.Null,
701
+ ]),
702
+ ),
703
+ field: Schema.optional(
704
+ Schema.Union([Schema.String, Schema.Null]),
705
+ ),
706
+ name: Schema.optional(
707
+ Schema.Union([Schema.String, Schema.Null]),
708
+ ),
709
+ portion: Schema.optional(
710
+ Schema.Union([Schema.String, Schema.Null]),
711
+ ),
712
+ reason: Schema.optional(
713
+ Schema.Union([Schema.String, Schema.Null]),
714
+ ),
715
+ score: Schema.optional(
716
+ Schema.Union([Schema.Number, Schema.Null]),
717
+ ),
718
+ value: Schema.optional(
719
+ Schema.Union([Schema.String, Schema.Null]),
720
+ ),
721
+ }),
722
+ ),
723
+ Schema.Null,
724
+ ]),
725
+ ),
726
+ from: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
727
+ fromName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
728
+ htmltextStructureHash: Schema.optional(
729
+ Schema.Union([Schema.String, Schema.Null]),
730
+ ),
731
+ messageId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
732
+ postfixIdOutbound: Schema.optional(
733
+ Schema.Union([Schema.String, Schema.Null]),
734
+ ),
735
+ replyto: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
736
+ sentDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
737
+ subject: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
738
+ threatCategories: Schema.optional(
739
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
740
+ ),
741
+ to: Schema.optional(
742
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
743
+ ),
744
+ toName: Schema.optional(
745
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
746
+ ),
747
+ validation: Schema.optional(
748
+ Schema.Union([
665
749
  Schema.Struct({
666
- attachment: Schema.optional(
667
- Schema.Union([Schema.String, Schema.Null]),
668
- ),
669
- detail: Schema.optional(
750
+ comment: Schema.optional(
670
751
  Schema.Union([Schema.String, Schema.Null]),
671
752
  ),
672
- detection: Schema.optional(
753
+ dkim: Schema.optional(
673
754
  Schema.Union([
674
- Schema.Literal("MALICIOUS"),
675
- Schema.Literal("MALICIOUS-BEC"),
676
- Schema.Literal("SUSPICIOUS"),
677
- Schema.Literal("SPOOF"),
678
- Schema.Literal("SPAM"),
679
- Schema.Literal("BULK"),
680
- Schema.Literal("ENCRYPTED"),
681
- Schema.Literal("EXTERNAL"),
682
- Schema.Literal("UNKNOWN"),
683
- Schema.Literal("NONE"),
755
+ Schema.Literal("pass"),
756
+ Schema.Literal("neutral"),
757
+ Schema.Literal("fail"),
758
+ Schema.Literal("error"),
759
+ Schema.Literal("none"),
684
760
  Schema.Null,
685
761
  ]),
686
762
  ),
687
- field: Schema.optional(
688
- Schema.Union([Schema.String, Schema.Null]),
689
- ),
690
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
691
- portion: Schema.optional(
692
- Schema.Union([Schema.String, Schema.Null]),
693
- ),
694
- reason: Schema.optional(
695
- Schema.Union([Schema.String, Schema.Null]),
696
- ),
697
- score: Schema.optional(
698
- Schema.Union([Schema.Number, Schema.Null]),
763
+ dmarc: Schema.optional(
764
+ Schema.Union([
765
+ Schema.Literal("pass"),
766
+ Schema.Literal("neutral"),
767
+ Schema.Literal("fail"),
768
+ Schema.Literal("error"),
769
+ Schema.Literal("none"),
770
+ Schema.Null,
771
+ ]),
699
772
  ),
700
- value: Schema.optional(
701
- Schema.Union([Schema.String, Schema.Null]),
773
+ spf: Schema.optional(
774
+ Schema.Union([
775
+ Schema.Literal("pass"),
776
+ Schema.Literal("neutral"),
777
+ Schema.Literal("fail"),
778
+ Schema.Literal("error"),
779
+ Schema.Literal("none"),
780
+ Schema.Null,
781
+ ]),
702
782
  ),
703
783
  }),
704
- ),
705
- Schema.Null,
706
- ]),
707
- ),
708
- from: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
709
- fromName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
710
- htmltextStructureHash: Schema.optional(
711
- Schema.Union([Schema.String, Schema.Null]),
712
- ),
713
- messageId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
714
- postfixIdOutbound: Schema.optional(
715
- Schema.Union([Schema.String, Schema.Null]),
716
- ),
717
- replyto: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
718
- sentDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
719
- subject: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
720
- threatCategories: Schema.optional(
721
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
722
- ),
723
- to: Schema.optional(
724
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
725
- ),
726
- toName: Schema.optional(
727
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
728
- ),
729
- validation: Schema.optional(
730
- Schema.Union([
731
- Schema.Struct({
732
- comment: Schema.optional(
733
- Schema.Union([Schema.String, Schema.Null]),
734
- ),
735
- dkim: Schema.optional(
736
- Schema.Union([
737
- Schema.Literal("pass"),
738
- Schema.Literal("neutral"),
739
- Schema.Literal("fail"),
740
- Schema.Literal("error"),
741
- Schema.Literal("none"),
742
- Schema.Null,
743
- ]),
744
- ),
745
- dmarc: Schema.optional(
746
- Schema.Union([
747
- Schema.Literal("pass"),
748
- Schema.Literal("neutral"),
749
- Schema.Literal("fail"),
750
- Schema.Literal("error"),
751
- Schema.Literal("none"),
752
- Schema.Null,
753
- ]),
754
- ),
755
- spf: Schema.optional(
756
- Schema.Union([
757
- Schema.Literal("pass"),
758
- Schema.Literal("neutral"),
759
- Schema.Literal("fail"),
760
- Schema.Literal("error"),
761
- Schema.Literal("none"),
762
- Schema.Null,
763
- ]),
764
- ),
765
- }),
766
- Schema.Null,
767
- ]),
784
+ Schema.Null,
785
+ ]),
786
+ ),
787
+ }).pipe(
788
+ Schema.encodeKeys({
789
+ id: "id",
790
+ actionLog: "action_log",
791
+ clientRecipients: "client_recipients",
792
+ detectionReasons: "detection_reasons",
793
+ isPhishSubmission: "is_phish_submission",
794
+ isQuarantined: "is_quarantined",
795
+ postfixId: "postfix_id",
796
+ properties: "properties",
797
+ ts: "ts",
798
+ alertId: "alert_id",
799
+ deliveryMode: "delivery_mode",
800
+ edfHash: "edf_hash",
801
+ envelopeFrom: "envelope_from",
802
+ envelopeTo: "envelope_to",
803
+ finalDisposition: "final_disposition",
804
+ findings: "findings",
805
+ from: "from",
806
+ fromName: "from_name",
807
+ htmltextStructureHash: "htmltext_structure_hash",
808
+ messageId: "message_id",
809
+ postfixIdOutbound: "postfix_id_outbound",
810
+ replyto: "replyto",
811
+ sentDate: "sent_date",
812
+ subject: "subject",
813
+ threatCategories: "threat_categories",
814
+ to: "to",
815
+ toName: "to_name",
816
+ validation: "validation",
817
+ }),
768
818
  ),
819
+ ),
820
+ resultInfo: Schema.Struct({
821
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
822
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
823
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
824
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
769
825
  }).pipe(
770
826
  Schema.encodeKeys({
771
- id: "id",
772
- actionLog: "action_log",
773
- clientRecipients: "client_recipients",
774
- detectionReasons: "detection_reasons",
775
- isPhishSubmission: "is_phish_submission",
776
- isQuarantined: "is_quarantined",
777
- postfixId: "postfix_id",
778
- properties: "properties",
779
- ts: "ts",
780
- alertId: "alert_id",
781
- deliveryMode: "delivery_mode",
782
- edfHash: "edf_hash",
783
- envelopeFrom: "envelope_from",
784
- envelopeTo: "envelope_to",
785
- finalDisposition: "final_disposition",
786
- findings: "findings",
787
- from: "from",
788
- fromName: "from_name",
789
- htmltextStructureHash: "htmltext_structure_hash",
790
- messageId: "message_id",
791
- postfixIdOutbound: "postfix_id_outbound",
792
- replyto: "replyto",
793
- sentDate: "sent_date",
794
- subject: "subject",
795
- threatCategories: "threat_categories",
796
- to: "to",
797
- toName: "to_name",
798
- validation: "validation",
827
+ count: "count",
828
+ page: "page",
829
+ perPage: "per_page",
830
+ totalCount: "total_count",
799
831
  }),
800
832
  ),
833
+ }).pipe(
834
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
801
835
  ) as unknown as Schema.Schema<ListInvestigatesResponse>;
802
836
 
803
837
  export type ListInvestigatesError = DefaultErrors;
804
838
 
805
- export const listInvestigates: API.OperationMethod<
839
+ export const listInvestigates: API.PaginatedOperationMethod<
806
840
  ListInvestigatesRequest,
807
841
  ListInvestigatesResponse,
808
842
  ListInvestigatesError,
809
843
  Credentials | HttpClient.HttpClient
810
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
844
+ > & {
845
+ pages: (
846
+ input: ListInvestigatesRequest,
847
+ ) => stream.Stream<
848
+ ListInvestigatesResponse,
849
+ ListInvestigatesError,
850
+ Credentials | HttpClient.HttpClient
851
+ >;
852
+ items: (input: ListInvestigatesRequest) => stream.Stream<
853
+ {
854
+ id: string;
855
+ actionLog: unknown;
856
+ clientRecipients: string[];
857
+ detectionReasons: string[];
858
+ isPhishSubmission: boolean;
859
+ isQuarantined: boolean;
860
+ postfixId: string;
861
+ properties: {
862
+ allowlistedPattern?: string | null;
863
+ allowlistedPatternType?:
864
+ | "quarantine_release"
865
+ | "acceptable_sender"
866
+ | "allowed_sender"
867
+ | "allowed_recipient"
868
+ | "domain_similarity"
869
+ | "domain_recency"
870
+ | "managed_acceptable_sender"
871
+ | "outbound_ndr"
872
+ | null;
873
+ blocklistedMessage?: boolean | null;
874
+ blocklistedPattern?: string | null;
875
+ whitelistedPatternType?:
876
+ | "quarantine_release"
877
+ | "acceptable_sender"
878
+ | "allowed_sender"
879
+ | "allowed_recipient"
880
+ | "domain_similarity"
881
+ | "domain_recency"
882
+ | "managed_acceptable_sender"
883
+ | "outbound_ndr"
884
+ | null;
885
+ };
886
+ ts: string;
887
+ alertId?: string | null;
888
+ deliveryMode?:
889
+ | "DIRECT"
890
+ | "BCC"
891
+ | "JOURNAL"
892
+ | "REVIEW_SUBMISSION"
893
+ | "DMARC_UNVERIFIED"
894
+ | "DMARC_FAILURE_REPORT"
895
+ | "DMARC_AGGREGATE_REPORT"
896
+ | "THREAT_INTEL_SUBMISSION"
897
+ | "SIMULATION_SUBMISSION"
898
+ | "API"
899
+ | "RETRO_SCAN"
900
+ | null;
901
+ edfHash?: string | null;
902
+ envelopeFrom?: string | null;
903
+ envelopeTo?: string[] | null;
904
+ finalDisposition?:
905
+ | "MALICIOUS"
906
+ | "MALICIOUS-BEC"
907
+ | "SUSPICIOUS"
908
+ | "SPOOF"
909
+ | "SPAM"
910
+ | "BULK"
911
+ | "ENCRYPTED"
912
+ | "EXTERNAL"
913
+ | "UNKNOWN"
914
+ | "NONE"
915
+ | null;
916
+ findings?:
917
+ | {
918
+ attachment?: string | null;
919
+ detail?: string | null;
920
+ detection?:
921
+ | "MALICIOUS"
922
+ | "MALICIOUS-BEC"
923
+ | "SUSPICIOUS"
924
+ | "SPOOF"
925
+ | "SPAM"
926
+ | "BULK"
927
+ | "ENCRYPTED"
928
+ | "EXTERNAL"
929
+ | "UNKNOWN"
930
+ | "NONE"
931
+ | null;
932
+ field?: string | null;
933
+ name?: string | null;
934
+ portion?: string | null;
935
+ reason?: string | null;
936
+ score?: number | null;
937
+ value?: string | null;
938
+ }[]
939
+ | null;
940
+ from?: string | null;
941
+ fromName?: string | null;
942
+ htmltextStructureHash?: string | null;
943
+ messageId?: string | null;
944
+ postfixIdOutbound?: string | null;
945
+ replyto?: string | null;
946
+ sentDate?: string | null;
947
+ subject?: string | null;
948
+ threatCategories?: string[] | null;
949
+ to?: string[] | null;
950
+ toName?: string[] | null;
951
+ validation?: {
952
+ comment?: string | null;
953
+ dkim?: "pass" | "neutral" | "fail" | "error" | "none" | null;
954
+ dmarc?: "pass" | "neutral" | "fail" | "error" | "none" | null;
955
+ spf?: "pass" | "neutral" | "fail" | "error" | "none" | null;
956
+ } | null;
957
+ },
958
+ ListInvestigatesError,
959
+ Credentials | HttpClient.HttpClient
960
+ >;
961
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
811
962
  input: ListInvestigatesRequest,
812
963
  output: ListInvestigatesResponse,
813
964
  errors: [],
965
+ pagination: {
966
+ mode: "page",
967
+ inputToken: "page",
968
+ outputToken: "resultInfo.page",
969
+ items: "result",
970
+ pageSize: "perPage",
971
+ } as const,
814
972
  }));
815
973
 
816
974
  // =============================================================================
@@ -1008,18 +1166,22 @@ export const GetInvestigateDetectionResponse =
1008
1166
  Schema.Null,
1009
1167
  ]),
1010
1168
  ),
1011
- }).pipe(
1012
- Schema.encodeKeys({
1013
- action: "action",
1014
- attachments: "attachments",
1015
- headers: "headers",
1016
- links: "links",
1017
- senderInfo: "sender_info",
1018
- threatCategories: "threat_categories",
1019
- validation: "validation",
1020
- finalDisposition: "final_disposition",
1021
- }),
1022
- ) as unknown as Schema.Schema<GetInvestigateDetectionResponse>;
1169
+ })
1170
+ .pipe(
1171
+ Schema.encodeKeys({
1172
+ action: "action",
1173
+ attachments: "attachments",
1174
+ headers: "headers",
1175
+ links: "links",
1176
+ senderInfo: "sender_info",
1177
+ threatCategories: "threat_categories",
1178
+ validation: "validation",
1179
+ finalDisposition: "final_disposition",
1180
+ }),
1181
+ )
1182
+ .pipe(
1183
+ T.ResponsePath("result"),
1184
+ ) as unknown as Schema.Schema<GetInvestigateDetectionResponse>;
1023
1185
 
1024
1186
  export type GetInvestigateDetectionError = DefaultErrors;
1025
1187
 
@@ -1069,53 +1231,85 @@ export const CreateInvestigateMoveRequest =
1069
1231
  }),
1070
1232
  ) as unknown as Schema.Schema<CreateInvestigateMoveRequest>;
1071
1233
 
1072
- export type CreateInvestigateMoveResponse = {
1073
- completedTimestamp: string;
1074
- itemCount: number;
1075
- success: boolean;
1076
- destination?: string | null;
1077
- messageId?: string | null;
1078
- operation?: string | null;
1079
- recipient?: string | null;
1080
- status?: string | null;
1081
- }[];
1234
+ export interface CreateInvestigateMoveResponse {
1235
+ result: {
1236
+ completedTimestamp: string;
1237
+ itemCount: number;
1238
+ success: boolean;
1239
+ destination?: string | null;
1240
+ messageId?: string | null;
1241
+ operation?: string | null;
1242
+ recipient?: string | null;
1243
+ status?: string | null;
1244
+ }[];
1245
+ }
1082
1246
 
1083
1247
  export const CreateInvestigateMoveResponse =
1084
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
1085
- Schema.Struct({
1086
- completedTimestamp: Schema.String,
1087
- itemCount: Schema.Number,
1088
- success: Schema.Boolean,
1089
- destination: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1090
- messageId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1091
- operation: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1092
- recipient: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1093
- status: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1094
- }).pipe(
1095
- Schema.encodeKeys({
1096
- completedTimestamp: "completed_timestamp",
1097
- itemCount: "item_count",
1098
- success: "success",
1099
- destination: "destination",
1100
- messageId: "message_id",
1101
- operation: "operation",
1102
- recipient: "recipient",
1103
- status: "status",
1104
- }),
1248
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1249
+ result: Schema.Array(
1250
+ Schema.Struct({
1251
+ completedTimestamp: Schema.String,
1252
+ itemCount: Schema.Number,
1253
+ success: Schema.Boolean,
1254
+ destination: Schema.optional(
1255
+ Schema.Union([Schema.String, Schema.Null]),
1256
+ ),
1257
+ messageId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1258
+ operation: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1259
+ recipient: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1260
+ status: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1261
+ }).pipe(
1262
+ Schema.encodeKeys({
1263
+ completedTimestamp: "completed_timestamp",
1264
+ itemCount: "item_count",
1265
+ success: "success",
1266
+ destination: "destination",
1267
+ messageId: "message_id",
1268
+ operation: "operation",
1269
+ recipient: "recipient",
1270
+ status: "status",
1271
+ }),
1272
+ ),
1105
1273
  ),
1106
- ) as unknown as Schema.Schema<CreateInvestigateMoveResponse>;
1274
+ }) as unknown as Schema.Schema<CreateInvestigateMoveResponse>;
1107
1275
 
1108
1276
  export type CreateInvestigateMoveError = DefaultErrors;
1109
1277
 
1110
- export const createInvestigateMove: API.OperationMethod<
1278
+ export const createInvestigateMove: API.PaginatedOperationMethod<
1111
1279
  CreateInvestigateMoveRequest,
1112
1280
  CreateInvestigateMoveResponse,
1113
1281
  CreateInvestigateMoveError,
1114
1282
  Credentials | HttpClient.HttpClient
1115
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1283
+ > & {
1284
+ pages: (
1285
+ input: CreateInvestigateMoveRequest,
1286
+ ) => stream.Stream<
1287
+ CreateInvestigateMoveResponse,
1288
+ CreateInvestigateMoveError,
1289
+ Credentials | HttpClient.HttpClient
1290
+ >;
1291
+ items: (input: CreateInvestigateMoveRequest) => stream.Stream<
1292
+ {
1293
+ completedTimestamp: string;
1294
+ itemCount: number;
1295
+ success: boolean;
1296
+ destination?: string | null;
1297
+ messageId?: string | null;
1298
+ operation?: string | null;
1299
+ recipient?: string | null;
1300
+ status?: string | null;
1301
+ },
1302
+ CreateInvestigateMoveError,
1303
+ Credentials | HttpClient.HttpClient
1304
+ >;
1305
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1116
1306
  input: CreateInvestigateMoveRequest,
1117
1307
  output: CreateInvestigateMoveResponse,
1118
1308
  errors: [],
1309
+ pagination: {
1310
+ mode: "single",
1311
+ items: "result",
1312
+ } as const,
1119
1313
  }));
1120
1314
 
1121
1315
  export interface BulkInvestigateMoveRequest {
@@ -1154,53 +1348,85 @@ export const BulkInvestigateMoveRequest =
1154
1348
  }),
1155
1349
  ) as unknown as Schema.Schema<BulkInvestigateMoveRequest>;
1156
1350
 
1157
- export type BulkInvestigateMoveResponse = {
1158
- completedTimestamp: string;
1159
- itemCount: number;
1160
- success: boolean;
1161
- destination?: string | null;
1162
- messageId?: string | null;
1163
- operation?: string | null;
1164
- recipient?: string | null;
1165
- status?: string | null;
1166
- }[];
1351
+ export interface BulkInvestigateMoveResponse {
1352
+ result: {
1353
+ completedTimestamp: string;
1354
+ itemCount: number;
1355
+ success: boolean;
1356
+ destination?: string | null;
1357
+ messageId?: string | null;
1358
+ operation?: string | null;
1359
+ recipient?: string | null;
1360
+ status?: string | null;
1361
+ }[];
1362
+ }
1167
1363
 
1168
1364
  export const BulkInvestigateMoveResponse =
1169
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
1170
- Schema.Struct({
1171
- completedTimestamp: Schema.String,
1172
- itemCount: Schema.Number,
1173
- success: Schema.Boolean,
1174
- destination: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1175
- messageId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1176
- operation: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1177
- recipient: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1178
- status: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1179
- }).pipe(
1180
- Schema.encodeKeys({
1181
- completedTimestamp: "completed_timestamp",
1182
- itemCount: "item_count",
1183
- success: "success",
1184
- destination: "destination",
1185
- messageId: "message_id",
1186
- operation: "operation",
1187
- recipient: "recipient",
1188
- status: "status",
1189
- }),
1365
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1366
+ result: Schema.Array(
1367
+ Schema.Struct({
1368
+ completedTimestamp: Schema.String,
1369
+ itemCount: Schema.Number,
1370
+ success: Schema.Boolean,
1371
+ destination: Schema.optional(
1372
+ Schema.Union([Schema.String, Schema.Null]),
1373
+ ),
1374
+ messageId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1375
+ operation: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1376
+ recipient: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1377
+ status: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1378
+ }).pipe(
1379
+ Schema.encodeKeys({
1380
+ completedTimestamp: "completed_timestamp",
1381
+ itemCount: "item_count",
1382
+ success: "success",
1383
+ destination: "destination",
1384
+ messageId: "message_id",
1385
+ operation: "operation",
1386
+ recipient: "recipient",
1387
+ status: "status",
1388
+ }),
1389
+ ),
1190
1390
  ),
1191
- ) as unknown as Schema.Schema<BulkInvestigateMoveResponse>;
1391
+ }) as unknown as Schema.Schema<BulkInvestigateMoveResponse>;
1192
1392
 
1193
1393
  export type BulkInvestigateMoveError = DefaultErrors;
1194
1394
 
1195
- export const bulkInvestigateMove: API.OperationMethod<
1395
+ export const bulkInvestigateMove: API.PaginatedOperationMethod<
1196
1396
  BulkInvestigateMoveRequest,
1197
1397
  BulkInvestigateMoveResponse,
1198
1398
  BulkInvestigateMoveError,
1199
1399
  Credentials | HttpClient.HttpClient
1200
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1400
+ > & {
1401
+ pages: (
1402
+ input: BulkInvestigateMoveRequest,
1403
+ ) => stream.Stream<
1404
+ BulkInvestigateMoveResponse,
1405
+ BulkInvestigateMoveError,
1406
+ Credentials | HttpClient.HttpClient
1407
+ >;
1408
+ items: (input: BulkInvestigateMoveRequest) => stream.Stream<
1409
+ {
1410
+ completedTimestamp: string;
1411
+ itemCount: number;
1412
+ success: boolean;
1413
+ destination?: string | null;
1414
+ messageId?: string | null;
1415
+ operation?: string | null;
1416
+ recipient?: string | null;
1417
+ status?: string | null;
1418
+ },
1419
+ BulkInvestigateMoveError,
1420
+ Credentials | HttpClient.HttpClient
1421
+ >;
1422
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1201
1423
  input: BulkInvestigateMoveRequest,
1202
1424
  output: BulkInvestigateMoveResponse,
1203
1425
  errors: [],
1426
+ pagination: {
1427
+ mode: "single",
1428
+ items: "result",
1429
+ } as const,
1204
1430
  }));
1205
1431
 
1206
1432
  // =============================================================================
@@ -1232,7 +1458,9 @@ export interface GetInvestigatePreviewResponse {
1232
1458
  export const GetInvestigatePreviewResponse =
1233
1459
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1234
1460
  screenshot: Schema.String,
1235
- }) as unknown as Schema.Schema<GetInvestigatePreviewResponse>;
1461
+ }).pipe(
1462
+ T.ResponsePath("result"),
1463
+ ) as unknown as Schema.Schema<GetInvestigatePreviewResponse>;
1236
1464
 
1237
1465
  export type GetInvestigatePreviewError = DefaultErrors;
1238
1466
 
@@ -1274,7 +1502,9 @@ export interface CreateInvestigatePreviewResponse {
1274
1502
  export const CreateInvestigatePreviewResponse =
1275
1503
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1276
1504
  screenshot: Schema.String,
1277
- }) as unknown as Schema.Schema<CreateInvestigatePreviewResponse>;
1505
+ }).pipe(
1506
+ T.ResponsePath("result"),
1507
+ ) as unknown as Schema.Schema<CreateInvestigatePreviewResponse>;
1278
1508
 
1279
1509
  export type CreateInvestigatePreviewError = DefaultErrors;
1280
1510
 
@@ -1318,7 +1548,9 @@ export interface GetInvestigateRawResponse {
1318
1548
  export const GetInvestigateRawResponse =
1319
1549
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1320
1550
  raw: Schema.String,
1321
- }) as unknown as Schema.Schema<GetInvestigateRawResponse>;
1551
+ }).pipe(
1552
+ T.ResponsePath("result"),
1553
+ ) as unknown as Schema.Schema<GetInvestigateRawResponse>;
1322
1554
 
1323
1555
  export type GetInvestigateRawError = DefaultErrors;
1324
1556
 
@@ -1384,7 +1616,9 @@ export const CreateInvestigateReclassifyRequest =
1384
1616
  export type CreateInvestigateReclassifyResponse = unknown;
1385
1617
 
1386
1618
  export const CreateInvestigateReclassifyResponse =
1387
- /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<CreateInvestigateReclassifyResponse>;
1619
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
1620
+ T.ResponsePath("result"),
1621
+ ) as unknown as Schema.Schema<CreateInvestigateReclassifyResponse>;
1388
1622
 
1389
1623
  export type CreateInvestigateReclassifyError = DefaultErrors;
1390
1624
 
@@ -1421,47 +1655,73 @@ export const BulkInvestigateReleaseRequest =
1421
1655
  }),
1422
1656
  ) as unknown as Schema.Schema<BulkInvestigateReleaseRequest>;
1423
1657
 
1424
- export type BulkInvestigateReleaseResponse = {
1425
- postfixId: string;
1426
- delivered?: string[] | null;
1427
- failed?: string[] | null;
1428
- undelivered?: string[] | null;
1429
- }[];
1658
+ export interface BulkInvestigateReleaseResponse {
1659
+ result: {
1660
+ postfixId: string;
1661
+ delivered?: string[] | null;
1662
+ failed?: string[] | null;
1663
+ undelivered?: string[] | null;
1664
+ }[];
1665
+ }
1430
1666
 
1431
1667
  export const BulkInvestigateReleaseResponse =
1432
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
1433
- Schema.Struct({
1434
- postfixId: Schema.String,
1435
- delivered: Schema.optional(
1436
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1437
- ),
1438
- failed: Schema.optional(
1439
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1440
- ),
1441
- undelivered: Schema.optional(
1442
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1668
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1669
+ result: Schema.Array(
1670
+ Schema.Struct({
1671
+ postfixId: Schema.String,
1672
+ delivered: Schema.optional(
1673
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1674
+ ),
1675
+ failed: Schema.optional(
1676
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1677
+ ),
1678
+ undelivered: Schema.optional(
1679
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1680
+ ),
1681
+ }).pipe(
1682
+ Schema.encodeKeys({
1683
+ postfixId: "postfix_id",
1684
+ delivered: "delivered",
1685
+ failed: "failed",
1686
+ undelivered: "undelivered",
1687
+ }),
1443
1688
  ),
1444
- }).pipe(
1445
- Schema.encodeKeys({
1446
- postfixId: "postfix_id",
1447
- delivered: "delivered",
1448
- failed: "failed",
1449
- undelivered: "undelivered",
1450
- }),
1451
1689
  ),
1452
- ) as unknown as Schema.Schema<BulkInvestigateReleaseResponse>;
1690
+ }) as unknown as Schema.Schema<BulkInvestigateReleaseResponse>;
1453
1691
 
1454
1692
  export type BulkInvestigateReleaseError = DefaultErrors;
1455
1693
 
1456
- export const bulkInvestigateRelease: API.OperationMethod<
1694
+ export const bulkInvestigateRelease: API.PaginatedOperationMethod<
1457
1695
  BulkInvestigateReleaseRequest,
1458
1696
  BulkInvestigateReleaseResponse,
1459
1697
  BulkInvestigateReleaseError,
1460
1698
  Credentials | HttpClient.HttpClient
1461
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1699
+ > & {
1700
+ pages: (
1701
+ input: BulkInvestigateReleaseRequest,
1702
+ ) => stream.Stream<
1703
+ BulkInvestigateReleaseResponse,
1704
+ BulkInvestigateReleaseError,
1705
+ Credentials | HttpClient.HttpClient
1706
+ >;
1707
+ items: (input: BulkInvestigateReleaseRequest) => stream.Stream<
1708
+ {
1709
+ postfixId: string;
1710
+ delivered?: string[] | null;
1711
+ failed?: string[] | null;
1712
+ undelivered?: string[] | null;
1713
+ },
1714
+ BulkInvestigateReleaseError,
1715
+ Credentials | HttpClient.HttpClient
1716
+ >;
1717
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1462
1718
  input: BulkInvestigateReleaseRequest,
1463
1719
  output: BulkInvestigateReleaseResponse,
1464
1720
  errors: [],
1721
+ pagination: {
1722
+ mode: "single",
1723
+ items: "result",
1724
+ } as const,
1465
1725
  }));
1466
1726
 
1467
1727
  // =============================================================================
@@ -1528,7 +1788,9 @@ export const GetInvestigateTraceResponse =
1528
1788
  ),
1529
1789
  pending: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1530
1790
  }),
1531
- }) as unknown as Schema.Schema<GetInvestigateTraceResponse>;
1791
+ }).pipe(
1792
+ T.ResponsePath("result"),
1793
+ ) as unknown as Schema.Schema<GetInvestigateTraceResponse>;
1532
1794
 
1533
1795
  export type GetInvestigateTraceError = DefaultErrors;
1534
1796
 
@@ -1605,24 +1867,28 @@ export const GetSettingAllowPolicyResponse =
1605
1867
  isRecipient: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1606
1868
  isSender: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1607
1869
  isSpoof: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1608
- }).pipe(
1609
- Schema.encodeKeys({
1610
- id: "id",
1611
- createdAt: "created_at",
1612
- isAcceptableSender: "is_acceptable_sender",
1613
- isExemptRecipient: "is_exempt_recipient",
1614
- isRegex: "is_regex",
1615
- isTrustedSender: "is_trusted_sender",
1616
- lastModified: "last_modified",
1617
- pattern: "pattern",
1618
- patternType: "pattern_type",
1619
- verifySender: "verify_sender",
1620
- comments: "comments",
1621
- isRecipient: "is_recipient",
1622
- isSender: "is_sender",
1623
- isSpoof: "is_spoof",
1624
- }),
1625
- ) as unknown as Schema.Schema<GetSettingAllowPolicyResponse>;
1870
+ })
1871
+ .pipe(
1872
+ Schema.encodeKeys({
1873
+ id: "id",
1874
+ createdAt: "created_at",
1875
+ isAcceptableSender: "is_acceptable_sender",
1876
+ isExemptRecipient: "is_exempt_recipient",
1877
+ isRegex: "is_regex",
1878
+ isTrustedSender: "is_trusted_sender",
1879
+ lastModified: "last_modified",
1880
+ pattern: "pattern",
1881
+ patternType: "pattern_type",
1882
+ verifySender: "verify_sender",
1883
+ comments: "comments",
1884
+ isRecipient: "is_recipient",
1885
+ isSender: "is_sender",
1886
+ isSpoof: "is_spoof",
1887
+ }),
1888
+ )
1889
+ .pipe(
1890
+ T.ResponsePath("result"),
1891
+ ) as unknown as Schema.Schema<GetSettingAllowPolicyResponse>;
1626
1892
 
1627
1893
  export type GetSettingAllowPolicyError = DefaultErrors;
1628
1894
 
@@ -1704,71 +1970,133 @@ export const ListSettingAllowPoliciesRequest =
1704
1970
  }),
1705
1971
  ) as unknown as Schema.Schema<ListSettingAllowPoliciesRequest>;
1706
1972
 
1707
- export type ListSettingAllowPoliciesResponse = {
1708
- id: number;
1709
- createdAt: string;
1710
- isAcceptableSender: boolean;
1711
- isExemptRecipient: boolean;
1712
- isRegex: boolean;
1713
- isTrustedSender: boolean;
1714
- lastModified: string;
1715
- pattern: string;
1716
- patternType: "EMAIL" | "DOMAIN" | "IP" | "UNKNOWN";
1717
- verifySender: boolean;
1718
- comments?: string | null;
1719
- isRecipient?: boolean | null;
1720
- isSender?: boolean | null;
1721
- isSpoof?: boolean | null;
1722
- }[];
1973
+ export interface ListSettingAllowPoliciesResponse {
1974
+ result: {
1975
+ id: number;
1976
+ createdAt: string;
1977
+ isAcceptableSender: boolean;
1978
+ isExemptRecipient: boolean;
1979
+ isRegex: boolean;
1980
+ isTrustedSender: boolean;
1981
+ lastModified: string;
1982
+ pattern: string;
1983
+ patternType: "EMAIL" | "DOMAIN" | "IP" | "UNKNOWN";
1984
+ verifySender: boolean;
1985
+ comments?: string | null;
1986
+ isRecipient?: boolean | null;
1987
+ isSender?: boolean | null;
1988
+ isSpoof?: boolean | null;
1989
+ }[];
1990
+ resultInfo: {
1991
+ count?: number | null;
1992
+ page?: number | null;
1993
+ perPage?: number | null;
1994
+ totalCount?: number | null;
1995
+ };
1996
+ }
1723
1997
 
1724
1998
  export const ListSettingAllowPoliciesResponse =
1725
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
1726
- Schema.Struct({
1727
- id: Schema.Number,
1728
- createdAt: Schema.String,
1729
- isAcceptableSender: Schema.Boolean,
1730
- isExemptRecipient: Schema.Boolean,
1731
- isRegex: Schema.Boolean,
1732
- isTrustedSender: Schema.Boolean,
1733
- lastModified: Schema.String,
1734
- pattern: Schema.String,
1735
- patternType: Schema.Literals(["EMAIL", "DOMAIN", "IP", "UNKNOWN"]),
1736
- verifySender: Schema.Boolean,
1737
- comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1738
- isRecipient: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1739
- isSender: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1740
- isSpoof: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1999
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2000
+ result: Schema.Array(
2001
+ Schema.Struct({
2002
+ id: Schema.Number,
2003
+ createdAt: Schema.String,
2004
+ isAcceptableSender: Schema.Boolean,
2005
+ isExemptRecipient: Schema.Boolean,
2006
+ isRegex: Schema.Boolean,
2007
+ isTrustedSender: Schema.Boolean,
2008
+ lastModified: Schema.String,
2009
+ pattern: Schema.String,
2010
+ patternType: Schema.Literals(["EMAIL", "DOMAIN", "IP", "UNKNOWN"]),
2011
+ verifySender: Schema.Boolean,
2012
+ comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2013
+ isRecipient: Schema.optional(
2014
+ Schema.Union([Schema.Boolean, Schema.Null]),
2015
+ ),
2016
+ isSender: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2017
+ isSpoof: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2018
+ }).pipe(
2019
+ Schema.encodeKeys({
2020
+ id: "id",
2021
+ createdAt: "created_at",
2022
+ isAcceptableSender: "is_acceptable_sender",
2023
+ isExemptRecipient: "is_exempt_recipient",
2024
+ isRegex: "is_regex",
2025
+ isTrustedSender: "is_trusted_sender",
2026
+ lastModified: "last_modified",
2027
+ pattern: "pattern",
2028
+ patternType: "pattern_type",
2029
+ verifySender: "verify_sender",
2030
+ comments: "comments",
2031
+ isRecipient: "is_recipient",
2032
+ isSender: "is_sender",
2033
+ isSpoof: "is_spoof",
2034
+ }),
2035
+ ),
2036
+ ),
2037
+ resultInfo: Schema.Struct({
2038
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2039
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2040
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2041
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1741
2042
  }).pipe(
1742
2043
  Schema.encodeKeys({
1743
- id: "id",
1744
- createdAt: "created_at",
1745
- isAcceptableSender: "is_acceptable_sender",
1746
- isExemptRecipient: "is_exempt_recipient",
1747
- isRegex: "is_regex",
1748
- isTrustedSender: "is_trusted_sender",
1749
- lastModified: "last_modified",
1750
- pattern: "pattern",
1751
- patternType: "pattern_type",
1752
- verifySender: "verify_sender",
1753
- comments: "comments",
1754
- isRecipient: "is_recipient",
1755
- isSender: "is_sender",
1756
- isSpoof: "is_spoof",
2044
+ count: "count",
2045
+ page: "page",
2046
+ perPage: "per_page",
2047
+ totalCount: "total_count",
1757
2048
  }),
1758
2049
  ),
2050
+ }).pipe(
2051
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
1759
2052
  ) as unknown as Schema.Schema<ListSettingAllowPoliciesResponse>;
1760
2053
 
1761
2054
  export type ListSettingAllowPoliciesError = DefaultErrors;
1762
2055
 
1763
- export const listSettingAllowPolicies: API.OperationMethod<
2056
+ export const listSettingAllowPolicies: API.PaginatedOperationMethod<
1764
2057
  ListSettingAllowPoliciesRequest,
1765
2058
  ListSettingAllowPoliciesResponse,
1766
2059
  ListSettingAllowPoliciesError,
1767
2060
  Credentials | HttpClient.HttpClient
1768
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2061
+ > & {
2062
+ pages: (
2063
+ input: ListSettingAllowPoliciesRequest,
2064
+ ) => stream.Stream<
2065
+ ListSettingAllowPoliciesResponse,
2066
+ ListSettingAllowPoliciesError,
2067
+ Credentials | HttpClient.HttpClient
2068
+ >;
2069
+ items: (input: ListSettingAllowPoliciesRequest) => stream.Stream<
2070
+ {
2071
+ id: number;
2072
+ createdAt: string;
2073
+ isAcceptableSender: boolean;
2074
+ isExemptRecipient: boolean;
2075
+ isRegex: boolean;
2076
+ isTrustedSender: boolean;
2077
+ lastModified: string;
2078
+ pattern: string;
2079
+ patternType: "EMAIL" | "DOMAIN" | "IP" | "UNKNOWN";
2080
+ verifySender: boolean;
2081
+ comments?: string | null;
2082
+ isRecipient?: boolean | null;
2083
+ isSender?: boolean | null;
2084
+ isSpoof?: boolean | null;
2085
+ },
2086
+ ListSettingAllowPoliciesError,
2087
+ Credentials | HttpClient.HttpClient
2088
+ >;
2089
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1769
2090
  input: ListSettingAllowPoliciesRequest,
1770
2091
  output: ListSettingAllowPoliciesResponse,
1771
2092
  errors: [],
2093
+ pagination: {
2094
+ mode: "page",
2095
+ inputToken: "page",
2096
+ outputToken: "resultInfo.page",
2097
+ items: "result",
2098
+ pageSize: "perPage",
2099
+ } as const,
1772
2100
  }));
1773
2101
 
1774
2102
  export interface CreateSettingAllowPolicyRequest {
@@ -1873,24 +2201,28 @@ export const CreateSettingAllowPolicyResponse =
1873
2201
  isRecipient: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1874
2202
  isSender: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1875
2203
  isSpoof: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1876
- }).pipe(
1877
- Schema.encodeKeys({
1878
- id: "id",
1879
- createdAt: "created_at",
1880
- isAcceptableSender: "is_acceptable_sender",
1881
- isExemptRecipient: "is_exempt_recipient",
1882
- isRegex: "is_regex",
1883
- isTrustedSender: "is_trusted_sender",
1884
- lastModified: "last_modified",
1885
- pattern: "pattern",
1886
- patternType: "pattern_type",
1887
- verifySender: "verify_sender",
1888
- comments: "comments",
1889
- isRecipient: "is_recipient",
1890
- isSender: "is_sender",
1891
- isSpoof: "is_spoof",
1892
- }),
1893
- ) as unknown as Schema.Schema<CreateSettingAllowPolicyResponse>;
2204
+ })
2205
+ .pipe(
2206
+ Schema.encodeKeys({
2207
+ id: "id",
2208
+ createdAt: "created_at",
2209
+ isAcceptableSender: "is_acceptable_sender",
2210
+ isExemptRecipient: "is_exempt_recipient",
2211
+ isRegex: "is_regex",
2212
+ isTrustedSender: "is_trusted_sender",
2213
+ lastModified: "last_modified",
2214
+ pattern: "pattern",
2215
+ patternType: "pattern_type",
2216
+ verifySender: "verify_sender",
2217
+ comments: "comments",
2218
+ isRecipient: "is_recipient",
2219
+ isSender: "is_sender",
2220
+ isSpoof: "is_spoof",
2221
+ }),
2222
+ )
2223
+ .pipe(
2224
+ T.ResponsePath("result"),
2225
+ ) as unknown as Schema.Schema<CreateSettingAllowPolicyResponse>;
1894
2226
 
1895
2227
  export type CreateSettingAllowPolicyError = DefaultErrors;
1896
2228
 
@@ -2011,24 +2343,28 @@ export const PatchSettingAllowPolicyResponse =
2011
2343
  isRecipient: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2012
2344
  isSender: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2013
2345
  isSpoof: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2014
- }).pipe(
2015
- Schema.encodeKeys({
2016
- id: "id",
2017
- createdAt: "created_at",
2018
- isAcceptableSender: "is_acceptable_sender",
2019
- isExemptRecipient: "is_exempt_recipient",
2020
- isRegex: "is_regex",
2021
- isTrustedSender: "is_trusted_sender",
2022
- lastModified: "last_modified",
2023
- pattern: "pattern",
2024
- patternType: "pattern_type",
2025
- verifySender: "verify_sender",
2026
- comments: "comments",
2027
- isRecipient: "is_recipient",
2028
- isSender: "is_sender",
2029
- isSpoof: "is_spoof",
2030
- }),
2031
- ) as unknown as Schema.Schema<PatchSettingAllowPolicyResponse>;
2346
+ })
2347
+ .pipe(
2348
+ Schema.encodeKeys({
2349
+ id: "id",
2350
+ createdAt: "created_at",
2351
+ isAcceptableSender: "is_acceptable_sender",
2352
+ isExemptRecipient: "is_exempt_recipient",
2353
+ isRegex: "is_regex",
2354
+ isTrustedSender: "is_trusted_sender",
2355
+ lastModified: "last_modified",
2356
+ pattern: "pattern",
2357
+ patternType: "pattern_type",
2358
+ verifySender: "verify_sender",
2359
+ comments: "comments",
2360
+ isRecipient: "is_recipient",
2361
+ isSender: "is_sender",
2362
+ isSpoof: "is_spoof",
2363
+ }),
2364
+ )
2365
+ .pipe(
2366
+ T.ResponsePath("result"),
2367
+ ) as unknown as Schema.Schema<PatchSettingAllowPolicyResponse>;
2032
2368
 
2033
2369
  export type PatchSettingAllowPolicyError = DefaultErrors;
2034
2370
 
@@ -2068,7 +2404,9 @@ export interface DeleteSettingAllowPolicyResponse {
2068
2404
  export const DeleteSettingAllowPolicyResponse =
2069
2405
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2070
2406
  id: Schema.Number,
2071
- }) as unknown as Schema.Schema<DeleteSettingAllowPolicyResponse>;
2407
+ }).pipe(
2408
+ T.ResponsePath("result"),
2409
+ ) as unknown as Schema.Schema<DeleteSettingAllowPolicyResponse>;
2072
2410
 
2073
2411
  export type DeleteSettingAllowPolicyError = DefaultErrors;
2074
2412
 
@@ -2124,17 +2462,21 @@ export const GetSettingBlockSenderResponse =
2124
2462
  pattern: Schema.String,
2125
2463
  patternType: Schema.Literals(["EMAIL", "DOMAIN", "IP", "UNKNOWN"]),
2126
2464
  comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2127
- }).pipe(
2128
- Schema.encodeKeys({
2129
- id: "id",
2130
- createdAt: "created_at",
2131
- isRegex: "is_regex",
2132
- lastModified: "last_modified",
2133
- pattern: "pattern",
2134
- patternType: "pattern_type",
2135
- comments: "comments",
2136
- }),
2137
- ) as unknown as Schema.Schema<GetSettingBlockSenderResponse>;
2465
+ })
2466
+ .pipe(
2467
+ Schema.encodeKeys({
2468
+ id: "id",
2469
+ createdAt: "created_at",
2470
+ isRegex: "is_regex",
2471
+ lastModified: "last_modified",
2472
+ pattern: "pattern",
2473
+ patternType: "pattern_type",
2474
+ comments: "comments",
2475
+ }),
2476
+ )
2477
+ .pipe(
2478
+ T.ResponsePath("result"),
2479
+ ) as unknown as Schema.Schema<GetSettingBlockSenderResponse>;
2138
2480
 
2139
2481
  export type GetSettingBlockSenderError = DefaultErrors;
2140
2482
 
@@ -2183,52 +2525,105 @@ export const ListSettingBlockSendersRequest =
2183
2525
  method: "GET",
2184
2526
  path: "/accounts/{account_id}/email-security/settings/block_senders",
2185
2527
  }),
2186
- ) as unknown as Schema.Schema<ListSettingBlockSendersRequest>;
2187
-
2188
- export type ListSettingBlockSendersResponse = {
2189
- id: number;
2190
- createdAt: string;
2191
- isRegex: boolean;
2192
- lastModified: string;
2193
- pattern: string;
2194
- patternType: "EMAIL" | "DOMAIN" | "IP" | "UNKNOWN";
2195
- comments?: string | null;
2196
- }[];
2528
+ ) as unknown as Schema.Schema<ListSettingBlockSendersRequest>;
2529
+
2530
+ export interface ListSettingBlockSendersResponse {
2531
+ result: {
2532
+ id: number;
2533
+ createdAt: string;
2534
+ isRegex: boolean;
2535
+ lastModified: string;
2536
+ pattern: string;
2537
+ patternType: "EMAIL" | "DOMAIN" | "IP" | "UNKNOWN";
2538
+ comments?: string | null;
2539
+ }[];
2540
+ resultInfo: {
2541
+ count?: number | null;
2542
+ page?: number | null;
2543
+ perPage?: number | null;
2544
+ totalCount?: number | null;
2545
+ };
2546
+ }
2197
2547
 
2198
2548
  export const ListSettingBlockSendersResponse =
2199
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
2200
- Schema.Struct({
2201
- id: Schema.Number,
2202
- createdAt: Schema.String,
2203
- isRegex: Schema.Boolean,
2204
- lastModified: Schema.String,
2205
- pattern: Schema.String,
2206
- patternType: Schema.Literals(["EMAIL", "DOMAIN", "IP", "UNKNOWN"]),
2207
- comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2549
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2550
+ result: Schema.Array(
2551
+ Schema.Struct({
2552
+ id: Schema.Number,
2553
+ createdAt: Schema.String,
2554
+ isRegex: Schema.Boolean,
2555
+ lastModified: Schema.String,
2556
+ pattern: Schema.String,
2557
+ patternType: Schema.Literals(["EMAIL", "DOMAIN", "IP", "UNKNOWN"]),
2558
+ comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2559
+ }).pipe(
2560
+ Schema.encodeKeys({
2561
+ id: "id",
2562
+ createdAt: "created_at",
2563
+ isRegex: "is_regex",
2564
+ lastModified: "last_modified",
2565
+ pattern: "pattern",
2566
+ patternType: "pattern_type",
2567
+ comments: "comments",
2568
+ }),
2569
+ ),
2570
+ ),
2571
+ resultInfo: Schema.Struct({
2572
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2573
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2574
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2575
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2208
2576
  }).pipe(
2209
2577
  Schema.encodeKeys({
2210
- id: "id",
2211
- createdAt: "created_at",
2212
- isRegex: "is_regex",
2213
- lastModified: "last_modified",
2214
- pattern: "pattern",
2215
- patternType: "pattern_type",
2216
- comments: "comments",
2578
+ count: "count",
2579
+ page: "page",
2580
+ perPage: "per_page",
2581
+ totalCount: "total_count",
2217
2582
  }),
2218
2583
  ),
2584
+ }).pipe(
2585
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
2219
2586
  ) as unknown as Schema.Schema<ListSettingBlockSendersResponse>;
2220
2587
 
2221
2588
  export type ListSettingBlockSendersError = DefaultErrors;
2222
2589
 
2223
- export const listSettingBlockSenders: API.OperationMethod<
2590
+ export const listSettingBlockSenders: API.PaginatedOperationMethod<
2224
2591
  ListSettingBlockSendersRequest,
2225
2592
  ListSettingBlockSendersResponse,
2226
2593
  ListSettingBlockSendersError,
2227
2594
  Credentials | HttpClient.HttpClient
2228
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2595
+ > & {
2596
+ pages: (
2597
+ input: ListSettingBlockSendersRequest,
2598
+ ) => stream.Stream<
2599
+ ListSettingBlockSendersResponse,
2600
+ ListSettingBlockSendersError,
2601
+ Credentials | HttpClient.HttpClient
2602
+ >;
2603
+ items: (input: ListSettingBlockSendersRequest) => stream.Stream<
2604
+ {
2605
+ id: number;
2606
+ createdAt: string;
2607
+ isRegex: boolean;
2608
+ lastModified: string;
2609
+ pattern: string;
2610
+ patternType: "EMAIL" | "DOMAIN" | "IP" | "UNKNOWN";
2611
+ comments?: string | null;
2612
+ },
2613
+ ListSettingBlockSendersError,
2614
+ Credentials | HttpClient.HttpClient
2615
+ >;
2616
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
2229
2617
  input: ListSettingBlockSendersRequest,
2230
2618
  output: ListSettingBlockSendersResponse,
2231
2619
  errors: [],
2620
+ pagination: {
2621
+ mode: "page",
2622
+ inputToken: "page",
2623
+ outputToken: "resultInfo.page",
2624
+ items: "result",
2625
+ pageSize: "perPage",
2626
+ } as const,
2232
2627
  }));
2233
2628
 
2234
2629
  export interface CreateSettingBlockSenderRequest {
@@ -2284,17 +2679,21 @@ export const CreateSettingBlockSenderResponse =
2284
2679
  pattern: Schema.String,
2285
2680
  patternType: Schema.Literals(["EMAIL", "DOMAIN", "IP", "UNKNOWN"]),
2286
2681
  comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2287
- }).pipe(
2288
- Schema.encodeKeys({
2289
- id: "id",
2290
- createdAt: "created_at",
2291
- isRegex: "is_regex",
2292
- lastModified: "last_modified",
2293
- pattern: "pattern",
2294
- patternType: "pattern_type",
2295
- comments: "comments",
2296
- }),
2297
- ) as unknown as Schema.Schema<CreateSettingBlockSenderResponse>;
2682
+ })
2683
+ .pipe(
2684
+ Schema.encodeKeys({
2685
+ id: "id",
2686
+ createdAt: "created_at",
2687
+ isRegex: "is_regex",
2688
+ lastModified: "last_modified",
2689
+ pattern: "pattern",
2690
+ patternType: "pattern_type",
2691
+ comments: "comments",
2692
+ }),
2693
+ )
2694
+ .pipe(
2695
+ T.ResponsePath("result"),
2696
+ ) as unknown as Schema.Schema<CreateSettingBlockSenderResponse>;
2298
2697
 
2299
2698
  export type CreateSettingBlockSenderError = DefaultErrors;
2300
2699
 
@@ -2372,17 +2771,21 @@ export const PatchSettingBlockSenderResponse =
2372
2771
  pattern: Schema.String,
2373
2772
  patternType: Schema.Literals(["EMAIL", "DOMAIN", "IP", "UNKNOWN"]),
2374
2773
  comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2375
- }).pipe(
2376
- Schema.encodeKeys({
2377
- id: "id",
2378
- createdAt: "created_at",
2379
- isRegex: "is_regex",
2380
- lastModified: "last_modified",
2381
- pattern: "pattern",
2382
- patternType: "pattern_type",
2383
- comments: "comments",
2384
- }),
2385
- ) as unknown as Schema.Schema<PatchSettingBlockSenderResponse>;
2774
+ })
2775
+ .pipe(
2776
+ Schema.encodeKeys({
2777
+ id: "id",
2778
+ createdAt: "created_at",
2779
+ isRegex: "is_regex",
2780
+ lastModified: "last_modified",
2781
+ pattern: "pattern",
2782
+ patternType: "pattern_type",
2783
+ comments: "comments",
2784
+ }),
2785
+ )
2786
+ .pipe(
2787
+ T.ResponsePath("result"),
2788
+ ) as unknown as Schema.Schema<PatchSettingBlockSenderResponse>;
2386
2789
 
2387
2790
  export type PatchSettingBlockSenderError = DefaultErrors;
2388
2791
 
@@ -2422,7 +2825,9 @@ export interface DeleteSettingBlockSenderResponse {
2422
2825
  export const DeleteSettingBlockSenderResponse =
2423
2826
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2424
2827
  id: Schema.Number,
2425
- }) as unknown as Schema.Schema<DeleteSettingBlockSenderResponse>;
2828
+ }).pipe(
2829
+ T.ResponsePath("result"),
2830
+ ) as unknown as Schema.Schema<DeleteSettingBlockSenderResponse>;
2426
2831
 
2427
2832
  export type DeleteSettingBlockSenderError = DefaultErrors;
2428
2833
 
@@ -2602,30 +3007,34 @@ export const GetSettingDomainResponse =
2602
3007
  Schema.Null,
2603
3008
  ]),
2604
3009
  ),
2605
- }).pipe(
2606
- Schema.encodeKeys({
2607
- id: "id",
2608
- allowedDeliveryModes: "allowed_delivery_modes",
2609
- createdAt: "created_at",
2610
- domain: "domain",
2611
- dropDispositions: "drop_dispositions",
2612
- ipRestrictions: "ip_restrictions",
2613
- lastModified: "last_modified",
2614
- lookbackHops: "lookback_hops",
2615
- regions: "regions",
2616
- transport: "transport",
2617
- authorization: "authorization",
2618
- dmarcStatus: "dmarc_status",
2619
- emailsProcessed: "emails_processed",
2620
- folder: "folder",
2621
- inboxProvider: "inbox_provider",
2622
- integrationId: "integration_id",
2623
- o365TenantId: "o365_tenant_id",
2624
- requireTlsInbound: "require_tls_inbound",
2625
- requireTlsOutbound: "require_tls_outbound",
2626
- spfStatus: "spf_status",
2627
- }),
2628
- ) as unknown as Schema.Schema<GetSettingDomainResponse>;
3010
+ })
3011
+ .pipe(
3012
+ Schema.encodeKeys({
3013
+ id: "id",
3014
+ allowedDeliveryModes: "allowed_delivery_modes",
3015
+ createdAt: "created_at",
3016
+ domain: "domain",
3017
+ dropDispositions: "drop_dispositions",
3018
+ ipRestrictions: "ip_restrictions",
3019
+ lastModified: "last_modified",
3020
+ lookbackHops: "lookback_hops",
3021
+ regions: "regions",
3022
+ transport: "transport",
3023
+ authorization: "authorization",
3024
+ dmarcStatus: "dmarc_status",
3025
+ emailsProcessed: "emails_processed",
3026
+ folder: "folder",
3027
+ inboxProvider: "inbox_provider",
3028
+ integrationId: "integration_id",
3029
+ o365TenantId: "o365_tenant_id",
3030
+ requireTlsInbound: "require_tls_inbound",
3031
+ requireTlsOutbound: "require_tls_outbound",
3032
+ spfStatus: "spf_status",
3033
+ }),
3034
+ )
3035
+ .pipe(
3036
+ T.ResponsePath("result"),
3037
+ ) as unknown as Schema.Schema<GetSettingDomainResponse>;
2629
3038
 
2630
3039
  export type GetSettingDomainError = DefaultErrors;
2631
3040
 
@@ -2688,191 +3097,290 @@ export const ListSettingDomainsRequest =
2688
3097
  }),
2689
3098
  ) as unknown as Schema.Schema<ListSettingDomainsRequest>;
2690
3099
 
2691
- export type ListSettingDomainsResponse = {
2692
- id: number;
2693
- allowedDeliveryModes: ("DIRECT" | "BCC" | "JOURNAL" | "API" | "RETRO_SCAN")[];
2694
- createdAt: string;
2695
- domain: string;
2696
- dropDispositions: (
2697
- | "MALICIOUS"
2698
- | "MALICIOUS-BEC"
2699
- | "SUSPICIOUS"
2700
- | "SPOOF"
2701
- | "SPAM"
2702
- | "BULK"
2703
- | "ENCRYPTED"
2704
- | "EXTERNAL"
2705
- | "UNKNOWN"
2706
- | "NONE"
2707
- )[];
2708
- ipRestrictions: string[];
2709
- lastModified: string;
2710
- lookbackHops: number;
2711
- regions: ("GLOBAL" | "AU" | "DE" | "IN" | "US")[];
2712
- transport: string;
2713
- authorization?: {
2714
- authorized: boolean;
2715
- timestamp: string;
2716
- statusMessage?: string | null;
2717
- } | null;
2718
- dmarcStatus?: "none" | "good" | "invalid" | null;
2719
- emailsProcessed?: {
2720
- timestamp: string;
2721
- totalEmailsProcessed: number;
2722
- totalEmailsProcessedPrevious: number;
2723
- } | null;
2724
- folder?: "AllItems" | "Inbox" | null;
2725
- inboxProvider?: "Microsoft" | "Google" | null;
2726
- integrationId?: string | null;
2727
- o365TenantId?: string | null;
2728
- requireTlsInbound?: boolean | null;
2729
- requireTlsOutbound?: boolean | null;
2730
- spfStatus?: "none" | "good" | "neutral" | "open" | "invalid" | null;
2731
- }[];
3100
+ export interface ListSettingDomainsResponse {
3101
+ result: {
3102
+ id: number;
3103
+ allowedDeliveryModes: (
3104
+ | "DIRECT"
3105
+ | "BCC"
3106
+ | "JOURNAL"
3107
+ | "API"
3108
+ | "RETRO_SCAN"
3109
+ )[];
3110
+ createdAt: string;
3111
+ domain: string;
3112
+ dropDispositions: (
3113
+ | "MALICIOUS"
3114
+ | "MALICIOUS-BEC"
3115
+ | "SUSPICIOUS"
3116
+ | "SPOOF"
3117
+ | "SPAM"
3118
+ | "BULK"
3119
+ | "ENCRYPTED"
3120
+ | "EXTERNAL"
3121
+ | "UNKNOWN"
3122
+ | "NONE"
3123
+ )[];
3124
+ ipRestrictions: string[];
3125
+ lastModified: string;
3126
+ lookbackHops: number;
3127
+ regions: ("GLOBAL" | "AU" | "DE" | "IN" | "US")[];
3128
+ transport: string;
3129
+ authorization?: {
3130
+ authorized: boolean;
3131
+ timestamp: string;
3132
+ statusMessage?: string | null;
3133
+ } | null;
3134
+ dmarcStatus?: "none" | "good" | "invalid" | null;
3135
+ emailsProcessed?: {
3136
+ timestamp: string;
3137
+ totalEmailsProcessed: number;
3138
+ totalEmailsProcessedPrevious: number;
3139
+ } | null;
3140
+ folder?: "AllItems" | "Inbox" | null;
3141
+ inboxProvider?: "Microsoft" | "Google" | null;
3142
+ integrationId?: string | null;
3143
+ o365TenantId?: string | null;
3144
+ requireTlsInbound?: boolean | null;
3145
+ requireTlsOutbound?: boolean | null;
3146
+ spfStatus?: "none" | "good" | "neutral" | "open" | "invalid" | null;
3147
+ }[];
3148
+ resultInfo: {
3149
+ count?: number | null;
3150
+ page?: number | null;
3151
+ perPage?: number | null;
3152
+ totalCount?: number | null;
3153
+ };
3154
+ }
2732
3155
 
2733
3156
  export const ListSettingDomainsResponse =
2734
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
2735
- Schema.Struct({
2736
- id: Schema.Number,
2737
- allowedDeliveryModes: Schema.Array(
2738
- Schema.Literals(["DIRECT", "BCC", "JOURNAL", "API", "RETRO_SCAN"]),
2739
- ),
2740
- createdAt: Schema.String,
2741
- domain: Schema.String,
2742
- dropDispositions: Schema.Array(
2743
- Schema.Literals([
2744
- "MALICIOUS",
2745
- "MALICIOUS-BEC",
2746
- "SUSPICIOUS",
2747
- "SPOOF",
2748
- "SPAM",
2749
- "BULK",
2750
- "ENCRYPTED",
2751
- "EXTERNAL",
2752
- "UNKNOWN",
2753
- "NONE",
2754
- ]),
2755
- ),
2756
- ipRestrictions: Schema.Array(Schema.String),
2757
- lastModified: Schema.String,
2758
- lookbackHops: Schema.Number,
2759
- regions: Schema.Array(
2760
- Schema.Literals(["GLOBAL", "AU", "DE", "IN", "US"]),
2761
- ),
2762
- transport: Schema.String,
2763
- authorization: Schema.optional(
2764
- Schema.Union([
2765
- Schema.Struct({
2766
- authorized: Schema.Boolean,
2767
- timestamp: Schema.String,
2768
- statusMessage: Schema.optional(
2769
- Schema.Union([Schema.String, Schema.Null]),
3157
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3158
+ result: Schema.Array(
3159
+ Schema.Struct({
3160
+ id: Schema.Number,
3161
+ allowedDeliveryModes: Schema.Array(
3162
+ Schema.Literals(["DIRECT", "BCC", "JOURNAL", "API", "RETRO_SCAN"]),
3163
+ ),
3164
+ createdAt: Schema.String,
3165
+ domain: Schema.String,
3166
+ dropDispositions: Schema.Array(
3167
+ Schema.Literals([
3168
+ "MALICIOUS",
3169
+ "MALICIOUS-BEC",
3170
+ "SUSPICIOUS",
3171
+ "SPOOF",
3172
+ "SPAM",
3173
+ "BULK",
3174
+ "ENCRYPTED",
3175
+ "EXTERNAL",
3176
+ "UNKNOWN",
3177
+ "NONE",
3178
+ ]),
3179
+ ),
3180
+ ipRestrictions: Schema.Array(Schema.String),
3181
+ lastModified: Schema.String,
3182
+ lookbackHops: Schema.Number,
3183
+ regions: Schema.Array(
3184
+ Schema.Literals(["GLOBAL", "AU", "DE", "IN", "US"]),
3185
+ ),
3186
+ transport: Schema.String,
3187
+ authorization: Schema.optional(
3188
+ Schema.Union([
3189
+ Schema.Struct({
3190
+ authorized: Schema.Boolean,
3191
+ timestamp: Schema.String,
3192
+ statusMessage: Schema.optional(
3193
+ Schema.Union([Schema.String, Schema.Null]),
3194
+ ),
3195
+ }).pipe(
3196
+ Schema.encodeKeys({
3197
+ authorized: "authorized",
3198
+ timestamp: "timestamp",
3199
+ statusMessage: "status_message",
3200
+ }),
2770
3201
  ),
2771
- }).pipe(
2772
- Schema.encodeKeys({
2773
- authorized: "authorized",
2774
- timestamp: "timestamp",
2775
- statusMessage: "status_message",
2776
- }),
2777
- ),
2778
- Schema.Null,
2779
- ]),
2780
- ),
2781
- dmarcStatus: Schema.optional(
2782
- Schema.Union([
2783
- Schema.Literal("none"),
2784
- Schema.Literal("good"),
2785
- Schema.Literal("invalid"),
2786
- Schema.Null,
2787
- ]),
2788
- ),
2789
- emailsProcessed: Schema.optional(
2790
- Schema.Union([
2791
- Schema.Struct({
2792
- timestamp: Schema.String,
2793
- totalEmailsProcessed: Schema.Number,
2794
- totalEmailsProcessedPrevious: Schema.Number,
2795
- }).pipe(
2796
- Schema.encodeKeys({
2797
- timestamp: "timestamp",
2798
- totalEmailsProcessed: "total_emails_processed",
2799
- totalEmailsProcessedPrevious: "total_emails_processed_previous",
2800
- }),
2801
- ),
2802
- Schema.Null,
2803
- ]),
2804
- ),
2805
- folder: Schema.optional(
2806
- Schema.Union([
2807
- Schema.Literal("AllItems"),
2808
- Schema.Literal("Inbox"),
2809
- Schema.Null,
2810
- ]),
2811
- ),
2812
- inboxProvider: Schema.optional(
2813
- Schema.Union([
2814
- Schema.Literal("Microsoft"),
2815
- Schema.Literal("Google"),
2816
- Schema.Null,
2817
- ]),
2818
- ),
2819
- integrationId: Schema.optional(
2820
- Schema.Union([Schema.String, Schema.Null]),
2821
- ),
2822
- o365TenantId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2823
- requireTlsInbound: Schema.optional(
2824
- Schema.Union([Schema.Boolean, Schema.Null]),
2825
- ),
2826
- requireTlsOutbound: Schema.optional(
2827
- Schema.Union([Schema.Boolean, Schema.Null]),
2828
- ),
2829
- spfStatus: Schema.optional(
2830
- Schema.Union([
2831
- Schema.Literal("none"),
2832
- Schema.Literal("good"),
2833
- Schema.Literal("neutral"),
2834
- Schema.Literal("open"),
2835
- Schema.Literal("invalid"),
2836
- Schema.Null,
2837
- ]),
3202
+ Schema.Null,
3203
+ ]),
3204
+ ),
3205
+ dmarcStatus: Schema.optional(
3206
+ Schema.Union([
3207
+ Schema.Literal("none"),
3208
+ Schema.Literal("good"),
3209
+ Schema.Literal("invalid"),
3210
+ Schema.Null,
3211
+ ]),
3212
+ ),
3213
+ emailsProcessed: Schema.optional(
3214
+ Schema.Union([
3215
+ Schema.Struct({
3216
+ timestamp: Schema.String,
3217
+ totalEmailsProcessed: Schema.Number,
3218
+ totalEmailsProcessedPrevious: Schema.Number,
3219
+ }).pipe(
3220
+ Schema.encodeKeys({
3221
+ timestamp: "timestamp",
3222
+ totalEmailsProcessed: "total_emails_processed",
3223
+ totalEmailsProcessedPrevious: "total_emails_processed_previous",
3224
+ }),
3225
+ ),
3226
+ Schema.Null,
3227
+ ]),
3228
+ ),
3229
+ folder: Schema.optional(
3230
+ Schema.Union([
3231
+ Schema.Literal("AllItems"),
3232
+ Schema.Literal("Inbox"),
3233
+ Schema.Null,
3234
+ ]),
3235
+ ),
3236
+ inboxProvider: Schema.optional(
3237
+ Schema.Union([
3238
+ Schema.Literal("Microsoft"),
3239
+ Schema.Literal("Google"),
3240
+ Schema.Null,
3241
+ ]),
3242
+ ),
3243
+ integrationId: Schema.optional(
3244
+ Schema.Union([Schema.String, Schema.Null]),
3245
+ ),
3246
+ o365TenantId: Schema.optional(
3247
+ Schema.Union([Schema.String, Schema.Null]),
3248
+ ),
3249
+ requireTlsInbound: Schema.optional(
3250
+ Schema.Union([Schema.Boolean, Schema.Null]),
3251
+ ),
3252
+ requireTlsOutbound: Schema.optional(
3253
+ Schema.Union([Schema.Boolean, Schema.Null]),
3254
+ ),
3255
+ spfStatus: Schema.optional(
3256
+ Schema.Union([
3257
+ Schema.Literal("none"),
3258
+ Schema.Literal("good"),
3259
+ Schema.Literal("neutral"),
3260
+ Schema.Literal("open"),
3261
+ Schema.Literal("invalid"),
3262
+ Schema.Null,
3263
+ ]),
3264
+ ),
3265
+ }).pipe(
3266
+ Schema.encodeKeys({
3267
+ id: "id",
3268
+ allowedDeliveryModes: "allowed_delivery_modes",
3269
+ createdAt: "created_at",
3270
+ domain: "domain",
3271
+ dropDispositions: "drop_dispositions",
3272
+ ipRestrictions: "ip_restrictions",
3273
+ lastModified: "last_modified",
3274
+ lookbackHops: "lookback_hops",
3275
+ regions: "regions",
3276
+ transport: "transport",
3277
+ authorization: "authorization",
3278
+ dmarcStatus: "dmarc_status",
3279
+ emailsProcessed: "emails_processed",
3280
+ folder: "folder",
3281
+ inboxProvider: "inbox_provider",
3282
+ integrationId: "integration_id",
3283
+ o365TenantId: "o365_tenant_id",
3284
+ requireTlsInbound: "require_tls_inbound",
3285
+ requireTlsOutbound: "require_tls_outbound",
3286
+ spfStatus: "spf_status",
3287
+ }),
2838
3288
  ),
3289
+ ),
3290
+ resultInfo: Schema.Struct({
3291
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3292
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3293
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3294
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2839
3295
  }).pipe(
2840
3296
  Schema.encodeKeys({
2841
- id: "id",
2842
- allowedDeliveryModes: "allowed_delivery_modes",
2843
- createdAt: "created_at",
2844
- domain: "domain",
2845
- dropDispositions: "drop_dispositions",
2846
- ipRestrictions: "ip_restrictions",
2847
- lastModified: "last_modified",
2848
- lookbackHops: "lookback_hops",
2849
- regions: "regions",
2850
- transport: "transport",
2851
- authorization: "authorization",
2852
- dmarcStatus: "dmarc_status",
2853
- emailsProcessed: "emails_processed",
2854
- folder: "folder",
2855
- inboxProvider: "inbox_provider",
2856
- integrationId: "integration_id",
2857
- o365TenantId: "o365_tenant_id",
2858
- requireTlsInbound: "require_tls_inbound",
2859
- requireTlsOutbound: "require_tls_outbound",
2860
- spfStatus: "spf_status",
3297
+ count: "count",
3298
+ page: "page",
3299
+ perPage: "per_page",
3300
+ totalCount: "total_count",
2861
3301
  }),
2862
3302
  ),
3303
+ }).pipe(
3304
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
2863
3305
  ) as unknown as Schema.Schema<ListSettingDomainsResponse>;
2864
3306
 
2865
3307
  export type ListSettingDomainsError = DefaultErrors;
2866
3308
 
2867
- export const listSettingDomains: API.OperationMethod<
3309
+ export const listSettingDomains: API.PaginatedOperationMethod<
2868
3310
  ListSettingDomainsRequest,
2869
3311
  ListSettingDomainsResponse,
2870
3312
  ListSettingDomainsError,
2871
3313
  Credentials | HttpClient.HttpClient
2872
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3314
+ > & {
3315
+ pages: (
3316
+ input: ListSettingDomainsRequest,
3317
+ ) => stream.Stream<
3318
+ ListSettingDomainsResponse,
3319
+ ListSettingDomainsError,
3320
+ Credentials | HttpClient.HttpClient
3321
+ >;
3322
+ items: (input: ListSettingDomainsRequest) => stream.Stream<
3323
+ {
3324
+ id: number;
3325
+ allowedDeliveryModes: (
3326
+ | "DIRECT"
3327
+ | "BCC"
3328
+ | "JOURNAL"
3329
+ | "API"
3330
+ | "RETRO_SCAN"
3331
+ )[];
3332
+ createdAt: string;
3333
+ domain: string;
3334
+ dropDispositions: (
3335
+ | "MALICIOUS"
3336
+ | "MALICIOUS-BEC"
3337
+ | "SUSPICIOUS"
3338
+ | "SPOOF"
3339
+ | "SPAM"
3340
+ | "BULK"
3341
+ | "ENCRYPTED"
3342
+ | "EXTERNAL"
3343
+ | "UNKNOWN"
3344
+ | "NONE"
3345
+ )[];
3346
+ ipRestrictions: string[];
3347
+ lastModified: string;
3348
+ lookbackHops: number;
3349
+ regions: ("GLOBAL" | "AU" | "DE" | "IN" | "US")[];
3350
+ transport: string;
3351
+ authorization?: {
3352
+ authorized: boolean;
3353
+ timestamp: string;
3354
+ statusMessage?: string | null;
3355
+ } | null;
3356
+ dmarcStatus?: "none" | "good" | "invalid" | null;
3357
+ emailsProcessed?: {
3358
+ timestamp: string;
3359
+ totalEmailsProcessed: number;
3360
+ totalEmailsProcessedPrevious: number;
3361
+ } | null;
3362
+ folder?: "AllItems" | "Inbox" | null;
3363
+ inboxProvider?: "Microsoft" | "Google" | null;
3364
+ integrationId?: string | null;
3365
+ o365TenantId?: string | null;
3366
+ requireTlsInbound?: boolean | null;
3367
+ requireTlsOutbound?: boolean | null;
3368
+ spfStatus?: "none" | "good" | "neutral" | "open" | "invalid" | null;
3369
+ },
3370
+ ListSettingDomainsError,
3371
+ Credentials | HttpClient.HttpClient
3372
+ >;
3373
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
2873
3374
  input: ListSettingDomainsRequest,
2874
3375
  output: ListSettingDomainsResponse,
2875
3376
  errors: [],
3377
+ pagination: {
3378
+ mode: "page",
3379
+ inputToken: "page",
3380
+ outputToken: "resultInfo.page",
3381
+ items: "result",
3382
+ pageSize: "perPage",
3383
+ } as const,
2876
3384
  }));
2877
3385
 
2878
3386
  export interface PatchSettingDomainRequest {
@@ -3120,30 +3628,34 @@ export const PatchSettingDomainResponse =
3120
3628
  Schema.Null,
3121
3629
  ]),
3122
3630
  ),
3123
- }).pipe(
3124
- Schema.encodeKeys({
3125
- id: "id",
3126
- allowedDeliveryModes: "allowed_delivery_modes",
3127
- createdAt: "created_at",
3128
- domain: "domain",
3129
- dropDispositions: "drop_dispositions",
3130
- ipRestrictions: "ip_restrictions",
3131
- lastModified: "last_modified",
3132
- lookbackHops: "lookback_hops",
3133
- regions: "regions",
3134
- transport: "transport",
3135
- authorization: "authorization",
3136
- dmarcStatus: "dmarc_status",
3137
- emailsProcessed: "emails_processed",
3138
- folder: "folder",
3139
- inboxProvider: "inbox_provider",
3140
- integrationId: "integration_id",
3141
- o365TenantId: "o365_tenant_id",
3142
- requireTlsInbound: "require_tls_inbound",
3143
- requireTlsOutbound: "require_tls_outbound",
3144
- spfStatus: "spf_status",
3145
- }),
3146
- ) as unknown as Schema.Schema<PatchSettingDomainResponse>;
3631
+ })
3632
+ .pipe(
3633
+ Schema.encodeKeys({
3634
+ id: "id",
3635
+ allowedDeliveryModes: "allowed_delivery_modes",
3636
+ createdAt: "created_at",
3637
+ domain: "domain",
3638
+ dropDispositions: "drop_dispositions",
3639
+ ipRestrictions: "ip_restrictions",
3640
+ lastModified: "last_modified",
3641
+ lookbackHops: "lookback_hops",
3642
+ regions: "regions",
3643
+ transport: "transport",
3644
+ authorization: "authorization",
3645
+ dmarcStatus: "dmarc_status",
3646
+ emailsProcessed: "emails_processed",
3647
+ folder: "folder",
3648
+ inboxProvider: "inbox_provider",
3649
+ integrationId: "integration_id",
3650
+ o365TenantId: "o365_tenant_id",
3651
+ requireTlsInbound: "require_tls_inbound",
3652
+ requireTlsOutbound: "require_tls_outbound",
3653
+ spfStatus: "spf_status",
3654
+ }),
3655
+ )
3656
+ .pipe(
3657
+ T.ResponsePath("result"),
3658
+ ) as unknown as Schema.Schema<PatchSettingDomainResponse>;
3147
3659
 
3148
3660
  export type PatchSettingDomainError = DefaultErrors;
3149
3661
 
@@ -3183,7 +3695,9 @@ export interface DeleteSettingDomainResponse {
3183
3695
  export const DeleteSettingDomainResponse =
3184
3696
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3185
3697
  id: Schema.Number,
3186
- }) as unknown as Schema.Schema<DeleteSettingDomainResponse>;
3698
+ }).pipe(
3699
+ T.ResponsePath("result"),
3700
+ ) as unknown as Schema.Schema<DeleteSettingDomainResponse>;
3187
3701
 
3188
3702
  export type DeleteSettingDomainError = DefaultErrors;
3189
3703
 
@@ -3213,26 +3727,49 @@ export const BulkDeleteSettingDomainsRequest =
3213
3727
  }),
3214
3728
  ) as unknown as Schema.Schema<BulkDeleteSettingDomainsRequest>;
3215
3729
 
3216
- export type BulkDeleteSettingDomainsResponse = { id: number }[];
3730
+ export interface BulkDeleteSettingDomainsResponse {
3731
+ result: { id: number }[];
3732
+ }
3217
3733
 
3218
3734
  export const BulkDeleteSettingDomainsResponse =
3219
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
3220
- Schema.Struct({
3221
- id: Schema.Number,
3222
- }),
3223
- ) as unknown as Schema.Schema<BulkDeleteSettingDomainsResponse>;
3735
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3736
+ result: Schema.Array(
3737
+ Schema.Struct({
3738
+ id: Schema.Number,
3739
+ }),
3740
+ ),
3741
+ }) as unknown as Schema.Schema<BulkDeleteSettingDomainsResponse>;
3224
3742
 
3225
3743
  export type BulkDeleteSettingDomainsError = DefaultErrors;
3226
3744
 
3227
- export const bulkDeleteSettingDomains: API.OperationMethod<
3745
+ export const bulkDeleteSettingDomains: API.PaginatedOperationMethod<
3228
3746
  BulkDeleteSettingDomainsRequest,
3229
3747
  BulkDeleteSettingDomainsResponse,
3230
3748
  BulkDeleteSettingDomainsError,
3231
3749
  Credentials | HttpClient.HttpClient
3232
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3750
+ > & {
3751
+ pages: (
3752
+ input: BulkDeleteSettingDomainsRequest,
3753
+ ) => stream.Stream<
3754
+ BulkDeleteSettingDomainsResponse,
3755
+ BulkDeleteSettingDomainsError,
3756
+ Credentials | HttpClient.HttpClient
3757
+ >;
3758
+ items: (
3759
+ input: BulkDeleteSettingDomainsRequest,
3760
+ ) => stream.Stream<
3761
+ { id: number },
3762
+ BulkDeleteSettingDomainsError,
3763
+ Credentials | HttpClient.HttpClient
3764
+ >;
3765
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
3233
3766
  input: BulkDeleteSettingDomainsRequest,
3234
3767
  output: BulkDeleteSettingDomainsResponse,
3235
3768
  errors: [],
3769
+ pagination: {
3770
+ mode: "single",
3771
+ items: "result",
3772
+ } as const,
3236
3773
  }));
3237
3774
 
3238
3775
  // =============================================================================
@@ -3288,21 +3825,25 @@ export const GetSettingImpersonationRegistryResponse =
3288
3825
  Schema.Union([Schema.String, Schema.Null]),
3289
3826
  ),
3290
3827
  provenance: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3291
- }).pipe(
3292
- Schema.encodeKeys({
3293
- id: "id",
3294
- createdAt: "created_at",
3295
- email: "email",
3296
- isEmailRegex: "is_email_regex",
3297
- lastModified: "last_modified",
3298
- name: "name",
3299
- comments: "comments",
3300
- directoryId: "directory_id",
3301
- directoryNodeId: "directory_node_id",
3302
- externalDirectoryNodeId: "external_directory_node_id",
3303
- provenance: "provenance",
3304
- }),
3305
- ) as unknown as Schema.Schema<GetSettingImpersonationRegistryResponse>;
3828
+ })
3829
+ .pipe(
3830
+ Schema.encodeKeys({
3831
+ id: "id",
3832
+ createdAt: "created_at",
3833
+ email: "email",
3834
+ isEmailRegex: "is_email_regex",
3835
+ lastModified: "last_modified",
3836
+ name: "name",
3837
+ comments: "comments",
3838
+ directoryId: "directory_id",
3839
+ directoryNodeId: "directory_node_id",
3840
+ externalDirectoryNodeId: "external_directory_node_id",
3841
+ provenance: "provenance",
3842
+ }),
3843
+ )
3844
+ .pipe(
3845
+ T.ResponsePath("result"),
3846
+ ) as unknown as Schema.Schema<GetSettingImpersonationRegistryResponse>;
3306
3847
 
3307
3848
  export type GetSettingImpersonationRegistryError = DefaultErrors;
3308
3849
 
@@ -3359,66 +3900,125 @@ export const ListSettingImpersonationRegistriesRequest =
3359
3900
  }),
3360
3901
  ) as unknown as Schema.Schema<ListSettingImpersonationRegistriesRequest>;
3361
3902
 
3362
- export type ListSettingImpersonationRegistriesResponse = {
3363
- id: number;
3364
- createdAt: string;
3365
- email: string;
3366
- isEmailRegex: boolean;
3367
- lastModified: string;
3368
- name: string;
3369
- comments?: string | null;
3370
- directoryId?: number | null;
3371
- directoryNodeId?: number | null;
3372
- externalDirectoryNodeId?: string | null;
3373
- provenance?: string | null;
3374
- }[];
3903
+ export interface ListSettingImpersonationRegistriesResponse {
3904
+ result: {
3905
+ id: number;
3906
+ createdAt: string;
3907
+ email: string;
3908
+ isEmailRegex: boolean;
3909
+ lastModified: string;
3910
+ name: string;
3911
+ comments?: string | null;
3912
+ directoryId?: number | null;
3913
+ directoryNodeId?: number | null;
3914
+ externalDirectoryNodeId?: string | null;
3915
+ provenance?: string | null;
3916
+ }[];
3917
+ resultInfo: {
3918
+ count?: number | null;
3919
+ page?: number | null;
3920
+ perPage?: number | null;
3921
+ totalCount?: number | null;
3922
+ };
3923
+ }
3375
3924
 
3376
3925
  export const ListSettingImpersonationRegistriesResponse =
3377
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
3378
- Schema.Struct({
3379
- id: Schema.Number,
3380
- createdAt: Schema.String,
3381
- email: Schema.String,
3382
- isEmailRegex: Schema.Boolean,
3383
- lastModified: Schema.String,
3384
- name: Schema.String,
3385
- comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3386
- directoryId: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3387
- directoryNodeId: Schema.optional(
3388
- Schema.Union([Schema.Number, Schema.Null]),
3389
- ),
3390
- externalDirectoryNodeId: Schema.optional(
3391
- Schema.Union([Schema.String, Schema.Null]),
3926
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3927
+ result: Schema.Array(
3928
+ Schema.Struct({
3929
+ id: Schema.Number,
3930
+ createdAt: Schema.String,
3931
+ email: Schema.String,
3932
+ isEmailRegex: Schema.Boolean,
3933
+ lastModified: Schema.String,
3934
+ name: Schema.String,
3935
+ comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3936
+ directoryId: Schema.optional(
3937
+ Schema.Union([Schema.Number, Schema.Null]),
3938
+ ),
3939
+ directoryNodeId: Schema.optional(
3940
+ Schema.Union([Schema.Number, Schema.Null]),
3941
+ ),
3942
+ externalDirectoryNodeId: Schema.optional(
3943
+ Schema.Union([Schema.String, Schema.Null]),
3944
+ ),
3945
+ provenance: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3946
+ }).pipe(
3947
+ Schema.encodeKeys({
3948
+ id: "id",
3949
+ createdAt: "created_at",
3950
+ email: "email",
3951
+ isEmailRegex: "is_email_regex",
3952
+ lastModified: "last_modified",
3953
+ name: "name",
3954
+ comments: "comments",
3955
+ directoryId: "directory_id",
3956
+ directoryNodeId: "directory_node_id",
3957
+ externalDirectoryNodeId: "external_directory_node_id",
3958
+ provenance: "provenance",
3959
+ }),
3392
3960
  ),
3393
- provenance: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3961
+ ),
3962
+ resultInfo: Schema.Struct({
3963
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3964
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3965
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3966
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3394
3967
  }).pipe(
3395
3968
  Schema.encodeKeys({
3396
- id: "id",
3397
- createdAt: "created_at",
3398
- email: "email",
3399
- isEmailRegex: "is_email_regex",
3400
- lastModified: "last_modified",
3401
- name: "name",
3402
- comments: "comments",
3403
- directoryId: "directory_id",
3404
- directoryNodeId: "directory_node_id",
3405
- externalDirectoryNodeId: "external_directory_node_id",
3406
- provenance: "provenance",
3969
+ count: "count",
3970
+ page: "page",
3971
+ perPage: "per_page",
3972
+ totalCount: "total_count",
3407
3973
  }),
3408
3974
  ),
3975
+ }).pipe(
3976
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
3409
3977
  ) as unknown as Schema.Schema<ListSettingImpersonationRegistriesResponse>;
3410
3978
 
3411
3979
  export type ListSettingImpersonationRegistriesError = DefaultErrors;
3412
3980
 
3413
- export const listSettingImpersonationRegistries: API.OperationMethod<
3981
+ export const listSettingImpersonationRegistries: API.PaginatedOperationMethod<
3414
3982
  ListSettingImpersonationRegistriesRequest,
3415
3983
  ListSettingImpersonationRegistriesResponse,
3416
3984
  ListSettingImpersonationRegistriesError,
3417
3985
  Credentials | HttpClient.HttpClient
3418
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3986
+ > & {
3987
+ pages: (
3988
+ input: ListSettingImpersonationRegistriesRequest,
3989
+ ) => stream.Stream<
3990
+ ListSettingImpersonationRegistriesResponse,
3991
+ ListSettingImpersonationRegistriesError,
3992
+ Credentials | HttpClient.HttpClient
3993
+ >;
3994
+ items: (input: ListSettingImpersonationRegistriesRequest) => stream.Stream<
3995
+ {
3996
+ id: number;
3997
+ createdAt: string;
3998
+ email: string;
3999
+ isEmailRegex: boolean;
4000
+ lastModified: string;
4001
+ name: string;
4002
+ comments?: string | null;
4003
+ directoryId?: number | null;
4004
+ directoryNodeId?: number | null;
4005
+ externalDirectoryNodeId?: string | null;
4006
+ provenance?: string | null;
4007
+ },
4008
+ ListSettingImpersonationRegistriesError,
4009
+ Credentials | HttpClient.HttpClient
4010
+ >;
4011
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
3419
4012
  input: ListSettingImpersonationRegistriesRequest,
3420
4013
  output: ListSettingImpersonationRegistriesResponse,
3421
4014
  errors: [],
4015
+ pagination: {
4016
+ mode: "page",
4017
+ inputToken: "page",
4018
+ outputToken: "resultInfo.page",
4019
+ items: "result",
4020
+ pageSize: "perPage",
4021
+ } as const,
3422
4022
  }));
3423
4023
 
3424
4024
  export interface CreateSettingImpersonationRegistryRequest {
@@ -3482,21 +4082,25 @@ export const CreateSettingImpersonationRegistryResponse =
3482
4082
  Schema.Union([Schema.String, Schema.Null]),
3483
4083
  ),
3484
4084
  provenance: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3485
- }).pipe(
3486
- Schema.encodeKeys({
3487
- id: "id",
3488
- createdAt: "created_at",
3489
- email: "email",
3490
- isEmailRegex: "is_email_regex",
3491
- lastModified: "last_modified",
3492
- name: "name",
3493
- comments: "comments",
3494
- directoryId: "directory_id",
3495
- directoryNodeId: "directory_node_id",
3496
- externalDirectoryNodeId: "external_directory_node_id",
3497
- provenance: "provenance",
3498
- }),
3499
- ) as unknown as Schema.Schema<CreateSettingImpersonationRegistryResponse>;
4085
+ })
4086
+ .pipe(
4087
+ Schema.encodeKeys({
4088
+ id: "id",
4089
+ createdAt: "created_at",
4090
+ email: "email",
4091
+ isEmailRegex: "is_email_regex",
4092
+ lastModified: "last_modified",
4093
+ name: "name",
4094
+ comments: "comments",
4095
+ directoryId: "directory_id",
4096
+ directoryNodeId: "directory_node_id",
4097
+ externalDirectoryNodeId: "external_directory_node_id",
4098
+ provenance: "provenance",
4099
+ }),
4100
+ )
4101
+ .pipe(
4102
+ T.ResponsePath("result"),
4103
+ ) as unknown as Schema.Schema<CreateSettingImpersonationRegistryResponse>;
3500
4104
 
3501
4105
  export type CreateSettingImpersonationRegistryError = DefaultErrors;
3502
4106
 
@@ -3574,21 +4178,25 @@ export const PatchSettingImpersonationRegistryResponse =
3574
4178
  Schema.Union([Schema.String, Schema.Null]),
3575
4179
  ),
3576
4180
  provenance: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3577
- }).pipe(
3578
- Schema.encodeKeys({
3579
- id: "id",
3580
- createdAt: "created_at",
3581
- email: "email",
3582
- isEmailRegex: "is_email_regex",
3583
- lastModified: "last_modified",
3584
- name: "name",
3585
- comments: "comments",
3586
- directoryId: "directory_id",
3587
- directoryNodeId: "directory_node_id",
3588
- externalDirectoryNodeId: "external_directory_node_id",
3589
- provenance: "provenance",
3590
- }),
3591
- ) as unknown as Schema.Schema<PatchSettingImpersonationRegistryResponse>;
4181
+ })
4182
+ .pipe(
4183
+ Schema.encodeKeys({
4184
+ id: "id",
4185
+ createdAt: "created_at",
4186
+ email: "email",
4187
+ isEmailRegex: "is_email_regex",
4188
+ lastModified: "last_modified",
4189
+ name: "name",
4190
+ comments: "comments",
4191
+ directoryId: "directory_id",
4192
+ directoryNodeId: "directory_node_id",
4193
+ externalDirectoryNodeId: "external_directory_node_id",
4194
+ provenance: "provenance",
4195
+ }),
4196
+ )
4197
+ .pipe(
4198
+ T.ResponsePath("result"),
4199
+ ) as unknown as Schema.Schema<PatchSettingImpersonationRegistryResponse>;
3592
4200
 
3593
4201
  export type PatchSettingImpersonationRegistryError = DefaultErrors;
3594
4202
 
@@ -3627,7 +4235,9 @@ export interface DeleteSettingImpersonationRegistryResponse {
3627
4235
  export const DeleteSettingImpersonationRegistryResponse =
3628
4236
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3629
4237
  id: Schema.Number,
3630
- }) as unknown as Schema.Schema<DeleteSettingImpersonationRegistryResponse>;
4238
+ }).pipe(
4239
+ T.ResponsePath("result"),
4240
+ ) as unknown as Schema.Schema<DeleteSettingImpersonationRegistryResponse>;
3631
4241
 
3632
4242
  export type DeleteSettingImpersonationRegistryError = DefaultErrors;
3633
4243
 
@@ -3687,18 +4297,22 @@ export const GetSettingTrustedDomainResponse =
3687
4297
  lastModified: Schema.String,
3688
4298
  pattern: Schema.String,
3689
4299
  comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3690
- }).pipe(
3691
- Schema.encodeKeys({
3692
- id: "id",
3693
- createdAt: "created_at",
3694
- isRecent: "is_recent",
3695
- isRegex: "is_regex",
3696
- isSimilarity: "is_similarity",
3697
- lastModified: "last_modified",
3698
- pattern: "pattern",
3699
- comments: "comments",
3700
- }),
3701
- ) as unknown as Schema.Schema<GetSettingTrustedDomainResponse>;
4300
+ })
4301
+ .pipe(
4302
+ Schema.encodeKeys({
4303
+ id: "id",
4304
+ createdAt: "created_at",
4305
+ isRecent: "is_recent",
4306
+ isRegex: "is_regex",
4307
+ isSimilarity: "is_similarity",
4308
+ lastModified: "last_modified",
4309
+ pattern: "pattern",
4310
+ comments: "comments",
4311
+ }),
4312
+ )
4313
+ .pipe(
4314
+ T.ResponsePath("result"),
4315
+ ) as unknown as Schema.Schema<GetSettingTrustedDomainResponse>;
3702
4316
 
3703
4317
  export type GetSettingTrustedDomainError = DefaultErrors;
3704
4318
 
@@ -3748,57 +4362,111 @@ export const ListSettingTrustedDomainsRequest =
3748
4362
  }).pipe(
3749
4363
  T.Http({
3750
4364
  method: "GET",
3751
- path: "/accounts/{account_id}/email-security/settings/trusted_domains",
3752
- }),
3753
- ) as unknown as Schema.Schema<ListSettingTrustedDomainsRequest>;
3754
-
3755
- export type ListSettingTrustedDomainsResponse = {
3756
- id: number;
3757
- createdAt: string;
3758
- isRecent: boolean;
3759
- isRegex: boolean;
3760
- isSimilarity: boolean;
3761
- lastModified: string;
3762
- pattern: string;
3763
- comments?: string | null;
3764
- }[];
4365
+ path: "/accounts/{account_id}/email-security/settings/trusted_domains",
4366
+ }),
4367
+ ) as unknown as Schema.Schema<ListSettingTrustedDomainsRequest>;
4368
+
4369
+ export interface ListSettingTrustedDomainsResponse {
4370
+ result: {
4371
+ id: number;
4372
+ createdAt: string;
4373
+ isRecent: boolean;
4374
+ isRegex: boolean;
4375
+ isSimilarity: boolean;
4376
+ lastModified: string;
4377
+ pattern: string;
4378
+ comments?: string | null;
4379
+ }[];
4380
+ resultInfo: {
4381
+ count?: number | null;
4382
+ page?: number | null;
4383
+ perPage?: number | null;
4384
+ totalCount?: number | null;
4385
+ };
4386
+ }
3765
4387
 
3766
4388
  export const ListSettingTrustedDomainsResponse =
3767
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
3768
- Schema.Struct({
3769
- id: Schema.Number,
3770
- createdAt: Schema.String,
3771
- isRecent: Schema.Boolean,
3772
- isRegex: Schema.Boolean,
3773
- isSimilarity: Schema.Boolean,
3774
- lastModified: Schema.String,
3775
- pattern: Schema.String,
3776
- comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4389
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4390
+ result: Schema.Array(
4391
+ Schema.Struct({
4392
+ id: Schema.Number,
4393
+ createdAt: Schema.String,
4394
+ isRecent: Schema.Boolean,
4395
+ isRegex: Schema.Boolean,
4396
+ isSimilarity: Schema.Boolean,
4397
+ lastModified: Schema.String,
4398
+ pattern: Schema.String,
4399
+ comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4400
+ }).pipe(
4401
+ Schema.encodeKeys({
4402
+ id: "id",
4403
+ createdAt: "created_at",
4404
+ isRecent: "is_recent",
4405
+ isRegex: "is_regex",
4406
+ isSimilarity: "is_similarity",
4407
+ lastModified: "last_modified",
4408
+ pattern: "pattern",
4409
+ comments: "comments",
4410
+ }),
4411
+ ),
4412
+ ),
4413
+ resultInfo: Schema.Struct({
4414
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4415
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4416
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4417
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3777
4418
  }).pipe(
3778
4419
  Schema.encodeKeys({
3779
- id: "id",
3780
- createdAt: "created_at",
3781
- isRecent: "is_recent",
3782
- isRegex: "is_regex",
3783
- isSimilarity: "is_similarity",
3784
- lastModified: "last_modified",
3785
- pattern: "pattern",
3786
- comments: "comments",
4420
+ count: "count",
4421
+ page: "page",
4422
+ perPage: "per_page",
4423
+ totalCount: "total_count",
3787
4424
  }),
3788
4425
  ),
4426
+ }).pipe(
4427
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
3789
4428
  ) as unknown as Schema.Schema<ListSettingTrustedDomainsResponse>;
3790
4429
 
3791
4430
  export type ListSettingTrustedDomainsError = DefaultErrors;
3792
4431
 
3793
- export const listSettingTrustedDomains: API.OperationMethod<
4432
+ export const listSettingTrustedDomains: API.PaginatedOperationMethod<
3794
4433
  ListSettingTrustedDomainsRequest,
3795
4434
  ListSettingTrustedDomainsResponse,
3796
4435
  ListSettingTrustedDomainsError,
3797
4436
  Credentials | HttpClient.HttpClient
3798
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4437
+ > & {
4438
+ pages: (
4439
+ input: ListSettingTrustedDomainsRequest,
4440
+ ) => stream.Stream<
4441
+ ListSettingTrustedDomainsResponse,
4442
+ ListSettingTrustedDomainsError,
4443
+ Credentials | HttpClient.HttpClient
4444
+ >;
4445
+ items: (input: ListSettingTrustedDomainsRequest) => stream.Stream<
4446
+ {
4447
+ id: number;
4448
+ createdAt: string;
4449
+ isRecent: boolean;
4450
+ isRegex: boolean;
4451
+ isSimilarity: boolean;
4452
+ lastModified: string;
4453
+ pattern: string;
4454
+ comments?: string | null;
4455
+ },
4456
+ ListSettingTrustedDomainsError,
4457
+ Credentials | HttpClient.HttpClient
4458
+ >;
4459
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
3799
4460
  input: ListSettingTrustedDomainsRequest,
3800
4461
  output: ListSettingTrustedDomainsResponse,
3801
4462
  errors: [],
4463
+ pagination: {
4464
+ mode: "page",
4465
+ inputToken: "page",
4466
+ outputToken: "resultInfo.page",
4467
+ items: "result",
4468
+ pageSize: "perPage",
4469
+ } as const,
3802
4470
  }));
3803
4471
 
3804
4472
  export interface CreateSettingTrustedDomainRequest {
@@ -3906,7 +4574,9 @@ export const CreateSettingTrustedDomainResponse =
3906
4574
  }),
3907
4575
  ),
3908
4576
  ),
3909
- ]) as unknown as Schema.Schema<CreateSettingTrustedDomainResponse>;
4577
+ ]).pipe(
4578
+ T.ResponsePath("result"),
4579
+ ) as unknown as Schema.Schema<CreateSettingTrustedDomainResponse>;
3910
4580
 
3911
4581
  export type CreateSettingTrustedDomainError = DefaultErrors;
3912
4582
 
@@ -3984,18 +4654,22 @@ export const PatchSettingTrustedDomainResponse =
3984
4654
  lastModified: Schema.String,
3985
4655
  pattern: Schema.String,
3986
4656
  comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3987
- }).pipe(
3988
- Schema.encodeKeys({
3989
- id: "id",
3990
- createdAt: "created_at",
3991
- isRecent: "is_recent",
3992
- isRegex: "is_regex",
3993
- isSimilarity: "is_similarity",
3994
- lastModified: "last_modified",
3995
- pattern: "pattern",
3996
- comments: "comments",
3997
- }),
3998
- ) as unknown as Schema.Schema<PatchSettingTrustedDomainResponse>;
4657
+ })
4658
+ .pipe(
4659
+ Schema.encodeKeys({
4660
+ id: "id",
4661
+ createdAt: "created_at",
4662
+ isRecent: "is_recent",
4663
+ isRegex: "is_regex",
4664
+ isSimilarity: "is_similarity",
4665
+ lastModified: "last_modified",
4666
+ pattern: "pattern",
4667
+ comments: "comments",
4668
+ }),
4669
+ )
4670
+ .pipe(
4671
+ T.ResponsePath("result"),
4672
+ ) as unknown as Schema.Schema<PatchSettingTrustedDomainResponse>;
3999
4673
 
4000
4674
  export type PatchSettingTrustedDomainError = DefaultErrors;
4001
4675
 
@@ -4035,7 +4709,9 @@ export interface DeleteSettingTrustedDomainResponse {
4035
4709
  export const DeleteSettingTrustedDomainResponse =
4036
4710
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4037
4711
  id: Schema.Number,
4038
- }) as unknown as Schema.Schema<DeleteSettingTrustedDomainResponse>;
4712
+ }).pipe(
4713
+ T.ResponsePath("result"),
4714
+ ) as unknown as Schema.Schema<DeleteSettingTrustedDomainResponse>;
4039
4715
 
4040
4716
  export type DeleteSettingTrustedDomainError = DefaultErrors;
4041
4717
 
@@ -4148,136 +4824,229 @@ export const ListSubmissionsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
4148
4824
  }),
4149
4825
  ) as unknown as Schema.Schema<ListSubmissionsRequest>;
4150
4826
 
4151
- export type ListSubmissionsResponse = {
4152
- requestedTs: string;
4153
- submissionId: string;
4154
- originalDisposition?:
4155
- | "MALICIOUS"
4156
- | "MALICIOUS-BEC"
4157
- | "SUSPICIOUS"
4158
- | "SPOOF"
4159
- | "SPAM"
4160
- | "BULK"
4161
- | "ENCRYPTED"
4162
- | "EXTERNAL"
4163
- | "UNKNOWN"
4164
- | "NONE"
4165
- | null;
4166
- originalEdfHash?: string | null;
4167
- outcome?: string | null;
4168
- outcomeDisposition?:
4169
- | "MALICIOUS"
4170
- | "MALICIOUS-BEC"
4171
- | "SUSPICIOUS"
4172
- | "SPOOF"
4173
- | "SPAM"
4174
- | "BULK"
4175
- | "ENCRYPTED"
4176
- | "EXTERNAL"
4177
- | "UNKNOWN"
4178
- | "NONE"
4179
- | null;
4180
- requestedBy?: string | null;
4181
- requestedDisposition?:
4182
- | "MALICIOUS"
4183
- | "MALICIOUS-BEC"
4184
- | "SUSPICIOUS"
4185
- | "SPOOF"
4186
- | "SPAM"
4187
- | "BULK"
4188
- | "ENCRYPTED"
4189
- | "EXTERNAL"
4190
- | "UNKNOWN"
4191
- | "NONE"
4192
- | null;
4193
- status?: string | null;
4194
- subject?: string | null;
4195
- type?: string | null;
4196
- }[];
4827
+ export interface ListSubmissionsResponse {
4828
+ result: {
4829
+ requestedTs: string;
4830
+ submissionId: string;
4831
+ originalDisposition?:
4832
+ | "MALICIOUS"
4833
+ | "MALICIOUS-BEC"
4834
+ | "SUSPICIOUS"
4835
+ | "SPOOF"
4836
+ | "SPAM"
4837
+ | "BULK"
4838
+ | "ENCRYPTED"
4839
+ | "EXTERNAL"
4840
+ | "UNKNOWN"
4841
+ | "NONE"
4842
+ | null;
4843
+ originalEdfHash?: string | null;
4844
+ outcome?: string | null;
4845
+ outcomeDisposition?:
4846
+ | "MALICIOUS"
4847
+ | "MALICIOUS-BEC"
4848
+ | "SUSPICIOUS"
4849
+ | "SPOOF"
4850
+ | "SPAM"
4851
+ | "BULK"
4852
+ | "ENCRYPTED"
4853
+ | "EXTERNAL"
4854
+ | "UNKNOWN"
4855
+ | "NONE"
4856
+ | null;
4857
+ requestedBy?: string | null;
4858
+ requestedDisposition?:
4859
+ | "MALICIOUS"
4860
+ | "MALICIOUS-BEC"
4861
+ | "SUSPICIOUS"
4862
+ | "SPOOF"
4863
+ | "SPAM"
4864
+ | "BULK"
4865
+ | "ENCRYPTED"
4866
+ | "EXTERNAL"
4867
+ | "UNKNOWN"
4868
+ | "NONE"
4869
+ | null;
4870
+ status?: string | null;
4871
+ subject?: string | null;
4872
+ type?: string | null;
4873
+ }[];
4874
+ resultInfo: {
4875
+ count?: number | null;
4876
+ page?: number | null;
4877
+ perPage?: number | null;
4878
+ totalCount?: number | null;
4879
+ };
4880
+ }
4197
4881
 
4198
- export const ListSubmissionsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
4199
- Schema.Struct({
4200
- requestedTs: Schema.String,
4201
- submissionId: Schema.String,
4202
- originalDisposition: Schema.optional(
4203
- Schema.Union([
4204
- Schema.Literal("MALICIOUS"),
4205
- Schema.Literal("MALICIOUS-BEC"),
4206
- Schema.Literal("SUSPICIOUS"),
4207
- Schema.Literal("SPOOF"),
4208
- Schema.Literal("SPAM"),
4209
- Schema.Literal("BULK"),
4210
- Schema.Literal("ENCRYPTED"),
4211
- Schema.Literal("EXTERNAL"),
4212
- Schema.Literal("UNKNOWN"),
4213
- Schema.Literal("NONE"),
4214
- Schema.Null,
4215
- ]),
4216
- ),
4217
- originalEdfHash: Schema.optional(
4218
- Schema.Union([Schema.String, Schema.Null]),
4219
- ),
4220
- outcome: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4221
- outcomeDisposition: Schema.optional(
4222
- Schema.Union([
4223
- Schema.Literal("MALICIOUS"),
4224
- Schema.Literal("MALICIOUS-BEC"),
4225
- Schema.Literal("SUSPICIOUS"),
4226
- Schema.Literal("SPOOF"),
4227
- Schema.Literal("SPAM"),
4228
- Schema.Literal("BULK"),
4229
- Schema.Literal("ENCRYPTED"),
4230
- Schema.Literal("EXTERNAL"),
4231
- Schema.Literal("UNKNOWN"),
4232
- Schema.Literal("NONE"),
4233
- Schema.Null,
4234
- ]),
4882
+ export const ListSubmissionsResponse =
4883
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4884
+ result: Schema.Array(
4885
+ Schema.Struct({
4886
+ requestedTs: Schema.String,
4887
+ submissionId: Schema.String,
4888
+ originalDisposition: Schema.optional(
4889
+ Schema.Union([
4890
+ Schema.Literal("MALICIOUS"),
4891
+ Schema.Literal("MALICIOUS-BEC"),
4892
+ Schema.Literal("SUSPICIOUS"),
4893
+ Schema.Literal("SPOOF"),
4894
+ Schema.Literal("SPAM"),
4895
+ Schema.Literal("BULK"),
4896
+ Schema.Literal("ENCRYPTED"),
4897
+ Schema.Literal("EXTERNAL"),
4898
+ Schema.Literal("UNKNOWN"),
4899
+ Schema.Literal("NONE"),
4900
+ Schema.Null,
4901
+ ]),
4902
+ ),
4903
+ originalEdfHash: Schema.optional(
4904
+ Schema.Union([Schema.String, Schema.Null]),
4905
+ ),
4906
+ outcome: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4907
+ outcomeDisposition: Schema.optional(
4908
+ Schema.Union([
4909
+ Schema.Literal("MALICIOUS"),
4910
+ Schema.Literal("MALICIOUS-BEC"),
4911
+ Schema.Literal("SUSPICIOUS"),
4912
+ Schema.Literal("SPOOF"),
4913
+ Schema.Literal("SPAM"),
4914
+ Schema.Literal("BULK"),
4915
+ Schema.Literal("ENCRYPTED"),
4916
+ Schema.Literal("EXTERNAL"),
4917
+ Schema.Literal("UNKNOWN"),
4918
+ Schema.Literal("NONE"),
4919
+ Schema.Null,
4920
+ ]),
4921
+ ),
4922
+ requestedBy: Schema.optional(
4923
+ Schema.Union([Schema.String, Schema.Null]),
4924
+ ),
4925
+ requestedDisposition: Schema.optional(
4926
+ Schema.Union([
4927
+ Schema.Literal("MALICIOUS"),
4928
+ Schema.Literal("MALICIOUS-BEC"),
4929
+ Schema.Literal("SUSPICIOUS"),
4930
+ Schema.Literal("SPOOF"),
4931
+ Schema.Literal("SPAM"),
4932
+ Schema.Literal("BULK"),
4933
+ Schema.Literal("ENCRYPTED"),
4934
+ Schema.Literal("EXTERNAL"),
4935
+ Schema.Literal("UNKNOWN"),
4936
+ Schema.Literal("NONE"),
4937
+ Schema.Null,
4938
+ ]),
4939
+ ),
4940
+ status: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4941
+ subject: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4942
+ type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4943
+ }).pipe(
4944
+ Schema.encodeKeys({
4945
+ requestedTs: "requested_ts",
4946
+ submissionId: "submission_id",
4947
+ originalDisposition: "original_disposition",
4948
+ originalEdfHash: "original_edf_hash",
4949
+ outcome: "outcome",
4950
+ outcomeDisposition: "outcome_disposition",
4951
+ requestedBy: "requested_by",
4952
+ requestedDisposition: "requested_disposition",
4953
+ status: "status",
4954
+ subject: "subject",
4955
+ type: "type",
4956
+ }),
4957
+ ),
4235
4958
  ),
4236
- requestedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4237
- requestedDisposition: Schema.optional(
4238
- Schema.Union([
4239
- Schema.Literal("MALICIOUS"),
4240
- Schema.Literal("MALICIOUS-BEC"),
4241
- Schema.Literal("SUSPICIOUS"),
4242
- Schema.Literal("SPOOF"),
4243
- Schema.Literal("SPAM"),
4244
- Schema.Literal("BULK"),
4245
- Schema.Literal("ENCRYPTED"),
4246
- Schema.Literal("EXTERNAL"),
4247
- Schema.Literal("UNKNOWN"),
4248
- Schema.Literal("NONE"),
4249
- Schema.Null,
4250
- ]),
4959
+ resultInfo: Schema.Struct({
4960
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4961
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4962
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4963
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4964
+ }).pipe(
4965
+ Schema.encodeKeys({
4966
+ count: "count",
4967
+ page: "page",
4968
+ perPage: "per_page",
4969
+ totalCount: "total_count",
4970
+ }),
4251
4971
  ),
4252
- status: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4253
- subject: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4254
- type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4255
4972
  }).pipe(
4256
- Schema.encodeKeys({
4257
- requestedTs: "requested_ts",
4258
- submissionId: "submission_id",
4259
- originalDisposition: "original_disposition",
4260
- originalEdfHash: "original_edf_hash",
4261
- outcome: "outcome",
4262
- outcomeDisposition: "outcome_disposition",
4263
- requestedBy: "requested_by",
4264
- requestedDisposition: "requested_disposition",
4265
- status: "status",
4266
- subject: "subject",
4267
- type: "type",
4268
- }),
4269
- ),
4270
- ) as unknown as Schema.Schema<ListSubmissionsResponse>;
4973
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
4974
+ ) as unknown as Schema.Schema<ListSubmissionsResponse>;
4271
4975
 
4272
4976
  export type ListSubmissionsError = DefaultErrors;
4273
4977
 
4274
- export const listSubmissions: API.OperationMethod<
4978
+ export const listSubmissions: API.PaginatedOperationMethod<
4275
4979
  ListSubmissionsRequest,
4276
4980
  ListSubmissionsResponse,
4277
4981
  ListSubmissionsError,
4278
4982
  Credentials | HttpClient.HttpClient
4279
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4983
+ > & {
4984
+ pages: (
4985
+ input: ListSubmissionsRequest,
4986
+ ) => stream.Stream<
4987
+ ListSubmissionsResponse,
4988
+ ListSubmissionsError,
4989
+ Credentials | HttpClient.HttpClient
4990
+ >;
4991
+ items: (input: ListSubmissionsRequest) => stream.Stream<
4992
+ {
4993
+ requestedTs: string;
4994
+ submissionId: string;
4995
+ originalDisposition?:
4996
+ | "MALICIOUS"
4997
+ | "MALICIOUS-BEC"
4998
+ | "SUSPICIOUS"
4999
+ | "SPOOF"
5000
+ | "SPAM"
5001
+ | "BULK"
5002
+ | "ENCRYPTED"
5003
+ | "EXTERNAL"
5004
+ | "UNKNOWN"
5005
+ | "NONE"
5006
+ | null;
5007
+ originalEdfHash?: string | null;
5008
+ outcome?: string | null;
5009
+ outcomeDisposition?:
5010
+ | "MALICIOUS"
5011
+ | "MALICIOUS-BEC"
5012
+ | "SUSPICIOUS"
5013
+ | "SPOOF"
5014
+ | "SPAM"
5015
+ | "BULK"
5016
+ | "ENCRYPTED"
5017
+ | "EXTERNAL"
5018
+ | "UNKNOWN"
5019
+ | "NONE"
5020
+ | null;
5021
+ requestedBy?: string | null;
5022
+ requestedDisposition?:
5023
+ | "MALICIOUS"
5024
+ | "MALICIOUS-BEC"
5025
+ | "SUSPICIOUS"
5026
+ | "SPOOF"
5027
+ | "SPAM"
5028
+ | "BULK"
5029
+ | "ENCRYPTED"
5030
+ | "EXTERNAL"
5031
+ | "UNKNOWN"
5032
+ | "NONE"
5033
+ | null;
5034
+ status?: string | null;
5035
+ subject?: string | null;
5036
+ type?: string | null;
5037
+ },
5038
+ ListSubmissionsError,
5039
+ Credentials | HttpClient.HttpClient
5040
+ >;
5041
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
4280
5042
  input: ListSubmissionsRequest,
4281
5043
  output: ListSubmissionsResponse,
4282
5044
  errors: [],
5045
+ pagination: {
5046
+ mode: "page",
5047
+ inputToken: "page",
5048
+ outputToken: "resultInfo.page",
5049
+ items: "result",
5050
+ pageSize: "perPage",
5051
+ } as const,
4283
5052
  }));