@distilled.cloud/cloudflare 0.29.0 → 0.29.1
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/lib/services/abuse-reports.d.ts.map +1 -1
- package/lib/services/abuse-reports.js +26 -26
- package/lib/services/abuse-reports.js.map +1 -1
- package/lib/services/accounts.d.ts.map +1 -1
- package/lib/services/accounts.js +114 -123
- package/lib/services/accounts.js.map +1 -1
- package/lib/services/acm.d.ts.map +1 -1
- package/lib/services/acm.js +23 -23
- package/lib/services/acm.js.map +1 -1
- package/lib/services/addressing.d.ts.map +1 -1
- package/lib/services/addressing.js +132 -132
- package/lib/services/addressing.js.map +1 -1
- package/lib/services/ai-gateway.d.ts.map +1 -1
- package/lib/services/ai-gateway.js +213 -207
- package/lib/services/ai-gateway.js.map +1 -1
- package/lib/services/ai-security.d.ts.map +1 -1
- package/lib/services/ai-security.js +13 -13
- package/lib/services/ai-security.js.map +1 -1
- package/lib/services/ai.d.ts.map +1 -1
- package/lib/services/ai.js +62 -62
- package/lib/services/ai.js.map +1 -1
- package/lib/services/aisearch.d.ts.map +1 -1
- package/lib/services/aisearch.js +187 -193
- package/lib/services/aisearch.js.map +1 -1
- package/lib/services/alerting.d.ts.map +1 -1
- package/lib/services/alerting.js +78 -78
- package/lib/services/alerting.js.map +1 -1
- package/lib/services/api-gateway.d.ts.map +1 -1
- package/lib/services/api-gateway.js +168 -177
- package/lib/services/api-gateway.js.map +1 -1
- package/lib/services/argo.js +12 -12
- package/lib/services/argo.js.map +1 -1
- package/lib/services/audit-logs.d.ts.map +1 -1
- package/lib/services/audit-logs.js +9 -9
- package/lib/services/audit-logs.js.map +1 -1
- package/lib/services/billing.d.ts.map +1 -1
- package/lib/services/billing.js +11 -11
- package/lib/services/billing.js.map +1 -1
- package/lib/services/bot-management.d.ts.map +1 -1
- package/lib/services/bot-management.js +18 -30
- 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 +12 -12
- package/lib/services/botnet-feed.js.map +1 -1
- package/lib/services/brand-protection.d.ts.map +1 -1
- package/lib/services/brand-protection.js +59 -59
- 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 +103 -103
- package/lib/services/browser-rendering.js.map +1 -1
- package/lib/services/cache.d.ts.map +1 -1
- package/lib/services/cache.js +72 -72
- package/lib/services/cache.js.map +1 -1
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +31 -31
- package/lib/services/calls.js.map +1 -1
- package/lib/services/certificate-authorities.js +6 -6
- package/lib/services/certificate-authorities.js.map +1 -1
- package/lib/services/client-certificates.js +18 -18
- package/lib/services/client-certificates.js.map +1 -1
- package/lib/services/cloud-connector.d.ts.map +1 -1
- package/lib/services/cloud-connector.js +8 -8
- package/lib/services/cloud-connector.js.map +1 -1
- package/lib/services/cloudforce-one.d.ts.map +1 -1
- package/lib/services/cloudforce-one.js +178 -178
- package/lib/services/cloudforce-one.js.map +1 -1
- package/lib/services/connectivity.js +25 -25
- package/lib/services/connectivity.js.map +1 -1
- package/lib/services/containers.js +49 -49
- package/lib/services/containers.js.map +1 -1
- package/lib/services/content-scanning.d.ts.map +1 -1
- package/lib/services/content-scanning.js +29 -29
- package/lib/services/content-scanning.js.map +1 -1
- package/lib/services/csam-scanner.d.ts.map +1 -1
- package/lib/services/csam-scanner.js +8 -8
- package/lib/services/csam-scanner.js.map +1 -1
- package/lib/services/custom-certificates.d.ts.map +1 -1
- package/lib/services/custom-certificates.js +24 -24
- package/lib/services/custom-certificates.js.map +1 -1
- package/lib/services/custom-csrs.d.ts.map +1 -1
- package/lib/services/custom-csrs.js +22 -22
- package/lib/services/custom-csrs.js.map +1 -1
- package/lib/services/custom-hostnames.d.ts.map +1 -1
- package/lib/services/custom-hostnames.js +40 -40
- package/lib/services/custom-hostnames.js.map +1 -1
- package/lib/services/custom-nameservers.js +11 -11
- package/lib/services/custom-nameservers.js.map +1 -1
- package/lib/services/custom-pages.d.ts.map +1 -1
- package/lib/services/custom-pages.js +43 -43
- package/lib/services/custom-pages.js.map +1 -1
- package/lib/services/d1.d.ts +4 -4
- package/lib/services/d1.d.ts.map +1 -1
- package/lib/services/d1.js +69 -51
- package/lib/services/d1.js.map +1 -1
- package/lib/services/dcv-delegation.js +3 -3
- package/lib/services/dcv-delegation.js.map +1 -1
- package/lib/services/ddos-protection.js +126 -126
- package/lib/services/ddos-protection.js.map +1 -1
- package/lib/services/diagnostics.js +27 -27
- package/lib/services/diagnostics.js.map +1 -1
- package/lib/services/dls.d.ts.map +1 -1
- package/lib/services/dls.js +26 -26
- package/lib/services/dls.js.map +1 -1
- package/lib/services/dns-firewall.d.ts.map +1 -1
- package/lib/services/dns-firewall.js +34 -34
- package/lib/services/dns-firewall.js.map +1 -1
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +268 -268
- package/lib/services/dns.js.map +1 -1
- package/lib/services/durable-objects.d.ts.map +1 -1
- package/lib/services/durable-objects.js +11 -11
- package/lib/services/durable-objects.js.map +1 -1
- package/lib/services/email-auth.d.ts.map +1 -1
- package/lib/services/email-auth.js +13 -13
- package/lib/services/email-auth.js.map +1 -1
- package/lib/services/email-routing.d.ts.map +1 -1
- package/lib/services/email-routing.js +70 -70
- package/lib/services/email-routing.js.map +1 -1
- package/lib/services/email-security.d.ts.map +1 -1
- package/lib/services/email-security.js +195 -195
- package/lib/services/email-security.js.map +1 -1
- package/lib/services/email-sending.d.ts.map +1 -1
- package/lib/services/email-sending.js +28 -28
- package/lib/services/email-sending.js.map +1 -1
- package/lib/services/filters.d.ts.map +1 -1
- package/lib/services/filters.js +25 -25
- package/lib/services/filters.js.map +1 -1
- package/lib/services/firewall.d.ts.map +1 -1
- package/lib/services/firewall.js +149 -149
- package/lib/services/firewall.js.map +1 -1
- package/lib/services/flagship.d.ts.map +1 -1
- package/lib/services/flagship.js +52 -52
- package/lib/services/flagship.js.map +1 -1
- package/lib/services/fraud.js +8 -8
- package/lib/services/fraud.js.map +1 -1
- package/lib/services/google-tag-gateway.d.ts.map +1 -1
- package/lib/services/google-tag-gateway.js +7 -7
- package/lib/services/google-tag-gateway.js.map +1 -1
- package/lib/services/healthchecks.d.ts.map +1 -1
- package/lib/services/healthchecks.js +31 -31
- package/lib/services/healthchecks.js.map +1 -1
- package/lib/services/hostnames.d.ts.map +1 -1
- package/lib/services/hostnames.js +10 -10
- package/lib/services/hostnames.js.map +1 -1
- package/lib/services/hyperdrive.d.ts.map +1 -1
- package/lib/services/hyperdrive.js +32 -32
- package/lib/services/hyperdrive.js.map +1 -1
- package/lib/services/iam.d.ts.map +1 -1
- package/lib/services/iam.js +113 -113
- package/lib/services/iam.js.map +1 -1
- package/lib/services/images.d.ts.map +1 -1
- package/lib/services/images.js +59 -59
- package/lib/services/images.js.map +1 -1
- package/lib/services/intel.d.ts.map +1 -1
- package/lib/services/intel.js +102 -102
- package/lib/services/intel.js.map +1 -1
- package/lib/services/ips.js +5 -5
- package/lib/services/ips.js.map +1 -1
- package/lib/services/keyless-certificates.js +17 -17
- package/lib/services/keyless-certificates.js.map +1 -1
- package/lib/services/kv.d.ts.map +1 -1
- package/lib/services/kv.js +54 -54
- package/lib/services/kv.js.map +1 -1
- package/lib/services/leaked-credential-checks.d.ts.map +1 -1
- package/lib/services/leaked-credential-checks.js +22 -22
- package/lib/services/leaked-credential-checks.js.map +1 -1
- package/lib/services/load-balancers.d.ts.map +1 -1
- package/lib/services/load-balancers.js +139 -157
- package/lib/services/load-balancers.js.map +1 -1
- package/lib/services/logpush.d.ts.map +1 -1
- package/lib/services/logpush.js +69 -69
- package/lib/services/logpush.js.map +1 -1
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +58 -58
- package/lib/services/logs.js.map +1 -1
- package/lib/services/magic-cloud-networking.d.ts.map +1 -1
- package/lib/services/magic-cloud-networking.js +138 -168
- 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 +47 -65
- package/lib/services/magic-network-monitoring.js.map +1 -1
- package/lib/services/magic-transit.d.ts.map +1 -1
- package/lib/services/magic-transit.js +340 -364
- package/lib/services/magic-transit.js.map +1 -1
- package/lib/services/managed-transforms.js +11 -11
- package/lib/services/managed-transforms.js.map +1 -1
- package/lib/services/memberships.d.ts.map +1 -1
- package/lib/services/memberships.js +25 -25
- package/lib/services/memberships.js.map +1 -1
- package/lib/services/moq.d.ts.map +1 -1
- package/lib/services/moq.js +23 -23
- package/lib/services/moq.js.map +1 -1
- package/lib/services/mtls-certificates.d.ts.map +1 -1
- package/lib/services/mtls-certificates.js +17 -17
- package/lib/services/mtls-certificates.js.map +1 -1
- package/lib/services/network-interconnects.d.ts.map +1 -1
- package/lib/services/network-interconnects.js +56 -56
- package/lib/services/network-interconnects.js.map +1 -1
- package/lib/services/organizations.d.ts.map +1 -1
- package/lib/services/organizations.js +42 -42
- package/lib/services/organizations.js.map +1 -1
- package/lib/services/origin-ca-certificates.js +14 -14
- package/lib/services/origin-ca-certificates.js.map +1 -1
- package/lib/services/origin-post-quantum-encryption.js +6 -6
- package/lib/services/origin-post-quantum-encryption.js.map +1 -1
- package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
- package/lib/services/origin-tls-client-auth.js +52 -52
- package/lib/services/origin-tls-client-auth.js.map +1 -1
- package/lib/services/origin-tls-compliance-modes.js +12 -12
- package/lib/services/origin-tls-compliance-modes.js.map +1 -1
- package/lib/services/page-rules.d.ts.map +1 -1
- package/lib/services/page-rules.js +62 -62
- package/lib/services/page-rules.js.map +1 -1
- package/lib/services/page-shield.d.ts.map +1 -1
- package/lib/services/page-shield.js +45 -48
- package/lib/services/page-shield.js.map +1 -1
- package/lib/services/pages.d.ts.map +1 -1
- package/lib/services/pages.js +78 -78
- package/lib/services/pages.js.map +1 -1
- package/lib/services/pipelines.d.ts.map +1 -1
- package/lib/services/pipelines.js +102 -102
- package/lib/services/pipelines.js.map +1 -1
- package/lib/services/queues.d.ts.map +1 -1
- package/lib/services/queues.js +100 -103
- 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 +42 -42
- package/lib/services/r2-data-catalog.js.map +1 -1
- package/lib/services/r2.d.ts.map +1 -1
- package/lib/services/r2.js +190 -190
- package/lib/services/r2.js.map +1 -1
- package/lib/services/radar.d.ts.map +1 -1
- package/lib/services/radar.js +991 -1009
- package/lib/services/radar.js.map +1 -1
- package/lib/services/rate-limits.d.ts.map +1 -1
- package/lib/services/rate-limits.js +24 -24
- 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 +276 -276
- package/lib/services/realtime-kit.js.map +1 -1
- package/lib/services/registrar.d.ts.map +1 -1
- package/lib/services/registrar.js +28 -28
- package/lib/services/registrar.js.map +1 -1
- package/lib/services/request-tracers.d.ts.map +1 -1
- package/lib/services/request-tracers.js +7 -7
- package/lib/services/request-tracers.js.map +1 -1
- package/lib/services/resource-sharing.d.ts.map +1 -1
- package/lib/services/resource-sharing.js +49 -49
- package/lib/services/resource-sharing.js.map +1 -1
- package/lib/services/resource-tagging.d.ts.map +1 -1
- package/lib/services/resource-tagging.js +56 -56
- package/lib/services/resource-tagging.js.map +1 -1
- package/lib/services/rules.d.ts.map +1 -1
- package/lib/services/rules.js +50 -50
- package/lib/services/rules.js.map +1 -1
- package/lib/services/rulesets.d.ts +2 -2
- package/lib/services/rulesets.d.ts.map +1 -1
- package/lib/services/rulesets.js +226 -190
- package/lib/services/rulesets.js.map +1 -1
- package/lib/services/rum.d.ts.map +1 -1
- package/lib/services/rum.js +35 -35
- package/lib/services/rum.js.map +1 -1
- package/lib/services/schema-validation.d.ts.map +1 -1
- package/lib/services/schema-validation.js +43 -46
- package/lib/services/schema-validation.js.map +1 -1
- package/lib/services/secrets-store.d.ts.map +1 -1
- package/lib/services/secrets-store.js +41 -41
- package/lib/services/secrets-store.js.map +1 -1
- package/lib/services/security-center.d.ts.map +1 -1
- package/lib/services/security-center.js +54 -57
- 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 +12 -12
- package/lib/services/security-txt.js.map +1 -1
- package/lib/services/snippets.d.ts.map +1 -1
- package/lib/services/snippets.js +31 -31
- package/lib/services/snippets.js.map +1 -1
- package/lib/services/spectrum.d.ts.map +1 -1
- package/lib/services/spectrum.js +35 -35
- package/lib/services/spectrum.js.map +1 -1
- package/lib/services/speed.d.ts.map +1 -1
- package/lib/services/speed.js +41 -41
- package/lib/services/speed.js.map +1 -1
- package/lib/services/ssl.d.ts.map +1 -1
- package/lib/services/ssl.js +48 -48
- package/lib/services/ssl.js.map +1 -1
- package/lib/services/stream.d.ts.map +1 -1
- package/lib/services/stream.js +147 -147
- package/lib/services/stream.js.map +1 -1
- package/lib/services/tenant-custom-nameservers.js +11 -11
- package/lib/services/tenant-custom-nameservers.js.map +1 -1
- package/lib/services/tenants.d.ts.map +1 -1
- package/lib/services/tenants.js +28 -28
- package/lib/services/tenants.js.map +1 -1
- package/lib/services/token-validation.d.ts.map +1 -1
- package/lib/services/token-validation.js +56 -56
- package/lib/services/token-validation.js.map +1 -1
- package/lib/services/turnstile.d.ts.map +1 -1
- package/lib/services/turnstile.js +27 -54
- package/lib/services/turnstile.js.map +1 -1
- package/lib/services/url-normalization.js +9 -9
- package/lib/services/url-normalization.js.map +1 -1
- package/lib/services/url-scanner.d.ts.map +1 -1
- package/lib/services/url-scanner.js +120 -120
- package/lib/services/url-scanner.js.map +1 -1
- package/lib/services/user.d.ts.map +1 -1
- package/lib/services/user.js +95 -95
- package/lib/services/user.js.map +1 -1
- package/lib/services/vectorize.d.ts +10 -10
- package/lib/services/vectorize.d.ts.map +1 -1
- package/lib/services/vectorize.js +59 -57
- package/lib/services/vectorize.js.map +1 -1
- package/lib/services/vulnerability-scanner.d.ts.map +1 -1
- package/lib/services/vulnerability-scanner.js +95 -95
- package/lib/services/vulnerability-scanner.js.map +1 -1
- package/lib/services/waiting-rooms.d.ts.map +1 -1
- package/lib/services/waiting-rooms.js +81 -81
- package/lib/services/waiting-rooms.js.map +1 -1
- package/lib/services/web3.d.ts.map +1 -1
- package/lib/services/web3.js +39 -39
- package/lib/services/web3.js.map +1 -1
- package/lib/services/workers-for-platforms.d.ts.map +1 -1
- package/lib/services/workers-for-platforms.js +139 -139
- package/lib/services/workers-for-platforms.js.map +1 -1
- package/lib/services/workers.d.ts.map +1 -1
- package/lib/services/workers.js +420 -420
- package/lib/services/workers.js.map +1 -1
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +88 -88
- package/lib/services/workflows.js.map +1 -1
- package/lib/services/zaraz.d.ts.map +1 -1
- package/lib/services/zaraz.js +36 -39
- package/lib/services/zaraz.js.map +1 -1
- package/lib/services/zero-trust.d.ts.map +1 -1
- package/lib/services/zero-trust.js +1765 -1771
- package/lib/services/zero-trust.js.map +1 -1
- package/lib/services/zones.d.ts.map +1 -1
- package/lib/services/zones.js +168 -168
- package/lib/services/zones.js.map +1 -1
- package/package.json +3 -2
- package/src/services/abuse-reports.ts +35 -36
- package/src/services/accounts.ts +714 -760
- package/src/services/acm.ts +115 -125
- package/src/services/addressing.ts +484 -512
- package/src/services/ai-gateway.ts +653 -672
- package/src/services/ai-security.ts +47 -53
- package/src/services/ai.ts +172 -185
- package/src/services/aisearch.ts +1814 -1861
- package/src/services/alerting.ts +710 -742
- package/src/services/api-gateway.ts +481 -508
- package/src/services/argo.ts +12 -12
- package/src/services/audit-logs.ts +45 -49
- package/src/services/billing.ts +121 -136
- package/src/services/bot-management.ts +122 -136
- package/src/services/botnet-feed.ts +68 -74
- package/src/services/brand-protection.ts +275 -294
- package/src/services/browser-rendering.ts +758 -769
- package/src/services/cache.ts +148 -158
- package/src/services/calls.ts +110 -120
- package/src/services/certificate-authorities.ts +6 -6
- package/src/services/client-certificates.ts +18 -18
- package/src/services/cloud-connector.ts +11 -12
- package/src/services/cloudforce-one.ts +589 -617
- package/src/services/connectivity.ts +25 -25
- package/src/services/containers.ts +49 -49
- package/src/services/content-scanning.ts +80 -89
- package/src/services/csam-scanner.ts +16 -17
- package/src/services/custom-certificates.ts +36 -38
- package/src/services/custom-csrs.ts +103 -105
- package/src/services/custom-hostnames.ts +44 -45
- package/src/services/custom-nameservers.ts +11 -11
- package/src/services/custom-pages.ts +173 -184
- package/src/services/d1.ts +335 -325
- package/src/services/dcv-delegation.ts +3 -3
- package/src/services/ddos-protection.ts +126 -126
- package/src/services/diagnostics.ts +27 -27
- package/src/services/dls.ts +82 -86
- package/src/services/dns-firewall.ts +65 -69
- package/src/services/dns.ts +1080 -1107
- package/src/services/durable-objects.ts +36 -38
- package/src/services/email-auth.ts +47 -52
- package/src/services/email-routing.ts +264 -288
- package/src/services/email-security.ts +205 -208
- package/src/services/email-sending.ts +94 -99
- package/src/services/filters.ts +97 -111
- package/src/services/firewall.ts +698 -753
- package/src/services/flagship.ts +321 -336
- package/src/services/fraud.ts +8 -8
- package/src/services/google-tag-gateway.ts +17 -19
- package/src/services/healthchecks.ts +269 -286
- package/src/services/hostnames.ts +94 -99
- package/src/services/hyperdrive.ts +310 -324
- package/src/services/iam.ts +205 -212
- package/src/services/images.ts +138 -150
- package/src/services/intel.ts +248 -261
- package/src/services/ips.ts +5 -5
- package/src/services/keyless-certificates.ts +17 -17
- package/src/services/kv.ts +106 -110
- package/src/services/leaked-credential-checks.ts +49 -53
- package/src/services/load-balancers.ts +1119 -1212
- package/src/services/logpush.ts +298 -313
- package/src/services/logs.ts +74 -77
- package/src/services/magic-cloud-networking.ts +1219 -1311
- package/src/services/magic-network-monitoring.ts +647 -685
- package/src/services/magic-transit.ts +1988 -2119
- package/src/services/managed-transforms.ts +11 -11
- package/src/services/memberships.ts +101 -105
- package/src/services/moq.ts +100 -110
- package/src/services/mtls-certificates.ts +30 -32
- package/src/services/network-interconnects.ts +137 -145
- package/src/services/organizations.ts +189 -192
- package/src/services/origin-ca-certificates.ts +14 -14
- package/src/services/origin-post-quantum-encryption.ts +6 -6
- package/src/services/origin-tls-client-auth.ts +219 -236
- package/src/services/origin-tls-compliance-modes.ts +12 -12
- package/src/services/page-rules.ts +365 -373
- package/src/services/page-shield.ts +489 -528
- package/src/services/pages.ts +309 -319
- package/src/services/pipelines.ts +534 -573
- package/src/services/queues.ts +598 -635
- package/src/services/r2-data-catalog.ts +59 -60
- package/src/services/r2.ts +654 -689
- package/src/services/radar.ts +3395 -3487
- package/src/services/rate-limits.ts +81 -93
- package/src/services/realtime-kit.ts +386 -399
- package/src/services/registrar.ts +90 -96
- package/src/services/request-tracers.ts +41 -43
- package/src/services/resource-sharing.ts +293 -305
- package/src/services/resource-tagging.ts +354 -366
- package/src/services/rules.ts +272 -292
- package/src/services/rulesets.ts +1214 -1116
- package/src/services/rum.ts +252 -273
- package/src/services/schema-validation.ts +284 -305
- package/src/services/secrets-store.ts +130 -138
- package/src/services/security-center.ts +64 -69
- package/src/services/security-txt.ts +48 -50
- package/src/services/snippets.ts +132 -142
- package/src/services/spectrum.ts +75 -80
- package/src/services/speed.ts +385 -397
- package/src/services/ssl.ts +64 -65
- package/src/services/stream.ts +658 -718
- package/src/services/tenant-custom-nameservers.ts +11 -11
- package/src/services/tenants.ts +86 -93
- package/src/services/token-validation.ts +145 -151
- package/src/services/turnstile.ts +344 -381
- package/src/services/url-normalization.ts +9 -9
- package/src/services/url-scanner.ts +393 -399
- package/src/services/user.ts +479 -503
- package/src/services/vectorize.ts +215 -230
- package/src/services/vulnerability-scanner.ts +145 -148
- package/src/services/waiting-rooms.ts +759 -825
- package/src/services/web3.ts +186 -197
- package/src/services/workers-for-platforms.ts +408 -432
- package/src/services/workers.ts +1175 -1239
- package/src/services/workflows.ts +585 -616
- package/src/services/zaraz.ts +168 -192
- package/src/services/zero-trust.ts +2965 -3074
- package/src/services/zones.ts +753 -785
|
@@ -77,7 +77,7 @@ interface ListConnectionsResponseResult {
|
|
|
77
77
|
urlReportedMalicious?: boolean | null;
|
|
78
78
|
}
|
|
79
79
|
const ListConnectionsResponseResult =
|
|
80
|
-
/*@__PURE__*/
|
|
80
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
81
81
|
Schema.Struct({
|
|
82
82
|
id: Schema.String,
|
|
83
83
|
addedAt: Schema.String,
|
|
@@ -138,66 +138,63 @@ interface ListCookiesResponseResult {
|
|
|
138
138
|
sameSiteAttribute?: "lax" | "strict" | "none" | (string & {}) | null;
|
|
139
139
|
secureAttribute?: boolean | null;
|
|
140
140
|
}
|
|
141
|
-
const ListCookiesResponseResult = /*@__PURE__*/
|
|
142
|
-
(
|
|
143
|
-
Schema.
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
),
|
|
171
|
-
sameSiteAttribute: Schema.optional(
|
|
141
|
+
const ListCookiesResponseResult = /*@__PURE__*/ Schema.suspend(() =>
|
|
142
|
+
Schema.Struct({
|
|
143
|
+
id: Schema.String,
|
|
144
|
+
firstSeenAt: Schema.String,
|
|
145
|
+
host: Schema.String,
|
|
146
|
+
lastSeenAt: Schema.String,
|
|
147
|
+
name: Schema.String,
|
|
148
|
+
type: Schema.Union([
|
|
149
|
+
Schema.Literals(["first_party", "unknown"]),
|
|
150
|
+
Schema.String,
|
|
151
|
+
]),
|
|
152
|
+
domainAttribute: Schema.optional(
|
|
153
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
154
|
+
),
|
|
155
|
+
expiresAttribute: Schema.optional(
|
|
156
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
157
|
+
),
|
|
158
|
+
httpOnlyAttribute: Schema.optional(
|
|
159
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
160
|
+
),
|
|
161
|
+
maxAgeAttribute: Schema.optional(
|
|
162
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
163
|
+
),
|
|
164
|
+
pageUrls: Schema.optional(
|
|
165
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
166
|
+
),
|
|
167
|
+
pathAttribute: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
168
|
+
sameSiteAttribute: Schema.optional(
|
|
169
|
+
Schema.Union([
|
|
172
170
|
Schema.Union([
|
|
173
|
-
Schema.
|
|
174
|
-
|
|
175
|
-
Schema.String,
|
|
176
|
-
]),
|
|
177
|
-
Schema.Null,
|
|
171
|
+
Schema.Literals(["lax", "strict", "none"]),
|
|
172
|
+
Schema.String,
|
|
178
173
|
]),
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
Schema.encodeKeys({
|
|
185
|
-
id: "id",
|
|
186
|
-
firstSeenAt: "first_seen_at",
|
|
187
|
-
host: "host",
|
|
188
|
-
lastSeenAt: "last_seen_at",
|
|
189
|
-
name: "name",
|
|
190
|
-
type: "type",
|
|
191
|
-
domainAttribute: "domain_attribute",
|
|
192
|
-
expiresAttribute: "expires_attribute",
|
|
193
|
-
httpOnlyAttribute: "http_only_attribute",
|
|
194
|
-
maxAgeAttribute: "max_age_attribute",
|
|
195
|
-
pageUrls: "page_urls",
|
|
196
|
-
pathAttribute: "path_attribute",
|
|
197
|
-
sameSiteAttribute: "same_site_attribute",
|
|
198
|
-
secureAttribute: "secure_attribute",
|
|
199
|
-
}),
|
|
174
|
+
Schema.Null,
|
|
175
|
+
]),
|
|
176
|
+
),
|
|
177
|
+
secureAttribute: Schema.optional(
|
|
178
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
200
179
|
),
|
|
180
|
+
}).pipe(
|
|
181
|
+
Schema.encodeKeys({
|
|
182
|
+
id: "id",
|
|
183
|
+
firstSeenAt: "first_seen_at",
|
|
184
|
+
host: "host",
|
|
185
|
+
lastSeenAt: "last_seen_at",
|
|
186
|
+
name: "name",
|
|
187
|
+
type: "type",
|
|
188
|
+
domainAttribute: "domain_attribute",
|
|
189
|
+
expiresAttribute: "expires_attribute",
|
|
190
|
+
httpOnlyAttribute: "http_only_attribute",
|
|
191
|
+
maxAgeAttribute: "max_age_attribute",
|
|
192
|
+
pageUrls: "page_urls",
|
|
193
|
+
pathAttribute: "path_attribute",
|
|
194
|
+
sameSiteAttribute: "same_site_attribute",
|
|
195
|
+
secureAttribute: "secure_attribute",
|
|
196
|
+
}),
|
|
197
|
+
),
|
|
201
198
|
) as unknown as Schema.Codec<ListCookiesResponseResult>;
|
|
202
199
|
|
|
203
200
|
interface ListPoliciesResponseResult {
|
|
@@ -214,19 +211,18 @@ interface ListPoliciesResponseResult {
|
|
|
214
211
|
/** The policy which will be applied */
|
|
215
212
|
value: string;
|
|
216
213
|
}
|
|
217
|
-
const ListPoliciesResponseResult = /*@__PURE__*/
|
|
218
|
-
(
|
|
219
|
-
Schema.
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
}),
|
|
214
|
+
const ListPoliciesResponseResult = /*@__PURE__*/ Schema.suspend(() =>
|
|
215
|
+
Schema.Struct({
|
|
216
|
+
id: Schema.String,
|
|
217
|
+
action: Schema.Union([
|
|
218
|
+
Schema.Literals(["allow", "log", "add_reporting_directives"]),
|
|
219
|
+
Schema.String,
|
|
220
|
+
]),
|
|
221
|
+
description: Schema.String,
|
|
222
|
+
enabled: Schema.Boolean,
|
|
223
|
+
expression: Schema.String,
|
|
224
|
+
value: Schema.String,
|
|
225
|
+
}),
|
|
230
226
|
) as unknown as Schema.Codec<ListPoliciesResponseResult>;
|
|
231
227
|
|
|
232
228
|
interface Version {
|
|
@@ -247,7 +243,7 @@ interface Version {
|
|
|
247
243
|
/** @deprecated The obfuscation score of the JavaScript content. This field has been deprecated in favour of js_integrity_score. */
|
|
248
244
|
obfuscationScore?: number | null;
|
|
249
245
|
}
|
|
250
|
-
const Version = /*@__PURE__*/
|
|
246
|
+
const Version = /*@__PURE__*/ Schema.suspend(() =>
|
|
251
247
|
Schema.Struct({
|
|
252
248
|
cryptominingScore: Schema.optional(
|
|
253
249
|
Schema.Union([Schema.Number, Schema.Null]),
|
|
@@ -309,75 +305,70 @@ interface ListScriptsResponseResult {
|
|
|
309
305
|
pageUrls?: string[] | null;
|
|
310
306
|
urlReportedMalicious?: boolean | null;
|
|
311
307
|
}
|
|
312
|
-
const ListScriptsResponseResult = /*@__PURE__*/
|
|
313
|
-
(
|
|
314
|
-
Schema.
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
Schema.Union([Schema.Number, Schema.Null]),
|
|
324
|
-
),
|
|
325
|
-
dataflowScore: Schema.optional(
|
|
326
|
-
Schema.Union([Schema.Number, Schema.Null]),
|
|
327
|
-
),
|
|
328
|
-
domainReportedMalicious: Schema.optional(
|
|
329
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
330
|
-
),
|
|
331
|
-
fetchedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
332
|
-
firstPageUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
333
|
-
hash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
334
|
-
jsIntegrityScore: Schema.optional(
|
|
335
|
-
Schema.Union([Schema.Number, Schema.Null]),
|
|
336
|
-
),
|
|
337
|
-
magecartScore: Schema.optional(
|
|
338
|
-
Schema.Union([Schema.Number, Schema.Null]),
|
|
339
|
-
),
|
|
340
|
-
maliciousDomainCategories: Schema.optional(
|
|
341
|
-
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
342
|
-
),
|
|
343
|
-
maliciousUrlCategories: Schema.optional(
|
|
344
|
-
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
345
|
-
),
|
|
346
|
-
malwareScore: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
347
|
-
obfuscationScore: Schema.optional(
|
|
348
|
-
Schema.Union([Schema.Number, Schema.Null]),
|
|
349
|
-
),
|
|
350
|
-
pageUrls: Schema.optional(
|
|
351
|
-
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
352
|
-
),
|
|
353
|
-
urlReportedMalicious: Schema.optional(
|
|
354
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
355
|
-
),
|
|
356
|
-
}).pipe(
|
|
357
|
-
Schema.encodeKeys({
|
|
358
|
-
id: "id",
|
|
359
|
-
addedAt: "added_at",
|
|
360
|
-
firstSeenAt: "first_seen_at",
|
|
361
|
-
host: "host",
|
|
362
|
-
lastSeenAt: "last_seen_at",
|
|
363
|
-
url: "url",
|
|
364
|
-
urlContainsCdnCgiPath: "url_contains_cdn_cgi_path",
|
|
365
|
-
cryptominingScore: "cryptomining_score",
|
|
366
|
-
dataflowScore: "dataflow_score",
|
|
367
|
-
domainReportedMalicious: "domain_reported_malicious",
|
|
368
|
-
fetchedAt: "fetched_at",
|
|
369
|
-
firstPageUrl: "first_page_url",
|
|
370
|
-
hash: "hash",
|
|
371
|
-
jsIntegrityScore: "js_integrity_score",
|
|
372
|
-
magecartScore: "magecart_score",
|
|
373
|
-
maliciousDomainCategories: "malicious_domain_categories",
|
|
374
|
-
maliciousUrlCategories: "malicious_url_categories",
|
|
375
|
-
malwareScore: "malware_score",
|
|
376
|
-
obfuscationScore: "obfuscation_score",
|
|
377
|
-
pageUrls: "page_urls",
|
|
378
|
-
urlReportedMalicious: "url_reported_malicious",
|
|
379
|
-
}),
|
|
308
|
+
const ListScriptsResponseResult = /*@__PURE__*/ Schema.suspend(() =>
|
|
309
|
+
Schema.Struct({
|
|
310
|
+
id: Schema.String,
|
|
311
|
+
addedAt: Schema.String,
|
|
312
|
+
firstSeenAt: Schema.String,
|
|
313
|
+
host: Schema.String,
|
|
314
|
+
lastSeenAt: Schema.String,
|
|
315
|
+
url: Schema.String,
|
|
316
|
+
urlContainsCdnCgiPath: Schema.Boolean,
|
|
317
|
+
cryptominingScore: Schema.optional(
|
|
318
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
380
319
|
),
|
|
320
|
+
dataflowScore: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
321
|
+
domainReportedMalicious: Schema.optional(
|
|
322
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
323
|
+
),
|
|
324
|
+
fetchedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
325
|
+
firstPageUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
326
|
+
hash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
327
|
+
jsIntegrityScore: Schema.optional(
|
|
328
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
329
|
+
),
|
|
330
|
+
magecartScore: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
331
|
+
maliciousDomainCategories: Schema.optional(
|
|
332
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
333
|
+
),
|
|
334
|
+
maliciousUrlCategories: Schema.optional(
|
|
335
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
336
|
+
),
|
|
337
|
+
malwareScore: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
338
|
+
obfuscationScore: Schema.optional(
|
|
339
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
340
|
+
),
|
|
341
|
+
pageUrls: Schema.optional(
|
|
342
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
343
|
+
),
|
|
344
|
+
urlReportedMalicious: Schema.optional(
|
|
345
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
346
|
+
),
|
|
347
|
+
}).pipe(
|
|
348
|
+
Schema.encodeKeys({
|
|
349
|
+
id: "id",
|
|
350
|
+
addedAt: "added_at",
|
|
351
|
+
firstSeenAt: "first_seen_at",
|
|
352
|
+
host: "host",
|
|
353
|
+
lastSeenAt: "last_seen_at",
|
|
354
|
+
url: "url",
|
|
355
|
+
urlContainsCdnCgiPath: "url_contains_cdn_cgi_path",
|
|
356
|
+
cryptominingScore: "cryptomining_score",
|
|
357
|
+
dataflowScore: "dataflow_score",
|
|
358
|
+
domainReportedMalicious: "domain_reported_malicious",
|
|
359
|
+
fetchedAt: "fetched_at",
|
|
360
|
+
firstPageUrl: "first_page_url",
|
|
361
|
+
hash: "hash",
|
|
362
|
+
jsIntegrityScore: "js_integrity_score",
|
|
363
|
+
magecartScore: "magecart_score",
|
|
364
|
+
maliciousDomainCategories: "malicious_domain_categories",
|
|
365
|
+
maliciousUrlCategories: "malicious_url_categories",
|
|
366
|
+
malwareScore: "malware_score",
|
|
367
|
+
obfuscationScore: "obfuscation_score",
|
|
368
|
+
pageUrls: "page_urls",
|
|
369
|
+
urlReportedMalicious: "url_reported_malicious",
|
|
370
|
+
}),
|
|
371
|
+
),
|
|
381
372
|
) as unknown as Schema.Codec<ListScriptsResponseResult>;
|
|
382
373
|
|
|
383
374
|
// =============================================================================
|
|
@@ -390,17 +381,16 @@ export interface GetConnectionRequest {
|
|
|
390
381
|
zoneId: string;
|
|
391
382
|
}
|
|
392
383
|
|
|
393
|
-
export const GetConnectionRequest = /*@__PURE__*/
|
|
394
|
-
(
|
|
395
|
-
Schema.
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
),
|
|
384
|
+
export const GetConnectionRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
385
|
+
Schema.Struct({
|
|
386
|
+
connectionId: Schema.String.pipe(T.HttpPath("connectionId")),
|
|
387
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
388
|
+
}).pipe(
|
|
389
|
+
T.Http({
|
|
390
|
+
method: "GET",
|
|
391
|
+
path: "/zones/{zone_id}/page_shield/connections/{connectionId}",
|
|
392
|
+
}),
|
|
393
|
+
),
|
|
404
394
|
) as unknown as Schema.Codec<GetConnectionRequest>;
|
|
405
395
|
|
|
406
396
|
export interface GetConnectionResponse {
|
|
@@ -420,51 +410,50 @@ export interface GetConnectionResponse {
|
|
|
420
410
|
urlReportedMalicious?: boolean | null;
|
|
421
411
|
}
|
|
422
412
|
|
|
423
|
-
export const GetConnectionResponse = /*@__PURE__*/
|
|
424
|
-
(
|
|
425
|
-
Schema.
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
.
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
.pipe(T.ResponsePath("result")),
|
|
413
|
+
export const GetConnectionResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
414
|
+
Schema.Struct({
|
|
415
|
+
id: Schema.String,
|
|
416
|
+
addedAt: Schema.String,
|
|
417
|
+
firstSeenAt: Schema.String,
|
|
418
|
+
host: Schema.String,
|
|
419
|
+
lastSeenAt: Schema.String,
|
|
420
|
+
url: Schema.String,
|
|
421
|
+
urlContainsCdnCgiPath: Schema.Boolean,
|
|
422
|
+
domainReportedMalicious: Schema.optional(
|
|
423
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
424
|
+
),
|
|
425
|
+
firstPageUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
426
|
+
maliciousDomainCategories: Schema.optional(
|
|
427
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
428
|
+
),
|
|
429
|
+
maliciousUrlCategories: Schema.optional(
|
|
430
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
431
|
+
),
|
|
432
|
+
pageUrls: Schema.optional(
|
|
433
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
434
|
+
),
|
|
435
|
+
urlReportedMalicious: Schema.optional(
|
|
436
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
437
|
+
),
|
|
438
|
+
})
|
|
439
|
+
.pipe(
|
|
440
|
+
Schema.encodeKeys({
|
|
441
|
+
id: "id",
|
|
442
|
+
addedAt: "added_at",
|
|
443
|
+
firstSeenAt: "first_seen_at",
|
|
444
|
+
host: "host",
|
|
445
|
+
lastSeenAt: "last_seen_at",
|
|
446
|
+
url: "url",
|
|
447
|
+
urlContainsCdnCgiPath: "url_contains_cdn_cgi_path",
|
|
448
|
+
domainReportedMalicious: "domain_reported_malicious",
|
|
449
|
+
firstPageUrl: "first_page_url",
|
|
450
|
+
maliciousDomainCategories: "malicious_domain_categories",
|
|
451
|
+
maliciousUrlCategories: "malicious_url_categories",
|
|
452
|
+
pageUrls: "page_urls",
|
|
453
|
+
urlReportedMalicious: "url_reported_malicious",
|
|
454
|
+
}),
|
|
455
|
+
)
|
|
456
|
+
.pipe(T.ResponsePath("result")),
|
|
468
457
|
) as unknown as Schema.Codec<GetConnectionResponse>;
|
|
469
458
|
|
|
470
459
|
export type GetConnectionError = DefaultErrors;
|
|
@@ -474,7 +463,7 @@ export const getConnection: API.OperationMethod<
|
|
|
474
463
|
GetConnectionResponse,
|
|
475
464
|
GetConnectionError,
|
|
476
465
|
Credentials | HttpClient.HttpClient
|
|
477
|
-
> = /*@__PURE__*/
|
|
466
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
478
467
|
input: GetConnectionRequest,
|
|
479
468
|
output: GetConnectionResponse,
|
|
480
469
|
errors: [],
|
|
@@ -510,7 +499,7 @@ export interface ListConnectionsRequest {
|
|
|
510
499
|
}
|
|
511
500
|
|
|
512
501
|
export const ListConnectionsRequest =
|
|
513
|
-
/*@__PURE__*/
|
|
502
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
514
503
|
Schema.Struct({
|
|
515
504
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
516
505
|
direction: Schema.optional(
|
|
@@ -567,7 +556,7 @@ export interface ListConnectionsResponse {
|
|
|
567
556
|
}
|
|
568
557
|
|
|
569
558
|
export const ListConnectionsResponse =
|
|
570
|
-
/*@__PURE__*/
|
|
559
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
571
560
|
Schema.Struct({
|
|
572
561
|
result: Schema.Array(ListConnectionsResponseResult),
|
|
573
562
|
}),
|
|
@@ -580,7 +569,7 @@ export const listConnections: API.PaginatedOperationMethod<
|
|
|
580
569
|
ListConnectionsResponse,
|
|
581
570
|
ListConnectionsError,
|
|
582
571
|
Credentials | HttpClient.HttpClient
|
|
583
|
-
> = /*@__PURE__*/
|
|
572
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
584
573
|
input: ListConnectionsRequest,
|
|
585
574
|
output: ListConnectionsResponse,
|
|
586
575
|
errors: [],
|
|
@@ -600,7 +589,7 @@ export interface GetCookyRequest {
|
|
|
600
589
|
zoneId: string;
|
|
601
590
|
}
|
|
602
591
|
|
|
603
|
-
export const GetCookyRequest = /*@__PURE__*/
|
|
592
|
+
export const GetCookyRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
604
593
|
Schema.Struct({
|
|
605
594
|
cookieId: Schema.String.pipe(T.HttpPath("cookieId")),
|
|
606
595
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
@@ -630,7 +619,7 @@ export interface GetCookyResponse {
|
|
|
630
619
|
secureAttribute?: boolean | null;
|
|
631
620
|
}
|
|
632
621
|
|
|
633
|
-
export const GetCookyResponse = /*@__PURE__*/
|
|
622
|
+
export const GetCookyResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
634
623
|
Schema.Struct({
|
|
635
624
|
id: Schema.String,
|
|
636
625
|
firstSeenAt: Schema.String,
|
|
@@ -698,7 +687,7 @@ export const getCooky: API.OperationMethod<
|
|
|
698
687
|
GetCookyResponse,
|
|
699
688
|
GetCookyError,
|
|
700
689
|
Credentials | HttpClient.HttpClient
|
|
701
|
-
> = /*@__PURE__*/
|
|
690
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
702
691
|
input: GetCookyRequest,
|
|
703
692
|
output: GetCookyResponse,
|
|
704
693
|
errors: [],
|
|
@@ -737,46 +726,40 @@ export interface ListCookiesRequest {
|
|
|
737
726
|
type?: "first_party" | "unknown" | (string & {});
|
|
738
727
|
}
|
|
739
728
|
|
|
740
|
-
export const ListCookiesRequest = /*@__PURE__*/
|
|
741
|
-
(
|
|
742
|
-
Schema.
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
)
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
Schema.String,
|
|
775
|
-
]),
|
|
776
|
-
).pipe(T.HttpQuery("type")),
|
|
777
|
-
}).pipe(
|
|
778
|
-
T.Http({ method: "GET", path: "/zones/{zone_id}/page_shield/cookies" }),
|
|
779
|
-
),
|
|
729
|
+
export const ListCookiesRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
730
|
+
Schema.Struct({
|
|
731
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
732
|
+
direction: Schema.optional(
|
|
733
|
+
Schema.Union([Schema.Literals(["asc", "desc"]), Schema.String]),
|
|
734
|
+
).pipe(T.HttpQuery("direction")),
|
|
735
|
+
domain: Schema.optional(Schema.String).pipe(T.HttpQuery("domain")),
|
|
736
|
+
export: Schema.optional(Schema.Literal("csv")).pipe(T.HttpQuery("export")),
|
|
737
|
+
hosts: Schema.optional(Schema.String).pipe(T.HttpQuery("hosts")),
|
|
738
|
+
httpOnly: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("http_only")),
|
|
739
|
+
name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
|
|
740
|
+
orderBy: Schema.optional(
|
|
741
|
+
Schema.Union([
|
|
742
|
+
Schema.Literals(["first_seen_at", "last_seen_at"]),
|
|
743
|
+
Schema.String,
|
|
744
|
+
]),
|
|
745
|
+
).pipe(T.HttpQuery("order_by")),
|
|
746
|
+
page: Schema.optional(Schema.String).pipe(T.HttpQuery("page")),
|
|
747
|
+
pageUrl: Schema.optional(Schema.String).pipe(T.HttpQuery("page_url")),
|
|
748
|
+
path: Schema.optional(Schema.String).pipe(T.HttpQuery("path")),
|
|
749
|
+
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
750
|
+
sameSite: Schema.optional(
|
|
751
|
+
Schema.Union([Schema.Literals(["lax", "strict", "none"]), Schema.String]),
|
|
752
|
+
).pipe(T.HttpQuery("same_site")),
|
|
753
|
+
secure: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("secure")),
|
|
754
|
+
type: Schema.optional(
|
|
755
|
+
Schema.Union([
|
|
756
|
+
Schema.Literals(["first_party", "unknown"]),
|
|
757
|
+
Schema.String,
|
|
758
|
+
]),
|
|
759
|
+
).pipe(T.HttpQuery("type")),
|
|
760
|
+
}).pipe(
|
|
761
|
+
T.Http({ method: "GET", path: "/zones/{zone_id}/page_shield/cookies" }),
|
|
762
|
+
),
|
|
780
763
|
) as unknown as Schema.Codec<ListCookiesRequest>;
|
|
781
764
|
|
|
782
765
|
export interface ListCookiesResponse {
|
|
@@ -798,11 +781,10 @@ export interface ListCookiesResponse {
|
|
|
798
781
|
}[];
|
|
799
782
|
}
|
|
800
783
|
|
|
801
|
-
export const ListCookiesResponse = /*@__PURE__*/
|
|
802
|
-
(
|
|
803
|
-
Schema.
|
|
804
|
-
|
|
805
|
-
}),
|
|
784
|
+
export const ListCookiesResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
785
|
+
Schema.Struct({
|
|
786
|
+
result: Schema.Array(ListCookiesResponseResult),
|
|
787
|
+
}),
|
|
806
788
|
) as unknown as Schema.Codec<ListCookiesResponse>;
|
|
807
789
|
|
|
808
790
|
export type ListCookiesError = DefaultErrors;
|
|
@@ -812,7 +794,7 @@ export const listCookies: API.PaginatedOperationMethod<
|
|
|
812
794
|
ListCookiesResponse,
|
|
813
795
|
ListCookiesError,
|
|
814
796
|
Credentials | HttpClient.HttpClient
|
|
815
|
-
> = /*@__PURE__*/
|
|
797
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
816
798
|
input: ListCookiesRequest,
|
|
817
799
|
output: ListCookiesResponse,
|
|
818
800
|
errors: [],
|
|
@@ -831,11 +813,10 @@ export interface GetPageShieldRequest {
|
|
|
831
813
|
zoneId: string;
|
|
832
814
|
}
|
|
833
815
|
|
|
834
|
-
export const GetPageShieldRequest = /*@__PURE__*/
|
|
835
|
-
(
|
|
836
|
-
Schema.
|
|
837
|
-
|
|
838
|
-
}).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/page_shield" })),
|
|
816
|
+
export const GetPageShieldRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
817
|
+
Schema.Struct({
|
|
818
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
819
|
+
}).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/page_shield" })),
|
|
839
820
|
) as unknown as Schema.Codec<GetPageShieldRequest>;
|
|
840
821
|
|
|
841
822
|
export interface GetPageShieldResponse {
|
|
@@ -849,23 +830,22 @@ export interface GetPageShieldResponse {
|
|
|
849
830
|
useConnectionUrlPath: boolean;
|
|
850
831
|
}
|
|
851
832
|
|
|
852
|
-
export const GetPageShieldResponse = /*@__PURE__*/
|
|
853
|
-
(
|
|
854
|
-
Schema.
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
.
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
.pipe(T.ResponsePath("result")),
|
|
833
|
+
export const GetPageShieldResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
834
|
+
Schema.Struct({
|
|
835
|
+
enabled: Schema.Boolean,
|
|
836
|
+
updatedAt: Schema.String,
|
|
837
|
+
useCloudflareReportingEndpoint: Schema.Boolean,
|
|
838
|
+
useConnectionUrlPath: Schema.Boolean,
|
|
839
|
+
})
|
|
840
|
+
.pipe(
|
|
841
|
+
Schema.encodeKeys({
|
|
842
|
+
enabled: "enabled",
|
|
843
|
+
updatedAt: "updated_at",
|
|
844
|
+
useCloudflareReportingEndpoint: "use_cloudflare_reporting_endpoint",
|
|
845
|
+
useConnectionUrlPath: "use_connection_url_path",
|
|
846
|
+
}),
|
|
847
|
+
)
|
|
848
|
+
.pipe(T.ResponsePath("result")),
|
|
869
849
|
) as unknown as Schema.Codec<GetPageShieldResponse>;
|
|
870
850
|
|
|
871
851
|
export type GetPageShieldError = DefaultErrors | Forbidden;
|
|
@@ -875,7 +855,7 @@ export const getPageShield: API.OperationMethod<
|
|
|
875
855
|
GetPageShieldResponse,
|
|
876
856
|
GetPageShieldError,
|
|
877
857
|
Credentials | HttpClient.HttpClient
|
|
878
|
-
> = /*@__PURE__*/
|
|
858
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
879
859
|
input: GetPageShieldRequest,
|
|
880
860
|
output: GetPageShieldResponse,
|
|
881
861
|
errors: [Forbidden],
|
|
@@ -892,21 +872,20 @@ export interface PutPageShieldRequest {
|
|
|
892
872
|
useConnectionUrlPath?: boolean;
|
|
893
873
|
}
|
|
894
874
|
|
|
895
|
-
export const PutPageShieldRequest = /*@__PURE__*/
|
|
896
|
-
(
|
|
897
|
-
Schema.
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
),
|
|
875
|
+
export const PutPageShieldRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
876
|
+
Schema.Struct({
|
|
877
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
878
|
+
enabled: Schema.optional(Schema.Boolean),
|
|
879
|
+
useCloudflareReportingEndpoint: Schema.optional(Schema.Boolean),
|
|
880
|
+
useConnectionUrlPath: Schema.optional(Schema.Boolean),
|
|
881
|
+
}).pipe(
|
|
882
|
+
Schema.encodeKeys({
|
|
883
|
+
enabled: "enabled",
|
|
884
|
+
useCloudflareReportingEndpoint: "use_cloudflare_reporting_endpoint",
|
|
885
|
+
useConnectionUrlPath: "use_connection_url_path",
|
|
886
|
+
}),
|
|
887
|
+
T.Http({ method: "PUT", path: "/zones/{zone_id}/page_shield" }),
|
|
888
|
+
),
|
|
910
889
|
) as unknown as Schema.Codec<PutPageShieldRequest>;
|
|
911
890
|
|
|
912
891
|
export interface PutPageShieldResponse {
|
|
@@ -920,23 +899,22 @@ export interface PutPageShieldResponse {
|
|
|
920
899
|
useConnectionUrlPath: boolean;
|
|
921
900
|
}
|
|
922
901
|
|
|
923
|
-
export const PutPageShieldResponse = /*@__PURE__*/
|
|
924
|
-
(
|
|
925
|
-
Schema.
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
.
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
.pipe(T.ResponsePath("result")),
|
|
902
|
+
export const PutPageShieldResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
903
|
+
Schema.Struct({
|
|
904
|
+
enabled: Schema.Boolean,
|
|
905
|
+
updatedAt: Schema.String,
|
|
906
|
+
useCloudflareReportingEndpoint: Schema.Boolean,
|
|
907
|
+
useConnectionUrlPath: Schema.Boolean,
|
|
908
|
+
})
|
|
909
|
+
.pipe(
|
|
910
|
+
Schema.encodeKeys({
|
|
911
|
+
enabled: "enabled",
|
|
912
|
+
updatedAt: "updated_at",
|
|
913
|
+
useCloudflareReportingEndpoint: "use_cloudflare_reporting_endpoint",
|
|
914
|
+
useConnectionUrlPath: "use_connection_url_path",
|
|
915
|
+
}),
|
|
916
|
+
)
|
|
917
|
+
.pipe(T.ResponsePath("result")),
|
|
940
918
|
) as unknown as Schema.Codec<PutPageShieldResponse>;
|
|
941
919
|
|
|
942
920
|
export type PutPageShieldError = DefaultErrors | NotEntitled | Forbidden;
|
|
@@ -946,7 +924,7 @@ export const putPageShield: API.OperationMethod<
|
|
|
946
924
|
PutPageShieldResponse,
|
|
947
925
|
PutPageShieldError,
|
|
948
926
|
Credentials | HttpClient.HttpClient
|
|
949
|
-
> = /*@__PURE__*/
|
|
927
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
950
928
|
input: PutPageShieldRequest,
|
|
951
929
|
output: PutPageShieldResponse,
|
|
952
930
|
errors: [NotEntitled, Forbidden],
|
|
@@ -962,7 +940,7 @@ export interface GetPolicyRequest {
|
|
|
962
940
|
zoneId: string;
|
|
963
941
|
}
|
|
964
942
|
|
|
965
|
-
export const GetPolicyRequest = /*@__PURE__*/
|
|
943
|
+
export const GetPolicyRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
966
944
|
Schema.Struct({
|
|
967
945
|
policyId: Schema.String.pipe(T.HttpPath("policyId")),
|
|
968
946
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
@@ -989,19 +967,18 @@ export interface GetPolicyResponse {
|
|
|
989
967
|
value: string;
|
|
990
968
|
}
|
|
991
969
|
|
|
992
|
-
export const GetPolicyResponse = /*@__PURE__*/
|
|
993
|
-
(
|
|
994
|
-
Schema.
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
}).pipe(T.ResponsePath("result")),
|
|
970
|
+
export const GetPolicyResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
971
|
+
Schema.Struct({
|
|
972
|
+
id: Schema.String,
|
|
973
|
+
action: Schema.Union([
|
|
974
|
+
Schema.Literals(["allow", "log", "add_reporting_directives"]),
|
|
975
|
+
Schema.String,
|
|
976
|
+
]),
|
|
977
|
+
description: Schema.String,
|
|
978
|
+
enabled: Schema.Boolean,
|
|
979
|
+
expression: Schema.String,
|
|
980
|
+
value: Schema.String,
|
|
981
|
+
}).pipe(T.ResponsePath("result")),
|
|
1005
982
|
) as unknown as Schema.Codec<GetPolicyResponse>;
|
|
1006
983
|
|
|
1007
984
|
export type GetPolicyError = DefaultErrors | PolicyNotFound | Forbidden;
|
|
@@ -1011,7 +988,7 @@ export const getPolicy: API.OperationMethod<
|
|
|
1011
988
|
GetPolicyResponse,
|
|
1012
989
|
GetPolicyError,
|
|
1013
990
|
Credentials | HttpClient.HttpClient
|
|
1014
|
-
> = /*@__PURE__*/
|
|
991
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1015
992
|
input: GetPolicyRequest,
|
|
1016
993
|
output: GetPolicyResponse,
|
|
1017
994
|
errors: [PolicyNotFound, Forbidden],
|
|
@@ -1022,13 +999,12 @@ export interface ListPoliciesRequest {
|
|
|
1022
999
|
zoneId: string;
|
|
1023
1000
|
}
|
|
1024
1001
|
|
|
1025
|
-
export const ListPoliciesRequest = /*@__PURE__*/
|
|
1026
|
-
(
|
|
1027
|
-
Schema.
|
|
1028
|
-
|
|
1029
|
-
})
|
|
1030
|
-
|
|
1031
|
-
),
|
|
1002
|
+
export const ListPoliciesRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1003
|
+
Schema.Struct({
|
|
1004
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1005
|
+
}).pipe(
|
|
1006
|
+
T.Http({ method: "GET", path: "/zones/{zone_id}/page_shield/policies" }),
|
|
1007
|
+
),
|
|
1032
1008
|
) as unknown as Schema.Codec<ListPoliciesRequest>;
|
|
1033
1009
|
|
|
1034
1010
|
export interface ListPoliciesResponse {
|
|
@@ -1042,11 +1018,10 @@ export interface ListPoliciesResponse {
|
|
|
1042
1018
|
}[];
|
|
1043
1019
|
}
|
|
1044
1020
|
|
|
1045
|
-
export const ListPoliciesResponse = /*@__PURE__*/
|
|
1046
|
-
(
|
|
1047
|
-
Schema.
|
|
1048
|
-
|
|
1049
|
-
}),
|
|
1021
|
+
export const ListPoliciesResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1022
|
+
Schema.Struct({
|
|
1023
|
+
result: Schema.Array(ListPoliciesResponseResult),
|
|
1024
|
+
}),
|
|
1050
1025
|
) as unknown as Schema.Codec<ListPoliciesResponse>;
|
|
1051
1026
|
|
|
1052
1027
|
export type ListPoliciesError = DefaultErrors | Forbidden;
|
|
@@ -1056,7 +1031,7 @@ export const listPolicies: API.PaginatedOperationMethod<
|
|
|
1056
1031
|
ListPoliciesResponse,
|
|
1057
1032
|
ListPoliciesError,
|
|
1058
1033
|
Credentials | HttpClient.HttpClient
|
|
1059
|
-
> = /*@__PURE__*/
|
|
1034
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
1060
1035
|
input: ListPoliciesRequest,
|
|
1061
1036
|
output: ListPoliciesResponse,
|
|
1062
1037
|
errors: [Forbidden],
|
|
@@ -1081,21 +1056,20 @@ export interface CreatePolicyRequest {
|
|
|
1081
1056
|
value: string;
|
|
1082
1057
|
}
|
|
1083
1058
|
|
|
1084
|
-
export const CreatePolicyRequest = /*@__PURE__*/
|
|
1085
|
-
(
|
|
1086
|
-
Schema.
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
})
|
|
1097
|
-
|
|
1098
|
-
),
|
|
1059
|
+
export const CreatePolicyRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1060
|
+
Schema.Struct({
|
|
1061
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1062
|
+
action: Schema.Union([
|
|
1063
|
+
Schema.Literals(["allow", "log", "add_reporting_directives"]),
|
|
1064
|
+
Schema.String,
|
|
1065
|
+
]),
|
|
1066
|
+
description: Schema.String,
|
|
1067
|
+
enabled: Schema.Boolean,
|
|
1068
|
+
expression: Schema.String,
|
|
1069
|
+
value: Schema.String,
|
|
1070
|
+
}).pipe(
|
|
1071
|
+
T.Http({ method: "POST", path: "/zones/{zone_id}/page_shield/policies" }),
|
|
1072
|
+
),
|
|
1099
1073
|
) as unknown as Schema.Codec<CreatePolicyRequest>;
|
|
1100
1074
|
|
|
1101
1075
|
export interface CreatePolicyResponse {
|
|
@@ -1113,19 +1087,18 @@ export interface CreatePolicyResponse {
|
|
|
1113
1087
|
value: string;
|
|
1114
1088
|
}
|
|
1115
1089
|
|
|
1116
|
-
export const CreatePolicyResponse = /*@__PURE__*/
|
|
1117
|
-
(
|
|
1118
|
-
Schema.
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
}).pipe(T.ResponsePath("result")),
|
|
1090
|
+
export const CreatePolicyResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1091
|
+
Schema.Struct({
|
|
1092
|
+
id: Schema.String,
|
|
1093
|
+
action: Schema.Union([
|
|
1094
|
+
Schema.Literals(["allow", "log", "add_reporting_directives"]),
|
|
1095
|
+
Schema.String,
|
|
1096
|
+
]),
|
|
1097
|
+
description: Schema.String,
|
|
1098
|
+
enabled: Schema.Boolean,
|
|
1099
|
+
expression: Schema.String,
|
|
1100
|
+
value: Schema.String,
|
|
1101
|
+
}).pipe(T.ResponsePath("result")),
|
|
1129
1102
|
) as unknown as Schema.Codec<CreatePolicyResponse>;
|
|
1130
1103
|
|
|
1131
1104
|
export type CreatePolicyError = DefaultErrors | PolicyQuotaExceeded | Forbidden;
|
|
@@ -1135,7 +1108,7 @@ export const createPolicy: API.OperationMethod<
|
|
|
1135
1108
|
CreatePolicyResponse,
|
|
1136
1109
|
CreatePolicyError,
|
|
1137
1110
|
Credentials | HttpClient.HttpClient
|
|
1138
|
-
> = /*@__PURE__*/
|
|
1111
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1139
1112
|
input: CreatePolicyRequest,
|
|
1140
1113
|
output: CreatePolicyResponse,
|
|
1141
1114
|
errors: [PolicyQuotaExceeded, Forbidden],
|
|
@@ -1157,27 +1130,26 @@ export interface UpdatePolicyRequest {
|
|
|
1157
1130
|
value?: string;
|
|
1158
1131
|
}
|
|
1159
1132
|
|
|
1160
|
-
export const UpdatePolicyRequest = /*@__PURE__*/
|
|
1161
|
-
(
|
|
1162
|
-
Schema.
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
Schema.
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
]),
|
|
1170
|
-
),
|
|
1171
|
-
description: Schema.optional(Schema.String),
|
|
1172
|
-
enabled: Schema.optional(Schema.Boolean),
|
|
1173
|
-
expression: Schema.optional(Schema.String),
|
|
1174
|
-
value: Schema.optional(Schema.String),
|
|
1175
|
-
}).pipe(
|
|
1176
|
-
T.Http({
|
|
1177
|
-
method: "PUT",
|
|
1178
|
-
path: "/zones/{zone_id}/page_shield/policies/{policyId}",
|
|
1179
|
-
}),
|
|
1133
|
+
export const UpdatePolicyRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1134
|
+
Schema.Struct({
|
|
1135
|
+
policyId: Schema.String.pipe(T.HttpPath("policyId")),
|
|
1136
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1137
|
+
action: Schema.optional(
|
|
1138
|
+
Schema.Union([
|
|
1139
|
+
Schema.Literals(["allow", "log", "add_reporting_directives"]),
|
|
1140
|
+
Schema.String,
|
|
1141
|
+
]),
|
|
1180
1142
|
),
|
|
1143
|
+
description: Schema.optional(Schema.String),
|
|
1144
|
+
enabled: Schema.optional(Schema.Boolean),
|
|
1145
|
+
expression: Schema.optional(Schema.String),
|
|
1146
|
+
value: Schema.optional(Schema.String),
|
|
1147
|
+
}).pipe(
|
|
1148
|
+
T.Http({
|
|
1149
|
+
method: "PUT",
|
|
1150
|
+
path: "/zones/{zone_id}/page_shield/policies/{policyId}",
|
|
1151
|
+
}),
|
|
1152
|
+
),
|
|
1181
1153
|
) as unknown as Schema.Codec<UpdatePolicyRequest>;
|
|
1182
1154
|
|
|
1183
1155
|
export interface UpdatePolicyResponse {
|
|
@@ -1195,19 +1167,18 @@ export interface UpdatePolicyResponse {
|
|
|
1195
1167
|
value: string;
|
|
1196
1168
|
}
|
|
1197
1169
|
|
|
1198
|
-
export const UpdatePolicyResponse = /*@__PURE__*/
|
|
1199
|
-
(
|
|
1200
|
-
Schema.
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
}).pipe(T.ResponsePath("result")),
|
|
1170
|
+
export const UpdatePolicyResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1171
|
+
Schema.Struct({
|
|
1172
|
+
id: Schema.String,
|
|
1173
|
+
action: Schema.Union([
|
|
1174
|
+
Schema.Literals(["allow", "log", "add_reporting_directives"]),
|
|
1175
|
+
Schema.String,
|
|
1176
|
+
]),
|
|
1177
|
+
description: Schema.String,
|
|
1178
|
+
enabled: Schema.Boolean,
|
|
1179
|
+
expression: Schema.String,
|
|
1180
|
+
value: Schema.String,
|
|
1181
|
+
}).pipe(T.ResponsePath("result")),
|
|
1211
1182
|
) as unknown as Schema.Codec<UpdatePolicyResponse>;
|
|
1212
1183
|
|
|
1213
1184
|
export type UpdatePolicyError = DefaultErrors | PolicyNotFound | Forbidden;
|
|
@@ -1217,7 +1188,7 @@ export const updatePolicy: API.OperationMethod<
|
|
|
1217
1188
|
UpdatePolicyResponse,
|
|
1218
1189
|
UpdatePolicyError,
|
|
1219
1190
|
Credentials | HttpClient.HttpClient
|
|
1220
|
-
> = /*@__PURE__*/
|
|
1191
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1221
1192
|
input: UpdatePolicyRequest,
|
|
1222
1193
|
output: UpdatePolicyResponse,
|
|
1223
1194
|
errors: [PolicyNotFound, Forbidden],
|
|
@@ -1229,22 +1200,21 @@ export interface DeletePolicyRequest {
|
|
|
1229
1200
|
zoneId: string;
|
|
1230
1201
|
}
|
|
1231
1202
|
|
|
1232
|
-
export const DeletePolicyRequest = /*@__PURE__*/
|
|
1233
|
-
(
|
|
1234
|
-
Schema.
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
),
|
|
1203
|
+
export const DeletePolicyRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1204
|
+
Schema.Struct({
|
|
1205
|
+
policyId: Schema.String.pipe(T.HttpPath("policyId")),
|
|
1206
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1207
|
+
}).pipe(
|
|
1208
|
+
T.Http({
|
|
1209
|
+
method: "DELETE",
|
|
1210
|
+
path: "/zones/{zone_id}/page_shield/policies/{policyId}",
|
|
1211
|
+
}),
|
|
1212
|
+
),
|
|
1243
1213
|
) as unknown as Schema.Codec<DeletePolicyRequest>;
|
|
1244
1214
|
|
|
1245
1215
|
export type DeletePolicyResponse = unknown;
|
|
1246
1216
|
|
|
1247
|
-
export const DeletePolicyResponse = /*@__PURE__*/
|
|
1217
|
+
export const DeletePolicyResponse = /*@__PURE__*/ Schema.suspend(
|
|
1248
1218
|
() => Schema.Unknown,
|
|
1249
1219
|
) as unknown as Schema.Codec<DeletePolicyResponse>;
|
|
1250
1220
|
|
|
@@ -1255,7 +1225,7 @@ export const deletePolicy: API.OperationMethod<
|
|
|
1255
1225
|
DeletePolicyResponse,
|
|
1256
1226
|
DeletePolicyError,
|
|
1257
1227
|
Credentials | HttpClient.HttpClient
|
|
1258
|
-
> = /*@__PURE__*/
|
|
1228
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1259
1229
|
input: DeletePolicyRequest,
|
|
1260
1230
|
output: DeletePolicyResponse,
|
|
1261
1231
|
errors: [PolicyNotFound, Forbidden],
|
|
@@ -1271,7 +1241,7 @@ export interface GetScriptRequest {
|
|
|
1271
1241
|
zoneId: string;
|
|
1272
1242
|
}
|
|
1273
1243
|
|
|
1274
|
-
export const GetScriptRequest = /*@__PURE__*/
|
|
1244
|
+
export const GetScriptRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1275
1245
|
Schema.Struct({
|
|
1276
1246
|
scriptId: Schema.String.pipe(T.HttpPath("scriptId")),
|
|
1277
1247
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
@@ -1328,81 +1298,76 @@ export interface GetScriptResponse {
|
|
|
1328
1298
|
| null;
|
|
1329
1299
|
}
|
|
1330
1300
|
|
|
1331
|
-
export const GetScriptResponse = /*@__PURE__*/
|
|
1332
|
-
(
|
|
1333
|
-
Schema.
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
),
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
),
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
),
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
),
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
urlReportedMalicious: "url_reported_malicious",
|
|
1402
|
-
versions: "versions",
|
|
1403
|
-
}),
|
|
1404
|
-
)
|
|
1405
|
-
.pipe(T.ResponsePath("result")),
|
|
1301
|
+
export const GetScriptResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1302
|
+
Schema.Struct({
|
|
1303
|
+
id: Schema.String,
|
|
1304
|
+
addedAt: Schema.String,
|
|
1305
|
+
firstSeenAt: Schema.String,
|
|
1306
|
+
host: Schema.String,
|
|
1307
|
+
lastSeenAt: Schema.String,
|
|
1308
|
+
url: Schema.String,
|
|
1309
|
+
urlContainsCdnCgiPath: Schema.Boolean,
|
|
1310
|
+
cryptominingScore: Schema.optional(
|
|
1311
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
1312
|
+
),
|
|
1313
|
+
dataflowScore: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1314
|
+
domainReportedMalicious: Schema.optional(
|
|
1315
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
1316
|
+
),
|
|
1317
|
+
fetchedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1318
|
+
firstPageUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1319
|
+
hash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1320
|
+
jsIntegrityScore: Schema.optional(
|
|
1321
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
1322
|
+
),
|
|
1323
|
+
magecartScore: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1324
|
+
maliciousDomainCategories: Schema.optional(
|
|
1325
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
1326
|
+
),
|
|
1327
|
+
maliciousUrlCategories: Schema.optional(
|
|
1328
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
1329
|
+
),
|
|
1330
|
+
malwareScore: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1331
|
+
obfuscationScore: Schema.optional(
|
|
1332
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
1333
|
+
),
|
|
1334
|
+
pageUrls: Schema.optional(
|
|
1335
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
1336
|
+
),
|
|
1337
|
+
urlReportedMalicious: Schema.optional(
|
|
1338
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
1339
|
+
),
|
|
1340
|
+
versions: Schema.optional(
|
|
1341
|
+
Schema.Union([Schema.Array(Version), Schema.Null]),
|
|
1342
|
+
),
|
|
1343
|
+
})
|
|
1344
|
+
.pipe(
|
|
1345
|
+
Schema.encodeKeys({
|
|
1346
|
+
id: "id",
|
|
1347
|
+
addedAt: "added_at",
|
|
1348
|
+
firstSeenAt: "first_seen_at",
|
|
1349
|
+
host: "host",
|
|
1350
|
+
lastSeenAt: "last_seen_at",
|
|
1351
|
+
url: "url",
|
|
1352
|
+
urlContainsCdnCgiPath: "url_contains_cdn_cgi_path",
|
|
1353
|
+
cryptominingScore: "cryptomining_score",
|
|
1354
|
+
dataflowScore: "dataflow_score",
|
|
1355
|
+
domainReportedMalicious: "domain_reported_malicious",
|
|
1356
|
+
fetchedAt: "fetched_at",
|
|
1357
|
+
firstPageUrl: "first_page_url",
|
|
1358
|
+
hash: "hash",
|
|
1359
|
+
jsIntegrityScore: "js_integrity_score",
|
|
1360
|
+
magecartScore: "magecart_score",
|
|
1361
|
+
maliciousDomainCategories: "malicious_domain_categories",
|
|
1362
|
+
maliciousUrlCategories: "malicious_url_categories",
|
|
1363
|
+
malwareScore: "malware_score",
|
|
1364
|
+
obfuscationScore: "obfuscation_score",
|
|
1365
|
+
pageUrls: "page_urls",
|
|
1366
|
+
urlReportedMalicious: "url_reported_malicious",
|
|
1367
|
+
versions: "versions",
|
|
1368
|
+
}),
|
|
1369
|
+
)
|
|
1370
|
+
.pipe(T.ResponsePath("result")),
|
|
1406
1371
|
) as unknown as Schema.Codec<GetScriptResponse>;
|
|
1407
1372
|
|
|
1408
1373
|
export type GetScriptError = DefaultErrors;
|
|
@@ -1412,7 +1377,7 @@ export const getScript: API.OperationMethod<
|
|
|
1412
1377
|
GetScriptResponse,
|
|
1413
1378
|
GetScriptError,
|
|
1414
1379
|
Credentials | HttpClient.HttpClient
|
|
1415
|
-
> = /*@__PURE__*/
|
|
1380
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1416
1381
|
input: GetScriptRequest,
|
|
1417
1382
|
output: GetScriptResponse,
|
|
1418
1383
|
errors: [],
|
|
@@ -1449,43 +1414,40 @@ export interface ListScriptsRequest {
|
|
|
1449
1414
|
urls?: string;
|
|
1450
1415
|
}
|
|
1451
1416
|
|
|
1452
|
-
export const ListScriptsRequest = /*@__PURE__*/
|
|
1453
|
-
(
|
|
1454
|
-
Schema.
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
1481
|
-
prioritizeMalicious: Schema.optional(Schema.Boolean).pipe(
|
|
1482
|
-
T.HttpQuery("prioritize_malicious"),
|
|
1483
|
-
),
|
|
1484
|
-
status: Schema.optional(Schema.String).pipe(T.HttpQuery("status")),
|
|
1485
|
-
urls: Schema.optional(Schema.String).pipe(T.HttpQuery("urls")),
|
|
1486
|
-
}).pipe(
|
|
1487
|
-
T.Http({ method: "GET", path: "/zones/{zone_id}/page_shield/scripts" }),
|
|
1417
|
+
export const ListScriptsRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1418
|
+
Schema.Struct({
|
|
1419
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
1420
|
+
direction: Schema.optional(
|
|
1421
|
+
Schema.Union([Schema.Literals(["asc", "desc"]), Schema.String]),
|
|
1422
|
+
).pipe(T.HttpQuery("direction")),
|
|
1423
|
+
excludeCdnCgi: Schema.optional(Schema.Boolean).pipe(
|
|
1424
|
+
T.HttpQuery("exclude_cdn_cgi"),
|
|
1425
|
+
),
|
|
1426
|
+
excludeDuplicates: Schema.optional(Schema.Boolean).pipe(
|
|
1427
|
+
T.HttpQuery("exclude_duplicates"),
|
|
1428
|
+
),
|
|
1429
|
+
excludeUrls: Schema.optional(Schema.String).pipe(
|
|
1430
|
+
T.HttpQuery("exclude_urls"),
|
|
1431
|
+
),
|
|
1432
|
+
export: Schema.optional(Schema.Literal("csv")).pipe(T.HttpQuery("export")),
|
|
1433
|
+
hosts: Schema.optional(Schema.String).pipe(T.HttpQuery("hosts")),
|
|
1434
|
+
orderBy: Schema.optional(
|
|
1435
|
+
Schema.Union([
|
|
1436
|
+
Schema.Literals(["first_seen_at", "last_seen_at"]),
|
|
1437
|
+
Schema.String,
|
|
1438
|
+
]),
|
|
1439
|
+
).pipe(T.HttpQuery("order_by")),
|
|
1440
|
+
page: Schema.optional(Schema.String).pipe(T.HttpQuery("page")),
|
|
1441
|
+
pageUrl: Schema.optional(Schema.String).pipe(T.HttpQuery("page_url")),
|
|
1442
|
+
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
1443
|
+
prioritizeMalicious: Schema.optional(Schema.Boolean).pipe(
|
|
1444
|
+
T.HttpQuery("prioritize_malicious"),
|
|
1488
1445
|
),
|
|
1446
|
+
status: Schema.optional(Schema.String).pipe(T.HttpQuery("status")),
|
|
1447
|
+
urls: Schema.optional(Schema.String).pipe(T.HttpQuery("urls")),
|
|
1448
|
+
}).pipe(
|
|
1449
|
+
T.Http({ method: "GET", path: "/zones/{zone_id}/page_shield/scripts" }),
|
|
1450
|
+
),
|
|
1489
1451
|
) as unknown as Schema.Codec<ListScriptsRequest>;
|
|
1490
1452
|
|
|
1491
1453
|
export interface ListScriptsResponse {
|
|
@@ -1514,11 +1476,10 @@ export interface ListScriptsResponse {
|
|
|
1514
1476
|
}[];
|
|
1515
1477
|
}
|
|
1516
1478
|
|
|
1517
|
-
export const ListScriptsResponse = /*@__PURE__*/
|
|
1518
|
-
(
|
|
1519
|
-
Schema.
|
|
1520
|
-
|
|
1521
|
-
}),
|
|
1479
|
+
export const ListScriptsResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1480
|
+
Schema.Struct({
|
|
1481
|
+
result: Schema.Array(ListScriptsResponseResult),
|
|
1482
|
+
}),
|
|
1522
1483
|
) as unknown as Schema.Codec<ListScriptsResponse>;
|
|
1523
1484
|
|
|
1524
1485
|
export type ListScriptsError = DefaultErrors;
|
|
@@ -1528,7 +1489,7 @@ export const listScripts: API.PaginatedOperationMethod<
|
|
|
1528
1489
|
ListScriptsResponse,
|
|
1529
1490
|
ListScriptsError,
|
|
1530
1491
|
Credentials | HttpClient.HttpClient
|
|
1531
|
-
> = /*@__PURE__*/
|
|
1492
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
1532
1493
|
input: ListScriptsRequest,
|
|
1533
1494
|
output: ListScriptsResponse,
|
|
1534
1495
|
errors: [],
|