@distilled.cloud/cloudflare 0.2.6 → 0.3.0-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -2
- package/lib/auth.d.ts +3 -2
- package/lib/auth.d.ts.map +1 -1
- package/lib/auth.js +4 -3
- package/lib/auth.js.map +1 -1
- package/lib/client/api.d.ts +7 -9
- package/lib/client/api.d.ts.map +1 -1
- package/lib/client/api.js +60 -13
- package/lib/client/api.js.map +1 -1
- package/lib/credentials.d.ts +58 -4
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +126 -7
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +12 -1
- package/lib/errors.d.ts.map +1 -1
- package/lib/sensitive.d.ts +5 -0
- package/lib/sensitive.d.ts.map +1 -0
- package/lib/sensitive.js +5 -0
- package/lib/sensitive.js.map +1 -0
- package/lib/services/abuse-reports.d.ts +116 -44
- package/lib/services/abuse-reports.d.ts.map +1 -1
- package/lib/services/abuse-reports.js +171 -110
- package/lib/services/abuse-reports.js.map +1 -1
- package/lib/services/accounts.d.ts +146 -62
- package/lib/services/accounts.d.ts.map +1 -1
- package/lib/services/accounts.js +208 -153
- package/lib/services/accounts.js.map +1 -1
- package/lib/services/acm.d.ts.map +1 -1
- package/lib/services/acm.js +8 -4
- package/lib/services/acm.js.map +1 -1
- package/lib/services/addressing.d.ts +200 -87
- package/lib/services/addressing.d.ts.map +1 -1
- package/lib/services/addressing.js +288 -201
- package/lib/services/addressing.js.map +1 -1
- package/lib/services/ai-gateway.d.ts +302 -121
- package/lib/services/ai-gateway.d.ts.map +1 -1
- package/lib/services/ai-gateway.js +407 -283
- package/lib/services/ai-gateway.js.map +1 -1
- package/lib/services/ai.d.ts +83 -29
- package/lib/services/ai.d.ts.map +1 -1
- package/lib/services/ai.js +95 -42
- package/lib/services/ai.js.map +1 -1
- package/lib/services/aisearch.d.ts +266 -112
- package/lib/services/aisearch.d.ts.map +1 -1
- package/lib/services/aisearch.js +510 -393
- package/lib/services/aisearch.js.map +1 -1
- package/lib/services/alerting.d.ts +249 -112
- package/lib/services/alerting.d.ts.map +1 -1
- package/lib/services/alerting.js +382 -325
- package/lib/services/alerting.js.map +1 -1
- package/lib/services/api-gateway.d.ts +458 -200
- package/lib/services/api-gateway.d.ts.map +1 -1
- package/lib/services/api-gateway.js +725 -618
- package/lib/services/api-gateway.js.map +1 -1
- package/lib/services/argo.d.ts.map +1 -1
- package/lib/services/argo.js +16 -8
- package/lib/services/argo.js.map +1 -1
- package/lib/services/billing.d.ts.map +1 -1
- package/lib/services/billing.js +4 -2
- package/lib/services/billing.js.map +1 -1
- package/lib/services/bot-management.d.ts.map +1 -1
- package/lib/services/bot-management.js +2 -2
- package/lib/services/bot-management.js.map +1 -1
- package/lib/services/botnet-feed.d.ts.map +1 -1
- package/lib/services/botnet-feed.js +10 -6
- package/lib/services/botnet-feed.js.map +1 -1
- package/lib/services/brand-protection.d.ts +8 -2
- package/lib/services/brand-protection.d.ts.map +1 -1
- package/lib/services/brand-protection.js +9 -2
- package/lib/services/brand-protection.js.map +1 -1
- package/lib/services/browser-rendering.d.ts.map +1 -1
- package/lib/services/browser-rendering.js +15 -14
- package/lib/services/browser-rendering.js.map +1 -1
- package/lib/services/cache.d.ts.map +1 -1
- package/lib/services/cache.js +49 -25
- package/lib/services/cache.js.map +1 -1
- package/lib/services/calls.d.ts +35 -14
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +35 -22
- package/lib/services/calls.js.map +1 -1
- package/lib/services/certificate-authorities.d.ts.map +1 -1
- package/lib/services/certificate-authorities.js +2 -2
- package/lib/services/certificate-authorities.js.map +1 -1
- package/lib/services/client-certificates.d.ts +57 -23
- package/lib/services/client-certificates.d.ts.map +1 -1
- package/lib/services/client-certificates.js +91 -62
- package/lib/services/client-certificates.js.map +1 -1
- package/lib/services/cloud-connector.d.ts +51 -22
- package/lib/services/cloud-connector.d.ts.map +1 -1
- package/lib/services/cloud-connector.js +57 -44
- package/lib/services/cloud-connector.js.map +1 -1
- package/lib/services/cloudforce-one.d.ts +119 -50
- package/lib/services/cloudforce-one.d.ts.map +1 -1
- package/lib/services/cloudforce-one.js +181 -124
- package/lib/services/cloudforce-one.js.map +1 -1
- package/lib/services/connectivity.d.ts +74 -31
- package/lib/services/connectivity.d.ts.map +1 -1
- package/lib/services/connectivity.js +84 -57
- package/lib/services/connectivity.js.map +1 -1
- package/lib/services/content-scanning.d.ts +40 -15
- package/lib/services/content-scanning.d.ts.map +1 -1
- package/lib/services/content-scanning.js +40 -21
- package/lib/services/content-scanning.js.map +1 -1
- package/lib/services/custom-certificates.d.ts +48 -19
- package/lib/services/custom-certificates.d.ts.map +1 -1
- package/lib/services/custom-certificates.js +80 -53
- package/lib/services/custom-certificates.js.map +1 -1
- package/lib/services/custom-hostnames.d.ts +116 -51
- package/lib/services/custom-hostnames.d.ts.map +1 -1
- package/lib/services/custom-hostnames.js +210 -170
- package/lib/services/custom-hostnames.js.map +1 -1
- package/lib/services/custom-nameservers.d.ts +32 -12
- package/lib/services/custom-nameservers.d.ts.map +1 -1
- package/lib/services/custom-nameservers.js +36 -21
- package/lib/services/custom-nameservers.js.map +1 -1
- package/lib/services/custom-pages.d.ts +26 -11
- package/lib/services/custom-pages.d.ts.map +1 -1
- package/lib/services/custom-pages.js +39 -24
- package/lib/services/custom-pages.js.map +1 -1
- package/lib/services/d1.d.ts +114 -48
- package/lib/services/d1.d.ts.map +1 -1
- package/lib/services/d1.js +150 -111
- package/lib/services/d1.js.map +1 -1
- package/lib/services/dcv-delegation.d.ts.map +1 -1
- package/lib/services/dcv-delegation.js +1 -1
- package/lib/services/dcv-delegation.js.map +1 -1
- package/lib/services/diagnostics.d.ts +59 -26
- package/lib/services/diagnostics.d.ts.map +1 -1
- package/lib/services/diagnostics.js +97 -82
- package/lib/services/diagnostics.js.map +1 -1
- package/lib/services/dns-firewall.d.ts +48 -19
- package/lib/services/dns-firewall.d.ts.map +1 -1
- package/lib/services/dns-firewall.js +75 -48
- package/lib/services/dns-firewall.js.map +1 -1
- package/lib/services/dns.d.ts +206 -87
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +335 -219
- package/lib/services/dns.js.map +1 -1
- package/lib/services/durable-objects.d.ts +44 -13
- package/lib/services/durable-objects.d.ts.map +1 -1
- package/lib/services/durable-objects.js +56 -19
- package/lib/services/durable-objects.js.map +1 -1
- package/lib/services/email-routing.d.ts +90 -34
- package/lib/services/email-routing.d.ts.map +1 -1
- package/lib/services/email-routing.js +133 -80
- package/lib/services/email-routing.js.map +1 -1
- package/lib/services/email-security.d.ts +439 -181
- package/lib/services/email-security.d.ts.map +1 -1
- package/lib/services/email-security.js +753 -557
- package/lib/services/email-security.js.map +1 -1
- package/lib/services/filters.d.ts +64 -24
- package/lib/services/filters.d.ts.map +1 -1
- package/lib/services/filters.js +61 -28
- package/lib/services/filters.js.map +1 -1
- package/lib/services/firewall.d.ts +455 -183
- package/lib/services/firewall.d.ts.map +1 -1
- package/lib/services/firewall.js +777 -574
- package/lib/services/firewall.js.map +1 -1
- package/lib/services/healthchecks.d.ts +76 -33
- package/lib/services/healthchecks.d.ts.map +1 -1
- package/lib/services/healthchecks.js +129 -100
- package/lib/services/healthchecks.js.map +1 -1
- package/lib/services/hostnames.d.ts +20 -8
- package/lib/services/hostnames.d.ts.map +1 -1
- package/lib/services/hostnames.js +32 -21
- package/lib/services/hostnames.js.map +1 -1
- package/lib/services/hyperdrive.d.ts.map +1 -1
- package/lib/services/hyperdrive.js +10 -9
- package/lib/services/hyperdrive.js.map +1 -1
- package/lib/services/iam.d.ts +162 -59
- package/lib/services/iam.d.ts.map +1 -1
- package/lib/services/iam.js +219 -119
- package/lib/services/iam.js.map +1 -1
- package/lib/services/images.d.ts +36 -12
- package/lib/services/images.d.ts.map +1 -1
- package/lib/services/images.js +59 -32
- package/lib/services/images.js.map +1 -1
- package/lib/services/intel.d.ts +159 -62
- package/lib/services/intel.d.ts.map +1 -1
- package/lib/services/intel.js +238 -151
- package/lib/services/intel.js.map +1 -1
- package/lib/services/ips.d.ts.map +1 -1
- package/lib/services/ips.js +1 -1
- package/lib/services/ips.js.map +1 -1
- package/lib/services/keyless-certificates.d.ts +36 -16
- package/lib/services/keyless-certificates.d.ts.map +1 -1
- package/lib/services/keyless-certificates.js +50 -37
- package/lib/services/keyless-certificates.js.map +1 -1
- package/lib/services/kv.d.ts +42 -12
- package/lib/services/kv.d.ts.map +1 -1
- package/lib/services/kv.js +87 -36
- package/lib/services/kv.js.map +1 -1
- package/lib/services/leaked-credential-checks.d.ts +16 -6
- package/lib/services/leaked-credential-checks.d.ts.map +1 -1
- package/lib/services/leaked-credential-checks.js +20 -12
- package/lib/services/leaked-credential-checks.js.map +1 -1
- package/lib/services/load-balancers.d.ts +373 -167
- package/lib/services/load-balancers.d.ts.map +1 -1
- package/lib/services/load-balancers.js +603 -490
- package/lib/services/load-balancers.js.map +1 -1
- package/lib/services/logpush.d.ts.map +1 -1
- package/lib/services/logpush.js +23 -15
- package/lib/services/logpush.js.map +1 -1
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +11 -7
- package/lib/services/logs.js.map +1 -1
- package/lib/services/magic-cloud-networking.d.ts +542 -249
- package/lib/services/magic-cloud-networking.d.ts.map +1 -1
- package/lib/services/magic-cloud-networking.js +890 -804
- package/lib/services/magic-cloud-networking.js.map +1 -1
- package/lib/services/magic-network-monitoring.d.ts.map +1 -1
- package/lib/services/magic-network-monitoring.js +44 -22
- package/lib/services/magic-network-monitoring.js.map +1 -1
- package/lib/services/magic-transit.d.ts +432 -196
- package/lib/services/magic-transit.d.ts.map +1 -1
- package/lib/services/magic-transit.js +730 -566
- package/lib/services/magic-transit.js.map +1 -1
- package/lib/services/managed-transforms.d.ts.map +1 -1
- package/lib/services/managed-transforms.js +8 -4
- package/lib/services/managed-transforms.js.map +1 -1
- package/lib/services/memberships.d.ts +54 -22
- package/lib/services/memberships.d.ts.map +1 -1
- package/lib/services/memberships.js +79 -53
- package/lib/services/memberships.js.map +1 -1
- package/lib/services/mtls-certificates.d.ts +41 -17
- package/lib/services/mtls-certificates.d.ts.map +1 -1
- package/lib/services/mtls-certificates.js +52 -33
- package/lib/services/mtls-certificates.js.map +1 -1
- package/lib/services/organizations.d.ts +56 -25
- package/lib/services/organizations.d.ts.map +1 -1
- package/lib/services/organizations.js +74 -59
- package/lib/services/organizations.js.map +1 -1
- package/lib/services/origin-ca-certificates.d.ts +30 -10
- package/lib/services/origin-ca-certificates.d.ts.map +1 -1
- package/lib/services/origin-ca-certificates.js +62 -35
- package/lib/services/origin-ca-certificates.js.map +1 -1
- package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -1
- package/lib/services/origin-post-quantum-encryption.js +8 -4
- package/lib/services/origin-post-quantum-encryption.js.map +1 -1
- package/lib/services/origin-tls-client-auth.d.ts +60 -25
- package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
- package/lib/services/origin-tls-client-auth.js +94 -60
- package/lib/services/origin-tls-client-auth.js.map +1 -1
- package/lib/services/page-rules.d.ts.map +1 -1
- package/lib/services/page-rules.js +18 -10
- package/lib/services/page-rules.js.map +1 -1
- package/lib/services/page-shield.d.ts +145 -66
- package/lib/services/page-shield.d.ts.map +1 -1
- package/lib/services/page-shield.js +166 -130
- package/lib/services/page-shield.js.map +1 -1
- package/lib/services/pages.d.ts +520 -225
- package/lib/services/pages.d.ts.map +1 -1
- package/lib/services/pages.js +643 -567
- package/lib/services/pages.js.map +1 -1
- package/lib/services/pipelines.d.ts +461 -206
- package/lib/services/pipelines.d.ts.map +1 -1
- package/lib/services/pipelines.js +859 -780
- package/lib/services/pipelines.js.map +1 -1
- package/lib/services/queues.d.ts +177 -80
- package/lib/services/queues.d.ts.map +1 -1
- package/lib/services/queues.js +233 -177
- package/lib/services/queues.js.map +1 -1
- package/lib/services/r2-data-catalog.d.ts.map +1 -1
- package/lib/services/r2-data-catalog.js +30 -16
- package/lib/services/r2-data-catalog.js.map +1 -1
- package/lib/services/r2.d.ts +85 -39
- package/lib/services/r2.d.ts.map +1 -1
- package/lib/services/r2.js +146 -126
- package/lib/services/r2.js.map +1 -1
- package/lib/services/radar.d.ts +152 -63
- package/lib/services/radar.d.ts.map +1 -1
- package/lib/services/radar.js +421 -360
- package/lib/services/radar.js.map +1 -1
- package/lib/services/rate-limits.d.ts +76 -31
- package/lib/services/rate-limits.d.ts.map +1 -1
- package/lib/services/rate-limits.js +106 -82
- package/lib/services/rate-limits.js.map +1 -1
- package/lib/services/realtime-kit.d.ts.map +1 -1
- package/lib/services/realtime-kit.js +34 -33
- package/lib/services/realtime-kit.js.map +1 -1
- package/lib/services/registrar.d.ts +75 -35
- package/lib/services/registrar.d.ts.map +1 -1
- package/lib/services/registrar.js +116 -103
- package/lib/services/registrar.js.map +1 -1
- package/lib/services/request-tracers.d.ts.map +1 -1
- package/lib/services/request-tracers.js +5 -2
- package/lib/services/request-tracers.js.map +1 -1
- package/lib/services/resource-sharing.d.ts +132 -50
- package/lib/services/resource-sharing.d.ts.map +1 -1
- package/lib/services/resource-sharing.js +232 -149
- package/lib/services/resource-sharing.js.map +1 -1
- package/lib/services/rules.d.ts +86 -37
- package/lib/services/rules.d.ts.map +1 -1
- package/lib/services/rules.js +122 -87
- package/lib/services/rules.js.map +1 -1
- package/lib/services/rulesets.d.ts +75 -30
- package/lib/services/rulesets.d.ts.map +1 -1
- package/lib/services/rulesets.js +274 -222
- package/lib/services/rulesets.js.map +1 -1
- package/lib/services/rum.d.ts +40 -15
- package/lib/services/rum.d.ts.map +1 -1
- package/lib/services/rum.js +78 -45
- package/lib/services/rum.js.map +1 -1
- package/lib/services/schema-validation.d.ts +47 -14
- package/lib/services/schema-validation.d.ts.map +1 -1
- package/lib/services/schema-validation.js +102 -43
- package/lib/services/schema-validation.js.map +1 -1
- package/lib/services/secrets-store.d.ts +116 -44
- package/lib/services/secrets-store.d.ts.map +1 -1
- package/lib/services/secrets-store.js +145 -78
- package/lib/services/secrets-store.js.map +1 -1
- package/lib/services/security-center.d.ts +56 -22
- package/lib/services/security-center.d.ts.map +1 -1
- package/lib/services/security-center.js +90 -64
- package/lib/services/security-center.js.map +1 -1
- package/lib/services/security-txt.d.ts.map +1 -1
- package/lib/services/security-txt.js +1 -1
- package/lib/services/security-txt.js.map +1 -1
- package/lib/services/snippets.d.ts +85 -33
- package/lib/services/snippets.d.ts.map +1 -1
- package/lib/services/snippets.js +106 -63
- package/lib/services/snippets.js.map +1 -1
- package/lib/services/spectrum.d.ts +58 -24
- package/lib/services/spectrum.d.ts.map +1 -1
- package/lib/services/spectrum.js +90 -65
- package/lib/services/spectrum.js.map +1 -1
- package/lib/services/speed.d.ts +47 -17
- package/lib/services/speed.d.ts.map +1 -1
- package/lib/services/speed.js +51 -24
- package/lib/services/speed.js.map +1 -1
- package/lib/services/ssl.d.ts +77 -35
- package/lib/services/ssl.d.ts.map +1 -1
- package/lib/services/ssl.js +146 -123
- package/lib/services/ssl.js.map +1 -1
- package/lib/services/stream.d.ts +173 -77
- package/lib/services/stream.d.ts.map +1 -1
- package/lib/services/stream.js +167 -131
- package/lib/services/stream.js.map +1 -1
- package/lib/services/token-validation.d.ts +203 -88
- package/lib/services/token-validation.d.ts.map +1 -1
- package/lib/services/token-validation.js +238 -172
- package/lib/services/token-validation.js.map +1 -1
- package/lib/services/turnstile.d.ts +38 -14
- package/lib/services/turnstile.d.ts.map +1 -1
- package/lib/services/turnstile.js +72 -41
- package/lib/services/turnstile.js.map +1 -1
- package/lib/services/url-normalization.d.ts.map +1 -1
- package/lib/services/url-normalization.js +2 -2
- package/lib/services/url-normalization.js.map +1 -1
- package/lib/services/user.d.ts +106 -40
- package/lib/services/user.d.ts.map +1 -1
- package/lib/services/user.js +156 -89
- package/lib/services/user.js.map +1 -1
- package/lib/services/vectorize.d.ts +26 -11
- package/lib/services/vectorize.d.ts.map +1 -1
- package/lib/services/vectorize.js +46 -35
- package/lib/services/vectorize.js.map +1 -1
- package/lib/services/waiting-rooms.d.ts +244 -104
- package/lib/services/waiting-rooms.d.ts.map +1 -1
- package/lib/services/waiting-rooms.js +398 -296
- package/lib/services/waiting-rooms.js.map +1 -1
- package/lib/services/web3.d.ts +26 -11
- package/lib/services/web3.d.ts.map +1 -1
- package/lib/services/web3.js +62 -43
- package/lib/services/web3.js.map +1 -1
- package/lib/services/workers-for-platforms.d.ts +323 -153
- package/lib/services/workers-for-platforms.d.ts.map +1 -1
- package/lib/services/workers-for-platforms.js +331 -288
- package/lib/services/workers-for-platforms.js.map +1 -1
- package/lib/services/workers.d.ts +601 -272
- package/lib/services/workers.d.ts.map +1 -1
- package/lib/services/workers.js +771 -633
- package/lib/services/workers.js.map +1 -1
- package/lib/services/workflows.d.ts +130 -47
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +190 -107
- package/lib/services/workflows.js.map +1 -1
- package/lib/services/zaraz.d.ts +20 -8
- package/lib/services/zaraz.d.ts.map +1 -1
- package/lib/services/zaraz.js +20 -13
- package/lib/services/zaraz.js.map +1 -1
- package/lib/services/zero-trust.d.ts +5436 -2650
- package/lib/services/zero-trust.d.ts.map +1 -1
- package/lib/services/zero-trust.js +9008 -7934
- package/lib/services/zero-trust.js.map +1 -1
- package/lib/services/zones.d.ts +188 -84
- package/lib/services/zones.d.ts.map +1 -1
- package/lib/services/zones.js +257 -196
- package/lib/services/zones.js.map +1 -1
- package/package.json +3 -2
- package/src/auth.ts +4 -3
- package/src/client/api.ts +105 -13
- package/src/credentials.ts +253 -12
- package/src/errors.ts +17 -1
- package/src/sensitive.ts +4 -0
- package/src/services/abuse-reports.ts +416 -208
- package/src/services/accounts.ts +511 -306
- package/src/services/acm.ts +22 -14
- package/src/services/addressing.ts +865 -550
- package/src/services/ai-gateway.ts +1148 -710
- package/src/services/ai.ts +265 -91
- package/src/services/aisearch.ts +1460 -995
- package/src/services/alerting.ts +1027 -671
- package/src/services/api-gateway.ts +1628 -1129
- package/src/services/argo.ts +48 -32
- package/src/services/billing.ts +47 -43
- package/src/services/bot-management.ts +6 -2
- package/src/services/botnet-feed.ts +28 -16
- package/src/services/brand-protection.ts +28 -6
- package/src/services/browser-rendering.ts +23 -10
- package/src/services/cache.ts +147 -97
- package/src/services/calls.ts +107 -42
- package/src/services/certificate-authorities.ts +6 -2
- package/src/services/client-certificates.ts +270 -173
- package/src/services/cloud-connector.ts +149 -82
- package/src/services/cloudforce-one.ts +515 -287
- package/src/services/connectivity.ts +184 -107
- package/src/services/content-scanning.ts +115 -42
- package/src/services/custom-certificates.ts +200 -121
- package/src/services/custom-hostnames.ts +583 -395
- package/src/services/custom-nameservers.ts +98 -45
- package/src/services/custom-pages.ts +109 -62
- package/src/services/d1.ts +409 -235
- package/src/services/dcv-delegation.ts +3 -1
- package/src/services/diagnostics.ts +267 -193
- package/src/services/dns-firewall.ts +197 -116
- package/src/services/dns.ts +916 -536
- package/src/services/durable-objects.ts +126 -37
- package/src/services/email-routing.ts +375 -181
- package/src/services/email-security.ts +1881 -1112
- package/src/services/filters.ts +176 -58
- package/src/services/firewall.ts +1843 -1011
- package/src/services/healthchecks.ts +374 -258
- package/src/services/hostnames.ts +83 -47
- package/src/services/hyperdrive.ts +12 -9
- package/src/services/iam.ts +560 -259
- package/src/services/images.ts +148 -54
- package/src/services/intel.ts +677 -373
- package/src/services/ips.ts +1 -1
- package/src/services/keyless-certificates.ts +139 -92
- package/src/services/kv.ts +204 -86
- package/src/services/leaked-credential-checks.ts +58 -19
- package/src/services/load-balancers.ts +1755 -1200
- package/src/services/logpush.ts +100 -72
- package/src/services/logs.ts +29 -15
- package/src/services/magic-cloud-networking.ts +2453 -1726
- package/src/services/magic-network-monitoring.ts +163 -119
- package/src/services/magic-transit.ts +2153 -1530
- package/src/services/managed-transforms.ts +20 -12
- package/src/services/memberships.ts +196 -113
- package/src/services/mtls-certificates.ts +158 -88
- package/src/services/organizations.ts +185 -121
- package/src/services/origin-ca-certificates.ts +130 -64
- package/src/services/origin-post-quantum-encryption.ts +24 -16
- package/src/services/origin-tls-client-auth.ts +282 -158
- package/src/services/page-rules.ts +64 -44
- package/src/services/page-shield.ts +492 -316
- package/src/services/pages.ts +1612 -1154
- package/src/services/pipelines.ts +1735 -1280
- package/src/services/queues.ts +617 -419
- package/src/services/r2-data-catalog.ts +82 -50
- package/src/services/r2.ts +420 -239
- package/src/services/radar.ts +1107 -423
- package/src/services/rate-limits.ts +254 -152
- package/src/services/realtime-kit.ts +34 -33
- package/src/services/registrar.ts +262 -167
- package/src/services/request-tracers.ts +7 -4
- package/src/services/resource-sharing.ts +628 -378
- package/src/services/rules.ts +292 -176
- package/src/services/rulesets.ts +643 -426
- package/src/services/rum.ts +204 -111
- package/src/services/schema-validation.ts +240 -104
- package/src/services/secrets-store.ts +356 -166
- package/src/services/security-center.ts +196 -98
- package/src/services/security-txt.ts +2 -0
- package/src/services/snippets.ts +259 -117
- package/src/services/spectrum.ts +215 -128
- package/src/services/speed.ts +144 -46
- package/src/services/ssl.ts +420 -293
- package/src/services/stream.ts +496 -244
- package/src/services/token-validation.ts +583 -343
- package/src/services/turnstile.ts +206 -124
- package/src/services/url-normalization.ts +6 -2
- package/src/services/user.ts +480 -277
- package/src/services/vectorize.ts +123 -64
- package/src/services/waiting-rooms.ts +1156 -747
- package/src/services/web3.ts +178 -113
- package/src/services/workers-for-platforms.ts +814 -539
- package/src/services/workers.ts +1888 -1227
- package/src/services/workflows.ts +453 -205
- package/src/services/zaraz.ts +61 -25
- package/src/services/zero-trust.ts +17859 -12103
- package/src/services/zones.ts +690 -459
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* Generated from Cloudflare TypeScript SDK.
|
|
5
5
|
* DO NOT EDIT - regenerate with: bun scripts/generate.ts --service load-balancers
|
|
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";
|
|
@@ -190,7 +191,8 @@ export const GetLoadBalancerResponse =
|
|
|
190
191
|
])),
|
|
191
192
|
ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
192
193
|
zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
193
|
-
})
|
|
194
|
+
})
|
|
195
|
+
.pipe(Schema.encodeKeys({
|
|
194
196
|
id: "id",
|
|
195
197
|
adaptiveRouting: "adaptive_routing",
|
|
196
198
|
countryPools: "country_pools",
|
|
@@ -214,7 +216,8 @@ export const GetLoadBalancerResponse =
|
|
|
214
216
|
steeringPolicy: "steering_policy",
|
|
215
217
|
ttl: "ttl",
|
|
216
218
|
zoneName: "zone_name",
|
|
217
|
-
}))
|
|
219
|
+
}))
|
|
220
|
+
.pipe(T.ResponsePath("result"));
|
|
218
221
|
export const getLoadBalancer = API.make(() => ({
|
|
219
222
|
input: GetLoadBalancerRequest,
|
|
220
223
|
output: GetLoadBalancerResponse,
|
|
@@ -225,209 +228,220 @@ export const ListLoadBalancersRequest =
|
|
|
225
228
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
226
229
|
}).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/load_balancers" }));
|
|
227
230
|
export const ListLoadBalancersResponse =
|
|
228
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
Schema.
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
Schema.
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
Schema.Struct({
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
Schema.
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
Schema.
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
Schema.
|
|
370
|
-
Schema.
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
Schema.
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
231
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
232
|
+
result: Schema.Array(Schema.Struct({
|
|
233
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
234
|
+
adaptiveRouting: Schema.optional(Schema.Union([
|
|
235
|
+
Schema.Struct({
|
|
236
|
+
failoverAcrossPools: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
237
|
+
}).pipe(Schema.encodeKeys({
|
|
238
|
+
failoverAcrossPools: "failover_across_pools",
|
|
239
|
+
})),
|
|
240
|
+
Schema.Null,
|
|
241
|
+
])),
|
|
242
|
+
countryPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
243
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
244
|
+
defaultPools: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
245
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
246
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
247
|
+
fallbackPool: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
248
|
+
locationStrategy: Schema.optional(Schema.Union([
|
|
249
|
+
Schema.Struct({
|
|
250
|
+
mode: Schema.optional(Schema.Union([
|
|
251
|
+
Schema.Literals(["pop", "resolver_ip"]),
|
|
252
|
+
Schema.Null,
|
|
253
|
+
])),
|
|
254
|
+
preferEcs: Schema.optional(Schema.Union([
|
|
255
|
+
Schema.Literals(["always", "never", "proximity", "geo"]),
|
|
256
|
+
Schema.Null,
|
|
257
|
+
])),
|
|
258
|
+
}).pipe(Schema.encodeKeys({ mode: "mode", preferEcs: "prefer_ecs" })),
|
|
259
|
+
Schema.Null,
|
|
260
|
+
])),
|
|
261
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
262
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
263
|
+
networks: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
264
|
+
popPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
265
|
+
proxied: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
266
|
+
randomSteering: Schema.optional(Schema.Union([
|
|
267
|
+
Schema.Struct({
|
|
268
|
+
defaultWeight: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
269
|
+
poolWeights: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
270
|
+
}).pipe(Schema.encodeKeys({
|
|
271
|
+
defaultWeight: "default_weight",
|
|
272
|
+
poolWeights: "pool_weights",
|
|
273
|
+
})),
|
|
274
|
+
Schema.Null,
|
|
275
|
+
])),
|
|
276
|
+
regionPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
277
|
+
rules: Schema.optional(Schema.Union([
|
|
278
|
+
Schema.Array(Schema.Struct({
|
|
279
|
+
condition: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
280
|
+
disabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
281
|
+
fixedResponse: Schema.optional(Schema.Union([
|
|
282
|
+
Schema.Struct({
|
|
283
|
+
contentType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
284
|
+
location: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
285
|
+
messageBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
286
|
+
statusCode: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
287
|
+
}).pipe(Schema.encodeKeys({
|
|
288
|
+
contentType: "content_type",
|
|
289
|
+
location: "location",
|
|
290
|
+
messageBody: "message_body",
|
|
291
|
+
statusCode: "status_code",
|
|
292
|
+
})),
|
|
293
|
+
Schema.Null,
|
|
294
|
+
])),
|
|
295
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
296
|
+
overrides: Schema.optional(Schema.Union([
|
|
297
|
+
Schema.Struct({
|
|
298
|
+
adaptiveRouting: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
299
|
+
countryPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
300
|
+
defaultPools: Schema.optional(Schema.Union([
|
|
301
|
+
Schema.Array(Schema.String),
|
|
302
|
+
Schema.Null,
|
|
303
|
+
])),
|
|
304
|
+
fallbackPool: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
305
|
+
locationStrategy: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
306
|
+
popPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
307
|
+
randomSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
308
|
+
regionPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
309
|
+
sessionAffinity: Schema.optional(Schema.Union([
|
|
310
|
+
Schema.Literals([
|
|
311
|
+
"none",
|
|
312
|
+
"cookie",
|
|
313
|
+
"ip_cookie",
|
|
314
|
+
"header",
|
|
315
|
+
]),
|
|
316
|
+
Schema.Null,
|
|
317
|
+
])),
|
|
318
|
+
sessionAffinityAttributes: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
319
|
+
sessionAffinityTtl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
320
|
+
steeringPolicy: Schema.optional(Schema.Union([
|
|
321
|
+
Schema.Literals([
|
|
322
|
+
"",
|
|
323
|
+
"off",
|
|
324
|
+
"geo",
|
|
325
|
+
"random",
|
|
326
|
+
"dynamic_latency",
|
|
327
|
+
"proximity",
|
|
328
|
+
"least_outstanding_requests",
|
|
329
|
+
"least_connections",
|
|
330
|
+
]),
|
|
331
|
+
Schema.Null,
|
|
332
|
+
])),
|
|
333
|
+
ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
334
|
+
}).pipe(Schema.encodeKeys({
|
|
335
|
+
adaptiveRouting: "adaptive_routing",
|
|
336
|
+
countryPools: "country_pools",
|
|
337
|
+
defaultPools: "default_pools",
|
|
338
|
+
fallbackPool: "fallback_pool",
|
|
339
|
+
locationStrategy: "location_strategy",
|
|
340
|
+
popPools: "pop_pools",
|
|
341
|
+
randomSteering: "random_steering",
|
|
342
|
+
regionPools: "region_pools",
|
|
343
|
+
sessionAffinity: "session_affinity",
|
|
344
|
+
sessionAffinityAttributes: "session_affinity_attributes",
|
|
345
|
+
sessionAffinityTtl: "session_affinity_ttl",
|
|
346
|
+
steeringPolicy: "steering_policy",
|
|
347
|
+
ttl: "ttl",
|
|
348
|
+
})),
|
|
349
|
+
Schema.Null,
|
|
350
|
+
])),
|
|
351
|
+
priority: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
352
|
+
terminates: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
353
|
+
}).pipe(Schema.encodeKeys({
|
|
354
|
+
condition: "condition",
|
|
355
|
+
disabled: "disabled",
|
|
356
|
+
fixedResponse: "fixed_response",
|
|
357
|
+
name: "name",
|
|
358
|
+
overrides: "overrides",
|
|
359
|
+
priority: "priority",
|
|
360
|
+
terminates: "terminates",
|
|
361
|
+
}))),
|
|
362
|
+
Schema.Null,
|
|
363
|
+
])),
|
|
364
|
+
sessionAffinity: Schema.optional(Schema.Union([
|
|
365
|
+
Schema.Literals(["none", "cookie", "ip_cookie", "header"]),
|
|
366
|
+
Schema.Null,
|
|
367
|
+
])),
|
|
368
|
+
sessionAffinityAttributes: Schema.optional(Schema.Union([
|
|
369
|
+
Schema.Struct({
|
|
370
|
+
drainDuration: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
371
|
+
headers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
372
|
+
requireAllHeaders: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
373
|
+
samesite: Schema.optional(Schema.Union([
|
|
374
|
+
Schema.Literals(["Auto", "Lax", "None", "Strict"]),
|
|
375
|
+
Schema.Null,
|
|
376
|
+
])),
|
|
377
|
+
secure: Schema.optional(Schema.Union([
|
|
378
|
+
Schema.Literals(["Auto", "Always", "Never"]),
|
|
379
|
+
Schema.Null,
|
|
380
|
+
])),
|
|
381
|
+
zeroDowntimeFailover: Schema.optional(Schema.Union([
|
|
382
|
+
Schema.Literals(["none", "temporary", "sticky"]),
|
|
383
|
+
Schema.Null,
|
|
384
|
+
])),
|
|
385
|
+
}).pipe(Schema.encodeKeys({
|
|
386
|
+
drainDuration: "drain_duration",
|
|
387
|
+
headers: "headers",
|
|
388
|
+
requireAllHeaders: "require_all_headers",
|
|
389
|
+
samesite: "samesite",
|
|
390
|
+
secure: "secure",
|
|
391
|
+
zeroDowntimeFailover: "zero_downtime_failover",
|
|
392
|
+
})),
|
|
393
|
+
Schema.Null,
|
|
394
|
+
])),
|
|
395
|
+
sessionAffinityTtl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
396
|
+
steeringPolicy: Schema.optional(Schema.Union([
|
|
397
|
+
Schema.Literals([
|
|
398
|
+
"",
|
|
399
|
+
"off",
|
|
400
|
+
"geo",
|
|
401
|
+
"random",
|
|
402
|
+
"dynamic_latency",
|
|
403
|
+
"proximity",
|
|
404
|
+
"least_outstanding_requests",
|
|
405
|
+
"least_connections",
|
|
406
|
+
]),
|
|
407
|
+
Schema.Null,
|
|
408
|
+
])),
|
|
409
|
+
ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
410
|
+
zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
411
|
+
}).pipe(Schema.encodeKeys({
|
|
412
|
+
id: "id",
|
|
413
|
+
adaptiveRouting: "adaptive_routing",
|
|
414
|
+
countryPools: "country_pools",
|
|
415
|
+
createdOn: "created_on",
|
|
416
|
+
defaultPools: "default_pools",
|
|
417
|
+
description: "description",
|
|
418
|
+
enabled: "enabled",
|
|
419
|
+
fallbackPool: "fallback_pool",
|
|
420
|
+
locationStrategy: "location_strategy",
|
|
421
|
+
modifiedOn: "modified_on",
|
|
422
|
+
name: "name",
|
|
423
|
+
networks: "networks",
|
|
424
|
+
popPools: "pop_pools",
|
|
425
|
+
proxied: "proxied",
|
|
426
|
+
randomSteering: "random_steering",
|
|
427
|
+
regionPools: "region_pools",
|
|
428
|
+
rules: "rules",
|
|
429
|
+
sessionAffinity: "session_affinity",
|
|
430
|
+
sessionAffinityAttributes: "session_affinity_attributes",
|
|
431
|
+
sessionAffinityTtl: "session_affinity_ttl",
|
|
432
|
+
steeringPolicy: "steering_policy",
|
|
433
|
+
ttl: "ttl",
|
|
434
|
+
zoneName: "zone_name",
|
|
435
|
+
}))),
|
|
436
|
+
});
|
|
437
|
+
export const listLoadBalancers = API.makePaginated(() => ({
|
|
428
438
|
input: ListLoadBalancersRequest,
|
|
429
439
|
output: ListLoadBalancersResponse,
|
|
430
440
|
errors: [],
|
|
441
|
+
pagination: {
|
|
442
|
+
mode: "single",
|
|
443
|
+
items: "result",
|
|
444
|
+
},
|
|
431
445
|
}));
|
|
432
446
|
export const CreateLoadBalancerRequest =
|
|
433
447
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -742,7 +756,8 @@ export const CreateLoadBalancerResponse =
|
|
|
742
756
|
])),
|
|
743
757
|
ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
744
758
|
zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
745
|
-
})
|
|
759
|
+
})
|
|
760
|
+
.pipe(Schema.encodeKeys({
|
|
746
761
|
id: "id",
|
|
747
762
|
adaptiveRouting: "adaptive_routing",
|
|
748
763
|
countryPools: "country_pools",
|
|
@@ -766,7 +781,8 @@ export const CreateLoadBalancerResponse =
|
|
|
766
781
|
steeringPolicy: "steering_policy",
|
|
767
782
|
ttl: "ttl",
|
|
768
783
|
zoneName: "zone_name",
|
|
769
|
-
}))
|
|
784
|
+
}))
|
|
785
|
+
.pipe(T.ResponsePath("result"));
|
|
770
786
|
export const createLoadBalancer = API.make(() => ({
|
|
771
787
|
input: CreateLoadBalancerRequest,
|
|
772
788
|
output: CreateLoadBalancerResponse,
|
|
@@ -1091,7 +1107,8 @@ export const UpdateLoadBalancerResponse =
|
|
|
1091
1107
|
])),
|
|
1092
1108
|
ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1093
1109
|
zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1094
|
-
})
|
|
1110
|
+
})
|
|
1111
|
+
.pipe(Schema.encodeKeys({
|
|
1095
1112
|
id: "id",
|
|
1096
1113
|
adaptiveRouting: "adaptive_routing",
|
|
1097
1114
|
countryPools: "country_pools",
|
|
@@ -1115,7 +1132,8 @@ export const UpdateLoadBalancerResponse =
|
|
|
1115
1132
|
steeringPolicy: "steering_policy",
|
|
1116
1133
|
ttl: "ttl",
|
|
1117
1134
|
zoneName: "zone_name",
|
|
1118
|
-
}))
|
|
1135
|
+
}))
|
|
1136
|
+
.pipe(T.ResponsePath("result"));
|
|
1119
1137
|
export const updateLoadBalancer = API.make(() => ({
|
|
1120
1138
|
input: UpdateLoadBalancerRequest,
|
|
1121
1139
|
output: UpdateLoadBalancerResponse,
|
|
@@ -1438,7 +1456,8 @@ export const PatchLoadBalancerResponse =
|
|
|
1438
1456
|
])),
|
|
1439
1457
|
ttl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1440
1458
|
zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1441
|
-
})
|
|
1459
|
+
})
|
|
1460
|
+
.pipe(Schema.encodeKeys({
|
|
1442
1461
|
id: "id",
|
|
1443
1462
|
adaptiveRouting: "adaptive_routing",
|
|
1444
1463
|
countryPools: "country_pools",
|
|
@@ -1462,7 +1481,8 @@ export const PatchLoadBalancerResponse =
|
|
|
1462
1481
|
steeringPolicy: "steering_policy",
|
|
1463
1482
|
ttl: "ttl",
|
|
1464
1483
|
zoneName: "zone_name",
|
|
1465
|
-
}))
|
|
1484
|
+
}))
|
|
1485
|
+
.pipe(T.ResponsePath("result"));
|
|
1466
1486
|
export const patchLoadBalancer = API.make(() => ({
|
|
1467
1487
|
input: PatchLoadBalancerRequest,
|
|
1468
1488
|
output: PatchLoadBalancerResponse,
|
|
@@ -1479,7 +1499,7 @@ export const DeleteLoadBalancerRequest =
|
|
|
1479
1499
|
export const DeleteLoadBalancerResponse =
|
|
1480
1500
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1481
1501
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1482
|
-
});
|
|
1502
|
+
}).pipe(T.ResponsePath("result"));
|
|
1483
1503
|
export const deleteLoadBalancer = API.make(() => ({
|
|
1484
1504
|
input: DeleteLoadBalancerRequest,
|
|
1485
1505
|
output: DeleteLoadBalancerResponse,
|
|
@@ -1522,7 +1542,8 @@ export const GetMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1522
1542
|
]),
|
|
1523
1543
|
Schema.Null,
|
|
1524
1544
|
])),
|
|
1525
|
-
})
|
|
1545
|
+
})
|
|
1546
|
+
.pipe(Schema.encodeKeys({
|
|
1526
1547
|
id: "id",
|
|
1527
1548
|
allowInsecure: "allow_insecure",
|
|
1528
1549
|
consecutiveDown: "consecutive_down",
|
|
@@ -1542,7 +1563,8 @@ export const GetMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1542
1563
|
retries: "retries",
|
|
1543
1564
|
timeout: "timeout",
|
|
1544
1565
|
type: "type",
|
|
1545
|
-
}))
|
|
1566
|
+
}))
|
|
1567
|
+
.pipe(T.ResponsePath("result"));
|
|
1546
1568
|
export const getMonitor = API.make(() => ({
|
|
1547
1569
|
input: GetMonitorRequest,
|
|
1548
1570
|
output: GetMonitorResponse,
|
|
@@ -1554,61 +1576,67 @@ export const ListMonitorsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1554
1576
|
method: "GET",
|
|
1555
1577
|
path: "/accounts/{account_id}/load_balancers/monitors",
|
|
1556
1578
|
}));
|
|
1557
|
-
export const ListMonitorsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
Schema.
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1579
|
+
export const ListMonitorsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1580
|
+
result: Schema.Array(Schema.Struct({
|
|
1581
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1582
|
+
allowInsecure: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1583
|
+
consecutiveDown: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1584
|
+
consecutiveUp: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1585
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1586
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1587
|
+
expectedBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1588
|
+
expectedCodes: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1589
|
+
followRedirects: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1590
|
+
header: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
1591
|
+
interval: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1592
|
+
method: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1593
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1594
|
+
path: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1595
|
+
port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1596
|
+
probeZone: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1597
|
+
retries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1598
|
+
timeout: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1599
|
+
type: Schema.optional(Schema.Union([
|
|
1600
|
+
Schema.Literals([
|
|
1601
|
+
"http",
|
|
1602
|
+
"https",
|
|
1603
|
+
"tcp",
|
|
1604
|
+
"udp_icmp",
|
|
1605
|
+
"icmp_ping",
|
|
1606
|
+
"smtp",
|
|
1607
|
+
]),
|
|
1608
|
+
Schema.Null,
|
|
1609
|
+
])),
|
|
1610
|
+
}).pipe(Schema.encodeKeys({
|
|
1611
|
+
id: "id",
|
|
1612
|
+
allowInsecure: "allow_insecure",
|
|
1613
|
+
consecutiveDown: "consecutive_down",
|
|
1614
|
+
consecutiveUp: "consecutive_up",
|
|
1615
|
+
createdOn: "created_on",
|
|
1616
|
+
description: "description",
|
|
1617
|
+
expectedBody: "expected_body",
|
|
1618
|
+
expectedCodes: "expected_codes",
|
|
1619
|
+
followRedirects: "follow_redirects",
|
|
1620
|
+
header: "header",
|
|
1621
|
+
interval: "interval",
|
|
1622
|
+
method: "method",
|
|
1623
|
+
modifiedOn: "modified_on",
|
|
1624
|
+
path: "path",
|
|
1625
|
+
port: "port",
|
|
1626
|
+
probeZone: "probe_zone",
|
|
1627
|
+
retries: "retries",
|
|
1628
|
+
timeout: "timeout",
|
|
1629
|
+
type: "type",
|
|
1630
|
+
}))),
|
|
1631
|
+
});
|
|
1632
|
+
export const listMonitors = API.makePaginated(() => ({
|
|
1609
1633
|
input: ListMonitorsRequest,
|
|
1610
1634
|
output: ListMonitorsResponse,
|
|
1611
1635
|
errors: [],
|
|
1636
|
+
pagination: {
|
|
1637
|
+
mode: "single",
|
|
1638
|
+
items: "result",
|
|
1639
|
+
},
|
|
1612
1640
|
}));
|
|
1613
1641
|
export const CreateMonitorRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1614
1642
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -1679,7 +1707,8 @@ export const CreateMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1679
1707
|
]),
|
|
1680
1708
|
Schema.Null,
|
|
1681
1709
|
])),
|
|
1682
|
-
})
|
|
1710
|
+
})
|
|
1711
|
+
.pipe(Schema.encodeKeys({
|
|
1683
1712
|
id: "id",
|
|
1684
1713
|
allowInsecure: "allow_insecure",
|
|
1685
1714
|
consecutiveDown: "consecutive_down",
|
|
@@ -1699,7 +1728,8 @@ export const CreateMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1699
1728
|
retries: "retries",
|
|
1700
1729
|
timeout: "timeout",
|
|
1701
1730
|
type: "type",
|
|
1702
|
-
}))
|
|
1731
|
+
}))
|
|
1732
|
+
.pipe(T.ResponsePath("result"));
|
|
1703
1733
|
export const createMonitor = API.make(() => ({
|
|
1704
1734
|
input: CreateMonitorRequest,
|
|
1705
1735
|
output: CreateMonitorResponse,
|
|
@@ -1775,7 +1805,8 @@ export const UpdateMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1775
1805
|
]),
|
|
1776
1806
|
Schema.Null,
|
|
1777
1807
|
])),
|
|
1778
|
-
})
|
|
1808
|
+
})
|
|
1809
|
+
.pipe(Schema.encodeKeys({
|
|
1779
1810
|
id: "id",
|
|
1780
1811
|
allowInsecure: "allow_insecure",
|
|
1781
1812
|
consecutiveDown: "consecutive_down",
|
|
@@ -1795,7 +1826,8 @@ export const UpdateMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1795
1826
|
retries: "retries",
|
|
1796
1827
|
timeout: "timeout",
|
|
1797
1828
|
type: "type",
|
|
1798
|
-
}))
|
|
1829
|
+
}))
|
|
1830
|
+
.pipe(T.ResponsePath("result"));
|
|
1799
1831
|
export const updateMonitor = API.make(() => ({
|
|
1800
1832
|
input: UpdateMonitorRequest,
|
|
1801
1833
|
output: UpdateMonitorResponse,
|
|
@@ -1871,7 +1903,8 @@ export const PatchMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1871
1903
|
]),
|
|
1872
1904
|
Schema.Null,
|
|
1873
1905
|
])),
|
|
1874
|
-
})
|
|
1906
|
+
})
|
|
1907
|
+
.pipe(Schema.encodeKeys({
|
|
1875
1908
|
id: "id",
|
|
1876
1909
|
allowInsecure: "allow_insecure",
|
|
1877
1910
|
consecutiveDown: "consecutive_down",
|
|
@@ -1891,7 +1924,8 @@ export const PatchMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1891
1924
|
retries: "retries",
|
|
1892
1925
|
timeout: "timeout",
|
|
1893
1926
|
type: "type",
|
|
1894
|
-
}))
|
|
1927
|
+
}))
|
|
1928
|
+
.pipe(T.ResponsePath("result"));
|
|
1895
1929
|
export const patchMonitor = API.make(() => ({
|
|
1896
1930
|
input: PatchMonitorRequest,
|
|
1897
1931
|
output: PatchMonitorResponse,
|
|
@@ -1906,7 +1940,7 @@ export const DeleteMonitorRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1906
1940
|
}));
|
|
1907
1941
|
export const DeleteMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1908
1942
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1909
|
-
});
|
|
1943
|
+
}).pipe(T.ResponsePath("result"));
|
|
1910
1944
|
export const deleteMonitor = API.make(() => ({
|
|
1911
1945
|
input: DeleteMonitorRequest,
|
|
1912
1946
|
output: DeleteMonitorResponse,
|
|
@@ -1940,13 +1974,15 @@ export const GetMonitorGroupResponse =
|
|
|
1940
1974
|
}))),
|
|
1941
1975
|
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1942
1976
|
updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1943
|
-
})
|
|
1977
|
+
})
|
|
1978
|
+
.pipe(Schema.encodeKeys({
|
|
1944
1979
|
id: "id",
|
|
1945
1980
|
description: "description",
|
|
1946
1981
|
members: "members",
|
|
1947
1982
|
createdAt: "created_at",
|
|
1948
1983
|
updatedAt: "updated_at",
|
|
1949
|
-
}))
|
|
1984
|
+
}))
|
|
1985
|
+
.pipe(T.ResponsePath("result"));
|
|
1950
1986
|
export const getMonitorGroup = API.make(() => ({
|
|
1951
1987
|
input: GetMonitorGroupRequest,
|
|
1952
1988
|
output: GetMonitorGroupResponse,
|
|
@@ -1960,37 +1996,43 @@ export const ListMonitorGroupsRequest =
|
|
|
1960
1996
|
path: "/accounts/{account_id}/load_balancers/monitor_groups",
|
|
1961
1997
|
}));
|
|
1962
1998
|
export const ListMonitorGroupsResponse =
|
|
1963
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1999
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2000
|
+
result: Schema.Array(Schema.Struct({
|
|
2001
|
+
id: Schema.String,
|
|
2002
|
+
description: Schema.String,
|
|
2003
|
+
members: Schema.Array(Schema.Struct({
|
|
2004
|
+
enabled: Schema.Boolean,
|
|
2005
|
+
monitorId: Schema.String,
|
|
2006
|
+
monitoringOnly: Schema.Boolean,
|
|
2007
|
+
mustBeHealthy: Schema.Boolean,
|
|
2008
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2009
|
+
updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2010
|
+
}).pipe(Schema.encodeKeys({
|
|
2011
|
+
enabled: "enabled",
|
|
2012
|
+
monitorId: "monitor_id",
|
|
2013
|
+
monitoringOnly: "monitoring_only",
|
|
2014
|
+
mustBeHealthy: "must_be_healthy",
|
|
2015
|
+
createdAt: "created_at",
|
|
2016
|
+
updatedAt: "updated_at",
|
|
2017
|
+
}))),
|
|
1971
2018
|
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1972
2019
|
updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1973
2020
|
}).pipe(Schema.encodeKeys({
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
mustBeHealthy: "must_be_healthy",
|
|
2021
|
+
id: "id",
|
|
2022
|
+
description: "description",
|
|
2023
|
+
members: "members",
|
|
1978
2024
|
createdAt: "created_at",
|
|
1979
2025
|
updatedAt: "updated_at",
|
|
1980
2026
|
}))),
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
}).pipe(Schema.encodeKeys({
|
|
1984
|
-
id: "id",
|
|
1985
|
-
description: "description",
|
|
1986
|
-
members: "members",
|
|
1987
|
-
createdAt: "created_at",
|
|
1988
|
-
updatedAt: "updated_at",
|
|
1989
|
-
})));
|
|
1990
|
-
export const listMonitorGroups = API.make(() => ({
|
|
2027
|
+
});
|
|
2028
|
+
export const listMonitorGroups = API.makePaginated(() => ({
|
|
1991
2029
|
input: ListMonitorGroupsRequest,
|
|
1992
2030
|
output: ListMonitorGroupsResponse,
|
|
1993
2031
|
errors: [],
|
|
2032
|
+
pagination: {
|
|
2033
|
+
mode: "single",
|
|
2034
|
+
items: "result",
|
|
2035
|
+
},
|
|
1994
2036
|
}));
|
|
1995
2037
|
export const CreateMonitorGroupRequest =
|
|
1996
2038
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -2033,13 +2075,15 @@ export const CreateMonitorGroupResponse =
|
|
|
2033
2075
|
}))),
|
|
2034
2076
|
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2035
2077
|
updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2036
|
-
})
|
|
2078
|
+
})
|
|
2079
|
+
.pipe(Schema.encodeKeys({
|
|
2037
2080
|
id: "id",
|
|
2038
2081
|
description: "description",
|
|
2039
2082
|
members: "members",
|
|
2040
2083
|
createdAt: "created_at",
|
|
2041
2084
|
updatedAt: "updated_at",
|
|
2042
|
-
}))
|
|
2085
|
+
}))
|
|
2086
|
+
.pipe(T.ResponsePath("result"));
|
|
2043
2087
|
export const createMonitorGroup = API.make(() => ({
|
|
2044
2088
|
input: CreateMonitorGroupRequest,
|
|
2045
2089
|
output: CreateMonitorGroupResponse,
|
|
@@ -2087,13 +2131,15 @@ export const UpdateMonitorGroupResponse =
|
|
|
2087
2131
|
}))),
|
|
2088
2132
|
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2089
2133
|
updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2090
|
-
})
|
|
2134
|
+
})
|
|
2135
|
+
.pipe(Schema.encodeKeys({
|
|
2091
2136
|
id: "id",
|
|
2092
2137
|
description: "description",
|
|
2093
2138
|
members: "members",
|
|
2094
2139
|
createdAt: "created_at",
|
|
2095
2140
|
updatedAt: "updated_at",
|
|
2096
|
-
}))
|
|
2141
|
+
}))
|
|
2142
|
+
.pipe(T.ResponsePath("result"));
|
|
2097
2143
|
export const updateMonitorGroup = API.make(() => ({
|
|
2098
2144
|
input: UpdateMonitorGroupRequest,
|
|
2099
2145
|
output: UpdateMonitorGroupResponse,
|
|
@@ -2141,13 +2187,15 @@ export const PatchMonitorGroupResponse =
|
|
|
2141
2187
|
}))),
|
|
2142
2188
|
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2143
2189
|
updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2144
|
-
})
|
|
2190
|
+
})
|
|
2191
|
+
.pipe(Schema.encodeKeys({
|
|
2145
2192
|
id: "id",
|
|
2146
2193
|
description: "description",
|
|
2147
2194
|
members: "members",
|
|
2148
2195
|
createdAt: "created_at",
|
|
2149
2196
|
updatedAt: "updated_at",
|
|
2150
|
-
}))
|
|
2197
|
+
}))
|
|
2198
|
+
.pipe(T.ResponsePath("result"));
|
|
2151
2199
|
export const patchMonitorGroup = API.make(() => ({
|
|
2152
2200
|
input: PatchMonitorGroupRequest,
|
|
2153
2201
|
output: PatchMonitorGroupResponse,
|
|
@@ -2182,13 +2230,15 @@ export const DeleteMonitorGroupResponse =
|
|
|
2182
2230
|
}))),
|
|
2183
2231
|
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2184
2232
|
updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2185
|
-
})
|
|
2233
|
+
})
|
|
2234
|
+
.pipe(Schema.encodeKeys({
|
|
2186
2235
|
id: "id",
|
|
2187
2236
|
description: "description",
|
|
2188
2237
|
members: "members",
|
|
2189
2238
|
createdAt: "created_at",
|
|
2190
2239
|
updatedAt: "updated_at",
|
|
2191
|
-
}))
|
|
2240
|
+
}))
|
|
2241
|
+
.pipe(T.ResponsePath("result"));
|
|
2192
2242
|
export const deleteMonitorGroup = API.make(() => ({
|
|
2193
2243
|
input: DeleteMonitorGroupRequest,
|
|
2194
2244
|
output: DeleteMonitorGroupResponse,
|
|
@@ -2246,7 +2296,9 @@ export const CreateMonitorPreviewResponse =
|
|
|
2246
2296
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2247
2297
|
pools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
2248
2298
|
previewId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2249
|
-
})
|
|
2299
|
+
})
|
|
2300
|
+
.pipe(Schema.encodeKeys({ pools: "pools", previewId: "preview_id" }))
|
|
2301
|
+
.pipe(T.ResponsePath("result"));
|
|
2250
2302
|
export const createMonitorPreview = API.make(() => ({
|
|
2251
2303
|
input: CreateMonitorPreviewRequest,
|
|
2252
2304
|
output: CreateMonitorPreviewResponse,
|
|
@@ -2261,24 +2313,30 @@ export const GetMonitorReferenceRequest =
|
|
|
2261
2313
|
path: "/accounts/{account_id}/load_balancers/monitors/{monitorId}/references",
|
|
2262
2314
|
}));
|
|
2263
2315
|
export const GetMonitorReferenceResponse =
|
|
2264
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
2265
|
-
|
|
2266
|
-
Schema.
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2316
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2317
|
+
result: Schema.Array(Schema.Struct({
|
|
2318
|
+
referenceType: Schema.optional(Schema.Union([
|
|
2319
|
+
Schema.Literals(["*", "referral", "referrer"]),
|
|
2320
|
+
Schema.Null,
|
|
2321
|
+
])),
|
|
2322
|
+
resourceId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2323
|
+
resourceName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2324
|
+
resourceType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2325
|
+
}).pipe(Schema.encodeKeys({
|
|
2326
|
+
referenceType: "reference_type",
|
|
2327
|
+
resourceId: "resource_id",
|
|
2328
|
+
resourceName: "resource_name",
|
|
2329
|
+
resourceType: "resource_type",
|
|
2330
|
+
}))),
|
|
2331
|
+
});
|
|
2332
|
+
export const getMonitorReference = API.makePaginated(() => ({
|
|
2279
2333
|
input: GetMonitorReferenceRequest,
|
|
2280
2334
|
output: GetMonitorReferenceResponse,
|
|
2281
2335
|
errors: [],
|
|
2336
|
+
pagination: {
|
|
2337
|
+
mode: "single",
|
|
2338
|
+
items: "result",
|
|
2339
|
+
},
|
|
2282
2340
|
}));
|
|
2283
2341
|
export const GetPoolRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2284
2342
|
poolId: Schema.String.pipe(T.HttpPath("poolId")),
|
|
@@ -2325,7 +2383,8 @@ export const GetPoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2325
2383
|
notificationFilter: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
2326
2384
|
originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
2327
2385
|
origins: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
|
|
2328
|
-
})
|
|
2386
|
+
})
|
|
2387
|
+
.pipe(Schema.encodeKeys({
|
|
2329
2388
|
id: "id",
|
|
2330
2389
|
checkRegions: "check_regions",
|
|
2331
2390
|
createdOn: "created_on",
|
|
@@ -2345,7 +2404,8 @@ export const GetPoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2345
2404
|
notificationFilter: "notification_filter",
|
|
2346
2405
|
originSteering: "origin_steering",
|
|
2347
2406
|
origins: "origins",
|
|
2348
|
-
}))
|
|
2407
|
+
}))
|
|
2408
|
+
.pipe(T.ResponsePath("result"));
|
|
2349
2409
|
export const getPool = API.make(() => ({
|
|
2350
2410
|
input: GetPoolRequest,
|
|
2351
2411
|
output: GetPoolResponse,
|
|
@@ -2358,69 +2418,75 @@ export const ListPoolsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2358
2418
|
method: "GET",
|
|
2359
2419
|
path: "/accounts/{account_id}/load_balancers/pools",
|
|
2360
2420
|
}));
|
|
2361
|
-
export const ListPoolsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
Schema.
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2421
|
+
export const ListPoolsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2422
|
+
result: Schema.Array(Schema.Struct({
|
|
2423
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2424
|
+
checkRegions: Schema.optional(Schema.Union([
|
|
2425
|
+
Schema.Array(Schema.Literals([
|
|
2426
|
+
"WNAM",
|
|
2427
|
+
"ENAM",
|
|
2428
|
+
"WEU",
|
|
2429
|
+
"EEU",
|
|
2430
|
+
"NSAM",
|
|
2431
|
+
"SSAM",
|
|
2432
|
+
"OC",
|
|
2433
|
+
"ME",
|
|
2434
|
+
"NAF",
|
|
2435
|
+
"SAF",
|
|
2436
|
+
"SEAS",
|
|
2437
|
+
"NEAS",
|
|
2438
|
+
"ALL_REGIONS",
|
|
2439
|
+
"SAS",
|
|
2440
|
+
])),
|
|
2441
|
+
Schema.Null,
|
|
2379
2442
|
])),
|
|
2380
|
-
Schema.Null,
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
export const listPools = API.make(() => ({
|
|
2443
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2444
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2445
|
+
disabledAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2446
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2447
|
+
latitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2448
|
+
loadShedding: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
2449
|
+
longitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2450
|
+
minimumOrigins: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2451
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2452
|
+
monitor: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2453
|
+
monitorGroup: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2454
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2455
|
+
networks: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
2456
|
+
notificationEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2457
|
+
notificationFilter: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
2458
|
+
originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
2459
|
+
origins: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
|
|
2460
|
+
}).pipe(Schema.encodeKeys({
|
|
2461
|
+
id: "id",
|
|
2462
|
+
checkRegions: "check_regions",
|
|
2463
|
+
createdOn: "created_on",
|
|
2464
|
+
description: "description",
|
|
2465
|
+
disabledAt: "disabled_at",
|
|
2466
|
+
enabled: "enabled",
|
|
2467
|
+
latitude: "latitude",
|
|
2468
|
+
loadShedding: "load_shedding",
|
|
2469
|
+
longitude: "longitude",
|
|
2470
|
+
minimumOrigins: "minimum_origins",
|
|
2471
|
+
modifiedOn: "modified_on",
|
|
2472
|
+
monitor: "monitor",
|
|
2473
|
+
monitorGroup: "monitor_group",
|
|
2474
|
+
name: "name",
|
|
2475
|
+
networks: "networks",
|
|
2476
|
+
notificationEmail: "notification_email",
|
|
2477
|
+
notificationFilter: "notification_filter",
|
|
2478
|
+
originSteering: "origin_steering",
|
|
2479
|
+
origins: "origins",
|
|
2480
|
+
}))),
|
|
2481
|
+
});
|
|
2482
|
+
export const listPools = API.makePaginated(() => ({
|
|
2421
2483
|
input: ListPoolsRequest,
|
|
2422
2484
|
output: ListPoolsResponse,
|
|
2423
2485
|
errors: [],
|
|
2486
|
+
pagination: {
|
|
2487
|
+
mode: "single",
|
|
2488
|
+
items: "result",
|
|
2489
|
+
},
|
|
2424
2490
|
}));
|
|
2425
2491
|
export const CreatePoolRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2426
2492
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -2493,7 +2559,8 @@ export const CreatePoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2493
2559
|
notificationFilter: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
2494
2560
|
originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
2495
2561
|
origins: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
|
|
2496
|
-
})
|
|
2562
|
+
})
|
|
2563
|
+
.pipe(Schema.encodeKeys({
|
|
2497
2564
|
id: "id",
|
|
2498
2565
|
checkRegions: "check_regions",
|
|
2499
2566
|
createdOn: "created_on",
|
|
@@ -2513,7 +2580,8 @@ export const CreatePoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2513
2580
|
notificationFilter: "notification_filter",
|
|
2514
2581
|
originSteering: "origin_steering",
|
|
2515
2582
|
origins: "origins",
|
|
2516
|
-
}))
|
|
2583
|
+
}))
|
|
2584
|
+
.pipe(T.ResponsePath("result"));
|
|
2517
2585
|
export const createPool = API.make(() => ({
|
|
2518
2586
|
input: CreatePoolRequest,
|
|
2519
2587
|
output: CreatePoolResponse,
|
|
@@ -2611,7 +2679,8 @@ export const UpdatePoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2611
2679
|
notificationFilter: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
2612
2680
|
originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
2613
2681
|
origins: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
|
|
2614
|
-
})
|
|
2682
|
+
})
|
|
2683
|
+
.pipe(Schema.encodeKeys({
|
|
2615
2684
|
id: "id",
|
|
2616
2685
|
checkRegions: "check_regions",
|
|
2617
2686
|
createdOn: "created_on",
|
|
@@ -2631,7 +2700,8 @@ export const UpdatePoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2631
2700
|
notificationFilter: "notification_filter",
|
|
2632
2701
|
originSteering: "origin_steering",
|
|
2633
2702
|
origins: "origins",
|
|
2634
|
-
}))
|
|
2703
|
+
}))
|
|
2704
|
+
.pipe(T.ResponsePath("result"));
|
|
2635
2705
|
export const updatePool = API.make(() => ({
|
|
2636
2706
|
input: UpdatePoolRequest,
|
|
2637
2707
|
output: UpdatePoolResponse,
|
|
@@ -2729,7 +2799,8 @@ export const PatchPoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2729
2799
|
notificationFilter: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
2730
2800
|
originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
2731
2801
|
origins: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
|
|
2732
|
-
})
|
|
2802
|
+
})
|
|
2803
|
+
.pipe(Schema.encodeKeys({
|
|
2733
2804
|
id: "id",
|
|
2734
2805
|
checkRegions: "check_regions",
|
|
2735
2806
|
createdOn: "created_on",
|
|
@@ -2749,7 +2820,8 @@ export const PatchPoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2749
2820
|
notificationFilter: "notification_filter",
|
|
2750
2821
|
originSteering: "origin_steering",
|
|
2751
2822
|
origins: "origins",
|
|
2752
|
-
}))
|
|
2823
|
+
}))
|
|
2824
|
+
.pipe(T.ResponsePath("result"));
|
|
2753
2825
|
export const patchPool = API.make(() => ({
|
|
2754
2826
|
input: PatchPoolRequest,
|
|
2755
2827
|
output: PatchPoolResponse,
|
|
@@ -2764,7 +2836,7 @@ export const DeletePoolRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2764
2836
|
}));
|
|
2765
2837
|
export const DeletePoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2766
2838
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2767
|
-
});
|
|
2839
|
+
}).pipe(T.ResponsePath("result"));
|
|
2768
2840
|
export const deletePool = API.make(() => ({
|
|
2769
2841
|
input: DeletePoolRequest,
|
|
2770
2842
|
output: DeletePoolResponse,
|
|
@@ -2777,69 +2849,75 @@ export const BulkPatchPoolsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2777
2849
|
method: "PATCH",
|
|
2778
2850
|
path: "/accounts/{account_id}/load_balancers/pools",
|
|
2779
2851
|
}));
|
|
2780
|
-
export const BulkPatchPoolsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
Schema.
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2852
|
+
export const BulkPatchPoolsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2853
|
+
result: Schema.Array(Schema.Struct({
|
|
2854
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2855
|
+
checkRegions: Schema.optional(Schema.Union([
|
|
2856
|
+
Schema.Array(Schema.Literals([
|
|
2857
|
+
"WNAM",
|
|
2858
|
+
"ENAM",
|
|
2859
|
+
"WEU",
|
|
2860
|
+
"EEU",
|
|
2861
|
+
"NSAM",
|
|
2862
|
+
"SSAM",
|
|
2863
|
+
"OC",
|
|
2864
|
+
"ME",
|
|
2865
|
+
"NAF",
|
|
2866
|
+
"SAF",
|
|
2867
|
+
"SEAS",
|
|
2868
|
+
"NEAS",
|
|
2869
|
+
"ALL_REGIONS",
|
|
2870
|
+
"SAS",
|
|
2871
|
+
])),
|
|
2872
|
+
Schema.Null,
|
|
2798
2873
|
])),
|
|
2799
|
-
Schema.Null,
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
export const bulkPatchPools = API.make(() => ({
|
|
2874
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2875
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2876
|
+
disabledAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2877
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2878
|
+
latitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2879
|
+
loadShedding: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
2880
|
+
longitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2881
|
+
minimumOrigins: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2882
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2883
|
+
monitor: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2884
|
+
monitorGroup: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2885
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2886
|
+
networks: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
2887
|
+
notificationEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2888
|
+
notificationFilter: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
2889
|
+
originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
2890
|
+
origins: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
|
|
2891
|
+
}).pipe(Schema.encodeKeys({
|
|
2892
|
+
id: "id",
|
|
2893
|
+
checkRegions: "check_regions",
|
|
2894
|
+
createdOn: "created_on",
|
|
2895
|
+
description: "description",
|
|
2896
|
+
disabledAt: "disabled_at",
|
|
2897
|
+
enabled: "enabled",
|
|
2898
|
+
latitude: "latitude",
|
|
2899
|
+
loadShedding: "load_shedding",
|
|
2900
|
+
longitude: "longitude",
|
|
2901
|
+
minimumOrigins: "minimum_origins",
|
|
2902
|
+
modifiedOn: "modified_on",
|
|
2903
|
+
monitor: "monitor",
|
|
2904
|
+
monitorGroup: "monitor_group",
|
|
2905
|
+
name: "name",
|
|
2906
|
+
networks: "networks",
|
|
2907
|
+
notificationEmail: "notification_email",
|
|
2908
|
+
notificationFilter: "notification_filter",
|
|
2909
|
+
originSteering: "origin_steering",
|
|
2910
|
+
origins: "origins",
|
|
2911
|
+
}))),
|
|
2912
|
+
});
|
|
2913
|
+
export const bulkPatchPools = API.makePaginated(() => ({
|
|
2840
2914
|
input: BulkPatchPoolsRequest,
|
|
2841
2915
|
output: BulkPatchPoolsResponse,
|
|
2842
2916
|
errors: [],
|
|
2917
|
+
pagination: {
|
|
2918
|
+
mode: "single",
|
|
2919
|
+
items: "result",
|
|
2920
|
+
},
|
|
2843
2921
|
}));
|
|
2844
2922
|
export const GetPoolHealthRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2845
2923
|
poolId: Schema.String.pipe(T.HttpPath("poolId")),
|
|
@@ -2875,7 +2953,9 @@ export const GetPoolHealthResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2875
2953
|
}),
|
|
2876
2954
|
Schema.Null,
|
|
2877
2955
|
])),
|
|
2878
|
-
})
|
|
2956
|
+
})
|
|
2957
|
+
.pipe(Schema.encodeKeys({ poolId: "pool_id", popHealth: "pop_health" }))
|
|
2958
|
+
.pipe(T.ResponsePath("result"));
|
|
2879
2959
|
export const getPoolHealth = API.make(() => ({
|
|
2880
2960
|
input: GetPoolHealthRequest,
|
|
2881
2961
|
output: GetPoolHealthResponse,
|
|
@@ -2933,7 +3013,9 @@ export const CreatePoolHealthResponse =
|
|
|
2933
3013
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2934
3014
|
pools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
2935
3015
|
previewId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2936
|
-
})
|
|
3016
|
+
})
|
|
3017
|
+
.pipe(Schema.encodeKeys({ pools: "pools", previewId: "preview_id" }))
|
|
3018
|
+
.pipe(T.ResponsePath("result"));
|
|
2937
3019
|
export const createPoolHealth = API.make(() => ({
|
|
2938
3020
|
input: CreatePoolHealthRequest,
|
|
2939
3021
|
output: CreatePoolHealthResponse,
|
|
@@ -2948,24 +3030,30 @@ export const GetPoolReferenceRequest =
|
|
|
2948
3030
|
path: "/accounts/{account_id}/load_balancers/pools/{poolId}/references",
|
|
2949
3031
|
}));
|
|
2950
3032
|
export const GetPoolReferenceResponse =
|
|
2951
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
2952
|
-
|
|
2953
|
-
Schema.
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
3033
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3034
|
+
result: Schema.Array(Schema.Struct({
|
|
3035
|
+
referenceType: Schema.optional(Schema.Union([
|
|
3036
|
+
Schema.Literals(["*", "referral", "referrer"]),
|
|
3037
|
+
Schema.Null,
|
|
3038
|
+
])),
|
|
3039
|
+
resourceId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3040
|
+
resourceName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3041
|
+
resourceType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3042
|
+
}).pipe(Schema.encodeKeys({
|
|
3043
|
+
referenceType: "reference_type",
|
|
3044
|
+
resourceId: "resource_id",
|
|
3045
|
+
resourceName: "resource_name",
|
|
3046
|
+
resourceType: "resource_type",
|
|
3047
|
+
}))),
|
|
3048
|
+
});
|
|
3049
|
+
export const getPoolReference = API.makePaginated(() => ({
|
|
2966
3050
|
input: GetPoolReferenceRequest,
|
|
2967
3051
|
output: GetPoolReferenceResponse,
|
|
2968
3052
|
errors: [],
|
|
3053
|
+
pagination: {
|
|
3054
|
+
mode: "single",
|
|
3055
|
+
items: "result",
|
|
3056
|
+
},
|
|
2969
3057
|
}));
|
|
2970
3058
|
export const GetPreviewRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2971
3059
|
previewId: Schema.String.pipe(T.HttpPath("previewId")),
|
|
@@ -2974,7 +3062,7 @@ export const GetPreviewRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2974
3062
|
method: "GET",
|
|
2975
3063
|
path: "/accounts/{account_id}/load_balancers/preview/{previewId}",
|
|
2976
3064
|
}));
|
|
2977
|
-
export const GetPreviewResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({});
|
|
3065
|
+
export const GetPreviewResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.ResponsePath("result"));
|
|
2978
3066
|
export const getPreview = API.make(() => ({
|
|
2979
3067
|
input: GetPreviewRequest,
|
|
2980
3068
|
output: GetPreviewResponse,
|
|
@@ -3004,7 +3092,7 @@ export const GetRegionRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
3004
3092
|
export const GetRegionResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
|
|
3005
3093
|
Schema.String,
|
|
3006
3094
|
Schema.Null,
|
|
3007
|
-
]);
|
|
3095
|
+
]).pipe(T.ResponsePath("result"));
|
|
3008
3096
|
export const getRegion = API.make(() => ({
|
|
3009
3097
|
input: GetRegionRequest,
|
|
3010
3098
|
output: GetRegionResponse,
|
|
@@ -3022,7 +3110,7 @@ export const ListRegionsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
3022
3110
|
export const ListRegionsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
|
|
3023
3111
|
Schema.String,
|
|
3024
3112
|
Schema.Null,
|
|
3025
|
-
]);
|
|
3113
|
+
]).pipe(T.ResponsePath("result"));
|
|
3026
3114
|
export const listRegions = API.make(() => ({
|
|
3027
3115
|
input: ListRegionsRequest,
|
|
3028
3116
|
output: ListRegionsResponse,
|
|
@@ -3036,33 +3124,58 @@ export const ListSearchesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
3036
3124
|
method: "GET",
|
|
3037
3125
|
path: "/accounts/{account_id}/load_balancers/search",
|
|
3038
3126
|
}));
|
|
3039
|
-
export const ListSearchesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
3040
|
-
|
|
3041
|
-
Schema.
|
|
3042
|
-
|
|
3043
|
-
Schema.
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
}))
|
|
3063
|
-
|
|
3127
|
+
export const ListSearchesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3128
|
+
result: Schema.Struct({
|
|
3129
|
+
items: Schema.optional(Schema.Union([
|
|
3130
|
+
Schema.Array(Schema.Struct({
|
|
3131
|
+
resources: Schema.optional(Schema.Union([
|
|
3132
|
+
Schema.Array(Schema.Struct({
|
|
3133
|
+
referenceType: Schema.optional(Schema.Union([
|
|
3134
|
+
Schema.Literals(["referral", "referrer"]),
|
|
3135
|
+
Schema.Null,
|
|
3136
|
+
])),
|
|
3137
|
+
references: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
|
|
3138
|
+
resourceId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3139
|
+
resourceName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3140
|
+
resourceType: Schema.optional(Schema.Union([
|
|
3141
|
+
Schema.Literals(["load_balancer", "monitor", "pool"]),
|
|
3142
|
+
Schema.Null,
|
|
3143
|
+
])),
|
|
3144
|
+
}).pipe(Schema.encodeKeys({
|
|
3145
|
+
referenceType: "reference_type",
|
|
3146
|
+
references: "references",
|
|
3147
|
+
resourceId: "resource_id",
|
|
3148
|
+
resourceName: "resource_name",
|
|
3149
|
+
resourceType: "resource_type",
|
|
3150
|
+
}))),
|
|
3151
|
+
Schema.Null,
|
|
3152
|
+
])),
|
|
3153
|
+
})),
|
|
3154
|
+
Schema.Null,
|
|
3155
|
+
])),
|
|
3156
|
+
}),
|
|
3157
|
+
resultInfo: Schema.Struct({
|
|
3158
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3159
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3160
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3161
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3162
|
+
}).pipe(Schema.encodeKeys({
|
|
3163
|
+
count: "count",
|
|
3164
|
+
page: "page",
|
|
3165
|
+
perPage: "per_page",
|
|
3166
|
+
totalCount: "total_count",
|
|
3167
|
+
})),
|
|
3168
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
3169
|
+
export const listSearches = API.makePaginated(() => ({
|
|
3064
3170
|
input: ListSearchesRequest,
|
|
3065
3171
|
output: ListSearchesResponse,
|
|
3066
3172
|
errors: [],
|
|
3173
|
+
pagination: {
|
|
3174
|
+
mode: "page",
|
|
3175
|
+
inputToken: "page",
|
|
3176
|
+
outputToken: "resultInfo.page",
|
|
3177
|
+
items: "result.items",
|
|
3178
|
+
pageSize: "perPage",
|
|
3179
|
+
},
|
|
3067
3180
|
}));
|
|
3068
3181
|
//# sourceMappingURL=load-balancers.js.map
|