@distilled.cloud/cloudflare 0.0.0 → 0.2.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/lib/auth.d.ts +13 -0
- package/lib/auth.d.ts.map +1 -0
- package/lib/auth.js +12 -0
- package/lib/auth.js.map +1 -0
- package/lib/category.d.ts +2 -0
- package/lib/category.d.ts.map +1 -0
- package/lib/category.js +2 -0
- package/lib/category.js.map +1 -0
- package/lib/client/api.d.ts +14 -0
- package/lib/client/api.d.ts.map +1 -0
- package/lib/client/api.js +197 -0
- package/lib/client/api.js.map +1 -0
- package/lib/client/index.d.ts +8 -0
- package/lib/client/index.d.ts.map +1 -0
- package/lib/client/index.js +8 -0
- package/lib/client/index.js.map +1 -0
- package/lib/credentials.d.ts +14 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +17 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +48 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +38 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +10 -0
- package/lib/index.js.map +1 -0
- package/lib/retry.d.ts +14 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +14 -0
- package/lib/retry.js.map +1 -0
- package/lib/schemas.d.ts +29 -0
- package/lib/schemas.d.ts.map +1 -0
- package/lib/schemas.js +34 -0
- package/lib/schemas.js.map +1 -0
- package/lib/services/abuse-reports.d.ts +224 -0
- package/lib/services/abuse-reports.d.ts.map +1 -0
- package/lib/services/abuse-reports.js +353 -0
- package/lib/services/abuse-reports.js.map +1 -0
- package/lib/services/accounts.d.ts +682 -0
- package/lib/services/accounts.d.ts.map +1 -0
- package/lib/services/accounts.js +805 -0
- package/lib/services/accounts.js.map +1 -0
- package/lib/services/acm.d.ts +73 -0
- package/lib/services/acm.d.ts.map +1 -0
- package/lib/services/acm.js +76 -0
- package/lib/services/acm.js.map +1 -0
- package/lib/services/addressing.d.ts +1208 -0
- package/lib/services/addressing.d.ts.map +1 -0
- package/lib/services/addressing.js +1776 -0
- package/lib/services/addressing.js.map +1 -0
- package/lib/services/ai-gateway.d.ts +956 -0
- package/lib/services/ai-gateway.d.ts.map +1 -0
- package/lib/services/ai-gateway.js +1706 -0
- package/lib/services/ai-gateway.js.map +1 -0
- package/lib/services/ai.d.ts +243 -0
- package/lib/services/ai.d.ts.map +1 -0
- package/lib/services/ai.js +299 -0
- package/lib/services/ai.js.map +1 -0
- package/lib/services/aisearch.d.ts +915 -0
- package/lib/services/aisearch.d.ts.map +1 -0
- package/lib/services/aisearch.js +2425 -0
- package/lib/services/aisearch.js.map +1 -0
- package/lib/services/alerting.d.ts +718 -0
- package/lib/services/alerting.d.ts.map +1 -0
- package/lib/services/alerting.js +1388 -0
- package/lib/services/alerting.js.map +1 -0
- package/lib/services/api-gateway.d.ts +830 -0
- package/lib/services/api-gateway.d.ts.map +1 -0
- package/lib/services/api-gateway.js +1548 -0
- package/lib/services/api-gateway.js.map +1 -0
- package/lib/services/argo.d.ts +101 -0
- package/lib/services/argo.d.ts.map +1 -0
- package/lib/services/argo.js +105 -0
- package/lib/services/argo.js.map +1 -0
- package/lib/services/audit-logs.d.ts +46 -0
- package/lib/services/audit-logs.d.ts.map +1 -0
- package/lib/services/audit-logs.js +37 -0
- package/lib/services/audit-logs.js.map +1 -0
- package/lib/services/billing.d.ts +62 -0
- package/lib/services/billing.d.ts.map +1 -0
- package/lib/services/billing.js +100 -0
- package/lib/services/billing.js.map +1 -0
- package/lib/services/bot-management.d.ts +124 -0
- package/lib/services/bot-management.d.ts.map +1 -0
- package/lib/services/bot-management.js +262 -0
- package/lib/services/bot-management.js.map +1 -0
- package/lib/services/botnet-feed.d.ts +65 -0
- package/lib/services/botnet-feed.d.ts.map +1 -0
- package/lib/services/botnet-feed.js +84 -0
- package/lib/services/botnet-feed.js.map +1 -0
- package/lib/services/brand-protection.d.ts +188 -0
- package/lib/services/brand-protection.d.ts.map +1 -0
- package/lib/services/brand-protection.js +214 -0
- package/lib/services/brand-protection.js.map +1 -0
- package/lib/services/browser-rendering.d.ts +857 -0
- package/lib/services/browser-rendering.d.ts.map +1 -0
- package/lib/services/browser-rendering.js +1141 -0
- package/lib/services/browser-rendering.js.map +1 -0
- package/lib/services/cache.d.ts +287 -0
- package/lib/services/cache.d.ts.map +1 -0
- package/lib/services/cache.js +330 -0
- package/lib/services/cache.js.map +1 -0
- package/lib/services/calls.d.ts +202 -0
- package/lib/services/calls.d.ts.map +1 -0
- package/lib/services/calls.js +175 -0
- package/lib/services/calls.js.map +1 -0
- package/lib/services/certificate-authorities.d.ts +40 -0
- package/lib/services/certificate-authorities.d.ts.map +1 -0
- package/lib/services/certificate-authorities.js +49 -0
- package/lib/services/certificate-authorities.js.map +1 -0
- package/lib/services/client-certificates.d.ts +254 -0
- package/lib/services/client-certificates.d.ts.map +1 -0
- package/lib/services/client-certificates.js +350 -0
- package/lib/services/client-certificates.js.map +1 -0
- package/lib/services/cloud-connector.d.ts +59 -0
- package/lib/services/cloud-connector.d.ts.map +1 -0
- package/lib/services/cloud-connector.js +84 -0
- package/lib/services/cloud-connector.js.map +1 -0
- package/lib/services/cloudforce-one.d.ts +1318 -0
- package/lib/services/cloudforce-one.d.ts.map +1 -0
- package/lib/services/cloudforce-one.js +1684 -0
- package/lib/services/cloudforce-one.js.map +1 -0
- package/lib/services/connectivity.d.ts +248 -0
- package/lib/services/connectivity.d.ts.map +1 -0
- package/lib/services/connectivity.js +377 -0
- package/lib/services/connectivity.js.map +1 -0
- package/lib/services/content-scanning.d.ts +131 -0
- package/lib/services/content-scanning.d.ts.map +1 -0
- package/lib/services/content-scanning.js +156 -0
- package/lib/services/content-scanning.js.map +1 -0
- package/lib/services/custom-certificates.d.ts +211 -0
- package/lib/services/custom-certificates.d.ts.map +1 -0
- package/lib/services/custom-certificates.js +309 -0
- package/lib/services/custom-certificates.js.map +1 -0
- package/lib/services/custom-hostnames.d.ts +525 -0
- package/lib/services/custom-hostnames.d.ts.map +1 -0
- package/lib/services/custom-hostnames.js +1164 -0
- package/lib/services/custom-hostnames.js.map +1 -0
- package/lib/services/custom-nameservers.d.ts +67 -0
- package/lib/services/custom-nameservers.d.ts.map +1 -0
- package/lib/services/custom-nameservers.js +80 -0
- package/lib/services/custom-nameservers.js.map +1 -0
- package/lib/services/custom-pages.d.ts +74 -0
- package/lib/services/custom-pages.d.ts.map +1 -0
- package/lib/services/custom-pages.js +125 -0
- package/lib/services/custom-pages.js.map +1 -0
- package/lib/services/d1.d.ts +326 -0
- package/lib/services/d1.d.ts.map +1 -0
- package/lib/services/d1.js +448 -0
- package/lib/services/d1.js.map +1 -0
- package/lib/services/dcv-delegation.d.ts +24 -0
- package/lib/services/dcv-delegation.d.ts.map +1 -0
- package/lib/services/dcv-delegation.js +24 -0
- package/lib/services/dcv-delegation.js.map +1 -0
- package/lib/services/diagnostics.d.ts +175 -0
- package/lib/services/diagnostics.d.ts.map +1 -0
- package/lib/services/diagnostics.js +273 -0
- package/lib/services/diagnostics.js.map +1 -0
- package/lib/services/dns-firewall.d.ts +288 -0
- package/lib/services/dns-firewall.d.ts.map +1 -0
- package/lib/services/dns-firewall.js +373 -0
- package/lib/services/dns-firewall.js.map +1 -0
- package/lib/services/dns.d.ts +2946 -0
- package/lib/services/dns.d.ts.map +1 -0
- package/lib/services/dns.js +4511 -0
- package/lib/services/dns.js.map +1 -0
- package/lib/services/durable-objects.d.ts +61 -0
- package/lib/services/durable-objects.d.ts.map +1 -0
- package/lib/services/durable-objects.js +66 -0
- package/lib/services/durable-objects.js.map +1 -0
- package/lib/services/email-routing.d.ts +542 -0
- package/lib/services/email-routing.d.ts.map +1 -0
- package/lib/services/email-routing.js +662 -0
- package/lib/services/email-routing.js.map +1 -0
- package/lib/services/email-security.d.ts +1131 -0
- package/lib/services/email-security.d.ts.map +1 -0
- package/lib/services/email-security.js +2065 -0
- package/lib/services/email-security.js.map +1 -0
- package/lib/services/filters.d.ts +157 -0
- package/lib/services/filters.d.ts.map +1 -0
- package/lib/services/filters.js +135 -0
- package/lib/services/filters.js.map +1 -0
- package/lib/services/firewall.d.ts +1080 -0
- package/lib/services/firewall.d.ts.map +1 -0
- package/lib/services/firewall.js +1881 -0
- package/lib/services/firewall.js.map +1 -0
- package/lib/services/healthchecks.d.ts +464 -0
- package/lib/services/healthchecks.d.ts.map +1 -0
- package/lib/services/healthchecks.js +838 -0
- package/lib/services/healthchecks.js.map +1 -0
- package/lib/services/hostnames.d.ts +74 -0
- package/lib/services/hostnames.d.ts.map +1 -0
- package/lib/services/hostnames.js +100 -0
- package/lib/services/hostnames.js.map +1 -0
- package/lib/services/hyperdrive.d.ts +203 -0
- package/lib/services/hyperdrive.d.ts.map +1 -0
- package/lib/services/hyperdrive.js +299 -0
- package/lib/services/hyperdrive.js.map +1 -0
- package/lib/services/iam.d.ts +554 -0
- package/lib/services/iam.d.ts.map +1 -0
- package/lib/services/iam.js +743 -0
- package/lib/services/iam.js.map +1 -0
- package/lib/services/images.d.ts +403 -0
- package/lib/services/images.d.ts.map +1 -0
- package/lib/services/images.js +417 -0
- package/lib/services/images.js.map +1 -0
- package/lib/services/intel.d.ts +768 -0
- package/lib/services/intel.d.ts.map +1 -0
- package/lib/services/intel.js +1179 -0
- package/lib/services/intel.js.map +1 -0
- package/lib/services/ips.d.ts +28 -0
- package/lib/services/ips.d.ts.map +1 -0
- package/lib/services/ips.js +39 -0
- package/lib/services/ips.js.map +1 -0
- package/lib/services/keyless-certificates.d.ts +177 -0
- package/lib/services/keyless-certificates.d.ts.map +1 -0
- package/lib/services/keyless-certificates.js +216 -0
- package/lib/services/keyless-certificates.js.map +1 -0
- package/lib/services/kv.d.ts +339 -0
- package/lib/services/kv.d.ts.map +1 -0
- package/lib/services/kv.js +402 -0
- package/lib/services/kv.js.map +1 -0
- package/lib/services/leaked-credential-checks.d.ts +119 -0
- package/lib/services/leaked-credential-checks.d.ts.map +1 -0
- package/lib/services/leaked-credential-checks.js +130 -0
- package/lib/services/leaked-credential-checks.js.map +1 -0
- package/lib/services/load-balancers.d.ts +1767 -0
- package/lib/services/load-balancers.d.ts.map +1 -0
- package/lib/services/load-balancers.js +3068 -0
- package/lib/services/load-balancers.js.map +1 -0
- package/lib/services/logpush.d.ts +401 -0
- package/lib/services/logpush.d.ts.map +1 -0
- package/lib/services/logpush.js +724 -0
- package/lib/services/logpush.js.map +1 -0
- package/lib/services/logs.d.ts +125 -0
- package/lib/services/logs.d.ts.map +1 -0
- package/lib/services/logs.js +145 -0
- package/lib/services/logs.js.map +1 -0
- package/lib/services/magic-cloud-networking.d.ts +1599 -0
- package/lib/services/magic-cloud-networking.d.ts.map +1 -0
- package/lib/services/magic-cloud-networking.js +5205 -0
- package/lib/services/magic-cloud-networking.js.map +1 -0
- package/lib/services/magic-network-monitoring.d.ts +379 -0
- package/lib/services/magic-network-monitoring.d.ts.map +1 -0
- package/lib/services/magic-network-monitoring.js +535 -0
- package/lib/services/magic-network-monitoring.js.map +1 -0
- package/lib/services/magic-transit.d.ts +3650 -0
- package/lib/services/magic-transit.d.ts.map +1 -0
- package/lib/services/magic-transit.js +6120 -0
- package/lib/services/magic-transit.js.map +1 -0
- package/lib/services/managed-transforms.d.ts +79 -0
- package/lib/services/managed-transforms.d.ts.map +1 -0
- package/lib/services/managed-transforms.js +107 -0
- package/lib/services/managed-transforms.js.map +1 -0
- package/lib/services/memberships.d.ts +172 -0
- package/lib/services/memberships.d.ts.map +1 -0
- package/lib/services/memberships.js +282 -0
- package/lib/services/memberships.js.map +1 -0
- package/lib/services/mtls-certificates.d.ts +140 -0
- package/lib/services/mtls-certificates.d.ts.map +1 -0
- package/lib/services/mtls-certificates.js +173 -0
- package/lib/services/mtls-certificates.js.map +1 -0
- package/lib/services/network-interconnects.d.ts +410 -0
- package/lib/services/network-interconnects.d.ts.map +1 -0
- package/lib/services/network-interconnects.js +583 -0
- package/lib/services/network-interconnects.js.map +1 -0
- package/lib/services/organizations.d.ts +201 -0
- package/lib/services/organizations.d.ts.map +1 -0
- package/lib/services/organizations.js +355 -0
- package/lib/services/organizations.js.map +1 -0
- package/lib/services/origin-ca-certificates.d.ts +99 -0
- package/lib/services/origin-ca-certificates.d.ts.map +1 -0
- package/lib/services/origin-ca-certificates.js +156 -0
- package/lib/services/origin-ca-certificates.js.map +1 -0
- package/lib/services/origin-post-quantum-encryption.d.ts +50 -0
- package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -0
- package/lib/services/origin-post-quantum-encryption.js +60 -0
- package/lib/services/origin-post-quantum-encryption.js.map +1 -0
- package/lib/services/origin-tls-client-auth.d.ts +273 -0
- package/lib/services/origin-tls-client-auth.d.ts.map +1 -0
- package/lib/services/origin-tls-client-auth.js +401 -0
- package/lib/services/origin-tls-client-auth.js.map +1 -0
- package/lib/services/page-rules.d.ts +773 -0
- package/lib/services/page-rules.d.ts.map +1 -0
- package/lib/services/page-rules.js +1365 -0
- package/lib/services/page-rules.js.map +1 -0
- package/lib/services/page-shield.d.ts +426 -0
- package/lib/services/page-shield.d.ts.map +1 -0
- package/lib/services/page-shield.js +484 -0
- package/lib/services/page-shield.js.map +1 -0
- package/lib/services/pages.d.ts +1654 -0
- package/lib/services/pages.d.ts.map +1 -0
- package/lib/services/pages.js +2954 -0
- package/lib/services/pages.js.map +1 -0
- package/lib/services/pipelines.d.ts +1461 -0
- package/lib/services/pipelines.d.ts.map +1 -0
- package/lib/services/pipelines.js +2912 -0
- package/lib/services/pipelines.js.map +1 -0
- package/lib/services/queues.d.ts +807 -0
- package/lib/services/queues.d.ts.map +1 -0
- package/lib/services/queues.js +1194 -0
- package/lib/services/queues.js.map +1 -0
- package/lib/services/r2-data-catalog.d.ts +341 -0
- package/lib/services/r2-data-catalog.d.ts.map +1 -0
- package/lib/services/r2-data-catalog.js +499 -0
- package/lib/services/r2-data-catalog.js.map +1 -0
- package/lib/services/r2.d.ts +1041 -0
- package/lib/services/r2.d.ts.map +1 -0
- package/lib/services/r2.js +1384 -0
- package/lib/services/r2.js.map +1 -0
- package/lib/services/radar.d.ts +9276 -0
- package/lib/services/radar.d.ts.map +1 -0
- package/lib/services/radar.js +20491 -0
- package/lib/services/radar.js.map +1 -0
- package/lib/services/rate-limits.d.ts +315 -0
- package/lib/services/rate-limits.d.ts.map +1 -0
- package/lib/services/rate-limits.js +521 -0
- package/lib/services/rate-limits.js.map +1 -0
- package/lib/services/realtime-kit.d.ts +2728 -0
- package/lib/services/realtime-kit.d.ts.map +1 -0
- package/lib/services/realtime-kit.js +5401 -0
- package/lib/services/realtime-kit.js.map +1 -0
- package/lib/services/registrar.d.ts +81 -0
- package/lib/services/registrar.d.ts.map +1 -0
- package/lib/services/registrar.js +154 -0
- package/lib/services/registrar.js.map +1 -0
- package/lib/services/request-tracers.d.ts +61 -0
- package/lib/services/request-tracers.d.ts.map +1 -0
- package/lib/services/request-tracers.js +82 -0
- package/lib/services/request-tracers.js.map +1 -0
- package/lib/services/resource-sharing.d.ts +540 -0
- package/lib/services/resource-sharing.d.ts.map +1 -0
- package/lib/services/resource-sharing.js +846 -0
- package/lib/services/resource-sharing.js.map +1 -0
- package/lib/services/rules.d.ts +297 -0
- package/lib/services/rules.d.ts.map +1 -0
- package/lib/services/rules.js +396 -0
- package/lib/services/rules.js.map +1 -0
- package/lib/services/rulesets.d.ts +3300 -0
- package/lib/services/rulesets.d.ts.map +1 -0
- package/lib/services/rulesets.js +7852 -0
- package/lib/services/rulesets.js.map +1 -0
- package/lib/services/rum.d.ts +289 -0
- package/lib/services/rum.d.ts.map +1 -0
- package/lib/services/rum.js +409 -0
- package/lib/services/rum.js.map +1 -0
- package/lib/services/schema-validation.d.ts +240 -0
- package/lib/services/schema-validation.d.ts.map +1 -0
- package/lib/services/schema-validation.js +306 -0
- package/lib/services/schema-validation.js.map +1 -0
- package/lib/services/secrets-store.d.ts +321 -0
- package/lib/services/secrets-store.d.ts.map +1 -0
- package/lib/services/secrets-store.js +385 -0
- package/lib/services/secrets-store.js.map +1 -0
- package/lib/services/security-center.d.ts +102 -0
- package/lib/services/security-center.d.ts.map +1 -0
- package/lib/services/security-center.js +170 -0
- package/lib/services/security-center.js.map +1 -0
- package/lib/services/security-txt.d.ts +105 -0
- package/lib/services/security-txt.d.ts.map +1 -0
- package/lib/services/security-txt.js +136 -0
- package/lib/services/security-txt.js.map +1 -0
- package/lib/services/snippets.d.ts +138 -0
- package/lib/services/snippets.d.ts.map +1 -0
- package/lib/services/snippets.js +178 -0
- package/lib/services/snippets.js.map +1 -0
- package/lib/services/spectrum.d.ts +316 -0
- package/lib/services/spectrum.d.ts.map +1 -0
- package/lib/services/spectrum.js +510 -0
- package/lib/services/spectrum.js.map +1 -0
- package/lib/services/speed.d.ts +227 -0
- package/lib/services/speed.d.ts.map +1 -0
- package/lib/services/speed.js +444 -0
- package/lib/services/speed.js.map +1 -0
- package/lib/services/ssl.d.ts +370 -0
- package/lib/services/ssl.d.ts.map +1 -0
- package/lib/services/ssl.js +732 -0
- package/lib/services/ssl.js.map +1 -0
- package/lib/services/stream.d.ts +1014 -0
- package/lib/services/stream.d.ts.map +1 -0
- package/lib/services/stream.js +1049 -0
- package/lib/services/stream.js.map +1 -0
- package/lib/services/token-validation.d.ts +547 -0
- package/lib/services/token-validation.d.ts.map +1 -0
- package/lib/services/token-validation.js +768 -0
- package/lib/services/token-validation.js.map +1 -0
- package/lib/services/turnstile.d.ts +248 -0
- package/lib/services/turnstile.d.ts.map +1 -0
- package/lib/services/turnstile.js +308 -0
- package/lib/services/turnstile.js.map +1 -0
- package/lib/services/url-normalization.d.ts +53 -0
- package/lib/services/url-normalization.d.ts.map +1 -0
- package/lib/services/url-normalization.js +52 -0
- package/lib/services/url-normalization.js.map +1 -0
- package/lib/services/url-scanner.d.ts +612 -0
- package/lib/services/url-scanner.d.ts.map +1 -0
- package/lib/services/url-scanner.js +915 -0
- package/lib/services/url-scanner.js.map +1 -0
- package/lib/services/user.d.ts +441 -0
- package/lib/services/user.d.ts.map +1 -0
- package/lib/services/user.js +567 -0
- package/lib/services/user.js.map +1 -0
- package/lib/services/vectorize.d.ts +282 -0
- package/lib/services/vectorize.d.ts.map +1 -0
- package/lib/services/vectorize.js +340 -0
- package/lib/services/vectorize.js.map +1 -0
- package/lib/services/waiting-rooms.d.ts +1009 -0
- package/lib/services/waiting-rooms.d.ts.map +1 -0
- package/lib/services/waiting-rooms.js +1757 -0
- package/lib/services/waiting-rooms.js.map +1 -0
- package/lib/services/web3.d.ts +274 -0
- package/lib/services/web3.d.ts.map +1 -0
- package/lib/services/web3.js +362 -0
- package/lib/services/web3.js.map +1 -0
- package/lib/services/workers-for-platforms.d.ts +1224 -0
- package/lib/services/workers-for-platforms.d.ts.map +1 -0
- package/lib/services/workers-for-platforms.js +2078 -0
- package/lib/services/workers-for-platforms.js.map +1 -0
- package/lib/services/workers.d.ts +3498 -0
- package/lib/services/workers.d.ts.map +1 -0
- package/lib/services/workers.js +5967 -0
- package/lib/services/workers.js.map +1 -0
- package/lib/services/workflows.d.ts +359 -0
- package/lib/services/workflows.d.ts.map +1 -0
- package/lib/services/workflows.js +516 -0
- package/lib/services/workflows.js.map +1 -0
- package/lib/services/zaraz.d.ts +300 -0
- package/lib/services/zaraz.d.ts.map +1 -0
- package/lib/services/zaraz.js +298 -0
- package/lib/services/zaraz.js.map +1 -0
- package/lib/services/zero-trust.d.ts +15449 -0
- package/lib/services/zero-trust.d.ts.map +1 -0
- package/lib/services/zero-trust.js +29194 -0
- package/lib/services/zero-trust.js.map +1 -0
- package/lib/services/zones.d.ts +1278 -0
- package/lib/services/zones.d.ts.map +1 -0
- package/lib/services/zones.js +2416 -0
- package/lib/services/zones.js.map +1 -0
- package/lib/traits.d.ts +28 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +26 -0
- package/lib/traits.js.map +1 -0
- package/package.json +67 -5
- package/src/auth.ts +14 -0
- package/src/category.ts +1 -0
- package/src/client/api.ts +269 -0
- package/src/client/index.ts +7 -0
- package/src/credentials.ts +30 -0
- package/src/errors.ts +65 -0
- package/src/index.ts +9 -0
- package/src/retry.ts +35 -0
- package/src/schemas.ts +51 -0
- package/src/services/abuse-reports.ts +747 -0
- package/src/services/accounts.ts +1947 -0
- package/src/services/acm.ts +170 -0
- package/src/services/addressing.ts +3947 -0
- package/src/services/ai-gateway.ts +3335 -0
- package/src/services/ai.ts +727 -0
- package/src/services/aisearch.ts +4750 -0
- package/src/services/alerting.ts +2947 -0
- package/src/services/api-gateway.ts +3391 -0
- package/src/services/argo.ts +254 -0
- package/src/services/audit-logs.ts +90 -0
- package/src/services/billing.ts +172 -0
- package/src/services/bot-management.ts +541 -0
- package/src/services/botnet-feed.ts +193 -0
- package/src/services/brand-protection.ts +553 -0
- package/src/services/browser-rendering.ts +2707 -0
- package/src/services/cache.ts +827 -0
- package/src/services/calls.ts +483 -0
- package/src/services/certificate-authorities.ts +110 -0
- package/src/services/client-certificates.ts +718 -0
- package/src/services/cloud-connector.ts +181 -0
- package/src/services/cloudforce-one.ts +3876 -0
- package/src/services/connectivity.ts +629 -0
- package/src/services/content-scanning.ts +385 -0
- package/src/services/custom-certificates.ts +611 -0
- package/src/services/custom-hostnames.ts +2453 -0
- package/src/services/custom-nameservers.ts +182 -0
- package/src/services/custom-pages.ts +264 -0
- package/src/services/d1.ts +1034 -0
- package/src/services/dcv-delegation.ts +52 -0
- package/src/services/diagnostics.ts +603 -0
- package/src/services/dns-firewall.ts +823 -0
- package/src/services/dns.ts +8897 -0
- package/src/services/durable-objects.ts +148 -0
- package/src/services/email-routing.ts +1602 -0
- package/src/services/email-security.ts +4283 -0
- package/src/services/filters.ts +370 -0
- package/src/services/firewall.ts +3896 -0
- package/src/services/healthchecks.ts +1750 -0
- package/src/services/hostnames.ts +218 -0
- package/src/services/hyperdrive.ts +592 -0
- package/src/services/iam.ts +1668 -0
- package/src/services/images.ts +1086 -0
- package/src/services/intel.ts +2768 -0
- package/src/services/ips.ts +88 -0
- package/src/services/keyless-certificates.ts +462 -0
- package/src/services/kv.ts +1011 -0
- package/src/services/leaked-credential-checks.ts +325 -0
- package/src/services/load-balancers.ts +6438 -0
- package/src/services/logpush.ts +1667 -0
- package/src/services/logs.ts +375 -0
- package/src/services/magic-cloud-networking.ts +10020 -0
- package/src/services/magic-network-monitoring.ts +1156 -0
- package/src/services/magic-transit.ts +13050 -0
- package/src/services/managed-transforms.ts +237 -0
- package/src/services/memberships.ts +615 -0
- package/src/services/mtls-certificates.ts +374 -0
- package/src/services/network-interconnects.ts +1253 -0
- package/src/services/organizations.ts +674 -0
- package/src/services/origin-ca-certificates.ts +303 -0
- package/src/services/origin-post-quantum-encryption.ts +128 -0
- package/src/services/origin-tls-client-auth.ts +878 -0
- package/src/services/page-rules.ts +2612 -0
- package/src/services/page-shield.ts +1195 -0
- package/src/services/pages.ts +5709 -0
- package/src/services/pipelines.ts +6000 -0
- package/src/services/queues.ts +2629 -0
- package/src/services/r2-data-catalog.ts +1119 -0
- package/src/services/r2.ts +3348 -0
- package/src/services/radar.ts +42152 -0
- package/src/services/rate-limits.ts +1150 -0
- package/src/services/realtime-kit.ts +11079 -0
- package/src/services/registrar.ts +295 -0
- package/src/services/request-tracers.ts +158 -0
- package/src/services/resource-sharing.ts +1832 -0
- package/src/services/rules.ts +837 -0
- package/src/services/rulesets.ts +15144 -0
- package/src/services/rum.ts +901 -0
- package/src/services/schema-validation.ts +733 -0
- package/src/services/secrets-store.ts +860 -0
- package/src/services/security-center.ts +397 -0
- package/src/services/security-txt.ts +315 -0
- package/src/services/snippets.ts +420 -0
- package/src/services/spectrum.ts +1103 -0
- package/src/services/speed.ts +1056 -0
- package/src/services/ssl.ts +1587 -0
- package/src/services/stream.ts +2756 -0
- package/src/services/token-validation.ts +1585 -0
- package/src/services/turnstile.ts +643 -0
- package/src/services/url-normalization.ts +129 -0
- package/src/services/url-scanner.ts +1851 -0
- package/src/services/user.ts +1384 -0
- package/src/services/vectorize.ts +816 -0
- package/src/services/waiting-rooms.ts +3807 -0
- package/src/services/web3.ts +834 -0
- package/src/services/workers-for-platforms.ts +3859 -0
- package/src/services/workers.ts +11637 -0
- package/src/services/workflows.ts +1124 -0
- package/src/services/zaraz.ts +797 -0
- package/src/services/zero-trust.ts +58933 -0
- package/src/services/zones.ts +4875 -0
- package/src/traits.ts +47 -0
- package/README.md +0 -15
- package/bun.lock +0 -26
- package/index.ts +0 -1
- package/tsconfig.json +0 -29
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cloudflare VECTORIZE API
|
|
3
|
+
*
|
|
4
|
+
* Generated from Cloudflare TypeScript SDK.
|
|
5
|
+
* DO NOT EDIT - regenerate with: bun scripts/generate.ts --service vectorize
|
|
6
|
+
*/
|
|
7
|
+
import * as Schema from "effect/Schema";
|
|
8
|
+
import type * as HttpClient from "effect/unstable/http/HttpClient";
|
|
9
|
+
import * as API from "../client/api.ts";
|
|
10
|
+
import type { Credentials } from "../credentials";
|
|
11
|
+
import { type DefaultErrors } from "../errors";
|
|
12
|
+
export interface GetByIdsIndexRequest {
|
|
13
|
+
indexName: string;
|
|
14
|
+
/** Path param: Identifier */
|
|
15
|
+
accountId: string;
|
|
16
|
+
/** Body param: A list of vector identifiers to retrieve from the index indicated by the path. */
|
|
17
|
+
ids?: string[];
|
|
18
|
+
}
|
|
19
|
+
export declare const GetByIdsIndexRequest: Schema.Schema<GetByIdsIndexRequest>;
|
|
20
|
+
export type GetByIdsIndexResponse = unknown;
|
|
21
|
+
export declare const GetByIdsIndexResponse: Schema.Schema<unknown>;
|
|
22
|
+
export type GetByIdsIndexError = DefaultErrors;
|
|
23
|
+
export declare const getByIdsIndex: API.OperationMethod<GetByIdsIndexRequest, GetByIdsIndexResponse, GetByIdsIndexError, Credentials | HttpClient.HttpClient>;
|
|
24
|
+
export interface DeleteByIdsIndexRequest {
|
|
25
|
+
indexName: string;
|
|
26
|
+
/** Path param: Identifier */
|
|
27
|
+
accountId: string;
|
|
28
|
+
/** Body param: A list of vector identifiers to delete from the index indicated by the path. */
|
|
29
|
+
ids?: string[];
|
|
30
|
+
}
|
|
31
|
+
export declare const DeleteByIdsIndexRequest: Schema.Schema<DeleteByIdsIndexRequest>;
|
|
32
|
+
export interface DeleteByIdsIndexResponse {
|
|
33
|
+
/** The unique identifier for the async mutation operation containing the changeset. */
|
|
34
|
+
mutationId?: string | null;
|
|
35
|
+
}
|
|
36
|
+
export declare const DeleteByIdsIndexResponse: Schema.Schema<DeleteByIdsIndexResponse>;
|
|
37
|
+
export type DeleteByIdsIndexError = DefaultErrors;
|
|
38
|
+
export declare const deleteByIdsIndex: API.OperationMethod<DeleteByIdsIndexRequest, DeleteByIdsIndexResponse, DeleteByIdsIndexError, Credentials | HttpClient.HttpClient>;
|
|
39
|
+
export interface GetIndexRequest {
|
|
40
|
+
indexName: string;
|
|
41
|
+
/** Identifier */
|
|
42
|
+
accountId: string;
|
|
43
|
+
}
|
|
44
|
+
export declare const GetIndexRequest: Schema.Schema<GetIndexRequest>;
|
|
45
|
+
export interface GetIndexResponse {
|
|
46
|
+
config?: {
|
|
47
|
+
dimensions: number;
|
|
48
|
+
metric: "cosine" | "euclidean" | "dot-product";
|
|
49
|
+
} | null;
|
|
50
|
+
/** Specifies the timestamp the resource was created as an ISO8601 string. */
|
|
51
|
+
createdOn?: string | null;
|
|
52
|
+
/** Specifies the description of the index. */
|
|
53
|
+
description?: string | null;
|
|
54
|
+
/** Specifies the timestamp the resource was modified as an ISO8601 string. */
|
|
55
|
+
modifiedOn?: string | null;
|
|
56
|
+
name?: string | null;
|
|
57
|
+
}
|
|
58
|
+
export declare const GetIndexResponse: Schema.Schema<GetIndexResponse>;
|
|
59
|
+
export type GetIndexError = DefaultErrors;
|
|
60
|
+
export declare const getIndex: API.OperationMethod<GetIndexRequest, GetIndexResponse, GetIndexError, Credentials | HttpClient.HttpClient>;
|
|
61
|
+
export interface ListIndexesRequest {
|
|
62
|
+
/** Identifier */
|
|
63
|
+
accountId: string;
|
|
64
|
+
}
|
|
65
|
+
export declare const ListIndexesRequest: Schema.Schema<ListIndexesRequest>;
|
|
66
|
+
export type ListIndexesResponse = {
|
|
67
|
+
config?: {
|
|
68
|
+
dimensions: number;
|
|
69
|
+
metric: "cosine" | "euclidean" | "dot-product";
|
|
70
|
+
} | null;
|
|
71
|
+
createdOn?: string | null;
|
|
72
|
+
description?: string | null;
|
|
73
|
+
modifiedOn?: string | null;
|
|
74
|
+
name?: string | null;
|
|
75
|
+
}[];
|
|
76
|
+
export declare const ListIndexesResponse: Schema.Schema<ListIndexesResponse>;
|
|
77
|
+
export type ListIndexesError = DefaultErrors;
|
|
78
|
+
export declare const listIndexes: API.OperationMethod<ListIndexesRequest, ListIndexesResponse, ListIndexesError, Credentials | HttpClient.HttpClient>;
|
|
79
|
+
export interface CreateIndexRequest {
|
|
80
|
+
/** Path param: Identifier */
|
|
81
|
+
accountId: string;
|
|
82
|
+
/** Body param: Specifies the type of configuration to use for the index. */
|
|
83
|
+
config: {
|
|
84
|
+
dimensions: number;
|
|
85
|
+
metric: "cosine" | "euclidean" | "dot-product";
|
|
86
|
+
} | {
|
|
87
|
+
preset: "@cf/baai/bge-small-en-v1.5" | "@cf/baai/bge-base-en-v1.5" | "@cf/baai/bge-large-en-v1.5" | "openai/text-embedding-ada-002" | "cohere/embed-multilingual-v2.0";
|
|
88
|
+
};
|
|
89
|
+
/** Body param: */
|
|
90
|
+
name: string;
|
|
91
|
+
/** Body param: Specifies the description of the index. */
|
|
92
|
+
description?: string;
|
|
93
|
+
}
|
|
94
|
+
export declare const CreateIndexRequest: Schema.Schema<CreateIndexRequest>;
|
|
95
|
+
export interface CreateIndexResponse {
|
|
96
|
+
config?: {
|
|
97
|
+
dimensions: number;
|
|
98
|
+
metric: "cosine" | "euclidean" | "dot-product";
|
|
99
|
+
} | null;
|
|
100
|
+
/** Specifies the timestamp the resource was created as an ISO8601 string. */
|
|
101
|
+
createdOn?: string | null;
|
|
102
|
+
/** Specifies the description of the index. */
|
|
103
|
+
description?: string | null;
|
|
104
|
+
/** Specifies the timestamp the resource was modified as an ISO8601 string. */
|
|
105
|
+
modifiedOn?: string | null;
|
|
106
|
+
name?: string | null;
|
|
107
|
+
}
|
|
108
|
+
export declare const CreateIndexResponse: Schema.Schema<CreateIndexResponse>;
|
|
109
|
+
export type CreateIndexError = DefaultErrors;
|
|
110
|
+
export declare const createIndex: API.OperationMethod<CreateIndexRequest, CreateIndexResponse, CreateIndexError, Credentials | HttpClient.HttpClient>;
|
|
111
|
+
export interface DeleteIndexRequest {
|
|
112
|
+
indexName: string;
|
|
113
|
+
/** Identifier */
|
|
114
|
+
accountId: string;
|
|
115
|
+
}
|
|
116
|
+
export declare const DeleteIndexRequest: Schema.Schema<DeleteIndexRequest>;
|
|
117
|
+
export type DeleteIndexResponse = string;
|
|
118
|
+
export declare const DeleteIndexResponse: Schema.Schema<string>;
|
|
119
|
+
export type DeleteIndexError = DefaultErrors;
|
|
120
|
+
export declare const deleteIndex: API.OperationMethod<DeleteIndexRequest, DeleteIndexResponse, DeleteIndexError, Credentials | HttpClient.HttpClient>;
|
|
121
|
+
export interface InfoIndexRequest {
|
|
122
|
+
indexName: string;
|
|
123
|
+
/** Identifier */
|
|
124
|
+
accountId: string;
|
|
125
|
+
}
|
|
126
|
+
export declare const InfoIndexRequest: Schema.Schema<InfoIndexRequest>;
|
|
127
|
+
export interface InfoIndexResponse {
|
|
128
|
+
/** Specifies the number of dimensions for the index */
|
|
129
|
+
dimensions?: number | null;
|
|
130
|
+
/** Specifies the timestamp the last mutation batch was processed as an ISO8601 string. */
|
|
131
|
+
processedUpToDatetime?: string | null;
|
|
132
|
+
/** The unique identifier for the async mutation operation containing the changeset. */
|
|
133
|
+
processedUpToMutation?: string | null;
|
|
134
|
+
/** Specifies the number of vectors present in the index */
|
|
135
|
+
vectorCount?: number | null;
|
|
136
|
+
}
|
|
137
|
+
export declare const InfoIndexResponse: Schema.Schema<InfoIndexResponse>;
|
|
138
|
+
export type InfoIndexError = DefaultErrors;
|
|
139
|
+
export declare const infoIndex: API.OperationMethod<InfoIndexRequest, InfoIndexResponse, InfoIndexError, Credentials | HttpClient.HttpClient>;
|
|
140
|
+
export interface InsertIndexRequest {
|
|
141
|
+
indexName: string;
|
|
142
|
+
/** Path param: Identifier */
|
|
143
|
+
accountId: string;
|
|
144
|
+
/** Query param: Behavior for ndjson parse failures. */
|
|
145
|
+
unparsableBehavior?: "error" | "discard";
|
|
146
|
+
/** Body param: ndjson file containing vectors to insert. */
|
|
147
|
+
body: File | Blob;
|
|
148
|
+
}
|
|
149
|
+
export declare const InsertIndexRequest: Schema.Schema<InsertIndexRequest>;
|
|
150
|
+
export interface InsertIndexResponse {
|
|
151
|
+
/** The unique identifier for the async mutation operation containing the changeset. */
|
|
152
|
+
mutationId?: string | null;
|
|
153
|
+
}
|
|
154
|
+
export declare const InsertIndexResponse: Schema.Schema<InsertIndexResponse>;
|
|
155
|
+
export type InsertIndexError = DefaultErrors;
|
|
156
|
+
export declare const insertIndex: API.OperationMethod<InsertIndexRequest, InsertIndexResponse, InsertIndexError, Credentials | HttpClient.HttpClient>;
|
|
157
|
+
export interface QueryIndexRequest {
|
|
158
|
+
indexName: string;
|
|
159
|
+
/** Path param: Identifier */
|
|
160
|
+
accountId: string;
|
|
161
|
+
/** Body param: The search vector that will be used to find the nearest neighbors. */
|
|
162
|
+
vector: number[];
|
|
163
|
+
/** Body param: A metadata filter expression used to limit nearest neighbor results. */
|
|
164
|
+
filter?: unknown;
|
|
165
|
+
/** Body param: Whether to return no metadata, indexed metadata or all metadata associated with the closest vectors. */
|
|
166
|
+
returnMetadata?: "none" | "indexed" | "all";
|
|
167
|
+
/** Body param: Whether to return the values associated with the closest vectors. */
|
|
168
|
+
returnValues?: boolean;
|
|
169
|
+
/** Body param: The number of nearest neighbors to find. */
|
|
170
|
+
topK?: number;
|
|
171
|
+
}
|
|
172
|
+
export declare const QueryIndexRequest: Schema.Schema<QueryIndexRequest>;
|
|
173
|
+
export interface QueryIndexResponse {
|
|
174
|
+
/** Specifies the count of vectors returned by the search */
|
|
175
|
+
count?: number | null;
|
|
176
|
+
/** Array of vectors matched by the search */
|
|
177
|
+
matches?: {
|
|
178
|
+
id?: string | null;
|
|
179
|
+
metadata?: null;
|
|
180
|
+
namespace?: string | null;
|
|
181
|
+
score?: number | null;
|
|
182
|
+
values?: number[] | null;
|
|
183
|
+
}[] | null;
|
|
184
|
+
}
|
|
185
|
+
export declare const QueryIndexResponse: Schema.Schema<QueryIndexResponse>;
|
|
186
|
+
export type QueryIndexError = DefaultErrors;
|
|
187
|
+
export declare const queryIndex: API.OperationMethod<QueryIndexRequest, QueryIndexResponse, QueryIndexError, Credentials | HttpClient.HttpClient>;
|
|
188
|
+
export interface UpsertIndexRequest {
|
|
189
|
+
indexName: string;
|
|
190
|
+
/** Path param: Identifier */
|
|
191
|
+
accountId: string;
|
|
192
|
+
/** Query param: Behavior for ndjson parse failures. */
|
|
193
|
+
unparsableBehavior?: "error" | "discard";
|
|
194
|
+
/** Body param: ndjson file containing vectors to upsert. */
|
|
195
|
+
body: File | Blob;
|
|
196
|
+
}
|
|
197
|
+
export declare const UpsertIndexRequest: Schema.Schema<UpsertIndexRequest>;
|
|
198
|
+
export interface UpsertIndexResponse {
|
|
199
|
+
/** The unique identifier for the async mutation operation containing the changeset. */
|
|
200
|
+
mutationId?: string | null;
|
|
201
|
+
}
|
|
202
|
+
export declare const UpsertIndexResponse: Schema.Schema<UpsertIndexResponse>;
|
|
203
|
+
export type UpsertIndexError = DefaultErrors;
|
|
204
|
+
export declare const upsertIndex: API.OperationMethod<UpsertIndexRequest, UpsertIndexResponse, UpsertIndexError, Credentials | HttpClient.HttpClient>;
|
|
205
|
+
export interface ListIndexMetadataIndexesRequest {
|
|
206
|
+
indexName: string;
|
|
207
|
+
/** Identifier */
|
|
208
|
+
accountId: string;
|
|
209
|
+
}
|
|
210
|
+
export declare const ListIndexMetadataIndexesRequest: Schema.Schema<ListIndexMetadataIndexesRequest>;
|
|
211
|
+
export interface ListIndexMetadataIndexesResponse {
|
|
212
|
+
/** Array of indexed metadata properties. */
|
|
213
|
+
metadataIndexes?: {
|
|
214
|
+
indexType?: "string" | "number" | "boolean" | null;
|
|
215
|
+
propertyName?: string | null;
|
|
216
|
+
}[] | null;
|
|
217
|
+
}
|
|
218
|
+
export declare const ListIndexMetadataIndexesResponse: Schema.Schema<ListIndexMetadataIndexesResponse>;
|
|
219
|
+
export type ListIndexMetadataIndexesError = DefaultErrors;
|
|
220
|
+
export declare const listIndexMetadataIndexes: API.OperationMethod<ListIndexMetadataIndexesRequest, ListIndexMetadataIndexesResponse, ListIndexMetadataIndexesError, Credentials | HttpClient.HttpClient>;
|
|
221
|
+
export interface CreateIndexMetadataIndexRequest {
|
|
222
|
+
indexName: string;
|
|
223
|
+
/** Path param: Identifier */
|
|
224
|
+
accountId: string;
|
|
225
|
+
/** Body param: Specifies the type of metadata property to index. */
|
|
226
|
+
indexType: "string" | "number" | "boolean";
|
|
227
|
+
/** Body param: Specifies the metadata property to index. */
|
|
228
|
+
propertyName: string;
|
|
229
|
+
}
|
|
230
|
+
export declare const CreateIndexMetadataIndexRequest: Schema.Schema<CreateIndexMetadataIndexRequest>;
|
|
231
|
+
export interface CreateIndexMetadataIndexResponse {
|
|
232
|
+
/** The unique identifier for the async mutation operation containing the changeset. */
|
|
233
|
+
mutationId?: string | null;
|
|
234
|
+
}
|
|
235
|
+
export declare const CreateIndexMetadataIndexResponse: Schema.Schema<CreateIndexMetadataIndexResponse>;
|
|
236
|
+
export type CreateIndexMetadataIndexError = DefaultErrors;
|
|
237
|
+
export declare const createIndexMetadataIndex: API.OperationMethod<CreateIndexMetadataIndexRequest, CreateIndexMetadataIndexResponse, CreateIndexMetadataIndexError, Credentials | HttpClient.HttpClient>;
|
|
238
|
+
export interface DeleteIndexMetadataIndexRequest {
|
|
239
|
+
indexName: string;
|
|
240
|
+
/** Path param: Identifier */
|
|
241
|
+
accountId: string;
|
|
242
|
+
/** Body param: Specifies the metadata property for which the index must be deleted. */
|
|
243
|
+
propertyName: string;
|
|
244
|
+
}
|
|
245
|
+
export declare const DeleteIndexMetadataIndexRequest: Schema.Schema<DeleteIndexMetadataIndexRequest>;
|
|
246
|
+
export interface DeleteIndexMetadataIndexResponse {
|
|
247
|
+
/** The unique identifier for the async mutation operation containing the changeset. */
|
|
248
|
+
mutationId?: string | null;
|
|
249
|
+
}
|
|
250
|
+
export declare const DeleteIndexMetadataIndexResponse: Schema.Schema<DeleteIndexMetadataIndexResponse>;
|
|
251
|
+
export type DeleteIndexMetadataIndexError = DefaultErrors;
|
|
252
|
+
export declare const deleteIndexMetadataIndex: API.OperationMethod<DeleteIndexMetadataIndexRequest, DeleteIndexMetadataIndexResponse, DeleteIndexMetadataIndexError, Credentials | HttpClient.HttpClient>;
|
|
253
|
+
export interface ListVectorsIndexRequest {
|
|
254
|
+
indexName: string;
|
|
255
|
+
/** Path param: Identifier */
|
|
256
|
+
accountId: string;
|
|
257
|
+
/** Query param: Maximum number of vectors to return */
|
|
258
|
+
count?: number;
|
|
259
|
+
/** Query param: Cursor for pagination to get the next page of results */
|
|
260
|
+
cursor?: string;
|
|
261
|
+
}
|
|
262
|
+
export declare const ListVectorsIndexRequest: Schema.Schema<ListVectorsIndexRequest>;
|
|
263
|
+
export interface ListVectorsIndexResponse {
|
|
264
|
+
/** Number of vectors returned in this response */
|
|
265
|
+
count: number;
|
|
266
|
+
/** Whether there are more vectors available beyond this response */
|
|
267
|
+
isTruncated: boolean;
|
|
268
|
+
/** Total number of vectors in the index */
|
|
269
|
+
totalCount: number;
|
|
270
|
+
/** Array of vector items */
|
|
271
|
+
vectors: {
|
|
272
|
+
id: string;
|
|
273
|
+
}[];
|
|
274
|
+
/** When the cursor expires as an ISO8601 string */
|
|
275
|
+
cursorExpirationTimestamp?: string | null;
|
|
276
|
+
/** Cursor for the next page of results */
|
|
277
|
+
nextCursor?: string | null;
|
|
278
|
+
}
|
|
279
|
+
export declare const ListVectorsIndexResponse: Schema.Schema<ListVectorsIndexResponse>;
|
|
280
|
+
export type ListVectorsIndexError = DefaultErrors;
|
|
281
|
+
export declare const listVectorsIndex: API.OperationMethod<ListVectorsIndexRequest, ListVectorsIndexResponse, ListVectorsIndexError, Credentials | HttpClient.HttpClient>;
|
|
282
|
+
//# sourceMappingURL=vectorize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vectorize.d.ts","sourceRoot":"","sources":["../../src/services/vectorize.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,UAAU,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,GAAG,MAAM,kBAAkB,CAAC;AAExC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,WAAW,CAAC;AAO/C,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,6BAA6B;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,iGAAiG;IACjG,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;CAChB;AAED,eAAO,MAAM,oBAAoB,qCASkB,CAAC;AAEpD,MAAM,MAAM,qBAAqB,GAAG,OAAO,CAAC;AAE5C,eAAO,MAAM,qBAAqB,wBAC6D,CAAC;AAEhG,MAAM,MAAM,kBAAkB,GAAG,aAAa,CAAC;AAE/C,eAAO,MAAM,aAAa,EAAE,GAAG,CAAC,eAAe,CAC7C,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,WAAW,GAAG,UAAU,CAAC,UAAU,CAKlC,CAAC;AAEJ,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,6BAA6B;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,+FAA+F;IAC/F,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;CAChB;AAED,eAAO,MAAM,uBAAuB,wCAUoB,CAAC;AAEzD,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cqB,CAAC;AAE3D,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAAC;AAElD,eAAO,MAAM,gBAAgB,EAAE,GAAG,CAAC,eAAe,CAChD,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACrB,WAAW,GAAG,UAAU,CAAC,UAAU,CAKlC,CAAC"}
|
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cloudflare VECTORIZE API
|
|
3
|
+
*
|
|
4
|
+
* Generated from Cloudflare TypeScript SDK.
|
|
5
|
+
* DO NOT EDIT - regenerate with: bun scripts/generate.ts --service vectorize
|
|
6
|
+
*/
|
|
7
|
+
import * as Schema from "effect/Schema";
|
|
8
|
+
import * as API from "../client/api.js";
|
|
9
|
+
import * as T from "../traits";
|
|
10
|
+
import {} from "../errors";
|
|
11
|
+
import { UploadableSchema } from "../schemas";
|
|
12
|
+
export const GetByIdsIndexRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
|
+
indexName: Schema.String.pipe(T.HttpPath("indexName")),
|
|
14
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
15
|
+
ids: Schema.optional(Schema.Array(Schema.String)),
|
|
16
|
+
}).pipe(T.Http({
|
|
17
|
+
method: "POST",
|
|
18
|
+
path: "/accounts/{account_id}/vectorize/v2/indexes/{indexName}/get_by_ids",
|
|
19
|
+
}));
|
|
20
|
+
export const GetByIdsIndexResponse =
|
|
21
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
|
|
22
|
+
export const getByIdsIndex = API.make(() => ({
|
|
23
|
+
input: GetByIdsIndexRequest,
|
|
24
|
+
output: GetByIdsIndexResponse,
|
|
25
|
+
errors: [],
|
|
26
|
+
}));
|
|
27
|
+
export const DeleteByIdsIndexRequest =
|
|
28
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
29
|
+
indexName: Schema.String.pipe(T.HttpPath("indexName")),
|
|
30
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
31
|
+
ids: Schema.optional(Schema.Array(Schema.String)),
|
|
32
|
+
}).pipe(T.Http({
|
|
33
|
+
method: "POST",
|
|
34
|
+
path: "/accounts/{account_id}/vectorize/v2/indexes/{indexName}/delete_by_ids",
|
|
35
|
+
}));
|
|
36
|
+
export const DeleteByIdsIndexResponse =
|
|
37
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
38
|
+
mutationId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
39
|
+
});
|
|
40
|
+
export const deleteByIdsIndex = API.make(() => ({
|
|
41
|
+
input: DeleteByIdsIndexRequest,
|
|
42
|
+
output: DeleteByIdsIndexResponse,
|
|
43
|
+
errors: [],
|
|
44
|
+
}));
|
|
45
|
+
export const GetIndexRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
46
|
+
indexName: Schema.String.pipe(T.HttpPath("indexName")),
|
|
47
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
48
|
+
}).pipe(T.Http({
|
|
49
|
+
method: "GET",
|
|
50
|
+
path: "/accounts/{account_id}/vectorize/v2/indexes/{indexName}",
|
|
51
|
+
}));
|
|
52
|
+
export const GetIndexResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
53
|
+
config: Schema.optional(Schema.Union([
|
|
54
|
+
Schema.Struct({
|
|
55
|
+
dimensions: Schema.Number,
|
|
56
|
+
metric: Schema.Literals(["cosine", "euclidean", "dot-product"]),
|
|
57
|
+
}),
|
|
58
|
+
Schema.Null,
|
|
59
|
+
])),
|
|
60
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
61
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
62
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
63
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
64
|
+
}).pipe(Schema.encodeKeys({
|
|
65
|
+
config: "config",
|
|
66
|
+
createdOn: "created_on",
|
|
67
|
+
description: "description",
|
|
68
|
+
modifiedOn: "modified_on",
|
|
69
|
+
name: "name",
|
|
70
|
+
}));
|
|
71
|
+
export const getIndex = API.make(() => ({
|
|
72
|
+
input: GetIndexRequest,
|
|
73
|
+
output: GetIndexResponse,
|
|
74
|
+
errors: [],
|
|
75
|
+
}));
|
|
76
|
+
export const ListIndexesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
77
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
78
|
+
}).pipe(T.Http({
|
|
79
|
+
method: "GET",
|
|
80
|
+
path: "/accounts/{account_id}/vectorize/v2/indexes",
|
|
81
|
+
}));
|
|
82
|
+
export const ListIndexesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
|
|
83
|
+
config: Schema.optional(Schema.Union([
|
|
84
|
+
Schema.Struct({
|
|
85
|
+
dimensions: Schema.Number,
|
|
86
|
+
metric: Schema.Literals(["cosine", "euclidean", "dot-product"]),
|
|
87
|
+
}),
|
|
88
|
+
Schema.Null,
|
|
89
|
+
])),
|
|
90
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
91
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
92
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
93
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
94
|
+
}).pipe(Schema.encodeKeys({
|
|
95
|
+
config: "config",
|
|
96
|
+
createdOn: "created_on",
|
|
97
|
+
description: "description",
|
|
98
|
+
modifiedOn: "modified_on",
|
|
99
|
+
name: "name",
|
|
100
|
+
})));
|
|
101
|
+
export const listIndexes = API.make(() => ({
|
|
102
|
+
input: ListIndexesRequest,
|
|
103
|
+
output: ListIndexesResponse,
|
|
104
|
+
errors: [],
|
|
105
|
+
}));
|
|
106
|
+
export const CreateIndexRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
107
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
108
|
+
config: Schema.Union([
|
|
109
|
+
Schema.Struct({
|
|
110
|
+
dimensions: Schema.Number,
|
|
111
|
+
metric: Schema.Literals(["cosine", "euclidean", "dot-product"]),
|
|
112
|
+
}),
|
|
113
|
+
Schema.Struct({
|
|
114
|
+
preset: Schema.Literals([
|
|
115
|
+
"@cf/baai/bge-small-en-v1.5",
|
|
116
|
+
"@cf/baai/bge-base-en-v1.5",
|
|
117
|
+
"@cf/baai/bge-large-en-v1.5",
|
|
118
|
+
"openai/text-embedding-ada-002",
|
|
119
|
+
"cohere/embed-multilingual-v2.0",
|
|
120
|
+
]),
|
|
121
|
+
}),
|
|
122
|
+
]),
|
|
123
|
+
name: Schema.String,
|
|
124
|
+
description: Schema.optional(Schema.String),
|
|
125
|
+
}).pipe(T.Http({
|
|
126
|
+
method: "POST",
|
|
127
|
+
path: "/accounts/{account_id}/vectorize/v2/indexes",
|
|
128
|
+
}));
|
|
129
|
+
export const CreateIndexResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
130
|
+
config: Schema.optional(Schema.Union([
|
|
131
|
+
Schema.Struct({
|
|
132
|
+
dimensions: Schema.Number,
|
|
133
|
+
metric: Schema.Literals(["cosine", "euclidean", "dot-product"]),
|
|
134
|
+
}),
|
|
135
|
+
Schema.Null,
|
|
136
|
+
])),
|
|
137
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
138
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
139
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
140
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
141
|
+
}).pipe(Schema.encodeKeys({
|
|
142
|
+
config: "config",
|
|
143
|
+
createdOn: "created_on",
|
|
144
|
+
description: "description",
|
|
145
|
+
modifiedOn: "modified_on",
|
|
146
|
+
name: "name",
|
|
147
|
+
}));
|
|
148
|
+
export const createIndex = API.make(() => ({
|
|
149
|
+
input: CreateIndexRequest,
|
|
150
|
+
output: CreateIndexResponse,
|
|
151
|
+
errors: [],
|
|
152
|
+
}));
|
|
153
|
+
export const DeleteIndexRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
154
|
+
indexName: Schema.String.pipe(T.HttpPath("indexName")),
|
|
155
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
156
|
+
}).pipe(T.Http({
|
|
157
|
+
method: "DELETE",
|
|
158
|
+
path: "/accounts/{account_id}/vectorize/v2/indexes/{indexName}",
|
|
159
|
+
}));
|
|
160
|
+
export const DeleteIndexResponse =
|
|
161
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String;
|
|
162
|
+
export const deleteIndex = API.make(() => ({
|
|
163
|
+
input: DeleteIndexRequest,
|
|
164
|
+
output: DeleteIndexResponse,
|
|
165
|
+
errors: [],
|
|
166
|
+
}));
|
|
167
|
+
export const InfoIndexRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
168
|
+
indexName: Schema.String.pipe(T.HttpPath("indexName")),
|
|
169
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
170
|
+
}).pipe(T.Http({
|
|
171
|
+
method: "GET",
|
|
172
|
+
path: "/accounts/{account_id}/vectorize/v2/indexes/{indexName}/info",
|
|
173
|
+
}));
|
|
174
|
+
export const InfoIndexResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
175
|
+
dimensions: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
176
|
+
processedUpToDatetime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
177
|
+
processedUpToMutation: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
178
|
+
vectorCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
179
|
+
});
|
|
180
|
+
export const infoIndex = API.make(() => ({
|
|
181
|
+
input: InfoIndexRequest,
|
|
182
|
+
output: InfoIndexResponse,
|
|
183
|
+
errors: [],
|
|
184
|
+
}));
|
|
185
|
+
export const InsertIndexRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
186
|
+
indexName: Schema.String.pipe(T.HttpPath("indexName")),
|
|
187
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
188
|
+
unparsableBehavior: Schema.optional(Schema.Literals(["error", "discard"])).pipe(T.HttpQuery("unparsable-behavior")),
|
|
189
|
+
body: UploadableSchema.pipe(T.HttpFormDataFile()).pipe(T.HttpBody()),
|
|
190
|
+
}).pipe(T.Http({
|
|
191
|
+
method: "POST",
|
|
192
|
+
path: "/accounts/{account_id}/vectorize/v2/indexes/{indexName}/insert",
|
|
193
|
+
contentType: "multipart",
|
|
194
|
+
}));
|
|
195
|
+
export const InsertIndexResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
196
|
+
mutationId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
197
|
+
});
|
|
198
|
+
export const insertIndex = API.make(() => ({
|
|
199
|
+
input: InsertIndexRequest,
|
|
200
|
+
output: InsertIndexResponse,
|
|
201
|
+
errors: [],
|
|
202
|
+
}));
|
|
203
|
+
export const QueryIndexRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
204
|
+
indexName: Schema.String.pipe(T.HttpPath("indexName")),
|
|
205
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
206
|
+
vector: Schema.Array(Schema.Number),
|
|
207
|
+
filter: Schema.optional(Schema.Unknown),
|
|
208
|
+
returnMetadata: Schema.optional(Schema.Literals(["none", "indexed", "all"])),
|
|
209
|
+
returnValues: Schema.optional(Schema.Boolean),
|
|
210
|
+
topK: Schema.optional(Schema.Number),
|
|
211
|
+
}).pipe(T.Http({
|
|
212
|
+
method: "POST",
|
|
213
|
+
path: "/accounts/{account_id}/vectorize/v2/indexes/{indexName}/query",
|
|
214
|
+
}));
|
|
215
|
+
export const QueryIndexResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
216
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
217
|
+
matches: Schema.optional(Schema.Union([
|
|
218
|
+
Schema.Array(Schema.Struct({
|
|
219
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
220
|
+
metadata: Schema.optional(Schema.Null),
|
|
221
|
+
namespace: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
222
|
+
score: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
223
|
+
values: Schema.optional(Schema.Union([Schema.Array(Schema.Number), Schema.Null])),
|
|
224
|
+
})),
|
|
225
|
+
Schema.Null,
|
|
226
|
+
])),
|
|
227
|
+
});
|
|
228
|
+
export const queryIndex = API.make(() => ({
|
|
229
|
+
input: QueryIndexRequest,
|
|
230
|
+
output: QueryIndexResponse,
|
|
231
|
+
errors: [],
|
|
232
|
+
}));
|
|
233
|
+
export const UpsertIndexRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
234
|
+
indexName: Schema.String.pipe(T.HttpPath("indexName")),
|
|
235
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
236
|
+
unparsableBehavior: Schema.optional(Schema.Literals(["error", "discard"])).pipe(T.HttpQuery("unparsable-behavior")),
|
|
237
|
+
body: UploadableSchema.pipe(T.HttpFormDataFile()).pipe(T.HttpBody()),
|
|
238
|
+
}).pipe(T.Http({
|
|
239
|
+
method: "POST",
|
|
240
|
+
path: "/accounts/{account_id}/vectorize/v2/indexes/{indexName}/upsert",
|
|
241
|
+
contentType: "multipart",
|
|
242
|
+
}));
|
|
243
|
+
export const UpsertIndexResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
244
|
+
mutationId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
245
|
+
});
|
|
246
|
+
export const upsertIndex = API.make(() => ({
|
|
247
|
+
input: UpsertIndexRequest,
|
|
248
|
+
output: UpsertIndexResponse,
|
|
249
|
+
errors: [],
|
|
250
|
+
}));
|
|
251
|
+
export const ListIndexMetadataIndexesRequest =
|
|
252
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
253
|
+
indexName: Schema.String.pipe(T.HttpPath("indexName")),
|
|
254
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
255
|
+
}).pipe(T.Http({
|
|
256
|
+
method: "GET",
|
|
257
|
+
path: "/accounts/{account_id}/vectorize/v2/indexes/{indexName}/metadata_index/list",
|
|
258
|
+
}));
|
|
259
|
+
export const ListIndexMetadataIndexesResponse =
|
|
260
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
261
|
+
metadataIndexes: Schema.optional(Schema.Union([
|
|
262
|
+
Schema.Array(Schema.Struct({
|
|
263
|
+
indexType: Schema.optional(Schema.Union([
|
|
264
|
+
Schema.Literals(["string", "number", "boolean"]),
|
|
265
|
+
Schema.Null,
|
|
266
|
+
])),
|
|
267
|
+
propertyName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
268
|
+
})),
|
|
269
|
+
Schema.Null,
|
|
270
|
+
])),
|
|
271
|
+
});
|
|
272
|
+
export const listIndexMetadataIndexes = API.make(() => ({
|
|
273
|
+
input: ListIndexMetadataIndexesRequest,
|
|
274
|
+
output: ListIndexMetadataIndexesResponse,
|
|
275
|
+
errors: [],
|
|
276
|
+
}));
|
|
277
|
+
export const CreateIndexMetadataIndexRequest =
|
|
278
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
279
|
+
indexName: Schema.String.pipe(T.HttpPath("indexName")),
|
|
280
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
281
|
+
indexType: Schema.Literals(["string", "number", "boolean"]),
|
|
282
|
+
propertyName: Schema.String,
|
|
283
|
+
}).pipe(T.Http({
|
|
284
|
+
method: "POST",
|
|
285
|
+
path: "/accounts/{account_id}/vectorize/v2/indexes/{indexName}/metadata_index/create",
|
|
286
|
+
}));
|
|
287
|
+
export const CreateIndexMetadataIndexResponse =
|
|
288
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
289
|
+
mutationId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
290
|
+
});
|
|
291
|
+
export const createIndexMetadataIndex = API.make(() => ({
|
|
292
|
+
input: CreateIndexMetadataIndexRequest,
|
|
293
|
+
output: CreateIndexMetadataIndexResponse,
|
|
294
|
+
errors: [],
|
|
295
|
+
}));
|
|
296
|
+
export const DeleteIndexMetadataIndexRequest =
|
|
297
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
298
|
+
indexName: Schema.String.pipe(T.HttpPath("indexName")),
|
|
299
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
300
|
+
propertyName: Schema.String,
|
|
301
|
+
}).pipe(T.Http({
|
|
302
|
+
method: "POST",
|
|
303
|
+
path: "/accounts/{account_id}/vectorize/v2/indexes/{indexName}/metadata_index/delete",
|
|
304
|
+
}));
|
|
305
|
+
export const DeleteIndexMetadataIndexResponse =
|
|
306
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
307
|
+
mutationId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
308
|
+
});
|
|
309
|
+
export const deleteIndexMetadataIndex = API.make(() => ({
|
|
310
|
+
input: DeleteIndexMetadataIndexRequest,
|
|
311
|
+
output: DeleteIndexMetadataIndexResponse,
|
|
312
|
+
errors: [],
|
|
313
|
+
}));
|
|
314
|
+
export const ListVectorsIndexRequest =
|
|
315
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
316
|
+
indexName: Schema.String.pipe(T.HttpPath("indexName")),
|
|
317
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
318
|
+
count: Schema.optional(Schema.Number).pipe(T.HttpQuery("count")),
|
|
319
|
+
cursor: Schema.optional(Schema.String).pipe(T.HttpQuery("cursor")),
|
|
320
|
+
}).pipe(T.Http({
|
|
321
|
+
method: "GET",
|
|
322
|
+
path: "/accounts/{account_id}/vectorize/v2/indexes/{indexName}/list",
|
|
323
|
+
}));
|
|
324
|
+
export const ListVectorsIndexResponse =
|
|
325
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
326
|
+
count: Schema.Number,
|
|
327
|
+
isTruncated: Schema.Boolean,
|
|
328
|
+
totalCount: Schema.Number,
|
|
329
|
+
vectors: Schema.Array(Schema.Struct({
|
|
330
|
+
id: Schema.String,
|
|
331
|
+
})),
|
|
332
|
+
cursorExpirationTimestamp: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
333
|
+
nextCursor: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
334
|
+
});
|
|
335
|
+
export const listVectorsIndex = API.make(() => ({
|
|
336
|
+
input: ListVectorsIndexRequest,
|
|
337
|
+
output: ListVectorsIndexResponse,
|
|
338
|
+
errors: [],
|
|
339
|
+
}));
|
|
340
|
+
//# sourceMappingURL=vectorize.js.map
|