@distilled.cloud/cloudflare 0.2.5-alpha2 → 0.3.0-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -2
- package/lib/auth.d.ts +3 -2
- package/lib/auth.d.ts.map +1 -1
- package/lib/auth.js +4 -3
- package/lib/auth.js.map +1 -1
- package/lib/client/api.d.ts +7 -9
- package/lib/client/api.d.ts.map +1 -1
- package/lib/client/api.js +60 -13
- package/lib/client/api.js.map +1 -1
- package/lib/credentials.d.ts +58 -4
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +126 -7
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +12 -1
- package/lib/errors.d.ts.map +1 -1
- package/lib/sensitive.d.ts +5 -0
- package/lib/sensitive.d.ts.map +1 -0
- package/lib/sensitive.js +5 -0
- package/lib/sensitive.js.map +1 -0
- package/lib/services/abuse-reports.d.ts +116 -44
- package/lib/services/abuse-reports.d.ts.map +1 -1
- package/lib/services/abuse-reports.js +171 -110
- package/lib/services/abuse-reports.js.map +1 -1
- package/lib/services/accounts.d.ts +146 -62
- package/lib/services/accounts.d.ts.map +1 -1
- package/lib/services/accounts.js +208 -153
- package/lib/services/accounts.js.map +1 -1
- package/lib/services/acm.d.ts.map +1 -1
- package/lib/services/acm.js +8 -4
- package/lib/services/acm.js.map +1 -1
- package/lib/services/addressing.d.ts +200 -87
- package/lib/services/addressing.d.ts.map +1 -1
- package/lib/services/addressing.js +288 -201
- package/lib/services/addressing.js.map +1 -1
- package/lib/services/ai-gateway.d.ts +302 -121
- package/lib/services/ai-gateway.d.ts.map +1 -1
- package/lib/services/ai-gateway.js +407 -283
- package/lib/services/ai-gateway.js.map +1 -1
- package/lib/services/ai.d.ts +83 -29
- package/lib/services/ai.d.ts.map +1 -1
- package/lib/services/ai.js +95 -42
- package/lib/services/ai.js.map +1 -1
- package/lib/services/aisearch.d.ts +266 -112
- package/lib/services/aisearch.d.ts.map +1 -1
- package/lib/services/aisearch.js +510 -393
- package/lib/services/aisearch.js.map +1 -1
- package/lib/services/alerting.d.ts +249 -112
- package/lib/services/alerting.d.ts.map +1 -1
- package/lib/services/alerting.js +382 -325
- package/lib/services/alerting.js.map +1 -1
- package/lib/services/api-gateway.d.ts +458 -200
- package/lib/services/api-gateway.d.ts.map +1 -1
- package/lib/services/api-gateway.js +725 -618
- package/lib/services/api-gateway.js.map +1 -1
- package/lib/services/argo.d.ts.map +1 -1
- package/lib/services/argo.js +16 -8
- package/lib/services/argo.js.map +1 -1
- package/lib/services/billing.d.ts.map +1 -1
- package/lib/services/billing.js +4 -2
- package/lib/services/billing.js.map +1 -1
- package/lib/services/bot-management.d.ts.map +1 -1
- package/lib/services/bot-management.js +2 -2
- package/lib/services/bot-management.js.map +1 -1
- package/lib/services/botnet-feed.d.ts.map +1 -1
- package/lib/services/botnet-feed.js +10 -6
- package/lib/services/botnet-feed.js.map +1 -1
- package/lib/services/brand-protection.d.ts +8 -2
- package/lib/services/brand-protection.d.ts.map +1 -1
- package/lib/services/brand-protection.js +9 -2
- package/lib/services/brand-protection.js.map +1 -1
- package/lib/services/browser-rendering.d.ts.map +1 -1
- package/lib/services/browser-rendering.js +15 -14
- package/lib/services/browser-rendering.js.map +1 -1
- package/lib/services/cache.d.ts.map +1 -1
- package/lib/services/cache.js +49 -25
- package/lib/services/cache.js.map +1 -1
- package/lib/services/calls.d.ts +35 -14
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +35 -22
- package/lib/services/calls.js.map +1 -1
- package/lib/services/certificate-authorities.d.ts.map +1 -1
- package/lib/services/certificate-authorities.js +2 -2
- package/lib/services/certificate-authorities.js.map +1 -1
- package/lib/services/client-certificates.d.ts +57 -23
- package/lib/services/client-certificates.d.ts.map +1 -1
- package/lib/services/client-certificates.js +91 -62
- package/lib/services/client-certificates.js.map +1 -1
- package/lib/services/cloud-connector.d.ts +51 -22
- package/lib/services/cloud-connector.d.ts.map +1 -1
- package/lib/services/cloud-connector.js +57 -44
- package/lib/services/cloud-connector.js.map +1 -1
- package/lib/services/cloudforce-one.d.ts +119 -50
- package/lib/services/cloudforce-one.d.ts.map +1 -1
- package/lib/services/cloudforce-one.js +181 -124
- package/lib/services/cloudforce-one.js.map +1 -1
- package/lib/services/connectivity.d.ts +74 -31
- package/lib/services/connectivity.d.ts.map +1 -1
- package/lib/services/connectivity.js +84 -57
- package/lib/services/connectivity.js.map +1 -1
- package/lib/services/content-scanning.d.ts +40 -15
- package/lib/services/content-scanning.d.ts.map +1 -1
- package/lib/services/content-scanning.js +40 -21
- package/lib/services/content-scanning.js.map +1 -1
- package/lib/services/custom-certificates.d.ts +48 -19
- package/lib/services/custom-certificates.d.ts.map +1 -1
- package/lib/services/custom-certificates.js +80 -53
- package/lib/services/custom-certificates.js.map +1 -1
- package/lib/services/custom-hostnames.d.ts +116 -51
- package/lib/services/custom-hostnames.d.ts.map +1 -1
- package/lib/services/custom-hostnames.js +210 -170
- package/lib/services/custom-hostnames.js.map +1 -1
- package/lib/services/custom-nameservers.d.ts +32 -12
- package/lib/services/custom-nameservers.d.ts.map +1 -1
- package/lib/services/custom-nameservers.js +36 -21
- package/lib/services/custom-nameservers.js.map +1 -1
- package/lib/services/custom-pages.d.ts +26 -11
- package/lib/services/custom-pages.d.ts.map +1 -1
- package/lib/services/custom-pages.js +39 -24
- package/lib/services/custom-pages.js.map +1 -1
- package/lib/services/d1.d.ts +114 -48
- package/lib/services/d1.d.ts.map +1 -1
- package/lib/services/d1.js +150 -111
- package/lib/services/d1.js.map +1 -1
- package/lib/services/dcv-delegation.d.ts.map +1 -1
- package/lib/services/dcv-delegation.js +1 -1
- package/lib/services/dcv-delegation.js.map +1 -1
- package/lib/services/diagnostics.d.ts +59 -26
- package/lib/services/diagnostics.d.ts.map +1 -1
- package/lib/services/diagnostics.js +97 -82
- package/lib/services/diagnostics.js.map +1 -1
- package/lib/services/dns-firewall.d.ts +48 -19
- package/lib/services/dns-firewall.d.ts.map +1 -1
- package/lib/services/dns-firewall.js +75 -48
- package/lib/services/dns-firewall.js.map +1 -1
- package/lib/services/dns.d.ts +206 -87
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +335 -219
- package/lib/services/dns.js.map +1 -1
- package/lib/services/durable-objects.d.ts +44 -13
- package/lib/services/durable-objects.d.ts.map +1 -1
- package/lib/services/durable-objects.js +56 -19
- package/lib/services/durable-objects.js.map +1 -1
- package/lib/services/email-routing.d.ts +90 -34
- package/lib/services/email-routing.d.ts.map +1 -1
- package/lib/services/email-routing.js +133 -80
- package/lib/services/email-routing.js.map +1 -1
- package/lib/services/email-security.d.ts +439 -181
- package/lib/services/email-security.d.ts.map +1 -1
- package/lib/services/email-security.js +753 -557
- package/lib/services/email-security.js.map +1 -1
- package/lib/services/filters.d.ts +64 -24
- package/lib/services/filters.d.ts.map +1 -1
- package/lib/services/filters.js +61 -28
- package/lib/services/filters.js.map +1 -1
- package/lib/services/firewall.d.ts +455 -183
- package/lib/services/firewall.d.ts.map +1 -1
- package/lib/services/firewall.js +777 -574
- package/lib/services/firewall.js.map +1 -1
- package/lib/services/healthchecks.d.ts +76 -33
- package/lib/services/healthchecks.d.ts.map +1 -1
- package/lib/services/healthchecks.js +129 -100
- package/lib/services/healthchecks.js.map +1 -1
- package/lib/services/hostnames.d.ts +20 -8
- package/lib/services/hostnames.d.ts.map +1 -1
- package/lib/services/hostnames.js +32 -21
- package/lib/services/hostnames.js.map +1 -1
- package/lib/services/hyperdrive.d.ts.map +1 -1
- package/lib/services/hyperdrive.js +10 -9
- package/lib/services/hyperdrive.js.map +1 -1
- package/lib/services/iam.d.ts +162 -59
- package/lib/services/iam.d.ts.map +1 -1
- package/lib/services/iam.js +219 -119
- package/lib/services/iam.js.map +1 -1
- package/lib/services/images.d.ts +36 -12
- package/lib/services/images.d.ts.map +1 -1
- package/lib/services/images.js +59 -32
- package/lib/services/images.js.map +1 -1
- package/lib/services/intel.d.ts +159 -62
- package/lib/services/intel.d.ts.map +1 -1
- package/lib/services/intel.js +238 -151
- package/lib/services/intel.js.map +1 -1
- package/lib/services/ips.d.ts.map +1 -1
- package/lib/services/ips.js +1 -1
- package/lib/services/ips.js.map +1 -1
- package/lib/services/keyless-certificates.d.ts +36 -16
- package/lib/services/keyless-certificates.d.ts.map +1 -1
- package/lib/services/keyless-certificates.js +50 -37
- package/lib/services/keyless-certificates.js.map +1 -1
- package/lib/services/kv.d.ts +42 -12
- package/lib/services/kv.d.ts.map +1 -1
- package/lib/services/kv.js +87 -36
- package/lib/services/kv.js.map +1 -1
- package/lib/services/leaked-credential-checks.d.ts +16 -6
- package/lib/services/leaked-credential-checks.d.ts.map +1 -1
- package/lib/services/leaked-credential-checks.js +20 -12
- package/lib/services/leaked-credential-checks.js.map +1 -1
- package/lib/services/load-balancers.d.ts +373 -167
- package/lib/services/load-balancers.d.ts.map +1 -1
- package/lib/services/load-balancers.js +603 -490
- package/lib/services/load-balancers.js.map +1 -1
- package/lib/services/logpush.d.ts.map +1 -1
- package/lib/services/logpush.js +23 -15
- package/lib/services/logpush.js.map +1 -1
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +11 -7
- package/lib/services/logs.js.map +1 -1
- package/lib/services/magic-cloud-networking.d.ts +542 -249
- package/lib/services/magic-cloud-networking.d.ts.map +1 -1
- package/lib/services/magic-cloud-networking.js +890 -804
- package/lib/services/magic-cloud-networking.js.map +1 -1
- package/lib/services/magic-network-monitoring.d.ts.map +1 -1
- package/lib/services/magic-network-monitoring.js +44 -22
- package/lib/services/magic-network-monitoring.js.map +1 -1
- package/lib/services/magic-transit.d.ts +432 -196
- package/lib/services/magic-transit.d.ts.map +1 -1
- package/lib/services/magic-transit.js +730 -566
- package/lib/services/magic-transit.js.map +1 -1
- package/lib/services/managed-transforms.d.ts.map +1 -1
- package/lib/services/managed-transforms.js +8 -4
- package/lib/services/managed-transforms.js.map +1 -1
- package/lib/services/memberships.d.ts +54 -22
- package/lib/services/memberships.d.ts.map +1 -1
- package/lib/services/memberships.js +79 -53
- package/lib/services/memberships.js.map +1 -1
- package/lib/services/mtls-certificates.d.ts +41 -17
- package/lib/services/mtls-certificates.d.ts.map +1 -1
- package/lib/services/mtls-certificates.js +52 -33
- package/lib/services/mtls-certificates.js.map +1 -1
- package/lib/services/organizations.d.ts +56 -25
- package/lib/services/organizations.d.ts.map +1 -1
- package/lib/services/organizations.js +74 -59
- package/lib/services/organizations.js.map +1 -1
- package/lib/services/origin-ca-certificates.d.ts +30 -10
- package/lib/services/origin-ca-certificates.d.ts.map +1 -1
- package/lib/services/origin-ca-certificates.js +62 -35
- package/lib/services/origin-ca-certificates.js.map +1 -1
- package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -1
- package/lib/services/origin-post-quantum-encryption.js +8 -4
- package/lib/services/origin-post-quantum-encryption.js.map +1 -1
- package/lib/services/origin-tls-client-auth.d.ts +60 -25
- package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
- package/lib/services/origin-tls-client-auth.js +94 -60
- package/lib/services/origin-tls-client-auth.js.map +1 -1
- package/lib/services/page-rules.d.ts.map +1 -1
- package/lib/services/page-rules.js +18 -10
- package/lib/services/page-rules.js.map +1 -1
- package/lib/services/page-shield.d.ts +145 -66
- package/lib/services/page-shield.d.ts.map +1 -1
- package/lib/services/page-shield.js +166 -130
- package/lib/services/page-shield.js.map +1 -1
- package/lib/services/pages.d.ts +520 -225
- package/lib/services/pages.d.ts.map +1 -1
- package/lib/services/pages.js +643 -567
- package/lib/services/pages.js.map +1 -1
- package/lib/services/pipelines.d.ts +461 -206
- package/lib/services/pipelines.d.ts.map +1 -1
- package/lib/services/pipelines.js +859 -780
- package/lib/services/pipelines.js.map +1 -1
- package/lib/services/queues.d.ts +177 -80
- package/lib/services/queues.d.ts.map +1 -1
- package/lib/services/queues.js +233 -177
- package/lib/services/queues.js.map +1 -1
- package/lib/services/r2-data-catalog.d.ts.map +1 -1
- package/lib/services/r2-data-catalog.js +30 -16
- package/lib/services/r2-data-catalog.js.map +1 -1
- package/lib/services/r2.d.ts +85 -39
- package/lib/services/r2.d.ts.map +1 -1
- package/lib/services/r2.js +146 -126
- package/lib/services/r2.js.map +1 -1
- package/lib/services/radar.d.ts +152 -63
- package/lib/services/radar.d.ts.map +1 -1
- package/lib/services/radar.js +421 -360
- package/lib/services/radar.js.map +1 -1
- package/lib/services/rate-limits.d.ts +76 -31
- package/lib/services/rate-limits.d.ts.map +1 -1
- package/lib/services/rate-limits.js +106 -82
- package/lib/services/rate-limits.js.map +1 -1
- package/lib/services/realtime-kit.d.ts.map +1 -1
- package/lib/services/realtime-kit.js +34 -33
- package/lib/services/realtime-kit.js.map +1 -1
- package/lib/services/registrar.d.ts +75 -35
- package/lib/services/registrar.d.ts.map +1 -1
- package/lib/services/registrar.js +116 -103
- package/lib/services/registrar.js.map +1 -1
- package/lib/services/request-tracers.d.ts.map +1 -1
- package/lib/services/request-tracers.js +5 -2
- package/lib/services/request-tracers.js.map +1 -1
- package/lib/services/resource-sharing.d.ts +132 -50
- package/lib/services/resource-sharing.d.ts.map +1 -1
- package/lib/services/resource-sharing.js +232 -149
- package/lib/services/resource-sharing.js.map +1 -1
- package/lib/services/rules.d.ts +86 -37
- package/lib/services/rules.d.ts.map +1 -1
- package/lib/services/rules.js +122 -87
- package/lib/services/rules.js.map +1 -1
- package/lib/services/rulesets.d.ts +75 -30
- package/lib/services/rulesets.d.ts.map +1 -1
- package/lib/services/rulesets.js +274 -222
- package/lib/services/rulesets.js.map +1 -1
- package/lib/services/rum.d.ts +40 -15
- package/lib/services/rum.d.ts.map +1 -1
- package/lib/services/rum.js +78 -45
- package/lib/services/rum.js.map +1 -1
- package/lib/services/schema-validation.d.ts +47 -14
- package/lib/services/schema-validation.d.ts.map +1 -1
- package/lib/services/schema-validation.js +102 -43
- package/lib/services/schema-validation.js.map +1 -1
- package/lib/services/secrets-store.d.ts +116 -44
- package/lib/services/secrets-store.d.ts.map +1 -1
- package/lib/services/secrets-store.js +145 -78
- package/lib/services/secrets-store.js.map +1 -1
- package/lib/services/security-center.d.ts +56 -22
- package/lib/services/security-center.d.ts.map +1 -1
- package/lib/services/security-center.js +90 -64
- package/lib/services/security-center.js.map +1 -1
- package/lib/services/security-txt.d.ts.map +1 -1
- package/lib/services/security-txt.js +1 -1
- package/lib/services/security-txt.js.map +1 -1
- package/lib/services/snippets.d.ts +85 -33
- package/lib/services/snippets.d.ts.map +1 -1
- package/lib/services/snippets.js +106 -63
- package/lib/services/snippets.js.map +1 -1
- package/lib/services/spectrum.d.ts +58 -24
- package/lib/services/spectrum.d.ts.map +1 -1
- package/lib/services/spectrum.js +90 -65
- package/lib/services/spectrum.js.map +1 -1
- package/lib/services/speed.d.ts +47 -17
- package/lib/services/speed.d.ts.map +1 -1
- package/lib/services/speed.js +51 -24
- package/lib/services/speed.js.map +1 -1
- package/lib/services/ssl.d.ts +77 -35
- package/lib/services/ssl.d.ts.map +1 -1
- package/lib/services/ssl.js +146 -123
- package/lib/services/ssl.js.map +1 -1
- package/lib/services/stream.d.ts +173 -77
- package/lib/services/stream.d.ts.map +1 -1
- package/lib/services/stream.js +167 -131
- package/lib/services/stream.js.map +1 -1
- package/lib/services/token-validation.d.ts +203 -88
- package/lib/services/token-validation.d.ts.map +1 -1
- package/lib/services/token-validation.js +238 -172
- package/lib/services/token-validation.js.map +1 -1
- package/lib/services/turnstile.d.ts +38 -14
- package/lib/services/turnstile.d.ts.map +1 -1
- package/lib/services/turnstile.js +72 -41
- package/lib/services/turnstile.js.map +1 -1
- package/lib/services/url-normalization.d.ts.map +1 -1
- package/lib/services/url-normalization.js +2 -2
- package/lib/services/url-normalization.js.map +1 -1
- package/lib/services/user.d.ts +106 -40
- package/lib/services/user.d.ts.map +1 -1
- package/lib/services/user.js +156 -89
- package/lib/services/user.js.map +1 -1
- package/lib/services/vectorize.d.ts +26 -11
- package/lib/services/vectorize.d.ts.map +1 -1
- package/lib/services/vectorize.js +46 -35
- package/lib/services/vectorize.js.map +1 -1
- package/lib/services/waiting-rooms.d.ts +244 -104
- package/lib/services/waiting-rooms.d.ts.map +1 -1
- package/lib/services/waiting-rooms.js +398 -296
- package/lib/services/waiting-rooms.js.map +1 -1
- package/lib/services/web3.d.ts +26 -11
- package/lib/services/web3.d.ts.map +1 -1
- package/lib/services/web3.js +62 -43
- package/lib/services/web3.js.map +1 -1
- package/lib/services/workers-for-platforms.d.ts +323 -153
- package/lib/services/workers-for-platforms.d.ts.map +1 -1
- package/lib/services/workers-for-platforms.js +331 -288
- package/lib/services/workers-for-platforms.js.map +1 -1
- package/lib/services/workers.d.ts +601 -272
- package/lib/services/workers.d.ts.map +1 -1
- package/lib/services/workers.js +771 -633
- package/lib/services/workers.js.map +1 -1
- package/lib/services/workflows.d.ts +130 -47
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +190 -107
- package/lib/services/workflows.js.map +1 -1
- package/lib/services/zaraz.d.ts +20 -8
- package/lib/services/zaraz.d.ts.map +1 -1
- package/lib/services/zaraz.js +20 -13
- package/lib/services/zaraz.js.map +1 -1
- package/lib/services/zero-trust.d.ts +5436 -2650
- package/lib/services/zero-trust.d.ts.map +1 -1
- package/lib/services/zero-trust.js +9008 -7934
- package/lib/services/zero-trust.js.map +1 -1
- package/lib/services/zones.d.ts +188 -84
- package/lib/services/zones.d.ts.map +1 -1
- package/lib/services/zones.js +257 -196
- package/lib/services/zones.js.map +1 -1
- package/package.json +3 -2
- package/src/auth.ts +4 -3
- package/src/client/api.ts +105 -13
- package/src/credentials.ts +253 -12
- package/src/errors.ts +17 -1
- package/src/sensitive.ts +4 -0
- package/src/services/abuse-reports.ts +416 -208
- package/src/services/accounts.ts +511 -306
- package/src/services/acm.ts +22 -14
- package/src/services/addressing.ts +865 -550
- package/src/services/ai-gateway.ts +1148 -710
- package/src/services/ai.ts +265 -91
- package/src/services/aisearch.ts +1460 -995
- package/src/services/alerting.ts +1027 -671
- package/src/services/api-gateway.ts +1628 -1129
- package/src/services/argo.ts +48 -32
- package/src/services/billing.ts +47 -43
- package/src/services/bot-management.ts +6 -2
- package/src/services/botnet-feed.ts +28 -16
- package/src/services/brand-protection.ts +28 -6
- package/src/services/browser-rendering.ts +23 -10
- package/src/services/cache.ts +147 -97
- package/src/services/calls.ts +107 -42
- package/src/services/certificate-authorities.ts +6 -2
- package/src/services/client-certificates.ts +270 -173
- package/src/services/cloud-connector.ts +149 -82
- package/src/services/cloudforce-one.ts +515 -287
- package/src/services/connectivity.ts +184 -107
- package/src/services/content-scanning.ts +115 -42
- package/src/services/custom-certificates.ts +200 -121
- package/src/services/custom-hostnames.ts +583 -395
- package/src/services/custom-nameservers.ts +98 -45
- package/src/services/custom-pages.ts +109 -62
- package/src/services/d1.ts +409 -235
- package/src/services/dcv-delegation.ts +3 -1
- package/src/services/diagnostics.ts +267 -193
- package/src/services/dns-firewall.ts +197 -116
- package/src/services/dns.ts +916 -536
- package/src/services/durable-objects.ts +126 -37
- package/src/services/email-routing.ts +375 -181
- package/src/services/email-security.ts +1881 -1112
- package/src/services/filters.ts +176 -58
- package/src/services/firewall.ts +1843 -1011
- package/src/services/healthchecks.ts +374 -258
- package/src/services/hostnames.ts +83 -47
- package/src/services/hyperdrive.ts +12 -9
- package/src/services/iam.ts +560 -259
- package/src/services/images.ts +148 -54
- package/src/services/intel.ts +677 -373
- package/src/services/ips.ts +1 -1
- package/src/services/keyless-certificates.ts +139 -92
- package/src/services/kv.ts +204 -86
- package/src/services/leaked-credential-checks.ts +58 -19
- package/src/services/load-balancers.ts +1755 -1200
- package/src/services/logpush.ts +100 -72
- package/src/services/logs.ts +29 -15
- package/src/services/magic-cloud-networking.ts +2453 -1726
- package/src/services/magic-network-monitoring.ts +163 -119
- package/src/services/magic-transit.ts +2153 -1530
- package/src/services/managed-transforms.ts +20 -12
- package/src/services/memberships.ts +196 -113
- package/src/services/mtls-certificates.ts +158 -88
- package/src/services/organizations.ts +185 -121
- package/src/services/origin-ca-certificates.ts +130 -64
- package/src/services/origin-post-quantum-encryption.ts +24 -16
- package/src/services/origin-tls-client-auth.ts +282 -158
- package/src/services/page-rules.ts +64 -44
- package/src/services/page-shield.ts +492 -316
- package/src/services/pages.ts +1612 -1154
- package/src/services/pipelines.ts +1735 -1280
- package/src/services/queues.ts +617 -419
- package/src/services/r2-data-catalog.ts +82 -50
- package/src/services/r2.ts +420 -239
- package/src/services/radar.ts +1107 -423
- package/src/services/rate-limits.ts +254 -152
- package/src/services/realtime-kit.ts +34 -33
- package/src/services/registrar.ts +262 -167
- package/src/services/request-tracers.ts +7 -4
- package/src/services/resource-sharing.ts +628 -378
- package/src/services/rules.ts +292 -176
- package/src/services/rulesets.ts +643 -426
- package/src/services/rum.ts +204 -111
- package/src/services/schema-validation.ts +240 -104
- package/src/services/secrets-store.ts +356 -166
- package/src/services/security-center.ts +196 -98
- package/src/services/security-txt.ts +2 -0
- package/src/services/snippets.ts +259 -117
- package/src/services/spectrum.ts +215 -128
- package/src/services/speed.ts +144 -46
- package/src/services/ssl.ts +420 -293
- package/src/services/stream.ts +496 -244
- package/src/services/token-validation.ts +583 -343
- package/src/services/turnstile.ts +206 -124
- package/src/services/url-normalization.ts +6 -2
- package/src/services/user.ts +480 -277
- package/src/services/vectorize.ts +123 -64
- package/src/services/waiting-rooms.ts +1156 -747
- package/src/services/web3.ts +178 -113
- package/src/services/workers-for-platforms.ts +814 -539
- package/src/services/workers.ts +1888 -1227
- package/src/services/workflows.ts +453 -205
- package/src/services/zaraz.ts +61 -25
- package/src/services/zero-trust.ts +17859 -12103
- package/src/services/zones.ts +690 -459
package/src/services/aisearch.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* DO NOT EDIT - regenerate with: bun scripts/generate.ts --service aisearch
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
import * as stream from "effect/Stream";
|
|
8
9
|
import * as Schema from "effect/Schema";
|
|
9
10
|
import type * as HttpClient from "effect/unstable/http/HttpClient";
|
|
10
11
|
import * as API from "../client/api.ts";
|
|
@@ -64,592 +65,824 @@ export const ListInstancesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
64
65
|
T.Http({ method: "GET", path: "/accounts/{account_id}/ai-search/instances" }),
|
|
65
66
|
) as unknown as Schema.Schema<ListInstancesRequest>;
|
|
66
67
|
|
|
67
|
-
export
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
modifiedBy?: string | null;
|
|
138
|
-
paused?: boolean | null;
|
|
139
|
-
publicEndpointId?: string | null;
|
|
140
|
-
publicEndpointParams?: {
|
|
141
|
-
authorizedHosts?: string[] | null;
|
|
142
|
-
chatCompletionsEndpoint?: { disabled?: boolean | null } | null;
|
|
143
|
-
enabled?: boolean | null;
|
|
144
|
-
mcp?: { disabled?: boolean | null } | null;
|
|
145
|
-
rateLimit?: {
|
|
146
|
-
periodMs?: number | null;
|
|
147
|
-
requests?: number | null;
|
|
148
|
-
technique?: "fixed" | "sliding" | null;
|
|
68
|
+
export interface ListInstancesResponse {
|
|
69
|
+
result: {
|
|
70
|
+
id: string;
|
|
71
|
+
accountId?: string | null;
|
|
72
|
+
accountTag?: string | null;
|
|
73
|
+
createdAt: string;
|
|
74
|
+
internalId?: string | null;
|
|
75
|
+
modifiedAt: string;
|
|
76
|
+
source: string;
|
|
77
|
+
tokenId: string;
|
|
78
|
+
type: "r2" | "web-crawler";
|
|
79
|
+
vectorizeName: string;
|
|
80
|
+
aiGatewayId?: string | null;
|
|
81
|
+
aiSearchModel?:
|
|
82
|
+
| "@cf/meta/llama-3.3-70b-instruct-fp8-fast"
|
|
83
|
+
| "@cf/meta/llama-3.1-8b-instruct-fast"
|
|
84
|
+
| "@cf/meta/llama-3.1-8b-instruct-fp8"
|
|
85
|
+
| "@cf/meta/llama-4-scout-17b-16e-instruct"
|
|
86
|
+
| "@cf/qwen/qwen3-30b-a3b-fp8"
|
|
87
|
+
| "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"
|
|
88
|
+
| "@cf/moonshotai/kimi-k2-instruct"
|
|
89
|
+
| "anthropic/claude-3-7-sonnet"
|
|
90
|
+
| "anthropic/claude-sonnet-4"
|
|
91
|
+
| "anthropic/claude-opus-4"
|
|
92
|
+
| "anthropic/claude-3-5-haiku"
|
|
93
|
+
| "cerebras/qwen-3-235b-a22b-instruct"
|
|
94
|
+
| "cerebras/qwen-3-235b-a22b-thinking"
|
|
95
|
+
| "cerebras/llama-3.3-70b"
|
|
96
|
+
| "cerebras/llama-4-maverick-17b-128e-instruct"
|
|
97
|
+
| "cerebras/llama-4-scout-17b-16e-instruct"
|
|
98
|
+
| "cerebras/gpt-oss-120b"
|
|
99
|
+
| "google-ai-studio/gemini-2.5-flash"
|
|
100
|
+
| "google-ai-studio/gemini-2.5-pro"
|
|
101
|
+
| "grok/grok-4"
|
|
102
|
+
| "groq/llama-3.3-70b-versatile"
|
|
103
|
+
| "groq/llama-3.1-8b-instant"
|
|
104
|
+
| "openai/gpt-5"
|
|
105
|
+
| "openai/gpt-5-mini"
|
|
106
|
+
| "openai/gpt-5-nano"
|
|
107
|
+
| ""
|
|
108
|
+
| null;
|
|
109
|
+
cache?: boolean | null;
|
|
110
|
+
cacheThreshold?:
|
|
111
|
+
| "super_strict_match"
|
|
112
|
+
| "close_enough"
|
|
113
|
+
| "flexible_friend"
|
|
114
|
+
| "anything_goes"
|
|
115
|
+
| null;
|
|
116
|
+
chunk?: boolean | null;
|
|
117
|
+
chunkOverlap?: number | null;
|
|
118
|
+
chunkSize?: number | null;
|
|
119
|
+
createdBy?: string | null;
|
|
120
|
+
embeddingModel?:
|
|
121
|
+
| "@cf/baai/bge-m3"
|
|
122
|
+
| "@cf/baai/bge-large-en-v1.5"
|
|
123
|
+
| "@cf/google/embeddinggemma-300m"
|
|
124
|
+
| "@cf/qwen/qwen3-embedding-0.6b"
|
|
125
|
+
| "google-ai-studio/gemini-embedding-001"
|
|
126
|
+
| "openai/text-embedding-3-small"
|
|
127
|
+
| "openai/text-embedding-3-large"
|
|
128
|
+
| ""
|
|
129
|
+
| null;
|
|
130
|
+
enable?: boolean | null;
|
|
131
|
+
engineVersion?: number | null;
|
|
132
|
+
hybridSearchEnabled?: boolean | null;
|
|
133
|
+
lastActivity?: string | null;
|
|
134
|
+
maxNumResults?: number | null;
|
|
135
|
+
metadata?: {
|
|
136
|
+
createdFromAisearchWizard?: boolean | null;
|
|
137
|
+
workerDomain?: string | null;
|
|
149
138
|
} | null;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
| "anthropic/claude-3-7-sonnet"
|
|
163
|
-
| "anthropic/claude-sonnet-4"
|
|
164
|
-
| "anthropic/claude-opus-4"
|
|
165
|
-
| "anthropic/claude-3-5-haiku"
|
|
166
|
-
| "cerebras/qwen-3-235b-a22b-instruct"
|
|
167
|
-
| "cerebras/qwen-3-235b-a22b-thinking"
|
|
168
|
-
| "cerebras/llama-3.3-70b"
|
|
169
|
-
| "cerebras/llama-4-maverick-17b-128e-instruct"
|
|
170
|
-
| "cerebras/llama-4-scout-17b-16e-instruct"
|
|
171
|
-
| "cerebras/gpt-oss-120b"
|
|
172
|
-
| "google-ai-studio/gemini-2.5-flash"
|
|
173
|
-
| "google-ai-studio/gemini-2.5-pro"
|
|
174
|
-
| "grok/grok-4"
|
|
175
|
-
| "groq/llama-3.3-70b-versatile"
|
|
176
|
-
| "groq/llama-3.1-8b-instant"
|
|
177
|
-
| "openai/gpt-5"
|
|
178
|
-
| "openai/gpt-5-mini"
|
|
179
|
-
| "openai/gpt-5-nano"
|
|
180
|
-
| ""
|
|
181
|
-
| null;
|
|
182
|
-
rewriteQuery?: boolean | null;
|
|
183
|
-
scoreThreshold?: number | null;
|
|
184
|
-
sourceParams?: {
|
|
185
|
-
excludeItems?: string[] | null;
|
|
186
|
-
includeItems?: string[] | null;
|
|
187
|
-
prefix?: string | null;
|
|
188
|
-
r2Jurisdiction?: string | null;
|
|
189
|
-
webCrawler?: {
|
|
190
|
-
parseOptions?: {
|
|
191
|
-
includeHeaders?: Record<string, unknown> | null;
|
|
192
|
-
includeImages?: boolean | null;
|
|
193
|
-
useBrowserRendering?: boolean | null;
|
|
139
|
+
modifiedBy?: string | null;
|
|
140
|
+
paused?: boolean | null;
|
|
141
|
+
publicEndpointId?: string | null;
|
|
142
|
+
publicEndpointParams?: {
|
|
143
|
+
authorizedHosts?: string[] | null;
|
|
144
|
+
chatCompletionsEndpoint?: { disabled?: boolean | null } | null;
|
|
145
|
+
enabled?: boolean | null;
|
|
146
|
+
mcp?: { disabled?: boolean | null } | null;
|
|
147
|
+
rateLimit?: {
|
|
148
|
+
periodMs?: number | null;
|
|
149
|
+
requests?: number | null;
|
|
150
|
+
technique?: "fixed" | "sliding" | null;
|
|
194
151
|
} | null;
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
152
|
+
searchEndpoint?: { disabled?: boolean | null } | null;
|
|
153
|
+
} | null;
|
|
154
|
+
reranking?: boolean | null;
|
|
155
|
+
rerankingModel?: "@cf/baai/bge-reranker-base" | "" | null;
|
|
156
|
+
rewriteModel?:
|
|
157
|
+
| "@cf/meta/llama-3.3-70b-instruct-fp8-fast"
|
|
158
|
+
| "@cf/meta/llama-3.1-8b-instruct-fast"
|
|
159
|
+
| "@cf/meta/llama-3.1-8b-instruct-fp8"
|
|
160
|
+
| "@cf/meta/llama-4-scout-17b-16e-instruct"
|
|
161
|
+
| "@cf/qwen/qwen3-30b-a3b-fp8"
|
|
162
|
+
| "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"
|
|
163
|
+
| "@cf/moonshotai/kimi-k2-instruct"
|
|
164
|
+
| "anthropic/claude-3-7-sonnet"
|
|
165
|
+
| "anthropic/claude-sonnet-4"
|
|
166
|
+
| "anthropic/claude-opus-4"
|
|
167
|
+
| "anthropic/claude-3-5-haiku"
|
|
168
|
+
| "cerebras/qwen-3-235b-a22b-instruct"
|
|
169
|
+
| "cerebras/qwen-3-235b-a22b-thinking"
|
|
170
|
+
| "cerebras/llama-3.3-70b"
|
|
171
|
+
| "cerebras/llama-4-maverick-17b-128e-instruct"
|
|
172
|
+
| "cerebras/llama-4-scout-17b-16e-instruct"
|
|
173
|
+
| "cerebras/gpt-oss-120b"
|
|
174
|
+
| "google-ai-studio/gemini-2.5-flash"
|
|
175
|
+
| "google-ai-studio/gemini-2.5-pro"
|
|
176
|
+
| "grok/grok-4"
|
|
177
|
+
| "groq/llama-3.3-70b-versatile"
|
|
178
|
+
| "groq/llama-3.1-8b-instant"
|
|
179
|
+
| "openai/gpt-5"
|
|
180
|
+
| "openai/gpt-5-mini"
|
|
181
|
+
| "openai/gpt-5-nano"
|
|
182
|
+
| ""
|
|
183
|
+
| null;
|
|
184
|
+
rewriteQuery?: boolean | null;
|
|
185
|
+
scoreThreshold?: number | null;
|
|
186
|
+
sourceParams?: {
|
|
187
|
+
excludeItems?: string[] | null;
|
|
188
|
+
includeItems?: string[] | null;
|
|
189
|
+
prefix?: string | null;
|
|
190
|
+
r2Jurisdiction?: string | null;
|
|
191
|
+
webCrawler?: {
|
|
192
|
+
parseOptions?: {
|
|
193
|
+
includeHeaders?: Record<string, unknown> | null;
|
|
194
|
+
includeImages?: boolean | null;
|
|
195
|
+
useBrowserRendering?: boolean | null;
|
|
196
|
+
} | null;
|
|
197
|
+
parseType?: "sitemap" | "feed-rss" | null;
|
|
198
|
+
storeOptions?: {
|
|
199
|
+
storageId: string;
|
|
200
|
+
r2Jurisdiction?: string | null;
|
|
201
|
+
storageType?: "r2" | null;
|
|
202
|
+
} | null;
|
|
200
203
|
} | null;
|
|
201
204
|
} | null;
|
|
205
|
+
status?: string | null;
|
|
206
|
+
summarization?: boolean | null;
|
|
207
|
+
summarizationModel?:
|
|
208
|
+
| "@cf/meta/llama-3.3-70b-instruct-fp8-fast"
|
|
209
|
+
| "@cf/meta/llama-3.1-8b-instruct-fast"
|
|
210
|
+
| "@cf/meta/llama-3.1-8b-instruct-fp8"
|
|
211
|
+
| "@cf/meta/llama-4-scout-17b-16e-instruct"
|
|
212
|
+
| "@cf/qwen/qwen3-30b-a3b-fp8"
|
|
213
|
+
| "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"
|
|
214
|
+
| "@cf/moonshotai/kimi-k2-instruct"
|
|
215
|
+
| "anthropic/claude-3-7-sonnet"
|
|
216
|
+
| "anthropic/claude-sonnet-4"
|
|
217
|
+
| "anthropic/claude-opus-4"
|
|
218
|
+
| "anthropic/claude-3-5-haiku"
|
|
219
|
+
| "cerebras/qwen-3-235b-a22b-instruct"
|
|
220
|
+
| "cerebras/qwen-3-235b-a22b-thinking"
|
|
221
|
+
| "cerebras/llama-3.3-70b"
|
|
222
|
+
| "cerebras/llama-4-maverick-17b-128e-instruct"
|
|
223
|
+
| "cerebras/llama-4-scout-17b-16e-instruct"
|
|
224
|
+
| "cerebras/gpt-oss-120b"
|
|
225
|
+
| "google-ai-studio/gemini-2.5-flash"
|
|
226
|
+
| "google-ai-studio/gemini-2.5-pro"
|
|
227
|
+
| "grok/grok-4"
|
|
228
|
+
| "groq/llama-3.3-70b-versatile"
|
|
229
|
+
| "groq/llama-3.1-8b-instant"
|
|
230
|
+
| "openai/gpt-5"
|
|
231
|
+
| "openai/gpt-5-mini"
|
|
232
|
+
| "openai/gpt-5-nano"
|
|
233
|
+
| ""
|
|
234
|
+
| null;
|
|
235
|
+
systemPromptAiSearch?: string | null;
|
|
236
|
+
systemPromptIndexSummarization?: string | null;
|
|
237
|
+
systemPromptRewriteQuery?: string | null;
|
|
238
|
+
vectorizeActiveNamespace?: string | null;
|
|
239
|
+
}[];
|
|
240
|
+
resultInfo?: {
|
|
241
|
+
count?: number | null;
|
|
242
|
+
page?: number | null;
|
|
243
|
+
perPage?: number | null;
|
|
244
|
+
totalCount?: number | null;
|
|
202
245
|
} | null;
|
|
203
|
-
|
|
204
|
-
summarization?: boolean | null;
|
|
205
|
-
summarizationModel?:
|
|
206
|
-
| "@cf/meta/llama-3.3-70b-instruct-fp8-fast"
|
|
207
|
-
| "@cf/meta/llama-3.1-8b-instruct-fast"
|
|
208
|
-
| "@cf/meta/llama-3.1-8b-instruct-fp8"
|
|
209
|
-
| "@cf/meta/llama-4-scout-17b-16e-instruct"
|
|
210
|
-
| "@cf/qwen/qwen3-30b-a3b-fp8"
|
|
211
|
-
| "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"
|
|
212
|
-
| "@cf/moonshotai/kimi-k2-instruct"
|
|
213
|
-
| "anthropic/claude-3-7-sonnet"
|
|
214
|
-
| "anthropic/claude-sonnet-4"
|
|
215
|
-
| "anthropic/claude-opus-4"
|
|
216
|
-
| "anthropic/claude-3-5-haiku"
|
|
217
|
-
| "cerebras/qwen-3-235b-a22b-instruct"
|
|
218
|
-
| "cerebras/qwen-3-235b-a22b-thinking"
|
|
219
|
-
| "cerebras/llama-3.3-70b"
|
|
220
|
-
| "cerebras/llama-4-maverick-17b-128e-instruct"
|
|
221
|
-
| "cerebras/llama-4-scout-17b-16e-instruct"
|
|
222
|
-
| "cerebras/gpt-oss-120b"
|
|
223
|
-
| "google-ai-studio/gemini-2.5-flash"
|
|
224
|
-
| "google-ai-studio/gemini-2.5-pro"
|
|
225
|
-
| "grok/grok-4"
|
|
226
|
-
| "groq/llama-3.3-70b-versatile"
|
|
227
|
-
| "groq/llama-3.1-8b-instant"
|
|
228
|
-
| "openai/gpt-5"
|
|
229
|
-
| "openai/gpt-5-mini"
|
|
230
|
-
| "openai/gpt-5-nano"
|
|
231
|
-
| ""
|
|
232
|
-
| null;
|
|
233
|
-
systemPromptAiSearch?: string | null;
|
|
234
|
-
systemPromptIndexSummarization?: string | null;
|
|
235
|
-
systemPromptRewriteQuery?: string | null;
|
|
236
|
-
vectorizeActiveNamespace?: string | null;
|
|
237
|
-
}[];
|
|
246
|
+
}
|
|
238
247
|
|
|
239
|
-
export const ListInstancesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
240
|
-
Schema.
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
Schema.
|
|
254
|
-
Schema.
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
248
|
+
export const ListInstancesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
249
|
+
result: Schema.Array(
|
|
250
|
+
Schema.Struct({
|
|
251
|
+
id: Schema.String,
|
|
252
|
+
accountId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
253
|
+
accountTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
254
|
+
createdAt: Schema.String,
|
|
255
|
+
internalId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
256
|
+
modifiedAt: Schema.String,
|
|
257
|
+
source: Schema.String,
|
|
258
|
+
tokenId: Schema.String,
|
|
259
|
+
type: Schema.Literals(["r2", "web-crawler"]),
|
|
260
|
+
vectorizeName: Schema.String,
|
|
261
|
+
aiGatewayId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
262
|
+
aiSearchModel: Schema.optional(
|
|
263
|
+
Schema.Union([
|
|
264
|
+
Schema.Literals([
|
|
265
|
+
"@cf/meta/llama-3.3-70b-instruct-fp8-fast",
|
|
266
|
+
"@cf/meta/llama-3.1-8b-instruct-fast",
|
|
267
|
+
"@cf/meta/llama-3.1-8b-instruct-fp8",
|
|
268
|
+
"@cf/meta/llama-4-scout-17b-16e-instruct",
|
|
269
|
+
"@cf/qwen/qwen3-30b-a3b-fp8",
|
|
270
|
+
"@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
|
|
271
|
+
"@cf/moonshotai/kimi-k2-instruct",
|
|
272
|
+
"anthropic/claude-3-7-sonnet",
|
|
273
|
+
"anthropic/claude-sonnet-4",
|
|
274
|
+
"anthropic/claude-opus-4",
|
|
275
|
+
"anthropic/claude-3-5-haiku",
|
|
276
|
+
"cerebras/qwen-3-235b-a22b-instruct",
|
|
277
|
+
"cerebras/qwen-3-235b-a22b-thinking",
|
|
278
|
+
"cerebras/llama-3.3-70b",
|
|
279
|
+
"cerebras/llama-4-maverick-17b-128e-instruct",
|
|
280
|
+
"cerebras/llama-4-scout-17b-16e-instruct",
|
|
281
|
+
"cerebras/gpt-oss-120b",
|
|
282
|
+
"google-ai-studio/gemini-2.5-flash",
|
|
283
|
+
"google-ai-studio/gemini-2.5-pro",
|
|
284
|
+
"grok/grok-4",
|
|
285
|
+
"groq/llama-3.3-70b-versatile",
|
|
286
|
+
"groq/llama-3.1-8b-instant",
|
|
287
|
+
"openai/gpt-5",
|
|
288
|
+
"openai/gpt-5-mini",
|
|
289
|
+
"openai/gpt-5-nano",
|
|
290
|
+
"",
|
|
291
|
+
]),
|
|
292
|
+
Schema.Null,
|
|
281
293
|
]),
|
|
282
|
-
|
|
283
|
-
]),
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
Schema.Literal("anything_goes"),
|
|
292
|
-
Schema.Null,
|
|
293
|
-
]),
|
|
294
|
-
),
|
|
295
|
-
chunk: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
296
|
-
chunkOverlap: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
297
|
-
chunkSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
298
|
-
createdBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
299
|
-
embeddingModel: Schema.optional(
|
|
300
|
-
Schema.Union([
|
|
301
|
-
Schema.Literals([
|
|
302
|
-
"@cf/baai/bge-m3",
|
|
303
|
-
"@cf/baai/bge-large-en-v1.5",
|
|
304
|
-
"@cf/google/embeddinggemma-300m",
|
|
305
|
-
"@cf/qwen/qwen3-embedding-0.6b",
|
|
306
|
-
"google-ai-studio/gemini-embedding-001",
|
|
307
|
-
"openai/text-embedding-3-small",
|
|
308
|
-
"openai/text-embedding-3-large",
|
|
309
|
-
"",
|
|
294
|
+
),
|
|
295
|
+
cache: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
296
|
+
cacheThreshold: Schema.optional(
|
|
297
|
+
Schema.Union([
|
|
298
|
+
Schema.Literal("super_strict_match"),
|
|
299
|
+
Schema.Literal("close_enough"),
|
|
300
|
+
Schema.Literal("flexible_friend"),
|
|
301
|
+
Schema.Literal("anything_goes"),
|
|
302
|
+
Schema.Null,
|
|
310
303
|
]),
|
|
311
|
-
|
|
312
|
-
]),
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
),
|
|
330
|
-
}).pipe(
|
|
331
|
-
Schema.encodeKeys({
|
|
332
|
-
createdFromAisearchWizard: "created_from_aisearch_wizard",
|
|
333
|
-
workerDomain: "worker_domain",
|
|
334
|
-
}),
|
|
335
|
-
),
|
|
336
|
-
Schema.Null,
|
|
337
|
-
]),
|
|
338
|
-
),
|
|
339
|
-
modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
340
|
-
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
341
|
-
publicEndpointId: Schema.optional(
|
|
342
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
343
|
-
),
|
|
344
|
-
publicEndpointParams: Schema.optional(
|
|
345
|
-
Schema.Union([
|
|
346
|
-
Schema.Struct({
|
|
347
|
-
authorizedHosts: Schema.optional(
|
|
348
|
-
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
349
|
-
),
|
|
350
|
-
chatCompletionsEndpoint: Schema.optional(
|
|
351
|
-
Schema.Union([
|
|
352
|
-
Schema.Struct({
|
|
353
|
-
disabled: Schema.optional(
|
|
354
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
355
|
-
),
|
|
356
|
-
}),
|
|
357
|
-
Schema.Null,
|
|
358
|
-
]),
|
|
359
|
-
),
|
|
360
|
-
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
361
|
-
mcp: Schema.optional(
|
|
362
|
-
Schema.Union([
|
|
363
|
-
Schema.Struct({
|
|
364
|
-
disabled: Schema.optional(
|
|
365
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
366
|
-
),
|
|
367
|
-
}),
|
|
368
|
-
Schema.Null,
|
|
369
|
-
]),
|
|
370
|
-
),
|
|
371
|
-
rateLimit: Schema.optional(
|
|
372
|
-
Schema.Union([
|
|
373
|
-
Schema.Struct({
|
|
374
|
-
periodMs: Schema.optional(
|
|
375
|
-
Schema.Union([Schema.Number, Schema.Null]),
|
|
376
|
-
),
|
|
377
|
-
requests: Schema.optional(
|
|
378
|
-
Schema.Union([Schema.Number, Schema.Null]),
|
|
379
|
-
),
|
|
380
|
-
technique: Schema.optional(
|
|
381
|
-
Schema.Union([
|
|
382
|
-
Schema.Literals(["fixed", "sliding"]),
|
|
383
|
-
Schema.Null,
|
|
384
|
-
]),
|
|
385
|
-
),
|
|
386
|
-
}).pipe(
|
|
387
|
-
Schema.encodeKeys({
|
|
388
|
-
periodMs: "period_ms",
|
|
389
|
-
requests: "requests",
|
|
390
|
-
technique: "technique",
|
|
391
|
-
}),
|
|
392
|
-
),
|
|
393
|
-
Schema.Null,
|
|
394
|
-
]),
|
|
395
|
-
),
|
|
396
|
-
searchEndpoint: Schema.optional(
|
|
397
|
-
Schema.Union([
|
|
398
|
-
Schema.Struct({
|
|
399
|
-
disabled: Schema.optional(
|
|
400
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
401
|
-
),
|
|
402
|
-
}),
|
|
403
|
-
Schema.Null,
|
|
404
|
-
]),
|
|
405
|
-
),
|
|
406
|
-
}).pipe(
|
|
407
|
-
Schema.encodeKeys({
|
|
408
|
-
authorizedHosts: "authorized_hosts",
|
|
409
|
-
chatCompletionsEndpoint: "chat_completions_endpoint",
|
|
410
|
-
enabled: "enabled",
|
|
411
|
-
mcp: "mcp",
|
|
412
|
-
rateLimit: "rate_limit",
|
|
413
|
-
searchEndpoint: "search_endpoint",
|
|
414
|
-
}),
|
|
415
|
-
),
|
|
416
|
-
Schema.Null,
|
|
417
|
-
]),
|
|
418
|
-
),
|
|
419
|
-
reranking: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
420
|
-
rerankingModel: Schema.optional(
|
|
421
|
-
Schema.Union([
|
|
422
|
-
Schema.Literals(["@cf/baai/bge-reranker-base", ""]),
|
|
423
|
-
Schema.Null,
|
|
424
|
-
]),
|
|
425
|
-
),
|
|
426
|
-
rewriteModel: Schema.optional(
|
|
427
|
-
Schema.Union([
|
|
428
|
-
Schema.Literals([
|
|
429
|
-
"@cf/meta/llama-3.3-70b-instruct-fp8-fast",
|
|
430
|
-
"@cf/meta/llama-3.1-8b-instruct-fast",
|
|
431
|
-
"@cf/meta/llama-3.1-8b-instruct-fp8",
|
|
432
|
-
"@cf/meta/llama-4-scout-17b-16e-instruct",
|
|
433
|
-
"@cf/qwen/qwen3-30b-a3b-fp8",
|
|
434
|
-
"@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
|
|
435
|
-
"@cf/moonshotai/kimi-k2-instruct",
|
|
436
|
-
"anthropic/claude-3-7-sonnet",
|
|
437
|
-
"anthropic/claude-sonnet-4",
|
|
438
|
-
"anthropic/claude-opus-4",
|
|
439
|
-
"anthropic/claude-3-5-haiku",
|
|
440
|
-
"cerebras/qwen-3-235b-a22b-instruct",
|
|
441
|
-
"cerebras/qwen-3-235b-a22b-thinking",
|
|
442
|
-
"cerebras/llama-3.3-70b",
|
|
443
|
-
"cerebras/llama-4-maverick-17b-128e-instruct",
|
|
444
|
-
"cerebras/llama-4-scout-17b-16e-instruct",
|
|
445
|
-
"cerebras/gpt-oss-120b",
|
|
446
|
-
"google-ai-studio/gemini-2.5-flash",
|
|
447
|
-
"google-ai-studio/gemini-2.5-pro",
|
|
448
|
-
"grok/grok-4",
|
|
449
|
-
"groq/llama-3.3-70b-versatile",
|
|
450
|
-
"groq/llama-3.1-8b-instant",
|
|
451
|
-
"openai/gpt-5",
|
|
452
|
-
"openai/gpt-5-mini",
|
|
453
|
-
"openai/gpt-5-nano",
|
|
454
|
-
"",
|
|
304
|
+
),
|
|
305
|
+
chunk: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
306
|
+
chunkOverlap: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
307
|
+
chunkSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
308
|
+
createdBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
309
|
+
embeddingModel: Schema.optional(
|
|
310
|
+
Schema.Union([
|
|
311
|
+
Schema.Literals([
|
|
312
|
+
"@cf/baai/bge-m3",
|
|
313
|
+
"@cf/baai/bge-large-en-v1.5",
|
|
314
|
+
"@cf/google/embeddinggemma-300m",
|
|
315
|
+
"@cf/qwen/qwen3-embedding-0.6b",
|
|
316
|
+
"google-ai-studio/gemini-embedding-001",
|
|
317
|
+
"openai/text-embedding-3-small",
|
|
318
|
+
"openai/text-embedding-3-large",
|
|
319
|
+
"",
|
|
320
|
+
]),
|
|
321
|
+
Schema.Null,
|
|
455
322
|
]),
|
|
456
|
-
|
|
457
|
-
]),
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
323
|
+
),
|
|
324
|
+
enable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
325
|
+
engineVersion: Schema.optional(
|
|
326
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
327
|
+
),
|
|
328
|
+
hybridSearchEnabled: Schema.optional(
|
|
329
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
330
|
+
),
|
|
331
|
+
lastActivity: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
332
|
+
maxNumResults: Schema.optional(
|
|
333
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
334
|
+
),
|
|
335
|
+
metadata: Schema.optional(
|
|
336
|
+
Schema.Union([
|
|
337
|
+
Schema.Struct({
|
|
338
|
+
createdFromAisearchWizard: Schema.optional(
|
|
339
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
340
|
+
),
|
|
341
|
+
workerDomain: Schema.optional(
|
|
342
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
343
|
+
),
|
|
344
|
+
}).pipe(
|
|
345
|
+
Schema.encodeKeys({
|
|
346
|
+
createdFromAisearchWizard: "created_from_aisearch_wizard",
|
|
347
|
+
workerDomain: "worker_domain",
|
|
348
|
+
}),
|
|
473
349
|
),
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
}),
|
|
495
|
-
),
|
|
496
|
-
Schema.Null,
|
|
497
|
-
]),
|
|
498
|
-
),
|
|
499
|
-
parseType: Schema.optional(
|
|
500
|
-
Schema.Union([
|
|
501
|
-
Schema.Literals(["sitemap", "feed-rss"]),
|
|
502
|
-
Schema.Null,
|
|
503
|
-
]),
|
|
504
|
-
),
|
|
505
|
-
storeOptions: Schema.optional(
|
|
506
|
-
Schema.Union([
|
|
507
|
-
Schema.Struct({
|
|
508
|
-
storageId: Schema.String,
|
|
509
|
-
r2Jurisdiction: Schema.optional(
|
|
510
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
511
|
-
),
|
|
512
|
-
storageType: Schema.optional(
|
|
513
|
-
Schema.Union([Schema.Literal("r2"), Schema.Null]),
|
|
514
|
-
),
|
|
515
|
-
}).pipe(
|
|
516
|
-
Schema.encodeKeys({
|
|
517
|
-
storageId: "storage_id",
|
|
518
|
-
r2Jurisdiction: "r2_jurisdiction",
|
|
519
|
-
storageType: "storage_type",
|
|
520
|
-
}),
|
|
521
|
-
),
|
|
522
|
-
Schema.Null,
|
|
523
|
-
]),
|
|
524
|
-
),
|
|
525
|
-
}).pipe(
|
|
526
|
-
Schema.encodeKeys({
|
|
527
|
-
parseOptions: "parse_options",
|
|
528
|
-
parseType: "parse_type",
|
|
529
|
-
storeOptions: "store_options",
|
|
350
|
+
Schema.Null,
|
|
351
|
+
]),
|
|
352
|
+
),
|
|
353
|
+
modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
354
|
+
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
355
|
+
publicEndpointId: Schema.optional(
|
|
356
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
357
|
+
),
|
|
358
|
+
publicEndpointParams: Schema.optional(
|
|
359
|
+
Schema.Union([
|
|
360
|
+
Schema.Struct({
|
|
361
|
+
authorizedHosts: Schema.optional(
|
|
362
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
363
|
+
),
|
|
364
|
+
chatCompletionsEndpoint: Schema.optional(
|
|
365
|
+
Schema.Union([
|
|
366
|
+
Schema.Struct({
|
|
367
|
+
disabled: Schema.optional(
|
|
368
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
369
|
+
),
|
|
530
370
|
}),
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
371
|
+
Schema.Null,
|
|
372
|
+
]),
|
|
373
|
+
),
|
|
374
|
+
enabled: Schema.optional(
|
|
375
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
376
|
+
),
|
|
377
|
+
mcp: Schema.optional(
|
|
378
|
+
Schema.Union([
|
|
379
|
+
Schema.Struct({
|
|
380
|
+
disabled: Schema.optional(
|
|
381
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
382
|
+
),
|
|
383
|
+
}),
|
|
384
|
+
Schema.Null,
|
|
385
|
+
]),
|
|
386
|
+
),
|
|
387
|
+
rateLimit: Schema.optional(
|
|
388
|
+
Schema.Union([
|
|
389
|
+
Schema.Struct({
|
|
390
|
+
periodMs: Schema.optional(
|
|
391
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
392
|
+
),
|
|
393
|
+
requests: Schema.optional(
|
|
394
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
395
|
+
),
|
|
396
|
+
technique: Schema.optional(
|
|
397
|
+
Schema.Union([
|
|
398
|
+
Schema.Literals(["fixed", "sliding"]),
|
|
399
|
+
Schema.Null,
|
|
400
|
+
]),
|
|
401
|
+
),
|
|
402
|
+
}).pipe(
|
|
403
|
+
Schema.encodeKeys({
|
|
404
|
+
periodMs: "period_ms",
|
|
405
|
+
requests: "requests",
|
|
406
|
+
technique: "technique",
|
|
407
|
+
}),
|
|
408
|
+
),
|
|
409
|
+
Schema.Null,
|
|
410
|
+
]),
|
|
411
|
+
),
|
|
412
|
+
searchEndpoint: Schema.optional(
|
|
413
|
+
Schema.Union([
|
|
414
|
+
Schema.Struct({
|
|
415
|
+
disabled: Schema.optional(
|
|
416
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
417
|
+
),
|
|
418
|
+
}),
|
|
419
|
+
Schema.Null,
|
|
420
|
+
]),
|
|
421
|
+
),
|
|
422
|
+
}).pipe(
|
|
423
|
+
Schema.encodeKeys({
|
|
424
|
+
authorizedHosts: "authorized_hosts",
|
|
425
|
+
chatCompletionsEndpoint: "chat_completions_endpoint",
|
|
426
|
+
enabled: "enabled",
|
|
427
|
+
mcp: "mcp",
|
|
428
|
+
rateLimit: "rate_limit",
|
|
429
|
+
searchEndpoint: "search_endpoint",
|
|
430
|
+
}),
|
|
431
|
+
),
|
|
432
|
+
Schema.Null,
|
|
578
433
|
]),
|
|
579
|
-
|
|
580
|
-
]),
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
434
|
+
),
|
|
435
|
+
reranking: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
436
|
+
rerankingModel: Schema.optional(
|
|
437
|
+
Schema.Union([
|
|
438
|
+
Schema.Literals(["@cf/baai/bge-reranker-base", ""]),
|
|
439
|
+
Schema.Null,
|
|
440
|
+
]),
|
|
441
|
+
),
|
|
442
|
+
rewriteModel: Schema.optional(
|
|
443
|
+
Schema.Union([
|
|
444
|
+
Schema.Literals([
|
|
445
|
+
"@cf/meta/llama-3.3-70b-instruct-fp8-fast",
|
|
446
|
+
"@cf/meta/llama-3.1-8b-instruct-fast",
|
|
447
|
+
"@cf/meta/llama-3.1-8b-instruct-fp8",
|
|
448
|
+
"@cf/meta/llama-4-scout-17b-16e-instruct",
|
|
449
|
+
"@cf/qwen/qwen3-30b-a3b-fp8",
|
|
450
|
+
"@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
|
|
451
|
+
"@cf/moonshotai/kimi-k2-instruct",
|
|
452
|
+
"anthropic/claude-3-7-sonnet",
|
|
453
|
+
"anthropic/claude-sonnet-4",
|
|
454
|
+
"anthropic/claude-opus-4",
|
|
455
|
+
"anthropic/claude-3-5-haiku",
|
|
456
|
+
"cerebras/qwen-3-235b-a22b-instruct",
|
|
457
|
+
"cerebras/qwen-3-235b-a22b-thinking",
|
|
458
|
+
"cerebras/llama-3.3-70b",
|
|
459
|
+
"cerebras/llama-4-maverick-17b-128e-instruct",
|
|
460
|
+
"cerebras/llama-4-scout-17b-16e-instruct",
|
|
461
|
+
"cerebras/gpt-oss-120b",
|
|
462
|
+
"google-ai-studio/gemini-2.5-flash",
|
|
463
|
+
"google-ai-studio/gemini-2.5-pro",
|
|
464
|
+
"grok/grok-4",
|
|
465
|
+
"groq/llama-3.3-70b-versatile",
|
|
466
|
+
"groq/llama-3.1-8b-instant",
|
|
467
|
+
"openai/gpt-5",
|
|
468
|
+
"openai/gpt-5-mini",
|
|
469
|
+
"openai/gpt-5-nano",
|
|
470
|
+
"",
|
|
471
|
+
]),
|
|
472
|
+
Schema.Null,
|
|
473
|
+
]),
|
|
474
|
+
),
|
|
475
|
+
rewriteQuery: Schema.optional(
|
|
476
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
477
|
+
),
|
|
478
|
+
scoreThreshold: Schema.optional(
|
|
479
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
480
|
+
),
|
|
481
|
+
sourceParams: Schema.optional(
|
|
482
|
+
Schema.Union([
|
|
483
|
+
Schema.Struct({
|
|
484
|
+
excludeItems: Schema.optional(
|
|
485
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
486
|
+
),
|
|
487
|
+
includeItems: Schema.optional(
|
|
488
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
489
|
+
),
|
|
490
|
+
prefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
491
|
+
r2Jurisdiction: Schema.optional(
|
|
492
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
493
|
+
),
|
|
494
|
+
webCrawler: Schema.optional(
|
|
495
|
+
Schema.Union([
|
|
496
|
+
Schema.Struct({
|
|
497
|
+
parseOptions: Schema.optional(
|
|
498
|
+
Schema.Union([
|
|
499
|
+
Schema.Struct({
|
|
500
|
+
includeHeaders: Schema.optional(
|
|
501
|
+
Schema.Union([Schema.Struct({}), Schema.Null]),
|
|
502
|
+
),
|
|
503
|
+
includeImages: Schema.optional(
|
|
504
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
505
|
+
),
|
|
506
|
+
useBrowserRendering: Schema.optional(
|
|
507
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
508
|
+
),
|
|
509
|
+
}).pipe(
|
|
510
|
+
Schema.encodeKeys({
|
|
511
|
+
includeHeaders: "include_headers",
|
|
512
|
+
includeImages: "include_images",
|
|
513
|
+
useBrowserRendering: "use_browser_rendering",
|
|
514
|
+
}),
|
|
515
|
+
),
|
|
516
|
+
Schema.Null,
|
|
517
|
+
]),
|
|
518
|
+
),
|
|
519
|
+
parseType: Schema.optional(
|
|
520
|
+
Schema.Union([
|
|
521
|
+
Schema.Literals(["sitemap", "feed-rss"]),
|
|
522
|
+
Schema.Null,
|
|
523
|
+
]),
|
|
524
|
+
),
|
|
525
|
+
storeOptions: Schema.optional(
|
|
526
|
+
Schema.Union([
|
|
527
|
+
Schema.Struct({
|
|
528
|
+
storageId: Schema.String,
|
|
529
|
+
r2Jurisdiction: Schema.optional(
|
|
530
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
531
|
+
),
|
|
532
|
+
storageType: Schema.optional(
|
|
533
|
+
Schema.Union([Schema.Literal("r2"), Schema.Null]),
|
|
534
|
+
),
|
|
535
|
+
}).pipe(
|
|
536
|
+
Schema.encodeKeys({
|
|
537
|
+
storageId: "storage_id",
|
|
538
|
+
r2Jurisdiction: "r2_jurisdiction",
|
|
539
|
+
storageType: "storage_type",
|
|
540
|
+
}),
|
|
541
|
+
),
|
|
542
|
+
Schema.Null,
|
|
543
|
+
]),
|
|
544
|
+
),
|
|
545
|
+
}).pipe(
|
|
546
|
+
Schema.encodeKeys({
|
|
547
|
+
parseOptions: "parse_options",
|
|
548
|
+
parseType: "parse_type",
|
|
549
|
+
storeOptions: "store_options",
|
|
550
|
+
}),
|
|
551
|
+
),
|
|
552
|
+
Schema.Null,
|
|
553
|
+
]),
|
|
554
|
+
),
|
|
555
|
+
}).pipe(
|
|
556
|
+
Schema.encodeKeys({
|
|
557
|
+
excludeItems: "exclude_items",
|
|
558
|
+
includeItems: "include_items",
|
|
559
|
+
prefix: "prefix",
|
|
560
|
+
r2Jurisdiction: "r2_jurisdiction",
|
|
561
|
+
webCrawler: "web_crawler",
|
|
562
|
+
}),
|
|
563
|
+
),
|
|
564
|
+
Schema.Null,
|
|
565
|
+
]),
|
|
566
|
+
),
|
|
567
|
+
status: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
568
|
+
summarization: Schema.optional(
|
|
569
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
570
|
+
),
|
|
571
|
+
summarizationModel: Schema.optional(
|
|
572
|
+
Schema.Union([
|
|
573
|
+
Schema.Literals([
|
|
574
|
+
"@cf/meta/llama-3.3-70b-instruct-fp8-fast",
|
|
575
|
+
"@cf/meta/llama-3.1-8b-instruct-fast",
|
|
576
|
+
"@cf/meta/llama-3.1-8b-instruct-fp8",
|
|
577
|
+
"@cf/meta/llama-4-scout-17b-16e-instruct",
|
|
578
|
+
"@cf/qwen/qwen3-30b-a3b-fp8",
|
|
579
|
+
"@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
|
|
580
|
+
"@cf/moonshotai/kimi-k2-instruct",
|
|
581
|
+
"anthropic/claude-3-7-sonnet",
|
|
582
|
+
"anthropic/claude-sonnet-4",
|
|
583
|
+
"anthropic/claude-opus-4",
|
|
584
|
+
"anthropic/claude-3-5-haiku",
|
|
585
|
+
"cerebras/qwen-3-235b-a22b-instruct",
|
|
586
|
+
"cerebras/qwen-3-235b-a22b-thinking",
|
|
587
|
+
"cerebras/llama-3.3-70b",
|
|
588
|
+
"cerebras/llama-4-maverick-17b-128e-instruct",
|
|
589
|
+
"cerebras/llama-4-scout-17b-16e-instruct",
|
|
590
|
+
"cerebras/gpt-oss-120b",
|
|
591
|
+
"google-ai-studio/gemini-2.5-flash",
|
|
592
|
+
"google-ai-studio/gemini-2.5-pro",
|
|
593
|
+
"grok/grok-4",
|
|
594
|
+
"groq/llama-3.3-70b-versatile",
|
|
595
|
+
"groq/llama-3.1-8b-instant",
|
|
596
|
+
"openai/gpt-5",
|
|
597
|
+
"openai/gpt-5-mini",
|
|
598
|
+
"openai/gpt-5-nano",
|
|
599
|
+
"",
|
|
600
|
+
]),
|
|
601
|
+
Schema.Null,
|
|
602
|
+
]),
|
|
603
|
+
),
|
|
604
|
+
systemPromptAiSearch: Schema.optional(
|
|
605
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
606
|
+
),
|
|
607
|
+
systemPromptIndexSummarization: Schema.optional(
|
|
608
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
609
|
+
),
|
|
610
|
+
systemPromptRewriteQuery: Schema.optional(
|
|
611
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
612
|
+
),
|
|
613
|
+
vectorizeActiveNamespace: Schema.optional(
|
|
614
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
615
|
+
),
|
|
616
|
+
}).pipe(
|
|
617
|
+
Schema.encodeKeys({
|
|
618
|
+
id: "id",
|
|
619
|
+
accountId: "account_id",
|
|
620
|
+
accountTag: "account_tag",
|
|
621
|
+
createdAt: "created_at",
|
|
622
|
+
internalId: "internal_id",
|
|
623
|
+
modifiedAt: "modified_at",
|
|
624
|
+
source: "source",
|
|
625
|
+
tokenId: "token_id",
|
|
626
|
+
type: "type",
|
|
627
|
+
vectorizeName: "vectorize_name",
|
|
628
|
+
aiGatewayId: "ai_gateway_id",
|
|
629
|
+
aiSearchModel: "ai_search_model",
|
|
630
|
+
cache: "cache",
|
|
631
|
+
cacheThreshold: "cache_threshold",
|
|
632
|
+
chunk: "chunk",
|
|
633
|
+
chunkOverlap: "chunk_overlap",
|
|
634
|
+
chunkSize: "chunk_size",
|
|
635
|
+
createdBy: "created_by",
|
|
636
|
+
embeddingModel: "embedding_model",
|
|
637
|
+
enable: "enable",
|
|
638
|
+
engineVersion: "engine_version",
|
|
639
|
+
hybridSearchEnabled: "hybrid_search_enabled",
|
|
640
|
+
lastActivity: "last_activity",
|
|
641
|
+
maxNumResults: "max_num_results",
|
|
642
|
+
metadata: "metadata",
|
|
643
|
+
modifiedBy: "modified_by",
|
|
644
|
+
paused: "paused",
|
|
645
|
+
publicEndpointId: "public_endpoint_id",
|
|
646
|
+
publicEndpointParams: "public_endpoint_params",
|
|
647
|
+
reranking: "reranking",
|
|
648
|
+
rerankingModel: "reranking_model",
|
|
649
|
+
rewriteModel: "rewrite_model",
|
|
650
|
+
rewriteQuery: "rewrite_query",
|
|
651
|
+
scoreThreshold: "score_threshold",
|
|
652
|
+
sourceParams: "source_params",
|
|
653
|
+
status: "status",
|
|
654
|
+
summarization: "summarization",
|
|
655
|
+
summarizationModel: "summarization_model",
|
|
656
|
+
systemPromptAiSearch: "system_prompt_ai_search",
|
|
657
|
+
systemPromptIndexSummarization: "system_prompt_index_summarization",
|
|
658
|
+
systemPromptRewriteQuery: "system_prompt_rewrite_query",
|
|
659
|
+
vectorizeActiveNamespace: "vectorize_active_namespace",
|
|
660
|
+
}),
|
|
593
661
|
),
|
|
594
|
-
}).pipe(
|
|
595
|
-
Schema.encodeKeys({
|
|
596
|
-
id: "id",
|
|
597
|
-
accountId: "account_id",
|
|
598
|
-
accountTag: "account_tag",
|
|
599
|
-
createdAt: "created_at",
|
|
600
|
-
internalId: "internal_id",
|
|
601
|
-
modifiedAt: "modified_at",
|
|
602
|
-
source: "source",
|
|
603
|
-
tokenId: "token_id",
|
|
604
|
-
type: "type",
|
|
605
|
-
vectorizeName: "vectorize_name",
|
|
606
|
-
aiGatewayId: "ai_gateway_id",
|
|
607
|
-
aiSearchModel: "ai_search_model",
|
|
608
|
-
cache: "cache",
|
|
609
|
-
cacheThreshold: "cache_threshold",
|
|
610
|
-
chunk: "chunk",
|
|
611
|
-
chunkOverlap: "chunk_overlap",
|
|
612
|
-
chunkSize: "chunk_size",
|
|
613
|
-
createdBy: "created_by",
|
|
614
|
-
embeddingModel: "embedding_model",
|
|
615
|
-
enable: "enable",
|
|
616
|
-
engineVersion: "engine_version",
|
|
617
|
-
hybridSearchEnabled: "hybrid_search_enabled",
|
|
618
|
-
lastActivity: "last_activity",
|
|
619
|
-
maxNumResults: "max_num_results",
|
|
620
|
-
metadata: "metadata",
|
|
621
|
-
modifiedBy: "modified_by",
|
|
622
|
-
paused: "paused",
|
|
623
|
-
publicEndpointId: "public_endpoint_id",
|
|
624
|
-
publicEndpointParams: "public_endpoint_params",
|
|
625
|
-
reranking: "reranking",
|
|
626
|
-
rerankingModel: "reranking_model",
|
|
627
|
-
rewriteModel: "rewrite_model",
|
|
628
|
-
rewriteQuery: "rewrite_query",
|
|
629
|
-
scoreThreshold: "score_threshold",
|
|
630
|
-
sourceParams: "source_params",
|
|
631
|
-
status: "status",
|
|
632
|
-
summarization: "summarization",
|
|
633
|
-
summarizationModel: "summarization_model",
|
|
634
|
-
systemPromptAiSearch: "system_prompt_ai_search",
|
|
635
|
-
systemPromptIndexSummarization: "system_prompt_index_summarization",
|
|
636
|
-
systemPromptRewriteQuery: "system_prompt_rewrite_query",
|
|
637
|
-
vectorizeActiveNamespace: "vectorize_active_namespace",
|
|
638
|
-
}),
|
|
639
662
|
),
|
|
663
|
+
resultInfo: Schema.optional(
|
|
664
|
+
Schema.Union([
|
|
665
|
+
Schema.Struct({
|
|
666
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
667
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
668
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
669
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
670
|
+
}).pipe(
|
|
671
|
+
Schema.encodeKeys({
|
|
672
|
+
count: "count",
|
|
673
|
+
page: "page",
|
|
674
|
+
perPage: "per_page",
|
|
675
|
+
totalCount: "total_count",
|
|
676
|
+
}),
|
|
677
|
+
),
|
|
678
|
+
Schema.Null,
|
|
679
|
+
]),
|
|
680
|
+
),
|
|
681
|
+
}).pipe(
|
|
682
|
+
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
640
683
|
) as unknown as Schema.Schema<ListInstancesResponse>;
|
|
641
684
|
|
|
642
685
|
export type ListInstancesError = DefaultErrors | InvalidRoute;
|
|
643
686
|
|
|
644
|
-
export const listInstances: API.
|
|
687
|
+
export const listInstances: API.PaginatedOperationMethod<
|
|
645
688
|
ListInstancesRequest,
|
|
646
689
|
ListInstancesResponse,
|
|
647
690
|
ListInstancesError,
|
|
648
691
|
Credentials | HttpClient.HttpClient
|
|
649
|
-
>
|
|
692
|
+
> & {
|
|
693
|
+
pages: (
|
|
694
|
+
input: ListInstancesRequest,
|
|
695
|
+
) => stream.Stream<
|
|
696
|
+
ListInstancesResponse,
|
|
697
|
+
ListInstancesError,
|
|
698
|
+
Credentials | HttpClient.HttpClient
|
|
699
|
+
>;
|
|
700
|
+
items: (input: ListInstancesRequest) => stream.Stream<
|
|
701
|
+
{
|
|
702
|
+
id: string;
|
|
703
|
+
accountId: string;
|
|
704
|
+
accountTag: string;
|
|
705
|
+
createdAt: string;
|
|
706
|
+
internalId: string;
|
|
707
|
+
modifiedAt: string;
|
|
708
|
+
source: string;
|
|
709
|
+
tokenId: string;
|
|
710
|
+
type: "r2" | "web-crawler";
|
|
711
|
+
vectorizeName: string;
|
|
712
|
+
aiGatewayId?: string | null;
|
|
713
|
+
aiSearchModel?:
|
|
714
|
+
| "@cf/meta/llama-3.3-70b-instruct-fp8-fast"
|
|
715
|
+
| "@cf/meta/llama-3.1-8b-instruct-fast"
|
|
716
|
+
| "@cf/meta/llama-3.1-8b-instruct-fp8"
|
|
717
|
+
| "@cf/meta/llama-4-scout-17b-16e-instruct"
|
|
718
|
+
| "@cf/qwen/qwen3-30b-a3b-fp8"
|
|
719
|
+
| "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"
|
|
720
|
+
| "@cf/moonshotai/kimi-k2-instruct"
|
|
721
|
+
| "anthropic/claude-3-7-sonnet"
|
|
722
|
+
| "anthropic/claude-sonnet-4"
|
|
723
|
+
| "anthropic/claude-opus-4"
|
|
724
|
+
| "anthropic/claude-3-5-haiku"
|
|
725
|
+
| "cerebras/qwen-3-235b-a22b-instruct"
|
|
726
|
+
| "cerebras/qwen-3-235b-a22b-thinking"
|
|
727
|
+
| "cerebras/llama-3.3-70b"
|
|
728
|
+
| "cerebras/llama-4-maverick-17b-128e-instruct"
|
|
729
|
+
| "cerebras/llama-4-scout-17b-16e-instruct"
|
|
730
|
+
| "cerebras/gpt-oss-120b"
|
|
731
|
+
| "google-ai-studio/gemini-2.5-flash"
|
|
732
|
+
| "google-ai-studio/gemini-2.5-pro"
|
|
733
|
+
| "grok/grok-4"
|
|
734
|
+
| "groq/llama-3.3-70b-versatile"
|
|
735
|
+
| "groq/llama-3.1-8b-instant"
|
|
736
|
+
| "openai/gpt-5"
|
|
737
|
+
| "openai/gpt-5-mini"
|
|
738
|
+
| "openai/gpt-5-nano"
|
|
739
|
+
| ""
|
|
740
|
+
| null;
|
|
741
|
+
cache?: boolean | null;
|
|
742
|
+
cacheThreshold?:
|
|
743
|
+
| "super_strict_match"
|
|
744
|
+
| "close_enough"
|
|
745
|
+
| "flexible_friend"
|
|
746
|
+
| "anything_goes"
|
|
747
|
+
| null;
|
|
748
|
+
chunk?: boolean | null;
|
|
749
|
+
chunkOverlap?: number | null;
|
|
750
|
+
chunkSize?: number | null;
|
|
751
|
+
createdBy?: string | null;
|
|
752
|
+
embeddingModel?:
|
|
753
|
+
| "@cf/baai/bge-m3"
|
|
754
|
+
| "@cf/baai/bge-large-en-v1.5"
|
|
755
|
+
| "@cf/google/embeddinggemma-300m"
|
|
756
|
+
| "@cf/qwen/qwen3-embedding-0.6b"
|
|
757
|
+
| "google-ai-studio/gemini-embedding-001"
|
|
758
|
+
| "openai/text-embedding-3-small"
|
|
759
|
+
| "openai/text-embedding-3-large"
|
|
760
|
+
| ""
|
|
761
|
+
| null;
|
|
762
|
+
enable?: boolean | null;
|
|
763
|
+
engineVersion?: number | null;
|
|
764
|
+
hybridSearchEnabled?: boolean | null;
|
|
765
|
+
lastActivity?: string | null;
|
|
766
|
+
maxNumResults?: number | null;
|
|
767
|
+
metadata?: {
|
|
768
|
+
createdFromAisearchWizard?: boolean | null;
|
|
769
|
+
workerDomain?: string | null;
|
|
770
|
+
} | null;
|
|
771
|
+
modifiedBy?: string | null;
|
|
772
|
+
paused?: boolean | null;
|
|
773
|
+
publicEndpointId?: string | null;
|
|
774
|
+
publicEndpointParams?: {
|
|
775
|
+
authorizedHosts?: string[] | null;
|
|
776
|
+
chatCompletionsEndpoint?: { disabled?: boolean | null } | null;
|
|
777
|
+
enabled?: boolean | null;
|
|
778
|
+
mcp?: { disabled?: boolean | null } | null;
|
|
779
|
+
rateLimit?: {
|
|
780
|
+
periodMs?: number | null;
|
|
781
|
+
requests?: number | null;
|
|
782
|
+
technique?: "fixed" | "sliding" | null;
|
|
783
|
+
} | null;
|
|
784
|
+
searchEndpoint?: { disabled?: boolean | null } | null;
|
|
785
|
+
} | null;
|
|
786
|
+
reranking?: boolean | null;
|
|
787
|
+
rerankingModel?: "@cf/baai/bge-reranker-base" | "" | null;
|
|
788
|
+
rewriteModel?:
|
|
789
|
+
| "@cf/meta/llama-3.3-70b-instruct-fp8-fast"
|
|
790
|
+
| "@cf/meta/llama-3.1-8b-instruct-fast"
|
|
791
|
+
| "@cf/meta/llama-3.1-8b-instruct-fp8"
|
|
792
|
+
| "@cf/meta/llama-4-scout-17b-16e-instruct"
|
|
793
|
+
| "@cf/qwen/qwen3-30b-a3b-fp8"
|
|
794
|
+
| "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"
|
|
795
|
+
| "@cf/moonshotai/kimi-k2-instruct"
|
|
796
|
+
| "anthropic/claude-3-7-sonnet"
|
|
797
|
+
| "anthropic/claude-sonnet-4"
|
|
798
|
+
| "anthropic/claude-opus-4"
|
|
799
|
+
| "anthropic/claude-3-5-haiku"
|
|
800
|
+
| "cerebras/qwen-3-235b-a22b-instruct"
|
|
801
|
+
| "cerebras/qwen-3-235b-a22b-thinking"
|
|
802
|
+
| "cerebras/llama-3.3-70b"
|
|
803
|
+
| "cerebras/llama-4-maverick-17b-128e-instruct"
|
|
804
|
+
| "cerebras/llama-4-scout-17b-16e-instruct"
|
|
805
|
+
| "cerebras/gpt-oss-120b"
|
|
806
|
+
| "google-ai-studio/gemini-2.5-flash"
|
|
807
|
+
| "google-ai-studio/gemini-2.5-pro"
|
|
808
|
+
| "grok/grok-4"
|
|
809
|
+
| "groq/llama-3.3-70b-versatile"
|
|
810
|
+
| "groq/llama-3.1-8b-instant"
|
|
811
|
+
| "openai/gpt-5"
|
|
812
|
+
| "openai/gpt-5-mini"
|
|
813
|
+
| "openai/gpt-5-nano"
|
|
814
|
+
| ""
|
|
815
|
+
| null;
|
|
816
|
+
rewriteQuery?: boolean | null;
|
|
817
|
+
scoreThreshold?: number | null;
|
|
818
|
+
sourceParams?: {
|
|
819
|
+
excludeItems?: string[] | null;
|
|
820
|
+
includeItems?: string[] | null;
|
|
821
|
+
prefix?: string | null;
|
|
822
|
+
r2Jurisdiction?: string | null;
|
|
823
|
+
webCrawler?: {
|
|
824
|
+
parseOptions?: {
|
|
825
|
+
includeHeaders?: Record<string, unknown> | null;
|
|
826
|
+
includeImages?: boolean | null;
|
|
827
|
+
useBrowserRendering?: boolean | null;
|
|
828
|
+
} | null;
|
|
829
|
+
parseType?: "sitemap" | "feed-rss" | null;
|
|
830
|
+
storeOptions?: {
|
|
831
|
+
storageId: string;
|
|
832
|
+
r2Jurisdiction?: string | null;
|
|
833
|
+
storageType?: "r2" | null;
|
|
834
|
+
} | null;
|
|
835
|
+
} | null;
|
|
836
|
+
} | null;
|
|
837
|
+
status?: string | null;
|
|
838
|
+
summarization?: boolean | null;
|
|
839
|
+
summarizationModel?:
|
|
840
|
+
| "@cf/meta/llama-3.3-70b-instruct-fp8-fast"
|
|
841
|
+
| "@cf/meta/llama-3.1-8b-instruct-fast"
|
|
842
|
+
| "@cf/meta/llama-3.1-8b-instruct-fp8"
|
|
843
|
+
| "@cf/meta/llama-4-scout-17b-16e-instruct"
|
|
844
|
+
| "@cf/qwen/qwen3-30b-a3b-fp8"
|
|
845
|
+
| "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"
|
|
846
|
+
| "@cf/moonshotai/kimi-k2-instruct"
|
|
847
|
+
| "anthropic/claude-3-7-sonnet"
|
|
848
|
+
| "anthropic/claude-sonnet-4"
|
|
849
|
+
| "anthropic/claude-opus-4"
|
|
850
|
+
| "anthropic/claude-3-5-haiku"
|
|
851
|
+
| "cerebras/qwen-3-235b-a22b-instruct"
|
|
852
|
+
| "cerebras/qwen-3-235b-a22b-thinking"
|
|
853
|
+
| "cerebras/llama-3.3-70b"
|
|
854
|
+
| "cerebras/llama-4-maverick-17b-128e-instruct"
|
|
855
|
+
| "cerebras/llama-4-scout-17b-16e-instruct"
|
|
856
|
+
| "cerebras/gpt-oss-120b"
|
|
857
|
+
| "google-ai-studio/gemini-2.5-flash"
|
|
858
|
+
| "google-ai-studio/gemini-2.5-pro"
|
|
859
|
+
| "grok/grok-4"
|
|
860
|
+
| "groq/llama-3.3-70b-versatile"
|
|
861
|
+
| "groq/llama-3.1-8b-instant"
|
|
862
|
+
| "openai/gpt-5"
|
|
863
|
+
| "openai/gpt-5-mini"
|
|
864
|
+
| "openai/gpt-5-nano"
|
|
865
|
+
| ""
|
|
866
|
+
| null;
|
|
867
|
+
systemPromptAiSearch?: string | null;
|
|
868
|
+
systemPromptIndexSummarization?: string | null;
|
|
869
|
+
systemPromptRewriteQuery?: string | null;
|
|
870
|
+
vectorizeActiveNamespace?: string | null;
|
|
871
|
+
},
|
|
872
|
+
ListInstancesError,
|
|
873
|
+
Credentials | HttpClient.HttpClient
|
|
874
|
+
>;
|
|
875
|
+
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
650
876
|
input: ListInstancesRequest,
|
|
651
877
|
output: ListInstancesResponse,
|
|
652
878
|
errors: [InvalidRoute],
|
|
879
|
+
pagination: {
|
|
880
|
+
mode: "page",
|
|
881
|
+
inputToken: "page",
|
|
882
|
+
outputToken: "resultInfo.page",
|
|
883
|
+
items: "result",
|
|
884
|
+
pageSize: "perPage",
|
|
885
|
+
} as const,
|
|
653
886
|
}));
|
|
654
887
|
|
|
655
888
|
export interface CreateInstanceRequest {
|
|
@@ -1541,52 +1774,56 @@ export const CreateInstanceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
1541
1774
|
Schema.Union([Schema.String, Schema.Null]),
|
|
1542
1775
|
),
|
|
1543
1776
|
},
|
|
1544
|
-
)
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
)
|
|
1777
|
+
)
|
|
1778
|
+
.pipe(
|
|
1779
|
+
Schema.encodeKeys({
|
|
1780
|
+
id: "id",
|
|
1781
|
+
accountId: "account_id",
|
|
1782
|
+
accountTag: "account_tag",
|
|
1783
|
+
createdAt: "created_at",
|
|
1784
|
+
internalId: "internal_id",
|
|
1785
|
+
modifiedAt: "modified_at",
|
|
1786
|
+
source: "source",
|
|
1787
|
+
tokenId: "token_id",
|
|
1788
|
+
type: "type",
|
|
1789
|
+
vectorizeName: "vectorize_name",
|
|
1790
|
+
aiGatewayId: "ai_gateway_id",
|
|
1791
|
+
aiSearchModel: "ai_search_model",
|
|
1792
|
+
cache: "cache",
|
|
1793
|
+
cacheThreshold: "cache_threshold",
|
|
1794
|
+
chunk: "chunk",
|
|
1795
|
+
chunkOverlap: "chunk_overlap",
|
|
1796
|
+
chunkSize: "chunk_size",
|
|
1797
|
+
createdBy: "created_by",
|
|
1798
|
+
embeddingModel: "embedding_model",
|
|
1799
|
+
enable: "enable",
|
|
1800
|
+
engineVersion: "engine_version",
|
|
1801
|
+
hybridSearchEnabled: "hybrid_search_enabled",
|
|
1802
|
+
lastActivity: "last_activity",
|
|
1803
|
+
maxNumResults: "max_num_results",
|
|
1804
|
+
metadata: "metadata",
|
|
1805
|
+
modifiedBy: "modified_by",
|
|
1806
|
+
paused: "paused",
|
|
1807
|
+
publicEndpointId: "public_endpoint_id",
|
|
1808
|
+
publicEndpointParams: "public_endpoint_params",
|
|
1809
|
+
reranking: "reranking",
|
|
1810
|
+
rerankingModel: "reranking_model",
|
|
1811
|
+
rewriteModel: "rewrite_model",
|
|
1812
|
+
rewriteQuery: "rewrite_query",
|
|
1813
|
+
scoreThreshold: "score_threshold",
|
|
1814
|
+
sourceParams: "source_params",
|
|
1815
|
+
status: "status",
|
|
1816
|
+
summarization: "summarization",
|
|
1817
|
+
summarizationModel: "summarization_model",
|
|
1818
|
+
systemPromptAiSearch: "system_prompt_ai_search",
|
|
1819
|
+
systemPromptIndexSummarization: "system_prompt_index_summarization",
|
|
1820
|
+
systemPromptRewriteQuery: "system_prompt_rewrite_query",
|
|
1821
|
+
vectorizeActiveNamespace: "vectorize_active_namespace",
|
|
1822
|
+
}),
|
|
1823
|
+
)
|
|
1824
|
+
.pipe(
|
|
1825
|
+
T.ResponsePath("result"),
|
|
1826
|
+
) as unknown as Schema.Schema<CreateInstanceResponse>;
|
|
1590
1827
|
|
|
1591
1828
|
export type CreateInstanceError =
|
|
1592
1829
|
| DefaultErrors
|
|
@@ -2553,81 +2790,85 @@ export const UpdateInstanceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
2553
2790
|
"cerebras/qwen-3-235b-a22b-instruct",
|
|
2554
2791
|
"cerebras/qwen-3-235b-a22b-thinking",
|
|
2555
2792
|
"cerebras/llama-3.3-70b",
|
|
2556
|
-
"cerebras/llama-4-maverick-17b-128e-instruct",
|
|
2557
|
-
"cerebras/llama-4-scout-17b-16e-instruct",
|
|
2558
|
-
"cerebras/gpt-oss-120b",
|
|
2559
|
-
"google-ai-studio/gemini-2.5-flash",
|
|
2560
|
-
"google-ai-studio/gemini-2.5-pro",
|
|
2561
|
-
"grok/grok-4",
|
|
2562
|
-
"groq/llama-3.3-70b-versatile",
|
|
2563
|
-
"groq/llama-3.1-8b-instant",
|
|
2564
|
-
"openai/gpt-5",
|
|
2565
|
-
"openai/gpt-5-mini",
|
|
2566
|
-
"openai/gpt-5-nano",
|
|
2567
|
-
"",
|
|
2568
|
-
]),
|
|
2569
|
-
Schema.Null,
|
|
2570
|
-
]),
|
|
2571
|
-
),
|
|
2572
|
-
systemPromptAiSearch: Schema.optional(
|
|
2573
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
2574
|
-
),
|
|
2575
|
-
systemPromptIndexSummarization: Schema.optional(
|
|
2576
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
2577
|
-
),
|
|
2578
|
-
systemPromptRewriteQuery: Schema.optional(
|
|
2579
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
2580
|
-
),
|
|
2581
|
-
vectorizeActiveNamespace: Schema.optional(
|
|
2582
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
2583
|
-
),
|
|
2584
|
-
},
|
|
2585
|
-
)
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
)
|
|
2793
|
+
"cerebras/llama-4-maverick-17b-128e-instruct",
|
|
2794
|
+
"cerebras/llama-4-scout-17b-16e-instruct",
|
|
2795
|
+
"cerebras/gpt-oss-120b",
|
|
2796
|
+
"google-ai-studio/gemini-2.5-flash",
|
|
2797
|
+
"google-ai-studio/gemini-2.5-pro",
|
|
2798
|
+
"grok/grok-4",
|
|
2799
|
+
"groq/llama-3.3-70b-versatile",
|
|
2800
|
+
"groq/llama-3.1-8b-instant",
|
|
2801
|
+
"openai/gpt-5",
|
|
2802
|
+
"openai/gpt-5-mini",
|
|
2803
|
+
"openai/gpt-5-nano",
|
|
2804
|
+
"",
|
|
2805
|
+
]),
|
|
2806
|
+
Schema.Null,
|
|
2807
|
+
]),
|
|
2808
|
+
),
|
|
2809
|
+
systemPromptAiSearch: Schema.optional(
|
|
2810
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2811
|
+
),
|
|
2812
|
+
systemPromptIndexSummarization: Schema.optional(
|
|
2813
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2814
|
+
),
|
|
2815
|
+
systemPromptRewriteQuery: Schema.optional(
|
|
2816
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2817
|
+
),
|
|
2818
|
+
vectorizeActiveNamespace: Schema.optional(
|
|
2819
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2820
|
+
),
|
|
2821
|
+
},
|
|
2822
|
+
)
|
|
2823
|
+
.pipe(
|
|
2824
|
+
Schema.encodeKeys({
|
|
2825
|
+
id: "id",
|
|
2826
|
+
accountId: "account_id",
|
|
2827
|
+
accountTag: "account_tag",
|
|
2828
|
+
createdAt: "created_at",
|
|
2829
|
+
internalId: "internal_id",
|
|
2830
|
+
modifiedAt: "modified_at",
|
|
2831
|
+
source: "source",
|
|
2832
|
+
tokenId: "token_id",
|
|
2833
|
+
type: "type",
|
|
2834
|
+
vectorizeName: "vectorize_name",
|
|
2835
|
+
aiGatewayId: "ai_gateway_id",
|
|
2836
|
+
aiSearchModel: "ai_search_model",
|
|
2837
|
+
cache: "cache",
|
|
2838
|
+
cacheThreshold: "cache_threshold",
|
|
2839
|
+
chunk: "chunk",
|
|
2840
|
+
chunkOverlap: "chunk_overlap",
|
|
2841
|
+
chunkSize: "chunk_size",
|
|
2842
|
+
createdBy: "created_by",
|
|
2843
|
+
embeddingModel: "embedding_model",
|
|
2844
|
+
enable: "enable",
|
|
2845
|
+
engineVersion: "engine_version",
|
|
2846
|
+
hybridSearchEnabled: "hybrid_search_enabled",
|
|
2847
|
+
lastActivity: "last_activity",
|
|
2848
|
+
maxNumResults: "max_num_results",
|
|
2849
|
+
metadata: "metadata",
|
|
2850
|
+
modifiedBy: "modified_by",
|
|
2851
|
+
paused: "paused",
|
|
2852
|
+
publicEndpointId: "public_endpoint_id",
|
|
2853
|
+
publicEndpointParams: "public_endpoint_params",
|
|
2854
|
+
reranking: "reranking",
|
|
2855
|
+
rerankingModel: "reranking_model",
|
|
2856
|
+
rewriteModel: "rewrite_model",
|
|
2857
|
+
rewriteQuery: "rewrite_query",
|
|
2858
|
+
scoreThreshold: "score_threshold",
|
|
2859
|
+
sourceParams: "source_params",
|
|
2860
|
+
status: "status",
|
|
2861
|
+
summarization: "summarization",
|
|
2862
|
+
summarizationModel: "summarization_model",
|
|
2863
|
+
systemPromptAiSearch: "system_prompt_ai_search",
|
|
2864
|
+
systemPromptIndexSummarization: "system_prompt_index_summarization",
|
|
2865
|
+
systemPromptRewriteQuery: "system_prompt_rewrite_query",
|
|
2866
|
+
vectorizeActiveNamespace: "vectorize_active_namespace",
|
|
2867
|
+
}),
|
|
2868
|
+
)
|
|
2869
|
+
.pipe(
|
|
2870
|
+
T.ResponsePath("result"),
|
|
2871
|
+
) as unknown as Schema.Schema<UpdateInstanceResponse>;
|
|
2631
2872
|
|
|
2632
2873
|
export type UpdateInstanceError =
|
|
2633
2874
|
| DefaultErrors
|
|
@@ -3190,52 +3431,56 @@ export const DeleteInstanceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
3190
3431
|
Schema.Union([Schema.String, Schema.Null]),
|
|
3191
3432
|
),
|
|
3192
3433
|
},
|
|
3193
|
-
)
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
)
|
|
3434
|
+
)
|
|
3435
|
+
.pipe(
|
|
3436
|
+
Schema.encodeKeys({
|
|
3437
|
+
id: "id",
|
|
3438
|
+
accountId: "account_id",
|
|
3439
|
+
accountTag: "account_tag",
|
|
3440
|
+
createdAt: "created_at",
|
|
3441
|
+
internalId: "internal_id",
|
|
3442
|
+
modifiedAt: "modified_at",
|
|
3443
|
+
source: "source",
|
|
3444
|
+
tokenId: "token_id",
|
|
3445
|
+
type: "type",
|
|
3446
|
+
vectorizeName: "vectorize_name",
|
|
3447
|
+
aiGatewayId: "ai_gateway_id",
|
|
3448
|
+
aiSearchModel: "ai_search_model",
|
|
3449
|
+
cache: "cache",
|
|
3450
|
+
cacheThreshold: "cache_threshold",
|
|
3451
|
+
chunk: "chunk",
|
|
3452
|
+
chunkOverlap: "chunk_overlap",
|
|
3453
|
+
chunkSize: "chunk_size",
|
|
3454
|
+
createdBy: "created_by",
|
|
3455
|
+
embeddingModel: "embedding_model",
|
|
3456
|
+
enable: "enable",
|
|
3457
|
+
engineVersion: "engine_version",
|
|
3458
|
+
hybridSearchEnabled: "hybrid_search_enabled",
|
|
3459
|
+
lastActivity: "last_activity",
|
|
3460
|
+
maxNumResults: "max_num_results",
|
|
3461
|
+
metadata: "metadata",
|
|
3462
|
+
modifiedBy: "modified_by",
|
|
3463
|
+
paused: "paused",
|
|
3464
|
+
publicEndpointId: "public_endpoint_id",
|
|
3465
|
+
publicEndpointParams: "public_endpoint_params",
|
|
3466
|
+
reranking: "reranking",
|
|
3467
|
+
rerankingModel: "reranking_model",
|
|
3468
|
+
rewriteModel: "rewrite_model",
|
|
3469
|
+
rewriteQuery: "rewrite_query",
|
|
3470
|
+
scoreThreshold: "score_threshold",
|
|
3471
|
+
sourceParams: "source_params",
|
|
3472
|
+
status: "status",
|
|
3473
|
+
summarization: "summarization",
|
|
3474
|
+
summarizationModel: "summarization_model",
|
|
3475
|
+
systemPromptAiSearch: "system_prompt_ai_search",
|
|
3476
|
+
systemPromptIndexSummarization: "system_prompt_index_summarization",
|
|
3477
|
+
systemPromptRewriteQuery: "system_prompt_rewrite_query",
|
|
3478
|
+
vectorizeActiveNamespace: "vectorize_active_namespace",
|
|
3479
|
+
}),
|
|
3480
|
+
)
|
|
3481
|
+
.pipe(
|
|
3482
|
+
T.ResponsePath("result"),
|
|
3483
|
+
) as unknown as Schema.Schema<DeleteInstanceResponse>;
|
|
3239
3484
|
|
|
3240
3485
|
export type DeleteInstanceError =
|
|
3241
3486
|
| DefaultErrors
|
|
@@ -3794,52 +4039,56 @@ export const ReadInstanceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
3794
4039
|
vectorizeActiveNamespace: Schema.optional(
|
|
3795
4040
|
Schema.Union([Schema.String, Schema.Null]),
|
|
3796
4041
|
),
|
|
3797
|
-
})
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
)
|
|
4042
|
+
})
|
|
4043
|
+
.pipe(
|
|
4044
|
+
Schema.encodeKeys({
|
|
4045
|
+
id: "id",
|
|
4046
|
+
accountId: "account_id",
|
|
4047
|
+
accountTag: "account_tag",
|
|
4048
|
+
createdAt: "created_at",
|
|
4049
|
+
internalId: "internal_id",
|
|
4050
|
+
modifiedAt: "modified_at",
|
|
4051
|
+
source: "source",
|
|
4052
|
+
tokenId: "token_id",
|
|
4053
|
+
type: "type",
|
|
4054
|
+
vectorizeName: "vectorize_name",
|
|
4055
|
+
aiGatewayId: "ai_gateway_id",
|
|
4056
|
+
aiSearchModel: "ai_search_model",
|
|
4057
|
+
cache: "cache",
|
|
4058
|
+
cacheThreshold: "cache_threshold",
|
|
4059
|
+
chunk: "chunk",
|
|
4060
|
+
chunkOverlap: "chunk_overlap",
|
|
4061
|
+
chunkSize: "chunk_size",
|
|
4062
|
+
createdBy: "created_by",
|
|
4063
|
+
embeddingModel: "embedding_model",
|
|
4064
|
+
enable: "enable",
|
|
4065
|
+
engineVersion: "engine_version",
|
|
4066
|
+
hybridSearchEnabled: "hybrid_search_enabled",
|
|
4067
|
+
lastActivity: "last_activity",
|
|
4068
|
+
maxNumResults: "max_num_results",
|
|
4069
|
+
metadata: "metadata",
|
|
4070
|
+
modifiedBy: "modified_by",
|
|
4071
|
+
paused: "paused",
|
|
4072
|
+
publicEndpointId: "public_endpoint_id",
|
|
4073
|
+
publicEndpointParams: "public_endpoint_params",
|
|
4074
|
+
reranking: "reranking",
|
|
4075
|
+
rerankingModel: "reranking_model",
|
|
4076
|
+
rewriteModel: "rewrite_model",
|
|
4077
|
+
rewriteQuery: "rewrite_query",
|
|
4078
|
+
scoreThreshold: "score_threshold",
|
|
4079
|
+
sourceParams: "source_params",
|
|
4080
|
+
status: "status",
|
|
4081
|
+
summarization: "summarization",
|
|
4082
|
+
summarizationModel: "summarization_model",
|
|
4083
|
+
systemPromptAiSearch: "system_prompt_ai_search",
|
|
4084
|
+
systemPromptIndexSummarization: "system_prompt_index_summarization",
|
|
4085
|
+
systemPromptRewriteQuery: "system_prompt_rewrite_query",
|
|
4086
|
+
vectorizeActiveNamespace: "vectorize_active_namespace",
|
|
4087
|
+
}),
|
|
4088
|
+
)
|
|
4089
|
+
.pipe(
|
|
4090
|
+
T.ResponsePath("result"),
|
|
4091
|
+
) as unknown as Schema.Schema<ReadInstanceResponse>;
|
|
3843
4092
|
|
|
3844
4093
|
export type ReadInstanceError =
|
|
3845
4094
|
| DefaultErrors
|
|
@@ -3897,18 +4146,22 @@ export const StatsInstanceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
3897
4146
|
queued: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3898
4147
|
running: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3899
4148
|
skipped: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3900
|
-
})
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
)
|
|
4149
|
+
})
|
|
4150
|
+
.pipe(
|
|
4151
|
+
Schema.encodeKeys({
|
|
4152
|
+
completed: "completed",
|
|
4153
|
+
error: "error",
|
|
4154
|
+
fileEmbedErrors: "file_embed_errors",
|
|
4155
|
+
indexSourceErrors: "index_source_errors",
|
|
4156
|
+
lastActivity: "last_activity",
|
|
4157
|
+
queued: "queued",
|
|
4158
|
+
running: "running",
|
|
4159
|
+
skipped: "skipped",
|
|
4160
|
+
}),
|
|
4161
|
+
)
|
|
4162
|
+
.pipe(
|
|
4163
|
+
T.ResponsePath("result"),
|
|
4164
|
+
) as unknown as Schema.Schema<StatsInstanceResponse>;
|
|
3912
4165
|
|
|
3913
4166
|
export type StatsInstanceError =
|
|
3914
4167
|
| DefaultErrors
|
|
@@ -3973,16 +4226,20 @@ export const GetInstanceItemResponse =
|
|
|
3973
4226
|
error: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3974
4227
|
lastSeenAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3975
4228
|
nextAction: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3976
|
-
})
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
4229
|
+
})
|
|
4230
|
+
.pipe(
|
|
4231
|
+
Schema.encodeKeys({
|
|
4232
|
+
id: "id",
|
|
4233
|
+
key: "key",
|
|
4234
|
+
status: "status",
|
|
4235
|
+
error: "error",
|
|
4236
|
+
lastSeenAt: "last_seen_at",
|
|
4237
|
+
nextAction: "next_action",
|
|
4238
|
+
}),
|
|
4239
|
+
)
|
|
4240
|
+
.pipe(
|
|
4241
|
+
T.ResponsePath("result"),
|
|
4242
|
+
) as unknown as Schema.Schema<GetInstanceItemResponse>;
|
|
3986
4243
|
|
|
3987
4244
|
export type GetInstanceItemError =
|
|
3988
4245
|
| DefaultErrors
|
|
@@ -4022,57 +4279,116 @@ export const ListInstanceItemsRequest =
|
|
|
4022
4279
|
}).pipe(
|
|
4023
4280
|
T.Http({
|
|
4024
4281
|
method: "GET",
|
|
4025
|
-
path: "/accounts/{account_id}/ai-search/instances/{id}/items",
|
|
4026
|
-
}),
|
|
4027
|
-
) as unknown as Schema.Schema<ListInstanceItemsRequest>;
|
|
4028
|
-
|
|
4029
|
-
export
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4282
|
+
path: "/accounts/{account_id}/ai-search/instances/{id}/items",
|
|
4283
|
+
}),
|
|
4284
|
+
) as unknown as Schema.Schema<ListInstanceItemsRequest>;
|
|
4285
|
+
|
|
4286
|
+
export interface ListInstanceItemsResponse {
|
|
4287
|
+
result: {
|
|
4288
|
+
id: string;
|
|
4289
|
+
key: string;
|
|
4290
|
+
status: "queued" | "running" | "completed" | "error" | "skipped";
|
|
4291
|
+
error?: string | null;
|
|
4292
|
+
lastSeenAt?: string | null;
|
|
4293
|
+
nextAction?: string | null;
|
|
4294
|
+
}[];
|
|
4295
|
+
resultInfo?: {
|
|
4296
|
+
count?: number | null;
|
|
4297
|
+
page?: number | null;
|
|
4298
|
+
perPage?: number | null;
|
|
4299
|
+
totalCount?: number | null;
|
|
4300
|
+
} | null;
|
|
4301
|
+
}
|
|
4037
4302
|
|
|
4038
4303
|
export const ListInstanceItemsResponse =
|
|
4039
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
4040
|
-
Schema.
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4304
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4305
|
+
result: Schema.Array(
|
|
4306
|
+
Schema.Struct({
|
|
4307
|
+
id: Schema.String,
|
|
4308
|
+
key: Schema.String,
|
|
4309
|
+
status: Schema.Literals([
|
|
4310
|
+
"queued",
|
|
4311
|
+
"running",
|
|
4312
|
+
"completed",
|
|
4313
|
+
"error",
|
|
4314
|
+
"skipped",
|
|
4315
|
+
]),
|
|
4316
|
+
error: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4317
|
+
lastSeenAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4318
|
+
nextAction: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4319
|
+
}).pipe(
|
|
4320
|
+
Schema.encodeKeys({
|
|
4321
|
+
id: "id",
|
|
4322
|
+
key: "key",
|
|
4323
|
+
status: "status",
|
|
4324
|
+
error: "error",
|
|
4325
|
+
lastSeenAt: "last_seen_at",
|
|
4326
|
+
nextAction: "next_action",
|
|
4327
|
+
}),
|
|
4328
|
+
),
|
|
4329
|
+
),
|
|
4330
|
+
resultInfo: Schema.optional(
|
|
4331
|
+
Schema.Union([
|
|
4332
|
+
Schema.Struct({
|
|
4333
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4334
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4335
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4336
|
+
totalCount: Schema.optional(
|
|
4337
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
4338
|
+
),
|
|
4339
|
+
}).pipe(
|
|
4340
|
+
Schema.encodeKeys({
|
|
4341
|
+
count: "count",
|
|
4342
|
+
page: "page",
|
|
4343
|
+
perPage: "per_page",
|
|
4344
|
+
totalCount: "total_count",
|
|
4345
|
+
}),
|
|
4346
|
+
),
|
|
4347
|
+
Schema.Null,
|
|
4049
4348
|
]),
|
|
4050
|
-
error: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4051
|
-
lastSeenAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4052
|
-
nextAction: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4053
|
-
}).pipe(
|
|
4054
|
-
Schema.encodeKeys({
|
|
4055
|
-
id: "id",
|
|
4056
|
-
key: "key",
|
|
4057
|
-
status: "status",
|
|
4058
|
-
error: "error",
|
|
4059
|
-
lastSeenAt: "last_seen_at",
|
|
4060
|
-
nextAction: "next_action",
|
|
4061
|
-
}),
|
|
4062
4349
|
),
|
|
4350
|
+
}).pipe(
|
|
4351
|
+
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
4063
4352
|
) as unknown as Schema.Schema<ListInstanceItemsResponse>;
|
|
4064
4353
|
|
|
4065
4354
|
export type ListInstanceItemsError = DefaultErrors;
|
|
4066
4355
|
|
|
4067
|
-
export const listInstanceItems: API.
|
|
4356
|
+
export const listInstanceItems: API.PaginatedOperationMethod<
|
|
4068
4357
|
ListInstanceItemsRequest,
|
|
4069
4358
|
ListInstanceItemsResponse,
|
|
4070
4359
|
ListInstanceItemsError,
|
|
4071
4360
|
Credentials | HttpClient.HttpClient
|
|
4072
|
-
>
|
|
4361
|
+
> & {
|
|
4362
|
+
pages: (
|
|
4363
|
+
input: ListInstanceItemsRequest,
|
|
4364
|
+
) => stream.Stream<
|
|
4365
|
+
ListInstanceItemsResponse,
|
|
4366
|
+
ListInstanceItemsError,
|
|
4367
|
+
Credentials | HttpClient.HttpClient
|
|
4368
|
+
>;
|
|
4369
|
+
items: (input: ListInstanceItemsRequest) => stream.Stream<
|
|
4370
|
+
{
|
|
4371
|
+
id: string;
|
|
4372
|
+
key: string;
|
|
4373
|
+
status: "queued" | "running" | "completed" | "error" | "skipped";
|
|
4374
|
+
error?: string | null;
|
|
4375
|
+
lastSeenAt?: string | null;
|
|
4376
|
+
nextAction?: string | null;
|
|
4377
|
+
},
|
|
4378
|
+
ListInstanceItemsError,
|
|
4379
|
+
Credentials | HttpClient.HttpClient
|
|
4380
|
+
>;
|
|
4381
|
+
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
4073
4382
|
input: ListInstanceItemsRequest,
|
|
4074
4383
|
output: ListInstanceItemsResponse,
|
|
4075
4384
|
errors: [],
|
|
4385
|
+
pagination: {
|
|
4386
|
+
mode: "page",
|
|
4387
|
+
inputToken: "page",
|
|
4388
|
+
outputToken: "resultInfo.page",
|
|
4389
|
+
items: "result",
|
|
4390
|
+
pageSize: "perPage",
|
|
4391
|
+
} as const,
|
|
4076
4392
|
}));
|
|
4077
4393
|
|
|
4078
4394
|
// =============================================================================
|
|
@@ -4114,16 +4430,20 @@ export const GetInstanceJobResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
4114
4430
|
lastSeenAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4115
4431
|
startedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4116
4432
|
},
|
|
4117
|
-
)
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
)
|
|
4433
|
+
)
|
|
4434
|
+
.pipe(
|
|
4435
|
+
Schema.encodeKeys({
|
|
4436
|
+
id: "id",
|
|
4437
|
+
source: "source",
|
|
4438
|
+
endReason: "end_reason",
|
|
4439
|
+
endedAt: "ended_at",
|
|
4440
|
+
lastSeenAt: "last_seen_at",
|
|
4441
|
+
startedAt: "started_at",
|
|
4442
|
+
}),
|
|
4443
|
+
)
|
|
4444
|
+
.pipe(
|
|
4445
|
+
T.ResponsePath("result"),
|
|
4446
|
+
) as unknown as Schema.Schema<GetInstanceJobResponse>;
|
|
4127
4447
|
|
|
4128
4448
|
export type GetInstanceJobError =
|
|
4129
4449
|
| DefaultErrors
|
|
@@ -4159,47 +4479,106 @@ export const ListInstanceJobsRequest =
|
|
|
4159
4479
|
}),
|
|
4160
4480
|
) as unknown as Schema.Schema<ListInstanceJobsRequest>;
|
|
4161
4481
|
|
|
4162
|
-
export
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4482
|
+
export interface ListInstanceJobsResponse {
|
|
4483
|
+
result: {
|
|
4484
|
+
id: string;
|
|
4485
|
+
source: "user" | "schedule";
|
|
4486
|
+
endReason?: string | null;
|
|
4487
|
+
endedAt?: string | null;
|
|
4488
|
+
lastSeenAt?: string | null;
|
|
4489
|
+
startedAt?: string | null;
|
|
4490
|
+
}[];
|
|
4491
|
+
resultInfo?: {
|
|
4492
|
+
count?: number | null;
|
|
4493
|
+
page?: number | null;
|
|
4494
|
+
perPage?: number | null;
|
|
4495
|
+
totalCount?: number | null;
|
|
4496
|
+
} | null;
|
|
4497
|
+
}
|
|
4170
4498
|
|
|
4171
4499
|
export const ListInstanceJobsResponse =
|
|
4172
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
4173
|
-
Schema.
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4500
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4501
|
+
result: Schema.Array(
|
|
4502
|
+
Schema.Struct({
|
|
4503
|
+
id: Schema.String,
|
|
4504
|
+
source: Schema.Literals(["user", "schedule"]),
|
|
4505
|
+
endReason: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4506
|
+
endedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4507
|
+
lastSeenAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4508
|
+
startedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4509
|
+
}).pipe(
|
|
4510
|
+
Schema.encodeKeys({
|
|
4511
|
+
id: "id",
|
|
4512
|
+
source: "source",
|
|
4513
|
+
endReason: "end_reason",
|
|
4514
|
+
endedAt: "ended_at",
|
|
4515
|
+
lastSeenAt: "last_seen_at",
|
|
4516
|
+
startedAt: "started_at",
|
|
4517
|
+
}),
|
|
4518
|
+
),
|
|
4519
|
+
),
|
|
4520
|
+
resultInfo: Schema.optional(
|
|
4521
|
+
Schema.Union([
|
|
4522
|
+
Schema.Struct({
|
|
4523
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4524
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4525
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4526
|
+
totalCount: Schema.optional(
|
|
4527
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
4528
|
+
),
|
|
4529
|
+
}).pipe(
|
|
4530
|
+
Schema.encodeKeys({
|
|
4531
|
+
count: "count",
|
|
4532
|
+
page: "page",
|
|
4533
|
+
perPage: "per_page",
|
|
4534
|
+
totalCount: "total_count",
|
|
4535
|
+
}),
|
|
4536
|
+
),
|
|
4537
|
+
Schema.Null,
|
|
4538
|
+
]),
|
|
4189
4539
|
),
|
|
4540
|
+
}).pipe(
|
|
4541
|
+
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
4190
4542
|
) as unknown as Schema.Schema<ListInstanceJobsResponse>;
|
|
4191
4543
|
|
|
4192
4544
|
export type ListInstanceJobsError = DefaultErrors;
|
|
4193
4545
|
|
|
4194
|
-
export const listInstanceJobs: API.
|
|
4546
|
+
export const listInstanceJobs: API.PaginatedOperationMethod<
|
|
4195
4547
|
ListInstanceJobsRequest,
|
|
4196
4548
|
ListInstanceJobsResponse,
|
|
4197
4549
|
ListInstanceJobsError,
|
|
4198
4550
|
Credentials | HttpClient.HttpClient
|
|
4199
|
-
>
|
|
4551
|
+
> & {
|
|
4552
|
+
pages: (
|
|
4553
|
+
input: ListInstanceJobsRequest,
|
|
4554
|
+
) => stream.Stream<
|
|
4555
|
+
ListInstanceJobsResponse,
|
|
4556
|
+
ListInstanceJobsError,
|
|
4557
|
+
Credentials | HttpClient.HttpClient
|
|
4558
|
+
>;
|
|
4559
|
+
items: (input: ListInstanceJobsRequest) => stream.Stream<
|
|
4560
|
+
{
|
|
4561
|
+
id: string;
|
|
4562
|
+
source: "user" | "schedule";
|
|
4563
|
+
endReason?: string | null;
|
|
4564
|
+
endedAt?: string | null;
|
|
4565
|
+
lastSeenAt?: string | null;
|
|
4566
|
+
startedAt?: string | null;
|
|
4567
|
+
},
|
|
4568
|
+
ListInstanceJobsError,
|
|
4569
|
+
Credentials | HttpClient.HttpClient
|
|
4570
|
+
>;
|
|
4571
|
+
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
4200
4572
|
input: ListInstanceJobsRequest,
|
|
4201
4573
|
output: ListInstanceJobsResponse,
|
|
4202
4574
|
errors: [],
|
|
4575
|
+
pagination: {
|
|
4576
|
+
mode: "page",
|
|
4577
|
+
inputToken: "page",
|
|
4578
|
+
outputToken: "resultInfo.page",
|
|
4579
|
+
items: "result",
|
|
4580
|
+
pageSize: "perPage",
|
|
4581
|
+
} as const,
|
|
4203
4582
|
}));
|
|
4204
4583
|
|
|
4205
4584
|
export interface CreateInstanceJobRequest {
|
|
@@ -4235,16 +4614,20 @@ export const CreateInstanceJobResponse =
|
|
|
4235
4614
|
endedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4236
4615
|
lastSeenAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4237
4616
|
startedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4238
|
-
})
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4617
|
+
})
|
|
4618
|
+
.pipe(
|
|
4619
|
+
Schema.encodeKeys({
|
|
4620
|
+
id: "id",
|
|
4621
|
+
source: "source",
|
|
4622
|
+
endReason: "end_reason",
|
|
4623
|
+
endedAt: "ended_at",
|
|
4624
|
+
lastSeenAt: "last_seen_at",
|
|
4625
|
+
startedAt: "started_at",
|
|
4626
|
+
}),
|
|
4627
|
+
)
|
|
4628
|
+
.pipe(
|
|
4629
|
+
T.ResponsePath("result"),
|
|
4630
|
+
) as unknown as Schema.Schema<CreateInstanceJobResponse>;
|
|
4248
4631
|
|
|
4249
4632
|
export type CreateInstanceJobError =
|
|
4250
4633
|
| DefaultErrors
|
|
@@ -4318,6 +4701,8 @@ export const LogsInstanceJobResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
|
4318
4701
|
messageType: "message_type",
|
|
4319
4702
|
}),
|
|
4320
4703
|
),
|
|
4704
|
+
).pipe(
|
|
4705
|
+
T.ResponsePath("result"),
|
|
4321
4706
|
) as unknown as Schema.Schema<LogsInstanceJobResponse>;
|
|
4322
4707
|
|
|
4323
4708
|
export type LogsInstanceJobError =
|
|
@@ -4352,67 +4737,131 @@ export const ListTokensRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
4352
4737
|
T.Http({ method: "GET", path: "/accounts/{account_id}/ai-search/tokens" }),
|
|
4353
4738
|
) as unknown as Schema.Schema<ListTokensRequest>;
|
|
4354
4739
|
|
|
4355
|
-
export
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4740
|
+
export interface ListTokensResponse {
|
|
4741
|
+
result: {
|
|
4742
|
+
id: string;
|
|
4743
|
+
accountId?: string | null;
|
|
4744
|
+
accountTag?: string | null;
|
|
4745
|
+
cfApiId: string;
|
|
4746
|
+
cfApiKey?: string | null;
|
|
4747
|
+
createdAt: string;
|
|
4748
|
+
modifiedAt: string;
|
|
4749
|
+
name: string;
|
|
4750
|
+
createdBy?: string | null;
|
|
4751
|
+
enabled?: boolean | null;
|
|
4752
|
+
legacy?: boolean | null;
|
|
4753
|
+
modifiedBy?: string | null;
|
|
4754
|
+
syncedAt?: string | null;
|
|
4755
|
+
}[];
|
|
4756
|
+
resultInfo?: {
|
|
4757
|
+
count?: number | null;
|
|
4758
|
+
page?: number | null;
|
|
4759
|
+
perPage?: number | null;
|
|
4760
|
+
totalCount?: number | null;
|
|
4761
|
+
} | null;
|
|
4762
|
+
}
|
|
4370
4763
|
|
|
4371
|
-
export const ListTokensResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
4372
|
-
Schema.
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4764
|
+
export const ListTokensResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4765
|
+
result: Schema.Array(
|
|
4766
|
+
Schema.Struct({
|
|
4767
|
+
id: Schema.String,
|
|
4768
|
+
accountId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4769
|
+
accountTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4770
|
+
cfApiId: Schema.String,
|
|
4771
|
+
cfApiKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4772
|
+
createdAt: Schema.String,
|
|
4773
|
+
modifiedAt: Schema.String,
|
|
4774
|
+
name: Schema.String,
|
|
4775
|
+
createdBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4776
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
4777
|
+
legacy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
4778
|
+
modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4779
|
+
syncedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4780
|
+
}).pipe(
|
|
4781
|
+
Schema.encodeKeys({
|
|
4782
|
+
id: "id",
|
|
4783
|
+
accountId: "account_id",
|
|
4784
|
+
accountTag: "account_tag",
|
|
4785
|
+
cfApiId: "cf_api_id",
|
|
4786
|
+
cfApiKey: "cf_api_key",
|
|
4787
|
+
createdAt: "created_at",
|
|
4788
|
+
modifiedAt: "modified_at",
|
|
4789
|
+
name: "name",
|
|
4790
|
+
createdBy: "created_by",
|
|
4791
|
+
enabled: "enabled",
|
|
4792
|
+
legacy: "legacy",
|
|
4793
|
+
modifiedBy: "modified_by",
|
|
4794
|
+
syncedAt: "synced_at",
|
|
4795
|
+
}),
|
|
4796
|
+
),
|
|
4797
|
+
),
|
|
4798
|
+
resultInfo: Schema.optional(
|
|
4799
|
+
Schema.Union([
|
|
4800
|
+
Schema.Struct({
|
|
4801
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4802
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4803
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4804
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4805
|
+
}).pipe(
|
|
4806
|
+
Schema.encodeKeys({
|
|
4807
|
+
count: "count",
|
|
4808
|
+
page: "page",
|
|
4809
|
+
perPage: "per_page",
|
|
4810
|
+
totalCount: "total_count",
|
|
4811
|
+
}),
|
|
4812
|
+
),
|
|
4813
|
+
Schema.Null,
|
|
4814
|
+
]),
|
|
4402
4815
|
),
|
|
4816
|
+
}).pipe(
|
|
4817
|
+
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
4403
4818
|
) as unknown as Schema.Schema<ListTokensResponse>;
|
|
4404
4819
|
|
|
4405
4820
|
export type ListTokensError = DefaultErrors | InvalidRoute;
|
|
4406
4821
|
|
|
4407
|
-
export const listTokens: API.
|
|
4822
|
+
export const listTokens: API.PaginatedOperationMethod<
|
|
4408
4823
|
ListTokensRequest,
|
|
4409
4824
|
ListTokensResponse,
|
|
4410
4825
|
ListTokensError,
|
|
4411
4826
|
Credentials | HttpClient.HttpClient
|
|
4412
|
-
>
|
|
4827
|
+
> & {
|
|
4828
|
+
pages: (
|
|
4829
|
+
input: ListTokensRequest,
|
|
4830
|
+
) => stream.Stream<
|
|
4831
|
+
ListTokensResponse,
|
|
4832
|
+
ListTokensError,
|
|
4833
|
+
Credentials | HttpClient.HttpClient
|
|
4834
|
+
>;
|
|
4835
|
+
items: (input: ListTokensRequest) => stream.Stream<
|
|
4836
|
+
{
|
|
4837
|
+
id: string;
|
|
4838
|
+
accountId: string;
|
|
4839
|
+
accountTag: string;
|
|
4840
|
+
cfApiId: string;
|
|
4841
|
+
cfApiKey: string;
|
|
4842
|
+
createdAt: string;
|
|
4843
|
+
modifiedAt: string;
|
|
4844
|
+
name: string;
|
|
4845
|
+
createdBy?: string | null;
|
|
4846
|
+
enabled?: boolean | null;
|
|
4847
|
+
legacy?: boolean | null;
|
|
4848
|
+
modifiedBy?: string | null;
|
|
4849
|
+
syncedAt?: string | null;
|
|
4850
|
+
},
|
|
4851
|
+
ListTokensError,
|
|
4852
|
+
Credentials | HttpClient.HttpClient
|
|
4853
|
+
>;
|
|
4854
|
+
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
4413
4855
|
input: ListTokensRequest,
|
|
4414
4856
|
output: ListTokensResponse,
|
|
4415
4857
|
errors: [InvalidRoute],
|
|
4858
|
+
pagination: {
|
|
4859
|
+
mode: "page",
|
|
4860
|
+
inputToken: "page",
|
|
4861
|
+
outputToken: "resultInfo.page",
|
|
4862
|
+
items: "result",
|
|
4863
|
+
pageSize: "perPage",
|
|
4864
|
+
} as const,
|
|
4416
4865
|
}));
|
|
4417
4866
|
|
|
4418
4867
|
export interface CreateTokenRequest {
|
|
@@ -4474,23 +4923,27 @@ export const CreateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
4474
4923
|
legacy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
4475
4924
|
modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4476
4925
|
syncedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4477
|
-
})
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
)
|
|
4926
|
+
})
|
|
4927
|
+
.pipe(
|
|
4928
|
+
Schema.encodeKeys({
|
|
4929
|
+
id: "id",
|
|
4930
|
+
accountId: "account_id",
|
|
4931
|
+
accountTag: "account_tag",
|
|
4932
|
+
cfApiId: "cf_api_id",
|
|
4933
|
+
cfApiKey: "cf_api_key",
|
|
4934
|
+
createdAt: "created_at",
|
|
4935
|
+
modifiedAt: "modified_at",
|
|
4936
|
+
name: "name",
|
|
4937
|
+
createdBy: "created_by",
|
|
4938
|
+
enabled: "enabled",
|
|
4939
|
+
legacy: "legacy",
|
|
4940
|
+
modifiedBy: "modified_by",
|
|
4941
|
+
syncedAt: "synced_at",
|
|
4942
|
+
}),
|
|
4943
|
+
)
|
|
4944
|
+
.pipe(
|
|
4945
|
+
T.ResponsePath("result"),
|
|
4946
|
+
) as unknown as Schema.Schema<CreateTokenResponse>;
|
|
4494
4947
|
|
|
4495
4948
|
export type CreateTokenError =
|
|
4496
4949
|
| DefaultErrors
|
|
@@ -4554,23 +5007,27 @@ export const UpdateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
4554
5007
|
legacy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
4555
5008
|
modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4556
5009
|
syncedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4557
|
-
})
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
)
|
|
5010
|
+
})
|
|
5011
|
+
.pipe(
|
|
5012
|
+
Schema.encodeKeys({
|
|
5013
|
+
id: "id",
|
|
5014
|
+
accountId: "account_id",
|
|
5015
|
+
accountTag: "account_tag",
|
|
5016
|
+
cfApiId: "cf_api_id",
|
|
5017
|
+
cfApiKey: "cf_api_key",
|
|
5018
|
+
createdAt: "created_at",
|
|
5019
|
+
modifiedAt: "modified_at",
|
|
5020
|
+
name: "name",
|
|
5021
|
+
createdBy: "created_by",
|
|
5022
|
+
enabled: "enabled",
|
|
5023
|
+
legacy: "legacy",
|
|
5024
|
+
modifiedBy: "modified_by",
|
|
5025
|
+
syncedAt: "synced_at",
|
|
5026
|
+
}),
|
|
5027
|
+
)
|
|
5028
|
+
.pipe(
|
|
5029
|
+
T.ResponsePath("result"),
|
|
5030
|
+
) as unknown as Schema.Schema<UpdateTokenResponse>;
|
|
4574
5031
|
|
|
4575
5032
|
export type UpdateTokenError =
|
|
4576
5033
|
| DefaultErrors
|
|
@@ -4634,23 +5091,27 @@ export const DeleteTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
4634
5091
|
legacy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
4635
5092
|
modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4636
5093
|
syncedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4637
|
-
})
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
)
|
|
5094
|
+
})
|
|
5095
|
+
.pipe(
|
|
5096
|
+
Schema.encodeKeys({
|
|
5097
|
+
id: "id",
|
|
5098
|
+
accountId: "account_id",
|
|
5099
|
+
accountTag: "account_tag",
|
|
5100
|
+
cfApiId: "cf_api_id",
|
|
5101
|
+
cfApiKey: "cf_api_key",
|
|
5102
|
+
createdAt: "created_at",
|
|
5103
|
+
modifiedAt: "modified_at",
|
|
5104
|
+
name: "name",
|
|
5105
|
+
createdBy: "created_by",
|
|
5106
|
+
enabled: "enabled",
|
|
5107
|
+
legacy: "legacy",
|
|
5108
|
+
modifiedBy: "modified_by",
|
|
5109
|
+
syncedAt: "synced_at",
|
|
5110
|
+
}),
|
|
5111
|
+
)
|
|
5112
|
+
.pipe(
|
|
5113
|
+
T.ResponsePath("result"),
|
|
5114
|
+
) as unknown as Schema.Schema<DeleteTokenResponse>;
|
|
4654
5115
|
|
|
4655
5116
|
export type DeleteTokenError =
|
|
4656
5117
|
| DefaultErrors
|
|
@@ -4714,23 +5175,27 @@ export const ReadTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
4714
5175
|
legacy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
4715
5176
|
modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4716
5177
|
syncedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4717
|
-
})
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
)
|
|
5178
|
+
})
|
|
5179
|
+
.pipe(
|
|
5180
|
+
Schema.encodeKeys({
|
|
5181
|
+
id: "id",
|
|
5182
|
+
accountId: "account_id",
|
|
5183
|
+
accountTag: "account_tag",
|
|
5184
|
+
cfApiId: "cf_api_id",
|
|
5185
|
+
cfApiKey: "cf_api_key",
|
|
5186
|
+
createdAt: "created_at",
|
|
5187
|
+
modifiedAt: "modified_at",
|
|
5188
|
+
name: "name",
|
|
5189
|
+
createdBy: "created_by",
|
|
5190
|
+
enabled: "enabled",
|
|
5191
|
+
legacy: "legacy",
|
|
5192
|
+
modifiedBy: "modified_by",
|
|
5193
|
+
syncedAt: "synced_at",
|
|
5194
|
+
}),
|
|
5195
|
+
)
|
|
5196
|
+
.pipe(
|
|
5197
|
+
T.ResponsePath("result"),
|
|
5198
|
+
) as unknown as Schema.Schema<ReadTokenResponse>;
|
|
4734
5199
|
|
|
4735
5200
|
export type ReadTokenError =
|
|
4736
5201
|
| DefaultErrors
|