@distilled.cloud/cloudflare 0.2.5-alpha2 → 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
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* Generated from Cloudflare TypeScript SDK.
|
|
5
5
|
* DO NOT EDIT - regenerate with: bun scripts/generate.ts --service email-security
|
|
6
6
|
*/
|
|
7
|
+
import * as stream from "effect/Stream";
|
|
7
8
|
import * as Schema from "effect/Schema";
|
|
8
9
|
import * as API from "../client/api.js";
|
|
9
10
|
import * as T from "../traits.js";
|
|
@@ -159,7 +160,8 @@ export const GetInvestigateResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
159
160
|
}),
|
|
160
161
|
Schema.Null,
|
|
161
162
|
])),
|
|
162
|
-
})
|
|
163
|
+
})
|
|
164
|
+
.pipe(Schema.encodeKeys({
|
|
163
165
|
id: "id",
|
|
164
166
|
actionLog: "action_log",
|
|
165
167
|
clientRecipients: "client_recipients",
|
|
@@ -188,7 +190,8 @@ export const GetInvestigateResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
188
190
|
to: "to",
|
|
189
191
|
toName: "to_name",
|
|
190
192
|
validation: "validation",
|
|
191
|
-
}))
|
|
193
|
+
}))
|
|
194
|
+
.pipe(T.ResponsePath("result"));
|
|
192
195
|
export const getInvestigate = API.make(() => ({
|
|
193
196
|
input: GetInvestigateRequest,
|
|
194
197
|
output: GetInvestigateResponse,
|
|
@@ -224,184 +227,204 @@ export const ListInvestigatesRequest =
|
|
|
224
227
|
path: "/accounts/{account_id}/email-security/investigate",
|
|
225
228
|
}));
|
|
226
229
|
export const ListInvestigatesResponse =
|
|
227
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
Schema.
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
230
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
231
|
+
result: Schema.Array(Schema.Struct({
|
|
232
|
+
id: Schema.String,
|
|
233
|
+
actionLog: Schema.Unknown,
|
|
234
|
+
clientRecipients: Schema.Array(Schema.String),
|
|
235
|
+
detectionReasons: Schema.Array(Schema.String),
|
|
236
|
+
isPhishSubmission: Schema.Boolean,
|
|
237
|
+
isQuarantined: Schema.Boolean,
|
|
238
|
+
postfixId: Schema.String,
|
|
239
|
+
properties: Schema.Struct({
|
|
240
|
+
allowlistedPattern: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
241
|
+
allowlistedPatternType: Schema.optional(Schema.Union([
|
|
242
|
+
Schema.Literals([
|
|
243
|
+
"quarantine_release",
|
|
244
|
+
"acceptable_sender",
|
|
245
|
+
"allowed_sender",
|
|
246
|
+
"allowed_recipient",
|
|
247
|
+
"domain_similarity",
|
|
248
|
+
"domain_recency",
|
|
249
|
+
"managed_acceptable_sender",
|
|
250
|
+
"outbound_ndr",
|
|
251
|
+
]),
|
|
252
|
+
Schema.Null,
|
|
253
|
+
])),
|
|
254
|
+
blocklistedMessage: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
255
|
+
blocklistedPattern: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
256
|
+
whitelistedPatternType: Schema.optional(Schema.Union([
|
|
257
|
+
Schema.Literals([
|
|
258
|
+
"quarantine_release",
|
|
259
|
+
"acceptable_sender",
|
|
260
|
+
"allowed_sender",
|
|
261
|
+
"allowed_recipient",
|
|
262
|
+
"domain_similarity",
|
|
263
|
+
"domain_recency",
|
|
264
|
+
"managed_acceptable_sender",
|
|
265
|
+
"outbound_ndr",
|
|
266
|
+
]),
|
|
267
|
+
Schema.Null,
|
|
268
|
+
])),
|
|
269
|
+
}).pipe(Schema.encodeKeys({
|
|
270
|
+
allowlistedPattern: "allowlisted_pattern",
|
|
271
|
+
allowlistedPatternType: "allowlisted_pattern_type",
|
|
272
|
+
blocklistedMessage: "blocklisted_message",
|
|
273
|
+
blocklistedPattern: "blocklisted_pattern",
|
|
274
|
+
whitelistedPatternType: "whitelisted_pattern_type",
|
|
275
|
+
})),
|
|
276
|
+
ts: Schema.String,
|
|
277
|
+
alertId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
278
|
+
deliveryMode: Schema.optional(Schema.Union([
|
|
279
|
+
Schema.Literal("DIRECT"),
|
|
280
|
+
Schema.Literal("BCC"),
|
|
281
|
+
Schema.Literal("JOURNAL"),
|
|
282
|
+
Schema.Literal("REVIEW_SUBMISSION"),
|
|
283
|
+
Schema.Literal("DMARC_UNVERIFIED"),
|
|
284
|
+
Schema.Literal("DMARC_FAILURE_REPORT"),
|
|
285
|
+
Schema.Literal("DMARC_AGGREGATE_REPORT"),
|
|
286
|
+
Schema.Literal("THREAT_INTEL_SUBMISSION"),
|
|
287
|
+
Schema.Literal("SIMULATION_SUBMISSION"),
|
|
288
|
+
Schema.Literal("API"),
|
|
289
|
+
Schema.Literal("RETRO_SCAN"),
|
|
248
290
|
Schema.Null,
|
|
249
291
|
])),
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
292
|
+
edfHash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
293
|
+
envelopeFrom: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
294
|
+
envelopeTo: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
295
|
+
finalDisposition: Schema.optional(Schema.Union([
|
|
296
|
+
Schema.Literal("MALICIOUS"),
|
|
297
|
+
Schema.Literal("MALICIOUS-BEC"),
|
|
298
|
+
Schema.Literal("SUSPICIOUS"),
|
|
299
|
+
Schema.Literal("SPOOF"),
|
|
300
|
+
Schema.Literal("SPAM"),
|
|
301
|
+
Schema.Literal("BULK"),
|
|
302
|
+
Schema.Literal("ENCRYPTED"),
|
|
303
|
+
Schema.Literal("EXTERNAL"),
|
|
304
|
+
Schema.Literal("UNKNOWN"),
|
|
305
|
+
Schema.Literal("NONE"),
|
|
306
|
+
Schema.Null,
|
|
307
|
+
])),
|
|
308
|
+
findings: Schema.optional(Schema.Union([
|
|
309
|
+
Schema.Array(Schema.Struct({
|
|
310
|
+
attachment: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
311
|
+
detail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
312
|
+
detection: Schema.optional(Schema.Union([
|
|
313
|
+
Schema.Literal("MALICIOUS"),
|
|
314
|
+
Schema.Literal("MALICIOUS-BEC"),
|
|
315
|
+
Schema.Literal("SUSPICIOUS"),
|
|
316
|
+
Schema.Literal("SPOOF"),
|
|
317
|
+
Schema.Literal("SPAM"),
|
|
318
|
+
Schema.Literal("BULK"),
|
|
319
|
+
Schema.Literal("ENCRYPTED"),
|
|
320
|
+
Schema.Literal("EXTERNAL"),
|
|
321
|
+
Schema.Literal("UNKNOWN"),
|
|
322
|
+
Schema.Literal("NONE"),
|
|
323
|
+
Schema.Null,
|
|
324
|
+
])),
|
|
325
|
+
field: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
326
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
327
|
+
portion: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
328
|
+
reason: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
329
|
+
score: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
330
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
331
|
+
})),
|
|
332
|
+
Schema.Null,
|
|
333
|
+
])),
|
|
334
|
+
from: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
335
|
+
fromName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
336
|
+
htmltextStructureHash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
337
|
+
messageId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
338
|
+
postfixIdOutbound: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
339
|
+
replyto: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
340
|
+
sentDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
341
|
+
subject: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
342
|
+
threatCategories: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
343
|
+
to: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
344
|
+
toName: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
345
|
+
validation: Schema.optional(Schema.Union([
|
|
346
|
+
Schema.Struct({
|
|
347
|
+
comment: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
348
|
+
dkim: Schema.optional(Schema.Union([
|
|
349
|
+
Schema.Literal("pass"),
|
|
350
|
+
Schema.Literal("neutral"),
|
|
351
|
+
Schema.Literal("fail"),
|
|
352
|
+
Schema.Literal("error"),
|
|
353
|
+
Schema.Literal("none"),
|
|
354
|
+
Schema.Null,
|
|
355
|
+
])),
|
|
356
|
+
dmarc: Schema.optional(Schema.Union([
|
|
357
|
+
Schema.Literal("pass"),
|
|
358
|
+
Schema.Literal("neutral"),
|
|
359
|
+
Schema.Literal("fail"),
|
|
360
|
+
Schema.Literal("error"),
|
|
361
|
+
Schema.Literal("none"),
|
|
362
|
+
Schema.Null,
|
|
363
|
+
])),
|
|
364
|
+
spf: Schema.optional(Schema.Union([
|
|
365
|
+
Schema.Literal("pass"),
|
|
366
|
+
Schema.Literal("neutral"),
|
|
367
|
+
Schema.Literal("fail"),
|
|
368
|
+
Schema.Literal("error"),
|
|
369
|
+
Schema.Literal("none"),
|
|
370
|
+
Schema.Null,
|
|
371
|
+
])),
|
|
372
|
+
}),
|
|
263
373
|
Schema.Null,
|
|
264
374
|
])),
|
|
265
375
|
}).pipe(Schema.encodeKeys({
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
376
|
+
id: "id",
|
|
377
|
+
actionLog: "action_log",
|
|
378
|
+
clientRecipients: "client_recipients",
|
|
379
|
+
detectionReasons: "detection_reasons",
|
|
380
|
+
isPhishSubmission: "is_phish_submission",
|
|
381
|
+
isQuarantined: "is_quarantined",
|
|
382
|
+
postfixId: "postfix_id",
|
|
383
|
+
properties: "properties",
|
|
384
|
+
ts: "ts",
|
|
385
|
+
alertId: "alert_id",
|
|
386
|
+
deliveryMode: "delivery_mode",
|
|
387
|
+
edfHash: "edf_hash",
|
|
388
|
+
envelopeFrom: "envelope_from",
|
|
389
|
+
envelopeTo: "envelope_to",
|
|
390
|
+
finalDisposition: "final_disposition",
|
|
391
|
+
findings: "findings",
|
|
392
|
+
from: "from",
|
|
393
|
+
fromName: "from_name",
|
|
394
|
+
htmltextStructureHash: "htmltext_structure_hash",
|
|
395
|
+
messageId: "message_id",
|
|
396
|
+
postfixIdOutbound: "postfix_id_outbound",
|
|
397
|
+
replyto: "replyto",
|
|
398
|
+
sentDate: "sent_date",
|
|
399
|
+
subject: "subject",
|
|
400
|
+
threatCategories: "threat_categories",
|
|
401
|
+
to: "to",
|
|
402
|
+
toName: "to_name",
|
|
403
|
+
validation: "validation",
|
|
404
|
+
}))),
|
|
405
|
+
resultInfo: Schema.Struct({
|
|
406
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
407
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
408
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
409
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
410
|
+
}).pipe(Schema.encodeKeys({
|
|
411
|
+
count: "count",
|
|
412
|
+
page: "page",
|
|
413
|
+
perPage: "per_page",
|
|
414
|
+
totalCount: "total_count",
|
|
271
415
|
})),
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
deliveryMode: Schema.optional(Schema.Union([
|
|
275
|
-
Schema.Literal("DIRECT"),
|
|
276
|
-
Schema.Literal("BCC"),
|
|
277
|
-
Schema.Literal("JOURNAL"),
|
|
278
|
-
Schema.Literal("REVIEW_SUBMISSION"),
|
|
279
|
-
Schema.Literal("DMARC_UNVERIFIED"),
|
|
280
|
-
Schema.Literal("DMARC_FAILURE_REPORT"),
|
|
281
|
-
Schema.Literal("DMARC_AGGREGATE_REPORT"),
|
|
282
|
-
Schema.Literal("THREAT_INTEL_SUBMISSION"),
|
|
283
|
-
Schema.Literal("SIMULATION_SUBMISSION"),
|
|
284
|
-
Schema.Literal("API"),
|
|
285
|
-
Schema.Literal("RETRO_SCAN"),
|
|
286
|
-
Schema.Null,
|
|
287
|
-
])),
|
|
288
|
-
edfHash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
289
|
-
envelopeFrom: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
290
|
-
envelopeTo: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
291
|
-
finalDisposition: Schema.optional(Schema.Union([
|
|
292
|
-
Schema.Literal("MALICIOUS"),
|
|
293
|
-
Schema.Literal("MALICIOUS-BEC"),
|
|
294
|
-
Schema.Literal("SUSPICIOUS"),
|
|
295
|
-
Schema.Literal("SPOOF"),
|
|
296
|
-
Schema.Literal("SPAM"),
|
|
297
|
-
Schema.Literal("BULK"),
|
|
298
|
-
Schema.Literal("ENCRYPTED"),
|
|
299
|
-
Schema.Literal("EXTERNAL"),
|
|
300
|
-
Schema.Literal("UNKNOWN"),
|
|
301
|
-
Schema.Literal("NONE"),
|
|
302
|
-
Schema.Null,
|
|
303
|
-
])),
|
|
304
|
-
findings: Schema.optional(Schema.Union([
|
|
305
|
-
Schema.Array(Schema.Struct({
|
|
306
|
-
attachment: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
307
|
-
detail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
308
|
-
detection: Schema.optional(Schema.Union([
|
|
309
|
-
Schema.Literal("MALICIOUS"),
|
|
310
|
-
Schema.Literal("MALICIOUS-BEC"),
|
|
311
|
-
Schema.Literal("SUSPICIOUS"),
|
|
312
|
-
Schema.Literal("SPOOF"),
|
|
313
|
-
Schema.Literal("SPAM"),
|
|
314
|
-
Schema.Literal("BULK"),
|
|
315
|
-
Schema.Literal("ENCRYPTED"),
|
|
316
|
-
Schema.Literal("EXTERNAL"),
|
|
317
|
-
Schema.Literal("UNKNOWN"),
|
|
318
|
-
Schema.Literal("NONE"),
|
|
319
|
-
Schema.Null,
|
|
320
|
-
])),
|
|
321
|
-
field: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
322
|
-
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
323
|
-
portion: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
324
|
-
reason: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
325
|
-
score: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
326
|
-
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
327
|
-
})),
|
|
328
|
-
Schema.Null,
|
|
329
|
-
])),
|
|
330
|
-
from: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
331
|
-
fromName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
332
|
-
htmltextStructureHash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
333
|
-
messageId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
334
|
-
postfixIdOutbound: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
335
|
-
replyto: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
336
|
-
sentDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
337
|
-
subject: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
338
|
-
threatCategories: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
339
|
-
to: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
340
|
-
toName: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
341
|
-
validation: Schema.optional(Schema.Union([
|
|
342
|
-
Schema.Struct({
|
|
343
|
-
comment: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
344
|
-
dkim: Schema.optional(Schema.Union([
|
|
345
|
-
Schema.Literal("pass"),
|
|
346
|
-
Schema.Literal("neutral"),
|
|
347
|
-
Schema.Literal("fail"),
|
|
348
|
-
Schema.Literal("error"),
|
|
349
|
-
Schema.Literal("none"),
|
|
350
|
-
Schema.Null,
|
|
351
|
-
])),
|
|
352
|
-
dmarc: Schema.optional(Schema.Union([
|
|
353
|
-
Schema.Literal("pass"),
|
|
354
|
-
Schema.Literal("neutral"),
|
|
355
|
-
Schema.Literal("fail"),
|
|
356
|
-
Schema.Literal("error"),
|
|
357
|
-
Schema.Literal("none"),
|
|
358
|
-
Schema.Null,
|
|
359
|
-
])),
|
|
360
|
-
spf: Schema.optional(Schema.Union([
|
|
361
|
-
Schema.Literal("pass"),
|
|
362
|
-
Schema.Literal("neutral"),
|
|
363
|
-
Schema.Literal("fail"),
|
|
364
|
-
Schema.Literal("error"),
|
|
365
|
-
Schema.Literal("none"),
|
|
366
|
-
Schema.Null,
|
|
367
|
-
])),
|
|
368
|
-
}),
|
|
369
|
-
Schema.Null,
|
|
370
|
-
])),
|
|
371
|
-
}).pipe(Schema.encodeKeys({
|
|
372
|
-
id: "id",
|
|
373
|
-
actionLog: "action_log",
|
|
374
|
-
clientRecipients: "client_recipients",
|
|
375
|
-
detectionReasons: "detection_reasons",
|
|
376
|
-
isPhishSubmission: "is_phish_submission",
|
|
377
|
-
isQuarantined: "is_quarantined",
|
|
378
|
-
postfixId: "postfix_id",
|
|
379
|
-
properties: "properties",
|
|
380
|
-
ts: "ts",
|
|
381
|
-
alertId: "alert_id",
|
|
382
|
-
deliveryMode: "delivery_mode",
|
|
383
|
-
edfHash: "edf_hash",
|
|
384
|
-
envelopeFrom: "envelope_from",
|
|
385
|
-
envelopeTo: "envelope_to",
|
|
386
|
-
finalDisposition: "final_disposition",
|
|
387
|
-
findings: "findings",
|
|
388
|
-
from: "from",
|
|
389
|
-
fromName: "from_name",
|
|
390
|
-
htmltextStructureHash: "htmltext_structure_hash",
|
|
391
|
-
messageId: "message_id",
|
|
392
|
-
postfixIdOutbound: "postfix_id_outbound",
|
|
393
|
-
replyto: "replyto",
|
|
394
|
-
sentDate: "sent_date",
|
|
395
|
-
subject: "subject",
|
|
396
|
-
threatCategories: "threat_categories",
|
|
397
|
-
to: "to",
|
|
398
|
-
toName: "to_name",
|
|
399
|
-
validation: "validation",
|
|
400
|
-
})));
|
|
401
|
-
export const listInvestigates = API.make(() => ({
|
|
416
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
417
|
+
export const listInvestigates = API.makePaginated(() => ({
|
|
402
418
|
input: ListInvestigatesRequest,
|
|
403
419
|
output: ListInvestigatesResponse,
|
|
404
420
|
errors: [],
|
|
421
|
+
pagination: {
|
|
422
|
+
mode: "page",
|
|
423
|
+
inputToken: "page",
|
|
424
|
+
outputToken: "resultInfo.page",
|
|
425
|
+
items: "result",
|
|
426
|
+
pageSize: "perPage",
|
|
427
|
+
},
|
|
405
428
|
}));
|
|
406
429
|
export const GetInvestigateDetectionRequest =
|
|
407
430
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -505,7 +528,8 @@ export const GetInvestigateDetectionResponse =
|
|
|
505
528
|
Schema.Literal("NONE"),
|
|
506
529
|
Schema.Null,
|
|
507
530
|
])),
|
|
508
|
-
})
|
|
531
|
+
})
|
|
532
|
+
.pipe(Schema.encodeKeys({
|
|
509
533
|
action: "action",
|
|
510
534
|
attachments: "attachments",
|
|
511
535
|
headers: "headers",
|
|
@@ -514,7 +538,8 @@ export const GetInvestigateDetectionResponse =
|
|
|
514
538
|
threatCategories: "threat_categories",
|
|
515
539
|
validation: "validation",
|
|
516
540
|
finalDisposition: "final_disposition",
|
|
517
|
-
}))
|
|
541
|
+
}))
|
|
542
|
+
.pipe(T.ResponsePath("result"));
|
|
518
543
|
export const getInvestigateDetection = API.make(() => ({
|
|
519
544
|
input: GetInvestigateDetectionRequest,
|
|
520
545
|
output: GetInvestigateDetectionResponse,
|
|
@@ -536,29 +561,35 @@ export const CreateInvestigateMoveRequest =
|
|
|
536
561
|
path: "/accounts/{account_id}/email-security/investigate/{postfixId}/move",
|
|
537
562
|
}));
|
|
538
563
|
export const CreateInvestigateMoveResponse =
|
|
539
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
564
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
565
|
+
result: Schema.Array(Schema.Struct({
|
|
566
|
+
completedTimestamp: Schema.String,
|
|
567
|
+
itemCount: Schema.Number,
|
|
568
|
+
success: Schema.Boolean,
|
|
569
|
+
destination: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
570
|
+
messageId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
571
|
+
operation: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
572
|
+
recipient: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
573
|
+
status: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
574
|
+
}).pipe(Schema.encodeKeys({
|
|
575
|
+
completedTimestamp: "completed_timestamp",
|
|
576
|
+
itemCount: "item_count",
|
|
577
|
+
success: "success",
|
|
578
|
+
destination: "destination",
|
|
579
|
+
messageId: "message_id",
|
|
580
|
+
operation: "operation",
|
|
581
|
+
recipient: "recipient",
|
|
582
|
+
status: "status",
|
|
583
|
+
}))),
|
|
584
|
+
});
|
|
585
|
+
export const createInvestigateMove = API.makePaginated(() => ({
|
|
559
586
|
input: CreateInvestigateMoveRequest,
|
|
560
587
|
output: CreateInvestigateMoveResponse,
|
|
561
588
|
errors: [],
|
|
589
|
+
pagination: {
|
|
590
|
+
mode: "single",
|
|
591
|
+
items: "result",
|
|
592
|
+
},
|
|
562
593
|
}));
|
|
563
594
|
export const BulkInvestigateMoveRequest =
|
|
564
595
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -579,29 +610,35 @@ export const BulkInvestigateMoveRequest =
|
|
|
579
610
|
path: "/accounts/{account_id}/email-security/investigate/move",
|
|
580
611
|
}));
|
|
581
612
|
export const BulkInvestigateMoveResponse =
|
|
582
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
613
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
614
|
+
result: Schema.Array(Schema.Struct({
|
|
615
|
+
completedTimestamp: Schema.String,
|
|
616
|
+
itemCount: Schema.Number,
|
|
617
|
+
success: Schema.Boolean,
|
|
618
|
+
destination: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
619
|
+
messageId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
620
|
+
operation: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
621
|
+
recipient: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
622
|
+
status: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
623
|
+
}).pipe(Schema.encodeKeys({
|
|
624
|
+
completedTimestamp: "completed_timestamp",
|
|
625
|
+
itemCount: "item_count",
|
|
626
|
+
success: "success",
|
|
627
|
+
destination: "destination",
|
|
628
|
+
messageId: "message_id",
|
|
629
|
+
operation: "operation",
|
|
630
|
+
recipient: "recipient",
|
|
631
|
+
status: "status",
|
|
632
|
+
}))),
|
|
633
|
+
});
|
|
634
|
+
export const bulkInvestigateMove = API.makePaginated(() => ({
|
|
602
635
|
input: BulkInvestigateMoveRequest,
|
|
603
636
|
output: BulkInvestigateMoveResponse,
|
|
604
637
|
errors: [],
|
|
638
|
+
pagination: {
|
|
639
|
+
mode: "single",
|
|
640
|
+
items: "result",
|
|
641
|
+
},
|
|
605
642
|
}));
|
|
606
643
|
export const GetInvestigatePreviewRequest =
|
|
607
644
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -614,7 +651,7 @@ export const GetInvestigatePreviewRequest =
|
|
|
614
651
|
export const GetInvestigatePreviewResponse =
|
|
615
652
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
616
653
|
screenshot: Schema.String,
|
|
617
|
-
});
|
|
654
|
+
}).pipe(T.ResponsePath("result"));
|
|
618
655
|
export const getInvestigatePreview = API.make(() => ({
|
|
619
656
|
input: GetInvestigatePreviewRequest,
|
|
620
657
|
output: GetInvestigatePreviewResponse,
|
|
@@ -631,7 +668,7 @@ export const CreateInvestigatePreviewRequest =
|
|
|
631
668
|
export const CreateInvestigatePreviewResponse =
|
|
632
669
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
633
670
|
screenshot: Schema.String,
|
|
634
|
-
});
|
|
671
|
+
}).pipe(T.ResponsePath("result"));
|
|
635
672
|
export const createInvestigatePreview = API.make(() => ({
|
|
636
673
|
input: CreateInvestigatePreviewRequest,
|
|
637
674
|
output: CreateInvestigatePreviewResponse,
|
|
@@ -648,7 +685,7 @@ export const GetInvestigateRawRequest =
|
|
|
648
685
|
export const GetInvestigateRawResponse =
|
|
649
686
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
650
687
|
raw: Schema.String,
|
|
651
|
-
});
|
|
688
|
+
}).pipe(T.ResponsePath("result"));
|
|
652
689
|
export const getInvestigateRaw = API.make(() => ({
|
|
653
690
|
input: GetInvestigateRawRequest,
|
|
654
691
|
output: GetInvestigateRawResponse,
|
|
@@ -677,7 +714,7 @@ export const CreateInvestigateReclassifyRequest =
|
|
|
677
714
|
path: "/accounts/{account_id}/email-security/investigate/{postfixId}/reclassify",
|
|
678
715
|
}));
|
|
679
716
|
export const CreateInvestigateReclassifyResponse =
|
|
680
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
|
|
717
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(T.ResponsePath("result"));
|
|
681
718
|
export const createInvestigateReclassify = API.make(() => ({
|
|
682
719
|
input: CreateInvestigateReclassifyRequest,
|
|
683
720
|
output: CreateInvestigateReclassifyResponse,
|
|
@@ -692,21 +729,27 @@ export const BulkInvestigateReleaseRequest =
|
|
|
692
729
|
path: "/accounts/{account_id}/email-security/investigate/release",
|
|
693
730
|
}));
|
|
694
731
|
export const BulkInvestigateReleaseResponse =
|
|
695
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
732
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
733
|
+
result: Schema.Array(Schema.Struct({
|
|
734
|
+
postfixId: Schema.String,
|
|
735
|
+
delivered: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
736
|
+
failed: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
737
|
+
undelivered: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
738
|
+
}).pipe(Schema.encodeKeys({
|
|
739
|
+
postfixId: "postfix_id",
|
|
740
|
+
delivered: "delivered",
|
|
741
|
+
failed: "failed",
|
|
742
|
+
undelivered: "undelivered",
|
|
743
|
+
}))),
|
|
744
|
+
});
|
|
745
|
+
export const bulkInvestigateRelease = API.makePaginated(() => ({
|
|
707
746
|
input: BulkInvestigateReleaseRequest,
|
|
708
747
|
output: BulkInvestigateReleaseResponse,
|
|
709
748
|
errors: [],
|
|
749
|
+
pagination: {
|
|
750
|
+
mode: "single",
|
|
751
|
+
items: "result",
|
|
752
|
+
},
|
|
710
753
|
}));
|
|
711
754
|
export const GetInvestigateTraceRequest =
|
|
712
755
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -740,7 +783,7 @@ export const GetInvestigateTraceResponse =
|
|
|
740
783
|
])),
|
|
741
784
|
pending: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
742
785
|
}),
|
|
743
|
-
});
|
|
786
|
+
}).pipe(T.ResponsePath("result"));
|
|
744
787
|
export const getInvestigateTrace = API.make(() => ({
|
|
745
788
|
input: GetInvestigateTraceRequest,
|
|
746
789
|
output: GetInvestigateTraceResponse,
|
|
@@ -770,7 +813,8 @@ export const GetSettingAllowPolicyResponse =
|
|
|
770
813
|
isRecipient: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
771
814
|
isSender: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
772
815
|
isSpoof: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
773
|
-
})
|
|
816
|
+
})
|
|
817
|
+
.pipe(Schema.encodeKeys({
|
|
774
818
|
id: "id",
|
|
775
819
|
createdAt: "created_at",
|
|
776
820
|
isAcceptableSender: "is_acceptable_sender",
|
|
@@ -785,7 +829,8 @@ export const GetSettingAllowPolicyResponse =
|
|
|
785
829
|
isRecipient: "is_recipient",
|
|
786
830
|
isSender: "is_sender",
|
|
787
831
|
isSpoof: "is_spoof",
|
|
788
|
-
}))
|
|
832
|
+
}))
|
|
833
|
+
.pipe(T.ResponsePath("result"));
|
|
789
834
|
export const getSettingAllowPolicy = API.make(() => ({
|
|
790
835
|
input: GetSettingAllowPolicyRequest,
|
|
791
836
|
output: GetSettingAllowPolicyResponse,
|
|
@@ -811,41 +856,61 @@ export const ListSettingAllowPoliciesRequest =
|
|
|
811
856
|
path: "/accounts/{account_id}/email-security/settings/allow_policies",
|
|
812
857
|
}));
|
|
813
858
|
export const ListSettingAllowPoliciesResponse =
|
|
814
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
859
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
860
|
+
result: Schema.Array(Schema.Struct({
|
|
861
|
+
id: Schema.Number,
|
|
862
|
+
createdAt: Schema.String,
|
|
863
|
+
isAcceptableSender: Schema.Boolean,
|
|
864
|
+
isExemptRecipient: Schema.Boolean,
|
|
865
|
+
isRegex: Schema.Boolean,
|
|
866
|
+
isTrustedSender: Schema.Boolean,
|
|
867
|
+
lastModified: Schema.String,
|
|
868
|
+
pattern: Schema.String,
|
|
869
|
+
patternType: Schema.Literals(["EMAIL", "DOMAIN", "IP", "UNKNOWN"]),
|
|
870
|
+
verifySender: Schema.Boolean,
|
|
871
|
+
comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
872
|
+
isRecipient: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
873
|
+
isSender: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
874
|
+
isSpoof: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
875
|
+
}).pipe(Schema.encodeKeys({
|
|
876
|
+
id: "id",
|
|
877
|
+
createdAt: "created_at",
|
|
878
|
+
isAcceptableSender: "is_acceptable_sender",
|
|
879
|
+
isExemptRecipient: "is_exempt_recipient",
|
|
880
|
+
isRegex: "is_regex",
|
|
881
|
+
isTrustedSender: "is_trusted_sender",
|
|
882
|
+
lastModified: "last_modified",
|
|
883
|
+
pattern: "pattern",
|
|
884
|
+
patternType: "pattern_type",
|
|
885
|
+
verifySender: "verify_sender",
|
|
886
|
+
comments: "comments",
|
|
887
|
+
isRecipient: "is_recipient",
|
|
888
|
+
isSender: "is_sender",
|
|
889
|
+
isSpoof: "is_spoof",
|
|
890
|
+
}))),
|
|
891
|
+
resultInfo: Schema.Struct({
|
|
892
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
893
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
894
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
895
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
896
|
+
}).pipe(Schema.encodeKeys({
|
|
897
|
+
count: "count",
|
|
898
|
+
page: "page",
|
|
899
|
+
perPage: "per_page",
|
|
900
|
+
totalCount: "total_count",
|
|
901
|
+
})),
|
|
902
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
903
|
+
export const listSettingAllowPolicies = API.makePaginated(() => ({
|
|
846
904
|
input: ListSettingAllowPoliciesRequest,
|
|
847
905
|
output: ListSettingAllowPoliciesResponse,
|
|
848
906
|
errors: [],
|
|
907
|
+
pagination: {
|
|
908
|
+
mode: "page",
|
|
909
|
+
inputToken: "page",
|
|
910
|
+
outputToken: "resultInfo.page",
|
|
911
|
+
items: "result",
|
|
912
|
+
pageSize: "perPage",
|
|
913
|
+
},
|
|
849
914
|
}));
|
|
850
915
|
export const CreateSettingAllowPolicyRequest =
|
|
851
916
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -893,7 +958,8 @@ export const CreateSettingAllowPolicyResponse =
|
|
|
893
958
|
isRecipient: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
894
959
|
isSender: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
895
960
|
isSpoof: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
896
|
-
})
|
|
961
|
+
})
|
|
962
|
+
.pipe(Schema.encodeKeys({
|
|
897
963
|
id: "id",
|
|
898
964
|
createdAt: "created_at",
|
|
899
965
|
isAcceptableSender: "is_acceptable_sender",
|
|
@@ -908,7 +974,8 @@ export const CreateSettingAllowPolicyResponse =
|
|
|
908
974
|
isRecipient: "is_recipient",
|
|
909
975
|
isSender: "is_sender",
|
|
910
976
|
isSpoof: "is_spoof",
|
|
911
|
-
}))
|
|
977
|
+
}))
|
|
978
|
+
.pipe(T.ResponsePath("result"));
|
|
912
979
|
export const createSettingAllowPolicy = API.make(() => ({
|
|
913
980
|
input: CreateSettingAllowPolicyRequest,
|
|
914
981
|
output: CreateSettingAllowPolicyResponse,
|
|
@@ -961,7 +1028,8 @@ export const PatchSettingAllowPolicyResponse =
|
|
|
961
1028
|
isRecipient: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
962
1029
|
isSender: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
963
1030
|
isSpoof: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
964
|
-
})
|
|
1031
|
+
})
|
|
1032
|
+
.pipe(Schema.encodeKeys({
|
|
965
1033
|
id: "id",
|
|
966
1034
|
createdAt: "created_at",
|
|
967
1035
|
isAcceptableSender: "is_acceptable_sender",
|
|
@@ -976,7 +1044,8 @@ export const PatchSettingAllowPolicyResponse =
|
|
|
976
1044
|
isRecipient: "is_recipient",
|
|
977
1045
|
isSender: "is_sender",
|
|
978
1046
|
isSpoof: "is_spoof",
|
|
979
|
-
}))
|
|
1047
|
+
}))
|
|
1048
|
+
.pipe(T.ResponsePath("result"));
|
|
980
1049
|
export const patchSettingAllowPolicy = API.make(() => ({
|
|
981
1050
|
input: PatchSettingAllowPolicyRequest,
|
|
982
1051
|
output: PatchSettingAllowPolicyResponse,
|
|
@@ -993,7 +1062,7 @@ export const DeleteSettingAllowPolicyRequest =
|
|
|
993
1062
|
export const DeleteSettingAllowPolicyResponse =
|
|
994
1063
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
995
1064
|
id: Schema.Number,
|
|
996
|
-
});
|
|
1065
|
+
}).pipe(T.ResponsePath("result"));
|
|
997
1066
|
export const deleteSettingAllowPolicy = API.make(() => ({
|
|
998
1067
|
input: DeleteSettingAllowPolicyRequest,
|
|
999
1068
|
output: DeleteSettingAllowPolicyResponse,
|
|
@@ -1016,7 +1085,8 @@ export const GetSettingBlockSenderResponse =
|
|
|
1016
1085
|
pattern: Schema.String,
|
|
1017
1086
|
patternType: Schema.Literals(["EMAIL", "DOMAIN", "IP", "UNKNOWN"]),
|
|
1018
1087
|
comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1019
|
-
})
|
|
1088
|
+
})
|
|
1089
|
+
.pipe(Schema.encodeKeys({
|
|
1020
1090
|
id: "id",
|
|
1021
1091
|
createdAt: "created_at",
|
|
1022
1092
|
isRegex: "is_regex",
|
|
@@ -1024,7 +1094,8 @@ export const GetSettingBlockSenderResponse =
|
|
|
1024
1094
|
pattern: "pattern",
|
|
1025
1095
|
patternType: "pattern_type",
|
|
1026
1096
|
comments: "comments",
|
|
1027
|
-
}))
|
|
1097
|
+
}))
|
|
1098
|
+
.pipe(T.ResponsePath("result"));
|
|
1028
1099
|
export const getSettingBlockSender = API.make(() => ({
|
|
1029
1100
|
input: GetSettingBlockSenderRequest,
|
|
1030
1101
|
output: GetSettingBlockSenderResponse,
|
|
@@ -1043,27 +1114,47 @@ export const ListSettingBlockSendersRequest =
|
|
|
1043
1114
|
path: "/accounts/{account_id}/email-security/settings/block_senders",
|
|
1044
1115
|
}));
|
|
1045
1116
|
export const ListSettingBlockSendersResponse =
|
|
1046
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1117
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1118
|
+
result: Schema.Array(Schema.Struct({
|
|
1119
|
+
id: Schema.Number,
|
|
1120
|
+
createdAt: Schema.String,
|
|
1121
|
+
isRegex: Schema.Boolean,
|
|
1122
|
+
lastModified: Schema.String,
|
|
1123
|
+
pattern: Schema.String,
|
|
1124
|
+
patternType: Schema.Literals(["EMAIL", "DOMAIN", "IP", "UNKNOWN"]),
|
|
1125
|
+
comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1126
|
+
}).pipe(Schema.encodeKeys({
|
|
1127
|
+
id: "id",
|
|
1128
|
+
createdAt: "created_at",
|
|
1129
|
+
isRegex: "is_regex",
|
|
1130
|
+
lastModified: "last_modified",
|
|
1131
|
+
pattern: "pattern",
|
|
1132
|
+
patternType: "pattern_type",
|
|
1133
|
+
comments: "comments",
|
|
1134
|
+
}))),
|
|
1135
|
+
resultInfo: Schema.Struct({
|
|
1136
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1137
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1138
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1139
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1140
|
+
}).pipe(Schema.encodeKeys({
|
|
1141
|
+
count: "count",
|
|
1142
|
+
page: "page",
|
|
1143
|
+
perPage: "per_page",
|
|
1144
|
+
totalCount: "total_count",
|
|
1145
|
+
})),
|
|
1146
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
1147
|
+
export const listSettingBlockSenders = API.makePaginated(() => ({
|
|
1064
1148
|
input: ListSettingBlockSendersRequest,
|
|
1065
1149
|
output: ListSettingBlockSendersResponse,
|
|
1066
1150
|
errors: [],
|
|
1151
|
+
pagination: {
|
|
1152
|
+
mode: "page",
|
|
1153
|
+
inputToken: "page",
|
|
1154
|
+
outputToken: "resultInfo.page",
|
|
1155
|
+
items: "result",
|
|
1156
|
+
pageSize: "perPage",
|
|
1157
|
+
},
|
|
1067
1158
|
}));
|
|
1068
1159
|
export const CreateSettingBlockSenderRequest =
|
|
1069
1160
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -1090,7 +1181,8 @@ export const CreateSettingBlockSenderResponse =
|
|
|
1090
1181
|
pattern: Schema.String,
|
|
1091
1182
|
patternType: Schema.Literals(["EMAIL", "DOMAIN", "IP", "UNKNOWN"]),
|
|
1092
1183
|
comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1093
|
-
})
|
|
1184
|
+
})
|
|
1185
|
+
.pipe(Schema.encodeKeys({
|
|
1094
1186
|
id: "id",
|
|
1095
1187
|
createdAt: "created_at",
|
|
1096
1188
|
isRegex: "is_regex",
|
|
@@ -1098,7 +1190,8 @@ export const CreateSettingBlockSenderResponse =
|
|
|
1098
1190
|
pattern: "pattern",
|
|
1099
1191
|
patternType: "pattern_type",
|
|
1100
1192
|
comments: "comments",
|
|
1101
|
-
}))
|
|
1193
|
+
}))
|
|
1194
|
+
.pipe(T.ResponsePath("result"));
|
|
1102
1195
|
export const createSettingBlockSender = API.make(() => ({
|
|
1103
1196
|
input: CreateSettingBlockSenderRequest,
|
|
1104
1197
|
output: CreateSettingBlockSenderResponse,
|
|
@@ -1136,7 +1229,8 @@ export const PatchSettingBlockSenderResponse =
|
|
|
1136
1229
|
pattern: Schema.String,
|
|
1137
1230
|
patternType: Schema.Literals(["EMAIL", "DOMAIN", "IP", "UNKNOWN"]),
|
|
1138
1231
|
comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1139
|
-
})
|
|
1232
|
+
})
|
|
1233
|
+
.pipe(Schema.encodeKeys({
|
|
1140
1234
|
id: "id",
|
|
1141
1235
|
createdAt: "created_at",
|
|
1142
1236
|
isRegex: "is_regex",
|
|
@@ -1144,7 +1238,8 @@ export const PatchSettingBlockSenderResponse =
|
|
|
1144
1238
|
pattern: "pattern",
|
|
1145
1239
|
patternType: "pattern_type",
|
|
1146
1240
|
comments: "comments",
|
|
1147
|
-
}))
|
|
1241
|
+
}))
|
|
1242
|
+
.pipe(T.ResponsePath("result"));
|
|
1148
1243
|
export const patchSettingBlockSender = API.make(() => ({
|
|
1149
1244
|
input: PatchSettingBlockSenderRequest,
|
|
1150
1245
|
output: PatchSettingBlockSenderResponse,
|
|
@@ -1152,147 +1247,31 @@ export const patchSettingBlockSender = API.make(() => ({
|
|
|
1152
1247
|
}));
|
|
1153
1248
|
export const DeleteSettingBlockSenderRequest =
|
|
1154
1249
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1155
|
-
patternId: Schema.Number.pipe(T.HttpPath("patternId")),
|
|
1156
|
-
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1157
|
-
}).pipe(T.Http({
|
|
1158
|
-
method: "DELETE",
|
|
1159
|
-
path: "/accounts/{account_id}/email-security/settings/block_senders/{patternId}",
|
|
1160
|
-
}));
|
|
1161
|
-
export const DeleteSettingBlockSenderResponse =
|
|
1162
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1163
|
-
id: Schema.Number,
|
|
1164
|
-
});
|
|
1165
|
-
export const deleteSettingBlockSender = API.make(() => ({
|
|
1166
|
-
input: DeleteSettingBlockSenderRequest,
|
|
1167
|
-
output: DeleteSettingBlockSenderResponse,
|
|
1168
|
-
errors: [],
|
|
1169
|
-
}));
|
|
1170
|
-
export const GetSettingDomainRequest =
|
|
1171
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1172
|
-
domainId: Schema.Number.pipe(T.HttpPath("domainId")),
|
|
1173
|
-
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1174
|
-
}).pipe(T.Http({
|
|
1175
|
-
method: "GET",
|
|
1176
|
-
path: "/accounts/{account_id}/email-security/settings/domains/{domainId}",
|
|
1177
|
-
}));
|
|
1178
|
-
export const GetSettingDomainResponse =
|
|
1179
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1180
|
-
id: Schema.Number,
|
|
1181
|
-
allowedDeliveryModes: Schema.Array(Schema.Literals(["DIRECT", "BCC", "JOURNAL", "API", "RETRO_SCAN"])),
|
|
1182
|
-
createdAt: Schema.String,
|
|
1183
|
-
domain: Schema.String,
|
|
1184
|
-
dropDispositions: Schema.Array(Schema.Literals([
|
|
1185
|
-
"MALICIOUS",
|
|
1186
|
-
"MALICIOUS-BEC",
|
|
1187
|
-
"SUSPICIOUS",
|
|
1188
|
-
"SPOOF",
|
|
1189
|
-
"SPAM",
|
|
1190
|
-
"BULK",
|
|
1191
|
-
"ENCRYPTED",
|
|
1192
|
-
"EXTERNAL",
|
|
1193
|
-
"UNKNOWN",
|
|
1194
|
-
"NONE",
|
|
1195
|
-
])),
|
|
1196
|
-
ipRestrictions: Schema.Array(Schema.String),
|
|
1197
|
-
lastModified: Schema.String,
|
|
1198
|
-
lookbackHops: Schema.Number,
|
|
1199
|
-
regions: Schema.Array(Schema.Literals(["GLOBAL", "AU", "DE", "IN", "US"])),
|
|
1200
|
-
transport: Schema.String,
|
|
1201
|
-
authorization: Schema.optional(Schema.Union([
|
|
1202
|
-
Schema.Struct({
|
|
1203
|
-
authorized: Schema.Boolean,
|
|
1204
|
-
timestamp: Schema.String,
|
|
1205
|
-
statusMessage: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1206
|
-
}).pipe(Schema.encodeKeys({
|
|
1207
|
-
authorized: "authorized",
|
|
1208
|
-
timestamp: "timestamp",
|
|
1209
|
-
statusMessage: "status_message",
|
|
1210
|
-
})),
|
|
1211
|
-
Schema.Null,
|
|
1212
|
-
])),
|
|
1213
|
-
dmarcStatus: Schema.optional(Schema.Union([
|
|
1214
|
-
Schema.Literal("none"),
|
|
1215
|
-
Schema.Literal("good"),
|
|
1216
|
-
Schema.Literal("invalid"),
|
|
1217
|
-
Schema.Null,
|
|
1218
|
-
])),
|
|
1219
|
-
emailsProcessed: Schema.optional(Schema.Union([
|
|
1220
|
-
Schema.Struct({
|
|
1221
|
-
timestamp: Schema.String,
|
|
1222
|
-
totalEmailsProcessed: Schema.Number,
|
|
1223
|
-
totalEmailsProcessedPrevious: Schema.Number,
|
|
1224
|
-
}).pipe(Schema.encodeKeys({
|
|
1225
|
-
timestamp: "timestamp",
|
|
1226
|
-
totalEmailsProcessed: "total_emails_processed",
|
|
1227
|
-
totalEmailsProcessedPrevious: "total_emails_processed_previous",
|
|
1228
|
-
})),
|
|
1229
|
-
Schema.Null,
|
|
1230
|
-
])),
|
|
1231
|
-
folder: Schema.optional(Schema.Union([
|
|
1232
|
-
Schema.Literal("AllItems"),
|
|
1233
|
-
Schema.Literal("Inbox"),
|
|
1234
|
-
Schema.Null,
|
|
1235
|
-
])),
|
|
1236
|
-
inboxProvider: Schema.optional(Schema.Union([
|
|
1237
|
-
Schema.Literal("Microsoft"),
|
|
1238
|
-
Schema.Literal("Google"),
|
|
1239
|
-
Schema.Null,
|
|
1240
|
-
])),
|
|
1241
|
-
integrationId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1242
|
-
o365TenantId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1243
|
-
requireTlsInbound: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1244
|
-
requireTlsOutbound: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1245
|
-
spfStatus: Schema.optional(Schema.Union([
|
|
1246
|
-
Schema.Literal("none"),
|
|
1247
|
-
Schema.Literal("good"),
|
|
1248
|
-
Schema.Literal("neutral"),
|
|
1249
|
-
Schema.Literal("open"),
|
|
1250
|
-
Schema.Literal("invalid"),
|
|
1251
|
-
Schema.Null,
|
|
1252
|
-
])),
|
|
1253
|
-
}).pipe(Schema.encodeKeys({
|
|
1254
|
-
id: "id",
|
|
1255
|
-
allowedDeliveryModes: "allowed_delivery_modes",
|
|
1256
|
-
createdAt: "created_at",
|
|
1257
|
-
domain: "domain",
|
|
1258
|
-
dropDispositions: "drop_dispositions",
|
|
1259
|
-
ipRestrictions: "ip_restrictions",
|
|
1260
|
-
lastModified: "last_modified",
|
|
1261
|
-
lookbackHops: "lookback_hops",
|
|
1262
|
-
regions: "regions",
|
|
1263
|
-
transport: "transport",
|
|
1264
|
-
authorization: "authorization",
|
|
1265
|
-
dmarcStatus: "dmarc_status",
|
|
1266
|
-
emailsProcessed: "emails_processed",
|
|
1267
|
-
folder: "folder",
|
|
1268
|
-
inboxProvider: "inbox_provider",
|
|
1269
|
-
integrationId: "integration_id",
|
|
1270
|
-
o365TenantId: "o365_tenant_id",
|
|
1271
|
-
requireTlsInbound: "require_tls_inbound",
|
|
1272
|
-
requireTlsOutbound: "require_tls_outbound",
|
|
1273
|
-
spfStatus: "spf_status",
|
|
1250
|
+
patternId: Schema.Number.pipe(T.HttpPath("patternId")),
|
|
1251
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1252
|
+
}).pipe(T.Http({
|
|
1253
|
+
method: "DELETE",
|
|
1254
|
+
path: "/accounts/{account_id}/email-security/settings/block_senders/{patternId}",
|
|
1274
1255
|
}));
|
|
1275
|
-
export const
|
|
1276
|
-
|
|
1277
|
-
|
|
1256
|
+
export const DeleteSettingBlockSenderResponse =
|
|
1257
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1258
|
+
id: Schema.Number,
|
|
1259
|
+
}).pipe(T.ResponsePath("result"));
|
|
1260
|
+
export const deleteSettingBlockSender = API.make(() => ({
|
|
1261
|
+
input: DeleteSettingBlockSenderRequest,
|
|
1262
|
+
output: DeleteSettingBlockSenderResponse,
|
|
1278
1263
|
errors: [],
|
|
1279
1264
|
}));
|
|
1280
|
-
export const
|
|
1265
|
+
export const GetSettingDomainRequest =
|
|
1281
1266
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1267
|
+
domainId: Schema.Number.pipe(T.HttpPath("domainId")),
|
|
1282
1268
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1283
|
-
activeDeliveryMode: Schema.optional(Schema.Literals(["DIRECT", "BCC", "JOURNAL", "API", "RETRO_SCAN"])).pipe(T.HttpQuery("active_delivery_mode")),
|
|
1284
|
-
allowedDeliveryMode: Schema.optional(Schema.Literals(["DIRECT", "BCC", "JOURNAL", "API", "RETRO_SCAN"])).pipe(T.HttpQuery("allowed_delivery_mode")),
|
|
1285
|
-
direction: Schema.optional(Schema.Literals(["asc", "desc"])).pipe(T.HttpQuery("direction")),
|
|
1286
|
-
domain: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("domain")),
|
|
1287
|
-
integrationId: Schema.optional(Schema.String).pipe(T.HttpQuery("integration_id")),
|
|
1288
|
-
order: Schema.optional(Schema.Literals(["domain", "created_at"])).pipe(T.HttpQuery("order")),
|
|
1289
|
-
search: Schema.optional(Schema.String).pipe(T.HttpQuery("search")),
|
|
1290
1269
|
}).pipe(T.Http({
|
|
1291
1270
|
method: "GET",
|
|
1292
|
-
path: "/accounts/{account_id}/email-security/settings/domains",
|
|
1271
|
+
path: "/accounts/{account_id}/email-security/settings/domains/{domainId}",
|
|
1293
1272
|
}));
|
|
1294
|
-
export const
|
|
1295
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
1273
|
+
export const GetSettingDomainResponse =
|
|
1274
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1296
1275
|
id: Schema.Number,
|
|
1297
1276
|
allowedDeliveryModes: Schema.Array(Schema.Literals(["DIRECT", "BCC", "JOURNAL", "API", "RETRO_SCAN"])),
|
|
1298
1277
|
createdAt: Schema.String,
|
|
@@ -1366,7 +1345,8 @@ export const ListSettingDomainsResponse =
|
|
|
1366
1345
|
Schema.Literal("invalid"),
|
|
1367
1346
|
Schema.Null,
|
|
1368
1347
|
])),
|
|
1369
|
-
})
|
|
1348
|
+
})
|
|
1349
|
+
.pipe(Schema.encodeKeys({
|
|
1370
1350
|
id: "id",
|
|
1371
1351
|
allowedDeliveryModes: "allowed_delivery_modes",
|
|
1372
1352
|
createdAt: "created_at",
|
|
@@ -1387,11 +1367,148 @@ export const ListSettingDomainsResponse =
|
|
|
1387
1367
|
requireTlsInbound: "require_tls_inbound",
|
|
1388
1368
|
requireTlsOutbound: "require_tls_outbound",
|
|
1389
1369
|
spfStatus: "spf_status",
|
|
1390
|
-
}))
|
|
1391
|
-
|
|
1370
|
+
}))
|
|
1371
|
+
.pipe(T.ResponsePath("result"));
|
|
1372
|
+
export const getSettingDomain = API.make(() => ({
|
|
1373
|
+
input: GetSettingDomainRequest,
|
|
1374
|
+
output: GetSettingDomainResponse,
|
|
1375
|
+
errors: [],
|
|
1376
|
+
}));
|
|
1377
|
+
export const ListSettingDomainsRequest =
|
|
1378
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1379
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1380
|
+
activeDeliveryMode: Schema.optional(Schema.Literals(["DIRECT", "BCC", "JOURNAL", "API", "RETRO_SCAN"])).pipe(T.HttpQuery("active_delivery_mode")),
|
|
1381
|
+
allowedDeliveryMode: Schema.optional(Schema.Literals(["DIRECT", "BCC", "JOURNAL", "API", "RETRO_SCAN"])).pipe(T.HttpQuery("allowed_delivery_mode")),
|
|
1382
|
+
direction: Schema.optional(Schema.Literals(["asc", "desc"])).pipe(T.HttpQuery("direction")),
|
|
1383
|
+
domain: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("domain")),
|
|
1384
|
+
integrationId: Schema.optional(Schema.String).pipe(T.HttpQuery("integration_id")),
|
|
1385
|
+
order: Schema.optional(Schema.Literals(["domain", "created_at"])).pipe(T.HttpQuery("order")),
|
|
1386
|
+
search: Schema.optional(Schema.String).pipe(T.HttpQuery("search")),
|
|
1387
|
+
}).pipe(T.Http({
|
|
1388
|
+
method: "GET",
|
|
1389
|
+
path: "/accounts/{account_id}/email-security/settings/domains",
|
|
1390
|
+
}));
|
|
1391
|
+
export const ListSettingDomainsResponse =
|
|
1392
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1393
|
+
result: Schema.Array(Schema.Struct({
|
|
1394
|
+
id: Schema.Number,
|
|
1395
|
+
allowedDeliveryModes: Schema.Array(Schema.Literals(["DIRECT", "BCC", "JOURNAL", "API", "RETRO_SCAN"])),
|
|
1396
|
+
createdAt: Schema.String,
|
|
1397
|
+
domain: Schema.String,
|
|
1398
|
+
dropDispositions: Schema.Array(Schema.Literals([
|
|
1399
|
+
"MALICIOUS",
|
|
1400
|
+
"MALICIOUS-BEC",
|
|
1401
|
+
"SUSPICIOUS",
|
|
1402
|
+
"SPOOF",
|
|
1403
|
+
"SPAM",
|
|
1404
|
+
"BULK",
|
|
1405
|
+
"ENCRYPTED",
|
|
1406
|
+
"EXTERNAL",
|
|
1407
|
+
"UNKNOWN",
|
|
1408
|
+
"NONE",
|
|
1409
|
+
])),
|
|
1410
|
+
ipRestrictions: Schema.Array(Schema.String),
|
|
1411
|
+
lastModified: Schema.String,
|
|
1412
|
+
lookbackHops: Schema.Number,
|
|
1413
|
+
regions: Schema.Array(Schema.Literals(["GLOBAL", "AU", "DE", "IN", "US"])),
|
|
1414
|
+
transport: Schema.String,
|
|
1415
|
+
authorization: Schema.optional(Schema.Union([
|
|
1416
|
+
Schema.Struct({
|
|
1417
|
+
authorized: Schema.Boolean,
|
|
1418
|
+
timestamp: Schema.String,
|
|
1419
|
+
statusMessage: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1420
|
+
}).pipe(Schema.encodeKeys({
|
|
1421
|
+
authorized: "authorized",
|
|
1422
|
+
timestamp: "timestamp",
|
|
1423
|
+
statusMessage: "status_message",
|
|
1424
|
+
})),
|
|
1425
|
+
Schema.Null,
|
|
1426
|
+
])),
|
|
1427
|
+
dmarcStatus: Schema.optional(Schema.Union([
|
|
1428
|
+
Schema.Literal("none"),
|
|
1429
|
+
Schema.Literal("good"),
|
|
1430
|
+
Schema.Literal("invalid"),
|
|
1431
|
+
Schema.Null,
|
|
1432
|
+
])),
|
|
1433
|
+
emailsProcessed: Schema.optional(Schema.Union([
|
|
1434
|
+
Schema.Struct({
|
|
1435
|
+
timestamp: Schema.String,
|
|
1436
|
+
totalEmailsProcessed: Schema.Number,
|
|
1437
|
+
totalEmailsProcessedPrevious: Schema.Number,
|
|
1438
|
+
}).pipe(Schema.encodeKeys({
|
|
1439
|
+
timestamp: "timestamp",
|
|
1440
|
+
totalEmailsProcessed: "total_emails_processed",
|
|
1441
|
+
totalEmailsProcessedPrevious: "total_emails_processed_previous",
|
|
1442
|
+
})),
|
|
1443
|
+
Schema.Null,
|
|
1444
|
+
])),
|
|
1445
|
+
folder: Schema.optional(Schema.Union([
|
|
1446
|
+
Schema.Literal("AllItems"),
|
|
1447
|
+
Schema.Literal("Inbox"),
|
|
1448
|
+
Schema.Null,
|
|
1449
|
+
])),
|
|
1450
|
+
inboxProvider: Schema.optional(Schema.Union([
|
|
1451
|
+
Schema.Literal("Microsoft"),
|
|
1452
|
+
Schema.Literal("Google"),
|
|
1453
|
+
Schema.Null,
|
|
1454
|
+
])),
|
|
1455
|
+
integrationId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1456
|
+
o365TenantId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1457
|
+
requireTlsInbound: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1458
|
+
requireTlsOutbound: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1459
|
+
spfStatus: Schema.optional(Schema.Union([
|
|
1460
|
+
Schema.Literal("none"),
|
|
1461
|
+
Schema.Literal("good"),
|
|
1462
|
+
Schema.Literal("neutral"),
|
|
1463
|
+
Schema.Literal("open"),
|
|
1464
|
+
Schema.Literal("invalid"),
|
|
1465
|
+
Schema.Null,
|
|
1466
|
+
])),
|
|
1467
|
+
}).pipe(Schema.encodeKeys({
|
|
1468
|
+
id: "id",
|
|
1469
|
+
allowedDeliveryModes: "allowed_delivery_modes",
|
|
1470
|
+
createdAt: "created_at",
|
|
1471
|
+
domain: "domain",
|
|
1472
|
+
dropDispositions: "drop_dispositions",
|
|
1473
|
+
ipRestrictions: "ip_restrictions",
|
|
1474
|
+
lastModified: "last_modified",
|
|
1475
|
+
lookbackHops: "lookback_hops",
|
|
1476
|
+
regions: "regions",
|
|
1477
|
+
transport: "transport",
|
|
1478
|
+
authorization: "authorization",
|
|
1479
|
+
dmarcStatus: "dmarc_status",
|
|
1480
|
+
emailsProcessed: "emails_processed",
|
|
1481
|
+
folder: "folder",
|
|
1482
|
+
inboxProvider: "inbox_provider",
|
|
1483
|
+
integrationId: "integration_id",
|
|
1484
|
+
o365TenantId: "o365_tenant_id",
|
|
1485
|
+
requireTlsInbound: "require_tls_inbound",
|
|
1486
|
+
requireTlsOutbound: "require_tls_outbound",
|
|
1487
|
+
spfStatus: "spf_status",
|
|
1488
|
+
}))),
|
|
1489
|
+
resultInfo: Schema.Struct({
|
|
1490
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1491
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1492
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1493
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1494
|
+
}).pipe(Schema.encodeKeys({
|
|
1495
|
+
count: "count",
|
|
1496
|
+
page: "page",
|
|
1497
|
+
perPage: "per_page",
|
|
1498
|
+
totalCount: "total_count",
|
|
1499
|
+
})),
|
|
1500
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
1501
|
+
export const listSettingDomains = API.makePaginated(() => ({
|
|
1392
1502
|
input: ListSettingDomainsRequest,
|
|
1393
1503
|
output: ListSettingDomainsResponse,
|
|
1394
1504
|
errors: [],
|
|
1505
|
+
pagination: {
|
|
1506
|
+
mode: "page",
|
|
1507
|
+
inputToken: "page",
|
|
1508
|
+
outputToken: "resultInfo.page",
|
|
1509
|
+
items: "result",
|
|
1510
|
+
pageSize: "perPage",
|
|
1511
|
+
},
|
|
1395
1512
|
}));
|
|
1396
1513
|
export const PatchSettingDomainRequest =
|
|
1397
1514
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -1510,7 +1627,8 @@ export const PatchSettingDomainResponse =
|
|
|
1510
1627
|
Schema.Literal("invalid"),
|
|
1511
1628
|
Schema.Null,
|
|
1512
1629
|
])),
|
|
1513
|
-
})
|
|
1630
|
+
})
|
|
1631
|
+
.pipe(Schema.encodeKeys({
|
|
1514
1632
|
id: "id",
|
|
1515
1633
|
allowedDeliveryModes: "allowed_delivery_modes",
|
|
1516
1634
|
createdAt: "created_at",
|
|
@@ -1531,7 +1649,8 @@ export const PatchSettingDomainResponse =
|
|
|
1531
1649
|
requireTlsInbound: "require_tls_inbound",
|
|
1532
1650
|
requireTlsOutbound: "require_tls_outbound",
|
|
1533
1651
|
spfStatus: "spf_status",
|
|
1534
|
-
}))
|
|
1652
|
+
}))
|
|
1653
|
+
.pipe(T.ResponsePath("result"));
|
|
1535
1654
|
export const patchSettingDomain = API.make(() => ({
|
|
1536
1655
|
input: PatchSettingDomainRequest,
|
|
1537
1656
|
output: PatchSettingDomainResponse,
|
|
@@ -1548,7 +1667,7 @@ export const DeleteSettingDomainRequest =
|
|
|
1548
1667
|
export const DeleteSettingDomainResponse =
|
|
1549
1668
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1550
1669
|
id: Schema.Number,
|
|
1551
|
-
});
|
|
1670
|
+
}).pipe(T.ResponsePath("result"));
|
|
1552
1671
|
export const deleteSettingDomain = API.make(() => ({
|
|
1553
1672
|
input: DeleteSettingDomainRequest,
|
|
1554
1673
|
output: DeleteSettingDomainResponse,
|
|
@@ -1562,13 +1681,19 @@ export const BulkDeleteSettingDomainsRequest =
|
|
|
1562
1681
|
path: "/accounts/{account_id}/email-security/settings/domains",
|
|
1563
1682
|
}));
|
|
1564
1683
|
export const BulkDeleteSettingDomainsResponse =
|
|
1565
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1684
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1685
|
+
result: Schema.Array(Schema.Struct({
|
|
1686
|
+
id: Schema.Number,
|
|
1687
|
+
})),
|
|
1688
|
+
});
|
|
1689
|
+
export const bulkDeleteSettingDomains = API.makePaginated(() => ({
|
|
1569
1690
|
input: BulkDeleteSettingDomainsRequest,
|
|
1570
1691
|
output: BulkDeleteSettingDomainsResponse,
|
|
1571
1692
|
errors: [],
|
|
1693
|
+
pagination: {
|
|
1694
|
+
mode: "single",
|
|
1695
|
+
items: "result",
|
|
1696
|
+
},
|
|
1572
1697
|
}));
|
|
1573
1698
|
export const GetSettingImpersonationRegistryRequest =
|
|
1574
1699
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -1591,7 +1716,8 @@ export const GetSettingImpersonationRegistryResponse =
|
|
|
1591
1716
|
directoryNodeId: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1592
1717
|
externalDirectoryNodeId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1593
1718
|
provenance: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1594
|
-
})
|
|
1719
|
+
})
|
|
1720
|
+
.pipe(Schema.encodeKeys({
|
|
1595
1721
|
id: "id",
|
|
1596
1722
|
createdAt: "created_at",
|
|
1597
1723
|
email: "email",
|
|
@@ -1603,7 +1729,8 @@ export const GetSettingImpersonationRegistryResponse =
|
|
|
1603
1729
|
directoryNodeId: "directory_node_id",
|
|
1604
1730
|
externalDirectoryNodeId: "external_directory_node_id",
|
|
1605
1731
|
provenance: "provenance",
|
|
1606
|
-
}))
|
|
1732
|
+
}))
|
|
1733
|
+
.pipe(T.ResponsePath("result"));
|
|
1607
1734
|
export const getSettingImpersonationRegistry = API.make(() => ({
|
|
1608
1735
|
input: GetSettingImpersonationRegistryRequest,
|
|
1609
1736
|
output: GetSettingImpersonationRegistryResponse,
|
|
@@ -1626,35 +1753,55 @@ export const ListSettingImpersonationRegistriesRequest =
|
|
|
1626
1753
|
path: "/accounts/{account_id}/email-security/settings/impersonation_registry",
|
|
1627
1754
|
}));
|
|
1628
1755
|
export const ListSettingImpersonationRegistriesResponse =
|
|
1629
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1756
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1757
|
+
result: Schema.Array(Schema.Struct({
|
|
1758
|
+
id: Schema.Number,
|
|
1759
|
+
createdAt: Schema.String,
|
|
1760
|
+
email: Schema.String,
|
|
1761
|
+
isEmailRegex: Schema.Boolean,
|
|
1762
|
+
lastModified: Schema.String,
|
|
1763
|
+
name: Schema.String,
|
|
1764
|
+
comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1765
|
+
directoryId: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1766
|
+
directoryNodeId: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1767
|
+
externalDirectoryNodeId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1768
|
+
provenance: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1769
|
+
}).pipe(Schema.encodeKeys({
|
|
1770
|
+
id: "id",
|
|
1771
|
+
createdAt: "created_at",
|
|
1772
|
+
email: "email",
|
|
1773
|
+
isEmailRegex: "is_email_regex",
|
|
1774
|
+
lastModified: "last_modified",
|
|
1775
|
+
name: "name",
|
|
1776
|
+
comments: "comments",
|
|
1777
|
+
directoryId: "directory_id",
|
|
1778
|
+
directoryNodeId: "directory_node_id",
|
|
1779
|
+
externalDirectoryNodeId: "external_directory_node_id",
|
|
1780
|
+
provenance: "provenance",
|
|
1781
|
+
}))),
|
|
1782
|
+
resultInfo: Schema.Struct({
|
|
1783
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1784
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1785
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1786
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1787
|
+
}).pipe(Schema.encodeKeys({
|
|
1788
|
+
count: "count",
|
|
1789
|
+
page: "page",
|
|
1790
|
+
perPage: "per_page",
|
|
1791
|
+
totalCount: "total_count",
|
|
1792
|
+
})),
|
|
1793
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
1794
|
+
export const listSettingImpersonationRegistries = API.makePaginated(() => ({
|
|
1655
1795
|
input: ListSettingImpersonationRegistriesRequest,
|
|
1656
1796
|
output: ListSettingImpersonationRegistriesResponse,
|
|
1657
1797
|
errors: [],
|
|
1798
|
+
pagination: {
|
|
1799
|
+
mode: "page",
|
|
1800
|
+
inputToken: "page",
|
|
1801
|
+
outputToken: "resultInfo.page",
|
|
1802
|
+
items: "result",
|
|
1803
|
+
pageSize: "perPage",
|
|
1804
|
+
},
|
|
1658
1805
|
}));
|
|
1659
1806
|
export const CreateSettingImpersonationRegistryRequest =
|
|
1660
1807
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -1683,7 +1830,8 @@ export const CreateSettingImpersonationRegistryResponse =
|
|
|
1683
1830
|
directoryNodeId: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1684
1831
|
externalDirectoryNodeId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1685
1832
|
provenance: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1686
|
-
})
|
|
1833
|
+
})
|
|
1834
|
+
.pipe(Schema.encodeKeys({
|
|
1687
1835
|
id: "id",
|
|
1688
1836
|
createdAt: "created_at",
|
|
1689
1837
|
email: "email",
|
|
@@ -1695,7 +1843,8 @@ export const CreateSettingImpersonationRegistryResponse =
|
|
|
1695
1843
|
directoryNodeId: "directory_node_id",
|
|
1696
1844
|
externalDirectoryNodeId: "external_directory_node_id",
|
|
1697
1845
|
provenance: "provenance",
|
|
1698
|
-
}))
|
|
1846
|
+
}))
|
|
1847
|
+
.pipe(T.ResponsePath("result"));
|
|
1699
1848
|
export const createSettingImpersonationRegistry = API.make(() => ({
|
|
1700
1849
|
input: CreateSettingImpersonationRegistryRequest,
|
|
1701
1850
|
output: CreateSettingImpersonationRegistryResponse,
|
|
@@ -1729,7 +1878,8 @@ export const PatchSettingImpersonationRegistryResponse =
|
|
|
1729
1878
|
directoryNodeId: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1730
1879
|
externalDirectoryNodeId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1731
1880
|
provenance: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1732
|
-
})
|
|
1881
|
+
})
|
|
1882
|
+
.pipe(Schema.encodeKeys({
|
|
1733
1883
|
id: "id",
|
|
1734
1884
|
createdAt: "created_at",
|
|
1735
1885
|
email: "email",
|
|
@@ -1741,7 +1891,8 @@ export const PatchSettingImpersonationRegistryResponse =
|
|
|
1741
1891
|
directoryNodeId: "directory_node_id",
|
|
1742
1892
|
externalDirectoryNodeId: "external_directory_node_id",
|
|
1743
1893
|
provenance: "provenance",
|
|
1744
|
-
}))
|
|
1894
|
+
}))
|
|
1895
|
+
.pipe(T.ResponsePath("result"));
|
|
1745
1896
|
export const patchSettingImpersonationRegistry = API.make(() => ({
|
|
1746
1897
|
input: PatchSettingImpersonationRegistryRequest,
|
|
1747
1898
|
output: PatchSettingImpersonationRegistryResponse,
|
|
@@ -1758,7 +1909,7 @@ export const DeleteSettingImpersonationRegistryRequest =
|
|
|
1758
1909
|
export const DeleteSettingImpersonationRegistryResponse =
|
|
1759
1910
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1760
1911
|
id: Schema.Number,
|
|
1761
|
-
});
|
|
1912
|
+
}).pipe(T.ResponsePath("result"));
|
|
1762
1913
|
export const deleteSettingImpersonationRegistry = API.make(() => ({
|
|
1763
1914
|
input: DeleteSettingImpersonationRegistryRequest,
|
|
1764
1915
|
output: DeleteSettingImpersonationRegistryResponse,
|
|
@@ -1782,7 +1933,8 @@ export const GetSettingTrustedDomainResponse =
|
|
|
1782
1933
|
lastModified: Schema.String,
|
|
1783
1934
|
pattern: Schema.String,
|
|
1784
1935
|
comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1785
|
-
})
|
|
1936
|
+
})
|
|
1937
|
+
.pipe(Schema.encodeKeys({
|
|
1786
1938
|
id: "id",
|
|
1787
1939
|
createdAt: "created_at",
|
|
1788
1940
|
isRecent: "is_recent",
|
|
@@ -1791,7 +1943,8 @@ export const GetSettingTrustedDomainResponse =
|
|
|
1791
1943
|
lastModified: "last_modified",
|
|
1792
1944
|
pattern: "pattern",
|
|
1793
1945
|
comments: "comments",
|
|
1794
|
-
}))
|
|
1946
|
+
}))
|
|
1947
|
+
.pipe(T.ResponsePath("result"));
|
|
1795
1948
|
export const getSettingTrustedDomain = API.make(() => ({
|
|
1796
1949
|
input: GetSettingTrustedDomainRequest,
|
|
1797
1950
|
output: GetSettingTrustedDomainResponse,
|
|
@@ -1811,29 +1964,49 @@ export const ListSettingTrustedDomainsRequest =
|
|
|
1811
1964
|
path: "/accounts/{account_id}/email-security/settings/trusted_domains",
|
|
1812
1965
|
}));
|
|
1813
1966
|
export const ListSettingTrustedDomainsResponse =
|
|
1814
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1967
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1968
|
+
result: Schema.Array(Schema.Struct({
|
|
1969
|
+
id: Schema.Number,
|
|
1970
|
+
createdAt: Schema.String,
|
|
1971
|
+
isRecent: Schema.Boolean,
|
|
1972
|
+
isRegex: Schema.Boolean,
|
|
1973
|
+
isSimilarity: Schema.Boolean,
|
|
1974
|
+
lastModified: Schema.String,
|
|
1975
|
+
pattern: Schema.String,
|
|
1976
|
+
comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1977
|
+
}).pipe(Schema.encodeKeys({
|
|
1978
|
+
id: "id",
|
|
1979
|
+
createdAt: "created_at",
|
|
1980
|
+
isRecent: "is_recent",
|
|
1981
|
+
isRegex: "is_regex",
|
|
1982
|
+
isSimilarity: "is_similarity",
|
|
1983
|
+
lastModified: "last_modified",
|
|
1984
|
+
pattern: "pattern",
|
|
1985
|
+
comments: "comments",
|
|
1986
|
+
}))),
|
|
1987
|
+
resultInfo: Schema.Struct({
|
|
1988
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1989
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1990
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1991
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1992
|
+
}).pipe(Schema.encodeKeys({
|
|
1993
|
+
count: "count",
|
|
1994
|
+
page: "page",
|
|
1995
|
+
perPage: "per_page",
|
|
1996
|
+
totalCount: "total_count",
|
|
1997
|
+
})),
|
|
1998
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
1999
|
+
export const listSettingTrustedDomains = API.makePaginated(() => ({
|
|
1834
2000
|
input: ListSettingTrustedDomainsRequest,
|
|
1835
2001
|
output: ListSettingTrustedDomainsResponse,
|
|
1836
2002
|
errors: [],
|
|
2003
|
+
pagination: {
|
|
2004
|
+
mode: "page",
|
|
2005
|
+
inputToken: "page",
|
|
2006
|
+
outputToken: "resultInfo.page",
|
|
2007
|
+
items: "result",
|
|
2008
|
+
pageSize: "perPage",
|
|
2009
|
+
},
|
|
1837
2010
|
}));
|
|
1838
2011
|
export const CreateSettingTrustedDomainRequest =
|
|
1839
2012
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -1893,7 +2066,7 @@ export const CreateSettingTrustedDomainResponse =
|
|
|
1893
2066
|
pattern: "pattern",
|
|
1894
2067
|
comments: "comments",
|
|
1895
2068
|
}))),
|
|
1896
|
-
]);
|
|
2069
|
+
]).pipe(T.ResponsePath("result"));
|
|
1897
2070
|
export const createSettingTrustedDomain = API.make(() => ({
|
|
1898
2071
|
input: CreateSettingTrustedDomainRequest,
|
|
1899
2072
|
output: CreateSettingTrustedDomainResponse,
|
|
@@ -1928,7 +2101,8 @@ export const PatchSettingTrustedDomainResponse =
|
|
|
1928
2101
|
lastModified: Schema.String,
|
|
1929
2102
|
pattern: Schema.String,
|
|
1930
2103
|
comments: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1931
|
-
})
|
|
2104
|
+
})
|
|
2105
|
+
.pipe(Schema.encodeKeys({
|
|
1932
2106
|
id: "id",
|
|
1933
2107
|
createdAt: "created_at",
|
|
1934
2108
|
isRecent: "is_recent",
|
|
@@ -1937,7 +2111,8 @@ export const PatchSettingTrustedDomainResponse =
|
|
|
1937
2111
|
lastModified: "last_modified",
|
|
1938
2112
|
pattern: "pattern",
|
|
1939
2113
|
comments: "comments",
|
|
1940
|
-
}))
|
|
2114
|
+
}))
|
|
2115
|
+
.pipe(T.ResponsePath("result"));
|
|
1941
2116
|
export const patchSettingTrustedDomain = API.make(() => ({
|
|
1942
2117
|
input: PatchSettingTrustedDomainRequest,
|
|
1943
2118
|
output: PatchSettingTrustedDomainResponse,
|
|
@@ -1954,7 +2129,7 @@ export const DeleteSettingTrustedDomainRequest =
|
|
|
1954
2129
|
export const DeleteSettingTrustedDomainResponse =
|
|
1955
2130
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1956
2131
|
id: Schema.Number,
|
|
1957
|
-
});
|
|
2132
|
+
}).pipe(T.ResponsePath("result"));
|
|
1958
2133
|
export const deleteSettingTrustedDomain = API.make(() => ({
|
|
1959
2134
|
input: DeleteSettingTrustedDomainRequest,
|
|
1960
2135
|
output: DeleteSettingTrustedDomainResponse,
|
|
@@ -1996,70 +2171,91 @@ export const ListSubmissionsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
1996
2171
|
method: "GET",
|
|
1997
2172
|
path: "/accounts/{account_id}/email-security/submissions",
|
|
1998
2173
|
}));
|
|
1999
|
-
export const ListSubmissionsResponse =
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
Schema.
|
|
2004
|
-
Schema.
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
Schema.
|
|
2019
|
-
Schema.
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
Schema.
|
|
2033
|
-
Schema.
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2174
|
+
export const ListSubmissionsResponse =
|
|
2175
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2176
|
+
result: Schema.Array(Schema.Struct({
|
|
2177
|
+
requestedTs: Schema.String,
|
|
2178
|
+
submissionId: Schema.String,
|
|
2179
|
+
originalDisposition: Schema.optional(Schema.Union([
|
|
2180
|
+
Schema.Literal("MALICIOUS"),
|
|
2181
|
+
Schema.Literal("MALICIOUS-BEC"),
|
|
2182
|
+
Schema.Literal("SUSPICIOUS"),
|
|
2183
|
+
Schema.Literal("SPOOF"),
|
|
2184
|
+
Schema.Literal("SPAM"),
|
|
2185
|
+
Schema.Literal("BULK"),
|
|
2186
|
+
Schema.Literal("ENCRYPTED"),
|
|
2187
|
+
Schema.Literal("EXTERNAL"),
|
|
2188
|
+
Schema.Literal("UNKNOWN"),
|
|
2189
|
+
Schema.Literal("NONE"),
|
|
2190
|
+
Schema.Null,
|
|
2191
|
+
])),
|
|
2192
|
+
originalEdfHash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2193
|
+
outcome: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2194
|
+
outcomeDisposition: Schema.optional(Schema.Union([
|
|
2195
|
+
Schema.Literal("MALICIOUS"),
|
|
2196
|
+
Schema.Literal("MALICIOUS-BEC"),
|
|
2197
|
+
Schema.Literal("SUSPICIOUS"),
|
|
2198
|
+
Schema.Literal("SPOOF"),
|
|
2199
|
+
Schema.Literal("SPAM"),
|
|
2200
|
+
Schema.Literal("BULK"),
|
|
2201
|
+
Schema.Literal("ENCRYPTED"),
|
|
2202
|
+
Schema.Literal("EXTERNAL"),
|
|
2203
|
+
Schema.Literal("UNKNOWN"),
|
|
2204
|
+
Schema.Literal("NONE"),
|
|
2205
|
+
Schema.Null,
|
|
2206
|
+
])),
|
|
2207
|
+
requestedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2208
|
+
requestedDisposition: Schema.optional(Schema.Union([
|
|
2209
|
+
Schema.Literal("MALICIOUS"),
|
|
2210
|
+
Schema.Literal("MALICIOUS-BEC"),
|
|
2211
|
+
Schema.Literal("SUSPICIOUS"),
|
|
2212
|
+
Schema.Literal("SPOOF"),
|
|
2213
|
+
Schema.Literal("SPAM"),
|
|
2214
|
+
Schema.Literal("BULK"),
|
|
2215
|
+
Schema.Literal("ENCRYPTED"),
|
|
2216
|
+
Schema.Literal("EXTERNAL"),
|
|
2217
|
+
Schema.Literal("UNKNOWN"),
|
|
2218
|
+
Schema.Literal("NONE"),
|
|
2219
|
+
Schema.Null,
|
|
2220
|
+
])),
|
|
2221
|
+
status: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2222
|
+
subject: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2223
|
+
type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2224
|
+
}).pipe(Schema.encodeKeys({
|
|
2225
|
+
requestedTs: "requested_ts",
|
|
2226
|
+
submissionId: "submission_id",
|
|
2227
|
+
originalDisposition: "original_disposition",
|
|
2228
|
+
originalEdfHash: "original_edf_hash",
|
|
2229
|
+
outcome: "outcome",
|
|
2230
|
+
outcomeDisposition: "outcome_disposition",
|
|
2231
|
+
requestedBy: "requested_by",
|
|
2232
|
+
requestedDisposition: "requested_disposition",
|
|
2233
|
+
status: "status",
|
|
2234
|
+
subject: "subject",
|
|
2235
|
+
type: "type",
|
|
2236
|
+
}))),
|
|
2237
|
+
resultInfo: Schema.Struct({
|
|
2238
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2239
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2240
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2241
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2242
|
+
}).pipe(Schema.encodeKeys({
|
|
2243
|
+
count: "count",
|
|
2244
|
+
page: "page",
|
|
2245
|
+
perPage: "per_page",
|
|
2246
|
+
totalCount: "total_count",
|
|
2247
|
+
})),
|
|
2248
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
2249
|
+
export const listSubmissions = API.makePaginated(() => ({
|
|
2061
2250
|
input: ListSubmissionsRequest,
|
|
2062
2251
|
output: ListSubmissionsResponse,
|
|
2063
2252
|
errors: [],
|
|
2253
|
+
pagination: {
|
|
2254
|
+
mode: "page",
|
|
2255
|
+
inputToken: "page",
|
|
2256
|
+
outputToken: "resultInfo.page",
|
|
2257
|
+
items: "result",
|
|
2258
|
+
pageSize: "perPage",
|
|
2259
|
+
},
|
|
2064
2260
|
}));
|
|
2065
2261
|
//# sourceMappingURL=email-security.js.map
|