@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,2425 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cloudflare AISEARCH API
|
|
3
|
+
*
|
|
4
|
+
* Generated from Cloudflare TypeScript SDK.
|
|
5
|
+
* DO NOT EDIT - regenerate with: bun scripts/generate.ts --service aisearch
|
|
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
|
+
// =============================================================================
|
|
12
|
+
// Errors
|
|
13
|
+
// =============================================================================
|
|
14
|
+
export class InvalidRoute extends Schema.TaggedErrorClass()("InvalidRoute", { code: Schema.Number, message: Schema.String }) {
|
|
15
|
+
}
|
|
16
|
+
T.applyErrorMatchers(InvalidRoute, [{ code: 7003 }]);
|
|
17
|
+
export class NotFound extends Schema.TaggedErrorClass()("NotFound", {
|
|
18
|
+
code: Schema.Number,
|
|
19
|
+
message: Schema.String,
|
|
20
|
+
}) {
|
|
21
|
+
}
|
|
22
|
+
T.applyErrorMatchers(NotFound, [{ code: 7002 }]);
|
|
23
|
+
export class SyncInCooldown extends Schema.TaggedErrorClass()("SyncInCooldown", { code: Schema.Number, message: Schema.String }) {
|
|
24
|
+
}
|
|
25
|
+
T.applyErrorMatchers(SyncInCooldown, [{ code: 7020 }]);
|
|
26
|
+
export class UnableToConnect extends Schema.TaggedErrorClass()("UnableToConnect", { code: Schema.Number, message: Schema.String }) {
|
|
27
|
+
}
|
|
28
|
+
T.applyErrorMatchers(UnableToConnect, [{ code: 7017 }]);
|
|
29
|
+
export class ValidationError extends Schema.TaggedErrorClass()("ValidationError", { code: Schema.Number, message: Schema.String }) {
|
|
30
|
+
}
|
|
31
|
+
T.applyErrorMatchers(ValidationError, [{ code: 7001 }]);
|
|
32
|
+
export const ListInstancesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
33
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
34
|
+
search: Schema.optional(Schema.String).pipe(T.HttpQuery("search")),
|
|
35
|
+
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/ai-search/instances" }));
|
|
36
|
+
export const ListInstancesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
|
|
37
|
+
id: Schema.String,
|
|
38
|
+
accountId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
39
|
+
accountTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
40
|
+
createdAt: Schema.String,
|
|
41
|
+
internalId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
42
|
+
modifiedAt: Schema.String,
|
|
43
|
+
source: Schema.String,
|
|
44
|
+
tokenId: Schema.String,
|
|
45
|
+
type: Schema.Literals(["r2", "web-crawler"]),
|
|
46
|
+
vectorizeName: Schema.String,
|
|
47
|
+
aiGatewayId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
48
|
+
aiSearchModel: Schema.optional(Schema.Union([
|
|
49
|
+
Schema.Literals([
|
|
50
|
+
"@cf/meta/llama-3.3-70b-instruct-fp8-fast",
|
|
51
|
+
"@cf/meta/llama-3.1-8b-instruct-fast",
|
|
52
|
+
"@cf/meta/llama-3.1-8b-instruct-fp8",
|
|
53
|
+
"@cf/meta/llama-4-scout-17b-16e-instruct",
|
|
54
|
+
"@cf/qwen/qwen3-30b-a3b-fp8",
|
|
55
|
+
"@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
|
|
56
|
+
"@cf/moonshotai/kimi-k2-instruct",
|
|
57
|
+
"anthropic/claude-3-7-sonnet",
|
|
58
|
+
"anthropic/claude-sonnet-4",
|
|
59
|
+
"anthropic/claude-opus-4",
|
|
60
|
+
"anthropic/claude-3-5-haiku",
|
|
61
|
+
"cerebras/qwen-3-235b-a22b-instruct",
|
|
62
|
+
"cerebras/qwen-3-235b-a22b-thinking",
|
|
63
|
+
"cerebras/llama-3.3-70b",
|
|
64
|
+
"cerebras/llama-4-maverick-17b-128e-instruct",
|
|
65
|
+
"cerebras/llama-4-scout-17b-16e-instruct",
|
|
66
|
+
"cerebras/gpt-oss-120b",
|
|
67
|
+
"google-ai-studio/gemini-2.5-flash",
|
|
68
|
+
"google-ai-studio/gemini-2.5-pro",
|
|
69
|
+
"grok/grok-4",
|
|
70
|
+
"groq/llama-3.3-70b-versatile",
|
|
71
|
+
"groq/llama-3.1-8b-instant",
|
|
72
|
+
"openai/gpt-5",
|
|
73
|
+
"openai/gpt-5-mini",
|
|
74
|
+
"openai/gpt-5-nano",
|
|
75
|
+
"",
|
|
76
|
+
]),
|
|
77
|
+
Schema.Null,
|
|
78
|
+
])),
|
|
79
|
+
cache: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
80
|
+
cacheThreshold: Schema.optional(Schema.Union([
|
|
81
|
+
Schema.Literal("super_strict_match"),
|
|
82
|
+
Schema.Literal("close_enough"),
|
|
83
|
+
Schema.Literal("flexible_friend"),
|
|
84
|
+
Schema.Literal("anything_goes"),
|
|
85
|
+
Schema.Null,
|
|
86
|
+
])),
|
|
87
|
+
chunk: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
88
|
+
chunkOverlap: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
89
|
+
chunkSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
90
|
+
createdBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
91
|
+
embeddingModel: Schema.optional(Schema.Union([
|
|
92
|
+
Schema.Literals([
|
|
93
|
+
"@cf/baai/bge-m3",
|
|
94
|
+
"@cf/baai/bge-large-en-v1.5",
|
|
95
|
+
"@cf/google/embeddinggemma-300m",
|
|
96
|
+
"@cf/qwen/qwen3-embedding-0.6b",
|
|
97
|
+
"google-ai-studio/gemini-embedding-001",
|
|
98
|
+
"openai/text-embedding-3-small",
|
|
99
|
+
"openai/text-embedding-3-large",
|
|
100
|
+
"",
|
|
101
|
+
]),
|
|
102
|
+
Schema.Null,
|
|
103
|
+
])),
|
|
104
|
+
enable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
105
|
+
engineVersion: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
106
|
+
hybridSearchEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
107
|
+
lastActivity: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
108
|
+
maxNumResults: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
109
|
+
metadata: Schema.optional(Schema.Union([
|
|
110
|
+
Schema.Struct({
|
|
111
|
+
createdFromAisearchWizard: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
112
|
+
workerDomain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
113
|
+
}).pipe(Schema.encodeKeys({
|
|
114
|
+
createdFromAisearchWizard: "created_from_aisearch_wizard",
|
|
115
|
+
workerDomain: "worker_domain",
|
|
116
|
+
})),
|
|
117
|
+
Schema.Null,
|
|
118
|
+
])),
|
|
119
|
+
modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
120
|
+
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
121
|
+
publicEndpointId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
122
|
+
publicEndpointParams: Schema.optional(Schema.Union([
|
|
123
|
+
Schema.Struct({
|
|
124
|
+
authorizedHosts: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
125
|
+
chatCompletionsEndpoint: Schema.optional(Schema.Union([
|
|
126
|
+
Schema.Struct({
|
|
127
|
+
disabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
128
|
+
}),
|
|
129
|
+
Schema.Null,
|
|
130
|
+
])),
|
|
131
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
132
|
+
mcp: Schema.optional(Schema.Union([
|
|
133
|
+
Schema.Struct({
|
|
134
|
+
disabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
135
|
+
}),
|
|
136
|
+
Schema.Null,
|
|
137
|
+
])),
|
|
138
|
+
rateLimit: Schema.optional(Schema.Union([
|
|
139
|
+
Schema.Struct({
|
|
140
|
+
periodMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
141
|
+
requests: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
142
|
+
technique: Schema.optional(Schema.Union([
|
|
143
|
+
Schema.Literals(["fixed", "sliding"]),
|
|
144
|
+
Schema.Null,
|
|
145
|
+
])),
|
|
146
|
+
}).pipe(Schema.encodeKeys({
|
|
147
|
+
periodMs: "period_ms",
|
|
148
|
+
requests: "requests",
|
|
149
|
+
technique: "technique",
|
|
150
|
+
})),
|
|
151
|
+
Schema.Null,
|
|
152
|
+
])),
|
|
153
|
+
searchEndpoint: Schema.optional(Schema.Union([
|
|
154
|
+
Schema.Struct({
|
|
155
|
+
disabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
156
|
+
}),
|
|
157
|
+
Schema.Null,
|
|
158
|
+
])),
|
|
159
|
+
}).pipe(Schema.encodeKeys({
|
|
160
|
+
authorizedHosts: "authorized_hosts",
|
|
161
|
+
chatCompletionsEndpoint: "chat_completions_endpoint",
|
|
162
|
+
enabled: "enabled",
|
|
163
|
+
mcp: "mcp",
|
|
164
|
+
rateLimit: "rate_limit",
|
|
165
|
+
searchEndpoint: "search_endpoint",
|
|
166
|
+
})),
|
|
167
|
+
Schema.Null,
|
|
168
|
+
])),
|
|
169
|
+
reranking: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
170
|
+
rerankingModel: Schema.optional(Schema.Union([
|
|
171
|
+
Schema.Literals(["@cf/baai/bge-reranker-base", ""]),
|
|
172
|
+
Schema.Null,
|
|
173
|
+
])),
|
|
174
|
+
rewriteModel: Schema.optional(Schema.Union([
|
|
175
|
+
Schema.Literals([
|
|
176
|
+
"@cf/meta/llama-3.3-70b-instruct-fp8-fast",
|
|
177
|
+
"@cf/meta/llama-3.1-8b-instruct-fast",
|
|
178
|
+
"@cf/meta/llama-3.1-8b-instruct-fp8",
|
|
179
|
+
"@cf/meta/llama-4-scout-17b-16e-instruct",
|
|
180
|
+
"@cf/qwen/qwen3-30b-a3b-fp8",
|
|
181
|
+
"@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
|
|
182
|
+
"@cf/moonshotai/kimi-k2-instruct",
|
|
183
|
+
"anthropic/claude-3-7-sonnet",
|
|
184
|
+
"anthropic/claude-sonnet-4",
|
|
185
|
+
"anthropic/claude-opus-4",
|
|
186
|
+
"anthropic/claude-3-5-haiku",
|
|
187
|
+
"cerebras/qwen-3-235b-a22b-instruct",
|
|
188
|
+
"cerebras/qwen-3-235b-a22b-thinking",
|
|
189
|
+
"cerebras/llama-3.3-70b",
|
|
190
|
+
"cerebras/llama-4-maverick-17b-128e-instruct",
|
|
191
|
+
"cerebras/llama-4-scout-17b-16e-instruct",
|
|
192
|
+
"cerebras/gpt-oss-120b",
|
|
193
|
+
"google-ai-studio/gemini-2.5-flash",
|
|
194
|
+
"google-ai-studio/gemini-2.5-pro",
|
|
195
|
+
"grok/grok-4",
|
|
196
|
+
"groq/llama-3.3-70b-versatile",
|
|
197
|
+
"groq/llama-3.1-8b-instant",
|
|
198
|
+
"openai/gpt-5",
|
|
199
|
+
"openai/gpt-5-mini",
|
|
200
|
+
"openai/gpt-5-nano",
|
|
201
|
+
"",
|
|
202
|
+
]),
|
|
203
|
+
Schema.Null,
|
|
204
|
+
])),
|
|
205
|
+
rewriteQuery: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
206
|
+
scoreThreshold: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
207
|
+
sourceParams: Schema.optional(Schema.Union([
|
|
208
|
+
Schema.Struct({
|
|
209
|
+
excludeItems: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
210
|
+
includeItems: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
211
|
+
prefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
212
|
+
r2Jurisdiction: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
213
|
+
webCrawler: Schema.optional(Schema.Union([
|
|
214
|
+
Schema.Struct({
|
|
215
|
+
parseOptions: Schema.optional(Schema.Union([
|
|
216
|
+
Schema.Struct({
|
|
217
|
+
includeHeaders: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
218
|
+
includeImages: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
219
|
+
useBrowserRendering: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
220
|
+
}).pipe(Schema.encodeKeys({
|
|
221
|
+
includeHeaders: "include_headers",
|
|
222
|
+
includeImages: "include_images",
|
|
223
|
+
useBrowserRendering: "use_browser_rendering",
|
|
224
|
+
})),
|
|
225
|
+
Schema.Null,
|
|
226
|
+
])),
|
|
227
|
+
parseType: Schema.optional(Schema.Union([
|
|
228
|
+
Schema.Literals(["sitemap", "feed-rss"]),
|
|
229
|
+
Schema.Null,
|
|
230
|
+
])),
|
|
231
|
+
storeOptions: Schema.optional(Schema.Union([
|
|
232
|
+
Schema.Struct({
|
|
233
|
+
storageId: Schema.String,
|
|
234
|
+
r2Jurisdiction: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
235
|
+
storageType: Schema.optional(Schema.Union([Schema.Literal("r2"), Schema.Null])),
|
|
236
|
+
}).pipe(Schema.encodeKeys({
|
|
237
|
+
storageId: "storage_id",
|
|
238
|
+
r2Jurisdiction: "r2_jurisdiction",
|
|
239
|
+
storageType: "storage_type",
|
|
240
|
+
})),
|
|
241
|
+
Schema.Null,
|
|
242
|
+
])),
|
|
243
|
+
}).pipe(Schema.encodeKeys({
|
|
244
|
+
parseOptions: "parse_options",
|
|
245
|
+
parseType: "parse_type",
|
|
246
|
+
storeOptions: "store_options",
|
|
247
|
+
})),
|
|
248
|
+
Schema.Null,
|
|
249
|
+
])),
|
|
250
|
+
}).pipe(Schema.encodeKeys({
|
|
251
|
+
excludeItems: "exclude_items",
|
|
252
|
+
includeItems: "include_items",
|
|
253
|
+
prefix: "prefix",
|
|
254
|
+
r2Jurisdiction: "r2_jurisdiction",
|
|
255
|
+
webCrawler: "web_crawler",
|
|
256
|
+
})),
|
|
257
|
+
Schema.Null,
|
|
258
|
+
])),
|
|
259
|
+
status: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
260
|
+
summarization: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
261
|
+
summarizationModel: Schema.optional(Schema.Union([
|
|
262
|
+
Schema.Literals([
|
|
263
|
+
"@cf/meta/llama-3.3-70b-instruct-fp8-fast",
|
|
264
|
+
"@cf/meta/llama-3.1-8b-instruct-fast",
|
|
265
|
+
"@cf/meta/llama-3.1-8b-instruct-fp8",
|
|
266
|
+
"@cf/meta/llama-4-scout-17b-16e-instruct",
|
|
267
|
+
"@cf/qwen/qwen3-30b-a3b-fp8",
|
|
268
|
+
"@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
|
|
269
|
+
"@cf/moonshotai/kimi-k2-instruct",
|
|
270
|
+
"anthropic/claude-3-7-sonnet",
|
|
271
|
+
"anthropic/claude-sonnet-4",
|
|
272
|
+
"anthropic/claude-opus-4",
|
|
273
|
+
"anthropic/claude-3-5-haiku",
|
|
274
|
+
"cerebras/qwen-3-235b-a22b-instruct",
|
|
275
|
+
"cerebras/qwen-3-235b-a22b-thinking",
|
|
276
|
+
"cerebras/llama-3.3-70b",
|
|
277
|
+
"cerebras/llama-4-maverick-17b-128e-instruct",
|
|
278
|
+
"cerebras/llama-4-scout-17b-16e-instruct",
|
|
279
|
+
"cerebras/gpt-oss-120b",
|
|
280
|
+
"google-ai-studio/gemini-2.5-flash",
|
|
281
|
+
"google-ai-studio/gemini-2.5-pro",
|
|
282
|
+
"grok/grok-4",
|
|
283
|
+
"groq/llama-3.3-70b-versatile",
|
|
284
|
+
"groq/llama-3.1-8b-instant",
|
|
285
|
+
"openai/gpt-5",
|
|
286
|
+
"openai/gpt-5-mini",
|
|
287
|
+
"openai/gpt-5-nano",
|
|
288
|
+
"",
|
|
289
|
+
]),
|
|
290
|
+
Schema.Null,
|
|
291
|
+
])),
|
|
292
|
+
systemPromptAiSearch: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
293
|
+
systemPromptIndexSummarization: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
294
|
+
systemPromptRewriteQuery: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
295
|
+
vectorizeActiveNamespace: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
296
|
+
}).pipe(Schema.encodeKeys({
|
|
297
|
+
id: "id",
|
|
298
|
+
accountId: "account_id",
|
|
299
|
+
accountTag: "account_tag",
|
|
300
|
+
createdAt: "created_at",
|
|
301
|
+
internalId: "internal_id",
|
|
302
|
+
modifiedAt: "modified_at",
|
|
303
|
+
source: "source",
|
|
304
|
+
tokenId: "token_id",
|
|
305
|
+
type: "type",
|
|
306
|
+
vectorizeName: "vectorize_name",
|
|
307
|
+
aiGatewayId: "ai_gateway_id",
|
|
308
|
+
aiSearchModel: "ai_search_model",
|
|
309
|
+
cache: "cache",
|
|
310
|
+
cacheThreshold: "cache_threshold",
|
|
311
|
+
chunk: "chunk",
|
|
312
|
+
chunkOverlap: "chunk_overlap",
|
|
313
|
+
chunkSize: "chunk_size",
|
|
314
|
+
createdBy: "created_by",
|
|
315
|
+
embeddingModel: "embedding_model",
|
|
316
|
+
enable: "enable",
|
|
317
|
+
engineVersion: "engine_version",
|
|
318
|
+
hybridSearchEnabled: "hybrid_search_enabled",
|
|
319
|
+
lastActivity: "last_activity",
|
|
320
|
+
maxNumResults: "max_num_results",
|
|
321
|
+
metadata: "metadata",
|
|
322
|
+
modifiedBy: "modified_by",
|
|
323
|
+
paused: "paused",
|
|
324
|
+
publicEndpointId: "public_endpoint_id",
|
|
325
|
+
publicEndpointParams: "public_endpoint_params",
|
|
326
|
+
reranking: "reranking",
|
|
327
|
+
rerankingModel: "reranking_model",
|
|
328
|
+
rewriteModel: "rewrite_model",
|
|
329
|
+
rewriteQuery: "rewrite_query",
|
|
330
|
+
scoreThreshold: "score_threshold",
|
|
331
|
+
sourceParams: "source_params",
|
|
332
|
+
status: "status",
|
|
333
|
+
summarization: "summarization",
|
|
334
|
+
summarizationModel: "summarization_model",
|
|
335
|
+
systemPromptAiSearch: "system_prompt_ai_search",
|
|
336
|
+
systemPromptIndexSummarization: "system_prompt_index_summarization",
|
|
337
|
+
systemPromptRewriteQuery: "system_prompt_rewrite_query",
|
|
338
|
+
vectorizeActiveNamespace: "vectorize_active_namespace",
|
|
339
|
+
})));
|
|
340
|
+
export const listInstances = API.make(() => ({
|
|
341
|
+
input: ListInstancesRequest,
|
|
342
|
+
output: ListInstancesResponse,
|
|
343
|
+
errors: [InvalidRoute],
|
|
344
|
+
}));
|
|
345
|
+
export const CreateInstanceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
346
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
347
|
+
id: Schema.String,
|
|
348
|
+
source: Schema.String,
|
|
349
|
+
tokenId: Schema.String,
|
|
350
|
+
type: Schema.Literals(["r2", "web-crawler"]),
|
|
351
|
+
aiGatewayId: Schema.optional(Schema.String),
|
|
352
|
+
aiSearchModel: Schema.optional(Schema.Literals([
|
|
353
|
+
"@cf/meta/llama-3.3-70b-instruct-fp8-fast",
|
|
354
|
+
"@cf/meta/llama-3.1-8b-instruct-fast",
|
|
355
|
+
"@cf/meta/llama-3.1-8b-instruct-fp8",
|
|
356
|
+
"@cf/meta/llama-4-scout-17b-16e-instruct",
|
|
357
|
+
"@cf/qwen/qwen3-30b-a3b-fp8",
|
|
358
|
+
"@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
|
|
359
|
+
"@cf/moonshotai/kimi-k2-instruct",
|
|
360
|
+
"anthropic/claude-3-7-sonnet",
|
|
361
|
+
"anthropic/claude-sonnet-4",
|
|
362
|
+
"anthropic/claude-opus-4",
|
|
363
|
+
"anthropic/claude-3-5-haiku",
|
|
364
|
+
"cerebras/qwen-3-235b-a22b-instruct",
|
|
365
|
+
"cerebras/qwen-3-235b-a22b-thinking",
|
|
366
|
+
"cerebras/llama-3.3-70b",
|
|
367
|
+
"cerebras/llama-4-maverick-17b-128e-instruct",
|
|
368
|
+
"cerebras/llama-4-scout-17b-16e-instruct",
|
|
369
|
+
"cerebras/gpt-oss-120b",
|
|
370
|
+
"google-ai-studio/gemini-2.5-flash",
|
|
371
|
+
"google-ai-studio/gemini-2.5-pro",
|
|
372
|
+
"grok/grok-4",
|
|
373
|
+
"groq/llama-3.3-70b-versatile",
|
|
374
|
+
"groq/llama-3.1-8b-instant",
|
|
375
|
+
"openai/gpt-5",
|
|
376
|
+
"openai/gpt-5-mini",
|
|
377
|
+
"openai/gpt-5-nano",
|
|
378
|
+
"",
|
|
379
|
+
])),
|
|
380
|
+
chunk: Schema.optional(Schema.Boolean),
|
|
381
|
+
chunkOverlap: Schema.optional(Schema.Number),
|
|
382
|
+
chunkSize: Schema.optional(Schema.Number),
|
|
383
|
+
embeddingModel: Schema.optional(Schema.Literals([
|
|
384
|
+
"@cf/baai/bge-m3",
|
|
385
|
+
"@cf/baai/bge-large-en-v1.5",
|
|
386
|
+
"@cf/google/embeddinggemma-300m",
|
|
387
|
+
"@cf/qwen/qwen3-embedding-0.6b",
|
|
388
|
+
"google-ai-studio/gemini-embedding-001",
|
|
389
|
+
"openai/text-embedding-3-small",
|
|
390
|
+
"openai/text-embedding-3-large",
|
|
391
|
+
"",
|
|
392
|
+
])),
|
|
393
|
+
hybridSearchEnabled: Schema.optional(Schema.Boolean),
|
|
394
|
+
maxNumResults: Schema.optional(Schema.Number),
|
|
395
|
+
metadata: Schema.optional(Schema.Struct({
|
|
396
|
+
createdFromAisearchWizard: Schema.optional(Schema.Boolean),
|
|
397
|
+
workerDomain: Schema.optional(Schema.String),
|
|
398
|
+
}).pipe(Schema.encodeKeys({
|
|
399
|
+
createdFromAisearchWizard: "created_from_aisearch_wizard",
|
|
400
|
+
workerDomain: "worker_domain",
|
|
401
|
+
}))),
|
|
402
|
+
publicEndpointParams: Schema.optional(Schema.Struct({
|
|
403
|
+
authorizedHosts: Schema.optional(Schema.Array(Schema.String)),
|
|
404
|
+
chatCompletionsEndpoint: Schema.optional(Schema.Struct({
|
|
405
|
+
disabled: Schema.optional(Schema.Boolean),
|
|
406
|
+
})),
|
|
407
|
+
enabled: Schema.optional(Schema.Boolean),
|
|
408
|
+
mcp: Schema.optional(Schema.Struct({
|
|
409
|
+
disabled: Schema.optional(Schema.Boolean),
|
|
410
|
+
})),
|
|
411
|
+
rateLimit: Schema.optional(Schema.Struct({
|
|
412
|
+
periodMs: Schema.optional(Schema.Number),
|
|
413
|
+
requests: Schema.optional(Schema.Number),
|
|
414
|
+
technique: Schema.optional(Schema.Literals(["fixed", "sliding"])),
|
|
415
|
+
}).pipe(Schema.encodeKeys({
|
|
416
|
+
periodMs: "period_ms",
|
|
417
|
+
requests: "requests",
|
|
418
|
+
technique: "technique",
|
|
419
|
+
}))),
|
|
420
|
+
searchEndpoint: Schema.optional(Schema.Struct({
|
|
421
|
+
disabled: Schema.optional(Schema.Boolean),
|
|
422
|
+
})),
|
|
423
|
+
}).pipe(Schema.encodeKeys({
|
|
424
|
+
authorizedHosts: "authorized_hosts",
|
|
425
|
+
chatCompletionsEndpoint: "chat_completions_endpoint",
|
|
426
|
+
enabled: "enabled",
|
|
427
|
+
mcp: "mcp",
|
|
428
|
+
rateLimit: "rate_limit",
|
|
429
|
+
searchEndpoint: "search_endpoint",
|
|
430
|
+
}))),
|
|
431
|
+
reranking: Schema.optional(Schema.Boolean),
|
|
432
|
+
rerankingModel: Schema.optional(Schema.Literals(["@cf/baai/bge-reranker-base", ""])),
|
|
433
|
+
rewriteModel: Schema.optional(Schema.Literals([
|
|
434
|
+
"@cf/meta/llama-3.3-70b-instruct-fp8-fast",
|
|
435
|
+
"@cf/meta/llama-3.1-8b-instruct-fast",
|
|
436
|
+
"@cf/meta/llama-3.1-8b-instruct-fp8",
|
|
437
|
+
"@cf/meta/llama-4-scout-17b-16e-instruct",
|
|
438
|
+
"@cf/qwen/qwen3-30b-a3b-fp8",
|
|
439
|
+
"@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
|
|
440
|
+
"@cf/moonshotai/kimi-k2-instruct",
|
|
441
|
+
"anthropic/claude-3-7-sonnet",
|
|
442
|
+
"anthropic/claude-sonnet-4",
|
|
443
|
+
"anthropic/claude-opus-4",
|
|
444
|
+
"anthropic/claude-3-5-haiku",
|
|
445
|
+
"cerebras/qwen-3-235b-a22b-instruct",
|
|
446
|
+
"cerebras/qwen-3-235b-a22b-thinking",
|
|
447
|
+
"cerebras/llama-3.3-70b",
|
|
448
|
+
"cerebras/llama-4-maverick-17b-128e-instruct",
|
|
449
|
+
"cerebras/llama-4-scout-17b-16e-instruct",
|
|
450
|
+
"cerebras/gpt-oss-120b",
|
|
451
|
+
"google-ai-studio/gemini-2.5-flash",
|
|
452
|
+
"google-ai-studio/gemini-2.5-pro",
|
|
453
|
+
"grok/grok-4",
|
|
454
|
+
"groq/llama-3.3-70b-versatile",
|
|
455
|
+
"groq/llama-3.1-8b-instant",
|
|
456
|
+
"openai/gpt-5",
|
|
457
|
+
"openai/gpt-5-mini",
|
|
458
|
+
"openai/gpt-5-nano",
|
|
459
|
+
"",
|
|
460
|
+
])),
|
|
461
|
+
rewriteQuery: Schema.optional(Schema.Boolean),
|
|
462
|
+
scoreThreshold: Schema.optional(Schema.Number),
|
|
463
|
+
sourceParams: Schema.optional(Schema.Struct({
|
|
464
|
+
excludeItems: Schema.optional(Schema.Array(Schema.String)),
|
|
465
|
+
includeItems: Schema.optional(Schema.Array(Schema.String)),
|
|
466
|
+
prefix: Schema.optional(Schema.String),
|
|
467
|
+
r2Jurisdiction: Schema.optional(Schema.String),
|
|
468
|
+
webCrawler: Schema.optional(Schema.Struct({
|
|
469
|
+
parseOptions: Schema.optional(Schema.Struct({
|
|
470
|
+
includeHeaders: Schema.optional(Schema.Struct({})),
|
|
471
|
+
includeImages: Schema.optional(Schema.Boolean),
|
|
472
|
+
useBrowserRendering: Schema.optional(Schema.Boolean),
|
|
473
|
+
}).pipe(Schema.encodeKeys({
|
|
474
|
+
includeHeaders: "include_headers",
|
|
475
|
+
includeImages: "include_images",
|
|
476
|
+
useBrowserRendering: "use_browser_rendering",
|
|
477
|
+
}))),
|
|
478
|
+
parseType: Schema.optional(Schema.Literals(["sitemap", "feed-rss"])),
|
|
479
|
+
storeOptions: Schema.optional(Schema.Struct({
|
|
480
|
+
storageId: Schema.String,
|
|
481
|
+
r2Jurisdiction: Schema.optional(Schema.String),
|
|
482
|
+
storageType: Schema.optional(Schema.Literal("r2")),
|
|
483
|
+
}).pipe(Schema.encodeKeys({
|
|
484
|
+
storageId: "storage_id",
|
|
485
|
+
r2Jurisdiction: "r2_jurisdiction",
|
|
486
|
+
storageType: "storage_type",
|
|
487
|
+
}))),
|
|
488
|
+
}).pipe(Schema.encodeKeys({
|
|
489
|
+
parseOptions: "parse_options",
|
|
490
|
+
parseType: "parse_type",
|
|
491
|
+
storeOptions: "store_options",
|
|
492
|
+
}))),
|
|
493
|
+
}).pipe(Schema.encodeKeys({
|
|
494
|
+
excludeItems: "exclude_items",
|
|
495
|
+
includeItems: "include_items",
|
|
496
|
+
prefix: "prefix",
|
|
497
|
+
r2Jurisdiction: "r2_jurisdiction",
|
|
498
|
+
webCrawler: "web_crawler",
|
|
499
|
+
}))),
|
|
500
|
+
}).pipe(Schema.encodeKeys({
|
|
501
|
+
id: "id",
|
|
502
|
+
source: "source",
|
|
503
|
+
tokenId: "token_id",
|
|
504
|
+
type: "type",
|
|
505
|
+
aiGatewayId: "ai_gateway_id",
|
|
506
|
+
aiSearchModel: "ai_search_model",
|
|
507
|
+
chunk: "chunk",
|
|
508
|
+
chunkOverlap: "chunk_overlap",
|
|
509
|
+
chunkSize: "chunk_size",
|
|
510
|
+
embeddingModel: "embedding_model",
|
|
511
|
+
hybridSearchEnabled: "hybrid_search_enabled",
|
|
512
|
+
maxNumResults: "max_num_results",
|
|
513
|
+
metadata: "metadata",
|
|
514
|
+
publicEndpointParams: "public_endpoint_params",
|
|
515
|
+
reranking: "reranking",
|
|
516
|
+
rerankingModel: "reranking_model",
|
|
517
|
+
rewriteModel: "rewrite_model",
|
|
518
|
+
rewriteQuery: "rewrite_query",
|
|
519
|
+
scoreThreshold: "score_threshold",
|
|
520
|
+
sourceParams: "source_params",
|
|
521
|
+
}), T.Http({
|
|
522
|
+
method: "POST",
|
|
523
|
+
path: "/accounts/{account_id}/ai-search/instances",
|
|
524
|
+
}));
|
|
525
|
+
export const CreateInstanceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
526
|
+
id: Schema.String,
|
|
527
|
+
accountId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
528
|
+
accountTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
529
|
+
createdAt: Schema.String,
|
|
530
|
+
internalId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
531
|
+
modifiedAt: Schema.String,
|
|
532
|
+
source: Schema.String,
|
|
533
|
+
tokenId: Schema.String,
|
|
534
|
+
type: Schema.Literals(["r2", "web-crawler"]),
|
|
535
|
+
vectorizeName: Schema.String,
|
|
536
|
+
aiGatewayId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
537
|
+
aiSearchModel: Schema.optional(Schema.Union([
|
|
538
|
+
Schema.Literals([
|
|
539
|
+
"@cf/meta/llama-3.3-70b-instruct-fp8-fast",
|
|
540
|
+
"@cf/meta/llama-3.1-8b-instruct-fast",
|
|
541
|
+
"@cf/meta/llama-3.1-8b-instruct-fp8",
|
|
542
|
+
"@cf/meta/llama-4-scout-17b-16e-instruct",
|
|
543
|
+
"@cf/qwen/qwen3-30b-a3b-fp8",
|
|
544
|
+
"@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
|
|
545
|
+
"@cf/moonshotai/kimi-k2-instruct",
|
|
546
|
+
"anthropic/claude-3-7-sonnet",
|
|
547
|
+
"anthropic/claude-sonnet-4",
|
|
548
|
+
"anthropic/claude-opus-4",
|
|
549
|
+
"anthropic/claude-3-5-haiku",
|
|
550
|
+
"cerebras/qwen-3-235b-a22b-instruct",
|
|
551
|
+
"cerebras/qwen-3-235b-a22b-thinking",
|
|
552
|
+
"cerebras/llama-3.3-70b",
|
|
553
|
+
"cerebras/llama-4-maverick-17b-128e-instruct",
|
|
554
|
+
"cerebras/llama-4-scout-17b-16e-instruct",
|
|
555
|
+
"cerebras/gpt-oss-120b",
|
|
556
|
+
"google-ai-studio/gemini-2.5-flash",
|
|
557
|
+
"google-ai-studio/gemini-2.5-pro",
|
|
558
|
+
"grok/grok-4",
|
|
559
|
+
"groq/llama-3.3-70b-versatile",
|
|
560
|
+
"groq/llama-3.1-8b-instant",
|
|
561
|
+
"openai/gpt-5",
|
|
562
|
+
"openai/gpt-5-mini",
|
|
563
|
+
"openai/gpt-5-nano",
|
|
564
|
+
"",
|
|
565
|
+
]),
|
|
566
|
+
Schema.Null,
|
|
567
|
+
])),
|
|
568
|
+
cache: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
569
|
+
cacheThreshold: Schema.optional(Schema.Union([
|
|
570
|
+
Schema.Literal("super_strict_match"),
|
|
571
|
+
Schema.Literal("close_enough"),
|
|
572
|
+
Schema.Literal("flexible_friend"),
|
|
573
|
+
Schema.Literal("anything_goes"),
|
|
574
|
+
Schema.Null,
|
|
575
|
+
])),
|
|
576
|
+
chunk: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
577
|
+
chunkOverlap: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
578
|
+
chunkSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
579
|
+
createdBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
580
|
+
embeddingModel: Schema.optional(Schema.Union([
|
|
581
|
+
Schema.Literals([
|
|
582
|
+
"@cf/baai/bge-m3",
|
|
583
|
+
"@cf/baai/bge-large-en-v1.5",
|
|
584
|
+
"@cf/google/embeddinggemma-300m",
|
|
585
|
+
"@cf/qwen/qwen3-embedding-0.6b",
|
|
586
|
+
"google-ai-studio/gemini-embedding-001",
|
|
587
|
+
"openai/text-embedding-3-small",
|
|
588
|
+
"openai/text-embedding-3-large",
|
|
589
|
+
"",
|
|
590
|
+
]),
|
|
591
|
+
Schema.Null,
|
|
592
|
+
])),
|
|
593
|
+
enable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
594
|
+
engineVersion: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
595
|
+
hybridSearchEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
596
|
+
lastActivity: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
597
|
+
maxNumResults: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
598
|
+
metadata: Schema.optional(Schema.Union([
|
|
599
|
+
Schema.Struct({
|
|
600
|
+
createdFromAisearchWizard: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
601
|
+
workerDomain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
602
|
+
}).pipe(Schema.encodeKeys({
|
|
603
|
+
createdFromAisearchWizard: "created_from_aisearch_wizard",
|
|
604
|
+
workerDomain: "worker_domain",
|
|
605
|
+
})),
|
|
606
|
+
Schema.Null,
|
|
607
|
+
])),
|
|
608
|
+
modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
609
|
+
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
610
|
+
publicEndpointId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
611
|
+
publicEndpointParams: Schema.optional(Schema.Union([
|
|
612
|
+
Schema.Struct({
|
|
613
|
+
authorizedHosts: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
614
|
+
chatCompletionsEndpoint: Schema.optional(Schema.Union([
|
|
615
|
+
Schema.Struct({
|
|
616
|
+
disabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
617
|
+
}),
|
|
618
|
+
Schema.Null,
|
|
619
|
+
])),
|
|
620
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
621
|
+
mcp: Schema.optional(Schema.Union([
|
|
622
|
+
Schema.Struct({
|
|
623
|
+
disabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
624
|
+
}),
|
|
625
|
+
Schema.Null,
|
|
626
|
+
])),
|
|
627
|
+
rateLimit: Schema.optional(Schema.Union([
|
|
628
|
+
Schema.Struct({
|
|
629
|
+
periodMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
630
|
+
requests: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
631
|
+
technique: Schema.optional(Schema.Union([
|
|
632
|
+
Schema.Literals(["fixed", "sliding"]),
|
|
633
|
+
Schema.Null,
|
|
634
|
+
])),
|
|
635
|
+
}).pipe(Schema.encodeKeys({
|
|
636
|
+
periodMs: "period_ms",
|
|
637
|
+
requests: "requests",
|
|
638
|
+
technique: "technique",
|
|
639
|
+
})),
|
|
640
|
+
Schema.Null,
|
|
641
|
+
])),
|
|
642
|
+
searchEndpoint: Schema.optional(Schema.Union([
|
|
643
|
+
Schema.Struct({
|
|
644
|
+
disabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
645
|
+
}),
|
|
646
|
+
Schema.Null,
|
|
647
|
+
])),
|
|
648
|
+
}).pipe(Schema.encodeKeys({
|
|
649
|
+
authorizedHosts: "authorized_hosts",
|
|
650
|
+
chatCompletionsEndpoint: "chat_completions_endpoint",
|
|
651
|
+
enabled: "enabled",
|
|
652
|
+
mcp: "mcp",
|
|
653
|
+
rateLimit: "rate_limit",
|
|
654
|
+
searchEndpoint: "search_endpoint",
|
|
655
|
+
})),
|
|
656
|
+
Schema.Null,
|
|
657
|
+
])),
|
|
658
|
+
reranking: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
659
|
+
rerankingModel: Schema.optional(Schema.Union([
|
|
660
|
+
Schema.Literals(["@cf/baai/bge-reranker-base", ""]),
|
|
661
|
+
Schema.Null,
|
|
662
|
+
])),
|
|
663
|
+
rewriteModel: Schema.optional(Schema.Union([
|
|
664
|
+
Schema.Literals([
|
|
665
|
+
"@cf/meta/llama-3.3-70b-instruct-fp8-fast",
|
|
666
|
+
"@cf/meta/llama-3.1-8b-instruct-fast",
|
|
667
|
+
"@cf/meta/llama-3.1-8b-instruct-fp8",
|
|
668
|
+
"@cf/meta/llama-4-scout-17b-16e-instruct",
|
|
669
|
+
"@cf/qwen/qwen3-30b-a3b-fp8",
|
|
670
|
+
"@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
|
|
671
|
+
"@cf/moonshotai/kimi-k2-instruct",
|
|
672
|
+
"anthropic/claude-3-7-sonnet",
|
|
673
|
+
"anthropic/claude-sonnet-4",
|
|
674
|
+
"anthropic/claude-opus-4",
|
|
675
|
+
"anthropic/claude-3-5-haiku",
|
|
676
|
+
"cerebras/qwen-3-235b-a22b-instruct",
|
|
677
|
+
"cerebras/qwen-3-235b-a22b-thinking",
|
|
678
|
+
"cerebras/llama-3.3-70b",
|
|
679
|
+
"cerebras/llama-4-maverick-17b-128e-instruct",
|
|
680
|
+
"cerebras/llama-4-scout-17b-16e-instruct",
|
|
681
|
+
"cerebras/gpt-oss-120b",
|
|
682
|
+
"google-ai-studio/gemini-2.5-flash",
|
|
683
|
+
"google-ai-studio/gemini-2.5-pro",
|
|
684
|
+
"grok/grok-4",
|
|
685
|
+
"groq/llama-3.3-70b-versatile",
|
|
686
|
+
"groq/llama-3.1-8b-instant",
|
|
687
|
+
"openai/gpt-5",
|
|
688
|
+
"openai/gpt-5-mini",
|
|
689
|
+
"openai/gpt-5-nano",
|
|
690
|
+
"",
|
|
691
|
+
]),
|
|
692
|
+
Schema.Null,
|
|
693
|
+
])),
|
|
694
|
+
rewriteQuery: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
695
|
+
scoreThreshold: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
696
|
+
sourceParams: Schema.optional(Schema.Union([
|
|
697
|
+
Schema.Struct({
|
|
698
|
+
excludeItems: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
699
|
+
includeItems: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
700
|
+
prefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
701
|
+
r2Jurisdiction: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
702
|
+
webCrawler: Schema.optional(Schema.Union([
|
|
703
|
+
Schema.Struct({
|
|
704
|
+
parseOptions: Schema.optional(Schema.Union([
|
|
705
|
+
Schema.Struct({
|
|
706
|
+
includeHeaders: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
707
|
+
includeImages: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
708
|
+
useBrowserRendering: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
709
|
+
}).pipe(Schema.encodeKeys({
|
|
710
|
+
includeHeaders: "include_headers",
|
|
711
|
+
includeImages: "include_images",
|
|
712
|
+
useBrowserRendering: "use_browser_rendering",
|
|
713
|
+
})),
|
|
714
|
+
Schema.Null,
|
|
715
|
+
])),
|
|
716
|
+
parseType: Schema.optional(Schema.Union([
|
|
717
|
+
Schema.Literals(["sitemap", "feed-rss"]),
|
|
718
|
+
Schema.Null,
|
|
719
|
+
])),
|
|
720
|
+
storeOptions: Schema.optional(Schema.Union([
|
|
721
|
+
Schema.Struct({
|
|
722
|
+
storageId: Schema.String,
|
|
723
|
+
r2Jurisdiction: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
724
|
+
storageType: Schema.optional(Schema.Union([Schema.Literal("r2"), Schema.Null])),
|
|
725
|
+
}).pipe(Schema.encodeKeys({
|
|
726
|
+
storageId: "storage_id",
|
|
727
|
+
r2Jurisdiction: "r2_jurisdiction",
|
|
728
|
+
storageType: "storage_type",
|
|
729
|
+
})),
|
|
730
|
+
Schema.Null,
|
|
731
|
+
])),
|
|
732
|
+
}).pipe(Schema.encodeKeys({
|
|
733
|
+
parseOptions: "parse_options",
|
|
734
|
+
parseType: "parse_type",
|
|
735
|
+
storeOptions: "store_options",
|
|
736
|
+
})),
|
|
737
|
+
Schema.Null,
|
|
738
|
+
])),
|
|
739
|
+
}).pipe(Schema.encodeKeys({
|
|
740
|
+
excludeItems: "exclude_items",
|
|
741
|
+
includeItems: "include_items",
|
|
742
|
+
prefix: "prefix",
|
|
743
|
+
r2Jurisdiction: "r2_jurisdiction",
|
|
744
|
+
webCrawler: "web_crawler",
|
|
745
|
+
})),
|
|
746
|
+
Schema.Null,
|
|
747
|
+
])),
|
|
748
|
+
status: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
749
|
+
summarization: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
750
|
+
summarizationModel: Schema.optional(Schema.Union([
|
|
751
|
+
Schema.Literals([
|
|
752
|
+
"@cf/meta/llama-3.3-70b-instruct-fp8-fast",
|
|
753
|
+
"@cf/meta/llama-3.1-8b-instruct-fast",
|
|
754
|
+
"@cf/meta/llama-3.1-8b-instruct-fp8",
|
|
755
|
+
"@cf/meta/llama-4-scout-17b-16e-instruct",
|
|
756
|
+
"@cf/qwen/qwen3-30b-a3b-fp8",
|
|
757
|
+
"@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
|
|
758
|
+
"@cf/moonshotai/kimi-k2-instruct",
|
|
759
|
+
"anthropic/claude-3-7-sonnet",
|
|
760
|
+
"anthropic/claude-sonnet-4",
|
|
761
|
+
"anthropic/claude-opus-4",
|
|
762
|
+
"anthropic/claude-3-5-haiku",
|
|
763
|
+
"cerebras/qwen-3-235b-a22b-instruct",
|
|
764
|
+
"cerebras/qwen-3-235b-a22b-thinking",
|
|
765
|
+
"cerebras/llama-3.3-70b",
|
|
766
|
+
"cerebras/llama-4-maverick-17b-128e-instruct",
|
|
767
|
+
"cerebras/llama-4-scout-17b-16e-instruct",
|
|
768
|
+
"cerebras/gpt-oss-120b",
|
|
769
|
+
"google-ai-studio/gemini-2.5-flash",
|
|
770
|
+
"google-ai-studio/gemini-2.5-pro",
|
|
771
|
+
"grok/grok-4",
|
|
772
|
+
"groq/llama-3.3-70b-versatile",
|
|
773
|
+
"groq/llama-3.1-8b-instant",
|
|
774
|
+
"openai/gpt-5",
|
|
775
|
+
"openai/gpt-5-mini",
|
|
776
|
+
"openai/gpt-5-nano",
|
|
777
|
+
"",
|
|
778
|
+
]),
|
|
779
|
+
Schema.Null,
|
|
780
|
+
])),
|
|
781
|
+
systemPromptAiSearch: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
782
|
+
systemPromptIndexSummarization: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
783
|
+
systemPromptRewriteQuery: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
784
|
+
vectorizeActiveNamespace: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
785
|
+
}).pipe(Schema.encodeKeys({
|
|
786
|
+
id: "id",
|
|
787
|
+
accountId: "account_id",
|
|
788
|
+
accountTag: "account_tag",
|
|
789
|
+
createdAt: "created_at",
|
|
790
|
+
internalId: "internal_id",
|
|
791
|
+
modifiedAt: "modified_at",
|
|
792
|
+
source: "source",
|
|
793
|
+
tokenId: "token_id",
|
|
794
|
+
type: "type",
|
|
795
|
+
vectorizeName: "vectorize_name",
|
|
796
|
+
aiGatewayId: "ai_gateway_id",
|
|
797
|
+
aiSearchModel: "ai_search_model",
|
|
798
|
+
cache: "cache",
|
|
799
|
+
cacheThreshold: "cache_threshold",
|
|
800
|
+
chunk: "chunk",
|
|
801
|
+
chunkOverlap: "chunk_overlap",
|
|
802
|
+
chunkSize: "chunk_size",
|
|
803
|
+
createdBy: "created_by",
|
|
804
|
+
embeddingModel: "embedding_model",
|
|
805
|
+
enable: "enable",
|
|
806
|
+
engineVersion: "engine_version",
|
|
807
|
+
hybridSearchEnabled: "hybrid_search_enabled",
|
|
808
|
+
lastActivity: "last_activity",
|
|
809
|
+
maxNumResults: "max_num_results",
|
|
810
|
+
metadata: "metadata",
|
|
811
|
+
modifiedBy: "modified_by",
|
|
812
|
+
paused: "paused",
|
|
813
|
+
publicEndpointId: "public_endpoint_id",
|
|
814
|
+
publicEndpointParams: "public_endpoint_params",
|
|
815
|
+
reranking: "reranking",
|
|
816
|
+
rerankingModel: "reranking_model",
|
|
817
|
+
rewriteModel: "rewrite_model",
|
|
818
|
+
rewriteQuery: "rewrite_query",
|
|
819
|
+
scoreThreshold: "score_threshold",
|
|
820
|
+
sourceParams: "source_params",
|
|
821
|
+
status: "status",
|
|
822
|
+
summarization: "summarization",
|
|
823
|
+
summarizationModel: "summarization_model",
|
|
824
|
+
systemPromptAiSearch: "system_prompt_ai_search",
|
|
825
|
+
systemPromptIndexSummarization: "system_prompt_index_summarization",
|
|
826
|
+
systemPromptRewriteQuery: "system_prompt_rewrite_query",
|
|
827
|
+
vectorizeActiveNamespace: "vectorize_active_namespace",
|
|
828
|
+
}));
|
|
829
|
+
export const createInstance = API.make(() => ({
|
|
830
|
+
input: CreateInstanceRequest,
|
|
831
|
+
output: CreateInstanceResponse,
|
|
832
|
+
errors: [ValidationError, NotFound, InvalidRoute],
|
|
833
|
+
}));
|
|
834
|
+
export const UpdateInstanceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
835
|
+
id: Schema.String.pipe(T.HttpPath("id")),
|
|
836
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
837
|
+
aiGatewayId: Schema.optional(Schema.String),
|
|
838
|
+
aiSearchModel: Schema.optional(Schema.Literals([
|
|
839
|
+
"@cf/meta/llama-3.3-70b-instruct-fp8-fast",
|
|
840
|
+
"@cf/meta/llama-3.1-8b-instruct-fast",
|
|
841
|
+
"@cf/meta/llama-3.1-8b-instruct-fp8",
|
|
842
|
+
"@cf/meta/llama-4-scout-17b-16e-instruct",
|
|
843
|
+
"@cf/qwen/qwen3-30b-a3b-fp8",
|
|
844
|
+
"@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
|
|
845
|
+
"@cf/moonshotai/kimi-k2-instruct",
|
|
846
|
+
"anthropic/claude-3-7-sonnet",
|
|
847
|
+
"anthropic/claude-sonnet-4",
|
|
848
|
+
"anthropic/claude-opus-4",
|
|
849
|
+
"anthropic/claude-3-5-haiku",
|
|
850
|
+
"cerebras/qwen-3-235b-a22b-instruct",
|
|
851
|
+
"cerebras/qwen-3-235b-a22b-thinking",
|
|
852
|
+
"cerebras/llama-3.3-70b",
|
|
853
|
+
"cerebras/llama-4-maverick-17b-128e-instruct",
|
|
854
|
+
"cerebras/llama-4-scout-17b-16e-instruct",
|
|
855
|
+
"cerebras/gpt-oss-120b",
|
|
856
|
+
"google-ai-studio/gemini-2.5-flash",
|
|
857
|
+
"google-ai-studio/gemini-2.5-pro",
|
|
858
|
+
"grok/grok-4",
|
|
859
|
+
"groq/llama-3.3-70b-versatile",
|
|
860
|
+
"groq/llama-3.1-8b-instant",
|
|
861
|
+
"openai/gpt-5",
|
|
862
|
+
"openai/gpt-5-mini",
|
|
863
|
+
"openai/gpt-5-nano",
|
|
864
|
+
"",
|
|
865
|
+
])),
|
|
866
|
+
cache: Schema.optional(Schema.Boolean),
|
|
867
|
+
cacheThreshold: Schema.optional(Schema.Literals([
|
|
868
|
+
"super_strict_match",
|
|
869
|
+
"close_enough",
|
|
870
|
+
"flexible_friend",
|
|
871
|
+
"anything_goes",
|
|
872
|
+
])),
|
|
873
|
+
chunk: Schema.optional(Schema.Boolean),
|
|
874
|
+
chunkOverlap: Schema.optional(Schema.Number),
|
|
875
|
+
chunkSize: Schema.optional(Schema.Number),
|
|
876
|
+
embeddingModel: Schema.optional(Schema.Literals([
|
|
877
|
+
"@cf/baai/bge-m3",
|
|
878
|
+
"@cf/baai/bge-large-en-v1.5",
|
|
879
|
+
"@cf/google/embeddinggemma-300m",
|
|
880
|
+
"@cf/qwen/qwen3-embedding-0.6b",
|
|
881
|
+
"google-ai-studio/gemini-embedding-001",
|
|
882
|
+
"openai/text-embedding-3-small",
|
|
883
|
+
"openai/text-embedding-3-large",
|
|
884
|
+
"",
|
|
885
|
+
])),
|
|
886
|
+
hybridSearchEnabled: Schema.optional(Schema.Boolean),
|
|
887
|
+
maxNumResults: Schema.optional(Schema.Number),
|
|
888
|
+
metadata: Schema.optional(Schema.Struct({
|
|
889
|
+
createdFromAisearchWizard: Schema.optional(Schema.Boolean),
|
|
890
|
+
workerDomain: Schema.optional(Schema.String),
|
|
891
|
+
}).pipe(Schema.encodeKeys({
|
|
892
|
+
createdFromAisearchWizard: "created_from_aisearch_wizard",
|
|
893
|
+
workerDomain: "worker_domain",
|
|
894
|
+
}))),
|
|
895
|
+
paused: Schema.optional(Schema.Boolean),
|
|
896
|
+
publicEndpointParams: Schema.optional(Schema.Struct({
|
|
897
|
+
authorizedHosts: Schema.optional(Schema.Array(Schema.String)),
|
|
898
|
+
chatCompletionsEndpoint: Schema.optional(Schema.Struct({
|
|
899
|
+
disabled: Schema.optional(Schema.Boolean),
|
|
900
|
+
})),
|
|
901
|
+
enabled: Schema.optional(Schema.Boolean),
|
|
902
|
+
mcp: Schema.optional(Schema.Struct({
|
|
903
|
+
disabled: Schema.optional(Schema.Boolean),
|
|
904
|
+
})),
|
|
905
|
+
rateLimit: Schema.optional(Schema.Struct({
|
|
906
|
+
periodMs: Schema.optional(Schema.Number),
|
|
907
|
+
requests: Schema.optional(Schema.Number),
|
|
908
|
+
technique: Schema.optional(Schema.Literals(["fixed", "sliding"])),
|
|
909
|
+
}).pipe(Schema.encodeKeys({
|
|
910
|
+
periodMs: "period_ms",
|
|
911
|
+
requests: "requests",
|
|
912
|
+
technique: "technique",
|
|
913
|
+
}))),
|
|
914
|
+
searchEndpoint: Schema.optional(Schema.Struct({
|
|
915
|
+
disabled: Schema.optional(Schema.Boolean),
|
|
916
|
+
})),
|
|
917
|
+
}).pipe(Schema.encodeKeys({
|
|
918
|
+
authorizedHosts: "authorized_hosts",
|
|
919
|
+
chatCompletionsEndpoint: "chat_completions_endpoint",
|
|
920
|
+
enabled: "enabled",
|
|
921
|
+
mcp: "mcp",
|
|
922
|
+
rateLimit: "rate_limit",
|
|
923
|
+
searchEndpoint: "search_endpoint",
|
|
924
|
+
}))),
|
|
925
|
+
reranking: Schema.optional(Schema.Boolean),
|
|
926
|
+
rerankingModel: Schema.optional(Schema.Literals(["@cf/baai/bge-reranker-base", ""])),
|
|
927
|
+
rewriteModel: Schema.optional(Schema.Literals([
|
|
928
|
+
"@cf/meta/llama-3.3-70b-instruct-fp8-fast",
|
|
929
|
+
"@cf/meta/llama-3.1-8b-instruct-fast",
|
|
930
|
+
"@cf/meta/llama-3.1-8b-instruct-fp8",
|
|
931
|
+
"@cf/meta/llama-4-scout-17b-16e-instruct",
|
|
932
|
+
"@cf/qwen/qwen3-30b-a3b-fp8",
|
|
933
|
+
"@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
|
|
934
|
+
"@cf/moonshotai/kimi-k2-instruct",
|
|
935
|
+
"anthropic/claude-3-7-sonnet",
|
|
936
|
+
"anthropic/claude-sonnet-4",
|
|
937
|
+
"anthropic/claude-opus-4",
|
|
938
|
+
"anthropic/claude-3-5-haiku",
|
|
939
|
+
"cerebras/qwen-3-235b-a22b-instruct",
|
|
940
|
+
"cerebras/qwen-3-235b-a22b-thinking",
|
|
941
|
+
"cerebras/llama-3.3-70b",
|
|
942
|
+
"cerebras/llama-4-maverick-17b-128e-instruct",
|
|
943
|
+
"cerebras/llama-4-scout-17b-16e-instruct",
|
|
944
|
+
"cerebras/gpt-oss-120b",
|
|
945
|
+
"google-ai-studio/gemini-2.5-flash",
|
|
946
|
+
"google-ai-studio/gemini-2.5-pro",
|
|
947
|
+
"grok/grok-4",
|
|
948
|
+
"groq/llama-3.3-70b-versatile",
|
|
949
|
+
"groq/llama-3.1-8b-instant",
|
|
950
|
+
"openai/gpt-5",
|
|
951
|
+
"openai/gpt-5-mini",
|
|
952
|
+
"openai/gpt-5-nano",
|
|
953
|
+
"",
|
|
954
|
+
])),
|
|
955
|
+
rewriteQuery: Schema.optional(Schema.Boolean),
|
|
956
|
+
scoreThreshold: Schema.optional(Schema.Number),
|
|
957
|
+
sourceParams: Schema.optional(Schema.Struct({
|
|
958
|
+
excludeItems: Schema.optional(Schema.Array(Schema.String)),
|
|
959
|
+
includeItems: Schema.optional(Schema.Array(Schema.String)),
|
|
960
|
+
prefix: Schema.optional(Schema.String),
|
|
961
|
+
r2Jurisdiction: Schema.optional(Schema.String),
|
|
962
|
+
webCrawler: Schema.optional(Schema.Struct({
|
|
963
|
+
parseOptions: Schema.optional(Schema.Struct({
|
|
964
|
+
includeHeaders: Schema.optional(Schema.Struct({})),
|
|
965
|
+
includeImages: Schema.optional(Schema.Boolean),
|
|
966
|
+
useBrowserRendering: Schema.optional(Schema.Boolean),
|
|
967
|
+
}).pipe(Schema.encodeKeys({
|
|
968
|
+
includeHeaders: "include_headers",
|
|
969
|
+
includeImages: "include_images",
|
|
970
|
+
useBrowserRendering: "use_browser_rendering",
|
|
971
|
+
}))),
|
|
972
|
+
parseType: Schema.optional(Schema.Literals(["sitemap", "feed-rss"])),
|
|
973
|
+
storeOptions: Schema.optional(Schema.Struct({
|
|
974
|
+
storageId: Schema.String,
|
|
975
|
+
r2Jurisdiction: Schema.optional(Schema.String),
|
|
976
|
+
storageType: Schema.optional(Schema.Literal("r2")),
|
|
977
|
+
}).pipe(Schema.encodeKeys({
|
|
978
|
+
storageId: "storage_id",
|
|
979
|
+
r2Jurisdiction: "r2_jurisdiction",
|
|
980
|
+
storageType: "storage_type",
|
|
981
|
+
}))),
|
|
982
|
+
}).pipe(Schema.encodeKeys({
|
|
983
|
+
parseOptions: "parse_options",
|
|
984
|
+
parseType: "parse_type",
|
|
985
|
+
storeOptions: "store_options",
|
|
986
|
+
}))),
|
|
987
|
+
}).pipe(Schema.encodeKeys({
|
|
988
|
+
excludeItems: "exclude_items",
|
|
989
|
+
includeItems: "include_items",
|
|
990
|
+
prefix: "prefix",
|
|
991
|
+
r2Jurisdiction: "r2_jurisdiction",
|
|
992
|
+
webCrawler: "web_crawler",
|
|
993
|
+
}))),
|
|
994
|
+
summarization: Schema.optional(Schema.Boolean),
|
|
995
|
+
summarizationModel: Schema.optional(Schema.Literals([
|
|
996
|
+
"@cf/meta/llama-3.3-70b-instruct-fp8-fast",
|
|
997
|
+
"@cf/meta/llama-3.1-8b-instruct-fast",
|
|
998
|
+
"@cf/meta/llama-3.1-8b-instruct-fp8",
|
|
999
|
+
"@cf/meta/llama-4-scout-17b-16e-instruct",
|
|
1000
|
+
"@cf/qwen/qwen3-30b-a3b-fp8",
|
|
1001
|
+
"@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
|
|
1002
|
+
"@cf/moonshotai/kimi-k2-instruct",
|
|
1003
|
+
"anthropic/claude-3-7-sonnet",
|
|
1004
|
+
"anthropic/claude-sonnet-4",
|
|
1005
|
+
"anthropic/claude-opus-4",
|
|
1006
|
+
"anthropic/claude-3-5-haiku",
|
|
1007
|
+
"cerebras/qwen-3-235b-a22b-instruct",
|
|
1008
|
+
"cerebras/qwen-3-235b-a22b-thinking",
|
|
1009
|
+
"cerebras/llama-3.3-70b",
|
|
1010
|
+
"cerebras/llama-4-maverick-17b-128e-instruct",
|
|
1011
|
+
"cerebras/llama-4-scout-17b-16e-instruct",
|
|
1012
|
+
"cerebras/gpt-oss-120b",
|
|
1013
|
+
"google-ai-studio/gemini-2.5-flash",
|
|
1014
|
+
"google-ai-studio/gemini-2.5-pro",
|
|
1015
|
+
"grok/grok-4",
|
|
1016
|
+
"groq/llama-3.3-70b-versatile",
|
|
1017
|
+
"groq/llama-3.1-8b-instant",
|
|
1018
|
+
"openai/gpt-5",
|
|
1019
|
+
"openai/gpt-5-mini",
|
|
1020
|
+
"openai/gpt-5-nano",
|
|
1021
|
+
"",
|
|
1022
|
+
])),
|
|
1023
|
+
systemPromptAiSearch: Schema.optional(Schema.String),
|
|
1024
|
+
systemPromptIndexSummarization: Schema.optional(Schema.String),
|
|
1025
|
+
systemPromptRewriteQuery: Schema.optional(Schema.String),
|
|
1026
|
+
tokenId: Schema.optional(Schema.String),
|
|
1027
|
+
}).pipe(Schema.encodeKeys({
|
|
1028
|
+
aiGatewayId: "ai_gateway_id",
|
|
1029
|
+
aiSearchModel: "ai_search_model",
|
|
1030
|
+
cache: "cache",
|
|
1031
|
+
cacheThreshold: "cache_threshold",
|
|
1032
|
+
chunk: "chunk",
|
|
1033
|
+
chunkOverlap: "chunk_overlap",
|
|
1034
|
+
chunkSize: "chunk_size",
|
|
1035
|
+
embeddingModel: "embedding_model",
|
|
1036
|
+
hybridSearchEnabled: "hybrid_search_enabled",
|
|
1037
|
+
maxNumResults: "max_num_results",
|
|
1038
|
+
metadata: "metadata",
|
|
1039
|
+
paused: "paused",
|
|
1040
|
+
publicEndpointParams: "public_endpoint_params",
|
|
1041
|
+
reranking: "reranking",
|
|
1042
|
+
rerankingModel: "reranking_model",
|
|
1043
|
+
rewriteModel: "rewrite_model",
|
|
1044
|
+
rewriteQuery: "rewrite_query",
|
|
1045
|
+
scoreThreshold: "score_threshold",
|
|
1046
|
+
sourceParams: "source_params",
|
|
1047
|
+
summarization: "summarization",
|
|
1048
|
+
summarizationModel: "summarization_model",
|
|
1049
|
+
systemPromptAiSearch: "system_prompt_ai_search",
|
|
1050
|
+
systemPromptIndexSummarization: "system_prompt_index_summarization",
|
|
1051
|
+
systemPromptRewriteQuery: "system_prompt_rewrite_query",
|
|
1052
|
+
tokenId: "token_id",
|
|
1053
|
+
}), T.Http({
|
|
1054
|
+
method: "PUT",
|
|
1055
|
+
path: "/accounts/{account_id}/ai-search/instances/{id}",
|
|
1056
|
+
}));
|
|
1057
|
+
export const UpdateInstanceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1058
|
+
id: Schema.String,
|
|
1059
|
+
accountId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1060
|
+
accountTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1061
|
+
createdAt: Schema.String,
|
|
1062
|
+
internalId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1063
|
+
modifiedAt: Schema.String,
|
|
1064
|
+
source: Schema.String,
|
|
1065
|
+
tokenId: Schema.String,
|
|
1066
|
+
type: Schema.Literals(["r2", "web-crawler"]),
|
|
1067
|
+
vectorizeName: Schema.String,
|
|
1068
|
+
aiGatewayId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1069
|
+
aiSearchModel: Schema.optional(Schema.Union([
|
|
1070
|
+
Schema.Literals([
|
|
1071
|
+
"@cf/meta/llama-3.3-70b-instruct-fp8-fast",
|
|
1072
|
+
"@cf/meta/llama-3.1-8b-instruct-fast",
|
|
1073
|
+
"@cf/meta/llama-3.1-8b-instruct-fp8",
|
|
1074
|
+
"@cf/meta/llama-4-scout-17b-16e-instruct",
|
|
1075
|
+
"@cf/qwen/qwen3-30b-a3b-fp8",
|
|
1076
|
+
"@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
|
|
1077
|
+
"@cf/moonshotai/kimi-k2-instruct",
|
|
1078
|
+
"anthropic/claude-3-7-sonnet",
|
|
1079
|
+
"anthropic/claude-sonnet-4",
|
|
1080
|
+
"anthropic/claude-opus-4",
|
|
1081
|
+
"anthropic/claude-3-5-haiku",
|
|
1082
|
+
"cerebras/qwen-3-235b-a22b-instruct",
|
|
1083
|
+
"cerebras/qwen-3-235b-a22b-thinking",
|
|
1084
|
+
"cerebras/llama-3.3-70b",
|
|
1085
|
+
"cerebras/llama-4-maverick-17b-128e-instruct",
|
|
1086
|
+
"cerebras/llama-4-scout-17b-16e-instruct",
|
|
1087
|
+
"cerebras/gpt-oss-120b",
|
|
1088
|
+
"google-ai-studio/gemini-2.5-flash",
|
|
1089
|
+
"google-ai-studio/gemini-2.5-pro",
|
|
1090
|
+
"grok/grok-4",
|
|
1091
|
+
"groq/llama-3.3-70b-versatile",
|
|
1092
|
+
"groq/llama-3.1-8b-instant",
|
|
1093
|
+
"openai/gpt-5",
|
|
1094
|
+
"openai/gpt-5-mini",
|
|
1095
|
+
"openai/gpt-5-nano",
|
|
1096
|
+
"",
|
|
1097
|
+
]),
|
|
1098
|
+
Schema.Null,
|
|
1099
|
+
])),
|
|
1100
|
+
cache: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1101
|
+
cacheThreshold: Schema.optional(Schema.Union([
|
|
1102
|
+
Schema.Literal("super_strict_match"),
|
|
1103
|
+
Schema.Literal("close_enough"),
|
|
1104
|
+
Schema.Literal("flexible_friend"),
|
|
1105
|
+
Schema.Literal("anything_goes"),
|
|
1106
|
+
Schema.Null,
|
|
1107
|
+
])),
|
|
1108
|
+
chunk: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1109
|
+
chunkOverlap: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1110
|
+
chunkSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1111
|
+
createdBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1112
|
+
embeddingModel: Schema.optional(Schema.Union([
|
|
1113
|
+
Schema.Literals([
|
|
1114
|
+
"@cf/baai/bge-m3",
|
|
1115
|
+
"@cf/baai/bge-large-en-v1.5",
|
|
1116
|
+
"@cf/google/embeddinggemma-300m",
|
|
1117
|
+
"@cf/qwen/qwen3-embedding-0.6b",
|
|
1118
|
+
"google-ai-studio/gemini-embedding-001",
|
|
1119
|
+
"openai/text-embedding-3-small",
|
|
1120
|
+
"openai/text-embedding-3-large",
|
|
1121
|
+
"",
|
|
1122
|
+
]),
|
|
1123
|
+
Schema.Null,
|
|
1124
|
+
])),
|
|
1125
|
+
enable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1126
|
+
engineVersion: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1127
|
+
hybridSearchEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1128
|
+
lastActivity: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1129
|
+
maxNumResults: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1130
|
+
metadata: Schema.optional(Schema.Union([
|
|
1131
|
+
Schema.Struct({
|
|
1132
|
+
createdFromAisearchWizard: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1133
|
+
workerDomain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1134
|
+
}).pipe(Schema.encodeKeys({
|
|
1135
|
+
createdFromAisearchWizard: "created_from_aisearch_wizard",
|
|
1136
|
+
workerDomain: "worker_domain",
|
|
1137
|
+
})),
|
|
1138
|
+
Schema.Null,
|
|
1139
|
+
])),
|
|
1140
|
+
modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1141
|
+
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1142
|
+
publicEndpointId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1143
|
+
publicEndpointParams: Schema.optional(Schema.Union([
|
|
1144
|
+
Schema.Struct({
|
|
1145
|
+
authorizedHosts: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1146
|
+
chatCompletionsEndpoint: Schema.optional(Schema.Union([
|
|
1147
|
+
Schema.Struct({
|
|
1148
|
+
disabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1149
|
+
}),
|
|
1150
|
+
Schema.Null,
|
|
1151
|
+
])),
|
|
1152
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1153
|
+
mcp: Schema.optional(Schema.Union([
|
|
1154
|
+
Schema.Struct({
|
|
1155
|
+
disabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1156
|
+
}),
|
|
1157
|
+
Schema.Null,
|
|
1158
|
+
])),
|
|
1159
|
+
rateLimit: Schema.optional(Schema.Union([
|
|
1160
|
+
Schema.Struct({
|
|
1161
|
+
periodMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1162
|
+
requests: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1163
|
+
technique: Schema.optional(Schema.Union([
|
|
1164
|
+
Schema.Literals(["fixed", "sliding"]),
|
|
1165
|
+
Schema.Null,
|
|
1166
|
+
])),
|
|
1167
|
+
}).pipe(Schema.encodeKeys({
|
|
1168
|
+
periodMs: "period_ms",
|
|
1169
|
+
requests: "requests",
|
|
1170
|
+
technique: "technique",
|
|
1171
|
+
})),
|
|
1172
|
+
Schema.Null,
|
|
1173
|
+
])),
|
|
1174
|
+
searchEndpoint: Schema.optional(Schema.Union([
|
|
1175
|
+
Schema.Struct({
|
|
1176
|
+
disabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1177
|
+
}),
|
|
1178
|
+
Schema.Null,
|
|
1179
|
+
])),
|
|
1180
|
+
}).pipe(Schema.encodeKeys({
|
|
1181
|
+
authorizedHosts: "authorized_hosts",
|
|
1182
|
+
chatCompletionsEndpoint: "chat_completions_endpoint",
|
|
1183
|
+
enabled: "enabled",
|
|
1184
|
+
mcp: "mcp",
|
|
1185
|
+
rateLimit: "rate_limit",
|
|
1186
|
+
searchEndpoint: "search_endpoint",
|
|
1187
|
+
})),
|
|
1188
|
+
Schema.Null,
|
|
1189
|
+
])),
|
|
1190
|
+
reranking: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1191
|
+
rerankingModel: Schema.optional(Schema.Union([
|
|
1192
|
+
Schema.Literals(["@cf/baai/bge-reranker-base", ""]),
|
|
1193
|
+
Schema.Null,
|
|
1194
|
+
])),
|
|
1195
|
+
rewriteModel: Schema.optional(Schema.Union([
|
|
1196
|
+
Schema.Literals([
|
|
1197
|
+
"@cf/meta/llama-3.3-70b-instruct-fp8-fast",
|
|
1198
|
+
"@cf/meta/llama-3.1-8b-instruct-fast",
|
|
1199
|
+
"@cf/meta/llama-3.1-8b-instruct-fp8",
|
|
1200
|
+
"@cf/meta/llama-4-scout-17b-16e-instruct",
|
|
1201
|
+
"@cf/qwen/qwen3-30b-a3b-fp8",
|
|
1202
|
+
"@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
|
|
1203
|
+
"@cf/moonshotai/kimi-k2-instruct",
|
|
1204
|
+
"anthropic/claude-3-7-sonnet",
|
|
1205
|
+
"anthropic/claude-sonnet-4",
|
|
1206
|
+
"anthropic/claude-opus-4",
|
|
1207
|
+
"anthropic/claude-3-5-haiku",
|
|
1208
|
+
"cerebras/qwen-3-235b-a22b-instruct",
|
|
1209
|
+
"cerebras/qwen-3-235b-a22b-thinking",
|
|
1210
|
+
"cerebras/llama-3.3-70b",
|
|
1211
|
+
"cerebras/llama-4-maverick-17b-128e-instruct",
|
|
1212
|
+
"cerebras/llama-4-scout-17b-16e-instruct",
|
|
1213
|
+
"cerebras/gpt-oss-120b",
|
|
1214
|
+
"google-ai-studio/gemini-2.5-flash",
|
|
1215
|
+
"google-ai-studio/gemini-2.5-pro",
|
|
1216
|
+
"grok/grok-4",
|
|
1217
|
+
"groq/llama-3.3-70b-versatile",
|
|
1218
|
+
"groq/llama-3.1-8b-instant",
|
|
1219
|
+
"openai/gpt-5",
|
|
1220
|
+
"openai/gpt-5-mini",
|
|
1221
|
+
"openai/gpt-5-nano",
|
|
1222
|
+
"",
|
|
1223
|
+
]),
|
|
1224
|
+
Schema.Null,
|
|
1225
|
+
])),
|
|
1226
|
+
rewriteQuery: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1227
|
+
scoreThreshold: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1228
|
+
sourceParams: Schema.optional(Schema.Union([
|
|
1229
|
+
Schema.Struct({
|
|
1230
|
+
excludeItems: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1231
|
+
includeItems: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1232
|
+
prefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1233
|
+
r2Jurisdiction: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1234
|
+
webCrawler: Schema.optional(Schema.Union([
|
|
1235
|
+
Schema.Struct({
|
|
1236
|
+
parseOptions: Schema.optional(Schema.Union([
|
|
1237
|
+
Schema.Struct({
|
|
1238
|
+
includeHeaders: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
1239
|
+
includeImages: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1240
|
+
useBrowserRendering: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1241
|
+
}).pipe(Schema.encodeKeys({
|
|
1242
|
+
includeHeaders: "include_headers",
|
|
1243
|
+
includeImages: "include_images",
|
|
1244
|
+
useBrowserRendering: "use_browser_rendering",
|
|
1245
|
+
})),
|
|
1246
|
+
Schema.Null,
|
|
1247
|
+
])),
|
|
1248
|
+
parseType: Schema.optional(Schema.Union([
|
|
1249
|
+
Schema.Literals(["sitemap", "feed-rss"]),
|
|
1250
|
+
Schema.Null,
|
|
1251
|
+
])),
|
|
1252
|
+
storeOptions: Schema.optional(Schema.Union([
|
|
1253
|
+
Schema.Struct({
|
|
1254
|
+
storageId: Schema.String,
|
|
1255
|
+
r2Jurisdiction: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1256
|
+
storageType: Schema.optional(Schema.Union([Schema.Literal("r2"), Schema.Null])),
|
|
1257
|
+
}).pipe(Schema.encodeKeys({
|
|
1258
|
+
storageId: "storage_id",
|
|
1259
|
+
r2Jurisdiction: "r2_jurisdiction",
|
|
1260
|
+
storageType: "storage_type",
|
|
1261
|
+
})),
|
|
1262
|
+
Schema.Null,
|
|
1263
|
+
])),
|
|
1264
|
+
}).pipe(Schema.encodeKeys({
|
|
1265
|
+
parseOptions: "parse_options",
|
|
1266
|
+
parseType: "parse_type",
|
|
1267
|
+
storeOptions: "store_options",
|
|
1268
|
+
})),
|
|
1269
|
+
Schema.Null,
|
|
1270
|
+
])),
|
|
1271
|
+
}).pipe(Schema.encodeKeys({
|
|
1272
|
+
excludeItems: "exclude_items",
|
|
1273
|
+
includeItems: "include_items",
|
|
1274
|
+
prefix: "prefix",
|
|
1275
|
+
r2Jurisdiction: "r2_jurisdiction",
|
|
1276
|
+
webCrawler: "web_crawler",
|
|
1277
|
+
})),
|
|
1278
|
+
Schema.Null,
|
|
1279
|
+
])),
|
|
1280
|
+
status: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1281
|
+
summarization: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1282
|
+
summarizationModel: Schema.optional(Schema.Union([
|
|
1283
|
+
Schema.Literals([
|
|
1284
|
+
"@cf/meta/llama-3.3-70b-instruct-fp8-fast",
|
|
1285
|
+
"@cf/meta/llama-3.1-8b-instruct-fast",
|
|
1286
|
+
"@cf/meta/llama-3.1-8b-instruct-fp8",
|
|
1287
|
+
"@cf/meta/llama-4-scout-17b-16e-instruct",
|
|
1288
|
+
"@cf/qwen/qwen3-30b-a3b-fp8",
|
|
1289
|
+
"@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
|
|
1290
|
+
"@cf/moonshotai/kimi-k2-instruct",
|
|
1291
|
+
"anthropic/claude-3-7-sonnet",
|
|
1292
|
+
"anthropic/claude-sonnet-4",
|
|
1293
|
+
"anthropic/claude-opus-4",
|
|
1294
|
+
"anthropic/claude-3-5-haiku",
|
|
1295
|
+
"cerebras/qwen-3-235b-a22b-instruct",
|
|
1296
|
+
"cerebras/qwen-3-235b-a22b-thinking",
|
|
1297
|
+
"cerebras/llama-3.3-70b",
|
|
1298
|
+
"cerebras/llama-4-maverick-17b-128e-instruct",
|
|
1299
|
+
"cerebras/llama-4-scout-17b-16e-instruct",
|
|
1300
|
+
"cerebras/gpt-oss-120b",
|
|
1301
|
+
"google-ai-studio/gemini-2.5-flash",
|
|
1302
|
+
"google-ai-studio/gemini-2.5-pro",
|
|
1303
|
+
"grok/grok-4",
|
|
1304
|
+
"groq/llama-3.3-70b-versatile",
|
|
1305
|
+
"groq/llama-3.1-8b-instant",
|
|
1306
|
+
"openai/gpt-5",
|
|
1307
|
+
"openai/gpt-5-mini",
|
|
1308
|
+
"openai/gpt-5-nano",
|
|
1309
|
+
"",
|
|
1310
|
+
]),
|
|
1311
|
+
Schema.Null,
|
|
1312
|
+
])),
|
|
1313
|
+
systemPromptAiSearch: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1314
|
+
systemPromptIndexSummarization: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1315
|
+
systemPromptRewriteQuery: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1316
|
+
vectorizeActiveNamespace: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1317
|
+
}).pipe(Schema.encodeKeys({
|
|
1318
|
+
id: "id",
|
|
1319
|
+
accountId: "account_id",
|
|
1320
|
+
accountTag: "account_tag",
|
|
1321
|
+
createdAt: "created_at",
|
|
1322
|
+
internalId: "internal_id",
|
|
1323
|
+
modifiedAt: "modified_at",
|
|
1324
|
+
source: "source",
|
|
1325
|
+
tokenId: "token_id",
|
|
1326
|
+
type: "type",
|
|
1327
|
+
vectorizeName: "vectorize_name",
|
|
1328
|
+
aiGatewayId: "ai_gateway_id",
|
|
1329
|
+
aiSearchModel: "ai_search_model",
|
|
1330
|
+
cache: "cache",
|
|
1331
|
+
cacheThreshold: "cache_threshold",
|
|
1332
|
+
chunk: "chunk",
|
|
1333
|
+
chunkOverlap: "chunk_overlap",
|
|
1334
|
+
chunkSize: "chunk_size",
|
|
1335
|
+
createdBy: "created_by",
|
|
1336
|
+
embeddingModel: "embedding_model",
|
|
1337
|
+
enable: "enable",
|
|
1338
|
+
engineVersion: "engine_version",
|
|
1339
|
+
hybridSearchEnabled: "hybrid_search_enabled",
|
|
1340
|
+
lastActivity: "last_activity",
|
|
1341
|
+
maxNumResults: "max_num_results",
|
|
1342
|
+
metadata: "metadata",
|
|
1343
|
+
modifiedBy: "modified_by",
|
|
1344
|
+
paused: "paused",
|
|
1345
|
+
publicEndpointId: "public_endpoint_id",
|
|
1346
|
+
publicEndpointParams: "public_endpoint_params",
|
|
1347
|
+
reranking: "reranking",
|
|
1348
|
+
rerankingModel: "reranking_model",
|
|
1349
|
+
rewriteModel: "rewrite_model",
|
|
1350
|
+
rewriteQuery: "rewrite_query",
|
|
1351
|
+
scoreThreshold: "score_threshold",
|
|
1352
|
+
sourceParams: "source_params",
|
|
1353
|
+
status: "status",
|
|
1354
|
+
summarization: "summarization",
|
|
1355
|
+
summarizationModel: "summarization_model",
|
|
1356
|
+
systemPromptAiSearch: "system_prompt_ai_search",
|
|
1357
|
+
systemPromptIndexSummarization: "system_prompt_index_summarization",
|
|
1358
|
+
systemPromptRewriteQuery: "system_prompt_rewrite_query",
|
|
1359
|
+
vectorizeActiveNamespace: "vectorize_active_namespace",
|
|
1360
|
+
}));
|
|
1361
|
+
export const updateInstance = API.make(() => ({
|
|
1362
|
+
input: UpdateInstanceRequest,
|
|
1363
|
+
output: UpdateInstanceResponse,
|
|
1364
|
+
errors: [ValidationError, NotFound, InvalidRoute],
|
|
1365
|
+
}));
|
|
1366
|
+
export const DeleteInstanceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1367
|
+
id: Schema.String.pipe(T.HttpPath("id")),
|
|
1368
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1369
|
+
}).pipe(T.Http({
|
|
1370
|
+
method: "DELETE",
|
|
1371
|
+
path: "/accounts/{account_id}/ai-search/instances/{id}",
|
|
1372
|
+
}));
|
|
1373
|
+
export const DeleteInstanceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1374
|
+
id: Schema.String,
|
|
1375
|
+
accountId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1376
|
+
accountTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1377
|
+
createdAt: Schema.String,
|
|
1378
|
+
internalId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1379
|
+
modifiedAt: Schema.String,
|
|
1380
|
+
source: Schema.String,
|
|
1381
|
+
tokenId: Schema.String,
|
|
1382
|
+
type: Schema.Literals(["r2", "web-crawler"]),
|
|
1383
|
+
vectorizeName: Schema.String,
|
|
1384
|
+
aiGatewayId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1385
|
+
aiSearchModel: Schema.optional(Schema.Union([
|
|
1386
|
+
Schema.Literals([
|
|
1387
|
+
"@cf/meta/llama-3.3-70b-instruct-fp8-fast",
|
|
1388
|
+
"@cf/meta/llama-3.1-8b-instruct-fast",
|
|
1389
|
+
"@cf/meta/llama-3.1-8b-instruct-fp8",
|
|
1390
|
+
"@cf/meta/llama-4-scout-17b-16e-instruct",
|
|
1391
|
+
"@cf/qwen/qwen3-30b-a3b-fp8",
|
|
1392
|
+
"@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
|
|
1393
|
+
"@cf/moonshotai/kimi-k2-instruct",
|
|
1394
|
+
"anthropic/claude-3-7-sonnet",
|
|
1395
|
+
"anthropic/claude-sonnet-4",
|
|
1396
|
+
"anthropic/claude-opus-4",
|
|
1397
|
+
"anthropic/claude-3-5-haiku",
|
|
1398
|
+
"cerebras/qwen-3-235b-a22b-instruct",
|
|
1399
|
+
"cerebras/qwen-3-235b-a22b-thinking",
|
|
1400
|
+
"cerebras/llama-3.3-70b",
|
|
1401
|
+
"cerebras/llama-4-maverick-17b-128e-instruct",
|
|
1402
|
+
"cerebras/llama-4-scout-17b-16e-instruct",
|
|
1403
|
+
"cerebras/gpt-oss-120b",
|
|
1404
|
+
"google-ai-studio/gemini-2.5-flash",
|
|
1405
|
+
"google-ai-studio/gemini-2.5-pro",
|
|
1406
|
+
"grok/grok-4",
|
|
1407
|
+
"groq/llama-3.3-70b-versatile",
|
|
1408
|
+
"groq/llama-3.1-8b-instant",
|
|
1409
|
+
"openai/gpt-5",
|
|
1410
|
+
"openai/gpt-5-mini",
|
|
1411
|
+
"openai/gpt-5-nano",
|
|
1412
|
+
"",
|
|
1413
|
+
]),
|
|
1414
|
+
Schema.Null,
|
|
1415
|
+
])),
|
|
1416
|
+
cache: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1417
|
+
cacheThreshold: Schema.optional(Schema.Union([
|
|
1418
|
+
Schema.Literal("super_strict_match"),
|
|
1419
|
+
Schema.Literal("close_enough"),
|
|
1420
|
+
Schema.Literal("flexible_friend"),
|
|
1421
|
+
Schema.Literal("anything_goes"),
|
|
1422
|
+
Schema.Null,
|
|
1423
|
+
])),
|
|
1424
|
+
chunk: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1425
|
+
chunkOverlap: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1426
|
+
chunkSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1427
|
+
createdBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1428
|
+
embeddingModel: Schema.optional(Schema.Union([
|
|
1429
|
+
Schema.Literals([
|
|
1430
|
+
"@cf/baai/bge-m3",
|
|
1431
|
+
"@cf/baai/bge-large-en-v1.5",
|
|
1432
|
+
"@cf/google/embeddinggemma-300m",
|
|
1433
|
+
"@cf/qwen/qwen3-embedding-0.6b",
|
|
1434
|
+
"google-ai-studio/gemini-embedding-001",
|
|
1435
|
+
"openai/text-embedding-3-small",
|
|
1436
|
+
"openai/text-embedding-3-large",
|
|
1437
|
+
"",
|
|
1438
|
+
]),
|
|
1439
|
+
Schema.Null,
|
|
1440
|
+
])),
|
|
1441
|
+
enable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1442
|
+
engineVersion: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1443
|
+
hybridSearchEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1444
|
+
lastActivity: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1445
|
+
maxNumResults: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1446
|
+
metadata: Schema.optional(Schema.Union([
|
|
1447
|
+
Schema.Struct({
|
|
1448
|
+
createdFromAisearchWizard: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1449
|
+
workerDomain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1450
|
+
}).pipe(Schema.encodeKeys({
|
|
1451
|
+
createdFromAisearchWizard: "created_from_aisearch_wizard",
|
|
1452
|
+
workerDomain: "worker_domain",
|
|
1453
|
+
})),
|
|
1454
|
+
Schema.Null,
|
|
1455
|
+
])),
|
|
1456
|
+
modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1457
|
+
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1458
|
+
publicEndpointId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1459
|
+
publicEndpointParams: Schema.optional(Schema.Union([
|
|
1460
|
+
Schema.Struct({
|
|
1461
|
+
authorizedHosts: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1462
|
+
chatCompletionsEndpoint: Schema.optional(Schema.Union([
|
|
1463
|
+
Schema.Struct({
|
|
1464
|
+
disabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1465
|
+
}),
|
|
1466
|
+
Schema.Null,
|
|
1467
|
+
])),
|
|
1468
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1469
|
+
mcp: Schema.optional(Schema.Union([
|
|
1470
|
+
Schema.Struct({
|
|
1471
|
+
disabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1472
|
+
}),
|
|
1473
|
+
Schema.Null,
|
|
1474
|
+
])),
|
|
1475
|
+
rateLimit: Schema.optional(Schema.Union([
|
|
1476
|
+
Schema.Struct({
|
|
1477
|
+
periodMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1478
|
+
requests: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1479
|
+
technique: Schema.optional(Schema.Union([
|
|
1480
|
+
Schema.Literals(["fixed", "sliding"]),
|
|
1481
|
+
Schema.Null,
|
|
1482
|
+
])),
|
|
1483
|
+
}).pipe(Schema.encodeKeys({
|
|
1484
|
+
periodMs: "period_ms",
|
|
1485
|
+
requests: "requests",
|
|
1486
|
+
technique: "technique",
|
|
1487
|
+
})),
|
|
1488
|
+
Schema.Null,
|
|
1489
|
+
])),
|
|
1490
|
+
searchEndpoint: Schema.optional(Schema.Union([
|
|
1491
|
+
Schema.Struct({
|
|
1492
|
+
disabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1493
|
+
}),
|
|
1494
|
+
Schema.Null,
|
|
1495
|
+
])),
|
|
1496
|
+
}).pipe(Schema.encodeKeys({
|
|
1497
|
+
authorizedHosts: "authorized_hosts",
|
|
1498
|
+
chatCompletionsEndpoint: "chat_completions_endpoint",
|
|
1499
|
+
enabled: "enabled",
|
|
1500
|
+
mcp: "mcp",
|
|
1501
|
+
rateLimit: "rate_limit",
|
|
1502
|
+
searchEndpoint: "search_endpoint",
|
|
1503
|
+
})),
|
|
1504
|
+
Schema.Null,
|
|
1505
|
+
])),
|
|
1506
|
+
reranking: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1507
|
+
rerankingModel: Schema.optional(Schema.Union([
|
|
1508
|
+
Schema.Literals(["@cf/baai/bge-reranker-base", ""]),
|
|
1509
|
+
Schema.Null,
|
|
1510
|
+
])),
|
|
1511
|
+
rewriteModel: Schema.optional(Schema.Union([
|
|
1512
|
+
Schema.Literals([
|
|
1513
|
+
"@cf/meta/llama-3.3-70b-instruct-fp8-fast",
|
|
1514
|
+
"@cf/meta/llama-3.1-8b-instruct-fast",
|
|
1515
|
+
"@cf/meta/llama-3.1-8b-instruct-fp8",
|
|
1516
|
+
"@cf/meta/llama-4-scout-17b-16e-instruct",
|
|
1517
|
+
"@cf/qwen/qwen3-30b-a3b-fp8",
|
|
1518
|
+
"@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
|
|
1519
|
+
"@cf/moonshotai/kimi-k2-instruct",
|
|
1520
|
+
"anthropic/claude-3-7-sonnet",
|
|
1521
|
+
"anthropic/claude-sonnet-4",
|
|
1522
|
+
"anthropic/claude-opus-4",
|
|
1523
|
+
"anthropic/claude-3-5-haiku",
|
|
1524
|
+
"cerebras/qwen-3-235b-a22b-instruct",
|
|
1525
|
+
"cerebras/qwen-3-235b-a22b-thinking",
|
|
1526
|
+
"cerebras/llama-3.3-70b",
|
|
1527
|
+
"cerebras/llama-4-maverick-17b-128e-instruct",
|
|
1528
|
+
"cerebras/llama-4-scout-17b-16e-instruct",
|
|
1529
|
+
"cerebras/gpt-oss-120b",
|
|
1530
|
+
"google-ai-studio/gemini-2.5-flash",
|
|
1531
|
+
"google-ai-studio/gemini-2.5-pro",
|
|
1532
|
+
"grok/grok-4",
|
|
1533
|
+
"groq/llama-3.3-70b-versatile",
|
|
1534
|
+
"groq/llama-3.1-8b-instant",
|
|
1535
|
+
"openai/gpt-5",
|
|
1536
|
+
"openai/gpt-5-mini",
|
|
1537
|
+
"openai/gpt-5-nano",
|
|
1538
|
+
"",
|
|
1539
|
+
]),
|
|
1540
|
+
Schema.Null,
|
|
1541
|
+
])),
|
|
1542
|
+
rewriteQuery: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1543
|
+
scoreThreshold: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1544
|
+
sourceParams: Schema.optional(Schema.Union([
|
|
1545
|
+
Schema.Struct({
|
|
1546
|
+
excludeItems: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1547
|
+
includeItems: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1548
|
+
prefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1549
|
+
r2Jurisdiction: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1550
|
+
webCrawler: Schema.optional(Schema.Union([
|
|
1551
|
+
Schema.Struct({
|
|
1552
|
+
parseOptions: Schema.optional(Schema.Union([
|
|
1553
|
+
Schema.Struct({
|
|
1554
|
+
includeHeaders: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
1555
|
+
includeImages: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1556
|
+
useBrowserRendering: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1557
|
+
}).pipe(Schema.encodeKeys({
|
|
1558
|
+
includeHeaders: "include_headers",
|
|
1559
|
+
includeImages: "include_images",
|
|
1560
|
+
useBrowserRendering: "use_browser_rendering",
|
|
1561
|
+
})),
|
|
1562
|
+
Schema.Null,
|
|
1563
|
+
])),
|
|
1564
|
+
parseType: Schema.optional(Schema.Union([
|
|
1565
|
+
Schema.Literals(["sitemap", "feed-rss"]),
|
|
1566
|
+
Schema.Null,
|
|
1567
|
+
])),
|
|
1568
|
+
storeOptions: Schema.optional(Schema.Union([
|
|
1569
|
+
Schema.Struct({
|
|
1570
|
+
storageId: Schema.String,
|
|
1571
|
+
r2Jurisdiction: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1572
|
+
storageType: Schema.optional(Schema.Union([Schema.Literal("r2"), Schema.Null])),
|
|
1573
|
+
}).pipe(Schema.encodeKeys({
|
|
1574
|
+
storageId: "storage_id",
|
|
1575
|
+
r2Jurisdiction: "r2_jurisdiction",
|
|
1576
|
+
storageType: "storage_type",
|
|
1577
|
+
})),
|
|
1578
|
+
Schema.Null,
|
|
1579
|
+
])),
|
|
1580
|
+
}).pipe(Schema.encodeKeys({
|
|
1581
|
+
parseOptions: "parse_options",
|
|
1582
|
+
parseType: "parse_type",
|
|
1583
|
+
storeOptions: "store_options",
|
|
1584
|
+
})),
|
|
1585
|
+
Schema.Null,
|
|
1586
|
+
])),
|
|
1587
|
+
}).pipe(Schema.encodeKeys({
|
|
1588
|
+
excludeItems: "exclude_items",
|
|
1589
|
+
includeItems: "include_items",
|
|
1590
|
+
prefix: "prefix",
|
|
1591
|
+
r2Jurisdiction: "r2_jurisdiction",
|
|
1592
|
+
webCrawler: "web_crawler",
|
|
1593
|
+
})),
|
|
1594
|
+
Schema.Null,
|
|
1595
|
+
])),
|
|
1596
|
+
status: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1597
|
+
summarization: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1598
|
+
summarizationModel: Schema.optional(Schema.Union([
|
|
1599
|
+
Schema.Literals([
|
|
1600
|
+
"@cf/meta/llama-3.3-70b-instruct-fp8-fast",
|
|
1601
|
+
"@cf/meta/llama-3.1-8b-instruct-fast",
|
|
1602
|
+
"@cf/meta/llama-3.1-8b-instruct-fp8",
|
|
1603
|
+
"@cf/meta/llama-4-scout-17b-16e-instruct",
|
|
1604
|
+
"@cf/qwen/qwen3-30b-a3b-fp8",
|
|
1605
|
+
"@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
|
|
1606
|
+
"@cf/moonshotai/kimi-k2-instruct",
|
|
1607
|
+
"anthropic/claude-3-7-sonnet",
|
|
1608
|
+
"anthropic/claude-sonnet-4",
|
|
1609
|
+
"anthropic/claude-opus-4",
|
|
1610
|
+
"anthropic/claude-3-5-haiku",
|
|
1611
|
+
"cerebras/qwen-3-235b-a22b-instruct",
|
|
1612
|
+
"cerebras/qwen-3-235b-a22b-thinking",
|
|
1613
|
+
"cerebras/llama-3.3-70b",
|
|
1614
|
+
"cerebras/llama-4-maverick-17b-128e-instruct",
|
|
1615
|
+
"cerebras/llama-4-scout-17b-16e-instruct",
|
|
1616
|
+
"cerebras/gpt-oss-120b",
|
|
1617
|
+
"google-ai-studio/gemini-2.5-flash",
|
|
1618
|
+
"google-ai-studio/gemini-2.5-pro",
|
|
1619
|
+
"grok/grok-4",
|
|
1620
|
+
"groq/llama-3.3-70b-versatile",
|
|
1621
|
+
"groq/llama-3.1-8b-instant",
|
|
1622
|
+
"openai/gpt-5",
|
|
1623
|
+
"openai/gpt-5-mini",
|
|
1624
|
+
"openai/gpt-5-nano",
|
|
1625
|
+
"",
|
|
1626
|
+
]),
|
|
1627
|
+
Schema.Null,
|
|
1628
|
+
])),
|
|
1629
|
+
systemPromptAiSearch: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1630
|
+
systemPromptIndexSummarization: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1631
|
+
systemPromptRewriteQuery: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1632
|
+
vectorizeActiveNamespace: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1633
|
+
}).pipe(Schema.encodeKeys({
|
|
1634
|
+
id: "id",
|
|
1635
|
+
accountId: "account_id",
|
|
1636
|
+
accountTag: "account_tag",
|
|
1637
|
+
createdAt: "created_at",
|
|
1638
|
+
internalId: "internal_id",
|
|
1639
|
+
modifiedAt: "modified_at",
|
|
1640
|
+
source: "source",
|
|
1641
|
+
tokenId: "token_id",
|
|
1642
|
+
type: "type",
|
|
1643
|
+
vectorizeName: "vectorize_name",
|
|
1644
|
+
aiGatewayId: "ai_gateway_id",
|
|
1645
|
+
aiSearchModel: "ai_search_model",
|
|
1646
|
+
cache: "cache",
|
|
1647
|
+
cacheThreshold: "cache_threshold",
|
|
1648
|
+
chunk: "chunk",
|
|
1649
|
+
chunkOverlap: "chunk_overlap",
|
|
1650
|
+
chunkSize: "chunk_size",
|
|
1651
|
+
createdBy: "created_by",
|
|
1652
|
+
embeddingModel: "embedding_model",
|
|
1653
|
+
enable: "enable",
|
|
1654
|
+
engineVersion: "engine_version",
|
|
1655
|
+
hybridSearchEnabled: "hybrid_search_enabled",
|
|
1656
|
+
lastActivity: "last_activity",
|
|
1657
|
+
maxNumResults: "max_num_results",
|
|
1658
|
+
metadata: "metadata",
|
|
1659
|
+
modifiedBy: "modified_by",
|
|
1660
|
+
paused: "paused",
|
|
1661
|
+
publicEndpointId: "public_endpoint_id",
|
|
1662
|
+
publicEndpointParams: "public_endpoint_params",
|
|
1663
|
+
reranking: "reranking",
|
|
1664
|
+
rerankingModel: "reranking_model",
|
|
1665
|
+
rewriteModel: "rewrite_model",
|
|
1666
|
+
rewriteQuery: "rewrite_query",
|
|
1667
|
+
scoreThreshold: "score_threshold",
|
|
1668
|
+
sourceParams: "source_params",
|
|
1669
|
+
status: "status",
|
|
1670
|
+
summarization: "summarization",
|
|
1671
|
+
summarizationModel: "summarization_model",
|
|
1672
|
+
systemPromptAiSearch: "system_prompt_ai_search",
|
|
1673
|
+
systemPromptIndexSummarization: "system_prompt_index_summarization",
|
|
1674
|
+
systemPromptRewriteQuery: "system_prompt_rewrite_query",
|
|
1675
|
+
vectorizeActiveNamespace: "vectorize_active_namespace",
|
|
1676
|
+
}));
|
|
1677
|
+
export const deleteInstance = API.make(() => ({
|
|
1678
|
+
input: DeleteInstanceRequest,
|
|
1679
|
+
output: DeleteInstanceResponse,
|
|
1680
|
+
errors: [ValidationError, NotFound, InvalidRoute],
|
|
1681
|
+
}));
|
|
1682
|
+
export const ReadInstanceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1683
|
+
id: Schema.String.pipe(T.HttpPath("id")),
|
|
1684
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1685
|
+
}).pipe(T.Http({
|
|
1686
|
+
method: "GET",
|
|
1687
|
+
path: "/accounts/{account_id}/ai-search/instances/{id}",
|
|
1688
|
+
}));
|
|
1689
|
+
export const ReadInstanceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1690
|
+
id: Schema.String,
|
|
1691
|
+
accountId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1692
|
+
accountTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1693
|
+
createdAt: Schema.String,
|
|
1694
|
+
internalId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1695
|
+
modifiedAt: Schema.String,
|
|
1696
|
+
source: Schema.String,
|
|
1697
|
+
tokenId: Schema.String,
|
|
1698
|
+
type: Schema.Literals(["r2", "web-crawler"]),
|
|
1699
|
+
vectorizeName: Schema.String,
|
|
1700
|
+
aiGatewayId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1701
|
+
aiSearchModel: Schema.optional(Schema.Union([
|
|
1702
|
+
Schema.Literals([
|
|
1703
|
+
"@cf/meta/llama-3.3-70b-instruct-fp8-fast",
|
|
1704
|
+
"@cf/meta/llama-3.1-8b-instruct-fast",
|
|
1705
|
+
"@cf/meta/llama-3.1-8b-instruct-fp8",
|
|
1706
|
+
"@cf/meta/llama-4-scout-17b-16e-instruct",
|
|
1707
|
+
"@cf/qwen/qwen3-30b-a3b-fp8",
|
|
1708
|
+
"@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
|
|
1709
|
+
"@cf/moonshotai/kimi-k2-instruct",
|
|
1710
|
+
"anthropic/claude-3-7-sonnet",
|
|
1711
|
+
"anthropic/claude-sonnet-4",
|
|
1712
|
+
"anthropic/claude-opus-4",
|
|
1713
|
+
"anthropic/claude-3-5-haiku",
|
|
1714
|
+
"cerebras/qwen-3-235b-a22b-instruct",
|
|
1715
|
+
"cerebras/qwen-3-235b-a22b-thinking",
|
|
1716
|
+
"cerebras/llama-3.3-70b",
|
|
1717
|
+
"cerebras/llama-4-maverick-17b-128e-instruct",
|
|
1718
|
+
"cerebras/llama-4-scout-17b-16e-instruct",
|
|
1719
|
+
"cerebras/gpt-oss-120b",
|
|
1720
|
+
"google-ai-studio/gemini-2.5-flash",
|
|
1721
|
+
"google-ai-studio/gemini-2.5-pro",
|
|
1722
|
+
"grok/grok-4",
|
|
1723
|
+
"groq/llama-3.3-70b-versatile",
|
|
1724
|
+
"groq/llama-3.1-8b-instant",
|
|
1725
|
+
"openai/gpt-5",
|
|
1726
|
+
"openai/gpt-5-mini",
|
|
1727
|
+
"openai/gpt-5-nano",
|
|
1728
|
+
"",
|
|
1729
|
+
]),
|
|
1730
|
+
Schema.Null,
|
|
1731
|
+
])),
|
|
1732
|
+
cache: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1733
|
+
cacheThreshold: Schema.optional(Schema.Union([
|
|
1734
|
+
Schema.Literal("super_strict_match"),
|
|
1735
|
+
Schema.Literal("close_enough"),
|
|
1736
|
+
Schema.Literal("flexible_friend"),
|
|
1737
|
+
Schema.Literal("anything_goes"),
|
|
1738
|
+
Schema.Null,
|
|
1739
|
+
])),
|
|
1740
|
+
chunk: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1741
|
+
chunkOverlap: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1742
|
+
chunkSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1743
|
+
createdBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1744
|
+
embeddingModel: Schema.optional(Schema.Union([
|
|
1745
|
+
Schema.Literals([
|
|
1746
|
+
"@cf/baai/bge-m3",
|
|
1747
|
+
"@cf/baai/bge-large-en-v1.5",
|
|
1748
|
+
"@cf/google/embeddinggemma-300m",
|
|
1749
|
+
"@cf/qwen/qwen3-embedding-0.6b",
|
|
1750
|
+
"google-ai-studio/gemini-embedding-001",
|
|
1751
|
+
"openai/text-embedding-3-small",
|
|
1752
|
+
"openai/text-embedding-3-large",
|
|
1753
|
+
"",
|
|
1754
|
+
]),
|
|
1755
|
+
Schema.Null,
|
|
1756
|
+
])),
|
|
1757
|
+
enable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1758
|
+
engineVersion: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1759
|
+
hybridSearchEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1760
|
+
lastActivity: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1761
|
+
maxNumResults: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1762
|
+
metadata: Schema.optional(Schema.Union([
|
|
1763
|
+
Schema.Struct({
|
|
1764
|
+
createdFromAisearchWizard: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1765
|
+
workerDomain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1766
|
+
}).pipe(Schema.encodeKeys({
|
|
1767
|
+
createdFromAisearchWizard: "created_from_aisearch_wizard",
|
|
1768
|
+
workerDomain: "worker_domain",
|
|
1769
|
+
})),
|
|
1770
|
+
Schema.Null,
|
|
1771
|
+
])),
|
|
1772
|
+
modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1773
|
+
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1774
|
+
publicEndpointId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1775
|
+
publicEndpointParams: Schema.optional(Schema.Union([
|
|
1776
|
+
Schema.Struct({
|
|
1777
|
+
authorizedHosts: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1778
|
+
chatCompletionsEndpoint: Schema.optional(Schema.Union([
|
|
1779
|
+
Schema.Struct({
|
|
1780
|
+
disabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1781
|
+
}),
|
|
1782
|
+
Schema.Null,
|
|
1783
|
+
])),
|
|
1784
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1785
|
+
mcp: Schema.optional(Schema.Union([
|
|
1786
|
+
Schema.Struct({
|
|
1787
|
+
disabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1788
|
+
}),
|
|
1789
|
+
Schema.Null,
|
|
1790
|
+
])),
|
|
1791
|
+
rateLimit: Schema.optional(Schema.Union([
|
|
1792
|
+
Schema.Struct({
|
|
1793
|
+
periodMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1794
|
+
requests: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1795
|
+
technique: Schema.optional(Schema.Union([
|
|
1796
|
+
Schema.Literals(["fixed", "sliding"]),
|
|
1797
|
+
Schema.Null,
|
|
1798
|
+
])),
|
|
1799
|
+
}).pipe(Schema.encodeKeys({
|
|
1800
|
+
periodMs: "period_ms",
|
|
1801
|
+
requests: "requests",
|
|
1802
|
+
technique: "technique",
|
|
1803
|
+
})),
|
|
1804
|
+
Schema.Null,
|
|
1805
|
+
])),
|
|
1806
|
+
searchEndpoint: Schema.optional(Schema.Union([
|
|
1807
|
+
Schema.Struct({
|
|
1808
|
+
disabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1809
|
+
}),
|
|
1810
|
+
Schema.Null,
|
|
1811
|
+
])),
|
|
1812
|
+
}).pipe(Schema.encodeKeys({
|
|
1813
|
+
authorizedHosts: "authorized_hosts",
|
|
1814
|
+
chatCompletionsEndpoint: "chat_completions_endpoint",
|
|
1815
|
+
enabled: "enabled",
|
|
1816
|
+
mcp: "mcp",
|
|
1817
|
+
rateLimit: "rate_limit",
|
|
1818
|
+
searchEndpoint: "search_endpoint",
|
|
1819
|
+
})),
|
|
1820
|
+
Schema.Null,
|
|
1821
|
+
])),
|
|
1822
|
+
reranking: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1823
|
+
rerankingModel: Schema.optional(Schema.Union([
|
|
1824
|
+
Schema.Literals(["@cf/baai/bge-reranker-base", ""]),
|
|
1825
|
+
Schema.Null,
|
|
1826
|
+
])),
|
|
1827
|
+
rewriteModel: Schema.optional(Schema.Union([
|
|
1828
|
+
Schema.Literals([
|
|
1829
|
+
"@cf/meta/llama-3.3-70b-instruct-fp8-fast",
|
|
1830
|
+
"@cf/meta/llama-3.1-8b-instruct-fast",
|
|
1831
|
+
"@cf/meta/llama-3.1-8b-instruct-fp8",
|
|
1832
|
+
"@cf/meta/llama-4-scout-17b-16e-instruct",
|
|
1833
|
+
"@cf/qwen/qwen3-30b-a3b-fp8",
|
|
1834
|
+
"@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
|
|
1835
|
+
"@cf/moonshotai/kimi-k2-instruct",
|
|
1836
|
+
"anthropic/claude-3-7-sonnet",
|
|
1837
|
+
"anthropic/claude-sonnet-4",
|
|
1838
|
+
"anthropic/claude-opus-4",
|
|
1839
|
+
"anthropic/claude-3-5-haiku",
|
|
1840
|
+
"cerebras/qwen-3-235b-a22b-instruct",
|
|
1841
|
+
"cerebras/qwen-3-235b-a22b-thinking",
|
|
1842
|
+
"cerebras/llama-3.3-70b",
|
|
1843
|
+
"cerebras/llama-4-maverick-17b-128e-instruct",
|
|
1844
|
+
"cerebras/llama-4-scout-17b-16e-instruct",
|
|
1845
|
+
"cerebras/gpt-oss-120b",
|
|
1846
|
+
"google-ai-studio/gemini-2.5-flash",
|
|
1847
|
+
"google-ai-studio/gemini-2.5-pro",
|
|
1848
|
+
"grok/grok-4",
|
|
1849
|
+
"groq/llama-3.3-70b-versatile",
|
|
1850
|
+
"groq/llama-3.1-8b-instant",
|
|
1851
|
+
"openai/gpt-5",
|
|
1852
|
+
"openai/gpt-5-mini",
|
|
1853
|
+
"openai/gpt-5-nano",
|
|
1854
|
+
"",
|
|
1855
|
+
]),
|
|
1856
|
+
Schema.Null,
|
|
1857
|
+
])),
|
|
1858
|
+
rewriteQuery: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1859
|
+
scoreThreshold: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1860
|
+
sourceParams: Schema.optional(Schema.Union([
|
|
1861
|
+
Schema.Struct({
|
|
1862
|
+
excludeItems: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1863
|
+
includeItems: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1864
|
+
prefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1865
|
+
r2Jurisdiction: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1866
|
+
webCrawler: Schema.optional(Schema.Union([
|
|
1867
|
+
Schema.Struct({
|
|
1868
|
+
parseOptions: Schema.optional(Schema.Union([
|
|
1869
|
+
Schema.Struct({
|
|
1870
|
+
includeHeaders: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
1871
|
+
includeImages: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1872
|
+
useBrowserRendering: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1873
|
+
}).pipe(Schema.encodeKeys({
|
|
1874
|
+
includeHeaders: "include_headers",
|
|
1875
|
+
includeImages: "include_images",
|
|
1876
|
+
useBrowserRendering: "use_browser_rendering",
|
|
1877
|
+
})),
|
|
1878
|
+
Schema.Null,
|
|
1879
|
+
])),
|
|
1880
|
+
parseType: Schema.optional(Schema.Union([
|
|
1881
|
+
Schema.Literals(["sitemap", "feed-rss"]),
|
|
1882
|
+
Schema.Null,
|
|
1883
|
+
])),
|
|
1884
|
+
storeOptions: Schema.optional(Schema.Union([
|
|
1885
|
+
Schema.Struct({
|
|
1886
|
+
storageId: Schema.String,
|
|
1887
|
+
r2Jurisdiction: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1888
|
+
storageType: Schema.optional(Schema.Union([Schema.Literal("r2"), Schema.Null])),
|
|
1889
|
+
}).pipe(Schema.encodeKeys({
|
|
1890
|
+
storageId: "storage_id",
|
|
1891
|
+
r2Jurisdiction: "r2_jurisdiction",
|
|
1892
|
+
storageType: "storage_type",
|
|
1893
|
+
})),
|
|
1894
|
+
Schema.Null,
|
|
1895
|
+
])),
|
|
1896
|
+
}).pipe(Schema.encodeKeys({
|
|
1897
|
+
parseOptions: "parse_options",
|
|
1898
|
+
parseType: "parse_type",
|
|
1899
|
+
storeOptions: "store_options",
|
|
1900
|
+
})),
|
|
1901
|
+
Schema.Null,
|
|
1902
|
+
])),
|
|
1903
|
+
}).pipe(Schema.encodeKeys({
|
|
1904
|
+
excludeItems: "exclude_items",
|
|
1905
|
+
includeItems: "include_items",
|
|
1906
|
+
prefix: "prefix",
|
|
1907
|
+
r2Jurisdiction: "r2_jurisdiction",
|
|
1908
|
+
webCrawler: "web_crawler",
|
|
1909
|
+
})),
|
|
1910
|
+
Schema.Null,
|
|
1911
|
+
])),
|
|
1912
|
+
status: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1913
|
+
summarization: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1914
|
+
summarizationModel: Schema.optional(Schema.Union([
|
|
1915
|
+
Schema.Literals([
|
|
1916
|
+
"@cf/meta/llama-3.3-70b-instruct-fp8-fast",
|
|
1917
|
+
"@cf/meta/llama-3.1-8b-instruct-fast",
|
|
1918
|
+
"@cf/meta/llama-3.1-8b-instruct-fp8",
|
|
1919
|
+
"@cf/meta/llama-4-scout-17b-16e-instruct",
|
|
1920
|
+
"@cf/qwen/qwen3-30b-a3b-fp8",
|
|
1921
|
+
"@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
|
|
1922
|
+
"@cf/moonshotai/kimi-k2-instruct",
|
|
1923
|
+
"anthropic/claude-3-7-sonnet",
|
|
1924
|
+
"anthropic/claude-sonnet-4",
|
|
1925
|
+
"anthropic/claude-opus-4",
|
|
1926
|
+
"anthropic/claude-3-5-haiku",
|
|
1927
|
+
"cerebras/qwen-3-235b-a22b-instruct",
|
|
1928
|
+
"cerebras/qwen-3-235b-a22b-thinking",
|
|
1929
|
+
"cerebras/llama-3.3-70b",
|
|
1930
|
+
"cerebras/llama-4-maverick-17b-128e-instruct",
|
|
1931
|
+
"cerebras/llama-4-scout-17b-16e-instruct",
|
|
1932
|
+
"cerebras/gpt-oss-120b",
|
|
1933
|
+
"google-ai-studio/gemini-2.5-flash",
|
|
1934
|
+
"google-ai-studio/gemini-2.5-pro",
|
|
1935
|
+
"grok/grok-4",
|
|
1936
|
+
"groq/llama-3.3-70b-versatile",
|
|
1937
|
+
"groq/llama-3.1-8b-instant",
|
|
1938
|
+
"openai/gpt-5",
|
|
1939
|
+
"openai/gpt-5-mini",
|
|
1940
|
+
"openai/gpt-5-nano",
|
|
1941
|
+
"",
|
|
1942
|
+
]),
|
|
1943
|
+
Schema.Null,
|
|
1944
|
+
])),
|
|
1945
|
+
systemPromptAiSearch: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1946
|
+
systemPromptIndexSummarization: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1947
|
+
systemPromptRewriteQuery: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1948
|
+
vectorizeActiveNamespace: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1949
|
+
}).pipe(Schema.encodeKeys({
|
|
1950
|
+
id: "id",
|
|
1951
|
+
accountId: "account_id",
|
|
1952
|
+
accountTag: "account_tag",
|
|
1953
|
+
createdAt: "created_at",
|
|
1954
|
+
internalId: "internal_id",
|
|
1955
|
+
modifiedAt: "modified_at",
|
|
1956
|
+
source: "source",
|
|
1957
|
+
tokenId: "token_id",
|
|
1958
|
+
type: "type",
|
|
1959
|
+
vectorizeName: "vectorize_name",
|
|
1960
|
+
aiGatewayId: "ai_gateway_id",
|
|
1961
|
+
aiSearchModel: "ai_search_model",
|
|
1962
|
+
cache: "cache",
|
|
1963
|
+
cacheThreshold: "cache_threshold",
|
|
1964
|
+
chunk: "chunk",
|
|
1965
|
+
chunkOverlap: "chunk_overlap",
|
|
1966
|
+
chunkSize: "chunk_size",
|
|
1967
|
+
createdBy: "created_by",
|
|
1968
|
+
embeddingModel: "embedding_model",
|
|
1969
|
+
enable: "enable",
|
|
1970
|
+
engineVersion: "engine_version",
|
|
1971
|
+
hybridSearchEnabled: "hybrid_search_enabled",
|
|
1972
|
+
lastActivity: "last_activity",
|
|
1973
|
+
maxNumResults: "max_num_results",
|
|
1974
|
+
metadata: "metadata",
|
|
1975
|
+
modifiedBy: "modified_by",
|
|
1976
|
+
paused: "paused",
|
|
1977
|
+
publicEndpointId: "public_endpoint_id",
|
|
1978
|
+
publicEndpointParams: "public_endpoint_params",
|
|
1979
|
+
reranking: "reranking",
|
|
1980
|
+
rerankingModel: "reranking_model",
|
|
1981
|
+
rewriteModel: "rewrite_model",
|
|
1982
|
+
rewriteQuery: "rewrite_query",
|
|
1983
|
+
scoreThreshold: "score_threshold",
|
|
1984
|
+
sourceParams: "source_params",
|
|
1985
|
+
status: "status",
|
|
1986
|
+
summarization: "summarization",
|
|
1987
|
+
summarizationModel: "summarization_model",
|
|
1988
|
+
systemPromptAiSearch: "system_prompt_ai_search",
|
|
1989
|
+
systemPromptIndexSummarization: "system_prompt_index_summarization",
|
|
1990
|
+
systemPromptRewriteQuery: "system_prompt_rewrite_query",
|
|
1991
|
+
vectorizeActiveNamespace: "vectorize_active_namespace",
|
|
1992
|
+
}));
|
|
1993
|
+
export const readInstance = API.make(() => ({
|
|
1994
|
+
input: ReadInstanceRequest,
|
|
1995
|
+
output: ReadInstanceResponse,
|
|
1996
|
+
errors: [ValidationError, NotFound, InvalidRoute],
|
|
1997
|
+
}));
|
|
1998
|
+
export const StatsInstanceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1999
|
+
id: Schema.String.pipe(T.HttpPath("id")),
|
|
2000
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2001
|
+
}).pipe(T.Http({
|
|
2002
|
+
method: "GET",
|
|
2003
|
+
path: "/accounts/{account_id}/ai-search/instances/{id}/stats",
|
|
2004
|
+
}));
|
|
2005
|
+
export const StatsInstanceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2006
|
+
completed: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2007
|
+
error: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2008
|
+
fileEmbedErrors: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
2009
|
+
indexSourceErrors: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
2010
|
+
lastActivity: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2011
|
+
queued: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2012
|
+
running: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2013
|
+
skipped: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2014
|
+
}).pipe(Schema.encodeKeys({
|
|
2015
|
+
completed: "completed",
|
|
2016
|
+
error: "error",
|
|
2017
|
+
fileEmbedErrors: "file_embed_errors",
|
|
2018
|
+
indexSourceErrors: "index_source_errors",
|
|
2019
|
+
lastActivity: "last_activity",
|
|
2020
|
+
queued: "queued",
|
|
2021
|
+
running: "running",
|
|
2022
|
+
skipped: "skipped",
|
|
2023
|
+
}));
|
|
2024
|
+
export const statsInstance = API.make(() => ({
|
|
2025
|
+
input: StatsInstanceRequest,
|
|
2026
|
+
output: StatsInstanceResponse,
|
|
2027
|
+
errors: [ValidationError, NotFound, InvalidRoute],
|
|
2028
|
+
}));
|
|
2029
|
+
export const GetInstanceItemRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2030
|
+
id: Schema.String.pipe(T.HttpPath("id")),
|
|
2031
|
+
itemId: Schema.String.pipe(T.HttpPath("itemId")),
|
|
2032
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2033
|
+
}).pipe(T.Http({
|
|
2034
|
+
method: "GET",
|
|
2035
|
+
path: "/accounts/{account_id}/ai-search/instances/{id}/items/{itemId}",
|
|
2036
|
+
}));
|
|
2037
|
+
export const GetInstanceItemResponse =
|
|
2038
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2039
|
+
id: Schema.String,
|
|
2040
|
+
key: Schema.String,
|
|
2041
|
+
status: Schema.Literals([
|
|
2042
|
+
"queued",
|
|
2043
|
+
"running",
|
|
2044
|
+
"completed",
|
|
2045
|
+
"error",
|
|
2046
|
+
"skipped",
|
|
2047
|
+
]),
|
|
2048
|
+
error: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2049
|
+
lastSeenAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2050
|
+
nextAction: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2051
|
+
}).pipe(Schema.encodeKeys({
|
|
2052
|
+
id: "id",
|
|
2053
|
+
key: "key",
|
|
2054
|
+
status: "status",
|
|
2055
|
+
error: "error",
|
|
2056
|
+
lastSeenAt: "last_seen_at",
|
|
2057
|
+
nextAction: "next_action",
|
|
2058
|
+
}));
|
|
2059
|
+
export const getInstanceItem = API.make(() => ({
|
|
2060
|
+
input: GetInstanceItemRequest,
|
|
2061
|
+
output: GetInstanceItemResponse,
|
|
2062
|
+
errors: [ValidationError, NotFound, InvalidRoute],
|
|
2063
|
+
}));
|
|
2064
|
+
export const ListInstanceItemsRequest =
|
|
2065
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2066
|
+
id: Schema.String.pipe(T.HttpPath("id")),
|
|
2067
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2068
|
+
search: Schema.optional(Schema.String).pipe(T.HttpQuery("search")),
|
|
2069
|
+
status: Schema.optional(Schema.Literals(["queued", "running", "completed", "error", "skipped"])).pipe(T.HttpQuery("status")),
|
|
2070
|
+
}).pipe(T.Http({
|
|
2071
|
+
method: "GET",
|
|
2072
|
+
path: "/accounts/{account_id}/ai-search/instances/{id}/items",
|
|
2073
|
+
}));
|
|
2074
|
+
export const ListInstanceItemsResponse =
|
|
2075
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
|
|
2076
|
+
id: Schema.String,
|
|
2077
|
+
key: Schema.String,
|
|
2078
|
+
status: Schema.Literals([
|
|
2079
|
+
"queued",
|
|
2080
|
+
"running",
|
|
2081
|
+
"completed",
|
|
2082
|
+
"error",
|
|
2083
|
+
"skipped",
|
|
2084
|
+
]),
|
|
2085
|
+
error: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2086
|
+
lastSeenAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2087
|
+
nextAction: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2088
|
+
}).pipe(Schema.encodeKeys({
|
|
2089
|
+
id: "id",
|
|
2090
|
+
key: "key",
|
|
2091
|
+
status: "status",
|
|
2092
|
+
error: "error",
|
|
2093
|
+
lastSeenAt: "last_seen_at",
|
|
2094
|
+
nextAction: "next_action",
|
|
2095
|
+
})));
|
|
2096
|
+
export const listInstanceItems = API.make(() => ({
|
|
2097
|
+
input: ListInstanceItemsRequest,
|
|
2098
|
+
output: ListInstanceItemsResponse,
|
|
2099
|
+
errors: [],
|
|
2100
|
+
}));
|
|
2101
|
+
export const GetInstanceJobRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2102
|
+
id: Schema.String.pipe(T.HttpPath("id")),
|
|
2103
|
+
jobId: Schema.String.pipe(T.HttpPath("jobId")),
|
|
2104
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2105
|
+
}).pipe(T.Http({
|
|
2106
|
+
method: "GET",
|
|
2107
|
+
path: "/accounts/{account_id}/ai-search/instances/{id}/jobs/{jobId}",
|
|
2108
|
+
}));
|
|
2109
|
+
export const GetInstanceJobResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2110
|
+
id: Schema.String,
|
|
2111
|
+
source: Schema.Literals(["user", "schedule"]),
|
|
2112
|
+
endReason: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2113
|
+
endedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2114
|
+
lastSeenAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2115
|
+
startedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2116
|
+
}).pipe(Schema.encodeKeys({
|
|
2117
|
+
id: "id",
|
|
2118
|
+
source: "source",
|
|
2119
|
+
endReason: "end_reason",
|
|
2120
|
+
endedAt: "ended_at",
|
|
2121
|
+
lastSeenAt: "last_seen_at",
|
|
2122
|
+
startedAt: "started_at",
|
|
2123
|
+
}));
|
|
2124
|
+
export const getInstanceJob = API.make(() => ({
|
|
2125
|
+
input: GetInstanceJobRequest,
|
|
2126
|
+
output: GetInstanceJobResponse,
|
|
2127
|
+
errors: [ValidationError, NotFound, InvalidRoute],
|
|
2128
|
+
}));
|
|
2129
|
+
export const ListInstanceJobsRequest =
|
|
2130
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2131
|
+
id: Schema.String.pipe(T.HttpPath("id")),
|
|
2132
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2133
|
+
}).pipe(T.Http({
|
|
2134
|
+
method: "GET",
|
|
2135
|
+
path: "/accounts/{account_id}/ai-search/instances/{id}/jobs",
|
|
2136
|
+
}));
|
|
2137
|
+
export const ListInstanceJobsResponse =
|
|
2138
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
|
|
2139
|
+
id: Schema.String,
|
|
2140
|
+
source: Schema.Literals(["user", "schedule"]),
|
|
2141
|
+
endReason: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2142
|
+
endedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2143
|
+
lastSeenAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2144
|
+
startedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2145
|
+
}).pipe(Schema.encodeKeys({
|
|
2146
|
+
id: "id",
|
|
2147
|
+
source: "source",
|
|
2148
|
+
endReason: "end_reason",
|
|
2149
|
+
endedAt: "ended_at",
|
|
2150
|
+
lastSeenAt: "last_seen_at",
|
|
2151
|
+
startedAt: "started_at",
|
|
2152
|
+
})));
|
|
2153
|
+
export const listInstanceJobs = API.make(() => ({
|
|
2154
|
+
input: ListInstanceJobsRequest,
|
|
2155
|
+
output: ListInstanceJobsResponse,
|
|
2156
|
+
errors: [],
|
|
2157
|
+
}));
|
|
2158
|
+
export const CreateInstanceJobRequest =
|
|
2159
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2160
|
+
id: Schema.String.pipe(T.HttpPath("id")),
|
|
2161
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2162
|
+
}).pipe(T.Http({
|
|
2163
|
+
method: "POST",
|
|
2164
|
+
path: "/accounts/{account_id}/ai-search/instances/{id}/jobs",
|
|
2165
|
+
}));
|
|
2166
|
+
export const CreateInstanceJobResponse =
|
|
2167
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2168
|
+
id: Schema.String,
|
|
2169
|
+
source: Schema.Literals(["user", "schedule"]),
|
|
2170
|
+
endReason: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2171
|
+
endedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2172
|
+
lastSeenAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2173
|
+
startedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2174
|
+
}).pipe(Schema.encodeKeys({
|
|
2175
|
+
id: "id",
|
|
2176
|
+
source: "source",
|
|
2177
|
+
endReason: "end_reason",
|
|
2178
|
+
endedAt: "ended_at",
|
|
2179
|
+
lastSeenAt: "last_seen_at",
|
|
2180
|
+
startedAt: "started_at",
|
|
2181
|
+
}));
|
|
2182
|
+
export const createInstanceJob = API.make(() => ({
|
|
2183
|
+
input: CreateInstanceJobRequest,
|
|
2184
|
+
output: CreateInstanceJobResponse,
|
|
2185
|
+
errors: [
|
|
2186
|
+
ValidationError,
|
|
2187
|
+
NotFound,
|
|
2188
|
+
InvalidRoute,
|
|
2189
|
+
UnableToConnect,
|
|
2190
|
+
SyncInCooldown,
|
|
2191
|
+
],
|
|
2192
|
+
}));
|
|
2193
|
+
export const LogsInstanceJobRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2194
|
+
id: Schema.String.pipe(T.HttpPath("id")),
|
|
2195
|
+
jobId: Schema.String.pipe(T.HttpPath("jobId")),
|
|
2196
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2197
|
+
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
2198
|
+
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
2199
|
+
}).pipe(T.Http({
|
|
2200
|
+
method: "GET",
|
|
2201
|
+
path: "/accounts/{account_id}/ai-search/instances/{id}/jobs/{jobId}/logs",
|
|
2202
|
+
}));
|
|
2203
|
+
export const LogsInstanceJobResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
|
|
2204
|
+
id: Schema.Number,
|
|
2205
|
+
createdAt: Schema.Number,
|
|
2206
|
+
message: Schema.String,
|
|
2207
|
+
messageType: Schema.Number,
|
|
2208
|
+
}).pipe(Schema.encodeKeys({
|
|
2209
|
+
id: "id",
|
|
2210
|
+
createdAt: "created_at",
|
|
2211
|
+
message: "message",
|
|
2212
|
+
messageType: "message_type",
|
|
2213
|
+
})));
|
|
2214
|
+
export const logsInstanceJob = API.make(() => ({
|
|
2215
|
+
input: LogsInstanceJobRequest,
|
|
2216
|
+
output: LogsInstanceJobResponse,
|
|
2217
|
+
errors: [ValidationError, NotFound, InvalidRoute],
|
|
2218
|
+
}));
|
|
2219
|
+
export const ListTokensRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2220
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2221
|
+
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/ai-search/tokens" }));
|
|
2222
|
+
export const ListTokensResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
|
|
2223
|
+
id: Schema.String,
|
|
2224
|
+
accountId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2225
|
+
accountTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2226
|
+
cfApiId: Schema.String,
|
|
2227
|
+
cfApiKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2228
|
+
createdAt: Schema.String,
|
|
2229
|
+
modifiedAt: Schema.String,
|
|
2230
|
+
name: Schema.String,
|
|
2231
|
+
createdBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2232
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2233
|
+
legacy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2234
|
+
modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2235
|
+
syncedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2236
|
+
}).pipe(Schema.encodeKeys({
|
|
2237
|
+
id: "id",
|
|
2238
|
+
accountId: "account_id",
|
|
2239
|
+
accountTag: "account_tag",
|
|
2240
|
+
cfApiId: "cf_api_id",
|
|
2241
|
+
cfApiKey: "cf_api_key",
|
|
2242
|
+
createdAt: "created_at",
|
|
2243
|
+
modifiedAt: "modified_at",
|
|
2244
|
+
name: "name",
|
|
2245
|
+
createdBy: "created_by",
|
|
2246
|
+
enabled: "enabled",
|
|
2247
|
+
legacy: "legacy",
|
|
2248
|
+
modifiedBy: "modified_by",
|
|
2249
|
+
syncedAt: "synced_at",
|
|
2250
|
+
})));
|
|
2251
|
+
export const listTokens = API.make(() => ({
|
|
2252
|
+
input: ListTokensRequest,
|
|
2253
|
+
output: ListTokensResponse,
|
|
2254
|
+
errors: [InvalidRoute],
|
|
2255
|
+
}));
|
|
2256
|
+
export const CreateTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2257
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2258
|
+
cfApiId: Schema.String,
|
|
2259
|
+
cfApiKey: Schema.String,
|
|
2260
|
+
name: Schema.String,
|
|
2261
|
+
legacy: Schema.optional(Schema.Boolean),
|
|
2262
|
+
}).pipe(Schema.encodeKeys({
|
|
2263
|
+
cfApiId: "cf_api_id",
|
|
2264
|
+
cfApiKey: "cf_api_key",
|
|
2265
|
+
name: "name",
|
|
2266
|
+
legacy: "legacy",
|
|
2267
|
+
}), T.Http({ method: "POST", path: "/accounts/{account_id}/ai-search/tokens" }));
|
|
2268
|
+
export const CreateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2269
|
+
id: Schema.String,
|
|
2270
|
+
accountId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2271
|
+
accountTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2272
|
+
cfApiId: Schema.String,
|
|
2273
|
+
cfApiKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2274
|
+
createdAt: Schema.String,
|
|
2275
|
+
modifiedAt: Schema.String,
|
|
2276
|
+
name: Schema.String,
|
|
2277
|
+
createdBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2278
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2279
|
+
legacy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2280
|
+
modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2281
|
+
syncedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2282
|
+
}).pipe(Schema.encodeKeys({
|
|
2283
|
+
id: "id",
|
|
2284
|
+
accountId: "account_id",
|
|
2285
|
+
accountTag: "account_tag",
|
|
2286
|
+
cfApiId: "cf_api_id",
|
|
2287
|
+
cfApiKey: "cf_api_key",
|
|
2288
|
+
createdAt: "created_at",
|
|
2289
|
+
modifiedAt: "modified_at",
|
|
2290
|
+
name: "name",
|
|
2291
|
+
createdBy: "created_by",
|
|
2292
|
+
enabled: "enabled",
|
|
2293
|
+
legacy: "legacy",
|
|
2294
|
+
modifiedBy: "modified_by",
|
|
2295
|
+
syncedAt: "synced_at",
|
|
2296
|
+
}));
|
|
2297
|
+
export const createToken = API.make(() => ({
|
|
2298
|
+
input: CreateTokenRequest,
|
|
2299
|
+
output: CreateTokenResponse,
|
|
2300
|
+
errors: [ValidationError, NotFound, InvalidRoute],
|
|
2301
|
+
}));
|
|
2302
|
+
export const UpdateTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2303
|
+
id: Schema.String.pipe(T.HttpPath("id")),
|
|
2304
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2305
|
+
}).pipe(T.Http({
|
|
2306
|
+
method: "DELETE",
|
|
2307
|
+
path: "/accounts/{account_id}/ai-search/tokens/{id}",
|
|
2308
|
+
}));
|
|
2309
|
+
export const UpdateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2310
|
+
id: Schema.String,
|
|
2311
|
+
accountId: Schema.String,
|
|
2312
|
+
accountTag: Schema.String,
|
|
2313
|
+
cfApiId: Schema.String,
|
|
2314
|
+
cfApiKey: Schema.String,
|
|
2315
|
+
createdAt: Schema.String,
|
|
2316
|
+
modifiedAt: Schema.String,
|
|
2317
|
+
name: Schema.String,
|
|
2318
|
+
createdBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2319
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2320
|
+
legacy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2321
|
+
modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2322
|
+
syncedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2323
|
+
}).pipe(Schema.encodeKeys({
|
|
2324
|
+
id: "id",
|
|
2325
|
+
accountId: "account_id",
|
|
2326
|
+
accountTag: "account_tag",
|
|
2327
|
+
cfApiId: "cf_api_id",
|
|
2328
|
+
cfApiKey: "cf_api_key",
|
|
2329
|
+
createdAt: "created_at",
|
|
2330
|
+
modifiedAt: "modified_at",
|
|
2331
|
+
name: "name",
|
|
2332
|
+
createdBy: "created_by",
|
|
2333
|
+
enabled: "enabled",
|
|
2334
|
+
legacy: "legacy",
|
|
2335
|
+
modifiedBy: "modified_by",
|
|
2336
|
+
syncedAt: "synced_at",
|
|
2337
|
+
}));
|
|
2338
|
+
export const updateToken = API.make(() => ({
|
|
2339
|
+
input: UpdateTokenRequest,
|
|
2340
|
+
output: UpdateTokenResponse,
|
|
2341
|
+
errors: [ValidationError, NotFound, InvalidRoute],
|
|
2342
|
+
}));
|
|
2343
|
+
export const DeleteTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2344
|
+
id: Schema.String.pipe(T.HttpPath("id")),
|
|
2345
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2346
|
+
}).pipe(T.Http({
|
|
2347
|
+
method: "DELETE",
|
|
2348
|
+
path: "/accounts/{account_id}/ai-search/tokens/{id}",
|
|
2349
|
+
}));
|
|
2350
|
+
export const DeleteTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2351
|
+
id: Schema.String,
|
|
2352
|
+
accountId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2353
|
+
accountTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2354
|
+
cfApiId: Schema.String,
|
|
2355
|
+
cfApiKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2356
|
+
createdAt: Schema.String,
|
|
2357
|
+
modifiedAt: Schema.String,
|
|
2358
|
+
name: Schema.String,
|
|
2359
|
+
createdBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2360
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2361
|
+
legacy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2362
|
+
modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2363
|
+
syncedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2364
|
+
}).pipe(Schema.encodeKeys({
|
|
2365
|
+
id: "id",
|
|
2366
|
+
accountId: "account_id",
|
|
2367
|
+
accountTag: "account_tag",
|
|
2368
|
+
cfApiId: "cf_api_id",
|
|
2369
|
+
cfApiKey: "cf_api_key",
|
|
2370
|
+
createdAt: "created_at",
|
|
2371
|
+
modifiedAt: "modified_at",
|
|
2372
|
+
name: "name",
|
|
2373
|
+
createdBy: "created_by",
|
|
2374
|
+
enabled: "enabled",
|
|
2375
|
+
legacy: "legacy",
|
|
2376
|
+
modifiedBy: "modified_by",
|
|
2377
|
+
syncedAt: "synced_at",
|
|
2378
|
+
}));
|
|
2379
|
+
export const deleteToken = API.make(() => ({
|
|
2380
|
+
input: DeleteTokenRequest,
|
|
2381
|
+
output: DeleteTokenResponse,
|
|
2382
|
+
errors: [ValidationError, NotFound, InvalidRoute],
|
|
2383
|
+
}));
|
|
2384
|
+
export const ReadTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2385
|
+
id: Schema.String.pipe(T.HttpPath("id")),
|
|
2386
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2387
|
+
}).pipe(T.Http({
|
|
2388
|
+
method: "DELETE",
|
|
2389
|
+
path: "/accounts/{account_id}/ai-search/tokens/{id}",
|
|
2390
|
+
}));
|
|
2391
|
+
export const ReadTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2392
|
+
id: Schema.String,
|
|
2393
|
+
accountId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2394
|
+
accountTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2395
|
+
cfApiId: Schema.String,
|
|
2396
|
+
cfApiKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2397
|
+
createdAt: Schema.String,
|
|
2398
|
+
modifiedAt: Schema.String,
|
|
2399
|
+
name: Schema.String,
|
|
2400
|
+
createdBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2401
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2402
|
+
legacy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2403
|
+
modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2404
|
+
syncedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2405
|
+
}).pipe(Schema.encodeKeys({
|
|
2406
|
+
id: "id",
|
|
2407
|
+
accountId: "account_id",
|
|
2408
|
+
accountTag: "account_tag",
|
|
2409
|
+
cfApiId: "cf_api_id",
|
|
2410
|
+
cfApiKey: "cf_api_key",
|
|
2411
|
+
createdAt: "created_at",
|
|
2412
|
+
modifiedAt: "modified_at",
|
|
2413
|
+
name: "name",
|
|
2414
|
+
createdBy: "created_by",
|
|
2415
|
+
enabled: "enabled",
|
|
2416
|
+
legacy: "legacy",
|
|
2417
|
+
modifiedBy: "modified_by",
|
|
2418
|
+
syncedAt: "synced_at",
|
|
2419
|
+
}));
|
|
2420
|
+
export const readToken = API.make(() => ({
|
|
2421
|
+
input: ReadTokenRequest,
|
|
2422
|
+
output: ReadTokenResponse,
|
|
2423
|
+
errors: [ValidationError, NotFound, InvalidRoute],
|
|
2424
|
+
}));
|
|
2425
|
+
//# sourceMappingURL=aisearch.js.map
|