@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.
- package/README.md +12 -2
- package/lib/auth.d.ts +3 -2
- package/lib/auth.d.ts.map +1 -1
- package/lib/auth.js +4 -3
- package/lib/auth.js.map +1 -1
- package/lib/client/api.d.ts +7 -9
- package/lib/client/api.d.ts.map +1 -1
- package/lib/client/api.js +60 -13
- package/lib/client/api.js.map +1 -1
- package/lib/credentials.d.ts +58 -4
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +126 -7
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +12 -1
- package/lib/errors.d.ts.map +1 -1
- package/lib/sensitive.d.ts +5 -0
- package/lib/sensitive.d.ts.map +1 -0
- package/lib/sensitive.js +5 -0
- package/lib/sensitive.js.map +1 -0
- package/lib/services/abuse-reports.d.ts +116 -44
- package/lib/services/abuse-reports.d.ts.map +1 -1
- package/lib/services/abuse-reports.js +171 -110
- package/lib/services/abuse-reports.js.map +1 -1
- package/lib/services/accounts.d.ts +146 -62
- package/lib/services/accounts.d.ts.map +1 -1
- package/lib/services/accounts.js +208 -153
- package/lib/services/accounts.js.map +1 -1
- package/lib/services/acm.d.ts.map +1 -1
- package/lib/services/acm.js +8 -4
- package/lib/services/acm.js.map +1 -1
- package/lib/services/addressing.d.ts +200 -87
- package/lib/services/addressing.d.ts.map +1 -1
- package/lib/services/addressing.js +288 -201
- package/lib/services/addressing.js.map +1 -1
- package/lib/services/ai-gateway.d.ts +302 -121
- package/lib/services/ai-gateway.d.ts.map +1 -1
- package/lib/services/ai-gateway.js +407 -283
- package/lib/services/ai-gateway.js.map +1 -1
- package/lib/services/ai.d.ts +83 -29
- package/lib/services/ai.d.ts.map +1 -1
- package/lib/services/ai.js +95 -42
- package/lib/services/ai.js.map +1 -1
- package/lib/services/aisearch.d.ts +266 -112
- package/lib/services/aisearch.d.ts.map +1 -1
- package/lib/services/aisearch.js +510 -393
- package/lib/services/aisearch.js.map +1 -1
- package/lib/services/alerting.d.ts +249 -112
- package/lib/services/alerting.d.ts.map +1 -1
- package/lib/services/alerting.js +382 -325
- package/lib/services/alerting.js.map +1 -1
- package/lib/services/api-gateway.d.ts +458 -200
- package/lib/services/api-gateway.d.ts.map +1 -1
- package/lib/services/api-gateway.js +725 -618
- package/lib/services/api-gateway.js.map +1 -1
- package/lib/services/argo.d.ts.map +1 -1
- package/lib/services/argo.js +16 -8
- package/lib/services/argo.js.map +1 -1
- package/lib/services/billing.d.ts.map +1 -1
- package/lib/services/billing.js +4 -2
- package/lib/services/billing.js.map +1 -1
- package/lib/services/bot-management.d.ts.map +1 -1
- package/lib/services/bot-management.js +2 -2
- package/lib/services/bot-management.js.map +1 -1
- package/lib/services/botnet-feed.d.ts.map +1 -1
- package/lib/services/botnet-feed.js +10 -6
- package/lib/services/botnet-feed.js.map +1 -1
- package/lib/services/brand-protection.d.ts +8 -2
- package/lib/services/brand-protection.d.ts.map +1 -1
- package/lib/services/brand-protection.js +9 -2
- package/lib/services/brand-protection.js.map +1 -1
- package/lib/services/browser-rendering.d.ts.map +1 -1
- package/lib/services/browser-rendering.js +15 -14
- package/lib/services/browser-rendering.js.map +1 -1
- package/lib/services/cache.d.ts.map +1 -1
- package/lib/services/cache.js +49 -25
- package/lib/services/cache.js.map +1 -1
- package/lib/services/calls.d.ts +35 -14
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +35 -22
- package/lib/services/calls.js.map +1 -1
- package/lib/services/certificate-authorities.d.ts.map +1 -1
- package/lib/services/certificate-authorities.js +2 -2
- package/lib/services/certificate-authorities.js.map +1 -1
- package/lib/services/client-certificates.d.ts +57 -23
- package/lib/services/client-certificates.d.ts.map +1 -1
- package/lib/services/client-certificates.js +91 -62
- package/lib/services/client-certificates.js.map +1 -1
- package/lib/services/cloud-connector.d.ts +51 -22
- package/lib/services/cloud-connector.d.ts.map +1 -1
- package/lib/services/cloud-connector.js +57 -44
- package/lib/services/cloud-connector.js.map +1 -1
- package/lib/services/cloudforce-one.d.ts +119 -50
- package/lib/services/cloudforce-one.d.ts.map +1 -1
- package/lib/services/cloudforce-one.js +181 -124
- package/lib/services/cloudforce-one.js.map +1 -1
- package/lib/services/connectivity.d.ts +74 -31
- package/lib/services/connectivity.d.ts.map +1 -1
- package/lib/services/connectivity.js +84 -57
- package/lib/services/connectivity.js.map +1 -1
- package/lib/services/content-scanning.d.ts +40 -15
- package/lib/services/content-scanning.d.ts.map +1 -1
- package/lib/services/content-scanning.js +40 -21
- package/lib/services/content-scanning.js.map +1 -1
- package/lib/services/custom-certificates.d.ts +48 -19
- package/lib/services/custom-certificates.d.ts.map +1 -1
- package/lib/services/custom-certificates.js +80 -53
- package/lib/services/custom-certificates.js.map +1 -1
- package/lib/services/custom-hostnames.d.ts +116 -51
- package/lib/services/custom-hostnames.d.ts.map +1 -1
- package/lib/services/custom-hostnames.js +210 -170
- package/lib/services/custom-hostnames.js.map +1 -1
- package/lib/services/custom-nameservers.d.ts +32 -12
- package/lib/services/custom-nameservers.d.ts.map +1 -1
- package/lib/services/custom-nameservers.js +36 -21
- package/lib/services/custom-nameservers.js.map +1 -1
- package/lib/services/custom-pages.d.ts +26 -11
- package/lib/services/custom-pages.d.ts.map +1 -1
- package/lib/services/custom-pages.js +39 -24
- package/lib/services/custom-pages.js.map +1 -1
- package/lib/services/d1.d.ts +114 -48
- package/lib/services/d1.d.ts.map +1 -1
- package/lib/services/d1.js +150 -111
- package/lib/services/d1.js.map +1 -1
- package/lib/services/dcv-delegation.d.ts.map +1 -1
- package/lib/services/dcv-delegation.js +1 -1
- package/lib/services/dcv-delegation.js.map +1 -1
- package/lib/services/diagnostics.d.ts +59 -26
- package/lib/services/diagnostics.d.ts.map +1 -1
- package/lib/services/diagnostics.js +97 -82
- package/lib/services/diagnostics.js.map +1 -1
- package/lib/services/dns-firewall.d.ts +48 -19
- package/lib/services/dns-firewall.d.ts.map +1 -1
- package/lib/services/dns-firewall.js +75 -48
- package/lib/services/dns-firewall.js.map +1 -1
- package/lib/services/dns.d.ts +206 -87
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +335 -219
- package/lib/services/dns.js.map +1 -1
- package/lib/services/durable-objects.d.ts +44 -13
- package/lib/services/durable-objects.d.ts.map +1 -1
- package/lib/services/durable-objects.js +56 -19
- package/lib/services/durable-objects.js.map +1 -1
- package/lib/services/email-routing.d.ts +90 -34
- package/lib/services/email-routing.d.ts.map +1 -1
- package/lib/services/email-routing.js +133 -80
- package/lib/services/email-routing.js.map +1 -1
- package/lib/services/email-security.d.ts +439 -181
- package/lib/services/email-security.d.ts.map +1 -1
- package/lib/services/email-security.js +753 -557
- package/lib/services/email-security.js.map +1 -1
- package/lib/services/filters.d.ts +64 -24
- package/lib/services/filters.d.ts.map +1 -1
- package/lib/services/filters.js +61 -28
- package/lib/services/filters.js.map +1 -1
- package/lib/services/firewall.d.ts +455 -183
- package/lib/services/firewall.d.ts.map +1 -1
- package/lib/services/firewall.js +777 -574
- package/lib/services/firewall.js.map +1 -1
- package/lib/services/healthchecks.d.ts +76 -33
- package/lib/services/healthchecks.d.ts.map +1 -1
- package/lib/services/healthchecks.js +129 -100
- package/lib/services/healthchecks.js.map +1 -1
- package/lib/services/hostnames.d.ts +20 -8
- package/lib/services/hostnames.d.ts.map +1 -1
- package/lib/services/hostnames.js +32 -21
- package/lib/services/hostnames.js.map +1 -1
- package/lib/services/hyperdrive.d.ts.map +1 -1
- package/lib/services/hyperdrive.js +10 -9
- package/lib/services/hyperdrive.js.map +1 -1
- package/lib/services/iam.d.ts +162 -59
- package/lib/services/iam.d.ts.map +1 -1
- package/lib/services/iam.js +219 -119
- package/lib/services/iam.js.map +1 -1
- package/lib/services/images.d.ts +36 -12
- package/lib/services/images.d.ts.map +1 -1
- package/lib/services/images.js +59 -32
- package/lib/services/images.js.map +1 -1
- package/lib/services/intel.d.ts +159 -62
- package/lib/services/intel.d.ts.map +1 -1
- package/lib/services/intel.js +238 -151
- package/lib/services/intel.js.map +1 -1
- package/lib/services/ips.d.ts.map +1 -1
- package/lib/services/ips.js +1 -1
- package/lib/services/ips.js.map +1 -1
- package/lib/services/keyless-certificates.d.ts +36 -16
- package/lib/services/keyless-certificates.d.ts.map +1 -1
- package/lib/services/keyless-certificates.js +50 -37
- package/lib/services/keyless-certificates.js.map +1 -1
- package/lib/services/kv.d.ts +42 -12
- package/lib/services/kv.d.ts.map +1 -1
- package/lib/services/kv.js +87 -36
- package/lib/services/kv.js.map +1 -1
- package/lib/services/leaked-credential-checks.d.ts +16 -6
- package/lib/services/leaked-credential-checks.d.ts.map +1 -1
- package/lib/services/leaked-credential-checks.js +20 -12
- package/lib/services/leaked-credential-checks.js.map +1 -1
- package/lib/services/load-balancers.d.ts +373 -167
- package/lib/services/load-balancers.d.ts.map +1 -1
- package/lib/services/load-balancers.js +603 -490
- package/lib/services/load-balancers.js.map +1 -1
- package/lib/services/logpush.d.ts.map +1 -1
- package/lib/services/logpush.js +23 -15
- package/lib/services/logpush.js.map +1 -1
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +11 -7
- package/lib/services/logs.js.map +1 -1
- package/lib/services/magic-cloud-networking.d.ts +542 -249
- package/lib/services/magic-cloud-networking.d.ts.map +1 -1
- package/lib/services/magic-cloud-networking.js +890 -804
- package/lib/services/magic-cloud-networking.js.map +1 -1
- package/lib/services/magic-network-monitoring.d.ts.map +1 -1
- package/lib/services/magic-network-monitoring.js +44 -22
- package/lib/services/magic-network-monitoring.js.map +1 -1
- package/lib/services/magic-transit.d.ts +432 -196
- package/lib/services/magic-transit.d.ts.map +1 -1
- package/lib/services/magic-transit.js +730 -566
- package/lib/services/magic-transit.js.map +1 -1
- package/lib/services/managed-transforms.d.ts.map +1 -1
- package/lib/services/managed-transforms.js +8 -4
- package/lib/services/managed-transforms.js.map +1 -1
- package/lib/services/memberships.d.ts +54 -22
- package/lib/services/memberships.d.ts.map +1 -1
- package/lib/services/memberships.js +79 -53
- package/lib/services/memberships.js.map +1 -1
- package/lib/services/mtls-certificates.d.ts +41 -17
- package/lib/services/mtls-certificates.d.ts.map +1 -1
- package/lib/services/mtls-certificates.js +52 -33
- package/lib/services/mtls-certificates.js.map +1 -1
- package/lib/services/organizations.d.ts +56 -25
- package/lib/services/organizations.d.ts.map +1 -1
- package/lib/services/organizations.js +74 -59
- package/lib/services/organizations.js.map +1 -1
- package/lib/services/origin-ca-certificates.d.ts +30 -10
- package/lib/services/origin-ca-certificates.d.ts.map +1 -1
- package/lib/services/origin-ca-certificates.js +62 -35
- package/lib/services/origin-ca-certificates.js.map +1 -1
- package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -1
- package/lib/services/origin-post-quantum-encryption.js +8 -4
- package/lib/services/origin-post-quantum-encryption.js.map +1 -1
- package/lib/services/origin-tls-client-auth.d.ts +60 -25
- package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
- package/lib/services/origin-tls-client-auth.js +94 -60
- package/lib/services/origin-tls-client-auth.js.map +1 -1
- package/lib/services/page-rules.d.ts.map +1 -1
- package/lib/services/page-rules.js +18 -10
- package/lib/services/page-rules.js.map +1 -1
- package/lib/services/page-shield.d.ts +145 -66
- package/lib/services/page-shield.d.ts.map +1 -1
- package/lib/services/page-shield.js +166 -130
- package/lib/services/page-shield.js.map +1 -1
- package/lib/services/pages.d.ts +520 -225
- package/lib/services/pages.d.ts.map +1 -1
- package/lib/services/pages.js +643 -567
- package/lib/services/pages.js.map +1 -1
- package/lib/services/pipelines.d.ts +461 -206
- package/lib/services/pipelines.d.ts.map +1 -1
- package/lib/services/pipelines.js +859 -780
- package/lib/services/pipelines.js.map +1 -1
- package/lib/services/queues.d.ts +177 -80
- package/lib/services/queues.d.ts.map +1 -1
- package/lib/services/queues.js +233 -177
- package/lib/services/queues.js.map +1 -1
- package/lib/services/r2-data-catalog.d.ts.map +1 -1
- package/lib/services/r2-data-catalog.js +30 -16
- package/lib/services/r2-data-catalog.js.map +1 -1
- package/lib/services/r2.d.ts +85 -39
- package/lib/services/r2.d.ts.map +1 -1
- package/lib/services/r2.js +146 -126
- package/lib/services/r2.js.map +1 -1
- package/lib/services/radar.d.ts +152 -63
- package/lib/services/radar.d.ts.map +1 -1
- package/lib/services/radar.js +421 -360
- package/lib/services/radar.js.map +1 -1
- package/lib/services/rate-limits.d.ts +76 -31
- package/lib/services/rate-limits.d.ts.map +1 -1
- package/lib/services/rate-limits.js +106 -82
- package/lib/services/rate-limits.js.map +1 -1
- package/lib/services/realtime-kit.d.ts.map +1 -1
- package/lib/services/realtime-kit.js +34 -33
- package/lib/services/realtime-kit.js.map +1 -1
- package/lib/services/registrar.d.ts +75 -35
- package/lib/services/registrar.d.ts.map +1 -1
- package/lib/services/registrar.js +116 -103
- package/lib/services/registrar.js.map +1 -1
- package/lib/services/request-tracers.d.ts.map +1 -1
- package/lib/services/request-tracers.js +5 -2
- package/lib/services/request-tracers.js.map +1 -1
- package/lib/services/resource-sharing.d.ts +132 -50
- package/lib/services/resource-sharing.d.ts.map +1 -1
- package/lib/services/resource-sharing.js +232 -149
- package/lib/services/resource-sharing.js.map +1 -1
- package/lib/services/rules.d.ts +86 -37
- package/lib/services/rules.d.ts.map +1 -1
- package/lib/services/rules.js +122 -87
- package/lib/services/rules.js.map +1 -1
- package/lib/services/rulesets.d.ts +75 -30
- package/lib/services/rulesets.d.ts.map +1 -1
- package/lib/services/rulesets.js +274 -222
- package/lib/services/rulesets.js.map +1 -1
- package/lib/services/rum.d.ts +40 -15
- package/lib/services/rum.d.ts.map +1 -1
- package/lib/services/rum.js +78 -45
- package/lib/services/rum.js.map +1 -1
- package/lib/services/schema-validation.d.ts +47 -14
- package/lib/services/schema-validation.d.ts.map +1 -1
- package/lib/services/schema-validation.js +102 -43
- package/lib/services/schema-validation.js.map +1 -1
- package/lib/services/secrets-store.d.ts +116 -44
- package/lib/services/secrets-store.d.ts.map +1 -1
- package/lib/services/secrets-store.js +145 -78
- package/lib/services/secrets-store.js.map +1 -1
- package/lib/services/security-center.d.ts +56 -22
- package/lib/services/security-center.d.ts.map +1 -1
- package/lib/services/security-center.js +90 -64
- package/lib/services/security-center.js.map +1 -1
- package/lib/services/security-txt.d.ts.map +1 -1
- package/lib/services/security-txt.js +1 -1
- package/lib/services/security-txt.js.map +1 -1
- package/lib/services/snippets.d.ts +85 -33
- package/lib/services/snippets.d.ts.map +1 -1
- package/lib/services/snippets.js +106 -63
- package/lib/services/snippets.js.map +1 -1
- package/lib/services/spectrum.d.ts +58 -24
- package/lib/services/spectrum.d.ts.map +1 -1
- package/lib/services/spectrum.js +90 -65
- package/lib/services/spectrum.js.map +1 -1
- package/lib/services/speed.d.ts +47 -17
- package/lib/services/speed.d.ts.map +1 -1
- package/lib/services/speed.js +51 -24
- package/lib/services/speed.js.map +1 -1
- package/lib/services/ssl.d.ts +77 -35
- package/lib/services/ssl.d.ts.map +1 -1
- package/lib/services/ssl.js +146 -123
- package/lib/services/ssl.js.map +1 -1
- package/lib/services/stream.d.ts +173 -77
- package/lib/services/stream.d.ts.map +1 -1
- package/lib/services/stream.js +167 -131
- package/lib/services/stream.js.map +1 -1
- package/lib/services/token-validation.d.ts +203 -88
- package/lib/services/token-validation.d.ts.map +1 -1
- package/lib/services/token-validation.js +238 -172
- package/lib/services/token-validation.js.map +1 -1
- package/lib/services/turnstile.d.ts +38 -14
- package/lib/services/turnstile.d.ts.map +1 -1
- package/lib/services/turnstile.js +72 -41
- package/lib/services/turnstile.js.map +1 -1
- package/lib/services/url-normalization.d.ts.map +1 -1
- package/lib/services/url-normalization.js +2 -2
- package/lib/services/url-normalization.js.map +1 -1
- package/lib/services/user.d.ts +106 -40
- package/lib/services/user.d.ts.map +1 -1
- package/lib/services/user.js +156 -89
- package/lib/services/user.js.map +1 -1
- package/lib/services/vectorize.d.ts +26 -11
- package/lib/services/vectorize.d.ts.map +1 -1
- package/lib/services/vectorize.js +46 -35
- package/lib/services/vectorize.js.map +1 -1
- package/lib/services/waiting-rooms.d.ts +244 -104
- package/lib/services/waiting-rooms.d.ts.map +1 -1
- package/lib/services/waiting-rooms.js +398 -296
- package/lib/services/waiting-rooms.js.map +1 -1
- package/lib/services/web3.d.ts +26 -11
- package/lib/services/web3.d.ts.map +1 -1
- package/lib/services/web3.js +62 -43
- package/lib/services/web3.js.map +1 -1
- package/lib/services/workers-for-platforms.d.ts +323 -153
- package/lib/services/workers-for-platforms.d.ts.map +1 -1
- package/lib/services/workers-for-platforms.js +331 -288
- package/lib/services/workers-for-platforms.js.map +1 -1
- package/lib/services/workers.d.ts +601 -272
- package/lib/services/workers.d.ts.map +1 -1
- package/lib/services/workers.js +771 -633
- package/lib/services/workers.js.map +1 -1
- package/lib/services/workflows.d.ts +130 -47
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +190 -107
- package/lib/services/workflows.js.map +1 -1
- package/lib/services/zaraz.d.ts +20 -8
- package/lib/services/zaraz.d.ts.map +1 -1
- package/lib/services/zaraz.js +20 -13
- package/lib/services/zaraz.js.map +1 -1
- package/lib/services/zero-trust.d.ts +5436 -2650
- package/lib/services/zero-trust.d.ts.map +1 -1
- package/lib/services/zero-trust.js +9008 -7934
- package/lib/services/zero-trust.js.map +1 -1
- package/lib/services/zones.d.ts +188 -84
- package/lib/services/zones.d.ts.map +1 -1
- package/lib/services/zones.js +257 -196
- package/lib/services/zones.js.map +1 -1
- package/package.json +3 -2
- package/src/auth.ts +4 -3
- package/src/client/api.ts +105 -13
- package/src/credentials.ts +253 -12
- package/src/errors.ts +17 -1
- package/src/sensitive.ts +4 -0
- package/src/services/abuse-reports.ts +416 -208
- package/src/services/accounts.ts +511 -306
- package/src/services/acm.ts +22 -14
- package/src/services/addressing.ts +865 -550
- package/src/services/ai-gateway.ts +1148 -710
- package/src/services/ai.ts +265 -91
- package/src/services/aisearch.ts +1460 -995
- package/src/services/alerting.ts +1027 -671
- package/src/services/api-gateway.ts +1628 -1129
- package/src/services/argo.ts +48 -32
- package/src/services/billing.ts +47 -43
- package/src/services/bot-management.ts +6 -2
- package/src/services/botnet-feed.ts +28 -16
- package/src/services/brand-protection.ts +28 -6
- package/src/services/browser-rendering.ts +23 -10
- package/src/services/cache.ts +147 -97
- package/src/services/calls.ts +107 -42
- package/src/services/certificate-authorities.ts +6 -2
- package/src/services/client-certificates.ts +270 -173
- package/src/services/cloud-connector.ts +149 -82
- package/src/services/cloudforce-one.ts +515 -287
- package/src/services/connectivity.ts +184 -107
- package/src/services/content-scanning.ts +115 -42
- package/src/services/custom-certificates.ts +200 -121
- package/src/services/custom-hostnames.ts +583 -395
- package/src/services/custom-nameservers.ts +98 -45
- package/src/services/custom-pages.ts +109 -62
- package/src/services/d1.ts +409 -235
- package/src/services/dcv-delegation.ts +3 -1
- package/src/services/diagnostics.ts +267 -193
- package/src/services/dns-firewall.ts +197 -116
- package/src/services/dns.ts +916 -536
- package/src/services/durable-objects.ts +126 -37
- package/src/services/email-routing.ts +375 -181
- package/src/services/email-security.ts +1881 -1112
- package/src/services/filters.ts +176 -58
- package/src/services/firewall.ts +1843 -1011
- package/src/services/healthchecks.ts +374 -258
- package/src/services/hostnames.ts +83 -47
- package/src/services/hyperdrive.ts +12 -9
- package/src/services/iam.ts +560 -259
- package/src/services/images.ts +148 -54
- package/src/services/intel.ts +677 -373
- package/src/services/ips.ts +1 -1
- package/src/services/keyless-certificates.ts +139 -92
- package/src/services/kv.ts +204 -86
- package/src/services/leaked-credential-checks.ts +58 -19
- package/src/services/load-balancers.ts +1755 -1200
- package/src/services/logpush.ts +100 -72
- package/src/services/logs.ts +29 -15
- package/src/services/magic-cloud-networking.ts +2453 -1726
- package/src/services/magic-network-monitoring.ts +163 -119
- package/src/services/magic-transit.ts +2153 -1530
- package/src/services/managed-transforms.ts +20 -12
- package/src/services/memberships.ts +196 -113
- package/src/services/mtls-certificates.ts +158 -88
- package/src/services/organizations.ts +185 -121
- package/src/services/origin-ca-certificates.ts +130 -64
- package/src/services/origin-post-quantum-encryption.ts +24 -16
- package/src/services/origin-tls-client-auth.ts +282 -158
- package/src/services/page-rules.ts +64 -44
- package/src/services/page-shield.ts +492 -316
- package/src/services/pages.ts +1612 -1154
- package/src/services/pipelines.ts +1735 -1280
- package/src/services/queues.ts +617 -419
- package/src/services/r2-data-catalog.ts +82 -50
- package/src/services/r2.ts +420 -239
- package/src/services/radar.ts +1107 -423
- package/src/services/rate-limits.ts +254 -152
- package/src/services/realtime-kit.ts +34 -33
- package/src/services/registrar.ts +262 -167
- package/src/services/request-tracers.ts +7 -4
- package/src/services/resource-sharing.ts +628 -378
- package/src/services/rules.ts +292 -176
- package/src/services/rulesets.ts +643 -426
- package/src/services/rum.ts +204 -111
- package/src/services/schema-validation.ts +240 -104
- package/src/services/secrets-store.ts +356 -166
- package/src/services/security-center.ts +196 -98
- package/src/services/security-txt.ts +2 -0
- package/src/services/snippets.ts +259 -117
- package/src/services/spectrum.ts +215 -128
- package/src/services/speed.ts +144 -46
- package/src/services/ssl.ts +420 -293
- package/src/services/stream.ts +496 -244
- package/src/services/token-validation.ts +583 -343
- package/src/services/turnstile.ts +206 -124
- package/src/services/url-normalization.ts +6 -2
- package/src/services/user.ts +480 -277
- package/src/services/vectorize.ts +123 -64
- package/src/services/waiting-rooms.ts +1156 -747
- package/src/services/web3.ts +178 -113
- package/src/services/workers-for-platforms.ts +814 -539
- package/src/services/workers.ts +1888 -1227
- package/src/services/workflows.ts +453 -205
- package/src/services/zaraz.ts +61 -25
- package/src/services/zero-trust.ts +17859 -12103
- 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
|
-
)
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
)
|
|
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
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
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
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
| "
|
|
484
|
-
| "
|
|
485
|
-
| "
|
|
486
|
-
| "
|
|
487
|
-
| "
|
|
488
|
-
| "
|
|
489
|
-
| "
|
|
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
|
-
|
|
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.
|
|
567
|
-
Schema.
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
Schema.
|
|
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
|
-
|
|
638
|
+
ts: Schema.String,
|
|
639
|
+
alertId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
640
|
+
deliveryMode: Schema.optional(
|
|
580
641
|
Schema.Union([
|
|
581
|
-
Schema.
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
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
|
-
|
|
595
|
-
|
|
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
|
-
|
|
660
|
+
envelopeTo: Schema.optional(
|
|
661
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
662
|
+
),
|
|
663
|
+
finalDisposition: Schema.optional(
|
|
601
664
|
Schema.Union([
|
|
602
|
-
Schema.
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
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
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
Schema.Union([
|
|
664
|
-
|
|
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
|
-
|
|
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
|
-
|
|
753
|
+
dkim: Schema.optional(
|
|
673
754
|
Schema.Union([
|
|
674
|
-
Schema.Literal("
|
|
675
|
-
Schema.Literal("
|
|
676
|
-
Schema.Literal("
|
|
677
|
-
Schema.Literal("
|
|
678
|
-
Schema.Literal("
|
|
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
|
-
|
|
688
|
-
Schema.Union([
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
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
|
-
|
|
701
|
-
Schema.Union([
|
|
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
|
-
|
|
706
|
-
|
|
707
|
-
)
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
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
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
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.
|
|
839
|
+
export const listInvestigates: API.PaginatedOperationMethod<
|
|
806
840
|
ListInvestigatesRequest,
|
|
807
841
|
ListInvestigatesResponse,
|
|
808
842
|
ListInvestigatesError,
|
|
809
843
|
Credentials | HttpClient.HttpClient
|
|
810
|
-
>
|
|
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
|
-
})
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
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
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
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.
|
|
1085
|
-
Schema.
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
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.
|
|
1278
|
+
export const createInvestigateMove: API.PaginatedOperationMethod<
|
|
1111
1279
|
CreateInvestigateMoveRequest,
|
|
1112
1280
|
CreateInvestigateMoveResponse,
|
|
1113
1281
|
CreateInvestigateMoveError,
|
|
1114
1282
|
Credentials | HttpClient.HttpClient
|
|
1115
|
-
>
|
|
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
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
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.
|
|
1170
|
-
Schema.
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
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.
|
|
1395
|
+
export const bulkInvestigateMove: API.PaginatedOperationMethod<
|
|
1196
1396
|
BulkInvestigateMoveRequest,
|
|
1197
1397
|
BulkInvestigateMoveResponse,
|
|
1198
1398
|
BulkInvestigateMoveError,
|
|
1199
1399
|
Credentials | HttpClient.HttpClient
|
|
1200
|
-
>
|
|
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
|
-
})
|
|
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
|
-
})
|
|
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
|
-
})
|
|
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
|
|
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
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
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.
|
|
1433
|
-
Schema.
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
Schema.
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
Schema.
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
Schema.
|
|
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.
|
|
1694
|
+
export const bulkInvestigateRelease: API.PaginatedOperationMethod<
|
|
1457
1695
|
BulkInvestigateReleaseRequest,
|
|
1458
1696
|
BulkInvestigateReleaseResponse,
|
|
1459
1697
|
BulkInvestigateReleaseError,
|
|
1460
1698
|
Credentials | HttpClient.HttpClient
|
|
1461
|
-
>
|
|
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
|
-
})
|
|
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
|
-
})
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
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
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
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.
|
|
1726
|
-
Schema.
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
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
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
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.
|
|
2056
|
+
export const listSettingAllowPolicies: API.PaginatedOperationMethod<
|
|
1764
2057
|
ListSettingAllowPoliciesRequest,
|
|
1765
2058
|
ListSettingAllowPoliciesResponse,
|
|
1766
2059
|
ListSettingAllowPoliciesError,
|
|
1767
2060
|
Credentials | HttpClient.HttpClient
|
|
1768
|
-
>
|
|
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
|
-
})
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
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
|
-
})
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
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
|
-
})
|
|
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
|
-
})
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
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
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
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.
|
|
2200
|
-
Schema.
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
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
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
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.
|
|
2590
|
+
export const listSettingBlockSenders: API.PaginatedOperationMethod<
|
|
2224
2591
|
ListSettingBlockSendersRequest,
|
|
2225
2592
|
ListSettingBlockSendersResponse,
|
|
2226
2593
|
ListSettingBlockSendersError,
|
|
2227
2594
|
Credentials | HttpClient.HttpClient
|
|
2228
|
-
>
|
|
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
|
-
})
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
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
|
-
})
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
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
|
-
})
|
|
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
|
-
})
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
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
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
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.
|
|
2735
|
-
Schema.
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
Schema.
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
Schema.
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
Schema.
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
Schema.
|
|
2765
|
-
Schema.
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
Schema.
|
|
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
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
Schema.
|
|
2783
|
-
Schema.
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
Schema.Null,
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
Schema.
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
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
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
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.
|
|
3309
|
+
export const listSettingDomains: API.PaginatedOperationMethod<
|
|
2868
3310
|
ListSettingDomainsRequest,
|
|
2869
3311
|
ListSettingDomainsResponse,
|
|
2870
3312
|
ListSettingDomainsError,
|
|
2871
3313
|
Credentials | HttpClient.HttpClient
|
|
2872
|
-
>
|
|
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
|
-
})
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
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
|
-
})
|
|
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
|
|
3730
|
+
export interface BulkDeleteSettingDomainsResponse {
|
|
3731
|
+
result: { id: number }[];
|
|
3732
|
+
}
|
|
3217
3733
|
|
|
3218
3734
|
export const BulkDeleteSettingDomainsResponse =
|
|
3219
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
3220
|
-
Schema.
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
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.
|
|
3745
|
+
export const bulkDeleteSettingDomains: API.PaginatedOperationMethod<
|
|
3228
3746
|
BulkDeleteSettingDomainsRequest,
|
|
3229
3747
|
BulkDeleteSettingDomainsResponse,
|
|
3230
3748
|
BulkDeleteSettingDomainsError,
|
|
3231
3749
|
Credentials | HttpClient.HttpClient
|
|
3232
|
-
>
|
|
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
|
-
})
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
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
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
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.
|
|
3378
|
-
Schema.
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
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
|
-
|
|
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
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
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.
|
|
3981
|
+
export const listSettingImpersonationRegistries: API.PaginatedOperationMethod<
|
|
3414
3982
|
ListSettingImpersonationRegistriesRequest,
|
|
3415
3983
|
ListSettingImpersonationRegistriesResponse,
|
|
3416
3984
|
ListSettingImpersonationRegistriesError,
|
|
3417
3985
|
Credentials | HttpClient.HttpClient
|
|
3418
|
-
>
|
|
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
|
-
})
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
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
|
-
})
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
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
|
-
})
|
|
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
|
-
})
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
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
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
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.
|
|
3768
|
-
Schema.
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
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
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
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.
|
|
4432
|
+
export const listSettingTrustedDomains: API.PaginatedOperationMethod<
|
|
3794
4433
|
ListSettingTrustedDomainsRequest,
|
|
3795
4434
|
ListSettingTrustedDomainsResponse,
|
|
3796
4435
|
ListSettingTrustedDomainsError,
|
|
3797
4436
|
Credentials | HttpClient.HttpClient
|
|
3798
|
-
>
|
|
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
|
-
])
|
|
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
|
-
})
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
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
|
-
})
|
|
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
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
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 =
|
|
4199
|
-
Schema.Struct({
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
Schema.
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
Schema.
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
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
|
-
|
|
4237
|
-
|
|
4238
|
-
Schema.Union([
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
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
|
-
|
|
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.
|
|
4978
|
+
export const listSubmissions: API.PaginatedOperationMethod<
|
|
4275
4979
|
ListSubmissionsRequest,
|
|
4276
4980
|
ListSubmissionsResponse,
|
|
4277
4981
|
ListSubmissionsError,
|
|
4278
4982
|
Credentials | HttpClient.HttpClient
|
|
4279
|
-
>
|
|
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
|
}));
|