@distilled.cloud/cloudflare 0.29.0 → 0.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/services/abuse-reports.d.ts.map +1 -1
- package/lib/services/abuse-reports.js +26 -26
- package/lib/services/abuse-reports.js.map +1 -1
- package/lib/services/accounts.d.ts.map +1 -1
- package/lib/services/accounts.js +114 -123
- package/lib/services/accounts.js.map +1 -1
- package/lib/services/acm.d.ts.map +1 -1
- package/lib/services/acm.js +23 -23
- package/lib/services/acm.js.map +1 -1
- package/lib/services/addressing.d.ts.map +1 -1
- package/lib/services/addressing.js +132 -132
- package/lib/services/addressing.js.map +1 -1
- package/lib/services/ai-gateway.d.ts.map +1 -1
- package/lib/services/ai-gateway.js +213 -207
- package/lib/services/ai-gateway.js.map +1 -1
- package/lib/services/ai-security.d.ts.map +1 -1
- package/lib/services/ai-security.js +13 -13
- package/lib/services/ai-security.js.map +1 -1
- package/lib/services/ai.d.ts.map +1 -1
- package/lib/services/ai.js +62 -62
- package/lib/services/ai.js.map +1 -1
- package/lib/services/aisearch.d.ts.map +1 -1
- package/lib/services/aisearch.js +187 -193
- package/lib/services/aisearch.js.map +1 -1
- package/lib/services/alerting.d.ts.map +1 -1
- package/lib/services/alerting.js +78 -78
- package/lib/services/alerting.js.map +1 -1
- package/lib/services/api-gateway.d.ts.map +1 -1
- package/lib/services/api-gateway.js +168 -177
- package/lib/services/api-gateway.js.map +1 -1
- package/lib/services/argo.js +12 -12
- package/lib/services/argo.js.map +1 -1
- package/lib/services/audit-logs.d.ts.map +1 -1
- package/lib/services/audit-logs.js +9 -9
- package/lib/services/audit-logs.js.map +1 -1
- package/lib/services/billing.d.ts.map +1 -1
- package/lib/services/billing.js +11 -11
- package/lib/services/billing.js.map +1 -1
- package/lib/services/bot-management.d.ts.map +1 -1
- package/lib/services/bot-management.js +18 -30
- package/lib/services/bot-management.js.map +1 -1
- package/lib/services/botnet-feed.d.ts.map +1 -1
- package/lib/services/botnet-feed.js +12 -12
- package/lib/services/botnet-feed.js.map +1 -1
- package/lib/services/brand-protection.d.ts.map +1 -1
- package/lib/services/brand-protection.js +59 -59
- package/lib/services/brand-protection.js.map +1 -1
- package/lib/services/browser-rendering.d.ts.map +1 -1
- package/lib/services/browser-rendering.js +103 -103
- package/lib/services/browser-rendering.js.map +1 -1
- package/lib/services/cache.d.ts.map +1 -1
- package/lib/services/cache.js +72 -72
- package/lib/services/cache.js.map +1 -1
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +31 -31
- package/lib/services/calls.js.map +1 -1
- package/lib/services/certificate-authorities.js +6 -6
- package/lib/services/certificate-authorities.js.map +1 -1
- package/lib/services/client-certificates.js +18 -18
- package/lib/services/client-certificates.js.map +1 -1
- package/lib/services/cloud-connector.d.ts.map +1 -1
- package/lib/services/cloud-connector.js +8 -8
- package/lib/services/cloud-connector.js.map +1 -1
- package/lib/services/cloudforce-one.d.ts.map +1 -1
- package/lib/services/cloudforce-one.js +178 -178
- package/lib/services/cloudforce-one.js.map +1 -1
- package/lib/services/connectivity.js +25 -25
- package/lib/services/connectivity.js.map +1 -1
- package/lib/services/containers.js +49 -49
- package/lib/services/containers.js.map +1 -1
- package/lib/services/content-scanning.d.ts.map +1 -1
- package/lib/services/content-scanning.js +29 -29
- package/lib/services/content-scanning.js.map +1 -1
- package/lib/services/csam-scanner.d.ts.map +1 -1
- package/lib/services/csam-scanner.js +8 -8
- package/lib/services/csam-scanner.js.map +1 -1
- package/lib/services/custom-certificates.d.ts.map +1 -1
- package/lib/services/custom-certificates.js +24 -24
- package/lib/services/custom-certificates.js.map +1 -1
- package/lib/services/custom-csrs.d.ts.map +1 -1
- package/lib/services/custom-csrs.js +22 -22
- package/lib/services/custom-csrs.js.map +1 -1
- package/lib/services/custom-hostnames.d.ts.map +1 -1
- package/lib/services/custom-hostnames.js +40 -40
- package/lib/services/custom-hostnames.js.map +1 -1
- package/lib/services/custom-nameservers.js +11 -11
- package/lib/services/custom-nameservers.js.map +1 -1
- package/lib/services/custom-pages.d.ts.map +1 -1
- package/lib/services/custom-pages.js +43 -43
- package/lib/services/custom-pages.js.map +1 -1
- package/lib/services/d1.d.ts +4 -4
- package/lib/services/d1.d.ts.map +1 -1
- package/lib/services/d1.js +69 -51
- package/lib/services/d1.js.map +1 -1
- package/lib/services/dcv-delegation.js +3 -3
- package/lib/services/dcv-delegation.js.map +1 -1
- package/lib/services/ddos-protection.js +126 -126
- package/lib/services/ddos-protection.js.map +1 -1
- package/lib/services/diagnostics.js +27 -27
- package/lib/services/diagnostics.js.map +1 -1
- package/lib/services/dls.d.ts.map +1 -1
- package/lib/services/dls.js +26 -26
- package/lib/services/dls.js.map +1 -1
- package/lib/services/dns-firewall.d.ts.map +1 -1
- package/lib/services/dns-firewall.js +34 -34
- package/lib/services/dns-firewall.js.map +1 -1
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +268 -268
- package/lib/services/dns.js.map +1 -1
- package/lib/services/durable-objects.d.ts.map +1 -1
- package/lib/services/durable-objects.js +11 -11
- package/lib/services/durable-objects.js.map +1 -1
- package/lib/services/email-auth.d.ts.map +1 -1
- package/lib/services/email-auth.js +13 -13
- package/lib/services/email-auth.js.map +1 -1
- package/lib/services/email-routing.d.ts.map +1 -1
- package/lib/services/email-routing.js +70 -70
- package/lib/services/email-routing.js.map +1 -1
- package/lib/services/email-security.d.ts.map +1 -1
- package/lib/services/email-security.js +195 -195
- package/lib/services/email-security.js.map +1 -1
- package/lib/services/email-sending.d.ts.map +1 -1
- package/lib/services/email-sending.js +28 -28
- package/lib/services/email-sending.js.map +1 -1
- package/lib/services/filters.d.ts.map +1 -1
- package/lib/services/filters.js +25 -25
- package/lib/services/filters.js.map +1 -1
- package/lib/services/firewall.d.ts.map +1 -1
- package/lib/services/firewall.js +149 -149
- package/lib/services/firewall.js.map +1 -1
- package/lib/services/flagship.d.ts.map +1 -1
- package/lib/services/flagship.js +52 -52
- package/lib/services/flagship.js.map +1 -1
- package/lib/services/fraud.js +8 -8
- package/lib/services/fraud.js.map +1 -1
- package/lib/services/google-tag-gateway.d.ts.map +1 -1
- package/lib/services/google-tag-gateway.js +7 -7
- package/lib/services/google-tag-gateway.js.map +1 -1
- package/lib/services/healthchecks.d.ts.map +1 -1
- package/lib/services/healthchecks.js +31 -31
- package/lib/services/healthchecks.js.map +1 -1
- package/lib/services/hostnames.d.ts.map +1 -1
- package/lib/services/hostnames.js +10 -10
- package/lib/services/hostnames.js.map +1 -1
- package/lib/services/hyperdrive.d.ts.map +1 -1
- package/lib/services/hyperdrive.js +32 -32
- package/lib/services/hyperdrive.js.map +1 -1
- package/lib/services/iam.d.ts.map +1 -1
- package/lib/services/iam.js +113 -113
- package/lib/services/iam.js.map +1 -1
- package/lib/services/images.d.ts.map +1 -1
- package/lib/services/images.js +59 -59
- package/lib/services/images.js.map +1 -1
- package/lib/services/intel.d.ts.map +1 -1
- package/lib/services/intel.js +102 -102
- package/lib/services/intel.js.map +1 -1
- package/lib/services/ips.js +5 -5
- package/lib/services/ips.js.map +1 -1
- package/lib/services/keyless-certificates.js +17 -17
- package/lib/services/keyless-certificates.js.map +1 -1
- package/lib/services/kv.d.ts.map +1 -1
- package/lib/services/kv.js +54 -54
- package/lib/services/kv.js.map +1 -1
- package/lib/services/leaked-credential-checks.d.ts.map +1 -1
- package/lib/services/leaked-credential-checks.js +22 -22
- package/lib/services/leaked-credential-checks.js.map +1 -1
- package/lib/services/load-balancers.d.ts.map +1 -1
- package/lib/services/load-balancers.js +139 -157
- package/lib/services/load-balancers.js.map +1 -1
- package/lib/services/logpush.d.ts.map +1 -1
- package/lib/services/logpush.js +69 -69
- package/lib/services/logpush.js.map +1 -1
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +58 -58
- package/lib/services/logs.js.map +1 -1
- package/lib/services/magic-cloud-networking.d.ts.map +1 -1
- package/lib/services/magic-cloud-networking.js +138 -168
- package/lib/services/magic-cloud-networking.js.map +1 -1
- package/lib/services/magic-network-monitoring.d.ts.map +1 -1
- package/lib/services/magic-network-monitoring.js +47 -65
- package/lib/services/magic-network-monitoring.js.map +1 -1
- package/lib/services/magic-transit.d.ts.map +1 -1
- package/lib/services/magic-transit.js +340 -364
- package/lib/services/magic-transit.js.map +1 -1
- package/lib/services/managed-transforms.js +11 -11
- package/lib/services/managed-transforms.js.map +1 -1
- package/lib/services/memberships.d.ts.map +1 -1
- package/lib/services/memberships.js +25 -25
- package/lib/services/memberships.js.map +1 -1
- package/lib/services/moq.d.ts.map +1 -1
- package/lib/services/moq.js +23 -23
- package/lib/services/moq.js.map +1 -1
- package/lib/services/mtls-certificates.d.ts.map +1 -1
- package/lib/services/mtls-certificates.js +17 -17
- package/lib/services/mtls-certificates.js.map +1 -1
- package/lib/services/network-interconnects.d.ts.map +1 -1
- package/lib/services/network-interconnects.js +56 -56
- package/lib/services/network-interconnects.js.map +1 -1
- package/lib/services/organizations.d.ts.map +1 -1
- package/lib/services/organizations.js +42 -42
- package/lib/services/organizations.js.map +1 -1
- package/lib/services/origin-ca-certificates.js +14 -14
- package/lib/services/origin-ca-certificates.js.map +1 -1
- package/lib/services/origin-post-quantum-encryption.js +6 -6
- package/lib/services/origin-post-quantum-encryption.js.map +1 -1
- package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
- package/lib/services/origin-tls-client-auth.js +52 -52
- package/lib/services/origin-tls-client-auth.js.map +1 -1
- package/lib/services/origin-tls-compliance-modes.js +12 -12
- package/lib/services/origin-tls-compliance-modes.js.map +1 -1
- package/lib/services/page-rules.d.ts.map +1 -1
- package/lib/services/page-rules.js +62 -62
- package/lib/services/page-rules.js.map +1 -1
- package/lib/services/page-shield.d.ts.map +1 -1
- package/lib/services/page-shield.js +45 -48
- package/lib/services/page-shield.js.map +1 -1
- package/lib/services/pages.d.ts.map +1 -1
- package/lib/services/pages.js +78 -78
- package/lib/services/pages.js.map +1 -1
- package/lib/services/pipelines.d.ts.map +1 -1
- package/lib/services/pipelines.js +102 -102
- package/lib/services/pipelines.js.map +1 -1
- package/lib/services/queues.d.ts.map +1 -1
- package/lib/services/queues.js +100 -103
- package/lib/services/queues.js.map +1 -1
- package/lib/services/r2-data-catalog.d.ts.map +1 -1
- package/lib/services/r2-data-catalog.js +42 -42
- package/lib/services/r2-data-catalog.js.map +1 -1
- package/lib/services/r2.d.ts.map +1 -1
- package/lib/services/r2.js +190 -190
- package/lib/services/r2.js.map +1 -1
- package/lib/services/radar.d.ts.map +1 -1
- package/lib/services/radar.js +991 -1009
- package/lib/services/radar.js.map +1 -1
- package/lib/services/rate-limits.d.ts.map +1 -1
- package/lib/services/rate-limits.js +24 -24
- package/lib/services/rate-limits.js.map +1 -1
- package/lib/services/realtime-kit.d.ts.map +1 -1
- package/lib/services/realtime-kit.js +276 -276
- package/lib/services/realtime-kit.js.map +1 -1
- package/lib/services/registrar.d.ts.map +1 -1
- package/lib/services/registrar.js +28 -28
- package/lib/services/registrar.js.map +1 -1
- package/lib/services/request-tracers.d.ts.map +1 -1
- package/lib/services/request-tracers.js +7 -7
- package/lib/services/request-tracers.js.map +1 -1
- package/lib/services/resource-sharing.d.ts.map +1 -1
- package/lib/services/resource-sharing.js +49 -49
- package/lib/services/resource-sharing.js.map +1 -1
- package/lib/services/resource-tagging.d.ts.map +1 -1
- package/lib/services/resource-tagging.js +56 -56
- package/lib/services/resource-tagging.js.map +1 -1
- package/lib/services/rules.d.ts.map +1 -1
- package/lib/services/rules.js +50 -50
- package/lib/services/rules.js.map +1 -1
- package/lib/services/rulesets.d.ts +2 -2
- package/lib/services/rulesets.d.ts.map +1 -1
- package/lib/services/rulesets.js +226 -190
- package/lib/services/rulesets.js.map +1 -1
- package/lib/services/rum.d.ts.map +1 -1
- package/lib/services/rum.js +35 -35
- package/lib/services/rum.js.map +1 -1
- package/lib/services/schema-validation.d.ts.map +1 -1
- package/lib/services/schema-validation.js +43 -46
- package/lib/services/schema-validation.js.map +1 -1
- package/lib/services/secrets-store.d.ts.map +1 -1
- package/lib/services/secrets-store.js +41 -41
- package/lib/services/secrets-store.js.map +1 -1
- package/lib/services/security-center.d.ts.map +1 -1
- package/lib/services/security-center.js +54 -57
- package/lib/services/security-center.js.map +1 -1
- package/lib/services/security-txt.d.ts.map +1 -1
- package/lib/services/security-txt.js +12 -12
- package/lib/services/security-txt.js.map +1 -1
- package/lib/services/snippets.d.ts.map +1 -1
- package/lib/services/snippets.js +31 -31
- package/lib/services/snippets.js.map +1 -1
- package/lib/services/spectrum.d.ts.map +1 -1
- package/lib/services/spectrum.js +35 -35
- package/lib/services/spectrum.js.map +1 -1
- package/lib/services/speed.d.ts.map +1 -1
- package/lib/services/speed.js +41 -41
- package/lib/services/speed.js.map +1 -1
- package/lib/services/ssl.d.ts.map +1 -1
- package/lib/services/ssl.js +48 -48
- package/lib/services/ssl.js.map +1 -1
- package/lib/services/stream.d.ts.map +1 -1
- package/lib/services/stream.js +147 -147
- package/lib/services/stream.js.map +1 -1
- package/lib/services/tenant-custom-nameservers.js +11 -11
- package/lib/services/tenant-custom-nameservers.js.map +1 -1
- package/lib/services/tenants.d.ts.map +1 -1
- package/lib/services/tenants.js +28 -28
- package/lib/services/tenants.js.map +1 -1
- package/lib/services/token-validation.d.ts.map +1 -1
- package/lib/services/token-validation.js +56 -56
- package/lib/services/token-validation.js.map +1 -1
- package/lib/services/turnstile.d.ts.map +1 -1
- package/lib/services/turnstile.js +27 -54
- package/lib/services/turnstile.js.map +1 -1
- package/lib/services/url-normalization.js +9 -9
- package/lib/services/url-normalization.js.map +1 -1
- package/lib/services/url-scanner.d.ts.map +1 -1
- package/lib/services/url-scanner.js +120 -120
- package/lib/services/url-scanner.js.map +1 -1
- package/lib/services/user.d.ts.map +1 -1
- package/lib/services/user.js +95 -95
- package/lib/services/user.js.map +1 -1
- package/lib/services/vectorize.d.ts +10 -10
- package/lib/services/vectorize.d.ts.map +1 -1
- package/lib/services/vectorize.js +59 -57
- package/lib/services/vectorize.js.map +1 -1
- package/lib/services/vulnerability-scanner.d.ts.map +1 -1
- package/lib/services/vulnerability-scanner.js +95 -95
- package/lib/services/vulnerability-scanner.js.map +1 -1
- package/lib/services/waiting-rooms.d.ts.map +1 -1
- package/lib/services/waiting-rooms.js +81 -81
- package/lib/services/waiting-rooms.js.map +1 -1
- package/lib/services/web3.d.ts.map +1 -1
- package/lib/services/web3.js +39 -39
- package/lib/services/web3.js.map +1 -1
- package/lib/services/workers-for-platforms.d.ts.map +1 -1
- package/lib/services/workers-for-platforms.js +139 -139
- package/lib/services/workers-for-platforms.js.map +1 -1
- package/lib/services/workers.d.ts.map +1 -1
- package/lib/services/workers.js +420 -420
- package/lib/services/workers.js.map +1 -1
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +88 -88
- package/lib/services/workflows.js.map +1 -1
- package/lib/services/zaraz.d.ts.map +1 -1
- package/lib/services/zaraz.js +36 -39
- package/lib/services/zaraz.js.map +1 -1
- package/lib/services/zero-trust.d.ts.map +1 -1
- package/lib/services/zero-trust.js +1765 -1771
- package/lib/services/zero-trust.js.map +1 -1
- package/lib/services/zones.d.ts.map +1 -1
- package/lib/services/zones.js +168 -168
- package/lib/services/zones.js.map +1 -1
- package/package.json +3 -2
- package/src/services/abuse-reports.ts +35 -36
- package/src/services/accounts.ts +714 -760
- package/src/services/acm.ts +115 -125
- package/src/services/addressing.ts +484 -512
- package/src/services/ai-gateway.ts +653 -672
- package/src/services/ai-security.ts +47 -53
- package/src/services/ai.ts +172 -185
- package/src/services/aisearch.ts +1814 -1861
- package/src/services/alerting.ts +710 -742
- package/src/services/api-gateway.ts +481 -508
- package/src/services/argo.ts +12 -12
- package/src/services/audit-logs.ts +45 -49
- package/src/services/billing.ts +121 -136
- package/src/services/bot-management.ts +122 -136
- package/src/services/botnet-feed.ts +68 -74
- package/src/services/brand-protection.ts +275 -294
- package/src/services/browser-rendering.ts +758 -769
- package/src/services/cache.ts +148 -158
- package/src/services/calls.ts +110 -120
- package/src/services/certificate-authorities.ts +6 -6
- package/src/services/client-certificates.ts +18 -18
- package/src/services/cloud-connector.ts +11 -12
- package/src/services/cloudforce-one.ts +589 -617
- package/src/services/connectivity.ts +25 -25
- package/src/services/containers.ts +49 -49
- package/src/services/content-scanning.ts +80 -89
- package/src/services/csam-scanner.ts +16 -17
- package/src/services/custom-certificates.ts +36 -38
- package/src/services/custom-csrs.ts +103 -105
- package/src/services/custom-hostnames.ts +44 -45
- package/src/services/custom-nameservers.ts +11 -11
- package/src/services/custom-pages.ts +173 -184
- package/src/services/d1.ts +335 -325
- package/src/services/dcv-delegation.ts +3 -3
- package/src/services/ddos-protection.ts +126 -126
- package/src/services/diagnostics.ts +27 -27
- package/src/services/dls.ts +82 -86
- package/src/services/dns-firewall.ts +65 -69
- package/src/services/dns.ts +1080 -1107
- package/src/services/durable-objects.ts +36 -38
- package/src/services/email-auth.ts +47 -52
- package/src/services/email-routing.ts +264 -288
- package/src/services/email-security.ts +205 -208
- package/src/services/email-sending.ts +94 -99
- package/src/services/filters.ts +97 -111
- package/src/services/firewall.ts +698 -753
- package/src/services/flagship.ts +321 -336
- package/src/services/fraud.ts +8 -8
- package/src/services/google-tag-gateway.ts +17 -19
- package/src/services/healthchecks.ts +269 -286
- package/src/services/hostnames.ts +94 -99
- package/src/services/hyperdrive.ts +310 -324
- package/src/services/iam.ts +205 -212
- package/src/services/images.ts +138 -150
- package/src/services/intel.ts +248 -261
- package/src/services/ips.ts +5 -5
- package/src/services/keyless-certificates.ts +17 -17
- package/src/services/kv.ts +106 -110
- package/src/services/leaked-credential-checks.ts +49 -53
- package/src/services/load-balancers.ts +1119 -1212
- package/src/services/logpush.ts +298 -313
- package/src/services/logs.ts +74 -77
- package/src/services/magic-cloud-networking.ts +1219 -1311
- package/src/services/magic-network-monitoring.ts +647 -685
- package/src/services/magic-transit.ts +1988 -2119
- package/src/services/managed-transforms.ts +11 -11
- package/src/services/memberships.ts +101 -105
- package/src/services/moq.ts +100 -110
- package/src/services/mtls-certificates.ts +30 -32
- package/src/services/network-interconnects.ts +137 -145
- package/src/services/organizations.ts +189 -192
- package/src/services/origin-ca-certificates.ts +14 -14
- package/src/services/origin-post-quantum-encryption.ts +6 -6
- package/src/services/origin-tls-client-auth.ts +219 -236
- package/src/services/origin-tls-compliance-modes.ts +12 -12
- package/src/services/page-rules.ts +365 -373
- package/src/services/page-shield.ts +489 -528
- package/src/services/pages.ts +309 -319
- package/src/services/pipelines.ts +534 -573
- package/src/services/queues.ts +598 -635
- package/src/services/r2-data-catalog.ts +59 -60
- package/src/services/r2.ts +654 -689
- package/src/services/radar.ts +3395 -3487
- package/src/services/rate-limits.ts +81 -93
- package/src/services/realtime-kit.ts +386 -399
- package/src/services/registrar.ts +90 -96
- package/src/services/request-tracers.ts +41 -43
- package/src/services/resource-sharing.ts +293 -305
- package/src/services/resource-tagging.ts +354 -366
- package/src/services/rules.ts +272 -292
- package/src/services/rulesets.ts +1214 -1116
- package/src/services/rum.ts +252 -273
- package/src/services/schema-validation.ts +284 -305
- package/src/services/secrets-store.ts +130 -138
- package/src/services/security-center.ts +64 -69
- package/src/services/security-txt.ts +48 -50
- package/src/services/snippets.ts +132 -142
- package/src/services/spectrum.ts +75 -80
- package/src/services/speed.ts +385 -397
- package/src/services/ssl.ts +64 -65
- package/src/services/stream.ts +658 -718
- package/src/services/tenant-custom-nameservers.ts +11 -11
- package/src/services/tenants.ts +86 -93
- package/src/services/token-validation.ts +145 -151
- package/src/services/turnstile.ts +344 -381
- package/src/services/url-normalization.ts +9 -9
- package/src/services/url-scanner.ts +393 -399
- package/src/services/user.ts +479 -503
- package/src/services/vectorize.ts +215 -230
- package/src/services/vulnerability-scanner.ts +145 -148
- package/src/services/waiting-rooms.ts +759 -825
- package/src/services/web3.ts +186 -197
- package/src/services/workers-for-platforms.ts +408 -432
- package/src/services/workers.ts +1175 -1239
- package/src/services/workflows.ts +585 -616
- package/src/services/zaraz.ts +168 -192
- package/src/services/zero-trust.ts +2965 -3074
- package/src/services/zones.ts +753 -785
package/src/services/d1.ts
CHANGED
|
@@ -103,29 +103,28 @@ interface ListDatabasesResponseResult {
|
|
|
103
103
|
uuid?: string | null;
|
|
104
104
|
version?: string | null;
|
|
105
105
|
}
|
|
106
|
-
const ListDatabasesResponseResult = /*@__PURE__*/
|
|
107
|
-
(
|
|
108
|
-
Schema.
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
Schema.
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
]),
|
|
116
|
-
),
|
|
117
|
-
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
118
|
-
uuid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
119
|
-
version: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
120
|
-
}).pipe(
|
|
121
|
-
Schema.encodeKeys({
|
|
122
|
-
createdAt: "created_at",
|
|
123
|
-
jurisdiction: "jurisdiction",
|
|
124
|
-
name: "name",
|
|
125
|
-
uuid: "uuid",
|
|
126
|
-
version: "version",
|
|
127
|
-
}),
|
|
106
|
+
const ListDatabasesResponseResult = /*@__PURE__*/ Schema.suspend(() =>
|
|
107
|
+
Schema.Struct({
|
|
108
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
109
|
+
jurisdiction: Schema.optional(
|
|
110
|
+
Schema.Union([
|
|
111
|
+
Schema.Literal("eu"),
|
|
112
|
+
Schema.Literal("fedramp"),
|
|
113
|
+
Schema.Null,
|
|
114
|
+
]),
|
|
128
115
|
),
|
|
116
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
117
|
+
uuid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
118
|
+
version: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
119
|
+
}).pipe(
|
|
120
|
+
Schema.encodeKeys({
|
|
121
|
+
createdAt: "created_at",
|
|
122
|
+
jurisdiction: "jurisdiction",
|
|
123
|
+
name: "name",
|
|
124
|
+
uuid: "uuid",
|
|
125
|
+
version: "version",
|
|
126
|
+
}),
|
|
127
|
+
),
|
|
129
128
|
) as unknown as Schema.Codec<ListDatabasesResponseResult>;
|
|
130
129
|
|
|
131
130
|
interface ListDatabasesResponseResultInfo {
|
|
@@ -135,7 +134,7 @@ interface ListDatabasesResponseResultInfo {
|
|
|
135
134
|
totalCount?: number | null;
|
|
136
135
|
}
|
|
137
136
|
const ListDatabasesResponseResultInfo =
|
|
138
|
-
/*@__PURE__*/
|
|
137
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
139
138
|
Schema.Struct({
|
|
140
139
|
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
141
140
|
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
@@ -155,7 +154,7 @@ interface ReadReplication {
|
|
|
155
154
|
/** The read replication mode for the database. Mode 'auto' denotes that D1 creates replicas and automatically places them around the world. Mode 'disabled' denotes that no database replicas are used. */
|
|
156
155
|
mode: "auto" | "disabled" | (string & {});
|
|
157
156
|
}
|
|
158
|
-
const ReadReplication = /*@__PURE__*/
|
|
157
|
+
const ReadReplication = /*@__PURE__*/ Schema.suspend(() =>
|
|
159
158
|
Schema.Struct({
|
|
160
159
|
mode: Schema.Union([Schema.Literals(["auto", "disabled"]), Schema.String]),
|
|
161
160
|
}),
|
|
@@ -169,7 +168,7 @@ interface DumpOptions {
|
|
|
169
168
|
/** Filter the export to just one or more tables. Passing an empty array is the same as not passing anything and means: export all tables. */
|
|
170
169
|
tables?: string[] | null;
|
|
171
170
|
}
|
|
172
|
-
const DumpOptions = /*@__PURE__*/
|
|
171
|
+
const DumpOptions = /*@__PURE__*/ Schema.suspend(() =>
|
|
173
172
|
Schema.Struct({
|
|
174
173
|
noData: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
175
174
|
noSchema: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
@@ -191,7 +190,7 @@ interface Result {
|
|
|
191
190
|
/** The URL to download the exported SQL. Available for one hour. */
|
|
192
191
|
signedUrl?: string | null;
|
|
193
192
|
}
|
|
194
|
-
const Result = /*@__PURE__*/
|
|
193
|
+
const Result = /*@__PURE__*/ Schema.suspend(() =>
|
|
195
194
|
Schema.Struct({
|
|
196
195
|
filename: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
197
196
|
signedUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -202,7 +201,7 @@ interface Timings {
|
|
|
202
201
|
/** The duration of the SQL query execution inside the database. Does not include any network communication. */
|
|
203
202
|
sqlDurationMs?: number | null;
|
|
204
203
|
}
|
|
205
|
-
const Timings = /*@__PURE__*/
|
|
204
|
+
const Timings = /*@__PURE__*/ Schema.suspend(() =>
|
|
206
205
|
Schema.Struct({
|
|
207
206
|
sqlDurationMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
208
207
|
}).pipe(Schema.encodeKeys({ sqlDurationMs: "sql_duration_ms" })),
|
|
@@ -240,7 +239,7 @@ interface Meta {
|
|
|
240
239
|
/** Various durations for the query. */
|
|
241
240
|
timings?: { sqlDurationMs?: number | null } | null;
|
|
242
241
|
}
|
|
243
|
-
const Meta = /*@__PURE__*/
|
|
242
|
+
const Meta = /*@__PURE__*/ Schema.suspend(() =>
|
|
244
243
|
Schema.Struct({
|
|
245
244
|
changedDb: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
246
245
|
changes: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
@@ -307,7 +306,7 @@ interface Result2 {
|
|
|
307
306
|
/** The total number of queries that were executed during the import. */
|
|
308
307
|
numQueries?: number | null;
|
|
309
308
|
}
|
|
310
|
-
const Result2 = /*@__PURE__*/
|
|
309
|
+
const Result2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
311
310
|
Schema.Struct({
|
|
312
311
|
finalBookmark: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
313
312
|
meta: Schema.optional(Schema.Union([Meta, Schema.Null])),
|
|
@@ -324,13 +323,23 @@ const Result2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
|
324
323
|
interface Batch {
|
|
325
324
|
/** Your SQL query. Supports multiple statements, joined by semicolons, which will be executed as a batch. */
|
|
326
325
|
sql: string;
|
|
327
|
-
params?: string[] | null;
|
|
326
|
+
params?: (string | number | null | number[])[] | null;
|
|
328
327
|
}
|
|
329
|
-
const Batch = /*@__PURE__*/
|
|
328
|
+
const Batch = /*@__PURE__*/ Schema.suspend(() =>
|
|
330
329
|
Schema.Struct({
|
|
331
330
|
sql: Schema.String,
|
|
332
331
|
params: Schema.optional(
|
|
333
|
-
Schema.Union([
|
|
332
|
+
Schema.Union([
|
|
333
|
+
Schema.Array(
|
|
334
|
+
Schema.Union([
|
|
335
|
+
Schema.String,
|
|
336
|
+
Schema.Number,
|
|
337
|
+
Schema.Null,
|
|
338
|
+
Schema.Array(Schema.Number),
|
|
339
|
+
]),
|
|
340
|
+
),
|
|
341
|
+
Schema.Null,
|
|
342
|
+
]),
|
|
334
343
|
),
|
|
335
344
|
}),
|
|
336
345
|
) as unknown as Schema.Codec<Batch>;
|
|
@@ -360,22 +369,21 @@ interface QueryDatabaseResponseResult {
|
|
|
360
369
|
results?: unknown[] | null;
|
|
361
370
|
success?: boolean | null;
|
|
362
371
|
}
|
|
363
|
-
const QueryDatabaseResponseResult = /*@__PURE__*/
|
|
364
|
-
(
|
|
365
|
-
Schema.
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
}),
|
|
372
|
+
const QueryDatabaseResponseResult = /*@__PURE__*/ Schema.suspend(() =>
|
|
373
|
+
Schema.Struct({
|
|
374
|
+
meta: Schema.optional(Schema.Union([Meta, Schema.Null])),
|
|
375
|
+
results: Schema.optional(
|
|
376
|
+
Schema.Union([Schema.Array(Schema.Unknown), Schema.Null]),
|
|
377
|
+
),
|
|
378
|
+
success: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
379
|
+
}),
|
|
372
380
|
) as unknown as Schema.Codec<QueryDatabaseResponseResult>;
|
|
373
381
|
|
|
374
382
|
interface Results {
|
|
375
383
|
columns?: string[] | null;
|
|
376
384
|
rows?: unknown[][] | null;
|
|
377
385
|
}
|
|
378
|
-
const Results = /*@__PURE__*/
|
|
386
|
+
const Results = /*@__PURE__*/ Schema.suspend(() =>
|
|
379
387
|
Schema.Struct({
|
|
380
388
|
columns: Schema.optional(
|
|
381
389
|
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
@@ -411,13 +419,12 @@ interface RawDatabaseResponseResult {
|
|
|
411
419
|
results?: { columns?: string[] | null; rows?: unknown[][] | null } | null;
|
|
412
420
|
success?: boolean | null;
|
|
413
421
|
}
|
|
414
|
-
const RawDatabaseResponseResult = /*@__PURE__*/
|
|
415
|
-
(
|
|
416
|
-
Schema.
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
}),
|
|
422
|
+
const RawDatabaseResponseResult = /*@__PURE__*/ Schema.suspend(() =>
|
|
423
|
+
Schema.Struct({
|
|
424
|
+
meta: Schema.optional(Schema.Union([Meta, Schema.Null])),
|
|
425
|
+
results: Schema.optional(Schema.Union([Results, Schema.Null])),
|
|
426
|
+
success: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
427
|
+
}),
|
|
421
428
|
) as unknown as Schema.Codec<RawDatabaseResponseResult>;
|
|
422
429
|
|
|
423
430
|
// =============================================================================
|
|
@@ -433,7 +440,7 @@ export interface GetBookmarkDatabaseTimeTravelRequest {
|
|
|
433
440
|
}
|
|
434
441
|
|
|
435
442
|
export const GetBookmarkDatabaseTimeTravelRequest =
|
|
436
|
-
/*@__PURE__*/
|
|
443
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
437
444
|
Schema.Struct({
|
|
438
445
|
databaseId: Schema.String.pipe(T.HttpPath("databaseId")),
|
|
439
446
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -452,7 +459,7 @@ export interface GetBookmarkDatabaseTimeTravelResponse {
|
|
|
452
459
|
}
|
|
453
460
|
|
|
454
461
|
export const GetBookmarkDatabaseTimeTravelResponse =
|
|
455
|
-
/*@__PURE__*/
|
|
462
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
456
463
|
Schema.Struct({
|
|
457
464
|
bookmark: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
458
465
|
}).pipe(T.ResponsePath("result")),
|
|
@@ -470,7 +477,7 @@ export const getBookmarkDatabaseTimeTravel: API.OperationMethod<
|
|
|
470
477
|
GetBookmarkDatabaseTimeTravelResponse,
|
|
471
478
|
GetBookmarkDatabaseTimeTravelError,
|
|
472
479
|
Credentials | HttpClient.HttpClient
|
|
473
|
-
> = /*@__PURE__*/
|
|
480
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
474
481
|
input: GetBookmarkDatabaseTimeTravelRequest,
|
|
475
482
|
output: GetBookmarkDatabaseTimeTravelResponse,
|
|
476
483
|
errors: [
|
|
@@ -494,16 +501,15 @@ export interface ListDatabasesRequest {
|
|
|
494
501
|
name?: string;
|
|
495
502
|
}
|
|
496
503
|
|
|
497
|
-
export const ListDatabasesRequest = /*@__PURE__*/
|
|
498
|
-
(
|
|
499
|
-
Schema.
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
})
|
|
505
|
-
|
|
506
|
-
),
|
|
504
|
+
export const ListDatabasesRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
505
|
+
Schema.Struct({
|
|
506
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
507
|
+
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
508
|
+
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
509
|
+
name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
|
|
510
|
+
}).pipe(
|
|
511
|
+
T.Http({ method: "GET", path: "/accounts/{account_id}/d1/database" }),
|
|
512
|
+
),
|
|
507
513
|
) as unknown as Schema.Codec<ListDatabasesRequest>;
|
|
508
514
|
|
|
509
515
|
export interface ListDatabasesResponse {
|
|
@@ -522,14 +528,13 @@ export interface ListDatabasesResponse {
|
|
|
522
528
|
} | null;
|
|
523
529
|
}
|
|
524
530
|
|
|
525
|
-
export const ListDatabasesResponse = /*@__PURE__*/
|
|
526
|
-
(
|
|
527
|
-
Schema.
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
531
|
+
export const ListDatabasesResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
532
|
+
Schema.Struct({
|
|
533
|
+
result: Schema.Array(ListDatabasesResponseResult),
|
|
534
|
+
resultInfo: Schema.optional(
|
|
535
|
+
Schema.Union([ListDatabasesResponseResultInfo, Schema.Null]),
|
|
536
|
+
),
|
|
537
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
533
538
|
) as unknown as Schema.Codec<ListDatabasesResponse>;
|
|
534
539
|
|
|
535
540
|
export type ListDatabasesError = DefaultErrors;
|
|
@@ -539,7 +544,7 @@ export const listDatabases: API.PaginatedOperationMethod<
|
|
|
539
544
|
ListDatabasesResponse,
|
|
540
545
|
ListDatabasesError,
|
|
541
546
|
Credentials | HttpClient.HttpClient
|
|
542
|
-
> = /*@__PURE__*/
|
|
547
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
543
548
|
input: ListDatabasesRequest,
|
|
544
549
|
output: ListDatabasesResponse,
|
|
545
550
|
errors: [],
|
|
@@ -575,35 +580,34 @@ export interface GetDatabaseRequest {
|
|
|
575
580
|
)[];
|
|
576
581
|
}
|
|
577
582
|
|
|
578
|
-
export const GetDatabaseRequest = /*@__PURE__*/
|
|
579
|
-
(
|
|
580
|
-
Schema.
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
Schema.
|
|
585
|
-
Schema.
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
"read_replication",
|
|
596
|
-
]),
|
|
597
|
-
Schema.String,
|
|
583
|
+
export const GetDatabaseRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
584
|
+
Schema.Struct({
|
|
585
|
+
databaseId: Schema.String.pipe(T.HttpPath("databaseId")),
|
|
586
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
587
|
+
fields: Schema.optional(
|
|
588
|
+
Schema.Array(
|
|
589
|
+
Schema.Union([
|
|
590
|
+
Schema.Literals([
|
|
591
|
+
"uuid",
|
|
592
|
+
"name",
|
|
593
|
+
"created_at",
|
|
594
|
+
"version",
|
|
595
|
+
"jurisdiction",
|
|
596
|
+
"num_tables",
|
|
597
|
+
"file_size",
|
|
598
|
+
"running_in_region",
|
|
599
|
+
"read_replication",
|
|
598
600
|
]),
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
601
|
+
Schema.String,
|
|
602
|
+
]),
|
|
603
|
+
),
|
|
604
|
+
).pipe(T.HttpQuery("fields")),
|
|
605
|
+
}).pipe(
|
|
606
|
+
T.Http({
|
|
607
|
+
method: "GET",
|
|
608
|
+
path: "/accounts/{account_id}/d1/database/{databaseId}",
|
|
609
|
+
}),
|
|
610
|
+
),
|
|
607
611
|
) as unknown as Schema.Codec<GetDatabaseRequest>;
|
|
608
612
|
|
|
609
613
|
export interface GetDatabaseResponse {
|
|
@@ -623,39 +627,38 @@ export interface GetDatabaseResponse {
|
|
|
623
627
|
version?: string | null;
|
|
624
628
|
}
|
|
625
629
|
|
|
626
|
-
export const GetDatabaseResponse = /*@__PURE__*/
|
|
627
|
-
(
|
|
628
|
-
Schema.
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
Schema.
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
.
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
.pipe(T.ResponsePath("result")),
|
|
630
|
+
export const GetDatabaseResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
631
|
+
Schema.Struct({
|
|
632
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
633
|
+
fileSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
634
|
+
jurisdiction: Schema.optional(
|
|
635
|
+
Schema.Union([
|
|
636
|
+
Schema.Literal("eu"),
|
|
637
|
+
Schema.Literal("fedramp"),
|
|
638
|
+
Schema.Null,
|
|
639
|
+
]),
|
|
640
|
+
),
|
|
641
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
642
|
+
numTables: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
643
|
+
readReplication: Schema.optional(
|
|
644
|
+
Schema.Union([ReadReplication, Schema.Null]),
|
|
645
|
+
),
|
|
646
|
+
uuid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
647
|
+
version: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
648
|
+
})
|
|
649
|
+
.pipe(
|
|
650
|
+
Schema.encodeKeys({
|
|
651
|
+
createdAt: "created_at",
|
|
652
|
+
fileSize: "file_size",
|
|
653
|
+
jurisdiction: "jurisdiction",
|
|
654
|
+
name: "name",
|
|
655
|
+
numTables: "num_tables",
|
|
656
|
+
readReplication: "read_replication",
|
|
657
|
+
uuid: "uuid",
|
|
658
|
+
version: "version",
|
|
659
|
+
}),
|
|
660
|
+
)
|
|
661
|
+
.pipe(T.ResponsePath("result")),
|
|
659
662
|
) as unknown as Schema.Codec<GetDatabaseResponse>;
|
|
660
663
|
|
|
661
664
|
export type GetDatabaseError =
|
|
@@ -669,7 +672,7 @@ export const getDatabase: API.OperationMethod<
|
|
|
669
672
|
GetDatabaseResponse,
|
|
670
673
|
GetDatabaseError,
|
|
671
674
|
Credentials | HttpClient.HttpClient
|
|
672
|
-
> = /*@__PURE__*/
|
|
675
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
673
676
|
input: GetDatabaseRequest,
|
|
674
677
|
output: GetDatabaseResponse,
|
|
675
678
|
errors: [InvalidObjectIdentifier, DatabaseNotFound, UnknownError],
|
|
@@ -695,30 +698,29 @@ export interface CreateDatabaseRequest {
|
|
|
695
698
|
readReplication?: { mode: "auto" | "disabled" | (string & {}) };
|
|
696
699
|
}
|
|
697
700
|
|
|
698
|
-
export const CreateDatabaseRequest = /*@__PURE__*/
|
|
699
|
-
(
|
|
700
|
-
Schema.
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
Schema.Union([Schema.Literals(["eu", "fedramp"]), Schema.String]),
|
|
705
|
-
),
|
|
706
|
-
primaryLocationHint: Schema.optional(
|
|
707
|
-
Schema.Union([
|
|
708
|
-
Schema.Literals(["wnam", "enam", "weur", "eeur", "apac", "oc"]),
|
|
709
|
-
Schema.String,
|
|
710
|
-
]),
|
|
711
|
-
),
|
|
712
|
-
readReplication: Schema.optional(ReadReplication),
|
|
713
|
-
}).pipe(
|
|
714
|
-
Schema.encodeKeys({
|
|
715
|
-
name: "name",
|
|
716
|
-
jurisdiction: "jurisdiction",
|
|
717
|
-
primaryLocationHint: "primary_location_hint",
|
|
718
|
-
readReplication: "read_replication",
|
|
719
|
-
}),
|
|
720
|
-
T.Http({ method: "POST", path: "/accounts/{account_id}/d1/database" }),
|
|
701
|
+
export const CreateDatabaseRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
702
|
+
Schema.Struct({
|
|
703
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
704
|
+
name: Schema.String,
|
|
705
|
+
jurisdiction: Schema.optional(
|
|
706
|
+
Schema.Union([Schema.Literals(["eu", "fedramp"]), Schema.String]),
|
|
721
707
|
),
|
|
708
|
+
primaryLocationHint: Schema.optional(
|
|
709
|
+
Schema.Union([
|
|
710
|
+
Schema.Literals(["wnam", "enam", "weur", "eeur", "apac", "oc"]),
|
|
711
|
+
Schema.String,
|
|
712
|
+
]),
|
|
713
|
+
),
|
|
714
|
+
readReplication: Schema.optional(ReadReplication),
|
|
715
|
+
}).pipe(
|
|
716
|
+
Schema.encodeKeys({
|
|
717
|
+
name: "name",
|
|
718
|
+
jurisdiction: "jurisdiction",
|
|
719
|
+
primaryLocationHint: "primary_location_hint",
|
|
720
|
+
readReplication: "read_replication",
|
|
721
|
+
}),
|
|
722
|
+
T.Http({ method: "POST", path: "/accounts/{account_id}/d1/database" }),
|
|
723
|
+
),
|
|
722
724
|
) as unknown as Schema.Codec<CreateDatabaseRequest>;
|
|
723
725
|
|
|
724
726
|
export interface CreateDatabaseResponse {
|
|
@@ -739,7 +741,7 @@ export interface CreateDatabaseResponse {
|
|
|
739
741
|
}
|
|
740
742
|
|
|
741
743
|
export const CreateDatabaseResponse =
|
|
742
|
-
/*@__PURE__*/
|
|
744
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
743
745
|
Schema.Struct({
|
|
744
746
|
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
745
747
|
fileSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
@@ -784,7 +786,7 @@ export const createDatabase: API.OperationMethod<
|
|
|
784
786
|
CreateDatabaseResponse,
|
|
785
787
|
CreateDatabaseError,
|
|
786
788
|
Credentials | HttpClient.HttpClient
|
|
787
|
-
> = /*@__PURE__*/
|
|
789
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
788
790
|
input: CreateDatabaseRequest,
|
|
789
791
|
output: CreateDatabaseResponse,
|
|
790
792
|
errors: [InvalidObjectIdentifier, InvalidProperty, DatabaseAlreadyExists],
|
|
@@ -798,19 +800,18 @@ export interface UpdateDatabaseRequest {
|
|
|
798
800
|
readReplication: { mode: "auto" | "disabled" | (string & {}) };
|
|
799
801
|
}
|
|
800
802
|
|
|
801
|
-
export const UpdateDatabaseRequest = /*@__PURE__*/
|
|
802
|
-
(
|
|
803
|
-
Schema.
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
})
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
),
|
|
803
|
+
export const UpdateDatabaseRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
804
|
+
Schema.Struct({
|
|
805
|
+
databaseId: Schema.String.pipe(T.HttpPath("databaseId")),
|
|
806
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
807
|
+
readReplication: ReadReplication,
|
|
808
|
+
}).pipe(
|
|
809
|
+
Schema.encodeKeys({ readReplication: "read_replication" }),
|
|
810
|
+
T.Http({
|
|
811
|
+
method: "PUT",
|
|
812
|
+
path: "/accounts/{account_id}/d1/database/{databaseId}",
|
|
813
|
+
}),
|
|
814
|
+
),
|
|
814
815
|
) as unknown as Schema.Codec<UpdateDatabaseRequest>;
|
|
815
816
|
|
|
816
817
|
export interface UpdateDatabaseResponse {
|
|
@@ -831,7 +832,7 @@ export interface UpdateDatabaseResponse {
|
|
|
831
832
|
}
|
|
832
833
|
|
|
833
834
|
export const UpdateDatabaseResponse =
|
|
834
|
-
/*@__PURE__*/
|
|
835
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
835
836
|
Schema.Struct({
|
|
836
837
|
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
837
838
|
fileSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
@@ -876,7 +877,7 @@ export const updateDatabase: API.OperationMethod<
|
|
|
876
877
|
UpdateDatabaseResponse,
|
|
877
878
|
UpdateDatabaseError,
|
|
878
879
|
Credentials | HttpClient.HttpClient
|
|
879
|
-
> = /*@__PURE__*/
|
|
880
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
880
881
|
input: UpdateDatabaseRequest,
|
|
881
882
|
output: UpdateDatabaseResponse,
|
|
882
883
|
errors: [InvalidObjectIdentifier, InternalError, DatabaseNotFound],
|
|
@@ -890,19 +891,18 @@ export interface PatchDatabaseRequest {
|
|
|
890
891
|
readReplication?: { mode: "auto" | "disabled" | (string & {}) };
|
|
891
892
|
}
|
|
892
893
|
|
|
893
|
-
export const PatchDatabaseRequest = /*@__PURE__*/
|
|
894
|
-
(
|
|
895
|
-
Schema.
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
})
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
),
|
|
894
|
+
export const PatchDatabaseRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
895
|
+
Schema.Struct({
|
|
896
|
+
databaseId: Schema.String.pipe(T.HttpPath("databaseId")),
|
|
897
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
898
|
+
readReplication: Schema.optional(ReadReplication),
|
|
899
|
+
}).pipe(
|
|
900
|
+
Schema.encodeKeys({ readReplication: "read_replication" }),
|
|
901
|
+
T.Http({
|
|
902
|
+
method: "PATCH",
|
|
903
|
+
path: "/accounts/{account_id}/d1/database/{databaseId}",
|
|
904
|
+
}),
|
|
905
|
+
),
|
|
906
906
|
) as unknown as Schema.Codec<PatchDatabaseRequest>;
|
|
907
907
|
|
|
908
908
|
export interface PatchDatabaseResponse {
|
|
@@ -922,39 +922,38 @@ export interface PatchDatabaseResponse {
|
|
|
922
922
|
version?: string | null;
|
|
923
923
|
}
|
|
924
924
|
|
|
925
|
-
export const PatchDatabaseResponse = /*@__PURE__*/
|
|
926
|
-
(
|
|
927
|
-
Schema.
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
Schema.
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
.
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
.pipe(T.ResponsePath("result")),
|
|
925
|
+
export const PatchDatabaseResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
926
|
+
Schema.Struct({
|
|
927
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
928
|
+
fileSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
929
|
+
jurisdiction: Schema.optional(
|
|
930
|
+
Schema.Union([
|
|
931
|
+
Schema.Literal("eu"),
|
|
932
|
+
Schema.Literal("fedramp"),
|
|
933
|
+
Schema.Null,
|
|
934
|
+
]),
|
|
935
|
+
),
|
|
936
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
937
|
+
numTables: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
938
|
+
readReplication: Schema.optional(
|
|
939
|
+
Schema.Union([ReadReplication, Schema.Null]),
|
|
940
|
+
),
|
|
941
|
+
uuid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
942
|
+
version: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
943
|
+
})
|
|
944
|
+
.pipe(
|
|
945
|
+
Schema.encodeKeys({
|
|
946
|
+
createdAt: "created_at",
|
|
947
|
+
fileSize: "file_size",
|
|
948
|
+
jurisdiction: "jurisdiction",
|
|
949
|
+
name: "name",
|
|
950
|
+
numTables: "num_tables",
|
|
951
|
+
readReplication: "read_replication",
|
|
952
|
+
uuid: "uuid",
|
|
953
|
+
version: "version",
|
|
954
|
+
}),
|
|
955
|
+
)
|
|
956
|
+
.pipe(T.ResponsePath("result")),
|
|
958
957
|
) as unknown as Schema.Codec<PatchDatabaseResponse>;
|
|
959
958
|
|
|
960
959
|
export type PatchDatabaseError =
|
|
@@ -968,7 +967,7 @@ export const patchDatabase: API.OperationMethod<
|
|
|
968
967
|
PatchDatabaseResponse,
|
|
969
968
|
PatchDatabaseError,
|
|
970
969
|
Credentials | HttpClient.HttpClient
|
|
971
|
-
> = /*@__PURE__*/
|
|
970
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
972
971
|
input: PatchDatabaseRequest,
|
|
973
972
|
output: PatchDatabaseResponse,
|
|
974
973
|
errors: [InvalidObjectIdentifier, InternalError, DatabaseNotFound],
|
|
@@ -980,23 +979,22 @@ export interface DeleteDatabaseRequest {
|
|
|
980
979
|
accountId: string;
|
|
981
980
|
}
|
|
982
981
|
|
|
983
|
-
export const DeleteDatabaseRequest = /*@__PURE__*/
|
|
984
|
-
(
|
|
985
|
-
Schema.
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
),
|
|
982
|
+
export const DeleteDatabaseRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
983
|
+
Schema.Struct({
|
|
984
|
+
databaseId: Schema.String.pipe(T.HttpPath("databaseId")),
|
|
985
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
986
|
+
}).pipe(
|
|
987
|
+
T.Http({
|
|
988
|
+
method: "DELETE",
|
|
989
|
+
path: "/accounts/{account_id}/d1/database/{databaseId}",
|
|
990
|
+
}),
|
|
991
|
+
),
|
|
994
992
|
) as unknown as Schema.Codec<DeleteDatabaseRequest>;
|
|
995
993
|
|
|
996
994
|
export type DeleteDatabaseResponse = unknown;
|
|
997
995
|
|
|
998
996
|
export const DeleteDatabaseResponse =
|
|
999
|
-
/*@__PURE__*/
|
|
997
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1000
998
|
Schema.Unknown.pipe(T.ResponsePath("result")),
|
|
1001
999
|
) as unknown as Schema.Codec<DeleteDatabaseResponse>;
|
|
1002
1000
|
|
|
@@ -1011,7 +1009,7 @@ export const deleteDatabase: API.OperationMethod<
|
|
|
1011
1009
|
DeleteDatabaseResponse,
|
|
1012
1010
|
DeleteDatabaseError,
|
|
1013
1011
|
Credentials | HttpClient.HttpClient
|
|
1014
|
-
> = /*@__PURE__*/
|
|
1012
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1015
1013
|
input: DeleteDatabaseRequest,
|
|
1016
1014
|
output: DeleteDatabaseResponse,
|
|
1017
1015
|
errors: [InvalidObjectIdentifier, DatabaseNotFound, UnknownError],
|
|
@@ -1029,25 +1027,24 @@ export interface ExportDatabaseRequest {
|
|
|
1029
1027
|
dumpOptions?: { noData?: boolean; noSchema?: boolean; tables?: string[] };
|
|
1030
1028
|
}
|
|
1031
1029
|
|
|
1032
|
-
export const ExportDatabaseRequest = /*@__PURE__*/
|
|
1033
|
-
(
|
|
1034
|
-
Schema.
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
),
|
|
1030
|
+
export const ExportDatabaseRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1031
|
+
Schema.Struct({
|
|
1032
|
+
databaseId: Schema.String.pipe(T.HttpPath("databaseId")),
|
|
1033
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1034
|
+
outputFormat: Schema.Literal("polling"),
|
|
1035
|
+
currentBookmark: Schema.optional(Schema.String),
|
|
1036
|
+
dumpOptions: Schema.optional(DumpOptions),
|
|
1037
|
+
}).pipe(
|
|
1038
|
+
Schema.encodeKeys({
|
|
1039
|
+
outputFormat: "output_format",
|
|
1040
|
+
currentBookmark: "current_bookmark",
|
|
1041
|
+
dumpOptions: "dump_options",
|
|
1042
|
+
}),
|
|
1043
|
+
T.Http({
|
|
1044
|
+
method: "POST",
|
|
1045
|
+
path: "/accounts/{account_id}/d1/database/{databaseId}/export",
|
|
1046
|
+
}),
|
|
1047
|
+
),
|
|
1051
1048
|
) as unknown as Schema.Codec<ExportDatabaseRequest>;
|
|
1052
1049
|
|
|
1053
1050
|
export interface ExportDatabaseResponse {
|
|
@@ -1065,7 +1062,7 @@ export interface ExportDatabaseResponse {
|
|
|
1065
1062
|
}
|
|
1066
1063
|
|
|
1067
1064
|
export const ExportDatabaseResponse =
|
|
1068
|
-
/*@__PURE__*/
|
|
1065
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1069
1066
|
Schema.Struct({
|
|
1070
1067
|
atBookmark: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1071
1068
|
error: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1112,7 +1109,7 @@ export const exportDatabase: API.OperationMethod<
|
|
|
1112
1109
|
ExportDatabaseResponse,
|
|
1113
1110
|
ExportDatabaseError,
|
|
1114
1111
|
Credentials | HttpClient.HttpClient
|
|
1115
|
-
> = /*@__PURE__*/
|
|
1112
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1116
1113
|
input: ExportDatabaseRequest,
|
|
1117
1114
|
output: ExportDatabaseResponse,
|
|
1118
1115
|
errors: [InvalidObjectIdentifier, InvalidRequest, DatabaseNotFound],
|
|
@@ -1132,30 +1129,29 @@ export interface ImportDatabaseRequest {
|
|
|
1132
1129
|
currentBookmark?: string;
|
|
1133
1130
|
}
|
|
1134
1131
|
|
|
1135
|
-
export const ImportDatabaseRequest = /*@__PURE__*/
|
|
1136
|
-
(
|
|
1137
|
-
Schema.
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
),
|
|
1132
|
+
export const ImportDatabaseRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1133
|
+
Schema.Struct({
|
|
1134
|
+
databaseId: Schema.String.pipe(T.HttpPath("databaseId")),
|
|
1135
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1136
|
+
action: Schema.Union([
|
|
1137
|
+
Schema.Literals(["init", "ingest", "poll"]),
|
|
1138
|
+
Schema.String,
|
|
1139
|
+
]),
|
|
1140
|
+
etag: Schema.optional(Schema.String),
|
|
1141
|
+
filename: Schema.optional(Schema.String),
|
|
1142
|
+
currentBookmark: Schema.optional(Schema.String),
|
|
1143
|
+
}).pipe(
|
|
1144
|
+
Schema.encodeKeys({
|
|
1145
|
+
action: "action",
|
|
1146
|
+
etag: "etag",
|
|
1147
|
+
filename: "filename",
|
|
1148
|
+
currentBookmark: "current_bookmark",
|
|
1149
|
+
}),
|
|
1150
|
+
T.Http({
|
|
1151
|
+
method: "POST",
|
|
1152
|
+
path: "/accounts/{account_id}/d1/database/{databaseId}/import",
|
|
1153
|
+
}),
|
|
1154
|
+
),
|
|
1159
1155
|
) as unknown as Schema.Codec<ImportDatabaseRequest>;
|
|
1160
1156
|
|
|
1161
1157
|
export interface ImportDatabaseResponse {
|
|
@@ -1201,7 +1197,7 @@ export interface ImportDatabaseResponse {
|
|
|
1201
1197
|
}
|
|
1202
1198
|
|
|
1203
1199
|
export const ImportDatabaseResponse =
|
|
1204
|
-
/*@__PURE__*/
|
|
1200
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1205
1201
|
Schema.Struct({
|
|
1206
1202
|
atBookmark: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1207
1203
|
error: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1245,7 +1241,7 @@ export const importDatabase: API.OperationMethod<
|
|
|
1245
1241
|
ImportDatabaseResponse,
|
|
1246
1242
|
ImportDatabaseError,
|
|
1247
1243
|
Credentials | HttpClient.HttpClient
|
|
1248
|
-
> = /*@__PURE__*/
|
|
1244
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1249
1245
|
input: ImportDatabaseRequest,
|
|
1250
1246
|
output: ImportDatabaseResponse,
|
|
1251
1247
|
errors: [InvalidObjectIdentifier],
|
|
@@ -1258,25 +1254,33 @@ export interface QueryDatabaseRequest {
|
|
|
1258
1254
|
/** Body param: Your SQL query. Supports multiple statements, joined by semicolons, which will be executed as a batch. */
|
|
1259
1255
|
sql?: string;
|
|
1260
1256
|
/** Body param */
|
|
1261
|
-
params?: string[];
|
|
1257
|
+
params?: (string | number | null | number[])[];
|
|
1262
1258
|
/** Body param */
|
|
1263
|
-
batch?: { sql: string; params?: string[] }[];
|
|
1259
|
+
batch?: { sql: string; params?: (string | number | null | number[])[] }[];
|
|
1264
1260
|
}
|
|
1265
1261
|
|
|
1266
|
-
export const QueryDatabaseRequest = /*@__PURE__*/
|
|
1267
|
-
(
|
|
1268
|
-
Schema.
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1262
|
+
export const QueryDatabaseRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1263
|
+
Schema.Struct({
|
|
1264
|
+
databaseId: Schema.String.pipe(T.HttpPath("databaseId")),
|
|
1265
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1266
|
+
sql: Schema.optional(Schema.String),
|
|
1267
|
+
params: Schema.optional(
|
|
1268
|
+
Schema.Array(
|
|
1269
|
+
Schema.Union([
|
|
1270
|
+
Schema.String,
|
|
1271
|
+
Schema.Number,
|
|
1272
|
+
Schema.Null,
|
|
1273
|
+
Schema.Array(Schema.Number),
|
|
1274
|
+
]),
|
|
1275
|
+
),
|
|
1279
1276
|
),
|
|
1277
|
+
batch: Schema.optional(Schema.Array(Batch)),
|
|
1278
|
+
}).pipe(
|
|
1279
|
+
T.Http({
|
|
1280
|
+
method: "POST",
|
|
1281
|
+
path: "/accounts/{account_id}/d1/database/{databaseId}/query",
|
|
1282
|
+
}),
|
|
1283
|
+
),
|
|
1280
1284
|
) as unknown as Schema.Codec<QueryDatabaseRequest>;
|
|
1281
1285
|
|
|
1282
1286
|
export interface QueryDatabaseResponse {
|
|
@@ -1307,11 +1311,10 @@ export interface QueryDatabaseResponse {
|
|
|
1307
1311
|
}[];
|
|
1308
1312
|
}
|
|
1309
1313
|
|
|
1310
|
-
export const QueryDatabaseResponse = /*@__PURE__*/
|
|
1311
|
-
(
|
|
1312
|
-
Schema.
|
|
1313
|
-
|
|
1314
|
-
}),
|
|
1314
|
+
export const QueryDatabaseResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1315
|
+
Schema.Struct({
|
|
1316
|
+
result: Schema.Array(QueryDatabaseResponseResult),
|
|
1317
|
+
}),
|
|
1315
1318
|
) as unknown as Schema.Codec<QueryDatabaseResponse>;
|
|
1316
1319
|
|
|
1317
1320
|
export type QueryDatabaseError = DefaultErrors;
|
|
@@ -1321,7 +1324,7 @@ export const queryDatabase: API.PaginatedOperationMethod<
|
|
|
1321
1324
|
QueryDatabaseResponse,
|
|
1322
1325
|
QueryDatabaseError,
|
|
1323
1326
|
Credentials | HttpClient.HttpClient
|
|
1324
|
-
> = /*@__PURE__*/
|
|
1327
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
1325
1328
|
input: QueryDatabaseRequest,
|
|
1326
1329
|
output: QueryDatabaseResponse,
|
|
1327
1330
|
errors: [],
|
|
@@ -1338,25 +1341,33 @@ export interface RawDatabaseRequest {
|
|
|
1338
1341
|
/** Body param: Your SQL query. Supports multiple statements, joined by semicolons, which will be executed as a batch. */
|
|
1339
1342
|
sql?: string;
|
|
1340
1343
|
/** Body param */
|
|
1341
|
-
params?: string[];
|
|
1344
|
+
params?: (string | number | null | number[])[];
|
|
1342
1345
|
/** Body param */
|
|
1343
|
-
batch?: { sql: string; params?: string[] }[];
|
|
1346
|
+
batch?: { sql: string; params?: (string | number | null | number[])[] }[];
|
|
1344
1347
|
}
|
|
1345
1348
|
|
|
1346
|
-
export const RawDatabaseRequest = /*@__PURE__*/
|
|
1347
|
-
(
|
|
1348
|
-
Schema.
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1349
|
+
export const RawDatabaseRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1350
|
+
Schema.Struct({
|
|
1351
|
+
databaseId: Schema.String.pipe(T.HttpPath("databaseId")),
|
|
1352
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1353
|
+
sql: Schema.optional(Schema.String),
|
|
1354
|
+
params: Schema.optional(
|
|
1355
|
+
Schema.Array(
|
|
1356
|
+
Schema.Union([
|
|
1357
|
+
Schema.String,
|
|
1358
|
+
Schema.Number,
|
|
1359
|
+
Schema.Null,
|
|
1360
|
+
Schema.Array(Schema.Number),
|
|
1361
|
+
]),
|
|
1362
|
+
),
|
|
1359
1363
|
),
|
|
1364
|
+
batch: Schema.optional(Schema.Array(Batch)),
|
|
1365
|
+
}).pipe(
|
|
1366
|
+
T.Http({
|
|
1367
|
+
method: "POST",
|
|
1368
|
+
path: "/accounts/{account_id}/d1/database/{databaseId}/raw",
|
|
1369
|
+
}),
|
|
1370
|
+
),
|
|
1360
1371
|
) as unknown as Schema.Codec<RawDatabaseRequest>;
|
|
1361
1372
|
|
|
1362
1373
|
export interface RawDatabaseResponse {
|
|
@@ -1387,11 +1398,10 @@ export interface RawDatabaseResponse {
|
|
|
1387
1398
|
}[];
|
|
1388
1399
|
}
|
|
1389
1400
|
|
|
1390
|
-
export const RawDatabaseResponse = /*@__PURE__*/
|
|
1391
|
-
(
|
|
1392
|
-
Schema.
|
|
1393
|
-
|
|
1394
|
-
}),
|
|
1401
|
+
export const RawDatabaseResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1402
|
+
Schema.Struct({
|
|
1403
|
+
result: Schema.Array(RawDatabaseResponseResult),
|
|
1404
|
+
}),
|
|
1395
1405
|
) as unknown as Schema.Codec<RawDatabaseResponse>;
|
|
1396
1406
|
|
|
1397
1407
|
export type RawDatabaseError = DefaultErrors;
|
|
@@ -1401,7 +1411,7 @@ export const rawDatabase: API.PaginatedOperationMethod<
|
|
|
1401
1411
|
RawDatabaseResponse,
|
|
1402
1412
|
RawDatabaseError,
|
|
1403
1413
|
Credentials | HttpClient.HttpClient
|
|
1404
|
-
> = /*@__PURE__*/
|
|
1414
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
1405
1415
|
input: RawDatabaseRequest,
|
|
1406
1416
|
output: RawDatabaseResponse,
|
|
1407
1417
|
errors: [],
|
|
@@ -1426,7 +1436,7 @@ export interface RestoreDatabaseTimeTravelRequest {
|
|
|
1426
1436
|
}
|
|
1427
1437
|
|
|
1428
1438
|
export const RestoreDatabaseTimeTravelRequest =
|
|
1429
|
-
/*@__PURE__*/
|
|
1439
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1430
1440
|
Schema.Struct({
|
|
1431
1441
|
databaseId: Schema.String.pipe(T.HttpPath("databaseId")),
|
|
1432
1442
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -1450,7 +1460,7 @@ export interface RestoreDatabaseTimeTravelResponse {
|
|
|
1450
1460
|
}
|
|
1451
1461
|
|
|
1452
1462
|
export const RestoreDatabaseTimeTravelResponse =
|
|
1453
|
-
/*@__PURE__*/
|
|
1463
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1454
1464
|
Schema.Struct({
|
|
1455
1465
|
bookmark: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1456
1466
|
message: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1480,7 +1490,7 @@ export const restoreDatabaseTimeTravel: API.OperationMethod<
|
|
|
1480
1490
|
RestoreDatabaseTimeTravelResponse,
|
|
1481
1491
|
RestoreDatabaseTimeTravelError,
|
|
1482
1492
|
Credentials | HttpClient.HttpClient
|
|
1483
|
-
> = /*@__PURE__*/
|
|
1493
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1484
1494
|
input: RestoreDatabaseTimeTravelRequest,
|
|
1485
1495
|
output: RestoreDatabaseTimeTravelResponse,
|
|
1486
1496
|
errors: [
|