@distilled.cloud/cloudflare 0.2.6 → 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/lib/services/aisearch.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* Generated from Cloudflare TypeScript SDK.
|
|
5
5
|
* DO NOT EDIT - regenerate with: bun scripts/generate.ts --service aisearch
|
|
6
6
|
*/
|
|
7
|
+
import * as stream from "effect/Stream";
|
|
7
8
|
import * as Schema from "effect/Schema";
|
|
8
9
|
import * as API from "../client/api.js";
|
|
9
10
|
import * as T from "../traits.js";
|
|
@@ -33,314 +34,337 @@ export const ListInstancesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
33
34
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
34
35
|
search: Schema.optional(Schema.String).pipe(T.HttpQuery("search")),
|
|
35
36
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/ai-search/instances" }));
|
|
36
|
-
export const ListInstancesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
Schema.
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
Schema.
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
Schema.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
Schema.
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
37
|
+
export const ListInstancesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
38
|
+
result: Schema.Array(Schema.Struct({
|
|
39
|
+
id: Schema.String,
|
|
40
|
+
accountId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
41
|
+
accountTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
42
|
+
createdAt: Schema.String,
|
|
43
|
+
internalId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
44
|
+
modifiedAt: Schema.String,
|
|
45
|
+
source: Schema.String,
|
|
46
|
+
tokenId: Schema.String,
|
|
47
|
+
type: Schema.Literals(["r2", "web-crawler"]),
|
|
48
|
+
vectorizeName: Schema.String,
|
|
49
|
+
aiGatewayId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
50
|
+
aiSearchModel: Schema.optional(Schema.Union([
|
|
51
|
+
Schema.Literals([
|
|
52
|
+
"@cf/meta/llama-3.3-70b-instruct-fp8-fast",
|
|
53
|
+
"@cf/meta/llama-3.1-8b-instruct-fast",
|
|
54
|
+
"@cf/meta/llama-3.1-8b-instruct-fp8",
|
|
55
|
+
"@cf/meta/llama-4-scout-17b-16e-instruct",
|
|
56
|
+
"@cf/qwen/qwen3-30b-a3b-fp8",
|
|
57
|
+
"@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
|
|
58
|
+
"@cf/moonshotai/kimi-k2-instruct",
|
|
59
|
+
"anthropic/claude-3-7-sonnet",
|
|
60
|
+
"anthropic/claude-sonnet-4",
|
|
61
|
+
"anthropic/claude-opus-4",
|
|
62
|
+
"anthropic/claude-3-5-haiku",
|
|
63
|
+
"cerebras/qwen-3-235b-a22b-instruct",
|
|
64
|
+
"cerebras/qwen-3-235b-a22b-thinking",
|
|
65
|
+
"cerebras/llama-3.3-70b",
|
|
66
|
+
"cerebras/llama-4-maverick-17b-128e-instruct",
|
|
67
|
+
"cerebras/llama-4-scout-17b-16e-instruct",
|
|
68
|
+
"cerebras/gpt-oss-120b",
|
|
69
|
+
"google-ai-studio/gemini-2.5-flash",
|
|
70
|
+
"google-ai-studio/gemini-2.5-pro",
|
|
71
|
+
"grok/grok-4",
|
|
72
|
+
"groq/llama-3.3-70b-versatile",
|
|
73
|
+
"groq/llama-3.1-8b-instant",
|
|
74
|
+
"openai/gpt-5",
|
|
75
|
+
"openai/gpt-5-mini",
|
|
76
|
+
"openai/gpt-5-nano",
|
|
77
|
+
"",
|
|
78
|
+
]),
|
|
79
|
+
Schema.Null,
|
|
80
|
+
])),
|
|
81
|
+
cache: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
82
|
+
cacheThreshold: Schema.optional(Schema.Union([
|
|
83
|
+
Schema.Literal("super_strict_match"),
|
|
84
|
+
Schema.Literal("close_enough"),
|
|
85
|
+
Schema.Literal("flexible_friend"),
|
|
86
|
+
Schema.Literal("anything_goes"),
|
|
87
|
+
Schema.Null,
|
|
88
|
+
])),
|
|
89
|
+
chunk: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
90
|
+
chunkOverlap: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
91
|
+
chunkSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
92
|
+
createdBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
93
|
+
embeddingModel: Schema.optional(Schema.Union([
|
|
94
|
+
Schema.Literals([
|
|
95
|
+
"@cf/baai/bge-m3",
|
|
96
|
+
"@cf/baai/bge-large-en-v1.5",
|
|
97
|
+
"@cf/google/embeddinggemma-300m",
|
|
98
|
+
"@cf/qwen/qwen3-embedding-0.6b",
|
|
99
|
+
"google-ai-studio/gemini-embedding-001",
|
|
100
|
+
"openai/text-embedding-3-small",
|
|
101
|
+
"openai/text-embedding-3-large",
|
|
102
|
+
"",
|
|
103
|
+
]),
|
|
104
|
+
Schema.Null,
|
|
105
|
+
])),
|
|
106
|
+
enable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
107
|
+
engineVersion: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
108
|
+
hybridSearchEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
109
|
+
lastActivity: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
110
|
+
maxNumResults: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
111
|
+
metadata: Schema.optional(Schema.Union([
|
|
112
|
+
Schema.Struct({
|
|
113
|
+
createdFromAisearchWizard: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
114
|
+
workerDomain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
115
|
+
}).pipe(Schema.encodeKeys({
|
|
116
|
+
createdFromAisearchWizard: "created_from_aisearch_wizard",
|
|
117
|
+
workerDomain: "worker_domain",
|
|
118
|
+
})),
|
|
119
|
+
Schema.Null,
|
|
120
|
+
])),
|
|
121
|
+
modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
122
|
+
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
123
|
+
publicEndpointId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
124
|
+
publicEndpointParams: Schema.optional(Schema.Union([
|
|
125
|
+
Schema.Struct({
|
|
126
|
+
authorizedHosts: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
127
|
+
chatCompletionsEndpoint: Schema.optional(Schema.Union([
|
|
128
|
+
Schema.Struct({
|
|
129
|
+
disabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
130
|
+
}),
|
|
131
|
+
Schema.Null,
|
|
132
|
+
])),
|
|
133
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
134
|
+
mcp: Schema.optional(Schema.Union([
|
|
135
|
+
Schema.Struct({
|
|
136
|
+
disabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
137
|
+
}),
|
|
138
|
+
Schema.Null,
|
|
139
|
+
])),
|
|
140
|
+
rateLimit: Schema.optional(Schema.Union([
|
|
141
|
+
Schema.Struct({
|
|
142
|
+
periodMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
143
|
+
requests: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
144
|
+
technique: Schema.optional(Schema.Union([
|
|
145
|
+
Schema.Literals(["fixed", "sliding"]),
|
|
146
|
+
Schema.Null,
|
|
147
|
+
])),
|
|
148
|
+
}).pipe(Schema.encodeKeys({
|
|
149
|
+
periodMs: "period_ms",
|
|
150
|
+
requests: "requests",
|
|
151
|
+
technique: "technique",
|
|
152
|
+
})),
|
|
153
|
+
Schema.Null,
|
|
154
|
+
])),
|
|
155
|
+
searchEndpoint: Schema.optional(Schema.Union([
|
|
156
|
+
Schema.Struct({
|
|
157
|
+
disabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
158
|
+
}),
|
|
159
|
+
Schema.Null,
|
|
160
|
+
])),
|
|
161
|
+
}).pipe(Schema.encodeKeys({
|
|
162
|
+
authorizedHosts: "authorized_hosts",
|
|
163
|
+
chatCompletionsEndpoint: "chat_completions_endpoint",
|
|
164
|
+
enabled: "enabled",
|
|
165
|
+
mcp: "mcp",
|
|
166
|
+
rateLimit: "rate_limit",
|
|
167
|
+
searchEndpoint: "search_endpoint",
|
|
168
|
+
})),
|
|
169
|
+
Schema.Null,
|
|
170
|
+
])),
|
|
171
|
+
reranking: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
172
|
+
rerankingModel: Schema.optional(Schema.Union([
|
|
173
|
+
Schema.Literals(["@cf/baai/bge-reranker-base", ""]),
|
|
174
|
+
Schema.Null,
|
|
175
|
+
])),
|
|
176
|
+
rewriteModel: Schema.optional(Schema.Union([
|
|
177
|
+
Schema.Literals([
|
|
178
|
+
"@cf/meta/llama-3.3-70b-instruct-fp8-fast",
|
|
179
|
+
"@cf/meta/llama-3.1-8b-instruct-fast",
|
|
180
|
+
"@cf/meta/llama-3.1-8b-instruct-fp8",
|
|
181
|
+
"@cf/meta/llama-4-scout-17b-16e-instruct",
|
|
182
|
+
"@cf/qwen/qwen3-30b-a3b-fp8",
|
|
183
|
+
"@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
|
|
184
|
+
"@cf/moonshotai/kimi-k2-instruct",
|
|
185
|
+
"anthropic/claude-3-7-sonnet",
|
|
186
|
+
"anthropic/claude-sonnet-4",
|
|
187
|
+
"anthropic/claude-opus-4",
|
|
188
|
+
"anthropic/claude-3-5-haiku",
|
|
189
|
+
"cerebras/qwen-3-235b-a22b-instruct",
|
|
190
|
+
"cerebras/qwen-3-235b-a22b-thinking",
|
|
191
|
+
"cerebras/llama-3.3-70b",
|
|
192
|
+
"cerebras/llama-4-maverick-17b-128e-instruct",
|
|
193
|
+
"cerebras/llama-4-scout-17b-16e-instruct",
|
|
194
|
+
"cerebras/gpt-oss-120b",
|
|
195
|
+
"google-ai-studio/gemini-2.5-flash",
|
|
196
|
+
"google-ai-studio/gemini-2.5-pro",
|
|
197
|
+
"grok/grok-4",
|
|
198
|
+
"groq/llama-3.3-70b-versatile",
|
|
199
|
+
"groq/llama-3.1-8b-instant",
|
|
200
|
+
"openai/gpt-5",
|
|
201
|
+
"openai/gpt-5-mini",
|
|
202
|
+
"openai/gpt-5-nano",
|
|
203
|
+
"",
|
|
204
|
+
]),
|
|
205
|
+
Schema.Null,
|
|
206
|
+
])),
|
|
207
|
+
rewriteQuery: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
208
|
+
scoreThreshold: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
209
|
+
sourceParams: Schema.optional(Schema.Union([
|
|
210
|
+
Schema.Struct({
|
|
211
|
+
excludeItems: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
212
|
+
includeItems: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
213
|
+
prefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
214
|
+
r2Jurisdiction: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
215
|
+
webCrawler: Schema.optional(Schema.Union([
|
|
216
|
+
Schema.Struct({
|
|
217
|
+
parseOptions: Schema.optional(Schema.Union([
|
|
218
|
+
Schema.Struct({
|
|
219
|
+
includeHeaders: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
220
|
+
includeImages: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
221
|
+
useBrowserRendering: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
222
|
+
}).pipe(Schema.encodeKeys({
|
|
223
|
+
includeHeaders: "include_headers",
|
|
224
|
+
includeImages: "include_images",
|
|
225
|
+
useBrowserRendering: "use_browser_rendering",
|
|
226
|
+
})),
|
|
227
|
+
Schema.Null,
|
|
228
|
+
])),
|
|
229
|
+
parseType: Schema.optional(Schema.Union([
|
|
230
|
+
Schema.Literals(["sitemap", "feed-rss"]),
|
|
231
|
+
Schema.Null,
|
|
232
|
+
])),
|
|
233
|
+
storeOptions: Schema.optional(Schema.Union([
|
|
234
|
+
Schema.Struct({
|
|
235
|
+
storageId: Schema.String,
|
|
236
|
+
r2Jurisdiction: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
237
|
+
storageType: Schema.optional(Schema.Union([Schema.Literal("r2"), Schema.Null])),
|
|
238
|
+
}).pipe(Schema.encodeKeys({
|
|
239
|
+
storageId: "storage_id",
|
|
240
|
+
r2Jurisdiction: "r2_jurisdiction",
|
|
241
|
+
storageType: "storage_type",
|
|
242
|
+
})),
|
|
243
|
+
Schema.Null,
|
|
244
|
+
])),
|
|
245
|
+
}).pipe(Schema.encodeKeys({
|
|
246
|
+
parseOptions: "parse_options",
|
|
247
|
+
parseType: "parse_type",
|
|
248
|
+
storeOptions: "store_options",
|
|
249
|
+
})),
|
|
250
|
+
Schema.Null,
|
|
251
|
+
])),
|
|
252
|
+
}).pipe(Schema.encodeKeys({
|
|
253
|
+
excludeItems: "exclude_items",
|
|
254
|
+
includeItems: "include_items",
|
|
255
|
+
prefix: "prefix",
|
|
256
|
+
r2Jurisdiction: "r2_jurisdiction",
|
|
257
|
+
webCrawler: "web_crawler",
|
|
258
|
+
})),
|
|
259
|
+
Schema.Null,
|
|
260
|
+
])),
|
|
261
|
+
status: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
262
|
+
summarization: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
263
|
+
summarizationModel: Schema.optional(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,
|
|
293
|
+
])),
|
|
294
|
+
systemPromptAiSearch: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
295
|
+
systemPromptIndexSummarization: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
296
|
+
systemPromptRewriteQuery: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
297
|
+
vectorizeActiveNamespace: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
298
|
+
}).pipe(Schema.encodeKeys({
|
|
299
|
+
id: "id",
|
|
300
|
+
accountId: "account_id",
|
|
301
|
+
accountTag: "account_tag",
|
|
302
|
+
createdAt: "created_at",
|
|
303
|
+
internalId: "internal_id",
|
|
304
|
+
modifiedAt: "modified_at",
|
|
305
|
+
source: "source",
|
|
306
|
+
tokenId: "token_id",
|
|
307
|
+
type: "type",
|
|
308
|
+
vectorizeName: "vectorize_name",
|
|
309
|
+
aiGatewayId: "ai_gateway_id",
|
|
310
|
+
aiSearchModel: "ai_search_model",
|
|
311
|
+
cache: "cache",
|
|
312
|
+
cacheThreshold: "cache_threshold",
|
|
313
|
+
chunk: "chunk",
|
|
314
|
+
chunkOverlap: "chunk_overlap",
|
|
315
|
+
chunkSize: "chunk_size",
|
|
316
|
+
createdBy: "created_by",
|
|
317
|
+
embeddingModel: "embedding_model",
|
|
318
|
+
enable: "enable",
|
|
319
|
+
engineVersion: "engine_version",
|
|
320
|
+
hybridSearchEnabled: "hybrid_search_enabled",
|
|
321
|
+
lastActivity: "last_activity",
|
|
322
|
+
maxNumResults: "max_num_results",
|
|
323
|
+
metadata: "metadata",
|
|
324
|
+
modifiedBy: "modified_by",
|
|
325
|
+
paused: "paused",
|
|
326
|
+
publicEndpointId: "public_endpoint_id",
|
|
327
|
+
publicEndpointParams: "public_endpoint_params",
|
|
328
|
+
reranking: "reranking",
|
|
329
|
+
rerankingModel: "reranking_model",
|
|
330
|
+
rewriteModel: "rewrite_model",
|
|
331
|
+
rewriteQuery: "rewrite_query",
|
|
332
|
+
scoreThreshold: "score_threshold",
|
|
333
|
+
sourceParams: "source_params",
|
|
334
|
+
status: "status",
|
|
335
|
+
summarization: "summarization",
|
|
336
|
+
summarizationModel: "summarization_model",
|
|
337
|
+
systemPromptAiSearch: "system_prompt_ai_search",
|
|
338
|
+
systemPromptIndexSummarization: "system_prompt_index_summarization",
|
|
339
|
+
systemPromptRewriteQuery: "system_prompt_rewrite_query",
|
|
340
|
+
vectorizeActiveNamespace: "vectorize_active_namespace",
|
|
341
|
+
}))),
|
|
342
|
+
resultInfo: Schema.optional(Schema.Union([
|
|
123
343
|
Schema.Struct({
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}),
|
|
129
|
-
Schema.Null,
|
|
130
|
-
])),
|
|
131
|
-
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
132
|
-
mcp: Schema.optional(Schema.Union([
|
|
133
|
-
Schema.Struct({
|
|
134
|
-
disabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
135
|
-
}),
|
|
136
|
-
Schema.Null,
|
|
137
|
-
])),
|
|
138
|
-
rateLimit: Schema.optional(Schema.Union([
|
|
139
|
-
Schema.Struct({
|
|
140
|
-
periodMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
141
|
-
requests: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
142
|
-
technique: Schema.optional(Schema.Union([
|
|
143
|
-
Schema.Literals(["fixed", "sliding"]),
|
|
144
|
-
Schema.Null,
|
|
145
|
-
])),
|
|
146
|
-
}).pipe(Schema.encodeKeys({
|
|
147
|
-
periodMs: "period_ms",
|
|
148
|
-
requests: "requests",
|
|
149
|
-
technique: "technique",
|
|
150
|
-
})),
|
|
151
|
-
Schema.Null,
|
|
152
|
-
])),
|
|
153
|
-
searchEndpoint: Schema.optional(Schema.Union([
|
|
154
|
-
Schema.Struct({
|
|
155
|
-
disabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
156
|
-
}),
|
|
157
|
-
Schema.Null,
|
|
158
|
-
])),
|
|
344
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
345
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
346
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
347
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
159
348
|
}).pipe(Schema.encodeKeys({
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
rateLimit: "rate_limit",
|
|
165
|
-
searchEndpoint: "search_endpoint",
|
|
349
|
+
count: "count",
|
|
350
|
+
page: "page",
|
|
351
|
+
perPage: "per_page",
|
|
352
|
+
totalCount: "total_count",
|
|
166
353
|
})),
|
|
167
354
|
Schema.Null,
|
|
168
355
|
])),
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
Schema.Literals(["@cf/baai/bge-reranker-base", ""]),
|
|
172
|
-
Schema.Null,
|
|
173
|
-
])),
|
|
174
|
-
rewriteModel: Schema.optional(Schema.Union([
|
|
175
|
-
Schema.Literals([
|
|
176
|
-
"@cf/meta/llama-3.3-70b-instruct-fp8-fast",
|
|
177
|
-
"@cf/meta/llama-3.1-8b-instruct-fast",
|
|
178
|
-
"@cf/meta/llama-3.1-8b-instruct-fp8",
|
|
179
|
-
"@cf/meta/llama-4-scout-17b-16e-instruct",
|
|
180
|
-
"@cf/qwen/qwen3-30b-a3b-fp8",
|
|
181
|
-
"@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
|
|
182
|
-
"@cf/moonshotai/kimi-k2-instruct",
|
|
183
|
-
"anthropic/claude-3-7-sonnet",
|
|
184
|
-
"anthropic/claude-sonnet-4",
|
|
185
|
-
"anthropic/claude-opus-4",
|
|
186
|
-
"anthropic/claude-3-5-haiku",
|
|
187
|
-
"cerebras/qwen-3-235b-a22b-instruct",
|
|
188
|
-
"cerebras/qwen-3-235b-a22b-thinking",
|
|
189
|
-
"cerebras/llama-3.3-70b",
|
|
190
|
-
"cerebras/llama-4-maverick-17b-128e-instruct",
|
|
191
|
-
"cerebras/llama-4-scout-17b-16e-instruct",
|
|
192
|
-
"cerebras/gpt-oss-120b",
|
|
193
|
-
"google-ai-studio/gemini-2.5-flash",
|
|
194
|
-
"google-ai-studio/gemini-2.5-pro",
|
|
195
|
-
"grok/grok-4",
|
|
196
|
-
"groq/llama-3.3-70b-versatile",
|
|
197
|
-
"groq/llama-3.1-8b-instant",
|
|
198
|
-
"openai/gpt-5",
|
|
199
|
-
"openai/gpt-5-mini",
|
|
200
|
-
"openai/gpt-5-nano",
|
|
201
|
-
"",
|
|
202
|
-
]),
|
|
203
|
-
Schema.Null,
|
|
204
|
-
])),
|
|
205
|
-
rewriteQuery: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
206
|
-
scoreThreshold: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
207
|
-
sourceParams: Schema.optional(Schema.Union([
|
|
208
|
-
Schema.Struct({
|
|
209
|
-
excludeItems: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
210
|
-
includeItems: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
211
|
-
prefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
212
|
-
r2Jurisdiction: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
213
|
-
webCrawler: Schema.optional(Schema.Union([
|
|
214
|
-
Schema.Struct({
|
|
215
|
-
parseOptions: Schema.optional(Schema.Union([
|
|
216
|
-
Schema.Struct({
|
|
217
|
-
includeHeaders: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
218
|
-
includeImages: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
219
|
-
useBrowserRendering: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
220
|
-
}).pipe(Schema.encodeKeys({
|
|
221
|
-
includeHeaders: "include_headers",
|
|
222
|
-
includeImages: "include_images",
|
|
223
|
-
useBrowserRendering: "use_browser_rendering",
|
|
224
|
-
})),
|
|
225
|
-
Schema.Null,
|
|
226
|
-
])),
|
|
227
|
-
parseType: Schema.optional(Schema.Union([
|
|
228
|
-
Schema.Literals(["sitemap", "feed-rss"]),
|
|
229
|
-
Schema.Null,
|
|
230
|
-
])),
|
|
231
|
-
storeOptions: Schema.optional(Schema.Union([
|
|
232
|
-
Schema.Struct({
|
|
233
|
-
storageId: Schema.String,
|
|
234
|
-
r2Jurisdiction: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
235
|
-
storageType: Schema.optional(Schema.Union([Schema.Literal("r2"), Schema.Null])),
|
|
236
|
-
}).pipe(Schema.encodeKeys({
|
|
237
|
-
storageId: "storage_id",
|
|
238
|
-
r2Jurisdiction: "r2_jurisdiction",
|
|
239
|
-
storageType: "storage_type",
|
|
240
|
-
})),
|
|
241
|
-
Schema.Null,
|
|
242
|
-
])),
|
|
243
|
-
}).pipe(Schema.encodeKeys({
|
|
244
|
-
parseOptions: "parse_options",
|
|
245
|
-
parseType: "parse_type",
|
|
246
|
-
storeOptions: "store_options",
|
|
247
|
-
})),
|
|
248
|
-
Schema.Null,
|
|
249
|
-
])),
|
|
250
|
-
}).pipe(Schema.encodeKeys({
|
|
251
|
-
excludeItems: "exclude_items",
|
|
252
|
-
includeItems: "include_items",
|
|
253
|
-
prefix: "prefix",
|
|
254
|
-
r2Jurisdiction: "r2_jurisdiction",
|
|
255
|
-
webCrawler: "web_crawler",
|
|
256
|
-
})),
|
|
257
|
-
Schema.Null,
|
|
258
|
-
])),
|
|
259
|
-
status: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
260
|
-
summarization: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
261
|
-
summarizationModel: Schema.optional(Schema.Union([
|
|
262
|
-
Schema.Literals([
|
|
263
|
-
"@cf/meta/llama-3.3-70b-instruct-fp8-fast",
|
|
264
|
-
"@cf/meta/llama-3.1-8b-instruct-fast",
|
|
265
|
-
"@cf/meta/llama-3.1-8b-instruct-fp8",
|
|
266
|
-
"@cf/meta/llama-4-scout-17b-16e-instruct",
|
|
267
|
-
"@cf/qwen/qwen3-30b-a3b-fp8",
|
|
268
|
-
"@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",
|
|
269
|
-
"@cf/moonshotai/kimi-k2-instruct",
|
|
270
|
-
"anthropic/claude-3-7-sonnet",
|
|
271
|
-
"anthropic/claude-sonnet-4",
|
|
272
|
-
"anthropic/claude-opus-4",
|
|
273
|
-
"anthropic/claude-3-5-haiku",
|
|
274
|
-
"cerebras/qwen-3-235b-a22b-instruct",
|
|
275
|
-
"cerebras/qwen-3-235b-a22b-thinking",
|
|
276
|
-
"cerebras/llama-3.3-70b",
|
|
277
|
-
"cerebras/llama-4-maverick-17b-128e-instruct",
|
|
278
|
-
"cerebras/llama-4-scout-17b-16e-instruct",
|
|
279
|
-
"cerebras/gpt-oss-120b",
|
|
280
|
-
"google-ai-studio/gemini-2.5-flash",
|
|
281
|
-
"google-ai-studio/gemini-2.5-pro",
|
|
282
|
-
"grok/grok-4",
|
|
283
|
-
"groq/llama-3.3-70b-versatile",
|
|
284
|
-
"groq/llama-3.1-8b-instant",
|
|
285
|
-
"openai/gpt-5",
|
|
286
|
-
"openai/gpt-5-mini",
|
|
287
|
-
"openai/gpt-5-nano",
|
|
288
|
-
"",
|
|
289
|
-
]),
|
|
290
|
-
Schema.Null,
|
|
291
|
-
])),
|
|
292
|
-
systemPromptAiSearch: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
293
|
-
systemPromptIndexSummarization: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
294
|
-
systemPromptRewriteQuery: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
295
|
-
vectorizeActiveNamespace: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
296
|
-
}).pipe(Schema.encodeKeys({
|
|
297
|
-
id: "id",
|
|
298
|
-
accountId: "account_id",
|
|
299
|
-
accountTag: "account_tag",
|
|
300
|
-
createdAt: "created_at",
|
|
301
|
-
internalId: "internal_id",
|
|
302
|
-
modifiedAt: "modified_at",
|
|
303
|
-
source: "source",
|
|
304
|
-
tokenId: "token_id",
|
|
305
|
-
type: "type",
|
|
306
|
-
vectorizeName: "vectorize_name",
|
|
307
|
-
aiGatewayId: "ai_gateway_id",
|
|
308
|
-
aiSearchModel: "ai_search_model",
|
|
309
|
-
cache: "cache",
|
|
310
|
-
cacheThreshold: "cache_threshold",
|
|
311
|
-
chunk: "chunk",
|
|
312
|
-
chunkOverlap: "chunk_overlap",
|
|
313
|
-
chunkSize: "chunk_size",
|
|
314
|
-
createdBy: "created_by",
|
|
315
|
-
embeddingModel: "embedding_model",
|
|
316
|
-
enable: "enable",
|
|
317
|
-
engineVersion: "engine_version",
|
|
318
|
-
hybridSearchEnabled: "hybrid_search_enabled",
|
|
319
|
-
lastActivity: "last_activity",
|
|
320
|
-
maxNumResults: "max_num_results",
|
|
321
|
-
metadata: "metadata",
|
|
322
|
-
modifiedBy: "modified_by",
|
|
323
|
-
paused: "paused",
|
|
324
|
-
publicEndpointId: "public_endpoint_id",
|
|
325
|
-
publicEndpointParams: "public_endpoint_params",
|
|
326
|
-
reranking: "reranking",
|
|
327
|
-
rerankingModel: "reranking_model",
|
|
328
|
-
rewriteModel: "rewrite_model",
|
|
329
|
-
rewriteQuery: "rewrite_query",
|
|
330
|
-
scoreThreshold: "score_threshold",
|
|
331
|
-
sourceParams: "source_params",
|
|
332
|
-
status: "status",
|
|
333
|
-
summarization: "summarization",
|
|
334
|
-
summarizationModel: "summarization_model",
|
|
335
|
-
systemPromptAiSearch: "system_prompt_ai_search",
|
|
336
|
-
systemPromptIndexSummarization: "system_prompt_index_summarization",
|
|
337
|
-
systemPromptRewriteQuery: "system_prompt_rewrite_query",
|
|
338
|
-
vectorizeActiveNamespace: "vectorize_active_namespace",
|
|
339
|
-
})));
|
|
340
|
-
export const listInstances = API.make(() => ({
|
|
356
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
357
|
+
export const listInstances = API.makePaginated(() => ({
|
|
341
358
|
input: ListInstancesRequest,
|
|
342
359
|
output: ListInstancesResponse,
|
|
343
360
|
errors: [InvalidRoute],
|
|
361
|
+
pagination: {
|
|
362
|
+
mode: "page",
|
|
363
|
+
inputToken: "page",
|
|
364
|
+
outputToken: "resultInfo.page",
|
|
365
|
+
items: "result",
|
|
366
|
+
pageSize: "perPage",
|
|
367
|
+
},
|
|
344
368
|
}));
|
|
345
369
|
export const CreateInstanceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
346
370
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -782,7 +806,8 @@ export const CreateInstanceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
782
806
|
systemPromptIndexSummarization: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
783
807
|
systemPromptRewriteQuery: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
784
808
|
vectorizeActiveNamespace: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
785
|
-
})
|
|
809
|
+
})
|
|
810
|
+
.pipe(Schema.encodeKeys({
|
|
786
811
|
id: "id",
|
|
787
812
|
accountId: "account_id",
|
|
788
813
|
accountTag: "account_tag",
|
|
@@ -825,7 +850,8 @@ export const CreateInstanceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
825
850
|
systemPromptIndexSummarization: "system_prompt_index_summarization",
|
|
826
851
|
systemPromptRewriteQuery: "system_prompt_rewrite_query",
|
|
827
852
|
vectorizeActiveNamespace: "vectorize_active_namespace",
|
|
828
|
-
}))
|
|
853
|
+
}))
|
|
854
|
+
.pipe(T.ResponsePath("result"));
|
|
829
855
|
export const createInstance = API.make(() => ({
|
|
830
856
|
input: CreateInstanceRequest,
|
|
831
857
|
output: CreateInstanceResponse,
|
|
@@ -1314,7 +1340,8 @@ export const UpdateInstanceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
1314
1340
|
systemPromptIndexSummarization: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1315
1341
|
systemPromptRewriteQuery: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1316
1342
|
vectorizeActiveNamespace: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1317
|
-
})
|
|
1343
|
+
})
|
|
1344
|
+
.pipe(Schema.encodeKeys({
|
|
1318
1345
|
id: "id",
|
|
1319
1346
|
accountId: "account_id",
|
|
1320
1347
|
accountTag: "account_tag",
|
|
@@ -1357,7 +1384,8 @@ export const UpdateInstanceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
1357
1384
|
systemPromptIndexSummarization: "system_prompt_index_summarization",
|
|
1358
1385
|
systemPromptRewriteQuery: "system_prompt_rewrite_query",
|
|
1359
1386
|
vectorizeActiveNamespace: "vectorize_active_namespace",
|
|
1360
|
-
}))
|
|
1387
|
+
}))
|
|
1388
|
+
.pipe(T.ResponsePath("result"));
|
|
1361
1389
|
export const updateInstance = API.make(() => ({
|
|
1362
1390
|
input: UpdateInstanceRequest,
|
|
1363
1391
|
output: UpdateInstanceResponse,
|
|
@@ -1630,7 +1658,8 @@ export const DeleteInstanceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
1630
1658
|
systemPromptIndexSummarization: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1631
1659
|
systemPromptRewriteQuery: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1632
1660
|
vectorizeActiveNamespace: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1633
|
-
})
|
|
1661
|
+
})
|
|
1662
|
+
.pipe(Schema.encodeKeys({
|
|
1634
1663
|
id: "id",
|
|
1635
1664
|
accountId: "account_id",
|
|
1636
1665
|
accountTag: "account_tag",
|
|
@@ -1673,7 +1702,8 @@ export const DeleteInstanceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
1673
1702
|
systemPromptIndexSummarization: "system_prompt_index_summarization",
|
|
1674
1703
|
systemPromptRewriteQuery: "system_prompt_rewrite_query",
|
|
1675
1704
|
vectorizeActiveNamespace: "vectorize_active_namespace",
|
|
1676
|
-
}))
|
|
1705
|
+
}))
|
|
1706
|
+
.pipe(T.ResponsePath("result"));
|
|
1677
1707
|
export const deleteInstance = API.make(() => ({
|
|
1678
1708
|
input: DeleteInstanceRequest,
|
|
1679
1709
|
output: DeleteInstanceResponse,
|
|
@@ -1946,7 +1976,8 @@ export const ReadInstanceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1946
1976
|
systemPromptIndexSummarization: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1947
1977
|
systemPromptRewriteQuery: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1948
1978
|
vectorizeActiveNamespace: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1949
|
-
})
|
|
1979
|
+
})
|
|
1980
|
+
.pipe(Schema.encodeKeys({
|
|
1950
1981
|
id: "id",
|
|
1951
1982
|
accountId: "account_id",
|
|
1952
1983
|
accountTag: "account_tag",
|
|
@@ -1989,7 +2020,8 @@ export const ReadInstanceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1989
2020
|
systemPromptIndexSummarization: "system_prompt_index_summarization",
|
|
1990
2021
|
systemPromptRewriteQuery: "system_prompt_rewrite_query",
|
|
1991
2022
|
vectorizeActiveNamespace: "vectorize_active_namespace",
|
|
1992
|
-
}))
|
|
2023
|
+
}))
|
|
2024
|
+
.pipe(T.ResponsePath("result"));
|
|
1993
2025
|
export const readInstance = API.make(() => ({
|
|
1994
2026
|
input: ReadInstanceRequest,
|
|
1995
2027
|
output: ReadInstanceResponse,
|
|
@@ -2011,7 +2043,8 @@ export const StatsInstanceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2011
2043
|
queued: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2012
2044
|
running: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2013
2045
|
skipped: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2014
|
-
})
|
|
2046
|
+
})
|
|
2047
|
+
.pipe(Schema.encodeKeys({
|
|
2015
2048
|
completed: "completed",
|
|
2016
2049
|
error: "error",
|
|
2017
2050
|
fileEmbedErrors: "file_embed_errors",
|
|
@@ -2020,7 +2053,8 @@ export const StatsInstanceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2020
2053
|
queued: "queued",
|
|
2021
2054
|
running: "running",
|
|
2022
2055
|
skipped: "skipped",
|
|
2023
|
-
}))
|
|
2056
|
+
}))
|
|
2057
|
+
.pipe(T.ResponsePath("result"));
|
|
2024
2058
|
export const statsInstance = API.make(() => ({
|
|
2025
2059
|
input: StatsInstanceRequest,
|
|
2026
2060
|
output: StatsInstanceResponse,
|
|
@@ -2048,14 +2082,16 @@ export const GetInstanceItemResponse =
|
|
|
2048
2082
|
error: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2049
2083
|
lastSeenAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2050
2084
|
nextAction: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2051
|
-
})
|
|
2085
|
+
})
|
|
2086
|
+
.pipe(Schema.encodeKeys({
|
|
2052
2087
|
id: "id",
|
|
2053
2088
|
key: "key",
|
|
2054
2089
|
status: "status",
|
|
2055
2090
|
error: "error",
|
|
2056
2091
|
lastSeenAt: "last_seen_at",
|
|
2057
2092
|
nextAction: "next_action",
|
|
2058
|
-
}))
|
|
2093
|
+
}))
|
|
2094
|
+
.pipe(T.ResponsePath("result"));
|
|
2059
2095
|
export const getInstanceItem = API.make(() => ({
|
|
2060
2096
|
input: GetInstanceItemRequest,
|
|
2061
2097
|
output: GetInstanceItemResponse,
|
|
@@ -2072,31 +2108,54 @@ export const ListInstanceItemsRequest =
|
|
|
2072
2108
|
path: "/accounts/{account_id}/ai-search/instances/{id}/items",
|
|
2073
2109
|
}));
|
|
2074
2110
|
export const ListInstanceItemsResponse =
|
|
2075
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2111
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2112
|
+
result: Schema.Array(Schema.Struct({
|
|
2113
|
+
id: Schema.String,
|
|
2114
|
+
key: Schema.String,
|
|
2115
|
+
status: Schema.Literals([
|
|
2116
|
+
"queued",
|
|
2117
|
+
"running",
|
|
2118
|
+
"completed",
|
|
2119
|
+
"error",
|
|
2120
|
+
"skipped",
|
|
2121
|
+
]),
|
|
2122
|
+
error: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2123
|
+
lastSeenAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2124
|
+
nextAction: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2125
|
+
}).pipe(Schema.encodeKeys({
|
|
2126
|
+
id: "id",
|
|
2127
|
+
key: "key",
|
|
2128
|
+
status: "status",
|
|
2129
|
+
error: "error",
|
|
2130
|
+
lastSeenAt: "last_seen_at",
|
|
2131
|
+
nextAction: "next_action",
|
|
2132
|
+
}))),
|
|
2133
|
+
resultInfo: Schema.optional(Schema.Union([
|
|
2134
|
+
Schema.Struct({
|
|
2135
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2136
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2137
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2138
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2139
|
+
}).pipe(Schema.encodeKeys({
|
|
2140
|
+
count: "count",
|
|
2141
|
+
page: "page",
|
|
2142
|
+
perPage: "per_page",
|
|
2143
|
+
totalCount: "total_count",
|
|
2144
|
+
})),
|
|
2145
|
+
Schema.Null,
|
|
2146
|
+
])),
|
|
2147
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
2148
|
+
export const listInstanceItems = API.makePaginated(() => ({
|
|
2097
2149
|
input: ListInstanceItemsRequest,
|
|
2098
2150
|
output: ListInstanceItemsResponse,
|
|
2099
2151
|
errors: [],
|
|
2152
|
+
pagination: {
|
|
2153
|
+
mode: "page",
|
|
2154
|
+
inputToken: "page",
|
|
2155
|
+
outputToken: "resultInfo.page",
|
|
2156
|
+
items: "result",
|
|
2157
|
+
pageSize: "perPage",
|
|
2158
|
+
},
|
|
2100
2159
|
}));
|
|
2101
2160
|
export const GetInstanceJobRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2102
2161
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
@@ -2113,14 +2172,16 @@ export const GetInstanceJobResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
2113
2172
|
endedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2114
2173
|
lastSeenAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2115
2174
|
startedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2116
|
-
})
|
|
2175
|
+
})
|
|
2176
|
+
.pipe(Schema.encodeKeys({
|
|
2117
2177
|
id: "id",
|
|
2118
2178
|
source: "source",
|
|
2119
2179
|
endReason: "end_reason",
|
|
2120
2180
|
endedAt: "ended_at",
|
|
2121
2181
|
lastSeenAt: "last_seen_at",
|
|
2122
2182
|
startedAt: "started_at",
|
|
2123
|
-
}))
|
|
2183
|
+
}))
|
|
2184
|
+
.pipe(T.ResponsePath("result"));
|
|
2124
2185
|
export const getInstanceJob = API.make(() => ({
|
|
2125
2186
|
input: GetInstanceJobRequest,
|
|
2126
2187
|
output: GetInstanceJobResponse,
|
|
@@ -2135,25 +2196,48 @@ export const ListInstanceJobsRequest =
|
|
|
2135
2196
|
path: "/accounts/{account_id}/ai-search/instances/{id}/jobs",
|
|
2136
2197
|
}));
|
|
2137
2198
|
export const ListInstanceJobsResponse =
|
|
2138
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2199
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2200
|
+
result: Schema.Array(Schema.Struct({
|
|
2201
|
+
id: Schema.String,
|
|
2202
|
+
source: Schema.Literals(["user", "schedule"]),
|
|
2203
|
+
endReason: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2204
|
+
endedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2205
|
+
lastSeenAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2206
|
+
startedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2207
|
+
}).pipe(Schema.encodeKeys({
|
|
2208
|
+
id: "id",
|
|
2209
|
+
source: "source",
|
|
2210
|
+
endReason: "end_reason",
|
|
2211
|
+
endedAt: "ended_at",
|
|
2212
|
+
lastSeenAt: "last_seen_at",
|
|
2213
|
+
startedAt: "started_at",
|
|
2214
|
+
}))),
|
|
2215
|
+
resultInfo: Schema.optional(Schema.Union([
|
|
2216
|
+
Schema.Struct({
|
|
2217
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2218
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2219
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2220
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2221
|
+
}).pipe(Schema.encodeKeys({
|
|
2222
|
+
count: "count",
|
|
2223
|
+
page: "page",
|
|
2224
|
+
perPage: "per_page",
|
|
2225
|
+
totalCount: "total_count",
|
|
2226
|
+
})),
|
|
2227
|
+
Schema.Null,
|
|
2228
|
+
])),
|
|
2229
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
2230
|
+
export const listInstanceJobs = API.makePaginated(() => ({
|
|
2154
2231
|
input: ListInstanceJobsRequest,
|
|
2155
2232
|
output: ListInstanceJobsResponse,
|
|
2156
2233
|
errors: [],
|
|
2234
|
+
pagination: {
|
|
2235
|
+
mode: "page",
|
|
2236
|
+
inputToken: "page",
|
|
2237
|
+
outputToken: "resultInfo.page",
|
|
2238
|
+
items: "result",
|
|
2239
|
+
pageSize: "perPage",
|
|
2240
|
+
},
|
|
2157
2241
|
}));
|
|
2158
2242
|
export const CreateInstanceJobRequest =
|
|
2159
2243
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -2171,14 +2255,16 @@ export const CreateInstanceJobResponse =
|
|
|
2171
2255
|
endedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2172
2256
|
lastSeenAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2173
2257
|
startedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2174
|
-
})
|
|
2258
|
+
})
|
|
2259
|
+
.pipe(Schema.encodeKeys({
|
|
2175
2260
|
id: "id",
|
|
2176
2261
|
source: "source",
|
|
2177
2262
|
endReason: "end_reason",
|
|
2178
2263
|
endedAt: "ended_at",
|
|
2179
2264
|
lastSeenAt: "last_seen_at",
|
|
2180
2265
|
startedAt: "started_at",
|
|
2181
|
-
}))
|
|
2266
|
+
}))
|
|
2267
|
+
.pipe(T.ResponsePath("result"));
|
|
2182
2268
|
export const createInstanceJob = API.make(() => ({
|
|
2183
2269
|
input: CreateInstanceJobRequest,
|
|
2184
2270
|
output: CreateInstanceJobResponse,
|
|
@@ -2210,7 +2296,7 @@ export const LogsInstanceJobResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
|
2210
2296
|
createdAt: "created_at",
|
|
2211
2297
|
message: "message",
|
|
2212
2298
|
messageType: "message_type",
|
|
2213
|
-
})));
|
|
2299
|
+
}))).pipe(T.ResponsePath("result"));
|
|
2214
2300
|
export const logsInstanceJob = API.make(() => ({
|
|
2215
2301
|
input: LogsInstanceJobRequest,
|
|
2216
2302
|
output: LogsInstanceJobResponse,
|
|
@@ -2219,39 +2305,62 @@ export const logsInstanceJob = API.make(() => ({
|
|
|
2219
2305
|
export const ListTokensRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2220
2306
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2221
2307
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/ai-search/tokens" }));
|
|
2222
|
-
export const ListTokensResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2308
|
+
export const ListTokensResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2309
|
+
result: Schema.Array(Schema.Struct({
|
|
2310
|
+
id: Schema.String,
|
|
2311
|
+
accountId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2312
|
+
accountTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2313
|
+
cfApiId: Schema.String,
|
|
2314
|
+
cfApiKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2315
|
+
createdAt: Schema.String,
|
|
2316
|
+
modifiedAt: Schema.String,
|
|
2317
|
+
name: Schema.String,
|
|
2318
|
+
createdBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2319
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2320
|
+
legacy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2321
|
+
modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2322
|
+
syncedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2323
|
+
}).pipe(Schema.encodeKeys({
|
|
2324
|
+
id: "id",
|
|
2325
|
+
accountId: "account_id",
|
|
2326
|
+
accountTag: "account_tag",
|
|
2327
|
+
cfApiId: "cf_api_id",
|
|
2328
|
+
cfApiKey: "cf_api_key",
|
|
2329
|
+
createdAt: "created_at",
|
|
2330
|
+
modifiedAt: "modified_at",
|
|
2331
|
+
name: "name",
|
|
2332
|
+
createdBy: "created_by",
|
|
2333
|
+
enabled: "enabled",
|
|
2334
|
+
legacy: "legacy",
|
|
2335
|
+
modifiedBy: "modified_by",
|
|
2336
|
+
syncedAt: "synced_at",
|
|
2337
|
+
}))),
|
|
2338
|
+
resultInfo: Schema.optional(Schema.Union([
|
|
2339
|
+
Schema.Struct({
|
|
2340
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2341
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2342
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2343
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2344
|
+
}).pipe(Schema.encodeKeys({
|
|
2345
|
+
count: "count",
|
|
2346
|
+
page: "page",
|
|
2347
|
+
perPage: "per_page",
|
|
2348
|
+
totalCount: "total_count",
|
|
2349
|
+
})),
|
|
2350
|
+
Schema.Null,
|
|
2351
|
+
])),
|
|
2352
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
2353
|
+
export const listTokens = API.makePaginated(() => ({
|
|
2252
2354
|
input: ListTokensRequest,
|
|
2253
2355
|
output: ListTokensResponse,
|
|
2254
2356
|
errors: [InvalidRoute],
|
|
2357
|
+
pagination: {
|
|
2358
|
+
mode: "page",
|
|
2359
|
+
inputToken: "page",
|
|
2360
|
+
outputToken: "resultInfo.page",
|
|
2361
|
+
items: "result",
|
|
2362
|
+
pageSize: "perPage",
|
|
2363
|
+
},
|
|
2255
2364
|
}));
|
|
2256
2365
|
export const CreateTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2257
2366
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -2279,7 +2388,8 @@ export const CreateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2279
2388
|
legacy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2280
2389
|
modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2281
2390
|
syncedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2282
|
-
})
|
|
2391
|
+
})
|
|
2392
|
+
.pipe(Schema.encodeKeys({
|
|
2283
2393
|
id: "id",
|
|
2284
2394
|
accountId: "account_id",
|
|
2285
2395
|
accountTag: "account_tag",
|
|
@@ -2293,7 +2403,8 @@ export const CreateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2293
2403
|
legacy: "legacy",
|
|
2294
2404
|
modifiedBy: "modified_by",
|
|
2295
2405
|
syncedAt: "synced_at",
|
|
2296
|
-
}))
|
|
2406
|
+
}))
|
|
2407
|
+
.pipe(T.ResponsePath("result"));
|
|
2297
2408
|
export const createToken = API.make(() => ({
|
|
2298
2409
|
input: CreateTokenRequest,
|
|
2299
2410
|
output: CreateTokenResponse,
|
|
@@ -2320,7 +2431,8 @@ export const UpdateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2320
2431
|
legacy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2321
2432
|
modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2322
2433
|
syncedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2323
|
-
})
|
|
2434
|
+
})
|
|
2435
|
+
.pipe(Schema.encodeKeys({
|
|
2324
2436
|
id: "id",
|
|
2325
2437
|
accountId: "account_id",
|
|
2326
2438
|
accountTag: "account_tag",
|
|
@@ -2334,7 +2446,8 @@ export const UpdateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2334
2446
|
legacy: "legacy",
|
|
2335
2447
|
modifiedBy: "modified_by",
|
|
2336
2448
|
syncedAt: "synced_at",
|
|
2337
|
-
}))
|
|
2449
|
+
}))
|
|
2450
|
+
.pipe(T.ResponsePath("result"));
|
|
2338
2451
|
export const updateToken = API.make(() => ({
|
|
2339
2452
|
input: UpdateTokenRequest,
|
|
2340
2453
|
output: UpdateTokenResponse,
|
|
@@ -2361,7 +2474,8 @@ export const DeleteTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2361
2474
|
legacy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2362
2475
|
modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2363
2476
|
syncedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2364
|
-
})
|
|
2477
|
+
})
|
|
2478
|
+
.pipe(Schema.encodeKeys({
|
|
2365
2479
|
id: "id",
|
|
2366
2480
|
accountId: "account_id",
|
|
2367
2481
|
accountTag: "account_tag",
|
|
@@ -2375,7 +2489,8 @@ export const DeleteTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2375
2489
|
legacy: "legacy",
|
|
2376
2490
|
modifiedBy: "modified_by",
|
|
2377
2491
|
syncedAt: "synced_at",
|
|
2378
|
-
}))
|
|
2492
|
+
}))
|
|
2493
|
+
.pipe(T.ResponsePath("result"));
|
|
2379
2494
|
export const deleteToken = API.make(() => ({
|
|
2380
2495
|
input: DeleteTokenRequest,
|
|
2381
2496
|
output: DeleteTokenResponse,
|
|
@@ -2402,7 +2517,8 @@ export const ReadTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2402
2517
|
legacy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2403
2518
|
modifiedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2404
2519
|
syncedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2405
|
-
})
|
|
2520
|
+
})
|
|
2521
|
+
.pipe(Schema.encodeKeys({
|
|
2406
2522
|
id: "id",
|
|
2407
2523
|
accountId: "account_id",
|
|
2408
2524
|
accountTag: "account_tag",
|
|
@@ -2416,7 +2532,8 @@ export const ReadTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2416
2532
|
legacy: "legacy",
|
|
2417
2533
|
modifiedBy: "modified_by",
|
|
2418
2534
|
syncedAt: "synced_at",
|
|
2419
|
-
}))
|
|
2535
|
+
}))
|
|
2536
|
+
.pipe(T.ResponsePath("result"));
|
|
2420
2537
|
export const readToken = API.make(() => ({
|
|
2421
2538
|
input: ReadTokenRequest,
|
|
2422
2539
|
output: ReadTokenResponse,
|