@distilled.cloud/cloudflare 0.2.6 → 0.4.0
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 api-gateway
|
|
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";
|
|
@@ -44,7 +45,9 @@ export const GetConfigurationResponse =
|
|
|
44
45
|
type: Schema.Literal("jwt"),
|
|
45
46
|
}),
|
|
46
47
|
])),
|
|
47
|
-
})
|
|
48
|
+
})
|
|
49
|
+
.pipe(Schema.encodeKeys({ authIdCharacteristics: "auth_id_characteristics" }))
|
|
50
|
+
.pipe(T.ResponsePath("result"));
|
|
48
51
|
export const getConfiguration = API.make(() => ({
|
|
49
52
|
input: GetConfigurationRequest,
|
|
50
53
|
output: GetConfigurationResponse,
|
|
@@ -80,7 +83,9 @@ export const PutConfigurationResponse =
|
|
|
80
83
|
type: Schema.Literal("jwt"),
|
|
81
84
|
}),
|
|
82
85
|
])),
|
|
83
|
-
})
|
|
86
|
+
})
|
|
87
|
+
.pipe(Schema.encodeKeys({ authIdCharacteristics: "auth_id_characteristics" }))
|
|
88
|
+
.pipe(T.ResponsePath("result"));
|
|
84
89
|
export const putConfiguration = API.make(() => ({
|
|
85
90
|
input: PutConfigurationRequest,
|
|
86
91
|
output: PutConfigurationResponse,
|
|
@@ -92,7 +97,7 @@ export const GetDiscoveryRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
92
97
|
export const GetDiscoveryResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
93
98
|
schemas: Schema.Array(Schema.Unknown),
|
|
94
99
|
timestamp: Schema.String,
|
|
95
|
-
});
|
|
100
|
+
}).pipe(T.ResponsePath("result"));
|
|
96
101
|
export const getDiscovery = API.make(() => ({
|
|
97
102
|
input: GetDiscoveryRequest,
|
|
98
103
|
output: GetDiscoveryResponse,
|
|
@@ -141,7 +146,7 @@ export const PatchDiscoveryOperationResponse =
|
|
|
141
146
|
Schema.Literals(["review", "saved", "ignored"]),
|
|
142
147
|
Schema.Null,
|
|
143
148
|
])),
|
|
144
|
-
});
|
|
149
|
+
}).pipe(T.ResponsePath("result"));
|
|
145
150
|
export const patchDiscoveryOperation = API.make(() => ({
|
|
146
151
|
input: PatchDiscoveryOperationRequest,
|
|
147
152
|
output: PatchDiscoveryOperationResponse,
|
|
@@ -156,7 +161,7 @@ export const BulkPatchDiscoveryOperationsRequest =
|
|
|
156
161
|
path: "/zones/{zone_id}/api_gateway/discovery/operations",
|
|
157
162
|
}));
|
|
158
163
|
export const BulkPatchDiscoveryOperationsResponse =
|
|
159
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({});
|
|
164
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.ResponsePath("result"));
|
|
160
165
|
export const bulkPatchDiscoveryOperations = API.make(() => ({
|
|
161
166
|
input: BulkPatchDiscoveryOperationsRequest,
|
|
162
167
|
output: BulkPatchDiscoveryOperationsResponse,
|
|
@@ -174,7 +179,7 @@ export const CreateExpressionTemplateFallthroughResponse =
|
|
|
174
179
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
175
180
|
expression: Schema.String,
|
|
176
181
|
title: Schema.String,
|
|
177
|
-
});
|
|
182
|
+
}).pipe(T.ResponsePath("result"));
|
|
178
183
|
export const createExpressionTemplateFallthrough = API.make(() => ({
|
|
179
184
|
input: CreateExpressionTemplateFallthroughRequest,
|
|
180
185
|
output: CreateExpressionTemplateFallthroughResponse,
|
|
@@ -340,14 +345,16 @@ export const GetOperationResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
340
345
|
]),
|
|
341
346
|
Schema.Null,
|
|
342
347
|
])),
|
|
343
|
-
})
|
|
348
|
+
})
|
|
349
|
+
.pipe(Schema.encodeKeys({
|
|
344
350
|
endpoint: "endpoint",
|
|
345
351
|
host: "host",
|
|
346
352
|
lastUpdated: "last_updated",
|
|
347
353
|
method: "method",
|
|
348
354
|
operationId: "operation_id",
|
|
349
355
|
features: "features",
|
|
350
|
-
}))
|
|
356
|
+
}))
|
|
357
|
+
.pipe(T.ResponsePath("result"));
|
|
351
358
|
export const getOperation = API.make(() => ({
|
|
352
359
|
input: GetOperationRequest,
|
|
353
360
|
output: GetOperationResponse,
|
|
@@ -362,7 +369,235 @@ export const ListOperationsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
362
369
|
method: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpQuery("method")),
|
|
363
370
|
order: Schema.optional(Schema.Literals(["method", "host", "endpoint", "thresholds.$key"])).pipe(T.HttpQuery("order")),
|
|
364
371
|
}).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/api_gateway/operations" }));
|
|
365
|
-
export const ListOperationsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
372
|
+
export const ListOperationsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
373
|
+
result: Schema.Array(Schema.Struct({
|
|
374
|
+
endpoint: Schema.String,
|
|
375
|
+
host: Schema.String,
|
|
376
|
+
lastUpdated: Schema.String,
|
|
377
|
+
method: Schema.Literals([
|
|
378
|
+
"GET",
|
|
379
|
+
"POST",
|
|
380
|
+
"HEAD",
|
|
381
|
+
"OPTIONS",
|
|
382
|
+
"PUT",
|
|
383
|
+
"DELETE",
|
|
384
|
+
"CONNECT",
|
|
385
|
+
"PATCH",
|
|
386
|
+
"TRACE",
|
|
387
|
+
]),
|
|
388
|
+
operationId: Schema.String,
|
|
389
|
+
features: Schema.optional(Schema.Union([
|
|
390
|
+
Schema.Union([
|
|
391
|
+
Schema.Struct({
|
|
392
|
+
thresholds: Schema.optional(Schema.Union([
|
|
393
|
+
Schema.Struct({
|
|
394
|
+
authIdTokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
395
|
+
dataPoints: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
396
|
+
lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
397
|
+
p50: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
398
|
+
p90: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
399
|
+
p99: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
400
|
+
periodSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
401
|
+
requests: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
402
|
+
suggestedThreshold: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
403
|
+
}).pipe(Schema.encodeKeys({
|
|
404
|
+
authIdTokens: "auth_id_tokens",
|
|
405
|
+
dataPoints: "data_points",
|
|
406
|
+
lastUpdated: "last_updated",
|
|
407
|
+
p50: "p50",
|
|
408
|
+
p90: "p90",
|
|
409
|
+
p99: "p99",
|
|
410
|
+
periodSeconds: "period_seconds",
|
|
411
|
+
requests: "requests",
|
|
412
|
+
suggestedThreshold: "suggested_threshold",
|
|
413
|
+
})),
|
|
414
|
+
Schema.Null,
|
|
415
|
+
])),
|
|
416
|
+
}),
|
|
417
|
+
Schema.Struct({
|
|
418
|
+
parameterSchemas: Schema.Struct({
|
|
419
|
+
lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
420
|
+
parameterSchemas: Schema.optional(Schema.Union([
|
|
421
|
+
Schema.Struct({
|
|
422
|
+
parameters: Schema.optional(Schema.Union([
|
|
423
|
+
Schema.Array(Schema.Unknown),
|
|
424
|
+
Schema.Null,
|
|
425
|
+
])),
|
|
426
|
+
responses: Schema.optional(Schema.Null),
|
|
427
|
+
}),
|
|
428
|
+
Schema.Null,
|
|
429
|
+
])),
|
|
430
|
+
}).pipe(Schema.encodeKeys({
|
|
431
|
+
lastUpdated: "last_updated",
|
|
432
|
+
parameterSchemas: "parameter_schemas",
|
|
433
|
+
})),
|
|
434
|
+
}).pipe(Schema.encodeKeys({ parameterSchemas: "parameter_schemas" })),
|
|
435
|
+
Schema.Struct({
|
|
436
|
+
apiRouting: Schema.optional(Schema.Union([
|
|
437
|
+
Schema.Struct({
|
|
438
|
+
lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
439
|
+
route: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
440
|
+
}).pipe(Schema.encodeKeys({
|
|
441
|
+
lastUpdated: "last_updated",
|
|
442
|
+
route: "route",
|
|
443
|
+
})),
|
|
444
|
+
Schema.Null,
|
|
445
|
+
])),
|
|
446
|
+
}).pipe(Schema.encodeKeys({ apiRouting: "api_routing" })),
|
|
447
|
+
Schema.Struct({
|
|
448
|
+
confidenceIntervals: Schema.optional(Schema.Union([
|
|
449
|
+
Schema.Struct({
|
|
450
|
+
lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
451
|
+
suggestedThreshold: Schema.optional(Schema.Union([
|
|
452
|
+
Schema.Struct({
|
|
453
|
+
confidenceIntervals: Schema.optional(Schema.Union([
|
|
454
|
+
Schema.Struct({
|
|
455
|
+
p90: Schema.optional(Schema.Union([
|
|
456
|
+
Schema.Struct({
|
|
457
|
+
lower: Schema.optional(Schema.Union([
|
|
458
|
+
Schema.Number,
|
|
459
|
+
Schema.Null,
|
|
460
|
+
])),
|
|
461
|
+
upper: Schema.optional(Schema.Union([
|
|
462
|
+
Schema.Number,
|
|
463
|
+
Schema.Null,
|
|
464
|
+
])),
|
|
465
|
+
}),
|
|
466
|
+
Schema.Null,
|
|
467
|
+
])),
|
|
468
|
+
p95: Schema.optional(Schema.Union([
|
|
469
|
+
Schema.Struct({
|
|
470
|
+
lower: Schema.optional(Schema.Union([
|
|
471
|
+
Schema.Number,
|
|
472
|
+
Schema.Null,
|
|
473
|
+
])),
|
|
474
|
+
upper: Schema.optional(Schema.Union([
|
|
475
|
+
Schema.Number,
|
|
476
|
+
Schema.Null,
|
|
477
|
+
])),
|
|
478
|
+
}),
|
|
479
|
+
Schema.Null,
|
|
480
|
+
])),
|
|
481
|
+
p99: Schema.optional(Schema.Union([
|
|
482
|
+
Schema.Struct({
|
|
483
|
+
lower: Schema.optional(Schema.Union([
|
|
484
|
+
Schema.Number,
|
|
485
|
+
Schema.Null,
|
|
486
|
+
])),
|
|
487
|
+
upper: Schema.optional(Schema.Union([
|
|
488
|
+
Schema.Number,
|
|
489
|
+
Schema.Null,
|
|
490
|
+
])),
|
|
491
|
+
}),
|
|
492
|
+
Schema.Null,
|
|
493
|
+
])),
|
|
494
|
+
}),
|
|
495
|
+
Schema.Null,
|
|
496
|
+
])),
|
|
497
|
+
mean: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
498
|
+
}).pipe(Schema.encodeKeys({
|
|
499
|
+
confidenceIntervals: "confidence_intervals",
|
|
500
|
+
mean: "mean",
|
|
501
|
+
})),
|
|
502
|
+
Schema.Null,
|
|
503
|
+
])),
|
|
504
|
+
}).pipe(Schema.encodeKeys({
|
|
505
|
+
lastUpdated: "last_updated",
|
|
506
|
+
suggestedThreshold: "suggested_threshold",
|
|
507
|
+
})),
|
|
508
|
+
Schema.Null,
|
|
509
|
+
])),
|
|
510
|
+
}).pipe(Schema.encodeKeys({
|
|
511
|
+
confidenceIntervals: "confidence_intervals",
|
|
512
|
+
})),
|
|
513
|
+
Schema.Struct({
|
|
514
|
+
schemaInfo: Schema.optional(Schema.Union([
|
|
515
|
+
Schema.Struct({
|
|
516
|
+
activeSchema: Schema.optional(Schema.Union([
|
|
517
|
+
Schema.Struct({
|
|
518
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
519
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
520
|
+
isLearned: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
521
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
522
|
+
}).pipe(Schema.encodeKeys({
|
|
523
|
+
id: "id",
|
|
524
|
+
createdAt: "created_at",
|
|
525
|
+
isLearned: "is_learned",
|
|
526
|
+
name: "name",
|
|
527
|
+
})),
|
|
528
|
+
Schema.Null,
|
|
529
|
+
])),
|
|
530
|
+
learnedAvailable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
531
|
+
mitigationAction: Schema.optional(Schema.Union([
|
|
532
|
+
Schema.Literal("none"),
|
|
533
|
+
Schema.Literal("log"),
|
|
534
|
+
Schema.Literal("block"),
|
|
535
|
+
Schema.Null,
|
|
536
|
+
])),
|
|
537
|
+
}).pipe(Schema.encodeKeys({
|
|
538
|
+
activeSchema: "active_schema",
|
|
539
|
+
learnedAvailable: "learned_available",
|
|
540
|
+
mitigationAction: "mitigation_action",
|
|
541
|
+
})),
|
|
542
|
+
Schema.Null,
|
|
543
|
+
])),
|
|
544
|
+
}).pipe(Schema.encodeKeys({ schemaInfo: "schema_info" })),
|
|
545
|
+
]),
|
|
546
|
+
Schema.Null,
|
|
547
|
+
])),
|
|
548
|
+
}).pipe(Schema.encodeKeys({
|
|
549
|
+
endpoint: "endpoint",
|
|
550
|
+
host: "host",
|
|
551
|
+
lastUpdated: "last_updated",
|
|
552
|
+
method: "method",
|
|
553
|
+
operationId: "operation_id",
|
|
554
|
+
features: "features",
|
|
555
|
+
}))),
|
|
556
|
+
resultInfo: Schema.Struct({
|
|
557
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
558
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
559
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
560
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
561
|
+
}).pipe(Schema.encodeKeys({
|
|
562
|
+
count: "count",
|
|
563
|
+
page: "page",
|
|
564
|
+
perPage: "per_page",
|
|
565
|
+
totalCount: "total_count",
|
|
566
|
+
})),
|
|
567
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
568
|
+
export const listOperations = API.makePaginated(() => ({
|
|
569
|
+
input: ListOperationsRequest,
|
|
570
|
+
output: ListOperationsResponse,
|
|
571
|
+
errors: [],
|
|
572
|
+
pagination: {
|
|
573
|
+
mode: "page",
|
|
574
|
+
inputToken: "page",
|
|
575
|
+
outputToken: "resultInfo.page",
|
|
576
|
+
items: "result",
|
|
577
|
+
pageSize: "perPage",
|
|
578
|
+
},
|
|
579
|
+
}));
|
|
580
|
+
export const CreateOperationRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
581
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
582
|
+
endpoint: Schema.String,
|
|
583
|
+
host: Schema.String,
|
|
584
|
+
method: Schema.Literals([
|
|
585
|
+
"GET",
|
|
586
|
+
"POST",
|
|
587
|
+
"HEAD",
|
|
588
|
+
"OPTIONS",
|
|
589
|
+
"PUT",
|
|
590
|
+
"DELETE",
|
|
591
|
+
"CONNECT",
|
|
592
|
+
"PATCH",
|
|
593
|
+
"TRACE",
|
|
594
|
+
]),
|
|
595
|
+
}).pipe(T.Http({
|
|
596
|
+
method: "POST",
|
|
597
|
+
path: "/zones/{zone_id}/api_gateway/operations/item",
|
|
598
|
+
}));
|
|
599
|
+
export const CreateOperationResponse =
|
|
600
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
366
601
|
endpoint: Schema.String,
|
|
367
602
|
host: Schema.String,
|
|
368
603
|
lastUpdated: Schema.String,
|
|
@@ -532,230 +767,29 @@ export const ListOperationsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(S
|
|
|
532
767
|
]),
|
|
533
768
|
Schema.Null,
|
|
534
769
|
])),
|
|
535
|
-
})
|
|
770
|
+
})
|
|
771
|
+
.pipe(Schema.encodeKeys({
|
|
536
772
|
endpoint: "endpoint",
|
|
537
773
|
host: "host",
|
|
538
774
|
lastUpdated: "last_updated",
|
|
539
775
|
method: "method",
|
|
540
776
|
operationId: "operation_id",
|
|
541
777
|
features: "features",
|
|
542
|
-
}))
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
778
|
+
}))
|
|
779
|
+
.pipe(T.ResponsePath("result"));
|
|
780
|
+
export const createOperation = API.make(() => ({
|
|
781
|
+
input: CreateOperationRequest,
|
|
782
|
+
output: CreateOperationResponse,
|
|
783
|
+
errors: [InvalidObjectIdentifier],
|
|
547
784
|
}));
|
|
548
|
-
export const
|
|
785
|
+
export const DeleteOperationRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
786
|
+
operationId: Schema.String.pipe(T.HttpPath("operationId")),
|
|
549
787
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
550
|
-
endpoint: Schema.String,
|
|
551
|
-
host: Schema.String,
|
|
552
|
-
method: Schema.Literals([
|
|
553
|
-
"GET",
|
|
554
|
-
"POST",
|
|
555
|
-
"HEAD",
|
|
556
|
-
"OPTIONS",
|
|
557
|
-
"PUT",
|
|
558
|
-
"DELETE",
|
|
559
|
-
"CONNECT",
|
|
560
|
-
"PATCH",
|
|
561
|
-
"TRACE",
|
|
562
|
-
]),
|
|
563
788
|
}).pipe(T.Http({
|
|
564
|
-
method: "
|
|
565
|
-
path: "/zones/{zone_id}/api_gateway/operations/
|
|
789
|
+
method: "DELETE",
|
|
790
|
+
path: "/zones/{zone_id}/api_gateway/operations/{operationId}",
|
|
566
791
|
}));
|
|
567
|
-
export const
|
|
568
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
569
|
-
endpoint: Schema.String,
|
|
570
|
-
host: Schema.String,
|
|
571
|
-
lastUpdated: Schema.String,
|
|
572
|
-
method: Schema.Literals([
|
|
573
|
-
"GET",
|
|
574
|
-
"POST",
|
|
575
|
-
"HEAD",
|
|
576
|
-
"OPTIONS",
|
|
577
|
-
"PUT",
|
|
578
|
-
"DELETE",
|
|
579
|
-
"CONNECT",
|
|
580
|
-
"PATCH",
|
|
581
|
-
"TRACE",
|
|
582
|
-
]),
|
|
583
|
-
operationId: Schema.String,
|
|
584
|
-
features: Schema.optional(Schema.Union([
|
|
585
|
-
Schema.Union([
|
|
586
|
-
Schema.Struct({
|
|
587
|
-
thresholds: Schema.optional(Schema.Union([
|
|
588
|
-
Schema.Struct({
|
|
589
|
-
authIdTokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
590
|
-
dataPoints: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
591
|
-
lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
592
|
-
p50: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
593
|
-
p90: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
594
|
-
p99: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
595
|
-
periodSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
596
|
-
requests: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
597
|
-
suggestedThreshold: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
598
|
-
}).pipe(Schema.encodeKeys({
|
|
599
|
-
authIdTokens: "auth_id_tokens",
|
|
600
|
-
dataPoints: "data_points",
|
|
601
|
-
lastUpdated: "last_updated",
|
|
602
|
-
p50: "p50",
|
|
603
|
-
p90: "p90",
|
|
604
|
-
p99: "p99",
|
|
605
|
-
periodSeconds: "period_seconds",
|
|
606
|
-
requests: "requests",
|
|
607
|
-
suggestedThreshold: "suggested_threshold",
|
|
608
|
-
})),
|
|
609
|
-
Schema.Null,
|
|
610
|
-
])),
|
|
611
|
-
}),
|
|
612
|
-
Schema.Struct({
|
|
613
|
-
parameterSchemas: Schema.Struct({
|
|
614
|
-
lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
615
|
-
parameterSchemas: Schema.optional(Schema.Union([
|
|
616
|
-
Schema.Struct({
|
|
617
|
-
parameters: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
|
|
618
|
-
responses: Schema.optional(Schema.Null),
|
|
619
|
-
}),
|
|
620
|
-
Schema.Null,
|
|
621
|
-
])),
|
|
622
|
-
}).pipe(Schema.encodeKeys({
|
|
623
|
-
lastUpdated: "last_updated",
|
|
624
|
-
parameterSchemas: "parameter_schemas",
|
|
625
|
-
})),
|
|
626
|
-
}).pipe(Schema.encodeKeys({ parameterSchemas: "parameter_schemas" })),
|
|
627
|
-
Schema.Struct({
|
|
628
|
-
apiRouting: Schema.optional(Schema.Union([
|
|
629
|
-
Schema.Struct({
|
|
630
|
-
lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
631
|
-
route: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
632
|
-
}).pipe(Schema.encodeKeys({
|
|
633
|
-
lastUpdated: "last_updated",
|
|
634
|
-
route: "route",
|
|
635
|
-
})),
|
|
636
|
-
Schema.Null,
|
|
637
|
-
])),
|
|
638
|
-
}).pipe(Schema.encodeKeys({ apiRouting: "api_routing" })),
|
|
639
|
-
Schema.Struct({
|
|
640
|
-
confidenceIntervals: Schema.optional(Schema.Union([
|
|
641
|
-
Schema.Struct({
|
|
642
|
-
lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
643
|
-
suggestedThreshold: Schema.optional(Schema.Union([
|
|
644
|
-
Schema.Struct({
|
|
645
|
-
confidenceIntervals: Schema.optional(Schema.Union([
|
|
646
|
-
Schema.Struct({
|
|
647
|
-
p90: Schema.optional(Schema.Union([
|
|
648
|
-
Schema.Struct({
|
|
649
|
-
lower: Schema.optional(Schema.Union([
|
|
650
|
-
Schema.Number,
|
|
651
|
-
Schema.Null,
|
|
652
|
-
])),
|
|
653
|
-
upper: Schema.optional(Schema.Union([
|
|
654
|
-
Schema.Number,
|
|
655
|
-
Schema.Null,
|
|
656
|
-
])),
|
|
657
|
-
}),
|
|
658
|
-
Schema.Null,
|
|
659
|
-
])),
|
|
660
|
-
p95: Schema.optional(Schema.Union([
|
|
661
|
-
Schema.Struct({
|
|
662
|
-
lower: Schema.optional(Schema.Union([
|
|
663
|
-
Schema.Number,
|
|
664
|
-
Schema.Null,
|
|
665
|
-
])),
|
|
666
|
-
upper: Schema.optional(Schema.Union([
|
|
667
|
-
Schema.Number,
|
|
668
|
-
Schema.Null,
|
|
669
|
-
])),
|
|
670
|
-
}),
|
|
671
|
-
Schema.Null,
|
|
672
|
-
])),
|
|
673
|
-
p99: Schema.optional(Schema.Union([
|
|
674
|
-
Schema.Struct({
|
|
675
|
-
lower: Schema.optional(Schema.Union([
|
|
676
|
-
Schema.Number,
|
|
677
|
-
Schema.Null,
|
|
678
|
-
])),
|
|
679
|
-
upper: Schema.optional(Schema.Union([
|
|
680
|
-
Schema.Number,
|
|
681
|
-
Schema.Null,
|
|
682
|
-
])),
|
|
683
|
-
}),
|
|
684
|
-
Schema.Null,
|
|
685
|
-
])),
|
|
686
|
-
}),
|
|
687
|
-
Schema.Null,
|
|
688
|
-
])),
|
|
689
|
-
mean: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
690
|
-
}).pipe(Schema.encodeKeys({
|
|
691
|
-
confidenceIntervals: "confidence_intervals",
|
|
692
|
-
mean: "mean",
|
|
693
|
-
})),
|
|
694
|
-
Schema.Null,
|
|
695
|
-
])),
|
|
696
|
-
}).pipe(Schema.encodeKeys({
|
|
697
|
-
lastUpdated: "last_updated",
|
|
698
|
-
suggestedThreshold: "suggested_threshold",
|
|
699
|
-
})),
|
|
700
|
-
Schema.Null,
|
|
701
|
-
])),
|
|
702
|
-
}).pipe(Schema.encodeKeys({ confidenceIntervals: "confidence_intervals" })),
|
|
703
|
-
Schema.Struct({
|
|
704
|
-
schemaInfo: Schema.optional(Schema.Union([
|
|
705
|
-
Schema.Struct({
|
|
706
|
-
activeSchema: Schema.optional(Schema.Union([
|
|
707
|
-
Schema.Struct({
|
|
708
|
-
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
709
|
-
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
710
|
-
isLearned: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
711
|
-
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
712
|
-
}).pipe(Schema.encodeKeys({
|
|
713
|
-
id: "id",
|
|
714
|
-
createdAt: "created_at",
|
|
715
|
-
isLearned: "is_learned",
|
|
716
|
-
name: "name",
|
|
717
|
-
})),
|
|
718
|
-
Schema.Null,
|
|
719
|
-
])),
|
|
720
|
-
learnedAvailable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
721
|
-
mitigationAction: Schema.optional(Schema.Union([
|
|
722
|
-
Schema.Literal("none"),
|
|
723
|
-
Schema.Literal("log"),
|
|
724
|
-
Schema.Literal("block"),
|
|
725
|
-
Schema.Null,
|
|
726
|
-
])),
|
|
727
|
-
}).pipe(Schema.encodeKeys({
|
|
728
|
-
activeSchema: "active_schema",
|
|
729
|
-
learnedAvailable: "learned_available",
|
|
730
|
-
mitigationAction: "mitigation_action",
|
|
731
|
-
})),
|
|
732
|
-
Schema.Null,
|
|
733
|
-
])),
|
|
734
|
-
}).pipe(Schema.encodeKeys({ schemaInfo: "schema_info" })),
|
|
735
|
-
]),
|
|
736
|
-
Schema.Null,
|
|
737
|
-
])),
|
|
738
|
-
}).pipe(Schema.encodeKeys({
|
|
739
|
-
endpoint: "endpoint",
|
|
740
|
-
host: "host",
|
|
741
|
-
lastUpdated: "last_updated",
|
|
742
|
-
method: "method",
|
|
743
|
-
operationId: "operation_id",
|
|
744
|
-
features: "features",
|
|
745
|
-
}));
|
|
746
|
-
export const createOperation = API.make(() => ({
|
|
747
|
-
input: CreateOperationRequest,
|
|
748
|
-
output: CreateOperationResponse,
|
|
749
|
-
errors: [InvalidObjectIdentifier],
|
|
750
|
-
}));
|
|
751
|
-
export const DeleteOperationRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
752
|
-
operationId: Schema.String.pipe(T.HttpPath("operationId")),
|
|
753
|
-
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
754
|
-
}).pipe(T.Http({
|
|
755
|
-
method: "DELETE",
|
|
756
|
-
path: "/zones/{zone_id}/api_gateway/operations/{operationId}",
|
|
757
|
-
}));
|
|
758
|
-
export const DeleteOperationResponse =
|
|
792
|
+
export const DeleteOperationResponse =
|
|
759
793
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
760
794
|
errors: Schema.Unknown,
|
|
761
795
|
messages: Schema.Unknown,
|
|
@@ -786,193 +820,199 @@ export const BulkCreateOperationsRequest =
|
|
|
786
820
|
})).pipe(T.HttpBody()),
|
|
787
821
|
}).pipe(T.Http({ method: "POST", path: "/zones/{zone_id}/api_gateway/operations" }));
|
|
788
822
|
export const BulkCreateOperationsResponse =
|
|
789
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
Schema.Union([
|
|
807
|
-
Schema.
|
|
808
|
-
|
|
809
|
-
Schema.
|
|
810
|
-
authIdTokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
811
|
-
dataPoints: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
812
|
-
lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
813
|
-
p50: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
814
|
-
p90: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
815
|
-
p99: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
816
|
-
periodSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
817
|
-
requests: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
818
|
-
suggestedThreshold: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
819
|
-
}).pipe(Schema.encodeKeys({
|
|
820
|
-
authIdTokens: "auth_id_tokens",
|
|
821
|
-
dataPoints: "data_points",
|
|
822
|
-
lastUpdated: "last_updated",
|
|
823
|
-
p50: "p50",
|
|
824
|
-
p90: "p90",
|
|
825
|
-
p99: "p99",
|
|
826
|
-
periodSeconds: "period_seconds",
|
|
827
|
-
requests: "requests",
|
|
828
|
-
suggestedThreshold: "suggested_threshold",
|
|
829
|
-
})),
|
|
830
|
-
Schema.Null,
|
|
831
|
-
])),
|
|
832
|
-
}),
|
|
833
|
-
Schema.Struct({
|
|
834
|
-
parameterSchemas: Schema.Struct({
|
|
835
|
-
lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
836
|
-
parameterSchemas: Schema.optional(Schema.Union([
|
|
823
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
824
|
+
result: Schema.Array(Schema.Struct({
|
|
825
|
+
endpoint: Schema.String,
|
|
826
|
+
host: Schema.String,
|
|
827
|
+
lastUpdated: Schema.String,
|
|
828
|
+
method: Schema.Literals([
|
|
829
|
+
"GET",
|
|
830
|
+
"POST",
|
|
831
|
+
"HEAD",
|
|
832
|
+
"OPTIONS",
|
|
833
|
+
"PUT",
|
|
834
|
+
"DELETE",
|
|
835
|
+
"CONNECT",
|
|
836
|
+
"PATCH",
|
|
837
|
+
"TRACE",
|
|
838
|
+
]),
|
|
839
|
+
operationId: Schema.String,
|
|
840
|
+
features: Schema.optional(Schema.Union([
|
|
841
|
+
Schema.Union([
|
|
842
|
+
Schema.Struct({
|
|
843
|
+
thresholds: Schema.optional(Schema.Union([
|
|
837
844
|
Schema.Struct({
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
])),
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
Schema.Struct({
|
|
864
|
-
confidenceIntervals: Schema.optional(Schema.Union([
|
|
865
|
-
Schema.Struct({
|
|
845
|
+
authIdTokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
846
|
+
dataPoints: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
847
|
+
lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
848
|
+
p50: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
849
|
+
p90: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
850
|
+
p99: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
851
|
+
periodSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
852
|
+
requests: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
853
|
+
suggestedThreshold: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
854
|
+
}).pipe(Schema.encodeKeys({
|
|
855
|
+
authIdTokens: "auth_id_tokens",
|
|
856
|
+
dataPoints: "data_points",
|
|
857
|
+
lastUpdated: "last_updated",
|
|
858
|
+
p50: "p50",
|
|
859
|
+
p90: "p90",
|
|
860
|
+
p99: "p99",
|
|
861
|
+
periodSeconds: "period_seconds",
|
|
862
|
+
requests: "requests",
|
|
863
|
+
suggestedThreshold: "suggested_threshold",
|
|
864
|
+
})),
|
|
865
|
+
Schema.Null,
|
|
866
|
+
])),
|
|
867
|
+
}),
|
|
868
|
+
Schema.Struct({
|
|
869
|
+
parameterSchemas: Schema.Struct({
|
|
866
870
|
lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
867
|
-
|
|
871
|
+
parameterSchemas: Schema.optional(Schema.Union([
|
|
868
872
|
Schema.Struct({
|
|
869
|
-
|
|
870
|
-
Schema.
|
|
871
|
-
p90: Schema.optional(Schema.Union([
|
|
872
|
-
Schema.Struct({
|
|
873
|
-
lower: Schema.optional(Schema.Union([
|
|
874
|
-
Schema.Number,
|
|
875
|
-
Schema.Null,
|
|
876
|
-
])),
|
|
877
|
-
upper: Schema.optional(Schema.Union([
|
|
878
|
-
Schema.Number,
|
|
879
|
-
Schema.Null,
|
|
880
|
-
])),
|
|
881
|
-
}),
|
|
882
|
-
Schema.Null,
|
|
883
|
-
])),
|
|
884
|
-
p95: Schema.optional(Schema.Union([
|
|
885
|
-
Schema.Struct({
|
|
886
|
-
lower: Schema.optional(Schema.Union([
|
|
887
|
-
Schema.Number,
|
|
888
|
-
Schema.Null,
|
|
889
|
-
])),
|
|
890
|
-
upper: Schema.optional(Schema.Union([
|
|
891
|
-
Schema.Number,
|
|
892
|
-
Schema.Null,
|
|
893
|
-
])),
|
|
894
|
-
}),
|
|
895
|
-
Schema.Null,
|
|
896
|
-
])),
|
|
897
|
-
p99: Schema.optional(Schema.Union([
|
|
898
|
-
Schema.Struct({
|
|
899
|
-
lower: Schema.optional(Schema.Union([
|
|
900
|
-
Schema.Number,
|
|
901
|
-
Schema.Null,
|
|
902
|
-
])),
|
|
903
|
-
upper: Schema.optional(Schema.Union([
|
|
904
|
-
Schema.Number,
|
|
905
|
-
Schema.Null,
|
|
906
|
-
])),
|
|
907
|
-
}),
|
|
908
|
-
Schema.Null,
|
|
909
|
-
])),
|
|
910
|
-
}),
|
|
873
|
+
parameters: Schema.optional(Schema.Union([
|
|
874
|
+
Schema.Array(Schema.Unknown),
|
|
911
875
|
Schema.Null,
|
|
912
876
|
])),
|
|
913
|
-
|
|
914
|
-
})
|
|
915
|
-
confidenceIntervals: "confidence_intervals",
|
|
916
|
-
mean: "mean",
|
|
917
|
-
})),
|
|
877
|
+
responses: Schema.optional(Schema.Null),
|
|
878
|
+
}),
|
|
918
879
|
Schema.Null,
|
|
919
880
|
])),
|
|
920
881
|
}).pipe(Schema.encodeKeys({
|
|
921
882
|
lastUpdated: "last_updated",
|
|
922
|
-
|
|
923
|
-
})),
|
|
924
|
-
Schema.Null,
|
|
925
|
-
])),
|
|
926
|
-
}).pipe(Schema.encodeKeys({
|
|
927
|
-
confidenceIntervals: "confidence_intervals",
|
|
928
|
-
})),
|
|
929
|
-
Schema.Struct({
|
|
930
|
-
schemaInfo: Schema.optional(Schema.Union([
|
|
931
|
-
Schema.Struct({
|
|
932
|
-
activeSchema: Schema.optional(Schema.Union([
|
|
933
|
-
Schema.Struct({
|
|
934
|
-
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
935
|
-
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
936
|
-
isLearned: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
937
|
-
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
938
|
-
}).pipe(Schema.encodeKeys({
|
|
939
|
-
id: "id",
|
|
940
|
-
createdAt: "created_at",
|
|
941
|
-
isLearned: "is_learned",
|
|
942
|
-
name: "name",
|
|
943
|
-
})),
|
|
944
|
-
Schema.Null,
|
|
945
|
-
])),
|
|
946
|
-
learnedAvailable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
947
|
-
mitigationAction: Schema.optional(Schema.Union([
|
|
948
|
-
Schema.Literal("none"),
|
|
949
|
-
Schema.Literal("log"),
|
|
950
|
-
Schema.Literal("block"),
|
|
951
|
-
Schema.Null,
|
|
952
|
-
])),
|
|
953
|
-
}).pipe(Schema.encodeKeys({
|
|
954
|
-
activeSchema: "active_schema",
|
|
955
|
-
learnedAvailable: "learned_available",
|
|
956
|
-
mitigationAction: "mitigation_action",
|
|
883
|
+
parameterSchemas: "parameter_schemas",
|
|
957
884
|
})),
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
}).pipe(Schema.encodeKeys({
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
885
|
+
}).pipe(Schema.encodeKeys({ parameterSchemas: "parameter_schemas" })),
|
|
886
|
+
Schema.Struct({
|
|
887
|
+
apiRouting: Schema.optional(Schema.Union([
|
|
888
|
+
Schema.Struct({
|
|
889
|
+
lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
890
|
+
route: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
891
|
+
}).pipe(Schema.encodeKeys({
|
|
892
|
+
lastUpdated: "last_updated",
|
|
893
|
+
route: "route",
|
|
894
|
+
})),
|
|
895
|
+
Schema.Null,
|
|
896
|
+
])),
|
|
897
|
+
}).pipe(Schema.encodeKeys({ apiRouting: "api_routing" })),
|
|
898
|
+
Schema.Struct({
|
|
899
|
+
confidenceIntervals: Schema.optional(Schema.Union([
|
|
900
|
+
Schema.Struct({
|
|
901
|
+
lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
902
|
+
suggestedThreshold: Schema.optional(Schema.Union([
|
|
903
|
+
Schema.Struct({
|
|
904
|
+
confidenceIntervals: Schema.optional(Schema.Union([
|
|
905
|
+
Schema.Struct({
|
|
906
|
+
p90: Schema.optional(Schema.Union([
|
|
907
|
+
Schema.Struct({
|
|
908
|
+
lower: Schema.optional(Schema.Union([
|
|
909
|
+
Schema.Number,
|
|
910
|
+
Schema.Null,
|
|
911
|
+
])),
|
|
912
|
+
upper: Schema.optional(Schema.Union([
|
|
913
|
+
Schema.Number,
|
|
914
|
+
Schema.Null,
|
|
915
|
+
])),
|
|
916
|
+
}),
|
|
917
|
+
Schema.Null,
|
|
918
|
+
])),
|
|
919
|
+
p95: Schema.optional(Schema.Union([
|
|
920
|
+
Schema.Struct({
|
|
921
|
+
lower: Schema.optional(Schema.Union([
|
|
922
|
+
Schema.Number,
|
|
923
|
+
Schema.Null,
|
|
924
|
+
])),
|
|
925
|
+
upper: Schema.optional(Schema.Union([
|
|
926
|
+
Schema.Number,
|
|
927
|
+
Schema.Null,
|
|
928
|
+
])),
|
|
929
|
+
}),
|
|
930
|
+
Schema.Null,
|
|
931
|
+
])),
|
|
932
|
+
p99: Schema.optional(Schema.Union([
|
|
933
|
+
Schema.Struct({
|
|
934
|
+
lower: Schema.optional(Schema.Union([
|
|
935
|
+
Schema.Number,
|
|
936
|
+
Schema.Null,
|
|
937
|
+
])),
|
|
938
|
+
upper: Schema.optional(Schema.Union([
|
|
939
|
+
Schema.Number,
|
|
940
|
+
Schema.Null,
|
|
941
|
+
])),
|
|
942
|
+
}),
|
|
943
|
+
Schema.Null,
|
|
944
|
+
])),
|
|
945
|
+
}),
|
|
946
|
+
Schema.Null,
|
|
947
|
+
])),
|
|
948
|
+
mean: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
949
|
+
}).pipe(Schema.encodeKeys({
|
|
950
|
+
confidenceIntervals: "confidence_intervals",
|
|
951
|
+
mean: "mean",
|
|
952
|
+
})),
|
|
953
|
+
Schema.Null,
|
|
954
|
+
])),
|
|
955
|
+
}).pipe(Schema.encodeKeys({
|
|
956
|
+
lastUpdated: "last_updated",
|
|
957
|
+
suggestedThreshold: "suggested_threshold",
|
|
958
|
+
})),
|
|
959
|
+
Schema.Null,
|
|
960
|
+
])),
|
|
961
|
+
}).pipe(Schema.encodeKeys({
|
|
962
|
+
confidenceIntervals: "confidence_intervals",
|
|
963
|
+
})),
|
|
964
|
+
Schema.Struct({
|
|
965
|
+
schemaInfo: Schema.optional(Schema.Union([
|
|
966
|
+
Schema.Struct({
|
|
967
|
+
activeSchema: Schema.optional(Schema.Union([
|
|
968
|
+
Schema.Struct({
|
|
969
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
970
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
971
|
+
isLearned: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
972
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
973
|
+
}).pipe(Schema.encodeKeys({
|
|
974
|
+
id: "id",
|
|
975
|
+
createdAt: "created_at",
|
|
976
|
+
isLearned: "is_learned",
|
|
977
|
+
name: "name",
|
|
978
|
+
})),
|
|
979
|
+
Schema.Null,
|
|
980
|
+
])),
|
|
981
|
+
learnedAvailable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
982
|
+
mitigationAction: Schema.optional(Schema.Union([
|
|
983
|
+
Schema.Literal("none"),
|
|
984
|
+
Schema.Literal("log"),
|
|
985
|
+
Schema.Literal("block"),
|
|
986
|
+
Schema.Null,
|
|
987
|
+
])),
|
|
988
|
+
}).pipe(Schema.encodeKeys({
|
|
989
|
+
activeSchema: "active_schema",
|
|
990
|
+
learnedAvailable: "learned_available",
|
|
991
|
+
mitigationAction: "mitigation_action",
|
|
992
|
+
})),
|
|
993
|
+
Schema.Null,
|
|
994
|
+
])),
|
|
995
|
+
}).pipe(Schema.encodeKeys({ schemaInfo: "schema_info" })),
|
|
996
|
+
]),
|
|
997
|
+
Schema.Null,
|
|
998
|
+
])),
|
|
999
|
+
}).pipe(Schema.encodeKeys({
|
|
1000
|
+
endpoint: "endpoint",
|
|
1001
|
+
host: "host",
|
|
1002
|
+
lastUpdated: "last_updated",
|
|
1003
|
+
method: "method",
|
|
1004
|
+
operationId: "operation_id",
|
|
1005
|
+
features: "features",
|
|
1006
|
+
}))),
|
|
1007
|
+
});
|
|
1008
|
+
export const bulkCreateOperations = API.makePaginated(() => ({
|
|
973
1009
|
input: BulkCreateOperationsRequest,
|
|
974
1010
|
output: BulkCreateOperationsResponse,
|
|
975
1011
|
errors: [],
|
|
1012
|
+
pagination: {
|
|
1013
|
+
mode: "single",
|
|
1014
|
+
items: "result",
|
|
1015
|
+
},
|
|
976
1016
|
}));
|
|
977
1017
|
export const BulkDeleteOperationsRequest =
|
|
978
1018
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -1059,7 +1099,7 @@ export const PatchOperationSchemaValidationRequest =
|
|
|
1059
1099
|
path: "/zones/{zone_id}/api_gateway/operations/schema_validation",
|
|
1060
1100
|
}));
|
|
1061
1101
|
export const PatchOperationSchemaValidationResponse =
|
|
1062
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({});
|
|
1102
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.ResponsePath("result"));
|
|
1063
1103
|
export const patchOperationSchemaValidation = API.make(() => ({
|
|
1064
1104
|
input: PatchOperationSchemaValidationRequest,
|
|
1065
1105
|
output: PatchOperationSchemaValidationResponse,
|
|
@@ -1073,7 +1113,7 @@ export const ListSchemasRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1073
1113
|
export const ListSchemasResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1074
1114
|
schemas: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
|
|
1075
1115
|
timestamp: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1076
|
-
});
|
|
1116
|
+
}).pipe(T.ResponsePath("result"));
|
|
1077
1117
|
export const listSchemas = API.make(() => ({
|
|
1078
1118
|
input: ListSchemasRequest,
|
|
1079
1119
|
output: ListSchemasResponse,
|
|
@@ -1163,14 +1203,16 @@ export const GetUserSchemaResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1163
1203
|
schemaId: Schema.String,
|
|
1164
1204
|
source: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1165
1205
|
validationEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1166
|
-
})
|
|
1206
|
+
})
|
|
1207
|
+
.pipe(Schema.encodeKeys({
|
|
1167
1208
|
createdAt: "created_at",
|
|
1168
1209
|
kind: "kind",
|
|
1169
1210
|
name: "name",
|
|
1170
1211
|
schemaId: "schema_id",
|
|
1171
1212
|
source: "source",
|
|
1172
1213
|
validationEnabled: "validation_enabled",
|
|
1173
|
-
}))
|
|
1214
|
+
}))
|
|
1215
|
+
.pipe(T.ResponsePath("result"));
|
|
1174
1216
|
export const getUserSchema = API.make(() => ({
|
|
1175
1217
|
input: GetUserSchemaRequest,
|
|
1176
1218
|
output: GetUserSchemaResponse,
|
|
@@ -1181,25 +1223,46 @@ export const ListUserSchemasRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
1181
1223
|
omitSource: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("omit_source")),
|
|
1182
1224
|
validationEnabled: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("validation_enabled")),
|
|
1183
1225
|
}).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/api_gateway/user_schemas" }));
|
|
1184
|
-
export const ListUserSchemasResponse =
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1226
|
+
export const ListUserSchemasResponse =
|
|
1227
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1228
|
+
result: Schema.Array(Schema.Struct({
|
|
1229
|
+
createdAt: Schema.String,
|
|
1230
|
+
kind: Schema.Literal("openapi_v3"),
|
|
1231
|
+
name: Schema.String,
|
|
1232
|
+
schemaId: Schema.String,
|
|
1233
|
+
source: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1234
|
+
validationEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1235
|
+
}).pipe(Schema.encodeKeys({
|
|
1236
|
+
createdAt: "created_at",
|
|
1237
|
+
kind: "kind",
|
|
1238
|
+
name: "name",
|
|
1239
|
+
schemaId: "schema_id",
|
|
1240
|
+
source: "source",
|
|
1241
|
+
validationEnabled: "validation_enabled",
|
|
1242
|
+
}))),
|
|
1243
|
+
resultInfo: Schema.Struct({
|
|
1244
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1245
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1246
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1247
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1248
|
+
}).pipe(Schema.encodeKeys({
|
|
1249
|
+
count: "count",
|
|
1250
|
+
page: "page",
|
|
1251
|
+
perPage: "per_page",
|
|
1252
|
+
totalCount: "total_count",
|
|
1253
|
+
})),
|
|
1254
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
1255
|
+
export const listUserSchemas = API.makePaginated(() => ({
|
|
1200
1256
|
input: ListUserSchemasRequest,
|
|
1201
1257
|
output: ListUserSchemasResponse,
|
|
1202
1258
|
errors: [],
|
|
1259
|
+
pagination: {
|
|
1260
|
+
mode: "page",
|
|
1261
|
+
inputToken: "page",
|
|
1262
|
+
outputToken: "resultInfo.page",
|
|
1263
|
+
items: "result",
|
|
1264
|
+
pageSize: "perPage",
|
|
1265
|
+
},
|
|
1203
1266
|
}));
|
|
1204
1267
|
export const CreateUserSchemaRequest =
|
|
1205
1268
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -1248,7 +1311,9 @@ export const CreateUserSchemaResponse =
|
|
|
1248
1311
|
}),
|
|
1249
1312
|
Schema.Null,
|
|
1250
1313
|
])),
|
|
1251
|
-
})
|
|
1314
|
+
})
|
|
1315
|
+
.pipe(Schema.encodeKeys({ schema: "schema", uploadDetails: "upload_details" }))
|
|
1316
|
+
.pipe(T.ResponsePath("result"));
|
|
1252
1317
|
export const createUserSchema = API.make(() => ({
|
|
1253
1318
|
input: CreateUserSchemaRequest,
|
|
1254
1319
|
output: CreateUserSchemaResponse,
|
|
@@ -1270,14 +1335,16 @@ export const PatchUserSchemaResponse =
|
|
|
1270
1335
|
schemaId: Schema.String,
|
|
1271
1336
|
source: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1272
1337
|
validationEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1273
|
-
})
|
|
1338
|
+
})
|
|
1339
|
+
.pipe(Schema.encodeKeys({
|
|
1274
1340
|
createdAt: "created_at",
|
|
1275
1341
|
kind: "kind",
|
|
1276
1342
|
name: "name",
|
|
1277
1343
|
schemaId: "schema_id",
|
|
1278
1344
|
source: "source",
|
|
1279
1345
|
validationEnabled: "validation_enabled",
|
|
1280
|
-
}))
|
|
1346
|
+
}))
|
|
1347
|
+
.pipe(T.ResponsePath("result"));
|
|
1281
1348
|
export const patchUserSchema = API.make(() => ({
|
|
1282
1349
|
input: PatchUserSchemaRequest,
|
|
1283
1350
|
output: PatchUserSchemaResponse,
|
|
@@ -1310,21 +1377,41 @@ export const ListUserSchemaHostsRequest =
|
|
|
1310
1377
|
path: "/zones/{zone_id}/api_gateway/user_schemas/hosts",
|
|
1311
1378
|
}));
|
|
1312
1379
|
export const ListUserSchemaHostsResponse =
|
|
1313
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1380
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1381
|
+
result: Schema.Array(Schema.Struct({
|
|
1382
|
+
createdAt: Schema.String,
|
|
1383
|
+
hosts: Schema.Array(Schema.String),
|
|
1384
|
+
name: Schema.String,
|
|
1385
|
+
schemaId: Schema.String,
|
|
1386
|
+
}).pipe(Schema.encodeKeys({
|
|
1387
|
+
createdAt: "created_at",
|
|
1388
|
+
hosts: "hosts",
|
|
1389
|
+
name: "name",
|
|
1390
|
+
schemaId: "schema_id",
|
|
1391
|
+
}))),
|
|
1392
|
+
resultInfo: Schema.Struct({
|
|
1393
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1394
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1395
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1396
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1397
|
+
}).pipe(Schema.encodeKeys({
|
|
1398
|
+
count: "count",
|
|
1399
|
+
page: "page",
|
|
1400
|
+
perPage: "per_page",
|
|
1401
|
+
totalCount: "total_count",
|
|
1402
|
+
})),
|
|
1403
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
1404
|
+
export const listUserSchemaHosts = API.makePaginated(() => ({
|
|
1325
1405
|
input: ListUserSchemaHostsRequest,
|
|
1326
1406
|
output: ListUserSchemaHostsResponse,
|
|
1327
1407
|
errors: [],
|
|
1408
|
+
pagination: {
|
|
1409
|
+
mode: "page",
|
|
1410
|
+
inputToken: "page",
|
|
1411
|
+
outputToken: "resultInfo.page",
|
|
1412
|
+
items: "result",
|
|
1413
|
+
pageSize: "perPage",
|
|
1414
|
+
},
|
|
1328
1415
|
}));
|
|
1329
1416
|
export const ListUserSchemaOperationsRequest =
|
|
1330
1417
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -1340,209 +1427,229 @@ export const ListUserSchemaOperationsRequest =
|
|
|
1340
1427
|
path: "/zones/{zone_id}/api_gateway/user_schemas/{schemaId}/operations",
|
|
1341
1428
|
}));
|
|
1342
1429
|
export const ListUserSchemaOperationsResponse =
|
|
1343
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
1344
|
-
Schema.
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
Schema.Union([
|
|
1362
|
-
Schema.
|
|
1363
|
-
|
|
1364
|
-
Schema.
|
|
1365
|
-
authIdTokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1366
|
-
dataPoints: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1367
|
-
lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1368
|
-
p50: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1369
|
-
p90: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1370
|
-
p99: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1371
|
-
periodSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1372
|
-
requests: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1373
|
-
suggestedThreshold: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1374
|
-
}).pipe(Schema.encodeKeys({
|
|
1375
|
-
authIdTokens: "auth_id_tokens",
|
|
1376
|
-
dataPoints: "data_points",
|
|
1377
|
-
lastUpdated: "last_updated",
|
|
1378
|
-
p50: "p50",
|
|
1379
|
-
p90: "p90",
|
|
1380
|
-
p99: "p99",
|
|
1381
|
-
periodSeconds: "period_seconds",
|
|
1382
|
-
requests: "requests",
|
|
1383
|
-
suggestedThreshold: "suggested_threshold",
|
|
1384
|
-
})),
|
|
1385
|
-
Schema.Null,
|
|
1386
|
-
])),
|
|
1387
|
-
}),
|
|
1388
|
-
Schema.Struct({
|
|
1389
|
-
parameterSchemas: Schema.Struct({
|
|
1390
|
-
lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1391
|
-
parameterSchemas: Schema.optional(Schema.Union([
|
|
1430
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1431
|
+
result: Schema.Array(Schema.Union([
|
|
1432
|
+
Schema.Struct({
|
|
1433
|
+
endpoint: Schema.String,
|
|
1434
|
+
host: Schema.String,
|
|
1435
|
+
lastUpdated: Schema.String,
|
|
1436
|
+
method: Schema.Literals([
|
|
1437
|
+
"GET",
|
|
1438
|
+
"POST",
|
|
1439
|
+
"HEAD",
|
|
1440
|
+
"OPTIONS",
|
|
1441
|
+
"PUT",
|
|
1442
|
+
"DELETE",
|
|
1443
|
+
"CONNECT",
|
|
1444
|
+
"PATCH",
|
|
1445
|
+
"TRACE",
|
|
1446
|
+
]),
|
|
1447
|
+
operationId: Schema.String,
|
|
1448
|
+
features: Schema.optional(Schema.Union([
|
|
1449
|
+
Schema.Union([
|
|
1450
|
+
Schema.Struct({
|
|
1451
|
+
thresholds: Schema.optional(Schema.Union([
|
|
1392
1452
|
Schema.Struct({
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
])),
|
|
1397
|
-
|
|
1398
|
-
|
|
1453
|
+
authIdTokens: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1454
|
+
dataPoints: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1455
|
+
lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1456
|
+
p50: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1457
|
+
p90: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1458
|
+
p99: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1459
|
+
periodSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1460
|
+
requests: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1461
|
+
suggestedThreshold: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1462
|
+
}).pipe(Schema.encodeKeys({
|
|
1463
|
+
authIdTokens: "auth_id_tokens",
|
|
1464
|
+
dataPoints: "data_points",
|
|
1465
|
+
lastUpdated: "last_updated",
|
|
1466
|
+
p50: "p50",
|
|
1467
|
+
p90: "p90",
|
|
1468
|
+
p99: "p99",
|
|
1469
|
+
periodSeconds: "period_seconds",
|
|
1470
|
+
requests: "requests",
|
|
1471
|
+
suggestedThreshold: "suggested_threshold",
|
|
1472
|
+
})),
|
|
1399
1473
|
Schema.Null,
|
|
1400
1474
|
])),
|
|
1401
|
-
})
|
|
1402
|
-
|
|
1403
|
-
parameterSchemas:
|
|
1404
|
-
})),
|
|
1405
|
-
}).pipe(Schema.encodeKeys({ parameterSchemas: "parameter_schemas" })),
|
|
1406
|
-
Schema.Struct({
|
|
1407
|
-
apiRouting: Schema.optional(Schema.Union([
|
|
1408
|
-
Schema.Struct({
|
|
1409
|
-
lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1410
|
-
route: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1411
|
-
}).pipe(Schema.encodeKeys({
|
|
1412
|
-
lastUpdated: "last_updated",
|
|
1413
|
-
route: "route",
|
|
1414
|
-
})),
|
|
1415
|
-
Schema.Null,
|
|
1416
|
-
])),
|
|
1417
|
-
}).pipe(Schema.encodeKeys({ apiRouting: "api_routing" })),
|
|
1418
|
-
Schema.Struct({
|
|
1419
|
-
confidenceIntervals: Schema.optional(Schema.Union([
|
|
1420
|
-
Schema.Struct({
|
|
1475
|
+
}),
|
|
1476
|
+
Schema.Struct({
|
|
1477
|
+
parameterSchemas: Schema.Struct({
|
|
1421
1478
|
lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1422
|
-
|
|
1479
|
+
parameterSchemas: Schema.optional(Schema.Union([
|
|
1423
1480
|
Schema.Struct({
|
|
1424
|
-
|
|
1425
|
-
Schema.
|
|
1426
|
-
p90: Schema.optional(Schema.Union([
|
|
1427
|
-
Schema.Struct({
|
|
1428
|
-
lower: Schema.optional(Schema.Union([
|
|
1429
|
-
Schema.Number,
|
|
1430
|
-
Schema.Null,
|
|
1431
|
-
])),
|
|
1432
|
-
upper: Schema.optional(Schema.Union([
|
|
1433
|
-
Schema.Number,
|
|
1434
|
-
Schema.Null,
|
|
1435
|
-
])),
|
|
1436
|
-
}),
|
|
1437
|
-
Schema.Null,
|
|
1438
|
-
])),
|
|
1439
|
-
p95: Schema.optional(Schema.Union([
|
|
1440
|
-
Schema.Struct({
|
|
1441
|
-
lower: Schema.optional(Schema.Union([
|
|
1442
|
-
Schema.Number,
|
|
1443
|
-
Schema.Null,
|
|
1444
|
-
])),
|
|
1445
|
-
upper: Schema.optional(Schema.Union([
|
|
1446
|
-
Schema.Number,
|
|
1447
|
-
Schema.Null,
|
|
1448
|
-
])),
|
|
1449
|
-
}),
|
|
1450
|
-
Schema.Null,
|
|
1451
|
-
])),
|
|
1452
|
-
p99: Schema.optional(Schema.Union([
|
|
1453
|
-
Schema.Struct({
|
|
1454
|
-
lower: Schema.optional(Schema.Union([
|
|
1455
|
-
Schema.Number,
|
|
1456
|
-
Schema.Null,
|
|
1457
|
-
])),
|
|
1458
|
-
upper: Schema.optional(Schema.Union([
|
|
1459
|
-
Schema.Number,
|
|
1460
|
-
Schema.Null,
|
|
1461
|
-
])),
|
|
1462
|
-
}),
|
|
1463
|
-
Schema.Null,
|
|
1464
|
-
])),
|
|
1465
|
-
}),
|
|
1481
|
+
parameters: Schema.optional(Schema.Union([
|
|
1482
|
+
Schema.Array(Schema.Unknown),
|
|
1466
1483
|
Schema.Null,
|
|
1467
1484
|
])),
|
|
1468
|
-
|
|
1469
|
-
})
|
|
1470
|
-
confidenceIntervals: "confidence_intervals",
|
|
1471
|
-
mean: "mean",
|
|
1472
|
-
})),
|
|
1485
|
+
responses: Schema.optional(Schema.Null),
|
|
1486
|
+
}),
|
|
1473
1487
|
Schema.Null,
|
|
1474
1488
|
])),
|
|
1475
1489
|
}).pipe(Schema.encodeKeys({
|
|
1476
1490
|
lastUpdated: "last_updated",
|
|
1477
|
-
|
|
1478
|
-
})),
|
|
1479
|
-
Schema.Null,
|
|
1480
|
-
])),
|
|
1481
|
-
}).pipe(Schema.encodeKeys({
|
|
1482
|
-
confidenceIntervals: "confidence_intervals",
|
|
1483
|
-
})),
|
|
1484
|
-
Schema.Struct({
|
|
1485
|
-
schemaInfo: Schema.optional(Schema.Union([
|
|
1486
|
-
Schema.Struct({
|
|
1487
|
-
activeSchema: Schema.optional(Schema.Union([
|
|
1488
|
-
Schema.Struct({
|
|
1489
|
-
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1490
|
-
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1491
|
-
isLearned: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1492
|
-
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1493
|
-
}).pipe(Schema.encodeKeys({
|
|
1494
|
-
id: "id",
|
|
1495
|
-
createdAt: "created_at",
|
|
1496
|
-
isLearned: "is_learned",
|
|
1497
|
-
name: "name",
|
|
1498
|
-
})),
|
|
1499
|
-
Schema.Null,
|
|
1500
|
-
])),
|
|
1501
|
-
learnedAvailable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1502
|
-
mitigationAction: Schema.optional(Schema.Union([
|
|
1503
|
-
Schema.Literal("none"),
|
|
1504
|
-
Schema.Literal("log"),
|
|
1505
|
-
Schema.Literal("block"),
|
|
1506
|
-
Schema.Null,
|
|
1507
|
-
])),
|
|
1508
|
-
}).pipe(Schema.encodeKeys({
|
|
1509
|
-
activeSchema: "active_schema",
|
|
1510
|
-
learnedAvailable: "learned_available",
|
|
1511
|
-
mitigationAction: "mitigation_action",
|
|
1491
|
+
parameterSchemas: "parameter_schemas",
|
|
1512
1492
|
})),
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1493
|
+
}).pipe(Schema.encodeKeys({ parameterSchemas: "parameter_schemas" })),
|
|
1494
|
+
Schema.Struct({
|
|
1495
|
+
apiRouting: Schema.optional(Schema.Union([
|
|
1496
|
+
Schema.Struct({
|
|
1497
|
+
lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1498
|
+
route: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1499
|
+
}).pipe(Schema.encodeKeys({
|
|
1500
|
+
lastUpdated: "last_updated",
|
|
1501
|
+
route: "route",
|
|
1502
|
+
})),
|
|
1503
|
+
Schema.Null,
|
|
1504
|
+
])),
|
|
1505
|
+
}).pipe(Schema.encodeKeys({ apiRouting: "api_routing" })),
|
|
1506
|
+
Schema.Struct({
|
|
1507
|
+
confidenceIntervals: Schema.optional(Schema.Union([
|
|
1508
|
+
Schema.Struct({
|
|
1509
|
+
lastUpdated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1510
|
+
suggestedThreshold: Schema.optional(Schema.Union([
|
|
1511
|
+
Schema.Struct({
|
|
1512
|
+
confidenceIntervals: Schema.optional(Schema.Union([
|
|
1513
|
+
Schema.Struct({
|
|
1514
|
+
p90: Schema.optional(Schema.Union([
|
|
1515
|
+
Schema.Struct({
|
|
1516
|
+
lower: Schema.optional(Schema.Union([
|
|
1517
|
+
Schema.Number,
|
|
1518
|
+
Schema.Null,
|
|
1519
|
+
])),
|
|
1520
|
+
upper: Schema.optional(Schema.Union([
|
|
1521
|
+
Schema.Number,
|
|
1522
|
+
Schema.Null,
|
|
1523
|
+
])),
|
|
1524
|
+
}),
|
|
1525
|
+
Schema.Null,
|
|
1526
|
+
])),
|
|
1527
|
+
p95: Schema.optional(Schema.Union([
|
|
1528
|
+
Schema.Struct({
|
|
1529
|
+
lower: Schema.optional(Schema.Union([
|
|
1530
|
+
Schema.Number,
|
|
1531
|
+
Schema.Null,
|
|
1532
|
+
])),
|
|
1533
|
+
upper: Schema.optional(Schema.Union([
|
|
1534
|
+
Schema.Number,
|
|
1535
|
+
Schema.Null,
|
|
1536
|
+
])),
|
|
1537
|
+
}),
|
|
1538
|
+
Schema.Null,
|
|
1539
|
+
])),
|
|
1540
|
+
p99: Schema.optional(Schema.Union([
|
|
1541
|
+
Schema.Struct({
|
|
1542
|
+
lower: Schema.optional(Schema.Union([
|
|
1543
|
+
Schema.Number,
|
|
1544
|
+
Schema.Null,
|
|
1545
|
+
])),
|
|
1546
|
+
upper: Schema.optional(Schema.Union([
|
|
1547
|
+
Schema.Number,
|
|
1548
|
+
Schema.Null,
|
|
1549
|
+
])),
|
|
1550
|
+
}),
|
|
1551
|
+
Schema.Null,
|
|
1552
|
+
])),
|
|
1553
|
+
}),
|
|
1554
|
+
Schema.Null,
|
|
1555
|
+
])),
|
|
1556
|
+
mean: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1557
|
+
}).pipe(Schema.encodeKeys({
|
|
1558
|
+
confidenceIntervals: "confidence_intervals",
|
|
1559
|
+
mean: "mean",
|
|
1560
|
+
})),
|
|
1561
|
+
Schema.Null,
|
|
1562
|
+
])),
|
|
1563
|
+
}).pipe(Schema.encodeKeys({
|
|
1564
|
+
lastUpdated: "last_updated",
|
|
1565
|
+
suggestedThreshold: "suggested_threshold",
|
|
1566
|
+
})),
|
|
1567
|
+
Schema.Null,
|
|
1568
|
+
])),
|
|
1569
|
+
}).pipe(Schema.encodeKeys({
|
|
1570
|
+
confidenceIntervals: "confidence_intervals",
|
|
1571
|
+
})),
|
|
1572
|
+
Schema.Struct({
|
|
1573
|
+
schemaInfo: Schema.optional(Schema.Union([
|
|
1574
|
+
Schema.Struct({
|
|
1575
|
+
activeSchema: Schema.optional(Schema.Union([
|
|
1576
|
+
Schema.Struct({
|
|
1577
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1578
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1579
|
+
isLearned: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1580
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1581
|
+
}).pipe(Schema.encodeKeys({
|
|
1582
|
+
id: "id",
|
|
1583
|
+
createdAt: "created_at",
|
|
1584
|
+
isLearned: "is_learned",
|
|
1585
|
+
name: "name",
|
|
1586
|
+
})),
|
|
1587
|
+
Schema.Null,
|
|
1588
|
+
])),
|
|
1589
|
+
learnedAvailable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1590
|
+
mitigationAction: Schema.optional(Schema.Union([
|
|
1591
|
+
Schema.Literal("none"),
|
|
1592
|
+
Schema.Literal("log"),
|
|
1593
|
+
Schema.Literal("block"),
|
|
1594
|
+
Schema.Null,
|
|
1595
|
+
])),
|
|
1596
|
+
}).pipe(Schema.encodeKeys({
|
|
1597
|
+
activeSchema: "active_schema",
|
|
1598
|
+
learnedAvailable: "learned_available",
|
|
1599
|
+
mitigationAction: "mitigation_action",
|
|
1600
|
+
})),
|
|
1601
|
+
Schema.Null,
|
|
1602
|
+
])),
|
|
1603
|
+
}).pipe(Schema.encodeKeys({ schemaInfo: "schema_info" })),
|
|
1604
|
+
]),
|
|
1605
|
+
Schema.Null,
|
|
1606
|
+
])),
|
|
1607
|
+
}).pipe(Schema.encodeKeys({
|
|
1608
|
+
endpoint: "endpoint",
|
|
1609
|
+
host: "host",
|
|
1610
|
+
lastUpdated: "last_updated",
|
|
1611
|
+
method: "method",
|
|
1612
|
+
operationId: "operation_id",
|
|
1613
|
+
features: "features",
|
|
1614
|
+
})),
|
|
1615
|
+
Schema.Struct({
|
|
1616
|
+
endpoint: Schema.String,
|
|
1617
|
+
host: Schema.String,
|
|
1618
|
+
method: Schema.Literals([
|
|
1619
|
+
"GET",
|
|
1620
|
+
"POST",
|
|
1621
|
+
"HEAD",
|
|
1622
|
+
"OPTIONS",
|
|
1623
|
+
"PUT",
|
|
1624
|
+
"DELETE",
|
|
1625
|
+
"CONNECT",
|
|
1626
|
+
"PATCH",
|
|
1627
|
+
"TRACE",
|
|
1516
1628
|
]),
|
|
1517
|
-
|
|
1518
|
-
|
|
1629
|
+
}),
|
|
1630
|
+
])),
|
|
1631
|
+
resultInfo: Schema.Struct({
|
|
1632
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1633
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1634
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1635
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1519
1636
|
}).pipe(Schema.encodeKeys({
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
operationId: "operation_id",
|
|
1525
|
-
features: "features",
|
|
1637
|
+
count: "count",
|
|
1638
|
+
page: "page",
|
|
1639
|
+
perPage: "per_page",
|
|
1640
|
+
totalCount: "total_count",
|
|
1526
1641
|
})),
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
host: Schema.String,
|
|
1530
|
-
method: Schema.Literals([
|
|
1531
|
-
"GET",
|
|
1532
|
-
"POST",
|
|
1533
|
-
"HEAD",
|
|
1534
|
-
"OPTIONS",
|
|
1535
|
-
"PUT",
|
|
1536
|
-
"DELETE",
|
|
1537
|
-
"CONNECT",
|
|
1538
|
-
"PATCH",
|
|
1539
|
-
"TRACE",
|
|
1540
|
-
]),
|
|
1541
|
-
}),
|
|
1542
|
-
]));
|
|
1543
|
-
export const listUserSchemaOperations = API.make(() => ({
|
|
1642
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
1643
|
+
export const listUserSchemaOperations = API.makePaginated(() => ({
|
|
1544
1644
|
input: ListUserSchemaOperationsRequest,
|
|
1545
1645
|
output: ListUserSchemaOperationsResponse,
|
|
1546
1646
|
errors: [],
|
|
1647
|
+
pagination: {
|
|
1648
|
+
mode: "page",
|
|
1649
|
+
inputToken: "page",
|
|
1650
|
+
outputToken: "resultInfo.page",
|
|
1651
|
+
items: "result",
|
|
1652
|
+
pageSize: "perPage",
|
|
1653
|
+
},
|
|
1547
1654
|
}));
|
|
1548
1655
|
//# sourceMappingURL=api-gateway.js.map
|