@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,10 +4,12 @@
|
|
|
4
4
|
* Generated from Cloudflare TypeScript SDK.
|
|
5
5
|
* DO NOT EDIT - regenerate with: bun scripts/generate.ts --service pipelines
|
|
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";
|
|
10
11
|
import {} from "../errors.js";
|
|
12
|
+
import { SensitiveString } from "../sensitive.js";
|
|
11
13
|
// =============================================================================
|
|
12
14
|
// Errors
|
|
13
15
|
// =============================================================================
|
|
@@ -89,7 +91,7 @@ export const GetPipelineResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
89
91
|
}),
|
|
90
92
|
])),
|
|
91
93
|
version: Schema.Number,
|
|
92
|
-
});
|
|
94
|
+
}).pipe(T.ResponsePath("result"));
|
|
93
95
|
export const getPipeline = API.make(() => ({
|
|
94
96
|
input: GetPipelineRequest,
|
|
95
97
|
output: GetPipelineResponse,
|
|
@@ -101,7 +103,7 @@ export const ListPipelinesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
101
103
|
perPage: Schema.optional(Schema.String).pipe(T.HttpQuery("per_page")),
|
|
102
104
|
search: Schema.optional(Schema.String).pipe(T.HttpQuery("search")),
|
|
103
105
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/pipelines" }));
|
|
104
|
-
export const ListPipelinesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
106
|
+
export const ListPipelinesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
105
107
|
resultInfo: Schema.optional(Schema.Union([
|
|
106
108
|
Schema.Struct({
|
|
107
109
|
count: Schema.Number,
|
|
@@ -116,66 +118,60 @@ export const ListPipelinesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Sc
|
|
|
116
118
|
})),
|
|
117
119
|
Schema.Null,
|
|
118
120
|
])),
|
|
119
|
-
results: Schema.
|
|
120
|
-
Schema.
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
121
|
+
results: Schema.Array(Schema.Struct({
|
|
122
|
+
id: Schema.String,
|
|
123
|
+
destination: Schema.Struct({
|
|
124
|
+
batch: Schema.Struct({
|
|
125
|
+
maxBytes: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
126
|
+
maxDurationS: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
127
|
+
maxRows: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
128
|
+
}).pipe(Schema.encodeKeys({
|
|
129
|
+
maxBytes: "max_bytes",
|
|
130
|
+
maxDurationS: "max_duration_s",
|
|
131
|
+
maxRows: "max_rows",
|
|
132
|
+
})),
|
|
133
|
+
compression: Schema.Struct({
|
|
134
|
+
type: Schema.optional(Schema.Union([
|
|
135
|
+
Schema.Literals(["none", "gzip", "deflate"]),
|
|
136
|
+
Schema.Null,
|
|
137
|
+
])),
|
|
138
|
+
}),
|
|
139
|
+
format: Schema.Literal("json"),
|
|
140
|
+
path: Schema.Struct({
|
|
141
|
+
bucket: Schema.String,
|
|
142
|
+
filename: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
143
|
+
filepath: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
144
|
+
prefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
145
|
+
}),
|
|
146
|
+
type: Schema.Literal("r2"),
|
|
147
|
+
}),
|
|
148
|
+
endpoint: Schema.String,
|
|
149
|
+
name: Schema.String,
|
|
150
|
+
source: Schema.Array(Schema.Union([
|
|
151
|
+
Schema.Struct({
|
|
138
152
|
format: Schema.Literal("json"),
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
153
|
+
type: Schema.String,
|
|
154
|
+
authentication: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
155
|
+
cors: Schema.optional(Schema.Union([
|
|
156
|
+
Schema.Struct({
|
|
157
|
+
origins: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
158
|
+
}),
|
|
159
|
+
Schema.Null,
|
|
160
|
+
])),
|
|
146
161
|
}),
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
Schema.Struct({
|
|
156
|
-
origins: Schema.optional(Schema.Union([
|
|
157
|
-
Schema.Array(Schema.String),
|
|
158
|
-
Schema.Null,
|
|
159
|
-
])),
|
|
160
|
-
}),
|
|
161
|
-
Schema.Null,
|
|
162
|
-
])),
|
|
163
|
-
}),
|
|
164
|
-
Schema.Struct({
|
|
165
|
-
format: Schema.Literal("json"),
|
|
166
|
-
type: Schema.String,
|
|
167
|
-
}),
|
|
168
|
-
])),
|
|
169
|
-
version: Schema.Number,
|
|
170
|
-
})),
|
|
171
|
-
Schema.Null,
|
|
172
|
-
])),
|
|
173
|
-
success: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
162
|
+
Schema.Struct({
|
|
163
|
+
format: Schema.Literal("json"),
|
|
164
|
+
type: Schema.String,
|
|
165
|
+
}),
|
|
166
|
+
])),
|
|
167
|
+
version: Schema.Number,
|
|
168
|
+
})),
|
|
169
|
+
success: Schema.Boolean,
|
|
174
170
|
}).pipe(Schema.encodeKeys({
|
|
175
171
|
resultInfo: "result_info",
|
|
176
|
-
results: "
|
|
172
|
+
results: "result",
|
|
177
173
|
success: "success",
|
|
178
|
-
}))
|
|
174
|
+
}));
|
|
179
175
|
export const listPipelines = API.make(() => ({
|
|
180
176
|
input: ListPipelinesRequest,
|
|
181
177
|
output: ListPipelinesResponse,
|
|
@@ -197,9 +193,9 @@ export const CreatePipelineRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
197
193
|
type: Schema.optional(Schema.Literals(["none", "gzip", "deflate"])),
|
|
198
194
|
}),
|
|
199
195
|
credentials: Schema.Struct({
|
|
200
|
-
accessKeyId:
|
|
196
|
+
accessKeyId: SensitiveString,
|
|
201
197
|
endpoint: Schema.String,
|
|
202
|
-
secretAccessKey:
|
|
198
|
+
secretAccessKey: SensitiveString,
|
|
203
199
|
}).pipe(Schema.encodeKeys({
|
|
204
200
|
accessKeyId: "access_key_id",
|
|
205
201
|
endpoint: "endpoint",
|
|
@@ -277,7 +273,7 @@ export const CreatePipelineResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
277
273
|
}),
|
|
278
274
|
])),
|
|
279
275
|
version: Schema.Number,
|
|
280
|
-
});
|
|
276
|
+
}).pipe(T.ResponsePath("result"));
|
|
281
277
|
export const createPipeline = API.make(() => ({
|
|
282
278
|
input: CreatePipelineRequest,
|
|
283
279
|
output: CreatePipelineResponse,
|
|
@@ -308,9 +304,9 @@ export const UpdatePipelineRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
308
304
|
}),
|
|
309
305
|
type: Schema.Literal("r2"),
|
|
310
306
|
credentials: Schema.optional(Schema.Struct({
|
|
311
|
-
accessKeyId:
|
|
307
|
+
accessKeyId: SensitiveString,
|
|
312
308
|
endpoint: Schema.String,
|
|
313
|
-
secretAccessKey:
|
|
309
|
+
secretAccessKey: SensitiveString,
|
|
314
310
|
}).pipe(Schema.encodeKeys({
|
|
315
311
|
accessKeyId: "access_key_id",
|
|
316
312
|
endpoint: "endpoint",
|
|
@@ -383,7 +379,7 @@ export const UpdatePipelineResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
383
379
|
}),
|
|
384
380
|
])),
|
|
385
381
|
version: Schema.Number,
|
|
386
|
-
});
|
|
382
|
+
}).pipe(T.ResponsePath("result"));
|
|
387
383
|
export const updatePipeline = API.make(() => ({
|
|
388
384
|
input: UpdatePipelineRequest,
|
|
389
385
|
output: UpdatePipelineResponse,
|
|
@@ -422,8 +418,8 @@ export const GetSinkResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
422
418
|
accountId: Schema.String,
|
|
423
419
|
bucket: Schema.String,
|
|
424
420
|
credentials: Schema.Struct({
|
|
425
|
-
accessKeyId:
|
|
426
|
-
secretAccessKey:
|
|
421
|
+
accessKeyId: SensitiveString,
|
|
422
|
+
secretAccessKey: SensitiveString,
|
|
427
423
|
}).pipe(Schema.encodeKeys({
|
|
428
424
|
accessKeyId: "access_key_id",
|
|
429
425
|
secretAccessKey: "secret_access_key",
|
|
@@ -721,7 +717,8 @@ export const GetSinkResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
721
717
|
}),
|
|
722
718
|
Schema.Null,
|
|
723
719
|
])),
|
|
724
|
-
})
|
|
720
|
+
})
|
|
721
|
+
.pipe(Schema.encodeKeys({
|
|
725
722
|
id: "id",
|
|
726
723
|
createdAt: "created_at",
|
|
727
724
|
modifiedAt: "modified_at",
|
|
@@ -730,7 +727,8 @@ export const GetSinkResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
730
727
|
config: "config",
|
|
731
728
|
format: "format",
|
|
732
729
|
schema: "schema",
|
|
733
|
-
}))
|
|
730
|
+
}))
|
|
731
|
+
.pipe(T.ResponsePath("result"));
|
|
734
732
|
export const getSink = API.make(() => ({
|
|
735
733
|
input: GetSinkRequest,
|
|
736
734
|
output: GetSinkResponse,
|
|
@@ -740,343 +738,366 @@ export const ListSinksRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
740
738
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
741
739
|
pipelineId: Schema.optional(Schema.String).pipe(T.HttpQuery("pipeline_id")),
|
|
742
740
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/pipelines/v1/sinks" }));
|
|
743
|
-
export const ListSinksResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
Schema.Union([
|
|
751
|
-
Schema.
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
accessKeyId: "access_key_id",
|
|
759
|
-
secretAccessKey: "secret_access_key",
|
|
760
|
-
})),
|
|
761
|
-
fileNaming: Schema.optional(Schema.Union([
|
|
762
|
-
Schema.Struct({
|
|
763
|
-
prefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
764
|
-
strategy: Schema.optional(Schema.Union([
|
|
765
|
-
Schema.Literals(["serial", "uuid", "uuid_v7", "ulid"]),
|
|
766
|
-
Schema.Null,
|
|
767
|
-
])),
|
|
768
|
-
suffix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
769
|
-
}),
|
|
770
|
-
Schema.Null,
|
|
771
|
-
])),
|
|
772
|
-
jurisdiction: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
773
|
-
partitioning: Schema.optional(Schema.Union([
|
|
774
|
-
Schema.Struct({
|
|
775
|
-
timePattern: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
776
|
-
}).pipe(Schema.encodeKeys({ timePattern: "time_pattern" })),
|
|
777
|
-
Schema.Null,
|
|
778
|
-
])),
|
|
779
|
-
path: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
780
|
-
rollingPolicy: Schema.optional(Schema.Union([
|
|
781
|
-
Schema.Struct({
|
|
782
|
-
fileSizeBytes: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
783
|
-
inactivitySeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
784
|
-
intervalSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
785
|
-
}).pipe(Schema.encodeKeys({
|
|
786
|
-
fileSizeBytes: "file_size_bytes",
|
|
787
|
-
inactivitySeconds: "inactivity_seconds",
|
|
788
|
-
intervalSeconds: "interval_seconds",
|
|
789
|
-
})),
|
|
790
|
-
Schema.Null,
|
|
791
|
-
])),
|
|
792
|
-
}).pipe(Schema.encodeKeys({
|
|
793
|
-
accountId: "account_id",
|
|
794
|
-
bucket: "bucket",
|
|
795
|
-
credentials: "credentials",
|
|
796
|
-
fileNaming: "file_naming",
|
|
797
|
-
jurisdiction: "jurisdiction",
|
|
798
|
-
partitioning: "partitioning",
|
|
799
|
-
path: "path",
|
|
800
|
-
rollingPolicy: "rolling_policy",
|
|
801
|
-
})),
|
|
802
|
-
Schema.Struct({
|
|
803
|
-
token: Schema.String,
|
|
804
|
-
accountId: Schema.String,
|
|
805
|
-
bucket: Schema.String,
|
|
806
|
-
tableName: Schema.String,
|
|
807
|
-
namespace: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
808
|
-
rollingPolicy: Schema.optional(Schema.Union([
|
|
809
|
-
Schema.Struct({
|
|
810
|
-
fileSizeBytes: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
811
|
-
inactivitySeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
812
|
-
intervalSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
741
|
+
export const ListSinksResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
742
|
+
result: Schema.Array(Schema.Struct({
|
|
743
|
+
id: Schema.String,
|
|
744
|
+
createdAt: Schema.String,
|
|
745
|
+
modifiedAt: Schema.String,
|
|
746
|
+
name: Schema.String,
|
|
747
|
+
type: Schema.Literals(["r2", "r2_data_catalog"]),
|
|
748
|
+
config: Schema.optional(Schema.Union([
|
|
749
|
+
Schema.Union([
|
|
750
|
+
Schema.Struct({
|
|
751
|
+
accountId: Schema.String,
|
|
752
|
+
bucket: Schema.String,
|
|
753
|
+
credentials: Schema.Struct({
|
|
754
|
+
accessKeyId: SensitiveString,
|
|
755
|
+
secretAccessKey: SensitiveString,
|
|
813
756
|
}).pipe(Schema.encodeKeys({
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
intervalSeconds: "interval_seconds",
|
|
757
|
+
accessKeyId: "access_key_id",
|
|
758
|
+
secretAccessKey: "secret_access_key",
|
|
817
759
|
})),
|
|
818
|
-
Schema.
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
760
|
+
fileNaming: Schema.optional(Schema.Union([
|
|
761
|
+
Schema.Struct({
|
|
762
|
+
prefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
763
|
+
strategy: Schema.optional(Schema.Union([
|
|
764
|
+
Schema.Literals(["serial", "uuid", "uuid_v7", "ulid"]),
|
|
765
|
+
Schema.Null,
|
|
766
|
+
])),
|
|
767
|
+
suffix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
768
|
+
}),
|
|
769
|
+
Schema.Null,
|
|
770
|
+
])),
|
|
771
|
+
jurisdiction: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
772
|
+
partitioning: Schema.optional(Schema.Union([
|
|
773
|
+
Schema.Struct({
|
|
774
|
+
timePattern: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
775
|
+
}).pipe(Schema.encodeKeys({ timePattern: "time_pattern" })),
|
|
776
|
+
Schema.Null,
|
|
777
|
+
])),
|
|
778
|
+
path: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
779
|
+
rollingPolicy: Schema.optional(Schema.Union([
|
|
780
|
+
Schema.Struct({
|
|
781
|
+
fileSizeBytes: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
782
|
+
inactivitySeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
783
|
+
intervalSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
784
|
+
}).pipe(Schema.encodeKeys({
|
|
785
|
+
fileSizeBytes: "file_size_bytes",
|
|
786
|
+
inactivitySeconds: "inactivity_seconds",
|
|
787
|
+
intervalSeconds: "interval_seconds",
|
|
788
|
+
})),
|
|
789
|
+
Schema.Null,
|
|
790
|
+
])),
|
|
791
|
+
}).pipe(Schema.encodeKeys({
|
|
792
|
+
accountId: "account_id",
|
|
793
|
+
bucket: "bucket",
|
|
794
|
+
credentials: "credentials",
|
|
795
|
+
fileNaming: "file_naming",
|
|
796
|
+
jurisdiction: "jurisdiction",
|
|
797
|
+
partitioning: "partitioning",
|
|
798
|
+
path: "path",
|
|
799
|
+
rollingPolicy: "rolling_policy",
|
|
800
|
+
})),
|
|
801
|
+
Schema.Struct({
|
|
802
|
+
token: Schema.String,
|
|
803
|
+
accountId: Schema.String,
|
|
804
|
+
bucket: Schema.String,
|
|
805
|
+
tableName: Schema.String,
|
|
806
|
+
namespace: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
807
|
+
rollingPolicy: Schema.optional(Schema.Union([
|
|
808
|
+
Schema.Struct({
|
|
809
|
+
fileSizeBytes: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
810
|
+
inactivitySeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
811
|
+
intervalSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
812
|
+
}).pipe(Schema.encodeKeys({
|
|
813
|
+
fileSizeBytes: "file_size_bytes",
|
|
814
|
+
inactivitySeconds: "inactivity_seconds",
|
|
815
|
+
intervalSeconds: "interval_seconds",
|
|
816
|
+
})),
|
|
817
|
+
Schema.Null,
|
|
818
|
+
])),
|
|
819
|
+
}).pipe(Schema.encodeKeys({
|
|
820
|
+
token: "token",
|
|
821
|
+
accountId: "account_id",
|
|
822
|
+
bucket: "bucket",
|
|
823
|
+
tableName: "table_name",
|
|
824
|
+
namespace: "namespace",
|
|
825
|
+
rollingPolicy: "rolling_policy",
|
|
826
|
+
})),
|
|
827
|
+
]),
|
|
828
|
+
Schema.Null,
|
|
829
|
+
])),
|
|
830
|
+
format: Schema.optional(Schema.Union([
|
|
831
|
+
Schema.Union([
|
|
832
|
+
Schema.Struct({
|
|
833
|
+
type: Schema.Literal("json"),
|
|
834
|
+
decimalEncoding: Schema.optional(Schema.Union([
|
|
835
|
+
Schema.Literals(["number", "string", "bytes"]),
|
|
836
|
+
Schema.Null,
|
|
837
|
+
])),
|
|
838
|
+
timestampFormat: Schema.optional(Schema.Union([
|
|
839
|
+
Schema.Literals(["rfc3339", "unix_millis"]),
|
|
840
|
+
Schema.Null,
|
|
841
|
+
])),
|
|
842
|
+
unstructured: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
843
|
+
}).pipe(Schema.encodeKeys({
|
|
844
|
+
type: "type",
|
|
845
|
+
decimalEncoding: "decimal_encoding",
|
|
846
|
+
timestampFormat: "timestamp_format",
|
|
847
|
+
unstructured: "unstructured",
|
|
848
|
+
})),
|
|
849
|
+
Schema.Struct({
|
|
850
|
+
type: Schema.Literal("parquet"),
|
|
851
|
+
compression: Schema.optional(Schema.Union([
|
|
852
|
+
Schema.Literals([
|
|
853
|
+
"uncompressed",
|
|
854
|
+
"snappy",
|
|
855
|
+
"gzip",
|
|
856
|
+
"zstd",
|
|
857
|
+
"lz4",
|
|
858
|
+
]),
|
|
859
|
+
Schema.Null,
|
|
860
|
+
])),
|
|
861
|
+
rowGroupBytes: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
862
|
+
}).pipe(Schema.encodeKeys({
|
|
863
|
+
type: "type",
|
|
864
|
+
compression: "compression",
|
|
865
|
+
rowGroupBytes: "row_group_bytes",
|
|
866
|
+
})),
|
|
867
|
+
]),
|
|
868
|
+
Schema.Null,
|
|
869
|
+
])),
|
|
870
|
+
schema: Schema.optional(Schema.Union([
|
|
833
871
|
Schema.Struct({
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
872
|
+
fields: Schema.optional(Schema.Union([
|
|
873
|
+
Schema.Array(Schema.Union([
|
|
874
|
+
Schema.Struct({
|
|
875
|
+
type: Schema.Literal("int32"),
|
|
876
|
+
metadataKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
877
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
878
|
+
required: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
879
|
+
sqlName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
880
|
+
}).pipe(Schema.encodeKeys({
|
|
881
|
+
type: "type",
|
|
882
|
+
metadataKey: "metadata_key",
|
|
883
|
+
name: "name",
|
|
884
|
+
required: "required",
|
|
885
|
+
sqlName: "sql_name",
|
|
886
|
+
})),
|
|
887
|
+
Schema.Struct({
|
|
888
|
+
type: Schema.Literal("int64"),
|
|
889
|
+
metadataKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
890
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
891
|
+
required: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
892
|
+
sqlName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
893
|
+
}).pipe(Schema.encodeKeys({
|
|
894
|
+
type: "type",
|
|
895
|
+
metadataKey: "metadata_key",
|
|
896
|
+
name: "name",
|
|
897
|
+
required: "required",
|
|
898
|
+
sqlName: "sql_name",
|
|
899
|
+
})),
|
|
900
|
+
Schema.Struct({
|
|
901
|
+
type: Schema.Literal("float32"),
|
|
902
|
+
metadataKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
903
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
904
|
+
required: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
905
|
+
sqlName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
906
|
+
}).pipe(Schema.encodeKeys({
|
|
907
|
+
type: "type",
|
|
908
|
+
metadataKey: "metadata_key",
|
|
909
|
+
name: "name",
|
|
910
|
+
required: "required",
|
|
911
|
+
sqlName: "sql_name",
|
|
912
|
+
})),
|
|
913
|
+
Schema.Struct({
|
|
914
|
+
type: Schema.Literal("float64"),
|
|
915
|
+
metadataKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
916
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
917
|
+
required: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
918
|
+
sqlName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
919
|
+
}).pipe(Schema.encodeKeys({
|
|
920
|
+
type: "type",
|
|
921
|
+
metadataKey: "metadata_key",
|
|
922
|
+
name: "name",
|
|
923
|
+
required: "required",
|
|
924
|
+
sqlName: "sql_name",
|
|
925
|
+
})),
|
|
926
|
+
Schema.Struct({
|
|
927
|
+
type: Schema.Literal("bool"),
|
|
928
|
+
metadataKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
929
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
930
|
+
required: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
931
|
+
sqlName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
932
|
+
}).pipe(Schema.encodeKeys({
|
|
933
|
+
type: "type",
|
|
934
|
+
metadataKey: "metadata_key",
|
|
935
|
+
name: "name",
|
|
936
|
+
required: "required",
|
|
937
|
+
sqlName: "sql_name",
|
|
938
|
+
})),
|
|
939
|
+
Schema.Struct({
|
|
940
|
+
type: Schema.Literal("string"),
|
|
941
|
+
metadataKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
942
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
943
|
+
required: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
944
|
+
sqlName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
945
|
+
}).pipe(Schema.encodeKeys({
|
|
946
|
+
type: "type",
|
|
947
|
+
metadataKey: "metadata_key",
|
|
948
|
+
name: "name",
|
|
949
|
+
required: "required",
|
|
950
|
+
sqlName: "sql_name",
|
|
951
|
+
})),
|
|
952
|
+
Schema.Struct({
|
|
953
|
+
type: Schema.Literal("binary"),
|
|
954
|
+
metadataKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
955
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
956
|
+
required: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
957
|
+
sqlName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
958
|
+
}).pipe(Schema.encodeKeys({
|
|
959
|
+
type: "type",
|
|
960
|
+
metadataKey: "metadata_key",
|
|
961
|
+
name: "name",
|
|
962
|
+
required: "required",
|
|
963
|
+
sqlName: "sql_name",
|
|
964
|
+
})),
|
|
965
|
+
Schema.Struct({
|
|
966
|
+
type: Schema.Literal("timestamp"),
|
|
967
|
+
metadataKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
968
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
969
|
+
required: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
970
|
+
sqlName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
971
|
+
unit: Schema.optional(Schema.Union([
|
|
972
|
+
Schema.Literals([
|
|
973
|
+
"second",
|
|
974
|
+
"millisecond",
|
|
975
|
+
"microsecond",
|
|
976
|
+
"nanosecond",
|
|
977
|
+
]),
|
|
978
|
+
Schema.Null,
|
|
979
|
+
])),
|
|
980
|
+
}).pipe(Schema.encodeKeys({
|
|
981
|
+
type: "type",
|
|
982
|
+
metadataKey: "metadata_key",
|
|
983
|
+
name: "name",
|
|
984
|
+
required: "required",
|
|
985
|
+
sqlName: "sql_name",
|
|
986
|
+
unit: "unit",
|
|
987
|
+
})),
|
|
988
|
+
Schema.Struct({
|
|
989
|
+
type: Schema.Literal("json"),
|
|
990
|
+
decimalEncoding: Schema.optional(Schema.Union([
|
|
991
|
+
Schema.Literals(["number", "string", "bytes"]),
|
|
992
|
+
Schema.Null,
|
|
993
|
+
])),
|
|
994
|
+
timestampFormat: Schema.optional(Schema.Union([
|
|
995
|
+
Schema.Literals(["rfc3339", "unix_millis"]),
|
|
996
|
+
Schema.Null,
|
|
997
|
+
])),
|
|
998
|
+
unstructured: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
999
|
+
}).pipe(Schema.encodeKeys({
|
|
1000
|
+
type: "type",
|
|
1001
|
+
decimalEncoding: "decimal_encoding",
|
|
1002
|
+
timestampFormat: "timestamp_format",
|
|
1003
|
+
unstructured: "unstructured",
|
|
1004
|
+
})),
|
|
1005
|
+
Schema.Unknown,
|
|
1006
|
+
])),
|
|
841
1007
|
Schema.Null,
|
|
842
1008
|
])),
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
1009
|
+
format: Schema.optional(Schema.Union([
|
|
1010
|
+
Schema.Union([
|
|
1011
|
+
Schema.Struct({
|
|
1012
|
+
type: Schema.Literal("json"),
|
|
1013
|
+
decimalEncoding: Schema.optional(Schema.Union([
|
|
1014
|
+
Schema.Literals(["number", "string", "bytes"]),
|
|
1015
|
+
Schema.Null,
|
|
1016
|
+
])),
|
|
1017
|
+
timestampFormat: Schema.optional(Schema.Union([
|
|
1018
|
+
Schema.Literals(["rfc3339", "unix_millis"]),
|
|
1019
|
+
Schema.Null,
|
|
1020
|
+
])),
|
|
1021
|
+
unstructured: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1022
|
+
}).pipe(Schema.encodeKeys({
|
|
1023
|
+
type: "type",
|
|
1024
|
+
decimalEncoding: "decimal_encoding",
|
|
1025
|
+
timestampFormat: "timestamp_format",
|
|
1026
|
+
unstructured: "unstructured",
|
|
1027
|
+
})),
|
|
1028
|
+
Schema.Struct({
|
|
1029
|
+
type: Schema.Literal("parquet"),
|
|
1030
|
+
compression: Schema.optional(Schema.Union([
|
|
1031
|
+
Schema.Literals([
|
|
1032
|
+
"uncompressed",
|
|
1033
|
+
"snappy",
|
|
1034
|
+
"gzip",
|
|
1035
|
+
"zstd",
|
|
1036
|
+
"lz4",
|
|
1037
|
+
]),
|
|
1038
|
+
Schema.Null,
|
|
1039
|
+
])),
|
|
1040
|
+
rowGroupBytes: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1041
|
+
}).pipe(Schema.encodeKeys({
|
|
1042
|
+
type: "type",
|
|
1043
|
+
compression: "compression",
|
|
1044
|
+
rowGroupBytes: "row_group_bytes",
|
|
1045
|
+
})),
|
|
859
1046
|
]),
|
|
860
1047
|
Schema.Null,
|
|
861
1048
|
])),
|
|
862
|
-
|
|
863
|
-
})
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
1049
|
+
inferred: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1050
|
+
}),
|
|
1051
|
+
Schema.Null,
|
|
1052
|
+
])),
|
|
1053
|
+
}).pipe(Schema.encodeKeys({
|
|
1054
|
+
id: "id",
|
|
1055
|
+
createdAt: "created_at",
|
|
1056
|
+
modifiedAt: "modified_at",
|
|
1057
|
+
name: "name",
|
|
1058
|
+
type: "type",
|
|
1059
|
+
config: "config",
|
|
1060
|
+
format: "format",
|
|
1061
|
+
schema: "schema",
|
|
1062
|
+
}))),
|
|
1063
|
+
resultInfo: Schema.optional(Schema.Union([
|
|
1064
|
+
Schema.Struct({
|
|
1065
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1066
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1067
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1068
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1069
|
+
}).pipe(Schema.encodeKeys({
|
|
1070
|
+
count: "count",
|
|
1071
|
+
page: "page",
|
|
1072
|
+
perPage: "per_page",
|
|
1073
|
+
totalCount: "total_count",
|
|
1074
|
+
})),
|
|
869
1075
|
Schema.Null,
|
|
870
1076
|
])),
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
type: Schema.Literal("int64"),
|
|
890
|
-
metadataKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
891
|
-
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
892
|
-
required: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
893
|
-
sqlName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
894
|
-
}).pipe(Schema.encodeKeys({
|
|
895
|
-
type: "type",
|
|
896
|
-
metadataKey: "metadata_key",
|
|
897
|
-
name: "name",
|
|
898
|
-
required: "required",
|
|
899
|
-
sqlName: "sql_name",
|
|
900
|
-
})),
|
|
901
|
-
Schema.Struct({
|
|
902
|
-
type: Schema.Literal("float32"),
|
|
903
|
-
metadataKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
904
|
-
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
905
|
-
required: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
906
|
-
sqlName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
907
|
-
}).pipe(Schema.encodeKeys({
|
|
908
|
-
type: "type",
|
|
909
|
-
metadataKey: "metadata_key",
|
|
910
|
-
name: "name",
|
|
911
|
-
required: "required",
|
|
912
|
-
sqlName: "sql_name",
|
|
913
|
-
})),
|
|
914
|
-
Schema.Struct({
|
|
915
|
-
type: Schema.Literal("float64"),
|
|
916
|
-
metadataKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
917
|
-
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
918
|
-
required: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
919
|
-
sqlName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
920
|
-
}).pipe(Schema.encodeKeys({
|
|
921
|
-
type: "type",
|
|
922
|
-
metadataKey: "metadata_key",
|
|
923
|
-
name: "name",
|
|
924
|
-
required: "required",
|
|
925
|
-
sqlName: "sql_name",
|
|
926
|
-
})),
|
|
927
|
-
Schema.Struct({
|
|
928
|
-
type: Schema.Literal("bool"),
|
|
929
|
-
metadataKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
930
|
-
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
931
|
-
required: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
932
|
-
sqlName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
933
|
-
}).pipe(Schema.encodeKeys({
|
|
934
|
-
type: "type",
|
|
935
|
-
metadataKey: "metadata_key",
|
|
936
|
-
name: "name",
|
|
937
|
-
required: "required",
|
|
938
|
-
sqlName: "sql_name",
|
|
939
|
-
})),
|
|
940
|
-
Schema.Struct({
|
|
941
|
-
type: Schema.Literal("string"),
|
|
942
|
-
metadataKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
943
|
-
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
944
|
-
required: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
945
|
-
sqlName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
946
|
-
}).pipe(Schema.encodeKeys({
|
|
947
|
-
type: "type",
|
|
948
|
-
metadataKey: "metadata_key",
|
|
949
|
-
name: "name",
|
|
950
|
-
required: "required",
|
|
951
|
-
sqlName: "sql_name",
|
|
952
|
-
})),
|
|
953
|
-
Schema.Struct({
|
|
954
|
-
type: Schema.Literal("binary"),
|
|
955
|
-
metadataKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
956
|
-
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
957
|
-
required: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
958
|
-
sqlName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
959
|
-
}).pipe(Schema.encodeKeys({
|
|
960
|
-
type: "type",
|
|
961
|
-
metadataKey: "metadata_key",
|
|
962
|
-
name: "name",
|
|
963
|
-
required: "required",
|
|
964
|
-
sqlName: "sql_name",
|
|
965
|
-
})),
|
|
966
|
-
Schema.Struct({
|
|
967
|
-
type: Schema.Literal("timestamp"),
|
|
968
|
-
metadataKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
969
|
-
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
970
|
-
required: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
971
|
-
sqlName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
972
|
-
unit: Schema.optional(Schema.Union([
|
|
973
|
-
Schema.Literals([
|
|
974
|
-
"second",
|
|
975
|
-
"millisecond",
|
|
976
|
-
"microsecond",
|
|
977
|
-
"nanosecond",
|
|
978
|
-
]),
|
|
979
|
-
Schema.Null,
|
|
980
|
-
])),
|
|
981
|
-
}).pipe(Schema.encodeKeys({
|
|
982
|
-
type: "type",
|
|
983
|
-
metadataKey: "metadata_key",
|
|
984
|
-
name: "name",
|
|
985
|
-
required: "required",
|
|
986
|
-
sqlName: "sql_name",
|
|
987
|
-
unit: "unit",
|
|
988
|
-
})),
|
|
989
|
-
Schema.Struct({
|
|
990
|
-
type: Schema.Literal("json"),
|
|
991
|
-
decimalEncoding: Schema.optional(Schema.Union([
|
|
992
|
-
Schema.Literals(["number", "string", "bytes"]),
|
|
993
|
-
Schema.Null,
|
|
994
|
-
])),
|
|
995
|
-
timestampFormat: Schema.optional(Schema.Union([
|
|
996
|
-
Schema.Literals(["rfc3339", "unix_millis"]),
|
|
997
|
-
Schema.Null,
|
|
998
|
-
])),
|
|
999
|
-
unstructured: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1000
|
-
}).pipe(Schema.encodeKeys({
|
|
1001
|
-
type: "type",
|
|
1002
|
-
decimalEncoding: "decimal_encoding",
|
|
1003
|
-
timestampFormat: "timestamp_format",
|
|
1004
|
-
unstructured: "unstructured",
|
|
1005
|
-
})),
|
|
1006
|
-
Schema.Unknown,
|
|
1007
|
-
])),
|
|
1008
|
-
Schema.Null,
|
|
1009
|
-
])),
|
|
1010
|
-
format: Schema.optional(Schema.Union([
|
|
1011
|
-
Schema.Union([
|
|
1012
|
-
Schema.Struct({
|
|
1013
|
-
type: Schema.Literal("json"),
|
|
1014
|
-
decimalEncoding: Schema.optional(Schema.Union([
|
|
1015
|
-
Schema.Literals(["number", "string", "bytes"]),
|
|
1016
|
-
Schema.Null,
|
|
1017
|
-
])),
|
|
1018
|
-
timestampFormat: Schema.optional(Schema.Union([
|
|
1019
|
-
Schema.Literals(["rfc3339", "unix_millis"]),
|
|
1020
|
-
Schema.Null,
|
|
1021
|
-
])),
|
|
1022
|
-
unstructured: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1023
|
-
}).pipe(Schema.encodeKeys({
|
|
1024
|
-
type: "type",
|
|
1025
|
-
decimalEncoding: "decimal_encoding",
|
|
1026
|
-
timestampFormat: "timestamp_format",
|
|
1027
|
-
unstructured: "unstructured",
|
|
1028
|
-
})),
|
|
1029
|
-
Schema.Struct({
|
|
1030
|
-
type: Schema.Literal("parquet"),
|
|
1031
|
-
compression: Schema.optional(Schema.Union([
|
|
1032
|
-
Schema.Literals([
|
|
1033
|
-
"uncompressed",
|
|
1034
|
-
"snappy",
|
|
1035
|
-
"gzip",
|
|
1036
|
-
"zstd",
|
|
1037
|
-
"lz4",
|
|
1038
|
-
]),
|
|
1039
|
-
Schema.Null,
|
|
1040
|
-
])),
|
|
1041
|
-
rowGroupBytes: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1042
|
-
}).pipe(Schema.encodeKeys({
|
|
1043
|
-
type: "type",
|
|
1044
|
-
compression: "compression",
|
|
1045
|
-
rowGroupBytes: "row_group_bytes",
|
|
1046
|
-
})),
|
|
1047
|
-
]),
|
|
1048
|
-
Schema.Null,
|
|
1049
|
-
])),
|
|
1050
|
-
inferred: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1051
|
-
}),
|
|
1052
|
-
Schema.Null,
|
|
1053
|
-
])),
|
|
1054
|
-
}).pipe(Schema.encodeKeys({
|
|
1055
|
-
id: "id",
|
|
1056
|
-
createdAt: "created_at",
|
|
1057
|
-
modifiedAt: "modified_at",
|
|
1058
|
-
name: "name",
|
|
1059
|
-
type: "type",
|
|
1060
|
-
config: "config",
|
|
1061
|
-
format: "format",
|
|
1062
|
-
schema: "schema",
|
|
1063
|
-
})));
|
|
1064
|
-
export const listSinks = API.make(() => ({
|
|
1065
|
-
input: ListSinksRequest,
|
|
1066
|
-
output: ListSinksResponse,
|
|
1067
|
-
errors: [],
|
|
1068
|
-
}));
|
|
1069
|
-
export const CreateSinkRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1070
|
-
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1071
|
-
name: Schema.String,
|
|
1072
|
-
type: Schema.Literals(["r2", "r2_data_catalog"]),
|
|
1073
|
-
config: Schema.optional(Schema.Union([
|
|
1077
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
1078
|
+
export const listSinks = API.makePaginated(() => ({
|
|
1079
|
+
input: ListSinksRequest,
|
|
1080
|
+
output: ListSinksResponse,
|
|
1081
|
+
errors: [],
|
|
1082
|
+
pagination: {
|
|
1083
|
+
mode: "page",
|
|
1084
|
+
inputToken: "page",
|
|
1085
|
+
outputToken: "resultInfo.page",
|
|
1086
|
+
items: "result",
|
|
1087
|
+
pageSize: "perPage",
|
|
1088
|
+
},
|
|
1089
|
+
}));
|
|
1090
|
+
export const CreateSinkRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1091
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1092
|
+
name: Schema.String,
|
|
1093
|
+
type: Schema.Literals(["r2", "r2_data_catalog"]),
|
|
1094
|
+
config: Schema.optional(Schema.Union([
|
|
1074
1095
|
Schema.Struct({
|
|
1075
1096
|
accountId: Schema.String,
|
|
1076
1097
|
bucket: Schema.String,
|
|
1077
1098
|
credentials: Schema.Struct({
|
|
1078
|
-
accessKeyId:
|
|
1079
|
-
secretAccessKey:
|
|
1099
|
+
accessKeyId: SensitiveString,
|
|
1100
|
+
secretAccessKey: SensitiveString,
|
|
1080
1101
|
}).pipe(Schema.encodeKeys({
|
|
1081
1102
|
accessKeyId: "access_key_id",
|
|
1082
1103
|
secretAccessKey: "secret_access_key",
|
|
@@ -1325,8 +1346,8 @@ export const CreateSinkResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1325
1346
|
accountId: Schema.String,
|
|
1326
1347
|
bucket: Schema.String,
|
|
1327
1348
|
credentials: Schema.Struct({
|
|
1328
|
-
accessKeyId:
|
|
1329
|
-
secretAccessKey:
|
|
1349
|
+
accessKeyId: SensitiveString,
|
|
1350
|
+
secretAccessKey: SensitiveString,
|
|
1330
1351
|
}).pipe(Schema.encodeKeys({
|
|
1331
1352
|
accessKeyId: "access_key_id",
|
|
1332
1353
|
secretAccessKey: "secret_access_key",
|
|
@@ -1376,357 +1397,31 @@ export const CreateSinkResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1376
1397
|
token: Schema.String,
|
|
1377
1398
|
accountId: Schema.String,
|
|
1378
1399
|
bucket: Schema.String,
|
|
1379
|
-
tableName: Schema.String,
|
|
1380
|
-
namespace: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1381
|
-
rollingPolicy: Schema.optional(Schema.Union([
|
|
1382
|
-
Schema.Struct({
|
|
1383
|
-
fileSizeBytes: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1384
|
-
inactivitySeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1385
|
-
intervalSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1386
|
-
}).pipe(Schema.encodeKeys({
|
|
1387
|
-
fileSizeBytes: "file_size_bytes",
|
|
1388
|
-
inactivitySeconds: "inactivity_seconds",
|
|
1389
|
-
intervalSeconds: "interval_seconds",
|
|
1390
|
-
})),
|
|
1391
|
-
Schema.Null,
|
|
1392
|
-
])),
|
|
1393
|
-
}).pipe(Schema.encodeKeys({
|
|
1394
|
-
token: "token",
|
|
1395
|
-
accountId: "account_id",
|
|
1396
|
-
bucket: "bucket",
|
|
1397
|
-
tableName: "table_name",
|
|
1398
|
-
namespace: "namespace",
|
|
1399
|
-
rollingPolicy: "rolling_policy",
|
|
1400
|
-
})),
|
|
1401
|
-
]),
|
|
1402
|
-
Schema.Null,
|
|
1403
|
-
])),
|
|
1404
|
-
format: Schema.optional(Schema.Union([
|
|
1405
|
-
Schema.Union([
|
|
1406
|
-
Schema.Struct({
|
|
1407
|
-
type: Schema.Literal("json"),
|
|
1408
|
-
decimalEncoding: Schema.optional(Schema.Union([
|
|
1409
|
-
Schema.Literals(["number", "string", "bytes"]),
|
|
1410
|
-
Schema.Null,
|
|
1411
|
-
])),
|
|
1412
|
-
timestampFormat: Schema.optional(Schema.Union([
|
|
1413
|
-
Schema.Literals(["rfc3339", "unix_millis"]),
|
|
1414
|
-
Schema.Null,
|
|
1415
|
-
])),
|
|
1416
|
-
unstructured: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1417
|
-
}).pipe(Schema.encodeKeys({
|
|
1418
|
-
type: "type",
|
|
1419
|
-
decimalEncoding: "decimal_encoding",
|
|
1420
|
-
timestampFormat: "timestamp_format",
|
|
1421
|
-
unstructured: "unstructured",
|
|
1422
|
-
})),
|
|
1423
|
-
Schema.Struct({
|
|
1424
|
-
type: Schema.Literal("parquet"),
|
|
1425
|
-
compression: Schema.optional(Schema.Union([
|
|
1426
|
-
Schema.Literals([
|
|
1427
|
-
"uncompressed",
|
|
1428
|
-
"snappy",
|
|
1429
|
-
"gzip",
|
|
1430
|
-
"zstd",
|
|
1431
|
-
"lz4",
|
|
1432
|
-
]),
|
|
1433
|
-
Schema.Null,
|
|
1434
|
-
])),
|
|
1435
|
-
rowGroupBytes: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1436
|
-
}).pipe(Schema.encodeKeys({
|
|
1437
|
-
type: "type",
|
|
1438
|
-
compression: "compression",
|
|
1439
|
-
rowGroupBytes: "row_group_bytes",
|
|
1440
|
-
})),
|
|
1441
|
-
]),
|
|
1442
|
-
Schema.Null,
|
|
1443
|
-
])),
|
|
1444
|
-
schema: Schema.optional(Schema.Union([
|
|
1445
|
-
Schema.Struct({
|
|
1446
|
-
fields: Schema.optional(Schema.Union([
|
|
1447
|
-
Schema.Array(Schema.Union([
|
|
1448
|
-
Schema.Struct({
|
|
1449
|
-
type: Schema.Literal("int32"),
|
|
1450
|
-
metadataKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1451
|
-
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1452
|
-
required: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1453
|
-
sqlName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1454
|
-
}).pipe(Schema.encodeKeys({
|
|
1455
|
-
type: "type",
|
|
1456
|
-
metadataKey: "metadata_key",
|
|
1457
|
-
name: "name",
|
|
1458
|
-
required: "required",
|
|
1459
|
-
sqlName: "sql_name",
|
|
1460
|
-
})),
|
|
1461
|
-
Schema.Struct({
|
|
1462
|
-
type: Schema.Literal("int64"),
|
|
1463
|
-
metadataKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1464
|
-
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1465
|
-
required: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1466
|
-
sqlName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1467
|
-
}).pipe(Schema.encodeKeys({
|
|
1468
|
-
type: "type",
|
|
1469
|
-
metadataKey: "metadata_key",
|
|
1470
|
-
name: "name",
|
|
1471
|
-
required: "required",
|
|
1472
|
-
sqlName: "sql_name",
|
|
1473
|
-
})),
|
|
1474
|
-
Schema.Struct({
|
|
1475
|
-
type: Schema.Literal("float32"),
|
|
1476
|
-
metadataKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1477
|
-
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1478
|
-
required: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1479
|
-
sqlName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1480
|
-
}).pipe(Schema.encodeKeys({
|
|
1481
|
-
type: "type",
|
|
1482
|
-
metadataKey: "metadata_key",
|
|
1483
|
-
name: "name",
|
|
1484
|
-
required: "required",
|
|
1485
|
-
sqlName: "sql_name",
|
|
1486
|
-
})),
|
|
1487
|
-
Schema.Struct({
|
|
1488
|
-
type: Schema.Literal("float64"),
|
|
1489
|
-
metadataKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1490
|
-
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1491
|
-
required: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1492
|
-
sqlName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1493
|
-
}).pipe(Schema.encodeKeys({
|
|
1494
|
-
type: "type",
|
|
1495
|
-
metadataKey: "metadata_key",
|
|
1496
|
-
name: "name",
|
|
1497
|
-
required: "required",
|
|
1498
|
-
sqlName: "sql_name",
|
|
1499
|
-
})),
|
|
1500
|
-
Schema.Struct({
|
|
1501
|
-
type: Schema.Literal("bool"),
|
|
1502
|
-
metadataKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1503
|
-
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1504
|
-
required: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1505
|
-
sqlName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1506
|
-
}).pipe(Schema.encodeKeys({
|
|
1507
|
-
type: "type",
|
|
1508
|
-
metadataKey: "metadata_key",
|
|
1509
|
-
name: "name",
|
|
1510
|
-
required: "required",
|
|
1511
|
-
sqlName: "sql_name",
|
|
1512
|
-
})),
|
|
1513
|
-
Schema.Struct({
|
|
1514
|
-
type: Schema.Literal("string"),
|
|
1515
|
-
metadataKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1516
|
-
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1517
|
-
required: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1518
|
-
sqlName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1519
|
-
}).pipe(Schema.encodeKeys({
|
|
1520
|
-
type: "type",
|
|
1521
|
-
metadataKey: "metadata_key",
|
|
1522
|
-
name: "name",
|
|
1523
|
-
required: "required",
|
|
1524
|
-
sqlName: "sql_name",
|
|
1525
|
-
})),
|
|
1526
|
-
Schema.Struct({
|
|
1527
|
-
type: Schema.Literal("binary"),
|
|
1528
|
-
metadataKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1529
|
-
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1530
|
-
required: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1531
|
-
sqlName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1532
|
-
}).pipe(Schema.encodeKeys({
|
|
1533
|
-
type: "type",
|
|
1534
|
-
metadataKey: "metadata_key",
|
|
1535
|
-
name: "name",
|
|
1536
|
-
required: "required",
|
|
1537
|
-
sqlName: "sql_name",
|
|
1538
|
-
})),
|
|
1539
|
-
Schema.Struct({
|
|
1540
|
-
type: Schema.Literal("timestamp"),
|
|
1541
|
-
metadataKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1542
|
-
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1543
|
-
required: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1544
|
-
sqlName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1545
|
-
unit: Schema.optional(Schema.Union([
|
|
1546
|
-
Schema.Literals([
|
|
1547
|
-
"second",
|
|
1548
|
-
"millisecond",
|
|
1549
|
-
"microsecond",
|
|
1550
|
-
"nanosecond",
|
|
1551
|
-
]),
|
|
1552
|
-
Schema.Null,
|
|
1553
|
-
])),
|
|
1554
|
-
}).pipe(Schema.encodeKeys({
|
|
1555
|
-
type: "type",
|
|
1556
|
-
metadataKey: "metadata_key",
|
|
1557
|
-
name: "name",
|
|
1558
|
-
required: "required",
|
|
1559
|
-
sqlName: "sql_name",
|
|
1560
|
-
unit: "unit",
|
|
1561
|
-
})),
|
|
1562
|
-
Schema.Struct({
|
|
1563
|
-
type: Schema.Literal("json"),
|
|
1564
|
-
decimalEncoding: Schema.optional(Schema.Union([
|
|
1565
|
-
Schema.Literals(["number", "string", "bytes"]),
|
|
1566
|
-
Schema.Null,
|
|
1567
|
-
])),
|
|
1568
|
-
timestampFormat: Schema.optional(Schema.Union([
|
|
1569
|
-
Schema.Literals(["rfc3339", "unix_millis"]),
|
|
1570
|
-
Schema.Null,
|
|
1571
|
-
])),
|
|
1572
|
-
unstructured: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1573
|
-
}).pipe(Schema.encodeKeys({
|
|
1574
|
-
type: "type",
|
|
1575
|
-
decimalEncoding: "decimal_encoding",
|
|
1576
|
-
timestampFormat: "timestamp_format",
|
|
1577
|
-
unstructured: "unstructured",
|
|
1578
|
-
})),
|
|
1579
|
-
Schema.Unknown,
|
|
1580
|
-
])),
|
|
1581
|
-
Schema.Null,
|
|
1582
|
-
])),
|
|
1583
|
-
format: Schema.optional(Schema.Union([
|
|
1584
|
-
Schema.Union([
|
|
1585
|
-
Schema.Struct({
|
|
1586
|
-
type: Schema.Literal("json"),
|
|
1587
|
-
decimalEncoding: Schema.optional(Schema.Union([
|
|
1588
|
-
Schema.Literals(["number", "string", "bytes"]),
|
|
1589
|
-
Schema.Null,
|
|
1590
|
-
])),
|
|
1591
|
-
timestampFormat: Schema.optional(Schema.Union([
|
|
1592
|
-
Schema.Literals(["rfc3339", "unix_millis"]),
|
|
1593
|
-
Schema.Null,
|
|
1594
|
-
])),
|
|
1595
|
-
unstructured: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1596
|
-
}).pipe(Schema.encodeKeys({
|
|
1597
|
-
type: "type",
|
|
1598
|
-
decimalEncoding: "decimal_encoding",
|
|
1599
|
-
timestampFormat: "timestamp_format",
|
|
1600
|
-
unstructured: "unstructured",
|
|
1601
|
-
})),
|
|
1602
|
-
Schema.Struct({
|
|
1603
|
-
type: Schema.Literal("parquet"),
|
|
1604
|
-
compression: Schema.optional(Schema.Union([
|
|
1605
|
-
Schema.Literals([
|
|
1606
|
-
"uncompressed",
|
|
1607
|
-
"snappy",
|
|
1608
|
-
"gzip",
|
|
1609
|
-
"zstd",
|
|
1610
|
-
"lz4",
|
|
1611
|
-
]),
|
|
1612
|
-
Schema.Null,
|
|
1613
|
-
])),
|
|
1614
|
-
rowGroupBytes: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1615
|
-
}).pipe(Schema.encodeKeys({
|
|
1616
|
-
type: "type",
|
|
1617
|
-
compression: "compression",
|
|
1618
|
-
rowGroupBytes: "row_group_bytes",
|
|
1619
|
-
})),
|
|
1620
|
-
]),
|
|
1621
|
-
Schema.Null,
|
|
1622
|
-
])),
|
|
1623
|
-
inferred: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1624
|
-
}),
|
|
1625
|
-
Schema.Null,
|
|
1626
|
-
])),
|
|
1627
|
-
}).pipe(Schema.encodeKeys({
|
|
1628
|
-
id: "id",
|
|
1629
|
-
createdAt: "created_at",
|
|
1630
|
-
modifiedAt: "modified_at",
|
|
1631
|
-
name: "name",
|
|
1632
|
-
type: "type",
|
|
1633
|
-
config: "config",
|
|
1634
|
-
format: "format",
|
|
1635
|
-
schema: "schema",
|
|
1636
|
-
}));
|
|
1637
|
-
export const createSink = API.make(() => ({
|
|
1638
|
-
input: CreateSinkRequest,
|
|
1639
|
-
output: CreateSinkResponse,
|
|
1640
|
-
errors: [],
|
|
1641
|
-
}));
|
|
1642
|
-
export const DeleteSinkRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1643
|
-
sinkId: Schema.String.pipe(T.HttpPath("sinkId")),
|
|
1644
|
-
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1645
|
-
force: Schema.optional(Schema.String).pipe(T.HttpQuery("force")),
|
|
1646
|
-
}).pipe(T.Http({
|
|
1647
|
-
method: "DELETE",
|
|
1648
|
-
path: "/accounts/{account_id}/pipelines/v1/sinks/{sinkId}",
|
|
1649
|
-
}));
|
|
1650
|
-
export const DeleteSinkResponse =
|
|
1651
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
|
|
1652
|
-
export const deleteSink = API.make(() => ({
|
|
1653
|
-
input: DeleteSinkRequest,
|
|
1654
|
-
output: DeleteSinkResponse,
|
|
1655
|
-
errors: [],
|
|
1656
|
-
}));
|
|
1657
|
-
export const ValidateSqlPipelineRequest =
|
|
1658
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1659
|
-
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1660
|
-
sql: Schema.String,
|
|
1661
|
-
}).pipe(T.Http({
|
|
1662
|
-
method: "POST",
|
|
1663
|
-
path: "/accounts/{account_id}/pipelines/v1/validate_sql",
|
|
1664
|
-
}));
|
|
1665
|
-
export const ValidateSqlPipelineResponse =
|
|
1666
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1667
|
-
tables: Schema.Struct({}),
|
|
1668
|
-
graph: Schema.optional(Schema.Union([
|
|
1669
|
-
Schema.Struct({
|
|
1670
|
-
edges: Schema.Array(Schema.Struct({
|
|
1671
|
-
destId: Schema.Number,
|
|
1672
|
-
edgeType: Schema.String,
|
|
1673
|
-
keyType: Schema.String,
|
|
1674
|
-
srcId: Schema.Number,
|
|
1675
|
-
valueType: Schema.String,
|
|
1676
|
-
}).pipe(Schema.encodeKeys({
|
|
1677
|
-
destId: "dest_id",
|
|
1678
|
-
edgeType: "edge_type",
|
|
1679
|
-
keyType: "key_type",
|
|
1680
|
-
srcId: "src_id",
|
|
1681
|
-
valueType: "value_type",
|
|
1682
|
-
}))),
|
|
1683
|
-
nodes: Schema.Array(Schema.Struct({
|
|
1684
|
-
description: Schema.String,
|
|
1685
|
-
nodeId: Schema.Number,
|
|
1686
|
-
operator: Schema.String,
|
|
1687
|
-
parallelism: Schema.Number,
|
|
1400
|
+
tableName: Schema.String,
|
|
1401
|
+
namespace: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1402
|
+
rollingPolicy: Schema.optional(Schema.Union([
|
|
1403
|
+
Schema.Struct({
|
|
1404
|
+
fileSizeBytes: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1405
|
+
inactivitySeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1406
|
+
intervalSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1407
|
+
}).pipe(Schema.encodeKeys({
|
|
1408
|
+
fileSizeBytes: "file_size_bytes",
|
|
1409
|
+
inactivitySeconds: "inactivity_seconds",
|
|
1410
|
+
intervalSeconds: "interval_seconds",
|
|
1411
|
+
})),
|
|
1412
|
+
Schema.Null,
|
|
1413
|
+
])),
|
|
1688
1414
|
}).pipe(Schema.encodeKeys({
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1415
|
+
token: "token",
|
|
1416
|
+
accountId: "account_id",
|
|
1417
|
+
bucket: "bucket",
|
|
1418
|
+
tableName: "table_name",
|
|
1419
|
+
namespace: "namespace",
|
|
1420
|
+
rollingPolicy: "rolling_policy",
|
|
1421
|
+
})),
|
|
1422
|
+
]),
|
|
1695
1423
|
Schema.Null,
|
|
1696
1424
|
])),
|
|
1697
|
-
});
|
|
1698
|
-
export const validateSqlPipeline = API.make(() => ({
|
|
1699
|
-
input: ValidateSqlPipelineRequest,
|
|
1700
|
-
output: ValidateSqlPipelineResponse,
|
|
1701
|
-
errors: [TableNotFound],
|
|
1702
|
-
}));
|
|
1703
|
-
export const GetStreamRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1704
|
-
streamId: Schema.String.pipe(T.HttpPath("streamId")),
|
|
1705
|
-
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1706
|
-
}).pipe(T.Http({
|
|
1707
|
-
method: "GET",
|
|
1708
|
-
path: "/accounts/{account_id}/pipelines/v1/streams/{streamId}",
|
|
1709
|
-
}));
|
|
1710
|
-
export const GetStreamResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1711
|
-
id: Schema.String,
|
|
1712
|
-
createdAt: Schema.String,
|
|
1713
|
-
http: Schema.Struct({
|
|
1714
|
-
authentication: Schema.Boolean,
|
|
1715
|
-
enabled: Schema.Boolean,
|
|
1716
|
-
cors: Schema.optional(Schema.Union([
|
|
1717
|
-
Schema.Struct({
|
|
1718
|
-
origins: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1719
|
-
}),
|
|
1720
|
-
Schema.Null,
|
|
1721
|
-
])),
|
|
1722
|
-
}),
|
|
1723
|
-
modifiedAt: Schema.String,
|
|
1724
|
-
name: Schema.String,
|
|
1725
|
-
version: Schema.Number,
|
|
1726
|
-
workerBinding: Schema.Struct({
|
|
1727
|
-
enabled: Schema.Boolean,
|
|
1728
|
-
}),
|
|
1729
|
-
endpoint: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1730
1425
|
format: Schema.optional(Schema.Union([
|
|
1731
1426
|
Schema.Union([
|
|
1732
1427
|
Schema.Struct({
|
|
@@ -1950,31 +1645,92 @@ export const GetStreamResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1950
1645
|
}),
|
|
1951
1646
|
Schema.Null,
|
|
1952
1647
|
])),
|
|
1953
|
-
})
|
|
1648
|
+
})
|
|
1649
|
+
.pipe(Schema.encodeKeys({
|
|
1954
1650
|
id: "id",
|
|
1955
1651
|
createdAt: "created_at",
|
|
1956
|
-
http: "http",
|
|
1957
1652
|
modifiedAt: "modified_at",
|
|
1958
1653
|
name: "name",
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
endpoint: "endpoint",
|
|
1654
|
+
type: "type",
|
|
1655
|
+
config: "config",
|
|
1962
1656
|
format: "format",
|
|
1963
1657
|
schema: "schema",
|
|
1658
|
+
}))
|
|
1659
|
+
.pipe(T.ResponsePath("result"));
|
|
1660
|
+
export const createSink = API.make(() => ({
|
|
1661
|
+
input: CreateSinkRequest,
|
|
1662
|
+
output: CreateSinkResponse,
|
|
1663
|
+
errors: [],
|
|
1964
1664
|
}));
|
|
1965
|
-
export const
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1665
|
+
export const DeleteSinkRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1666
|
+
sinkId: Schema.String.pipe(T.HttpPath("sinkId")),
|
|
1667
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1668
|
+
force: Schema.optional(Schema.String).pipe(T.HttpQuery("force")),
|
|
1669
|
+
}).pipe(T.Http({
|
|
1670
|
+
method: "DELETE",
|
|
1671
|
+
path: "/accounts/{account_id}/pipelines/v1/sinks/{sinkId}",
|
|
1969
1672
|
}));
|
|
1970
|
-
export const
|
|
1673
|
+
export const DeleteSinkResponse =
|
|
1674
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
|
|
1675
|
+
export const deleteSink = API.make(() => ({
|
|
1676
|
+
input: DeleteSinkRequest,
|
|
1677
|
+
output: DeleteSinkResponse,
|
|
1678
|
+
errors: [],
|
|
1679
|
+
}));
|
|
1680
|
+
export const ValidateSqlPipelineRequest =
|
|
1681
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1682
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1683
|
+
sql: Schema.String,
|
|
1684
|
+
}).pipe(T.Http({
|
|
1685
|
+
method: "POST",
|
|
1686
|
+
path: "/accounts/{account_id}/pipelines/v1/validate_sql",
|
|
1687
|
+
}));
|
|
1688
|
+
export const ValidateSqlPipelineResponse =
|
|
1689
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1690
|
+
tables: Schema.Struct({}),
|
|
1691
|
+
graph: Schema.optional(Schema.Union([
|
|
1692
|
+
Schema.Struct({
|
|
1693
|
+
edges: Schema.Array(Schema.Struct({
|
|
1694
|
+
destId: Schema.Number,
|
|
1695
|
+
edgeType: Schema.String,
|
|
1696
|
+
keyType: Schema.String,
|
|
1697
|
+
srcId: Schema.Number,
|
|
1698
|
+
valueType: Schema.String,
|
|
1699
|
+
}).pipe(Schema.encodeKeys({
|
|
1700
|
+
destId: "dest_id",
|
|
1701
|
+
edgeType: "edge_type",
|
|
1702
|
+
keyType: "key_type",
|
|
1703
|
+
srcId: "src_id",
|
|
1704
|
+
valueType: "value_type",
|
|
1705
|
+
}))),
|
|
1706
|
+
nodes: Schema.Array(Schema.Struct({
|
|
1707
|
+
description: Schema.String,
|
|
1708
|
+
nodeId: Schema.Number,
|
|
1709
|
+
operator: Schema.String,
|
|
1710
|
+
parallelism: Schema.Number,
|
|
1711
|
+
}).pipe(Schema.encodeKeys({
|
|
1712
|
+
description: "description",
|
|
1713
|
+
nodeId: "node_id",
|
|
1714
|
+
operator: "operator",
|
|
1715
|
+
parallelism: "parallelism",
|
|
1716
|
+
}))),
|
|
1717
|
+
}),
|
|
1718
|
+
Schema.Null,
|
|
1719
|
+
])),
|
|
1720
|
+
}).pipe(T.ResponsePath("result"));
|
|
1721
|
+
export const validateSqlPipeline = API.make(() => ({
|
|
1722
|
+
input: ValidateSqlPipelineRequest,
|
|
1723
|
+
output: ValidateSqlPipelineResponse,
|
|
1724
|
+
errors: [TableNotFound],
|
|
1725
|
+
}));
|
|
1726
|
+
export const GetStreamRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1727
|
+
streamId: Schema.String.pipe(T.HttpPath("streamId")),
|
|
1971
1728
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1972
|
-
pipelineId: Schema.optional(Schema.String).pipe(T.HttpQuery("pipeline_id")),
|
|
1973
1729
|
}).pipe(T.Http({
|
|
1974
1730
|
method: "GET",
|
|
1975
|
-
path: "/accounts/{account_id}/pipelines/v1/streams",
|
|
1731
|
+
path: "/accounts/{account_id}/pipelines/v1/streams/{streamId}",
|
|
1976
1732
|
}));
|
|
1977
|
-
export const
|
|
1733
|
+
export const GetStreamResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1978
1734
|
id: Schema.String,
|
|
1979
1735
|
createdAt: Schema.String,
|
|
1980
1736
|
http: Schema.Struct({
|
|
@@ -2217,7 +1973,8 @@ export const ListStreamsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Sche
|
|
|
2217
1973
|
}),
|
|
2218
1974
|
Schema.Null,
|
|
2219
1975
|
])),
|
|
2220
|
-
})
|
|
1976
|
+
})
|
|
1977
|
+
.pipe(Schema.encodeKeys({
|
|
2221
1978
|
id: "id",
|
|
2222
1979
|
createdAt: "created_at",
|
|
2223
1980
|
http: "http",
|
|
@@ -2228,11 +1985,302 @@ export const ListStreamsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Sche
|
|
|
2228
1985
|
endpoint: "endpoint",
|
|
2229
1986
|
format: "format",
|
|
2230
1987
|
schema: "schema",
|
|
2231
|
-
}))
|
|
2232
|
-
|
|
1988
|
+
}))
|
|
1989
|
+
.pipe(T.ResponsePath("result"));
|
|
1990
|
+
export const getStream = API.make(() => ({
|
|
1991
|
+
input: GetStreamRequest,
|
|
1992
|
+
output: GetStreamResponse,
|
|
1993
|
+
errors: [StreamNotFound, InvalidStreamId],
|
|
1994
|
+
}));
|
|
1995
|
+
export const ListStreamsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1996
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1997
|
+
pipelineId: Schema.optional(Schema.String).pipe(T.HttpQuery("pipeline_id")),
|
|
1998
|
+
}).pipe(T.Http({
|
|
1999
|
+
method: "GET",
|
|
2000
|
+
path: "/accounts/{account_id}/pipelines/v1/streams",
|
|
2001
|
+
}));
|
|
2002
|
+
export const ListStreamsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2003
|
+
result: Schema.Array(Schema.Struct({
|
|
2004
|
+
id: Schema.String,
|
|
2005
|
+
createdAt: Schema.String,
|
|
2006
|
+
http: Schema.Struct({
|
|
2007
|
+
authentication: Schema.Boolean,
|
|
2008
|
+
enabled: Schema.Boolean,
|
|
2009
|
+
cors: Schema.optional(Schema.Union([
|
|
2010
|
+
Schema.Struct({
|
|
2011
|
+
origins: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
2012
|
+
}),
|
|
2013
|
+
Schema.Null,
|
|
2014
|
+
])),
|
|
2015
|
+
}),
|
|
2016
|
+
modifiedAt: Schema.String,
|
|
2017
|
+
name: Schema.String,
|
|
2018
|
+
version: Schema.Number,
|
|
2019
|
+
workerBinding: Schema.Struct({
|
|
2020
|
+
enabled: Schema.Boolean,
|
|
2021
|
+
}),
|
|
2022
|
+
endpoint: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2023
|
+
format: Schema.optional(Schema.Union([
|
|
2024
|
+
Schema.Union([
|
|
2025
|
+
Schema.Struct({
|
|
2026
|
+
type: Schema.Literal("json"),
|
|
2027
|
+
decimalEncoding: Schema.optional(Schema.Union([
|
|
2028
|
+
Schema.Literals(["number", "string", "bytes"]),
|
|
2029
|
+
Schema.Null,
|
|
2030
|
+
])),
|
|
2031
|
+
timestampFormat: Schema.optional(Schema.Union([
|
|
2032
|
+
Schema.Literals(["rfc3339", "unix_millis"]),
|
|
2033
|
+
Schema.Null,
|
|
2034
|
+
])),
|
|
2035
|
+
unstructured: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2036
|
+
}).pipe(Schema.encodeKeys({
|
|
2037
|
+
type: "type",
|
|
2038
|
+
decimalEncoding: "decimal_encoding",
|
|
2039
|
+
timestampFormat: "timestamp_format",
|
|
2040
|
+
unstructured: "unstructured",
|
|
2041
|
+
})),
|
|
2042
|
+
Schema.Struct({
|
|
2043
|
+
type: Schema.Literal("parquet"),
|
|
2044
|
+
compression: Schema.optional(Schema.Union([
|
|
2045
|
+
Schema.Literals([
|
|
2046
|
+
"uncompressed",
|
|
2047
|
+
"snappy",
|
|
2048
|
+
"gzip",
|
|
2049
|
+
"zstd",
|
|
2050
|
+
"lz4",
|
|
2051
|
+
]),
|
|
2052
|
+
Schema.Null,
|
|
2053
|
+
])),
|
|
2054
|
+
rowGroupBytes: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2055
|
+
}).pipe(Schema.encodeKeys({
|
|
2056
|
+
type: "type",
|
|
2057
|
+
compression: "compression",
|
|
2058
|
+
rowGroupBytes: "row_group_bytes",
|
|
2059
|
+
})),
|
|
2060
|
+
]),
|
|
2061
|
+
Schema.Null,
|
|
2062
|
+
])),
|
|
2063
|
+
schema: Schema.optional(Schema.Union([
|
|
2064
|
+
Schema.Struct({
|
|
2065
|
+
fields: Schema.optional(Schema.Union([
|
|
2066
|
+
Schema.Array(Schema.Union([
|
|
2067
|
+
Schema.Struct({
|
|
2068
|
+
type: Schema.Literal("int32"),
|
|
2069
|
+
metadataKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2070
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2071
|
+
required: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2072
|
+
sqlName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2073
|
+
}).pipe(Schema.encodeKeys({
|
|
2074
|
+
type: "type",
|
|
2075
|
+
metadataKey: "metadata_key",
|
|
2076
|
+
name: "name",
|
|
2077
|
+
required: "required",
|
|
2078
|
+
sqlName: "sql_name",
|
|
2079
|
+
})),
|
|
2080
|
+
Schema.Struct({
|
|
2081
|
+
type: Schema.Literal("int64"),
|
|
2082
|
+
metadataKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2083
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2084
|
+
required: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2085
|
+
sqlName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2086
|
+
}).pipe(Schema.encodeKeys({
|
|
2087
|
+
type: "type",
|
|
2088
|
+
metadataKey: "metadata_key",
|
|
2089
|
+
name: "name",
|
|
2090
|
+
required: "required",
|
|
2091
|
+
sqlName: "sql_name",
|
|
2092
|
+
})),
|
|
2093
|
+
Schema.Struct({
|
|
2094
|
+
type: Schema.Literal("float32"),
|
|
2095
|
+
metadataKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2096
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2097
|
+
required: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2098
|
+
sqlName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2099
|
+
}).pipe(Schema.encodeKeys({
|
|
2100
|
+
type: "type",
|
|
2101
|
+
metadataKey: "metadata_key",
|
|
2102
|
+
name: "name",
|
|
2103
|
+
required: "required",
|
|
2104
|
+
sqlName: "sql_name",
|
|
2105
|
+
})),
|
|
2106
|
+
Schema.Struct({
|
|
2107
|
+
type: Schema.Literal("float64"),
|
|
2108
|
+
metadataKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2109
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2110
|
+
required: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2111
|
+
sqlName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2112
|
+
}).pipe(Schema.encodeKeys({
|
|
2113
|
+
type: "type",
|
|
2114
|
+
metadataKey: "metadata_key",
|
|
2115
|
+
name: "name",
|
|
2116
|
+
required: "required",
|
|
2117
|
+
sqlName: "sql_name",
|
|
2118
|
+
})),
|
|
2119
|
+
Schema.Struct({
|
|
2120
|
+
type: Schema.Literal("bool"),
|
|
2121
|
+
metadataKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2122
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2123
|
+
required: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2124
|
+
sqlName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2125
|
+
}).pipe(Schema.encodeKeys({
|
|
2126
|
+
type: "type",
|
|
2127
|
+
metadataKey: "metadata_key",
|
|
2128
|
+
name: "name",
|
|
2129
|
+
required: "required",
|
|
2130
|
+
sqlName: "sql_name",
|
|
2131
|
+
})),
|
|
2132
|
+
Schema.Struct({
|
|
2133
|
+
type: Schema.Literal("string"),
|
|
2134
|
+
metadataKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2135
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2136
|
+
required: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2137
|
+
sqlName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2138
|
+
}).pipe(Schema.encodeKeys({
|
|
2139
|
+
type: "type",
|
|
2140
|
+
metadataKey: "metadata_key",
|
|
2141
|
+
name: "name",
|
|
2142
|
+
required: "required",
|
|
2143
|
+
sqlName: "sql_name",
|
|
2144
|
+
})),
|
|
2145
|
+
Schema.Struct({
|
|
2146
|
+
type: Schema.Literal("binary"),
|
|
2147
|
+
metadataKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2148
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2149
|
+
required: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2150
|
+
sqlName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2151
|
+
}).pipe(Schema.encodeKeys({
|
|
2152
|
+
type: "type",
|
|
2153
|
+
metadataKey: "metadata_key",
|
|
2154
|
+
name: "name",
|
|
2155
|
+
required: "required",
|
|
2156
|
+
sqlName: "sql_name",
|
|
2157
|
+
})),
|
|
2158
|
+
Schema.Struct({
|
|
2159
|
+
type: Schema.Literal("timestamp"),
|
|
2160
|
+
metadataKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2161
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2162
|
+
required: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2163
|
+
sqlName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2164
|
+
unit: Schema.optional(Schema.Union([
|
|
2165
|
+
Schema.Literals([
|
|
2166
|
+
"second",
|
|
2167
|
+
"millisecond",
|
|
2168
|
+
"microsecond",
|
|
2169
|
+
"nanosecond",
|
|
2170
|
+
]),
|
|
2171
|
+
Schema.Null,
|
|
2172
|
+
])),
|
|
2173
|
+
}).pipe(Schema.encodeKeys({
|
|
2174
|
+
type: "type",
|
|
2175
|
+
metadataKey: "metadata_key",
|
|
2176
|
+
name: "name",
|
|
2177
|
+
required: "required",
|
|
2178
|
+
sqlName: "sql_name",
|
|
2179
|
+
unit: "unit",
|
|
2180
|
+
})),
|
|
2181
|
+
Schema.Struct({
|
|
2182
|
+
type: Schema.Literal("json"),
|
|
2183
|
+
decimalEncoding: Schema.optional(Schema.Union([
|
|
2184
|
+
Schema.Literals(["number", "string", "bytes"]),
|
|
2185
|
+
Schema.Null,
|
|
2186
|
+
])),
|
|
2187
|
+
timestampFormat: Schema.optional(Schema.Union([
|
|
2188
|
+
Schema.Literals(["rfc3339", "unix_millis"]),
|
|
2189
|
+
Schema.Null,
|
|
2190
|
+
])),
|
|
2191
|
+
unstructured: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2192
|
+
}).pipe(Schema.encodeKeys({
|
|
2193
|
+
type: "type",
|
|
2194
|
+
decimalEncoding: "decimal_encoding",
|
|
2195
|
+
timestampFormat: "timestamp_format",
|
|
2196
|
+
unstructured: "unstructured",
|
|
2197
|
+
})),
|
|
2198
|
+
Schema.Unknown,
|
|
2199
|
+
])),
|
|
2200
|
+
Schema.Null,
|
|
2201
|
+
])),
|
|
2202
|
+
format: Schema.optional(Schema.Union([
|
|
2203
|
+
Schema.Union([
|
|
2204
|
+
Schema.Struct({
|
|
2205
|
+
type: Schema.Literal("json"),
|
|
2206
|
+
decimalEncoding: Schema.optional(Schema.Union([
|
|
2207
|
+
Schema.Literals(["number", "string", "bytes"]),
|
|
2208
|
+
Schema.Null,
|
|
2209
|
+
])),
|
|
2210
|
+
timestampFormat: Schema.optional(Schema.Union([
|
|
2211
|
+
Schema.Literals(["rfc3339", "unix_millis"]),
|
|
2212
|
+
Schema.Null,
|
|
2213
|
+
])),
|
|
2214
|
+
unstructured: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2215
|
+
}).pipe(Schema.encodeKeys({
|
|
2216
|
+
type: "type",
|
|
2217
|
+
decimalEncoding: "decimal_encoding",
|
|
2218
|
+
timestampFormat: "timestamp_format",
|
|
2219
|
+
unstructured: "unstructured",
|
|
2220
|
+
})),
|
|
2221
|
+
Schema.Struct({
|
|
2222
|
+
type: Schema.Literal("parquet"),
|
|
2223
|
+
compression: Schema.optional(Schema.Union([
|
|
2224
|
+
Schema.Literals([
|
|
2225
|
+
"uncompressed",
|
|
2226
|
+
"snappy",
|
|
2227
|
+
"gzip",
|
|
2228
|
+
"zstd",
|
|
2229
|
+
"lz4",
|
|
2230
|
+
]),
|
|
2231
|
+
Schema.Null,
|
|
2232
|
+
])),
|
|
2233
|
+
rowGroupBytes: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2234
|
+
}).pipe(Schema.encodeKeys({
|
|
2235
|
+
type: "type",
|
|
2236
|
+
compression: "compression",
|
|
2237
|
+
rowGroupBytes: "row_group_bytes",
|
|
2238
|
+
})),
|
|
2239
|
+
]),
|
|
2240
|
+
Schema.Null,
|
|
2241
|
+
])),
|
|
2242
|
+
inferred: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2243
|
+
}),
|
|
2244
|
+
Schema.Null,
|
|
2245
|
+
])),
|
|
2246
|
+
}).pipe(Schema.encodeKeys({
|
|
2247
|
+
id: "id",
|
|
2248
|
+
createdAt: "created_at",
|
|
2249
|
+
http: "http",
|
|
2250
|
+
modifiedAt: "modified_at",
|
|
2251
|
+
name: "name",
|
|
2252
|
+
version: "version",
|
|
2253
|
+
workerBinding: "worker_binding",
|
|
2254
|
+
endpoint: "endpoint",
|
|
2255
|
+
format: "format",
|
|
2256
|
+
schema: "schema",
|
|
2257
|
+
}))),
|
|
2258
|
+
resultInfo: Schema.optional(Schema.Union([
|
|
2259
|
+
Schema.Struct({
|
|
2260
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2261
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2262
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2263
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2264
|
+
}).pipe(Schema.encodeKeys({
|
|
2265
|
+
count: "count",
|
|
2266
|
+
page: "page",
|
|
2267
|
+
perPage: "per_page",
|
|
2268
|
+
totalCount: "total_count",
|
|
2269
|
+
})),
|
|
2270
|
+
Schema.Null,
|
|
2271
|
+
])),
|
|
2272
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
2273
|
+
export const listStreams = API.makePaginated(() => ({
|
|
2233
2274
|
input: ListStreamsRequest,
|
|
2234
2275
|
output: ListStreamsResponse,
|
|
2235
2276
|
errors: [],
|
|
2277
|
+
pagination: {
|
|
2278
|
+
mode: "page",
|
|
2279
|
+
inputToken: "page",
|
|
2280
|
+
outputToken: "resultInfo.page",
|
|
2281
|
+
items: "result",
|
|
2282
|
+
pageSize: "perPage",
|
|
2283
|
+
},
|
|
2236
2284
|
}));
|
|
2237
2285
|
export const CreateStreamRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2238
2286
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -2678,7 +2726,8 @@ export const CreateStreamResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2678
2726
|
}),
|
|
2679
2727
|
Schema.Null,
|
|
2680
2728
|
])),
|
|
2681
|
-
})
|
|
2729
|
+
})
|
|
2730
|
+
.pipe(Schema.encodeKeys({
|
|
2682
2731
|
id: "id",
|
|
2683
2732
|
createdAt: "created_at",
|
|
2684
2733
|
http: "http",
|
|
@@ -2689,7 +2738,8 @@ export const CreateStreamResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2689
2738
|
endpoint: "endpoint",
|
|
2690
2739
|
format: "format",
|
|
2691
2740
|
schema: "schema",
|
|
2692
|
-
}))
|
|
2741
|
+
}))
|
|
2742
|
+
.pipe(T.ResponsePath("result"));
|
|
2693
2743
|
export const createStream = API.make(() => ({
|
|
2694
2744
|
input: CreateStreamRequest,
|
|
2695
2745
|
output: CreateStreamResponse,
|
|
@@ -2772,7 +2822,8 @@ export const PatchStreamResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2772
2822
|
]),
|
|
2773
2823
|
Schema.Null,
|
|
2774
2824
|
])),
|
|
2775
|
-
})
|
|
2825
|
+
})
|
|
2826
|
+
.pipe(Schema.encodeKeys({
|
|
2776
2827
|
id: "id",
|
|
2777
2828
|
createdAt: "created_at",
|
|
2778
2829
|
http: "http",
|
|
@@ -2782,7 +2833,8 @@ export const PatchStreamResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2782
2833
|
workerBinding: "worker_binding",
|
|
2783
2834
|
endpoint: "endpoint",
|
|
2784
2835
|
format: "format",
|
|
2785
|
-
}))
|
|
2836
|
+
}))
|
|
2837
|
+
.pipe(T.ResponsePath("result"));
|
|
2786
2838
|
export const patchStream = API.make(() => ({
|
|
2787
2839
|
input: PatchStreamRequest,
|
|
2788
2840
|
output: PatchStreamResponse,
|
|
@@ -2824,7 +2876,8 @@ export const GetV1PipelineResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2824
2876
|
type: Schema.Literals(["stream", "sink"]),
|
|
2825
2877
|
version: Schema.Number,
|
|
2826
2878
|
})),
|
|
2827
|
-
})
|
|
2879
|
+
})
|
|
2880
|
+
.pipe(Schema.encodeKeys({
|
|
2828
2881
|
id: "id",
|
|
2829
2882
|
createdAt: "created_at",
|
|
2830
2883
|
modifiedAt: "modified_at",
|
|
@@ -2832,7 +2885,8 @@ export const GetV1PipelineResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2832
2885
|
sql: "sql",
|
|
2833
2886
|
status: "status",
|
|
2834
2887
|
tables: "tables",
|
|
2835
|
-
}))
|
|
2888
|
+
}))
|
|
2889
|
+
.pipe(T.ResponsePath("result"));
|
|
2836
2890
|
export const getV1Pipeline = API.make(() => ({
|
|
2837
2891
|
input: GetV1PipelineRequest,
|
|
2838
2892
|
output: GetV1PipelineResponse,
|
|
@@ -2844,25 +2898,48 @@ export const ListV1PipelineRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2844
2898
|
method: "GET",
|
|
2845
2899
|
path: "/accounts/{account_id}/pipelines/v1/pipelines",
|
|
2846
2900
|
}));
|
|
2847
|
-
export const ListV1PipelineResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2901
|
+
export const ListV1PipelineResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2902
|
+
result: Schema.Array(Schema.Struct({
|
|
2903
|
+
id: Schema.String,
|
|
2904
|
+
createdAt: Schema.String,
|
|
2905
|
+
modifiedAt: Schema.String,
|
|
2906
|
+
name: Schema.String,
|
|
2907
|
+
sql: Schema.String,
|
|
2908
|
+
status: Schema.String,
|
|
2909
|
+
}).pipe(Schema.encodeKeys({
|
|
2910
|
+
id: "id",
|
|
2911
|
+
createdAt: "created_at",
|
|
2912
|
+
modifiedAt: "modified_at",
|
|
2913
|
+
name: "name",
|
|
2914
|
+
sql: "sql",
|
|
2915
|
+
status: "status",
|
|
2916
|
+
}))),
|
|
2917
|
+
resultInfo: Schema.optional(Schema.Union([
|
|
2918
|
+
Schema.Struct({
|
|
2919
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2920
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2921
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2922
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2923
|
+
}).pipe(Schema.encodeKeys({
|
|
2924
|
+
count: "count",
|
|
2925
|
+
page: "page",
|
|
2926
|
+
perPage: "per_page",
|
|
2927
|
+
totalCount: "total_count",
|
|
2928
|
+
})),
|
|
2929
|
+
Schema.Null,
|
|
2930
|
+
])),
|
|
2931
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
2932
|
+
export const listV1Pipeline = API.makePaginated(() => ({
|
|
2863
2933
|
input: ListV1PipelineRequest,
|
|
2864
2934
|
output: ListV1PipelineResponse,
|
|
2865
2935
|
errors: [],
|
|
2936
|
+
pagination: {
|
|
2937
|
+
mode: "page",
|
|
2938
|
+
inputToken: "page",
|
|
2939
|
+
outputToken: "resultInfo.page",
|
|
2940
|
+
items: "result",
|
|
2941
|
+
pageSize: "perPage",
|
|
2942
|
+
},
|
|
2866
2943
|
}));
|
|
2867
2944
|
export const CreateV1PipelineRequest =
|
|
2868
2945
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -2881,14 +2958,16 @@ export const CreateV1PipelineResponse =
|
|
|
2881
2958
|
name: Schema.String,
|
|
2882
2959
|
sql: Schema.String,
|
|
2883
2960
|
status: Schema.String,
|
|
2884
|
-
})
|
|
2961
|
+
})
|
|
2962
|
+
.pipe(Schema.encodeKeys({
|
|
2885
2963
|
id: "id",
|
|
2886
2964
|
createdAt: "created_at",
|
|
2887
2965
|
modifiedAt: "modified_at",
|
|
2888
2966
|
name: "name",
|
|
2889
2967
|
sql: "sql",
|
|
2890
2968
|
status: "status",
|
|
2891
|
-
}))
|
|
2969
|
+
}))
|
|
2970
|
+
.pipe(T.ResponsePath("result"));
|
|
2892
2971
|
export const createV1Pipeline = API.make(() => ({
|
|
2893
2972
|
input: CreateV1PipelineRequest,
|
|
2894
2973
|
output: CreateV1PipelineResponse,
|