@distilled.cloud/cloudflare 0.29.0 → 0.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/services/abuse-reports.d.ts.map +1 -1
- package/lib/services/abuse-reports.js +26 -26
- package/lib/services/abuse-reports.js.map +1 -1
- package/lib/services/accounts.d.ts.map +1 -1
- package/lib/services/accounts.js +114 -123
- package/lib/services/accounts.js.map +1 -1
- package/lib/services/acm.d.ts.map +1 -1
- package/lib/services/acm.js +23 -23
- package/lib/services/acm.js.map +1 -1
- package/lib/services/addressing.d.ts.map +1 -1
- package/lib/services/addressing.js +132 -132
- package/lib/services/addressing.js.map +1 -1
- package/lib/services/ai-gateway.d.ts.map +1 -1
- package/lib/services/ai-gateway.js +213 -207
- package/lib/services/ai-gateway.js.map +1 -1
- package/lib/services/ai-security.d.ts.map +1 -1
- package/lib/services/ai-security.js +13 -13
- package/lib/services/ai-security.js.map +1 -1
- package/lib/services/ai.d.ts.map +1 -1
- package/lib/services/ai.js +62 -62
- package/lib/services/ai.js.map +1 -1
- package/lib/services/aisearch.d.ts.map +1 -1
- package/lib/services/aisearch.js +187 -193
- package/lib/services/aisearch.js.map +1 -1
- package/lib/services/alerting.d.ts.map +1 -1
- package/lib/services/alerting.js +78 -78
- package/lib/services/alerting.js.map +1 -1
- package/lib/services/api-gateway.d.ts.map +1 -1
- package/lib/services/api-gateway.js +168 -177
- package/lib/services/api-gateway.js.map +1 -1
- package/lib/services/argo.js +12 -12
- package/lib/services/argo.js.map +1 -1
- package/lib/services/audit-logs.d.ts.map +1 -1
- package/lib/services/audit-logs.js +9 -9
- package/lib/services/audit-logs.js.map +1 -1
- package/lib/services/billing.d.ts.map +1 -1
- package/lib/services/billing.js +11 -11
- package/lib/services/billing.js.map +1 -1
- package/lib/services/bot-management.d.ts.map +1 -1
- package/lib/services/bot-management.js +18 -30
- package/lib/services/bot-management.js.map +1 -1
- package/lib/services/botnet-feed.d.ts.map +1 -1
- package/lib/services/botnet-feed.js +12 -12
- package/lib/services/botnet-feed.js.map +1 -1
- package/lib/services/brand-protection.d.ts.map +1 -1
- package/lib/services/brand-protection.js +59 -59
- package/lib/services/brand-protection.js.map +1 -1
- package/lib/services/browser-rendering.d.ts.map +1 -1
- package/lib/services/browser-rendering.js +103 -103
- package/lib/services/browser-rendering.js.map +1 -1
- package/lib/services/cache.d.ts.map +1 -1
- package/lib/services/cache.js +72 -72
- package/lib/services/cache.js.map +1 -1
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +31 -31
- package/lib/services/calls.js.map +1 -1
- package/lib/services/certificate-authorities.js +6 -6
- package/lib/services/certificate-authorities.js.map +1 -1
- package/lib/services/client-certificates.js +18 -18
- package/lib/services/client-certificates.js.map +1 -1
- package/lib/services/cloud-connector.d.ts.map +1 -1
- package/lib/services/cloud-connector.js +8 -8
- package/lib/services/cloud-connector.js.map +1 -1
- package/lib/services/cloudforce-one.d.ts.map +1 -1
- package/lib/services/cloudforce-one.js +178 -178
- package/lib/services/cloudforce-one.js.map +1 -1
- package/lib/services/connectivity.js +25 -25
- package/lib/services/connectivity.js.map +1 -1
- package/lib/services/containers.js +49 -49
- package/lib/services/containers.js.map +1 -1
- package/lib/services/content-scanning.d.ts.map +1 -1
- package/lib/services/content-scanning.js +29 -29
- package/lib/services/content-scanning.js.map +1 -1
- package/lib/services/csam-scanner.d.ts.map +1 -1
- package/lib/services/csam-scanner.js +8 -8
- package/lib/services/csam-scanner.js.map +1 -1
- package/lib/services/custom-certificates.d.ts.map +1 -1
- package/lib/services/custom-certificates.js +24 -24
- package/lib/services/custom-certificates.js.map +1 -1
- package/lib/services/custom-csrs.d.ts.map +1 -1
- package/lib/services/custom-csrs.js +22 -22
- package/lib/services/custom-csrs.js.map +1 -1
- package/lib/services/custom-hostnames.d.ts.map +1 -1
- package/lib/services/custom-hostnames.js +40 -40
- package/lib/services/custom-hostnames.js.map +1 -1
- package/lib/services/custom-nameservers.js +11 -11
- package/lib/services/custom-nameservers.js.map +1 -1
- package/lib/services/custom-pages.d.ts.map +1 -1
- package/lib/services/custom-pages.js +43 -43
- package/lib/services/custom-pages.js.map +1 -1
- package/lib/services/d1.d.ts +4 -4
- package/lib/services/d1.d.ts.map +1 -1
- package/lib/services/d1.js +69 -51
- package/lib/services/d1.js.map +1 -1
- package/lib/services/dcv-delegation.js +3 -3
- package/lib/services/dcv-delegation.js.map +1 -1
- package/lib/services/ddos-protection.js +126 -126
- package/lib/services/ddos-protection.js.map +1 -1
- package/lib/services/diagnostics.js +27 -27
- package/lib/services/diagnostics.js.map +1 -1
- package/lib/services/dls.d.ts.map +1 -1
- package/lib/services/dls.js +26 -26
- package/lib/services/dls.js.map +1 -1
- package/lib/services/dns-firewall.d.ts.map +1 -1
- package/lib/services/dns-firewall.js +34 -34
- package/lib/services/dns-firewall.js.map +1 -1
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +268 -268
- package/lib/services/dns.js.map +1 -1
- package/lib/services/durable-objects.d.ts.map +1 -1
- package/lib/services/durable-objects.js +11 -11
- package/lib/services/durable-objects.js.map +1 -1
- package/lib/services/email-auth.d.ts.map +1 -1
- package/lib/services/email-auth.js +13 -13
- package/lib/services/email-auth.js.map +1 -1
- package/lib/services/email-routing.d.ts.map +1 -1
- package/lib/services/email-routing.js +70 -70
- package/lib/services/email-routing.js.map +1 -1
- package/lib/services/email-security.d.ts.map +1 -1
- package/lib/services/email-security.js +195 -195
- package/lib/services/email-security.js.map +1 -1
- package/lib/services/email-sending.d.ts.map +1 -1
- package/lib/services/email-sending.js +28 -28
- package/lib/services/email-sending.js.map +1 -1
- package/lib/services/filters.d.ts.map +1 -1
- package/lib/services/filters.js +25 -25
- package/lib/services/filters.js.map +1 -1
- package/lib/services/firewall.d.ts.map +1 -1
- package/lib/services/firewall.js +149 -149
- package/lib/services/firewall.js.map +1 -1
- package/lib/services/flagship.d.ts.map +1 -1
- package/lib/services/flagship.js +52 -52
- package/lib/services/flagship.js.map +1 -1
- package/lib/services/fraud.js +8 -8
- package/lib/services/fraud.js.map +1 -1
- package/lib/services/google-tag-gateway.d.ts.map +1 -1
- package/lib/services/google-tag-gateway.js +7 -7
- package/lib/services/google-tag-gateway.js.map +1 -1
- package/lib/services/healthchecks.d.ts.map +1 -1
- package/lib/services/healthchecks.js +31 -31
- package/lib/services/healthchecks.js.map +1 -1
- package/lib/services/hostnames.d.ts.map +1 -1
- package/lib/services/hostnames.js +10 -10
- package/lib/services/hostnames.js.map +1 -1
- package/lib/services/hyperdrive.d.ts.map +1 -1
- package/lib/services/hyperdrive.js +32 -32
- package/lib/services/hyperdrive.js.map +1 -1
- package/lib/services/iam.d.ts.map +1 -1
- package/lib/services/iam.js +113 -113
- package/lib/services/iam.js.map +1 -1
- package/lib/services/images.d.ts.map +1 -1
- package/lib/services/images.js +59 -59
- package/lib/services/images.js.map +1 -1
- package/lib/services/intel.d.ts.map +1 -1
- package/lib/services/intel.js +102 -102
- package/lib/services/intel.js.map +1 -1
- package/lib/services/ips.js +5 -5
- package/lib/services/ips.js.map +1 -1
- package/lib/services/keyless-certificates.js +17 -17
- package/lib/services/keyless-certificates.js.map +1 -1
- package/lib/services/kv.d.ts.map +1 -1
- package/lib/services/kv.js +54 -54
- package/lib/services/kv.js.map +1 -1
- package/lib/services/leaked-credential-checks.d.ts.map +1 -1
- package/lib/services/leaked-credential-checks.js +22 -22
- package/lib/services/leaked-credential-checks.js.map +1 -1
- package/lib/services/load-balancers.d.ts.map +1 -1
- package/lib/services/load-balancers.js +139 -157
- package/lib/services/load-balancers.js.map +1 -1
- package/lib/services/logpush.d.ts.map +1 -1
- package/lib/services/logpush.js +69 -69
- package/lib/services/logpush.js.map +1 -1
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +58 -58
- package/lib/services/logs.js.map +1 -1
- package/lib/services/magic-cloud-networking.d.ts.map +1 -1
- package/lib/services/magic-cloud-networking.js +138 -168
- package/lib/services/magic-cloud-networking.js.map +1 -1
- package/lib/services/magic-network-monitoring.d.ts.map +1 -1
- package/lib/services/magic-network-monitoring.js +47 -65
- package/lib/services/magic-network-monitoring.js.map +1 -1
- package/lib/services/magic-transit.d.ts.map +1 -1
- package/lib/services/magic-transit.js +340 -364
- package/lib/services/magic-transit.js.map +1 -1
- package/lib/services/managed-transforms.js +11 -11
- package/lib/services/managed-transforms.js.map +1 -1
- package/lib/services/memberships.d.ts.map +1 -1
- package/lib/services/memberships.js +25 -25
- package/lib/services/memberships.js.map +1 -1
- package/lib/services/moq.d.ts.map +1 -1
- package/lib/services/moq.js +23 -23
- package/lib/services/moq.js.map +1 -1
- package/lib/services/mtls-certificates.d.ts.map +1 -1
- package/lib/services/mtls-certificates.js +17 -17
- package/lib/services/mtls-certificates.js.map +1 -1
- package/lib/services/network-interconnects.d.ts.map +1 -1
- package/lib/services/network-interconnects.js +56 -56
- package/lib/services/network-interconnects.js.map +1 -1
- package/lib/services/organizations.d.ts.map +1 -1
- package/lib/services/organizations.js +42 -42
- package/lib/services/organizations.js.map +1 -1
- package/lib/services/origin-ca-certificates.js +14 -14
- package/lib/services/origin-ca-certificates.js.map +1 -1
- package/lib/services/origin-post-quantum-encryption.js +6 -6
- package/lib/services/origin-post-quantum-encryption.js.map +1 -1
- package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
- package/lib/services/origin-tls-client-auth.js +52 -52
- package/lib/services/origin-tls-client-auth.js.map +1 -1
- package/lib/services/origin-tls-compliance-modes.js +12 -12
- package/lib/services/origin-tls-compliance-modes.js.map +1 -1
- package/lib/services/page-rules.d.ts.map +1 -1
- package/lib/services/page-rules.js +62 -62
- package/lib/services/page-rules.js.map +1 -1
- package/lib/services/page-shield.d.ts.map +1 -1
- package/lib/services/page-shield.js +45 -48
- package/lib/services/page-shield.js.map +1 -1
- package/lib/services/pages.d.ts.map +1 -1
- package/lib/services/pages.js +78 -78
- package/lib/services/pages.js.map +1 -1
- package/lib/services/pipelines.d.ts.map +1 -1
- package/lib/services/pipelines.js +102 -102
- package/lib/services/pipelines.js.map +1 -1
- package/lib/services/queues.d.ts.map +1 -1
- package/lib/services/queues.js +100 -103
- package/lib/services/queues.js.map +1 -1
- package/lib/services/r2-data-catalog.d.ts.map +1 -1
- package/lib/services/r2-data-catalog.js +42 -42
- package/lib/services/r2-data-catalog.js.map +1 -1
- package/lib/services/r2.d.ts.map +1 -1
- package/lib/services/r2.js +190 -190
- package/lib/services/r2.js.map +1 -1
- package/lib/services/radar.d.ts.map +1 -1
- package/lib/services/radar.js +991 -1009
- package/lib/services/radar.js.map +1 -1
- package/lib/services/rate-limits.d.ts.map +1 -1
- package/lib/services/rate-limits.js +24 -24
- package/lib/services/rate-limits.js.map +1 -1
- package/lib/services/realtime-kit.d.ts.map +1 -1
- package/lib/services/realtime-kit.js +276 -276
- package/lib/services/realtime-kit.js.map +1 -1
- package/lib/services/registrar.d.ts.map +1 -1
- package/lib/services/registrar.js +28 -28
- package/lib/services/registrar.js.map +1 -1
- package/lib/services/request-tracers.d.ts.map +1 -1
- package/lib/services/request-tracers.js +7 -7
- package/lib/services/request-tracers.js.map +1 -1
- package/lib/services/resource-sharing.d.ts.map +1 -1
- package/lib/services/resource-sharing.js +49 -49
- package/lib/services/resource-sharing.js.map +1 -1
- package/lib/services/resource-tagging.d.ts.map +1 -1
- package/lib/services/resource-tagging.js +56 -56
- package/lib/services/resource-tagging.js.map +1 -1
- package/lib/services/rules.d.ts.map +1 -1
- package/lib/services/rules.js +50 -50
- package/lib/services/rules.js.map +1 -1
- package/lib/services/rulesets.d.ts +2 -2
- package/lib/services/rulesets.d.ts.map +1 -1
- package/lib/services/rulesets.js +226 -190
- package/lib/services/rulesets.js.map +1 -1
- package/lib/services/rum.d.ts.map +1 -1
- package/lib/services/rum.js +35 -35
- package/lib/services/rum.js.map +1 -1
- package/lib/services/schema-validation.d.ts.map +1 -1
- package/lib/services/schema-validation.js +43 -46
- package/lib/services/schema-validation.js.map +1 -1
- package/lib/services/secrets-store.d.ts.map +1 -1
- package/lib/services/secrets-store.js +41 -41
- package/lib/services/secrets-store.js.map +1 -1
- package/lib/services/security-center.d.ts.map +1 -1
- package/lib/services/security-center.js +54 -57
- package/lib/services/security-center.js.map +1 -1
- package/lib/services/security-txt.d.ts.map +1 -1
- package/lib/services/security-txt.js +12 -12
- package/lib/services/security-txt.js.map +1 -1
- package/lib/services/snippets.d.ts.map +1 -1
- package/lib/services/snippets.js +31 -31
- package/lib/services/snippets.js.map +1 -1
- package/lib/services/spectrum.d.ts.map +1 -1
- package/lib/services/spectrum.js +35 -35
- package/lib/services/spectrum.js.map +1 -1
- package/lib/services/speed.d.ts.map +1 -1
- package/lib/services/speed.js +41 -41
- package/lib/services/speed.js.map +1 -1
- package/lib/services/ssl.d.ts.map +1 -1
- package/lib/services/ssl.js +48 -48
- package/lib/services/ssl.js.map +1 -1
- package/lib/services/stream.d.ts.map +1 -1
- package/lib/services/stream.js +147 -147
- package/lib/services/stream.js.map +1 -1
- package/lib/services/tenant-custom-nameservers.js +11 -11
- package/lib/services/tenant-custom-nameservers.js.map +1 -1
- package/lib/services/tenants.d.ts.map +1 -1
- package/lib/services/tenants.js +28 -28
- package/lib/services/tenants.js.map +1 -1
- package/lib/services/token-validation.d.ts.map +1 -1
- package/lib/services/token-validation.js +56 -56
- package/lib/services/token-validation.js.map +1 -1
- package/lib/services/turnstile.d.ts.map +1 -1
- package/lib/services/turnstile.js +27 -54
- package/lib/services/turnstile.js.map +1 -1
- package/lib/services/url-normalization.js +9 -9
- package/lib/services/url-normalization.js.map +1 -1
- package/lib/services/url-scanner.d.ts.map +1 -1
- package/lib/services/url-scanner.js +120 -120
- package/lib/services/url-scanner.js.map +1 -1
- package/lib/services/user.d.ts.map +1 -1
- package/lib/services/user.js +95 -95
- package/lib/services/user.js.map +1 -1
- package/lib/services/vectorize.d.ts +10 -10
- package/lib/services/vectorize.d.ts.map +1 -1
- package/lib/services/vectorize.js +59 -57
- package/lib/services/vectorize.js.map +1 -1
- package/lib/services/vulnerability-scanner.d.ts.map +1 -1
- package/lib/services/vulnerability-scanner.js +95 -95
- package/lib/services/vulnerability-scanner.js.map +1 -1
- package/lib/services/waiting-rooms.d.ts.map +1 -1
- package/lib/services/waiting-rooms.js +81 -81
- package/lib/services/waiting-rooms.js.map +1 -1
- package/lib/services/web3.d.ts.map +1 -1
- package/lib/services/web3.js +39 -39
- package/lib/services/web3.js.map +1 -1
- package/lib/services/workers-for-platforms.d.ts.map +1 -1
- package/lib/services/workers-for-platforms.js +139 -139
- package/lib/services/workers-for-platforms.js.map +1 -1
- package/lib/services/workers.d.ts.map +1 -1
- package/lib/services/workers.js +420 -420
- package/lib/services/workers.js.map +1 -1
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +88 -88
- package/lib/services/workflows.js.map +1 -1
- package/lib/services/zaraz.d.ts.map +1 -1
- package/lib/services/zaraz.js +36 -39
- package/lib/services/zaraz.js.map +1 -1
- package/lib/services/zero-trust.d.ts.map +1 -1
- package/lib/services/zero-trust.js +1765 -1771
- package/lib/services/zero-trust.js.map +1 -1
- package/lib/services/zones.d.ts.map +1 -1
- package/lib/services/zones.js +168 -168
- package/lib/services/zones.js.map +1 -1
- package/package.json +3 -2
- package/src/services/abuse-reports.ts +35 -36
- package/src/services/accounts.ts +714 -760
- package/src/services/acm.ts +115 -125
- package/src/services/addressing.ts +484 -512
- package/src/services/ai-gateway.ts +653 -672
- package/src/services/ai-security.ts +47 -53
- package/src/services/ai.ts +172 -185
- package/src/services/aisearch.ts +1814 -1861
- package/src/services/alerting.ts +710 -742
- package/src/services/api-gateway.ts +481 -508
- package/src/services/argo.ts +12 -12
- package/src/services/audit-logs.ts +45 -49
- package/src/services/billing.ts +121 -136
- package/src/services/bot-management.ts +122 -136
- package/src/services/botnet-feed.ts +68 -74
- package/src/services/brand-protection.ts +275 -294
- package/src/services/browser-rendering.ts +758 -769
- package/src/services/cache.ts +148 -158
- package/src/services/calls.ts +110 -120
- package/src/services/certificate-authorities.ts +6 -6
- package/src/services/client-certificates.ts +18 -18
- package/src/services/cloud-connector.ts +11 -12
- package/src/services/cloudforce-one.ts +589 -617
- package/src/services/connectivity.ts +25 -25
- package/src/services/containers.ts +49 -49
- package/src/services/content-scanning.ts +80 -89
- package/src/services/csam-scanner.ts +16 -17
- package/src/services/custom-certificates.ts +36 -38
- package/src/services/custom-csrs.ts +103 -105
- package/src/services/custom-hostnames.ts +44 -45
- package/src/services/custom-nameservers.ts +11 -11
- package/src/services/custom-pages.ts +173 -184
- package/src/services/d1.ts +335 -325
- package/src/services/dcv-delegation.ts +3 -3
- package/src/services/ddos-protection.ts +126 -126
- package/src/services/diagnostics.ts +27 -27
- package/src/services/dls.ts +82 -86
- package/src/services/dns-firewall.ts +65 -69
- package/src/services/dns.ts +1080 -1107
- package/src/services/durable-objects.ts +36 -38
- package/src/services/email-auth.ts +47 -52
- package/src/services/email-routing.ts +264 -288
- package/src/services/email-security.ts +205 -208
- package/src/services/email-sending.ts +94 -99
- package/src/services/filters.ts +97 -111
- package/src/services/firewall.ts +698 -753
- package/src/services/flagship.ts +321 -336
- package/src/services/fraud.ts +8 -8
- package/src/services/google-tag-gateway.ts +17 -19
- package/src/services/healthchecks.ts +269 -286
- package/src/services/hostnames.ts +94 -99
- package/src/services/hyperdrive.ts +310 -324
- package/src/services/iam.ts +205 -212
- package/src/services/images.ts +138 -150
- package/src/services/intel.ts +248 -261
- package/src/services/ips.ts +5 -5
- package/src/services/keyless-certificates.ts +17 -17
- package/src/services/kv.ts +106 -110
- package/src/services/leaked-credential-checks.ts +49 -53
- package/src/services/load-balancers.ts +1119 -1212
- package/src/services/logpush.ts +298 -313
- package/src/services/logs.ts +74 -77
- package/src/services/magic-cloud-networking.ts +1219 -1311
- package/src/services/magic-network-monitoring.ts +647 -685
- package/src/services/magic-transit.ts +1988 -2119
- package/src/services/managed-transforms.ts +11 -11
- package/src/services/memberships.ts +101 -105
- package/src/services/moq.ts +100 -110
- package/src/services/mtls-certificates.ts +30 -32
- package/src/services/network-interconnects.ts +137 -145
- package/src/services/organizations.ts +189 -192
- package/src/services/origin-ca-certificates.ts +14 -14
- package/src/services/origin-post-quantum-encryption.ts +6 -6
- package/src/services/origin-tls-client-auth.ts +219 -236
- package/src/services/origin-tls-compliance-modes.ts +12 -12
- package/src/services/page-rules.ts +365 -373
- package/src/services/page-shield.ts +489 -528
- package/src/services/pages.ts +309 -319
- package/src/services/pipelines.ts +534 -573
- package/src/services/queues.ts +598 -635
- package/src/services/r2-data-catalog.ts +59 -60
- package/src/services/r2.ts +654 -689
- package/src/services/radar.ts +3395 -3487
- package/src/services/rate-limits.ts +81 -93
- package/src/services/realtime-kit.ts +386 -399
- package/src/services/registrar.ts +90 -96
- package/src/services/request-tracers.ts +41 -43
- package/src/services/resource-sharing.ts +293 -305
- package/src/services/resource-tagging.ts +354 -366
- package/src/services/rules.ts +272 -292
- package/src/services/rulesets.ts +1214 -1116
- package/src/services/rum.ts +252 -273
- package/src/services/schema-validation.ts +284 -305
- package/src/services/secrets-store.ts +130 -138
- package/src/services/security-center.ts +64 -69
- package/src/services/security-txt.ts +48 -50
- package/src/services/snippets.ts +132 -142
- package/src/services/spectrum.ts +75 -80
- package/src/services/speed.ts +385 -397
- package/src/services/ssl.ts +64 -65
- package/src/services/stream.ts +658 -718
- package/src/services/tenant-custom-nameservers.ts +11 -11
- package/src/services/tenants.ts +86 -93
- package/src/services/token-validation.ts +145 -151
- package/src/services/turnstile.ts +344 -381
- package/src/services/url-normalization.ts +9 -9
- package/src/services/url-scanner.ts +393 -399
- package/src/services/user.ts +479 -503
- package/src/services/vectorize.ts +215 -230
- package/src/services/vulnerability-scanner.ts +145 -148
- package/src/services/waiting-rooms.ts +759 -825
- package/src/services/web3.ts +186 -197
- package/src/services/workers-for-platforms.ts +408 -432
- package/src/services/workers.ts +1175 -1239
- package/src/services/workflows.ts +585 -616
- package/src/services/zaraz.ts +168 -192
- package/src/services/zero-trust.ts +2965 -3074
- package/src/services/zones.ts +753 -785
package/src/services/aisearch.ts
CHANGED
|
@@ -152,7 +152,7 @@ interface ChatCompletionsInstanceRequestMessageContent {
|
|
|
152
152
|
type: "text";
|
|
153
153
|
}
|
|
154
154
|
const ChatCompletionsInstanceRequestMessageContent =
|
|
155
|
-
/*@__PURE__*/
|
|
155
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
156
156
|
Schema.Struct({
|
|
157
157
|
text: Schema.String,
|
|
158
158
|
type: Schema.Literal("text"),
|
|
@@ -162,7 +162,7 @@ const ChatCompletionsInstanceRequestMessageContent =
|
|
|
162
162
|
interface ImageURL {
|
|
163
163
|
url: string;
|
|
164
164
|
}
|
|
165
|
-
const ImageURL = /*@__PURE__*/
|
|
165
|
+
const ImageURL = /*@__PURE__*/ Schema.suspend(() =>
|
|
166
166
|
Schema.Struct({
|
|
167
167
|
url: Schema.String,
|
|
168
168
|
}),
|
|
@@ -173,7 +173,7 @@ interface ChatCompletionsInstanceRequestMessageContent1 {
|
|
|
173
173
|
type: "image_url";
|
|
174
174
|
}
|
|
175
175
|
const ChatCompletionsInstanceRequestMessageContent1 =
|
|
176
|
-
/*@__PURE__*/
|
|
176
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
177
177
|
Schema.Struct({
|
|
178
178
|
imageUrl: ImageURL,
|
|
179
179
|
type: Schema.Literal("image_url"),
|
|
@@ -190,7 +190,7 @@ interface Message {
|
|
|
190
190
|
| null;
|
|
191
191
|
role: "system" | "developer" | "user" | "assistant" | "tool" | (string & {});
|
|
192
192
|
}
|
|
193
|
-
const Message = /*@__PURE__*/
|
|
193
|
+
const Message = /*@__PURE__*/ Schema.suspend(() =>
|
|
194
194
|
Schema.Struct({
|
|
195
195
|
content: Schema.Union([
|
|
196
196
|
Schema.String,
|
|
@@ -219,7 +219,7 @@ interface Cache {
|
|
|
219
219
|
| null;
|
|
220
220
|
enabled?: boolean | null;
|
|
221
221
|
}
|
|
222
|
-
const Cache = /*@__PURE__*/
|
|
222
|
+
const Cache = /*@__PURE__*/ Schema.suspend(() =>
|
|
223
223
|
Schema.Struct({
|
|
224
224
|
cacheThreshold: Schema.optional(
|
|
225
225
|
Schema.Union([
|
|
@@ -281,7 +281,7 @@ interface QueryRewrite {
|
|
|
281
281
|
| null;
|
|
282
282
|
rewritePrompt?: string | null;
|
|
283
283
|
}
|
|
284
|
-
const QueryRewrite = /*@__PURE__*/
|
|
284
|
+
const QueryRewrite = /*@__PURE__*/ Schema.suspend(() =>
|
|
285
285
|
Schema.Struct({
|
|
286
286
|
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
287
287
|
model: Schema.optional(
|
|
@@ -339,7 +339,7 @@ interface Reranking {
|
|
|
339
339
|
matchThreshold?: number | null;
|
|
340
340
|
model?: "@cf/baai/bge-reranker-base" | "" | (string & {}) | null;
|
|
341
341
|
}
|
|
342
|
-
const Reranking = /*@__PURE__*/
|
|
342
|
+
const Reranking = /*@__PURE__*/ Schema.suspend(() =>
|
|
343
343
|
Schema.Struct({
|
|
344
344
|
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
345
345
|
matchThreshold: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
@@ -367,7 +367,7 @@ interface BoostBy {
|
|
|
367
367
|
/** Boost direction. 'desc' = higher values rank higher (e.g. newer timestamps). 'asc' = lower values rank higher. 'exists' = boost chunks that have the field. 'not_exists' = boost chunks that lack the fi */
|
|
368
368
|
direction?: "asc" | "desc" | "exists" | "not_exists" | (string & {}) | null;
|
|
369
369
|
}
|
|
370
|
-
const BoostBy = /*@__PURE__*/
|
|
370
|
+
const BoostBy = /*@__PURE__*/ Schema.suspend(() =>
|
|
371
371
|
Schema.Struct({
|
|
372
372
|
field: Schema.String,
|
|
373
373
|
direction: Schema.optional(
|
|
@@ -406,7 +406,7 @@ interface Retrieval {
|
|
|
406
406
|
retrievalType?: "vector" | "keyword" | "hybrid" | (string & {}) | null;
|
|
407
407
|
returnOnFailure?: boolean | null;
|
|
408
408
|
}
|
|
409
|
-
const Retrieval = /*@__PURE__*/
|
|
409
|
+
const Retrieval = /*@__PURE__*/ Schema.suspend(() =>
|
|
410
410
|
Schema.Struct({
|
|
411
411
|
boostBy: Schema.optional(
|
|
412
412
|
Schema.Union([Schema.Array(BoostBy), Schema.Null]),
|
|
@@ -534,7 +534,7 @@ interface AisearchOptions {
|
|
|
534
534
|
returnOnFailure?: boolean | null;
|
|
535
535
|
} | null;
|
|
536
536
|
}
|
|
537
|
-
const AisearchOptions = /*@__PURE__*/
|
|
537
|
+
const AisearchOptions = /*@__PURE__*/ Schema.suspend(() =>
|
|
538
538
|
Schema.Struct({
|
|
539
539
|
cache: Schema.optional(Schema.Union([Cache, Schema.Null])),
|
|
540
540
|
queryRewrite: Schema.optional(Schema.Union([QueryRewrite, Schema.Null])),
|
|
@@ -569,7 +569,7 @@ interface Choice {
|
|
|
569
569
|
};
|
|
570
570
|
index?: number | null;
|
|
571
571
|
}
|
|
572
|
-
const Choice = /*@__PURE__*/
|
|
572
|
+
const Choice = /*@__PURE__*/ Schema.suspend(() =>
|
|
573
573
|
Schema.Struct({
|
|
574
574
|
message: Message,
|
|
575
575
|
index: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
@@ -581,7 +581,7 @@ interface Item {
|
|
|
581
581
|
metadata?: Record<string, unknown> | null;
|
|
582
582
|
timestamp?: number | null;
|
|
583
583
|
}
|
|
584
|
-
const Item = /*@__PURE__*/
|
|
584
|
+
const Item = /*@__PURE__*/ Schema.suspend(() =>
|
|
585
585
|
Schema.Struct({
|
|
586
586
|
key: Schema.String,
|
|
587
587
|
metadata: Schema.optional(
|
|
@@ -599,7 +599,7 @@ interface ScoringDetails {
|
|
|
599
599
|
vectorRank?: number | null;
|
|
600
600
|
vectorScore?: number | null;
|
|
601
601
|
}
|
|
602
|
-
const ScoringDetails = /*@__PURE__*/
|
|
602
|
+
const ScoringDetails = /*@__PURE__*/ Schema.suspend(() =>
|
|
603
603
|
Schema.Struct({
|
|
604
604
|
fusionMethod: Schema.optional(
|
|
605
605
|
Schema.Union([
|
|
@@ -643,7 +643,7 @@ interface Chunk {
|
|
|
643
643
|
vectorScore?: number | null;
|
|
644
644
|
} | null;
|
|
645
645
|
}
|
|
646
|
-
const Chunk = /*@__PURE__*/
|
|
646
|
+
const Chunk = /*@__PURE__*/ Schema.suspend(() =>
|
|
647
647
|
Schema.Struct({
|
|
648
648
|
id: Schema.String,
|
|
649
649
|
score: Schema.Number,
|
|
@@ -742,7 +742,7 @@ interface AisearchOptions2 {
|
|
|
742
742
|
returnOnFailure?: boolean | null;
|
|
743
743
|
} | null;
|
|
744
744
|
}
|
|
745
|
-
const AisearchOptions2 = /*@__PURE__*/
|
|
745
|
+
const AisearchOptions2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
746
746
|
Schema.Struct({
|
|
747
747
|
instanceIds: Schema.Array(Schema.String),
|
|
748
748
|
cache: Schema.optional(Schema.Union([Cache, Schema.Null])),
|
|
@@ -780,7 +780,7 @@ interface Chunk2 {
|
|
|
780
780
|
vectorScore?: number | null;
|
|
781
781
|
} | null;
|
|
782
782
|
}
|
|
783
|
-
const Chunk2 = /*@__PURE__*/
|
|
783
|
+
const Chunk2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
784
784
|
Schema.Struct({
|
|
785
785
|
id: Schema.String,
|
|
786
786
|
instanceId: Schema.String,
|
|
@@ -808,7 +808,7 @@ interface Error2 {
|
|
|
808
808
|
instanceId: string;
|
|
809
809
|
message: string;
|
|
810
810
|
}
|
|
811
|
-
const Error2 = /*@__PURE__*/
|
|
811
|
+
const Error2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
812
812
|
Schema.Struct({
|
|
813
813
|
instanceId: Schema.String,
|
|
814
814
|
message: Schema.String,
|
|
@@ -819,7 +819,7 @@ interface CustomMetadata {
|
|
|
819
819
|
dataType: "text" | "number" | "boolean" | "datetime" | (string & {});
|
|
820
820
|
fieldName: string;
|
|
821
821
|
}
|
|
822
|
-
const CustomMetadata = /*@__PURE__*/
|
|
822
|
+
const CustomMetadata = /*@__PURE__*/ Schema.suspend(() =>
|
|
823
823
|
Schema.Struct({
|
|
824
824
|
dataType: Schema.Union([
|
|
825
825
|
Schema.Literals(["text", "number", "boolean", "datetime"]),
|
|
@@ -837,7 +837,7 @@ interface IndexMethod {
|
|
|
837
837
|
/** Enable vector (embedding) storage backend. */
|
|
838
838
|
vector: boolean;
|
|
839
839
|
}
|
|
840
|
-
const IndexMethod = /*@__PURE__*/
|
|
840
|
+
const IndexMethod = /*@__PURE__*/ Schema.suspend(() =>
|
|
841
841
|
Schema.Struct({
|
|
842
842
|
keyword: Schema.Boolean,
|
|
843
843
|
vector: Schema.Boolean,
|
|
@@ -848,7 +848,7 @@ interface IndexingOptions {
|
|
|
848
848
|
/** Tokenizer used for keyword search indexing. porter provides word-level tokenization with Porter stemming (good for natural language queries). trigram enables character-level substring matching (good f */
|
|
849
849
|
keywordTokenizer?: "porter" | "trigram" | (string & {}) | null;
|
|
850
850
|
}
|
|
851
|
-
const IndexingOptions = /*@__PURE__*/
|
|
851
|
+
const IndexingOptions = /*@__PURE__*/ Schema.suspend(() =>
|
|
852
852
|
Schema.Struct({
|
|
853
853
|
keywordTokenizer: Schema.optional(
|
|
854
854
|
Schema.Union([
|
|
@@ -863,7 +863,7 @@ interface Metadata {
|
|
|
863
863
|
createdFromAisearchWizard?: boolean | null;
|
|
864
864
|
workerDomain?: string | null;
|
|
865
865
|
}
|
|
866
|
-
const Metadata = /*@__PURE__*/
|
|
866
|
+
const Metadata = /*@__PURE__*/ Schema.suspend(() =>
|
|
867
867
|
Schema.Struct({
|
|
868
868
|
createdFromAisearchWizard: Schema.optional(
|
|
869
869
|
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
@@ -881,7 +881,7 @@ interface ChatCompletionsEndpoint {
|
|
|
881
881
|
/** Disable chat completions endpoint for this public endpoint */
|
|
882
882
|
disabled?: boolean | null;
|
|
883
883
|
}
|
|
884
|
-
const ChatCompletionsEndpoint = /*@__PURE__*/
|
|
884
|
+
const ChatCompletionsEndpoint = /*@__PURE__*/ Schema.suspend(() =>
|
|
885
885
|
Schema.Struct({
|
|
886
886
|
disabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
887
887
|
}),
|
|
@@ -892,7 +892,7 @@ interface Mcp {
|
|
|
892
892
|
/** Disable MCP endpoint for this public endpoint */
|
|
893
893
|
disabled?: boolean | null;
|
|
894
894
|
}
|
|
895
|
-
const Mcp = /*@__PURE__*/
|
|
895
|
+
const Mcp = /*@__PURE__*/ Schema.suspend(() =>
|
|
896
896
|
Schema.Struct({
|
|
897
897
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
898
898
|
disabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
@@ -904,7 +904,7 @@ interface RateLimit {
|
|
|
904
904
|
requests?: number | null;
|
|
905
905
|
technique?: "fixed" | "sliding" | (string & {}) | null;
|
|
906
906
|
}
|
|
907
|
-
const RateLimit = /*@__PURE__*/
|
|
907
|
+
const RateLimit = /*@__PURE__*/ Schema.suspend(() =>
|
|
908
908
|
Schema.Struct({
|
|
909
909
|
periodMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
910
910
|
requests: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
@@ -935,7 +935,7 @@ interface PublicEndpointParams {
|
|
|
935
935
|
} | null;
|
|
936
936
|
searchEndpoint?: { disabled?: boolean | null } | null;
|
|
937
937
|
}
|
|
938
|
-
const PublicEndpointParams = /*@__PURE__*/
|
|
938
|
+
const PublicEndpointParams = /*@__PURE__*/ Schema.suspend(() =>
|
|
939
939
|
Schema.Struct({
|
|
940
940
|
authorizedHosts: Schema.optional(
|
|
941
941
|
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
@@ -978,7 +978,7 @@ interface RetrievalOptions {
|
|
|
978
978
|
/** Controls which documents are candidates for BM25 scoring. 'and' restricts candidates to documents containing all query terms; 'or' includes any document containing at least one term, ranked by BM25 re */
|
|
979
979
|
keywordMatchMode?: "and" | "or" | (string & {}) | null;
|
|
980
980
|
}
|
|
981
|
-
const RetrievalOptions = /*@__PURE__*/
|
|
981
|
+
const RetrievalOptions = /*@__PURE__*/ Schema.suspend(() =>
|
|
982
982
|
Schema.Struct({
|
|
983
983
|
boostBy: Schema.optional(
|
|
984
984
|
Schema.Union([Schema.Array(BoostBy), Schema.Null]),
|
|
@@ -1003,7 +1003,7 @@ interface ContentSelector {
|
|
|
1003
1003
|
/** CSS selector to extract content from pages matching the path pattern. Must not contain disallowed characters (;, `, $, {, }, \). Must target a single element; if multiple elements match, the selector */
|
|
1004
1004
|
selector: string;
|
|
1005
1005
|
}
|
|
1006
|
-
const ContentSelector = /*@__PURE__*/
|
|
1006
|
+
const ContentSelector = /*@__PURE__*/ Schema.suspend(() =>
|
|
1007
1007
|
Schema.Struct({
|
|
1008
1008
|
path: Schema.String,
|
|
1009
1009
|
selector: Schema.String,
|
|
@@ -1020,7 +1020,7 @@ interface ParseOptions {
|
|
|
1020
1020
|
specificSitemaps?: string[] | null;
|
|
1021
1021
|
useBrowserRendering?: boolean | null;
|
|
1022
1022
|
}
|
|
1023
|
-
const ParseOptions = /*@__PURE__*/
|
|
1023
|
+
const ParseOptions = /*@__PURE__*/ Schema.suspend(() =>
|
|
1024
1024
|
Schema.Struct({
|
|
1025
1025
|
contentSelector: Schema.optional(
|
|
1026
1026
|
Schema.Union([Schema.Array(ContentSelector), Schema.Null]),
|
|
@@ -1056,7 +1056,7 @@ interface WebCrawler {
|
|
|
1056
1056
|
} | null;
|
|
1057
1057
|
parseType?: "sitemap" | "crawl" | (string & {}) | null;
|
|
1058
1058
|
}
|
|
1059
|
-
const WebCrawler = /*@__PURE__*/
|
|
1059
|
+
const WebCrawler = /*@__PURE__*/ Schema.suspend(() =>
|
|
1060
1060
|
Schema.Struct({
|
|
1061
1061
|
parseOptions: Schema.optional(Schema.Union([ParseOptions, Schema.Null])),
|
|
1062
1062
|
parseType: Schema.optional(
|
|
@@ -1091,7 +1091,7 @@ interface SourceParams {
|
|
|
1091
1091
|
parseType?: "sitemap" | "crawl" | (string & {}) | null;
|
|
1092
1092
|
} | null;
|
|
1093
1093
|
}
|
|
1094
|
-
const SourceParams = /*@__PURE__*/
|
|
1094
|
+
const SourceParams = /*@__PURE__*/ Schema.suspend(() =>
|
|
1095
1095
|
Schema.Struct({
|
|
1096
1096
|
excludeItems: Schema.optional(
|
|
1097
1097
|
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
@@ -1287,267 +1287,258 @@ interface ListInstancesResponseResult {
|
|
|
1287
1287
|
tokenId?: string | null;
|
|
1288
1288
|
type?: "r2" | "web-crawler" | null;
|
|
1289
1289
|
}
|
|
1290
|
-
const ListInstancesResponseResult = /*@__PURE__*/
|
|
1291
|
-
(
|
|
1290
|
+
const ListInstancesResponseResult = /*@__PURE__*/ Schema.suspend(() =>
|
|
1291
|
+
Schema.Struct({
|
|
1292
|
+
id: Schema.String,
|
|
1293
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1294
|
+
modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1295
|
+
aiGatewayId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1296
|
+
aiSearchModel: Schema.optional(
|
|
1297
|
+
Schema.Union([
|
|
1298
|
+
Schema.Literal("@cf/meta/llama-3.3-70b-instruct-fp8-fast"),
|
|
1299
|
+
Schema.Literal("@cf/zai-org/glm-4.7-flash"),
|
|
1300
|
+
Schema.Literal("@cf/meta/llama-3.1-8b-instruct-fast"),
|
|
1301
|
+
Schema.Literal("@cf/meta/llama-3.1-8b-instruct-fp8"),
|
|
1302
|
+
Schema.Literal("@cf/meta/llama-4-scout-17b-16e-instruct"),
|
|
1303
|
+
Schema.Literal("@cf/qwen/qwen3-30b-a3b-fp8"),
|
|
1304
|
+
Schema.Literal("@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"),
|
|
1305
|
+
Schema.Literal("@cf/moonshotai/kimi-k2-instruct"),
|
|
1306
|
+
Schema.Literal("@cf/google/gemma-3-12b-it"),
|
|
1307
|
+
Schema.Literal("@cf/google/gemma-4-26b-a4b-it"),
|
|
1308
|
+
Schema.Literal("@cf/moonshotai/kimi-k2.5"),
|
|
1309
|
+
Schema.Literal("anthropic/claude-3-7-sonnet"),
|
|
1310
|
+
Schema.Literal("anthropic/claude-sonnet-4"),
|
|
1311
|
+
Schema.Literal("anthropic/claude-opus-4"),
|
|
1312
|
+
Schema.Literal("anthropic/claude-3-5-haiku"),
|
|
1313
|
+
Schema.Literal("cerebras/qwen-3-235b-a22b-instruct"),
|
|
1314
|
+
Schema.Literal("cerebras/qwen-3-235b-a22b-thinking"),
|
|
1315
|
+
Schema.Literal("cerebras/llama-3.3-70b"),
|
|
1316
|
+
Schema.Literal("cerebras/llama-4-maverick-17b-128e-instruct"),
|
|
1317
|
+
Schema.Literal("cerebras/llama-4-scout-17b-16e-instruct"),
|
|
1318
|
+
Schema.Literal("cerebras/gpt-oss-120b"),
|
|
1319
|
+
Schema.Literal("google-ai-studio/gemini-2.5-flash"),
|
|
1320
|
+
Schema.Literal("google-ai-studio/gemini-2.5-pro"),
|
|
1321
|
+
Schema.Literal("grok/grok-4"),
|
|
1322
|
+
Schema.Literal("groq/llama-3.3-70b-versatile"),
|
|
1323
|
+
Schema.Literal("groq/llama-3.1-8b-instant"),
|
|
1324
|
+
Schema.Literal("openai/gpt-5"),
|
|
1325
|
+
Schema.Literal("openai/gpt-5-mini"),
|
|
1326
|
+
Schema.Literal("openai/gpt-5-nano"),
|
|
1327
|
+
Schema.Literal(""),
|
|
1328
|
+
Schema.Null,
|
|
1329
|
+
]),
|
|
1330
|
+
),
|
|
1331
|
+
cache: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1332
|
+
cacheThreshold: Schema.optional(
|
|
1333
|
+
Schema.Union([
|
|
1334
|
+
Schema.Literal("super_strict_match"),
|
|
1335
|
+
Schema.Literal("close_enough"),
|
|
1336
|
+
Schema.Literal("flexible_friend"),
|
|
1337
|
+
Schema.Literal("anything_goes"),
|
|
1338
|
+
Schema.Null,
|
|
1339
|
+
]),
|
|
1340
|
+
),
|
|
1341
|
+
cacheTtl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1342
|
+
chunkOverlap: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1343
|
+
chunkSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1344
|
+
createdBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1345
|
+
customMetadata: Schema.optional(
|
|
1346
|
+
Schema.Union([Schema.Array(CustomMetadata), Schema.Null]),
|
|
1347
|
+
),
|
|
1348
|
+
embeddingModel: Schema.optional(
|
|
1349
|
+
Schema.Union([
|
|
1350
|
+
Schema.Literal("@cf/qwen/qwen3-embedding-0.6b"),
|
|
1351
|
+
Schema.Literal("@cf/qwen/qwen3-vl-embedding-2b"),
|
|
1352
|
+
Schema.Literal("@cf/baai/bge-m3"),
|
|
1353
|
+
Schema.Literal("@cf/baai/bge-large-en-v1.5"),
|
|
1354
|
+
Schema.Literal("@cf/google/embeddinggemma-300m"),
|
|
1355
|
+
Schema.Literal("google-ai-studio/gemini-embedding-001"),
|
|
1356
|
+
Schema.Literal("google-ai-studio/gemini-embedding-2-preview"),
|
|
1357
|
+
Schema.Literal("openai/text-embedding-3-small"),
|
|
1358
|
+
Schema.Literal("openai/text-embedding-3-large"),
|
|
1359
|
+
Schema.Literal(""),
|
|
1360
|
+
Schema.Null,
|
|
1361
|
+
]),
|
|
1362
|
+
),
|
|
1363
|
+
enable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1364
|
+
engineVersion: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1365
|
+
fusionMethod: Schema.optional(
|
|
1366
|
+
Schema.Union([
|
|
1367
|
+
Schema.Union([Schema.Literals(["max", "rrf"]), Schema.String]),
|
|
1368
|
+
Schema.Null,
|
|
1369
|
+
]),
|
|
1370
|
+
),
|
|
1371
|
+
hybridSearchEnabled: Schema.optional(
|
|
1372
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
1373
|
+
),
|
|
1374
|
+
indexMethod: Schema.optional(Schema.Union([IndexMethod, Schema.Null])),
|
|
1375
|
+
indexingOptions: Schema.optional(
|
|
1376
|
+
Schema.Union([IndexingOptions, Schema.Null]),
|
|
1377
|
+
),
|
|
1378
|
+
lastActivity: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1379
|
+
maxNumResults: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1380
|
+
metadata: Schema.optional(Schema.Union([Metadata, Schema.Null])),
|
|
1381
|
+
modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1382
|
+
namespace: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1383
|
+
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1384
|
+
publicEndpointId: Schema.optional(
|
|
1385
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1386
|
+
),
|
|
1387
|
+
publicEndpointParams: Schema.optional(
|
|
1388
|
+
Schema.Union([PublicEndpointParams, Schema.Null]),
|
|
1389
|
+
),
|
|
1390
|
+
reranking: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1391
|
+
rerankingModel: Schema.optional(
|
|
1392
|
+
Schema.Union([
|
|
1393
|
+
Schema.Literal("@cf/baai/bge-reranker-base"),
|
|
1394
|
+
Schema.Literal(""),
|
|
1395
|
+
Schema.Null,
|
|
1396
|
+
]),
|
|
1397
|
+
),
|
|
1398
|
+
retrievalOptions: Schema.optional(
|
|
1399
|
+
Schema.Union([RetrievalOptions, Schema.Null]),
|
|
1400
|
+
),
|
|
1401
|
+
rewriteModel: Schema.optional(
|
|
1402
|
+
Schema.Union([
|
|
1403
|
+
Schema.Literal("@cf/meta/llama-3.3-70b-instruct-fp8-fast"),
|
|
1404
|
+
Schema.Literal("@cf/zai-org/glm-4.7-flash"),
|
|
1405
|
+
Schema.Literal("@cf/meta/llama-3.1-8b-instruct-fast"),
|
|
1406
|
+
Schema.Literal("@cf/meta/llama-3.1-8b-instruct-fp8"),
|
|
1407
|
+
Schema.Literal("@cf/meta/llama-4-scout-17b-16e-instruct"),
|
|
1408
|
+
Schema.Literal("@cf/qwen/qwen3-30b-a3b-fp8"),
|
|
1409
|
+
Schema.Literal("@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"),
|
|
1410
|
+
Schema.Literal("@cf/moonshotai/kimi-k2-instruct"),
|
|
1411
|
+
Schema.Literal("@cf/google/gemma-3-12b-it"),
|
|
1412
|
+
Schema.Literal("@cf/google/gemma-4-26b-a4b-it"),
|
|
1413
|
+
Schema.Literal("@cf/moonshotai/kimi-k2.5"),
|
|
1414
|
+
Schema.Literal("anthropic/claude-3-7-sonnet"),
|
|
1415
|
+
Schema.Literal("anthropic/claude-sonnet-4"),
|
|
1416
|
+
Schema.Literal("anthropic/claude-opus-4"),
|
|
1417
|
+
Schema.Literal("anthropic/claude-3-5-haiku"),
|
|
1418
|
+
Schema.Literal("cerebras/qwen-3-235b-a22b-instruct"),
|
|
1419
|
+
Schema.Literal("cerebras/qwen-3-235b-a22b-thinking"),
|
|
1420
|
+
Schema.Literal("cerebras/llama-3.3-70b"),
|
|
1421
|
+
Schema.Literal("cerebras/llama-4-maverick-17b-128e-instruct"),
|
|
1422
|
+
Schema.Literal("cerebras/llama-4-scout-17b-16e-instruct"),
|
|
1423
|
+
Schema.Literal("cerebras/gpt-oss-120b"),
|
|
1424
|
+
Schema.Literal("google-ai-studio/gemini-2.5-flash"),
|
|
1425
|
+
Schema.Literal("google-ai-studio/gemini-2.5-pro"),
|
|
1426
|
+
Schema.Literal("grok/grok-4"),
|
|
1427
|
+
Schema.Literal("groq/llama-3.3-70b-versatile"),
|
|
1428
|
+
Schema.Literal("groq/llama-3.1-8b-instant"),
|
|
1429
|
+
Schema.Literal("openai/gpt-5"),
|
|
1430
|
+
Schema.Literal("openai/gpt-5-mini"),
|
|
1431
|
+
Schema.Literal("openai/gpt-5-nano"),
|
|
1432
|
+
Schema.Literal(""),
|
|
1433
|
+
Schema.Null,
|
|
1434
|
+
]),
|
|
1435
|
+
),
|
|
1436
|
+
rewriteQuery: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1437
|
+
scoreThreshold: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1438
|
+
source: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1439
|
+
sourceParams: Schema.optional(Schema.Union([SourceParams, Schema.Null])),
|
|
1440
|
+
status: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1441
|
+
syncInterval: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1442
|
+
tokenId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1443
|
+
type: Schema.optional(
|
|
1444
|
+
Schema.Union([
|
|
1445
|
+
Schema.Literal("r2"),
|
|
1446
|
+
Schema.Literal("web-crawler"),
|
|
1447
|
+
Schema.Null,
|
|
1448
|
+
]),
|
|
1449
|
+
),
|
|
1450
|
+
}).pipe(
|
|
1451
|
+
Schema.encodeKeys({
|
|
1452
|
+
id: "id",
|
|
1453
|
+
createdAt: "created_at",
|
|
1454
|
+
modifiedAt: "modified_at",
|
|
1455
|
+
aiGatewayId: "ai_gateway_id",
|
|
1456
|
+
aiSearchModel: "ai_search_model",
|
|
1457
|
+
cache: "cache",
|
|
1458
|
+
cacheThreshold: "cache_threshold",
|
|
1459
|
+
cacheTtl: "cache_ttl",
|
|
1460
|
+
chunkOverlap: "chunk_overlap",
|
|
1461
|
+
chunkSize: "chunk_size",
|
|
1462
|
+
createdBy: "created_by",
|
|
1463
|
+
customMetadata: "custom_metadata",
|
|
1464
|
+
embeddingModel: "embedding_model",
|
|
1465
|
+
enable: "enable",
|
|
1466
|
+
engineVersion: "engine_version",
|
|
1467
|
+
fusionMethod: "fusion_method",
|
|
1468
|
+
hybridSearchEnabled: "hybrid_search_enabled",
|
|
1469
|
+
indexMethod: "index_method",
|
|
1470
|
+
indexingOptions: "indexing_options",
|
|
1471
|
+
lastActivity: "last_activity",
|
|
1472
|
+
maxNumResults: "max_num_results",
|
|
1473
|
+
metadata: "metadata",
|
|
1474
|
+
modifiedBy: "modified_by",
|
|
1475
|
+
namespace: "namespace",
|
|
1476
|
+
paused: "paused",
|
|
1477
|
+
publicEndpointId: "public_endpoint_id",
|
|
1478
|
+
publicEndpointParams: "public_endpoint_params",
|
|
1479
|
+
reranking: "reranking",
|
|
1480
|
+
rerankingModel: "reranking_model",
|
|
1481
|
+
retrievalOptions: "retrieval_options",
|
|
1482
|
+
rewriteModel: "rewrite_model",
|
|
1483
|
+
rewriteQuery: "rewrite_query",
|
|
1484
|
+
scoreThreshold: "score_threshold",
|
|
1485
|
+
source: "source",
|
|
1486
|
+
sourceParams: "source_params",
|
|
1487
|
+
status: "status",
|
|
1488
|
+
syncInterval: "sync_interval",
|
|
1489
|
+
tokenId: "token_id",
|
|
1490
|
+
type: "type",
|
|
1491
|
+
}),
|
|
1492
|
+
),
|
|
1493
|
+
) as unknown as Schema.Codec<ListInstancesResponseResult>;
|
|
1494
|
+
|
|
1495
|
+
interface ListInstancesResponseResultInfo {
|
|
1496
|
+
count?: number | null;
|
|
1497
|
+
page?: number | null;
|
|
1498
|
+
perPage?: number | null;
|
|
1499
|
+
totalCount?: number | null;
|
|
1500
|
+
}
|
|
1501
|
+
const ListInstancesResponseResultInfo =
|
|
1502
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1292
1503
|
Schema.Struct({
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
Schema.Literal("cerebras/gpt-oss-120b"),
|
|
1320
|
-
Schema.Literal("google-ai-studio/gemini-2.5-flash"),
|
|
1321
|
-
Schema.Literal("google-ai-studio/gemini-2.5-pro"),
|
|
1322
|
-
Schema.Literal("grok/grok-4"),
|
|
1323
|
-
Schema.Literal("groq/llama-3.3-70b-versatile"),
|
|
1324
|
-
Schema.Literal("groq/llama-3.1-8b-instant"),
|
|
1325
|
-
Schema.Literal("openai/gpt-5"),
|
|
1326
|
-
Schema.Literal("openai/gpt-5-mini"),
|
|
1327
|
-
Schema.Literal("openai/gpt-5-nano"),
|
|
1328
|
-
Schema.Literal(""),
|
|
1329
|
-
Schema.Null,
|
|
1330
|
-
]),
|
|
1331
|
-
),
|
|
1332
|
-
cache: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1333
|
-
cacheThreshold: Schema.optional(
|
|
1334
|
-
Schema.Union([
|
|
1335
|
-
Schema.Literal("super_strict_match"),
|
|
1336
|
-
Schema.Literal("close_enough"),
|
|
1337
|
-
Schema.Literal("flexible_friend"),
|
|
1338
|
-
Schema.Literal("anything_goes"),
|
|
1339
|
-
Schema.Null,
|
|
1340
|
-
]),
|
|
1341
|
-
),
|
|
1342
|
-
cacheTtl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1343
|
-
chunkOverlap: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1344
|
-
chunkSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1345
|
-
createdBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1346
|
-
customMetadata: Schema.optional(
|
|
1347
|
-
Schema.Union([Schema.Array(CustomMetadata), Schema.Null]),
|
|
1348
|
-
),
|
|
1349
|
-
embeddingModel: Schema.optional(
|
|
1350
|
-
Schema.Union([
|
|
1351
|
-
Schema.Literal("@cf/qwen/qwen3-embedding-0.6b"),
|
|
1352
|
-
Schema.Literal("@cf/qwen/qwen3-vl-embedding-2b"),
|
|
1353
|
-
Schema.Literal("@cf/baai/bge-m3"),
|
|
1354
|
-
Schema.Literal("@cf/baai/bge-large-en-v1.5"),
|
|
1355
|
-
Schema.Literal("@cf/google/embeddinggemma-300m"),
|
|
1356
|
-
Schema.Literal("google-ai-studio/gemini-embedding-001"),
|
|
1357
|
-
Schema.Literal("google-ai-studio/gemini-embedding-2-preview"),
|
|
1358
|
-
Schema.Literal("openai/text-embedding-3-small"),
|
|
1359
|
-
Schema.Literal("openai/text-embedding-3-large"),
|
|
1360
|
-
Schema.Literal(""),
|
|
1361
|
-
Schema.Null,
|
|
1362
|
-
]),
|
|
1363
|
-
),
|
|
1364
|
-
enable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1365
|
-
engineVersion: Schema.optional(
|
|
1366
|
-
Schema.Union([Schema.Number, Schema.Null]),
|
|
1367
|
-
),
|
|
1368
|
-
fusionMethod: Schema.optional(
|
|
1369
|
-
Schema.Union([
|
|
1370
|
-
Schema.Union([Schema.Literals(["max", "rrf"]), Schema.String]),
|
|
1371
|
-
Schema.Null,
|
|
1372
|
-
]),
|
|
1373
|
-
),
|
|
1374
|
-
hybridSearchEnabled: Schema.optional(
|
|
1504
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1505
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1506
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1507
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1508
|
+
}).pipe(
|
|
1509
|
+
Schema.encodeKeys({
|
|
1510
|
+
count: "count",
|
|
1511
|
+
page: "page",
|
|
1512
|
+
perPage: "per_page",
|
|
1513
|
+
totalCount: "total_count",
|
|
1514
|
+
}),
|
|
1515
|
+
),
|
|
1516
|
+
) as unknown as Schema.Codec<ListInstancesResponseResultInfo>;
|
|
1517
|
+
|
|
1518
|
+
interface CreateInstanceRequestSourceParamsWebCrawlerCrawlOptions {
|
|
1519
|
+
depth?: number | null;
|
|
1520
|
+
includeExternalLinks?: boolean | null;
|
|
1521
|
+
includeSubdomains?: boolean | null;
|
|
1522
|
+
maxAge?: number | null;
|
|
1523
|
+
source?: "all" | "sitemaps" | "links" | (string & {}) | null;
|
|
1524
|
+
}
|
|
1525
|
+
const CreateInstanceRequestSourceParamsWebCrawlerCrawlOptions =
|
|
1526
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1527
|
+
Schema.Struct({
|
|
1528
|
+
depth: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1529
|
+
includeExternalLinks: Schema.optional(
|
|
1375
1530
|
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
1376
1531
|
),
|
|
1377
|
-
|
|
1378
|
-
indexingOptions: Schema.optional(
|
|
1379
|
-
Schema.Union([IndexingOptions, Schema.Null]),
|
|
1380
|
-
),
|
|
1381
|
-
lastActivity: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1382
|
-
maxNumResults: Schema.optional(
|
|
1383
|
-
Schema.Union([Schema.Number, Schema.Null]),
|
|
1384
|
-
),
|
|
1385
|
-
metadata: Schema.optional(Schema.Union([Metadata, Schema.Null])),
|
|
1386
|
-
modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1387
|
-
namespace: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1388
|
-
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1389
|
-
publicEndpointId: Schema.optional(
|
|
1390
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
1391
|
-
),
|
|
1392
|
-
publicEndpointParams: Schema.optional(
|
|
1393
|
-
Schema.Union([PublicEndpointParams, Schema.Null]),
|
|
1394
|
-
),
|
|
1395
|
-
reranking: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1396
|
-
rerankingModel: Schema.optional(
|
|
1397
|
-
Schema.Union([
|
|
1398
|
-
Schema.Literal("@cf/baai/bge-reranker-base"),
|
|
1399
|
-
Schema.Literal(""),
|
|
1400
|
-
Schema.Null,
|
|
1401
|
-
]),
|
|
1402
|
-
),
|
|
1403
|
-
retrievalOptions: Schema.optional(
|
|
1404
|
-
Schema.Union([RetrievalOptions, Schema.Null]),
|
|
1405
|
-
),
|
|
1406
|
-
rewriteModel: Schema.optional(
|
|
1407
|
-
Schema.Union([
|
|
1408
|
-
Schema.Literal("@cf/meta/llama-3.3-70b-instruct-fp8-fast"),
|
|
1409
|
-
Schema.Literal("@cf/zai-org/glm-4.7-flash"),
|
|
1410
|
-
Schema.Literal("@cf/meta/llama-3.1-8b-instruct-fast"),
|
|
1411
|
-
Schema.Literal("@cf/meta/llama-3.1-8b-instruct-fp8"),
|
|
1412
|
-
Schema.Literal("@cf/meta/llama-4-scout-17b-16e-instruct"),
|
|
1413
|
-
Schema.Literal("@cf/qwen/qwen3-30b-a3b-fp8"),
|
|
1414
|
-
Schema.Literal("@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"),
|
|
1415
|
-
Schema.Literal("@cf/moonshotai/kimi-k2-instruct"),
|
|
1416
|
-
Schema.Literal("@cf/google/gemma-3-12b-it"),
|
|
1417
|
-
Schema.Literal("@cf/google/gemma-4-26b-a4b-it"),
|
|
1418
|
-
Schema.Literal("@cf/moonshotai/kimi-k2.5"),
|
|
1419
|
-
Schema.Literal("anthropic/claude-3-7-sonnet"),
|
|
1420
|
-
Schema.Literal("anthropic/claude-sonnet-4"),
|
|
1421
|
-
Schema.Literal("anthropic/claude-opus-4"),
|
|
1422
|
-
Schema.Literal("anthropic/claude-3-5-haiku"),
|
|
1423
|
-
Schema.Literal("cerebras/qwen-3-235b-a22b-instruct"),
|
|
1424
|
-
Schema.Literal("cerebras/qwen-3-235b-a22b-thinking"),
|
|
1425
|
-
Schema.Literal("cerebras/llama-3.3-70b"),
|
|
1426
|
-
Schema.Literal("cerebras/llama-4-maverick-17b-128e-instruct"),
|
|
1427
|
-
Schema.Literal("cerebras/llama-4-scout-17b-16e-instruct"),
|
|
1428
|
-
Schema.Literal("cerebras/gpt-oss-120b"),
|
|
1429
|
-
Schema.Literal("google-ai-studio/gemini-2.5-flash"),
|
|
1430
|
-
Schema.Literal("google-ai-studio/gemini-2.5-pro"),
|
|
1431
|
-
Schema.Literal("grok/grok-4"),
|
|
1432
|
-
Schema.Literal("groq/llama-3.3-70b-versatile"),
|
|
1433
|
-
Schema.Literal("groq/llama-3.1-8b-instant"),
|
|
1434
|
-
Schema.Literal("openai/gpt-5"),
|
|
1435
|
-
Schema.Literal("openai/gpt-5-mini"),
|
|
1436
|
-
Schema.Literal("openai/gpt-5-nano"),
|
|
1437
|
-
Schema.Literal(""),
|
|
1438
|
-
Schema.Null,
|
|
1439
|
-
]),
|
|
1440
|
-
),
|
|
1441
|
-
rewriteQuery: Schema.optional(
|
|
1532
|
+
includeSubdomains: Schema.optional(
|
|
1442
1533
|
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
1443
1534
|
),
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
),
|
|
1447
|
-
source: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1448
|
-
sourceParams: Schema.optional(Schema.Union([SourceParams, Schema.Null])),
|
|
1449
|
-
status: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1450
|
-
syncInterval: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1451
|
-
tokenId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1452
|
-
type: Schema.optional(
|
|
1535
|
+
maxAge: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1536
|
+
source: Schema.optional(
|
|
1453
1537
|
Schema.Union([
|
|
1454
|
-
Schema.
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
),
|
|
1459
|
-
}).pipe(
|
|
1460
|
-
Schema.encodeKeys({
|
|
1461
|
-
id: "id",
|
|
1462
|
-
createdAt: "created_at",
|
|
1463
|
-
modifiedAt: "modified_at",
|
|
1464
|
-
aiGatewayId: "ai_gateway_id",
|
|
1465
|
-
aiSearchModel: "ai_search_model",
|
|
1466
|
-
cache: "cache",
|
|
1467
|
-
cacheThreshold: "cache_threshold",
|
|
1468
|
-
cacheTtl: "cache_ttl",
|
|
1469
|
-
chunkOverlap: "chunk_overlap",
|
|
1470
|
-
chunkSize: "chunk_size",
|
|
1471
|
-
createdBy: "created_by",
|
|
1472
|
-
customMetadata: "custom_metadata",
|
|
1473
|
-
embeddingModel: "embedding_model",
|
|
1474
|
-
enable: "enable",
|
|
1475
|
-
engineVersion: "engine_version",
|
|
1476
|
-
fusionMethod: "fusion_method",
|
|
1477
|
-
hybridSearchEnabled: "hybrid_search_enabled",
|
|
1478
|
-
indexMethod: "index_method",
|
|
1479
|
-
indexingOptions: "indexing_options",
|
|
1480
|
-
lastActivity: "last_activity",
|
|
1481
|
-
maxNumResults: "max_num_results",
|
|
1482
|
-
metadata: "metadata",
|
|
1483
|
-
modifiedBy: "modified_by",
|
|
1484
|
-
namespace: "namespace",
|
|
1485
|
-
paused: "paused",
|
|
1486
|
-
publicEndpointId: "public_endpoint_id",
|
|
1487
|
-
publicEndpointParams: "public_endpoint_params",
|
|
1488
|
-
reranking: "reranking",
|
|
1489
|
-
rerankingModel: "reranking_model",
|
|
1490
|
-
retrievalOptions: "retrieval_options",
|
|
1491
|
-
rewriteModel: "rewrite_model",
|
|
1492
|
-
rewriteQuery: "rewrite_query",
|
|
1493
|
-
scoreThreshold: "score_threshold",
|
|
1494
|
-
source: "source",
|
|
1495
|
-
sourceParams: "source_params",
|
|
1496
|
-
status: "status",
|
|
1497
|
-
syncInterval: "sync_interval",
|
|
1498
|
-
tokenId: "token_id",
|
|
1499
|
-
type: "type",
|
|
1500
|
-
}),
|
|
1501
|
-
),
|
|
1502
|
-
) as unknown as Schema.Codec<ListInstancesResponseResult>;
|
|
1503
|
-
|
|
1504
|
-
interface ListInstancesResponseResultInfo {
|
|
1505
|
-
count?: number | null;
|
|
1506
|
-
page?: number | null;
|
|
1507
|
-
perPage?: number | null;
|
|
1508
|
-
totalCount?: number | null;
|
|
1509
|
-
}
|
|
1510
|
-
const ListInstancesResponseResultInfo =
|
|
1511
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
1512
|
-
Schema.Struct({
|
|
1513
|
-
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1514
|
-
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1515
|
-
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1516
|
-
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1517
|
-
}).pipe(
|
|
1518
|
-
Schema.encodeKeys({
|
|
1519
|
-
count: "count",
|
|
1520
|
-
page: "page",
|
|
1521
|
-
perPage: "per_page",
|
|
1522
|
-
totalCount: "total_count",
|
|
1523
|
-
}),
|
|
1524
|
-
),
|
|
1525
|
-
) as unknown as Schema.Codec<ListInstancesResponseResultInfo>;
|
|
1526
|
-
|
|
1527
|
-
interface CreateInstanceRequestSourceParamsWebCrawlerCrawlOptions {
|
|
1528
|
-
depth?: number | null;
|
|
1529
|
-
includeExternalLinks?: boolean | null;
|
|
1530
|
-
includeSubdomains?: boolean | null;
|
|
1531
|
-
maxAge?: number | null;
|
|
1532
|
-
source?: "all" | "sitemaps" | "links" | (string & {}) | null;
|
|
1533
|
-
}
|
|
1534
|
-
const CreateInstanceRequestSourceParamsWebCrawlerCrawlOptions =
|
|
1535
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
1536
|
-
Schema.Struct({
|
|
1537
|
-
depth: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1538
|
-
includeExternalLinks: Schema.optional(
|
|
1539
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
1540
|
-
),
|
|
1541
|
-
includeSubdomains: Schema.optional(
|
|
1542
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
1543
|
-
),
|
|
1544
|
-
maxAge: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1545
|
-
source: Schema.optional(
|
|
1546
|
-
Schema.Union([
|
|
1547
|
-
Schema.Union([
|
|
1548
|
-
Schema.Literals(["all", "sitemaps", "links"]),
|
|
1549
|
-
Schema.String,
|
|
1550
|
-
]),
|
|
1538
|
+
Schema.Union([
|
|
1539
|
+
Schema.Literals(["all", "sitemaps", "links"]),
|
|
1540
|
+
Schema.String,
|
|
1541
|
+
]),
|
|
1551
1542
|
Schema.Null,
|
|
1552
1543
|
]),
|
|
1553
1544
|
),
|
|
@@ -1568,7 +1559,7 @@ interface CreateInstanceRequestSourceParamsWebCrawlerStoreOptions {
|
|
|
1568
1559
|
storageType?: string | null;
|
|
1569
1560
|
}
|
|
1570
1561
|
const CreateInstanceRequestSourceParamsWebCrawlerStoreOptions =
|
|
1571
|
-
/*@__PURE__*/
|
|
1562
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1572
1563
|
Schema.Struct({
|
|
1573
1564
|
storageId: Schema.String,
|
|
1574
1565
|
r2Jurisdiction: Schema.optional(
|
|
@@ -1606,7 +1597,7 @@ interface WebCrawler2 {
|
|
|
1606
1597
|
storageType?: string | null;
|
|
1607
1598
|
} | null;
|
|
1608
1599
|
}
|
|
1609
|
-
const WebCrawler2 = /*@__PURE__*/
|
|
1600
|
+
const WebCrawler2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
1610
1601
|
Schema.Struct({
|
|
1611
1602
|
parseOptions: Schema.optional(Schema.Union([ParseOptions, Schema.Null])),
|
|
1612
1603
|
parseType: Schema.optional(
|
|
@@ -1670,7 +1661,7 @@ interface SourceParams2 {
|
|
|
1670
1661
|
} | null;
|
|
1671
1662
|
} | null;
|
|
1672
1663
|
}
|
|
1673
|
-
const SourceParams2 = /*@__PURE__*/
|
|
1664
|
+
const SourceParams2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
1674
1665
|
Schema.Struct({
|
|
1675
1666
|
excludeItems: Schema.optional(
|
|
1676
1667
|
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
@@ -1697,7 +1688,7 @@ interface R2 {
|
|
|
1697
1688
|
objectCount: number;
|
|
1698
1689
|
payloadSizeBytes: number;
|
|
1699
1690
|
}
|
|
1700
|
-
const R2 = /*@__PURE__*/
|
|
1691
|
+
const R2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
1701
1692
|
Schema.Struct({
|
|
1702
1693
|
metadataSizeBytes: Schema.Number,
|
|
1703
1694
|
objectCount: Schema.Number,
|
|
@@ -1709,7 +1700,7 @@ interface Vectorize {
|
|
|
1709
1700
|
dimensions: number;
|
|
1710
1701
|
vectorsCount: number;
|
|
1711
1702
|
}
|
|
1712
|
-
const Vectorize = /*@__PURE__*/
|
|
1703
|
+
const Vectorize = /*@__PURE__*/ Schema.suspend(() =>
|
|
1713
1704
|
Schema.Struct({
|
|
1714
1705
|
dimensions: Schema.Number,
|
|
1715
1706
|
vectorsCount: Schema.Number,
|
|
@@ -1726,7 +1717,7 @@ interface Engine {
|
|
|
1726
1717
|
/** Vectorize index metadata (dimensions, vector count). */
|
|
1727
1718
|
vectorize?: { dimensions: number; vectorsCount: number } | null;
|
|
1728
1719
|
}
|
|
1729
|
-
const Engine = /*@__PURE__*/
|
|
1720
|
+
const Engine = /*@__PURE__*/ Schema.suspend(() =>
|
|
1730
1721
|
Schema.Struct({
|
|
1731
1722
|
r2: Schema.optional(Schema.Union([R2, Schema.Null])),
|
|
1732
1723
|
vectorize: Schema.optional(Schema.Union([Vectorize, Schema.Null])),
|
|
@@ -1743,7 +1734,7 @@ interface ListInstanceJobsResponseResult {
|
|
|
1743
1734
|
startedAt?: string | null;
|
|
1744
1735
|
}
|
|
1745
1736
|
const ListInstanceJobsResponseResult =
|
|
1746
|
-
/*@__PURE__*/
|
|
1737
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1747
1738
|
Schema.Struct({
|
|
1748
1739
|
id: Schema.String,
|
|
1749
1740
|
source: Schema.Union([
|
|
@@ -1774,7 +1765,7 @@ interface JobLogsResponseItem {
|
|
|
1774
1765
|
message: string;
|
|
1775
1766
|
messageType: number;
|
|
1776
1767
|
}
|
|
1777
|
-
const JobLogsResponseItem = /*@__PURE__*/
|
|
1768
|
+
const JobLogsResponseItem = /*@__PURE__*/ Schema.suspend(() =>
|
|
1778
1769
|
Schema.Struct({
|
|
1779
1770
|
id: Schema.Number,
|
|
1780
1771
|
createdAt: Schema.Number,
|
|
@@ -1796,19 +1787,18 @@ interface ListNamespacesResponseResult {
|
|
|
1796
1787
|
/** Optional description for the namespace. Max 256 characters. */
|
|
1797
1788
|
description?: string | null;
|
|
1798
1789
|
}
|
|
1799
|
-
const ListNamespacesResponseResult = /*@__PURE__*/
|
|
1800
|
-
(
|
|
1801
|
-
Schema.
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
),
|
|
1790
|
+
const ListNamespacesResponseResult = /*@__PURE__*/ Schema.suspend(() =>
|
|
1791
|
+
Schema.Struct({
|
|
1792
|
+
createdAt: Schema.String,
|
|
1793
|
+
name: Schema.String,
|
|
1794
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1795
|
+
}).pipe(
|
|
1796
|
+
Schema.encodeKeys({
|
|
1797
|
+
createdAt: "created_at",
|
|
1798
|
+
name: "name",
|
|
1799
|
+
description: "description",
|
|
1800
|
+
}),
|
|
1801
|
+
),
|
|
1812
1802
|
) as unknown as Schema.Codec<ListNamespacesResponseResult>;
|
|
1813
1803
|
|
|
1814
1804
|
interface ListNamespaceInstanceItemsResponseResult {
|
|
@@ -1834,7 +1824,7 @@ interface ListNamespaceInstanceItemsResponseResult {
|
|
|
1834
1824
|
error?: string | null;
|
|
1835
1825
|
}
|
|
1836
1826
|
const ListNamespaceInstanceItemsResponseResult =
|
|
1837
|
-
/*@__PURE__*/
|
|
1827
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1838
1828
|
Schema.Struct({
|
|
1839
1829
|
id: Schema.String,
|
|
1840
1830
|
checksum: Schema.String,
|
|
@@ -1888,7 +1878,7 @@ interface File2 {
|
|
|
1888
1878
|
/** Wait for indexing to fully complete before responding. On RAGs with vector indexing enabled, this additionally waits for Vectorize ingestion confirmation (up to 40s) so the returned item reflects a qu */
|
|
1889
1879
|
waitForCompletion?: boolean | null;
|
|
1890
1880
|
}
|
|
1891
|
-
const File2 = /*@__PURE__*/
|
|
1881
|
+
const File2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
1892
1882
|
Schema.Struct({
|
|
1893
1883
|
file: UploadableSchema.pipe(T.HttpFormDataFile()),
|
|
1894
1884
|
metadata: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1915,7 +1905,7 @@ interface ItemChunksResponseItem {
|
|
|
1915
1905
|
endByte?: number | null;
|
|
1916
1906
|
startByte?: number | null;
|
|
1917
1907
|
}
|
|
1918
|
-
const ItemChunksResponseItem = /*@__PURE__*/
|
|
1908
|
+
const ItemChunksResponseItem = /*@__PURE__*/ Schema.suspend(() =>
|
|
1919
1909
|
Schema.Struct({
|
|
1920
1910
|
id: Schema.String,
|
|
1921
1911
|
item: Item,
|
|
@@ -1942,7 +1932,7 @@ interface ItemLogsResponseItem {
|
|
|
1942
1932
|
processingTimeMs: number | null;
|
|
1943
1933
|
timestamp: string;
|
|
1944
1934
|
}
|
|
1945
|
-
const ItemLogsResponseItem = /*@__PURE__*/
|
|
1935
|
+
const ItemLogsResponseItem = /*@__PURE__*/ Schema.suspend(() =>
|
|
1946
1936
|
Schema.Struct({
|
|
1947
1937
|
action: Schema.String,
|
|
1948
1938
|
chunkCount: Schema.Union([Schema.Number, Schema.Null]),
|
|
@@ -1965,31 +1955,30 @@ interface ListTokensResponseResult {
|
|
|
1965
1955
|
legacy?: boolean | null;
|
|
1966
1956
|
modifiedBy?: string | null;
|
|
1967
1957
|
}
|
|
1968
|
-
const ListTokensResponseResult = /*@__PURE__*/
|
|
1969
|
-
(
|
|
1970
|
-
Schema.
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
),
|
|
1958
|
+
const ListTokensResponseResult = /*@__PURE__*/ Schema.suspend(() =>
|
|
1959
|
+
Schema.Struct({
|
|
1960
|
+
id: Schema.String,
|
|
1961
|
+
cfApiId: Schema.String,
|
|
1962
|
+
createdAt: Schema.String,
|
|
1963
|
+
modifiedAt: Schema.String,
|
|
1964
|
+
name: Schema.String,
|
|
1965
|
+
createdBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1966
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1967
|
+
legacy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1968
|
+
modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1969
|
+
}).pipe(
|
|
1970
|
+
Schema.encodeKeys({
|
|
1971
|
+
id: "id",
|
|
1972
|
+
cfApiId: "cf_api_id",
|
|
1973
|
+
createdAt: "created_at",
|
|
1974
|
+
modifiedAt: "modified_at",
|
|
1975
|
+
name: "name",
|
|
1976
|
+
createdBy: "created_by",
|
|
1977
|
+
enabled: "enabled",
|
|
1978
|
+
legacy: "legacy",
|
|
1979
|
+
modifiedBy: "modified_by",
|
|
1980
|
+
}),
|
|
1981
|
+
),
|
|
1993
1982
|
) as unknown as Schema.Codec<ListTokensResponseResult>;
|
|
1994
1983
|
|
|
1995
1984
|
// =============================================================================
|
|
@@ -2122,7 +2111,7 @@ export interface ChatCompletionsInstanceRequest {
|
|
|
2122
2111
|
}
|
|
2123
2112
|
|
|
2124
2113
|
export const ChatCompletionsInstanceRequest =
|
|
2125
|
-
/*@__PURE__*/
|
|
2114
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
2126
2115
|
Schema.Struct({
|
|
2127
2116
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
2128
2117
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -2225,7 +2214,7 @@ export interface ChatCompletionsInstanceResponse {
|
|
|
2225
2214
|
}
|
|
2226
2215
|
|
|
2227
2216
|
export const ChatCompletionsInstanceResponse =
|
|
2228
|
-
/*@__PURE__*/
|
|
2217
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
2229
2218
|
Schema.Struct({
|
|
2230
2219
|
choices: Schema.Array(Choice),
|
|
2231
2220
|
chunks: Schema.Array(Chunk),
|
|
@@ -2242,7 +2231,7 @@ export const chatCompletionsInstance: API.OperationMethod<
|
|
|
2242
2231
|
ChatCompletionsInstanceResponse,
|
|
2243
2232
|
ChatCompletionsInstanceError,
|
|
2244
2233
|
Credentials | HttpClient.HttpClient
|
|
2245
|
-
> = /*@__PURE__*/
|
|
2234
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2246
2235
|
input: ChatCompletionsInstanceRequest,
|
|
2247
2236
|
output: ChatCompletionsInstanceResponse,
|
|
2248
2237
|
errors: [],
|
|
@@ -2379,7 +2368,7 @@ export interface ChatCompletionsNamespaceRequest {
|
|
|
2379
2368
|
}
|
|
2380
2369
|
|
|
2381
2370
|
export const ChatCompletionsNamespaceRequest =
|
|
2382
|
-
/*@__PURE__*/
|
|
2371
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
2383
2372
|
Schema.Struct({
|
|
2384
2373
|
name: Schema.String.pipe(T.HttpPath("name")),
|
|
2385
2374
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -2484,7 +2473,7 @@ export interface ChatCompletionsNamespaceResponse {
|
|
|
2484
2473
|
}
|
|
2485
2474
|
|
|
2486
2475
|
export const ChatCompletionsNamespaceResponse =
|
|
2487
|
-
/*@__PURE__*/
|
|
2476
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
2488
2477
|
Schema.Struct({
|
|
2489
2478
|
choices: Schema.Array(Choice),
|
|
2490
2479
|
chunks: Schema.Array(Chunk2),
|
|
@@ -2504,7 +2493,7 @@ export const chatCompletionsNamespace: API.OperationMethod<
|
|
|
2504
2493
|
ChatCompletionsNamespaceResponse,
|
|
2505
2494
|
ChatCompletionsNamespaceError,
|
|
2506
2495
|
Credentials | HttpClient.HttpClient
|
|
2507
|
-
> = /*@__PURE__*/
|
|
2496
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2508
2497
|
input: ChatCompletionsNamespaceRequest,
|
|
2509
2498
|
output: ChatCompletionsNamespaceResponse,
|
|
2510
2499
|
errors: [],
|
|
@@ -2641,7 +2630,7 @@ export interface ChatCompletionsNamespaceInstanceRequest {
|
|
|
2641
2630
|
}
|
|
2642
2631
|
|
|
2643
2632
|
export const ChatCompletionsNamespaceInstanceRequest =
|
|
2644
|
-
/*@__PURE__*/
|
|
2633
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
2645
2634
|
Schema.Struct({
|
|
2646
2635
|
name: Schema.String.pipe(T.HttpPath("name")),
|
|
2647
2636
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
@@ -2745,7 +2734,7 @@ export interface ChatCompletionsNamespaceInstanceResponse {
|
|
|
2745
2734
|
}
|
|
2746
2735
|
|
|
2747
2736
|
export const ChatCompletionsNamespaceInstanceResponse =
|
|
2748
|
-
/*@__PURE__*/
|
|
2737
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
2749
2738
|
Schema.Struct({
|
|
2750
2739
|
choices: Schema.Array(Choice),
|
|
2751
2740
|
chunks: Schema.Array(Chunk),
|
|
@@ -2762,7 +2751,7 @@ export const chatCompletionsNamespaceInstance: API.OperationMethod<
|
|
|
2762
2751
|
ChatCompletionsNamespaceInstanceResponse,
|
|
2763
2752
|
ChatCompletionsNamespaceInstanceError,
|
|
2764
2753
|
Credentials | HttpClient.HttpClient
|
|
2765
|
-
> = /*@__PURE__*/
|
|
2754
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2766
2755
|
input: ChatCompletionsNamespaceInstanceRequest,
|
|
2767
2756
|
output: ChatCompletionsNamespaceInstanceResponse,
|
|
2768
2757
|
errors: [],
|
|
@@ -2787,26 +2776,25 @@ export interface ListInstancesRequest {
|
|
|
2787
2776
|
search?: string;
|
|
2788
2777
|
}
|
|
2789
2778
|
|
|
2790
|
-
export const ListInstancesRequest = /*@__PURE__*/
|
|
2791
|
-
(
|
|
2792
|
-
Schema.
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
T.HttpQuery("order_by"),
|
|
2799
|
-
),
|
|
2800
|
-
orderByDirection: Schema.optional(
|
|
2801
|
-
Schema.Union([Schema.Literals(["asc", "desc"]), Schema.String]),
|
|
2802
|
-
).pipe(T.HttpQuery("order_by_direction")),
|
|
2803
|
-
search: Schema.optional(Schema.String).pipe(T.HttpQuery("search")),
|
|
2804
|
-
}).pipe(
|
|
2805
|
-
T.Http({
|
|
2806
|
-
method: "GET",
|
|
2807
|
-
path: "/accounts/{account_id}/ai-search/instances",
|
|
2808
|
-
}),
|
|
2779
|
+
export const ListInstancesRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2780
|
+
Schema.Struct({
|
|
2781
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2782
|
+
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
2783
|
+
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
2784
|
+
namespace: Schema.optional(Schema.String).pipe(T.HttpQuery("namespace")),
|
|
2785
|
+
orderBy: Schema.optional(Schema.Literal("created_at")).pipe(
|
|
2786
|
+
T.HttpQuery("order_by"),
|
|
2809
2787
|
),
|
|
2788
|
+
orderByDirection: Schema.optional(
|
|
2789
|
+
Schema.Union([Schema.Literals(["asc", "desc"]), Schema.String]),
|
|
2790
|
+
).pipe(T.HttpQuery("order_by_direction")),
|
|
2791
|
+
search: Schema.optional(Schema.String).pipe(T.HttpQuery("search")),
|
|
2792
|
+
}).pipe(
|
|
2793
|
+
T.Http({
|
|
2794
|
+
method: "GET",
|
|
2795
|
+
path: "/accounts/{account_id}/ai-search/instances",
|
|
2796
|
+
}),
|
|
2797
|
+
),
|
|
2810
2798
|
) as unknown as Schema.Codec<ListInstancesRequest>;
|
|
2811
2799
|
|
|
2812
2800
|
export interface ListInstancesResponse {
|
|
@@ -2987,14 +2975,13 @@ export interface ListInstancesResponse {
|
|
|
2987
2975
|
} | null;
|
|
2988
2976
|
}
|
|
2989
2977
|
|
|
2990
|
-
export const ListInstancesResponse = /*@__PURE__*/
|
|
2991
|
-
(
|
|
2992
|
-
Schema.
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
2978
|
+
export const ListInstancesResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2979
|
+
Schema.Struct({
|
|
2980
|
+
result: Schema.Array(ListInstancesResponseResult),
|
|
2981
|
+
resultInfo: Schema.optional(
|
|
2982
|
+
Schema.Union([ListInstancesResponseResultInfo, Schema.Null]),
|
|
2983
|
+
),
|
|
2984
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
2998
2985
|
) as unknown as Schema.Codec<ListInstancesResponse>;
|
|
2999
2986
|
|
|
3000
2987
|
export type ListInstancesError = DefaultErrors | InvalidRoute | Forbidden;
|
|
@@ -3004,7 +2991,7 @@ export const listInstances: API.PaginatedOperationMethod<
|
|
|
3004
2991
|
ListInstancesResponse,
|
|
3005
2992
|
ListInstancesError,
|
|
3006
2993
|
Credentials | HttpClient.HttpClient
|
|
3007
|
-
> = /*@__PURE__*/
|
|
2994
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
3008
2995
|
input: ListInstancesRequest,
|
|
3009
2996
|
output: ListInstancesResponse,
|
|
3010
2997
|
errors: [InvalidRoute, Forbidden],
|
|
@@ -3207,1070 +3194,188 @@ export interface CreateInstanceRequest {
|
|
|
3207
3194
|
type?: "r2" | "web-crawler" | null;
|
|
3208
3195
|
}
|
|
3209
3196
|
|
|
3210
|
-
export const CreateInstanceRequest = /*@__PURE__*/
|
|
3211
|
-
(
|
|
3212
|
-
Schema.
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
Schema.
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
Schema.
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
"anything_goes",
|
|
3259
|
-
]),
|
|
3260
|
-
Schema.String,
|
|
3261
|
-
]),
|
|
3262
|
-
),
|
|
3263
|
-
cacheTtl: Schema.optional(Schema.Number),
|
|
3264
|
-
chunk: Schema.optional(Schema.Boolean),
|
|
3265
|
-
chunkOverlap: Schema.optional(Schema.Number),
|
|
3266
|
-
chunkSize: Schema.optional(Schema.Number),
|
|
3267
|
-
customMetadata: Schema.optional(Schema.Array(CustomMetadata)),
|
|
3268
|
-
embeddingModel: Schema.optional(
|
|
3269
|
-
Schema.Union([
|
|
3270
|
-
Schema.Literal("@cf/qwen/qwen3-embedding-0.6b"),
|
|
3271
|
-
Schema.Literal("@cf/qwen/qwen3-vl-embedding-2b"),
|
|
3272
|
-
Schema.Literal("@cf/baai/bge-m3"),
|
|
3273
|
-
Schema.Literal("@cf/baai/bge-large-en-v1.5"),
|
|
3274
|
-
Schema.Literal("@cf/google/embeddinggemma-300m"),
|
|
3275
|
-
Schema.Literal("google-ai-studio/gemini-embedding-001"),
|
|
3276
|
-
Schema.Literal("google-ai-studio/gemini-embedding-2-preview"),
|
|
3277
|
-
Schema.Literal("openai/text-embedding-3-small"),
|
|
3278
|
-
Schema.Literal("openai/text-embedding-3-large"),
|
|
3279
|
-
Schema.Literal(""),
|
|
3280
|
-
Schema.Null,
|
|
3197
|
+
export const CreateInstanceRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
3198
|
+
Schema.Struct({
|
|
3199
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3200
|
+
id: Schema.String,
|
|
3201
|
+
aiGatewayId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3202
|
+
aiSearchModel: Schema.optional(
|
|
3203
|
+
Schema.Union([
|
|
3204
|
+
Schema.Literal("@cf/meta/llama-3.3-70b-instruct-fp8-fast"),
|
|
3205
|
+
Schema.Literal("@cf/zai-org/glm-4.7-flash"),
|
|
3206
|
+
Schema.Literal("@cf/meta/llama-3.1-8b-instruct-fast"),
|
|
3207
|
+
Schema.Literal("@cf/meta/llama-3.1-8b-instruct-fp8"),
|
|
3208
|
+
Schema.Literal("@cf/meta/llama-4-scout-17b-16e-instruct"),
|
|
3209
|
+
Schema.Literal("@cf/qwen/qwen3-30b-a3b-fp8"),
|
|
3210
|
+
Schema.Literal("@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"),
|
|
3211
|
+
Schema.Literal("@cf/moonshotai/kimi-k2-instruct"),
|
|
3212
|
+
Schema.Literal("@cf/google/gemma-3-12b-it"),
|
|
3213
|
+
Schema.Literal("@cf/google/gemma-4-26b-a4b-it"),
|
|
3214
|
+
Schema.Literal("@cf/moonshotai/kimi-k2.5"),
|
|
3215
|
+
Schema.Literal("anthropic/claude-3-7-sonnet"),
|
|
3216
|
+
Schema.Literal("anthropic/claude-sonnet-4"),
|
|
3217
|
+
Schema.Literal("anthropic/claude-opus-4"),
|
|
3218
|
+
Schema.Literal("anthropic/claude-3-5-haiku"),
|
|
3219
|
+
Schema.Literal("cerebras/qwen-3-235b-a22b-instruct"),
|
|
3220
|
+
Schema.Literal("cerebras/qwen-3-235b-a22b-thinking"),
|
|
3221
|
+
Schema.Literal("cerebras/llama-3.3-70b"),
|
|
3222
|
+
Schema.Literal("cerebras/llama-4-maverick-17b-128e-instruct"),
|
|
3223
|
+
Schema.Literal("cerebras/llama-4-scout-17b-16e-instruct"),
|
|
3224
|
+
Schema.Literal("cerebras/gpt-oss-120b"),
|
|
3225
|
+
Schema.Literal("google-ai-studio/gemini-2.5-flash"),
|
|
3226
|
+
Schema.Literal("google-ai-studio/gemini-2.5-pro"),
|
|
3227
|
+
Schema.Literal("grok/grok-4"),
|
|
3228
|
+
Schema.Literal("groq/llama-3.3-70b-versatile"),
|
|
3229
|
+
Schema.Literal("groq/llama-3.1-8b-instant"),
|
|
3230
|
+
Schema.Literal("openai/gpt-5"),
|
|
3231
|
+
Schema.Literal("openai/gpt-5-mini"),
|
|
3232
|
+
Schema.Literal("openai/gpt-5-nano"),
|
|
3233
|
+
Schema.Literal(""),
|
|
3234
|
+
Schema.Null,
|
|
3235
|
+
]),
|
|
3236
|
+
),
|
|
3237
|
+
cache: Schema.optional(Schema.Boolean),
|
|
3238
|
+
cacheThreshold: Schema.optional(
|
|
3239
|
+
Schema.Union([
|
|
3240
|
+
Schema.Literals([
|
|
3241
|
+
"super_strict_match",
|
|
3242
|
+
"close_enough",
|
|
3243
|
+
"flexible_friend",
|
|
3244
|
+
"anything_goes",
|
|
3281
3245
|
]),
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
Schema.Union([Schema.Literals(["max", "rrf"]), Schema.String]),
|
|
3285
|
-
),
|
|
3286
|
-
hybridSearchEnabled: Schema.optional(Schema.Boolean),
|
|
3287
|
-
indexMethod: Schema.optional(IndexMethod),
|
|
3288
|
-
indexingOptions: Schema.optional(
|
|
3289
|
-
Schema.Union([IndexingOptions, Schema.Null]),
|
|
3290
|
-
),
|
|
3291
|
-
maxNumResults: Schema.optional(Schema.Number),
|
|
3292
|
-
metadata: Schema.optional(Metadata),
|
|
3293
|
-
publicEndpointParams: Schema.optional(PublicEndpointParams),
|
|
3294
|
-
reranking: Schema.optional(Schema.Boolean),
|
|
3295
|
-
rerankingModel: Schema.optional(
|
|
3296
|
-
Schema.Union([
|
|
3297
|
-
Schema.Literal("@cf/baai/bge-reranker-base"),
|
|
3298
|
-
Schema.Literal(""),
|
|
3299
|
-
Schema.Null,
|
|
3300
|
-
]),
|
|
3301
|
-
),
|
|
3302
|
-
retrievalOptions: Schema.optional(
|
|
3303
|
-
Schema.Union([RetrievalOptions, Schema.Null]),
|
|
3304
|
-
),
|
|
3305
|
-
rewriteModel: Schema.optional(
|
|
3306
|
-
Schema.Union([
|
|
3307
|
-
Schema.Literal("@cf/meta/llama-3.3-70b-instruct-fp8-fast"),
|
|
3308
|
-
Schema.Literal("@cf/zai-org/glm-4.7-flash"),
|
|
3309
|
-
Schema.Literal("@cf/meta/llama-3.1-8b-instruct-fast"),
|
|
3310
|
-
Schema.Literal("@cf/meta/llama-3.1-8b-instruct-fp8"),
|
|
3311
|
-
Schema.Literal("@cf/meta/llama-4-scout-17b-16e-instruct"),
|
|
3312
|
-
Schema.Literal("@cf/qwen/qwen3-30b-a3b-fp8"),
|
|
3313
|
-
Schema.Literal("@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"),
|
|
3314
|
-
Schema.Literal("@cf/moonshotai/kimi-k2-instruct"),
|
|
3315
|
-
Schema.Literal("@cf/google/gemma-3-12b-it"),
|
|
3316
|
-
Schema.Literal("@cf/google/gemma-4-26b-a4b-it"),
|
|
3317
|
-
Schema.Literal("@cf/moonshotai/kimi-k2.5"),
|
|
3318
|
-
Schema.Literal("anthropic/claude-3-7-sonnet"),
|
|
3319
|
-
Schema.Literal("anthropic/claude-sonnet-4"),
|
|
3320
|
-
Schema.Literal("anthropic/claude-opus-4"),
|
|
3321
|
-
Schema.Literal("anthropic/claude-3-5-haiku"),
|
|
3322
|
-
Schema.Literal("cerebras/qwen-3-235b-a22b-instruct"),
|
|
3323
|
-
Schema.Literal("cerebras/qwen-3-235b-a22b-thinking"),
|
|
3324
|
-
Schema.Literal("cerebras/llama-3.3-70b"),
|
|
3325
|
-
Schema.Literal("cerebras/llama-4-maverick-17b-128e-instruct"),
|
|
3326
|
-
Schema.Literal("cerebras/llama-4-scout-17b-16e-instruct"),
|
|
3327
|
-
Schema.Literal("cerebras/gpt-oss-120b"),
|
|
3328
|
-
Schema.Literal("google-ai-studio/gemini-2.5-flash"),
|
|
3329
|
-
Schema.Literal("google-ai-studio/gemini-2.5-pro"),
|
|
3330
|
-
Schema.Literal("grok/grok-4"),
|
|
3331
|
-
Schema.Literal("groq/llama-3.3-70b-versatile"),
|
|
3332
|
-
Schema.Literal("groq/llama-3.1-8b-instant"),
|
|
3333
|
-
Schema.Literal("openai/gpt-5"),
|
|
3334
|
-
Schema.Literal("openai/gpt-5-mini"),
|
|
3335
|
-
Schema.Literal("openai/gpt-5-nano"),
|
|
3336
|
-
Schema.Literal(""),
|
|
3337
|
-
Schema.Null,
|
|
3338
|
-
]),
|
|
3339
|
-
),
|
|
3340
|
-
rewriteQuery: Schema.optional(Schema.Boolean),
|
|
3341
|
-
scoreThreshold: Schema.optional(Schema.Number),
|
|
3342
|
-
source: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3343
|
-
sourceParams: Schema.optional(Schema.Union([SourceParams2, Schema.Null])),
|
|
3344
|
-
syncInterval: Schema.optional(Schema.Number),
|
|
3345
|
-
tokenId: Schema.optional(Schema.String),
|
|
3346
|
-
type: Schema.optional(
|
|
3347
|
-
Schema.Union([
|
|
3348
|
-
Schema.Literal("r2"),
|
|
3349
|
-
Schema.Literal("web-crawler"),
|
|
3350
|
-
Schema.Null,
|
|
3351
|
-
]),
|
|
3352
|
-
),
|
|
3353
|
-
}).pipe(
|
|
3354
|
-
Schema.encodeKeys({
|
|
3355
|
-
id: "id",
|
|
3356
|
-
aiGatewayId: "ai_gateway_id",
|
|
3357
|
-
aiSearchModel: "ai_search_model",
|
|
3358
|
-
cache: "cache",
|
|
3359
|
-
cacheThreshold: "cache_threshold",
|
|
3360
|
-
cacheTtl: "cache_ttl",
|
|
3361
|
-
chunk: "chunk",
|
|
3362
|
-
chunkOverlap: "chunk_overlap",
|
|
3363
|
-
chunkSize: "chunk_size",
|
|
3364
|
-
customMetadata: "custom_metadata",
|
|
3365
|
-
embeddingModel: "embedding_model",
|
|
3366
|
-
fusionMethod: "fusion_method",
|
|
3367
|
-
hybridSearchEnabled: "hybrid_search_enabled",
|
|
3368
|
-
indexMethod: "index_method",
|
|
3369
|
-
indexingOptions: "indexing_options",
|
|
3370
|
-
maxNumResults: "max_num_results",
|
|
3371
|
-
metadata: "metadata",
|
|
3372
|
-
publicEndpointParams: "public_endpoint_params",
|
|
3373
|
-
reranking: "reranking",
|
|
3374
|
-
rerankingModel: "reranking_model",
|
|
3375
|
-
retrievalOptions: "retrieval_options",
|
|
3376
|
-
rewriteModel: "rewrite_model",
|
|
3377
|
-
rewriteQuery: "rewrite_query",
|
|
3378
|
-
scoreThreshold: "score_threshold",
|
|
3379
|
-
source: "source",
|
|
3380
|
-
sourceParams: "source_params",
|
|
3381
|
-
syncInterval: "sync_interval",
|
|
3382
|
-
tokenId: "token_id",
|
|
3383
|
-
type: "type",
|
|
3384
|
-
}),
|
|
3385
|
-
T.Http({
|
|
3386
|
-
method: "POST",
|
|
3387
|
-
path: "/accounts/{account_id}/ai-search/instances",
|
|
3388
|
-
}),
|
|
3246
|
+
Schema.String,
|
|
3247
|
+
]),
|
|
3389
3248
|
),
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
| ""
|
|
3429
|
-
| null;
|
|
3430
|
-
cache?: boolean | null;
|
|
3431
|
-
cacheThreshold?:
|
|
3432
|
-
| "super_strict_match"
|
|
3433
|
-
| "close_enough"
|
|
3434
|
-
| "flexible_friend"
|
|
3435
|
-
| "anything_goes"
|
|
3436
|
-
| null;
|
|
3437
|
-
/** Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600 (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200 (72h), 518400 (6d). */
|
|
3438
|
-
cacheTtl?: number | null;
|
|
3439
|
-
chunkOverlap?: number | null;
|
|
3440
|
-
chunkSize?: number | null;
|
|
3441
|
-
createdBy?: string | null;
|
|
3442
|
-
customMetadata?:
|
|
3443
|
-
| {
|
|
3444
|
-
dataType: "text" | "number" | "boolean" | "datetime" | (string & {});
|
|
3445
|
-
fieldName: string;
|
|
3446
|
-
}[]
|
|
3447
|
-
| null;
|
|
3448
|
-
embeddingModel?:
|
|
3449
|
-
| "@cf/qwen/qwen3-embedding-0.6b"
|
|
3450
|
-
| "@cf/qwen/qwen3-vl-embedding-2b"
|
|
3451
|
-
| "@cf/baai/bge-m3"
|
|
3452
|
-
| "@cf/baai/bge-large-en-v1.5"
|
|
3453
|
-
| "@cf/google/embeddinggemma-300m"
|
|
3454
|
-
| "google-ai-studio/gemini-embedding-001"
|
|
3455
|
-
| "google-ai-studio/gemini-embedding-2-preview"
|
|
3456
|
-
| "openai/text-embedding-3-small"
|
|
3457
|
-
| "openai/text-embedding-3-large"
|
|
3458
|
-
| ""
|
|
3459
|
-
| null;
|
|
3460
|
-
enable?: boolean | null;
|
|
3461
|
-
engineVersion?: number | null;
|
|
3462
|
-
fusionMethod?: "max" | "rrf" | (string & {}) | null;
|
|
3463
|
-
/** @deprecated Deprecated — use index_method instead. */
|
|
3464
|
-
hybridSearchEnabled?: boolean | null;
|
|
3465
|
-
/** Controls which storage backends are used during indexing. Defaults to vector-only. */
|
|
3466
|
-
indexMethod?: { keyword: boolean; vector: boolean } | null;
|
|
3467
|
-
indexingOptions?: {
|
|
3468
|
-
keywordTokenizer?: "porter" | "trigram" | (string & {}) | null;
|
|
3469
|
-
} | null;
|
|
3470
|
-
lastActivity?: string | null;
|
|
3471
|
-
maxNumResults?: number | null;
|
|
3472
|
-
metadata?: {
|
|
3473
|
-
createdFromAisearchWizard?: boolean | null;
|
|
3474
|
-
workerDomain?: string | null;
|
|
3475
|
-
} | null;
|
|
3476
|
-
modifiedBy?: string | null;
|
|
3477
|
-
namespace?: string | null;
|
|
3478
|
-
paused?: boolean | null;
|
|
3479
|
-
publicEndpointId?: string | null;
|
|
3480
|
-
publicEndpointParams?: {
|
|
3481
|
-
authorizedHosts?: string[] | null;
|
|
3482
|
-
chatCompletionsEndpoint?: { disabled?: boolean | null } | null;
|
|
3483
|
-
enabled?: boolean | null;
|
|
3484
|
-
mcp?: { description?: string | null; disabled?: boolean | null } | null;
|
|
3485
|
-
rateLimit?: {
|
|
3486
|
-
periodMs?: number | null;
|
|
3487
|
-
requests?: number | null;
|
|
3488
|
-
technique?: "fixed" | "sliding" | (string & {}) | null;
|
|
3489
|
-
} | null;
|
|
3490
|
-
searchEndpoint?: { disabled?: boolean | null } | null;
|
|
3491
|
-
} | null;
|
|
3492
|
-
reranking?: boolean | null;
|
|
3493
|
-
rerankingModel?: "@cf/baai/bge-reranker-base" | "" | null;
|
|
3494
|
-
retrievalOptions?: {
|
|
3495
|
-
boostBy?:
|
|
3496
|
-
| {
|
|
3497
|
-
field: string;
|
|
3498
|
-
direction?:
|
|
3499
|
-
| "asc"
|
|
3500
|
-
| "desc"
|
|
3501
|
-
| "exists"
|
|
3502
|
-
| "not_exists"
|
|
3503
|
-
| (string & {})
|
|
3504
|
-
| null;
|
|
3505
|
-
}[]
|
|
3506
|
-
| null;
|
|
3507
|
-
keywordMatchMode?: "and" | "or" | (string & {}) | null;
|
|
3508
|
-
} | null;
|
|
3509
|
-
rewriteModel?:
|
|
3510
|
-
| "@cf/meta/llama-3.3-70b-instruct-fp8-fast"
|
|
3511
|
-
| "@cf/zai-org/glm-4.7-flash"
|
|
3512
|
-
| "@cf/meta/llama-3.1-8b-instruct-fast"
|
|
3513
|
-
| "@cf/meta/llama-3.1-8b-instruct-fp8"
|
|
3514
|
-
| "@cf/meta/llama-4-scout-17b-16e-instruct"
|
|
3515
|
-
| "@cf/qwen/qwen3-30b-a3b-fp8"
|
|
3516
|
-
| "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"
|
|
3517
|
-
| "@cf/moonshotai/kimi-k2-instruct"
|
|
3518
|
-
| "@cf/google/gemma-3-12b-it"
|
|
3519
|
-
| "@cf/google/gemma-4-26b-a4b-it"
|
|
3520
|
-
| "@cf/moonshotai/kimi-k2.5"
|
|
3521
|
-
| "anthropic/claude-3-7-sonnet"
|
|
3522
|
-
| "anthropic/claude-sonnet-4"
|
|
3523
|
-
| "anthropic/claude-opus-4"
|
|
3524
|
-
| "anthropic/claude-3-5-haiku"
|
|
3525
|
-
| "cerebras/qwen-3-235b-a22b-instruct"
|
|
3526
|
-
| "cerebras/qwen-3-235b-a22b-thinking"
|
|
3527
|
-
| "cerebras/llama-3.3-70b"
|
|
3528
|
-
| "cerebras/llama-4-maverick-17b-128e-instruct"
|
|
3529
|
-
| "cerebras/llama-4-scout-17b-16e-instruct"
|
|
3530
|
-
| "cerebras/gpt-oss-120b"
|
|
3531
|
-
| "google-ai-studio/gemini-2.5-flash"
|
|
3532
|
-
| "google-ai-studio/gemini-2.5-pro"
|
|
3533
|
-
| "grok/grok-4"
|
|
3534
|
-
| "groq/llama-3.3-70b-versatile"
|
|
3535
|
-
| "groq/llama-3.1-8b-instant"
|
|
3536
|
-
| "openai/gpt-5"
|
|
3537
|
-
| "openai/gpt-5-mini"
|
|
3538
|
-
| "openai/gpt-5-nano"
|
|
3539
|
-
| ""
|
|
3540
|
-
| null;
|
|
3541
|
-
rewriteQuery?: boolean | null;
|
|
3542
|
-
scoreThreshold?: number | null;
|
|
3543
|
-
source?: string | null;
|
|
3544
|
-
sourceParams?: {
|
|
3545
|
-
excludeItems?: string[] | null;
|
|
3546
|
-
includeItems?: string[] | null;
|
|
3547
|
-
prefix?: string | null;
|
|
3548
|
-
r2Jurisdiction?: string | null;
|
|
3549
|
-
webCrawler?: {
|
|
3550
|
-
parseOptions?: {
|
|
3551
|
-
contentSelector?: { path: string; selector: string }[] | null;
|
|
3552
|
-
includeHeaders?: Record<string, unknown> | null;
|
|
3553
|
-
includeImages?: boolean | null;
|
|
3554
|
-
specificSitemaps?: string[] | null;
|
|
3555
|
-
useBrowserRendering?: boolean | null;
|
|
3556
|
-
} | null;
|
|
3557
|
-
parseType?: "sitemap" | "crawl" | "feed-rss" | (string & {}) | null;
|
|
3558
|
-
crawlOptions?: {
|
|
3559
|
-
depth?: number | null;
|
|
3560
|
-
includeExternalLinks?: boolean | null;
|
|
3561
|
-
includeSubdomains?: boolean | null;
|
|
3562
|
-
maxAge?: number | null;
|
|
3563
|
-
source?: "all" | "sitemaps" | "links" | (string & {}) | null;
|
|
3564
|
-
} | null;
|
|
3565
|
-
storeOptions?: {
|
|
3566
|
-
storageId: string;
|
|
3567
|
-
r2Jurisdiction?: string | null;
|
|
3568
|
-
storageType?: string | null;
|
|
3569
|
-
} | null;
|
|
3570
|
-
} | null;
|
|
3571
|
-
} | null;
|
|
3572
|
-
status?: string | null;
|
|
3573
|
-
/** Interval between automatic syncs, in seconds. Allowed values: 900 (15min), 1800 (30min), 3600 (1h), 7200 (2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h). */
|
|
3574
|
-
syncInterval?: number | null;
|
|
3575
|
-
tokenId?: string | null;
|
|
3576
|
-
type?: "r2" | "web-crawler" | null;
|
|
3577
|
-
}
|
|
3578
|
-
|
|
3579
|
-
export const CreateInstanceResponse =
|
|
3580
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
3581
|
-
Schema.Struct({
|
|
3582
|
-
id: Schema.String,
|
|
3583
|
-
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3584
|
-
modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3585
|
-
aiGatewayId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3586
|
-
aiSearchModel: Schema.optional(
|
|
3587
|
-
Schema.Union([
|
|
3588
|
-
Schema.Literal("@cf/meta/llama-3.3-70b-instruct-fp8-fast"),
|
|
3589
|
-
Schema.Literal("@cf/zai-org/glm-4.7-flash"),
|
|
3590
|
-
Schema.Literal("@cf/meta/llama-3.1-8b-instruct-fast"),
|
|
3591
|
-
Schema.Literal("@cf/meta/llama-3.1-8b-instruct-fp8"),
|
|
3592
|
-
Schema.Literal("@cf/meta/llama-4-scout-17b-16e-instruct"),
|
|
3593
|
-
Schema.Literal("@cf/qwen/qwen3-30b-a3b-fp8"),
|
|
3594
|
-
Schema.Literal("@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"),
|
|
3595
|
-
Schema.Literal("@cf/moonshotai/kimi-k2-instruct"),
|
|
3596
|
-
Schema.Literal("@cf/google/gemma-3-12b-it"),
|
|
3597
|
-
Schema.Literal("@cf/google/gemma-4-26b-a4b-it"),
|
|
3598
|
-
Schema.Literal("@cf/moonshotai/kimi-k2.5"),
|
|
3599
|
-
Schema.Literal("anthropic/claude-3-7-sonnet"),
|
|
3600
|
-
Schema.Literal("anthropic/claude-sonnet-4"),
|
|
3601
|
-
Schema.Literal("anthropic/claude-opus-4"),
|
|
3602
|
-
Schema.Literal("anthropic/claude-3-5-haiku"),
|
|
3603
|
-
Schema.Literal("cerebras/qwen-3-235b-a22b-instruct"),
|
|
3604
|
-
Schema.Literal("cerebras/qwen-3-235b-a22b-thinking"),
|
|
3605
|
-
Schema.Literal("cerebras/llama-3.3-70b"),
|
|
3606
|
-
Schema.Literal("cerebras/llama-4-maverick-17b-128e-instruct"),
|
|
3607
|
-
Schema.Literal("cerebras/llama-4-scout-17b-16e-instruct"),
|
|
3608
|
-
Schema.Literal("cerebras/gpt-oss-120b"),
|
|
3609
|
-
Schema.Literal("google-ai-studio/gemini-2.5-flash"),
|
|
3610
|
-
Schema.Literal("google-ai-studio/gemini-2.5-pro"),
|
|
3611
|
-
Schema.Literal("grok/grok-4"),
|
|
3612
|
-
Schema.Literal("groq/llama-3.3-70b-versatile"),
|
|
3613
|
-
Schema.Literal("groq/llama-3.1-8b-instant"),
|
|
3614
|
-
Schema.Literal("openai/gpt-5"),
|
|
3615
|
-
Schema.Literal("openai/gpt-5-mini"),
|
|
3616
|
-
Schema.Literal("openai/gpt-5-nano"),
|
|
3617
|
-
Schema.Literal(""),
|
|
3618
|
-
Schema.Null,
|
|
3619
|
-
]),
|
|
3620
|
-
),
|
|
3621
|
-
cache: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3622
|
-
cacheThreshold: Schema.optional(
|
|
3623
|
-
Schema.Union([
|
|
3624
|
-
Schema.Literal("super_strict_match"),
|
|
3625
|
-
Schema.Literal("close_enough"),
|
|
3626
|
-
Schema.Literal("flexible_friend"),
|
|
3627
|
-
Schema.Literal("anything_goes"),
|
|
3628
|
-
Schema.Null,
|
|
3629
|
-
]),
|
|
3630
|
-
),
|
|
3631
|
-
cacheTtl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3632
|
-
chunkOverlap: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3633
|
-
chunkSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3634
|
-
createdBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3635
|
-
customMetadata: Schema.optional(
|
|
3636
|
-
Schema.Union([Schema.Array(CustomMetadata), Schema.Null]),
|
|
3637
|
-
),
|
|
3638
|
-
embeddingModel: Schema.optional(
|
|
3639
|
-
Schema.Union([
|
|
3640
|
-
Schema.Literal("@cf/qwen/qwen3-embedding-0.6b"),
|
|
3641
|
-
Schema.Literal("@cf/qwen/qwen3-vl-embedding-2b"),
|
|
3642
|
-
Schema.Literal("@cf/baai/bge-m3"),
|
|
3643
|
-
Schema.Literal("@cf/baai/bge-large-en-v1.5"),
|
|
3644
|
-
Schema.Literal("@cf/google/embeddinggemma-300m"),
|
|
3645
|
-
Schema.Literal("google-ai-studio/gemini-embedding-001"),
|
|
3646
|
-
Schema.Literal("google-ai-studio/gemini-embedding-2-preview"),
|
|
3647
|
-
Schema.Literal("openai/text-embedding-3-small"),
|
|
3648
|
-
Schema.Literal("openai/text-embedding-3-large"),
|
|
3649
|
-
Schema.Literal(""),
|
|
3650
|
-
Schema.Null,
|
|
3651
|
-
]),
|
|
3652
|
-
),
|
|
3653
|
-
enable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3654
|
-
engineVersion: Schema.optional(
|
|
3655
|
-
Schema.Union([Schema.Number, Schema.Null]),
|
|
3656
|
-
),
|
|
3657
|
-
fusionMethod: Schema.optional(
|
|
3658
|
-
Schema.Union([
|
|
3659
|
-
Schema.Union([Schema.Literals(["max", "rrf"]), Schema.String]),
|
|
3660
|
-
Schema.Null,
|
|
3661
|
-
]),
|
|
3662
|
-
),
|
|
3663
|
-
hybridSearchEnabled: Schema.optional(
|
|
3664
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
3665
|
-
),
|
|
3666
|
-
indexMethod: Schema.optional(Schema.Union([IndexMethod, Schema.Null])),
|
|
3667
|
-
indexingOptions: Schema.optional(
|
|
3668
|
-
Schema.Union([IndexingOptions, Schema.Null]),
|
|
3669
|
-
),
|
|
3670
|
-
lastActivity: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3671
|
-
maxNumResults: Schema.optional(
|
|
3672
|
-
Schema.Union([Schema.Number, Schema.Null]),
|
|
3673
|
-
),
|
|
3674
|
-
metadata: Schema.optional(Schema.Union([Metadata, Schema.Null])),
|
|
3675
|
-
modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3676
|
-
namespace: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3677
|
-
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3678
|
-
publicEndpointId: Schema.optional(
|
|
3679
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
3680
|
-
),
|
|
3681
|
-
publicEndpointParams: Schema.optional(
|
|
3682
|
-
Schema.Union([PublicEndpointParams, Schema.Null]),
|
|
3683
|
-
),
|
|
3684
|
-
reranking: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3685
|
-
rerankingModel: Schema.optional(
|
|
3686
|
-
Schema.Union([
|
|
3687
|
-
Schema.Literal("@cf/baai/bge-reranker-base"),
|
|
3688
|
-
Schema.Literal(""),
|
|
3689
|
-
Schema.Null,
|
|
3690
|
-
]),
|
|
3691
|
-
),
|
|
3692
|
-
retrievalOptions: Schema.optional(
|
|
3693
|
-
Schema.Union([RetrievalOptions, Schema.Null]),
|
|
3694
|
-
),
|
|
3695
|
-
rewriteModel: Schema.optional(
|
|
3696
|
-
Schema.Union([
|
|
3697
|
-
Schema.Literal("@cf/meta/llama-3.3-70b-instruct-fp8-fast"),
|
|
3698
|
-
Schema.Literal("@cf/zai-org/glm-4.7-flash"),
|
|
3699
|
-
Schema.Literal("@cf/meta/llama-3.1-8b-instruct-fast"),
|
|
3700
|
-
Schema.Literal("@cf/meta/llama-3.1-8b-instruct-fp8"),
|
|
3701
|
-
Schema.Literal("@cf/meta/llama-4-scout-17b-16e-instruct"),
|
|
3702
|
-
Schema.Literal("@cf/qwen/qwen3-30b-a3b-fp8"),
|
|
3703
|
-
Schema.Literal("@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"),
|
|
3704
|
-
Schema.Literal("@cf/moonshotai/kimi-k2-instruct"),
|
|
3705
|
-
Schema.Literal("@cf/google/gemma-3-12b-it"),
|
|
3706
|
-
Schema.Literal("@cf/google/gemma-4-26b-a4b-it"),
|
|
3707
|
-
Schema.Literal("@cf/moonshotai/kimi-k2.5"),
|
|
3708
|
-
Schema.Literal("anthropic/claude-3-7-sonnet"),
|
|
3709
|
-
Schema.Literal("anthropic/claude-sonnet-4"),
|
|
3710
|
-
Schema.Literal("anthropic/claude-opus-4"),
|
|
3711
|
-
Schema.Literal("anthropic/claude-3-5-haiku"),
|
|
3712
|
-
Schema.Literal("cerebras/qwen-3-235b-a22b-instruct"),
|
|
3713
|
-
Schema.Literal("cerebras/qwen-3-235b-a22b-thinking"),
|
|
3714
|
-
Schema.Literal("cerebras/llama-3.3-70b"),
|
|
3715
|
-
Schema.Literal("cerebras/llama-4-maverick-17b-128e-instruct"),
|
|
3716
|
-
Schema.Literal("cerebras/llama-4-scout-17b-16e-instruct"),
|
|
3717
|
-
Schema.Literal("cerebras/gpt-oss-120b"),
|
|
3718
|
-
Schema.Literal("google-ai-studio/gemini-2.5-flash"),
|
|
3719
|
-
Schema.Literal("google-ai-studio/gemini-2.5-pro"),
|
|
3720
|
-
Schema.Literal("grok/grok-4"),
|
|
3721
|
-
Schema.Literal("groq/llama-3.3-70b-versatile"),
|
|
3722
|
-
Schema.Literal("groq/llama-3.1-8b-instant"),
|
|
3723
|
-
Schema.Literal("openai/gpt-5"),
|
|
3724
|
-
Schema.Literal("openai/gpt-5-mini"),
|
|
3725
|
-
Schema.Literal("openai/gpt-5-nano"),
|
|
3726
|
-
Schema.Literal(""),
|
|
3727
|
-
Schema.Null,
|
|
3728
|
-
]),
|
|
3729
|
-
),
|
|
3730
|
-
rewriteQuery: Schema.optional(
|
|
3731
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
3732
|
-
),
|
|
3733
|
-
scoreThreshold: Schema.optional(
|
|
3734
|
-
Schema.Union([Schema.Number, Schema.Null]),
|
|
3735
|
-
),
|
|
3736
|
-
source: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3737
|
-
sourceParams: Schema.optional(Schema.Union([SourceParams2, Schema.Null])),
|
|
3738
|
-
status: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3739
|
-
syncInterval: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3740
|
-
tokenId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3741
|
-
type: Schema.optional(
|
|
3742
|
-
Schema.Union([
|
|
3743
|
-
Schema.Literal("r2"),
|
|
3744
|
-
Schema.Literal("web-crawler"),
|
|
3745
|
-
Schema.Null,
|
|
3746
|
-
]),
|
|
3747
|
-
),
|
|
3748
|
-
})
|
|
3749
|
-
.pipe(
|
|
3750
|
-
Schema.encodeKeys({
|
|
3751
|
-
id: "id",
|
|
3752
|
-
createdAt: "created_at",
|
|
3753
|
-
modifiedAt: "modified_at",
|
|
3754
|
-
aiGatewayId: "ai_gateway_id",
|
|
3755
|
-
aiSearchModel: "ai_search_model",
|
|
3756
|
-
cache: "cache",
|
|
3757
|
-
cacheThreshold: "cache_threshold",
|
|
3758
|
-
cacheTtl: "cache_ttl",
|
|
3759
|
-
chunkOverlap: "chunk_overlap",
|
|
3760
|
-
chunkSize: "chunk_size",
|
|
3761
|
-
createdBy: "created_by",
|
|
3762
|
-
customMetadata: "custom_metadata",
|
|
3763
|
-
embeddingModel: "embedding_model",
|
|
3764
|
-
enable: "enable",
|
|
3765
|
-
engineVersion: "engine_version",
|
|
3766
|
-
fusionMethod: "fusion_method",
|
|
3767
|
-
hybridSearchEnabled: "hybrid_search_enabled",
|
|
3768
|
-
indexMethod: "index_method",
|
|
3769
|
-
indexingOptions: "indexing_options",
|
|
3770
|
-
lastActivity: "last_activity",
|
|
3771
|
-
maxNumResults: "max_num_results",
|
|
3772
|
-
metadata: "metadata",
|
|
3773
|
-
modifiedBy: "modified_by",
|
|
3774
|
-
namespace: "namespace",
|
|
3775
|
-
paused: "paused",
|
|
3776
|
-
publicEndpointId: "public_endpoint_id",
|
|
3777
|
-
publicEndpointParams: "public_endpoint_params",
|
|
3778
|
-
reranking: "reranking",
|
|
3779
|
-
rerankingModel: "reranking_model",
|
|
3780
|
-
retrievalOptions: "retrieval_options",
|
|
3781
|
-
rewriteModel: "rewrite_model",
|
|
3782
|
-
rewriteQuery: "rewrite_query",
|
|
3783
|
-
scoreThreshold: "score_threshold",
|
|
3784
|
-
source: "source",
|
|
3785
|
-
sourceParams: "source_params",
|
|
3786
|
-
status: "status",
|
|
3787
|
-
syncInterval: "sync_interval",
|
|
3788
|
-
tokenId: "token_id",
|
|
3789
|
-
type: "type",
|
|
3790
|
-
}),
|
|
3791
|
-
)
|
|
3792
|
-
.pipe(T.ResponsePath("result")),
|
|
3793
|
-
) as unknown as Schema.Codec<CreateInstanceResponse>;
|
|
3794
|
-
|
|
3795
|
-
export type CreateInstanceError =
|
|
3796
|
-
| DefaultErrors
|
|
3797
|
-
| ValidationError
|
|
3798
|
-
| NotFound
|
|
3799
|
-
| InvalidRoute
|
|
3800
|
-
| InstanceAlreadyExists
|
|
3801
|
-
| InvalidTokenCredentials
|
|
3802
|
-
| Forbidden;
|
|
3803
|
-
|
|
3804
|
-
export const createInstance: API.OperationMethod<
|
|
3805
|
-
CreateInstanceRequest,
|
|
3806
|
-
CreateInstanceResponse,
|
|
3807
|
-
CreateInstanceError,
|
|
3808
|
-
Credentials | HttpClient.HttpClient
|
|
3809
|
-
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
3810
|
-
input: CreateInstanceRequest,
|
|
3811
|
-
output: CreateInstanceResponse,
|
|
3812
|
-
errors: [
|
|
3813
|
-
ValidationError,
|
|
3814
|
-
NotFound,
|
|
3815
|
-
InvalidRoute,
|
|
3816
|
-
InstanceAlreadyExists,
|
|
3817
|
-
InvalidTokenCredentials,
|
|
3818
|
-
Forbidden,
|
|
3819
|
-
],
|
|
3820
|
-
}));
|
|
3821
|
-
|
|
3822
|
-
export interface UpdateInstanceRequest {
|
|
3823
|
-
id: string;
|
|
3824
|
-
/** Path param */
|
|
3825
|
-
accountId: string;
|
|
3826
|
-
/** Body param */
|
|
3827
|
-
aiGatewayId?: string | null;
|
|
3828
|
-
/** Body param */
|
|
3829
|
-
aiSearchModel?:
|
|
3830
|
-
| "@cf/meta/llama-3.3-70b-instruct-fp8-fast"
|
|
3831
|
-
| "@cf/zai-org/glm-4.7-flash"
|
|
3832
|
-
| "@cf/meta/llama-3.1-8b-instruct-fast"
|
|
3833
|
-
| "@cf/meta/llama-3.1-8b-instruct-fp8"
|
|
3834
|
-
| "@cf/meta/llama-4-scout-17b-16e-instruct"
|
|
3835
|
-
| "@cf/qwen/qwen3-30b-a3b-fp8"
|
|
3836
|
-
| "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"
|
|
3837
|
-
| "@cf/moonshotai/kimi-k2-instruct"
|
|
3838
|
-
| "@cf/google/gemma-3-12b-it"
|
|
3839
|
-
| "@cf/google/gemma-4-26b-a4b-it"
|
|
3840
|
-
| "@cf/moonshotai/kimi-k2.5"
|
|
3841
|
-
| "anthropic/claude-3-7-sonnet"
|
|
3842
|
-
| "anthropic/claude-sonnet-4"
|
|
3843
|
-
| "anthropic/claude-opus-4"
|
|
3844
|
-
| "anthropic/claude-3-5-haiku"
|
|
3845
|
-
| "cerebras/qwen-3-235b-a22b-instruct"
|
|
3846
|
-
| "cerebras/qwen-3-235b-a22b-thinking"
|
|
3847
|
-
| "cerebras/llama-3.3-70b"
|
|
3848
|
-
| "cerebras/llama-4-maverick-17b-128e-instruct"
|
|
3849
|
-
| "cerebras/llama-4-scout-17b-16e-instruct"
|
|
3850
|
-
| "cerebras/gpt-oss-120b"
|
|
3851
|
-
| "google-ai-studio/gemini-2.5-flash"
|
|
3852
|
-
| "google-ai-studio/gemini-2.5-pro"
|
|
3853
|
-
| "grok/grok-4"
|
|
3854
|
-
| "groq/llama-3.3-70b-versatile"
|
|
3855
|
-
| "groq/llama-3.1-8b-instant"
|
|
3856
|
-
| "openai/gpt-5"
|
|
3857
|
-
| "openai/gpt-5-mini"
|
|
3858
|
-
| "openai/gpt-5-nano"
|
|
3859
|
-
| ""
|
|
3860
|
-
| null;
|
|
3861
|
-
/** Body param */
|
|
3862
|
-
cache?: boolean;
|
|
3863
|
-
/** Body param */
|
|
3864
|
-
cacheThreshold?:
|
|
3865
|
-
| "super_strict_match"
|
|
3866
|
-
| "close_enough"
|
|
3867
|
-
| "flexible_friend"
|
|
3868
|
-
| "anything_goes"
|
|
3869
|
-
| (string & {});
|
|
3870
|
-
/** Body param: Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600 (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200 (72h), 518400 (6d). */
|
|
3871
|
-
cacheTtl?: number;
|
|
3872
|
-
/** Body param */
|
|
3873
|
-
chunk?: boolean;
|
|
3874
|
-
/** Body param */
|
|
3875
|
-
chunkOverlap?: number;
|
|
3876
|
-
/** Body param */
|
|
3877
|
-
chunkSize?: number;
|
|
3878
|
-
/** Body param */
|
|
3879
|
-
customMetadata?: {
|
|
3880
|
-
dataType: "text" | "number" | "boolean" | "datetime" | (string & {});
|
|
3881
|
-
fieldName: string;
|
|
3882
|
-
}[];
|
|
3883
|
-
/** Body param */
|
|
3884
|
-
embeddingModel?:
|
|
3885
|
-
| "@cf/qwen/qwen3-embedding-0.6b"
|
|
3886
|
-
| "@cf/qwen/qwen3-vl-embedding-2b"
|
|
3887
|
-
| "@cf/baai/bge-m3"
|
|
3888
|
-
| "@cf/baai/bge-large-en-v1.5"
|
|
3889
|
-
| "@cf/google/embeddinggemma-300m"
|
|
3890
|
-
| "google-ai-studio/gemini-embedding-001"
|
|
3891
|
-
| "google-ai-studio/gemini-embedding-2-preview"
|
|
3892
|
-
| "openai/text-embedding-3-small"
|
|
3893
|
-
| "openai/text-embedding-3-large"
|
|
3894
|
-
| ""
|
|
3895
|
-
| null;
|
|
3896
|
-
/** Body param */
|
|
3897
|
-
fusionMethod?: "max" | "rrf" | (string & {});
|
|
3898
|
-
/** Body param: Controls which storage backends are used during indexing. Defaults to vector-only. */
|
|
3899
|
-
indexMethod?: { keyword: boolean; vector: boolean };
|
|
3900
|
-
/** Body param */
|
|
3901
|
-
indexingOptions?: {
|
|
3902
|
-
keywordTokenizer?: "porter" | "trigram" | (string & {});
|
|
3903
|
-
} | null;
|
|
3904
|
-
/** Body param */
|
|
3905
|
-
maxNumResults?: number;
|
|
3906
|
-
/** Body param */
|
|
3907
|
-
metadata?: { createdFromAisearchWizard?: boolean; workerDomain?: string };
|
|
3908
|
-
/** Body param */
|
|
3909
|
-
paused?: boolean;
|
|
3910
|
-
/** Body param */
|
|
3911
|
-
publicEndpointParams?: {
|
|
3912
|
-
authorizedHosts?: string[];
|
|
3913
|
-
chatCompletionsEndpoint?: { disabled?: boolean };
|
|
3914
|
-
enabled?: boolean;
|
|
3915
|
-
mcp?: { description?: string; disabled?: boolean };
|
|
3916
|
-
rateLimit?: {
|
|
3917
|
-
periodMs?: number;
|
|
3918
|
-
requests?: number;
|
|
3919
|
-
technique?: "fixed" | "sliding" | (string & {});
|
|
3920
|
-
};
|
|
3921
|
-
searchEndpoint?: { disabled?: boolean };
|
|
3922
|
-
};
|
|
3923
|
-
/** Body param */
|
|
3924
|
-
reranking?: boolean;
|
|
3925
|
-
/** Body param */
|
|
3926
|
-
rerankingModel?: "@cf/baai/bge-reranker-base" | "" | null;
|
|
3927
|
-
/** Body param */
|
|
3928
|
-
retrievalOptions?: {
|
|
3929
|
-
boostBy?: {
|
|
3930
|
-
field: string;
|
|
3931
|
-
direction?: "asc" | "desc" | "exists" | "not_exists" | (string & {});
|
|
3932
|
-
}[];
|
|
3933
|
-
keywordMatchMode?: "and" | "or" | (string & {});
|
|
3934
|
-
} | null;
|
|
3935
|
-
/** Body param */
|
|
3936
|
-
rewriteModel?:
|
|
3937
|
-
| "@cf/meta/llama-3.3-70b-instruct-fp8-fast"
|
|
3938
|
-
| "@cf/zai-org/glm-4.7-flash"
|
|
3939
|
-
| "@cf/meta/llama-3.1-8b-instruct-fast"
|
|
3940
|
-
| "@cf/meta/llama-3.1-8b-instruct-fp8"
|
|
3941
|
-
| "@cf/meta/llama-4-scout-17b-16e-instruct"
|
|
3942
|
-
| "@cf/qwen/qwen3-30b-a3b-fp8"
|
|
3943
|
-
| "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"
|
|
3944
|
-
| "@cf/moonshotai/kimi-k2-instruct"
|
|
3945
|
-
| "@cf/google/gemma-3-12b-it"
|
|
3946
|
-
| "@cf/google/gemma-4-26b-a4b-it"
|
|
3947
|
-
| "@cf/moonshotai/kimi-k2.5"
|
|
3948
|
-
| "anthropic/claude-3-7-sonnet"
|
|
3949
|
-
| "anthropic/claude-sonnet-4"
|
|
3950
|
-
| "anthropic/claude-opus-4"
|
|
3951
|
-
| "anthropic/claude-3-5-haiku"
|
|
3952
|
-
| "cerebras/qwen-3-235b-a22b-instruct"
|
|
3953
|
-
| "cerebras/qwen-3-235b-a22b-thinking"
|
|
3954
|
-
| "cerebras/llama-3.3-70b"
|
|
3955
|
-
| "cerebras/llama-4-maverick-17b-128e-instruct"
|
|
3956
|
-
| "cerebras/llama-4-scout-17b-16e-instruct"
|
|
3957
|
-
| "cerebras/gpt-oss-120b"
|
|
3958
|
-
| "google-ai-studio/gemini-2.5-flash"
|
|
3959
|
-
| "google-ai-studio/gemini-2.5-pro"
|
|
3960
|
-
| "grok/grok-4"
|
|
3961
|
-
| "groq/llama-3.3-70b-versatile"
|
|
3962
|
-
| "groq/llama-3.1-8b-instant"
|
|
3963
|
-
| "openai/gpt-5"
|
|
3964
|
-
| "openai/gpt-5-mini"
|
|
3965
|
-
| "openai/gpt-5-nano"
|
|
3966
|
-
| ""
|
|
3967
|
-
| null;
|
|
3968
|
-
/** Body param */
|
|
3969
|
-
rewriteQuery?: boolean;
|
|
3970
|
-
/** Body param */
|
|
3971
|
-
scoreThreshold?: number;
|
|
3972
|
-
/** Body param */
|
|
3973
|
-
source?: string | null;
|
|
3974
|
-
/** Body param */
|
|
3975
|
-
sourceParams?: {
|
|
3976
|
-
excludeItems?: string[];
|
|
3977
|
-
includeItems?: string[];
|
|
3978
|
-
prefix?: string;
|
|
3979
|
-
r2Jurisdiction?: string;
|
|
3980
|
-
webCrawler?: {
|
|
3981
|
-
parseOptions?: {
|
|
3982
|
-
contentSelector?: { path: string; selector: string }[];
|
|
3983
|
-
includeHeaders?: Record<string, unknown>;
|
|
3984
|
-
includeImages?: boolean;
|
|
3985
|
-
specificSitemaps?: string[];
|
|
3986
|
-
useBrowserRendering?: boolean;
|
|
3987
|
-
};
|
|
3988
|
-
parseType?: "sitemap" | "crawl" | "feed-rss" | (string & {});
|
|
3989
|
-
crawlOptions?: {
|
|
3990
|
-
depth?: number;
|
|
3991
|
-
includeExternalLinks?: boolean;
|
|
3992
|
-
includeSubdomains?: boolean;
|
|
3993
|
-
maxAge?: number;
|
|
3994
|
-
source?: "all" | "sitemaps" | "links" | (string & {});
|
|
3995
|
-
};
|
|
3996
|
-
storeOptions?: {
|
|
3997
|
-
storageId: string;
|
|
3998
|
-
r2Jurisdiction?: string;
|
|
3999
|
-
storageType?: string;
|
|
4000
|
-
};
|
|
4001
|
-
};
|
|
4002
|
-
} | null;
|
|
4003
|
-
/** Body param */
|
|
4004
|
-
summarization?: boolean;
|
|
4005
|
-
/** Body param */
|
|
4006
|
-
summarizationModel?:
|
|
4007
|
-
| "@cf/meta/llama-3.3-70b-instruct-fp8-fast"
|
|
4008
|
-
| "@cf/zai-org/glm-4.7-flash"
|
|
4009
|
-
| "@cf/meta/llama-3.1-8b-instruct-fast"
|
|
4010
|
-
| "@cf/meta/llama-3.1-8b-instruct-fp8"
|
|
4011
|
-
| "@cf/meta/llama-4-scout-17b-16e-instruct"
|
|
4012
|
-
| "@cf/qwen/qwen3-30b-a3b-fp8"
|
|
4013
|
-
| "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"
|
|
4014
|
-
| "@cf/moonshotai/kimi-k2-instruct"
|
|
4015
|
-
| "@cf/google/gemma-3-12b-it"
|
|
4016
|
-
| "@cf/google/gemma-4-26b-a4b-it"
|
|
4017
|
-
| "@cf/moonshotai/kimi-k2.5"
|
|
4018
|
-
| "anthropic/claude-3-7-sonnet"
|
|
4019
|
-
| "anthropic/claude-sonnet-4"
|
|
4020
|
-
| "anthropic/claude-opus-4"
|
|
4021
|
-
| "anthropic/claude-3-5-haiku"
|
|
4022
|
-
| "cerebras/qwen-3-235b-a22b-instruct"
|
|
4023
|
-
| "cerebras/qwen-3-235b-a22b-thinking"
|
|
4024
|
-
| "cerebras/llama-3.3-70b"
|
|
4025
|
-
| "cerebras/llama-4-maverick-17b-128e-instruct"
|
|
4026
|
-
| "cerebras/llama-4-scout-17b-16e-instruct"
|
|
4027
|
-
| "cerebras/gpt-oss-120b"
|
|
4028
|
-
| "google-ai-studio/gemini-2.5-flash"
|
|
4029
|
-
| "google-ai-studio/gemini-2.5-pro"
|
|
4030
|
-
| "grok/grok-4"
|
|
4031
|
-
| "groq/llama-3.3-70b-versatile"
|
|
4032
|
-
| "groq/llama-3.1-8b-instant"
|
|
4033
|
-
| "openai/gpt-5"
|
|
4034
|
-
| "openai/gpt-5-mini"
|
|
4035
|
-
| "openai/gpt-5-nano"
|
|
4036
|
-
| ""
|
|
4037
|
-
| null;
|
|
4038
|
-
/** Body param: Interval between automatic syncs, in seconds. Allowed values: 900 (15min), 1800 (30min), 3600 (1h), 7200 (2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h). */
|
|
4039
|
-
syncInterval?: number;
|
|
4040
|
-
/** Body param */
|
|
4041
|
-
systemPromptAiSearch?: string | null;
|
|
4042
|
-
/** Body param */
|
|
4043
|
-
systemPromptIndexSummarization?: string | null;
|
|
4044
|
-
/** Body param */
|
|
4045
|
-
systemPromptRewriteQuery?: string | null;
|
|
4046
|
-
/** Body param */
|
|
4047
|
-
tokenId?: string;
|
|
4048
|
-
}
|
|
4049
|
-
|
|
4050
|
-
export const UpdateInstanceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
|
|
4051
|
-
() =>
|
|
4052
|
-
Schema.Struct({
|
|
4053
|
-
id: Schema.String.pipe(T.HttpPath("id")),
|
|
4054
|
-
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4055
|
-
aiGatewayId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4056
|
-
aiSearchModel: Schema.optional(
|
|
4057
|
-
Schema.Union([
|
|
4058
|
-
Schema.Literal("@cf/meta/llama-3.3-70b-instruct-fp8-fast"),
|
|
4059
|
-
Schema.Literal("@cf/zai-org/glm-4.7-flash"),
|
|
4060
|
-
Schema.Literal("@cf/meta/llama-3.1-8b-instruct-fast"),
|
|
4061
|
-
Schema.Literal("@cf/meta/llama-3.1-8b-instruct-fp8"),
|
|
4062
|
-
Schema.Literal("@cf/meta/llama-4-scout-17b-16e-instruct"),
|
|
4063
|
-
Schema.Literal("@cf/qwen/qwen3-30b-a3b-fp8"),
|
|
4064
|
-
Schema.Literal("@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"),
|
|
4065
|
-
Schema.Literal("@cf/moonshotai/kimi-k2-instruct"),
|
|
4066
|
-
Schema.Literal("@cf/google/gemma-3-12b-it"),
|
|
4067
|
-
Schema.Literal("@cf/google/gemma-4-26b-a4b-it"),
|
|
4068
|
-
Schema.Literal("@cf/moonshotai/kimi-k2.5"),
|
|
4069
|
-
Schema.Literal("anthropic/claude-3-7-sonnet"),
|
|
4070
|
-
Schema.Literal("anthropic/claude-sonnet-4"),
|
|
4071
|
-
Schema.Literal("anthropic/claude-opus-4"),
|
|
4072
|
-
Schema.Literal("anthropic/claude-3-5-haiku"),
|
|
4073
|
-
Schema.Literal("cerebras/qwen-3-235b-a22b-instruct"),
|
|
4074
|
-
Schema.Literal("cerebras/qwen-3-235b-a22b-thinking"),
|
|
4075
|
-
Schema.Literal("cerebras/llama-3.3-70b"),
|
|
4076
|
-
Schema.Literal("cerebras/llama-4-maverick-17b-128e-instruct"),
|
|
4077
|
-
Schema.Literal("cerebras/llama-4-scout-17b-16e-instruct"),
|
|
4078
|
-
Schema.Literal("cerebras/gpt-oss-120b"),
|
|
4079
|
-
Schema.Literal("google-ai-studio/gemini-2.5-flash"),
|
|
4080
|
-
Schema.Literal("google-ai-studio/gemini-2.5-pro"),
|
|
4081
|
-
Schema.Literal("grok/grok-4"),
|
|
4082
|
-
Schema.Literal("groq/llama-3.3-70b-versatile"),
|
|
4083
|
-
Schema.Literal("groq/llama-3.1-8b-instant"),
|
|
4084
|
-
Schema.Literal("openai/gpt-5"),
|
|
4085
|
-
Schema.Literal("openai/gpt-5-mini"),
|
|
4086
|
-
Schema.Literal("openai/gpt-5-nano"),
|
|
4087
|
-
Schema.Literal(""),
|
|
4088
|
-
Schema.Null,
|
|
4089
|
-
]),
|
|
4090
|
-
),
|
|
4091
|
-
cache: Schema.optional(Schema.Boolean),
|
|
4092
|
-
cacheThreshold: Schema.optional(
|
|
4093
|
-
Schema.Union([
|
|
4094
|
-
Schema.Literals([
|
|
4095
|
-
"super_strict_match",
|
|
4096
|
-
"close_enough",
|
|
4097
|
-
"flexible_friend",
|
|
4098
|
-
"anything_goes",
|
|
4099
|
-
]),
|
|
4100
|
-
Schema.String,
|
|
4101
|
-
]),
|
|
4102
|
-
),
|
|
4103
|
-
cacheTtl: Schema.optional(Schema.Number),
|
|
4104
|
-
chunk: Schema.optional(Schema.Boolean),
|
|
4105
|
-
chunkOverlap: Schema.optional(Schema.Number),
|
|
4106
|
-
chunkSize: Schema.optional(Schema.Number),
|
|
4107
|
-
customMetadata: Schema.optional(Schema.Array(CustomMetadata)),
|
|
4108
|
-
embeddingModel: Schema.optional(
|
|
4109
|
-
Schema.Union([
|
|
4110
|
-
Schema.Literal("@cf/qwen/qwen3-embedding-0.6b"),
|
|
4111
|
-
Schema.Literal("@cf/qwen/qwen3-vl-embedding-2b"),
|
|
4112
|
-
Schema.Literal("@cf/baai/bge-m3"),
|
|
4113
|
-
Schema.Literal("@cf/baai/bge-large-en-v1.5"),
|
|
4114
|
-
Schema.Literal("@cf/google/embeddinggemma-300m"),
|
|
4115
|
-
Schema.Literal("google-ai-studio/gemini-embedding-001"),
|
|
4116
|
-
Schema.Literal("google-ai-studio/gemini-embedding-2-preview"),
|
|
4117
|
-
Schema.Literal("openai/text-embedding-3-small"),
|
|
4118
|
-
Schema.Literal("openai/text-embedding-3-large"),
|
|
4119
|
-
Schema.Literal(""),
|
|
4120
|
-
Schema.Null,
|
|
4121
|
-
]),
|
|
4122
|
-
),
|
|
4123
|
-
fusionMethod: Schema.optional(
|
|
4124
|
-
Schema.Union([Schema.Literals(["max", "rrf"]), Schema.String]),
|
|
4125
|
-
),
|
|
4126
|
-
indexMethod: Schema.optional(IndexMethod),
|
|
4127
|
-
indexingOptions: Schema.optional(
|
|
4128
|
-
Schema.Union([IndexingOptions, Schema.Null]),
|
|
4129
|
-
),
|
|
4130
|
-
maxNumResults: Schema.optional(Schema.Number),
|
|
4131
|
-
metadata: Schema.optional(Metadata),
|
|
4132
|
-
paused: Schema.optional(Schema.Boolean),
|
|
4133
|
-
publicEndpointParams: Schema.optional(PublicEndpointParams),
|
|
4134
|
-
reranking: Schema.optional(Schema.Boolean),
|
|
4135
|
-
rerankingModel: Schema.optional(
|
|
4136
|
-
Schema.Union([
|
|
4137
|
-
Schema.Literal("@cf/baai/bge-reranker-base"),
|
|
4138
|
-
Schema.Literal(""),
|
|
4139
|
-
Schema.Null,
|
|
4140
|
-
]),
|
|
4141
|
-
),
|
|
4142
|
-
retrievalOptions: Schema.optional(
|
|
4143
|
-
Schema.Union([RetrievalOptions, Schema.Null]),
|
|
4144
|
-
),
|
|
4145
|
-
rewriteModel: Schema.optional(
|
|
4146
|
-
Schema.Union([
|
|
4147
|
-
Schema.Literal("@cf/meta/llama-3.3-70b-instruct-fp8-fast"),
|
|
4148
|
-
Schema.Literal("@cf/zai-org/glm-4.7-flash"),
|
|
4149
|
-
Schema.Literal("@cf/meta/llama-3.1-8b-instruct-fast"),
|
|
4150
|
-
Schema.Literal("@cf/meta/llama-3.1-8b-instruct-fp8"),
|
|
4151
|
-
Schema.Literal("@cf/meta/llama-4-scout-17b-16e-instruct"),
|
|
4152
|
-
Schema.Literal("@cf/qwen/qwen3-30b-a3b-fp8"),
|
|
4153
|
-
Schema.Literal("@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"),
|
|
4154
|
-
Schema.Literal("@cf/moonshotai/kimi-k2-instruct"),
|
|
4155
|
-
Schema.Literal("@cf/google/gemma-3-12b-it"),
|
|
4156
|
-
Schema.Literal("@cf/google/gemma-4-26b-a4b-it"),
|
|
4157
|
-
Schema.Literal("@cf/moonshotai/kimi-k2.5"),
|
|
4158
|
-
Schema.Literal("anthropic/claude-3-7-sonnet"),
|
|
4159
|
-
Schema.Literal("anthropic/claude-sonnet-4"),
|
|
4160
|
-
Schema.Literal("anthropic/claude-opus-4"),
|
|
4161
|
-
Schema.Literal("anthropic/claude-3-5-haiku"),
|
|
4162
|
-
Schema.Literal("cerebras/qwen-3-235b-a22b-instruct"),
|
|
4163
|
-
Schema.Literal("cerebras/qwen-3-235b-a22b-thinking"),
|
|
4164
|
-
Schema.Literal("cerebras/llama-3.3-70b"),
|
|
4165
|
-
Schema.Literal("cerebras/llama-4-maverick-17b-128e-instruct"),
|
|
4166
|
-
Schema.Literal("cerebras/llama-4-scout-17b-16e-instruct"),
|
|
4167
|
-
Schema.Literal("cerebras/gpt-oss-120b"),
|
|
4168
|
-
Schema.Literal("google-ai-studio/gemini-2.5-flash"),
|
|
4169
|
-
Schema.Literal("google-ai-studio/gemini-2.5-pro"),
|
|
4170
|
-
Schema.Literal("grok/grok-4"),
|
|
4171
|
-
Schema.Literal("groq/llama-3.3-70b-versatile"),
|
|
4172
|
-
Schema.Literal("groq/llama-3.1-8b-instant"),
|
|
4173
|
-
Schema.Literal("openai/gpt-5"),
|
|
4174
|
-
Schema.Literal("openai/gpt-5-mini"),
|
|
4175
|
-
Schema.Literal("openai/gpt-5-nano"),
|
|
4176
|
-
Schema.Literal(""),
|
|
4177
|
-
Schema.Null,
|
|
4178
|
-
]),
|
|
4179
|
-
),
|
|
4180
|
-
rewriteQuery: Schema.optional(Schema.Boolean),
|
|
4181
|
-
scoreThreshold: Schema.optional(Schema.Number),
|
|
4182
|
-
source: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4183
|
-
sourceParams: Schema.optional(Schema.Union([SourceParams2, Schema.Null])),
|
|
4184
|
-
summarization: Schema.optional(Schema.Boolean),
|
|
4185
|
-
summarizationModel: Schema.optional(
|
|
4186
|
-
Schema.Union([
|
|
4187
|
-
Schema.Literal("@cf/meta/llama-3.3-70b-instruct-fp8-fast"),
|
|
4188
|
-
Schema.Literal("@cf/zai-org/glm-4.7-flash"),
|
|
4189
|
-
Schema.Literal("@cf/meta/llama-3.1-8b-instruct-fast"),
|
|
4190
|
-
Schema.Literal("@cf/meta/llama-3.1-8b-instruct-fp8"),
|
|
4191
|
-
Schema.Literal("@cf/meta/llama-4-scout-17b-16e-instruct"),
|
|
4192
|
-
Schema.Literal("@cf/qwen/qwen3-30b-a3b-fp8"),
|
|
4193
|
-
Schema.Literal("@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"),
|
|
4194
|
-
Schema.Literal("@cf/moonshotai/kimi-k2-instruct"),
|
|
4195
|
-
Schema.Literal("@cf/google/gemma-3-12b-it"),
|
|
4196
|
-
Schema.Literal("@cf/google/gemma-4-26b-a4b-it"),
|
|
4197
|
-
Schema.Literal("@cf/moonshotai/kimi-k2.5"),
|
|
4198
|
-
Schema.Literal("anthropic/claude-3-7-sonnet"),
|
|
4199
|
-
Schema.Literal("anthropic/claude-sonnet-4"),
|
|
4200
|
-
Schema.Literal("anthropic/claude-opus-4"),
|
|
4201
|
-
Schema.Literal("anthropic/claude-3-5-haiku"),
|
|
4202
|
-
Schema.Literal("cerebras/qwen-3-235b-a22b-instruct"),
|
|
4203
|
-
Schema.Literal("cerebras/qwen-3-235b-a22b-thinking"),
|
|
4204
|
-
Schema.Literal("cerebras/llama-3.3-70b"),
|
|
4205
|
-
Schema.Literal("cerebras/llama-4-maverick-17b-128e-instruct"),
|
|
4206
|
-
Schema.Literal("cerebras/llama-4-scout-17b-16e-instruct"),
|
|
4207
|
-
Schema.Literal("cerebras/gpt-oss-120b"),
|
|
4208
|
-
Schema.Literal("google-ai-studio/gemini-2.5-flash"),
|
|
4209
|
-
Schema.Literal("google-ai-studio/gemini-2.5-pro"),
|
|
4210
|
-
Schema.Literal("grok/grok-4"),
|
|
4211
|
-
Schema.Literal("groq/llama-3.3-70b-versatile"),
|
|
4212
|
-
Schema.Literal("groq/llama-3.1-8b-instant"),
|
|
4213
|
-
Schema.Literal("openai/gpt-5"),
|
|
4214
|
-
Schema.Literal("openai/gpt-5-mini"),
|
|
4215
|
-
Schema.Literal("openai/gpt-5-nano"),
|
|
4216
|
-
Schema.Literal(""),
|
|
4217
|
-
Schema.Null,
|
|
4218
|
-
]),
|
|
4219
|
-
),
|
|
4220
|
-
syncInterval: Schema.optional(Schema.Number),
|
|
4221
|
-
systemPromptAiSearch: Schema.optional(
|
|
4222
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
4223
|
-
),
|
|
4224
|
-
systemPromptIndexSummarization: Schema.optional(
|
|
4225
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
4226
|
-
),
|
|
4227
|
-
systemPromptRewriteQuery: Schema.optional(
|
|
4228
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
4229
|
-
),
|
|
4230
|
-
tokenId: Schema.optional(Schema.String),
|
|
4231
|
-
}).pipe(
|
|
4232
|
-
Schema.encodeKeys({
|
|
4233
|
-
aiGatewayId: "ai_gateway_id",
|
|
4234
|
-
aiSearchModel: "ai_search_model",
|
|
4235
|
-
cache: "cache",
|
|
4236
|
-
cacheThreshold: "cache_threshold",
|
|
4237
|
-
cacheTtl: "cache_ttl",
|
|
4238
|
-
chunk: "chunk",
|
|
4239
|
-
chunkOverlap: "chunk_overlap",
|
|
4240
|
-
chunkSize: "chunk_size",
|
|
4241
|
-
customMetadata: "custom_metadata",
|
|
4242
|
-
embeddingModel: "embedding_model",
|
|
4243
|
-
fusionMethod: "fusion_method",
|
|
4244
|
-
indexMethod: "index_method",
|
|
4245
|
-
indexingOptions: "indexing_options",
|
|
4246
|
-
maxNumResults: "max_num_results",
|
|
4247
|
-
metadata: "metadata",
|
|
4248
|
-
paused: "paused",
|
|
4249
|
-
publicEndpointParams: "public_endpoint_params",
|
|
4250
|
-
reranking: "reranking",
|
|
4251
|
-
rerankingModel: "reranking_model",
|
|
4252
|
-
retrievalOptions: "retrieval_options",
|
|
4253
|
-
rewriteModel: "rewrite_model",
|
|
4254
|
-
rewriteQuery: "rewrite_query",
|
|
4255
|
-
scoreThreshold: "score_threshold",
|
|
4256
|
-
source: "source",
|
|
4257
|
-
sourceParams: "source_params",
|
|
4258
|
-
summarization: "summarization",
|
|
4259
|
-
summarizationModel: "summarization_model",
|
|
4260
|
-
syncInterval: "sync_interval",
|
|
4261
|
-
systemPromptAiSearch: "system_prompt_ai_search",
|
|
4262
|
-
systemPromptIndexSummarization: "system_prompt_index_summarization",
|
|
4263
|
-
systemPromptRewriteQuery: "system_prompt_rewrite_query",
|
|
4264
|
-
tokenId: "token_id",
|
|
4265
|
-
}),
|
|
4266
|
-
T.Http({
|
|
4267
|
-
method: "PUT",
|
|
4268
|
-
path: "/accounts/{account_id}/ai-search/instances/{id}",
|
|
4269
|
-
}),
|
|
3249
|
+
cacheTtl: Schema.optional(Schema.Number),
|
|
3250
|
+
chunk: Schema.optional(Schema.Boolean),
|
|
3251
|
+
chunkOverlap: Schema.optional(Schema.Number),
|
|
3252
|
+
chunkSize: Schema.optional(Schema.Number),
|
|
3253
|
+
customMetadata: Schema.optional(Schema.Array(CustomMetadata)),
|
|
3254
|
+
embeddingModel: Schema.optional(
|
|
3255
|
+
Schema.Union([
|
|
3256
|
+
Schema.Literal("@cf/qwen/qwen3-embedding-0.6b"),
|
|
3257
|
+
Schema.Literal("@cf/qwen/qwen3-vl-embedding-2b"),
|
|
3258
|
+
Schema.Literal("@cf/baai/bge-m3"),
|
|
3259
|
+
Schema.Literal("@cf/baai/bge-large-en-v1.5"),
|
|
3260
|
+
Schema.Literal("@cf/google/embeddinggemma-300m"),
|
|
3261
|
+
Schema.Literal("google-ai-studio/gemini-embedding-001"),
|
|
3262
|
+
Schema.Literal("google-ai-studio/gemini-embedding-2-preview"),
|
|
3263
|
+
Schema.Literal("openai/text-embedding-3-small"),
|
|
3264
|
+
Schema.Literal("openai/text-embedding-3-large"),
|
|
3265
|
+
Schema.Literal(""),
|
|
3266
|
+
Schema.Null,
|
|
3267
|
+
]),
|
|
3268
|
+
),
|
|
3269
|
+
fusionMethod: Schema.optional(
|
|
3270
|
+
Schema.Union([Schema.Literals(["max", "rrf"]), Schema.String]),
|
|
3271
|
+
),
|
|
3272
|
+
hybridSearchEnabled: Schema.optional(Schema.Boolean),
|
|
3273
|
+
indexMethod: Schema.optional(IndexMethod),
|
|
3274
|
+
indexingOptions: Schema.optional(
|
|
3275
|
+
Schema.Union([IndexingOptions, Schema.Null]),
|
|
3276
|
+
),
|
|
3277
|
+
maxNumResults: Schema.optional(Schema.Number),
|
|
3278
|
+
metadata: Schema.optional(Metadata),
|
|
3279
|
+
publicEndpointParams: Schema.optional(PublicEndpointParams),
|
|
3280
|
+
reranking: Schema.optional(Schema.Boolean),
|
|
3281
|
+
rerankingModel: Schema.optional(
|
|
3282
|
+
Schema.Union([
|
|
3283
|
+
Schema.Literal("@cf/baai/bge-reranker-base"),
|
|
3284
|
+
Schema.Literal(""),
|
|
3285
|
+
Schema.Null,
|
|
3286
|
+
]),
|
|
4270
3287
|
),
|
|
4271
|
-
|
|
3288
|
+
retrievalOptions: Schema.optional(
|
|
3289
|
+
Schema.Union([RetrievalOptions, Schema.Null]),
|
|
3290
|
+
),
|
|
3291
|
+
rewriteModel: Schema.optional(
|
|
3292
|
+
Schema.Union([
|
|
3293
|
+
Schema.Literal("@cf/meta/llama-3.3-70b-instruct-fp8-fast"),
|
|
3294
|
+
Schema.Literal("@cf/zai-org/glm-4.7-flash"),
|
|
3295
|
+
Schema.Literal("@cf/meta/llama-3.1-8b-instruct-fast"),
|
|
3296
|
+
Schema.Literal("@cf/meta/llama-3.1-8b-instruct-fp8"),
|
|
3297
|
+
Schema.Literal("@cf/meta/llama-4-scout-17b-16e-instruct"),
|
|
3298
|
+
Schema.Literal("@cf/qwen/qwen3-30b-a3b-fp8"),
|
|
3299
|
+
Schema.Literal("@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"),
|
|
3300
|
+
Schema.Literal("@cf/moonshotai/kimi-k2-instruct"),
|
|
3301
|
+
Schema.Literal("@cf/google/gemma-3-12b-it"),
|
|
3302
|
+
Schema.Literal("@cf/google/gemma-4-26b-a4b-it"),
|
|
3303
|
+
Schema.Literal("@cf/moonshotai/kimi-k2.5"),
|
|
3304
|
+
Schema.Literal("anthropic/claude-3-7-sonnet"),
|
|
3305
|
+
Schema.Literal("anthropic/claude-sonnet-4"),
|
|
3306
|
+
Schema.Literal("anthropic/claude-opus-4"),
|
|
3307
|
+
Schema.Literal("anthropic/claude-3-5-haiku"),
|
|
3308
|
+
Schema.Literal("cerebras/qwen-3-235b-a22b-instruct"),
|
|
3309
|
+
Schema.Literal("cerebras/qwen-3-235b-a22b-thinking"),
|
|
3310
|
+
Schema.Literal("cerebras/llama-3.3-70b"),
|
|
3311
|
+
Schema.Literal("cerebras/llama-4-maverick-17b-128e-instruct"),
|
|
3312
|
+
Schema.Literal("cerebras/llama-4-scout-17b-16e-instruct"),
|
|
3313
|
+
Schema.Literal("cerebras/gpt-oss-120b"),
|
|
3314
|
+
Schema.Literal("google-ai-studio/gemini-2.5-flash"),
|
|
3315
|
+
Schema.Literal("google-ai-studio/gemini-2.5-pro"),
|
|
3316
|
+
Schema.Literal("grok/grok-4"),
|
|
3317
|
+
Schema.Literal("groq/llama-3.3-70b-versatile"),
|
|
3318
|
+
Schema.Literal("groq/llama-3.1-8b-instant"),
|
|
3319
|
+
Schema.Literal("openai/gpt-5"),
|
|
3320
|
+
Schema.Literal("openai/gpt-5-mini"),
|
|
3321
|
+
Schema.Literal("openai/gpt-5-nano"),
|
|
3322
|
+
Schema.Literal(""),
|
|
3323
|
+
Schema.Null,
|
|
3324
|
+
]),
|
|
3325
|
+
),
|
|
3326
|
+
rewriteQuery: Schema.optional(Schema.Boolean),
|
|
3327
|
+
scoreThreshold: Schema.optional(Schema.Number),
|
|
3328
|
+
source: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3329
|
+
sourceParams: Schema.optional(Schema.Union([SourceParams2, Schema.Null])),
|
|
3330
|
+
syncInterval: Schema.optional(Schema.Number),
|
|
3331
|
+
tokenId: Schema.optional(Schema.String),
|
|
3332
|
+
type: Schema.optional(
|
|
3333
|
+
Schema.Union([
|
|
3334
|
+
Schema.Literal("r2"),
|
|
3335
|
+
Schema.Literal("web-crawler"),
|
|
3336
|
+
Schema.Null,
|
|
3337
|
+
]),
|
|
3338
|
+
),
|
|
3339
|
+
}).pipe(
|
|
3340
|
+
Schema.encodeKeys({
|
|
3341
|
+
id: "id",
|
|
3342
|
+
aiGatewayId: "ai_gateway_id",
|
|
3343
|
+
aiSearchModel: "ai_search_model",
|
|
3344
|
+
cache: "cache",
|
|
3345
|
+
cacheThreshold: "cache_threshold",
|
|
3346
|
+
cacheTtl: "cache_ttl",
|
|
3347
|
+
chunk: "chunk",
|
|
3348
|
+
chunkOverlap: "chunk_overlap",
|
|
3349
|
+
chunkSize: "chunk_size",
|
|
3350
|
+
customMetadata: "custom_metadata",
|
|
3351
|
+
embeddingModel: "embedding_model",
|
|
3352
|
+
fusionMethod: "fusion_method",
|
|
3353
|
+
hybridSearchEnabled: "hybrid_search_enabled",
|
|
3354
|
+
indexMethod: "index_method",
|
|
3355
|
+
indexingOptions: "indexing_options",
|
|
3356
|
+
maxNumResults: "max_num_results",
|
|
3357
|
+
metadata: "metadata",
|
|
3358
|
+
publicEndpointParams: "public_endpoint_params",
|
|
3359
|
+
reranking: "reranking",
|
|
3360
|
+
rerankingModel: "reranking_model",
|
|
3361
|
+
retrievalOptions: "retrieval_options",
|
|
3362
|
+
rewriteModel: "rewrite_model",
|
|
3363
|
+
rewriteQuery: "rewrite_query",
|
|
3364
|
+
scoreThreshold: "score_threshold",
|
|
3365
|
+
source: "source",
|
|
3366
|
+
sourceParams: "source_params",
|
|
3367
|
+
syncInterval: "sync_interval",
|
|
3368
|
+
tokenId: "token_id",
|
|
3369
|
+
type: "type",
|
|
3370
|
+
}),
|
|
3371
|
+
T.Http({
|
|
3372
|
+
method: "POST",
|
|
3373
|
+
path: "/accounts/{account_id}/ai-search/instances",
|
|
3374
|
+
}),
|
|
3375
|
+
),
|
|
3376
|
+
) as unknown as Schema.Codec<CreateInstanceRequest>;
|
|
4272
3377
|
|
|
4273
|
-
export interface
|
|
3378
|
+
export interface CreateInstanceResponse {
|
|
4274
3379
|
/** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */
|
|
4275
3380
|
id: string;
|
|
4276
3381
|
createdAt?: string | null;
|
|
@@ -4457,8 +3562,8 @@ export interface UpdateInstanceResponse {
|
|
|
4457
3562
|
type?: "r2" | "web-crawler" | null;
|
|
4458
3563
|
}
|
|
4459
3564
|
|
|
4460
|
-
export const
|
|
4461
|
-
/*@__PURE__*/
|
|
3565
|
+
export const CreateInstanceResponse =
|
|
3566
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
4462
3567
|
Schema.Struct({
|
|
4463
3568
|
id: Schema.String,
|
|
4464
3569
|
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -4671,52 +3776,486 @@ export const UpdateInstanceResponse =
|
|
|
4671
3776
|
}),
|
|
4672
3777
|
)
|
|
4673
3778
|
.pipe(T.ResponsePath("result")),
|
|
4674
|
-
) as unknown as Schema.Codec<
|
|
3779
|
+
) as unknown as Schema.Codec<CreateInstanceResponse>;
|
|
4675
3780
|
|
|
4676
|
-
export type
|
|
3781
|
+
export type CreateInstanceError =
|
|
4677
3782
|
| DefaultErrors
|
|
4678
3783
|
| ValidationError
|
|
4679
3784
|
| NotFound
|
|
4680
3785
|
| InvalidRoute
|
|
3786
|
+
| InstanceAlreadyExists
|
|
4681
3787
|
| InvalidTokenCredentials
|
|
4682
3788
|
| Forbidden;
|
|
4683
3789
|
|
|
4684
|
-
export const
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
3790
|
+
export const createInstance: API.OperationMethod<
|
|
3791
|
+
CreateInstanceRequest,
|
|
3792
|
+
CreateInstanceResponse,
|
|
3793
|
+
CreateInstanceError,
|
|
4688
3794
|
Credentials | HttpClient.HttpClient
|
|
4689
|
-
> = /*@__PURE__*/
|
|
4690
|
-
input:
|
|
4691
|
-
output:
|
|
3795
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3796
|
+
input: CreateInstanceRequest,
|
|
3797
|
+
output: CreateInstanceResponse,
|
|
4692
3798
|
errors: [
|
|
4693
3799
|
ValidationError,
|
|
4694
3800
|
NotFound,
|
|
4695
3801
|
InvalidRoute,
|
|
3802
|
+
InstanceAlreadyExists,
|
|
4696
3803
|
InvalidTokenCredentials,
|
|
4697
3804
|
Forbidden,
|
|
4698
3805
|
],
|
|
4699
3806
|
}));
|
|
4700
3807
|
|
|
4701
|
-
export interface
|
|
3808
|
+
export interface UpdateInstanceRequest {
|
|
4702
3809
|
id: string;
|
|
3810
|
+
/** Path param */
|
|
4703
3811
|
accountId: string;
|
|
3812
|
+
/** Body param */
|
|
3813
|
+
aiGatewayId?: string | null;
|
|
3814
|
+
/** Body param */
|
|
3815
|
+
aiSearchModel?:
|
|
3816
|
+
| "@cf/meta/llama-3.3-70b-instruct-fp8-fast"
|
|
3817
|
+
| "@cf/zai-org/glm-4.7-flash"
|
|
3818
|
+
| "@cf/meta/llama-3.1-8b-instruct-fast"
|
|
3819
|
+
| "@cf/meta/llama-3.1-8b-instruct-fp8"
|
|
3820
|
+
| "@cf/meta/llama-4-scout-17b-16e-instruct"
|
|
3821
|
+
| "@cf/qwen/qwen3-30b-a3b-fp8"
|
|
3822
|
+
| "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"
|
|
3823
|
+
| "@cf/moonshotai/kimi-k2-instruct"
|
|
3824
|
+
| "@cf/google/gemma-3-12b-it"
|
|
3825
|
+
| "@cf/google/gemma-4-26b-a4b-it"
|
|
3826
|
+
| "@cf/moonshotai/kimi-k2.5"
|
|
3827
|
+
| "anthropic/claude-3-7-sonnet"
|
|
3828
|
+
| "anthropic/claude-sonnet-4"
|
|
3829
|
+
| "anthropic/claude-opus-4"
|
|
3830
|
+
| "anthropic/claude-3-5-haiku"
|
|
3831
|
+
| "cerebras/qwen-3-235b-a22b-instruct"
|
|
3832
|
+
| "cerebras/qwen-3-235b-a22b-thinking"
|
|
3833
|
+
| "cerebras/llama-3.3-70b"
|
|
3834
|
+
| "cerebras/llama-4-maverick-17b-128e-instruct"
|
|
3835
|
+
| "cerebras/llama-4-scout-17b-16e-instruct"
|
|
3836
|
+
| "cerebras/gpt-oss-120b"
|
|
3837
|
+
| "google-ai-studio/gemini-2.5-flash"
|
|
3838
|
+
| "google-ai-studio/gemini-2.5-pro"
|
|
3839
|
+
| "grok/grok-4"
|
|
3840
|
+
| "groq/llama-3.3-70b-versatile"
|
|
3841
|
+
| "groq/llama-3.1-8b-instant"
|
|
3842
|
+
| "openai/gpt-5"
|
|
3843
|
+
| "openai/gpt-5-mini"
|
|
3844
|
+
| "openai/gpt-5-nano"
|
|
3845
|
+
| ""
|
|
3846
|
+
| null;
|
|
3847
|
+
/** Body param */
|
|
3848
|
+
cache?: boolean;
|
|
3849
|
+
/** Body param */
|
|
3850
|
+
cacheThreshold?:
|
|
3851
|
+
| "super_strict_match"
|
|
3852
|
+
| "close_enough"
|
|
3853
|
+
| "flexible_friend"
|
|
3854
|
+
| "anything_goes"
|
|
3855
|
+
| (string & {});
|
|
3856
|
+
/** Body param: Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600 (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200 (72h), 518400 (6d). */
|
|
3857
|
+
cacheTtl?: number;
|
|
3858
|
+
/** Body param */
|
|
3859
|
+
chunk?: boolean;
|
|
3860
|
+
/** Body param */
|
|
3861
|
+
chunkOverlap?: number;
|
|
3862
|
+
/** Body param */
|
|
3863
|
+
chunkSize?: number;
|
|
3864
|
+
/** Body param */
|
|
3865
|
+
customMetadata?: {
|
|
3866
|
+
dataType: "text" | "number" | "boolean" | "datetime" | (string & {});
|
|
3867
|
+
fieldName: string;
|
|
3868
|
+
}[];
|
|
3869
|
+
/** Body param */
|
|
3870
|
+
embeddingModel?:
|
|
3871
|
+
| "@cf/qwen/qwen3-embedding-0.6b"
|
|
3872
|
+
| "@cf/qwen/qwen3-vl-embedding-2b"
|
|
3873
|
+
| "@cf/baai/bge-m3"
|
|
3874
|
+
| "@cf/baai/bge-large-en-v1.5"
|
|
3875
|
+
| "@cf/google/embeddinggemma-300m"
|
|
3876
|
+
| "google-ai-studio/gemini-embedding-001"
|
|
3877
|
+
| "google-ai-studio/gemini-embedding-2-preview"
|
|
3878
|
+
| "openai/text-embedding-3-small"
|
|
3879
|
+
| "openai/text-embedding-3-large"
|
|
3880
|
+
| ""
|
|
3881
|
+
| null;
|
|
3882
|
+
/** Body param */
|
|
3883
|
+
fusionMethod?: "max" | "rrf" | (string & {});
|
|
3884
|
+
/** Body param: Controls which storage backends are used during indexing. Defaults to vector-only. */
|
|
3885
|
+
indexMethod?: { keyword: boolean; vector: boolean };
|
|
3886
|
+
/** Body param */
|
|
3887
|
+
indexingOptions?: {
|
|
3888
|
+
keywordTokenizer?: "porter" | "trigram" | (string & {});
|
|
3889
|
+
} | null;
|
|
3890
|
+
/** Body param */
|
|
3891
|
+
maxNumResults?: number;
|
|
3892
|
+
/** Body param */
|
|
3893
|
+
metadata?: { createdFromAisearchWizard?: boolean; workerDomain?: string };
|
|
3894
|
+
/** Body param */
|
|
3895
|
+
paused?: boolean;
|
|
3896
|
+
/** Body param */
|
|
3897
|
+
publicEndpointParams?: {
|
|
3898
|
+
authorizedHosts?: string[];
|
|
3899
|
+
chatCompletionsEndpoint?: { disabled?: boolean };
|
|
3900
|
+
enabled?: boolean;
|
|
3901
|
+
mcp?: { description?: string; disabled?: boolean };
|
|
3902
|
+
rateLimit?: {
|
|
3903
|
+
periodMs?: number;
|
|
3904
|
+
requests?: number;
|
|
3905
|
+
technique?: "fixed" | "sliding" | (string & {});
|
|
3906
|
+
};
|
|
3907
|
+
searchEndpoint?: { disabled?: boolean };
|
|
3908
|
+
};
|
|
3909
|
+
/** Body param */
|
|
3910
|
+
reranking?: boolean;
|
|
3911
|
+
/** Body param */
|
|
3912
|
+
rerankingModel?: "@cf/baai/bge-reranker-base" | "" | null;
|
|
3913
|
+
/** Body param */
|
|
3914
|
+
retrievalOptions?: {
|
|
3915
|
+
boostBy?: {
|
|
3916
|
+
field: string;
|
|
3917
|
+
direction?: "asc" | "desc" | "exists" | "not_exists" | (string & {});
|
|
3918
|
+
}[];
|
|
3919
|
+
keywordMatchMode?: "and" | "or" | (string & {});
|
|
3920
|
+
} | null;
|
|
3921
|
+
/** Body param */
|
|
3922
|
+
rewriteModel?:
|
|
3923
|
+
| "@cf/meta/llama-3.3-70b-instruct-fp8-fast"
|
|
3924
|
+
| "@cf/zai-org/glm-4.7-flash"
|
|
3925
|
+
| "@cf/meta/llama-3.1-8b-instruct-fast"
|
|
3926
|
+
| "@cf/meta/llama-3.1-8b-instruct-fp8"
|
|
3927
|
+
| "@cf/meta/llama-4-scout-17b-16e-instruct"
|
|
3928
|
+
| "@cf/qwen/qwen3-30b-a3b-fp8"
|
|
3929
|
+
| "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"
|
|
3930
|
+
| "@cf/moonshotai/kimi-k2-instruct"
|
|
3931
|
+
| "@cf/google/gemma-3-12b-it"
|
|
3932
|
+
| "@cf/google/gemma-4-26b-a4b-it"
|
|
3933
|
+
| "@cf/moonshotai/kimi-k2.5"
|
|
3934
|
+
| "anthropic/claude-3-7-sonnet"
|
|
3935
|
+
| "anthropic/claude-sonnet-4"
|
|
3936
|
+
| "anthropic/claude-opus-4"
|
|
3937
|
+
| "anthropic/claude-3-5-haiku"
|
|
3938
|
+
| "cerebras/qwen-3-235b-a22b-instruct"
|
|
3939
|
+
| "cerebras/qwen-3-235b-a22b-thinking"
|
|
3940
|
+
| "cerebras/llama-3.3-70b"
|
|
3941
|
+
| "cerebras/llama-4-maverick-17b-128e-instruct"
|
|
3942
|
+
| "cerebras/llama-4-scout-17b-16e-instruct"
|
|
3943
|
+
| "cerebras/gpt-oss-120b"
|
|
3944
|
+
| "google-ai-studio/gemini-2.5-flash"
|
|
3945
|
+
| "google-ai-studio/gemini-2.5-pro"
|
|
3946
|
+
| "grok/grok-4"
|
|
3947
|
+
| "groq/llama-3.3-70b-versatile"
|
|
3948
|
+
| "groq/llama-3.1-8b-instant"
|
|
3949
|
+
| "openai/gpt-5"
|
|
3950
|
+
| "openai/gpt-5-mini"
|
|
3951
|
+
| "openai/gpt-5-nano"
|
|
3952
|
+
| ""
|
|
3953
|
+
| null;
|
|
3954
|
+
/** Body param */
|
|
3955
|
+
rewriteQuery?: boolean;
|
|
3956
|
+
/** Body param */
|
|
3957
|
+
scoreThreshold?: number;
|
|
3958
|
+
/** Body param */
|
|
3959
|
+
source?: string | null;
|
|
3960
|
+
/** Body param */
|
|
3961
|
+
sourceParams?: {
|
|
3962
|
+
excludeItems?: string[];
|
|
3963
|
+
includeItems?: string[];
|
|
3964
|
+
prefix?: string;
|
|
3965
|
+
r2Jurisdiction?: string;
|
|
3966
|
+
webCrawler?: {
|
|
3967
|
+
parseOptions?: {
|
|
3968
|
+
contentSelector?: { path: string; selector: string }[];
|
|
3969
|
+
includeHeaders?: Record<string, unknown>;
|
|
3970
|
+
includeImages?: boolean;
|
|
3971
|
+
specificSitemaps?: string[];
|
|
3972
|
+
useBrowserRendering?: boolean;
|
|
3973
|
+
};
|
|
3974
|
+
parseType?: "sitemap" | "crawl" | "feed-rss" | (string & {});
|
|
3975
|
+
crawlOptions?: {
|
|
3976
|
+
depth?: number;
|
|
3977
|
+
includeExternalLinks?: boolean;
|
|
3978
|
+
includeSubdomains?: boolean;
|
|
3979
|
+
maxAge?: number;
|
|
3980
|
+
source?: "all" | "sitemaps" | "links" | (string & {});
|
|
3981
|
+
};
|
|
3982
|
+
storeOptions?: {
|
|
3983
|
+
storageId: string;
|
|
3984
|
+
r2Jurisdiction?: string;
|
|
3985
|
+
storageType?: string;
|
|
3986
|
+
};
|
|
3987
|
+
};
|
|
3988
|
+
} | null;
|
|
3989
|
+
/** Body param */
|
|
3990
|
+
summarization?: boolean;
|
|
3991
|
+
/** Body param */
|
|
3992
|
+
summarizationModel?:
|
|
3993
|
+
| "@cf/meta/llama-3.3-70b-instruct-fp8-fast"
|
|
3994
|
+
| "@cf/zai-org/glm-4.7-flash"
|
|
3995
|
+
| "@cf/meta/llama-3.1-8b-instruct-fast"
|
|
3996
|
+
| "@cf/meta/llama-3.1-8b-instruct-fp8"
|
|
3997
|
+
| "@cf/meta/llama-4-scout-17b-16e-instruct"
|
|
3998
|
+
| "@cf/qwen/qwen3-30b-a3b-fp8"
|
|
3999
|
+
| "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"
|
|
4000
|
+
| "@cf/moonshotai/kimi-k2-instruct"
|
|
4001
|
+
| "@cf/google/gemma-3-12b-it"
|
|
4002
|
+
| "@cf/google/gemma-4-26b-a4b-it"
|
|
4003
|
+
| "@cf/moonshotai/kimi-k2.5"
|
|
4004
|
+
| "anthropic/claude-3-7-sonnet"
|
|
4005
|
+
| "anthropic/claude-sonnet-4"
|
|
4006
|
+
| "anthropic/claude-opus-4"
|
|
4007
|
+
| "anthropic/claude-3-5-haiku"
|
|
4008
|
+
| "cerebras/qwen-3-235b-a22b-instruct"
|
|
4009
|
+
| "cerebras/qwen-3-235b-a22b-thinking"
|
|
4010
|
+
| "cerebras/llama-3.3-70b"
|
|
4011
|
+
| "cerebras/llama-4-maverick-17b-128e-instruct"
|
|
4012
|
+
| "cerebras/llama-4-scout-17b-16e-instruct"
|
|
4013
|
+
| "cerebras/gpt-oss-120b"
|
|
4014
|
+
| "google-ai-studio/gemini-2.5-flash"
|
|
4015
|
+
| "google-ai-studio/gemini-2.5-pro"
|
|
4016
|
+
| "grok/grok-4"
|
|
4017
|
+
| "groq/llama-3.3-70b-versatile"
|
|
4018
|
+
| "groq/llama-3.1-8b-instant"
|
|
4019
|
+
| "openai/gpt-5"
|
|
4020
|
+
| "openai/gpt-5-mini"
|
|
4021
|
+
| "openai/gpt-5-nano"
|
|
4022
|
+
| ""
|
|
4023
|
+
| null;
|
|
4024
|
+
/** Body param: Interval between automatic syncs, in seconds. Allowed values: 900 (15min), 1800 (30min), 3600 (1h), 7200 (2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h). */
|
|
4025
|
+
syncInterval?: number;
|
|
4026
|
+
/** Body param */
|
|
4027
|
+
systemPromptAiSearch?: string | null;
|
|
4028
|
+
/** Body param */
|
|
4029
|
+
systemPromptIndexSummarization?: string | null;
|
|
4030
|
+
/** Body param */
|
|
4031
|
+
systemPromptRewriteQuery?: string | null;
|
|
4032
|
+
/** Body param */
|
|
4033
|
+
tokenId?: string;
|
|
4704
4034
|
}
|
|
4705
4035
|
|
|
4706
|
-
export const
|
|
4707
|
-
(
|
|
4708
|
-
Schema.
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4036
|
+
export const UpdateInstanceRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
4037
|
+
Schema.Struct({
|
|
4038
|
+
id: Schema.String.pipe(T.HttpPath("id")),
|
|
4039
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4040
|
+
aiGatewayId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4041
|
+
aiSearchModel: Schema.optional(
|
|
4042
|
+
Schema.Union([
|
|
4043
|
+
Schema.Literal("@cf/meta/llama-3.3-70b-instruct-fp8-fast"),
|
|
4044
|
+
Schema.Literal("@cf/zai-org/glm-4.7-flash"),
|
|
4045
|
+
Schema.Literal("@cf/meta/llama-3.1-8b-instruct-fast"),
|
|
4046
|
+
Schema.Literal("@cf/meta/llama-3.1-8b-instruct-fp8"),
|
|
4047
|
+
Schema.Literal("@cf/meta/llama-4-scout-17b-16e-instruct"),
|
|
4048
|
+
Schema.Literal("@cf/qwen/qwen3-30b-a3b-fp8"),
|
|
4049
|
+
Schema.Literal("@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"),
|
|
4050
|
+
Schema.Literal("@cf/moonshotai/kimi-k2-instruct"),
|
|
4051
|
+
Schema.Literal("@cf/google/gemma-3-12b-it"),
|
|
4052
|
+
Schema.Literal("@cf/google/gemma-4-26b-a4b-it"),
|
|
4053
|
+
Schema.Literal("@cf/moonshotai/kimi-k2.5"),
|
|
4054
|
+
Schema.Literal("anthropic/claude-3-7-sonnet"),
|
|
4055
|
+
Schema.Literal("anthropic/claude-sonnet-4"),
|
|
4056
|
+
Schema.Literal("anthropic/claude-opus-4"),
|
|
4057
|
+
Schema.Literal("anthropic/claude-3-5-haiku"),
|
|
4058
|
+
Schema.Literal("cerebras/qwen-3-235b-a22b-instruct"),
|
|
4059
|
+
Schema.Literal("cerebras/qwen-3-235b-a22b-thinking"),
|
|
4060
|
+
Schema.Literal("cerebras/llama-3.3-70b"),
|
|
4061
|
+
Schema.Literal("cerebras/llama-4-maverick-17b-128e-instruct"),
|
|
4062
|
+
Schema.Literal("cerebras/llama-4-scout-17b-16e-instruct"),
|
|
4063
|
+
Schema.Literal("cerebras/gpt-oss-120b"),
|
|
4064
|
+
Schema.Literal("google-ai-studio/gemini-2.5-flash"),
|
|
4065
|
+
Schema.Literal("google-ai-studio/gemini-2.5-pro"),
|
|
4066
|
+
Schema.Literal("grok/grok-4"),
|
|
4067
|
+
Schema.Literal("groq/llama-3.3-70b-versatile"),
|
|
4068
|
+
Schema.Literal("groq/llama-3.1-8b-instant"),
|
|
4069
|
+
Schema.Literal("openai/gpt-5"),
|
|
4070
|
+
Schema.Literal("openai/gpt-5-mini"),
|
|
4071
|
+
Schema.Literal("openai/gpt-5-nano"),
|
|
4072
|
+
Schema.Literal(""),
|
|
4073
|
+
Schema.Null,
|
|
4074
|
+
]),
|
|
4716
4075
|
),
|
|
4717
|
-
|
|
4076
|
+
cache: Schema.optional(Schema.Boolean),
|
|
4077
|
+
cacheThreshold: Schema.optional(
|
|
4078
|
+
Schema.Union([
|
|
4079
|
+
Schema.Literals([
|
|
4080
|
+
"super_strict_match",
|
|
4081
|
+
"close_enough",
|
|
4082
|
+
"flexible_friend",
|
|
4083
|
+
"anything_goes",
|
|
4084
|
+
]),
|
|
4085
|
+
Schema.String,
|
|
4086
|
+
]),
|
|
4087
|
+
),
|
|
4088
|
+
cacheTtl: Schema.optional(Schema.Number),
|
|
4089
|
+
chunk: Schema.optional(Schema.Boolean),
|
|
4090
|
+
chunkOverlap: Schema.optional(Schema.Number),
|
|
4091
|
+
chunkSize: Schema.optional(Schema.Number),
|
|
4092
|
+
customMetadata: Schema.optional(Schema.Array(CustomMetadata)),
|
|
4093
|
+
embeddingModel: Schema.optional(
|
|
4094
|
+
Schema.Union([
|
|
4095
|
+
Schema.Literal("@cf/qwen/qwen3-embedding-0.6b"),
|
|
4096
|
+
Schema.Literal("@cf/qwen/qwen3-vl-embedding-2b"),
|
|
4097
|
+
Schema.Literal("@cf/baai/bge-m3"),
|
|
4098
|
+
Schema.Literal("@cf/baai/bge-large-en-v1.5"),
|
|
4099
|
+
Schema.Literal("@cf/google/embeddinggemma-300m"),
|
|
4100
|
+
Schema.Literal("google-ai-studio/gemini-embedding-001"),
|
|
4101
|
+
Schema.Literal("google-ai-studio/gemini-embedding-2-preview"),
|
|
4102
|
+
Schema.Literal("openai/text-embedding-3-small"),
|
|
4103
|
+
Schema.Literal("openai/text-embedding-3-large"),
|
|
4104
|
+
Schema.Literal(""),
|
|
4105
|
+
Schema.Null,
|
|
4106
|
+
]),
|
|
4107
|
+
),
|
|
4108
|
+
fusionMethod: Schema.optional(
|
|
4109
|
+
Schema.Union([Schema.Literals(["max", "rrf"]), Schema.String]),
|
|
4110
|
+
),
|
|
4111
|
+
indexMethod: Schema.optional(IndexMethod),
|
|
4112
|
+
indexingOptions: Schema.optional(
|
|
4113
|
+
Schema.Union([IndexingOptions, Schema.Null]),
|
|
4114
|
+
),
|
|
4115
|
+
maxNumResults: Schema.optional(Schema.Number),
|
|
4116
|
+
metadata: Schema.optional(Metadata),
|
|
4117
|
+
paused: Schema.optional(Schema.Boolean),
|
|
4118
|
+
publicEndpointParams: Schema.optional(PublicEndpointParams),
|
|
4119
|
+
reranking: Schema.optional(Schema.Boolean),
|
|
4120
|
+
rerankingModel: Schema.optional(
|
|
4121
|
+
Schema.Union([
|
|
4122
|
+
Schema.Literal("@cf/baai/bge-reranker-base"),
|
|
4123
|
+
Schema.Literal(""),
|
|
4124
|
+
Schema.Null,
|
|
4125
|
+
]),
|
|
4126
|
+
),
|
|
4127
|
+
retrievalOptions: Schema.optional(
|
|
4128
|
+
Schema.Union([RetrievalOptions, Schema.Null]),
|
|
4129
|
+
),
|
|
4130
|
+
rewriteModel: Schema.optional(
|
|
4131
|
+
Schema.Union([
|
|
4132
|
+
Schema.Literal("@cf/meta/llama-3.3-70b-instruct-fp8-fast"),
|
|
4133
|
+
Schema.Literal("@cf/zai-org/glm-4.7-flash"),
|
|
4134
|
+
Schema.Literal("@cf/meta/llama-3.1-8b-instruct-fast"),
|
|
4135
|
+
Schema.Literal("@cf/meta/llama-3.1-8b-instruct-fp8"),
|
|
4136
|
+
Schema.Literal("@cf/meta/llama-4-scout-17b-16e-instruct"),
|
|
4137
|
+
Schema.Literal("@cf/qwen/qwen3-30b-a3b-fp8"),
|
|
4138
|
+
Schema.Literal("@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"),
|
|
4139
|
+
Schema.Literal("@cf/moonshotai/kimi-k2-instruct"),
|
|
4140
|
+
Schema.Literal("@cf/google/gemma-3-12b-it"),
|
|
4141
|
+
Schema.Literal("@cf/google/gemma-4-26b-a4b-it"),
|
|
4142
|
+
Schema.Literal("@cf/moonshotai/kimi-k2.5"),
|
|
4143
|
+
Schema.Literal("anthropic/claude-3-7-sonnet"),
|
|
4144
|
+
Schema.Literal("anthropic/claude-sonnet-4"),
|
|
4145
|
+
Schema.Literal("anthropic/claude-opus-4"),
|
|
4146
|
+
Schema.Literal("anthropic/claude-3-5-haiku"),
|
|
4147
|
+
Schema.Literal("cerebras/qwen-3-235b-a22b-instruct"),
|
|
4148
|
+
Schema.Literal("cerebras/qwen-3-235b-a22b-thinking"),
|
|
4149
|
+
Schema.Literal("cerebras/llama-3.3-70b"),
|
|
4150
|
+
Schema.Literal("cerebras/llama-4-maverick-17b-128e-instruct"),
|
|
4151
|
+
Schema.Literal("cerebras/llama-4-scout-17b-16e-instruct"),
|
|
4152
|
+
Schema.Literal("cerebras/gpt-oss-120b"),
|
|
4153
|
+
Schema.Literal("google-ai-studio/gemini-2.5-flash"),
|
|
4154
|
+
Schema.Literal("google-ai-studio/gemini-2.5-pro"),
|
|
4155
|
+
Schema.Literal("grok/grok-4"),
|
|
4156
|
+
Schema.Literal("groq/llama-3.3-70b-versatile"),
|
|
4157
|
+
Schema.Literal("groq/llama-3.1-8b-instant"),
|
|
4158
|
+
Schema.Literal("openai/gpt-5"),
|
|
4159
|
+
Schema.Literal("openai/gpt-5-mini"),
|
|
4160
|
+
Schema.Literal("openai/gpt-5-nano"),
|
|
4161
|
+
Schema.Literal(""),
|
|
4162
|
+
Schema.Null,
|
|
4163
|
+
]),
|
|
4164
|
+
),
|
|
4165
|
+
rewriteQuery: Schema.optional(Schema.Boolean),
|
|
4166
|
+
scoreThreshold: Schema.optional(Schema.Number),
|
|
4167
|
+
source: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4168
|
+
sourceParams: Schema.optional(Schema.Union([SourceParams2, Schema.Null])),
|
|
4169
|
+
summarization: Schema.optional(Schema.Boolean),
|
|
4170
|
+
summarizationModel: Schema.optional(
|
|
4171
|
+
Schema.Union([
|
|
4172
|
+
Schema.Literal("@cf/meta/llama-3.3-70b-instruct-fp8-fast"),
|
|
4173
|
+
Schema.Literal("@cf/zai-org/glm-4.7-flash"),
|
|
4174
|
+
Schema.Literal("@cf/meta/llama-3.1-8b-instruct-fast"),
|
|
4175
|
+
Schema.Literal("@cf/meta/llama-3.1-8b-instruct-fp8"),
|
|
4176
|
+
Schema.Literal("@cf/meta/llama-4-scout-17b-16e-instruct"),
|
|
4177
|
+
Schema.Literal("@cf/qwen/qwen3-30b-a3b-fp8"),
|
|
4178
|
+
Schema.Literal("@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"),
|
|
4179
|
+
Schema.Literal("@cf/moonshotai/kimi-k2-instruct"),
|
|
4180
|
+
Schema.Literal("@cf/google/gemma-3-12b-it"),
|
|
4181
|
+
Schema.Literal("@cf/google/gemma-4-26b-a4b-it"),
|
|
4182
|
+
Schema.Literal("@cf/moonshotai/kimi-k2.5"),
|
|
4183
|
+
Schema.Literal("anthropic/claude-3-7-sonnet"),
|
|
4184
|
+
Schema.Literal("anthropic/claude-sonnet-4"),
|
|
4185
|
+
Schema.Literal("anthropic/claude-opus-4"),
|
|
4186
|
+
Schema.Literal("anthropic/claude-3-5-haiku"),
|
|
4187
|
+
Schema.Literal("cerebras/qwen-3-235b-a22b-instruct"),
|
|
4188
|
+
Schema.Literal("cerebras/qwen-3-235b-a22b-thinking"),
|
|
4189
|
+
Schema.Literal("cerebras/llama-3.3-70b"),
|
|
4190
|
+
Schema.Literal("cerebras/llama-4-maverick-17b-128e-instruct"),
|
|
4191
|
+
Schema.Literal("cerebras/llama-4-scout-17b-16e-instruct"),
|
|
4192
|
+
Schema.Literal("cerebras/gpt-oss-120b"),
|
|
4193
|
+
Schema.Literal("google-ai-studio/gemini-2.5-flash"),
|
|
4194
|
+
Schema.Literal("google-ai-studio/gemini-2.5-pro"),
|
|
4195
|
+
Schema.Literal("grok/grok-4"),
|
|
4196
|
+
Schema.Literal("groq/llama-3.3-70b-versatile"),
|
|
4197
|
+
Schema.Literal("groq/llama-3.1-8b-instant"),
|
|
4198
|
+
Schema.Literal("openai/gpt-5"),
|
|
4199
|
+
Schema.Literal("openai/gpt-5-mini"),
|
|
4200
|
+
Schema.Literal("openai/gpt-5-nano"),
|
|
4201
|
+
Schema.Literal(""),
|
|
4202
|
+
Schema.Null,
|
|
4203
|
+
]),
|
|
4204
|
+
),
|
|
4205
|
+
syncInterval: Schema.optional(Schema.Number),
|
|
4206
|
+
systemPromptAiSearch: Schema.optional(
|
|
4207
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
4208
|
+
),
|
|
4209
|
+
systemPromptIndexSummarization: Schema.optional(
|
|
4210
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
4211
|
+
),
|
|
4212
|
+
systemPromptRewriteQuery: Schema.optional(
|
|
4213
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
4214
|
+
),
|
|
4215
|
+
tokenId: Schema.optional(Schema.String),
|
|
4216
|
+
}).pipe(
|
|
4217
|
+
Schema.encodeKeys({
|
|
4218
|
+
aiGatewayId: "ai_gateway_id",
|
|
4219
|
+
aiSearchModel: "ai_search_model",
|
|
4220
|
+
cache: "cache",
|
|
4221
|
+
cacheThreshold: "cache_threshold",
|
|
4222
|
+
cacheTtl: "cache_ttl",
|
|
4223
|
+
chunk: "chunk",
|
|
4224
|
+
chunkOverlap: "chunk_overlap",
|
|
4225
|
+
chunkSize: "chunk_size",
|
|
4226
|
+
customMetadata: "custom_metadata",
|
|
4227
|
+
embeddingModel: "embedding_model",
|
|
4228
|
+
fusionMethod: "fusion_method",
|
|
4229
|
+
indexMethod: "index_method",
|
|
4230
|
+
indexingOptions: "indexing_options",
|
|
4231
|
+
maxNumResults: "max_num_results",
|
|
4232
|
+
metadata: "metadata",
|
|
4233
|
+
paused: "paused",
|
|
4234
|
+
publicEndpointParams: "public_endpoint_params",
|
|
4235
|
+
reranking: "reranking",
|
|
4236
|
+
rerankingModel: "reranking_model",
|
|
4237
|
+
retrievalOptions: "retrieval_options",
|
|
4238
|
+
rewriteModel: "rewrite_model",
|
|
4239
|
+
rewriteQuery: "rewrite_query",
|
|
4240
|
+
scoreThreshold: "score_threshold",
|
|
4241
|
+
source: "source",
|
|
4242
|
+
sourceParams: "source_params",
|
|
4243
|
+
summarization: "summarization",
|
|
4244
|
+
summarizationModel: "summarization_model",
|
|
4245
|
+
syncInterval: "sync_interval",
|
|
4246
|
+
systemPromptAiSearch: "system_prompt_ai_search",
|
|
4247
|
+
systemPromptIndexSummarization: "system_prompt_index_summarization",
|
|
4248
|
+
systemPromptRewriteQuery: "system_prompt_rewrite_query",
|
|
4249
|
+
tokenId: "token_id",
|
|
4250
|
+
}),
|
|
4251
|
+
T.Http({
|
|
4252
|
+
method: "PUT",
|
|
4253
|
+
path: "/accounts/{account_id}/ai-search/instances/{id}",
|
|
4254
|
+
}),
|
|
4255
|
+
),
|
|
4256
|
+
) as unknown as Schema.Codec<UpdateInstanceRequest>;
|
|
4718
4257
|
|
|
4719
|
-
export interface
|
|
4258
|
+
export interface UpdateInstanceResponse {
|
|
4720
4259
|
/** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */
|
|
4721
4260
|
id: string;
|
|
4722
4261
|
createdAt?: string | null;
|
|
@@ -4903,8 +4442,8 @@ export interface DeleteInstanceResponse {
|
|
|
4903
4442
|
type?: "r2" | "web-crawler" | null;
|
|
4904
4443
|
}
|
|
4905
4444
|
|
|
4906
|
-
export const
|
|
4907
|
-
/*@__PURE__*/
|
|
4445
|
+
export const UpdateInstanceResponse =
|
|
4446
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
4908
4447
|
Schema.Struct({
|
|
4909
4448
|
id: Schema.String,
|
|
4910
4449
|
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -5117,45 +4656,51 @@ export const DeleteInstanceResponse =
|
|
|
5117
4656
|
}),
|
|
5118
4657
|
)
|
|
5119
4658
|
.pipe(T.ResponsePath("result")),
|
|
5120
|
-
) as unknown as Schema.Codec<
|
|
4659
|
+
) as unknown as Schema.Codec<UpdateInstanceResponse>;
|
|
5121
4660
|
|
|
5122
|
-
export type
|
|
4661
|
+
export type UpdateInstanceError =
|
|
5123
4662
|
| DefaultErrors
|
|
5124
4663
|
| ValidationError
|
|
5125
4664
|
| NotFound
|
|
5126
4665
|
| InvalidRoute
|
|
4666
|
+
| InvalidTokenCredentials
|
|
5127
4667
|
| Forbidden;
|
|
5128
4668
|
|
|
5129
|
-
export const
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
4669
|
+
export const updateInstance: API.OperationMethod<
|
|
4670
|
+
UpdateInstanceRequest,
|
|
4671
|
+
UpdateInstanceResponse,
|
|
4672
|
+
UpdateInstanceError,
|
|
5133
4673
|
Credentials | HttpClient.HttpClient
|
|
5134
|
-
> = /*@__PURE__*/
|
|
5135
|
-
input:
|
|
5136
|
-
output:
|
|
5137
|
-
errors: [
|
|
4674
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4675
|
+
input: UpdateInstanceRequest,
|
|
4676
|
+
output: UpdateInstanceResponse,
|
|
4677
|
+
errors: [
|
|
4678
|
+
ValidationError,
|
|
4679
|
+
NotFound,
|
|
4680
|
+
InvalidRoute,
|
|
4681
|
+
InvalidTokenCredentials,
|
|
4682
|
+
Forbidden,
|
|
4683
|
+
],
|
|
5138
4684
|
}));
|
|
5139
4685
|
|
|
5140
|
-
export interface
|
|
4686
|
+
export interface DeleteInstanceRequest {
|
|
5141
4687
|
id: string;
|
|
5142
4688
|
accountId: string;
|
|
5143
4689
|
}
|
|
5144
4690
|
|
|
5145
|
-
export const
|
|
5146
|
-
(
|
|
5147
|
-
Schema.
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
) as unknown as Schema.Codec<ReadInstanceRequest>;
|
|
4691
|
+
export const DeleteInstanceRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
4692
|
+
Schema.Struct({
|
|
4693
|
+
id: Schema.String.pipe(T.HttpPath("id")),
|
|
4694
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4695
|
+
}).pipe(
|
|
4696
|
+
T.Http({
|
|
4697
|
+
method: "DELETE",
|
|
4698
|
+
path: "/accounts/{account_id}/ai-search/instances/{id}",
|
|
4699
|
+
}),
|
|
4700
|
+
),
|
|
4701
|
+
) as unknown as Schema.Codec<DeleteInstanceRequest>;
|
|
5157
4702
|
|
|
5158
|
-
export interface
|
|
4703
|
+
export interface DeleteInstanceResponse {
|
|
5159
4704
|
/** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */
|
|
5160
4705
|
id: string;
|
|
5161
4706
|
createdAt?: string | null;
|
|
@@ -5342,8 +4887,8 @@ export interface ReadInstanceResponse {
|
|
|
5342
4887
|
type?: "r2" | "web-crawler" | null;
|
|
5343
4888
|
}
|
|
5344
4889
|
|
|
5345
|
-
export const
|
|
5346
|
-
() =>
|
|
4890
|
+
export const DeleteInstanceResponse =
|
|
4891
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
5347
4892
|
Schema.Struct({
|
|
5348
4893
|
id: Schema.String,
|
|
5349
4894
|
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -5556,6 +5101,435 @@ export const ReadInstanceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
|
|
|
5556
5101
|
}),
|
|
5557
5102
|
)
|
|
5558
5103
|
.pipe(T.ResponsePath("result")),
|
|
5104
|
+
) as unknown as Schema.Codec<DeleteInstanceResponse>;
|
|
5105
|
+
|
|
5106
|
+
export type DeleteInstanceError =
|
|
5107
|
+
| DefaultErrors
|
|
5108
|
+
| ValidationError
|
|
5109
|
+
| NotFound
|
|
5110
|
+
| InvalidRoute
|
|
5111
|
+
| Forbidden;
|
|
5112
|
+
|
|
5113
|
+
export const deleteInstance: API.OperationMethod<
|
|
5114
|
+
DeleteInstanceRequest,
|
|
5115
|
+
DeleteInstanceResponse,
|
|
5116
|
+
DeleteInstanceError,
|
|
5117
|
+
Credentials | HttpClient.HttpClient
|
|
5118
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
5119
|
+
input: DeleteInstanceRequest,
|
|
5120
|
+
output: DeleteInstanceResponse,
|
|
5121
|
+
errors: [ValidationError, NotFound, InvalidRoute, Forbidden],
|
|
5122
|
+
}));
|
|
5123
|
+
|
|
5124
|
+
export interface ReadInstanceRequest {
|
|
5125
|
+
id: string;
|
|
5126
|
+
accountId: string;
|
|
5127
|
+
}
|
|
5128
|
+
|
|
5129
|
+
export const ReadInstanceRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
5130
|
+
Schema.Struct({
|
|
5131
|
+
id: Schema.String.pipe(T.HttpPath("id")),
|
|
5132
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
5133
|
+
}).pipe(
|
|
5134
|
+
T.Http({
|
|
5135
|
+
method: "GET",
|
|
5136
|
+
path: "/accounts/{account_id}/ai-search/instances/{id}",
|
|
5137
|
+
}),
|
|
5138
|
+
),
|
|
5139
|
+
) as unknown as Schema.Codec<ReadInstanceRequest>;
|
|
5140
|
+
|
|
5141
|
+
export interface ReadInstanceResponse {
|
|
5142
|
+
/** AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores. */
|
|
5143
|
+
id: string;
|
|
5144
|
+
createdAt?: string | null;
|
|
5145
|
+
modifiedAt?: string | null;
|
|
5146
|
+
aiGatewayId?: string | null;
|
|
5147
|
+
aiSearchModel?:
|
|
5148
|
+
| "@cf/meta/llama-3.3-70b-instruct-fp8-fast"
|
|
5149
|
+
| "@cf/zai-org/glm-4.7-flash"
|
|
5150
|
+
| "@cf/meta/llama-3.1-8b-instruct-fast"
|
|
5151
|
+
| "@cf/meta/llama-3.1-8b-instruct-fp8"
|
|
5152
|
+
| "@cf/meta/llama-4-scout-17b-16e-instruct"
|
|
5153
|
+
| "@cf/qwen/qwen3-30b-a3b-fp8"
|
|
5154
|
+
| "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"
|
|
5155
|
+
| "@cf/moonshotai/kimi-k2-instruct"
|
|
5156
|
+
| "@cf/google/gemma-3-12b-it"
|
|
5157
|
+
| "@cf/google/gemma-4-26b-a4b-it"
|
|
5158
|
+
| "@cf/moonshotai/kimi-k2.5"
|
|
5159
|
+
| "anthropic/claude-3-7-sonnet"
|
|
5160
|
+
| "anthropic/claude-sonnet-4"
|
|
5161
|
+
| "anthropic/claude-opus-4"
|
|
5162
|
+
| "anthropic/claude-3-5-haiku"
|
|
5163
|
+
| "cerebras/qwen-3-235b-a22b-instruct"
|
|
5164
|
+
| "cerebras/qwen-3-235b-a22b-thinking"
|
|
5165
|
+
| "cerebras/llama-3.3-70b"
|
|
5166
|
+
| "cerebras/llama-4-maverick-17b-128e-instruct"
|
|
5167
|
+
| "cerebras/llama-4-scout-17b-16e-instruct"
|
|
5168
|
+
| "cerebras/gpt-oss-120b"
|
|
5169
|
+
| "google-ai-studio/gemini-2.5-flash"
|
|
5170
|
+
| "google-ai-studio/gemini-2.5-pro"
|
|
5171
|
+
| "grok/grok-4"
|
|
5172
|
+
| "groq/llama-3.3-70b-versatile"
|
|
5173
|
+
| "groq/llama-3.1-8b-instant"
|
|
5174
|
+
| "openai/gpt-5"
|
|
5175
|
+
| "openai/gpt-5-mini"
|
|
5176
|
+
| "openai/gpt-5-nano"
|
|
5177
|
+
| ""
|
|
5178
|
+
| null;
|
|
5179
|
+
cache?: boolean | null;
|
|
5180
|
+
cacheThreshold?:
|
|
5181
|
+
| "super_strict_match"
|
|
5182
|
+
| "close_enough"
|
|
5183
|
+
| "flexible_friend"
|
|
5184
|
+
| "anything_goes"
|
|
5185
|
+
| null;
|
|
5186
|
+
/** Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600 (1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200 (72h), 518400 (6d). */
|
|
5187
|
+
cacheTtl?: number | null;
|
|
5188
|
+
chunkOverlap?: number | null;
|
|
5189
|
+
chunkSize?: number | null;
|
|
5190
|
+
createdBy?: string | null;
|
|
5191
|
+
customMetadata?:
|
|
5192
|
+
| {
|
|
5193
|
+
dataType: "text" | "number" | "boolean" | "datetime" | (string & {});
|
|
5194
|
+
fieldName: string;
|
|
5195
|
+
}[]
|
|
5196
|
+
| null;
|
|
5197
|
+
embeddingModel?:
|
|
5198
|
+
| "@cf/qwen/qwen3-embedding-0.6b"
|
|
5199
|
+
| "@cf/qwen/qwen3-vl-embedding-2b"
|
|
5200
|
+
| "@cf/baai/bge-m3"
|
|
5201
|
+
| "@cf/baai/bge-large-en-v1.5"
|
|
5202
|
+
| "@cf/google/embeddinggemma-300m"
|
|
5203
|
+
| "google-ai-studio/gemini-embedding-001"
|
|
5204
|
+
| "google-ai-studio/gemini-embedding-2-preview"
|
|
5205
|
+
| "openai/text-embedding-3-small"
|
|
5206
|
+
| "openai/text-embedding-3-large"
|
|
5207
|
+
| ""
|
|
5208
|
+
| null;
|
|
5209
|
+
enable?: boolean | null;
|
|
5210
|
+
engineVersion?: number | null;
|
|
5211
|
+
fusionMethod?: "max" | "rrf" | (string & {}) | null;
|
|
5212
|
+
/** @deprecated Deprecated — use index_method instead. */
|
|
5213
|
+
hybridSearchEnabled?: boolean | null;
|
|
5214
|
+
/** Controls which storage backends are used during indexing. Defaults to vector-only. */
|
|
5215
|
+
indexMethod?: { keyword: boolean; vector: boolean } | null;
|
|
5216
|
+
indexingOptions?: {
|
|
5217
|
+
keywordTokenizer?: "porter" | "trigram" | (string & {}) | null;
|
|
5218
|
+
} | null;
|
|
5219
|
+
lastActivity?: string | null;
|
|
5220
|
+
maxNumResults?: number | null;
|
|
5221
|
+
metadata?: {
|
|
5222
|
+
createdFromAisearchWizard?: boolean | null;
|
|
5223
|
+
workerDomain?: string | null;
|
|
5224
|
+
} | null;
|
|
5225
|
+
modifiedBy?: string | null;
|
|
5226
|
+
namespace?: string | null;
|
|
5227
|
+
paused?: boolean | null;
|
|
5228
|
+
publicEndpointId?: string | null;
|
|
5229
|
+
publicEndpointParams?: {
|
|
5230
|
+
authorizedHosts?: string[] | null;
|
|
5231
|
+
chatCompletionsEndpoint?: { disabled?: boolean | null } | null;
|
|
5232
|
+
enabled?: boolean | null;
|
|
5233
|
+
mcp?: { description?: string | null; disabled?: boolean | null } | null;
|
|
5234
|
+
rateLimit?: {
|
|
5235
|
+
periodMs?: number | null;
|
|
5236
|
+
requests?: number | null;
|
|
5237
|
+
technique?: "fixed" | "sliding" | (string & {}) | null;
|
|
5238
|
+
} | null;
|
|
5239
|
+
searchEndpoint?: { disabled?: boolean | null } | null;
|
|
5240
|
+
} | null;
|
|
5241
|
+
reranking?: boolean | null;
|
|
5242
|
+
rerankingModel?: "@cf/baai/bge-reranker-base" | "" | null;
|
|
5243
|
+
retrievalOptions?: {
|
|
5244
|
+
boostBy?:
|
|
5245
|
+
| {
|
|
5246
|
+
field: string;
|
|
5247
|
+
direction?:
|
|
5248
|
+
| "asc"
|
|
5249
|
+
| "desc"
|
|
5250
|
+
| "exists"
|
|
5251
|
+
| "not_exists"
|
|
5252
|
+
| (string & {})
|
|
5253
|
+
| null;
|
|
5254
|
+
}[]
|
|
5255
|
+
| null;
|
|
5256
|
+
keywordMatchMode?: "and" | "or" | (string & {}) | null;
|
|
5257
|
+
} | null;
|
|
5258
|
+
rewriteModel?:
|
|
5259
|
+
| "@cf/meta/llama-3.3-70b-instruct-fp8-fast"
|
|
5260
|
+
| "@cf/zai-org/glm-4.7-flash"
|
|
5261
|
+
| "@cf/meta/llama-3.1-8b-instruct-fast"
|
|
5262
|
+
| "@cf/meta/llama-3.1-8b-instruct-fp8"
|
|
5263
|
+
| "@cf/meta/llama-4-scout-17b-16e-instruct"
|
|
5264
|
+
| "@cf/qwen/qwen3-30b-a3b-fp8"
|
|
5265
|
+
| "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"
|
|
5266
|
+
| "@cf/moonshotai/kimi-k2-instruct"
|
|
5267
|
+
| "@cf/google/gemma-3-12b-it"
|
|
5268
|
+
| "@cf/google/gemma-4-26b-a4b-it"
|
|
5269
|
+
| "@cf/moonshotai/kimi-k2.5"
|
|
5270
|
+
| "anthropic/claude-3-7-sonnet"
|
|
5271
|
+
| "anthropic/claude-sonnet-4"
|
|
5272
|
+
| "anthropic/claude-opus-4"
|
|
5273
|
+
| "anthropic/claude-3-5-haiku"
|
|
5274
|
+
| "cerebras/qwen-3-235b-a22b-instruct"
|
|
5275
|
+
| "cerebras/qwen-3-235b-a22b-thinking"
|
|
5276
|
+
| "cerebras/llama-3.3-70b"
|
|
5277
|
+
| "cerebras/llama-4-maverick-17b-128e-instruct"
|
|
5278
|
+
| "cerebras/llama-4-scout-17b-16e-instruct"
|
|
5279
|
+
| "cerebras/gpt-oss-120b"
|
|
5280
|
+
| "google-ai-studio/gemini-2.5-flash"
|
|
5281
|
+
| "google-ai-studio/gemini-2.5-pro"
|
|
5282
|
+
| "grok/grok-4"
|
|
5283
|
+
| "groq/llama-3.3-70b-versatile"
|
|
5284
|
+
| "groq/llama-3.1-8b-instant"
|
|
5285
|
+
| "openai/gpt-5"
|
|
5286
|
+
| "openai/gpt-5-mini"
|
|
5287
|
+
| "openai/gpt-5-nano"
|
|
5288
|
+
| ""
|
|
5289
|
+
| null;
|
|
5290
|
+
rewriteQuery?: boolean | null;
|
|
5291
|
+
scoreThreshold?: number | null;
|
|
5292
|
+
source?: string | null;
|
|
5293
|
+
sourceParams?: {
|
|
5294
|
+
excludeItems?: string[] | null;
|
|
5295
|
+
includeItems?: string[] | null;
|
|
5296
|
+
prefix?: string | null;
|
|
5297
|
+
r2Jurisdiction?: string | null;
|
|
5298
|
+
webCrawler?: {
|
|
5299
|
+
parseOptions?: {
|
|
5300
|
+
contentSelector?: { path: string; selector: string }[] | null;
|
|
5301
|
+
includeHeaders?: Record<string, unknown> | null;
|
|
5302
|
+
includeImages?: boolean | null;
|
|
5303
|
+
specificSitemaps?: string[] | null;
|
|
5304
|
+
useBrowserRendering?: boolean | null;
|
|
5305
|
+
} | null;
|
|
5306
|
+
parseType?: "sitemap" | "crawl" | "feed-rss" | (string & {}) | null;
|
|
5307
|
+
crawlOptions?: {
|
|
5308
|
+
depth?: number | null;
|
|
5309
|
+
includeExternalLinks?: boolean | null;
|
|
5310
|
+
includeSubdomains?: boolean | null;
|
|
5311
|
+
maxAge?: number | null;
|
|
5312
|
+
source?: "all" | "sitemaps" | "links" | (string & {}) | null;
|
|
5313
|
+
} | null;
|
|
5314
|
+
storeOptions?: {
|
|
5315
|
+
storageId: string;
|
|
5316
|
+
r2Jurisdiction?: string | null;
|
|
5317
|
+
storageType?: string | null;
|
|
5318
|
+
} | null;
|
|
5319
|
+
} | null;
|
|
5320
|
+
} | null;
|
|
5321
|
+
status?: string | null;
|
|
5322
|
+
/** Interval between automatic syncs, in seconds. Allowed values: 900 (15min), 1800 (30min), 3600 (1h), 7200 (2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h). */
|
|
5323
|
+
syncInterval?: number | null;
|
|
5324
|
+
tokenId?: string | null;
|
|
5325
|
+
type?: "r2" | "web-crawler" | null;
|
|
5326
|
+
}
|
|
5327
|
+
|
|
5328
|
+
export const ReadInstanceResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
5329
|
+
Schema.Struct({
|
|
5330
|
+
id: Schema.String,
|
|
5331
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5332
|
+
modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5333
|
+
aiGatewayId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5334
|
+
aiSearchModel: Schema.optional(
|
|
5335
|
+
Schema.Union([
|
|
5336
|
+
Schema.Literal("@cf/meta/llama-3.3-70b-instruct-fp8-fast"),
|
|
5337
|
+
Schema.Literal("@cf/zai-org/glm-4.7-flash"),
|
|
5338
|
+
Schema.Literal("@cf/meta/llama-3.1-8b-instruct-fast"),
|
|
5339
|
+
Schema.Literal("@cf/meta/llama-3.1-8b-instruct-fp8"),
|
|
5340
|
+
Schema.Literal("@cf/meta/llama-4-scout-17b-16e-instruct"),
|
|
5341
|
+
Schema.Literal("@cf/qwen/qwen3-30b-a3b-fp8"),
|
|
5342
|
+
Schema.Literal("@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"),
|
|
5343
|
+
Schema.Literal("@cf/moonshotai/kimi-k2-instruct"),
|
|
5344
|
+
Schema.Literal("@cf/google/gemma-3-12b-it"),
|
|
5345
|
+
Schema.Literal("@cf/google/gemma-4-26b-a4b-it"),
|
|
5346
|
+
Schema.Literal("@cf/moonshotai/kimi-k2.5"),
|
|
5347
|
+
Schema.Literal("anthropic/claude-3-7-sonnet"),
|
|
5348
|
+
Schema.Literal("anthropic/claude-sonnet-4"),
|
|
5349
|
+
Schema.Literal("anthropic/claude-opus-4"),
|
|
5350
|
+
Schema.Literal("anthropic/claude-3-5-haiku"),
|
|
5351
|
+
Schema.Literal("cerebras/qwen-3-235b-a22b-instruct"),
|
|
5352
|
+
Schema.Literal("cerebras/qwen-3-235b-a22b-thinking"),
|
|
5353
|
+
Schema.Literal("cerebras/llama-3.3-70b"),
|
|
5354
|
+
Schema.Literal("cerebras/llama-4-maverick-17b-128e-instruct"),
|
|
5355
|
+
Schema.Literal("cerebras/llama-4-scout-17b-16e-instruct"),
|
|
5356
|
+
Schema.Literal("cerebras/gpt-oss-120b"),
|
|
5357
|
+
Schema.Literal("google-ai-studio/gemini-2.5-flash"),
|
|
5358
|
+
Schema.Literal("google-ai-studio/gemini-2.5-pro"),
|
|
5359
|
+
Schema.Literal("grok/grok-4"),
|
|
5360
|
+
Schema.Literal("groq/llama-3.3-70b-versatile"),
|
|
5361
|
+
Schema.Literal("groq/llama-3.1-8b-instant"),
|
|
5362
|
+
Schema.Literal("openai/gpt-5"),
|
|
5363
|
+
Schema.Literal("openai/gpt-5-mini"),
|
|
5364
|
+
Schema.Literal("openai/gpt-5-nano"),
|
|
5365
|
+
Schema.Literal(""),
|
|
5366
|
+
Schema.Null,
|
|
5367
|
+
]),
|
|
5368
|
+
),
|
|
5369
|
+
cache: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
5370
|
+
cacheThreshold: Schema.optional(
|
|
5371
|
+
Schema.Union([
|
|
5372
|
+
Schema.Literal("super_strict_match"),
|
|
5373
|
+
Schema.Literal("close_enough"),
|
|
5374
|
+
Schema.Literal("flexible_friend"),
|
|
5375
|
+
Schema.Literal("anything_goes"),
|
|
5376
|
+
Schema.Null,
|
|
5377
|
+
]),
|
|
5378
|
+
),
|
|
5379
|
+
cacheTtl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5380
|
+
chunkOverlap: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5381
|
+
chunkSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5382
|
+
createdBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5383
|
+
customMetadata: Schema.optional(
|
|
5384
|
+
Schema.Union([Schema.Array(CustomMetadata), Schema.Null]),
|
|
5385
|
+
),
|
|
5386
|
+
embeddingModel: Schema.optional(
|
|
5387
|
+
Schema.Union([
|
|
5388
|
+
Schema.Literal("@cf/qwen/qwen3-embedding-0.6b"),
|
|
5389
|
+
Schema.Literal("@cf/qwen/qwen3-vl-embedding-2b"),
|
|
5390
|
+
Schema.Literal("@cf/baai/bge-m3"),
|
|
5391
|
+
Schema.Literal("@cf/baai/bge-large-en-v1.5"),
|
|
5392
|
+
Schema.Literal("@cf/google/embeddinggemma-300m"),
|
|
5393
|
+
Schema.Literal("google-ai-studio/gemini-embedding-001"),
|
|
5394
|
+
Schema.Literal("google-ai-studio/gemini-embedding-2-preview"),
|
|
5395
|
+
Schema.Literal("openai/text-embedding-3-small"),
|
|
5396
|
+
Schema.Literal("openai/text-embedding-3-large"),
|
|
5397
|
+
Schema.Literal(""),
|
|
5398
|
+
Schema.Null,
|
|
5399
|
+
]),
|
|
5400
|
+
),
|
|
5401
|
+
enable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
5402
|
+
engineVersion: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5403
|
+
fusionMethod: Schema.optional(
|
|
5404
|
+
Schema.Union([
|
|
5405
|
+
Schema.Union([Schema.Literals(["max", "rrf"]), Schema.String]),
|
|
5406
|
+
Schema.Null,
|
|
5407
|
+
]),
|
|
5408
|
+
),
|
|
5409
|
+
hybridSearchEnabled: Schema.optional(
|
|
5410
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
5411
|
+
),
|
|
5412
|
+
indexMethod: Schema.optional(Schema.Union([IndexMethod, Schema.Null])),
|
|
5413
|
+
indexingOptions: Schema.optional(
|
|
5414
|
+
Schema.Union([IndexingOptions, Schema.Null]),
|
|
5415
|
+
),
|
|
5416
|
+
lastActivity: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5417
|
+
maxNumResults: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5418
|
+
metadata: Schema.optional(Schema.Union([Metadata, Schema.Null])),
|
|
5419
|
+
modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5420
|
+
namespace: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5421
|
+
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
5422
|
+
publicEndpointId: Schema.optional(
|
|
5423
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
5424
|
+
),
|
|
5425
|
+
publicEndpointParams: Schema.optional(
|
|
5426
|
+
Schema.Union([PublicEndpointParams, Schema.Null]),
|
|
5427
|
+
),
|
|
5428
|
+
reranking: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
5429
|
+
rerankingModel: Schema.optional(
|
|
5430
|
+
Schema.Union([
|
|
5431
|
+
Schema.Literal("@cf/baai/bge-reranker-base"),
|
|
5432
|
+
Schema.Literal(""),
|
|
5433
|
+
Schema.Null,
|
|
5434
|
+
]),
|
|
5435
|
+
),
|
|
5436
|
+
retrievalOptions: Schema.optional(
|
|
5437
|
+
Schema.Union([RetrievalOptions, Schema.Null]),
|
|
5438
|
+
),
|
|
5439
|
+
rewriteModel: Schema.optional(
|
|
5440
|
+
Schema.Union([
|
|
5441
|
+
Schema.Literal("@cf/meta/llama-3.3-70b-instruct-fp8-fast"),
|
|
5442
|
+
Schema.Literal("@cf/zai-org/glm-4.7-flash"),
|
|
5443
|
+
Schema.Literal("@cf/meta/llama-3.1-8b-instruct-fast"),
|
|
5444
|
+
Schema.Literal("@cf/meta/llama-3.1-8b-instruct-fp8"),
|
|
5445
|
+
Schema.Literal("@cf/meta/llama-4-scout-17b-16e-instruct"),
|
|
5446
|
+
Schema.Literal("@cf/qwen/qwen3-30b-a3b-fp8"),
|
|
5447
|
+
Schema.Literal("@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"),
|
|
5448
|
+
Schema.Literal("@cf/moonshotai/kimi-k2-instruct"),
|
|
5449
|
+
Schema.Literal("@cf/google/gemma-3-12b-it"),
|
|
5450
|
+
Schema.Literal("@cf/google/gemma-4-26b-a4b-it"),
|
|
5451
|
+
Schema.Literal("@cf/moonshotai/kimi-k2.5"),
|
|
5452
|
+
Schema.Literal("anthropic/claude-3-7-sonnet"),
|
|
5453
|
+
Schema.Literal("anthropic/claude-sonnet-4"),
|
|
5454
|
+
Schema.Literal("anthropic/claude-opus-4"),
|
|
5455
|
+
Schema.Literal("anthropic/claude-3-5-haiku"),
|
|
5456
|
+
Schema.Literal("cerebras/qwen-3-235b-a22b-instruct"),
|
|
5457
|
+
Schema.Literal("cerebras/qwen-3-235b-a22b-thinking"),
|
|
5458
|
+
Schema.Literal("cerebras/llama-3.3-70b"),
|
|
5459
|
+
Schema.Literal("cerebras/llama-4-maverick-17b-128e-instruct"),
|
|
5460
|
+
Schema.Literal("cerebras/llama-4-scout-17b-16e-instruct"),
|
|
5461
|
+
Schema.Literal("cerebras/gpt-oss-120b"),
|
|
5462
|
+
Schema.Literal("google-ai-studio/gemini-2.5-flash"),
|
|
5463
|
+
Schema.Literal("google-ai-studio/gemini-2.5-pro"),
|
|
5464
|
+
Schema.Literal("grok/grok-4"),
|
|
5465
|
+
Schema.Literal("groq/llama-3.3-70b-versatile"),
|
|
5466
|
+
Schema.Literal("groq/llama-3.1-8b-instant"),
|
|
5467
|
+
Schema.Literal("openai/gpt-5"),
|
|
5468
|
+
Schema.Literal("openai/gpt-5-mini"),
|
|
5469
|
+
Schema.Literal("openai/gpt-5-nano"),
|
|
5470
|
+
Schema.Literal(""),
|
|
5471
|
+
Schema.Null,
|
|
5472
|
+
]),
|
|
5473
|
+
),
|
|
5474
|
+
rewriteQuery: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
5475
|
+
scoreThreshold: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5476
|
+
source: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5477
|
+
sourceParams: Schema.optional(Schema.Union([SourceParams2, Schema.Null])),
|
|
5478
|
+
status: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5479
|
+
syncInterval: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5480
|
+
tokenId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5481
|
+
type: Schema.optional(
|
|
5482
|
+
Schema.Union([
|
|
5483
|
+
Schema.Literal("r2"),
|
|
5484
|
+
Schema.Literal("web-crawler"),
|
|
5485
|
+
Schema.Null,
|
|
5486
|
+
]),
|
|
5487
|
+
),
|
|
5488
|
+
})
|
|
5489
|
+
.pipe(
|
|
5490
|
+
Schema.encodeKeys({
|
|
5491
|
+
id: "id",
|
|
5492
|
+
createdAt: "created_at",
|
|
5493
|
+
modifiedAt: "modified_at",
|
|
5494
|
+
aiGatewayId: "ai_gateway_id",
|
|
5495
|
+
aiSearchModel: "ai_search_model",
|
|
5496
|
+
cache: "cache",
|
|
5497
|
+
cacheThreshold: "cache_threshold",
|
|
5498
|
+
cacheTtl: "cache_ttl",
|
|
5499
|
+
chunkOverlap: "chunk_overlap",
|
|
5500
|
+
chunkSize: "chunk_size",
|
|
5501
|
+
createdBy: "created_by",
|
|
5502
|
+
customMetadata: "custom_metadata",
|
|
5503
|
+
embeddingModel: "embedding_model",
|
|
5504
|
+
enable: "enable",
|
|
5505
|
+
engineVersion: "engine_version",
|
|
5506
|
+
fusionMethod: "fusion_method",
|
|
5507
|
+
hybridSearchEnabled: "hybrid_search_enabled",
|
|
5508
|
+
indexMethod: "index_method",
|
|
5509
|
+
indexingOptions: "indexing_options",
|
|
5510
|
+
lastActivity: "last_activity",
|
|
5511
|
+
maxNumResults: "max_num_results",
|
|
5512
|
+
metadata: "metadata",
|
|
5513
|
+
modifiedBy: "modified_by",
|
|
5514
|
+
namespace: "namespace",
|
|
5515
|
+
paused: "paused",
|
|
5516
|
+
publicEndpointId: "public_endpoint_id",
|
|
5517
|
+
publicEndpointParams: "public_endpoint_params",
|
|
5518
|
+
reranking: "reranking",
|
|
5519
|
+
rerankingModel: "reranking_model",
|
|
5520
|
+
retrievalOptions: "retrieval_options",
|
|
5521
|
+
rewriteModel: "rewrite_model",
|
|
5522
|
+
rewriteQuery: "rewrite_query",
|
|
5523
|
+
scoreThreshold: "score_threshold",
|
|
5524
|
+
source: "source",
|
|
5525
|
+
sourceParams: "source_params",
|
|
5526
|
+
status: "status",
|
|
5527
|
+
syncInterval: "sync_interval",
|
|
5528
|
+
tokenId: "token_id",
|
|
5529
|
+
type: "type",
|
|
5530
|
+
}),
|
|
5531
|
+
)
|
|
5532
|
+
.pipe(T.ResponsePath("result")),
|
|
5559
5533
|
) as unknown as Schema.Codec<ReadInstanceResponse>;
|
|
5560
5534
|
|
|
5561
5535
|
export type ReadInstanceError =
|
|
@@ -5570,7 +5544,7 @@ export const readInstance: API.OperationMethod<
|
|
|
5570
5544
|
ReadInstanceResponse,
|
|
5571
5545
|
ReadInstanceError,
|
|
5572
5546
|
Credentials | HttpClient.HttpClient
|
|
5573
|
-
> = /*@__PURE__*/
|
|
5547
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
5574
5548
|
input: ReadInstanceRequest,
|
|
5575
5549
|
output: ReadInstanceResponse,
|
|
5576
5550
|
errors: [ValidationError, NotFound, InvalidRoute, Forbidden],
|
|
@@ -5668,25 +5642,24 @@ export interface SearchInstanceRequest {
|
|
|
5668
5642
|
query?: string;
|
|
5669
5643
|
}
|
|
5670
5644
|
|
|
5671
|
-
export const SearchInstanceRequest = /*@__PURE__*/
|
|
5672
|
-
(
|
|
5673
|
-
Schema.
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
),
|
|
5645
|
+
export const SearchInstanceRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
5646
|
+
Schema.Struct({
|
|
5647
|
+
id: Schema.String.pipe(T.HttpPath("id")),
|
|
5648
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
5649
|
+
aiSearchOptions: Schema.optional(AisearchOptions),
|
|
5650
|
+
messages: Schema.optional(Schema.Array(Message)),
|
|
5651
|
+
query: Schema.optional(Schema.String),
|
|
5652
|
+
}).pipe(
|
|
5653
|
+
Schema.encodeKeys({
|
|
5654
|
+
aiSearchOptions: "ai_search_options",
|
|
5655
|
+
messages: "messages",
|
|
5656
|
+
query: "query",
|
|
5657
|
+
}),
|
|
5658
|
+
T.Http({
|
|
5659
|
+
method: "POST",
|
|
5660
|
+
path: "/accounts/{account_id}/ai-search/instances/{id}/search",
|
|
5661
|
+
}),
|
|
5662
|
+
),
|
|
5690
5663
|
) as unknown as Schema.Codec<SearchInstanceRequest>;
|
|
5691
5664
|
|
|
5692
5665
|
export interface SearchInstanceResponse {
|
|
@@ -5714,7 +5687,7 @@ export interface SearchInstanceResponse {
|
|
|
5714
5687
|
}
|
|
5715
5688
|
|
|
5716
5689
|
export const SearchInstanceResponse =
|
|
5717
|
-
/*@__PURE__*/
|
|
5690
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
5718
5691
|
Schema.Struct({
|
|
5719
5692
|
chunks: Schema.Array(Chunk),
|
|
5720
5693
|
queryKind: Schema.Union([
|
|
@@ -5740,7 +5713,7 @@ export const searchInstance: API.OperationMethod<
|
|
|
5740
5713
|
SearchInstanceResponse,
|
|
5741
5714
|
SearchInstanceError,
|
|
5742
5715
|
Credentials | HttpClient.HttpClient
|
|
5743
|
-
> = /*@__PURE__*/
|
|
5716
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
5744
5717
|
input: SearchInstanceRequest,
|
|
5745
5718
|
output: SearchInstanceResponse,
|
|
5746
5719
|
errors: [],
|
|
@@ -5751,17 +5724,16 @@ export interface StatsInstanceRequest {
|
|
|
5751
5724
|
accountId: string;
|
|
5752
5725
|
}
|
|
5753
5726
|
|
|
5754
|
-
export const StatsInstanceRequest = /*@__PURE__*/
|
|
5755
|
-
(
|
|
5756
|
-
Schema.
|
|
5757
|
-
|
|
5758
|
-
|
|
5759
|
-
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
),
|
|
5727
|
+
export const StatsInstanceRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
5728
|
+
Schema.Struct({
|
|
5729
|
+
id: Schema.String.pipe(T.HttpPath("id")),
|
|
5730
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
5731
|
+
}).pipe(
|
|
5732
|
+
T.Http({
|
|
5733
|
+
method: "GET",
|
|
5734
|
+
path: "/accounts/{account_id}/ai-search/instances/{id}/stats",
|
|
5735
|
+
}),
|
|
5736
|
+
),
|
|
5765
5737
|
) as unknown as Schema.Codec<StatsInstanceRequest>;
|
|
5766
5738
|
|
|
5767
5739
|
export interface StatsInstanceResponse {
|
|
@@ -5787,47 +5759,40 @@ export interface StatsInstanceResponse {
|
|
|
5787
5759
|
skipped?: number | null;
|
|
5788
5760
|
}
|
|
5789
5761
|
|
|
5790
|
-
export const StatsInstanceResponse = /*@__PURE__*/
|
|
5791
|
-
(
|
|
5792
|
-
Schema.
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
outdated: "outdated",
|
|
5825
|
-
queued: "queued",
|
|
5826
|
-
running: "running",
|
|
5827
|
-
skipped: "skipped",
|
|
5828
|
-
}),
|
|
5829
|
-
)
|
|
5830
|
-
.pipe(T.ResponsePath("result")),
|
|
5762
|
+
export const StatsInstanceResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
5763
|
+
Schema.Struct({
|
|
5764
|
+
completed: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5765
|
+
degraded: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
5766
|
+
engine: Schema.optional(Schema.Union([Engine, Schema.Null])),
|
|
5767
|
+
error: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5768
|
+
fileEmbedErrors: Schema.optional(
|
|
5769
|
+
Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
|
|
5770
|
+
),
|
|
5771
|
+
indexSourceErrors: Schema.optional(
|
|
5772
|
+
Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
|
|
5773
|
+
),
|
|
5774
|
+
lastActivity: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5775
|
+
outdated: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5776
|
+
queued: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5777
|
+
running: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5778
|
+
skipped: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5779
|
+
})
|
|
5780
|
+
.pipe(
|
|
5781
|
+
Schema.encodeKeys({
|
|
5782
|
+
completed: "completed",
|
|
5783
|
+
degraded: "degraded",
|
|
5784
|
+
engine: "engine",
|
|
5785
|
+
error: "error",
|
|
5786
|
+
fileEmbedErrors: "file_embed_errors",
|
|
5787
|
+
indexSourceErrors: "index_source_errors",
|
|
5788
|
+
lastActivity: "last_activity",
|
|
5789
|
+
outdated: "outdated",
|
|
5790
|
+
queued: "queued",
|
|
5791
|
+
running: "running",
|
|
5792
|
+
skipped: "skipped",
|
|
5793
|
+
}),
|
|
5794
|
+
)
|
|
5795
|
+
.pipe(T.ResponsePath("result")),
|
|
5831
5796
|
) as unknown as Schema.Codec<StatsInstanceResponse>;
|
|
5832
5797
|
|
|
5833
5798
|
export type StatsInstanceError =
|
|
@@ -5841,7 +5806,7 @@ export const statsInstance: API.OperationMethod<
|
|
|
5841
5806
|
StatsInstanceResponse,
|
|
5842
5807
|
StatsInstanceError,
|
|
5843
5808
|
Credentials | HttpClient.HttpClient
|
|
5844
|
-
> = /*@__PURE__*/
|
|
5809
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
5845
5810
|
input: StatsInstanceRequest,
|
|
5846
5811
|
output: StatsInstanceResponse,
|
|
5847
5812
|
errors: [ValidationError, NotFound, InvalidRoute],
|
|
@@ -5857,18 +5822,17 @@ export interface GetInstanceJobRequest {
|
|
|
5857
5822
|
accountId: string;
|
|
5858
5823
|
}
|
|
5859
5824
|
|
|
5860
|
-
export const GetInstanceJobRequest = /*@__PURE__*/
|
|
5861
|
-
(
|
|
5862
|
-
Schema.
|
|
5863
|
-
|
|
5864
|
-
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
),
|
|
5825
|
+
export const GetInstanceJobRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
5826
|
+
Schema.Struct({
|
|
5827
|
+
id: Schema.String.pipe(T.HttpPath("id")),
|
|
5828
|
+
jobId: Schema.String.pipe(T.HttpPath("jobId")),
|
|
5829
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
5830
|
+
}).pipe(
|
|
5831
|
+
T.Http({
|
|
5832
|
+
method: "GET",
|
|
5833
|
+
path: "/accounts/{account_id}/ai-search/instances/{id}/jobs/{jobId}",
|
|
5834
|
+
}),
|
|
5835
|
+
),
|
|
5872
5836
|
) as unknown as Schema.Codec<GetInstanceJobRequest>;
|
|
5873
5837
|
|
|
5874
5838
|
export interface GetInstanceJobResponse {
|
|
@@ -5882,7 +5846,7 @@ export interface GetInstanceJobResponse {
|
|
|
5882
5846
|
}
|
|
5883
5847
|
|
|
5884
5848
|
export const GetInstanceJobResponse =
|
|
5885
|
-
/*@__PURE__*/
|
|
5849
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
5886
5850
|
Schema.Struct({
|
|
5887
5851
|
id: Schema.String,
|
|
5888
5852
|
source: Schema.Union([
|
|
@@ -5920,7 +5884,7 @@ export const getInstanceJob: API.OperationMethod<
|
|
|
5920
5884
|
GetInstanceJobResponse,
|
|
5921
5885
|
GetInstanceJobError,
|
|
5922
5886
|
Credentials | HttpClient.HttpClient
|
|
5923
|
-
> = /*@__PURE__*/
|
|
5887
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
5924
5888
|
input: GetInstanceJobRequest,
|
|
5925
5889
|
output: GetInstanceJobResponse,
|
|
5926
5890
|
errors: [ValidationError, NotFound, InvalidRoute],
|
|
@@ -5935,7 +5899,7 @@ export interface ListInstanceJobsRequest {
|
|
|
5935
5899
|
}
|
|
5936
5900
|
|
|
5937
5901
|
export const ListInstanceJobsRequest =
|
|
5938
|
-
/*@__PURE__*/
|
|
5902
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
5939
5903
|
Schema.Struct({
|
|
5940
5904
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
5941
5905
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -5968,7 +5932,7 @@ export interface ListInstanceJobsResponse {
|
|
|
5968
5932
|
}
|
|
5969
5933
|
|
|
5970
5934
|
export const ListInstanceJobsResponse =
|
|
5971
|
-
/*@__PURE__*/
|
|
5935
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
5972
5936
|
Schema.Struct({
|
|
5973
5937
|
result: Schema.Array(ListInstanceJobsResponseResult),
|
|
5974
5938
|
resultInfo: Schema.optional(
|
|
@@ -5984,7 +5948,7 @@ export const listInstanceJobs: API.PaginatedOperationMethod<
|
|
|
5984
5948
|
ListInstanceJobsResponse,
|
|
5985
5949
|
ListInstanceJobsError,
|
|
5986
5950
|
Credentials | HttpClient.HttpClient
|
|
5987
|
-
> = /*@__PURE__*/
|
|
5951
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
5988
5952
|
input: ListInstanceJobsRequest,
|
|
5989
5953
|
output: ListInstanceJobsResponse,
|
|
5990
5954
|
errors: [],
|
|
@@ -6006,7 +5970,7 @@ export interface CreateInstanceJobRequest {
|
|
|
6006
5970
|
}
|
|
6007
5971
|
|
|
6008
5972
|
export const CreateInstanceJobRequest =
|
|
6009
|
-
/*@__PURE__*/
|
|
5973
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
6010
5974
|
Schema.Struct({
|
|
6011
5975
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
6012
5976
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -6030,7 +5994,7 @@ export interface CreateInstanceJobResponse {
|
|
|
6030
5994
|
}
|
|
6031
5995
|
|
|
6032
5996
|
export const CreateInstanceJobResponse =
|
|
6033
|
-
/*@__PURE__*/
|
|
5997
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
6034
5998
|
Schema.Struct({
|
|
6035
5999
|
id: Schema.String,
|
|
6036
6000
|
source: Schema.optional(
|
|
@@ -6072,7 +6036,7 @@ export const createInstanceJob: API.OperationMethod<
|
|
|
6072
6036
|
CreateInstanceJobResponse,
|
|
6073
6037
|
CreateInstanceJobError,
|
|
6074
6038
|
Credentials | HttpClient.HttpClient
|
|
6075
|
-
> = /*@__PURE__*/
|
|
6039
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
6076
6040
|
input: CreateInstanceJobRequest,
|
|
6077
6041
|
output: CreateInstanceJobResponse,
|
|
6078
6042
|
errors: [
|
|
@@ -6096,7 +6060,7 @@ export interface LogsInstanceJobRequest {
|
|
|
6096
6060
|
}
|
|
6097
6061
|
|
|
6098
6062
|
export const LogsInstanceJobRequest =
|
|
6099
|
-
/*@__PURE__*/
|
|
6063
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
6100
6064
|
Schema.Struct({
|
|
6101
6065
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
6102
6066
|
jobId: Schema.String.pipe(T.HttpPath("jobId")),
|
|
@@ -6119,7 +6083,7 @@ export type LogsInstanceJobResponse = {
|
|
|
6119
6083
|
}[];
|
|
6120
6084
|
|
|
6121
6085
|
export const LogsInstanceJobResponse =
|
|
6122
|
-
/*@__PURE__*/
|
|
6086
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
6123
6087
|
Schema.Array(JobLogsResponseItem).pipe(T.ResponsePath("result")),
|
|
6124
6088
|
) as unknown as Schema.Codec<LogsInstanceJobResponse>;
|
|
6125
6089
|
|
|
@@ -6134,7 +6098,7 @@ export const logsInstanceJob: API.OperationMethod<
|
|
|
6134
6098
|
LogsInstanceJobResponse,
|
|
6135
6099
|
LogsInstanceJobError,
|
|
6136
6100
|
Credentials | HttpClient.HttpClient
|
|
6137
|
-
> = /*@__PURE__*/
|
|
6101
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
6138
6102
|
input: LogsInstanceJobRequest,
|
|
6139
6103
|
output: LogsInstanceJobResponse,
|
|
6140
6104
|
errors: [ValidationError, NotFound, InvalidRoute],
|
|
@@ -6153,19 +6117,18 @@ export interface ListNamespacesRequest {
|
|
|
6153
6117
|
search?: string;
|
|
6154
6118
|
}
|
|
6155
6119
|
|
|
6156
|
-
export const ListNamespacesRequest = /*@__PURE__*/
|
|
6157
|
-
(
|
|
6158
|
-
Schema.
|
|
6159
|
-
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
),
|
|
6120
|
+
export const ListNamespacesRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
6121
|
+
Schema.Struct({
|
|
6122
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
6123
|
+
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
6124
|
+
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
6125
|
+
search: Schema.optional(Schema.String).pipe(T.HttpQuery("search")),
|
|
6126
|
+
}).pipe(
|
|
6127
|
+
T.Http({
|
|
6128
|
+
method: "GET",
|
|
6129
|
+
path: "/accounts/{account_id}/ai-search/namespaces",
|
|
6130
|
+
}),
|
|
6131
|
+
),
|
|
6169
6132
|
) as unknown as Schema.Codec<ListNamespacesRequest>;
|
|
6170
6133
|
|
|
6171
6134
|
export interface ListNamespacesResponse {
|
|
@@ -6179,7 +6142,7 @@ export interface ListNamespacesResponse {
|
|
|
6179
6142
|
}
|
|
6180
6143
|
|
|
6181
6144
|
export const ListNamespacesResponse =
|
|
6182
|
-
/*@__PURE__*/
|
|
6145
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
6183
6146
|
Schema.Struct({
|
|
6184
6147
|
result: Schema.Array(ListNamespacesResponseResult),
|
|
6185
6148
|
resultInfo: Schema.optional(
|
|
@@ -6195,7 +6158,7 @@ export const listNamespaces: API.PaginatedOperationMethod<
|
|
|
6195
6158
|
ListNamespacesResponse,
|
|
6196
6159
|
ListNamespacesError,
|
|
6197
6160
|
Credentials | HttpClient.HttpClient
|
|
6198
|
-
> = /*@__PURE__*/
|
|
6161
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
6199
6162
|
input: ListNamespacesRequest,
|
|
6200
6163
|
output: ListNamespacesResponse,
|
|
6201
6164
|
errors: [],
|
|
@@ -6218,7 +6181,7 @@ export interface CreateNamespaceRequest {
|
|
|
6218
6181
|
}
|
|
6219
6182
|
|
|
6220
6183
|
export const CreateNamespaceRequest =
|
|
6221
|
-
/*@__PURE__*/
|
|
6184
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
6222
6185
|
Schema.Struct({
|
|
6223
6186
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
6224
6187
|
name: Schema.String,
|
|
@@ -6239,7 +6202,7 @@ export interface CreateNamespaceResponse {
|
|
|
6239
6202
|
}
|
|
6240
6203
|
|
|
6241
6204
|
export const CreateNamespaceResponse =
|
|
6242
|
-
/*@__PURE__*/
|
|
6205
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
6243
6206
|
Schema.Struct({
|
|
6244
6207
|
createdAt: Schema.String,
|
|
6245
6208
|
name: Schema.String,
|
|
@@ -6265,7 +6228,7 @@ export const createNamespace: API.OperationMethod<
|
|
|
6265
6228
|
CreateNamespaceResponse,
|
|
6266
6229
|
CreateNamespaceError,
|
|
6267
6230
|
Credentials | HttpClient.HttpClient
|
|
6268
|
-
> = /*@__PURE__*/
|
|
6231
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
6269
6232
|
input: CreateNamespaceRequest,
|
|
6270
6233
|
output: CreateNamespaceResponse,
|
|
6271
6234
|
errors: [NamespaceAlreadyExists, Forbidden],
|
|
@@ -6280,7 +6243,7 @@ export interface UpdateNamespaceRequest {
|
|
|
6280
6243
|
}
|
|
6281
6244
|
|
|
6282
6245
|
export const UpdateNamespaceRequest =
|
|
6283
|
-
/*@__PURE__*/
|
|
6246
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
6284
6247
|
Schema.Struct({
|
|
6285
6248
|
name: Schema.String.pipe(T.HttpPath("name")),
|
|
6286
6249
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -6301,7 +6264,7 @@ export interface UpdateNamespaceResponse {
|
|
|
6301
6264
|
}
|
|
6302
6265
|
|
|
6303
6266
|
export const UpdateNamespaceResponse =
|
|
6304
|
-
/*@__PURE__*/
|
|
6267
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
6305
6268
|
Schema.Struct({
|
|
6306
6269
|
createdAt: Schema.String,
|
|
6307
6270
|
name: Schema.String,
|
|
@@ -6327,7 +6290,7 @@ export const updateNamespace: API.OperationMethod<
|
|
|
6327
6290
|
UpdateNamespaceResponse,
|
|
6328
6291
|
UpdateNamespaceError,
|
|
6329
6292
|
Credentials | HttpClient.HttpClient
|
|
6330
|
-
> = /*@__PURE__*/
|
|
6293
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
6331
6294
|
input: UpdateNamespaceRequest,
|
|
6332
6295
|
output: UpdateNamespaceResponse,
|
|
6333
6296
|
errors: [NamespaceNotFound, Forbidden],
|
|
@@ -6339,7 +6302,7 @@ export interface DeleteNamespaceRequest {
|
|
|
6339
6302
|
}
|
|
6340
6303
|
|
|
6341
6304
|
export const DeleteNamespaceRequest =
|
|
6342
|
-
/*@__PURE__*/
|
|
6305
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
6343
6306
|
Schema.Struct({
|
|
6344
6307
|
name: Schema.String.pipe(T.HttpPath("name")),
|
|
6345
6308
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -6354,7 +6317,7 @@ export const DeleteNamespaceRequest =
|
|
|
6354
6317
|
export type DeleteNamespaceResponse = unknown;
|
|
6355
6318
|
|
|
6356
6319
|
export const DeleteNamespaceResponse =
|
|
6357
|
-
/*@__PURE__*/
|
|
6320
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
6358
6321
|
Schema.Unknown.pipe(T.ResponsePath("result")),
|
|
6359
6322
|
) as unknown as Schema.Codec<DeleteNamespaceResponse>;
|
|
6360
6323
|
|
|
@@ -6368,7 +6331,7 @@ export const deleteNamespace: API.OperationMethod<
|
|
|
6368
6331
|
DeleteNamespaceResponse,
|
|
6369
6332
|
DeleteNamespaceError,
|
|
6370
6333
|
Credentials | HttpClient.HttpClient
|
|
6371
|
-
> = /*@__PURE__*/
|
|
6334
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
6372
6335
|
input: DeleteNamespaceRequest,
|
|
6373
6336
|
output: DeleteNamespaceResponse,
|
|
6374
6337
|
errors: [NamespaceNotFound, Forbidden],
|
|
@@ -6379,17 +6342,16 @@ export interface ReadNamespaceRequest {
|
|
|
6379
6342
|
accountId: string;
|
|
6380
6343
|
}
|
|
6381
6344
|
|
|
6382
|
-
export const ReadNamespaceRequest = /*@__PURE__*/
|
|
6383
|
-
(
|
|
6384
|
-
Schema.
|
|
6385
|
-
|
|
6386
|
-
|
|
6387
|
-
|
|
6388
|
-
|
|
6389
|
-
|
|
6390
|
-
|
|
6391
|
-
|
|
6392
|
-
),
|
|
6345
|
+
export const ReadNamespaceRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
6346
|
+
Schema.Struct({
|
|
6347
|
+
name: Schema.String.pipe(T.HttpPath("name")),
|
|
6348
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
6349
|
+
}).pipe(
|
|
6350
|
+
T.Http({
|
|
6351
|
+
method: "GET",
|
|
6352
|
+
path: "/accounts/{account_id}/ai-search/namespaces/{name}",
|
|
6353
|
+
}),
|
|
6354
|
+
),
|
|
6393
6355
|
) as unknown as Schema.Codec<ReadNamespaceRequest>;
|
|
6394
6356
|
|
|
6395
6357
|
export interface ReadNamespaceResponse {
|
|
@@ -6399,21 +6361,20 @@ export interface ReadNamespaceResponse {
|
|
|
6399
6361
|
description?: string | null;
|
|
6400
6362
|
}
|
|
6401
6363
|
|
|
6402
|
-
export const ReadNamespaceResponse = /*@__PURE__*/
|
|
6403
|
-
(
|
|
6404
|
-
Schema.
|
|
6405
|
-
|
|
6406
|
-
|
|
6407
|
-
|
|
6408
|
-
|
|
6409
|
-
.
|
|
6410
|
-
|
|
6411
|
-
|
|
6412
|
-
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
|
|
6416
|
-
.pipe(T.ResponsePath("result")),
|
|
6364
|
+
export const ReadNamespaceResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
6365
|
+
Schema.Struct({
|
|
6366
|
+
createdAt: Schema.String,
|
|
6367
|
+
name: Schema.String,
|
|
6368
|
+
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
6369
|
+
})
|
|
6370
|
+
.pipe(
|
|
6371
|
+
Schema.encodeKeys({
|
|
6372
|
+
createdAt: "created_at",
|
|
6373
|
+
name: "name",
|
|
6374
|
+
description: "description",
|
|
6375
|
+
}),
|
|
6376
|
+
)
|
|
6377
|
+
.pipe(T.ResponsePath("result")),
|
|
6417
6378
|
) as unknown as Schema.Codec<ReadNamespaceResponse>;
|
|
6418
6379
|
|
|
6419
6380
|
export type ReadNamespaceError = DefaultErrors | NamespaceNotFound | Forbidden;
|
|
@@ -6423,7 +6384,7 @@ export const readNamespace: API.OperationMethod<
|
|
|
6423
6384
|
ReadNamespaceResponse,
|
|
6424
6385
|
ReadNamespaceError,
|
|
6425
6386
|
Credentials | HttpClient.HttpClient
|
|
6426
|
-
> = /*@__PURE__*/
|
|
6387
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
6427
6388
|
input: ReadNamespaceRequest,
|
|
6428
6389
|
output: ReadNamespaceResponse,
|
|
6429
6390
|
errors: [NamespaceNotFound, Forbidden],
|
|
@@ -6523,7 +6484,7 @@ export interface SearchNamespaceRequest {
|
|
|
6523
6484
|
}
|
|
6524
6485
|
|
|
6525
6486
|
export const SearchNamespaceRequest =
|
|
6526
|
-
/*@__PURE__*/
|
|
6487
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
6527
6488
|
Schema.Struct({
|
|
6528
6489
|
name: Schema.String.pipe(T.HttpPath("name")),
|
|
6529
6490
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -6570,7 +6531,7 @@ export interface SearchNamespaceResponse {
|
|
|
6570
6531
|
}
|
|
6571
6532
|
|
|
6572
6533
|
export const SearchNamespaceResponse =
|
|
6573
|
-
/*@__PURE__*/
|
|
6534
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
6574
6535
|
Schema.Struct({
|
|
6575
6536
|
chunks: Schema.Array(Chunk2),
|
|
6576
6537
|
queryKind: Schema.Union([
|
|
@@ -6600,7 +6561,7 @@ export const searchNamespace: API.OperationMethod<
|
|
|
6600
6561
|
SearchNamespaceResponse,
|
|
6601
6562
|
SearchNamespaceError,
|
|
6602
6563
|
Credentials | HttpClient.HttpClient
|
|
6603
|
-
> = /*@__PURE__*/
|
|
6564
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
6604
6565
|
input: SearchNamespaceRequest,
|
|
6605
6566
|
output: SearchNamespaceResponse,
|
|
6606
6567
|
errors: [],
|
|
@@ -6627,7 +6588,7 @@ export interface ListNamespaceInstancesRequest {
|
|
|
6627
6588
|
}
|
|
6628
6589
|
|
|
6629
6590
|
export const ListNamespaceInstancesRequest =
|
|
6630
|
-
/*@__PURE__*/
|
|
6591
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
6631
6592
|
Schema.Struct({
|
|
6632
6593
|
name: Schema.String.pipe(T.HttpPath("name")),
|
|
6633
6594
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -6828,7 +6789,7 @@ export interface ListNamespaceInstancesResponse {
|
|
|
6828
6789
|
}
|
|
6829
6790
|
|
|
6830
6791
|
export const ListNamespaceInstancesResponse =
|
|
6831
|
-
/*@__PURE__*/
|
|
6792
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
6832
6793
|
Schema.Struct({
|
|
6833
6794
|
result: Schema.Array(ListInstancesResponseResult),
|
|
6834
6795
|
resultInfo: Schema.optional(
|
|
@@ -6848,7 +6809,7 @@ export const listNamespaceInstances: API.PaginatedOperationMethod<
|
|
|
6848
6809
|
ListNamespaceInstancesResponse,
|
|
6849
6810
|
ListNamespaceInstancesError,
|
|
6850
6811
|
Credentials | HttpClient.HttpClient
|
|
6851
|
-
> = /*@__PURE__*/
|
|
6812
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
6852
6813
|
input: ListNamespaceInstancesRequest,
|
|
6853
6814
|
output: ListNamespaceInstancesResponse,
|
|
6854
6815
|
errors: [NamespaceNotFound, InvalidRoute, Forbidden],
|
|
@@ -7053,7 +7014,7 @@ export interface CreateNamespaceInstanceRequest {
|
|
|
7053
7014
|
}
|
|
7054
7015
|
|
|
7055
7016
|
export const CreateNamespaceInstanceRequest =
|
|
7056
|
-
/*@__PURE__*/
|
|
7017
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
7057
7018
|
Schema.Struct({
|
|
7058
7019
|
name: Schema.String.pipe(T.HttpPath("name")),
|
|
7059
7020
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -7423,7 +7384,7 @@ export interface CreateNamespaceInstanceResponse {
|
|
|
7423
7384
|
}
|
|
7424
7385
|
|
|
7425
7386
|
export const CreateNamespaceInstanceResponse =
|
|
7426
|
-
/*@__PURE__*/
|
|
7387
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
7427
7388
|
Schema.Struct({
|
|
7428
7389
|
id: Schema.String,
|
|
7429
7390
|
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -7655,7 +7616,7 @@ export const createNamespaceInstance: API.OperationMethod<
|
|
|
7655
7616
|
CreateNamespaceInstanceResponse,
|
|
7656
7617
|
CreateNamespaceInstanceError,
|
|
7657
7618
|
Credentials | HttpClient.HttpClient
|
|
7658
|
-
> = /*@__PURE__*/
|
|
7619
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
7659
7620
|
input: CreateNamespaceInstanceRequest,
|
|
7660
7621
|
output: CreateNamespaceInstanceResponse,
|
|
7661
7622
|
errors: [
|
|
@@ -7901,7 +7862,7 @@ export interface UpdateNamespaceInstanceRequest {
|
|
|
7901
7862
|
}
|
|
7902
7863
|
|
|
7903
7864
|
export const UpdateNamespaceInstanceRequest =
|
|
7904
|
-
/*@__PURE__*/
|
|
7865
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
7905
7866
|
Schema.Struct({
|
|
7906
7867
|
name: Schema.String.pipe(T.HttpPath("name")),
|
|
7907
7868
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
@@ -8312,7 +8273,7 @@ export interface UpdateNamespaceInstanceResponse {
|
|
|
8312
8273
|
}
|
|
8313
8274
|
|
|
8314
8275
|
export const UpdateNamespaceInstanceResponse =
|
|
8315
|
-
/*@__PURE__*/
|
|
8276
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
8316
8277
|
Schema.Struct({
|
|
8317
8278
|
id: Schema.String,
|
|
8318
8279
|
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -8542,7 +8503,7 @@ export const updateNamespaceInstance: API.OperationMethod<
|
|
|
8542
8503
|
UpdateNamespaceInstanceResponse,
|
|
8543
8504
|
UpdateNamespaceInstanceError,
|
|
8544
8505
|
Credentials | HttpClient.HttpClient
|
|
8545
|
-
> = /*@__PURE__*/
|
|
8506
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
8546
8507
|
input: UpdateNamespaceInstanceRequest,
|
|
8547
8508
|
output: UpdateNamespaceInstanceResponse,
|
|
8548
8509
|
errors: [
|
|
@@ -8563,7 +8524,7 @@ export interface DeleteNamespaceInstanceRequest {
|
|
|
8563
8524
|
}
|
|
8564
8525
|
|
|
8565
8526
|
export const DeleteNamespaceInstanceRequest =
|
|
8566
|
-
/*@__PURE__*/
|
|
8527
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
8567
8528
|
Schema.Struct({
|
|
8568
8529
|
name: Schema.String.pipe(T.HttpPath("name")),
|
|
8569
8530
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
@@ -8764,7 +8725,7 @@ export interface DeleteNamespaceInstanceResponse {
|
|
|
8764
8725
|
}
|
|
8765
8726
|
|
|
8766
8727
|
export const DeleteNamespaceInstanceResponse =
|
|
8767
|
-
/*@__PURE__*/
|
|
8728
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
8768
8729
|
Schema.Struct({
|
|
8769
8730
|
id: Schema.String,
|
|
8770
8731
|
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -8992,7 +8953,7 @@ export const deleteNamespaceInstance: API.OperationMethod<
|
|
|
8992
8953
|
DeleteNamespaceInstanceResponse,
|
|
8993
8954
|
DeleteNamespaceInstanceError,
|
|
8994
8955
|
Credentials | HttpClient.HttpClient
|
|
8995
|
-
> = /*@__PURE__*/
|
|
8956
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
8996
8957
|
input: DeleteNamespaceInstanceRequest,
|
|
8997
8958
|
output: DeleteNamespaceInstanceResponse,
|
|
8998
8959
|
errors: [
|
|
@@ -9011,7 +8972,7 @@ export interface ReadNamespaceInstanceRequest {
|
|
|
9011
8972
|
}
|
|
9012
8973
|
|
|
9013
8974
|
export const ReadNamespaceInstanceRequest =
|
|
9014
|
-
/*@__PURE__*/
|
|
8975
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
9015
8976
|
Schema.Struct({
|
|
9016
8977
|
name: Schema.String.pipe(T.HttpPath("name")),
|
|
9017
8978
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
@@ -9212,7 +9173,7 @@ export interface ReadNamespaceInstanceResponse {
|
|
|
9212
9173
|
}
|
|
9213
9174
|
|
|
9214
9175
|
export const ReadNamespaceInstanceResponse =
|
|
9215
|
-
/*@__PURE__*/
|
|
9176
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
9216
9177
|
Schema.Struct({
|
|
9217
9178
|
id: Schema.String,
|
|
9218
9179
|
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -9440,7 +9401,7 @@ export const readNamespaceInstance: API.OperationMethod<
|
|
|
9440
9401
|
ReadNamespaceInstanceResponse,
|
|
9441
9402
|
ReadNamespaceInstanceError,
|
|
9442
9403
|
Credentials | HttpClient.HttpClient
|
|
9443
|
-
> = /*@__PURE__*/
|
|
9404
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
9444
9405
|
input: ReadNamespaceInstanceRequest,
|
|
9445
9406
|
output: ReadNamespaceInstanceResponse,
|
|
9446
9407
|
errors: [
|
|
@@ -9546,7 +9507,7 @@ export interface SearchNamespaceInstanceRequest {
|
|
|
9546
9507
|
}
|
|
9547
9508
|
|
|
9548
9509
|
export const SearchNamespaceInstanceRequest =
|
|
9549
|
-
/*@__PURE__*/
|
|
9510
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
9550
9511
|
Schema.Struct({
|
|
9551
9512
|
name: Schema.String.pipe(T.HttpPath("name")),
|
|
9552
9513
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
@@ -9592,7 +9553,7 @@ export interface SearchNamespaceInstanceResponse {
|
|
|
9592
9553
|
}
|
|
9593
9554
|
|
|
9594
9555
|
export const SearchNamespaceInstanceResponse =
|
|
9595
|
-
/*@__PURE__*/
|
|
9556
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
9596
9557
|
Schema.Struct({
|
|
9597
9558
|
chunks: Schema.Array(Chunk),
|
|
9598
9559
|
queryKind: Schema.Union([
|
|
@@ -9618,7 +9579,7 @@ export const searchNamespaceInstance: API.OperationMethod<
|
|
|
9618
9579
|
SearchNamespaceInstanceResponse,
|
|
9619
9580
|
SearchNamespaceInstanceError,
|
|
9620
9581
|
Credentials | HttpClient.HttpClient
|
|
9621
|
-
> = /*@__PURE__*/
|
|
9582
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
9622
9583
|
input: SearchNamespaceInstanceRequest,
|
|
9623
9584
|
output: SearchNamespaceInstanceResponse,
|
|
9624
9585
|
errors: [],
|
|
@@ -9631,7 +9592,7 @@ export interface StatsNamespaceInstanceRequest {
|
|
|
9631
9592
|
}
|
|
9632
9593
|
|
|
9633
9594
|
export const StatsNamespaceInstanceRequest =
|
|
9634
|
-
/*@__PURE__*/
|
|
9595
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
9635
9596
|
Schema.Struct({
|
|
9636
9597
|
name: Schema.String.pipe(T.HttpPath("name")),
|
|
9637
9598
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
@@ -9668,7 +9629,7 @@ export interface StatsNamespaceInstanceResponse {
|
|
|
9668
9629
|
}
|
|
9669
9630
|
|
|
9670
9631
|
export const StatsNamespaceInstanceResponse =
|
|
9671
|
-
/*@__PURE__*/
|
|
9632
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
9672
9633
|
Schema.Struct({
|
|
9673
9634
|
completed: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
9674
9635
|
degraded: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
@@ -9717,7 +9678,7 @@ export const statsNamespaceInstance: API.OperationMethod<
|
|
|
9717
9678
|
StatsNamespaceInstanceResponse,
|
|
9718
9679
|
StatsNamespaceInstanceError,
|
|
9719
9680
|
Credentials | HttpClient.HttpClient
|
|
9720
|
-
> = /*@__PURE__*/
|
|
9681
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
9721
9682
|
input: StatsNamespaceInstanceRequest,
|
|
9722
9683
|
output: StatsNamespaceInstanceResponse,
|
|
9723
9684
|
errors: [],
|
|
@@ -9735,7 +9696,7 @@ export interface GetNamespaceInstanceItemRequest {
|
|
|
9735
9696
|
}
|
|
9736
9697
|
|
|
9737
9698
|
export const GetNamespaceInstanceItemRequest =
|
|
9738
|
-
/*@__PURE__*/
|
|
9699
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
9739
9700
|
Schema.Struct({
|
|
9740
9701
|
name: Schema.String.pipe(T.HttpPath("name")),
|
|
9741
9702
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
@@ -9773,7 +9734,7 @@ export interface GetNamespaceInstanceItemResponse {
|
|
|
9773
9734
|
}
|
|
9774
9735
|
|
|
9775
9736
|
export const GetNamespaceInstanceItemResponse =
|
|
9776
|
-
/*@__PURE__*/
|
|
9737
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
9777
9738
|
Schema.Struct({
|
|
9778
9739
|
id: Schema.String,
|
|
9779
9740
|
checksum: Schema.String,
|
|
@@ -9828,7 +9789,7 @@ export const getNamespaceInstanceItem: API.OperationMethod<
|
|
|
9828
9789
|
GetNamespaceInstanceItemResponse,
|
|
9829
9790
|
GetNamespaceInstanceItemError,
|
|
9830
9791
|
Credentials | HttpClient.HttpClient
|
|
9831
|
-
> = /*@__PURE__*/
|
|
9792
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
9832
9793
|
input: GetNamespaceInstanceItemRequest,
|
|
9833
9794
|
output: GetNamespaceInstanceItemResponse,
|
|
9834
9795
|
errors: [],
|
|
@@ -9863,7 +9824,7 @@ export interface ListNamespaceInstanceItemsRequest {
|
|
|
9863
9824
|
}
|
|
9864
9825
|
|
|
9865
9826
|
export const ListNamespaceInstanceItemsRequest =
|
|
9866
|
-
/*@__PURE__*/
|
|
9827
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
9867
9828
|
Schema.Struct({
|
|
9868
9829
|
name: Schema.String.pipe(T.HttpPath("name")),
|
|
9869
9830
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
@@ -9934,7 +9895,7 @@ export interface ListNamespaceInstanceItemsResponse {
|
|
|
9934
9895
|
}
|
|
9935
9896
|
|
|
9936
9897
|
export const ListNamespaceInstanceItemsResponse =
|
|
9937
|
-
/*@__PURE__*/
|
|
9898
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
9938
9899
|
Schema.Struct({
|
|
9939
9900
|
result: Schema.Array(ListNamespaceInstanceItemsResponseResult),
|
|
9940
9901
|
resultInfo: Schema.optional(
|
|
@@ -9950,7 +9911,7 @@ export const listNamespaceInstanceItems: API.PaginatedOperationMethod<
|
|
|
9950
9911
|
ListNamespaceInstanceItemsResponse,
|
|
9951
9912
|
ListNamespaceInstanceItemsError,
|
|
9952
9913
|
Credentials | HttpClient.HttpClient
|
|
9953
|
-
> = /*@__PURE__*/
|
|
9914
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
9954
9915
|
input: ListNamespaceInstanceItemsRequest,
|
|
9955
9916
|
output: ListNamespaceInstanceItemsResponse,
|
|
9956
9917
|
errors: [],
|
|
@@ -9971,7 +9932,7 @@ export interface DeleteNamespaceInstanceItemRequest {
|
|
|
9971
9932
|
}
|
|
9972
9933
|
|
|
9973
9934
|
export const DeleteNamespaceInstanceItemRequest =
|
|
9974
|
-
/*@__PURE__*/
|
|
9935
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
9975
9936
|
Schema.Struct({
|
|
9976
9937
|
name: Schema.String.pipe(T.HttpPath("name")),
|
|
9977
9938
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
@@ -9990,7 +9951,7 @@ export interface DeleteNamespaceInstanceItemResponse {
|
|
|
9990
9951
|
}
|
|
9991
9952
|
|
|
9992
9953
|
export const DeleteNamespaceInstanceItemResponse =
|
|
9993
|
-
/*@__PURE__*/
|
|
9954
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
9994
9955
|
Schema.Struct({
|
|
9995
9956
|
key: Schema.String,
|
|
9996
9957
|
}).pipe(T.ResponsePath("result")),
|
|
@@ -10003,7 +9964,7 @@ export const deleteNamespaceInstanceItem: API.OperationMethod<
|
|
|
10003
9964
|
DeleteNamespaceInstanceItemResponse,
|
|
10004
9965
|
DeleteNamespaceInstanceItemError,
|
|
10005
9966
|
Credentials | HttpClient.HttpClient
|
|
10006
|
-
> = /*@__PURE__*/
|
|
9967
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
10007
9968
|
input: DeleteNamespaceInstanceItemRequest,
|
|
10008
9969
|
output: DeleteNamespaceInstanceItemResponse,
|
|
10009
9970
|
errors: [],
|
|
@@ -10017,7 +9978,7 @@ export interface DownloadNamespaceInstanceItemRequest {
|
|
|
10017
9978
|
}
|
|
10018
9979
|
|
|
10019
9980
|
export const DownloadNamespaceInstanceItemRequest =
|
|
10020
|
-
/*@__PURE__*/
|
|
9981
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
10021
9982
|
Schema.Struct({
|
|
10022
9983
|
name: Schema.String.pipe(T.HttpPath("name")),
|
|
10023
9984
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
@@ -10034,7 +9995,7 @@ export const DownloadNamespaceInstanceItemRequest =
|
|
|
10034
9995
|
export type DownloadNamespaceInstanceItemResponse = unknown;
|
|
10035
9996
|
|
|
10036
9997
|
export const DownloadNamespaceInstanceItemResponse =
|
|
10037
|
-
/*@__PURE__*/
|
|
9998
|
+
/*@__PURE__*/ Schema.suspend(
|
|
10038
9999
|
() => Schema.Unknown,
|
|
10039
10000
|
) as unknown as Schema.Codec<DownloadNamespaceInstanceItemResponse>;
|
|
10040
10001
|
|
|
@@ -10045,7 +10006,7 @@ export const downloadNamespaceInstanceItem: API.OperationMethod<
|
|
|
10045
10006
|
DownloadNamespaceInstanceItemResponse,
|
|
10046
10007
|
DownloadNamespaceInstanceItemError,
|
|
10047
10008
|
Credentials | HttpClient.HttpClient
|
|
10048
|
-
> = /*@__PURE__*/
|
|
10009
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
10049
10010
|
input: DownloadNamespaceInstanceItemRequest,
|
|
10050
10011
|
output: DownloadNamespaceInstanceItemResponse,
|
|
10051
10012
|
errors: [],
|
|
@@ -10061,7 +10022,7 @@ export interface UploadNamespaceInstanceItemRequest {
|
|
|
10061
10022
|
}
|
|
10062
10023
|
|
|
10063
10024
|
export const UploadNamespaceInstanceItemRequest =
|
|
10064
|
-
/*@__PURE__*/
|
|
10025
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
10065
10026
|
Schema.Struct({
|
|
10066
10027
|
name: Schema.String.pipe(T.HttpPath("name")),
|
|
10067
10028
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
@@ -10100,7 +10061,7 @@ export interface UploadNamespaceInstanceItemResponse {
|
|
|
10100
10061
|
}
|
|
10101
10062
|
|
|
10102
10063
|
export const UploadNamespaceInstanceItemResponse =
|
|
10103
|
-
/*@__PURE__*/
|
|
10064
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
10104
10065
|
Schema.Struct({
|
|
10105
10066
|
id: Schema.String,
|
|
10106
10067
|
checksum: Schema.String,
|
|
@@ -10155,7 +10116,7 @@ export const uploadNamespaceInstanceItem: API.OperationMethod<
|
|
|
10155
10116
|
UploadNamespaceInstanceItemResponse,
|
|
10156
10117
|
UploadNamespaceInstanceItemError,
|
|
10157
10118
|
Credentials | HttpClient.HttpClient
|
|
10158
|
-
> = /*@__PURE__*/
|
|
10119
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
10159
10120
|
input: UploadNamespaceInstanceItemRequest,
|
|
10160
10121
|
output: UploadNamespaceInstanceItemResponse,
|
|
10161
10122
|
errors: [],
|
|
@@ -10174,7 +10135,7 @@ export interface ChunksNamespaceInstanceItemRequest {
|
|
|
10174
10135
|
}
|
|
10175
10136
|
|
|
10176
10137
|
export const ChunksNamespaceInstanceItemRequest =
|
|
10177
|
-
/*@__PURE__*/
|
|
10138
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
10178
10139
|
Schema.Struct({
|
|
10179
10140
|
name: Schema.String.pipe(T.HttpPath("name")),
|
|
10180
10141
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
@@ -10203,7 +10164,7 @@ export type ChunksNamespaceInstanceItemResponse = {
|
|
|
10203
10164
|
}[];
|
|
10204
10165
|
|
|
10205
10166
|
export const ChunksNamespaceInstanceItemResponse =
|
|
10206
|
-
/*@__PURE__*/
|
|
10167
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
10207
10168
|
Schema.Array(ItemChunksResponseItem).pipe(T.ResponsePath("result")),
|
|
10208
10169
|
) as unknown as Schema.Codec<ChunksNamespaceInstanceItemResponse>;
|
|
10209
10170
|
|
|
@@ -10214,7 +10175,7 @@ export const chunksNamespaceInstanceItem: API.OperationMethod<
|
|
|
10214
10175
|
ChunksNamespaceInstanceItemResponse,
|
|
10215
10176
|
ChunksNamespaceInstanceItemError,
|
|
10216
10177
|
Credentials | HttpClient.HttpClient
|
|
10217
|
-
> = /*@__PURE__*/
|
|
10178
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
10218
10179
|
input: ChunksNamespaceInstanceItemRequest,
|
|
10219
10180
|
output: ChunksNamespaceInstanceItemResponse,
|
|
10220
10181
|
errors: [],
|
|
@@ -10233,7 +10194,7 @@ export interface LogsNamespaceInstanceItemRequest {
|
|
|
10233
10194
|
}
|
|
10234
10195
|
|
|
10235
10196
|
export const LogsNamespaceInstanceItemRequest =
|
|
10236
|
-
/*@__PURE__*/
|
|
10197
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
10237
10198
|
Schema.Struct({
|
|
10238
10199
|
name: Schema.String.pipe(T.HttpPath("name")),
|
|
10239
10200
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
@@ -10260,7 +10221,7 @@ export type LogsNamespaceInstanceItemResponse = {
|
|
|
10260
10221
|
}[];
|
|
10261
10222
|
|
|
10262
10223
|
export const LogsNamespaceInstanceItemResponse =
|
|
10263
|
-
/*@__PURE__*/
|
|
10224
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
10264
10225
|
Schema.Array(ItemLogsResponseItem).pipe(T.ResponsePath("result")),
|
|
10265
10226
|
) as unknown as Schema.Codec<LogsNamespaceInstanceItemResponse>;
|
|
10266
10227
|
|
|
@@ -10271,7 +10232,7 @@ export const logsNamespaceInstanceItem: API.OperationMethod<
|
|
|
10271
10232
|
LogsNamespaceInstanceItemResponse,
|
|
10272
10233
|
LogsNamespaceInstanceItemError,
|
|
10273
10234
|
Credentials | HttpClient.HttpClient
|
|
10274
|
-
> = /*@__PURE__*/
|
|
10235
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
10275
10236
|
input: LogsNamespaceInstanceItemRequest,
|
|
10276
10237
|
output: LogsNamespaceInstanceItemResponse,
|
|
10277
10238
|
errors: [],
|
|
@@ -10290,7 +10251,7 @@ export interface SyncNamespaceInstanceItemRequest {
|
|
|
10290
10251
|
}
|
|
10291
10252
|
|
|
10292
10253
|
export const SyncNamespaceInstanceItemRequest =
|
|
10293
|
-
/*@__PURE__*/
|
|
10254
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
10294
10255
|
Schema.Struct({
|
|
10295
10256
|
name: Schema.String.pipe(T.HttpPath("name")),
|
|
10296
10257
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
@@ -10334,7 +10295,7 @@ export interface SyncNamespaceInstanceItemResponse {
|
|
|
10334
10295
|
}
|
|
10335
10296
|
|
|
10336
10297
|
export const SyncNamespaceInstanceItemResponse =
|
|
10337
|
-
/*@__PURE__*/
|
|
10298
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
10338
10299
|
Schema.Struct({
|
|
10339
10300
|
id: Schema.String,
|
|
10340
10301
|
checksum: Schema.String,
|
|
@@ -10389,7 +10350,7 @@ export const syncNamespaceInstanceItem: API.OperationMethod<
|
|
|
10389
10350
|
SyncNamespaceInstanceItemResponse,
|
|
10390
10351
|
SyncNamespaceInstanceItemError,
|
|
10391
10352
|
Credentials | HttpClient.HttpClient
|
|
10392
|
-
> = /*@__PURE__*/
|
|
10353
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
10393
10354
|
input: SyncNamespaceInstanceItemRequest,
|
|
10394
10355
|
output: SyncNamespaceInstanceItemResponse,
|
|
10395
10356
|
errors: [],
|
|
@@ -10407,7 +10368,7 @@ export interface GetNamespaceInstanceJobRequest {
|
|
|
10407
10368
|
}
|
|
10408
10369
|
|
|
10409
10370
|
export const GetNamespaceInstanceJobRequest =
|
|
10410
|
-
/*@__PURE__*/
|
|
10371
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
10411
10372
|
Schema.Struct({
|
|
10412
10373
|
name: Schema.String.pipe(T.HttpPath("name")),
|
|
10413
10374
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
@@ -10432,7 +10393,7 @@ export interface GetNamespaceInstanceJobResponse {
|
|
|
10432
10393
|
}
|
|
10433
10394
|
|
|
10434
10395
|
export const GetNamespaceInstanceJobResponse =
|
|
10435
|
-
/*@__PURE__*/
|
|
10396
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
10436
10397
|
Schema.Struct({
|
|
10437
10398
|
id: Schema.String,
|
|
10438
10399
|
source: Schema.Union([
|
|
@@ -10466,7 +10427,7 @@ export const getNamespaceInstanceJob: API.OperationMethod<
|
|
|
10466
10427
|
GetNamespaceInstanceJobResponse,
|
|
10467
10428
|
GetNamespaceInstanceJobError,
|
|
10468
10429
|
Credentials | HttpClient.HttpClient
|
|
10469
|
-
> = /*@__PURE__*/
|
|
10430
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
10470
10431
|
input: GetNamespaceInstanceJobRequest,
|
|
10471
10432
|
output: GetNamespaceInstanceJobResponse,
|
|
10472
10433
|
errors: [],
|
|
@@ -10482,7 +10443,7 @@ export interface ListNamespaceInstanceJobsRequest {
|
|
|
10482
10443
|
}
|
|
10483
10444
|
|
|
10484
10445
|
export const ListNamespaceInstanceJobsRequest =
|
|
10485
|
-
/*@__PURE__*/
|
|
10446
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
10486
10447
|
Schema.Struct({
|
|
10487
10448
|
name: Schema.String.pipe(T.HttpPath("name")),
|
|
10488
10449
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
@@ -10516,7 +10477,7 @@ export interface ListNamespaceInstanceJobsResponse {
|
|
|
10516
10477
|
}
|
|
10517
10478
|
|
|
10518
10479
|
export const ListNamespaceInstanceJobsResponse =
|
|
10519
|
-
/*@__PURE__*/
|
|
10480
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
10520
10481
|
Schema.Struct({
|
|
10521
10482
|
result: Schema.Array(ListInstanceJobsResponseResult),
|
|
10522
10483
|
resultInfo: Schema.optional(
|
|
@@ -10532,7 +10493,7 @@ export const listNamespaceInstanceJobs: API.PaginatedOperationMethod<
|
|
|
10532
10493
|
ListNamespaceInstanceJobsResponse,
|
|
10533
10494
|
ListNamespaceInstanceJobsError,
|
|
10534
10495
|
Credentials | HttpClient.HttpClient
|
|
10535
|
-
> = /*@__PURE__*/
|
|
10496
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
10536
10497
|
input: ListNamespaceInstanceJobsRequest,
|
|
10537
10498
|
output: ListNamespaceInstanceJobsResponse,
|
|
10538
10499
|
errors: [],
|
|
@@ -10555,7 +10516,7 @@ export interface CreateNamespaceInstanceJobRequest {
|
|
|
10555
10516
|
}
|
|
10556
10517
|
|
|
10557
10518
|
export const CreateNamespaceInstanceJobRequest =
|
|
10558
|
-
/*@__PURE__*/
|
|
10519
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
10559
10520
|
Schema.Struct({
|
|
10560
10521
|
name: Schema.String.pipe(T.HttpPath("name")),
|
|
10561
10522
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
@@ -10580,7 +10541,7 @@ export interface CreateNamespaceInstanceJobResponse {
|
|
|
10580
10541
|
}
|
|
10581
10542
|
|
|
10582
10543
|
export const CreateNamespaceInstanceJobResponse =
|
|
10583
|
-
/*@__PURE__*/
|
|
10544
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
10584
10545
|
Schema.Struct({
|
|
10585
10546
|
id: Schema.String,
|
|
10586
10547
|
source: Schema.Union([
|
|
@@ -10614,7 +10575,7 @@ export const createNamespaceInstanceJob: API.OperationMethod<
|
|
|
10614
10575
|
CreateNamespaceInstanceJobResponse,
|
|
10615
10576
|
CreateNamespaceInstanceJobError,
|
|
10616
10577
|
Credentials | HttpClient.HttpClient
|
|
10617
|
-
> = /*@__PURE__*/
|
|
10578
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
10618
10579
|
input: CreateNamespaceInstanceJobRequest,
|
|
10619
10580
|
output: CreateNamespaceInstanceJobResponse,
|
|
10620
10581
|
errors: [],
|
|
@@ -10631,7 +10592,7 @@ export interface PatchNamespaceInstanceJobRequest {
|
|
|
10631
10592
|
}
|
|
10632
10593
|
|
|
10633
10594
|
export const PatchNamespaceInstanceJobRequest =
|
|
10634
|
-
/*@__PURE__*/
|
|
10595
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
10635
10596
|
Schema.Struct({
|
|
10636
10597
|
name: Schema.String.pipe(T.HttpPath("name")),
|
|
10637
10598
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
@@ -10657,7 +10618,7 @@ export interface PatchNamespaceInstanceJobResponse {
|
|
|
10657
10618
|
}
|
|
10658
10619
|
|
|
10659
10620
|
export const PatchNamespaceInstanceJobResponse =
|
|
10660
|
-
/*@__PURE__*/
|
|
10621
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
10661
10622
|
Schema.Struct({
|
|
10662
10623
|
id: Schema.String,
|
|
10663
10624
|
source: Schema.Union([
|
|
@@ -10691,7 +10652,7 @@ export const patchNamespaceInstanceJob: API.OperationMethod<
|
|
|
10691
10652
|
PatchNamespaceInstanceJobResponse,
|
|
10692
10653
|
PatchNamespaceInstanceJobError,
|
|
10693
10654
|
Credentials | HttpClient.HttpClient
|
|
10694
|
-
> = /*@__PURE__*/
|
|
10655
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
10695
10656
|
input: PatchNamespaceInstanceJobRequest,
|
|
10696
10657
|
output: PatchNamespaceInstanceJobResponse,
|
|
10697
10658
|
errors: [],
|
|
@@ -10710,7 +10671,7 @@ export interface LogsNamespaceInstanceJobRequest {
|
|
|
10710
10671
|
}
|
|
10711
10672
|
|
|
10712
10673
|
export const LogsNamespaceInstanceJobRequest =
|
|
10713
|
-
/*@__PURE__*/
|
|
10674
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
10714
10675
|
Schema.Struct({
|
|
10715
10676
|
name: Schema.String.pipe(T.HttpPath("name")),
|
|
10716
10677
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
@@ -10734,7 +10695,7 @@ export type LogsNamespaceInstanceJobResponse = {
|
|
|
10734
10695
|
}[];
|
|
10735
10696
|
|
|
10736
10697
|
export const LogsNamespaceInstanceJobResponse =
|
|
10737
|
-
/*@__PURE__*/
|
|
10698
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
10738
10699
|
Schema.Array(JobLogsResponseItem).pipe(T.ResponsePath("result")),
|
|
10739
10700
|
) as unknown as Schema.Codec<LogsNamespaceInstanceJobResponse>;
|
|
10740
10701
|
|
|
@@ -10745,7 +10706,7 @@ export const logsNamespaceInstanceJob: API.OperationMethod<
|
|
|
10745
10706
|
LogsNamespaceInstanceJobResponse,
|
|
10746
10707
|
LogsNamespaceInstanceJobError,
|
|
10747
10708
|
Credentials | HttpClient.HttpClient
|
|
10748
|
-
> = /*@__PURE__*/
|
|
10709
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
10749
10710
|
input: LogsNamespaceInstanceJobRequest,
|
|
10750
10711
|
output: LogsNamespaceInstanceJobResponse,
|
|
10751
10712
|
errors: [],
|
|
@@ -10769,7 +10730,7 @@ export interface CreateOrUpdateNamespaceInstanceItemRequest {
|
|
|
10769
10730
|
}
|
|
10770
10731
|
|
|
10771
10732
|
export const CreateOrUpdateNamespaceInstanceItemRequest =
|
|
10772
|
-
/*@__PURE__*/
|
|
10733
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
10773
10734
|
Schema.Struct({
|
|
10774
10735
|
name: Schema.String.pipe(T.HttpPath("name")),
|
|
10775
10736
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
@@ -10814,7 +10775,7 @@ export interface CreateOrUpdateNamespaceInstanceItemResponse {
|
|
|
10814
10775
|
}
|
|
10815
10776
|
|
|
10816
10777
|
export const CreateOrUpdateNamespaceInstanceItemResponse =
|
|
10817
|
-
/*@__PURE__*/
|
|
10778
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
10818
10779
|
Schema.Struct({
|
|
10819
10780
|
id: Schema.String,
|
|
10820
10781
|
checksum: Schema.String,
|
|
@@ -10869,7 +10830,7 @@ export const createOrUpdateNamespaceInstanceItem: API.OperationMethod<
|
|
|
10869
10830
|
CreateOrUpdateNamespaceInstanceItemResponse,
|
|
10870
10831
|
CreateOrUpdateNamespaceInstanceItemError,
|
|
10871
10832
|
Credentials | HttpClient.HttpClient
|
|
10872
|
-
> = /*@__PURE__*/
|
|
10833
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
10873
10834
|
input: CreateOrUpdateNamespaceInstanceItemRequest,
|
|
10874
10835
|
output: CreateOrUpdateNamespaceInstanceItemResponse,
|
|
10875
10836
|
errors: [],
|
|
@@ -10888,19 +10849,18 @@ export interface ListTokensRequest {
|
|
|
10888
10849
|
search?: string;
|
|
10889
10850
|
}
|
|
10890
10851
|
|
|
10891
|
-
export const ListTokensRequest = /*@__PURE__*/
|
|
10892
|
-
(
|
|
10893
|
-
Schema.
|
|
10894
|
-
|
|
10895
|
-
|
|
10896
|
-
|
|
10897
|
-
|
|
10898
|
-
|
|
10899
|
-
|
|
10900
|
-
|
|
10901
|
-
|
|
10902
|
-
|
|
10903
|
-
),
|
|
10852
|
+
export const ListTokensRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
10853
|
+
Schema.Struct({
|
|
10854
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
10855
|
+
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
10856
|
+
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
10857
|
+
search: Schema.optional(Schema.String).pipe(T.HttpQuery("search")),
|
|
10858
|
+
}).pipe(
|
|
10859
|
+
T.Http({
|
|
10860
|
+
method: "GET",
|
|
10861
|
+
path: "/accounts/{account_id}/ai-search/tokens",
|
|
10862
|
+
}),
|
|
10863
|
+
),
|
|
10904
10864
|
) as unknown as Schema.Codec<ListTokensRequest>;
|
|
10905
10865
|
|
|
10906
10866
|
export interface ListTokensResponse {
|
|
@@ -10923,14 +10883,13 @@ export interface ListTokensResponse {
|
|
|
10923
10883
|
} | null;
|
|
10924
10884
|
}
|
|
10925
10885
|
|
|
10926
|
-
export const ListTokensResponse = /*@__PURE__*/
|
|
10927
|
-
(
|
|
10928
|
-
Schema.
|
|
10929
|
-
|
|
10930
|
-
|
|
10931
|
-
|
|
10932
|
-
|
|
10933
|
-
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
10886
|
+
export const ListTokensResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
10887
|
+
Schema.Struct({
|
|
10888
|
+
result: Schema.Array(ListTokensResponseResult),
|
|
10889
|
+
resultInfo: Schema.optional(
|
|
10890
|
+
Schema.Union([ListInstancesResponseResultInfo, Schema.Null]),
|
|
10891
|
+
),
|
|
10892
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
10934
10893
|
) as unknown as Schema.Codec<ListTokensResponse>;
|
|
10935
10894
|
|
|
10936
10895
|
export type ListTokensError = DefaultErrors | InvalidRoute | Forbidden;
|
|
@@ -10940,7 +10899,7 @@ export const listTokens: API.PaginatedOperationMethod<
|
|
|
10940
10899
|
ListTokensResponse,
|
|
10941
10900
|
ListTokensError,
|
|
10942
10901
|
Credentials | HttpClient.HttpClient
|
|
10943
|
-
> = /*@__PURE__*/
|
|
10902
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
10944
10903
|
input: ListTokensRequest,
|
|
10945
10904
|
output: ListTokensResponse,
|
|
10946
10905
|
errors: [InvalidRoute, Forbidden],
|
|
@@ -10966,26 +10925,25 @@ export interface CreateTokenRequest {
|
|
|
10966
10925
|
legacy?: boolean;
|
|
10967
10926
|
}
|
|
10968
10927
|
|
|
10969
|
-
export const CreateTokenRequest = /*@__PURE__*/
|
|
10970
|
-
(
|
|
10971
|
-
Schema.
|
|
10972
|
-
|
|
10973
|
-
|
|
10974
|
-
|
|
10975
|
-
|
|
10976
|
-
|
|
10977
|
-
|
|
10978
|
-
|
|
10979
|
-
|
|
10980
|
-
|
|
10981
|
-
|
|
10982
|
-
|
|
10983
|
-
|
|
10984
|
-
|
|
10985
|
-
|
|
10986
|
-
|
|
10987
|
-
|
|
10988
|
-
),
|
|
10928
|
+
export const CreateTokenRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
10929
|
+
Schema.Struct({
|
|
10930
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
10931
|
+
cfApiId: Schema.String,
|
|
10932
|
+
cfApiKey: Schema.String,
|
|
10933
|
+
name: Schema.String,
|
|
10934
|
+
legacy: Schema.optional(Schema.Boolean),
|
|
10935
|
+
}).pipe(
|
|
10936
|
+
Schema.encodeKeys({
|
|
10937
|
+
cfApiId: "cf_api_id",
|
|
10938
|
+
cfApiKey: "cf_api_key",
|
|
10939
|
+
name: "name",
|
|
10940
|
+
legacy: "legacy",
|
|
10941
|
+
}),
|
|
10942
|
+
T.Http({
|
|
10943
|
+
method: "POST",
|
|
10944
|
+
path: "/accounts/{account_id}/ai-search/tokens",
|
|
10945
|
+
}),
|
|
10946
|
+
),
|
|
10989
10947
|
) as unknown as Schema.Codec<CreateTokenRequest>;
|
|
10990
10948
|
|
|
10991
10949
|
export interface CreateTokenResponse {
|
|
@@ -11000,33 +10958,32 @@ export interface CreateTokenResponse {
|
|
|
11000
10958
|
modifiedBy?: string | null;
|
|
11001
10959
|
}
|
|
11002
10960
|
|
|
11003
|
-
export const CreateTokenResponse = /*@__PURE__*/
|
|
11004
|
-
(
|
|
11005
|
-
Schema.
|
|
11006
|
-
|
|
11007
|
-
|
|
11008
|
-
|
|
11009
|
-
|
|
11010
|
-
|
|
11011
|
-
|
|
11012
|
-
|
|
11013
|
-
|
|
11014
|
-
|
|
11015
|
-
|
|
11016
|
-
.
|
|
11017
|
-
|
|
11018
|
-
|
|
11019
|
-
|
|
11020
|
-
|
|
11021
|
-
|
|
11022
|
-
|
|
11023
|
-
|
|
11024
|
-
|
|
11025
|
-
|
|
11026
|
-
|
|
11027
|
-
|
|
11028
|
-
|
|
11029
|
-
.pipe(T.ResponsePath("result")),
|
|
10961
|
+
export const CreateTokenResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
10962
|
+
Schema.Struct({
|
|
10963
|
+
id: Schema.String,
|
|
10964
|
+
cfApiId: Schema.String,
|
|
10965
|
+
createdAt: Schema.String,
|
|
10966
|
+
modifiedAt: Schema.String,
|
|
10967
|
+
name: Schema.String,
|
|
10968
|
+
createdBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
10969
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
10970
|
+
legacy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
10971
|
+
modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
10972
|
+
})
|
|
10973
|
+
.pipe(
|
|
10974
|
+
Schema.encodeKeys({
|
|
10975
|
+
id: "id",
|
|
10976
|
+
cfApiId: "cf_api_id",
|
|
10977
|
+
createdAt: "created_at",
|
|
10978
|
+
modifiedAt: "modified_at",
|
|
10979
|
+
name: "name",
|
|
10980
|
+
createdBy: "created_by",
|
|
10981
|
+
enabled: "enabled",
|
|
10982
|
+
legacy: "legacy",
|
|
10983
|
+
modifiedBy: "modified_by",
|
|
10984
|
+
}),
|
|
10985
|
+
)
|
|
10986
|
+
.pipe(T.ResponsePath("result")),
|
|
11030
10987
|
) as unknown as Schema.Codec<CreateTokenResponse>;
|
|
11031
10988
|
|
|
11032
10989
|
export type CreateTokenError =
|
|
@@ -11042,7 +10999,7 @@ export const createToken: API.OperationMethod<
|
|
|
11042
10999
|
CreateTokenResponse,
|
|
11043
11000
|
CreateTokenError,
|
|
11044
11001
|
Credentials | HttpClient.HttpClient
|
|
11045
|
-
> = /*@__PURE__*/
|
|
11002
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
11046
11003
|
input: CreateTokenRequest,
|
|
11047
11004
|
output: CreateTokenResponse,
|
|
11048
11005
|
errors: [
|
|
@@ -11068,27 +11025,26 @@ export interface UpdateTokenRequest {
|
|
|
11068
11025
|
legacy?: boolean;
|
|
11069
11026
|
}
|
|
11070
11027
|
|
|
11071
|
-
export const UpdateTokenRequest = /*@__PURE__*/
|
|
11072
|
-
(
|
|
11073
|
-
Schema.
|
|
11074
|
-
|
|
11075
|
-
|
|
11076
|
-
|
|
11077
|
-
|
|
11078
|
-
|
|
11079
|
-
|
|
11080
|
-
|
|
11081
|
-
|
|
11082
|
-
|
|
11083
|
-
|
|
11084
|
-
|
|
11085
|
-
|
|
11086
|
-
|
|
11087
|
-
|
|
11088
|
-
|
|
11089
|
-
|
|
11090
|
-
|
|
11091
|
-
),
|
|
11028
|
+
export const UpdateTokenRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
11029
|
+
Schema.Struct({
|
|
11030
|
+
id: Schema.String.pipe(T.HttpPath("id")),
|
|
11031
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
11032
|
+
cfApiId: Schema.String,
|
|
11033
|
+
cfApiKey: Schema.String,
|
|
11034
|
+
name: Schema.String,
|
|
11035
|
+
legacy: Schema.optional(Schema.Boolean),
|
|
11036
|
+
}).pipe(
|
|
11037
|
+
Schema.encodeKeys({
|
|
11038
|
+
cfApiId: "cf_api_id",
|
|
11039
|
+
cfApiKey: "cf_api_key",
|
|
11040
|
+
name: "name",
|
|
11041
|
+
legacy: "legacy",
|
|
11042
|
+
}),
|
|
11043
|
+
T.Http({
|
|
11044
|
+
method: "PUT",
|
|
11045
|
+
path: "/accounts/{account_id}/ai-search/tokens/{id}",
|
|
11046
|
+
}),
|
|
11047
|
+
),
|
|
11092
11048
|
) as unknown as Schema.Codec<UpdateTokenRequest>;
|
|
11093
11049
|
|
|
11094
11050
|
export interface UpdateTokenResponse {
|
|
@@ -11103,33 +11059,32 @@ export interface UpdateTokenResponse {
|
|
|
11103
11059
|
modifiedBy?: string | null;
|
|
11104
11060
|
}
|
|
11105
11061
|
|
|
11106
|
-
export const UpdateTokenResponse = /*@__PURE__*/
|
|
11107
|
-
(
|
|
11108
|
-
Schema.
|
|
11109
|
-
|
|
11110
|
-
|
|
11111
|
-
|
|
11112
|
-
|
|
11113
|
-
|
|
11114
|
-
|
|
11115
|
-
|
|
11116
|
-
|
|
11117
|
-
|
|
11118
|
-
|
|
11119
|
-
.
|
|
11120
|
-
|
|
11121
|
-
|
|
11122
|
-
|
|
11123
|
-
|
|
11124
|
-
|
|
11125
|
-
|
|
11126
|
-
|
|
11127
|
-
|
|
11128
|
-
|
|
11129
|
-
|
|
11130
|
-
|
|
11131
|
-
|
|
11132
|
-
.pipe(T.ResponsePath("result")),
|
|
11062
|
+
export const UpdateTokenResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
11063
|
+
Schema.Struct({
|
|
11064
|
+
id: Schema.String,
|
|
11065
|
+
cfApiId: Schema.String,
|
|
11066
|
+
createdAt: Schema.String,
|
|
11067
|
+
modifiedAt: Schema.String,
|
|
11068
|
+
name: Schema.String,
|
|
11069
|
+
createdBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
11070
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
11071
|
+
legacy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
11072
|
+
modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
11073
|
+
})
|
|
11074
|
+
.pipe(
|
|
11075
|
+
Schema.encodeKeys({
|
|
11076
|
+
id: "id",
|
|
11077
|
+
cfApiId: "cf_api_id",
|
|
11078
|
+
createdAt: "created_at",
|
|
11079
|
+
modifiedAt: "modified_at",
|
|
11080
|
+
name: "name",
|
|
11081
|
+
createdBy: "created_by",
|
|
11082
|
+
enabled: "enabled",
|
|
11083
|
+
legacy: "legacy",
|
|
11084
|
+
modifiedBy: "modified_by",
|
|
11085
|
+
}),
|
|
11086
|
+
)
|
|
11087
|
+
.pipe(T.ResponsePath("result")),
|
|
11133
11088
|
) as unknown as Schema.Codec<UpdateTokenResponse>;
|
|
11134
11089
|
|
|
11135
11090
|
export type UpdateTokenError =
|
|
@@ -11146,7 +11101,7 @@ export const updateToken: API.OperationMethod<
|
|
|
11146
11101
|
UpdateTokenResponse,
|
|
11147
11102
|
UpdateTokenError,
|
|
11148
11103
|
Credentials | HttpClient.HttpClient
|
|
11149
|
-
> = /*@__PURE__*/
|
|
11104
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
11150
11105
|
input: UpdateTokenRequest,
|
|
11151
11106
|
output: UpdateTokenResponse,
|
|
11152
11107
|
errors: [
|
|
@@ -11164,23 +11119,22 @@ export interface DeleteTokenRequest {
|
|
|
11164
11119
|
accountId: string;
|
|
11165
11120
|
}
|
|
11166
11121
|
|
|
11167
|
-
export const DeleteTokenRequest = /*@__PURE__*/
|
|
11168
|
-
(
|
|
11169
|
-
Schema.
|
|
11170
|
-
|
|
11171
|
-
|
|
11172
|
-
|
|
11173
|
-
|
|
11174
|
-
|
|
11175
|
-
|
|
11176
|
-
|
|
11177
|
-
),
|
|
11122
|
+
export const DeleteTokenRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
11123
|
+
Schema.Struct({
|
|
11124
|
+
id: Schema.String.pipe(T.HttpPath("id")),
|
|
11125
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
11126
|
+
}).pipe(
|
|
11127
|
+
T.Http({
|
|
11128
|
+
method: "DELETE",
|
|
11129
|
+
path: "/accounts/{account_id}/ai-search/tokens/{id}",
|
|
11130
|
+
}),
|
|
11131
|
+
),
|
|
11178
11132
|
) as unknown as Schema.Codec<DeleteTokenRequest>;
|
|
11179
11133
|
|
|
11180
11134
|
export type DeleteTokenResponse = unknown;
|
|
11181
11135
|
|
|
11182
|
-
export const DeleteTokenResponse = /*@__PURE__*/
|
|
11183
|
-
|
|
11136
|
+
export const DeleteTokenResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
11137
|
+
Schema.Unknown.pipe(T.ResponsePath("result")),
|
|
11184
11138
|
) as unknown as Schema.Codec<DeleteTokenResponse>;
|
|
11185
11139
|
|
|
11186
11140
|
export type DeleteTokenError =
|
|
@@ -11197,7 +11151,7 @@ export const deleteToken: API.OperationMethod<
|
|
|
11197
11151
|
DeleteTokenResponse,
|
|
11198
11152
|
DeleteTokenError,
|
|
11199
11153
|
Credentials | HttpClient.HttpClient
|
|
11200
|
-
> = /*@__PURE__*/
|
|
11154
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
11201
11155
|
input: DeleteTokenRequest,
|
|
11202
11156
|
output: DeleteTokenResponse,
|
|
11203
11157
|
errors: [
|
|
@@ -11215,7 +11169,7 @@ export interface ReadTokenRequest {
|
|
|
11215
11169
|
accountId: string;
|
|
11216
11170
|
}
|
|
11217
11171
|
|
|
11218
|
-
export const ReadTokenRequest = /*@__PURE__*/
|
|
11172
|
+
export const ReadTokenRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
11219
11173
|
Schema.Struct({
|
|
11220
11174
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
11221
11175
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -11239,33 +11193,32 @@ export interface ReadTokenResponse {
|
|
|
11239
11193
|
modifiedBy?: string | null;
|
|
11240
11194
|
}
|
|
11241
11195
|
|
|
11242
|
-
export const ReadTokenResponse = /*@__PURE__*/
|
|
11243
|
-
(
|
|
11244
|
-
Schema.
|
|
11245
|
-
|
|
11246
|
-
|
|
11247
|
-
|
|
11248
|
-
|
|
11249
|
-
|
|
11250
|
-
|
|
11251
|
-
|
|
11252
|
-
|
|
11253
|
-
|
|
11254
|
-
|
|
11255
|
-
.
|
|
11256
|
-
|
|
11257
|
-
|
|
11258
|
-
|
|
11259
|
-
|
|
11260
|
-
|
|
11261
|
-
|
|
11262
|
-
|
|
11263
|
-
|
|
11264
|
-
|
|
11265
|
-
|
|
11266
|
-
|
|
11267
|
-
|
|
11268
|
-
.pipe(T.ResponsePath("result")),
|
|
11196
|
+
export const ReadTokenResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
11197
|
+
Schema.Struct({
|
|
11198
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
11199
|
+
cfApiId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
11200
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
11201
|
+
modifiedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
11202
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
11203
|
+
createdBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
11204
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
11205
|
+
legacy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
11206
|
+
modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
11207
|
+
})
|
|
11208
|
+
.pipe(
|
|
11209
|
+
Schema.encodeKeys({
|
|
11210
|
+
id: "id",
|
|
11211
|
+
cfApiId: "cf_api_id",
|
|
11212
|
+
createdAt: "created_at",
|
|
11213
|
+
modifiedAt: "modified_at",
|
|
11214
|
+
name: "name",
|
|
11215
|
+
createdBy: "created_by",
|
|
11216
|
+
enabled: "enabled",
|
|
11217
|
+
legacy: "legacy",
|
|
11218
|
+
modifiedBy: "modified_by",
|
|
11219
|
+
}),
|
|
11220
|
+
)
|
|
11221
|
+
.pipe(T.ResponsePath("result")),
|
|
11269
11222
|
) as unknown as Schema.Codec<ReadTokenResponse>;
|
|
11270
11223
|
|
|
11271
11224
|
export type ReadTokenError =
|
|
@@ -11281,7 +11234,7 @@ export const readToken: API.OperationMethod<
|
|
|
11281
11234
|
ReadTokenResponse,
|
|
11282
11235
|
ReadTokenError,
|
|
11283
11236
|
Credentials | HttpClient.HttpClient
|
|
11284
|
-
> = /*@__PURE__*/
|
|
11237
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
11285
11238
|
input: ReadTokenRequest,
|
|
11286
11239
|
output: ReadTokenResponse,
|
|
11287
11240
|
errors: [ValidationError, NotFound, InvalidRoute, TokenNotFound, Forbidden],
|