@distilled.cloud/cloudflare 0.29.0 → 0.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/services/abuse-reports.d.ts.map +1 -1
- package/lib/services/abuse-reports.js +26 -26
- package/lib/services/abuse-reports.js.map +1 -1
- package/lib/services/accounts.d.ts.map +1 -1
- package/lib/services/accounts.js +114 -123
- package/lib/services/accounts.js.map +1 -1
- package/lib/services/acm.d.ts.map +1 -1
- package/lib/services/acm.js +23 -23
- package/lib/services/acm.js.map +1 -1
- package/lib/services/addressing.d.ts.map +1 -1
- package/lib/services/addressing.js +132 -132
- package/lib/services/addressing.js.map +1 -1
- package/lib/services/ai-gateway.d.ts.map +1 -1
- package/lib/services/ai-gateway.js +213 -207
- package/lib/services/ai-gateway.js.map +1 -1
- package/lib/services/ai-security.d.ts.map +1 -1
- package/lib/services/ai-security.js +13 -13
- package/lib/services/ai-security.js.map +1 -1
- package/lib/services/ai.d.ts.map +1 -1
- package/lib/services/ai.js +62 -62
- package/lib/services/ai.js.map +1 -1
- package/lib/services/aisearch.d.ts.map +1 -1
- package/lib/services/aisearch.js +187 -193
- package/lib/services/aisearch.js.map +1 -1
- package/lib/services/alerting.d.ts.map +1 -1
- package/lib/services/alerting.js +78 -78
- package/lib/services/alerting.js.map +1 -1
- package/lib/services/api-gateway.d.ts.map +1 -1
- package/lib/services/api-gateway.js +168 -177
- package/lib/services/api-gateway.js.map +1 -1
- package/lib/services/argo.js +12 -12
- package/lib/services/argo.js.map +1 -1
- package/lib/services/audit-logs.d.ts.map +1 -1
- package/lib/services/audit-logs.js +9 -9
- package/lib/services/audit-logs.js.map +1 -1
- package/lib/services/billing.d.ts.map +1 -1
- package/lib/services/billing.js +11 -11
- package/lib/services/billing.js.map +1 -1
- package/lib/services/bot-management.d.ts.map +1 -1
- package/lib/services/bot-management.js +18 -30
- package/lib/services/bot-management.js.map +1 -1
- package/lib/services/botnet-feed.d.ts.map +1 -1
- package/lib/services/botnet-feed.js +12 -12
- package/lib/services/botnet-feed.js.map +1 -1
- package/lib/services/brand-protection.d.ts.map +1 -1
- package/lib/services/brand-protection.js +59 -59
- package/lib/services/brand-protection.js.map +1 -1
- package/lib/services/browser-rendering.d.ts.map +1 -1
- package/lib/services/browser-rendering.js +103 -103
- package/lib/services/browser-rendering.js.map +1 -1
- package/lib/services/cache.d.ts.map +1 -1
- package/lib/services/cache.js +72 -72
- package/lib/services/cache.js.map +1 -1
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +31 -31
- package/lib/services/calls.js.map +1 -1
- package/lib/services/certificate-authorities.js +6 -6
- package/lib/services/certificate-authorities.js.map +1 -1
- package/lib/services/client-certificates.js +18 -18
- package/lib/services/client-certificates.js.map +1 -1
- package/lib/services/cloud-connector.d.ts.map +1 -1
- package/lib/services/cloud-connector.js +8 -8
- package/lib/services/cloud-connector.js.map +1 -1
- package/lib/services/cloudforce-one.d.ts.map +1 -1
- package/lib/services/cloudforce-one.js +178 -178
- package/lib/services/cloudforce-one.js.map +1 -1
- package/lib/services/connectivity.js +25 -25
- package/lib/services/connectivity.js.map +1 -1
- package/lib/services/containers.js +49 -49
- package/lib/services/containers.js.map +1 -1
- package/lib/services/content-scanning.d.ts.map +1 -1
- package/lib/services/content-scanning.js +29 -29
- package/lib/services/content-scanning.js.map +1 -1
- package/lib/services/csam-scanner.d.ts.map +1 -1
- package/lib/services/csam-scanner.js +8 -8
- package/lib/services/csam-scanner.js.map +1 -1
- package/lib/services/custom-certificates.d.ts.map +1 -1
- package/lib/services/custom-certificates.js +24 -24
- package/lib/services/custom-certificates.js.map +1 -1
- package/lib/services/custom-csrs.d.ts.map +1 -1
- package/lib/services/custom-csrs.js +22 -22
- package/lib/services/custom-csrs.js.map +1 -1
- package/lib/services/custom-hostnames.d.ts.map +1 -1
- package/lib/services/custom-hostnames.js +40 -40
- package/lib/services/custom-hostnames.js.map +1 -1
- package/lib/services/custom-nameservers.js +11 -11
- package/lib/services/custom-nameservers.js.map +1 -1
- package/lib/services/custom-pages.d.ts.map +1 -1
- package/lib/services/custom-pages.js +43 -43
- package/lib/services/custom-pages.js.map +1 -1
- package/lib/services/d1.d.ts +4 -4
- package/lib/services/d1.d.ts.map +1 -1
- package/lib/services/d1.js +69 -51
- package/lib/services/d1.js.map +1 -1
- package/lib/services/dcv-delegation.js +3 -3
- package/lib/services/dcv-delegation.js.map +1 -1
- package/lib/services/ddos-protection.js +126 -126
- package/lib/services/ddos-protection.js.map +1 -1
- package/lib/services/diagnostics.js +27 -27
- package/lib/services/diagnostics.js.map +1 -1
- package/lib/services/dls.d.ts.map +1 -1
- package/lib/services/dls.js +26 -26
- package/lib/services/dls.js.map +1 -1
- package/lib/services/dns-firewall.d.ts.map +1 -1
- package/lib/services/dns-firewall.js +34 -34
- package/lib/services/dns-firewall.js.map +1 -1
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +268 -268
- package/lib/services/dns.js.map +1 -1
- package/lib/services/durable-objects.d.ts.map +1 -1
- package/lib/services/durable-objects.js +11 -11
- package/lib/services/durable-objects.js.map +1 -1
- package/lib/services/email-auth.d.ts.map +1 -1
- package/lib/services/email-auth.js +13 -13
- package/lib/services/email-auth.js.map +1 -1
- package/lib/services/email-routing.d.ts.map +1 -1
- package/lib/services/email-routing.js +70 -70
- package/lib/services/email-routing.js.map +1 -1
- package/lib/services/email-security.d.ts.map +1 -1
- package/lib/services/email-security.js +195 -195
- package/lib/services/email-security.js.map +1 -1
- package/lib/services/email-sending.d.ts.map +1 -1
- package/lib/services/email-sending.js +28 -28
- package/lib/services/email-sending.js.map +1 -1
- package/lib/services/filters.d.ts.map +1 -1
- package/lib/services/filters.js +25 -25
- package/lib/services/filters.js.map +1 -1
- package/lib/services/firewall.d.ts.map +1 -1
- package/lib/services/firewall.js +149 -149
- package/lib/services/firewall.js.map +1 -1
- package/lib/services/flagship.d.ts.map +1 -1
- package/lib/services/flagship.js +52 -52
- package/lib/services/flagship.js.map +1 -1
- package/lib/services/fraud.js +8 -8
- package/lib/services/fraud.js.map +1 -1
- package/lib/services/google-tag-gateway.d.ts.map +1 -1
- package/lib/services/google-tag-gateway.js +7 -7
- package/lib/services/google-tag-gateway.js.map +1 -1
- package/lib/services/healthchecks.d.ts.map +1 -1
- package/lib/services/healthchecks.js +31 -31
- package/lib/services/healthchecks.js.map +1 -1
- package/lib/services/hostnames.d.ts.map +1 -1
- package/lib/services/hostnames.js +10 -10
- package/lib/services/hostnames.js.map +1 -1
- package/lib/services/hyperdrive.d.ts.map +1 -1
- package/lib/services/hyperdrive.js +32 -32
- package/lib/services/hyperdrive.js.map +1 -1
- package/lib/services/iam.d.ts.map +1 -1
- package/lib/services/iam.js +113 -113
- package/lib/services/iam.js.map +1 -1
- package/lib/services/images.d.ts.map +1 -1
- package/lib/services/images.js +59 -59
- package/lib/services/images.js.map +1 -1
- package/lib/services/intel.d.ts.map +1 -1
- package/lib/services/intel.js +102 -102
- package/lib/services/intel.js.map +1 -1
- package/lib/services/ips.js +5 -5
- package/lib/services/ips.js.map +1 -1
- package/lib/services/keyless-certificates.js +17 -17
- package/lib/services/keyless-certificates.js.map +1 -1
- package/lib/services/kv.d.ts.map +1 -1
- package/lib/services/kv.js +54 -54
- package/lib/services/kv.js.map +1 -1
- package/lib/services/leaked-credential-checks.d.ts.map +1 -1
- package/lib/services/leaked-credential-checks.js +22 -22
- package/lib/services/leaked-credential-checks.js.map +1 -1
- package/lib/services/load-balancers.d.ts.map +1 -1
- package/lib/services/load-balancers.js +139 -157
- package/lib/services/load-balancers.js.map +1 -1
- package/lib/services/logpush.d.ts.map +1 -1
- package/lib/services/logpush.js +69 -69
- package/lib/services/logpush.js.map +1 -1
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +58 -58
- package/lib/services/logs.js.map +1 -1
- package/lib/services/magic-cloud-networking.d.ts.map +1 -1
- package/lib/services/magic-cloud-networking.js +138 -168
- package/lib/services/magic-cloud-networking.js.map +1 -1
- package/lib/services/magic-network-monitoring.d.ts.map +1 -1
- package/lib/services/magic-network-monitoring.js +47 -65
- package/lib/services/magic-network-monitoring.js.map +1 -1
- package/lib/services/magic-transit.d.ts.map +1 -1
- package/lib/services/magic-transit.js +340 -364
- package/lib/services/magic-transit.js.map +1 -1
- package/lib/services/managed-transforms.js +11 -11
- package/lib/services/managed-transforms.js.map +1 -1
- package/lib/services/memberships.d.ts.map +1 -1
- package/lib/services/memberships.js +25 -25
- package/lib/services/memberships.js.map +1 -1
- package/lib/services/moq.d.ts.map +1 -1
- package/lib/services/moq.js +23 -23
- package/lib/services/moq.js.map +1 -1
- package/lib/services/mtls-certificates.d.ts.map +1 -1
- package/lib/services/mtls-certificates.js +17 -17
- package/lib/services/mtls-certificates.js.map +1 -1
- package/lib/services/network-interconnects.d.ts.map +1 -1
- package/lib/services/network-interconnects.js +56 -56
- package/lib/services/network-interconnects.js.map +1 -1
- package/lib/services/organizations.d.ts.map +1 -1
- package/lib/services/organizations.js +42 -42
- package/lib/services/organizations.js.map +1 -1
- package/lib/services/origin-ca-certificates.js +14 -14
- package/lib/services/origin-ca-certificates.js.map +1 -1
- package/lib/services/origin-post-quantum-encryption.js +6 -6
- package/lib/services/origin-post-quantum-encryption.js.map +1 -1
- package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
- package/lib/services/origin-tls-client-auth.js +52 -52
- package/lib/services/origin-tls-client-auth.js.map +1 -1
- package/lib/services/origin-tls-compliance-modes.js +12 -12
- package/lib/services/origin-tls-compliance-modes.js.map +1 -1
- package/lib/services/page-rules.d.ts.map +1 -1
- package/lib/services/page-rules.js +62 -62
- package/lib/services/page-rules.js.map +1 -1
- package/lib/services/page-shield.d.ts.map +1 -1
- package/lib/services/page-shield.js +45 -48
- package/lib/services/page-shield.js.map +1 -1
- package/lib/services/pages.d.ts.map +1 -1
- package/lib/services/pages.js +78 -78
- package/lib/services/pages.js.map +1 -1
- package/lib/services/pipelines.d.ts.map +1 -1
- package/lib/services/pipelines.js +102 -102
- package/lib/services/pipelines.js.map +1 -1
- package/lib/services/queues.d.ts.map +1 -1
- package/lib/services/queues.js +100 -103
- package/lib/services/queues.js.map +1 -1
- package/lib/services/r2-data-catalog.d.ts.map +1 -1
- package/lib/services/r2-data-catalog.js +42 -42
- package/lib/services/r2-data-catalog.js.map +1 -1
- package/lib/services/r2.d.ts.map +1 -1
- package/lib/services/r2.js +190 -190
- package/lib/services/r2.js.map +1 -1
- package/lib/services/radar.d.ts.map +1 -1
- package/lib/services/radar.js +991 -1009
- package/lib/services/radar.js.map +1 -1
- package/lib/services/rate-limits.d.ts.map +1 -1
- package/lib/services/rate-limits.js +24 -24
- package/lib/services/rate-limits.js.map +1 -1
- package/lib/services/realtime-kit.d.ts.map +1 -1
- package/lib/services/realtime-kit.js +276 -276
- package/lib/services/realtime-kit.js.map +1 -1
- package/lib/services/registrar.d.ts.map +1 -1
- package/lib/services/registrar.js +28 -28
- package/lib/services/registrar.js.map +1 -1
- package/lib/services/request-tracers.d.ts.map +1 -1
- package/lib/services/request-tracers.js +7 -7
- package/lib/services/request-tracers.js.map +1 -1
- package/lib/services/resource-sharing.d.ts.map +1 -1
- package/lib/services/resource-sharing.js +49 -49
- package/lib/services/resource-sharing.js.map +1 -1
- package/lib/services/resource-tagging.d.ts.map +1 -1
- package/lib/services/resource-tagging.js +56 -56
- package/lib/services/resource-tagging.js.map +1 -1
- package/lib/services/rules.d.ts.map +1 -1
- package/lib/services/rules.js +50 -50
- package/lib/services/rules.js.map +1 -1
- package/lib/services/rulesets.d.ts +2 -2
- package/lib/services/rulesets.d.ts.map +1 -1
- package/lib/services/rulesets.js +226 -190
- package/lib/services/rulesets.js.map +1 -1
- package/lib/services/rum.d.ts.map +1 -1
- package/lib/services/rum.js +35 -35
- package/lib/services/rum.js.map +1 -1
- package/lib/services/schema-validation.d.ts.map +1 -1
- package/lib/services/schema-validation.js +43 -46
- package/lib/services/schema-validation.js.map +1 -1
- package/lib/services/secrets-store.d.ts.map +1 -1
- package/lib/services/secrets-store.js +41 -41
- package/lib/services/secrets-store.js.map +1 -1
- package/lib/services/security-center.d.ts.map +1 -1
- package/lib/services/security-center.js +54 -57
- package/lib/services/security-center.js.map +1 -1
- package/lib/services/security-txt.d.ts.map +1 -1
- package/lib/services/security-txt.js +12 -12
- package/lib/services/security-txt.js.map +1 -1
- package/lib/services/snippets.d.ts.map +1 -1
- package/lib/services/snippets.js +31 -31
- package/lib/services/snippets.js.map +1 -1
- package/lib/services/spectrum.d.ts.map +1 -1
- package/lib/services/spectrum.js +35 -35
- package/lib/services/spectrum.js.map +1 -1
- package/lib/services/speed.d.ts.map +1 -1
- package/lib/services/speed.js +41 -41
- package/lib/services/speed.js.map +1 -1
- package/lib/services/ssl.d.ts.map +1 -1
- package/lib/services/ssl.js +48 -48
- package/lib/services/ssl.js.map +1 -1
- package/lib/services/stream.d.ts.map +1 -1
- package/lib/services/stream.js +147 -147
- package/lib/services/stream.js.map +1 -1
- package/lib/services/tenant-custom-nameservers.js +11 -11
- package/lib/services/tenant-custom-nameservers.js.map +1 -1
- package/lib/services/tenants.d.ts.map +1 -1
- package/lib/services/tenants.js +28 -28
- package/lib/services/tenants.js.map +1 -1
- package/lib/services/token-validation.d.ts.map +1 -1
- package/lib/services/token-validation.js +56 -56
- package/lib/services/token-validation.js.map +1 -1
- package/lib/services/turnstile.d.ts.map +1 -1
- package/lib/services/turnstile.js +27 -54
- package/lib/services/turnstile.js.map +1 -1
- package/lib/services/url-normalization.js +9 -9
- package/lib/services/url-normalization.js.map +1 -1
- package/lib/services/url-scanner.d.ts.map +1 -1
- package/lib/services/url-scanner.js +120 -120
- package/lib/services/url-scanner.js.map +1 -1
- package/lib/services/user.d.ts.map +1 -1
- package/lib/services/user.js +95 -95
- package/lib/services/user.js.map +1 -1
- package/lib/services/vectorize.d.ts +10 -10
- package/lib/services/vectorize.d.ts.map +1 -1
- package/lib/services/vectorize.js +59 -57
- package/lib/services/vectorize.js.map +1 -1
- package/lib/services/vulnerability-scanner.d.ts.map +1 -1
- package/lib/services/vulnerability-scanner.js +95 -95
- package/lib/services/vulnerability-scanner.js.map +1 -1
- package/lib/services/waiting-rooms.d.ts.map +1 -1
- package/lib/services/waiting-rooms.js +81 -81
- package/lib/services/waiting-rooms.js.map +1 -1
- package/lib/services/web3.d.ts.map +1 -1
- package/lib/services/web3.js +39 -39
- package/lib/services/web3.js.map +1 -1
- package/lib/services/workers-for-platforms.d.ts.map +1 -1
- package/lib/services/workers-for-platforms.js +139 -139
- package/lib/services/workers-for-platforms.js.map +1 -1
- package/lib/services/workers.d.ts.map +1 -1
- package/lib/services/workers.js +420 -420
- package/lib/services/workers.js.map +1 -1
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +88 -88
- package/lib/services/workflows.js.map +1 -1
- package/lib/services/zaraz.d.ts.map +1 -1
- package/lib/services/zaraz.js +36 -39
- package/lib/services/zaraz.js.map +1 -1
- package/lib/services/zero-trust.d.ts.map +1 -1
- package/lib/services/zero-trust.js +1765 -1771
- package/lib/services/zero-trust.js.map +1 -1
- package/lib/services/zones.d.ts.map +1 -1
- package/lib/services/zones.js +168 -168
- package/lib/services/zones.js.map +1 -1
- package/package.json +3 -2
- package/src/services/abuse-reports.ts +35 -36
- package/src/services/accounts.ts +714 -760
- package/src/services/acm.ts +115 -125
- package/src/services/addressing.ts +484 -512
- package/src/services/ai-gateway.ts +653 -672
- package/src/services/ai-security.ts +47 -53
- package/src/services/ai.ts +172 -185
- package/src/services/aisearch.ts +1814 -1861
- package/src/services/alerting.ts +710 -742
- package/src/services/api-gateway.ts +481 -508
- package/src/services/argo.ts +12 -12
- package/src/services/audit-logs.ts +45 -49
- package/src/services/billing.ts +121 -136
- package/src/services/bot-management.ts +122 -136
- package/src/services/botnet-feed.ts +68 -74
- package/src/services/brand-protection.ts +275 -294
- package/src/services/browser-rendering.ts +758 -769
- package/src/services/cache.ts +148 -158
- package/src/services/calls.ts +110 -120
- package/src/services/certificate-authorities.ts +6 -6
- package/src/services/client-certificates.ts +18 -18
- package/src/services/cloud-connector.ts +11 -12
- package/src/services/cloudforce-one.ts +589 -617
- package/src/services/connectivity.ts +25 -25
- package/src/services/containers.ts +49 -49
- package/src/services/content-scanning.ts +80 -89
- package/src/services/csam-scanner.ts +16 -17
- package/src/services/custom-certificates.ts +36 -38
- package/src/services/custom-csrs.ts +103 -105
- package/src/services/custom-hostnames.ts +44 -45
- package/src/services/custom-nameservers.ts +11 -11
- package/src/services/custom-pages.ts +173 -184
- package/src/services/d1.ts +335 -325
- package/src/services/dcv-delegation.ts +3 -3
- package/src/services/ddos-protection.ts +126 -126
- package/src/services/diagnostics.ts +27 -27
- package/src/services/dls.ts +82 -86
- package/src/services/dns-firewall.ts +65 -69
- package/src/services/dns.ts +1080 -1107
- package/src/services/durable-objects.ts +36 -38
- package/src/services/email-auth.ts +47 -52
- package/src/services/email-routing.ts +264 -288
- package/src/services/email-security.ts +205 -208
- package/src/services/email-sending.ts +94 -99
- package/src/services/filters.ts +97 -111
- package/src/services/firewall.ts +698 -753
- package/src/services/flagship.ts +321 -336
- package/src/services/fraud.ts +8 -8
- package/src/services/google-tag-gateway.ts +17 -19
- package/src/services/healthchecks.ts +269 -286
- package/src/services/hostnames.ts +94 -99
- package/src/services/hyperdrive.ts +310 -324
- package/src/services/iam.ts +205 -212
- package/src/services/images.ts +138 -150
- package/src/services/intel.ts +248 -261
- package/src/services/ips.ts +5 -5
- package/src/services/keyless-certificates.ts +17 -17
- package/src/services/kv.ts +106 -110
- package/src/services/leaked-credential-checks.ts +49 -53
- package/src/services/load-balancers.ts +1119 -1212
- package/src/services/logpush.ts +298 -313
- package/src/services/logs.ts +74 -77
- package/src/services/magic-cloud-networking.ts +1219 -1311
- package/src/services/magic-network-monitoring.ts +647 -685
- package/src/services/magic-transit.ts +1988 -2119
- package/src/services/managed-transforms.ts +11 -11
- package/src/services/memberships.ts +101 -105
- package/src/services/moq.ts +100 -110
- package/src/services/mtls-certificates.ts +30 -32
- package/src/services/network-interconnects.ts +137 -145
- package/src/services/organizations.ts +189 -192
- package/src/services/origin-ca-certificates.ts +14 -14
- package/src/services/origin-post-quantum-encryption.ts +6 -6
- package/src/services/origin-tls-client-auth.ts +219 -236
- package/src/services/origin-tls-compliance-modes.ts +12 -12
- package/src/services/page-rules.ts +365 -373
- package/src/services/page-shield.ts +489 -528
- package/src/services/pages.ts +309 -319
- package/src/services/pipelines.ts +534 -573
- package/src/services/queues.ts +598 -635
- package/src/services/r2-data-catalog.ts +59 -60
- package/src/services/r2.ts +654 -689
- package/src/services/radar.ts +3395 -3487
- package/src/services/rate-limits.ts +81 -93
- package/src/services/realtime-kit.ts +386 -399
- package/src/services/registrar.ts +90 -96
- package/src/services/request-tracers.ts +41 -43
- package/src/services/resource-sharing.ts +293 -305
- package/src/services/resource-tagging.ts +354 -366
- package/src/services/rules.ts +272 -292
- package/src/services/rulesets.ts +1214 -1116
- package/src/services/rum.ts +252 -273
- package/src/services/schema-validation.ts +284 -305
- package/src/services/secrets-store.ts +130 -138
- package/src/services/security-center.ts +64 -69
- package/src/services/security-txt.ts +48 -50
- package/src/services/snippets.ts +132 -142
- package/src/services/spectrum.ts +75 -80
- package/src/services/speed.ts +385 -397
- package/src/services/ssl.ts +64 -65
- package/src/services/stream.ts +658 -718
- package/src/services/tenant-custom-nameservers.ts +11 -11
- package/src/services/tenants.ts +86 -93
- package/src/services/token-validation.ts +145 -151
- package/src/services/turnstile.ts +344 -381
- package/src/services/url-normalization.ts +9 -9
- package/src/services/url-scanner.ts +393 -399
- package/src/services/user.ts +479 -503
- package/src/services/vectorize.ts +215 -230
- package/src/services/vulnerability-scanner.ts +145 -148
- package/src/services/waiting-rooms.ts +759 -825
- package/src/services/web3.ts +186 -197
- package/src/services/workers-for-platforms.ts +408 -432
- package/src/services/workers.ts +1175 -1239
- package/src/services/workflows.ts +585 -616
- package/src/services/zaraz.ts +168 -192
- package/src/services/zero-trust.ts +2965 -3074
- package/src/services/zones.ts +753 -785
|
@@ -109,7 +109,13 @@ export class RouteAlreadyExists extends T.applyErrorMatchers(
|
|
|
109
109
|
code: Schema.Number,
|
|
110
110
|
message: Schema.String,
|
|
111
111
|
}),
|
|
112
|
-
[
|
|
112
|
+
[
|
|
113
|
+
{ code: 7005, message: { includes: "already exists" } },
|
|
114
|
+
{
|
|
115
|
+
status: 500,
|
|
116
|
+
message: { includes: "UNIQUE constraint failed: routes.name" },
|
|
117
|
+
},
|
|
118
|
+
],
|
|
113
119
|
) {}
|
|
114
120
|
|
|
115
121
|
export class RouteNotFound extends T.applyErrorMatchers(
|
|
@@ -129,7 +135,7 @@ interface GetAiGatewayResponseDlp {
|
|
|
129
135
|
enabled: boolean;
|
|
130
136
|
profiles: string[];
|
|
131
137
|
}
|
|
132
|
-
const GetAiGatewayResponseDlp = /*@__PURE__*/
|
|
138
|
+
const GetAiGatewayResponseDlp = /*@__PURE__*/ Schema.suspend(() =>
|
|
133
139
|
Schema.Struct({
|
|
134
140
|
action: Schema.Union([Schema.Literals(["BLOCK", "FLAG"]), Schema.String]),
|
|
135
141
|
enabled: Schema.Boolean,
|
|
@@ -144,7 +150,7 @@ interface Policy {
|
|
|
144
150
|
enabled: boolean;
|
|
145
151
|
profiles: string[];
|
|
146
152
|
}
|
|
147
|
-
const Policy = /*@__PURE__*/
|
|
153
|
+
const Policy = /*@__PURE__*/ Schema.suspend(() =>
|
|
148
154
|
Schema.Struct({
|
|
149
155
|
id: Schema.String,
|
|
150
156
|
action: Schema.Union([Schema.Literals(["FLAG", "BLOCK"]), Schema.String]),
|
|
@@ -166,12 +172,11 @@ interface GetAiGatewayResponseDlp1 {
|
|
|
166
172
|
profiles: string[];
|
|
167
173
|
}[];
|
|
168
174
|
}
|
|
169
|
-
const GetAiGatewayResponseDlp1 = /*@__PURE__*/
|
|
170
|
-
(
|
|
171
|
-
Schema.
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
}),
|
|
175
|
+
const GetAiGatewayResponseDlp1 = /*@__PURE__*/ Schema.suspend(() =>
|
|
176
|
+
Schema.Struct({
|
|
177
|
+
enabled: Schema.Boolean,
|
|
178
|
+
policies: Schema.Array(Policy),
|
|
179
|
+
}),
|
|
175
180
|
) as unknown as Schema.Codec<GetAiGatewayResponseDlp1>;
|
|
176
181
|
|
|
177
182
|
interface Prompt {
|
|
@@ -190,7 +195,7 @@ interface Prompt {
|
|
|
190
195
|
s8?: "FLAG" | "BLOCK" | (string & {}) | null;
|
|
191
196
|
s9?: "FLAG" | "BLOCK" | (string & {}) | null;
|
|
192
197
|
}
|
|
193
|
-
const Prompt = /*@__PURE__*/
|
|
198
|
+
const Prompt = /*@__PURE__*/ Schema.suspend(() =>
|
|
194
199
|
Schema.Struct({
|
|
195
200
|
p1: Schema.optional(
|
|
196
201
|
Schema.Union([
|
|
@@ -330,7 +335,7 @@ interface Guardrails {
|
|
|
330
335
|
s9?: "FLAG" | "BLOCK" | (string & {}) | null;
|
|
331
336
|
};
|
|
332
337
|
}
|
|
333
|
-
const Guardrails = /*@__PURE__*/
|
|
338
|
+
const Guardrails = /*@__PURE__*/ Schema.suspend(() =>
|
|
334
339
|
Schema.Struct({
|
|
335
340
|
prompt: Prompt,
|
|
336
341
|
response: Prompt,
|
|
@@ -343,7 +348,7 @@ interface Otel {
|
|
|
343
348
|
authorization?: string | null;
|
|
344
349
|
contentType?: "json" | "protobuf" | (string & {}) | null;
|
|
345
350
|
}
|
|
346
|
-
const Otel = /*@__PURE__*/
|
|
351
|
+
const Otel = /*@__PURE__*/ Schema.suspend(() =>
|
|
347
352
|
Schema.Struct({
|
|
348
353
|
headers: Schema.Record(Schema.String, Schema.Unknown),
|
|
349
354
|
url: Schema.String,
|
|
@@ -368,7 +373,7 @@ interface Model {
|
|
|
368
373
|
mode: "filter";
|
|
369
374
|
values: string[];
|
|
370
375
|
}
|
|
371
|
-
const Model = /*@__PURE__*/
|
|
376
|
+
const Model = /*@__PURE__*/ Schema.suspend(() =>
|
|
372
377
|
Schema.Struct({
|
|
373
378
|
mode: Schema.Literal("filter"),
|
|
374
379
|
values: Schema.Array(Schema.String),
|
|
@@ -386,7 +391,7 @@ interface Rule {
|
|
|
386
391
|
provider?: { mode: "filter"; values: string[] } | null;
|
|
387
392
|
technique?: "fixed" | "sliding" | (string & {}) | null;
|
|
388
393
|
}
|
|
389
|
-
const Rule = /*@__PURE__*/
|
|
394
|
+
const Rule = /*@__PURE__*/ Schema.suspend(() =>
|
|
390
395
|
Schema.Struct({
|
|
391
396
|
limit: Schema.Number,
|
|
392
397
|
limitType: Schema.Literal("cost"),
|
|
@@ -423,7 +428,7 @@ interface SpendLimits {
|
|
|
423
428
|
}[]
|
|
424
429
|
| null;
|
|
425
430
|
}
|
|
426
|
-
const SpendLimits = /*@__PURE__*/
|
|
431
|
+
const SpendLimits = /*@__PURE__*/ Schema.suspend(() =>
|
|
427
432
|
Schema.Struct({
|
|
428
433
|
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
429
434
|
rules: Schema.optional(Schema.Union([Schema.Array(Rule), Schema.Null])),
|
|
@@ -433,7 +438,7 @@ const SpendLimits = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
|
433
438
|
interface UsageEvent {
|
|
434
439
|
payload: string;
|
|
435
440
|
}
|
|
436
|
-
const UsageEvent = /*@__PURE__*/
|
|
441
|
+
const UsageEvent = /*@__PURE__*/ Schema.suspend(() =>
|
|
437
442
|
Schema.Struct({
|
|
438
443
|
payload: Schema.String,
|
|
439
444
|
}),
|
|
@@ -443,7 +448,7 @@ interface Stripe {
|
|
|
443
448
|
authorization: string;
|
|
444
449
|
usageEvents: { payload: string }[];
|
|
445
450
|
}
|
|
446
|
-
const Stripe = /*@__PURE__*/
|
|
451
|
+
const Stripe = /*@__PURE__*/ Schema.suspend(() =>
|
|
447
452
|
Schema.Struct({
|
|
448
453
|
authorization: Schema.String,
|
|
449
454
|
usageEvents: Schema.Array(UsageEvent),
|
|
@@ -559,99 +564,96 @@ interface ListAiGatewaysResponseResult {
|
|
|
559
564
|
workersAiBillingMode?: "postpaid" | null;
|
|
560
565
|
zdr?: boolean | null;
|
|
561
566
|
}
|
|
562
|
-
const ListAiGatewaysResponseResult = /*@__PURE__*/
|
|
563
|
-
(
|
|
564
|
-
Schema.
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
Schema.Union([
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
]),
|
|
581
|
-
),
|
|
582
|
-
guardrails: Schema.optional(Schema.Union([Guardrails, Schema.Null])),
|
|
583
|
-
isDefault: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
584
|
-
logManagement: Schema.optional(
|
|
585
|
-
Schema.Union([Schema.Number, Schema.Null]),
|
|
586
|
-
),
|
|
587
|
-
logManagementStrategy: Schema.optional(
|
|
588
|
-
Schema.Union([
|
|
589
|
-
Schema.Literal("STOP_INSERTING"),
|
|
590
|
-
Schema.Literal("DELETE_OLDEST"),
|
|
591
|
-
Schema.Null,
|
|
592
|
-
]),
|
|
593
|
-
),
|
|
594
|
-
logpush: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
595
|
-
logpushPublicKey: Schema.optional(
|
|
596
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
597
|
-
),
|
|
598
|
-
otel: Schema.optional(Schema.Union([Schema.Array(Otel), Schema.Null])),
|
|
599
|
-
rateLimitingTechnique: Schema.optional(
|
|
600
|
-
Schema.Union([
|
|
601
|
-
Schema.Literal("fixed"),
|
|
602
|
-
Schema.Literal("sliding"),
|
|
603
|
-
Schema.Null,
|
|
604
|
-
]),
|
|
605
|
-
),
|
|
606
|
-
retryBackoff: Schema.optional(
|
|
607
|
-
Schema.Union([
|
|
608
|
-
Schema.Literal("constant"),
|
|
609
|
-
Schema.Literal("linear"),
|
|
610
|
-
Schema.Literal("exponential"),
|
|
611
|
-
Schema.Null,
|
|
612
|
-
]),
|
|
613
|
-
),
|
|
614
|
-
retryDelay: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
615
|
-
retryMaxAttempts: Schema.optional(
|
|
616
|
-
Schema.Union([Schema.Number, Schema.Null]),
|
|
617
|
-
),
|
|
618
|
-
spendLimits: Schema.optional(Schema.Union([SpendLimits, Schema.Null])),
|
|
619
|
-
storeId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
620
|
-
stripe: Schema.optional(Schema.Union([Stripe, Schema.Null])),
|
|
621
|
-
workersAiBillingMode: Schema.optional(
|
|
622
|
-
Schema.Union([Schema.Literal("postpaid"), Schema.Null]),
|
|
623
|
-
),
|
|
624
|
-
zdr: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
625
|
-
}).pipe(
|
|
626
|
-
Schema.encodeKeys({
|
|
627
|
-
id: "id",
|
|
628
|
-
cacheInvalidateOnUpdate: "cache_invalidate_on_update",
|
|
629
|
-
cacheTtl: "cache_ttl",
|
|
630
|
-
collectLogs: "collect_logs",
|
|
631
|
-
createdAt: "created_at",
|
|
632
|
-
modifiedAt: "modified_at",
|
|
633
|
-
rateLimitingInterval: "rate_limiting_interval",
|
|
634
|
-
rateLimitingLimit: "rate_limiting_limit",
|
|
635
|
-
authentication: "authentication",
|
|
636
|
-
dlp: "dlp",
|
|
637
|
-
guardrails: "guardrails",
|
|
638
|
-
isDefault: "is_default",
|
|
639
|
-
logManagement: "log_management",
|
|
640
|
-
logManagementStrategy: "log_management_strategy",
|
|
641
|
-
logpush: "logpush",
|
|
642
|
-
logpushPublicKey: "logpush_public_key",
|
|
643
|
-
otel: "otel",
|
|
644
|
-
rateLimitingTechnique: "rate_limiting_technique",
|
|
645
|
-
retryBackoff: "retry_backoff",
|
|
646
|
-
retryDelay: "retry_delay",
|
|
647
|
-
retryMaxAttempts: "retry_max_attempts",
|
|
648
|
-
spendLimits: "spend_limits",
|
|
649
|
-
storeId: "store_id",
|
|
650
|
-
stripe: "stripe",
|
|
651
|
-
workersAiBillingMode: "workers_ai_billing_mode",
|
|
652
|
-
zdr: "zdr",
|
|
653
|
-
}),
|
|
567
|
+
const ListAiGatewaysResponseResult = /*@__PURE__*/ Schema.suspend(() =>
|
|
568
|
+
Schema.Struct({
|
|
569
|
+
id: Schema.String,
|
|
570
|
+
cacheInvalidateOnUpdate: Schema.Boolean,
|
|
571
|
+
cacheTtl: Schema.Union([Schema.Number, Schema.Null]),
|
|
572
|
+
collectLogs: Schema.Boolean,
|
|
573
|
+
createdAt: Schema.String,
|
|
574
|
+
modifiedAt: Schema.String,
|
|
575
|
+
rateLimitingInterval: Schema.Union([Schema.Number, Schema.Null]),
|
|
576
|
+
rateLimitingLimit: Schema.Union([Schema.Number, Schema.Null]),
|
|
577
|
+
authentication: Schema.optional(
|
|
578
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
579
|
+
),
|
|
580
|
+
dlp: Schema.optional(
|
|
581
|
+
Schema.Union([
|
|
582
|
+
Schema.Union([GetAiGatewayResponseDlp, GetAiGatewayResponseDlp1]),
|
|
583
|
+
Schema.Null,
|
|
584
|
+
]),
|
|
654
585
|
),
|
|
586
|
+
guardrails: Schema.optional(Schema.Union([Guardrails, Schema.Null])),
|
|
587
|
+
isDefault: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
588
|
+
logManagement: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
589
|
+
logManagementStrategy: Schema.optional(
|
|
590
|
+
Schema.Union([
|
|
591
|
+
Schema.Literal("STOP_INSERTING"),
|
|
592
|
+
Schema.Literal("DELETE_OLDEST"),
|
|
593
|
+
Schema.Null,
|
|
594
|
+
]),
|
|
595
|
+
),
|
|
596
|
+
logpush: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
597
|
+
logpushPublicKey: Schema.optional(
|
|
598
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
599
|
+
),
|
|
600
|
+
otel: Schema.optional(Schema.Union([Schema.Array(Otel), Schema.Null])),
|
|
601
|
+
rateLimitingTechnique: Schema.optional(
|
|
602
|
+
Schema.Union([
|
|
603
|
+
Schema.Literal("fixed"),
|
|
604
|
+
Schema.Literal("sliding"),
|
|
605
|
+
Schema.Null,
|
|
606
|
+
]),
|
|
607
|
+
),
|
|
608
|
+
retryBackoff: Schema.optional(
|
|
609
|
+
Schema.Union([
|
|
610
|
+
Schema.Literal("constant"),
|
|
611
|
+
Schema.Literal("linear"),
|
|
612
|
+
Schema.Literal("exponential"),
|
|
613
|
+
Schema.Null,
|
|
614
|
+
]),
|
|
615
|
+
),
|
|
616
|
+
retryDelay: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
617
|
+
retryMaxAttempts: Schema.optional(
|
|
618
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
619
|
+
),
|
|
620
|
+
spendLimits: Schema.optional(Schema.Union([SpendLimits, Schema.Null])),
|
|
621
|
+
storeId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
622
|
+
stripe: Schema.optional(Schema.Union([Stripe, Schema.Null])),
|
|
623
|
+
workersAiBillingMode: Schema.optional(
|
|
624
|
+
Schema.Union([Schema.Literal("postpaid"), Schema.Null]),
|
|
625
|
+
),
|
|
626
|
+
zdr: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
627
|
+
}).pipe(
|
|
628
|
+
Schema.encodeKeys({
|
|
629
|
+
id: "id",
|
|
630
|
+
cacheInvalidateOnUpdate: "cache_invalidate_on_update",
|
|
631
|
+
cacheTtl: "cache_ttl",
|
|
632
|
+
collectLogs: "collect_logs",
|
|
633
|
+
createdAt: "created_at",
|
|
634
|
+
modifiedAt: "modified_at",
|
|
635
|
+
rateLimitingInterval: "rate_limiting_interval",
|
|
636
|
+
rateLimitingLimit: "rate_limiting_limit",
|
|
637
|
+
authentication: "authentication",
|
|
638
|
+
dlp: "dlp",
|
|
639
|
+
guardrails: "guardrails",
|
|
640
|
+
isDefault: "is_default",
|
|
641
|
+
logManagement: "log_management",
|
|
642
|
+
logManagementStrategy: "log_management_strategy",
|
|
643
|
+
logpush: "logpush",
|
|
644
|
+
logpushPublicKey: "logpush_public_key",
|
|
645
|
+
otel: "otel",
|
|
646
|
+
rateLimitingTechnique: "rate_limiting_technique",
|
|
647
|
+
retryBackoff: "retry_backoff",
|
|
648
|
+
retryDelay: "retry_delay",
|
|
649
|
+
retryMaxAttempts: "retry_max_attempts",
|
|
650
|
+
spendLimits: "spend_limits",
|
|
651
|
+
storeId: "store_id",
|
|
652
|
+
stripe: "stripe",
|
|
653
|
+
workersAiBillingMode: "workers_ai_billing_mode",
|
|
654
|
+
zdr: "zdr",
|
|
655
|
+
}),
|
|
656
|
+
),
|
|
655
657
|
) as unknown as Schema.Codec<ListAiGatewaysResponseResult>;
|
|
656
658
|
|
|
657
659
|
interface ListAiGatewaysResponseResultInfo {
|
|
@@ -661,7 +663,7 @@ interface ListAiGatewaysResponseResultInfo {
|
|
|
661
663
|
totalCount?: number | null;
|
|
662
664
|
}
|
|
663
665
|
const ListAiGatewaysResponseResultInfo =
|
|
664
|
-
/*@__PURE__*/
|
|
666
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
665
667
|
Schema.Struct({
|
|
666
668
|
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
667
669
|
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
@@ -681,7 +683,7 @@ interface PaymentMethod {
|
|
|
681
683
|
brand?: string | null;
|
|
682
684
|
last4?: string | null;
|
|
683
685
|
}
|
|
684
|
-
const PaymentMethod = /*@__PURE__*/
|
|
686
|
+
const PaymentMethod = /*@__PURE__*/ Schema.suspend(() =>
|
|
685
687
|
Schema.Struct({
|
|
686
688
|
brand: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
687
689
|
last4: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -695,7 +697,7 @@ interface TopupConfig {
|
|
|
695
697
|
lastFailedAt?: number | null;
|
|
696
698
|
threshold: number | null;
|
|
697
699
|
}
|
|
698
|
-
const TopupConfig = /*@__PURE__*/
|
|
700
|
+
const TopupConfig = /*@__PURE__*/ Schema.suspend(() =>
|
|
699
701
|
Schema.Struct({
|
|
700
702
|
amount: Schema.Union([Schema.Number, Schema.Null]),
|
|
701
703
|
disabledReason: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -710,7 +712,7 @@ interface Config {
|
|
|
710
712
|
duration: string | null;
|
|
711
713
|
strategy: string | null;
|
|
712
714
|
}
|
|
713
|
-
const Config = /*@__PURE__*/
|
|
715
|
+
const Config = /*@__PURE__*/ Schema.suspend(() =>
|
|
714
716
|
Schema.Struct({
|
|
715
717
|
amount: Schema.Union([Schema.Number, Schema.Null]),
|
|
716
718
|
duration: Schema.Union([Schema.String, Schema.Null]),
|
|
@@ -736,7 +738,7 @@ interface ListCustomProvidersResponseResult {
|
|
|
736
738
|
position?: number | null;
|
|
737
739
|
}
|
|
738
740
|
const ListCustomProvidersResponseResult =
|
|
739
|
-
/*@__PURE__*/
|
|
741
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
740
742
|
Schema.Struct({
|
|
741
743
|
id: Schema.String,
|
|
742
744
|
baseUrl: Schema.String,
|
|
@@ -793,7 +795,7 @@ interface Filter {
|
|
|
793
795
|
operator: "eq" | "contains" | "lt" | "gt" | (string & {});
|
|
794
796
|
value: (string | number | boolean)[];
|
|
795
797
|
}
|
|
796
|
-
const Filter = /*@__PURE__*/
|
|
798
|
+
const Filter = /*@__PURE__*/ Schema.suspend(() =>
|
|
797
799
|
Schema.Struct({
|
|
798
800
|
key: Schema.Union([
|
|
799
801
|
Schema.Literals([
|
|
@@ -851,33 +853,32 @@ interface ListDatasetsResponseResult {
|
|
|
851
853
|
modifiedAt: string;
|
|
852
854
|
name: string;
|
|
853
855
|
}
|
|
854
|
-
const ListDatasetsResponseResult = /*@__PURE__*/
|
|
855
|
-
(
|
|
856
|
-
Schema.
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
),
|
|
856
|
+
const ListDatasetsResponseResult = /*@__PURE__*/ Schema.suspend(() =>
|
|
857
|
+
Schema.Struct({
|
|
858
|
+
id: Schema.String,
|
|
859
|
+
createdAt: Schema.String,
|
|
860
|
+
enable: Schema.Boolean,
|
|
861
|
+
filters: Schema.Array(Filter),
|
|
862
|
+
gatewayId: Schema.String,
|
|
863
|
+
modifiedAt: Schema.String,
|
|
864
|
+
name: Schema.String,
|
|
865
|
+
}).pipe(
|
|
866
|
+
Schema.encodeKeys({
|
|
867
|
+
id: "id",
|
|
868
|
+
createdAt: "created_at",
|
|
869
|
+
enable: "enable",
|
|
870
|
+
filters: "filters",
|
|
871
|
+
gatewayId: "gateway_id",
|
|
872
|
+
modifiedAt: "modified_at",
|
|
873
|
+
name: "name",
|
|
874
|
+
}),
|
|
875
|
+
),
|
|
875
876
|
) as unknown as Schema.Codec<ListDatasetsResponseResult>;
|
|
876
877
|
|
|
877
878
|
interface Next {
|
|
878
879
|
elementId: string;
|
|
879
880
|
}
|
|
880
|
-
const Next = /*@__PURE__*/
|
|
881
|
+
const Next = /*@__PURE__*/ Schema.suspend(() =>
|
|
881
882
|
Schema.Struct({
|
|
882
883
|
elementId: Schema.String,
|
|
883
884
|
}),
|
|
@@ -886,7 +887,7 @@ const Next = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
|
886
887
|
interface Outputs {
|
|
887
888
|
next: { elementId: string };
|
|
888
889
|
}
|
|
889
|
-
const Outputs = /*@__PURE__*/
|
|
890
|
+
const Outputs = /*@__PURE__*/ Schema.suspend(() =>
|
|
890
891
|
Schema.Struct({
|
|
891
892
|
next: Next,
|
|
892
893
|
}),
|
|
@@ -898,7 +899,7 @@ interface CreateDeploymentDynamicRoutingResponseElement {
|
|
|
898
899
|
type: "start";
|
|
899
900
|
}
|
|
900
901
|
const CreateDeploymentDynamicRoutingResponseElement =
|
|
901
|
-
/*@__PURE__*/
|
|
902
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
902
903
|
Schema.Struct({
|
|
903
904
|
id: Schema.String,
|
|
904
905
|
outputs: Outputs,
|
|
@@ -910,7 +911,7 @@ interface Outputs2 {
|
|
|
910
911
|
false: { elementId: string };
|
|
911
912
|
true: { elementId: string };
|
|
912
913
|
}
|
|
913
|
-
const Outputs2 = /*@__PURE__*/
|
|
914
|
+
const Outputs2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
914
915
|
Schema.Struct({
|
|
915
916
|
false: Next,
|
|
916
917
|
true: Next,
|
|
@@ -920,7 +921,7 @@ const Outputs2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
|
920
921
|
interface Properties {
|
|
921
922
|
conditions?: unknown | null;
|
|
922
923
|
}
|
|
923
|
-
const Properties = /*@__PURE__*/
|
|
924
|
+
const Properties = /*@__PURE__*/ Schema.suspend(() =>
|
|
924
925
|
Schema.Struct({
|
|
925
926
|
conditions: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
926
927
|
}),
|
|
@@ -933,7 +934,7 @@ interface CreateDeploymentDynamicRoutingResponseElement1 {
|
|
|
933
934
|
type: "conditional";
|
|
934
935
|
}
|
|
935
936
|
const CreateDeploymentDynamicRoutingResponseElement1 =
|
|
936
|
-
/*@__PURE__*/
|
|
937
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
937
938
|
Schema.Struct({
|
|
938
939
|
id: Schema.String,
|
|
939
940
|
outputs: Outputs2,
|
|
@@ -948,7 +949,7 @@ interface CreateDeploymentDynamicRoutingResponseElement2 {
|
|
|
948
949
|
type: "percentage";
|
|
949
950
|
}
|
|
950
951
|
const CreateDeploymentDynamicRoutingResponseElement2 =
|
|
951
|
-
/*@__PURE__*/
|
|
952
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
952
953
|
Schema.Struct({
|
|
953
954
|
id: Schema.String,
|
|
954
955
|
outputs: Schema.Record(Schema.String, Schema.Unknown),
|
|
@@ -960,7 +961,7 @@ interface Outputs3 {
|
|
|
960
961
|
fallback: { elementId: string };
|
|
961
962
|
success: { elementId: string };
|
|
962
963
|
}
|
|
963
|
-
const Outputs3 = /*@__PURE__*/
|
|
964
|
+
const Outputs3 = /*@__PURE__*/ Schema.suspend(() =>
|
|
964
965
|
Schema.Struct({
|
|
965
966
|
fallback: Next,
|
|
966
967
|
success: Next,
|
|
@@ -973,7 +974,7 @@ interface Properties2 {
|
|
|
973
974
|
limitType: "count" | "cost" | (string & {});
|
|
974
975
|
window: number;
|
|
975
976
|
}
|
|
976
|
-
const Properties2 = /*@__PURE__*/
|
|
977
|
+
const Properties2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
977
978
|
Schema.Struct({
|
|
978
979
|
key: Schema.String,
|
|
979
980
|
limit: Schema.Number,
|
|
@@ -997,7 +998,7 @@ interface CreateDeploymentDynamicRoutingResponseElement3 {
|
|
|
997
998
|
type: "rate";
|
|
998
999
|
}
|
|
999
1000
|
const CreateDeploymentDynamicRoutingResponseElement3 =
|
|
1000
|
-
/*@__PURE__*/
|
|
1001
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1001
1002
|
Schema.Struct({
|
|
1002
1003
|
id: Schema.String,
|
|
1003
1004
|
outputs: Outputs3,
|
|
@@ -1012,7 +1013,7 @@ interface Properties3 {
|
|
|
1012
1013
|
retries: number;
|
|
1013
1014
|
timeout: number;
|
|
1014
1015
|
}
|
|
1015
|
-
const Properties3 = /*@__PURE__*/
|
|
1016
|
+
const Properties3 = /*@__PURE__*/ Schema.suspend(() =>
|
|
1016
1017
|
Schema.Struct({
|
|
1017
1018
|
model: Schema.String,
|
|
1018
1019
|
provider: Schema.String,
|
|
@@ -1033,7 +1034,7 @@ interface CreateDeploymentDynamicRoutingResponseElement4 {
|
|
|
1033
1034
|
type: "model";
|
|
1034
1035
|
}
|
|
1035
1036
|
const CreateDeploymentDynamicRoutingResponseElement4 =
|
|
1036
|
-
/*@__PURE__*/
|
|
1037
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1037
1038
|
Schema.Struct({
|
|
1038
1039
|
id: Schema.String,
|
|
1039
1040
|
outputs: Outputs3,
|
|
@@ -1048,7 +1049,7 @@ interface CreateDeploymentDynamicRoutingResponseElement5 {
|
|
|
1048
1049
|
type: "end";
|
|
1049
1050
|
}
|
|
1050
1051
|
const CreateDeploymentDynamicRoutingResponseElement5 =
|
|
1051
|
-
/*@__PURE__*/
|
|
1052
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1052
1053
|
Schema.Struct({
|
|
1053
1054
|
id: Schema.String,
|
|
1054
1055
|
outputs: Schema.Record(Schema.String, Schema.Unknown),
|
|
@@ -1061,7 +1062,7 @@ interface Deployment {
|
|
|
1061
1062
|
deploymentId: string;
|
|
1062
1063
|
versionId: string;
|
|
1063
1064
|
}
|
|
1064
|
-
const Deployment = /*@__PURE__*/
|
|
1065
|
+
const Deployment = /*@__PURE__*/ Schema.suspend(() =>
|
|
1065
1066
|
Schema.Struct({
|
|
1066
1067
|
createdAt: Schema.String,
|
|
1067
1068
|
deploymentId: Schema.String,
|
|
@@ -1082,7 +1083,7 @@ interface Data {
|
|
|
1082
1083
|
page: number;
|
|
1083
1084
|
perPage: number;
|
|
1084
1085
|
}
|
|
1085
|
-
const Data = /*@__PURE__*/
|
|
1086
|
+
const Data = /*@__PURE__*/ Schema.suspend(() =>
|
|
1086
1087
|
Schema.Struct({
|
|
1087
1088
|
deployments: Schema.Array(Deployment),
|
|
1088
1089
|
orderBy: Schema.String,
|
|
@@ -1107,7 +1108,7 @@ interface Version {
|
|
|
1107
1108
|
versionId: string;
|
|
1108
1109
|
isValid?: boolean | null;
|
|
1109
1110
|
}
|
|
1110
|
-
const Version = /*@__PURE__*/
|
|
1111
|
+
const Version = /*@__PURE__*/ Schema.suspend(() =>
|
|
1111
1112
|
Schema.Struct({
|
|
1112
1113
|
active: Schema.Boolean,
|
|
1113
1114
|
createdAt: Schema.String,
|
|
@@ -1189,7 +1190,7 @@ interface Route {
|
|
|
1189
1190
|
isValid?: boolean | null;
|
|
1190
1191
|
};
|
|
1191
1192
|
}
|
|
1192
|
-
const Route = /*@__PURE__*/
|
|
1193
|
+
const Route = /*@__PURE__*/ Schema.suspend(() =>
|
|
1193
1194
|
Schema.Struct({
|
|
1194
1195
|
id: Schema.String,
|
|
1195
1196
|
accountTag: Schema.String,
|
|
@@ -1299,7 +1300,7 @@ interface Data2 {
|
|
|
1299
1300
|
};
|
|
1300
1301
|
}[];
|
|
1301
1302
|
}
|
|
1302
|
-
const Data2 = /*@__PURE__*/
|
|
1303
|
+
const Data2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
1303
1304
|
Schema.Struct({
|
|
1304
1305
|
orderBy: Schema.String,
|
|
1305
1306
|
orderByDirection: Schema.String,
|
|
@@ -1385,7 +1386,7 @@ interface Route2 {
|
|
|
1385
1386
|
isValid?: boolean | null;
|
|
1386
1387
|
};
|
|
1387
1388
|
}
|
|
1388
|
-
const Route2 = /*@__PURE__*/
|
|
1389
|
+
const Route2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
1389
1390
|
Schema.Struct({
|
|
1390
1391
|
id: Schema.String,
|
|
1391
1392
|
accountTag: Schema.String,
|
|
@@ -1455,7 +1456,7 @@ interface Dataset {
|
|
|
1455
1456
|
modifiedAt: string;
|
|
1456
1457
|
name: string;
|
|
1457
1458
|
}
|
|
1458
|
-
const Dataset = /*@__PURE__*/
|
|
1459
|
+
const Dataset = /*@__PURE__*/ Schema.suspend(() =>
|
|
1459
1460
|
Schema.Struct({
|
|
1460
1461
|
id: Schema.String,
|
|
1461
1462
|
accountId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1492,7 +1493,7 @@ interface Result {
|
|
|
1492
1493
|
statusDescription: unknown;
|
|
1493
1494
|
totalLogs: number;
|
|
1494
1495
|
}
|
|
1495
|
-
const Result = /*@__PURE__*/
|
|
1496
|
+
const Result = /*@__PURE__*/ Schema.suspend(() =>
|
|
1496
1497
|
Schema.Struct({
|
|
1497
1498
|
id: Schema.String,
|
|
1498
1499
|
createdAt: Schema.String,
|
|
@@ -1569,7 +1570,7 @@ interface ListEvaluationsResponseResult {
|
|
|
1569
1570
|
totalLogs: number;
|
|
1570
1571
|
}
|
|
1571
1572
|
const ListEvaluationsResponseResult =
|
|
1572
|
-
/*@__PURE__*/
|
|
1573
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1573
1574
|
Schema.Struct({
|
|
1574
1575
|
id: Schema.String,
|
|
1575
1576
|
createdAt: Schema.String,
|
|
@@ -1606,7 +1607,7 @@ interface ListEvaluationTypesResponseResult {
|
|
|
1606
1607
|
type: string;
|
|
1607
1608
|
}
|
|
1608
1609
|
const ListEvaluationTypesResponseResult =
|
|
1609
|
-
/*@__PURE__*/
|
|
1610
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1610
1611
|
Schema.Struct({
|
|
1611
1612
|
id: Schema.String,
|
|
1612
1613
|
createdAt: Schema.String,
|
|
@@ -1646,7 +1647,7 @@ interface Invoice {
|
|
|
1646
1647
|
invoicePdf?: string | null;
|
|
1647
1648
|
status?: string | null;
|
|
1648
1649
|
}
|
|
1649
|
-
const Invoice = /*@__PURE__*/
|
|
1650
|
+
const Invoice = /*@__PURE__*/ Schema.suspend(() =>
|
|
1650
1651
|
Schema.Struct({
|
|
1651
1652
|
amountDue: Schema.Number,
|
|
1652
1653
|
amountPaid: Schema.Number,
|
|
@@ -1688,7 +1689,7 @@ interface Pagination {
|
|
|
1688
1689
|
perPage: number;
|
|
1689
1690
|
totalCount: number;
|
|
1690
1691
|
}
|
|
1691
|
-
const Pagination = /*@__PURE__*/
|
|
1692
|
+
const Pagination = /*@__PURE__*/ Schema.suspend(() =>
|
|
1692
1693
|
Schema.Struct({
|
|
1693
1694
|
hasMore: Schema.Boolean,
|
|
1694
1695
|
page: Schema.Number,
|
|
@@ -1710,7 +1711,7 @@ interface History {
|
|
|
1710
1711
|
endTime: number;
|
|
1711
1712
|
startTime: number;
|
|
1712
1713
|
}
|
|
1713
|
-
const History = /*@__PURE__*/
|
|
1714
|
+
const History = /*@__PURE__*/ Schema.suspend(() =>
|
|
1714
1715
|
Schema.Struct({
|
|
1715
1716
|
id: Schema.String,
|
|
1716
1717
|
aggregatedValue: Schema.Number,
|
|
@@ -1747,7 +1748,7 @@ interface ListLogsResponseResult {
|
|
|
1747
1748
|
statusCode?: number | null;
|
|
1748
1749
|
step?: number | null;
|
|
1749
1750
|
}
|
|
1750
|
-
const ListLogsResponseResult = /*@__PURE__*/
|
|
1751
|
+
const ListLogsResponseResult = /*@__PURE__*/ Schema.suspend(() =>
|
|
1751
1752
|
Schema.Struct({
|
|
1752
1753
|
id: Schema.String,
|
|
1753
1754
|
cached: Schema.Boolean,
|
|
@@ -1801,7 +1802,7 @@ interface Period {
|
|
|
1801
1802
|
end: number;
|
|
1802
1803
|
start: number;
|
|
1803
1804
|
}
|
|
1804
|
-
const Period = /*@__PURE__*/
|
|
1805
|
+
const Period = /*@__PURE__*/ Schema.suspend(() =>
|
|
1805
1806
|
Schema.Struct({
|
|
1806
1807
|
end: Schema.Number,
|
|
1807
1808
|
start: Schema.Number,
|
|
@@ -1811,7 +1812,7 @@ const Period = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
|
1811
1812
|
interface Pricing {
|
|
1812
1813
|
unitAmountDecimal: string | null;
|
|
1813
1814
|
}
|
|
1814
|
-
const Pricing = /*@__PURE__*/
|
|
1815
|
+
const Pricing = /*@__PURE__*/ Schema.suspend(() =>
|
|
1815
1816
|
Schema.Struct({
|
|
1816
1817
|
unitAmountDecimal: Schema.Union([Schema.String, Schema.Null]),
|
|
1817
1818
|
}).pipe(Schema.encodeKeys({ unitAmountDecimal: "unit_amount_decimal" })),
|
|
@@ -1823,7 +1824,7 @@ interface PretaxCreditAmount {
|
|
|
1823
1824
|
creditBalanceTransaction?: string | null;
|
|
1824
1825
|
discount?: string | null;
|
|
1825
1826
|
}
|
|
1826
|
-
const PretaxCreditAmount = /*@__PURE__*/
|
|
1827
|
+
const PretaxCreditAmount = /*@__PURE__*/ Schema.suspend(() =>
|
|
1827
1828
|
Schema.Struct({
|
|
1828
1829
|
amount: Schema.Number,
|
|
1829
1830
|
type: Schema.String,
|
|
@@ -1857,7 +1858,7 @@ interface InvoiceLine {
|
|
|
1857
1858
|
}[]
|
|
1858
1859
|
| null;
|
|
1859
1860
|
}
|
|
1860
|
-
const InvoiceLine = /*@__PURE__*/
|
|
1861
|
+
const InvoiceLine = /*@__PURE__*/ Schema.suspend(() =>
|
|
1861
1862
|
Schema.Struct({
|
|
1862
1863
|
amount: Schema.Number,
|
|
1863
1864
|
currency: Schema.String,
|
|
@@ -1895,7 +1896,7 @@ interface ListProviderConfigsResponseResult {
|
|
|
1895
1896
|
rateLimitPeriod?: number | null;
|
|
1896
1897
|
}
|
|
1897
1898
|
const ListProviderConfigsResponseResult =
|
|
1898
|
-
/*@__PURE__*/
|
|
1899
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1899
1900
|
Schema.Struct({
|
|
1900
1901
|
id: Schema.String,
|
|
1901
1902
|
alias: Schema.String,
|
|
@@ -1932,7 +1933,7 @@ interface Version2 {
|
|
|
1932
1933
|
versionId: string;
|
|
1933
1934
|
isValid?: boolean | null;
|
|
1934
1935
|
}
|
|
1935
|
-
const Version2 = /*@__PURE__*/
|
|
1936
|
+
const Version2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
1936
1937
|
Schema.Struct({
|
|
1937
1938
|
active: Schema.Boolean,
|
|
1938
1939
|
createdAt: Schema.String,
|
|
@@ -1963,7 +1964,7 @@ interface Data3 {
|
|
|
1963
1964
|
isValid?: boolean | null;
|
|
1964
1965
|
}[];
|
|
1965
1966
|
}
|
|
1966
|
-
const Data3 = /*@__PURE__*/
|
|
1967
|
+
const Data3 = /*@__PURE__*/ Schema.suspend(() =>
|
|
1967
1968
|
Schema.Struct({
|
|
1968
1969
|
orderBy: Schema.String,
|
|
1969
1970
|
orderByDirection: Schema.String,
|
|
@@ -1990,17 +1991,16 @@ export interface GetAiGatewayRequest {
|
|
|
1990
1991
|
accountId: string;
|
|
1991
1992
|
}
|
|
1992
1993
|
|
|
1993
|
-
export const GetAiGatewayRequest = /*@__PURE__*/
|
|
1994
|
-
(
|
|
1995
|
-
Schema.
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
),
|
|
1994
|
+
export const GetAiGatewayRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1995
|
+
Schema.Struct({
|
|
1996
|
+
id: Schema.String.pipe(T.HttpPath("id")),
|
|
1997
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1998
|
+
}).pipe(
|
|
1999
|
+
T.Http({
|
|
2000
|
+
method: "GET",
|
|
2001
|
+
path: "/accounts/{account_id}/ai-gateway/gateways/{id}",
|
|
2002
|
+
}),
|
|
2003
|
+
),
|
|
2004
2004
|
) as unknown as Schema.Codec<GetAiGatewayRequest>;
|
|
2005
2005
|
|
|
2006
2006
|
export interface GetAiGatewayResponse {
|
|
@@ -2108,101 +2108,98 @@ export interface GetAiGatewayResponse {
|
|
|
2108
2108
|
zdr?: boolean | null;
|
|
2109
2109
|
}
|
|
2110
2110
|
|
|
2111
|
-
export const GetAiGatewayResponse = /*@__PURE__*/
|
|
2112
|
-
(
|
|
2113
|
-
Schema.
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
Schema.Union([
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
Schema.
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
),
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
Schema.
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
Schema.
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
),
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
}),
|
|
2204
|
-
)
|
|
2205
|
-
.pipe(T.ResponsePath("result")),
|
|
2111
|
+
export const GetAiGatewayResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2112
|
+
Schema.Struct({
|
|
2113
|
+
id: Schema.String,
|
|
2114
|
+
cacheInvalidateOnUpdate: Schema.Boolean,
|
|
2115
|
+
cacheTtl: Schema.Union([Schema.Number, Schema.Null]),
|
|
2116
|
+
collectLogs: Schema.Boolean,
|
|
2117
|
+
createdAt: Schema.String,
|
|
2118
|
+
modifiedAt: Schema.String,
|
|
2119
|
+
rateLimitingInterval: Schema.Union([Schema.Number, Schema.Null]),
|
|
2120
|
+
rateLimitingLimit: Schema.Union([Schema.Number, Schema.Null]),
|
|
2121
|
+
authentication: Schema.optional(
|
|
2122
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
2123
|
+
),
|
|
2124
|
+
dlp: Schema.optional(
|
|
2125
|
+
Schema.Union([
|
|
2126
|
+
Schema.Union([GetAiGatewayResponseDlp, GetAiGatewayResponseDlp1]),
|
|
2127
|
+
Schema.Null,
|
|
2128
|
+
]),
|
|
2129
|
+
),
|
|
2130
|
+
guardrails: Schema.optional(Schema.Union([Guardrails, Schema.Null])),
|
|
2131
|
+
isDefault: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2132
|
+
logManagement: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2133
|
+
logManagementStrategy: Schema.optional(
|
|
2134
|
+
Schema.Union([
|
|
2135
|
+
Schema.Literal("STOP_INSERTING"),
|
|
2136
|
+
Schema.Literal("DELETE_OLDEST"),
|
|
2137
|
+
Schema.Null,
|
|
2138
|
+
]),
|
|
2139
|
+
),
|
|
2140
|
+
logpush: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2141
|
+
logpushPublicKey: Schema.optional(
|
|
2142
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2143
|
+
),
|
|
2144
|
+
otel: Schema.optional(Schema.Union([Schema.Array(Otel), Schema.Null])),
|
|
2145
|
+
rateLimitingTechnique: Schema.optional(
|
|
2146
|
+
Schema.Union([
|
|
2147
|
+
Schema.Literal("fixed"),
|
|
2148
|
+
Schema.Literal("sliding"),
|
|
2149
|
+
Schema.Null,
|
|
2150
|
+
]),
|
|
2151
|
+
),
|
|
2152
|
+
retryBackoff: Schema.optional(
|
|
2153
|
+
Schema.Union([
|
|
2154
|
+
Schema.Literal("constant"),
|
|
2155
|
+
Schema.Literal("linear"),
|
|
2156
|
+
Schema.Literal("exponential"),
|
|
2157
|
+
Schema.Null,
|
|
2158
|
+
]),
|
|
2159
|
+
),
|
|
2160
|
+
retryDelay: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2161
|
+
retryMaxAttempts: Schema.optional(
|
|
2162
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2163
|
+
),
|
|
2164
|
+
spendLimits: Schema.optional(Schema.Union([SpendLimits, Schema.Null])),
|
|
2165
|
+
storeId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2166
|
+
stripe: Schema.optional(Schema.Union([Stripe, Schema.Null])),
|
|
2167
|
+
workersAiBillingMode: Schema.optional(
|
|
2168
|
+
Schema.Union([Schema.Literal("postpaid"), Schema.Null]),
|
|
2169
|
+
),
|
|
2170
|
+
zdr: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2171
|
+
})
|
|
2172
|
+
.pipe(
|
|
2173
|
+
Schema.encodeKeys({
|
|
2174
|
+
id: "id",
|
|
2175
|
+
cacheInvalidateOnUpdate: "cache_invalidate_on_update",
|
|
2176
|
+
cacheTtl: "cache_ttl",
|
|
2177
|
+
collectLogs: "collect_logs",
|
|
2178
|
+
createdAt: "created_at",
|
|
2179
|
+
modifiedAt: "modified_at",
|
|
2180
|
+
rateLimitingInterval: "rate_limiting_interval",
|
|
2181
|
+
rateLimitingLimit: "rate_limiting_limit",
|
|
2182
|
+
authentication: "authentication",
|
|
2183
|
+
dlp: "dlp",
|
|
2184
|
+
guardrails: "guardrails",
|
|
2185
|
+
isDefault: "is_default",
|
|
2186
|
+
logManagement: "log_management",
|
|
2187
|
+
logManagementStrategy: "log_management_strategy",
|
|
2188
|
+
logpush: "logpush",
|
|
2189
|
+
logpushPublicKey: "logpush_public_key",
|
|
2190
|
+
otel: "otel",
|
|
2191
|
+
rateLimitingTechnique: "rate_limiting_technique",
|
|
2192
|
+
retryBackoff: "retry_backoff",
|
|
2193
|
+
retryDelay: "retry_delay",
|
|
2194
|
+
retryMaxAttempts: "retry_max_attempts",
|
|
2195
|
+
spendLimits: "spend_limits",
|
|
2196
|
+
storeId: "store_id",
|
|
2197
|
+
stripe: "stripe",
|
|
2198
|
+
workersAiBillingMode: "workers_ai_billing_mode",
|
|
2199
|
+
zdr: "zdr",
|
|
2200
|
+
}),
|
|
2201
|
+
)
|
|
2202
|
+
.pipe(T.ResponsePath("result")),
|
|
2206
2203
|
) as unknown as Schema.Codec<GetAiGatewayResponse>;
|
|
2207
2204
|
|
|
2208
2205
|
export type GetAiGatewayError = DefaultErrors | GatewayNotFound;
|
|
@@ -2212,7 +2209,7 @@ export const getAiGateway: API.OperationMethod<
|
|
|
2212
2209
|
GetAiGatewayResponse,
|
|
2213
2210
|
GetAiGatewayError,
|
|
2214
2211
|
Credentials | HttpClient.HttpClient
|
|
2215
|
-
> = /*@__PURE__*/
|
|
2212
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2216
2213
|
input: GetAiGatewayRequest,
|
|
2217
2214
|
output: GetAiGatewayResponse,
|
|
2218
2215
|
errors: [GatewayNotFound],
|
|
@@ -2227,19 +2224,18 @@ export interface ListAiGatewaysRequest {
|
|
|
2227
2224
|
search?: string;
|
|
2228
2225
|
}
|
|
2229
2226
|
|
|
2230
|
-
export const ListAiGatewaysRequest = /*@__PURE__*/
|
|
2231
|
-
(
|
|
2232
|
-
Schema.
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
),
|
|
2227
|
+
export const ListAiGatewaysRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2228
|
+
Schema.Struct({
|
|
2229
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2230
|
+
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
2231
|
+
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
2232
|
+
search: Schema.optional(Schema.String).pipe(T.HttpQuery("search")),
|
|
2233
|
+
}).pipe(
|
|
2234
|
+
T.Http({
|
|
2235
|
+
method: "GET",
|
|
2236
|
+
path: "/accounts/{account_id}/ai-gateway/gateways",
|
|
2237
|
+
}),
|
|
2238
|
+
),
|
|
2243
2239
|
) as unknown as Schema.Codec<ListAiGatewaysRequest>;
|
|
2244
2240
|
|
|
2245
2241
|
export interface ListAiGatewaysResponse {
|
|
@@ -2354,7 +2350,7 @@ export interface ListAiGatewaysResponse {
|
|
|
2354
2350
|
}
|
|
2355
2351
|
|
|
2356
2352
|
export const ListAiGatewaysResponse =
|
|
2357
|
-
/*@__PURE__*/
|
|
2353
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
2358
2354
|
Schema.Struct({
|
|
2359
2355
|
result: Schema.Array(ListAiGatewaysResponseResult),
|
|
2360
2356
|
resultInfo: Schema.optional(
|
|
@@ -2370,7 +2366,7 @@ export const listAiGateways: API.PaginatedOperationMethod<
|
|
|
2370
2366
|
ListAiGatewaysResponse,
|
|
2371
2367
|
ListAiGatewaysError,
|
|
2372
2368
|
Credentials | HttpClient.HttpClient
|
|
2373
|
-
> = /*@__PURE__*/
|
|
2369
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
2374
2370
|
input: ListAiGatewaysRequest,
|
|
2375
2371
|
output: ListAiGatewaysResponse,
|
|
2376
2372
|
errors: [],
|
|
@@ -2423,7 +2419,7 @@ export interface CreateAiGatewayRequest {
|
|
|
2423
2419
|
}
|
|
2424
2420
|
|
|
2425
2421
|
export const CreateAiGatewayRequest =
|
|
2426
|
-
/*@__PURE__*/
|
|
2422
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
2427
2423
|
Schema.Struct({
|
|
2428
2424
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2429
2425
|
id: Schema.String,
|
|
@@ -2601,7 +2597,7 @@ export interface CreateAiGatewayResponse {
|
|
|
2601
2597
|
}
|
|
2602
2598
|
|
|
2603
2599
|
export const CreateAiGatewayResponse =
|
|
2604
|
-
/*@__PURE__*/
|
|
2600
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
2605
2601
|
Schema.Struct({
|
|
2606
2602
|
id: Schema.String,
|
|
2607
2603
|
cacheInvalidateOnUpdate: Schema.Boolean,
|
|
@@ -2704,7 +2700,7 @@ export const createAiGateway: API.OperationMethod<
|
|
|
2704
2700
|
CreateAiGatewayResponse,
|
|
2705
2701
|
CreateAiGatewayError,
|
|
2706
2702
|
Credentials | HttpClient.HttpClient
|
|
2707
|
-
> = /*@__PURE__*/
|
|
2703
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2708
2704
|
input: CreateAiGatewayRequest,
|
|
2709
2705
|
output: CreateAiGatewayResponse,
|
|
2710
2706
|
errors: [GatewayAlreadyExists],
|
|
@@ -2829,7 +2825,7 @@ export interface UpdateAiGatewayRequest {
|
|
|
2829
2825
|
}
|
|
2830
2826
|
|
|
2831
2827
|
export const UpdateAiGatewayRequest =
|
|
2832
|
-
/*@__PURE__*/
|
|
2828
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
2833
2829
|
Schema.Struct({
|
|
2834
2830
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
2835
2831
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -3020,7 +3016,7 @@ export interface UpdateAiGatewayResponse {
|
|
|
3020
3016
|
}
|
|
3021
3017
|
|
|
3022
3018
|
export const UpdateAiGatewayResponse =
|
|
3023
|
-
/*@__PURE__*/
|
|
3019
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3024
3020
|
Schema.Struct({
|
|
3025
3021
|
id: Schema.String,
|
|
3026
3022
|
cacheInvalidateOnUpdate: Schema.Boolean,
|
|
@@ -3123,7 +3119,7 @@ export const updateAiGateway: API.OperationMethod<
|
|
|
3123
3119
|
UpdateAiGatewayResponse,
|
|
3124
3120
|
UpdateAiGatewayError,
|
|
3125
3121
|
Credentials | HttpClient.HttpClient
|
|
3126
|
-
> = /*@__PURE__*/
|
|
3122
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3127
3123
|
input: UpdateAiGatewayRequest,
|
|
3128
3124
|
output: UpdateAiGatewayResponse,
|
|
3129
3125
|
errors: [GatewayNotFound],
|
|
@@ -3135,7 +3131,7 @@ export interface DeleteAiGatewayRequest {
|
|
|
3135
3131
|
}
|
|
3136
3132
|
|
|
3137
3133
|
export const DeleteAiGatewayRequest =
|
|
3138
|
-
/*@__PURE__*/
|
|
3134
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3139
3135
|
Schema.Struct({
|
|
3140
3136
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
3141
3137
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -3253,7 +3249,7 @@ export interface DeleteAiGatewayResponse {
|
|
|
3253
3249
|
}
|
|
3254
3250
|
|
|
3255
3251
|
export const DeleteAiGatewayResponse =
|
|
3256
|
-
/*@__PURE__*/
|
|
3252
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3257
3253
|
Schema.Struct({
|
|
3258
3254
|
id: Schema.String,
|
|
3259
3255
|
cacheInvalidateOnUpdate: Schema.Boolean,
|
|
@@ -3356,7 +3352,7 @@ export const deleteAiGateway: API.OperationMethod<
|
|
|
3356
3352
|
DeleteAiGatewayResponse,
|
|
3357
3353
|
DeleteAiGatewayError,
|
|
3358
3354
|
Credentials | HttpClient.HttpClient
|
|
3359
|
-
> = /*@__PURE__*/
|
|
3355
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3360
3356
|
input: DeleteAiGatewayRequest,
|
|
3361
3357
|
output: DeleteAiGatewayResponse,
|
|
3362
3358
|
errors: [GatewayNotFound],
|
|
@@ -3372,7 +3368,7 @@ export interface CreditBalanceBillingRequest {
|
|
|
3372
3368
|
}
|
|
3373
3369
|
|
|
3374
3370
|
export const CreditBalanceBillingRequest =
|
|
3375
|
-
/*@__PURE__*/
|
|
3371
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3376
3372
|
Schema.Struct({
|
|
3377
3373
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3378
3374
|
}).pipe(
|
|
@@ -3398,7 +3394,7 @@ export interface CreditBalanceBillingResponse {
|
|
|
3398
3394
|
}
|
|
3399
3395
|
|
|
3400
3396
|
export const CreditBalanceBillingResponse =
|
|
3401
|
-
/*@__PURE__*/
|
|
3397
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3402
3398
|
Schema.Struct({
|
|
3403
3399
|
balance: Schema.Number,
|
|
3404
3400
|
hasDefaultPaymentMethod: Schema.Boolean,
|
|
@@ -3427,7 +3423,7 @@ export const creditBalanceBilling: API.OperationMethod<
|
|
|
3427
3423
|
CreditBalanceBillingResponse,
|
|
3428
3424
|
CreditBalanceBillingError,
|
|
3429
3425
|
Credentials | HttpClient.HttpClient
|
|
3430
|
-
> = /*@__PURE__*/
|
|
3426
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3431
3427
|
input: CreditBalanceBillingRequest,
|
|
3432
3428
|
output: CreditBalanceBillingResponse,
|
|
3433
3429
|
errors: [],
|
|
@@ -3443,7 +3439,7 @@ export interface GetBillingSpendingLimitRequest {
|
|
|
3443
3439
|
}
|
|
3444
3440
|
|
|
3445
3441
|
export const GetBillingSpendingLimitRequest =
|
|
3446
|
-
/*@__PURE__*/
|
|
3442
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3447
3443
|
Schema.Struct({
|
|
3448
3444
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3449
3445
|
}).pipe(
|
|
@@ -3464,7 +3460,7 @@ export interface GetBillingSpendingLimitResponse {
|
|
|
3464
3460
|
}
|
|
3465
3461
|
|
|
3466
3462
|
export const GetBillingSpendingLimitResponse =
|
|
3467
|
-
/*@__PURE__*/
|
|
3463
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3468
3464
|
Schema.Struct({
|
|
3469
3465
|
config: Config,
|
|
3470
3466
|
enabled: Schema.Boolean,
|
|
@@ -3478,7 +3474,7 @@ export const getBillingSpendingLimit: API.OperationMethod<
|
|
|
3478
3474
|
GetBillingSpendingLimitResponse,
|
|
3479
3475
|
GetBillingSpendingLimitError,
|
|
3480
3476
|
Credentials | HttpClient.HttpClient
|
|
3481
|
-
> = /*@__PURE__*/
|
|
3477
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3482
3478
|
input: GetBillingSpendingLimitRequest,
|
|
3483
3479
|
output: GetBillingSpendingLimitResponse,
|
|
3484
3480
|
errors: [],
|
|
@@ -3496,7 +3492,7 @@ export interface CreateBillingSpendingLimitRequest {
|
|
|
3496
3492
|
}
|
|
3497
3493
|
|
|
3498
3494
|
export const CreateBillingSpendingLimitRequest =
|
|
3499
|
-
/*@__PURE__*/
|
|
3495
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3500
3496
|
Schema.Struct({
|
|
3501
3497
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3502
3498
|
amount: Schema.Number,
|
|
@@ -3519,7 +3515,7 @@ export const CreateBillingSpendingLimitRequest =
|
|
|
3519
3515
|
export type CreateBillingSpendingLimitResponse = unknown;
|
|
3520
3516
|
|
|
3521
3517
|
export const CreateBillingSpendingLimitResponse =
|
|
3522
|
-
/*@__PURE__*/
|
|
3518
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3523
3519
|
Schema.Unknown.pipe(T.ResponsePath("result")),
|
|
3524
3520
|
) as unknown as Schema.Codec<CreateBillingSpendingLimitResponse>;
|
|
3525
3521
|
|
|
@@ -3533,7 +3529,7 @@ export const createBillingSpendingLimit: API.OperationMethod<
|
|
|
3533
3529
|
CreateBillingSpendingLimitResponse,
|
|
3534
3530
|
CreateBillingSpendingLimitError,
|
|
3535
3531
|
Credentials | HttpClient.HttpClient
|
|
3536
|
-
> = /*@__PURE__*/
|
|
3532
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3537
3533
|
input: CreateBillingSpendingLimitRequest,
|
|
3538
3534
|
output: CreateBillingSpendingLimitResponse,
|
|
3539
3535
|
errors: [NoManualTopup, AiGatewaySpendingLimitDeprecated],
|
|
@@ -3545,7 +3541,7 @@ export interface DeleteBillingSpendingLimitRequest {
|
|
|
3545
3541
|
}
|
|
3546
3542
|
|
|
3547
3543
|
export const DeleteBillingSpendingLimitRequest =
|
|
3548
|
-
/*@__PURE__*/
|
|
3544
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3549
3545
|
Schema.Struct({
|
|
3550
3546
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3551
3547
|
}).pipe(
|
|
@@ -3559,7 +3555,7 @@ export const DeleteBillingSpendingLimitRequest =
|
|
|
3559
3555
|
export type DeleteBillingSpendingLimitResponse = unknown;
|
|
3560
3556
|
|
|
3561
3557
|
export const DeleteBillingSpendingLimitResponse =
|
|
3562
|
-
/*@__PURE__*/
|
|
3558
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3563
3559
|
Schema.Unknown.pipe(T.ResponsePath("result")),
|
|
3564
3560
|
) as unknown as Schema.Codec<DeleteBillingSpendingLimitResponse>;
|
|
3565
3561
|
|
|
@@ -3570,7 +3566,7 @@ export const deleteBillingSpendingLimit: API.OperationMethod<
|
|
|
3570
3566
|
DeleteBillingSpendingLimitResponse,
|
|
3571
3567
|
DeleteBillingSpendingLimitError,
|
|
3572
3568
|
Credentials | HttpClient.HttpClient
|
|
3573
|
-
> = /*@__PURE__*/
|
|
3569
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3574
3570
|
input: DeleteBillingSpendingLimitRequest,
|
|
3575
3571
|
output: DeleteBillingSpendingLimitResponse,
|
|
3576
3572
|
errors: [],
|
|
@@ -3588,7 +3584,7 @@ export interface CreateBillingTopupRequest {
|
|
|
3588
3584
|
}
|
|
3589
3585
|
|
|
3590
3586
|
export const CreateBillingTopupRequest =
|
|
3591
|
-
/*@__PURE__*/
|
|
3587
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3592
3588
|
Schema.Struct({
|
|
3593
3589
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3594
3590
|
amount: Schema.Number,
|
|
@@ -3614,7 +3610,7 @@ export interface CreateBillingTopupResponse {
|
|
|
3614
3610
|
}
|
|
3615
3611
|
|
|
3616
3612
|
export const CreateBillingTopupResponse =
|
|
3617
|
-
/*@__PURE__*/
|
|
3613
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3618
3614
|
Schema.Struct({
|
|
3619
3615
|
clientSecret: Schema.Union([Schema.String, Schema.Null]),
|
|
3620
3616
|
onboarding: Schema.Boolean,
|
|
@@ -3641,7 +3637,7 @@ export const createBillingTopup: API.OperationMethod<
|
|
|
3641
3637
|
CreateBillingTopupResponse,
|
|
3642
3638
|
CreateBillingTopupError,
|
|
3643
3639
|
Credentials | HttpClient.HttpClient
|
|
3644
|
-
> = /*@__PURE__*/
|
|
3640
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3645
3641
|
input: CreateBillingTopupRequest,
|
|
3646
3642
|
output: CreateBillingTopupResponse,
|
|
3647
3643
|
errors: [],
|
|
@@ -3655,7 +3651,7 @@ export interface StatusBillingTopupRequest {
|
|
|
3655
3651
|
}
|
|
3656
3652
|
|
|
3657
3653
|
export const StatusBillingTopupRequest =
|
|
3658
|
-
/*@__PURE__*/
|
|
3654
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3659
3655
|
Schema.Struct({
|
|
3660
3656
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3661
3657
|
paymentIntentId: Schema.String,
|
|
@@ -3674,7 +3670,7 @@ export interface StatusBillingTopupResponse {
|
|
|
3674
3670
|
}
|
|
3675
3671
|
|
|
3676
3672
|
export const StatusBillingTopupResponse =
|
|
3677
|
-
/*@__PURE__*/
|
|
3673
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3678
3674
|
Schema.Struct({
|
|
3679
3675
|
paymentIntentId: Schema.String,
|
|
3680
3676
|
status: Schema.Union([
|
|
@@ -3698,7 +3694,7 @@ export const statusBillingTopup: API.OperationMethod<
|
|
|
3698
3694
|
StatusBillingTopupResponse,
|
|
3699
3695
|
StatusBillingTopupError,
|
|
3700
3696
|
Credentials | HttpClient.HttpClient
|
|
3701
|
-
> = /*@__PURE__*/
|
|
3697
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3702
3698
|
input: StatusBillingTopupRequest,
|
|
3703
3699
|
output: StatusBillingTopupResponse,
|
|
3704
3700
|
errors: [],
|
|
@@ -3714,7 +3710,7 @@ export interface GetBillingTopupConfigRequest {
|
|
|
3714
3710
|
}
|
|
3715
3711
|
|
|
3716
3712
|
export const GetBillingTopupConfigRequest =
|
|
3717
|
-
/*@__PURE__*/
|
|
3713
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3718
3714
|
Schema.Struct({
|
|
3719
3715
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3720
3716
|
}).pipe(
|
|
@@ -3734,7 +3730,7 @@ export interface GetBillingTopupConfigResponse {
|
|
|
3734
3730
|
}
|
|
3735
3731
|
|
|
3736
3732
|
export const GetBillingTopupConfigResponse =
|
|
3737
|
-
/*@__PURE__*/
|
|
3733
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3738
3734
|
Schema.Struct({
|
|
3739
3735
|
amount: Schema.Union([Schema.Number, Schema.Null]),
|
|
3740
3736
|
disabledReason: Schema.optional(
|
|
@@ -3753,7 +3749,7 @@ export const getBillingTopupConfig: API.OperationMethod<
|
|
|
3753
3749
|
GetBillingTopupConfigResponse,
|
|
3754
3750
|
GetBillingTopupConfigError,
|
|
3755
3751
|
Credentials | HttpClient.HttpClient
|
|
3756
|
-
> = /*@__PURE__*/
|
|
3752
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3757
3753
|
input: GetBillingTopupConfigRequest,
|
|
3758
3754
|
output: GetBillingTopupConfigResponse,
|
|
3759
3755
|
errors: [],
|
|
@@ -3769,7 +3765,7 @@ export interface CreateBillingTopupConfigRequest {
|
|
|
3769
3765
|
}
|
|
3770
3766
|
|
|
3771
3767
|
export const CreateBillingTopupConfigRequest =
|
|
3772
|
-
/*@__PURE__*/
|
|
3768
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3773
3769
|
Schema.Struct({
|
|
3774
3770
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3775
3771
|
amount: Schema.Number,
|
|
@@ -3788,7 +3784,7 @@ export interface CreateBillingTopupConfigResponse {
|
|
|
3788
3784
|
}
|
|
3789
3785
|
|
|
3790
3786
|
export const CreateBillingTopupConfigResponse =
|
|
3791
|
-
/*@__PURE__*/
|
|
3787
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3792
3788
|
Schema.Struct({
|
|
3793
3789
|
amount: Schema.Number,
|
|
3794
3790
|
threshold: Schema.Number,
|
|
@@ -3802,7 +3798,7 @@ export const createBillingTopupConfig: API.OperationMethod<
|
|
|
3802
3798
|
CreateBillingTopupConfigResponse,
|
|
3803
3799
|
CreateBillingTopupConfigError,
|
|
3804
3800
|
Credentials | HttpClient.HttpClient
|
|
3805
|
-
> = /*@__PURE__*/
|
|
3801
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3806
3802
|
input: CreateBillingTopupConfigRequest,
|
|
3807
3803
|
output: CreateBillingTopupConfigResponse,
|
|
3808
3804
|
errors: [],
|
|
@@ -3814,7 +3810,7 @@ export interface DeleteBillingTopupConfigRequest {
|
|
|
3814
3810
|
}
|
|
3815
3811
|
|
|
3816
3812
|
export const DeleteBillingTopupConfigRequest =
|
|
3817
|
-
/*@__PURE__*/
|
|
3813
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3818
3814
|
Schema.Struct({
|
|
3819
3815
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3820
3816
|
}).pipe(
|
|
@@ -3828,7 +3824,7 @@ export const DeleteBillingTopupConfigRequest =
|
|
|
3828
3824
|
export type DeleteBillingTopupConfigResponse = unknown;
|
|
3829
3825
|
|
|
3830
3826
|
export const DeleteBillingTopupConfigResponse =
|
|
3831
|
-
/*@__PURE__*/
|
|
3827
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3832
3828
|
Schema.Unknown.pipe(T.ResponsePath("result")),
|
|
3833
3829
|
) as unknown as Schema.Codec<DeleteBillingTopupConfigResponse>;
|
|
3834
3830
|
|
|
@@ -3839,7 +3835,7 @@ export const deleteBillingTopupConfig: API.OperationMethod<
|
|
|
3839
3835
|
DeleteBillingTopupConfigResponse,
|
|
3840
3836
|
DeleteBillingTopupConfigError,
|
|
3841
3837
|
Credentials | HttpClient.HttpClient
|
|
3842
|
-
> = /*@__PURE__*/
|
|
3838
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3843
3839
|
input: DeleteBillingTopupConfigRequest,
|
|
3844
3840
|
output: DeleteBillingTopupConfigResponse,
|
|
3845
3841
|
errors: [],
|
|
@@ -3855,7 +3851,7 @@ export interface GetCustomProviderRequest {
|
|
|
3855
3851
|
}
|
|
3856
3852
|
|
|
3857
3853
|
export const GetCustomProviderRequest =
|
|
3858
|
-
/*@__PURE__*/
|
|
3854
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3859
3855
|
Schema.Struct({
|
|
3860
3856
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
3861
3857
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -3886,7 +3882,7 @@ export interface GetCustomProviderResponse {
|
|
|
3886
3882
|
}
|
|
3887
3883
|
|
|
3888
3884
|
export const GetCustomProviderResponse =
|
|
3889
|
-
/*@__PURE__*/
|
|
3885
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3890
3886
|
Schema.Struct({
|
|
3891
3887
|
id: Schema.String,
|
|
3892
3888
|
baseUrl: Schema.String,
|
|
@@ -3933,7 +3929,7 @@ export const getCustomProvider: API.OperationMethod<
|
|
|
3933
3929
|
GetCustomProviderResponse,
|
|
3934
3930
|
GetCustomProviderError,
|
|
3935
3931
|
Credentials | HttpClient.HttpClient
|
|
3936
|
-
> = /*@__PURE__*/
|
|
3932
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3937
3933
|
input: GetCustomProviderRequest,
|
|
3938
3934
|
output: GetCustomProviderResponse,
|
|
3939
3935
|
errors: [],
|
|
@@ -3953,7 +3949,7 @@ export interface ListCustomProvidersRequest {
|
|
|
3953
3949
|
}
|
|
3954
3950
|
|
|
3955
3951
|
export const ListCustomProvidersRequest =
|
|
3956
|
-
/*@__PURE__*/
|
|
3952
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3957
3953
|
Schema.Struct({
|
|
3958
3954
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3959
3955
|
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
@@ -3996,7 +3992,7 @@ export interface ListCustomProvidersResponse {
|
|
|
3996
3992
|
}
|
|
3997
3993
|
|
|
3998
3994
|
export const ListCustomProvidersResponse =
|
|
3999
|
-
/*@__PURE__*/
|
|
3995
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
4000
3996
|
Schema.Struct({
|
|
4001
3997
|
result: Schema.Array(ListCustomProvidersResponseResult),
|
|
4002
3998
|
resultInfo: Schema.optional(
|
|
@@ -4012,7 +4008,7 @@ export const listCustomProviders: API.PaginatedOperationMethod<
|
|
|
4012
4008
|
ListCustomProvidersResponse,
|
|
4013
4009
|
ListCustomProvidersError,
|
|
4014
4010
|
Credentials | HttpClient.HttpClient
|
|
4015
|
-
> = /*@__PURE__*/
|
|
4011
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
4016
4012
|
input: ListCustomProvidersRequest,
|
|
4017
4013
|
output: ListCustomProvidersResponse,
|
|
4018
4014
|
errors: [],
|
|
@@ -4053,7 +4049,7 @@ export interface CreateCustomProviderRequest {
|
|
|
4053
4049
|
}
|
|
4054
4050
|
|
|
4055
4051
|
export const CreateCustomProviderRequest =
|
|
4056
|
-
/*@__PURE__*/
|
|
4052
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
4057
4053
|
Schema.Struct({
|
|
4058
4054
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4059
4055
|
baseUrl: Schema.String,
|
|
@@ -4107,7 +4103,7 @@ export interface CreateCustomProviderResponse {
|
|
|
4107
4103
|
}
|
|
4108
4104
|
|
|
4109
4105
|
export const CreateCustomProviderResponse =
|
|
4110
|
-
/*@__PURE__*/
|
|
4106
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
4111
4107
|
Schema.Struct({
|
|
4112
4108
|
id: Schema.String,
|
|
4113
4109
|
baseUrl: Schema.String,
|
|
@@ -4154,7 +4150,7 @@ export const createCustomProvider: API.OperationMethod<
|
|
|
4154
4150
|
CreateCustomProviderResponse,
|
|
4155
4151
|
CreateCustomProviderError,
|
|
4156
4152
|
Credentials | HttpClient.HttpClient
|
|
4157
|
-
> = /*@__PURE__*/
|
|
4153
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4158
4154
|
input: CreateCustomProviderRequest,
|
|
4159
4155
|
output: CreateCustomProviderResponse,
|
|
4160
4156
|
errors: [],
|
|
@@ -4166,7 +4162,7 @@ export interface DeleteCustomProviderRequest {
|
|
|
4166
4162
|
}
|
|
4167
4163
|
|
|
4168
4164
|
export const DeleteCustomProviderRequest =
|
|
4169
|
-
/*@__PURE__*/
|
|
4165
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
4170
4166
|
Schema.Struct({
|
|
4171
4167
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
4172
4168
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -4197,7 +4193,7 @@ export interface DeleteCustomProviderResponse {
|
|
|
4197
4193
|
}
|
|
4198
4194
|
|
|
4199
4195
|
export const DeleteCustomProviderResponse =
|
|
4200
|
-
/*@__PURE__*/
|
|
4196
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
4201
4197
|
Schema.Struct({
|
|
4202
4198
|
id: Schema.String,
|
|
4203
4199
|
baseUrl: Schema.String,
|
|
@@ -4244,7 +4240,7 @@ export const deleteCustomProvider: API.OperationMethod<
|
|
|
4244
4240
|
DeleteCustomProviderResponse,
|
|
4245
4241
|
DeleteCustomProviderError,
|
|
4246
4242
|
Credentials | HttpClient.HttpClient
|
|
4247
|
-
> = /*@__PURE__*/
|
|
4243
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4248
4244
|
input: DeleteCustomProviderRequest,
|
|
4249
4245
|
output: DeleteCustomProviderResponse,
|
|
4250
4246
|
errors: [],
|
|
@@ -4260,18 +4256,17 @@ export interface GetDatasetRequest {
|
|
|
4260
4256
|
accountId: string;
|
|
4261
4257
|
}
|
|
4262
4258
|
|
|
4263
|
-
export const GetDatasetRequest = /*@__PURE__*/
|
|
4264
|
-
(
|
|
4265
|
-
Schema.
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
),
|
|
4259
|
+
export const GetDatasetRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
4260
|
+
Schema.Struct({
|
|
4261
|
+
gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
|
|
4262
|
+
id: Schema.String.pipe(T.HttpPath("id")),
|
|
4263
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4264
|
+
}).pipe(
|
|
4265
|
+
T.Http({
|
|
4266
|
+
method: "GET",
|
|
4267
|
+
path: "/accounts/{account_id}/ai-gateway/gateways/{gatewayId}/datasets/{id}",
|
|
4268
|
+
}),
|
|
4269
|
+
),
|
|
4275
4270
|
) as unknown as Schema.Codec<GetDatasetRequest>;
|
|
4276
4271
|
|
|
4277
4272
|
export interface GetDatasetResponse {
|
|
@@ -4303,29 +4298,28 @@ export interface GetDatasetResponse {
|
|
|
4303
4298
|
name: string;
|
|
4304
4299
|
}
|
|
4305
4300
|
|
|
4306
|
-
export const GetDatasetResponse = /*@__PURE__*/
|
|
4307
|
-
(
|
|
4308
|
-
Schema.
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
.
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
.pipe(T.ResponsePath("result")),
|
|
4301
|
+
export const GetDatasetResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
4302
|
+
Schema.Struct({
|
|
4303
|
+
id: Schema.String,
|
|
4304
|
+
createdAt: Schema.String,
|
|
4305
|
+
enable: Schema.Boolean,
|
|
4306
|
+
filters: Schema.Array(Filter),
|
|
4307
|
+
gatewayId: Schema.String,
|
|
4308
|
+
modifiedAt: Schema.String,
|
|
4309
|
+
name: Schema.String,
|
|
4310
|
+
})
|
|
4311
|
+
.pipe(
|
|
4312
|
+
Schema.encodeKeys({
|
|
4313
|
+
id: "id",
|
|
4314
|
+
createdAt: "created_at",
|
|
4315
|
+
enable: "enable",
|
|
4316
|
+
filters: "filters",
|
|
4317
|
+
gatewayId: "gateway_id",
|
|
4318
|
+
modifiedAt: "modified_at",
|
|
4319
|
+
name: "name",
|
|
4320
|
+
}),
|
|
4321
|
+
)
|
|
4322
|
+
.pipe(T.ResponsePath("result")),
|
|
4329
4323
|
) as unknown as Schema.Codec<GetDatasetResponse>;
|
|
4330
4324
|
|
|
4331
4325
|
export type GetDatasetError = DefaultErrors | DatasetNotFound;
|
|
@@ -4335,7 +4329,7 @@ export const getDataset: API.OperationMethod<
|
|
|
4335
4329
|
GetDatasetResponse,
|
|
4336
4330
|
GetDatasetError,
|
|
4337
4331
|
Credentials | HttpClient.HttpClient
|
|
4338
|
-
> = /*@__PURE__*/
|
|
4332
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4339
4333
|
input: GetDatasetRequest,
|
|
4340
4334
|
output: GetDatasetResponse,
|
|
4341
4335
|
errors: [DatasetNotFound],
|
|
@@ -4355,22 +4349,21 @@ export interface ListDatasetsRequest {
|
|
|
4355
4349
|
search?: string;
|
|
4356
4350
|
}
|
|
4357
4351
|
|
|
4358
|
-
export const ListDatasetsRequest = /*@__PURE__*/
|
|
4359
|
-
(
|
|
4360
|
-
Schema.
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
),
|
|
4352
|
+
export const ListDatasetsRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
4353
|
+
Schema.Struct({
|
|
4354
|
+
gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
|
|
4355
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4356
|
+
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
4357
|
+
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
4358
|
+
enable: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("enable")),
|
|
4359
|
+
name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
|
|
4360
|
+
search: Schema.optional(Schema.String).pipe(T.HttpQuery("search")),
|
|
4361
|
+
}).pipe(
|
|
4362
|
+
T.Http({
|
|
4363
|
+
method: "GET",
|
|
4364
|
+
path: "/accounts/{account_id}/ai-gateway/gateways/{gatewayId}/datasets",
|
|
4365
|
+
}),
|
|
4366
|
+
),
|
|
4374
4367
|
) as unknown as Schema.Codec<ListDatasetsRequest>;
|
|
4375
4368
|
|
|
4376
4369
|
export interface ListDatasetsResponse {
|
|
@@ -4409,14 +4402,13 @@ export interface ListDatasetsResponse {
|
|
|
4409
4402
|
} | null;
|
|
4410
4403
|
}
|
|
4411
4404
|
|
|
4412
|
-
export const ListDatasetsResponse = /*@__PURE__*/
|
|
4413
|
-
(
|
|
4414
|
-
Schema.
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
4405
|
+
export const ListDatasetsResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
4406
|
+
Schema.Struct({
|
|
4407
|
+
result: Schema.Array(ListDatasetsResponseResult),
|
|
4408
|
+
resultInfo: Schema.optional(
|
|
4409
|
+
Schema.Union([ListAiGatewaysResponseResultInfo, Schema.Null]),
|
|
4410
|
+
),
|
|
4411
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
|
|
4420
4412
|
) as unknown as Schema.Codec<ListDatasetsResponse>;
|
|
4421
4413
|
|
|
4422
4414
|
export type ListDatasetsError = DefaultErrors | GatewayNotFound;
|
|
@@ -4426,7 +4418,7 @@ export const listDatasets: API.PaginatedOperationMethod<
|
|
|
4426
4418
|
ListDatasetsResponse,
|
|
4427
4419
|
ListDatasetsError,
|
|
4428
4420
|
Credentials | HttpClient.HttpClient
|
|
4429
|
-
> = /*@__PURE__*/
|
|
4421
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
4430
4422
|
input: ListDatasetsRequest,
|
|
4431
4423
|
output: ListDatasetsResponse,
|
|
4432
4424
|
errors: [GatewayNotFound],
|
|
@@ -4469,20 +4461,19 @@ export interface CreateDatasetRequest {
|
|
|
4469
4461
|
name: string;
|
|
4470
4462
|
}
|
|
4471
4463
|
|
|
4472
|
-
export const CreateDatasetRequest = /*@__PURE__*/
|
|
4473
|
-
(
|
|
4474
|
-
Schema.
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
),
|
|
4464
|
+
export const CreateDatasetRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
4465
|
+
Schema.Struct({
|
|
4466
|
+
gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
|
|
4467
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4468
|
+
enable: Schema.Boolean,
|
|
4469
|
+
filters: Schema.Array(Filter),
|
|
4470
|
+
name: Schema.String,
|
|
4471
|
+
}).pipe(
|
|
4472
|
+
T.Http({
|
|
4473
|
+
method: "POST",
|
|
4474
|
+
path: "/accounts/{account_id}/ai-gateway/gateways/{gatewayId}/datasets",
|
|
4475
|
+
}),
|
|
4476
|
+
),
|
|
4486
4477
|
) as unknown as Schema.Codec<CreateDatasetRequest>;
|
|
4487
4478
|
|
|
4488
4479
|
export interface CreateDatasetResponse {
|
|
@@ -4503,40 +4494,39 @@ export interface CreateDatasetResponse {
|
|
|
4503
4494
|
| "tokens_in"
|
|
4504
4495
|
| "tokens_out"
|
|
4505
4496
|
| "duration"
|
|
4506
|
-
| "feedback"
|
|
4507
|
-
| (string & {});
|
|
4508
|
-
operator: "eq" | "contains" | "lt" | "gt" | (string & {});
|
|
4509
|
-
value: (string | number | boolean)[];
|
|
4510
|
-
}[];
|
|
4511
|
-
/** gateway id */
|
|
4512
|
-
gatewayId: string;
|
|
4513
|
-
modifiedAt: string;
|
|
4514
|
-
name: string;
|
|
4515
|
-
}
|
|
4516
|
-
|
|
4517
|
-
export const CreateDatasetResponse = /*@__PURE__*/
|
|
4518
|
-
(
|
|
4519
|
-
Schema.
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
.
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
.pipe(T.ResponsePath("result")),
|
|
4497
|
+
| "feedback"
|
|
4498
|
+
| (string & {});
|
|
4499
|
+
operator: "eq" | "contains" | "lt" | "gt" | (string & {});
|
|
4500
|
+
value: (string | number | boolean)[];
|
|
4501
|
+
}[];
|
|
4502
|
+
/** gateway id */
|
|
4503
|
+
gatewayId: string;
|
|
4504
|
+
modifiedAt: string;
|
|
4505
|
+
name: string;
|
|
4506
|
+
}
|
|
4507
|
+
|
|
4508
|
+
export const CreateDatasetResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
4509
|
+
Schema.Struct({
|
|
4510
|
+
id: Schema.String,
|
|
4511
|
+
createdAt: Schema.String,
|
|
4512
|
+
enable: Schema.Boolean,
|
|
4513
|
+
filters: Schema.Array(Filter),
|
|
4514
|
+
gatewayId: Schema.String,
|
|
4515
|
+
modifiedAt: Schema.String,
|
|
4516
|
+
name: Schema.String,
|
|
4517
|
+
})
|
|
4518
|
+
.pipe(
|
|
4519
|
+
Schema.encodeKeys({
|
|
4520
|
+
id: "id",
|
|
4521
|
+
createdAt: "created_at",
|
|
4522
|
+
enable: "enable",
|
|
4523
|
+
filters: "filters",
|
|
4524
|
+
gatewayId: "gateway_id",
|
|
4525
|
+
modifiedAt: "modified_at",
|
|
4526
|
+
name: "name",
|
|
4527
|
+
}),
|
|
4528
|
+
)
|
|
4529
|
+
.pipe(T.ResponsePath("result")),
|
|
4540
4530
|
) as unknown as Schema.Codec<CreateDatasetResponse>;
|
|
4541
4531
|
|
|
4542
4532
|
export type CreateDatasetError =
|
|
@@ -4549,7 +4539,7 @@ export const createDataset: API.OperationMethod<
|
|
|
4549
4539
|
CreateDatasetResponse,
|
|
4550
4540
|
CreateDatasetError,
|
|
4551
4541
|
Credentials | HttpClient.HttpClient
|
|
4552
|
-
> = /*@__PURE__*/
|
|
4542
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4553
4543
|
input: CreateDatasetRequest,
|
|
4554
4544
|
output: CreateDatasetResponse,
|
|
4555
4545
|
errors: [GatewayNotFound, DatasetNameAlreadyExists],
|
|
@@ -4586,21 +4576,20 @@ export interface UpdateDatasetRequest {
|
|
|
4586
4576
|
name: string;
|
|
4587
4577
|
}
|
|
4588
4578
|
|
|
4589
|
-
export const UpdateDatasetRequest = /*@__PURE__*/
|
|
4590
|
-
(
|
|
4591
|
-
Schema.
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
),
|
|
4579
|
+
export const UpdateDatasetRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
4580
|
+
Schema.Struct({
|
|
4581
|
+
gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
|
|
4582
|
+
id: Schema.String.pipe(T.HttpPath("id")),
|
|
4583
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4584
|
+
enable: Schema.Boolean,
|
|
4585
|
+
filters: Schema.Array(Filter),
|
|
4586
|
+
name: Schema.String,
|
|
4587
|
+
}).pipe(
|
|
4588
|
+
T.Http({
|
|
4589
|
+
method: "PUT",
|
|
4590
|
+
path: "/accounts/{account_id}/ai-gateway/gateways/{gatewayId}/datasets/{id}",
|
|
4591
|
+
}),
|
|
4592
|
+
),
|
|
4604
4593
|
) as unknown as Schema.Codec<UpdateDatasetRequest>;
|
|
4605
4594
|
|
|
4606
4595
|
export interface UpdateDatasetResponse {
|
|
@@ -4632,29 +4621,28 @@ export interface UpdateDatasetResponse {
|
|
|
4632
4621
|
name: string;
|
|
4633
4622
|
}
|
|
4634
4623
|
|
|
4635
|
-
export const UpdateDatasetResponse = /*@__PURE__*/
|
|
4636
|
-
(
|
|
4637
|
-
Schema.
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
.
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
.pipe(T.ResponsePath("result")),
|
|
4624
|
+
export const UpdateDatasetResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
4625
|
+
Schema.Struct({
|
|
4626
|
+
id: Schema.String,
|
|
4627
|
+
createdAt: Schema.String,
|
|
4628
|
+
enable: Schema.Boolean,
|
|
4629
|
+
filters: Schema.Array(Filter),
|
|
4630
|
+
gatewayId: Schema.String,
|
|
4631
|
+
modifiedAt: Schema.String,
|
|
4632
|
+
name: Schema.String,
|
|
4633
|
+
})
|
|
4634
|
+
.pipe(
|
|
4635
|
+
Schema.encodeKeys({
|
|
4636
|
+
id: "id",
|
|
4637
|
+
createdAt: "created_at",
|
|
4638
|
+
enable: "enable",
|
|
4639
|
+
filters: "filters",
|
|
4640
|
+
gatewayId: "gateway_id",
|
|
4641
|
+
modifiedAt: "modified_at",
|
|
4642
|
+
name: "name",
|
|
4643
|
+
}),
|
|
4644
|
+
)
|
|
4645
|
+
.pipe(T.ResponsePath("result")),
|
|
4658
4646
|
) as unknown as Schema.Codec<UpdateDatasetResponse>;
|
|
4659
4647
|
|
|
4660
4648
|
export type UpdateDatasetError = DefaultErrors | DatasetNotFound;
|
|
@@ -4664,7 +4652,7 @@ export const updateDataset: API.OperationMethod<
|
|
|
4664
4652
|
UpdateDatasetResponse,
|
|
4665
4653
|
UpdateDatasetError,
|
|
4666
4654
|
Credentials | HttpClient.HttpClient
|
|
4667
|
-
> = /*@__PURE__*/
|
|
4655
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4668
4656
|
input: UpdateDatasetRequest,
|
|
4669
4657
|
output: UpdateDatasetResponse,
|
|
4670
4658
|
errors: [DatasetNotFound],
|
|
@@ -4676,18 +4664,17 @@ export interface DeleteDatasetRequest {
|
|
|
4676
4664
|
accountId: string;
|
|
4677
4665
|
}
|
|
4678
4666
|
|
|
4679
|
-
export const DeleteDatasetRequest = /*@__PURE__*/
|
|
4680
|
-
(
|
|
4681
|
-
Schema.
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
),
|
|
4667
|
+
export const DeleteDatasetRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
4668
|
+
Schema.Struct({
|
|
4669
|
+
gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
|
|
4670
|
+
id: Schema.String.pipe(T.HttpPath("id")),
|
|
4671
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4672
|
+
}).pipe(
|
|
4673
|
+
T.Http({
|
|
4674
|
+
method: "DELETE",
|
|
4675
|
+
path: "/accounts/{account_id}/ai-gateway/gateways/{gatewayId}/datasets/{id}",
|
|
4676
|
+
}),
|
|
4677
|
+
),
|
|
4691
4678
|
) as unknown as Schema.Codec<DeleteDatasetRequest>;
|
|
4692
4679
|
|
|
4693
4680
|
export interface DeleteDatasetResponse {
|
|
@@ -4719,29 +4706,28 @@ export interface DeleteDatasetResponse {
|
|
|
4719
4706
|
name: string;
|
|
4720
4707
|
}
|
|
4721
4708
|
|
|
4722
|
-
export const DeleteDatasetResponse = /*@__PURE__*/
|
|
4723
|
-
(
|
|
4724
|
-
Schema.
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
.
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
.pipe(T.ResponsePath("result")),
|
|
4709
|
+
export const DeleteDatasetResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
4710
|
+
Schema.Struct({
|
|
4711
|
+
id: Schema.String,
|
|
4712
|
+
createdAt: Schema.String,
|
|
4713
|
+
enable: Schema.Boolean,
|
|
4714
|
+
filters: Schema.Array(Filter),
|
|
4715
|
+
gatewayId: Schema.String,
|
|
4716
|
+
modifiedAt: Schema.String,
|
|
4717
|
+
name: Schema.String,
|
|
4718
|
+
})
|
|
4719
|
+
.pipe(
|
|
4720
|
+
Schema.encodeKeys({
|
|
4721
|
+
id: "id",
|
|
4722
|
+
createdAt: "created_at",
|
|
4723
|
+
enable: "enable",
|
|
4724
|
+
filters: "filters",
|
|
4725
|
+
gatewayId: "gateway_id",
|
|
4726
|
+
modifiedAt: "modified_at",
|
|
4727
|
+
name: "name",
|
|
4728
|
+
}),
|
|
4729
|
+
)
|
|
4730
|
+
.pipe(T.ResponsePath("result")),
|
|
4745
4731
|
) as unknown as Schema.Codec<DeleteDatasetResponse>;
|
|
4746
4732
|
|
|
4747
4733
|
export type DeleteDatasetError = DefaultErrors | DatasetNotFound;
|
|
@@ -4751,7 +4737,7 @@ export const deleteDataset: API.OperationMethod<
|
|
|
4751
4737
|
DeleteDatasetResponse,
|
|
4752
4738
|
DeleteDatasetError,
|
|
4753
4739
|
Credentials | HttpClient.HttpClient
|
|
4754
|
-
> = /*@__PURE__*/
|
|
4740
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4755
4741
|
input: DeleteDatasetRequest,
|
|
4756
4742
|
output: DeleteDatasetResponse,
|
|
4757
4743
|
errors: [DatasetNotFound],
|
|
@@ -4771,7 +4757,7 @@ export interface CreateDeploymentDynamicRoutingRequest {
|
|
|
4771
4757
|
}
|
|
4772
4758
|
|
|
4773
4759
|
export const CreateDeploymentDynamicRoutingRequest =
|
|
4774
|
-
/*@__PURE__*/
|
|
4760
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
4775
4761
|
Schema.Struct({
|
|
4776
4762
|
gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
|
|
4777
4763
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
@@ -4843,7 +4829,7 @@ export interface CreateDeploymentDynamicRoutingResponse {
|
|
|
4843
4829
|
}
|
|
4844
4830
|
|
|
4845
4831
|
export const CreateDeploymentDynamicRoutingResponse =
|
|
4846
|
-
/*@__PURE__*/
|
|
4832
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
4847
4833
|
Schema.Struct({
|
|
4848
4834
|
id: Schema.String,
|
|
4849
4835
|
createdAt: Schema.String,
|
|
@@ -4886,7 +4872,7 @@ export const createDeploymentDynamicRouting: API.OperationMethod<
|
|
|
4886
4872
|
CreateDeploymentDynamicRoutingResponse,
|
|
4887
4873
|
CreateDeploymentDynamicRoutingError,
|
|
4888
4874
|
Credentials | HttpClient.HttpClient
|
|
4889
|
-
> = /*@__PURE__*/
|
|
4875
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4890
4876
|
input: CreateDeploymentDynamicRoutingRequest,
|
|
4891
4877
|
output: CreateDeploymentDynamicRoutingResponse,
|
|
4892
4878
|
errors: [RouteNotFound],
|
|
@@ -4903,7 +4889,7 @@ export interface ListDeploymentsDynamicRoutingRequest {
|
|
|
4903
4889
|
}
|
|
4904
4890
|
|
|
4905
4891
|
export const ListDeploymentsDynamicRoutingRequest =
|
|
4906
|
-
/*@__PURE__*/
|
|
4892
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
4907
4893
|
Schema.Struct({
|
|
4908
4894
|
gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
|
|
4909
4895
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
@@ -4932,7 +4918,7 @@ export interface ListDeploymentsDynamicRoutingResponse {
|
|
|
4932
4918
|
}
|
|
4933
4919
|
|
|
4934
4920
|
export const ListDeploymentsDynamicRoutingResponse =
|
|
4935
|
-
/*@__PURE__*/
|
|
4921
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
4936
4922
|
Schema.Struct({
|
|
4937
4923
|
data: Data,
|
|
4938
4924
|
success: Schema.Boolean,
|
|
@@ -4946,7 +4932,7 @@ export const listDeploymentsDynamicRouting: API.OperationMethod<
|
|
|
4946
4932
|
ListDeploymentsDynamicRoutingResponse,
|
|
4947
4933
|
ListDeploymentsDynamicRoutingError,
|
|
4948
4934
|
Credentials | HttpClient.HttpClient
|
|
4949
|
-
> = /*@__PURE__*/
|
|
4935
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4950
4936
|
input: ListDeploymentsDynamicRoutingRequest,
|
|
4951
4937
|
output: ListDeploymentsDynamicRoutingResponse,
|
|
4952
4938
|
errors: [],
|
|
@@ -4963,7 +4949,7 @@ export interface GetDynamicRoutingRequest {
|
|
|
4963
4949
|
}
|
|
4964
4950
|
|
|
4965
4951
|
export const GetDynamicRoutingRequest =
|
|
4966
|
-
/*@__PURE__*/
|
|
4952
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
4967
4953
|
Schema.Struct({
|
|
4968
4954
|
gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
|
|
4969
4955
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
@@ -5041,7 +5027,7 @@ export interface GetDynamicRoutingResponse {
|
|
|
5041
5027
|
}
|
|
5042
5028
|
|
|
5043
5029
|
export const GetDynamicRoutingResponse =
|
|
5044
|
-
/*@__PURE__*/
|
|
5030
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
5045
5031
|
Schema.Struct({
|
|
5046
5032
|
id: Schema.String,
|
|
5047
5033
|
createdAt: Schema.String,
|
|
@@ -5091,7 +5077,7 @@ export const getDynamicRouting: API.OperationMethod<
|
|
|
5091
5077
|
GetDynamicRoutingResponse,
|
|
5092
5078
|
GetDynamicRoutingError,
|
|
5093
5079
|
Credentials | HttpClient.HttpClient
|
|
5094
|
-
> = /*@__PURE__*/
|
|
5080
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
5095
5081
|
input: GetDynamicRoutingRequest,
|
|
5096
5082
|
output: GetDynamicRoutingResponse,
|
|
5097
5083
|
errors: [RouteNotFound, GatewayNotFound],
|
|
@@ -5108,7 +5094,7 @@ export interface ListDynamicRoutingsRequest {
|
|
|
5108
5094
|
}
|
|
5109
5095
|
|
|
5110
5096
|
export const ListDynamicRoutingsRequest =
|
|
5111
|
-
/*@__PURE__*/
|
|
5097
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
5112
5098
|
Schema.Struct({
|
|
5113
5099
|
gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
|
|
5114
5100
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -5205,7 +5191,7 @@ export interface ListDynamicRoutingsResponse {
|
|
|
5205
5191
|
}
|
|
5206
5192
|
|
|
5207
5193
|
export const ListDynamicRoutingsResponse =
|
|
5208
|
-
/*@__PURE__*/
|
|
5194
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
5209
5195
|
Schema.Struct({
|
|
5210
5196
|
data: Data2,
|
|
5211
5197
|
success: Schema.Boolean,
|
|
@@ -5219,7 +5205,7 @@ export const listDynamicRoutings: API.OperationMethod<
|
|
|
5219
5205
|
ListDynamicRoutingsResponse,
|
|
5220
5206
|
ListDynamicRoutingsError,
|
|
5221
5207
|
Credentials | HttpClient.HttpClient
|
|
5222
|
-
> = /*@__PURE__*/
|
|
5208
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
5223
5209
|
input: ListDynamicRoutingsRequest,
|
|
5224
5210
|
output: ListDynamicRoutingsResponse,
|
|
5225
5211
|
errors: [GatewayNotFound],
|
|
@@ -5274,7 +5260,7 @@ export interface CreateDynamicRoutingRequest {
|
|
|
5274
5260
|
}
|
|
5275
5261
|
|
|
5276
5262
|
export const CreateDynamicRoutingRequest =
|
|
5277
|
-
/*@__PURE__*/
|
|
5263
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
5278
5264
|
Schema.Struct({
|
|
5279
5265
|
gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
|
|
5280
5266
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -5362,7 +5348,7 @@ export interface CreateDynamicRoutingResponse {
|
|
|
5362
5348
|
}
|
|
5363
5349
|
|
|
5364
5350
|
export const CreateDynamicRoutingResponse =
|
|
5365
|
-
/*@__PURE__*/
|
|
5351
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
5366
5352
|
Schema.Struct({
|
|
5367
5353
|
id: Schema.String,
|
|
5368
5354
|
createdAt: Schema.String,
|
|
@@ -5412,7 +5398,7 @@ export const createDynamicRouting: API.OperationMethod<
|
|
|
5412
5398
|
CreateDynamicRoutingResponse,
|
|
5413
5399
|
CreateDynamicRoutingError,
|
|
5414
5400
|
Credentials | HttpClient.HttpClient
|
|
5415
|
-
> = /*@__PURE__*/
|
|
5401
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
5416
5402
|
input: CreateDynamicRoutingRequest,
|
|
5417
5403
|
output: CreateDynamicRoutingResponse,
|
|
5418
5404
|
errors: [RouteAlreadyExists, GatewayNotFound],
|
|
@@ -5428,7 +5414,7 @@ export interface PatchDynamicRoutingRequest {
|
|
|
5428
5414
|
}
|
|
5429
5415
|
|
|
5430
5416
|
export const PatchDynamicRoutingRequest =
|
|
5431
|
-
/*@__PURE__*/
|
|
5417
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
5432
5418
|
Schema.Struct({
|
|
5433
5419
|
gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
|
|
5434
5420
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
@@ -5515,7 +5501,7 @@ export interface PatchDynamicRoutingResponse {
|
|
|
5515
5501
|
}
|
|
5516
5502
|
|
|
5517
5503
|
export const PatchDynamicRoutingResponse =
|
|
5518
|
-
/*@__PURE__*/
|
|
5504
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
5519
5505
|
Schema.Struct({
|
|
5520
5506
|
route: Route2,
|
|
5521
5507
|
success: Schema.Boolean,
|
|
@@ -5532,7 +5518,7 @@ export const patchDynamicRouting: API.OperationMethod<
|
|
|
5532
5518
|
PatchDynamicRoutingResponse,
|
|
5533
5519
|
PatchDynamicRoutingError,
|
|
5534
5520
|
Credentials | HttpClient.HttpClient
|
|
5535
|
-
> = /*@__PURE__*/
|
|
5521
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
5536
5522
|
input: PatchDynamicRoutingRequest,
|
|
5537
5523
|
output: PatchDynamicRoutingResponse,
|
|
5538
5524
|
errors: [RouteNotFound, RouteAlreadyExists],
|
|
@@ -5545,7 +5531,7 @@ export interface DeleteDynamicRoutingRequest {
|
|
|
5545
5531
|
}
|
|
5546
5532
|
|
|
5547
5533
|
export const DeleteDynamicRoutingRequest =
|
|
5548
|
-
/*@__PURE__*/
|
|
5534
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
5549
5535
|
Schema.Struct({
|
|
5550
5536
|
gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
|
|
5551
5537
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
@@ -5615,7 +5601,7 @@ export interface DeleteDynamicRoutingResponse {
|
|
|
5615
5601
|
}
|
|
5616
5602
|
|
|
5617
5603
|
export const DeleteDynamicRoutingResponse =
|
|
5618
|
-
/*@__PURE__*/
|
|
5604
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
5619
5605
|
Schema.Struct({
|
|
5620
5606
|
id: Schema.String,
|
|
5621
5607
|
createdAt: Schema.String,
|
|
@@ -5661,7 +5647,7 @@ export const deleteDynamicRouting: API.OperationMethod<
|
|
|
5661
5647
|
DeleteDynamicRoutingResponse,
|
|
5662
5648
|
DeleteDynamicRoutingError,
|
|
5663
5649
|
Credentials | HttpClient.HttpClient
|
|
5664
|
-
> = /*@__PURE__*/
|
|
5650
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
5665
5651
|
input: DeleteDynamicRoutingRequest,
|
|
5666
5652
|
output: DeleteDynamicRoutingResponse,
|
|
5667
5653
|
errors: [RouteNotFound, GatewayNotFound],
|
|
@@ -5677,18 +5663,17 @@ export interface GetEvaluationRequest {
|
|
|
5677
5663
|
accountId: string;
|
|
5678
5664
|
}
|
|
5679
5665
|
|
|
5680
|
-
export const GetEvaluationRequest = /*@__PURE__*/
|
|
5681
|
-
(
|
|
5682
|
-
Schema.
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
),
|
|
5666
|
+
export const GetEvaluationRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
5667
|
+
Schema.Struct({
|
|
5668
|
+
gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
|
|
5669
|
+
id: Schema.String.pipe(T.HttpPath("id")),
|
|
5670
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
5671
|
+
}).pipe(
|
|
5672
|
+
T.Http({
|
|
5673
|
+
method: "GET",
|
|
5674
|
+
path: "/accounts/{account_id}/ai-gateway/gateways/{gatewayId}/evaluations/{id}",
|
|
5675
|
+
}),
|
|
5676
|
+
),
|
|
5692
5677
|
) as unknown as Schema.Codec<GetEvaluationRequest>;
|
|
5693
5678
|
|
|
5694
5679
|
export interface GetEvaluationResponse {
|
|
@@ -5742,33 +5727,32 @@ export interface GetEvaluationResponse {
|
|
|
5742
5727
|
totalLogs: number;
|
|
5743
5728
|
}
|
|
5744
5729
|
|
|
5745
|
-
export const GetEvaluationResponse = /*@__PURE__*/
|
|
5746
|
-
(
|
|
5747
|
-
Schema.
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
.
|
|
5759
|
-
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
.pipe(T.ResponsePath("result")),
|
|
5730
|
+
export const GetEvaluationResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
5731
|
+
Schema.Struct({
|
|
5732
|
+
id: Schema.String,
|
|
5733
|
+
createdAt: Schema.String,
|
|
5734
|
+
datasets: Schema.Array(Dataset),
|
|
5735
|
+
gatewayId: Schema.String,
|
|
5736
|
+
modifiedAt: Schema.String,
|
|
5737
|
+
name: Schema.String,
|
|
5738
|
+
processed: Schema.Boolean,
|
|
5739
|
+
results: Schema.Array(Result),
|
|
5740
|
+
totalLogs: Schema.Number,
|
|
5741
|
+
})
|
|
5742
|
+
.pipe(
|
|
5743
|
+
Schema.encodeKeys({
|
|
5744
|
+
id: "id",
|
|
5745
|
+
createdAt: "created_at",
|
|
5746
|
+
datasets: "datasets",
|
|
5747
|
+
gatewayId: "gateway_id",
|
|
5748
|
+
modifiedAt: "modified_at",
|
|
5749
|
+
name: "name",
|
|
5750
|
+
processed: "processed",
|
|
5751
|
+
results: "results",
|
|
5752
|
+
totalLogs: "total_logs",
|
|
5753
|
+
}),
|
|
5754
|
+
)
|
|
5755
|
+
.pipe(T.ResponsePath("result")),
|
|
5772
5756
|
) as unknown as Schema.Codec<GetEvaluationResponse>;
|
|
5773
5757
|
|
|
5774
5758
|
export type GetEvaluationError = DefaultErrors | EvaluationNotFound;
|
|
@@ -5778,7 +5762,7 @@ export const getEvaluation: API.OperationMethod<
|
|
|
5778
5762
|
GetEvaluationResponse,
|
|
5779
5763
|
GetEvaluationError,
|
|
5780
5764
|
Credentials | HttpClient.HttpClient
|
|
5781
|
-
> = /*@__PURE__*/
|
|
5765
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
5782
5766
|
input: GetEvaluationRequest,
|
|
5783
5767
|
output: GetEvaluationResponse,
|
|
5784
5768
|
errors: [EvaluationNotFound],
|
|
@@ -5799,7 +5783,7 @@ export interface ListEvaluationsRequest {
|
|
|
5799
5783
|
}
|
|
5800
5784
|
|
|
5801
5785
|
export const ListEvaluationsRequest =
|
|
5802
|
-
/*@__PURE__*/
|
|
5786
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
5803
5787
|
Schema.Struct({
|
|
5804
5788
|
gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
|
|
5805
5789
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -5875,7 +5859,7 @@ export interface ListEvaluationsResponse {
|
|
|
5875
5859
|
}
|
|
5876
5860
|
|
|
5877
5861
|
export const ListEvaluationsResponse =
|
|
5878
|
-
/*@__PURE__*/
|
|
5862
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
5879
5863
|
Schema.Struct({
|
|
5880
5864
|
result: Schema.Array(ListEvaluationsResponseResult),
|
|
5881
5865
|
resultInfo: Schema.optional(
|
|
@@ -5891,7 +5875,7 @@ export const listEvaluations: API.PaginatedOperationMethod<
|
|
|
5891
5875
|
ListEvaluationsResponse,
|
|
5892
5876
|
ListEvaluationsError,
|
|
5893
5877
|
Credentials | HttpClient.HttpClient
|
|
5894
|
-
> = /*@__PURE__*/
|
|
5878
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
5895
5879
|
input: ListEvaluationsRequest,
|
|
5896
5880
|
output: ListEvaluationsResponse,
|
|
5897
5881
|
errors: [],
|
|
@@ -5917,7 +5901,7 @@ export interface CreateEvaluationRequest {
|
|
|
5917
5901
|
}
|
|
5918
5902
|
|
|
5919
5903
|
export const CreateEvaluationRequest =
|
|
5920
|
-
/*@__PURE__*/
|
|
5904
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
5921
5905
|
Schema.Struct({
|
|
5922
5906
|
gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
|
|
5923
5907
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -5989,7 +5973,7 @@ export interface CreateEvaluationResponse {
|
|
|
5989
5973
|
}
|
|
5990
5974
|
|
|
5991
5975
|
export const CreateEvaluationResponse =
|
|
5992
|
-
/*@__PURE__*/
|
|
5976
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
5993
5977
|
Schema.Struct({
|
|
5994
5978
|
id: Schema.String,
|
|
5995
5979
|
createdAt: Schema.String,
|
|
@@ -6027,7 +6011,7 @@ export const createEvaluation: API.OperationMethod<
|
|
|
6027
6011
|
CreateEvaluationResponse,
|
|
6028
6012
|
CreateEvaluationError,
|
|
6029
6013
|
Credentials | HttpClient.HttpClient
|
|
6030
|
-
> = /*@__PURE__*/
|
|
6014
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
6031
6015
|
input: CreateEvaluationRequest,
|
|
6032
6016
|
output: CreateEvaluationResponse,
|
|
6033
6017
|
errors: [GatewayNotFound, EvaluationNameAlreadyExists],
|
|
@@ -6040,7 +6024,7 @@ export interface DeleteEvaluationRequest {
|
|
|
6040
6024
|
}
|
|
6041
6025
|
|
|
6042
6026
|
export const DeleteEvaluationRequest =
|
|
6043
|
-
/*@__PURE__*/
|
|
6027
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
6044
6028
|
Schema.Struct({
|
|
6045
6029
|
gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
|
|
6046
6030
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
@@ -6109,7 +6093,7 @@ export interface DeleteEvaluationResponse {
|
|
|
6109
6093
|
}
|
|
6110
6094
|
|
|
6111
6095
|
export const DeleteEvaluationResponse =
|
|
6112
|
-
/*@__PURE__*/
|
|
6096
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
6113
6097
|
Schema.Struct({
|
|
6114
6098
|
id: Schema.String,
|
|
6115
6099
|
createdAt: Schema.String,
|
|
@@ -6148,7 +6132,7 @@ export const deleteEvaluation: API.OperationMethod<
|
|
|
6148
6132
|
DeleteEvaluationResponse,
|
|
6149
6133
|
DeleteEvaluationError,
|
|
6150
6134
|
Credentials | HttpClient.HttpClient
|
|
6151
|
-
> = /*@__PURE__*/
|
|
6135
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
6152
6136
|
input: DeleteEvaluationRequest,
|
|
6153
6137
|
output: DeleteEvaluationResponse,
|
|
6154
6138
|
errors: [EvaluationNotFound],
|
|
@@ -6170,7 +6154,7 @@ export interface ListEvaluationTypesRequest {
|
|
|
6170
6154
|
}
|
|
6171
6155
|
|
|
6172
6156
|
export const ListEvaluationTypesRequest =
|
|
6173
|
-
/*@__PURE__*/
|
|
6157
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
6174
6158
|
Schema.Struct({
|
|
6175
6159
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
6176
6160
|
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
@@ -6207,7 +6191,7 @@ export interface ListEvaluationTypesResponse {
|
|
|
6207
6191
|
}
|
|
6208
6192
|
|
|
6209
6193
|
export const ListEvaluationTypesResponse =
|
|
6210
|
-
/*@__PURE__*/
|
|
6194
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
6211
6195
|
Schema.Struct({
|
|
6212
6196
|
result: Schema.Array(ListEvaluationTypesResponseResult),
|
|
6213
6197
|
resultInfo: Schema.optional(
|
|
@@ -6223,7 +6207,7 @@ export const listEvaluationTypes: API.PaginatedOperationMethod<
|
|
|
6223
6207
|
ListEvaluationTypesResponse,
|
|
6224
6208
|
ListEvaluationTypesError,
|
|
6225
6209
|
Credentials | HttpClient.HttpClient
|
|
6226
|
-
> = /*@__PURE__*/
|
|
6210
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
6227
6211
|
input: ListEvaluationTypesRequest,
|
|
6228
6212
|
output: ListEvaluationTypesResponse,
|
|
6229
6213
|
errors: [],
|
|
@@ -6248,7 +6232,7 @@ export interface InvoiceHistoryBillingRequest {
|
|
|
6248
6232
|
}
|
|
6249
6233
|
|
|
6250
6234
|
export const InvoiceHistoryBillingRequest =
|
|
6251
|
-
/*@__PURE__*/
|
|
6235
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
6252
6236
|
Schema.Struct({
|
|
6253
6237
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
6254
6238
|
type: Schema.optional(
|
|
@@ -6291,7 +6275,7 @@ export interface InvoiceHistoryBillingResponse {
|
|
|
6291
6275
|
}
|
|
6292
6276
|
|
|
6293
6277
|
export const InvoiceHistoryBillingResponse =
|
|
6294
|
-
/*@__PURE__*/
|
|
6278
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
6295
6279
|
Schema.Struct({
|
|
6296
6280
|
invoices: Schema.Array(Invoice),
|
|
6297
6281
|
pagination: Pagination,
|
|
@@ -6305,7 +6289,7 @@ export const invoiceHistoryBilling: API.OperationMethod<
|
|
|
6305
6289
|
InvoiceHistoryBillingResponse,
|
|
6306
6290
|
InvoiceHistoryBillingError,
|
|
6307
6291
|
Credentials | HttpClient.HttpClient
|
|
6308
|
-
> = /*@__PURE__*/
|
|
6292
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
6309
6293
|
input: InvoiceHistoryBillingRequest,
|
|
6310
6294
|
output: InvoiceHistoryBillingResponse,
|
|
6311
6295
|
errors: [],
|
|
@@ -6323,7 +6307,7 @@ export interface UsageHistoryBillingRequest {
|
|
|
6323
6307
|
}
|
|
6324
6308
|
|
|
6325
6309
|
export const UsageHistoryBillingRequest =
|
|
6326
|
-
/*@__PURE__*/
|
|
6310
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
6327
6311
|
Schema.Struct({
|
|
6328
6312
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
6329
6313
|
valueGroupingWindow: Schema.Union([
|
|
@@ -6354,7 +6338,7 @@ export interface UsageHistoryBillingResponse {
|
|
|
6354
6338
|
}
|
|
6355
6339
|
|
|
6356
6340
|
export const UsageHistoryBillingResponse =
|
|
6357
|
-
/*@__PURE__*/
|
|
6341
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
6358
6342
|
Schema.Struct({
|
|
6359
6343
|
history: Schema.Array(History),
|
|
6360
6344
|
}).pipe(T.ResponsePath("result")),
|
|
@@ -6367,7 +6351,7 @@ export const usageHistoryBilling: API.OperationMethod<
|
|
|
6367
6351
|
UsageHistoryBillingResponse,
|
|
6368
6352
|
UsageHistoryBillingError,
|
|
6369
6353
|
Credentials | HttpClient.HttpClient
|
|
6370
|
-
> = /*@__PURE__*/
|
|
6354
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
6371
6355
|
input: UsageHistoryBillingRequest,
|
|
6372
6356
|
output: UsageHistoryBillingResponse,
|
|
6373
6357
|
errors: [],
|
|
@@ -6383,7 +6367,7 @@ export interface GetLogRequest {
|
|
|
6383
6367
|
accountId: string;
|
|
6384
6368
|
}
|
|
6385
6369
|
|
|
6386
|
-
export const GetLogRequest = /*@__PURE__*/
|
|
6370
|
+
export const GetLogRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
6387
6371
|
Schema.Struct({
|
|
6388
6372
|
gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
|
|
6389
6373
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
@@ -6424,7 +6408,7 @@ export interface GetLogResponse {
|
|
|
6424
6408
|
step?: number | null;
|
|
6425
6409
|
}
|
|
6426
6410
|
|
|
6427
|
-
export const GetLogResponse = /*@__PURE__*/
|
|
6411
|
+
export const GetLogResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
6428
6412
|
Schema.Struct({
|
|
6429
6413
|
id: Schema.String,
|
|
6430
6414
|
cached: Schema.Boolean,
|
|
@@ -6499,7 +6483,7 @@ export const getLog: API.OperationMethod<
|
|
|
6499
6483
|
GetLogResponse,
|
|
6500
6484
|
GetLogError,
|
|
6501
6485
|
Credentials | HttpClient.HttpClient
|
|
6502
|
-
> = /*@__PURE__*/
|
|
6486
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
6503
6487
|
input: GetLogRequest,
|
|
6504
6488
|
output: GetLogResponse,
|
|
6505
6489
|
errors: [],
|
|
@@ -6601,7 +6585,7 @@ export interface ListLogsRequest {
|
|
|
6601
6585
|
success?: boolean;
|
|
6602
6586
|
}
|
|
6603
6587
|
|
|
6604
|
-
export const ListLogsRequest = /*@__PURE__*/
|
|
6588
|
+
export const ListLogsRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
6605
6589
|
Schema.Struct({
|
|
6606
6590
|
gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
|
|
6607
6591
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -6755,7 +6739,7 @@ export interface ListLogsResponse {
|
|
|
6755
6739
|
} | null;
|
|
6756
6740
|
}
|
|
6757
6741
|
|
|
6758
|
-
export const ListLogsResponse = /*@__PURE__*/
|
|
6742
|
+
export const ListLogsResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
6759
6743
|
Schema.Struct({
|
|
6760
6744
|
result: Schema.Array(ListLogsResponseResult),
|
|
6761
6745
|
resultInfo: Schema.optional(
|
|
@@ -6771,7 +6755,7 @@ export const listLogs: API.PaginatedOperationMethod<
|
|
|
6771
6755
|
ListLogsResponse,
|
|
6772
6756
|
ListLogsError,
|
|
6773
6757
|
Credentials | HttpClient.HttpClient
|
|
6774
|
-
> = /*@__PURE__*/
|
|
6758
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
6775
6759
|
input: ListLogsRequest,
|
|
6776
6760
|
output: ListLogsResponse,
|
|
6777
6761
|
errors: [],
|
|
@@ -6797,7 +6781,7 @@ export interface PatchLogRequest {
|
|
|
6797
6781
|
score?: number | null;
|
|
6798
6782
|
}
|
|
6799
6783
|
|
|
6800
|
-
export const PatchLogRequest = /*@__PURE__*/
|
|
6784
|
+
export const PatchLogRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
6801
6785
|
Schema.Struct({
|
|
6802
6786
|
gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
|
|
6803
6787
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
@@ -6817,7 +6801,7 @@ export const PatchLogRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
|
6817
6801
|
|
|
6818
6802
|
export type PatchLogResponse = unknown;
|
|
6819
6803
|
|
|
6820
|
-
export const PatchLogResponse = /*@__PURE__*/
|
|
6804
|
+
export const PatchLogResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
6821
6805
|
Schema.Unknown.pipe(T.ResponsePath("result")),
|
|
6822
6806
|
) as unknown as Schema.Codec<PatchLogResponse>;
|
|
6823
6807
|
|
|
@@ -6828,7 +6812,7 @@ export const patchLog: API.OperationMethod<
|
|
|
6828
6812
|
PatchLogResponse,
|
|
6829
6813
|
PatchLogError,
|
|
6830
6814
|
Credentials | HttpClient.HttpClient
|
|
6831
|
-
> = /*@__PURE__*/
|
|
6815
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
6832
6816
|
input: PatchLogRequest,
|
|
6833
6817
|
output: PatchLogResponse,
|
|
6834
6818
|
errors: [],
|
|
@@ -6889,7 +6873,7 @@ export interface DeleteLogRequest {
|
|
|
6889
6873
|
orderByDirection?: "asc" | "desc" | (string & {});
|
|
6890
6874
|
}
|
|
6891
6875
|
|
|
6892
|
-
export const DeleteLogRequest = /*@__PURE__*/
|
|
6876
|
+
export const DeleteLogRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
6893
6877
|
Schema.Struct({
|
|
6894
6878
|
gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
|
|
6895
6879
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -6974,11 +6958,10 @@ export interface DeleteLogResponse {
|
|
|
6974
6958
|
success: boolean;
|
|
6975
6959
|
}
|
|
6976
6960
|
|
|
6977
|
-
export const DeleteLogResponse = /*@__PURE__*/
|
|
6978
|
-
(
|
|
6979
|
-
Schema.
|
|
6980
|
-
|
|
6981
|
-
}),
|
|
6961
|
+
export const DeleteLogResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
6962
|
+
Schema.Struct({
|
|
6963
|
+
success: Schema.Boolean,
|
|
6964
|
+
}),
|
|
6982
6965
|
) as unknown as Schema.Codec<DeleteLogResponse>;
|
|
6983
6966
|
|
|
6984
6967
|
export type DeleteLogError = DefaultErrors;
|
|
@@ -6988,7 +6971,7 @@ export const deleteLog: API.OperationMethod<
|
|
|
6988
6971
|
DeleteLogResponse,
|
|
6989
6972
|
DeleteLogError,
|
|
6990
6973
|
Credentials | HttpClient.HttpClient
|
|
6991
|
-
> = /*@__PURE__*/
|
|
6974
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
6992
6975
|
input: DeleteLogRequest,
|
|
6993
6976
|
output: DeleteLogResponse,
|
|
6994
6977
|
errors: [],
|
|
@@ -7000,23 +6983,22 @@ export interface RequestLogRequest {
|
|
|
7000
6983
|
accountId: string;
|
|
7001
6984
|
}
|
|
7002
6985
|
|
|
7003
|
-
export const RequestLogRequest = /*@__PURE__*/
|
|
7004
|
-
(
|
|
7005
|
-
Schema.
|
|
7006
|
-
|
|
7007
|
-
|
|
7008
|
-
|
|
7009
|
-
|
|
7010
|
-
|
|
7011
|
-
|
|
7012
|
-
|
|
7013
|
-
|
|
7014
|
-
),
|
|
6986
|
+
export const RequestLogRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
6987
|
+
Schema.Struct({
|
|
6988
|
+
gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
|
|
6989
|
+
id: Schema.String.pipe(T.HttpPath("id")),
|
|
6990
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
6991
|
+
}).pipe(
|
|
6992
|
+
T.Http({
|
|
6993
|
+
method: "GET",
|
|
6994
|
+
path: "/accounts/{account_id}/ai-gateway/gateways/{gatewayId}/logs/{id}/request",
|
|
6995
|
+
}),
|
|
6996
|
+
),
|
|
7015
6997
|
) as unknown as Schema.Codec<RequestLogRequest>;
|
|
7016
6998
|
|
|
7017
6999
|
export type RequestLogResponse = unknown;
|
|
7018
7000
|
|
|
7019
|
-
export const RequestLogResponse = /*@__PURE__*/
|
|
7001
|
+
export const RequestLogResponse = /*@__PURE__*/ Schema.suspend(
|
|
7020
7002
|
() => Schema.Unknown,
|
|
7021
7003
|
) as unknown as Schema.Codec<RequestLogResponse>;
|
|
7022
7004
|
|
|
@@ -7027,7 +7009,7 @@ export const requestLog: API.OperationMethod<
|
|
|
7027
7009
|
RequestLogResponse,
|
|
7028
7010
|
RequestLogError,
|
|
7029
7011
|
Credentials | HttpClient.HttpClient
|
|
7030
|
-
> = /*@__PURE__*/
|
|
7012
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
7031
7013
|
input: RequestLogRequest,
|
|
7032
7014
|
output: RequestLogResponse,
|
|
7033
7015
|
errors: [],
|
|
@@ -7039,23 +7021,22 @@ export interface ResponseLogRequest {
|
|
|
7039
7021
|
accountId: string;
|
|
7040
7022
|
}
|
|
7041
7023
|
|
|
7042
|
-
export const ResponseLogRequest = /*@__PURE__*/
|
|
7043
|
-
(
|
|
7044
|
-
Schema.
|
|
7045
|
-
|
|
7046
|
-
|
|
7047
|
-
|
|
7048
|
-
|
|
7049
|
-
|
|
7050
|
-
|
|
7051
|
-
|
|
7052
|
-
|
|
7053
|
-
),
|
|
7024
|
+
export const ResponseLogRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
7025
|
+
Schema.Struct({
|
|
7026
|
+
gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
|
|
7027
|
+
id: Schema.String.pipe(T.HttpPath("id")),
|
|
7028
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
7029
|
+
}).pipe(
|
|
7030
|
+
T.Http({
|
|
7031
|
+
method: "GET",
|
|
7032
|
+
path: "/accounts/{account_id}/ai-gateway/gateways/{gatewayId}/logs/{id}/response",
|
|
7033
|
+
}),
|
|
7034
|
+
),
|
|
7054
7035
|
) as unknown as Schema.Codec<ResponseLogRequest>;
|
|
7055
7036
|
|
|
7056
7037
|
export type ResponseLogResponse = unknown;
|
|
7057
7038
|
|
|
7058
|
-
export const ResponseLogResponse = /*@__PURE__*/
|
|
7039
|
+
export const ResponseLogResponse = /*@__PURE__*/ Schema.suspend(
|
|
7059
7040
|
() => Schema.Unknown,
|
|
7060
7041
|
) as unknown as Schema.Codec<ResponseLogResponse>;
|
|
7061
7042
|
|
|
@@ -7066,7 +7047,7 @@ export const responseLog: API.OperationMethod<
|
|
|
7066
7047
|
ResponseLogResponse,
|
|
7067
7048
|
ResponseLogError,
|
|
7068
7049
|
Credentials | HttpClient.HttpClient
|
|
7069
|
-
> = /*@__PURE__*/
|
|
7050
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
7070
7051
|
input: ResponseLogRequest,
|
|
7071
7052
|
output: ResponseLogResponse,
|
|
7072
7053
|
errors: [],
|
|
@@ -7082,7 +7063,7 @@ export interface InvoicePreviewBillingRequest {
|
|
|
7082
7063
|
}
|
|
7083
7064
|
|
|
7084
7065
|
export const InvoicePreviewBillingRequest =
|
|
7085
|
-
/*@__PURE__*/
|
|
7066
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
7086
7067
|
Schema.Struct({
|
|
7087
7068
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
7088
7069
|
}).pipe(
|
|
@@ -7121,7 +7102,7 @@ export interface InvoicePreviewBillingResponse {
|
|
|
7121
7102
|
}
|
|
7122
7103
|
|
|
7123
7104
|
export const InvoicePreviewBillingResponse =
|
|
7124
|
-
/*@__PURE__*/
|
|
7105
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
7125
7106
|
Schema.Struct({
|
|
7126
7107
|
id: Schema.String,
|
|
7127
7108
|
amountDue: Schema.Number,
|
|
@@ -7159,7 +7140,7 @@ export const invoicePreviewBilling: API.OperationMethod<
|
|
|
7159
7140
|
InvoicePreviewBillingResponse,
|
|
7160
7141
|
InvoicePreviewBillingError,
|
|
7161
7142
|
Credentials | HttpClient.HttpClient
|
|
7162
|
-
> = /*@__PURE__*/
|
|
7143
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
7163
7144
|
input: InvoicePreviewBillingRequest,
|
|
7164
7145
|
output: InvoicePreviewBillingResponse,
|
|
7165
7146
|
errors: [],
|
|
@@ -7178,7 +7159,7 @@ export interface ListProviderConfigsRequest {
|
|
|
7178
7159
|
}
|
|
7179
7160
|
|
|
7180
7161
|
export const ListProviderConfigsRequest =
|
|
7181
|
-
/*@__PURE__*/
|
|
7162
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
7182
7163
|
Schema.Struct({
|
|
7183
7164
|
gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
|
|
7184
7165
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -7214,7 +7195,7 @@ export interface ListProviderConfigsResponse {
|
|
|
7214
7195
|
}
|
|
7215
7196
|
|
|
7216
7197
|
export const ListProviderConfigsResponse =
|
|
7217
|
-
/*@__PURE__*/
|
|
7198
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
7218
7199
|
Schema.Struct({
|
|
7219
7200
|
result: Schema.Array(ListProviderConfigsResponseResult),
|
|
7220
7201
|
resultInfo: Schema.optional(
|
|
@@ -7230,7 +7211,7 @@ export const listProviderConfigs: API.PaginatedOperationMethod<
|
|
|
7230
7211
|
ListProviderConfigsResponse,
|
|
7231
7212
|
ListProviderConfigsError,
|
|
7232
7213
|
Credentials | HttpClient.HttpClient
|
|
7233
|
-
> = /*@__PURE__*/
|
|
7214
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
7234
7215
|
input: ListProviderConfigsRequest,
|
|
7235
7216
|
output: ListProviderConfigsResponse,
|
|
7236
7217
|
errors: [],
|
|
@@ -7264,7 +7245,7 @@ export interface CreateProviderConfigRequest {
|
|
|
7264
7245
|
}
|
|
7265
7246
|
|
|
7266
7247
|
export const CreateProviderConfigRequest =
|
|
7267
|
-
/*@__PURE__*/
|
|
7248
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
7268
7249
|
Schema.Struct({
|
|
7269
7250
|
gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
|
|
7270
7251
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -7307,7 +7288,7 @@ export interface CreateProviderConfigResponse {
|
|
|
7307
7288
|
}
|
|
7308
7289
|
|
|
7309
7290
|
export const CreateProviderConfigResponse =
|
|
7310
|
-
/*@__PURE__*/
|
|
7291
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
7311
7292
|
Schema.Struct({
|
|
7312
7293
|
id: Schema.String,
|
|
7313
7294
|
alias: Schema.String,
|
|
@@ -7350,7 +7331,7 @@ export const createProviderConfig: API.OperationMethod<
|
|
|
7350
7331
|
CreateProviderConfigResponse,
|
|
7351
7332
|
CreateProviderConfigError,
|
|
7352
7333
|
Credentials | HttpClient.HttpClient
|
|
7353
|
-
> = /*@__PURE__*/
|
|
7334
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
7354
7335
|
input: CreateProviderConfigRequest,
|
|
7355
7336
|
output: CreateProviderConfigResponse,
|
|
7356
7337
|
errors: [
|
|
@@ -7370,7 +7351,7 @@ export interface DeleteProviderConfigRequest {
|
|
|
7370
7351
|
}
|
|
7371
7352
|
|
|
7372
7353
|
export const DeleteProviderConfigRequest =
|
|
7373
|
-
/*@__PURE__*/
|
|
7354
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
7374
7355
|
Schema.Struct({
|
|
7375
7356
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
7376
7357
|
gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
|
|
@@ -7399,7 +7380,7 @@ export interface DeleteProviderConfigResponse {
|
|
|
7399
7380
|
}
|
|
7400
7381
|
|
|
7401
7382
|
export const DeleteProviderConfigResponse =
|
|
7402
|
-
/*@__PURE__*/
|
|
7383
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
7403
7384
|
Schema.Struct({
|
|
7404
7385
|
id: Schema.String,
|
|
7405
7386
|
alias: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -7428,7 +7409,7 @@ export const deleteProviderConfig: API.OperationMethod<
|
|
|
7428
7409
|
DeleteProviderConfigResponse,
|
|
7429
7410
|
DeleteProviderConfigError,
|
|
7430
7411
|
Credentials | HttpClient.HttpClient
|
|
7431
|
-
> = /*@__PURE__*/
|
|
7412
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
7432
7413
|
input: DeleteProviderConfigRequest,
|
|
7433
7414
|
output: DeleteProviderConfigResponse,
|
|
7434
7415
|
errors: [ProviderConfigNotFound],
|
|
@@ -7444,7 +7425,7 @@ export interface GetUrlRequest {
|
|
|
7444
7425
|
accountId: string;
|
|
7445
7426
|
}
|
|
7446
7427
|
|
|
7447
|
-
export const GetUrlRequest = /*@__PURE__*/
|
|
7428
|
+
export const GetUrlRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
7448
7429
|
Schema.Struct({
|
|
7449
7430
|
gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
|
|
7450
7431
|
provider: Schema.String.pipe(T.HttpPath("provider")),
|
|
@@ -7459,7 +7440,7 @@ export const GetUrlRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
|
7459
7440
|
|
|
7460
7441
|
export type GetUrlResponse = string;
|
|
7461
7442
|
|
|
7462
|
-
export const GetUrlResponse = /*@__PURE__*/
|
|
7443
|
+
export const GetUrlResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
7463
7444
|
Schema.String.pipe(T.ResponsePath("result")),
|
|
7464
7445
|
) as unknown as Schema.Codec<GetUrlResponse>;
|
|
7465
7446
|
|
|
@@ -7470,7 +7451,7 @@ export const getUrl: API.OperationMethod<
|
|
|
7470
7451
|
GetUrlResponse,
|
|
7471
7452
|
GetUrlError,
|
|
7472
7453
|
Credentials | HttpClient.HttpClient
|
|
7473
|
-
> = /*@__PURE__*/
|
|
7454
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
7474
7455
|
input: GetUrlRequest,
|
|
7475
7456
|
output: GetUrlResponse,
|
|
7476
7457
|
errors: [],
|
|
@@ -7488,7 +7469,7 @@ export interface GetVersionDynamicRoutingRequest {
|
|
|
7488
7469
|
}
|
|
7489
7470
|
|
|
7490
7471
|
export const GetVersionDynamicRoutingRequest =
|
|
7491
|
-
/*@__PURE__*/
|
|
7472
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
7492
7473
|
Schema.Struct({
|
|
7493
7474
|
gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
|
|
7494
7475
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
@@ -7554,7 +7535,7 @@ export interface GetVersionDynamicRoutingResponse {
|
|
|
7554
7535
|
}
|
|
7555
7536
|
|
|
7556
7537
|
export const GetVersionDynamicRoutingResponse =
|
|
7557
|
-
/*@__PURE__*/
|
|
7538
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
7558
7539
|
Schema.Struct({
|
|
7559
7540
|
id: Schema.String,
|
|
7560
7541
|
active: Schema.Boolean,
|
|
@@ -7600,7 +7581,7 @@ export const getVersionDynamicRouting: API.OperationMethod<
|
|
|
7600
7581
|
GetVersionDynamicRoutingResponse,
|
|
7601
7582
|
GetVersionDynamicRoutingError,
|
|
7602
7583
|
Credentials | HttpClient.HttpClient
|
|
7603
|
-
> = /*@__PURE__*/
|
|
7584
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
7604
7585
|
input: GetVersionDynamicRoutingRequest,
|
|
7605
7586
|
output: GetVersionDynamicRoutingResponse,
|
|
7606
7587
|
errors: [],
|
|
@@ -7654,7 +7635,7 @@ export interface CreateVersionDynamicRoutingRequest {
|
|
|
7654
7635
|
}
|
|
7655
7636
|
|
|
7656
7637
|
export const CreateVersionDynamicRoutingRequest =
|
|
7657
|
-
/*@__PURE__*/
|
|
7638
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
7658
7639
|
Schema.Struct({
|
|
7659
7640
|
gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
|
|
7660
7641
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
@@ -7735,7 +7716,7 @@ export interface CreateVersionDynamicRoutingResponse {
|
|
|
7735
7716
|
}
|
|
7736
7717
|
|
|
7737
7718
|
export const CreateVersionDynamicRoutingResponse =
|
|
7738
|
-
/*@__PURE__*/
|
|
7719
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
7739
7720
|
Schema.Struct({
|
|
7740
7721
|
id: Schema.String,
|
|
7741
7722
|
createdAt: Schema.String,
|
|
@@ -7780,7 +7761,7 @@ export const createVersionDynamicRouting: API.OperationMethod<
|
|
|
7780
7761
|
CreateVersionDynamicRoutingResponse,
|
|
7781
7762
|
CreateVersionDynamicRoutingError,
|
|
7782
7763
|
Credentials | HttpClient.HttpClient
|
|
7783
|
-
> = /*@__PURE__*/
|
|
7764
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
7784
7765
|
input: CreateVersionDynamicRoutingRequest,
|
|
7785
7766
|
output: CreateVersionDynamicRoutingResponse,
|
|
7786
7767
|
errors: [RouteNotFound],
|
|
@@ -7797,7 +7778,7 @@ export interface ListVersionsDynamicRoutingRequest {
|
|
|
7797
7778
|
}
|
|
7798
7779
|
|
|
7799
7780
|
export const ListVersionsDynamicRoutingRequest =
|
|
7800
|
-
/*@__PURE__*/
|
|
7781
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
7801
7782
|
Schema.Struct({
|
|
7802
7783
|
gatewayId: Schema.String.pipe(T.HttpPath("gatewayId")),
|
|
7803
7784
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
@@ -7828,7 +7809,7 @@ export interface ListVersionsDynamicRoutingResponse {
|
|
|
7828
7809
|
}
|
|
7829
7810
|
|
|
7830
7811
|
export const ListVersionsDynamicRoutingResponse =
|
|
7831
|
-
/*@__PURE__*/
|
|
7812
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
7832
7813
|
Schema.Struct({
|
|
7833
7814
|
data: Data3,
|
|
7834
7815
|
success: Schema.Boolean,
|
|
@@ -7842,7 +7823,7 @@ export const listVersionsDynamicRouting: API.OperationMethod<
|
|
|
7842
7823
|
ListVersionsDynamicRoutingResponse,
|
|
7843
7824
|
ListVersionsDynamicRoutingError,
|
|
7844
7825
|
Credentials | HttpClient.HttpClient
|
|
7845
|
-
> = /*@__PURE__*/
|
|
7826
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
7846
7827
|
input: ListVersionsDynamicRoutingRequest,
|
|
7847
7828
|
output: ListVersionsDynamicRoutingResponse,
|
|
7848
7829
|
errors: [],
|