@distilled.cloud/cloudflare 0.2.6 → 0.4.0
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
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* DO NOT EDIT - regenerate with: bun scripts/generate.ts --service ai-gateway
|
|
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";
|
|
@@ -169,33 +170,37 @@ export const GetAiGatewayResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
169
170
|
]),
|
|
170
171
|
),
|
|
171
172
|
zdr: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
172
|
-
})
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
)
|
|
173
|
+
})
|
|
174
|
+
.pipe(
|
|
175
|
+
Schema.encodeKeys({
|
|
176
|
+
id: "id",
|
|
177
|
+
accountId: "account_id",
|
|
178
|
+
accountTag: "account_tag",
|
|
179
|
+
cacheInvalidateOnUpdate: "cache_invalidate_on_update",
|
|
180
|
+
cacheTtl: "cache_ttl",
|
|
181
|
+
collectLogs: "collect_logs",
|
|
182
|
+
createdAt: "created_at",
|
|
183
|
+
internalId: "internal_id",
|
|
184
|
+
modifiedAt: "modified_at",
|
|
185
|
+
rateLimitingInterval: "rate_limiting_interval",
|
|
186
|
+
rateLimitingLimit: "rate_limiting_limit",
|
|
187
|
+
rateLimitingTechnique: "rate_limiting_technique",
|
|
188
|
+
authentication: "authentication",
|
|
189
|
+
dlp: "dlp",
|
|
190
|
+
isDefault: "is_default",
|
|
191
|
+
logManagement: "log_management",
|
|
192
|
+
logManagementStrategy: "log_management_strategy",
|
|
193
|
+
logpush: "logpush",
|
|
194
|
+
logpushPublicKey: "logpush_public_key",
|
|
195
|
+
otel: "otel",
|
|
196
|
+
storeId: "store_id",
|
|
197
|
+
stripe: "stripe",
|
|
198
|
+
zdr: "zdr",
|
|
199
|
+
}),
|
|
200
|
+
)
|
|
201
|
+
.pipe(
|
|
202
|
+
T.ResponsePath("result"),
|
|
203
|
+
) as unknown as Schema.Schema<GetAiGatewayResponse>;
|
|
199
204
|
|
|
200
205
|
export type GetAiGatewayError = DefaultErrors | GatewayNotFound;
|
|
201
206
|
|
|
@@ -224,172 +229,275 @@ export const ListAiGatewaysRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
224
229
|
T.Http({ method: "GET", path: "/accounts/{account_id}/ai-gateway/gateways" }),
|
|
225
230
|
) as unknown as Schema.Schema<ListAiGatewaysRequest>;
|
|
226
231
|
|
|
227
|
-
export
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
policies: {
|
|
246
|
-
id: string;
|
|
247
|
-
action: "FLAG" | "BLOCK";
|
|
248
|
-
check: ("REQUEST" | "RESPONSE")[];
|
|
232
|
+
export interface ListAiGatewaysResponse {
|
|
233
|
+
result: {
|
|
234
|
+
id: string;
|
|
235
|
+
accountId: string;
|
|
236
|
+
accountTag: string;
|
|
237
|
+
cacheInvalidateOnUpdate: boolean;
|
|
238
|
+
cacheTtl: number | null;
|
|
239
|
+
collectLogs: boolean;
|
|
240
|
+
createdAt: string;
|
|
241
|
+
internalId: string;
|
|
242
|
+
modifiedAt: string;
|
|
243
|
+
rateLimitingInterval: number | null;
|
|
244
|
+
rateLimitingLimit: number | null;
|
|
245
|
+
rateLimitingTechnique: "fixed" | "sliding";
|
|
246
|
+
authentication?: boolean | null;
|
|
247
|
+
dlp?:
|
|
248
|
+
| { action: "BLOCK" | "FLAG"; enabled: boolean; profiles: string[] }
|
|
249
|
+
| {
|
|
249
250
|
enabled: boolean;
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
| null;
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
251
|
+
policies: {
|
|
252
|
+
id: string;
|
|
253
|
+
action: "FLAG" | "BLOCK";
|
|
254
|
+
check: ("REQUEST" | "RESPONSE")[];
|
|
255
|
+
enabled: boolean;
|
|
256
|
+
profiles: string[];
|
|
257
|
+
}[];
|
|
258
|
+
}
|
|
259
|
+
| null;
|
|
260
|
+
isDefault?: boolean | null;
|
|
261
|
+
logManagement?: number | null;
|
|
262
|
+
logManagementStrategy?: "STOP_INSERTING" | "DELETE_OLDEST" | null;
|
|
263
|
+
logpush?: boolean | null;
|
|
264
|
+
logpushPublicKey?: string | null;
|
|
265
|
+
otel?:
|
|
266
|
+
| {
|
|
267
|
+
authorization: string;
|
|
268
|
+
headers: Record<string, unknown>;
|
|
269
|
+
url: string;
|
|
270
|
+
}[]
|
|
271
|
+
| null;
|
|
272
|
+
storeId?: string | null;
|
|
273
|
+
stripe?: {
|
|
274
|
+
authorization: string;
|
|
275
|
+
usageEvents: { payload: string }[];
|
|
276
|
+
} | null;
|
|
277
|
+
zdr?: boolean | null;
|
|
278
|
+
}[];
|
|
279
|
+
resultInfo: {
|
|
280
|
+
count?: number | null;
|
|
281
|
+
page?: number | null;
|
|
282
|
+
perPage?: number | null;
|
|
283
|
+
totalCount?: number | null;
|
|
284
|
+
};
|
|
285
|
+
}
|
|
266
286
|
|
|
267
|
-
export const ListAiGatewaysResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
Schema.
|
|
287
|
-
Schema.
|
|
288
|
-
|
|
289
|
-
enabled: Schema.Boolean,
|
|
290
|
-
profiles: Schema.Array(Schema.String),
|
|
291
|
-
}),
|
|
292
|
-
Schema.Struct({
|
|
293
|
-
enabled: Schema.Boolean,
|
|
294
|
-
policies: Schema.Array(
|
|
287
|
+
export const ListAiGatewaysResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
288
|
+
{
|
|
289
|
+
result: Schema.Array(
|
|
290
|
+
Schema.Struct({
|
|
291
|
+
id: Schema.String,
|
|
292
|
+
accountId: Schema.String,
|
|
293
|
+
accountTag: Schema.String,
|
|
294
|
+
cacheInvalidateOnUpdate: Schema.Boolean,
|
|
295
|
+
cacheTtl: Schema.Union([Schema.Number, Schema.Null]),
|
|
296
|
+
collectLogs: Schema.Boolean,
|
|
297
|
+
createdAt: Schema.String,
|
|
298
|
+
internalId: Schema.String,
|
|
299
|
+
modifiedAt: Schema.String,
|
|
300
|
+
rateLimitingInterval: Schema.Union([Schema.Number, Schema.Null]),
|
|
301
|
+
rateLimitingLimit: Schema.Union([Schema.Number, Schema.Null]),
|
|
302
|
+
rateLimitingTechnique: Schema.Literals(["fixed", "sliding"]),
|
|
303
|
+
authentication: Schema.optional(
|
|
304
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
305
|
+
),
|
|
306
|
+
dlp: Schema.optional(
|
|
307
|
+
Schema.Union([
|
|
308
|
+
Schema.Union([
|
|
295
309
|
Schema.Struct({
|
|
296
|
-
|
|
297
|
-
action: Schema.Literals(["FLAG", "BLOCK"]),
|
|
298
|
-
check: Schema.Array(Schema.Literals(["REQUEST", "RESPONSE"])),
|
|
310
|
+
action: Schema.Literals(["BLOCK", "FLAG"]),
|
|
299
311
|
enabled: Schema.Boolean,
|
|
300
312
|
profiles: Schema.Array(Schema.String),
|
|
301
313
|
}),
|
|
314
|
+
Schema.Struct({
|
|
315
|
+
enabled: Schema.Boolean,
|
|
316
|
+
policies: Schema.Array(
|
|
317
|
+
Schema.Struct({
|
|
318
|
+
id: Schema.String,
|
|
319
|
+
action: Schema.Literals(["FLAG", "BLOCK"]),
|
|
320
|
+
check: Schema.Array(
|
|
321
|
+
Schema.Literals(["REQUEST", "RESPONSE"]),
|
|
322
|
+
),
|
|
323
|
+
enabled: Schema.Boolean,
|
|
324
|
+
profiles: Schema.Array(Schema.String),
|
|
325
|
+
}),
|
|
326
|
+
),
|
|
327
|
+
}),
|
|
328
|
+
]),
|
|
329
|
+
Schema.Null,
|
|
330
|
+
]),
|
|
331
|
+
),
|
|
332
|
+
isDefault: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
333
|
+
logManagement: Schema.optional(
|
|
334
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
335
|
+
),
|
|
336
|
+
logManagementStrategy: Schema.optional(
|
|
337
|
+
Schema.Union([
|
|
338
|
+
Schema.Literal("STOP_INSERTING"),
|
|
339
|
+
Schema.Literal("DELETE_OLDEST"),
|
|
340
|
+
Schema.Null,
|
|
341
|
+
]),
|
|
342
|
+
),
|
|
343
|
+
logpush: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
344
|
+
logpushPublicKey: Schema.optional(
|
|
345
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
346
|
+
),
|
|
347
|
+
otel: Schema.optional(
|
|
348
|
+
Schema.Union([
|
|
349
|
+
Schema.Array(
|
|
350
|
+
Schema.Struct({
|
|
351
|
+
authorization: Schema.String,
|
|
352
|
+
headers: Schema.Struct({}),
|
|
353
|
+
url: Schema.String,
|
|
354
|
+
}),
|
|
302
355
|
),
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
Schema.Null,
|
|
306
|
-
]),
|
|
307
|
-
),
|
|
308
|
-
isDefault: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
309
|
-
logManagement: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
310
|
-
logManagementStrategy: Schema.optional(
|
|
311
|
-
Schema.Union([
|
|
312
|
-
Schema.Literal("STOP_INSERTING"),
|
|
313
|
-
Schema.Literal("DELETE_OLDEST"),
|
|
314
|
-
Schema.Null,
|
|
315
|
-
]),
|
|
316
|
-
),
|
|
317
|
-
logpush: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
318
|
-
logpushPublicKey: Schema.optional(
|
|
319
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
320
|
-
),
|
|
321
|
-
otel: Schema.optional(
|
|
322
|
-
Schema.Union([
|
|
323
|
-
Schema.Array(
|
|
324
|
-
Schema.Struct({
|
|
325
|
-
authorization: Schema.String,
|
|
326
|
-
headers: Schema.Struct({}),
|
|
327
|
-
url: Schema.String,
|
|
328
|
-
}),
|
|
356
|
+
Schema.Null,
|
|
357
|
+
]),
|
|
329
358
|
),
|
|
330
|
-
Schema.Null,
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
storeId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
334
|
-
stripe: Schema.optional(
|
|
335
|
-
Schema.Union([
|
|
336
|
-
Schema.Struct({
|
|
337
|
-
authorization: Schema.String,
|
|
338
|
-
usageEvents: Schema.Array(
|
|
359
|
+
storeId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
360
|
+
stripe: Schema.optional(
|
|
361
|
+
Schema.Union([
|
|
339
362
|
Schema.Struct({
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
363
|
+
authorization: Schema.String,
|
|
364
|
+
usageEvents: Schema.Array(
|
|
365
|
+
Schema.Struct({
|
|
366
|
+
payload: Schema.String,
|
|
367
|
+
}),
|
|
368
|
+
),
|
|
369
|
+
}).pipe(
|
|
370
|
+
Schema.encodeKeys({
|
|
371
|
+
authorization: "authorization",
|
|
372
|
+
usageEvents: "usage_events",
|
|
373
|
+
}),
|
|
374
|
+
),
|
|
375
|
+
Schema.Null,
|
|
376
|
+
]),
|
|
348
377
|
),
|
|
349
|
-
Schema.Null,
|
|
350
|
-
|
|
378
|
+
zdr: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
379
|
+
}).pipe(
|
|
380
|
+
Schema.encodeKeys({
|
|
381
|
+
id: "id",
|
|
382
|
+
accountId: "account_id",
|
|
383
|
+
accountTag: "account_tag",
|
|
384
|
+
cacheInvalidateOnUpdate: "cache_invalidate_on_update",
|
|
385
|
+
cacheTtl: "cache_ttl",
|
|
386
|
+
collectLogs: "collect_logs",
|
|
387
|
+
createdAt: "created_at",
|
|
388
|
+
internalId: "internal_id",
|
|
389
|
+
modifiedAt: "modified_at",
|
|
390
|
+
rateLimitingInterval: "rate_limiting_interval",
|
|
391
|
+
rateLimitingLimit: "rate_limiting_limit",
|
|
392
|
+
rateLimitingTechnique: "rate_limiting_technique",
|
|
393
|
+
authentication: "authentication",
|
|
394
|
+
dlp: "dlp",
|
|
395
|
+
isDefault: "is_default",
|
|
396
|
+
logManagement: "log_management",
|
|
397
|
+
logManagementStrategy: "log_management_strategy",
|
|
398
|
+
logpush: "logpush",
|
|
399
|
+
logpushPublicKey: "logpush_public_key",
|
|
400
|
+
otel: "otel",
|
|
401
|
+
storeId: "store_id",
|
|
402
|
+
stripe: "stripe",
|
|
403
|
+
zdr: "zdr",
|
|
404
|
+
}),
|
|
405
|
+
),
|
|
351
406
|
),
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
dlp: "dlp",
|
|
369
|
-
isDefault: "is_default",
|
|
370
|
-
logManagement: "log_management",
|
|
371
|
-
logManagementStrategy: "log_management_strategy",
|
|
372
|
-
logpush: "logpush",
|
|
373
|
-
logpushPublicKey: "logpush_public_key",
|
|
374
|
-
otel: "otel",
|
|
375
|
-
storeId: "store_id",
|
|
376
|
-
stripe: "stripe",
|
|
377
|
-
zdr: "zdr",
|
|
378
|
-
}),
|
|
379
|
-
),
|
|
407
|
+
resultInfo: Schema.Struct({
|
|
408
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
409
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
410
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
411
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
412
|
+
}).pipe(
|
|
413
|
+
Schema.encodeKeys({
|
|
414
|
+
count: "count",
|
|
415
|
+
page: "page",
|
|
416
|
+
perPage: "per_page",
|
|
417
|
+
totalCount: "total_count",
|
|
418
|
+
}),
|
|
419
|
+
),
|
|
420
|
+
},
|
|
421
|
+
).pipe(
|
|
422
|
+
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
380
423
|
) as unknown as Schema.Schema<ListAiGatewaysResponse>;
|
|
381
424
|
|
|
382
425
|
export type ListAiGatewaysError = DefaultErrors;
|
|
383
426
|
|
|
384
|
-
export const listAiGateways: API.
|
|
427
|
+
export const listAiGateways: API.PaginatedOperationMethod<
|
|
385
428
|
ListAiGatewaysRequest,
|
|
386
429
|
ListAiGatewaysResponse,
|
|
387
430
|
ListAiGatewaysError,
|
|
388
431
|
Credentials | HttpClient.HttpClient
|
|
389
|
-
>
|
|
432
|
+
> & {
|
|
433
|
+
pages: (
|
|
434
|
+
input: ListAiGatewaysRequest,
|
|
435
|
+
) => stream.Stream<
|
|
436
|
+
ListAiGatewaysResponse,
|
|
437
|
+
ListAiGatewaysError,
|
|
438
|
+
Credentials | HttpClient.HttpClient
|
|
439
|
+
>;
|
|
440
|
+
items: (input: ListAiGatewaysRequest) => stream.Stream<
|
|
441
|
+
{
|
|
442
|
+
id: string;
|
|
443
|
+
accountId: string;
|
|
444
|
+
accountTag: string;
|
|
445
|
+
cacheInvalidateOnUpdate: boolean;
|
|
446
|
+
cacheTtl: number | null;
|
|
447
|
+
collectLogs: boolean;
|
|
448
|
+
createdAt: string;
|
|
449
|
+
internalId: string;
|
|
450
|
+
modifiedAt: string;
|
|
451
|
+
rateLimitingInterval: number | null;
|
|
452
|
+
rateLimitingLimit: number | null;
|
|
453
|
+
rateLimitingTechnique: "fixed" | "sliding";
|
|
454
|
+
authentication?: boolean | null;
|
|
455
|
+
dlp?:
|
|
456
|
+
| { action: "BLOCK" | "FLAG"; enabled: boolean; profiles: string[] }
|
|
457
|
+
| {
|
|
458
|
+
enabled: boolean;
|
|
459
|
+
policies: {
|
|
460
|
+
id: string;
|
|
461
|
+
action: "FLAG" | "BLOCK";
|
|
462
|
+
check: ("REQUEST" | "RESPONSE")[];
|
|
463
|
+
enabled: boolean;
|
|
464
|
+
profiles: string[];
|
|
465
|
+
}[];
|
|
466
|
+
}
|
|
467
|
+
| null;
|
|
468
|
+
isDefault?: boolean | null;
|
|
469
|
+
logManagement?: number | null;
|
|
470
|
+
logManagementStrategy?: "STOP_INSERTING" | "DELETE_OLDEST" | null;
|
|
471
|
+
logpush?: boolean | null;
|
|
472
|
+
logpushPublicKey?: string | null;
|
|
473
|
+
otel?:
|
|
474
|
+
| {
|
|
475
|
+
authorization: string;
|
|
476
|
+
headers: Record<string, unknown>;
|
|
477
|
+
url: string;
|
|
478
|
+
}[]
|
|
479
|
+
| null;
|
|
480
|
+
storeId?: string | null;
|
|
481
|
+
stripe?: {
|
|
482
|
+
authorization: string;
|
|
483
|
+
usageEvents: { payload: string }[];
|
|
484
|
+
} | null;
|
|
485
|
+
zdr?: boolean | null;
|
|
486
|
+
},
|
|
487
|
+
ListAiGatewaysError,
|
|
488
|
+
Credentials | HttpClient.HttpClient
|
|
489
|
+
>;
|
|
490
|
+
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
390
491
|
input: ListAiGatewaysRequest,
|
|
391
492
|
output: ListAiGatewaysResponse,
|
|
392
493
|
errors: [],
|
|
494
|
+
pagination: {
|
|
495
|
+
mode: "page",
|
|
496
|
+
inputToken: "page",
|
|
497
|
+
outputToken: "resultInfo.page",
|
|
498
|
+
items: "result",
|
|
499
|
+
pageSize: "perPage",
|
|
500
|
+
} as const,
|
|
393
501
|
}));
|
|
394
502
|
|
|
395
503
|
export interface CreateAiGatewayRequest {
|
|
@@ -601,33 +709,37 @@ export const CreateAiGatewayResponse =
|
|
|
601
709
|
]),
|
|
602
710
|
),
|
|
603
711
|
zdr: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
604
|
-
})
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
712
|
+
})
|
|
713
|
+
.pipe(
|
|
714
|
+
Schema.encodeKeys({
|
|
715
|
+
id: "id",
|
|
716
|
+
accountId: "account_id",
|
|
717
|
+
accountTag: "account_tag",
|
|
718
|
+
cacheInvalidateOnUpdate: "cache_invalidate_on_update",
|
|
719
|
+
cacheTtl: "cache_ttl",
|
|
720
|
+
collectLogs: "collect_logs",
|
|
721
|
+
createdAt: "created_at",
|
|
722
|
+
internalId: "internal_id",
|
|
723
|
+
modifiedAt: "modified_at",
|
|
724
|
+
rateLimitingInterval: "rate_limiting_interval",
|
|
725
|
+
rateLimitingLimit: "rate_limiting_limit",
|
|
726
|
+
rateLimitingTechnique: "rate_limiting_technique",
|
|
727
|
+
authentication: "authentication",
|
|
728
|
+
dlp: "dlp",
|
|
729
|
+
isDefault: "is_default",
|
|
730
|
+
logManagement: "log_management",
|
|
731
|
+
logManagementStrategy: "log_management_strategy",
|
|
732
|
+
logpush: "logpush",
|
|
733
|
+
logpushPublicKey: "logpush_public_key",
|
|
734
|
+
otel: "otel",
|
|
735
|
+
storeId: "store_id",
|
|
736
|
+
stripe: "stripe",
|
|
737
|
+
zdr: "zdr",
|
|
738
|
+
}),
|
|
739
|
+
)
|
|
740
|
+
.pipe(
|
|
741
|
+
T.ResponsePath("result"),
|
|
742
|
+
) as unknown as Schema.Schema<CreateAiGatewayResponse>;
|
|
631
743
|
|
|
632
744
|
export type CreateAiGatewayError = DefaultErrors | GatewayAlreadyExists;
|
|
633
745
|
|
|
@@ -926,33 +1038,37 @@ export const UpdateAiGatewayResponse =
|
|
|
926
1038
|
]),
|
|
927
1039
|
),
|
|
928
1040
|
zdr: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
929
|
-
})
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
1041
|
+
})
|
|
1042
|
+
.pipe(
|
|
1043
|
+
Schema.encodeKeys({
|
|
1044
|
+
id: "id",
|
|
1045
|
+
accountId: "account_id",
|
|
1046
|
+
accountTag: "account_tag",
|
|
1047
|
+
cacheInvalidateOnUpdate: "cache_invalidate_on_update",
|
|
1048
|
+
cacheTtl: "cache_ttl",
|
|
1049
|
+
collectLogs: "collect_logs",
|
|
1050
|
+
createdAt: "created_at",
|
|
1051
|
+
internalId: "internal_id",
|
|
1052
|
+
modifiedAt: "modified_at",
|
|
1053
|
+
rateLimitingInterval: "rate_limiting_interval",
|
|
1054
|
+
rateLimitingLimit: "rate_limiting_limit",
|
|
1055
|
+
rateLimitingTechnique: "rate_limiting_technique",
|
|
1056
|
+
authentication: "authentication",
|
|
1057
|
+
dlp: "dlp",
|
|
1058
|
+
isDefault: "is_default",
|
|
1059
|
+
logManagement: "log_management",
|
|
1060
|
+
logManagementStrategy: "log_management_strategy",
|
|
1061
|
+
logpush: "logpush",
|
|
1062
|
+
logpushPublicKey: "logpush_public_key",
|
|
1063
|
+
otel: "otel",
|
|
1064
|
+
storeId: "store_id",
|
|
1065
|
+
stripe: "stripe",
|
|
1066
|
+
zdr: "zdr",
|
|
1067
|
+
}),
|
|
1068
|
+
)
|
|
1069
|
+
.pipe(
|
|
1070
|
+
T.ResponsePath("result"),
|
|
1071
|
+
) as unknown as Schema.Schema<UpdateAiGatewayResponse>;
|
|
956
1072
|
|
|
957
1073
|
export type UpdateAiGatewayError = DefaultErrors | GatewayNotFound;
|
|
958
1074
|
|
|
@@ -1111,33 +1227,37 @@ export const DeleteAiGatewayResponse =
|
|
|
1111
1227
|
]),
|
|
1112
1228
|
),
|
|
1113
1229
|
zdr: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1114
|
-
})
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1230
|
+
})
|
|
1231
|
+
.pipe(
|
|
1232
|
+
Schema.encodeKeys({
|
|
1233
|
+
id: "id",
|
|
1234
|
+
accountId: "account_id",
|
|
1235
|
+
accountTag: "account_tag",
|
|
1236
|
+
cacheInvalidateOnUpdate: "cache_invalidate_on_update",
|
|
1237
|
+
cacheTtl: "cache_ttl",
|
|
1238
|
+
collectLogs: "collect_logs",
|
|
1239
|
+
createdAt: "created_at",
|
|
1240
|
+
internalId: "internal_id",
|
|
1241
|
+
modifiedAt: "modified_at",
|
|
1242
|
+
rateLimitingInterval: "rate_limiting_interval",
|
|
1243
|
+
rateLimitingLimit: "rate_limiting_limit",
|
|
1244
|
+
rateLimitingTechnique: "rate_limiting_technique",
|
|
1245
|
+
authentication: "authentication",
|
|
1246
|
+
dlp: "dlp",
|
|
1247
|
+
isDefault: "is_default",
|
|
1248
|
+
logManagement: "log_management",
|
|
1249
|
+
logManagementStrategy: "log_management_strategy",
|
|
1250
|
+
logpush: "logpush",
|
|
1251
|
+
logpushPublicKey: "logpush_public_key",
|
|
1252
|
+
otel: "otel",
|
|
1253
|
+
storeId: "store_id",
|
|
1254
|
+
stripe: "stripe",
|
|
1255
|
+
zdr: "zdr",
|
|
1256
|
+
}),
|
|
1257
|
+
)
|
|
1258
|
+
.pipe(
|
|
1259
|
+
T.ResponsePath("result"),
|
|
1260
|
+
) as unknown as Schema.Schema<DeleteAiGatewayResponse>;
|
|
1141
1261
|
|
|
1142
1262
|
export type DeleteAiGatewayError = DefaultErrors | GatewayNotFound;
|
|
1143
1263
|
|
|
@@ -1233,123 +1353,10 @@ export const GetDatasetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1233
1353
|
}),
|
|
1234
1354
|
),
|
|
1235
1355
|
gatewayId: Schema.String,
|
|
1236
|
-
modifiedAt: Schema.String,
|
|
1237
|
-
name: Schema.String,
|
|
1238
|
-
})
|
|
1239
|
-
|
|
1240
|
-
id: "id",
|
|
1241
|
-
accountId: "account_id",
|
|
1242
|
-
accountTag: "account_tag",
|
|
1243
|
-
createdAt: "created_at",
|
|
1244
|
-
enable: "enable",
|
|
1245
|
-
filters: "filters",
|
|
1246
|
-
gatewayId: "gateway_id",
|
|
1247
|
-
modifiedAt: "modified_at",
|
|
1248
|
-
name: "name",
|
|
1249
|
-
}),
|
|
1250
|
-
) as unknown as Schema.Schema<GetDatasetResponse>;
|
|
1251
|
-
|
|
1252
|
-
export type GetDatasetError = DefaultErrors;
|
|
1253
|
-
|
|
1254
|
-
export const getDataset: API.OperationMethod<
|
|
1255
|
-
GetDatasetRequest,
|
|
1256
|
-
GetDatasetResponse,
|
|
1257
|
-
GetDatasetError,
|
|
1258
|
-
Credentials | HttpClient.HttpClient
|
|
1259
|
-
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1260
|
-
input: GetDatasetRequest,
|
|
1261
|
-
output: GetDatasetResponse,
|
|
1262
|
-
errors: [],
|
|
1263
|
-
}));
|
|
1264
|
-
|
|
1265
|
-
export interface ListDatasetsRequest {
|
|
1266
|
-
gatewayId: string;
|
|
1267
|
-
/** Path param: */
|
|
1268
|
-
accountId: string;
|
|
1269
|
-
/** Query param: */
|
|
1270
|
-
enable?: boolean;
|
|
1271
|
-
/** Query param: */
|
|
1272
|
-
name?: string;
|
|
1273
|
-
/** Query param: Search by id, name, filters */
|
|
1274
|
-
search?: string;
|
|
1275
|
-
}
|
|
1276
|
-
|
|
1277
|
-
export const ListDatasetsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1278
|
-
gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
|
|
1279
|
-
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1280
|
-
enable: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("enable")),
|
|
1281
|
-
name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
|
|
1282
|
-
search: Schema.optional(Schema.String).pipe(T.HttpQuery("search")),
|
|
1283
|
-
}).pipe(
|
|
1284
|
-
T.Http({
|
|
1285
|
-
method: "GET",
|
|
1286
|
-
path: "/accounts/{account_id}/ai-gateway/gateways/{gatewayId}/datasets",
|
|
1287
|
-
}),
|
|
1288
|
-
) as unknown as Schema.Schema<ListDatasetsRequest>;
|
|
1289
|
-
|
|
1290
|
-
export type ListDatasetsResponse = {
|
|
1291
|
-
id: string;
|
|
1292
|
-
accountId: string;
|
|
1293
|
-
accountTag: string;
|
|
1294
|
-
createdAt: string;
|
|
1295
|
-
enable: boolean;
|
|
1296
|
-
filters: {
|
|
1297
|
-
key:
|
|
1298
|
-
| "created_at"
|
|
1299
|
-
| "request_content_type"
|
|
1300
|
-
| "response_content_type"
|
|
1301
|
-
| "success"
|
|
1302
|
-
| "cached"
|
|
1303
|
-
| "provider"
|
|
1304
|
-
| "model"
|
|
1305
|
-
| "cost"
|
|
1306
|
-
| "tokens"
|
|
1307
|
-
| "tokens_in"
|
|
1308
|
-
| "tokens_out"
|
|
1309
|
-
| "duration"
|
|
1310
|
-
| "feedback";
|
|
1311
|
-
operator: "eq" | "contains" | "lt" | "gt";
|
|
1312
|
-
value: (string | number | boolean)[];
|
|
1313
|
-
}[];
|
|
1314
|
-
gatewayId: string;
|
|
1315
|
-
modifiedAt: string;
|
|
1316
|
-
name: string;
|
|
1317
|
-
}[];
|
|
1318
|
-
|
|
1319
|
-
export const ListDatasetsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
1320
|
-
Schema.Struct({
|
|
1321
|
-
id: Schema.String,
|
|
1322
|
-
accountId: Schema.String,
|
|
1323
|
-
accountTag: Schema.String,
|
|
1324
|
-
createdAt: Schema.String,
|
|
1325
|
-
enable: Schema.Boolean,
|
|
1326
|
-
filters: Schema.Array(
|
|
1327
|
-
Schema.Struct({
|
|
1328
|
-
key: Schema.Literals([
|
|
1329
|
-
"created_at",
|
|
1330
|
-
"request_content_type",
|
|
1331
|
-
"response_content_type",
|
|
1332
|
-
"success",
|
|
1333
|
-
"cached",
|
|
1334
|
-
"provider",
|
|
1335
|
-
"model",
|
|
1336
|
-
"cost",
|
|
1337
|
-
"tokens",
|
|
1338
|
-
"tokens_in",
|
|
1339
|
-
"tokens_out",
|
|
1340
|
-
"duration",
|
|
1341
|
-
"feedback",
|
|
1342
|
-
]),
|
|
1343
|
-
operator: Schema.Literals(["eq", "contains", "lt", "gt"]),
|
|
1344
|
-
value: Schema.Array(
|
|
1345
|
-
Schema.Union([Schema.String, Schema.Number, Schema.Boolean]),
|
|
1346
|
-
),
|
|
1347
|
-
}),
|
|
1348
|
-
),
|
|
1349
|
-
gatewayId: Schema.String,
|
|
1350
|
-
modifiedAt: Schema.String,
|
|
1351
|
-
name: Schema.String,
|
|
1352
|
-
}).pipe(
|
|
1356
|
+
modifiedAt: Schema.String,
|
|
1357
|
+
name: Schema.String,
|
|
1358
|
+
})
|
|
1359
|
+
.pipe(
|
|
1353
1360
|
Schema.encodeKeys({
|
|
1354
1361
|
id: "id",
|
|
1355
1362
|
accountId: "account_id",
|
|
@@ -1361,20 +1368,209 @@ export const ListDatasetsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
|
1361
1368
|
modifiedAt: "modified_at",
|
|
1362
1369
|
name: "name",
|
|
1363
1370
|
}),
|
|
1371
|
+
)
|
|
1372
|
+
.pipe(
|
|
1373
|
+
T.ResponsePath("result"),
|
|
1374
|
+
) as unknown as Schema.Schema<GetDatasetResponse>;
|
|
1375
|
+
|
|
1376
|
+
export type GetDatasetError = DefaultErrors;
|
|
1377
|
+
|
|
1378
|
+
export const getDataset: API.OperationMethod<
|
|
1379
|
+
GetDatasetRequest,
|
|
1380
|
+
GetDatasetResponse,
|
|
1381
|
+
GetDatasetError,
|
|
1382
|
+
Credentials | HttpClient.HttpClient
|
|
1383
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1384
|
+
input: GetDatasetRequest,
|
|
1385
|
+
output: GetDatasetResponse,
|
|
1386
|
+
errors: [],
|
|
1387
|
+
}));
|
|
1388
|
+
|
|
1389
|
+
export interface ListDatasetsRequest {
|
|
1390
|
+
gatewayId: string;
|
|
1391
|
+
/** Path param: */
|
|
1392
|
+
accountId: string;
|
|
1393
|
+
/** Query param: */
|
|
1394
|
+
enable?: boolean;
|
|
1395
|
+
/** Query param: */
|
|
1396
|
+
name?: string;
|
|
1397
|
+
/** Query param: Search by id, name, filters */
|
|
1398
|
+
search?: string;
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
export const ListDatasetsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1402
|
+
gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
|
|
1403
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1404
|
+
enable: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("enable")),
|
|
1405
|
+
name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
|
|
1406
|
+
search: Schema.optional(Schema.String).pipe(T.HttpQuery("search")),
|
|
1407
|
+
}).pipe(
|
|
1408
|
+
T.Http({
|
|
1409
|
+
method: "GET",
|
|
1410
|
+
path: "/accounts/{account_id}/ai-gateway/gateways/{gatewayId}/datasets",
|
|
1411
|
+
}),
|
|
1412
|
+
) as unknown as Schema.Schema<ListDatasetsRequest>;
|
|
1413
|
+
|
|
1414
|
+
export interface ListDatasetsResponse {
|
|
1415
|
+
result: {
|
|
1416
|
+
id: string;
|
|
1417
|
+
accountId: string;
|
|
1418
|
+
accountTag: string;
|
|
1419
|
+
createdAt: string;
|
|
1420
|
+
enable: boolean;
|
|
1421
|
+
filters: {
|
|
1422
|
+
key:
|
|
1423
|
+
| "created_at"
|
|
1424
|
+
| "request_content_type"
|
|
1425
|
+
| "response_content_type"
|
|
1426
|
+
| "success"
|
|
1427
|
+
| "cached"
|
|
1428
|
+
| "provider"
|
|
1429
|
+
| "model"
|
|
1430
|
+
| "cost"
|
|
1431
|
+
| "tokens"
|
|
1432
|
+
| "tokens_in"
|
|
1433
|
+
| "tokens_out"
|
|
1434
|
+
| "duration"
|
|
1435
|
+
| "feedback";
|
|
1436
|
+
operator: "eq" | "contains" | "lt" | "gt";
|
|
1437
|
+
value: (string | number | boolean)[];
|
|
1438
|
+
}[];
|
|
1439
|
+
gatewayId: string;
|
|
1440
|
+
modifiedAt: string;
|
|
1441
|
+
name: string;
|
|
1442
|
+
}[];
|
|
1443
|
+
resultInfo: {
|
|
1444
|
+
count?: number | null;
|
|
1445
|
+
page?: number | null;
|
|
1446
|
+
perPage?: number | null;
|
|
1447
|
+
totalCount?: number | null;
|
|
1448
|
+
};
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
export const ListDatasetsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1452
|
+
result: Schema.Array(
|
|
1453
|
+
Schema.Struct({
|
|
1454
|
+
id: Schema.String,
|
|
1455
|
+
accountId: Schema.String,
|
|
1456
|
+
accountTag: Schema.String,
|
|
1457
|
+
createdAt: Schema.String,
|
|
1458
|
+
enable: Schema.Boolean,
|
|
1459
|
+
filters: Schema.Array(
|
|
1460
|
+
Schema.Struct({
|
|
1461
|
+
key: Schema.Literals([
|
|
1462
|
+
"created_at",
|
|
1463
|
+
"request_content_type",
|
|
1464
|
+
"response_content_type",
|
|
1465
|
+
"success",
|
|
1466
|
+
"cached",
|
|
1467
|
+
"provider",
|
|
1468
|
+
"model",
|
|
1469
|
+
"cost",
|
|
1470
|
+
"tokens",
|
|
1471
|
+
"tokens_in",
|
|
1472
|
+
"tokens_out",
|
|
1473
|
+
"duration",
|
|
1474
|
+
"feedback",
|
|
1475
|
+
]),
|
|
1476
|
+
operator: Schema.Literals(["eq", "contains", "lt", "gt"]),
|
|
1477
|
+
value: Schema.Array(
|
|
1478
|
+
Schema.Union([Schema.String, Schema.Number, Schema.Boolean]),
|
|
1479
|
+
),
|
|
1480
|
+
}),
|
|
1481
|
+
),
|
|
1482
|
+
gatewayId: Schema.String,
|
|
1483
|
+
modifiedAt: Schema.String,
|
|
1484
|
+
name: Schema.String,
|
|
1485
|
+
}).pipe(
|
|
1486
|
+
Schema.encodeKeys({
|
|
1487
|
+
id: "id",
|
|
1488
|
+
accountId: "account_id",
|
|
1489
|
+
accountTag: "account_tag",
|
|
1490
|
+
createdAt: "created_at",
|
|
1491
|
+
enable: "enable",
|
|
1492
|
+
filters: "filters",
|
|
1493
|
+
gatewayId: "gateway_id",
|
|
1494
|
+
modifiedAt: "modified_at",
|
|
1495
|
+
name: "name",
|
|
1496
|
+
}),
|
|
1497
|
+
),
|
|
1498
|
+
),
|
|
1499
|
+
resultInfo: Schema.Struct({
|
|
1500
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1501
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1502
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1503
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1504
|
+
}).pipe(
|
|
1505
|
+
Schema.encodeKeys({
|
|
1506
|
+
count: "count",
|
|
1507
|
+
page: "page",
|
|
1508
|
+
perPage: "per_page",
|
|
1509
|
+
totalCount: "total_count",
|
|
1510
|
+
}),
|
|
1364
1511
|
),
|
|
1512
|
+
}).pipe(
|
|
1513
|
+
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
1365
1514
|
) as unknown as Schema.Schema<ListDatasetsResponse>;
|
|
1366
1515
|
|
|
1367
1516
|
export type ListDatasetsError = DefaultErrors;
|
|
1368
1517
|
|
|
1369
|
-
export const listDatasets: API.
|
|
1518
|
+
export const listDatasets: API.PaginatedOperationMethod<
|
|
1370
1519
|
ListDatasetsRequest,
|
|
1371
1520
|
ListDatasetsResponse,
|
|
1372
1521
|
ListDatasetsError,
|
|
1373
1522
|
Credentials | HttpClient.HttpClient
|
|
1374
|
-
>
|
|
1523
|
+
> & {
|
|
1524
|
+
pages: (
|
|
1525
|
+
input: ListDatasetsRequest,
|
|
1526
|
+
) => stream.Stream<
|
|
1527
|
+
ListDatasetsResponse,
|
|
1528
|
+
ListDatasetsError,
|
|
1529
|
+
Credentials | HttpClient.HttpClient
|
|
1530
|
+
>;
|
|
1531
|
+
items: (input: ListDatasetsRequest) => stream.Stream<
|
|
1532
|
+
{
|
|
1533
|
+
id: string;
|
|
1534
|
+
accountId: string;
|
|
1535
|
+
accountTag: string;
|
|
1536
|
+
createdAt: string;
|
|
1537
|
+
enable: boolean;
|
|
1538
|
+
filters: {
|
|
1539
|
+
key:
|
|
1540
|
+
| "created_at"
|
|
1541
|
+
| "request_content_type"
|
|
1542
|
+
| "response_content_type"
|
|
1543
|
+
| "success"
|
|
1544
|
+
| "cached"
|
|
1545
|
+
| "provider"
|
|
1546
|
+
| "model"
|
|
1547
|
+
| "cost"
|
|
1548
|
+
| "tokens"
|
|
1549
|
+
| "tokens_in"
|
|
1550
|
+
| "tokens_out"
|
|
1551
|
+
| "duration"
|
|
1552
|
+
| "feedback";
|
|
1553
|
+
operator: "eq" | "contains" | "lt" | "gt";
|
|
1554
|
+
value: (string | number | boolean)[];
|
|
1555
|
+
}[];
|
|
1556
|
+
gatewayId: string;
|
|
1557
|
+
modifiedAt: string;
|
|
1558
|
+
name: string;
|
|
1559
|
+
},
|
|
1560
|
+
ListDatasetsError,
|
|
1561
|
+
Credentials | HttpClient.HttpClient
|
|
1562
|
+
>;
|
|
1563
|
+
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
1375
1564
|
input: ListDatasetsRequest,
|
|
1376
1565
|
output: ListDatasetsResponse,
|
|
1377
1566
|
errors: [],
|
|
1567
|
+
pagination: {
|
|
1568
|
+
mode: "page",
|
|
1569
|
+
inputToken: "page",
|
|
1570
|
+
outputToken: "resultInfo.page",
|
|
1571
|
+
items: "result",
|
|
1572
|
+
pageSize: "perPage",
|
|
1573
|
+
} as const,
|
|
1378
1574
|
}));
|
|
1379
1575
|
|
|
1380
1576
|
export interface CreateDatasetRequest {
|
|
@@ -1503,19 +1699,23 @@ export const CreateDatasetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1503
1699
|
gatewayId: Schema.String,
|
|
1504
1700
|
modifiedAt: Schema.String,
|
|
1505
1701
|
name: Schema.String,
|
|
1506
|
-
})
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
)
|
|
1702
|
+
})
|
|
1703
|
+
.pipe(
|
|
1704
|
+
Schema.encodeKeys({
|
|
1705
|
+
id: "id",
|
|
1706
|
+
accountId: "account_id",
|
|
1707
|
+
accountTag: "account_tag",
|
|
1708
|
+
createdAt: "created_at",
|
|
1709
|
+
enable: "enable",
|
|
1710
|
+
filters: "filters",
|
|
1711
|
+
gatewayId: "gateway_id",
|
|
1712
|
+
modifiedAt: "modified_at",
|
|
1713
|
+
name: "name",
|
|
1714
|
+
}),
|
|
1715
|
+
)
|
|
1716
|
+
.pipe(
|
|
1717
|
+
T.ResponsePath("result"),
|
|
1718
|
+
) as unknown as Schema.Schema<CreateDatasetResponse>;
|
|
1519
1719
|
|
|
1520
1720
|
export type CreateDatasetError = DefaultErrors;
|
|
1521
1721
|
|
|
@@ -1658,19 +1858,23 @@ export const UpdateDatasetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1658
1858
|
gatewayId: Schema.String,
|
|
1659
1859
|
modifiedAt: Schema.String,
|
|
1660
1860
|
name: Schema.String,
|
|
1661
|
-
})
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
)
|
|
1861
|
+
})
|
|
1862
|
+
.pipe(
|
|
1863
|
+
Schema.encodeKeys({
|
|
1864
|
+
id: "id",
|
|
1865
|
+
accountId: "account_id",
|
|
1866
|
+
accountTag: "account_tag",
|
|
1867
|
+
createdAt: "created_at",
|
|
1868
|
+
enable: "enable",
|
|
1869
|
+
filters: "filters",
|
|
1870
|
+
gatewayId: "gateway_id",
|
|
1871
|
+
modifiedAt: "modified_at",
|
|
1872
|
+
name: "name",
|
|
1873
|
+
}),
|
|
1874
|
+
)
|
|
1875
|
+
.pipe(
|
|
1876
|
+
T.ResponsePath("result"),
|
|
1877
|
+
) as unknown as Schema.Schema<UpdateDatasetResponse>;
|
|
1674
1878
|
|
|
1675
1879
|
export type UpdateDatasetError = DefaultErrors;
|
|
1676
1880
|
|
|
@@ -1764,19 +1968,23 @@ export const DeleteDatasetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1764
1968
|
gatewayId: Schema.String,
|
|
1765
1969
|
modifiedAt: Schema.String,
|
|
1766
1970
|
name: Schema.String,
|
|
1767
|
-
})
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
)
|
|
1971
|
+
})
|
|
1972
|
+
.pipe(
|
|
1973
|
+
Schema.encodeKeys({
|
|
1974
|
+
id: "id",
|
|
1975
|
+
accountId: "account_id",
|
|
1976
|
+
accountTag: "account_tag",
|
|
1977
|
+
createdAt: "created_at",
|
|
1978
|
+
enable: "enable",
|
|
1979
|
+
filters: "filters",
|
|
1980
|
+
gatewayId: "gateway_id",
|
|
1981
|
+
modifiedAt: "modified_at",
|
|
1982
|
+
name: "name",
|
|
1983
|
+
}),
|
|
1984
|
+
)
|
|
1985
|
+
.pipe(
|
|
1986
|
+
T.ResponsePath("result"),
|
|
1987
|
+
) as unknown as Schema.Schema<DeleteDatasetResponse>;
|
|
1780
1988
|
|
|
1781
1989
|
export type DeleteDatasetError = DefaultErrors;
|
|
1782
1990
|
|
|
@@ -1946,21 +2154,25 @@ export const GetEvaluationResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1946
2154
|
),
|
|
1947
2155
|
),
|
|
1948
2156
|
totalLogs: Schema.Number,
|
|
1949
|
-
})
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
)
|
|
2157
|
+
})
|
|
2158
|
+
.pipe(
|
|
2159
|
+
Schema.encodeKeys({
|
|
2160
|
+
id: "id",
|
|
2161
|
+
accountId: "account_id",
|
|
2162
|
+
accountTag: "account_tag",
|
|
2163
|
+
createdAt: "created_at",
|
|
2164
|
+
datasets: "datasets",
|
|
2165
|
+
gatewayId: "gateway_id",
|
|
2166
|
+
modifiedAt: "modified_at",
|
|
2167
|
+
name: "name",
|
|
2168
|
+
processed: "processed",
|
|
2169
|
+
results: "results",
|
|
2170
|
+
totalLogs: "total_logs",
|
|
2171
|
+
}),
|
|
2172
|
+
)
|
|
2173
|
+
.pipe(
|
|
2174
|
+
T.ResponsePath("result"),
|
|
2175
|
+
) as unknown as Schema.Schema<GetEvaluationResponse>;
|
|
1964
2176
|
|
|
1965
2177
|
export type GetEvaluationError = DefaultErrors;
|
|
1966
2178
|
|
|
@@ -2002,168 +2214,263 @@ export const ListEvaluationsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
2002
2214
|
}),
|
|
2003
2215
|
) as unknown as Schema.Schema<ListEvaluationsRequest>;
|
|
2004
2216
|
|
|
2005
|
-
export
|
|
2006
|
-
|
|
2007
|
-
accountId: string;
|
|
2008
|
-
accountTag: string;
|
|
2009
|
-
createdAt: string;
|
|
2010
|
-
datasets: {
|
|
2217
|
+
export interface ListEvaluationsResponse {
|
|
2218
|
+
result: {
|
|
2011
2219
|
id: string;
|
|
2012
2220
|
accountId: string;
|
|
2013
2221
|
accountTag: string;
|
|
2014
2222
|
createdAt: string;
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2223
|
+
datasets: {
|
|
2224
|
+
id: string;
|
|
2225
|
+
accountId: string;
|
|
2226
|
+
accountTag: string;
|
|
2227
|
+
createdAt: string;
|
|
2228
|
+
enable: boolean;
|
|
2229
|
+
filters: {
|
|
2230
|
+
key:
|
|
2231
|
+
| "created_at"
|
|
2232
|
+
| "request_content_type"
|
|
2233
|
+
| "response_content_type"
|
|
2234
|
+
| "success"
|
|
2235
|
+
| "cached"
|
|
2236
|
+
| "provider"
|
|
2237
|
+
| "model"
|
|
2238
|
+
| "cost"
|
|
2239
|
+
| "tokens"
|
|
2240
|
+
| "tokens_in"
|
|
2241
|
+
| "tokens_out"
|
|
2242
|
+
| "duration"
|
|
2243
|
+
| "feedback";
|
|
2244
|
+
operator: "eq" | "contains" | "lt" | "gt";
|
|
2245
|
+
value: (string | number | boolean)[];
|
|
2246
|
+
}[];
|
|
2247
|
+
gatewayId: string;
|
|
2248
|
+
modifiedAt: string;
|
|
2249
|
+
name: string;
|
|
2033
2250
|
}[];
|
|
2034
2251
|
gatewayId: string;
|
|
2035
2252
|
modifiedAt: string;
|
|
2036
|
-
name: string;
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2253
|
+
name: string;
|
|
2254
|
+
processed: boolean;
|
|
2255
|
+
results: {
|
|
2256
|
+
id: string;
|
|
2257
|
+
createdAt: string;
|
|
2258
|
+
evaluationId: string;
|
|
2259
|
+
evaluationTypeId: string;
|
|
2260
|
+
modifiedAt: string;
|
|
2261
|
+
result: string;
|
|
2262
|
+
status: number;
|
|
2263
|
+
statusDescription: string;
|
|
2264
|
+
totalLogs: number;
|
|
2265
|
+
}[];
|
|
2266
|
+
totalLogs: number;
|
|
2267
|
+
}[];
|
|
2268
|
+
resultInfo: {
|
|
2269
|
+
count?: number | null;
|
|
2270
|
+
page?: number | null;
|
|
2271
|
+
perPage?: number | null;
|
|
2272
|
+
totalCount?: number | null;
|
|
2273
|
+
};
|
|
2274
|
+
}
|
|
2275
|
+
|
|
2276
|
+
export const ListEvaluationsResponse =
|
|
2277
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2278
|
+
result: Schema.Array(
|
|
2279
|
+
Schema.Struct({
|
|
2280
|
+
id: Schema.String,
|
|
2281
|
+
accountId: Schema.String,
|
|
2282
|
+
accountTag: Schema.String,
|
|
2283
|
+
createdAt: Schema.String,
|
|
2284
|
+
datasets: Schema.Array(
|
|
2285
|
+
Schema.Struct({
|
|
2286
|
+
id: Schema.String,
|
|
2287
|
+
accountId: Schema.String,
|
|
2288
|
+
accountTag: Schema.String,
|
|
2289
|
+
createdAt: Schema.String,
|
|
2290
|
+
enable: Schema.Boolean,
|
|
2291
|
+
filters: Schema.Array(
|
|
2292
|
+
Schema.Struct({
|
|
2293
|
+
key: Schema.Literals([
|
|
2294
|
+
"created_at",
|
|
2295
|
+
"request_content_type",
|
|
2296
|
+
"response_content_type",
|
|
2297
|
+
"success",
|
|
2298
|
+
"cached",
|
|
2299
|
+
"provider",
|
|
2300
|
+
"model",
|
|
2301
|
+
"cost",
|
|
2302
|
+
"tokens",
|
|
2303
|
+
"tokens_in",
|
|
2304
|
+
"tokens_out",
|
|
2305
|
+
"duration",
|
|
2306
|
+
"feedback",
|
|
2307
|
+
]),
|
|
2308
|
+
operator: Schema.Literals(["eq", "contains", "lt", "gt"]),
|
|
2309
|
+
value: Schema.Array(
|
|
2310
|
+
Schema.Union([Schema.String, Schema.Number, Schema.Boolean]),
|
|
2311
|
+
),
|
|
2312
|
+
}),
|
|
2089
2313
|
),
|
|
2090
|
-
|
|
2314
|
+
gatewayId: Schema.String,
|
|
2315
|
+
modifiedAt: Schema.String,
|
|
2316
|
+
name: Schema.String,
|
|
2317
|
+
}).pipe(
|
|
2318
|
+
Schema.encodeKeys({
|
|
2319
|
+
id: "id",
|
|
2320
|
+
accountId: "account_id",
|
|
2321
|
+
accountTag: "account_tag",
|
|
2322
|
+
createdAt: "created_at",
|
|
2323
|
+
enable: "enable",
|
|
2324
|
+
filters: "filters",
|
|
2325
|
+
gatewayId: "gateway_id",
|
|
2326
|
+
modifiedAt: "modified_at",
|
|
2327
|
+
name: "name",
|
|
2328
|
+
}),
|
|
2329
|
+
),
|
|
2091
2330
|
),
|
|
2092
2331
|
gatewayId: Schema.String,
|
|
2093
2332
|
modifiedAt: Schema.String,
|
|
2094
2333
|
name: Schema.String,
|
|
2334
|
+
processed: Schema.Boolean,
|
|
2335
|
+
results: Schema.Array(
|
|
2336
|
+
Schema.Struct({
|
|
2337
|
+
id: Schema.String,
|
|
2338
|
+
createdAt: Schema.String,
|
|
2339
|
+
evaluationId: Schema.String,
|
|
2340
|
+
evaluationTypeId: Schema.String,
|
|
2341
|
+
modifiedAt: Schema.String,
|
|
2342
|
+
result: Schema.String,
|
|
2343
|
+
status: Schema.Number,
|
|
2344
|
+
statusDescription: Schema.String,
|
|
2345
|
+
totalLogs: Schema.Number,
|
|
2346
|
+
}).pipe(
|
|
2347
|
+
Schema.encodeKeys({
|
|
2348
|
+
id: "id",
|
|
2349
|
+
createdAt: "created_at",
|
|
2350
|
+
evaluationId: "evaluation_id",
|
|
2351
|
+
evaluationTypeId: "evaluation_type_id",
|
|
2352
|
+
modifiedAt: "modified_at",
|
|
2353
|
+
result: "result",
|
|
2354
|
+
status: "status",
|
|
2355
|
+
statusDescription: "status_description",
|
|
2356
|
+
totalLogs: "total_logs",
|
|
2357
|
+
}),
|
|
2358
|
+
),
|
|
2359
|
+
),
|
|
2360
|
+
totalLogs: Schema.Number,
|
|
2095
2361
|
}).pipe(
|
|
2096
2362
|
Schema.encodeKeys({
|
|
2097
2363
|
id: "id",
|
|
2098
2364
|
accountId: "account_id",
|
|
2099
2365
|
accountTag: "account_tag",
|
|
2100
2366
|
createdAt: "created_at",
|
|
2101
|
-
|
|
2102
|
-
filters: "filters",
|
|
2367
|
+
datasets: "datasets",
|
|
2103
2368
|
gatewayId: "gateway_id",
|
|
2104
2369
|
modifiedAt: "modified_at",
|
|
2105
2370
|
name: "name",
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
),
|
|
2109
|
-
gatewayId: Schema.String,
|
|
2110
|
-
modifiedAt: Schema.String,
|
|
2111
|
-
name: Schema.String,
|
|
2112
|
-
processed: Schema.Boolean,
|
|
2113
|
-
results: Schema.Array(
|
|
2114
|
-
Schema.Struct({
|
|
2115
|
-
id: Schema.String,
|
|
2116
|
-
createdAt: Schema.String,
|
|
2117
|
-
evaluationId: Schema.String,
|
|
2118
|
-
evaluationTypeId: Schema.String,
|
|
2119
|
-
modifiedAt: Schema.String,
|
|
2120
|
-
result: Schema.String,
|
|
2121
|
-
status: Schema.Number,
|
|
2122
|
-
statusDescription: Schema.String,
|
|
2123
|
-
totalLogs: Schema.Number,
|
|
2124
|
-
}).pipe(
|
|
2125
|
-
Schema.encodeKeys({
|
|
2126
|
-
id: "id",
|
|
2127
|
-
createdAt: "created_at",
|
|
2128
|
-
evaluationId: "evaluation_id",
|
|
2129
|
-
evaluationTypeId: "evaluation_type_id",
|
|
2130
|
-
modifiedAt: "modified_at",
|
|
2131
|
-
result: "result",
|
|
2132
|
-
status: "status",
|
|
2133
|
-
statusDescription: "status_description",
|
|
2371
|
+
processed: "processed",
|
|
2372
|
+
results: "results",
|
|
2134
2373
|
totalLogs: "total_logs",
|
|
2135
2374
|
}),
|
|
2136
2375
|
),
|
|
2137
2376
|
),
|
|
2138
|
-
|
|
2377
|
+
resultInfo: Schema.Struct({
|
|
2378
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2379
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2380
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2381
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2382
|
+
}).pipe(
|
|
2383
|
+
Schema.encodeKeys({
|
|
2384
|
+
count: "count",
|
|
2385
|
+
page: "page",
|
|
2386
|
+
perPage: "per_page",
|
|
2387
|
+
totalCount: "total_count",
|
|
2388
|
+
}),
|
|
2389
|
+
),
|
|
2139
2390
|
}).pipe(
|
|
2140
|
-
Schema.encodeKeys({
|
|
2141
|
-
|
|
2142
|
-
accountId: "account_id",
|
|
2143
|
-
accountTag: "account_tag",
|
|
2144
|
-
createdAt: "created_at",
|
|
2145
|
-
datasets: "datasets",
|
|
2146
|
-
gatewayId: "gateway_id",
|
|
2147
|
-
modifiedAt: "modified_at",
|
|
2148
|
-
name: "name",
|
|
2149
|
-
processed: "processed",
|
|
2150
|
-
results: "results",
|
|
2151
|
-
totalLogs: "total_logs",
|
|
2152
|
-
}),
|
|
2153
|
-
),
|
|
2154
|
-
) as unknown as Schema.Schema<ListEvaluationsResponse>;
|
|
2391
|
+
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
2392
|
+
) as unknown as Schema.Schema<ListEvaluationsResponse>;
|
|
2155
2393
|
|
|
2156
2394
|
export type ListEvaluationsError = DefaultErrors;
|
|
2157
2395
|
|
|
2158
|
-
export const listEvaluations: API.
|
|
2396
|
+
export const listEvaluations: API.PaginatedOperationMethod<
|
|
2159
2397
|
ListEvaluationsRequest,
|
|
2160
2398
|
ListEvaluationsResponse,
|
|
2161
2399
|
ListEvaluationsError,
|
|
2162
2400
|
Credentials | HttpClient.HttpClient
|
|
2163
|
-
>
|
|
2401
|
+
> & {
|
|
2402
|
+
pages: (
|
|
2403
|
+
input: ListEvaluationsRequest,
|
|
2404
|
+
) => stream.Stream<
|
|
2405
|
+
ListEvaluationsResponse,
|
|
2406
|
+
ListEvaluationsError,
|
|
2407
|
+
Credentials | HttpClient.HttpClient
|
|
2408
|
+
>;
|
|
2409
|
+
items: (input: ListEvaluationsRequest) => stream.Stream<
|
|
2410
|
+
{
|
|
2411
|
+
id: string;
|
|
2412
|
+
accountId: string;
|
|
2413
|
+
accountTag: string;
|
|
2414
|
+
createdAt: string;
|
|
2415
|
+
datasets: {
|
|
2416
|
+
id: string;
|
|
2417
|
+
accountId: string;
|
|
2418
|
+
accountTag: string;
|
|
2419
|
+
createdAt: string;
|
|
2420
|
+
enable: boolean;
|
|
2421
|
+
filters: {
|
|
2422
|
+
key:
|
|
2423
|
+
| "created_at"
|
|
2424
|
+
| "request_content_type"
|
|
2425
|
+
| "response_content_type"
|
|
2426
|
+
| "success"
|
|
2427
|
+
| "cached"
|
|
2428
|
+
| "provider"
|
|
2429
|
+
| "model"
|
|
2430
|
+
| "cost"
|
|
2431
|
+
| "tokens"
|
|
2432
|
+
| "tokens_in"
|
|
2433
|
+
| "tokens_out"
|
|
2434
|
+
| "duration"
|
|
2435
|
+
| "feedback";
|
|
2436
|
+
operator: "eq" | "contains" | "lt" | "gt";
|
|
2437
|
+
value: (string | number | boolean)[];
|
|
2438
|
+
}[];
|
|
2439
|
+
gatewayId: string;
|
|
2440
|
+
modifiedAt: string;
|
|
2441
|
+
name: string;
|
|
2442
|
+
}[];
|
|
2443
|
+
gatewayId: string;
|
|
2444
|
+
modifiedAt: string;
|
|
2445
|
+
name: string;
|
|
2446
|
+
processed: boolean;
|
|
2447
|
+
results: {
|
|
2448
|
+
id: string;
|
|
2449
|
+
createdAt: string;
|
|
2450
|
+
evaluationId: string;
|
|
2451
|
+
evaluationTypeId: string;
|
|
2452
|
+
modifiedAt: string;
|
|
2453
|
+
result: string;
|
|
2454
|
+
status: number;
|
|
2455
|
+
statusDescription: string;
|
|
2456
|
+
totalLogs: number;
|
|
2457
|
+
}[];
|
|
2458
|
+
totalLogs: number;
|
|
2459
|
+
},
|
|
2460
|
+
ListEvaluationsError,
|
|
2461
|
+
Credentials | HttpClient.HttpClient
|
|
2462
|
+
>;
|
|
2463
|
+
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
2164
2464
|
input: ListEvaluationsRequest,
|
|
2165
2465
|
output: ListEvaluationsResponse,
|
|
2166
2466
|
errors: [],
|
|
2467
|
+
pagination: {
|
|
2468
|
+
mode: "page",
|
|
2469
|
+
inputToken: "page",
|
|
2470
|
+
outputToken: "resultInfo.page",
|
|
2471
|
+
items: "result",
|
|
2472
|
+
pageSize: "perPage",
|
|
2473
|
+
} as const,
|
|
2167
2474
|
}));
|
|
2168
2475
|
|
|
2169
2476
|
export interface CreateEvaluationRequest {
|
|
@@ -2332,21 +2639,25 @@ export const CreateEvaluationResponse =
|
|
|
2332
2639
|
),
|
|
2333
2640
|
),
|
|
2334
2641
|
totalLogs: Schema.Number,
|
|
2335
|
-
})
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2642
|
+
})
|
|
2643
|
+
.pipe(
|
|
2644
|
+
Schema.encodeKeys({
|
|
2645
|
+
id: "id",
|
|
2646
|
+
accountId: "account_id",
|
|
2647
|
+
accountTag: "account_tag",
|
|
2648
|
+
createdAt: "created_at",
|
|
2649
|
+
datasets: "datasets",
|
|
2650
|
+
gatewayId: "gateway_id",
|
|
2651
|
+
modifiedAt: "modified_at",
|
|
2652
|
+
name: "name",
|
|
2653
|
+
processed: "processed",
|
|
2654
|
+
results: "results",
|
|
2655
|
+
totalLogs: "total_logs",
|
|
2656
|
+
}),
|
|
2657
|
+
)
|
|
2658
|
+
.pipe(
|
|
2659
|
+
T.ResponsePath("result"),
|
|
2660
|
+
) as unknown as Schema.Schema<CreateEvaluationResponse>;
|
|
2350
2661
|
|
|
2351
2662
|
export type CreateEvaluationError = DefaultErrors;
|
|
2352
2663
|
|
|
@@ -2514,21 +2825,25 @@ export const DeleteEvaluationResponse =
|
|
|
2514
2825
|
),
|
|
2515
2826
|
),
|
|
2516
2827
|
totalLogs: Schema.Number,
|
|
2517
|
-
})
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2828
|
+
})
|
|
2829
|
+
.pipe(
|
|
2830
|
+
Schema.encodeKeys({
|
|
2831
|
+
id: "id",
|
|
2832
|
+
accountId: "account_id",
|
|
2833
|
+
accountTag: "account_tag",
|
|
2834
|
+
createdAt: "created_at",
|
|
2835
|
+
datasets: "datasets",
|
|
2836
|
+
gatewayId: "gateway_id",
|
|
2837
|
+
modifiedAt: "modified_at",
|
|
2838
|
+
name: "name",
|
|
2839
|
+
processed: "processed",
|
|
2840
|
+
results: "results",
|
|
2841
|
+
totalLogs: "total_logs",
|
|
2842
|
+
}),
|
|
2843
|
+
)
|
|
2844
|
+
.pipe(
|
|
2845
|
+
T.ResponsePath("result"),
|
|
2846
|
+
) as unknown as Schema.Schema<DeleteEvaluationResponse>;
|
|
2532
2847
|
|
|
2533
2848
|
export type DeleteEvaluationError = DefaultErrors;
|
|
2534
2849
|
|
|
@@ -2570,53 +2885,107 @@ export const ListEvaluationTypesRequest =
|
|
|
2570
2885
|
}),
|
|
2571
2886
|
) as unknown as Schema.Schema<ListEvaluationTypesRequest>;
|
|
2572
2887
|
|
|
2573
|
-
export
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2888
|
+
export interface ListEvaluationTypesResponse {
|
|
2889
|
+
result: {
|
|
2890
|
+
id: string;
|
|
2891
|
+
createdAt: string;
|
|
2892
|
+
description: string;
|
|
2893
|
+
enable: boolean;
|
|
2894
|
+
mandatory: boolean;
|
|
2895
|
+
modifiedAt: string;
|
|
2896
|
+
name: string;
|
|
2897
|
+
type: string;
|
|
2898
|
+
}[];
|
|
2899
|
+
resultInfo: {
|
|
2900
|
+
count?: number | null;
|
|
2901
|
+
page?: number | null;
|
|
2902
|
+
perPage?: number | null;
|
|
2903
|
+
totalCount?: number | null;
|
|
2904
|
+
};
|
|
2905
|
+
}
|
|
2583
2906
|
|
|
2584
2907
|
export const ListEvaluationTypesResponse =
|
|
2585
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
2586
|
-
Schema.
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2908
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2909
|
+
result: Schema.Array(
|
|
2910
|
+
Schema.Struct({
|
|
2911
|
+
id: Schema.String,
|
|
2912
|
+
createdAt: Schema.String,
|
|
2913
|
+
description: Schema.String,
|
|
2914
|
+
enable: Schema.Boolean,
|
|
2915
|
+
mandatory: Schema.Boolean,
|
|
2916
|
+
modifiedAt: Schema.String,
|
|
2917
|
+
name: Schema.String,
|
|
2918
|
+
type: Schema.String,
|
|
2919
|
+
}).pipe(
|
|
2920
|
+
Schema.encodeKeys({
|
|
2921
|
+
id: "id",
|
|
2922
|
+
createdAt: "created_at",
|
|
2923
|
+
description: "description",
|
|
2924
|
+
enable: "enable",
|
|
2925
|
+
mandatory: "mandatory",
|
|
2926
|
+
modifiedAt: "modified_at",
|
|
2927
|
+
name: "name",
|
|
2928
|
+
type: "type",
|
|
2929
|
+
}),
|
|
2930
|
+
),
|
|
2931
|
+
),
|
|
2932
|
+
resultInfo: Schema.Struct({
|
|
2933
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2934
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2935
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2936
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2595
2937
|
}).pipe(
|
|
2596
2938
|
Schema.encodeKeys({
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
mandatory: "mandatory",
|
|
2602
|
-
modifiedAt: "modified_at",
|
|
2603
|
-
name: "name",
|
|
2604
|
-
type: "type",
|
|
2939
|
+
count: "count",
|
|
2940
|
+
page: "page",
|
|
2941
|
+
perPage: "per_page",
|
|
2942
|
+
totalCount: "total_count",
|
|
2605
2943
|
}),
|
|
2606
2944
|
),
|
|
2945
|
+
}).pipe(
|
|
2946
|
+
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
2607
2947
|
) as unknown as Schema.Schema<ListEvaluationTypesResponse>;
|
|
2608
2948
|
|
|
2609
2949
|
export type ListEvaluationTypesError = DefaultErrors;
|
|
2610
2950
|
|
|
2611
|
-
export const listEvaluationTypes: API.
|
|
2951
|
+
export const listEvaluationTypes: API.PaginatedOperationMethod<
|
|
2612
2952
|
ListEvaluationTypesRequest,
|
|
2613
2953
|
ListEvaluationTypesResponse,
|
|
2614
2954
|
ListEvaluationTypesError,
|
|
2615
2955
|
Credentials | HttpClient.HttpClient
|
|
2616
|
-
>
|
|
2956
|
+
> & {
|
|
2957
|
+
pages: (
|
|
2958
|
+
input: ListEvaluationTypesRequest,
|
|
2959
|
+
) => stream.Stream<
|
|
2960
|
+
ListEvaluationTypesResponse,
|
|
2961
|
+
ListEvaluationTypesError,
|
|
2962
|
+
Credentials | HttpClient.HttpClient
|
|
2963
|
+
>;
|
|
2964
|
+
items: (input: ListEvaluationTypesRequest) => stream.Stream<
|
|
2965
|
+
{
|
|
2966
|
+
id: string;
|
|
2967
|
+
createdAt: string;
|
|
2968
|
+
description: string;
|
|
2969
|
+
enable: boolean;
|
|
2970
|
+
mandatory: boolean;
|
|
2971
|
+
modifiedAt: string;
|
|
2972
|
+
name: string;
|
|
2973
|
+
type: string;
|
|
2974
|
+
},
|
|
2975
|
+
ListEvaluationTypesError,
|
|
2976
|
+
Credentials | HttpClient.HttpClient
|
|
2977
|
+
>;
|
|
2978
|
+
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
2617
2979
|
input: ListEvaluationTypesRequest,
|
|
2618
2980
|
output: ListEvaluationTypesResponse,
|
|
2619
2981
|
errors: [],
|
|
2982
|
+
pagination: {
|
|
2983
|
+
mode: "page",
|
|
2984
|
+
inputToken: "page",
|
|
2985
|
+
outputToken: "resultInfo.page",
|
|
2986
|
+
items: "result",
|
|
2987
|
+
pageSize: "perPage",
|
|
2988
|
+
} as const,
|
|
2620
2989
|
}));
|
|
2621
2990
|
|
|
2622
2991
|
// =============================================================================
|
|
@@ -2702,35 +3071,37 @@ export const GetLogResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2702
3071
|
responseSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2703
3072
|
statusCode: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2704
3073
|
step: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2705
|
-
})
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
)
|
|
3074
|
+
})
|
|
3075
|
+
.pipe(
|
|
3076
|
+
Schema.encodeKeys({
|
|
3077
|
+
id: "id",
|
|
3078
|
+
cached: "cached",
|
|
3079
|
+
createdAt: "created_at",
|
|
3080
|
+
duration: "duration",
|
|
3081
|
+
model: "model",
|
|
3082
|
+
path: "path",
|
|
3083
|
+
provider: "provider",
|
|
3084
|
+
success: "success",
|
|
3085
|
+
tokensIn: "tokens_in",
|
|
3086
|
+
tokensOut: "tokens_out",
|
|
3087
|
+
cost: "cost",
|
|
3088
|
+
customCost: "custom_cost",
|
|
3089
|
+
metadata: "metadata",
|
|
3090
|
+
modelType: "model_type",
|
|
3091
|
+
requestContentType: "request_content_type",
|
|
3092
|
+
requestHead: "request_head",
|
|
3093
|
+
requestHeadComplete: "request_head_complete",
|
|
3094
|
+
requestSize: "request_size",
|
|
3095
|
+
requestType: "request_type",
|
|
3096
|
+
responseContentType: "response_content_type",
|
|
3097
|
+
responseHead: "response_head",
|
|
3098
|
+
responseHeadComplete: "response_head_complete",
|
|
3099
|
+
responseSize: "response_size",
|
|
3100
|
+
statusCode: "status_code",
|
|
3101
|
+
step: "step",
|
|
3102
|
+
}),
|
|
3103
|
+
)
|
|
3104
|
+
.pipe(T.ResponsePath("result")) as unknown as Schema.Schema<GetLogResponse>;
|
|
2734
3105
|
|
|
2735
3106
|
export type GetLogError = DefaultErrors;
|
|
2736
3107
|
|
|
@@ -2949,89 +3320,154 @@ export const ListLogsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2949
3320
|
}),
|
|
2950
3321
|
) as unknown as Schema.Schema<ListLogsRequest>;
|
|
2951
3322
|
|
|
2952
|
-
export
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
3323
|
+
export interface ListLogsResponse {
|
|
3324
|
+
result: {
|
|
3325
|
+
id: string;
|
|
3326
|
+
cached: boolean;
|
|
3327
|
+
createdAt: string;
|
|
3328
|
+
duration: number;
|
|
3329
|
+
model: string;
|
|
3330
|
+
path: string;
|
|
3331
|
+
provider: string;
|
|
3332
|
+
success: boolean;
|
|
3333
|
+
tokensIn: number | null;
|
|
3334
|
+
tokensOut: number | null;
|
|
3335
|
+
cost?: number | null;
|
|
3336
|
+
customCost?: boolean | null;
|
|
3337
|
+
metadata?: string | null;
|
|
3338
|
+
modelType?: string | null;
|
|
3339
|
+
requestContentType?: string | null;
|
|
3340
|
+
requestType?: string | null;
|
|
3341
|
+
responseContentType?: string | null;
|
|
3342
|
+
statusCode?: number | null;
|
|
3343
|
+
step?: number | null;
|
|
3344
|
+
}[];
|
|
3345
|
+
resultInfo: {
|
|
3346
|
+
count?: number | null;
|
|
3347
|
+
page?: number | null;
|
|
3348
|
+
perPage?: number | null;
|
|
3349
|
+
totalCount?: number | null;
|
|
3350
|
+
};
|
|
3351
|
+
}
|
|
2973
3352
|
|
|
2974
|
-
export const ListLogsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
2975
|
-
Schema.
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
Schema.
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
Schema.
|
|
3353
|
+
export const ListLogsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3354
|
+
result: Schema.Array(
|
|
3355
|
+
Schema.Struct({
|
|
3356
|
+
id: Schema.String,
|
|
3357
|
+
cached: Schema.Boolean,
|
|
3358
|
+
createdAt: Schema.String,
|
|
3359
|
+
duration: Schema.Number,
|
|
3360
|
+
model: Schema.String,
|
|
3361
|
+
path: Schema.String,
|
|
3362
|
+
provider: Schema.String,
|
|
3363
|
+
success: Schema.Boolean,
|
|
3364
|
+
tokensIn: Schema.Union([Schema.Number, Schema.Null]),
|
|
3365
|
+
tokensOut: Schema.Union([Schema.Number, Schema.Null]),
|
|
3366
|
+
cost: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3367
|
+
customCost: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3368
|
+
metadata: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3369
|
+
modelType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3370
|
+
requestContentType: Schema.optional(
|
|
3371
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
3372
|
+
),
|
|
3373
|
+
requestType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3374
|
+
responseContentType: Schema.optional(
|
|
3375
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
3376
|
+
),
|
|
3377
|
+
statusCode: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3378
|
+
step: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3379
|
+
}).pipe(
|
|
3380
|
+
Schema.encodeKeys({
|
|
3381
|
+
id: "id",
|
|
3382
|
+
cached: "cached",
|
|
3383
|
+
createdAt: "created_at",
|
|
3384
|
+
duration: "duration",
|
|
3385
|
+
model: "model",
|
|
3386
|
+
path: "path",
|
|
3387
|
+
provider: "provider",
|
|
3388
|
+
success: "success",
|
|
3389
|
+
tokensIn: "tokens_in",
|
|
3390
|
+
tokensOut: "tokens_out",
|
|
3391
|
+
cost: "cost",
|
|
3392
|
+
customCost: "custom_cost",
|
|
3393
|
+
metadata: "metadata",
|
|
3394
|
+
modelType: "model_type",
|
|
3395
|
+
requestContentType: "request_content_type",
|
|
3396
|
+
requestType: "request_type",
|
|
3397
|
+
responseContentType: "response_content_type",
|
|
3398
|
+
statusCode: "status_code",
|
|
3399
|
+
step: "step",
|
|
3400
|
+
}),
|
|
2996
3401
|
),
|
|
2997
|
-
|
|
2998
|
-
|
|
3402
|
+
),
|
|
3403
|
+
resultInfo: Schema.Struct({
|
|
3404
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3405
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3406
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3407
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2999
3408
|
}).pipe(
|
|
3000
3409
|
Schema.encodeKeys({
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
model: "model",
|
|
3006
|
-
path: "path",
|
|
3007
|
-
provider: "provider",
|
|
3008
|
-
success: "success",
|
|
3009
|
-
tokensIn: "tokens_in",
|
|
3010
|
-
tokensOut: "tokens_out",
|
|
3011
|
-
cost: "cost",
|
|
3012
|
-
customCost: "custom_cost",
|
|
3013
|
-
metadata: "metadata",
|
|
3014
|
-
modelType: "model_type",
|
|
3015
|
-
requestContentType: "request_content_type",
|
|
3016
|
-
requestType: "request_type",
|
|
3017
|
-
responseContentType: "response_content_type",
|
|
3018
|
-
statusCode: "status_code",
|
|
3019
|
-
step: "step",
|
|
3410
|
+
count: "count",
|
|
3411
|
+
page: "page",
|
|
3412
|
+
perPage: "per_page",
|
|
3413
|
+
totalCount: "total_count",
|
|
3020
3414
|
}),
|
|
3021
3415
|
),
|
|
3416
|
+
}).pipe(
|
|
3417
|
+
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
3022
3418
|
) as unknown as Schema.Schema<ListLogsResponse>;
|
|
3023
3419
|
|
|
3024
3420
|
export type ListLogsError = DefaultErrors;
|
|
3025
3421
|
|
|
3026
|
-
export const listLogs: API.
|
|
3422
|
+
export const listLogs: API.PaginatedOperationMethod<
|
|
3027
3423
|
ListLogsRequest,
|
|
3028
3424
|
ListLogsResponse,
|
|
3029
3425
|
ListLogsError,
|
|
3030
3426
|
Credentials | HttpClient.HttpClient
|
|
3031
|
-
>
|
|
3427
|
+
> & {
|
|
3428
|
+
pages: (
|
|
3429
|
+
input: ListLogsRequest,
|
|
3430
|
+
) => stream.Stream<
|
|
3431
|
+
ListLogsResponse,
|
|
3432
|
+
ListLogsError,
|
|
3433
|
+
Credentials | HttpClient.HttpClient
|
|
3434
|
+
>;
|
|
3435
|
+
items: (input: ListLogsRequest) => stream.Stream<
|
|
3436
|
+
{
|
|
3437
|
+
id: string;
|
|
3438
|
+
cached: boolean;
|
|
3439
|
+
createdAt: string;
|
|
3440
|
+
duration: number;
|
|
3441
|
+
model: string;
|
|
3442
|
+
path: string;
|
|
3443
|
+
provider: string;
|
|
3444
|
+
success: boolean;
|
|
3445
|
+
tokensIn: number | null;
|
|
3446
|
+
tokensOut: number | null;
|
|
3447
|
+
cost?: number | null;
|
|
3448
|
+
customCost?: boolean | null;
|
|
3449
|
+
metadata?: string | null;
|
|
3450
|
+
modelType?: string | null;
|
|
3451
|
+
requestContentType?: string | null;
|
|
3452
|
+
requestType?: string | null;
|
|
3453
|
+
responseContentType?: string | null;
|
|
3454
|
+
statusCode?: number | null;
|
|
3455
|
+
step?: number | null;
|
|
3456
|
+
},
|
|
3457
|
+
ListLogsError,
|
|
3458
|
+
Credentials | HttpClient.HttpClient
|
|
3459
|
+
>;
|
|
3460
|
+
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
3032
3461
|
input: ListLogsRequest,
|
|
3033
3462
|
output: ListLogsResponse,
|
|
3034
3463
|
errors: [],
|
|
3464
|
+
pagination: {
|
|
3465
|
+
mode: "page",
|
|
3466
|
+
inputToken: "page",
|
|
3467
|
+
outputToken: "resultInfo.page",
|
|
3468
|
+
items: "result",
|
|
3469
|
+
pageSize: "perPage",
|
|
3470
|
+
} as const,
|
|
3035
3471
|
}));
|
|
3036
3472
|
|
|
3037
3473
|
export interface PatchLogRequest {
|
|
@@ -3063,8 +3499,9 @@ export const PatchLogRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
3063
3499
|
|
|
3064
3500
|
export type PatchLogResponse = unknown;
|
|
3065
3501
|
|
|
3066
|
-
export const PatchLogResponse =
|
|
3067
|
-
|
|
3502
|
+
export const PatchLogResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
|
|
3503
|
+
T.ResponsePath("result"),
|
|
3504
|
+
) as unknown as Schema.Schema<PatchLogResponse>;
|
|
3068
3505
|
|
|
3069
3506
|
export type PatchLogError = DefaultErrors;
|
|
3070
3507
|
|
|
@@ -3318,8 +3755,9 @@ export const GetUrlRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
3318
3755
|
|
|
3319
3756
|
export type GetUrlResponse = string;
|
|
3320
3757
|
|
|
3321
|
-
export const GetUrlResponse =
|
|
3322
|
-
|
|
3758
|
+
export const GetUrlResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(
|
|
3759
|
+
T.ResponsePath("result"),
|
|
3760
|
+
) as unknown as Schema.Schema<GetUrlResponse>;
|
|
3323
3761
|
|
|
3324
3762
|
export type GetUrlError = DefaultErrors;
|
|
3325
3763
|
|